@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 RawUserId, type UserId } from '../../schemas/satellite';
3
3
  import { type AssetEncoding, type AssetKey, type Blob, type FullPath, type HeaderFields } from '../../schemas/storage';
4
4
  import { type Memory } from './collections';
@@ -8,9 +8,18 @@ import { type CollectionParams, type ListStoreParams } from './params';
8
8
  */
9
9
  export declare const GetAssetStoreParamsSchema: z.ZodObject<{
10
10
  collection: z.ZodString;
11
- caller: z.ZodUnion<[z.ZodCustom<Uint8Array<ArrayBufferLike>, Uint8Array<ArrayBufferLike>>, z.ZodCustom<import("@dfinity/principal").Principal, import("@dfinity/principal").Principal>]>;
11
+ } & {
12
+ caller: z.ZodUnion<[z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>, z.ZodType<import("@dfinity/principal").Principal, z.ZodTypeDef, import("@dfinity/principal").Principal>]>;
12
13
  full_path: z.ZodString;
13
- }, z.core.$strict>;
14
+ }, "strict", z.ZodTypeAny, {
15
+ caller: Uint8Array<ArrayBufferLike> | import("@dfinity/principal").Principal;
16
+ collection: string;
17
+ full_path: string;
18
+ }, {
19
+ caller: Uint8Array<ArrayBufferLike> | import("@dfinity/principal").Principal;
20
+ collection: string;
21
+ full_path: string;
22
+ }>;
14
23
  /**
15
24
  * Represents the base parameters required to access the storage and modify an asset.
16
25
  */
@@ -29,7 +38,11 @@ export type GetAssetStoreParams = CollectionParams & {
29
38
  */
30
39
  export declare const CountCollectionAssetsStoreParamsSchema: z.ZodObject<{
31
40
  collection: z.ZodString;
32
- }, z.core.$strict>;
41
+ }, "strict", z.ZodTypeAny, {
42
+ collection: string;
43
+ }, {
44
+ collection: string;
45
+ }>;
33
46
  /**
34
47
  * The parameters required to count documents from the storage.
35
48
  */
@@ -39,45 +52,264 @@ export type CountCollectionAssetsStoreParams = CollectionParams;
39
52
  */
40
53
  export declare const CountAssetsStoreParamsSchema: z.ZodObject<{
41
54
  collection: z.ZodString;
42
- caller: z.ZodUnion<[z.ZodCustom<Uint8Array<ArrayBufferLike>, Uint8Array<ArrayBufferLike>>, z.ZodCustom<import("@dfinity/principal").Principal, import("@dfinity/principal").Principal>]>;
55
+ } & {
56
+ caller: z.ZodUnion<[z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>, z.ZodType<import("@dfinity/principal").Principal, z.ZodTypeDef, import("@dfinity/principal").Principal>]>;
43
57
  params: z.ZodObject<{
44
58
  matcher: z.ZodOptional<z.ZodObject<{
45
59
  key: z.ZodOptional<z.ZodString>;
46
60
  description: z.ZodOptional<z.ZodString>;
47
- created_at: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
61
+ created_at: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
48
62
  equal: z.ZodBigInt;
49
- }, z.core.$strip>, z.ZodObject<{
63
+ }, "strip", z.ZodTypeAny, {
64
+ equal: bigint;
65
+ }, {
66
+ equal: bigint;
67
+ }>, z.ZodObject<{
50
68
  greater_than: z.ZodBigInt;
51
- }, z.core.$strip>, z.ZodObject<{
69
+ }, "strip", z.ZodTypeAny, {
70
+ greater_than: bigint;
71
+ }, {
72
+ greater_than: bigint;
73
+ }>, z.ZodObject<{
52
74
  less_than: z.ZodBigInt;
53
- }, z.core.$strip>, z.ZodObject<{
75
+ }, "strip", z.ZodTypeAny, {
76
+ less_than: bigint;
77
+ }, {
78
+ less_than: bigint;
79
+ }>, z.ZodObject<{
54
80
  between: z.ZodTuple<[z.ZodBigInt, z.ZodBigInt], null>;
55
- }, z.core.$strip>]>>;
56
- updated_at: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
81
+ }, "strip", z.ZodTypeAny, {
82
+ between: [bigint, bigint];
83
+ }, {
84
+ between: [bigint, bigint];
85
+ }>]>>;
86
+ updated_at: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
57
87
  equal: z.ZodBigInt;
