@junobuild/functions 0.0.12 → 0.0.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,71 +1,52 @@
1
1
  import type { baseObjectInputType, baseObjectOutputType, ZodObject, ZodTypeAny } from 'zod';
2
2
  import * as z from 'zod';
3
+ import { type OptionDoc } from '../../../schemas/db';
4
+ import { type Collection, type Key } from '../../../schemas/satellite';
5
+ import { type HookContext } from '../context';
6
+ import { type DocAssertDelete, type DocAssertSet, type DocUpsert } from './payload';
3
7
  /**
4
8
  * @see DocContext
5
9
  */
6
10
  export declare const DocContextSchema: <T extends z.ZodTypeAny>(dataSchema: T) => ZodObject<{
7
- /**
8
- * The name of the collection where the document is stored.
9
- */
10
11
  collection: z.ZodString;
11
- /**
12
- * The unique key identifying the document within the collection.
13
- */
14
12
  key: z.ZodString;
15
- /**
16
- * The data associated with the document operation.
17
- */
18
13
  data: T;
19
14
  }, "strict", ZodTypeAny, baseObjectOutputType<{
20
- /**
21
- * The name of the collection where the document is stored.
22
- */
23
15
  collection: z.ZodString;
24
- /**
25
- * The unique key identifying the document within the collection.
26
- */
27
16
  key: z.ZodString;
28
- /**
29
- * The data associated with the document operation.
30
- */
31
17
  data: T;
32
18
  }>, baseObjectInputType<{
19
+ collection: z.ZodString;
20
+ key: z.ZodString;
21
+ data: T;
22
+ }>>;
23
+ /**
24
+ * Represents the context of a document operation within a collection.
25
+ *
26
+ * @template T - The type of data associated with the document.
27
+ */
28
+ export interface DocContext<T> {
33
29
  /**
34
30
  * The name of the collection where the document is stored.
35
31
  */
36
- collection: z.ZodString;
32
+ collection: Collection;
37
33
  /**
38
34
  * The unique key identifying the document within the collection.
39
35
  */
40
- key: z.ZodString;
36
+ key: Key;
41
37
  /**
42
38
  * The data associated with the document operation.
43
39
  */
44
40
  data: T;
45
- }>>;
46
- /**
47
- * Represents the context of a document operation within a collection.
48
- *
49
- * @template T - The type of data associated with the document.
50
- */
51
- export type DocContext<T extends z.ZodTypeAny> = z.infer<ReturnType<typeof DocContextSchema<T>>>;
41
+ }
52
42
  /**
53
43
  * @see OnSetDocContext
54
44
  */
