@treeseed/sdk 0.13.0-rc.11 → 0.13.0-rc.111

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 (453) hide show
  1. package/README.md +23 -9
  2. package/dist/.treeseed-build-complete.json +1 -0
  3. package/dist/accounts/account-contracts.d.ts +6 -0
  4. package/dist/agent-capacity/artifact-mutation-receipt.d.ts +1 -1
  5. package/dist/agent-capacity/artifacts.d.ts +17 -1
  6. package/dist/agent-capacity/authority/agent-authority-presets.js +2 -1
  7. package/dist/agent-capacity/contracts/capacity/assignments/assignment-context-pack.d.ts +304 -0
  8. package/dist/agent-capacity/contracts/capacity/assignments/assignment-context-pack.js +44 -0
  9. package/dist/agent-capacity/contracts/capacity/assignments/assignment-records.d.ts +10 -1
  10. package/dist/agent-capacity/contracts/capacity/assignments/context-pack-compiler.d.ts +25 -0
  11. package/dist/agent-capacity/contracts/capacity/assignments/context-pack-compiler.js +67 -0
  12. package/dist/agent-capacity/contracts/capacity/communication/communication-records.d.ts +1 -1
  13. package/dist/agent-capacity/contracts/capacity/providers/supply-policy.d.ts +0 -2
  14. package/dist/agent-capacity/contracts/capacity/workdays/workday-records.d.ts +1 -1
  15. package/dist/agent-capacity/contracts/configuration/configuration.js +1 -1
  16. package/dist/agent-capacity/contracts/projects/agents/project-agent-class.d.ts +0 -1
  17. package/dist/agent-capacity/contracts/runtime/runtime-observability.d.ts +3 -3
  18. package/dist/agent-capacity/contracts/support/decision-work.d.ts +2 -3
  19. package/dist/agent-capacity/validation/activity-profile.js +25 -12
  20. package/dist/agent-capacity/validation/agent-definition-schema.d.ts +1092 -1170
  21. package/dist/agent-capacity/validation/agent-definition-schema.js +11 -29
  22. package/dist/agent-capacity/validation/agent-lab-forensics-schema.d.ts +20 -20
  23. package/dist/agent-capacity/validation/configuration.d.ts +1 -1
  24. package/dist/agent-capacity/validation/configuration.js +1 -2
  25. package/dist/capacity/agents/agent-capacity.d.ts +2 -0
  26. package/dist/capacity/agents/agent-capacity.js +2 -0
  27. package/dist/capacity-provider/capability-ontology.d.ts +1495 -0
  28. package/dist/capacity-provider/capability-ontology.js +221 -0
  29. package/dist/capacity-provider/client.d.ts +24 -0
  30. package/dist/capacity-provider/client.js +11 -1
  31. package/dist/capacity-provider/contracts/environment-profiles.d.ts +255 -0
  32. package/dist/capacity-provider/contracts/environment-profiles.js +71 -0
  33. package/dist/capacity-provider/contracts/governance.d.ts +103 -35
  34. package/dist/capacity-provider/contracts/index.d.ts +1 -0
  35. package/dist/capacity-provider/contracts/index.js +1 -0
  36. package/dist/capacity-provider/core-capability-catalog.d.ts +47 -0
  37. package/dist/capacity-provider/core-capability-catalog.js +49 -0
  38. package/dist/capacity-provider/environment-catalog.d.ts +877 -0
  39. package/dist/capacity-provider/environment-catalog.js +116 -0
  40. package/dist/capacity-provider/index.d.ts +5 -0
  41. package/dist/capacity-provider/index.js +5 -0
  42. package/dist/capacity-provider/install-configuration.d.ts +39 -0
  43. package/dist/capacity-provider/install-configuration.js +18 -0
  44. package/dist/capacity-provider/sandbox-contracts.d.ts +548 -0
  45. package/dist/capacity-provider/sandbox-contracts.js +86 -0
  46. package/dist/capacity-provider/sandbox.d.ts +1 -0
  47. package/dist/capacity-provider/sandbox.js +1 -0
  48. package/dist/capacity-provider/validation.d.ts +2 -2
  49. package/dist/capacity-provider/validation.js +91 -55
  50. package/dist/configuration/secrets-capability.d.ts +5 -1
  51. package/dist/configuration/secrets-capability.js +5 -1
  52. package/dist/content/validation/agent-operational-content-schemas.d.ts +490 -168
  53. package/dist/content/validation/agent-operational-content-schemas.js +18 -3
  54. package/dist/content/validation/auxiliary-content-schemas.d.ts +160 -160
  55. package/dist/content/validation/content-model-schemas.d.ts +2943 -2747
  56. package/dist/content/validation/portable-content-data.d.ts +296 -292
  57. package/dist/deployment/ai/storage.d.ts +158 -0
  58. package/dist/deployment/ai/storage.js +32 -0
  59. package/dist/deployment/ai-hosting.d.ts +297 -0
  60. package/dist/deployment/ai-hosting.js +63 -0
  61. package/dist/deployment/ai-instance.d.ts +65 -0
  62. package/dist/deployment/ai-instance.js +30 -0
  63. package/dist/deployment/ai-mode.d.ts +454 -0
  64. package/dist/deployment/ai-mode.js +67 -0
  65. package/dist/deployment/canonical.d.ts +2 -0
  66. package/dist/deployment/canonical.js +17 -0
  67. package/dist/deployment/catalog.d.ts +16 -0
  68. package/dist/deployment/catalog.js +48 -0
  69. package/dist/deployment/hosted-topology-template.d.ts +449 -0
  70. package/dist/deployment/hosted-topology-template.js +56 -0
  71. package/dist/deployment/hosted-topology.d.ts +2698 -0
  72. package/dist/deployment/hosted-topology.js +468 -0
  73. package/dist/deployment/index.d.ts +13 -0
  74. package/dist/deployment/index.js +13 -0
  75. package/dist/deployment/postgres/contracts.d.ts +418 -0
  76. package/dist/deployment/postgres/contracts.js +83 -0
  77. package/dist/deployment/postgres/requirements.d.ts +14 -0
  78. package/dist/deployment/postgres/requirements.js +30 -0
  79. package/dist/deployment/postgres/transfer.d.ts +97 -0
  80. package/dist/deployment/postgres/transfer.js +29 -0
  81. package/dist/deployment/schemas.d.ts +8625 -0
  82. package/dist/deployment/schemas.js +455 -0
  83. package/dist/deployment/topology.d.ts +9 -0
  84. package/dist/deployment/topology.js +35 -0
  85. package/dist/development/index.d.ts +1 -0
  86. package/dist/development/index.js +1 -0
  87. package/dist/development/schemas.d.ts +3578 -0
  88. package/dist/development/schemas.js +199 -0
  89. package/dist/development/session-migration.d.ts +3 -0
  90. package/dist/development/session-migration.js +25 -0
  91. package/dist/entrypoints/clients/control-plane-client.d.ts +9 -1
  92. package/dist/entrypoints/clients/control-plane-client.js +17 -5
  93. package/dist/graph/context-query-contracts.d.ts +16 -1
  94. package/dist/graph/context-query-contracts.js +5 -0
  95. package/dist/guarantees/evidence-trust.d.ts +32 -0
  96. package/dist/guarantees/evidence-trust.js +47 -0
  97. package/dist/guarantees/index.d.ts +130 -0
  98. package/dist/guarantees/index.js +44 -0
  99. package/dist/identity/browser-session.d.ts +233 -0
  100. package/dist/identity/browser-session.js +51 -0
  101. package/dist/identity/contracts.d.ts +191 -0
  102. package/dist/identity/contracts.js +72 -0
  103. package/dist/identity/index.d.ts +3 -0
  104. package/dist/identity/index.js +3 -0
  105. package/dist/identity/runtime.d.ts +186 -0
  106. package/dist/identity/runtime.js +49 -0
  107. package/dist/model-registry/agent-operational-models.js +1 -1
  108. package/dist/operator-contracts/canonical-command-tree.js +465 -16
  109. package/dist/operator-contracts/catalog/admin-account-team-operations.d.ts +36 -0
  110. package/dist/operator-contracts/catalog/admin-account-team-operations.js +52 -0
  111. package/dist/operator-contracts/catalog/capability-ontology-operations.d.ts +163 -0
  112. package/dist/operator-contracts/catalog/capability-ontology-operations.js +24 -0
  113. package/dist/operator-contracts/catalog/communication-operations.d.ts +437 -0
  114. package/dist/operator-contracts/catalog/communication-operations.js +92 -0
  115. package/dist/operator-contracts/catalog/control-plane-catalog.d.ts +6 -0
  116. package/dist/operator-contracts/catalog/control-plane-catalog.js +18 -0
  117. package/dist/operator-contracts/catalog/hosted-topology-operations.d.ts +399 -0
  118. package/dist/operator-contracts/catalog/hosted-topology-operations.js +79 -0
  119. package/dist/operator-contracts/catalog/inbox-operations.d.ts +261 -0
  120. package/dist/operator-contracts/catalog/inbox-operations.js +36 -0
  121. package/dist/operator-contracts/catalog/infrastructure/ai-instance-operations.d.ts +53 -0
  122. package/dist/operator-contracts/catalog/infrastructure/ai-instance-operations.js +23 -0
  123. package/dist/operator-contracts/catalog/infrastructure/command-tree-paths.d.ts +3 -0
  124. package/dist/operator-contracts/catalog/infrastructure/command-tree-paths.js +15 -0
  125. package/dist/operator-contracts/catalog/knowledge-share-operations.d.ts +127 -0
  126. package/dist/operator-contracts/catalog/knowledge-share-operations.js +25 -0
  127. package/dist/operator-contracts/catalog/provider-environment-commands.d.ts +4 -0
  128. package/dist/operator-contracts/catalog/provider-environment-commands.js +69 -0
  129. package/dist/operator-contracts/catalog/provider-environment-operations.d.ts +41 -0
  130. package/dist/operator-contracts/catalog/provider-environment-operations.js +61 -0
  131. package/dist/operator-contracts/catalog/services/identity-commands.d.ts +2 -0
  132. package/dist/operator-contracts/catalog/services/identity-commands.js +13 -0
  133. package/dist/operator-contracts/catalog/services/secret-commands.d.ts +2 -0
  134. package/dist/operator-contracts/catalog/services/secret-commands.js +31 -0
  135. package/dist/operator-contracts/catalog/services/secret-operations.d.ts +62 -0
  136. package/dist/operator-contracts/catalog/services/secret-operations.js +51 -0
  137. package/dist/operator-contracts/catalog/treeai-operations.d.ts +13 -0
  138. package/dist/operator-contracts/catalog/treeai-operations.js +61 -0
  139. package/dist/operator-contracts/command-tree.d.ts +28 -0
  140. package/dist/operator-contracts/command-tree.js +49 -0
  141. package/dist/operator-contracts/communication/addressing.d.ts +8 -0
  142. package/dist/operator-contracts/communication/addressing.js +57 -0
  143. package/dist/operator-contracts/communication/contracts.d.ts +1818 -0
  144. package/dist/operator-contracts/communication/contracts.js +188 -0
  145. package/dist/operator-contracts/control-plane-operation.d.ts +9 -0
  146. package/dist/operator-contracts/control-plane-operation.js +12 -2
  147. package/dist/operator-contracts/control-plane-operations.d.ts +2255 -195
  148. package/dist/operator-contracts/control-plane-operations.js +247 -85
  149. package/dist/operator-contracts/inbox/contracts.d.ts +1099 -0
  150. package/dist/operator-contracts/inbox/contracts.js +134 -0
  151. package/dist/operator-contracts/index.d.ts +6 -0
  152. package/dist/operator-contracts/index.js +6 -0
  153. package/dist/operator-contracts/knowledge/contracts.d.ts +130 -0
  154. package/dist/operator-contracts/knowledge/contracts.js +39 -0
  155. package/dist/operator-contracts/mcp.d.ts +5 -0
  156. package/dist/operator-contracts/mcp.js +61 -0
  157. package/dist/operator-contracts/oauth.d.ts +45 -0
  158. package/dist/operator-contracts/oauth.js +7 -0
  159. package/dist/operator-contracts/operation-builder.d.ts +18 -0
  160. package/dist/operator-contracts/operation-builder.js +78 -0
  161. package/dist/operator-contracts/seed/seed-bundle.d.ts +138 -0
  162. package/dist/operator-contracts/seed/seed-bundle.js +68 -0
  163. package/dist/platform/contracts.d.ts +429 -0
  164. package/dist/platform/contracts.js +93 -0
  165. package/dist/platform/index.d.ts +6 -0
  166. package/dist/platform/index.js +6 -0
  167. package/dist/platform/inventory.d.ts +11 -0
  168. package/dist/platform/inventory.js +53 -0
  169. package/dist/platform/project-create.d.ts +49 -0
  170. package/dist/platform/project-create.js +75 -0
  171. package/dist/platform/schemas.d.ts +986 -0
  172. package/dist/platform/schemas.js +73 -0
  173. package/dist/platform/verification.d.ts +9 -0
  174. package/dist/platform/verification.js +104 -0
  175. package/dist/platform/workset.d.ts +21 -0
  176. package/dist/platform/workset.js +106 -0
  177. package/dist/secrets-capability/github-actions-encryption.d.ts +2 -0
  178. package/dist/secrets-capability/github-actions-encryption.js +11 -0
  179. package/dist/secrets-capability/provider-operation-contracts.d.ts +15 -1
  180. package/dist/secrets-capability/secret-contracts.d.ts +33 -0
  181. package/dist/secrets-capability/secret-contracts.js +49 -0
  182. package/dist/secrets-capability/service-provider-contracts.d.ts +5 -3
  183. package/dist/secrets-capability/service-provider-contracts.js +66 -50
  184. package/dist/secrets-capability/shared-access.d.ts +51 -0
  185. package/dist/secrets-capability/shared-access.js +36 -0
  186. package/dist/secrets-capability/shared-resources.d.ts +376 -0
  187. package/dist/secrets-capability/shared-resources.js +91 -0
  188. package/dist/secrets-capability/vault-contracts.d.ts +132 -0
  189. package/dist/secrets-capability/vault-contracts.js +56 -0
  190. package/dist/security/encrypted-envelope.d.ts +177 -0
  191. package/dist/security/encrypted-envelope.js +34 -0
  192. package/dist/security/envelope-codec.d.ts +38 -0
  193. package/dist/security/envelope-codec.js +96 -0
  194. package/dist/security/index.d.ts +2 -0
  195. package/dist/security/index.js +2 -0
  196. package/dist/site-contracts/catalog.d.ts +16 -0
  197. package/dist/site-contracts/catalog.js +19 -0
  198. package/dist/site-contracts/cloudflare.d.ts +48 -0
  199. package/dist/site-contracts/platform.d.ts +94 -0
  200. package/dist/site-contracts/plugin.d.ts +63 -0
  201. package/dist/site-contracts/plugin.js +26 -0
  202. package/dist/treeai/catalog.d.ts +1 -0
  203. package/dist/treeai/catalog.js +1 -0
  204. package/dist/treeai/client.d.ts +793 -0
  205. package/dist/treeai/client.js +44 -0
  206. package/dist/treeai/contract.d.ts +41 -0
  207. package/dist/treeai/contract.js +51 -0
  208. package/dist/treeai/generated/upstream.d.ts +770 -0
  209. package/dist/treeai/generated/upstream.js +4 -0
  210. package/dist/treeai/index.d.ts +4 -0
  211. package/dist/treeai/index.js +4 -0
  212. package/dist/treedx/client.d.ts +605 -0
  213. package/dist/treedx/client.js +39 -0
  214. package/dist/treedx/contract.d.ts +32 -0
  215. package/dist/treedx/contract.js +63 -0
  216. package/dist/treedx/index.d.ts +3 -0
  217. package/dist/treedx/index.js +2 -0
  218. package/dist/treedx/types.d.ts +8 -7
  219. package/dist/treedx/types.js +0 -7
  220. package/dist/types/agents/agent-activity-profile.d.ts +18 -36
  221. package/dist/types/agents/agent-trigger-kinds.d.ts +3 -5
  222. package/dist/types/agents/agent-trigger-kinds.js +1 -13
  223. package/package.json +64 -11
  224. package/dist/secrets-capability/service-vault-contracts.d.ts +0 -61
  225. package/dist/secrets-capability/service-vault-contracts.js +0 -39
  226. package/dist/treedx/accounts/auth.d.ts +0 -17
  227. package/dist/treedx/accounts/auth.js +0 -48
  228. package/dist/treedx/client/accounts/contracts/auth-mode.d.ts +0 -3
  229. package/dist/treedx/client/accounts/contracts/auth-mode.js +0 -6
  230. package/dist/treedx/client/build/creation/build-context.d.ts +0 -3
  231. package/dist/treedx/client/build/creation/build-context.js +0 -7
  232. package/dist/treedx/client/build/creation/build-snapshot.d.ts +0 -3
  233. package/dist/treedx/client/build/creation/build-snapshot.js +0 -8
  234. package/dist/treedx/client/capacity/allocations/contracts/put-capability-grant.d.ts +0 -3
  235. package/dist/treedx/client/capacity/allocations/contracts/put-capability-grant.js +0 -7
  236. package/dist/treedx/client/capacity/allocations/queries/list-capability-grants.d.ts +0 -6
  237. package/dist/treedx/client/capacity/allocations/queries/list-capability-grants.js +0 -10
  238. package/dist/treedx/client/methods.d.ts +0 -102
  239. package/dist/treedx/client/methods.js +0 -209
  240. package/dist/treedx/client/persistence/contracts/restore-storage.d.ts +0 -3
  241. package/dist/treedx/client/persistence/contracts/restore-storage.js +0 -6
  242. package/dist/treedx/client/persistence/lifecycle/verify-storage-restore.d.ts +0 -3
  243. package/dist/treedx/client/persistence/lifecycle/verify-storage-restore.js +0 -6
  244. package/dist/treedx/client/repositories/creation/register-repository.d.ts +0 -3
  245. package/dist/treedx/client/repositories/creation/register-repository.js +0 -7
  246. package/dist/treedx/client/repositories/queries/get-repository.d.ts +0 -3
  247. package/dist/treedx/client/repositories/queries/get-repository.js +0 -7
  248. package/dist/treedx/client/repositories/queries/list-repository-paths.d.ts +0 -3
  249. package/dist/treedx/client/repositories/queries/list-repository-paths.js +0 -7
  250. package/dist/treedx/client/repositories/queries/list-repository-refs.d.ts +0 -3
  251. package/dist/treedx/client/repositories/queries/list-repository-refs.js +0 -12
  252. package/dist/treedx/client/repositories/queries/query-repository.d.ts +0 -3
  253. package/dist/treedx/client/repositories/queries/query-repository.js +0 -7
  254. package/dist/treedx/client/repositories/queries/read-repository-file.d.ts +0 -3
  255. package/dist/treedx/client/repositories/queries/read-repository-file.js +0 -6
  256. package/dist/treedx/client/repositories/queries/read-repository-files.d.ts +0 -3
  257. package/dist/treedx/client/repositories/queries/read-repository-files.js +0 -7
  258. package/dist/treedx/client/repositories/queries/search-repository-files.d.ts +0 -3
  259. package/dist/treedx/client/repositories/queries/search-repository-files.js +0 -7
  260. package/dist/treedx/client/support/contracts/treedx/artifacts/contracts/download-artifact.d.ts +0 -3
  261. package/dist/treedx/client/support/contracts/treedx/artifacts/contracts/download-artifact.js +0 -9
  262. package/dist/treedx/client/support/contracts/treedx/authorization/contracts/whoami.d.ts +0 -3
  263. package/dist/treedx/client/support/contracts/treedx/authorization/contracts/whoami.js +0 -6
  264. package/dist/treedx/client/support/contracts/treedx/graph/contracts/parse-context-dsl.d.ts +0 -3
  265. package/dist/treedx/client/support/contracts/treedx/graph/contracts/parse-context-dsl.js +0 -7
  266. package/dist/treedx/client/support/contracts/treedx/health/contracts/deep-health.d.ts +0 -5
  267. package/dist/treedx/client/support/contracts/treedx/health/contracts/deep-health.js +0 -7
  268. package/dist/treedx/client/support/contracts/treedx/health/contracts/health.d.ts +0 -3
  269. package/dist/treedx/client/support/contracts/treedx/health/contracts/health.js +0 -6
  270. package/dist/treedx/client/support/contracts/treedx/health/contracts/metrics.d.ts +0 -3
  271. package/dist/treedx/client/support/contracts/treedx/health/contracts/metrics.js +0 -7
  272. package/dist/treedx/client/support/contracts/treedx/health/contracts/prometheus-metrics.d.ts +0 -2
  273. package/dist/treedx/client/support/contracts/treedx/health/contracts/prometheus-metrics.js +0 -19
  274. package/dist/treedx/client/support/contracts/treedx/health/contracts/ready.d.ts +0 -3
  275. package/dist/treedx/client/support/contracts/treedx/health/contracts/ready.js +0 -7
  276. package/dist/treedx/client/support/contracts/treedx/health/contracts/status.d.ts +0 -3
  277. package/dist/treedx/client/support/contracts/treedx/health/contracts/status.js +0 -6
  278. package/dist/treedx/client/support/contracts/treedx/repositories/contracts/commit.d.ts +0 -3
  279. package/dist/treedx/client/support/contracts/treedx/repositories/contracts/commit.js +0 -7
  280. package/dist/treedx/client/support/contracts/treedx/repositories/contracts/diff.d.ts +0 -3
  281. package/dist/treedx/client/support/contracts/treedx/repositories/contracts/diff.js +0 -6
  282. package/dist/treedx/client/support/contracts/treedx/repositories/contracts/fetch-remote.d.ts +0 -3
  283. package/dist/treedx/client/support/contracts/treedx/repositories/contracts/fetch-remote.js +0 -7
  284. package/dist/treedx/client/support/contracts/treedx/repositories/contracts/push.d.ts +0 -6
  285. package/dist/treedx/client/support/contracts/treedx/repositories/contracts/push.js +0 -23
  286. package/dist/treedx/client/support/contracts/treedx/search/contracts/compact-search-index.d.ts +0 -3
  287. package/dist/treedx/client/support/contracts/treedx/search/contracts/compact-search-index.js +0 -8
  288. package/dist/treedx/client/support/contracts/treedx/search/contracts/search.d.ts +0 -3
  289. package/dist/treedx/client/support/contracts/treedx/search/contracts/search.js +0 -7
  290. package/dist/treedx/client/support/contracts/treedx/storage/contracts/backup-storage.d.ts +0 -3
  291. package/dist/treedx/client/support/contracts/treedx/storage/contracts/backup-storage.js +0 -8
  292. package/dist/treedx/client/support/contracts/treedx/storage/contracts/compact-storage.d.ts +0 -3
  293. package/dist/treedx/client/support/contracts/treedx/storage/contracts/compact-storage.js +0 -8
  294. package/dist/treedx/client/support/contracts/treedx/transport/contracts/assert-binary-ok.d.ts +0 -2
  295. package/dist/treedx/client/support/contracts/treedx/transport/contracts/assert-binary-ok.js +0 -15
  296. package/dist/treedx/client/support/contracts/treedx/transport/contracts/fetch-with-timeout.d.ts +0 -2
  297. package/dist/treedx/client/support/contracts/treedx/transport/contracts/fetch-with-timeout.js +0 -38
  298. package/dist/treedx/client/support/contracts/treedx/transport/contracts/headers.d.ts +0 -2
  299. package/dist/treedx/client/support/contracts/treedx/transport/contracts/headers.js +0 -15
  300. package/dist/treedx/client/support/contracts/treedx/transport/contracts/parse-json-response.d.ts +0 -2
  301. package/dist/treedx/client/support/contracts/treedx/transport/contracts/parse-json-response.js +0 -15
  302. package/dist/treedx/client/support/contracts/treedx/transport/contracts/query.d.ts +0 -2
  303. package/dist/treedx/client/support/contracts/treedx/transport/contracts/query.js +0 -14
  304. package/dist/treedx/client/support/contracts/treedx/transport/contracts/repo-id.d.ts +0 -2
  305. package/dist/treedx/client/support/contracts/treedx/transport/contracts/repo-id.js +0 -14
  306. package/dist/treedx/client/support/contracts/treedx/transport/contracts/request.d.ts +0 -6
  307. package/dist/treedx/client/support/contracts/treedx/transport/contracts/request.js +0 -41
  308. package/dist/treedx/client/support/contracts/treedx/transport/contracts/throw-api-error.d.ts +0 -2
  309. package/dist/treedx/client/support/contracts/treedx/transport/contracts/throw-api-error.js +0 -14
  310. package/dist/treedx/client/support/contracts/treedx/workspaces/contracts/exec.d.ts +0 -3
  311. package/dist/treedx/client/support/contracts/treedx/workspaces/contracts/exec.js +0 -7
  312. package/dist/treedx/client/support/creation/apply-changeset.d.ts +0 -3
  313. package/dist/treedx/client/support/creation/apply-changeset.js +0 -10
  314. package/dist/treedx/client/support/creation/apply-storage-migration.d.ts +0 -3
  315. package/dist/treedx/client/support/creation/apply-storage-migration.js +0 -7
  316. package/dist/treedx/client/support/creation/create-migration.d.ts +0 -6
  317. package/dist/treedx/client/support/creation/create-migration.js +0 -7
  318. package/dist/treedx/client/support/creation/export-artifact.d.ts +0 -3
  319. package/dist/treedx/client/support/creation/export-artifact.js +0 -8
  320. package/dist/treedx/client/support/creation/plan-storage-migration.d.ts +0 -3
  321. package/dist/treedx/client/support/creation/plan-storage-migration.js +0 -7
  322. package/dist/treedx/client/support/creation/request-binary.d.ts +0 -6
  323. package/dist/treedx/client/support/creation/request-binary.js +0 -42
  324. package/dist/treedx/client/support/creation/write-file.d.ts +0 -3
  325. package/dist/treedx/client/support/creation/write-file.js +0 -10
  326. package/dist/treedx/client/support/creation/write-files.d.ts +0 -3
  327. package/dist/treedx/client/support/creation/write-files.js +0 -12
  328. package/dist/treedx/client/support/queries/treedx/artifacts/queries/get-artifact.d.ts +0 -3
  329. package/dist/treedx/client/support/queries/treedx/artifacts/queries/get-artifact.js +0 -7
  330. package/dist/treedx/client/support/queries/treedx/artifacts/queries/list-artifacts.d.ts +0 -3
  331. package/dist/treedx/client/support/queries/treedx/artifacts/queries/list-artifacts.js +0 -7
  332. package/dist/treedx/client/support/queries/treedx/authorization/queries/effective-scope.d.ts +0 -3
  333. package/dist/treedx/client/support/queries/treedx/authorization/queries/effective-scope.js +0 -9
  334. package/dist/treedx/client/support/queries/treedx/authorization/queries/list-capabilities.d.ts +0 -4
  335. package/dist/treedx/client/support/queries/treedx/authorization/queries/list-capabilities.js +0 -6
  336. package/dist/treedx/client/support/queries/treedx/federation/queries/get-placement.d.ts +0 -3
  337. package/dist/treedx/client/support/queries/treedx/federation/queries/get-placement.js +0 -7
  338. package/dist/treedx/client/support/queries/treedx/graph/queries/get-node.d.ts +0 -3
  339. package/dist/treedx/client/support/queries/treedx/graph/queries/get-node.js +0 -7
  340. package/dist/treedx/client/support/queries/treedx/graph/queries/get-related.d.ts +0 -3
  341. package/dist/treedx/client/support/queries/treedx/graph/queries/get-related.js +0 -7
  342. package/dist/treedx/client/support/queries/treedx/graph/queries/list-nodes.d.ts +0 -3
  343. package/dist/treedx/client/support/queries/treedx/graph/queries/list-nodes.js +0 -7
  344. package/dist/treedx/client/support/queries/treedx/repositories/queries/list-tree.d.ts +0 -3
  345. package/dist/treedx/client/support/queries/treedx/repositories/queries/list-tree.js +0 -10
  346. package/dist/treedx/client/support/queries/treedx/repositories/queries/read-file.d.ts +0 -3
  347. package/dist/treedx/client/support/queries/treedx/repositories/queries/read-file.js +0 -9
  348. package/dist/treedx/client/support/queries/treedx/search/queries/get-search-index-status.d.ts +0 -3
  349. package/dist/treedx/client/support/queries/treedx/search/queries/get-search-index-status.js +0 -7
  350. package/dist/treedx/client/support/queries/treedx/storage/queries/get-migration.d.ts +0 -6
  351. package/dist/treedx/client/support/queries/treedx/storage/queries/get-migration.js +0 -7
  352. package/dist/treedx/client/support/queries/treedx/storage/queries/get-snapshot.d.ts +0 -6
  353. package/dist/treedx/client/support/queries/treedx/storage/queries/get-snapshot.js +0 -7
  354. package/dist/treedx/client/support/queries/treedx/storage/queries/list-storage-migrations.d.ts +0 -6
  355. package/dist/treedx/client/support/queries/treedx/storage/queries/list-storage-migrations.js +0 -6
  356. package/dist/treedx/client/support/queries/treedx/transport/queries/list-audit-events.d.ts +0 -15
  357. package/dist/treedx/client/support/queries/treedx/transport/queries/list-audit-events.js +0 -6
  358. package/dist/treedx/client/support/queries/treedx/transport/queries/list-repositories.d.ts +0 -3
  359. package/dist/treedx/client/support/queries/treedx/transport/queries/list-repositories.js +0 -7
  360. package/dist/treedx/client/support/retirement/cleanup-artifacts.d.ts +0 -3
  361. package/dist/treedx/client/support/retirement/cleanup-artifacts.js +0 -7
  362. package/dist/treedx/client/support/retirement/delete-artifact.d.ts +0 -3
  363. package/dist/treedx/client/support/retirement/delete-artifact.js +0 -7
  364. package/dist/treedx/client/support/retirement/delete-file.d.ts +0 -3
  365. package/dist/treedx/client/support/retirement/delete-file.js +0 -10
  366. package/dist/treedx/client/support/retirement/rollback-storage-migration.d.ts +0 -3
  367. package/dist/treedx/client/support/retirement/rollback-storage-migration.js +0 -7
  368. package/dist/treedx/client/support/updates/patch-file.d.ts +0 -3
  369. package/dist/treedx/client/support/updates/patch-file.js +0 -10
  370. package/dist/treedx/client/support/updates/refresh-search-index.d.ts +0 -3
  371. package/dist/treedx/client/support/updates/refresh-search-index.js +0 -8
  372. package/dist/treedx/client/treedx/blobs/contracts/download-blob.d.ts +0 -3
  373. package/dist/treedx/client/treedx/blobs/contracts/download-blob.js +0 -6
  374. package/dist/treedx/client/treedx/blobs/creation/create-blob-upload.d.ts +0 -3
  375. package/dist/treedx/client/treedx/blobs/creation/create-blob-upload.js +0 -8
  376. package/dist/treedx/client/treedx/blobs/creation/request-blob-download.d.ts +0 -3
  377. package/dist/treedx/client/treedx/blobs/creation/request-blob-download.js +0 -27
  378. package/dist/treedx/client/treedx/blobs/creation/request-blob-upload.d.ts +0 -3
  379. package/dist/treedx/client/treedx/blobs/creation/request-blob-upload.js +0 -41
  380. package/dist/treedx/client/treedx/blobs/creation/upload-blob-part.d.ts +0 -3
  381. package/dist/treedx/client/treedx/blobs/creation/upload-blob-part.js +0 -27
  382. package/dist/treedx/client/treedx/blobs/creation/upload-blob.d.ts +0 -3
  383. package/dist/treedx/client/treedx/blobs/creation/upload-blob.js +0 -6
  384. package/dist/treedx/client/treedx/blobs/creation/write-blob.d.ts +0 -3
  385. package/dist/treedx/client/treedx/blobs/creation/write-blob.js +0 -8
  386. package/dist/treedx/client/treedx/blobs/lifecycle/complete-blob-upload.d.ts +0 -3
  387. package/dist/treedx/client/treedx/blobs/lifecycle/complete-blob-upload.js +0 -8
  388. package/dist/treedx/client/treedx/blobs/queries/read-blob.d.ts +0 -3
  389. package/dist/treedx/client/treedx/blobs/queries/read-blob.js +0 -10
  390. package/dist/treedx/client/treedx/blobs/retirement/abort-blob-upload.d.ts +0 -3
  391. package/dist/treedx/client/treedx/blobs/retirement/abort-blob-upload.js +0 -7
  392. package/dist/treedx/client/treedx/blobs/retirement/delete-blob.d.ts +0 -3
  393. package/dist/treedx/client/treedx/blobs/retirement/delete-blob.js +0 -8
  394. package/dist/treedx/client/treedx/federation/contracts/federated-query.d.ts +0 -3
  395. package/dist/treedx/client/treedx/federation/contracts/federated-query.js +0 -7
  396. package/dist/treedx/client/treedx/federation/creation/plan-federated-query.d.ts +0 -3
  397. package/dist/treedx/client/treedx/federation/creation/plan-federated-query.js +0 -6
  398. package/dist/treedx/client/treedx/federation/queries/check-mirror-health.d.ts +0 -3
  399. package/dist/treedx/client/treedx/federation/queries/check-mirror-health.js +0 -7
  400. package/dist/treedx/client/treedx/federation/updates/promote-mirror.d.ts +0 -3
  401. package/dist/treedx/client/treedx/federation/updates/promote-mirror.js +0 -7
  402. package/dist/treedx/client/treedx/federation/updates/sync-mirror.d.ts +0 -3
  403. package/dist/treedx/client/treedx/federation/updates/sync-mirror.js +0 -7
  404. package/dist/treedx/client/treedx/graph/contracts/federated-context.d.ts +0 -3
  405. package/dist/treedx/client/treedx/graph/contracts/federated-context.js +0 -7
  406. package/dist/treedx/client/treedx/graph/contracts/federated-graph.d.ts +0 -3
  407. package/dist/treedx/client/treedx/graph/contracts/federated-graph.js +0 -7
  408. package/dist/treedx/client/treedx/graph/contracts/graph-search.d.ts +0 -3
  409. package/dist/treedx/client/treedx/graph/contracts/graph-search.js +0 -8
  410. package/dist/treedx/client/treedx/graph/queries/get-graph-node.d.ts +0 -3
  411. package/dist/treedx/client/treedx/graph/queries/get-graph-node.js +0 -10
  412. package/dist/treedx/client/treedx/graph/queries/get-graph-refresh-job.d.ts +0 -3
  413. package/dist/treedx/client/treedx/graph/queries/get-graph-refresh-job.js +0 -7
  414. package/dist/treedx/client/treedx/graph/queries/get-subgraph.d.ts +0 -3
  415. package/dist/treedx/client/treedx/graph/queries/get-subgraph.js +0 -7
  416. package/dist/treedx/client/treedx/graph/queries/query-graph.d.ts +0 -3
  417. package/dist/treedx/client/treedx/graph/queries/query-graph.js +0 -7
  418. package/dist/treedx/client/treedx/graph/queries/search-graph-entities.d.ts +0 -3
  419. package/dist/treedx/client/treedx/graph/queries/search-graph-entities.js +0 -6
  420. package/dist/treedx/client/treedx/graph/queries/search-graph-files.d.ts +0 -3
  421. package/dist/treedx/client/treedx/graph/queries/search-graph-files.js +0 -6
  422. package/dist/treedx/client/treedx/graph/queries/search-graph-sections.d.ts +0 -3
  423. package/dist/treedx/client/treedx/graph/queries/search-graph-sections.js +0 -6
  424. package/dist/treedx/client/treedx/graph/updates/refresh-graph.d.ts +0 -3
  425. package/dist/treedx/client/treedx/graph/updates/refresh-graph.js +0 -7
  426. package/dist/treedx/client/treedx/search/contracts/federated-search.d.ts +0 -3
  427. package/dist/treedx/client/treedx/search/contracts/federated-search.js +0 -7
  428. package/dist/treedx/client/treedx/workspaces/creation/create-workspace.d.ts +0 -3
  429. package/dist/treedx/client/treedx/workspaces/creation/create-workspace.js +0 -7
  430. package/dist/treedx/client/treedx/workspaces/retirement/abandon-workspace.d.ts +0 -3
  431. package/dist/treedx/client/treedx/workspaces/retirement/abandon-workspace.js +0 -12
  432. package/dist/treedx/client/treedx/workspaces/retirement/close-workspace.d.ts +0 -2
  433. package/dist/treedx/client/treedx/workspaces/retirement/close-workspace.js +0 -6
  434. package/dist/treedx/generated/openapi-types.d.ts +0 -3662
  435. package/dist/treedx/support/client.d.ts +0 -251
  436. package/dist/treedx/support/client.js +0 -252
  437. package/dist/treedx/support/errors.d.ts +0 -13
  438. package/dist/treedx/support/errors.js +0 -17
  439. package/dist/treedx/types/tree-dx-actor.d.ts +0 -209
  440. package/dist/treedx/types/tree-dx-actor.js +0 -8
  441. package/dist/treedx/types/tree-dx-artifact-list-response.d.ts +0 -13
  442. package/dist/treedx/types/tree-dx-changeset.d.ts +0 -51
  443. package/dist/treedx/types/tree-dx-changeset.js +0 -6
  444. package/dist/treedx/types/tree-dx-context-request.d.ts +0 -245
  445. package/dist/treedx/types/tree-dx-context-request.js +0 -0
  446. package/dist/treedx/types/tree-dx-exec-result.d.ts +0 -249
  447. package/dist/treedx/types/tree-dx-exec-result.js +0 -0
  448. package/dist/treedx/types/tree-dx-list-tree-request.d.ts +0 -222
  449. package/dist/treedx/types/tree-dx-list-tree-request.js +0 -0
  450. package/dist/treedx/types/tree-dx-push-request.d.ts +0 -229
  451. package/dist/treedx/types/tree-dx-push-request.js +0 -0
  452. /package/dist/{treedx/generated/openapi-types.js → site-contracts/cloudflare.js} +0 -0
  453. /package/dist/{treedx/types/tree-dx-artifact-list-response.js → site-contracts/platform.js} +0 -0
