import { Payload } from "@weegigs/events-core"; import { z } from "zod"; export declare namespace ExecuteRequest { const schema: z.ZodObject<{ target: z.ZodObject<{ type: z.ZodString; key: z.ZodString; }, "strict", z.ZodTypeAny, { type: string; key: string; }, { type: string; key: string; }>; command: z.ZodString; payload: z.ZodType; metadata: z.ZodDefault>; }, "strict", z.ZodTypeAny, { target: { type: string; key: string; }; command: string; payload: Payload; metadata: Record; }, { target: { type: string; key: string; }; command: string; payload: Payload; metadata?: Record | undefined; }>; type Type = z.infer; } export declare namespace ExecuteResponse { const schema: (stateSchema: S) => z.ZodObject<{ entity: z.ZodObject<{ aggregate: z.ZodObject<{ type: z.ZodString; key: z.ZodString; }, "strict", z.ZodTypeAny, { type: string; key: string; }, { type: string; key: string; }>; type: z.ZodString; revision: z.ZodString; state: S; }, "strip", z.ZodTypeAny, z.objectUtil.addQuestionMarks; type: z.ZodString; revision: z.ZodString; state: S; }>, any> extends infer T ? { [k in keyof T]: z.objectUtil.addQuestionMarks; type: z.ZodString; revision: z.ZodString; state: S; }>, any>[k]; } : never, z.baseObjectInputType<{ aggregate: z.ZodObject<{ type: z.ZodString; key: z.ZodString; }, "strict", z.ZodTypeAny, { type: string; key: string; }, { type: string; key: string; }>; type: z.ZodString; revision: z.ZodString; state: S; }> extends infer T_1 ? { [k_1 in keyof T_1]: z.baseObjectInputType<{ aggregate: z.ZodObject<{ type: z.ZodString; key: z.ZodString; }, "strict", z.ZodTypeAny, { type: string; key: string; }, { type: string; key: string; }>; type: z.ZodString; revision: z.ZodString; state: S; }>[k_1]; } : never>; metadata: z.ZodDefault>; }, "strict", z.ZodTypeAny, z.objectUtil.addQuestionMarks; type: z.ZodString; revision: z.ZodString; state: S; }, "strip", z.ZodTypeAny, z.objectUtil.addQuestionMarks; type: z.ZodString; revision: z.ZodString; state: S; }>, any> extends infer T_5 ? { [k in keyof T_5]: z.objectUtil.addQuestionMarks; type: z.ZodString; revision: z.ZodString; state: S; }>, any>[k]; } : never, z.baseObjectInputType<{ aggregate: z.ZodObject<{ type: z.ZodString; key: z.ZodString; }, "strict", z.ZodTypeAny, { type: string; key: string; }, { type: string; key: string; }>; type: z.ZodString; revision: z.ZodString; state: S; }> extends infer T_6 ? { [k_1 in keyof T_6]: z.baseObjectInputType<{ aggregate: z.ZodObject<{ type: z.ZodString; key: z.ZodString; }, "strict", z.ZodTypeAny, { type: string; key: string; }, { type: string; key: string; }>; type: z.ZodString; revision: z.ZodString; state: S; }>[k_1]; } : never>; metadata: z.ZodDefault>; }>, any> extends infer T_2 ? { [k_2 in keyof T_2]: z.objectUtil.addQuestionMarks; type: z.ZodString; revision: z.ZodString; state: S; }, "strip", z.ZodTypeAny, z.objectUtil.addQuestionMarks; type: z.ZodString; revision: z.ZodString; state: S; }>, any> extends infer T_3 ? { [k in keyof T_3]: z.objectUtil.addQuestionMarks; type: z.ZodString; revision: z.ZodString; state: S; }>, any>[k]; } : never, z.baseObjectInputType<{ aggregate: z.ZodObject<{ type: z.ZodString; key: z.ZodString; }, "strict", z.ZodTypeAny, { type: string; key: string; }, { type: string; key: string; }>; type: z.ZodString; revision: z.ZodString; state: S; }> extends infer T_4 ? { [k_1 in keyof T_4]: z.baseObjectInputType<{ aggregate: z.ZodObject<{ type: z.ZodString; key: z.ZodString; }, "strict", z.ZodTypeAny, { type: string; key: string; }, { type: string; key: string; }>; type: z.ZodString; revision: z.ZodString; state: S; }>[k_1]; } : never>; metadata: z.ZodDefault>; }>, any>[k_2]; } : never, z.baseObjectInputType<{ entity: z.ZodObject<{ aggregate: z.ZodObject<{ type: z.ZodString; key: z.ZodString; }, "strict", z.ZodTypeAny, { type: string; key: string; }, { type: string; key: string; }>; type: z.ZodString; revision: z.ZodString; state: S; }, "strip", z.ZodTypeAny, z.objectUtil.addQuestionMarks; type: z.ZodString; revision: z.ZodString; state: S; }>, any> extends infer T_10 ? { [k in keyof T_10]: z.objectUtil.addQuestionMarks; type: z.ZodString; revision: z.ZodString; state: S; }>, any>[k]; } : never, z.baseObjectInputType<{ aggregate: z.ZodObject<{ type: z.ZodString; key: z.ZodString; }, "strict", z.ZodTypeAny, { type: string; key: string; }, { type: string; key: string; }>; type: z.ZodString; revision: z.ZodString; state: S; }> extends infer T_11 ? { [k_1 in keyof T_11]: z.baseObjectInputType<{ aggregate: z.ZodObject<{ type: z.ZodString; key: z.ZodString; }, "strict", z.ZodTypeAny, { type: string; key: string; }, { type: string; key: string; }>; type: z.ZodString; revision: z.ZodString; state: S; }>[k_1]; } : never>; metadata: z.ZodDefault>; }> extends infer T_7 ? { [k_3 in keyof T_7]: z.baseObjectInputType<{ entity: z.ZodObject<{ aggregate: z.ZodObject<{ type: z.ZodString; key: z.ZodString; }, "strict", z.ZodTypeAny, { type: string; key: string; }, { type: string; key: string; }>; type: z.ZodString; revision: z.ZodString; state: S; }, "strip", z.ZodTypeAny, z.objectUtil.addQuestionMarks; type: z.ZodString; revision: z.ZodString; state: S; }>, any> extends infer T_8 ? { [k in keyof T_8]: z.objectUtil.addQuestionMarks; type: z.ZodString; revision: z.ZodString; state: S; }>, any>[k]; } : never, z.baseObjectInputType<{ aggregate: z.ZodObject<{ type: z.ZodString; key: z.ZodString; }, "strict", z.ZodTypeAny, { type: string; key: string; }, { type: string; key: string; }>; type: z.ZodString; revision: z.ZodString; state: S; }> extends infer T_9 ? { [k_1 in keyof T_9]: z.baseObjectInputType<{ aggregate: z.ZodObject<{ type: z.ZodString; key: z.ZodString; }, "strict", z.ZodTypeAny, { type: string; key: string; }, { type: string; key: string; }>; type: z.ZodString; revision: z.ZodString; state: S; }>[k_1]; } : never>; metadata: z.ZodDefault>; }>[k_3]; } : never>; type Type = z.infer>>; } export declare namespace LoadRequest { const schema: z.ZodObject<{ aggregateId: z.ZodObject<{ type: z.ZodString; key: z.ZodString; }, "strict", z.ZodTypeAny, { type: string; key: string; }, { type: string; key: string; }>; }, "strict", z.ZodTypeAny, { aggregateId: { type: string; key: string; }; }, { aggregateId: { type: string; key: string; }; }>; type Type = z.infer; } export declare namespace LoadResponse { const schema: (stateSchema: S) => z.ZodObject<{ entity: z.ZodObject<{ aggregate: z.ZodObject<{ type: z.ZodString; key: z.ZodString; }, "strict", z.ZodTypeAny, { type: string; key: string; }, { type: string; key: string; }>; type: z.ZodString; revision: z.ZodString; state: S; }, "strip", z.ZodTypeAny, z.objectUtil.addQuestionMarks; type: z.ZodString; revision: z.ZodString; state: S; }>, any> extends infer T ? { [k in keyof T]: z.objectUtil.addQuestionMarks; type: z.ZodString; revision: z.ZodString; state: S; }>, any>[k]; } : never, z.baseObjectInputType<{ aggregate: z.ZodObject<{ type: z.ZodString; key: z.ZodString; }, "strict", z.ZodTypeAny, { type: string; key: string; }, { type: string; key: string; }>; type: z.ZodString; revision: z.ZodString; state: S; }> extends infer T_1 ? { [k_1 in keyof T_1]: z.baseObjectInputType<{ aggregate: z.ZodObject<{ type: z.ZodString; key: z.ZodString; }, "strict", z.ZodTypeAny, { type: string; key: string; }, { type: string; key: string; }>; type: z.ZodString; revision: z.ZodString; state: S; }>[k_1]; } : never>; }, "strict", z.ZodTypeAny, z.objectUtil.addQuestionMarks; type: z.ZodString; revision: z.ZodString; state: S; }, "strip", z.ZodTypeAny, z.objectUtil.addQuestionMarks; type: z.ZodString; revision: z.ZodString; state: S; }>, any> extends infer T_5 ? { [k in keyof T_5]: z.objectUtil.addQuestionMarks; type: z.ZodString; revision: z.ZodString; state: S; }>, any>[k]; } : never, z.baseObjectInputType<{ aggregate: z.ZodObject<{ type: z.ZodString; key: z.ZodString; }, "strict", z.ZodTypeAny, { type: string; key: string; }, { type: string; key: string; }>; type: z.ZodString; revision: z.ZodString; state: S; }> extends infer T_6 ? { [k_1 in keyof T_6]: z.baseObjectInputType<{ aggregate: z.ZodObject<{ type: z.ZodString; key: z.ZodString; }, "strict", z.ZodTypeAny, { type: string; key: string; }, { type: string; key: string; }>; type: z.ZodString; revision: z.ZodString; state: S; }>[k_1]; } : never>; }>, any> extends infer T_2 ? { [k_2 in keyof T_2]: z.objectUtil.addQuestionMarks; type: z.ZodString; revision: z.ZodString; state: S; }, "strip", z.ZodTypeAny, z.objectUtil.addQuestionMarks; type: z.ZodString; revision: z.ZodString; state: S; }>, any> extends infer T_3 ? { [k in keyof T_3]: z.objectUtil.addQuestionMarks; type: z.ZodString; revision: z.ZodString; state: S; }>, any>[k]; } : never, z.baseObjectInputType<{ aggregate: z.ZodObject<{ type: z.ZodString; key: z.ZodString; }, "strict", z.ZodTypeAny, { type: string; key: string; }, { type: string; key: string; }>; type: z.ZodString; revision: z.ZodString; state: S; }> extends infer T_4 ? { [k_1 in keyof T_4]: z.baseObjectInputType<{ aggregate: z.ZodObject<{ type: z.ZodString; key: z.ZodString; }, "strict", z.ZodTypeAny, { type: string; key: string; }, { type: string; key: string; }>; type: z.ZodString; revision: z.ZodString; state: S; }>[k_1]; } : never>; }>, any>[k_2]; } : never, z.baseObjectInputType<{ entity: z.ZodObject<{ aggregate: z.ZodObject<{ type: z.ZodString; key: z.ZodString; }, "strict", z.ZodTypeAny, { type: string; key: string; }, { type: string; key: string; }>; type: z.ZodString; revision: z.ZodString; state: S; }, "strip", z.ZodTypeAny, z.objectUtil.addQuestionMarks; type: z.ZodString; revision: z.ZodString; state: S; }>, any> extends infer T_10 ? { [k in keyof T_10]: z.objectUtil.addQuestionMarks; type: z.ZodString; revision: z.ZodString; state: S; }>, any>[k]; } : never, z.baseObjectInputType<{ aggregate: z.ZodObject<{ type: z.ZodString; key: z.ZodString; }, "strict", z.ZodTypeAny, { type: string; key: string; }, { type: string; key: string; }>; type: z.ZodString; revision: z.ZodString; state: S; }> extends infer T_11 ? { [k_1 in keyof T_11]: z.baseObjectInputType<{ aggregate: z.ZodObject<{ type: z.ZodString; key: z.ZodString; }, "strict", z.ZodTypeAny, { type: string; key: string; }, { type: string; key: string; }>; type: z.ZodString; revision: z.ZodString; state: S; }>[k_1]; } : never>; }> extends infer T_7 ? { [k_3 in keyof T_7]: z.baseObjectInputType<{ entity: z.ZodObject<{ aggregate: z.ZodObject<{ type: z.ZodString; key: z.ZodString; }, "strict", z.ZodTypeAny, { type: string; key: string; }, { type: string; key: string; }>; type: z.ZodString; revision: z.ZodString; state: S; }, "strip", z.ZodTypeAny, z.objectUtil.addQuestionMarks; type: z.ZodString; revision: z.ZodString; state: S; }>, any> extends infer T_8 ? { [k in keyof T_8]: z.objectUtil.addQuestionMarks; type: z.ZodString; revision: z.ZodString; state: S; }>, any>[k]; } : never, z.baseObjectInputType<{ aggregate: z.ZodObject<{ type: z.ZodString; key: z.ZodString; }, "strict", z.ZodTypeAny, { type: string; key: string; }, { type: string; key: string; }>; type: z.ZodString; revision: z.ZodString; state: S; }> extends infer T_9 ? { [k_1 in keyof T_9]: z.baseObjectInputType<{ aggregate: z.ZodObject<{ type: z.ZodString; key: z.ZodString; }, "strict", z.ZodTypeAny, { type: string; key: string; }, { type: string; key: string; }>; type: z.ZodString; revision: z.ZodString; state: S; }>[k_1]; } : never>; }>[k_3]; } : never>; type Type = z.infer>>; } //# sourceMappingURL=messages.d.ts.map