@junobuild/functions 0.1.4 → 0.2.1

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';
1
+ import * as z from 'zod/v4';
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,18 +8,9 @@ import { type CollectionParams, type ListStoreParams } from './params';
8
8
  */
9
9
  export declare const GetAssetStoreParamsSchema: z.ZodObject<{
10
10
  collection: z.ZodString;
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>]>;
11
+ caller: z.ZodUnion<[z.ZodCustom<Uint8Array<ArrayBufferLike>, Uint8Array<ArrayBufferLike>>, z.ZodCustom<import("@dfinity/principal").Principal, import("@dfinity/principal").Principal>]>;
13
12
  full_path: z.ZodString;
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
- }>;
13
+ }, z.core.$strict>;
23
14
  /**
24
15
  * Represents the base parameters required to access the storage and modify an asset.
25
16
  */
@@ -38,11 +29,7 @@ export type GetAssetStoreParams = CollectionParams & {
38
29
  */
39
30
  export declare const CountCollectionAssetsStoreParamsSchema: z.ZodObject<{
40
31
  collection: z.ZodString;
41
- }, "strict", z.ZodTypeAny, {
42
- collection: string;
43
- }, {
44
- collection: string;
45
- }>;
32
+ }, z.core.$strict>;
46
33
  /**
47
34
  * The parameters required to count documents from the storage.
48
35
  */
@@ -52,264 +39,45 @@ export type CountCollectionAssetsStoreParams = CollectionParams;
52
39
  */
53
40
  export declare const CountAssetsStoreParamsSchema: z.ZodObject<{
54
41
  collection: z.ZodString;
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>]>;
42
+ caller: z.ZodUnion<[z.ZodCustom<Uint8Array<ArrayBufferLike>, Uint8Array<ArrayBufferLike>>, z.ZodCustom<import("@dfinity/principal").Principal, import("@dfinity/principal").Principal>]>;
57
43
  params: z.ZodObject<{
58
44
  matcher: z.ZodOptional<z.ZodObject<{
59
45
  key: z.ZodOptional<z.ZodString>;
60
46
  description: z.ZodOptional<z.ZodString>;
61
- created_at: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
47
+ created_at: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
62
48
  equal: z.ZodBigInt;
63
- }, "strip", z.ZodTypeAny, {
64
- equal: bigint;
65
- }, {
66
- equal: bigint;
67
- }>, z.ZodObject<{
49
+ }, z.core.$strip>, z.ZodObject<{
68
50
  greater_than: z.ZodBigInt;
69
- }, "strip", z.ZodTypeAny, {
70
- greater_than: bigint;
71
- }, {
72
- greater_than: bigint;
73
- }>, z.ZodObject<{
51
+ }, z.core.$strip>, z.ZodObject<{
74
52
  less_than: z.ZodBigInt;
75
- }, "strip", z.ZodTypeAny, {
76
- less_than: bigint;
77
- }, {
78
- less_than: bigint;
79
- }>, z.ZodObject<{
53
+ }, z.core.$strip>, z.ZodObject<{
80
54
  between: z.ZodTuple<[z.ZodBigInt, z.ZodBigInt], null>;
81
- }, "strip", z.ZodTypeAny, {
82
- between: [bigint, bigint];
83
- }, {
84
- between: [bigint, bigint];
85
- }>]>>;
86
- updated_at: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
55
+ }, z.core.$strip>]>>;
56
+ updated_at: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
87
57
  equal: z.ZodBigInt;