58
- }, z.core.$strip>, z.ZodObject<{
88
+ }, "strip", z.ZodTypeAny, {
89
+ equal: bigint;
90
+ }, {
91
+ equal: bigint;
92
+ }>, z.ZodObject<{
59
93
  greater_than: z.ZodBigInt;
60
- }, z.core.$strip>, z.ZodObject<{
94
+ }, "strip", z.ZodTypeAny, {
95
+ greater_than: bigint;
96
+ }, {
97
+ greater_than: bigint;
98
+ }>, z.ZodObject<{
61
99
  less_than: z.ZodBigInt;
62
- }, z.core.$strip>, z.ZodObject<{
100
+ }, "strip", z.ZodTypeAny, {
101
+ less_than: bigint;
102
+ }, {
103
+ less_than: bigint;
104
+ }>, z.ZodObject<{
63
105
  between: z.ZodTuple<[z.ZodBigInt, z.ZodBigInt], null>;
64
- }, z.core.$strip>]>>;
65
- }, z.core.$strict>>;
106
+ }, "strip", z.ZodTypeAny, {
107
+ between: [bigint, bigint];
108
+ }, {
109
+ between: [bigint, bigint];
110
+ }>]>>;
111
+ }, "strict", z.ZodTypeAny, {
112
+ description?: string | undefined;
113
+ created_at?: {
114
+ equal: bigint;
115
+ } | {
116
+ greater_than: bigint;
117
+ } | {
118
+ less_than: bigint;
119
+ } | {
120
+ between: [bigint, bigint];
121
+ } | undefined;
122
+ updated_at?: {
123
+ equal: bigint;
124
+ } | {
125
+ greater_than: bigint;
126
+ } | {
127
+ less_than: bigint;
128
+ } | {
129
+ between: [bigint, bigint];
130
+ } | undefined;
131
+ key?: string | undefined;
132
+ }, {
133
+ description?: string | undefined;
134
+ created_at?: {
135
+ equal: bigint;
136
+ } | {
137
+ greater_than: bigint;
138
+ } | {
139
+ less_than: bigint;
140
+ } | {
141
+ between: [bigint, bigint];
142
+ } | undefined;
143
+ updated_at?: {
144
+ equal: bigint;
145
+ } | {
146
+ greater_than: bigint;
147
+ } | {
148
+ less_than: bigint;
149
+ } | {
150
+ between: [bigint, bigint];
151
+ } | undefined;
152
+ key?: string | undefined;
153
+ }>>;
66
154
  paginate: z.ZodOptional<z.ZodObject<{
67
155
  start_after: z.ZodOptional<z.ZodString>;
68
156
  limit: z.ZodOptional<z.ZodBigInt>;
69
- }, z.core.$strict>>;
157
+ }, "strict", z.ZodTypeAny, {
158
+ start_after?: string | undefined;
159
+ limit?: bigint | undefined;
160
+ }, {
161
+ start_after?: string | undefined;
162
+ limit?: bigint | undefined;
163
+ }>>;
70
164
  order: z.ZodOptional<z.ZodObject<{
71
165
  desc: z.ZodBoolean;
72
- field: z.ZodEnum<{
73
- created_at: "created_at";
74
- updated_at: "updated_at";
75
- keys: "keys";
76
- }>;
77
- }, z.core.$strict>>;
78
- owner: z.ZodOptional<z.ZodCustom<Uint8Array<ArrayBufferLike>, Uint8Array<ArrayBufferLike>>>;
79
- }, z.core.$strict>;
80
- }, z.core.$strict>;
166
+ field: z.ZodEnum<["keys", "created_at", "updated_at"]>;
167
+ }, "strict", z.ZodTypeAny, {
168
+ desc: boolean;
169
+ field: "keys" | "created_at" | "updated_at";
170
+ }, {
171
+ desc: boolean;
172
+ field: "keys" | "created_at" | "updated_at";
173
+ }>>;
174
+ owner: z.ZodOptional<z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>>;
175
+ }, "strict", z.ZodTypeAny, {
176
+ owner?: Uint8Array<ArrayBufferLike> | undefined;
177
+ matcher?: {
178
+ description?: string | undefined;
179
+ created_at?: {
180
+ equal: bigint;
181
+ } | {
182
+ greater_than: bigint;
183
+ } | {
184
+ less_than: bigint;
185
+ } | {
186
+ between: [bigint, bigint];
187
+ } | undefined;
188
+ updated_at?: {
189
+ equal: bigint;
190
+ } | {
191
+ greater_than: bigint;
192
+ } | {
193
+ less_than: bigint;
194
+ } | {
195
+ between: [bigint, bigint];
196
+ } | undefined;
197
+ key?: string | undefined;
198
+ } | undefined;
199
+ paginate?: {
200
+ start_after?: string | undefined;
201
+ limit?: bigint | undefined;
202
+ } | undefined;
203
+ order?: {
204
+ desc: boolean;
205
+ field: "keys" | "created_at" | "updated_at";
206
+ } | undefined;
207
+ }, {
208
+ owner?: Uint8Array<ArrayBufferLike> | undefined;
209
+ matcher?: {
210
+ description?: string | undefined;
211
+ created_at?: {
212
+ equal: bigint;
213
+ } | {
214
+ greater_than: bigint;
215
+ } | {
216
+ less_than: bigint;
217
+ } | {
218
+ between: [bigint, bigint];
219
+ } | undefined;
220
+ updated_at?: {
221
+ equal: bigint;
222
+ } | {
223
+ greater_than: bigint;
224
+ } | {
225
+ less_than: bigint;
226
+ } | {
227
+ between: [bigint, bigint];
228
+ } | undefined;
229
+ key?: string | undefined;
230
+ } | undefined;
231
+ paginate?: {
232
+ start_after?: string | undefined;
233
+ limit?: bigint | undefined;
234
+ } | undefined;
235
+ order?: {
236
+ desc: boolean;
237
+ field: "keys" | "created_at" | "updated_at";
238
+ } | undefined;
239
+ }>;
240
+ }, "strict", z.ZodTypeAny, {
241
+ params: {
242
+ owner?: Uint8Array<ArrayBufferLike> | undefined;
243
+ matcher?: {
244
+ description?: string | undefined;
245
+ created_at?: {
246
+ equal: bigint;
247
+ } | {
248
+ greater_than: bigint;
249
+ } | {
250
+ less_than: bigint;
251
+ } | {
252
+ between: [bigint, bigint];
253
+ } | undefined;
254
+ updated_at?: {
255
+ equal: bigint;
256
+ } | {
257
+ greater_than: bigint;
258
+ } | {
259
+ less_than: bigint;
260
+ } | {
261
+ between: [bigint, bigint];
262
+ } | undefined;
263
+ key?: string | undefined;
264
+ } | undefined;
265
+ paginate?: {
266
+ start_after?: string | undefined;
267
+ limit?: bigint | undefined;
268
+ } | undefined;
269
+ order?: {
270
+ desc: boolean;
271
+ field: "keys" | "created_at" | "updated_at";
272
+ } | undefined;
273
+ };
274
+ caller: Uint8Array<ArrayBufferLike> | import("@dfinity/principal").Principal;
275
+ collection: string;
276
+ }, {
277
+ params: {
278
+ owner?: Uint8Array<ArrayBufferLike> | undefined;
279
+ matcher?: {
280
+ description?: string | undefined;
281
+ created_at?: {
282
+ equal: bigint;
283
+ } | {
284
+ greater_than: bigint;
285
+ } | {
286
+ less_than: bigint;
287
+ } | {
288
+ between: [bigint, bigint];
289
+ } | undefined;
290
+ updated_at?: {
291
+ equal: bigint;
292
+ } | {
293
+ greater_than: bigint;
294
+ } | {
295
+ less_than: bigint;
296
+ } | {
297
+ between: [bigint, bigint];
298
+ } | undefined;
299
+ key?: string | undefined;
300
+ } | undefined;
301
+ paginate?: {
302
+ start_after?: string | undefined;
303
+ limit?: bigint | undefined;
304
+ } | undefined;
305
+ order?: {
306
+ desc: boolean;
307
+ field: "keys" | "created_at" | "updated_at";
308
+ } | undefined;
309
+ };
310
+ caller: Uint8Array<ArrayBufferLike> | import("@dfinity/principal").Principal;
311
+ collection: string;
312
+ }>;
81
313
  /**
82
314
  * The parameters required to count documents from the storage.
83
315
  */
