@treeseed/sdk 0.13.0-rc.121 → 0.13.0-rc.123

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 (157) hide show
  1. package/dist/agent-capacity/contracts/capacity/assignments/agent-execution.d.ts +2365 -1275
  2. package/dist/agent-capacity/contracts/capacity/assignments/agent-execution.js +94 -28
  3. package/dist/agent-capacity/contracts/capacity/assignments/assignment-context-pack.d.ts +38 -38
  4. package/dist/agent-capacity/contracts/capacity/assignments/assignment-path.d.ts +2 -0
  5. package/dist/agent-capacity/contracts/capacity/assignments/assignment-path.js +13 -0
  6. package/dist/agent-capacity/contracts/capacity/assignments/assignment-records.d.ts +2 -59
  7. package/dist/agent-capacity/contracts/capacity/providers/supply-policy.d.ts +126 -1
  8. package/dist/agent-capacity/contracts/capacity/providers/supply-policy.js +35 -1
  9. package/dist/agent-capacity/contracts/capacity/workdays/assignment-allocation.d.ts +2 -4
  10. package/dist/agent-capacity/contracts/capacity/workdays/assignment-allocation.js +22 -16
  11. package/dist/agent-capacity/contracts/capacity/workdays/capability-accounting.d.ts +3 -42
  12. package/dist/agent-capacity/contracts/capacity/workdays/capability-accounting.js +8 -8
  13. package/dist/agent-capacity/contracts/capacity/workdays/workday-allocation.d.ts +244 -85
  14. package/dist/agent-capacity/contracts/capacity/workdays/workday-allocation.js +54 -19
  15. package/dist/agent-capacity/contracts/capacity/workdays/workday-records.d.ts +216 -70
  16. package/dist/agent-capacity/contracts/capacity/workdays/workday-records.js +19 -0
  17. package/dist/agent-capacity/contracts/configuration/configuration.d.ts +1 -1
  18. package/dist/agent-capacity/contracts/configuration/configuration.js +0 -2
  19. package/dist/agent-capacity/contracts/operations/agent-team-clone.d.ts +55 -55
  20. package/dist/agent-capacity/contracts/projects/agents/project-agent-class.d.ts +119 -23
  21. package/dist/agent-capacity/contracts/projects/agents/project-agent-class.js +16 -0
  22. package/dist/agent-capacity/contracts/runtime/runtime-observability.d.ts +2 -154
  23. package/dist/agent-capacity/contracts/support/agent-atlas.d.ts +0 -13
  24. package/dist/agent-capacity/contracts/support/execution-graph.d.ts +496 -292
  25. package/dist/agent-capacity/contracts/support/execution-graph.js +21 -19
  26. package/dist/agent-capacity/contracts/support/financial-records.d.ts +3 -6
  27. package/dist/agent-capacity/contracts/support/planning-records.d.ts +1 -87
  28. package/dist/agent-capacity/grant.d.ts +34 -0
  29. package/dist/agent-capacity/grant.js +4 -0
  30. package/dist/agent-capacity/validation/agent-definition-schema.d.ts +1178 -1152
  31. package/dist/agent-capacity/validation/agent-definition-schema.js +21 -28
  32. package/dist/agent-capacity/validation/agent-lab-forensics-schema.d.ts +10 -10
  33. package/dist/agent-capacity/validation/agent-lab-forensics-schema.js +0 -1
  34. package/dist/agent-capacity/validation/assignment-records.d.ts +1 -6
  35. package/dist/agent-capacity/validation/assignment-records.js +49 -35
  36. package/dist/agent-capacity/validation/configuration.d.ts +1 -1
  37. package/dist/agent-capacity/validation/configuration.js +2 -6
  38. package/dist/agent-capacity/validation/grant.d.ts +11 -0
  39. package/dist/agent-capacity/validation/grant.js +31 -0
  40. package/dist/capacity/agents/agent-capacity.d.ts +3 -4
  41. package/dist/capacity/agents/agent-capacity.js +2 -3
  42. package/dist/capacity-provider/capability-ontology.d.ts +150 -150
  43. package/dist/capacity-provider/client.d.ts +15 -9
  44. package/dist/capacity-provider/client.js +1 -10
  45. package/dist/capacity-provider/contracts/capacity-facts.d.ts +0 -1
  46. package/dist/capacity-provider/contracts/environment-profiles.d.ts +44 -44
  47. package/dist/capacity-provider/contracts/governance.d.ts +2 -17
  48. package/dist/capacity-provider/contracts/index.d.ts +2 -0
  49. package/dist/capacity-provider/contracts/index.js +2 -0
  50. package/dist/capacity-provider/core-capability-catalog.d.ts +7 -7
  51. package/dist/capacity-provider/environment-catalog.d.ts +188 -188
  52. package/dist/capacity-provider/environment-catalog.js +1 -1
  53. package/dist/capacity-provider/install-configuration.d.ts +2 -2
  54. package/dist/capacity-provider/sandbox-contracts.d.ts +92 -92
  55. package/dist/capacity-provider/source-workspace.d.ts +166 -68
  56. package/dist/capacity-provider/source-workspace.js +5 -1
  57. package/dist/capacity-provider/validation.d.ts +10 -2
  58. package/dist/capacity-provider/validation.js +52 -22
  59. package/dist/content/validation/agent-operational-content-schemas.d.ts +144 -142
  60. package/dist/content/validation/agent-operational-content-schemas.js +2 -0
  61. package/dist/content/validation/auxiliary-content-schemas.d.ts +158 -158
  62. package/dist/content/validation/content-model-schemas.d.ts +9105 -5295
  63. package/dist/content/validation/content-model-schemas.js +192 -115
  64. package/dist/content/validation/portable-content-data.d.ts +411 -238
  65. package/dist/content/validation/portable-content-data.js +6 -1
  66. package/dist/content/validation/schema-constraints.d.ts +78 -0
  67. package/dist/content/validation/schema-constraints.js +149 -0
  68. package/dist/deployment/ai/storage.d.ts +24 -24
  69. package/dist/deployment/ai-hosting.d.ts +18 -18
  70. package/dist/deployment/ai-instance.d.ts +16 -16
  71. package/dist/deployment/ai-mode.d.ts +92 -92
  72. package/dist/deployment/hosted-topology-template.d.ts +44 -44
  73. package/dist/deployment/hosted-topology.d.ts +335 -335
  74. package/dist/deployment/postgres/contracts.d.ts +52 -52
  75. package/dist/deployment/postgres/transfer.d.ts +6 -6
  76. package/dist/deployment/schemas.d.ts +1114 -1114
  77. package/dist/development/schemas.d.ts +633 -633
  78. package/dist/graph/context-query-contracts.js +1 -1
  79. package/dist/guarantees/index.d.ts +26 -2
  80. package/dist/identity/contracts.js +6 -1
  81. package/dist/knowledge/contracts.d.ts +9 -2
  82. package/dist/knowledge/contracts.js +2 -2
  83. package/dist/model-registry/discussion-models.js +0 -1
  84. package/dist/operator-contracts/canonical-command-tree.js +25 -9
  85. package/dist/operator-contracts/catalog/agents/agent-team-clone-operations.d.ts +29 -29
  86. package/dist/operator-contracts/catalog/capability-ontology-operations.d.ts +30 -30
  87. package/dist/operator-contracts/catalog/commands/command-tree-builders.d.ts +15 -13
  88. package/dist/operator-contracts/catalog/communication-operations.d.ts +176 -158
  89. package/dist/operator-contracts/catalog/hosted-topology-operations.d.ts +67 -67
  90. package/dist/operator-contracts/catalog/inbox-operations.d.ts +65 -65
  91. package/dist/operator-contracts/catalog/infrastructure/ai-instance-operations.d.ts +6 -6
  92. package/dist/operator-contracts/catalog/infrastructure/ai-instance-operations.js +2 -1
  93. package/dist/operator-contracts/catalog/knowledge-share-operations.d.ts +10 -10
  94. package/dist/operator-contracts/catalog/provider-environment-operations.d.ts +3 -3
  95. package/dist/operator-contracts/catalog/services/secret-operations.d.ts +16 -8
  96. package/dist/operator-contracts/catalog/services/secret-operations.js +2 -1
  97. package/dist/operator-contracts/catalog/workdays/profile-operations.d.ts +11 -11
  98. package/dist/operator-contracts/catalog/workdays/selection-commands.js +3 -0
  99. package/dist/operator-contracts/communication/contracts.d.ts +537 -395
  100. package/dist/operator-contracts/communication/contracts.js +6 -1
  101. package/dist/operator-contracts/control-plane-operation.d.ts +7 -0
  102. package/dist/operator-contracts/control-plane-operation.js +6 -0
  103. package/dist/operator-contracts/control-plane-operations.d.ts +631 -610
  104. package/dist/operator-contracts/control-plane-operations.js +26 -12
  105. package/dist/operator-contracts/inbox/contracts.d.ts +229 -229
  106. package/dist/operator-contracts/knowledge/contracts.d.ts +16 -16
  107. package/dist/operator-contracts/mcp.js +4 -3
  108. package/dist/operator-contracts/workday-lifecycle.d.ts +192 -0
  109. package/dist/operator-contracts/workday-lifecycle.js +109 -45
  110. package/dist/platform/agent-schema-verification.d.ts +3 -0
  111. package/dist/platform/agent-schema-verification.js +377 -0
  112. package/dist/platform/contracts.d.ts +72 -72
  113. package/dist/platform/schemas.d.ts +144 -36
  114. package/dist/platform/schemas.js +26 -0
  115. package/dist/platform/verification.js +10 -0
  116. package/dist/sdk-types/support/planning-policy.d.ts +1 -1
  117. package/dist/sdk-types/support/sdk-search-request.d.ts +2 -2
  118. package/dist/secrets-capability/secret-contracts.d.ts +2 -2
  119. package/dist/secrets-capability/shared-access.d.ts +3 -3
  120. package/dist/secrets-capability/shared-resources.d.ts +50 -50
  121. package/dist/secrets-capability/vault-contracts.d.ts +2 -2
  122. package/dist/security/encrypted-envelope.d.ts +14 -14
  123. package/dist/treedx/client.d.ts +4 -4
  124. package/dist/treedx/index.d.ts +1 -1
  125. package/dist/treedx/index.js +1 -0
  126. package/dist/treedx/types.d.ts +286 -0
  127. package/dist/treedx/types.js +44 -0
  128. package/guarantees/agent/golden/component-boundaries.guarantee.yaml +12 -0
  129. package/guarantees/agent/golden/product-custody.guarantee.yaml +12 -0
  130. package/guarantees/agent/golden/product.guarantee.yaml +12 -0
  131. package/guarantees/agent/golden/scenes/component-boundaries.scene.yaml +837 -0
  132. package/guarantees/agent/golden/scenes/product-custody.scene.yaml +53 -0
  133. package/guarantees/agent/golden/scenes/product.scene.yaml +8 -0
  134. package/guarantees/verifiers/golden.verifiers.yaml +1429 -0
  135. package/package.json +9 -3
  136. package/tests/acceptance/golden-product.test.ts +205 -0
  137. package/tests/acceptance/golden-product.ts +404 -0
  138. package/tests/acceptance/product/base-red.ts +73 -0
  139. package/tests/acceptance/product/documentation-examples.ts +68 -0
  140. package/tests/acceptance/product/intent-runtime.ts +145 -0
  141. package/tests/acceptance/product/release-output.ts +160 -0
  142. package/tests/acceptance/product/research-artifact.ts +87 -0
  143. package/tests/acceptance/product/research-revision.ts +82 -0
  144. package/tests/acceptance/product/research-source.ts +91 -0
  145. package/tests/acceptance/product/test-chain.ts +192 -0
  146. package/treeseed.package.yaml +147 -0
  147. package/dist/.treeseed-build-complete.json +0 -1
  148. package/dist/agent-capacity/allocation.d.ts +0 -183
  149. package/dist/agent-capacity/allocation.js +0 -5
  150. package/dist/agent-capacity/artifact-mutation-receipt.d.ts +0 -49
  151. package/dist/agent-capacity/artifact-mutation-receipt.js +0 -36
  152. package/dist/agent-capacity/artifacts.d.ts +0 -123
  153. package/dist/agent-capacity/artifacts.js +0 -39
  154. package/dist/agent-capacity/contracts/support/decision-work.d.ts +0 -227
  155. package/dist/agent-capacity/contracts/support/decision-work.js +0 -0
  156. package/dist/agent-capacity/validation/allocation.d.ts +0 -12
  157. package/dist/agent-capacity/validation/allocation.js +0 -115
