@junobuild/functions 0.1.2 → 0.1.3

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,4 +1,4 @@
1
- import * as z from 'zod/v4';
1
+ import * as z from 'zod';
2
2
  import { type Asset } from '../../../schemas/storage';
3
3
  import { type HookContext } from '../context';
4
4
  import { type AssetAssertUpload } from './payload';
@@ -6,34 +6,258 @@ import { type AssetAssertUpload } from './payload';
6
6
  * @see OnUploadAssetContext
7
7
  */
8
8
  export declare const OnUploadAssetContextSchema: z.ZodObject<{
9
- caller: z.ZodCustom<Uint8Array<ArrayBufferLike>, Uint8Array<ArrayBufferLike>>;
9
+ caller: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
10
10
  data: z.ZodObject<{
11
11
  key: z.ZodObject<{
12
12
  name: z.ZodString;
13
13
  full_path: z.ZodString;
14
14
  token: z.ZodOptional<z.ZodString>;
15
15
  collection: z.ZodString;
16
- owner: z.ZodCustom<Uint8Array<ArrayBufferLike>, Uint8Array<ArrayBufferLike>>;
16
+ owner: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
17
17
  description: z.ZodOptional<z.ZodString>;
18
- }, z.core.$strict>;
19
- headers: z.ZodArray<z.ZodTuple<[z.ZodString, z.ZodString], null>>;
20
- encodings: z.ZodArray<z.ZodTuple<[z.ZodEnum<{
21
- identity: "identity";
22
- gzip: "gzip";
23
- compress: "compress";
24
- deflate: "deflate";
25
- br: "br";
26
- }>, z.ZodObject<{
18
+ }, "strict", z.ZodTypeAny, {
19
+ owner: Uint8Array<ArrayBufferLike>;
20
+ collection: string;
21
+ name: string;
22
+ full_path: string;
23
+ description?: string | undefined;
24
+ token?: string | undefined;
25
+ }, {
26
+ owner: Uint8Array<ArrayBufferLike>;
27
+ collection: string;
28
+ name: string;
29
+ full_path: string;
30
+ description?: string | undefined;
31
+ token?: string | undefined;
32
+ }>;
33
+ headers: z.ZodArray<z.ZodTuple<[z.ZodString, z.ZodString], null>, "many">;
34
+ encodings: z.ZodArray<z.ZodTuple<[z.ZodEnum<["identity", "gzip", "compress", "deflate", "br"]>, z.ZodObject<{
27
35
  modified: z.ZodBigInt;
28
- content_chunks: z.ZodArray<z.ZodCustom<Uint8Array<ArrayBufferLike>, Uint8Array<ArrayBufferLike>>>;
36
+ content_chunks: z.ZodArray<z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>, "many">;
29
37
  total_length: z.ZodBigInt;
30
- sha256: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
31
- }, z.core.$strip>], null>>;
38
+ sha256: z.ZodEffects<z.ZodType<Uint8Array<ArrayBuffer>, z.ZodTypeDef, Uint8Array<ArrayBuffer>>, Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
39
+ }, "strip", z.ZodTypeAny, {
40
+ modified: bigint;
41
+ content_chunks: Uint8Array<ArrayBufferLike>[];
42
+ total_length: bigint;
43
+ sha256: Uint8Array<ArrayBuffer>;
44
+ }, {
45
+ modified: bigint;
46
+ content_chunks: Uint8Array<ArrayBufferLike>[];
47
+ total_length: bigint;
48
+ sha256: Uint8Array<ArrayBuffer>;
49
+ }>], null>, "many">;
32
50
  created_at: z.ZodBigInt;
33
51
  updated_at: z.ZodBigInt;
34
52
  version: z.ZodOptional<z.ZodBigInt>;
35
- }, z.core.$strict>;
36
- }, z.core.$strict>;
53
+ }, "strict", z.ZodTypeAny, {
54
+ created_at: bigint;
55
+ updated_at: bigint;
56
+ key: {
57
+ owner: Uint8Array<ArrayBufferLike>;
58
+ collection: string;
59
+ name: string;
60
+ full_path: string;
61
+ description?: string | undefined;
62
+ token?: string | undefined;
63
+ };
64
+ headers: [string, string][];
65
+ encodings: ["identity" | "gzip" | "compress" | "deflate" | "br", {
66
+ modified: bigint;
67
+ content_chunks: Uint8Array<ArrayBufferLike>[];
68
+ total_length: bigint;
69
+ sha256: Uint8Array<ArrayBuffer>;
70
+ }][];
71
+ version?: bigint | undefined;
72
+ }, {
73
+ created_at: bigint;
74
+ updated_at: bigint;
75
+ key: {
76
+ owner: Uint8Array<ArrayBufferLike>;
77
+ collection: string;
78
+ name: string;
79
+ full_path: string;
80
+ description?: string | undefined;
81
+ token?: string | undefined;
82
+ };
83
+ headers: [string, string][];
84
+ encodings: ["identity" | "gzip" | "compress" | "deflate" | "br", {
85
+ modified: bigint;
86
+ content_chunks: Uint8Array<ArrayBufferLike>[];
87
+ total_length: bigint;
88
+ sha256: Uint8Array<ArrayBuffer>;
89
+ }][];
90
+ version?: bigint | undefined;
91
+ }>;
92
+ }, "strict", z.ZodTypeAny, z.baseObjectOutputType<{
93
+ caller: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
94
+ data: z.ZodObject<{
95
+ key: z.ZodObject<{
96
+ name: z.ZodString;
97
+ full_path: z.ZodString;
98
+ token: z.ZodOptional<z.ZodString>;
99
+ collection: z.ZodString;
100
+ owner: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
101
+ description: z.ZodOptional<z.ZodString>;
102
+ }, "strict", z.ZodTypeAny, {
103
+ owner: Uint8Array<ArrayBufferLike>;
104
+ collection: string;
105
+ name: string;
106
+ full_path: string;
107
+ description?: string | undefined;
108
+ token?: string | undefined;
109
+ }, {
110
+ owner: Uint8Array<ArrayBufferLike>;
111
+ collection: string;
112
+ name: string;
113
+ full_path: string;
114
+ description?: string | undefined;
115
+ token?: string | undefined;
116
+ }>;
117
+ headers: z.ZodArray<z.ZodTuple<[z.ZodString, z.ZodString], null>, "many">;
118
+ encodings: z.ZodArray<z.ZodTuple<[z.ZodEnum<["identity", "gzip", "compress", "deflate", "br"]>, z.ZodObject<{
119
+ modified: z.ZodBigInt;
120
+ content_chunks: z.ZodArray<z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>, "many">;
121
+ total_length: z.ZodBigInt;
122
+ sha256: z.ZodEffects<z.ZodType<Uint8Array<ArrayBuffer>, z.ZodTypeDef, Uint8Array<ArrayBuffer>>, Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
123
+ }, "strip", z.ZodTypeAny, {
124
+ modified: bigint;
125
+ content_chunks: Uint8Array<ArrayBufferLike>[];
126
+ total_length: bigint;
127
+ sha256: Uint8Array<ArrayBuffer>;
128
+ }, {
129
+ modified: bigint;
130
+ content_chunks: Uint8Array<ArrayBufferLike>[];
131
+ total_length: bigint;
132
+ sha256: Uint8Array<ArrayBuffer>;
133
+ }>], null>, "many">;
134
+ created_at: z.ZodBigInt;
135
+ updated_at: z.ZodBigInt;
136
+ version: z.ZodOptional<z.ZodBigInt>;
137
+ }, "strict", z.ZodTypeAny, {
138
+ created_at: bigint;
139
+ updated_at: bigint;
140
+ key: {
141
+ owner: Uint8Array<ArrayBufferLike>;
142
+ collection: string;
143
+ name: string;
144
+ full_path: string;
145
+ description?: string | undefined;
146
+ token?: string | undefined;
147
+ };
148
+ headers: [string, string][];
149
+ encodings: ["identity" | "gzip" | "compress" | "deflate" | "br", {
150
+ modified: bigint;
151
+ content_chunks: Uint8Array<ArrayBufferLike>[];
152
+ total_length: bigint;
153
+ sha256: Uint8Array<ArrayBuffer>;
154
+ }][];
155
+ version?: bigint | undefined;
156
+ }, {
157
+ created_at: bigint;
158
+ updated_at: bigint;
159
+ key: {
160
+ owner: Uint8Array<ArrayBufferLike>;
161
+ collection: string;
162
+ name: string;
163
+ full_path: string;
164
+ description?: string | undefined;
165
+ token?: string | undefined;
166
+ };
167
+ headers: [string, string][];
168
+ encodings: ["identity" | "gzip" | "compress" | "deflate" | "br", {
169
+ modified: bigint;
170
+ content_chunks: Uint8Array<ArrayBufferLike>[];
171
+ total_length: bigint;
172
+ sha256: Uint8Array<ArrayBuffer>;
173
+ }][];
174
+ version?: bigint | undefined;
175
+ }>;
176
+ }>, z.baseObjectInputType<{
177
+ caller: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
178
+ data: z.ZodObject<{
179
+ key: z.ZodObject<{
180
+ name: z.ZodString;
181
+ full_path: z.ZodString;
182
+ token: z.ZodOptional<z.ZodString>;
183
+ collection: z.ZodString;
184
+ owner: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
185
+ description: z.ZodOptional<z.ZodString>;
186
+ }, "strict", z.ZodTypeAny, {
187
+ owner: Uint8Array<ArrayBufferLike>;
188
+ collection: string;
189
+ name: string;
190
+ full_path: string;
191
+ description?: string | undefined;
192
+ token?: string | undefined;
193
+ }, {
194
+ owner: Uint8Array<ArrayBufferLike>;
195
+ collection: string;
196
+ name: string;
197
+ full_path: string;
198
+ description?: string | undefined;
199
+ token?: string | undefined;
200
+ }>;
201
+ headers: z.ZodArray<z.ZodTuple<[z.ZodString, z.ZodString], null>, "many">;
202
+ encodings: z.ZodArray<z.ZodTuple<[z.ZodEnum<["identity", "gzip", "compress", "deflate", "br"]>, z.ZodObject<{
203
+ modified: z.ZodBigInt;
204
+ content_chunks: z.ZodArray<z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>, "many">;
205
+ total_length: z.ZodBigInt;
206
+ sha256: z.ZodEffects<z.ZodType<Uint8Array<ArrayBuffer>, z.ZodTypeDef, Uint8Array<ArrayBuffer>>, Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
207
+ }, "strip", z.ZodTypeAny, {
208
+ modified: bigint;
209
+ content_chunks: Uint8Array<ArrayBufferLike>[];
210
+ total_length: bigint;
211
+ sha256: Uint8Array<ArrayBuffer>;
212
+ }, {
213
+ modified: bigint;
214
+ content_chunks: Uint8Array<ArrayBufferLike>[];
215
+ total_length: bigint;
216
+ sha256: Uint8Array<ArrayBuffer>;
217
+ }>], null>, "many">;
218
+ created_at: z.ZodBigInt;
219
+ updated_at: z.ZodBigInt;
220
+ version: z.ZodOptional<z.ZodBigInt>;
221
+ }, "strict", z.ZodTypeAny, {
222
+ created_at: bigint;
223
+ updated_at: bigint;
224
+ key: {
225
+ owner: Uint8Array<ArrayBufferLike>;
226
+ collection: string;
227
+ name: string;
228
+ full_path: string;
229
+ description?: string | undefined;
230
+ token?: string | undefined;
231
+ };
232
+ headers: [string, string][];
233
+ encodings: ["identity" | "gzip" | "compress" | "deflate" | "br", {
234
+ modified: bigint;
235
+ content_chunks: Uint8Array<ArrayBufferLike>[];
236
+ total_length: bigint;
237
+ sha256: Uint8Array<ArrayBuffer>;
238
+ }][];
239
+ version?: bigint | undefined;
240
+ }, {
241
+ created_at: bigint;
242
+ updated_at: bigint;
243
+ key: {
244
+ owner: Uint8Array<ArrayBufferLike>;
245
+ collection: string;
246
+ name: string;
247
+ full_path: string;
248
+ description?: string | undefined;
249
+ token?: string | undefined;
250
+ };
251
+ headers: [string, string][];
252
+ encodings: ["identity" | "gzip" | "compress" | "deflate" | "br", {
253
+ modified: bigint;
254
+ content_chunks: Uint8Array<ArrayBufferLike>[];
255
+ total_length: bigint;
256
+ sha256: Uint8Array<ArrayBuffer>;
257
+ }][];
258
+ version?: bigint | undefined;
259
+ }>;
260
+ }>>;
37
261
  /**
38
262
  * Context for the `onUploadAsset` hook.
39
263
  *
@@ -44,34 +268,258 @@ export type OnUploadAssetContext = HookContext<Asset>;
44
268
  * @see OnDeleteAssetContext
45
269
  */
