@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,2577 +0,0 @@
1
- import * as z from 'zod';
2
- import { SatelliteEnvSchema } from '../schemas/satellite.env';
3
- /**
4
- * @see OnSetDoc
5
- */
6
- export declare const OnSetDocSchema: z.ZodObject<z.objectUtil.extendShape<{
7
- collections: z.ZodReadonly<z.ZodArray<z.ZodString, "many">>;
8
- }, {
9
- /**
10
- * A function that runs when the hook is triggered for the specified collections.
11
- *
12
- * @param {T} context - Contains information about the affected document(s).
13
- * @returns {Promise<void>} Resolves when the operation completes.
14
- */
15
- run: z.ZodFunction<z.ZodTuple<[z.ZodObject<{
16
- caller: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
17
- data: z.ZodObject<{
18
- collection: z.ZodString;
19
- key: z.ZodString;
20
- data: z.ZodObject<{
21
- before: z.ZodOptional<z.ZodObject<{
22
- owner: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
23
- data: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
24
- description: z.ZodOptional<z.ZodString>;
25
- created_at: z.ZodBigInt;
26
- updated_at: z.ZodBigInt;
27
- version: z.ZodOptional<z.ZodBigInt>;
28
- }, "strict", z.ZodTypeAny, {
29
- owner: Uint8Array<ArrayBufferLike>;
30
- data: Uint8Array<ArrayBufferLike>;
31
- created_at: bigint;
32
- updated_at: bigint;
33
- description?: string | undefined;
34
- version?: bigint | undefined;
35
- }, {
36
- owner: Uint8Array<ArrayBufferLike>;
37
- data: Uint8Array<ArrayBufferLike>;
38
- created_at: bigint;
39
- updated_at: bigint;
40
- description?: string | undefined;
41
- version?: bigint | undefined;
42
- }>>;
43
- after: z.ZodObject<{
44
- owner: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
45
- data: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
46
- description: z.ZodOptional<z.ZodString>;
47
- created_at: z.ZodBigInt;
48
- updated_at: z.ZodBigInt;
49
- version: z.ZodOptional<z.ZodBigInt>;
50
- }, "strict", z.ZodTypeAny, {
51
- owner: Uint8Array<ArrayBufferLike>;
52
- data: Uint8Array<ArrayBufferLike>;
53
- created_at: bigint;
54
- updated_at: bigint;
55
- description?: string | undefined;
56
- version?: bigint | undefined;
57
- }, {
58
- owner: Uint8Array<ArrayBufferLike>;
59
- data: Uint8Array<ArrayBufferLike>;
60
- created_at: bigint;
61
- updated_at: bigint;
62
- description?: string | undefined;
63
- version?: bigint | undefined;
64
- }>;
65
- }, "strict", z.ZodTypeAny, {
66
- after: {
67
- owner: Uint8Array<ArrayBufferLike>;
68
- data: Uint8Array<ArrayBufferLike>;
69
- created_at: bigint;
70
- updated_at: bigint;
71
- description?: string | undefined;
72
- version?: bigint | undefined;
73
- };
74
- before?: {
75
- owner: Uint8Array<ArrayBufferLike>;
76
- data: Uint8Array<ArrayBufferLike>;
77
- created_at: bigint;
78
- updated_at: bigint;
79
- description?: string | undefined;
80
- version?: bigint | undefined;
81
- } | undefined;
82
- }, {
83
- after: {
84
- owner: Uint8Array<ArrayBufferLike>;
85
- data: Uint8Array<ArrayBufferLike>;
86
- created_at: bigint;
87
- updated_at: bigint;
88
- description?: string | undefined;
89
- version?: bigint | undefined;
90
- };
91
- before?: {
92
- owner: Uint8Array<ArrayBufferLike>;
93
- data: Uint8Array<ArrayBufferLike>;
94
- created_at: bigint;
95
- updated_at: bigint;
96
- description?: string | undefined;
97
- version?: bigint | undefined;
98
- } | undefined;
99
- }>;
100
- }, "strict", z.ZodTypeAny, z.baseObjectOutputType<{
101
- collection: z.ZodString;
102
- key: z.ZodString;
103
- data: z.ZodObject<{
104
- before: z.ZodOptional<z.ZodObject<{
105
- owner: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
106
- data: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
107
- description: z.ZodOptional<z.ZodString>;
108
- created_at: z.ZodBigInt;
109
- updated_at: z.ZodBigInt;
110
- version: z.ZodOptional<z.ZodBigInt>;
111
- }, "strict", z.ZodTypeAny, {
112
- owner: Uint8Array<ArrayBufferLike>;
113
- data: Uint8Array<ArrayBufferLike>;
114
- created_at: bigint;
115
- updated_at: bigint;
116
- description?: string | undefined;
117
- version?: bigint | undefined;
118
- }, {
119
- owner: Uint8Array<ArrayBufferLike>;
120
- data: Uint8Array<ArrayBufferLike>;
121
- created_at: bigint;
122
- updated_at: bigint;
123
- description?: string | undefined;
124
- version?: bigint | undefined;
125
- }>>;
126
- after: z.ZodObject<{
127
- owner: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
128
- data: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
129
- description: z.ZodOptional<z.ZodString>;
130
- created_at: z.ZodBigInt;
131
- updated_at: z.ZodBigInt;
132
- version: z.ZodOptional<z.ZodBigInt>;
133
- }, "strict", z.ZodTypeAny, {
134
- owner: Uint8Array<ArrayBufferLike>;
135
- data: Uint8Array<ArrayBufferLike>;
136
- created_at: bigint;
137
- updated_at: bigint;
138
- description?: string | undefined;
139
- version?: bigint | undefined;
140
- }, {
141
- owner: Uint8Array<ArrayBufferLike>;
142
- data: Uint8Array<ArrayBufferLike>;
143
- created_at: bigint;
144
- updated_at: bigint;
145
- description?: string | undefined;
146
- version?: bigint | undefined;
147
- }>;
148
- }, "strict", z.ZodTypeAny, {
149
- after: {
150
- owner: Uint8Array<ArrayBufferLike>;
151
- data: Uint8Array<ArrayBufferLike>;
152
- created_at: bigint;
153
- updated_at: bigint;
154
- description?: string | undefined;
155
- version?: bigint | undefined;
156
- };
157
- before?: {
158
- owner: Uint8Array<ArrayBufferLike>;
159
- data: Uint8Array<ArrayBufferLike>;
160
- created_at: bigint;
161
- updated_at: bigint;
162
- description?: string | undefined;
163
- version?: bigint | undefined;
164
- } | undefined;
165
- }, {
166
- after: {
167
- owner: Uint8Array<ArrayBufferLike>;
168
- data: Uint8Array<ArrayBufferLike>;
169
- created_at: bigint;
170
- updated_at: bigint;
171
- description?: string | undefined;
172
- version?: bigint | undefined;
173
- };
174
- before?: {
175
- owner: Uint8Array<ArrayBufferLike>;
176
- data: Uint8Array<ArrayBufferLike>;
177
- created_at: bigint;
178
- updated_at: bigint;
179
- description?: string | undefined;
180
- version?: bigint | undefined;
181
- } | undefined;
182
- }>;
183
- }>, z.baseObjectInputType<{
184
- collection: z.ZodString;
185
- key: z.ZodString;
186
- data: z.ZodObject<{
187
- before: z.ZodOptional<z.ZodObject<{
188
- owner: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
189
- data: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
190
- description: z.ZodOptional<z.ZodString>;
191
- created_at: z.ZodBigInt;
192
- updated_at: z.ZodBigInt;
193
- version: z.ZodOptional<z.ZodBigInt>;
194
- }, "strict", z.ZodTypeAny, {
195
- owner: Uint8Array<ArrayBufferLike>;
196
- data: Uint8Array<ArrayBufferLike>;
197
- created_at: bigint;
198
- updated_at: bigint;
199
- description?: string | undefined;
200
- version?: bigint | undefined;
201
- }, {
202
- owner: Uint8Array<ArrayBufferLike>;
203
- data: Uint8Array<ArrayBufferLike>;
204
- created_at: bigint;
205
- updated_at: bigint;
206
- description?: string | undefined;
207
- version?: bigint | undefined;
208
- }>>;
209
- after: z.ZodObject<{
210
- owner: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
211
- data: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
212
- description: z.ZodOptional<z.ZodString>;
213
- created_at: z.ZodBigInt;
214
- updated_at: z.ZodBigInt;
215
- version: z.ZodOptional<z.ZodBigInt>;
216
- }, "strict", z.ZodTypeAny, {
217
- owner: Uint8Array<ArrayBufferLike>;
218
- data: Uint8Array<ArrayBufferLike>;
219
- created_at: bigint;
220
- updated_at: bigint;
221
- description?: string | undefined;
222
- version?: bigint | undefined;
223
- }, {
224
- owner: Uint8Array<ArrayBufferLike>;
225
- data: Uint8Array<ArrayBufferLike>;
226
- created_at: bigint;
227
- updated_at: bigint;
228
- description?: string | undefined;
229
- version?: bigint | undefined;
230
- }>;
231
- }, "strict", z.ZodTypeAny, {
232
- after: {
233
- owner: Uint8Array<ArrayBufferLike>;
234
- data: Uint8Array<ArrayBufferLike>;
235
- created_at: bigint;
236
- updated_at: bigint;
237
- description?: string | undefined;
238
- version?: bigint | undefined;
239
- };
240
- before?: {
241
- owner: Uint8Array<ArrayBufferLike>;
242
- data: Uint8Array<ArrayBufferLike>;
243
- created_at: bigint;
244
- updated_at: bigint;
245
- description?: string | undefined;
246
- version?: bigint | undefined;
247
- } | undefined;
248
- }, {
249
- after: {
250
- owner: Uint8Array<ArrayBufferLike>;
251
- data: Uint8Array<ArrayBufferLike>;
252
- created_at: bigint;
253
- updated_at: bigint;
254
- description?: string | undefined;
255
- version?: bigint | undefined;
256
- };
257
- before?: {
258
- owner: Uint8Array<ArrayBufferLike>;
259
- data: Uint8Array<ArrayBufferLike>;
260
- created_at: bigint;
261
- updated_at: bigint;
262
- description?: string | undefined;
263
- version?: bigint | undefined;
264
- } | undefined;
265
- }>;
266
- }>>;
267
- }, "strict", z.ZodTypeAny, z.baseObjectOutputType<{
268
- caller: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
269
- data: z.ZodObject<{
270
- collection: z.ZodString;
271
- key: z.ZodString;
272
- data: z.ZodObject<{
273
- before: z.ZodOptional<z.ZodObject<{
274
- owner: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
275
- data: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
276
- description: z.ZodOptional<z.ZodString>;
277
- created_at: z.ZodBigInt;
278
- updated_at: z.ZodBigInt;
279
- version: z.ZodOptional<z.ZodBigInt>;
280
- }, "strict", z.ZodTypeAny, {
281
- owner: Uint8Array<ArrayBufferLike>;
282
- data: Uint8Array<ArrayBufferLike>;
283
- created_at: bigint;
284
- updated_at: bigint;
285
- description?: string | undefined;
286
- version?: bigint | undefined;
287
- }, {
288
- owner: Uint8Array<ArrayBufferLike>;
289
- data: Uint8Array<ArrayBufferLike>;
290
- created_at: bigint;
291
- updated_at: bigint;
292
- description?: string | undefined;
293
- version?: bigint | undefined;
294
- }>>;
295
- after: z.ZodObject<{
296
- owner: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
297
- data: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
298
- description: z.ZodOptional<z.ZodString>;
299
- created_at: z.ZodBigInt;
300
- updated_at: z.ZodBigInt;
301
- version: z.ZodOptional<z.ZodBigInt>;
302
- }, "strict", z.ZodTypeAny, {
303
- owner: Uint8Array<ArrayBufferLike>;
304
- data: Uint8Array<ArrayBufferLike>;
305
- created_at: bigint;
306
- updated_at: bigint;
307
- description?: string | undefined;
308
- version?: bigint | undefined;
309
- }, {
310
- owner: Uint8Array<ArrayBufferLike>;
311
- data: Uint8Array<ArrayBufferLike>;
312
- created_at: bigint;
313
- updated_at: bigint;
314
- description?: string | undefined;
315
- version?: bigint | undefined;
316
- }>;
317
- }, "strict", z.ZodTypeAny, {
318
- after: {
319
- owner: Uint8Array<ArrayBufferLike>;
320
- data: Uint8Array<ArrayBufferLike>;
321
- created_at: bigint;
322
- updated_at: bigint;
323
- description?: string | undefined;
324
- version?: bigint | undefined;
325
- };
326
- before?: {
327
- owner: Uint8Array<ArrayBufferLike>;
328
- data: Uint8Array<ArrayBufferLike>;
329
- created_at: bigint;
330
- updated_at: bigint;
331
- description?: string | undefined;
332
- version?: bigint | undefined;
333
- } | undefined;
334
- }, {
335
- after: {
336
- owner: Uint8Array<ArrayBufferLike>;
337
- data: Uint8Array<ArrayBufferLike>;
338
- created_at: bigint;
339
- updated_at: bigint;
340
- description?: string | undefined;
341
- version?: bigint | undefined;
342
- };
343
- before?: {
344
- owner: Uint8Array<ArrayBufferLike>;
345
- data: Uint8Array<ArrayBufferLike>;
346
- created_at: bigint;
347
- updated_at: bigint;
348
- description?: string | undefined;
349
- version?: bigint | undefined;
350
- } | undefined;
351
- }>;
352
- }, "strict", z.ZodTypeAny, z.baseObjectOutputType<{
353
- collection: z.ZodString;
354
- key: z.ZodString;
355
- data: z.ZodObject<{
356
- before: z.ZodOptional<z.ZodObject<{
357
- owner: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
358
- data: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
359
- description: z.ZodOptional<z.ZodString>;
360
- created_at: z.ZodBigInt;
361
- updated_at: z.ZodBigInt;
362
- version: z.ZodOptional<z.ZodBigInt>;
363
- }, "strict", z.ZodTypeAny, {
364
- owner: Uint8Array<ArrayBufferLike>;
365
- data: Uint8Array<ArrayBufferLike>;
366
- created_at: bigint;
367
- updated_at: bigint;
368
- description?: string | undefined;
369
- version?: bigint | undefined;
370
- }, {
371
- owner: Uint8Array<ArrayBufferLike>;
372
- data: Uint8Array<ArrayBufferLike>;
373
- created_at: bigint;
374
- updated_at: bigint;
375
- description?: string | undefined;
376
- version?: bigint | undefined;
377
- }>>;
378
- after: z.ZodObject<{
379
- owner: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
380
- data: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
381
- description: z.ZodOptional<z.ZodString>;
382
- created_at: z.ZodBigInt;
383
- updated_at: z.ZodBigInt;
384
- version: z.ZodOptional<z.ZodBigInt>;
385
- }, "strict", z.ZodTypeAny, {
386
- owner: Uint8Array<ArrayBufferLike>;
387
- data: Uint8Array<ArrayBufferLike>;
388
- created_at: bigint;
389
- updated_at: bigint;
390
- description?: string | undefined;
391
- version?: bigint | undefined;
392
- }, {
393
- owner: Uint8Array<ArrayBufferLike>;
394
- data: Uint8Array<ArrayBufferLike>;
395
- created_at: bigint;
396
- updated_at: bigint;
397
- description?: string | undefined;
398
- version?: bigint | undefined;
399
- }>;
400
- }, "strict", z.ZodTypeAny, {
401
- after: {
402
- owner: Uint8Array<ArrayBufferLike>;
403
- data: Uint8Array<ArrayBufferLike>;
404
- created_at: bigint;
405
- updated_at: bigint;
406
- description?: string | undefined;
407
- version?: bigint | undefined;
408
- };
409
- before?: {
410
- owner: Uint8Array<ArrayBufferLike>;
411
- data: Uint8Array<ArrayBufferLike>;
412
- created_at: bigint;
413
- updated_at: bigint;
414
- description?: string | undefined;
415
- version?: bigint | undefined;
416
- } | undefined;
417
- }, {
418
- after: {
419
- owner: Uint8Array<ArrayBufferLike>;
420
- data: Uint8Array<ArrayBufferLike>;
421
- created_at: bigint;
422
- updated_at: bigint;
423
- description?: string | undefined;
424
- version?: bigint | undefined;
425
- };
426
- before?: {
427
- owner: Uint8Array<ArrayBufferLike>;
428
- data: Uint8Array<ArrayBufferLike>;
429
- created_at: bigint;
430
- updated_at: bigint;
431
- description?: string | undefined;
432
- version?: bigint | undefined;
433
- } | undefined;
434
- }>;
435
- }>, z.baseObjectInputType<{
436
- collection: z.ZodString;
437
- key: z.ZodString;
438
- data: z.ZodObject<{
439
- before: z.ZodOptional<z.ZodObject<{
440
- owner: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
441
- data: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
442
- description: z.ZodOptional<z.ZodString>;
443
- created_at: z.ZodBigInt;
444
- updated_at: z.ZodBigInt;
445
- version: z.ZodOptional<z.ZodBigInt>;
446
- }, "strict", z.ZodTypeAny, {
447
- owner: Uint8Array<ArrayBufferLike>;
448
- data: Uint8Array<ArrayBufferLike>;
449
- created_at: bigint;
450
- updated_at: bigint;
451
- description?: string | undefined;
452
- version?: bigint | undefined;
453
- }, {
454
- owner: Uint8Array<ArrayBufferLike>;
455
- data: Uint8Array<ArrayBufferLike>;
456
- created_at: bigint;
457
- updated_at: bigint;
458
- description?: string | undefined;
459
- version?: bigint | undefined;
460
- }>>;
461
- after: z.ZodObject<{
462
- owner: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
463
- data: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
464
- description: z.ZodOptional<z.ZodString>;
465
- created_at: z.ZodBigInt;
466
- updated_at: z.ZodBigInt;
467
- version: z.ZodOptional<z.ZodBigInt>;
468
- }, "strict", z.ZodTypeAny, {
469
- owner: Uint8Array<ArrayBufferLike>;
470
- data: Uint8Array<ArrayBufferLike>;
471
- created_at: bigint;
472
- updated_at: bigint;
473
- description?: string | undefined;
474
- version?: bigint | undefined;
475
- }, {
476
- owner: Uint8Array<ArrayBufferLike>;
477
- data: Uint8Array<ArrayBufferLike>;
478
- created_at: bigint;
479
- updated_at: bigint;
480
- description?: string | undefined;
481
- version?: bigint | undefined;
482
- }>;
483
- }, "strict", z.ZodTypeAny, {
484
- after: {
485
- owner: Uint8Array<ArrayBufferLike>;
486
- data: Uint8Array<ArrayBufferLike>;
487
- created_at: bigint;
488
- updated_at: bigint;
489
- description?: string | undefined;
490
- version?: bigint | undefined;
491
- };
492
- before?: {
493
- owner: Uint8Array<ArrayBufferLike>;
494
- data: Uint8Array<ArrayBufferLike>;
495
- created_at: bigint;
496
- updated_at: bigint;
497
- description?: string | undefined;
498
- version?: bigint | undefined;
499
- } | undefined;
500
- }, {
501
- after: {
502
- owner: Uint8Array<ArrayBufferLike>;
503
- data: Uint8Array<ArrayBufferLike>;
504
- created_at: bigint;
505
- updated_at: bigint;
506
- description?: string | undefined;
507
- version?: bigint | undefined;
508
- };
509
- before?: {
510
- owner: Uint8Array<ArrayBufferLike>;
511
- data: Uint8Array<ArrayBufferLike>;
512
- created_at: bigint;
513
- updated_at: bigint;
514
- description?: string | undefined;
515
- version?: bigint | undefined;
516
- } | undefined;
517
- }>;
518
- }>>;
519
- }>, z.baseObjectInputType<{
520
- caller: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
521
- data: z.ZodObject<{
522
- collection: z.ZodString;
523
- key: z.ZodString;
524
- data: z.ZodObject<{
525
- before: z.ZodOptional<z.ZodObject<{
526
- owner: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
527
- data: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
528
- description: z.ZodOptional<z.ZodString>;
529
- created_at: z.ZodBigInt;
530
- updated_at: z.ZodBigInt;
531
- version: z.ZodOptional<z.ZodBigInt>;
532
- }, "strict", z.ZodTypeAny, {
533
- owner: Uint8Array<ArrayBufferLike>;
534
- data: Uint8Array<ArrayBufferLike>;
535
- created_at: bigint;
536
- updated_at: bigint;
537
- description?: string | undefined;
538
- version?: bigint | undefined;
539
- }, {
540
- owner: Uint8Array<ArrayBufferLike>;
541
- data: Uint8Array<ArrayBufferLike>;
542
- created_at: bigint;
543
- updated_at: bigint;
544
- description?: string | undefined;
545
- version?: bigint | undefined;
546
- }>>;
547
- after: z.ZodObject<{
548
- owner: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
549
- data: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
550
- description: z.ZodOptional<z.ZodString>;
551
- created_at: z.ZodBigInt;
552
- updated_at: z.ZodBigInt;
553
- version: z.ZodOptional<z.ZodBigInt>;
554
- }, "strict", z.ZodTypeAny, {
555
- owner: Uint8Array<ArrayBufferLike>;
556
- data: Uint8Array<ArrayBufferLike>;
557
- created_at: bigint;
558
- updated_at: bigint;
559
- description?: string | undefined;
560
- version?: bigint | undefined;
561
- }, {
562
- owner: Uint8Array<ArrayBufferLike>;
563
- data: Uint8Array<ArrayBufferLike>;
564
- created_at: bigint;
565
- updated_at: bigint;
566
- description?: string | undefined;
567
- version?: bigint | undefined;
568
- }>;
569
- }, "strict", z.ZodTypeAny, {
570
- after: {
571
- owner: Uint8Array<ArrayBufferLike>;
572
- data: Uint8Array<ArrayBufferLike>;
573
- created_at: bigint;
574
- updated_at: bigint;
575
- description?: string | undefined;
576
- version?: bigint | undefined;
577
- };
578
- before?: {
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
- } | undefined;
586
- }, {
587
- after: {
588
- owner: Uint8Array<ArrayBufferLike>;
589
- data: Uint8Array<ArrayBufferLike>;
590
- created_at: bigint;
591
- updated_at: bigint;
592
- description?: string | undefined;
593
- version?: bigint | undefined;
594
- };
595
- before?: {
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
- } | undefined;
603
- }>;
604
- }, "strict", z.ZodTypeAny, z.baseObjectOutputType<{
605
- collection: z.ZodString;
606
- key: z.ZodString;
607
- data: z.ZodObject<{
608
- before: z.ZodOptional<z.ZodObject<{
609
- owner: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
610
- data: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
611
- description: z.ZodOptional<z.ZodString>;
612
- created_at: z.ZodBigInt;
613
- updated_at: z.ZodBigInt;
614
- version: z.ZodOptional<z.ZodBigInt>;
615
- }, "strict", z.ZodTypeAny, {
616
- owner: Uint8Array<ArrayBufferLike>;
617
- data: Uint8Array<ArrayBufferLike>;
618
- created_at: bigint;
619
- updated_at: bigint;
620
- description?: string | undefined;
621
- version?: bigint | undefined;
622
- }, {
623
- owner: Uint8Array<ArrayBufferLike>;
624
- data: Uint8Array<ArrayBufferLike>;
625
- created_at: bigint;
626
- updated_at: bigint;
627
- description?: string | undefined;
628
- version?: bigint | undefined;
629
- }>>;
630
- after: z.ZodObject<{
631
- owner: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
632
- data: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
633
- description: z.ZodOptional<z.ZodString>;
634
- created_at: z.ZodBigInt;
635
- updated_at: z.ZodBigInt;
636
- version: z.ZodOptional<z.ZodBigInt>;
637
- }, "strict", z.ZodTypeAny, {
638
- owner: Uint8Array<ArrayBufferLike>;
639
- data: Uint8Array<ArrayBufferLike>;
640
- created_at: bigint;
641
- updated_at: bigint;
642
- description?: string | undefined;
643
- version?: bigint | undefined;
644
- }, {
645
- owner: Uint8Array<ArrayBufferLike>;
646
- data: Uint8Array<ArrayBufferLike>;
647
- created_at: bigint;
648
- updated_at: bigint;
649
- description?: string | undefined;
650
- version?: bigint | undefined;
651
- }>;
652
- }, "strict", z.ZodTypeAny, {
653
- after: {
654
- owner: Uint8Array<ArrayBufferLike>;
655
- data: Uint8Array<ArrayBufferLike>;
656
- created_at: bigint;
657
- updated_at: bigint;
658
- description?: string | undefined;
659
- version?: bigint | undefined;
660
- };
661
- before?: {
662
- owner: Uint8Array<ArrayBufferLike>;
663
- data: Uint8Array<ArrayBufferLike>;
664
- created_at: bigint;
665
- updated_at: bigint;
666
- description?: string | undefined;
667
- version?: bigint | undefined;
668
- } | undefined;
669
- }, {
670
- after: {
671
- owner: Uint8Array<ArrayBufferLike>;
672
- data: Uint8Array<ArrayBufferLike>;
673
- created_at: bigint;
674
- updated_at: bigint;
675
- description?: string | undefined;
676
- version?: bigint | undefined;
677
- };
678
- before?: {
679
- owner: Uint8Array<ArrayBufferLike>;
680
- data: Uint8Array<ArrayBufferLike>;
681
- created_at: bigint;
682
- updated_at: bigint;
683
- description?: string | undefined;
684
- version?: bigint | undefined;
685
- } | undefined;
686
- }>;
687
- }>, z.baseObjectInputType<{
688
- collection: z.ZodString;
689
- key: z.ZodString;
690
- data: z.ZodObject<{
691
- before: z.ZodOptional<z.ZodObject<{
692
- owner: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
693
- data: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
694
- description: z.ZodOptional<z.ZodString>;
695
- created_at: z.ZodBigInt;
696
- updated_at: z.ZodBigInt;
697
- version: z.ZodOptional<z.ZodBigInt>;
698
- }, "strict", z.ZodTypeAny, {
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
- }, {
706
- owner: Uint8Array<ArrayBufferLike>;
707
- data: Uint8Array<ArrayBufferLike>;
708
- created_at: bigint;
709
- updated_at: bigint;
710
- description?: string | undefined;
711
- version?: bigint | undefined;
712
- }>>;
713
- after: z.ZodObject<{
714
- owner: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
715
- data: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
716
- description: z.ZodOptional<z.ZodString>;
717
- created_at: z.ZodBigInt;
718
- updated_at: z.ZodBigInt;
719
- version: z.ZodOptional<z.ZodBigInt>;
720
- }, "strict", z.ZodTypeAny, {
721
- owner: Uint8Array<ArrayBufferLike>;
722
- data: Uint8Array<ArrayBufferLike>;
723
- created_at: bigint;
724
- updated_at: bigint;
725
- description?: string | undefined;
726
- version?: bigint | undefined;
727
- }, {
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
- }, "strict", z.ZodTypeAny, {
736
- after: {
737
- owner: Uint8Array<ArrayBufferLike>;
738
- data: Uint8Array<ArrayBufferLike>;
739
- created_at: bigint;
740
- updated_at: bigint;
741
- description?: string | undefined;
742
- version?: bigint | undefined;
743
- };
744
- before?: {
745
- owner: Uint8Array<ArrayBufferLike>;
746
- data: Uint8Array<ArrayBufferLike>;
747
- created_at: bigint;
748
- updated_at: bigint;
749
- description?: string | undefined;
750
- version?: bigint | undefined;
751
- } | undefined;
752
- }, {
753
- after: {
754
- owner: Uint8Array<ArrayBufferLike>;
755
- data: Uint8Array<ArrayBufferLike>;
756
- created_at: bigint;
757
- updated_at: bigint;
758
- description?: string | undefined;
759
- version?: bigint | undefined;
760
- };
761
- before?: {
762
- owner: Uint8Array<ArrayBufferLike>;
763
- data: Uint8Array<ArrayBufferLike>;
764
- created_at: bigint;
765
- updated_at: bigint;
766
- description?: string | undefined;
767
- version?: bigint | undefined;
768
- } | undefined;
769
- }>;
770
- }>>;
771
- }>>], z.ZodUnknown>, z.ZodUnion<[z.ZodPromise<z.ZodVoid>, z.ZodVoid]>>;
772
- }>, "strict", z.ZodTypeAny, {
773
- collections: readonly string[];
774
- run: (args_0: z.baseObjectInputType<{
775
- caller: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
776
- data: z.ZodObject<{
777
- collection: z.ZodString;
778
- key: z.ZodString;
779
- data: z.ZodObject<{
780
- before: z.ZodOptional<z.ZodObject<{
781
- owner: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
782
- data: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
783
- description: z.ZodOptional<z.ZodString>;
784
- created_at: z.ZodBigInt;
785
- updated_at: z.ZodBigInt;
786
- version: z.ZodOptional<z.ZodBigInt>;
787
- }, "strict", z.ZodTypeAny, {
788
- owner: Uint8Array<ArrayBufferLike>;
789
- data: Uint8Array<ArrayBufferLike>;
790
- created_at: bigint;
791
- updated_at: bigint;
792
- description?: string | undefined;
793
- version?: bigint | undefined;
794
- }, {
795
- owner: Uint8Array<ArrayBufferLike>;
796
- data: Uint8Array<ArrayBufferLike>;
797
- created_at: bigint;
798
- updated_at: bigint;
799
- description?: string | undefined;
800
- version?: bigint | undefined;
801
- }>>;
802
- after: z.ZodObject<{
803
- owner: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
804
- data: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
805
- description: z.ZodOptional<z.ZodString>;
806
- created_at: z.ZodBigInt;
807
- updated_at: z.ZodBigInt;
808
- version: z.ZodOptional<z.ZodBigInt>;
809
- }, "strict", z.ZodTypeAny, {
810
- owner: Uint8Array<ArrayBufferLike>;
811
- data: Uint8Array<ArrayBufferLike>;
812
- created_at: bigint;
813
- updated_at: bigint;
814
- description?: string | undefined;
815
- version?: bigint | undefined;
816
- }, {
817
- owner: Uint8Array<ArrayBufferLike>;
818
- data: Uint8Array<ArrayBufferLike>;
819
- created_at: bigint;
820
- updated_at: bigint;
821
- description?: string | undefined;
822
- version?: bigint | undefined;
823
- }>;
824
- }, "strict", z.ZodTypeAny, {
825
- after: {
826
- owner: Uint8Array<ArrayBufferLike>;
827
- data: Uint8Array<ArrayBufferLike>;
828
- created_at: bigint;
829
- updated_at: bigint;
830
- description?: string | undefined;
831
- version?: bigint | undefined;
832
- };
833
- before?: {
834
- owner: Uint8Array<ArrayBufferLike>;
835
- data: Uint8Array<ArrayBufferLike>;
836
- created_at: bigint;
837
- updated_at: bigint;
838
- description?: string | undefined;
839
- version?: bigint | undefined;
840
- } | undefined;
841
- }, {
842
- after: {
843
- owner: Uint8Array<ArrayBufferLike>;
844
- data: Uint8Array<ArrayBufferLike>;
845
- created_at: bigint;
846
- updated_at: bigint;
847
- description?: string | undefined;
848
- version?: bigint | undefined;
849
- };
850
- before?: {
851
- owner: Uint8Array<ArrayBufferLike>;
852
- data: Uint8Array<ArrayBufferLike>;
853
- created_at: bigint;
854
- updated_at: bigint;
855
- description?: string | undefined;
856
- version?: bigint | undefined;
857
- } | undefined;
858
- }>;
859
- }, "strict", z.ZodTypeAny, z.baseObjectOutputType<{
860
- collection: z.ZodString;
861
- key: z.ZodString;
862
- data: z.ZodObject<{
863
- before: z.ZodOptional<z.ZodObject<{
864
- owner: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
865
- data: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
866
- description: z.ZodOptional<z.ZodString>;
867
- created_at: z.ZodBigInt;
868
- updated_at: z.ZodBigInt;
869
- version: z.ZodOptional<z.ZodBigInt>;
870
- }, "strict", z.ZodTypeAny, {
871
- owner: Uint8Array<ArrayBufferLike>;
872
- data: Uint8Array<ArrayBufferLike>;
873
- created_at: bigint;
874
- updated_at: bigint;
875
- description?: string | undefined;
876
- version?: bigint | undefined;
877
- }, {
878
- owner: Uint8Array<ArrayBufferLike>;
879
- data: Uint8Array<ArrayBufferLike>;
880
- created_at: bigint;
881
- updated_at: bigint;
882
- description?: string | undefined;
883
- version?: bigint | undefined;
884
- }>>;
885
- after: z.ZodObject<{
886
- owner: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
887
- data: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
888
- description: z.ZodOptional<z.ZodString>;
889
- created_at: z.ZodBigInt;
890
- updated_at: z.ZodBigInt;
891
- version: z.ZodOptional<z.ZodBigInt>;
892
- }, "strict", z.ZodTypeAny, {
893
- owner: Uint8Array<ArrayBufferLike>;
894
- data: Uint8Array<ArrayBufferLike>;
895
- created_at: bigint;
896
- updated_at: bigint;
897
- description?: string | undefined;
898
- version?: bigint | undefined;
899
- }, {
900
- owner: Uint8Array<ArrayBufferLike>;
901
- data: Uint8Array<ArrayBufferLike>;
902
- created_at: bigint;
903
- updated_at: bigint;
904
- description?: string | undefined;
905
- version?: bigint | undefined;
906
- }>;
907
- }, "strict", z.ZodTypeAny, {
908
- after: {
909
- owner: Uint8Array<ArrayBufferLike>;
910
- data: Uint8Array<ArrayBufferLike>;
911
- created_at: bigint;
912
- updated_at: bigint;
913
- description?: string | undefined;
914
- version?: bigint | undefined;
915
- };
916
- before?: {
917
- owner: Uint8Array<ArrayBufferLike>;
918
- data: Uint8Array<ArrayBufferLike>;
919
- created_at: bigint;
920
- updated_at: bigint;
921
- description?: string | undefined;
922
- version?: bigint | undefined;
923
- } | undefined;
924
- }, {
925
- after: {
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
- before?: {
934
- owner: Uint8Array<ArrayBufferLike>;
935
- data: Uint8Array<ArrayBufferLike>;
936
- created_at: bigint;
937
- updated_at: bigint;
938
- description?: string | undefined;
939
- version?: bigint | undefined;
940
- } | undefined;
941
- }>;
942
- }>, z.baseObjectInputType<{
943
- collection: z.ZodString;
944
- key: z.ZodString;
945
- data: z.ZodObject<{
946
- before: z.ZodOptional<z.ZodObject<{
947
- owner: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
948
- data: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
949
- description: z.ZodOptional<z.ZodString>;
950
- created_at: z.ZodBigInt;
951
- updated_at: z.ZodBigInt;
952
- version: z.ZodOptional<z.ZodBigInt>;
953
- }, "strict", z.ZodTypeAny, {
954
- owner: Uint8Array<ArrayBufferLike>;
955
- data: Uint8Array<ArrayBufferLike>;
956
- created_at: bigint;
957
- updated_at: bigint;
958
- description?: string | undefined;
959
- version?: bigint | undefined;
960
- }, {
961
- owner: Uint8Array<ArrayBufferLike>;
962
- data: Uint8Array<ArrayBufferLike>;
963
- created_at: bigint;
964
- updated_at: bigint;
965
- description?: string | undefined;
966
- version?: bigint | undefined;
967
- }>>;
968
- after: z.ZodObject<{
969
- owner: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
970
- data: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
971
- description: z.ZodOptional<z.ZodString>;
972
- created_at: z.ZodBigInt;
973
- updated_at: z.ZodBigInt;
974
- version: z.ZodOptional<z.ZodBigInt>;
975
- }, "strict", z.ZodTypeAny, {
976
- owner: Uint8Array<ArrayBufferLike>;
977
- data: Uint8Array<ArrayBufferLike>;
978
- created_at: bigint;
979
- updated_at: bigint;
980
- description?: string | undefined;
981
- version?: bigint | undefined;
982
- }, {
983
- owner: Uint8Array<ArrayBufferLike>;
984
- data: Uint8Array<ArrayBufferLike>;
985
- created_at: bigint;
986
- updated_at: bigint;
987
- description?: string | undefined;
988
- version?: bigint | undefined;
989
- }>;
990
- }, "strict", z.ZodTypeAny, {
991
- after: {
992
- owner: Uint8Array<ArrayBufferLike>;
993
- data: Uint8Array<ArrayBufferLike>;
994
- created_at: bigint;
995
- updated_at: bigint;
996
- description?: string | undefined;
997
- version?: bigint | undefined;
998
- };
999
- before?: {
1000
- owner: Uint8Array<ArrayBufferLike>;
1001
- data: Uint8Array<ArrayBufferLike>;
1002
- created_at: bigint;
1003
- updated_at: bigint;
1004
- description?: string | undefined;
1005
- version?: bigint | undefined;
1006
- } | undefined;
1007
- }, {
1008
- after: {
1009
- owner: Uint8Array<ArrayBufferLike>;
1010
- data: Uint8Array<ArrayBufferLike>;
1011
- created_at: bigint;
1012
- updated_at: bigint;
1013
- description?: string | undefined;
1014
- version?: bigint | undefined;
1015
- };
1016
- before?: {
1017
- owner: Uint8Array<ArrayBufferLike>;
1018
- data: Uint8Array<ArrayBufferLike>;
1019
- created_at: bigint;
1020
- updated_at: bigint;
1021
- description?: string | undefined;
1022
- version?: bigint | undefined;
1023
- } | undefined;
1024
- }>;
1025
- }>>;
1026
- }>, ...args: unknown[]) => void | Promise<void>;
1027
- }, {
1028
- collections: readonly string[];
1029
- run: (args_0: z.baseObjectOutputType<{
1030
- caller: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
1031
- data: z.ZodObject<{
1032
- collection: z.ZodString;
1033
- key: z.ZodString;
1034
- data: z.ZodObject<{
1035
- before: z.ZodOptional<z.ZodObject<{
1036
- owner: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
1037
- data: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
1038
- description: z.ZodOptional<z.ZodString>;
1039
- created_at: z.ZodBigInt;
1040
- updated_at: z.ZodBigInt;
1041
- version: z.ZodOptional<z.ZodBigInt>;
1042
- }, "strict", z.ZodTypeAny, {
1043
- owner: Uint8Array<ArrayBufferLike>;
1044
- data: Uint8Array<ArrayBufferLike>;
1045
- created_at: bigint;
1046
- updated_at: bigint;
1047
- description?: string | undefined;
1048
- version?: bigint | undefined;
1049
- }, {
1050
- owner: Uint8Array<ArrayBufferLike>;
1051
- data: Uint8Array<ArrayBufferLike>;
1052
- created_at: bigint;
1053
- updated_at: bigint;
1054
- description?: string | undefined;
1055
- version?: bigint | undefined;
1056
- }>>;
1057
- after: z.ZodObject<{
1058
- owner: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
1059
- data: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
1060
- description: z.ZodOptional<z.ZodString>;
1061
- created_at: z.ZodBigInt;
1062
- updated_at: z.ZodBigInt;
1063
- version: z.ZodOptional<z.ZodBigInt>;
1064
- }, "strict", z.ZodTypeAny, {
1065
- owner: Uint8Array<ArrayBufferLike>;
1066
- data: Uint8Array<ArrayBufferLike>;
1067
- created_at: bigint;
1068
- updated_at: bigint;
1069
- description?: string | undefined;
1070
- version?: bigint | undefined;
1071
- }, {
1072
- owner: Uint8Array<ArrayBufferLike>;
1073
- data: Uint8Array<ArrayBufferLike>;
1074
- created_at: bigint;
1075
- updated_at: bigint;
1076
- description?: string | undefined;
1077
- version?: bigint | undefined;
1078
- }>;
1079
- }, "strict", z.ZodTypeAny, {
1080
- after: {
1081
- owner: Uint8Array<ArrayBufferLike>;
1082
- data: Uint8Array<ArrayBufferLike>;
1083
- created_at: bigint;
1084
- updated_at: bigint;
1085
- description?: string | undefined;
1086
- version?: bigint | undefined;
1087
- };
1088
- before?: {
1089
- owner: Uint8Array<ArrayBufferLike>;
1090
- data: Uint8Array<ArrayBufferLike>;
1091
- created_at: bigint;
1092
- updated_at: bigint;
1093
- description?: string | undefined;
1094
- version?: bigint | undefined;
1095
- } | undefined;
1096
- }, {
1097
- after: {
1098
- owner: Uint8Array<ArrayBufferLike>;
1099
- data: Uint8Array<ArrayBufferLike>;
1100
- created_at: bigint;
1101
- updated_at: bigint;
1102
- description?: string | undefined;
1103
- version?: bigint | undefined;
1104
- };
1105
- before?: {
1106
- owner: Uint8Array<ArrayBufferLike>;
1107
- data: Uint8Array<ArrayBufferLike>;
1108
- created_at: bigint;
1109
- updated_at: bigint;
1110
- description?: string | undefined;
1111
- version?: bigint | undefined;
1112
- } | undefined;
1113
- }>;
1114
- }, "strict", z.ZodTypeAny, z.baseObjectOutputType<{
1115
- collection: z.ZodString;
1116
- key: z.ZodString;
1117
- data: z.ZodObject<{
1118
- before: z.ZodOptional<z.ZodObject<{
1119
- owner: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
1120
- data: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
1121
- description: z.ZodOptional<z.ZodString>;
1122
- created_at: z.ZodBigInt;
1123
- updated_at: z.ZodBigInt;
1124
- version: z.ZodOptional<z.ZodBigInt>;
1125
- }, "strict", z.ZodTypeAny, {
1126
- owner: Uint8Array<ArrayBufferLike>;
1127
- data: Uint8Array<ArrayBufferLike>;
1128
- created_at: bigint;
1129
- updated_at: bigint;
1130
- description?: string | undefined;
1131
- version?: bigint | undefined;
1132
- }, {
1133
- owner: Uint8Array<ArrayBufferLike>;
1134
- data: Uint8Array<ArrayBufferLike>;
1135
- created_at: bigint;
1136
- updated_at: bigint;
1137
- description?: string | undefined;
1138
- version?: bigint | undefined;
1139
- }>>;
1140
- after: z.ZodObject<{
1141
- owner: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
1142
- data: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
1143
- description: z.ZodOptional<z.ZodString>;
1144
- created_at: z.ZodBigInt;
1145
- updated_at: z.ZodBigInt;
1146
- version: z.ZodOptional<z.ZodBigInt>;
1147
- }, "strict", z.ZodTypeAny, {
1148
- owner: Uint8Array<ArrayBufferLike>;
1149
- data: Uint8Array<ArrayBufferLike>;
1150
- created_at: bigint;
1151
- updated_at: bigint;
1152
- description?: string | undefined;
1153
- version?: bigint | undefined;
1154
- }, {
1155
- owner: Uint8Array<ArrayBufferLike>;
1156
- data: Uint8Array<ArrayBufferLike>;
1157
- created_at: bigint;
1158
- updated_at: bigint;
1159
- description?: string | undefined;
1160
- version?: bigint | undefined;
1161
- }>;
1162
- }, "strict", z.ZodTypeAny, {
1163
- after: {
1164
- owner: Uint8Array<ArrayBufferLike>;
1165
- data: Uint8Array<ArrayBufferLike>;
1166
- created_at: bigint;
1167
- updated_at: bigint;
1168
- description?: string | undefined;
1169
- version?: bigint | undefined;
1170
- };
1171
- before?: {
1172
- owner: Uint8Array<ArrayBufferLike>;
1173
- data: Uint8Array<ArrayBufferLike>;
1174
- created_at: bigint;
1175
- updated_at: bigint;
1176
- description?: string | undefined;
1177
- version?: bigint | undefined;
1178
- } | undefined;
1179
- }, {
1180
- after: {
1181
- owner: Uint8Array<ArrayBufferLike>;
1182
- data: Uint8Array<ArrayBufferLike>;
1183
- created_at: bigint;
1184
- updated_at: bigint;
1185
- description?: string | undefined;
1186
- version?: bigint | undefined;
1187
- };
1188
- before?: {
1189
- owner: Uint8Array<ArrayBufferLike>;
1190
- data: Uint8Array<ArrayBufferLike>;
1191
- created_at: bigint;
1192
- updated_at: bigint;
1193
- description?: string | undefined;
1194
- version?: bigint | undefined;
1195
- } | undefined;
1196
- }>;
1197
- }>, z.baseObjectInputType<{
1198
- collection: z.ZodString;
1199
- key: z.ZodString;
1200
- data: z.ZodObject<{
1201
- before: z.ZodOptional<z.ZodObject<{
1202
- owner: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
1203
- data: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
1204
- description: z.ZodOptional<z.ZodString>;
1205
- created_at: z.ZodBigInt;
1206
- updated_at: z.ZodBigInt;
1207
- version: z.ZodOptional<z.ZodBigInt>;
1208
- }, "strict", z.ZodTypeAny, {
1209
- owner: Uint8Array<ArrayBufferLike>;
1210
- data: Uint8Array<ArrayBufferLike>;
1211
- created_at: bigint;
1212
- updated_at: bigint;
1213
- description?: string | undefined;
1214
- version?: bigint | undefined;
1215
- }, {
1216
- owner: Uint8Array<ArrayBufferLike>;
1217
- data: Uint8Array<ArrayBufferLike>;
1218
- created_at: bigint;
1219
- updated_at: bigint;
1220
- description?: string | undefined;
1221
- version?: bigint | undefined;
1222
- }>>;
1223
- after: z.ZodObject<{
1224
- owner: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
1225
- data: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
1226
- description: z.ZodOptional<z.ZodString>;
1227
- created_at: z.ZodBigInt;
1228
- updated_at: z.ZodBigInt;
1229
- version: z.ZodOptional<z.ZodBigInt>;
1230
- }, "strict", z.ZodTypeAny, {
1231
- owner: Uint8Array<ArrayBufferLike>;
1232
- data: Uint8Array<ArrayBufferLike>;
1233
- created_at: bigint;
1234
- updated_at: bigint;
1235
- description?: string | undefined;
1236
- version?: bigint | undefined;
1237
- }, {
1238
- owner: Uint8Array<ArrayBufferLike>;
1239
- data: Uint8Array<ArrayBufferLike>;
1240
- created_at: bigint;
1241
- updated_at: bigint;
1242
- description?: string | undefined;
1243
- version?: bigint | undefined;
1244
- }>;
1245
- }, "strict", z.ZodTypeAny, {
1246
- after: {
1247
- owner: Uint8Array<ArrayBufferLike>;
1248
- data: Uint8Array<ArrayBufferLike>;
1249
- created_at: bigint;
1250
- updated_at: bigint;
1251
- description?: string | undefined;
1252
- version?: bigint | undefined;
1253
- };
1254
- before?: {
1255
- owner: Uint8Array<ArrayBufferLike>;
1256
- data: Uint8Array<ArrayBufferLike>;
1257
- created_at: bigint;
1258
- updated_at: bigint;
1259
- description?: string | undefined;
1260
- version?: bigint | undefined;
1261
- } | undefined;
1262
- }, {
1263
- after: {
1264
- owner: Uint8Array<ArrayBufferLike>;
1265
- data: Uint8Array<ArrayBufferLike>;
1266
- created_at: bigint;
1267
- updated_at: bigint;
1268
- description?: string | undefined;
1269
- version?: bigint | undefined;
1270
- };
1271
- before?: {
1272
- owner: Uint8Array<ArrayBufferLike>;
1273
- data: Uint8Array<ArrayBufferLike>;
1274
- created_at: bigint;
1275
- updated_at: bigint;
1276
- description?: string | undefined;
1277
- version?: bigint | undefined;
1278
- } | undefined;
1279
- }>;
1280
- }>>;
1281
- }>, ...args: unknown[]) => void | Promise<void>;
1282
- }>;
1283
- /**
1284
- * A hook that runs when a document is created or updated.
1285
- */
1286
- export type OnSetDoc = z.infer<typeof OnSetDocSchema>;
1287
- /**
1288
- * @see Hook
1289
- */
1290
- export declare const HookSchema: z.ZodObject<z.objectUtil.extendShape<{
1291
- collections: z.ZodReadonly<z.ZodArray<z.ZodString, "many">>;
1292
- }, {
1293
- /**
1294
- * A function that runs when the hook is triggered for the specified collections.
1295
- *
1296
- * @param {T} context - Contains information about the affected document(s).
1297
- * @returns {Promise<void>} Resolves when the operation completes.
1298
- */
1299
- run: z.ZodFunction<z.ZodTuple<[z.ZodObject<{
1300
- caller: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
1301
- data: z.ZodObject<{
1302
- collection: z.ZodString;
1303
- key: z.ZodString;
1304
- data: z.ZodObject<{
1305
- before: z.ZodOptional<z.ZodObject<{
1306
- owner: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
1307
- data: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
1308
- description: z.ZodOptional<z.ZodString>;
1309
- created_at: z.ZodBigInt;
1310
- updated_at: z.ZodBigInt;
1311
- version: z.ZodOptional<z.ZodBigInt>;
1312
- }, "strict", z.ZodTypeAny, {
1313
- owner: Uint8Array<ArrayBufferLike>;
1314
- data: Uint8Array<ArrayBufferLike>;
1315
- created_at: bigint;
1316
- updated_at: bigint;
1317
- description?: string | undefined;
1318
- version?: bigint | undefined;
1319
- }, {
1320
- owner: Uint8Array<ArrayBufferLike>;
1321
- data: Uint8Array<ArrayBufferLike>;
1322
- created_at: bigint;
1323
- updated_at: bigint;
1324
- description?: string | undefined;
1325
- version?: bigint | undefined;
1326
- }>>;
1327
- after: z.ZodObject<{
1328
- owner: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
1329
- data: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
1330
- description: z.ZodOptional<z.ZodString>;
1331
- created_at: z.ZodBigInt;
1332
- updated_at: z.ZodBigInt;
1333
- version: z.ZodOptional<z.ZodBigInt>;
1334
- }, "strict", z.ZodTypeAny, {
1335
- owner: Uint8Array<ArrayBufferLike>;
1336
- data: Uint8Array<ArrayBufferLike>;
1337
- created_at: bigint;
1338
- updated_at: bigint;
1339
- description?: string | undefined;
1340
- version?: bigint | undefined;
1341
- }, {
1342
- owner: Uint8Array<ArrayBufferLike>;
1343
- data: Uint8Array<ArrayBufferLike>;
1344
- created_at: bigint;
1345
- updated_at: bigint;
1346
- description?: string | undefined;
1347
- version?: bigint | undefined;
1348
- }>;
1349
- }, "strict", z.ZodTypeAny, {
1350
- after: {
1351
- owner: Uint8Array<ArrayBufferLike>;
1352
- data: Uint8Array<ArrayBufferLike>;
1353
- created_at: bigint;
1354
- updated_at: bigint;
1355
- description?: string | undefined;
1356
- version?: bigint | undefined;
1357
- };
1358
- before?: {
1359
- owner: Uint8Array<ArrayBufferLike>;
1360
- data: Uint8Array<ArrayBufferLike>;
1361
- created_at: bigint;
1362
- updated_at: bigint;
1363
- description?: string | undefined;
1364
- version?: bigint | undefined;
1365
- } | undefined;
1366
- }, {
1367
- after: {
1368
- owner: Uint8Array<ArrayBufferLike>;
1369
- data: Uint8Array<ArrayBufferLike>;
1370
- created_at: bigint;
1371
- updated_at: bigint;
1372
- description?: string | undefined;
1373
- version?: bigint | undefined;
1374
- };
1375
- before?: {
1376
- owner: Uint8Array<ArrayBufferLike>;
1377
- data: Uint8Array<ArrayBufferLike>;
1378
- created_at: bigint;
1379
- updated_at: bigint;
1380
- description?: string | undefined;
1381
- version?: bigint | undefined;
1382
- } | undefined;
1383
- }>;
1384
- }, "strict", z.ZodTypeAny, z.baseObjectOutputType<{
1385
- collection: z.ZodString;
1386
- key: z.ZodString;
1387
- data: z.ZodObject<{
1388
- before: z.ZodOptional<z.ZodObject<{
1389
- owner: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
1390
- data: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
1391
- description: z.ZodOptional<z.ZodString>;
1392
- created_at: z.ZodBigInt;
1393
- updated_at: z.ZodBigInt;
1394
- version: z.ZodOptional<z.ZodBigInt>;
1395
- }, "strict", z.ZodTypeAny, {
1396
- owner: Uint8Array<ArrayBufferLike>;
1397
- data: Uint8Array<ArrayBufferLike>;
1398
- created_at: bigint;
1399
- updated_at: bigint;
1400
- description?: string | undefined;
1401
- version?: bigint | undefined;
1402
- }, {
1403
- owner: Uint8Array<ArrayBufferLike>;
1404
- data: Uint8Array<ArrayBufferLike>;
1405
- created_at: bigint;
1406
- updated_at: bigint;
1407
- description?: string | undefined;
1408
- version?: bigint | undefined;
1409
- }>>;
1410
- after: z.ZodObject<{
1411
- owner: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
1412
- data: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
1413
- description: z.ZodOptional<z.ZodString>;
1414
- created_at: z.ZodBigInt;
1415
- updated_at: z.ZodBigInt;
1416
- version: z.ZodOptional<z.ZodBigInt>;
1417
- }, "strict", z.ZodTypeAny, {
1418
- owner: Uint8Array<ArrayBufferLike>;
1419
- data: Uint8Array<ArrayBufferLike>;
1420
- created_at: bigint;
1421
- updated_at: bigint;
1422
- description?: string | undefined;
1423
- version?: bigint | undefined;
1424
- }, {
1425
- owner: Uint8Array<ArrayBufferLike>;
1426
- data: Uint8Array<ArrayBufferLike>;
1427
- created_at: bigint;
1428
- updated_at: bigint;
1429
- description?: string | undefined;
1430
- version?: bigint | undefined;
1431
- }>;
1432
- }, "strict", z.ZodTypeAny, {
1433
- after: {
1434
- owner: Uint8Array<ArrayBufferLike>;
1435
- data: Uint8Array<ArrayBufferLike>;
1436
- created_at: bigint;
1437
- updated_at: bigint;
1438
- description?: string | undefined;
1439
- version?: bigint | undefined;
1440
- };
1441
- before?: {
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
- after: {
1451
- owner: Uint8Array<ArrayBufferLike>;
1452
- data: Uint8Array<ArrayBufferLike>;
1453
- created_at: bigint;
1454
- updated_at: bigint;
1455
- description?: string | undefined;
1456
- version?: bigint | undefined;
1457
- };
1458
- before?: {
1459
- owner: Uint8Array<ArrayBufferLike>;
1460
- data: Uint8Array<ArrayBufferLike>;
1461
- created_at: bigint;
1462
- updated_at: bigint;
1463
- description?: string | undefined;
1464
- version?: bigint | undefined;
1465
- } | undefined;
1466
- }>;
1467
- }>, z.baseObjectInputType<{
1468
- collection: z.ZodString;
1469
- key: z.ZodString;
1470
- data: z.ZodObject<{
1471
- before: z.ZodOptional<z.ZodObject<{
1472
- owner: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
1473
- data: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
1474
- description: z.ZodOptional<z.ZodString>;
1475
- created_at: z.ZodBigInt;
1476
- updated_at: z.ZodBigInt;
1477
- version: z.ZodOptional<z.ZodBigInt>;
1478
- }, "strict", z.ZodTypeAny, {
1479
- owner: Uint8Array<ArrayBufferLike>;
1480
- data: Uint8Array<ArrayBufferLike>;
1481
- created_at: bigint;
1482
- updated_at: bigint;
1483
- description?: string | undefined;
1484
- version?: bigint | undefined;
1485
- }, {
1486
- owner: Uint8Array<ArrayBufferLike>;
1487
- data: Uint8Array<ArrayBufferLike>;
1488
- created_at: bigint;
1489
- updated_at: bigint;
1490
- description?: string | undefined;
1491
- version?: bigint | undefined;
1492
- }>>;
1493
- after: z.ZodObject<{
1494
- owner: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
1495
- data: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
1496
- description: z.ZodOptional<z.ZodString>;
1497
- created_at: z.ZodBigInt;
1498
- updated_at: z.ZodBigInt;
1499
- version: z.ZodOptional<z.ZodBigInt>;
1500
- }, "strict", z.ZodTypeAny, {
1501
- owner: Uint8Array<ArrayBufferLike>;
1502
- data: Uint8Array<ArrayBufferLike>;
1503
- created_at: bigint;
1504
- updated_at: bigint;
1505
- description?: string | undefined;
1506
- version?: bigint | undefined;
1507
- }, {
1508
- owner: Uint8Array<ArrayBufferLike>;
1509
- data: Uint8Array<ArrayBufferLike>;
1510
- created_at: bigint;
1511
- updated_at: bigint;
1512
- description?: string | undefined;
1513
- version?: bigint | undefined;
1514
- }>;
1515
- }, "strict", z.ZodTypeAny, {
1516
- after: {
1517
- owner: Uint8Array<ArrayBufferLike>;
1518
- data: Uint8Array<ArrayBufferLike>;
1519
- created_at: bigint;
1520
- updated_at: bigint;
1521
- description?: string | undefined;
1522
- version?: bigint | undefined;
1523
- };
1524
- before?: {
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
- } | undefined;
1532
- }, {
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
- }>>;
1551
- }, "strict", z.ZodTypeAny, z.baseObjectOutputType<{
1552
- caller: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
1553
- data: z.ZodObject<{
1554
- collection: z.ZodString;
1555
- key: z.ZodString;
1556
- data: z.ZodObject<{
1557
- before: z.ZodOptional<z.ZodObject<{
1558
- owner: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
1559
- data: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
1560
- description: z.ZodOptional<z.ZodString>;
1561
- created_at: z.ZodBigInt;
1562
- updated_at: z.ZodBigInt;
1563
- version: z.ZodOptional<z.ZodBigInt>;
1564
- }, "strict", z.ZodTypeAny, {
1565
- owner: Uint8Array<ArrayBufferLike>;
1566
- data: Uint8Array<ArrayBufferLike>;
1567
- created_at: bigint;
1568
- updated_at: bigint;
1569
- description?: string | undefined;
1570
- version?: bigint | undefined;
1571
- }, {
1572
- owner: Uint8Array<ArrayBufferLike>;
1573
- data: Uint8Array<ArrayBufferLike>;
1574
- created_at: bigint;
1575
- updated_at: bigint;
1576
- description?: string | undefined;
1577
- version?: bigint | undefined;
1578
- }>>;
1579
- after: z.ZodObject<{
1580
- owner: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
1581
- data: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
1582
- description: z.ZodOptional<z.ZodString>;
1583
- created_at: z.ZodBigInt;
1584
- updated_at: z.ZodBigInt;
1585
- version: z.ZodOptional<z.ZodBigInt>;
1586
- }, "strict", z.ZodTypeAny, {
1587
- owner: Uint8Array<ArrayBufferLike>;
1588
- data: Uint8Array<ArrayBufferLike>;
1589
- created_at: bigint;
1590
- updated_at: bigint;
1591
- description?: string | undefined;
1592
- version?: bigint | undefined;
1593
- }, {
1594
- owner: Uint8Array<ArrayBufferLike>;
1595
- data: Uint8Array<ArrayBufferLike>;
1596
- created_at: bigint;
1597
- updated_at: bigint;
1598
- description?: string | undefined;
1599
- version?: bigint | undefined;
1600
- }>;
1601
- }, "strict", z.ZodTypeAny, {
1602
- after: {
1603
- owner: Uint8Array<ArrayBufferLike>;
1604
- data: Uint8Array<ArrayBufferLike>;
1605
- created_at: bigint;
1606
- updated_at: bigint;
1607
- description?: string | undefined;
1608
- version?: bigint | undefined;
1609
- };
1610
- before?: {
1611
- owner: Uint8Array<ArrayBufferLike>;
1612
- data: Uint8Array<ArrayBufferLike>;
1613
- created_at: bigint;
1614
- updated_at: bigint;
1615
- description?: string | undefined;
1616
- version?: bigint | undefined;
1617
- } | undefined;
1618
- }, {
1619
- after: {
1620
- owner: Uint8Array<ArrayBufferLike>;
1621
- data: Uint8Array<ArrayBufferLike>;
1622
- created_at: bigint;
1623
- updated_at: bigint;
1624
- description?: string | undefined;
1625
- version?: bigint | undefined;
1626
- };
1627
- before?: {
1628
- owner: Uint8Array<ArrayBufferLike>;
1629
- data: Uint8Array<ArrayBufferLike>;
1630
- created_at: bigint;
1631
- updated_at: bigint;
1632
- description?: string | undefined;
1633
- version?: bigint | undefined;
1634
- } | undefined;
1635
- }>;
1636
- }, "strict", z.ZodTypeAny, z.baseObjectOutputType<{
1637
- collection: z.ZodString;
1638
- key: z.ZodString;
1639
- data: z.ZodObject<{
1640
- before: z.ZodOptional<z.ZodObject<{
1641
- owner: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
1642
- data: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
1643
- description: z.ZodOptional<z.ZodString>;
1644
- created_at: z.ZodBigInt;
1645
- updated_at: z.ZodBigInt;
1646
- version: z.ZodOptional<z.ZodBigInt>;
1647
- }, "strict", z.ZodTypeAny, {
1648
- owner: Uint8Array<ArrayBufferLike>;
1649
- data: Uint8Array<ArrayBufferLike>;
1650
- created_at: bigint;
1651
- updated_at: bigint;
1652
- description?: string | undefined;
1653
- version?: bigint | undefined;
1654
- }, {
1655
- owner: Uint8Array<ArrayBufferLike>;
1656
- data: Uint8Array<ArrayBufferLike>;
1657
- created_at: bigint;
1658
- updated_at: bigint;
1659
- description?: string | undefined;
1660
- version?: bigint | undefined;
1661
- }>>;
1662
- after: z.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", z.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", z.ZodTypeAny, {
1685
- after: {
1686
- owner: Uint8Array<ArrayBufferLike>;
1687
- data: Uint8Array<ArrayBufferLike>;
1688
- created_at: bigint;
1689
- updated_at: bigint;
1690
- description?: string | undefined;
1691
- version?: bigint | undefined;
1692
- };
1693
- before?: {
1694
- owner: Uint8Array<ArrayBufferLike>;
1695
- data: Uint8Array<ArrayBufferLike>;
1696
- created_at: bigint;
1697
- updated_at: bigint;
1698
- description?: string | undefined;
1699
- version?: bigint | undefined;
1700
- } | undefined;
1701
- }, {
1702
- after: {
1703
- owner: Uint8Array<ArrayBufferLike>;
1704
- data: Uint8Array<ArrayBufferLike>;
1705
- created_at: bigint;
1706
- updated_at: bigint;
1707
- description?: string | undefined;
1708
- version?: bigint | undefined;
1709
- };
1710
- before?: {
1711
- owner: Uint8Array<ArrayBufferLike>;
1712
- data: Uint8Array<ArrayBufferLike>;
1713
- created_at: bigint;
1714
- updated_at: bigint;
1715
- description?: string | undefined;
1716
- version?: bigint | undefined;
1717
- } | undefined;
1718
- }>;
1719
- }>, z.baseObjectInputType<{
1720
- collection: z.ZodString;
1721
- key: z.ZodString;
1722
- data: z.ZodObject<{
1723
- before: z.ZodOptional<z.ZodObject<{
1724
- owner: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
1725
- data: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
1726
- description: z.ZodOptional<z.ZodString>;
1727
- created_at: z.ZodBigInt;
1728
- updated_at: z.ZodBigInt;
1729
- version: z.ZodOptional<z.ZodBigInt>;
1730
- }, "strict", z.ZodTypeAny, {
1731
- owner: Uint8Array<ArrayBufferLike>;
1732
- data: Uint8Array<ArrayBufferLike>;
1733
- created_at: bigint;
1734
- updated_at: bigint;
1735
- description?: string | undefined;
1736
- version?: bigint | undefined;
1737
- }, {
1738
- owner: Uint8Array<ArrayBufferLike>;
1739
- data: Uint8Array<ArrayBufferLike>;
1740
- created_at: bigint;
1741
- updated_at: bigint;
1742
- description?: string | undefined;
1743
- version?: bigint | undefined;
1744
- }>>;
1745
- after: z.ZodObject<{
1746
- owner: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
1747
- data: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
1748
- description: z.ZodOptional<z.ZodString>;
1749
- created_at: z.ZodBigInt;
1750
- updated_at: z.ZodBigInt;
1751
- version: z.ZodOptional<z.ZodBigInt>;
1752
- }, "strict", z.ZodTypeAny, {
1753
- owner: Uint8Array<ArrayBufferLike>;
1754
- data: Uint8Array<ArrayBufferLike>;
1755
- created_at: bigint;
1756
- updated_at: bigint;
1757
- description?: string | undefined;
1758
- version?: bigint | undefined;
1759
- }, {
1760
- owner: Uint8Array<ArrayBufferLike>;
1761
- data: Uint8Array<ArrayBufferLike>;
1762
- created_at: bigint;
1763
- updated_at: bigint;
1764
- description?: string | undefined;
1765
- version?: bigint | undefined;
1766
- }>;
1767
- }, "strict", z.ZodTypeAny, {
1768
- after: {
1769
- owner: Uint8Array<ArrayBufferLike>;
1770
- data: Uint8Array<ArrayBufferLike>;
1771
- created_at: bigint;
1772
- updated_at: bigint;
1773
- description?: string | undefined;
1774
- version?: bigint | undefined;
1775
- };
1776
- before?: {
1777
- owner: Uint8Array<ArrayBufferLike>;
1778
- data: Uint8Array<ArrayBufferLike>;
1779
- created_at: bigint;
1780
- updated_at: bigint;
1781
- description?: string | undefined;
1782
- version?: bigint | undefined;
1783
- } | undefined;
1784
- }, {
1785
- after: {
1786
- owner: Uint8Array<ArrayBufferLike>;
1787
- data: Uint8Array<ArrayBufferLike>;
1788
- created_at: bigint;
1789
- updated_at: bigint;
1790
- description?: string | undefined;
1791
- version?: bigint | undefined;
1792
- };
1793
- before?: {
1794
- owner: Uint8Array<ArrayBufferLike>;
1795
- data: Uint8Array<ArrayBufferLike>;
1796
- created_at: bigint;
1797
- updated_at: bigint;
1798
- description?: string | undefined;
1799
- version?: bigint | undefined;
1800
- } | undefined;
1801
- }>;
1802
- }>>;
1803
- }>, z.baseObjectInputType<{
1804
- caller: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
1805
- data: z.ZodObject<{
1806
- collection: z.ZodString;
1807
- key: z.ZodString;
1808
- data: z.ZodObject<{
1809
- before: z.ZodOptional<z.ZodObject<{
1810
- owner: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
1811
- data: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
1812
- description: z.ZodOptional<z.ZodString>;
1813
- created_at: z.ZodBigInt;
1814
- updated_at: z.ZodBigInt;
1815
- version: z.ZodOptional<z.ZodBigInt>;
1816
- }, "strict", z.ZodTypeAny, {
1817
- owner: Uint8Array<ArrayBufferLike>;
1818
- data: Uint8Array<ArrayBufferLike>;
1819
- created_at: bigint;
1820
- updated_at: bigint;
1821
- description?: string | undefined;
1822
- version?: bigint | undefined;
1823
- }, {
1824
- owner: Uint8Array<ArrayBufferLike>;
1825
- data: Uint8Array<ArrayBufferLike>;
1826
- created_at: bigint;
1827
- updated_at: bigint;
1828
- description?: string | undefined;
1829
- version?: bigint | undefined;
1830
- }>>;
1831
- after: z.ZodObject<{
1832
- owner: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
1833
- data: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
1834
- description: z.ZodOptional<z.ZodString>;
1835
- created_at: z.ZodBigInt;
1836
- updated_at: z.ZodBigInt;
1837
- version: z.ZodOptional<z.ZodBigInt>;
1838
- }, "strict", z.ZodTypeAny, {
1839
- owner: Uint8Array<ArrayBufferLike>;
1840
- data: Uint8Array<ArrayBufferLike>;
1841
- created_at: bigint;
1842
- updated_at: bigint;
1843
- description?: string | undefined;
1844
- version?: bigint | undefined;
1845
- }, {
1846
- owner: Uint8Array<ArrayBufferLike>;
1847
- data: Uint8Array<ArrayBufferLike>;
1848
- created_at: bigint;
1849
- updated_at: bigint;
1850
- description?: string | undefined;
1851
- version?: bigint | undefined;
1852
- }>;
1853
- }, "strict", z.ZodTypeAny, {
1854
- after: {
1855
- owner: Uint8Array<ArrayBufferLike>;
1856
- data: Uint8Array<ArrayBufferLike>;
1857
- created_at: bigint;
1858
- updated_at: bigint;
1859
- description?: string | undefined;
1860
- version?: bigint | undefined;
1861
- };
1862
- before?: {
1863
- owner: Uint8Array<ArrayBufferLike>;
1864
- data: Uint8Array<ArrayBufferLike>;
1865
- created_at: bigint;
1866
- updated_at: bigint;
1867
- description?: string | undefined;
1868
- version?: bigint | undefined;
1869
- } | undefined;
1870
- }, {
1871
- after: {
1872
- owner: Uint8Array<ArrayBufferLike>;
1873
- data: Uint8Array<ArrayBufferLike>;
1874
- created_at: bigint;
1875
- updated_at: bigint;
1876
- description?: string | undefined;
1877
- version?: bigint | undefined;
1878
- };
1879
- before?: {
1880
- owner: Uint8Array<ArrayBufferLike>;
1881
- data: Uint8Array<ArrayBufferLike>;
1882
- created_at: bigint;
1883
- updated_at: bigint;
1884
- description?: string | undefined;
1885
- version?: bigint | undefined;
1886
- } | undefined;
1887
- }>;
1888
- }, "strict", z.ZodTypeAny, z.baseObjectOutputType<{
1889
- collection: z.ZodString;
1890
- key: z.ZodString;
1891
- data: z.ZodObject<{
1892
- before: z.ZodOptional<z.ZodObject<{
1893
- owner: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
1894
- data: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
1895
- description: z.ZodOptional<z.ZodString>;
1896
- created_at: z.ZodBigInt;
1897
- updated_at: z.ZodBigInt;
1898
- version: z.ZodOptional<z.ZodBigInt>;
1899
- }, "strict", z.ZodTypeAny, {
1900
- owner: Uint8Array<ArrayBufferLike>;
1901
- data: Uint8Array<ArrayBufferLike>;
1902
- created_at: bigint;
1903
- updated_at: bigint;
1904
- description?: string | undefined;
1905
- version?: bigint | undefined;
1906
- }, {
1907
- owner: Uint8Array<ArrayBufferLike>;
1908
- data: Uint8Array<ArrayBufferLike>;
1909
- created_at: bigint;
1910
- updated_at: bigint;
1911
- description?: string | undefined;
1912
- version?: bigint | undefined;
1913
- }>>;
1914
- after: z.ZodObject<{
1915
- owner: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
1916
- data: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
1917
- description: z.ZodOptional<z.ZodString>;
1918
- created_at: z.ZodBigInt;
1919
- updated_at: z.ZodBigInt;
1920
- version: z.ZodOptional<z.ZodBigInt>;
1921
- }, "strict", z.ZodTypeAny, {
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
- owner: Uint8Array<ArrayBufferLike>;
1930
- data: Uint8Array<ArrayBufferLike>;
1931
- created_at: bigint;
1932
- updated_at: bigint;
1933
- description?: string | undefined;
1934
- version?: bigint | undefined;
1935
- }>;
1936
- }, "strict", z.ZodTypeAny, {
1937
- after: {
1938
- owner: Uint8Array<ArrayBufferLike>;
1939
- data: Uint8Array<ArrayBufferLike>;
1940
- created_at: bigint;
1941
- updated_at: bigint;
1942
- description?: string | undefined;
1943
- version?: bigint | undefined;
1944
- };
1945
- before?: {
1946
- owner: Uint8Array<ArrayBufferLike>;
1947
- data: Uint8Array<ArrayBufferLike>;
1948
- created_at: bigint;
1949
- updated_at: bigint;
1950
- description?: string | undefined;
1951
- version?: bigint | undefined;
1952
- } | undefined;
1953
- }, {
1954
- after: {
1955
- owner: Uint8Array<ArrayBufferLike>;
1956
- data: Uint8Array<ArrayBufferLike>;
1957
- created_at: bigint;
1958
- updated_at: bigint;
1959
- description?: string | undefined;
1960
- version?: bigint | undefined;
1961
- };
1962
- before?: {
1963
- owner: Uint8Array<ArrayBufferLike>;
1964
- data: Uint8Array<ArrayBufferLike>;
1965
- created_at: bigint;
1966
- updated_at: bigint;
1967
- description?: string | undefined;
1968
- version?: bigint | undefined;
1969
- } | undefined;
1970
- }>;
1971
- }>, z.baseObjectInputType<{
1972
- collection: z.ZodString;
1973
- key: z.ZodString;
1974
- data: z.ZodObject<{
1975
- before: z.ZodOptional<z.ZodObject<{
1976
- owner: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
1977
- data: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
1978
- description: z.ZodOptional<z.ZodString>;
1979
- created_at: z.ZodBigInt;
1980
- updated_at: z.ZodBigInt;
1981
- version: z.ZodOptional<z.ZodBigInt>;
1982
- }, "strict", z.ZodTypeAny, {
1983
- owner: Uint8Array<ArrayBufferLike>;
1984
- data: Uint8Array<ArrayBufferLike>;
1985
- created_at: bigint;
1986
- updated_at: bigint;
1987
- description?: string | undefined;
1988
- version?: bigint | undefined;
1989
- }, {
1990
- owner: Uint8Array<ArrayBufferLike>;
1991
- data: Uint8Array<ArrayBufferLike>;
1992
- created_at: bigint;
1993
- updated_at: bigint;
1994
- description?: string | undefined;
1995
- version?: bigint | undefined;
1996
- }>>;
1997
- after: z.ZodObject<{
1998
- owner: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
1999
- data: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
2000
- description: z.ZodOptional<z.ZodString>;
2001
- created_at: z.ZodBigInt;
2002
- updated_at: z.ZodBigInt;
2003
- version: z.ZodOptional<z.ZodBigInt>;
2004
- }, "strict", z.ZodTypeAny, {
2005
- owner: Uint8Array<ArrayBufferLike>;
2006
- data: Uint8Array<ArrayBufferLike>;
2007
- created_at: bigint;
2008
- updated_at: bigint;
2009
- description?: string | undefined;
2010
- version?: bigint | undefined;
2011
- }, {
2012
- owner: Uint8Array<ArrayBufferLike>;
2013
- data: Uint8Array<ArrayBufferLike>;
2014
- created_at: bigint;
2015
- updated_at: bigint;
2016
- description?: string | undefined;
2017
- version?: bigint | undefined;
2018
- }>;
2019
- }, "strict", z.ZodTypeAny, {
2020
- after: {
2021
- owner: Uint8Array<ArrayBufferLike>;
2022
- data: Uint8Array<ArrayBufferLike>;
2023
- created_at: bigint;
2024
- updated_at: bigint;
2025
- description?: string | undefined;
2026
- version?: bigint | undefined;
2027
- };
2028
- before?: {
2029
- owner: Uint8Array<ArrayBufferLike>;
2030
- data: Uint8Array<ArrayBufferLike>;
2031
- created_at: bigint;
2032
- updated_at: bigint;
2033
- description?: string | undefined;
2034
- version?: bigint | undefined;
2035
- } | undefined;
2036
- }, {
2037
- after: {
2038
- owner: Uint8Array<ArrayBufferLike>;
2039
- data: Uint8Array<ArrayBufferLike>;
2040
- created_at: bigint;
2041
- updated_at: bigint;
2042
- description?: string | undefined;
2043
- version?: bigint | undefined;
2044
- };
2045
- before?: {
2046
- owner: Uint8Array<ArrayBufferLike>;
2047
- data: Uint8Array<ArrayBufferLike>;
2048
- created_at: bigint;
2049
- updated_at: bigint;
2050
- description?: string | undefined;
2051
- version?: bigint | undefined;
2052
- } | undefined;
2053
- }>;
2054
- }>>;
2055
- }>>], z.ZodUnknown>, z.ZodUnion<[z.ZodPromise<z.ZodVoid>, z.ZodVoid]>>;
2056
- }>, "strict", z.ZodTypeAny, {
2057
- collections: readonly string[];
2058
- run: (args_0: z.baseObjectInputType<{
2059
- caller: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
2060
- data: z.ZodObject<{
2061
- collection: z.ZodString;
2062
- key: z.ZodString;
2063
- data: z.ZodObject<{
2064
- before: z.ZodOptional<z.ZodObject<{
2065
- owner: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
2066
- data: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
2067
- description: z.ZodOptional<z.ZodString>;
2068
- created_at: z.ZodBigInt;
2069
- updated_at: z.ZodBigInt;
2070
- version: z.ZodOptional<z.ZodBigInt>;
2071
- }, "strict", z.ZodTypeAny, {
2072
- owner: Uint8Array<ArrayBufferLike>;
2073
- data: Uint8Array<ArrayBufferLike>;
2074
- created_at: bigint;
2075
- updated_at: bigint;
2076
- description?: string | undefined;
2077
- version?: bigint | undefined;
2078
- }, {
2079
- owner: Uint8Array<ArrayBufferLike>;
2080
- data: Uint8Array<ArrayBufferLike>;
2081
- created_at: bigint;
2082
- updated_at: bigint;
2083
- description?: string | undefined;
2084
- version?: bigint | undefined;
2085
- }>>;
2086
- after: z.ZodObject<{
2087
- owner: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
2088
- data: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
2089
- description: z.ZodOptional<z.ZodString>;
2090
- created_at: z.ZodBigInt;
2091
- updated_at: z.ZodBigInt;
2092
- version: z.ZodOptional<z.ZodBigInt>;
2093
- }, "strict", z.ZodTypeAny, {
2094
- owner: Uint8Array<ArrayBufferLike>;
2095
- data: Uint8Array<ArrayBufferLike>;
2096
- created_at: bigint;
2097
- updated_at: bigint;
2098
- description?: string | undefined;
2099
- version?: bigint | undefined;
2100
- }, {
2101
- owner: Uint8Array<ArrayBufferLike>;
2102
- data: Uint8Array<ArrayBufferLike>;
2103
- created_at: bigint;
2104
- updated_at: bigint;
2105
- description?: string | undefined;
2106
- version?: bigint | undefined;
2107
- }>;
2108
- }, "strict", z.ZodTypeAny, {
2109
- after: {
2110
- owner: Uint8Array<ArrayBufferLike>;
2111
- data: Uint8Array<ArrayBufferLike>;
2112
- created_at: bigint;
2113
- updated_at: bigint;
2114
- description?: string | undefined;
2115
- version?: bigint | undefined;
2116
- };
2117
- before?: {
2118
- owner: Uint8Array<ArrayBufferLike>;
2119
- data: Uint8Array<ArrayBufferLike>;
2120
- created_at: bigint;
2121
- updated_at: bigint;
2122
- description?: string | undefined;
2123
- version?: bigint | undefined;
2124
- } | undefined;
2125
- }, {
2126
- after: {
2127
- owner: Uint8Array<ArrayBufferLike>;
2128
- data: Uint8Array<ArrayBufferLike>;
2129
- created_at: bigint;
2130
- updated_at: bigint;
2131
- description?: string | undefined;
2132
- version?: bigint | undefined;
2133
- };
2134
- before?: {
2135
- owner: Uint8Array<ArrayBufferLike>;
2136
- data: Uint8Array<ArrayBufferLike>;
2137
- created_at: bigint;
2138
- updated_at: bigint;
2139
- description?: string | undefined;
2140
- version?: bigint | undefined;
2141
- } | undefined;
2142
- }>;
2143
- }, "strict", z.ZodTypeAny, z.baseObjectOutputType<{
2144
- collection: z.ZodString;
2145
- key: z.ZodString;
2146
- data: z.ZodObject<{
2147
- before: z.ZodOptional<z.ZodObject<{
2148
- owner: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
2149
- data: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
2150
- description: z.ZodOptional<z.ZodString>;
2151
- created_at: z.ZodBigInt;
2152
- updated_at: z.ZodBigInt;
2153
- version: z.ZodOptional<z.ZodBigInt>;
2154
- }, "strict", z.ZodTypeAny, {
2155
- owner: Uint8Array<ArrayBufferLike>;
2156
- data: Uint8Array<ArrayBufferLike>;
2157
- created_at: bigint;
2158
- updated_at: bigint;
2159
- description?: string | undefined;
2160
- version?: bigint | undefined;
2161
- }, {
2162
- owner: Uint8Array<ArrayBufferLike>;
2163
- data: Uint8Array<ArrayBufferLike>;
2164
- created_at: bigint;
2165
- updated_at: bigint;
2166
- description?: string | undefined;
2167
- version?: bigint | undefined;
2168
- }>>;
2169
- after: z.ZodObject<{
2170
- owner: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
2171
- data: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
2172
- description: z.ZodOptional<z.ZodString>;
2173
- created_at: z.ZodBigInt;
2174
- updated_at: z.ZodBigInt;
2175
- version: z.ZodOptional<z.ZodBigInt>;
2176
- }, "strict", z.ZodTypeAny, {
2177
- owner: Uint8Array<ArrayBufferLike>;
2178
- data: Uint8Array<ArrayBufferLike>;
2179
- created_at: bigint;
2180
- updated_at: bigint;
2181
- description?: string | undefined;
2182
- version?: bigint | undefined;
2183
- }, {
2184
- owner: Uint8Array<ArrayBufferLike>;
2185
- data: Uint8Array<ArrayBufferLike>;
2186
- created_at: bigint;
2187
- updated_at: bigint;
2188
- description?: string | undefined;
2189
- version?: bigint | undefined;
2190
- }>;
2191
- }, "strict", z.ZodTypeAny, {
2192
- after: {
2193
- owner: Uint8Array<ArrayBufferLike>;
2194
- data: Uint8Array<ArrayBufferLike>;
2195
- created_at: bigint;
2196
- updated_at: bigint;
2197
- description?: string | undefined;
2198
- version?: bigint | undefined;
2199
- };
2200
- before?: {
2201
- owner: Uint8Array<ArrayBufferLike>;
2202
- data: Uint8Array<ArrayBufferLike>;
2203
- created_at: bigint;
2204
- updated_at: bigint;
2205
- description?: string | undefined;
2206
- version?: bigint | undefined;
2207
- } | undefined;
2208
- }, {
2209
- after: {
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
- before?: {
2218
- owner: Uint8Array<ArrayBufferLike>;
2219
- data: Uint8Array<ArrayBufferLike>;
2220
- created_at: bigint;
2221
- updated_at: bigint;
2222
- description?: string | undefined;
2223
- version?: bigint | undefined;
2224
- } | undefined;
2225
- }>;
2226
- }>, z.baseObjectInputType<{
2227
- collection: z.ZodString;
2228
- key: z.ZodString;
2229
- data: z.ZodObject<{
2230
- before: z.ZodOptional<z.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", z.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
- after: z.ZodObject<{
2253
- owner: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
2254
- data: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
2255
- description: z.ZodOptional<z.ZodString>;
2256
- created_at: z.ZodBigInt;
2257
- updated_at: z.ZodBigInt;
2258
- version: z.ZodOptional<z.ZodBigInt>;
2259
- }, "strict", z.ZodTypeAny, {
2260
- owner: Uint8Array<ArrayBufferLike>;
2261
- data: Uint8Array<ArrayBufferLike>;
2262
- created_at: bigint;
2263
- updated_at: bigint;
2264
- description?: string | undefined;
2265
- version?: bigint | undefined;
2266
- }, {
2267
- owner: Uint8Array<ArrayBufferLike>;
2268
- data: Uint8Array<ArrayBufferLike>;
2269
- created_at: bigint;
2270
- updated_at: bigint;
2271
- description?: string | undefined;
2272
- version?: bigint | undefined;
2273
- }>;
2274
- }, "strict", z.ZodTypeAny, {
2275
- after: {
2276
- owner: Uint8Array<ArrayBufferLike>;
2277
- data: Uint8Array<ArrayBufferLike>;
2278
- created_at: bigint;
2279
- updated_at: bigint;
2280
- description?: string | undefined;
2281
- version?: bigint | undefined;
2282
- };
2283
- before?: {
2284
- owner: Uint8Array<ArrayBufferLike>;
2285
- data: Uint8Array<ArrayBufferLike>;
2286
- created_at: bigint;
2287
- updated_at: bigint;
2288
- description?: string | undefined;
2289
- version?: bigint | undefined;
2290
- } | undefined;
2291
- }, {
2292
- after: {
2293
- owner: Uint8Array<ArrayBufferLike>;
2294
- data: Uint8Array<ArrayBufferLike>;
2295
- created_at: bigint;
2296
- updated_at: bigint;
2297
- description?: string | undefined;
2298
- version?: bigint | undefined;
2299
- };
2300
- before?: {
2301
- owner: Uint8Array<ArrayBufferLike>;
2302
- data: Uint8Array<ArrayBufferLike>;
2303
- created_at: bigint;
2304
- updated_at: bigint;
2305
- description?: string | undefined;
2306
- version?: bigint | undefined;
2307
- } | undefined;
2308
- }>;
2309
- }>>;
2310
- }>, ...args: unknown[]) => void | Promise<void>;
2311
- }, {
2312
- collections: readonly string[];
2313
- run: (args_0: z.baseObjectOutputType<{
2314
- caller: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
2315
- data: z.ZodObject<{
2316
- collection: z.ZodString;
2317
- key: z.ZodString;
2318
- data: z.ZodObject<{
2319
- before: z.ZodOptional<z.ZodObject<{
2320
- owner: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
2321
- data: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
2322
- description: z.ZodOptional<z.ZodString>;
2323
- created_at: z.ZodBigInt;
2324
- updated_at: z.ZodBigInt;
2325
- version: z.ZodOptional<z.ZodBigInt>;
2326
- }, "strict", z.ZodTypeAny, {
2327
- owner: Uint8Array<ArrayBufferLike>;
2328
- data: Uint8Array<ArrayBufferLike>;
2329
- created_at: bigint;
2330
- updated_at: bigint;
2331
- description?: string | undefined;
2332
- version?: bigint | undefined;
2333
- }, {
2334
- owner: Uint8Array<ArrayBufferLike>;
2335
- data: Uint8Array<ArrayBufferLike>;
2336
- created_at: bigint;
2337
- updated_at: bigint;
2338
- description?: string | undefined;
2339
- version?: bigint | undefined;
2340
- }>>;
2341
- after: z.ZodObject<{
2342
- owner: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
2343
- data: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
2344
- description: z.ZodOptional<z.ZodString>;
2345
- created_at: z.ZodBigInt;
2346
- updated_at: z.ZodBigInt;
2347
- version: z.ZodOptional<z.ZodBigInt>;
2348
- }, "strict", z.ZodTypeAny, {
2349
- owner: Uint8Array<ArrayBufferLike>;
2350
- data: Uint8Array<ArrayBufferLike>;
2351
- created_at: bigint;
2352
- updated_at: bigint;
2353
- description?: string | undefined;
2354
- version?: bigint | undefined;
2355
- }, {
2356
- owner: Uint8Array<ArrayBufferLike>;
2357
- data: Uint8Array<ArrayBufferLike>;
2358
- created_at: bigint;
2359
- updated_at: bigint;
2360
- description?: string | undefined;
2361
- version?: bigint | undefined;
2362
- }>;
2363
- }, "strict", z.ZodTypeAny, {
2364
- after: {
2365
- owner: Uint8Array<ArrayBufferLike>;
2366
- data: Uint8Array<ArrayBufferLike>;
2367
- created_at: bigint;
2368
- updated_at: bigint;
2369
- description?: string | undefined;
2370
- version?: bigint | undefined;
2371
- };
2372
- before?: {
2373
- owner: Uint8Array<ArrayBufferLike>;
2374
- data: Uint8Array<ArrayBufferLike>;
2375
- created_at: bigint;
2376
- updated_at: bigint;
2377
- description?: string | undefined;
2378
- version?: bigint | undefined;
2379
- } | undefined;
2380
- }, {
2381
- after: {
2382
- owner: Uint8Array<ArrayBufferLike>;
2383
- data: Uint8Array<ArrayBufferLike>;
2384
- created_at: bigint;
2385
- updated_at: bigint;
2386
- description?: string | undefined;
2387
- version?: bigint | undefined;
2388
- };
2389
- before?: {
2390
- owner: Uint8Array<ArrayBufferLike>;
2391
- data: Uint8Array<ArrayBufferLike>;
2392
- created_at: bigint;
2393
- updated_at: bigint;
2394
- description?: string | undefined;
2395
- version?: bigint | undefined;
2396
- } | undefined;
2397
- }>;
2398
- }, "strict", z.ZodTypeAny, z.baseObjectOutputType<{
2399
- collection: z.ZodString;
2400
- key: z.ZodString;
2401
- data: z.ZodObject<{
2402
- before: z.ZodOptional<z.ZodObject<{
2403
- owner: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
2404
- data: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
2405
- description: z.ZodOptional<z.ZodString>;
2406
- created_at: z.ZodBigInt;
2407
- updated_at: z.ZodBigInt;
2408
- version: z.ZodOptional<z.ZodBigInt>;
2409
- }, "strict", z.ZodTypeAny, {
2410
- owner: Uint8Array<ArrayBufferLike>;
2411
- data: Uint8Array<ArrayBufferLike>;
2412
- created_at: bigint;
2413
- updated_at: bigint;
2414
- description?: string | undefined;
2415
- version?: bigint | undefined;
2416
- }, {
2417
- owner: Uint8Array<ArrayBufferLike>;
2418
- data: Uint8Array<ArrayBufferLike>;
2419
- created_at: bigint;
2420
- updated_at: bigint;
2421
- description?: string | undefined;
2422
- version?: bigint | undefined;
2423
- }>>;
2424
- after: z.ZodObject<{
2425
- owner: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
2426
- data: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
2427
- description: z.ZodOptional<z.ZodString>;
2428
- created_at: z.ZodBigInt;
2429
- updated_at: z.ZodBigInt;
2430
- version: z.ZodOptional<z.ZodBigInt>;
2431
- }, "strict", z.ZodTypeAny, {
2432
- owner: Uint8Array<ArrayBufferLike>;
2433
- data: Uint8Array<ArrayBufferLike>;
2434
- created_at: bigint;
2435
- updated_at: bigint;
2436
- description?: string | undefined;
2437
- version?: bigint | undefined;
2438
- }, {
2439
- owner: Uint8Array<ArrayBufferLike>;
2440
- data: Uint8Array<ArrayBufferLike>;
2441
- created_at: bigint;
2442
- updated_at: bigint;
2443
- description?: string | undefined;
2444
- version?: bigint | undefined;
2445
- }>;
2446
- }, "strict", z.ZodTypeAny, {
2447
- after: {
2448
- owner: Uint8Array<ArrayBufferLike>;
2449
- data: Uint8Array<ArrayBufferLike>;
2450
- created_at: bigint;
2451
- updated_at: bigint;
2452
- description?: string | undefined;
2453
- version?: bigint | undefined;
2454
- };
2455
- before?: {
2456
- owner: Uint8Array<ArrayBufferLike>;
2457
- data: Uint8Array<ArrayBufferLike>;
2458
- created_at: bigint;
2459
- updated_at: bigint;
2460
- description?: string | undefined;
2461
- version?: bigint | undefined;
2462
- } | undefined;
2463
- }, {
2464
- after: {
2465
- owner: Uint8Array<ArrayBufferLike>;
2466
- data: Uint8Array<ArrayBufferLike>;
2467
- created_at: bigint;
2468
- updated_at: bigint;
2469
- description?: string | undefined;
2470
- version?: bigint | undefined;
2471
- };
2472
- before?: {
2473
- owner: Uint8Array<ArrayBufferLike>;
2474
- data: Uint8Array<ArrayBufferLike>;
2475
- created_at: bigint;
2476
- updated_at: bigint;
2477
- description?: string | undefined;
2478
- version?: bigint | undefined;
2479
- } | undefined;
2480
- }>;
2481
- }>, z.baseObjectInputType<{
2482
- collection: z.ZodString;
2483
- key: z.ZodString;
2484
- data: z.ZodObject<{
2485
- before: z.ZodOptional<z.ZodObject<{
2486
- owner: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
2487
- data: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
2488
- description: z.ZodOptional<z.ZodString>;
2489
- created_at: z.ZodBigInt;
2490
- updated_at: z.ZodBigInt;
2491
- version: z.ZodOptional<z.ZodBigInt>;
2492
- }, "strict", z.ZodTypeAny, {
2493
- owner: Uint8Array<ArrayBufferLike>;
2494
- data: Uint8Array<ArrayBufferLike>;
2495
- created_at: bigint;
2496
- updated_at: bigint;
2497
- description?: string | undefined;
2498
- version?: bigint | undefined;
2499
- }, {
2500
- owner: Uint8Array<ArrayBufferLike>;
2501
- data: Uint8Array<ArrayBufferLike>;
2502
- created_at: bigint;
2503
- updated_at: bigint;
2504
- description?: string | undefined;
2505
- version?: bigint | undefined;
2506
- }>>;
2507
- after: z.ZodObject<{
2508
- owner: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
2509
- data: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
2510
- description: z.ZodOptional<z.ZodString>;
2511
- created_at: z.ZodBigInt;
2512
- updated_at: z.ZodBigInt;
2513
- version: z.ZodOptional<z.ZodBigInt>;
2514
- }, "strict", z.ZodTypeAny, {
2515
- owner: Uint8Array<ArrayBufferLike>;
2516
- data: Uint8Array<ArrayBufferLike>;
2517
- created_at: bigint;
2518
- updated_at: bigint;
2519
- description?: string | undefined;
2520
- version?: bigint | undefined;
2521
- }, {
2522
- owner: Uint8Array<ArrayBufferLike>;
2523
- data: Uint8Array<ArrayBufferLike>;
2524
- created_at: bigint;
2525
- updated_at: bigint;
2526
- description?: string | undefined;
2527
- version?: bigint | undefined;
2528
- }>;
2529
- }, "strict", z.ZodTypeAny, {
2530
- after: {
2531
- owner: Uint8Array<ArrayBufferLike>;
2532
- data: Uint8Array<ArrayBufferLike>;
2533
- created_at: bigint;
2534
- updated_at: bigint;
2535
- description?: string | undefined;
2536
- version?: bigint | undefined;
2537
- };
2538
- before?: {
2539
- owner: Uint8Array<ArrayBufferLike>;
2540
- data: Uint8Array<ArrayBufferLike>;
2541
- created_at: bigint;
2542
- updated_at: bigint;
2543
- description?: string | undefined;
2544
- version?: bigint | undefined;
2545
- } | undefined;
2546
- }, {
2547
- after: {
2548
- owner: Uint8Array<ArrayBufferLike>;
2549
- data: Uint8Array<ArrayBufferLike>;
2550
- created_at: bigint;
2551
- updated_at: bigint;
2552
- description?: string | undefined;
2553
- version?: bigint | undefined;
2554
- };
2555
- before?: {
2556
- owner: Uint8Array<ArrayBufferLike>;
2557
- data: Uint8Array<ArrayBufferLike>;
2558
- created_at: bigint;
2559
- updated_at: bigint;
2560
- description?: string | undefined;
2561
- version?: bigint | undefined;
2562
- } | undefined;
2563
- }>;
2564
- }>>;
2565
- }>, ...args: unknown[]) => void | Promise<void>;
2566
- }>;
2567
- /**
2568
- * All hooks definitions.
2569
- */
2570
- export type Hook = z.infer<typeof HookSchema>;
2571
- export declare const HookFnSchema: <T extends z.ZodTypeAny>(hookSchema: T) => z.ZodFunction<z.ZodTuple<[z.ZodRecord<z.ZodString, z.ZodUnknown>], z.ZodUnknown>, T>;
2572
- export type HookFn<T extends Hook> = (hook: z.infer<typeof SatelliteEnvSchema>) => T;
2573
- export declare const HookFnOrObjectSchema: <T extends z.ZodTypeAny>(hookSchema: T) => z.ZodUnion<[T, z.ZodFunction<z.ZodTuple<[z.ZodRecord<z.ZodString, z.ZodUnknown>], z.ZodUnknown>, T>]>;
2574
- export type HookFnOrObject<T extends Hook> = T | HookFn<T>;
2575
- export declare function defineHook<T extends Hook>(hook: T): T;
2576
- export declare function defineHook<T extends Hook>(hook: HookFn<T>): HookFn<T>;
2577
- export declare function defineHook<T extends Hook>(hook: HookFnOrObject<T>): HookFnOrObject<T>;