ISPO SDK
    Preparing search index...

    Interface CapabilityInvocationResult

    Markdown

    The blocking-RPC result the caller receives, host-validated.

    interface CapabilityInvocationResult {
        channel: CapabilityResultChannel;
        envelope?: CapabilityResultEnvelope;
        error?: string;
        errorCode?:
            | "outcome-unknown"
            | "cancelled"
            | "interrupted"
            | "schema-invalid"
            | "denied"
            | "no-descriptor"
            | "egress-blocked"
            | "worker-mismatch"
            | "worker-error"
            | "idempotency-conflict"
            | "integrity-failed"
            | "outside-reviewed-eligibility"
            | "apply-failed"
            | "consent-pending"
            | "consent-expired"
            | "policy-blocked"
            | "precondition-unmet";
        invocationId: string;
        ok: boolean;
        resourceArtifacts?: {
            byteLength: number;
            digest: string;
            kind: "files"
            | "assets";
            mediaType:
                | "image/png"
                | "image/jpeg"
                | "image/webp"
                | "text/plain"
                | "application/json"
                | "audio/wav";
            ref: string;
            revision: string;
        }[];
        reviewOpened: boolean;
    }
    Index

    Present iff ok.

    error?: string
    errorCode?:
        | "outcome-unknown"
        | "cancelled"
        | "interrupted"
        | "schema-invalid"
        | "denied"
        | "no-descriptor"
        | "egress-blocked"
        | "worker-mismatch"
        | "worker-error"
        | "idempotency-conflict"
        | "integrity-failed"
        | "outside-reviewed-eligibility"
        | "apply-failed"
        | "consent-pending"
        | "consent-expired"
        | "policy-blocked"
        | "precondition-unmet"
    invocationId: string
    ok: boolean
    resourceArtifacts?: {
        byteLength: number;
        digest: string;
        kind: "files" | "assets";
        mediaType:
            | "image/png"
            | "image/jpeg"
            | "image/webp"
            | "text/plain"
            | "application/json"
            | "audio/wav";
        ref: string;
        revision: string;
    }[]

    Host-validated revisions of a resource command’s accepted artifacts.

    reviewOpened: boolean

    True only for source-patch — the caller-side review path was opened, not a write. Every other channel returns refs/data directly and leaves this false.