88
- }, "strip", z.ZodTypeAny, {
89
- equal: bigint;
90
- }, {
91
- equal: bigint;
92
- }>, z.ZodObject<{
58
+ }, z.core.$strip>, z.ZodObject<{
93
59
  greater_than: z.ZodBigInt;
94
- }, "strip", z.ZodTypeAny, {
95
- greater_than: bigint;
96
- }, {
97
- greater_than: bigint;
98
- }>, z.ZodObject<{
60
+ }, z.core.$strip>, z.ZodObject<{
99
61
  less_than: z.ZodBigInt;
100
- }, "strip", z.ZodTypeAny, {
101
- less_than: bigint;
102
- }, {
103
- less_than: bigint;
104
- }>, z.ZodObject<{
62
+ }, z.core.$strip>, z.ZodObject<{
105
63
  between: z.ZodTuple<[z.ZodBigInt, z.ZodBigInt], null>;
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
- }>>;
64
+ }, z.core.$strip>]>>;
65
+ }, z.core.$strict>>;
154
66
  paginate: z.ZodOptional<z.ZodObject<{
155
67
  start_after: z.ZodOptional<z.ZodString>;
156
68
  limit: z.ZodOptional<z.ZodBigInt>;
157
- }, "strict", z.ZodTypeAny, {
158
- start_after?: string | undefined;
159
- limit?: bigint | undefined;
160
- }, {
161
- start_after?: string | undefined;
162
- limit?: bigint | undefined;
163
- }>>;
69
+ }, z.core.$strict>>;
164
70
  order: z.ZodOptional<z.ZodObject<{
165
71
  desc: z.ZodBoolean;
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
- }>;
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>;
313
81
  /**
314
82
  * The parameters required to count documents from the storage.
315
83
  */
@@ -323,48 +91,12 @@ export declare const SetAssetHandlerParamsSchema: z.ZodObject<{
323
91
  full_path: z.ZodString;
324
92
  token: z.ZodOptional<z.ZodString>;
325
93
  collection: z.ZodString;
326
- owner: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
94
+ owner: z.ZodCustom<Uint8Array<ArrayBufferLike>, Uint8Array<ArrayBufferLike>>;
327
95
  description: z.ZodOptional<z.ZodString>;
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
- }>;
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>;
368
100
  /**
369
101
  * The parameters required to set (or update) an asset.
370
102
  */
@@ -387,11 +119,7 @@ export interface SetAssetHandlerParams {
387
119
  */
388
120
  export declare const DeleteAssetsStoreParamsSchema: z.ZodObject<{
389
121
  collection: z.ZodString;
390
- }, "strict", z.ZodTypeAny, {
391
- collection: string;
392
- }, {
393
- collection: string;
394
- }>;
122
+ }, z.core.$strict>;
395
123
  /**
396
124
  * The parameters required to delete the assets from a collection of the storage.
397
125
  */
@@ -401,264 +129,45 @@ export type DeleteAssetsStoreParams = CollectionParams;
401
129
  */
402
130
  export declare const DeleteFilteredAssetsStoreParamsSchema: z.ZodObject<{
403
131
  collection: z.ZodString;
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>]>;
132
+ caller: z.ZodUnion<[z.ZodCustom<Uint8Array<ArrayBufferLike>, Uint8Array<ArrayBufferLike>>, z.ZodCustom<import("@dfinity/principal").Principal, import("@dfinity/principal").Principal>]>;
406
133
  params: z.ZodObject<{
407
134
  matcher: z.ZodOptional<z.ZodObject<{
408
135
  key: z.ZodOptional<z.ZodString>;
409
136
  description: z.ZodOptional<z.ZodString>;
410
- created_at: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
137
+ created_at: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
411
138
  equal: z.ZodBigInt;
412
- }, "strip", z.ZodTypeAny, {
413
- equal: bigint;
414
- }, {
415
- equal: bigint;
416
- }>, z.ZodObject<{
139
+ }, z.core.$strip>, z.ZodObject<{
417
140
  greater_than: z.ZodBigInt;
418
- }, "strip", z.ZodTypeAny, {
419
- greater_than: bigint;
420
- }, {
421
- greater_than: bigint;
422
- }>, z.ZodObject<{
141
+ }, z.core.$strip>, z.ZodObject<{
423
142
  less_than: z.ZodBigInt;
424
- }, "strip", z.ZodTypeAny, {
425
- less_than: bigint;
426
- }, {
427
- less_than: bigint;
428
- }>, z.ZodObject<{
143
+ }, z.core.$strip>, z.ZodObject<{
429
144
  between: z.ZodTuple<[z.ZodBigInt, z.ZodBigInt], null>;
430
- }, "strip", z.ZodTypeAny, {
431
- between: [bigint, bigint];
432
- }, {
433
- between: [bigint, bigint];
434
- }>]>>;
435
- updated_at: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
145
+ }, z.core.$strip>]>>;
146
+ updated_at: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
436
147
  equal: z.ZodBigInt;
