@casual-simulation/aux-common
Version:
Common library for AUX projects
35 lines • 962 B
TypeScript
import { z } from 'zod';
/**
* Information about a connection.
*
* @dochash types/documents
* @docid ConnectionInfo
* @docname ConnectionInfo
*/
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;
}, z.core.$strip>) & {
cache: import("es-toolkit").MemoizeCache<any, z.ZodObject<{
connectionId: z.ZodString;
sessionId: z.ZodString;
userId: z.ZodString;
}, z.core.$strip>>;
};
export declare function connectionInfo(userId: string, sessionId: string, connectionId: string): ConnectionInfo;
//# sourceMappingURL=ConnectionInfo.d.ts.map