@@ -0,0 +1,2698 @@
1
+ import { z } from 'zod';
2
+ export declare function hostedTopologyStateKey(input: {
3
+ teamId: string;
4
+ deploymentId: string;
5
+ environment: 'staging' | 'production';
6
+ stackId: string;
7
+ }): string;
8
+ declare const hostedStateBackendCoreSchema: z.ZodObject<{
9
+ schemaVersion: z.ZodLiteral<"treeseed.hosted-state-backend/v1">;
10
+ type: z.ZodLiteral<"s3">;
11
+ teamId: z.ZodString;
12
+ deploymentId: z.ZodString;
13
+ environment: z.ZodEnum<["staging", "production"]>;
14
+ stackId: z.ZodString;
15
+ connectionRef: z.ZodString;
16
+ bucket: z.ZodString;
17
+ key: z.ZodString;
18
+ region: z.ZodString;
19
+ endpoint: z.ZodOptional<z.ZodString>;
20
+ usePathStyle: z.ZodOptional<z.ZodBoolean>;
21
+ encryptionKeyRef: z.ZodString;
22
+ }, "strict", z.ZodTypeAny, {
23
+ type: "s3";
24
+ schemaVersion: "treeseed.hosted-state-backend/v1";
25
+ key: string;
26
+ teamId: string;
27
+ environment: "production" | "staging";
28
+ deploymentId: string;
29
+ bucket: string;
30
+ stackId: string;
31
+ connectionRef: string;
32
+ region: string;
33
+ encryptionKeyRef: string;
34
+ endpoint?: string | undefined;
35
+ usePathStyle?: boolean | undefined;
36
+ }, {
37
+ type: "s3";
38
+ schemaVersion: "treeseed.hosted-state-backend/v1";
39
+ key: string;
40
+ teamId: string;
41
+ environment: "production" | "staging";
42
+ deploymentId: string;
43
+ bucket: string;
44
+ stackId: string;
45
+ connectionRef: string;
46
+ region: string;
47
+ encryptionKeyRef: string;
48
+ endpoint?: string | undefined;
49
+ usePathStyle?: boolean | undefined;
50
+ }>;
51
+ export declare const hostedStateBackendSchema: z.ZodEffects<z.ZodObject<{
52
+ schemaVersion: z.ZodLiteral<"treeseed.hosted-state-backend/v1">;
53
+ type: z.ZodLiteral<"s3">;
54
+ teamId: z.ZodString;
55
+ deploymentId: z.ZodString;
56
+ environment: z.ZodEnum<["staging", "production"]>;
57
+ stackId: z.ZodString;
58
+ connectionRef: z.ZodString;
59
+ bucket: z.ZodString;
60
+ key: z.ZodString;
61
+ region: z.ZodString;
62
+ endpoint: z.ZodOptional<z.ZodString>;
63
+ usePathStyle: z.ZodOptional<z.ZodBoolean>;
64
+ encryptionKeyRef: z.ZodString;
65
+ } & {
66
+ bindingDigest: z.ZodString;
67
+ }, "strict", z.ZodTypeAny, {
68
+ type: "s3";
69
+ schemaVersion: "treeseed.hosted-state-backend/v1";
70
+ key: string;
71
+ teamId: string;
72
+ environment: "production" | "staging";
73
+ deploymentId: string;
74
+ bucket: string;
75
+ stackId: string;
76
+ connectionRef: string;
77
+ region: string;
78
+ encryptionKeyRef: string;
79
+ bindingDigest: string;
80
+ endpoint?: string | undefined;
81
+ usePathStyle?: boolean | undefined;
82
+ }, {
83
+ type: "s3";
84
+ schemaVersion: "treeseed.hosted-state-backend/v1";
85
+ key: string;
86
+ teamId: string;
87
+ environment: "production" | "staging";
88
+ deploymentId: string;
89
+ bucket: string;
90
+ stackId: string;
91
+ connectionRef: string;
92
+ region: string;
93
+ encryptionKeyRef: string;
94
+ bindingDigest: string;
95
+ endpoint?: string | undefined;
96
+ usePathStyle?: boolean | undefined;
97
+ }>, {
98
+ type: "s3";
99
+ schemaVersion: "treeseed.hosted-state-backend/v1";
100
+ key: string;
101
+ teamId: string;
102
+ environment: "production" | "staging";
103
+ deploymentId: string;
104
+ bucket: string;
105
+ stackId: string;
106
+ connectionRef: string;
107
+ region: string;
108
+ encryptionKeyRef: string;
109
+ bindingDigest: string;
110
+ endpoint?: string | undefined;
111
+ usePathStyle?: boolean | undefined;
112
+ }, {
113
+ type: "s3";
114
+ schemaVersion: "treeseed.hosted-state-backend/v1";
115
+ key: string;
116
+ teamId: string;
117
+ environment: "production" | "staging";
118
+ deploymentId: string;
119
+ bucket: string;
120
+ stackId: string;
121
+ connectionRef: string;
122
+ region: string;
123
+ encryptionKeyRef: string;
124
+ bindingDigest: string;
125
+ endpoint?: string | undefined;
126
+ usePathStyle?: boolean | undefined;
127
+ }>;
128
+ export declare function bindHostedStateBackend(input: z.input<typeof hostedStateBackendCoreSchema>): {
129
+ type: "s3";
130
+ schemaVersion: "treeseed.hosted-state-backend/v1";
131
+ key: string;
132
+ teamId: string;
133
+ environment: "production" | "staging";
134
+ deploymentId: string;
135
+ bucket: string;
136
+ stackId: string;
137
+ connectionRef: string;
138
+ region: string;
139
+ encryptionKeyRef: string;
140
+ bindingDigest: string;
141
+ endpoint?: string | undefined;
142
+ usePathStyle?: boolean | undefined;
143
+ };
144
+ export declare const hostedProviderSchema: z.ZodEnum<["cloudflare", "railway"]>;
145
+ export declare const hostedResourceKindSchema: z.ZodEnum<["admin-application", "pages-application", "dns-record", "tls-policy", "api-proxy", "control-plane-api", "postgresql", "operations-runner", "treedx-service"]>;
146
+ export declare const hostedArtifactSchema: z.ZodUnion<[z.ZodObject<{
147
+ kind: z.ZodLiteral<"archive">;
148
+ format: z.ZodLiteral<"tar+gzip">;
149
+ digest: z.ZodString;
150
+ source: z.ZodString;
151
+ }, "strict", z.ZodTypeAny, {
152
+ kind: "archive";
153
+ digest: string;
154
+ source: string;
155
+ format: "tar+gzip";
156
+ }, {
157
+ kind: "archive";
158
+ digest: string;
159
+ source: string;
160
+ format: "tar+gzip";
161
+ }>, z.ZodObject<{
162
+ kind: z.ZodLiteral<"file">;
163
+ mediaType: z.ZodString;
164
+ digest: z.ZodString;
165
+ source: z.ZodString;
166
+ }, "strict", z.ZodTypeAny, {
167
+ kind: "file";
168
+ digest: string;
169
+ source: string;
170
+ mediaType: string;
171
+ }, {
172
+ kind: "file";
173
+ digest: string;
174
+ source: string;
175
+ mediaType: string;
176
+ }>, z.ZodEffects<z.ZodObject<{
177
+ kind: z.ZodLiteral<"oci-image">;
178
+ digest: z.ZodString;
179
+ identity: z.ZodString;
180
+ }, "strict", z.ZodTypeAny, {
181
+ identity: string;
182
+ kind: "oci-image";
183
+ digest: string;
184
+ }, {
185
+ identity: string;
186
+ kind: "oci-image";
187
+ digest: string;
188
+ }>, {
189
+ identity: string;
190
+ kind: "oci-image";
191
+ digest: string;
192
+ }, {
193
+ identity: string;
194
+ kind: "oci-image";
195
+ digest: string;
196
+ }>]>;
197
+ declare const hostedConnectionSnapshotSchema: z.ZodEffects<z.ZodObject<{
198
+ connectionRef: z.ZodString;
199
+ nonSecretConfig: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
200
+ }, "strict", z.ZodTypeAny, {
201
+ connectionRef: string;
202
+ nonSecretConfig: Record<string, string | number | boolean>;
203
+ }, {
204
+ connectionRef: string;
205
+ nonSecretConfig: Record<string, string | number | boolean>;
206
+ }>, {
207
+ connectionRef: string;
208
+ nonSecretConfig: Record<string, string | number | boolean>;
209
+ }, {
210
+ connectionRef: string;
211
+ nonSecretConfig: Record<string, string | number | boolean>;
212
+ }>;
213
+ export declare const hostedResourceDeclarationSchema: z.ZodObject<{
214
+ id: z.ZodString;
215
+ provider: z.ZodEnum<["cloudflare", "railway"]>;
216
+ kind: z.ZodEnum<["admin-application", "pages-application", "dns-record", "tls-policy", "api-proxy", "control-plane-api", "postgresql", "operations-runner", "treedx-service"]>;
217
+ dependsOn: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
218
+ parameters: z.ZodDefault<z.ZodRecord<z.ZodUnion<[z.ZodString, z.ZodString]>, z.ZodUnion<[z.ZodObject<{
219
+ input: z.ZodString;
220
+ }, "strict", z.ZodTypeAny, {
221
+ input: string;
222
+ }, {
223
+ input: string;
224
+ }>, z.ZodObject<{
225
+ artifact: z.ZodString;
226
+ }, "strict", z.ZodTypeAny, {
227
+ artifact: string;
228
+ }, {
229
+ artifact: string;
230
+ }>, z.ZodObject<{
231
+ resourceOutput: z.ZodObject<{
232
+ resourceId: z.ZodString;
233
+ output: z.ZodString;
234
+ }, "strict", z.ZodTypeAny, {
235
+ resourceId: string;
236
+ output: string;
237
+ }, {
238
+ resourceId: string;
239
+ output: string;
240
+ }>;
241
+ }, "strict", z.ZodTypeAny, {
242
+ resourceOutput: {
243
+ resourceId: string;
244
+ output: string;
245
+ };
246
+ }, {
247
+ resourceOutput: {
248
+ resourceId: string;
249
+ output: string;
250
+ };
251
+ }>, z.ZodObject<{
252
+ literal: z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean]>;
253
+ }, "strict", z.ZodTypeAny, {
254
+ literal: string | number | boolean;
255
+ }, {
256
+ literal: string | number | boolean;
257
+ }>]>>>;
258
+ adoption: z.ZodObject<{
259
+ mode: z.ZodLiteral<"adopt-or-create">;
260
+ externalIdInput: z.ZodOptional<z.ZodString>;
261
+ replacement: z.ZodLiteral<"forbidden">;
262
+ }, "strict", z.ZodTypeAny, {
263
+ mode: "adopt-or-create";
264
+ replacement: "forbidden";
265
+ externalIdInput?: string | undefined;
266
+ }, {
267
+ mode: "adopt-or-create";
268
+ replacement: "forbidden";
269
+ externalIdInput?: string | undefined;
270
+ }>;
271
+ }, "strict", z.ZodTypeAny, {
272
+ kind: "admin-application" | "pages-application" | "dns-record" | "tls-policy" | "api-proxy" | "control-plane-api" | "postgresql" | "operations-runner" | "treedx-service";
273
+ provider: "cloudflare" | "railway";
274
+ id: string;
275
+ dependsOn: string[];
276
+ parameters: Record<string, {
277
+ input: string;
278
+ } | {
279
+ artifact: string;
280
+ } | {
281
+ resourceOutput: {
282
+ resourceId: string;
283
+ output: string;
284
+ };
285
+ } | {
286
+ literal: string | number | boolean;
287
+ }>;
288
+ adoption: {
289
+ mode: "adopt-or-create";
290
+ replacement: "forbidden";
291
+ externalIdInput?: string | undefined;
292
+ };
293
+ }, {
294
+ kind: "admin-application" | "pages-application" | "dns-record" | "tls-policy" | "api-proxy" | "control-plane-api" | "postgresql" | "operations-runner" | "treedx-service";
295
+ provider: "cloudflare" | "railway";
296
+ id: string;
297
+ adoption: {
298
+ mode: "adopt-or-create";
299
+ replacement: "forbidden";
300
+ externalIdInput?: string | undefined;
301
+ };
302
+ dependsOn?: string[] | undefined;
303
+ parameters?: Record<string, {
304
+ input: string;
305
+ } | {
306
+ artifact: string;
307
+ } | {
308
+ resourceOutput: {
309
+ resourceId: string;
310
+ output: string;
311
+ };
312
+ } | {
313
+ literal: string | number | boolean;
314
+ }> | undefined;
315
+ }>;
316
+ export declare const hostedTopologyDeclarationSchema: z.ZodEffects<z.ZodObject<{
317
+ schemaVersion: z.ZodLiteral<"treeseed.hosted-topology/v1">;
318
+ id: z.ZodString;
319
+ teamId: z.ZodString;
320
+ deploymentId: z.ZodString;
321
+ stackId: z.ZodString;
322
+ environment: z.ZodEnum<["staging", "production"]>;
323
+ mutation: z.ZodLiteral<"agent-authorized">;
324
+ platform: z.ZodObject<{
325
+ repository: z.ZodLiteral<"treeseed-ai/platform">;
326
+ commit: z.ZodString;
327
+ }, "strict", z.ZodTypeAny, {
328
+ repository: "treeseed-ai/platform";
329
+ commit: string;
330
+ }, {
331
+ repository: "treeseed-ai/platform";
332
+ commit: string;
333
+ }>;
334
+ stateBackend: z.ZodObject<{
335
+ connectionRef: z.ZodString;
336
+ }, "strict", z.ZodTypeAny, {
337
+ connectionRef: string;
338
+ }, {
339
+ connectionRef: string;
340
+ }>;
341
+ providerConnections: z.ZodRecord<z.ZodEnum<["cloudflare", "railway"]>, z.ZodObject<{
342
+ connectionRef: z.ZodString;
343
+ }, "strict", z.ZodTypeAny, {
344
+ connectionRef: string;
345
+ }, {
346
+ connectionRef: string;
347
+ }>>;
348
+ artifacts: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodObject<{
349
+ kind: z.ZodLiteral<"archive">;
350
+ format: z.ZodLiteral<"tar+gzip">;
351
+ digest: z.ZodString;
352
+ source: z.ZodString;
353
+ }, "strict", z.ZodTypeAny, {
354
+ kind: "archive";
355
+ digest: string;
356
+ source: string;
357
+ format: "tar+gzip";
358
+ }, {
359
+ kind: "archive";
360
+ digest: string;
361
+ source: string;
362
+ format: "tar+gzip";
363
+ }>, z.ZodObject<{
364
+ kind: z.ZodLiteral<"file">;
365
+ mediaType: z.ZodString;
366
+ digest: z.ZodString;
367
+ source: z.ZodString;
368
+ }, "strict", z.ZodTypeAny, {
369
+ kind: "file";
370
+ digest: string;
371
+ source: string;
372
+ mediaType: string;
373
+ }, {
374
+ kind: "file";
375
+ digest: string;
376
+ source: string;
377
+ mediaType: string;
378
+ }>, z.ZodEffects<z.ZodObject<{
379
+ kind: z.ZodLiteral<"oci-image">;
380
+ digest: z.ZodString;
381
+ identity: z.ZodString;
382
+ }, "strict", z.ZodTypeAny, {
383
+ identity: string;
384
+ kind: "oci-image";
385
+ digest: string;
386
+ }, {
387
+ identity: string;
388
+ kind: "oci-image";
389
+ digest: string;
390
+ }>, {
391
+ identity: string;
392
+ kind: "oci-image";
393
+ digest: string;
394
+ }, {
395
+ identity: string;
396
+ kind: "oci-image";
397
+ digest: string;
398
+ }>]>>;
399
+ resources: z.ZodArray<z.ZodObject<{
400
+ id: z.ZodString;
401
+ provider: z.ZodEnum<["cloudflare", "railway"]>;
402
+ kind: z.ZodEnum<["admin-application", "pages-application", "dns-record", "tls-policy", "api-proxy", "control-plane-api", "postgresql", "operations-runner", "treedx-service"]>;
403
+ dependsOn: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
404
+ parameters: z.ZodDefault<z.ZodRecord<z.ZodUnion<[z.ZodString, z.ZodString]>, z.ZodUnion<[z.ZodObject<{
405
+ input: z.ZodString;
406
+ }, "strict", z.ZodTypeAny, {
407
+ input: string;
408
+ }, {
409
+ input: string;
410
+ }>, z.ZodObject<{
411
+ artifact: z.ZodString;
412
+ }, "strict", z.ZodTypeAny, {
413
+ artifact: string;
414
+ }, {
415
+ artifact: string;
416
+ }>, z.ZodObject<{
417
+ resourceOutput: z.ZodObject<{
418
+ resourceId: z.ZodString;
419
+ output: z.ZodString;
420
+ }, "strict", z.ZodTypeAny, {
421
+ resourceId: string;
422
+ output: string;
423
+ }, {
424
+ resourceId: string;
425
+ output: string;
426
+ }>;
427
+ }, "strict", z.ZodTypeAny, {
428
+ resourceOutput: {
429
+ resourceId: string;
430
+ output: string;
431
+ };
432
+ }, {
433
+ resourceOutput: {
434
+ resourceId: string;
435
+ output: string;
436
+ };
437
+ }>, z.ZodObject<{
438
+ literal: z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean]>;
439
+ }, "strict", z.ZodTypeAny, {
440
+ literal: string | number | boolean;
441
+ }, {
442
+ literal: string | number | boolean;
443
+ }>]>>>;
444
+ adoption: z.ZodObject<{
445
+ mode: z.ZodLiteral<"adopt-or-create">;
446
+ externalIdInput: z.ZodOptional<z.ZodString>;
447
+ replacement: z.ZodLiteral<"forbidden">;
448
+ }, "strict", z.ZodTypeAny, {
449
+ mode: "adopt-or-create";
450
+ replacement: "forbidden";
451
+ externalIdInput?: string | undefined;
452
+ }, {
453
+ mode: "adopt-or-create";
454
+ replacement: "forbidden";
455
+ externalIdInput?: string | undefined;
456
+ }>;
457
+ }, "strict", z.ZodTypeAny, {
458
+ kind: "admin-application" | "pages-application" | "dns-record" | "tls-policy" | "api-proxy" | "control-plane-api" | "postgresql" | "operations-runner" | "treedx-service";
459
+ provider: "cloudflare" | "railway";
460
+ id: string;
461
+ dependsOn: string[];
462
+ parameters: Record<string, {
463
+ input: string;
464
+ } | {
465
+ artifact: string;
466
+ } | {
467
+ resourceOutput: {
468
+ resourceId: string;
469
+ output: string;
470
+ };
471
+ } | {
472
+ literal: string | number | boolean;
473
+ }>;
474
+ adoption: {
475
+ mode: "adopt-or-create";
476
+ replacement: "forbidden";
477
+ externalIdInput?: string | undefined;
478
+ };
479
+ }, {
480
+ kind: "admin-application" | "pages-application" | "dns-record" | "tls-policy" | "api-proxy" | "control-plane-api" | "postgresql" | "operations-runner" | "treedx-service";
481
+ provider: "cloudflare" | "railway";
482
+ id: string;
483
+ adoption: {
484
+ mode: "adopt-or-create";
485
+ replacement: "forbidden";
486
+ externalIdInput?: string | undefined;
487
+ };
488
+ dependsOn?: string[] | undefined;
489
+ parameters?: Record<string, {
490
+ input: string;
491
+ } | {
492
+ artifact: string;
493
+ } | {
494
+ resourceOutput: {
495
+ resourceId: string;
496
+ output: string;
497
+ };
498
+ } | {
499
+ literal: string | number | boolean;
500
+ }> | undefined;
501
+ }>, "many">;
502
+ }, "strict", z.ZodTypeAny, {
503
+ id: string;
504
+ schemaVersion: "treeseed.hosted-topology/v1";
505
+ resources: {
506
+ kind: "admin-application" | "pages-application" | "dns-record" | "tls-policy" | "api-proxy" | "control-plane-api" | "postgresql" | "operations-runner" | "treedx-service";
507
+ provider: "cloudflare" | "railway";
508
+ id: string;
509
+ dependsOn: string[];
510
+ parameters: Record<string, {
511
+ input: string;
512
+ } | {
513
+ artifact: string;
514
+ } | {
515
+ resourceOutput: {
516
+ resourceId: string;
517
+ output: string;
518
+ };
519
+ } | {
520
+ literal: string | number | boolean;
521
+ }>;
522
+ adoption: {
523
+ mode: "adopt-or-create";
524
+ replacement: "forbidden";
525
+ externalIdInput?: string | undefined;
526
+ };
527
+ }[];
528
+ teamId: string;
529
+ platform: {
530
+ repository: "treeseed-ai/platform";
531
+ commit: string;
532
+ };
533
+ mutation: "agent-authorized";
534
+ environment: "production" | "staging";
535
+ artifacts: Record<string, {
536
+ kind: "archive";
537
+ digest: string;
538
+ source: string;
539
+ format: "tar+gzip";
540
+ } | {
541
+ kind: "file";
542
+ digest: string;
543
+ source: string;
544
+ mediaType: string;
545
+ } | {
546
+ identity: string;
547
+ kind: "oci-image";
548
+ digest: string;
549
+ }>;
550
+ deploymentId: string;
551
+ stackId: string;
552
+ stateBackend: {
553
+ connectionRef: string;
554
+ };
555
+ providerConnections: Partial<Record<"cloudflare" | "railway", {
556
+ connectionRef: string;
557
+ }>>;
558
+ }, {
559
+ id: string;
560
+ schemaVersion: "treeseed.hosted-topology/v1";
561
+ resources: {
562
+ kind: "admin-application" | "pages-application" | "dns-record" | "tls-policy" | "api-proxy" | "control-plane-api" | "postgresql" | "operations-runner" | "treedx-service";
563
+ provider: "cloudflare" | "railway";
564
+ id: string;
565
+ adoption: {
566
+ mode: "adopt-or-create";
567
+ replacement: "forbidden";
568
+ externalIdInput?: string | undefined;
569
+ };
570
+ dependsOn?: string[] | undefined;
571
+ parameters?: Record<string, {
572
+ input: string;
573
+ } | {
574
+ artifact: string;
575
+ } | {
576
+ resourceOutput: {
577
+ resourceId: string;
578
+ output: string;
579
+ };
580
+ } | {
581
+ literal: string | number | boolean;
582
+ }> | undefined;
583
+ }[];
584
+ teamId: string;
585
+ platform: {
586
+ repository: "treeseed-ai/platform";
587
+ commit: string;
588
+ };
589
+ mutation: "agent-authorized";
590
+ environment: "production" | "staging";
591
+ artifacts: Record<string, {
592
+ kind: "archive";
593
+ digest: string;
594
+ source: string;
595
+ format: "tar+gzip";
596
+ } | {
597
+ kind: "file";
598
+ digest: string;
599
+ source: string;
600
+ mediaType: string;
601
+ } | {
602
+ identity: string;
603
+ kind: "oci-image";
604
+ digest: string;
605
+ }>;
606
+ deploymentId: string;
607
+ stackId: string;
608
+ stateBackend: {
609
+ connectionRef: string;
610
+ };
611
+ providerConnections: Partial<Record<"cloudflare" | "railway", {
612
+ connectionRef: string;
613
+ }>>;
614
+ }>, {
615
+ id: string;
616
+ schemaVersion: "treeseed.hosted-topology/v1";
617
+ resources: {
618
+ kind: "admin-application" | "pages-application" | "dns-record" | "tls-policy" | "api-proxy" | "control-plane-api" | "postgresql" | "operations-runner" | "treedx-service";
619
+ provider: "cloudflare" | "railway";
620
+ id: string;
621
+ dependsOn: string[];
622
+ parameters: Record<string, {
623
+ input: string;
624
+ } | {
625
+ artifact: string;
626
+ } | {
627
+ resourceOutput: {
628
+ resourceId: string;
629
+ output: string;
630
+ };
631
+ } | {
632
+ literal: string | number | boolean;
633
+ }>;
634
+ adoption: {
635
+ mode: "adopt-or-create";
636
+ replacement: "forbidden";
637
+ externalIdInput?: string | undefined;
638
+ };
639
+ }[];
640
+ teamId: string;
641
+ platform: {
642
+ repository: "treeseed-ai/platform";
643
+ commit: string;
644
+ };
645
+ mutation: "agent-authorized";
646
+ environment: "production" | "staging";
647
+ artifacts: Record<string, {
648
+ kind: "archive";
649
+ digest: string;
650
+ source: string;
651
+ format: "tar+gzip";
652
+ } | {
653
+ kind: "file";
654
+ digest: string;
655
+ source: string;
656
+ mediaType: string;
657
+ } | {
658
+ identity: string;
659
+ kind: "oci-image";
660
+ digest: string;
661
+ }>;
662
+ deploymentId: string;
663
+ stackId: string;
664
+ stateBackend: {
665
+ connectionRef: string;
666
+ };
667
+ providerConnections: Partial<Record<"cloudflare" | "railway", {
668
+ connectionRef: string;
669
+ }>>;
670
+ }, {
671
+ id: string;
672
+ schemaVersion: "treeseed.hosted-topology/v1";
673
+ resources: {
674
+ kind: "admin-application" | "pages-application" | "dns-record" | "tls-policy" | "api-proxy" | "control-plane-api" | "postgresql" | "operations-runner" | "treedx-service";
675
+ provider: "cloudflare" | "railway";
676
+ id: string;
677
+ adoption: {
678
+ mode: "adopt-or-create";
679
+ replacement: "forbidden";
680
+ externalIdInput?: string | undefined;
681
+ };
682
+ dependsOn?: string[] | undefined;
683
+ parameters?: Record<string, {
684
+ input: string;
685
+ } | {
686
+ artifact: string;
687
+ } | {
688
+ resourceOutput: {
689
+ resourceId: string;
690
+ output: string;
691
+ };
692
+ } | {
693
+ literal: string | number | boolean;
694
+ }> | undefined;
695
+ }[];
696
+ teamId: string;
697
+ platform: {
698
+ repository: "treeseed-ai/platform";
699
+ commit: string;
700
+ };
701
+ mutation: "agent-authorized";
702
+ environment: "production" | "staging";
703
+ artifacts: Record<string, {
704
+ kind: "archive";
705
+ digest: string;
706
+ source: string;
707
+ format: "tar+gzip";
708
+ } | {
709
+ kind: "file";
710
+ digest: string;
711
+ source: string;
712
+ mediaType: string;
713
+ } | {
714
+ identity: string;
715
+ kind: "oci-image";
716
+ digest: string;
717
+ }>;
718
+ deploymentId: string;
719
+ stackId: string;
720
+ stateBackend: {
721
+ connectionRef: string;
722
+ };
723
+ providerConnections: Partial<Record<"cloudflare" | "railway", {
724
+ connectionRef: string;
725
+ }>>;
726
+ }>;
727
+ export declare const hostedResourceObservationSchema: z.ZodObject<{
728
+ resourceId: z.ZodString;
729
+ provider: z.ZodEnum<["cloudflare", "railway"]>;
730
+ kind: z.ZodEnum<["admin-application", "pages-application", "dns-record", "tls-policy", "api-proxy", "control-plane-api", "postgresql", "operations-runner", "treedx-service"]>;
731
+ providerResourceId: z.ZodNullable<z.ZodString>;
732
+ state: z.ZodEnum<["missing", "healthy", "degraded"]>;
733
+ managedBy: z.ZodNullable<z.ZodEnum<["treeseed", "external"]>>;
734
+ observedDigest: z.ZodNullable<z.ZodString>;
735
+ observedAt: z.ZodString;
736
+ }, "strict", z.ZodTypeAny, {
737
+ kind: "admin-application" | "pages-application" | "dns-record" | "tls-policy" | "api-proxy" | "control-plane-api" | "postgresql" | "operations-runner" | "treedx-service";
738
+ provider: "cloudflare" | "railway";
739
+ state: "missing" | "degraded" | "healthy";
740
+ resourceId: string;
741
+ providerResourceId: string | null;
742
+ managedBy: "external" | "treeseed" | null;
743
+ observedDigest: string | null;
744
+ observedAt: string;
745
+ }, {
746
+ kind: "admin-application" | "pages-application" | "dns-record" | "tls-policy" | "api-proxy" | "control-plane-api" | "postgresql" | "operations-runner" | "treedx-service";
747
+ provider: "cloudflare" | "railway";
748
+ state: "missing" | "degraded" | "healthy";
749
+ resourceId: string;
750
+ providerResourceId: string | null;
751
+ managedBy: "external" | "treeseed" | null;
752
+ observedDigest: string | null;
753
+ observedAt: string;
754
+ }>;
755
+ export declare const hostedTopologyPlanSchema: z.ZodEffects<z.ZodObject<{
756
+ readonly schemaVersion: z.ZodLiteral<"treeseed.hosted-topology-plan/v1">;
757
+ readonly planId: z.ZodString;
758
+ readonly planDigest: z.ZodString;
759
+ readonly declarationDigest: z.ZodString;
760
+ readonly topologyId: z.ZodString;
761
+ readonly teamId: z.ZodString;
762
+ readonly deploymentId: z.ZodString;
763
+ readonly stackId: z.ZodString;
764
+ readonly environment: z.ZodEnum<["staging", "production"]>;
765
+ readonly platformCommit: z.ZodString;
766
+ readonly stateBackend: z.ZodNullable<z.ZodEffects<z.ZodObject<{
767
+ schemaVersion: z.ZodLiteral<"treeseed.hosted-state-backend/v1">;
768
+ type: z.ZodLiteral<"s3">;
769
+ teamId: z.ZodString;
770
+ deploymentId: z.ZodString;
771
+ environment: z.ZodEnum<["staging", "production"]>;
772
+ stackId: z.ZodString;
773
+ connectionRef: z.ZodString;
774
+ bucket: z.ZodString;
775
+ key: z.ZodString;
776
+ region: z.ZodString;
777
+ endpoint: z.ZodOptional<z.ZodString>;
778
+ usePathStyle: z.ZodOptional<z.ZodBoolean>;
779
+ encryptionKeyRef: z.ZodString;
780
+ } & {
781
+ bindingDigest: z.ZodString;
782
+ }, "strict", z.ZodTypeAny, {
783
+ type: "s3";
784
+ schemaVersion: "treeseed.hosted-state-backend/v1";
785
+ key: string;
786
+ teamId: string;
787
+ environment: "production" | "staging";
788
+ deploymentId: string;
789
+ bucket: string;
790
+ stackId: string;
791
+ connectionRef: string;
792
+ region: string;
793
+ encryptionKeyRef: string;
794
+ bindingDigest: string;
795
+ endpoint?: string | undefined;
796
+ usePathStyle?: boolean | undefined;
797
+ }, {
798
+ type: "s3";
799
+ schemaVersion: "treeseed.hosted-state-backend/v1";
800
+ key: string;
801
+ teamId: string;
802
+ environment: "production" | "staging";
803
+ deploymentId: string;
804
+ bucket: string;
805
+ stackId: string;
806
+ connectionRef: string;
807
+ region: string;
808
+ encryptionKeyRef: string;
809
+ bindingDigest: string;
810
+ endpoint?: string | undefined;
811
+ usePathStyle?: boolean | undefined;
812
+ }>, {
813
+ type: "s3";
814
+ schemaVersion: "treeseed.hosted-state-backend/v1";
815
+ key: string;
816
+ teamId: string;
817
+ environment: "production" | "staging";
818
+ deploymentId: string;
819
+ bucket: string;
820
+ stackId: string;
821
+ connectionRef: string;
822
+ region: string;
823
+ encryptionKeyRef: string;
824
+ bindingDigest: string;
825
+ endpoint?: string | undefined;
826
+ usePathStyle?: boolean | undefined;
827
+ }, {
828
+ type: "s3";
829
+ schemaVersion: "treeseed.hosted-state-backend/v1";
830
+ key: string;
831
+ teamId: string;
832
+ environment: "production" | "staging";
833
+ deploymentId: string;
834
+ bucket: string;
835
+ stackId: string;
836
+ connectionRef: string;
837
+ region: string;
838
+ encryptionKeyRef: string;
839
+ bindingDigest: string;
840
+ endpoint?: string | undefined;
841
+ usePathStyle?: boolean | undefined;
842
+ }>>;
843
+ readonly artifacts: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodObject<{
844
+ kind: z.ZodLiteral<"archive">;
845
+ format: z.ZodLiteral<"tar+gzip">;
846
+ digest: z.ZodString;
847
+ source: z.ZodString;
848
+ }, "strict", z.ZodTypeAny, {
849
+ kind: "archive";
850
+ digest: string;
851
+ source: string;
852
+ format: "tar+gzip";
853
+ }, {
854
+ kind: "archive";
855
+ digest: string;
856
+ source: string;
857
+ format: "tar+gzip";
858
+ }>, z.ZodObject<{
859
+ kind: z.ZodLiteral<"file">;
860
+ mediaType: z.ZodString;
861
+ digest: z.ZodString;
862
+ source: z.ZodString;
863
+ }, "strict", z.ZodTypeAny, {
864
+ kind: "file";
865
+ digest: string;
866
+ source: string;
867
+ mediaType: string;
868
+ }, {
869
+ kind: "file";
870
+ digest: string;
871
+ source: string;
872
+ mediaType: string;
873
+ }>, z.ZodEffects<z.ZodObject<{
874
+ kind: z.ZodLiteral<"oci-image">;
875
+ digest: z.ZodString;
876
+ identity: z.ZodString;
877
+ }, "strict", z.ZodTypeAny, {
878
+ identity: string;
879
+ kind: "oci-image";
880
+ digest: string;
881
+ }, {
882
+ identity: string;
883
+ kind: "oci-image";
884
+ digest: string;
885
+ }>, {
886
+ identity: string;
887
+ kind: "oci-image";
888
+ digest: string;
889
+ }, {
890
+ identity: string;
891
+ kind: "oci-image";
892
+ digest: string;
893
+ }>]>>;
894
+ readonly providerConnections: z.ZodRecord<z.ZodEnum<["cloudflare", "railway"]>, z.ZodEffects<z.ZodObject<{
895
+ connectionRef: z.ZodString;
896
+ nonSecretConfig: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
897
+ }, "strict", z.ZodTypeAny, {
898
+ connectionRef: string;
899
+ nonSecretConfig: Record<string, string | number | boolean>;
900
+ }, {
901
+ connectionRef: string;
902
+ nonSecretConfig: Record<string, string | number | boolean>;
903
+ }>, {
904
+ connectionRef: string;
905
+ nonSecretConfig: Record<string, string | number | boolean>;
906
+ }, {
907
+ connectionRef: string;
908
+ nonSecretConfig: Record<string, string | number | boolean>;
909
+ }>>;
910
+ readonly actions: z.ZodArray<z.ZodObject<{
911
+ resourceId: z.ZodString;
912
+ provider: z.ZodEnum<["cloudflare", "railway"]>;
913
+ kind: z.ZodEnum<["admin-application", "pages-application", "dns-record", "tls-policy", "api-proxy", "control-plane-api", "postgresql", "operations-runner", "treedx-service"]>;
914
+ action: z.ZodEnum<["create", "adopt", "update", "noop"]>;
915
+ desiredResource: z.ZodObject<{
916
+ id: z.ZodString;
917
+ provider: z.ZodEnum<["cloudflare", "railway"]>;
918
+ kind: z.ZodEnum<["admin-application", "pages-application", "dns-record", "tls-policy", "api-proxy", "control-plane-api", "postgresql", "operations-runner", "treedx-service"]>;
919
+ dependsOn: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
920
+ parameters: z.ZodDefault<z.ZodRecord<z.ZodUnion<[z.ZodString, z.ZodString]>, z.ZodUnion<[z.ZodObject<{
921
+ input: z.ZodString;
922
+ }, "strict", z.ZodTypeAny, {
923
+ input: string;
924
+ }, {
925
+ input: string;
926
+ }>, z.ZodObject<{
927
+ artifact: z.ZodString;
928
+ }, "strict", z.ZodTypeAny, {
929
+ artifact: string;
930
+ }, {
931
+ artifact: string;
932
+ }>, z.ZodObject<{
933
+ resourceOutput: z.ZodObject<{
934
+ resourceId: z.ZodString;
935
+ output: z.ZodString;
936
+ }, "strict", z.ZodTypeAny, {
937
+ resourceId: string;
938
+ output: string;
939
+ }, {
940
+ resourceId: string;
941
+ output: string;
942
+ }>;
943
+ }, "strict", z.ZodTypeAny, {
944
+ resourceOutput: {
945
+ resourceId: string;
946
+ output: string;
947
+ };
948
+ }, {
949
+ resourceOutput: {
950
+ resourceId: string;
951
+ output: string;
952
+ };
953
+ }>, z.ZodObject<{
954
+ literal: z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean]>;
955
+ }, "strict", z.ZodTypeAny, {
956
+ literal: string | number | boolean;
957
+ }, {
958
+ literal: string | number | boolean;
959
+ }>]>>>;
960
+ adoption: z.ZodObject<{
961
+ mode: z.ZodLiteral<"adopt-or-create">;
962
+ externalIdInput: z.ZodOptional<z.ZodString>;
963
+ replacement: z.ZodLiteral<"forbidden">;
964
+ }, "strict", z.ZodTypeAny, {
965
+ mode: "adopt-or-create";
966
+ replacement: "forbidden";
967
+ externalIdInput?: string | undefined;
968
+ }, {
969
+ mode: "adopt-or-create";
970
+ replacement: "forbidden";
971
+ externalIdInput?: string | undefined;
972
+ }>;
973
+ }, "strict", z.ZodTypeAny, {
974
+ kind: "admin-application" | "pages-application" | "dns-record" | "tls-policy" | "api-proxy" | "control-plane-api" | "postgresql" | "operations-runner" | "treedx-service";
975
+ provider: "cloudflare" | "railway";
976
+ id: string;
977
+ dependsOn: string[];
978
+ parameters: Record<string, {
979
+ input: string;
980
+ } | {
981
+ artifact: string;
982
+ } | {
983
+ resourceOutput: {
984
+ resourceId: string;
985
+ output: string;
986
+ };
987
+ } | {
988
+ literal: string | number | boolean;
989
+ }>;
990
+ adoption: {
991
+ mode: "adopt-or-create";
992
+ replacement: "forbidden";
993
+ externalIdInput?: string | undefined;
994
+ };
995
+ }, {
996
+ kind: "admin-application" | "pages-application" | "dns-record" | "tls-policy" | "api-proxy" | "control-plane-api" | "postgresql" | "operations-runner" | "treedx-service";
997
+ provider: "cloudflare" | "railway";
998
+ id: string;
999
+ adoption: {
1000
+ mode: "adopt-or-create";
1001
+ replacement: "forbidden";
1002
+ externalIdInput?: string | undefined;
1003
+ };
1004
+ dependsOn?: string[] | undefined;
1005
+ parameters?: Record<string, {
1006
+ input: string;
1007
+ } | {
1008
+ artifact: string;
1009
+ } | {
1010
+ resourceOutput: {
1011
+ resourceId: string;
1012
+ output: string;
1013
+ };
1014
+ } | {
1015
+ literal: string | number | boolean;
1016
+ }> | undefined;
1017
+ }>;
1018
+ desiredDigest: z.ZodString;
1019
+ previousDigest: z.ZodNullable<z.ZodString>;
1020
+ providerResourceId: z.ZodNullable<z.ZodString>;
1021
+ }, "strict", z.ZodTypeAny, {
1022
+ kind: "admin-application" | "pages-application" | "dns-record" | "tls-policy" | "api-proxy" | "control-plane-api" | "postgresql" | "operations-runner" | "treedx-service";
1023
+ provider: "cloudflare" | "railway";
1024
+ action: "noop" | "create" | "adopt" | "update";
1025
+ resourceId: string;
1026
+ providerResourceId: string | null;
1027
+ desiredResource: {
1028
+ kind: "admin-application" | "pages-application" | "dns-record" | "tls-policy" | "api-proxy" | "control-plane-api" | "postgresql" | "operations-runner" | "treedx-service";
1029
+ provider: "cloudflare" | "railway";
1030
+ id: string;
1031
+ dependsOn: string[];
1032
+ parameters: Record<string, {
1033
+ input: string;
1034
+ } | {
1035
+ artifact: string;
1036
+ } | {
1037
+ resourceOutput: {
1038
+ resourceId: string;
1039
+ output: string;
1040
+ };
1041
+ } | {
1042
+ literal: string | number | boolean;
1043
+ }>;
1044
+ adoption: {
1045
+ mode: "adopt-or-create";
1046
+ replacement: "forbidden";
1047
+ externalIdInput?: string | undefined;
1048
+ };
1049
+ };
1050
+ desiredDigest: string;
1051
+ previousDigest: string | null;
1052
+ }, {
1053
+ kind: "admin-application" | "pages-application" | "dns-record" | "tls-policy" | "api-proxy" | "control-plane-api" | "postgresql" | "operations-runner" | "treedx-service";
1054
+ provider: "cloudflare" | "railway";
1055
+ action: "noop" | "create" | "adopt" | "update";
1056
+ resourceId: string;
1057
+ providerResourceId: string | null;
1058
+ desiredResource: {
1059
+ kind: "admin-application" | "pages-application" | "dns-record" | "tls-policy" | "api-proxy" | "control-plane-api" | "postgresql" | "operations-runner" | "treedx-service";
1060
+ provider: "cloudflare" | "railway";
1061
+ id: string;
1062
+ adoption: {
1063
+ mode: "adopt-or-create";
1064
+ replacement: "forbidden";
1065
+ externalIdInput?: string | undefined;
1066
+ };
1067
+ dependsOn?: string[] | undefined;
1068
+ parameters?: Record<string, {
1069
+ input: string;
1070
+ } | {
1071
+ artifact: string;
1072
+ } | {
1073
+ resourceOutput: {
1074
+ resourceId: string;
1075
+ output: string;
1076
+ };
1077
+ } | {
1078
+ literal: string | number | boolean;
1079
+ }> | undefined;
1080
+ };
1081
+ desiredDigest: string;
1082
+ previousDigest: string | null;
1083
+ }>, "many">;
1084
+ readonly blockers: z.ZodArray<z.ZodObject<{
1085
+ code: z.ZodEnum<["connection-unavailable", "state-backend-unavailable", "dependency-cycle", "observation-unhealthy", "adoption-drift"]>;
1086
+ resourceId: z.ZodOptional<z.ZodString>;
1087
+ message: z.ZodString;
1088
+ }, "strict", z.ZodTypeAny, {
1089
+ code: "connection-unavailable" | "state-backend-unavailable" | "dependency-cycle" | "observation-unhealthy" | "adoption-drift";
1090
+ message: string;
1091
+ resourceId?: string | undefined;
1092
+ }, {
1093
+ code: "connection-unavailable" | "state-backend-unavailable" | "dependency-cycle" | "observation-unhealthy" | "adoption-drift";
1094
+ message: string;
1095
+ resourceId?: string | undefined;
1096
+ }>, "many">;
1097
+ readonly authorization: z.ZodLiteral<"authenticated-agent">;
1098
+ readonly executable: z.ZodLiteral<false>;
1099
+ }, "strict", z.ZodTypeAny, {
1100
+ schemaVersion: "treeseed.hosted-topology-plan/v1";
1101
+ blockers: {
1102
+ code: "connection-unavailable" | "state-backend-unavailable" | "dependency-cycle" | "observation-unhealthy" | "adoption-drift";
1103
+ message: string;
1104
+ resourceId?: string | undefined;
1105
+ }[];
1106
+ planDigest: string;
1107
+ actions: {
1108
+ kind: "admin-application" | "pages-application" | "dns-record" | "tls-policy" | "api-proxy" | "control-plane-api" | "postgresql" | "operations-runner" | "treedx-service";
1109
+ provider: "cloudflare" | "railway";
1110
+ action: "noop" | "create" | "adopt" | "update";
1111
+ resourceId: string;
1112
+ providerResourceId: string | null;
1113
+ desiredResource: {
1114
+ kind: "admin-application" | "pages-application" | "dns-record" | "tls-policy" | "api-proxy" | "control-plane-api" | "postgresql" | "operations-runner" | "treedx-service";
1115
+ provider: "cloudflare" | "railway";
1116
+ id: string;
1117
+ dependsOn: string[];
1118
+ parameters: Record<string, {
1119
+ input: string;
1120
+ } | {
1121
+ artifact: string;
1122
+ } | {
1123
+ resourceOutput: {
1124
+ resourceId: string;
1125
+ output: string;
1126
+ };
1127
+ } | {
1128
+ literal: string | number | boolean;
1129
+ }>;
1130
+ adoption: {
1131
+ mode: "adopt-or-create";
1132
+ replacement: "forbidden";
1133
+ externalIdInput?: string | undefined;
1134
+ };
1135
+ };
1136
+ desiredDigest: string;
1137
+ previousDigest: string | null;
1138
+ }[];
1139
+ teamId: string;
1140
+ environment: "production" | "staging";
1141
+ executable: false;
1142
+ artifacts: Record<string, {
1143
+ kind: "archive";
1144
+ digest: string;
1145
+ source: string;
1146
+ format: "tar+gzip";
1147
+ } | {
1148
+ kind: "file";
1149
+ digest: string;
1150
+ source: string;
1151
+ mediaType: string;
1152
+ } | {
1153
+ identity: string;
1154
+ kind: "oci-image";
1155
+ digest: string;
1156
+ }>;
1157
+ planId: string;
1158
+ deploymentId: string;
1159
+ stackId: string;
1160
+ stateBackend: {
1161
+ type: "s3";
1162
+ schemaVersion: "treeseed.hosted-state-backend/v1";
1163
+ key: string;
1164
+ teamId: string;
1165
+ environment: "production" | "staging";
1166
+ deploymentId: string;
1167
+ bucket: string;
1168
+ stackId: string;
1169
+ connectionRef: string;
1170
+ region: string;
1171
+ encryptionKeyRef: string;
1172
+ bindingDigest: string;
1173
+ endpoint?: string | undefined;
1174
+ usePathStyle?: boolean | undefined;
1175
+ } | null;
1176
+ providerConnections: Partial<Record<"cloudflare" | "railway", {
1177
+ connectionRef: string;
1178
+ nonSecretConfig: Record<string, string | number | boolean>;
1179
+ }>>;
1180
+ declarationDigest: string;
1181
+ topologyId: string;
1182
+ platformCommit: string;
1183
+ authorization: "authenticated-agent";
1184
+ }, {
1185
+ schemaVersion: "treeseed.hosted-topology-plan/v1";
1186
+ blockers: {
1187
+ code: "connection-unavailable" | "state-backend-unavailable" | "dependency-cycle" | "observation-unhealthy" | "adoption-drift";
1188
+ message: string;
1189
+ resourceId?: string | undefined;
1190
+ }[];
1191
+ planDigest: string;
1192
+ actions: {
1193
+ kind: "admin-application" | "pages-application" | "dns-record" | "tls-policy" | "api-proxy" | "control-plane-api" | "postgresql" | "operations-runner" | "treedx-service";
1194
+ provider: "cloudflare" | "railway";
1195
+ action: "noop" | "create" | "adopt" | "update";
1196
+ resourceId: string;
1197
+ providerResourceId: string | null;
1198
+ desiredResource: {
1199
+ kind: "admin-application" | "pages-application" | "dns-record" | "tls-policy" | "api-proxy" | "control-plane-api" | "postgresql" | "operations-runner" | "treedx-service";
1200
+ provider: "cloudflare" | "railway";
1201
+ id: string;
1202
+ adoption: {
1203
+ mode: "adopt-or-create";
1204
+ replacement: "forbidden";
1205
+ externalIdInput?: string | undefined;
1206
+ };
1207
+ dependsOn?: string[] | undefined;
1208
+ parameters?: Record<string, {
1209
+ input: string;
1210
+ } | {
1211
+ artifact: string;
1212
+ } | {
1213
+ resourceOutput: {
1214
+ resourceId: string;
1215
+ output: string;
1216
+ };
1217
+ } | {
1218
+ literal: string | number | boolean;
1219
+ }> | undefined;
1220
+ };
1221
+ desiredDigest: string;
1222
+ previousDigest: string | null;
1223
+ }[];
1224
+ teamId: string;
1225
+ environment: "production" | "staging";
1226
+ executable: false;
1227
+ artifacts: Record<string, {
1228
+ kind: "archive";
1229
+ digest: string;
1230
+ source: string;
1231
+ format: "tar+gzip";
1232
+ } | {
1233
+ kind: "file";
1234
+ digest: string;
1235
+ source: string;
1236
+ mediaType: string;
1237
+ } | {
1238
+ identity: string;
1239
+ kind: "oci-image";
1240
+ digest: string;
1241
+ }>;
1242
+ planId: string;
1243
+ deploymentId: string;
1244
+ stackId: string;
1245
+ stateBackend: {
1246
+ type: "s3";
1247
+ schemaVersion: "treeseed.hosted-state-backend/v1";
1248
+ key: string;
1249
+ teamId: string;
1250
+ environment: "production" | "staging";
1251
+ deploymentId: string;
1252
+ bucket: string;
1253
+ stackId: string;
1254
+ connectionRef: string;
1255
+ region: string;
1256
+ encryptionKeyRef: string;
1257
+ bindingDigest: string;
1258
+ endpoint?: string | undefined;
1259
+ usePathStyle?: boolean | undefined;
1260
+ } | null;
1261
+ providerConnections: Partial<Record<"cloudflare" | "railway", {
1262
+ connectionRef: string;
1263
+ nonSecretConfig: Record<string, string | number | boolean>;
1264
+ }>>;
1265
+ declarationDigest: string;
1266
+ topologyId: string;
1267
+ platformCommit: string;
1268
+ authorization: "authenticated-agent";
1269
+ }>, {
1270
+ schemaVersion: "treeseed.hosted-topology-plan/v1";
1271
+ blockers: {
1272
+ code: "connection-unavailable" | "state-backend-unavailable" | "dependency-cycle" | "observation-unhealthy" | "adoption-drift";
1273
+ message: string;
1274
+ resourceId?: string | undefined;
1275
+ }[];
1276
+ planDigest: string;
1277
+ actions: {
1278
+ kind: "admin-application" | "pages-application" | "dns-record" | "tls-policy" | "api-proxy" | "control-plane-api" | "postgresql" | "operations-runner" | "treedx-service";
1279
+ provider: "cloudflare" | "railway";
1280
+ action: "noop" | "create" | "adopt" | "update";
1281
+ resourceId: string;
1282
+ providerResourceId: string | null;
1283
+ desiredResource: {
1284
+ kind: "admin-application" | "pages-application" | "dns-record" | "tls-policy" | "api-proxy" | "control-plane-api" | "postgresql" | "operations-runner" | "treedx-service";
1285
+ provider: "cloudflare" | "railway";
1286
+ id: string;
1287
+ dependsOn: string[];
1288
+ parameters: Record<string, {
1289
+ input: string;
1290
+ } | {
1291
+ artifact: string;
1292
+ } | {
1293
+ resourceOutput: {
1294
+ resourceId: string;
1295
+ output: string;
1296
+ };
1297
+ } | {
1298
+ literal: string | number | boolean;
1299
+ }>;
1300
+ adoption: {
1301
+ mode: "adopt-or-create";
1302
+ replacement: "forbidden";
1303
+ externalIdInput?: string | undefined;
1304
+ };
1305
+ };
1306
+ desiredDigest: string;
1307
+ previousDigest: string | null;
1308
+ }[];
1309
+ teamId: string;
1310
+ environment: "production" | "staging";
1311
+ executable: false;
1312
+ artifacts: Record<string, {
1313
+ kind: "archive";
1314
+ digest: string;
1315
+ source: string;
1316
+ format: "tar+gzip";
1317
+ } | {
1318
+ kind: "file";
1319
+ digest: string;
1320
+ source: string;
1321
+ mediaType: string;
1322
+ } | {
1323
+ identity: string;
1324
+ kind: "oci-image";
1325
+ digest: string;
1326
+ }>;
1327
+ planId: string;
1328
+ deploymentId: string;
1329
+ stackId: string;
1330
+ stateBackend: {
1331
+ type: "s3";
1332
+ schemaVersion: "treeseed.hosted-state-backend/v1";
1333
+ key: string;
1334
+ teamId: string;
1335
+ environment: "production" | "staging";
1336
+ deploymentId: string;
1337
+ bucket: string;
1338
+ stackId: string;
1339
+ connectionRef: string;
1340
+ region: string;
1341
+ encryptionKeyRef: string;
1342
+ bindingDigest: string;
1343
+ endpoint?: string | undefined;
1344
+ usePathStyle?: boolean | undefined;
1345
+ } | null;
1346
+ providerConnections: Partial<Record<"cloudflare" | "railway", {
1347
+ connectionRef: string;
1348
+ nonSecretConfig: Record<string, string | number | boolean>;
1349
+ }>>;
1350
+ declarationDigest: string;
1351
+ topologyId: string;
1352
+ platformCommit: string;
1353
+ authorization: "authenticated-agent";
1354
+ }, {
1355
+ schemaVersion: "treeseed.hosted-topology-plan/v1";
1356
+ blockers: {
1357
+ code: "connection-unavailable" | "state-backend-unavailable" | "dependency-cycle" | "observation-unhealthy" | "adoption-drift";
1358
+ message: string;
1359
+ resourceId?: string | undefined;
1360
+ }[];
1361
+ planDigest: string;
1362
+ actions: {
1363
+ kind: "admin-application" | "pages-application" | "dns-record" | "tls-policy" | "api-proxy" | "control-plane-api" | "postgresql" | "operations-runner" | "treedx-service";
1364
+ provider: "cloudflare" | "railway";
1365
+ action: "noop" | "create" | "adopt" | "update";
1366
+ resourceId: string;
1367
+ providerResourceId: string | null;
1368
+ desiredResource: {
1369
+ kind: "admin-application" | "pages-application" | "dns-record" | "tls-policy" | "api-proxy" | "control-plane-api" | "postgresql" | "operations-runner" | "treedx-service";
1370
+ provider: "cloudflare" | "railway";
1371
+ id: string;
1372
+ adoption: {
1373
+ mode: "adopt-or-create";
1374
+ replacement: "forbidden";
1375
+ externalIdInput?: string | undefined;
1376
+ };
1377
+ dependsOn?: string[] | undefined;
1378
+ parameters?: Record<string, {
1379
+ input: string;
1380
+ } | {
1381
+ artifact: string;
1382
+ } | {
1383
+ resourceOutput: {
1384
+ resourceId: string;
1385
+ output: string;
1386
+ };
1387
+ } | {
1388
+ literal: string | number | boolean;
1389
+ }> | undefined;
1390
+ };
1391
+ desiredDigest: string;
1392
+ previousDigest: string | null;
1393
+ }[];
1394
+ teamId: string;
1395
+ environment: "production" | "staging";
1396
+ executable: false;
1397
+ artifacts: Record<string, {
1398
+ kind: "archive";
1399
+ digest: string;
1400
+ source: string;
1401
+ format: "tar+gzip";
1402
+ } | {
1403
+ kind: "file";
1404
+ digest: string;
1405
+ source: string;
1406
+ mediaType: string;
1407
+ } | {
1408
+ identity: string;
1409
+ kind: "oci-image";
1410
+ digest: string;
1411
+ }>;
1412
+ planId: string;
1413
+ deploymentId: string;
1414
+ stackId: string;
1415
+ stateBackend: {
1416
+ type: "s3";
1417
+ schemaVersion: "treeseed.hosted-state-backend/v1";
1418
+ key: string;
1419
+ teamId: string;
1420
+ environment: "production" | "staging";
1421
+ deploymentId: string;
1422
+ bucket: string;
1423
+ stackId: string;
1424
+ connectionRef: string;
1425
+ region: string;
1426
+ encryptionKeyRef: string;
1427
+ bindingDigest: string;
1428
+ endpoint?: string | undefined;
1429
+ usePathStyle?: boolean | undefined;
1430
+ } | null;
1431
+ providerConnections: Partial<Record<"cloudflare" | "railway", {
1432
+ connectionRef: string;
1433
+ nonSecretConfig: Record<string, string | number | boolean>;
1434
+ }>>;
1435
+ declarationDigest: string;
1436
+ topologyId: string;
1437
+ platformCommit: string;
1438
+ authorization: "authenticated-agent";
1439
+ }>;
1440
+ export declare const authorizedHostedTopologyPlanSchema: z.ZodEffects<z.ZodObject<{
1441
+ executable: z.ZodLiteral<true>;
1442
+ schemaVersion: z.ZodLiteral<"treeseed.hosted-topology-plan/v1">;
1443
+ planId: z.ZodString;
1444
+ planDigest: z.ZodString;
1445
+ declarationDigest: z.ZodString;
1446
+ topologyId: z.ZodString;
1447
+ teamId: z.ZodString;
1448
+ deploymentId: z.ZodString;
1449
+ stackId: z.ZodString;
1450
+ environment: z.ZodEnum<["staging", "production"]>;
1451
+ platformCommit: z.ZodString;
1452
+ stateBackend: z.ZodNullable<z.ZodEffects<z.ZodObject<{
1453
+ schemaVersion: z.ZodLiteral<"treeseed.hosted-state-backend/v1">;
1454
+ type: z.ZodLiteral<"s3">;
1455
+ teamId: z.ZodString;
1456
+ deploymentId: z.ZodString;
1457
+ environment: z.ZodEnum<["staging", "production"]>;
1458
+ stackId: z.ZodString;
1459
+ connectionRef: z.ZodString;
1460
+ bucket: z.ZodString;
1461
+ key: z.ZodString;
1462
+ region: z.ZodString;
1463
+ endpoint: z.ZodOptional<z.ZodString>;
1464
+ usePathStyle: z.ZodOptional<z.ZodBoolean>;
1465
+ encryptionKeyRef: z.ZodString;
1466
+ } & {
1467
+ bindingDigest: z.ZodString;
1468
+ }, "strict", z.ZodTypeAny, {
1469
+ type: "s3";
1470
+ schemaVersion: "treeseed.hosted-state-backend/v1";
1471
+ key: string;
1472
+ teamId: string;
1473
+ environment: "production" | "staging";
1474
+ deploymentId: string;
1475
+ bucket: string;
1476
+ stackId: string;
1477
+ connectionRef: string;
1478
+ region: string;
1479
+ encryptionKeyRef: string;
1480
+ bindingDigest: string;
1481
+ endpoint?: string | undefined;
1482
+ usePathStyle?: boolean | undefined;
1483
+ }, {
1484
+ type: "s3";
1485
+ schemaVersion: "treeseed.hosted-state-backend/v1";
1486
+ key: string;
1487
+ teamId: string;
1488
+ environment: "production" | "staging";
1489
+ deploymentId: string;
1490
+ bucket: string;
1491
+ stackId: string;
1492
+ connectionRef: string;
1493
+ region: string;
1494
+ encryptionKeyRef: string;
1495
+ bindingDigest: string;
1496
+ endpoint?: string | undefined;
1497
+ usePathStyle?: boolean | undefined;
1498
+ }>, {
1499
+ type: "s3";
1500
+ schemaVersion: "treeseed.hosted-state-backend/v1";
1501
+ key: string;
1502
+ teamId: string;
1503
+ environment: "production" | "staging";
1504
+ deploymentId: string;
1505
+ bucket: string;
1506
+ stackId: string;
1507
+ connectionRef: string;
1508
+ region: string;
1509
+ encryptionKeyRef: string;
1510
+ bindingDigest: string;
1511
+ endpoint?: string | undefined;
1512
+ usePathStyle?: boolean | undefined;
1513
+ }, {
1514
+ type: "s3";
1515
+ schemaVersion: "treeseed.hosted-state-backend/v1";
1516
+ key: string;
1517
+ teamId: string;
1518
+ environment: "production" | "staging";
1519
+ deploymentId: string;
1520
+ bucket: string;
1521
+ stackId: string;
1522
+ connectionRef: string;
1523
+ region: string;
1524
+ encryptionKeyRef: string;
1525
+ bindingDigest: string;
1526
+ endpoint?: string | undefined;
1527
+ usePathStyle?: boolean | undefined;
1528
+ }>>;
1529
+ artifacts: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodObject<{
1530
+ kind: z.ZodLiteral<"archive">;
1531
+ format: z.ZodLiteral<"tar+gzip">;
1532
+ digest: z.ZodString;
1533
+ source: z.ZodString;
1534
+ }, "strict", z.ZodTypeAny, {
1535
+ kind: "archive";
1536
+ digest: string;
1537
+ source: string;
1538
+ format: "tar+gzip";
1539
+ }, {
1540
+ kind: "archive";
1541
+ digest: string;
1542
+ source: string;
1543
+ format: "tar+gzip";
1544
+ }>, z.ZodObject<{
1545
+ kind: z.ZodLiteral<"file">;
1546
+ mediaType: z.ZodString;
1547
+ digest: z.ZodString;
1548
+ source: z.ZodString;
1549
+ }, "strict", z.ZodTypeAny, {
1550
+ kind: "file";
1551
+ digest: string;
1552
+ source: string;
1553
+ mediaType: string;
1554
+ }, {
1555
+ kind: "file";
1556
+ digest: string;
1557
+ source: string;
1558
+ mediaType: string;
1559
+ }>, z.ZodEffects<z.ZodObject<{
1560
+ kind: z.ZodLiteral<"oci-image">;
1561
+ digest: z.ZodString;
1562
+ identity: z.ZodString;
1563
+ }, "strict", z.ZodTypeAny, {
1564
+ identity: string;
1565
+ kind: "oci-image";
1566
+ digest: string;
1567
+ }, {
1568
+ identity: string;
1569
+ kind: "oci-image";
1570
+ digest: string;
1571
+ }>, {
1572
+ identity: string;
1573
+ kind: "oci-image";
1574
+ digest: string;
1575
+ }, {
1576
+ identity: string;
1577
+ kind: "oci-image";
1578
+ digest: string;
1579
+ }>]>>;
1580
+ providerConnections: z.ZodRecord<z.ZodEnum<["cloudflare", "railway"]>, z.ZodEffects<z.ZodObject<{
1581
+ connectionRef: z.ZodString;
1582
+ nonSecretConfig: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
1583
+ }, "strict", z.ZodTypeAny, {
1584
+ connectionRef: string;
1585
+ nonSecretConfig: Record<string, string | number | boolean>;
1586
+ }, {
1587
+ connectionRef: string;
1588
+ nonSecretConfig: Record<string, string | number | boolean>;
1589
+ }>, {
1590
+ connectionRef: string;
1591
+ nonSecretConfig: Record<string, string | number | boolean>;
1592
+ }, {
1593
+ connectionRef: string;
1594
+ nonSecretConfig: Record<string, string | number | boolean>;
1595
+ }>>;
1596
+ actions: z.ZodArray<z.ZodObject<{
1597
+ resourceId: z.ZodString;
1598
+ provider: z.ZodEnum<["cloudflare", "railway"]>;
1599
+ kind: z.ZodEnum<["admin-application", "pages-application", "dns-record", "tls-policy", "api-proxy", "control-plane-api", "postgresql", "operations-runner", "treedx-service"]>;
1600
+ action: z.ZodEnum<["create", "adopt", "update", "noop"]>;
1601
+ desiredResource: z.ZodObject<{
1602
+ id: z.ZodString;
1603
+ provider: z.ZodEnum<["cloudflare", "railway"]>;
1604
+ kind: z.ZodEnum<["admin-application", "pages-application", "dns-record", "tls-policy", "api-proxy", "control-plane-api", "postgresql", "operations-runner", "treedx-service"]>;
1605
+ dependsOn: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
1606
+ parameters: z.ZodDefault<z.ZodRecord<z.ZodUnion<[z.ZodString, z.ZodString]>, z.ZodUnion<[z.ZodObject<{
1607
+ input: z.ZodString;
1608
+ }, "strict", z.ZodTypeAny, {
1609
+ input: string;
1610
+ }, {
1611
+ input: string;
1612
+ }>, z.ZodObject<{
1613
+ artifact: z.ZodString;
1614
+ }, "strict", z.ZodTypeAny, {
1615
+ artifact: string;
1616
+ }, {
1617
+ artifact: string;
1618
+ }>, z.ZodObject<{
1619
+ resourceOutput: z.ZodObject<{
1620
+ resourceId: z.ZodString;
1621
+ output: z.ZodString;
1622
+ }, "strict", z.ZodTypeAny, {
1623
+ resourceId: string;
1624
+ output: string;
1625
+ }, {
1626
+ resourceId: string;
1627
+ output: string;
1628
+ }>;
1629
+ }, "strict", z.ZodTypeAny, {
1630
+ resourceOutput: {
1631
+ resourceId: string;
1632
+ output: string;
1633
+ };
1634
+ }, {
1635
+ resourceOutput: {
1636
+ resourceId: string;
1637
+ output: string;
1638
+ };
1639
+ }>, z.ZodObject<{
1640
+ literal: z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean]>;
1641
+ }, "strict", z.ZodTypeAny, {
1642
+ literal: string | number | boolean;
1643
+ }, {
1644
+ literal: string | number | boolean;
1645
+ }>]>>>;
1646
+ adoption: z.ZodObject<{
1647
+ mode: z.ZodLiteral<"adopt-or-create">;
1648
+ externalIdInput: z.ZodOptional<z.ZodString>;
1649
+ replacement: z.ZodLiteral<"forbidden">;
1650
+ }, "strict", z.ZodTypeAny, {
1651
+ mode: "adopt-or-create";
1652
+ replacement: "forbidden";
1653
+ externalIdInput?: string | undefined;
1654
+ }, {
1655
+ mode: "adopt-or-create";
1656
+ replacement: "forbidden";
1657
+ externalIdInput?: string | undefined;
1658
+ }>;
1659
+ }, "strict", z.ZodTypeAny, {
1660
+ kind: "admin-application" | "pages-application" | "dns-record" | "tls-policy" | "api-proxy" | "control-plane-api" | "postgresql" | "operations-runner" | "treedx-service";
1661
+ provider: "cloudflare" | "railway";
1662
+ id: string;
1663
+ dependsOn: string[];
1664
+ parameters: Record<string, {
1665
+ input: string;
1666
+ } | {
1667
+ artifact: string;
1668
+ } | {
1669
+ resourceOutput: {
1670
+ resourceId: string;
1671
+ output: string;
1672
+ };
1673
+ } | {
1674
+ literal: string | number | boolean;
1675
+ }>;
1676
+ adoption: {
1677
+ mode: "adopt-or-create";
1678
+ replacement: "forbidden";
1679
+ externalIdInput?: string | undefined;
1680
+ };
1681
+ }, {
1682
+ kind: "admin-application" | "pages-application" | "dns-record" | "tls-policy" | "api-proxy" | "control-plane-api" | "postgresql" | "operations-runner" | "treedx-service";
1683
+ provider: "cloudflare" | "railway";
1684
+ id: string;
1685
+ adoption: {
1686
+ mode: "adopt-or-create";
1687
+ replacement: "forbidden";
1688
+ externalIdInput?: string | undefined;
1689
+ };
1690
+ dependsOn?: string[] | undefined;
1691
+ parameters?: Record<string, {
1692
+ input: string;
1693
+ } | {
1694
+ artifact: string;
1695
+ } | {
1696
+ resourceOutput: {
1697
+ resourceId: string;
1698
+ output: string;
1699
+ };
1700
+ } | {
1701
+ literal: string | number | boolean;
1702
+ }> | undefined;
1703
+ }>;
1704
+ desiredDigest: z.ZodString;
1705
+ previousDigest: z.ZodNullable<z.ZodString>;
1706
+ providerResourceId: z.ZodNullable<z.ZodString>;
1707
+ }, "strict", z.ZodTypeAny, {
1708
+ kind: "admin-application" | "pages-application" | "dns-record" | "tls-policy" | "api-proxy" | "control-plane-api" | "postgresql" | "operations-runner" | "treedx-service";
1709
+ provider: "cloudflare" | "railway";
1710
+ action: "noop" | "create" | "adopt" | "update";
1711
+ resourceId: string;
1712
+ providerResourceId: string | null;
1713
+ desiredResource: {
1714
+ kind: "admin-application" | "pages-application" | "dns-record" | "tls-policy" | "api-proxy" | "control-plane-api" | "postgresql" | "operations-runner" | "treedx-service";
1715
+ provider: "cloudflare" | "railway";
1716
+ id: string;
1717
+ dependsOn: string[];
1718
+ parameters: Record<string, {
1719
+ input: string;
1720
+ } | {
1721
+ artifact: string;
1722
+ } | {
1723
+ resourceOutput: {
1724
+ resourceId: string;
1725
+ output: string;
1726
+ };
1727
+ } | {
1728
+ literal: string | number | boolean;
1729
+ }>;
1730
+ adoption: {
1731
+ mode: "adopt-or-create";
1732
+ replacement: "forbidden";
1733
+ externalIdInput?: string | undefined;
1734
+ };
1735
+ };
1736
+ desiredDigest: string;
1737
+ previousDigest: string | null;
1738
+ }, {
1739
+ kind: "admin-application" | "pages-application" | "dns-record" | "tls-policy" | "api-proxy" | "control-plane-api" | "postgresql" | "operations-runner" | "treedx-service";
1740
+ provider: "cloudflare" | "railway";
1741
+ action: "noop" | "create" | "adopt" | "update";
1742
+ resourceId: string;
1743
+ providerResourceId: string | null;
1744
+ desiredResource: {
1745
+ kind: "admin-application" | "pages-application" | "dns-record" | "tls-policy" | "api-proxy" | "control-plane-api" | "postgresql" | "operations-runner" | "treedx-service";
1746
+ provider: "cloudflare" | "railway";
1747
+ id: string;
1748
+ adoption: {
1749
+ mode: "adopt-or-create";
1750
+ replacement: "forbidden";
1751
+ externalIdInput?: string | undefined;
1752
+ };
1753
+ dependsOn?: string[] | undefined;
1754
+ parameters?: Record<string, {
1755
+ input: string;
1756
+ } | {
1757
+ artifact: string;
1758
+ } | {
1759
+ resourceOutput: {
1760
+ resourceId: string;
1761
+ output: string;
1762
+ };
1763
+ } | {
1764
+ literal: string | number | boolean;
1765
+ }> | undefined;
1766
+ };
1767
+ desiredDigest: string;
1768
+ previousDigest: string | null;
1769
+ }>, "many">;
1770
+ blockers: z.ZodArray<z.ZodObject<{
1771
+ code: z.ZodEnum<["connection-unavailable", "state-backend-unavailable", "dependency-cycle", "observation-unhealthy", "adoption-drift"]>;
1772
+ resourceId: z.ZodOptional<z.ZodString>;
1773
+ message: z.ZodString;
1774
+ }, "strict", z.ZodTypeAny, {
1775
+ code: "connection-unavailable" | "state-backend-unavailable" | "dependency-cycle" | "observation-unhealthy" | "adoption-drift";
1776
+ message: string;
1777
+ resourceId?: string | undefined;
1778
+ }, {
1779
+ code: "connection-unavailable" | "state-backend-unavailable" | "dependency-cycle" | "observation-unhealthy" | "adoption-drift";
1780
+ message: string;
1781
+ resourceId?: string | undefined;
1782
+ }>, "many">;
1783
+ authorization: z.ZodLiteral<"authenticated-agent">;
1784
+ }, "strict", z.ZodTypeAny, {
1785
+ schemaVersion: "treeseed.hosted-topology-plan/v1";
1786
+ blockers: {
1787
+ code: "connection-unavailable" | "state-backend-unavailable" | "dependency-cycle" | "observation-unhealthy" | "adoption-drift";
1788
+ message: string;
1789
+ resourceId?: string | undefined;
1790
+ }[];
1791
+ planDigest: string;
1792
+ actions: {
1793
+ kind: "admin-application" | "pages-application" | "dns-record" | "tls-policy" | "api-proxy" | "control-plane-api" | "postgresql" | "operations-runner" | "treedx-service";
1794
+ provider: "cloudflare" | "railway";
1795
+ action: "noop" | "create" | "adopt" | "update";
1796
+ resourceId: string;
1797
+ providerResourceId: string | null;
1798
+ desiredResource: {
1799
+ kind: "admin-application" | "pages-application" | "dns-record" | "tls-policy" | "api-proxy" | "control-plane-api" | "postgresql" | "operations-runner" | "treedx-service";
1800
+ provider: "cloudflare" | "railway";
1801
+ id: string;
1802
+ dependsOn: string[];
1803
+ parameters: Record<string, {
1804
+ input: string;
1805
+ } | {
1806
+ artifact: string;
1807
+ } | {
1808
+ resourceOutput: {
1809
+ resourceId: string;
1810
+ output: string;
1811
+ };
1812
+ } | {
1813
+ literal: string | number | boolean;
1814
+ }>;
1815
+ adoption: {
1816
+ mode: "adopt-or-create";
1817
+ replacement: "forbidden";
1818
+ externalIdInput?: string | undefined;
1819
+ };
1820
+ };
1821
+ desiredDigest: string;
1822
+ previousDigest: string | null;
1823
+ }[];
1824
+ teamId: string;
1825
+ environment: "production" | "staging";
1826
+ executable: true;
1827
+ artifacts: Record<string, {
1828
+ kind: "archive";
1829
+ digest: string;
1830
+ source: string;
1831
+ format: "tar+gzip";
1832
+ } | {
1833
+ kind: "file";
1834
+ digest: string;
1835
+ source: string;
1836
+ mediaType: string;
1837
+ } | {
1838
+ identity: string;
1839
+ kind: "oci-image";
1840
+ digest: string;
1841
+ }>;
1842
+ planId: string;
1843
+ deploymentId: string;
1844
+ stackId: string;
1845
+ stateBackend: {
1846
+ type: "s3";
1847
+ schemaVersion: "treeseed.hosted-state-backend/v1";
1848
+ key: string;
1849
+ teamId: string;
1850
+ environment: "production" | "staging";
1851
+ deploymentId: string;
1852
+ bucket: string;
1853
+ stackId: string;
1854
+ connectionRef: string;
1855
+ region: string;
1856
+ encryptionKeyRef: string;
1857
+ bindingDigest: string;
1858
+ endpoint?: string | undefined;
1859
+ usePathStyle?: boolean | undefined;
1860
+ } | null;
1861
+ providerConnections: Partial<Record<"cloudflare" | "railway", {
1862
+ connectionRef: string;
1863
+ nonSecretConfig: Record<string, string | number | boolean>;
1864
+ }>>;
1865
+ declarationDigest: string;
1866
+ topologyId: string;
1867
+ platformCommit: string;
1868
+ authorization: "authenticated-agent";
1869
+ }, {
1870
+ schemaVersion: "treeseed.hosted-topology-plan/v1";
1871
+ blockers: {
1872
+ code: "connection-unavailable" | "state-backend-unavailable" | "dependency-cycle" | "observation-unhealthy" | "adoption-drift";
1873
+ message: string;
1874
+ resourceId?: string | undefined;
1875
+ }[];
1876
+ planDigest: string;
1877
+ actions: {
1878
+ kind: "admin-application" | "pages-application" | "dns-record" | "tls-policy" | "api-proxy" | "control-plane-api" | "postgresql" | "operations-runner" | "treedx-service";
1879
+ provider: "cloudflare" | "railway";
1880
+ action: "noop" | "create" | "adopt" | "update";
1881
+ resourceId: string;
1882
+ providerResourceId: string | null;
1883
+ desiredResource: {
1884
+ kind: "admin-application" | "pages-application" | "dns-record" | "tls-policy" | "api-proxy" | "control-plane-api" | "postgresql" | "operations-runner" | "treedx-service";
1885
+ provider: "cloudflare" | "railway";
1886
+ id: string;
1887
+ adoption: {
1888
+ mode: "adopt-or-create";
1889
+ replacement: "forbidden";
1890
+ externalIdInput?: string | undefined;
1891
+ };
1892
+ dependsOn?: string[] | undefined;
1893
+ parameters?: Record<string, {
1894
+ input: string;
1895
+ } | {
1896
+ artifact: string;
1897
+ } | {
1898
+ resourceOutput: {
1899
+ resourceId: string;
1900
+ output: string;
1901
+ };
1902
+ } | {
1903
+ literal: string | number | boolean;
1904
+ }> | undefined;
1905
+ };
1906
+ desiredDigest: string;
1907
+ previousDigest: string | null;
1908
+ }[];
1909
+ teamId: string;
1910
+ environment: "production" | "staging";
1911
+ executable: true;
1912
+ artifacts: Record<string, {
1913
+ kind: "archive";
1914
+ digest: string;
1915
+ source: string;
1916
+ format: "tar+gzip";
1917
+ } | {
1918
+ kind: "file";
1919
+ digest: string;
1920
+ source: string;
1921
+ mediaType: string;
1922
+ } | {
1923
+ identity: string;
1924
+ kind: "oci-image";
1925
+ digest: string;
1926
+ }>;
1927
+ planId: string;
1928
+ deploymentId: string;
1929
+ stackId: string;
1930
+ stateBackend: {
1931
+ type: "s3";
1932
+ schemaVersion: "treeseed.hosted-state-backend/v1";
1933
+ key: string;
1934
+ teamId: string;
1935
+ environment: "production" | "staging";
1936
+ deploymentId: string;
1937
+ bucket: string;
1938
+ stackId: string;
1939
+ connectionRef: string;
1940
+ region: string;
1941
+ encryptionKeyRef: string;
1942
+ bindingDigest: string;
1943
+ endpoint?: string | undefined;
1944
+ usePathStyle?: boolean | undefined;
1945
+ } | null;
1946
+ providerConnections: Partial<Record<"cloudflare" | "railway", {
1947
+ connectionRef: string;
1948
+ nonSecretConfig: Record<string, string | number | boolean>;
1949
+ }>>;
1950
+ declarationDigest: string;
1951
+ topologyId: string;
1952
+ platformCommit: string;
1953
+ authorization: "authenticated-agent";
1954
+ }>, {
1955
+ schemaVersion: "treeseed.hosted-topology-plan/v1";
1956
+ blockers: {
1957
+ code: "connection-unavailable" | "state-backend-unavailable" | "dependency-cycle" | "observation-unhealthy" | "adoption-drift";
1958
+ message: string;
1959
+ resourceId?: string | undefined;
1960
+ }[];
1961
+ planDigest: string;
1962
+ actions: {
1963
+ kind: "admin-application" | "pages-application" | "dns-record" | "tls-policy" | "api-proxy" | "control-plane-api" | "postgresql" | "operations-runner" | "treedx-service";
1964
+ provider: "cloudflare" | "railway";
1965
+ action: "noop" | "create" | "adopt" | "update";
1966
+ resourceId: string;
1967
+ providerResourceId: string | null;
1968
+ desiredResource: {
1969
+ kind: "admin-application" | "pages-application" | "dns-record" | "tls-policy" | "api-proxy" | "control-plane-api" | "postgresql" | "operations-runner" | "treedx-service";
1970
+ provider: "cloudflare" | "railway";
1971
+ id: string;
1972
+ dependsOn: string[];
1973
+ parameters: Record<string, {
1974
+ input: string;
1975
+ } | {
1976
+ artifact: string;
1977
+ } | {
1978
+ resourceOutput: {
1979
+ resourceId: string;
1980
+ output: string;
1981
+ };
1982
+ } | {
1983
+ literal: string | number | boolean;
1984
+ }>;
1985
+ adoption: {
1986
+ mode: "adopt-or-create";
1987
+ replacement: "forbidden";
1988
+ externalIdInput?: string | undefined;
1989
+ };
1990
+ };
1991
+ desiredDigest: string;
1992
+ previousDigest: string | null;
1993
+ }[];
1994
+ teamId: string;
1995
+ environment: "production" | "staging";
1996
+ executable: true;
1997
+ artifacts: Record<string, {
1998
+ kind: "archive";
1999
+ digest: string;
2000
+ source: string;
2001
+ format: "tar+gzip";
2002
+ } | {
2003
+ kind: "file";
2004
+ digest: string;
2005
+ source: string;
2006
+ mediaType: string;
2007
+ } | {
2008
+ identity: string;
2009
+ kind: "oci-image";
2010
+ digest: string;
2011
+ }>;
2012
+ planId: string;
2013
+ deploymentId: string;
2014
+ stackId: string;
2015
+ stateBackend: {
2016
+ type: "s3";
2017
+ schemaVersion: "treeseed.hosted-state-backend/v1";
2018
+ key: string;
2019
+ teamId: string;
2020
+ environment: "production" | "staging";
2021
+ deploymentId: string;
2022
+ bucket: string;
2023
+ stackId: string;
2024
+ connectionRef: string;
2025
+ region: string;
2026
+ encryptionKeyRef: string;
2027
+ bindingDigest: string;
2028
+ endpoint?: string | undefined;
2029
+ usePathStyle?: boolean | undefined;
2030
+ } | null;
2031
+ providerConnections: Partial<Record<"cloudflare" | "railway", {
2032
+ connectionRef: string;
2033
+ nonSecretConfig: Record<string, string | number | boolean>;
2034
+ }>>;
2035
+ declarationDigest: string;
2036
+ topologyId: string;
2037
+ platformCommit: string;
2038
+ authorization: "authenticated-agent";
2039
+ }, {
2040
+ schemaVersion: "treeseed.hosted-topology-plan/v1";
2041
+ blockers: {
2042
+ code: "connection-unavailable" | "state-backend-unavailable" | "dependency-cycle" | "observation-unhealthy" | "adoption-drift";
2043
+ message: string;
2044
+ resourceId?: string | undefined;
2045
+ }[];
2046
+ planDigest: string;
2047
+ actions: {
2048
+ kind: "admin-application" | "pages-application" | "dns-record" | "tls-policy" | "api-proxy" | "control-plane-api" | "postgresql" | "operations-runner" | "treedx-service";
2049
+ provider: "cloudflare" | "railway";
2050
+ action: "noop" | "create" | "adopt" | "update";
2051
+ resourceId: string;
2052
+ providerResourceId: string | null;
2053
+ desiredResource: {
2054
+ kind: "admin-application" | "pages-application" | "dns-record" | "tls-policy" | "api-proxy" | "control-plane-api" | "postgresql" | "operations-runner" | "treedx-service";
2055
+ provider: "cloudflare" | "railway";
2056
+ id: string;
2057
+ adoption: {
2058
+ mode: "adopt-or-create";
2059
+ replacement: "forbidden";
2060
+ externalIdInput?: string | undefined;
2061
+ };
2062
+ dependsOn?: string[] | undefined;
2063
+ parameters?: Record<string, {
2064
+ input: string;
2065
+ } | {
2066
+ artifact: string;
2067
+ } | {
2068
+ resourceOutput: {
2069
+ resourceId: string;
2070
+ output: string;
2071
+ };
2072
+ } | {
2073
+ literal: string | number | boolean;
2074
+ }> | undefined;
2075
+ };
2076
+ desiredDigest: string;
2077
+ previousDigest: string | null;
2078
+ }[];
2079
+ teamId: string;
2080
+ environment: "production" | "staging";
2081
+ executable: true;
2082
+ artifacts: Record<string, {
2083
+ kind: "archive";
2084
+ digest: string;
2085
+ source: string;
2086
+ format: "tar+gzip";
2087
+ } | {
2088
+ kind: "file";
2089
+ digest: string;
2090
+ source: string;
2091
+ mediaType: string;
2092
+ } | {
2093
+ identity: string;
2094
+ kind: "oci-image";
2095
+ digest: string;
2096
+ }>;
2097
+ planId: string;
2098
+ deploymentId: string;
2099
+ stackId: string;
2100
+ stateBackend: {
2101
+ type: "s3";
2102
+ schemaVersion: "treeseed.hosted-state-backend/v1";
2103
+ key: string;
2104
+ teamId: string;
2105
+ environment: "production" | "staging";
2106
+ deploymentId: string;
2107
+ bucket: string;
2108
+ stackId: string;
2109
+ connectionRef: string;
2110
+ region: string;
2111
+ encryptionKeyRef: string;
2112
+ bindingDigest: string;
2113
+ endpoint?: string | undefined;
2114
+ usePathStyle?: boolean | undefined;
2115
+ } | null;
2116
+ providerConnections: Partial<Record<"cloudflare" | "railway", {
2117
+ connectionRef: string;
2118
+ nonSecretConfig: Record<string, string | number | boolean>;
2119
+ }>>;
2120
+ declarationDigest: string;
2121
+ topologyId: string;
2122
+ platformCommit: string;
2123
+ authorization: "authenticated-agent";
2124
+ }>;
2125
+ export declare const hostedTopologyReceiptSchema: z.ZodObject<{
2126
+ schemaVersion: z.ZodLiteral<"treeseed.hosted-topology-receipt/v1">;
2127
+ receiptId: z.ZodString;
2128
+ planDigest: z.ZodString;
2129
+ declarationDigest: z.ZodString;
2130
+ topologyId: z.ZodString;
2131
+ teamId: z.ZodString;
2132
+ deploymentId: z.ZodString;
2133
+ stackId: z.ZodString;
2134
+ environment: z.ZodEnum<["staging", "production"]>;
2135
+ backendBindingDigest: z.ZodString;
2136
+ platformCommit: z.ZodString;
2137
+ resources: z.ZodArray<z.ZodObject<{
2138
+ resourceId: z.ZodString;
2139
+ provider: z.ZodEnum<["cloudflare", "railway"]>;
2140
+ kind: z.ZodEnum<["admin-application", "pages-application", "dns-record", "tls-policy", "api-proxy", "control-plane-api", "postgresql", "operations-runner", "treedx-service"]>;
2141
+ providerResourceId: z.ZodNullable<z.ZodString>;
2142
+ state: z.ZodEnum<["missing", "healthy", "degraded"]>;
2143
+ managedBy: z.ZodNullable<z.ZodEnum<["treeseed", "external"]>>;
2144
+ observedDigest: z.ZodNullable<z.ZodString>;
2145
+ observedAt: z.ZodString;
2146
+ }, "strict", z.ZodTypeAny, {
2147
+ kind: "admin-application" | "pages-application" | "dns-record" | "tls-policy" | "api-proxy" | "control-plane-api" | "postgresql" | "operations-runner" | "treedx-service";
2148
+ provider: "cloudflare" | "railway";
2149
+ state: "missing" | "degraded" | "healthy";
2150
+ resourceId: string;
2151
+ providerResourceId: string | null;
2152
+ managedBy: "external" | "treeseed" | null;
2153
+ observedDigest: string | null;
2154
+ observedAt: string;
2155
+ }, {
2156
+ kind: "admin-application" | "pages-application" | "dns-record" | "tls-policy" | "api-proxy" | "control-plane-api" | "postgresql" | "operations-runner" | "treedx-service";
2157
+ provider: "cloudflare" | "railway";
2158
+ state: "missing" | "degraded" | "healthy";
2159
+ resourceId: string;
2160
+ providerResourceId: string | null;
2161
+ managedBy: "external" | "treeseed" | null;
2162
+ observedDigest: string | null;
2163
+ observedAt: string;
2164
+ }>, "many">;
2165
+ previousResources: z.ZodArray<z.ZodObject<{
2166
+ resourceId: z.ZodString;
2167
+ provider: z.ZodEnum<["cloudflare", "railway"]>;
2168
+ kind: z.ZodEnum<["admin-application", "pages-application", "dns-record", "tls-policy", "api-proxy", "control-plane-api", "postgresql", "operations-runner", "treedx-service"]>;
2169
+ providerResourceId: z.ZodNullable<z.ZodString>;
2170
+ state: z.ZodEnum<["missing", "healthy", "degraded"]>;
2171
+ managedBy: z.ZodNullable<z.ZodEnum<["treeseed", "external"]>>;
2172
+ observedDigest: z.ZodNullable<z.ZodString>;
2173
+ observedAt: z.ZodString;
2174
+ }, "strict", z.ZodTypeAny, {
2175
+ kind: "admin-application" | "pages-application" | "dns-record" | "tls-policy" | "api-proxy" | "control-plane-api" | "postgresql" | "operations-runner" | "treedx-service";
2176
+ provider: "cloudflare" | "railway";
2177
+ state: "missing" | "degraded" | "healthy";
2178
+ resourceId: string;
2179
+ providerResourceId: string | null;
2180
+ managedBy: "external" | "treeseed" | null;
2181
+ observedDigest: string | null;
2182
+ observedAt: string;
2183
+ }, {
2184
+ kind: "admin-application" | "pages-application" | "dns-record" | "tls-policy" | "api-proxy" | "control-plane-api" | "postgresql" | "operations-runner" | "treedx-service";
2185
+ provider: "cloudflare" | "railway";
2186
+ state: "missing" | "degraded" | "healthy";
2187
+ resourceId: string;
2188
+ providerResourceId: string | null;
2189
+ managedBy: "external" | "treeseed" | null;
2190
+ observedDigest: string | null;
2191
+ observedAt: string;
2192
+ }>, "many">;
2193
+ state: z.ZodLiteral<"known-good">;
2194
+ completedAt: z.ZodString;
2195
+ }, "strict", z.ZodTypeAny, {
2196
+ state: "known-good";
2197
+ schemaVersion: "treeseed.hosted-topology-receipt/v1";
2198
+ resources: {
2199
+ kind: "admin-application" | "pages-application" | "dns-record" | "tls-policy" | "api-proxy" | "control-plane-api" | "postgresql" | "operations-runner" | "treedx-service";
2200
+ provider: "cloudflare" | "railway";
2201
+ state: "missing" | "degraded" | "healthy";
2202
+ resourceId: string;
2203
+ providerResourceId: string | null;
2204
+ managedBy: "external" | "treeseed" | null;
2205
+ observedDigest: string | null;
2206
+ observedAt: string;
2207
+ }[];
2208
+ planDigest: string;
2209
+ teamId: string;
2210
+ environment: "production" | "staging";
2211
+ completedAt: string;
2212
+ receiptId: string;
2213
+ deploymentId: string;
2214
+ stackId: string;
2215
+ declarationDigest: string;
2216
+ topologyId: string;
2217
+ platformCommit: string;
2218
+ backendBindingDigest: string;
2219
+ previousResources: {
2220
+ kind: "admin-application" | "pages-application" | "dns-record" | "tls-policy" | "api-proxy" | "control-plane-api" | "postgresql" | "operations-runner" | "treedx-service";
2221
+ provider: "cloudflare" | "railway";
2222
+ state: "missing" | "degraded" | "healthy";
2223
+ resourceId: string;
2224
+ providerResourceId: string | null;
2225
+ managedBy: "external" | "treeseed" | null;
2226
+ observedDigest: string | null;
2227
+ observedAt: string;
2228
+ }[];
2229
+ }, {
2230
+ state: "known-good";
2231
+ schemaVersion: "treeseed.hosted-topology-receipt/v1";
2232
+ resources: {
2233
+ kind: "admin-application" | "pages-application" | "dns-record" | "tls-policy" | "api-proxy" | "control-plane-api" | "postgresql" | "operations-runner" | "treedx-service";
2234
+ provider: "cloudflare" | "railway";
2235
+ state: "missing" | "degraded" | "healthy";
2236
+ resourceId: string;
2237
+ providerResourceId: string | null;
2238
+ managedBy: "external" | "treeseed" | null;
2239
+ observedDigest: string | null;
2240
+ observedAt: string;
2241
+ }[];
2242
+ planDigest: string;
2243
+ teamId: string;
2244
+ environment: "production" | "staging";
2245
+ completedAt: string;
2246
+ receiptId: string;
2247
+ deploymentId: string;
2248
+ stackId: string;
2249
+ declarationDigest: string;
2250
+ topologyId: string;
2251
+ platformCommit: string;
2252
+ backendBindingDigest: string;
2253
+ previousResources: {
2254
+ kind: "admin-application" | "pages-application" | "dns-record" | "tls-policy" | "api-proxy" | "control-plane-api" | "postgresql" | "operations-runner" | "treedx-service";
2255
+ provider: "cloudflare" | "railway";
2256
+ state: "missing" | "degraded" | "healthy";
2257
+ resourceId: string;
2258
+ providerResourceId: string | null;
2259
+ managedBy: "external" | "treeseed" | null;
2260
+ observedDigest: string | null;
2261
+ observedAt: string;
2262
+ }[];
2263
+ }>;
2264
+ export declare const hostedTopologyRollbackSchema: z.ZodEffects<z.ZodObject<{
2265
+ schemaVersion: z.ZodLiteral<"treeseed.hosted-topology-rollback/v1">;
2266
+ rollbackId: z.ZodString;
2267
+ sourceReceiptId: z.ZodString;
2268
+ teamId: z.ZodString;
2269
+ deploymentId: z.ZodString;
2270
+ stackId: z.ZodString;
2271
+ environment: z.ZodEnum<["staging", "production"]>;
2272
+ backendBindingDigest: z.ZodString;
2273
+ operations: z.ZodArray<z.ZodObject<{
2274
+ resourceId: z.ZodString;
2275
+ action: z.ZodEnum<["restore", "delete-created", "noop"]>;
2276
+ providerResourceId: z.ZodString;
2277
+ targetDigest: z.ZodNullable<z.ZodString>;
2278
+ }, "strict", z.ZodTypeAny, {
2279
+ action: "noop" | "restore" | "delete-created";
2280
+ resourceId: string;
2281
+ providerResourceId: string;
2282
+ targetDigest: string | null;
2283
+ }, {
2284
+ action: "noop" | "restore" | "delete-created";
2285
+ resourceId: string;
2286
+ providerResourceId: string;
2287
+ targetDigest: string | null;
2288
+ }>, "many">;
2289
+ rollbackDigest: z.ZodString;
2290
+ }, "strict", z.ZodTypeAny, {
2291
+ schemaVersion: "treeseed.hosted-topology-rollback/v1";
2292
+ teamId: string;
2293
+ environment: "production" | "staging";
2294
+ operations: {
2295
+ action: "noop" | "restore" | "delete-created";
2296
+ resourceId: string;
2297
+ providerResourceId: string;
2298
+ targetDigest: string | null;
2299
+ }[];
2300
+ deploymentId: string;
2301
+ stackId: string;
2302
+ backendBindingDigest: string;
2303
+ rollbackId: string;
2304
+ sourceReceiptId: string;
2305
+ rollbackDigest: string;
2306
+ }, {
2307
+ schemaVersion: "treeseed.hosted-topology-rollback/v1";
2308
+ teamId: string;
2309
+ environment: "production" | "staging";
2310
+ operations: {
2311
+ action: "noop" | "restore" | "delete-created";
2312
+ resourceId: string;
2313
+ providerResourceId: string;
2314
+ targetDigest: string | null;
2315
+ }[];
2316
+ deploymentId: string;
2317
+ stackId: string;
2318
+ backendBindingDigest: string;
2319
+ rollbackId: string;
2320
+ sourceReceiptId: string;
2321
+ rollbackDigest: string;
2322
+ }>, {
2323
+ schemaVersion: "treeseed.hosted-topology-rollback/v1";
2324
+ teamId: string;
2325
+ environment: "production" | "staging";
2326
+ operations: {
2327
+ action: "noop" | "restore" | "delete-created";
2328
+ resourceId: string;
2329
+ providerResourceId: string;
2330
+ targetDigest: string | null;
2331
+ }[];
2332
+ deploymentId: string;
2333
+ stackId: string;
2334
+ backendBindingDigest: string;
2335
+ rollbackId: string;
2336
+ sourceReceiptId: string;
2337
+ rollbackDigest: string;
2338
+ }, {
2339
+ schemaVersion: "treeseed.hosted-topology-rollback/v1";
2340
+ teamId: string;
2341
+ environment: "production" | "staging";
2342
+ operations: {
2343
+ action: "noop" | "restore" | "delete-created";
2344
+ resourceId: string;
2345
+ providerResourceId: string;
2346
+ targetDigest: string | null;
2347
+ }[];
2348
+ deploymentId: string;
2349
+ stackId: string;
2350
+ backendBindingDigest: string;
2351
+ rollbackId: string;
2352
+ sourceReceiptId: string;
2353
+ rollbackDigest: string;
2354
+ }>;
2355
+ export declare const hostedTopologyRollbackExecutionSchema: z.ZodEffects<z.ZodObject<{
2356
+ schemaVersion: z.ZodLiteral<"treeseed.hosted-topology-rollback-execution/v1">;
2357
+ rollback: z.ZodEffects<z.ZodObject<{
2358
+ schemaVersion: z.ZodLiteral<"treeseed.hosted-topology-rollback/v1">;
2359
+ rollbackId: z.ZodString;
2360
+ sourceReceiptId: z.ZodString;
2361
+ teamId: z.ZodString;
2362
+ deploymentId: z.ZodString;
2363
+ stackId: z.ZodString;
2364
+ environment: z.ZodEnum<["staging", "production"]>;
2365
+ backendBindingDigest: z.ZodString;
2366
+ operations: z.ZodArray<z.ZodObject<{
2367
+ resourceId: z.ZodString;
2368
+ action: z.ZodEnum<["restore", "delete-created", "noop"]>;
2369
+ providerResourceId: z.ZodString;
2370
+ targetDigest: z.ZodNullable<z.ZodString>;
2371
+ }, "strict", z.ZodTypeAny, {
2372
+ action: "noop" | "restore" | "delete-created";
2373
+ resourceId: string;
2374
+ providerResourceId: string;
2375
+ targetDigest: string | null;
2376
+ }, {
2377
+ action: "noop" | "restore" | "delete-created";
2378
+ resourceId: string;
2379
+ providerResourceId: string;
2380
+ targetDigest: string | null;
2381
+ }>, "many">;
2382
+ rollbackDigest: z.ZodString;
2383
+ }, "strict", z.ZodTypeAny, {
2384
+ schemaVersion: "treeseed.hosted-topology-rollback/v1";
2385
+ teamId: string;
2386
+ environment: "production" | "staging";
2387
+ operations: {
2388
+ action: "noop" | "restore" | "delete-created";
2389
+ resourceId: string;
2390
+ providerResourceId: string;
2391
+ targetDigest: string | null;
2392
+ }[];
2393
+ deploymentId: string;
2394
+ stackId: string;
2395
+ backendBindingDigest: string;
2396
+ rollbackId: string;
2397
+ sourceReceiptId: string;
2398
+ rollbackDigest: string;
2399
+ }, {
2400
+ schemaVersion: "treeseed.hosted-topology-rollback/v1";
2401
+ teamId: string;
2402
+ environment: "production" | "staging";
2403
+ operations: {
2404
+ action: "noop" | "restore" | "delete-created";
2405
+ resourceId: string;
2406
+ providerResourceId: string;
2407
+ targetDigest: string | null;
2408
+ }[];
2409
+ deploymentId: string;
2410
+ stackId: string;
2411
+ backendBindingDigest: string;
2412
+ rollbackId: string;
2413
+ sourceReceiptId: string;
2414
+ rollbackDigest: string;
2415
+ }>, {
2416
+ schemaVersion: "treeseed.hosted-topology-rollback/v1";
2417
+ teamId: string;
2418
+ environment: "production" | "staging";
2419
+ operations: {
2420
+ action: "noop" | "restore" | "delete-created";
2421
+ resourceId: string;
2422
+ providerResourceId: string;
2423
+ targetDigest: string | null;
2424
+ }[];
2425
+ deploymentId: string;
2426
+ stackId: string;
2427
+ backendBindingDigest: string;
2428
+ rollbackId: string;
2429
+ sourceReceiptId: string;
2430
+ rollbackDigest: string;
2431
+ }, {
2432
+ schemaVersion: "treeseed.hosted-topology-rollback/v1";
2433
+ teamId: string;
2434
+ environment: "production" | "staging";
2435
+ operations: {
2436
+ action: "noop" | "restore" | "delete-created";
2437
+ resourceId: string;
2438
+ providerResourceId: string;
2439
+ targetDigest: string | null;
2440
+ }[];
2441
+ deploymentId: string;
2442
+ stackId: string;
2443
+ backendBindingDigest: string;
2444
+ rollbackId: string;
2445
+ sourceReceiptId: string;
2446
+ rollbackDigest: string;
2447
+ }>;
2448
+ sourceReceiptId: z.ZodString;
2449
+ topologyId: z.ZodString;
2450
+ teamId: z.ZodString;
2451
+ deploymentId: z.ZodString;
2452
+ stackId: z.ZodString;
2453
+ environment: z.ZodEnum<["staging", "production"]>;
2454
+ backendBindingDigest: z.ZodString;
2455
+ sourcePlanDigest: z.ZodString;
2456
+ targetPlanDigest: z.ZodString;
2457
+ executionDigest: z.ZodString;
2458
+ }, "strict", z.ZodTypeAny, {
2459
+ schemaVersion: "treeseed.hosted-topology-rollback-execution/v1";
2460
+ teamId: string;
2461
+ environment: "production" | "staging";
2462
+ rollback: {
2463
+ schemaVersion: "treeseed.hosted-topology-rollback/v1";
2464
+ teamId: string;
2465
+ environment: "production" | "staging";
2466
+ operations: {
2467
+ action: "noop" | "restore" | "delete-created";
2468
+ resourceId: string;
2469
+ providerResourceId: string;
2470
+ targetDigest: string | null;
2471
+ }[];
2472
+ deploymentId: string;
2473
+ stackId: string;
2474
+ backendBindingDigest: string;
2475
+ rollbackId: string;
2476
+ sourceReceiptId: string;
2477
+ rollbackDigest: string;
2478
+ };
2479
+ deploymentId: string;
2480
+ stackId: string;
2481
+ topologyId: string;
2482
+ backendBindingDigest: string;
2483
+ sourceReceiptId: string;
2484
+ sourcePlanDigest: string;
2485
+ targetPlanDigest: string;
2486
+ executionDigest: string;
2487
+ }, {
2488
+ schemaVersion: "treeseed.hosted-topology-rollback-execution/v1";
2489
+ teamId: string;
2490
+ environment: "production" | "staging";
2491
+ rollback: {
2492
+ schemaVersion: "treeseed.hosted-topology-rollback/v1";
2493
+ teamId: string;
2494
+ environment: "production" | "staging";
2495
+ operations: {
2496
+ action: "noop" | "restore" | "delete-created";
2497
+ resourceId: string;
2498
+ providerResourceId: string;
2499
+ targetDigest: string | null;
2500
+ }[];
2501
+ deploymentId: string;
2502
+ stackId: string;
2503
+ backendBindingDigest: string;
2504
+ rollbackId: string;
2505
+ sourceReceiptId: string;
2506
+ rollbackDigest: string;
2507
+ };
2508
+ deploymentId: string;
2509
+ stackId: string;
2510
+ topologyId: string;
2511
+ backendBindingDigest: string;
2512
+ sourceReceiptId: string;
2513
+ sourcePlanDigest: string;
2514
+ targetPlanDigest: string;
2515
+ executionDigest: string;
2516
+ }>, {
2517
+ schemaVersion: "treeseed.hosted-topology-rollback-execution/v1";
2518
+ teamId: string;
2519
+ environment: "production" | "staging";
2520
+ rollback: {
2521
+ schemaVersion: "treeseed.hosted-topology-rollback/v1";
2522
+ teamId: string;
2523
+ environment: "production" | "staging";
2524
+ operations: {
2525
+ action: "noop" | "restore" | "delete-created";
2526
+ resourceId: string;
2527
+ providerResourceId: string;
2528
+ targetDigest: string | null;
2529
+ }[];
2530
+ deploymentId: string;
2531
+ stackId: string;
2532
+ backendBindingDigest: string;
2533
+ rollbackId: string;
2534
+ sourceReceiptId: string;
2535
+ rollbackDigest: string;
2536
+ };
2537
+ deploymentId: string;
2538
+ stackId: string;
2539
+ topologyId: string;
2540
+ backendBindingDigest: string;
2541
+ sourceReceiptId: string;
2542
+ sourcePlanDigest: string;
2543
+ targetPlanDigest: string;
2544
+ executionDigest: string;
2545
+ }, {
2546
+ schemaVersion: "treeseed.hosted-topology-rollback-execution/v1";
2547
+ teamId: string;
2548
+ environment: "production" | "staging";
2549
+ rollback: {
2550
+ schemaVersion: "treeseed.hosted-topology-rollback/v1";
2551
+ teamId: string;
2552
+ environment: "production" | "staging";
2553
+ operations: {
2554
+ action: "noop" | "restore" | "delete-created";
2555
+ resourceId: string;
2556
+ providerResourceId: string;
2557
+ targetDigest: string | null;
2558
+ }[];
2559
+ deploymentId: string;
2560
+ stackId: string;
2561
+ backendBindingDigest: string;
2562
+ rollbackId: string;
2563
+ sourceReceiptId: string;
2564
+ rollbackDigest: string;
2565
+ };
2566
+ deploymentId: string;
2567
+ stackId: string;
2568
+ topologyId: string;
2569
+ backendBindingDigest: string;
2570
+ sourceReceiptId: string;
2571
+ sourcePlanDigest: string;
2572
+ targetPlanDigest: string;
2573
+ executionDigest: string;
2574
+ }>;
2575
+ export type HostedTopologyDeclaration = z.infer<typeof hostedTopologyDeclarationSchema>;
2576
+ export type HostedStateBackend = z.infer<typeof hostedStateBackendSchema>;
2577
+ export type HostedResourceObservation = z.infer<typeof hostedResourceObservationSchema>;
2578
+ export type HostedTopologyPlan = z.infer<typeof hostedTopologyPlanSchema>;
2579
+ export type AuthorizedHostedTopologyPlan = z.infer<typeof authorizedHostedTopologyPlanSchema>;
2580
+ export type HostedTopologyReceipt = z.infer<typeof hostedTopologyReceiptSchema>;
2581
+ export type HostedTopologyRollbackExecution = z.infer<typeof hostedTopologyRollbackExecutionSchema>;
2582
+ export declare function planHostedTopology(input: {
2583
+ declaration: HostedTopologyDeclaration;
2584
+ observations: HostedResourceObservation[];
2585
+ connections: Partial<Record<z.infer<typeof hostedProviderSchema>, z.input<typeof hostedConnectionSnapshotSchema>>>;
2586
+ stateBackend?: z.input<typeof hostedStateBackendSchema>;
2587
+ }): HostedTopologyPlan;
2588
+ export declare function authorizeHostedTopologyPlan(planInput: HostedTopologyPlan): AuthorizedHostedTopologyPlan;
2589
+ export declare function verifyHostedTopologyReadback(input: {
2590
+ plan: AuthorizedHostedTopologyPlan;
2591
+ previousResources: HostedResourceObservation[];
2592
+ resources: HostedResourceObservation[];
2593
+ completedAt: string;
2594
+ }): HostedTopologyReceipt;
2595
+ export declare function planHostedTopologyRollback(receiptInput: HostedTopologyReceipt): {
2596
+ schemaVersion: "treeseed.hosted-topology-rollback/v1";
2597
+ teamId: string;
2598
+ environment: "production" | "staging";
2599
+ operations: {
2600
+ action: "noop" | "restore" | "delete-created";
2601
+ resourceId: string;
2602
+ providerResourceId: string;
2603
+ targetDigest: string | null;
2604
+ }[];
2605
+ deploymentId: string;
2606
+ stackId: string;
2607
+ backendBindingDigest: string;
2608
+ rollbackId: string;
2609
+ sourceReceiptId: string;
2610
+ rollbackDigest: string;
2611
+ };
2612
+ export declare function authorizeHostedTopologyRollback(rollbackInput: z.input<typeof hostedTopologyRollbackSchema>): {
2613
+ rollback: {
2614
+ schemaVersion: "treeseed.hosted-topology-rollback/v1";
2615
+ teamId: string;
2616
+ environment: "production" | "staging";
2617
+ operations: {
2618
+ action: "noop" | "restore" | "delete-created";
2619
+ resourceId: string;
2620
+ providerResourceId: string;
2621
+ targetDigest: string | null;
2622
+ }[];
2623
+ deploymentId: string;
2624
+ stackId: string;
2625
+ backendBindingDigest: string;
2626
+ rollbackId: string;
2627
+ sourceReceiptId: string;
2628
+ rollbackDigest: string;
2629
+ };
2630
+ };
2631
+ export declare function planHostedTopologyRollbackExecution(input: {
2632
+ rollback: z.input<typeof hostedTopologyRollbackSchema>;
2633
+ sourceReceipt: z.input<typeof hostedTopologyReceiptSchema>;
2634
+ sourcePlan: z.input<typeof hostedTopologyPlanSchema> | z.input<typeof authorizedHostedTopologyPlanSchema>;
2635
+ targetPlan: z.input<typeof hostedTopologyPlanSchema>;
2636
+ }): {
2637
+ schemaVersion: "treeseed.hosted-topology-rollback-execution/v1";
2638
+ teamId: string;
2639
+ environment: "production" | "staging";
2640
+ rollback: {
2641
+ schemaVersion: "treeseed.hosted-topology-rollback/v1";
2642
+ teamId: string;
2643
+ environment: "production" | "staging";
2644
+ operations: {
2645
+ action: "noop" | "restore" | "delete-created";
2646
+ resourceId: string;
2647
+ providerResourceId: string;
2648
+ targetDigest: string | null;
2649
+ }[];
2650
+ deploymentId: string;
2651
+ stackId: string;
2652
+ backendBindingDigest: string;
2653
+ rollbackId: string;
2654
+ sourceReceiptId: string;
2655
+ rollbackDigest: string;
2656
+ };
2657
+ deploymentId: string;
2658
+ stackId: string;
2659
+ topologyId: string;
2660
+ backendBindingDigest: string;
2661
+ sourceReceiptId: string;
2662
+ sourcePlanDigest: string;
2663
+ targetPlanDigest: string;
2664
+ executionDigest: string;
2665
+ };
2666
+ export declare function authorizeHostedTopologyRollbackExecution(executionInput: z.input<typeof hostedTopologyRollbackExecutionSchema>): {
2667
+ execution: {
2668
+ schemaVersion: "treeseed.hosted-topology-rollback-execution/v1";
2669
+ teamId: string;
2670
+ environment: "production" | "staging";
2671
+ rollback: {
2672
+ schemaVersion: "treeseed.hosted-topology-rollback/v1";
2673
+ teamId: string;
2674
+ environment: "production" | "staging";
2675
+ operations: {
2676
+ action: "noop" | "restore" | "delete-created";
2677
+ resourceId: string;
2678
+ providerResourceId: string;
2679
+ targetDigest: string | null;
2680
+ }[];
2681
+ deploymentId: string;
2682
+ stackId: string;
2683
+ backendBindingDigest: string;
2684
+ rollbackId: string;
2685
+ sourceReceiptId: string;
2686
+ rollbackDigest: string;
2687
+ };
2688
+ deploymentId: string;
2689
+ stackId: string;
2690
+ topologyId: string;
2691
+ backendBindingDigest: string;
2692
+ sourceReceiptId: string;
2693
+ sourcePlanDigest: string;
2694
+ targetPlanDigest: string;
2695
+ executionDigest: string;
2696
+ };
2697
+ };
2698
+ export {};