@leaflow/sdk 0.0.0-dev.377.gdbef936 → 0.0.0-dev.379.g796e6e7

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 (1084) hide show
  1. package/dist/billing/type/checkout/v1/generated/models.d.ts +20 -12
  2. package/dist/billing/type/checkout/v1/generated/validators/checkoutMode.zod.js +1 -1
  3. package/dist/billing/type/checkout/v1/generated/validators/checkoutOptions.zod.d.ts +2 -0
  4. package/dist/billing/type/checkout/v1/generated/validators/checkoutOptions.zod.js +8 -2
  5. package/dist/billing/type/order/v1/generated/validators/invoice.zod.d.ts +1 -1
  6. package/dist/billing/type/order/v1/generated/validators/invoiceList.zod.d.ts +1 -1
  7. package/dist/billing/type/order/v1/generated/validators/invoiceStatus.zod.d.ts +1 -1
  8. package/dist/billing/type/order/v1/generated/validators/invoiceSummary.zod.d.ts +1 -1
  9. package/dist/billing/type/order/v1/generated/validators/order.zod.d.ts +1 -1
  10. package/dist/billing/type/order/v1/generated/validators/orderList.zod.d.ts +1 -1
  11. package/dist/billing/type/order/v1/generated/validators/placedOrder.zod.d.ts +1 -1
  12. package/dist/billing/type/quote/v1/generated/models.d.ts +75 -3
  13. package/dist/billing/type/quote/v1/generated/models.js +18 -1
  14. package/dist/billing/type/quote/v1/generated/validators/quote.zod.d.ts +27 -2
  15. package/dist/billing/type/quote/v1/generated/validators/quote.zod.js +5 -2
  16. package/dist/billing/type/quote/v1/generated/validators/quoteItem.zod.d.ts +21 -0
  17. package/dist/billing/type/quote/v1/generated/validators/quoteItem.zod.js +24 -0
  18. package/dist/billing/v1/generated/functions.d.ts +269 -62
  19. package/dist/billing/v1/generated/functions.js +300 -59
  20. package/dist/billing/v1/generated/models.d.ts +498 -158
  21. package/dist/billing/v1/generated/models.js +48 -11
  22. package/dist/billing/v1/generated/schemas.zod.d.ts +135 -56
  23. package/dist/billing/v1/generated/schemas.zod.js +153 -48
  24. package/dist/billing/v1/generated/validators/{quoteCancellation.zod.d.ts → cancellationPreviewRequest.zod.d.ts} +5 -4
  25. package/dist/billing/v1/generated/validators/cancellationPreviewRequest.zod.js +24 -0
  26. package/dist/billing/v1/generated/validators/cancellationRefundPreviewItem.zod.js +1 -1
  27. package/dist/billing/v1/generated/validators/checkoutMode.zod.d.ts +14 -0
  28. package/dist/billing/v1/generated/validators/checkoutMode.zod.js +11 -0
  29. package/dist/billing/v1/generated/validators/checkoutOptions.zod.d.ts +21 -0
  30. package/dist/billing/v1/generated/validators/checkoutOptions.zod.js +26 -0
  31. package/dist/billing/v1/generated/validators/checkoutSession.zod.d.ts +54 -0
  32. package/dist/billing/v1/generated/validators/checkoutSession.zod.js +47 -0
  33. package/dist/billing/v1/generated/validators/checkoutSessionConfirm.zod.d.ts +17 -0
  34. package/dist/billing/v1/generated/validators/checkoutSessionConfirm.zod.js +24 -0
  35. package/dist/billing/v1/generated/validators/{renewalOrderRequest.zod.d.ts → checkoutSessionCreate.zod.d.ts} +6 -5
  36. package/dist/billing/v1/generated/validators/{renewalOrderRequest.zod.js → checkoutSessionCreate.zod.js} +7 -6
  37. package/dist/billing/v1/generated/validators/checkoutSessionItem.zod.d.ts +21 -0
  38. package/dist/billing/v1/generated/validators/checkoutSessionItem.zod.js +33 -0
  39. package/dist/billing/v1/generated/validators/checkoutSessionItemList.zod.d.ts +27 -0
  40. package/dist/billing/v1/generated/validators/checkoutSessionItemList.zod.js +14 -0
  41. package/dist/billing/v1/generated/validators/checkoutSessionList.zod.d.ts +61 -0
  42. package/dist/billing/v1/generated/validators/checkoutSessionList.zod.js +14 -0
  43. package/dist/{membership/v1/generated/validators/orderList.zod.d.ts → billing/v1/generated/validators/checkoutSessionResult.zod.d.ts} +52 -14
  44. package/dist/billing/v1/generated/validators/checkoutSessionResult.zod.js +16 -0
  45. package/dist/billing/v1/generated/validators/checkoutSessionStatus.zod.d.ts +15 -0
  46. package/dist/billing/v1/generated/validators/checkoutSessionStatus.zod.js +11 -0
  47. package/dist/billing/v1/generated/validators/getCheckoutSessionQuoteParams.zod.d.ts +14 -0
  48. package/dist/billing/v1/generated/validators/getCheckoutSessionQuoteParams.zod.js +12 -0
  49. package/dist/billing/v1/generated/validators/invoice.zod.d.ts +0 -1
  50. package/dist/billing/v1/generated/validators/invoice.zod.js +1 -1
  51. package/dist/billing/v1/generated/validators/invoiceList.zod.d.ts +0 -1
  52. package/dist/billing/v1/generated/validators/invoiceStatus.zod.d.ts +0 -1
  53. package/dist/billing/v1/generated/validators/invoiceStatus.zod.js +2 -2
  54. package/dist/billing/v1/generated/validators/invoiceSummary.zod.d.ts +0 -1
  55. package/dist/billing/v1/generated/validators/invoiceSummary.zod.js +1 -1
  56. package/dist/billing/v1/generated/validators/listCheckoutSessionItemsParams.zod.d.ts +18 -0
  57. package/dist/billing/v1/generated/validators/listCheckoutSessionItemsParams.zod.js +24 -0
  58. package/dist/billing/v1/generated/validators/listCheckoutSessionsParams.zod.d.ts +26 -0
  59. package/dist/billing/v1/generated/validators/listCheckoutSessionsParams.zod.js +29 -0
  60. package/dist/billing/v1/generated/validators/listInvoicesParams.zod.d.ts +0 -1
  61. package/dist/billing/v1/generated/validators/order.zod.d.ts +1 -2
  62. package/dist/billing/v1/generated/validators/order.zod.js +6 -6
  63. package/dist/billing/v1/generated/validators/orderList.zod.d.ts +1 -2
  64. package/dist/billing/v1/generated/validators/{orderRefundQuote.zod.d.ts → orderRefundPreview.zod.d.ts} +3 -3
  65. package/dist/billing/v1/generated/validators/{orderRefundQuote.zod.js → orderRefundPreview.zod.js} +1 -1
  66. package/dist/billing/v1/generated/validators/payInvoiceRequest.zod.d.ts +0 -4
  67. package/dist/billing/v1/generated/validators/payInvoiceRequest.zod.js +0 -12
  68. package/dist/billing/v1/generated/validators/previewInvoicePaymentParams.zod.d.ts +0 -2
  69. package/dist/billing/v1/generated/validators/previewInvoicePaymentParams.zod.js +0 -2
  70. package/dist/billing/v1/generated/validators/{orderRefundQuoteInput.zod.d.ts → previewOrderRefundParams.zod.d.ts} +4 -5
  71. package/dist/billing/v1/generated/validators/previewOrderRefundParams.zod.js +16 -0
  72. package/dist/billing/v1/generated/validators/quote.zod.d.ts +37 -51
  73. package/dist/billing/v1/generated/validators/quote.zod.js +12 -7
  74. package/dist/billing/v1/generated/validators/quoteItem.zod.d.ts +20 -1
  75. package/dist/billing/v1/generated/validators/quoteItem.zod.js +28 -10
  76. package/dist/billing/v1/generated/validators/quoteItemInput.zod.d.ts +0 -4
  77. package/dist/billing/v1/generated/validators/quoteItemInput.zod.js +2 -9
  78. package/dist/billing/v1/generated/validators/quoteRequest.zod.d.ts +4 -16
  79. package/dist/billing/v1/generated/validators/quoteRequest.zod.js +13 -12
  80. package/dist/billing/v1/generated/validators/quotedDiscount.zod.d.ts +10 -0
  81. package/dist/billing/v1/generated/validators/quotedDiscount.zod.js +11 -0
  82. package/dist/billing/v1/generated/validators/usageEstimate.zod.d.ts +23 -0
  83. package/dist/billing/v1/generated/validators/usageEstimate.zod.js +15 -0
  84. package/dist/billing/v1/generated/validators/usageEstimateInput.zod.d.ts +26 -0
  85. package/dist/billing/v1/generated/validators/usageEstimateInput.zod.js +37 -0
  86. package/dist/billing/v1/generated/validators/usageEstimateItem.zod.d.ts +20 -0
  87. package/dist/billing/v1/generated/validators/usageEstimateItem.zod.js +27 -0
  88. package/dist/billing/v1/generated/validators/usageEstimateRequest.zod.d.ts +28 -0
  89. package/dist/billing/v1/generated/validators/usageEstimateRequest.zod.js +20 -0
  90. package/dist/canopy/v1/generated/functions.d.ts +1 -1
  91. package/dist/canopy/v1/generated/functions.js +1 -1
  92. package/dist/canopy/v1/generated/models.d.ts +115 -2840
  93. package/dist/canopy/v1/generated/models.js +7 -355
  94. package/dist/canopy/v1/generated/schemas.zod.d.ts +2 -1
  95. package/dist/canopy/v1/generated/schemas.zod.js +1 -1
  96. package/dist/canopy/v1/generated/validators/checkoutMode.zod.js +1 -1
  97. package/dist/canopy/v1/generated/validators/checkoutOptions.zod.d.ts +2 -0
  98. package/dist/canopy/v1/generated/validators/checkoutOptions.zod.js +8 -2
  99. package/dist/canopy/v1/generated/validators/createServiceRequestBody.zod.d.ts +1 -0
  100. package/dist/canopy/v1/generated/validators/createServiceResponseBody.zod.d.ts +4 -26
  101. package/dist/canopy/v1/generated/validators/createServiceResponseBody.zod.js +8 -3
  102. package/dist/canopy/v1/generated/validators/quote.zod.d.ts +27 -2
  103. package/dist/canopy/v1/generated/validators/quote.zod.js +7 -4
  104. package/dist/canopy/v1/generated/validators/quoteItem.zod.d.ts +24 -6
  105. package/dist/canopy/v1/generated/validators/quoteItem.zod.js +34 -21
  106. package/dist/canopy/v1/generated/validators/serviceResource.zod.d.ts +2 -1
  107. package/dist/canopy/v1/generated/validators/serviceResource.zod.js +9 -4
  108. package/dist/compute/v1/generated/functions.d.ts +19 -19
  109. package/dist/compute/v1/generated/functions.js +15 -15
  110. package/dist/compute/v1/generated/models.d.ts +244 -70
  111. package/dist/compute/v1/generated/models.js +25 -0
  112. package/dist/compute/v1/generated/schemas.zod.d.ts +30 -19
  113. package/dist/compute/v1/generated/schemas.zod.js +19 -19
  114. package/dist/compute/v1/generated/validators/allocateFloatingIPQuoteRequestBody.zod.d.ts +4 -4
  115. package/dist/compute/v1/generated/validators/allocateFloatingIPQuoteRequestBody.zod.js +4 -4
  116. package/dist/compute/v1/generated/validators/allocateFloatingIPRequestBody.zod.d.ts +5 -4
  117. package/dist/compute/v1/generated/validators/allocateFloatingIPRequestBody.zod.js +4 -4
  118. package/dist/compute/v1/generated/validators/allocateFloatingIPResponseBody.zod.d.ts +8 -9
  119. package/dist/compute/v1/generated/validators/allocateFloatingIPResponseBody.zod.js +12 -7
  120. package/dist/compute/v1/generated/validators/attachDiskRequestBody.zod.d.ts +4 -4
  121. package/dist/compute/v1/generated/validators/attachDiskRequestBody.zod.js +4 -4
  122. package/dist/compute/v1/generated/validators/attachFloatingIPRequestBody.zod.d.ts +4 -4
  123. package/dist/compute/v1/generated/validators/attachFloatingIPRequestBody.zod.js +4 -4
  124. package/dist/compute/v1/generated/validators/attachPortRequestBody.zod.d.ts +4 -4
  125. package/dist/compute/v1/generated/validators/attachPortRequestBody.zod.js +4 -4
  126. package/dist/compute/v1/generated/validators/backupCapacityPack.zod.d.ts +7 -6
  127. package/dist/compute/v1/generated/validators/backupCapacityPack.zod.js +11 -6
  128. package/dist/compute/v1/generated/validators/backupCapacityPackListResponseBody.zod.d.ts +7 -6
  129. package/dist/compute/v1/generated/validators/backupCapacityPackListResponseBody.zod.js +4 -4
  130. package/dist/compute/v1/generated/validators/backupListResponseBody.zod.d.ts +4 -4
  131. package/dist/compute/v1/generated/validators/backupListResponseBody.zod.js +4 -4
  132. package/dist/compute/v1/generated/validators/backupOperation.zod.d.ts +4 -4
  133. package/dist/compute/v1/generated/validators/backupOperation.zod.js +4 -4
  134. package/dist/compute/v1/generated/validators/backupResource.zod.d.ts +4 -4
  135. package/dist/compute/v1/generated/validators/backupResource.zod.js +4 -4
  136. package/dist/compute/v1/generated/validators/backupService.zod.d.ts +6 -5
  137. package/dist/compute/v1/generated/validators/backupService.zod.js +12 -7
  138. package/dist/compute/v1/generated/validators/billingChoice.zod.d.ts +4 -4
  139. package/dist/compute/v1/generated/validators/billingChoice.zod.js +4 -4
  140. package/dist/compute/v1/generated/validators/billingPeriod.zod.d.ts +4 -4
  141. package/dist/compute/v1/generated/validators/billingPeriod.zod.js +4 -4
  142. package/dist/compute/v1/generated/validators/bindFloatingIPRequestBody.zod.d.ts +4 -4
  143. package/dist/compute/v1/generated/validators/bindFloatingIPRequestBody.zod.js +4 -4
  144. package/dist/compute/v1/generated/validators/bootDisk.zod.d.ts +4 -4
  145. package/dist/compute/v1/generated/validators/bootDisk.zod.js +4 -4
  146. package/dist/compute/v1/generated/validators/checkoutMode.zod.d.ts +4 -4
  147. package/dist/compute/v1/generated/validators/checkoutMode.zod.js +5 -5
  148. package/dist/compute/v1/generated/validators/checkoutOptions.zod.d.ts +6 -4
  149. package/dist/compute/v1/generated/validators/checkoutOptions.zod.js +12 -6
  150. package/dist/compute/v1/generated/validators/commandResultResponseBody.zod.d.ts +4 -4
  151. package/dist/compute/v1/generated/validators/commandResultResponseBody.zod.js +4 -4
  152. package/dist/compute/v1/generated/validators/consoleOutputResponseBody.zod.d.ts +4 -4
  153. package/dist/compute/v1/generated/validators/consoleOutputResponseBody.zod.js +4 -4
  154. package/dist/compute/v1/generated/validators/consoleResponseBody.zod.d.ts +4 -4
  155. package/dist/compute/v1/generated/validators/consoleResponseBody.zod.js +4 -4
  156. package/dist/compute/v1/generated/validators/createBackupCapacityPackQuoteRequestBody.zod.d.ts +4 -4
  157. package/dist/compute/v1/generated/validators/createBackupCapacityPackQuoteRequestBody.zod.js +4 -4
  158. package/dist/compute/v1/generated/validators/createBackupCapacityPackRequestBody.zod.d.ts +5 -4
  159. package/dist/compute/v1/generated/validators/createBackupCapacityPackRequestBody.zod.js +4 -4
  160. package/dist/compute/v1/generated/validators/createBackupCapacityPackResponseBody.zod.d.ts +9 -10
  161. package/dist/compute/v1/generated/validators/createBackupCapacityPackResponseBody.zod.js +11 -6
  162. package/dist/compute/v1/generated/validators/createBackupRequestBody.zod.d.ts +4 -4
  163. package/dist/compute/v1/generated/validators/createBackupRequestBody.zod.js +4 -4
  164. package/dist/compute/v1/generated/validators/createBackupServiceRequestBody.zod.d.ts +5 -4
  165. package/dist/compute/v1/generated/validators/createBackupServiceRequestBody.zod.js +4 -4
  166. package/dist/compute/v1/generated/validators/createBackupServiceResponseBody.zod.d.ts +8 -9
  167. package/dist/compute/v1/generated/validators/createBackupServiceResponseBody.zod.js +11 -6
  168. package/dist/compute/v1/generated/validators/createDiskQuoteRequestBody.zod.d.ts +4 -4
  169. package/dist/compute/v1/generated/validators/createDiskQuoteRequestBody.zod.js +4 -4
  170. package/dist/compute/v1/generated/validators/createDiskRequestBody.zod.d.ts +5 -4
  171. package/dist/compute/v1/generated/validators/createDiskRequestBody.zod.js +4 -4
  172. package/dist/compute/v1/generated/validators/createDiskResponseBody.zod.d.ts +8 -9
  173. package/dist/compute/v1/generated/validators/createDiskResponseBody.zod.js +12 -7
  174. package/dist/compute/v1/generated/validators/createImageQuoteRequestBody.zod.d.ts +4 -4
  175. package/dist/compute/v1/generated/validators/createImageQuoteRequestBody.zod.js +4 -4
  176. package/dist/compute/v1/generated/validators/createImageRequestBody.zod.d.ts +5 -4
  177. package/dist/compute/v1/generated/validators/createImageRequestBody.zod.js +4 -4
  178. package/dist/compute/v1/generated/validators/createImageResponseBody.zod.d.ts +8 -9
  179. package/dist/compute/v1/generated/validators/createImageResponseBody.zod.js +12 -7
  180. package/dist/compute/v1/generated/validators/createPeeringRequestBody.zod.d.ts +4 -4
  181. package/dist/compute/v1/generated/validators/createPeeringRequestBody.zod.js +4 -4
  182. package/dist/compute/v1/generated/validators/createPortRequestBody.zod.d.ts +4 -4
  183. package/dist/compute/v1/generated/validators/createPortRequestBody.zod.js +4 -4
  184. package/dist/compute/v1/generated/validators/createPrivateNetworkRequestBody.zod.d.ts +4 -4
  185. package/dist/compute/v1/generated/validators/createPrivateNetworkRequestBody.zod.js +4 -4
  186. package/dist/compute/v1/generated/validators/createRouteRequestBody.zod.d.ts +4 -4
  187. package/dist/compute/v1/generated/validators/createRouteRequestBody.zod.js +4 -4
  188. package/dist/compute/v1/generated/validators/createSecurityGroupRequestBody.zod.d.ts +4 -4
  189. package/dist/compute/v1/generated/validators/createSecurityGroupRequestBody.zod.js +4 -4
  190. package/dist/compute/v1/generated/validators/createSecurityRuleRequestBody.zod.d.ts +4 -4
  191. package/dist/compute/v1/generated/validators/createSecurityRuleRequestBody.zod.js +4 -4
  192. package/dist/compute/v1/generated/validators/createSnapshotRequestBody.zod.d.ts +4 -4
  193. package/dist/compute/v1/generated/validators/createSnapshotRequestBody.zod.js +4 -4
  194. package/dist/compute/v1/generated/validators/createSubnetRequestBody.zod.d.ts +4 -4
  195. package/dist/compute/v1/generated/validators/createSubnetRequestBody.zod.js +4 -4
  196. package/dist/compute/v1/generated/validators/cursorPagination.zod.d.ts +4 -4
  197. package/dist/compute/v1/generated/validators/cursorPagination.zod.js +4 -4
  198. package/dist/compute/v1/generated/validators/diskAttachment.zod.d.ts +4 -4
  199. package/dist/compute/v1/generated/validators/diskAttachment.zod.js +4 -4
  200. package/dist/compute/v1/generated/validators/diskAttachmentList.zod.d.ts +4 -4
  201. package/dist/compute/v1/generated/validators/diskAttachmentList.zod.js +4 -4
  202. package/dist/compute/v1/generated/validators/diskListResponseBody.zod.d.ts +6 -5
  203. package/dist/compute/v1/generated/validators/diskListResponseBody.zod.js +4 -4
  204. package/dist/compute/v1/generated/validators/diskOperation.zod.d.ts +4 -4
  205. package/dist/compute/v1/generated/validators/diskOperation.zod.js +4 -4
  206. package/dist/compute/v1/generated/validators/diskResource.zod.d.ts +6 -5
  207. package/dist/compute/v1/generated/validators/diskResource.zod.js +10 -5
  208. package/dist/compute/v1/generated/validators/diskTypeListResponseBody.zod.d.ts +4 -4
  209. package/dist/compute/v1/generated/validators/diskTypeListResponseBody.zod.js +4 -4
  210. package/dist/compute/v1/generated/validators/diskTypePurpose.zod.d.ts +4 -4
  211. package/dist/compute/v1/generated/validators/diskTypePurpose.zod.js +4 -4
  212. package/dist/compute/v1/generated/validators/diskTypeResource.zod.d.ts +4 -4
  213. package/dist/compute/v1/generated/validators/diskTypeResource.zod.js +4 -4
  214. package/dist/compute/v1/generated/validators/error.zod.d.ts +4 -4
  215. package/dist/compute/v1/generated/validators/error.zod.js +4 -4
  216. package/dist/compute/v1/generated/validators/existingBootDisk.zod.d.ts +4 -4
  217. package/dist/compute/v1/generated/validators/existingBootDisk.zod.js +4 -4
  218. package/dist/compute/v1/generated/validators/floatingIPListResponseBody.zod.d.ts +6 -5
  219. package/dist/compute/v1/generated/validators/floatingIPListResponseBody.zod.js +4 -4
  220. package/dist/compute/v1/generated/validators/floatingIPOperation.zod.d.ts +4 -4
  221. package/dist/compute/v1/generated/validators/floatingIPOperation.zod.js +4 -4
  222. package/dist/compute/v1/generated/validators/floatingIPResource.zod.d.ts +6 -5
  223. package/dist/compute/v1/generated/validators/floatingIPResource.zod.js +10 -5
  224. package/dist/compute/v1/generated/validators/funds.zod.d.ts +4 -4
  225. package/dist/compute/v1/generated/validators/funds.zod.js +4 -4
  226. package/dist/compute/v1/generated/validators/getInstanceConsoleOutputParams.zod.d.ts +4 -4
  227. package/dist/compute/v1/generated/validators/getInstanceConsoleOutputParams.zod.js +4 -4
  228. package/dist/compute/v1/generated/validators/iPv4Binding.zod.d.ts +4 -4
  229. package/dist/compute/v1/generated/validators/iPv4Binding.zod.js +4 -4
  230. package/dist/compute/v1/generated/validators/iPv4PoolListResponseBody.zod.d.ts +4 -4
  231. package/dist/compute/v1/generated/validators/iPv4PoolListResponseBody.zod.js +4 -4
  232. package/dist/compute/v1/generated/validators/iPv4PoolResource.zod.d.ts +4 -4
  233. package/dist/compute/v1/generated/validators/iPv4PoolResource.zod.js +4 -4
  234. package/dist/compute/v1/generated/validators/iPv6ResponseBody.zod.d.ts +4 -4
  235. package/dist/compute/v1/generated/validators/iPv6ResponseBody.zod.js +4 -4
  236. package/dist/compute/v1/generated/validators/imageListResponseBody.zod.d.ts +6 -5
  237. package/dist/compute/v1/generated/validators/imageListResponseBody.zod.js +4 -4
  238. package/dist/compute/v1/generated/validators/imageOperation.zod.d.ts +4 -4
  239. package/dist/compute/v1/generated/validators/imageOperation.zod.js +4 -4
  240. package/dist/compute/v1/generated/validators/imageResource.zod.d.ts +6 -5
  241. package/dist/compute/v1/generated/validators/imageResource.zod.js +10 -5
  242. package/dist/compute/v1/generated/validators/imageVisibility.zod.d.ts +4 -4
  243. package/dist/compute/v1/generated/validators/imageVisibility.zod.js +4 -4
  244. package/dist/compute/v1/generated/validators/instanceListResponseBody.zod.d.ts +6 -5
  245. package/dist/compute/v1/generated/validators/instanceListResponseBody.zod.js +4 -4
  246. package/dist/compute/v1/generated/validators/instanceOperation.zod.d.ts +4 -4
  247. package/dist/compute/v1/generated/validators/instanceOperation.zod.js +4 -4
  248. package/dist/compute/v1/generated/validators/instanceResource.zod.d.ts +6 -5
  249. package/dist/compute/v1/generated/validators/instanceResource.zod.js +10 -5
  250. package/dist/compute/v1/generated/validators/instanceRestriction.zod.d.ts +4 -4
  251. package/dist/compute/v1/generated/validators/instanceRestriction.zod.js +4 -4
  252. package/dist/compute/v1/generated/validators/instanceTypeListResponseBody.zod.d.ts +4 -4
  253. package/dist/compute/v1/generated/validators/instanceTypeListResponseBody.zod.js +4 -4
  254. package/dist/compute/v1/generated/validators/instanceTypeResource.zod.d.ts +4 -4
  255. package/dist/compute/v1/generated/validators/instanceTypeResource.zod.js +4 -4
  256. package/dist/compute/v1/generated/validators/launchInstanceQuoteRequestBody.zod.d.ts +4 -4
  257. package/dist/compute/v1/generated/validators/launchInstanceQuoteRequestBody.zod.js +4 -4
  258. package/dist/compute/v1/generated/validators/launchInstanceRequestBody.zod.d.ts +5 -4
  259. package/dist/compute/v1/generated/validators/launchInstanceRequestBody.zod.js +4 -4
  260. package/dist/compute/v1/generated/validators/launchInstanceResponseBody.zod.d.ts +8 -9
  261. package/dist/compute/v1/generated/validators/launchInstanceResponseBody.zod.js +12 -7
  262. package/dist/compute/v1/generated/validators/listAvailabilityZonesParams.zod.d.ts +4 -4
  263. package/dist/compute/v1/generated/validators/listAvailabilityZonesParams.zod.js +4 -4
  264. package/dist/compute/v1/generated/validators/listBackupCapacityPacksParams.zod.d.ts +4 -4
  265. package/dist/compute/v1/generated/validators/listBackupCapacityPacksParams.zod.js +4 -4
  266. package/dist/compute/v1/generated/validators/listBackupsParams.zod.d.ts +4 -4
  267. package/dist/compute/v1/generated/validators/listBackupsParams.zod.js +4 -4
  268. package/dist/compute/v1/generated/validators/listDiskTypesParams.zod.d.ts +4 -4
  269. package/dist/compute/v1/generated/validators/listDiskTypesParams.zod.js +4 -4
  270. package/dist/compute/v1/generated/validators/listDisksParams.zod.d.ts +4 -4
  271. package/dist/compute/v1/generated/validators/listDisksParams.zod.js +4 -4
  272. package/dist/compute/v1/generated/validators/listFloatingIpsParams.zod.d.ts +4 -4
  273. package/dist/compute/v1/generated/validators/listFloatingIpsParams.zod.js +4 -4
  274. package/dist/compute/v1/generated/validators/listImagesParams.zod.d.ts +4 -4
  275. package/dist/compute/v1/generated/validators/listImagesParams.zod.js +4 -4
  276. package/dist/compute/v1/generated/validators/listInstanceDisksParams.zod.d.ts +4 -4
  277. package/dist/compute/v1/generated/validators/listInstanceDisksParams.zod.js +4 -4
  278. package/dist/compute/v1/generated/validators/listInstancePortsParams.zod.d.ts +4 -4
  279. package/dist/compute/v1/generated/validators/listInstancePortsParams.zod.js +4 -4
  280. package/dist/compute/v1/generated/validators/listInstanceTypesParams.zod.d.ts +4 -4
  281. package/dist/compute/v1/generated/validators/listInstanceTypesParams.zod.js +4 -4
  282. package/dist/compute/v1/generated/validators/listInstancesParams.zod.d.ts +4 -4
  283. package/dist/compute/v1/generated/validators/listInstancesParams.zod.js +4 -4
  284. package/dist/compute/v1/generated/validators/listIpv4PoolsParams.zod.d.ts +4 -4
  285. package/dist/compute/v1/generated/validators/listIpv4PoolsParams.zod.js +4 -4
  286. package/dist/compute/v1/generated/validators/listOperationLogsParams.zod.d.ts +4 -4
  287. package/dist/compute/v1/generated/validators/listOperationLogsParams.zod.js +4 -4
  288. package/dist/compute/v1/generated/validators/listPeeringsParams.zod.d.ts +4 -4
  289. package/dist/compute/v1/generated/validators/listPeeringsParams.zod.js +4 -4
  290. package/dist/compute/v1/generated/validators/listPortsParams.zod.d.ts +4 -4
  291. package/dist/compute/v1/generated/validators/listPortsParams.zod.js +4 -4
  292. package/dist/compute/v1/generated/validators/listPrivateNetworksParams.zod.d.ts +4 -4
  293. package/dist/compute/v1/generated/validators/listPrivateNetworksParams.zod.js +4 -4
  294. package/dist/compute/v1/generated/validators/listRegionsParams.zod.d.ts +4 -4
  295. package/dist/compute/v1/generated/validators/listRegionsParams.zod.js +4 -4
  296. package/dist/compute/v1/generated/validators/listRoutesParams.zod.d.ts +4 -4
  297. package/dist/compute/v1/generated/validators/listRoutesParams.zod.js +4 -4
  298. package/dist/compute/v1/generated/validators/listSecurityGroupRulesParams.zod.d.ts +4 -4
  299. package/dist/compute/v1/generated/validators/listSecurityGroupRulesParams.zod.js +4 -4
  300. package/dist/compute/v1/generated/validators/listSecurityGroupsParams.zod.d.ts +4 -4
  301. package/dist/compute/v1/generated/validators/listSecurityGroupsParams.zod.js +4 -4
  302. package/dist/compute/v1/generated/validators/listSnapshotsParams.zod.d.ts +4 -4
  303. package/dist/compute/v1/generated/validators/listSnapshotsParams.zod.js +4 -4
  304. package/dist/compute/v1/generated/validators/listSubnetsParams.zod.d.ts +4 -4
  305. package/dist/compute/v1/generated/validators/listSubnetsParams.zod.js +4 -4
  306. package/dist/compute/v1/generated/validators/money.zod.d.ts +4 -4
  307. package/dist/compute/v1/generated/validators/money.zod.js +4 -4
  308. package/dist/compute/v1/generated/validators/newBootDisk.zod.d.ts +4 -4
  309. package/dist/compute/v1/generated/validators/newBootDisk.zod.js +4 -4
  310. package/dist/compute/v1/generated/validators/newCompute.zod.d.ts +4 -4
  311. package/dist/compute/v1/generated/validators/newCompute.zod.js +4 -4
  312. package/dist/compute/v1/generated/validators/newFloatingIP.zod.d.ts +4 -4
  313. package/dist/compute/v1/generated/validators/newFloatingIP.zod.js +4 -4
  314. package/dist/compute/v1/generated/validators/nextFreeCidrResponseBody.zod.d.ts +4 -4
  315. package/dist/compute/v1/generated/validators/nextFreeCidrResponseBody.zod.js +4 -4
  316. package/dist/compute/v1/generated/validators/offsetPagination.zod.d.ts +4 -4
  317. package/dist/compute/v1/generated/validators/offsetPagination.zod.js +4 -4
  318. package/dist/compute/v1/generated/validators/operationLogListResponseBody.zod.d.ts +4 -4
  319. package/dist/compute/v1/generated/validators/operationLogListResponseBody.zod.js +4 -4
  320. package/dist/compute/v1/generated/validators/operationLogResource.zod.d.ts +4 -4
  321. package/dist/compute/v1/generated/validators/operationLogResource.zod.js +4 -4
  322. package/dist/compute/v1/generated/validators/peeringListResponseBody.zod.d.ts +4 -4
  323. package/dist/compute/v1/generated/validators/peeringListResponseBody.zod.js +4 -4
  324. package/dist/compute/v1/generated/validators/peeringOperation.zod.d.ts +4 -4
  325. package/dist/compute/v1/generated/validators/peeringOperation.zod.js +4 -4
  326. package/dist/compute/v1/generated/validators/peeringResource.zod.d.ts +4 -4
  327. package/dist/compute/v1/generated/validators/peeringResource.zod.js +4 -4
  328. package/dist/compute/v1/generated/validators/portAddress.zod.d.ts +4 -4
  329. package/dist/compute/v1/generated/validators/portAddress.zod.js +4 -4
  330. package/dist/compute/v1/generated/validators/portAttachment.zod.d.ts +4 -4
  331. package/dist/compute/v1/generated/validators/portAttachment.zod.js +4 -4
  332. package/dist/compute/v1/generated/validators/portAttachmentList.zod.d.ts +4 -4
  333. package/dist/compute/v1/generated/validators/portAttachmentList.zod.js +4 -4
  334. package/dist/compute/v1/generated/validators/portListResponseBody.zod.d.ts +4 -4
  335. package/dist/compute/v1/generated/validators/portListResponseBody.zod.js +4 -4
  336. package/dist/compute/v1/generated/validators/portOperation.zod.d.ts +4 -4
  337. package/dist/compute/v1/generated/validators/portOperation.zod.js +4 -4
  338. package/dist/compute/v1/generated/validators/portResource.zod.d.ts +4 -4
  339. package/dist/compute/v1/generated/validators/portResource.zod.js +4 -4
  340. package/dist/compute/v1/generated/validators/powerRequest.zod.d.ts +4 -4
  341. package/dist/compute/v1/generated/validators/powerRequest.zod.js +4 -4
  342. package/dist/compute/v1/generated/validators/pricing.zod.d.ts +4 -4
  343. package/dist/compute/v1/generated/validators/pricing.zod.js +4 -4
  344. package/dist/compute/v1/generated/validators/pricingOption.zod.d.ts +4 -4
  345. package/dist/compute/v1/generated/validators/pricingOption.zod.js +4 -4
  346. package/dist/compute/v1/generated/validators/privateNetworkListResponseBody.zod.d.ts +4 -4
  347. package/dist/compute/v1/generated/validators/privateNetworkListResponseBody.zod.js +4 -4
  348. package/dist/compute/v1/generated/validators/privateNetworkResource.zod.d.ts +4 -4
  349. package/dist/compute/v1/generated/validators/privateNetworkResource.zod.js +4 -4
  350. package/dist/compute/v1/generated/validators/quote.zod.d.ts +31 -6
  351. package/dist/compute/v1/generated/validators/quote.zod.js +9 -6
  352. package/dist/compute/v1/generated/validators/quoteItem.zod.d.ts +25 -4
  353. package/dist/compute/v1/generated/validators/quoteItem.zod.js +28 -4
  354. package/dist/compute/v1/generated/validators/rebootInstanceRequestBody.zod.d.ts +4 -4
  355. package/dist/compute/v1/generated/validators/rebootInstanceRequestBody.zod.js +4 -4
  356. package/dist/compute/v1/generated/validators/rebuildInstanceRequestBody.zod.d.ts +4 -4
  357. package/dist/compute/v1/generated/validators/rebuildInstanceRequestBody.zod.js +4 -4
  358. package/dist/compute/v1/generated/validators/rebuildInstanceResponseBody.zod.d.ts +6 -5
  359. package/dist/compute/v1/generated/validators/rebuildInstanceResponseBody.zod.js +4 -4
  360. package/dist/compute/v1/generated/validators/regionListResponseBody.zod.d.ts +4 -4
  361. package/dist/compute/v1/generated/validators/regionListResponseBody.zod.js +4 -4
  362. package/dist/compute/v1/generated/validators/regionResource.zod.d.ts +4 -4
  363. package/dist/compute/v1/generated/validators/regionResource.zod.js +4 -4
  364. package/dist/compute/v1/generated/validators/releaseResource.zod.d.ts +4 -4
  365. package/dist/compute/v1/generated/validators/releaseResource.zod.js +4 -4
  366. package/dist/compute/v1/generated/validators/releaseSetItem.zod.d.ts +4 -4
  367. package/dist/compute/v1/generated/validators/releaseSetItem.zod.js +4 -4
  368. package/dist/compute/v1/generated/validators/renameBackupRequestBody.zod.d.ts +4 -4
  369. package/dist/compute/v1/generated/validators/renameBackupRequestBody.zod.js +4 -4
  370. package/dist/compute/v1/generated/validators/renameDiskRequestBody.zod.d.ts +4 -4
  371. package/dist/compute/v1/generated/validators/renameDiskRequestBody.zod.js +4 -4
  372. package/dist/compute/v1/generated/validators/renameImageRequestBody.zod.d.ts +4 -4
  373. package/dist/compute/v1/generated/validators/renameImageRequestBody.zod.js +4 -4
  374. package/dist/compute/v1/generated/validators/renameInstanceRequestBody.zod.d.ts +4 -4
  375. package/dist/compute/v1/generated/validators/renameInstanceRequestBody.zod.js +4 -4
  376. package/dist/compute/v1/generated/validators/renamePrivateNetworkRequestBody.zod.d.ts +4 -4
  377. package/dist/compute/v1/generated/validators/renamePrivateNetworkRequestBody.zod.js +4 -4
  378. package/dist/compute/v1/generated/validators/renameSecurityGroupRequestBody.zod.d.ts +4 -4
  379. package/dist/compute/v1/generated/validators/renameSecurityGroupRequestBody.zod.js +4 -4
  380. package/dist/compute/v1/generated/validators/renameSnapshotRequestBody.zod.d.ts +4 -4
  381. package/dist/compute/v1/generated/validators/renameSnapshotRequestBody.zod.js +4 -4
  382. package/dist/compute/v1/generated/validators/resetPasswordRequestBody.zod.d.ts +4 -4
  383. package/dist/compute/v1/generated/validators/resetPasswordRequestBody.zod.js +4 -4
  384. package/dist/compute/v1/generated/validators/resetPasswordResponseBody.zod.d.ts +4 -4
  385. package/dist/compute/v1/generated/validators/resetPasswordResponseBody.zod.js +4 -4
  386. package/dist/compute/v1/generated/validators/resizeDiskQuoteRequestBody.zod.d.ts +4 -4
  387. package/dist/compute/v1/generated/validators/resizeDiskQuoteRequestBody.zod.js +4 -4
  388. package/dist/compute/v1/generated/validators/resizeDiskRequestBody.zod.d.ts +5 -4
  389. package/dist/compute/v1/generated/validators/resizeDiskRequestBody.zod.js +5 -5
  390. package/dist/compute/v1/generated/validators/resizeDiskResponseBody.zod.d.ts +8 -9
  391. package/dist/compute/v1/generated/validators/resizeDiskResponseBody.zod.js +12 -7
  392. package/dist/compute/v1/generated/validators/resizeInstanceQuoteRequestBody.zod.d.ts +4 -4
  393. package/dist/compute/v1/generated/validators/resizeInstanceQuoteRequestBody.zod.js +4 -4
  394. package/dist/compute/v1/generated/validators/resizeInstanceRequestBody.zod.d.ts +5 -4
  395. package/dist/compute/v1/generated/validators/resizeInstanceRequestBody.zod.js +5 -5
  396. package/dist/compute/v1/generated/validators/resizeInstanceResponseBody.zod.d.ts +8 -9
  397. package/dist/compute/v1/generated/validators/resizeInstanceResponseBody.zod.js +12 -7
  398. package/dist/compute/v1/generated/validators/restoreBackupQuoteRequestBody.zod.d.ts +4 -4
  399. package/dist/compute/v1/generated/validators/restoreBackupQuoteRequestBody.zod.js +4 -4
  400. package/dist/compute/v1/generated/validators/restoreBackupRequestBody.zod.d.ts +5 -4
  401. package/dist/compute/v1/generated/validators/restoreBackupRequestBody.zod.js +4 -4
  402. package/dist/compute/v1/generated/validators/revertDiskRequestBody.zod.d.ts +4 -4
  403. package/dist/compute/v1/generated/validators/revertDiskRequestBody.zod.js +4 -4
  404. package/dist/compute/v1/generated/validators/routeListResponseBody.zod.d.ts +4 -4
  405. package/dist/compute/v1/generated/validators/routeListResponseBody.zod.js +4 -4
  406. package/dist/compute/v1/generated/validators/routeResource.zod.d.ts +4 -4
  407. package/dist/compute/v1/generated/validators/routeResource.zod.js +4 -4
  408. package/dist/compute/v1/generated/validators/runCommandRequestBody.zod.d.ts +4 -4
  409. package/dist/compute/v1/generated/validators/runCommandRequestBody.zod.js +4 -4
  410. package/dist/compute/v1/generated/validators/securityGroupListResponseBody.zod.d.ts +4 -4
  411. package/dist/compute/v1/generated/validators/securityGroupListResponseBody.zod.js +4 -4
  412. package/dist/compute/v1/generated/validators/securityGroupResource.zod.d.ts +4 -4
  413. package/dist/compute/v1/generated/validators/securityGroupResource.zod.js +4 -4
  414. package/dist/compute/v1/generated/validators/securityRuleListResponseBody.zod.d.ts +4 -4
  415. package/dist/compute/v1/generated/validators/securityRuleListResponseBody.zod.js +4 -4
  416. package/dist/compute/v1/generated/validators/securityRuleResource.zod.d.ts +4 -4
  417. package/dist/compute/v1/generated/validators/securityRuleResource.zod.js +4 -4
  418. package/dist/compute/v1/generated/validators/setFloatingIPBandwidthQuoteRequestBody.zod.d.ts +4 -4
  419. package/dist/compute/v1/generated/validators/setFloatingIPBandwidthQuoteRequestBody.zod.js +4 -4
  420. package/dist/compute/v1/generated/validators/setFloatingIPBandwidthRequestBody.zod.d.ts +5 -4
  421. package/dist/compute/v1/generated/validators/setFloatingIPBandwidthRequestBody.zod.js +5 -5
  422. package/dist/compute/v1/generated/validators/setFloatingIPBandwidthResponseBody.zod.d.ts +8 -9
  423. package/dist/compute/v1/generated/validators/setFloatingIPBandwidthResponseBody.zod.js +12 -7
  424. package/dist/compute/v1/generated/validators/setInstanceLabelsRequestBody.zod.d.ts +4 -4
  425. package/dist/compute/v1/generated/validators/setInstanceLabelsRequestBody.zod.js +4 -4
  426. package/dist/compute/v1/generated/validators/setInstanceNotesRequestBody.zod.d.ts +4 -4
  427. package/dist/compute/v1/generated/validators/setInstanceNotesRequestBody.zod.js +4 -4
  428. package/dist/compute/v1/generated/validators/setSnapshotQuotaQuoteRequestBody.zod.d.ts +4 -4
  429. package/dist/compute/v1/generated/validators/setSnapshotQuotaQuoteRequestBody.zod.js +4 -4
  430. package/dist/compute/v1/generated/validators/setSnapshotQuotaRequestBody.zod.d.ts +5 -4
  431. package/dist/compute/v1/generated/validators/setSnapshotQuotaRequestBody.zod.js +5 -5
  432. package/dist/compute/v1/generated/validators/setSnapshotQuotaResponseBody.zod.d.ts +8 -9
  433. package/dist/compute/v1/generated/validators/setSnapshotQuotaResponseBody.zod.js +11 -6
  434. package/dist/compute/v1/generated/validators/snapshotListResponseBody.zod.d.ts +4 -4
  435. package/dist/compute/v1/generated/validators/snapshotListResponseBody.zod.js +4 -4
  436. package/dist/compute/v1/generated/validators/snapshotOperation.zod.d.ts +4 -4
  437. package/dist/compute/v1/generated/validators/snapshotOperation.zod.js +4 -4
  438. package/dist/compute/v1/generated/validators/snapshotQuota.zod.d.ts +6 -5
  439. package/dist/compute/v1/generated/validators/snapshotQuota.zod.js +12 -7
  440. package/dist/compute/v1/generated/validators/snapshotResource.zod.d.ts +4 -4
  441. package/dist/compute/v1/generated/validators/snapshotResource.zod.js +4 -4
  442. package/dist/compute/v1/generated/validators/subnetListResponseBody.zod.d.ts +4 -4
  443. package/dist/compute/v1/generated/validators/subnetListResponseBody.zod.js +4 -4
  444. package/dist/compute/v1/generated/validators/subnetResource.zod.d.ts +4 -4
  445. package/dist/compute/v1/generated/validators/subnetResource.zod.js +4 -4
  446. package/dist/compute/v1/generated/validators/suggestSubnetCidrParams.zod.d.ts +4 -4
  447. package/dist/compute/v1/generated/validators/suggestSubnetCidrParams.zod.js +4 -4
  448. package/dist/compute/v1/generated/validators/terminationPolicy.zod.d.ts +4 -4
  449. package/dist/compute/v1/generated/validators/terminationPolicy.zod.js +4 -4
  450. package/dist/compute/v1/generated/validators/zoneListResponseBody.zod.d.ts +4 -4
  451. package/dist/compute/v1/generated/validators/zoneListResponseBody.zod.js +4 -4
  452. package/dist/compute/v1/generated/validators/zoneResource.zod.d.ts +4 -4
  453. package/dist/compute/v1/generated/validators/zoneResource.zod.js +4 -4
  454. package/dist/membership/v1/generated/functions.d.ts +2 -2
  455. package/dist/membership/v1/generated/functions.js +2 -2
  456. package/dist/membership/v1/generated/models.d.ts +28 -2837
  457. package/dist/membership/v1/generated/models.js +0 -367
  458. package/dist/membership/v1/generated/schemas.zod.d.ts +4 -2
  459. package/dist/membership/v1/generated/schemas.zod.js +2 -2
  460. package/dist/membership/v1/generated/validators/checkoutMode.zod.js +1 -1
  461. package/dist/membership/v1/generated/validators/checkoutOptions.zod.d.ts +2 -0
  462. package/dist/membership/v1/generated/validators/checkoutOptions.zod.js +8 -2
  463. package/dist/membership/v1/generated/validators/membershipCreate.zod.d.ts +1 -0
  464. package/dist/membership/v1/generated/validators/membershipPurchase.zod.d.ts +2 -25
  465. package/dist/membership/v1/generated/validators/membershipPurchase.zod.js +8 -3
  466. package/dist/membership/v1/generated/validators/membershipUpgrade.zod.d.ts +1 -0
  467. package/dist/routes.d.ts +2990 -2917
  468. package/dist/routes.js +3023 -2941
  469. package/package.json +1 -1
  470. package/dist/billing/v1/generated/validators/orderRefundQuoteInput.zod.js +0 -20
  471. package/dist/billing/v1/generated/validators/quoteCancellation.zod.js +0 -20
  472. package/dist/canopy/v1/generated/validators/accountBalance.zod.d.ts +0 -168
  473. package/dist/canopy/v1/generated/validators/accountBalance.zod.js +0 -60
  474. package/dist/canopy/v1/generated/validators/accountDeletionObjection.zod.d.ts +0 -52
  475. package/dist/canopy/v1/generated/validators/accountDeletionObjection.zod.js +0 -52
  476. package/dist/canopy/v1/generated/validators/accountDeletionReadiness.zod.d.ts +0 -78
  477. package/dist/canopy/v1/generated/validators/accountDeletionReadiness.zod.js +0 -47
  478. package/dist/canopy/v1/generated/validators/accountDeletionReadinessItem.zod.d.ts +0 -76
  479. package/dist/canopy/v1/generated/validators/accountDeletionReadinessItem.zod.js +0 -52
  480. package/dist/canopy/v1/generated/validators/accountIdentity.zod.d.ts +0 -48
  481. package/dist/canopy/v1/generated/validators/accountIdentity.zod.js +0 -46
  482. package/dist/canopy/v1/generated/validators/activeResource.zod.d.ts +0 -74
  483. package/dist/canopy/v1/generated/validators/activeResource.zod.js +0 -72
  484. package/dist/canopy/v1/generated/validators/activeResourceList.zod.d.ts +0 -81
  485. package/dist/canopy/v1/generated/validators/activeResourceList.zod.js +0 -47
  486. package/dist/canopy/v1/generated/validators/allowance.zod.d.ts +0 -77
  487. package/dist/canopy/v1/generated/validators/allowance.zod.js +0 -74
  488. package/dist/canopy/v1/generated/validators/allowanceList.zod.d.ts +0 -84
  489. package/dist/canopy/v1/generated/validators/allowanceList.zod.js +0 -47
  490. package/dist/canopy/v1/generated/validators/applicability.zod.d.ts +0 -152
  491. package/dist/canopy/v1/generated/validators/applicability.zod.js +0 -74
  492. package/dist/canopy/v1/generated/validators/applicablePlan.zod.d.ts +0 -48
  493. package/dist/canopy/v1/generated/validators/applicablePlan.zod.js +0 -48
  494. package/dist/canopy/v1/generated/validators/appliedCredit.zod.d.ts +0 -48
  495. package/dist/canopy/v1/generated/validators/appliedCredit.zod.js +0 -49
  496. package/dist/canopy/v1/generated/validators/autoRenewSet.zod.d.ts +0 -46
  497. package/dist/canopy/v1/generated/validators/autoRenewSet.zod.js +0 -44
  498. package/dist/canopy/v1/generated/validators/billingAccount.zod.d.ts +0 -63
  499. package/dist/canopy/v1/generated/validators/billingAccount.zod.js +0 -67
  500. package/dist/canopy/v1/generated/validators/billingAccountCreate.zod.d.ts +0 -50
  501. package/dist/canopy/v1/generated/validators/billingAccountCreate.zod.js +0 -48
  502. package/dist/canopy/v1/generated/validators/billingAccountList.zod.d.ts +0 -70
  503. package/dist/canopy/v1/generated/validators/billingAccountList.zod.js +0 -47
  504. package/dist/canopy/v1/generated/validators/billingAccountUpdate.zod.d.ts +0 -48
  505. package/dist/canopy/v1/generated/validators/billingAccountUpdate.zod.js +0 -49
  506. package/dist/canopy/v1/generated/validators/billingScheme.zod.d.ts +0 -47
  507. package/dist/canopy/v1/generated/validators/billingScheme.zod.js +0 -44
  508. package/dist/canopy/v1/generated/validators/cancelSubscriptionRequest.zod.d.ts +0 -54
  509. package/dist/canopy/v1/generated/validators/cancelSubscriptionRequest.zod.js +0 -54
  510. package/dist/canopy/v1/generated/validators/cancellation.zod.d.ts +0 -100
  511. package/dist/canopy/v1/generated/validators/cancellation.zod.js +0 -72
  512. package/dist/canopy/v1/generated/validators/cancellationCreate.zod.d.ts +0 -56
  513. package/dist/canopy/v1/generated/validators/cancellationCreate.zod.js +0 -64
  514. package/dist/canopy/v1/generated/validators/cancellationItem.zod.d.ts +0 -71
  515. package/dist/canopy/v1/generated/validators/cancellationItem.zod.js +0 -69
  516. package/dist/canopy/v1/generated/validators/cancellationList.zod.d.ts +0 -107
  517. package/dist/canopy/v1/generated/validators/cancellationList.zod.js +0 -47
  518. package/dist/canopy/v1/generated/validators/cancellationPolicy.zod.d.ts +0 -47
  519. package/dist/canopy/v1/generated/validators/cancellationPolicy.zod.js +0 -44
  520. package/dist/canopy/v1/generated/validators/cancellationRefundPreview.zod.d.ts +0 -84
  521. package/dist/canopy/v1/generated/validators/cancellationRefundPreview.zod.js +0 -66
  522. package/dist/canopy/v1/generated/validators/cancellationRefundPreviewItem.zod.d.ts +0 -68
  523. package/dist/canopy/v1/generated/validators/cancellationRefundPreviewItem.zod.js +0 -68
  524. package/dist/canopy/v1/generated/validators/contact.zod.d.ts +0 -74
  525. package/dist/canopy/v1/generated/validators/contact.zod.js +0 -72
  526. package/dist/canopy/v1/generated/validators/contactCreate.zod.d.ts +0 -65
  527. package/dist/canopy/v1/generated/validators/contactCreate.zod.js +0 -63
  528. package/dist/canopy/v1/generated/validators/contactList.zod.d.ts +0 -71
  529. package/dist/canopy/v1/generated/validators/contactList.zod.js +0 -47
  530. package/dist/canopy/v1/generated/validators/contactUpdate.zod.d.ts +0 -66
  531. package/dist/canopy/v1/generated/validators/contactUpdate.zod.js +0 -64
  532. package/dist/canopy/v1/generated/validators/creditGrant.zod.d.ts +0 -170
  533. package/dist/canopy/v1/generated/validators/creditGrant.zod.js +0 -60
  534. package/dist/canopy/v1/generated/validators/creditGrantList.zod.d.ts +0 -177
  535. package/dist/canopy/v1/generated/validators/creditGrantList.zod.js +0 -47
  536. package/dist/canopy/v1/generated/validators/creditGroup.zod.d.ts +0 -156
  537. package/dist/canopy/v1/generated/validators/creditGroup.zod.js +0 -51
  538. package/dist/canopy/v1/generated/validators/creditNote.zod.d.ts +0 -67
  539. package/dist/canopy/v1/generated/validators/creditNote.zod.js +0 -73
  540. package/dist/canopy/v1/generated/validators/creditNoteItem.zod.d.ts +0 -50
  541. package/dist/canopy/v1/generated/validators/creditNoteItem.zod.js +0 -49
  542. package/dist/canopy/v1/generated/validators/creditNoteItemList.zod.d.ts +0 -57
  543. package/dist/canopy/v1/generated/validators/creditNoteItemList.zod.js +0 -47
  544. package/dist/canopy/v1/generated/validators/creditNoteList.zod.d.ts +0 -74
  545. package/dist/canopy/v1/generated/validators/creditNoteList.zod.js +0 -47
  546. package/dist/canopy/v1/generated/validators/currency.zod.d.ts +0 -54
  547. package/dist/canopy/v1/generated/validators/currency.zod.js +0 -63
  548. package/dist/canopy/v1/generated/validators/currencyList.zod.d.ts +0 -56
  549. package/dist/canopy/v1/generated/validators/currencyList.zod.js +0 -47
  550. package/dist/canopy/v1/generated/validators/discount.zod.d.ts +0 -186
  551. package/dist/canopy/v1/generated/validators/discount.zod.js +0 -77
  552. package/dist/canopy/v1/generated/validators/discountList.zod.d.ts +0 -193
  553. package/dist/canopy/v1/generated/validators/discountList.zod.js +0 -47
  554. package/dist/canopy/v1/generated/validators/entitlement.zod.d.ts +0 -58
  555. package/dist/canopy/v1/generated/validators/entitlement.zod.js +0 -53
  556. package/dist/canopy/v1/generated/validators/entitlementList.zod.d.ts +0 -65
  557. package/dist/canopy/v1/generated/validators/entitlementList.zod.js +0 -47
  558. package/dist/canopy/v1/generated/validators/errorA200529.zod.d.ts +0 -49
  559. package/dist/canopy/v1/generated/validators/errorA200529.zod.js +0 -43
  560. package/dist/canopy/v1/generated/validators/featureGrant.zod.d.ts +0 -66
  561. package/dist/canopy/v1/generated/validators/featureGrant.zod.js +0 -57
  562. package/dist/canopy/v1/generated/validators/featureGrantList.zod.d.ts +0 -73
  563. package/dist/canopy/v1/generated/validators/featureGrantList.zod.js +0 -47
  564. package/dist/canopy/v1/generated/validators/featureGrantStatus.zod.d.ts +0 -49
  565. package/dist/canopy/v1/generated/validators/featureGrantStatus.zod.js +0 -44
  566. package/dist/canopy/v1/generated/validators/invoice.zod.d.ts +0 -96
  567. package/dist/canopy/v1/generated/validators/invoice.zod.js +0 -87
  568. package/dist/canopy/v1/generated/validators/invoiceItem.zod.d.ts +0 -79
  569. package/dist/canopy/v1/generated/validators/invoiceItem.zod.js +0 -93
  570. package/dist/canopy/v1/generated/validators/invoiceItemList.zod.d.ts +0 -86
  571. package/dist/canopy/v1/generated/validators/invoiceItemList.zod.js +0 -47
  572. package/dist/canopy/v1/generated/validators/invoiceItemProration.zod.d.ts +0 -51
  573. package/dist/canopy/v1/generated/validators/invoiceItemProration.zod.js +0 -54
  574. package/dist/canopy/v1/generated/validators/invoiceList.zod.d.ts +0 -103
  575. package/dist/canopy/v1/generated/validators/invoiceList.zod.js +0 -47
  576. package/dist/canopy/v1/generated/validators/invoiceStatus.zod.d.ts +0 -49
  577. package/dist/canopy/v1/generated/validators/invoiceStatus.zod.js +0 -44
  578. package/dist/canopy/v1/generated/validators/invoiceSummary.zod.d.ts +0 -65
  579. package/dist/canopy/v1/generated/validators/invoiceSummary.zod.js +0 -67
  580. package/dist/canopy/v1/generated/validators/monthlyStatement.zod.d.ts +0 -71
  581. package/dist/canopy/v1/generated/validators/monthlyStatement.zod.js +0 -63
  582. package/dist/canopy/v1/generated/validators/monthlyStatementList.zod.d.ts +0 -78
  583. package/dist/canopy/v1/generated/validators/monthlyStatementList.zod.js +0 -47
  584. package/dist/canopy/v1/generated/validators/namedIdentity.zod.d.ts +0 -48
  585. package/dist/canopy/v1/generated/validators/namedIdentity.zod.js +0 -48
  586. package/dist/canopy/v1/generated/validators/objectIdentity.zod.d.ts +0 -48
  587. package/dist/canopy/v1/generated/validators/objectIdentity.zod.js +0 -48
  588. package/dist/canopy/v1/generated/validators/order.zod.d.ts +0 -181
  589. package/dist/canopy/v1/generated/validators/order.zod.js +0 -96
  590. package/dist/canopy/v1/generated/validators/orderCancel.zod.d.ts +0 -47
  591. package/dist/canopy/v1/generated/validators/orderCancel.zod.js +0 -50
  592. package/dist/canopy/v1/generated/validators/orderItem.zod.d.ts +0 -108
  593. package/dist/canopy/v1/generated/validators/orderItem.zod.js +0 -121
  594. package/dist/canopy/v1/generated/validators/orderItemList.zod.d.ts +0 -114
  595. package/dist/canopy/v1/generated/validators/orderItemList.zod.js +0 -47
  596. package/dist/canopy/v1/generated/validators/orderItemStatus.zod.d.ts +0 -49
  597. package/dist/canopy/v1/generated/validators/orderItemStatus.zod.js +0 -44
  598. package/dist/canopy/v1/generated/validators/orderList.zod.d.ts +0 -188
  599. package/dist/canopy/v1/generated/validators/orderList.zod.js +0 -47
  600. package/dist/canopy/v1/generated/validators/orderRefundQuote.zod.d.ts +0 -50
  601. package/dist/canopy/v1/generated/validators/orderRefundQuote.zod.js +0 -51
  602. package/dist/canopy/v1/generated/validators/orderRefundQuoteInput.zod.d.ts +0 -48
  603. package/dist/canopy/v1/generated/validators/orderRefundQuoteInput.zod.js +0 -53
  604. package/dist/canopy/v1/generated/validators/orderStatus.zod.d.ts +0 -51
  605. package/dist/canopy/v1/generated/validators/orderStatus.zod.js +0 -44
  606. package/dist/canopy/v1/generated/validators/paidWith.zod.d.ts +0 -50
  607. package/dist/canopy/v1/generated/validators/paidWith.zod.js +0 -58
  608. package/dist/canopy/v1/generated/validators/payInvoiceRequest.zod.d.ts +0 -59
  609. package/dist/canopy/v1/generated/validators/payInvoiceRequest.zod.js +0 -86
  610. package/dist/canopy/v1/generated/validators/payTogetherRequest.zod.d.ts +0 -51
  611. package/dist/canopy/v1/generated/validators/payTogetherRequest.zod.js +0 -54
  612. package/dist/canopy/v1/generated/validators/paymentAction.zod.d.ts +0 -55
  613. package/dist/canopy/v1/generated/validators/paymentAction.zod.js +0 -57
  614. package/dist/canopy/v1/generated/validators/paymentCancellationReason.zod.d.ts +0 -47
  615. package/dist/canopy/v1/generated/validators/paymentCancellationReason.zod.js +0 -44
  616. package/dist/canopy/v1/generated/validators/paymentMethod.zod.d.ts +0 -58
  617. package/dist/canopy/v1/generated/validators/paymentMethod.zod.js +0 -52
  618. package/dist/canopy/v1/generated/validators/paymentMethodList.zod.d.ts +0 -65
  619. package/dist/canopy/v1/generated/validators/paymentMethodList.zod.js +0 -47
  620. package/dist/canopy/v1/generated/validators/paymentMethodSetup.zod.d.ts +0 -48
  621. package/dist/canopy/v1/generated/validators/paymentMethodSetup.zod.js +0 -50
  622. package/dist/canopy/v1/generated/validators/paymentMethodSetupResult.zod.d.ts +0 -59
  623. package/dist/canopy/v1/generated/validators/paymentMethodSetupResult.zod.js +0 -49
  624. package/dist/canopy/v1/generated/validators/paymentOption.zod.d.ts +0 -50
  625. package/dist/canopy/v1/generated/validators/paymentOption.zod.js +0 -48
  626. package/dist/canopy/v1/generated/validators/paymentOptionList.zod.d.ts +0 -57
  627. package/dist/canopy/v1/generated/validators/paymentOptionList.zod.js +0 -47
  628. package/dist/canopy/v1/generated/validators/paymentOptionMethod.zod.d.ts +0 -47
  629. package/dist/canopy/v1/generated/validators/paymentOptionMethod.zod.js +0 -49
  630. package/dist/canopy/v1/generated/validators/paymentPreview.zod.d.ts +0 -71
  631. package/dist/canopy/v1/generated/validators/paymentPreview.zod.js +0 -63
  632. package/dist/canopy/v1/generated/validators/paymentPreviewInvoice.zod.d.ts +0 -50
  633. package/dist/canopy/v1/generated/validators/paymentPreviewInvoice.zod.js +0 -49
  634. package/dist/canopy/v1/generated/validators/paymentResult.zod.d.ts +0 -120
  635. package/dist/canopy/v1/generated/validators/paymentResult.zod.js +0 -69
  636. package/dist/canopy/v1/generated/validators/paymentStatus.zod.d.ts +0 -49
  637. package/dist/canopy/v1/generated/validators/paymentStatus.zod.js +0 -44
  638. package/dist/canopy/v1/generated/validators/placedOrder.zod.d.ts +0 -68
  639. package/dist/canopy/v1/generated/validators/placedOrder.zod.js +0 -49
  640. package/dist/canopy/v1/generated/validators/plan.zod.d.ts +0 -64
  641. package/dist/canopy/v1/generated/validators/plan.zod.js +0 -56
  642. package/dist/canopy/v1/generated/validators/planFeature.zod.d.ts +0 -51
  643. package/dist/canopy/v1/generated/validators/planFeature.zod.js +0 -46
  644. package/dist/canopy/v1/generated/validators/planList.zod.d.ts +0 -71
  645. package/dist/canopy/v1/generated/validators/planList.zod.js +0 -47
  646. package/dist/canopy/v1/generated/validators/price.zod.d.ts +0 -119
  647. package/dist/canopy/v1/generated/validators/price.zod.js +0 -111
  648. package/dist/canopy/v1/generated/validators/priceList.zod.d.ts +0 -126
  649. package/dist/canopy/v1/generated/validators/priceList.zod.js +0 -47
  650. package/dist/canopy/v1/generated/validators/priceOption.zod.d.ts +0 -79
  651. package/dist/canopy/v1/generated/validators/priceOption.zod.js +0 -65
  652. package/dist/canopy/v1/generated/validators/priceType.zod.d.ts +0 -47
  653. package/dist/canopy/v1/generated/validators/priceType.zod.js +0 -44
  654. package/dist/canopy/v1/generated/validators/product.zod.d.ts +0 -48
  655. package/dist/canopy/v1/generated/validators/product.zod.js +0 -47
  656. package/dist/canopy/v1/generated/validators/productID.zod.d.ts +0 -46
  657. package/dist/canopy/v1/generated/validators/productID.zod.js +0 -49
  658. package/dist/canopy/v1/generated/validators/productList.zod.d.ts +0 -55
  659. package/dist/canopy/v1/generated/validators/productList.zod.js +0 -47
  660. package/dist/canopy/v1/generated/validators/projectAssignment.zod.d.ts +0 -55
  661. package/dist/canopy/v1/generated/validators/projectAssignment.zod.js +0 -56
  662. package/dist/canopy/v1/generated/validators/projectAssignmentList.zod.d.ts +0 -62
  663. package/dist/canopy/v1/generated/validators/projectAssignmentList.zod.js +0 -47
  664. package/dist/canopy/v1/generated/validators/purchaseOperation.zod.d.ts +0 -48
  665. package/dist/canopy/v1/generated/validators/purchaseOperation.zod.js +0 -44
  666. package/dist/canopy/v1/generated/validators/quote5f60d00.zod.d.ts +0 -145
  667. package/dist/canopy/v1/generated/validators/quote5f60d00.zod.js +0 -65
  668. package/dist/canopy/v1/generated/validators/quoteA200529.zod.d.ts +0 -145
  669. package/dist/canopy/v1/generated/validators/quoteA200529.zod.js +0 -43
  670. package/dist/canopy/v1/generated/validators/quoteCancellation.zod.d.ts +0 -51
  671. package/dist/canopy/v1/generated/validators/quoteCancellation.zod.js +0 -53
  672. package/dist/canopy/v1/generated/validators/quoteItemDc1fddb.zod.d.ts +0 -55
  673. package/dist/canopy/v1/generated/validators/quoteItemDc1fddb.zod.js +0 -60
  674. package/dist/canopy/v1/generated/validators/quoteItemInput.zod.d.ts +0 -78
  675. package/dist/canopy/v1/generated/validators/quoteItemInput.zod.js +0 -74
  676. package/dist/canopy/v1/generated/validators/quoteRenewal.zod.d.ts +0 -60
  677. package/dist/canopy/v1/generated/validators/quoteRenewal.zod.js +0 -59
  678. package/dist/canopy/v1/generated/validators/quoteRenewalResult.zod.d.ts +0 -60
  679. package/dist/canopy/v1/generated/validators/quoteRenewalResult.zod.js +0 -57
  680. package/dist/canopy/v1/generated/validators/quoteRequest.zod.d.ts +0 -108
  681. package/dist/canopy/v1/generated/validators/quoteRequest.zod.js +0 -75
  682. package/dist/canopy/v1/generated/validators/quotedDiscount.zod.d.ts +0 -52
  683. package/dist/canopy/v1/generated/validators/quotedDiscount.zod.js +0 -54
  684. package/dist/canopy/v1/generated/validators/rate.zod.d.ts +0 -82
  685. package/dist/canopy/v1/generated/validators/rate.zod.js +0 -74
  686. package/dist/canopy/v1/generated/validators/rateList.zod.d.ts +0 -89
  687. package/dist/canopy/v1/generated/validators/rateList.zod.js +0 -47
  688. package/dist/canopy/v1/generated/validators/refund.zod.d.ts +0 -126
  689. package/dist/canopy/v1/generated/validators/refund.zod.js +0 -77
  690. package/dist/canopy/v1/generated/validators/refundList.zod.d.ts +0 -133
  691. package/dist/canopy/v1/generated/validators/refundList.zod.js +0 -47
  692. package/dist/canopy/v1/generated/validators/refundPolicy.zod.d.ts +0 -48
  693. package/dist/canopy/v1/generated/validators/refundPolicy.zod.js +0 -44
  694. package/dist/canopy/v1/generated/validators/refundReason.zod.d.ts +0 -56
  695. package/dist/canopy/v1/generated/validators/refundReason.zod.js +0 -56
  696. package/dist/canopy/v1/generated/validators/renewRequest.zod.d.ts +0 -64
  697. package/dist/canopy/v1/generated/validators/renewRequest.zod.js +0 -75
  698. package/dist/canopy/v1/generated/validators/renewalOrderRequest.zod.d.ts +0 -58
  699. package/dist/canopy/v1/generated/validators/renewalOrderRequest.zod.js +0 -58
  700. package/dist/canopy/v1/generated/validators/renewalPrice.zod.d.ts +0 -66
  701. package/dist/canopy/v1/generated/validators/renewalPrice.zod.js +0 -58
  702. package/dist/canopy/v1/generated/validators/renewalPriceList.zod.d.ts +0 -73
  703. package/dist/canopy/v1/generated/validators/renewalPriceList.zod.js +0 -47
  704. package/dist/canopy/v1/generated/validators/scheduledChange.zod.d.ts +0 -67
  705. package/dist/canopy/v1/generated/validators/scheduledChange.zod.js +0 -59
  706. package/dist/canopy/v1/generated/validators/setProjectAssignmentRequest.zod.d.ts +0 -46
  707. package/dist/canopy/v1/generated/validators/setProjectAssignmentRequest.zod.js +0 -44
  708. package/dist/canopy/v1/generated/validators/spendRow.zod.d.ts +0 -63
  709. package/dist/canopy/v1/generated/validators/spendRow.zod.js +0 -62
  710. package/dist/canopy/v1/generated/validators/spendRowList.zod.d.ts +0 -72
  711. package/dist/canopy/v1/generated/validators/spendRowList.zod.js +0 -50
  712. package/dist/canopy/v1/generated/validators/statement.zod.d.ts +0 -73
  713. package/dist/canopy/v1/generated/validators/statement.zod.js +0 -69
  714. package/dist/canopy/v1/generated/validators/statementAmounts.zod.d.ts +0 -50
  715. package/dist/canopy/v1/generated/validators/statementAmounts.zod.js +0 -49
  716. package/dist/canopy/v1/generated/validators/statementItem.zod.d.ts +0 -53
  717. package/dist/canopy/v1/generated/validators/statementItem.zod.js +0 -58
  718. package/dist/canopy/v1/generated/validators/statementList.zod.d.ts +0 -80
  719. package/dist/canopy/v1/generated/validators/statementList.zod.js +0 -47
  720. package/dist/canopy/v1/generated/validators/statementStatus.zod.d.ts +0 -47
  721. package/dist/canopy/v1/generated/validators/statementStatus.zod.js +0 -42
  722. package/dist/canopy/v1/generated/validators/statementSummary.zod.d.ts +0 -69
  723. package/dist/canopy/v1/generated/validators/statementSummary.zod.js +0 -52
  724. package/dist/canopy/v1/generated/validators/statementType.zod.d.ts +0 -48
  725. package/dist/canopy/v1/generated/validators/statementType.zod.js +0 -44
  726. package/dist/canopy/v1/generated/validators/subscription.zod.d.ts +0 -182
  727. package/dist/canopy/v1/generated/validators/subscription.zod.js +0 -152
  728. package/dist/canopy/v1/generated/validators/subscriptionCancellation.zod.d.ts +0 -70
  729. package/dist/canopy/v1/generated/validators/subscriptionCancellation.zod.js +0 -63
  730. package/dist/canopy/v1/generated/validators/subscriptionList.zod.d.ts +0 -188
  731. package/dist/canopy/v1/generated/validators/subscriptionList.zod.js +0 -47
  732. package/dist/canopy/v1/generated/validators/subscriptionRestriction.zod.d.ts +0 -50
  733. package/dist/canopy/v1/generated/validators/subscriptionRestriction.zod.js +0 -50
  734. package/dist/canopy/v1/generated/validators/taxItem.zod.d.ts +0 -54
  735. package/dist/canopy/v1/generated/validators/taxItem.zod.js +0 -54
  736. package/dist/canopy/v1/generated/validators/tier.zod.d.ts +0 -48
  737. package/dist/canopy/v1/generated/validators/tier.zod.js +0 -50
  738. package/dist/canopy/v1/generated/validators/topUp.zod.d.ts +0 -84
  739. package/dist/canopy/v1/generated/validators/topUp.zod.js +0 -79
  740. package/dist/canopy/v1/generated/validators/topUpCreate.zod.d.ts +0 -55
  741. package/dist/canopy/v1/generated/validators/topUpCreate.zod.js +0 -67
  742. package/dist/canopy/v1/generated/validators/topUpList.zod.d.ts +0 -91
  743. package/dist/canopy/v1/generated/validators/topUpList.zod.js +0 -47
  744. package/dist/canopy/v1/generated/validators/transaction.zod.d.ts +0 -87
  745. package/dist/canopy/v1/generated/validators/transaction.zod.js +0 -81
  746. package/dist/canopy/v1/generated/validators/transactionList.zod.d.ts +0 -94
  747. package/dist/canopy/v1/generated/validators/transactionList.zod.js +0 -47
  748. package/dist/canopy/v1/generated/validators/transactionType.zod.d.ts +0 -50
  749. package/dist/canopy/v1/generated/validators/transactionType.zod.js +0 -44
  750. package/dist/canopy/v1/generated/validators/usageCharge.zod.d.ts +0 -77
  751. package/dist/canopy/v1/generated/validators/usageCharge.zod.js +0 -91
  752. package/dist/canopy/v1/generated/validators/usageChargeList.zod.d.ts +0 -84
  753. package/dist/canopy/v1/generated/validators/usageChargeList.zod.js +0 -47
  754. package/dist/canopy/v1/generated/validators/usageType.zod.d.ts +0 -47
  755. package/dist/canopy/v1/generated/validators/usageType.zod.js +0 -44
  756. package/dist/canopy/v1/generated/validators/withdrawal.zod.d.ts +0 -73
  757. package/dist/canopy/v1/generated/validators/withdrawal.zod.js +0 -76
  758. package/dist/canopy/v1/generated/validators/withdrawalAllocation.zod.d.ts +0 -52
  759. package/dist/canopy/v1/generated/validators/withdrawalAllocation.zod.js +0 -50
  760. package/dist/canopy/v1/generated/validators/withdrawalCreate.zod.d.ts +0 -58
  761. package/dist/canopy/v1/generated/validators/withdrawalCreate.zod.js +0 -52
  762. package/dist/canopy/v1/generated/validators/withdrawalItem.zod.d.ts +0 -79
  763. package/dist/canopy/v1/generated/validators/withdrawalItem.zod.js +0 -70
  764. package/dist/canopy/v1/generated/validators/withdrawalItemList.zod.d.ts +0 -81
  765. package/dist/canopy/v1/generated/validators/withdrawalItemList.zod.js +0 -47
  766. package/dist/canopy/v1/generated/validators/withdrawalList.zod.d.ts +0 -72
  767. package/dist/canopy/v1/generated/validators/withdrawalList.zod.js +0 -47
  768. package/dist/canopy/v1/generated/validators/withdrawalPreview.zod.d.ts +0 -73
  769. package/dist/canopy/v1/generated/validators/withdrawalPreview.zod.js +0 -58
  770. package/dist/canopy/v1/generated/validators/withdrawalPreviewItem.zod.d.ts +0 -61
  771. package/dist/canopy/v1/generated/validators/withdrawalPreviewItem.zod.js +0 -52
  772. package/dist/canopy/v1/generated/validators/withdrawalPreviewRequest.zod.d.ts +0 -48
  773. package/dist/canopy/v1/generated/validators/withdrawalPreviewRequest.zod.js +0 -46
  774. package/dist/canopy/v1/generated/validators/withdrawalSource.zod.d.ts +0 -56
  775. package/dist/canopy/v1/generated/validators/withdrawalSource.zod.js +0 -56
  776. package/dist/compute/v1/generated/validators/placedOrder.zod.d.ts +0 -30
  777. package/dist/compute/v1/generated/validators/placedOrder.zod.js +0 -35
  778. package/dist/membership/v1/generated/validators/accountBalance.zod.d.ts +0 -135
  779. package/dist/membership/v1/generated/validators/accountBalance.zod.js +0 -27
  780. package/dist/membership/v1/generated/validators/accountDeletionObjection.zod.d.ts +0 -19
  781. package/dist/membership/v1/generated/validators/accountDeletionObjection.zod.js +0 -19
  782. package/dist/membership/v1/generated/validators/accountDeletionReadiness.zod.d.ts +0 -45
  783. package/dist/membership/v1/generated/validators/accountDeletionReadiness.zod.js +0 -14
  784. package/dist/membership/v1/generated/validators/accountDeletionReadinessItem.zod.d.ts +0 -43
  785. package/dist/membership/v1/generated/validators/accountDeletionReadinessItem.zod.js +0 -19
  786. package/dist/membership/v1/generated/validators/accountIdentity.zod.d.ts +0 -15
  787. package/dist/membership/v1/generated/validators/accountIdentity.zod.js +0 -13
  788. package/dist/membership/v1/generated/validators/activeResource.zod.d.ts +0 -41
  789. package/dist/membership/v1/generated/validators/activeResource.zod.js +0 -39
  790. package/dist/membership/v1/generated/validators/activeResourceList.zod.d.ts +0 -48
  791. package/dist/membership/v1/generated/validators/activeResourceList.zod.js +0 -14
  792. package/dist/membership/v1/generated/validators/allowance.zod.d.ts +0 -44
  793. package/dist/membership/v1/generated/validators/allowance.zod.js +0 -41
  794. package/dist/membership/v1/generated/validators/allowanceList.zod.d.ts +0 -51
  795. package/dist/membership/v1/generated/validators/allowanceList.zod.js +0 -14
  796. package/dist/membership/v1/generated/validators/applicability.zod.d.ts +0 -119
  797. package/dist/membership/v1/generated/validators/applicability.zod.js +0 -41
  798. package/dist/membership/v1/generated/validators/applicablePlan.zod.d.ts +0 -15
  799. package/dist/membership/v1/generated/validators/applicablePlan.zod.js +0 -15
  800. package/dist/membership/v1/generated/validators/appliedCredit.zod.d.ts +0 -15
  801. package/dist/membership/v1/generated/validators/appliedCredit.zod.js +0 -16
  802. package/dist/membership/v1/generated/validators/autoRenewSet.zod.d.ts +0 -13
  803. package/dist/membership/v1/generated/validators/autoRenewSet.zod.js +0 -11
  804. package/dist/membership/v1/generated/validators/billingAccount.zod.d.ts +0 -30
  805. package/dist/membership/v1/generated/validators/billingAccount.zod.js +0 -34
  806. package/dist/membership/v1/generated/validators/billingAccountCreate.zod.d.ts +0 -17
  807. package/dist/membership/v1/generated/validators/billingAccountCreate.zod.js +0 -15
  808. package/dist/membership/v1/generated/validators/billingAccountList.zod.d.ts +0 -37
  809. package/dist/membership/v1/generated/validators/billingAccountList.zod.js +0 -14
  810. package/dist/membership/v1/generated/validators/billingAccountUpdate.zod.d.ts +0 -15
  811. package/dist/membership/v1/generated/validators/billingAccountUpdate.zod.js +0 -16
  812. package/dist/membership/v1/generated/validators/billingScheme.zod.d.ts +0 -14
  813. package/dist/membership/v1/generated/validators/billingScheme.zod.js +0 -11
  814. package/dist/membership/v1/generated/validators/cancelSubscriptionRequest.zod.d.ts +0 -21
  815. package/dist/membership/v1/generated/validators/cancelSubscriptionRequest.zod.js +0 -21
  816. package/dist/membership/v1/generated/validators/cancellation.zod.d.ts +0 -67
  817. package/dist/membership/v1/generated/validators/cancellation.zod.js +0 -39
  818. package/dist/membership/v1/generated/validators/cancellationCreate.zod.d.ts +0 -23
  819. package/dist/membership/v1/generated/validators/cancellationCreate.zod.js +0 -31
  820. package/dist/membership/v1/generated/validators/cancellationItem.zod.d.ts +0 -38
  821. package/dist/membership/v1/generated/validators/cancellationItem.zod.js +0 -36
  822. package/dist/membership/v1/generated/validators/cancellationList.zod.d.ts +0 -74
  823. package/dist/membership/v1/generated/validators/cancellationList.zod.js +0 -14
  824. package/dist/membership/v1/generated/validators/cancellationPolicy.zod.d.ts +0 -14
  825. package/dist/membership/v1/generated/validators/cancellationPolicy.zod.js +0 -11
  826. package/dist/membership/v1/generated/validators/cancellationRefundPreview.zod.d.ts +0 -51
  827. package/dist/membership/v1/generated/validators/cancellationRefundPreview.zod.js +0 -33
  828. package/dist/membership/v1/generated/validators/cancellationRefundPreviewItem.zod.d.ts +0 -35
  829. package/dist/membership/v1/generated/validators/cancellationRefundPreviewItem.zod.js +0 -35
  830. package/dist/membership/v1/generated/validators/contact.zod.d.ts +0 -41
  831. package/dist/membership/v1/generated/validators/contact.zod.js +0 -39
  832. package/dist/membership/v1/generated/validators/contactCreate.zod.d.ts +0 -32
  833. package/dist/membership/v1/generated/validators/contactCreate.zod.js +0 -30
  834. package/dist/membership/v1/generated/validators/contactList.zod.d.ts +0 -38
  835. package/dist/membership/v1/generated/validators/contactList.zod.js +0 -14
  836. package/dist/membership/v1/generated/validators/contactUpdate.zod.d.ts +0 -33
  837. package/dist/membership/v1/generated/validators/contactUpdate.zod.js +0 -31
  838. package/dist/membership/v1/generated/validators/creditGrant.zod.d.ts +0 -137
  839. package/dist/membership/v1/generated/validators/creditGrant.zod.js +0 -27
  840. package/dist/membership/v1/generated/validators/creditGrantList.zod.d.ts +0 -144
  841. package/dist/membership/v1/generated/validators/creditGrantList.zod.js +0 -14
  842. package/dist/membership/v1/generated/validators/creditGroup.zod.d.ts +0 -123
  843. package/dist/membership/v1/generated/validators/creditGroup.zod.js +0 -18
  844. package/dist/membership/v1/generated/validators/creditNote.zod.d.ts +0 -34
  845. package/dist/membership/v1/generated/validators/creditNote.zod.js +0 -40
  846. package/dist/membership/v1/generated/validators/creditNoteItem.zod.d.ts +0 -17
  847. package/dist/membership/v1/generated/validators/creditNoteItem.zod.js +0 -16
  848. package/dist/membership/v1/generated/validators/creditNoteItemList.zod.d.ts +0 -24
  849. package/dist/membership/v1/generated/validators/creditNoteItemList.zod.js +0 -14
  850. package/dist/membership/v1/generated/validators/creditNoteList.zod.d.ts +0 -41
  851. package/dist/membership/v1/generated/validators/creditNoteList.zod.js +0 -14
  852. package/dist/membership/v1/generated/validators/currency6ff0ec7.zod.d.ts +0 -21
  853. package/dist/membership/v1/generated/validators/currency6ff0ec7.zod.js +0 -30
  854. package/dist/membership/v1/generated/validators/currencyA200529.zod.d.ts +0 -16
  855. package/dist/membership/v1/generated/validators/currencyA200529.zod.js +0 -10
  856. package/dist/membership/v1/generated/validators/currencyList.zod.d.ts +0 -23
  857. package/dist/membership/v1/generated/validators/currencyList.zod.js +0 -14
  858. package/dist/membership/v1/generated/validators/discount.zod.d.ts +0 -153
  859. package/dist/membership/v1/generated/validators/discount.zod.js +0 -44
  860. package/dist/membership/v1/generated/validators/discountList.zod.d.ts +0 -160
  861. package/dist/membership/v1/generated/validators/discountList.zod.js +0 -14
  862. package/dist/membership/v1/generated/validators/entitlement.zod.d.ts +0 -25
  863. package/dist/membership/v1/generated/validators/entitlement.zod.js +0 -20
  864. package/dist/membership/v1/generated/validators/entitlementList.zod.d.ts +0 -32
  865. package/dist/membership/v1/generated/validators/entitlementList.zod.js +0 -14
  866. package/dist/membership/v1/generated/validators/errorA200529.zod.d.ts +0 -16
  867. package/dist/membership/v1/generated/validators/errorA200529.zod.js +0 -10
  868. package/dist/membership/v1/generated/validators/featureGrant.zod.d.ts +0 -33
  869. package/dist/membership/v1/generated/validators/featureGrant.zod.js +0 -24
  870. package/dist/membership/v1/generated/validators/featureGrantList.zod.d.ts +0 -40
  871. package/dist/membership/v1/generated/validators/featureGrantList.zod.js +0 -14
  872. package/dist/membership/v1/generated/validators/featureGrantStatus.zod.d.ts +0 -16
  873. package/dist/membership/v1/generated/validators/featureGrantStatus.zod.js +0 -11
  874. package/dist/membership/v1/generated/validators/funds.zod.d.ts +0 -18
  875. package/dist/membership/v1/generated/validators/funds.zod.js +0 -19
  876. package/dist/membership/v1/generated/validators/invoice.zod.d.ts +0 -63
  877. package/dist/membership/v1/generated/validators/invoice.zod.js +0 -54
  878. package/dist/membership/v1/generated/validators/invoiceItem.zod.d.ts +0 -46
  879. package/dist/membership/v1/generated/validators/invoiceItem.zod.js +0 -60
  880. package/dist/membership/v1/generated/validators/invoiceItemList.zod.d.ts +0 -53
  881. package/dist/membership/v1/generated/validators/invoiceItemList.zod.js +0 -14
  882. package/dist/membership/v1/generated/validators/invoiceItemProration.zod.d.ts +0 -18
  883. package/dist/membership/v1/generated/validators/invoiceItemProration.zod.js +0 -21
  884. package/dist/membership/v1/generated/validators/invoiceList.zod.d.ts +0 -70
  885. package/dist/membership/v1/generated/validators/invoiceList.zod.js +0 -14
  886. package/dist/membership/v1/generated/validators/invoiceStatus.zod.d.ts +0 -16
  887. package/dist/membership/v1/generated/validators/invoiceStatus.zod.js +0 -11
  888. package/dist/membership/v1/generated/validators/invoiceSummary.zod.d.ts +0 -32
  889. package/dist/membership/v1/generated/validators/invoiceSummary.zod.js +0 -34
  890. package/dist/membership/v1/generated/validators/monthlyStatement.zod.d.ts +0 -38
  891. package/dist/membership/v1/generated/validators/monthlyStatement.zod.js +0 -30
  892. package/dist/membership/v1/generated/validators/monthlyStatementList.zod.d.ts +0 -45
  893. package/dist/membership/v1/generated/validators/monthlyStatementList.zod.js +0 -14
  894. package/dist/membership/v1/generated/validators/objectIdentity.zod.d.ts +0 -15
  895. package/dist/membership/v1/generated/validators/objectIdentity.zod.js +0 -15
  896. package/dist/membership/v1/generated/validators/order.zod.d.ts +0 -148
  897. package/dist/membership/v1/generated/validators/order.zod.js +0 -63
  898. package/dist/membership/v1/generated/validators/orderCancel.zod.d.ts +0 -14
  899. package/dist/membership/v1/generated/validators/orderCancel.zod.js +0 -17
  900. package/dist/membership/v1/generated/validators/orderItem.zod.d.ts +0 -75
  901. package/dist/membership/v1/generated/validators/orderItem.zod.js +0 -88
  902. package/dist/membership/v1/generated/validators/orderItemList.zod.d.ts +0 -81
  903. package/dist/membership/v1/generated/validators/orderItemList.zod.js +0 -14
  904. package/dist/membership/v1/generated/validators/orderItemStatus.zod.d.ts +0 -16
  905. package/dist/membership/v1/generated/validators/orderItemStatus.zod.js +0 -11
  906. package/dist/membership/v1/generated/validators/orderList.zod.js +0 -14
  907. package/dist/membership/v1/generated/validators/orderRefundQuote.zod.d.ts +0 -17
  908. package/dist/membership/v1/generated/validators/orderRefundQuote.zod.js +0 -18
  909. package/dist/membership/v1/generated/validators/orderRefundQuoteInput.zod.d.ts +0 -15
  910. package/dist/membership/v1/generated/validators/orderRefundQuoteInput.zod.js +0 -20
  911. package/dist/membership/v1/generated/validators/orderStatus.zod.d.ts +0 -18
  912. package/dist/membership/v1/generated/validators/orderStatus.zod.js +0 -11
  913. package/dist/membership/v1/generated/validators/paidWith.zod.d.ts +0 -17
  914. package/dist/membership/v1/generated/validators/paidWith.zod.js +0 -25
  915. package/dist/membership/v1/generated/validators/payInvoiceRequest.zod.d.ts +0 -26
  916. package/dist/membership/v1/generated/validators/payInvoiceRequest.zod.js +0 -53
  917. package/dist/membership/v1/generated/validators/payTogetherRequest.zod.d.ts +0 -18
  918. package/dist/membership/v1/generated/validators/payTogetherRequest.zod.js +0 -21
  919. package/dist/membership/v1/generated/validators/paymentAction.zod.d.ts +0 -22
  920. package/dist/membership/v1/generated/validators/paymentAction.zod.js +0 -24
  921. package/dist/membership/v1/generated/validators/paymentCancellationReason.zod.d.ts +0 -14
  922. package/dist/membership/v1/generated/validators/paymentCancellationReason.zod.js +0 -11
  923. package/dist/membership/v1/generated/validators/paymentMethod.zod.d.ts +0 -25
  924. package/dist/membership/v1/generated/validators/paymentMethod.zod.js +0 -19
  925. package/dist/membership/v1/generated/validators/paymentMethodList.zod.d.ts +0 -32
  926. package/dist/membership/v1/generated/validators/paymentMethodList.zod.js +0 -14
  927. package/dist/membership/v1/generated/validators/paymentMethodSetup.zod.d.ts +0 -15
  928. package/dist/membership/v1/generated/validators/paymentMethodSetup.zod.js +0 -17
  929. package/dist/membership/v1/generated/validators/paymentMethodSetupResult.zod.d.ts +0 -26
  930. package/dist/membership/v1/generated/validators/paymentMethodSetupResult.zod.js +0 -16
  931. package/dist/membership/v1/generated/validators/paymentOption.zod.d.ts +0 -17
  932. package/dist/membership/v1/generated/validators/paymentOption.zod.js +0 -15
  933. package/dist/membership/v1/generated/validators/paymentOptionList.zod.d.ts +0 -24
  934. package/dist/membership/v1/generated/validators/paymentOptionList.zod.js +0 -14
  935. package/dist/membership/v1/generated/validators/paymentOptionMethod.zod.d.ts +0 -14
  936. package/dist/membership/v1/generated/validators/paymentOptionMethod.zod.js +0 -16
  937. package/dist/membership/v1/generated/validators/paymentPreview.zod.d.ts +0 -38
  938. package/dist/membership/v1/generated/validators/paymentPreview.zod.js +0 -30
  939. package/dist/membership/v1/generated/validators/paymentPreviewInvoice.zod.d.ts +0 -17
  940. package/dist/membership/v1/generated/validators/paymentPreviewInvoice.zod.js +0 -16
  941. package/dist/membership/v1/generated/validators/paymentResult.zod.d.ts +0 -87
  942. package/dist/membership/v1/generated/validators/paymentResult.zod.js +0 -36
  943. package/dist/membership/v1/generated/validators/paymentStatus.zod.d.ts +0 -16
  944. package/dist/membership/v1/generated/validators/paymentStatus.zod.js +0 -11
  945. package/dist/membership/v1/generated/validators/placedOrder.zod.d.ts +0 -35
  946. package/dist/membership/v1/generated/validators/placedOrder.zod.js +0 -16
  947. package/dist/membership/v1/generated/validators/planA200529.zod.d.ts +0 -31
  948. package/dist/membership/v1/generated/validators/planA200529.zod.js +0 -10
  949. package/dist/membership/v1/generated/validators/planC836db9.zod.d.ts +0 -31
  950. package/dist/membership/v1/generated/validators/planC836db9.zod.js +0 -23
  951. package/dist/membership/v1/generated/validators/planFeature.zod.d.ts +0 -18
  952. package/dist/membership/v1/generated/validators/planFeature.zod.js +0 -13
  953. package/dist/membership/v1/generated/validators/planListA200529.zod.d.ts +0 -38
  954. package/dist/membership/v1/generated/validators/planListA200529.zod.js +0 -10
  955. package/dist/membership/v1/generated/validators/planListC836db9.zod.d.ts +0 -38
  956. package/dist/membership/v1/generated/validators/planListC836db9.zod.js +0 -14
  957. package/dist/membership/v1/generated/validators/price.zod.d.ts +0 -86
  958. package/dist/membership/v1/generated/validators/price.zod.js +0 -78
  959. package/dist/membership/v1/generated/validators/priceList.zod.d.ts +0 -93
  960. package/dist/membership/v1/generated/validators/priceList.zod.js +0 -14
  961. package/dist/membership/v1/generated/validators/priceOption.zod.d.ts +0 -46
  962. package/dist/membership/v1/generated/validators/priceOption.zod.js +0 -32
  963. package/dist/membership/v1/generated/validators/priceType.zod.d.ts +0 -14
  964. package/dist/membership/v1/generated/validators/priceType.zod.js +0 -11
  965. package/dist/membership/v1/generated/validators/product.zod.d.ts +0 -15
  966. package/dist/membership/v1/generated/validators/product.zod.js +0 -14
  967. package/dist/membership/v1/generated/validators/productID.zod.d.ts +0 -13
  968. package/dist/membership/v1/generated/validators/productID.zod.js +0 -16
  969. package/dist/membership/v1/generated/validators/productList.zod.d.ts +0 -22
  970. package/dist/membership/v1/generated/validators/productList.zod.js +0 -14
  971. package/dist/membership/v1/generated/validators/projectAssignment.zod.d.ts +0 -22
  972. package/dist/membership/v1/generated/validators/projectAssignment.zod.js +0 -23
  973. package/dist/membership/v1/generated/validators/projectAssignmentList.zod.d.ts +0 -29
  974. package/dist/membership/v1/generated/validators/projectAssignmentList.zod.js +0 -14
  975. package/dist/membership/v1/generated/validators/purchaseOperation.zod.d.ts +0 -15
  976. package/dist/membership/v1/generated/validators/purchaseOperation.zod.js +0 -11
  977. package/dist/membership/v1/generated/validators/quote.zod.d.ts +0 -112
  978. package/dist/membership/v1/generated/validators/quote.zod.js +0 -32
  979. package/dist/membership/v1/generated/validators/quoteCancellation.zod.d.ts +0 -18
  980. package/dist/membership/v1/generated/validators/quoteCancellation.zod.js +0 -20
  981. package/dist/membership/v1/generated/validators/quoteItem.zod.d.ts +0 -25
  982. package/dist/membership/v1/generated/validators/quoteItem.zod.js +0 -38
  983. package/dist/membership/v1/generated/validators/quoteItemInput.zod.d.ts +0 -45
  984. package/dist/membership/v1/generated/validators/quoteItemInput.zod.js +0 -41
  985. package/dist/membership/v1/generated/validators/quoteRenewal.zod.d.ts +0 -27
  986. package/dist/membership/v1/generated/validators/quoteRenewal.zod.js +0 -26
  987. package/dist/membership/v1/generated/validators/quoteRenewalResult.zod.d.ts +0 -27
  988. package/dist/membership/v1/generated/validators/quoteRenewalResult.zod.js +0 -24
  989. package/dist/membership/v1/generated/validators/quoteRequest.zod.d.ts +0 -75
  990. package/dist/membership/v1/generated/validators/quoteRequest.zod.js +0 -42
  991. package/dist/membership/v1/generated/validators/quotedDiscount.zod.d.ts +0 -19
  992. package/dist/membership/v1/generated/validators/quotedDiscount.zod.js +0 -21
  993. package/dist/membership/v1/generated/validators/rate.zod.d.ts +0 -49
  994. package/dist/membership/v1/generated/validators/rate.zod.js +0 -41
  995. package/dist/membership/v1/generated/validators/rateList.zod.d.ts +0 -56
  996. package/dist/membership/v1/generated/validators/rateList.zod.js +0 -14
  997. package/dist/membership/v1/generated/validators/refund.zod.d.ts +0 -93
  998. package/dist/membership/v1/generated/validators/refund.zod.js +0 -44
  999. package/dist/membership/v1/generated/validators/refundList.zod.d.ts +0 -100
  1000. package/dist/membership/v1/generated/validators/refundList.zod.js +0 -14
  1001. package/dist/membership/v1/generated/validators/refundPolicy.zod.d.ts +0 -15
  1002. package/dist/membership/v1/generated/validators/refundPolicy.zod.js +0 -11
  1003. package/dist/membership/v1/generated/validators/refundReason.zod.d.ts +0 -23
  1004. package/dist/membership/v1/generated/validators/refundReason.zod.js +0 -23
  1005. package/dist/membership/v1/generated/validators/renewRequest.zod.d.ts +0 -31
  1006. package/dist/membership/v1/generated/validators/renewRequest.zod.js +0 -42
  1007. package/dist/membership/v1/generated/validators/renewalOrderRequest.zod.d.ts +0 -25
  1008. package/dist/membership/v1/generated/validators/renewalOrderRequest.zod.js +0 -25
  1009. package/dist/membership/v1/generated/validators/renewalPrice.zod.d.ts +0 -33
  1010. package/dist/membership/v1/generated/validators/renewalPrice.zod.js +0 -25
  1011. package/dist/membership/v1/generated/validators/renewalPriceList.zod.d.ts +0 -40
  1012. package/dist/membership/v1/generated/validators/renewalPriceList.zod.js +0 -14
  1013. package/dist/membership/v1/generated/validators/scheduledChange.zod.d.ts +0 -34
  1014. package/dist/membership/v1/generated/validators/scheduledChange.zod.js +0 -26
  1015. package/dist/membership/v1/generated/validators/setProjectAssignmentRequest.zod.d.ts +0 -13
  1016. package/dist/membership/v1/generated/validators/setProjectAssignmentRequest.zod.js +0 -11
  1017. package/dist/membership/v1/generated/validators/spendRow.zod.d.ts +0 -30
  1018. package/dist/membership/v1/generated/validators/spendRow.zod.js +0 -29
  1019. package/dist/membership/v1/generated/validators/spendRowList.zod.d.ts +0 -39
  1020. package/dist/membership/v1/generated/validators/spendRowList.zod.js +0 -17
  1021. package/dist/membership/v1/generated/validators/statement.zod.d.ts +0 -40
  1022. package/dist/membership/v1/generated/validators/statement.zod.js +0 -36
  1023. package/dist/membership/v1/generated/validators/statementAmounts.zod.d.ts +0 -17
  1024. package/dist/membership/v1/generated/validators/statementAmounts.zod.js +0 -16
  1025. package/dist/membership/v1/generated/validators/statementItem.zod.d.ts +0 -20
  1026. package/dist/membership/v1/generated/validators/statementItem.zod.js +0 -25
  1027. package/dist/membership/v1/generated/validators/statementList.zod.d.ts +0 -47
  1028. package/dist/membership/v1/generated/validators/statementList.zod.js +0 -14
  1029. package/dist/membership/v1/generated/validators/statementStatus.zod.d.ts +0 -14
  1030. package/dist/membership/v1/generated/validators/statementStatus.zod.js +0 -9
  1031. package/dist/membership/v1/generated/validators/statementSummary.zod.d.ts +0 -36
  1032. package/dist/membership/v1/generated/validators/statementSummary.zod.js +0 -19
  1033. package/dist/membership/v1/generated/validators/statementType.zod.d.ts +0 -15
  1034. package/dist/membership/v1/generated/validators/statementType.zod.js +0 -11
  1035. package/dist/membership/v1/generated/validators/subscription.zod.d.ts +0 -149
  1036. package/dist/membership/v1/generated/validators/subscription.zod.js +0 -119
  1037. package/dist/membership/v1/generated/validators/subscriptionCancellation.zod.d.ts +0 -37
  1038. package/dist/membership/v1/generated/validators/subscriptionCancellation.zod.js +0 -30
  1039. package/dist/membership/v1/generated/validators/subscriptionList.zod.d.ts +0 -155
  1040. package/dist/membership/v1/generated/validators/subscriptionList.zod.js +0 -14
  1041. package/dist/membership/v1/generated/validators/subscriptionRestriction.zod.d.ts +0 -17
  1042. package/dist/membership/v1/generated/validators/subscriptionRestriction.zod.js +0 -17
  1043. package/dist/membership/v1/generated/validators/taxItem.zod.d.ts +0 -21
  1044. package/dist/membership/v1/generated/validators/taxItem.zod.js +0 -21
  1045. package/dist/membership/v1/generated/validators/tier.zod.d.ts +0 -15
  1046. package/dist/membership/v1/generated/validators/tier.zod.js +0 -17
  1047. package/dist/membership/v1/generated/validators/topUp.zod.d.ts +0 -51
  1048. package/dist/membership/v1/generated/validators/topUp.zod.js +0 -46
  1049. package/dist/membership/v1/generated/validators/topUpCreate.zod.d.ts +0 -22
  1050. package/dist/membership/v1/generated/validators/topUpCreate.zod.js +0 -34
  1051. package/dist/membership/v1/generated/validators/topUpList.zod.d.ts +0 -58
  1052. package/dist/membership/v1/generated/validators/topUpList.zod.js +0 -14
  1053. package/dist/membership/v1/generated/validators/transaction.zod.d.ts +0 -54
  1054. package/dist/membership/v1/generated/validators/transaction.zod.js +0 -48
  1055. package/dist/membership/v1/generated/validators/transactionList.zod.d.ts +0 -61
  1056. package/dist/membership/v1/generated/validators/transactionList.zod.js +0 -14
  1057. package/dist/membership/v1/generated/validators/transactionType.zod.d.ts +0 -17
  1058. package/dist/membership/v1/generated/validators/transactionType.zod.js +0 -11
  1059. package/dist/membership/v1/generated/validators/usageCharge.zod.d.ts +0 -44
  1060. package/dist/membership/v1/generated/validators/usageCharge.zod.js +0 -58
  1061. package/dist/membership/v1/generated/validators/usageChargeList.zod.d.ts +0 -51
  1062. package/dist/membership/v1/generated/validators/usageChargeList.zod.js +0 -14
  1063. package/dist/membership/v1/generated/validators/usageType.zod.d.ts +0 -14
  1064. package/dist/membership/v1/generated/validators/usageType.zod.js +0 -11
  1065. package/dist/membership/v1/generated/validators/withdrawal.zod.d.ts +0 -40
  1066. package/dist/membership/v1/generated/validators/withdrawal.zod.js +0 -43
  1067. package/dist/membership/v1/generated/validators/withdrawalAllocation.zod.d.ts +0 -19
  1068. package/dist/membership/v1/generated/validators/withdrawalAllocation.zod.js +0 -17
  1069. package/dist/membership/v1/generated/validators/withdrawalCreate.zod.d.ts +0 -25
  1070. package/dist/membership/v1/generated/validators/withdrawalCreate.zod.js +0 -19
  1071. package/dist/membership/v1/generated/validators/withdrawalItem.zod.d.ts +0 -46
  1072. package/dist/membership/v1/generated/validators/withdrawalItem.zod.js +0 -37
  1073. package/dist/membership/v1/generated/validators/withdrawalItemList.zod.d.ts +0 -48
  1074. package/dist/membership/v1/generated/validators/withdrawalItemList.zod.js +0 -14
  1075. package/dist/membership/v1/generated/validators/withdrawalList.zod.d.ts +0 -39
  1076. package/dist/membership/v1/generated/validators/withdrawalList.zod.js +0 -14
  1077. package/dist/membership/v1/generated/validators/withdrawalPreview.zod.d.ts +0 -40
  1078. package/dist/membership/v1/generated/validators/withdrawalPreview.zod.js +0 -25
  1079. package/dist/membership/v1/generated/validators/withdrawalPreviewItem.zod.d.ts +0 -28
  1080. package/dist/membership/v1/generated/validators/withdrawalPreviewItem.zod.js +0 -19
  1081. package/dist/membership/v1/generated/validators/withdrawalPreviewRequest.zod.d.ts +0 -15
  1082. package/dist/membership/v1/generated/validators/withdrawalPreviewRequest.zod.js +0 -13
  1083. package/dist/membership/v1/generated/validators/withdrawalSource.zod.d.ts +0 -23
  1084. package/dist/membership/v1/generated/validators/withdrawalSource.zod.js +0 -23
