T-722: reuse T-721 storage/CAS/receipts with clone-bound transaction authorization against attached Server authority. Add migration 84 audited Worker read_only/read_write grants and removal/deletion fencing, member-facing ordinary access, owner-controlled grant settings, Workspace-bound decimal entry references, bounded text/binary chunks, streamed HTTP receive/download with integrity and safe headers, typed errors and generated Rust/OpenAPI/TypeScript contracts. Validation: root cargo check; server-api 83 default / 91 typescript tests; FeatureStorage 16; Drive 31 unit + 12 integration; Workspace Server 691 library + 11 binary tests (--test-threads=4), including 9 real DB/LocalFileSystem HTTP tests for two Workers/non-owner usage, revoke during reception, concurrent CAS, response-loss receipts, chunk expiry and safe binary media. cargo fmt --all -- --check and git diff --check HEAD passed. Existing OpenAPI schemas/routes semantically unchanged; dependent TS digest projections regenerated.
62 lines
1.3 KiB
TOML
62 lines
1.3 KiB
TOML
[package]
|
|
name = "server-api"
|
|
version = "0.1.0"
|
|
edition.workspace = true
|
|
license.workspace = true
|
|
publish = false
|
|
|
|
[features]
|
|
default = []
|
|
typescript = ["dep:ts-rs", "protocol/typescript"]
|
|
|
|
[dependencies]
|
|
api-macros = { workspace = true, features = ["reqwest", "axum", "openapi"] }
|
|
memory.workspace = true
|
|
merge-request.workspace = true
|
|
protocol = { workspace = true, features = ["json-schema"] }
|
|
runtime-api.workspace = true
|
|
schemars.workspace = true
|
|
serde = { workspace = true, features = ["derive"] }
|
|
serde_json.workspace = true
|
|
sha2.workspace = true
|
|
ticket.workspace = true
|
|
ts-rs = { version = "12.0.1", optional = true }
|
|
webauthn-rs-proto = "0.5.5"
|
|
workdir.workspace = true
|
|
|
|
[dev-dependencies]
|
|
tokio.workspace = true
|
|
|
|
[[example]]
|
|
name = "generate_legacy_typescript"
|
|
required-features = ["typescript"]
|
|
|
|
[[example]]
|
|
name = "generate_workdir_api_types"
|
|
|
|
[[example]]
|
|
name = "generate_worker_launch_api_types"
|
|
|
|
[[example]]
|
|
name = "generate_companion_api_types"
|
|
|
|
[[example]]
|
|
name = "generate_memory_api_types"
|
|
required-features = ["typescript"]
|
|
|
|
[[example]]
|
|
name = "generate_skill_api_types"
|
|
required-features = ["typescript"]
|
|
|
|
[[example]]
|
|
name = "generate_auth_api_types"
|
|
required-features = ["typescript"]
|
|
|
|
[[example]]
|
|
name = "generate_repository_access_types"
|
|
required-features = ["typescript"]
|
|
|
|
[[example]]
|
|
name = "generate_drive_api_types"
|
|
required-features = ["typescript"]
|