import z from 'zod'; /** ****************************************************************************** * Error Handling ******************************************************************************* */ export declare const serviceError: z.ZodObject<{ message: z.ZodString; fields: z.ZodOptional>; }, "strip", z.ZodTypeAny, { message: string; fields?: Record | undefined; }, { message: string; fields?: Record | undefined; }>; export type ServiceError = z.infer; export declare const toError: (message: string) => ServiceError; /** ****************************************************************************** * Authentication ******************************************************************************* */ export declare const authToken: z.ZodString; export declare const authData: z.ZodObject<{ email: z.ZodOptional; userId: z.ZodOptional; organizationId: z.ZodOptional; token: z.ZodOptional; }, "strip", z.ZodTypeAny, { email?: string | undefined; userId?: string | undefined; organizationId?: string | undefined; token?: string | undefined; }, { email?: string | undefined; userId?: string | undefined; organizationId?: string | undefined; token?: string | undefined; }>; export type AuthToken = z.infer; export type AuthData = z.infer; /** ****************************************************************************** * Request/Response ******************************************************************************* */ export declare const serviceRequest: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>; export declare const authedServiceRequest: z.ZodObject<{ auth: z.ZodObject<{ email: z.ZodOptional; userId: z.ZodOptional; organizationId: z.ZodOptional; token: z.ZodOptional; }, "strip", z.ZodTypeAny, { email?: string | undefined; userId?: string | undefined; organizationId?: string | undefined; token?: string | undefined; }, { email?: string | undefined; userId?: string | undefined; organizationId?: string | undefined; token?: string | undefined; }>; }, "strip", z.ZodTypeAny, { auth: { email?: string | undefined; userId?: string | undefined; organizationId?: string | undefined; token?: string | undefined; }; }, { auth: { email?: string | undefined; userId?: string | undefined; organizationId?: string | undefined; token?: string | undefined; }; }>; export declare const serviceResponse: z.ZodObject<{ status: z.ZodEnum<[string, ...string[]]>; error: z.ZodOptional>; }, "strip", z.ZodTypeAny, { message: string; fields?: Record | undefined; }, { message: string; fields?: Record | undefined; }>>; }, "strip", z.ZodTypeAny, { status: string; error?: { message: string; fields?: Record | undefined; } | undefined; }, { status: string; error?: { message: string; fields?: Record | undefined; } | undefined; }>; export type ServiceRequest = z.infer; export type AuthedServiceRequest = z.infer; export type ServiceResponse = z.infer;