Skip to main content

DeployComputeVersionInput

Upload a new immutable source version of a module. The source is validated (size caps, crate allowlist, no build-time code) and parked as compile_status=pending until an instance compiles it.

input DeployComputeVersionInput {
appId: BigInt!
moduleName: String!
sourceFilesJson: String!
sdkVersion: String!
abiVersion: Int!
}

Fields

DeployComputeVersionInput.appId ● BigInt! non-null scalar

The app (tenant) that owns the module.

DeployComputeVersionInput.moduleName ● String! non-null scalar

The module (by name) this version belongs to.

DeployComputeVersionInput.sourceFilesJson ● String! non-null scalar

JSON object mapping relative paths to file contents. Must include Cargo.toml and src/lib.rs; only .rs files under src/ plus Cargo.toml are allowed. Dependencies are restricted to the platform crate allowlist; build.rs and [build-dependencies] are rejected.

DeployComputeVersionInput.sdkVersion ● String! non-null scalar

The crowdy-compute-sdk version the source targets (must be a platform-supported version, e.g. '0.0.1').

DeployComputeVersionInput.abiVersion ● Int! non-null scalar

The guest ABI version the source targets (must be platform-supported; currently 0).

Member Of

computeDeployVersion mutation