Beignet API reference
    Preparing search index...

    Interface CreateBetterAuthAgentCapabilityTestContextOptions

    Options for a minimal Better Auth Agent Auth execution context.

    interface CreateBetterAuthAgentCapabilityTestContextOptions {
        agentId?: string;
        agentSession?: Partial<AgentSession>;
        arguments?: Record<string, unknown>;
        capability?: string;
        capabilityDef?: Capability;
        constraints?: CapabilityConstraints | null;
        ctx?: GenericEndpointContext;
        grant?: Partial<AgentCapabilityGrant>;
        revokeGrant?: () => Promise<void>;
        userId?: string | null;
    }
    Index
    agentId?: string

    Verified agent identifier.

    agentSession?: Partial<AgentSession>

    Agent session fields merged over the generated session.

    arguments?: Record<string, unknown>

    Raw capability arguments presented by Agent Auth.

    capability?: string

    Capability name presented to the adapter.

    capabilityDef?: Capability

    Complete capability definition override for advanced adapter tests.

    constraints?: CapabilityConstraints | null

    Constraints attached to the active grant.

    ctx?: GenericEndpointContext

    Better Auth endpoint context override.

    grant?: Partial<AgentCapabilityGrant>

    Grant fields merged over the generated active grant.

    revokeGrant?: () => Promise<void>

    Grant revocation callback override.

    userId?: string | null

    Represented user identifier, or null for an autonomous agent.