UNPKG

@better-auth-ui/core

Version:

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

17 lines (16 loc) 1.47 kB
/** Query keys for Admin data, partitioned by the acting user. */ export declare const adminQueryKeys: { readonly all: (actorUserId?: string) => readonly ["auth", "user", string | undefined, "admin"]; readonly users: { readonly all: (actorUserId?: string) => readonly ["auth", "user", string | undefined, "admin", "users"]; readonly lists: (actorUserId?: string) => readonly ["auth", "user", string | undefined, "admin", "users", "list"]; readonly list: <TParams>(actorUserId: string | undefined, params: TParams) => readonly ["auth", "user", string | undefined, "admin", "users", "list", TParams]; readonly details: (actorUserId?: string) => readonly ["auth", "user", string | undefined, "admin", "users", "detail"]; readonly detail: (actorUserId: string | undefined, targetUserId?: string) => readonly ["auth", "user", string | undefined, "admin", "users", "detail", string | null]; readonly sessions: (actorUserId: string | undefined, targetUserId?: string) => readonly ["auth", "user", string | undefined, "admin", "users", "detail", string | null, "sessions"]; }; readonly permissions: { readonly all: (actorUserId?: string) => readonly ["auth", "user", string | undefined, "admin", "permissions"]; readonly has: <TPermission>(actorUserId: string | undefined, permission: TPermission) => readonly ["auth", "user", string | undefined, "admin", "permissions", TPermission]; }; };