@greatwait/contracts 0.1.0-alpha.3 → 0.1.0-alpha.5

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 (345) hide show
  1. package/README.md +12 -10
  2. package/dist/authority.d.ts +33 -27
  3. package/dist/authority.js +12 -2
  4. package/dist/billing.d.ts +1231 -0
  5. package/dist/billing.js +833 -0
  6. package/dist/callback-safety.d.ts +2 -2
  7. package/dist/callback-safety.js +15 -5
  8. package/dist/compatibility.d.ts +3 -3
  9. package/dist/compatibility.js +1 -1
  10. package/dist/configuration-bounds.d.ts +13 -0
  11. package/dist/configuration-bounds.js +13 -0
  12. package/dist/data-export.d.ts +67 -0
  13. package/dist/data-export.js +182 -0
  14. package/dist/effective-limits.d.ts +40 -0
  15. package/dist/effective-limits.js +42 -0
  16. package/dist/endpoints.d.ts +186 -245
  17. package/dist/endpoints.js +82 -86
  18. package/dist/events.d.ts +17 -17
  19. package/dist/events.js +1 -1
  20. package/dist/first-value-journey.d.ts +50 -56
  21. package/dist/first-value-journey.js +17 -20
  22. package/dist/forecast.d.ts +182 -92
  23. package/dist/forecast.js +88 -25
  24. package/dist/identifiers.d.ts +20 -20
  25. package/dist/identifiers.js +1 -1
  26. package/dist/identity.d.ts +41 -37
  27. package/dist/identity.js +5 -4
  28. package/dist/index.d.ts +12 -6
  29. package/dist/index.js +12 -6
  30. package/dist/mcp.d.ts +21 -19
  31. package/dist/mcp.js +2 -2
  32. package/dist/naming.d.ts +45 -0
  33. package/dist/naming.js +159 -0
  34. package/dist/oauth.d.ts +186 -172
  35. package/dist/oauth.js +1 -1
  36. package/dist/operation-definitions.d.ts +9 -0
  37. package/dist/operation-definitions.js +7 -0
  38. package/dist/operational-config.d.ts +101 -0
  39. package/dist/operational-config.js +341 -0
  40. package/dist/operations.d.ts +4742 -2170
  41. package/dist/operations.js +3064 -932
  42. package/dist/organization-lifecycle.d.ts +34 -0
  43. package/dist/organization-lifecycle.js +122 -0
  44. package/dist/partition.d.ts +43 -9
  45. package/dist/partition.js +3 -3
  46. package/dist/policy.d.ts +4 -4
  47. package/dist/policy.js +9 -5
  48. package/dist/problems.d.ts +57 -28
  49. package/dist/problems.js +55 -3
  50. package/dist/protocol.d.ts +209 -80
  51. package/dist/protocol.js +110 -37
  52. package/dist/scheduling-records.d.ts +349 -285
  53. package/dist/scheduling-records.js +1 -1
  54. package/dist/scheduling.d.ts +707 -361
  55. package/dist/scheduling.js +443 -61
  56. package/dist/secrets.d.ts +119 -105
  57. package/dist/secrets.js +1 -1
  58. package/dist/signatures.d.ts +74 -74
  59. package/dist/signatures.js +1 -1
  60. package/dist/tenancy.d.ts +142 -68
  61. package/dist/tenancy.js +70 -17
  62. package/dist/test-sink.d.ts +127 -127
  63. package/dist/test-sink.js +1 -1
  64. package/dist/time.d.ts +4 -4
  65. package/dist/time.js +1 -1
  66. package/dist/timing.d.ts +65 -0
  67. package/dist/timing.js +82 -0
  68. package/dist/usage.d.ts +103 -47
  69. package/dist/usage.js +183 -32
  70. package/dist/workspace.d.ts +34 -34
  71. package/dist/workspace.js +1 -1
  72. package/dist/zod-values.d.ts +3 -0
  73. package/dist/zod-values.js +2 -0
  74. package/dist/zod.d.ts +2 -0
  75. package/dist/zod.js +2 -0
  76. package/generated/v1/examples/attempts.list.response.json +6 -0
  77. package/generated/v1/examples/attempts.read.response.json +6 -0
  78. package/generated/v1/examples/billing.autotopup.request.json +5 -0
  79. package/generated/v1/examples/billing.autotopup.response.json +120 -0
  80. package/generated/v1/examples/billing.autotopuppreview.request.json +19 -0
  81. package/generated/v1/examples/billing.autotopuppreview.response.json +45 -0
  82. package/generated/v1/examples/billing.budgets.request.json +13 -0
  83. package/generated/v1/examples/billing.budgets.response.json +22 -0
  84. package/generated/v1/examples/billing.ceiling.request.json +8 -0
  85. package/generated/v1/examples/billing.ceiling.response.json +120 -0
  86. package/generated/v1/examples/billing.change.request.json +5 -0
  87. package/generated/v1/examples/billing.change.response.json +12 -0
  88. package/generated/v1/examples/billing.funding.response.json +120 -0
  89. package/generated/v1/examples/billing.fundingconfirm.response.json +120 -0
  90. package/generated/v1/examples/billing.fundingquote.request.json +7 -0
  91. package/generated/v1/examples/billing.fundingquote.response.json +13 -0
  92. package/generated/v1/examples/billing.invoicehistory.response.json +6 -0
  93. package/generated/v1/examples/billing.invoices.response.json +15 -0
  94. package/generated/v1/examples/billing.ledger.response.json +23 -0
  95. package/generated/v1/examples/billing.notices.response.json +41 -0
  96. package/generated/v1/examples/billing.notificationsettings.response.json +17 -0
  97. package/generated/v1/examples/billing.notificationsettingsupdate.request.json +9 -0
  98. package/generated/v1/examples/billing.notificationsettingsupdate.response.json +17 -0
  99. package/generated/v1/examples/billing.paymenthistory.response.json +6 -0
  100. package/generated/v1/examples/billing.paymentmethod.response.json +16 -0
  101. package/generated/v1/examples/billing.paymentmethodconfirm.request.json +3 -0
  102. package/generated/v1/examples/billing.paymentmethodconfirm.response.json +16 -0
  103. package/generated/v1/examples/billing.paymentmethodremove.request.json +3 -0
  104. package/generated/v1/examples/billing.paymentmethodremove.response.json +4 -0
  105. package/generated/v1/examples/billing.paymentmethodsetup.request.json +1 -0
  106. package/generated/v1/examples/billing.paymentmethodsetup.response.json +3 -0
  107. package/generated/v1/examples/billing.portal.response.json +3 -0
  108. package/generated/v1/examples/billing.projects.response.json +12 -0
  109. package/generated/v1/examples/billing.purchase.request.json +5 -0
  110. package/generated/v1/examples/billing.purchase.response.json +120 -0
  111. package/generated/v1/examples/billing.quote.request.json +4 -0
  112. package/generated/v1/examples/billing.quote.response.json +19 -0
  113. package/generated/v1/examples/billing.reconcile.response.json +73 -0
  114. package/generated/v1/examples/billing.refundrequest.request.json +10 -0
  115. package/generated/v1/examples/billing.refundrequest.response.json +11 -0
  116. package/generated/v1/examples/billing.refundresolution.request.json +4 -0
  117. package/generated/v1/examples/billing.refundresolution.response.json +120 -0
  118. package/generated/v1/examples/billing.summary.response.json +73 -0
  119. package/generated/v1/examples/endpoints.acknowledgeSigningKeyRotation.response.json +18 -0
  120. package/generated/v1/examples/endpoints.create.response.json +1 -1
  121. package/generated/v1/examples/endpoints.disable.response.json +0 -1
  122. package/generated/v1/examples/{endpoints.verify.response.json → endpoints.enable.response.json} +4 -5
  123. package/generated/v1/examples/endpoints.list.response.json +1 -2
  124. package/generated/v1/examples/endpoints.read.response.json +2 -2
  125. package/generated/v1/examples/endpoints.revealSigningSecret.response.json +7 -0
  126. package/generated/v1/examples/endpoints.rotateSigningKey.response.json +1 -2
  127. package/generated/v1/examples/endpoints.update.response.json +1 -1
  128. package/generated/v1/examples/executions.list.response.json +20 -0
  129. package/generated/v1/examples/exports.cancel.response.json +11 -0
  130. package/generated/v1/examples/exports.create.request.json +1 -0
  131. package/generated/v1/examples/exports.create.response.json +8 -0
  132. package/generated/v1/examples/exports.part.response.json +5 -0
  133. package/generated/v1/examples/exports.read.response.json +8 -0
  134. package/generated/v1/examples/limits.read.response.json +16 -0
  135. package/generated/v1/examples/occurrences.read.response.json +4 -0
  136. package/generated/v1/examples/occurrences.redeliver.response.json +2 -0
  137. package/generated/v1/examples/organizations.close.request.json +5 -0
  138. package/generated/v1/examples/organizations.close.response.json +10 -0
  139. package/generated/v1/examples/organizations.lifecycle.response.json +10 -0
  140. package/generated/v1/examples/organizations.restore.request.json +3 -0
  141. package/generated/v1/examples/organizations.restore.response.json +10 -0
  142. package/generated/v1/examples/projects.archive.request.json +3 -0
  143. package/generated/v1/examples/projects.archive.response.json +14 -0
  144. package/generated/v1/examples/projects.create.response.json +10 -1
  145. package/generated/v1/examples/projects.delete.response.json +9 -0
  146. package/generated/v1/examples/projects.list.response.json +12 -2
  147. package/generated/v1/examples/projects.rename.request.json +3 -0
  148. package/generated/v1/examples/projects.rename.response.json +14 -0
  149. package/generated/v1/examples/schedules.archive.response.json +3 -0
  150. package/generated/v1/examples/schedules.cancel.response.json +3 -0
  151. package/generated/v1/examples/schedules.create.request.json +4 -0
  152. package/generated/v1/examples/schedules.create.response.json +3 -0
  153. package/generated/v1/examples/schedules.list.response.json +3 -0
  154. package/generated/v1/examples/schedules.pause.response.json +3 -0
  155. package/generated/v1/examples/schedules.read.response.json +6 -0
  156. package/generated/v1/examples/schedules.replace.request.json +4 -0
  157. package/generated/v1/examples/schedules.replace.response.json +3 -0
  158. package/generated/v1/examples/schedules.resume.response.json +3 -0
  159. package/generated/v1/examples/timing.summary.response.json +35 -0
  160. package/generated/v1/examples/usage.read.response.json +1 -0
  161. package/generated/v1/first-value-journey.json +43 -18
  162. package/generated/v1/manifest.json +1287 -42
  163. package/generated/v1/openapi.json +36033 -5982
  164. package/generated/v1/policy-matrix.json +341 -47
  165. package/generated/v1/schemas/attempts.list.response.json +39 -1
  166. package/generated/v1/schemas/attempts.read.response.json +39 -1
  167. package/generated/v1/schemas/billing.autotopup.request-headers.json +13 -0
  168. package/generated/v1/schemas/billing.autotopup.request.json +22 -0
  169. package/generated/v1/schemas/billing.autotopup.response-headers.json +10 -0
  170. package/generated/v1/schemas/billing.autotopup.response.json +552 -0
  171. package/generated/v1/schemas/billing.autotopuppreview.request.json +77 -0
  172. package/generated/v1/schemas/billing.autotopuppreview.response.json +277 -0
  173. package/generated/v1/schemas/billing.budgets.request-headers.json +13 -0
  174. package/generated/v1/schemas/billing.budgets.request.json +66 -0
  175. package/generated/v1/schemas/billing.budgets.response-headers.json +10 -0
  176. package/generated/v1/schemas/billing.budgets.response.json +92 -0
  177. package/generated/v1/schemas/billing.ceiling.request-headers.json +13 -0
  178. package/generated/v1/schemas/billing.ceiling.request.json +40 -0
  179. package/generated/v1/schemas/billing.ceiling.response-headers.json +10 -0
  180. package/generated/v1/schemas/billing.ceiling.response.json +552 -0
  181. package/generated/v1/schemas/billing.change.request-headers.json +13 -0
  182. package/generated/v1/schemas/billing.change.request.json +22 -0
  183. package/generated/v1/schemas/billing.change.response.json +119 -0
  184. package/generated/v1/schemas/billing.funding.response.json +552 -0
  185. package/generated/v1/schemas/billing.fundingconfirm.response.json +552 -0
  186. package/generated/v1/schemas/billing.fundingquote.request.json +28 -0
  187. package/generated/v1/schemas/billing.fundingquote.response.json +61 -0
  188. package/generated/v1/schemas/billing.invoicehistory.query.json +16 -0
  189. package/generated/v1/schemas/billing.invoicehistory.response.json +88 -0
  190. package/generated/v1/schemas/billing.invoices.response.json +51 -0
  191. package/generated/v1/schemas/billing.ledger.query.json +16 -0
  192. package/generated/v1/schemas/billing.ledger.response.json +130 -0
  193. package/generated/v1/schemas/billing.notices.query.json +16 -0
  194. package/generated/v1/schemas/billing.notices.response.json +278 -0
  195. package/generated/v1/schemas/billing.notificationsettings.response.json +70 -0
  196. package/generated/v1/schemas/billing.notificationsettingsupdate.request-headers.json +13 -0
  197. package/generated/v1/schemas/billing.notificationsettingsupdate.request.json +43 -0
  198. package/generated/v1/schemas/billing.notificationsettingsupdate.response-headers.json +10 -0
  199. package/generated/v1/schemas/billing.notificationsettingsupdate.response.json +70 -0
  200. package/generated/v1/schemas/billing.paymenthistory.query.json +16 -0
  201. package/generated/v1/schemas/billing.paymenthistory.response.json +182 -0
  202. package/generated/v1/schemas/billing.paymentmethod.response.json +137 -0
  203. package/generated/v1/schemas/billing.paymentmethodconfirm.request.json +14 -0
  204. package/generated/v1/schemas/billing.paymentmethodconfirm.response.json +137 -0
  205. package/generated/v1/schemas/billing.paymentmethodremove.request.json +12 -0
  206. package/generated/v1/schemas/billing.paymentmethodremove.response.json +137 -0
  207. package/generated/v1/schemas/billing.paymentmethodsetup.request.json +12 -0
  208. package/generated/v1/schemas/billing.paymentmethodsetup.response.json +11 -0
  209. package/generated/v1/schemas/billing.portal.response.json +11 -0
  210. package/generated/v1/schemas/billing.projects.response.json +119 -0
  211. package/generated/v1/schemas/billing.purchase.request-headers.json +13 -0
  212. package/generated/v1/schemas/billing.purchase.request.json +26 -0
  213. package/generated/v1/schemas/billing.purchase.response-headers.json +10 -0
  214. package/generated/v1/schemas/billing.purchase.response.json +552 -0
  215. package/generated/v1/schemas/billing.quote.request.json +20 -0
  216. package/generated/v1/schemas/billing.quote.response.json +86 -0
  217. package/generated/v1/schemas/billing.reconcile.response.json +468 -0
  218. package/generated/v1/schemas/billing.refundrequest.request-headers.json +13 -0
  219. package/generated/v1/schemas/billing.refundrequest.request.json +42 -0
  220. package/generated/v1/schemas/billing.refundrequest.response-headers.json +10 -0
  221. package/generated/v1/schemas/billing.refundrequest.response.json +45 -0
  222. package/generated/v1/schemas/billing.refundresolution.request-headers.json +13 -0
  223. package/generated/v1/schemas/billing.refundresolution.request.json +61 -0
  224. package/generated/v1/schemas/billing.refundresolution.response-headers.json +10 -0
  225. package/generated/v1/schemas/billing.refundresolution.response.json +552 -0
  226. package/generated/v1/schemas/billing.summary.response.json +468 -0
  227. package/generated/v1/schemas/context.read.response.json +2 -0
  228. package/generated/v1/schemas/credentials.connection.response.json +2 -0
  229. package/generated/v1/schemas/credentials.create.request.json +2 -0
  230. package/generated/v1/schemas/credentials.create.response.json +2 -0
  231. package/generated/v1/schemas/credentials.list.response.json +2 -0
  232. package/generated/v1/schemas/credentials.revoke.response.json +2 -0
  233. package/generated/v1/schemas/credentials.rotate.response.json +4 -0
  234. package/generated/v1/schemas/{endpoints.verify.request-headers.json → endpoints.acknowledgeSigningKeyRotation.request-headers.json} +2 -1
  235. package/generated/v1/schemas/{endpoints.verify.response.json → endpoints.acknowledgeSigningKeyRotation.response.json} +8 -21
  236. package/generated/v1/schemas/endpoints.create.request.json +5 -0
  237. package/generated/v1/schemas/endpoints.create.response.json +8 -21
  238. package/generated/v1/schemas/endpoints.disable.response.json +8 -21
  239. package/generated/v1/schemas/endpoints.enable.response-headers.json +11 -0
  240. package/generated/v1/schemas/endpoints.enable.response.json +87 -0
  241. package/generated/v1/schemas/endpoints.list.response.json +8 -21
  242. package/generated/v1/schemas/endpoints.read.response.json +8 -21
  243. package/generated/v1/schemas/endpoints.revealSigningSecret.response.json +43 -0
  244. package/generated/v1/schemas/endpoints.rotateSigningKey.response.json +8 -21
  245. package/generated/v1/schemas/endpoints.update.request.json +5 -0
  246. package/generated/v1/schemas/endpoints.update.response.json +8 -21
  247. package/generated/v1/schemas/executions.list.query.json +46 -0
  248. package/generated/v1/schemas/executions.list.response.json +116 -0
  249. package/generated/v1/schemas/exports.cancel.response.json +48 -0
  250. package/generated/v1/schemas/exports.create.request.json +6 -0
  251. package/generated/v1/schemas/exports.create.response.json +38 -0
  252. package/generated/v1/schemas/exports.part.query.json +11 -0
  253. package/generated/v1/schemas/exports.part.response.json +22 -0
  254. package/generated/v1/schemas/exports.read.response.json +38 -0
  255. package/generated/v1/schemas/forecast.read.request-headers.json +10 -0
  256. package/generated/v1/schemas/forecast.read.response.json +148 -0
  257. package/generated/v1/schemas/grants.list.response.json +2 -0
  258. package/generated/v1/schemas/grants.revoke.response.json +2 -0
  259. package/generated/v1/schemas/limits.read.response.json +79 -0
  260. package/generated/v1/schemas/occurrences.list.query.json +5 -0
  261. package/generated/v1/schemas/occurrences.list.response.json +23 -0
  262. package/generated/v1/schemas/occurrences.read.response.json +23 -0
  263. package/generated/v1/schemas/occurrences.redeliver.response.json +39 -1
  264. package/generated/v1/schemas/organizations.close.request.json +20 -0
  265. package/generated/v1/schemas/organizations.close.response.json +68 -0
  266. package/generated/v1/schemas/organizations.lifecycle.response.json +68 -0
  267. package/generated/v1/schemas/organizations.restore.request.json +13 -0
  268. package/generated/v1/schemas/organizations.restore.response.json +68 -0
  269. package/generated/v1/schemas/projects.archive.request-headers.json +11 -0
  270. package/generated/v1/schemas/projects.archive.request.json +10 -0
  271. package/generated/v1/schemas/projects.archive.response-headers.json +11 -0
  272. package/generated/v1/schemas/projects.archive.response.json +79 -0
  273. package/generated/v1/schemas/projects.create.response.json +55 -1
  274. package/generated/v1/schemas/projects.delete.request-headers.json +11 -0
  275. package/generated/v1/schemas/projects.delete.response.json +37 -0
  276. package/generated/v1/schemas/projects.list.response.json +61 -2
  277. package/generated/v1/schemas/projects.rename.request-headers.json +11 -0
  278. package/generated/v1/schemas/projects.rename.request.json +12 -0
  279. package/generated/v1/schemas/projects.rename.response-headers.json +11 -0
  280. package/generated/v1/schemas/projects.rename.response.json +79 -0
  281. package/generated/v1/schemas/schedules.archive.response.json +90 -2
  282. package/generated/v1/schemas/schedules.cancel.response.json +90 -2
  283. package/generated/v1/schemas/schedules.create.request.json +24 -3
  284. package/generated/v1/schemas/schedules.create.response.json +90 -2
  285. package/generated/v1/schemas/schedules.list.query.json +13 -0
  286. package/generated/v1/schemas/schedules.list.response.json +67 -2
  287. package/generated/v1/schemas/schedules.pause.response.json +90 -2
  288. package/generated/v1/schemas/schedules.read.response.json +90 -2
  289. package/generated/v1/schemas/schedules.replace.request.json +24 -3
  290. package/generated/v1/schemas/schedules.replace.response.json +90 -2
  291. package/generated/v1/schemas/schedules.resume.response.json +90 -2
  292. package/generated/v1/schemas/timing.summary.response.json +191 -0
  293. package/generated/v1/schemas/usage.read.query.json +7 -0
  294. package/generated/v1/schemas/usage.read.response.json +36 -1
  295. package/generated/v1/snippets/billing.autotopup.json +6 -0
  296. package/generated/v1/snippets/billing.autotopuppreview.json +6 -0
  297. package/generated/v1/snippets/billing.budgets.json +6 -0
  298. package/generated/v1/snippets/billing.ceiling.json +6 -0
  299. package/generated/v1/snippets/billing.change.json +6 -0
  300. package/generated/v1/snippets/billing.funding.json +6 -0
  301. package/generated/v1/snippets/billing.fundingconfirm.json +6 -0
  302. package/generated/v1/snippets/billing.fundingquote.json +6 -0
  303. package/generated/v1/snippets/billing.invoicehistory.json +6 -0
  304. package/generated/v1/snippets/billing.invoices.json +6 -0
  305. package/generated/v1/snippets/billing.ledger.json +6 -0
  306. package/generated/v1/snippets/billing.notices.json +6 -0
  307. package/generated/v1/snippets/billing.notificationsettings.json +6 -0
  308. package/generated/v1/snippets/billing.notificationsettingsupdate.json +6 -0
  309. package/generated/v1/snippets/billing.paymenthistory.json +6 -0
  310. package/generated/v1/snippets/billing.paymentmethod.json +6 -0
  311. package/generated/v1/snippets/billing.paymentmethodconfirm.json +6 -0
  312. package/generated/v1/snippets/billing.paymentmethodremove.json +6 -0
  313. package/generated/v1/snippets/billing.paymentmethodsetup.json +6 -0
  314. package/generated/v1/snippets/billing.portal.json +6 -0
  315. package/generated/v1/snippets/billing.projects.json +6 -0
  316. package/generated/v1/snippets/billing.purchase.json +6 -0
  317. package/generated/v1/snippets/billing.quote.json +6 -0
  318. package/generated/v1/snippets/billing.reconcile.json +6 -0
  319. package/generated/v1/snippets/billing.refundrequest.json +6 -0
  320. package/generated/v1/snippets/billing.refundresolution.json +6 -0
  321. package/generated/v1/snippets/billing.summary.json +6 -0
  322. package/generated/v1/snippets/endpoints.acknowledgeSigningKeyRotation.json +6 -0
  323. package/generated/v1/snippets/{endpoints.verify.json → endpoints.enable.json} +3 -3
  324. package/generated/v1/snippets/endpoints.revealSigningSecret.json +6 -0
  325. package/generated/v1/snippets/executions.list.json +6 -0
  326. package/generated/v1/snippets/exports.cancel.json +6 -0
  327. package/generated/v1/snippets/exports.create.json +6 -0
  328. package/generated/v1/snippets/exports.part.json +6 -0
  329. package/generated/v1/snippets/exports.read.json +6 -0
  330. package/generated/v1/snippets/forecast.windows.json +1 -1
  331. package/generated/v1/snippets/limits.read.json +6 -0
  332. package/generated/v1/snippets/organizations.close.json +6 -0
  333. package/generated/v1/snippets/organizations.lifecycle.json +6 -0
  334. package/generated/v1/snippets/organizations.restore.json +6 -0
  335. package/generated/v1/snippets/projects.archive.json +6 -0
  336. package/generated/v1/snippets/projects.delete.json +6 -0
  337. package/generated/v1/snippets/projects.rename.json +6 -0
  338. package/generated/v1/snippets/schedules.create.json +3 -3
  339. package/generated/v1/snippets/schedules.replace.json +3 -3
  340. package/generated/v1/snippets/timing.summary.json +6 -0
  341. package/package.json +7 -7
  342. package/dist/callback-ownership.d.ts +0 -58
  343. package/dist/callback-ownership.js +0 -71
  344. package/generated/v1/callback-endpoint-verification.json +0 -59
  345. /package/generated/v1/schemas/{endpoints.verify.response-headers.json → endpoints.acknowledgeSigningKeyRotation.response-headers.json} +0 -0
