Variable syncChangesResultSchemaConst
syncChangesResultSchema: ZodDiscriminatedUnion<
[
ZodObject<
{
cursors: ZodOptional<ZodRecord<ZodString, ZodNumber>>;
hasMore: ZodBoolean;
type: ZodLiteral<"changes">;
updates: ZodArray<
ZodObject<
{
clientId: ZodOptional<ZodString>;
collection: ZodString;
createdAt: ZodNumber;
id: ZodString;
key: ZodUnion<readonly [ZodString, ZodNumber]>;
path: ZodOptional<ZodString>;
previousValue: ZodOptional<ZodUnknown>;
sequence: ZodNumber;
serverCreatedAt: ZodString;
type: ZodEnum<
{ delete: "delete"; insert: "insert"; update: "update" },
>;
value: ZodOptional<ZodUnknown>;
},
$strip,
>,
>;
watermark: ZodNumber;
},
$strip,
>,
ZodObject<
{
collections: ZodArray<ZodString>;
type: ZodLiteral<"resyncRequired">;
watermark: ZodNumber;
},
$strip,
>,
],
"type",
> = ...