46
270
  export declare const OnDeleteAssetContextSchema: z.ZodObject<{
47
- caller: z.ZodCustom<Uint8Array<ArrayBufferLike>, Uint8Array<ArrayBufferLike>>;
271
+ caller: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
272
+ data: z.ZodOptional<z.ZodObject<{
273
+ key: z.ZodObject<{
274
+ name: z.ZodString;
275
+ full_path: z.ZodString;
276
+ token: z.ZodOptional<z.ZodString>;
277
+ collection: z.ZodString;
278
+ owner: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
279
+ description: z.ZodOptional<z.ZodString>;
280
+ }, "strict", z.ZodTypeAny, {
281
+ owner: Uint8Array<ArrayBufferLike>;
282
+ collection: string;
283
+ name: string;
284
+ full_path: string;
285
+ description?: string | undefined;
286
+ token?: string | undefined;
287
+ }, {
288
+ owner: Uint8Array<ArrayBufferLike>;
289
+ collection: string;
290
+ name: string;
291
+ full_path: string;
292
+ description?: string | undefined;
293
+ token?: string | undefined;
294
+ }>;
295
+ headers: z.ZodArray<z.ZodTuple<[z.ZodString, z.ZodString], null>, "many">;
296
+ encodings: z.ZodArray<z.ZodTuple<[z.ZodEnum<["identity", "gzip", "compress", "deflate", "br"]>, z.ZodObject<{
297
+ modified: z.ZodBigInt;
298
+ content_chunks: z.ZodArray<z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>, "many">;
299
+ total_length: z.ZodBigInt;
300
+ sha256: z.ZodEffects<z.ZodType<Uint8Array<ArrayBuffer>, z.ZodTypeDef, Uint8Array<ArrayBuffer>>, Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
301
+ }, "strip", z.ZodTypeAny, {
302
+ modified: bigint;
303
+ content_chunks: Uint8Array<ArrayBufferLike>[];
304
+ total_length: bigint;
305
+ sha256: Uint8Array<ArrayBuffer>;
306
+ }, {
307
+ modified: bigint;
308
+ content_chunks: Uint8Array<ArrayBufferLike>[];
309
+ total_length: bigint;
310
+ sha256: Uint8Array<ArrayBuffer>;
311
+ }>], null>, "many">;
312
+ created_at: z.ZodBigInt;
313
+ updated_at: z.ZodBigInt;
314
+ version: z.ZodOptional<z.ZodBigInt>;
315
+ }, "strict", z.ZodTypeAny, {
316
+ created_at: bigint;
317
+ updated_at: bigint;
318
+ key: {
319
+ owner: Uint8Array<ArrayBufferLike>;
320
+ collection: string;
321
+ name: string;
322
+ full_path: string;
323
+ description?: string | undefined;
324
+ token?: string | undefined;
325
+ };
326
+ headers: [string, string][];
327
+ encodings: ["identity" | "gzip" | "compress" | "deflate" | "br", {
328
+ modified: bigint;
329
+ content_chunks: Uint8Array<ArrayBufferLike>[];
330
+ total_length: bigint;
331
+ sha256: Uint8Array<ArrayBuffer>;
332
+ }][];
333
+ version?: bigint | undefined;
334
+ }, {
335
+ created_at: bigint;
336
+ updated_at: bigint;
337
+ key: {
338
+ owner: Uint8Array<ArrayBufferLike>;
339
+ collection: string;
340
+ name: string;
341
+ full_path: string;
342
+ description?: string | undefined;
343
+ token?: string | undefined;
344
+ };
345
+ headers: [string, string][];
346
+ encodings: ["identity" | "gzip" | "compress" | "deflate" | "br", {
347
+ modified: bigint;
348
+ content_chunks: Uint8Array<ArrayBufferLike>[];
349
+ total_length: bigint;
350
+ sha256: Uint8Array<ArrayBuffer>;
351
+ }][];
352
+ version?: bigint | undefined;
353
+ }>>;
354
+ }, "strict", z.ZodTypeAny, z.baseObjectOutputType<{
355
+ caller: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
356
+ data: z.ZodOptional<z.ZodObject<{
357
+ key: z.ZodObject<{
358
+ name: z.ZodString;
359
+ full_path: z.ZodString;
360
+ token: z.ZodOptional<z.ZodString>;
361
+ collection: z.ZodString;
362
+ owner: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
363
+ description: z.ZodOptional<z.ZodString>;
364
+ }, "strict", z.ZodTypeAny, {
365
+ owner: Uint8Array<ArrayBufferLike>;
366
+ collection: string;
367
+ name: string;
368
+ full_path: string;
369
+ description?: string | undefined;
370
+ token?: string | undefined;
371
+ }, {
372
+ owner: Uint8Array<ArrayBufferLike>;
373
+ collection: string;
374
+ name: string;
375
+ full_path: string;
376
+ description?: string | undefined;
377
+ token?: string | undefined;
378
+ }>;
379
+ headers: z.ZodArray<z.ZodTuple<[z.ZodString, z.ZodString], null>, "many">;
380
+ encodings: z.ZodArray<z.ZodTuple<[z.ZodEnum<["identity", "gzip", "compress", "deflate", "br"]>, z.ZodObject<{
381
+ modified: z.ZodBigInt;
382
+ content_chunks: z.ZodArray<z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>, "many">;
383
+ total_length: z.ZodBigInt;
384
+ sha256: z.ZodEffects<z.ZodType<Uint8Array<ArrayBuffer>, z.ZodTypeDef, Uint8Array<ArrayBuffer>>, Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
385
+ }, "strip", z.ZodTypeAny, {
386
+ modified: bigint;
387
+ content_chunks: Uint8Array<ArrayBufferLike>[];
388
+ total_length: bigint;
389
+ sha256: Uint8Array<ArrayBuffer>;
390
+ }, {
391
+ modified: bigint;
392
+ content_chunks: Uint8Array<ArrayBufferLike>[];
393
+ total_length: bigint;
394
+ sha256: Uint8Array<ArrayBuffer>;
395
+ }>], null>, "many">;
396
+ created_at: z.ZodBigInt;
397
+ updated_at: z.ZodBigInt;
398
+ version: z.ZodOptional<z.ZodBigInt>;
399
+ }, "strict", z.ZodTypeAny, {
400
+ created_at: bigint;
401
+ updated_at: bigint;
402
+ key: {
403
+ owner: Uint8Array<ArrayBufferLike>;
404
+ collection: string;
405
+ name: string;
406
+ full_path: string;
407
+ description?: string | undefined;
408
+ token?: string | undefined;
409
+ };
410
+ headers: [string, string][];
411
+ encodings: ["identity" | "gzip" | "compress" | "deflate" | "br", {
412
+ modified: bigint;
413
+ content_chunks: Uint8Array<ArrayBufferLike>[];
414
+ total_length: bigint;
415
+ sha256: Uint8Array<ArrayBuffer>;
416
+ }][];
417
+ version?: bigint | undefined;
418
+ }, {
419
+ created_at: bigint;
420
+ updated_at: bigint;
421
+ key: {
422
+ owner: Uint8Array<ArrayBufferLike>;
423
+ collection: string;
424
+ name: string;
425
+ full_path: string;
426
+ description?: string | undefined;
427
+ token?: string | undefined;
428
+ };
429
+ headers: [string, string][];
430
+ encodings: ["identity" | "gzip" | "compress" | "deflate" | "br", {
431
+ modified: bigint;
432
+ content_chunks: Uint8Array<ArrayBufferLike>[];
433
+ total_length: bigint;
434
+ sha256: Uint8Array<ArrayBuffer>;
435
+ }][];
436
+ version?: bigint | undefined;
437
+ }>>;
438
+ }>, z.baseObjectInputType<{
439
+ caller: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
48
440
  data: z.ZodOptional<z.ZodObject<{
49
441
  key: z.ZodObject<{
50
442
  name: z.ZodString;
51
443
  full_path: z.ZodString;
52
444
  token: z.ZodOptional<z.ZodString>;
53
445
  collection: z.ZodString;
54
- owner: z.ZodCustom<Uint8Array<ArrayBufferLike>, Uint8Array<ArrayBufferLike>>;
446
+ owner: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
55
447
  description: z.ZodOptional<z.ZodString>;
56
- }, z.core.$strict>;
57
- headers: z.ZodArray<z.ZodTuple<[z.ZodString, z.ZodString], null>>;
58
- encodings: z.ZodArray<z.ZodTuple<[z.ZodEnum<{
59
- identity: "identity";
60
- gzip: "gzip";
61
- compress: "compress";
62
- deflate: "deflate";
63
- br: "br";
64
- }>, z.ZodObject<{
448
+ }, "strict", z.ZodTypeAny, {
449
+ owner: Uint8Array<ArrayBufferLike>;
450
+ collection: string;
451
+ name: string;
452
+ full_path: string;
453
+ description?: string | undefined;
454
+ token?: string | undefined;
455
+ }, {
456
+ owner: Uint8Array<ArrayBufferLike>;
457
+ collection: string;
458
+ name: string;
459
+ full_path: string;
460
+ description?: string | undefined;
461
+ token?: string | undefined;
462
+ }>;
463
+ headers: z.ZodArray<z.ZodTuple<[z.ZodString, z.ZodString], null>, "many">;
464
+ encodings: z.ZodArray<z.ZodTuple<[z.ZodEnum<["identity", "gzip", "compress", "deflate", "br"]>, z.ZodObject<{
65
465
  modified: z.ZodBigInt;
66
- content_chunks: z.ZodArray<z.ZodCustom<Uint8Array<ArrayBufferLike>, Uint8Array<ArrayBufferLike>>>;
466
+ content_chunks: z.ZodArray<z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>, "many">;
67
467
  total_length: z.ZodBigInt;
68
- sha256: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
69
- }, z.core.$strip>], null>>;
468
+ sha256: z.ZodEffects<z.ZodType<Uint8Array<ArrayBuffer>, z.ZodTypeDef, Uint8Array<ArrayBuffer>>, Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
469
+ }, "strip", z.ZodTypeAny, {
470
+ modified: bigint;
471
+ content_chunks: Uint8Array<ArrayBufferLike>[];
472
+ total_length: bigint;
473
+ sha256: Uint8Array<ArrayBuffer>;
474
+ }, {
475
+ modified: bigint;
476
+ content_chunks: Uint8Array<ArrayBufferLike>[];
477
+ total_length: bigint;
478
+ sha256: Uint8Array<ArrayBuffer>;
479
+ }>], null>, "many">;
70
480
  created_at: z.ZodBigInt;
71
481
  updated_at: z.ZodBigInt;
72
482
  version: z.ZodOptional<z.ZodBigInt>;
73
- }, z.core.$strict>>;
74
- }, z.core.$strict>;
483
+ }, "strict", z.ZodTypeAny, {
484
+ created_at: bigint;
485
+ updated_at: bigint;
486
+ key: {
487
+ owner: Uint8Array<ArrayBufferLike>;
488
+ collection: string;
489
+ name: string;
490
+ full_path: string;
491
+ description?: string | undefined;
492
+ token?: string | undefined;
493
+ };
494
+ headers: [string, string][];
495
+ encodings: ["identity" | "gzip" | "compress" | "deflate" | "br", {
496
+ modified: bigint;
497
+ content_chunks: Uint8Array<ArrayBufferLike>[];
498
+ total_length: bigint;
499
+ sha256: Uint8Array<ArrayBuffer>;
500
+ }][];
501
+ version?: bigint | undefined;
502
+ }, {
503
+ created_at: bigint;
504
+ updated_at: bigint;
505
+ key: {
506
+ owner: Uint8Array<ArrayBufferLike>;
507
+ collection: string;
508
+ name: string;
509
+ full_path: string;
510
+ description?: string | undefined;
511
+ token?: string | undefined;
512
+ };
513
+ headers: [string, string][];
514
+ encodings: ["identity" | "gzip" | "compress" | "deflate" | "br", {
515
+ modified: bigint;
516
+ content_chunks: Uint8Array<ArrayBufferLike>[];
517
+ total_length: bigint;
518
+ sha256: Uint8Array<ArrayBuffer>;
519
+ }][];
520
+ version?: bigint | undefined;
521
+ }>>;
522
+ }>>;
75
523
  /**
76
524
  * Context for the `onDeleteAsset` hook.
77
525
  *
@@ -84,34 +532,258 @@ export type OnDeleteAssetContext = HookContext<Asset | undefined>;
84
532
  * @see OnDeleteManyAssetsContext
85
533
  */
