@junobuild/functions 0.5.6 → 0.6.0

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.
Files changed (60) hide show
  1. package/README.md +753 -323
  2. package/canisters/_canister.d.ts +1 -1
  3. package/canisters/cmc/index.js +1 -1
  4. package/canisters/index.js +1 -1
  5. package/canisters/ledger/icp/index.js +1 -1
  6. package/canisters/ledger/icrc/index.js +1 -1
  7. package/canisters/ledger/icrc/schemas.d.ts +1 -1
  8. package/canisters/schemas.d.ts +1 -1
  9. package/{chunk-5NZMOUKF.js → chunk-2LVPADWI.js} +2 -2
  10. package/chunk-7JYM2CKB.js +2 -0
  11. package/chunk-7JYM2CKB.js.map +7 -0
  12. package/chunk-HVIYPRXX.js +2 -0
  13. package/chunk-HVIYPRXX.js.map +7 -0
  14. package/{chunk-EMQQE34V.js → chunk-W42LR3ZN.js} +2 -2
  15. package/chunk-XRHVLXYG.js +2 -0
  16. package/functions/constants.d.ts +8 -0
  17. package/functions/query.d.ts +49 -0
  18. package/functions/schemas/function.d.ts +170 -0
  19. package/functions/update.d.ts +49 -0
  20. package/functions/wrappers.d.ts +1 -0
  21. package/global.d.ts +1 -0
  22. package/hooks/assertions.d.ts +57 -57
  23. package/hooks/hooks.d.ts +116 -116
  24. package/hooks/schemas/context.d.ts +1 -1
  25. package/hooks/schemas/db/context.d.ts +26 -26
  26. package/hooks/schemas/db/payload.d.ts +9 -9
  27. package/hooks/schemas/storage/context.d.ts +19 -19
  28. package/hooks/schemas/storage/payload.d.ts +3 -3
  29. package/ic-cdk/caller.ic-cdk.d.ts +15 -0
  30. package/ic-cdk/id.ic-cdk.d.ts +11 -1
  31. package/ic-cdk/schemas/call.d.ts +1 -1
  32. package/ic-cdk.d.ts +1 -0
  33. package/ic-cdk.js +1 -1
  34. package/ic-cdk.js.map +4 -4
  35. package/index.d.ts +5 -1
  36. package/index.js +1 -1
  37. package/index.js.map +4 -4
  38. package/package.json +3 -2
  39. package/schemas/candid.d.ts +5 -6
  40. package/schemas/db.d.ts +7 -8
  41. package/schemas/list.d.ts +1 -1
  42. package/schemas/satellite.d.ts +4 -3
  43. package/schemas/storage.d.ts +9 -9
  44. package/sdk/schemas/controllers.d.ts +4 -4
  45. package/sdk/schemas/db.d.ts +10 -10
  46. package/sdk/schemas/params.d.ts +2 -2
  47. package/sdk/schemas/storage.d.ts +12 -12
  48. package/sdk.js +1 -1
  49. package/sdk.js.map +4 -4
  50. package/src/global.d.ts +1 -0
  51. package/utils/zod.utils.d.ts +4 -1
  52. package/chunk-7B6WU32N.js +0 -2
  53. package/chunk-7B6WU32N.js.map +0 -7
  54. package/chunk-KVADXJMF.js +0 -2
  55. package/chunk-KVADXJMF.js.map +0 -7
  56. package/chunk-TZVF5LQY.js +0 -2
  57. /package/{chunk-5NZMOUKF.js.map → chunk-2LVPADWI.js.map} +0 -0
  58. /package/{chunk-EMQQE34V.js.map → chunk-W42LR3ZN.js.map} +0 -0
  59. /package/{chunk-TZVF5LQY.js.map → chunk-XRHVLXYG.js.map} +0 -0
  60. /package/{hooks/schemas → schemas}/satellite.env.d.ts +0 -0
@@ -1,8 +1,8 @@
1
1
  import * as z from 'zod';
2
+ import { SatelliteEnvSchema } from '../schemas/satellite.env';
2
3
  import { type Collections } from './schemas/collections';
3
4
  import { type AssertFunction } from './schemas/context';
