@better-auth-ui/core
Version:
Authentication components and data utilities for [Better Auth](https://better-auth.com), available for React and Solid.
32 lines (31 loc) • 1.39 kB
TypeScript
import { AgentApprovalDecision, AgentAuthAdapter } from './agent-auth-adapter';
export declare const agentAuthMutationKeys: {
readonly approve: readonly ["auth", "agent-auth", "approve"];
readonly deny: readonly ["auth", "agent-auth", "deny"];
readonly revoke: readonly ["auth", "agent-auth", "revoke"];
};
export declare const approveAgentOptions: (adapter: AgentAuthAdapter, userId?: string) => {
mutationKey: readonly ["auth", "agent-auth", "approve"];
mutationFn: (decision: AgentApprovalDecision) => Promise<void>;
meta: {
awaits: (readonly ["auth", "user", string | undefined, "agent-auth"])[];
};
};
export declare const denyAgentOptions: (adapter: AgentAuthAdapter, userId?: string) => {
mutationKey: readonly ["auth", "agent-auth", "deny"];
mutationFn: (decision: AgentApprovalDecision) => Promise<void>;
meta: {
awaits: (readonly ["auth", "user", string | undefined, "agent-auth"])[];
};
};
export type RevokeAgentCapability = {
agentId: string;
capability: string;
};
export declare const revokeAgentCapabilityOptions: (adapter: AgentAuthAdapter, userId?: string) => {
mutationKey: readonly ["auth", "agent-auth", "revoke"];
mutationFn: ({ agentId, capability }: RevokeAgentCapability) => Promise<void>;
meta: {
awaits: (readonly ["auth", "user", string | undefined, "agent-auth"])[];
};
};