86
534
  export declare const OnDeleteManyAssetsContextSchema: z.ZodObject<{
87
- caller: z.ZodCustom<Uint8Array<ArrayBufferLike>, Uint8Array<ArrayBufferLike>>;
535
+ caller: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
536
+ data: z.ZodArray<z.ZodOptional<z.ZodObject<{
537
+ key: z.ZodObject<{
538
+ name: z.ZodString;
539
+ full_path: z.ZodString;
540
+ token: z.ZodOptional<z.ZodString>;
541
+ collection: z.ZodString;
542
+ owner: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
543
+ description: z.ZodOptional<z.ZodString>;
544
+ }, "strict", z.ZodTypeAny, {
545
+ owner: Uint8Array<ArrayBufferLike>;
546
+ collection: string;
547
+ name: string;
548
+ full_path: string;
549
+ description?: string | undefined;
550
+ token?: string | undefined;
551
+ }, {
552
+ owner: Uint8Array<ArrayBufferLike>;
553
+ collection: string;
554
+ name: string;
555
+ full_path: string;
556
+ description?: string | undefined;
557
+ token?: string | undefined;
558
+ }>;
559
+ headers: z.ZodArray<z.ZodTuple<[z.ZodString, z.ZodString], null>, "many">;
560
+ encodings: z.ZodArray<z.ZodTuple<[z.ZodEnum<["identity", "gzip", "compress", "deflate", "br"]>, z.ZodObject<{
561
+ modified: z.ZodBigInt;
562
+ content_chunks: z.ZodArray<z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>, "many">;
563
+ total_length: z.ZodBigInt;
564
+ sha256: z.ZodEffects<z.ZodType<Uint8Array<ArrayBuffer>, z.ZodTypeDef, Uint8Array<ArrayBuffer>>, Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
565
+ }, "strip", z.ZodTypeAny, {
566
+ modified: bigint;
567
+ content_chunks: Uint8Array<ArrayBufferLike>[];
568
+ total_length: bigint;
569
+ sha256: Uint8Array<ArrayBuffer>;
570
+ }, {
571
+ modified: bigint;
572
+ content_chunks: Uint8Array<ArrayBufferLike>[];
573
+ total_length: bigint;
574
+ sha256: Uint8Array<ArrayBuffer>;
575
+ }>], null>, "many">;
576
+ created_at: z.ZodBigInt;
577
+ updated_at: z.ZodBigInt;
578
+ version: z.ZodOptional<z.ZodBigInt>;
579
+ }, "strict", z.ZodTypeAny, {
580
+ created_at: bigint;
581
+ updated_at: bigint;
582
+ key: {
583
+ owner: Uint8Array<ArrayBufferLike>;
584
+ collection: string;
585
+ name: string;
586
+ full_path: string;
587
+ description?: string | undefined;
588
+ token?: string | undefined;
589
+ };
590
+ headers: [string, string][];
591
+ encodings: ["identity" | "gzip" | "compress" | "deflate" | "br", {
592
+ modified: bigint;
593
+ content_chunks: Uint8Array<ArrayBufferLike>[];
594
+ total_length: bigint;
595
+ sha256: Uint8Array<ArrayBuffer>;
596
+ }][];
597
+ version?: bigint | undefined;
598
+ }, {
599
+ created_at: bigint;
600
+ updated_at: bigint;
601
+ key: {
602
+ owner: Uint8Array<ArrayBufferLike>;
603
+ collection: string;
604
+ name: string;
605
+ full_path: string;
606
+ description?: string | undefined;
607
+ token?: string | undefined;
608
+ };
609
+ headers: [string, string][];
610
+ encodings: ["identity" | "gzip" | "compress" | "deflate" | "br", {
611
+ modified: bigint;
612
+ content_chunks: Uint8Array<ArrayBufferLike>[];
613
+ total_length: bigint;
614
+ sha256: Uint8Array<ArrayBuffer>;
615
+ }][];
616
+ version?: bigint | undefined;
617
+ }>>, "many">;
618
+ }, "strict", z.ZodTypeAny, z.baseObjectOutputType<{
619
+ caller: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
620
+ data: z.ZodArray<z.ZodOptional<z.ZodObject<{
621
+ key: z.ZodObject<{
622
+ name: z.ZodString;
623
+ full_path: z.ZodString;
624
+ token: z.ZodOptional<z.ZodString>;
625
+ collection: z.ZodString;
626
+ owner: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
627
+ description: z.ZodOptional<z.ZodString>;
628
+ }, "strict", z.ZodTypeAny, {
629
+ owner: Uint8Array<ArrayBufferLike>;
630
+ collection: string;
631
+ name: string;
632
+ full_path: string;
633
+ description?: string | undefined;
634
+ token?: string | undefined;
635
+ }, {
636
+ owner: Uint8Array<ArrayBufferLike>;
637
+ collection: string;
638
+ name: string;
639
+ full_path: string;
640
+ description?: string | undefined;
641
+ token?: string | undefined;
642
+ }>;
643
+ headers: z.ZodArray<z.ZodTuple<[z.ZodString, z.ZodString], null>, "many">;
644
+ encodings: z.ZodArray<z.ZodTuple<[z.ZodEnum<["identity", "gzip", "compress", "deflate", "br"]>, z.ZodObject<{
645
+ modified: z.ZodBigInt;
646
+ content_chunks: z.ZodArray<z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>, "many">;
647
+ total_length: z.ZodBigInt;
648
+ sha256: z.ZodEffects<z.ZodType<Uint8Array<ArrayBuffer>, z.ZodTypeDef, Uint8Array<ArrayBuffer>>, Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
649
+ }, "strip", z.ZodTypeAny, {
650
+ modified: bigint;
651
+ content_chunks: Uint8Array<ArrayBufferLike>[];
652
+ total_length: bigint;
653
+ sha256: Uint8Array<ArrayBuffer>;
654
+ }, {
655
+ modified: bigint;
656
+ content_chunks: Uint8Array<ArrayBufferLike>[];
657
+ total_length: bigint;
658
+ sha256: Uint8Array<ArrayBuffer>;
659
+ }>], null>, "many">;
660
+ created_at: z.ZodBigInt;
661
+ updated_at: z.ZodBigInt;
662
+ version: z.ZodOptional<z.ZodBigInt>;
663
+ }, "strict", z.ZodTypeAny, {
664
+ created_at: bigint;
665
+ updated_at: bigint;
666
+ key: {
667
+ owner: Uint8Array<ArrayBufferLike>;
668
+ collection: string;
669
+ name: string;
670
+ full_path: string;
671
+ description?: string | undefined;
672
+ token?: string | undefined;
673
+ };
674
+ headers: [string, string][];
675
+ encodings: ["identity" | "gzip" | "compress" | "deflate" | "br", {
676
+ modified: bigint;
677
+ content_chunks: Uint8Array<ArrayBufferLike>[];
678
+ total_length: bigint;
679
+ sha256: Uint8Array<ArrayBuffer>;
680
+ }][];
681
+ version?: bigint | undefined;
682
+ }, {
683
+ created_at: bigint;
684
+ updated_at: bigint;
685
+ key: {
686
+ owner: Uint8Array<ArrayBufferLike>;
687
+ collection: string;
688
+ name: string;
689
+ full_path: string;
690
+ description?: string | undefined;
691
+ token?: string | undefined;
692
+ };
693
+ headers: [string, string][];
694
+ encodings: ["identity" | "gzip" | "compress" | "deflate" | "br", {
695
+ modified: bigint;
696
+ content_chunks: Uint8Array<ArrayBufferLike>[];
697
+ total_length: bigint;
698
+ sha256: Uint8Array<ArrayBuffer>;
699
+ }][];
700
+ version?: bigint | undefined;
701
+ }>>, "many">;
702
+ }>, z.baseObjectInputType<{
703
+ caller: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
88
704
  data: z.ZodArray<z.ZodOptional<z.ZodObject<{
89
705
  key: z.ZodObject<{
90
706
  name: z.ZodString;
91
707
  full_path: z.ZodString;
92
708
  token: z.ZodOptional<z.ZodString>;
93
709
  collection: z.ZodString;
94
- owner: z.ZodCustom<Uint8Array<ArrayBufferLike>, Uint8Array<ArrayBufferLike>>;
710
+ owner: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
95
711
  description: z.ZodOptional<z.ZodString>;
96
- }, z.core.$strict>;
97
- headers: z.ZodArray<z.ZodTuple<[z.ZodString, z.ZodString], null>>;
98
- encodings: z.ZodArray<z.ZodTuple<[z.ZodEnum<{
99
- identity: "identity";
100
- gzip: "gzip";
101
- compress: "compress";
102
- deflate: "deflate";
103
- br: "br";
104
- }>, z.ZodObject<{
712
+ }, "strict", z.ZodTypeAny, {
713
+ owner: Uint8Array<ArrayBufferLike>;
714
+ collection: string;
715
+ name: string;
716
+ full_path: string;
717
+ description?: string | undefined;
718
+ token?: string | undefined;
719
+ }, {
720
+ owner: Uint8Array<ArrayBufferLike>;
721
+ collection: string;
722
+ name: string;
723
+ full_path: string;
724
+ description?: string | undefined;
725
+ token?: string | undefined;
726
+ }>;
727
+ headers: z.ZodArray<z.ZodTuple<[z.ZodString, z.ZodString], null>, "many">;
728
+ encodings: z.ZodArray<z.ZodTuple<[z.ZodEnum<["identity", "gzip", "compress", "deflate", "br"]>, z.ZodObject<{
105
729
  modified: z.ZodBigInt;
106
- content_chunks: z.ZodArray<z.ZodCustom<Uint8Array<ArrayBufferLike>, Uint8Array<ArrayBufferLike>>>;
730
+ content_chunks: z.ZodArray<z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>, "many">;
107
731
  total_length: z.ZodBigInt;
108
- sha256: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
109
- }, z.core.$strip>], null>>;
732
+ sha256: z.ZodEffects<z.ZodType<Uint8Array<ArrayBuffer>, z.ZodTypeDef, Uint8Array<ArrayBuffer>>, Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
733
+ }, "strip", z.ZodTypeAny, {
734
+ modified: bigint;
735
+ content_chunks: Uint8Array<ArrayBufferLike>[];
736
+ total_length: bigint;
737
+ sha256: Uint8Array<ArrayBuffer>;
738
+ }, {
739
+ modified: bigint;
740
+ content_chunks: Uint8Array<ArrayBufferLike>[];
741
+ total_length: bigint;
742
+ sha256: Uint8Array<ArrayBuffer>;
743
+ }>], null>, "many">;
110
744
  created_at: z.ZodBigInt;
111
745
  updated_at: z.ZodBigInt;
112
746
  version: z.ZodOptional<z.ZodBigInt>;
113
- }, z.core.$strict>>>;
114
- }, z.core.$strict>;
747
+ }, "strict", z.ZodTypeAny, {
748
+ created_at: bigint;
749
+ updated_at: bigint;
750
+ key: {
751
+ owner: Uint8Array<ArrayBufferLike>;
752
+ collection: string;
753
+ name: string;
754
+ full_path: string;
755
+ description?: string | undefined;
756
+ token?: string | undefined;
757
+ };
758
+ headers: [string, string][];
759
+ encodings: ["identity" | "gzip" | "compress" | "deflate" | "br", {
760
+ modified: bigint;
761
+ content_chunks: Uint8Array<ArrayBufferLike>[];
762
+ total_length: bigint;
763
+ sha256: Uint8Array<ArrayBuffer>;
764
+ }][];
765
+ version?: bigint | undefined;
766
+ }, {
767
+ created_at: bigint;
768
+ updated_at: bigint;
769
+ key: {
770
+ owner: Uint8Array<ArrayBufferLike>;
771
+ collection: string;
772
+ name: string;
773
+ full_path: string;
774
+ description?: string | undefined;
775
+ token?: string | undefined;
776
+ };
777
+ headers: [string, string][];
778
+ encodings: ["identity" | "gzip" | "compress" | "deflate" | "br", {
779
+ modified: bigint;
780
+ content_chunks: Uint8Array<ArrayBufferLike>[];
781
+ total_length: bigint;
782
+ sha256: Uint8Array<ArrayBuffer>;
783
+ }][];
784
+ version?: bigint | undefined;
785
+ }>>, "many">;
786
+ }>>;
115
787
  /**
116
788
  * Context for the `onDeleteManyAssets` hook.
117
789
  *
@@ -122,34 +794,258 @@ export type OnDeleteManyAssetsContext = HookContext<Array<Asset | undefined>>;
122
794
  * @see OnDeleteFilteredAssetsContext
123
795
  */