437
- }, "strip", z.ZodTypeAny, {
438
- equal: bigint;
439
- }, {
440
- equal: bigint;
441
- }>, z.ZodObject<{
148
+ }, z.core.$strip>, z.ZodObject<{
442
149
  greater_than: z.ZodBigInt;
443
- }, "strip", z.ZodTypeAny, {
444
- greater_than: bigint;
445
- }, {
446
- greater_than: bigint;
447
- }>, z.ZodObject<{
150
+ }, z.core.$strip>, z.ZodObject<{
448
151
  less_than: z.ZodBigInt;
449
- }, "strip", z.ZodTypeAny, {
450
- less_than: bigint;
451
- }, {
452
- less_than: bigint;
453
- }>, z.ZodObject<{
152
+ }, z.core.$strip>, z.ZodObject<{
454
153
  between: z.ZodTuple<[z.ZodBigInt, z.ZodBigInt], null>;
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
- }>>;
154
+ }, z.core.$strip>]>>;
155
+ }, z.core.$strict>>;
503
156
  paginate: z.ZodOptional<z.ZodObject<{
504
157
  start_after: z.ZodOptional<z.ZodString>;
505
158
  limit: z.ZodOptional<z.ZodBigInt>;
506
- }, "strict", z.ZodTypeAny, {
507
- start_after?: string | undefined;
508
- limit?: bigint | undefined;
509
- }, {
510
- start_after?: string | undefined;
511
- limit?: bigint | undefined;
512
- }>>;
159
+ }, z.core.$strict>>;
513
160
  order: z.ZodOptional<z.ZodObject<{
514
161
  desc: z.ZodBoolean;
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
- }>;
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>;
662
171
  /**
663
172
  * The parameters required to delete assets from the storage.
664
173
  */
@@ -668,18 +177,9 @@ export type DeleteFilteredAssetsStoreParams = ListStoreParams;
668
177
  */
669
178
  export declare const DeleteAssetStoreParamsSchema: z.ZodObject<{
670
179
  collection: z.ZodString;
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>]>;
180
+ caller: z.ZodUnion<[z.ZodCustom<Uint8Array<ArrayBufferLike>, Uint8Array<ArrayBufferLike>>, z.ZodCustom<import("@dfinity/principal").Principal, import("@dfinity/principal").Principal>]>;
673
181
  full_path: z.ZodString;
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
- }>;
182
+ }, z.core.$strict>;
683
183
  /**
684
184
  * Represents the parameters required to delete an asset.
685
185
  */
@@ -689,264 +189,45 @@ export type DeleteAssetStoreParams = GetAssetStoreParams;
689
189
  */
