@edgible-team/sdk
    Preparing search index...

    Interface StorageUploadGrant

    Kick-off response for an upload session. sessionToken is one-time.

    interface StorageUploadGrant {
        applyMode: "replace" | "merge";
        expiresAt: number;
        ingestUrl: string;
        pinCertDerB64?: string;
        quiesce: boolean;
        sessionToken: string;
        state: IngestSessionState;
        uploadId: string;
    }
    Index

    Properties

    applyMode: "replace" | "merge"
    expiresAt: number

    ms epoch token expiry.

    ingestUrl: string

    Hostname the caller PUT-streams the tarball to.

    pinCertDerB64?: string

    T1a (Arch A): base64 DER of the device-managed self-signed LEAF the target device serves on its ingest host. When present, the upload client MUST PIN this leaf — trust it as a CA for the ingest PUT (with normal SAN hostname validation) — instead of relying on a public CA. Absent for a grant minted before the device reported its cert (un-migrated / pre-report devices), in which case the client keeps its default public-CA behaviour.

    quiesce: boolean
    sessionToken: string

    One-time plaintext session token — never returned by later reads.

    state: IngestSessionState
    uploadId: string