@leaflow/sdk 0.143.0 → 0.145.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (638) hide show
  1. package/dist/account/v1/generated/functions.d.ts +92 -1
  2. package/dist/account/v1/generated/functions.js +70 -0
  3. package/dist/account/v1/generated/models.d.ts +33 -1
  4. package/dist/account/v1/generated/models.js +5 -0
  5. package/dist/account/v1/generated/schemas.zod.d.ts +52 -0
  6. package/dist/account/v1/generated/schemas.zod.js +52 -1
  7. package/dist/account/v1/generated/validators/acceptConsentsRequestBody.zod.d.ts +6 -0
  8. package/dist/account/v1/generated/validators/acceptConsentsRequestBody.zod.js +6 -0
  9. package/dist/account/v1/generated/validators/acceptInvitationByTokenRequestBody.zod.d.ts +6 -0
  10. package/dist/account/v1/generated/validators/acceptInvitationByTokenRequestBody.zod.js +6 -0
  11. package/dist/account/v1/generated/validators/acceptedInvitationResponseBody.zod.d.ts +7 -0
  12. package/dist/account/v1/generated/validators/acceptedInvitationResponseBody.zod.js +6 -0
  13. package/dist/account/v1/generated/validators/accountResource.zod.d.ts +6 -0
  14. package/dist/account/v1/generated/validators/accountResource.zod.js +6 -0
  15. package/dist/account/v1/generated/validators/agreementListResponseBody.zod.d.ts +6 -0
  16. package/dist/account/v1/generated/validators/agreementListResponseBody.zod.js +6 -0
  17. package/dist/account/v1/generated/validators/agreementResource.zod.d.ts +6 -0
  18. package/dist/account/v1/generated/validators/agreementResource.zod.js +6 -0
  19. package/dist/account/v1/generated/validators/consentBody.zod.d.ts +6 -0
  20. package/dist/account/v1/generated/validators/consentBody.zod.js +6 -0
  21. package/dist/account/v1/generated/validators/consentListResponseBody.zod.d.ts +6 -0
  22. package/dist/account/v1/generated/validators/consentListResponseBody.zod.js +6 -0
  23. package/dist/account/v1/generated/validators/consentResource.zod.d.ts +6 -0
  24. package/dist/account/v1/generated/validators/consentResource.zod.js +6 -0
  25. package/dist/account/v1/generated/validators/countryOption.zod.d.ts +6 -0
  26. package/dist/account/v1/generated/validators/countryOption.zod.js +6 -0
  27. package/dist/account/v1/generated/validators/createProjectRequestBody.zod.d.ts +8 -0
  28. package/dist/account/v1/generated/validators/createProjectRequestBody.zod.js +12 -0
  29. package/dist/account/v1/generated/validators/cursorPagination.zod.d.ts +6 -0
  30. package/dist/account/v1/generated/validators/cursorPagination.zod.js +6 -0
  31. package/dist/account/v1/generated/validators/error.zod.d.ts +6 -0
  32. package/dist/account/v1/generated/validators/error.zod.js +6 -0
  33. package/dist/account/v1/generated/validators/grantResource.zod.d.ts +6 -0
  34. package/dist/account/v1/generated/validators/grantResource.zod.js +6 -0
  35. package/dist/account/v1/generated/validators/identityVerificationResource.zod.d.ts +6 -0
  36. package/dist/account/v1/generated/validators/identityVerificationResource.zod.js +6 -0
  37. package/dist/account/v1/generated/validators/invitationPreviewResource.zod.d.ts +6 -0
  38. package/dist/account/v1/generated/validators/invitationPreviewResource.zod.js +6 -0
  39. package/dist/account/v1/generated/validators/invitationResource.zod.d.ts +6 -0
  40. package/dist/account/v1/generated/validators/invitationResource.zod.js +6 -0
  41. package/dist/account/v1/generated/validators/languageOption.zod.d.ts +6 -0
  42. package/dist/account/v1/generated/validators/languageOption.zod.js +6 -0
  43. package/dist/account/v1/generated/validators/lengthAwarePageInvitationResource.zod.d.ts +6 -0
  44. package/dist/account/v1/generated/validators/lengthAwarePageInvitationResource.zod.js +6 -0
  45. package/dist/account/v1/generated/validators/lengthAwarePageProjectAccessResource.zod.d.ts +7 -0
  46. package/dist/account/v1/generated/validators/lengthAwarePageProjectAccessResource.zod.js +6 -0
  47. package/dist/account/v1/generated/validators/listMyInvitationsParams.zod.d.ts +6 -0
  48. package/dist/account/v1/generated/validators/listMyInvitationsParams.zod.js +6 -0
  49. package/dist/account/v1/generated/validators/listProjectsParams.zod.d.ts +6 -0
  50. package/dist/account/v1/generated/validators/listProjectsParams.zod.js +7 -1
  51. package/dist/account/v1/generated/validators/locale.zod.d.ts +6 -0
  52. package/dist/account/v1/generated/validators/locale.zod.js +6 -0
  53. package/dist/account/v1/generated/validators/localeOptionsResource.zod.d.ts +6 -0
  54. package/dist/account/v1/generated/validators/localeOptionsResource.zod.js +6 -0
  55. package/dist/account/v1/generated/validators/offsetPagination.zod.d.ts +6 -0
  56. package/dist/account/v1/generated/validators/offsetPagination.zod.js +6 -0
  57. package/dist/account/v1/generated/validators/previewInvitationByTokenParams.zod.d.ts +6 -0
  58. package/dist/account/v1/generated/validators/previewInvitationByTokenParams.zod.js +6 -0
  59. package/dist/account/v1/generated/validators/projectAccessResource.zod.d.ts +7 -0
  60. package/dist/account/v1/generated/validators/projectAccessResource.zod.js +6 -0
  61. package/dist/account/v1/generated/validators/projectResource.zod.d.ts +8 -0
  62. package/dist/account/v1/generated/validators/projectResource.zod.js +12 -0
  63. package/dist/account/v1/generated/validators/projectSlugAvailabilityResource.zod.d.ts +36 -0
  64. package/dist/account/v1/generated/validators/projectSlugAvailabilityResource.zod.js +32 -0
  65. package/dist/account/v1/generated/validators/projectTraitResource.zod.d.ts +6 -0
  66. package/dist/account/v1/generated/validators/projectTraitResource.zod.js +6 -0
  67. package/dist/account/v1/generated/validators/registerRequestBody.zod.d.ts +6 -0
  68. package/dist/account/v1/generated/validators/registerRequestBody.zod.js +6 -0
  69. package/dist/account/v1/generated/validators/resourceRefResource.zod.d.ts +6 -0
  70. package/dist/account/v1/generated/validators/resourceRefResource.zod.js +6 -0
  71. package/dist/account/v1/generated/validators/ruleResource.zod.d.ts +6 -0
  72. package/dist/account/v1/generated/validators/ruleResource.zod.js +6 -0
  73. package/dist/account/v1/generated/validators/scopedTokenResponseBody.zod.d.ts +7 -0
  74. package/dist/account/v1/generated/validators/scopedTokenResponseBody.zod.js +6 -0
  75. package/dist/account/v1/generated/validators/settingsResource.zod.d.ts +6 -0
  76. package/dist/account/v1/generated/validators/settingsResource.zod.js +6 -0
  77. package/dist/account/v1/generated/validators/submitIdentityVerificationRequestBody.zod.d.ts +6 -0
  78. package/dist/account/v1/generated/validators/submitIdentityVerificationRequestBody.zod.js +6 -0
  79. package/dist/account/v1/generated/validators/updateAccountRequestBody.zod.d.ts +6 -0
  80. package/dist/account/v1/generated/validators/updateAccountRequestBody.zod.js +6 -0
  81. package/dist/billing/type/order/v1/generated/models.d.ts +75 -33
  82. package/dist/billing/type/order/v1/generated/models.js +2 -1
  83. package/dist/billing/type/order/v1/generated/validators/cancelSubscriptionRequest.zod.js +2 -2
  84. package/dist/billing/type/order/v1/generated/validators/cancellation.zod.js +2 -2
  85. package/dist/billing/type/order/v1/generated/validators/cancellationCreate.zod.js +2 -2
  86. package/dist/billing/type/order/v1/generated/validators/{terminationPolicy.zod.d.ts → cancellationPolicy.zod.d.ts} +3 -3
  87. package/dist/billing/type/order/v1/generated/validators/{terminationPolicy.zod.js → cancellationPolicy.zod.js} +2 -2
  88. package/dist/billing/type/order/v1/generated/validators/cancellationRefundPreview.zod.d.ts +2 -0
  89. package/dist/billing/type/order/v1/generated/validators/cancellationRefundPreview.zod.js +4 -3
  90. package/dist/billing/type/order/v1/generated/validators/cancellationRefundPreviewItem.zod.d.ts +1 -0
  91. package/dist/billing/type/order/v1/generated/validators/cancellationRefundPreviewItem.zod.js +1 -0
  92. package/dist/billing/type/order/v1/generated/validators/invoiceItem.zod.d.ts +1 -0
  93. package/dist/billing/type/order/v1/generated/validators/invoiceItem.zod.js +4 -0
  94. package/dist/billing/type/order/v1/generated/validators/invoiceItemList.zod.d.ts +1 -0
  95. package/dist/billing/type/order/v1/generated/validators/order.zod.d.ts +5 -3
  96. package/dist/billing/type/order/v1/generated/validators/orderItem.zod.d.ts +5 -3
  97. package/dist/billing/type/order/v1/generated/validators/orderItem.zod.js +10 -6
  98. package/dist/billing/type/order/v1/generated/validators/orderItemList.zod.d.ts +5 -3
  99. package/dist/billing/type/order/v1/generated/validators/orderList.zod.d.ts +5 -3
  100. package/dist/billing/type/order/v1/generated/validators/orderRefundQuote.zod.js +1 -1
  101. package/dist/billing/type/order/v1/generated/validators/price.zod.d.ts +4 -1
  102. package/dist/billing/type/order/v1/generated/validators/price.zod.js +10 -2
  103. package/dist/billing/type/order/v1/generated/validators/priceList.zod.d.ts +4 -1
  104. package/dist/billing/type/order/v1/generated/validators/quote.zod.d.ts +2 -0
  105. package/dist/billing/type/order/v1/generated/validators/quoteCancellation.zod.js +2 -2
  106. package/dist/billing/type/order/v1/generated/validators/quoteItemInput.zod.d.ts +1 -1
  107. package/dist/billing/type/order/v1/generated/validators/quoteItemInput.zod.js +2 -2
  108. package/dist/billing/type/order/v1/generated/validators/quoteRenewal.zod.d.ts +1 -1
  109. package/dist/billing/type/order/v1/generated/validators/quoteRenewal.zod.js +3 -3
  110. package/dist/billing/type/order/v1/generated/validators/quoteRequest.zod.d.ts +2 -2
  111. package/dist/billing/type/order/v1/generated/validators/refundPolicy.zod.d.ts +1 -0
  112. package/dist/billing/type/order/v1/generated/validators/refundPolicy.zod.js +2 -2
  113. package/dist/billing/type/order/v1/generated/validators/refundReason.zod.js +1 -1
  114. package/dist/billing/type/order/v1/generated/validators/renewRequest.zod.d.ts +1 -1
  115. package/dist/billing/type/order/v1/generated/validators/renewRequest.zod.js +3 -3
  116. package/dist/billing/type/order/v1/generated/validators/renewalOrderRequest.zod.d.ts +1 -1
  117. package/dist/billing/type/order/v1/generated/validators/renewalOrderRequest.zod.js +2 -2
  118. package/dist/billing/type/order/v1/generated/validators/renewalPrice.zod.d.ts +4 -1
  119. package/dist/billing/type/order/v1/generated/validators/renewalPrice.zod.js +4 -2
  120. package/dist/billing/type/order/v1/generated/validators/renewalPriceList.zod.d.ts +4 -1
  121. package/dist/billing/type/order/v1/generated/validators/subscription.zod.d.ts +5 -1
  122. package/dist/billing/type/order/v1/generated/validators/subscription.zod.js +14 -2
  123. package/dist/billing/type/order/v1/generated/validators/subscriptionList.zod.d.ts +5 -1
  124. package/dist/billing/type/order/v1/generated/validators/usageCharge.zod.d.ts +1 -0
  125. package/dist/billing/type/order/v1/generated/validators/usageCharge.zod.js +4 -0
  126. package/dist/billing/type/order/v1/generated/validators/usageChargeList.zod.d.ts +1 -0
  127. package/dist/billing/v1/generated/functions.d.ts +1 -1
  128. package/dist/billing/v1/generated/functions.js +1 -1
  129. package/dist/billing/v1/generated/models.d.ts +75 -33
  130. package/dist/billing/v1/generated/models.js +2 -1
  131. package/dist/billing/v1/generated/schemas.zod.d.ts +3 -3
  132. package/dist/billing/v1/generated/schemas.zod.js +1 -1
  133. package/dist/billing/v1/generated/validators/cancelSubscriptionRequest.zod.js +2 -2
  134. package/dist/billing/v1/generated/validators/cancellation.zod.js +2 -2
  135. package/dist/billing/v1/generated/validators/cancellationCreate.zod.js +2 -2
  136. package/dist/billing/v1/generated/validators/{terminationPolicy.zod.d.ts → cancellationPolicy.zod.d.ts} +3 -3
  137. package/dist/billing/v1/generated/validators/{terminationPolicy.zod.js → cancellationPolicy.zod.js} +2 -2
  138. package/dist/billing/v1/generated/validators/cancellationRefundPreview.zod.d.ts +2 -0
  139. package/dist/billing/v1/generated/validators/cancellationRefundPreview.zod.js +4 -3
  140. package/dist/billing/v1/generated/validators/cancellationRefundPreviewItem.zod.d.ts +1 -0
  141. package/dist/billing/v1/generated/validators/cancellationRefundPreviewItem.zod.js +1 -0
  142. package/dist/billing/v1/generated/validators/invoiceItem.zod.d.ts +1 -0
  143. package/dist/billing/v1/generated/validators/invoiceItem.zod.js +4 -0
  144. package/dist/billing/v1/generated/validators/invoiceItemList.zod.d.ts +1 -0
  145. package/dist/billing/v1/generated/validators/order.zod.d.ts +5 -3
  146. package/dist/billing/v1/generated/validators/orderItem.zod.d.ts +5 -3
  147. package/dist/billing/v1/generated/validators/orderItem.zod.js +10 -6
  148. package/dist/billing/v1/generated/validators/orderItemList.zod.d.ts +5 -3
  149. package/dist/billing/v1/generated/validators/orderList.zod.d.ts +5 -3
  150. package/dist/billing/v1/generated/validators/orderRefundQuote.zod.js +1 -1
  151. package/dist/billing/v1/generated/validators/price.zod.d.ts +4 -1
  152. package/dist/billing/v1/generated/validators/price.zod.js +10 -2
  153. package/dist/billing/v1/generated/validators/priceList.zod.d.ts +4 -1
  154. package/dist/billing/v1/generated/validators/quote.zod.d.ts +2 -0
  155. package/dist/billing/v1/generated/validators/quoteCancellation.zod.js +2 -2
  156. package/dist/billing/v1/generated/validators/quoteItemInput.zod.d.ts +1 -1
  157. package/dist/billing/v1/generated/validators/quoteItemInput.zod.js +2 -2
  158. package/dist/billing/v1/generated/validators/quoteRenewal.zod.d.ts +1 -1
  159. package/dist/billing/v1/generated/validators/quoteRenewal.zod.js +3 -3
  160. package/dist/billing/v1/generated/validators/quoteRequest.zod.d.ts +2 -2
  161. package/dist/billing/v1/generated/validators/refundPolicy.zod.d.ts +1 -0
  162. package/dist/billing/v1/generated/validators/refundPolicy.zod.js +2 -2
  163. package/dist/billing/v1/generated/validators/refundReason.zod.js +1 -1
  164. package/dist/billing/v1/generated/validators/renewRequest.zod.d.ts +1 -1
  165. package/dist/billing/v1/generated/validators/renewRequest.zod.js +3 -3
  166. package/dist/billing/v1/generated/validators/renewalOrderRequest.zod.d.ts +1 -1
  167. package/dist/billing/v1/generated/validators/renewalOrderRequest.zod.js +2 -2
  168. package/dist/billing/v1/generated/validators/renewalPrice.zod.d.ts +4 -1
  169. package/dist/billing/v1/generated/validators/renewalPrice.zod.js +4 -2
  170. package/dist/billing/v1/generated/validators/renewalPriceList.zod.d.ts +4 -1
  171. package/dist/billing/v1/generated/validators/subscription.zod.d.ts +5 -1
  172. package/dist/billing/v1/generated/validators/subscription.zod.js +14 -2
  173. package/dist/billing/v1/generated/validators/subscriptionList.zod.d.ts +5 -1
  174. package/dist/billing/v1/generated/validators/usageCharge.zod.d.ts +1 -0
  175. package/dist/billing/v1/generated/validators/usageCharge.zod.js +4 -0
  176. package/dist/billing/v1/generated/validators/usageChargeList.zod.d.ts +1 -0
  177. package/dist/canopy/v1/generated/functions.d.ts +1 -1
  178. package/dist/canopy/v1/generated/functions.js +1 -1
  179. package/dist/canopy/v1/generated/models.d.ts +75 -33
  180. package/dist/canopy/v1/generated/models.js +2 -1
  181. package/dist/canopy/v1/generated/schemas.zod.d.ts +1 -1
  182. package/dist/canopy/v1/generated/schemas.zod.js +1 -1
  183. package/dist/canopy/v1/generated/validators/cancelSubscriptionRequest.zod.js +2 -2
  184. package/dist/canopy/v1/generated/validators/cancellation.zod.js +2 -2
  185. package/dist/canopy/v1/generated/validators/cancellationCreate.zod.js +2 -2
  186. package/dist/canopy/v1/generated/validators/{terminationPolicy.zod.d.ts → cancellationPolicy.zod.d.ts} +3 -3
  187. package/dist/canopy/v1/generated/validators/{terminationPolicy.zod.js → cancellationPolicy.zod.js} +2 -2
  188. package/dist/canopy/v1/generated/validators/cancellationRefundPreview.zod.d.ts +2 -0
  189. package/dist/canopy/v1/generated/validators/cancellationRefundPreview.zod.js +4 -3
  190. package/dist/canopy/v1/generated/validators/cancellationRefundPreviewItem.zod.d.ts +1 -0
  191. package/dist/canopy/v1/generated/validators/cancellationRefundPreviewItem.zod.js +1 -0
  192. package/dist/canopy/v1/generated/validators/invoiceItem.zod.d.ts +1 -0
  193. package/dist/canopy/v1/generated/validators/invoiceItem.zod.js +4 -0
  194. package/dist/canopy/v1/generated/validators/invoiceItemList.zod.d.ts +1 -0
  195. package/dist/canopy/v1/generated/validators/order.zod.d.ts +5 -3
  196. package/dist/canopy/v1/generated/validators/orderItem.zod.d.ts +5 -3
  197. package/dist/canopy/v1/generated/validators/orderItem.zod.js +10 -6
  198. package/dist/canopy/v1/generated/validators/orderItemList.zod.d.ts +5 -3
  199. package/dist/canopy/v1/generated/validators/orderList.zod.d.ts +5 -3
  200. package/dist/canopy/v1/generated/validators/orderRefundQuote.zod.js +1 -1
  201. package/dist/canopy/v1/generated/validators/price.zod.d.ts +4 -1
  202. package/dist/canopy/v1/generated/validators/price.zod.js +10 -2
  203. package/dist/canopy/v1/generated/validators/priceList.zod.d.ts +4 -1
  204. package/dist/canopy/v1/generated/validators/quote5f60d00.zod.d.ts +2 -0
  205. package/dist/canopy/v1/generated/validators/quoteA200529.zod.d.ts +2 -0
  206. package/dist/canopy/v1/generated/validators/quoteCancellation.zod.js +2 -2
  207. package/dist/canopy/v1/generated/validators/quoteItemInput.zod.d.ts +1 -1
  208. package/dist/canopy/v1/generated/validators/quoteItemInput.zod.js +2 -2
  209. package/dist/canopy/v1/generated/validators/quoteRenewal.zod.d.ts +1 -1
  210. package/dist/canopy/v1/generated/validators/quoteRenewal.zod.js +3 -3
  211. package/dist/canopy/v1/generated/validators/quoteRequest.zod.d.ts +2 -2
  212. package/dist/canopy/v1/generated/validators/refundPolicy.zod.d.ts +1 -0
  213. package/dist/canopy/v1/generated/validators/refundPolicy.zod.js +2 -2
  214. package/dist/canopy/v1/generated/validators/refundReason.zod.js +1 -1
  215. package/dist/canopy/v1/generated/validators/renewRequest.zod.d.ts +1 -1
  216. package/dist/canopy/v1/generated/validators/renewRequest.zod.js +3 -3
  217. package/dist/canopy/v1/generated/validators/renewalOrderRequest.zod.d.ts +1 -1
  218. package/dist/canopy/v1/generated/validators/renewalOrderRequest.zod.js +2 -2
  219. package/dist/canopy/v1/generated/validators/renewalPrice.zod.d.ts +4 -1
  220. package/dist/canopy/v1/generated/validators/renewalPrice.zod.js +4 -2
  221. package/dist/canopy/v1/generated/validators/renewalPriceList.zod.d.ts +4 -1
  222. package/dist/canopy/v1/generated/validators/subscription.zod.d.ts +5 -1
  223. package/dist/canopy/v1/generated/validators/subscription.zod.js +14 -2
  224. package/dist/canopy/v1/generated/validators/subscriptionList.zod.d.ts +5 -1
  225. package/dist/canopy/v1/generated/validators/usageCharge.zod.d.ts +1 -0
  226. package/dist/canopy/v1/generated/validators/usageCharge.zod.js +4 -0
  227. package/dist/canopy/v1/generated/validators/usageChargeList.zod.d.ts +1 -0
  228. package/dist/compute/v1/generated/functions.d.ts +15 -15
  229. package/dist/compute/v1/generated/functions.js +13 -13
  230. package/dist/compute/v1/generated/models.d.ts +33 -25
  231. package/dist/compute/v1/generated/models.js +6 -6
  232. package/dist/compute/v1/generated/schemas.zod.d.ts +69 -69
  233. package/dist/compute/v1/generated/schemas.zod.js +15 -15
  234. package/dist/compute/v1/generated/validators/allocateFloatingIPQuoteRequestBody.zod.d.ts +5 -5
  235. package/dist/compute/v1/generated/validators/allocateFloatingIPQuoteRequestBody.zod.js +2 -2
  236. package/dist/compute/v1/generated/validators/allocateFloatingIPRequestBody.zod.d.ts +5 -5
  237. package/dist/compute/v1/generated/validators/allocateFloatingIPRequestBody.zod.js +2 -2
  238. package/dist/compute/v1/generated/validators/allocateFloatingIPResponseBody.zod.d.ts +3 -3
  239. package/dist/compute/v1/generated/validators/allocateFloatingIPResponseBody.zod.js +2 -2
  240. package/dist/compute/v1/generated/validators/attachDiskRequestBody.zod.d.ts +2 -2
  241. package/dist/compute/v1/generated/validators/attachDiskRequestBody.zod.js +2 -2
  242. package/dist/compute/v1/generated/validators/attachFloatingIPRequestBody.zod.d.ts +2 -2
  243. package/dist/compute/v1/generated/validators/attachFloatingIPRequestBody.zod.js +2 -2
  244. package/dist/compute/v1/generated/validators/attachPortRequestBody.zod.d.ts +2 -2
  245. package/dist/compute/v1/generated/validators/attachPortRequestBody.zod.js +2 -2
  246. package/dist/compute/v1/generated/validators/backupCapacityPack.zod.d.ts +2 -2
  247. package/dist/compute/v1/generated/validators/backupCapacityPack.zod.js +3 -3
  248. package/dist/compute/v1/generated/validators/backupCapacityPackListResponseBody.zod.d.ts +2 -2
  249. package/dist/compute/v1/generated/validators/backupCapacityPackListResponseBody.zod.js +2 -2
  250. package/dist/compute/v1/generated/validators/backupListResponseBody.zod.d.ts +3 -3
  251. package/dist/compute/v1/generated/validators/backupListResponseBody.zod.js +2 -2
  252. package/dist/compute/v1/generated/validators/backupOperation.zod.d.ts +2 -2
  253. package/dist/compute/v1/generated/validators/backupOperation.zod.js +2 -2
  254. package/dist/compute/v1/generated/validators/backupResource.zod.d.ts +3 -3
  255. package/dist/compute/v1/generated/validators/backupResource.zod.js +2 -2
  256. package/dist/compute/v1/generated/validators/backupService.zod.d.ts +10 -10
  257. package/dist/compute/v1/generated/validators/backupService.zod.js +7 -7
  258. package/dist/compute/v1/generated/validators/billingChoice.zod.d.ts +5 -5
  259. package/dist/compute/v1/generated/validators/billingChoice.zod.js +6 -4
  260. package/dist/compute/v1/generated/validators/billingPeriod.zod.d.ts +2 -2
  261. package/dist/compute/v1/generated/validators/billingPeriod.zod.js +2 -2
  262. package/dist/compute/v1/generated/validators/bindFloatingIPRequestBody.zod.d.ts +2 -2
  263. package/dist/compute/v1/generated/validators/bindFloatingIPRequestBody.zod.js +2 -2
  264. package/dist/compute/v1/generated/validators/bootDisk.zod.d.ts +5 -5
  265. package/dist/compute/v1/generated/validators/bootDisk.zod.js +2 -2
  266. package/dist/compute/v1/generated/validators/checkoutMode.zod.d.ts +2 -2
  267. package/dist/compute/v1/generated/validators/checkoutMode.zod.js +2 -2
  268. package/dist/compute/v1/generated/validators/checkoutOptions.zod.d.ts +2 -2
  269. package/dist/compute/v1/generated/validators/checkoutOptions.zod.js +2 -2
  270. package/dist/compute/v1/generated/validators/commandResultResponseBody.zod.d.ts +2 -2
  271. package/dist/compute/v1/generated/validators/commandResultResponseBody.zod.js +2 -2
  272. package/dist/compute/v1/generated/validators/consoleOutputResponseBody.zod.d.ts +2 -2
  273. package/dist/compute/v1/generated/validators/consoleOutputResponseBody.zod.js +2 -2
  274. package/dist/compute/v1/generated/validators/consoleResponseBody.zod.d.ts +2 -2
  275. package/dist/compute/v1/generated/validators/consoleResponseBody.zod.js +2 -2
  276. package/dist/compute/v1/generated/validators/createBackupCapacityPackQuoteRequestBody.zod.d.ts +5 -5
  277. package/dist/compute/v1/generated/validators/createBackupCapacityPackQuoteRequestBody.zod.js +2 -2
  278. package/dist/compute/v1/generated/validators/createBackupCapacityPackRequestBody.zod.d.ts +5 -5
  279. package/dist/compute/v1/generated/validators/createBackupCapacityPackRequestBody.zod.js +2 -2
  280. package/dist/compute/v1/generated/validators/createBackupCapacityPackResponseBody.zod.d.ts +2 -2
  281. package/dist/compute/v1/generated/validators/createBackupCapacityPackResponseBody.zod.js +2 -2
  282. package/dist/compute/v1/generated/validators/createBackupRequestBody.zod.d.ts +2 -2
  283. package/dist/compute/v1/generated/validators/createBackupRequestBody.zod.js +2 -2
  284. package/dist/compute/v1/generated/validators/createBackupServiceRequestBody.zod.d.ts +2 -2
  285. package/dist/compute/v1/generated/validators/createBackupServiceRequestBody.zod.js +2 -2
  286. package/dist/compute/v1/generated/validators/createBackupServiceResponseBody.zod.d.ts +9 -9
  287. package/dist/compute/v1/generated/validators/createBackupServiceResponseBody.zod.js +2 -2
  288. package/dist/compute/v1/generated/validators/createDiskQuoteRequestBody.zod.d.ts +5 -5
  289. package/dist/compute/v1/generated/validators/createDiskQuoteRequestBody.zod.js +2 -2
  290. package/dist/compute/v1/generated/validators/createDiskRequestBody.zod.d.ts +5 -5
  291. package/dist/compute/v1/generated/validators/createDiskRequestBody.zod.js +2 -2
  292. package/dist/compute/v1/generated/validators/createDiskResponseBody.zod.d.ts +4 -4
  293. package/dist/compute/v1/generated/validators/createDiskResponseBody.zod.js +2 -2
  294. package/dist/compute/v1/generated/validators/createImageQuoteRequestBody.zod.d.ts +5 -5
  295. package/dist/compute/v1/generated/validators/createImageQuoteRequestBody.zod.js +2 -2
  296. package/dist/compute/v1/generated/validators/createImageRequestBody.zod.d.ts +5 -5
  297. package/dist/compute/v1/generated/validators/createImageRequestBody.zod.js +2 -2
  298. package/dist/compute/v1/generated/validators/createImageResponseBody.zod.d.ts +3 -3
  299. package/dist/compute/v1/generated/validators/createImageResponseBody.zod.js +2 -2
  300. package/dist/compute/v1/generated/validators/createPeeringRequestBody.zod.d.ts +2 -2
  301. package/dist/compute/v1/generated/validators/createPeeringRequestBody.zod.js +2 -2
  302. package/dist/compute/v1/generated/validators/createPortRequestBody.zod.d.ts +2 -2
  303. package/dist/compute/v1/generated/validators/createPortRequestBody.zod.js +2 -2
  304. package/dist/compute/v1/generated/validators/createPrivateNetworkRequestBody.zod.d.ts +2 -2
  305. package/dist/compute/v1/generated/validators/createPrivateNetworkRequestBody.zod.js +2 -2
  306. package/dist/compute/v1/generated/validators/createRouteRequestBody.zod.d.ts +2 -2
  307. package/dist/compute/v1/generated/validators/createRouteRequestBody.zod.js +2 -2
  308. package/dist/compute/v1/generated/validators/createSecurityGroupRequestBody.zod.d.ts +2 -2
  309. package/dist/compute/v1/generated/validators/createSecurityGroupRequestBody.zod.js +2 -2
  310. package/dist/compute/v1/generated/validators/createSecurityRuleRequestBody.zod.d.ts +2 -2
  311. package/dist/compute/v1/generated/validators/createSecurityRuleRequestBody.zod.js +2 -2
  312. package/dist/compute/v1/generated/validators/createSnapshotRequestBody.zod.d.ts +2 -2
  313. package/dist/compute/v1/generated/validators/createSnapshotRequestBody.zod.js +2 -2
  314. package/dist/compute/v1/generated/validators/createSubnetRequestBody.zod.d.ts +2 -2
  315. package/dist/compute/v1/generated/validators/createSubnetRequestBody.zod.js +2 -2
  316. package/dist/compute/v1/generated/validators/cursorPagination.zod.d.ts +2 -2
  317. package/dist/compute/v1/generated/validators/cursorPagination.zod.js +2 -2
  318. package/dist/compute/v1/generated/validators/diskAttachment.zod.d.ts +3 -3
  319. package/dist/compute/v1/generated/validators/diskAttachment.zod.js +2 -2
  320. package/dist/compute/v1/generated/validators/diskAttachmentList.zod.d.ts +3 -3
  321. package/dist/compute/v1/generated/validators/diskAttachmentList.zod.js +2 -2
  322. package/dist/compute/v1/generated/validators/diskListResponseBody.zod.d.ts +4 -4
  323. package/dist/compute/v1/generated/validators/diskListResponseBody.zod.js +2 -2
  324. package/dist/compute/v1/generated/validators/diskOperation.zod.d.ts +2 -2
  325. package/dist/compute/v1/generated/validators/diskOperation.zod.js +2 -2
  326. package/dist/compute/v1/generated/validators/diskResource.zod.d.ts +4 -4
  327. package/dist/compute/v1/generated/validators/diskResource.zod.js +2 -2
  328. package/dist/compute/v1/generated/validators/diskTypeListResponseBody.zod.d.ts +5 -5
  329. package/dist/compute/v1/generated/validators/diskTypeListResponseBody.zod.js +2 -2
  330. package/dist/compute/v1/generated/validators/diskTypePurpose.zod.d.ts +2 -2
  331. package/dist/compute/v1/generated/validators/diskTypePurpose.zod.js +2 -2
  332. package/dist/compute/v1/generated/validators/diskTypeResource.zod.d.ts +5 -5
  333. package/dist/compute/v1/generated/validators/diskTypeResource.zod.js +2 -2
  334. package/dist/compute/v1/generated/validators/error.zod.d.ts +2 -2
  335. package/dist/compute/v1/generated/validators/error.zod.js +2 -2
  336. package/dist/compute/v1/generated/validators/existingBootDisk.zod.d.ts +2 -2
  337. package/dist/compute/v1/generated/validators/existingBootDisk.zod.js +2 -2
  338. package/dist/compute/v1/generated/validators/floatingIPListResponseBody.zod.d.ts +3 -3
  339. package/dist/compute/v1/generated/validators/floatingIPListResponseBody.zod.js +2 -2
  340. package/dist/compute/v1/generated/validators/floatingIPOperation.zod.d.ts +2 -2
  341. package/dist/compute/v1/generated/validators/floatingIPOperation.zod.js +2 -2
  342. package/dist/compute/v1/generated/validators/floatingIPResource.zod.d.ts +3 -3
  343. package/dist/compute/v1/generated/validators/floatingIPResource.zod.js +2 -2
  344. package/dist/compute/v1/generated/validators/funds.zod.d.ts +2 -2
  345. package/dist/compute/v1/generated/validators/funds.zod.js +2 -2
  346. package/dist/compute/v1/generated/validators/getInstanceConsoleOutputParams.zod.d.ts +2 -2
  347. package/dist/compute/v1/generated/validators/getInstanceConsoleOutputParams.zod.js +2 -2
  348. package/dist/compute/v1/generated/validators/iPv4Binding.zod.d.ts +2 -2
  349. package/dist/compute/v1/generated/validators/iPv4Binding.zod.js +2 -2
  350. package/dist/compute/v1/generated/validators/iPv4PoolListResponseBody.zod.d.ts +8 -8
  351. package/dist/compute/v1/generated/validators/iPv4PoolListResponseBody.zod.js +2 -2
  352. package/dist/compute/v1/generated/validators/iPv4PoolResource.zod.d.ts +8 -8
  353. package/dist/compute/v1/generated/validators/iPv4PoolResource.zod.js +2 -2
  354. package/dist/compute/v1/generated/validators/iPv6ResponseBody.zod.d.ts +2 -2
  355. package/dist/compute/v1/generated/validators/iPv6ResponseBody.zod.js +2 -2
  356. package/dist/compute/v1/generated/validators/imageListResponseBody.zod.d.ts +3 -3
  357. package/dist/compute/v1/generated/validators/imageListResponseBody.zod.js +2 -2
  358. package/dist/compute/v1/generated/validators/imageOperation.zod.d.ts +2 -2
  359. package/dist/compute/v1/generated/validators/imageOperation.zod.js +2 -2
  360. package/dist/compute/v1/generated/validators/imageResource.zod.d.ts +3 -3
  361. package/dist/compute/v1/generated/validators/imageResource.zod.js +2 -2
  362. package/dist/compute/v1/generated/validators/imageVisibility.zod.d.ts +2 -2
  363. package/dist/compute/v1/generated/validators/imageVisibility.zod.js +2 -2
  364. package/dist/compute/v1/generated/validators/instanceListResponseBody.zod.d.ts +2 -2
  365. package/dist/compute/v1/generated/validators/instanceListResponseBody.zod.js +2 -2
  366. package/dist/compute/v1/generated/validators/instanceOperation.zod.d.ts +2 -2
  367. package/dist/compute/v1/generated/validators/instanceOperation.zod.js +2 -2
  368. package/dist/compute/v1/generated/validators/instanceResource.zod.d.ts +2 -2
  369. package/dist/compute/v1/generated/validators/instanceResource.zod.js +2 -2
  370. package/dist/compute/v1/generated/validators/instanceRestriction.zod.d.ts +2 -2
  371. package/dist/compute/v1/generated/validators/instanceRestriction.zod.js +2 -2
  372. package/dist/compute/v1/generated/validators/instanceTypeListResponseBody.zod.d.ts +5 -5
  373. package/dist/compute/v1/generated/validators/instanceTypeListResponseBody.zod.js +2 -2
  374. package/dist/compute/v1/generated/validators/instanceTypeResource.zod.d.ts +5 -5
  375. package/dist/compute/v1/generated/validators/instanceTypeResource.zod.js +2 -2
  376. package/dist/compute/v1/generated/validators/launchInstanceQuoteRequestBody.zod.d.ts +11 -11
  377. package/dist/compute/v1/generated/validators/launchInstanceQuoteRequestBody.zod.js +2 -2
  378. package/dist/compute/v1/generated/validators/launchInstanceRequestBody.zod.d.ts +11 -11
  379. package/dist/compute/v1/generated/validators/launchInstanceRequestBody.zod.js +2 -2
  380. package/dist/compute/v1/generated/validators/launchInstanceResponseBody.zod.d.ts +2 -2
  381. package/dist/compute/v1/generated/validators/launchInstanceResponseBody.zod.js +2 -2
  382. package/dist/compute/v1/generated/validators/listAvailabilityZonesParams.zod.d.ts +2 -2
  383. package/dist/compute/v1/generated/validators/listAvailabilityZonesParams.zod.js +2 -2
  384. package/dist/compute/v1/generated/validators/listBackupCapacityPacksParams.zod.d.ts +2 -2
  385. package/dist/compute/v1/generated/validators/listBackupCapacityPacksParams.zod.js +2 -2
  386. package/dist/compute/v1/generated/validators/listBackupsParams.zod.d.ts +2 -2
  387. package/dist/compute/v1/generated/validators/listBackupsParams.zod.js +2 -2
  388. package/dist/compute/v1/generated/validators/listDiskTypesParams.zod.d.ts +2 -2
  389. package/dist/compute/v1/generated/validators/listDiskTypesParams.zod.js +2 -2
  390. package/dist/compute/v1/generated/validators/listDisksParams.zod.d.ts +2 -2
  391. package/dist/compute/v1/generated/validators/listDisksParams.zod.js +2 -2
  392. package/dist/compute/v1/generated/validators/listFloatingIpsParams.zod.d.ts +2 -2
  393. package/dist/compute/v1/generated/validators/listFloatingIpsParams.zod.js +2 -2
  394. package/dist/compute/v1/generated/validators/listImagesParams.zod.d.ts +2 -2
  395. package/dist/compute/v1/generated/validators/listImagesParams.zod.js +2 -2
  396. package/dist/compute/v1/generated/validators/listInstanceDisksParams.zod.d.ts +2 -2
  397. package/dist/compute/v1/generated/validators/listInstanceDisksParams.zod.js +2 -2
  398. package/dist/compute/v1/generated/validators/listInstancePortsParams.zod.d.ts +2 -2
  399. package/dist/compute/v1/generated/validators/listInstancePortsParams.zod.js +2 -2
  400. package/dist/compute/v1/generated/validators/listInstanceTypesParams.zod.d.ts +2 -2
  401. package/dist/compute/v1/generated/validators/listInstanceTypesParams.zod.js +2 -2
  402. package/dist/compute/v1/generated/validators/listInstancesParams.zod.d.ts +2 -2
  403. package/dist/compute/v1/generated/validators/listInstancesParams.zod.js +2 -2
  404. package/dist/compute/v1/generated/validators/listIpv4PoolsParams.zod.d.ts +2 -2
  405. package/dist/compute/v1/generated/validators/listIpv4PoolsParams.zod.js +2 -2
  406. package/dist/compute/v1/generated/validators/listOperationLogsParams.zod.d.ts +2 -2
  407. package/dist/compute/v1/generated/validators/listOperationLogsParams.zod.js +2 -2
  408. package/dist/compute/v1/generated/validators/listPeeringsParams.zod.d.ts +2 -2
  409. package/dist/compute/v1/generated/validators/listPeeringsParams.zod.js +2 -2
  410. package/dist/compute/v1/generated/validators/listPortsParams.zod.d.ts +2 -2
  411. package/dist/compute/v1/generated/validators/listPortsParams.zod.js +2 -2
  412. package/dist/compute/v1/generated/validators/listPrivateNetworksParams.zod.d.ts +2 -2
  413. package/dist/compute/v1/generated/validators/listPrivateNetworksParams.zod.js +2 -2
  414. package/dist/compute/v1/generated/validators/listRegionsParams.zod.d.ts +2 -2
  415. package/dist/compute/v1/generated/validators/listRegionsParams.zod.js +2 -2
  416. package/dist/compute/v1/generated/validators/listRoutesParams.zod.d.ts +2 -2
  417. package/dist/compute/v1/generated/validators/listRoutesParams.zod.js +2 -2
  418. package/dist/compute/v1/generated/validators/listSecurityGroupRulesParams.zod.d.ts +2 -2
  419. package/dist/compute/v1/generated/validators/listSecurityGroupRulesParams.zod.js +2 -2
  420. package/dist/compute/v1/generated/validators/listSecurityGroupsParams.zod.d.ts +2 -2
  421. package/dist/compute/v1/generated/validators/listSecurityGroupsParams.zod.js +2 -2
  422. package/dist/compute/v1/generated/validators/listSnapshotsParams.zod.d.ts +2 -2
  423. package/dist/compute/v1/generated/validators/listSnapshotsParams.zod.js +2 -2
  424. package/dist/compute/v1/generated/validators/listSubnetsParams.zod.d.ts +2 -2
  425. package/dist/compute/v1/generated/validators/listSubnetsParams.zod.js +2 -2
  426. package/dist/compute/v1/generated/validators/money.zod.d.ts +2 -2
  427. package/dist/compute/v1/generated/validators/money.zod.js +2 -2
  428. package/dist/compute/v1/generated/validators/newBootDisk.zod.d.ts +5 -5
  429. package/dist/compute/v1/generated/validators/newBootDisk.zod.js +2 -2
  430. package/dist/compute/v1/generated/validators/newCompute.zod.d.ts +5 -5
  431. package/dist/compute/v1/generated/validators/newCompute.zod.js +2 -2
  432. package/dist/compute/v1/generated/validators/newFloatingIP.zod.d.ts +5 -5
  433. package/dist/compute/v1/generated/validators/newFloatingIP.zod.js +2 -2
  434. package/dist/compute/v1/generated/validators/nextFreeCidrResponseBody.zod.d.ts +2 -2
  435. package/dist/compute/v1/generated/validators/nextFreeCidrResponseBody.zod.js +2 -2
  436. package/dist/compute/v1/generated/validators/offsetPagination.zod.d.ts +2 -2
  437. package/dist/compute/v1/generated/validators/offsetPagination.zod.js +2 -2
  438. package/dist/compute/v1/generated/validators/operationLogListResponseBody.zod.d.ts +2 -2
  439. package/dist/compute/v1/generated/validators/operationLogListResponseBody.zod.js +2 -2
  440. package/dist/compute/v1/generated/validators/operationLogResource.zod.d.ts +2 -2
  441. package/dist/compute/v1/generated/validators/operationLogResource.zod.js +2 -2
  442. package/dist/compute/v1/generated/validators/peeringListResponseBody.zod.d.ts +2 -2
  443. package/dist/compute/v1/generated/validators/peeringListResponseBody.zod.js +2 -2
  444. package/dist/compute/v1/generated/validators/peeringOperation.zod.d.ts +2 -2
  445. package/dist/compute/v1/generated/validators/peeringOperation.zod.js +2 -2
  446. package/dist/compute/v1/generated/validators/peeringResource.zod.d.ts +2 -2
  447. package/dist/compute/v1/generated/validators/peeringResource.zod.js +2 -2
  448. package/dist/compute/v1/generated/validators/placedOrder.zod.d.ts +2 -2
  449. package/dist/compute/v1/generated/validators/placedOrder.zod.js +2 -2
  450. package/dist/compute/v1/generated/validators/portAddress.zod.d.ts +3 -3
  451. package/dist/compute/v1/generated/validators/portAddress.zod.js +2 -2
  452. package/dist/compute/v1/generated/validators/portAttachment.zod.d.ts +3 -3
  453. package/dist/compute/v1/generated/validators/portAttachment.zod.js +2 -2
  454. package/dist/compute/v1/generated/validators/portAttachmentList.zod.d.ts +3 -3
  455. package/dist/compute/v1/generated/validators/portAttachmentList.zod.js +2 -2
  456. package/dist/compute/v1/generated/validators/portListResponseBody.zod.d.ts +5 -5
  457. package/dist/compute/v1/generated/validators/portListResponseBody.zod.js +2 -2
  458. package/dist/compute/v1/generated/validators/portOperation.zod.d.ts +2 -2
  459. package/dist/compute/v1/generated/validators/portOperation.zod.js +2 -2
  460. package/dist/compute/v1/generated/validators/portResource.zod.d.ts +5 -5
  461. package/dist/compute/v1/generated/validators/portResource.zod.js +2 -2
  462. package/dist/compute/v1/generated/validators/powerRequest.zod.d.ts +2 -2
  463. package/dist/compute/v1/generated/validators/powerRequest.zod.js +2 -2
  464. package/dist/compute/v1/generated/validators/pricing.zod.d.ts +5 -5
  465. package/dist/compute/v1/generated/validators/pricing.zod.js +2 -2
  466. package/dist/compute/v1/generated/validators/pricingOption.zod.d.ts +5 -5
  467. package/dist/compute/v1/generated/validators/pricingOption.zod.js +12 -10
  468. package/dist/compute/v1/generated/validators/privateNetworkListResponseBody.zod.d.ts +2 -2
  469. package/dist/compute/v1/generated/validators/privateNetworkListResponseBody.zod.js +2 -2
  470. package/dist/compute/v1/generated/validators/privateNetworkResource.zod.d.ts +2 -2
  471. package/dist/compute/v1/generated/validators/privateNetworkResource.zod.js +2 -2
  472. package/dist/compute/v1/generated/validators/quote.zod.d.ts +2 -2
  473. package/dist/compute/v1/generated/validators/quote.zod.js +2 -2
  474. package/dist/compute/v1/generated/validators/quoteItem.zod.d.ts +2 -2
  475. package/dist/compute/v1/generated/validators/quoteItem.zod.js +2 -2
  476. package/dist/compute/v1/generated/validators/rebootInstanceRequestBody.zod.d.ts +2 -2
  477. package/dist/compute/v1/generated/validators/rebootInstanceRequestBody.zod.js +2 -2
  478. package/dist/compute/v1/generated/validators/rebuildInstanceRequestBody.zod.d.ts +2 -2
  479. package/dist/compute/v1/generated/validators/rebuildInstanceRequestBody.zod.js +2 -2
  480. package/dist/compute/v1/generated/validators/rebuildInstanceResponseBody.zod.d.ts +2 -2
  481. package/dist/compute/v1/generated/validators/rebuildInstanceResponseBody.zod.js +2 -2
  482. package/dist/compute/v1/generated/validators/regionListResponseBody.zod.d.ts +5 -5
  483. package/dist/compute/v1/generated/validators/regionListResponseBody.zod.js +2 -2
  484. package/dist/compute/v1/generated/validators/regionResource.zod.d.ts +5 -5
  485. package/dist/compute/v1/generated/validators/regionResource.zod.js +2 -2
  486. package/dist/compute/v1/generated/validators/releaseResource.zod.d.ts +2 -2
  487. package/dist/compute/v1/generated/validators/releaseResource.zod.js +2 -2
  488. package/dist/compute/v1/generated/validators/releaseSetItem.zod.d.ts +2 -2
  489. package/dist/compute/v1/generated/validators/releaseSetItem.zod.js +2 -2
  490. package/dist/compute/v1/generated/validators/renameBackupRequestBody.zod.d.ts +2 -2
  491. package/dist/compute/v1/generated/validators/renameBackupRequestBody.zod.js +2 -2
  492. package/dist/compute/v1/generated/validators/renameDiskRequestBody.zod.d.ts +2 -2
  493. package/dist/compute/v1/generated/validators/renameDiskRequestBody.zod.js +2 -2
  494. package/dist/compute/v1/generated/validators/renameImageRequestBody.zod.d.ts +2 -2
  495. package/dist/compute/v1/generated/validators/renameImageRequestBody.zod.js +2 -2
  496. package/dist/compute/v1/generated/validators/renameInstanceRequestBody.zod.d.ts +2 -2
  497. package/dist/compute/v1/generated/validators/renameInstanceRequestBody.zod.js +2 -2
  498. package/dist/compute/v1/generated/validators/renamePrivateNetworkRequestBody.zod.d.ts +2 -2
  499. package/dist/compute/v1/generated/validators/renamePrivateNetworkRequestBody.zod.js +2 -2
  500. package/dist/compute/v1/generated/validators/renameSecurityGroupRequestBody.zod.d.ts +2 -2
  501. package/dist/compute/v1/generated/validators/renameSecurityGroupRequestBody.zod.js +2 -2
  502. package/dist/compute/v1/generated/validators/renameSnapshotRequestBody.zod.d.ts +2 -2
  503. package/dist/compute/v1/generated/validators/renameSnapshotRequestBody.zod.js +2 -2
  504. package/dist/compute/v1/generated/validators/resetPasswordRequestBody.zod.d.ts +2 -2
  505. package/dist/compute/v1/generated/validators/resetPasswordRequestBody.zod.js +2 -2
  506. package/dist/compute/v1/generated/validators/resetPasswordResponseBody.zod.d.ts +2 -2
  507. package/dist/compute/v1/generated/validators/resetPasswordResponseBody.zod.js +2 -2
  508. package/dist/compute/v1/generated/validators/resizeDiskQuoteRequestBody.zod.d.ts +2 -2
  509. package/dist/compute/v1/generated/validators/resizeDiskQuoteRequestBody.zod.js +2 -2
  510. package/dist/compute/v1/generated/validators/resizeDiskRequestBody.zod.d.ts +2 -2
  511. package/dist/compute/v1/generated/validators/resizeDiskRequestBody.zod.js +2 -2
  512. package/dist/compute/v1/generated/validators/resizeDiskResponseBody.zod.d.ts +4 -4
  513. package/dist/compute/v1/generated/validators/resizeDiskResponseBody.zod.js +2 -2
  514. package/dist/compute/v1/generated/validators/resizeInstanceQuoteRequestBody.zod.d.ts +2 -2
  515. package/dist/compute/v1/generated/validators/resizeInstanceQuoteRequestBody.zod.js +2 -2
  516. package/dist/compute/v1/generated/validators/resizeInstanceRequestBody.zod.d.ts +2 -2
  517. package/dist/compute/v1/generated/validators/resizeInstanceRequestBody.zod.js +2 -2
  518. package/dist/compute/v1/generated/validators/resizeInstanceResponseBody.zod.d.ts +2 -2
  519. package/dist/compute/v1/generated/validators/resizeInstanceResponseBody.zod.js +2 -2
  520. package/dist/compute/v1/generated/validators/restoreBackupQuoteRequestBody.zod.d.ts +5 -5
  521. package/dist/compute/v1/generated/validators/restoreBackupQuoteRequestBody.zod.js +2 -2
  522. package/dist/compute/v1/generated/validators/restoreBackupRequestBody.zod.d.ts +5 -5
  523. package/dist/compute/v1/generated/validators/restoreBackupRequestBody.zod.js +2 -2
  524. package/dist/compute/v1/generated/validators/revertDiskRequestBody.zod.d.ts +2 -2
  525. package/dist/compute/v1/generated/validators/revertDiskRequestBody.zod.js +2 -2
  526. package/dist/compute/v1/generated/validators/routeListResponseBody.zod.d.ts +2 -2
  527. package/dist/compute/v1/generated/validators/routeListResponseBody.zod.js +2 -2
  528. package/dist/compute/v1/generated/validators/routeResource.zod.d.ts +2 -2
  529. package/dist/compute/v1/generated/validators/routeResource.zod.js +2 -2
  530. package/dist/compute/v1/generated/validators/runCommandRequestBody.zod.d.ts +2 -2
  531. package/dist/compute/v1/generated/validators/runCommandRequestBody.zod.js +2 -2
  532. package/dist/compute/v1/generated/validators/securityGroupListResponseBody.zod.d.ts +2 -2
  533. package/dist/compute/v1/generated/validators/securityGroupListResponseBody.zod.js +2 -2
  534. package/dist/compute/v1/generated/validators/securityGroupResource.zod.d.ts +2 -2
  535. package/dist/compute/v1/generated/validators/securityGroupResource.zod.js +2 -2
  536. package/dist/compute/v1/generated/validators/securityRuleListResponseBody.zod.d.ts +2 -2
  537. package/dist/compute/v1/generated/validators/securityRuleListResponseBody.zod.js +2 -2
  538. package/dist/compute/v1/generated/validators/securityRuleResource.zod.d.ts +2 -2
  539. package/dist/compute/v1/generated/validators/securityRuleResource.zod.js +2 -2
  540. package/dist/compute/v1/generated/validators/setFloatingIPBandwidthQuoteRequestBody.zod.d.ts +2 -2
  541. package/dist/compute/v1/generated/validators/setFloatingIPBandwidthQuoteRequestBody.zod.js +2 -2
  542. package/dist/compute/v1/generated/validators/setFloatingIPBandwidthRequestBody.zod.d.ts +2 -2
  543. package/dist/compute/v1/generated/validators/setFloatingIPBandwidthRequestBody.zod.js +2 -2
  544. package/dist/compute/v1/generated/validators/setFloatingIPBandwidthResponseBody.zod.d.ts +3 -3
  545. package/dist/compute/v1/generated/validators/setFloatingIPBandwidthResponseBody.zod.js +2 -2
  546. package/dist/compute/v1/generated/validators/setInstanceLabelsRequestBody.zod.d.ts +2 -2
  547. package/dist/compute/v1/generated/validators/setInstanceLabelsRequestBody.zod.js +2 -2
  548. package/dist/compute/v1/generated/validators/setInstanceNotesRequestBody.zod.d.ts +2 -2
  549. package/dist/compute/v1/generated/validators/setInstanceNotesRequestBody.zod.js +2 -2
  550. package/dist/compute/v1/generated/validators/setSnapshotQuotaQuoteRequestBody.zod.d.ts +5 -5
  551. package/dist/compute/v1/generated/validators/setSnapshotQuotaQuoteRequestBody.zod.js +2 -2
  552. package/dist/compute/v1/generated/validators/setSnapshotQuotaRequestBody.zod.d.ts +5 -5
  553. package/dist/compute/v1/generated/validators/setSnapshotQuotaRequestBody.zod.js +2 -2
  554. package/dist/compute/v1/generated/validators/setSnapshotQuotaResponseBody.zod.d.ts +8 -8
  555. package/dist/compute/v1/generated/validators/setSnapshotQuotaResponseBody.zod.js +2 -2
  556. package/dist/compute/v1/generated/validators/snapshotListResponseBody.zod.d.ts +3 -3
  557. package/dist/compute/v1/generated/validators/snapshotListResponseBody.zod.js +2 -2
  558. package/dist/compute/v1/generated/validators/snapshotOperation.zod.d.ts +2 -2
  559. package/dist/compute/v1/generated/validators/snapshotOperation.zod.js +2 -2
  560. package/dist/compute/v1/generated/validators/snapshotQuota.zod.d.ts +8 -8
  561. package/dist/compute/v1/generated/validators/snapshotQuota.zod.js +2 -2
  562. package/dist/compute/v1/generated/validators/snapshotResource.zod.d.ts +3 -3
  563. package/dist/compute/v1/generated/validators/snapshotResource.zod.js +2 -2
  564. package/dist/compute/v1/generated/validators/subnetListResponseBody.zod.d.ts +2 -2
  565. package/dist/compute/v1/generated/validators/subnetListResponseBody.zod.js +2 -2
  566. package/dist/compute/v1/generated/validators/subnetResource.zod.d.ts +2 -2
  567. package/dist/compute/v1/generated/validators/subnetResource.zod.js +2 -2
  568. package/dist/compute/v1/generated/validators/suggestSubnetCidrParams.zod.d.ts +2 -2
  569. package/dist/compute/v1/generated/validators/suggestSubnetCidrParams.zod.js +2 -2
  570. package/dist/compute/v1/generated/validators/terminationPolicy.zod.d.ts +2 -2
  571. package/dist/compute/v1/generated/validators/terminationPolicy.zod.js +2 -2
  572. package/dist/compute/v1/generated/validators/zoneListResponseBody.zod.d.ts +2 -2
  573. package/dist/compute/v1/generated/validators/zoneListResponseBody.zod.js +2 -2
  574. package/dist/compute/v1/generated/validators/zoneResource.zod.d.ts +2 -2
  575. package/dist/compute/v1/generated/validators/zoneResource.zod.js +2 -2
  576. package/dist/iam/v1/generated/functions.d.ts +32 -1
  577. package/dist/iam/v1/generated/functions.js +43 -0
  578. package/dist/iam/v1/generated/models.d.ts +14 -0
  579. package/dist/iam/v1/generated/schemas.zod.d.ts +17 -0
  580. package/dist/iam/v1/generated/schemas.zod.js +16 -0
  581. package/dist/iam/v1/generated/validators/projectAccessResource.zod.d.ts +1 -0
  582. package/dist/iam/v1/generated/validators/projectResource.zod.d.ts +2 -0
  583. package/dist/iam/v1/generated/validators/projectResource.zod.js +6 -0
  584. package/dist/iam/v1/generated/validators/setProjectSlugRequestBody.zod.d.ts +22 -0
  585. package/dist/iam/v1/generated/validators/setProjectSlugRequestBody.zod.js +24 -0
  586. package/dist/membership/v1/generated/models.d.ts +75 -33
  587. package/dist/membership/v1/generated/models.js +2 -1
  588. package/dist/membership/v1/generated/validators/cancelSubscriptionRequest.zod.js +2 -2
  589. package/dist/membership/v1/generated/validators/cancellation.zod.js +2 -2
  590. package/dist/membership/v1/generated/validators/cancellationCreate.zod.js +2 -2
  591. package/dist/membership/v1/generated/validators/{terminationPolicy.zod.d.ts → cancellationPolicy.zod.d.ts} +3 -3
  592. package/dist/membership/v1/generated/validators/{terminationPolicy.zod.js → cancellationPolicy.zod.js} +2 -2
  593. package/dist/membership/v1/generated/validators/cancellationRefundPreview.zod.d.ts +2 -0
  594. package/dist/membership/v1/generated/validators/cancellationRefundPreview.zod.js +4 -3
  595. package/dist/membership/v1/generated/validators/cancellationRefundPreviewItem.zod.d.ts +1 -0
  596. package/dist/membership/v1/generated/validators/cancellationRefundPreviewItem.zod.js +1 -0
  597. package/dist/membership/v1/generated/validators/invoiceItem.zod.d.ts +1 -0
  598. package/dist/membership/v1/generated/validators/invoiceItem.zod.js +4 -0
  599. package/dist/membership/v1/generated/validators/invoiceItemList.zod.d.ts +1 -0
  600. package/dist/membership/v1/generated/validators/order.zod.d.ts +5 -3
  601. package/dist/membership/v1/generated/validators/orderItem.zod.d.ts +5 -3
  602. package/dist/membership/v1/generated/validators/orderItem.zod.js +10 -6
  603. package/dist/membership/v1/generated/validators/orderItemList.zod.d.ts +5 -3
  604. package/dist/membership/v1/generated/validators/orderList.zod.d.ts +5 -3
  605. package/dist/membership/v1/generated/validators/orderRefundQuote.zod.js +1 -1
  606. package/dist/membership/v1/generated/validators/price.zod.d.ts +4 -1
  607. package/dist/membership/v1/generated/validators/price.zod.js +10 -2
  608. package/dist/membership/v1/generated/validators/priceList.zod.d.ts +4 -1
  609. package/dist/membership/v1/generated/validators/quote.zod.d.ts +2 -0
  610. package/dist/membership/v1/generated/validators/quoteCancellation.zod.js +2 -2
  611. package/dist/membership/v1/generated/validators/quoteItemInput.zod.d.ts +1 -1
  612. package/dist/membership/v1/generated/validators/quoteItemInput.zod.js +2 -2
  613. package/dist/membership/v1/generated/validators/quoteRenewal.zod.d.ts +1 -1
  614. package/dist/membership/v1/generated/validators/quoteRenewal.zod.js +3 -3
  615. package/dist/membership/v1/generated/validators/quoteRequest.zod.d.ts +2 -2
  616. package/dist/membership/v1/generated/validators/refundPolicy.zod.d.ts +1 -0
  617. package/dist/membership/v1/generated/validators/refundPolicy.zod.js +2 -2
  618. package/dist/membership/v1/generated/validators/refundReason.zod.js +1 -1
  619. package/dist/membership/v1/generated/validators/renewRequest.zod.d.ts +1 -1
  620. package/dist/membership/v1/generated/validators/renewRequest.zod.js +3 -3
  621. package/dist/membership/v1/generated/validators/renewalOrderRequest.zod.d.ts +1 -1
  622. package/dist/membership/v1/generated/validators/renewalOrderRequest.zod.js +2 -2
  623. package/dist/membership/v1/generated/validators/renewalPrice.zod.d.ts +4 -1
  624. package/dist/membership/v1/generated/validators/renewalPrice.zod.js +4 -2
  625. package/dist/membership/v1/generated/validators/renewalPriceList.zod.d.ts +4 -1
  626. package/dist/membership/v1/generated/validators/subscription.zod.d.ts +5 -1
  627. package/dist/membership/v1/generated/validators/subscription.zod.js +14 -2
  628. package/dist/membership/v1/generated/validators/subscriptionList.zod.d.ts +5 -1
  629. package/dist/membership/v1/generated/validators/usageCharge.zod.d.ts +1 -0
  630. package/dist/membership/v1/generated/validators/usageCharge.zod.js +4 -0
  631. package/dist/membership/v1/generated/validators/usageChargeList.zod.d.ts +1 -0
  632. package/dist/routes.d.ts +32 -0
  633. package/dist/routes.js +36 -0
  634. package/dist/type/resource/v1/generated/validators/attachment.zod.d.ts +1 -1
  635. package/dist/type/resource/v1/generated/validators/attachmentList.zod.d.ts +1 -1
  636. package/dist/type/resource/v1/generated/validators/resourceUsage.zod.d.ts +1 -1
  637. package/dist/type/resource/v1/generated/validators/resourceUsageList.zod.d.ts +1 -1
  638. package/package.json +1 -1