124
796
  export declare const OnDeleteFilteredAssetsContextSchema: z.ZodObject<{
125
- caller: z.ZodCustom<Uint8Array<ArrayBufferLike>, Uint8Array<ArrayBufferLike>>;
797
+ caller: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
798
+ data: z.ZodArray<z.ZodOptional<z.ZodObject<{
799
+ key: z.ZodObject<{
800
+ name: z.ZodString;
801
+ full_path: z.ZodString;
802
+ token: z.ZodOptional<z.ZodString>;
803
+ collection: z.ZodString;
804
+ owner: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
805
+ description: z.ZodOptional<z.ZodString>;
806
+ }, "strict", z.ZodTypeAny, {
807
+ owner: Uint8Array<ArrayBufferLike>;
808
+ collection: string;
809
+ name: string;
810
+ full_path: string;
811
+ description?: string | undefined;
812
+ token?: string | undefined;
813
+ }, {
814
+ owner: Uint8Array<ArrayBufferLike>;
815
+ collection: string;
816
+ name: string;
817
+ full_path: string;
818
+ description?: string | undefined;
819
+ token?: string | undefined;
820
+ }>;
821
+ headers: z.ZodArray<z.ZodTuple<[z.ZodString, z.ZodString], null>, "many">;
822
+ encodings: z.ZodArray<z.ZodTuple<[z.ZodEnum<["identity", "gzip", "compress", "deflate", "br"]>, z.ZodObject<{
823
+ modified: z.ZodBigInt;
824
+ content_chunks: z.ZodArray<z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>, "many">;
825
+ total_length: z.ZodBigInt;
826
+ sha256: z.ZodEffects<z.ZodType<Uint8Array<ArrayBuffer>, z.ZodTypeDef, Uint8Array<ArrayBuffer>>, Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
827
+ }, "strip", z.ZodTypeAny, {
828
+ modified: bigint;
829
+ content_chunks: Uint8Array<ArrayBufferLike>[];
830
+ total_length: bigint;
831
+ sha256: Uint8Array<ArrayBuffer>;
832
+ }, {
833
+ modified: bigint;
834
+ content_chunks: Uint8Array<ArrayBufferLike>[];
835
+ total_length: bigint;
836
+ sha256: Uint8Array<ArrayBuffer>;
837
+ }>], null>, "many">;
838
+ created_at: z.ZodBigInt;
839
+ updated_at: z.ZodBigInt;
840
+ version: z.ZodOptional<z.ZodBigInt>;
841
+ }, "strict", z.ZodTypeAny, {
842
+ created_at: bigint;
843
+ updated_at: bigint;
844
+ key: {
845
+ owner: Uint8Array<ArrayBufferLike>;
846
+ collection: string;
847
+ name: string;
848
+ full_path: string;
849
+ description?: string | undefined;
850
+ token?: string | undefined;
851
+ };
852
+ headers: [string, string][];
853
+ encodings: ["identity" | "gzip" | "compress" | "deflate" | "br", {
854
+ modified: bigint;
855
+ content_chunks: Uint8Array<ArrayBufferLike>[];
856
+ total_length: bigint;
857
+ sha256: Uint8Array<ArrayBuffer>;
858
+ }][];
859
+ version?: bigint | undefined;
860
+ }, {
861
+ created_at: bigint;
862
+ updated_at: bigint;
863
+ key: {
864
+ owner: Uint8Array<ArrayBufferLike>;
865
+ collection: string;
866
+ name: string;
867
+ full_path: string;
868
+ description?: string | undefined;
869
+ token?: string | undefined;
870
+ };
871
+ headers: [string, string][];
872
+ encodings: ["identity" | "gzip" | "compress" | "deflate" | "br", {
873
+ modified: bigint;
874
+ content_chunks: Uint8Array<ArrayBufferLike>[];
875
+ total_length: bigint;
876
+ sha256: Uint8Array<ArrayBuffer>;
877
+ }][];
878
+ version?: bigint | undefined;
879
+ }>>, "many">;
880
+ }, "strict", z.ZodTypeAny, z.baseObjectOutputType<{
881
+ caller: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
126
882
  data: z.ZodArray<z.ZodOptional<z.ZodObject<{
127
883
  key: z.ZodObject<{
128
884
  name: z.ZodString;
129
885
  full_path: z.ZodString;
130
886
  token: z.ZodOptional<z.ZodString>;
131
887
  collection: z.ZodString;
132
- owner: z.ZodCustom<Uint8Array<ArrayBufferLike>, Uint8Array<ArrayBufferLike>>;
888
+ owner: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
133
889
  description: z.ZodOptional<z.ZodString>;
134
- }, z.core.$strict>;
135
- headers: z.ZodArray<z.ZodTuple<[z.ZodString, z.ZodString], null>>;
136
- encodings: z.ZodArray<z.ZodTuple<[z.ZodEnum<{
137
- identity: "identity";
138
- gzip: "gzip";
139
- compress: "compress";
140
- deflate: "deflate";
141
- br: "br";
142
- }>, z.ZodObject<{
890
+ }, "strict", z.ZodTypeAny, {
891
+ owner: Uint8Array<ArrayBufferLike>;
892
+ collection: string;
893
+ name: string;
894
+ full_path: string;
895
+ description?: string | undefined;
896
+ token?: string | undefined;
897
+ }, {
898
+ owner: Uint8Array<ArrayBufferLike>;
899
+ collection: string;
900
+ name: string;
901
+ full_path: string;
902
+ description?: string | undefined;
903
+ token?: string | undefined;
904
+ }>;
905
+ headers: z.ZodArray<z.ZodTuple<[z.ZodString, z.ZodString], null>, "many">;
906
+ encodings: z.ZodArray<z.ZodTuple<[z.ZodEnum<["identity", "gzip", "compress", "deflate", "br"]>, z.ZodObject<{
143
907
  modified: z.ZodBigInt;
144
- content_chunks: z.ZodArray<z.ZodCustom<Uint8Array<ArrayBufferLike>, Uint8Array<ArrayBufferLike>>>;
908
+ content_chunks: z.ZodArray<z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>, "many">;
145
909
  total_length: z.ZodBigInt;
146
- sha256: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
147
- }, z.core.$strip>], null>>;
910
+ sha256: z.ZodEffects<z.ZodType<Uint8Array<ArrayBuffer>, z.ZodTypeDef, Uint8Array<ArrayBuffer>>, Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
911
+ }, "strip", z.ZodTypeAny, {
912
+ modified: bigint;
913
+ content_chunks: Uint8Array<ArrayBufferLike>[];
914
+ total_length: bigint;
915
+ sha256: Uint8Array<ArrayBuffer>;
916
+ }, {
917
+ modified: bigint;
918
+ content_chunks: Uint8Array<ArrayBufferLike>[];
919
+ total_length: bigint;
920
+ sha256: Uint8Array<ArrayBuffer>;
921
+ }>], null>, "many">;
148
922
  created_at: z.ZodBigInt;
149
923
  updated_at: z.ZodBigInt;
150
924
  version: z.ZodOptional<z.ZodBigInt>;
151
- }, z.core.$strict>>>;
152
- }, z.core.$strict>;
925
+ }, "strict", z.ZodTypeAny, {
926
+ created_at: bigint;
927
+ updated_at: bigint;
928
+ key: {
929
+ owner: Uint8Array<ArrayBufferLike>;
930
+ collection: string;
931
+ name: string;
932
+ full_path: string;
933
+ description?: string | undefined;
934
+ token?: string | undefined;
935
+ };
936
+ headers: [string, string][];
937
+ encodings: ["identity" | "gzip" | "compress" | "deflate" | "br", {
938
+ modified: bigint;
939
+ content_chunks: Uint8Array<ArrayBufferLike>[];
940
+ total_length: bigint;
941
+ sha256: Uint8Array<ArrayBuffer>;
942
+ }][];
943
+ version?: bigint | undefined;
944
+ }, {
945
+ created_at: bigint;
946
+ updated_at: bigint;
947
+ key: {
948
+ owner: Uint8Array<ArrayBufferLike>;
949
+ collection: string;
950
+ name: string;
951
+ full_path: string;
952
+ description?: string | undefined;
953
+ token?: string | undefined;
954
+ };
955
+ headers: [string, string][];
956
+ encodings: ["identity" | "gzip" | "compress" | "deflate" | "br", {
957
+ modified: bigint;
958
+ content_chunks: Uint8Array<ArrayBufferLike>[];
959
+ total_length: bigint;
960
+ sha256: Uint8Array<ArrayBuffer>;
961
+ }][];
962
+ version?: bigint | undefined;
963
+ }>>, "many">;
964
+ }>, z.baseObjectInputType<{
965
+ caller: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
966
+ data: z.ZodArray<z.ZodOptional<z.ZodObject<{
967
+ key: z.ZodObject<{
968
+ name: z.ZodString;
969
+ full_path: z.ZodString;
970
+ token: z.ZodOptional<z.ZodString>;
971
+ collection: z.ZodString;
972
+ owner: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
973
+ description: z.ZodOptional<z.ZodString>;
974
+ }, "strict", z.ZodTypeAny, {
975
+ owner: Uint8Array<ArrayBufferLike>;
976
+ collection: string;
977
+ name: string;
978
+ full_path: string;
979
+ description?: string | undefined;
980
+ token?: string | undefined;
981
+ }, {
982
+ owner: Uint8Array<ArrayBufferLike>;
983
+ collection: string;
984
+ name: string;
985
+ full_path: string;
986
+ description?: string | undefined;
987
+ token?: string | undefined;
988
+ }>;
989
+ headers: z.ZodArray<z.ZodTuple<[z.ZodString, z.ZodString], null>, "many">;
990
+ encodings: z.ZodArray<z.ZodTuple<[z.ZodEnum<["identity", "gzip", "compress", "deflate", "br"]>, z.ZodObject<{
991
+ modified: z.ZodBigInt;
992
+ content_chunks: z.ZodArray<z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>, "many">;
993
+ total_length: z.ZodBigInt;
994
+ sha256: z.ZodEffects<z.ZodType<Uint8Array<ArrayBuffer>, z.ZodTypeDef, Uint8Array<ArrayBuffer>>, Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
995
+ }, "strip", z.ZodTypeAny, {
996
+ modified: bigint;
997
+ content_chunks: Uint8Array<ArrayBufferLike>[];
998
+ total_length: bigint;
999
+ sha256: Uint8Array<ArrayBuffer>;
1000
+ }, {
1001
+ modified: bigint;
1002
+ content_chunks: Uint8Array<ArrayBufferLike>[];
1003
+ total_length: bigint;
1004
+ sha256: Uint8Array<ArrayBuffer>;
1005
+ }>], null>, "many">;
1006
+ created_at: z.ZodBigInt;
1007
+ updated_at: z.ZodBigInt;
1008
+ version: z.ZodOptional<z.ZodBigInt>;
1009
+ }, "strict", z.ZodTypeAny, {
1010
+ created_at: bigint;
1011
+ updated_at: bigint;
1012
+ key: {
1013
+ owner: Uint8Array<ArrayBufferLike>;
1014
+ collection: string;
1015
+ name: string;
1016
+ full_path: string;
1017
+ description?: string | undefined;
1018
+ token?: string | undefined;
1019
+ };
1020
+ headers: [string, string][];
1021
+ encodings: ["identity" | "gzip" | "compress" | "deflate" | "br", {
1022
+ modified: bigint;
1023
+ content_chunks: Uint8Array<ArrayBufferLike>[];
1024
+ total_length: bigint;
1025
+ sha256: Uint8Array<ArrayBuffer>;
1026
+ }][];
1027
+ version?: bigint | undefined;
1028
+ }, {
1029
+ created_at: bigint;
1030
+ updated_at: bigint;
1031
+ key: {
1032
+ owner: Uint8Array<ArrayBufferLike>;
1033
+ collection: string;
1034
+ name: string;
1035
+ full_path: string;
1036
+ description?: string | undefined;
1037
+ token?: string | undefined;
1038
+ };
1039
+ headers: [string, string][];
1040
+ encodings: ["identity" | "gzip" | "compress" | "deflate" | "br", {
1041
+ modified: bigint;
1042
+ content_chunks: Uint8Array<ArrayBufferLike>[];
1043
+ total_length: bigint;
1044
+ sha256: Uint8Array<ArrayBuffer>;
1045
+ }][];
1046
+ version?: bigint | undefined;
1047
+ }>>, "many">;
1048
+ }>>;
153
1049
  /**
154
1050
  * Context for the `onDeleteFilteredAssets` hook.
155
1051
  *
@@ -160,7 +1056,463 @@ export type OnDeleteFilteredAssetsContext = HookContext<Array<Asset | undefined>
160
1056
  * @see AssertUploadAssetContext
161
1057
  */