@@ -91,12 +323,48 @@ export declare const SetAssetHandlerParamsSchema: z.ZodObject<{
91
323
  full_path: z.ZodString;
92
324
  token: z.ZodOptional<z.ZodString>;
93
325
  collection: z.ZodString;
94
- owner: z.ZodCustom<Uint8Array<ArrayBufferLike>, Uint8Array<ArrayBufferLike>>;
326
+ owner: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
95
327
  description: z.ZodOptional<z.ZodString>;
96
- }, z.core.$strict>;
97
- content: z.ZodCustom<Uint8Array<ArrayBufferLike>, Uint8Array<ArrayBufferLike>>;
98
- headers: z.ZodArray<z.ZodTuple<[z.ZodString, z.ZodString], null>>;
99
- }, z.core.$strict>;
328
+ }, "strict", z.ZodTypeAny, {
329
+ owner: Uint8Array<ArrayBufferLike>;
330
+ collection: string;
331
+ name: string;
332
+ full_path: string;
333
+ description?: string | undefined;
334
+ token?: string | undefined;
335
+ }, {
336
+ owner: Uint8Array<ArrayBufferLike>;
337
+ collection: string;
338
+ name: string;
339
+ full_path: string;
340
+ description?: string | undefined;
341
+ token?: string | undefined;
342
+ }>;
343
+ content: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
344
+ headers: z.ZodArray<z.ZodTuple<[z.ZodString, z.ZodString], null>, "many">;
345
+ }, "strict", z.ZodTypeAny, {
346
+ key: {
347
+ owner: Uint8Array<ArrayBufferLike>;
348
+ collection: string;
349
+ name: string;
350
+ full_path: string;
351
+ description?: string | undefined;
352
+ token?: string | undefined;
353
+ };
354
+ headers: [string, string][];
355
+ content: Uint8Array<ArrayBufferLike>;
356
+ }, {
357
+ key: {
358
+ owner: Uint8Array<ArrayBufferLike>;
359
+ collection: string;
360
+ name: string;
361
+ full_path: string;
362
+ description?: string | undefined;
363
+ token?: string | undefined;
364
+ };
365
+ headers: [string, string][];
366
+ content: Uint8Array<ArrayBufferLike>;
367
+ }>;
100
368
  /**
101
369
  * The parameters required to set (or update) an asset.
102
370
  */