@@ -508,7 +508,7 @@ export interface UsageTimelineResponseBody {
508
508
  items: UsageBucketResource[];
509
509
  }
510
510
  /**
511
- * `inactive` has never been enabled or its subscription has ended; `pending` awaits acceptance of its order; `active` accepts requests on the forwarding endpoints; `failed` means the enablement failed, as `failure_reason` states. An `inactive` or `failed` service can be enabled again.
511
+ * `inactive` has never been enabled or its subscription has ended; `pending` awaits completion of its checkout and acceptance of its order; `active` accepts requests on the forwarding endpoints; `failed` means the enablement failed, as `failure_reason` states. An `inactive` or `failed` service can be enabled again.
512
512
  */
513
513
  export type ServiceResourceStatus = (typeof ServiceResourceStatus)[keyof typeof ServiceResourceStatus];
514
514
  export declare const ServiceResourceStatus: {
@@ -518,11 +518,12 @@ export declare const ServiceResourceStatus: {
518
518
  readonly failed: "failed";
519
519
  };
520
520
  /**
521
- * Why the enablement failed; null unless `status` is `failed`. `order_declined` means Billing did not accept the order, for example because the billing account is suspended; `order_canceled` means the order was withdrawn; `order_expired` means it was not paid in time.
521
+ * Why the enablement failed; null unless `status` is `failed`. `checkout_expired` means checkout was not completed before its Checkout Session expired; `order_declined` means Billing did not accept the order, for example because the billing account is suspended; `order_canceled` means the order was withdrawn; `order_expired` means it was not paid in time.
522
522
  * @nullable
523
523
  */
524
524
  export type ServiceResourceFailureReason = (typeof ServiceResourceFailureReason)[keyof typeof ServiceResourceFailureReason] | null;
525
525
  export declare const ServiceResourceFailureReason: {
526
+ readonly checkout_expired: "checkout_expired";
526
527
  readonly order_declined: "order_declined";
527
528
  readonly order_canceled: "order_canceled";
528
529
  readonly order_expired: "order_expired";
@@ -531,20 +532,25 @@ export declare const ServiceResourceFailureReason: {
531
532
  * The model platform service of a project.
532
533
  */
533
534
  export interface ServiceResource {
534
- /** `inactive` has never been enabled or its subscription has ended; `pending` awaits acceptance of its order; `active` accepts requests on the forwarding endpoints; `failed` means the enablement failed, as `failure_reason` states. An `inactive` or `failed` service can be enabled again. */
535
+ /** `inactive` has never been enabled or its subscription has ended; `pending` awaits completion of its checkout and acceptance of its order; `active` accepts requests on the forwarding endpoints; `failed` means the enablement failed, as `failure_reason` states. An `inactive` or `failed` service can be enabled again. */
535
536
  status: ServiceResourceStatus;
536
537
  /**
537
- * Why the enablement failed; null unless `status` is `failed`. `order_declined` means Billing did not accept the order, for example because the billing account is suspended; `order_canceled` means the order was withdrawn; `order_expired` means it was not paid in time.
538
+ * Why the enablement failed; null unless `status` is `failed`. `checkout_expired` means checkout was not completed before its Checkout Session expired; `order_declined` means Billing did not accept the order, for example because the billing account is suspended; `order_canceled` means the order was withdrawn; `order_expired` means it was not paid in time.
538
539
  * @nullable
539
540
  */
540
541
  failure_reason: ServiceResourceFailureReason;
541
542
  /**
542
- * The order that enabled the service, or that the latest enablement placed; null before any enablement.
543
+ * The Checkout Session of the latest enablement; null before any enablement.
544
+ * @nullable
545
+ */
546
+ checkout_session_id: string | null;
547
+ /**
548
+ * The order that enabled the service, or that the latest enablement's checkout created; null before checkout completes.
543
549
  * @nullable
544
550
  */
545
551
  order_id: string | null;
546
552
  /**
547
- * The Billing subscription that requests are billed under; null before any enablement.
553
+ * The Billing subscription that requests are billed under; null until an enablement's checkout completes.
548
554
  * @nullable
549
555
  */
550
556
  subscription_id: string | null;
@@ -560,13 +566,13 @@ export interface ServiceResource {
560
566
  ended_at: string | null;
561
567
  }
562
568
  /**
563
- * automatic applies the best applicable account discount, issues the invoice and pays it from eligible
564
- * credit grants and available balance at placement. Insufficient funds fail the purchase with HTTP 422
565
- * BILLING_INSUFFICIENT_FUNDS; no Billing order, charge or discount redemption is committed.
566
- * deferred places the order with a draft invoice at base prices and collects nothing. Paying that
567
- * invoice through Billing applies a promotion code or the best applicable account discount, issues the
568
- * invoice and collects it; an order still unpaid at its deadline expires. A zero-total invoice is issued
569
- * and paid at placement in either mode.
569
+ * automatic completes checkout with the purchase: the best applicable account discount is applied, and the
570
+ * order is created with its invoice issued and paid from eligible credit grants and available balance.
571
+ * Insufficient funds fail the purchase with HTTP 422 BILLING_INSUFFICIENT_FUNDS; no Billing order, charge or
572
+ * discount redemption is committed.
573
+ * deferred creates an open Billing Checkout Session and charges nothing, even for a zero total. The customer
574
+ * completes it through Billing, where a promotion code can be applied, and then pays the issued invoice; a
575
+ * session not completed by its deadline expires.
570
576
  */
571
577
  export type CheckoutMode = (typeof CheckoutMode)[keyof typeof CheckoutMode];
572
578
  export declare const CheckoutMode: {
@@ -574,10 +580,11 @@ export declare const CheckoutMode: {
574
580
  readonly deferred: "deferred";
575
581
  };
576
582
  /**
577
- * Shared checkout choices for a product purchase. Omitting this object or mode selects
578
- * automatic checkout. Each purchase creates its own order. Promotion codes are supplied only to
579
- * Billing quote and payment operations. A service may retain a failed creation record when Billing
580
- * refuses a purchase; no infrastructure is created for that refusal.
583
+ * Shared checkout choices for a product purchase. The service may set them or forward its client's
584
+ * choices unchanged; it does not need to read them, and Billing validates them. Omitting this object or
585
+ * mode selects automatic checkout. Each purchase creates its own Checkout Session. Promotion codes are supplied
586
+ * only to Billing. A service may retain a failed creation record when Billing refuses a purchase; no
587
+ * infrastructure is created for that refusal.
581
588
  */
582
589
  export interface CheckoutOptions {
583
590
  mode?: CheckoutMode;
@@ -585,77 +592,41 @@ export interface CheckoutOptions {
585
592
  * Expected invoice total after discounts and tax, before applying credit grants or balance.
586
593
  * A different total fails with BILLING_AMOUNT_CHANGED without charging or reserving a discount.
587
594
  * Accepted only in automatic mode; with deferred it is refused with HTTP 400. For deferred
588
- * checkout, give the expected amount when paying the invoice through Billing.
595
+ * checkout, give the expected amount when completing it through Billing.
589
596
  */
590
597
  expected_amount?: Money & string;
598
+ /**
599
+ * Where the client goes after the customer finishes a deferred checkout. Any absolute URI with a
600
+ * scheme, including mobile and desktop application schemes. Billing stores it without checking the
601
+ * target; each client validates its own.
602
+ * @maxLength 2048
603
+ */
604
+ return_url?: string;
591
605
  }
592
606
  export interface CreateServiceRequestBody {
593
607
  checkout?: CheckoutOptions;
594
608
  }
595
609
  /**
596
- * `draft`: not yet issued; an order's draft invoice shows base prices until it is paid, when the discount is applied and it is issued. Other drafts are visible only to operators. `open`: issued and not yet settled; a zero-total invoice is paid at once. `paid` stays paid after a refund, with the refunded part in amount_refunded. `void`: collection has stopped and any funds received have been returned. Usage not yet invoiced is not on any invoice.
597
- */
598
- export type InvoiceStatus = (typeof InvoiceStatus)[keyof typeof InvoiceStatus];
599
- export declare const InvoiceStatus: {
600
- readonly draft: "draft";
601
- readonly open: "open";
602
- readonly paid: "paid";
603
- readonly void: "void";
604
- };
605
- /**
606
- * An order's invoice amounts, without contact details or payment methods. A draft shows base prices until it is paid, when the discount is applied and it is issued; a zero-total invoice is issued and paid at placement.
607
- */
608
- export interface InvoiceSummary {
609
- id: string;
610
- number?: string;
611
- currency: string;
612
- status: InvoiceStatus;
613
- /**
614
- * Sum of the line amounts before discounts. Where prices include tax, the tax contained in
615
- * each line's discounted amount is taken out here, so that total = subtotal -
616
- * discount_amount + tax_amount always holds.
617
- */
618
- subtotal: string;
619
- /** Sum of the line discounts, taken off before tax. */
620
- discount_amount: string;
621
- tax_amount: string;
622
- total: string;
623
- amount_paid: string;
624
- /** Issued credit notes that reduced unpaid receivables; the original invoice total is unchanged. */
625
- pre_payment_credit_notes_amount: Money;
626
- /** Issued credit notes against payments already received; their refunds may not have completed. */
627
- post_payment_credit_notes_amount: Money;
628
- /**
629
- * What is still collectible after unpaid credit notes and successful payments; never below zero.
630
- * @pattern ^\d+(\.\d{1,10})?$
631
- */
632
- amount_due: string;
633
- amount_refunded: string;
634
- due_at?: string;
635
- }
636
- /**
637
- * The Billing order this purchase placed and its invoice as they stood at placement. Read the order and
638
- * the invoice in Billing for current progress: the service starts delivery only after Billing accepts the
639
- * order, and payment alone does not mean delivery has completed.
610
+ * The service, `pending` until its order is accepted, and its Checkout Session.
640
611
  */
641
- export interface PlacedOrder {
642
- order_id: string;
643
- /** The order's invoice, the same as invoice.id. */
644
- invoice_id: string;
612
+ export interface CreateServiceResponseBody {
613
+ service: ServiceResource;
614
+ /** The Billing Checkout Session of this enablement. With deferred checkout, the customer completes it in Billing. */
615
+ checkout_session_id: string;
645
616
  /**
646
- * What the purchase charges. A draft shows the base price in total and is paid through Billing, where a
647
- * promotion code can still be applied; an open invoice is issued and awaits its amount_due; a paid one
648
- * needs nothing further. A zero-total invoice is issued and paid at placement.
617
+ * The order created when checkout completes, at once for automatic checkout; null until then.
618
+ * @nullable
649
619
  */
650
- invoice: InvoiceSummary;
620
+ order_id: string | null;
651
621
  }
652
622
  /**
653
- * The service, `pending` until its order is accepted, and the order.
623
+ * `complete`: tax is calculated for the billing account's invoice contact. `requires_location_inputs`: a quote without a billing account, which leaves out tax that would be added; tax already contained in a price is included.
654
624
  */
655
- export interface CreateServiceResponseBody {
656
- service: ServiceResource;
657
- order: PlacedOrder;
658
- }
625
+ export type QuoteTaxStatus = (typeof QuoteTaxStatus)[keyof typeof QuoteTaxStatus];
626
+ export declare const QuoteTaxStatus: {
627
+ readonly complete: "complete";
628
+ readonly requires_location_inputs: "requires_location_inputs";
629
+ };
659
630
  /**
660
631
  * Account funding for this purchase, calculated by Billing. Amounts use the enclosing response currency.
661
632
  * Credit eligibility and all purchase requirements are already evaluated. Nothing is charged or reserved.
@@ -675,13 +646,73 @@ export interface Funds {
675
646
  /** Minimum recharge that covers the shortfall, respecting the currency minimum recharge and currency precision. Zero when no additional balance is needed. */
676
647
  required_top_up_amount: Money;
677
648
  }
649
+ /**
650
+ * one_time or recurring.
651
+ */
652
+ export type QuoteItemType = (typeof QuoteItemType)[keyof typeof QuoteItemType];
653
+ export declare const QuoteItemType: {
654
+ readonly one_time: "one_time";
655
+ readonly recurring: "recurring";
656
+ };
657
+ /**
658
+ * licensed or metered.
659
+ */
660
+ export type QuoteItemUsageType = (typeof QuoteItemUsageType)[keyof typeof QuoteItemUsageType];
661
+ export declare const QuoteItemUsageType: {
662
+ readonly licensed: "licensed";
663
+ readonly metered: "metered";
664
+ };
665
+ /**
666
+ * The billing period of a recurring licensed line; `none` otherwise.
667
+ */
668
+ export type QuoteItemInterval = (typeof QuoteItemInterval)[keyof typeof QuoteItemInterval];
669
+ export declare const QuoteItemInterval: {
670
+ readonly none: "none";
671
+ readonly day: "day";
672
+ readonly month: "month";
673
+ readonly year: "year";
674
+ };
675
+ /**
676
+ * The dimension values the line is priced at, such as region and instance type.
677
+ */
678
+ export type QuoteItemDimensions = {
679
+ [key: string]: string;
680
+ };
678
681
  /**
679
682
  * One calculated purchase line. Fixed purchase amounts are rounded as checkout rounds them.
680
683
  * A line without an immediate charge has zero checkout amounts. unit_amount remains null when
681
684
  * no single unit price applies; an unrequested usage estimate remains null.
682
685
  */
683
- export interface QuoteItemDc1fddb {
686
+ export interface QuoteItem {
687
+ product_id: string;
688
+ plan_id: string;
684
689
  plan_name: string;
690
+ /**
691
+ * The price the line is priced at, including one Billing selected. With quantity and dimensions it
692
+ * prices the same line in Billing's own quote, for example with a promotion code.
693
+ */
694
+ price_id: string;
695
+ /** The dimension values the line is priced at, such as region and instance type. */
696
+ dimensions: QuoteItemDimensions;
697
+ /** one_time or recurring. */
698
+ type: QuoteItemType;
699
+ /** licensed or metered. */
700
+ usage_type: QuoteItemUsageType;
701
+ /** The billing period of a recurring licensed line; `none` otherwise. */
702
+ interval: QuoteItemInterval;
703
+ /**
704
+ * Periods per billing cycle of a recurring licensed line; null otherwise.
705
+ * @minimum 1
706
+ * @nullable
707
+ */
708
+ interval_count: number | null;
709
+ /** The setup charge already included in amount; null when none applies. */
710
+ setup_amount: Money | null;
711
+ /**
712
+ * Recurring licensed lines only; null otherwise. What each later period renews at, before discounts
713
+ * and tax, which differs from amount when the first period is priced differently.
714
+ */
715
+ recurring_amount: Money | null;
685
716
  /**
686
717
  * Unit price before discounts, with tax included only where the price includes it. Null when
687
718
  * no single unit price applies, such as tiered or multiple-rate pricing or an immediate change.
@@ -713,16 +744,20 @@ export interface QuoteItemDc1fddb {
713
744
  /**
714
745
  * A price preview for the purchase described by a service, calculated by Billing. Nothing is saved,
715
746
  * charged or reserved, and no discount redemption is consumed. Account discounts and tax are
716
- * evaluated as for automatic checkout. Promotion codes are evaluated through Billing quote operations.
747
+ * evaluated as for automatic checkout. Promotion codes are evaluated by Billing at checkout, not here.
717
748
  * All amounts use currency. This preview does not lock prices or guarantee discount availability.
718
749
  * Success includes complete checkout amounts and every requested usage estimate. If any item or
719
750
  * requested usage estimate cannot be calculated, the operation returns its existing structured
720
- * error response; it never returns a partial quote with HTTP 200.
751
+ * error response; it never returns a partial quote with HTTP 200. A quote without a billing account
752
+ * has no funds and no account discount, and leaves out tax that would be added.
721
753
  */
722
754
  export interface Quote {
723
- funds: Funds;
755
+ /** Null for a quote without a billing account. */
756
+ funds: Funds | null;
757
+ /** `complete`: tax is calculated for the billing account's invoice contact. `requires_location_inputs`: a quote without a billing account, which leaves out tax that would be added; tax already contained in a price is included. */
758
+ tax_status: QuoteTaxStatus;
724
759
  /** One line for each item the purchase would order, in the order it would order them. */
725
- items: QuoteItemDc1fddb[];
760
+ items: QuoteItem[];
726
761
  /**
727
762
  * Sum of line amounts before discounts, less tax already included in the discounted line
728
763
  * amounts, as on an invoice.
@@ -819,2766 +854,6 @@ export interface CursorPagination {
819
854
  /** @nullable */
820
855
  next_cursor?: string | null;
821
856
  }
822
- export interface WithdrawalAllocation {
823
- source_transaction_id: string;
824
- /** @pattern ^[0-9]{1,15}([.][0-9]{1,10})?$ */
825
- amount: string;
826
- /** @pattern ^[0-9]{1,15}([.][0-9]{1,10})?$ */
827
- fee_amount: string;
828
- /** @pattern ^[0-9]{1,15}([.][0-9]{1,10})?$ */
829
- refund_amount: string;
830
- }
831
- export type WithdrawalItemStatus = (typeof WithdrawalItemStatus)[keyof typeof WithdrawalItemStatus];
832
- export declare const WithdrawalItemStatus: {
833
- readonly pending: "pending";
834
- readonly succeeded: "succeeded";
835
- readonly failed: "failed";
836
- readonly reversed: "reversed";
837
- };
838
- /**
839
- * The original top-up and where its refund goes. Card details are included when the original payment method was saved.
840
- */
841
- export interface WithdrawalSource {
842
- /** @pattern ^[0-9]{1,15}([.][0-9]{1,10})?$ */
843
- amount: string;
844
- /**
845
- * @minLength 3
846
- * @maxLength 3
847
- */
848
- currency: string;
849
- received_at: string;
850
- payment_gateway: string;
851
- method_type: string;
852
- card_brand?: string;
853
- /** @pattern ^[0-9]{4}$ */
854
- card_last4?: string;
855
- }
856
- /**
857
- * For one original top-up: the principal deducted, the withdrawal fee and the amount refunded, through its own refund. payment_gateway and method_type identify the original route.
858
- */
859
- export interface WithdrawalItem {
860
- source_transaction_id: string;
861
- /** @pattern ^[0-9]{1,15}([.][0-9]{1,10})?$ */
862
- amount: string;
863
- /** @pattern ^[0-9]{1,15}([.][0-9]{1,10})?$ */
864
- fee_amount: string;
865
- /** @pattern ^[0-9]{1,15}([.][0-9]{1,10})?$ */
866
- refund_amount: string;
867
- id: string;
868
- withdrawal_id: string;
869
- billing_account_id: number;
870
- /**
871
- * @minLength 3
872
- * @maxLength 3
873
- */
874
- currency: string;
875
- refund_id: string;
876
- fee_transaction_id?: string;
877
- status: WithdrawalItemStatus;
878
- completed_at?: string;
879
- payment_gateway: string;
880
- method_type: string;
881
- source: WithdrawalSource;
882
- /** The gateway's failure code when a refund failed, or `refund_reversed` when a completed refund was reversed. Absent while pending or successful. */
883
- failure_code?: string;
884
- }
885
- export type WithdrawalStatus = (typeof WithdrawalStatus)[keyof typeof WithdrawalStatus];
886
- export declare const WithdrawalStatus: {
887
- readonly pending: "pending";
888
- readonly processing: "processing";
889
- readonly succeeded: "succeeded";
890
- readonly partially_completed: "partially_completed";
891
- readonly failed: "failed";
892
- readonly reversed: "reversed";
893
- };
894
- /**
895
- * A withdrawal of account balance to the original payment methods of its unused top-ups. Accepted amounts are fixed. deducted_amount, settled_amount and charged_fee_amount cover completed items. A failed item releases its principal and fee; successful items stand when another item fails.
896
- */
897
- export interface Withdrawal {
898
- id: string;
899
- billing_account_id: number;
900
- /**
901
- * @minLength 3
902
- * @maxLength 3
903
- */
904
- currency: string;
905
- /** @pattern ^[0-9]{1,15}([.][0-9]{1,10})?$ */
906
- amount: string;
907
- /** @pattern ^[0-9]{1,15}([.][0-9]{1,10})?$ */
908
- fee_amount: string;
909
- /** @pattern ^[0-9]{1,15}([.][0-9]{1,10})?$ */
910
- refund_amount: string;
911
- /** @pattern ^[0-9]{1,15}([.][0-9]{1,10})?$ */
912
- deducted_amount: string;
913
- /** @pattern ^[0-9]{1,15}([.][0-9]{1,10})?$ */
914
- settled_amount: string;
915
- /** @pattern ^[0-9]{1,15}([.][0-9]{1,10})?$ */
916
- charged_fee_amount: string;
917
- status: WithdrawalStatus;
918
- created_at: string;
919
- completed_at?: string;
920
- /** Who submitted the withdrawal; may differ from the account owner. */
921
- created_by?: string;
922
- }
923
- export interface WithdrawalPreviewItem {
924
- source_transaction_id: string;
925
- /** @pattern ^[0-9]{1,15}([.][0-9]{1,10})?$ */
926
- amount: string;
927
- /** @pattern ^[0-9]{1,15}([.][0-9]{1,10})?$ */
928
- fee_amount: string;
929
- /** @pattern ^[0-9]{1,15}([.][0-9]{1,10})?$ */
930
- refund_amount: string;
931
- source: WithdrawalSource;
932
- }
933
- export interface WithdrawalPreview {
934
- billing_account_id: number;
935
- /**
936
- * @minLength 3
937
- * @maxLength 3
938
- */
939
- currency: string;
940
- /** @pattern ^[0-9]{1,15}([.][0-9]{1,10})?$ */
941
- available_amount: string;
942
- /** @pattern ^[0-9]{1,15}([.][0-9]{1,10})?$ */
943
- amount: string;
944
- /** @pattern ^[0-9]{1,15}([.][0-9]{1,10})?$ */
945
- fee_amount: string;
946
- /** @pattern ^[0-9]{1,15}([.][0-9]{1,10})?$ */
947
- refund_amount: string;
948
- /** @maxItems 200 */
949
- items: WithdrawalPreviewItem[];
950
- }
951
- export interface WithdrawalPreviewRequest {
952
- billing_account_id: number;
953
- /** @pattern ^[0-9]{1,15}([.][0-9]{1,10})?$ */
954
- amount?: string;
955
- }
956
- export interface WithdrawalCreate {
957
- id: string;
958
- billing_account_id: number;
959
- /** @pattern ^[0-9]{1,15}([.][0-9]{1,10})?$ */
960
- amount: string;
961
- /** @pattern ^[0-9]{1,15}([.][0-9]{1,10})?$ */
962
- expected_refund_amount: string;
963
- /**
964
- * @minItems 1
965
- * @maxItems 200
966
- */
967
- expected_items: WithdrawalAllocation[];
968
- }
969
- export interface WithdrawalList {
970
- items: Withdrawal[];
971
- pagination: OffsetPagination;
972
- }
973
- export interface WithdrawalItemList {
974
- items: WithdrawalItem[];
975
- pagination: OffsetPagination;
976
- }
977
- /**
978
- * 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.
979
- */
980
- export type CancellationPolicy = (typeof CancellationPolicy)[keyof typeof CancellationPolicy];
981
- export declare const CancellationPolicy: {
982
- readonly immediate: "immediate";
983
- readonly period_end: "period_end";
984
- };
985
- /**
986
- * `none` refunds nothing.
987
- *
988
- * `prorated` refunds the amount paid for the current period minus the value of the time used, never below zero
989
- * or above what remains unrefunded. Time used runs from the period start to the effective cancellation, by the
990
- * second. Each whole month from the period start is valued at the order item's `monthly_list_amount`, and the
991
- * remainder at that amount in proportion to the length of the month it falls in; without `monthly_list_amount`,
992
- * time used is valued at the amount paid in proportion to the length of the period. A renewal starts a new
993
- * period, and an immediate change starts one at the change. Discounts and setup fees are not refunded. Refunds
994
- * return to the original payment sources, with tax refunded in proportion.
995
- *
996
- * `short_rate` refunds as `prorated`, except that when the cancellation takes effect less than
997
- * `short_rate_threshold_seconds` after the period start, the value of the time used is multiplied by
998
- * `short_rate_multiplier`, up to `monthly_list_amount` for each month begun or, without `monthly_list_amount`,
999
- * up to the amount paid.
1000
- */
1001
- export type RefundPolicy = (typeof RefundPolicy)[keyof typeof RefundPolicy];
1002
- export declare const RefundPolicy: {
1003
- readonly none: "none";
1004
- readonly prorated: "prorated";
1005
- readonly short_rate: "short_rate";
1006
- };
1007
- export interface OrderCancel {
1008
- /**
1009
- * Omit to select all still-pending items. Explicit selections name one or more items of this order; successful items cannot be reversed here.
1010
- * @minItems 1
1011
- * @maxItems 100
1012
- */
1013
- order_item_ids?: string[];
1014
- }
1015
- export type QuoteRenewalInterval = (typeof QuoteRenewalInterval)[keyof typeof QuoteRenewalInterval];
1016
- export declare const QuoteRenewalInterval: {
1017
- readonly day: "day";
1018
- readonly month: "month";
1019
- readonly year: "year";
1020
- };
1021
- /**
1022
- * Price renewing a licensed subscription. Give `price_id`, or `interval` with
1023
- * `interval_count`, to renew for another term at the price currently sold for it. Naming
1024
- * the current term, or giving neither, renews at the agreed amount. A term sold at several
1025
- * prices that differ in cancellation policy is refused with 409
1026
- * `BILLING_RENEWAL_OPTION_AMBIGUOUS` unless `cancellation_policy` or `price_id` is given.
1027
- */
1028
- export interface QuoteRenewal {
1029
- subscription_id: string;
1030
- price_id?: string;
1031
- interval?: QuoteRenewalInterval;
1032
- /** @minimum 1 */
1033
- interval_count?: number;
1034
- /** With `interval` and `interval_count`, chooses among prices of that term that differ in cancellation policy. */
1035
- cancellation_policy?: CancellationPolicy;
1036
- /**
1037
- * How many consecutive periods to renew for.
1038
- * @minimum 1
1039
- * @maximum 100
1040
- */
1041
- periods?: number;
1042
- }
1043
- export type QuoteRenewalResultInterval = (typeof QuoteRenewalResultInterval)[keyof typeof QuoteRenewalResultInterval];
1044
- export declare const QuoteRenewalResultInterval: {
1045
- readonly day: "day";
1046
- readonly month: "month";
1047
- readonly year: "year";
1048
- };
1049
- /**
1050
- * What renewing would charge. Renewing the same subscription for the same term and periods charges exactly `total` unless prices or the account's discounts change first.
1051
- */
1052
- export interface QuoteRenewalResult {
1053
- /** Which renewal of the request this answers. */
1054
- index: number;
1055
- subscription_id: string;
1056
- /** The price the renewal is charged under. */
1057
- price_id: string;
1058
- interval: QuoteRenewalResultInterval;
1059
- interval_count: number;
1060
- periods: number;
1061
- /** The price of the periods before the account's discounts, with any discount the subscription carries already reflected; includes tax only where the price does. */
1062
- amount: Money;
1063
- /** The reduction from a discount the account holds. */
1064
- discount_amount: Money;
1065
- /** Tax on the discounted amount. */
1066
- tax_amount: Money;
1067
- /** The part of `tax_amount` already contained in `amount`. */
1068
- tax_included_amount: Money;
1069
- /**
1070
- * What renewing would charge: `amount` less `discount_amount`, plus `tax_amount`, less
1071
- * `tax_included_amount`.
1072
- */
1073
- total: Money;
1074
- }
1075
- /**
1076
- * One fully calculated purchase, estimated metered usage or recorded order item. Amounts use the
1077
- * billing-account currency. An item with no immediate charge has zero checkout amounts.
1078
- */
1079
- export interface QuoteItem {
1080
- tax_amount: Money;
1081
- tax_included_amount: Money;
1082
- /**
1083
- * The zero-based request line index, or the recorded order item's position for an order quote.
1084
- * @minimum 0
1085
- */
1086
- index: number;
1087
- /** Present for an existing order quote; identifies the recorded item being priced. */
1088
- order_item_id?: string;
1089
- /** The selected price, also when the request identified it indirectly. */
1090
- price_id: string;
1091
- plan_name: string;
1092
- /** Unit price before discounts. Null when no single unit price applies, such as tiered or multiple-rate pricing. */
1093
- unit_amount: Money | null;
1094
- /** The quantity priced; with duration_seconds, quantity times the duration. */
1095
- quantity: string;
1096
- /** Amount before discounts and including any setup charge. For requested future usage this is an estimate, not a collectible checkout amount. */
1097
- amount: Money;
1098
- discount_amount: Money;
1099
- total: Money;
1100
- currency: string;
1101
- }
1102
- export type QuotedDiscountType = (typeof QuotedDiscountType)[keyof typeof QuotedDiscountType];
1103
- export declare const QuotedDiscountType: {
1104
- readonly promotion_code: "promotion_code";
1105
- readonly account_discount: "account_discount";
1106
- };
1107
- /**
1108
- * The discount selected for this calculation, not applied and not reserved. Amounts are on the quote and its lines.
1109
- */
1110
- export interface QuotedDiscount {
1111
- type: QuotedDiscountType;
1112
- name: string;
1113
- /**
1114
- * Code text for a promotion_code discount; null for an account_discount.
1115
- * @minLength 1
1116
- * @maxLength 64
1117
- * @nullable
1118
- */
1119
- promotion_code: string | null;
1120
- }
1121
- /**
1122
- * Which object this is, together with what a person currently calls it.
1123
- *
1124
- * The name is for display. It is chosen by whoever owns the object, it changes, it is not unique
1125
- * between objects, and it may be empty when nobody has named it yet — so it must not be used to
1126
- * address, match or deduplicate anything. Addressing is by id.
1127
- *
1128
- * This differs from an identity carrying a lookup key: a lookup key is written once by an operator,
1129
- * is unique, and can be used to fetch the object. A name cannot.
1130
- */
1131
- export interface NamedIdentity {
1132
- id: string;
1133
- /** @maxLength 255 */
1134
- name: string;
1135
- }
1136
- /**
1137
- * `one_time` charges once when bought. `recurring` charges again for every period, or for usage as it is settled.
1138
- */
1139
- export type PriceType = (typeof PriceType)[keyof typeof PriceType];
1140
- export declare const PriceType: {
1141
- readonly one_time: "one_time";
1142
- readonly recurring: "recurring";
1143
- };
1144
- /**
1145
- * `licensed` charges for the quantity bought, each period paid before it starts. `metered` charges for the usage
1146
- * reported, after it is settled; a metered subscription lasts until it is canceled. A one-time price is licensed.
1147
- */
1148
- export type UsageType = (typeof UsageType)[keyof typeof UsageType];
1149
- export declare const UsageType: {
1150
- readonly licensed: "licensed";
1151
- readonly metered: "metered";
1152
- };
1153
- /**
1154
- * One subscription of the quoted cancellation.
1155
- */
1156
- export interface CancellationRefundPreviewItem {
1157
- subscription_id: string;
1158
- plan_id: string;
1159
- plan_name: string;
1160
- /** The project and its current name. Absent for an account-level purchase or when the project cannot be read. */
1161
- project?: NamedIdentity | null;
1162
- type: PriceType;
1163
- usage_type: UsageType;
1164
- /** 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. */
1165
- auto_renew: boolean;
1166
- unused_amount: Money;
1167
- short_rate_surcharge_amount: Money;
1168
- refundable_amount: Money;
1169
- refund_amount: Money;
1170
- credit_amount: Money;
1171
- tax_amount: Money;
1172
- forfeited_amount: Money;
1173
- }
1174
- /**
1175
- * What the cancellation would return, per subscription and in total, as of now. Give `proration_date` and
1176
- * `refundable_amount` when creating the cancellation.
1177
- *
1178
- * - `unused_amount`: before tax, the amount paid for the current periods in proportion to the time remaining.
1179
- * - `short_rate_surcharge_amount`: before tax, the part of `forfeited_amount` due to the short rate of the
1180
- * refund policy.
1181
- * - `refundable_amount`: what is returned the way it was paid, tax included; `refund_amount` plus
1182
- * `credit_amount`.
1183
- * - `refund_amount`: the part returned to the balance or the payment method.
1184
- * - `credit_amount`: the part restored to the credit grants that paid.
1185
- * - `tax_amount`: the tax included in `refundable_amount`.
1186
- * - `forfeited_amount`: before tax, the part of `unused_amount` the refund terms do not return.
1187
- *
1188
- * Metered and one-time subscriptions show zero; their usage until release is charged as usual.
1189
- */
1190
- export interface CancellationRefundPreview {
1191
- mode: CancellationPolicy;
1192
- /** For `period_end`, when release begins, the end of the paid terms. */
1193
- scheduled_at?: string;
1194
- /** For `immediate`, the second the refund is computed as of. Give it when creating the cancellation. */
1195
- proration_date?: string;
1196
- currency: string;
1197
- unused_amount: Money;
1198
- short_rate_surcharge_amount: Money;
1199
- refundable_amount: Money;
1200
- refund_amount: Money;
1201
- credit_amount: Money;
1202
- tax_amount: Money;
1203
- forfeited_amount: Money;
1204
- items: CancellationRefundPreviewItem[];
1205
- }
1206
- /**
1207
- * 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.
1208
- */
1209
- export interface OrderRefundQuote {
1210
- order_id: string;
1211
- refundable_amount: Money;
1212
- refund_amount: Money;
1213
- credit_amount: Money;
1214
- currency: string;
1215
- }
1216
- /**
1217
- * A complete calculation in the billing account's currency; nothing is saved or reserved. The request fails if any item cannot be priced. Usage estimates are included in totals but are not collected at checkout; only an existing-order quote gives that order's checkout amount.
1218
- */
1219
- export interface Quote5f60d00 {
1220
- /** Account funds for an existing-order checkout quote. Absent for usage estimates, refunds and cancellations. */
1221
- funds?: Funds;
1222
- subtotal: Money;
1223
- discount_amount: Money;
1224
- tax_amount: Money;
1225
- /** The discount a purchase or order would get, not yet applied. Null when there is none, and for renewals and cancellations. A confirmed order reports its recorded discount. */
1226
- discount: QuotedDiscount | null;
1227
- items: QuoteItem[];
1228
- renewals: QuoteRenewalResult[];
1229
- /** What the cancellation requested would return. Present only when one was requested. */
1230
- cancellation?: CancellationRefundPreview;
1231
- total: Money;
1232
- currency: string;
1233
- /** Present when an order refund was requested. */
1234
- refund?: OrderRefundQuote;
1235
- }
1236
- export type QuoteA200529 = Quote5f60d00;
1237
- /**
1238
- * A cancellation to quote: what ending these subscriptions together would return, for one mode; quote `immediate` and `period_end` separately to compare. Refused with 409 `BILLING_SUBSCRIPTION_OPERATION_PENDING` when a subscription is already being canceled (`meta.cancellation_id`), is being reclaimed (`meta.reason` `reclaim_requested`) or has a paid change waiting to switch (`meta.order_id`).
1239
- */
1240
- export interface QuoteCancellation {
1241
- /**
1242
- * The subscriptions to end together, all of one service, including every subscription released with a resource.
1243
- * @minItems 1
1244
- * @maxItems 50
1245
- */
1246
- subscription_ids: string[];
1247
- mode: CancellationPolicy;
1248
- }
1249
- export interface CancellationCreate {
1250
- /**
1251
- * As in the quote.
1252
- * @minItems 1
1253
- * @maxItems 50
1254
- */
1255
- subscription_ids: string[];
1256
- mode: CancellationPolicy;
1257
- /** 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. */
1258
- proration_date?: string;
1259
- /** The quote's `refundable_amount`; the cancellation is refused when the refund differs. */
1260
- expected_refundable_amount: Money & string;
1261
- /**
1262
- * A note from the account holder, kept with the cancellation.
1263
- * @maxLength 1024
1264
- */
1265
- reason?: string;
1266
- }
1267
- export type CancellationStatus = (typeof CancellationStatus)[keyof typeof CancellationStatus];
1268
- export declare const CancellationStatus: {
1269
- readonly requested: "requested";
1270
- readonly scheduled: "scheduled";
1271
- readonly releasing: "releasing";
1272
- readonly completed: "completed";
1273
- readonly canceled: "canceled";
1274
- readonly failed: "failed";
1275
- };
1276
- /**
1277
- * Who requested it; `project_deletion` means the project was deleted.
1278
- */
1279
- export type CancellationOrigin = (typeof CancellationOrigin)[keyof typeof CancellationOrigin];
1280
- export declare const CancellationOrigin: {
1281
- readonly customer: "customer";
1282
- readonly operator: "operator";
1283
- readonly project_deletion: "project_deletion";
1284
- };
1285
- export type CancellationItemStatus = (typeof CancellationItemStatus)[keyof typeof CancellationItemStatus];
1286
- export declare const CancellationItemStatus: {
1287
- readonly requested: "requested";
1288
- readonly scheduled: "scheduled";
1289
- readonly releasing: "releasing";
1290
- readonly completed: "completed";
1291
- readonly canceled: "canceled";
1292
- readonly failed: "failed";
1293
- };
1294
- /**
1295
- * One subscription of the cancellation.
1296
- */
1297
- export interface CancellationItem {
1298
- /** The subscription's cancellation item, the same as `Subscription.cancellation.id`. */
1299
- id: string;
1300
- subscription_id: string;
1301
- plan_id: string;
1302
- plan_name: string;
1303
- type: PriceType;
1304
- /**
1305
- * Creating the cancellation turned automatic renewal off; withdrawing it turns renewal back on
1306
- * for a `metered` subscription and leaves it off for a `licensed` one.
1307
- */
1308
- usage_type: UsageType;
1309
- status: CancellationItemStatus;
1310
- /** The release stopped or its result is unknown; present while the release needs resolution. */
1311
- failure_code?: string;
1312
- release_started_at?: string;
1313
- /** When the service ended, as confirmed by the service that provides it. */
1314
- effective_at?: string;
1315
- /** Present with `completed`. The part of the refund returned to the account balance. */
1316
- balance_amount?: Money;
1317
- /** Present with `completed`. The part restored to the credit grants that paid. */
1318
- credit_amount?: Money;
1319
- /** Present with `completed`. The part returned to the payment method it was paid with. */
1320
- gateway_amount?: Money;
1321
- }
1322
- /**
1323
- * One cancellation of a set of subscriptions of one service, released together at one time.
1324
- *
1325
- * - `requested`: `immediate`, release has not begun.
1326
- * - `scheduled`: `period_end`, waiting for `scheduled_at`.
1327
- * - `releasing`: release has begun; it can no longer be withdrawn.
1328
- * - `completed`: every subscription has ended and its refund has been made.
1329
- * - `canceled`: withdrawn before release began; the subscriptions continue.
1330
- * - `failed`: the service could not carry it out, for the reason in `failure_code`; the
1331
- * subscriptions continue and can be canceled again.
1332
- */
1333
- export interface Cancellation {
1334
- id: string;
1335
- status: CancellationStatus;
1336
- mode: CancellationPolicy;
1337
- scheduled_at?: string;
1338
- /** For `immediate`, the second the refund is computed as of. */
1339
- proration_date?: string;
1340
- /** Who requested it; `project_deletion` means the project was deleted. */
1341
- origin: CancellationOrigin;
1342
- /** The billing account paying for these subscriptions when the cancellation was created: the purchasing account of an account-level purchase, or the project's linked account. */
1343
- billing_account_id: number;
1344
- currency: string;
1345
- /** The refund confirmed when the cancellation was created. Absent when the platform created it. */
1346
- expected_refundable_amount?: Money;
1347
- /** Present with `failed`: the owning service's code, such as for a disk that can only be released with its server. */
1348
- failure_code?: string;
1349
- requested_at: string;
1350
- completed_at?: string;
1351
- canceled_at?: string;
1352
- items: CancellationItem[];
1353
- }
1354
- export interface CancellationList {
1355
- items: Cancellation[];
1356
- pagination: OffsetPagination;
1357
- }
1358
- export type SubscriptionCancellationStatus = (typeof SubscriptionCancellationStatus)[keyof typeof SubscriptionCancellationStatus];
1359
- export declare const SubscriptionCancellationStatus: {
1360
- readonly requested: "requested";
1361
- readonly scheduled: "scheduled";
1362
- readonly releasing: "releasing";
1363
- readonly failed: "failed";
1364
- readonly completed: "completed";
1365
- readonly canceled: "canceled";
1366
- };
1367
- export type SubscriptionCancellationMode = (typeof SubscriptionCancellationMode)[keyof typeof SubscriptionCancellationMode];
1368
- export declare const SubscriptionCancellationMode: {
1369
- readonly immediate: "immediate";
1370
- readonly period_end: "period_end";
1371
- };
1372
- /**
1373
- * The latest cancellation including the subscription, with this subscription's item: `id` is the item and `cancellation_id` the cancellation. scheduled_at is the intended time and effective_at the confirmed end of service.
1374
- */
1375
- export interface SubscriptionCancellation {
1376
- reason?: string;
1377
- /** The cancellation this item belongs to, with the other subscriptions released together. */
1378
- cancellation_id?: string;
1379
- id: string;
1380
- subscription_id: string;
1381
- status: SubscriptionCancellationStatus;
1382
- mode: SubscriptionCancellationMode;
1383
- requested_at: string;
1384
- scheduled_at?: string;
1385
- effective_at?: string;
1386
- completed_at?: string;
1387
- release_started_at?: string;
1388
- canceled_at?: string;
1389
- forfeit_remaining_value: boolean;
1390
- failure_code?: string;
1391
- failure_reason?: string;
1392
- }
1393
- export type ErrorA200529 = Error;
1394
- /**
1395
- * The platform service's fixed identifier, such as compute, canopy or assistant.
1396
- * @minLength 1
1397
- * @maxLength 64
1398
- * @pattern ^[a-z][a-z0-9]*(-[a-z0-9]+)*$
1399
- */
1400
- export type ProductID = string;
1401
- export interface Product {
1402
- id: ProductID;
1403
- name: string;
1404
- description?: string;
1405
- }
1406
- export type BillingAccountStatus = (typeof BillingAccountStatus)[keyof typeof BillingAccountStatus];
1407
- export declare const BillingAccountStatus: {
1408
- readonly active: "active";
1409
- readonly suspended: "suspended";
1410
- readonly closed: "closed";
1411
- };
1412
- /**
1413
- * Who suspended the account: `owner` (you), `operator` (Leaflow), or `none` while it is not suspended. Only a suspension by `owner` can be resumed by you.
1414
- */
1415
- export type BillingAccountSuspendedBy = (typeof BillingAccountSuspendedBy)[keyof typeof BillingAccountSuspendedBy];
1416
- export declare const BillingAccountSuspendedBy: {
1417
- readonly none: "none";
1418
- readonly owner: "owner";
1419
- readonly operator: "operator";
1420
- };
1421
- export interface BillingAccount {
1422
- /**
1423
- * The active contact used for invoices, of this account; null clears it.
1424
- * @nullable
1425
- */
1426
- invoice_contact_id?: string | null;
1427
- id: number;
1428
- /** Your name for the account. */
1429
- name?: string;
1430
- /** Fixed when the account was opened. */
1431
- currency: string;
1432
- status: BillingAccountStatus;
1433
- /** Who suspended the account: `owner` (you), `operator` (Leaflow), or `none` while it is not suspended. Only a suspension by `owner` can be resumed by you. */
1434
- suspended_by: BillingAccountSuspendedBy;
1435
- /** How far past the suspension threshold the account may go before its resources are suspended; `0` means none. */
1436
- grace_amount?: string;
1437
- /** How long the account has to top up after crossing the suspension threshold, in seconds; `0` means none. Grace ends when this or grace_amount runs out. */
1438
- grace_period_seconds?: number;
1439
- /**
1440
- * When the account was closed. Null if it is not closed or the time is unknown.
1441
- * @nullable
1442
- */
1443
- readonly closed_at?: string | null;
1444
- created_at: string;
1445
- }
1446
- /**
1447
- * A currency a billing account can be opened in.
1448
- */
1449
- export interface Currency {
1450
- /**
1451
- * ISO 4217 alpha-3, uppercase.
1452
- * @minLength 3
1453
- * @maxLength 3
1454
- */
1455
- code: string;
1456
- /**
1457
- * Decimal places of the ISO 4217 minor unit.
1458
- * @minimum 0
1459
- * @maximum 4
1460
- */
1461
- exponent: number;
1462
- /**
1463
- * @minLength 1
1464
- * @maxLength 64
1465
- */
1466
- name: string;
1467
- minimum_top_up: Money;
1468
- }
1469
- export interface CurrencyList {
1470
- items: Currency[];
1471
- pagination: OffsetPagination;
1472
- }
1473
- export interface BillingAccountCreate {
1474
- /**
1475
- * @minLength 3
1476
- * @maxLength 3
1477
- */
1478
- currency: string;
1479
- /** @maxLength 255 */
1480
- name?: string;
1481
- }
1482
- export interface BillingAccountUpdate {
1483
- /**
1484
- * The active contact used for invoices, of this account; null clears it.
1485
- * @nullable
1486
- */
1487
- invoice_contact_id?: string | null;
1488
- /** @maxLength 255 */
1489
- name?: string;
1490
- }
1491
- export interface BillingAccountList {
1492
- items: BillingAccount[];
1493
- pagination: OffsetPagination;
1494
- }
1495
- /**
1496
- * A plan referenced by an applicability; active is false once it is archived, and the reference still applies.
1497
- */
1498
- export interface ApplicablePlan {
1499
- id: string;
1500
- name: string;
1501
- active: boolean;
1502
- }
1503
- /**
1504
- * A catalog object, inlined for display.
1505
- */
1506
- export interface ObjectIdentity {
1507
- lookup_key?: string;
1508
- id: string;
1509
- name: string;
1510
- }
1511
- /**
1512
- * `per_unit` multiplies a unit amount; `tiered` walks a ladder.
1513
- */
1514
- export type BillingScheme = (typeof BillingScheme)[keyof typeof BillingScheme];
1515
- export declare const BillingScheme: {
1516
- readonly per_unit: "per_unit";
1517
- readonly tiered: "tiered";
1518
- };
1519
- export type PriceOptionInterval = (typeof PriceOptionInterval)[keyof typeof PriceOptionInterval];
1520
- export declare const PriceOptionInterval: {
1521
- readonly none: "none";
1522
- readonly day: "day";
1523
- readonly month: "month";
1524
- readonly year: "year";
1525
- };
1526
- /**
1527
- * A price's display terms, including archived prices referenced by an applicability.
1528
- */
1529
- export interface PriceOption {
1530
- product: Product;
1531
- plan: ObjectIdentity;
1532
- /** Absent when the price delegates to a rate card. */
1533
- billing_scheme?: BillingScheme;
1534
- unit_quantity: string;
1535
- id: string;
1536
- currency: string;
1537
- type: PriceType;
1538
- usage_type: UsageType;
1539
- interval: PriceOptionInterval;
1540
- /** How many periods one purchase covers. */
1541
- interval_count?: number;
1542
- unit_amount?: Money;
1543
- /** False once the price is archived. It still applies to purchases already made at this price. */
1544
- active: boolean;
1545
- }
1546
- /**
1547
- * The purchase operation covered. `new`: every new purchase, including zero-charge ones; it does not mean the account's first purchase, which `first_purchase_only` restricts. `renew`: renewals. `modify`: configuration or billing-term changes, whether they charge, refund or neither.
1548
- */
1549
- export type PurchaseOperation = (typeof PurchaseOperation)[keyof typeof PurchaseOperation];
1550
- export declare const PurchaseOperation: {
1551
- readonly new: "new";
1552
- readonly renew: "renew";
1553
- readonly modify: "modify";
1554
- };
1555
- /**
1556
- * Covers anything not excluded that matches an inclusion, or anything not excluded when no inclusion is given, subject to the price type, usage type, operation and term conditions. Archived plans and prices stay listed with active false.
1557
- */
1558
- export interface Applicability {
1559
- products?: Product[];
1560
- plans?: ApplicablePlan[];
1561
- prices?: PriceOption[];
1562
- /** The price types covered; empty covers both. */
1563
- price_types?: PriceType[];
1564
- /** The usage types covered; empty covers both. */
1565
- usage_types?: UsageType[];
1566
- operations?: PurchaseOperation[];
1567
- /** The shortest term a purchase may have, in months. Purchases without a term, such as metered usage, do not qualify while this is set. */
1568
- min_term_months?: number;
1569
- /** The longest term a purchase may have, in months. */
1570
- max_term_months?: number;
1571
- excluded_products?: Product[];
1572
- excluded_plans?: ApplicablePlan[];
1573
- excluded_prices?: PriceOption[];
1574
- }
1575
- export interface CreditGroup {
1576
- /** What the credit in this group may pay for; no restrictions means anything on the account. */
1577
- applies_to: Applicability;
1578
- /** Restricted to your first purchase of anything it applies to. */
1579
- first_purchase_only?: boolean;
1580
- amount: Money;
1581
- }
1582
- /**
1583
- * Balance, credits and unpaid charges, each reported separately.
1584
- */
1585
- export interface AccountBalance {
1586
- /** Balance minus pending balance returns and the part of unbilled_amount and due that estimated_credit_applied does not cover. Negative only when the balance and applicable credit fall short of what the account owes. */
1587
- available_credit: Money;
1588
- /** Credit expected to pay unbilled_amount and due, matching each charge to the grants whose scope, validity and conditions it meets, in the order credit is applied at payment. Nothing is deducted until an invoice is paid, so credits still includes this amount. */
1589
- estimated_credit_applied: Money;
1590
- /** Current estimate of priced usage that has not been invoiced. Final pricing and tax are fixed at issuance. */
1591
- unbilled_amount: Money;
1592
- billing_account_id: number;
1593
- currency: string;
1594
- /** Topped-up funds in the account's currency, excluding credits. May be negative after a payment dispute. Amounts owed are reported in due; this is not a withdrawable amount. */
1595
- balance: Money;
1596
- /** Remaining credit, including restricted grants; not withdrawable and not part of balance. credit_groups shows currently valid credit by permitted use; positive credits do not mean due is zero. */
1597
- credits: Money;
1598
- /** Currently valid credit restricted to certain products, operations or conditions; part of credits, not of balance. */
1599
- restricted_credits: Money;
1600
- /** Currently valid unspent credit grouped by permitted use. Each group covers only the charges its restrictions and validity allow, and the groups may differ from the recorded credits total. */
1601
- credit_groups: CreditGroup[];
1602
- /** Amount still payable on issued invoices. The invoice of an order not yet accepted is excluded, here and from available_credit. Usage not yet invoiced is reported separately. */
1603
- due: Money;
1604
- pending_returns_amount: Money;
1605
- }
1606
- /**
1607
- * `ARREARS`: the balance is negative. `PROJECTS_ASSIGNED`: the account still pays for a project, yours or anyone
1608
- * else's. `ACTIVE_SUBSCRIPTION`: a subscription it bought has not ended. `OPEN_ORDER`: an order is not finished.
1609
- * `UNPAID_INVOICE`: an issued invoice is not settled. `UNBILLED_USAGE`: usage has not been invoiced yet; it is
1610
- * invoiced in the next billing run. `PENDING_TRANSACTION`: a top-up, refund or withdrawal is still pending.
1611
- */
1612
- export type AccountDeletionObjection = (typeof AccountDeletionObjection)[keyof typeof AccountDeletionObjection];
1613
- export declare const AccountDeletionObjection: {
1614
- readonly ARREARS: "ARREARS";
1615
- readonly PROJECTS_ASSIGNED: "PROJECTS_ASSIGNED";
1616
- readonly ACTIVE_SUBSCRIPTION: "ACTIVE_SUBSCRIPTION";
1617
- readonly OPEN_ORDER: "OPEN_ORDER";
1618
- readonly UNPAID_INVOICE: "UNPAID_INVOICE";
1619
- readonly UNBILLED_USAGE: "UNBILLED_USAGE";
1620
- readonly PENDING_TRANSACTION: "PENDING_TRANSACTION";
1621
- };
1622
- export interface AccountDeletionReadinessItem {
1623
- account: BillingAccount;
1624
- /** Topped-up funds, in the account's currency, forfeited when it closes. Negative means arrears. */
1625
- balance: Money;
1626
- /** Remaining credit, in the account's currency, forfeited when it closes. */
1627
- credits: Money;
1628
- /** What stops this account from closing; empty when it can close. */
1629
- objections: AccountDeletionObjection[];
1630
- }
1631
- export interface AccountDeletionReadiness {
1632
- /** Every billing account you own that is not closed; empty when you own none. */
1633
- accounts: AccountDeletionReadinessItem[];
1634
- }
1635
- /**
1636
- * A project's assignment to a billing account from effective_from until effective_to; an open assignment has no end.
1637
- */
1638
- export interface ProjectAssignment {
1639
- project_id: string;
1640
- /** The project and its current name. Absent when the project cannot be read; `project_id` still identifies it. */
1641
- project?: NamedIdentity | null;
1642
- billing_account_id: number;
1643
- account_name?: string;
1644
- currency: string;
1645
- effective_from: string;
1646
- /** @nullable */
1647
- effective_to?: string | null;
1648
- }
1649
- export interface ProjectAssignmentList {
1650
- items: ProjectAssignment[];
1651
- pagination: OffsetPagination;
1652
- }
1653
- export interface SetProjectAssignmentRequest {
1654
- billing_account_id: number;
1655
- }
1656
- /**
1657
- * `pending` until the payment gateway reaches a result; the balance increases on `succeeded`. `failed`: the gateway declined the payment, which is withdrawn at the gateway; create a new top-up to pay another way. `canceled`: withdrawn without collecting money, for the reason in `cancellation_reason`. Unknown gateway outcomes stay `pending`; a browser redirect is not proof of payment. `failed` and `canceled` are final; a payment the gateway collects afterwards is credited as a separate `succeeded` top-up.
1658
- */
1659
- export type TopUpStatus = (typeof TopUpStatus)[keyof typeof TopUpStatus];
1660
- export declare const TopUpStatus: {
1661
- readonly pending: "pending";
1662
- readonly succeeded: "succeeded";
1663
- readonly failed: "failed";
1664
- readonly canceled: "canceled";
1665
- };
1666
- export interface AccountIdentity {
1667
- id: number;
1668
- name: string;
1669
- currency: string;
1670
- }
1671
- /**
1672
- * Why a gateway payment was withdrawn: `abandoned` when the customer did not complete it in time, `requested_by_customer` when the customer canceled it.
1673
- */
1674
- export type PaymentCancellationReason = (typeof PaymentCancellationReason)[keyof typeof PaymentCancellationReason];
1675
- export declare const PaymentCancellationReason: {
1676
- readonly abandoned: "abandoned";
1677
- readonly requested_by_customer: "requested_by_customer";
1678
- };
1679
- export type PaymentActionType = (typeof PaymentActionType)[keyof typeof PaymentActionType];
1680
- export declare const PaymentActionType: {
1681
- readonly redirect: "redirect";
1682
- readonly qr_code: "qr_code";
1683
- readonly sdk: "sdk";
1684
- };
1685
- /**
1686
- * The customer's next step; the payment outcome is reported separately.
1687
- */
1688
- export interface PaymentAction {
1689
- type: PaymentActionType;
1690
- /** The browser adapter for the action, for example stripe. */
1691
- provider?: string;
1692
- url?: string;
1693
- /** QR content to render, not an image URL. */
1694
- qr_code?: string;
1695
- /** Short-lived client credential for confirming this payment in the browser. */
1696
- client_secret?: string;
1697
- public_key?: string;
1698
- }
1699
- /**
1700
- * A top-up attempt and its outcome. A successful top-up adds to the balance; it is not a credit grant and has no invoice.
1701
- */
1702
- export interface TopUp {
1703
- id: string;
1704
- billing_account_id: number;
1705
- account: AccountIdentity;
1706
- /** What is credited to the account, in its currency. */
1707
- amount: Money;
1708
- currency: string;
1709
- /** The part of this top-up still in the balance. Pending refunds may hold part of it, so not all of it is necessarily withdrawable. */
1710
- remaining_amount?: Money;
1711
- /** `pending` until the payment gateway reaches a result; the balance increases on `succeeded`. `failed`: the gateway declined the payment, which is withdrawn at the gateway; create a new top-up to pay another way. `canceled`: withdrawn without collecting money, for the reason in `cancellation_reason`. Unknown gateway outcomes stay `pending`; a browser redirect is not proof of payment. `failed` and `canceled` are final; a payment the gateway collects afterwards is credited as a separate `succeeded` top-up. */
1712
- status: TopUpStatus;
1713
- cancellation_reason?: PaymentCancellationReason;
1714
- /** Which payment gateway collected it. */
1715
- payment_gateway?: string;
1716
- /** The selected payment method, such as card, wechat_pay or alipay. */
1717
- method_type?: string;
1718
- /** The currency the customer was charged in when the checkout collected a local currency; absent when it is the account's. */
1719
- presentment_currency?: string;
1720
- /** The amount charged in `presentment_currency`, as shown on the customer's statement. */
1721
- presentment_amount?: Money;
1722
- /** Why the gateway declined it; present with `failed`. The gateway's code unchanged: the issuer's decline code when there is one (Stripe decline_code, such as insufficient_funds), otherwise the gateway's error code (Stripe code, such as card_declined). Treat an unknown value as a generic decline. */
1723
- failure_reason?: string;
1724
- action?: PaymentAction;
1725
- created_at: string;
1726
- /**
1727
- * When the funds arrived, possibly days after `created_at`. Absent until the payment completes.
1728
- * @nullable
1729
- */
1730
- settled_at?: string | null;
1731
- }
1732
- export interface TopUpCreate {
1733
- /**
1734
- * The gateway selected from the available payment options.
1735
- * @minLength 1
1736
- * @maxLength 32
1737
- */
1738
- payment_gateway: string;
1739
- /**
1740
- * The selected method, such as card, wechat_pay or alipay.
1741
- * @minLength 1
1742
- * @maxLength 64
1743
- */
1744
- method_type: string;
1745
- /** The top-up ID, chosen by the caller. Read it after an uncertain response. */
1746
- id: string;
1747
- billing_account_id: number;
1748
- /** In the account's currency, no finer than its smallest unit (two decimals for most currencies, none for JPY). An amount below the currency's minimum top-up is refused, and the minimum is returned with the error. */
1749
- amount: Money & string;
1750
- /** Charge a saved payment method instead of opening a checkout page. */
1751
- payment_method_id?: string;
1752
- /** Where to send the customer after checkout. */
1753
- return_url?: string;
1754
- }
1755
- export interface TopUpList {
1756
- items: TopUp[];
1757
- pagination: OffsetPagination;
1758
- }
1759
- export interface PaymentOptionMethod {
1760
- /** The value to send as `method_type`, such as card, wechat_pay or alipay. */
1761
- method_type: string;
1762
- /** Whether this method type can be saved with create-payment-method-setup and charged later without the customer. */
1763
- reusable: boolean;
1764
- }
1765
- /**
1766
- * A gateway accepting the account's currency, with its payment methods.
1767
- */
1768
- export interface PaymentOption {
1769
- /** The value to send as `payment_gateway`. */
1770
- payment_gateway: string;
1771
- methods: PaymentOptionMethod[];
1772
- }
1773
- export interface PaymentOptionList {
1774
- items: PaymentOption[];
1775
- pagination: OffsetPagination;
1776
- }
1777
- export type PaymentMethodStatus = (typeof PaymentMethodStatus)[keyof typeof PaymentMethodStatus];
1778
- export declare const PaymentMethodStatus: {
1779
- readonly active: "active";
1780
- readonly expired: "expired";
1781
- readonly removed: "removed";
1782
- };
1783
- export interface PaymentMethod {
1784
- id: string;
1785
- billing_account_id: number;
1786
- payment_gateway: string;
1787
- brand?: string;
1788
- last4?: string;
1789
- /** @nullable */
1790
- exp_month?: number | null;
1791
- /** @nullable */
1792
- exp_year?: number | null;
1793
- is_default: boolean;
1794
- status: PaymentMethodStatus;
1795
- }
1796
- export interface PaymentMethodList {
1797
- items: PaymentMethod[];
1798
- pagination: OffsetPagination;
1799
- }
1800
- export interface PaymentMethodSetup {
1801
- /**
1802
- * The selected gateway supporting saved payment methods.
1803
- * @minLength 1
1804
- * @maxLength 32
1805
- */
1806
- payment_gateway: string;
1807
- billing_account_id: number;
1808
- }
1809
- /**
1810
- * What the payment gateway's browser library needs to collect a card in the page; the card goes from the browser straight to the gateway.
1811
- */
1812
- export interface PaymentMethodSetupResult {
1813
- /** The gateway's identifier for this attempt. */
1814
- setup_id: string;
1815
- payment_gateway: string;
1816
- action: PaymentAction;
1817
- }
1818
- /**
1819
- * Applies eligible credit grants and the available balance as requested, then collects only the remainder
1820
- * through the selected gateway. Grants restricted to other purchases are not counted as available funds.
1821
- * An unresolved channel payment is reused; retries do not apply the grant or balance portions twice.
1822
- * Without a gateway selection, insufficient account funds fail without starting an online payment.
1823
- *
1824
- * `payment_gateway` and `method_type` are given together, and `payment_method_id` only with both;
1825
- * otherwise the request is refused with `BILLING_PURCHASE_INVALID`.
1826
- */
1827
- export interface PayInvoiceRequest {
1828
- /**
1829
- * Required to collect an online remainder. An existing attempt keeps its gateway.
1830
- * @minLength 1
1831
- * @maxLength 32
1832
- */
1833
- payment_gateway?: string;
1834
- /**
1835
- * Required with payment_gateway; for example card, wechat_pay or alipay.
1836
- * @minLength 1
1837
- * @maxLength 64
1838
- */
1839
- method_type?: string;
1840
- /** A saved card of this billing account at the selected gateway. Omit to pay interactively. */
1841
- payment_method_id?: string;
1842
- /** Whether to apply the balance; credit grants are controlled by use_credits. */
1843
- use_balance?: boolean;
1844
- /** Apply eligible, unexpired credit grants before the balance. Grants are never converted into balance. */
1845
- use_credits?: boolean;
1846
- return_url?: string;
1847
- /**
1848
- * The code to apply while the order's terms are not fixed. Omit to apply the best applicable account discount, or to keep the discount already recorded.
1849
- * @minLength 1
1850
- * @maxLength 64
1851
- */
1852
- promotion_code?: string;
1853
- /** The invoice total to expect, after discounts and tax and before credit grants or balance, as the payment preview or an order quote gave it. A different total fails with `BILLING_AMOUNT_CHANGED` and nothing is charged. Omit to skip the check; zero is checked. */
1854
- expected_amount?: Money & string;
1855
- }
1856
- /**
1857
- * Name at least one invoice or order. All must belong to one account in its currency.
1858
- */
1859
- export interface PayTogetherRequest {
1860
- /** @maxItems 100 */
1861
- invoice_ids?: string[];
1862
- /** @maxItems 100 */
1863
- order_ids?: string[];
1864
- /** The amount due across all invoices, before credit grants or balance, as preview-pay-together gave it. A different amount fails with `BILLING_AMOUNT_CHANGED` and nothing is charged. Omit to skip the check. */
1865
- expected_amount?: Money & string;
1866
- }
1867
- /**
1868
- * `succeeded`: paid. `processing`: confirmation is pending; poll the invoice or order instead of paying again. `requires_action`: the customer must complete the returned action. `failed`: the attempt did not succeed, for the reason in failure_reason; a declined gateway payment is withdrawn, and paying again starts a new payment.
1869
- */
1870
- export type PaymentStatus = (typeof PaymentStatus)[keyof typeof PaymentStatus];
1871
- export declare const PaymentStatus: {
1872
- readonly succeeded: "succeeded";
1873
- readonly processing: "processing";
1874
- readonly requires_action: "requires_action";
1875
- readonly failed: "failed";
1876
- };
1877
- /**
1878
- * A credit grant and what it would pay.
1879
- */
1880
- export interface AppliedCredit {
1881
- credit_grant_id: string;
1882
- name: string;
1883
- amount: Money;
1884
- }
1885
- export interface PaymentPreviewInvoice {
1886
- invoice_id: string;
1887
- /** @nullable */
1888
- order_id?: string | null;
1889
- amount_due: Money;
1890
- credit_applied: Money;
1891
- balance_applied: Money;
1892
- }
1893
- /**
1894
- * What paying would take, calculated as paying does. Nothing is charged or reserved.
1895
- */
1896
- export interface PaymentPreview {
1897
- funds?: Funds;
1898
- currency: string;
1899
- /** What is outstanding before paying. */
1900
- amount_due: Money;
1901
- /** What credit grants would pay. Grants restricted to other purchases pay nothing here. */
1902
- credit_applied: Money;
1903
- /** The credit grants that would pay, in the order used. */
1904
- credit_grants: AppliedCredit[];
1905
- /** What the balance would pay. */
1906
- balance_applied: Money;
1907
- /** What would remain to pay online. Paying without a gateway is refused with `BILLING_INSUFFICIENT_FUNDS` while this is above zero. */
1908
- gateway_amount: Money;
1909
- /** The available balance after paying. */
1910
- balance_after: Money;
1911
- /** Paying together only: each invoice, in payment order. */
1912
- invoices?: PaymentPreviewInvoice[];
1913
- }
1914
- /**
1915
- * Present on refunds: where this part goes. `balance`: the account balance. `credit`: the credit grant that paid, keeping its original expiry. `gateway`: the payment method it was paid with.
1916
- */
1917
- export type TransactionRefundDestination = (typeof TransactionRefundDestination)[keyof typeof TransactionRefundDestination];
1918
- export declare const TransactionRefundDestination: {
1919
- readonly balance: "balance";
1920
- readonly credit: "credit";
1921
- readonly gateway: "gateway";
1922
- };
1923
- /**
1924
- * `failed`: the operation did not succeed; for a gateway payment, the gateway declined it. `canceled`: a gateway payment was withdrawn without collecting money. Either way, the invoice it was for stays open.
1925
- */
1926
- export type TransactionStatus = (typeof TransactionStatus)[keyof typeof TransactionStatus];
1927
- export declare const TransactionStatus: {
1928
- readonly pending: "pending";
1929
- readonly succeeded: "succeeded";
1930
- readonly failed: "failed";
1931
- readonly canceled: "canceled";
1932
- };
1933
- /**
1934
- * topup adds to the balance; payment settles an invoice; refund returns original funds; adjustment changes the balance with an audit reason.
1935
- */
1936
- export type TransactionType = (typeof TransactionType)[keyof typeof TransactionType];
1937
- export declare const TransactionType: {
1938
- readonly topup: "topup";
1939
- readonly payment: "payment";
1940
- readonly refund: "refund";
1941
- readonly adjustment: "adjustment";
1942
- readonly fee: "fee";
1943
- };
1944
- /**
1945
- * A funds movement with one source. Refunds name the original transaction. Unknown gateway results stay pending.
1946
- */
1947
- export interface Transaction {
1948
- invoice_id?: string;
1949
- transaction_id?: string;
1950
- /** The credit grant that paid, or for a refund, the credit grant restored. */
1951
- credit_grant_id?: string;
1952
- credit_grant?: ObjectIdentity;
1953
- refund_id?: string;
1954
- /** Present on refunds: where this part goes. `balance`: the account balance. `credit`: the credit grant that paid, keeping its original expiry. `gateway`: the payment method it was paid with. */
1955
- refund_destination?: TransactionRefundDestination;
1956
- /** `failed`: the operation did not succeed; for a gateway payment, the gateway declined it. `canceled`: a gateway payment was withdrawn without collecting money. Either way, the invoice it was for stays open. */
1957
- status?: TransactionStatus;
1958
- cancellation_reason?: PaymentCancellationReason;
1959
- payment_gateway?: string;
1960
- method_type?: string;
1961
- /** Why it failed; present with `failed`. For a declined gateway payment, the gateway's code unchanged: the issuer's decline code when there is one (Stripe decline_code, such as insufficient_funds), otherwise the gateway's error code (Stripe code, such as card_declined). Treat an unknown value as a generic decline. */
1962
- failure_reason?: string;
1963
- settled_at?: string;
1964
- id: string;
1965
- billing_account_id?: number;
1966
- type: TransactionType;
1967
- /** Signed by type: positive for `topup` and `payment`, negative for `refund`. An `adjustment` is positive when it adds to the balance and negative when it takes from it. For other types the sign does not show the effect on the balance: a payment from balance lowers it, a payment by gateway or credit does not. */
1968
- amount: Money;
1969
- /** How much of this transaction is still in the balance. Only top-ups, positive adjustments and gateway payments returned to the balance can be non-zero. */
1970
- remaining_amount: Money;
1971
- currency: string;
1972
- reason?: string;
1973
- created_at: string;
1974
- }
1975
- export interface PaymentResult {
1976
- transactions: Transaction[];
1977
- /** The gateway transaction, when one is involved. */
1978
- transaction_id?: string;
1979
- status: PaymentStatus;
1980
- amount_paid: Money;
1981
- /** What is still outstanding: zero once the payment succeeds, unchanged while `processing`. */
1982
- amount_due: Money;
1983
- currency: string;
1984
- credit_applied?: Money;
1985
- gateway_amount?: Money;
1986
- payment_gateway?: string;
1987
- method_type?: string;
1988
- /** The amount already paid from balance toward this invoice; retrying the online remainder does not debit it again. */
1989
- balance_applied?: Money;
1990
- action?: PaymentAction;
1991
- /** Whether paying again can succeed. False for a refusal that will repeat, such as a closed account or an amount over a limit. */
1992
- retriable?: boolean;
1993
- /** @nullable */
1994
- invoice_id?: string | null;
1995
- /** @nullable */
1996
- order_id?: string | null;
1997
- /** Why the payment failed; present with `failed`. For a declined gateway payment, the gateway's code unchanged: the issuer's decline code when there is one (Stripe decline_code, such as insufficient_funds), otherwise the gateway's error code (Stripe code, such as card_declined). Treat an unknown value as a generic decline. */
1998
- failure_reason?: string;
1999
- }
2000
- /**
2001
- * How tax applied to the customer when the invoice was issued; `reverse` means no tax was charged under the reverse-charge mechanism.
2002
- */
2003
- export type InvoiceCustomerTaxExempt = (typeof InvoiceCustomerTaxExempt)[keyof typeof InvoiceCustomerTaxExempt];
2004
- export declare const InvoiceCustomerTaxExempt: {
2005
- readonly none: "none";
2006
- readonly exempt: "exempt";
2007
- readonly reverse: "reverse";
2008
- };
2009
- /**
2010
- * Tax name, rate and amounts frozen on the invoice.
2011
- */
2012
- export interface TaxItem {
2013
- id: string;
2014
- invoice_id: string;
2015
- name: string;
2016
- percentage: string;
2017
- country: string;
2018
- state?: string;
2019
- taxable_amount: string;
2020
- tax_amount: string;
2021
- currency: string;
2022
- }
2023
- export interface Invoice {
2024
- /** Collection has stopped; accepted return obligations are completed. */
2025
- void_requested_at?: string;
2026
- due_at?: string;
2027
- amount_refunded?: string;
2028
- tax_items: TaxItem[];
2029
- id: string;
2030
- billing_account_id: number;
2031
- /** Numbered per account and per month. */
2032
- number: string;
2033
- currency: string;
2034
- status: InvoiceStatus;
2035
- /**
2036
- * Sum of the line amounts before discounts. Where prices include tax, the tax contained in
2037
- * each line's discounted amount is taken out here, so that total = subtotal -
2038
- * discount_amount + tax_amount always holds.
2039
- */
2040
- subtotal?: Money;
2041
- /** Sum of the line discounts, taken off before tax. */
2042
- discount_amount?: Money;
2043
- tax_amount?: Money;
2044
- /** Successful credit-grant payments, included in amount_paid; they do not reduce the receivable or tax base. */
2045
- credit_applied?: Money;
2046
- /** Subtotal less discount plus tax. Balance and credit grants pay it plus rounding_amount; they do not reduce it. */
2047
- total: Money;
2048
- /** Added to total to round the amount payable to the currency's minor unit; negative when rounded down. The rounding of a usage invoice carries over to the next invoice of the same billing period. */
2049
- rounding_amount: Money;
2050
- amount_paid?: Money;
2051
- /** Issued credit notes that reduced unpaid receivables; the original invoice total is unchanged. */
2052
- pre_payment_credit_notes_amount: Money;
2053
- /** Issued credit notes against payments already received; their refunds may not have completed. */
2054
- post_payment_credit_notes_amount: Money;
2055
- /** What is still collectible from total plus rounding_amount after unpaid credit notes and successful payments; never below zero. Zero for a draft, whose total is the base price, and for a paid or void invoice. */
2056
- amount_due: Money;
2057
- /** @nullable */
2058
- period_start?: string | null;
2059
- /**
2060
- * Exclusive.
2061
- * @nullable
2062
- */
2063
- period_end?: string | null;
2064
- /** The billing details recorded when the invoice was issued. */
2065
- customer_name?: string;
2066
- customer_email?: string;
2067
- customer_tax_id?: string;
2068
- /** How tax applied to the customer when the invoice was issued; `reverse` means no tax was charged under the reverse-charge mechanism. */
2069
- customer_tax_exempt?: InvoiceCustomerTaxExempt;
2070
- customer_address_line1?: string;
2071
- customer_address_line2?: string;
2072
- customer_address_city?: string;
2073
- customer_address_state?: string;
2074
- customer_address_postal_code?: string;
2075
- customer_address_country?: string;
2076
- /** @nullable */
2077
- paid_at?: string | null;
2078
- }
2079
- export interface InvoiceList {
2080
- items: Invoice[];
2081
- pagination: OffsetPagination;
2082
- }
2083
- /**
2084
- * For a usage line, the values of its meter's presentation dimensions, such as the model and token kind. Empty for other lines.
2085
- */
2086
- export type InvoiceItemDimensions = {
2087
- [key: string]: string;
2088
- };
2089
- /**
2090
- * The value of one paid period moved to the new configuration of a subscription.
2091
- */
2092
- export interface InvoiceItemProration {
2093
- /** The earlier invoice line that paid for the period. */
2094
- credited_invoice_item_id: string;
2095
- /** The earlier invoice line's wording as recorded. */
2096
- description: string;
2097
- period_start: string;
2098
- /** Exclusive. */
2099
- period_end: string;
2100
- /** Before tax and discounts, the new configuration for the period. */
2101
- remaining_amount: Money;
2102
- /** Before tax, the unused value of the earlier line for the period, credited against `remaining_amount`. */
2103
- credited_amount: Money;
2104
- }
2105
- export interface InvoiceItem {
2106
- taxable?: boolean;
2107
- /** Discount applied to this line before tax. */
2108
- discount_amount?: string;
2109
- /**
2110
- * The account discount applied to this line.
2111
- * @nullable
2112
- */
2113
- discount_id?: string | null;
2114
- /**
2115
- * The coupon applied to this line.
2116
- * @nullable
2117
- */
2118
- coupon_id?: string | null;
2119
- /** Tax on the discounted line, including tax already included in the price. */
2120
- tax_amount?: string;
2121
- /** The part of tax_amount already included in amount. */
2122
- tax_included_amount?: string;
2123
- id: string;
2124
- /** @nullable */
2125
- project_id?: string | null;
2126
- /** The project the charge was for and its current name. Absent when the line has no project or the project cannot be read; `project_id` still identifies it. */
2127
- project?: NamedIdentity | null;
2128
- resource_id?: string;
2129
- /** The line's wording as recorded when the invoice was issued. */
2130
- description: string;
2131
- unit?: string;
2132
- quantity?: string;
2133
- /** The part covered by an included allowance, and therefore not charged. */
2134
- deducted_quantity?: string;
2135
- unit_amount?: Money;
2136
- /** The quantity `unit_amount` prices, such as 1000000 tokens or 3600 seconds: `amount` is `quantity` × `unit_amount` ÷ `unit_quantity`. Present together with `unit_amount`. */
2137
- unit_quantity?: string;
2138
- amount: Money;
2139
- /** This line's share of the invoice's rounding_amount. The line's net amount is amount - discount_amount + tax_amount - tax_included_amount + rounding_amount. */
2140
- rounding_amount: Money;
2141
- /** Usage charges billed on this line; zero for other lines. */
2142
- usage_charge_count: number;
2143
- currency: string;
2144
- /** @nullable */
2145
- period_start?: string | null;
2146
- /** @nullable */
2147
- period_end?: string | null;
2148
- /** For a usage line, the values of its meter's presentation dimensions, such as the model and token kind. Empty for other lines. */
2149
- dimensions?: InvoiceItemDimensions;
2150
- /**
2151
- * Present on a line that changes a subscription immediately, one entry for each paid period it
2152
- * covers. `amount` is the sum of `remaining_amount` minus `credited_amount` over the entries.
2153
- */
2154
- prorations?: InvoiceItemProration[];
2155
- }
2156
- export interface InvoiceItemList {
2157
- items: InvoiceItem[];
2158
- pagination: OffsetPagination;
2159
- }
2160
- export interface TransactionList {
2161
- items: Transaction[];
2162
- pagination: OffsetPagination;
2163
- }
2164
- export type CreditGrantStatus = (typeof CreditGrantStatus)[keyof typeof CreditGrantStatus];
2165
- export declare const CreditGrantStatus: {
2166
- readonly active: "active";
2167
- readonly depleted: "depleted";
2168
- readonly expired: "expired";
2169
- readonly voided: "voided";
2170
- };
2171
- export interface CreditGrant {
2172
- min_amount?: string;
2173
- id: string;
2174
- billing_account_id?: number;
2175
- name: string;
2176
- amount: Money;
2177
- remaining_amount: Money;
2178
- currency: string;
2179
- /** What this credit may pay for. No restrictions means anything on the account. */
2180
- applies_to: Applicability;
2181
- /** Restricted to your first purchase of anything it applies to. */
2182
- first_purchase_only?: boolean;
2183
- status: CreditGrantStatus;
2184
- valid_from: string;
2185
- /** @nullable */
2186
- valid_until?: string | null;
2187
- }
2188
- export interface CreditGrantList {
2189
- items: CreditGrant[];
2190
- pagination: OffsetPagination;
2191
- }
2192
- export type CreditNoteStatus = (typeof CreditNoteStatus)[keyof typeof CreditNoteStatus];
2193
- export declare const CreditNoteStatus: {
2194
- readonly issued: "issued";
2195
- readonly void: "void";
2196
- };
2197
- /**
2198
- * Why the note was issued. Notes for canceled, expired or failed orders carry the order's reason; `usage_true_up` returns a tier price reduction settled after the original invoice; `operator` was issued on request.
2199
- */
2200
- export type CreditNoteReason = (typeof CreditNoteReason)[keyof typeof CreditNoteReason];
2201
- export declare const CreditNoteReason: {
2202
- readonly provisioning_failed: "provisioning_failed";
2203
- readonly order_expired: "order_expired";
2204
- readonly order_canceled: "order_canceled";
2205
- readonly change_canceled: "change_canceled";
2206
- readonly change_expired: "change_expired";
2207
- readonly subscription_canceled: "subscription_canceled";
2208
- readonly usage_true_up: "usage_true_up";
2209
- readonly operator: "operator";
2210
- };
2211
- /**
2212
- * A reduction of an issued invoice; the original invoice amounts do not change. The credited amount is pre_payment_amount plus post_payment_amount. A paid part creates a refund, identified by refund_id, whose outcome may still be pending.
2213
- */
2214
- export interface CreditNote {
2215
- id: string;
2216
- invoice_id: string;
2217
- currency: string;
2218
- issued_at: string;
2219
- status: CreditNoteStatus;
2220
- /**
2221
- * When this note was voided; null while issued.
2222
- * @nullable
2223
- */
2224
- voided_at: string | null;
2225
- /** The reduction of unpaid receivables. A void note no longer reduces what is due. */
2226
- pre_payment_amount: Money;
2227
- /** The credited part of payments already received; its refund may not have completed. */
2228
- post_payment_amount: Money;
2229
- /**
2230
- * The refund to the original payment sources; null when no paid amount was credited.
2231
- * @nullable
2232
- */
2233
- refund_id: string | null;
2234
- /** Why the note was issued. Notes for canceled, expired or failed orders carry the order's reason; `usage_true_up` returns a tier price reduction settled after the original invoice; `operator` was issued on request. */
2235
- reason: CreditNoteReason;
2236
- }
2237
- export interface CreditNoteItem {
2238
- id: string;
2239
- credit_note_id: string;
2240
- invoice_item_id: string;
2241
- pre_payment_amount: Money;
2242
- post_payment_amount: Money;
2243
- }
2244
- export interface CreditNoteList {
2245
- items: CreditNote[];
2246
- pagination: OffsetPagination;
2247
- }
2248
- export interface CreditNoteItemList {
2249
- items: CreditNoteItem[];
2250
- pagination: OffsetPagination;
2251
- }
2252
- /**
2253
- * Use balance_amount, credit_amount and gateway_amount, which also show a refund split between destinations.
2254
- * @deprecated
2255
- */
2256
- export type RefundDestination = (typeof RefundDestination)[keyof typeof RefundDestination];
2257
- export declare const RefundDestination: {
2258
- readonly balance: "balance";
2259
- readonly gateway: "gateway";
2260
- };
2261
- /**
2262
- * Summary of the parts in `transactions`.
2263
- *
2264
- * - `pending`: nothing has been returned yet, and at least one part is in progress.
2265
- * - `processing`: some parts have been returned, and at least one is still in progress.
2266
- * - `succeeded`: every part has been returned.
2267
- * - `failed`: no part is in progress and at least one has failed. What was returned is in
2268
- * settled_amount.
2269
- *
2270
- * Returns to the balance and to credit grants complete shortly after the refund is made; a
2271
- * return to a payment method completes when the gateway confirms it.
2272
- */
2273
- export type RefundStatus = (typeof RefundStatus)[keyof typeof RefundStatus];
2274
- export declare const RefundStatus: {
2275
- readonly pending: "pending";
2276
- readonly processing: "processing";
2277
- readonly succeeded: "succeeded";
2278
- readonly failed: "failed";
2279
- };
2280
- /**
2281
- * Why the refund was made. New codes may be added; treat an unknown code as unspecified.
2282
- *
2283
- * - `provisioning_failed`: the purchase could not be delivered.
2284
- * - `order_expired`: the order expired after part of it was paid.
2285
- * - `order_canceled`: the order was canceled after part of it was paid.
2286
- * - `change_canceled`: a scheduled change was withdrawn after part of it was paid.
2287
- * - `change_expired`: a scheduled change could not take effect in time.
2288
- * - `subscription_canceled`: the unused value of a canceled subscription, under its refund terms.
2289
- * - `future_period_canceled`: a renewal that had not started was withdrawn.
2290
- * - `downgrade_difference`: after a downgrade, the remaining paid value, valued under each paid period's refund
2291
- * policy and as `prorated` where that policy is `none`, minus the new configuration's value for the remaining
2292
- * time: each whole month at the change item's `monthly_list_amount` and the remainder in proportion to the
2293
- * length of the month it falls in, or without `monthly_list_amount`, the new period price in proportion to the
2294
- * remaining time.
2295
- * - `usage_true_up`: usage priced over the whole month cost less than was charged.
2296
- * - `payment_not_applied`: a payment arrived after its invoice could no longer be paid.
2297
- * - `operator`: made by the platform operator.
2298
- */
2299
- export type RefundReason = (typeof RefundReason)[keyof typeof RefundReason];
2300
- export declare const RefundReason: {
2301
- readonly provisioning_failed: "provisioning_failed";
2302
- readonly order_expired: "order_expired";
2303
- readonly order_canceled: "order_canceled";
2304
- readonly change_canceled: "change_canceled";
2305
- readonly change_expired: "change_expired";
2306
- readonly subscription_canceled: "subscription_canceled";
2307
- readonly future_period_canceled: "future_period_canceled";
2308
- readonly downgrade_difference: "downgrade_difference";
2309
- readonly usage_true_up: "usage_true_up";
2310
- readonly payment_not_applied: "payment_not_applied";
2311
- readonly operator: "operator";
2312
- };
2313
- export interface Refund {
2314
- transaction_id?: string;
2315
- cancellation_item_id?: string;
2316
- /** The refund split by original payment source, with each result. Unknown gateway results stay pending. */
2317
- transactions: Transaction[];
2318
- id: string;
2319
- billing_account_id?: number;
2320
- /** @nullable */
2321
- invoice_id?: string | null;
2322
- /**
2323
- * The order the refund belongs to: the order that caused it, such as a downgrade, otherwise the order of the refunded invoice. Null for refunds of top-ups and usage invoices.
2324
- * @nullable
2325
- */
2326
- order_id?: string | null;
2327
- /** The whole refund. Equals balance_amount plus credit_amount plus gateway_amount. */
2328
- amount: Money;
2329
- /** The part returned to the account balance. */
2330
- balance_amount: Money;
2331
- /** The part restored to the credit grants that paid for it. */
2332
- credit_amount: Money;
2333
- /** The part returned to the payment method it was paid with. */
2334
- gateway_amount: Money;
2335
- /** What has actually been returned. */
2336
- settled_amount?: Money;
2337
- currency: string;
2338
- /**
2339
- * Use balance_amount, credit_amount and gateway_amount, which also show a refund split between destinations.
2340
- * @deprecated
2341
- */
2342
- destination?: RefundDestination;
2343
- /**
2344
- * Summary of the parts in `transactions`.
2345
- *
2346
- * - `pending`: nothing has been returned yet, and at least one part is in progress.
2347
- * - `processing`: some parts have been returned, and at least one is still in progress.
2348
- * - `succeeded`: every part has been returned.
2349
- * - `failed`: no part is in progress and at least one has failed. What was returned is in
2350
- * settled_amount.
2351
- *
2352
- * Returns to the balance and to credit grants complete shortly after the refund is made; a
2353
- * return to a payment method completes when the gateway confirms it.
2354
- */
2355
- status: RefundStatus;
2356
- /** When the last part was returned. Present with `succeeded`. */
2357
- settled_at?: string;
2358
- reason: RefundReason;
2359
- created_at: string;
2360
- }
2361
- export interface RefundList {
2362
- items: Refund[];
2363
- pagination: OffsetPagination;
2364
- }
2365
- /**
2366
- * The dimension values the rate was matched by, such as region and machine type.
2367
- */
2368
- export type UsageChargeDimensions = {
2369
- [key: string]: string;
2370
- };
2371
- export interface UsageCharge {
2372
- subscription_id: string;
2373
- id: string;
2374
- project_id?: string;
2375
- /** The project and its current name. Absent when the project cannot be read; `project_id` still identifies it. */
2376
- project?: NamedIdentity | null;
2377
- product: Product;
2378
- /** Which resource this was charged for. Empty for charges not tied to one. */
2379
- resource_id?: string;
2380
- meter: ObjectIdentity;
2381
- unit?: string;
2382
- /** The dimension values the rate was matched by, such as region and machine type. */
2383
- dimensions?: UsageChargeDimensions;
2384
- window_start: string;
2385
- /** Exclusive. */
2386
- window_end: string;
2387
- /** Quantity used before allowances. */
2388
- gross_quantity?: string;
2389
- /** How much of that was covered by an allowance. */
2390
- deducted_quantity?: string;
2391
- /** The quantity charged: gross quantity less the part covered by allowances. */
2392
- quantity: string;
2393
- unit_amount?: Money;
2394
- /** The quantity `unit_amount` prices, such as 1000000 tokens or 3600 seconds: `amount` is `quantity` × `unit_amount` ÷ `unit_quantity`. */
2395
- unit_quantity?: string;
2396
- amount: Money;
2397
- currency: string;
2398
- /**
2399
- * Present after the statement is closed and its invoice is issued.
2400
- * @nullable
2401
- */
2402
- invoice_id?: string | null;
2403
- /**
2404
- * Present after the statement is closed and its invoice is issued.
2405
- * @nullable
2406
- */
2407
- invoice_item_id?: string | null;
2408
- /** The statement this charge was collected into. */
2409
- statement_id?: string;
2410
- }
2411
- export interface UsageChargeList {
2412
- items: UsageCharge[];
2413
- pagination: OffsetPagination;
2414
- }
2415
- export type SubscriptionInterval = (typeof SubscriptionInterval)[keyof typeof SubscriptionInterval];
2416
- export declare const SubscriptionInterval: {
2417
- readonly none: "none";
2418
- readonly day: "day";
2419
- readonly month: "month";
2420
- readonly year: "year";
2421
- };
2422
- /**
2423
- * An operation prevented on the subscription. `billing.subscriptions.use` stops the service. `renew` prevents renewal and paying a renewal order. `modify` prevents placing a change order. `cancel` prevents cancellation. `terminate` prevents immediate termination.
2424
- */
2425
- export type SubscriptionRestriction = (typeof SubscriptionRestriction)[keyof typeof SubscriptionRestriction];
2426
- export declare const SubscriptionRestriction: {
2427
- readonly billingsubscriptionsuse: "billing.subscriptions.use";
2428
- readonly billingsubscriptionsrenew: "billing.subscriptions.renew";
2429
- readonly billingsubscriptionsmodify: "billing.subscriptions.modify";
2430
- readonly billingsubscriptionscancel: "billing.subscriptions.cancel";
2431
- readonly billingsubscriptionsterminate: "billing.subscriptions.terminate";
2432
- };
2433
- /**
2434
- * Follows the items. `pending`: not yet accepted, paid or unpaid; its invoice shows whether payment is needed, and it can expire or be canceled. `accepted`: items are being set up. `completed`: every item was set up. `partially_completed`: some items were set up and the others failed or were canceled and refunded to their original payment sources. `failed`: no item was delivered and at least one failed; amounts collected for undelivered items are refunded. `canceled`: every item was withdrawn without delivery; collected amounts are returned to their original payment sources. No status by itself means the service was delivered.
2435
- */
2436
- export type OrderStatus = (typeof OrderStatus)[keyof typeof OrderStatus];
2437
- export declare const OrderStatus: {
2438
- readonly pending: "pending";
2439
- readonly accepted: "accepted";
2440
- readonly completed: "completed";
2441
- readonly partially_completed: "partially_completed";
2442
- readonly failed: "failed";
2443
- readonly canceled: "canceled";
2444
- };
2445
- export type ScheduledChangeInterval = (typeof ScheduledChangeInterval)[keyof typeof ScheduledChangeInterval];
2446
- export declare const ScheduledChangeInterval: {
2447
- readonly day: "day";
2448
- readonly month: "month";
2449
- readonly year: "year";
2450
- };
2451
- /**
2452
- * The next accepted period-end change of the subscription: the target terms, applied at effective_at.
2453
- */
2454
- export interface ScheduledChange {
2455
- order_id: string;
2456
- status: OrderStatus;
2457
- /** When the target terms take effect, normally the end of the current paid period. */
2458
- effective_at: string;
2459
- plan_id: string;
2460
- plan_name: string;
2461
- price_id: string;
2462
- quantity: string;
2463
- /** The target licensed renewal amount before tax. */
2464
- recurring_amount: string;
2465
- currency: string;
2466
- interval: ScheduledChangeInterval;
2467
- /** @minimum 1 */
2468
- interval_count: number;
2469
- }
2470
- /**
2471
- * `pending`: the order has not been accepted. `provisioning`: the owning service accepted the order and is delivering. `active`: delivery was confirmed; payment alone does not make a subscription active. `suspended`: service is stopped while a lien restricts its use. `canceled`: cancellation completed, or an undelivered purchase was canceled or failed. `terminated`: an operator or the owning service ended it immediately.
2472
- */
2473
- export type SubscriptionStatus = (typeof SubscriptionStatus)[keyof typeof SubscriptionStatus];
2474
- export declare const SubscriptionStatus: {
2475
- readonly pending: "pending";
2476
- readonly provisioning: "provisioning";
2477
- readonly active: "active";
2478
- readonly suspended: "suspended";
2479
- readonly canceled: "canceled";
2480
- readonly terminated: "terminated";
2481
- };
2482
- /**
2483
- * The dimension values of what was bought, such as region and instance type. Empty when the purchase gave none.
2484
- */
2485
- export type SubscriptionDimensions = {
2486
- [key: string]: string;
2487
- };
2488
- /**
2489
- * A purchase that is billed, renewed and changed on its own, separate from the owning service's resource. A new
2490
- * recurring purchase creates a pending subscription for each order line; its ID is returned on the order item
2491
- * and stays the same through checkout, delivery, renewals and changes. A one-time purchase may create none.
2492
- *
2493
- * Pending and provisioning subscriptions grant no service. A subscription becomes provisioning when the owning
2494
- * service accepts the order, and active when the service confirms delivery, which sets started_at; payment
2495
- * changes neither. Licensed service periods start at delivery, and metered usage is charged as the service
2496
- * reports it. Canceling or failing an undelivered purchase cancels its subscriptions without starting a period.
2497
- * Renewals use recurring_amount and the agreed interval; paid periods keep their value.
2498
- *
2499
- * A shared capacity limit, such as a regional snapshot quota, has one subscription for the purchased quantity
2500
- * rather than one per item.
2501
- */
2502
- export interface Subscription {
2503
- /** Whether new account discounts may apply to future renewals. A fixed operator renewal agreement disables automatic discounts; catalog repricing or a newly selected purchase agreement enables them. */
2504
- renewal_discounts_enabled?: boolean;
2505
- currency: string;
2506
- type: PriceType;
2507
- usage_type: UsageType;
2508
- /** The dimension values of what was bought, such as region and instance type. Empty when the purchase gave none. */
2509
- dimensions: SubscriptionDimensions;
2510
- interval: SubscriptionInterval;
2511
- /** @minimum 1 */
2512
- interval_count?: number;
2513
- /** 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. */
2514
- recurring_amount?: string;
2515
- cancellation_policy?: CancellationPolicy;
2516
- refund_policy?: RefundPolicy;
2517
- /** Refund policy `short_rate` only, as on the price bought. */
2518
- short_rate_multiplier?: string;
2519
- /** Refund policy `short_rate` only, as on the price bought. */
2520
- short_rate_threshold_seconds?: number;
2521
- /** Licensed recurring only, the `monthly_list_amount` that a renewal at the agreed amount keeps; see the order item. */
2522
- monthly_list_amount?: string;
2523
- order_item_id?: string;
2524
- coupon_id?: string;
2525
- coupon?: ObjectIdentity;
2526
- /** @minimum 0 */
2527
- discounted_renewals_remaining?: number;
2528
- /** The operations currently prevented on the subscription, sorted; it is suspended while this contains `billing.subscriptions.use`. */
2529
- restrictions?: SubscriptionRestriction[];
2530
- billing_cycle_anchor?: string;
2531
- cancellation?: SubscriptionCancellation;
2532
- /** The accepted period-end change scheduled for this subscription; null when there is none. */
2533
- scheduled_change?: ScheduledChange | null;
2534
- /**
2535
- * The saved payment method automatic renewal charges after balance and credits, before the account's default payment method. Set when a purchase, renewal or change is paid with a saved payment method. Used only while it belongs to the account paying the renewal.
2536
- * @nullable
2537
- */
2538
- default_payment_method_id?: string | null;
2539
- created_at?: string;
2540
- id: string;
2541
- /** The billing account that made the purchase. Renewals of a project subscription are charged to the project's current billing account. */
2542
- billing_account_id: number;
2543
- account: AccountIdentity;
2544
- product_id: ProductID;
2545
- /**
2546
- * The project it is for. Absent for an account-level purchase, such as a membership.
2547
- * @nullable
2548
- */
2549
- project_id?: string | null;
2550
- /** The project and its current name. Absent for an account-level purchase or when the project cannot be read; `project_id` still identifies it. */
2551
- project?: NamedIdentity | null;
2552
- product: Product;
2553
- plan_id: string;
2554
- plan_name: string;
2555
- price_id: string;
2556
- quantity: string;
2557
- /**
2558
- * When a licensed subscription renews or expires: the end of the last period bought, moved by renewing in advance. Null until the subscription becomes active, even when its purchase has been paid, and for metered subscriptions.
2559
- * @nullable
2560
- */
2561
- current_term_end?: string | null;
2562
- /**
2563
- * Start of the service period in effect now. Null when none is, including for metered subscriptions.
2564
- * @nullable
2565
- */
2566
- current_period_start?: string | null;
2567
- /**
2568
- * End of the service period in effect now; renewing in advance moves `current_term_end`, not this. Null when no period is in effect, including for metered subscriptions.
2569
- * @nullable
2570
- */
2571
- current_period_end?: string | null;
2572
- /** Whether a licensed subscription renews automatically. A metered subscription continues until it is canceled; for it this is true until a cancellation is requested, and cannot be set. */
2573
- auto_renew: boolean;
2574
- /** `pending`: the order has not been accepted. `provisioning`: the owning service accepted the order and is delivering. `active`: delivery was confirmed; payment alone does not make a subscription active. `suspended`: service is stopped while a lien restricts its use. `canceled`: cancellation completed, or an undelivered purchase was canceled or failed. `terminated`: an operator or the owning service ended it immediately. */
2575
- status: SubscriptionStatus;
2576
- /**
2577
- * When service started. Null until a new subscription becomes active, also after payment.
2578
- * @nullable
2579
- */
2580
- started_at?: string | null;
2581
- /** @nullable */
2582
- ended_at?: string | null;
2583
- }
2584
- export interface SubscriptionList {
2585
- items: Subscription[];
2586
- pagination: OffsetPagination;
2587
- }
2588
- export type RenewalPriceInterval = (typeof RenewalPriceInterval)[keyof typeof RenewalPriceInterval];
2589
- export declare const RenewalPriceInterval: {
2590
- readonly day: "day";
2591
- readonly month: "month";
2592
- readonly year: "year";
2593
- };
2594
- export interface RenewalPrice {
2595
- cancellation_policy?: CancellationPolicy;
2596
- refund_policy?: RefundPolicy;
2597
- /** Refund policy `short_rate` only. */
2598
- short_rate_multiplier?: string;
2599
- /** Refund policy `short_rate` only. */
2600
- short_rate_threshold_seconds?: number;
2601
- price_id: string;
2602
- /** How many periods one renewal covers. */
2603
- interval_count: number;
2604
- interval: RenewalPriceInterval;
2605
- /** What renewing for this term costs, for the quantity held. */
2606
- amount?: Money;
2607
- currency?: string;
2608
- /** The term the subscription renews at now; renewing for it keeps the agreed price. */
2609
- current: boolean;
2610
- }
2611
- export interface RenewalPriceList {
2612
- items: RenewalPrice[];
2613
- pagination: OffsetPagination;
2614
- }
2615
- /**
2616
- * The unit interval_count counts in.
2617
- */
2618
- export type RenewRequestInterval = (typeof RenewRequestInterval)[keyof typeof RenewRequestInterval];
2619
- export declare const RenewRequestInterval: {
2620
- readonly day: "day";
2621
- readonly month: "month";
2622
- readonly year: "year";
2623
- };
2624
- export interface RenewRequest {
2625
- /** The order ID, chosen by the caller. Creating it again conflicts; read the order after an unknown outcome. */
2626
- order_id: string;
2627
- /**
2628
- * How many further periods to buy, each at the price the subscription already renews at. To buy a longer term at its own price, give `interval` and `interval_count` instead.
2629
- * @minimum 1
2630
- */
2631
- periods?: number;
2632
- /**
2633
- * Renew for a term of this length instead, at the price currently sold for it. Give
2634
- * `interval` with it.
2635
- *
2636
- * Leaving both out renews at the price this item already bills at, which a later price
2637
- * change does not affect. Naming a term that differs from the current one is a fresh
2638
- * choice, so it is bought at today's price. Naming the current term changes nothing. A
2639
- * term sold at several prices that differ in cancellation policy is refused with 409
2640
- * `BILLING_RENEWAL_OPTION_AMBIGUOUS` unless `cancellation_policy` is given.
2641
- *
2642
- * List the terms on offer with the renewal prices operation.
2643
- * @minimum 1
2644
- */
2645
- interval_count?: number;
2646
- /** The unit interval_count counts in. */
2647
- interval?: RenewRequestInterval;
2648
- /** With `interval` and `interval_count`, chooses among prices of that term that differ in cancellation policy. */
2649
- cancellation_policy?: CancellationPolicy;
2650
- payment_method_id?: string;
2651
- /** Whether to pay from the balance, with or without `payment_method_id`. */
2652
- use_balance?: boolean;
2653
- /** Whether to pay from eligible credit grants before the balance. */
2654
- use_credits?: boolean;
2655
- return_url?: string;
2656
- }
2657
- /**
2658
- * As in renewing.
2659
- */
2660
- export type RenewalOrderRequestInterval = (typeof RenewalOrderRequestInterval)[keyof typeof RenewalOrderRequestInterval];
2661
- export declare const RenewalOrderRequestInterval: {
2662
- readonly day: "day";
2663
- readonly month: "month";
2664
- readonly year: "year";
2665
- };
2666
- /**
2667
- * The renewal's periods and price, chosen as in renewing.
2668
- */
2669
- export interface RenewalOrderRequest {
2670
- /** The order ID, chosen by the caller. Creating it again conflicts; read the order after an unknown outcome. */
2671
- order_id: string;
2672
- /**
2673
- * As in renewing.
2674
- * @minimum 1
2675
- */
2676
- periods?: number;
2677
- /**
2678
- * As in renewing.
2679
- * @minimum 1
2680
- */
2681
- interval_count?: number;
2682
- /** As in renewing. */
2683
- interval?: RenewalOrderRequestInterval;
2684
- /** As in renewing. */
2685
- cancellation_policy?: CancellationPolicy;
2686
- }
2687
- export interface AutoRenewSet {
2688
- auto_renew: boolean;
2689
- }
2690
- /**
2691
- * `pending`: waiting to be set up. `completed`: set up, as confirmed by the service. `failed`: not set up; its amount was refunded to the original payment sources. `canceled`: withdrawn without delivery; any collected amount is returned. A completed item ends when its subscription is canceled.
2692
- */
2693
- export type OrderItemStatus = (typeof OrderItemStatus)[keyof typeof OrderItemStatus];
2694
- export declare const OrderItemStatus: {
2695
- readonly pending: "pending";
2696
- readonly completed: "completed";
2697
- readonly failed: "failed";
2698
- readonly canceled: "canceled";
2699
- };
2700
- /**
2701
- * `new` buys, `renew` extends a licensed subscription, `modify` changes a subscription's configuration or billing terms.
2702
- */
2703
- export type OrderType = (typeof OrderType)[keyof typeof OrderType];
2704
- export declare const OrderType: {
2705
- readonly new: "new";
2706
- readonly renew: "renew";
2707
- readonly modify: "modify";
2708
- };
2709
- /**
2710
- * When a plan change takes effect; `none` for anything that is not a change. A `period_end` order stays pending until the first period at the new price is paid. That period is invoiced shortly before the current paid period ends and starts when it ends; if the invoice is unpaid by then, the order is canceled and the subscription renews or ends as usual. A renewal in the meantime moves the change to the end of the renewed period.
2711
- */
2712
- export type OrderChangeEffective = (typeof OrderChangeEffective)[keyof typeof OrderChangeEffective];
2713
- export declare const OrderChangeEffective: {
2714
- readonly none: "none";
2715
- readonly immediate: "immediate";
2716
- readonly period_end: "period_end";
2717
- };
2718
- /**
2719
- * How it was paid. `payment_method_id` still names the payment method after it is removed.
2720
- */
2721
- export interface PaidWith {
2722
- /**
2723
- * `balance` when the account's balance and credits covered it in full. Otherwise the method used
2724
- * with the gateway, such as `card`.
2725
- */
2726
- method_type: string;
2727
- /** The gateway that collected it. Absent when `method_type` is `balance`. */
2728
- payment_gateway?: string;
2729
- /** The saved payment method that was charged, when one was. */
2730
- payment_method_id?: string;
2731
- brand?: string;
2732
- last4?: string;
2733
- }
2734
- export type OrderItemInterval = (typeof OrderItemInterval)[keyof typeof OrderItemInterval];
2735
- export declare const OrderItemInterval: {
2736
- readonly none: "none";
2737
- readonly day: "day";
2738
- readonly month: "month";
2739
- readonly year: "year";
2740
- };
2741
- export type OrderItemConfiguration = {
2742
- [key: string]: unknown;
2743
- };
2744
- /**
2745
- * The dimension values the line was bought with, such as region and instance type. Empty when the purchase gave none.
2746
- */
2747
- export type OrderItemDimensions = {
2748
- [key: string]: string;
2749
- };
2750
- /**
2751
- * The purchase terms frozen at placement. Monetary fields come from the order's invoice lines and are zero without an immediate charge, such as for a metered purchase. Later catalog changes do not reprice the line. A new service purchase has its pending subscription from placement.
2752
- */
2753
- export interface OrderItem {
2754
- /** Whether new account discounts may apply to future renewals. A fixed operator renewal agreement disables automatic discounts; catalog repricing or a newly selected purchase agreement enables them. */
2755
- renewal_discounts_enabled?: boolean;
2756
- /** Financial lines produced by this purchase item, including setup charges. */
2757
- invoice_item_ids?: string[];
2758
- /** @minimum 0 */
2759
- position?: number;
2760
- configuration?: OrderItemConfiguration;
2761
- /** The Billing subscription: the new pending subscription of a recurring purchase, or the existing one renewed or changed, which keeps its ID. Absent for a purchase without a subscription. */
2762
- subscription_id?: string;
2763
- interval: OrderItemInterval;
2764
- /** @minimum 1 */
2765
- interval_count?: number;
2766
- cancellation_policy?: CancellationPolicy;
2767
- refund_policy?: RefundPolicy;
2768
- /**
2769
- * 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.
2770
- * @nullable
2771
- */
2772
- monthly_list_amount?: string | null;
2773
- /**
2774
- * Refund policy `short_rate` only, as on the price when bought.
2775
- * @nullable
2776
- */
2777
- short_rate_multiplier?: string | null;
2778
- /**
2779
- * Refund policy `short_rate` only, as on the price when bought.
2780
- * @nullable
2781
- */
2782
- short_rate_threshold_seconds?: number | null;
2783
- recurring_amount?: string;
2784
- setup_amount?: string;
2785
- type: PriceType;
2786
- usage_type: UsageType;
2787
- /** The dimension values the line was bought with, such as region and instance type. Empty when the purchase gave none. */
2788
- dimensions: OrderItemDimensions;
2789
- /** Total tax after discounts, including any tax already included in the price. */
2790
- tax_amount?: string;
2791
- /** The part of tax_amount already included in gross_amount; it is not charged again. */
2792
- tax_included_amount?: string;
2793
- id: string;
2794
- order_id?: string;
2795
- price_id: string;
2796
- product_id?: ProductID;
2797
- product?: Product;
2798
- /** Which plan was bought. */
2799
- plan_id: string;
2800
- /** The name when bought. */
2801
- plan_name: string;
2802
- quantity: string;
2803
- /** The unit amount of the price the line is charged under. Absent for a tiered price, and for an immediate change, which is charged as `gross_amount` describes. */
2804
- unit_amount?: Money;
2805
- /**
2806
- * Before discounts and setup fees: the price applied to the quantity, `unit_amount` times `quantity` for a per-
2807
- * unit price, raised by any minimum charge. For an immediate upgrade it is the new price for the rest of the
2808
- * paid period minus the amount paid for that time; a downgrade, or a change between equal period prices, charges
2809
- * nothing.
2810
- *
2811
- * Under an inclusive tax rate it includes tax, shown in `tax_included_amount`, except for a renewal at agreed
2812
- * terms, whose amount excludes tax.
2813
- */
2814
- gross_amount?: Money;
2815
- /** The reduction on this line, from the order's coupon and, for a renewal at agreed terms, from the subscription's carried discount. With a carried discount, `gross_amount` is `unit_amount` times `quantity`, except when the renewal order also uses an account coupon or the tax rate is inclusive: then `gross_amount` is the agreed amount, which already reflects the carried discount. */
2816
- discount_amount?: Money;
2817
- /** `gross_amount` less `discount_amount`. */
2818
- amount?: Money;
2819
- currency: string;
2820
- /**
2821
- * The start of the service period this line paid for. Fixed at placement for renewals and period-end changes, and for a licensed line of a new purchase when its invoice is paid. Absent for metered and one-time lines.
2822
- * @nullable
2823
- */
2824
- period_start?: string | null;
2825
- /**
2826
- * The end of that service period, exclusive.
2827
- * @nullable
2828
- */
2829
- period_end?: string | null;
2830
- status: OrderItemStatus;
2831
- }
2832
- /**
2833
- * A recorded purchase with its invoice from placement; a zero-total invoice, such as for a metered purchase, is issued and paid at placement in either checkout mode. Until checkout_confirmed_at is set, the invoice is a draft at base prices: paying it fixes the discount and amount, issues it and collects it, and the order cannot be accepted before then. Coupon fields describe the discount fixed then and are absent before. Payment and acceptance do not mean the resources were delivered.
2834
- */
2835
- export interface Order {
2836
- coupon_id?: string;
2837
- coupon?: ObjectIdentity;
2838
- promotion_code_id?: string;
2839
- /** The promotion code applied. Absent for an account discount. */
2840
- promotion_code?: string;
2841
- /** The order's invoice, the same as invoice.id. */
2842
- invoice_id: string;
2843
- invoice: InvoiceSummary;
2844
- /** How the order was paid. Absent until it is paid. */
2845
- paid_with?: PaidWith;
2846
- account?: AccountIdentity;
2847
- change_effective_at?: string;
2848
- id: string;
2849
- /**
2850
- * The project it was bought for. Absent for an account-level purchase, such as a membership.
2851
- * @nullable
2852
- */
2853
- project_id?: string | null;
2854
- /** The project and its current name. Absent for an account-level purchase or when the project cannot be read; `project_id` still identifies it. */
2855
- project?: NamedIdentity | null;
2856
- /** The billing account the order was placed with, unchanged when the project is later linked to another account. While it is suspended or closed, the order cannot be accepted, and a period-end change's invoice is not issued and the change is called off when the current period ends; such requests fail with `BILLING_ACCOUNT_UNAVAILABLE`. */
2857
- billing_account_id?: number;
2858
- currency: string;
2859
- /** `new` buys, `renew` extends a licensed subscription, `modify` changes a subscription's configuration or billing terms. */
2860
- type: OrderType;
2861
- status: OrderStatus;
2862
- /** When a plan change takes effect; `none` for anything that is not a change. A `period_end` order stays pending until the first period at the new price is paid. That period is invoiced shortly before the current paid period ends and starts when it ends; if the invoice is unpaid by then, the order is canceled and the subscription renews or ends as usual. A renewal in the meantime moves the change to the end of the renewed period. */
2863
- change_effective?: OrderChangeEffective;
2864
- /**
2865
- * Acceptance deadline; a pending order expires after it.
2866
- * @nullable
2867
- */
2868
- expires_at?: string | null;
2869
- /**
2870
- * When the discount and amount were fixed: at placement for automatic checkout or a zero total, otherwise when the invoice was first paid. Null while a deferred order awaits payment.
2871
- * @nullable
2872
- */
2873
- checkout_confirmed_at?: string | null;
2874
- created_at: string;
2875
- /** What was bought. */
2876
- items: OrderItem[];
2877
- }
2878
- export interface OrderList {
2879
- items: Order[];
2880
- pagination: OffsetPagination;
2881
- }
2882
- /**
2883
- * `scheduled` before valid_from, `active` within the validity, `expired` after valid_until, or `voided` once withdrawn.
2884
- */
2885
- export type DiscountStatus = (typeof DiscountStatus)[keyof typeof DiscountStatus];
2886
- export declare const DiscountStatus: {
2887
- readonly scheduled: "scheduled";
2888
- readonly active: "active";
2889
- readonly expired: "expired";
2890
- readonly voided: "voided";
2891
- };
2892
- export type DiscountType = (typeof DiscountType)[keyof typeof DiscountType];
2893
- export declare const DiscountType: {
2894
- readonly percentage: "percentage";
2895
- readonly fixed_amount: "fixed_amount";
2896
- readonly price_override: "price_override";
2897
- readonly free_setup: "free_setup";
2898
- };
2899
- /**
2900
- * Whether the discount continues on renewals: `once` applies only to the purchase or renewal using the coupon, `recurring` for `frequency_duration` periods including the first, `forever` on every renewal.
2901
- */
2902
- export type DiscountFrequency = (typeof DiscountFrequency)[keyof typeof DiscountFrequency];
2903
- export declare const DiscountFrequency: {
2904
- readonly once: "once";
2905
- readonly recurring: "recurring";
2906
- readonly forever: "forever";
2907
- };
2908
- /**
2909
- * A coupon held by the account for a period, applying without a code to the purchases and metered usage it covers.
2910
- */
2911
- export interface Discount {
2912
- min_amount?: string;
2913
- billing_account_id?: number;
2914
- coupon_id: string;
2915
- promotion_code_id?: string;
2916
- /** `scheduled` before valid_from, `active` within the validity, `expired` after valid_until, or `voided` once withdrawn. */
2917
- status: DiscountStatus;
2918
- voided_at?: string;
2919
- type: DiscountType;
2920
- /** Whether the discount continues on renewals: `once` applies only to the purchase or renewal using the coupon, `recurring` for `frequency_duration` periods including the first, `forever` on every renewal. */
2921
- frequency?: DiscountFrequency;
2922
- /** @minimum 1 */
2923
- frequency_duration?: number;
2924
- id: string;
2925
- name?: string;
2926
- /** For a percentage discount, out of one hundred. */
2927
- percent_off?: string;
2928
- amount?: Money;
2929
- /** Caps a percentage discount. */
2930
- max_discount?: Money;
2931
- currency?: string;
2932
- /** What it may pay for. Absent means anything on the account, including setup fees and usage. */
2933
- applies_to: Applicability;
2934
- /** Restricted to your first purchase of anything it applies to. */
2935
- first_purchase_only?: boolean;
2936
- valid_from?: string;
2937
- /**
2938
- * Absent follows the coupon's own validity.
2939
- * @nullable
2940
- */
2941
- valid_until?: string | null;
2942
- }
2943
- export interface DiscountList {
2944
- items: Discount[];
2945
- pagination: OffsetPagination;
2946
- }
2947
- export interface OrderItemList {
2948
- items: OrderItem[];
2949
- pagination: OffsetPagination;
2950
- }
2951
- /**
2952
- * Whether the quantity was paid for or granted free; both are consumed the same way.
2953
- */
2954
- export type AllowanceCategory = (typeof AllowanceCategory)[keyof typeof AllowanceCategory];
2955
- export declare const AllowanceCategory: {
2956
- readonly paid: "paid";
2957
- readonly promotional: "promotional";
2958
- };
2959
- /**
2960
- * Exact values for a subset of the meter's dimensions. Only usage with these values is deducted;
2961
- * omitted dimensions are not restricted.
2962
- */
2963
- export type AllowanceDimensions = {
2964
- [key: string]: string;
2965
- };
2966
- export type AllowanceStatus = (typeof AllowanceStatus)[keyof typeof AllowanceStatus];
2967
- export declare const AllowanceStatus: {
2968
- readonly active: "active";
2969
- readonly depleted: "depleted";
2970
- readonly expired: "expired";
2971
- readonly voided: "voided";
2972
- };
2973
- export interface Allowance {
2974
- /** Optional issuance key, unique within this billing account. */
2975
- idempotency_key?: string;
2976
- subscription_id?: string;
2977
- id: string;
2978
- billing_account_id?: number;
2979
- product: Product;
2980
- meter: ObjectIdentity;
2981
- /** The unit it is counted in, such as `MiB`. */
2982
- unit?: string;
2983
- /** Whether the quantity was paid for or granted free; both are consumed the same way. */
2984
- category: AllowanceCategory;
2985
- /**
2986
- * Exact values for a subset of the meter's dimensions. Only usage with these values is deducted;
2987
- * omitted dimensions are not restricted.
2988
- */
2989
- dimensions: AllowanceDimensions;
2990
- name: string;
2991
- /** How much was granted. */
2992
- quantity: string;
2993
- /** How much is left. */
2994
- remaining_quantity: string;
2995
- /** Lower values are consumed first; at equal priority, earlier expiry and then earlier issuance. */
2996
- priority?: number;
2997
- status: AllowanceStatus;
2998
- valid_from: string;
2999
- /**
3000
- * When the allowance lapses; unused quantity is lost. Absent when it does not expire.
3001
- * @nullable
3002
- */
3003
- valid_until?: string | null;
3004
- }
3005
- export interface AllowanceList {
3006
- items: Allowance[];
3007
- pagination: OffsetPagination;
3008
- }
3009
- /**
3010
- * Derived from the validity period. scheduled means valid_from has not yet arrived.
3011
- */
3012
- export type FeatureGrantStatus = (typeof FeatureGrantStatus)[keyof typeof FeatureGrantStatus];
3013
- export declare const FeatureGrantStatus: {
3014
- readonly scheduled: "scheduled";
3015
- readonly active: "active";
3016
- readonly expired: "expired";
3017
- readonly voided: "voided";
3018
- };
3019
- export interface FeatureGrant {
3020
- id: string;
3021
- billing_account_id: number;
3022
- product: Product;
3023
- feature: ObjectIdentity;
3024
- name: string;
3025
- valid_from: string;
3026
- /**
3027
- * Null means the grant does not expire.
3028
- * @nullable
3029
- */
3030
- valid_until: string | null;
3031
- status: FeatureGrantStatus;
3032
- }
3033
- export interface FeatureGrantList {
3034
- items: FeatureGrant[];
3035
- pagination: OffsetPagination;
3036
- }
3037
- export interface Entitlement {
3038
- product: Product;
3039
- feature: ObjectIdentity;
3040
- name?: string;
3041
- enabled: boolean;
3042
- /**
3043
- * When the providing subscription ends. Absent for a metered subscription.
3044
- * @nullable
3045
- */
3046
- expires_at?: string | null;
3047
- }
3048
- export interface EntitlementList {
3049
- items: Entitlement[];
3050
- pagination: OffsetPagination;
3051
- }
3052
- export interface ProductList {
3053
- items: Product[];
3054
- pagination: OffsetPagination;
3055
- }
3056
- export interface PlanFeature {
3057
- feature: ObjectIdentity;
3058
- name: string;
3059
- }
3060
- export interface Plan {
3061
- /** False once archived. An archived plan cannot be bought until it is active again. */
3062
- active: boolean;
3063
- lookup_key?: string;
3064
- product: Product;
3065
- features: PlanFeature[];
3066
- id: string;
3067
- product_id: ProductID;
3068
- name: string;
3069
- description?: string;
3070
- }
3071
- export interface PlanList {
3072
- items: Plan[];
3073
- pagination: OffsetPagination;
3074
- }
3075
- /**
3076
- * How a ladder is walked: `graduated` charges each band at its own rate, `volume` charges everything at the rate of the band the total falls in. `none` when not tiered.
3077
- */
3078
- export type PriceTiersMode = (typeof PriceTiersMode)[keyof typeof PriceTiersMode];
3079
- export declare const PriceTiersMode: {
3080
- readonly none: "none";
3081
- readonly graduated: "graduated";
3082
- readonly volume: "volume";
3083
- };
3084
- export type PriceInterval = (typeof PriceInterval)[keyof typeof PriceInterval];
3085
- export declare const PriceInterval: {
3086
- readonly none: "none";
3087
- readonly day: "day";
3088
- readonly month: "month";
3089
- readonly year: "year";
3090
- };
3091
- export interface Tier {
3092
- /**
3093
- * The band's inclusive upper bound; null for the last band.
3094
- * @nullable
3095
- */
3096
- up_to?: string | null;
3097
- unit_amount: Money;
3098
- /** Charged once when this band is reached, in addition to the per-unit amount. */
3099
- flat_amount?: Money;
3100
- }
3101
- export interface Price {
3102
- rate_card?: ObjectIdentity;
3103
- lookup_key?: string;
3104
- product: Product;
3105
- plan: ObjectIdentity;
3106
- /** For a metered price with its own amounts, the meter it charges. For a licensed price, the meter its quantity is held on. Absent otherwise. */
3107
- meter_id?: string;
3108
- meter?: ObjectIdentity;
3109
- unit_quantity: string;
3110
- /** False once archived. An archived price cannot be bought until it is active again. */
3111
- active: boolean;
3112
- cancellation_policy?: CancellationPolicy;
3113
- refund_policy?: RefundPolicy;
3114
- /** 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. */
3115
- short_rate_multiplier?: string;
3116
- /** Refund policy `short_rate` only, how long after the period start `short_rate_multiplier` applies. */
3117
- short_rate_threshold_seconds?: number;
3118
- product_id?: ProductID;
3119
- id: string;
3120
- plan_id: string;
3121
- currency: string;
3122
- type: PriceType;
3123
- usage_type: UsageType;
3124
- /** Absent when the price delegates to a rate card, where the rate depends on attributes such as region or machine type. */
3125
- billing_scheme?: BillingScheme;
3126
- /** Present for `per_unit`. */
3127
- unit_amount?: Money;
3128
- /** How a ladder is walked: `graduated` charges each band at its own rate, `volume` charges everything at the rate of the band the total falls in. `none` when not tiered. */
3129
- tiers_mode?: PriceTiersMode;
3130
- /** Present for `tiered`, in ascending order. */
3131
- tiers?: Tier[];
3132
- /** Present when the price delegates to a rate card, the price list its rates are read from. */
3133
- rate_card_id?: string;
3134
- /** The smallest quantity that can be bought. Absent means no lower bound. */
3135
- min_quantity?: string;
3136
- /** The largest quantity that may be bought; absent when there is no limit. A larger quantity is refused with `BILLING_PRICE_INVALID` and `field` `max_quantity`. */
3137
- max_quantity?: string;
3138
- /** Quantities must be a multiple of this. Absent means any quantity within the bounds. */
3139
- quantity_step?: string;
3140
- /** For recurring licensed prices, how many interval units one period covers. */
3141
- interval_count?: number;
3142
- interval: PriceInterval;
3143
- setup_fee?: Money;
3144
- }
3145
- export interface PriceList {
3146
- items: Price[];
3147
- pagination: OffsetPagination;
3148
- }
3149
- /**
3150
- * The dimension values this rate applies to, such as region and machine type.
3151
- */
3152
- export type RateDimensions = {
3153
- [key: string]: string;
3154
- };
3155
- /**
3156
- * Licensed rates only, the period the amount buys; `none` for metered rates.
3157
- */
3158
- export type RateInterval = (typeof RateInterval)[keyof typeof RateInterval];
3159
- export declare const RateInterval: {
3160
- readonly none: "none";
3161
- readonly day: "day";
3162
- readonly month: "month";
3163
- readonly year: "year";
3164
- };
3165
- /**
3166
- * `graduated` charges each band at its own rate; `volume` charges everything at the rate of the band the total lands in. `none` for a `per_unit` rate.
3167
- */
3168
- export type RateTiersMode = (typeof RateTiersMode)[keyof typeof RateTiersMode];
3169
- export declare const RateTiersMode: {
3170
- readonly none: "none";
3171
- readonly graduated: "graduated";
3172
- readonly volume: "volume";
3173
- };
3174
- export interface Rate {
3175
- meter: ObjectIdentity;
3176
- /** The unit readings are reported in, such as `core-second`. */
3177
- unit?: string;
3178
- /** The dimension values this rate applies to, such as region and machine type. */
3179
- dimensions: RateDimensions;
3180
- billing_scheme: BillingScheme;
3181
- /** `metered` prices usage; `licensed` prices holding a quantity for one period. */
3182
- usage_type: UsageType;
3183
- /** Licensed rates only, the period the amount buys; `none` for metered rates. */
3184
- interval: RateInterval;
3185
- /** @nullable */
3186
- interval_count?: number | null;
3187
- /** `graduated` charges each band at its own rate; `volume` charges everything at the rate of the band the total lands in. `none` for a `per_unit` rate. */
3188
- tiers_mode: RateTiersMode;
3189
- /** Present for `per_unit`. Tiered rates carry their amounts on the tiers. */
3190
- unit_amount?: Money;
3191
- /** Present for a tiered rate, in ascending order. */
3192
- tiers?: Tier[];
3193
- /** How many measured units one amount covers; an hourly rate on a per-second meter is `"3600"`. */
3194
- unit_quantity?: string;
3195
- currency: string;
3196
- effective_from: string;
3197
- /** @nullable */
3198
- effective_to?: string | null;
3199
- }
3200
- export interface RateList {
3201
- items: Rate[];
3202
- pagination: OffsetPagination;
3203
- }
3204
- export type QuoteItemInputInterval = (typeof QuoteItemInputInterval)[keyof typeof QuoteItemInputInterval];
3205
- export declare const QuoteItemInputInterval: {
3206
- readonly none: "none";
3207
- readonly day: "day";
3208
- readonly month: "month";
3209
- readonly year: "year";
3210
- };
3211
- /**
3212
- * The dimension values the rate depends on, such as region, instance type or token kind: those of the usage for a metered estimate, and those of what is bought for a licensed price on a rate card. Required whenever the price uses a rate card; prices with their own amounts ignore them. Every key the meter declares must be given. A combination no rate covers is refused rather than priced at zero.
3213
- */
3214
- export type QuoteItemInputDimensions = {
3215
- [key: string]: string;
3216
- };
3217
- /**
3218
- * Identify a price, or select one for a plan; give each resource's ID or lookup key, never both, and product_id with lookup keys. For a metered price, a meter or duration_seconds requests a usage estimate, which cannot be combined with a promotion code and is not a checkout amount. Without one, a metered item includes only any setup charge.
3219
- */
3220
- export interface QuoteItemInput {
3221
- /**
3222
- * @minLength 1
3223
- * @maxLength 128
3224
- */
3225
- price_lookup_key?: string;
3226
- /**
3227
- * @minLength 1
3228
- * @maxLength 128
3229
- */
3230
- plan_lookup_key?: string;
3231
- price_id?: string;
3232
- product_id?: ProductID;
3233
- plan_id?: string;
3234
- /** Narrows the selection when a plan offers more than one price type. */
3235
- price_type?: PriceType;
3236
- /** Narrows the selection when a plan offers more than one usage type. */
3237
- usage_type?: UsageType;
3238
- interval?: QuoteItemInputInterval;
3239
- /** @minimum 1 */
3240
- interval_count?: number;
3241
- /** Selects among licensed prices with otherwise identical billing terms. Ambiguous terms are refused instead of choosing a price arbitrarily. */
3242
- cancellation_policy?: CancellationPolicy;
3243
- /** @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]))))))))))$ */
3244
- quantity: string;
3245
- meter_id?: string;
3246
- /**
3247
- * @minLength 1
3248
- * @maxLength 128
3249
- */
3250
- meter_lookup_key?: string;
3251
- /** The dimension values the rate depends on, such as region, instance type or token kind: those of the usage for a metered estimate, and those of what is bought for a licensed price on a rate card. Required whenever the price uses a rate card; prices with their own amounts ignore them. Every key the meter declares must be given. A combination no rate covers is refused rather than priced at zero. */
3252
- dimensions?: QuoteItemInputDimensions;
3253
- /** For a metered estimate, how long to price for, in seconds; the priced quantity is `quantity` times this duration. */
3254
- duration_seconds?: number;
3255
- }
3256
- /**
3257
- * The values of the meter's presentation dimensions, present only when grouped by meter.
3258
- */
3259
- export type SpendRowDimensions = {
3260
- [key: string]: string;
3261
- };
3262
- export interface SpendRow {
3263
- product?: Product;
3264
- plan_id?: string;
3265
- plan_name?: string;
3266
- /** Present only when grouped by resource. */
3267
- resource_id?: string;
3268
- /** Present only when grouped by meter. */
3269
- meter?: ObjectIdentity;
3270
- /** Present only when grouped by meter. */
3271
- unit?: string;
3272
- /** Net usage quantity, present only when grouped by meter. */
3273
- quantity?: string;
3274
- /** The values of the meter's presentation dimensions, present only when grouped by meter. */
3275
- dimensions?: SpendRowDimensions;
3276
- amount: Money;
3277
- currency: string;
3278
- }
3279
- export interface SpendRowList {
3280
- items: SpendRow[];
3281
- /** The total over all matching groups, not only the page returned. */
3282
- total: Money;
3283
- currency: string;
3284
- pagination: OffsetPagination;
3285
- }
3286
- export type ActiveResourceDimensions = {
3287
- [key: string]: string;
3288
- };
3289
- export type ActiveResourceStatus = (typeof ActiveResourceStatus)[keyof typeof ActiveResourceStatus];
3290
- export declare const ActiveResourceStatus: {
3291
- readonly active: "active";
3292
- readonly suspended: "suspended";
3293
- readonly closing: "closing";
3294
- readonly closed: "closed";
3295
- };
3296
- /**
3297
- * A resource charged continuously by the second.
3298
- */
3299
- export interface ActiveResource {
3300
- id: string;
3301
- ended_at?: string;
3302
- suspended_at?: string;
3303
- state_changed_at?: string;
3304
- /** The metered subscription charged for this metering record. */
3305
- subscription_id: string;
3306
- resource_id: string;
3307
- product: Product;
3308
- /** The resource type, as the owning service names it. */
3309
- resource_type?: string;
3310
- meter: ObjectIdentity;
3311
- unit?: string;
3312
- /** How much is held, such as cores, MiB or cards; not how much was used. */
3313
- quantity: string;
3314
- dimensions?: ActiveResourceDimensions;
3315
- status: ActiveResourceStatus;
3316
- started_at: string;
3317
- project_id?: string;
3318
- /** Usage has been generated up to this boundary; it says nothing about invoicing or payment. */
3319
- usage_generated_until: string;
3320
- }
3321
- export interface ActiveResourceList {
3322
- items: ActiveResource[];
3323
- pagination: OffsetPagination;
3324
- }
3325
- /**
3326
- * An estimate of the refundable value of an order or selected items; nothing is canceled or refunded.
3327
- */
3328
- export interface OrderRefundQuoteInput {
3329
- order_id: string;
3330
- /**
3331
- * Estimate only these items. Omit to estimate the whole order. Every item must belong to the order.
3332
- * @minItems 1
3333
- * @maxItems 100
3334
- */
3335
- order_item_ids?: string[];
3336
- }
3337
- /**
3338
- * Quote exactly one target for the billing account: proposed items, an existing order, renewals, a cancellation or an order refund. Promotion codes apply only to proposed items or an existing order. An invalid combination fails with `BILLING_PURCHASE_INVALID` and the field.
3339
- */
3340
- export interface QuoteRequest {
3341
- /**
3342
- * The billing account to price for; it must be yours. Existing orders must have been placed with it, and renewals and cancellations must currently be paid by it.
3343
- * @minimum 1
3344
- */
3345
- billing_account_id: number;
3346
- /**
3347
- * A proposed purchase priced in the account's currency. Metered items may include usage estimates, which are not checkout amounts.
3348
- * @minItems 1
3349
- * @maxItems 100
3350
- */
3351
- items?: QuoteItemInput[];
3352
- /** Preview paying this order. Its recorded terms supply every line, and an order whose terms are fixed returns its recorded amounts. The order does not change. */
3353
- order_id?: string;
3354
- /**
3355
- * Preview renewing these subscriptions, each at most once; each entry is a separate renewal order. To preview a promotion code, create a renewal order and quote it by order_id.
3356
- * @minItems 1
3357
- * @maxItems 100
3358
- */
3359
- renewals?: QuoteRenewal[];
3360
- cancellation?: QuoteCancellation;
3361
- /**
3362
- * @minLength 1
3363
- * @maxLength 64
3364
- */
3365
- promotion_code?: string;
3366
- refund?: OrderRefundQuoteInput;
3367
- }
3368
- /**
3369
- * How tax applies to the customer, as in Stripe: `none` taxes normally, `exempt` charges no tax, `reverse` charges no tax under the reverse-charge mechanism, stated on invoices. Only operators change it.
3370
- */
3371
- export type ContactTaxExempt = (typeof ContactTaxExempt)[keyof typeof ContactTaxExempt];
3372
- export declare const ContactTaxExempt: {
3373
- readonly none: "none";
3374
- readonly exempt: "exempt";
3375
- readonly reverse: "reverse";
3376
- };
3377
- /**
3378
- * A contact of a billing account with one address. An account can hold several; a contact is not a login.
3379
- */
3380
- export interface Contact {
3381
- id: string;
3382
- billing_account_id: number;
3383
- /**
3384
- * @minLength 1
3385
- * @maxLength 255
3386
- */
3387
- name: string;
3388
- /** @maxLength 255 */
3389
- legal_name?: string;
3390
- /** @maxLength 255 */
3391
- email?: string;
3392
- /** @maxLength 64 */
3393
- tax_id?: string;
3394
- /** @maxLength 255 */
3395
- address_line1?: string;
3396
- /** @maxLength 255 */
3397
- address_line2?: string;
3398
- /** @maxLength 128 */
3399
- address_city?: string;
3400
- /** @maxLength 128 */
3401
- address_state?: string;
3402
- /** @maxLength 32 */
3403
- address_postal_code?: string;
3404
- /** @pattern ^([A-Z]{2})?$ */
3405
- address_country?: string;
3406
- /** How tax applies to the customer, as in Stripe: `none` taxes normally, `exempt` charges no tax, `reverse` charges no tax under the reverse-charge mechanism, stated on invoices. Only operators change it. */
3407
- tax_exempt: ContactTaxExempt;
3408
- active: boolean;
3409
- created_at: string;
3410
- }
3411
- export interface ContactCreate {
3412
- /**
3413
- * @minLength 1
3414
- * @maxLength 255
3415
- */
3416
- name: string;
3417
- /** @maxLength 255 */
3418
- legal_name?: string;
3419
- /** @maxLength 255 */
3420
- email?: string;
3421
- /** @maxLength 64 */
3422
- tax_id?: string;
3423
- /** @maxLength 255 */
3424
- address_line1?: string;
3425
- /** @maxLength 255 */
3426
- address_line2?: string;
3427
- /** @maxLength 128 */
3428
- address_city?: string;
3429
- /** @maxLength 128 */
3430
- address_state?: string;
3431
- /** @maxLength 32 */
3432
- address_postal_code?: string;
3433
- /** @pattern ^([A-Z]{2})?$ */
3434
- address_country?: string;
3435
- }
3436
- export interface ContactUpdate {
3437
- /**
3438
- * @minLength 1
3439
- * @maxLength 255
3440
- */
3441
- name?: string;
3442
- /** @maxLength 255 */
3443
- legal_name?: string;
3444
- /** @maxLength 255 */
3445
- email?: string;
3446
- /** @maxLength 64 */
3447
- tax_id?: string;
3448
- /** @maxLength 255 */
3449
- address_line1?: string;
3450
- /** @maxLength 255 */
3451
- address_line2?: string;
3452
- /** @maxLength 128 */
3453
- address_city?: string;
3454
- /** @maxLength 128 */
3455
- address_state?: string;
3456
- /** @maxLength 32 */
3457
- address_postal_code?: string;
3458
- /** @pattern ^([A-Z]{2})?$ */
3459
- address_country?: string;
3460
- active?: boolean;
3461
- }
3462
- export interface ContactList {
3463
- items: Contact[];
3464
- pagination: OffsetPagination;
3465
- }
3466
- export interface CancelSubscriptionRequest {
3467
- mode: CancellationPolicy;
3468
- /** For immediate cancellation, the quoted whole-second refund basis. Now when omitted. */
3469
- proration_date?: string;
3470
- /** The cancellation quote's refundable amount, including an explicit zero. */
3471
- expected_refundable_amount: Money & string;
3472
- /** @maxLength 1024 */
3473
- reason?: string;
3474
- }
3475
- export interface StatementAmounts {
3476
- subtotal: Money;
3477
- discount_amount: Money;
3478
- tax_amount: Money;
3479
- total: Money;
3480
- /** Added to total to round the invoiced amount to the currency's minor unit. Zero for an open statement's estimate. */
3481
- rounding_amount: Money;
3482
- }
3483
- /**
3484
- * One billing account's usage billing for one UTC calendar month, summed over its statements. Not payable itself; each statement's invoice is collected on its own.
3485
- */
3486
- export interface MonthlyStatement {
3487
- billing_account_id: number;
3488
- currency: string;
3489
- period_start: string;
3490
- period_end: string;
3491
- /** True after the period's final closing, which applies the month's minimum charges. Usage priced later is billed in supplement statements and added here. */
3492
- finalized: boolean;
3493
- finalized_at?: string;
3494
- /** Statements of the period, including the open one. */
3495
- statement_count: number;
3496
- billed: StatementAmounts;
3497
- credited_amount: Money;
3498
- unbilled?: StatementAmounts;
3499
- credit_applied: Money;
3500
- amount_paid: Money;
3501
- amount_due: Money;
3502
- amount_refunded: Money;
3503
- }
3504
- export interface MonthlyStatementList {
3505
- items: MonthlyStatement[];
3506
- pagination: OffsetPagination;
3507
- }
3508
- export type StatementStatus = (typeof StatementStatus)[keyof typeof StatementStatus];
3509
- export declare const StatementStatus: {
3510
- readonly open: "open";
3511
- readonly closed: "closed";
3512
- };
3513
- /**
3514
- * `interim`: a closing before the period's usage is final, without minimum charges. `final`: the first closing after the period ended and its late usage was settled, applying the period's minimum charges. `supplement`: a closing after the final one, for usage priced late. An open statement is interim.
3515
- */
3516
- export type StatementType = (typeof StatementType)[keyof typeof StatementType];
3517
- export declare const StatementType: {
3518
- readonly interim: "interim";
3519
- readonly final: "final";
3520
- readonly supplement: "supplement";
3521
- };
3522
- /**
3523
- * An account's consumption for one billing period up to one closing. Usage is invoiced after every settlement run, about hourly: each closing issues an invoice for the usage priced since the previous one and collects it from credits and balance, and later usage goes into the next statement of the same period. A closed statement does not change. The period's consumption is the sum of its statements.
3524
- */
3525
- export interface Statement {
3526
- id: string;
3527
- billing_account_id: number;
3528
- currency: string;
3529
- period_start: string;
3530
- period_end: string;
3531
- /** Increases with each closing of the period. */
3532
- sequence: number;
3533
- status: StatementStatus;
3534
- type: StatementType;
3535
- /** True while the statement is open. The estimate prices the period's usage so far at tier prices and adds tax for the current invoice contact. Minimum charges are added at the period's final closing, and a tier reduction larger than this statement's charges is credited to the period's earlier invoices at closing. */
3536
- estimated: boolean;
3537
- amounts: StatementAmounts;
3538
- closed_at?: string;
3539
- /** The invoice issued at this closing, when it produced one. */
3540
- invoice_id?: string;
3541
- created_at: string;
3542
- calculated_at?: string;
3543
- credited_amount: Money;
3544
- }
3545
- export interface StatementList {
3546
- items: Statement[];
3547
- pagination: OffsetPagination;
3548
- }
3549
- /**
3550
- * The values of the meter's presentation dimensions, such as the model and token kind. Included only when grouping by meter, which splits each meter by these values.
3551
- */
3552
- export type StatementItemDimensions = {
3553
- [key: string]: string;
3554
- };
3555
- export interface StatementItem {
3556
- project_id?: string;
3557
- product_id?: string;
3558
- meter_id?: string;
3559
- unit?: string;
3560
- /** The values of the meter's presentation dimensions, such as the model and token kind. Included only when grouping by meter, which splits each meter by these values. */
3561
- dimensions?: StatementItemDimensions;
3562
- /** Net usage quantity. Included only when grouping by meter. */
3563
- quantity?: string;
3564
- deducted_quantity?: string;
3565
- amount: Money;
3566
- }
3567
- export type StatementSummaryGroupBy = (typeof StatementSummaryGroupBy)[keyof typeof StatementSummaryGroupBy];
3568
- export declare const StatementSummaryGroupBy: {
3569
- readonly project: "project";
3570
- readonly product: "product";
3571
- readonly meter: "meter";
3572
- };
3573
- export interface StatementSummary {
3574
- statement_id: string;
3575
- currency: string;
3576
- estimated: boolean;
3577
- calculated_at?: string;
3578
- group_by: StatementSummaryGroupBy;
3579
- items: StatementItem[];
3580
- pagination: OffsetPagination;
3581
- }
3582
857
  /**
3583
858
  * The request conflicts with the current state of the service. The codes are described where they apply.
3584
859
  */