import { m as KvRetryOptions } from "./types-Ddk4r5x9.mjs"; import { BetterAuthClientOptions, ClientStore } from "better-auth"; import { BetterFetch } from "@better-fetch/fetch"; //#region src/dash-client.d.ts interface DashAuditLog { eventType: string; eventData: Record; eventKey: string; projectId: string; createdAt: string; updatedAt: string; ageInMinutes?: number; location?: { ipAddress?: string | null; city?: string | null; country?: string | null; countryCode?: string | null; }; } interface DashAuditLogsResponse { events: DashAuditLog[]; total: number; limit: number; offset: number; } type SessionLike = { user?: { id?: string | null; }; }; type UserLike = { id?: string | null; }; interface DashGetAuditLogsInput { limit?: number; offset?: number; organizationId?: string; identifier?: string; eventType?: string; userId?: string; user?: UserLike | null; session?: SessionLike | null; } interface DashGetAllAuditLogsInput { limit?: number; offset?: number; organizationId?: string; userId?: string; eventType?: string; identifier?: string; session?: SessionLike | null; } interface DashClientOptions { resolveUserId?: (input: { userId?: string; user?: UserLike | null; session?: SessionLike | null; }) => string | undefined; } declare const dashClient: (options?: DashClientOptions) => { id: string; getActions: ($fetch: BetterFetch, _store: ClientStore, _options: BetterAuthClientOptions | undefined) => { dash: { getAuditLogs: (input?: DashGetAuditLogsInput) => Promise<{ data: null; error: { message?: string | undefined; status: number; statusText: string; }; } | { data: DashAuditLogsResponse; error: null; }>; getAllAuditLogs: (input?: DashGetAllAuditLogsInput) => Promise<{ data: null; error: { message?: string | undefined; status: number; statusText: string; }; } | { data: DashAuditLogsResponse; error: null; }>; }; }; pathMethods: { readonly "/events/audit-logs": "GET"; readonly "/events/all-audit-logs": "GET"; }; }; //#endregion //#region src/sentinel/identify-client-options.d.ts type IdentifyClientOptions = { /** * Timeout for identify and related HTTP requests (milliseconds). * @default 1000 */ timeout?: number; /** * Retry/backoff for identify POST requests. * @default { attempts: 2, baseDelay: 400, maxDelay: 600 } */ retry?: KvRetryOptions; }; //#endregion export { DashGetAllAuditLogsInput as a, DashClientOptions as i, DashAuditLog as n, DashGetAuditLogsInput as o, DashAuditLogsResponse as r, dashClient as s, IdentifyClientOptions as t };