@@ -119,7 +387,11 @@ export interface SetAssetHandlerParams {
119
387
  */
120
388
  export declare const DeleteAssetsStoreParamsSchema: z.ZodObject<{
121
389
  collection: z.ZodString;
122
- }, z.core.$strict>;
390
+ }, "strict", z.ZodTypeAny, {
391
+ collection: string;
392
+ }, {
393
+ collection: string;
394
+ }>;
123
395
  /**
124
396
  * The parameters required to delete the assets from a collection of the storage.
125
397
  */
@@ -129,45 +401,264 @@ export type DeleteAssetsStoreParams = CollectionParams;
129
401
  */
130
402
  export declare const DeleteFilteredAssetsStoreParamsSchema: z.ZodObject<{
131
403
  collection: z.ZodString;
132
- caller: z.ZodUnion<[z.ZodCustom<Uint8Array<ArrayBufferLike>, Uint8Array<ArrayBufferLike>>, z.ZodCustom<import("@dfinity/principal").Principal, import("@dfinity/principal").Principal>]>;
404
+ } & {
405
+ caller: z.ZodUnion<[z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>, z.ZodType<import("@dfinity/principal").Principal, z.ZodTypeDef, import("@dfinity/principal").Principal>]>;
133
406
  params: z.ZodObject<{
134
407
  matcher: z.ZodOptional<z.ZodObject<{
135
408
  key: z.ZodOptional<z.ZodString>;
136
409
  description: z.ZodOptional<z.ZodString>;
137
- created_at: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
410
+ created_at: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
138
411
  equal: z.ZodBigInt;
139
- }, z.core.$strip>, z.ZodObject<{
412
+ }, "strip", z.ZodTypeAny, {
413
+ equal: bigint;
414
+ }, {
415
+ equal: bigint;
416
+ }>, z.ZodObject<{
140
417
  greater_than: z.ZodBigInt;
141
- }, z.core.$strip>, z.ZodObject<{
418
+ }, "strip", z.ZodTypeAny, {
419
+ greater_than: bigint;
420
+ }, {
421
+ greater_than: bigint;
422
+ }>, z.ZodObject<{
142
423
  less_than: z.ZodBigInt;
143
- }, z.core.$strip>, z.ZodObject<{
424
+ }, "strip", z.ZodTypeAny, {
425
+ less_than: bigint;
426
+ }, {
427
+ less_than: bigint;
428
+ }>, z.ZodObject<{
144
429
  between: z.ZodTuple<[z.ZodBigInt, z.ZodBigInt], null>;
145
- }, z.core.$strip>]>>;
146
- updated_at: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
430
+ }, "strip", z.ZodTypeAny, {
431
+ between: [bigint, bigint];
432
+ }, {
433
+ between: [bigint, bigint];
434
+ }>]>>;
435
+ updated_at: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
147
436
  equal: z.ZodBigInt;
