UNPKG

@better-auth-ui/core

Version:

Authentication components and data utilities for [Better Auth](https://better-auth.com), available for React and Solid.

33 lines (32 loc) 1.84 kB
import { skipToken } from '@tanstack/query-core'; import { AgentApproval, AgentApprovalRequest, AgentAuthAdapter, AgentAuthorization } from './agent-auth-adapter'; export declare const agentAuthQueryKeys: { readonly all: (userId?: string) => readonly ["auth", "user", string | undefined, "agent-auth"]; readonly approval: (request?: AgentApprovalRequest, userId?: string) => readonly ["auth", "user", string | undefined, "agent-auth", "approval", string | undefined, string | undefined, string | undefined]; readonly agents: (userId?: string) => readonly ["auth", "user", string | undefined, "agent-auth", "agents"]; }; export declare const agentApprovalOptions: (adapter: AgentAuthAdapter, request: AgentApprovalRequest | undefined, userId?: string) => { queryKey: readonly ["auth", "user", string | undefined, "agent-auth", "approval", string | undefined, string | undefined, string | undefined]; meta: { errorPresentation: string; }; queryFn: typeof skipToken | (({ signal }: { client: import('@tanstack/query-core').QueryClient; queryKey: readonly unknown[]; signal: AbortSignal; meta: import('@tanstack/query-core').QueryMeta | undefined; pageParam?: unknown; direction?: unknown; }) => Promise<AgentApproval>); }; export declare const agentAuthorizationsOptions: (adapter: AgentAuthAdapter, userId?: string) => { queryKey: readonly ["auth", "user", string | undefined, "agent-auth", "agents"]; queryFn: typeof skipToken | (({ signal }: { client: import('@tanstack/query-core').QueryClient; queryKey: readonly unknown[]; signal: AbortSignal; meta: import('@tanstack/query-core').QueryMeta | undefined; pageParam?: unknown; direction?: unknown; }) => Promise<AgentAuthorization[]>); };