4
5
  import { type AssertDeleteDocContext, type AssertSetDocContext } from './schemas/db/context';
5
- import { SatelliteEnvSchema } from './schemas/satellite.env';
6
6
  import { type AssertDeleteAssetContext, type AssertUploadAssetContext } from './schemas/storage/context';
7
7
  /**
8
8
  * A generic schema for defining assertions related to collections.
@@ -18,42 +18,42 @@ export type OnAssert<T> = Collections & {
18
18
  export declare const AssertSetDocSchema: z.ZodObject<{
19
19
  collections: z.ZodReadonly<z.ZodArray<z.ZodString>>;
20
20
  assert: z.ZodCustom<z.core.$InferInnerFunctionType<z.ZodTuple<[z.ZodObject<{
21
- caller: z.ZodCustom<Uint8Array<ArrayBufferLike>, Uint8Array<ArrayBufferLike>>;
21
+ caller: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
22
22
  data: z.ZodObject<{
23
23
  collection: z.ZodString;
24
24
  key: z.ZodString;
25
25
  data: z.ZodObject<{
26
26
  current: z.ZodOptional<z.ZodObject<{
27
- owner: z.ZodCustom<Uint8Array<ArrayBufferLike>, Uint8Array<ArrayBufferLike>>;
28
- data: z.ZodCustom<Uint8Array<ArrayBufferLike>, Uint8Array<ArrayBufferLike>>;
27
+ owner: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
28
+ data: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
29
29
  description: z.ZodOptional<z.ZodString>;
30
30
  created_at: z.ZodBigInt;
31
31
  updated_at: z.ZodBigInt;
32
32
  version: z.ZodOptional<z.ZodBigInt>;
33
33
  }, z.core.$strict>>;
34
34
  proposed: z.ZodObject<{
35
- data: z.ZodCustom<Uint8Array<ArrayBufferLike>, Uint8Array<ArrayBufferLike>>;
35
+ data: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
36
36
  description: z.ZodOptional<z.ZodString>;
37
37
  version: z.ZodOptional<z.ZodBigInt>;
38
38
  }, z.core.$strict>;
39
39
  }, z.core.$strict>;
40
40
  }, z.core.$strict>;
41
41
  }, z.core.$strict>], null>, z.ZodVoid>, z.core.$InferInnerFunctionType<z.ZodTuple<[z.ZodObject<{
42
- caller: z.ZodCustom<Uint8Array<ArrayBufferLike>, Uint8Array<ArrayBufferLike>>;
42
+ caller: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
43
43
  data: z.ZodObject<{
44
44
  collection: z.ZodString;
45
45
  key: z.ZodString;
46
46
  data: z.ZodObject<{
47
47
  current: z.ZodOptional<z.ZodObject<{
48
- owner: z.ZodCustom<Uint8Array<ArrayBufferLike>, Uint8Array<ArrayBufferLike>>;
49
- data: z.ZodCustom<Uint8Array<ArrayBufferLike>, Uint8Array<ArrayBufferLike>>;
48
+ owner: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
49
+ data: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
50
50
  description: z.ZodOptional<z.ZodString>;
51
51
  created_at: z.ZodBigInt;
52
52
  updated_at: z.ZodBigInt;
53
53
  version: z.ZodOptional<z.ZodBigInt>;
54
54
  }, z.core.$strict>>;
55
55
  proposed: z.ZodObject<{
56
- data: z.ZodCustom<Uint8Array<ArrayBufferLike>, Uint8Array<ArrayBufferLike>>;
56
+ data: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
57
57
  description: z.ZodOptional<z.ZodString>;
58
58
  version: z.ZodOptional<z.ZodBigInt>;
59
59
  }, z.core.$strict>;
@@ -71,14 +71,14 @@ export type AssertSetDoc = OnAssert<AssertSetDocContext>;
71
71
  export declare const AssertDeleteDocSchema: z.ZodObject<{
72
72
  collections: z.ZodReadonly<z.ZodArray<z.ZodString>>;
73
73
  assert: z.ZodCustom<z.core.$InferInnerFunctionType<z.ZodTuple<[z.ZodObject<{
74
- caller: z.ZodCustom<Uint8Array<ArrayBufferLike>, Uint8Array<ArrayBufferLike>>;
74
+ caller: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
75
75
  data: z.ZodObject<{
76
76
  collection: z.ZodString;
77
77
  key: z.ZodString;
78
78
  data: z.ZodObject<{
79
79
  current: z.ZodOptional<z.ZodObject<{
80
- owner: z.ZodCustom<Uint8Array<ArrayBufferLike>, Uint8Array<ArrayBufferLike>>;
81
- data: z.ZodCustom<Uint8Array<ArrayBufferLike>, Uint8Array<ArrayBufferLike>>;
80
+ owner: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
81
+ data: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
82
82
  description: z.ZodOptional<z.ZodString>;
83
83
  created_at: z.ZodBigInt;
84
84
  updated_at: z.ZodBigInt;
@@ -90,14 +90,14 @@ export declare const AssertDeleteDocSchema: z.ZodObject<{
90
90
  }, z.core.$strict>;
91
91
  }, z.core.$strict>;
92
92
  }, z.core.$strict>], null>, z.ZodVoid>, z.core.$InferInnerFunctionType<z.ZodTuple<[z.ZodObject<{
93
- caller: z.ZodCustom<Uint8Array<ArrayBufferLike>, Uint8Array<ArrayBufferLike>>;
93
+ caller: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
94
94
  data: z.ZodObject<{
95
95
  collection: z.ZodString;
96
96
  key: z.ZodString;
97
97
  data: z.ZodObject<{
98
98
  current: z.ZodOptional<z.ZodObject<{
99
- owner: z.ZodCustom<Uint8Array<ArrayBufferLike>, Uint8Array<ArrayBufferLike>>;
100
- data: z.ZodCustom<Uint8Array<ArrayBufferLike>, Uint8Array<ArrayBufferLike>>;
99
+ owner: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
100
+ data: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
101
101
  description: z.ZodOptional<z.ZodString>;
102
102
  created_at: z.ZodBigInt;
103
103
  updated_at: z.ZodBigInt;
@@ -120,7 +120,7 @@ export type AssertDeleteDoc = OnAssert<AssertDeleteDocContext>;
120
120
  export declare const AssertUploadAssetSchema: z.ZodObject<{
121
121
  collections: z.ZodReadonly<z.ZodArray<z.ZodString>>;
122
122
  assert: z.ZodCustom<z.core.$InferInnerFunctionType<z.ZodTuple<[z.ZodObject<{
123
- caller: z.ZodCustom<Uint8Array<ArrayBufferLike>, Uint8Array<ArrayBufferLike>>;
123
+ caller: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
124
124
  data: z.ZodObject<{
125
125
  current: z.ZodOptional<z.ZodObject<{
126
126
  key: z.ZodObject<{
@@ -128,7 +128,7 @@ export declare const AssertUploadAssetSchema: z.ZodObject<{
128
128
  full_path: z.ZodString;
129
129
  token: z.ZodOptional<z.ZodString>;
130
130
  collection: z.ZodString;
131
- owner: z.ZodCustom<Uint8Array<ArrayBufferLike>, Uint8Array<ArrayBufferLike>>;
131
+ owner: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
132
132
  description: z.ZodOptional<z.ZodString>;
133
133
  }, z.core.$strict>;
134
134
  headers: z.ZodArray<z.ZodTuple<[z.ZodString, z.ZodString], null>>;
@@ -140,7 +140,7 @@ export declare const AssertUploadAssetSchema: z.ZodObject<{
140
140
  br: "br";
141
141
  }>, z.ZodObject<{
142
142
  modified: z.ZodBigInt;
143
- content_chunks: z.ZodArray<z.ZodCustom<Uint8Array<ArrayBufferLike>, Uint8Array<ArrayBufferLike>>>;
143
+ content_chunks: z.ZodArray<z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>>;
144
144
  total_length: z.ZodBigInt;
145
145
  sha256: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
146
146
  }, z.core.$strip>], null>>;
@@ -154,7 +154,7 @@ export declare const AssertUploadAssetSchema: z.ZodObject<{
154
154
  full_path: z.ZodString;
155
155
  token: z.ZodOptional<z.ZodString>;
156
156
  collection: z.ZodString;
157
- owner: z.ZodCustom<Uint8Array<ArrayBufferLike>, Uint8Array<ArrayBufferLike>>;
157
+ owner: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
158
158
  description: z.ZodOptional<z.ZodString>;
159
159
  }, z.core.$strict>;
160
160
  reference_id: z.ZodOptional<z.ZodBigInt>;
@@ -174,7 +174,7 @@ export declare const AssertUploadAssetSchema: z.ZodObject<{
174
174
  }, z.core.$strict>;
175
175
  }, z.core.$strict>;
176
176
  }, z.core.$strict>], null>, z.ZodVoid>, z.core.$InferInnerFunctionType<z.ZodTuple<[z.ZodObject<{
177
- caller: z.ZodCustom<Uint8Array<ArrayBufferLike>, Uint8Array<ArrayBufferLike>>;
177
+ caller: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
178
178
  data: z.ZodObject<{
179
179
  current: z.ZodOptional<z.ZodObject<{
180
180
  key: z.ZodObject<{
@@ -182,7 +182,7 @@ export declare const AssertUploadAssetSchema: z.ZodObject<{
182
182
  full_path: z.ZodString;
183
183
  token: z.ZodOptional<z.ZodString>;
184
184
  collection: z.ZodString;
185
- owner: z.ZodCustom<Uint8Array<ArrayBufferLike>, Uint8Array<ArrayBufferLike>>;
185
+ owner: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
186
186
  description: z.ZodOptional<z.ZodString>;
187
187
  }, z.core.$strict>;
188
188
  headers: z.ZodArray<z.ZodTuple<[z.ZodString, z.ZodString], null>>;
@@ -194,7 +194,7 @@ export declare const AssertUploadAssetSchema: z.ZodObject<{
194
194
  br: "br";
195
195
  }>, z.ZodObject<{
196
196
  modified: z.ZodBigInt;
197
- content_chunks: z.ZodArray<z.ZodCustom<Uint8Array<ArrayBufferLike>, Uint8Array<ArrayBufferLike>>>;
197
+ content_chunks: z.ZodArray<z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>>;
198
198
  total_length: z.ZodBigInt;
199
199
  sha256: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
200
200
  }, z.core.$strip>], null>>;
@@ -208,7 +208,7 @@ export declare const AssertUploadAssetSchema: z.ZodObject<{
208
208
  full_path: z.ZodString;
209
209
  token: z.ZodOptional<z.ZodString>;
210
210
  collection: z.ZodString;
211
- owner: z.ZodCustom<Uint8Array<ArrayBufferLike>, Uint8Array<ArrayBufferLike>>;
211
+ owner: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
212
212
  description: z.ZodOptional<z.ZodString>;
213
213
  }, z.core.$strict>;
214
214
  reference_id: z.ZodOptional<z.ZodBigInt>;
@@ -239,14 +239,14 @@ export type AssertUploadAsset = OnAssert<AssertUploadAssetContext>;
239
239
  export declare const AssertDeleteAssetSchema: z.ZodObject<{
240
240
  collections: z.ZodReadonly<z.ZodArray<z.ZodString>>;
241
241
  assert: z.ZodCustom<z.core.$InferInnerFunctionType<z.ZodTuple<[z.ZodObject<{
242
- caller: z.ZodCustom<Uint8Array<ArrayBufferLike>, Uint8Array<ArrayBufferLike>>;
242
+ caller: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
243
243
  data: z.ZodObject<{
244
244
  key: z.ZodObject<{
245
245
  name: z.ZodString;
246
246
  full_path: z.ZodString;
247
247
  token: z.ZodOptional<z.ZodString>;
248
248
  collection: z.ZodString;
249
- owner: z.ZodCustom<Uint8Array<ArrayBufferLike>, Uint8Array<ArrayBufferLike>>;
249
+ owner: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
250
250
  description: z.ZodOptional<z.ZodString>;
251
251
  }, z.core.$strict>;
252
252
  headers: z.ZodArray<z.ZodTuple<[z.ZodString, z.ZodString], null>>;
@@ -258,7 +258,7 @@ export declare const AssertDeleteAssetSchema: z.ZodObject<{
258
258
  br: "br";
259
259
  }>, z.ZodObject<{
260
260
  modified: z.ZodBigInt;
261
- content_chunks: z.ZodArray<z.ZodCustom<Uint8Array<ArrayBufferLike>, Uint8Array<ArrayBufferLike>>>;
261
+ content_chunks: z.ZodArray<z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>>;
262
262
  total_length: z.ZodBigInt;
263
263
  sha256: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
264
264
  }, z.core.$strip>], null>>;
@@ -267,14 +267,14 @@ export declare const AssertDeleteAssetSchema: z.ZodObject<{
267
267
  version: z.ZodOptional<z.ZodBigInt>;
268
268
  }, z.core.$strict>;
269
269
  }, z.core.$strict>], null>, z.ZodVoid>, z.core.$InferInnerFunctionType<z.ZodTuple<[z.ZodObject<{
270
- caller: z.ZodCustom<Uint8Array<ArrayBufferLike>, Uint8Array<ArrayBufferLike>>;
270
+ caller: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
271
271
  data: z.ZodObject<{
272
272
  key: z.ZodObject<{
273
273
  name: z.ZodString;
274
274
  full_path: z.ZodString;
275
275
  token: z.ZodOptional<z.ZodString>;
276
276
  collection: z.ZodString;
277
- owner: z.ZodCustom<Uint8Array<ArrayBufferLike>, Uint8Array<ArrayBufferLike>>;
277
+ owner: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
278
278
  description: z.ZodOptional<z.ZodString>;
279
279
  }, z.core.$strict>;
280
280
  headers: z.ZodArray<z.ZodTuple<[z.ZodString, z.ZodString], null>>;
@@ -286,7 +286,7 @@ export declare const AssertDeleteAssetSchema: z.ZodObject<{
286
286
  br: "br";
287
287
  }>, z.ZodObject<{
288
288
  modified: z.ZodBigInt;
289
- content_chunks: z.ZodArray<z.ZodCustom<Uint8Array<ArrayBufferLike>, Uint8Array<ArrayBufferLike>>>;
289
+ content_chunks: z.ZodArray<z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>>;
290
290
  total_length: z.ZodBigInt;
291
291
  sha256: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
292
292
  }, z.core.$strip>], null>>;
@@ -306,42 +306,42 @@ export type AssertDeleteAsset = OnAssert<AssertDeleteAssetContext>;
306
306
  export declare const AssertSchema: z.ZodUnion<readonly [z.ZodObject<{
307
307
  collections: z.ZodReadonly<z.ZodArray<z.ZodString>>;
308
308
  assert: z.ZodCustom<z.core.$InferInnerFunctionType<z.ZodTuple<[z.ZodObject<{
309
- caller: z.ZodCustom<Uint8Array<ArrayBufferLike>, Uint8Array<ArrayBufferLike>>;
309
+ caller: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
310
310
  data: z.ZodObject<{
311
311
  collection: z.ZodString;
312
312
  key: z.ZodString;
313
313
  data: z.ZodObject<{
314
314
  current: z.ZodOptional<z.ZodObject<{
315
- owner: z.ZodCustom<Uint8Array<ArrayBufferLike>, Uint8Array<ArrayBufferLike>>;
316
- data: z.ZodCustom<Uint8Array<ArrayBufferLike>, Uint8Array<ArrayBufferLike>>;
315
+ owner: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
316
+ data: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
317
317
  description: z.ZodOptional<z.ZodString>;
318
318
  created_at: z.ZodBigInt;
319
319
  updated_at: z.ZodBigInt;
320
320
  version: z.ZodOptional<z.ZodBigInt>;
321
321
  }, z.core.$strict>>;
322
322
  proposed: z.ZodObject<{
323
- data: z.ZodCustom<Uint8Array<ArrayBufferLike>, Uint8Array<ArrayBufferLike>>;
323
+ data: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
324
324
  description: z.ZodOptional<z.ZodString>;
325
325
  version: z.ZodOptional<z.ZodBigInt>;
326
326
  }, z.core.$strict>;
327
327
  }, z.core.$strict>;
328
328
  }, z.core.$strict>;
329
329
  }, z.core.$strict>], null>, z.ZodVoid>, z.core.$InferInnerFunctionType<z.ZodTuple<[z.ZodObject<{
330
- caller: z.ZodCustom<Uint8Array<ArrayBufferLike>, Uint8Array<ArrayBufferLike>>;
330
+ caller: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
331
331
  data: z.ZodObject<{
332
332
  collection: z.ZodString;
333
333
  key: z.ZodString;
334
334
  data: z.ZodObject<{
335
335
  current: z.ZodOptional<z.ZodObject<{
336
- owner: z.ZodCustom<Uint8Array<ArrayBufferLike>, Uint8Array<ArrayBufferLike>>;
337
- data: z.ZodCustom<Uint8Array<ArrayBufferLike>, Uint8Array<ArrayBufferLike>>;
336
+ owner: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
337
+ data: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
338
338
  description: z.ZodOptional<z.ZodString>;
339
339
  created_at: z.ZodBigInt;
340
340
  updated_at: z.ZodBigInt;
341
341
  version: z.ZodOptional<z.ZodBigInt>;
342
342
  }, z.core.$strict>>;
343
343
  proposed: z.ZodObject<{
344
- data: z.ZodCustom<Uint8Array<ArrayBufferLike>, Uint8Array<ArrayBufferLike>>;
344
+ data: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
345
345
  description: z.ZodOptional<z.ZodString>;
346
346
  version: z.ZodOptional<z.ZodBigInt>;
347
347
  }, z.core.$strict>;
@@ -351,14 +351,14 @@ export declare const AssertSchema: z.ZodUnion<readonly [z.ZodObject<{
351
351
  }, z.core.$strict>, z.ZodObject<{
352
352
  collections: z.ZodReadonly<z.ZodArray<z.ZodString>>;
353
353
  assert: z.ZodCustom<z.core.$InferInnerFunctionType<z.ZodTuple<[z.ZodObject<{
354
- caller: z.ZodCustom<Uint8Array<ArrayBufferLike>, Uint8Array<ArrayBufferLike>>;
354
+ caller: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
355
355
  data: z.ZodObject<{
356
356
  collection: z.ZodString;
357
357
  key: z.ZodString;
358
358
  data: z.ZodObject<{
359
359
  current: z.ZodOptional<z.ZodObject<{
360
- owner: z.ZodCustom<Uint8Array<ArrayBufferLike>, Uint8Array<ArrayBufferLike>>;
361
- data: z.ZodCustom<Uint8Array<ArrayBufferLike>, Uint8Array<ArrayBufferLike>>;
360
+ owner: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
361
+ data: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
362
362
  description: z.ZodOptional<z.ZodString>;
363
363
  created_at: z.ZodBigInt;
364
364
  updated_at: z.ZodBigInt;
@@ -370,14 +370,14 @@ export declare const AssertSchema: z.ZodUnion<readonly [z.ZodObject<{
370
370
  }, z.core.$strict>;
371
371
  }, z.core.$strict>;
372
372
  }, z.core.$strict>], null>, z.ZodVoid>, z.core.$InferInnerFunctionType<z.ZodTuple<[z.ZodObject<{
373
- caller: z.ZodCustom<Uint8Array<ArrayBufferLike>, Uint8Array<ArrayBufferLike>>;
373
+ caller: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
374
374
  data: z.ZodObject<{
375
375
  collection: z.ZodString;
376
376
  key: z.ZodString;
377
377
  data: z.ZodObject<{
378
378
  current: z.ZodOptional<z.ZodObject<{
379
- owner: z.ZodCustom<Uint8Array<ArrayBufferLike>, Uint8Array<ArrayBufferLike>>;
380
- data: z.ZodCustom<Uint8Array<ArrayBufferLike>, Uint8Array<ArrayBufferLike>>;
379
+ owner: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
380
+ data: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
381
381
  description: z.ZodOptional<z.ZodString>;
382
382
  created_at: z.ZodBigInt;
383
383
  updated_at: z.ZodBigInt;
@@ -392,7 +392,7 @@ export declare const AssertSchema: z.ZodUnion<readonly [z.ZodObject<{
392
392
  }, z.core.$strict>, z.ZodObject<{
393
393
  collections: z.ZodReadonly<z.ZodArray<z.ZodString>>;
394
394
  assert: z.ZodCustom<z.core.$InferInnerFunctionType<z.ZodTuple<[z.ZodObject<{
395
- caller: z.ZodCustom<Uint8Array<ArrayBufferLike>, Uint8Array<ArrayBufferLike>>;
395
+ caller: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
396
396
  data: z.ZodObject<{
397
397
  current: z.ZodOptional<z.ZodObject<{
398
398
  key: z.ZodObject<{
@@ -400,7 +400,7 @@ export declare const AssertSchema: z.ZodUnion<readonly [z.ZodObject<{
400
400
  full_path: z.ZodString;
401
401
  token: z.ZodOptional<z.ZodString>;
402
402
  collection: z.ZodString;
403
- owner: z.ZodCustom<Uint8Array<ArrayBufferLike>, Uint8Array<ArrayBufferLike>>;
403
+ owner: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
404
404
  description: z.ZodOptional<z.ZodString>;
405
405
  }, z.core.$strict>;
406
406
  headers: z.ZodArray<z.ZodTuple<[z.ZodString, z.ZodString], null>>;
@@ -412,7 +412,7 @@ export declare const AssertSchema: z.ZodUnion<readonly [z.ZodObject<{
412
412
  br: "br";
413
413
  }>, z.ZodObject<{
414
414
  modified: z.ZodBigInt;
415
- content_chunks: z.ZodArray<z.ZodCustom<Uint8Array<ArrayBufferLike>, Uint8Array<ArrayBufferLike>>>;
415
+ content_chunks: z.ZodArray<z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>>;
416
416
  total_length: z.ZodBigInt;
417
417
  sha256: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
418
418
  }, z.core.$strip>], null>>;
@@ -426,7 +426,7 @@ export declare const AssertSchema: z.ZodUnion<readonly [z.ZodObject<{
426
426
  full_path: z.ZodString;
427
427
  token: z.ZodOptional<z.ZodString>;
428
428
  collection: z.ZodString;
429
- owner: z.ZodCustom<Uint8Array<ArrayBufferLike>, Uint8Array<ArrayBufferLike>>;
429
+ owner: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
430
430
  description: z.ZodOptional<z.ZodString>;
431
431
  }, z.core.$strict>;
432
432
  reference_id: z.ZodOptional<z.ZodBigInt>;
@@ -446,7 +446,7 @@ export declare const AssertSchema: z.ZodUnion<readonly [z.ZodObject<{
446
446
  }, z.core.$strict>;
447
447
  }, z.core.$strict>;
448
448
  }, z.core.$strict>], null>, z.ZodVoid>, z.core.$InferInnerFunctionType<z.ZodTuple<[z.ZodObject<{
449
- caller: z.ZodCustom<Uint8Array<ArrayBufferLike>, Uint8Array<ArrayBufferLike>>;
449
+ caller: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
450
450
  data: z.ZodObject<{
451
451
  current: z.ZodOptional<z.ZodObject<{
452
452
  key: z.ZodObject<{
@@ -454,7 +454,7 @@ export declare const AssertSchema: z.ZodUnion<readonly [z.ZodObject<{
454
454
  full_path: z.ZodString;
455
455
  token: z.ZodOptional<z.ZodString>;
456
456
  collection: z.ZodString;
457
- owner: z.ZodCustom<Uint8Array<ArrayBufferLike>, Uint8Array<ArrayBufferLike>>;
457
+ owner: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
458
458
  description: z.ZodOptional<z.ZodString>;
459
459
  }, z.core.$strict>;
460
460
  headers: z.ZodArray<z.ZodTuple<[z.ZodString, z.ZodString], null>>;
@@ -466,7 +466,7 @@ export declare const AssertSchema: z.ZodUnion<readonly [z.ZodObject<{
466
466
  br: "br";
467
467
  }>, z.ZodObject<{
468
468
  modified: z.ZodBigInt;
469
- content_chunks: z.ZodArray<z.ZodCustom<Uint8Array<ArrayBufferLike>, Uint8Array<ArrayBufferLike>>>;
469
+ content_chunks: z.ZodArray<z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>>;
470
470
  total_length: z.ZodBigInt;
471
471
  sha256: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
472
472
  }, z.core.$strip>], null>>;
@@ -480,7 +480,7 @@ export declare const AssertSchema: z.ZodUnion<readonly [z.ZodObject<{
480
480
  full_path: z.ZodString;
481
481
  token: z.ZodOptional<z.ZodString>;
482
482
  collection: z.ZodString;
483
- owner: z.ZodCustom<Uint8Array<ArrayBufferLike>, Uint8Array<ArrayBufferLike>>;
483
+ owner: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
484
484
  description: z.ZodOptional<z.ZodString>;
485
485
  }, z.core.$strict>;
486
486
  reference_id: z.ZodOptional<z.ZodBigInt>;
@@ -503,14 +503,14 @@ export declare const AssertSchema: z.ZodUnion<readonly [z.ZodObject<{
503
503
  }, z.core.$strict>, z.ZodObject<{
504
504
  collections: z.ZodReadonly<z.ZodArray<z.ZodString>>;
505
505
  assert: z.ZodCustom<z.core.$InferInnerFunctionType<z.ZodTuple<[z.ZodObject<{
506
- caller: z.ZodCustom<Uint8Array<ArrayBufferLike>, Uint8Array<ArrayBufferLike>>;
506
+ caller: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
507
507
  data: z.ZodObject<{
508
508
  key: z.ZodObject<{
509
509
  name: z.ZodString;
510
510
  full_path: z.ZodString;
511
511
  token: z.ZodOptional<z.ZodString>;
512
512
  collection: z.ZodString;
513
- owner: z.ZodCustom<Uint8Array<ArrayBufferLike>, Uint8Array<ArrayBufferLike>>;
513
+ owner: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
514
514
  description: z.ZodOptional<z.ZodString>;
515
515
  }, z.core.$strict>;
516
516
  headers: z.ZodArray<z.ZodTuple<[z.ZodString, z.ZodString], null>>;
@@ -522,7 +522,7 @@ export declare const AssertSchema: z.ZodUnion<readonly [z.ZodObject<{
522
522
  br: "br";
523
523
  }>, z.ZodObject<{
524
524
  modified: z.ZodBigInt;
525
- content_chunks: z.ZodArray<z.ZodCustom<Uint8Array<ArrayBufferLike>, Uint8Array<ArrayBufferLike>>>;
525
+ content_chunks: z.ZodArray<z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>>;
526
526
  total_length: z.ZodBigInt;
527
527
  sha256: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
528
528
  }, z.core.$strip>], null>>;
@@ -531,14 +531,14 @@ export declare const AssertSchema: z.ZodUnion<readonly [z.ZodObject<{
531
531
  version: z.ZodOptional<z.ZodBigInt>;
532
532
  }, z.core.$strict>;
533
533
  }, z.core.$strict>], null>, z.ZodVoid>, z.core.$InferInnerFunctionType<z.ZodTuple<[z.ZodObject<{
534
- caller: z.ZodCustom<Uint8Array<ArrayBufferLike>, Uint8Array<ArrayBufferLike>>;
534
+ caller: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
535
535
  data: z.ZodObject<{
536
536
  key: z.ZodObject<{
537
537
  name: z.ZodString;
538
538
  full_path: z.ZodString;
539
539
  token: z.ZodOptional<z.ZodString>;
540
540
  collection: z.ZodString;
541
- owner: z.ZodCustom<Uint8Array<ArrayBufferLike>, Uint8Array<ArrayBufferLike>>;
541
+ owner: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
542
542
  description: z.ZodOptional<z.ZodString>;
543
543
  }, z.core.$strict>;
544
544
  headers: z.ZodArray<z.ZodTuple<[z.ZodString, z.ZodString], null>>;
@@ -550,7 +550,7 @@ export declare const AssertSchema: z.ZodUnion<readonly [z.ZodObject<{
550
550
  br: "br";
551
551
  }>, z.ZodObject<{
552
552
  modified: z.ZodBigInt;
553
- content_chunks: z.ZodArray<z.ZodCustom<Uint8Array<ArrayBufferLike>, Uint8Array<ArrayBufferLike>>>;
553
+ content_chunks: z.ZodArray<z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>>;
554
554
  total_length: z.ZodBigInt;
555
555
  sha256: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
556
556
  }, z.core.$strip>], null>>;