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

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 (96) hide show
  1. package/dist/.treeseed-build-complete.json +1 -1
  2. package/dist/agent-capacity/contracts/capacity/assignments/agent-execution.d.ts +1594 -922
  3. package/dist/agent-capacity/contracts/capacity/assignments/agent-execution.js +22 -1
  4. package/dist/agent-capacity/contracts/capacity/assignments/assignment-context-pack.d.ts +40 -40
  5. package/dist/agent-capacity/contracts/capacity/assignments/assignment-records.d.ts +1 -59
  6. package/dist/agent-capacity/contracts/capacity/workdays/assignment-allocation.d.ts +1 -1
  7. package/dist/agent-capacity/contracts/capacity/workdays/assignment-allocation.js +1 -1
  8. package/dist/agent-capacity/contracts/capacity/workdays/workday-allocation.d.ts +18 -20
  9. package/dist/agent-capacity/contracts/capacity/workdays/workday-allocation.js +1 -1
  10. package/dist/agent-capacity/contracts/capacity/workdays/workday-records.d.ts +0 -67
  11. package/dist/agent-capacity/contracts/configuration/configuration.d.ts +1 -1
  12. package/dist/agent-capacity/contracts/configuration/configuration.js +0 -2
  13. package/dist/agent-capacity/contracts/operations/agent-team-clone.d.ts +8 -8
  14. package/dist/agent-capacity/contracts/projects/agents/project-agent-class.d.ts +0 -23
  15. package/dist/agent-capacity/contracts/runtime/runtime-observability.d.ts +2 -154
  16. package/dist/agent-capacity/contracts/support/agent-atlas.d.ts +0 -13
  17. package/dist/agent-capacity/contracts/support/execution-graph.d.ts +176 -176
  18. package/dist/agent-capacity/contracts/support/execution-graph.js +1 -1
  19. package/dist/agent-capacity/contracts/support/financial-records.d.ts +1 -6
  20. package/dist/agent-capacity/contracts/support/planning-records.d.ts +1 -87
  21. package/dist/agent-capacity/grant.d.ts +34 -0
  22. package/dist/agent-capacity/grant.js +4 -0
  23. package/dist/agent-capacity/validation/agent-definition-schema.d.ts +1042 -1042
  24. package/dist/agent-capacity/validation/agent-lab-forensics-schema.d.ts +11 -11
  25. package/dist/agent-capacity/validation/agent-lab-forensics-schema.js +0 -1
  26. package/dist/agent-capacity/validation/assignment-records.d.ts +1 -6
  27. package/dist/agent-capacity/validation/assignment-records.js +4 -35
  28. package/dist/agent-capacity/validation/configuration.d.ts +1 -1
  29. package/dist/agent-capacity/validation/configuration.js +2 -6
  30. package/dist/agent-capacity/validation/grant.d.ts +11 -0
  31. package/dist/agent-capacity/validation/grant.js +31 -0
  32. package/dist/capacity/agents/agent-capacity.d.ts +2 -4
  33. package/dist/capacity/agents/agent-capacity.js +1 -3
  34. package/dist/capacity-provider/capability-ontology.d.ts +138 -138
  35. package/dist/capacity-provider/client.d.ts +1 -2
  36. package/dist/capacity-provider/client.js +0 -6
  37. package/dist/capacity-provider/contracts/environment-profiles.d.ts +8 -8
  38. package/dist/capacity-provider/core-capability-catalog.d.ts +4 -4
  39. package/dist/capacity-provider/environment-catalog.d.ts +166 -166
  40. package/dist/capacity-provider/install-configuration.d.ts +2 -2
  41. package/dist/capacity-provider/sandbox-contracts.d.ts +52 -52
  42. package/dist/capacity-provider/source-workspace.d.ts +102 -4
  43. package/dist/capacity-provider/source-workspace.js +5 -1
  44. package/dist/content/validation/agent-operational-content-schemas.d.ts +108 -108
  45. package/dist/content/validation/auxiliary-content-schemas.d.ts +108 -108
  46. package/dist/content/validation/content-model-schemas.d.ts +9473 -6284
  47. package/dist/content/validation/content-model-schemas.js +116 -48
  48. package/dist/content/validation/portable-content-data.d.ts +351 -181
  49. package/dist/content/validation/portable-content-data.js +6 -1
  50. package/dist/deployment/ai/storage.d.ts +14 -14
  51. package/dist/deployment/ai-hosting.d.ts +10 -10
  52. package/dist/deployment/ai-instance.d.ts +14 -14
  53. package/dist/deployment/ai-mode.d.ts +82 -82
  54. package/dist/deployment/hosted-topology-template.d.ts +24 -24
  55. package/dist/deployment/hosted-topology.d.ts +219 -219
  56. package/dist/deployment/postgres/contracts.d.ts +52 -52
  57. package/dist/deployment/postgres/transfer.d.ts +4 -4
  58. package/dist/deployment/schemas.d.ts +780 -780
  59. package/dist/development/schemas.d.ts +439 -439
  60. package/dist/knowledge/contracts.d.ts +9 -2
  61. package/dist/knowledge/contracts.js +2 -2
  62. package/dist/model-registry/discussion-models.js +0 -1
  63. package/dist/operator-contracts/canonical-command-tree.js +3 -1
  64. package/dist/operator-contracts/catalog/agents/agent-team-clone-operations.d.ts +2 -2
  65. package/dist/operator-contracts/catalog/capability-ontology-operations.d.ts +17 -17
  66. package/dist/operator-contracts/catalog/commands/command-tree-builders.d.ts +4 -4
  67. package/dist/operator-contracts/catalog/communication-operations.d.ts +100 -100
  68. package/dist/operator-contracts/catalog/hosted-topology-operations.d.ts +40 -40
  69. package/dist/operator-contracts/catalog/inbox-operations.d.ts +54 -54
  70. package/dist/operator-contracts/catalog/infrastructure/ai-instance-operations.d.ts +5 -5
  71. package/dist/operator-contracts/catalog/knowledge-share-operations.d.ts +10 -10
  72. package/dist/operator-contracts/catalog/services/secret-operations.d.ts +8 -8
  73. package/dist/operator-contracts/communication/contracts.d.ts +273 -273
  74. package/dist/operator-contracts/control-plane-operations.d.ts +236 -242
  75. package/dist/operator-contracts/control-plane-operations.js +0 -2
  76. package/dist/operator-contracts/inbox/contracts.d.ts +204 -204
  77. package/dist/operator-contracts/knowledge/contracts.d.ts +16 -16
  78. package/dist/platform/agent-schema-verification.d.ts +3 -0
  79. package/dist/platform/agent-schema-verification.js +94 -0
  80. package/dist/platform/verification.js +6 -0
  81. package/dist/sdk-types/support/planning-policy.d.ts +1 -1
  82. package/dist/secrets-capability/shared-access.d.ts +2 -2
  83. package/dist/secrets-capability/shared-resources.d.ts +46 -46
  84. package/dist/secrets-capability/vault-contracts.d.ts +2 -2
  85. package/dist/security/encrypted-envelope.d.ts +8 -8
  86. package/package.json +3 -2
  87. package/dist/agent-capacity/allocation.d.ts +0 -183
  88. package/dist/agent-capacity/allocation.js +0 -5
  89. package/dist/agent-capacity/artifact-mutation-receipt.d.ts +0 -49
  90. package/dist/agent-capacity/artifact-mutation-receipt.js +0 -36
  91. package/dist/agent-capacity/artifacts.d.ts +0 -123
  92. package/dist/agent-capacity/artifacts.js +0 -39
  93. package/dist/agent-capacity/contracts/support/decision-work.d.ts +0 -227
  94. package/dist/agent-capacity/contracts/support/decision-work.js +0 -0
  95. package/dist/agent-capacity/validation/allocation.d.ts +0 -12
  96. 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;