148
- }, z.core.$strip>, z.ZodObject<{
437
+ }, "strip", z.ZodTypeAny, {
438
+ equal: bigint;
439
+ }, {
440
+ equal: bigint;
441
+ }>, z.ZodObject<{
149
442
  greater_than: z.ZodBigInt;
150
- }, z.core.$strip>, z.ZodObject<{
443
+ }, "strip", z.ZodTypeAny, {
444
+ greater_than: bigint;
445
+ }, {
446
+ greater_than: bigint;
447
+ }>, z.ZodObject<{
151
448
  less_than: z.ZodBigInt;
152
- }, z.core.$strip>, z.ZodObject<{
449
+ }, "strip", z.ZodTypeAny, {
450
+ less_than: bigint;
451
+ }, {
452
+ less_than: bigint;
453
+ }>, z.ZodObject<{
153
454
  between: z.ZodTuple<[z.ZodBigInt, z.ZodBigInt], null>;
154
- }, z.core.$strip>]>>;
155
- }, z.core.$strict>>;
455
+ }, "strip", z.ZodTypeAny, {
456
+ between: [bigint, bigint];
457
+ }, {
458
+ between: [bigint, bigint];
459
+ }>]>>;
460
+ }, "strict", z.ZodTypeAny, {
461
+ description?: string | undefined;
462
+ created_at?: {
463
+ equal: bigint;
464
+ } | {
465
+ greater_than: bigint;
466
+ } | {
467
+ less_than: bigint;
468
+ } | {
469
+ between: [bigint, bigint];
470
+ } | undefined;
471
+ updated_at?: {
472
+ equal: bigint;
473
+ } | {
474
+ greater_than: bigint;
475
+ } | {
476
+ less_than: bigint;
477
+ } | {
478
+ between: [bigint, bigint];
479
+ } | undefined;
480
+ key?: string | undefined;
481
+ }, {
482
+ description?: string | undefined;
483
+ created_at?: {
484
+ equal: bigint;
485
+ } | {
486
+ greater_than: bigint;
487
+ } | {
488
+ less_than: bigint;
489
+ } | {
490
+ between: [bigint, bigint];
491
+ } | undefined;
492
+ updated_at?: {
493
+ equal: bigint;
494
+ } | {
495
+ greater_than: bigint;
496
+ } | {
497
+ less_than: bigint;
498
+ } | {
499
+ between: [bigint, bigint];
500
+ } | undefined;
501
+ key?: string | undefined;
502
+ }>>;
156
503
  paginate: z.ZodOptional<z.ZodObject<{
157
504
  start_after: z.ZodOptional<z.ZodString>;
158
505
  limit: z.ZodOptional<z.ZodBigInt>;
159
- }, z.core.$strict>>;
506
+ }, "strict", z.ZodTypeAny, {
507
+ start_after?: string | undefined;
508
+ limit?: bigint | undefined;
509
+ }, {
510
+ start_after?: string | undefined;
511
+ limit?: bigint | undefined;
512
+ }>>;
160
513
  order: z.ZodOptional<z.ZodObject<{
161
514
  desc: z.ZodBoolean;
162
- field: z.ZodEnum<{
163
- created_at: "created_at";
164
- updated_at: "updated_at";
165
- keys: "keys";
166
- }>;
167
- }, z.core.$strict>>;
168
- owner: z.ZodOptional<z.ZodCustom<Uint8Array<ArrayBufferLike>, Uint8Array<ArrayBufferLike>>>;
169
- }, z.core.$strict>;
170
- }, z.core.$strict>;
515
+ field: z.ZodEnum<["keys", "created_at", "updated_at"]>;
516
+ }, "strict", z.ZodTypeAny, {
517
+ desc: boolean;
518
+ field: "keys" | "created_at" | "updated_at";
519
+ }, {
520
+ desc: boolean;
521
+ field: "keys" | "created_at" | "updated_at";
522
+ }>>;
523
+ owner: z.ZodOptional<z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>>;
524
+ }, "strict", z.ZodTypeAny, {
525
+ owner?: Uint8Array<ArrayBufferLike> | undefined;
526
+ matcher?: {
527
+ description?: string | undefined;
528
+ created_at?: {
529
+ equal: bigint;
530
+ } | {
531
+ greater_than: bigint;
532
+ } | {
533
+ less_than: bigint;
534
+ } | {
535
+ between: [bigint, bigint];
536
+ } | undefined;
537
+ updated_at?: {
538
+ equal: bigint;
539
+ } | {
540
+ greater_than: bigint;
541
+ } | {
542
+ less_than: bigint;
543
+ } | {
544
+ between: [bigint, bigint];
545
+ } | undefined;
546
+ key?: string | undefined;
547
+ } | undefined;
548
+ paginate?: {
549
+ start_after?: string | undefined;
550
+ limit?: bigint | undefined;
551
+ } | undefined;
552
+ order?: {
553
+ desc: boolean;
554
+ field: "keys" | "created_at" | "updated_at";
555
+ } | undefined;
556
+ }, {
557
+ owner?: Uint8Array<ArrayBufferLike> | undefined;
558
+ matcher?: {
559
+ description?: string | undefined;
560
+ created_at?: {
561
+ equal: bigint;
562
+ } | {
563
+ greater_than: bigint;
564
+ } | {
565
+ less_than: bigint;
566
+ } | {
567
+ between: [bigint, bigint];
568
+ } | undefined;
569
+ updated_at?: {
570
+ equal: bigint;
571
+ } | {
572
+ greater_than: bigint;
573
+ } | {
574
+ less_than: bigint;
575
+ } | {
576
+ between: [bigint, bigint];
577
+ } | undefined;
578
+ key?: string | undefined;
579
+ } | undefined;
580
+ paginate?: {
581
+ start_after?: string | undefined;
582
+ limit?: bigint | undefined;
583
+ } | undefined;
584
+ order?: {
585
+ desc: boolean;
586
+ field: "keys" | "created_at" | "updated_at";
587
+ } | undefined;
588
+ }>;
589
+ }, "strict", z.ZodTypeAny, {
590
+ params: {
591
+ owner?: Uint8Array<ArrayBufferLike> | undefined;
592
+ matcher?: {
593
+ description?: string | undefined;
594
+ created_at?: {
595
+ equal: bigint;
596
+ } | {
597
+ greater_than: bigint;
598
+ } | {
599
+ less_than: bigint;
600
+ } | {
601
+ between: [bigint, bigint];
602
+ } | undefined;
603
+ updated_at?: {
604
+ equal: bigint;
605
+ } | {
606
+ greater_than: bigint;
607
+ } | {
608
+ less_than: bigint;
609
+ } | {
610
+ between: [bigint, bigint];
611
+ } | undefined;
612
+ key?: string | undefined;
613
+ } | undefined;
614
+ paginate?: {
615
+ start_after?: string | undefined;
616
+ limit?: bigint | undefined;
617
+ } | undefined;
618
+ order?: {
619
+ desc: boolean;
620
+ field: "keys" | "created_at" | "updated_at";
621
+ } | undefined;
622
+ };
623
+ caller: Uint8Array<ArrayBufferLike> | import("@dfinity/principal").Principal;
624
+ collection: string;
625
+ }, {
626
+ params: {
627
+ owner?: Uint8Array<ArrayBufferLike> | undefined;
628
+ matcher?: {
629
+ description?: string | undefined;
630
+ created_at?: {
631
+ equal: bigint;
632
+ } | {
633
+ greater_than: bigint;
634
+ } | {
635
+ less_than: bigint;
636
+ } | {
637
+ between: [bigint, bigint];
638
+ } | undefined;
639
+ updated_at?: {
640
+ equal: bigint;
641
+ } | {
642
+ greater_than: bigint;
643
+ } | {
644
+ less_than: bigint;
645
+ } | {
646
+ between: [bigint, bigint];
647
+ } | undefined;
648
+ key?: string | undefined;
649
+ } | undefined;
650
+ paginate?: {
651
+ start_after?: string | undefined;
652
+ limit?: bigint | undefined;
653
+ } | undefined;
654
+ order?: {
655
+ desc: boolean;
656
+ field: "keys" | "created_at" | "updated_at";
657
+ } | undefined;
658
+ };
659
+ caller: Uint8Array<ArrayBufferLike> | import("@dfinity/principal").Principal;
660
+ collection: string;
661
+ }>;
171
662
  /**
172
663
  * The parameters required to delete assets from the storage.
173
664
  */
