Cotal TypeScript packages
    Preparing search index...

    Interface ActorGrant

    What the operator's ledger grants a (owner, actor) pair — the ONLY source of scope/parent in the minted bearer. Returned by CreateIdpBridgeOpts.authorizeActor; the hook throws to deny.

    interface ActorGrant {
        allowPublish?: string[];
        allowSubscribe?: string[];
        label?: string;
        lifecycleUid?: string;
        parent?: string;
        role?: string;
        scope?: string[];
    }
    Index
    allowPublish?: string[]
    allowSubscribe?: string[]

    The row's CURRENT channel ACLs, when the bridge's ledger can supply them. A refusal that has to print a re-grant needs these: cotal actor grant is a whole-row upsert, so a command that names only the field being changed resets these two to > and >. Optional because the hook is pluggable; a bridge that cannot supply them gets a refusal that names the flags and refuses to invent their values, rather than one that prints a placeholder.

    label?: string
    lifecycleUid?: string

    The row's lifecycle UID (SPEC 13.1) — stamped into the bearer so a predecessor incarnation's still-unexpired bearer can never be minted the successor's broker authority at connect.

    parent?: string

    The spawning principal (<owner>.<actor> dot-form), when the ledger records one.

    role?: string

    Carried for the same reason: an upsert that does not name them drops them.

    scope?: string[]