@@ -24,12 +24,12 @@ declare const hostedStateBackendCoreSchema: z.ZodObject<{
24
24
  schemaVersion: "treeseed.hosted-state-backend/v1";
25
25
  key: string;
26
26
  teamId: string;
27
- environment: "production" | "staging";
28
- deploymentId: string;
27
+ region: string;
28
+ environment: "staging" | "production";
29
29
  bucket: string;
30
+ deploymentId: string;
30
31
  stackId: string;
31
32
  connectionRef: string;
32
- region: string;
33
33
  encryptionKeyRef: string;
34
34
  endpoint?: string | undefined;
35
35
  usePathStyle?: boolean | undefined;
@@ -38,12 +38,12 @@ declare const hostedStateBackendCoreSchema: z.ZodObject<{
38
38
  schemaVersion: "treeseed.hosted-state-backend/v1";
39
39
  key: string;
40
40
  teamId: string;
41
- environment: "production" | "staging";
42
- deploymentId: string;
41
+ region: string;
42
+ environment: "staging" | "production";
43
43
  bucket: string;
44
+ deploymentId: string;
44
45
  stackId: string;
45
46
  connectionRef: string;
46
- region: string;
47
47
  encryptionKeyRef: string;
48
48
  endpoint?: string | undefined;
49
49
  usePathStyle?: boolean | undefined;
@@ -69,12 +69,12 @@ export declare const hostedStateBackendSchema: z.ZodEffects<z.ZodObject<{
69
69
  schemaVersion: "treeseed.hosted-state-backend/v1";
70
70
  key: string;
71
71
  teamId: string;
72
- environment: "production" | "staging";
73
- deploymentId: string;
72
+ region: string;
73
+ environment: "staging" | "production";
74
74
  bucket: string;
75
+ deploymentId: string;
75
76
  stackId: string;
76
77
  connectionRef: string;
77
- region: string;
78
78
  encryptionKeyRef: string;
79
79
  bindingDigest: string;
80
80
  endpoint?: string | undefined;
@@ -84,12 +84,12 @@ export declare const hostedStateBackendSchema: z.ZodEffects<z.ZodObject<{
84
84
  schemaVersion: "treeseed.hosted-state-backend/v1";
85
85
  key: string;
86
86
  teamId: string;
87
- environment: "production" | "staging";
88
- deploymentId: string;
87
+ region: string;
88
+ environment: "staging" | "production";
89
89
  bucket: string;
90
+ deploymentId: string;
90
91
  stackId: string;
91
92
  connectionRef: string;
92
- region: string;
93
93
  encryptionKeyRef: string;
94
94
  bindingDigest: string;
95
95
  endpoint?: string | undefined;
@@ -99,12 +99,12 @@ export declare const hostedStateBackendSchema: z.ZodEffects<z.ZodObject<{
99
99
  schemaVersion: "treeseed.hosted-state-backend/v1";
100
100
  key: string;
101
101
  teamId: string;
102
- environment: "production" | "staging";
103
- deploymentId: string;
102
+ region: string;
103
+ environment: "staging" | "production";
104
104
  bucket: string;
105
+ deploymentId: string;
105
106
  stackId: string;
106
107
  connectionRef: string;
107
- region: string;
108
108
  encryptionKeyRef: string;
109
109
  bindingDigest: string;
110
110
  endpoint?: string | undefined;
@@ -114,12 +114,12 @@ export declare const hostedStateBackendSchema: z.ZodEffects<z.ZodObject<{
114
114
  schemaVersion: "treeseed.hosted-state-backend/v1";
115
115
  key: string;
116
116
  teamId: string;
117
- environment: "production" | "staging";
118
- deploymentId: string;
117
+ region: string;
118
+ environment: "staging" | "production";
119
119
  bucket: string;
120
+ deploymentId: string;
120
121
  stackId: string;
121
122
  connectionRef: string;
122
- region: string;
123
123
  encryptionKeyRef: string;
124
124
  bindingDigest: string;
125
125
  endpoint?: string | undefined;
@@ -130,12 +130,12 @@ export declare function bindHostedStateBackend(input: z.input<typeof hostedState
130
130
  schemaVersion: "treeseed.hosted-state-backend/v1";
131
131
  key: string;
132
132
  teamId: string;
133
- environment: "production" | "staging";
134
- deploymentId: string;
133
+ region: string;
134
+ environment: "staging" | "production";
135
135
  bucket: string;
136
+ deploymentId: string;
136
137
  stackId: string;
137
138
  connectionRef: string;
138
- region: string;
139
139
  encryptionKeyRef: string;
140
140
  bindingDigest: string;
141
141
  endpoint?: string | undefined;
@@ -150,14 +150,14 @@ export declare const hostedArtifactSchema: z.ZodUnion<[z.ZodObject<{
150
150
  source: z.ZodString;
151
151
  }, "strict", z.ZodTypeAny, {
152
152
  kind: "archive";
153
- digest: string;
154
- source: string;
155
153
  format: "tar+gzip";
154
+ source: string;
155
+ digest: string;
156
156
  }, {
157
157
  kind: "archive";
158
- digest: string;
159
- source: string;
160
158
  format: "tar+gzip";
159
+ source: string;
160
+ digest: string;
161
161
  }>, z.ZodObject<{
162
162
  kind: z.ZodLiteral<"file">;
163
163
  mediaType: z.ZodString;
@@ -165,13 +165,13 @@ export declare const hostedArtifactSchema: z.ZodUnion<[z.ZodObject<{
165
165
  source: z.ZodString;
166
166
  }, "strict", z.ZodTypeAny, {
167
167
  kind: "file";
168
- digest: string;
169
168
  source: string;
169
+ digest: string;
170
170
  mediaType: string;
171
171
  }, {
172
172
  kind: "file";
173
- digest: string;
174
173
  source: string;
174
+ digest: string;
175
175
  mediaType: string;
176
176
  }>, z.ZodEffects<z.ZodObject<{
177
177
  kind: z.ZodLiteral<"oci-image">;
@@ -269,8 +269,8 @@ export declare const hostedResourceDeclarationSchema: z.ZodObject<{
269
269
  externalIdInput?: string | undefined;
270
270
  }>;
271
271
  }, "strict", z.ZodTypeAny, {
272
- kind: "admin-application" | "pages-application" | "dns-record" | "tls-policy" | "api-proxy" | "control-plane-api" | "postgresql" | "operations-runner" | "treedx-service";
273
- provider: "cloudflare" | "railway";
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
274
  id: string;
275
275
  dependsOn: string[];
276
276
  parameters: Record<string, {
@@ -291,8 +291,8 @@ export declare const hostedResourceDeclarationSchema: z.ZodObject<{
291
291
  externalIdInput?: string | undefined;
292
292
  };
293
293
  }, {
294
- kind: "admin-application" | "pages-application" | "dns-record" | "tls-policy" | "api-proxy" | "control-plane-api" | "postgresql" | "operations-runner" | "treedx-service";
295
- provider: "cloudflare" | "railway";
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
296
  id: string;
297
297
  adoption: {
298
298
  mode: "adopt-or-create";
@@ -325,11 +325,11 @@ export declare const hostedTopologyDeclarationSchema: z.ZodEffects<z.ZodObject<{
325
325
  repository: z.ZodLiteral<"treeseed-ai/platform">;
326
326
  commit: z.ZodString;
327
327
  }, "strict", z.ZodTypeAny, {
328
- repository: "treeseed-ai/platform";
329
328
  commit: string;
330
- }, {
331
329
  repository: "treeseed-ai/platform";
330
+ }, {
332
331
  commit: string;
332
+ repository: "treeseed-ai/platform";
333
333
  }>;
334
334
  stateBackend: z.ZodObject<{
335
335
  connectionRef: z.ZodString;
@@ -352,14 +352,14 @@ export declare const hostedTopologyDeclarationSchema: z.ZodEffects<z.ZodObject<{
352
352
  source: z.ZodString;
353
353
  }, "strict", z.ZodTypeAny, {
354
354
  kind: "archive";
355
- digest: string;
356
- source: string;
357
355
  format: "tar+gzip";
356
+ source: string;
357
+ digest: string;
358
358
  }, {
359
359
  kind: "archive";
360
- digest: string;
361
- source: string;
362
360
  format: "tar+gzip";
361
+ source: string;
362
+ digest: string;
363
363
  }>, z.ZodObject<{
364
364
  kind: z.ZodLiteral<"file">;
365
365
  mediaType: z.ZodString;
@@ -367,13 +367,13 @@ export declare const hostedTopologyDeclarationSchema: z.ZodEffects<z.ZodObject<{
367
367
  source: z.ZodString;
368
368
  }, "strict", z.ZodTypeAny, {
369
369
  kind: "file";
370
- digest: string;
371
370
  source: string;
371
+ digest: string;
372
372
  mediaType: string;
373
373
  }, {
374
374
  kind: "file";
375
- digest: string;
376
375
  source: string;
376
+ digest: string;
377
377
  mediaType: string;
378
378
  }>, z.ZodEffects<z.ZodObject<{
379
379
  kind: z.ZodLiteral<"oci-image">;
@@ -455,8 +455,8 @@ export declare const hostedTopologyDeclarationSchema: z.ZodEffects<z.ZodObject<{
455
455
  externalIdInput?: string | undefined;
456
456
  }>;
457
457
  }, "strict", z.ZodTypeAny, {
458
- kind: "admin-application" | "pages-application" | "dns-record" | "tls-policy" | "api-proxy" | "control-plane-api" | "postgresql" | "operations-runner" | "treedx-service";
459
- provider: "cloudflare" | "railway";
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
460
  id: string;
461
461
  dependsOn: string[];
462
462
  parameters: Record<string, {
@@ -477,8 +477,8 @@ export declare const hostedTopologyDeclarationSchema: z.ZodEffects<z.ZodObject<{
477
477
  externalIdInput?: string | undefined;
478
478
  };
479
479
  }, {
480
- kind: "admin-application" | "pages-application" | "dns-record" | "tls-policy" | "api-proxy" | "control-plane-api" | "postgresql" | "operations-runner" | "treedx-service";
481
- provider: "cloudflare" | "railway";
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
482
  id: string;
483
483
  adoption: {
484
484
  mode: "adopt-or-create";
@@ -502,9 +502,15 @@ export declare const hostedTopologyDeclarationSchema: z.ZodEffects<z.ZodObject<{
502
502
  }, "strict", z.ZodTypeAny, {
503
503
  id: string;
504
504
  schemaVersion: "treeseed.hosted-topology/v1";
505
+ teamId: string;
506
+ platform: {
507
+ commit: string;
508
+ repository: "treeseed-ai/platform";
509
+ };
510
+ environment: "staging" | "production";
505
511
  resources: {
506
- kind: "admin-application" | "pages-application" | "dns-record" | "tls-policy" | "api-proxy" | "control-plane-api" | "postgresql" | "operations-runner" | "treedx-service";
507
- provider: "cloudflare" | "railway";
512
+ kind: "postgresql" | "admin-application" | "pages-application" | "dns-record" | "tls-policy" | "api-proxy" | "control-plane-api" | "operations-runner" | "treedx-service";
513
+ provider: "railway" | "cloudflare";
508
514
  id: string;
509
515
  dependsOn: string[];
510
516
  parameters: Record<string, {
@@ -525,22 +531,16 @@ export declare const hostedTopologyDeclarationSchema: z.ZodEffects<z.ZodObject<{
525
531
  externalIdInput?: string | undefined;
526
532
  };
527
533
  }[];
528
- teamId: string;
529
- platform: {
530
- repository: "treeseed-ai/platform";
531
- commit: string;
532
- };
533
534
  mutation: "agent-authorized";
534
- environment: "production" | "staging";
535
535
  artifacts: Record<string, {
536
536
  kind: "archive";
537
- digest: string;
538
- source: string;
539
537
  format: "tar+gzip";
538
+ source: string;
539
+ digest: string;
540
540
  } | {
541
541
  kind: "file";
542
- digest: string;
543
542
  source: string;
543
+ digest: string;
544
544
  mediaType: string;
545
545
  } | {
546
546
  identity: string;
@@ -552,15 +552,21 @@ export declare const hostedTopologyDeclarationSchema: z.ZodEffects<z.ZodObject<{
552
552
  stateBackend: {
553
553
  connectionRef: string;
554
554
  };
555
- providerConnections: Partial<Record<"cloudflare" | "railway", {
555
+ providerConnections: Partial<Record<"railway" | "cloudflare", {
556
556
  connectionRef: string;
557
557
  }>>;
558
558
  }, {
559
559
  id: string;
560
560
  schemaVersion: "treeseed.hosted-topology/v1";
561
+ teamId: string;
562
+ platform: {
563
+ commit: string;
564
+ repository: "treeseed-ai/platform";
565
+ };
566
+ environment: "staging" | "production";
561
567
  resources: {
562
- kind: "admin-application" | "pages-application" | "dns-record" | "tls-policy" | "api-proxy" | "control-plane-api" | "postgresql" | "operations-runner" | "treedx-service";
563
- provider: "cloudflare" | "railway";
568
+ kind: "postgresql" | "admin-application" | "pages-application" | "dns-record" | "tls-policy" | "api-proxy" | "control-plane-api" | "operations-runner" | "treedx-service";
569
+ provider: "railway" | "cloudflare";
564
570
  id: string;
565
571
  adoption: {
566
572
  mode: "adopt-or-create";
@@ -581,22 +587,16 @@ export declare const hostedTopologyDeclarationSchema: z.ZodEffects<z.ZodObject<{
581
587
  literal: string | number | boolean;
582
588
  }> | undefined;
583
589
  }[];
584
- teamId: string;
585
- platform: {
586
- repository: "treeseed-ai/platform";
587
- commit: string;
588
- };
589
590
  mutation: "agent-authorized";
590
- environment: "production" | "staging";
591
591
  artifacts: Record<string, {
592
592
  kind: "archive";
593
- digest: string;
594
- source: string;
595
593
  format: "tar+gzip";
594
+ source: string;
595
+ digest: string;
596
596
  } | {
597
597
  kind: "file";
598
- digest: string;
599
598
  source: string;
599
+ digest: string;
600
600
  mediaType: string;
601
601
  } | {
602
602
  identity: string;
@@ -608,15 +608,21 @@ export declare const hostedTopologyDeclarationSchema: z.ZodEffects<z.ZodObject<{
608
608
  stateBackend: {
609
609
  connectionRef: string;
610
610
  };
611
- providerConnections: Partial<Record<"cloudflare" | "railway", {
611
+ providerConnections: Partial<Record<"railway" | "cloudflare", {
612
612
  connectionRef: string;
613
613
  }>>;
614
614
  }>, {
615
615
  id: string;
616
616
  schemaVersion: "treeseed.hosted-topology/v1";
617
+ teamId: string;
618
+ platform: {
619
+ commit: string;
620
+ repository: "treeseed-ai/platform";
621
+ };
622
+ environment: "staging" | "production";
617
623
  resources: {
618
- kind: "admin-application" | "pages-application" | "dns-record" | "tls-policy" | "api-proxy" | "control-plane-api" | "postgresql" | "operations-runner" | "treedx-service";
619
- provider: "cloudflare" | "railway";
624
+ kind: "postgresql" | "admin-application" | "pages-application" | "dns-record" | "tls-policy" | "api-proxy" | "control-plane-api" | "operations-runner" | "treedx-service";
625
+ provider: "railway" | "cloudflare";
620
626
  id: string;
621
627
  dependsOn: string[];
622
628
  parameters: Record<string, {
@@ -637,22 +643,16 @@ export declare const hostedTopologyDeclarationSchema: z.ZodEffects<z.ZodObject<{
637
643
  externalIdInput?: string | undefined;
638
644
  };
639
645
  }[];
640
- teamId: string;
641
- platform: {
642
- repository: "treeseed-ai/platform";
643
- commit: string;
644
- };
645
646
  mutation: "agent-authorized";
646
- environment: "production" | "staging";
647
647
  artifacts: Record<string, {
648
648
  kind: "archive";
649
- digest: string;
650
- source: string;
651
649
  format: "tar+gzip";
650
+ source: string;
651
+ digest: string;
652
652
  } | {
653
653
  kind: "file";
654
- digest: string;
655
654
  source: string;
655
+ digest: string;
656
656
  mediaType: string;
657
657
  } | {
658
658
  identity: string;
@@ -664,15 +664,21 @@ export declare const hostedTopologyDeclarationSchema: z.ZodEffects<z.ZodObject<{
664
664
  stateBackend: {
665
665
  connectionRef: string;
666
666
  };
667
- providerConnections: Partial<Record<"cloudflare" | "railway", {
667
+ providerConnections: Partial<Record<"railway" | "cloudflare", {
668
668
  connectionRef: string;
669
669
  }>>;
670
670
  }, {
671
671
  id: string;
672
672
  schemaVersion: "treeseed.hosted-topology/v1";
673
+ teamId: string;
674
+ platform: {
675
+ commit: string;
676
+ repository: "treeseed-ai/platform";
677
+ };
678
+ environment: "staging" | "production";
673
679
  resources: {
674
- kind: "admin-application" | "pages-application" | "dns-record" | "tls-policy" | "api-proxy" | "control-plane-api" | "postgresql" | "operations-runner" | "treedx-service";
675
- provider: "cloudflare" | "railway";
680
+ kind: "postgresql" | "admin-application" | "pages-application" | "dns-record" | "tls-policy" | "api-proxy" | "control-plane-api" | "operations-runner" | "treedx-service";
681
+ provider: "railway" | "cloudflare";
676
682
  id: string;
677
683
  adoption: {
678
684
  mode: "adopt-or-create";
@@ -693,22 +699,16 @@ export declare const hostedTopologyDeclarationSchema: z.ZodEffects<z.ZodObject<{
693
699
  literal: string | number | boolean;
694
700
  }> | undefined;
695
701
  }[];
696
- teamId: string;
697
- platform: {
698
- repository: "treeseed-ai/platform";
699
- commit: string;
700
- };
701
702
  mutation: "agent-authorized";
702
- environment: "production" | "staging";
703
703
  artifacts: Record<string, {
704
704
  kind: "archive";
705
- digest: string;
706
- source: string;
707
705
  format: "tar+gzip";
706
+ source: string;
707
+ digest: string;
708
708
  } | {
709
709
  kind: "file";
710
- digest: string;
711
710
  source: string;
711
+ digest: string;
712
712
  mediaType: string;
713
713
  } | {
714
714
  identity: string;
@@ -720,7 +720,7 @@ export declare const hostedTopologyDeclarationSchema: z.ZodEffects<z.ZodObject<{
720
720
  stateBackend: {
721
721
  connectionRef: string;
722
722
  };
723
- providerConnections: Partial<Record<"cloudflare" | "railway", {
723
+ providerConnections: Partial<Record<"railway" | "cloudflare", {
724
724
  connectionRef: string;
725
725
  }>>;
726
726
  }>;
@@ -734,23 +734,23 @@ export declare const hostedResourceObservationSchema: z.ZodObject<{
734
734
  observedDigest: z.ZodNullable<z.ZodString>;
735
735
  observedAt: z.ZodString;
736
736
  }, "strict", z.ZodTypeAny, {
737
- kind: "admin-application" | "pages-application" | "dns-record" | "tls-policy" | "api-proxy" | "control-plane-api" | "postgresql" | "operations-runner" | "treedx-service";
738
- provider: "cloudflare" | "railway";
739
- state: "missing" | "degraded" | "healthy";
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;
740
741
  resourceId: string;
741
742
  providerResourceId: string | null;
742
743
  managedBy: "external" | "treeseed" | null;
743
744
  observedDigest: string | null;
744
- observedAt: string;
745
745
  }, {
746
- kind: "admin-application" | "pages-application" | "dns-record" | "tls-policy" | "api-proxy" | "control-plane-api" | "postgresql" | "operations-runner" | "treedx-service";
747
- provider: "cloudflare" | "railway";
748
- state: "missing" | "degraded" | "healthy";
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;
749
750
  resourceId: string;
750
751
  providerResourceId: string | null;
751
752
  managedBy: "external" | "treeseed" | null;
752
753
  observedDigest: string | null;
753
- observedAt: string;
754
754
  }>;
755
755
  export declare const hostedTopologyPlanSchema: z.ZodEffects<z.ZodObject<{
756
756
  readonly schemaVersion: z.ZodLiteral<"treeseed.hosted-topology-plan/v1">;
@@ -784,12 +784,12 @@ export declare const hostedTopologyPlanSchema: z.ZodEffects<z.ZodObject<{
784
784
  schemaVersion: "treeseed.hosted-state-backend/v1";
785
785
  key: string;
786
786
  teamId: string;
787
- environment: "production" | "staging";
788
- deploymentId: string;
787
+ region: string;
788
+ environment: "staging" | "production";
789
789
  bucket: string;
790
+ deploymentId: string;
790
791
  stackId: string;
791
792
  connectionRef: string;
792
- region: string;
793
793
  encryptionKeyRef: string;
794
794
  bindingDigest: string;
795
795
  endpoint?: string | undefined;
@@ -799,12 +799,12 @@ export declare const hostedTopologyPlanSchema: z.ZodEffects<z.ZodObject<{
799
799
  schemaVersion: "treeseed.hosted-state-backend/v1";
800
800
  key: string;
801
801
  teamId: string;
802
- environment: "production" | "staging";
803
- deploymentId: string;
802
+ region: string;
803
+ environment: "staging" | "production";
804
804
  bucket: string;
805
+ deploymentId: string;
805
806
  stackId: string;
806
807
  connectionRef: string;
807
- region: string;
808
808
  encryptionKeyRef: string;
809
809
  bindingDigest: string;
810
810
  endpoint?: string | undefined;
@@ -814,12 +814,12 @@ export declare const hostedTopologyPlanSchema: z.ZodEffects<z.ZodObject<{
814
814
  schemaVersion: "treeseed.hosted-state-backend/v1";
815
815
  key: string;
816
816
  teamId: string;
817
- environment: "production" | "staging";
818
- deploymentId: string;
817
+ region: string;
818
+ environment: "staging" | "production";
819
819
  bucket: string;
820
+ deploymentId: string;
820
821
  stackId: string;
821
822
  connectionRef: string;
822
- region: string;
823
823
  encryptionKeyRef: string;
824
824
  bindingDigest: string;
825
825
  endpoint?: string | undefined;
@@ -829,12 +829,12 @@ export declare const hostedTopologyPlanSchema: z.ZodEffects<z.ZodObject<{
829
829
  schemaVersion: "treeseed.hosted-state-backend/v1";
830
830
  key: string;
831
831
  teamId: string;
832
- environment: "production" | "staging";
833
- deploymentId: string;
832
+ region: string;
833
+ environment: "staging" | "production";
834
834
  bucket: string;
835
+ deploymentId: string;
835
836
  stackId: string;
836
837
  connectionRef: string;
837
- region: string;
838
838
  encryptionKeyRef: string;
839
839
  bindingDigest: string;
840
840
  endpoint?: string | undefined;
@@ -847,14 +847,14 @@ export declare const hostedTopologyPlanSchema: z.ZodEffects<z.ZodObject<{
847
847
  source: z.ZodString;
848
848
  }, "strict", z.ZodTypeAny, {
849
849
  kind: "archive";
850
- digest: string;
851
- source: string;
852
850
  format: "tar+gzip";
851
+ source: string;
852
+ digest: string;
853
853
  }, {
854
854
  kind: "archive";
855
- digest: string;
856
- source: string;
857
855
  format: "tar+gzip";
856
+ source: string;
857
+ digest: string;
858
858
  }>, z.ZodObject<{
859
859
  kind: z.ZodLiteral<"file">;
860
860
  mediaType: z.ZodString;
@@ -862,13 +862,13 @@ export declare const hostedTopologyPlanSchema: z.ZodEffects<z.ZodObject<{
862
862
  source: z.ZodString;
863
863
  }, "strict", z.ZodTypeAny, {
864
864
  kind: "file";
865
- digest: string;
866
865
  source: string;
866
+ digest: string;
867
867
  mediaType: string;
868
868
  }, {
869
869
  kind: "file";
870
- digest: string;
871
870
  source: string;
871
+ digest: string;
872
872
  mediaType: string;
873
873
  }>, z.ZodEffects<z.ZodObject<{
874
874
  kind: z.ZodLiteral<"oci-image">;
@@ -971,8 +971,8 @@ export declare const hostedTopologyPlanSchema: z.ZodEffects<z.ZodObject<{
971
971
  externalIdInput?: string | undefined;
972
972
  }>;
973
973
  }, "strict", z.ZodTypeAny, {
974
- kind: "admin-application" | "pages-application" | "dns-record" | "tls-policy" | "api-proxy" | "control-plane-api" | "postgresql" | "operations-runner" | "treedx-service";
975
- provider: "cloudflare" | "railway";
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
976
  id: string;
977
977
  dependsOn: string[];
978
978
  parameters: Record<string, {
@@ -993,8 +993,8 @@ export declare const hostedTopologyPlanSchema: z.ZodEffects<z.ZodObject<{
993
993
  externalIdInput?: string | undefined;
994
994
  };
995
995
  }, {
996
- kind: "admin-application" | "pages-application" | "dns-record" | "tls-policy" | "api-proxy" | "control-plane-api" | "postgresql" | "operations-runner" | "treedx-service";
997
- provider: "cloudflare" | "railway";
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
998
  id: string;
999
999
  adoption: {
1000
1000
  mode: "adopt-or-create";
@@ -1019,14 +1019,14 @@ export declare const hostedTopologyPlanSchema: z.ZodEffects<z.ZodObject<{
1019
1019
  previousDigest: z.ZodNullable<z.ZodString>;
1020
1020
  providerResourceId: z.ZodNullable<z.ZodString>;
1021
1021
  }, "strict", z.ZodTypeAny, {
1022
- kind: "admin-application" | "pages-application" | "dns-record" | "tls-policy" | "api-proxy" | "control-plane-api" | "postgresql" | "operations-runner" | "treedx-service";
1023
- provider: "cloudflare" | "railway";
1024
- action: "noop" | "create" | "adopt" | "update";
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
1025
  resourceId: string;
1026
1026
  providerResourceId: string | null;
1027
1027
  desiredResource: {
1028
- kind: "admin-application" | "pages-application" | "dns-record" | "tls-policy" | "api-proxy" | "control-plane-api" | "postgresql" | "operations-runner" | "treedx-service";
1029
- provider: "cloudflare" | "railway";
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
1030
  id: string;
1031
1031
  dependsOn: string[];
1032
1032
  parameters: Record<string, {
@@ -1050,14 +1050,14 @@ export declare const hostedTopologyPlanSchema: z.ZodEffects<z.ZodObject<{
1050
1050
  desiredDigest: string;
1051
1051
  previousDigest: string | null;
1052
1052
  }, {
1053
- kind: "admin-application" | "pages-application" | "dns-record" | "tls-policy" | "api-proxy" | "control-plane-api" | "postgresql" | "operations-runner" | "treedx-service";
1054
- provider: "cloudflare" | "railway";
1055
- action: "noop" | "create" | "adopt" | "update";
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
1056
  resourceId: string;
1057
1057
  providerResourceId: string | null;
1058
1058
  desiredResource: {
1059
- kind: "admin-application" | "pages-application" | "dns-record" | "tls-policy" | "api-proxy" | "control-plane-api" | "postgresql" | "operations-runner" | "treedx-service";
1060
- provider: "cloudflare" | "railway";
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
1061
  id: string;
1062
1062
  adoption: {
1063
1063
  mode: "adopt-or-create";
@@ -1098,6 +1098,8 @@ export declare const hostedTopologyPlanSchema: z.ZodEffects<z.ZodObject<{
1098
1098
  readonly executable: z.ZodLiteral<false>;
1099
1099
  }, "strict", z.ZodTypeAny, {
1100
1100
  schemaVersion: "treeseed.hosted-topology-plan/v1";
1101
+ teamId: string;
1102
+ environment: "staging" | "production";
1101
1103
  blockers: {
1102
1104
  code: "connection-unavailable" | "state-backend-unavailable" | "dependency-cycle" | "observation-unhealthy" | "adoption-drift";
1103
1105
  message: string;
@@ -1105,14 +1107,14 @@ export declare const hostedTopologyPlanSchema: z.ZodEffects<z.ZodObject<{
1105
1107
  }[];
1106
1108
  planDigest: string;
1107
1109
  actions: {
1108
- kind: "admin-application" | "pages-application" | "dns-record" | "tls-policy" | "api-proxy" | "control-plane-api" | "postgresql" | "operations-runner" | "treedx-service";
1109
- provider: "cloudflare" | "railway";
1110
- action: "noop" | "create" | "adopt" | "update";
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";
1111
1113
  resourceId: string;
1112
1114
  providerResourceId: string | null;
1113
1115
  desiredResource: {
1114
- kind: "admin-application" | "pages-application" | "dns-record" | "tls-policy" | "api-proxy" | "control-plane-api" | "postgresql" | "operations-runner" | "treedx-service";
1115
- provider: "cloudflare" | "railway";
1116
+ kind: "postgresql" | "admin-application" | "pages-application" | "dns-record" | "tls-policy" | "api-proxy" | "control-plane-api" | "operations-runner" | "treedx-service";
1117
+ provider: "railway" | "cloudflare";
1116
1118
  id: string;
1117
1119
  dependsOn: string[];
1118
1120
  parameters: Record<string, {
@@ -1136,18 +1138,16 @@ export declare const hostedTopologyPlanSchema: z.ZodEffects<z.ZodObject<{
1136
1138
  desiredDigest: string;
1137
1139
  previousDigest: string | null;
1138
1140
  }[];
1139
- teamId: string;
1140
- environment: "production" | "staging";
1141
1141
  executable: false;
1142
1142
  artifacts: Record<string, {
1143
1143
  kind: "archive";
1144
- digest: string;
1145
- source: string;
1146
1144
  format: "tar+gzip";
1145
+ source: string;
1146
+ digest: string;
1147
1147
  } | {
1148
1148
  kind: "file";
1149
- digest: string;
1150
1149
  source: string;
1150
+ digest: string;
1151
1151
  mediaType: string;
1152
1152
  } | {
1153
1153
  identity: string;
@@ -1162,18 +1162,18 @@ export declare const hostedTopologyPlanSchema: z.ZodEffects<z.ZodObject<{
1162
1162
  schemaVersion: "treeseed.hosted-state-backend/v1";
1163
1163
  key: string;
1164
1164
  teamId: string;
1165
- environment: "production" | "staging";
1166
- deploymentId: string;
1165
+ region: string;
1166
+ environment: "staging" | "production";
1167
1167
  bucket: string;
1168
+ deploymentId: string;
1168
1169
  stackId: string;
1169
1170
  connectionRef: string;
1170
- region: string;
1171
1171
  encryptionKeyRef: string;
1172
1172
  bindingDigest: string;
1173
1173
  endpoint?: string | undefined;
1174
1174
  usePathStyle?: boolean | undefined;
1175
1175
  } | null;
1176
- providerConnections: Partial<Record<"cloudflare" | "railway", {
1176
+ providerConnections: Partial<Record<"railway" | "cloudflare", {
1177
1177
  connectionRef: string;
1178
1178
  nonSecretConfig: Record<string, string | number | boolean>;
1179
1179
  }>>;
@@ -1183,6 +1183,8 @@ export declare const hostedTopologyPlanSchema: z.ZodEffects<z.ZodObject<{
1183
1183
  authorization: "authenticated-agent";
1184
1184
  }, {
1185
1185
  schemaVersion: "treeseed.hosted-topology-plan/v1";
1186
+ teamId: string;
1187
+ environment: "staging" | "production";
1186
1188
  blockers: {
1187
1189
  code: "connection-unavailable" | "state-backend-unavailable" | "dependency-cycle" | "observation-unhealthy" | "adoption-drift";
1188
1190
  message: string;
@@ -1190,14 +1192,14 @@ export declare const hostedTopologyPlanSchema: z.ZodEffects<z.ZodObject<{
1190
1192
  }[];
1191
1193
  planDigest: string;
1192
1194
  actions: {
1193
- kind: "admin-application" | "pages-application" | "dns-record" | "tls-policy" | "api-proxy" | "control-plane-api" | "postgresql" | "operations-runner" | "treedx-service";
1194
- provider: "cloudflare" | "railway";
1195
- action: "noop" | "create" | "adopt" | "update";
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";
1196
1198
  resourceId: string;
1197
1199
  providerResourceId: string | null;
1198
1200
  desiredResource: {
1199
- kind: "admin-application" | "pages-application" | "dns-record" | "tls-policy" | "api-proxy" | "control-plane-api" | "postgresql" | "operations-runner" | "treedx-service";
1200
- provider: "cloudflare" | "railway";
1201
+ kind: "postgresql" | "admin-application" | "pages-application" | "dns-record" | "tls-policy" | "api-proxy" | "control-plane-api" | "operations-runner" | "treedx-service";
1202
+ provider: "railway" | "cloudflare";
1201
1203
  id: string;
1202
1204
  adoption: {
1203
1205
  mode: "adopt-or-create";
@@ -1221,18 +1223,16 @@ export declare const hostedTopologyPlanSchema: z.ZodEffects<z.ZodObject<{
1221
1223
  desiredDigest: string;
1222
1224
  previousDigest: string | null;
1223
1225
  }[];
1224
- teamId: string;
1225
- environment: "production" | "staging";
1226
1226
  executable: false;
1227
1227
  artifacts: Record<string, {
1228
1228
  kind: "archive";
1229
- digest: string;
1230
- source: string;
1231
1229
  format: "tar+gzip";
1230
+ source: string;
1231
+ digest: string;
1232
1232
  } | {
1233
1233
  kind: "file";
1234
- digest: string;
1235
1234
  source: string;
1235
+ digest: string;
1236
1236
  mediaType: string;
1237
1237
  } | {
1238
1238
  identity: string;
@@ -1247,18 +1247,18 @@ export declare const hostedTopologyPlanSchema: z.ZodEffects<z.ZodObject<{
1247
1247
  schemaVersion: "treeseed.hosted-state-backend/v1";
1248
1248
  key: string;
1249
1249
  teamId: string;
1250
- environment: "production" | "staging";
1251
- deploymentId: string;
1250
+ region: string;
1251
+ environment: "staging" | "production";
1252
1252
  bucket: string;
1253
+ deploymentId: string;
1253
1254
  stackId: string;
1254
1255
  connectionRef: string;
1255
- region: string;
1256
1256
  encryptionKeyRef: string;
1257
1257
  bindingDigest: string;
1258
1258
  endpoint?: string | undefined;
1259
1259
  usePathStyle?: boolean | undefined;
1260
1260
  } | null;
1261
- providerConnections: Partial<Record<"cloudflare" | "railway", {
1261
+ providerConnections: Partial<Record<"railway" | "cloudflare", {
1262
1262
  connectionRef: string;
1263
1263
  nonSecretConfig: Record<string, string | number | boolean>;
1264
1264
  }>>;
@@ -1268,6 +1268,8 @@ export declare const hostedTopologyPlanSchema: z.ZodEffects<z.ZodObject<{
1268
1268
  authorization: "authenticated-agent";
1269
1269
  }>, {
1270
1270
  schemaVersion: "treeseed.hosted-topology-plan/v1";
1271
+ teamId: string;
1272
+ environment: "staging" | "production";
1271
1273
  blockers: {
1272
1274
  code: "connection-unavailable" | "state-backend-unavailable" | "dependency-cycle" | "observation-unhealthy" | "adoption-drift";
1273
1275
  message: string;
@@ -1275,14 +1277,14 @@ export declare const hostedTopologyPlanSchema: z.ZodEffects<z.ZodObject<{
1275
1277
  }[];
1276
1278
  planDigest: string;
1277
1279
  actions: {
1278
- kind: "admin-application" | "pages-application" | "dns-record" | "tls-policy" | "api-proxy" | "control-plane-api" | "postgresql" | "operations-runner" | "treedx-service";
1279
- provider: "cloudflare" | "railway";
1280
- action: "noop" | "create" | "adopt" | "update";
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";
1281
1283
  resourceId: string;
1282
1284
  providerResourceId: string | null;
1283
1285
  desiredResource: {
1284
- kind: "admin-application" | "pages-application" | "dns-record" | "tls-policy" | "api-proxy" | "control-plane-api" | "postgresql" | "operations-runner" | "treedx-service";
1285
- provider: "cloudflare" | "railway";
1286
+ kind: "postgresql" | "admin-application" | "pages-application" | "dns-record" | "tls-policy" | "api-proxy" | "control-plane-api" | "operations-runner" | "treedx-service";
1287
+ provider: "railway" | "cloudflare";
1286
1288
  id: string;
1287
1289
  dependsOn: string[];
1288
1290
  parameters: Record<string, {
@@ -1306,18 +1308,16 @@ export declare const hostedTopologyPlanSchema: z.ZodEffects<z.ZodObject<{
1306
1308
  desiredDigest: string;
1307
1309
  previousDigest: string | null;
1308
1310
  }[];
1309
- teamId: string;
1310
- environment: "production" | "staging";
1311
1311
  executable: false;
1312
1312
  artifacts: Record<string, {
1313
1313
  kind: "archive";
1314
- digest: string;
1315
- source: string;
1316
1314
  format: "tar+gzip";
1315
+ source: string;
1316
+ digest: string;
1317
1317
  } | {
1318
1318
  kind: "file";
1319
- digest: string;
1320
1319
  source: string;
1320
+ digest: string;
1321
1321
  mediaType: string;
1322
1322
  } | {
1323
1323
  identity: string;
@@ -1332,18 +1332,18 @@ export declare const hostedTopologyPlanSchema: z.ZodEffects<z.ZodObject<{
1332
1332
  schemaVersion: "treeseed.hosted-state-backend/v1";
1333
1333
  key: string;
1334
1334
  teamId: string;
1335
- environment: "production" | "staging";
1336
- deploymentId: string;
1335
+ region: string;
1336
+ environment: "staging" | "production";
1337
1337
  bucket: string;
1338
+ deploymentId: string;
1338
1339
  stackId: string;
1339
1340
  connectionRef: string;
1340
- region: string;
1341
1341
  encryptionKeyRef: string;
1342
1342
  bindingDigest: string;
1343
1343
  endpoint?: string | undefined;
1344
1344
  usePathStyle?: boolean | undefined;
1345
1345
  } | null;
1346
- providerConnections: Partial<Record<"cloudflare" | "railway", {
1346
+ providerConnections: Partial<Record<"railway" | "cloudflare", {
1347
1347
  connectionRef: string;
1348
1348
  nonSecretConfig: Record<string, string | number | boolean>;
1349
1349
  }>>;
@@ -1353,6 +1353,8 @@ export declare const hostedTopologyPlanSchema: z.ZodEffects<z.ZodObject<{
1353
1353
  authorization: "authenticated-agent";
1354
1354
  }, {
1355
1355
  schemaVersion: "treeseed.hosted-topology-plan/v1";
1356
+ teamId: string;
1357
+ environment: "staging" | "production";
1356
1358
  blockers: {
1357
1359
  code: "connection-unavailable" | "state-backend-unavailable" | "dependency-cycle" | "observation-unhealthy" | "adoption-drift";
1358
1360
  message: string;
@@ -1360,14 +1362,14 @@ export declare const hostedTopologyPlanSchema: z.ZodEffects<z.ZodObject<{
1360
1362
  }[];
1361
1363
  planDigest: string;
1362
1364
  actions: {
1363
- kind: "admin-application" | "pages-application" | "dns-record" | "tls-policy" | "api-proxy" | "control-plane-api" | "postgresql" | "operations-runner" | "treedx-service";
1364
- provider: "cloudflare" | "railway";
1365
- action: "noop" | "create" | "adopt" | "update";
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";
1366
1368
  resourceId: string;
1367
1369
  providerResourceId: string | null;
1368
1370
  desiredResource: {
1369
- kind: "admin-application" | "pages-application" | "dns-record" | "tls-policy" | "api-proxy" | "control-plane-api" | "postgresql" | "operations-runner" | "treedx-service";
1370
- provider: "cloudflare" | "railway";
1371
+ kind: "postgresql" | "admin-application" | "pages-application" | "dns-record" | "tls-policy" | "api-proxy" | "control-plane-api" | "operations-runner" | "treedx-service";
1372
+ provider: "railway" | "cloudflare";
1371
1373
  id: string;
1372
1374
  adoption: {
1373
1375
  mode: "adopt-or-create";
@@ -1391,18 +1393,16 @@ export declare const hostedTopologyPlanSchema: z.ZodEffects<z.ZodObject<{
1391
1393
  desiredDigest: string;
1392
1394
  previousDigest: string | null;
1393
1395
  }[];
1394
- teamId: string;
1395
- environment: "production" | "staging";
1396
1396
  executable: false;
1397
1397
  artifacts: Record<string, {
1398
1398
  kind: "archive";
1399
- digest: string;
1400
- source: string;
1401
1399
  format: "tar+gzip";
1400
+ source: string;
1401
+ digest: string;
1402
1402
  } | {
1403
1403
  kind: "file";
1404
- digest: string;
1405
1404
  source: string;
1405
+ digest: string;
1406
1406
  mediaType: string;
1407
1407
  } | {
1408
1408
  identity: string;
@@ -1417,18 +1417,18 @@ export declare const hostedTopologyPlanSchema: z.ZodEffects<z.ZodObject<{
1417
1417
  schemaVersion: "treeseed.hosted-state-backend/v1";
1418
1418
  key: string;
1419
1419
  teamId: string;
1420
- environment: "production" | "staging";
1421
- deploymentId: string;
1420
+ region: string;
1421
+ environment: "staging" | "production";
1422
1422
  bucket: string;
1423
+ deploymentId: string;
1423
1424
  stackId: string;
1424
1425
  connectionRef: string;
1425
- region: string;
1426
1426
  encryptionKeyRef: string;
1427
1427
  bindingDigest: string;
1428
1428
  endpoint?: string | undefined;
1429
1429
  usePathStyle?: boolean | undefined;
1430
1430
  } | null;
1431
- providerConnections: Partial<Record<"cloudflare" | "railway", {
1431
+ providerConnections: Partial<Record<"railway" | "cloudflare", {
1432
1432
  connectionRef: string;
1433
1433
  nonSecretConfig: Record<string, string | number | boolean>;
1434
1434
  }>>;
@@ -1470,12 +1470,12 @@ export declare const authorizedHostedTopologyPlanSchema: z.ZodEffects<z.ZodObjec
1470
1470
  schemaVersion: "treeseed.hosted-state-backend/v1";
1471
1471
  key: string;
1472
1472
  teamId: string;
1473
- environment: "production" | "staging";
1474
- deploymentId: string;
1473
+ region: string;
1474
+ environment: "staging" | "production";
1475
1475
  bucket: string;
1476
+ deploymentId: string;
1476
1477
  stackId: string;
1477
1478
  connectionRef: string;
1478
- region: string;
1479
1479
  encryptionKeyRef: string;
1480
1480
  bindingDigest: string;
1481
1481
  endpoint?: string | undefined;
@@ -1485,12 +1485,12 @@ export declare const authorizedHostedTopologyPlanSchema: z.ZodEffects<z.ZodObjec
1485
1485
  schemaVersion: "treeseed.hosted-state-backend/v1";
1486
1486
  key: string;
1487
1487
  teamId: string;
1488
- environment: "production" | "staging";
1489
- deploymentId: string;
1488
+ region: string;
1489
+ environment: "staging" | "production";
1490
1490
  bucket: string;
1491
+ deploymentId: string;
1491
1492
  stackId: string;
1492
1493
  connectionRef: string;
1493
- region: string;
1494
1494
  encryptionKeyRef: string;
1495
1495
  bindingDigest: string;
1496
1496
  endpoint?: string | undefined;
@@ -1500,12 +1500,12 @@ export declare const authorizedHostedTopologyPlanSchema: z.ZodEffects<z.ZodObjec
1500
1500
  schemaVersion: "treeseed.hosted-state-backend/v1";
1501
1501
  key: string;
1502
1502
  teamId: string;
1503
- environment: "production" | "staging";
1504
- deploymentId: string;
1503
+ region: string;
1504
+ environment: "staging" | "production";
1505
1505
  bucket: string;
1506
+ deploymentId: string;
1506
1507
  stackId: string;
1507
1508
  connectionRef: string;
1508
- region: string;
1509
1509
  encryptionKeyRef: string;
1510
1510
  bindingDigest: string;
1511
1511
  endpoint?: string | undefined;
@@ -1515,12 +1515,12 @@ export declare const authorizedHostedTopologyPlanSchema: z.ZodEffects<z.ZodObjec
1515
1515
  schemaVersion: "treeseed.hosted-state-backend/v1";
1516
1516
  key: string;
1517
1517
  teamId: string;
1518
- environment: "production" | "staging";
1519
- deploymentId: string;
1518
+ region: string;
1519
+ environment: "staging" | "production";
1520
1520
  bucket: string;
1521
+ deploymentId: string;
1521
1522
  stackId: string;
1522
1523
  connectionRef: string;
1523
- region: string;
1524
1524
  encryptionKeyRef: string;
1525
1525
  bindingDigest: string;
1526
1526
  endpoint?: string | undefined;
@@ -1533,14 +1533,14 @@ export declare const authorizedHostedTopologyPlanSchema: z.ZodEffects<z.ZodObjec
1533
1533
  source: z.ZodString;
1534
1534
  }, "strict", z.ZodTypeAny, {
1535
1535
  kind: "archive";
1536
- digest: string;
1537
- source: string;
1538
1536
  format: "tar+gzip";
1537
+ source: string;
1538
+ digest: string;
1539
1539
  }, {
1540
1540
  kind: "archive";
1541
- digest: string;
1542
- source: string;
1543
1541
  format: "tar+gzip";
1542
+ source: string;
1543
+ digest: string;
1544
1544
  }>, z.ZodObject<{
1545
1545
  kind: z.ZodLiteral<"file">;
1546
1546
  mediaType: z.ZodString;
@@ -1548,13 +1548,13 @@ export declare const authorizedHostedTopologyPlanSchema: z.ZodEffects<z.ZodObjec
1548
1548
  source: z.ZodString;
1549
1549
  }, "strict", z.ZodTypeAny, {
1550
1550
  kind: "file";
1551
- digest: string;
1552
1551
  source: string;
1552
+ digest: string;
1553
1553
  mediaType: string;
1554
1554
  }, {
1555
1555
  kind: "file";
1556
- digest: string;
1557
1556
  source: string;
1557
+ digest: string;
1558
1558
  mediaType: string;
1559
1559
  }>, z.ZodEffects<z.ZodObject<{
1560
1560
  kind: z.ZodLiteral<"oci-image">;
@@ -1657,8 +1657,8 @@ export declare const authorizedHostedTopologyPlanSchema: z.ZodEffects<z.ZodObjec
1657
1657
  externalIdInput?: string | undefined;
1658
1658
  }>;
1659
1659
  }, "strict", z.ZodTypeAny, {
1660
- kind: "admin-application" | "pages-application" | "dns-record" | "tls-policy" | "api-proxy" | "control-plane-api" | "postgresql" | "operations-runner" | "treedx-service";
1661
- provider: "cloudflare" | "railway";
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
1662
  id: string;
1663
1663
  dependsOn: string[];
1664
1664
  parameters: Record<string, {
@@ -1679,8 +1679,8 @@ export declare const authorizedHostedTopologyPlanSchema: z.ZodEffects<z.ZodObjec
1679
1679
  externalIdInput?: string | undefined;
1680
1680
  };
1681
1681
  }, {
1682
- kind: "admin-application" | "pages-application" | "dns-record" | "tls-policy" | "api-proxy" | "control-plane-api" | "postgresql" | "operations-runner" | "treedx-service";
1683
- provider: "cloudflare" | "railway";
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
1684
  id: string;
1685
1685
  adoption: {
1686
1686
  mode: "adopt-or-create";
@@ -1705,14 +1705,14 @@ export declare const authorizedHostedTopologyPlanSchema: z.ZodEffects<z.ZodObjec
1705
1705
  previousDigest: z.ZodNullable<z.ZodString>;
1706
1706
  providerResourceId: z.ZodNullable<z.ZodString>;
1707
1707
  }, "strict", z.ZodTypeAny, {
1708
- kind: "admin-application" | "pages-application" | "dns-record" | "tls-policy" | "api-proxy" | "control-plane-api" | "postgresql" | "operations-runner" | "treedx-service";
1709
- provider: "cloudflare" | "railway";
1710
- action: "noop" | "create" | "adopt" | "update";
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
1711
  resourceId: string;
1712
1712
  providerResourceId: string | null;
1713
1713
  desiredResource: {
1714
- kind: "admin-application" | "pages-application" | "dns-record" | "tls-policy" | "api-proxy" | "control-plane-api" | "postgresql" | "operations-runner" | "treedx-service";
1715
- provider: "cloudflare" | "railway";
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
1716
  id: string;
1717
1717
  dependsOn: string[];
1718
1718
  parameters: Record<string, {
@@ -1736,14 +1736,14 @@ export declare const authorizedHostedTopologyPlanSchema: z.ZodEffects<z.ZodObjec
1736
1736
  desiredDigest: string;
1737
1737
  previousDigest: string | null;
1738
1738
  }, {
1739
- kind: "admin-application" | "pages-application" | "dns-record" | "tls-policy" | "api-proxy" | "control-plane-api" | "postgresql" | "operations-runner" | "treedx-service";
1740
- provider: "cloudflare" | "railway";
1741
- action: "noop" | "create" | "adopt" | "update";
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
1742
  resourceId: string;
1743
1743
  providerResourceId: string | null;
1744
1744
  desiredResource: {
1745
- kind: "admin-application" | "pages-application" | "dns-record" | "tls-policy" | "api-proxy" | "control-plane-api" | "postgresql" | "operations-runner" | "treedx-service";
1746
- provider: "cloudflare" | "railway";
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
1747
  id: string;
1748
1748
  adoption: {
1749
1749
  mode: "adopt-or-create";
@@ -1783,6 +1783,8 @@ export declare const authorizedHostedTopologyPlanSchema: z.ZodEffects<z.ZodObjec
1783
1783
  authorization: z.ZodLiteral<"authenticated-agent">;
1784
1784
  }, "strict", z.ZodTypeAny, {
1785
1785
  schemaVersion: "treeseed.hosted-topology-plan/v1";
1786
+ teamId: string;
1787
+ environment: "staging" | "production";
1786
1788
  blockers: {
1787
1789
  code: "connection-unavailable" | "state-backend-unavailable" | "dependency-cycle" | "observation-unhealthy" | "adoption-drift";
1788
1790
  message: string;
@@ -1790,14 +1792,14 @@ export declare const authorizedHostedTopologyPlanSchema: z.ZodEffects<z.ZodObjec
1790
1792
  }[];
1791
1793
  planDigest: string;
1792
1794
  actions: {
1793
- kind: "admin-application" | "pages-application" | "dns-record" | "tls-policy" | "api-proxy" | "control-plane-api" | "postgresql" | "operations-runner" | "treedx-service";
1794
- provider: "cloudflare" | "railway";
1795
- action: "noop" | "create" | "adopt" | "update";
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";
1796
1798
  resourceId: string;
1797
1799
  providerResourceId: string | null;
1798
1800
  desiredResource: {
1799
- kind: "admin-application" | "pages-application" | "dns-record" | "tls-policy" | "api-proxy" | "control-plane-api" | "postgresql" | "operations-runner" | "treedx-service";
1800
- provider: "cloudflare" | "railway";
1801
+ kind: "postgresql" | "admin-application" | "pages-application" | "dns-record" | "tls-policy" | "api-proxy" | "control-plane-api" | "operations-runner" | "treedx-service";
1802
+ provider: "railway" | "cloudflare";
1801
1803
  id: string;
1802
1804
  dependsOn: string[];
1803
1805
  parameters: Record<string, {
@@ -1821,18 +1823,16 @@ export declare const authorizedHostedTopologyPlanSchema: z.ZodEffects<z.ZodObjec
1821
1823
  desiredDigest: string;
1822
1824
  previousDigest: string | null;
1823
1825
  }[];
1824
- teamId: string;
1825
- environment: "production" | "staging";
1826
1826
  executable: true;
1827
1827
  artifacts: Record<string, {
1828
1828
  kind: "archive";
1829
- digest: string;
1830
- source: string;
1831
1829
  format: "tar+gzip";
1830
+ source: string;
1831
+ digest: string;
1832
1832
  } | {
1833
1833
  kind: "file";
1834
- digest: string;
1835
1834
  source: string;
1835
+ digest: string;
1836
1836
  mediaType: string;
1837
1837
  } | {
1838
1838
  identity: string;
@@ -1847,18 +1847,18 @@ export declare const authorizedHostedTopologyPlanSchema: z.ZodEffects<z.ZodObjec
1847
1847
  schemaVersion: "treeseed.hosted-state-backend/v1";
1848
1848
  key: string;
1849
1849
  teamId: string;
1850
- environment: "production" | "staging";
1851
- deploymentId: string;
1850
+ region: string;
1851
+ environment: "staging" | "production";
1852
1852
  bucket: string;
1853
+ deploymentId: string;
1853
1854
  stackId: string;
1854
1855
  connectionRef: string;
1855
- region: string;
1856
1856
  encryptionKeyRef: string;
1857
1857
  bindingDigest: string;
1858
1858
  endpoint?: string | undefined;
1859
1859
  usePathStyle?: boolean | undefined;
1860
1860
  } | null;
1861
- providerConnections: Partial<Record<"cloudflare" | "railway", {
1861
+ providerConnections: Partial<Record<"railway" | "cloudflare", {
1862
1862
  connectionRef: string;
1863
1863
  nonSecretConfig: Record<string, string | number | boolean>;
1864
1864
  }>>;
@@ -1868,6 +1868,8 @@ export declare const authorizedHostedTopologyPlanSchema: z.ZodEffects<z.ZodObjec
1868
1868
  authorization: "authenticated-agent";
1869
1869
  }, {
1870
1870
  schemaVersion: "treeseed.hosted-topology-plan/v1";
1871
+ teamId: string;
1872
+ environment: "staging" | "production";
1871
1873
  blockers: {
1872
1874
  code: "connection-unavailable" | "state-backend-unavailable" | "dependency-cycle" | "observation-unhealthy" | "adoption-drift";
1873
1875
  message: string;
@@ -1875,14 +1877,14 @@ export declare const authorizedHostedTopologyPlanSchema: z.ZodEffects<z.ZodObjec
1875
1877
  }[];
1876
1878
  planDigest: string;
1877
1879
  actions: {
1878
- kind: "admin-application" | "pages-application" | "dns-record" | "tls-policy" | "api-proxy" | "control-plane-api" | "postgresql" | "operations-runner" | "treedx-service";
1879
- provider: "cloudflare" | "railway";
1880
- action: "noop" | "create" | "adopt" | "update";
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";
1881
1883
  resourceId: string;
1882
1884
  providerResourceId: string | null;
1883
1885
  desiredResource: {
1884
- kind: "admin-application" | "pages-application" | "dns-record" | "tls-policy" | "api-proxy" | "control-plane-api" | "postgresql" | "operations-runner" | "treedx-service";
1885
- provider: "cloudflare" | "railway";
1886
+ kind: "postgresql" | "admin-application" | "pages-application" | "dns-record" | "tls-policy" | "api-proxy" | "control-plane-api" | "operations-runner" | "treedx-service";
1887
+ provider: "railway" | "cloudflare";
1886
1888
  id: string;
1887
1889
  adoption: {
1888
1890
  mode: "adopt-or-create";
@@ -1906,18 +1908,16 @@ export declare const authorizedHostedTopologyPlanSchema: z.ZodEffects<z.ZodObjec
1906
1908
  desiredDigest: string;
1907
1909
  previousDigest: string | null;
1908
1910
  }[];
1909
- teamId: string;
1910
- environment: "production" | "staging";
1911
1911
  executable: true;
1912
1912
  artifacts: Record<string, {
1913
1913
  kind: "archive";
1914
- digest: string;
1915
- source: string;
1916
1914
  format: "tar+gzip";
1915
+ source: string;
1916
+ digest: string;
1917
1917
  } | {
1918
1918
  kind: "file";
1919
- digest: string;
1920
1919
  source: string;
1920
+ digest: string;
1921
1921
  mediaType: string;
1922
1922
  } | {
1923
1923
  identity: string;
@@ -1932,18 +1932,18 @@ export declare const authorizedHostedTopologyPlanSchema: z.ZodEffects<z.ZodObjec
1932
1932
  schemaVersion: "treeseed.hosted-state-backend/v1";
1933
1933
  key: string;
1934
1934
  teamId: string;
1935
- environment: "production" | "staging";
1936
- deploymentId: string;
1935
+ region: string;
1936
+ environment: "staging" | "production";
1937
1937
  bucket: string;
1938
+ deploymentId: string;
1938
1939
  stackId: string;
1939
1940
  connectionRef: string;
1940
- region: string;
1941
1941
  encryptionKeyRef: string;
1942
1942
  bindingDigest: string;
1943
1943
  endpoint?: string | undefined;
1944
1944
  usePathStyle?: boolean | undefined;
1945
1945
  } | null;
1946
- providerConnections: Partial<Record<"cloudflare" | "railway", {
1946
+ providerConnections: Partial<Record<"railway" | "cloudflare", {
1947
1947
  connectionRef: string;
1948
1948
  nonSecretConfig: Record<string, string | number | boolean>;
1949
1949
  }>>;
@@ -1953,6 +1953,8 @@ export declare const authorizedHostedTopologyPlanSchema: z.ZodEffects<z.ZodObjec
1953
1953
  authorization: "authenticated-agent";
1954
1954
  }>, {
1955
1955
  schemaVersion: "treeseed.hosted-topology-plan/v1";
1956
+ teamId: string;
1957
+ environment: "staging" | "production";
1956
1958
  blockers: {
1957
1959
  code: "connection-unavailable" | "state-backend-unavailable" | "dependency-cycle" | "observation-unhealthy" | "adoption-drift";
1958
1960
  message: string;
@@ -1960,14 +1962,14 @@ export declare const authorizedHostedTopologyPlanSchema: z.ZodEffects<z.ZodObjec
1960
1962
  }[];
1961
1963
  planDigest: string;
1962
1964
  actions: {
1963
- kind: "admin-application" | "pages-application" | "dns-record" | "tls-policy" | "api-proxy" | "control-plane-api" | "postgresql" | "operations-runner" | "treedx-service";
1964
- provider: "cloudflare" | "railway";
1965
- action: "noop" | "create" | "adopt" | "update";
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";
1966
1968
  resourceId: string;
1967
1969
  providerResourceId: string | null;
1968
1970
  desiredResource: {
1969
- kind: "admin-application" | "pages-application" | "dns-record" | "tls-policy" | "api-proxy" | "control-plane-api" | "postgresql" | "operations-runner" | "treedx-service";
1970
- provider: "cloudflare" | "railway";
1971
+ kind: "postgresql" | "admin-application" | "pages-application" | "dns-record" | "tls-policy" | "api-proxy" | "control-plane-api" | "operations-runner" | "treedx-service";
1972
+ provider: "railway" | "cloudflare";
1971
1973
  id: string;
1972
1974
  dependsOn: string[];
1973
1975
  parameters: Record<string, {
@@ -1991,18 +1993,16 @@ export declare const authorizedHostedTopologyPlanSchema: z.ZodEffects<z.ZodObjec
1991
1993
  desiredDigest: string;
1992
1994
  previousDigest: string | null;
1993
1995
  }[];
1994
- teamId: string;
1995
- environment: "production" | "staging";
1996
1996
  executable: true;
1997
1997
  artifacts: Record<string, {
1998
1998
  kind: "archive";
1999
- digest: string;
2000
- source: string;
2001
1999
  format: "tar+gzip";
2000
+ source: string;
2001
+ digest: string;
2002
2002
  } | {
2003
2003
  kind: "file";
2004
- digest: string;
2005
2004
  source: string;
2005
+ digest: string;
2006
2006
  mediaType: string;
2007
2007
  } | {
2008
2008
  identity: string;
@@ -2017,18 +2017,18 @@ export declare const authorizedHostedTopologyPlanSchema: z.ZodEffects<z.ZodObjec
2017
2017
  schemaVersion: "treeseed.hosted-state-backend/v1";
2018
2018
  key: string;
2019
2019
  teamId: string;
2020
- environment: "production" | "staging";
2021
- deploymentId: string;
2020
+ region: string;
2021
+ environment: "staging" | "production";
2022
2022
  bucket: string;
2023
+ deploymentId: string;
2023
2024
  stackId: string;
2024
2025
  connectionRef: string;
2025
- region: string;
2026
2026
  encryptionKeyRef: string;
2027
2027
  bindingDigest: string;
2028
2028
  endpoint?: string | undefined;
2029
2029
  usePathStyle?: boolean | undefined;
2030
2030
  } | null;
2031
- providerConnections: Partial<Record<"cloudflare" | "railway", {
2031
+ providerConnections: Partial<Record<"railway" | "cloudflare", {
2032
2032
  connectionRef: string;
2033
2033
  nonSecretConfig: Record<string, string | number | boolean>;
2034
2034
  }>>;
@@ -2038,6 +2038,8 @@ export declare const authorizedHostedTopologyPlanSchema: z.ZodEffects<z.ZodObjec
2038
2038
  authorization: "authenticated-agent";
2039
2039
  }, {
2040
2040
  schemaVersion: "treeseed.hosted-topology-plan/v1";
2041
+ teamId: string;
2042
+ environment: "staging" | "production";
2041
2043
  blockers: {
2042
2044
  code: "connection-unavailable" | "state-backend-unavailable" | "dependency-cycle" | "observation-unhealthy" | "adoption-drift";
2043
2045
  message: string;
@@ -2045,14 +2047,14 @@ export declare const authorizedHostedTopologyPlanSchema: z.ZodEffects<z.ZodObjec
2045
2047
  }[];
2046
2048
  planDigest: string;
2047
2049
  actions: {
2048
- kind: "admin-application" | "pages-application" | "dns-record" | "tls-policy" | "api-proxy" | "control-plane-api" | "postgresql" | "operations-runner" | "treedx-service";
2049
- provider: "cloudflare" | "railway";
2050
- action: "noop" | "create" | "adopt" | "update";
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";
2051
2053
  resourceId: string;
2052
2054
  providerResourceId: string | null;
2053
2055
  desiredResource: {
2054
- kind: "admin-application" | "pages-application" | "dns-record" | "tls-policy" | "api-proxy" | "control-plane-api" | "postgresql" | "operations-runner" | "treedx-service";
2055
- provider: "cloudflare" | "railway";
2056
+ kind: "postgresql" | "admin-application" | "pages-application" | "dns-record" | "tls-policy" | "api-proxy" | "control-plane-api" | "operations-runner" | "treedx-service";
2057
+ provider: "railway" | "cloudflare";
2056
2058
  id: string;
2057
2059
  adoption: {
2058
2060
  mode: "adopt-or-create";
@@ -2076,18 +2078,16 @@ export declare const authorizedHostedTopologyPlanSchema: z.ZodEffects<z.ZodObjec
2076
2078
  desiredDigest: string;
2077
2079
  previousDigest: string | null;
2078
2080
  }[];
2079
- teamId: string;
2080
- environment: "production" | "staging";
2081
2081
  executable: true;
2082
2082
  artifacts: Record<string, {
2083
2083
  kind: "archive";
2084
- digest: string;
2085
- source: string;
2086
2084
  format: "tar+gzip";
2085
+ source: string;
2086
+ digest: string;
2087
2087
  } | {
2088
2088
  kind: "file";
2089
- digest: string;
2090
2089
  source: string;
2090
+ digest: string;
2091
2091
  mediaType: string;
2092
2092
  } | {
2093
2093
  identity: string;
@@ -2102,18 +2102,18 @@ export declare const authorizedHostedTopologyPlanSchema: z.ZodEffects<z.ZodObjec
2102
2102
  schemaVersion: "treeseed.hosted-state-backend/v1";
2103
2103
  key: string;
2104
2104
  teamId: string;
2105
- environment: "production" | "staging";
2106
- deploymentId: string;
2105
+ region: string;
2106
+ environment: "staging" | "production";
2107
2107
  bucket: string;
2108
+ deploymentId: string;
2108
2109
  stackId: string;
2109
2110
  connectionRef: string;
2110
- region: string;
2111
2111
  encryptionKeyRef: string;
2112
2112
  bindingDigest: string;
2113
2113
  endpoint?: string | undefined;
2114
2114
  usePathStyle?: boolean | undefined;
2115
2115
  } | null;
2116
- providerConnections: Partial<Record<"cloudflare" | "railway", {
2116
+ providerConnections: Partial<Record<"railway" | "cloudflare", {
2117
2117
  connectionRef: string;
2118
2118
  nonSecretConfig: Record<string, string | number | boolean>;
2119
2119
  }>>;
@@ -2144,23 +2144,23 @@ export declare const hostedTopologyReceiptSchema: z.ZodObject<{
2144
2144
  observedDigest: z.ZodNullable<z.ZodString>;
2145
2145
  observedAt: z.ZodString;
2146
2146
  }, "strict", z.ZodTypeAny, {
2147
- kind: "admin-application" | "pages-application" | "dns-record" | "tls-policy" | "api-proxy" | "control-plane-api" | "postgresql" | "operations-runner" | "treedx-service";
2148
- provider: "cloudflare" | "railway";
2149
- state: "missing" | "degraded" | "healthy";
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;
2150
2151
  resourceId: string;
2151
2152
  providerResourceId: string | null;
2152
2153
  managedBy: "external" | "treeseed" | null;
2153
2154
  observedDigest: string | null;
2154
- observedAt: string;
2155
2155
  }, {
2156
- kind: "admin-application" | "pages-application" | "dns-record" | "tls-policy" | "api-proxy" | "control-plane-api" | "postgresql" | "operations-runner" | "treedx-service";
2157
- provider: "cloudflare" | "railway";
2158
- state: "missing" | "degraded" | "healthy";
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;
2159
2160
  resourceId: string;
2160
2161
  providerResourceId: string | null;
2161
2162
  managedBy: "external" | "treeseed" | null;
2162
2163
  observedDigest: string | null;
2163
- observedAt: string;
2164
2164
  }>, "many">;
2165
2165
  previousResources: z.ZodArray<z.ZodObject<{
2166
2166
  resourceId: z.ZodString;
@@ -2172,43 +2172,43 @@ export declare const hostedTopologyReceiptSchema: z.ZodObject<{
2172
2172
  observedDigest: z.ZodNullable<z.ZodString>;
2173
2173
  observedAt: z.ZodString;
2174
2174
  }, "strict", z.ZodTypeAny, {
2175
- kind: "admin-application" | "pages-application" | "dns-record" | "tls-policy" | "api-proxy" | "control-plane-api" | "postgresql" | "operations-runner" | "treedx-service";
2176
- provider: "cloudflare" | "railway";
2177
- state: "missing" | "degraded" | "healthy";
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;
2178
2179
  resourceId: string;
2179
2180
  providerResourceId: string | null;
2180
2181
  managedBy: "external" | "treeseed" | null;
2181
2182
  observedDigest: string | null;
2182
- observedAt: string;
2183
2183
  }, {
2184
- kind: "admin-application" | "pages-application" | "dns-record" | "tls-policy" | "api-proxy" | "control-plane-api" | "postgresql" | "operations-runner" | "treedx-service";
2185
- provider: "cloudflare" | "railway";
2186
- state: "missing" | "degraded" | "healthy";
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;
2187
2188
  resourceId: string;
2188
2189
  providerResourceId: string | null;
2189
2190
  managedBy: "external" | "treeseed" | null;
2190
2191
  observedDigest: string | null;
2191
- observedAt: string;
2192
2192
  }>, "many">;
2193
2193
  state: z.ZodLiteral<"known-good">;
2194
2194
  completedAt: z.ZodString;
2195
2195
  }, "strict", z.ZodTypeAny, {
2196
2196
  state: "known-good";
2197
2197
  schemaVersion: "treeseed.hosted-topology-receipt/v1";
2198
+ teamId: string;
2199
+ environment: "staging" | "production";
2200
+ completedAt: string;
2198
2201
  resources: {
2199
- kind: "admin-application" | "pages-application" | "dns-record" | "tls-policy" | "api-proxy" | "control-plane-api" | "postgresql" | "operations-runner" | "treedx-service";
2200
- provider: "cloudflare" | "railway";
2201
- state: "missing" | "degraded" | "healthy";
2202
+ 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;
2202
2206
  resourceId: string;
2203
2207
  providerResourceId: string | null;
2204
2208
  managedBy: "external" | "treeseed" | null;
2205
2209
  observedDigest: string | null;
2206
- observedAt: string;
2207
2210
  }[];
2208
2211
  planDigest: string;
2209
- teamId: string;
2210
- environment: "production" | "staging";
2211
- completedAt: string;
2212
2212
  receiptId: string;
2213
2213
  deploymentId: string;
2214
2214
  stackId: string;
@@ -2217,32 +2217,32 @@ export declare const hostedTopologyReceiptSchema: z.ZodObject<{
2217
2217
  platformCommit: string;
2218
2218
  backendBindingDigest: string;
2219
2219
  previousResources: {
2220
- kind: "admin-application" | "pages-application" | "dns-record" | "tls-policy" | "api-proxy" | "control-plane-api" | "postgresql" | "operations-runner" | "treedx-service";
2221
- provider: "cloudflare" | "railway";
2222
- state: "missing" | "degraded" | "healthy";
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;
2223
2224
  resourceId: string;
2224
2225
  providerResourceId: string | null;
2225
2226
  managedBy: "external" | "treeseed" | null;
2226
2227
  observedDigest: string | null;
2227
- observedAt: string;
2228
2228
  }[];
2229
2229
  }, {
2230
2230
  state: "known-good";
2231
2231
  schemaVersion: "treeseed.hosted-topology-receipt/v1";
2232
+ teamId: string;
2233
+ environment: "staging" | "production";
2234
+ completedAt: string;
2232
2235
  resources: {
2233
- kind: "admin-application" | "pages-application" | "dns-record" | "tls-policy" | "api-proxy" | "control-plane-api" | "postgresql" | "operations-runner" | "treedx-service";
2234
- provider: "cloudflare" | "railway";
2235
- state: "missing" | "degraded" | "healthy";
2236
+ 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;
2236
2240
  resourceId: string;
2237
2241
  providerResourceId: string | null;
2238
2242
  managedBy: "external" | "treeseed" | null;
2239
2243
  observedDigest: string | null;
2240
- observedAt: string;
2241
2244
  }[];
2242
2245
  planDigest: string;
2243
- teamId: string;
2244
- environment: "production" | "staging";
2245
- completedAt: string;
2246
2246
  receiptId: string;
2247
2247
  deploymentId: string;
2248
2248
  stackId: string;
@@ -2251,14 +2251,14 @@ export declare const hostedTopologyReceiptSchema: z.ZodObject<{
2251
2251
  platformCommit: string;
2252
2252
  backendBindingDigest: string;
2253
2253
  previousResources: {
2254
- kind: "admin-application" | "pages-application" | "dns-record" | "tls-policy" | "api-proxy" | "control-plane-api" | "postgresql" | "operations-runner" | "treedx-service";
2255
- provider: "cloudflare" | "railway";
2256
- state: "missing" | "degraded" | "healthy";
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;
2257
2258
  resourceId: string;
2258
2259
  providerResourceId: string | null;
2259
2260
  managedBy: "external" | "treeseed" | null;
2260
2261
  observedDigest: string | null;
2261
- observedAt: string;
2262
2262
  }[];
2263
2263
  }>;
2264
2264
  export declare const hostedTopologyRollbackSchema: z.ZodEffects<z.ZodObject<{
@@ -2290,13 +2290,13 @@ export declare const hostedTopologyRollbackSchema: z.ZodEffects<z.ZodObject<{
2290
2290
  }, "strict", z.ZodTypeAny, {
2291
2291
  schemaVersion: "treeseed.hosted-topology-rollback/v1";
2292
2292
  teamId: string;
2293
- environment: "production" | "staging";
2294
2293
  operations: {
2295
2294
  action: "noop" | "restore" | "delete-created";
2296
2295
  resourceId: string;
2297
2296
  providerResourceId: string;
2298
2297
  targetDigest: string | null;
2299
2298
  }[];
2299
+ environment: "staging" | "production";
2300
2300
  deploymentId: string;
2301
2301
  stackId: string;
2302
2302
  backendBindingDigest: string;
@@ -2306,13 +2306,13 @@ export declare const hostedTopologyRollbackSchema: z.ZodEffects<z.ZodObject<{
2306
2306
  }, {
2307
2307
  schemaVersion: "treeseed.hosted-topology-rollback/v1";
2308
2308
  teamId: string;
2309
- environment: "production" | "staging";
2310
2309
  operations: {
2311
2310
  action: "noop" | "restore" | "delete-created";
2312
2311
  resourceId: string;
2313
2312
  providerResourceId: string;
2314
2313
  targetDigest: string | null;
2315
2314
  }[];
2315
+ environment: "staging" | "production";
2316
2316
  deploymentId: string;
2317
2317
  stackId: string;
2318
2318
  backendBindingDigest: string;
@@ -2322,13 +2322,13 @@ export declare const hostedTopologyRollbackSchema: z.ZodEffects<z.ZodObject<{
2322
2322
  }>, {
2323
2323
  schemaVersion: "treeseed.hosted-topology-rollback/v1";
2324
2324
  teamId: string;
2325
- environment: "production" | "staging";
2326
2325
  operations: {
2327
2326
  action: "noop" | "restore" | "delete-created";
2328
2327
  resourceId: string;
2329
2328
  providerResourceId: string;
2330
2329
  targetDigest: string | null;
2331
2330
  }[];
2331
+ environment: "staging" | "production";
2332
2332
  deploymentId: string;
2333
2333
  stackId: string;
2334
2334
  backendBindingDigest: string;
@@ -2338,13 +2338,13 @@ export declare const hostedTopologyRollbackSchema: z.ZodEffects<z.ZodObject<{
2338
2338
  }, {
2339
2339
  schemaVersion: "treeseed.hosted-topology-rollback/v1";
2340
2340
  teamId: string;
2341
- environment: "production" | "staging";
2342
2341
  operations: {
2343
2342
  action: "noop" | "restore" | "delete-created";
2344
2343
  resourceId: string;
2345
2344
  providerResourceId: string;
2346
2345
  targetDigest: string | null;
2347
2346
  }[];
2347
+ environment: "staging" | "production";
2348
2348
  deploymentId: string;
2349
2349
  stackId: string;
2350
2350
  backendBindingDigest: string;
@@ -2383,13 +2383,13 @@ export declare const hostedTopologyRollbackExecutionSchema: z.ZodEffects<z.ZodOb
2383
2383
  }, "strict", z.ZodTypeAny, {
2384
2384
  schemaVersion: "treeseed.hosted-topology-rollback/v1";
2385
2385
  teamId: string;
2386
- environment: "production" | "staging";
2387
2386
  operations: {
2388
2387
  action: "noop" | "restore" | "delete-created";
2389
2388
  resourceId: string;
2390
2389
  providerResourceId: string;
2391
2390
  targetDigest: string | null;
2392
2391
  }[];
2392
+ environment: "staging" | "production";
2393
2393
  deploymentId: string;
2394
2394
  stackId: string;
2395
2395
  backendBindingDigest: string;
@@ -2399,13 +2399,13 @@ export declare const hostedTopologyRollbackExecutionSchema: z.ZodEffects<z.ZodOb
2399
2399
  }, {
2400
2400
  schemaVersion: "treeseed.hosted-topology-rollback/v1";
2401
2401
  teamId: string;
2402
- environment: "production" | "staging";
2403
2402
  operations: {
2404
2403
  action: "noop" | "restore" | "delete-created";
2405
2404
  resourceId: string;
2406
2405
  providerResourceId: string;
2407
2406
  targetDigest: string | null;
2408
2407
  }[];
2408
+ environment: "staging" | "production";
2409
2409
  deploymentId: string;
2410
2410
  stackId: string;
2411
2411
  backendBindingDigest: string;
@@ -2415,13 +2415,13 @@ export declare const hostedTopologyRollbackExecutionSchema: z.ZodEffects<z.ZodOb
2415
2415
  }>, {
2416
2416
  schemaVersion: "treeseed.hosted-topology-rollback/v1";
2417
2417
  teamId: string;
2418
- environment: "production" | "staging";
2419
2418
  operations: {
2420
2419
  action: "noop" | "restore" | "delete-created";
2421
2420
  resourceId: string;
2422
2421
  providerResourceId: string;
2423
2422
  targetDigest: string | null;
2424
2423
  }[];
2424
+ environment: "staging" | "production";
2425
2425
  deploymentId: string;
2426
2426
  stackId: string;
2427
2427
  backendBindingDigest: string;
@@ -2431,13 +2431,13 @@ export declare const hostedTopologyRollbackExecutionSchema: z.ZodEffects<z.ZodOb
2431
2431
  }, {
2432
2432
  schemaVersion: "treeseed.hosted-topology-rollback/v1";
2433
2433
  teamId: string;
2434
- environment: "production" | "staging";
2435
2434
  operations: {
2436
2435
  action: "noop" | "restore" | "delete-created";
2437
2436
  resourceId: string;
2438
2437
  providerResourceId: string;
2439
2438
  targetDigest: string | null;
2440
2439
  }[];
2440
+ environment: "staging" | "production";
2441
2441
  deploymentId: string;
2442
2442
  stackId: string;
2443
2443
  backendBindingDigest: string;
@@ -2458,17 +2458,17 @@ export declare const hostedTopologyRollbackExecutionSchema: z.ZodEffects<z.ZodOb
2458
2458
  }, "strict", z.ZodTypeAny, {
2459
2459
  schemaVersion: "treeseed.hosted-topology-rollback-execution/v1";
2460
2460
  teamId: string;
2461
- environment: "production" | "staging";
2461
+ environment: "staging" | "production";
2462
2462
  rollback: {
2463
2463
  schemaVersion: "treeseed.hosted-topology-rollback/v1";
2464
2464
  teamId: string;
2465
- environment: "production" | "staging";
2466
2465
  operations: {
2467
2466
  action: "noop" | "restore" | "delete-created";
2468
2467
  resourceId: string;
2469
2468
  providerResourceId: string;
2470
2469
  targetDigest: string | null;
2471
2470
  }[];
2471
+ environment: "staging" | "production";
2472
2472
  deploymentId: string;
2473
2473
  stackId: string;
2474
2474
  backendBindingDigest: string;
@@ -2487,17 +2487,17 @@ export declare const hostedTopologyRollbackExecutionSchema: z.ZodEffects<z.ZodOb
2487
2487
  }, {
2488
2488
  schemaVersion: "treeseed.hosted-topology-rollback-execution/v1";
2489
2489
  teamId: string;
2490
- environment: "production" | "staging";
2490
+ environment: "staging" | "production";
2491
2491
  rollback: {
2492
2492
  schemaVersion: "treeseed.hosted-topology-rollback/v1";
2493
2493
  teamId: string;
2494
- environment: "production" | "staging";
2495
2494
  operations: {
2496
2495
  action: "noop" | "restore" | "delete-created";
2497
2496
  resourceId: string;
2498
2497
  providerResourceId: string;
2499
2498
  targetDigest: string | null;
2500
2499
  }[];
2500
+ environment: "staging" | "production";
2501
2501
  deploymentId: string;
2502
2502
  stackId: string;
2503
2503
  backendBindingDigest: string;
@@ -2516,17 +2516,17 @@ export declare const hostedTopologyRollbackExecutionSchema: z.ZodEffects<z.ZodOb
2516
2516
  }>, {
2517
2517
  schemaVersion: "treeseed.hosted-topology-rollback-execution/v1";
2518
2518
  teamId: string;
2519
- environment: "production" | "staging";
2519
+ environment: "staging" | "production";
2520
2520
  rollback: {
2521
2521
  schemaVersion: "treeseed.hosted-topology-rollback/v1";
2522
2522
  teamId: string;
2523
- environment: "production" | "staging";
2524
2523
  operations: {
2525
2524
  action: "noop" | "restore" | "delete-created";
2526
2525
  resourceId: string;
2527
2526
  providerResourceId: string;
2528
2527
  targetDigest: string | null;
2529
2528
  }[];
2529
+ environment: "staging" | "production";
2530
2530
  deploymentId: string;
2531
2531
  stackId: string;
2532
2532
  backendBindingDigest: string;
@@ -2545,17 +2545,17 @@ export declare const hostedTopologyRollbackExecutionSchema: z.ZodEffects<z.ZodOb
2545
2545
  }, {
2546
2546
  schemaVersion: "treeseed.hosted-topology-rollback-execution/v1";
2547
2547
  teamId: string;
2548
- environment: "production" | "staging";
2548
+ environment: "staging" | "production";
2549
2549
  rollback: {
2550
2550
  schemaVersion: "treeseed.hosted-topology-rollback/v1";
2551
2551
  teamId: string;
2552
- environment: "production" | "staging";
2553
2552
  operations: {
2554
2553
  action: "noop" | "restore" | "delete-created";
2555
2554
  resourceId: string;
2556
2555
  providerResourceId: string;
2557
2556
  targetDigest: string | null;
2558
2557
  }[];
2558
+ environment: "staging" | "production";
2559
2559
  deploymentId: string;
2560
2560
  stackId: string;
2561
2561
  backendBindingDigest: string;
@@ -2595,13 +2595,13 @@ export declare function verifyHostedTopologyReadback(input: {
2595
2595
  export declare function planHostedTopologyRollback(receiptInput: HostedTopologyReceipt): {
2596
2596
  schemaVersion: "treeseed.hosted-topology-rollback/v1";
2597
2597
  teamId: string;
2598
- environment: "production" | "staging";
2599
2598
  operations: {
2600
2599
  action: "noop" | "restore" | "delete-created";
2601
2600
  resourceId: string;
2602
2601
  providerResourceId: string;
2603
2602
  targetDigest: string | null;
2604
2603
  }[];
2604
+ environment: "staging" | "production";
2605
2605
  deploymentId: string;
2606
2606
  stackId: string;
2607
2607
  backendBindingDigest: string;
@@ -2613,13 +2613,13 @@ export declare function authorizeHostedTopologyRollback(rollbackInput: z.input<t
2613
2613
  rollback: {
2614
2614
  schemaVersion: "treeseed.hosted-topology-rollback/v1";
2615
2615
  teamId: string;
2616
- environment: "production" | "staging";
2617
2616
  operations: {
2618
2617
  action: "noop" | "restore" | "delete-created";
2619
2618
  resourceId: string;
2620
2619
  providerResourceId: string;
2621
2620
  targetDigest: string | null;
2622
2621
  }[];
2622
+ environment: "staging" | "production";
2623
2623
  deploymentId: string;
2624
2624
  stackId: string;
2625
2625
  backendBindingDigest: string;
@@ -2636,17 +2636,17 @@ export declare function planHostedTopologyRollbackExecution(input: {
2636
2636
  }): {
2637
2637
  schemaVersion: "treeseed.hosted-topology-rollback-execution/v1";
2638
2638
  teamId: string;
2639
- environment: "production" | "staging";
2639
+ environment: "staging" | "production";
2640
2640
  rollback: {
2641
2641
  schemaVersion: "treeseed.hosted-topology-rollback/v1";
2642
2642
  teamId: string;
2643
- environment: "production" | "staging";
2644
2643
  operations: {
2645
2644
  action: "noop" | "restore" | "delete-created";
2646
2645
  resourceId: string;
2647
2646
  providerResourceId: string;
2648
2647
  targetDigest: string | null;
2649
2648
  }[];
2649
+ environment: "staging" | "production";
2650
2650
  deploymentId: string;
2651
2651
  stackId: string;
2652
2652
  backendBindingDigest: string;
@@ -2667,17 +2667,17 @@ export declare function authorizeHostedTopologyRollbackExecution(executionInput:
2667
2667
  execution: {
2668
2668
  schemaVersion: "treeseed.hosted-topology-rollback-execution/v1";
2669
2669
  teamId: string;
2670
- environment: "production" | "staging";
2670
+ environment: "staging" | "production";
2671
2671
  rollback: {
2672
2672
  schemaVersion: "treeseed.hosted-topology-rollback/v1";
2673
2673
  teamId: string;
2674
- environment: "production" | "staging";
2675
2674
  operations: {
2676
2675
  action: "noop" | "restore" | "delete-created";
2677
2676
  resourceId: string;
2678
2677
  providerResourceId: string;
2679
2678
  targetDigest: string | null;
2680
2679
  }[];
2680
+ environment: "staging" | "production";
2681
2681
  deploymentId: string;
2682
2682
  stackId: string;
2683
2683
  backendBindingDigest: string;