@treeseed/sdk 0.13.0-rc.77 → 0.13.0-rc.80

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.
@@ -9,7 +9,7 @@ export declare const CONTROL_PLANE_OPERATIONS: {
9
9
  schemaVersion: "treeseed.hosted-topology/v1";
10
10
  resources: {
11
11
  id: string;
12
- kind: "admin-application" | "dns-record" | "tls-policy" | "api-proxy" | "control-plane-api" | "postgresql" | "operations-runner" | "treedx-service";
12
+ kind: "admin-application" | "pages-application" | "dns-record" | "tls-policy" | "api-proxy" | "control-plane-api" | "postgresql" | "operations-runner" | "treedx-service";
13
13
  provider: "cloudflare" | "railway";
14
14
  adoption: {
15
15
  mode: "adopt-or-create";
@@ -31,6 +31,7 @@ export declare const CONTROL_PLANE_OPERATIONS: {
31
31
  }> | undefined;
32
32
  }[];
33
33
  id: string;
34
+ teamId: string;
34
35
  platform: {
35
36
  repository: "treeseed-ai/platform";
36
37
  commit: string;
@@ -40,7 +41,23 @@ export declare const CONTROL_PLANE_OPERATIONS: {
40
41
  artifacts: Record<string, {
41
42
  digest: string;
42
43
  source: string;
44
+ kind: "archive";
45
+ format: "tar+gzip";
46
+ } | {
47
+ digest: string;
48
+ source: string;
49
+ kind: "file";
50
+ mediaType: string;
51
+ } | {
52
+ digest: string;
53
+ kind: "oci-image";
54
+ identity: string;
43
55
  }>;
56
+ deploymentId: string;
57
+ stackId: string;
58
+ stateBackend: {
59
+ connectionRef: string;
60
+ };
44
61
  providerConnections: Partial<Record<"cloudflare" | "railway", {
45
62
  connectionRef: string;
46
63
  }>>;
@@ -48,7 +65,7 @@ export declare const CONTROL_PLANE_OPERATIONS: {
48
65
  }, {
49
66
  schemaVersion: "treeseed.hosted-topology-plan/v1";
50
67
  blockers: {
51
- code: "connection-unavailable" | "dependency-cycle" | "observation-unhealthy" | "adoption-drift";
68
+ code: "connection-unavailable" | "state-backend-unavailable" | "dependency-cycle" | "observation-unhealthy" | "adoption-drift";
52
69
  message: string;
53
70
  resourceId?: string | undefined;
54
71
  }[];
@@ -56,12 +73,12 @@ export declare const CONTROL_PLANE_OPERATIONS: {
56
73
  actions: {
57
74
  action: "noop" | "create" | "adopt" | "update";
58
75
  resourceId: string;
59
- kind: "admin-application" | "dns-record" | "tls-policy" | "api-proxy" | "control-plane-api" | "postgresql" | "operations-runner" | "treedx-service";
76
+ kind: "admin-application" | "pages-application" | "dns-record" | "tls-policy" | "api-proxy" | "control-plane-api" | "postgresql" | "operations-runner" | "treedx-service";
60
77
  provider: "cloudflare" | "railway";
61
78
  providerResourceId: string | null;
62
79
  desiredResource: {
63
80
  id: string;
64
- kind: "admin-application" | "dns-record" | "tls-policy" | "api-proxy" | "control-plane-api" | "postgresql" | "operations-runner" | "treedx-service";
81
+ kind: "admin-application" | "pages-application" | "dns-record" | "tls-policy" | "api-proxy" | "control-plane-api" | "postgresql" | "operations-runner" | "treedx-service";
65
82
  provider: "cloudflare" | "railway";
66
83
  adoption: {
67
84
  mode: "adopt-or-create";
@@ -85,13 +102,43 @@ export declare const CONTROL_PLANE_OPERATIONS: {
85
102
  desiredDigest: string;
86
103
  previousDigest: string | null;
87
104
  }[];
105
+ teamId: string;
88
106
  environment: "production" | "staging";
89
107
  executable: false;
90
108
  artifacts: Record<string, {
91
109
  digest: string;
92
110
  source: string;
111
+ kind: "archive";
112
+ format: "tar+gzip";
113
+ } | {
114
+ digest: string;
115
+ source: string;
116
+ kind: "file";
117
+ mediaType: string;
118
+ } | {
119
+ digest: string;
120
+ kind: "oci-image";
121
+ identity: string;
93
122
  }>;
94
123
  planId: string;
124
+ deploymentId: string;
125
+ stackId: string;
126
+ stateBackend: {
127
+ key: string;
128
+ type: "s3";
129
+ schemaVersion: "treeseed.hosted-state-backend/v1";
130
+ teamId: string;
131
+ environment: "production" | "staging";
132
+ deploymentId: string;
133
+ stackId: string;
134
+ connectionRef: string;
135
+ bucket: string;
136
+ region: string;
137
+ encryptionKeyRef: string;
138
+ bindingDigest: string;
139
+ endpoint?: string | undefined;
140
+ usePathStyle?: boolean | undefined;
141
+ } | null;
95
142
  providerConnections: Partial<Record<"cloudflare" | "railway", {
96
143
  connectionRef: string;
97
144
  nonSecretConfig: Record<string, string | number | boolean>;
@@ -107,7 +154,11 @@ export declare const CONTROL_PLANE_OPERATIONS: {
107
154
  approval: {
108
155
  schemaVersion: "treeseed.hosted-topology-approval/v1";
109
156
  planDigest: string;
157
+ teamId: string;
110
158
  environment: "production" | "staging";
159
+ deploymentId: string;
160
+ stackId: string;
161
+ backendBindingDigest: string;
111
162
  decision: "approved";
112
163
  approvedBy: string;
113
164
  approvedAt: string;
@@ -115,7 +166,7 @@ export declare const CONTROL_PLANE_OPERATIONS: {
115
166
  plan: {
116
167
  schemaVersion: "treeseed.hosted-topology-plan/v1";
117
168
  blockers: {
118
- code: "connection-unavailable" | "dependency-cycle" | "observation-unhealthy" | "adoption-drift";
169
+ code: "connection-unavailable" | "state-backend-unavailable" | "dependency-cycle" | "observation-unhealthy" | "adoption-drift";
119
170
  message: string;
120
171
  resourceId?: string | undefined;
121
172
  }[];
@@ -123,12 +174,12 @@ export declare const CONTROL_PLANE_OPERATIONS: {
123
174
  actions: {
124
175
  action: "noop" | "create" | "adopt" | "update";
125
176
  resourceId: string;
126
- kind: "admin-application" | "dns-record" | "tls-policy" | "api-proxy" | "control-plane-api" | "postgresql" | "operations-runner" | "treedx-service";
177
+ kind: "admin-application" | "pages-application" | "dns-record" | "tls-policy" | "api-proxy" | "control-plane-api" | "postgresql" | "operations-runner" | "treedx-service";
127
178
  provider: "cloudflare" | "railway";
128
179
  providerResourceId: string | null;
129
180
  desiredResource: {
130
181
  id: string;
131
- kind: "admin-application" | "dns-record" | "tls-policy" | "api-proxy" | "control-plane-api" | "postgresql" | "operations-runner" | "treedx-service";
182
+ kind: "admin-application" | "pages-application" | "dns-record" | "tls-policy" | "api-proxy" | "control-plane-api" | "postgresql" | "operations-runner" | "treedx-service";
132
183
  provider: "cloudflare" | "railway";
133
184
  adoption: {
134
185
  mode: "adopt-or-create";
@@ -152,13 +203,43 @@ export declare const CONTROL_PLANE_OPERATIONS: {
152
203
  desiredDigest: string;
153
204
  previousDigest: string | null;
154
205
  }[];
206
+ teamId: string;
155
207
  environment: "production" | "staging";
156
208
  executable: false;
157
209
  artifacts: Record<string, {
158
210
  digest: string;
159
211
  source: string;
212
+ kind: "archive";
213
+ format: "tar+gzip";
214
+ } | {
215
+ digest: string;
216
+ source: string;
217
+ kind: "file";
218
+ mediaType: string;
219
+ } | {
220
+ digest: string;
221
+ kind: "oci-image";
222
+ identity: string;
160
223
  }>;
161
224
  planId: string;
225
+ deploymentId: string;
226
+ stackId: string;
227
+ stateBackend: {
228
+ key: string;
229
+ type: "s3";
230
+ schemaVersion: "treeseed.hosted-state-backend/v1";
231
+ teamId: string;
232
+ environment: "production" | "staging";
233
+ deploymentId: string;
234
+ stackId: string;
235
+ connectionRef: string;
236
+ bucket: string;
237
+ region: string;
238
+ encryptionKeyRef: string;
239
+ bindingDigest: string;
240
+ endpoint?: string | undefined;
241
+ usePathStyle?: boolean | undefined;
242
+ } | null;
162
243
  providerConnections: Partial<Record<"cloudflare" | "railway", {
163
244
  connectionRef: string;
164
245
  nonSecretConfig: Record<string, string | number | boolean>;
@@ -178,7 +259,7 @@ export declare const CONTROL_PLANE_OPERATIONS: {
178
259
  resources: {
179
260
  state: "missing" | "degraded" | "healthy";
180
261
  resourceId: string;
181
- kind: "admin-application" | "dns-record" | "tls-policy" | "api-proxy" | "control-plane-api" | "postgresql" | "operations-runner" | "treedx-service";
262
+ kind: "admin-application" | "pages-application" | "dns-record" | "tls-policy" | "api-proxy" | "control-plane-api" | "postgresql" | "operations-runner" | "treedx-service";
182
263
  provider: "cloudflare" | "railway";
183
264
  providerResourceId: string | null;
184
265
  managedBy: "external" | "treeseed" | null;
@@ -186,17 +267,21 @@ export declare const CONTROL_PLANE_OPERATIONS: {
186
267
  observedAt: string;
187
268
  }[];
188
269
  planDigest: string;
270
+ teamId: string;
189
271
  state: "known-good";
190
272
  environment: "production" | "staging";
191
273
  completedAt: string;
192
274
  receiptId: string;
275
+ deploymentId: string;
276
+ stackId: string;
193
277
  declarationDigest: string;
194
278
  topologyId: string;
195
279
  platformCommit: string;
280
+ backendBindingDigest: string;
196
281
  previousResources: {
197
282
  state: "missing" | "degraded" | "healthy";
198
283
  resourceId: string;
199
- kind: "admin-application" | "dns-record" | "tls-policy" | "api-proxy" | "control-plane-api" | "postgresql" | "operations-runner" | "treedx-service";
284
+ kind: "admin-application" | "pages-application" | "dns-record" | "tls-policy" | "api-proxy" | "control-plane-api" | "postgresql" | "operations-runner" | "treedx-service";
200
285
  provider: "cloudflare" | "railway";
201
286
  providerResourceId: string | null;
202
287
  managedBy: "external" | "treeseed" | null;
@@ -210,6 +295,7 @@ export declare const CONTROL_PLANE_OPERATIONS: {
210
295
  }, {}, {
211
296
  rollback: {
212
297
  schemaVersion: "treeseed.hosted-topology-rollback/v1";
298
+ teamId: string;
213
299
  environment: "production" | "staging";
214
300
  operations: {
215
301
  action: "noop" | "restore" | "delete-created";
@@ -217,13 +303,20 @@ export declare const CONTROL_PLANE_OPERATIONS: {
217
303
  providerResourceId: string;
218
304
  targetDigest: string | null;
219
305
  }[];
306
+ deploymentId: string;
307
+ stackId: string;
308
+ backendBindingDigest: string;
220
309
  rollbackId: string;
221
310
  sourceReceiptId: string;
222
311
  rollbackDigest: string;
223
312
  };
224
313
  approval: {
225
314
  schemaVersion: "treeseed.hosted-topology-rollback-approval/v1";
315
+ teamId: string;
226
316
  environment: "production" | "staging";
317
+ deploymentId: string;
318
+ stackId: string;
319
+ backendBindingDigest: string;
227
320
  decision: "approved";
228
321
  approvedBy: string;
229
322
  approvedAt: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@treeseed/sdk",
3
- "version": "0.13.0-rc.77",
3
+ "version": "0.13.0-rc.80",
4
4
  "description": "Portable TreeSeed contracts, standards, and typed remote control-plane clients.",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -30,6 +30,7 @@
30
30
  "build:dist": "node --import tsx ./scripts/build/build-dist.ts",
31
31
  "check:file-lengths": "node --import tsx ./scripts/verification/check-file-lengths.ts && npm run check:file-architecture",
32
32
  "check:file-architecture": "node --import tsx ./scripts/verification/check-file-architecture.ts",
33
+ "prepare": "npm run build:dist",
33
34
  "prepack": "npm run build:dist",
34
35
  "test": "npm run test:contracts",
35
36
  "test:contracts": "vitest run --config ./vitest.contracts.config.ts",