@@ -177,9 +668,18 @@ export type DeleteFilteredAssetsStoreParams = ListStoreParams;
177
668
  */
178
669
  export declare const DeleteAssetStoreParamsSchema: z.ZodObject<{
179
670
  collection: z.ZodString;
180
- caller: z.ZodUnion<[z.ZodCustom<Uint8Array<ArrayBufferLike>, Uint8Array<ArrayBufferLike>>, z.ZodCustom<import("@dfinity/principal").Principal, import("@dfinity/principal").Principal>]>;
671
+ } & {
672
+ caller: z.ZodUnion<[z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>, z.ZodType<import("@dfinity/principal").Principal, z.ZodTypeDef, import("@dfinity/principal").Principal>]>;
181
673
  full_path: z.ZodString;
182
- }, z.core.$strict>;
674
+ }, "strict", z.ZodTypeAny, {
675
+ caller: Uint8Array<ArrayBufferLike> | import("@dfinity/principal").Principal;
676
+ collection: string;
677
+ full_path: string;
678
+ }, {
679
+ caller: Uint8Array<ArrayBufferLike> | import("@dfinity/principal").Principal;
680
+ collection: string;
681
+ full_path: string;
682
+ }>;
183
683
  /**
184
684
  * Represents the parameters required to delete an asset.
185
685
  */
@@ -189,45 +689,264 @@ export type DeleteAssetStoreParams = GetAssetStoreParams;
189
689
  */
190
690
  export declare const ListAssetsStoreParamsSchema: z.ZodObject<{
191
691
  collection: z.ZodString;
192
- caller: z.ZodUnion<[z.ZodCustom<Uint8Array<ArrayBufferLike>, Uint8Array<ArrayBufferLike>>, z.ZodCustom<import("@dfinity/principal").Principal, import("@dfinity/principal").Principal>]>;
692
+ } & {
693
+ caller: z.ZodUnion<[z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>, z.ZodType<import("@dfinity/principal").Principal, z.ZodTypeDef, import("@dfinity/principal").Principal>]>;
193
694
  params: z.ZodObject<{
194
695
  matcher: z.ZodOptional<z.ZodObject<{
195
696
  key: z.ZodOptional<z.ZodString>;
196
697
  description: z.ZodOptional<z.ZodString>;
197
- created_at: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
698
+ created_at: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
198
699
  equal: z.ZodBigInt;
199
- }, z.core.$strip>, z.ZodObject<{
700
+ }, "strip", z.ZodTypeAny, {
701
+ equal: bigint;
702
+ }, {
703
+ equal: bigint;
704
+ }>, z.ZodObject<{
200
705
  greater_than: z.ZodBigInt;
201
- }, z.core.$strip>, z.ZodObject<{
706
+ }, "strip", z.ZodTypeAny, {
707
+ greater_than: bigint;
708
+ }, {
709
+ greater_than: bigint;
710
+ }>, z.ZodObject<{
202
711
  less_than: z.ZodBigInt;
203
- }, z.core.$strip>, z.ZodObject<{
712
+ }, "strip", z.ZodTypeAny, {
713
+ less_than: bigint;
714
+ }, {
715
+ less_than: bigint;
716
+ }>, z.ZodObject<{
204
717
  between: z.ZodTuple<[z.ZodBigInt, z.ZodBigInt], null>;
205
- }, z.core.$strip>]>>;
206
- updated_at: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
718
+ }, "strip", z.ZodTypeAny, {
719
+ between: [bigint, bigint];
720
+ }, {
721
+ between: [bigint, bigint];
722
+ }>]>>;
723
+ updated_at: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
207
724
  equal: z.ZodBigInt;
