UNPKG

@casual-simulation/aux-common

Version:
30 lines 800 B
import { z } from 'zod'; export interface ConnectionInfo { /** * The ID of the connection. */ connectionId: string; /** * The ID of the session. */ sessionId: string | null; /** * The ID of the user that is associated with the connection. */ userId: string | null; } export declare const connectionInfoSchema: z.ZodObject<{ connectionId: z.ZodString; sessionId: z.ZodString; userId: z.ZodString; }, "strip", z.ZodTypeAny, { connectionId?: string; sessionId?: string; userId?: string; }, { connectionId?: string; sessionId?: string; userId?: string; }>; export declare function connectionInfo(userId: string, sessionId: string, connectionId: string): ConnectionInfo; //# sourceMappingURL=ConnectionInfo.d.ts.map