@leaflow/sdk 0.212.0 → 0.213.1

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 (648) hide show
  1. package/dist/billing/type/checkout/v1/generated/models.d.ts +5 -0
  2. package/dist/billing/type/checkout/v1/generated/validators/checkoutOptions.zod.d.ts +2 -0
  3. package/dist/billing/type/checkout/v1/generated/validators/checkoutOptions.zod.js +5 -0
  4. package/dist/billing/v1/generated/functions.d.ts +105 -90
  5. package/dist/billing/v1/generated/functions.js +107 -92
  6. package/dist/billing/v1/generated/models.d.ts +338 -164
  7. package/dist/billing/v1/generated/models.js +16 -10
  8. package/dist/billing/v1/generated/schemas.zod.d.ts +93 -70
  9. package/dist/billing/v1/generated/schemas.zod.js +98 -72
  10. package/dist/billing/v1/generated/validators/activeResource.zod.d.ts +1 -0
  11. package/dist/billing/v1/generated/validators/activeResource.zod.js +3 -2
  12. package/dist/billing/v1/generated/validators/activeResourceList.zod.d.ts +1 -0
  13. package/dist/billing/v1/generated/validators/allowance.zod.d.ts +1 -0
  14. package/dist/billing/v1/generated/validators/allowance.zod.js +5 -1
  15. package/dist/billing/v1/generated/validators/allowanceList.zod.d.ts +1 -0
  16. package/dist/billing/v1/generated/validators/cancellation.zod.d.ts +1 -0
  17. package/dist/billing/v1/generated/validators/cancellation.zod.js +2 -2
  18. package/dist/billing/v1/generated/validators/cancellationCreate.zod.d.ts +4 -2
  19. package/dist/billing/v1/generated/validators/cancellationCreate.zod.js +5 -4
  20. package/dist/billing/v1/generated/validators/cancellationItem.zod.d.ts +1 -0
  21. package/dist/billing/v1/generated/validators/cancellationItem.zod.js +5 -4
  22. package/dist/billing/v1/generated/validators/cancellationItemInput.zod.d.ts +13 -0
  23. package/dist/billing/v1/generated/validators/{autoRenewSet.zod.d.ts → cancellationItemInput.zod.js} +5 -5
  24. package/dist/billing/v1/generated/validators/cancellationList.zod.d.ts +1 -0
  25. package/dist/billing/v1/generated/validators/cancellationPreview.zod.d.ts +1 -0
  26. package/dist/billing/v1/generated/validators/cancellationPreview.zod.js +2 -2
  27. package/dist/billing/v1/generated/validators/cancellationPreviewItem.zod.d.ts +1 -0
  28. package/dist/billing/v1/generated/validators/cancellationPreviewItem.zod.js +4 -3
  29. package/dist/billing/v1/generated/validators/cancellationPreviewRequest.zod.d.ts +4 -2
  30. package/dist/billing/v1/generated/validators/cancellationPreviewRequest.zod.js +8 -7
  31. package/dist/billing/v1/generated/validators/checkoutOptions.zod.d.ts +2 -0
  32. package/dist/billing/v1/generated/validators/checkoutOptions.zod.js +5 -0
  33. package/dist/billing/v1/generated/validators/checkoutSession.zod.d.ts +6 -0
  34. package/dist/billing/v1/generated/validators/checkoutSession.zod.js +7 -3
  35. package/dist/billing/v1/generated/validators/checkoutSessionCreate.zod.d.ts +4 -1
  36. package/dist/billing/v1/generated/validators/checkoutSessionCreate.zod.js +8 -2
  37. package/dist/billing/v1/generated/validators/checkoutSessionItem.zod.d.ts +3 -1
  38. package/dist/billing/v1/generated/validators/checkoutSessionItem.zod.js +7 -2
  39. package/dist/billing/v1/generated/validators/checkoutSessionItemList.zod.d.ts +2 -1
  40. package/dist/billing/v1/generated/validators/checkoutSessionList.zod.d.ts +6 -0
  41. package/dist/billing/v1/generated/validators/checkoutSessionResult.zod.d.ts +7 -0
  42. package/dist/billing/v1/generated/validators/checkoutSessionSubscription.zod.d.ts +15 -0
  43. package/dist/billing/v1/generated/validators/checkoutSessionSubscription.zod.js +24 -0
  44. package/dist/billing/v1/generated/validators/checkoutSessionSubscriptionInput.zod.d.ts +13 -0
  45. package/dist/billing/v1/generated/validators/{autoRenewSet.zod.js → checkoutSessionSubscriptionInput.zod.js} +5 -3
  46. package/dist/billing/v1/generated/validators/entitlement.zod.js +1 -1
  47. package/dist/billing/v1/generated/validators/invoiceItem.zod.js +1 -1
  48. package/dist/billing/v1/generated/validators/invoiceItemProration.zod.js +1 -1
  49. package/dist/billing/v1/generated/validators/listActiveResourcesParams.zod.js +2 -2
  50. package/dist/billing/v1/generated/validators/listAllowancesParams.zod.js +2 -2
  51. package/dist/billing/v1/generated/validators/listCancellationsParams.zod.d.ts +1 -0
  52. package/dist/billing/v1/generated/validators/listCancellationsParams.zod.js +1 -0
  53. package/dist/billing/v1/generated/validators/listEntitlementsParams.zod.js +2 -2
  54. package/dist/billing/v1/generated/validators/listFeatureGrantsParams.zod.js +2 -2
  55. package/dist/billing/v1/generated/validators/listPricesParams.zod.js +2 -2
  56. package/dist/billing/v1/generated/validators/{listRenewalPricesParams.zod.d.ts → listRenewalOptionsParams.zod.d.ts} +7 -7
  57. package/dist/billing/v1/generated/validators/{listRenewalPricesParams.zod.js → listRenewalOptionsParams.zod.js} +9 -9
  58. package/dist/billing/v1/generated/validators/listSpendParams.zod.js +2 -2
  59. package/dist/billing/v1/generated/validators/listSubscriptionsParams.zod.d.ts +4 -1
  60. package/dist/billing/v1/generated/validators/listSubscriptionsParams.zod.js +7 -1
  61. package/dist/billing/v1/generated/validators/listUsageChargesParams.zod.js +2 -2
  62. package/dist/billing/v1/generated/validators/order.zod.d.ts +1 -0
  63. package/dist/billing/v1/generated/validators/order.zod.js +2 -2
  64. package/dist/billing/v1/generated/validators/orderItem.zod.d.ts +1 -0
  65. package/dist/billing/v1/generated/validators/orderItem.zod.js +8 -4
  66. package/dist/billing/v1/generated/validators/orderItemList.zod.d.ts +1 -0
  67. package/dist/billing/v1/generated/validators/orderItemStatus.zod.js +1 -1
  68. package/dist/billing/v1/generated/validators/orderList.zod.d.ts +1 -0
  69. package/dist/billing/v1/generated/validators/plan.zod.js +2 -2
  70. package/dist/billing/v1/generated/validators/price.zod.js +2 -2
  71. package/dist/billing/v1/generated/validators/priceSearch.zod.js +2 -2
  72. package/dist/billing/v1/generated/validators/product.zod.js +2 -2
  73. package/dist/billing/v1/generated/validators/{productID.zod.d.ts → productId.zod.d.ts} +5 -5
  74. package/dist/billing/v1/generated/validators/{productID.zod.js → productId.zod.js} +5 -5
  75. package/dist/billing/v1/generated/validators/quote.zod.d.ts +8 -1
  76. package/dist/billing/v1/generated/validators/quote.zod.js +1 -1
  77. package/dist/billing/v1/generated/validators/quoteChangeInput.zod.d.ts +1 -1
  78. package/dist/billing/v1/generated/validators/quoteChangeInput.zod.js +7 -7
  79. package/dist/billing/v1/generated/validators/quoteDowngradeRefund.zod.js +1 -1
  80. package/dist/billing/v1/generated/validators/quoteItem.zod.d.ts +1 -0
  81. package/dist/billing/v1/generated/validators/quoteItem.zod.js +7 -3
  82. package/dist/billing/v1/generated/validators/quoteItemInput.zod.d.ts +1 -0
  83. package/dist/billing/v1/generated/validators/quoteItemInput.zod.js +6 -2
  84. package/dist/billing/v1/generated/validators/quoteRenewal.zod.d.ts +0 -1
  85. package/dist/billing/v1/generated/validators/quoteRenewal.zod.js +2 -3
  86. package/dist/billing/v1/generated/validators/quoteRenewalItem.zod.d.ts +17 -0
  87. package/dist/billing/v1/generated/validators/quoteRenewalItem.zod.js +18 -0
  88. package/dist/billing/v1/generated/validators/quoteRenewalResult.zod.d.ts +7 -1
  89. package/dist/billing/v1/generated/validators/quoteRenewalResult.zod.js +6 -3
  90. package/dist/billing/v1/generated/validators/quoteRequest.zod.d.ts +2 -2
  91. package/dist/billing/v1/generated/validators/quoteRequest.zod.js +3 -3
  92. package/dist/billing/v1/generated/validators/refundReason.zod.js +1 -1
  93. package/dist/billing/v1/generated/validators/renewRequest.zod.js +3 -3
  94. package/dist/billing/v1/generated/validators/{renewalPriceList.zod.d.ts → renewalOption.zod.d.ts} +15 -18
  95. package/dist/billing/v1/generated/validators/renewalOption.zod.js +22 -0
  96. package/dist/billing/v1/generated/validators/{renewalPrice.zod.d.ts → renewalOptionItem.zod.d.ts} +6 -13
  97. package/dist/billing/v1/generated/validators/{renewalPrice.zod.js → renewalOptionItem.zod.js} +10 -10
  98. package/dist/billing/v1/generated/validators/renewalOptionList.zod.d.ts +44 -0
  99. package/dist/billing/v1/generated/validators/{renewalPriceList.zod.js → renewalOptionList.zod.js} +3 -3
  100. package/dist/billing/v1/generated/validators/scheduledChange.zod.js +1 -1
  101. package/dist/billing/v1/generated/validators/subscription.zod.d.ts +131 -112
  102. package/dist/billing/v1/generated/validators/subscription.zod.js +39 -73
  103. package/dist/billing/v1/generated/validators/subscriptionItem.zod.d.ts +104 -0
  104. package/dist/billing/v1/generated/validators/subscriptionItem.zod.js +74 -0
  105. package/dist/billing/v1/generated/validators/{subscriptionCancellation.zod.d.ts → subscriptionItemCancellation.zod.d.ts} +4 -4
  106. package/dist/billing/v1/generated/validators/{subscriptionCancellation.zod.js → subscriptionItemCancellation.zod.js} +4 -4
  107. package/dist/billing/v1/generated/validators/subscriptionList.zod.d.ts +131 -111
  108. package/dist/billing/v1/generated/validators/subscriptionStatus.zod.d.ts +1 -0
  109. package/dist/billing/v1/generated/validators/subscriptionStatus.zod.js +2 -2
  110. package/dist/billing/v1/generated/validators/subscriptionUpdate.zod.d.ts +13 -0
  111. package/dist/billing/v1/generated/validators/subscriptionUpdate.zod.js +13 -0
  112. package/dist/billing/v1/generated/validators/trialEndBehavior.zod.d.ts +18 -0
  113. package/dist/billing/v1/generated/validators/trialEndBehavior.zod.js +17 -0
  114. package/dist/billing/v1/generated/validators/trialSettings.zod.d.ts +20 -0
  115. package/dist/billing/v1/generated/validators/trialSettings.zod.js +14 -0
  116. package/dist/billing/v1/generated/validators/usageCharge.zod.d.ts +1 -0
  117. package/dist/billing/v1/generated/validators/usageCharge.zod.js +2 -1
  118. package/dist/billing/v1/generated/validators/usageChargeList.zod.d.ts +1 -0
  119. package/dist/billing/v1/generated/validators/usageEstimateInput.zod.js +2 -2
  120. package/dist/canopy/v1/generated/models.d.ts +5 -0
  121. package/dist/canopy/v1/generated/schemas.zod.d.ts +1 -0
  122. package/dist/canopy/v1/generated/validators/checkoutOptions.zod.d.ts +2 -0
  123. package/dist/canopy/v1/generated/validators/checkoutOptions.zod.js +5 -0
  124. package/dist/canopy/v1/generated/validators/createServiceRequestBody.zod.d.ts +1 -0
  125. package/dist/compute/v2/generated/functions.d.ts +372 -284
  126. package/dist/compute/v2/generated/functions.js +232 -76
  127. package/dist/compute/v2/generated/models.d.ts +368 -334
  128. package/dist/compute/v2/generated/models.js +9 -9
  129. package/dist/compute/v2/generated/schemas.zod.d.ts +165 -97
  130. package/dist/compute/v2/generated/schemas.zod.js +156 -84
  131. package/dist/compute/v2/generated/validators/{associateElasticIPRequestBody.zod.d.ts → associateElasticIpRequestBody.zod.d.ts} +4 -4
  132. package/dist/compute/v2/generated/validators/{associateElasticIPRequestBody.zod.js → associateElasticIpRequestBody.zod.js} +2 -2
  133. package/dist/compute/v2/generated/validators/attachNetworkInterfaceRequestBody.zod.d.ts +1 -1
  134. package/dist/compute/v2/generated/validators/attachNetworkInterfaceRequestBody.zod.js +3 -3
  135. package/dist/compute/v2/generated/validators/attachVolumeRequestBody.zod.d.ts +1 -1
  136. package/dist/compute/v2/generated/validators/attachVolumeRequestBody.zod.js +3 -3
  137. package/dist/compute/v2/generated/validators/{imageID.zod.d.ts → availabilityZoneId.zod.d.ts} +7 -7
  138. package/dist/compute/v2/generated/validators/availabilityZoneId.zod.js +44 -0
  139. package/dist/compute/v2/generated/validators/availabilityZoneListResponseBody.zod.d.ts +1 -1
  140. package/dist/compute/v2/generated/validators/availabilityZoneListResponseBody.zod.js +1 -1
  141. package/dist/compute/v2/generated/validators/availabilityZoneResource.zod.d.ts +1 -1
  142. package/dist/compute/v2/generated/validators/availabilityZoneResource.zod.js +5 -5
  143. package/dist/compute/v2/generated/validators/billingCancellation.zod.d.ts +1 -1
  144. package/dist/compute/v2/generated/validators/billingCancellation.zod.js +3 -3
  145. package/dist/compute/v2/generated/validators/billingChoice.zod.d.ts +1 -1
  146. package/dist/compute/v2/generated/validators/billingChoice.zod.js +1 -1
  147. package/dist/compute/v2/generated/validators/billingComponent.zod.d.ts +1 -1
  148. package/dist/compute/v2/generated/validators/billingComponent.zod.js +1 -1
  149. package/dist/compute/v2/generated/validators/billingLineQuantity.zod.d.ts +1 -1
  150. package/dist/compute/v2/generated/validators/billingLineQuantity.zod.js +1 -1
  151. package/dist/compute/v2/generated/validators/billingMeter.zod.d.ts +1 -1
  152. package/dist/compute/v2/generated/validators/billingMeter.zod.js +1 -1
  153. package/dist/compute/v2/generated/validators/billingPeriod.zod.d.ts +1 -1
  154. package/dist/compute/v2/generated/validators/billingPeriod.zod.js +1 -1
  155. package/dist/compute/v2/generated/validators/billingQuantity.zod.d.ts +1 -1
  156. package/dist/compute/v2/generated/validators/billingQuantity.zod.js +1 -1
  157. package/dist/compute/v2/generated/validators/bootVolume.zod.d.ts +1 -1
  158. package/dist/compute/v2/generated/validators/bootVolume.zod.js +1 -1
  159. package/dist/compute/v2/generated/validators/cancellationMode.zod.d.ts +1 -1
  160. package/dist/compute/v2/generated/validators/cancellationMode.zod.js +1 -1
  161. package/dist/compute/v2/generated/validators/{updateElasticIPRequestBody.zod.d.ts → changeElasticIpBandwidthRequestBody.zod.d.ts} +6 -9
  162. package/dist/compute/v2/generated/validators/changeElasticIpBandwidthRequestBody.zod.js +47 -0
  163. package/dist/compute/v2/generated/validators/changeElasticIpChargeTypeRequestBody.zod.d.ts +43 -0
  164. package/dist/compute/v2/generated/validators/changeElasticIpChargeTypeRequestBody.zod.js +39 -0
  165. package/dist/compute/v2/generated/validators/checkoutMode.zod.d.ts +1 -1
  166. package/dist/compute/v2/generated/validators/checkoutMode.zod.js +1 -1
  167. package/dist/compute/v2/generated/validators/checkoutOptions.zod.d.ts +3 -1
  168. package/dist/compute/v2/generated/validators/checkoutOptions.zod.js +6 -1
  169. package/dist/compute/v2/generated/validators/consoleResponseBody.zod.d.ts +1 -1
  170. package/dist/compute/v2/generated/validators/consoleResponseBody.zod.js +1 -1
  171. package/dist/compute/v2/generated/validators/{createElasticIPRequestBody.zod.d.ts → createElasticIpRequestBody.zod.d.ts} +9 -7
  172. package/dist/compute/v2/generated/validators/{createElasticIPRequestBody.zod.js → createElasticIpRequestBody.zod.js} +12 -10
  173. package/dist/compute/v2/generated/validators/{createElasticIPResponseBody.zod.d.ts → createElasticIpResponseBody.zod.d.ts} +8 -6
  174. package/dist/compute/v2/generated/validators/{createElasticIPResponseBody.zod.js → createElasticIpResponseBody.zod.js} +4 -4
  175. package/dist/compute/v2/generated/validators/createInstanceRequestBody.zod.d.ts +2 -1
  176. package/dist/compute/v2/generated/validators/createInstanceRequestBody.zod.js +3 -3
  177. package/dist/compute/v2/generated/validators/createInstanceResponseBody.zod.d.ts +3 -1
  178. package/dist/compute/v2/generated/validators/createInstanceResponseBody.zod.js +1 -1
  179. package/dist/compute/v2/generated/validators/createLaunchTemplateRequestBody.zod.d.ts +1 -1
  180. package/dist/compute/v2/generated/validators/createLaunchTemplateRequestBody.zod.js +3 -3
  181. package/dist/compute/v2/generated/validators/createLaunchTemplateResponseBody.zod.d.ts +1 -1
  182. package/dist/compute/v2/generated/validators/createLaunchTemplateResponseBody.zod.js +1 -1
  183. package/dist/compute/v2/generated/validators/createNetworkInterfaceAddressRequestBody.zod.d.ts +1 -1
  184. package/dist/compute/v2/generated/validators/createNetworkInterfaceAddressRequestBody.zod.js +1 -1
  185. package/dist/compute/v2/generated/validators/createNetworkInterfaceRequestBody.zod.d.ts +1 -1
  186. package/dist/compute/v2/generated/validators/createNetworkInterfaceRequestBody.zod.js +5 -5
  187. package/dist/compute/v2/generated/validators/createPrivateImageRequestBody.zod.d.ts +2 -1
  188. package/dist/compute/v2/generated/validators/createPrivateImageRequestBody.zod.js +3 -3
  189. package/dist/compute/v2/generated/validators/createPrivateImageResponseBody.zod.d.ts +3 -1
  190. package/dist/compute/v2/generated/validators/createPrivateImageResponseBody.zod.js +1 -1
  191. package/dist/compute/v2/generated/validators/createSecurityGroupRequestBody.zod.d.ts +1 -1
  192. package/dist/compute/v2/generated/validators/createSecurityGroupRequestBody.zod.js +3 -3
  193. package/dist/compute/v2/generated/validators/createSecurityGroupRuleRequestBody.zod.d.ts +1 -1
  194. package/dist/compute/v2/generated/validators/createSecurityGroupRuleRequestBody.zod.js +1 -1
  195. package/dist/compute/v2/generated/validators/createVirtualPrivateCloudPeeringRequestBody.zod.d.ts +1 -1
  196. package/dist/compute/v2/generated/validators/createVirtualPrivateCloudPeeringRequestBody.zod.js +4 -4
  197. package/dist/compute/v2/generated/validators/createVirtualPrivateCloudRequestBody.zod.d.ts +1 -1
  198. package/dist/compute/v2/generated/validators/createVirtualPrivateCloudRequestBody.zod.js +3 -3
  199. package/dist/compute/v2/generated/validators/createVirtualPrivateCloudRouteRequestBody.zod.d.ts +1 -1
  200. package/dist/compute/v2/generated/validators/createVirtualPrivateCloudRouteRequestBody.zod.js +1 -1
  201. package/dist/compute/v2/generated/validators/createVirtualPrivateCloudSubnetRequestBody.zod.d.ts +1 -1
  202. package/dist/compute/v2/generated/validators/createVirtualPrivateCloudSubnetRequestBody.zod.js +1 -1
  203. package/dist/compute/v2/generated/validators/createVolumeBackupRequestBody.zod.d.ts +2 -1
  204. package/dist/compute/v2/generated/validators/createVolumeBackupRequestBody.zod.js +3 -3
  205. package/dist/compute/v2/generated/validators/createVolumeBackupResponseBody.zod.d.ts +3 -1
  206. package/dist/compute/v2/generated/validators/createVolumeBackupResponseBody.zod.js +1 -1
  207. package/dist/compute/v2/generated/validators/createVolumeRequestBody.zod.d.ts +5 -3
  208. package/dist/compute/v2/generated/validators/createVolumeRequestBody.zod.js +10 -8
  209. package/dist/compute/v2/generated/validators/createVolumeResponseBody.zod.d.ts +3 -1
  210. package/dist/compute/v2/generated/validators/createVolumeResponseBody.zod.js +1 -1
  211. package/dist/compute/v2/generated/validators/createVolumeSnapshotRequestBody.zod.d.ts +2 -1
  212. package/dist/compute/v2/generated/validators/createVolumeSnapshotRequestBody.zod.js +3 -3
  213. package/dist/compute/v2/generated/validators/createVolumeSnapshotResponseBody.zod.d.ts +3 -1
  214. package/dist/compute/v2/generated/validators/createVolumeSnapshotResponseBody.zod.js +1 -1
  215. package/dist/compute/v2/generated/validators/cursorPagination.zod.d.ts +1 -1
  216. package/dist/compute/v2/generated/validators/cursorPagination.zod.js +1 -1
  217. package/dist/compute/v2/generated/validators/deleteElasticIpParams.zod.d.ts +1 -1
  218. package/dist/compute/v2/generated/validators/deleteElasticIpParams.zod.js +1 -1
  219. package/dist/compute/v2/generated/validators/{deleteElasticIPResponseBody.zod.d.ts → deleteElasticIpResponseBody.zod.d.ts} +8 -6
  220. package/dist/compute/v2/generated/validators/{deleteElasticIPResponseBody.zod.js → deleteElasticIpResponseBody.zod.js} +6 -6
  221. package/dist/compute/v2/generated/validators/deleteInstanceParams.zod.d.ts +1 -1
  222. package/dist/compute/v2/generated/validators/deleteInstanceParams.zod.js +1 -1
  223. package/dist/compute/v2/generated/validators/deleteInstanceResponseBody.zod.d.ts +3 -1
  224. package/dist/compute/v2/generated/validators/deleteInstanceResponseBody.zod.js +3 -3
  225. package/dist/compute/v2/generated/validators/deletePrivateImageParams.zod.d.ts +1 -1
  226. package/dist/compute/v2/generated/validators/deletePrivateImageParams.zod.js +1 -1
  227. package/dist/compute/v2/generated/validators/deletePrivateImageResponseBody.zod.d.ts +3 -1
  228. package/dist/compute/v2/generated/validators/deletePrivateImageResponseBody.zod.js +3 -3
  229. package/dist/compute/v2/generated/validators/deleteVolumeBackupParams.zod.d.ts +1 -1
  230. package/dist/compute/v2/generated/validators/deleteVolumeBackupParams.zod.js +1 -1
  231. package/dist/compute/v2/generated/validators/deleteVolumeBackupResponseBody.zod.d.ts +3 -1
  232. package/dist/compute/v2/generated/validators/deleteVolumeBackupResponseBody.zod.js +3 -3
  233. package/dist/compute/v2/generated/validators/deleteVolumeParams.zod.d.ts +1 -1
  234. package/dist/compute/v2/generated/validators/deleteVolumeParams.zod.js +1 -1
  235. package/dist/compute/v2/generated/validators/deleteVolumeResponseBody.zod.d.ts +3 -1
  236. package/dist/compute/v2/generated/validators/deleteVolumeResponseBody.zod.js +3 -3
  237. package/dist/compute/v2/generated/validators/deleteVolumeSnapshotParams.zod.d.ts +1 -1
  238. package/dist/compute/v2/generated/validators/deleteVolumeSnapshotParams.zod.js +1 -1
  239. package/dist/compute/v2/generated/validators/deleteVolumeSnapshotResponseBody.zod.d.ts +3 -1
  240. package/dist/compute/v2/generated/validators/deleteVolumeSnapshotResponseBody.zod.js +3 -3
  241. package/dist/compute/v2/generated/validators/{elasticIP.zod.d.ts → elasticIp.zod.d.ts} +8 -6
  242. package/dist/compute/v2/generated/validators/{elasticIP.zod.js → elasticIp.zod.js} +22 -18
  243. package/dist/compute/v2/generated/validators/{elasticIPAssociation.zod.d.ts → elasticIpAssociation.zod.d.ts} +4 -4
  244. package/dist/compute/v2/generated/validators/{elasticIPAssociation.zod.js → elasticIpAssociation.zod.js} +11 -11
  245. package/dist/compute/v2/generated/validators/elasticIpAssociationId.zod.d.ts +41 -0
  246. package/dist/compute/v2/generated/validators/elasticIpAssociationId.zod.js +44 -0
  247. package/dist/compute/v2/generated/validators/{updateElasticIPResponseBody.zod.d.ts → elasticIpChangeResponseBody.zod.d.ts} +8 -6
  248. package/dist/compute/v2/generated/validators/elasticIpChangeResponseBody.zod.js +49 -0
  249. package/dist/compute/v2/generated/validators/elasticIpId.zod.d.ts +41 -0
  250. package/dist/compute/v2/generated/validators/{elasticIPID.zod.js → elasticIpId.zod.js} +8 -8
  251. package/dist/compute/v2/generated/validators/{elasticIPLine.zod.d.ts → elasticIpLine.zod.d.ts} +7 -7
  252. package/dist/compute/v2/generated/validators/{elasticIPLine.zod.js → elasticIpLine.zod.js} +12 -12
  253. package/dist/compute/v2/generated/validators/elasticIpLineId.zod.d.ts +41 -0
  254. package/dist/compute/v2/generated/validators/elasticIpLineId.zod.js +44 -0
  255. package/dist/compute/v2/generated/validators/{elasticIPLineListResponseBody.zod.d.ts → elasticIpLineListResponseBody.zod.d.ts} +4 -4
  256. package/dist/compute/v2/generated/validators/{elasticIPListResponseBody.zod.js → elasticIpLineListResponseBody.zod.js} +4 -4
  257. package/dist/compute/v2/generated/validators/{elasticIPListResponseBody.zod.d.ts → elasticIpListResponseBody.zod.d.ts} +8 -6
  258. package/dist/compute/v2/generated/validators/{elasticIPLineListResponseBody.zod.js → elasticIpListResponseBody.zod.js} +4 -4
  259. package/dist/compute/v2/generated/validators/{elasticIPReleaseResource.zod.d.ts → elasticIpReleaseResource.zod.d.ts} +4 -4
  260. package/dist/compute/v2/generated/validators/{elasticIPReleaseResource.zod.js → elasticIpReleaseResource.zod.js} +4 -4
  261. package/dist/compute/v2/generated/validators/error.zod.d.ts +1 -1
  262. package/dist/compute/v2/generated/validators/error.zod.js +1 -1
  263. package/dist/compute/v2/generated/validators/errorStatus.zod.d.ts +1 -1
  264. package/dist/compute/v2/generated/validators/errorStatus.zod.js +1 -1
  265. package/dist/compute/v2/generated/validators/existingBootVolume.zod.d.ts +1 -1
  266. package/dist/compute/v2/generated/validators/existingBootVolume.zod.js +3 -3
  267. package/dist/compute/v2/generated/validators/{existingElasticIP.zod.d.ts → existingElasticIp.zod.d.ts} +4 -4
  268. package/dist/compute/v2/generated/validators/{existingElasticIP.zod.js → existingElasticIp.zod.js} +4 -4
  269. package/dist/compute/v2/generated/validators/existingPrimaryNetworkInterface.zod.d.ts +1 -1
  270. package/dist/compute/v2/generated/validators/existingPrimaryNetworkInterface.zod.js +3 -3
  271. package/dist/compute/v2/generated/validators/fieldViolation.zod.d.ts +1 -1
  272. package/dist/compute/v2/generated/validators/fieldViolation.zod.js +1 -1
  273. package/dist/compute/v2/generated/validators/freeSubnetCidr.zod.d.ts +1 -1
  274. package/dist/compute/v2/generated/validators/freeSubnetCidr.zod.js +1 -1
  275. package/dist/compute/v2/generated/validators/generatedPassword.zod.d.ts +1 -1
  276. package/dist/compute/v2/generated/validators/generatedPassword.zod.js +1 -1
  277. package/dist/compute/v2/generated/validators/getVirtualPrivateCloudFreeSubnetCidrParams.zod.d.ts +1 -1
  278. package/dist/compute/v2/generated/validators/getVirtualPrivateCloudFreeSubnetCidrParams.zod.js +1 -1
  279. package/dist/compute/v2/generated/validators/imageId.zod.d.ts +41 -0
  280. package/dist/compute/v2/generated/validators/{imageID.zod.js → imageId.zod.js} +8 -8
  281. package/dist/compute/v2/generated/validators/instance.zod.d.ts +3 -1
  282. package/dist/compute/v2/generated/validators/instance.zod.js +25 -21
  283. package/dist/compute/v2/generated/validators/instanceAssociationTarget.zod.d.ts +1 -1
  284. package/dist/compute/v2/generated/validators/instanceAssociationTarget.zod.js +3 -3
  285. package/dist/compute/v2/generated/validators/{instanceElasticIP.zod.d.ts → instanceElasticIp.zod.d.ts} +4 -4
  286. package/dist/compute/v2/generated/validators/{instanceElasticIP.zod.js → instanceElasticIp.zod.js} +5 -5
  287. package/dist/compute/v2/generated/validators/instanceFamily.zod.d.ts +1 -1
  288. package/dist/compute/v2/generated/validators/instanceFamily.zod.js +5 -5
  289. package/dist/compute/v2/generated/validators/instanceFamilyCategory.zod.d.ts +1 -1
  290. package/dist/compute/v2/generated/validators/instanceFamilyCategory.zod.js +1 -1
  291. package/dist/compute/v2/generated/validators/instanceFamilyId.zod.d.ts +41 -0
  292. package/dist/compute/v2/generated/validators/{instanceFamilyID.zod.js → instanceFamilyId.zod.js} +8 -8
  293. package/dist/compute/v2/generated/validators/instanceFamilyListResponseBody.zod.d.ts +1 -1
  294. package/dist/compute/v2/generated/validators/instanceFamilyListResponseBody.zod.js +1 -1
  295. package/dist/compute/v2/generated/validators/instanceId.zod.d.ts +41 -0
  296. package/dist/compute/v2/generated/validators/{instanceID.zod.js → instanceId.zod.js} +8 -8
  297. package/dist/compute/v2/generated/validators/instanceListResponseBody.zod.d.ts +3 -1
  298. package/dist/compute/v2/generated/validators/instanceListResponseBody.zod.js +1 -1
  299. package/dist/compute/v2/generated/validators/instanceNetworkInterfaceId.zod.d.ts +41 -0
  300. package/dist/compute/v2/generated/validators/instanceNetworkInterfaceId.zod.js +44 -0
  301. package/dist/compute/v2/generated/validators/instanceReleaseResource.zod.d.ts +1 -1
  302. package/dist/compute/v2/generated/validators/instanceReleaseResource.zod.js +3 -3
  303. package/dist/compute/v2/generated/validators/instanceRestriction.zod.d.ts +1 -1
  304. package/dist/compute/v2/generated/validators/instanceRestriction.zod.js +4 -4
  305. package/dist/compute/v2/generated/validators/instanceType.zod.d.ts +1 -1
  306. package/dist/compute/v2/generated/validators/instanceType.zod.js +9 -9
  307. package/dist/compute/v2/generated/validators/instanceTypeId.zod.d.ts +41 -0
  308. package/dist/compute/v2/generated/validators/{instanceTypeID.zod.js → instanceTypeId.zod.js} +8 -8
  309. package/dist/compute/v2/generated/validators/instanceTypeListResponseBody.zod.d.ts +1 -1
  310. package/dist/compute/v2/generated/validators/instanceTypeListResponseBody.zod.js +1 -1
  311. package/dist/compute/v2/generated/validators/instanceVolumeId.zod.d.ts +41 -0
  312. package/dist/compute/v2/generated/validators/{instanceVolumeID.zod.js → instanceVolumeId.zod.js} +8 -8
  313. package/dist/compute/v2/generated/validators/internetChargeType.zod.d.ts +1 -1
  314. package/dist/compute/v2/generated/validators/internetChargeType.zod.js +2 -2
  315. package/dist/compute/v2/generated/validators/ipv4HostAddress.zod.d.ts +41 -0
  316. package/dist/compute/v2/generated/validators/{iPv4HostAddress.zod.js → ipv4HostAddress.zod.js} +8 -8
  317. package/dist/compute/v2/generated/validators/latestOperation.zod.d.ts +1 -1
  318. package/dist/compute/v2/generated/validators/latestOperation.zod.js +1 -1
  319. package/dist/compute/v2/generated/validators/launchTemplate.zod.d.ts +1 -1
  320. package/dist/compute/v2/generated/validators/launchTemplate.zod.js +5 -5
  321. package/dist/compute/v2/generated/validators/launchTemplateBootVolume.zod.d.ts +1 -1
  322. package/dist/compute/v2/generated/validators/launchTemplateBootVolume.zod.js +5 -5
  323. package/dist/compute/v2/generated/validators/launchTemplateDataVolume.zod.d.ts +1 -1
  324. package/dist/compute/v2/generated/validators/launchTemplateDataVolume.zod.js +3 -3
  325. package/dist/compute/v2/generated/validators/{launchTemplateElasticIP.zod.d.ts → launchTemplateElasticIp.zod.d.ts} +5 -5
  326. package/dist/compute/v2/generated/validators/{launchTemplateElasticIP.zod.js → launchTemplateElasticIp.zod.js} +6 -6
  327. package/dist/compute/v2/generated/validators/launchTemplateId.zod.d.ts +41 -0
  328. package/dist/compute/v2/generated/validators/{launchTemplateID.zod.js → launchTemplateId.zod.js} +8 -8
  329. package/dist/compute/v2/generated/validators/launchTemplateListResponseBody.zod.d.ts +1 -1
  330. package/dist/compute/v2/generated/validators/launchTemplateListResponseBody.zod.js +1 -1
  331. package/dist/compute/v2/generated/validators/launchTemplateNetworkInterface.zod.d.ts +1 -1
  332. package/dist/compute/v2/generated/validators/launchTemplateNetworkInterface.zod.js +5 -5
  333. package/dist/compute/v2/generated/validators/launchTemplateReference.zod.d.ts +1 -1
  334. package/dist/compute/v2/generated/validators/launchTemplateReference.zod.js +3 -3
  335. package/dist/compute/v2/generated/validators/launchTemplateVersion.zod.d.ts +1 -1
  336. package/dist/compute/v2/generated/validators/launchTemplateVersion.zod.js +7 -7
  337. package/dist/compute/v2/generated/validators/launchTemplateVersionListResponseBody.zod.d.ts +1 -1
  338. package/dist/compute/v2/generated/validators/launchTemplateVersionListResponseBody.zod.js +1 -1
  339. package/dist/compute/v2/generated/validators/listAvailabilityZonesParams.zod.d.ts +1 -1
  340. package/dist/compute/v2/generated/validators/listAvailabilityZonesParams.zod.js +3 -3
  341. package/dist/compute/v2/generated/validators/listElasticIpLinesParams.zod.d.ts +1 -1
  342. package/dist/compute/v2/generated/validators/listElasticIpLinesParams.zod.js +3 -3
  343. package/dist/compute/v2/generated/validators/listElasticIpTrafficUsageParams.zod.d.ts +1 -1
  344. package/dist/compute/v2/generated/validators/listElasticIpTrafficUsageParams.zod.js +1 -1
  345. package/dist/compute/v2/generated/validators/listElasticIpsParams.zod.d.ts +1 -1
  346. package/dist/compute/v2/generated/validators/listElasticIpsParams.zod.js +1 -1
  347. package/dist/compute/v2/generated/validators/listInstanceFamiliesParams.zod.d.ts +1 -1
  348. package/dist/compute/v2/generated/validators/listInstanceFamiliesParams.zod.js +3 -3
  349. package/dist/compute/v2/generated/validators/listInstanceNetworkInterfacesParams.zod.d.ts +1 -1
  350. package/dist/compute/v2/generated/validators/listInstanceNetworkInterfacesParams.zod.js +1 -1
  351. package/dist/compute/v2/generated/validators/listInstanceTypesParams.zod.d.ts +1 -1
  352. package/dist/compute/v2/generated/validators/listInstanceTypesParams.zod.js +7 -7
  353. package/dist/compute/v2/generated/validators/listInstanceVolumesParams.zod.d.ts +1 -1
  354. package/dist/compute/v2/generated/validators/listInstanceVolumesParams.zod.js +1 -1
  355. package/dist/compute/v2/generated/validators/listInstancesParams.zod.d.ts +1 -1
  356. package/dist/compute/v2/generated/validators/listInstancesParams.zod.js +1 -1
  357. package/dist/compute/v2/generated/validators/listLaunchTemplateVersionsParams.zod.d.ts +1 -1
  358. package/dist/compute/v2/generated/validators/listLaunchTemplateVersionsParams.zod.js +1 -1
  359. package/dist/compute/v2/generated/validators/listLaunchTemplatesParams.zod.d.ts +1 -1
  360. package/dist/compute/v2/generated/validators/listLaunchTemplatesParams.zod.js +3 -3
  361. package/dist/compute/v2/generated/validators/listNetworkInterfacesParams.zod.d.ts +1 -1
  362. package/dist/compute/v2/generated/validators/listNetworkInterfacesParams.zod.js +1 -1
  363. package/dist/compute/v2/generated/validators/listOperationLogsParams.zod.d.ts +1 -1
  364. package/dist/compute/v2/generated/validators/listOperationLogsParams.zod.js +1 -1
  365. package/dist/compute/v2/generated/validators/listPrivateImagesParams.zod.d.ts +1 -1
  366. package/dist/compute/v2/generated/validators/listPrivateImagesParams.zod.js +3 -3
  367. package/dist/compute/v2/generated/validators/listPublicImagesParams.zod.d.ts +1 -1
  368. package/dist/compute/v2/generated/validators/listPublicImagesParams.zod.js +3 -3
  369. package/dist/compute/v2/generated/validators/listQuotasParams.zod.d.ts +1 -1
  370. package/dist/compute/v2/generated/validators/listQuotasParams.zod.js +1 -1
  371. package/dist/compute/v2/generated/validators/listRegionsParams.zod.d.ts +1 -1
  372. package/dist/compute/v2/generated/validators/listRegionsParams.zod.js +1 -1
  373. package/dist/compute/v2/generated/validators/listSecurityGroupRulesParams.zod.d.ts +1 -1
  374. package/dist/compute/v2/generated/validators/listSecurityGroupRulesParams.zod.js +1 -1
  375. package/dist/compute/v2/generated/validators/listSecurityGroupsParams.zod.d.ts +1 -1
  376. package/dist/compute/v2/generated/validators/listSecurityGroupsParams.zod.js +5 -5
  377. package/dist/compute/v2/generated/validators/listVirtualPrivateCloudPeeringsParams.zod.d.ts +1 -1
  378. package/dist/compute/v2/generated/validators/listVirtualPrivateCloudPeeringsParams.zod.js +1 -1
  379. package/dist/compute/v2/generated/validators/listVirtualPrivateCloudRoutesParams.zod.d.ts +1 -1
  380. package/dist/compute/v2/generated/validators/listVirtualPrivateCloudRoutesParams.zod.js +1 -1
  381. package/dist/compute/v2/generated/validators/listVirtualPrivateCloudSubnetsParams.zod.d.ts +1 -1
  382. package/dist/compute/v2/generated/validators/listVirtualPrivateCloudSubnetsParams.zod.js +1 -1
  383. package/dist/compute/v2/generated/validators/listVirtualPrivateCloudsParams.zod.d.ts +1 -1
  384. package/dist/compute/v2/generated/validators/listVirtualPrivateCloudsParams.zod.js +3 -3
  385. package/dist/compute/v2/generated/validators/listVolumeBackupsParams.zod.d.ts +1 -1
  386. package/dist/compute/v2/generated/validators/listVolumeBackupsParams.zod.js +3 -3
  387. package/dist/compute/v2/generated/validators/listVolumeSnapshotsParams.zod.d.ts +1 -1
  388. package/dist/compute/v2/generated/validators/listVolumeSnapshotsParams.zod.js +3 -3
  389. package/dist/compute/v2/generated/validators/listVolumeTypesParams.zod.d.ts +1 -1
  390. package/dist/compute/v2/generated/validators/listVolumeTypesParams.zod.js +5 -5
  391. package/dist/compute/v2/generated/validators/listVolumesParams.zod.d.ts +1 -1
  392. package/dist/compute/v2/generated/validators/listVolumesParams.zod.js +5 -5
  393. package/dist/compute/v2/generated/validators/money.zod.d.ts +1 -1
  394. package/dist/compute/v2/generated/validators/money.zod.js +1 -1
  395. package/dist/compute/v2/generated/validators/networkInterface.zod.d.ts +1 -1
  396. package/dist/compute/v2/generated/validators/networkInterface.zod.js +7 -7
  397. package/dist/compute/v2/generated/validators/networkInterfaceAddress.zod.d.ts +1 -1
  398. package/dist/compute/v2/generated/validators/networkInterfaceAddress.zod.js +5 -5
  399. package/dist/compute/v2/generated/validators/networkInterfaceAddressAssociationTarget.zod.d.ts +1 -1
  400. package/dist/compute/v2/generated/validators/networkInterfaceAddressAssociationTarget.zod.js +3 -3
  401. package/dist/compute/v2/generated/validators/{regionID.zod.d.ts → networkInterfaceAddressId.zod.d.ts} +7 -7
  402. package/dist/compute/v2/generated/validators/networkInterfaceAddressId.zod.js +44 -0
  403. package/dist/compute/v2/generated/validators/networkInterfaceAttachment.zod.d.ts +1 -1
  404. package/dist/compute/v2/generated/validators/networkInterfaceAttachment.zod.js +7 -7
  405. package/dist/compute/v2/generated/validators/networkInterfaceAttachmentList.zod.d.ts +1 -1
  406. package/dist/compute/v2/generated/validators/networkInterfaceAttachmentList.zod.js +1 -1
  407. package/dist/compute/v2/generated/validators/networkInterfaceId.zod.d.ts +41 -0
  408. package/dist/compute/v2/generated/validators/{networkInterfaceID.zod.js → networkInterfaceId.zod.js} +8 -8
  409. package/dist/compute/v2/generated/validators/networkInterfaceListResponseBody.zod.d.ts +1 -1
  410. package/dist/compute/v2/generated/validators/networkInterfaceListResponseBody.zod.js +1 -1
  411. package/dist/compute/v2/generated/validators/newBootVolume.zod.d.ts +1 -1
  412. package/dist/compute/v2/generated/validators/newBootVolume.zod.js +5 -5
  413. package/dist/compute/v2/generated/validators/newCompute.zod.d.ts +1 -1
  414. package/dist/compute/v2/generated/validators/newCompute.zod.js +3 -3
  415. package/dist/compute/v2/generated/validators/newDataVolume.zod.d.ts +1 -1
  416. package/dist/compute/v2/generated/validators/newDataVolume.zod.js +3 -3
  417. package/dist/compute/v2/generated/validators/{newElasticIP.zod.d.ts → newElasticIp.zod.d.ts} +5 -5
  418. package/dist/compute/v2/generated/validators/{newElasticIP.zod.js → newElasticIp.zod.js} +6 -6
  419. package/dist/compute/v2/generated/validators/newLaunchTemplateVersion.zod.d.ts +1 -1
  420. package/dist/compute/v2/generated/validators/newLaunchTemplateVersion.zod.js +5 -5
  421. package/dist/compute/v2/generated/validators/newPrimaryNetworkInterface.zod.d.ts +1 -1
  422. package/dist/compute/v2/generated/validators/newPrimaryNetworkInterface.zod.js +5 -5
  423. package/dist/compute/v2/generated/validators/offsetPagination.zod.d.ts +1 -1
  424. package/dist/compute/v2/generated/validators/offsetPagination.zod.js +1 -1
  425. package/dist/compute/v2/generated/validators/operationLogId.zod.d.ts +41 -0
  426. package/dist/compute/v2/generated/validators/{operationLogID.zod.js → operationLogId.zod.js} +8 -8
  427. package/dist/compute/v2/generated/validators/operationLogListResponseBody.zod.d.ts +1 -1
  428. package/dist/compute/v2/generated/validators/operationLogListResponseBody.zod.js +1 -1
  429. package/dist/compute/v2/generated/validators/operationLogResource.zod.d.ts +1 -1
  430. package/dist/compute/v2/generated/validators/operationLogResource.zod.js +5 -5
  431. package/dist/compute/v2/generated/validators/passwordChoice.zod.d.ts +1 -1
  432. package/dist/compute/v2/generated/validators/passwordChoice.zod.js +1 -1
  433. package/dist/compute/v2/generated/validators/performanceFormula.zod.d.ts +1 -1
  434. package/dist/compute/v2/generated/validators/performanceFormula.zod.js +1 -1
  435. package/dist/compute/v2/generated/validators/primaryNetworkInterface.zod.d.ts +1 -1
  436. package/dist/compute/v2/generated/validators/primaryNetworkInterface.zod.js +1 -1
  437. package/dist/compute/v2/generated/validators/privateImageListResponseBody.zod.d.ts +3 -1
  438. package/dist/compute/v2/generated/validators/privateImageListResponseBody.zod.js +1 -1
  439. package/dist/compute/v2/generated/validators/privateImageReleaseResource.zod.d.ts +1 -1
  440. package/dist/compute/v2/generated/validators/privateImageReleaseResource.zod.js +3 -3
  441. package/dist/compute/v2/generated/validators/privateImageResource.zod.d.ts +3 -1
  442. package/dist/compute/v2/generated/validators/privateImageResource.zod.js +13 -9
  443. package/dist/compute/v2/generated/validators/projectQuota.zod.d.ts +1 -1
  444. package/dist/compute/v2/generated/validators/projectQuota.zod.js +3 -3
  445. package/dist/compute/v2/generated/validators/projectQuotaListResponseBody.zod.d.ts +1 -1
  446. package/dist/compute/v2/generated/validators/projectQuotaListResponseBody.zod.js +1 -1
  447. package/dist/compute/v2/generated/validators/publicImageListResponseBody.zod.d.ts +1 -1
  448. package/dist/compute/v2/generated/validators/publicImageListResponseBody.zod.js +1 -1
  449. package/dist/compute/v2/generated/validators/publicImageResource.zod.d.ts +1 -1
  450. package/dist/compute/v2/generated/validators/publicImageResource.zod.js +5 -5
  451. package/dist/compute/v2/generated/validators/quotaResourceType.zod.d.ts +1 -1
  452. package/dist/compute/v2/generated/validators/quotaResourceType.zod.js +1 -1
  453. package/dist/compute/v2/generated/validators/quotaSource.zod.d.ts +1 -1
  454. package/dist/compute/v2/generated/validators/quotaSource.zod.js +1 -1
  455. package/dist/compute/v2/generated/validators/rebootInstanceRequestBody.zod.d.ts +1 -1
  456. package/dist/compute/v2/generated/validators/rebootInstanceRequestBody.zod.js +1 -1
  457. package/dist/compute/v2/generated/validators/rebuildInstanceRequestBody.zod.d.ts +1 -1
  458. package/dist/compute/v2/generated/validators/rebuildInstanceRequestBody.zod.js +3 -3
  459. package/dist/compute/v2/generated/validators/rebuildInstanceResponseBody.zod.d.ts +3 -1
  460. package/dist/compute/v2/generated/validators/rebuildInstanceResponseBody.zod.js +1 -1
  461. package/dist/compute/v2/generated/validators/regionId.zod.d.ts +41 -0
  462. package/dist/compute/v2/generated/validators/{regionID.zod.js → regionId.zod.js} +8 -8
  463. package/dist/compute/v2/generated/validators/regionListResponseBody.zod.d.ts +1 -1
  464. package/dist/compute/v2/generated/validators/regionListResponseBody.zod.js +1 -1
  465. package/dist/compute/v2/generated/validators/regionResource.zod.d.ts +1 -1
  466. package/dist/compute/v2/generated/validators/regionResource.zod.js +3 -3
  467. package/dist/compute/v2/generated/validators/releaseResource.zod.d.ts +1 -1
  468. package/dist/compute/v2/generated/validators/releaseResource.zod.js +3 -3
  469. package/dist/compute/v2/generated/validators/releaseSetItem.zod.d.ts +2 -1
  470. package/dist/compute/v2/generated/validators/releaseSetItem.zod.js +4 -3
  471. package/dist/compute/v2/generated/validators/replaceNetworkInterfaceSecurityGroupsRequestBody.zod.d.ts +41 -0
  472. package/dist/compute/v2/generated/validators/replaceNetworkInterfaceSecurityGroupsRequestBody.zod.js +44 -0
  473. package/dist/compute/v2/generated/validators/rescueInstanceResponseBody.zod.d.ts +3 -1
  474. package/dist/compute/v2/generated/validators/rescueInstanceResponseBody.zod.js +1 -1
  475. package/dist/compute/v2/generated/validators/resetInstancePasswordResponseBody.zod.d.ts +1 -1
  476. package/dist/compute/v2/generated/validators/resetInstancePasswordResponseBody.zod.js +1 -1
  477. package/dist/compute/v2/generated/validators/resizeInstanceRequestBody.zod.d.ts +50 -0
  478. package/dist/compute/v2/generated/validators/resizeInstanceRequestBody.zod.js +45 -0
  479. package/dist/compute/v2/generated/validators/{updateInstanceResponseBody.zod.d.ts → resizeInstanceResponseBody.zod.d.ts} +7 -5
  480. package/dist/compute/v2/generated/validators/{availabilityZoneID.zod.js → resizeInstanceResponseBody.zod.js} +14 -10
  481. package/dist/compute/v2/generated/validators/resizeVolumeRequestBody.zod.d.ts +50 -0
  482. package/dist/compute/v2/generated/validators/resizeVolumeRequestBody.zod.js +44 -0
  483. package/dist/compute/v2/generated/validators/retypeVolumeRequestBody.zod.d.ts +50 -0
  484. package/dist/compute/v2/generated/validators/retypeVolumeRequestBody.zod.js +45 -0
  485. package/dist/compute/v2/generated/validators/revertVolumeRequestBody.zod.d.ts +1 -1
  486. package/dist/compute/v2/generated/validators/revertVolumeRequestBody.zod.js +3 -3
  487. package/dist/compute/v2/generated/validators/runInstanceCommandRequestBody.zod.d.ts +1 -1
  488. package/dist/compute/v2/generated/validators/runInstanceCommandRequestBody.zod.js +1 -1
  489. package/dist/compute/v2/generated/validators/runInstanceCommandResponseBody.zod.d.ts +1 -1
  490. package/dist/compute/v2/generated/validators/runInstanceCommandResponseBody.zod.js +1 -1
  491. package/dist/compute/v2/generated/validators/securityGroup.zod.d.ts +1 -1
  492. package/dist/compute/v2/generated/validators/securityGroup.zod.js +5 -5
  493. package/dist/compute/v2/generated/validators/securityGroupId.zod.d.ts +41 -0
  494. package/dist/compute/v2/generated/validators/{securityGroupID.zod.js → securityGroupId.zod.js} +8 -8
  495. package/dist/compute/v2/generated/validators/securityGroupIdOrWildcard.zod.d.ts +39 -0
  496. package/dist/compute/v2/generated/validators/{securityGroupIDOrWildcard.zod.js → securityGroupIdOrWildcard.zod.js} +4 -4
  497. package/dist/compute/v2/generated/validators/securityGroupListResponseBody.zod.d.ts +1 -1
  498. package/dist/compute/v2/generated/validators/securityGroupListResponseBody.zod.js +1 -1
  499. package/dist/compute/v2/generated/validators/securityGroupRule.zod.d.ts +1 -1
  500. package/dist/compute/v2/generated/validators/securityGroupRule.zod.js +5 -5
  501. package/dist/compute/v2/generated/validators/securityGroupRuleDirection.zod.d.ts +1 -1
  502. package/dist/compute/v2/generated/validators/securityGroupRuleDirection.zod.js +1 -1
  503. package/dist/compute/v2/generated/validators/securityGroupRuleId.zod.d.ts +41 -0
  504. package/dist/compute/v2/generated/validators/securityGroupRuleId.zod.js +44 -0
  505. package/dist/compute/v2/generated/validators/securityGroupRuleListResponseBody.zod.d.ts +1 -1
  506. package/dist/compute/v2/generated/validators/securityGroupRuleListResponseBody.zod.js +1 -1
  507. package/dist/compute/v2/generated/validators/subnetId.zod.d.ts +41 -0
  508. package/dist/compute/v2/generated/validators/{subnetID.zod.js → subnetId.zod.js} +8 -8
  509. package/dist/compute/v2/generated/validators/suppliedPassword.zod.d.ts +1 -1
  510. package/dist/compute/v2/generated/validators/suppliedPassword.zod.js +1 -1
  511. package/dist/compute/v2/generated/validators/terminationPolicy.zod.d.ts +1 -1
  512. package/dist/compute/v2/generated/validators/terminationPolicy.zod.js +1 -1
  513. package/dist/compute/v2/generated/validators/trafficUsage.zod.d.ts +1 -1
  514. package/dist/compute/v2/generated/validators/trafficUsage.zod.js +1 -1
  515. package/dist/compute/v2/generated/validators/trafficUsageListResponseBody.zod.d.ts +1 -1
  516. package/dist/compute/v2/generated/validators/trafficUsageListResponseBody.zod.js +1 -1
  517. package/dist/compute/v2/generated/validators/updateInstanceRequestBody.zod.d.ts +1 -11
  518. package/dist/compute/v2/generated/validators/updateInstanceRequestBody.zod.js +2 -10
  519. package/dist/compute/v2/generated/validators/updateLaunchTemplateRequestBody.zod.d.ts +1 -1
  520. package/dist/compute/v2/generated/validators/updateLaunchTemplateRequestBody.zod.js +1 -1
  521. package/dist/compute/v2/generated/validators/updateNetworkInterfaceRequestBody.zod.d.ts +1 -3
  522. package/dist/compute/v2/generated/validators/updateNetworkInterfaceRequestBody.zod.js +2 -10
  523. package/dist/compute/v2/generated/validators/updatePrivateImageRequestBody.zod.d.ts +1 -1
  524. package/dist/compute/v2/generated/validators/updatePrivateImageRequestBody.zod.js +1 -1
  525. package/dist/compute/v2/generated/validators/updateSecurityGroupRequestBody.zod.d.ts +1 -1
  526. package/dist/compute/v2/generated/validators/updateSecurityGroupRequestBody.zod.js +1 -1
  527. package/dist/compute/v2/generated/validators/updateVirtualPrivateCloudRequestBody.zod.d.ts +1 -1
  528. package/dist/compute/v2/generated/validators/updateVirtualPrivateCloudRequestBody.zod.js +1 -1
  529. package/dist/compute/v2/generated/validators/updateVirtualPrivateCloudSubnetRequestBody.zod.d.ts +1 -1
  530. package/dist/compute/v2/generated/validators/updateVirtualPrivateCloudSubnetRequestBody.zod.js +1 -1
  531. package/dist/compute/v2/generated/validators/updateVolumeBackupRequestBody.zod.d.ts +1 -1
  532. package/dist/compute/v2/generated/validators/updateVolumeBackupRequestBody.zod.js +1 -1
  533. package/dist/compute/v2/generated/validators/updateVolumeRequestBody.zod.d.ts +1 -12
  534. package/dist/compute/v2/generated/validators/updateVolumeRequestBody.zod.js +2 -15
  535. package/dist/compute/v2/generated/validators/updateVolumeSnapshotRequestBody.zod.d.ts +1 -1
  536. package/dist/compute/v2/generated/validators/updateVolumeSnapshotRequestBody.zod.js +1 -1
  537. package/dist/compute/v2/generated/validators/virtualPrivateCloud.zod.d.ts +1 -1
  538. package/dist/compute/v2/generated/validators/virtualPrivateCloud.zod.js +5 -5
  539. package/dist/compute/v2/generated/validators/virtualPrivateCloudId.zod.d.ts +41 -0
  540. package/dist/compute/v2/generated/validators/virtualPrivateCloudId.zod.js +44 -0
  541. package/dist/compute/v2/generated/validators/virtualPrivateCloudIdOrWildcard.zod.d.ts +39 -0
  542. package/dist/compute/v2/generated/validators/{virtualPrivateCloudIDOrWildcard.zod.js → virtualPrivateCloudIdOrWildcard.zod.js} +4 -4
  543. package/dist/compute/v2/generated/validators/virtualPrivateCloudListResponseBody.zod.d.ts +1 -1
  544. package/dist/compute/v2/generated/validators/virtualPrivateCloudListResponseBody.zod.js +1 -1
  545. package/dist/compute/v2/generated/validators/virtualPrivateCloudPeeringId.zod.d.ts +41 -0
  546. package/dist/compute/v2/generated/validators/virtualPrivateCloudPeeringId.zod.js +44 -0
  547. package/dist/compute/v2/generated/validators/virtualPrivateCloudPeeringListResponseBody.zod.d.ts +1 -1
  548. package/dist/compute/v2/generated/validators/virtualPrivateCloudPeeringListResponseBody.zod.js +1 -1
  549. package/dist/compute/v2/generated/validators/virtualPrivateCloudPeeringResource.zod.d.ts +1 -1
  550. package/dist/compute/v2/generated/validators/virtualPrivateCloudPeeringResource.zod.js +8 -8
  551. package/dist/compute/v2/generated/validators/virtualPrivateCloudRouteId.zod.d.ts +41 -0
  552. package/dist/compute/v2/generated/validators/virtualPrivateCloudRouteId.zod.js +44 -0
  553. package/dist/compute/v2/generated/validators/virtualPrivateCloudRouteListResponseBody.zod.d.ts +1 -1
  554. package/dist/compute/v2/generated/validators/virtualPrivateCloudRouteListResponseBody.zod.js +1 -1
  555. package/dist/compute/v2/generated/validators/virtualPrivateCloudRouteResource.zod.d.ts +1 -1
  556. package/dist/compute/v2/generated/validators/virtualPrivateCloudRouteResource.zod.js +7 -7
  557. package/dist/compute/v2/generated/validators/virtualPrivateCloudRouteType.zod.d.ts +1 -1
  558. package/dist/compute/v2/generated/validators/virtualPrivateCloudRouteType.zod.js +1 -1
  559. package/dist/compute/v2/generated/validators/virtualPrivateCloudSubnet.zod.d.ts +1 -1
  560. package/dist/compute/v2/generated/validators/virtualPrivateCloudSubnet.zod.js +5 -5
  561. package/dist/compute/v2/generated/validators/virtualPrivateCloudSubnetListResponseBody.zod.d.ts +1 -1
  562. package/dist/compute/v2/generated/validators/virtualPrivateCloudSubnetListResponseBody.zod.js +1 -1
  563. package/dist/compute/v2/generated/validators/volumeAttachment.zod.d.ts +1 -1
  564. package/dist/compute/v2/generated/validators/volumeAttachment.zod.js +7 -7
  565. package/dist/compute/v2/generated/validators/volumeAttachmentList.zod.d.ts +1 -1
  566. package/dist/compute/v2/generated/validators/volumeAttachmentList.zod.js +1 -1
  567. package/dist/compute/v2/generated/validators/volumeBackupId.zod.d.ts +41 -0
  568. package/dist/compute/v2/generated/validators/{volumeBackupID.zod.js → volumeBackupId.zod.js} +8 -8
  569. package/dist/compute/v2/generated/validators/volumeBackupListResponseBody.zod.d.ts +3 -1
  570. package/dist/compute/v2/generated/validators/volumeBackupListResponseBody.zod.js +1 -1
  571. package/dist/compute/v2/generated/validators/volumeBackupReleaseResource.zod.d.ts +1 -1
  572. package/dist/compute/v2/generated/validators/volumeBackupReleaseResource.zod.js +3 -3
  573. package/dist/compute/v2/generated/validators/volumeBackupResource.zod.d.ts +3 -1
  574. package/dist/compute/v2/generated/validators/volumeBackupResource.zod.js +15 -11
  575. package/dist/compute/v2/generated/validators/{updateVolumeResponseBody.zod.d.ts → volumeChangeResponseBody.zod.d.ts} +7 -5
  576. package/dist/compute/v2/generated/validators/{availabilityZoneID.zod.d.ts → volumeChangeResponseBody.zod.js} +14 -7
  577. package/dist/compute/v2/generated/validators/volumeId.zod.d.ts +41 -0
  578. package/dist/compute/v2/generated/validators/{volumeID.zod.js → volumeId.zod.js} +8 -8
  579. package/dist/compute/v2/generated/validators/volumeListResponseBody.zod.d.ts +3 -1
  580. package/dist/compute/v2/generated/validators/volumeListResponseBody.zod.js +1 -1
  581. package/dist/compute/v2/generated/validators/volumePerformance.zod.d.ts +1 -1
  582. package/dist/compute/v2/generated/validators/volumePerformance.zod.js +1 -1
  583. package/dist/compute/v2/generated/validators/volumeReleaseResource.zod.d.ts +1 -1
  584. package/dist/compute/v2/generated/validators/volumeReleaseResource.zod.js +3 -3
  585. package/dist/compute/v2/generated/validators/volumeResource.zod.d.ts +3 -1
  586. package/dist/compute/v2/generated/validators/volumeResource.zod.js +15 -11
  587. package/dist/compute/v2/generated/validators/volumeSnapshotId.zod.d.ts +41 -0
  588. package/dist/compute/v2/generated/validators/{volumeSnapshotID.zod.js → volumeSnapshotId.zod.js} +8 -8
  589. package/dist/compute/v2/generated/validators/volumeSnapshotListResponseBody.zod.d.ts +3 -1
  590. package/dist/compute/v2/generated/validators/volumeSnapshotListResponseBody.zod.js +1 -1
  591. package/dist/compute/v2/generated/validators/volumeSnapshotReleaseResource.zod.d.ts +1 -1
  592. package/dist/compute/v2/generated/validators/volumeSnapshotReleaseResource.zod.js +3 -3
  593. package/dist/compute/v2/generated/validators/volumeSnapshotResource.zod.d.ts +3 -1
  594. package/dist/compute/v2/generated/validators/volumeSnapshotResource.zod.js +15 -11
  595. package/dist/compute/v2/generated/validators/volumeTypeId.zod.d.ts +41 -0
  596. package/dist/compute/v2/generated/validators/{volumeTypeID.zod.js → volumeTypeId.zod.js} +8 -8
  597. package/dist/compute/v2/generated/validators/volumeTypeListResponseBody.zod.d.ts +1 -1
  598. package/dist/compute/v2/generated/validators/volumeTypeListResponseBody.zod.js +1 -1
  599. package/dist/compute/v2/generated/validators/volumeTypePerformance.zod.d.ts +1 -1
  600. package/dist/compute/v2/generated/validators/volumeTypePerformance.zod.js +1 -1
  601. package/dist/compute/v2/generated/validators/volumeTypeResource.zod.d.ts +1 -1
  602. package/dist/compute/v2/generated/validators/volumeTypeResource.zod.js +7 -7
  603. package/dist/membership/v1/generated/models.d.ts +5 -0
  604. package/dist/membership/v1/generated/schemas.zod.d.ts +2 -0
  605. package/dist/membership/v1/generated/validators/checkoutOptions.zod.d.ts +2 -0
  606. package/dist/membership/v1/generated/validators/checkoutOptions.zod.js +5 -0
  607. package/dist/membership/v1/generated/validators/membershipCreate.zod.d.ts +1 -0
  608. package/dist/membership/v1/generated/validators/membershipUpgrade.zod.d.ts +1 -0
  609. package/dist/routes.d.ts +59 -19
  610. package/dist/routes.js +65 -20
  611. package/package.json +1 -1
  612. package/dist/compute/v2/generated/validators/elasticIPAssociationID.zod.d.ts +0 -41
  613. package/dist/compute/v2/generated/validators/elasticIPAssociationID.zod.js +0 -44
  614. package/dist/compute/v2/generated/validators/elasticIPID.zod.d.ts +0 -41
  615. package/dist/compute/v2/generated/validators/elasticIPLineID.zod.d.ts +0 -41
  616. package/dist/compute/v2/generated/validators/elasticIPLineID.zod.js +0 -44
  617. package/dist/compute/v2/generated/validators/iPv4HostAddress.zod.d.ts +0 -41
  618. package/dist/compute/v2/generated/validators/instanceFamilyID.zod.d.ts +0 -41
  619. package/dist/compute/v2/generated/validators/instanceID.zod.d.ts +0 -41
  620. package/dist/compute/v2/generated/validators/instanceNetworkInterfaceID.zod.d.ts +0 -41
  621. package/dist/compute/v2/generated/validators/instanceNetworkInterfaceID.zod.js +0 -44
  622. package/dist/compute/v2/generated/validators/instanceTypeID.zod.d.ts +0 -41
  623. package/dist/compute/v2/generated/validators/instanceVolumeID.zod.d.ts +0 -41
  624. package/dist/compute/v2/generated/validators/launchTemplateID.zod.d.ts +0 -41
  625. package/dist/compute/v2/generated/validators/networkInterfaceAddressID.zod.d.ts +0 -41
  626. package/dist/compute/v2/generated/validators/networkInterfaceAddressID.zod.js +0 -44
  627. package/dist/compute/v2/generated/validators/networkInterfaceID.zod.d.ts +0 -41
  628. package/dist/compute/v2/generated/validators/operationLogID.zod.d.ts +0 -41
  629. package/dist/compute/v2/generated/validators/securityGroupID.zod.d.ts +0 -41
  630. package/dist/compute/v2/generated/validators/securityGroupIDOrWildcard.zod.d.ts +0 -39
  631. package/dist/compute/v2/generated/validators/securityGroupRuleID.zod.d.ts +0 -41
  632. package/dist/compute/v2/generated/validators/securityGroupRuleID.zod.js +0 -44
  633. package/dist/compute/v2/generated/validators/subnetID.zod.d.ts +0 -41
  634. package/dist/compute/v2/generated/validators/updateElasticIPRequestBody.zod.js +0 -48
  635. package/dist/compute/v2/generated/validators/updateElasticIPResponseBody.zod.js +0 -49
  636. package/dist/compute/v2/generated/validators/updateInstanceResponseBody.zod.js +0 -49
  637. package/dist/compute/v2/generated/validators/updateVolumeResponseBody.zod.js +0 -49
  638. package/dist/compute/v2/generated/validators/virtualPrivateCloudID.zod.d.ts +0 -41
  639. package/dist/compute/v2/generated/validators/virtualPrivateCloudID.zod.js +0 -44
  640. package/dist/compute/v2/generated/validators/virtualPrivateCloudIDOrWildcard.zod.d.ts +0 -39
  641. package/dist/compute/v2/generated/validators/virtualPrivateCloudPeeringID.zod.d.ts +0 -41
  642. package/dist/compute/v2/generated/validators/virtualPrivateCloudPeeringID.zod.js +0 -44
  643. package/dist/compute/v2/generated/validators/virtualPrivateCloudRouteID.zod.d.ts +0 -41
  644. package/dist/compute/v2/generated/validators/virtualPrivateCloudRouteID.zod.js +0 -44
  645. package/dist/compute/v2/generated/validators/volumeBackupID.zod.d.ts +0 -41
  646. package/dist/compute/v2/generated/validators/volumeID.zod.d.ts +0 -41
  647. package/dist/compute/v2/generated/validators/volumeSnapshotID.zod.d.ts +0 -41
  648. package/dist/compute/v2/generated/validators/volumeTypeID.zod.d.ts +0 -41