208
- }, z.core.$strip>, z.ZodObject<{
725
+ }, "strip", z.ZodTypeAny, {
726
+ equal: bigint;
727
+ }, {
728
+ equal: bigint;
729
+ }>, z.ZodObject<{
209
730
  greater_than: z.ZodBigInt;
210
- }, z.core.$strip>, z.ZodObject<{
731
+ }, "strip", z.ZodTypeAny, {
732
+ greater_than: bigint;
733
+ }, {
734
+ greater_than: bigint;
735
+ }>, z.ZodObject<{
211
736
  less_than: z.ZodBigInt;
212
- }, z.core.$strip>, z.ZodObject<{
737
+ }, "strip", z.ZodTypeAny, {
738
+ less_than: bigint;
739
+ }, {
740
+ less_than: bigint;
741
+ }>, z.ZodObject<{
213
742
  between: z.ZodTuple<[z.ZodBigInt, z.ZodBigInt], null>;
214
- }, z.core.$strip>]>>;
215
- }, z.core.$strict>>;
743
+ }, "strip", z.ZodTypeAny, {
744
+ between: [bigint, bigint];
745
+ }, {
746
+ between: [bigint, bigint];
747
+ }>]>>;
748
+ }, "strict", z.ZodTypeAny, {
749
+ description?: string | undefined;
750
+ created_at?: {
751
+ equal: bigint;
752
+ } | {
753
+ greater_than: bigint;
754
+ } | {
755
+ less_than: bigint;
756
+ } | {
757
+ between: [bigint, bigint];
758
+ } | undefined;
759
+ updated_at?: {
760
+ equal: bigint;
761
+ } | {
762
+ greater_than: bigint;
763
+ } | {
764
+ less_than: bigint;
765
+ } | {
766
+ between: [bigint, bigint];
767
+ } | undefined;
768
+ key?: string | undefined;
769
+ }, {
770
+ description?: string | undefined;
771
+ created_at?: {
772
+ equal: bigint;
773
+ } | {
774
+ greater_than: bigint;
775
+ } | {
776
+ less_than: bigint;
777
+ } | {
778
+ between: [bigint, bigint];
779
+ } | undefined;
780
+ updated_at?: {
781
+ equal: bigint;
782
+ } | {
783
+ greater_than: bigint;
784
+ } | {
785
+ less_than: bigint;
786
+ } | {
787
+ between: [bigint, bigint];
788
+ } | undefined;
789
+ key?: string | undefined;
790
+ }>>;
216
791
  paginate: z.ZodOptional<z.ZodObject<{
217
792
  start_after: z.ZodOptional<z.ZodString>;
218
793
  limit: z.ZodOptional<z.ZodBigInt>;
219
- }, z.core.$strict>>;
794
+ }, "strict", z.ZodTypeAny, {
795
+ start_after?: string | undefined;
796
+ limit?: bigint | undefined;
797
+ }, {
798
+ start_after?: string | undefined;
799
+ limit?: bigint | undefined;
800
+ }>>;
220
801
  order: z.ZodOptional<z.ZodObject<{
221
802
  desc: z.ZodBoolean;
222
- field: z.ZodEnum<{
223
- created_at: "created_at";
224
- updated_at: "updated_at";
225
- keys: "keys";
226
- }>;
227
- }, z.core.$strict>>;
228
- owner: z.ZodOptional<z.ZodCustom<Uint8Array<ArrayBufferLike>, Uint8Array<ArrayBufferLike>>>;
229
- }, z.core.$strict>;
230
- }, z.core.$strict>;
803
+ field: z.ZodEnum<["keys", "created_at", "updated_at"]>;
804
+ }, "strict", z.ZodTypeAny, {
805
+ desc: boolean;
806
+ field: "keys" | "created_at" | "updated_at";
807
+ }, {
808
+ desc: boolean;
809
+ field: "keys" | "created_at" | "updated_at";
810
+ }>>;
811
+ owner: z.ZodOptional<z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>>;
812
+ }, "strict", z.ZodTypeAny, {
813
+ owner?: Uint8Array<ArrayBufferLike> | undefined;
814
+ matcher?: {
815
+ description?: string | undefined;
816
+ created_at?: {
817
+ equal: bigint;
818
+ } | {
819
+ greater_than: bigint;
820
+ } | {
821
+ less_than: bigint;
822
+ } | {
823
+ between: [bigint, bigint];
824
+ } | undefined;
825
+ updated_at?: {
826
+ equal: bigint;
827
+ } | {
828
+ greater_than: bigint;
829
+ } | {
830
+ less_than: bigint;
831
+ } | {
832
+ between: [bigint, bigint];
833
+ } | undefined;
834
+ key?: string | undefined;
835
+ } | undefined;
836
+ paginate?: {
837
+ start_after?: string | undefined;
838
+ limit?: bigint | undefined;
839
+ } | undefined;
840
+ order?: {
841
+ desc: boolean;
842
+ field: "keys" | "created_at" | "updated_at";
843
+ } | undefined;
844
+ }, {
845
+ owner?: Uint8Array<ArrayBufferLike> | undefined;
846
+ matcher?: {
847
+ description?: string | undefined;
848
+ created_at?: {
849
+ equal: bigint;
850
+ } | {
851
+ greater_than: bigint;
852
+ } | {
853
+ less_than: bigint;
854
+ } | {
855
+ between: [bigint, bigint];
856
+ } | undefined;
857
+ updated_at?: {
858
+ equal: bigint;
859
+ } | {
860
+ greater_than: bigint;
861
+ } | {
862
+ less_than: bigint;
863
+ } | {
864
+ between: [bigint, bigint];
865
+ } | undefined;
866
+ key?: string | undefined;
867
+ } | undefined;
868
+ paginate?: {
869
+ start_after?: string | undefined;
870
+ limit?: bigint | undefined;
871
+ } | undefined;
872
+ order?: {
873
+ desc: boolean;
874
+ field: "keys" | "created_at" | "updated_at";
875
+ } | undefined;
876
+ }>;
877
+ }, "strict", z.ZodTypeAny, {
878
+ params: {
879
+ owner?: Uint8Array<ArrayBufferLike> | undefined;
880
+ matcher?: {
881
+ description?: string | undefined;
882
+ created_at?: {
883
+ equal: bigint;
884
+ } | {
885
+ greater_than: bigint;
886
+ } | {
887
+ less_than: bigint;
888
+ } | {
889
+ between: [bigint, bigint];
890
+ } | undefined;
891
+ updated_at?: {
892
+ equal: bigint;
893
+ } | {
894
+ greater_than: bigint;
895
+ } | {
896
+ less_than: bigint;
897
+ } | {
898
+ between: [bigint, bigint];
899
+ } | undefined;
900
+ key?: string | undefined;
901
+ } | undefined;
902
+ paginate?: {
903
+ start_after?: string | undefined;
904
+ limit?: bigint | undefined;
905
+ } | undefined;
906
+ order?: {
907
+ desc: boolean;
908
+ field: "keys" | "created_at" | "updated_at";
909
+ } | undefined;
910
+ };
911
+ caller: Uint8Array<ArrayBufferLike> | import("@dfinity/principal").Principal;
912
+ collection: string;
913
+ }, {
914
+ params: {
915
+ owner?: Uint8Array<ArrayBufferLike> | undefined;
916
+ matcher?: {
917
+ description?: string | undefined;
918
+ created_at?: {
919
+ equal: bigint;
920
+ } | {
921
+ greater_than: bigint;
922
+ } | {
923
+ less_than: bigint;
924
+ } | {
925
+ between: [bigint, bigint];
926
+ } | undefined;
927
+ updated_at?: {
928
+ equal: bigint;
929
+ } | {
930
+ greater_than: bigint;
931
+ } | {
932
+ less_than: bigint;
933
+ } | {
934
+ between: [bigint, bigint];
935
+ } | undefined;
936
+ key?: string | undefined;
937
+ } | undefined;
938
+ paginate?: {
939
+ start_after?: string | undefined;
940
+ limit?: bigint | undefined;
941
+ } | undefined;
942
+ order?: {
943
+ desc: boolean;
944
+ field: "keys" | "created_at" | "updated_at";
945
+ } | undefined;
946
+ };
947
+ caller: Uint8Array<ArrayBufferLike> | import("@dfinity/principal").Principal;
948
+ collection: string;
949
+ }>;
231
950
  /**
232
951
  * The parameters required to list documents from the datastore.
233
952
  */
