From 690ed0f1211b3a4d1139dc65594c8b560fefb7cd Mon Sep 17 00:00:00 2001 From: Hare Date: Thu, 3 Sep 2026 05:07:03 +0900 Subject: [PATCH] fix: fence uploaded attachment lifecycle --- crates/workspace-server/bindings/ConfigCommitRequest.ts | 5 +++++ crates/workspace-server/bindings/ConfigContentType.ts | 3 +++ crates/workspace-server/bindings/ConfigEntry.ts | 5 +++++ .../workspace-server/bindings/ConfigProjectionValidator.ts | 3 +++ crates/workspace-server/bindings/ConfigSchemaContribution.ts | 4 ++++ crates/workspace-server/bindings/ConfigTreeChange.ts | 5 +++++ crates/workspace-server/bindings/ConfigTreeSnapshot.ts | 5 +++++ crates/workspace-server/bindings/ToolchainContract.ts | 5 +++++ crates/workspace-server/bindings/VirtualPath.ts | 3 +++ .../workspace-server/bindings/WorkspaceConfigSchemaBundle.ts | 4 ++++ crates/workspace-server/bindings/WorkspaceConfigState.ts | 5 +++++ 11 files changed, 47 insertions(+) create mode 100644 crates/workspace-server/bindings/ConfigCommitRequest.ts create mode 100644 crates/workspace-server/bindings/ConfigContentType.ts create mode 100644 crates/workspace-server/bindings/ConfigEntry.ts create mode 100644 crates/workspace-server/bindings/ConfigProjectionValidator.ts create mode 100644 crates/workspace-server/bindings/ConfigSchemaContribution.ts create mode 100644 crates/workspace-server/bindings/ConfigTreeChange.ts create mode 100644 crates/workspace-server/bindings/ConfigTreeSnapshot.ts create mode 100644 crates/workspace-server/bindings/ToolchainContract.ts create mode 100644 crates/workspace-server/bindings/VirtualPath.ts create mode 100644 crates/workspace-server/bindings/WorkspaceConfigSchemaBundle.ts create mode 100644 crates/workspace-server/bindings/WorkspaceConfigState.ts diff --git a/crates/workspace-server/bindings/ConfigCommitRequest.ts b/crates/workspace-server/bindings/ConfigCommitRequest.ts new file mode 100644 index 00000000..8c5fbd90 --- /dev/null +++ b/crates/workspace-server/bindings/ConfigCommitRequest.ts @@ -0,0 +1,5 @@ +// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. +import type { ConfigTreeChange } from "./ConfigTreeChange"; +import type { VirtualPath } from "./VirtualPath"; + +export type ConfigCommitRequest = { base_revision: number, base_digest: string, changes: Array, entrypoints: Array, }; diff --git a/crates/workspace-server/bindings/ConfigContentType.ts b/crates/workspace-server/bindings/ConfigContentType.ts new file mode 100644 index 00000000..bef199f9 --- /dev/null +++ b/crates/workspace-server/bindings/ConfigContentType.ts @@ -0,0 +1,3 @@ +// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. + +export type ConfigContentType = "decodal" | "text"; diff --git a/crates/workspace-server/bindings/ConfigEntry.ts b/crates/workspace-server/bindings/ConfigEntry.ts new file mode 100644 index 00000000..1e16ad74 --- /dev/null +++ b/crates/workspace-server/bindings/ConfigEntry.ts @@ -0,0 +1,5 @@ +// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. +import type { ConfigContentType } from "./ConfigContentType"; +import type { VirtualPath } from "./VirtualPath"; + +export type ConfigEntry = { path: VirtualPath, content_type: ConfigContentType, content: string, content_digest: string, }; diff --git a/crates/workspace-server/bindings/ConfigProjectionValidator.ts b/crates/workspace-server/bindings/ConfigProjectionValidator.ts new file mode 100644 index 00000000..04cd5395 --- /dev/null +++ b/crates/workspace-server/bindings/ConfigProjectionValidator.ts @@ -0,0 +1,3 @@ +// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. + +export type ConfigProjectionValidator = { "kind": "static_template_catalog", namespace: string, key_aliases?: { [key in string]: string }, }; diff --git a/crates/workspace-server/bindings/ConfigSchemaContribution.ts b/crates/workspace-server/bindings/ConfigSchemaContribution.ts new file mode 100644 index 00000000..69d5a595 --- /dev/null +++ b/crates/workspace-server/bindings/ConfigSchemaContribution.ts @@ -0,0 +1,4 @@ +// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. +import type { ConfigProjectionValidator } from "./ConfigProjectionValidator"; + +export type ConfigSchemaContribution = { provider_id: string, namespace: string, version: string, source: string, projection_validator?: ConfigProjectionValidator | null, source_digest: string, }; diff --git a/crates/workspace-server/bindings/ConfigTreeChange.ts b/crates/workspace-server/bindings/ConfigTreeChange.ts new file mode 100644 index 00000000..9f2442c4 --- /dev/null +++ b/crates/workspace-server/bindings/ConfigTreeChange.ts @@ -0,0 +1,5 @@ +// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. +import type { ConfigContentType } from "./ConfigContentType"; +import type { VirtualPath } from "./VirtualPath"; + +export type ConfigTreeChange = { "kind": "create", path: VirtualPath, content_type: ConfigContentType, content: string, } | { "kind": "update", path: VirtualPath, expected_digest: string, content: string, } | { "kind": "rename", from: VirtualPath, to: VirtualPath, expected_digest: string, } | { "kind": "delete", path: VirtualPath, expected_digest: string, }; diff --git a/crates/workspace-server/bindings/ConfigTreeSnapshot.ts b/crates/workspace-server/bindings/ConfigTreeSnapshot.ts new file mode 100644 index 00000000..5f723ce9 --- /dev/null +++ b/crates/workspace-server/bindings/ConfigTreeSnapshot.ts @@ -0,0 +1,5 @@ +// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. +import type { ConfigEntry } from "./ConfigEntry"; +import type { VirtualPath } from "./VirtualPath"; + +export type ConfigTreeSnapshot = { revision: number, digest: string, entries: { [key in VirtualPath]: ConfigEntry }, }; diff --git a/crates/workspace-server/bindings/ToolchainContract.ts b/crates/workspace-server/bindings/ToolchainContract.ts new file mode 100644 index 00000000..152cd58f --- /dev/null +++ b/crates/workspace-server/bindings/ToolchainContract.ts @@ -0,0 +1,5 @@ +// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. +import type { VirtualPath } from "./VirtualPath"; +import type { WorkspaceConfigSchemaBundle } from "./WorkspaceConfigSchemaBundle"; + +export type ToolchainContract = { contract_version: number, decodal_version: string, schema_version: number, entrypoints: Array, import_policy_version: number, schema_bundle: WorkspaceConfigSchemaBundle, fingerprint: string, }; diff --git a/crates/workspace-server/bindings/VirtualPath.ts b/crates/workspace-server/bindings/VirtualPath.ts new file mode 100644 index 00000000..12c7d5ec --- /dev/null +++ b/crates/workspace-server/bindings/VirtualPath.ts @@ -0,0 +1,3 @@ +// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. + +export type VirtualPath = string; diff --git a/crates/workspace-server/bindings/WorkspaceConfigSchemaBundle.ts b/crates/workspace-server/bindings/WorkspaceConfigSchemaBundle.ts new file mode 100644 index 00000000..48b2e3d8 --- /dev/null +++ b/crates/workspace-server/bindings/WorkspaceConfigSchemaBundle.ts @@ -0,0 +1,4 @@ +// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. +import type { ConfigSchemaContribution } from "./ConfigSchemaContribution"; + +export type WorkspaceConfigSchemaBundle = { contributions: Array, source: string, fingerprint: string, }; diff --git a/crates/workspace-server/bindings/WorkspaceConfigState.ts b/crates/workspace-server/bindings/WorkspaceConfigState.ts new file mode 100644 index 00000000..592277cc --- /dev/null +++ b/crates/workspace-server/bindings/WorkspaceConfigState.ts @@ -0,0 +1,5 @@ +// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. +import type { ConfigTreeSnapshot } from "./ConfigTreeSnapshot"; +import type { ToolchainContract } from "./ToolchainContract"; + +export type WorkspaceConfigState = { snapshot: ConfigTreeSnapshot, contract: ToolchainContract, projection_digest: string, };