@@ -0,0 +1,104 @@
1
+ /**
2
+ * Generated by orval 🍺
3
+ * Do not edit manually.
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.
6
+ * OpenAPI spec version: v1
7
+ */
8
+ import * as zod from "zod";
9
+ export declare const subscriptionItemDiscountedRenewalsRemainingMin = 0;
10
+ export declare const SubscriptionItem: zod.ZodObject<{
11
+ id: zod.ZodUUID;
12
+ subscription_id: zod.ZodUUID;
13
+ plan_id: zod.ZodUUID;
14
+ plan_name: zod.ZodString;
15
+ price_id: zod.ZodUUID;
16
+ type: zod.ZodEnum<{
17
+ one_time: "one_time";
18
+ recurring: "recurring";
19
+ }>;
20
+ usage_type: zod.ZodEnum<{
21
+ licensed: "licensed";
22
+ metered: "metered";
23
+ }>;
24
+ dimensions: zod.ZodRecord<zod.ZodString, zod.ZodString>;
25
+ quantity: zod.ZodString;
26
+ recurring_amount: zod.ZodOptional<zod.ZodString>;
27
+ renewal_discounts_enabled: zod.ZodOptional<zod.ZodBoolean>;
28
+ cancellation_policy: zod.ZodOptional<zod.ZodEnum<{
29
+ immediate: "immediate";
30
+ period_end: "period_end";
31
+ }>>;
32
+ refund_policy: zod.ZodOptional<zod.ZodEnum<{
33
+ none: "none";
34
+ prorated: "prorated";
35
+ short_rate: "short_rate";
36
+ }>>;
37
+ short_rate_multiplier: zod.ZodOptional<zod.ZodString>;
38
+ short_rate_threshold_seconds: zod.ZodOptional<zod.ZodInt>;
39
+ monthly_list_amount: zod.ZodOptional<zod.ZodString>;
40
+ coupon_id: zod.ZodOptional<zod.ZodUUID>;
41
+ coupon: zod.ZodOptional<zod.ZodObject<{
42
+ lookup_key: zod.ZodOptional<zod.ZodString>;
43
+ id: zod.ZodUUID;
44
+ name: zod.ZodString;
45
+ }, zod.z.core.$strict>>;
46
+ discounted_renewals_remaining: zod.ZodOptional<zod.ZodInt>;
47
+ order_item_id: zod.ZodOptional<zod.ZodUUID>;
48
+ cancellation: zod.ZodOptional<zod.ZodObject<{
49
+ reason: zod.ZodOptional<zod.ZodString>;
50
+ cancellation_id: zod.ZodOptional<zod.ZodUUID>;
51
+ id: zod.ZodUUID;
52
+ subscription_item_id: zod.ZodUUID;
53
+ status: zod.ZodEnum<{
54
+ scheduled: "scheduled";
55
+ completed: "completed";
56
+ failed: "failed";
57
+ requested: "requested";
58
+ releasing: "releasing";
59
+ canceled: "canceled";
60
+ }>;
61
+ mode: zod.ZodEnum<{
62
+ immediate: "immediate";
63
+ period_end: "period_end";
64
+ }>;
65
+ requested_at: zod.z.ZodISODateTime;
66
+ scheduled_at: zod.ZodOptional<zod.z.ZodISODateTime>;
67
+ effective_at: zod.ZodOptional<zod.z.ZodISODateTime>;
68
+ completed_at: zod.ZodOptional<zod.z.ZodISODateTime>;
69
+ release_started_at: zod.ZodOptional<zod.z.ZodISODateTime>;
70
+ canceled_at: zod.ZodOptional<zod.z.ZodISODateTime>;
71
+ forfeit_remaining_value: zod.ZodBoolean;
72
+ failure_code: zod.ZodOptional<zod.ZodString>;
73
+ failure_reason: zod.ZodOptional<zod.ZodString>;
74
+ }, zod.z.core.$strict>>;
75
+ scheduled_change: zod.ZodOptional<zod.ZodUnion<readonly [zod.ZodObject<{
76
+ order_id: zod.ZodUUID;
77
+ status: zod.ZodEnum<{
78
+ completed: "completed";
79
+ failed: "failed";
80
+ pending: "pending";
81
+ canceled: "canceled";
82
+ accepted: "accepted";
83
+ partially_completed: "partially_completed";
84
+ }>;
85
+ effective_at: zod.z.ZodISODateTime;
86
+ plan_id: zod.ZodUUID;
87
+ plan_name: zod.ZodString;
88
+ price_id: zod.ZodUUID;
89
+ quantity: zod.ZodString;
90
+ recurring_amount: zod.ZodString;
91
+ currency: zod.ZodString;
92
+ interval: zod.ZodEnum<{
93
+ day: "day";
94
+ month: "month";
95
+ year: "year";
96
+ }>;
97
+ interval_count: zod.ZodInt;
98
+ }, zod.z.core.$strict>, zod.ZodNull]>>;
99
+ created_at: zod.ZodOptional<zod.z.ZodISODateTime>;
100
+ started_at: zod.ZodOptional<zod.ZodNullable<zod.z.ZodISODateTime>>;
101
+ ended_at: zod.ZodOptional<zod.ZodNullable<zod.z.ZodISODateTime>>;
102
+ }, zod.z.core.$strict>;
103
+ export type SubscriptionItem = zod.input<typeof SubscriptionItem>;
104
+ export type SubscriptionItemOutput = zod.output<typeof SubscriptionItem>;
@@ -0,0 +1,74 @@
1
+ /**
2
+ * Generated by orval 🍺
3
+ * Do not edit manually.
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.
6
+ * OpenAPI spec version: v1
7
+ */
8
+ import * as zod from "zod";
9
+ import { CancellationPolicy } from "./cancellationPolicy.zod.js";
10
+ import { ObjectIdentity } from "./objectIdentity.zod.js";
11
+ import { PriceType } from "./priceType.zod.js";
12
+ import { RefundPolicy } from "./refundPolicy.zod.js";
13
+ import { ScheduledChange } from "./scheduledChange.zod.js";
14
+ import { SubscriptionItemCancellation } from "./subscriptionItemCancellation.zod.js";
15
+ import { UsageType } from "./usageType.zod.js";
16
+ export const subscriptionItemDiscountedRenewalsRemainingMin = 0;
17
+ export const SubscriptionItem = zod
18
+ .strictObject({
19
+ id: zod.uuid(),
20
+ subscription_id: zod.uuid(),
21
+ plan_id: zod.uuid(),
22
+ plan_name: zod.string(),
23
+ price_id: zod.uuid(),
24
+ type: PriceType,
25
+ usage_type: UsageType,
26
+ dimensions: zod
27
+ .record(zod.string(), zod.string())
28
+ .describe("The dimension values of what was bought, such as region and instance type. Empty when the purchase gave none."),
29
+ quantity: zod.string(),
30
+ recurring_amount: zod
31
+ .string()
32
+ .optional()
33
+ .describe("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."),
34
+ renewal_discounts_enabled: zod
35
+ .boolean()
36
+ .optional()
37
+ .describe("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."),
38
+ cancellation_policy: CancellationPolicy.optional(),
39
+ refund_policy: RefundPolicy.optional(),
40
+ short_rate_multiplier: zod
41
+ .string()
42
+ .optional()
43
+ .describe("Refund policy `short_rate` only, as on the price bought."),
44
+ short_rate_threshold_seconds: zod
45
+ .int()
46
+ .optional()
47
+ .describe("Refund policy `short_rate` only, as on the price bought."),
48
+ monthly_list_amount: zod
49
+ .string()
50
+ .optional()
51
+ .describe("Licensed recurring only, the `monthly_list_amount` that a renewal at the agreed amount keeps; see the order item."),
52
+ coupon_id: zod.uuid().optional(),
53
+ coupon: ObjectIdentity.optional(),
54
+ discounted_renewals_remaining: zod
55
+ .int()
56
+ .min(subscriptionItemDiscountedRenewalsRemainingMin)
57
+ .optional(),
58
+ order_item_id: zod.uuid().optional().describe("The order item that created it."),
59
+ cancellation: SubscriptionItemCancellation.optional(),
60
+ scheduled_change: zod
61
+ .union([ScheduledChange, zod.null()])
62
+ .optional()
63
+ .describe("The accepted period-end change scheduled for this item; null when there is none."),
64
+ created_at: zod.iso.datetime({ offset: true }).optional(),
65
+ started_at: zod.iso
66
+ .datetime({ offset: true })
67
+ .nullish()
68
+ .describe("When the item's service started. Null until its delivery is confirmed."),
69
+ ended_at: zod.iso
70
+ .datetime({ offset: true })
71
+ .nullish()
72
+ .describe("When the item ended, alone or with its subscription."),
73
+ })
74
+ .describe("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.");
@@ -6,11 +6,11 @@
6
6
  * OpenAPI spec version: v1
