@treeseed/sdk 0.13.0-rc.13 → 0.13.0-rc.130

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 (558) hide show
  1. package/README.md +69 -9
  2. package/dist/accounts/account-contracts.d.ts +6 -0
  3. package/dist/agent-capacity/contracts/capacity/assignments/agent-execution.d.ts +5485 -0
  4. package/dist/agent-capacity/contracts/capacity/assignments/agent-execution.js +242 -0
  5. package/dist/agent-capacity/contracts/capacity/assignments/assignment-context-pack.d.ts +304 -0
  6. package/dist/agent-capacity/contracts/capacity/assignments/assignment-context-pack.js +44 -0
  7. package/dist/agent-capacity/contracts/capacity/assignments/assignment-path.d.ts +2 -0
  8. package/dist/agent-capacity/contracts/capacity/assignments/assignment-path.js +13 -0
  9. package/dist/agent-capacity/contracts/capacity/assignments/assignment-records.d.ts +23 -60
  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 +126 -3
  14. package/dist/agent-capacity/contracts/capacity/providers/supply-policy.js +35 -1
  15. package/dist/agent-capacity/contracts/capacity/workdays/assignment-allocation.d.ts +80 -0
  16. package/dist/agent-capacity/contracts/capacity/workdays/assignment-allocation.js +121 -0
  17. package/dist/agent-capacity/contracts/capacity/workdays/capability-accounting.d.ts +103 -0
  18. package/dist/agent-capacity/contracts/capacity/workdays/capability-accounting.js +51 -0
  19. package/dist/agent-capacity/contracts/capacity/workdays/workday-allocation.d.ts +490 -0
  20. package/dist/agent-capacity/contracts/capacity/workdays/workday-allocation.js +170 -0
  21. package/dist/agent-capacity/contracts/capacity/workdays/workday-records.d.ts +210 -91
  22. package/dist/agent-capacity/contracts/capacity/workdays/workday-records.js +19 -0
  23. package/dist/agent-capacity/contracts/configuration/configuration.d.ts +1 -1
  24. package/dist/agent-capacity/contracts/configuration/configuration.js +1 -3
  25. package/dist/agent-capacity/contracts/operations/agent-team-clone.d.ts +218 -0
  26. package/dist/agent-capacity/contracts/operations/agent-team-clone.js +57 -0
  27. package/dist/agent-capacity/contracts/projects/agents/project-agent-class.d.ts +119 -24
  28. package/dist/agent-capacity/contracts/projects/agents/project-agent-class.js +16 -0
  29. package/dist/agent-capacity/contracts/runtime/runtime-observability.d.ts +2 -154
  30. package/dist/agent-capacity/contracts/support/agent-atlas.d.ts +0 -13
  31. package/dist/agent-capacity/contracts/support/execution-graph.d.ts +1291 -0
  32. package/dist/agent-capacity/contracts/support/execution-graph.js +122 -0
  33. package/dist/agent-capacity/contracts/support/financial-records.d.ts +3 -6
  34. package/dist/agent-capacity/contracts/support/planning-records.d.ts +1 -87
  35. package/dist/agent-capacity/contracts/support/time-capacity.d.ts +0 -14
  36. package/dist/agent-capacity/contracts/support/time-capacity.js +1 -8
  37. package/dist/agent-capacity/grant.d.ts +34 -0
  38. package/dist/agent-capacity/grant.js +4 -0
  39. package/dist/agent-capacity/validation/activity-profile.d.ts +1 -1
  40. package/dist/agent-capacity/validation/activity-profile.js +3 -259
  41. package/dist/agent-capacity/validation/agent-definition-schema.d.ts +2538 -9020
  42. package/dist/agent-capacity/validation/agent-definition-schema.js +59 -181
  43. package/dist/agent-capacity/validation/agent-lab-forensics-schema.d.ts +25 -25
  44. package/dist/agent-capacity/validation/agent-lab-forensics-schema.js +0 -1
  45. package/dist/agent-capacity/validation/assignment-records.d.ts +1 -6
  46. package/dist/agent-capacity/validation/assignment-records.js +49 -35
  47. package/dist/agent-capacity/validation/configuration.d.ts +1 -1
  48. package/dist/agent-capacity/validation/configuration.js +2 -7
  49. package/dist/agent-capacity/validation/execution/execution-graph.d.ts +1 -0
  50. package/dist/agent-capacity/validation/execution/execution-graph.js +16 -0
  51. package/dist/agent-capacity/validation/grant.d.ts +11 -0
  52. package/dist/agent-capacity/validation/grant.js +31 -0
  53. package/dist/agent-capacity/validation/index.d.ts +2 -1
  54. package/dist/agent-capacity/validation/index.js +2 -1
  55. package/dist/agent-capacity/workday.d.ts +13 -4
  56. package/dist/agent-capacity/workday.js +10 -26
  57. package/dist/capacity/agents/agent-capacity.d.ts +11 -4
  58. package/dist/capacity/agents/agent-capacity.js +9 -3
  59. package/dist/capacity-provider/capability-ontology.d.ts +1495 -0
  60. package/dist/capacity-provider/capability-ontology.js +221 -0
  61. package/dist/capacity-provider/client.d.ts +78 -3
  62. package/dist/capacity-provider/client.js +22 -10
  63. package/dist/capacity-provider/contracts/capacity-facts.d.ts +13 -0
  64. package/dist/capacity-provider/contracts/environment-profiles.d.ts +255 -0
  65. package/dist/capacity-provider/contracts/environment-profiles.js +71 -0
  66. package/dist/capacity-provider/contracts/governance.d.ts +110 -51
  67. package/dist/capacity-provider/contracts/index.d.ts +3 -0
  68. package/dist/capacity-provider/contracts/index.js +3 -0
  69. package/dist/capacity-provider/core-capability-catalog.d.ts +47 -0
  70. package/dist/capacity-provider/core-capability-catalog.js +49 -0
  71. package/dist/capacity-provider/environment-catalog.d.ts +877 -0
  72. package/dist/capacity-provider/environment-catalog.js +116 -0
  73. package/dist/capacity-provider/index.d.ts +5 -0
  74. package/dist/capacity-provider/index.js +5 -0
  75. package/dist/capacity-provider/install-configuration.d.ts +39 -0
  76. package/dist/capacity-provider/install-configuration.js +18 -0
  77. package/dist/capacity-provider/sandbox-contracts.d.ts +602 -0
  78. package/dist/capacity-provider/sandbox-contracts.js +90 -0
  79. package/dist/capacity-provider/sandbox.d.ts +2 -0
  80. package/dist/capacity-provider/sandbox.js +2 -0
  81. package/dist/capacity-provider/source-workspace.d.ts +740 -0
  82. package/dist/capacity-provider/source-workspace.js +130 -0
  83. package/dist/capacity-provider/validation.d.ts +11 -3
  84. package/dist/capacity-provider/validation.js +136 -70
  85. package/dist/configuration/secrets-capability.d.ts +5 -1
  86. package/dist/configuration/secrets-capability.js +5 -1
  87. package/dist/content/contracts.d.ts +1 -1
  88. package/dist/content/validation/agent-operational-content-schemas.d.ts +430 -777
  89. package/dist/content/validation/agent-operational-content-schemas.js +31 -57
  90. package/dist/content/validation/auxiliary-content-schemas.d.ts +144 -144
  91. package/dist/content/validation/content-model-schemas.d.ts +16063 -19764
  92. package/dist/content/validation/content-model-schemas.js +350 -98
  93. package/dist/content/validation/portable-content-data.d.ts +751 -1782
  94. package/dist/content/validation/portable-content-data.js +10 -4
  95. package/dist/content/validation/schema-constraints.d.ts +80 -0
  96. package/dist/content/validation/schema-constraints.js +173 -0
  97. package/dist/deployment/ai/storage.d.ts +158 -0
  98. package/dist/deployment/ai/storage.js +32 -0
  99. package/dist/deployment/ai-hosting.d.ts +297 -0
  100. package/dist/deployment/ai-hosting.js +63 -0
  101. package/dist/deployment/ai-instance.d.ts +65 -0
  102. package/dist/deployment/ai-instance.js +30 -0
  103. package/dist/deployment/ai-mode.d.ts +454 -0
  104. package/dist/deployment/ai-mode.js +67 -0
  105. package/dist/deployment/canonical.d.ts +2 -0
  106. package/dist/deployment/canonical.js +17 -0
  107. package/dist/deployment/catalog.d.ts +16 -0
  108. package/dist/deployment/catalog.js +48 -0
  109. package/dist/deployment/hosted-topology-template.d.ts +449 -0
  110. package/dist/deployment/hosted-topology-template.js +56 -0
  111. package/dist/deployment/hosted-topology.d.ts +2698 -0
  112. package/dist/deployment/hosted-topology.js +468 -0
  113. package/dist/deployment/index.d.ts +13 -0
  114. package/dist/deployment/index.js +13 -0
  115. package/dist/deployment/postgres/contracts.d.ts +418 -0
  116. package/dist/deployment/postgres/contracts.js +83 -0
  117. package/dist/deployment/postgres/requirements.d.ts +15 -0
  118. package/dist/deployment/postgres/requirements.js +32 -0
  119. package/dist/deployment/postgres/transfer.d.ts +97 -0
  120. package/dist/deployment/postgres/transfer.js +29 -0
  121. package/dist/deployment/schemas.d.ts +8625 -0
  122. package/dist/deployment/schemas.js +455 -0
  123. package/dist/deployment/topology.d.ts +9 -0
  124. package/dist/deployment/topology.js +35 -0
  125. package/dist/development/index.d.ts +1 -0
  126. package/dist/development/index.js +1 -0
  127. package/dist/development/schemas.d.ts +3594 -0
  128. package/dist/development/schemas.js +204 -0
  129. package/dist/development/session-migration.d.ts +3 -0
  130. package/dist/development/session-migration.js +25 -0
  131. package/dist/entrypoints/clients/control-plane-client.d.ts +9 -1
  132. package/dist/entrypoints/clients/control-plane-client.js +17 -5
  133. package/dist/graph/context-query-contracts.d.ts +16 -1
  134. package/dist/graph/context-query-contracts.js +6 -1
  135. package/dist/guarantees/evidence-trust.d.ts +32 -0
  136. package/dist/guarantees/evidence-trust.js +47 -0
  137. package/dist/guarantees/index.d.ts +154 -0
  138. package/dist/guarantees/index.js +44 -0
  139. package/dist/identity/browser-session.d.ts +233 -0
  140. package/dist/identity/browser-session.js +51 -0
  141. package/dist/identity/contracts.d.ts +191 -0
  142. package/dist/identity/contracts.js +77 -0
  143. package/dist/identity/index.d.ts +3 -0
  144. package/dist/identity/index.js +3 -0
  145. package/dist/identity/runtime.d.ts +186 -0
  146. package/dist/identity/runtime.js +49 -0
  147. package/dist/knowledge/contracts.d.ts +9 -2
  148. package/dist/knowledge/contracts.js +2 -2
  149. package/dist/model-registry/agent-operational-models.d.ts +1 -1
  150. package/dist/model-registry/agent-operational-models.js +1 -4
  151. package/dist/model-registry/build-builtin-model-registry.js +44 -72
  152. package/dist/model-registry/discussion-models.js +0 -1
  153. package/dist/operator-contracts/canonical-command-tree.js +415 -44
  154. package/dist/operator-contracts/catalog/admin-account-team-operations.d.ts +36 -0
  155. package/dist/operator-contracts/catalog/admin-account-team-operations.js +52 -0
  156. package/dist/operator-contracts/catalog/agents/agent-team-clone-operations.d.ts +75 -0
  157. package/dist/operator-contracts/catalog/agents/agent-team-clone-operations.js +42 -0
  158. package/dist/operator-contracts/catalog/capability-ontology-operations.d.ts +163 -0
  159. package/dist/operator-contracts/catalog/capability-ontology-operations.js +24 -0
  160. package/dist/operator-contracts/catalog/commands/command-tree-builders.d.ts +62 -0
  161. package/dist/operator-contracts/catalog/commands/command-tree-builders.js +191 -0
  162. package/dist/operator-contracts/catalog/communication-operations.d.ts +457 -0
  163. package/dist/operator-contracts/catalog/communication-operations.js +92 -0
  164. package/dist/operator-contracts/catalog/control-plane-catalog.d.ts +6 -0
  165. package/dist/operator-contracts/catalog/control-plane-catalog.js +18 -0
  166. package/dist/operator-contracts/catalog/execution/execution-operations.d.ts +36 -0
  167. package/dist/operator-contracts/catalog/execution/execution-operations.js +39 -0
  168. package/dist/operator-contracts/catalog/hosted-topology-operations.d.ts +399 -0
  169. package/dist/operator-contracts/catalog/hosted-topology-operations.js +79 -0
  170. package/dist/operator-contracts/catalog/inbox-operations.d.ts +265 -0
  171. package/dist/operator-contracts/catalog/inbox-operations.js +36 -0
  172. package/dist/operator-contracts/catalog/infrastructure/ai-instance-operations.d.ts +53 -0
  173. package/dist/operator-contracts/catalog/infrastructure/ai-instance-operations.js +24 -0
  174. package/dist/operator-contracts/catalog/infrastructure/command-tree-paths.d.ts +3 -0
  175. package/dist/operator-contracts/catalog/infrastructure/command-tree-paths.js +15 -0
  176. package/dist/operator-contracts/catalog/knowledge-share-operations.d.ts +127 -0
  177. package/dist/operator-contracts/catalog/knowledge-share-operations.js +25 -0
  178. package/dist/operator-contracts/catalog/provider-environment-commands.d.ts +4 -0
  179. package/dist/operator-contracts/catalog/provider-environment-commands.js +69 -0
  180. package/dist/operator-contracts/catalog/provider-environment-operations.d.ts +41 -0
  181. package/dist/operator-contracts/catalog/provider-environment-operations.js +61 -0
  182. package/dist/operator-contracts/catalog/services/identity-commands.d.ts +2 -0
  183. package/dist/operator-contracts/catalog/services/identity-commands.js +13 -0
  184. package/dist/operator-contracts/catalog/services/secret-commands.d.ts +2 -0
  185. package/dist/operator-contracts/catalog/services/secret-commands.js +31 -0
  186. package/dist/operator-contracts/catalog/services/secret-operations.d.ts +70 -0
  187. package/dist/operator-contracts/catalog/services/secret-operations.js +52 -0
  188. package/dist/operator-contracts/catalog/treeai-operations.d.ts +13 -0
  189. package/dist/operator-contracts/catalog/treeai-operations.js +61 -0
  190. package/dist/operator-contracts/catalog/workdays/profile-commands.d.ts +4 -0
  191. package/dist/operator-contracts/catalog/workdays/profile-commands.js +20 -0
  192. package/dist/operator-contracts/catalog/workdays/profile-operations.d.ts +41 -0
  193. package/dist/operator-contracts/catalog/workdays/profile-operations.js +50 -0
  194. package/dist/operator-contracts/catalog/workdays/selection-commands.d.ts +3 -0
  195. package/dist/operator-contracts/catalog/workdays/selection-commands.js +28 -0
  196. package/dist/operator-contracts/command-tree.d.ts +29 -0
  197. package/dist/operator-contracts/command-tree.js +50 -0
  198. package/dist/operator-contracts/communication/addressing.d.ts +8 -0
  199. package/dist/operator-contracts/communication/addressing.js +57 -0
  200. package/dist/operator-contracts/communication/contracts.d.ts +1966 -0
  201. package/dist/operator-contracts/communication/contracts.js +195 -0
  202. package/dist/operator-contracts/control-plane-operation.d.ts +15 -1
  203. package/dist/operator-contracts/control-plane-operation.js +14 -6
  204. package/dist/operator-contracts/control-plane-operations.d.ts +2496 -328
  205. package/dist/operator-contracts/control-plane-operations.js +280 -127
  206. package/dist/operator-contracts/inbox/contracts.d.ts +1111 -0
  207. package/dist/operator-contracts/inbox/contracts.js +138 -0
  208. package/dist/operator-contracts/index.d.ts +6 -1
  209. package/dist/operator-contracts/index.js +6 -1
  210. package/dist/operator-contracts/knowledge/contracts.d.ts +130 -0
  211. package/dist/operator-contracts/knowledge/contracts.js +39 -0
  212. package/dist/operator-contracts/mcp.d.ts +5 -0
  213. package/dist/operator-contracts/mcp.js +62 -0
  214. package/dist/operator-contracts/oauth.d.ts +45 -0
  215. package/dist/operator-contracts/oauth.js +7 -0
  216. package/dist/operator-contracts/operation-builder.d.ts +18 -0
  217. package/dist/operator-contracts/operation-builder.js +78 -0
  218. package/dist/operator-contracts/seed/seed-bundle.d.ts +138 -0
  219. package/dist/operator-contracts/seed/seed-bundle.js +68 -0
  220. package/dist/operator-contracts/workday-lifecycle.d.ts +383 -28
  221. package/dist/operator-contracts/workday-lifecycle.js +124 -17
  222. package/dist/platform/agent-schema-verification.d.ts +3 -0
  223. package/dist/platform/agent-schema-verification.js +377 -0
  224. package/dist/platform/contracts.d.ts +429 -0
  225. package/dist/platform/contracts.js +93 -0
  226. package/dist/platform/index.d.ts +6 -0
  227. package/dist/platform/index.js +6 -0
  228. package/dist/platform/inventory.d.ts +11 -0
  229. package/dist/platform/inventory.js +53 -0
  230. package/dist/platform/project-create.d.ts +49 -0
  231. package/dist/platform/project-create.js +75 -0
  232. package/dist/platform/schemas.d.ts +1094 -0
  233. package/dist/platform/schemas.js +99 -0
  234. package/dist/platform/verification.d.ts +9 -0
  235. package/dist/platform/verification.js +114 -0
  236. package/dist/platform/workset.d.ts +21 -0
  237. package/dist/platform/workset.js +106 -0
  238. package/dist/sdk-types/support/planning-policy.d.ts +1 -1
  239. package/dist/sdk-types/support/sdk-model-names.d.ts +1 -1
  240. package/dist/sdk-types/support/sdk-model-names.js +0 -3
  241. package/dist/sdk-types/support/sdk-search-request.d.ts +2 -2
  242. package/dist/secrets-capability/github-actions-encryption.d.ts +2 -0
  243. package/dist/secrets-capability/github-actions-encryption.js +11 -0
  244. package/dist/secrets-capability/provider-operation-contracts.d.ts +15 -1
  245. package/dist/secrets-capability/secret-contracts.d.ts +33 -0
  246. package/dist/secrets-capability/secret-contracts.js +49 -0
  247. package/dist/secrets-capability/service-provider-contracts.d.ts +5 -3
  248. package/dist/secrets-capability/service-provider-contracts.js +66 -50
  249. package/dist/secrets-capability/shared-access.d.ts +51 -0
  250. package/dist/secrets-capability/shared-access.js +36 -0
  251. package/dist/secrets-capability/shared-resources.d.ts +376 -0
  252. package/dist/secrets-capability/shared-resources.js +91 -0
  253. package/dist/secrets-capability/vault-contracts.d.ts +132 -0
  254. package/dist/secrets-capability/vault-contracts.js +56 -0
  255. package/dist/security/encrypted-envelope.d.ts +177 -0
  256. package/dist/security/encrypted-envelope.js +34 -0
  257. package/dist/security/envelope-codec.d.ts +38 -0
  258. package/dist/security/envelope-codec.js +96 -0
  259. package/dist/security/index.d.ts +2 -0
  260. package/dist/security/index.js +2 -0
  261. package/dist/site-contracts/catalog.d.ts +16 -0
  262. package/dist/site-contracts/catalog.js +19 -0
  263. package/dist/site-contracts/cloudflare.d.ts +48 -0
  264. package/dist/site-contracts/platform.d.ts +94 -0
  265. package/dist/site-contracts/plugin.d.ts +63 -0
  266. package/dist/site-contracts/plugin.js +26 -0
  267. package/dist/treeai/catalog.d.ts +1 -0
  268. package/dist/treeai/catalog.js +1 -0
  269. package/dist/treeai/client.d.ts +793 -0
  270. package/dist/treeai/client.js +44 -0
  271. package/dist/treeai/contract.d.ts +41 -0
  272. package/dist/treeai/contract.js +51 -0
  273. package/dist/treeai/generated/upstream.d.ts +770 -0
  274. package/dist/treeai/generated/upstream.js +4 -0
  275. package/dist/treeai/index.d.ts +4 -0
  276. package/dist/treeai/index.js +4 -0
  277. package/dist/treedx/client.d.ts +605 -0
  278. package/dist/treedx/client.js +39 -0
  279. package/dist/treedx/contract.d.ts +32 -0
  280. package/dist/treedx/contract.js +63 -0
  281. package/dist/treedx/index.d.ts +3 -0
  282. package/dist/treedx/index.js +3 -0
  283. package/dist/treedx/types.d.ts +294 -7
  284. package/dist/treedx/types.js +44 -7
  285. package/dist/types/agents/agent-activity-profile.d.ts +43 -98
  286. package/dist/types/agents/agent-activity-profile.js +23 -0
  287. package/dist/types/agents/agent-trigger-kinds.d.ts +3 -5
  288. package/dist/types/agents/agent-trigger-kinds.js +1 -13
  289. package/dist/types/agents/execution-run-ref.d.ts +1 -8
  290. package/guarantees/agent/golden/component-boundaries.guarantee.yaml +12 -0
  291. package/guarantees/agent/golden/product-custody.guarantee.yaml +12 -0
  292. package/guarantees/agent/golden/product.guarantee.yaml +12 -0
  293. package/guarantees/agent/golden/scenes/component-boundaries.scene.yaml +858 -0
  294. package/guarantees/agent/golden/scenes/product-custody.scene.yaml +53 -0
  295. package/guarantees/agent/golden/scenes/product.scene.yaml +8 -0
  296. package/guarantees/verifiers/golden.verifiers.yaml +1464 -0
  297. package/package.json +72 -13
  298. package/tests/acceptance/golden-product.test.ts +205 -0
  299. package/tests/acceptance/golden-product.ts +404 -0
  300. package/tests/acceptance/product/base-red.ts +73 -0
  301. package/tests/acceptance/product/documentation-examples.ts +68 -0
  302. package/tests/acceptance/product/intent-runtime.ts +145 -0
  303. package/tests/acceptance/product/release-output.ts +160 -0
  304. package/tests/acceptance/product/research-artifact.ts +87 -0
  305. package/tests/acceptance/product/research-revision.ts +82 -0
  306. package/tests/acceptance/product/research-source.ts +91 -0
  307. package/tests/acceptance/product/test-chain.ts +192 -0
  308. package/treeseed.package.yaml +147 -0
  309. package/dist/agent-capacity/allocation.d.ts +0 -186
  310. package/dist/agent-capacity/allocation.js +0 -226
  311. package/dist/agent-capacity/artifact-mutation-receipt.d.ts +0 -49
  312. package/dist/agent-capacity/artifact-mutation-receipt.js +0 -36
  313. package/dist/agent-capacity/artifacts.d.ts +0 -107
  314. package/dist/agent-capacity/artifacts.js +0 -39
  315. package/dist/agent-capacity/authority/agent-authority-presets.d.ts +0 -13
  316. package/dist/agent-capacity/authority/agent-authority-presets.js +0 -106
  317. package/dist/agent-capacity/contracts/operations/workflow-promotion.d.ts +0 -24
  318. package/dist/agent-capacity/contracts/support/decision-work.d.ts +0 -251
  319. package/dist/agent-capacity/policy/capacity/allocations/allocation-hierarchy.d.ts +0 -29
  320. package/dist/agent-capacity/policy/capacity/allocations/allocation-hierarchy.js +0 -110
  321. package/dist/agent-capacity/validation/allocation.d.ts +0 -12
  322. package/dist/agent-capacity/validation/allocation.js +0 -115
  323. package/dist/agent-capacity/validation/workflow-promotion.d.ts +0 -2
  324. package/dist/agent-capacity/validation/workflow-promotion.js +0 -34
  325. package/dist/operator-contracts/workday-profile.d.ts +0 -72
  326. package/dist/operator-contracts/workday-profile.js +0 -106
  327. package/dist/secrets-capability/service-vault-contracts.d.ts +0 -61
  328. package/dist/secrets-capability/service-vault-contracts.js +0 -39
  329. package/dist/treedx/accounts/auth.d.ts +0 -17
  330. package/dist/treedx/accounts/auth.js +0 -48
  331. package/dist/treedx/client/accounts/contracts/auth-mode.d.ts +0 -3
  332. package/dist/treedx/client/accounts/contracts/auth-mode.js +0 -6
  333. package/dist/treedx/client/build/creation/build-context.d.ts +0 -3
  334. package/dist/treedx/client/build/creation/build-context.js +0 -7
  335. package/dist/treedx/client/build/creation/build-snapshot.d.ts +0 -3
  336. package/dist/treedx/client/build/creation/build-snapshot.js +0 -8
  337. package/dist/treedx/client/capacity/allocations/contracts/put-capability-grant.d.ts +0 -3
  338. package/dist/treedx/client/capacity/allocations/contracts/put-capability-grant.js +0 -7
  339. package/dist/treedx/client/capacity/allocations/queries/list-capability-grants.d.ts +0 -6
  340. package/dist/treedx/client/capacity/allocations/queries/list-capability-grants.js +0 -10
  341. package/dist/treedx/client/methods.d.ts +0 -102
  342. package/dist/treedx/client/methods.js +0 -209
  343. package/dist/treedx/client/persistence/contracts/restore-storage.d.ts +0 -3
  344. package/dist/treedx/client/persistence/contracts/restore-storage.js +0 -6
  345. package/dist/treedx/client/persistence/lifecycle/verify-storage-restore.d.ts +0 -3
  346. package/dist/treedx/client/persistence/lifecycle/verify-storage-restore.js +0 -6
  347. package/dist/treedx/client/repositories/creation/register-repository.d.ts +0 -3
  348. package/dist/treedx/client/repositories/creation/register-repository.js +0 -7
  349. package/dist/treedx/client/repositories/queries/get-repository.d.ts +0 -3
  350. package/dist/treedx/client/repositories/queries/get-repository.js +0 -7
  351. package/dist/treedx/client/repositories/queries/list-repository-paths.d.ts +0 -3
  352. package/dist/treedx/client/repositories/queries/list-repository-paths.js +0 -7
  353. package/dist/treedx/client/repositories/queries/list-repository-refs.d.ts +0 -3
  354. package/dist/treedx/client/repositories/queries/list-repository-refs.js +0 -12
  355. package/dist/treedx/client/repositories/queries/query-repository.d.ts +0 -3
  356. package/dist/treedx/client/repositories/queries/query-repository.js +0 -7
  357. package/dist/treedx/client/repositories/queries/read-repository-file.d.ts +0 -3
  358. package/dist/treedx/client/repositories/queries/read-repository-file.js +0 -6
  359. package/dist/treedx/client/repositories/queries/read-repository-files.d.ts +0 -3
  360. package/dist/treedx/client/repositories/queries/read-repository-files.js +0 -7
  361. package/dist/treedx/client/repositories/queries/search-repository-files.d.ts +0 -3
  362. package/dist/treedx/client/repositories/queries/search-repository-files.js +0 -7
  363. package/dist/treedx/client/support/contracts/treedx/artifacts/contracts/download-artifact.d.ts +0 -3
  364. package/dist/treedx/client/support/contracts/treedx/artifacts/contracts/download-artifact.js +0 -9
  365. package/dist/treedx/client/support/contracts/treedx/authorization/contracts/whoami.d.ts +0 -3
  366. package/dist/treedx/client/support/contracts/treedx/authorization/contracts/whoami.js +0 -6
  367. package/dist/treedx/client/support/contracts/treedx/graph/contracts/parse-context-dsl.d.ts +0 -3
  368. package/dist/treedx/client/support/contracts/treedx/graph/contracts/parse-context-dsl.js +0 -7
  369. package/dist/treedx/client/support/contracts/treedx/health/contracts/deep-health.d.ts +0 -5
  370. package/dist/treedx/client/support/contracts/treedx/health/contracts/deep-health.js +0 -7
  371. package/dist/treedx/client/support/contracts/treedx/health/contracts/health.d.ts +0 -3
  372. package/dist/treedx/client/support/contracts/treedx/health/contracts/health.js +0 -6
  373. package/dist/treedx/client/support/contracts/treedx/health/contracts/metrics.d.ts +0 -3
  374. package/dist/treedx/client/support/contracts/treedx/health/contracts/metrics.js +0 -7
  375. package/dist/treedx/client/support/contracts/treedx/health/contracts/prometheus-metrics.d.ts +0 -2
  376. package/dist/treedx/client/support/contracts/treedx/health/contracts/prometheus-metrics.js +0 -19
  377. package/dist/treedx/client/support/contracts/treedx/health/contracts/ready.d.ts +0 -3
  378. package/dist/treedx/client/support/contracts/treedx/health/contracts/ready.js +0 -7
  379. package/dist/treedx/client/support/contracts/treedx/health/contracts/status.d.ts +0 -3
  380. package/dist/treedx/client/support/contracts/treedx/health/contracts/status.js +0 -6
  381. package/dist/treedx/client/support/contracts/treedx/repositories/contracts/commit.d.ts +0 -3
  382. package/dist/treedx/client/support/contracts/treedx/repositories/contracts/commit.js +0 -7
  383. package/dist/treedx/client/support/contracts/treedx/repositories/contracts/diff.d.ts +0 -3
  384. package/dist/treedx/client/support/contracts/treedx/repositories/contracts/diff.js +0 -6
  385. package/dist/treedx/client/support/contracts/treedx/repositories/contracts/fetch-remote.d.ts +0 -3
  386. package/dist/treedx/client/support/contracts/treedx/repositories/contracts/fetch-remote.js +0 -7
  387. package/dist/treedx/client/support/contracts/treedx/repositories/contracts/push.d.ts +0 -6
  388. package/dist/treedx/client/support/contracts/treedx/repositories/contracts/push.js +0 -23
  389. package/dist/treedx/client/support/contracts/treedx/search/contracts/compact-search-index.d.ts +0 -3
  390. package/dist/treedx/client/support/contracts/treedx/search/contracts/compact-search-index.js +0 -8
  391. package/dist/treedx/client/support/contracts/treedx/search/contracts/search.d.ts +0 -3
  392. package/dist/treedx/client/support/contracts/treedx/search/contracts/search.js +0 -7
  393. package/dist/treedx/client/support/contracts/treedx/storage/contracts/backup-storage.d.ts +0 -3
  394. package/dist/treedx/client/support/contracts/treedx/storage/contracts/backup-storage.js +0 -8
  395. package/dist/treedx/client/support/contracts/treedx/storage/contracts/compact-storage.d.ts +0 -3
  396. package/dist/treedx/client/support/contracts/treedx/storage/contracts/compact-storage.js +0 -8
  397. package/dist/treedx/client/support/contracts/treedx/transport/contracts/assert-binary-ok.d.ts +0 -2
  398. package/dist/treedx/client/support/contracts/treedx/transport/contracts/assert-binary-ok.js +0 -15
  399. package/dist/treedx/client/support/contracts/treedx/transport/contracts/fetch-with-timeout.d.ts +0 -2
  400. package/dist/treedx/client/support/contracts/treedx/transport/contracts/fetch-with-timeout.js +0 -38
  401. package/dist/treedx/client/support/contracts/treedx/transport/contracts/headers.d.ts +0 -2
  402. package/dist/treedx/client/support/contracts/treedx/transport/contracts/headers.js +0 -15
  403. package/dist/treedx/client/support/contracts/treedx/transport/contracts/parse-json-response.d.ts +0 -2
  404. package/dist/treedx/client/support/contracts/treedx/transport/contracts/parse-json-response.js +0 -15
  405. package/dist/treedx/client/support/contracts/treedx/transport/contracts/query.d.ts +0 -2
  406. package/dist/treedx/client/support/contracts/treedx/transport/contracts/query.js +0 -14
  407. package/dist/treedx/client/support/contracts/treedx/transport/contracts/repo-id.d.ts +0 -2
  408. package/dist/treedx/client/support/contracts/treedx/transport/contracts/repo-id.js +0 -14
  409. package/dist/treedx/client/support/contracts/treedx/transport/contracts/request.d.ts +0 -6
  410. package/dist/treedx/client/support/contracts/treedx/transport/contracts/request.js +0 -41
  411. package/dist/treedx/client/support/contracts/treedx/transport/contracts/throw-api-error.d.ts +0 -2
  412. package/dist/treedx/client/support/contracts/treedx/transport/contracts/throw-api-error.js +0 -14
  413. package/dist/treedx/client/support/contracts/treedx/workspaces/contracts/exec.d.ts +0 -3
  414. package/dist/treedx/client/support/contracts/treedx/workspaces/contracts/exec.js +0 -7
  415. package/dist/treedx/client/support/creation/apply-changeset.d.ts +0 -3
  416. package/dist/treedx/client/support/creation/apply-changeset.js +0 -10
  417. package/dist/treedx/client/support/creation/apply-storage-migration.d.ts +0 -3
  418. package/dist/treedx/client/support/creation/apply-storage-migration.js +0 -7
  419. package/dist/treedx/client/support/creation/create-migration.d.ts +0 -6
  420. package/dist/treedx/client/support/creation/create-migration.js +0 -7
  421. package/dist/treedx/client/support/creation/export-artifact.d.ts +0 -3
  422. package/dist/treedx/client/support/creation/export-artifact.js +0 -8
  423. package/dist/treedx/client/support/creation/plan-storage-migration.d.ts +0 -3
  424. package/dist/treedx/client/support/creation/plan-storage-migration.js +0 -7
  425. package/dist/treedx/client/support/creation/request-binary.d.ts +0 -6
  426. package/dist/treedx/client/support/creation/request-binary.js +0 -42
  427. package/dist/treedx/client/support/creation/write-file.d.ts +0 -3
  428. package/dist/treedx/client/support/creation/write-file.js +0 -10
  429. package/dist/treedx/client/support/creation/write-files.d.ts +0 -3
  430. package/dist/treedx/client/support/creation/write-files.js +0 -12
  431. package/dist/treedx/client/support/queries/treedx/artifacts/queries/get-artifact.d.ts +0 -3
  432. package/dist/treedx/client/support/queries/treedx/artifacts/queries/get-artifact.js +0 -7
  433. package/dist/treedx/client/support/queries/treedx/artifacts/queries/list-artifacts.d.ts +0 -3
  434. package/dist/treedx/client/support/queries/treedx/artifacts/queries/list-artifacts.js +0 -7
  435. package/dist/treedx/client/support/queries/treedx/authorization/queries/effective-scope.d.ts +0 -3
  436. package/dist/treedx/client/support/queries/treedx/authorization/queries/effective-scope.js +0 -9
  437. package/dist/treedx/client/support/queries/treedx/authorization/queries/list-capabilities.d.ts +0 -4
  438. package/dist/treedx/client/support/queries/treedx/authorization/queries/list-capabilities.js +0 -6
  439. package/dist/treedx/client/support/queries/treedx/federation/queries/get-placement.d.ts +0 -3
  440. package/dist/treedx/client/support/queries/treedx/federation/queries/get-placement.js +0 -7
  441. package/dist/treedx/client/support/queries/treedx/graph/queries/get-node.d.ts +0 -3
  442. package/dist/treedx/client/support/queries/treedx/graph/queries/get-node.js +0 -7
  443. package/dist/treedx/client/support/queries/treedx/graph/queries/get-related.d.ts +0 -3
  444. package/dist/treedx/client/support/queries/treedx/graph/queries/get-related.js +0 -7
  445. package/dist/treedx/client/support/queries/treedx/graph/queries/list-nodes.d.ts +0 -3
  446. package/dist/treedx/client/support/queries/treedx/graph/queries/list-nodes.js +0 -7
  447. package/dist/treedx/client/support/queries/treedx/repositories/queries/list-tree.d.ts +0 -3
  448. package/dist/treedx/client/support/queries/treedx/repositories/queries/list-tree.js +0 -10
  449. package/dist/treedx/client/support/queries/treedx/repositories/queries/read-file.d.ts +0 -3
  450. package/dist/treedx/client/support/queries/treedx/repositories/queries/read-file.js +0 -9
  451. package/dist/treedx/client/support/queries/treedx/search/queries/get-search-index-status.d.ts +0 -3
  452. package/dist/treedx/client/support/queries/treedx/search/queries/get-search-index-status.js +0 -7
  453. package/dist/treedx/client/support/queries/treedx/storage/queries/get-migration.d.ts +0 -6
  454. package/dist/treedx/client/support/queries/treedx/storage/queries/get-migration.js +0 -7
  455. package/dist/treedx/client/support/queries/treedx/storage/queries/get-snapshot.d.ts +0 -6
  456. package/dist/treedx/client/support/queries/treedx/storage/queries/get-snapshot.js +0 -7
  457. package/dist/treedx/client/support/queries/treedx/storage/queries/list-storage-migrations.d.ts +0 -6
  458. package/dist/treedx/client/support/queries/treedx/storage/queries/list-storage-migrations.js +0 -6
  459. package/dist/treedx/client/support/queries/treedx/transport/queries/list-audit-events.d.ts +0 -15
  460. package/dist/treedx/client/support/queries/treedx/transport/queries/list-audit-events.js +0 -6
  461. package/dist/treedx/client/support/queries/treedx/transport/queries/list-repositories.d.ts +0 -3
  462. package/dist/treedx/client/support/queries/treedx/transport/queries/list-repositories.js +0 -7
  463. package/dist/treedx/client/support/retirement/cleanup-artifacts.d.ts +0 -3
  464. package/dist/treedx/client/support/retirement/cleanup-artifacts.js +0 -7
  465. package/dist/treedx/client/support/retirement/delete-artifact.d.ts +0 -3
  466. package/dist/treedx/client/support/retirement/delete-artifact.js +0 -7
  467. package/dist/treedx/client/support/retirement/delete-file.d.ts +0 -3
  468. package/dist/treedx/client/support/retirement/delete-file.js +0 -10
  469. package/dist/treedx/client/support/retirement/rollback-storage-migration.d.ts +0 -3
  470. package/dist/treedx/client/support/retirement/rollback-storage-migration.js +0 -7
  471. package/dist/treedx/client/support/updates/patch-file.d.ts +0 -3
  472. package/dist/treedx/client/support/updates/patch-file.js +0 -10
  473. package/dist/treedx/client/support/updates/refresh-search-index.d.ts +0 -3
  474. package/dist/treedx/client/support/updates/refresh-search-index.js +0 -8
  475. package/dist/treedx/client/treedx/blobs/contracts/download-blob.d.ts +0 -3
  476. package/dist/treedx/client/treedx/blobs/contracts/download-blob.js +0 -6
  477. package/dist/treedx/client/treedx/blobs/creation/create-blob-upload.d.ts +0 -3
  478. package/dist/treedx/client/treedx/blobs/creation/create-blob-upload.js +0 -8
  479. package/dist/treedx/client/treedx/blobs/creation/request-blob-download.d.ts +0 -3
  480. package/dist/treedx/client/treedx/blobs/creation/request-blob-download.js +0 -27
  481. package/dist/treedx/client/treedx/blobs/creation/request-blob-upload.d.ts +0 -3
  482. package/dist/treedx/client/treedx/blobs/creation/request-blob-upload.js +0 -41
  483. package/dist/treedx/client/treedx/blobs/creation/upload-blob-part.d.ts +0 -3
  484. package/dist/treedx/client/treedx/blobs/creation/upload-blob-part.js +0 -27
  485. package/dist/treedx/client/treedx/blobs/creation/upload-blob.d.ts +0 -3
  486. package/dist/treedx/client/treedx/blobs/creation/upload-blob.js +0 -6
  487. package/dist/treedx/client/treedx/blobs/creation/write-blob.d.ts +0 -3
  488. package/dist/treedx/client/treedx/blobs/creation/write-blob.js +0 -8
  489. package/dist/treedx/client/treedx/blobs/lifecycle/complete-blob-upload.d.ts +0 -3
  490. package/dist/treedx/client/treedx/blobs/lifecycle/complete-blob-upload.js +0 -8
  491. package/dist/treedx/client/treedx/blobs/queries/read-blob.d.ts +0 -3
  492. package/dist/treedx/client/treedx/blobs/queries/read-blob.js +0 -10
  493. package/dist/treedx/client/treedx/blobs/retirement/abort-blob-upload.d.ts +0 -3
  494. package/dist/treedx/client/treedx/blobs/retirement/abort-blob-upload.js +0 -7
  495. package/dist/treedx/client/treedx/blobs/retirement/delete-blob.d.ts +0 -3
  496. package/dist/treedx/client/treedx/blobs/retirement/delete-blob.js +0 -8
  497. package/dist/treedx/client/treedx/federation/contracts/federated-query.d.ts +0 -3
  498. package/dist/treedx/client/treedx/federation/contracts/federated-query.js +0 -7
  499. package/dist/treedx/client/treedx/federation/creation/plan-federated-query.d.ts +0 -3
  500. package/dist/treedx/client/treedx/federation/creation/plan-federated-query.js +0 -6
  501. package/dist/treedx/client/treedx/federation/queries/check-mirror-health.d.ts +0 -3
  502. package/dist/treedx/client/treedx/federation/queries/check-mirror-health.js +0 -7
  503. package/dist/treedx/client/treedx/federation/updates/promote-mirror.d.ts +0 -3
  504. package/dist/treedx/client/treedx/federation/updates/promote-mirror.js +0 -7
  505. package/dist/treedx/client/treedx/federation/updates/sync-mirror.d.ts +0 -3
  506. package/dist/treedx/client/treedx/federation/updates/sync-mirror.js +0 -7
  507. package/dist/treedx/client/treedx/graph/contracts/federated-context.d.ts +0 -3
  508. package/dist/treedx/client/treedx/graph/contracts/federated-context.js +0 -7
  509. package/dist/treedx/client/treedx/graph/contracts/federated-graph.d.ts +0 -3
  510. package/dist/treedx/client/treedx/graph/contracts/federated-graph.js +0 -7
  511. package/dist/treedx/client/treedx/graph/contracts/graph-search.d.ts +0 -3
  512. package/dist/treedx/client/treedx/graph/contracts/graph-search.js +0 -8
  513. package/dist/treedx/client/treedx/graph/queries/get-graph-node.d.ts +0 -3
  514. package/dist/treedx/client/treedx/graph/queries/get-graph-node.js +0 -10
  515. package/dist/treedx/client/treedx/graph/queries/get-graph-refresh-job.d.ts +0 -3
  516. package/dist/treedx/client/treedx/graph/queries/get-graph-refresh-job.js +0 -7
  517. package/dist/treedx/client/treedx/graph/queries/get-subgraph.d.ts +0 -3
  518. package/dist/treedx/client/treedx/graph/queries/get-subgraph.js +0 -7
  519. package/dist/treedx/client/treedx/graph/queries/query-graph.d.ts +0 -3
  520. package/dist/treedx/client/treedx/graph/queries/query-graph.js +0 -7
  521. package/dist/treedx/client/treedx/graph/queries/search-graph-entities.d.ts +0 -3
  522. package/dist/treedx/client/treedx/graph/queries/search-graph-entities.js +0 -6
  523. package/dist/treedx/client/treedx/graph/queries/search-graph-files.d.ts +0 -3
  524. package/dist/treedx/client/treedx/graph/queries/search-graph-files.js +0 -6
  525. package/dist/treedx/client/treedx/graph/queries/search-graph-sections.d.ts +0 -3
  526. package/dist/treedx/client/treedx/graph/queries/search-graph-sections.js +0 -6
  527. package/dist/treedx/client/treedx/graph/updates/refresh-graph.d.ts +0 -3
  528. package/dist/treedx/client/treedx/graph/updates/refresh-graph.js +0 -7
  529. package/dist/treedx/client/treedx/search/contracts/federated-search.d.ts +0 -3
  530. package/dist/treedx/client/treedx/search/contracts/federated-search.js +0 -7
  531. package/dist/treedx/client/treedx/workspaces/creation/create-workspace.d.ts +0 -3
  532. package/dist/treedx/client/treedx/workspaces/creation/create-workspace.js +0 -7
  533. package/dist/treedx/client/treedx/workspaces/retirement/abandon-workspace.d.ts +0 -3
  534. package/dist/treedx/client/treedx/workspaces/retirement/abandon-workspace.js +0 -12
  535. package/dist/treedx/client/treedx/workspaces/retirement/close-workspace.d.ts +0 -2
  536. package/dist/treedx/client/treedx/workspaces/retirement/close-workspace.js +0 -6
  537. package/dist/treedx/generated/openapi-types.d.ts +0 -3662
  538. package/dist/treedx/generated/openapi-types.js +0 -0
  539. package/dist/treedx/support/client.d.ts +0 -251
  540. package/dist/treedx/support/client.js +0 -252
  541. package/dist/treedx/support/errors.d.ts +0 -13
  542. package/dist/treedx/support/errors.js +0 -17
  543. package/dist/treedx/types/tree-dx-actor.d.ts +0 -209
  544. package/dist/treedx/types/tree-dx-actor.js +0 -8
  545. package/dist/treedx/types/tree-dx-artifact-list-response.d.ts +0 -13
  546. package/dist/treedx/types/tree-dx-artifact-list-response.js +0 -0
  547. package/dist/treedx/types/tree-dx-changeset.d.ts +0 -51
  548. package/dist/treedx/types/tree-dx-changeset.js +0 -6
  549. package/dist/treedx/types/tree-dx-context-request.d.ts +0 -245
  550. package/dist/treedx/types/tree-dx-context-request.js +0 -0
  551. package/dist/treedx/types/tree-dx-exec-result.d.ts +0 -249
  552. package/dist/treedx/types/tree-dx-exec-result.js +0 -0
  553. package/dist/treedx/types/tree-dx-list-tree-request.d.ts +0 -222
  554. package/dist/treedx/types/tree-dx-list-tree-request.js +0 -0
  555. package/dist/treedx/types/tree-dx-push-request.d.ts +0 -229
  556. package/dist/treedx/types/tree-dx-push-request.js +0 -0
  557. /package/dist/{agent-capacity/contracts/operations/workflow-promotion.js → site-contracts/cloudflare.js} +0 -0
  558. /package/dist/{agent-capacity/contracts/support/decision-work.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
+ region: string;
28
+ environment: "staging" | "production";
29
+ bucket: string;
30
+ deploymentId: string;
31
+ stackId: string;
32
+ connectionRef: 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
+ region: string;
42
+ environment: "staging" | "production";
43
+ bucket: string;
44
+ deploymentId: string;
45
+ stackId: string;
46
+ connectionRef: 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
+ region: string;
73
+ environment: "staging" | "production";
74
+ bucket: string;
75
+ deploymentId: string;
76
+ stackId: string;
77
+ connectionRef: 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
+ region: string;
88
+ environment: "staging" | "production";
89
+ bucket: string;
90
+ deploymentId: string;
91
+ stackId: string;
92
+ connectionRef: 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
+ region: string;
103
+ environment: "staging" | "production";
104
+ bucket: string;
105
+ deploymentId: string;
106
+ stackId: string;
107
+ connectionRef: 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
+ region: string;
118
+ environment: "staging" | "production";
119
+ bucket: string;
120
+ deploymentId: string;
121
+ stackId: string;
122
+ connectionRef: 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
+ region: string;
134
+ environment: "staging" | "production";
135
+ bucket: string;
136
+ deploymentId: string;
137
+ stackId: string;
138
+ connectionRef: 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
+ format: "tar+gzip";
154
+ source: string;
155
+ digest: string;
156
+ }, {
157
+ kind: "archive";
158
+ format: "tar+gzip";
159
+ source: string;
160
+ digest: string;
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
+ source: string;
169
+ digest: string;
170
+ mediaType: string;
171
+ }, {
172
+ kind: "file";
173
+ source: string;
174
+ digest: 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: "postgresql" | "admin-application" | "pages-application" | "dns-record" | "tls-policy" | "api-proxy" | "control-plane-api" | "operations-runner" | "treedx-service";
273
+ provider: "railway" | "cloudflare";
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: "postgresql" | "admin-application" | "pages-application" | "dns-record" | "tls-policy" | "api-proxy" | "control-plane-api" | "operations-runner" | "treedx-service";
295
+ provider: "railway" | "cloudflare";
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
+ commit: string;
329
+ repository: "treeseed-ai/platform";
330
+ }, {
331
+ commit: string;
332
+ repository: "treeseed-ai/platform";
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
+ format: "tar+gzip";
356
+ source: string;
357
+ digest: string;
358
+ }, {
359
+ kind: "archive";
360
+ format: "tar+gzip";
361
+ source: string;
362
+ digest: string;
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
+ source: string;
371
+ digest: string;
372
+ mediaType: string;
373
+ }, {
374
+ kind: "file";
375
+ source: string;
376
+ digest: 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: "postgresql" | "admin-application" | "pages-application" | "dns-record" | "tls-policy" | "api-proxy" | "control-plane-api" | "operations-runner" | "treedx-service";
459
+ provider: "railway" | "cloudflare";
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: "postgresql" | "admin-application" | "pages-application" | "dns-record" | "tls-policy" | "api-proxy" | "control-plane-api" | "operations-runner" | "treedx-service";
481
+ provider: "railway" | "cloudflare";
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
+ teamId: string;
506
+ platform: {
507
+ commit: string;
508
+ repository: "treeseed-ai/platform";
509
+ };
510
+ environment: "staging" | "production";
511
+ resources: {
512
+ kind: "postgresql" | "admin-application" | "pages-application" | "dns-record" | "tls-policy" | "api-proxy" | "control-plane-api" | "operations-runner" | "treedx-service";
513
+ provider: "railway" | "cloudflare";
514
+ id: string;
515
+ dependsOn: string[];
516
+ parameters: Record<string, {
517
+ input: string;
518
+ } | {
519
+ artifact: string;
520
+ } | {
521
+ resourceOutput: {
522
+ resourceId: string;
523
+ output: string;
524
+ };
525
+ } | {
526
+ literal: string | number | boolean;
527
+ }>;
528
+ adoption: {
529
+ mode: "adopt-or-create";
530
+ replacement: "forbidden";
531
+ externalIdInput?: string | undefined;
532
+ };
533
+ }[];
534
+ mutation: "agent-authorized";
535
+ artifacts: Record<string, {
536
+ kind: "archive";
537
+ format: "tar+gzip";
538
+ source: string;
539
+ digest: string;
540
+ } | {
541
+ kind: "file";
542
+ source: string;
543
+ digest: 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<"railway" | "cloudflare", {
556
+ connectionRef: string;
557
+ }>>;
558
+ }, {
559
+ id: string;
560
+ schemaVersion: "treeseed.hosted-topology/v1";
561
+ teamId: string;
562
+ platform: {
563
+ commit: string;
564
+ repository: "treeseed-ai/platform";
565
+ };
566
+ environment: "staging" | "production";
567
+ resources: {
568
+ kind: "postgresql" | "admin-application" | "pages-application" | "dns-record" | "tls-policy" | "api-proxy" | "control-plane-api" | "operations-runner" | "treedx-service";
569
+ provider: "railway" | "cloudflare";
570
+ id: string;
571
+ adoption: {
572
+ mode: "adopt-or-create";
573
+ replacement: "forbidden";
574
+ externalIdInput?: string | undefined;
575
+ };
576
+ dependsOn?: string[] | undefined;
577
+ parameters?: Record<string, {
578
+ input: string;
579
+ } | {
580
+ artifact: string;
581
+ } | {
582
+ resourceOutput: {
583
+ resourceId: string;
584
+ output: string;
585
+ };
586
+ } | {
587
+ literal: string | number | boolean;
588
+ }> | undefined;
589
+ }[];
590
+ mutation: "agent-authorized";
591
+ artifacts: Record<string, {
592
+ kind: "archive";
593
+ format: "tar+gzip";
594
+ source: string;
595
+ digest: string;
596
+ } | {
597
+ kind: "file";
598
+ source: string;
599
+ digest: 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<"railway" | "cloudflare", {
612
+ connectionRef: string;
613
+ }>>;
614
+ }>, {
615
+ id: string;
616
+ schemaVersion: "treeseed.hosted-topology/v1";
617
+ teamId: string;
618
+ platform: {
619
+ commit: string;
620
+ repository: "treeseed-ai/platform";
621
+ };
622
+ environment: "staging" | "production";
623
+ resources: {
624
+ kind: "postgresql" | "admin-application" | "pages-application" | "dns-record" | "tls-policy" | "api-proxy" | "control-plane-api" | "operations-runner" | "treedx-service";
625
+ provider: "railway" | "cloudflare";
626
+ id: string;
627
+ dependsOn: string[];
628
+ parameters: Record<string, {
629
+ input: string;
630
+ } | {
631
+ artifact: string;
632
+ } | {
633
+ resourceOutput: {
634
+ resourceId: string;
635
+ output: string;
636
+ };
637
+ } | {
638
+ literal: string | number | boolean;
639
+ }>;
640
+ adoption: {
641
+ mode: "adopt-or-create";
642
+ replacement: "forbidden";
643
+ externalIdInput?: string | undefined;
644
+ };
645
+ }[];
646
+ mutation: "agent-authorized";
647
+ artifacts: Record<string, {
648
+ kind: "archive";
649
+ format: "tar+gzip";
650
+ source: string;
651
+ digest: string;
652
+ } | {
653
+ kind: "file";
654
+ source: string;
655
+ digest: 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<"railway" | "cloudflare", {
668
+ connectionRef: string;
669
+ }>>;
670
+ }, {
671
+ id: string;
672
+ schemaVersion: "treeseed.hosted-topology/v1";
673
+ teamId: string;
674
+ platform: {
675
+ commit: string;
676
+ repository: "treeseed-ai/platform";
677
+ };
678
+ environment: "staging" | "production";
679
+ resources: {
680
+ kind: "postgresql" | "admin-application" | "pages-application" | "dns-record" | "tls-policy" | "api-proxy" | "control-plane-api" | "operations-runner" | "treedx-service";
681
+ provider: "railway" | "cloudflare";
682
+ id: string;
683
+ adoption: {
684
+ mode: "adopt-or-create";
685
+ replacement: "forbidden";
686
+ externalIdInput?: string | undefined;
687
+ };
688
+ dependsOn?: string[] | undefined;
689
+ parameters?: Record<string, {
690
+ input: string;
691
+ } | {
692
+ artifact: string;
693
+ } | {
694
+ resourceOutput: {
695
+ resourceId: string;
696
+ output: string;
697
+ };
698
+ } | {
699
+ literal: string | number | boolean;
700
+ }> | undefined;
701
+ }[];
702
+ mutation: "agent-authorized";
703
+ artifacts: Record<string, {
704
+ kind: "archive";
705
+ format: "tar+gzip";
706
+ source: string;
707
+ digest: string;
708
+ } | {
709
+ kind: "file";
710
+ source: string;
711
+ digest: 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<"railway" | "cloudflare", {
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: "postgresql" | "admin-application" | "pages-application" | "dns-record" | "tls-policy" | "api-proxy" | "control-plane-api" | "operations-runner" | "treedx-service";
738
+ provider: "railway" | "cloudflare";
739
+ state: "degraded" | "missing" | "healthy";
740
+ observedAt: string;
741
+ resourceId: string;
742
+ providerResourceId: string | null;
743
+ managedBy: "external" | "treeseed" | null;
744
+ observedDigest: string | null;
745
+ }, {
746
+ kind: "postgresql" | "admin-application" | "pages-application" | "dns-record" | "tls-policy" | "api-proxy" | "control-plane-api" | "operations-runner" | "treedx-service";
747
+ provider: "railway" | "cloudflare";
748
+ state: "degraded" | "missing" | "healthy";
749
+ observedAt: string;
750
+ resourceId: string;
751
+ providerResourceId: string | null;
752
+ managedBy: "external" | "treeseed" | null;
753
+ observedDigest: string | null;
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
+ region: string;
788
+ environment: "staging" | "production";
789
+ bucket: string;
790
+ deploymentId: string;
791
+ stackId: string;
792
+ connectionRef: 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
+ region: string;
803
+ environment: "staging" | "production";
804
+ bucket: string;
805
+ deploymentId: string;
806
+ stackId: string;
807
+ connectionRef: 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
+ region: string;
818
+ environment: "staging" | "production";
819
+ bucket: string;
820
+ deploymentId: string;
821
+ stackId: string;
822
+ connectionRef: 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
+ region: string;
833
+ environment: "staging" | "production";
834
+ bucket: string;
835
+ deploymentId: string;
836
+ stackId: string;
837
+ connectionRef: 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
+ format: "tar+gzip";
851
+ source: string;
852
+ digest: string;
853
+ }, {
854
+ kind: "archive";
855
+ format: "tar+gzip";
856
+ source: string;
857
+ digest: string;
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
+ source: string;
866
+ digest: string;
867
+ mediaType: string;
868
+ }, {
869
+ kind: "file";
870
+ source: string;
871
+ digest: 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: "postgresql" | "admin-application" | "pages-application" | "dns-record" | "tls-policy" | "api-proxy" | "control-plane-api" | "operations-runner" | "treedx-service";
975
+ provider: "railway" | "cloudflare";
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: "postgresql" | "admin-application" | "pages-application" | "dns-record" | "tls-policy" | "api-proxy" | "control-plane-api" | "operations-runner" | "treedx-service";
997
+ provider: "railway" | "cloudflare";
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: "postgresql" | "admin-application" | "pages-application" | "dns-record" | "tls-policy" | "api-proxy" | "control-plane-api" | "operations-runner" | "treedx-service";
1023
+ provider: "railway" | "cloudflare";
1024
+ action: "create" | "update" | "noop" | "adopt";
1025
+ resourceId: string;
1026
+ providerResourceId: string | null;
1027
+ desiredResource: {
1028
+ kind: "postgresql" | "admin-application" | "pages-application" | "dns-record" | "tls-policy" | "api-proxy" | "control-plane-api" | "operations-runner" | "treedx-service";
1029
+ provider: "railway" | "cloudflare";
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: "postgresql" | "admin-application" | "pages-application" | "dns-record" | "tls-policy" | "api-proxy" | "control-plane-api" | "operations-runner" | "treedx-service";
1054
+ provider: "railway" | "cloudflare";
1055
+ action: "create" | "update" | "noop" | "adopt";
1056
+ resourceId: string;
1057
+ providerResourceId: string | null;
1058
+ desiredResource: {
1059
+ kind: "postgresql" | "admin-application" | "pages-application" | "dns-record" | "tls-policy" | "api-proxy" | "control-plane-api" | "operations-runner" | "treedx-service";
1060
+ provider: "railway" | "cloudflare";
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
+ teamId: string;
1102
+ environment: "staging" | "production";
1103
+ blockers: {
1104
+ code: "connection-unavailable" | "state-backend-unavailable" | "dependency-cycle" | "observation-unhealthy" | "adoption-drift";
1105
+ message: string;
1106
+ resourceId?: string | undefined;
1107
+ }[];
1108
+ planDigest: string;
1109
+ actions: {
1110
+ kind: "postgresql" | "admin-application" | "pages-application" | "dns-record" | "tls-policy" | "api-proxy" | "control-plane-api" | "operations-runner" | "treedx-service";
1111
+ provider: "railway" | "cloudflare";
1112
+ action: "create" | "update" | "noop" | "adopt";
1113
+ resourceId: string;
1114
+ providerResourceId: string | null;
1115
+ desiredResource: {
1116
+ kind: "postgresql" | "admin-application" | "pages-application" | "dns-record" | "tls-policy" | "api-proxy" | "control-plane-api" | "operations-runner" | "treedx-service";
1117
+ provider: "railway" | "cloudflare";
1118
+ id: string;
1119
+ dependsOn: string[];
1120
+ parameters: Record<string, {
1121
+ input: string;
1122
+ } | {
1123
+ artifact: string;
1124
+ } | {
1125
+ resourceOutput: {
1126
+ resourceId: string;
1127
+ output: string;
1128
+ };
1129
+ } | {
1130
+ literal: string | number | boolean;
1131
+ }>;
1132
+ adoption: {
1133
+ mode: "adopt-or-create";
1134
+ replacement: "forbidden";
1135
+ externalIdInput?: string | undefined;
1136
+ };
1137
+ };
1138
+ desiredDigest: string;
1139
+ previousDigest: string | null;
1140
+ }[];
1141
+ executable: false;
1142
+ artifacts: Record<string, {
1143
+ kind: "archive";
1144
+ format: "tar+gzip";
1145
+ source: string;
1146
+ digest: string;
1147
+ } | {
1148
+ kind: "file";
1149
+ source: string;
1150
+ digest: 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
+ region: string;
1166
+ environment: "staging" | "production";
1167
+ bucket: string;
1168
+ deploymentId: string;
1169
+ stackId: string;
1170
+ connectionRef: string;
1171
+ encryptionKeyRef: string;
1172
+ bindingDigest: string;
1173
+ endpoint?: string | undefined;
1174
+ usePathStyle?: boolean | undefined;
1175
+ } | null;
1176
+ providerConnections: Partial<Record<"railway" | "cloudflare", {
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
+ teamId: string;
1187
+ environment: "staging" | "production";
1188
+ blockers: {
1189
+ code: "connection-unavailable" | "state-backend-unavailable" | "dependency-cycle" | "observation-unhealthy" | "adoption-drift";
1190
+ message: string;
1191
+ resourceId?: string | undefined;
1192
+ }[];
1193
+ planDigest: string;
1194
+ actions: {
1195
+ kind: "postgresql" | "admin-application" | "pages-application" | "dns-record" | "tls-policy" | "api-proxy" | "control-plane-api" | "operations-runner" | "treedx-service";
1196
+ provider: "railway" | "cloudflare";
1197
+ action: "create" | "update" | "noop" | "adopt";
1198
+ resourceId: string;
1199
+ providerResourceId: string | null;
1200
+ desiredResource: {
1201
+ kind: "postgresql" | "admin-application" | "pages-application" | "dns-record" | "tls-policy" | "api-proxy" | "control-plane-api" | "operations-runner" | "treedx-service";
1202
+ provider: "railway" | "cloudflare";
1203
+ id: string;
1204
+ adoption: {
1205
+ mode: "adopt-or-create";
1206
+ replacement: "forbidden";
1207
+ externalIdInput?: string | undefined;
1208
+ };
1209
+ dependsOn?: string[] | undefined;
1210
+ parameters?: Record<string, {
1211
+ input: string;
1212
+ } | {
1213
+ artifact: string;
1214
+ } | {
1215
+ resourceOutput: {
1216
+ resourceId: string;
1217
+ output: string;
1218
+ };
1219
+ } | {
1220
+ literal: string | number | boolean;
1221
+ }> | undefined;
1222
+ };
1223
+ desiredDigest: string;
1224
+ previousDigest: string | null;
1225
+ }[];
1226
+ executable: false;
1227
+ artifacts: Record<string, {
1228
+ kind: "archive";
1229
+ format: "tar+gzip";
1230
+ source: string;
1231
+ digest: string;
1232
+ } | {
1233
+ kind: "file";
1234
+ source: string;
1235
+ digest: 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
+ region: string;
1251
+ environment: "staging" | "production";
1252
+ bucket: string;
1253
+ deploymentId: string;
1254
+ stackId: string;
1255
+ connectionRef: string;
1256
+ encryptionKeyRef: string;
1257
+ bindingDigest: string;
1258
+ endpoint?: string | undefined;
1259
+ usePathStyle?: boolean | undefined;
1260
+ } | null;
1261
+ providerConnections: Partial<Record<"railway" | "cloudflare", {
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
+ teamId: string;
1272
+ environment: "staging" | "production";
1273
+ blockers: {
1274
+ code: "connection-unavailable" | "state-backend-unavailable" | "dependency-cycle" | "observation-unhealthy" | "adoption-drift";
1275
+ message: string;
1276
+ resourceId?: string | undefined;
1277
+ }[];
1278
+ planDigest: string;
1279
+ actions: {
1280
+ kind: "postgresql" | "admin-application" | "pages-application" | "dns-record" | "tls-policy" | "api-proxy" | "control-plane-api" | "operations-runner" | "treedx-service";
1281
+ provider: "railway" | "cloudflare";
1282
+ action: "create" | "update" | "noop" | "adopt";
1283
+ resourceId: string;
1284
+ providerResourceId: string | null;
1285
+ desiredResource: {
1286
+ kind: "postgresql" | "admin-application" | "pages-application" | "dns-record" | "tls-policy" | "api-proxy" | "control-plane-api" | "operations-runner" | "treedx-service";
1287
+ provider: "railway" | "cloudflare";
1288
+ id: string;
1289
+ dependsOn: string[];
1290
+ parameters: Record<string, {
1291
+ input: string;
1292
+ } | {
1293
+ artifact: string;
1294
+ } | {
1295
+ resourceOutput: {
1296
+ resourceId: string;
1297
+ output: string;
1298
+ };
1299
+ } | {
1300
+ literal: string | number | boolean;
1301
+ }>;
1302
+ adoption: {
1303
+ mode: "adopt-or-create";
1304
+ replacement: "forbidden";
1305
+ externalIdInput?: string | undefined;
1306
+ };
1307
+ };
1308
+ desiredDigest: string;
1309
+ previousDigest: string | null;
1310
+ }[];
1311
+ executable: false;
1312
+ artifacts: Record<string, {
1313
+ kind: "archive";
1314
+ format: "tar+gzip";
1315
+ source: string;
1316
+ digest: string;
1317
+ } | {
1318
+ kind: "file";
1319
+ source: string;
1320
+ digest: 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
+ region: string;
1336
+ environment: "staging" | "production";
1337
+ bucket: string;
1338
+ deploymentId: string;
1339
+ stackId: string;
1340
+ connectionRef: string;
1341
+ encryptionKeyRef: string;
1342
+ bindingDigest: string;
1343
+ endpoint?: string | undefined;
1344
+ usePathStyle?: boolean | undefined;
1345
+ } | null;
1346
+ providerConnections: Partial<Record<"railway" | "cloudflare", {
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
+ teamId: string;
1357
+ environment: "staging" | "production";
1358
+ blockers: {
1359
+ code: "connection-unavailable" | "state-backend-unavailable" | "dependency-cycle" | "observation-unhealthy" | "adoption-drift";
1360
+ message: string;
1361
+ resourceId?: string | undefined;
1362
+ }[];
1363
+ planDigest: string;
1364
+ actions: {
1365
+ kind: "postgresql" | "admin-application" | "pages-application" | "dns-record" | "tls-policy" | "api-proxy" | "control-plane-api" | "operations-runner" | "treedx-service";
1366
+ provider: "railway" | "cloudflare";
1367
+ action: "create" | "update" | "noop" | "adopt";
1368
+ resourceId: string;
1369
+ providerResourceId: string | null;
1370
+ desiredResource: {
1371
+ kind: "postgresql" | "admin-application" | "pages-application" | "dns-record" | "tls-policy" | "api-proxy" | "control-plane-api" | "operations-runner" | "treedx-service";
1372
+ provider: "railway" | "cloudflare";
1373
+ id: string;
1374
+ adoption: {
1375
+ mode: "adopt-or-create";
1376
+ replacement: "forbidden";
1377
+ externalIdInput?: string | undefined;
1378
+ };
1379
+ dependsOn?: string[] | undefined;
1380
+ parameters?: Record<string, {
1381
+ input: string;
1382
+ } | {
1383
+ artifact: string;
1384
+ } | {
1385
+ resourceOutput: {
1386
+ resourceId: string;
1387
+ output: string;
1388
+ };
1389
+ } | {
1390
+ literal: string | number | boolean;
1391
+ }> | undefined;
1392
+ };
1393
+ desiredDigest: string;
1394
+ previousDigest: string | null;
1395
+ }[];
1396
+ executable: false;
1397
+ artifacts: Record<string, {
1398
+ kind: "archive";
1399
+ format: "tar+gzip";
1400
+ source: string;
1401
+ digest: string;
1402
+ } | {
1403
+ kind: "file";
1404
+ source: string;
1405
+ digest: 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
+ region: string;
1421
+ environment: "staging" | "production";
1422
+ bucket: string;
1423
+ deploymentId: string;
1424
+ stackId: string;
1425
+ connectionRef: string;
1426
+ encryptionKeyRef: string;
1427
+ bindingDigest: string;
1428
+ endpoint?: string | undefined;
1429
+ usePathStyle?: boolean | undefined;
1430
+ } | null;
1431
+ providerConnections: Partial<Record<"railway" | "cloudflare", {
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
+ region: string;
1474
+ environment: "staging" | "production";
1475
+ bucket: string;
1476
+ deploymentId: string;
1477
+ stackId: string;
1478
+ connectionRef: 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
+ region: string;
1489
+ environment: "staging" | "production";
1490
+ bucket: string;
1491
+ deploymentId: string;
1492
+ stackId: string;
1493
+ connectionRef: 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
+ region: string;
1504
+ environment: "staging" | "production";
1505
+ bucket: string;
1506
+ deploymentId: string;
1507
+ stackId: string;
1508
+ connectionRef: 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
+ region: string;
1519
+ environment: "staging" | "production";
1520
+ bucket: string;
1521
+ deploymentId: string;
1522
+ stackId: string;
1523
+ connectionRef: 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
+ format: "tar+gzip";
1537
+ source: string;
1538
+ digest: string;
1539
+ }, {
1540
+ kind: "archive";
1541
+ format: "tar+gzip";
1542
+ source: string;
1543
+ digest: string;
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
+ source: string;
1552
+ digest: string;
1553
+ mediaType: string;
1554
+ }, {
1555
+ kind: "file";
1556
+ source: string;
1557
+ digest: 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: "postgresql" | "admin-application" | "pages-application" | "dns-record" | "tls-policy" | "api-proxy" | "control-plane-api" | "operations-runner" | "treedx-service";
1661
+ provider: "railway" | "cloudflare";
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: "postgresql" | "admin-application" | "pages-application" | "dns-record" | "tls-policy" | "api-proxy" | "control-plane-api" | "operations-runner" | "treedx-service";
1683
+ provider: "railway" | "cloudflare";
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: "postgresql" | "admin-application" | "pages-application" | "dns-record" | "tls-policy" | "api-proxy" | "control-plane-api" | "operations-runner" | "treedx-service";
1709
+ provider: "railway" | "cloudflare";
1710
+ action: "create" | "update" | "noop" | "adopt";
1711
+ resourceId: string;
1712
+ providerResourceId: string | null;
1713
+ desiredResource: {
1714
+ kind: "postgresql" | "admin-application" | "pages-application" | "dns-record" | "tls-policy" | "api-proxy" | "control-plane-api" | "operations-runner" | "treedx-service";
1715
+ provider: "railway" | "cloudflare";
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: "postgresql" | "admin-application" | "pages-application" | "dns-record" | "tls-policy" | "api-proxy" | "control-plane-api" | "operations-runner" | "treedx-service";
1740
+ provider: "railway" | "cloudflare";
1741
+ action: "create" | "update" | "noop" | "adopt";
1742
+ resourceId: string;
1743
+ providerResourceId: string | null;
1744
+ desiredResource: {
1745
+ kind: "postgresql" | "admin-application" | "pages-application" | "dns-record" | "tls-policy" | "api-proxy" | "control-plane-api" | "operations-runner" | "treedx-service";
1746
+ provider: "railway" | "cloudflare";
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
+ teamId: string;
1787
+ environment: "staging" | "production";
1788
+ blockers: {
1789
+ code: "connection-unavailable" | "state-backend-unavailable" | "dependency-cycle" | "observation-unhealthy" | "adoption-drift";
1790
+ message: string;
1791
+ resourceId?: string | undefined;
1792
+ }[];
1793
+ planDigest: string;
1794
+ actions: {
1795
+ kind: "postgresql" | "admin-application" | "pages-application" | "dns-record" | "tls-policy" | "api-proxy" | "control-plane-api" | "operations-runner" | "treedx-service";
1796
+ provider: "railway" | "cloudflare";
1797
+ action: "create" | "update" | "noop" | "adopt";
1798
+ resourceId: string;
1799
+ providerResourceId: string | null;
1800
+ desiredResource: {
1801
+ kind: "postgresql" | "admin-application" | "pages-application" | "dns-record" | "tls-policy" | "api-proxy" | "control-plane-api" | "operations-runner" | "treedx-service";
1802
+ provider: "railway" | "cloudflare";
1803
+ id: string;
1804
+ dependsOn: string[];
1805
+ parameters: Record<string, {
1806
+ input: string;
1807
+ } | {
1808
+ artifact: string;
1809
+ } | {
1810
+ resourceOutput: {
1811
+ resourceId: string;
1812
+ output: string;
1813
+ };
1814
+ } | {
1815
+ literal: string | number | boolean;
1816
+ }>;
1817
+ adoption: {
1818
+ mode: "adopt-or-create";
1819
+ replacement: "forbidden";
1820
+ externalIdInput?: string | undefined;
1821
+ };
1822
+ };
1823
+ desiredDigest: string;
1824
+ previousDigest: string | null;
1825
+ }[];
1826
+ executable: true;
1827
+ artifacts: Record<string, {
1828
+ kind: "archive";
1829
+ format: "tar+gzip";
1830
+ source: string;
1831
+ digest: string;
1832
+ } | {
1833
+ kind: "file";
1834
+ source: string;
1835
+ digest: 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
+ region: string;
1851
+ environment: "staging" | "production";
1852
+ bucket: string;
1853
+ deploymentId: string;
1854
+ stackId: string;
1855
+ connectionRef: string;
1856
+ encryptionKeyRef: string;
1857
+ bindingDigest: string;
1858
+ endpoint?: string | undefined;
1859
+ usePathStyle?: boolean | undefined;
1860
+ } | null;
1861
+ providerConnections: Partial<Record<"railway" | "cloudflare", {
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
+ teamId: string;
1872
+ environment: "staging" | "production";
1873
+ blockers: {
1874
+ code: "connection-unavailable" | "state-backend-unavailable" | "dependency-cycle" | "observation-unhealthy" | "adoption-drift";
1875
+ message: string;
1876
+ resourceId?: string | undefined;
1877
+ }[];
1878
+ planDigest: string;
1879
+ actions: {
1880
+ kind: "postgresql" | "admin-application" | "pages-application" | "dns-record" | "tls-policy" | "api-proxy" | "control-plane-api" | "operations-runner" | "treedx-service";
1881
+ provider: "railway" | "cloudflare";
1882
+ action: "create" | "update" | "noop" | "adopt";
1883
+ resourceId: string;
1884
+ providerResourceId: string | null;
1885
+ desiredResource: {
1886
+ kind: "postgresql" | "admin-application" | "pages-application" | "dns-record" | "tls-policy" | "api-proxy" | "control-plane-api" | "operations-runner" | "treedx-service";
1887
+ provider: "railway" | "cloudflare";
1888
+ id: string;
1889
+ adoption: {
1890
+ mode: "adopt-or-create";
1891
+ replacement: "forbidden";
1892
+ externalIdInput?: string | undefined;
1893
+ };
1894
+ dependsOn?: string[] | undefined;
1895
+ parameters?: Record<string, {
1896
+ input: string;
1897
+ } | {
1898
+ artifact: string;
1899
+ } | {
1900
+ resourceOutput: {
1901
+ resourceId: string;
1902
+ output: string;
1903
+ };
1904
+ } | {
1905
+ literal: string | number | boolean;
1906
+ }> | undefined;
1907
+ };
1908
+ desiredDigest: string;
1909
+ previousDigest: string | null;
1910
+ }[];
1911
+ executable: true;
1912
+ artifacts: Record<string, {
1913
+ kind: "archive";
1914
+ format: "tar+gzip";
1915
+ source: string;
1916
+ digest: string;
1917
+ } | {
1918
+ kind: "file";
1919
+ source: string;
1920
+ digest: 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
+ region: string;
1936
+ environment: "staging" | "production";
1937
+ bucket: string;
1938
+ deploymentId: string;
1939
+ stackId: string;
1940
+ connectionRef: string;
1941
+ encryptionKeyRef: string;
1942
+ bindingDigest: string;
1943
+ endpoint?: string | undefined;
1944
+ usePathStyle?: boolean | undefined;
1945
+ } | null;
1946
+ providerConnections: Partial<Record<"railway" | "cloudflare", {
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
+ teamId: string;
1957
+ environment: "staging" | "production";
1958
+ blockers: {
1959
+ code: "connection-unavailable" | "state-backend-unavailable" | "dependency-cycle" | "observation-unhealthy" | "adoption-drift";
1960
+ message: string;
1961
+ resourceId?: string | undefined;
1962
+ }[];
1963
+ planDigest: string;
1964
+ actions: {
1965
+ kind: "postgresql" | "admin-application" | "pages-application" | "dns-record" | "tls-policy" | "api-proxy" | "control-plane-api" | "operations-runner" | "treedx-service";
1966
+ provider: "railway" | "cloudflare";
1967
+ action: "create" | "update" | "noop" | "adopt";
1968
+ resourceId: string;
1969
+ providerResourceId: string | null;
1970
+ desiredResource: {
1971
+ kind: "postgresql" | "admin-application" | "pages-application" | "dns-record" | "tls-policy" | "api-proxy" | "control-plane-api" | "operations-runner" | "treedx-service";
1972
+ provider: "railway" | "cloudflare";
1973
+ id: string;
1974
+ dependsOn: string[];
1975
+ parameters: Record<string, {
1976
+ input: string;
1977
+ } | {
1978
+ artifact: string;
1979
+ } | {
1980
+ resourceOutput: {
1981
+ resourceId: string;
1982
+ output: string;
1983
+ };
1984
+ } | {
1985
+ literal: string | number | boolean;
1986
+ }>;
1987
+ adoption: {
1988
+ mode: "adopt-or-create";
1989
+ replacement: "forbidden";
1990
+ externalIdInput?: string | undefined;
1991
+ };
1992
+ };
1993
+ desiredDigest: string;
1994
+ previousDigest: string | null;
1995
+ }[];
1996
+ executable: true;
1997
+ artifacts: Record<string, {
1998
+ kind: "archive";
1999
+ format: "tar+gzip";
2000
+ source: string;
2001
+ digest: string;
2002
+ } | {
2003
+ kind: "file";
2004
+ source: string;
2005
+ digest: 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
+ region: string;
2021
+ environment: "staging" | "production";
2022
+ bucket: string;
2023
+ deploymentId: string;
2024
+ stackId: string;
2025
+ connectionRef: string;
2026
+ encryptionKeyRef: string;
2027
+ bindingDigest: string;
2028
+ endpoint?: string | undefined;
2029
+ usePathStyle?: boolean | undefined;
2030
+ } | null;
2031
+ providerConnections: Partial<Record<"railway" | "cloudflare", {
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
+ teamId: string;
2042
+ environment: "staging" | "production";
2043
+ blockers: {
2044
+ code: "connection-unavailable" | "state-backend-unavailable" | "dependency-cycle" | "observation-unhealthy" | "adoption-drift";
2045
+ message: string;
2046
+ resourceId?: string | undefined;
2047
+ }[];
2048
+ planDigest: string;
2049
+ actions: {
2050
+ kind: "postgresql" | "admin-application" | "pages-application" | "dns-record" | "tls-policy" | "api-proxy" | "control-plane-api" | "operations-runner" | "treedx-service";
2051
+ provider: "railway" | "cloudflare";
2052
+ action: "create" | "update" | "noop" | "adopt";
2053
+ resourceId: string;
2054
+ providerResourceId: string | null;
2055
+ desiredResource: {
2056
+ kind: "postgresql" | "admin-application" | "pages-application" | "dns-record" | "tls-policy" | "api-proxy" | "control-plane-api" | "operations-runner" | "treedx-service";
2057
+ provider: "railway" | "cloudflare";
2058
+ id: string;
2059
+ adoption: {
2060
+ mode: "adopt-or-create";
2061
+ replacement: "forbidden";
2062
+ externalIdInput?: string | undefined;
2063
+ };
2064
+ dependsOn?: string[] | undefined;
2065
+ parameters?: Record<string, {
2066
+ input: string;
2067
+ } | {
2068
+ artifact: string;
2069
+ } | {
2070
+ resourceOutput: {
2071
+ resourceId: string;
2072
+ output: string;
2073
+ };
2074
+ } | {
2075
+ literal: string | number | boolean;
2076
+ }> | undefined;
2077
+ };
2078
+ desiredDigest: string;
2079
+ previousDigest: string | null;
2080
+ }[];
2081
+ executable: true;
2082
+ artifacts: Record<string, {
2083
+ kind: "archive";
2084
+ format: "tar+gzip";
2085
+ source: string;
2086
+ digest: string;
2087
+ } | {
2088
+ kind: "file";
2089
+ source: string;
2090
+ digest: 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
+ region: string;
2106
+ environment: "staging" | "production";
2107
+ bucket: string;
2108
+ deploymentId: string;
2109
+ stackId: string;
2110
+ connectionRef: string;
2111
+ encryptionKeyRef: string;
2112
+ bindingDigest: string;
2113
+ endpoint?: string | undefined;
2114
+ usePathStyle?: boolean | undefined;
2115
+ } | null;
2116
+ providerConnections: Partial<Record<"railway" | "cloudflare", {
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: "postgresql" | "admin-application" | "pages-application" | "dns-record" | "tls-policy" | "api-proxy" | "control-plane-api" | "operations-runner" | "treedx-service";
2148
+ provider: "railway" | "cloudflare";
2149
+ state: "degraded" | "missing" | "healthy";
2150
+ observedAt: string;
2151
+ resourceId: string;
2152
+ providerResourceId: string | null;
2153
+ managedBy: "external" | "treeseed" | null;
2154
+ observedDigest: string | null;
2155
+ }, {
2156
+ kind: "postgresql" | "admin-application" | "pages-application" | "dns-record" | "tls-policy" | "api-proxy" | "control-plane-api" | "operations-runner" | "treedx-service";
2157
+ provider: "railway" | "cloudflare";
2158
+ state: "degraded" | "missing" | "healthy";
2159
+ observedAt: string;
2160
+ resourceId: string;
2161
+ providerResourceId: string | null;
2162
+ managedBy: "external" | "treeseed" | null;
2163
+ observedDigest: string | null;
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: "postgresql" | "admin-application" | "pages-application" | "dns-record" | "tls-policy" | "api-proxy" | "control-plane-api" | "operations-runner" | "treedx-service";
2176
+ provider: "railway" | "cloudflare";
2177
+ state: "degraded" | "missing" | "healthy";
2178
+ observedAt: string;
2179
+ resourceId: string;
2180
+ providerResourceId: string | null;
2181
+ managedBy: "external" | "treeseed" | null;
2182
+ observedDigest: string | null;
2183
+ }, {
2184
+ kind: "postgresql" | "admin-application" | "pages-application" | "dns-record" | "tls-policy" | "api-proxy" | "control-plane-api" | "operations-runner" | "treedx-service";
2185
+ provider: "railway" | "cloudflare";
2186
+ state: "degraded" | "missing" | "healthy";
2187
+ observedAt: string;
2188
+ resourceId: string;
2189
+ providerResourceId: string | null;
2190
+ managedBy: "external" | "treeseed" | null;
2191
+ observedDigest: string | null;
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
+ teamId: string;
2199
+ environment: "staging" | "production";
2200
+ completedAt: string;
2201
+ resources: {
2202
+ kind: "postgresql" | "admin-application" | "pages-application" | "dns-record" | "tls-policy" | "api-proxy" | "control-plane-api" | "operations-runner" | "treedx-service";
2203
+ provider: "railway" | "cloudflare";
2204
+ state: "degraded" | "missing" | "healthy";
2205
+ observedAt: string;
2206
+ resourceId: string;
2207
+ providerResourceId: string | null;
2208
+ managedBy: "external" | "treeseed" | null;
2209
+ observedDigest: string | null;
2210
+ }[];
2211
+ planDigest: 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: "postgresql" | "admin-application" | "pages-application" | "dns-record" | "tls-policy" | "api-proxy" | "control-plane-api" | "operations-runner" | "treedx-service";
2221
+ provider: "railway" | "cloudflare";
2222
+ state: "degraded" | "missing" | "healthy";
2223
+ observedAt: string;
2224
+ resourceId: string;
2225
+ providerResourceId: string | null;
2226
+ managedBy: "external" | "treeseed" | null;
2227
+ observedDigest: string | null;
2228
+ }[];
2229
+ }, {
2230
+ state: "known-good";
2231
+ schemaVersion: "treeseed.hosted-topology-receipt/v1";
2232
+ teamId: string;
2233
+ environment: "staging" | "production";
2234
+ completedAt: string;
2235
+ resources: {
2236
+ kind: "postgresql" | "admin-application" | "pages-application" | "dns-record" | "tls-policy" | "api-proxy" | "control-plane-api" | "operations-runner" | "treedx-service";
2237
+ provider: "railway" | "cloudflare";
2238
+ state: "degraded" | "missing" | "healthy";
2239
+ observedAt: string;
2240
+ resourceId: string;
2241
+ providerResourceId: string | null;
2242
+ managedBy: "external" | "treeseed" | null;
2243
+ observedDigest: string | null;
2244
+ }[];
2245
+ planDigest: 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: "postgresql" | "admin-application" | "pages-application" | "dns-record" | "tls-policy" | "api-proxy" | "control-plane-api" | "operations-runner" | "treedx-service";
2255
+ provider: "railway" | "cloudflare";
2256
+ state: "degraded" | "missing" | "healthy";
2257
+ observedAt: string;
2258
+ resourceId: string;
2259
+ providerResourceId: string | null;
2260
+ managedBy: "external" | "treeseed" | null;
2261
+ observedDigest: string | null;
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
+ operations: {
2294
+ action: "noop" | "restore" | "delete-created";
2295
+ resourceId: string;
2296
+ providerResourceId: string;
2297
+ targetDigest: string | null;
2298
+ }[];
2299
+ environment: "staging" | "production";
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
+ operations: {
2310
+ action: "noop" | "restore" | "delete-created";
2311
+ resourceId: string;
2312
+ providerResourceId: string;
2313
+ targetDigest: string | null;
2314
+ }[];
2315
+ environment: "staging" | "production";
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
+ operations: {
2326
+ action: "noop" | "restore" | "delete-created";
2327
+ resourceId: string;
2328
+ providerResourceId: string;
2329
+ targetDigest: string | null;
2330
+ }[];
2331
+ environment: "staging" | "production";
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
+ operations: {
2342
+ action: "noop" | "restore" | "delete-created";
2343
+ resourceId: string;
2344
+ providerResourceId: string;
2345
+ targetDigest: string | null;
2346
+ }[];
2347
+ environment: "staging" | "production";
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
+ operations: {
2387
+ action: "noop" | "restore" | "delete-created";
2388
+ resourceId: string;
2389
+ providerResourceId: string;
2390
+ targetDigest: string | null;
2391
+ }[];
2392
+ environment: "staging" | "production";
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
+ operations: {
2403
+ action: "noop" | "restore" | "delete-created";
2404
+ resourceId: string;
2405
+ providerResourceId: string;
2406
+ targetDigest: string | null;
2407
+ }[];
2408
+ environment: "staging" | "production";
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
+ operations: {
2419
+ action: "noop" | "restore" | "delete-created";
2420
+ resourceId: string;
2421
+ providerResourceId: string;
2422
+ targetDigest: string | null;
2423
+ }[];
2424
+ environment: "staging" | "production";
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
+ operations: {
2435
+ action: "noop" | "restore" | "delete-created";
2436
+ resourceId: string;
2437
+ providerResourceId: string;
2438
+ targetDigest: string | null;
2439
+ }[];
2440
+ environment: "staging" | "production";
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: "staging" | "production";
2462
+ rollback: {
2463
+ schemaVersion: "treeseed.hosted-topology-rollback/v1";
2464
+ teamId: string;
2465
+ operations: {
2466
+ action: "noop" | "restore" | "delete-created";
2467
+ resourceId: string;
2468
+ providerResourceId: string;
2469
+ targetDigest: string | null;
2470
+ }[];
2471
+ environment: "staging" | "production";
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: "staging" | "production";
2491
+ rollback: {
2492
+ schemaVersion: "treeseed.hosted-topology-rollback/v1";
2493
+ teamId: string;
2494
+ operations: {
2495
+ action: "noop" | "restore" | "delete-created";
2496
+ resourceId: string;
2497
+ providerResourceId: string;
2498
+ targetDigest: string | null;
2499
+ }[];
2500
+ environment: "staging" | "production";
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: "staging" | "production";
2520
+ rollback: {
2521
+ schemaVersion: "treeseed.hosted-topology-rollback/v1";
2522
+ teamId: string;
2523
+ operations: {
2524
+ action: "noop" | "restore" | "delete-created";
2525
+ resourceId: string;
2526
+ providerResourceId: string;
2527
+ targetDigest: string | null;
2528
+ }[];
2529
+ environment: "staging" | "production";
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: "staging" | "production";
2549
+ rollback: {
2550
+ schemaVersion: "treeseed.hosted-topology-rollback/v1";
2551
+ teamId: string;
2552
+ operations: {
2553
+ action: "noop" | "restore" | "delete-created";
2554
+ resourceId: string;
2555
+ providerResourceId: string;
2556
+ targetDigest: string | null;
2557
+ }[];
2558
+ environment: "staging" | "production";
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
+ operations: {
2599
+ action: "noop" | "restore" | "delete-created";
2600
+ resourceId: string;
2601
+ providerResourceId: string;
2602
+ targetDigest: string | null;
2603
+ }[];
2604
+ environment: "staging" | "production";
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
+ operations: {
2617
+ action: "noop" | "restore" | "delete-created";
2618
+ resourceId: string;
2619
+ providerResourceId: string;
2620
+ targetDigest: string | null;
2621
+ }[];
2622
+ environment: "staging" | "production";
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: "staging" | "production";
2640
+ rollback: {
2641
+ schemaVersion: "treeseed.hosted-topology-rollback/v1";
2642
+ teamId: string;
2643
+ operations: {
2644
+ action: "noop" | "restore" | "delete-created";
2645
+ resourceId: string;
2646
+ providerResourceId: string;
2647
+ targetDigest: string | null;
2648
+ }[];
2649
+ environment: "staging" | "production";
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: "staging" | "production";
2671
+ rollback: {
2672
+ schemaVersion: "treeseed.hosted-topology-rollback/v1";
2673
+ teamId: string;
2674
+ operations: {
2675
+ action: "noop" | "restore" | "delete-created";
2676
+ resourceId: string;
2677
+ providerResourceId: string;
2678
+ targetDigest: string | null;
2679
+ }[];
2680
+ environment: "staging" | "production";
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 {};