690
190
  export declare const ListAssetsStoreParamsSchema: z.ZodObject<{
691
191
  collection: z.ZodString;
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>]>;
192
+ caller: z.ZodUnion<[z.ZodCustom<Uint8Array<ArrayBufferLike>, Uint8Array<ArrayBufferLike>>, z.ZodCustom<import("@dfinity/principal").Principal, import("@dfinity/principal").Principal>]>;
694
193
  params: z.ZodObject<{
695
194
  matcher: z.ZodOptional<z.ZodObject<{
696
195
  key: z.ZodOptional<z.ZodString>;
697
196
  description: z.ZodOptional<z.ZodString>;
698
- created_at: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
197
+ created_at: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
699
198
  equal: z.ZodBigInt;
700
- }, "strip", z.ZodTypeAny, {
701
- equal: bigint;
702
- }, {
703
- equal: bigint;
704
- }>, z.ZodObject<{
199
+ }, z.core.$strip>, z.ZodObject<{
705
200
  greater_than: z.ZodBigInt;
706
- }, "strip", z.ZodTypeAny, {
707
- greater_than: bigint;
708
- }, {
709
- greater_than: bigint;
710
- }>, z.ZodObject<{
201
+ }, z.core.$strip>, z.ZodObject<{
711
202
  less_than: z.ZodBigInt;
712
- }, "strip", z.ZodTypeAny, {
713
- less_than: bigint;
714
- }, {
715
- less_than: bigint;
716
- }>, z.ZodObject<{
203
+ }, z.core.$strip>, z.ZodObject<{
717
204
  between: z.ZodTuple<[z.ZodBigInt, z.ZodBigInt], null>;
718
- }, "strip", z.ZodTypeAny, {
719
- between: [bigint, bigint];
720
- }, {
721
- between: [bigint, bigint];
722
- }>]>>;
723
- updated_at: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
205
+ }, z.core.$strip>]>>;
206
+ updated_at: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
724
207
  equal: z.ZodBigInt;
725
- }, "strip", z.ZodTypeAny, {
726
- equal: bigint;
727
- }, {
728
- equal: bigint;
729
- }>, z.ZodObject<{
208
+ }, z.core.$strip>, z.ZodObject<{
730
209
  greater_than: z.ZodBigInt;
731
- }, "strip", z.ZodTypeAny, {
732
- greater_than: bigint;
733
- }, {
734
- greater_than: bigint;
735
- }>, z.ZodObject<{
210
+ }, z.core.$strip>, z.ZodObject<{
736
211
  less_than: z.ZodBigInt;
737
- }, "strip", z.ZodTypeAny, {
738
- less_than: bigint;
739
- }, {
740
- less_than: bigint;
741
- }>, z.ZodObject<{
212
+ }, z.core.$strip>, z.ZodObject<{
742
213
  between: z.ZodTuple<[z.ZodBigInt, z.ZodBigInt], null>;
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
- }>>;
214
+ }, z.core.$strip>]>>;
215
+ }, z.core.$strict>>;
791
216
  paginate: z.ZodOptional<z.ZodObject<{
792
217
  start_after: z.ZodOptional<z.ZodString>;
793
218
  limit: z.ZodOptional<z.ZodBigInt>;
794
- }, "strict", z.ZodTypeAny, {
795
- start_after?: string | undefined;
796
- limit?: bigint | undefined;
797
- }, {
798
- start_after?: string | undefined;
799
- limit?: bigint | undefined;
800
- }>>;
219
+ }, z.core.$strict>>;
801
220
  order: z.ZodOptional<z.ZodObject<{
802
221
  desc: z.ZodBoolean;
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
- }>;
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>;
950
231
  /**
951
232
  * The parameters required to list documents from the datastore.
952
233
  */
@@ -957,41 +238,16 @@ export type ListAssetsStoreParams = ListStoreParams;
957
238
  export declare const GetContentChunksStoreParamsSchema: z.ZodObject<{
958
239
  encoding: z.ZodObject<{
959
240
  modified: z.ZodBigInt;
960
- content_chunks: z.ZodArray<z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>, "many">;
241
+ content_chunks: z.ZodArray<z.ZodCustom<Uint8Array<ArrayBufferLike>, Uint8Array<ArrayBufferLike>>>;
961
242
  total_length: z.ZodBigInt;
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>;
973
- }>;
243
+ sha256: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
244
+ }, z.core.$strip>;
974
245
  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
- }>;
246
+ memory: z.ZodEnum<{
247
+ heap: "heap";
248
+ stable: "stable";
249
+ }>;
250
+ }, z.core.$strict>;
995
251
  /**
996
252
  * The parameters required to retrieve a specific chunk from an asset.
997
253
  */