@@ -0,0 +1,1231 @@
1
+ import { z } from "./zod.js";
2
+ import { projectIdSchema } from "./identifiers.js";
3
+ export declare const BILLING_AMOUNT_SCALE: 6;
4
+ export declare const BILLING_CURRENCY: "USD";
5
+ /**
6
+ * Exact integer money on the wire.
7
+ *
8
+ * PostgreSQL uses `bigint`; JSON uses a canonical decimal string because a
9
+ * JavaScript number cannot represent every ledger amount without rounding.
10
+ */
11
+ export declare const microdollarAmountSchema: import("zod").ZodString;
12
+ export declare const nonnegativeMicrodollarAmountSchema: import("zod").ZodString;
13
+ export declare const BILLING_ACTIVATION_MODES: readonly ["disabled", "shadow", "enforced"];
14
+ export declare const BILLING_BLOCK_REASONS: readonly ["billing-state-missing", "billing-account-closed", "project-ineligible", "insufficient-credit", "execution-cap-reached"];
15
+ export declare const BILLING_ENTRY_KINDS: readonly ["credit_granted", "credit_reversed", "attempt_debited", "attempt_released", "shadow_attempt_debited", "shadow_attempt_released", "late_evidence_waived", "policy_installed", "budget_policy_updated", "budget_threshold_reached", "budget_exhausted", "budget_recovered", "automatic_charge_ceiling_updated", "payment_reserved", "payment_submitted", "payment_pending", "payment_paid", "payment_failed", "payment_canceled", "payment_authentication_required", "payment_action_required", "payment_refunded", "payment_disputed", "payment_reversed", "payment_dispute_restored", "refund_requested", "payment_refund_canceled", "automatic_top_up_cap_reached", "automatic_charge_threshold_reached", "automatic_charge_threshold_recovered", "low_credit_reached", "low_credit_recovered", "notification_settings_updated", "service_blocked", "service_restored"];
16
+ /**
17
+ * Why a ledger entry that looks like money moved none.
18
+ *
19
+ * `provider-details-attached`: the payment provider reported details of a
20
+ * payment the ledger already recorded — its charge, receipt, hosted page or
21
+ * tax. The entry repeats the payment's kind and shows a zero amount, so one
22
+ * purchase never reads as two.
23
+ */
24
+ export declare const BILLING_LEDGER_ENTRY_NOTES: readonly ["provider-details-attached"];
25
+ export declare const BILLING_PAYMENT_KINDS: readonly ["manual", "automatic"];
26
+ export declare const BILLING_PAYMENT_STATES: readonly ["pending", "paid", "failed", "authentication-required", "action-required", "canceled", "refunded", "reversed", "disputed"];
27
+ declare const nonnegativeExactMoneySchema: import("zod").ZodObject<{
28
+ currency: import("zod").ZodLiteral<"USD">;
29
+ microdollars: import("zod").ZodString;
30
+ scale: import("zod").ZodLiteral<6>;
31
+ }, import("zod/v4/core").$strip>;
32
+ export declare const exactCentMoneySchema: import("zod").ZodObject<{
33
+ currency: import("zod").ZodLiteral<"USD">;
34
+ microdollars: import("zod").ZodString;
35
+ scale: import("zod").ZodLiteral<6>;
36
+ }, import("zod/v4/core").$strip>;
37
+ export declare const manualFundingCreditSchema: import("zod").ZodObject<{
38
+ currency: import("zod").ZodLiteral<"USD">;
39
+ microdollars: import("zod").ZodString;
40
+ scale: import("zod").ZodLiteral<6>;
41
+ }, import("zod/v4/core").$strip>;
42
+ export declare const billingAutoTopUpConfigurationSchema: import("zod").ZodObject<{
43
+ ceiling: import("zod").ZodObject<{
44
+ currency: import("zod").ZodLiteral<"USD">;
45
+ microdollars: import("zod").ZodString;
46
+ scale: import("zod").ZodLiteral<6>;
47
+ }, import("zod/v4/core").$strip>;
48
+ credit: import("zod").ZodObject<{
49
+ currency: import("zod").ZodLiteral<"USD">;
50
+ microdollars: import("zod").ZodString;
51
+ scale: import("zod").ZodLiteral<6>;
52
+ }, import("zod/v4/core").$strip>;
53
+ triggerBelow: import("zod").ZodObject<{
54
+ currency: import("zod").ZodLiteral<"USD">;
55
+ microdollars: import("zod").ZodString;
56
+ scale: import("zod").ZodLiteral<6>;
57
+ }, import("zod/v4/core").$strip>;
58
+ }, import("zod/v4/core").$strict>;
59
+ export declare const billingAutoTopUpPreviewRequestSchema: import("zod").ZodObject<{
60
+ action: import("zod").ZodEnum<{
61
+ enable: "enable";
62
+ edit: "edit";
63
+ disable: "disable";
64
+ resume: "resume";
65
+ }>;
66
+ ceiling: import("zod").ZodOptional<import("zod").ZodObject<{
67
+ currency: import("zod").ZodLiteral<"USD">;
68
+ microdollars: import("zod").ZodString;
69
+ scale: import("zod").ZodLiteral<6>;
70
+ }, import("zod/v4/core").$strip>>;
71
+ credit: import("zod").ZodOptional<import("zod").ZodObject<{
72
+ currency: import("zod").ZodLiteral<"USD">;
73
+ microdollars: import("zod").ZodString;
74
+ scale: import("zod").ZodLiteral<6>;
75
+ }, import("zod/v4/core").$strip>>;
76
+ expectedRevision: import("zod").ZodNumber;
77
+ triggerBelow: import("zod").ZodOptional<import("zod").ZodObject<{
78
+ currency: import("zod").ZodLiteral<"USD">;
79
+ microdollars: import("zod").ZodString;
80
+ scale: import("zod").ZodLiteral<6>;
81
+ }, import("zod/v4/core").$strip>>;
82
+ }, import("zod/v4/core").$strict>;
83
+ export declare const billingAutoTopUpApplyRequestSchema: import("zod").ZodObject<{
84
+ confirmed: import("zod").ZodLiteral<true>;
85
+ expectedRevision: import("zod").ZodNumber;
86
+ preview: import("zod").ZodString;
87
+ }, import("zod/v4/core").$strict>;
88
+ export declare const billingFundingQuoteRequestSchema: import("zod").ZodObject<{
89
+ credit: import("zod").ZodObject<{
90
+ currency: import("zod").ZodLiteral<"USD">;
91
+ microdollars: import("zod").ZodString;
92
+ scale: import("zod").ZodLiteral<6>;
93
+ }, import("zod/v4/core").$strip>;
94
+ }, import("zod/v4/core").$strict>;
95
+ export declare const billingFundingQuoteSchema: import("zod").ZodObject<{
96
+ credit: import("zod").ZodObject<{
97
+ currency: import("zod").ZodLiteral<"USD">;
98
+ microdollars: import("zod").ZodString;
99
+ scale: import("zod").ZodLiteral<6>;
100
+ }, import("zod/v4/core").$strip>;
101
+ expectedRevision: import("zod").ZodNumber;
102
+ expiresAt: import("zod").ZodString;
103
+ gross: import("zod").ZodLiteral<null>;
104
+ quote: import("zod").ZodString;
105
+ tax: import("zod").ZodLiteral<null>;
106
+ taxStatus: import("zod").ZodLiteral<"calculated-at-checkout">;
107
+ }, import("zod/v4/core").$strict>;
108
+ export declare const billingPurchaseRequestSchema: import("zod").ZodObject<{
109
+ automaticTopUp: import("zod").ZodOptional<import("zod").ZodBoolean>;
110
+ confirmed: import("zod").ZodLiteral<true>;
111
+ expectedRevision: import("zod").ZodNumber;
112
+ quote: import("zod").ZodString;
113
+ }, import("zod/v4/core").$strict>;
114
+ export declare const billingCeilingUpdateRequestSchema: import("zod").ZodObject<{
115
+ automaticExecutionTopUpCeiling: import("zod").ZodNullable<import("zod").ZodObject<{
116
+ currency: import("zod").ZodLiteral<"USD">;
117
+ microdollars: import("zod").ZodString;
118
+ scale: import("zod").ZodLiteral<6>;
119
+ }, import("zod/v4/core").$strip>>;
120
+ expectedRevision: import("zod").ZodNumber;
121
+ }, import("zod/v4/core").$strict>;
122
+ export declare const billingAutoTopUpRuleSchema: import("zod").ZodObject<{
123
+ cooldownUntil: import("zod").ZodNullable<import("zod").ZodString>;
124
+ desired: import("zod").ZodNullable<import("zod").ZodObject<{
125
+ ceiling: import("zod").ZodObject<{
126
+ currency: import("zod").ZodLiteral<"USD">;
127
+ microdollars: import("zod").ZodString;
128
+ scale: import("zod").ZodLiteral<6>;
129
+ }, import("zod/v4/core").$strip>;
130
+ credit: import("zod").ZodObject<{
131
+ currency: import("zod").ZodLiteral<"USD">;
132
+ microdollars: import("zod").ZodString;
133
+ scale: import("zod").ZodLiteral<6>;
134
+ }, import("zod/v4/core").$strip>;
135
+ triggerBelow: import("zod").ZodObject<{
136
+ currency: import("zod").ZodLiteral<"USD">;
137
+ microdollars: import("zod").ZodString;
138
+ scale: import("zod").ZodLiteral<6>;
139
+ }, import("zod/v4/core").$strip>;
140
+ }, import("zod/v4/core").$strict>>;
141
+ effective: import("zod").ZodNullable<import("zod").ZodObject<{
142
+ ceiling: import("zod").ZodObject<{
143
+ currency: import("zod").ZodLiteral<"USD">;
144
+ microdollars: import("zod").ZodString;
145
+ scale: import("zod").ZodLiteral<6>;
146
+ }, import("zod/v4/core").$strip>;
147
+ credit: import("zod").ZodObject<{
148
+ currency: import("zod").ZodLiteral<"USD">;
149
+ microdollars: import("zod").ZodString;
150
+ scale: import("zod").ZodLiteral<6>;
151
+ }, import("zod/v4/core").$strip>;
152
+ triggerBelow: import("zod").ZodObject<{
153
+ currency: import("zod").ZodLiteral<"USD">;
154
+ microdollars: import("zod").ZodString;
155
+ scale: import("zod").ZodLiteral<6>;
156
+ }, import("zod/v4/core").$strip>;
157
+ }, import("zod/v4/core").$strict>>;
158
+ setupUrl: import("zod").ZodOptional<import("zod").ZodString>;
159
+ state: import("zod").ZodEnum<{
160
+ disabled: "disabled";
161
+ "payment-method-required": "payment-method-required";
162
+ ready: "ready";
163
+ }>;
164
+ suspension: import("zod").ZodNullable<import("zod").ZodObject<{
165
+ at: import("zod").ZodString;
166
+ reason: import("zod").ZodEnum<{
167
+ "authentication-required": "authentication-required";
168
+ "payment-failed": "payment-failed";
169
+ }>;
170
+ }, import("zod/v4/core").$strict>>;
171
+ }, import("zod/v4/core").$strict>;
172
+ export declare const billingAutoTopUpPreviewSchema: import("zod").ZodObject<{
173
+ action: import("zod").ZodEnum<{
174
+ enable: "enable";
175
+ edit: "edit";
176
+ disable: "disable";
177
+ resume: "resume";
178
+ }>;
179
+ after: import("zod").ZodNullable<import("zod").ZodObject<{
180
+ ceiling: import("zod").ZodObject<{
181
+ currency: import("zod").ZodLiteral<"USD">;
182
+ microdollars: import("zod").ZodString;
183
+ scale: import("zod").ZodLiteral<6>;
184
+ }, import("zod/v4/core").$strip>;
185
+ credit: import("zod").ZodObject<{
186
+ currency: import("zod").ZodLiteral<"USD">;
187
+ microdollars: import("zod").ZodString;
188
+ scale: import("zod").ZodLiteral<6>;
189
+ }, import("zod/v4/core").$strip>;
190
+ triggerBelow: import("zod").ZodObject<{
191
+ currency: import("zod").ZodLiteral<"USD">;
192
+ microdollars: import("zod").ZodString;
193
+ scale: import("zod").ZodLiteral<6>;
194
+ }, import("zod/v4/core").$strip>;
195
+ }, import("zod/v4/core").$strict>>;
196
+ before: import("zod").ZodNullable<import("zod").ZodObject<{
197
+ ceiling: import("zod").ZodObject<{
198
+ currency: import("zod").ZodLiteral<"USD">;
199
+ microdollars: import("zod").ZodString;
200
+ scale: import("zod").ZodLiteral<6>;
201
+ }, import("zod/v4/core").$strip>;
202
+ credit: import("zod").ZodObject<{
203
+ currency: import("zod").ZodLiteral<"USD">;
204
+ microdollars: import("zod").ZodString;
205
+ scale: import("zod").ZodLiteral<6>;
206
+ }, import("zod/v4/core").$strip>;
207
+ triggerBelow: import("zod").ZodObject<{
208
+ currency: import("zod").ZodLiteral<"USD">;
209
+ microdollars: import("zod").ZodString;
210
+ scale: import("zod").ZodLiteral<6>;
211
+ }, import("zod/v4/core").$strip>;
212
+ }, import("zod/v4/core").$strict>>;
213
+ currentPeriod: import("zod").ZodObject<{
214
+ end: import("zod").ZodString;
215
+ pending: import("zod").ZodObject<{
216
+ currency: import("zod").ZodLiteral<"USD">;
217
+ microdollars: import("zod").ZodString;
218
+ scale: import("zod").ZodLiteral<6>;
219
+ }, import("zod/v4/core").$strip>;
220
+ remaining: import("zod").ZodNullable<import("zod").ZodObject<{
221
+ currency: import("zod").ZodLiteral<"USD">;
222
+ microdollars: import("zod").ZodString;
223
+ scale: import("zod").ZodLiteral<6>;
224
+ }, import("zod/v4/core").$strip>>;
225
+ settled: import("zod").ZodObject<{
226
+ currency: import("zod").ZodLiteral<"USD">;
227
+ microdollars: import("zod").ZodString;
228
+ scale: import("zod").ZodLiteral<6>;
229
+ }, import("zod/v4/core").$strip>;
230
+ start: import("zod").ZodString;
231
+ }, import("zod/v4/core").$strict>;
232
+ expectedRevision: import("zod").ZodNumber;
233
+ expandsAuthority: import("zod").ZodBoolean;
234
+ expiresAt: import("zod").ZodString;
235
+ preview: import("zod").ZodString;
236
+ subscribedProjectFees: import("zod").ZodObject<{
237
+ currency: import("zod").ZodLiteral<"USD">;
238
+ microdollars: import("zod").ZodString;
239
+ scale: import("zod").ZodLiteral<6>;
240
+ }, import("zod/v4/core").$strip>;
241
+ }, import("zod/v4/core").$strict>;
242
+ export declare const billingPaymentOperationSchema: import("zod").ZodObject<{
243
+ createdAt: import("zod").ZodString;
244
+ credit: import("zod").ZodObject<{
245
+ currency: import("zod").ZodLiteral<"USD">;
246
+ microdollars: import("zod").ZodString;
247
+ scale: import("zod").ZodLiteral<6>;
248
+ }, import("zod/v4/core").$strip>;
249
+ gross: import("zod").ZodNullable<import("zod").ZodObject<{
250
+ currency: import("zod").ZodLiteral<"USD">;
251
+ microdollars: import("zod").ZodString;
252
+ scale: import("zod").ZodLiteral<6>;
253
+ }, import("zod/v4/core").$strip>>;
254
+ id: import("zod").ZodString;
255
+ kind: import("zod").ZodEnum<{
256
+ manual: "manual";
257
+ automatic: "automatic";
258
+ }>;
259
+ paymentUrl: import("zod").ZodOptional<import("zod").ZodString>;
260
+ reason: import("zod").ZodOptional<import("zod").ZodString>;
261
+ receiptUrl: import("zod").ZodOptional<import("zod").ZodString>;
262
+ state: import("zod").ZodEnum<{
263
+ pending: "pending";
264
+ paid: "paid";
265
+ failed: "failed";
266
+ "authentication-required": "authentication-required";
267
+ "action-required": "action-required";
268
+ canceled: "canceled";
269
+ refunded: "refunded";
270
+ reversed: "reversed";
271
+ disputed: "disputed";
272
+ }>;
273
+ tax: import("zod").ZodNullable<import("zod").ZodObject<{
274
+ currency: import("zod").ZodLiteral<"USD">;
275
+ microdollars: import("zod").ZodString;
276
+ scale: import("zod").ZodLiteral<6>;
277
+ }, import("zod/v4/core").$strip>>;
278
+ taxStatus: import("zod").ZodEnum<{
279
+ confirmed: "confirmed";
280
+ "calculated-at-checkout": "calculated-at-checkout";
281
+ }>;
282
+ updatedAt: import("zod").ZodString;
283
+ }, import("zod/v4/core").$strict>;
284
+ export declare const billingFundingViewSchema: import("zod").ZodObject<{
285
+ automaticExecutionTopUp: import("zod").ZodObject<{
286
+ ceiling: import("zod").ZodNullable<import("zod").ZodObject<{
287
+ currency: import("zod").ZodLiteral<"USD">;
288
+ microdollars: import("zod").ZodString;
289
+ scale: import("zod").ZodLiteral<6>;
290
+ }, import("zod/v4/core").$strip>>;
291
+ currentPeriod: import("zod").ZodObject<{
292
+ end: import("zod").ZodString;
293
+ pending: import("zod").ZodObject<{
294
+ currency: import("zod").ZodLiteral<"USD">;
295
+ microdollars: import("zod").ZodString;
296
+ scale: import("zod").ZodLiteral<6>;
297
+ }, import("zod/v4/core").$strip>;
298
+ remaining: import("zod").ZodNullable<import("zod").ZodObject<{
299
+ currency: import("zod").ZodLiteral<"USD">;
300
+ microdollars: import("zod").ZodString;
301
+ scale: import("zod").ZodLiteral<6>;
302
+ }, import("zod/v4/core").$strip>>;
303
+ settled: import("zod").ZodObject<{
304
+ currency: import("zod").ZodLiteral<"USD">;
305
+ microdollars: import("zod").ZodString;
306
+ scale: import("zod").ZodLiteral<6>;
307
+ }, import("zod/v4/core").$strip>;
308
+ start: import("zod").ZodString;
309
+ }, import("zod/v4/core").$strip>;
310
+ rule: import("zod").ZodObject<{
311
+ cooldownUntil: import("zod").ZodNullable<import("zod").ZodString>;
312
+ desired: import("zod").ZodNullable<import("zod").ZodObject<{
313
+ ceiling: import("zod").ZodObject<{
314
+ currency: import("zod").ZodLiteral<"USD">;
315
+ microdollars: import("zod").ZodString;
316
+ scale: import("zod").ZodLiteral<6>;
317
+ }, import("zod/v4/core").$strip>;
318
+ credit: import("zod").ZodObject<{
319
+ currency: import("zod").ZodLiteral<"USD">;
320
+ microdollars: import("zod").ZodString;
321
+ scale: import("zod").ZodLiteral<6>;
322
+ }, import("zod/v4/core").$strip>;
323
+ triggerBelow: import("zod").ZodObject<{
324
+ currency: import("zod").ZodLiteral<"USD">;
325
+ microdollars: import("zod").ZodString;
326
+ scale: import("zod").ZodLiteral<6>;
327
+ }, import("zod/v4/core").$strip>;
328
+ }, import("zod/v4/core").$strict>>;
329
+ effective: import("zod").ZodNullable<import("zod").ZodObject<{
330
+ ceiling: import("zod").ZodObject<{
331
+ currency: import("zod").ZodLiteral<"USD">;
332
+ microdollars: import("zod").ZodString;
333
+ scale: import("zod").ZodLiteral<6>;
334
+ }, import("zod/v4/core").$strip>;
335
+ credit: import("zod").ZodObject<{
336
+ currency: import("zod").ZodLiteral<"USD">;
337
+ microdollars: import("zod").ZodString;
338
+ scale: import("zod").ZodLiteral<6>;
339
+ }, import("zod/v4/core").$strip>;
340
+ triggerBelow: import("zod").ZodObject<{
341
+ currency: import("zod").ZodLiteral<"USD">;
342
+ microdollars: import("zod").ZodString;
343
+ scale: import("zod").ZodLiteral<6>;
344
+ }, import("zod/v4/core").$strip>;
345
+ }, import("zod/v4/core").$strict>>;
346
+ setupUrl: import("zod").ZodOptional<import("zod").ZodString>;
347
+ state: import("zod").ZodEnum<{
348
+ disabled: "disabled";
349
+ "payment-method-required": "payment-method-required";
350
+ ready: "ready";
351
+ }>;
352
+ suspension: import("zod").ZodNullable<import("zod").ZodObject<{
353
+ at: import("zod").ZodString;
354
+ reason: import("zod").ZodEnum<{
355
+ "authentication-required": "authentication-required";
356
+ "payment-failed": "payment-failed";
357
+ }>;
358
+ }, import("zod/v4/core").$strict>>;
359
+ }, import("zod/v4/core").$strict>;
360
+ revision: import("zod").ZodNumber;
361
+ }, import("zod/v4/core").$strip>;
362
+ credit: import("zod").ZodObject<{
363
+ amountOwed: import("zod").ZodObject<{
364
+ currency: import("zod").ZodLiteral<"USD">;
365
+ microdollars: import("zod").ZodString;
366
+ scale: import("zod").ZodLiteral<6>;
367
+ }, import("zod/v4/core").$strip>;
368
+ available: import("zod").ZodObject<{
369
+ currency: import("zod").ZodLiteral<"USD">;
370
+ microdollars: import("zod").ZodString;
371
+ scale: import("zod").ZodLiteral<6>;
372
+ }, import("zod/v4/core").$strip>;
373
+ reserved: import("zod").ZodObject<{
374
+ currency: import("zod").ZodLiteral<"USD">;
375
+ microdollars: import("zod").ZodString;
376
+ scale: import("zod").ZodLiteral<6>;
377
+ }, import("zod/v4/core").$strip>;
378
+ }, import("zod/v4/core").$strip>;
379
+ freshness: import("zod").ZodObject<{
380
+ kind: import("zod").ZodLiteral<"authoritative">;
381
+ }, import("zod/v4/core").$strip>;
382
+ paymentOperations: import("zod").ZodArray<import("zod").ZodObject<{
383
+ createdAt: import("zod").ZodString;
384
+ credit: import("zod").ZodObject<{
385
+ currency: import("zod").ZodLiteral<"USD">;
386
+ microdollars: import("zod").ZodString;
387
+ scale: import("zod").ZodLiteral<6>;
388
+ }, import("zod/v4/core").$strip>;
389
+ gross: import("zod").ZodNullable<import("zod").ZodObject<{
390
+ currency: import("zod").ZodLiteral<"USD">;
391
+ microdollars: import("zod").ZodString;
392
+ scale: import("zod").ZodLiteral<6>;
393
+ }, import("zod/v4/core").$strip>>;
394
+ id: import("zod").ZodString;
395
+ kind: import("zod").ZodEnum<{
396
+ manual: "manual";
397
+ automatic: "automatic";
398
+ }>;
399
+ paymentUrl: import("zod").ZodOptional<import("zod").ZodString>;
400
+ reason: import("zod").ZodOptional<import("zod").ZodString>;
401
+ receiptUrl: import("zod").ZodOptional<import("zod").ZodString>;
402
+ state: import("zod").ZodEnum<{
403
+ pending: "pending";
404
+ paid: "paid";
405
+ failed: "failed";
406
+ "authentication-required": "authentication-required";
407
+ "action-required": "action-required";
408
+ canceled: "canceled";
409
+ refunded: "refunded";
410
+ reversed: "reversed";
411
+ disputed: "disputed";
412
+ }>;
413
+ tax: import("zod").ZodNullable<import("zod").ZodObject<{
414
+ currency: import("zod").ZodLiteral<"USD">;
415
+ microdollars: import("zod").ZodString;
416
+ scale: import("zod").ZodLiteral<6>;
417
+ }, import("zod/v4/core").$strip>>;
418
+ taxStatus: import("zod").ZodEnum<{
419
+ confirmed: "confirmed";
420
+ "calculated-at-checkout": "calculated-at-checkout";
421
+ }>;
422
+ updatedAt: import("zod").ZodString;
423
+ }, import("zod/v4/core").$strict>>;
424
+ subscribedProjectFees: import("zod").ZodObject<{
425
+ currency: import("zod").ZodLiteral<"USD">;
426
+ microdollars: import("zod").ZodString;
427
+ scale: import("zod").ZodLiteral<6>;
428
+ }, import("zod/v4/core").$strip>;
429
+ }, import("zod/v4/core").$strict>;
430
+ export declare const BILLING_NOTICE_KINDS: readonly ["budget-warning", "budget-exhausted", "low-credit", "automatic-top-up-cap-reached", "funding-blocked", "payment-pending", "payment-succeeded", "payment-failed", "payment-authentication-required", "payment-outcome-unresolved", "service-restored"];
431
+ type BillingNoticeMoney = z.infer<typeof nonnegativeExactMoneySchema>;
432
+ export interface BillingNotice {
433
+ readonly amounts: {
434
+ readonly available?: BillingNoticeMoney | undefined;
435
+ readonly gross?: BillingNoticeMoney | undefined;
436
+ readonly limit?: BillingNoticeMoney | undefined;
437
+ readonly threshold?: BillingNoticeMoney | undefined;
438
+ };
439
+ readonly detail: string;
440
+ readonly email: {
441
+ readonly attempts: number;
442
+ readonly failureCode?: string | undefined;
443
+ readonly lastAttemptAt: string | null;
444
+ readonly state: "pending" | "delivered" | "failed" | "suppressed";
445
+ };
446
+ readonly id: string;
447
+ readonly kind: (typeof BILLING_NOTICE_KINDS)[number];
448
+ readonly occurredAt: string;
449
+ readonly payment: {
450
+ readonly operation: string;
451
+ readonly state: (typeof BILLING_PAYMENT_STATES)[number];
452
+ } | null;
453
+ readonly recoveryPath: "#billing" | "#billing-funding" | "#billing-notification-settings";
454
+ readonly resolvedAt: string | null;
455
+ readonly scope: {
456
+ readonly kind: "organization";
457
+ } | {
458
+ readonly kind: "project";
459
+ readonly project: z.infer<typeof projectIdSchema>;
460
+ };
461
+ readonly severity: "warning" | "critical" | "recovery";
462
+ readonly state: "active" | "resolved";
463
+ readonly title: string;
464
+ readonly updatedAt: string;
465
+ }
466
+ export interface BillingNoticePage {
467
+ readonly data: readonly BillingNotice[];
468
+ readonly freshness: {
469
+ readonly kind: "authoritative";
470
+ };
471
+ readonly nextCursor?: string | undefined;
472
+ }
473
+ export interface BillingNotificationSettings {
474
+ readonly criticalEmail: true;
475
+ readonly freshness: {
476
+ readonly kind: "authoritative";
477
+ };
478
+ readonly lowCreditThreshold: z.infer<typeof exactCentMoneySchema>;
479
+ readonly noncriticalEmail: boolean;
480
+ readonly recipients: {
481
+ readonly billingContacts: "active-billing-role-members";
482
+ readonly owners: true;
483
+ };
484
+ readonly revision: number;
485
+ }
486
+ export interface BillingNotificationSettingsUpdateRequest {
487
+ readonly expectedRevision: number;
488
+ /**
489
+ * A chosen threshold; `null` to warn at one fifth of the most recent credit
490
+ * purchase or grant again, which is the default; omitted to leave the
491
+ * threshold exactly as it is, chosen or not.
492
+ */
493
+ readonly lowCreditThreshold?: z.infer<typeof exactCentMoneySchema> | null | undefined;
494
+ readonly noncriticalEmail: boolean;
495
+ }
496
+ export declare const billingNoticeRecoveryPathSchema: import("zod").ZodEnum<{
497
+ "#billing": "#billing";
498
+ "#billing-funding": "#billing-funding";
499
+ "#billing-notification-settings": "#billing-notification-settings";
500
+ }>;
501
+ export declare const billingNoticeSchema: z.ZodType<BillingNotice>;
502
+ export declare const billingNoticePageSchema: z.ZodType<BillingNoticePage>;
503
+ export declare const billingNotificationSettingsSchema: z.ZodType<BillingNotificationSettings>;
504
+ export declare const billingNotificationSettingsUpdateRequestSchema: z.ZodType<BillingNotificationSettingsUpdateRequest>;
505
+ export declare const billingRefundRequestCreateSchema: import("zod").ZodObject<{
506
+ amount: import("zod").ZodObject<{
507
+ currency: import("zod").ZodLiteral<"USD">;
508
+ microdollars: import("zod").ZodString;
509
+ scale: import("zod").ZodLiteral<6>;
510
+ }, import("zod/v4/core").$strip>;
511
+ confirmed: import("zod").ZodLiteral<true>;
512
+ paymentOperation: import("zod").ZodString;
513
+ reason: import("zod").ZodString;
514
+ }, import("zod/v4/core").$strict>;
515
+ export declare const billingRefundResolutionRequestSchema: import("zod").ZodObject<{
516
+ confirmed: import("zod").ZodLiteral<true>;
517
+ decision: import("zod").ZodEnum<{
518
+ completed: "completed";
519
+ declined: "declined";
520
+ }>;
521
+ gross: import("zod").ZodOptional<import("zod").ZodObject<{
522
+ currency: import("zod").ZodLiteral<"USD">;
523
+ microdollars: import("zod").ZodString;
524
+ scale: import("zod").ZodLiteral<6>;
525
+ }, import("zod/v4/core").$strip>>;
526
+ providerRefund: import("zod").ZodOptional<import("zod").ZodString>;
527
+ tax: import("zod").ZodOptional<import("zod").ZodObject<{
528
+ currency: import("zod").ZodLiteral<"USD">;
529
+ microdollars: import("zod").ZodString;
530
+ scale: import("zod").ZodLiteral<6>;
531
+ }, import("zod/v4/core").$strip>>;
532
+ }, import("zod/v4/core").$strict>;
533
+ export declare const billingRefundRequestViewSchema: import("zod").ZodObject<{
534
+ amount: import("zod").ZodObject<{
535
+ currency: import("zod").ZodLiteral<"USD">;
536
+ microdollars: import("zod").ZodString;
537
+ scale: import("zod").ZodLiteral<6>;
538
+ }, import("zod/v4/core").$strip>;
539
+ id: import("zod").ZodString;
540
+ paymentOperation: import("zod").ZodString;
541
+ requestedAt: import("zod").ZodString;
542
+ state: import("zod").ZodLiteral<"operator-review-pending">;
543
+ }, import("zod/v4/core").$strict>;
544
+ export type BillingFundingQuoteRequest = z.infer<typeof billingFundingQuoteRequestSchema>;
545
+ export type BillingFundingQuote = z.infer<typeof billingFundingQuoteSchema>;
546
+ export type BillingAutoTopUpConfiguration = z.infer<typeof billingAutoTopUpConfigurationSchema>;
547
+ export type BillingAutoTopUpRule = z.infer<typeof billingAutoTopUpRuleSchema>;
548
+ export type BillingAutoTopUpPreviewRequest = z.infer<typeof billingAutoTopUpPreviewRequestSchema>;
549
+ export type BillingAutoTopUpPreview = z.infer<typeof billingAutoTopUpPreviewSchema>;
550
+ export type BillingAutoTopUpApplyRequest = z.infer<typeof billingAutoTopUpApplyRequestSchema>;
551
+ export type BillingPurchaseRequest = z.infer<typeof billingPurchaseRequestSchema>;
552
+ export type BillingCeilingUpdateRequest = z.infer<typeof billingCeilingUpdateRequestSchema>;
553
+ export type BillingPaymentOperation = z.infer<typeof billingPaymentOperationSchema>;
554
+ export type BillingFundingView = z.infer<typeof billingFundingViewSchema>;
555
+ export type BillingRefundRequestCreate = z.infer<typeof billingRefundRequestCreateSchema>;
556
+ export type BillingRefundResolutionRequest = z.infer<typeof billingRefundResolutionRequestSchema>;
557
+ export type BillingRefundRequestView = z.infer<typeof billingRefundRequestViewSchema>;
558
+ export declare const billingBudgetUpdateRequestSchema: import("zod").ZodObject<{
559
+ advisoryBudget: import("zod").ZodNullable<import("zod").ZodObject<{
560
+ currency: import("zod").ZodLiteral<"USD">;
561
+ microdollars: import("zod").ZodString;
562
+ scale: import("zod").ZodLiteral<6>;
563
+ }, import("zod/v4/core").$strip>>;
564
+ expectedRevision: import("zod").ZodNumber;
565
+ hardCap: import("zod").ZodNullable<import("zod").ZodObject<{
566
+ currency: import("zod").ZodLiteral<"USD">;
567
+ microdollars: import("zod").ZodString;
568
+ scale: import("zod").ZodLiteral<6>;
569
+ }, import("zod/v4/core").$strip>>;
570
+ }, import("zod/v4/core").$strip>;
571
+ export type BillingBudgetUpdateRequest = z.infer<typeof billingBudgetUpdateRequestSchema>;
572
+ export declare const billingBudgetPolicySchema: import("zod").ZodObject<{
573
+ desired: import("zod").ZodObject<{
574
+ advisoryBudget: import("zod").ZodNullable<import("zod").ZodObject<{
575
+ currency: import("zod").ZodLiteral<"USD">;
576
+ microdollars: import("zod").ZodString;
577
+ scale: import("zod").ZodLiteral<6>;
578
+ }, import("zod/v4/core").$strip>>;
579
+ hardCap: import("zod").ZodNullable<import("zod").ZodObject<{
580
+ currency: import("zod").ZodLiteral<"USD">;
581
+ microdollars: import("zod").ZodString;
582
+ scale: import("zod").ZodLiteral<6>;
583
+ }, import("zod/v4/core").$strip>>;
584
+ }, import("zod/v4/core").$strip>;
585
+ desiredRevision: import("zod").ZodNumber;
586
+ effectiveRevision: import("zod").ZodNumber;
587
+ pending: import("zod").ZodBoolean;
588
+ }, import("zod/v4/core").$strip>;
589
+ export declare const billingPeriodSummarySchema: import("zod").ZodObject<{
590
+ advisoryBudget: import("zod").ZodOptional<import("zod").ZodObject<{
591
+ currency: import("zod").ZodLiteral<"USD">;
592
+ microdollars: import("zod").ZodString;
593
+ scale: import("zod").ZodLiteral<6>;
594
+ }, import("zod/v4/core").$strip>>;
595
+ hardCap: import("zod").ZodOptional<import("zod").ZodObject<{
596
+ currency: import("zod").ZodLiteral<"USD">;
597
+ microdollars: import("zod").ZodString;
598
+ scale: import("zod").ZodLiteral<6>;
599
+ }, import("zod/v4/core").$strip>>;
600
+ remainingToHardCap: import("zod").ZodOptional<import("zod").ZodObject<{
601
+ currency: import("zod").ZodLiteral<"USD">;
602
+ microdollars: import("zod").ZodString;
603
+ scale: import("zod").ZodLiteral<6>;
604
+ }, import("zod/v4/core").$strip>>;
605
+ advisoryBudgetProgress: import("zod").ZodOptional<import("zod").ZodObject<{
606
+ committed: import("zod").ZodObject<{
607
+ currency: import("zod").ZodLiteral<"USD">;
608
+ microdollars: import("zod").ZodString;
609
+ scale: import("zod").ZodLiteral<6>;
610
+ }, import("zod/v4/core").$strip>;
611
+ remaining: import("zod").ZodObject<{
612
+ currency: import("zod").ZodLiteral<"USD">;
613
+ microdollars: import("zod").ZodString;
614
+ scale: import("zod").ZodLiteral<6>;
615
+ }, import("zod/v4/core").$strip>;
616
+ }, import("zod/v4/core").$strip>>;
617
+ automaticExecutionTopUp: import("zod").ZodObject<{
618
+ cap: import("zod").ZodOptional<import("zod").ZodObject<{
619
+ currency: import("zod").ZodLiteral<"USD">;
620
+ microdollars: import("zod").ZodString;
621
+ scale: import("zod").ZodLiteral<6>;
622
+ }, import("zod/v4/core").$strip>>;
623
+ pending: import("zod").ZodObject<{
624
+ currency: import("zod").ZodLiteral<"USD">;
625
+ microdollars: import("zod").ZodString;
626
+ scale: import("zod").ZodLiteral<6>;
627
+ }, import("zod/v4/core").$strip>;
628
+ remainingToCap: import("zod").ZodOptional<import("zod").ZodObject<{
629
+ currency: import("zod").ZodLiteral<"USD">;
630
+ microdollars: import("zod").ZodString;
631
+ scale: import("zod").ZodLiteral<6>;
632
+ }, import("zod/v4/core").$strip>>;
633
+ settled: import("zod").ZodObject<{
634
+ currency: import("zod").ZodLiteral<"USD">;
635
+ microdollars: import("zod").ZodString;
636
+ scale: import("zod").ZodLiteral<6>;
637
+ }, import("zod/v4/core").$strip>;
638
+ }, import("zod/v4/core").$strip>;
639
+ subscribedProjectFees: import("zod").ZodObject<{
640
+ currency: import("zod").ZodLiteral<"USD">;
641
+ microdollars: import("zod").ZodString;
642
+ scale: import("zod").ZodLiteral<6>;
643
+ }, import("zod/v4/core").$strip>;
644
+ reservedUsage: import("zod").ZodObject<{
645
+ currency: import("zod").ZodLiteral<"USD">;
646
+ microdollars: import("zod").ZodString;
647
+ scale: import("zod").ZodLiteral<6>;
648
+ }, import("zod/v4/core").$strip>;
649
+ settledUsage: import("zod").ZodObject<{
650
+ currency: import("zod").ZodLiteral<"USD">;
651
+ microdollars: import("zod").ZodString;
652
+ scale: import("zod").ZodLiteral<6>;
653
+ }, import("zod/v4/core").$strip>;
654
+ start: import("zod").ZodString;
655
+ end: import("zod").ZodString;
656
+ }, import("zod/v4/core").$strip>;
657
+ export declare const billingSummarySchema: import("zod").ZodObject<{
658
+ activation: import("zod").ZodObject<{
659
+ boundary: import("zod").ZodString;
660
+ mode: import("zod").ZodEnum<{
661
+ disabled: "disabled";
662
+ shadow: "shadow";
663
+ enforced: "enforced";
664
+ }>;
665
+ }, import("zod/v4/core").$strip>;
666
+ blockingReasons: import("zod").ZodArray<import("zod").ZodEnum<{
667
+ "billing-state-missing": "billing-state-missing";
668
+ "billing-account-closed": "billing-account-closed";
669
+ "project-ineligible": "project-ineligible";
670
+ "insufficient-credit": "insufficient-credit";
671
+ "execution-cap-reached": "execution-cap-reached";
672
+ }>>;
673
+ budgetPolicy: import("zod").ZodObject<{
674
+ desired: import("zod").ZodObject<{
675
+ advisoryBudget: import("zod").ZodNullable<import("zod").ZodObject<{
676
+ currency: import("zod").ZodLiteral<"USD">;
677
+ microdollars: import("zod").ZodString;
678
+ scale: import("zod").ZodLiteral<6>;
679
+ }, import("zod/v4/core").$strip>>;
680
+ hardCap: import("zod").ZodNullable<import("zod").ZodObject<{
681
+ currency: import("zod").ZodLiteral<"USD">;
682
+ microdollars: import("zod").ZodString;
683
+ scale: import("zod").ZodLiteral<6>;
684
+ }, import("zod/v4/core").$strip>>;
685
+ }, import("zod/v4/core").$strip>;
686
+ desiredRevision: import("zod").ZodNumber;
687
+ effectiveRevision: import("zod").ZodNumber;
688
+ pending: import("zod").ZodBoolean;
689
+ }, import("zod/v4/core").$strip>;
690
+ closedAt: import("zod").ZodOptional<import("zod").ZodString>;
691
+ credit: import("zod").ZodObject<{
692
+ available: import("zod").ZodObject<{
693
+ currency: import("zod").ZodLiteral<"USD">;
694
+ microdollars: import("zod").ZodString;
695
+ scale: import("zod").ZodLiteral<6>;
696
+ }, import("zod/v4/core").$strip>;
697
+ consumed: import("zod").ZodObject<{
698
+ currency: import("zod").ZodLiteral<"USD">;
699
+ microdollars: import("zod").ZodString;
700
+ scale: import("zod").ZodLiteral<6>;
701
+ }, import("zod/v4/core").$strip>;
702
+ reserved: import("zod").ZodObject<{
703
+ currency: import("zod").ZodLiteral<"USD">;
704
+ microdollars: import("zod").ZodString;
705
+ scale: import("zod").ZodLiteral<6>;
706
+ }, import("zod/v4/core").$strip>;
707
+ }, import("zod/v4/core").$strip>;
708
+ desiredRevision: import("zod").ZodNumber;
709
+ effectiveRevision: import("zod").ZodNumber;
710
+ freshness: import("zod").ZodObject<{
711
+ kind: import("zod").ZodLiteral<"authoritative">;
712
+ }, import("zod/v4/core").$strip>;
713
+ includedProject: import("zod").ZodOptional<import("zod").ZodString>;
714
+ period: import("zod").ZodOptional<import("zod").ZodObject<{
715
+ advisoryBudget: import("zod").ZodOptional<import("zod").ZodObject<{
716
+ currency: import("zod").ZodLiteral<"USD">;
717
+ microdollars: import("zod").ZodString;
718
+ scale: import("zod").ZodLiteral<6>;
719
+ }, import("zod/v4/core").$strip>>;
720
+ hardCap: import("zod").ZodOptional<import("zod").ZodObject<{
721
+ currency: import("zod").ZodLiteral<"USD">;
722
+ microdollars: import("zod").ZodString;
723
+ scale: import("zod").ZodLiteral<6>;
724
+ }, import("zod/v4/core").$strip>>;
725
+ remainingToHardCap: import("zod").ZodOptional<import("zod").ZodObject<{
726
+ currency: import("zod").ZodLiteral<"USD">;
727
+ microdollars: import("zod").ZodString;
728
+ scale: import("zod").ZodLiteral<6>;
729
+ }, import("zod/v4/core").$strip>>;
730
+ advisoryBudgetProgress: import("zod").ZodOptional<import("zod").ZodObject<{
731
+ committed: import("zod").ZodObject<{
732
+ currency: import("zod").ZodLiteral<"USD">;
733
+ microdollars: import("zod").ZodString;
734
+ scale: import("zod").ZodLiteral<6>;
735
+ }, import("zod/v4/core").$strip>;
736
+ remaining: import("zod").ZodObject<{
737
+ currency: import("zod").ZodLiteral<"USD">;
738
+ microdollars: import("zod").ZodString;
739
+ scale: import("zod").ZodLiteral<6>;
740
+ }, import("zod/v4/core").$strip>;
741
+ }, import("zod/v4/core").$strip>>;
742
+ automaticExecutionTopUp: import("zod").ZodObject<{
743
+ cap: import("zod").ZodOptional<import("zod").ZodObject<{
744
+ currency: import("zod").ZodLiteral<"USD">;
745
+ microdollars: import("zod").ZodString;
746
+ scale: import("zod").ZodLiteral<6>;
747
+ }, import("zod/v4/core").$strip>>;
748
+ pending: import("zod").ZodObject<{
749
+ currency: import("zod").ZodLiteral<"USD">;
750
+ microdollars: import("zod").ZodString;
751
+ scale: import("zod").ZodLiteral<6>;
752
+ }, import("zod/v4/core").$strip>;
753
+ remainingToCap: import("zod").ZodOptional<import("zod").ZodObject<{
754
+ currency: import("zod").ZodLiteral<"USD">;
755
+ microdollars: import("zod").ZodString;
756
+ scale: import("zod").ZodLiteral<6>;
757
+ }, import("zod/v4/core").$strip>>;
758
+ settled: import("zod").ZodObject<{
759
+ currency: import("zod").ZodLiteral<"USD">;
760
+ microdollars: import("zod").ZodString;
761
+ scale: import("zod").ZodLiteral<6>;
762
+ }, import("zod/v4/core").$strip>;
763
+ }, import("zod/v4/core").$strip>;
764
+ subscribedProjectFees: import("zod").ZodObject<{
765
+ currency: import("zod").ZodLiteral<"USD">;
766
+ microdollars: import("zod").ZodString;
767
+ scale: import("zod").ZodLiteral<6>;
768
+ }, import("zod/v4/core").$strip>;
769
+ reservedUsage: import("zod").ZodObject<{
770
+ currency: import("zod").ZodLiteral<"USD">;
771
+ microdollars: import("zod").ZodString;
772
+ scale: import("zod").ZodLiteral<6>;
773
+ }, import("zod/v4/core").$strip>;
774
+ settledUsage: import("zod").ZodObject<{
775
+ currency: import("zod").ZodLiteral<"USD">;
776
+ microdollars: import("zod").ZodString;
777
+ scale: import("zod").ZodLiteral<6>;
778
+ }, import("zod/v4/core").$strip>;
779
+ start: import("zod").ZodString;
780
+ end: import("zod").ZodString;
781
+ }, import("zod/v4/core").$strip>>;
782
+ pending: import("zod").ZodBoolean;
783
+ priceVersion: import("zod").ZodString;
784
+ trialExpiresAt: import("zod").ZodOptional<import("zod").ZodString>;
785
+ }, import("zod/v4/core").$strip>;
786
+ export type BillingSummaryView = z.infer<typeof billingSummarySchema>;
787
+ export declare const billingBudgetUpdateResponseSchema: import("zod").ZodObject<{
788
+ budgetPolicy: import("zod").ZodObject<{
789
+ desired: import("zod").ZodObject<{
790
+ advisoryBudget: import("zod").ZodNullable<import("zod").ZodObject<{
791
+ currency: import("zod").ZodLiteral<"USD">;
792
+ microdollars: import("zod").ZodString;
793
+ scale: import("zod").ZodLiteral<6>;
794
+ }, import("zod/v4/core").$strip>>;
795
+ hardCap: import("zod").ZodNullable<import("zod").ZodObject<{
796
+ currency: import("zod").ZodLiteral<"USD">;
797
+ microdollars: import("zod").ZodString;
798
+ scale: import("zod").ZodLiteral<6>;
799
+ }, import("zod/v4/core").$strip>>;
800
+ }, import("zod/v4/core").$strip>;
801
+ desiredRevision: import("zod").ZodNumber;
802
+ effectiveRevision: import("zod").ZodNumber;
803
+ pending: import("zod").ZodBoolean;
804
+ }, import("zod/v4/core").$strip>;
805
+ freshness: import("zod").ZodObject<{
806
+ kind: import("zod").ZodLiteral<"authoritative">;
807
+ }, import("zod/v4/core").$strip>;
808
+ }, import("zod/v4/core").$strip>;
809
+ export type BillingBudgetUpdateResponse = z.infer<typeof billingBudgetUpdateResponseSchema>;
810
+ export declare const billingBudgetUpdateRequestHeadersSchema: import("zod").ZodObject<{
811
+ "Idempotency-Key": import("zod").ZodString;
812
+ }, import("zod/v4/core").$strip>;
813
+ export declare const billingLedgerEntrySchema: import("zod").ZodObject<{
814
+ amount: import("zod").ZodObject<{
815
+ currency: import("zod").ZodLiteral<"USD">;
816
+ microdollars: import("zod").ZodString;
817
+ scale: import("zod").ZodLiteral<6>;
818
+ }, import("zod/v4/core").$strip>;
819
+ kind: import("zod").ZodEnum<{
820
+ credit_granted: "credit_granted";
821
+ credit_reversed: "credit_reversed";
822
+ attempt_debited: "attempt_debited";
823
+ attempt_released: "attempt_released";
824
+ shadow_attempt_debited: "shadow_attempt_debited";
825
+ shadow_attempt_released: "shadow_attempt_released";
826
+ late_evidence_waived: "late_evidence_waived";
827
+ policy_installed: "policy_installed";
828
+ budget_policy_updated: "budget_policy_updated";
829
+ budget_threshold_reached: "budget_threshold_reached";
830
+ budget_exhausted: "budget_exhausted";
831
+ budget_recovered: "budget_recovered";
832
+ automatic_charge_ceiling_updated: "automatic_charge_ceiling_updated";
833
+ payment_reserved: "payment_reserved";
834
+ payment_submitted: "payment_submitted";
835
+ payment_pending: "payment_pending";
836
+ payment_paid: "payment_paid";
837
+ payment_failed: "payment_failed";
838
+ payment_canceled: "payment_canceled";
839
+ payment_authentication_required: "payment_authentication_required";
840
+ payment_action_required: "payment_action_required";
841
+ payment_refunded: "payment_refunded";
842
+ payment_disputed: "payment_disputed";
843
+ payment_reversed: "payment_reversed";
844
+ payment_dispute_restored: "payment_dispute_restored";
845
+ refund_requested: "refund_requested";
846
+ payment_refund_canceled: "payment_refund_canceled";
847
+ automatic_top_up_cap_reached: "automatic_top_up_cap_reached";
848
+ automatic_charge_threshold_reached: "automatic_charge_threshold_reached";
849
+ automatic_charge_threshold_recovered: "automatic_charge_threshold_recovered";
850
+ low_credit_reached: "low_credit_reached";
851
+ low_credit_recovered: "low_credit_recovered";
852
+ notification_settings_updated: "notification_settings_updated";
853
+ service_blocked: "service_blocked";
854
+ service_restored: "service_restored";
855
+ }>;
856
+ note: import("zod").ZodOptional<import("zod").ZodEnum<{
857
+ "provider-details-attached": "provider-details-attached";
858
+ }>>;
859
+ period: import("zod").ZodOptional<import("zod").ZodString>;
860
+ recordedAt: import("zod").ZodString;
861
+ reference: import("zod").ZodObject<{
862
+ attempt: import("zod").ZodOptional<import("zod").ZodString>;
863
+ creditLot: import("zod").ZodOptional<import("zod").ZodString>;
864
+ event: import("zod").ZodString;
865
+ paymentOperation: import("zod").ZodOptional<import("zod").ZodString>;
866
+ }, import("zod/v4/core").$strip>;
867
+ sequence: import("zod").ZodString;
868
+ }, import("zod/v4/core").$strip>;
869
+ export type BillingLedgerEntryView = z.infer<typeof billingLedgerEntrySchema>;
870
+ export declare const billingLedgerRequestSchema: import("zod").ZodObject<{
871
+ cursor: import("zod").ZodOptional<import("zod").ZodString>;
872
+ limit: import("zod").ZodDefault<import("zod").ZodNumber>;
873
+ }, import("zod/v4/core").$strip>;
874
+ export type BillingLedgerRequest = z.infer<typeof billingLedgerRequestSchema>;
875
+ export declare const billingLedgerPageSchema: import("zod").ZodObject<{
876
+ data: import("zod").ZodArray<import("zod").ZodObject<{
877
+ amount: import("zod").ZodObject<{
878
+ currency: import("zod").ZodLiteral<"USD">;
879
+ microdollars: import("zod").ZodString;
880
+ scale: import("zod").ZodLiteral<6>;
881
+ }, import("zod/v4/core").$strip>;
882
+ kind: import("zod").ZodEnum<{
883
+ credit_granted: "credit_granted";
884
+ credit_reversed: "credit_reversed";
885
+ attempt_debited: "attempt_debited";
886
+ attempt_released: "attempt_released";
887
+ shadow_attempt_debited: "shadow_attempt_debited";
888
+ shadow_attempt_released: "shadow_attempt_released";
889
+ late_evidence_waived: "late_evidence_waived";
890
+ policy_installed: "policy_installed";
891
+ budget_policy_updated: "budget_policy_updated";
892
+ budget_threshold_reached: "budget_threshold_reached";
893
+ budget_exhausted: "budget_exhausted";
894
+ budget_recovered: "budget_recovered";
895
+ automatic_charge_ceiling_updated: "automatic_charge_ceiling_updated";
896
+ payment_reserved: "payment_reserved";
897
+ payment_submitted: "payment_submitted";
898
+ payment_pending: "payment_pending";
899
+ payment_paid: "payment_paid";
900
+ payment_failed: "payment_failed";
901
+ payment_canceled: "payment_canceled";
902
+ payment_authentication_required: "payment_authentication_required";
903
+ payment_action_required: "payment_action_required";
904
+ payment_refunded: "payment_refunded";
905
+ payment_disputed: "payment_disputed";
906
+ payment_reversed: "payment_reversed";
907
+ payment_dispute_restored: "payment_dispute_restored";
908
+ refund_requested: "refund_requested";
909
+ payment_refund_canceled: "payment_refund_canceled";
910
+ automatic_top_up_cap_reached: "automatic_top_up_cap_reached";
911
+ automatic_charge_threshold_reached: "automatic_charge_threshold_reached";
912
+ automatic_charge_threshold_recovered: "automatic_charge_threshold_recovered";
913
+ low_credit_reached: "low_credit_reached";
914
+ low_credit_recovered: "low_credit_recovered";
915
+ notification_settings_updated: "notification_settings_updated";
916
+ service_blocked: "service_blocked";
917
+ service_restored: "service_restored";
918
+ }>;
919
+ note: import("zod").ZodOptional<import("zod").ZodEnum<{
920
+ "provider-details-attached": "provider-details-attached";
921
+ }>>;
922
+ period: import("zod").ZodOptional<import("zod").ZodString>;
923
+ recordedAt: import("zod").ZodString;
924
+ reference: import("zod").ZodObject<{
925
+ attempt: import("zod").ZodOptional<import("zod").ZodString>;
926
+ creditLot: import("zod").ZodOptional<import("zod").ZodString>;
927
+ event: import("zod").ZodString;
928
+ paymentOperation: import("zod").ZodOptional<import("zod").ZodString>;
929
+ }, import("zod/v4/core").$strip>;
930
+ sequence: import("zod").ZodString;
931
+ }, import("zod/v4/core").$strip>>;
932
+ nextCursor: import("zod").ZodOptional<import("zod").ZodString>;
933
+ freshness: import("zod").ZodObject<{
934
+ kind: import("zod").ZodLiteral<"authoritative">;
935
+ }, import("zod/v4/core").$strip>;
936
+ }, import("zod/v4/core").$strip>;
937
+ export type BillingLedgerPage = z.infer<typeof billingLedgerPageSchema>;
938
+ export declare const PROJECT_BILLING_ACTIONS: readonly ["add", "cancel", "transfer-included"];
939
+ export declare const projectBillingQuoteRequestSchema: import("zod").ZodObject<{
940
+ action: import("zod").ZodEnum<{
941
+ add: "add";
942
+ cancel: "cancel";
943
+ "transfer-included": "transfer-included";
944
+ }>;
945
+ project: import("zod").ZodString;
946
+ fromProject: import("zod").ZodOptional<import("zod").ZodString>;
947
+ }, import("zod/v4/core").$strict>;
948
+ export declare const projectBillingQuoteSchema: import("zod").ZodObject<{
949
+ action: import("zod").ZodEnum<{
950
+ add: "add";
951
+ cancel: "cancel";
952
+ "transfer-included": "transfer-included";
953
+ }>;
954
+ project: import("zod").ZodString;
955
+ fromProject: import("zod").ZodOptional<import("zod").ZodString>;
956
+ quote: import("zod").ZodString;
957
+ expectedRevision: import("zod").ZodNumber;
958
+ expiresAt: import("zod").ZodString;
959
+ charge: import("zod").ZodObject<{
960
+ currency: import("zod").ZodLiteral<"USD">;
961
+ microdollars: import("zod").ZodString;
962
+ scale: import("zod").ZodLiteral<6>;
963
+ }, import("zod/v4/core").$strip>;
964
+ monthlyProjectFees: import("zod").ZodObject<{
965
+ currency: import("zod").ZodLiteral<"USD">;
966
+ microdollars: import("zod").ZodString;
967
+ scale: import("zod").ZodLiteral<6>;
968
+ }, import("zod/v4/core").$strip>;
969
+ effectiveAt: import("zod").ZodString;
970
+ formerIncludedWillBlock: import("zod").ZodBoolean;
971
+ }, import("zod/v4/core").$strict>;
972
+ export declare const projectBillingChangeRequestSchema: import("zod").ZodObject<{
973
+ quote: import("zod").ZodString;
974
+ expectedRevision: import("zod").ZodNumber;
975
+ confirmed: import("zod").ZodLiteral<true>;
976
+ }, import("zod/v4/core").$strict>;
977
+ export declare const projectBillingStateSchema: import("zod").ZodObject<{
978
+ includedProject: import("zod").ZodOptional<import("zod").ZodString>;
979
+ desiredRevision: import("zod").ZodNumber;
980
+ effectiveRevision: import("zod").ZodNumber;
981
+ pending: import("zod").ZodBoolean;
982
+ recurringProjectFees: import("zod").ZodObject<{
983
+ currency: import("zod").ZodLiteral<"USD">;
984
+ microdollars: import("zod").ZodString;
985
+ scale: import("zod").ZodLiteral<6>;
986
+ }, import("zod/v4/core").$strip>;
987
+ projects: import("zod").ZodArray<import("zod").ZodObject<{
988
+ name: import("zod").ZodString;
989
+ project: import("zod").ZodString;
990
+ access: import("zod").ZodEnum<{
991
+ paid: "paid";
992
+ included: "included";
993
+ blocked: "blocked";
994
+ }>;
995
+ paidThroughAt: import("zod").ZodOptional<import("zod").ZodString>;
996
+ renewalGraceUntil: import("zod").ZodOptional<import("zod").ZodString>;
997
+ cancellationAt: import("zod").ZodOptional<import("zod").ZodString>;
998
+ deleted: import("zod").ZodBoolean;
999
+ }, import("zod/v4/core").$strip>>;
1000
+ pendingOperations: import("zod").ZodArray<import("zod").ZodObject<{
1001
+ id: import("zod").ZodString;
1002
+ kind: import("zod").ZodEnum<{
1003
+ add: "add";
1004
+ cancel: "cancel";
1005
+ }>;
1006
+ project: import("zod").ZodString;
1007
+ state: import("zod").ZodEnum<{
1008
+ pending: "pending";
1009
+ "action-required": "action-required";
1010
+ }>;
1011
+ paymentUrl: import("zod").ZodOptional<import("zod").ZodString>;
1012
+ reason: import("zod").ZodOptional<import("zod").ZodString>;
1013
+ }, import("zod/v4/core").$strip>>;
1014
+ }, import("zod/v4/core").$strip>;
1015
+ export declare const billingPortalSchema: import("zod").ZodObject<{
1016
+ url: import("zod").ZodString;
1017
+ }, import("zod/v4/core").$strip>;
1018
+ /**
1019
+ * The organization's saved payment method (W9-09, widened by W9-14): the one
1020
+ * method automatic top-ups and project subscriptions charge. It is the Stripe
1021
+ * customer's default payment method, read by authenticated provider call and
1022
+ * never stored by GreatWait beyond the provider's own identifier.
1023
+ *
1024
+ * `method` says what it is. A card keeps its brand and last four digits; Link
1025
+ * carries the email it is registered to when the provider reports one; any
1026
+ * other type the provider's checkout offered (Cash App Pay, Amazon Pay,
1027
+ * Klarna) carries the provider's type name. Every variant carries `label`,
1028
+ * the sentence-ready name the dashboard, command line and MCP all show, so no
1029
+ * client needs its own table of provider types. `method` is null when nothing
1030
+ * is saved.
1031
+ *
1032
+ * `card` is the pre-W9-14 field, kept so a client written against it keeps
1033
+ * working: it is set exactly when `method.type` is `card`, and null otherwise
1034
+ * — including when a non-card method is saved, which such a client reads as
1035
+ * "no card".
1036
+ */
1037
+ export declare const billingPaymentMethodSchema: import("zod").ZodObject<{
1038
+ card: import("zod").ZodNullable<import("zod").ZodObject<{
1039
+ brand: import("zod").ZodString;
1040
+ last4: import("zod").ZodString;
1041
+ expMonth: import("zod").ZodNumber;
1042
+ expYear: import("zod").ZodNumber;
1043
+ }, import("zod/v4/core").$strict>>;
1044
+ method: import("zod").ZodNullable<import("zod").ZodDiscriminatedUnion<[import("zod").ZodObject<{
1045
+ brand: import("zod").ZodString;
1046
+ last4: import("zod").ZodString;
1047
+ expMonth: import("zod").ZodNumber;
1048
+ expYear: import("zod").ZodNumber;
1049
+ type: import("zod").ZodLiteral<"card">;
1050
+ label: import("zod").ZodString;
1051
+ }, import("zod/v4/core").$strict>, import("zod").ZodObject<{
1052
+ type: import("zod").ZodLiteral<"link">;
1053
+ label: import("zod").ZodString;
1054
+ email: import("zod").ZodNullable<import("zod").ZodString>;
1055
+ }, import("zod/v4/core").$strict>, import("zod").ZodObject<{
1056
+ type: import("zod").ZodLiteral<"other">;
1057
+ label: import("zod").ZodString;
1058
+ providerType: import("zod").ZodString;
1059
+ }, import("zod/v4/core").$strict>], "type">>;
1060
+ }, import("zod/v4/core").$strict>;
1061
+ /**
1062
+ * Where hosted card setup returns. Optional: the configured dashboard billing
1063
+ * page is the default, and a supplied address must share its origin, so the
1064
+ * operation cannot be used to send a customer to a page GreatWait does not own.
1065
+ */
1066
+ export declare const billingPaymentMethodSetupRequestSchema: import("zod").ZodObject<{
1067
+ returnUrl: import("zod").ZodOptional<import("zod").ZodString>;
1068
+ }, import("zod/v4/core").$strict>;
1069
+ /** The hosted card-setup Checkout session a browser returned from. */
1070
+ export declare const billingPaymentMethodConfirmRequestSchema: import("zod").ZodObject<{
1071
+ checkoutSession: import("zod").ZodString;
1072
+ }, import("zod/v4/core").$strict>;
1073
+ /**
1074
+ * Removing the card on file (W9-09). The literal `true` is the caller's
1075
+ * acknowledgement of what removal does: project subscriptions stop renewing,
1076
+ * paid projects run to the end of the period already paid for and then stop,
1077
+ * and automatic top-up turns off.
1078
+ */
1079
+ export declare const billingPaymentMethodRemoveRequestSchema: import("zod").ZodObject<{
1080
+ confirmed: import("zod").ZodLiteral<true>;
1081
+ }, import("zod/v4/core").$strict>;
1082
+ /**
1083
+ * One project subscription charge (W9-09): a provider invoice for the
1084
+ * organization's project subscription, listed beside execution-credit
1085
+ * payments so a customer who was charged for a project sees the charge and its
1086
+ * receipt. `amount` is the invoice total, tax included. `receiptUrl` is the
1087
+ * provider-hosted invoice page when there is one.
1088
+ */
1089
+ export declare const billingInvoiceSchema: import("zod").ZodObject<{
1090
+ id: import("zod").ZodString;
1091
+ createdAt: import("zod").ZodString;
1092
+ amount: import("zod").ZodObject<{
1093
+ currency: import("zod").ZodLiteral<"USD">;
1094
+ microdollars: import("zod").ZodString;
1095
+ scale: import("zod").ZodLiteral<6>;
1096
+ }, import("zod/v4/core").$strip>;
1097
+ state: import("zod").ZodEnum<{
1098
+ void: "void";
1099
+ paid: "paid";
1100
+ open: "open";
1101
+ uncollectible: "uncollectible";
1102
+ }>;
1103
+ receiptUrl: import("zod").ZodOptional<import("zod").ZodString>;
1104
+ }, import("zod/v4/core").$strict>;
1105
+ /** Execution-credit payment history, with a bounded continuation. */
1106
+ export declare const billingPaymentHistoryPageSchema: import("zod").ZodObject<{
1107
+ data: import("zod").ZodArray<import("zod").ZodObject<{
1108
+ createdAt: import("zod").ZodString;
1109
+ credit: import("zod").ZodObject<{
1110
+ currency: import("zod").ZodLiteral<"USD">;
1111
+ microdollars: import("zod").ZodString;
1112
+ scale: import("zod").ZodLiteral<6>;
1113
+ }, import("zod/v4/core").$strip>;
1114
+ gross: import("zod").ZodNullable<import("zod").ZodObject<{
1115
+ currency: import("zod").ZodLiteral<"USD">;
1116
+ microdollars: import("zod").ZodString;
1117
+ scale: import("zod").ZodLiteral<6>;
1118
+ }, import("zod/v4/core").$strip>>;
1119
+ id: import("zod").ZodString;
1120
+ kind: import("zod").ZodEnum<{
1121
+ manual: "manual";
1122
+ automatic: "automatic";
1123
+ }>;
1124
+ paymentUrl: import("zod").ZodOptional<import("zod").ZodString>;
1125
+ reason: import("zod").ZodOptional<import("zod").ZodString>;
1126
+ receiptUrl: import("zod").ZodOptional<import("zod").ZodString>;
1127
+ state: import("zod").ZodEnum<{
1128
+ pending: "pending";
1129
+ paid: "paid";
1130
+ failed: "failed";
1131
+ "authentication-required": "authentication-required";
1132
+ "action-required": "action-required";
1133
+ canceled: "canceled";
1134
+ refunded: "refunded";
1135
+ reversed: "reversed";
1136
+ disputed: "disputed";
1137
+ }>;
1138
+ tax: import("zod").ZodNullable<import("zod").ZodObject<{
1139
+ currency: import("zod").ZodLiteral<"USD">;
1140
+ microdollars: import("zod").ZodString;
1141
+ scale: import("zod").ZodLiteral<6>;
1142
+ }, import("zod/v4/core").$strip>>;
1143
+ taxStatus: import("zod").ZodEnum<{
1144
+ confirmed: "confirmed";
1145
+ "calculated-at-checkout": "calculated-at-checkout";
1146
+ }>;
1147
+ updatedAt: import("zod").ZodString;
1148
+ }, import("zod/v4/core").$strict>>;
1149
+ freshness: import("zod").ZodDiscriminatedUnion<[import("zod").ZodObject<{
1150
+ kind: import("zod").ZodLiteral<"authoritative">;
1151
+ }, import("zod/v4/core").$strip>, import("zod").ZodObject<{
1152
+ asOf: import("zod").ZodString;
1153
+ kind: import("zod").ZodLiteral<"projected">;
1154
+ lagSeconds: import("zod").ZodNumber;
1155
+ }, import("zod/v4/core").$strip>], "kind">;
1156
+ nextCursor: import("zod").ZodOptional<import("zod").ZodString>;
1157
+ }, import("zod/v4/core").$strict>;
1158
+ export type BillingPaymentHistoryPage = z.infer<typeof billingPaymentHistoryPageSchema>;
1159
+ /** Project subscription history; an empty filtered page may still have a cursor. */
1160
+ export declare const billingInvoiceHistoryPageSchema: import("zod").ZodObject<{
1161
+ data: import("zod").ZodArray<import("zod").ZodObject<{
1162
+ id: import("zod").ZodString;
1163
+ createdAt: import("zod").ZodString;
1164
+ amount: import("zod").ZodObject<{
1165
+ currency: import("zod").ZodLiteral<"USD">;
1166
+ microdollars: import("zod").ZodString;
1167
+ scale: import("zod").ZodLiteral<6>;
1168
+ }, import("zod/v4/core").$strip>;
1169
+ state: import("zod").ZodEnum<{
1170
+ void: "void";
1171
+ paid: "paid";
1172
+ open: "open";
1173
+ uncollectible: "uncollectible";
1174
+ }>;
1175
+ receiptUrl: import("zod").ZodOptional<import("zod").ZodString>;
1176
+ }, import("zod/v4/core").$strict>>;
1177
+ freshness: import("zod").ZodDiscriminatedUnion<[import("zod").ZodObject<{
1178
+ kind: import("zod").ZodLiteral<"authoritative">;
1179
+ }, import("zod/v4/core").$strip>, import("zod").ZodObject<{
1180
+ asOf: import("zod").ZodString;
1181
+ kind: import("zod").ZodLiteral<"projected">;
1182
+ lagSeconds: import("zod").ZodNumber;
1183
+ }, import("zod/v4/core").$strip>], "kind">;
1184
+ nextCursor: import("zod").ZodOptional<import("zod").ZodString>;
1185
+ }, import("zod/v4/core").$strict>;
1186
+ export type BillingInvoiceHistoryPage = z.infer<typeof billingInvoiceHistoryPageSchema>;
1187
+ /** Project subscription charges, most recent first, at most 24. */
1188
+ export declare const billingInvoiceListSchema: import("zod").ZodObject<{
1189
+ data: import("zod").ZodArray<import("zod").ZodObject<{
1190
+ id: import("zod").ZodString;
1191
+ createdAt: import("zod").ZodString;
1192
+ amount: import("zod").ZodObject<{
1193
+ currency: import("zod").ZodLiteral<"USD">;
1194
+ microdollars: import("zod").ZodString;
1195
+ scale: import("zod").ZodLiteral<6>;
1196
+ }, import("zod/v4/core").$strip>;
1197
+ state: import("zod").ZodEnum<{
1198
+ void: "void";
1199
+ paid: "paid";
1200
+ open: "open";
1201
+ uncollectible: "uncollectible";
1202
+ }>;
1203
+ receiptUrl: import("zod").ZodOptional<import("zod").ZodString>;
1204
+ }, import("zod/v4/core").$strict>>;
1205
+ }, import("zod/v4/core").$strict>;
1206
+ /**
1207
+ * The stable title of the refusal a card-dependent change receives when the
1208
+ * organization has no card on file (W9-09): enabling or resuming automatic
1209
+ * top-up, and quoting or confirming a paid project addition.
1210
+ *
1211
+ * **Why a title and not a new problem code.** The published CLI and SDK parse
1212
+ * error bodies with this package's `problemSchema`, whose `code` is a closed
1213
+ * enum, so a code an installed client does not know turns a precise refusal into
1214
+ * "failed with status 409" with no problem at all. The refusal is therefore
1215
+ * `state_conflict` — which is what it is: the request is well formed and would
1216
+ * succeed once a card is saved — and this exact title is the discriminator.
1217
+ * Detect it as `code === "state_conflict" && title ===
1218
+ * BILLING_PAYMENT_METHOD_REQUIRED_TITLE`.
1219
+ */
1220
+ export declare const BILLING_PAYMENT_METHOD_REQUIRED_TITLE: "A card on file is required";
1221
+ export type ProjectBillingQuoteRequest = z.infer<typeof projectBillingQuoteRequestSchema>;
1222
+ export type ProjectBillingQuote = z.infer<typeof projectBillingQuoteSchema>;
1223
+ export type ProjectBillingChangeRequest = z.infer<typeof projectBillingChangeRequestSchema>;
1224
+ export type ProjectBillingState = z.infer<typeof projectBillingStateSchema>;
1225
+ export type BillingPaymentMethod = z.infer<typeof billingPaymentMethodSchema>;
1226
+ export type BillingInvoice = z.infer<typeof billingInvoiceSchema>;
1227
+ export type BillingInvoiceList = z.infer<typeof billingInvoiceListSchema>;
1228
+ export type BillingPaymentMethodSetupRequest = z.infer<typeof billingPaymentMethodSetupRequestSchema>;
1229
+ export type BillingPaymentMethodConfirmRequest = z.infer<typeof billingPaymentMethodConfirmRequestSchema>;
1230
+ export type BillingPaymentMethodRemoveRequest = z.infer<typeof billingPaymentMethodRemoveRequestSchema>;
1231
+ export {};