@@ -15,10 +15,17 @@
15
15
  * 3. Every other service is called with that scoped token.
16
16
  *
17
17
  * A scoped token cannot be renewed. Repeat step 2 for a new one, and sign in again at auth.leaflow.net once the access token itself has expired.
18
+ *
19
+ * ## Project slugs
20
+ *
21
+ * Every project carries a `slug`, the label naming it in its address. Until a custom slug is chosen the slug is the project's `id`, and the address under the `id` keeps working after a custom slug is chosen. `GET /account/v1/projects/by-slug/{slug}` finds the project named by either label.
22
+ *
23
+ * Looking up slugs and claiming custom slugs are rate limited per account. A request over the limit fails with 429, and `meta.retry_after_seconds` on the error states how many seconds to wait before retrying.
18
24
  * OpenAPI spec version: 1.0.0
19
25
  */
20
26
  import * as zod from "zod";
21
27
  import { ProjectTraitResource } from "./projectTraitResource.zod.js";
28
+ export const projectResourceSlugMax = 36;
22
29
  export const ProjectResource = zod.strictObject({
23
30
  traits: zod.array(ProjectTraitResource),
24
31
  deletion_requested_at: zod.iso.datetime({ offset: true }).nullable(),
@@ -30,6 +37,11 @@ export const ProjectResource = zod.strictObject({
30
37
  .describe("When the project was deleted"),
31
38
  description: zod.string(),
32
39
  id: zod.uuid(),
40
+ slug: zod
41
+ .string()
42
+ .min(1)
43
+ .max(projectResourceSlugMax)
44
+ .describe("The label naming the project in its address. It equals `id` until a custom slug is chosen. A custom slug does not change once set, and stays with the project after deletion"),
33
45
  name: zod.string(),
34
46
  updated_at: zod.iso.datetime({ offset: true }),
35
47
  });
@@ -0,0 +1,36 @@
1
+ /**
2
+ * Generated by orval 🍺
3
+ * Do not edit manually.
4
+ * Leaflow Account API
5
+ * Everything that comes before a project is chosen: registration, the account itself, the projects the caller belongs to, and entry into one of them.
6
+ *
7
+ * ## Authentication
8
+ *
9
+ * Every request carries `Authorization: Bearer <access token>`, obtained by signing in at auth.leaflow.net. The endpoints that need no token say so.
10
+ *
11
+ * ## Entering a project
12
+ *
13
+ * 1. `GET /account/v1/projects` lists the projects the caller belongs to. The first call registers the account, taking the name and email address from the sign-in claims.
14
+ * 2. `POST /account/v1/projects/{projectId}/scoped-tokens` returns a scoped token for the project chosen.
15
+ * 3. Every other service is called with that scoped token.
16
+ *
17
+ * A scoped token cannot be renewed. Repeat step 2 for a new one, and sign in again at auth.leaflow.net once the access token itself has expired.
18
+ *
19
+ * ## Project slugs
20
+ *
21
+ * Every project carries a `slug`, the label naming it in its address. Until a custom slug is chosen the slug is the project's `id`, and the address under the `id` keeps working after a custom slug is chosen. `GET /account/v1/projects/by-slug/{slug}` finds the project named by either label.
22
+ *
23
+ * Looking up slugs and claiming custom slugs are rate limited per account. A request over the limit fails with 429, and `meta.retry_after_seconds` on the error states how many seconds to wait before retrying.
24
+ * OpenAPI spec version: 1.0.0
25
+ */
26
+ import * as zod from "zod";
27
+ export declare const ProjectSlugAvailabilityResource: zod.ZodObject<{
28
+ slug: zod.ZodString;
29
+ status: zod.ZodEnum<{
30
+ available: "available";
31
+ reserved: "reserved";
32
+ taken: "taken";
33
+ }>;
34
+ }, zod.z.core.$strict>;
35
+ export type ProjectSlugAvailabilityResource = zod.input<typeof ProjectSlugAvailabilityResource>;
36
+ export type ProjectSlugAvailabilityResourceOutput = zod.output<typeof ProjectSlugAvailabilityResource>;
@@ -0,0 +1,32 @@
1
+ /**
2
+ * Generated by orval 🍺
3
+ * Do not edit manually.
4
+ * Leaflow Account API
5
+ * Everything that comes before a project is chosen: registration, the account itself, the projects the caller belongs to, and entry into one of them.
6
+ *
7
+ * ## Authentication
8
+ *
9
+ * Every request carries `Authorization: Bearer <access token>`, obtained by signing in at auth.leaflow.net. The endpoints that need no token say so.
10
+ *
11
+ * ## Entering a project
12
+ *
13
+ * 1. `GET /account/v1/projects` lists the projects the caller belongs to. The first call registers the account, taking the name and email address from the sign-in claims.
14
+ * 2. `POST /account/v1/projects/{projectId}/scoped-tokens` returns a scoped token for the project chosen.
15
+ * 3. Every other service is called with that scoped token.
16
+ *
17
+ * A scoped token cannot be renewed. Repeat step 2 for a new one, and sign in again at auth.leaflow.net once the access token itself has expired.
18
+ *
19
+ * ## Project slugs
20
+ *
21
+ * Every project carries a `slug`, the label naming it in its address. Until a custom slug is chosen the slug is the project's `id`, and the address under the `id` keeps working after a custom slug is chosen. `GET /account/v1/projects/by-slug/{slug}` finds the project named by either label.
22
+ *
23
+ * Looking up slugs and claiming custom slugs are rate limited per account. A request over the limit fails with 429, and `meta.retry_after_seconds` on the error states how many seconds to wait before retrying.
24
+ * OpenAPI spec version: 1.0.0
25
+ */
26
+ import * as zod from "zod";
27
+ export const ProjectSlugAvailabilityResource = zod.strictObject({
28
+ slug: zod.string().describe("The slug asked about"),
29
+ status: zod
30
+ .enum(["available", "reserved", "taken"])
31
+ .describe("`available` when the slug can be chosen now, `reserved` when the name is reserved, and `taken` when a project, including a deleted one, holds it"),
32
+ });
@@ -15,6 +15,12 @@
15
15
  * 3. Every other service is called with that scoped token.
16
16
  *
17
17
  * A scoped token cannot be renewed. Repeat step 2 for a new one, and sign in again at auth.leaflow.net once the access token itself has expired.
18
+ *
19
+ * ## Project slugs
20
+ *
21
+ * Every project carries a `slug`, the label naming it in its address. Until a custom slug is chosen the slug is the project's `id`, and the address under the `id` keeps working after a custom slug is chosen. `GET /account/v1/projects/by-slug/{slug}` finds the project named by either label.
22
+ *
23
+ * Looking up slugs and claiming custom slugs are rate limited per account. A request over the limit fails with 429, and `meta.retry_after_seconds` on the error states how many seconds to wait before retrying.
18
24
  * OpenAPI spec version: 1.0.0
19
25
  */
20
26
  import * as zod from "zod";
@@ -15,6 +15,12 @@
15
15
  * 3. Every other service is called with that scoped token.
16
16
  *
17
17
  * A scoped token cannot be renewed. Repeat step 2 for a new one, and sign in again at auth.leaflow.net once the access token itself has expired.
18
+ *
19
+ * ## Project slugs
20
+ *
21
+ * Every project carries a `slug`, the label naming it in its address. Until a custom slug is chosen the slug is the project's `id`, and the address under the `id` keeps working after a custom slug is chosen. `GET /account/v1/projects/by-slug/{slug}` finds the project named by either label.
22
+ *
23
+ * Looking up slugs and claiming custom slugs are rate limited per account. A request over the limit fails with 429, and `meta.retry_after_seconds` on the error states how many seconds to wait before retrying.
18
24
  * OpenAPI spec version: 1.0.0
19
25
  */
20
26
  import * as zod from "zod";
@@ -15,6 +15,12 @@
15
15
  * 3. Every other service is called with that scoped token.
16
16
  *
17
17
  * A scoped token cannot be renewed. Repeat step 2 for a new one, and sign in again at auth.leaflow.net once the access token itself has expired.
18
+ *
19
+ * ## Project slugs
20
+ *
21
+ * Every project carries a `slug`, the label naming it in its address. Until a custom slug is chosen the slug is the project's `id`, and the address under the `id` keeps working after a custom slug is chosen. `GET /account/v1/projects/by-slug/{slug}` finds the project named by either label.
22
+ *
23
+ * Looking up slugs and claiming custom slugs are rate limited per account. A request over the limit fails with 429, and `meta.retry_after_seconds` on the error states how many seconds to wait before retrying.
18
24
  * OpenAPI spec version: 1.0.0
19
25
  */
20
26
  import * as zod from "zod";
@@ -15,6 +15,12 @@
15
15
  * 3. Every other service is called with that scoped token.
16
16
  *
17
17
  * A scoped token cannot be renewed. Repeat step 2 for a new one, and sign in again at auth.leaflow.net once the access token itself has expired.
18
+ *
19
+ * ## Project slugs
20
+ *
21
+ * Every project carries a `slug`, the label naming it in its address. Until a custom slug is chosen the slug is the project's `id`, and the address under the `id` keeps working after a custom slug is chosen. `GET /account/v1/projects/by-slug/{slug}` finds the project named by either label.
22
+ *
23
+ * Looking up slugs and claiming custom slugs are rate limited per account. A request over the limit fails with 429, and `meta.retry_after_seconds` on the error states how many seconds to wait before retrying.
18
24
  * OpenAPI spec version: 1.0.0
19
25
  */
20
26
  import * as zod from "zod";
@@ -15,6 +15,12 @@
15
15
  * 3. Every other service is called with that scoped token.
16
16
  *
17
17
  * A scoped token cannot be renewed. Repeat step 2 for a new one, and sign in again at auth.leaflow.net once the access token itself has expired.
18
+ *
19
+ * ## Project slugs
20
+ *
21
+ * Every project carries a `slug`, the label naming it in its address. Until a custom slug is chosen the slug is the project's `id`, and the address under the `id` keeps working after a custom slug is chosen. `GET /account/v1/projects/by-slug/{slug}` finds the project named by either label.
22
+ *
23
+ * Looking up slugs and claiming custom slugs are rate limited per account. A request over the limit fails with 429, and `meta.retry_after_seconds` on the error states how many seconds to wait before retrying.
18
24
  * OpenAPI spec version: 1.0.0
19
25
  */
20
26
  import * as zod from "zod";
@@ -15,6 +15,12 @@
15
15
  * 3. Every other service is called with that scoped token.
16
16
  *
17
17
  * A scoped token cannot be renewed. Repeat step 2 for a new one, and sign in again at auth.leaflow.net once the access token itself has expired.
18
+ *
19
+ * ## Project slugs
20
+ *
21
+ * Every project carries a `slug`, the label naming it in its address. Until a custom slug is chosen the slug is the project's `id`, and the address under the `id` keeps working after a custom slug is chosen. `GET /account/v1/projects/by-slug/{slug}` finds the project named by either label.
22
+ *
23
+ * Looking up slugs and claiming custom slugs are rate limited per account. A request over the limit fails with 429, and `meta.retry_after_seconds` on the error states how many seconds to wait before retrying.
18
24
  * OpenAPI spec version: 1.0.0
19
25
  */
20
26
  import * as zod from "zod";
@@ -15,6 +15,12 @@
15
15
  * 3. Every other service is called with that scoped token.
16
16
  *
17
17
  * A scoped token cannot be renewed. Repeat step 2 for a new one, and sign in again at auth.leaflow.net once the access token itself has expired.
18
+ *
19
+ * ## Project slugs
20
+ *
21
+ * Every project carries a `slug`, the label naming it in its address. Until a custom slug is chosen the slug is the project's `id`, and the address under the `id` keeps working after a custom slug is chosen. `GET /account/v1/projects/by-slug/{slug}` finds the project named by either label.
22
+ *
23
+ * Looking up slugs and claiming custom slugs are rate limited per account. A request over the limit fails with 429, and `meta.retry_after_seconds` on the error states how many seconds to wait before retrying.
18
24
  * OpenAPI spec version: 1.0.0
19
25
  */
20
26
  import * as zod from "zod";
@@ -15,6 +15,12 @@
15
15
  * 3. Every other service is called with that scoped token.
16
16
  *
17
17
  * A scoped token cannot be renewed. Repeat step 2 for a new one, and sign in again at auth.leaflow.net once the access token itself has expired.
18
+ *
19
+ * ## Project slugs
20
+ *
21
+ * Every project carries a `slug`, the label naming it in its address. Until a custom slug is chosen the slug is the project's `id`, and the address under the `id` keeps working after a custom slug is chosen. `GET /account/v1/projects/by-slug/{slug}` finds the project named by either label.
22
+ *
23
+ * Looking up slugs and claiming custom slugs are rate limited per account. A request over the limit fails with 429, and `meta.retry_after_seconds` on the error states how many seconds to wait before retrying.
18
24
  * OpenAPI spec version: 1.0.0
19
25
  */
20
26
  import * as zod from "zod";
@@ -15,6 +15,12 @@
15
15
  * 3. Every other service is called with that scoped token.
16
16
  *
17
17
  * A scoped token cannot be renewed. Repeat step 2 for a new one, and sign in again at auth.leaflow.net once the access token itself has expired.
18
+ *
19
+ * ## Project slugs
20
+ *
21
+ * Every project carries a `slug`, the label naming it in its address. Until a custom slug is chosen the slug is the project's `id`, and the address under the `id` keeps working after a custom slug is chosen. `GET /account/v1/projects/by-slug/{slug}` finds the project named by either label.
22
+ *
23
+ * Looking up slugs and claiming custom slugs are rate limited per account. A request over the limit fails with 429, and `meta.retry_after_seconds` on the error states how many seconds to wait before retrying.
18
24
  * OpenAPI spec version: 1.0.0
19
25
  */
20
26
  import * as zod from "zod";
@@ -53,6 +59,7 @@ export declare const ScopedTokenResponseBody: zod.ZodObject<{
53
59
  deleted_at: zod.ZodNullable<zod.z.ZodISODateTime>;
54
60
  description: zod.ZodString;
55
61
  id: zod.ZodUUID;
62
+ slug: zod.ZodString;
56
63
  name: zod.ZodString;
57
64
  updated_at: zod.z.ZodISODateTime;
58
65
  }, zod.z.core.$strict>;
@@ -15,6 +15,12 @@
15
15
  * 3. Every other service is called with that scoped token.
16
16
  *
17
17
  * A scoped token cannot be renewed. Repeat step 2 for a new one, and sign in again at auth.leaflow.net once the access token itself has expired.
18
+ *
19
+ * ## Project slugs
20
+ *
21
+ * Every project carries a `slug`, the label naming it in its address. Until a custom slug is chosen the slug is the project's `id`, and the address under the `id` keeps working after a custom slug is chosen. `GET /account/v1/projects/by-slug/{slug}` finds the project named by either label.
22
+ *
23
+ * Looking up slugs and claiming custom slugs are rate limited per account. A request over the limit fails with 429, and `meta.retry_after_seconds` on the error states how many seconds to wait before retrying.
18
24
  * OpenAPI spec version: 1.0.0
19
25
  */
20
26
  import * as zod from "zod";
@@ -15,6 +15,12 @@
15
15
  * 3. Every other service is called with that scoped token.
16
16
  *
17
17
  * A scoped token cannot be renewed. Repeat step 2 for a new one, and sign in again at auth.leaflow.net once the access token itself has expired.
18
+ *
19
+ * ## Project slugs
20
+ *
21
+ * Every project carries a `slug`, the label naming it in its address. Until a custom slug is chosen the slug is the project's `id`, and the address under the `id` keeps working after a custom slug is chosen. `GET /account/v1/projects/by-slug/{slug}` finds the project named by either label.
22
+ *
23
+ * Looking up slugs and claiming custom slugs are rate limited per account. A request over the limit fails with 429, and `meta.retry_after_seconds` on the error states how many seconds to wait before retrying.
18
24
  * OpenAPI spec version: 1.0.0
19
25
  */
20
26
  import * as zod from "zod";
@@ -15,6 +15,12 @@
15
15
  * 3. Every other service is called with that scoped token.
16
16
  *
17
17
  * A scoped token cannot be renewed. Repeat step 2 for a new one, and sign in again at auth.leaflow.net once the access token itself has expired.
18
+ *
19
+ * ## Project slugs
20
+ *
21
+ * Every project carries a `slug`, the label naming it in its address. Until a custom slug is chosen the slug is the project's `id`, and the address under the `id` keeps working after a custom slug is chosen. `GET /account/v1/projects/by-slug/{slug}` finds the project named by either label.
22
+ *
23
+ * Looking up slugs and claiming custom slugs are rate limited per account. A request over the limit fails with 429, and `meta.retry_after_seconds` on the error states how many seconds to wait before retrying.
18
24
  * OpenAPI spec version: 1.0.0
19
25
  */
20
26
  import * as zod from "zod";
@@ -15,6 +15,12 @@
15
15
  * 3. Every other service is called with that scoped token.
16
16
  *
17
17
  * A scoped token cannot be renewed. Repeat step 2 for a new one, and sign in again at auth.leaflow.net once the access token itself has expired.
18
+ *
19
+ * ## Project slugs
20
+ *
21
+ * Every project carries a `slug`, the label naming it in its address. Until a custom slug is chosen the slug is the project's `id`, and the address under the `id` keeps working after a custom slug is chosen. `GET /account/v1/projects/by-slug/{slug}` finds the project named by either label.
22
+ *
23
+ * Looking up slugs and claiming custom slugs are rate limited per account. A request over the limit fails with 429, and `meta.retry_after_seconds` on the error states how many seconds to wait before retrying.
18
24
  * OpenAPI spec version: 1.0.0
19
25
  */
20
26
  import * as zod from "zod";
@@ -15,6 +15,12 @@
15
15
  * 3. Every other service is called with that scoped token.
16
16
  *
17
17
  * A scoped token cannot be renewed. Repeat step 2 for a new one, and sign in again at auth.leaflow.net once the access token itself has expired.
18
+ *
19
+ * ## Project slugs
20
+ *
21
+ * Every project carries a `slug`, the label naming it in its address. Until a custom slug is chosen the slug is the project's `id`, and the address under the `id` keeps working after a custom slug is chosen. `GET /account/v1/projects/by-slug/{slug}` finds the project named by either label.
22
+ *
23
+ * Looking up slugs and claiming custom slugs are rate limited per account. A request over the limit fails with 429, and `meta.retry_after_seconds` on the error states how many seconds to wait before retrying.
18
24
  * OpenAPI spec version: 1.0.0
19
25
  */
20
26
  import * as zod from "zod";
@@ -15,6 +15,12 @@
15
15
  * 3. Every other service is called with that scoped token.
16
16
  *
17
17
  * A scoped token cannot be renewed. Repeat step 2 for a new one, and sign in again at auth.leaflow.net once the access token itself has expired.
18
+ *
19
+ * ## Project slugs
20
+ *
21
+ * Every project carries a `slug`, the label naming it in its address. Until a custom slug is chosen the slug is the project's `id`, and the address under the `id` keeps working after a custom slug is chosen. `GET /account/v1/projects/by-slug/{slug}` finds the project named by either label.
22
+ *
23
+ * Looking up slugs and claiming custom slugs are rate limited per account. A request over the limit fails with 429, and `meta.retry_after_seconds` on the error states how many seconds to wait before retrying.
18
24
  * OpenAPI spec version: 1.0.0
19
25
  */
20
26
  import * as zod from "zod";
@@ -15,6 +15,12 @@
15
15
  * 3. Every other service is called with that scoped token.
16
16
  *
17
17
  * A scoped token cannot be renewed. Repeat step 2 for a new one, and sign in again at auth.leaflow.net once the access token itself has expired.
18
+ *
19
+ * ## Project slugs
20
+ *
21
+ * Every project carries a `slug`, the label naming it in its address. Until a custom slug is chosen the slug is the project's `id`, and the address under the `id` keeps working after a custom slug is chosen. `GET /account/v1/projects/by-slug/{slug}` finds the project named by either label.
22
+ *
23
+ * Looking up slugs and claiming custom slugs are rate limited per account. A request over the limit fails with 429, and `meta.retry_after_seconds` on the error states how many seconds to wait before retrying.
18
24
  * OpenAPI spec version: 1.0.0
19
25
  */
20
26
  import * as zod from "zod";
@@ -250,20 +250,34 @@ export interface WithdrawalItemList {
250
250
  pagination: OffsetPagination;
251
251
  }
252
252
  /**
253
- * Whether a delivered purchase may end immediately or only at the end of its paid term; refunds follow the refund policy. When absent, no termination terms were agreed.
253
+ * Whether a cancellation of a delivered purchase may take effect immediately or only at the end of its paid term; refunds follow the refund policy. When absent, no cancellation terms were agreed.
254
254
  */
255
- export type TerminationPolicy = (typeof TerminationPolicy)[keyof typeof TerminationPolicy];
256
- export declare const TerminationPolicy: {
255
+ export type CancellationPolicy = (typeof CancellationPolicy)[keyof typeof CancellationPolicy];
256
+ export declare const CancellationPolicy: {
257
257
  readonly immediate: "immediate";
258
258
  readonly period_end: "period_end";
259
259
  };
260
260
  /**
261
- * `none` refunds nothing. `prorated` refunds the amount paid for the current period minus the value of the time used, never below zero or above what remains unrefunded. Time used runs from the period start to the effective cancellation and is valued at prices frozen on the order item: each full calendar month at `refund_monthly_amount`, the rest at `refund_hourly_amount` or, without it, at the monthly price by the second. When the plan has no licensed period shorter than the one bought, time used is valued pro rata at the price paid. Discounts and setup fees are not refunded. Refunds return to the original payment sources, with tax refunded in proportion.
261
+ * `none` refunds nothing.
262
+ *
263
+ * `prorated` refunds the amount paid for the current period minus the value of the time used, never below zero
264
+ * or above what remains unrefunded. Time used runs from the period start to the effective cancellation, by the
265
+ * second. Each whole month from the period start is valued at the order item's `monthly_list_amount`, and the
266
+ * remainder at that amount in proportion to the length of the month it falls in; without `monthly_list_amount`,
267
+ * time used is valued at the amount paid in proportion to the length of the period. A renewal starts a new
268
+ * period, and an immediate change starts one at the change. Discounts and setup fees are not refunded. Refunds
269
+ * return to the original payment sources, with tax refunded in proportion.
270
+ *
271
+ * `short_rate` refunds as `prorated`, except that when the cancellation takes effect less than
272
+ * `short_rate_threshold_seconds` after the period start, the value of the time used is multiplied by
273
+ * `short_rate_multiplier`, up to `monthly_list_amount` for each month begun or, without `monthly_list_amount`,
274
+ * up to the amount paid.
262
275
  */
263
276
  export type RefundPolicy = (typeof RefundPolicy)[keyof typeof RefundPolicy];
264
277
  export declare const RefundPolicy: {
265
278
  readonly none: "none";
266
279
  readonly prorated: "prorated";
280
+ readonly short_rate: "short_rate";
267
281
  };
268
282
  export interface OrderCancel {
269
283
  /**
@@ -283,8 +297,8 @@ export declare const QuoteRenewalInterval: {
283
297
  * Price renewing a licensed subscription. Give `price_id`, or `interval` with
284
298
  * `interval_count`, to renew for another term at the price currently sold for it. Naming
285
299
  * the current term, or giving neither, renews at the agreed amount. A term sold at several
286
- * prices that differ in termination policy is refused with 409
287
- * `BILLING_RENEWAL_OPTION_AMBIGUOUS` unless `termination_policy` or `price_id` is given.
300
+ * prices that differ in cancellation policy is refused with 409
301
+ * `BILLING_RENEWAL_OPTION_AMBIGUOUS` unless `cancellation_policy` or `price_id` is given.
288
302
  */
289
303
  export interface QuoteRenewal {
290
304
  subscription_id: string;
@@ -292,8 +306,8 @@ export interface QuoteRenewal {
292
306
  interval?: QuoteRenewalInterval;
293
307
  /** @minimum 1 */
294
308
  interval_count?: number;
295
- /** With `interval` and `interval_count`, chooses among prices of that term that differ in termination policy. */
296
- termination_policy?: TerminationPolicy;
309
+ /** With `interval` and `interval_count`, chooses among prices of that term that differ in cancellation policy. */
310
+ cancellation_policy?: CancellationPolicy;
297
311
  /**
298
312
  * How many consecutive periods to renew for.
299
313
  * @minimum 1
@@ -444,6 +458,7 @@ export interface CancellationRefundPreviewItem {
444
458
  /** Whether automatic renewal is on now. Creating the cancellation turns it off; withdrawing it turns it back on for a metered subscription but not for a licensed one. */
445
459
  auto_renew: boolean;
446
460
  unused_amount: Money;
461
+ short_rate_surcharge_amount: Money;
447
462
  refundable_amount: Money;
448
463
  refund_amount: Money;
449
464
  credit_amount: Money;
@@ -454,8 +469,9 @@ export interface CancellationRefundPreviewItem {
454
469
  * What the cancellation would return, per subscription and in total, as of now. Give `proration_date` and
455
470
  * `refundable_amount` when creating the cancellation.
456
471
  *
457
- * - `unused_amount`: before tax, the amount paid for the current periods minus the value of the time used,
458
- * valued as refund policy `prorated` describes, whatever the refund terms say.
472
+ * - `unused_amount`: before tax, the amount paid for the current periods in proportion to the time remaining.
473
+ * - `short_rate_surcharge_amount`: before tax, the part of `forfeited_amount` due to the short rate of the
474
+ * refund policy.
459
475
  * - `refundable_amount`: what is returned the way it was paid, tax included; `refund_amount` plus
460
476
  * `credit_amount`.
461
477
  * - `refund_amount`: the part returned to the balance or the payment method.
@@ -466,13 +482,14 @@ export interface CancellationRefundPreviewItem {
466
482
  * Metered and one-time subscriptions show zero; their usage until release is charged as usual.
467
483
  */
468
484
  export interface CancellationRefundPreview {
469
- mode: TerminationPolicy;
485
+ mode: CancellationPolicy;
470
486
  /** For `period_end`, when release begins, the end of the paid terms. */
471
487
  scheduled_at?: string;
472
488
  /** For `immediate`, the second the refund is computed as of. Give it when creating the cancellation. */
473
489
  proration_date?: string;
474
490
  currency: string;
475
491
  unused_amount: Money;
492
+ short_rate_surcharge_amount: Money;
476
493
  refundable_amount: Money;
477
494
  refund_amount: Money;
478
495
  credit_amount: Money;
@@ -481,7 +498,7 @@ export interface CancellationRefundPreview {
481
498
  items: CancellationRefundPreviewItem[];
482
499
  }
483
500
  /**
484
- * An estimated refund to the original payment sources. Before acceptance, cancellation returns the collected amount. For delivered service, only value paid by this order is included; renewals are evaluated with their own orders under the agreed termination terms. Nothing is refunded by the quote; the amount is fixed when cancellation or termination is confirmed.
501
+ * An estimated refund to the original payment sources. Before acceptance, cancellation returns the collected amount. For delivered service, only value paid by this order is included; renewals are evaluated with their own orders under the agreed cancellation terms. Nothing is refunded by the quote; the amount is fixed when cancellation or termination is confirmed.
485
502
  */
486
503
  export interface OrderRefundQuote {
487
504
  order_id: string;
@@ -520,7 +537,7 @@ export interface QuoteCancellation {
520
537
  * @maxItems 50
521
538
  */
522
539
  subscription_ids: string[];
523
- mode: TerminationPolicy;
540
+ mode: CancellationPolicy;
524
541
  }
525
542
  export interface CancellationCreate {
526
543
  /**
@@ -529,7 +546,7 @@ export interface CancellationCreate {
529
546
  * @maxItems 50
530
547
  */
531
548
  subscription_ids: string[];
532
- mode: TerminationPolicy;
549
+ mode: CancellationPolicy;
533
550
  /** For `immediate`, the quote's `proration_date`: a whole second, not in the future and at most ten minutes old; the refund is computed as of it. Now when omitted. */
534
551
  proration_date?: string;
535
552
  /** The quote's `refundable_amount`; the cancellation is refused when the refund differs. */
@@ -609,7 +626,7 @@ export interface CancellationItem {
609
626
  export interface Cancellation {
610
627
  id: string;
611
628
  status: CancellationStatus;
612
- mode: TerminationPolicy;
629
+ mode: CancellationPolicy;
613
630
  scheduled_at?: string;
614
631
  /** For `immediate`, the second the refund is computed as of. */
615
632
  proration_date?: string;
@@ -1392,6 +1409,8 @@ export interface InvoiceItem {
1392
1409
  /** The part covered by an included allowance, and therefore not charged. */
1393
1410
  deducted_quantity?: string;
1394
1411
  unit_amount?: Money;
1412
+ /** The quantity `unit_amount` prices, such as 1000000 tokens or 3600 seconds: `amount` is `quantity` × `unit_amount` ÷ `unit_quantity`. Present together with `unit_amount`. */
1413
+ unit_quantity?: string;
1395
1414
  amount: Money;
1396
1415
  currency: string;
1397
1416
  /** @nullable */
@@ -1540,9 +1559,11 @@ export declare const RefundStatus: {
1540
1559
  * - `change_expired`: a scheduled change could not take effect in time.
1541
1560
  * - `subscription_canceled`: the unused value of a canceled subscription, under its refund terms.
1542
1561
  * - `future_period_canceled`: a renewal that had not started was withdrawn.
1543
- * - `downgrade_difference`: after a downgrade, the remaining paid value, valued as refund policy `prorated`
1544
- * describes, minus the new configuration's cost for the remaining time at the change item's
1545
- * `refund_monthly_amount` and `refund_hourly_amount`.
1562
+ * - `downgrade_difference`: after a downgrade, the remaining paid value, valued under each paid period's refund
1563
+ * policy and as `prorated` where that policy is `none`, minus the new configuration's value for the remaining
1564
+ * time: each whole month at the change item's `monthly_list_amount` and the remainder in proportion to the
1565
+ * length of the month it falls in, or without `monthly_list_amount`, the new period price in proportion to the
1566
+ * remaining time.
1546
1567
  * - `usage_true_up`: usage priced over the whole month cost less than was charged.
1547
1568
  * - `payment_not_applied`: a payment arrived after its invoice could no longer be paid.
1548
1569
  * - `operator`: made by the platform operator.
@@ -1642,6 +1663,8 @@ export interface UsageCharge {
1642
1663
  /** The quantity charged: gross quantity less the part covered by allowances. */
1643
1664
  quantity: string;
1644
1665
  unit_amount?: Money;
1666
+ /** The quantity `unit_amount` prices, such as 1000000 tokens or 3600 seconds: `amount` is `quantity` × `unit_amount` ÷ `unit_quantity`. */
1667
+ unit_quantity?: string;
1645
1668
  amount: Money;
1646
1669
  currency: string;
1647
1670
  /**
@@ -1761,8 +1784,14 @@ export interface Subscription {
1761
1784
  interval_count?: number;
1762
1785
  /** The whole licensed subscription's renewal amount, after continuing discounts and before tax. A pending subscription shows base terms until paying the order fixes any new discount. Absent for metered and one-time subscriptions. */
1763
1786
  recurring_amount?: string;
1764
- termination_policy?: TerminationPolicy;
1787
+ cancellation_policy?: CancellationPolicy;
1765
1788
  refund_policy?: RefundPolicy;
1789
+ /** Refund policy `short_rate` only, as on the price bought. */
1790
+ short_rate_multiplier?: string;
1791
+ /** Refund policy `short_rate` only, as on the price bought. */
1792
+ short_rate_threshold_seconds?: number;
1793
+ /** Licensed recurring only, the `monthly_list_amount` that a renewal at the agreed amount keeps; see the order item. */
1794
+ monthly_list_amount?: string;
1766
1795
  order_item_id?: string;
1767
1796
  coupon_id?: string;
1768
1797
  coupon?: ObjectIdentity;
@@ -1835,8 +1864,12 @@ export declare const RenewalPriceInterval: {
1835
1864
  readonly year: "year";
1836
1865
  };
1837
1866
  export interface RenewalPrice {
1838
- termination_policy?: TerminationPolicy;
1867
+ cancellation_policy?: CancellationPolicy;
1839
1868
  refund_policy?: RefundPolicy;
1869
+ /** Refund policy `short_rate` only. */
1870
+ short_rate_multiplier?: string;
1871
+ /** Refund policy `short_rate` only. */
1872
+ short_rate_threshold_seconds?: number;
1840
1873
  price_id: string;
1841
1874
  /** How many periods one renewal covers. */
1842
1875
  interval_count: number;
@@ -1875,8 +1908,8 @@ export interface RenewRequest {
1875
1908
  * Leaving both out renews at the price this item already bills at, which a later price
1876
1909
  * change does not affect. Naming a term that differs from the current one is a fresh
1877
1910
  * choice, so it is bought at today's price. Naming the current term changes nothing. A
1878
- * term sold at several prices that differ in termination policy is refused with 409
1879
- * `BILLING_RENEWAL_OPTION_AMBIGUOUS` unless `termination_policy` is given.
1911
+ * term sold at several prices that differ in cancellation policy is refused with 409
1912
+ * `BILLING_RENEWAL_OPTION_AMBIGUOUS` unless `cancellation_policy` is given.
1880
1913
  *
1881
1914
  * List the terms on offer with the renewal prices operation.
1882
1915
  * @minimum 1
@@ -1884,8 +1917,8 @@ export interface RenewRequest {
1884
1917
  interval_count?: number;
1885
1918
  /** The unit interval_count counts in. */
1886
1919
  interval?: RenewRequestInterval;
1887
- /** With `interval` and `interval_count`, chooses among prices of that term that differ in termination policy. */
1888
- termination_policy?: TerminationPolicy;
1920
+ /** With `interval` and `interval_count`, chooses among prices of that term that differ in cancellation policy. */
1921
+ cancellation_policy?: CancellationPolicy;
1889
1922
  payment_method_id?: string;
1890
1923
  /** Whether to pay from the balance, with or without `payment_method_id`. */
1891
1924
  use_balance?: boolean;
@@ -1921,7 +1954,7 @@ export interface RenewalOrderRequest {
1921
1954
  /** As in renewing. */
1922
1955
  interval?: RenewalOrderRequestInterval;
1923
1956
  /** As in renewing. */
1924
- termination_policy?: TerminationPolicy;
1957
+ cancellation_policy?: CancellationPolicy;
1925
1958
  }
1926
1959
  export interface AutoRenewSet {
1927
1960
  auto_renew: boolean;
@@ -2002,18 +2035,23 @@ export interface OrderItem {
2002
2035
  interval: OrderItemInterval;
2003
2036
  /** @minimum 1 */
2004
2037
  interval_count?: number;
2005
- termination_policy?: TerminationPolicy;
2038
+ cancellation_policy?: CancellationPolicy;
2006
2039
  refund_policy?: RefundPolicy;
2007
2040
  /**
2008
- * Recurring licensed items only: the plan's one-month licensed price for this item's quantity, before tax and frozen at purchase, used to value time under a prorated refund or a downgrade. Null when the plan has no licensed period shorter than the one bought.
2041
+ * Recurring licensed items only: a month at list price for this item's quantity, before tax and discounts, which values time under a refund or a downgrade. It is the monthly amount of the shortest period the plan sells, not longer than the one bought, at the item's dimensions, fixed at purchase; a renewal at the agreed amount keeps the previous value. Null when time used is valued at the amount paid, as for a daily period.
2042
+ * @nullable
2043
+ */
2044
+ monthly_list_amount?: string | null;
2045
+ /**
2046
+ * Refund policy `short_rate` only, as on the price when bought.
2009
2047
  * @nullable
2010
2048
  */
2011
- refund_monthly_amount?: string | null;
2049
+ short_rate_multiplier?: string | null;
2012
2050
  /**
2013
- * Recurring licensed items only, the plan's metered hourly price for this item's quantity before tax, frozen at purchase, used for time used short of a full month. Null when the licensed price has no meter.
2051
+ * Refund policy `short_rate` only, as on the price when bought.
2014
2052
  * @nullable
2015
2053
  */
2016
- refund_hourly_amount?: string | null;
2054
+ short_rate_threshold_seconds?: number | null;
2017
2055
  recurring_amount?: string;
2018
2056
  setup_amount?: string;
2019
2057
  type: PriceType;
@@ -2343,8 +2381,12 @@ export interface Price {
2343
2381
  unit_quantity: string;
2344
2382
  /** False once archived. An archived price cannot be bought until it is active again. */
2345
2383
  active: boolean;
2346
- termination_policy?: TerminationPolicy;
2384
+ cancellation_policy?: CancellationPolicy;
2347
2385
  refund_policy?: RefundPolicy;
2386
+ /** Refund policy `short_rate` only, the factor applied to the value of the time used when a cancellation takes effect less than `short_rate_threshold_seconds` after the period start. */
2387
+ short_rate_multiplier?: string;
2388
+ /** Refund policy `short_rate` only, how long after the period start `short_rate_multiplier` applies. */
2389
+ short_rate_threshold_seconds?: number;
2348
2390
  product_id?: ProductID;
2349
2391
  id: string;
2350
2392
  plan_id: string;
@@ -2469,7 +2511,7 @@ export interface QuoteItemInput {
2469
2511
  /** @minimum 1 */
2470
2512
  interval_count?: number;
2471
2513
  /** Selects among licensed prices with otherwise identical billing terms. Ambiguous terms are refused instead of choosing a price arbitrarily. */
2472
- termination_policy?: TerminationPolicy;
2514
+ cancellation_policy?: CancellationPolicy;
2473
2515
  /** @pattern ^(?:(?:[1-9][0-9]{0,27}|0(?:[1-9][0-9]{0,26}|0(?:[1-9][0-9]{0,25}|0(?:[1-9][0-9]{0,24}|0(?:[1-9][0-9]{0,23}|0(?:[1-9][0-9]{0,22}|0(?:[1-9][0-9]{0,21}|0(?:[1-9][0-9]{0,20}|0(?:[1-9][0-9]{0,19}|0(?:[1-9][0-9]{0,18}|0(?:[1-9][0-9]{0,17}|0(?:[1-9][0-9]{0,16}|0(?:[1-9][0-9]{0,15}|0(?:[1-9][0-9]{0,14}|0(?:[1-9][0-9]{0,13}|0(?:[1-9][0-9]{0,12}|0(?:[1-9][0-9]{0,11}|0(?:[1-9][0-9]{0,10}|0(?:[1-9][0-9]{0,9}|0(?:[1-9][0-9]{0,8}|0(?:[1-9][0-9]{0,7}|0(?:[1-9][0-9]{0,6}|0(?:[1-9][0-9]{0,5}|0(?:[1-9][0-9]{0,4}|0(?:[1-9][0-9]{0,3}|0(?:[1-9][0-9]{0,2}|0(?:[1-9][0-9]{0,1}|0[1-9])))))))))))))))))))))))))))([.][0-9]{1,10})?|0{1,28}[.](?:[1-9][0-9]{0,9}|0(?:[1-9][0-9]{0,8}|0(?:[1-9][0-9]{0,7}|0(?:[1-9][0-9]{0,6}|0(?:[1-9][0-9]{0,5}|0(?:[1-9][0-9]{0,4}|0(?:[1-9][0-9]{0,3}|0(?:[1-9][0-9]{0,2}|0(?:[1-9][0-9]{0,1}|0[1-9]))))))))))$ */
2474
2516
  quantity: string;
2475
2517
  meter_id?: string;
@@ -2694,7 +2736,7 @@ export interface ContactList {
2694
2736
  pagination: OffsetPagination;
2695
2737
  }
2696
2738
  export interface CancelSubscriptionRequest {
2697
- mode: TerminationPolicy;
2739
+ mode: CancellationPolicy;
2698
2740
  /** For immediate cancellation, the quoted whole-second refund basis. Now when omitted. */
2699
2741
  proration_date?: string;
2700
2742
  /** The cancellation quote's refundable amount, including an explicit zero. */
@@ -18,13 +18,14 @@ export const WithdrawalStatus = {
18
18
  failed: "failed",
19
19
  reversed: "reversed",
20
20
  };
21
- export const TerminationPolicy = {
21
+ export const CancellationPolicy = {
22
22
  immediate: "immediate",
23
23
  period_end: "period_end",
24
24
  };
25
25
  export const RefundPolicy = {
26
26
  none: "none",
27
27
  prorated: "prorated",
28
+ short_rate: "short_rate",
28
29
  };
29
30
  export const QuoteRenewalInterval = {
30
31
  day: "day",