@@ -238,16 +957,41 @@ export type ListAssetsStoreParams = ListStoreParams;
238
957
  export declare const GetContentChunksStoreParamsSchema: z.ZodObject<{
239
958
  encoding: z.ZodObject<{
240
959
  modified: z.ZodBigInt;
241
- content_chunks: z.ZodArray<z.ZodCustom<Uint8Array<ArrayBufferLike>, Uint8Array<ArrayBufferLike>>>;
960
+ content_chunks: z.ZodArray<z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>, "many">;
242
961
  total_length: z.ZodBigInt;
243
- sha256: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
244
- }, z.core.$strip>;
245
- chunk_index: z.ZodBigInt;
246
- memory: z.ZodEnum<{
247
- heap: "heap";
248
- stable: "stable";
962
+ sha256: z.ZodEffects<z.ZodType<Uint8Array<ArrayBuffer>, z.ZodTypeDef, Uint8Array<ArrayBuffer>>, Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
963
+ }, "strip", z.ZodTypeAny, {
964
+ modified: bigint;
965
+ content_chunks: Uint8Array<ArrayBufferLike>[];
966
+ total_length: bigint;
967
+ sha256: Uint8Array<ArrayBuffer>;
968
+ }, {
969
+ modified: bigint;
970
+ content_chunks: Uint8Array<ArrayBufferLike>[];
971
+ total_length: bigint;
972
+ sha256: Uint8Array<ArrayBuffer>;
249
973
  }>;
250
- }, z.core.$strict>;
974
+ chunk_index: z.ZodBigInt;
975
+ memory: z.ZodEnum<["heap", "stable"]>;
976
+ }, "strict", z.ZodTypeAny, {
977
+ encoding: {
978
+ modified: bigint;
979
+ content_chunks: Uint8Array<ArrayBufferLike>[];
980
+ total_length: bigint;
981
+ sha256: Uint8Array<ArrayBuffer>;
982
+ };
983
+ chunk_index: bigint;
984
+ memory: "heap" | "stable";
985
+ }, {
986
+ encoding: {
987
+ modified: bigint;
988
+ content_chunks: Uint8Array<ArrayBufferLike>[];
989
+ total_length: bigint;
990
+ sha256: Uint8Array<ArrayBuffer>;
991
+ };
992
+ chunk_index: bigint;
993
+ memory: "heap" | "stable";
994
+ }>;
251
995
  /**
252
996
  * The parameters required to retrieve a specific chunk from an asset.
253
997
  */