Expand description
Shared contracts for the TypeScript/JavaScript script migration.
These models do not authorize an invocation or implement an interpreter. Deserialize, validate, and then resolve ownership against trusted caller context.
Structs§
- Contract
Error - Field
- List
Type - Script
Artifact - Metadata and source must be bound by the same verified manifest.
- Script
Contract - Build-generated metadata from defineScript. Every top-level field is required.
- Script
Error - Value
Limits
Enums§
- Artifact
Format - Field
Type - Scalar tags or recursively nested {“list”: …}. Objects remain intentionally dynamic.
- Scalar
Type - Script
Outcome - Internal outcome only. TypeScript functions return data or throw ScriptError.
- Script
Ref - Exact immutable resource identity. Tenant and Space are deliberately not caller fields.
- Script
Value - Owned values at the native script boundary. Domain objects retain their
_type/unit/value or URI fields; adapters interpret them without losing units. The tagged wire representation is only for process boundaries, not local calls.
Constants§
- ARTIFACT_
FORMAT - CONTRACT_
VERSION - MAX_
ARTIFACT_ BYTES - MAX_
CONTRACT_ DEPTH - MAX_
CONTRACT_ FIELDS - MAX_
FUNCTIONS - MAX_
SAFE_ VERSION - MAX_
SOURCE_ BYTES - MAX_
YAML_ BYTES - SCRIPT_
CALL_ OPCODE - New instruction layout; the former Wasm 0x13 and 0x1c layouts are not aliases.
- SCRIPT_
CALL_ OPERANDS