55
45
  export declare const OnSetDocContextSchema: ZodObject<{
56
46
  caller: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
57
47
  data: ZodObject<{
58
- /**
59
- * The name of the collection where the document is stored.
60
- */
61
48
  collection: z.ZodString;
62
- /**
63
- * The unique key identifying the document within the collection.
64
- */
65
49
  key: z.ZodString;
66
- /**
67
- * The data associated with the document operation.
68
- */
69
50
  data: ZodObject<{
70
51
  before: z.ZodOptional<ZodObject<{
71
52
  owner: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
@@ -147,17 +128,8 @@ export declare const OnSetDocContextSchema: ZodObject<{
147
128
  } | undefined;
148
129
  }>;
149
130
  }, "strict", ZodTypeAny, baseObjectOutputType<{
150
- /**
151
- * The name of the collection where the document is stored.
152
- */
153
131
  collection: z.ZodString;
154
- /**
155
- * The unique key identifying the document within the collection.
156
- */
157
132
  key: z.ZodString;
158
- /**
159
- * The data associated with the document operation.
160
- */
161
133
  data: ZodObject<{
162
134
  before: z.ZodOptional<ZodObject<{
163
135
  owner: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
@@ -239,17 +211,8 @@ export declare const OnSetDocContextSchema: ZodObject<{
239
211
  } | undefined;
240
212
  }>;
241
213
  }>, baseObjectInputType<{
242
- /**
243
- * The name of the collection where the document is stored.
244
- */
245
214
  collection: z.ZodString;
246
- /**
247
- * The unique key identifying the document within the collection.
248
- */
249
215
  key: z.ZodString;
250
- /**
251
- * The data associated with the document operation.
252
- */
253
216
  data: ZodObject<{
254
217
  before: z.ZodOptional<ZodObject<{
255
218
  owner: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
@@ -334,17 +297,8 @@ export declare const OnSetDocContextSchema: ZodObject<{
334
297
  }, "strict", ZodTypeAny, baseObjectOutputType<{
335
298
  caller: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
336
299
  data: ZodObject<{
337
- /**
338
- * The name of the collection where the document is stored.
339
- */
340
300
  collection: z.ZodString;
341
- /**
342
- * The unique key identifying the document within the collection.
343
- */
344
301
  key: z.ZodString;
345
- /**
346
- * The data associated with the document operation.
347
- */
348
302
  data: ZodObject<{
349
303
  before: z.ZodOptional<ZodObject<{
350
304
  owner: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
@@ -426,17 +380,8 @@ export declare const OnSetDocContextSchema: ZodObject<{
426
380
  } | undefined;
427
381
  }>;
428
382
  }, "strict", ZodTypeAny, baseObjectOutputType<{
429
- /**
430
- * The name of the collection where the document is stored.
431
- */
432
383
  collection: z.ZodString;
433
- /**
434
- * The unique key identifying the document within the collection.
435
- */
436
384
  key: z.ZodString;
437
- /**
438
- * The data associated with the document operation.
439
- */
440
385
  data: ZodObject<{
441
386
  before: z.ZodOptional<ZodObject<{
442
387
  owner: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
@@ -518,17 +463,8 @@ export declare const OnSetDocContextSchema: ZodObject<{
518
463
  } | undefined;
519
464
  }>;
520
465
  }>, baseObjectInputType<{
521
- /**
522
- * The name of the collection where the document is stored.
523
- */
524
466
  collection: z.ZodString;
525
- /**
526
- * The unique key identifying the document within the collection.
527
- */
528
467
  key: z.ZodString;
529
- /**
530
- * The data associated with the document operation.
531
- */
532
468
  data: ZodObject<{
533
469
  before: z.ZodOptional<ZodObject<{
534
470
  owner: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
@@ -613,17 +549,8 @@ export declare const OnSetDocContextSchema: ZodObject<{
613
549
  }>, baseObjectInputType<{
614
550
  caller: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
615
551
  data: ZodObject<{
616
- /**
617
- * The name of the collection where the document is stored.
618
- */
619
552
  collection: z.ZodString;
620
- /**
621
- * The unique key identifying the document within the collection.
622
- */
623
553
  key: z.ZodString;
624
- /**
625
- * The data associated with the document operation.
626
- */
627
554
  data: ZodObject<{
628
555
  before: z.ZodOptional<ZodObject<{
629
556
  owner: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
@@ -705,17 +632,8 @@ export declare const OnSetDocContextSchema: ZodObject<{
705
632
  } | undefined;
706
633
  }>;
707
634
  }, "strict", ZodTypeAny, baseObjectOutputType<{
708
- /**
709
- * The name of the collection where the document is stored.
710
- */
711
635
  collection: z.ZodString;
712
- /**
713
- * The unique key identifying the document within the collection.
714
- */
715
636
  key: z.ZodString;
716
- /**
717
- * The data associated with the document operation.
718
- */
719
637
  data: ZodObject<{
720
638
  before: z.ZodOptional<ZodObject<{
721
639
  owner: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
@@ -797,17 +715,8 @@ export declare const OnSetDocContextSchema: ZodObject<{
797
715
  } | undefined;
798
716
  }>;
799
717
  }>, baseObjectInputType<{
800
- /**
801
- * The name of the collection where the document is stored.
802
- */
803
718
  collection: z.ZodString;
804
- /**
805
- * The unique key identifying the document within the collection.
806
- */
807
719
  key: z.ZodString;
808
- /**
809
- * The data associated with the document operation.
810
- */
811
720
  data: ZodObject<{
812
721
  before: z.ZodOptional<ZodObject<{
813
722
  owner: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
@@ -896,26 +805,17 @@ export declare const OnSetDocContextSchema: ZodObject<{
896
805
  * This context contains information about the document being created or updated,
897
806
  * along with details about the user who triggered the operation.
898
807
  */
899
- export type OnSetDocContext = z.infer<typeof OnSetDocContextSchema>;
808
+ export type OnSetDocContext = HookContext<DocContext<DocUpsert>>;
900
809
  /**
901
- * @see AssertSetDocContext
810
+ * @see OnSetManyDocsContext
902
811
  */
903
- export declare const AssertSetDocContextSchema: ZodObject<{
812
+ export declare const OnSetManyDocsContextSchema: ZodObject<{
904
813
  caller: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
905
- data: ZodObject<{
906
- /**
907
- * The name of the collection where the document is stored.
908
- */
814
+ data: z.ZodArray<ZodObject<{
909
815
  collection: z.ZodString;
910
- /**
911
- * The unique key identifying the document within the collection.
912
- */
913
816
  key: z.ZodString;
914
- /**
915
- * The data associated with the document operation.
916
- */
917
817
  data: ZodObject<{
918
- current: z.ZodOptional<ZodObject<{
818
+ before: z.ZodOptional<ZodObject<{
919
819
  owner: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
920
820
  data: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
921
821
  description: z.ZodOptional<z.ZodString>;
@@ -937,26 +837,38 @@ export declare const AssertSetDocContextSchema: ZodObject<{
937
837
  description?: string | undefined;
938
838
  version?: bigint | undefined;
939
839
  }>>;
940
- proposed: ZodObject<{
840
+ after: ZodObject<{
841
+ owner: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
941
842
  data: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
942
843
  description: z.ZodOptional<z.ZodString>;
844
+ created_at: z.ZodBigInt;
845
+ updated_at: z.ZodBigInt;
943
846
  version: z.ZodOptional<z.ZodBigInt>;
944
847
  }, "strict", ZodTypeAny, {
848
+ owner: Uint8Array<ArrayBufferLike>;
945
849
  data: Uint8Array<ArrayBufferLike>;
850
+ created_at: bigint;
851
+ updated_at: bigint;
946
852
  description?: string | undefined;
947
853
  version?: bigint | undefined;
948
854
  }, {
855
+ owner: Uint8Array<ArrayBufferLike>;
949
856
  data: Uint8Array<ArrayBufferLike>;
857
+ created_at: bigint;
858
+ updated_at: bigint;
950
859
  description?: string | undefined;
951
860
  version?: bigint | undefined;
952
861
  }>;
953
862
  }, "strict", ZodTypeAny, {
954
- proposed: {
863
+ after: {
864
+ owner: Uint8Array<ArrayBufferLike>;
955
865
  data: Uint8Array<ArrayBufferLike>;
866
+ created_at: bigint;
867
+ updated_at: bigint;
956
868
  description?: string | undefined;
957
869
  version?: bigint | undefined;
958
870
  };
959
- current?: {
871
+ before?: {
960
872
  owner: Uint8Array<ArrayBufferLike>;
961
873
  data: Uint8Array<ArrayBufferLike>;
962
874
  created_at: bigint;
@@ -965,12 +877,15 @@ export declare const AssertSetDocContextSchema: ZodObject<{
965
877
  version?: bigint | undefined;
966
878
  } | undefined;
967
879
  }, {
968
- proposed: {
880
+ after: {
881
+ owner: Uint8Array<ArrayBufferLike>;
969
882
  data: Uint8Array<ArrayBufferLike>;
883
+ created_at: bigint;
884
+ updated_at: bigint;
970
885
  description?: string | undefined;
971
886
  version?: bigint | undefined;
972
887
  };
973
- current?: {
888
+ before?: {
974
889
  owner: Uint8Array<ArrayBufferLike>;
975
890
  data: Uint8Array<ArrayBufferLike>;
976
891
  created_at: bigint;
@@ -980,19 +895,10 @@ export declare const AssertSetDocContextSchema: ZodObject<{
980
895
  } | undefined;
981
896
  }>;
982
897
  }, "strict", ZodTypeAny, baseObjectOutputType<{
983
- /**
984
- * The name of the collection where the document is stored.
985
- */
986
898
  collection: z.ZodString;
987
- /**
988
- * The unique key identifying the document within the collection.
989
- */
990
899
  key: z.ZodString;
991
- /**
992
- * The data associated with the document operation.
993
- */
994
900
  data: ZodObject<{
995
- current: z.ZodOptional<ZodObject<{
901
+ before: z.ZodOptional<ZodObject<{
996
902
  owner: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
997
903
  data: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
998
904
  description: z.ZodOptional<z.ZodString>;
@@ -1014,26 +920,38 @@ export declare const AssertSetDocContextSchema: ZodObject<{
1014
920
  description?: string | undefined;
1015
921
  version?: bigint | undefined;
1016
922
  }>>;
1017
- proposed: ZodObject<{
923
+ after: ZodObject<{
924
+ owner: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
1018
925
  data: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
1019
926
  description: z.ZodOptional<z.ZodString>;
927
+ created_at: z.ZodBigInt;
928
+ updated_at: z.ZodBigInt;
1020
929
  version: z.ZodOptional<z.ZodBigInt>;
1021
930
  }, "strict", ZodTypeAny, {
931
+ owner: Uint8Array<ArrayBufferLike>;
1022
932
  data: Uint8Array<ArrayBufferLike>;
933
+ created_at: bigint;
934
+ updated_at: bigint;
1023
935
  description?: string | undefined;
1024
936
  version?: bigint | undefined;
1025
937
  }, {
938
+ owner: Uint8Array<ArrayBufferLike>;
1026
939
  data: Uint8Array<ArrayBufferLike>;
940
+ created_at: bigint;
941
+ updated_at: bigint;
1027
942
  description?: string | undefined;
1028
943
  version?: bigint | undefined;
1029
944
  }>;
1030
945
  }, "strict", ZodTypeAny, {
1031
- proposed: {
946
+ after: {
947
+ owner: Uint8Array<ArrayBufferLike>;
1032
948
  data: Uint8Array<ArrayBufferLike>;
949
+ created_at: bigint;
950
+ updated_at: bigint;
1033
951
  description?: string | undefined;
1034
952
  version?: bigint | undefined;
1035
953
  };
1036
- current?: {
954
+ before?: {
1037
955
  owner: Uint8Array<ArrayBufferLike>;
1038
956
  data: Uint8Array<ArrayBufferLike>;
1039
957
  created_at: bigint;
@@ -1042,12 +960,15 @@ export declare const AssertSetDocContextSchema: ZodObject<{
1042
960
  version?: bigint | undefined;
1043
961
  } | undefined;
1044
962
  }, {
1045
- proposed: {
963
+ after: {
964
+ owner: Uint8Array<ArrayBufferLike>;
1046
965
  data: Uint8Array<ArrayBufferLike>;
966
+ created_at: bigint;
967
+ updated_at: bigint;
1047
968
  description?: string | undefined;
1048
969
  version?: bigint | undefined;
1049
970
  };
1050
- current?: {
971
+ before?: {
1051
972
  owner: Uint8Array<ArrayBufferLike>;
1052
973
  data: Uint8Array<ArrayBufferLike>;
1053
974
  created_at: bigint;
@@ -1057,19 +978,10 @@ export declare const AssertSetDocContextSchema: ZodObject<{
1057
978
  } | undefined;
1058
979
  }>;
1059
980
  }>, baseObjectInputType<{
1060
- /**
1061
- * The name of the collection where the document is stored.
1062
- */
1063
981
  collection: z.ZodString;
1064
- /**
1065
- * The unique key identifying the document within the collection.
1066
- */
1067
982
  key: z.ZodString;
1068
- /**
1069
- * The data associated with the document operation.
1070
- */
1071
983
  data: ZodObject<{
1072
- current: z.ZodOptional<ZodObject<{
984
+ before: z.ZodOptional<ZodObject<{
1073
985
  owner: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
1074
986
  data: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
1075
987
  description: z.ZodOptional<z.ZodString>;
@@ -1091,26 +1003,38 @@ export declare const AssertSetDocContextSchema: ZodObject<{
1091
1003
  description?: string | undefined;
1092
1004
  version?: bigint | undefined;
1093
1005
  }>>;
1094
- proposed: ZodObject<{
1006
+ after: ZodObject<{
1007
+ owner: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
1095
1008
  data: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
1096
1009
  description: z.ZodOptional<z.ZodString>;
1010
+ created_at: z.ZodBigInt;
1011
+ updated_at: z.ZodBigInt;
1097
1012
  version: z.ZodOptional<z.ZodBigInt>;
1098
1013
  }, "strict", ZodTypeAny, {
1014
+ owner: Uint8Array<ArrayBufferLike>;
1099
1015
  data: Uint8Array<ArrayBufferLike>;
1016
+ created_at: bigint;
1017
+ updated_at: bigint;
1100
1018
  description?: string | undefined;
1101
1019
  version?: bigint | undefined;
1102
1020
  }, {
1021
+ owner: Uint8Array<ArrayBufferLike>;
1103
1022
  data: Uint8Array<ArrayBufferLike>;
1023
+ created_at: bigint;
1024
+ updated_at: bigint;
1104
1025
  description?: string | undefined;
1105
1026
  version?: bigint | undefined;
1106
1027
  }>;
1107
1028
  }, "strict", ZodTypeAny, {
1108
- proposed: {
1029
+ after: {
1030
+ owner: Uint8Array<ArrayBufferLike>;
1109
1031
  data: Uint8Array<ArrayBufferLike>;
1032
+ created_at: bigint;
1033
+ updated_at: bigint;
1110
1034
  description?: string | undefined;
1111
1035
  version?: bigint | undefined;
1112
1036
  };
1113
- current?: {
1037
+ before?: {
1114
1038
  owner: Uint8Array<ArrayBufferLike>;
1115
1039
  data: Uint8Array<ArrayBufferLike>;
1116
1040
  created_at: bigint;
@@ -1119,12 +1043,15 @@ export declare const AssertSetDocContextSchema: ZodObject<{
1119
1043
  version?: bigint | undefined;
1120
1044
  } | undefined;
1121
1045
  }, {
1122
- proposed: {
1046
+ after: {
1047
+ owner: Uint8Array<ArrayBufferLike>;
1123
1048
  data: Uint8Array<ArrayBufferLike>;
1049
+ created_at: bigint;
1050
+ updated_at: bigint;
1124
1051
  description?: string | undefined;
1125
1052
  version?: bigint | undefined;
1126
1053
  };
1127
- current?: {
1054
+ before?: {
1128
1055
  owner: Uint8Array<ArrayBufferLike>;
1129
1056
  data: Uint8Array<ArrayBufferLike>;
1130
1057
  created_at: bigint;
@@ -1133,23 +1060,14 @@ export declare const AssertSetDocContextSchema: ZodObject<{
1133
1060
  version?: bigint | undefined;
1134
1061
  } | undefined;
1135
1062
  }>;
1136
- }>>;
1063
+ }>>, "many">;
1137
1064
  }, "strict", ZodTypeAny, baseObjectOutputType<{
1138
1065
  caller: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
1139
- data: ZodObject<{
1140
- /**
1141
- * The name of the collection where the document is stored.
1142
- */
1066
+ data: z.ZodArray<ZodObject<{
1143
1067
  collection: z.ZodString;
1144
- /**
1145
- * The unique key identifying the document within the collection.
1146
- */
1147
1068
  key: z.ZodString;
1148
- /**
1149
- * The data associated with the document operation.
1150
- */
1151
1069
  data: ZodObject<{
1152
- current: z.ZodOptional<ZodObject<{
1070
+ before: z.ZodOptional<ZodObject<{
1153
1071
  owner: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
1154
1072
  data: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
1155
1073
  description: z.ZodOptional<z.ZodString>;
@@ -1171,26 +1089,38 @@ export declare const AssertSetDocContextSchema: ZodObject<{
1171
1089
  description?: string | undefined;
1172
1090
  version?: bigint | undefined;
1173
1091
  }>>;
1174
- proposed: ZodObject<{
1092
+ after: ZodObject<{
1093
+ owner: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
1175
1094
  data: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
1176
1095
  description: z.ZodOptional<z.ZodString>;
1096
+ created_at: z.ZodBigInt;
1097
+ updated_at: z.ZodBigInt;
1177
1098
  version: z.ZodOptional<z.ZodBigInt>;
1178
1099
  }, "strict", ZodTypeAny, {
1100
+ owner: Uint8Array<ArrayBufferLike>;
1179
1101
  data: Uint8Array<ArrayBufferLike>;
1102
+ created_at: bigint;
1103
+ updated_at: bigint;
1180
1104
  description?: string | undefined;
1181
1105
  version?: bigint | undefined;
1182
1106
  }, {
1107
+ owner: Uint8Array<ArrayBufferLike>;
1183
1108
  data: Uint8Array<ArrayBufferLike>;
1109
+ created_at: bigint;
1110
+ updated_at: bigint;
1184
1111
  description?: string | undefined;
1185
1112
  version?: bigint | undefined;
1186
1113
  }>;
1187
1114
  }, "strict", ZodTypeAny, {
1188
- proposed: {
1115
+ after: {
1116
+ owner: Uint8Array<ArrayBufferLike>;
1189
1117
  data: Uint8Array<ArrayBufferLike>;
1118
+ created_at: bigint;
1119
+ updated_at: bigint;
1190
1120
  description?: string | undefined;
1191
1121
  version?: bigint | undefined;
1192
1122
  };
1193
- current?: {
1123
+ before?: {
1194
1124
  owner: Uint8Array<ArrayBufferLike>;
1195
1125
  data: Uint8Array<ArrayBufferLike>;
1196
1126
  created_at: bigint;
@@ -1199,12 +1129,15 @@ export declare const AssertSetDocContextSchema: ZodObject<{
1199
1129
  version?: bigint | undefined;
1200
1130
  } | undefined;
1201
1131
  }, {
1202
- proposed: {
1132
+ after: {
1133
+ owner: Uint8Array<ArrayBufferLike>;
1203
1134
  data: Uint8Array<ArrayBufferLike>;
1135
+ created_at: bigint;
1136
+ updated_at: bigint;
1204
1137
  description?: string | undefined;
1205
1138
  version?: bigint | undefined;
1206
1139
  };
1207
- current?: {
1140
+ before?: {
1208
1141
  owner: Uint8Array<ArrayBufferLike>;
1209
1142
  data: Uint8Array<ArrayBufferLike>;
1210
1143
  created_at: bigint;
@@ -1214,19 +1147,10 @@ export declare const AssertSetDocContextSchema: ZodObject<{
1214
1147
  } | undefined;
1215
1148
  }>;
1216
1149
  }, "strict", ZodTypeAny, baseObjectOutputType<{
1217
- /**
1218
- * The name of the collection where the document is stored.
1219
- */
1220
1150
  collection: z.ZodString;
1221
- /**
1222
- * The unique key identifying the document within the collection.
1223
- */
1224
1151
  key: z.ZodString;
1225
- /**
1226
- * The data associated with the document operation.
1227
- */
1228
1152
  data: ZodObject<{
1229
- current: z.ZodOptional<ZodObject<{
1153
+ before: z.ZodOptional<ZodObject<{
1230
1154
  owner: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
1231
1155
  data: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
1232
1156
  description: z.ZodOptional<z.ZodString>;
@@ -1248,26 +1172,38 @@ export declare const AssertSetDocContextSchema: ZodObject<{
1248
1172
  description?: string | undefined;
1249
1173
  version?: bigint | undefined;
1250
1174
  }>>;
1251
- proposed: ZodObject<{
1175
+ after: ZodObject<{
1176
+ owner: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
1252
1177
  data: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
1253
1178
  description: z.ZodOptional<z.ZodString>;
1179
+ created_at: z.ZodBigInt;
1180
+ updated_at: z.ZodBigInt;
1254
1181
  version: z.ZodOptional<z.ZodBigInt>;
1255
1182
  }, "strict", ZodTypeAny, {
1183
+ owner: Uint8Array<ArrayBufferLike>;
1256
1184
  data: Uint8Array<ArrayBufferLike>;
1185
+ created_at: bigint;
1186
+ updated_at: bigint;
1257
1187
  description?: string | undefined;
1258
1188
  version?: bigint | undefined;
1259
1189
  }, {
1190
+ owner: Uint8Array<ArrayBufferLike>;
1260
1191
  data: Uint8Array<ArrayBufferLike>;
1192
+ created_at: bigint;
1193
+ updated_at: bigint;
1261
1194
  description?: string | undefined;
1262
1195
  version?: bigint | undefined;
1263
1196
  }>;
1264
1197
  }, "strict", ZodTypeAny, {
1265
- proposed: {
1198
+ after: {
1199
+ owner: Uint8Array<ArrayBufferLike>;
1266
1200
  data: Uint8Array<ArrayBufferLike>;
1201
+ created_at: bigint;
1202
+ updated_at: bigint;
1267
1203
  description?: string | undefined;
1268
1204
  version?: bigint | undefined;
1269
1205
  };
1270
- current?: {
1206
+ before?: {
1271
1207
  owner: Uint8Array<ArrayBufferLike>;
1272
1208
  data: Uint8Array<ArrayBufferLike>;
1273
1209
  created_at: bigint;
@@ -1276,12 +1212,15 @@ export declare const AssertSetDocContextSchema: ZodObject<{
1276
1212
  version?: bigint | undefined;
1277
1213
  } | undefined;
1278
1214
  }, {
1279
- proposed: {
1215
+ after: {
1216
+ owner: Uint8Array<ArrayBufferLike>;
1280
1217
  data: Uint8Array<ArrayBufferLike>;
1218
+ created_at: bigint;
1219
+ updated_at: bigint;
1281
1220
  description?: string | undefined;
1282
1221
  version?: bigint | undefined;
1283
1222
  };
1284
- current?: {
1223
+ before?: {
1285
1224
  owner: Uint8Array<ArrayBufferLike>;
1286
1225
  data: Uint8Array<ArrayBufferLike>;
1287
1226
  created_at: bigint;
@@ -1291,19 +1230,10 @@ export declare const AssertSetDocContextSchema: ZodObject<{
1291
1230
  } | undefined;
1292
1231
  }>;
1293
1232
  }>, baseObjectInputType<{
1294
- /**
1295
- * The name of the collection where the document is stored.
1296
- */
1297
1233
  collection: z.ZodString;
1298
- /**
1299
- * The unique key identifying the document within the collection.
1300
- */
1301
1234
  key: z.ZodString;
1302
- /**
1303
- * The data associated with the document operation.
1304
- */
1305
1235
  data: ZodObject<{
1306
- current: z.ZodOptional<ZodObject<{
1236
+ before: z.ZodOptional<ZodObject<{
1307
1237
  owner: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
1308
1238
  data: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
1309
1239
  description: z.ZodOptional<z.ZodString>;
@@ -1325,26 +1255,38 @@ export declare const AssertSetDocContextSchema: ZodObject<{
1325
1255
  description?: string | undefined;
1326
1256
  version?: bigint | undefined;
1327
1257
  }>>;
1328
- proposed: ZodObject<{
1258
+ after: ZodObject<{
1259
+ owner: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
1329
1260
  data: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
1330
1261
  description: z.ZodOptional<z.ZodString>;
1262
+ created_at: z.ZodBigInt;
1263
+ updated_at: z.ZodBigInt;
1331
1264
  version: z.ZodOptional<z.ZodBigInt>;
1332
1265
  }, "strict", ZodTypeAny, {
1266
+ owner: Uint8Array<ArrayBufferLike>;
1333
1267
  data: Uint8Array<ArrayBufferLike>;
1268
+ created_at: bigint;
1269
+ updated_at: bigint;
1334
1270
  description?: string | undefined;
1335
1271
  version?: bigint | undefined;
1336
1272
  }, {
1273
+ owner: Uint8Array<ArrayBufferLike>;
1337
1274
  data: Uint8Array<ArrayBufferLike>;
1275
+ created_at: bigint;
1276
+ updated_at: bigint;
1338
1277
  description?: string | undefined;
1339
1278
  version?: bigint | undefined;
1340
1279
  }>;
1341
1280
  }, "strict", ZodTypeAny, {
1342
- proposed: {
1281
+ after: {
1282
+ owner: Uint8Array<ArrayBufferLike>;
1343
1283
  data: Uint8Array<ArrayBufferLike>;
1284
+ created_at: bigint;
1285
+ updated_at: bigint;
1344
1286
  description?: string | undefined;
1345
1287
  version?: bigint | undefined;
1346
1288
  };
1347
- current?: {
1289
+ before?: {
1348
1290
  owner: Uint8Array<ArrayBufferLike>;
1349
1291
  data: Uint8Array<ArrayBufferLike>;
1350
1292
  created_at: bigint;
@@ -1353,12 +1295,15 @@ export declare const AssertSetDocContextSchema: ZodObject<{
1353
1295
  version?: bigint | undefined;
1354
1296
  } | undefined;
1355
1297
  }, {
1356
- proposed: {
1298
+ after: {
1299
+ owner: Uint8Array<ArrayBufferLike>;
1357
1300
  data: Uint8Array<ArrayBufferLike>;
1301
+ created_at: bigint;
1302
+ updated_at: bigint;
1358
1303
  description?: string | undefined;
1359
1304
  version?: bigint | undefined;
1360
1305
  };
1361
- current?: {
1306
+ before?: {
1362
1307
  owner: Uint8Array<ArrayBufferLike>;
1363
1308
  data: Uint8Array<ArrayBufferLike>;
1364
1309
  created_at: bigint;
@@ -1367,23 +1312,14 @@ export declare const AssertSetDocContextSchema: ZodObject<{
1367
1312
  version?: bigint | undefined;
1368
1313
  } | undefined;
1369
1314
  }>;
1370
- }>>;
1315
+ }>>, "many">;
1371
1316
  }>, baseObjectInputType<{
1372
1317
  caller: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
1373
- data: ZodObject<{
1374
- /**
1375
- * The name of the collection where the document is stored.
1376
- */
1318
+ data: z.ZodArray<ZodObject<{
1377
1319
  collection: z.ZodString;
1378
- /**
1379
- * The unique key identifying the document within the collection.
1380
- */
1381
1320
  key: z.ZodString;
1382
- /**
1383
- * The data associated with the document operation.
1384
- */
1385
1321
  data: ZodObject<{
1386
- current: z.ZodOptional<ZodObject<{
1322
+ before: z.ZodOptional<ZodObject<{
1387
1323
  owner: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
1388
1324
  data: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
1389
1325
  description: z.ZodOptional<z.ZodString>;
@@ -1405,26 +1341,38 @@ export declare const AssertSetDocContextSchema: ZodObject<{
1405
1341
  description?: string | undefined;
1406
1342
  version?: bigint | undefined;
1407
1343
  }>>;
1408
- proposed: ZodObject<{
1344
+ after: ZodObject<{
1345
+ owner: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
1409
1346
  data: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
1410
1347
  description: z.ZodOptional<z.ZodString>;
1348
+ created_at: z.ZodBigInt;
1349
+ updated_at: z.ZodBigInt;
1411
1350
  version: z.ZodOptional<z.ZodBigInt>;
1412
1351
  }, "strict", ZodTypeAny, {
1352
+ owner: Uint8Array<ArrayBufferLike>;
1413
1353
  data: Uint8Array<ArrayBufferLike>;
1354
+ created_at: bigint;
1355
+ updated_at: bigint;
1414
1356
  description?: string | undefined;
1415
1357
  version?: bigint | undefined;
1416
1358
  }, {
1359
+ owner: Uint8Array<ArrayBufferLike>;
1417
1360
  data: Uint8Array<ArrayBufferLike>;
1361
+ created_at: bigint;
1362
+ updated_at: bigint;
1418
1363
  description?: string | undefined;
1419
1364
  version?: bigint | undefined;
1420
1365
  }>;
1421
1366
  }, "strict", ZodTypeAny, {
1422
- proposed: {
1367
+ after: {
1368
+ owner: Uint8Array<ArrayBufferLike>;
1423
1369
  data: Uint8Array<ArrayBufferLike>;
1370
+ created_at: bigint;
1371
+ updated_at: bigint;
1424
1372
  description?: string | undefined;
1425
1373
  version?: bigint | undefined;
1426
1374
  };
1427
- current?: {
1375
+ before?: {
1428
1376
  owner: Uint8Array<ArrayBufferLike>;
1429
1377
  data: Uint8Array<ArrayBufferLike>;
1430
1378
  created_at: bigint;
@@ -1433,12 +1381,15 @@ export declare const AssertSetDocContextSchema: ZodObject<{
1433
1381
  version?: bigint | undefined;
1434
1382
  } | undefined;
1435
1383
  }, {
1436
- proposed: {
1384
+ after: {
1385
+ owner: Uint8Array<ArrayBufferLike>;
1437
1386
  data: Uint8Array<ArrayBufferLike>;
1387
+ created_at: bigint;
1388
+ updated_at: bigint;
1438
1389
  description?: string | undefined;
1439
1390
  version?: bigint | undefined;
1440
1391
  };
1441
- current?: {
1392
+ before?: {
1442
1393
  owner: Uint8Array<ArrayBufferLike>;
1443
1394
  data: Uint8Array<ArrayBufferLike>;
1444
1395
  created_at: bigint;
@@ -1448,19 +1399,10 @@ export declare const AssertSetDocContextSchema: ZodObject<{
1448
1399
  } | undefined;
1449
1400
  }>;
1450
1401
  }, "strict", ZodTypeAny, baseObjectOutputType<{
1451
- /**
1452
- * The name of the collection where the document is stored.
1453
- */
1454
1402
  collection: z.ZodString;
1455
- /**
1456
- * The unique key identifying the document within the collection.
1457
- */
1458
1403
  key: z.ZodString;
1459
- /**
1460
- * The data associated with the document operation.
1461
- */
1462
1404
  data: ZodObject<{
1463
- current: z.ZodOptional<ZodObject<{
1405
+ before: z.ZodOptional<ZodObject<{
1464
1406
  owner: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
1465
1407
  data: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
1466
1408
  description: z.ZodOptional<z.ZodString>;
@@ -1482,26 +1424,38 @@ export declare const AssertSetDocContextSchema: ZodObject<{
1482
1424
  description?: string | undefined;
1483
1425
  version?: bigint | undefined;
1484
1426
  }>>;
1485
- proposed: ZodObject<{
1427
+ after: ZodObject<{
1428
+ owner: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
1486
1429
  data: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
1487
1430
  description: z.ZodOptional<z.ZodString>;
1431
+ created_at: z.ZodBigInt;
1432
+ updated_at: z.ZodBigInt;
1488
1433
  version: z.ZodOptional<z.ZodBigInt>;
1489
1434
  }, "strict", ZodTypeAny, {
1435
+ owner: Uint8Array<ArrayBufferLike>;
1490
1436
  data: Uint8Array<ArrayBufferLike>;
1437
+ created_at: bigint;
1438
+ updated_at: bigint;
1491
1439
  description?: string | undefined;
1492
1440
  version?: bigint | undefined;
1493
1441
  }, {
1442
+ owner: Uint8Array<ArrayBufferLike>;
1494
1443
  data: Uint8Array<ArrayBufferLike>;
1444
+ created_at: bigint;
1445
+ updated_at: bigint;
1495
1446
  description?: string | undefined;
1496
1447
  version?: bigint | undefined;
1497
1448
  }>;
1498
1449
  }, "strict", ZodTypeAny, {
1499
- proposed: {
1450
+ after: {
1451
+ owner: Uint8Array<ArrayBufferLike>;
1500
1452
  data: Uint8Array<ArrayBufferLike>;
1453
+ created_at: bigint;
1454
+ updated_at: bigint;
1501
1455
  description?: string | undefined;
1502
1456
  version?: bigint | undefined;
1503
1457
  };
1504
- current?: {
1458
+ before?: {
1505
1459
  owner: Uint8Array<ArrayBufferLike>;
1506
1460
  data: Uint8Array<ArrayBufferLike>;
1507
1461
  created_at: bigint;
@@ -1510,11 +1464,1771 @@ export declare const AssertSetDocContextSchema: ZodObject<{
1510
1464
  version?: bigint | undefined;
1511
1465
  } | undefined;
1512
1466
  }, {
1513
- proposed: {
1467
+ after: {
1468
+ owner: Uint8Array<ArrayBufferLike>;
1514
1469
  data: Uint8Array<ArrayBufferLike>;
1470
+ created_at: bigint;
1471
+ updated_at: bigint;
1515
1472
  description?: string | undefined;
1516
1473
  version?: bigint | undefined;
1517
1474
  };
1475
+ before?: {
1476
+ owner: Uint8Array<ArrayBufferLike>;
1477
+ data: Uint8Array<ArrayBufferLike>;
1478
+ created_at: bigint;
1479
+ updated_at: bigint;
1480
+ description?: string | undefined;
1481
+ version?: bigint | undefined;
1482
+ } | undefined;
1483
+ }>;
1484
+ }>, baseObjectInputType<{
1485
+ collection: z.ZodString;
1486
+ key: z.ZodString;
1487
+ data: ZodObject<{
1488
+ before: z.ZodOptional<ZodObject<{
1489
+ owner: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
1490
+ data: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
1491
+ description: z.ZodOptional<z.ZodString>;
1492
+ created_at: z.ZodBigInt;
1493
+ updated_at: z.ZodBigInt;
1494
+ version: z.ZodOptional<z.ZodBigInt>;
1495
+ }, "strict", ZodTypeAny, {
1496
+ owner: Uint8Array<ArrayBufferLike>;
1497
+ data: Uint8Array<ArrayBufferLike>;
1498
+ created_at: bigint;
1499
+ updated_at: bigint;
1500
+ description?: string | undefined;
1501
+ version?: bigint | undefined;
1502
+ }, {
1503
+ owner: Uint8Array<ArrayBufferLike>;
1504
+ data: Uint8Array<ArrayBufferLike>;
1505
+ created_at: bigint;
1506
+ updated_at: bigint;
1507
+ description?: string | undefined;
1508
+ version?: bigint | undefined;
1509
+ }>>;
1510
+ after: ZodObject<{
1511
+ owner: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
1512
+ data: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
1513
+ description: z.ZodOptional<z.ZodString>;
1514
+ created_at: z.ZodBigInt;
1515
+ updated_at: z.ZodBigInt;
1516
+ version: z.ZodOptional<z.ZodBigInt>;
1517
+ }, "strict", ZodTypeAny, {
1518
+ owner: Uint8Array<ArrayBufferLike>;
1519
+ data: Uint8Array<ArrayBufferLike>;
1520
+ created_at: bigint;
1521
+ updated_at: bigint;
1522
+ description?: string | undefined;
1523
+ version?: bigint | undefined;
1524
+ }, {
1525
+ owner: Uint8Array<ArrayBufferLike>;
1526
+ data: Uint8Array<ArrayBufferLike>;
1527
+ created_at: bigint;
1528
+ updated_at: bigint;
1529
+ description?: string | undefined;
1530
+ version?: bigint | undefined;
1531
+ }>;
1532
+ }, "strict", ZodTypeAny, {
1533
+ after: {
1534
+ owner: Uint8Array<ArrayBufferLike>;
1535
+ data: Uint8Array<ArrayBufferLike>;
1536
+ created_at: bigint;
1537
+ updated_at: bigint;
1538
+ description?: string | undefined;
1539
+ version?: bigint | undefined;
1540
+ };
1541
+ before?: {
1542
+ owner: Uint8Array<ArrayBufferLike>;
1543
+ data: Uint8Array<ArrayBufferLike>;
1544
+ created_at: bigint;
1545
+ updated_at: bigint;
1546
+ description?: string | undefined;
1547
+ version?: bigint | undefined;
1548
+ } | undefined;
1549
+ }, {
1550
+ after: {
1551
+ owner: Uint8Array<ArrayBufferLike>;
1552
+ data: Uint8Array<ArrayBufferLike>;
1553
+ created_at: bigint;
1554
+ updated_at: bigint;
1555
+ description?: string | undefined;
1556
+ version?: bigint | undefined;
1557
+ };
1558
+ before?: {
1559
+ owner: Uint8Array<ArrayBufferLike>;
1560
+ data: Uint8Array<ArrayBufferLike>;
1561
+ created_at: bigint;
1562
+ updated_at: bigint;
1563
+ description?: string | undefined;
1564
+ version?: bigint | undefined;
1565
+ } | undefined;
1566
+ }>;
1567
+ }>>, "many">;
1568
+ }>>;
1569
+ /**
1570
+ * The context provided to the `onSetManyDocs` hook.
1571
+ *
1572
+ * This context contains information about multiple documents being created or updated
1573
+ * in a single operation, along with details about the user who triggered it.
1574
+ */
1575
+ export type OnSetManyDocsContext = HookContext<DocContext<DocUpsert>[]>;
1576
+ /**
1577
+ * @see OnDeleteDocContext
1578
+ */
1579
+ export declare const OnDeleteDocContextSchema: ZodObject<{
1580
+ caller: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
1581
+ data: ZodObject<{
1582
+ collection: z.ZodString;
1583
+ key: z.ZodString;
1584
+ data: z.ZodOptional<ZodObject<{
1585
+ owner: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
1586
+ data: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
1587
+ description: z.ZodOptional<z.ZodString>;
1588
+ created_at: z.ZodBigInt;
1589
+ updated_at: z.ZodBigInt;
1590
+ version: z.ZodOptional<z.ZodBigInt>;
1591
+ }, "strict", ZodTypeAny, {
1592
+ owner: Uint8Array<ArrayBufferLike>;
1593
+ data: Uint8Array<ArrayBufferLike>;
1594
+ created_at: bigint;
1595
+ updated_at: bigint;
1596
+ description?: string | undefined;
1597
+ version?: bigint | undefined;
1598
+ }, {
1599
+ owner: Uint8Array<ArrayBufferLike>;
1600
+ data: Uint8Array<ArrayBufferLike>;
1601
+ created_at: bigint;
1602
+ updated_at: bigint;
1603
+ description?: string | undefined;
1604
+ version?: bigint | undefined;
1605
+ }>>;
1606
+ }, "strict", ZodTypeAny, baseObjectOutputType<{
1607
+ collection: z.ZodString;
1608
+ key: z.ZodString;
1609
+ data: z.ZodOptional<ZodObject<{
1610
+ owner: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
1611
+ data: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
1612
+ description: z.ZodOptional<z.ZodString>;
1613
+ created_at: z.ZodBigInt;
1614
+ updated_at: z.ZodBigInt;
1615
+ version: z.ZodOptional<z.ZodBigInt>;
1616
+ }, "strict", ZodTypeAny, {
1617
+ owner: Uint8Array<ArrayBufferLike>;
1618
+ data: Uint8Array<ArrayBufferLike>;
1619
+ created_at: bigint;
1620
+ updated_at: bigint;
1621
+ description?: string | undefined;
1622
+ version?: bigint | undefined;
1623
+ }, {
1624
+ owner: Uint8Array<ArrayBufferLike>;
1625
+ data: Uint8Array<ArrayBufferLike>;
1626
+ created_at: bigint;
1627
+ updated_at: bigint;
1628
+ description?: string | undefined;
1629
+ version?: bigint | undefined;
1630
+ }>>;
1631
+ }>, baseObjectInputType<{
1632
+ collection: z.ZodString;
1633
+ key: z.ZodString;
1634
+ data: z.ZodOptional<ZodObject<{
1635
+ owner: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
1636
+ data: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
1637
+ description: z.ZodOptional<z.ZodString>;
1638
+ created_at: z.ZodBigInt;
1639
+ updated_at: z.ZodBigInt;
1640
+ version: z.ZodOptional<z.ZodBigInt>;
1641
+ }, "strict", ZodTypeAny, {
1642
+ owner: Uint8Array<ArrayBufferLike>;
1643
+ data: Uint8Array<ArrayBufferLike>;
1644
+ created_at: bigint;
1645
+ updated_at: bigint;
1646
+ description?: string | undefined;
1647
+ version?: bigint | undefined;
1648
+ }, {
1649
+ owner: Uint8Array<ArrayBufferLike>;
1650
+ data: Uint8Array<ArrayBufferLike>;
1651
+ created_at: bigint;
1652
+ updated_at: bigint;
1653
+ description?: string | undefined;
1654
+ version?: bigint | undefined;
1655
+ }>>;
1656
+ }>>;
1657
+ }, "strict", ZodTypeAny, baseObjectOutputType<{
1658
+ caller: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
1659
+ data: ZodObject<{
1660
+ collection: z.ZodString;
1661
+ key: z.ZodString;
1662
+ data: z.ZodOptional<ZodObject<{
1663
+ owner: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
1664
+ data: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
1665
+ description: z.ZodOptional<z.ZodString>;
1666
+ created_at: z.ZodBigInt;
1667
+ updated_at: z.ZodBigInt;
1668
+ version: z.ZodOptional<z.ZodBigInt>;
1669
+ }, "strict", ZodTypeAny, {
1670
+ owner: Uint8Array<ArrayBufferLike>;
1671
+ data: Uint8Array<ArrayBufferLike>;
1672
+ created_at: bigint;
1673
+ updated_at: bigint;
1674
+ description?: string | undefined;
1675
+ version?: bigint | undefined;
1676
+ }, {
1677
+ owner: Uint8Array<ArrayBufferLike>;
1678
+ data: Uint8Array<ArrayBufferLike>;
1679
+ created_at: bigint;
1680
+ updated_at: bigint;
1681
+ description?: string | undefined;
1682
+ version?: bigint | undefined;
1683
+ }>>;
1684
+ }, "strict", ZodTypeAny, baseObjectOutputType<{
1685
+ collection: z.ZodString;
1686
+ key: z.ZodString;
1687
+ data: z.ZodOptional<ZodObject<{
1688
+ owner: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
1689
+ data: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
1690
+ description: z.ZodOptional<z.ZodString>;
1691
+ created_at: z.ZodBigInt;
1692
+ updated_at: z.ZodBigInt;
1693
+ version: z.ZodOptional<z.ZodBigInt>;
1694
+ }, "strict", ZodTypeAny, {
1695
+ owner: Uint8Array<ArrayBufferLike>;
1696
+ data: Uint8Array<ArrayBufferLike>;
1697
+ created_at: bigint;
1698
+ updated_at: bigint;
1699
+ description?: string | undefined;
1700
+ version?: bigint | undefined;
1701
+ }, {
1702
+ owner: Uint8Array<ArrayBufferLike>;
1703
+ data: Uint8Array<ArrayBufferLike>;
1704
+ created_at: bigint;
1705
+ updated_at: bigint;
1706
+ description?: string | undefined;
1707
+ version?: bigint | undefined;
1708
+ }>>;
1709
+ }>, baseObjectInputType<{
1710
+ collection: z.ZodString;
1711
+ key: z.ZodString;
1712
+ data: z.ZodOptional<ZodObject<{
1713
+ owner: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
1714
+ data: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
1715
+ description: z.ZodOptional<z.ZodString>;
1716
+ created_at: z.ZodBigInt;
1717
+ updated_at: z.ZodBigInt;
1718
+ version: z.ZodOptional<z.ZodBigInt>;
1719
+ }, "strict", ZodTypeAny, {
1720
+ owner: Uint8Array<ArrayBufferLike>;
1721
+ data: Uint8Array<ArrayBufferLike>;
1722
+ created_at: bigint;
1723
+ updated_at: bigint;
1724
+ description?: string | undefined;
1725
+ version?: bigint | undefined;
1726
+ }, {
1727
+ owner: Uint8Array<ArrayBufferLike>;
1728
+ data: Uint8Array<ArrayBufferLike>;
1729
+ created_at: bigint;
1730
+ updated_at: bigint;
1731
+ description?: string | undefined;
1732
+ version?: bigint | undefined;
1733
+ }>>;
1734
+ }>>;
1735
+ }>, baseObjectInputType<{
1736
+ caller: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
1737
+ data: ZodObject<{
1738
+ collection: z.ZodString;
1739
+ key: z.ZodString;
1740
+ data: z.ZodOptional<ZodObject<{
1741
+ owner: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
1742
+ data: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
1743
+ description: z.ZodOptional<z.ZodString>;
1744
+ created_at: z.ZodBigInt;
1745
+ updated_at: z.ZodBigInt;
1746
+ version: z.ZodOptional<z.ZodBigInt>;
1747
+ }, "strict", ZodTypeAny, {
1748
+ owner: Uint8Array<ArrayBufferLike>;
1749
+ data: Uint8Array<ArrayBufferLike>;
1750
+ created_at: bigint;
1751
+ updated_at: bigint;
1752
+ description?: string | undefined;
1753
+ version?: bigint | undefined;
1754
+ }, {
1755
+ owner: Uint8Array<ArrayBufferLike>;
1756
+ data: Uint8Array<ArrayBufferLike>;
1757
+ created_at: bigint;
1758
+ updated_at: bigint;
1759
+ description?: string | undefined;
1760
+ version?: bigint | undefined;
1761
+ }>>;
1762
+ }, "strict", ZodTypeAny, baseObjectOutputType<{
1763
+ collection: z.ZodString;
1764
+ key: z.ZodString;
1765
+ data: z.ZodOptional<ZodObject<{
1766
+ owner: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
1767
+ data: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
1768
+ description: z.ZodOptional<z.ZodString>;
1769
+ created_at: z.ZodBigInt;
1770
+ updated_at: z.ZodBigInt;
1771
+ version: z.ZodOptional<z.ZodBigInt>;
1772
+ }, "strict", ZodTypeAny, {
1773
+ owner: Uint8Array<ArrayBufferLike>;
1774
+ data: Uint8Array<ArrayBufferLike>;
1775
+ created_at: bigint;
1776
+ updated_at: bigint;
1777
+ description?: string | undefined;
1778
+ version?: bigint | undefined;
1779
+ }, {
1780
+ owner: Uint8Array<ArrayBufferLike>;
1781
+ data: Uint8Array<ArrayBufferLike>;
1782
+ created_at: bigint;
1783
+ updated_at: bigint;
1784
+ description?: string | undefined;
1785
+ version?: bigint | undefined;
1786
+ }>>;
1787
+ }>, baseObjectInputType<{
1788
+ collection: z.ZodString;
1789
+ key: z.ZodString;
1790
+ data: z.ZodOptional<ZodObject<{
1791
+ owner: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
1792
+ data: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
1793
+ description: z.ZodOptional<z.ZodString>;
1794
+ created_at: z.ZodBigInt;
1795
+ updated_at: z.ZodBigInt;
1796
+ version: z.ZodOptional<z.ZodBigInt>;
1797
+ }, "strict", ZodTypeAny, {
1798
+ owner: Uint8Array<ArrayBufferLike>;
1799
+ data: Uint8Array<ArrayBufferLike>;
1800
+ created_at: bigint;
1801
+ updated_at: bigint;
1802
+ description?: string | undefined;
1803
+ version?: bigint | undefined;
1804
+ }, {
1805
+ owner: Uint8Array<ArrayBufferLike>;
1806
+ data: Uint8Array<ArrayBufferLike>;
1807
+ created_at: bigint;
1808
+ updated_at: bigint;
1809
+ description?: string | undefined;
1810
+ version?: bigint | undefined;
1811
+ }>>;
1812
+ }>>;
1813
+ }>>;
1814
+ /**
1815
+ * The context provided to the `onDeleteDoc` hook.
1816
+ *
1817
+ * This context contains information about a single document being deleted,
1818
+ * along with details about the user who triggered the operation.
1819
+ */
1820
+ export type OnDeleteDocContext = HookContext<DocContext<OptionDoc>>;
1821
+ /**
1822
+ * @see OnDeleteManyDocsContext
1823
+ */
1824
+ export declare const OnDeleteManyDocsContextSchema: ZodObject<{
1825
+ caller: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
1826
+ data: z.ZodArray<ZodObject<{
1827
+ collection: z.ZodString;
1828
+ key: z.ZodString;
1829
+ data: z.ZodOptional<ZodObject<{
1830
+ owner: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
1831
+ data: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
1832
+ description: z.ZodOptional<z.ZodString>;
1833
+ created_at: z.ZodBigInt;
1834
+ updated_at: z.ZodBigInt;
1835
+ version: z.ZodOptional<z.ZodBigInt>;
1836
+ }, "strict", ZodTypeAny, {
1837
+ owner: Uint8Array<ArrayBufferLike>;
1838
+ data: Uint8Array<ArrayBufferLike>;
1839
+ created_at: bigint;
1840
+ updated_at: bigint;
1841
+ description?: string | undefined;
1842
+ version?: bigint | undefined;
1843
+ }, {
1844
+ owner: Uint8Array<ArrayBufferLike>;
1845
+ data: Uint8Array<ArrayBufferLike>;
1846
+ created_at: bigint;
1847
+ updated_at: bigint;
1848
+ description?: string | undefined;
1849
+ version?: bigint | undefined;
1850
+ }>>;
1851
+ }, "strict", ZodTypeAny, baseObjectOutputType<{
1852
+ collection: z.ZodString;
1853
+ key: z.ZodString;
1854
+ data: z.ZodOptional<ZodObject<{
1855
+ owner: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
1856
+ data: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
1857
+ description: z.ZodOptional<z.ZodString>;
1858
+ created_at: z.ZodBigInt;
1859
+ updated_at: z.ZodBigInt;
1860
+ version: z.ZodOptional<z.ZodBigInt>;
1861
+ }, "strict", ZodTypeAny, {
1862
+ owner: Uint8Array<ArrayBufferLike>;
1863
+ data: Uint8Array<ArrayBufferLike>;
1864
+ created_at: bigint;
1865
+ updated_at: bigint;
1866
+ description?: string | undefined;
1867
+ version?: bigint | undefined;
1868
+ }, {
1869
+ owner: Uint8Array<ArrayBufferLike>;
1870
+ data: Uint8Array<ArrayBufferLike>;
1871
+ created_at: bigint;
1872
+ updated_at: bigint;
1873
+ description?: string | undefined;
1874
+ version?: bigint | undefined;
1875
+ }>>;
1876
+ }>, baseObjectInputType<{
1877
+ collection: z.ZodString;
1878
+ key: z.ZodString;
1879
+ data: z.ZodOptional<ZodObject<{
1880
+ owner: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
1881
+ data: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
1882
+ description: z.ZodOptional<z.ZodString>;
1883
+ created_at: z.ZodBigInt;
1884
+ updated_at: z.ZodBigInt;
1885
+ version: z.ZodOptional<z.ZodBigInt>;
1886
+ }, "strict", ZodTypeAny, {
1887
+ owner: Uint8Array<ArrayBufferLike>;
1888
+ data: Uint8Array<ArrayBufferLike>;
1889
+ created_at: bigint;
1890
+ updated_at: bigint;
1891
+ description?: string | undefined;
1892
+ version?: bigint | undefined;
1893
+ }, {
1894
+ owner: Uint8Array<ArrayBufferLike>;
1895
+ data: Uint8Array<ArrayBufferLike>;
1896
+ created_at: bigint;
1897
+ updated_at: bigint;
1898
+ description?: string | undefined;
1899
+ version?: bigint | undefined;
1900
+ }>>;
1901
+ }>>, "many">;
1902
+ }, "strict", ZodTypeAny, baseObjectOutputType<{
1903
+ caller: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
1904
+ data: z.ZodArray<ZodObject<{
1905
+ collection: z.ZodString;
1906
+ key: z.ZodString;
1907
+ data: z.ZodOptional<ZodObject<{
1908
+ owner: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
1909
+ data: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
1910
+ description: z.ZodOptional<z.ZodString>;
1911
+ created_at: z.ZodBigInt;
1912
+ updated_at: z.ZodBigInt;
1913
+ version: z.ZodOptional<z.ZodBigInt>;
1914
+ }, "strict", ZodTypeAny, {
1915
+ owner: Uint8Array<ArrayBufferLike>;
1916
+ data: Uint8Array<ArrayBufferLike>;
1917
+ created_at: bigint;
1918
+ updated_at: bigint;
1919
+ description?: string | undefined;
1920
+ version?: bigint | undefined;
1921
+ }, {
1922
+ owner: Uint8Array<ArrayBufferLike>;
1923
+ data: Uint8Array<ArrayBufferLike>;
1924
+ created_at: bigint;
1925
+ updated_at: bigint;
1926
+ description?: string | undefined;
1927
+ version?: bigint | undefined;
1928
+ }>>;
1929
+ }, "strict", ZodTypeAny, baseObjectOutputType<{
1930
+ collection: z.ZodString;
1931
+ key: z.ZodString;
1932
+ data: z.ZodOptional<ZodObject<{
1933
+ owner: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
1934
+ data: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
1935
+ description: z.ZodOptional<z.ZodString>;
1936
+ created_at: z.ZodBigInt;
1937
+ updated_at: z.ZodBigInt;
1938
+ version: z.ZodOptional<z.ZodBigInt>;
1939
+ }, "strict", ZodTypeAny, {
1940
+ owner: Uint8Array<ArrayBufferLike>;
1941
+ data: Uint8Array<ArrayBufferLike>;
1942
+ created_at: bigint;
1943
+ updated_at: bigint;
1944
+ description?: string | undefined;
1945
+ version?: bigint | undefined;
1946
+ }, {
1947
+ owner: Uint8Array<ArrayBufferLike>;
1948
+ data: Uint8Array<ArrayBufferLike>;
1949
+ created_at: bigint;
1950
+ updated_at: bigint;
1951
+ description?: string | undefined;
1952
+ version?: bigint | undefined;
1953
+ }>>;
1954
+ }>, baseObjectInputType<{
1955
+ collection: z.ZodString;
1956
+ key: z.ZodString;
1957
+ data: z.ZodOptional<ZodObject<{
1958
+ owner: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
1959
+ data: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
1960
+ description: z.ZodOptional<z.ZodString>;
1961
+ created_at: z.ZodBigInt;
1962
+ updated_at: z.ZodBigInt;
1963
+ version: z.ZodOptional<z.ZodBigInt>;
1964
+ }, "strict", ZodTypeAny, {
1965
+ owner: Uint8Array<ArrayBufferLike>;
1966
+ data: Uint8Array<ArrayBufferLike>;
1967
+ created_at: bigint;
1968
+ updated_at: bigint;
1969
+ description?: string | undefined;
1970
+ version?: bigint | undefined;
1971
+ }, {
1972
+ owner: Uint8Array<ArrayBufferLike>;
1973
+ data: Uint8Array<ArrayBufferLike>;
1974
+ created_at: bigint;
1975
+ updated_at: bigint;
1976
+ description?: string | undefined;
1977
+ version?: bigint | undefined;
1978
+ }>>;
1979
+ }>>, "many">;
1980
+ }>, baseObjectInputType<{
1981
+ caller: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
1982
+ data: z.ZodArray<ZodObject<{
1983
+ collection: z.ZodString;
1984
+ key: z.ZodString;
1985
+ data: z.ZodOptional<ZodObject<{
1986
+ owner: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
1987
+ data: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
1988
+ description: z.ZodOptional<z.ZodString>;
1989
+ created_at: z.ZodBigInt;
1990
+ updated_at: z.ZodBigInt;
1991
+ version: z.ZodOptional<z.ZodBigInt>;
1992
+ }, "strict", ZodTypeAny, {
1993
+ owner: Uint8Array<ArrayBufferLike>;
1994
+ data: Uint8Array<ArrayBufferLike>;
1995
+ created_at: bigint;
1996
+ updated_at: bigint;
1997
+ description?: string | undefined;
1998
+ version?: bigint | undefined;
1999
+ }, {
2000
+ owner: Uint8Array<ArrayBufferLike>;
2001
+ data: Uint8Array<ArrayBufferLike>;
2002
+ created_at: bigint;
2003
+ updated_at: bigint;
2004
+ description?: string | undefined;
2005
+ version?: bigint | undefined;
2006
+ }>>;
2007
+ }, "strict", ZodTypeAny, baseObjectOutputType<{
2008
+ collection: z.ZodString;
2009
+ key: z.ZodString;
2010
+ data: z.ZodOptional<ZodObject<{
2011
+ owner: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
2012
+ data: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
2013
+ description: z.ZodOptional<z.ZodString>;
2014
+ created_at: z.ZodBigInt;
2015
+ updated_at: z.ZodBigInt;
2016
+ version: z.ZodOptional<z.ZodBigInt>;
2017
+ }, "strict", ZodTypeAny, {
2018
+ owner: Uint8Array<ArrayBufferLike>;
2019
+ data: Uint8Array<ArrayBufferLike>;
2020
+ created_at: bigint;
2021
+ updated_at: bigint;
2022
+ description?: string | undefined;
2023
+ version?: bigint | undefined;
2024
+ }, {
2025
+ owner: Uint8Array<ArrayBufferLike>;
2026
+ data: Uint8Array<ArrayBufferLike>;
2027
+ created_at: bigint;
2028
+ updated_at: bigint;
2029
+ description?: string | undefined;
2030
+ version?: bigint | undefined;
2031
+ }>>;
2032
+ }>, baseObjectInputType<{
2033
+ collection: z.ZodString;
2034
+ key: z.ZodString;
2035
+ data: z.ZodOptional<ZodObject<{
2036
+ owner: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
2037
+ data: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
2038
+ description: z.ZodOptional<z.ZodString>;
2039
+ created_at: z.ZodBigInt;
2040
+ updated_at: z.ZodBigInt;
2041
+ version: z.ZodOptional<z.ZodBigInt>;
2042
+ }, "strict", ZodTypeAny, {
2043
+ owner: Uint8Array<ArrayBufferLike>;
2044
+ data: Uint8Array<ArrayBufferLike>;
2045
+ created_at: bigint;
2046
+ updated_at: bigint;
2047
+ description?: string | undefined;
2048
+ version?: bigint | undefined;
2049
+ }, {
2050
+ owner: Uint8Array<ArrayBufferLike>;
2051
+ data: Uint8Array<ArrayBufferLike>;
2052
+ created_at: bigint;
2053
+ updated_at: bigint;
2054
+ description?: string | undefined;
2055
+ version?: bigint | undefined;
2056
+ }>>;
2057
+ }>>, "many">;
2058
+ }>>;
2059
+ /**
2060
+ * The context provided to the `onDeleteManyDocs` hook.
2061
+ *
2062
+ * This context contains information about multiple documents being deleted,
2063
+ * along with details about the user who triggered the operation.
2064
+ */
2065
+ export type OnDeleteManyDocsContext = HookContext<DocContext<OptionDoc>[]>;
2066
+ /**
2067
+ * @see OnDeleteFilteredDocsContext
2068
+ */
2069
+ export declare const OnDeleteFilteredDocsContextSchema: ZodObject<{
2070
+ caller: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
2071
+ data: z.ZodArray<ZodObject<{
2072
+ collection: z.ZodString;
2073
+ key: z.ZodString;
2074
+ data: z.ZodOptional<ZodObject<{
2075
+ owner: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
2076
+ data: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
2077
+ description: z.ZodOptional<z.ZodString>;
2078
+ created_at: z.ZodBigInt;
2079
+ updated_at: z.ZodBigInt;
2080
+ version: z.ZodOptional<z.ZodBigInt>;
2081
+ }, "strict", ZodTypeAny, {
2082
+ owner: Uint8Array<ArrayBufferLike>;
2083
+ data: Uint8Array<ArrayBufferLike>;
2084
+ created_at: bigint;
2085
+ updated_at: bigint;
2086
+ description?: string | undefined;
2087
+ version?: bigint | undefined;
2088
+ }, {
2089
+ owner: Uint8Array<ArrayBufferLike>;
2090
+ data: Uint8Array<ArrayBufferLike>;
2091
+ created_at: bigint;
2092
+ updated_at: bigint;
2093
+ description?: string | undefined;
2094
+ version?: bigint | undefined;
2095
+ }>>;
2096
+ }, "strict", ZodTypeAny, baseObjectOutputType<{
2097
+ collection: z.ZodString;
2098
+ key: z.ZodString;
2099
+ data: z.ZodOptional<ZodObject<{
2100
+ owner: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
2101
+ data: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
2102
+ description: z.ZodOptional<z.ZodString>;
2103
+ created_at: z.ZodBigInt;
2104
+ updated_at: z.ZodBigInt;
2105
+ version: z.ZodOptional<z.ZodBigInt>;
2106
+ }, "strict", ZodTypeAny, {
2107
+ owner: Uint8Array<ArrayBufferLike>;
2108
+ data: Uint8Array<ArrayBufferLike>;
2109
+ created_at: bigint;
2110
+ updated_at: bigint;
2111
+ description?: string | undefined;
2112
+ version?: bigint | undefined;
2113
+ }, {
2114
+ owner: Uint8Array<ArrayBufferLike>;
2115
+ data: Uint8Array<ArrayBufferLike>;
2116
+ created_at: bigint;
2117
+ updated_at: bigint;
2118
+ description?: string | undefined;
2119
+ version?: bigint | undefined;
2120
+ }>>;
2121
+ }>, baseObjectInputType<{
2122
+ collection: z.ZodString;
2123
+ key: z.ZodString;
2124
+ data: z.ZodOptional<ZodObject<{
2125
+ owner: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
2126
+ data: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
2127
+ description: z.ZodOptional<z.ZodString>;
2128
+ created_at: z.ZodBigInt;
2129
+ updated_at: z.ZodBigInt;
2130
+ version: z.ZodOptional<z.ZodBigInt>;
2131
+ }, "strict", ZodTypeAny, {
2132
+ owner: Uint8Array<ArrayBufferLike>;
2133
+ data: Uint8Array<ArrayBufferLike>;
2134
+ created_at: bigint;
2135
+ updated_at: bigint;
2136
+ description?: string | undefined;
2137
+ version?: bigint | undefined;
2138
+ }, {
2139
+ owner: Uint8Array<ArrayBufferLike>;
2140
+ data: Uint8Array<ArrayBufferLike>;
2141
+ created_at: bigint;
2142
+ updated_at: bigint;
2143
+ description?: string | undefined;
2144
+ version?: bigint | undefined;
2145
+ }>>;
2146
+ }>>, "many">;
2147
+ }, "strict", ZodTypeAny, baseObjectOutputType<{
2148
+ caller: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
2149
+ data: z.ZodArray<ZodObject<{
2150
+ collection: z.ZodString;
2151
+ key: z.ZodString;
2152
+ data: z.ZodOptional<ZodObject<{
2153
+ owner: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
2154
+ data: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
2155
+ description: z.ZodOptional<z.ZodString>;
2156
+ created_at: z.ZodBigInt;
2157
+ updated_at: z.ZodBigInt;
2158
+ version: z.ZodOptional<z.ZodBigInt>;
2159
+ }, "strict", ZodTypeAny, {
2160
+ owner: Uint8Array<ArrayBufferLike>;
2161
+ data: Uint8Array<ArrayBufferLike>;
2162
+ created_at: bigint;
2163
+ updated_at: bigint;
2164
+ description?: string | undefined;
2165
+ version?: bigint | undefined;
2166
+ }, {
2167
+ owner: Uint8Array<ArrayBufferLike>;
2168
+ data: Uint8Array<ArrayBufferLike>;
2169
+ created_at: bigint;
2170
+ updated_at: bigint;
2171
+ description?: string | undefined;
2172
+ version?: bigint | undefined;
2173
+ }>>;
2174
+ }, "strict", ZodTypeAny, baseObjectOutputType<{
2175
+ collection: z.ZodString;
2176
+ key: z.ZodString;
2177
+ data: z.ZodOptional<ZodObject<{
2178
+ owner: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
2179
+ data: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
2180
+ description: z.ZodOptional<z.ZodString>;
2181
+ created_at: z.ZodBigInt;
2182
+ updated_at: z.ZodBigInt;
2183
+ version: z.ZodOptional<z.ZodBigInt>;
2184
+ }, "strict", ZodTypeAny, {
2185
+ owner: Uint8Array<ArrayBufferLike>;
2186
+ data: Uint8Array<ArrayBufferLike>;
2187
+ created_at: bigint;
2188
+ updated_at: bigint;
2189
+ description?: string | undefined;
2190
+ version?: bigint | undefined;
2191
+ }, {
2192
+ owner: Uint8Array<ArrayBufferLike>;
2193
+ data: Uint8Array<ArrayBufferLike>;
2194
+ created_at: bigint;
2195
+ updated_at: bigint;
2196
+ description?: string | undefined;
2197
+ version?: bigint | undefined;
2198
+ }>>;
2199
+ }>, baseObjectInputType<{
2200
+ collection: z.ZodString;
2201
+ key: z.ZodString;
2202
+ data: z.ZodOptional<ZodObject<{
2203
+ owner: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
2204
+ data: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
2205
+ description: z.ZodOptional<z.ZodString>;
2206
+ created_at: z.ZodBigInt;
2207
+ updated_at: z.ZodBigInt;
2208
+ version: z.ZodOptional<z.ZodBigInt>;
2209
+ }, "strict", ZodTypeAny, {
2210
+ owner: Uint8Array<ArrayBufferLike>;
2211
+ data: Uint8Array<ArrayBufferLike>;
2212
+ created_at: bigint;
2213
+ updated_at: bigint;
2214
+ description?: string | undefined;
2215
+ version?: bigint | undefined;
2216
+ }, {
2217
+ owner: Uint8Array<ArrayBufferLike>;
2218
+ data: Uint8Array<ArrayBufferLike>;
2219
+ created_at: bigint;
2220
+ updated_at: bigint;
2221
+ description?: string | undefined;
2222
+ version?: bigint | undefined;
2223
+ }>>;
2224
+ }>>, "many">;
2225
+ }>, baseObjectInputType<{
2226
+ caller: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
2227
+ data: z.ZodArray<ZodObject<{
2228
+ collection: z.ZodString;
2229
+ key: z.ZodString;
2230
+ data: z.ZodOptional<ZodObject<{
2231
+ owner: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
2232
+ data: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
2233
+ description: z.ZodOptional<z.ZodString>;
2234
+ created_at: z.ZodBigInt;
2235
+ updated_at: z.ZodBigInt;
2236
+ version: z.ZodOptional<z.ZodBigInt>;
2237
+ }, "strict", ZodTypeAny, {
2238
+ owner: Uint8Array<ArrayBufferLike>;
2239
+ data: Uint8Array<ArrayBufferLike>;
2240
+ created_at: bigint;
2241
+ updated_at: bigint;
2242
+ description?: string | undefined;
2243
+ version?: bigint | undefined;
2244
+ }, {
2245
+ owner: Uint8Array<ArrayBufferLike>;
2246
+ data: Uint8Array<ArrayBufferLike>;
2247
+ created_at: bigint;
2248
+ updated_at: bigint;
2249
+ description?: string | undefined;
2250
+ version?: bigint | undefined;
2251
+ }>>;
2252
+ }, "strict", ZodTypeAny, baseObjectOutputType<{
2253
+ collection: z.ZodString;
2254
+ key: z.ZodString;
2255
+ data: z.ZodOptional<ZodObject<{
2256
+ owner: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
2257
+ data: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
2258
+ description: z.ZodOptional<z.ZodString>;
2259
+ created_at: z.ZodBigInt;
2260
+ updated_at: z.ZodBigInt;
2261
+ version: z.ZodOptional<z.ZodBigInt>;
2262
+ }, "strict", ZodTypeAny, {
2263
+ owner: Uint8Array<ArrayBufferLike>;
2264
+ data: Uint8Array<ArrayBufferLike>;
2265
+ created_at: bigint;
2266
+ updated_at: bigint;
2267
+ description?: string | undefined;
2268
+ version?: bigint | undefined;
2269
+ }, {
2270
+ owner: Uint8Array<ArrayBufferLike>;
2271
+ data: Uint8Array<ArrayBufferLike>;
2272
+ created_at: bigint;
2273
+ updated_at: bigint;
2274
+ description?: string | undefined;
2275
+ version?: bigint | undefined;
2276
+ }>>;
2277
+ }>, baseObjectInputType<{
2278
+ collection: z.ZodString;
2279
+ key: z.ZodString;
2280
+ data: z.ZodOptional<ZodObject<{
2281
+ owner: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
2282
+ data: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
2283
+ description: z.ZodOptional<z.ZodString>;
2284
+ created_at: z.ZodBigInt;
2285
+ updated_at: z.ZodBigInt;
2286
+ version: z.ZodOptional<z.ZodBigInt>;
2287
+ }, "strict", ZodTypeAny, {
2288
+ owner: Uint8Array<ArrayBufferLike>;
2289
+ data: Uint8Array<ArrayBufferLike>;
2290
+ created_at: bigint;
2291
+ updated_at: bigint;
2292
+ description?: string | undefined;
2293
+ version?: bigint | undefined;
2294
+ }, {
2295
+ owner: Uint8Array<ArrayBufferLike>;
2296
+ data: Uint8Array<ArrayBufferLike>;
2297
+ created_at: bigint;
2298
+ updated_at: bigint;
2299
+ description?: string | undefined;
2300
+ version?: bigint | undefined;
2301
+ }>>;
2302
+ }>>, "many">;
2303
+ }>>;
2304
+ /**
2305
+ * The context provided to the `onDeleteFilteredDocs` hook.
2306
+ *
2307
+ * This context contains information about documents deleted as a result of a filter,
2308
+ * along with details about the user who triggered the operation.
2309
+ */
2310
+ export type OnDeleteFilteredDocsContext = HookContext<DocContext<OptionDoc>[]>;
2311
+ /**
2312
+ * @see AssertSetDocContext
2313
+ */
2314
+ export declare const AssertSetDocContextSchema: ZodObject<{
2315
+ caller: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
2316
+ data: ZodObject<{
2317
+ collection: z.ZodString;
2318
+ key: z.ZodString;
2319
+ data: ZodObject<{
2320
+ current: z.ZodOptional<ZodObject<{
2321
+ owner: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
2322
+ data: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
2323
+ description: z.ZodOptional<z.ZodString>;
2324
+ created_at: z.ZodBigInt;
2325
+ updated_at: z.ZodBigInt;
2326
+ version: z.ZodOptional<z.ZodBigInt>;
2327
+ }, "strict", ZodTypeAny, {
2328
+ owner: Uint8Array<ArrayBufferLike>;
2329
+ data: Uint8Array<ArrayBufferLike>;
2330
+ created_at: bigint;
2331
+ updated_at: bigint;
2332
+ description?: string | undefined;
2333
+ version?: bigint | undefined;
2334
+ }, {
2335
+ owner: Uint8Array<ArrayBufferLike>;
2336
+ data: Uint8Array<ArrayBufferLike>;
2337
+ created_at: bigint;
2338
+ updated_at: bigint;
2339
+ description?: string | undefined;
2340
+ version?: bigint | undefined;
2341
+ }>>;
2342
+ proposed: ZodObject<{
2343
+ data: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
2344
+ description: z.ZodOptional<z.ZodString>;
2345
+ version: z.ZodOptional<z.ZodBigInt>;
2346
+ }, "strict", ZodTypeAny, {
2347
+ data: Uint8Array<ArrayBufferLike>;
2348
+ description?: string | undefined;
2349
+ version?: bigint | undefined;
2350
+ }, {
2351
+ data: Uint8Array<ArrayBufferLike>;
2352
+ description?: string | undefined;
2353
+ version?: bigint | undefined;
2354
+ }>;
2355
+ }, "strict", ZodTypeAny, {
2356
+ proposed: {
2357
+ data: Uint8Array<ArrayBufferLike>;
2358
+ description?: string | undefined;
2359
+ version?: bigint | undefined;
2360
+ };
2361
+ current?: {
2362
+ owner: Uint8Array<ArrayBufferLike>;
2363
+ data: Uint8Array<ArrayBufferLike>;
2364
+ created_at: bigint;
2365
+ updated_at: bigint;
2366
+ description?: string | undefined;
2367
+ version?: bigint | undefined;
2368
+ } | undefined;
2369
+ }, {
2370
+ proposed: {
2371
+ data: Uint8Array<ArrayBufferLike>;
2372
+ description?: string | undefined;
2373
+ version?: bigint | undefined;
2374
+ };
2375
+ current?: {
2376
+ owner: Uint8Array<ArrayBufferLike>;
2377
+ data: Uint8Array<ArrayBufferLike>;
2378
+ created_at: bigint;
2379
+ updated_at: bigint;
2380
+ description?: string | undefined;
2381
+ version?: bigint | undefined;
2382
+ } | undefined;
2383
+ }>;
2384
+ }, "strict", ZodTypeAny, baseObjectOutputType<{
2385
+ collection: z.ZodString;
2386
+ key: z.ZodString;
2387
+ data: ZodObject<{
2388
+ current: z.ZodOptional<ZodObject<{
2389
+ owner: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
2390
+ data: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
2391
+ description: z.ZodOptional<z.ZodString>;
2392
+ created_at: z.ZodBigInt;
2393
+ updated_at: z.ZodBigInt;
2394
+ version: z.ZodOptional<z.ZodBigInt>;
2395
+ }, "strict", ZodTypeAny, {
2396
+ owner: Uint8Array<ArrayBufferLike>;
2397
+ data: Uint8Array<ArrayBufferLike>;
2398
+ created_at: bigint;
2399
+ updated_at: bigint;
2400
+ description?: string | undefined;
2401
+ version?: bigint | undefined;
2402
+ }, {
2403
+ owner: Uint8Array<ArrayBufferLike>;
2404
+ data: Uint8Array<ArrayBufferLike>;
2405
+ created_at: bigint;
2406
+ updated_at: bigint;
2407
+ description?: string | undefined;
2408
+ version?: bigint | undefined;
2409
+ }>>;
2410
+ proposed: ZodObject<{
2411
+ data: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
2412
+ description: z.ZodOptional<z.ZodString>;
2413
+ version: z.ZodOptional<z.ZodBigInt>;
2414
+ }, "strict", ZodTypeAny, {
2415
+ data: Uint8Array<ArrayBufferLike>;
2416
+ description?: string | undefined;
2417
+ version?: bigint | undefined;
2418
+ }, {
2419
+ data: Uint8Array<ArrayBufferLike>;
2420
+ description?: string | undefined;
2421
+ version?: bigint | undefined;
2422
+ }>;
2423
+ }, "strict", ZodTypeAny, {
2424
+ proposed: {
2425
+ data: Uint8Array<ArrayBufferLike>;
2426
+ description?: string | undefined;
2427
+ version?: bigint | undefined;
2428
+ };
2429
+ current?: {
2430
+ owner: Uint8Array<ArrayBufferLike>;
2431
+ data: Uint8Array<ArrayBufferLike>;
2432
+ created_at: bigint;
2433
+ updated_at: bigint;
2434
+ description?: string | undefined;
2435
+ version?: bigint | undefined;
2436
+ } | undefined;
2437
+ }, {
2438
+ proposed: {
2439
+ data: Uint8Array<ArrayBufferLike>;
2440
+ description?: string | undefined;
2441
+ version?: bigint | undefined;
2442
+ };
2443
+ current?: {
2444
+ owner: Uint8Array<ArrayBufferLike>;
2445
+ data: Uint8Array<ArrayBufferLike>;
2446
+ created_at: bigint;
2447
+ updated_at: bigint;
2448
+ description?: string | undefined;
2449
+ version?: bigint | undefined;
2450
+ } | undefined;
2451
+ }>;
2452
+ }>, baseObjectInputType<{
2453
+ collection: z.ZodString;
2454
+ key: z.ZodString;
2455
+ data: ZodObject<{
2456
+ current: z.ZodOptional<ZodObject<{
2457
+ owner: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
2458
+ data: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
2459
+ description: z.ZodOptional<z.ZodString>;
2460
+ created_at: z.ZodBigInt;
2461
+ updated_at: z.ZodBigInt;
2462
+ version: z.ZodOptional<z.ZodBigInt>;
2463
+ }, "strict", ZodTypeAny, {
2464
+ owner: Uint8Array<ArrayBufferLike>;
2465
+ data: Uint8Array<ArrayBufferLike>;
2466
+ created_at: bigint;
2467
+ updated_at: bigint;
2468
+ description?: string | undefined;
2469
+ version?: bigint | undefined;
2470
+ }, {
2471
+ owner: Uint8Array<ArrayBufferLike>;
2472
+ data: Uint8Array<ArrayBufferLike>;
2473
+ created_at: bigint;
2474
+ updated_at: bigint;
2475
+ description?: string | undefined;
2476
+ version?: bigint | undefined;
2477
+ }>>;
2478
+ proposed: ZodObject<{
2479
+ data: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
2480
+ description: z.ZodOptional<z.ZodString>;
2481
+ version: z.ZodOptional<z.ZodBigInt>;
2482
+ }, "strict", ZodTypeAny, {
2483
+ data: Uint8Array<ArrayBufferLike>;
2484
+ description?: string | undefined;
2485
+ version?: bigint | undefined;
2486
+ }, {
2487
+ data: Uint8Array<ArrayBufferLike>;
2488
+ description?: string | undefined;
2489
+ version?: bigint | undefined;
2490
+ }>;
2491
+ }, "strict", ZodTypeAny, {
2492
+ proposed: {
2493
+ data: Uint8Array<ArrayBufferLike>;
2494
+ description?: string | undefined;
2495
+ version?: bigint | undefined;
2496
+ };
2497
+ current?: {
2498
+ owner: Uint8Array<ArrayBufferLike>;
2499
+ data: Uint8Array<ArrayBufferLike>;
2500
+ created_at: bigint;
2501
+ updated_at: bigint;
2502
+ description?: string | undefined;
2503
+ version?: bigint | undefined;
2504
+ } | undefined;
2505
+ }, {
2506
+ proposed: {
2507
+ data: Uint8Array<ArrayBufferLike>;
2508
+ description?: string | undefined;
2509
+ version?: bigint | undefined;
2510
+ };
2511
+ current?: {
2512
+ owner: Uint8Array<ArrayBufferLike>;
2513
+ data: Uint8Array<ArrayBufferLike>;
2514
+ created_at: bigint;
2515
+ updated_at: bigint;
2516
+ description?: string | undefined;
2517
+ version?: bigint | undefined;
2518
+ } | undefined;
2519
+ }>;
2520
+ }>>;
2521
+ }, "strict", ZodTypeAny, baseObjectOutputType<{
2522
+ caller: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
2523
+ data: ZodObject<{
2524
+ collection: z.ZodString;
2525
+ key: z.ZodString;
2526
+ data: ZodObject<{
2527
+ current: z.ZodOptional<ZodObject<{
2528
+ owner: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
2529
+ data: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
2530
+ description: z.ZodOptional<z.ZodString>;
2531
+ created_at: z.ZodBigInt;
2532
+ updated_at: z.ZodBigInt;
2533
+ version: z.ZodOptional<z.ZodBigInt>;
2534
+ }, "strict", ZodTypeAny, {
2535
+ owner: Uint8Array<ArrayBufferLike>;
2536
+ data: Uint8Array<ArrayBufferLike>;
2537
+ created_at: bigint;
2538
+ updated_at: bigint;
2539
+ description?: string | undefined;
2540
+ version?: bigint | undefined;
2541
+ }, {
2542
+ owner: Uint8Array<ArrayBufferLike>;
2543
+ data: Uint8Array<ArrayBufferLike>;
2544
+ created_at: bigint;
2545
+ updated_at: bigint;
2546
+ description?: string | undefined;
2547
+ version?: bigint | undefined;
2548
+ }>>;
2549
+ proposed: ZodObject<{
2550
+ data: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
2551
+ description: z.ZodOptional<z.ZodString>;
2552
+ version: z.ZodOptional<z.ZodBigInt>;
2553
+ }, "strict", ZodTypeAny, {
2554
+ data: Uint8Array<ArrayBufferLike>;
2555
+ description?: string | undefined;
2556
+ version?: bigint | undefined;
2557
+ }, {
2558
+ data: Uint8Array<ArrayBufferLike>;
2559
+ description?: string | undefined;
2560
+ version?: bigint | undefined;
2561
+ }>;
2562
+ }, "strict", ZodTypeAny, {
2563
+ proposed: {
2564
+ data: Uint8Array<ArrayBufferLike>;
2565
+ description?: string | undefined;
2566
+ version?: bigint | undefined;
2567
+ };
2568
+ current?: {
2569
+ owner: Uint8Array<ArrayBufferLike>;
2570
+ data: Uint8Array<ArrayBufferLike>;
2571
+ created_at: bigint;
2572
+ updated_at: bigint;
2573
+ description?: string | undefined;
2574
+ version?: bigint | undefined;
2575
+ } | undefined;
2576
+ }, {
2577
+ proposed: {
2578
+ data: Uint8Array<ArrayBufferLike>;
2579
+ description?: string | undefined;
2580
+ version?: bigint | undefined;
2581
+ };
2582
+ current?: {
2583
+ owner: Uint8Array<ArrayBufferLike>;
2584
+ data: Uint8Array<ArrayBufferLike>;
2585
+ created_at: bigint;
2586
+ updated_at: bigint;
2587
+ description?: string | undefined;
2588
+ version?: bigint | undefined;
2589
+ } | undefined;
2590
+ }>;
2591
+ }, "strict", ZodTypeAny, baseObjectOutputType<{
2592
+ collection: z.ZodString;
2593
+ key: z.ZodString;
2594
+ data: ZodObject<{
2595
+ current: z.ZodOptional<ZodObject<{
2596
+ owner: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
2597
+ data: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
2598
+ description: z.ZodOptional<z.ZodString>;
2599
+ created_at: z.ZodBigInt;
2600
+ updated_at: z.ZodBigInt;
2601
+ version: z.ZodOptional<z.ZodBigInt>;
2602
+ }, "strict", ZodTypeAny, {
2603
+ owner: Uint8Array<ArrayBufferLike>;
2604
+ data: Uint8Array<ArrayBufferLike>;
2605
+ created_at: bigint;
2606
+ updated_at: bigint;
2607
+ description?: string | undefined;
2608
+ version?: bigint | undefined;
2609
+ }, {
2610
+ owner: Uint8Array<ArrayBufferLike>;
2611
+ data: Uint8Array<ArrayBufferLike>;
2612
+ created_at: bigint;
2613
+ updated_at: bigint;
2614
+ description?: string | undefined;
2615
+ version?: bigint | undefined;
2616
+ }>>;
2617
+ proposed: ZodObject<{
2618
+ data: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
2619
+ description: z.ZodOptional<z.ZodString>;
2620
+ version: z.ZodOptional<z.ZodBigInt>;
2621
+ }, "strict", ZodTypeAny, {
2622
+ data: Uint8Array<ArrayBufferLike>;
2623
+ description?: string | undefined;
2624
+ version?: bigint | undefined;
2625
+ }, {
2626
+ data: Uint8Array<ArrayBufferLike>;
2627
+ description?: string | undefined;
2628
+ version?: bigint | undefined;
2629
+ }>;
2630
+ }, "strict", ZodTypeAny, {
2631
+ proposed: {
2632
+ data: Uint8Array<ArrayBufferLike>;
2633
+ description?: string | undefined;
2634
+ version?: bigint | undefined;
2635
+ };
2636
+ current?: {
2637
+ owner: Uint8Array<ArrayBufferLike>;
2638
+ data: Uint8Array<ArrayBufferLike>;
2639
+ created_at: bigint;
2640
+ updated_at: bigint;
2641
+ description?: string | undefined;
2642
+ version?: bigint | undefined;
2643
+ } | undefined;
2644
+ }, {
2645
+ proposed: {
2646
+ data: Uint8Array<ArrayBufferLike>;
2647
+ description?: string | undefined;
2648
+ version?: bigint | undefined;
2649
+ };
2650
+ current?: {
2651
+ owner: Uint8Array<ArrayBufferLike>;
2652
+ data: Uint8Array<ArrayBufferLike>;
2653
+ created_at: bigint;
2654
+ updated_at: bigint;
2655
+ description?: string | undefined;
2656
+ version?: bigint | undefined;
2657
+ } | undefined;
2658
+ }>;
2659
+ }>, baseObjectInputType<{
2660
+ collection: z.ZodString;
2661
+ key: z.ZodString;
2662
+ data: ZodObject<{
2663
+ current: z.ZodOptional<ZodObject<{
2664
+ owner: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
2665
+ data: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
2666
+ description: z.ZodOptional<z.ZodString>;
2667
+ created_at: z.ZodBigInt;
2668
+ updated_at: z.ZodBigInt;
2669
+ version: z.ZodOptional<z.ZodBigInt>;
2670
+ }, "strict", ZodTypeAny, {
2671
+ owner: Uint8Array<ArrayBufferLike>;
2672
+ data: Uint8Array<ArrayBufferLike>;
2673
+ created_at: bigint;
2674
+ updated_at: bigint;
2675
+ description?: string | undefined;
2676
+ version?: bigint | undefined;
2677
+ }, {
2678
+ owner: Uint8Array<ArrayBufferLike>;
2679
+ data: Uint8Array<ArrayBufferLike>;
2680
+ created_at: bigint;
2681
+ updated_at: bigint;
2682
+ description?: string | undefined;
2683
+ version?: bigint | undefined;
2684
+ }>>;
2685
+ proposed: ZodObject<{
2686
+ data: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
2687
+ description: z.ZodOptional<z.ZodString>;
2688
+ version: z.ZodOptional<z.ZodBigInt>;
2689
+ }, "strict", ZodTypeAny, {
2690
+ data: Uint8Array<ArrayBufferLike>;
2691
+ description?: string | undefined;
2692
+ version?: bigint | undefined;
2693
+ }, {
2694
+ data: Uint8Array<ArrayBufferLike>;
2695
+ description?: string | undefined;
2696
+ version?: bigint | undefined;
2697
+ }>;
2698
+ }, "strict", ZodTypeAny, {
2699
+ proposed: {
2700
+ data: Uint8Array<ArrayBufferLike>;
2701
+ description?: string | undefined;
2702
+ version?: bigint | undefined;
2703
+ };
2704
+ current?: {
2705
+ owner: Uint8Array<ArrayBufferLike>;
2706
+ data: Uint8Array<ArrayBufferLike>;
2707
+ created_at: bigint;
2708
+ updated_at: bigint;
2709
+ description?: string | undefined;
2710
+ version?: bigint | undefined;
2711
+ } | undefined;
2712
+ }, {
2713
+ proposed: {
2714
+ data: Uint8Array<ArrayBufferLike>;
2715
+ description?: string | undefined;
2716
+ version?: bigint | undefined;
2717
+ };
2718
+ current?: {
2719
+ owner: Uint8Array<ArrayBufferLike>;
2720
+ data: Uint8Array<ArrayBufferLike>;
2721
+ created_at: bigint;
2722
+ updated_at: bigint;
2723
+ description?: string | undefined;
2724
+ version?: bigint | undefined;
2725
+ } | undefined;
2726
+ }>;
2727
+ }>>;
2728
+ }>, baseObjectInputType<{
2729
+ caller: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
2730
+ data: ZodObject<{
2731
+ collection: z.ZodString;
2732
+ key: z.ZodString;
2733
+ data: ZodObject<{
2734
+ current: z.ZodOptional<ZodObject<{
2735
+ owner: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
2736
+ data: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
2737
+ description: z.ZodOptional<z.ZodString>;
2738
+ created_at: z.ZodBigInt;
2739
+ updated_at: z.ZodBigInt;
2740
+ version: z.ZodOptional<z.ZodBigInt>;
2741
+ }, "strict", ZodTypeAny, {
2742
+ owner: Uint8Array<ArrayBufferLike>;
2743
+ data: Uint8Array<ArrayBufferLike>;
2744
+ created_at: bigint;
2745
+ updated_at: bigint;
2746
+ description?: string | undefined;
2747
+ version?: bigint | undefined;
2748
+ }, {
2749
+ owner: Uint8Array<ArrayBufferLike>;
2750
+ data: Uint8Array<ArrayBufferLike>;
2751
+ created_at: bigint;
2752
+ updated_at: bigint;
2753
+ description?: string | undefined;
2754
+ version?: bigint | undefined;
2755
+ }>>;
2756
+ proposed: ZodObject<{
2757
+ data: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
2758
+ description: z.ZodOptional<z.ZodString>;
2759
+ version: z.ZodOptional<z.ZodBigInt>;
2760
+ }, "strict", ZodTypeAny, {
2761
+ data: Uint8Array<ArrayBufferLike>;
2762
+ description?: string | undefined;
2763
+ version?: bigint | undefined;
2764
+ }, {
2765
+ data: Uint8Array<ArrayBufferLike>;
2766
+ description?: string | undefined;
2767
+ version?: bigint | undefined;
2768
+ }>;
2769
+ }, "strict", ZodTypeAny, {
2770
+ proposed: {
2771
+ data: Uint8Array<ArrayBufferLike>;
2772
+ description?: string | undefined;
2773
+ version?: bigint | undefined;
2774
+ };
2775
+ current?: {
2776
+ owner: Uint8Array<ArrayBufferLike>;
2777
+ data: Uint8Array<ArrayBufferLike>;
2778
+ created_at: bigint;
2779
+ updated_at: bigint;
2780
+ description?: string | undefined;
2781
+ version?: bigint | undefined;
2782
+ } | undefined;
2783
+ }, {
2784
+ proposed: {
2785
+ data: Uint8Array<ArrayBufferLike>;
2786
+ description?: string | undefined;
2787
+ version?: bigint | undefined;
2788
+ };
2789
+ current?: {
2790
+ owner: Uint8Array<ArrayBufferLike>;
2791
+ data: Uint8Array<ArrayBufferLike>;
2792
+ created_at: bigint;
2793
+ updated_at: bigint;
2794
+ description?: string | undefined;
2795
+ version?: bigint | undefined;
2796
+ } | undefined;
2797
+ }>;
2798
+ }, "strict", ZodTypeAny, baseObjectOutputType<{
2799
+ collection: z.ZodString;
2800
+ key: z.ZodString;
2801
+ data: ZodObject<{
2802
+ current: z.ZodOptional<ZodObject<{
2803
+ owner: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
2804
+ data: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
2805
+ description: z.ZodOptional<z.ZodString>;
2806
+ created_at: z.ZodBigInt;
2807
+ updated_at: z.ZodBigInt;
2808
+ version: z.ZodOptional<z.ZodBigInt>;
2809
+ }, "strict", ZodTypeAny, {
2810
+ owner: Uint8Array<ArrayBufferLike>;
2811
+ data: Uint8Array<ArrayBufferLike>;
2812
+ created_at: bigint;
2813
+ updated_at: bigint;
2814
+ description?: string | undefined;
2815
+ version?: bigint | undefined;
2816
+ }, {
2817
+ owner: Uint8Array<ArrayBufferLike>;
2818
+ data: Uint8Array<ArrayBufferLike>;
2819
+ created_at: bigint;
2820
+ updated_at: bigint;
2821
+ description?: string | undefined;
2822
+ version?: bigint | undefined;
2823
+ }>>;
2824
+ proposed: ZodObject<{
2825
+ data: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
2826
+ description: z.ZodOptional<z.ZodString>;
2827
+ version: z.ZodOptional<z.ZodBigInt>;
2828
+ }, "strict", ZodTypeAny, {
2829
+ data: Uint8Array<ArrayBufferLike>;
2830
+ description?: string | undefined;
2831
+ version?: bigint | undefined;
2832
+ }, {
2833
+ data: Uint8Array<ArrayBufferLike>;
2834
+ description?: string | undefined;
2835
+ version?: bigint | undefined;
2836
+ }>;
2837
+ }, "strict", ZodTypeAny, {
2838
+ proposed: {
2839
+ data: Uint8Array<ArrayBufferLike>;
2840
+ description?: string | undefined;
2841
+ version?: bigint | undefined;
2842
+ };
2843
+ current?: {
2844
+ owner: Uint8Array<ArrayBufferLike>;
2845
+ data: Uint8Array<ArrayBufferLike>;
2846
+ created_at: bigint;
2847
+ updated_at: bigint;
2848
+ description?: string | undefined;
2849
+ version?: bigint | undefined;
2850
+ } | undefined;
2851
+ }, {
2852
+ proposed: {
2853
+ data: Uint8Array<ArrayBufferLike>;
2854
+ description?: string | undefined;
2855
+ version?: bigint | undefined;
2856
+ };
2857
+ current?: {
2858
+ owner: Uint8Array<ArrayBufferLike>;
2859
+ data: Uint8Array<ArrayBufferLike>;
2860
+ created_at: bigint;
2861
+ updated_at: bigint;
2862
+ description?: string | undefined;
2863
+ version?: bigint | undefined;
2864
+ } | undefined;
2865
+ }>;
2866
+ }>, baseObjectInputType<{
2867
+ collection: z.ZodString;
2868
+ key: z.ZodString;
2869
+ data: ZodObject<{
2870
+ current: z.ZodOptional<ZodObject<{
2871
+ owner: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
2872
+ data: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
2873
+ description: z.ZodOptional<z.ZodString>;
2874
+ created_at: z.ZodBigInt;
2875
+ updated_at: z.ZodBigInt;
2876
+ version: z.ZodOptional<z.ZodBigInt>;
2877
+ }, "strict", ZodTypeAny, {
2878
+ owner: Uint8Array<ArrayBufferLike>;
2879
+ data: Uint8Array<ArrayBufferLike>;
2880
+ created_at: bigint;
2881
+ updated_at: bigint;
2882
+ description?: string | undefined;
2883
+ version?: bigint | undefined;
2884
+ }, {
2885
+ owner: Uint8Array<ArrayBufferLike>;
2886
+ data: Uint8Array<ArrayBufferLike>;
2887
+ created_at: bigint;
2888
+ updated_at: bigint;
2889
+ description?: string | undefined;
2890
+ version?: bigint | undefined;
2891
+ }>>;
2892
+ proposed: ZodObject<{
2893
+ data: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
2894
+ description: z.ZodOptional<z.ZodString>;
2895
+ version: z.ZodOptional<z.ZodBigInt>;
2896
+ }, "strict", ZodTypeAny, {
2897
+ data: Uint8Array<ArrayBufferLike>;
2898
+ description?: string | undefined;
2899
+ version?: bigint | undefined;
2900
+ }, {
2901
+ data: Uint8Array<ArrayBufferLike>;
2902
+ description?: string | undefined;
2903
+ version?: bigint | undefined;
2904
+ }>;
2905
+ }, "strict", ZodTypeAny, {
2906
+ proposed: {
2907
+ data: Uint8Array<ArrayBufferLike>;
2908
+ description?: string | undefined;
2909
+ version?: bigint | undefined;
2910
+ };
2911
+ current?: {
2912
+ owner: Uint8Array<ArrayBufferLike>;
2913
+ data: Uint8Array<ArrayBufferLike>;
2914
+ created_at: bigint;
2915
+ updated_at: bigint;
2916
+ description?: string | undefined;
2917
+ version?: bigint | undefined;
2918
+ } | undefined;
2919
+ }, {
2920
+ proposed: {
2921
+ data: Uint8Array<ArrayBufferLike>;
2922
+ description?: string | undefined;
2923
+ version?: bigint | undefined;
2924
+ };
2925
+ current?: {
2926
+ owner: Uint8Array<ArrayBufferLike>;
2927
+ data: Uint8Array<ArrayBufferLike>;
2928
+ created_at: bigint;
2929
+ updated_at: bigint;
2930
+ description?: string | undefined;
2931
+ version?: bigint | undefined;
2932
+ } | undefined;
2933
+ }>;
2934
+ }>>;
2935
+ }>>;
2936
+ /**
2937
+ * The context provided to the `assertDeleteDoc` hook.
2938
+ *
2939
+ * This context contains information about the document being validated before
2940
+ * it is created or updated. If validation fails, the developer should throw an error.
2941
+ */
2942
+ export type AssertSetDocContext = HookContext<DocContext<DocAssertSet>>;
2943
+ /**
2944
+ * @see AssertDeleteDocContext
2945
+ */
2946
+ export declare const AssertDeleteDocContextSchema: ZodObject<{
2947
+ caller: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
2948
+ data: ZodObject<{
2949
+ collection: z.ZodString;
2950
+ key: z.ZodString;
2951
+ data: ZodObject<{
2952
+ current: z.ZodOptional<ZodObject<{
2953
+ owner: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
2954
+ data: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
2955
+ description: z.ZodOptional<z.ZodString>;
2956
+ created_at: z.ZodBigInt;
2957
+ updated_at: z.ZodBigInt;
2958
+ version: z.ZodOptional<z.ZodBigInt>;
2959
+ }, "strict", ZodTypeAny, {
2960
+ owner: Uint8Array<ArrayBufferLike>;
2961
+ data: Uint8Array<ArrayBufferLike>;
2962
+ created_at: bigint;
2963
+ updated_at: bigint;
2964
+ description?: string | undefined;
2965
+ version?: bigint | undefined;
2966
+ }, {
2967
+ owner: Uint8Array<ArrayBufferLike>;
2968
+ data: Uint8Array<ArrayBufferLike>;
2969
+ created_at: bigint;
2970
+ updated_at: bigint;
2971
+ description?: string | undefined;
2972
+ version?: bigint | undefined;
2973
+ }>>;
2974
+ proposed: ZodObject<{
2975
+ version: z.ZodOptional<z.ZodBigInt>;
2976
+ }, "strict", ZodTypeAny, {
2977
+ version?: bigint | undefined;
2978
+ }, {
2979
+ version?: bigint | undefined;
2980
+ }>;
2981
+ }, "strict", ZodTypeAny, {
2982
+ proposed: {
2983
+ version?: bigint | undefined;
2984
+ };
2985
+ current?: {
2986
+ owner: Uint8Array<ArrayBufferLike>;
2987
+ data: Uint8Array<ArrayBufferLike>;
2988
+ created_at: bigint;
2989
+ updated_at: bigint;
2990
+ description?: string | undefined;
2991
+ version?: bigint | undefined;
2992
+ } | undefined;
2993
+ }, {
2994
+ proposed: {
2995
+ version?: bigint | undefined;
2996
+ };
2997
+ current?: {
2998
+ owner: Uint8Array<ArrayBufferLike>;
2999
+ data: Uint8Array<ArrayBufferLike>;
3000
+ created_at: bigint;
3001
+ updated_at: bigint;
3002
+ description?: string | undefined;
3003
+ version?: bigint | undefined;
3004
+ } | undefined;
3005
+ }>;
3006
+ }, "strict", ZodTypeAny, baseObjectOutputType<{
3007
+ collection: z.ZodString;
3008
+ key: z.ZodString;
3009
+ data: ZodObject<{
3010
+ current: z.ZodOptional<ZodObject<{
3011
+ owner: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
3012
+ data: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
3013
+ description: z.ZodOptional<z.ZodString>;
3014
+ created_at: z.ZodBigInt;
3015
+ updated_at: z.ZodBigInt;
3016
+ version: z.ZodOptional<z.ZodBigInt>;
3017
+ }, "strict", ZodTypeAny, {
3018
+ owner: Uint8Array<ArrayBufferLike>;
3019
+ data: Uint8Array<ArrayBufferLike>;
3020
+ created_at: bigint;
3021
+ updated_at: bigint;
3022
+ description?: string | undefined;
3023
+ version?: bigint | undefined;
3024
+ }, {
3025
+ owner: Uint8Array<ArrayBufferLike>;
3026
+ data: Uint8Array<ArrayBufferLike>;
3027
+ created_at: bigint;
3028
+ updated_at: bigint;
3029
+ description?: string | undefined;
3030
+ version?: bigint | undefined;
3031
+ }>>;
3032
+ proposed: ZodObject<{
3033
+ version: z.ZodOptional<z.ZodBigInt>;
3034
+ }, "strict", ZodTypeAny, {
3035
+ version?: bigint | undefined;
3036
+ }, {
3037
+ version?: bigint | undefined;
3038
+ }>;
3039
+ }, "strict", ZodTypeAny, {
3040
+ proposed: {
3041
+ version?: bigint | undefined;
3042
+ };
3043
+ current?: {
3044
+ owner: Uint8Array<ArrayBufferLike>;
3045
+ data: Uint8Array<ArrayBufferLike>;
3046
+ created_at: bigint;
3047
+ updated_at: bigint;
3048
+ description?: string | undefined;
3049
+ version?: bigint | undefined;
3050
+ } | undefined;
3051
+ }, {
3052
+ proposed: {
3053
+ version?: bigint | undefined;
3054
+ };
3055
+ current?: {
3056
+ owner: Uint8Array<ArrayBufferLike>;
3057
+ data: Uint8Array<ArrayBufferLike>;
3058
+ created_at: bigint;
3059
+ updated_at: bigint;
3060
+ description?: string | undefined;
3061
+ version?: bigint | undefined;
3062
+ } | undefined;
3063
+ }>;
3064
+ }>, baseObjectInputType<{
3065
+ collection: z.ZodString;
3066
+ key: z.ZodString;
3067
+ data: ZodObject<{
3068
+ current: z.ZodOptional<ZodObject<{
3069
+ owner: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
3070
+ data: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
3071
+ description: z.ZodOptional<z.ZodString>;
3072
+ created_at: z.ZodBigInt;
3073
+ updated_at: z.ZodBigInt;
3074
+ version: z.ZodOptional<z.ZodBigInt>;
3075
+ }, "strict", ZodTypeAny, {
3076
+ owner: Uint8Array<ArrayBufferLike>;
3077
+ data: Uint8Array<ArrayBufferLike>;
3078
+ created_at: bigint;
3079
+ updated_at: bigint;
3080
+ description?: string | undefined;
3081
+ version?: bigint | undefined;
3082
+ }, {
3083
+ owner: Uint8Array<ArrayBufferLike>;
3084
+ data: Uint8Array<ArrayBufferLike>;
3085
+ created_at: bigint;
3086
+ updated_at: bigint;
3087
+ description?: string | undefined;
3088
+ version?: bigint | undefined;
3089
+ }>>;
3090
+ proposed: ZodObject<{
3091
+ version: z.ZodOptional<z.ZodBigInt>;
3092
+ }, "strict", ZodTypeAny, {
3093
+ version?: bigint | undefined;
3094
+ }, {
3095
+ version?: bigint | undefined;
3096
+ }>;
3097
+ }, "strict", ZodTypeAny, {
3098
+ proposed: {
3099
+ version?: bigint | undefined;
3100
+ };
3101
+ current?: {
3102
+ owner: Uint8Array<ArrayBufferLike>;
3103
+ data: Uint8Array<ArrayBufferLike>;
3104
+ created_at: bigint;
3105
+ updated_at: bigint;
3106
+ description?: string | undefined;
3107
+ version?: bigint | undefined;
3108
+ } | undefined;
3109
+ }, {
3110
+ proposed: {
3111
+ version?: bigint | undefined;
3112
+ };
3113
+ current?: {
3114
+ owner: Uint8Array<ArrayBufferLike>;
3115
+ data: Uint8Array<ArrayBufferLike>;
3116
+ created_at: bigint;
3117
+ updated_at: bigint;
3118
+ description?: string | undefined;
3119
+ version?: bigint | undefined;
3120
+ } | undefined;
3121
+ }>;
3122
+ }>>;
3123
+ }, "strict", ZodTypeAny, baseObjectOutputType<{
3124
+ caller: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
3125
+ data: ZodObject<{
3126
+ collection: z.ZodString;
3127
+ key: z.ZodString;
3128
+ data: ZodObject<{
3129
+ current: z.ZodOptional<ZodObject<{
3130
+ owner: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
3131
+ data: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
3132
+ description: z.ZodOptional<z.ZodString>;
3133
+ created_at: z.ZodBigInt;
3134
+ updated_at: z.ZodBigInt;
3135
+ version: z.ZodOptional<z.ZodBigInt>;
3136
+ }, "strict", ZodTypeAny, {
3137
+ owner: Uint8Array<ArrayBufferLike>;
3138
+ data: Uint8Array<ArrayBufferLike>;
3139
+ created_at: bigint;
3140
+ updated_at: bigint;
3141
+ description?: string | undefined;
3142
+ version?: bigint | undefined;
3143
+ }, {
3144
+ owner: Uint8Array<ArrayBufferLike>;
3145
+ data: Uint8Array<ArrayBufferLike>;
3146
+ created_at: bigint;
3147
+ updated_at: bigint;
3148
+ description?: string | undefined;
3149
+ version?: bigint | undefined;
3150
+ }>>;
3151
+ proposed: ZodObject<{
3152
+ version: z.ZodOptional<z.ZodBigInt>;
3153
+ }, "strict", ZodTypeAny, {
3154
+ version?: bigint | undefined;
3155
+ }, {
3156
+ version?: bigint | undefined;
3157
+ }>;
3158
+ }, "strict", ZodTypeAny, {
3159
+ proposed: {
3160
+ version?: bigint | undefined;
3161
+ };
3162
+ current?: {
3163
+ owner: Uint8Array<ArrayBufferLike>;
3164
+ data: Uint8Array<ArrayBufferLike>;
3165
+ created_at: bigint;
3166
+ updated_at: bigint;
3167
+ description?: string | undefined;
3168
+ version?: bigint | undefined;
3169
+ } | undefined;
3170
+ }, {
3171
+ proposed: {
3172
+ version?: bigint | undefined;
3173
+ };
3174
+ current?: {
3175
+ owner: Uint8Array<ArrayBufferLike>;
3176
+ data: Uint8Array<ArrayBufferLike>;
3177
+ created_at: bigint;
3178
+ updated_at: bigint;
3179
+ description?: string | undefined;
3180
+ version?: bigint | undefined;
3181
+ } | undefined;
3182
+ }>;
3183
+ }, "strict", ZodTypeAny, baseObjectOutputType<{
3184
+ collection: z.ZodString;
3185
+ key: z.ZodString;
3186
+ data: ZodObject<{
3187
+ current: z.ZodOptional<ZodObject<{
3188
+ owner: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
3189
+ data: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
3190
+ description: z.ZodOptional<z.ZodString>;
3191
+ created_at: z.ZodBigInt;
3192
+ updated_at: z.ZodBigInt;
3193
+ version: z.ZodOptional<z.ZodBigInt>;
3194
+ }, "strict", ZodTypeAny, {
3195
+ owner: Uint8Array<ArrayBufferLike>;
3196
+ data: Uint8Array<ArrayBufferLike>;
3197
+ created_at: bigint;
3198
+ updated_at: bigint;
3199
+ description?: string | undefined;
3200
+ version?: bigint | undefined;
3201
+ }, {
3202
+ owner: Uint8Array<ArrayBufferLike>;
3203
+ data: Uint8Array<ArrayBufferLike>;
3204
+ created_at: bigint;
3205
+ updated_at: bigint;
3206
+ description?: string | undefined;
3207
+ version?: bigint | undefined;
3208
+ }>>;
3209
+ proposed: ZodObject<{
3210
+ version: z.ZodOptional<z.ZodBigInt>;
3211
+ }, "strict", ZodTypeAny, {
3212
+ version?: bigint | undefined;
3213
+ }, {
3214
+ version?: bigint | undefined;
3215
+ }>;
3216
+ }, "strict", ZodTypeAny, {
3217
+ proposed: {
3218
+ version?: bigint | undefined;
3219
+ };
3220
+ current?: {
3221
+ owner: Uint8Array<ArrayBufferLike>;
3222
+ data: Uint8Array<ArrayBufferLike>;
3223
+ created_at: bigint;
3224
+ updated_at: bigint;
3225
+ description?: string | undefined;
3226
+ version?: bigint | undefined;
3227
+ } | undefined;
3228
+ }, {
3229
+ proposed: {
3230
+ version?: bigint | undefined;
3231
+ };
1518
3232
  current?: {
1519
3233
  owner: Uint8Array<ArrayBufferLike>;
1520
3234
  data: Uint8Array<ArrayBufferLike>;
@@ -1525,17 +3239,8 @@ export declare const AssertSetDocContextSchema: ZodObject<{
1525
3239
  } | undefined;
1526
3240
  }>;
1527
3241
  }>, baseObjectInputType<{
1528
- /**
1529
- * The name of the collection where the document is stored.
1530
- */
1531
3242
  collection: z.ZodString;
1532
- /**
1533
- * The unique key identifying the document within the collection.
1534
- */
1535
3243
  key: z.ZodString;
1536
- /**
1537
- * The data associated with the document operation.
1538
- */
1539
3244
  data: ZodObject<{
1540
3245
  current: z.ZodOptional<ZodObject<{
1541
3246
  owner: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
@@ -1560,23 +3265,134 @@ export declare const AssertSetDocContextSchema: ZodObject<{
1560
3265
  version?: bigint | undefined;
1561
3266
  }>>;
1562
3267
  proposed: ZodObject<{
3268
+ version: z.ZodOptional<z.ZodBigInt>;
3269
+ }, "strict", ZodTypeAny, {
3270
+ version?: bigint | undefined;
3271
+ }, {
3272
+ version?: bigint | undefined;
3273
+ }>;
3274
+ }, "strict", ZodTypeAny, {
3275
+ proposed: {
3276
+ version?: bigint | undefined;
3277
+ };
3278
+ current?: {
3279
+ owner: Uint8Array<ArrayBufferLike>;
3280
+ data: Uint8Array<ArrayBufferLike>;
3281
+ created_at: bigint;
3282
+ updated_at: bigint;
3283
+ description?: string | undefined;
3284
+ version?: bigint | undefined;
3285
+ } | undefined;
3286
+ }, {
3287
+ proposed: {
3288
+ version?: bigint | undefined;
3289
+ };
3290
+ current?: {
3291
+ owner: Uint8Array<ArrayBufferLike>;
3292
+ data: Uint8Array<ArrayBufferLike>;
3293
+ created_at: bigint;
3294
+ updated_at: bigint;
3295
+ description?: string | undefined;
3296
+ version?: bigint | undefined;
3297
+ } | undefined;
3298
+ }>;
3299
+ }>>;
3300
+ }>, baseObjectInputType<{
3301
+ caller: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
3302
+ data: ZodObject<{
3303
+ collection: z.ZodString;
3304
+ key: z.ZodString;
3305
+ data: ZodObject<{
3306
+ current: z.ZodOptional<ZodObject<{
3307
+ owner: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
1563
3308
  data: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
1564
3309
  description: z.ZodOptional<z.ZodString>;
3310
+ created_at: z.ZodBigInt;
3311
+ updated_at: z.ZodBigInt;
1565
3312
  version: z.ZodOptional<z.ZodBigInt>;
1566
3313
  }, "strict", ZodTypeAny, {
3314
+ owner: Uint8Array<ArrayBufferLike>;
1567
3315
  data: Uint8Array<ArrayBufferLike>;
3316
+ created_at: bigint;
3317
+ updated_at: bigint;
1568
3318
  description?: string | undefined;
1569
3319
  version?: bigint | undefined;
1570
3320
  }, {
3321
+ owner: Uint8Array<ArrayBufferLike>;
1571
3322
  data: Uint8Array<ArrayBufferLike>;
3323
+ created_at: bigint;
3324
+ updated_at: bigint;
1572
3325
  description?: string | undefined;
1573
3326
  version?: bigint | undefined;
3327
+ }>>;
3328
+ proposed: ZodObject<{
3329
+ version: z.ZodOptional<z.ZodBigInt>;
3330
+ }, "strict", ZodTypeAny, {
3331
+ version?: bigint | undefined;
3332
+ }, {
3333
+ version?: bigint | undefined;
1574
3334
  }>;
1575
3335
  }, "strict", ZodTypeAny, {
1576
3336
  proposed: {
3337
+ version?: bigint | undefined;
3338
+ };
3339
+ current?: {
3340
+ owner: Uint8Array<ArrayBufferLike>;
3341
+ data: Uint8Array<ArrayBufferLike>;
3342
+ created_at: bigint;
3343
+ updated_at: bigint;
3344
+ description?: string | undefined;
3345
+ version?: bigint | undefined;
3346
+ } | undefined;
3347
+ }, {
3348
+ proposed: {
3349
+ version?: bigint | undefined;
3350
+ };
3351
+ current?: {
3352
+ owner: Uint8Array<ArrayBufferLike>;
3353
+ data: Uint8Array<ArrayBufferLike>;
3354
+ created_at: bigint;
3355
+ updated_at: bigint;
3356
+ description?: string | undefined;
3357
+ version?: bigint | undefined;
3358
+ } | undefined;
3359
+ }>;
3360
+ }, "strict", ZodTypeAny, baseObjectOutputType<{
3361
+ collection: z.ZodString;
3362
+ key: z.ZodString;
3363
+ data: ZodObject<{
3364
+ current: z.ZodOptional<ZodObject<{
3365
+ owner: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
3366
+ data: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
3367
+ description: z.ZodOptional<z.ZodString>;
3368
+ created_at: z.ZodBigInt;
3369
+ updated_at: z.ZodBigInt;
3370
+ version: z.ZodOptional<z.ZodBigInt>;
3371
+ }, "strict", ZodTypeAny, {
3372
+ owner: Uint8Array<ArrayBufferLike>;
3373
+ data: Uint8Array<ArrayBufferLike>;
3374
+ created_at: bigint;
3375
+ updated_at: bigint;
3376
+ description?: string | undefined;
3377
+ version?: bigint | undefined;
3378
+ }, {
3379
+ owner: Uint8Array<ArrayBufferLike>;
1577
3380
  data: Uint8Array<ArrayBufferLike>;
3381
+ created_at: bigint;
3382
+ updated_at: bigint;
1578
3383
  description?: string | undefined;
1579
3384
  version?: bigint | undefined;
3385
+ }>>;
3386
+ proposed: ZodObject<{
3387
+ version: z.ZodOptional<z.ZodBigInt>;
3388
+ }, "strict", ZodTypeAny, {
3389
+ version?: bigint | undefined;
3390
+ }, {
3391
+ version?: bigint | undefined;
3392
+ }>;
3393
+ }, "strict", ZodTypeAny, {
3394
+ proposed: {
3395
+ version?: bigint | undefined;
1580
3396
  };
1581
3397
  current?: {
1582
3398
  owner: Uint8Array<ArrayBufferLike>;
@@ -1588,9 +3404,65 @@ export declare const AssertSetDocContextSchema: ZodObject<{
1588
3404
  } | undefined;
1589
3405
  }, {
1590
3406
  proposed: {
3407
+ version?: bigint | undefined;
3408
+ };
3409
+ current?: {
3410
+ owner: Uint8Array<ArrayBufferLike>;
3411
+ data: Uint8Array<ArrayBufferLike>;
3412
+ created_at: bigint;
3413
+ updated_at: bigint;
3414
+ description?: string | undefined;
3415
+ version?: bigint | undefined;
3416
+ } | undefined;
3417
+ }>;
3418
+ }>, baseObjectInputType<{
3419
+ collection: z.ZodString;
3420
+ key: z.ZodString;
3421
+ data: ZodObject<{
3422
+ current: z.ZodOptional<ZodObject<{
3423
+ owner: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
3424
+ data: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
3425
+ description: z.ZodOptional<z.ZodString>;
3426
+ created_at: z.ZodBigInt;
3427
+ updated_at: z.ZodBigInt;
3428
+ version: z.ZodOptional<z.ZodBigInt>;
3429
+ }, "strict", ZodTypeAny, {
3430
+ owner: Uint8Array<ArrayBufferLike>;
3431
+ data: Uint8Array<ArrayBufferLike>;
3432
+ created_at: bigint;
3433
+ updated_at: bigint;
3434
+ description?: string | undefined;
3435
+ version?: bigint | undefined;
3436
+ }, {
3437
+ owner: Uint8Array<ArrayBufferLike>;
3438
+ data: Uint8Array<ArrayBufferLike>;
3439
+ created_at: bigint;
3440
+ updated_at: bigint;
3441
+ description?: string | undefined;
3442
+ version?: bigint | undefined;
3443
+ }>>;
3444
+ proposed: ZodObject<{
3445
+ version: z.ZodOptional<z.ZodBigInt>;
3446
+ }, "strict", ZodTypeAny, {
3447
+ version?: bigint | undefined;
3448
+ }, {
3449
+ version?: bigint | undefined;
3450
+ }>;
3451
+ }, "strict", ZodTypeAny, {
3452
+ proposed: {
3453
+ version?: bigint | undefined;
3454
+ };
3455
+ current?: {
3456
+ owner: Uint8Array<ArrayBufferLike>;
1591
3457
  data: Uint8Array<ArrayBufferLike>;
3458
+ created_at: bigint;
3459
+ updated_at: bigint;
1592
3460
  description?: string | undefined;
1593
3461
  version?: bigint | undefined;
3462
+ } | undefined;
3463
+ }, {
3464
+ proposed: {
3465
+ version?: bigint | undefined;
1594
3466
  };
1595
3467
  current?: {
1596
3468
  owner: Uint8Array<ArrayBufferLike>;
@@ -1604,9 +3476,9 @@ export declare const AssertSetDocContextSchema: ZodObject<{
1604
3476
  }>>;
1605
3477
  }>>;
1606
3478
  /**
1607
- * The context provided to the `assertSetDoc` hook.
3479
+ * The context provided to the `assertDeleteDoc` hook.
1608
3480
  *
1609
3481
  * This context contains information about the document being validated before
1610
- * it is created or updated. If validation fails, the developer should throw an error.
3482
+ * it is deleted. If validation fails, the developer should throw an error.
1611
3483
  */
1612
- export type AssertSetDocContext = z.infer<typeof AssertSetDocContextSchema>;
3484
+ export type AssertDeleteDocContext = HookContext<DocContext<DocAssertDelete>>;