@treeseed/sdk 0.13.0-rc.21 → 0.13.0-rc.22

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.
@@ -646,6 +646,10 @@ export declare const CONTROL_PLANE_OPERATIONS: {
646
646
  projectId: string;
647
647
  repoId: string;
648
648
  }, {}, Record<string, unknown> | undefined, Record<string, unknown>>;
649
+ readonly retire: ControlPlaneOperationBinding<{
650
+ projectId: string;
651
+ repoId: string;
652
+ }, {}, Record<string, unknown> | undefined, Record<string, unknown>>;
649
653
  readonly status: ControlPlaneOperationBinding<{
650
654
  projectId: string;
651
655
  repoId: string;
@@ -365,6 +365,7 @@ const CONTROL_PLANE_OPERATIONS = {
365
365
  list: treedxProxy("treedx.repositories.list", "listRepositories", "GET", "/v1/dx/projects/{projectId}/repos", { projectId: z.string().min(1) }, { pagination: "cursor" }),
366
366
  create: treedxProxy("treedx.repositories.create", "createRepository", "POST", "/v1/dx/projects/{projectId}/repos", { projectId: z.string().min(1) }),
367
367
  show: treedxProxy("treedx.repositories.show", "getRepository", "GET", "/v1/dx/projects/{projectId}/repos/{repoId}", { projectId: z.string().min(1), repoId: z.string().min(1) }),
368
+ retire: treedxProxy("treedx.repositories.retire", "retireRepository", "DELETE", "/v1/dx/projects/{projectId}/repos/{repoId}", { projectId: z.string().min(1), repoId: z.string().min(1) }, { risk: "destructive", surfaces: ["internal"] }),
368
369
  status: treedxProxy("treedx.repositories.status", "getRepositoryStatus", "GET", "/v1/dx/projects/{projectId}/repos/{repoId}/status", { projectId: z.string().min(1), repoId: z.string().min(1) }),
369
370
  refs: treedxProxy("treedx.repositories.refs", "listRepositoryRefs", "GET", "/v1/dx/projects/{projectId}/repos/{repoId}/refs", { projectId: z.string().min(1), repoId: z.string().min(1) }),
370
371
  sync: treedxProxy("treedx.repositories.sync", "syncRepository", "POST", "/v1/dx/projects/{projectId}/repos/{repoId}/sync", { projectId: z.string().min(1), repoId: z.string().min(1) }),
@@ -32,10 +32,11 @@ const record = z.record(z.unknown());
32
32
  function defineTreeDxProxyOperation(operationId, upstreamOperationId, method, path, pathShape, options = {}) {
33
33
  const kind = options.read ?? method === "GET" ? "read" : "mutation";
34
34
  const riskClass = options.risk ?? "ordinary";
35
+ const surfaces = options.surfaces ?? ["rest", "mcp_tool", ...method === "GET" ? ["mcp_resource"] : []];
35
36
  return defineOperation({
36
37
  operationId,
37
38
  description: `${kind === "read" ? "Read" : "Apply"} ${operationId} through the project-scoped TreeDX proxy.`,
38
- rest: { method, path },
39
+ ...surfaces.includes("rest") ? { rest: { method, path } } : {},
39
40
  ...Object.keys(pathShape).length ? { parameters: `treeseed.${operationId}.parameters/v1` } : {},
40
41
  capability: kind === "read" ? "treedx.read" : "treedx.write",
41
42
  authentication: "oauth_or_provider",
@@ -43,7 +44,7 @@ function defineTreeDxProxyOperation(operationId, upstreamOperationId, method, pa
43
44
  kind,
44
45
  riskClass,
45
46
  confirmation: riskClass === "ordinary" ? "never" : "input_required",
46
- surfaces: options.surfaces ?? ["rest", "mcp_tool", ...method === "GET" ? ["mcp_resource"] : []],
47
+ surfaces,
47
48
  cacheScope: kind === "read" ? "project" : "none",
48
49
  pagination: options.pagination ?? "none",
49
50
  ...upstreamOperationId ? { upstream: { service: "treedx", operationId: upstreamOperationId, contractVersion: TREEDX_OPENAPI_CONTRACT.openapiVersion, contractDigest: TREEDX_OPENAPI_CONTRACT.openapiSha256 } } : {}
@@ -36,6 +36,10 @@ export declare const TREESEED_TREEDX_OPERATIONS: {
36
36
  projectId: string;
37
37
  repoId: string;
38
38
  }, {}, Record<string, unknown> | undefined, Record<string, unknown>>;
39
+ readonly retire: ControlPlaneOperationBinding<{
40
+ projectId: string;
41
+ repoId: string;
42
+ }, {}, Record<string, unknown> | undefined, Record<string, unknown>>;
39
43
  readonly status: ControlPlaneOperationBinding<{
40
44
  projectId: string;
41
45
  repoId: string;
@@ -330,6 +334,10 @@ export declare class TreeSeedTreeDxClient {
330
334
  projectId: string;
331
335
  repoId: string;
332
336
  }, {}, Record<string, unknown> | undefined, Record<string, unknown>>;
337
+ readonly retire: ControlPlaneOperationBinding<{
338
+ projectId: string;
339
+ repoId: string;
340
+ }, {}, Record<string, unknown> | undefined, Record<string, unknown>>;
333
341
  readonly status: ControlPlaneOperationBinding<{
334
342
  projectId: string;
335
343
  repoId: string;
@@ -13,11 +13,11 @@ export declare function treeDxProxyOperationMapping(): {
13
13
  export declare function validateTreeDxProxyOperationMapping(): string[];
14
14
  export declare function createTreeDxServiceContractReceipt(controlPlaneCatalogDigest: `sha256:${string}`, evidence: TreeDxAdoptionEvidence): Promise<{
15
15
  readonly schema: "treeseed.treedx-service-contract/v1";
16
- readonly treedxPackageVersion: "0.3.0-rc.3";
17
- readonly treedxOpenapiVersion: "0.11.0";
18
- readonly treedxOpenapiDigest: "sha256:52ed190300922c388b115981e60635c306c643d48a3308ef9f79975510ae1926";
19
- readonly treedxOperationInventoryDigest: "sha256:bcfaa9233fcfe7fb49dd0807f08105b3e4056e07ffc8a5dd890e5ec27f975764";
20
- readonly treedxGeneratedTypesDigest: "sha256:505c89e5a0778f79853d8ab652e1a5f8d1bb1fcf2c135571be4972fc3326166e";
16
+ readonly treedxPackageVersion: "0.3.0-rc.4";
17
+ readonly treedxOpenapiVersion: "0.11.1";
18
+ readonly treedxOpenapiDigest: "sha256:7c045a99cb0e5ddfb750f060206db374fce86f94dbefecd377bf3e8a5e182ff4";
19
+ readonly treedxOperationInventoryDigest: "sha256:a9a36b3def243d1fb58f149dd1f93fc6c56e4193eecc1bb4184c0c20b36e54f0";
20
+ readonly treedxGeneratedTypesDigest: "sha256:ff51298be834c3931e725fe017e0def59a23c80998740b2ba1ddbd5ac5e5eca5";
21
21
  readonly treedxSourceCommit: string;
22
22
  readonly treedxPackageArtifactDigest: `sha256:${string}`;
23
23
  readonly controlPlaneCatalogDigest: `sha256:${string}`;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@treeseed/sdk",
3
- "version": "0.13.0-rc.21",
3
+ "version": "0.13.0-rc.22",
4
4
  "description": "Portable TreeSeed contracts, standards, and typed remote control-plane clients.",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -49,7 +49,7 @@
49
49
  "standards:release-evidence": "node --import tsx ./scripts/standards/create-release-evidence.ts"
50
50
  },
51
51
  "dependencies": {
52
- "@treeseed/treedx": "0.3.0-rc.3",
52
+ "@treeseed/treedx": "0.3.0-rc.4",
53
53
  "esbuild": "^0.28.0",
54
54
  "typescript": "^5.9.3",
55
55
  "yaml": "^2.8.1",