162
1058
  export declare const AssertUploadAssetContextSchema: z.ZodObject<{
163
- caller: z.ZodCustom<Uint8Array<ArrayBufferLike>, Uint8Array<ArrayBufferLike>>;
1059
+ caller: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
1060
+ data: z.ZodObject<{
1061
+ current: z.ZodOptional<z.ZodObject<{
1062
+ key: z.ZodObject<{
1063
+ name: z.ZodString;
1064
+ full_path: z.ZodString;
1065
+ token: z.ZodOptional<z.ZodString>;
1066
+ collection: z.ZodString;
1067
+ owner: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
1068
+ description: z.ZodOptional<z.ZodString>;
1069
+ }, "strict", z.ZodTypeAny, {
1070
+ owner: Uint8Array<ArrayBufferLike>;
1071
+ collection: string;
1072
+ name: string;
1073
+ full_path: string;
1074
+ description?: string | undefined;
1075
+ token?: string | undefined;
1076
+ }, {
1077
+ owner: Uint8Array<ArrayBufferLike>;
1078
+ collection: string;
1079
+ name: string;
1080
+ full_path: string;
1081
+ description?: string | undefined;
1082
+ token?: string | undefined;
1083
+ }>;
1084
+ headers: z.ZodArray<z.ZodTuple<[z.ZodString, z.ZodString], null>, "many">;
1085
+ encodings: z.ZodArray<z.ZodTuple<[z.ZodEnum<["identity", "gzip", "compress", "deflate", "br"]>, z.ZodObject<{
1086
+ modified: z.ZodBigInt;
1087
+ content_chunks: z.ZodArray<z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>, "many">;
1088
+ total_length: z.ZodBigInt;
1089
+ sha256: z.ZodEffects<z.ZodType<Uint8Array<ArrayBuffer>, z.ZodTypeDef, Uint8Array<ArrayBuffer>>, Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
1090
+ }, "strip", z.ZodTypeAny, {
1091
+ modified: bigint;
1092
+ content_chunks: Uint8Array<ArrayBufferLike>[];
1093
+ total_length: bigint;
1094
+ sha256: Uint8Array<ArrayBuffer>;
1095
+ }, {
1096
+ modified: bigint;
1097
+ content_chunks: Uint8Array<ArrayBufferLike>[];
1098
+ total_length: bigint;
1099
+ sha256: Uint8Array<ArrayBuffer>;
1100
+ }>], null>, "many">;
1101
+ created_at: z.ZodBigInt;
1102
+ updated_at: z.ZodBigInt;
1103
+ version: z.ZodOptional<z.ZodBigInt>;
1104
+ }, "strict", z.ZodTypeAny, {
1105
+ created_at: bigint;
1106
+ updated_at: bigint;
1107
+ key: {
1108
+ owner: Uint8Array<ArrayBufferLike>;
1109
+ collection: string;
1110
+ name: string;
1111
+ full_path: string;
1112
+ description?: string | undefined;
1113
+ token?: string | undefined;
1114
+ };
1115
+ headers: [string, string][];
1116
+ encodings: ["identity" | "gzip" | "compress" | "deflate" | "br", {
1117
+ modified: bigint;
1118
+ content_chunks: Uint8Array<ArrayBufferLike>[];
1119
+ total_length: bigint;
1120
+ sha256: Uint8Array<ArrayBuffer>;
1121
+ }][];
1122
+ version?: bigint | undefined;
1123
+ }, {
1124
+ created_at: bigint;
1125
+ updated_at: bigint;
1126
+ key: {
1127
+ owner: Uint8Array<ArrayBufferLike>;
1128
+ collection: string;
1129
+ name: string;
1130
+ full_path: string;
1131
+ description?: string | undefined;
1132
+ token?: string | undefined;
1133
+ };
1134
+ headers: [string, string][];
1135
+ encodings: ["identity" | "gzip" | "compress" | "deflate" | "br", {
1136
+ modified: bigint;
1137
+ content_chunks: Uint8Array<ArrayBufferLike>[];
1138
+ total_length: bigint;
1139
+ sha256: Uint8Array<ArrayBuffer>;
1140
+ }][];
1141
+ version?: bigint | undefined;
1142
+ }>>;
1143
+ batch: z.ZodObject<{
1144
+ key: z.ZodObject<{
1145
+ name: z.ZodString;
1146
+ full_path: z.ZodString;
1147
+ token: z.ZodOptional<z.ZodString>;
1148
+ collection: z.ZodString;
1149
+ owner: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
1150
+ description: z.ZodOptional<z.ZodString>;
1151
+ }, "strict", z.ZodTypeAny, {
1152
+ owner: Uint8Array<ArrayBufferLike>;
1153
+ collection: string;
1154
+ name: string;
1155
+ full_path: string;
1156
+ description?: string | undefined;
1157
+ token?: string | undefined;
1158
+ }, {
1159
+ owner: Uint8Array<ArrayBufferLike>;
1160
+ collection: string;
1161
+ name: string;
1162
+ full_path: string;
1163
+ description?: string | undefined;
1164
+ token?: string | undefined;
1165
+ }>;
1166
+ reference_id: z.ZodOptional<z.ZodBigInt>;
1167
+ expires_at: z.ZodBigInt;
1168
+ encoding_type: z.ZodOptional<z.ZodEnum<["identity", "gzip", "compress", "deflate", "br"]>>;
1169
+ }, "strict", z.ZodTypeAny, {
1170
+ key: {
1171
+ owner: Uint8Array<ArrayBufferLike>;
1172
+ collection: string;
1173
+ name: string;
1174
+ full_path: string;
1175
+ description?: string | undefined;
1176
+ token?: string | undefined;
1177
+ };
1178
+ expires_at: bigint;
1179
+ reference_id?: bigint | undefined;
1180
+ encoding_type?: "identity" | "gzip" | "compress" | "deflate" | "br" | undefined;
1181
+ }, {
1182
+ key: {
1183
+ owner: Uint8Array<ArrayBufferLike>;
1184
+ collection: string;
1185
+ name: string;
1186
+ full_path: string;
1187
+ description?: string | undefined;
1188
+ token?: string | undefined;
1189
+ };
1190
+ expires_at: bigint;
1191
+ reference_id?: bigint | undefined;
1192
+ encoding_type?: "identity" | "gzip" | "compress" | "deflate" | "br" | undefined;
1193
+ }>;
1194
+ commit_batch: z.ZodObject<{
1195
+ batch_id: z.ZodBigInt;
1196
+ headers: z.ZodArray<z.ZodTuple<[z.ZodString, z.ZodString], null>, "many">;
1197
+ chunk_ids: z.ZodArray<z.ZodBigInt, "many">;
1198
+ }, "strict", z.ZodTypeAny, {
1199
+ headers: [string, string][];
1200
+ batch_id: bigint;
1201
+ chunk_ids: bigint[];
1202
+ }, {
1203
+ headers: [string, string][];
1204
+ batch_id: bigint;
1205
+ chunk_ids: bigint[];
1206
+ }>;
1207
+ }, "strict", z.ZodTypeAny, {
1208
+ batch: {
1209
+ key: {
1210
+ owner: Uint8Array<ArrayBufferLike>;
1211
+ collection: string;
1212
+ name: string;
1213
+ full_path: string;
1214
+ description?: string | undefined;
1215
+ token?: string | undefined;
1216
+ };
1217
+ expires_at: bigint;
1218
+ reference_id?: bigint | undefined;
1219
+ encoding_type?: "identity" | "gzip" | "compress" | "deflate" | "br" | undefined;
1220
+ };
1221
+ commit_batch: {
1222
+ headers: [string, string][];
1223
+ batch_id: bigint;
1224
+ chunk_ids: bigint[];
1225
+ };
1226
+ current?: {
1227
+ created_at: bigint;
1228
+ updated_at: bigint;
1229
+ key: {
1230
+ owner: Uint8Array<ArrayBufferLike>;
1231
+ collection: string;
1232
+ name: string;
1233
+ full_path: string;
1234
+ description?: string | undefined;
1235
+ token?: string | undefined;
1236
+ };
1237
+ headers: [string, string][];
1238
+ encodings: ["identity" | "gzip" | "compress" | "deflate" | "br", {
1239
+ modified: bigint;
1240
+ content_chunks: Uint8Array<ArrayBufferLike>[];
1241
+ total_length: bigint;
1242
+ sha256: Uint8Array<ArrayBuffer>;
1243
+ }][];
1244
+ version?: bigint | undefined;
1245
+ } | undefined;
1246
+ }, {
1247
+ batch: {
1248
+ key: {
1249
+ owner: Uint8Array<ArrayBufferLike>;
1250
+ collection: string;
1251
+ name: string;
1252
+ full_path: string;
1253
+ description?: string | undefined;
1254
+ token?: string | undefined;
1255
+ };
1256
+ expires_at: bigint;
1257
+ reference_id?: bigint | undefined;
1258
+ encoding_type?: "identity" | "gzip" | "compress" | "deflate" | "br" | undefined;
1259
+ };
1260
+ commit_batch: {
1261
+ headers: [string, string][];
1262
+ batch_id: bigint;
1263
+ chunk_ids: bigint[];
1264
+ };
1265
+ current?: {
1266
+ created_at: bigint;
1267
+ updated_at: bigint;
1268
+ key: {
1269
+ owner: Uint8Array<ArrayBufferLike>;
1270
+ collection: string;
1271
+ name: string;
1272
+ full_path: string;
1273
+ description?: string | undefined;
1274
+ token?: string | undefined;
1275
+ };
1276
+ headers: [string, string][];
1277
+ encodings: ["identity" | "gzip" | "compress" | "deflate" | "br", {
1278
+ modified: bigint;
1279
+ content_chunks: Uint8Array<ArrayBufferLike>[];
1280
+ total_length: bigint;
1281
+ sha256: Uint8Array<ArrayBuffer>;
1282
+ }][];
1283
+ version?: bigint | undefined;
1284
+ } | undefined;
1285
+ }>;
1286
+ }, "strict", z.ZodTypeAny, z.baseObjectOutputType<{
1287
+ caller: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
1288
+ data: z.ZodObject<{
1289
+ current: z.ZodOptional<z.ZodObject<{
1290
+ key: z.ZodObject<{
1291
+ name: z.ZodString;
1292
+ full_path: z.ZodString;
1293
+ token: z.ZodOptional<z.ZodString>;
1294
+ collection: z.ZodString;
1295
+ owner: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
1296
+ description: z.ZodOptional<z.ZodString>;
1297
+ }, "strict", z.ZodTypeAny, {
1298
+ owner: Uint8Array<ArrayBufferLike>;
1299
+ collection: string;
1300
+ name: string;
1301
+ full_path: string;
1302
+ description?: string | undefined;
1303
+ token?: string | undefined;
1304
+ }, {
1305
+ owner: Uint8Array<ArrayBufferLike>;
1306
+ collection: string;
1307
+ name: string;
1308
+ full_path: string;
1309
+ description?: string | undefined;
1310
+ token?: string | undefined;
1311
+ }>;
1312
+ headers: z.ZodArray<z.ZodTuple<[z.ZodString, z.ZodString], null>, "many">;
1313
+ encodings: z.ZodArray<z.ZodTuple<[z.ZodEnum<["identity", "gzip", "compress", "deflate", "br"]>, z.ZodObject<{
1314
+ modified: z.ZodBigInt;
1315
+ content_chunks: z.ZodArray<z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>, "many">;
1316
+ total_length: z.ZodBigInt;
1317
+ sha256: z.ZodEffects<z.ZodType<Uint8Array<ArrayBuffer>, z.ZodTypeDef, Uint8Array<ArrayBuffer>>, Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
1318
+ }, "strip", z.ZodTypeAny, {
1319
+ modified: bigint;
1320
+ content_chunks: Uint8Array<ArrayBufferLike>[];
1321
+ total_length: bigint;
1322
+ sha256: Uint8Array<ArrayBuffer>;
1323
+ }, {
1324
+ modified: bigint;
1325
+ content_chunks: Uint8Array<ArrayBufferLike>[];
1326
+ total_length: bigint;
1327
+ sha256: Uint8Array<ArrayBuffer>;
1328
+ }>], null>, "many">;
1329
+ created_at: z.ZodBigInt;
1330
+ updated_at: z.ZodBigInt;
1331
+ version: z.ZodOptional<z.ZodBigInt>;
1332
+ }, "strict", z.ZodTypeAny, {
1333
+ created_at: bigint;
1334
+ updated_at: bigint;
1335
+ key: {
1336
+ owner: Uint8Array<ArrayBufferLike>;
1337
+ collection: string;
1338
+ name: string;
1339
+ full_path: string;
1340
+ description?: string | undefined;
1341
+ token?: string | undefined;
1342
+ };
1343
+ headers: [string, string][];
1344
+ encodings: ["identity" | "gzip" | "compress" | "deflate" | "br", {
1345
+ modified: bigint;
1346
+ content_chunks: Uint8Array<ArrayBufferLike>[];
1347
+ total_length: bigint;
1348
+ sha256: Uint8Array<ArrayBuffer>;
1349
+ }][];
1350
+ version?: bigint | undefined;
1351
+ }, {
1352
+ created_at: bigint;
1353
+ updated_at: bigint;
1354
+ key: {
1355
+ owner: Uint8Array<ArrayBufferLike>;
1356
+ collection: string;
1357
+ name: string;
1358
+ full_path: string;
1359
+ description?: string | undefined;
1360
+ token?: string | undefined;
1361
+ };
1362
+ headers: [string, string][];
1363
+ encodings: ["identity" | "gzip" | "compress" | "deflate" | "br", {
1364
+ modified: bigint;
1365
+ content_chunks: Uint8Array<ArrayBufferLike>[];
1366
+ total_length: bigint;
1367
+ sha256: Uint8Array<ArrayBuffer>;
1368
+ }][];
1369
+ version?: bigint | undefined;
1370
+ }>>;
1371
+ batch: z.ZodObject<{
1372
+ key: z.ZodObject<{
1373
+ name: z.ZodString;
1374
+ full_path: z.ZodString;
1375
+ token: z.ZodOptional<z.ZodString>;
1376
+ collection: z.ZodString;
1377
+ owner: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
1378
+ description: z.ZodOptional<z.ZodString>;
1379
+ }, "strict", z.ZodTypeAny, {
1380
+ owner: Uint8Array<ArrayBufferLike>;
1381
+ collection: string;
1382
+ name: string;
1383
+ full_path: string;
1384
+ description?: string | undefined;
1385
+ token?: string | undefined;
1386
+ }, {
1387
+ owner: Uint8Array<ArrayBufferLike>;
1388
+ collection: string;
1389
+ name: string;
1390
+ full_path: string;
1391
+ description?: string | undefined;
1392
+ token?: string | undefined;
1393
+ }>;
1394
+ reference_id: z.ZodOptional<z.ZodBigInt>;
1395
+ expires_at: z.ZodBigInt;
1396
+ encoding_type: z.ZodOptional<z.ZodEnum<["identity", "gzip", "compress", "deflate", "br"]>>;
1397
+ }, "strict", z.ZodTypeAny, {
1398
+ key: {
1399
+ owner: Uint8Array<ArrayBufferLike>;
1400
+ collection: string;
1401
+ name: string;
1402
+ full_path: string;
1403
+ description?: string | undefined;
1404
+ token?: string | undefined;
1405
+ };
1406
+ expires_at: bigint;
1407
+ reference_id?: bigint | undefined;
1408
+ encoding_type?: "identity" | "gzip" | "compress" | "deflate" | "br" | undefined;
1409
+ }, {
1410
+ key: {
1411
+ owner: Uint8Array<ArrayBufferLike>;
1412
+ collection: string;
1413
+ name: string;
1414
+ full_path: string;
1415
+ description?: string | undefined;
1416
+ token?: string | undefined;
1417
+ };
1418
+ expires_at: bigint;
1419
+ reference_id?: bigint | undefined;
1420
+ encoding_type?: "identity" | "gzip" | "compress" | "deflate" | "br" | undefined;
1421
+ }>;
1422
+ commit_batch: z.ZodObject<{
1423
+ batch_id: z.ZodBigInt;
1424
+ headers: z.ZodArray<z.ZodTuple<[z.ZodString, z.ZodString], null>, "many">;
1425
+ chunk_ids: z.ZodArray<z.ZodBigInt, "many">;
1426
+ }, "strict", z.ZodTypeAny, {
1427
+ headers: [string, string][];
1428
+ batch_id: bigint;
1429
+ chunk_ids: bigint[];
1430
+ }, {
1431
+ headers: [string, string][];
1432
+ batch_id: bigint;
1433
+ chunk_ids: bigint[];
1434
+ }>;
1435
+ }, "strict", z.ZodTypeAny, {
1436
+ batch: {
1437
+ key: {
1438
+ owner: Uint8Array<ArrayBufferLike>;
1439
+ collection: string;
1440
+ name: string;
1441
+ full_path: string;
1442
+ description?: string | undefined;
1443
+ token?: string | undefined;
1444
+ };
1445
+ expires_at: bigint;
1446
+ reference_id?: bigint | undefined;
1447
+ encoding_type?: "identity" | "gzip" | "compress" | "deflate" | "br" | undefined;
1448
+ };
1449
+ commit_batch: {
1450
+ headers: [string, string][];
1451
+ batch_id: bigint;
1452
+ chunk_ids: bigint[];
1453
+ };
1454
+ current?: {
1455
+ created_at: bigint;
1456
+ updated_at: bigint;
1457
+ key: {
1458
+ owner: Uint8Array<ArrayBufferLike>;
1459
+ collection: string;
1460
+ name: string;
1461
+ full_path: string;
1462
+ description?: string | undefined;
1463
+ token?: string | undefined;
1464
+ };
1465
+ headers: [string, string][];
1466
+ encodings: ["identity" | "gzip" | "compress" | "deflate" | "br", {
1467
+ modified: bigint;
1468
+ content_chunks: Uint8Array<ArrayBufferLike>[];
1469
+ total_length: bigint;
1470
+ sha256: Uint8Array<ArrayBuffer>;
1471
+ }][];
1472
+ version?: bigint | undefined;
1473
+ } | undefined;
1474
+ }, {
1475
+ batch: {
1476
+ key: {
1477
+ owner: Uint8Array<ArrayBufferLike>;
1478
+ collection: string;
1479
+ name: string;
1480
+ full_path: string;
1481
+ description?: string | undefined;
1482
+ token?: string | undefined;
1483
+ };
1484
+ expires_at: bigint;
1485
+ reference_id?: bigint | undefined;
1486
+ encoding_type?: "identity" | "gzip" | "compress" | "deflate" | "br" | undefined;
1487
+ };
1488
+ commit_batch: {
1489
+ headers: [string, string][];
1490
+ batch_id: bigint;
1491
+ chunk_ids: bigint[];
1492
+ };
1493
+ current?: {
1494
+ created_at: bigint;
1495
+ updated_at: bigint;
1496
+ key: {
1497
+ owner: Uint8Array<ArrayBufferLike>;
1498
+ collection: string;
1499
+ name: string;
1500
+ full_path: string;
1501
+ description?: string | undefined;
1502
+ token?: string | undefined;
1503
+ };
1504
+ headers: [string, string][];
1505
+ encodings: ["identity" | "gzip" | "compress" | "deflate" | "br", {
1506
+ modified: bigint;
1507
+ content_chunks: Uint8Array<ArrayBufferLike>[];
1508
+ total_length: bigint;
1509
+ sha256: Uint8Array<ArrayBuffer>;
1510
+ }][];
1511
+ version?: bigint | undefined;
1512
+ } | undefined;
1513
+ }>;
1514
+ }>, z.baseObjectInputType<{
1515
+ caller: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
164
1516
  data: z.ZodObject<{
165
1517
  current: z.ZodOptional<z.ZodObject<{
166
1518
  key: z.ZodObject<{
@@ -168,52 +1520,226 @@ export declare const AssertUploadAssetContextSchema: z.ZodObject<{
168
1520
  full_path: z.ZodString;
169
1521
  token: z.ZodOptional<z.ZodString>;
170
1522
  collection: z.ZodString;
171
- owner: z.ZodCustom<Uint8Array<ArrayBufferLike>, Uint8Array<ArrayBufferLike>>;
1523
+ owner: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
172
1524
  description: z.ZodOptional<z.ZodString>;
173
- }, z.core.$strict>;
174
- headers: z.ZodArray<z.ZodTuple<[z.ZodString, z.ZodString], null>>;
175
- encodings: z.ZodArray<z.ZodTuple<[z.ZodEnum<{
176
- identity: "identity";
177
- gzip: "gzip";
178
- compress: "compress";
179
- deflate: "deflate";
180
- br: "br";
181
- }>, z.ZodObject<{
1525
+ }, "strict", z.ZodTypeAny, {
1526
+ owner: Uint8Array<ArrayBufferLike>;
1527
+ collection: string;
1528
+ name: string;
1529
+ full_path: string;
1530
+ description?: string | undefined;
1531
+ token?: string | undefined;
1532
+ }, {
1533
+ owner: Uint8Array<ArrayBufferLike>;
1534
+ collection: string;
1535
+ name: string;
1536
+ full_path: string;
1537
+ description?: string | undefined;
1538
+ token?: string | undefined;
1539
+ }>;
1540
+ headers: z.ZodArray<z.ZodTuple<[z.ZodString, z.ZodString], null>, "many">;
1541
+ encodings: z.ZodArray<z.ZodTuple<[z.ZodEnum<["identity", "gzip", "compress", "deflate", "br"]>, z.ZodObject<{
182
1542
  modified: z.ZodBigInt;
183
- content_chunks: z.ZodArray<z.ZodCustom<Uint8Array<ArrayBufferLike>, Uint8Array<ArrayBufferLike>>>;
1543
+ content_chunks: z.ZodArray<z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>, "many">;
184
1544
  total_length: z.ZodBigInt;
185
- sha256: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
186
- }, z.core.$strip>], null>>;
1545
+ sha256: z.ZodEffects<z.ZodType<Uint8Array<ArrayBuffer>, z.ZodTypeDef, Uint8Array<ArrayBuffer>>, Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
1546
+ }, "strip", z.ZodTypeAny, {
1547
+ modified: bigint;
1548
+ content_chunks: Uint8Array<ArrayBufferLike>[];
1549
+ total_length: bigint;
1550
+ sha256: Uint8Array<ArrayBuffer>;
1551
+ }, {
1552
+ modified: bigint;
1553
+ content_chunks: Uint8Array<ArrayBufferLike>[];
1554
+ total_length: bigint;
1555
+ sha256: Uint8Array<ArrayBuffer>;
1556
+ }>], null>, "many">;
187
1557
  created_at: z.ZodBigInt;
188
1558
  updated_at: z.ZodBigInt;
189
1559
  version: z.ZodOptional<z.ZodBigInt>;
190
- }, z.core.$strict>>;
1560
+ }, "strict", z.ZodTypeAny, {
1561
+ created_at: bigint;
1562
+ updated_at: bigint;
1563
+ key: {
1564
+ owner: Uint8Array<ArrayBufferLike>;
1565
+ collection: string;
1566
+ name: string;
1567
+ full_path: string;
1568
+ description?: string | undefined;
1569
+ token?: string | undefined;
1570
+ };
1571
+ headers: [string, string][];
1572
+ encodings: ["identity" | "gzip" | "compress" | "deflate" | "br", {
1573
+ modified: bigint;
1574
+ content_chunks: Uint8Array<ArrayBufferLike>[];
1575
+ total_length: bigint;
1576
+ sha256: Uint8Array<ArrayBuffer>;
1577
+ }][];
1578
+ version?: bigint | undefined;
1579
+ }, {
1580
+ created_at: bigint;
1581
+ updated_at: bigint;
1582
+ key: {
1583
+ owner: Uint8Array<ArrayBufferLike>;
1584
+ collection: string;
1585
+ name: string;
1586
+ full_path: string;
1587
+ description?: string | undefined;
1588
+ token?: string | undefined;
1589
+ };
1590
+ headers: [string, string][];
1591
+ encodings: ["identity" | "gzip" | "compress" | "deflate" | "br", {
1592
+ modified: bigint;
1593
+ content_chunks: Uint8Array<ArrayBufferLike>[];
1594
+ total_length: bigint;
1595
+ sha256: Uint8Array<ArrayBuffer>;
1596
+ }][];
1597
+ version?: bigint | undefined;
1598
+ }>>;
191
1599
  batch: z.ZodObject<{
192
1600
  key: z.ZodObject<{
193
1601
  name: z.ZodString;
194
1602
  full_path: z.ZodString;
195
1603
  token: z.ZodOptional<z.ZodString>;
196
1604
  collection: z.ZodString;
197
- owner: z.ZodCustom<Uint8Array<ArrayBufferLike>, Uint8Array<ArrayBufferLike>>;
1605
+ owner: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
198
1606
  description: z.ZodOptional<z.ZodString>;
199
- }, z.core.$strict>;
1607
+ }, "strict", z.ZodTypeAny, {
1608
+ owner: Uint8Array<ArrayBufferLike>;
1609
+ collection: string;
1610
+ name: string;
1611
+ full_path: string;
1612
+ description?: string | undefined;
1613
+ token?: string | undefined;
1614
+ }, {
1615
+ owner: Uint8Array<ArrayBufferLike>;
1616
+ collection: string;
1617
+ name: string;
1618
+ full_path: string;
1619
+ description?: string | undefined;
1620
+ token?: string | undefined;
1621
+ }>;
200
1622
  reference_id: z.ZodOptional<z.ZodBigInt>;
201
1623
  expires_at: z.ZodBigInt;
202
- encoding_type: z.ZodOptional<z.ZodEnum<{
203
- identity: "identity";
204
- gzip: "gzip";
205
- compress: "compress";
206
- deflate: "deflate";
207
- br: "br";
208
- }>>;
209
- }, z.core.$strict>;
1624
+ encoding_type: z.ZodOptional<z.ZodEnum<["identity", "gzip", "compress", "deflate", "br"]>>;
1625
+ }, "strict", z.ZodTypeAny, {
1626
+ key: {
1627
+ owner: Uint8Array<ArrayBufferLike>;
1628
+ collection: string;
1629
+ name: string;
1630
+ full_path: string;
1631
+ description?: string | undefined;
1632
+ token?: string | undefined;
1633
+ };
1634
+ expires_at: bigint;
1635
+ reference_id?: bigint | undefined;
1636
+ encoding_type?: "identity" | "gzip" | "compress" | "deflate" | "br" | undefined;
1637
+ }, {
1638
+ key: {
1639
+ owner: Uint8Array<ArrayBufferLike>;
1640
+ collection: string;
1641
+ name: string;
1642
+ full_path: string;
1643
+ description?: string | undefined;
1644
+ token?: string | undefined;
1645
+ };
1646
+ expires_at: bigint;
1647
+ reference_id?: bigint | undefined;
1648
+ encoding_type?: "identity" | "gzip" | "compress" | "deflate" | "br" | undefined;
1649
+ }>;
210
1650
  commit_batch: z.ZodObject<{
211
1651
  batch_id: z.ZodBigInt;
212
- headers: z.ZodArray<z.ZodTuple<[z.ZodString, z.ZodString], null>>;
213
- chunk_ids: z.ZodArray<z.ZodBigInt>;
214
- }, z.core.$strict>;
215
- }, z.core.$strict>;
216
- }, z.core.$strict>;
1652
+ headers: z.ZodArray<z.ZodTuple<[z.ZodString, z.ZodString], null>, "many">;
1653
+ chunk_ids: z.ZodArray<z.ZodBigInt, "many">;
1654
+ }, "strict", z.ZodTypeAny, {
1655
+ headers: [string, string][];
1656
+ batch_id: bigint;
1657
+ chunk_ids: bigint[];
1658
+ }, {
1659
+ headers: [string, string][];
1660
+ batch_id: bigint;
1661
+ chunk_ids: bigint[];
1662
+ }>;
1663
+ }, "strict", z.ZodTypeAny, {
1664
+ batch: {
1665
+ key: {
1666
+ owner: Uint8Array<ArrayBufferLike>;
1667
+ collection: string;
1668
+ name: string;
1669
+ full_path: string;
1670
+ description?: string | undefined;
1671
+ token?: string | undefined;
1672
+ };
1673
+ expires_at: bigint;
1674
+ reference_id?: bigint | undefined;
1675
+ encoding_type?: "identity" | "gzip" | "compress" | "deflate" | "br" | undefined;
1676
+ };
1677
+ commit_batch: {
1678
+ headers: [string, string][];
1679
+ batch_id: bigint;
1680
+ chunk_ids: bigint[];
1681
+ };
1682
+ current?: {
1683
+ created_at: bigint;
1684
+ updated_at: bigint;
1685
+ key: {
1686
+ owner: Uint8Array<ArrayBufferLike>;
1687
+ collection: string;
1688
+ name: string;
1689
+ full_path: string;
1690
+ description?: string | undefined;
1691
+ token?: string | undefined;
1692
+ };
1693
+ headers: [string, string][];
1694
+ encodings: ["identity" | "gzip" | "compress" | "deflate" | "br", {
1695
+ modified: bigint;
1696
+ content_chunks: Uint8Array<ArrayBufferLike>[];
1697
+ total_length: bigint;
1698
+ sha256: Uint8Array<ArrayBuffer>;
1699
+ }][];
1700
+ version?: bigint | undefined;
1701
+ } | undefined;
1702
+ }, {
1703
+ batch: {
1704
+ key: {
1705
+ owner: Uint8Array<ArrayBufferLike>;
1706
+ collection: string;
1707
+ name: string;
1708
+ full_path: string;
1709
+ description?: string | undefined;
1710
+ token?: string | undefined;
1711
+ };
1712
+ expires_at: bigint;
1713
+ reference_id?: bigint | undefined;
1714
+ encoding_type?: "identity" | "gzip" | "compress" | "deflate" | "br" | undefined;
1715
+ };
1716
+ commit_batch: {
1717
+ headers: [string, string][];
1718
+ batch_id: bigint;
1719
+ chunk_ids: bigint[];
1720
+ };
1721
+ current?: {
1722
+ created_at: bigint;
1723
+ updated_at: bigint;
1724
+ key: {
1725
+ owner: Uint8Array<ArrayBufferLike>;
1726
+ collection: string;
1727
+ name: string;
1728
+ full_path: string;
1729
+ description?: string | undefined;
1730
+ token?: string | undefined;
1731
+ };
1732
+ headers: [string, string][];
1733
+ encodings: ["identity" | "gzip" | "compress" | "deflate" | "br", {
1734
+ modified: bigint;
1735
+ content_chunks: Uint8Array<ArrayBufferLike>[];
1736
+ total_length: bigint;
1737
+ sha256: Uint8Array<ArrayBuffer>;
1738
+ }][];
1739
+ version?: bigint | undefined;
1740
+ } | undefined;
1741
+ }>;
1742
+ }>>;
217
1743
  /**
218
1744
  * Context for the `assertUploadAsset` hook.
219
1745
  *
@@ -224,34 +1750,258 @@ export type AssertUploadAssetContext = HookContext<AssetAssertUpload>;
224
1750
  * @see AssertDeleteAssetContext
225
1751
  */
