@junobuild/functions 0.0.11 → 0.0.12

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,8 +1,9 @@
1
+ import type { baseObjectInputType, baseObjectOutputType, ZodObject, ZodTypeAny } from 'zod';
1
2
  import * as z from 'zod';
2
3
  /**
3
4
  * @see DocContext
4
5
  */
5
- export declare const DocContextSchema: <T extends z.ZodTypeAny>(dataSchema: T) => z.ZodObject<{
6
+ export declare const DocContextSchema: <T extends z.ZodTypeAny>(dataSchema: T) => ZodObject<{
6
7
  /**
7
8
  * The name of the collection where the document is stored.
8
9
  */
@@ -15,7 +16,7 @@ export declare const DocContextSchema: <T extends z.ZodTypeAny>(dataSchema: T) =
15
16
  * The data associated with the document operation.
16
17
  */
17
18
  data: T;
18
- }, "strict", z.ZodTypeAny, z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
19
+ }, "strict", ZodTypeAny, baseObjectOutputType<{
19
20
  /**
20
21
  * The name of the collection where the document is stored.
21
22
  */
@@ -28,7 +29,7 @@ export declare const DocContextSchema: <T extends z.ZodTypeAny>(dataSchema: T) =
28
29
  * The data associated with the document operation.
29
30
  */
30
31
  data: T;
31
- }>, any> extends infer T_1 ? { [k in keyof T_1]: z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
32
+ }>, baseObjectInputType<{
32
33
  /**
33
34
  * The name of the collection where the document is stored.
34
35
  */
@@ -41,33 +42,7 @@ export declare const DocContextSchema: <T extends z.ZodTypeAny>(dataSchema: T) =
41
42
  * The data associated with the document operation.
42
43
  */
43
44
  data: T;
44
- }>, any>[k]; } : never, z.baseObjectInputType<{
45
- /**
46
- * The name of the collection where the document is stored.
47
- */
48
- collection: z.ZodString;
49
- /**
50
- * The unique key identifying the document within the collection.
51
- */
52
- key: z.ZodString;
53
- /**
54
- * The data associated with the document operation.
55
- */
56
- data: T;
57
- }> extends infer T_2 ? { [k_1 in keyof T_2]: z.baseObjectInputType<{
58
- /**
59
- * The name of the collection where the document is stored.
60
- */
61
- collection: z.ZodString;
62
- /**
63
- * The unique key identifying the document within the collection.
64
- */
65
- key: z.ZodString;
66
- /**
67
- * The data associated with the document operation.
68
- */
69
- data: T;
70
- }>[k_1]; } : never>;
45
+ }>>;
71
46
  /**
72
47
  * Represents the context of a document operation within a collection.
73
48
  *
@@ -77,9 +52,9 @@ export type DocContext<T extends z.ZodTypeAny> = z.infer<ReturnType<typeof DocCo
77
52
  /**
78
53
  * @see OnSetDocContext
79
54
  */
