Cotal TypeScript packages
    Preparing search index...

    Type Alias AclResolver

    AclResolver: (
        t: ValidatedUserToken,
        pluginChannelsEnabled?: boolean,
    ) => Pick<
        MintOpts,
        | "allowSubscribe"
        | "allowPublish"
        | "role"
        | "lifecycleUid"
        | "eventPayloads",
    > & {
        kind?: "interactive"
        | "managed-agent";
        parentHasRun?: boolean;
        scope: string[];
    }

    The per-agent channel/role ACL a user-mode grant needs — resolved SERVER-SIDE (the spawn ledger / persona registry, keyed by the authenticated principal), because the user token carries the identity and capabilities but NOT the channel read/post ACL. Injected by the composition root that launches the callout (cotal up), so this package stays free of any ledger/persona storage concern.

    Type Declaration

      • (
            t: ValidatedUserToken,
            pluginChannelsEnabled?: boolean,
        ): Pick<
            MintOpts,
            | "allowSubscribe"
            | "allowPublish"
            | "role"
            | "lifecycleUid"
            | "eventPayloads",
        > & {
            kind?: "interactive"
            | "managed-agent";
            parentHasRun?: boolean;
            scope: string[];
        }
      • Parameters

        Returns Pick<
            MintOpts,
            | "allowSubscribe"
            | "allowPublish"
            | "role"
            | "lifecycleUid"
            | "eventPayloads",
        > & {
            kind?: "interactive"
            | "managed-agent";
            parentHasRun?: boolean;
            scope: string[];
        }

        • Optionalkind?: "interactive" | "managed-agent"

          The row space the actor was found in.

        • OptionalparentHasRun?: boolean

          Fresh direct-parent grant, independently of the child's persona-derived scope. An admin parent's containment bypass does not imply this grant (SPEC 13.15).

        • scope: string[]

          The actor's CURRENT capability grant (the row's scope), so the mint can re-contain the bearer's capabilities against the row AS OF THE MINT, not only as of the connect gate.