7
7
  */
8
8
  import * as zod from "zod";
9
- export declare const SubscriptionCancellation: zod.ZodObject<{
9
+ export declare const SubscriptionItemCancellation: zod.ZodObject<{
10
10
  reason: zod.ZodOptional<zod.ZodString>;
11
11
  cancellation_id: zod.ZodOptional<zod.ZodUUID>;
12
12
  id: zod.ZodUUID;
13
- subscription_id: zod.ZodUUID;
13
+ subscription_item_id: zod.ZodUUID;
14
14
  status: zod.ZodEnum<{
15
15
  scheduled: "scheduled";
16
16
  completed: "completed";
@@ -33,5 +33,5 @@ export declare const SubscriptionCancellation: zod.ZodObject<{
33
33
  failure_code: zod.ZodOptional<zod.ZodString>;
34
34
  failure_reason: zod.ZodOptional<zod.ZodString>;
35
35
  }, zod.z.core.$strict>;
36
- export type SubscriptionCancellation = zod.input<typeof SubscriptionCancellation>;
37
- export type SubscriptionCancellationOutput = zod.output<typeof SubscriptionCancellation>;
36
+ export type SubscriptionItemCancellation = zod.input<typeof SubscriptionItemCancellation>;
37
+ export type SubscriptionItemCancellationOutput = zod.output<typeof SubscriptionItemCancellation>;
@@ -7,15 +7,15 @@
7
7
  */
8
8
  import * as zod from "zod";
9
9
  import { CancellationMode } from "./cancellationMode.zod.js";
10
- export const SubscriptionCancellation = zod
10
+ export const SubscriptionItemCancellation = zod
11
11
  .strictObject({
12
12
  reason: zod.string().optional(),
13
13
  cancellation_id: zod
14
14
  .uuid()
15
15
  .optional()
16
- .describe("The cancellation this item belongs to, with the other subscriptions released together."),
16
+ .describe("The cancellation this entry belongs to, with the other items released together."),
17
17
  id: zod.uuid(),
18
- subscription_id: zod.uuid(),
18
+ subscription_item_id: zod.uuid(),
19
19
  status: zod.enum(["requested", "scheduled", "releasing", "failed", "completed", "canceled"]),
20
20
  mode: CancellationMode,
21
21
  requested_at: zod.iso.datetime({ offset: true }),
@@ -28,4 +28,4 @@ export const SubscriptionCancellation = zod
28
28
  failure_code: zod.string().optional(),
29
29
  failure_reason: zod.string().optional(),
30
30
  })
31
- .describe("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.");
31
+ .describe("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.");
@@ -8,17 +8,34 @@
8
8
  import * as zod from "zod";
9
9
  export declare const SubscriptionList: zod.ZodObject<{
10
10
  items: zod.ZodArray<zod.ZodObject<{
11
- renewal_discounts_enabled: zod.ZodOptional<zod.ZodBoolean>;
11
+ id: zod.ZodUUID;
12
+ billing_account_id: zod.ZodInt;
13
+ account: zod.ZodObject<{
14
+ id: zod.ZodInt;
15
+ name: zod.ZodString;
16
+ currency: zod.ZodString;
17
+ }, zod.z.core.$strict>;
18
+ product_id: zod.ZodString;
19
+ product: zod.ZodObject<{
20
+ id: zod.ZodString;
21
+ name: zod.ZodString;
22
+ description: zod.ZodOptional<zod.ZodString>;
23
+ }, zod.z.core.$strict>;
24
+ project_id: zod.ZodOptional<zod.ZodNullable<zod.ZodUUID>>;
25
+ project: zod.ZodOptional<zod.ZodUnion<readonly [zod.ZodObject<{
26
+ id: zod.ZodUUID;
27
+ name: zod.ZodString;
28
+ }, zod.z.core.$strict>, zod.ZodNull]>>;
12
29
  currency: zod.ZodString;
13
- type: zod.ZodEnum<{
14
- one_time: "one_time";
15
- recurring: "recurring";
16
- }>;
17
- usage_type: zod.ZodEnum<{
18
- licensed: "licensed";
19
- metered: "metered";
30
+ status: zod.ZodEnum<{
31
+ active: "active";
32
+ pending: "pending";
33
+ suspended: "suspended";
34
+ canceled: "canceled";
35
+ provisioning: "provisioning";
36
+ trialing: "trialing";
37
+ terminated: "terminated";
20
38
  }>;
21
- dimensions: zod.ZodRecord<zod.ZodString, zod.ZodString>;
22
39
  interval: zod.ZodEnum<{
23
40
  none: "none";
24
41
  day: "day";
@@ -26,27 +43,23 @@ export declare const SubscriptionList: zod.ZodObject<{
26
43
  year: "year";
27
44
  }>;
28
45
  interval_count: zod.ZodOptional<zod.ZodInt>;
29
- recurring_amount: zod.ZodOptional<zod.ZodString>;
30
- cancellation_policy: zod.ZodOptional<zod.ZodEnum<{
31
- immediate: "immediate";
32
- period_end: "period_end";
33
- }>>;
34
- refund_policy: zod.ZodOptional<zod.ZodEnum<{
35
- none: "none";
36
- prorated: "prorated";
37
- short_rate: "short_rate";
38
- }>>;
39
- short_rate_multiplier: zod.ZodOptional<zod.ZodString>;
40
- short_rate_threshold_seconds: zod.ZodOptional<zod.ZodInt>;
41
- monthly_list_amount: zod.ZodOptional<zod.ZodString>;
42
- order_item_id: zod.ZodOptional<zod.ZodUUID>;
43
- coupon_id: zod.ZodOptional<zod.ZodUUID>;
44
- coupon: zod.ZodOptional<zod.ZodObject<{
45
- lookup_key: zod.ZodOptional<zod.ZodString>;
46
- id: zod.ZodUUID;
47
- name: zod.ZodString;
48
- }, zod.z.core.$strict>>;
49
- discounted_renewals_remaining: zod.ZodOptional<zod.ZodInt>;
46
+ current_term_end: zod.ZodOptional<zod.ZodNullable<zod.z.ZodISODateTime>>;
47
+ current_period_start: zod.ZodOptional<zod.ZodNullable<zod.z.ZodISODateTime>>;
48
+ current_period_end: zod.ZodOptional<zod.ZodNullable<zod.z.ZodISODateTime>>;
49
+ billing_cycle_anchor: zod.ZodOptional<zod.z.ZodISODateTime>;
50
+ auto_renew: zod.ZodBoolean;
51
+ trial_start: zod.ZodOptional<zod.ZodNullable<zod.z.ZodISODateTime>>;
52
+ trial_end: zod.ZodOptional<zod.ZodNullable<zod.z.ZodISODateTime>>;
53
+ trial_settings: zod.ZodOptional<zod.ZodUnion<readonly [zod.ZodObject<{
54
+ end_behavior: zod.ZodObject<{
55
+ missing_payment_method: zod.ZodEnum<{
56
+ cancel: "cancel";
57
+ pause: "pause";
58
+ create_invoice: "create_invoice";
59
+ }>;
60
+ retention_seconds: zod.ZodNullable<zod.ZodInt>;
61
+ }, zod.z.core.$strict>;
62
+ }, zod.z.core.$strict>, zod.ZodNull]>>;
50
63
  restrictions: zod.ZodOptional<zod.ZodArray<zod.ZodEnum<{
51
64
  "billing.subscriptions.use": "billing.subscriptions.use";
52
65
  "billing.subscriptions.renew": "billing.subscriptions.renew";
@@ -54,94 +67,101 @@ export declare const SubscriptionList: zod.ZodObject<{
54
67
  "billing.subscriptions.cancel": "billing.subscriptions.cancel";
55
68
  "billing.subscriptions.terminate": "billing.subscriptions.terminate";
56
69
  }>>>;
57
- billing_cycle_anchor: zod.ZodOptional<zod.z.ZodISODateTime>;
58
- cancellation: zod.ZodOptional<zod.ZodObject<{
59
- reason: zod.ZodOptional<zod.ZodString>;
60
- cancellation_id: zod.ZodOptional<zod.ZodUUID>;
70
+ default_payment_method_id: zod.ZodOptional<zod.ZodNullable<zod.ZodUUID>>;
71
+ items: zod.ZodArray<zod.ZodObject<{
61
72
  id: zod.ZodUUID;
62
73
  subscription_id: zod.ZodUUID;
63
- status: zod.ZodEnum<{
64
- scheduled: "scheduled";
65
- completed: "completed";
66
- failed: "failed";
67
- requested: "requested";
68
- releasing: "releasing";
69
- canceled: "canceled";
70
- }>;
71
- mode: zod.ZodEnum<{
72
- immediate: "immediate";
73
- period_end: "period_end";
74
- }>;
75
- requested_at: zod.z.ZodISODateTime;
76
- scheduled_at: zod.ZodOptional<zod.z.ZodISODateTime>;
77
- effective_at: zod.ZodOptional<zod.z.ZodISODateTime>;
78
- completed_at: zod.ZodOptional<zod.z.ZodISODateTime>;
79
- release_started_at: zod.ZodOptional<zod.z.ZodISODateTime>;
80
- canceled_at: zod.ZodOptional<zod.z.ZodISODateTime>;
81
- forfeit_remaining_value: zod.ZodBoolean;
82
- failure_code: zod.ZodOptional<zod.ZodString>;
83
- failure_reason: zod.ZodOptional<zod.ZodString>;
84
- }, zod.z.core.$strict>>;
85
- scheduled_change: zod.ZodOptional<zod.ZodUnion<readonly [zod.ZodObject<{
86
- order_id: zod.ZodUUID;
87
- status: zod.ZodEnum<{
88
- completed: "completed";
89
- failed: "failed";
90
- pending: "pending";
91
- canceled: "canceled";
92
- accepted: "accepted";
93
- partially_completed: "partially_completed";
94
- }>;
95
- effective_at: zod.z.ZodISODateTime;
96
74
  plan_id: zod.ZodUUID;
97
75
  plan_name: zod.ZodString;
98
76
  price_id: zod.ZodUUID;
99
- quantity: zod.ZodString;
100
- recurring_amount: zod.ZodString;
101
- currency: zod.ZodString;
102
- interval: zod.ZodEnum<{
103
- day: "day";
104
- month: "month";
105
- year: "year";
77
+ type: zod.ZodEnum<{
78
+ one_time: "one_time";
79
+ recurring: "recurring";
106
80
  }>;
107
- interval_count: zod.ZodInt;
108
- }, zod.z.core.$strict>, zod.ZodNull]>>;
109
- default_payment_method_id: zod.ZodOptional<zod.ZodNullable<zod.ZodUUID>>;
81
+ usage_type: zod.ZodEnum<{
82
+ licensed: "licensed";
83
+ metered: "metered";
84
+ }>;
85
+ dimensions: zod.ZodRecord<zod.ZodString, zod.ZodString>;
86
+ quantity: zod.ZodString;
87
+ recurring_amount: zod.ZodOptional<zod.ZodString>;
88
+ renewal_discounts_enabled: zod.ZodOptional<zod.ZodBoolean>;
89
+ cancellation_policy: zod.ZodOptional<zod.ZodEnum<{
90
+ immediate: "immediate";
91
+ period_end: "period_end";
92
+ }>>;
93
+ refund_policy: zod.ZodOptional<zod.ZodEnum<{
94
+ none: "none";
95
+ prorated: "prorated";
96
+ short_rate: "short_rate";
97
+ }>>;
98
+ short_rate_multiplier: zod.ZodOptional<zod.ZodString>;
99
+ short_rate_threshold_seconds: zod.ZodOptional<zod.ZodInt>;
100
+ monthly_list_amount: zod.ZodOptional<zod.ZodString>;
101
+ coupon_id: zod.ZodOptional<zod.ZodUUID>;
102
+ coupon: zod.ZodOptional<zod.ZodObject<{
103
+ lookup_key: zod.ZodOptional<zod.ZodString>;
104
+ id: zod.ZodUUID;
105
+ name: zod.ZodString;
106
+ }, zod.z.core.$strict>>;
107
+ discounted_renewals_remaining: zod.ZodOptional<zod.ZodInt>;
108
+ order_item_id: zod.ZodOptional<zod.ZodUUID>;
109
+ cancellation: zod.ZodOptional<zod.ZodObject<{
110
+ reason: zod.ZodOptional<zod.ZodString>;
111
+ cancellation_id: zod.ZodOptional<zod.ZodUUID>;
112
+ id: zod.ZodUUID;
113
+ subscription_item_id: zod.ZodUUID;
114
+ status: zod.ZodEnum<{
115
+ scheduled: "scheduled";
116
+ completed: "completed";
117
+ failed: "failed";
118
+ requested: "requested";
119
+ releasing: "releasing";
120
+ canceled: "canceled";
121
+ }>;
122
+ mode: zod.ZodEnum<{
123
+ immediate: "immediate";
124
+ period_end: "period_end";
125
+ }>;
126
+ requested_at: zod.z.ZodISODateTime;
127
+ scheduled_at: zod.ZodOptional<zod.z.ZodISODateTime>;
128
+ effective_at: zod.ZodOptional<zod.z.ZodISODateTime>;
129
+ completed_at: zod.ZodOptional<zod.z.ZodISODateTime>;
130
+ release_started_at: zod.ZodOptional<zod.z.ZodISODateTime>;
131
+ canceled_at: zod.ZodOptional<zod.z.ZodISODateTime>;
132
+ forfeit_remaining_value: zod.ZodBoolean;
133
+ failure_code: zod.ZodOptional<zod.ZodString>;
134
+ failure_reason: zod.ZodOptional<zod.ZodString>;
135
+ }, zod.z.core.$strict>>;
136
+ scheduled_change: zod.ZodOptional<zod.ZodUnion<readonly [zod.ZodObject<{
137
+ order_id: zod.ZodUUID;
138
+ status: zod.ZodEnum<{
139
+ completed: "completed";
140
+ failed: "failed";
141
+ pending: "pending";
142
+ canceled: "canceled";
143
+ accepted: "accepted";
144
+ partially_completed: "partially_completed";
145
+ }>;
146
+ effective_at: zod.z.ZodISODateTime;
147
+ plan_id: zod.ZodUUID;
148
+ plan_name: zod.ZodString;
149
+ price_id: zod.ZodUUID;
150
+ quantity: zod.ZodString;
151
+ recurring_amount: zod.ZodString;
152
+ currency: zod.ZodString;
153
+ interval: zod.ZodEnum<{
154
+ day: "day";
155
+ month: "month";
156
+ year: "year";
157
+ }>;
158
+ interval_count: zod.ZodInt;
159
+ }, zod.z.core.$strict>, zod.ZodNull]>>;
160
+ created_at: zod.ZodOptional<zod.z.ZodISODateTime>;
161
+ started_at: zod.ZodOptional<zod.ZodNullable<zod.z.ZodISODateTime>>;
162
+ ended_at: zod.ZodOptional<zod.ZodNullable<zod.z.ZodISODateTime>>;
163
+ }, zod.z.core.$strict>>;
110
164
  created_at: zod.ZodOptional<zod.z.ZodISODateTime>;
111
- id: zod.ZodUUID;
112
- billing_account_id: zod.ZodInt;
113
- account: zod.ZodObject<{
114
- id: zod.ZodInt;
115
- name: zod.ZodString;
116
- currency: zod.ZodString;
117
- }, zod.z.core.$strict>;
118
- product_id: zod.ZodString;
119
- project_id: zod.ZodOptional<zod.ZodNullable<zod.ZodUUID>>;
120
- project: zod.ZodOptional<zod.ZodUnion<readonly [zod.ZodObject<{
121
- id: zod.ZodUUID;
122
- name: zod.ZodString;
123
- }, zod.z.core.$strict>, zod.ZodNull]>>;
124
- product: zod.ZodObject<{
125
- id: zod.ZodString;
126
- name: zod.ZodString;
127
- description: zod.ZodOptional<zod.ZodString>;
128
- }, zod.z.core.$strict>;
129
- plan_id: zod.ZodUUID;
130
- plan_name: zod.ZodString;
131
- price_id: zod.ZodUUID;
132
- quantity: zod.ZodString;
133
- current_term_end: zod.ZodOptional<zod.ZodNullable<zod.z.ZodISODateTime>>;
134
- current_period_start: zod.ZodOptional<zod.ZodNullable<zod.z.ZodISODateTime>>;
135
- current_period_end: zod.ZodOptional<zod.ZodNullable<zod.z.ZodISODateTime>>;
136
- auto_renew: zod.ZodBoolean;
137
- status: zod.ZodEnum<{
138
- active: "active";
139
- pending: "pending";
140
- suspended: "suspended";
141
- canceled: "canceled";
142
- provisioning: "provisioning";
143
- terminated: "terminated";
144
- }>;
145
165
  started_at: zod.ZodOptional<zod.ZodNullable<zod.z.ZodISODateTime>>;
146
166
  ended_at: zod.ZodOptional<zod.ZodNullable<zod.z.ZodISODateTime>>;
147
167
  }, zod.z.core.$strict>>;
@@ -12,6 +12,7 @@ export declare const SubscriptionStatus: zod.ZodEnum<{
12
12
  suspended: "suspended";
13
13
  canceled: "canceled";
14
14
  provisioning: "provisioning";
15
+ trialing: "trialing";
15
16
  terminated: "terminated";
16
17
  }>;
17
18
  export type SubscriptionStatus = zod.input<typeof SubscriptionStatus>;
@@ -7,5 +7,5 @@
7
7
  */
8
8
  import * as zod from "zod";
9
9
  export const SubscriptionStatus = zod
10
- .enum(["pending", "provisioning", "active", "suspended", "canceled", "terminated"])
11
- .describe("`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.");
10
+ .enum(["pending", "provisioning", "active", "trialing", "suspended", "canceled", "terminated"])
11
+ .describe("`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 and not charged until `trial_end`. `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.");
@@ -0,0 +1,13 @@
1
+ /**
2
+ * Generated by orval 🍺
3
+ * Do not edit manually.
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.
6
+ * OpenAPI spec version: v1
7
+ */
8
+ import * as zod from "zod";
9
+ export declare const SubscriptionUpdate: zod.ZodObject<{
10
+ auto_renew: zod.ZodOptional<zod.ZodBoolean>;
11
+ }, zod.z.core.$strict>;
12
+ export type SubscriptionUpdate = zod.input<typeof SubscriptionUpdate>;
13
+ export type SubscriptionUpdateOutput = zod.output<typeof SubscriptionUpdate>;
@@ -0,0 +1,13 @@
1
+ /**
2
+ * Generated by orval 🍺
3
+ * Do not edit manually.
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.
6
+ * OpenAPI spec version: v1
7
+ */
8
+ import * as zod from "zod";
9
+ export const SubscriptionUpdate = zod
10
+ .strictObject({
11
+ auto_renew: zod.boolean().optional(),
12
+ })
13
+ .describe("The settings to change; settings left out keep their values.");
@@ -0,0 +1,18 @@
1
+ /**
2
+ * Generated by orval 🍺
3
+ * Do not edit manually.
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.
6
+ * OpenAPI spec version: v1
7
+ */
8
+ import * as zod from "zod";
9
+ export declare const TrialEndBehavior: zod.ZodObject<{
10
+ missing_payment_method: zod.ZodEnum<{
11
+ cancel: "cancel";
12
+ pause: "pause";
13
+ create_invoice: "create_invoice";
14
+ }>;
15
+ retention_seconds: zod.ZodNullable<zod.ZodInt>;
16
+ }, zod.z.core.$strict>;
17
+ export type TrialEndBehavior = zod.input<typeof TrialEndBehavior>;
18
+ export type TrialEndBehaviorOutput = zod.output<typeof TrialEndBehavior>;
@@ -0,0 +1,17 @@
1
+ /**
2
+ * Generated by orval 🍺
3
+ * Do not edit manually.
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.
6
+ * OpenAPI spec version: v1
7
+ */
8
+ import * as zod from "zod";
9
+ export const TrialEndBehavior = zod.strictObject({
10
+ missing_payment_method: zod
11
+ .enum(["cancel", "pause", "create_invoice"])
12
+ .describe("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."),
13
+ retention_seconds: zod
14
+ .int()
15
+ .nullable()
16
+ .describe("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."),
17
+ });
@@ -0,0 +1,20 @@
1
+ /**
2
+ * Generated by orval 🍺
3
+ * Do not edit manually.
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.
6
+ * OpenAPI spec version: v1
7
+ */
8
+ import * as zod from "zod";
9
+ export declare const TrialSettings: zod.ZodObject<{
10
+ end_behavior: zod.ZodObject<{
11
+ missing_payment_method: zod.ZodEnum<{
12
+ cancel: "cancel";
13
+ pause: "pause";
14
+ create_invoice: "create_invoice";
15
+ }>;
16
+ retention_seconds: zod.ZodNullable<zod.ZodInt>;
17
+ }, zod.z.core.$strict>;
18
+ }, zod.z.core.$strict>;
19
+ export type TrialSettings = zod.input<typeof TrialSettings>;
20
+ export type TrialSettingsOutput = zod.output<typeof TrialSettings>;
@@ -0,0 +1,14 @@
1
+ /**
2
+ * Generated by orval 🍺
3
+ * Do not edit manually.
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.
6
+ * OpenAPI spec version: v1
7
+ */
8
+ import * as zod from "zod";
9
+ import { TrialEndBehavior } from "./trialEndBehavior.zod.js";
10
+ export const TrialSettings = zod
11
+ .strictObject({
12
+ end_behavior: TrialEndBehavior,
13
+ })
14
+ .describe("How a free trial ends, as Stripe's trial_settings.");
@@ -7,6 +7,7 @@
7
7
  */
8
8
  import * as zod from "zod";
9
9
  export declare const UsageCharge: zod.ZodObject<{
10
+ subscription_item_id: zod.ZodUUID;
10
11
  subscription_id: zod.ZodUUID;
11
12
  id: zod.ZodUUID;
12
13
  project_id: zod.ZodOptional<zod.ZodUUID>;
@@ -11,7 +11,8 @@ import { NamedIdentity } from "./namedIdentity.zod.js";
11
11
  import { ObjectIdentity } from "./objectIdentity.zod.js";
12
12
  import { Product } from "./product.zod.js";
13
13
  export const UsageCharge = zod.strictObject({
14
- subscription_id: zod.uuid(),
14
+ subscription_item_id: zod.uuid().describe("The subscription item the usage belongs to."),
15
+ subscription_id: zod.uuid().describe("The subscription the item belongs to."),
15
16
  id: zod.uuid(),
16
17
  project_id: zod.uuid().optional(),
17
18
  project: zod