80
- export declare const OnSetDocContextSchema: z.ZodObject<{
55
+ export declare const OnSetDocContextSchema: ZodObject<{
81
56
  caller: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
82
- data: z.ZodObject<{
57
+ data: ZodObject<{
83
58
  /**
84
59
  * The name of the collection where the document is stored.
85
60
  */
@@ -91,15 +66,15 @@ export declare const OnSetDocContextSchema: z.ZodObject<{
91
66
  /**
92
67
  * The data associated with the document operation.
93
68
  */
94
- data: z.ZodObject<{
95
- before: z.ZodOptional<z.ZodObject<{
69
+ data: ZodObject<{
70
+ before: z.ZodOptional<ZodObject<{
96
71
  owner: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
97
72
  data: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
98
73
  description: z.ZodOptional<z.ZodString>;
99
74
  created_at: z.ZodBigInt;
100
75
  updated_at: z.ZodBigInt;
101
76
  version: z.ZodOptional<z.ZodBigInt>;
102
- }, "strict", z.ZodTypeAny, {
77
+ }, "strict", ZodTypeAny, {
103
78
  owner: Uint8Array<ArrayBufferLike>;
104
79
  data: Uint8Array<ArrayBufferLike>;
105
80
  created_at: bigint;
@@ -114,14 +89,14 @@ export declare const OnSetDocContextSchema: z.ZodObject<{
114
89
  description?: string | undefined;
115
90
  version?: bigint | undefined;
116
91
  }>>;
117
- after: z.ZodObject<{
92
+ after: ZodObject<{
118
93
  owner: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
119
94
  data: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
120
95
  description: z.ZodOptional<z.ZodString>;
121
96
  created_at: z.ZodBigInt;
122
97
  updated_at: z.ZodBigInt;
123
98
  version: z.ZodOptional<z.ZodBigInt>;
124
- }, "strict", z.ZodTypeAny, {
99
+ }, "strict", ZodTypeAny, {
125
100
  owner: Uint8Array<ArrayBufferLike>;
126
101
  data: Uint8Array<ArrayBufferLike>;
127
102
  created_at: bigint;
@@ -136,7 +111,7 @@ export declare const OnSetDocContextSchema: z.ZodObject<{
136
111
  description?: string | undefined;
137
112
  version?: bigint | undefined;
138
113
  }>;
139
- }, "strict", z.ZodTypeAny, {
114
+ }, "strict", ZodTypeAny, {
140
115
  after: {
141
116
  owner: Uint8Array<ArrayBufferLike>;
142
117
  data: Uint8Array<ArrayBufferLike>;
@@ -171,8 +146,64 @@ export declare const OnSetDocContextSchema: z.ZodObject<{
171
146
  version?: bigint | undefined;
172
147
  } | undefined;
173
148
  }>;
174
- }, "strict", z.ZodTypeAny, {
175
- data: {
149
+ }, "strict", ZodTypeAny, baseObjectOutputType<{
150
+ /**
151
+ * The name of the collection where the document is stored.
152
+ */
153
+ collection: z.ZodString;
154
+ /**
155
+ * The unique key identifying the document within the collection.
156
+ */
157
+ key: z.ZodString;
158
+ /**
159
+ * The data associated with the document operation.
160
+ */
161
+ data: ZodObject<{
162
+ before: z.ZodOptional<ZodObject<{
163
+ owner: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
164
+ data: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
165
+ description: z.ZodOptional<z.ZodString>;
166
+ created_at: z.ZodBigInt;
167
+ updated_at: z.ZodBigInt;
168
+ version: z.ZodOptional<z.ZodBigInt>;
169
+ }, "strict", ZodTypeAny, {
170
+ owner: Uint8Array<ArrayBufferLike>;
171
+ data: Uint8Array<ArrayBufferLike>;
172
+ created_at: bigint;
173
+ updated_at: bigint;
174
+ description?: string | undefined;
175
+ version?: bigint | undefined;
176
+ }, {
177
+ owner: Uint8Array<ArrayBufferLike>;
178
+ data: Uint8Array<ArrayBufferLike>;
179
+ created_at: bigint;
180
+ updated_at: bigint;
181
+ description?: string | undefined;
182
+ version?: bigint | undefined;
183
+ }>>;
184
+ after: ZodObject<{
185
+ owner: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
186
+ data: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
187
+ description: z.ZodOptional<z.ZodString>;
188
+ created_at: z.ZodBigInt;
189
+ updated_at: z.ZodBigInt;
190
+ version: z.ZodOptional<z.ZodBigInt>;
191
+ }, "strict", ZodTypeAny, {
192
+ owner: Uint8Array<ArrayBufferLike>;
193
+ data: Uint8Array<ArrayBufferLike>;
194
+ created_at: bigint;
195
+ updated_at: bigint;
196
+ description?: string | undefined;
197
+ version?: bigint | undefined;
198
+ }, {
199
+ owner: Uint8Array<ArrayBufferLike>;
200
+ data: Uint8Array<ArrayBufferLike>;
201
+ created_at: bigint;
202
+ updated_at: bigint;
203
+ description?: string | undefined;
204
+ version?: bigint | undefined;
205
+ }>;
206
+ }, "strict", ZodTypeAny, {
176
207
  after: {
177
208
  owner: Uint8Array<ArrayBufferLike>;
178
209
  data: Uint8Array<ArrayBufferLike>;
@@ -189,11 +220,7 @@ export declare const OnSetDocContextSchema: z.ZodObject<{
189
220
  description?: string | undefined;
190
221
  version?: bigint | undefined;
191
222
  } | undefined;
192
- };
193
- key: string;
194
- collection: string;
195
- }, {
196
- data: {
223
+ }, {
197
224
  after: {
198
225
  owner: Uint8Array<ArrayBufferLike>;
199
226
  data: Uint8Array<ArrayBufferLike>;
@@ -210,13 +237,65 @@ export declare const OnSetDocContextSchema: z.ZodObject<{
210
237
  description?: string | undefined;
211
238
  version?: bigint | undefined;
212
239
  } | undefined;
213
- };
214
- key: string;
215
- collection: string;
216
- }>;
217
- }, "strict", z.ZodTypeAny, {
218
- data: {
219
- data: {
240
+ }>;
241
+ }>, baseObjectInputType<{
242
+ /**
243
+ * The name of the collection where the document is stored.
244
+ */
245
+ collection: z.ZodString;
246
+ /**
247
+ * The unique key identifying the document within the collection.
248
+ */
249
+ key: z.ZodString;
250
+ /**
251
+ * The data associated with the document operation.
252
+ */
253
+ data: ZodObject<{
254
+ before: z.ZodOptional<ZodObject<{
255
+ owner: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
256
+ data: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
257
+ description: z.ZodOptional<z.ZodString>;
258
+ created_at: z.ZodBigInt;
259
+ updated_at: z.ZodBigInt;
260
+ version: z.ZodOptional<z.ZodBigInt>;
261
+ }, "strict", ZodTypeAny, {
262
+ owner: Uint8Array<ArrayBufferLike>;
263
+ data: Uint8Array<ArrayBufferLike>;
264
+ created_at: bigint;
265
+ updated_at: bigint;
266
+ description?: string | undefined;
267
+ version?: bigint | undefined;
268
+ }, {
269
+ owner: Uint8Array<ArrayBufferLike>;
270
+ data: Uint8Array<ArrayBufferLike>;
271
+ created_at: bigint;
272
+ updated_at: bigint;
273
+ description?: string | undefined;
274
+ version?: bigint | undefined;
275
+ }>>;
276
+ after: ZodObject<{
277
+ owner: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
278
+ data: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
279
+ description: z.ZodOptional<z.ZodString>;
280
+ created_at: z.ZodBigInt;
281
+ updated_at: z.ZodBigInt;
282
+ version: z.ZodOptional<z.ZodBigInt>;
283
+ }, "strict", ZodTypeAny, {
284
+ owner: Uint8Array<ArrayBufferLike>;
285
+ data: Uint8Array<ArrayBufferLike>;
286
+ created_at: bigint;
287
+ updated_at: bigint;
288
+ description?: string | undefined;
289
+ version?: bigint | undefined;
290
+ }, {
291
+ owner: Uint8Array<ArrayBufferLike>;
292
+ data: Uint8Array<ArrayBufferLike>;
293
+ created_at: bigint;
294
+ updated_at: bigint;
295
+ description?: string | undefined;
296
+ version?: bigint | undefined;
297
+ }>;
298
+ }, "strict", ZodTypeAny, {
220
299
  after: {
221
300
  owner: Uint8Array<ArrayBufferLike>;
222
301
  data: Uint8Array<ArrayBufferLike>;
@@ -233,14 +312,7 @@ export declare const OnSetDocContextSchema: z.ZodObject<{
233
312
  description?: string | undefined;
234
313
  version?: bigint | undefined;
235
314
  } | undefined;
236
- };
237
- key: string;
238
- collection: string;
239
- };
240
- caller: Uint8Array<ArrayBufferLike>;
241
- }, {
242
- data: {
243
- data: {
315
+ }, {
244
316
  after: {
245
317
  owner: Uint8Array<ArrayBufferLike>;
246
318
  data: Uint8Array<ArrayBufferLike>;
@@ -257,25 +329,11 @@ export declare const OnSetDocContextSchema: z.ZodObject<{
257
329
  description?: string | undefined;
258
330
  version?: bigint | undefined;
259
331
  } | undefined;
260
- };
261
- key: string;
262
- collection: string;
263
- };
264
- caller: Uint8Array<ArrayBufferLike>;
265
- }>;
266
- /**
267
- * The context provided to the `onSetDoc` hook.
268
- *
269
- * This context contains information about the document being created or updated,
270
- * along with details about the user who triggered the operation.
271
- */
272
- export type OnSetDocContext = z.infer<typeof OnSetDocContextSchema>;
273
- /**
274
- * @see AssertSetDocContext
275
- */
276
- export declare const AssertSetDocContextSchema: z.ZodObject<{
332
+ }>;
333
+ }>>;
334
+ }, "strict", ZodTypeAny, baseObjectOutputType<{
277
335
  caller: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
278
- data: z.ZodObject<{
336
+ data: ZodObject<{
279
337
  /**
280
338
  * The name of the collection where the document is stored.
281
339
  */
@@ -287,15 +345,15 @@ export declare const AssertSetDocContextSchema: z.ZodObject<{
287
345
  /**
288
346
  * The data associated with the document operation.
289
347
  */
290
- data: z.ZodObject<{
291
- current: z.ZodOptional<z.ZodObject<{
348
+ data: ZodObject<{
349
+ before: z.ZodOptional<ZodObject<{
292
350
  owner: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
293
351
  data: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
294
352
  description: z.ZodOptional<z.ZodString>;
295
353
  created_at: z.ZodBigInt;
296
354
  updated_at: z.ZodBigInt;
297
355
  version: z.ZodOptional<z.ZodBigInt>;
298
- }, "strict", z.ZodTypeAny, {
356
+ }, "strict", ZodTypeAny, {
299
357
  owner: Uint8Array<ArrayBufferLike>;
300
358
  data: Uint8Array<ArrayBufferLike>;
301
359
  created_at: bigint;
@@ -310,26 +368,38 @@ export declare const AssertSetDocContextSchema: z.ZodObject<{
310
368
  description?: string | undefined;
311
369
  version?: bigint | undefined;
312
370
  }>>;
313
- proposed: z.ZodObject<{
371
+ after: ZodObject<{
372
+ owner: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
314
373
  data: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
315
374
  description: z.ZodOptional<z.ZodString>;
375
+ created_at: z.ZodBigInt;
376
+ updated_at: z.ZodBigInt;
316
377
  version: z.ZodOptional<z.ZodBigInt>;
317
- }, "strict", z.ZodTypeAny, {
378
+ }, "strict", ZodTypeAny, {
379
+ owner: Uint8Array<ArrayBufferLike>;
318
380
  data: Uint8Array<ArrayBufferLike>;
381
+ created_at: bigint;
382
+ updated_at: bigint;
319
383
  description?: string | undefined;
320
384
  version?: bigint | undefined;
321
385
  }, {
386
+ owner: Uint8Array<ArrayBufferLike>;
322
387
  data: Uint8Array<ArrayBufferLike>;
388
+ created_at: bigint;
389
+ updated_at: bigint;
323
390
  description?: string | undefined;
324
391
  version?: bigint | undefined;
325
392
  }>;
326
- }, "strict", z.ZodTypeAny, {
327
- proposed: {
393
+ }, "strict", ZodTypeAny, {
394
+ after: {
395
+ owner: Uint8Array<ArrayBufferLike>;
328
396
  data: Uint8Array<ArrayBufferLike>;
397
+ created_at: bigint;
398
+ updated_at: bigint;
329
399
  description?: string | undefined;
330
400
  version?: bigint | undefined;
331
401
  };
332
- current?: {
402
+ before?: {
333
403
  owner: Uint8Array<ArrayBufferLike>;
334
404
  data: Uint8Array<ArrayBufferLike>;
335
405
  created_at: bigint;
@@ -338,12 +408,15 @@ export declare const AssertSetDocContextSchema: z.ZodObject<{
338
408
  version?: bigint | undefined;
339
409
  } | undefined;
340
410
  }, {
341
- proposed: {
411
+ after: {
412
+ owner: Uint8Array<ArrayBufferLike>;
342
413
  data: Uint8Array<ArrayBufferLike>;
414
+ created_at: bigint;
415
+ updated_at: bigint;
343
416
  description?: string | undefined;
344
417
  version?: bigint | undefined;
345
418
  };
346
- current?: {
419
+ before?: {
347
420
  owner: Uint8Array<ArrayBufferLike>;
348
421
  data: Uint8Array<ArrayBufferLike>;
349
422
  created_at: bigint;
@@ -352,52 +425,73 @@ export declare const AssertSetDocContextSchema: z.ZodObject<{
352
425
  version?: bigint | undefined;
353
426
  } | undefined;
354
427
  }>;
355
- }, "strict", z.ZodTypeAny, {
356
- data: {
357
- proposed: {
428
+ }, "strict", ZodTypeAny, baseObjectOutputType<{
429
+ /**
430
+ * The name of the collection where the document is stored.
431
+ */
432
+ collection: z.ZodString;
433
+ /**
434
+ * The unique key identifying the document within the collection.
435
+ */
436
+ key: z.ZodString;
437
+ /**
438
+ * The data associated with the document operation.
439
+ */
440
+ data: ZodObject<{
441
+ before: z.ZodOptional<ZodObject<{
442
+ owner: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
443
+ data: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
444
+ description: z.ZodOptional<z.ZodString>;
445
+ created_at: z.ZodBigInt;
446
+ updated_at: z.ZodBigInt;
447
+ version: z.ZodOptional<z.ZodBigInt>;
448
+ }, "strict", ZodTypeAny, {
449
+ owner: Uint8Array<ArrayBufferLike>;
358
450
  data: Uint8Array<ArrayBufferLike>;
451
+ created_at: bigint;
452
+ updated_at: bigint;
359
453
  description?: string | undefined;
360
454
  version?: bigint | undefined;
361
- };
362
- current?: {
455
+ }, {
363
456
  owner: Uint8Array<ArrayBufferLike>;
364
457
  data: Uint8Array<ArrayBufferLike>;
365
458
  created_at: bigint;
366
459
  updated_at: bigint;
367
460
  description?: string | undefined;
368
461
  version?: bigint | undefined;
369
- } | undefined;
370
- };
371
- key: string;
372
- collection: string;
373
- }, {
374
- data: {
375
- proposed: {
462
+ }>>;
463
+ after: ZodObject<{
464
+ owner: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
465
+ data: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
466
+ description: z.ZodOptional<z.ZodString>;
467
+ created_at: z.ZodBigInt;
468
+ updated_at: z.ZodBigInt;
469
+ version: z.ZodOptional<z.ZodBigInt>;
470
+ }, "strict", ZodTypeAny, {
471
+ owner: Uint8Array<ArrayBufferLike>;
376
472
  data: Uint8Array<ArrayBufferLike>;
473
+ created_at: bigint;
474
+ updated_at: bigint;
377
475
  description?: string | undefined;
378
476
  version?: bigint | undefined;
379
- };
380
- current?: {
477
+ }, {
381
478
  owner: Uint8Array<ArrayBufferLike>;
382
479
  data: Uint8Array<ArrayBufferLike>;
383
480
  created_at: bigint;
384
481
  updated_at: bigint;
385
482
  description?: string | undefined;
386
483
  version?: bigint | undefined;
387
- } | undefined;
388
- };
389
- key: string;
390
- collection: string;
391
- }>;
392
- }, "strict", z.ZodTypeAny, {
393
- data: {
394
- data: {
395
- proposed: {
484
+ }>;
485
+ }, "strict", ZodTypeAny, {
486
+ after: {
487
+ owner: Uint8Array<ArrayBufferLike>;
396
488
  data: Uint8Array<ArrayBufferLike>;
489
+ created_at: bigint;
490
+ updated_at: bigint;
397
491
  description?: string | undefined;
398
492
  version?: bigint | undefined;
399
493
  };
400
- current?: {
494
+ before?: {
401
495
  owner: Uint8Array<ArrayBufferLike>;
402
496
  data: Uint8Array<ArrayBufferLike>;
403
497
  created_at: bigint;
@@ -405,20 +499,16 @@ export declare const AssertSetDocContextSchema: z.ZodObject<{
405
499
  description?: string | undefined;
406
500
  version?: bigint | undefined;
407
501
  } | undefined;
408
- };
409
- key: string;
410
- collection: string;
411
- };
412
- caller: Uint8Array<ArrayBufferLike>;
413
- }, {
414
- data: {
415
- data: {
416
- proposed: {
502
+ }, {
503
+ after: {
504
+ owner: Uint8Array<ArrayBufferLike>;
417
505
  data: Uint8Array<ArrayBufferLike>;
506
+ created_at: bigint;
507
+ updated_at: bigint;
418
508
  description?: string | undefined;
419
509
  version?: bigint | undefined;
420
510
  };
421
- current?: {
511
+ before?: {
422
512
  owner: Uint8Array<ArrayBufferLike>;
423
513
  data: Uint8Array<ArrayBufferLike>;
424
514
  created_at: bigint;
@@ -426,12 +516,1093 @@ export declare const AssertSetDocContextSchema: z.ZodObject<{
426
516
  description?: string | undefined;
427
517
  version?: bigint | undefined;
428
518
  } | undefined;
429
- };
430
- key: string;
431
- collection: string;
432
- };
433
- caller: Uint8Array<ArrayBufferLike>;
434
- }>;
519
+ }>;
520
+ }>, baseObjectInputType<{
521
+ /**
522
+ * The name of the collection where the document is stored.
523
+ */
524
+ collection: z.ZodString;
525
+ /**
526
+ * The unique key identifying the document within the collection.
527
+ */
528
+ key: z.ZodString;
529
+ /**
530
+ * The data associated with the document operation.
531
+ */
532
+ data: ZodObject<{
533
+ before: z.ZodOptional<ZodObject<{
534
+ owner: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
535
+ data: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
536
+ description: z.ZodOptional<z.ZodString>;
537
+ created_at: z.ZodBigInt;
538
+ updated_at: z.ZodBigInt;
539
+ version: z.ZodOptional<z.ZodBigInt>;
540
+ }, "strict", ZodTypeAny, {
541
+ owner: Uint8Array<ArrayBufferLike>;
542
+ data: Uint8Array<ArrayBufferLike>;
543
+ created_at: bigint;
544
+ updated_at: bigint;
545
+ description?: string | undefined;
546
+ version?: bigint | undefined;
547
+ }, {
548
+ owner: Uint8Array<ArrayBufferLike>;
549
+ data: Uint8Array<ArrayBufferLike>;
550
+ created_at: bigint;
551
+ updated_at: bigint;
552
+ description?: string | undefined;
553
+ version?: bigint | undefined;
554
+ }>>;
555
+ after: ZodObject<{
556
+ owner: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
557
+ data: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
558
+ description: z.ZodOptional<z.ZodString>;
559
+ created_at: z.ZodBigInt;
560
+ updated_at: z.ZodBigInt;
561
+ version: z.ZodOptional<z.ZodBigInt>;
562
+ }, "strict", ZodTypeAny, {
563
+ owner: Uint8Array<ArrayBufferLike>;
564
+ data: Uint8Array<ArrayBufferLike>;
565
+ created_at: bigint;
566
+ updated_at: bigint;
567
+ description?: string | undefined;
568
+ version?: bigint | undefined;
569
+ }, {
570
+ owner: Uint8Array<ArrayBufferLike>;
571
+ data: Uint8Array<ArrayBufferLike>;
572
+ created_at: bigint;
573
+ updated_at: bigint;
574
+ description?: string | undefined;
575
+ version?: bigint | undefined;
576
+ }>;
577
+ }, "strict", ZodTypeAny, {
578
+ after: {
579
+ owner: Uint8Array<ArrayBufferLike>;
580
+ data: Uint8Array<ArrayBufferLike>;
581
+ created_at: bigint;
582
+ updated_at: bigint;
583
+ description?: string | undefined;
584
+ version?: bigint | undefined;
585
+ };
586
+ before?: {
587
+ owner: Uint8Array<ArrayBufferLike>;
588
+ data: Uint8Array<ArrayBufferLike>;
589
+ created_at: bigint;
590
+ updated_at: bigint;
591
+ description?: string | undefined;
592
+ version?: bigint | undefined;
593
+ } | undefined;
594
+ }, {
595
+ after: {
596
+ owner: Uint8Array<ArrayBufferLike>;
597
+ data: Uint8Array<ArrayBufferLike>;
598
+ created_at: bigint;
599
+ updated_at: bigint;
600
+ description?: string | undefined;
601
+ version?: bigint | undefined;
602
+ };
603
+ before?: {
604
+ owner: Uint8Array<ArrayBufferLike>;
605
+ data: Uint8Array<ArrayBufferLike>;
606
+ created_at: bigint;
607
+ updated_at: bigint;
608
+ description?: string | undefined;
609
+ version?: bigint | undefined;
610
+ } | undefined;
611
+ }>;
612
+ }>>;
613
+ }>, baseObjectInputType<{
614
+ caller: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
615
+ data: ZodObject<{
616
+ /**
617
+ * The name of the collection where the document is stored.
618
+ */
619
+ collection: z.ZodString;
620
+ /**
621
+ * The unique key identifying the document within the collection.
622
+ */
623
+ key: z.ZodString;
624
+ /**
625
+ * The data associated with the document operation.
626
+ */
627
+ data: ZodObject<{
628
+ before: z.ZodOptional<ZodObject<{
629
+ owner: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
630
+ data: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
631
+ description: z.ZodOptional<z.ZodString>;
632
+ created_at: z.ZodBigInt;
633
+ updated_at: z.ZodBigInt;
634
+ version: z.ZodOptional<z.ZodBigInt>;
635
+ }, "strict", ZodTypeAny, {
636
+ owner: Uint8Array<ArrayBufferLike>;
637
+ data: Uint8Array<ArrayBufferLike>;
638
+ created_at: bigint;
639
+ updated_at: bigint;
640
+ description?: string | undefined;
641
+ version?: bigint | undefined;
642
+ }, {
643
+ owner: Uint8Array<ArrayBufferLike>;
644
+ data: Uint8Array<ArrayBufferLike>;
645
+ created_at: bigint;
646
+ updated_at: bigint;
647
+ description?: string | undefined;
648
+ version?: bigint | undefined;
649
+ }>>;
650
+ after: ZodObject<{
651
+ owner: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
652
+ data: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
653
+ description: z.ZodOptional<z.ZodString>;
654
+ created_at: z.ZodBigInt;
655
+ updated_at: z.ZodBigInt;
656
+ version: z.ZodOptional<z.ZodBigInt>;
657
+ }, "strict", ZodTypeAny, {
658
+ owner: Uint8Array<ArrayBufferLike>;
659
+ data: Uint8Array<ArrayBufferLike>;
660
+ created_at: bigint;
661
+ updated_at: bigint;
662
+ description?: string | undefined;
663
+ version?: bigint | undefined;
664
+ }, {
665
+ owner: Uint8Array<ArrayBufferLike>;
666
+ data: Uint8Array<ArrayBufferLike>;
667
+ created_at: bigint;
668
+ updated_at: bigint;
669
+ description?: string | undefined;
670
+ version?: bigint | undefined;
671
+ }>;
672
+ }, "strict", ZodTypeAny, {
673
+ after: {
674
+ owner: Uint8Array<ArrayBufferLike>;
675
+ data: Uint8Array<ArrayBufferLike>;
676
+ created_at: bigint;
677
+ updated_at: bigint;
678
+ description?: string | undefined;
679
+ version?: bigint | undefined;
680
+ };
681
+ before?: {
682
+ owner: Uint8Array<ArrayBufferLike>;
683
+ data: Uint8Array<ArrayBufferLike>;
684
+ created_at: bigint;
685
+ updated_at: bigint;
686
+ description?: string | undefined;
687
+ version?: bigint | undefined;
688
+ } | undefined;
689
+ }, {
690
+ after: {
691
+ owner: Uint8Array<ArrayBufferLike>;
692
+ data: Uint8Array<ArrayBufferLike>;
693
+ created_at: bigint;
694
+ updated_at: bigint;
695
+ description?: string | undefined;
696
+ version?: bigint | undefined;
697
+ };
698
+ before?: {
699
+ owner: Uint8Array<ArrayBufferLike>;
700
+ data: Uint8Array<ArrayBufferLike>;
701
+ created_at: bigint;
702
+ updated_at: bigint;
703
+ description?: string | undefined;
704
+ version?: bigint | undefined;
705
+ } | undefined;
706
+ }>;
707
+ }, "strict", ZodTypeAny, baseObjectOutputType<{
708
+ /**
709
+ * The name of the collection where the document is stored.
710
+ */
711
+ collection: z.ZodString;
712
+ /**
713
+ * The unique key identifying the document within the collection.
714
+ */
715
+ key: z.ZodString;
716
+ /**
717
+ * The data associated with the document operation.
718
+ */
719
+ data: ZodObject<{
720
+ before: z.ZodOptional<ZodObject<{
721
+ owner: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
722
+ data: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
723
+ description: z.ZodOptional<z.ZodString>;
724
+ created_at: z.ZodBigInt;
725
+ updated_at: z.ZodBigInt;
726
+ version: z.ZodOptional<z.ZodBigInt>;
727
+ }, "strict", ZodTypeAny, {
728
+ owner: Uint8Array<ArrayBufferLike>;
729
+ data: Uint8Array<ArrayBufferLike>;
730
+ created_at: bigint;
731
+ updated_at: bigint;
732
+ description?: string | undefined;
733
+ version?: bigint | undefined;
734
+ }, {
735
+ owner: Uint8Array<ArrayBufferLike>;
736
+ data: Uint8Array<ArrayBufferLike>;
737
+ created_at: bigint;
738
+ updated_at: bigint;
739
+ description?: string | undefined;
740
+ version?: bigint | undefined;
741
+ }>>;
742
+ after: ZodObject<{
743
+ owner: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
744
+ data: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
745
+ description: z.ZodOptional<z.ZodString>;
746
+ created_at: z.ZodBigInt;
747
+ updated_at: z.ZodBigInt;
748
+ version: z.ZodOptional<z.ZodBigInt>;
749
+ }, "strict", ZodTypeAny, {
750
+ owner: Uint8Array<ArrayBufferLike>;
751
+ data: Uint8Array<ArrayBufferLike>;
752
+ created_at: bigint;
753
+ updated_at: bigint;
754
+ description?: string | undefined;
755
+ version?: bigint | undefined;
756
+ }, {
757
+ owner: Uint8Array<ArrayBufferLike>;
758
+ data: Uint8Array<ArrayBufferLike>;
759
+ created_at: bigint;
760
+ updated_at: bigint;
761
+ description?: string | undefined;
762
+ version?: bigint | undefined;
763
+ }>;
764
+ }, "strict", ZodTypeAny, {
765
+ after: {
766
+ owner: Uint8Array<ArrayBufferLike>;
767
+ data: Uint8Array<ArrayBufferLike>;
768
+ created_at: bigint;
769
+ updated_at: bigint;
770
+ description?: string | undefined;
771
+ version?: bigint | undefined;
772
+ };
773
+ before?: {
774
+ owner: Uint8Array<ArrayBufferLike>;
775
+ data: Uint8Array<ArrayBufferLike>;
776
+ created_at: bigint;
777
+ updated_at: bigint;
778
+ description?: string | undefined;
779
+ version?: bigint | undefined;
780
+ } | undefined;
781
+ }, {
782
+ after: {
783
+ owner: Uint8Array<ArrayBufferLike>;
784
+ data: Uint8Array<ArrayBufferLike>;
785
+ created_at: bigint;
786
+ updated_at: bigint;
787
+ description?: string | undefined;
788
+ version?: bigint | undefined;
789
+ };
790
+ before?: {
791
+ owner: Uint8Array<ArrayBufferLike>;
792
+ data: Uint8Array<ArrayBufferLike>;
793
+ created_at: bigint;
794
+ updated_at: bigint;
795
+ description?: string | undefined;
796
+ version?: bigint | undefined;
797
+ } | undefined;
798
+ }>;
799
+ }>, baseObjectInputType<{
800
+ /**
801
+ * The name of the collection where the document is stored.
802
+ */
803
+ collection: z.ZodString;
804
+ /**
805
+ * The unique key identifying the document within the collection.
806
+ */
807
+ key: z.ZodString;
808
+ /**
809
+ * The data associated with the document operation.
810
+ */
811
+ data: ZodObject<{
812
+ before: z.ZodOptional<ZodObject<{
813
+ owner: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
814
+ data: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
815
+ description: z.ZodOptional<z.ZodString>;
816
+ created_at: z.ZodBigInt;
817
+ updated_at: z.ZodBigInt;
818
+ version: z.ZodOptional<z.ZodBigInt>;
819
+ }, "strict", ZodTypeAny, {
820
+ owner: Uint8Array<ArrayBufferLike>;
821
+ data: Uint8Array<ArrayBufferLike>;
822
+ created_at: bigint;
823
+ updated_at: bigint;
824
+ description?: string | undefined;
825
+ version?: bigint | undefined;
826
+ }, {
827
+ owner: Uint8Array<ArrayBufferLike>;
828
+ data: Uint8Array<ArrayBufferLike>;
829
+ created_at: bigint;
830
+ updated_at: bigint;
831
+ description?: string | undefined;
832
+ version?: bigint | undefined;
833
+ }>>;
834
+ after: ZodObject<{
835
+ owner: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
836
+ data: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
837
+ description: z.ZodOptional<z.ZodString>;
838
+ created_at: z.ZodBigInt;
839
+ updated_at: z.ZodBigInt;
840
+ version: z.ZodOptional<z.ZodBigInt>;
841
+ }, "strict", ZodTypeAny, {
842
+ owner: Uint8Array<ArrayBufferLike>;
843
+ data: Uint8Array<ArrayBufferLike>;
844
+ created_at: bigint;
845
+ updated_at: bigint;
846
+ description?: string | undefined;
847
+ version?: bigint | undefined;
848
+ }, {
849
+ owner: Uint8Array<ArrayBufferLike>;
850
+ data: Uint8Array<ArrayBufferLike>;
851
+ created_at: bigint;
852
+ updated_at: bigint;
853
+ description?: string | undefined;
854
+ version?: bigint | undefined;
855
+ }>;
856
+ }, "strict", ZodTypeAny, {
857
+ after: {
858
+ owner: Uint8Array<ArrayBufferLike>;
859
+ data: Uint8Array<ArrayBufferLike>;
860
+ created_at: bigint;
861
+ updated_at: bigint;
862
+ description?: string | undefined;
863
+ version?: bigint | undefined;
864
+ };
865
+ before?: {
866
+ owner: Uint8Array<ArrayBufferLike>;
867
+ data: Uint8Array<ArrayBufferLike>;
868
+ created_at: bigint;
869
+ updated_at: bigint;
870
+ description?: string | undefined;
871
+ version?: bigint | undefined;
872
+ } | undefined;
873
+ }, {
874
+ after: {
875
+ owner: Uint8Array<ArrayBufferLike>;
876
+ data: Uint8Array<ArrayBufferLike>;
877
+ created_at: bigint;
878
+ updated_at: bigint;
879
+ description?: string | undefined;
880
+ version?: bigint | undefined;
881
+ };
882
+ before?: {
883
+ owner: Uint8Array<ArrayBufferLike>;
884
+ data: Uint8Array<ArrayBufferLike>;
885
+ created_at: bigint;
886
+ updated_at: bigint;
887
+ description?: string | undefined;
888
+ version?: bigint | undefined;
889
+ } | undefined;
890
+ }>;
891
+ }>>;
892
+ }>>;
893
+ /**
894
+ * The context provided to the `onSetDoc` hook.
895
+ *
896
+ * This context contains information about the document being created or updated,
897
+ * along with details about the user who triggered the operation.
898
+ */
899
+ export type OnSetDocContext = z.infer<typeof OnSetDocContextSchema>;
900
+ /**
901
+ * @see AssertSetDocContext
902
+ */
903
+ export declare const AssertSetDocContextSchema: ZodObject<{
904
+ 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
+ */
909
+ collection: z.ZodString;
910
+ /**
911
+ * The unique key identifying the document within the collection.
912
+ */
913
+ key: z.ZodString;
914
+ /**
915
+ * The data associated with the document operation.
916
+ */
917
+ data: ZodObject<{
918
+ current: z.ZodOptional<ZodObject<{
919
+ owner: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
920
+ data: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
921
+ description: z.ZodOptional<z.ZodString>;
922
+ created_at: z.ZodBigInt;
923
+ updated_at: z.ZodBigInt;
924
+ version: z.ZodOptional<z.ZodBigInt>;
925
+ }, "strict", ZodTypeAny, {
926
+ owner: Uint8Array<ArrayBufferLike>;
927
+ data: Uint8Array<ArrayBufferLike>;
928
+ created_at: bigint;
929
+ updated_at: bigint;
930
+ description?: string | undefined;
931
+ version?: bigint | undefined;
932
+ }, {
933
+ owner: Uint8Array<ArrayBufferLike>;
934
+ data: Uint8Array<ArrayBufferLike>;
935
+ created_at: bigint;
936
+ updated_at: bigint;
937
+ description?: string | undefined;
938
+ version?: bigint | undefined;
939
+ }>>;
940
+ proposed: ZodObject<{
941
+ data: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
942
+ description: z.ZodOptional<z.ZodString>;
943
+ version: z.ZodOptional<z.ZodBigInt>;
944
+ }, "strict", ZodTypeAny, {
945
+ data: Uint8Array<ArrayBufferLike>;
946
+ description?: string | undefined;
947
+ version?: bigint | undefined;
948
+ }, {
949
+ data: Uint8Array<ArrayBufferLike>;
950
+ description?: string | undefined;
951
+ version?: bigint | undefined;
952
+ }>;
953
+ }, "strict", ZodTypeAny, {
954
+ proposed: {
955
+ data: Uint8Array<ArrayBufferLike>;
956
+ description?: string | undefined;
957
+ version?: bigint | undefined;
958
+ };
959
+ current?: {
960
+ owner: Uint8Array<ArrayBufferLike>;
961
+ data: Uint8Array<ArrayBufferLike>;
962
+ created_at: bigint;
963
+ updated_at: bigint;
964
+ description?: string | undefined;
965
+ version?: bigint | undefined;
966
+ } | undefined;
967
+ }, {
968
+ proposed: {
969
+ data: Uint8Array<ArrayBufferLike>;
970
+ description?: string | undefined;
971
+ version?: bigint | undefined;
972
+ };
973
+ current?: {
974
+ owner: Uint8Array<ArrayBufferLike>;
975
+ data: Uint8Array<ArrayBufferLike>;
976
+ created_at: bigint;
977
+ updated_at: bigint;
978
+ description?: string | undefined;
979
+ version?: bigint | undefined;
980
+ } | undefined;
981
+ }>;
982
+ }, "strict", ZodTypeAny, baseObjectOutputType<{
983
+ /**
984
+ * The name of the collection where the document is stored.
985
+ */
986
+ collection: z.ZodString;
987
+ /**
988
+ * The unique key identifying the document within the collection.
989
+ */
990
+ key: z.ZodString;
991
+ /**
992
+ * The data associated with the document operation.
993
+ */
994
+ data: ZodObject<{
995
+ current: z.ZodOptional<ZodObject<{
996
+ owner: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
997
+ data: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
998
+ description: z.ZodOptional<z.ZodString>;
999
+ created_at: z.ZodBigInt;
1000
+ updated_at: z.ZodBigInt;
1001
+ version: z.ZodOptional<z.ZodBigInt>;
1002
+ }, "strict", ZodTypeAny, {
1003
+ owner: Uint8Array<ArrayBufferLike>;
1004
+ data: Uint8Array<ArrayBufferLike>;
1005
+ created_at: bigint;
1006
+ updated_at: bigint;
1007
+ description?: string | undefined;
1008
+ version?: bigint | undefined;
1009
+ }, {
1010
+ owner: Uint8Array<ArrayBufferLike>;
1011
+ data: Uint8Array<ArrayBufferLike>;
1012
+ created_at: bigint;
1013
+ updated_at: bigint;
1014
+ description?: string | undefined;
1015
+ version?: bigint | undefined;
1016
+ }>>;
1017
+ proposed: ZodObject<{
1018
+ data: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
1019
+ description: z.ZodOptional<z.ZodString>;
1020
+ version: z.ZodOptional<z.ZodBigInt>;
1021
+ }, "strict", ZodTypeAny, {
1022
+ data: Uint8Array<ArrayBufferLike>;
1023
+ description?: string | undefined;
1024
+ version?: bigint | undefined;
1025
+ }, {
1026
+ data: Uint8Array<ArrayBufferLike>;
1027
+ description?: string | undefined;
1028
+ version?: bigint | undefined;
1029
+ }>;
1030
+ }, "strict", ZodTypeAny, {
1031
+ proposed: {
1032
+ data: Uint8Array<ArrayBufferLike>;
1033
+ description?: string | undefined;
1034
+ version?: bigint | undefined;
1035
+ };
1036
+ current?: {
1037
+ owner: Uint8Array<ArrayBufferLike>;
1038
+ data: Uint8Array<ArrayBufferLike>;
1039
+ created_at: bigint;
1040
+ updated_at: bigint;
1041
+ description?: string | undefined;
1042
+ version?: bigint | undefined;
1043
+ } | undefined;
1044
+ }, {
1045
+ proposed: {
1046
+ data: Uint8Array<ArrayBufferLike>;
1047
+ description?: string | undefined;
1048
+ version?: bigint | undefined;
1049
+ };
1050
+ current?: {
1051
+ owner: Uint8Array<ArrayBufferLike>;
1052
+ data: Uint8Array<ArrayBufferLike>;
1053
+ created_at: bigint;
1054
+ updated_at: bigint;
1055
+ description?: string | undefined;
1056
+ version?: bigint | undefined;
1057
+ } | undefined;
1058
+ }>;
1059
+ }>, baseObjectInputType<{
1060
+ /**
1061
+ * The name of the collection where the document is stored.
1062
+ */
1063
+ collection: z.ZodString;
1064
+ /**
1065
+ * The unique key identifying the document within the collection.
1066
+ */
1067
+ key: z.ZodString;
1068
+ /**
1069
+ * The data associated with the document operation.
1070
+ */
1071
+ data: ZodObject<{
1072
+ current: z.ZodOptional<ZodObject<{
1073
+ owner: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
1074
+ data: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
1075
+ description: z.ZodOptional<z.ZodString>;
1076
+ created_at: z.ZodBigInt;
1077
+ updated_at: z.ZodBigInt;
1078
+ version: z.ZodOptional<z.ZodBigInt>;
1079
+ }, "strict", ZodTypeAny, {
1080
+ owner: Uint8Array<ArrayBufferLike>;
1081
+ data: Uint8Array<ArrayBufferLike>;
1082
+ created_at: bigint;
1083
+ updated_at: bigint;
1084
+ description?: string | undefined;
1085
+ version?: bigint | undefined;
1086
+ }, {
1087
+ owner: Uint8Array<ArrayBufferLike>;
1088
+ data: Uint8Array<ArrayBufferLike>;
1089
+ created_at: bigint;
1090
+ updated_at: bigint;
1091
+ description?: string | undefined;
1092
+ version?: bigint | undefined;
1093
+ }>>;
1094
+ proposed: ZodObject<{
1095
+ data: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
1096
+ description: z.ZodOptional<z.ZodString>;
1097
+ version: z.ZodOptional<z.ZodBigInt>;
1098
+ }, "strict", ZodTypeAny, {
1099
+ data: Uint8Array<ArrayBufferLike>;
1100
+ description?: string | undefined;
1101
+ version?: bigint | undefined;
1102
+ }, {
1103
+ data: Uint8Array<ArrayBufferLike>;
1104
+ description?: string | undefined;
1105
+ version?: bigint | undefined;
1106
+ }>;
1107
+ }, "strict", ZodTypeAny, {
1108
+ proposed: {
1109
+ data: Uint8Array<ArrayBufferLike>;
1110
+ description?: string | undefined;
1111
+ version?: bigint | undefined;
1112
+ };
1113
+ current?: {
1114
+ owner: Uint8Array<ArrayBufferLike>;
1115
+ data: Uint8Array<ArrayBufferLike>;
1116
+ created_at: bigint;
1117
+ updated_at: bigint;
1118
+ description?: string | undefined;
1119
+ version?: bigint | undefined;
1120
+ } | undefined;
1121
+ }, {
1122
+ proposed: {
1123
+ data: Uint8Array<ArrayBufferLike>;
1124
+ description?: string | undefined;
1125
+ version?: bigint | undefined;
1126
+ };
1127
+ current?: {
1128
+ owner: Uint8Array<ArrayBufferLike>;
1129
+ data: Uint8Array<ArrayBufferLike>;
1130
+ created_at: bigint;
1131
+ updated_at: bigint;
1132
+ description?: string | undefined;
1133
+ version?: bigint | undefined;
1134
+ } | undefined;
1135
+ }>;
1136
+ }>>;
1137
+ }, "strict", ZodTypeAny, baseObjectOutputType<{
1138
+ 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
+ */
1143
+ collection: z.ZodString;
1144
+ /**
1145
+ * The unique key identifying the document within the collection.
1146
+ */
1147
+ key: z.ZodString;
1148
+ /**
1149
+ * The data associated with the document operation.
1150
+ */
1151
+ data: ZodObject<{
1152
+ current: z.ZodOptional<ZodObject<{
1153
+ owner: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
1154
+ data: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
1155
+ description: z.ZodOptional<z.ZodString>;
1156
+ created_at: z.ZodBigInt;
1157
+ updated_at: z.ZodBigInt;
1158
+ version: z.ZodOptional<z.ZodBigInt>;
1159
+ }, "strict", ZodTypeAny, {
1160
+ owner: Uint8Array<ArrayBufferLike>;
1161
+ data: Uint8Array<ArrayBufferLike>;
1162
+ created_at: bigint;
1163
+ updated_at: bigint;
1164
+ description?: string | undefined;
1165
+ version?: bigint | undefined;
1166
+ }, {
1167
+ owner: Uint8Array<ArrayBufferLike>;
1168
+ data: Uint8Array<ArrayBufferLike>;
1169
+ created_at: bigint;
1170
+ updated_at: bigint;
1171
+ description?: string | undefined;
1172
+ version?: bigint | undefined;
1173
+ }>>;
1174
+ proposed: ZodObject<{
1175
+ data: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
1176
+ description: z.ZodOptional<z.ZodString>;
1177
+ version: z.ZodOptional<z.ZodBigInt>;
1178
+ }, "strict", ZodTypeAny, {
1179
+ data: Uint8Array<ArrayBufferLike>;
1180
+ description?: string | undefined;
1181
+ version?: bigint | undefined;
1182
+ }, {
1183
+ data: Uint8Array<ArrayBufferLike>;
1184
+ description?: string | undefined;
1185
+ version?: bigint | undefined;
1186
+ }>;
1187
+ }, "strict", ZodTypeAny, {
1188
+ proposed: {
1189
+ data: Uint8Array<ArrayBufferLike>;
1190
+ description?: string | undefined;
1191
+ version?: bigint | undefined;
1192
+ };
1193
+ current?: {
1194
+ owner: Uint8Array<ArrayBufferLike>;
1195
+ data: Uint8Array<ArrayBufferLike>;
1196
+ created_at: bigint;
1197
+ updated_at: bigint;
1198
+ description?: string | undefined;
1199
+ version?: bigint | undefined;
1200
+ } | undefined;
1201
+ }, {
1202
+ proposed: {
1203
+ data: Uint8Array<ArrayBufferLike>;
1204
+ description?: string | undefined;
1205
+ version?: bigint | undefined;
1206
+ };
1207
+ current?: {
1208
+ owner: Uint8Array<ArrayBufferLike>;
1209
+ data: Uint8Array<ArrayBufferLike>;
1210
+ created_at: bigint;
1211
+ updated_at: bigint;
1212
+ description?: string | undefined;
1213
+ version?: bigint | undefined;
1214
+ } | undefined;
1215
+ }>;
1216
+ }, "strict", ZodTypeAny, baseObjectOutputType<{
1217
+ /**
1218
+ * The name of the collection where the document is stored.
1219
+ */
1220
+ collection: z.ZodString;
1221
+ /**
1222
+ * The unique key identifying the document within the collection.
1223
+ */
1224
+ key: z.ZodString;
1225
+ /**
1226
+ * The data associated with the document operation.
1227
+ */
1228
+ data: ZodObject<{
1229
+ current: z.ZodOptional<ZodObject<{
1230
+ owner: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
1231
+ data: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
1232
+ description: z.ZodOptional<z.ZodString>;
1233
+ created_at: z.ZodBigInt;
1234
+ updated_at: z.ZodBigInt;
1235
+ version: z.ZodOptional<z.ZodBigInt>;
1236
+ }, "strict", ZodTypeAny, {
1237
+ owner: Uint8Array<ArrayBufferLike>;
1238
+ data: Uint8Array<ArrayBufferLike>;
1239
+ created_at: bigint;
1240
+ updated_at: bigint;
1241
+ description?: string | undefined;
1242
+ version?: bigint | undefined;
1243
+ }, {
1244
+ owner: Uint8Array<ArrayBufferLike>;
1245
+ data: Uint8Array<ArrayBufferLike>;
1246
+ created_at: bigint;
1247
+ updated_at: bigint;
1248
+ description?: string | undefined;
1249
+ version?: bigint | undefined;
1250
+ }>>;
1251
+ proposed: ZodObject<{
1252
+ data: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
1253
+ description: z.ZodOptional<z.ZodString>;
1254
+ version: z.ZodOptional<z.ZodBigInt>;
1255
+ }, "strict", ZodTypeAny, {
1256
+ data: Uint8Array<ArrayBufferLike>;
1257
+ description?: string | undefined;
1258
+ version?: bigint | undefined;
1259
+ }, {
1260
+ data: Uint8Array<ArrayBufferLike>;
1261
+ description?: string | undefined;
1262
+ version?: bigint | undefined;
1263
+ }>;
1264
+ }, "strict", ZodTypeAny, {
1265
+ proposed: {
1266
+ data: Uint8Array<ArrayBufferLike>;
1267
+ description?: string | undefined;
1268
+ version?: bigint | undefined;
1269
+ };
1270
+ current?: {
1271
+ owner: Uint8Array<ArrayBufferLike>;
1272
+ data: Uint8Array<ArrayBufferLike>;
1273
+ created_at: bigint;
1274
+ updated_at: bigint;
1275
+ description?: string | undefined;
1276
+ version?: bigint | undefined;
1277
+ } | undefined;
1278
+ }, {
1279
+ proposed: {
1280
+ data: Uint8Array<ArrayBufferLike>;
1281
+ description?: string | undefined;
1282
+ version?: bigint | undefined;
1283
+ };
1284
+ current?: {
1285
+ owner: Uint8Array<ArrayBufferLike>;
1286
+ data: Uint8Array<ArrayBufferLike>;
1287
+ created_at: bigint;
1288
+ updated_at: bigint;
1289
+ description?: string | undefined;
1290
+ version?: bigint | undefined;
1291
+ } | undefined;
1292
+ }>;
1293
+ }>, baseObjectInputType<{
1294
+ /**
1295
+ * The name of the collection where the document is stored.
1296
+ */
1297
+ collection: z.ZodString;
1298
+ /**
1299
+ * The unique key identifying the document within the collection.
1300
+ */
1301
+ key: z.ZodString;
1302
+ /**
1303
+ * The data associated with the document operation.
1304
+ */
1305
+ data: ZodObject<{
1306
+ current: z.ZodOptional<ZodObject<{
1307
+ owner: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
1308
+ data: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
1309
+ description: z.ZodOptional<z.ZodString>;
1310
+ created_at: z.ZodBigInt;
1311
+ updated_at: z.ZodBigInt;
1312
+ version: z.ZodOptional<z.ZodBigInt>;
1313
+ }, "strict", ZodTypeAny, {
1314
+ owner: Uint8Array<ArrayBufferLike>;
1315
+ data: Uint8Array<ArrayBufferLike>;
1316
+ created_at: bigint;
1317
+ updated_at: bigint;
1318
+ description?: string | undefined;
1319
+ version?: bigint | undefined;
1320
+ }, {
1321
+ owner: Uint8Array<ArrayBufferLike>;
1322
+ data: Uint8Array<ArrayBufferLike>;
1323
+ created_at: bigint;
1324
+ updated_at: bigint;
1325
+ description?: string | undefined;
1326
+ version?: bigint | undefined;
1327
+ }>>;
1328
+ proposed: ZodObject<{
1329
+ data: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
1330
+ description: z.ZodOptional<z.ZodString>;
1331
+ version: z.ZodOptional<z.ZodBigInt>;
1332
+ }, "strict", ZodTypeAny, {
1333
+ data: Uint8Array<ArrayBufferLike>;
1334
+ description?: string | undefined;
1335
+ version?: bigint | undefined;
1336
+ }, {
1337
+ data: Uint8Array<ArrayBufferLike>;
1338
+ description?: string | undefined;
1339
+ version?: bigint | undefined;
1340
+ }>;
1341
+ }, "strict", ZodTypeAny, {
1342
+ proposed: {
1343
+ data: Uint8Array<ArrayBufferLike>;
1344
+ description?: string | undefined;
1345
+ version?: bigint | undefined;
1346
+ };
1347
+ current?: {
1348
+ owner: Uint8Array<ArrayBufferLike>;
1349
+ data: Uint8Array<ArrayBufferLike>;
1350
+ created_at: bigint;
1351
+ updated_at: bigint;
1352
+ description?: string | undefined;
1353
+ version?: bigint | undefined;
1354
+ } | undefined;
1355
+ }, {
1356
+ proposed: {
1357
+ data: Uint8Array<ArrayBufferLike>;
1358
+ description?: string | undefined;
1359
+ version?: bigint | undefined;
1360
+ };
1361
+ current?: {
1362
+ owner: Uint8Array<ArrayBufferLike>;
1363
+ data: Uint8Array<ArrayBufferLike>;
1364
+ created_at: bigint;
1365
+ updated_at: bigint;
1366
+ description?: string | undefined;
1367
+ version?: bigint | undefined;
1368
+ } | undefined;
1369
+ }>;
1370
+ }>>;
1371
+ }>, baseObjectInputType<{
1372
+ 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
+ */
1377
+ collection: z.ZodString;
1378
+ /**
1379
+ * The unique key identifying the document within the collection.
1380
+ */
1381
+ key: z.ZodString;
1382
+ /**
1383
+ * The data associated with the document operation.
1384
+ */
1385
+ data: ZodObject<{
1386
+ current: z.ZodOptional<ZodObject<{
1387
+ owner: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
1388
+ data: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
1389
+ description: z.ZodOptional<z.ZodString>;
1390
+ created_at: z.ZodBigInt;
1391
+ updated_at: z.ZodBigInt;
1392
+ version: z.ZodOptional<z.ZodBigInt>;
1393
+ }, "strict", ZodTypeAny, {
1394
+ owner: Uint8Array<ArrayBufferLike>;
1395
+ data: Uint8Array<ArrayBufferLike>;
1396
+ created_at: bigint;
1397
+ updated_at: bigint;
1398
+ description?: string | undefined;
1399
+ version?: bigint | undefined;
1400
+ }, {
1401
+ owner: Uint8Array<ArrayBufferLike>;
1402
+ data: Uint8Array<ArrayBufferLike>;
1403
+ created_at: bigint;
1404
+ updated_at: bigint;
1405
+ description?: string | undefined;
1406
+ version?: bigint | undefined;
1407
+ }>>;
1408
+ proposed: ZodObject<{
1409
+ data: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
1410
+ description: z.ZodOptional<z.ZodString>;
1411
+ version: z.ZodOptional<z.ZodBigInt>;
1412
+ }, "strict", ZodTypeAny, {
1413
+ data: Uint8Array<ArrayBufferLike>;
1414
+ description?: string | undefined;
1415
+ version?: bigint | undefined;
1416
+ }, {
1417
+ data: Uint8Array<ArrayBufferLike>;
1418
+ description?: string | undefined;
1419
+ version?: bigint | undefined;
1420
+ }>;
1421
+ }, "strict", ZodTypeAny, {
1422
+ proposed: {
1423
+ data: Uint8Array<ArrayBufferLike>;
1424
+ description?: string | undefined;
1425
+ version?: bigint | undefined;
1426
+ };
1427
+ current?: {
1428
+ owner: Uint8Array<ArrayBufferLike>;
1429
+ data: Uint8Array<ArrayBufferLike>;
1430
+ created_at: bigint;
1431
+ updated_at: bigint;
1432
+ description?: string | undefined;
1433
+ version?: bigint | undefined;
1434
+ } | undefined;
1435
+ }, {
1436
+ proposed: {
1437
+ data: Uint8Array<ArrayBufferLike>;
1438
+ description?: string | undefined;
1439
+ version?: bigint | undefined;
1440
+ };
1441
+ current?: {
1442
+ owner: Uint8Array<ArrayBufferLike>;
1443
+ data: Uint8Array<ArrayBufferLike>;
1444
+ created_at: bigint;
1445
+ updated_at: bigint;
1446
+ description?: string | undefined;
1447
+ version?: bigint | undefined;
1448
+ } | undefined;
1449
+ }>;
1450
+ }, "strict", ZodTypeAny, baseObjectOutputType<{
1451
+ /**
1452
+ * The name of the collection where the document is stored.
1453
+ */
1454
+ collection: z.ZodString;
1455
+ /**
1456
+ * The unique key identifying the document within the collection.
1457
+ */
1458
+ key: z.ZodString;
1459
+ /**
1460
+ * The data associated with the document operation.
1461
+ */
1462
+ data: ZodObject<{
1463
+ current: z.ZodOptional<ZodObject<{
1464
+ owner: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
1465
+ data: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
1466
+ description: z.ZodOptional<z.ZodString>;
1467
+ created_at: z.ZodBigInt;
1468
+ updated_at: z.ZodBigInt;
1469
+ version: z.ZodOptional<z.ZodBigInt>;
1470
+ }, "strict", ZodTypeAny, {
1471
+ owner: Uint8Array<ArrayBufferLike>;
1472
+ data: Uint8Array<ArrayBufferLike>;
1473
+ created_at: bigint;
1474
+ updated_at: bigint;
1475
+ description?: string | undefined;
1476
+ version?: bigint | undefined;
1477
+ }, {
1478
+ owner: Uint8Array<ArrayBufferLike>;
1479
+ data: Uint8Array<ArrayBufferLike>;
1480
+ created_at: bigint;
1481
+ updated_at: bigint;
1482
+ description?: string | undefined;
1483
+ version?: bigint | undefined;
1484
+ }>>;
1485
+ proposed: ZodObject<{
1486
+ data: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
1487
+ description: z.ZodOptional<z.ZodString>;
1488
+ version: z.ZodOptional<z.ZodBigInt>;
1489
+ }, "strict", ZodTypeAny, {
1490
+ data: Uint8Array<ArrayBufferLike>;
1491
+ description?: string | undefined;
1492
+ version?: bigint | undefined;
1493
+ }, {
1494
+ data: Uint8Array<ArrayBufferLike>;
1495
+ description?: string | undefined;
1496
+ version?: bigint | undefined;
1497
+ }>;
1498
+ }, "strict", ZodTypeAny, {
1499
+ proposed: {
1500
+ data: Uint8Array<ArrayBufferLike>;
1501
+ description?: string | undefined;
1502
+ version?: bigint | undefined;
1503
+ };
1504
+ current?: {
1505
+ owner: Uint8Array<ArrayBufferLike>;
1506
+ data: Uint8Array<ArrayBufferLike>;
1507
+ created_at: bigint;
1508
+ updated_at: bigint;
1509
+ description?: string | undefined;
1510
+ version?: bigint | undefined;
1511
+ } | undefined;
1512
+ }, {
1513
+ proposed: {
1514
+ data: Uint8Array<ArrayBufferLike>;
1515
+ description?: string | undefined;
1516
+ version?: bigint | undefined;
1517
+ };
1518
+ current?: {
1519
+ owner: Uint8Array<ArrayBufferLike>;
1520
+ data: Uint8Array<ArrayBufferLike>;
1521
+ created_at: bigint;
1522
+ updated_at: bigint;
1523
+ description?: string | undefined;
1524
+ version?: bigint | undefined;
1525
+ } | undefined;
1526
+ }>;
1527
+ }>, baseObjectInputType<{
1528
+ /**
1529
+ * The name of the collection where the document is stored.
1530
+ */
1531
+ collection: z.ZodString;
1532
+ /**
1533
+ * The unique key identifying the document within the collection.
1534
+ */
1535
+ key: z.ZodString;
1536
+ /**
1537
+ * The data associated with the document operation.
1538
+ */
1539
+ data: ZodObject<{
1540
+ current: z.ZodOptional<ZodObject<{
1541
+ owner: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
1542
+ data: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
1543
+ description: z.ZodOptional<z.ZodString>;
1544
+ created_at: z.ZodBigInt;
1545
+ updated_at: z.ZodBigInt;
1546
+ version: z.ZodOptional<z.ZodBigInt>;
1547
+ }, "strict", ZodTypeAny, {
1548
+ owner: Uint8Array<ArrayBufferLike>;
1549
+ data: Uint8Array<ArrayBufferLike>;
1550
+ created_at: bigint;
1551
+ updated_at: bigint;
1552
+ description?: string | undefined;
1553
+ version?: bigint | undefined;
1554
+ }, {
1555
+ owner: Uint8Array<ArrayBufferLike>;
1556
+ data: Uint8Array<ArrayBufferLike>;
1557
+ created_at: bigint;
1558
+ updated_at: bigint;
1559
+ description?: string | undefined;
1560
+ version?: bigint | undefined;
1561
+ }>>;
1562
+ proposed: ZodObject<{
1563
+ data: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
1564
+ description: z.ZodOptional<z.ZodString>;
1565
+ version: z.ZodOptional<z.ZodBigInt>;
1566
+ }, "strict", ZodTypeAny, {
1567
+ data: Uint8Array<ArrayBufferLike>;
1568
+ description?: string | undefined;
1569
+ version?: bigint | undefined;
1570
+ }, {
1571
+ data: Uint8Array<ArrayBufferLike>;
1572
+ description?: string | undefined;
1573
+ version?: bigint | undefined;
1574
+ }>;
1575
+ }, "strict", ZodTypeAny, {
1576
+ proposed: {
1577
+ data: Uint8Array<ArrayBufferLike>;
1578
+ description?: string | undefined;
1579
+ version?: bigint | undefined;
1580
+ };
1581
+ current?: {
1582
+ owner: Uint8Array<ArrayBufferLike>;
1583
+ data: Uint8Array<ArrayBufferLike>;
1584
+ created_at: bigint;
1585
+ updated_at: bigint;
1586
+ description?: string | undefined;
1587
+ version?: bigint | undefined;
1588
+ } | undefined;
1589
+ }, {
1590
+ proposed: {
1591
+ data: Uint8Array<ArrayBufferLike>;
1592
+ description?: string | undefined;
1593
+ version?: bigint | undefined;
1594
+ };
1595
+ current?: {
1596
+ owner: Uint8Array<ArrayBufferLike>;
1597
+ data: Uint8Array<ArrayBufferLike>;
1598
+ created_at: bigint;
1599
+ updated_at: bigint;
1600
+ description?: string | undefined;
1601
+ version?: bigint | undefined;
1602
+ } | undefined;
1603
+ }>;
1604
+ }>>;
1605
+ }>>;
435
1606
  /**
436
1607
  * The context provided to the `assertSetDoc` hook.
437
1608
  *