226
1752
  export declare const AssertDeleteAssetContextSchema: z.ZodObject<{
227
- caller: z.ZodCustom<Uint8Array<ArrayBufferLike>, Uint8Array<ArrayBufferLike>>;
1753
+ caller: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
1754
+ data: z.ZodObject<{
1755
+ key: z.ZodObject<{
1756
+ name: z.ZodString;
1757
+ full_path: z.ZodString;
1758
+ token: z.ZodOptional<z.ZodString>;
1759
+ collection: z.ZodString;
1760
+ owner: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
1761
+ description: z.ZodOptional<z.ZodString>;
1762
+ }, "strict", z.ZodTypeAny, {
1763
+ owner: Uint8Array<ArrayBufferLike>;
1764
+ collection: string;
1765
+ name: string;
1766
+ full_path: string;
1767
+ description?: string | undefined;
1768
+ token?: string | undefined;
1769
+ }, {
1770
+ owner: Uint8Array<ArrayBufferLike>;
1771
+ collection: string;
1772
+ name: string;
1773
+ full_path: string;
1774
+ description?: string | undefined;
1775
+ token?: string | undefined;
1776
+ }>;
1777
+ headers: z.ZodArray<z.ZodTuple<[z.ZodString, z.ZodString], null>, "many">;
1778
+ encodings: z.ZodArray<z.ZodTuple<[z.ZodEnum<["identity", "gzip", "compress", "deflate", "br"]>, z.ZodObject<{
1779
+ modified: z.ZodBigInt;
1780
+ content_chunks: z.ZodArray<z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>, "many">;
1781
+ total_length: z.ZodBigInt;
1782
+ sha256: z.ZodEffects<z.ZodType<Uint8Array<ArrayBuffer>, z.ZodTypeDef, Uint8Array<ArrayBuffer>>, Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
1783
+ }, "strip", z.ZodTypeAny, {
1784
+ modified: bigint;
1785
+ content_chunks: Uint8Array<ArrayBufferLike>[];
1786
+ total_length: bigint;
1787
+ sha256: Uint8Array<ArrayBuffer>;
1788
+ }, {
1789
+ modified: bigint;
1790
+ content_chunks: Uint8Array<ArrayBufferLike>[];
1791
+ total_length: bigint;
1792
+ sha256: Uint8Array<ArrayBuffer>;
1793
+ }>], null>, "many">;
1794
+ created_at: z.ZodBigInt;
1795
+ updated_at: z.ZodBigInt;
1796
+ version: z.ZodOptional<z.ZodBigInt>;
1797
+ }, "strict", z.ZodTypeAny, {
1798
+ created_at: bigint;
1799
+ updated_at: bigint;
1800
+ key: {
1801
+ owner: Uint8Array<ArrayBufferLike>;
1802
+ collection: string;
1803
+ name: string;
1804
+ full_path: string;
1805
+ description?: string | undefined;
1806
+ token?: string | undefined;
1807
+ };
1808
+ headers: [string, string][];
1809
+ encodings: ["identity" | "gzip" | "compress" | "deflate" | "br", {
1810
+ modified: bigint;
1811
+ content_chunks: Uint8Array<ArrayBufferLike>[];
1812
+ total_length: bigint;
1813
+ sha256: Uint8Array<ArrayBuffer>;
1814
+ }][];
1815
+ version?: bigint | undefined;
1816
+ }, {
1817
+ created_at: bigint;
1818
+ updated_at: bigint;
1819
+ key: {
1820
+ owner: Uint8Array<ArrayBufferLike>;
1821
+ collection: string;
1822
+ name: string;
1823
+ full_path: string;
1824
+ description?: string | undefined;
1825
+ token?: string | undefined;
1826
+ };
1827
+ headers: [string, string][];
1828
+ encodings: ["identity" | "gzip" | "compress" | "deflate" | "br", {
1829
+ modified: bigint;
1830
+ content_chunks: Uint8Array<ArrayBufferLike>[];
1831
+ total_length: bigint;
1832
+ sha256: Uint8Array<ArrayBuffer>;
1833
+ }][];
1834
+ version?: bigint | undefined;
1835
+ }>;
1836
+ }, "strict", z.ZodTypeAny, z.baseObjectOutputType<{
1837
+ caller: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
1838
+ data: z.ZodObject<{
1839
+ key: z.ZodObject<{
1840
+ name: z.ZodString;
1841
+ full_path: z.ZodString;
1842
+ token: z.ZodOptional<z.ZodString>;
1843
+ collection: z.ZodString;
1844
+ owner: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
1845
+ description: z.ZodOptional<z.ZodString>;
1846
+ }, "strict", z.ZodTypeAny, {
1847
+ owner: Uint8Array<ArrayBufferLike>;
1848
+ collection: string;
1849
+ name: string;
1850
+ full_path: string;
1851
+ description?: string | undefined;
1852
+ token?: string | undefined;
1853
+ }, {
1854
+ owner: Uint8Array<ArrayBufferLike>;
1855
+ collection: string;
1856
+ name: string;
1857
+ full_path: string;
1858
+ description?: string | undefined;
1859
+ token?: string | undefined;
1860
+ }>;
1861
+ headers: z.ZodArray<z.ZodTuple<[z.ZodString, z.ZodString], null>, "many">;
1862
+ encodings: z.ZodArray<z.ZodTuple<[z.ZodEnum<["identity", "gzip", "compress", "deflate", "br"]>, z.ZodObject<{
1863
+ modified: z.ZodBigInt;
1864
+ content_chunks: z.ZodArray<z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>, "many">;
1865
+ total_length: z.ZodBigInt;
1866
+ sha256: z.ZodEffects<z.ZodType<Uint8Array<ArrayBuffer>, z.ZodTypeDef, Uint8Array<ArrayBuffer>>, Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
1867
+ }, "strip", z.ZodTypeAny, {
1868
+ modified: bigint;
1869
+ content_chunks: Uint8Array<ArrayBufferLike>[];
1870
+ total_length: bigint;
1871
+ sha256: Uint8Array<ArrayBuffer>;
1872
+ }, {
1873
+ modified: bigint;
1874
+ content_chunks: Uint8Array<ArrayBufferLike>[];
1875
+ total_length: bigint;
1876
+ sha256: Uint8Array<ArrayBuffer>;
1877
+ }>], null>, "many">;
1878
+ created_at: z.ZodBigInt;
1879
+ updated_at: z.ZodBigInt;
1880
+ version: z.ZodOptional<z.ZodBigInt>;
1881
+ }, "strict", z.ZodTypeAny, {
1882
+ created_at: bigint;
1883
+ updated_at: bigint;
1884
+ key: {
1885
+ owner: Uint8Array<ArrayBufferLike>;
1886
+ collection: string;
1887
+ name: string;
1888
+ full_path: string;
1889
+ description?: string | undefined;
1890
+ token?: string | undefined;
1891
+ };
1892
+ headers: [string, string][];
1893
+ encodings: ["identity" | "gzip" | "compress" | "deflate" | "br", {
1894
+ modified: bigint;
1895
+ content_chunks: Uint8Array<ArrayBufferLike>[];
1896
+ total_length: bigint;
1897
+ sha256: Uint8Array<ArrayBuffer>;
1898
+ }][];
1899
+ version?: bigint | undefined;
1900
+ }, {
1901
+ created_at: bigint;
1902
+ updated_at: bigint;
1903
+ key: {
1904
+ owner: Uint8Array<ArrayBufferLike>;
1905
+ collection: string;
1906
+ name: string;
1907
+ full_path: string;
1908
+ description?: string | undefined;
1909
+ token?: string | undefined;
1910
+ };
1911
+ headers: [string, string][];
1912
+ encodings: ["identity" | "gzip" | "compress" | "deflate" | "br", {
1913
+ modified: bigint;
1914
+ content_chunks: Uint8Array<ArrayBufferLike>[];
1915
+ total_length: bigint;
1916
+ sha256: Uint8Array<ArrayBuffer>;
1917
+ }][];
1918
+ version?: bigint | undefined;
1919
+ }>;
1920
+ }>, z.baseObjectInputType<{
1921
+ caller: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
228
1922
  data: z.ZodObject<{
229
1923
  key: z.ZodObject<{
230
1924
  name: z.ZodString;
231
1925
  full_path: z.ZodString;
232
1926
  token: z.ZodOptional<z.ZodString>;
233
1927
  collection: z.ZodString;
234
- owner: z.ZodCustom<Uint8Array<ArrayBufferLike>, Uint8Array<ArrayBufferLike>>;
1928
+ owner: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
235
1929
  description: z.ZodOptional<z.ZodString>;
236
- }, z.core.$strict>;
237
- headers: z.ZodArray<z.ZodTuple<[z.ZodString, z.ZodString], null>>;
238
- encodings: z.ZodArray<z.ZodTuple<[z.ZodEnum<{
239
- identity: "identity";
240
- gzip: "gzip";
241
- compress: "compress";
242
- deflate: "deflate";
243
- br: "br";
244
- }>, z.ZodObject<{
1930
+ }, "strict", z.ZodTypeAny, {
1931
+ owner: Uint8Array<ArrayBufferLike>;
1932
+ collection: string;
1933
+ name: string;
1934
+ full_path: string;
1935
+ description?: string | undefined;
1936
+ token?: string | undefined;
1937
+ }, {
1938
+ owner: Uint8Array<ArrayBufferLike>;
1939
+ collection: string;
1940
+ name: string;
1941
+ full_path: string;
1942
+ description?: string | undefined;
1943
+ token?: string | undefined;
1944
+ }>;
1945
+ headers: z.ZodArray<z.ZodTuple<[z.ZodString, z.ZodString], null>, "many">;
1946
+ encodings: z.ZodArray<z.ZodTuple<[z.ZodEnum<["identity", "gzip", "compress", "deflate", "br"]>, z.ZodObject<{
245
1947
  modified: z.ZodBigInt;
246
- content_chunks: z.ZodArray<z.ZodCustom<Uint8Array<ArrayBufferLike>, Uint8Array<ArrayBufferLike>>>;
1948
+ content_chunks: z.ZodArray<z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>, "many">;
247
1949
  total_length: z.ZodBigInt;
248
- sha256: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
249
- }, z.core.$strip>], null>>;
1950
+ sha256: z.ZodEffects<z.ZodType<Uint8Array<ArrayBuffer>, z.ZodTypeDef, Uint8Array<ArrayBuffer>>, Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
1951
+ }, "strip", z.ZodTypeAny, {
1952
+ modified: bigint;
1953
+ content_chunks: Uint8Array<ArrayBufferLike>[];
1954
+ total_length: bigint;
1955
+ sha256: Uint8Array<ArrayBuffer>;
1956
+ }, {
1957
+ modified: bigint;
1958
+ content_chunks: Uint8Array<ArrayBufferLike>[];
1959
+ total_length: bigint;
1960
+ sha256: Uint8Array<ArrayBuffer>;
1961
+ }>], null>, "many">;
250
1962
  created_at: z.ZodBigInt;
251
1963
  updated_at: z.ZodBigInt;
252
1964
  version: z.ZodOptional<z.ZodBigInt>;
253
- }, z.core.$strict>;
254
- }, z.core.$strict>;
1965
+ }, "strict", z.ZodTypeAny, {
1966
+ created_at: bigint;
1967
+ updated_at: bigint;
1968
+ key: {
1969
+ owner: Uint8Array<ArrayBufferLike>;
1970
+ collection: string;
1971
+ name: string;
1972
+ full_path: string;
1973
+ description?: string | undefined;
1974
+ token?: string | undefined;
1975
+ };
1976
+ headers: [string, string][];
1977
+ encodings: ["identity" | "gzip" | "compress" | "deflate" | "br", {
1978
+ modified: bigint;
1979
+ content_chunks: Uint8Array<ArrayBufferLike>[];
1980
+ total_length: bigint;
1981
+ sha256: Uint8Array<ArrayBuffer>;
1982
+ }][];
1983
+ version?: bigint | undefined;
1984
+ }, {
1985
+ created_at: bigint;
1986
+ updated_at: bigint;
1987
+ key: {
1988
+ owner: Uint8Array<ArrayBufferLike>;
1989
+ collection: string;
1990
+ name: string;
1991
+ full_path: string;
1992
+ description?: string | undefined;
1993
+ token?: string | undefined;
1994
+ };
1995
+ headers: [string, string][];
1996
+ encodings: ["identity" | "gzip" | "compress" | "deflate" | "br", {
1997
+ modified: bigint;
1998
+ content_chunks: Uint8Array<ArrayBufferLike>[];
1999
+ total_length: bigint;
2000
+ sha256: Uint8Array<ArrayBuffer>;
2001
+ }][];
2002
+ version?: bigint | undefined;
2003
+ }>;
2004
+ }>>;
255
2005
  /**
256
2006
  * Context for the `assertDeleteAsset` hook.
257
2007
  *