UNPKG

@convo-lang/convo-lang

Version:
109 lines (108 loc) 2.5 kB
import { z } from 'zod'; export declare const ConvoSignInJwtValueSchema: z.ZodObject<{ /** * Unique user id */ id: z.ZodString; /** * Paths the sign-in can assume the identity of. */ identityPaths: z.ZodArray<z.ZodString, "many">; /** * Additional sign-in claims */ claims: z.ZodRecord<z.ZodString, z.ZodAny>; }, "strip", z.ZodTypeAny, { id: string; identityPaths: string[]; claims: Record<string, any>; }, { id: string; identityPaths: string[]; claims: Record<string, any>; }>; export declare const ConvoSignInJwtTransportSchema: z.ZodObject<{ /** * Unique user id */ id: z.ZodString; /** * Paths the sign-in can assume the identity of. */ identityPaths: z.ZodArray<z.ZodString, "many">; /** * Additional sign-in claims */ claims: z.ZodRecord<z.ZodString, z.ZodAny>; } & { /** * Name of the database the JWT belongs */ dbName: z.ZodString; }, "strip", z.ZodTypeAny, { id: string; identityPaths: string[]; claims: Record<string, any>; dbName: string; }, { id: string; identityPaths: string[]; claims: Record<string, any>; dbName: string; }>; export declare const ConvoSignInJwtSchema: z.ZodObject<{ /** * Unique user id */ id: z.ZodString; /** * Paths the sign-in can assume the identity of. */ identityPaths: z.ZodArray<z.ZodString, "many">; /** * Additional sign-in claims */ claims: z.ZodRecord<z.ZodString, z.ZodAny>; } & { /** * Name of the database the JWT belongs */ dbName: z.ZodString; } & { /** * Signed JWT containing containing identityPaths and any additional claims */ jwt: z.ZodString; }, "strip", z.ZodTypeAny, { id: string; identityPaths: string[]; claims: Record<string, any>; dbName: string; jwt: string; }, { id: string; identityPaths: string[]; claims: Record<string, any>; dbName: string; jwt: string; }>; export declare const ConvoEmailPasswordSignRequestSchema: z.ZodObject<{ email: z.ZodString; password: z.ZodString; }, "strip", z.ZodTypeAny, { email: string; password: string; }, { email: string; password: string; }>; export declare const ConvoEmailOtpSignRequestSchema: z.ZodObject<{ email: z.ZodString; otp: z.ZodString; }, "strip", z.ZodTypeAny, { email: string; otp: string; }, { email: string; otp: string; }>;