@@ -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";
@@ -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";
@@ -503,8 +503,8 @@ export declare const hostedTopologyDeclarationSchema: z.ZodEffects<z.ZodObject<{
503
503
  id: string;
504
504
  schemaVersion: "treeseed.hosted-topology/v1";
505
505
  resources: {
506
- kind: "admin-application" | "pages-application" | "dns-record" | "tls-policy" | "api-proxy" | "control-plane-api" | "postgresql" | "operations-runner" | "treedx-service";
507
- provider: "cloudflare" | "railway";
506
+ kind: "postgresql" | "admin-application" | "pages-application" | "dns-record" | "tls-policy" | "api-proxy" | "control-plane-api" | "operations-runner" | "treedx-service";
507
+ provider: "railway" | "cloudflare";
508
508
  id: string;
509
509
  dependsOn: string[];
510
510
  parameters: Record<string, {
@@ -530,8 +530,8 @@ export declare const hostedTopologyDeclarationSchema: z.ZodEffects<z.ZodObject<{
530
530
  repository: "treeseed-ai/platform";
531
531
  commit: string;
532
532
  };
533
+ environment: "staging" | "production";
533
534
  mutation: "agent-authorized";
534
- environment: "production" | "staging";
535
535
  artifacts: Record<string, {
536
536
  kind: "archive";
537
537
  digest: string;
@@ -552,15 +552,15 @@ 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
561
  resources: {
562
- kind: "admin-application" | "pages-application" | "dns-record" | "tls-policy" | "api-proxy" | "control-plane-api" | "postgresql" | "operations-runner" | "treedx-service";
563
- provider: "cloudflare" | "railway";
562
+ kind: "postgresql" | "admin-application" | "pages-application" | "dns-record" | "tls-policy" | "api-proxy" | "control-plane-api" | "operations-runner" | "treedx-service";
563
+ provider: "railway" | "cloudflare";
564
564
  id: string;
565
565
  adoption: {
566
566
  mode: "adopt-or-create";
@@ -586,8 +586,8 @@ export declare const hostedTopologyDeclarationSchema: z.ZodEffects<z.ZodObject<{
586
586
  repository: "treeseed-ai/platform";
587
587
  commit: string;
588
588
  };
589
+ environment: "staging" | "production";
589
590
  mutation: "agent-authorized";
590
- environment: "production" | "staging";
591
591
  artifacts: Record<string, {
592
592
  kind: "archive";
593
593
  digest: string;
@@ -608,15 +608,15 @@ 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
617
  resources: {
618
- kind: "admin-application" | "pages-application" | "dns-record" | "tls-policy" | "api-proxy" | "control-plane-api" | "postgresql" | "operations-runner" | "treedx-service";
619
- provider: "cloudflare" | "railway";
618
+ kind: "postgresql" | "admin-application" | "pages-application" | "dns-record" | "tls-policy" | "api-proxy" | "control-plane-api" | "operations-runner" | "treedx-service";
619
+ provider: "railway" | "cloudflare";
620
620
  id: string;
621
621
  dependsOn: string[];
622
622
  parameters: Record<string, {
@@ -642,8 +642,8 @@ export declare const hostedTopologyDeclarationSchema: z.ZodEffects<z.ZodObject<{
642
642
  repository: "treeseed-ai/platform";
643
643
  commit: string;
644
644
  };
645
+ environment: "staging" | "production";
645
646
  mutation: "agent-authorized";
646
- environment: "production" | "staging";
647
647
  artifacts: Record<string, {
648
648
  kind: "archive";
649
649
  digest: string;
@@ -664,15 +664,15 @@ 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
673
  resources: {
674
- kind: "admin-application" | "pages-application" | "dns-record" | "tls-policy" | "api-proxy" | "control-plane-api" | "postgresql" | "operations-runner" | "treedx-service";
675
- provider: "cloudflare" | "railway";
674
+ kind: "postgresql" | "admin-application" | "pages-application" | "dns-record" | "tls-policy" | "api-proxy" | "control-plane-api" | "operations-runner" | "treedx-service";
675
+ provider: "railway" | "cloudflare";
676
676
  id: string;
677
677
  adoption: {
678
678
  mode: "adopt-or-create";
@@ -698,8 +698,8 @@ export declare const hostedTopologyDeclarationSchema: z.ZodEffects<z.ZodObject<{
698
698
  repository: "treeseed-ai/platform";
699
699
  commit: string;
700
700
  };
701
+ environment: "staging" | "production";
701
702
  mutation: "agent-authorized";
702
- environment: "production" | "staging";
703
703
  artifacts: Record<string, {
704
704
  kind: "archive";
705
705
  digest: 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";
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
739
  state: "missing" | "degraded" | "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";
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
748
  state: "missing" | "degraded" | "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;
@@ -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";
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
1024
  action: "noop" | "create" | "adopt" | "update";
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";
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
1055
  action: "noop" | "create" | "adopt" | "update";
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";
@@ -1105,14 +1105,14 @@ export declare const hostedTopologyPlanSchema: z.ZodEffects<z.ZodObject<{
1105
1105
  }[];
1106
1106
  planDigest: string;
1107
1107
  actions: {
1108
- kind: "admin-application" | "pages-application" | "dns-record" | "tls-policy" | "api-proxy" | "control-plane-api" | "postgresql" | "operations-runner" | "treedx-service";
1109
- provider: "cloudflare" | "railway";
1108
+ kind: "postgresql" | "admin-application" | "pages-application" | "dns-record" | "tls-policy" | "api-proxy" | "control-plane-api" | "operations-runner" | "treedx-service";
1109
+ provider: "railway" | "cloudflare";
1110
1110
  action: "noop" | "create" | "adopt" | "update";
1111
1111
  resourceId: string;
1112
1112
  providerResourceId: string | null;
1113
1113
  desiredResource: {
1114
- kind: "admin-application" | "pages-application" | "dns-record" | "tls-policy" | "api-proxy" | "control-plane-api" | "postgresql" | "operations-runner" | "treedx-service";
1115
- provider: "cloudflare" | "railway";
1114
+ kind: "postgresql" | "admin-application" | "pages-application" | "dns-record" | "tls-policy" | "api-proxy" | "control-plane-api" | "operations-runner" | "treedx-service";
1115
+ provider: "railway" | "cloudflare";
1116
1116
  id: string;
1117
1117
  dependsOn: string[];
1118
1118
  parameters: Record<string, {
@@ -1137,7 +1137,7 @@ export declare const hostedTopologyPlanSchema: z.ZodEffects<z.ZodObject<{
1137
1137
  previousDigest: string | null;
1138
1138
  }[];
1139
1139
  teamId: string;
1140
- environment: "production" | "staging";
1140
+ environment: "staging" | "production";
1141
1141
  executable: false;
1142
1142
  artifacts: Record<string, {
1143
1143
  kind: "archive";
@@ -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
  }>>;
@@ -1190,14 +1190,14 @@ export declare const hostedTopologyPlanSchema: z.ZodEffects<z.ZodObject<{
1190
1190
  }[];
1191
1191
  planDigest: string;
1192
1192
  actions: {
1193
- kind: "admin-application" | "pages-application" | "dns-record" | "tls-policy" | "api-proxy" | "control-plane-api" | "postgresql" | "operations-runner" | "treedx-service";
1194
- provider: "cloudflare" | "railway";
1193
+ kind: "postgresql" | "admin-application" | "pages-application" | "dns-record" | "tls-policy" | "api-proxy" | "control-plane-api" | "operations-runner" | "treedx-service";
1194
+ provider: "railway" | "cloudflare";
1195
1195
  action: "noop" | "create" | "adopt" | "update";
1196
1196
  resourceId: string;
1197
1197
  providerResourceId: string | null;
1198
1198
  desiredResource: {
1199
- kind: "admin-application" | "pages-application" | "dns-record" | "tls-policy" | "api-proxy" | "control-plane-api" | "postgresql" | "operations-runner" | "treedx-service";
1200
- provider: "cloudflare" | "railway";
1199
+ kind: "postgresql" | "admin-application" | "pages-application" | "dns-record" | "tls-policy" | "api-proxy" | "control-plane-api" | "operations-runner" | "treedx-service";
1200
+ provider: "railway" | "cloudflare";
1201
1201
  id: string;
1202
1202
  adoption: {
1203
1203
  mode: "adopt-or-create";
@@ -1222,7 +1222,7 @@ export declare const hostedTopologyPlanSchema: z.ZodEffects<z.ZodObject<{
1222
1222
  previousDigest: string | null;
1223
1223
  }[];
1224
1224
  teamId: string;
1225
- environment: "production" | "staging";
1225
+ environment: "staging" | "production";
1226
1226
  executable: false;
1227
1227
  artifacts: Record<string, {
1228
1228
  kind: "archive";
@@ -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
  }>>;
@@ -1275,14 +1275,14 @@ export declare const hostedTopologyPlanSchema: z.ZodEffects<z.ZodObject<{
1275
1275
  }[];
1276
1276
  planDigest: string;
1277
1277
  actions: {
1278
- kind: "admin-application" | "pages-application" | "dns-record" | "tls-policy" | "api-proxy" | "control-plane-api" | "postgresql" | "operations-runner" | "treedx-service";
1279
- provider: "cloudflare" | "railway";
1278
+ kind: "postgresql" | "admin-application" | "pages-application" | "dns-record" | "tls-policy" | "api-proxy" | "control-plane-api" | "operations-runner" | "treedx-service";
1279
+ provider: "railway" | "cloudflare";
1280
1280
  action: "noop" | "create" | "adopt" | "update";
1281
1281
  resourceId: string;
1282
1282
  providerResourceId: string | null;
1283
1283
  desiredResource: {
1284
- kind: "admin-application" | "pages-application" | "dns-record" | "tls-policy" | "api-proxy" | "control-plane-api" | "postgresql" | "operations-runner" | "treedx-service";
1285
- provider: "cloudflare" | "railway";
1284
+ kind: "postgresql" | "admin-application" | "pages-application" | "dns-record" | "tls-policy" | "api-proxy" | "control-plane-api" | "operations-runner" | "treedx-service";
1285
+ provider: "railway" | "cloudflare";
1286
1286
  id: string;
1287
1287
  dependsOn: string[];
1288
1288
  parameters: Record<string, {
@@ -1307,7 +1307,7 @@ export declare const hostedTopologyPlanSchema: z.ZodEffects<z.ZodObject<{
1307
1307
  previousDigest: string | null;
1308
1308
  }[];
1309
1309
  teamId: string;
1310
- environment: "production" | "staging";
1310
+ environment: "staging" | "production";
1311
1311
  executable: false;
1312
1312
  artifacts: Record<string, {
1313
1313
  kind: "archive";
@@ -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
  }>>;
@@ -1360,14 +1360,14 @@ export declare const hostedTopologyPlanSchema: z.ZodEffects<z.ZodObject<{
1360
1360
  }[];
1361
1361
  planDigest: string;
1362
1362
  actions: {
1363
- kind: "admin-application" | "pages-application" | "dns-record" | "tls-policy" | "api-proxy" | "control-plane-api" | "postgresql" | "operations-runner" | "treedx-service";
1364
- provider: "cloudflare" | "railway";
1363
+ kind: "postgresql" | "admin-application" | "pages-application" | "dns-record" | "tls-policy" | "api-proxy" | "control-plane-api" | "operations-runner" | "treedx-service";
1364
+ provider: "railway" | "cloudflare";
1365
1365
  action: "noop" | "create" | "adopt" | "update";
1366
1366
  resourceId: string;
1367
1367
  providerResourceId: string | null;
1368
1368
  desiredResource: {
1369
- kind: "admin-application" | "pages-application" | "dns-record" | "tls-policy" | "api-proxy" | "control-plane-api" | "postgresql" | "operations-runner" | "treedx-service";
1370
- provider: "cloudflare" | "railway";
1369
+ kind: "postgresql" | "admin-application" | "pages-application" | "dns-record" | "tls-policy" | "api-proxy" | "control-plane-api" | "operations-runner" | "treedx-service";
1370
+ provider: "railway" | "cloudflare";
1371
1371
  id: string;
1372
1372
  adoption: {
1373
1373
  mode: "adopt-or-create";
@@ -1392,7 +1392,7 @@ export declare const hostedTopologyPlanSchema: z.ZodEffects<z.ZodObject<{
1392
1392
  previousDigest: string | null;
1393
1393
  }[];
1394
1394
  teamId: string;
1395
- environment: "production" | "staging";
1395
+ environment: "staging" | "production";
1396
1396
  executable: false;
1397
1397
  artifacts: Record<string, {
1398
1398
  kind: "archive";
@@ -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;
@@ -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";
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
1710
  action: "noop" | "create" | "adopt" | "update";
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";
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
1741
  action: "noop" | "create" | "adopt" | "update";
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";
@@ -1790,14 +1790,14 @@ export declare const authorizedHostedTopologyPlanSchema: z.ZodEffects<z.ZodObjec
1790
1790
  }[];
1791
1791
  planDigest: string;
1792
1792
  actions: {
1793
- kind: "admin-application" | "pages-application" | "dns-record" | "tls-policy" | "api-proxy" | "control-plane-api" | "postgresql" | "operations-runner" | "treedx-service";
1794
- provider: "cloudflare" | "railway";
1793
+ kind: "postgresql" | "admin-application" | "pages-application" | "dns-record" | "tls-policy" | "api-proxy" | "control-plane-api" | "operations-runner" | "treedx-service";
1794
+ provider: "railway" | "cloudflare";
1795
1795
  action: "noop" | "create" | "adopt" | "update";
1796
1796
  resourceId: string;
1797
1797
  providerResourceId: string | null;
1798
1798
  desiredResource: {
1799
- kind: "admin-application" | "pages-application" | "dns-record" | "tls-policy" | "api-proxy" | "control-plane-api" | "postgresql" | "operations-runner" | "treedx-service";
1800
- provider: "cloudflare" | "railway";
1799
+ kind: "postgresql" | "admin-application" | "pages-application" | "dns-record" | "tls-policy" | "api-proxy" | "control-plane-api" | "operations-runner" | "treedx-service";
1800
+ provider: "railway" | "cloudflare";
1801
1801
  id: string;
1802
1802
  dependsOn: string[];
1803
1803
  parameters: Record<string, {
@@ -1822,7 +1822,7 @@ export declare const authorizedHostedTopologyPlanSchema: z.ZodEffects<z.ZodObjec
1822
1822
  previousDigest: string | null;
1823
1823
  }[];
1824
1824
  teamId: string;
1825
- environment: "production" | "staging";
1825
+ environment: "staging" | "production";
1826
1826
  executable: true;
1827
1827
  artifacts: Record<string, {
1828
1828
  kind: "archive";
@@ -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
  }>>;
@@ -1875,14 +1875,14 @@ export declare const authorizedHostedTopologyPlanSchema: z.ZodEffects<z.ZodObjec
1875
1875
  }[];
1876
1876
  planDigest: string;
1877
1877
  actions: {
1878
- kind: "admin-application" | "pages-application" | "dns-record" | "tls-policy" | "api-proxy" | "control-plane-api" | "postgresql" | "operations-runner" | "treedx-service";
1879
- provider: "cloudflare" | "railway";
1878
+ kind: "postgresql" | "admin-application" | "pages-application" | "dns-record" | "tls-policy" | "api-proxy" | "control-plane-api" | "operations-runner" | "treedx-service";
1879
+ provider: "railway" | "cloudflare";
1880
1880
  action: "noop" | "create" | "adopt" | "update";
1881
1881
  resourceId: string;
1882
1882
  providerResourceId: string | null;
1883
1883
  desiredResource: {
1884
- kind: "admin-application" | "pages-application" | "dns-record" | "tls-policy" | "api-proxy" | "control-plane-api" | "postgresql" | "operations-runner" | "treedx-service";
1885
- provider: "cloudflare" | "railway";
1884
+ kind: "postgresql" | "admin-application" | "pages-application" | "dns-record" | "tls-policy" | "api-proxy" | "control-plane-api" | "operations-runner" | "treedx-service";
1885
+ provider: "railway" | "cloudflare";
1886
1886
  id: string;
1887
1887
  adoption: {
1888
1888
  mode: "adopt-or-create";
@@ -1907,7 +1907,7 @@ export declare const authorizedHostedTopologyPlanSchema: z.ZodEffects<z.ZodObjec
1907
1907
  previousDigest: string | null;
1908
1908
  }[];
1909
1909
  teamId: string;
1910
- environment: "production" | "staging";
1910
+ environment: "staging" | "production";
1911
1911
  executable: true;
1912
1912
  artifacts: Record<string, {
1913
1913
  kind: "archive";
@@ -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
  }>>;
@@ -1960,14 +1960,14 @@ export declare const authorizedHostedTopologyPlanSchema: z.ZodEffects<z.ZodObjec
1960
1960
  }[];
1961
1961
  planDigest: string;
1962
1962
  actions: {
1963
- kind: "admin-application" | "pages-application" | "dns-record" | "tls-policy" | "api-proxy" | "control-plane-api" | "postgresql" | "operations-runner" | "treedx-service";
1964
- provider: "cloudflare" | "railway";
1963
+ kind: "postgresql" | "admin-application" | "pages-application" | "dns-record" | "tls-policy" | "api-proxy" | "control-plane-api" | "operations-runner" | "treedx-service";
1964
+ provider: "railway" | "cloudflare";
1965
1965
  action: "noop" | "create" | "adopt" | "update";
1966
1966
  resourceId: string;
1967
1967
  providerResourceId: string | null;
1968
1968
  desiredResource: {
1969
- kind: "admin-application" | "pages-application" | "dns-record" | "tls-policy" | "api-proxy" | "control-plane-api" | "postgresql" | "operations-runner" | "treedx-service";
1970
- provider: "cloudflare" | "railway";
1969
+ kind: "postgresql" | "admin-application" | "pages-application" | "dns-record" | "tls-policy" | "api-proxy" | "control-plane-api" | "operations-runner" | "treedx-service";
1970
+ provider: "railway" | "cloudflare";
1971
1971
  id: string;
1972
1972
  dependsOn: string[];
1973
1973
  parameters: Record<string, {
@@ -1992,7 +1992,7 @@ export declare const authorizedHostedTopologyPlanSchema: z.ZodEffects<z.ZodObjec
1992
1992
  previousDigest: string | null;
1993
1993
  }[];
1994
1994
  teamId: string;
1995
- environment: "production" | "staging";
1995
+ environment: "staging" | "production";
1996
1996
  executable: true;
1997
1997
  artifacts: Record<string, {
1998
1998
  kind: "archive";
@@ -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
  }>>;
@@ -2045,14 +2045,14 @@ export declare const authorizedHostedTopologyPlanSchema: z.ZodEffects<z.ZodObjec
2045
2045
  }[];
2046
2046
  planDigest: string;
2047
2047
  actions: {
2048
- kind: "admin-application" | "pages-application" | "dns-record" | "tls-policy" | "api-proxy" | "control-plane-api" | "postgresql" | "operations-runner" | "treedx-service";
2049
- provider: "cloudflare" | "railway";
2048
+ kind: "postgresql" | "admin-application" | "pages-application" | "dns-record" | "tls-policy" | "api-proxy" | "control-plane-api" | "operations-runner" | "treedx-service";
2049
+ provider: "railway" | "cloudflare";
2050
2050
  action: "noop" | "create" | "adopt" | "update";
2051
2051
  resourceId: string;
2052
2052
  providerResourceId: string | null;
2053
2053
  desiredResource: {
2054
- kind: "admin-application" | "pages-application" | "dns-record" | "tls-policy" | "api-proxy" | "control-plane-api" | "postgresql" | "operations-runner" | "treedx-service";
2055
- provider: "cloudflare" | "railway";
2054
+ kind: "postgresql" | "admin-application" | "pages-application" | "dns-record" | "tls-policy" | "api-proxy" | "control-plane-api" | "operations-runner" | "treedx-service";
2055
+ provider: "railway" | "cloudflare";
2056
2056
  id: string;
2057
2057
  adoption: {
2058
2058
  mode: "adopt-or-create";
@@ -2077,7 +2077,7 @@ export declare const authorizedHostedTopologyPlanSchema: z.ZodEffects<z.ZodObjec
2077
2077
  previousDigest: string | null;
2078
2078
  }[];
2079
2079
  teamId: string;
2080
- environment: "production" | "staging";
2080
+ environment: "staging" | "production";
2081
2081
  executable: true;
2082
2082
  artifacts: Record<string, {
2083
2083
  kind: "archive";
@@ -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";
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
2149
  state: "missing" | "degraded" | "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";
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
2158
  state: "missing" | "degraded" | "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,23 +2172,23 @@ 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";
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
2177
  state: "missing" | "degraded" | "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";
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
2186
  state: "missing" | "degraded" | "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;
@@ -2196,18 +2196,18 @@ export declare const hostedTopologyReceiptSchema: z.ZodObject<{
2196
2196
  state: "known-good";
2197
2197
  schemaVersion: "treeseed.hosted-topology-receipt/v1";
2198
2198
  resources: {
2199
- kind: "admin-application" | "pages-application" | "dns-record" | "tls-policy" | "api-proxy" | "control-plane-api" | "postgresql" | "operations-runner" | "treedx-service";
2200
- provider: "cloudflare" | "railway";
2199
+ kind: "postgresql" | "admin-application" | "pages-application" | "dns-record" | "tls-policy" | "api-proxy" | "control-plane-api" | "operations-runner" | "treedx-service";
2200
+ provider: "railway" | "cloudflare";
2201
2201
  state: "missing" | "degraded" | "healthy";
2202
+ observedAt: string;
2202
2203
  resourceId: string;
2203
2204
  providerResourceId: string | null;
2204
2205
  managedBy: "external" | "treeseed" | null;
2205
2206
  observedDigest: string | null;
2206
- observedAt: string;
2207
2207
  }[];
2208
2208
  planDigest: string;
2209
2209
  teamId: string;
2210
- environment: "production" | "staging";
2210
+ environment: "staging" | "production";
2211
2211
  completedAt: string;
2212
2212
  receiptId: string;
2213
2213
  deploymentId: string;
@@ -2217,31 +2217,31 @@ 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";
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
2222
  state: "missing" | "degraded" | "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
2232
  resources: {
2233
- kind: "admin-application" | "pages-application" | "dns-record" | "tls-policy" | "api-proxy" | "control-plane-api" | "postgresql" | "operations-runner" | "treedx-service";
2234
- provider: "cloudflare" | "railway";
2233
+ kind: "postgresql" | "admin-application" | "pages-application" | "dns-record" | "tls-policy" | "api-proxy" | "control-plane-api" | "operations-runner" | "treedx-service";
2234
+ provider: "railway" | "cloudflare";
2235
2235
  state: "missing" | "degraded" | "healthy";
2236
+ observedAt: string;
2236
2237
  resourceId: string;
2237
2238
  providerResourceId: string | null;
2238
2239
  managedBy: "external" | "treeseed" | null;
2239
2240
  observedDigest: string | null;
2240
- observedAt: string;
2241
2241
  }[];
2242
2242
  planDigest: string;
2243
2243
  teamId: string;
2244
- environment: "production" | "staging";
2244
+ environment: "staging" | "production";
2245
2245
  completedAt: string;
2246
2246
  receiptId: string;
2247
2247
  deploymentId: 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";
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
2256
  state: "missing" | "degraded" | "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,7 +2290,7 @@ 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";
2293
+ environment: "staging" | "production";
2294
2294
  operations: {
2295
2295
  action: "noop" | "restore" | "delete-created";
2296
2296
  resourceId: string;
@@ -2306,7 +2306,7 @@ 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";
2309
+ environment: "staging" | "production";
2310
2310
  operations: {
2311
2311
  action: "noop" | "restore" | "delete-created";
2312
2312
  resourceId: string;
@@ -2322,7 +2322,7 @@ 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";
2325
+ environment: "staging" | "production";
2326
2326
  operations: {
2327
2327
  action: "noop" | "restore" | "delete-created";
2328
2328
  resourceId: string;
@@ -2338,7 +2338,7 @@ 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";
2341
+ environment: "staging" | "production";
2342
2342
  operations: {
2343
2343
  action: "noop" | "restore" | "delete-created";
2344
2344
  resourceId: string;
@@ -2383,7 +2383,7 @@ 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";
2386
+ environment: "staging" | "production";
2387
2387
  operations: {
2388
2388
  action: "noop" | "restore" | "delete-created";
2389
2389
  resourceId: string;
@@ -2399,7 +2399,7 @@ 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";
2402
+ environment: "staging" | "production";
2403
2403
  operations: {
2404
2404
  action: "noop" | "restore" | "delete-created";
2405
2405
  resourceId: string;
@@ -2415,7 +2415,7 @@ 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";
2418
+ environment: "staging" | "production";
2419
2419
  operations: {
2420
2420
  action: "noop" | "restore" | "delete-created";
2421
2421
  resourceId: string;
@@ -2431,7 +2431,7 @@ 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";
2434
+ environment: "staging" | "production";
2435
2435
  operations: {
2436
2436
  action: "noop" | "restore" | "delete-created";
2437
2437
  resourceId: string;
@@ -2458,11 +2458,11 @@ 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";
2465
+ environment: "staging" | "production";
2466
2466
  operations: {
2467
2467
  action: "noop" | "restore" | "delete-created";
2468
2468
  resourceId: string;
@@ -2487,11 +2487,11 @@ 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";
2494
+ environment: "staging" | "production";
2495
2495
  operations: {
2496
2496
  action: "noop" | "restore" | "delete-created";
2497
2497
  resourceId: string;
@@ -2516,11 +2516,11 @@ 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";
2523
+ environment: "staging" | "production";
2524
2524
  operations: {
2525
2525
  action: "noop" | "restore" | "delete-created";
2526
2526
  resourceId: string;
@@ -2545,11 +2545,11 @@ 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";
2552
+ environment: "staging" | "production";
2553
2553
  operations: {
2554
2554
  action: "noop" | "restore" | "delete-created";
2555
2555
  resourceId: string;
@@ -2595,7 +2595,7 @@ 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";
2598
+ environment: "staging" | "production";
2599
2599
  operations: {
2600
2600
  action: "noop" | "restore" | "delete-created";
2601
2601
  resourceId: string;
@@ -2613,7 +2613,7 @@ 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";
2616
+ environment: "staging" | "production";
2617
2617
  operations: {
2618
2618
  action: "noop" | "restore" | "delete-created";
2619
2619
  resourceId: string;
@@ -2636,11 +2636,11 @@ 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";
2643
+ environment: "staging" | "production";
2644
2644
  operations: {
2645
2645
  action: "noop" | "restore" | "delete-created";
2646
2646
  resourceId: string;
@@ -2667,11 +2667,11 @@ 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";
2674
+ environment: "staging" | "production";
2675
2675
  operations: {
2676
2676
  action: "noop" | "restore" | "delete-created";
2677
2677
  resourceId: string;