@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
package/hooks/hooks.d.ts CHANGED
@@ -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 RunFunction } from './schemas/context';
4
5
  import { type OnDeleteDocContext, type OnDeleteFilteredDocsContext, type OnDeleteManyDocsContext, type OnSetDocContext, type OnSetManyDocsContext } from './schemas/db/context';
5
- import { SatelliteEnvSchema } from './schemas/satellite.env';
6
6
  import { type OnDeleteAssetContext, type OnDeleteFilteredAssetsContext, type OnDeleteManyAssetsContext, type OnUploadAssetContext } from './schemas/storage/context';
7
7
  /**
8
8
  * A generic schema for defining hooks related to collections.
@@ -24,22 +24,22 @@ export type OnHook<T> = Collections & {
24
24
  export declare const OnSetDocSchema: z.ZodObject<{
25
25
  collections: z.ZodReadonly<z.ZodArray<z.ZodString>>;
26
26
  run: z.ZodCustom<z.core.$InferInnerFunctionType<z.ZodTuple<[z.ZodObject<{
27
- caller: z.ZodCustom<Uint8Array<ArrayBufferLike>, Uint8Array<ArrayBufferLike>>;
27
+ caller: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
28
28
  data: z.ZodObject<{
29
29
  collection: z.ZodString;
30
30
  key: z.ZodString;
31
31
  data: z.ZodObject<{
32
32
  before: z.ZodOptional<z.ZodObject<{
33
- owner: z.ZodCustom<Uint8Array<ArrayBufferLike>, Uint8Array<ArrayBufferLike>>;
34
- data: z.ZodCustom<Uint8Array<ArrayBufferLike>, Uint8Array<ArrayBufferLike>>;
33
+ owner: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
34
+ data: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
35
35
  description: z.ZodOptional<z.ZodString>;
36
36
  created_at: z.ZodBigInt;
37
37
  updated_at: z.ZodBigInt;
38
38
  version: z.ZodOptional<z.ZodBigInt>;
39
39
  }, z.core.$strict>>;
40
40
  after: z.ZodObject<{
41
- owner: z.ZodCustom<Uint8Array<ArrayBufferLike>, Uint8Array<ArrayBufferLike>>;
42
- data: z.ZodCustom<Uint8Array<ArrayBufferLike>, Uint8Array<ArrayBufferLike>>;
41
+ owner: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
42
+ data: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
43
43
  description: z.ZodOptional<z.ZodString>;
44
44
  created_at: z.ZodBigInt;
45
45
  updated_at: z.ZodBigInt;
@@ -48,22 +48,22 @@ export declare const OnSetDocSchema: z.ZodObject<{
48
48
  }, z.core.$strict>;
49
49
  }, z.core.$strict>;
50
50
  }, z.core.$strict>], null>, z.ZodUnion<[z.ZodPromise<z.ZodVoid>, z.ZodVoid]>>, z.core.$InferInnerFunctionType<z.ZodTuple<[z.ZodObject<{
51
- caller: z.ZodCustom<Uint8Array<ArrayBufferLike>, Uint8Array<ArrayBufferLike>>;
51
+ caller: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
52
52
  data: z.ZodObject<{
53
53
  collection: z.ZodString;
54
54
  key: z.ZodString;
55
55
  data: z.ZodObject<{
56
56
  before: z.ZodOptional<z.ZodObject<{
57
- owner: z.ZodCustom<Uint8Array<ArrayBufferLike>, Uint8Array<ArrayBufferLike>>;
58
- data: z.ZodCustom<Uint8Array<ArrayBufferLike>, Uint8Array<ArrayBufferLike>>;
57
+ owner: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
58
+ data: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
59
59
  description: z.ZodOptional<z.ZodString>;
60
60
  created_at: z.ZodBigInt;
61
61
  updated_at: z.ZodBigInt;
62
62
  version: z.ZodOptional<z.ZodBigInt>;
63
63
  }, z.core.$strict>>;
64
64
  after: z.ZodObject<{
65
- owner: z.ZodCustom<Uint8Array<ArrayBufferLike>, Uint8Array<ArrayBufferLike>>;
66
- data: z.ZodCustom<Uint8Array<ArrayBufferLike>, Uint8Array<ArrayBufferLike>>;
65
+ owner: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
66
+ data: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
67
67
  description: z.ZodOptional<z.ZodString>;
68
68
  created_at: z.ZodBigInt;
69
69
  updated_at: z.ZodBigInt;
@@ -83,22 +83,22 @@ export type OnSetDoc = OnHook<OnSetDocContext>;
83
83
  export declare const OnSetManyDocsSchema: z.ZodObject<{
84
84
  collections: z.ZodReadonly<z.ZodArray<z.ZodString>>;
85
85
  run: z.ZodCustom<z.core.$InferInnerFunctionType<z.ZodTuple<[z.ZodObject<{
86
- caller: z.ZodCustom<Uint8Array<ArrayBufferLike>, Uint8Array<ArrayBufferLike>>;
86
+ caller: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
87
87
  data: z.ZodArray<z.ZodObject<{
88
88
  collection: z.ZodString;
89
89
  key: z.ZodString;
90
90
  data: z.ZodObject<{
91
91
  before: z.ZodOptional<z.ZodObject<{
92
- owner: z.ZodCustom<Uint8Array<ArrayBufferLike>, Uint8Array<ArrayBufferLike>>;
93
- data: z.ZodCustom<Uint8Array<ArrayBufferLike>, Uint8Array<ArrayBufferLike>>;
92
+ owner: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
93
+ data: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
94
94
  description: z.ZodOptional<z.ZodString>;
95
95
  created_at: z.ZodBigInt;
96
96
  updated_at: z.ZodBigInt;
97
97
  version: z.ZodOptional<z.ZodBigInt>;
98
98
  }, z.core.$strict>>;
99
99
  after: z.ZodObject<{
100
- owner: z.ZodCustom<Uint8Array<ArrayBufferLike>, Uint8Array<ArrayBufferLike>>;
101
- data: z.ZodCustom<Uint8Array<ArrayBufferLike>, Uint8Array<ArrayBufferLike>>;
100
+ owner: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
101
+ data: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
102
102
  description: z.ZodOptional<z.ZodString>;
103
103
  created_at: z.ZodBigInt;
104
104
  updated_at: z.ZodBigInt;
@@ -107,22 +107,22 @@ export declare const OnSetManyDocsSchema: z.ZodObject<{
107
107
  }, z.core.$strict>;
108
108
  }, z.core.$strict>>;
109
109
  }, z.core.$strict>], null>, z.ZodUnion<[z.ZodPromise<z.ZodVoid>, z.ZodVoid]>>, z.core.$InferInnerFunctionType<z.ZodTuple<[z.ZodObject<{
110
- caller: z.ZodCustom<Uint8Array<ArrayBufferLike>, Uint8Array<ArrayBufferLike>>;
110
+ caller: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
111
111
  data: z.ZodArray<z.ZodObject<{
112
112
  collection: z.ZodString;
113
113
  key: z.ZodString;
114
114
  data: z.ZodObject<{
115
115
  before: z.ZodOptional<z.ZodObject<{
116
- owner: z.ZodCustom<Uint8Array<ArrayBufferLike>, Uint8Array<ArrayBufferLike>>;
117
- data: z.ZodCustom<Uint8Array<ArrayBufferLike>, Uint8Array<ArrayBufferLike>>;
116
+ owner: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
117
+ data: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
118
118
  description: z.ZodOptional<z.ZodString>;
119
119
  created_at: z.ZodBigInt;
120
120
  updated_at: z.ZodBigInt;
121
121
  version: z.ZodOptional<z.ZodBigInt>;
122
122
  }, z.core.$strict>>;
123
123
  after: z.ZodObject<{
124
- owner: z.ZodCustom<Uint8Array<ArrayBufferLike>, Uint8Array<ArrayBufferLike>>;
125
- data: z.ZodCustom<Uint8Array<ArrayBufferLike>, Uint8Array<ArrayBufferLike>>;
124
+ owner: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
125
+ data: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
126
126
  description: z.ZodOptional<z.ZodString>;
127
127
  created_at: z.ZodBigInt;
128
128
  updated_at: z.ZodBigInt;
@@ -142,13 +142,13 @@ export type OnSetManyDocs = OnHook<OnSetManyDocsContext>;
142
142
  export declare const OnDeleteDocSchema: z.ZodObject<{
143
143
  collections: z.ZodReadonly<z.ZodArray<z.ZodString>>;
144
144
  run: z.ZodCustom<z.core.$InferInnerFunctionType<z.ZodTuple<[z.ZodObject<{
145
- caller: z.ZodCustom<Uint8Array<ArrayBufferLike>, Uint8Array<ArrayBufferLike>>;
145
+ caller: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
146
146
  data: z.ZodObject<{
147
147
  collection: z.ZodString;
148
148
  key: z.ZodString;
149
149
  data: z.ZodOptional<z.ZodObject<{
150
- owner: z.ZodCustom<Uint8Array<ArrayBufferLike>, Uint8Array<ArrayBufferLike>>;
151
- data: z.ZodCustom<Uint8Array<ArrayBufferLike>, Uint8Array<ArrayBufferLike>>;
150
+ owner: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
151
+ data: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
152
152
  description: z.ZodOptional<z.ZodString>;
153
153
  created_at: z.ZodBigInt;
154
154
  updated_at: z.ZodBigInt;
@@ -156,13 +156,13 @@ export declare const OnDeleteDocSchema: z.ZodObject<{
156
156
  }, z.core.$strict>>;
157
157
  }, z.core.$strict>;
158
158
  }, z.core.$strict>], null>, z.ZodUnion<[z.ZodPromise<z.ZodVoid>, z.ZodVoid]>>, z.core.$InferInnerFunctionType<z.ZodTuple<[z.ZodObject<{
159
- caller: z.ZodCustom<Uint8Array<ArrayBufferLike>, Uint8Array<ArrayBufferLike>>;
159
+ caller: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
160
160
  data: z.ZodObject<{
161
161
  collection: z.ZodString;
162
162
  key: z.ZodString;
163
163
  data: z.ZodOptional<z.ZodObject<{
164
- owner: z.ZodCustom<Uint8Array<ArrayBufferLike>, Uint8Array<ArrayBufferLike>>;
165
- data: z.ZodCustom<Uint8Array<ArrayBufferLike>, Uint8Array<ArrayBufferLike>>;
164
+ owner: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
165
+ data: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
166
166
  description: z.ZodOptional<z.ZodString>;
167
167
  created_at: z.ZodBigInt;
168
168
  updated_at: z.ZodBigInt;
@@ -181,13 +181,13 @@ export type OnDeleteDoc = OnHook<OnDeleteDocContext>;
181
181
  export declare const OnDeleteManyDocsSchema: z.ZodObject<{
182
182
  collections: z.ZodReadonly<z.ZodArray<z.ZodString>>;
183
183
  run: z.ZodCustom<z.core.$InferInnerFunctionType<z.ZodTuple<[z.ZodObject<{
184
- caller: z.ZodCustom<Uint8Array<ArrayBufferLike>, Uint8Array<ArrayBufferLike>>;
184
+ caller: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
185
185
  data: z.ZodArray<z.ZodObject<{
186
186
  collection: z.ZodString;
187
187
  key: z.ZodString;
188
188
  data: z.ZodOptional<z.ZodObject<{
189
- owner: z.ZodCustom<Uint8Array<ArrayBufferLike>, Uint8Array<ArrayBufferLike>>;
190
- data: z.ZodCustom<Uint8Array<ArrayBufferLike>, Uint8Array<ArrayBufferLike>>;
189
+ owner: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
190
+ data: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
191
191
  description: z.ZodOptional<z.ZodString>;
192
192
  created_at: z.ZodBigInt;
193
193
  updated_at: z.ZodBigInt;
@@ -195,13 +195,13 @@ export declare const OnDeleteManyDocsSchema: z.ZodObject<{
195
195
  }, z.core.$strict>>;
196
196
  }, z.core.$strict>>;
197
197
  }, z.core.$strict>], null>, z.ZodUnion<[z.ZodPromise<z.ZodVoid>, z.ZodVoid]>>, z.core.$InferInnerFunctionType<z.ZodTuple<[z.ZodObject<{
198
- caller: z.ZodCustom<Uint8Array<ArrayBufferLike>, Uint8Array<ArrayBufferLike>>;
198
+ caller: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
199
199
  data: z.ZodArray<z.ZodObject<{
200
200
  collection: z.ZodString;
201
201
  key: z.ZodString;
202
202
  data: z.ZodOptional<z.ZodObject<{
203
- owner: z.ZodCustom<Uint8Array<ArrayBufferLike>, Uint8Array<ArrayBufferLike>>;
204
- data: z.ZodCustom<Uint8Array<ArrayBufferLike>, Uint8Array<ArrayBufferLike>>;
203
+ owner: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
204
+ data: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
205
205
  description: z.ZodOptional<z.ZodString>;
206
206
  created_at: z.ZodBigInt;
207
207
  updated_at: z.ZodBigInt;
@@ -220,13 +220,13 @@ export type OnDeleteManyDocs = OnHook<OnDeleteManyDocsContext>;
220
220
  export declare const OnDeleteFilteredDocsSchema: z.ZodObject<{
221
221
  collections: z.ZodReadonly<z.ZodArray<z.ZodString>>;
222
222
  run: z.ZodCustom<z.core.$InferInnerFunctionType<z.ZodTuple<[z.ZodObject<{
223
- caller: z.ZodCustom<Uint8Array<ArrayBufferLike>, Uint8Array<ArrayBufferLike>>;
223
+ caller: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
224
224
  data: z.ZodArray<z.ZodObject<{
225
225
  collection: z.ZodString;
226
226
  key: z.ZodString;
227
227
  data: z.ZodOptional<z.ZodObject<{
228
- owner: z.ZodCustom<Uint8Array<ArrayBufferLike>, Uint8Array<ArrayBufferLike>>;
229
- data: z.ZodCustom<Uint8Array<ArrayBufferLike>, Uint8Array<ArrayBufferLike>>;
228
+ owner: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
229
+ data: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
230
230
  description: z.ZodOptional<z.ZodString>;
231
231
  created_at: z.ZodBigInt;
232
232
  updated_at: z.ZodBigInt;
@@ -234,13 +234,13 @@ export declare const OnDeleteFilteredDocsSchema: z.ZodObject<{
234
234
  }, z.core.$strict>>;
235
235
  }, z.core.$strict>>;
236
236
  }, z.core.$strict>], null>, z.ZodUnion<[z.ZodPromise<z.ZodVoid>, z.ZodVoid]>>, z.core.$InferInnerFunctionType<z.ZodTuple<[z.ZodObject<{
237
- caller: z.ZodCustom<Uint8Array<ArrayBufferLike>, Uint8Array<ArrayBufferLike>>;
237
+ caller: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
238
238
  data: z.ZodArray<z.ZodObject<{
239
239
  collection: z.ZodString;
240
240
  key: z.ZodString;
241
241
  data: z.ZodOptional<z.ZodObject<{
242
- owner: z.ZodCustom<Uint8Array<ArrayBufferLike>, Uint8Array<ArrayBufferLike>>;
243
- data: z.ZodCustom<Uint8Array<ArrayBufferLike>, Uint8Array<ArrayBufferLike>>;
242
+ owner: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
243
+ data: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
244
244
  description: z.ZodOptional<z.ZodString>;
245
245
  created_at: z.ZodBigInt;
246
246
  updated_at: z.ZodBigInt;
@@ -259,14 +259,14 @@ export type OnDeleteFilteredDocs = OnHook<OnDeleteFilteredDocsContext>;
259
259
  export declare const OnUploadAssetSchema: z.ZodObject<{
260
260
  collections: z.ZodReadonly<z.ZodArray<z.ZodString>>;
261
261
  run: z.ZodCustom<z.core.$InferInnerFunctionType<z.ZodTuple<[z.ZodObject<{
262
- caller: z.ZodCustom<Uint8Array<ArrayBufferLike>, Uint8Array<ArrayBufferLike>>;
262
+ caller: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
263
263
  data: z.ZodObject<{
264
264
  key: z.ZodObject<{
265
265
  name: z.ZodString;
266
266
  full_path: z.ZodString;
267
267
  token: z.ZodOptional<z.ZodString>;
268
268
  collection: z.ZodString;
269
- owner: z.ZodCustom<Uint8Array<ArrayBufferLike>, Uint8Array<ArrayBufferLike>>;
269
+ owner: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
270
270
  description: z.ZodOptional<z.ZodString>;
271
271
  }, z.core.$strict>;
272
272
  headers: z.ZodArray<z.ZodTuple<[z.ZodString, z.ZodString], null>>;
@@ -278,7 +278,7 @@ export declare const OnUploadAssetSchema: z.ZodObject<{
278
278
  br: "br";
279
279
  }>, z.ZodObject<{
280
280
  modified: z.ZodBigInt;
281
- content_chunks: z.ZodArray<z.ZodCustom<Uint8Array<ArrayBufferLike>, Uint8Array<ArrayBufferLike>>>;
281
+ content_chunks: z.ZodArray<z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>>;
282
282
  total_length: z.ZodBigInt;
283
283
  sha256: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
284
284
  }, z.core.$strip>], null>>;
@@ -287,14 +287,14 @@ export declare const OnUploadAssetSchema: z.ZodObject<{
287
287
  version: z.ZodOptional<z.ZodBigInt>;
288
288
  }, z.core.$strict>;
289
289
  }, z.core.$strict>], null>, z.ZodUnion<[z.ZodPromise<z.ZodVoid>, z.ZodVoid]>>, z.core.$InferInnerFunctionType<z.ZodTuple<[z.ZodObject<{
290
- caller: z.ZodCustom<Uint8Array<ArrayBufferLike>, Uint8Array<ArrayBufferLike>>;
290
+ caller: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
291
291
  data: z.ZodObject<{
292
292
  key: z.ZodObject<{
293
293
  name: z.ZodString;
294
294
  full_path: z.ZodString;
295
295
  token: z.ZodOptional<z.ZodString>;
296
296
  collection: z.ZodString;
297
- owner: z.ZodCustom<Uint8Array<ArrayBufferLike>, Uint8Array<ArrayBufferLike>>;
297
+ owner: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
298
298
  description: z.ZodOptional<z.ZodString>;
299
299
  }, z.core.$strict>;
300
300
  headers: z.ZodArray<z.ZodTuple<[z.ZodString, z.ZodString], null>>;
@@ -306,7 +306,7 @@ export declare const OnUploadAssetSchema: z.ZodObject<{
306
306
  br: "br";
307
307
  }>, z.ZodObject<{
308
308
  modified: z.ZodBigInt;
309
- content_chunks: z.ZodArray<z.ZodCustom<Uint8Array<ArrayBufferLike>, Uint8Array<ArrayBufferLike>>>;
309
+ content_chunks: z.ZodArray<z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>>;
310
310
  total_length: z.ZodBigInt;
311
311
  sha256: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
312
312
  }, z.core.$strip>], null>>;
@@ -326,14 +326,14 @@ export type OnUploadAsset = OnHook<OnUploadAssetContext>;
326
326
  export declare const OnDeleteAssetSchema: z.ZodObject<{
327
327
  collections: z.ZodReadonly<z.ZodArray<z.ZodString>>;
328
328
  run: z.ZodCustom<z.core.$InferInnerFunctionType<z.ZodTuple<[z.ZodObject<{
329
- caller: z.ZodCustom<Uint8Array<ArrayBufferLike>, Uint8Array<ArrayBufferLike>>;
329
+ caller: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
330
330
  data: z.ZodOptional<z.ZodObject<{
331
331
  key: z.ZodObject<{
332
332
  name: z.ZodString;
333
333
  full_path: z.ZodString;
334
334
  token: z.ZodOptional<z.ZodString>;
335
335
  collection: z.ZodString;
336
- owner: z.ZodCustom<Uint8Array<ArrayBufferLike>, Uint8Array<ArrayBufferLike>>;
336
+ owner: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
337
337
  description: z.ZodOptional<z.ZodString>;
338
338
  }, z.core.$strict>;
339
339
  headers: z.ZodArray<z.ZodTuple<[z.ZodString, z.ZodString], null>>;
@@ -345,7 +345,7 @@ export declare const OnDeleteAssetSchema: z.ZodObject<{
345
345
  br: "br";
346
346
  }>, z.ZodObject<{
347
347
  modified: z.ZodBigInt;
348
- content_chunks: z.ZodArray<z.ZodCustom<Uint8Array<ArrayBufferLike>, Uint8Array<ArrayBufferLike>>>;
348
+ content_chunks: z.ZodArray<z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>>;
349
349
  total_length: z.ZodBigInt;
350
350
  sha256: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
351
351
  }, z.core.$strip>], null>>;
@@ -354,14 +354,14 @@ export declare const OnDeleteAssetSchema: z.ZodObject<{
354
354
  version: z.ZodOptional<z.ZodBigInt>;
355
355
  }, z.core.$strict>>;
356
356
  }, z.core.$strict>], null>, z.ZodUnion<[z.ZodPromise<z.ZodVoid>, z.ZodVoid]>>, z.core.$InferInnerFunctionType<z.ZodTuple<[z.ZodObject<{
357
- caller: z.ZodCustom<Uint8Array<ArrayBufferLike>, Uint8Array<ArrayBufferLike>>;
357
+ caller: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
358
358
  data: z.ZodOptional<z.ZodObject<{
359
359
  key: z.ZodObject<{
360
360
  name: z.ZodString;
361
361
  full_path: z.ZodString;
362
362
  token: z.ZodOptional<z.ZodString>;
363
363
  collection: z.ZodString;
364
- owner: z.ZodCustom<Uint8Array<ArrayBufferLike>, Uint8Array<ArrayBufferLike>>;
364
+ owner: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
365
365
  description: z.ZodOptional<z.ZodString>;
366
366
  }, z.core.$strict>;
367
367
  headers: z.ZodArray<z.ZodTuple<[z.ZodString, z.ZodString], null>>;
@@ -373,7 +373,7 @@ export declare const OnDeleteAssetSchema: z.ZodObject<{
373
373
  br: "br";
374
374
  }>, z.ZodObject<{
375
375
  modified: z.ZodBigInt;
376
- content_chunks: z.ZodArray<z.ZodCustom<Uint8Array<ArrayBufferLike>, Uint8Array<ArrayBufferLike>>>;
376
+ content_chunks: z.ZodArray<z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>>;
377
377
  total_length: z.ZodBigInt;
378
378
  sha256: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
379
379
  }, z.core.$strip>], null>>;
@@ -393,14 +393,14 @@ export type OnDeleteAsset = OnHook<OnDeleteAssetContext>;
393
393
  export declare const OnDeleteManyAssetsSchema: z.ZodObject<{
394
394
  collections: z.ZodReadonly<z.ZodArray<z.ZodString>>;
395
395
  run: z.ZodCustom<z.core.$InferInnerFunctionType<z.ZodTuple<[z.ZodObject<{
396
- caller: z.ZodCustom<Uint8Array<ArrayBufferLike>, Uint8Array<ArrayBufferLike>>;
396
+ caller: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
397
397
  data: z.ZodArray<z.ZodOptional<z.ZodObject<{
398
398
  key: z.ZodObject<{
399
399
  name: z.ZodString;
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 OnDeleteManyAssetsSchema: 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>>;
@@ -421,14 +421,14 @@ export declare const OnDeleteManyAssetsSchema: z.ZodObject<{
421
421
  version: z.ZodOptional<z.ZodBigInt>;
422
422
  }, z.core.$strict>>>;
423
423
  }, z.core.$strict>], null>, z.ZodUnion<[z.ZodPromise<z.ZodVoid>, z.ZodVoid]>>, z.core.$InferInnerFunctionType<z.ZodTuple<[z.ZodObject<{
424
- caller: z.ZodCustom<Uint8Array<ArrayBufferLike>, Uint8Array<ArrayBufferLike>>;
424
+ caller: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
425
425
  data: z.ZodArray<z.ZodOptional<z.ZodObject<{
426
426
  key: z.ZodObject<{
427
427
  name: z.ZodString;
428
428
  full_path: z.ZodString;
429
429
  token: z.ZodOptional<z.ZodString>;
430
430
  collection: z.ZodString;
431
- owner: z.ZodCustom<Uint8Array<ArrayBufferLike>, Uint8Array<ArrayBufferLike>>;
431
+ owner: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
432
432
  description: z.ZodOptional<z.ZodString>;
433
433
  }, z.core.$strict>;
434
434
  headers: z.ZodArray<z.ZodTuple<[z.ZodString, z.ZodString], null>>;
@@ -440,7 +440,7 @@ export declare const OnDeleteManyAssetsSchema: z.ZodObject<{
440
440
  br: "br";
441
441
  }>, z.ZodObject<{
442
442
  modified: z.ZodBigInt;
443
- content_chunks: z.ZodArray<z.ZodCustom<Uint8Array<ArrayBufferLike>, Uint8Array<ArrayBufferLike>>>;
443
+ content_chunks: z.ZodArray<z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>>;
444
444
  total_length: z.ZodBigInt;
445
445
  sha256: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
446
446
  }, z.core.$strip>], null>>;
@@ -460,14 +460,14 @@ export type OnDeleteManyAssets = OnHook<OnDeleteManyAssetsContext>;
460
460
  export declare const OnDeleteFilteredAssetsSchema: z.ZodObject<{
461
461
  collections: z.ZodReadonly<z.ZodArray<z.ZodString>>;
462
462
  run: z.ZodCustom<z.core.$InferInnerFunctionType<z.ZodTuple<[z.ZodObject<{
463
- caller: z.ZodCustom<Uint8Array<ArrayBufferLike>, Uint8Array<ArrayBufferLike>>;
463
+ caller: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
464
464
  data: z.ZodArray<z.ZodOptional<z.ZodObject<{
465
465
  key: z.ZodObject<{
466
466
  name: z.ZodString;
467
467
  full_path: z.ZodString;
468
468
  token: z.ZodOptional<z.ZodString>;
469
469
  collection: z.ZodString;
470
- owner: z.ZodCustom<Uint8Array<ArrayBufferLike>, Uint8Array<ArrayBufferLike>>;
470
+ owner: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
471
471
  description: z.ZodOptional<z.ZodString>;
472
472
  }, z.core.$strict>;
473
473
  headers: z.ZodArray<z.ZodTuple<[z.ZodString, z.ZodString], null>>;
@@ -479,7 +479,7 @@ export declare const OnDeleteFilteredAssetsSchema: z.ZodObject<{
479
479
  br: "br";
480
480
  }>, z.ZodObject<{
481
481
  modified: z.ZodBigInt;
482
- content_chunks: z.ZodArray<z.ZodCustom<Uint8Array<ArrayBufferLike>, Uint8Array<ArrayBufferLike>>>;
482
+ content_chunks: z.ZodArray<z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>>;
483
483
  total_length: z.ZodBigInt;
484
484
  sha256: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
485
485
  }, z.core.$strip>], null>>;
@@ -488,14 +488,14 @@ export declare const OnDeleteFilteredAssetsSchema: z.ZodObject<{
488
488
  version: z.ZodOptional<z.ZodBigInt>;
489
489
  }, z.core.$strict>>>;
490
490
  }, z.core.$strict>], null>, z.ZodUnion<[z.ZodPromise<z.ZodVoid>, z.ZodVoid]>>, z.core.$InferInnerFunctionType<z.ZodTuple<[z.ZodObject<{
491
- caller: z.ZodCustom<Uint8Array<ArrayBufferLike>, Uint8Array<ArrayBufferLike>>;
491
+ caller: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
492
492
  data: z.ZodArray<z.ZodOptional<z.ZodObject<{
493
493
  key: z.ZodObject<{
494
494
  name: z.ZodString;
495
495
  full_path: z.ZodString;
496
496
  token: z.ZodOptional<z.ZodString>;
497
497
  collection: z.ZodString;
498
- owner: z.ZodCustom<Uint8Array<ArrayBufferLike>, Uint8Array<ArrayBufferLike>>;
498
+ owner: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
499
499
  description: z.ZodOptional<z.ZodString>;
500
500
  }, z.core.$strict>;
501
501
  headers: z.ZodArray<z.ZodTuple<[z.ZodString, z.ZodString], null>>;
@@ -507,7 +507,7 @@ export declare const OnDeleteFilteredAssetsSchema: z.ZodObject<{
507
507
  br: "br";
508
508
  }>, z.ZodObject<{
509
509
  modified: z.ZodBigInt;
510
- content_chunks: z.ZodArray<z.ZodCustom<Uint8Array<ArrayBufferLike>, Uint8Array<ArrayBufferLike>>>;
510
+ content_chunks: z.ZodArray<z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>>;
511
511
  total_length: z.ZodBigInt;
512
512
  sha256: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
513
513
  }, z.core.$strip>], null>>;
@@ -527,22 +527,22 @@ export type OnDeleteFilteredAssets = OnHook<OnDeleteFilteredAssetsContext>;
527
527
  export declare const HookSchema: z.ZodUnion<readonly [z.ZodObject<{
528
528
  collections: z.ZodReadonly<z.ZodArray<z.ZodString>>;
529
529
  run: z.ZodCustom<z.core.$InferInnerFunctionType<z.ZodTuple<[z.ZodObject<{
530
- caller: z.ZodCustom<Uint8Array<ArrayBufferLike>, Uint8Array<ArrayBufferLike>>;
530
+ caller: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
531
531
  data: z.ZodObject<{
532
532
  collection: z.ZodString;
533
533
  key: z.ZodString;
534
534
  data: z.ZodObject<{
535
535
  before: z.ZodOptional<z.ZodObject<{
536
- owner: z.ZodCustom<Uint8Array<ArrayBufferLike>, Uint8Array<ArrayBufferLike>>;
537
- data: z.ZodCustom<Uint8Array<ArrayBufferLike>, Uint8Array<ArrayBufferLike>>;
536
+ owner: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
537
+ data: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
538
538
  description: z.ZodOptional<z.ZodString>;
539
539
  created_at: z.ZodBigInt;
540
540
  updated_at: z.ZodBigInt;
541
541
  version: z.ZodOptional<z.ZodBigInt>;
542
542
  }, z.core.$strict>>;
543
543
  after: z.ZodObject<{
544
- owner: z.ZodCustom<Uint8Array<ArrayBufferLike>, Uint8Array<ArrayBufferLike>>;
545
- data: z.ZodCustom<Uint8Array<ArrayBufferLike>, Uint8Array<ArrayBufferLike>>;
544
+ owner: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
545
+ data: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
546
546
  description: z.ZodOptional<z.ZodString>;
547
547
  created_at: z.ZodBigInt;
548
548
  updated_at: z.ZodBigInt;
@@ -551,22 +551,22 @@ export declare const HookSchema: z.ZodUnion<readonly [z.ZodObject<{
551
551
  }, z.core.$strict>;
552
552
  }, z.core.$strict>;
553
553
  }, z.core.$strict>], null>, z.ZodUnion<[z.ZodPromise<z.ZodVoid>, z.ZodVoid]>>, z.core.$InferInnerFunctionType<z.ZodTuple<[z.ZodObject<{
554
- caller: z.ZodCustom<Uint8Array<ArrayBufferLike>, Uint8Array<ArrayBufferLike>>;
554
+ caller: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
555
555
  data: z.ZodObject<{
556
556
  collection: z.ZodString;
557
557
  key: z.ZodString;
558
558
  data: z.ZodObject<{
559
559
  before: z.ZodOptional<z.ZodObject<{
560
- owner: z.ZodCustom<Uint8Array<ArrayBufferLike>, Uint8Array<ArrayBufferLike>>;
561
- data: z.ZodCustom<Uint8Array<ArrayBufferLike>, Uint8Array<ArrayBufferLike>>;
560
+ owner: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
561
+ data: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
562
562
  description: z.ZodOptional<z.ZodString>;
563
563
  created_at: z.ZodBigInt;
564
564
  updated_at: z.ZodBigInt;
565
565
  version: z.ZodOptional<z.ZodBigInt>;
566
566
  }, z.core.$strict>>;
567
567
  after: z.ZodObject<{
568
- owner: z.ZodCustom<Uint8Array<ArrayBufferLike>, Uint8Array<ArrayBufferLike>>;
569
- data: z.ZodCustom<Uint8Array<ArrayBufferLike>, Uint8Array<ArrayBufferLike>>;
568
+ owner: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
569
+ data: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
570
570
  description: z.ZodOptional<z.ZodString>;
571
571
  created_at: z.ZodBigInt;
572
572
  updated_at: z.ZodBigInt;
@@ -578,22 +578,22 @@ export declare const HookSchema: z.ZodUnion<readonly [z.ZodObject<{
578
578
  }, z.core.$strict>, z.ZodObject<{
579
579
  collections: z.ZodReadonly<z.ZodArray<z.ZodString>>;
580
580
  run: z.ZodCustom<z.core.$InferInnerFunctionType<z.ZodTuple<[z.ZodObject<{
581
- caller: z.ZodCustom<Uint8Array<ArrayBufferLike>, Uint8Array<ArrayBufferLike>>;
581
+ caller: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
582
582
  data: z.ZodArray<z.ZodObject<{
583
583
  collection: z.ZodString;
584
584
  key: z.ZodString;
585
585
  data: z.ZodObject<{
586
586
  before: z.ZodOptional<z.ZodObject<{
587
- owner: z.ZodCustom<Uint8Array<ArrayBufferLike>, Uint8Array<ArrayBufferLike>>;
588
- data: z.ZodCustom<Uint8Array<ArrayBufferLike>, Uint8Array<ArrayBufferLike>>;
587
+ owner: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
588
+ data: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
589
589
  description: z.ZodOptional<z.ZodString>;
590
590
  created_at: z.ZodBigInt;
591
591
  updated_at: z.ZodBigInt;
592
592
  version: z.ZodOptional<z.ZodBigInt>;
593
593
  }, z.core.$strict>>;
594
594
  after: z.ZodObject<{
595
- owner: z.ZodCustom<Uint8Array<ArrayBufferLike>, Uint8Array<ArrayBufferLike>>;
596
- data: z.ZodCustom<Uint8Array<ArrayBufferLike>, Uint8Array<ArrayBufferLike>>;
595
+ owner: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
596
+ data: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
597
597
  description: z.ZodOptional<z.ZodString>;
598
598
  created_at: z.ZodBigInt;
599
599
  updated_at: z.ZodBigInt;
@@ -602,22 +602,22 @@ export declare const HookSchema: z.ZodUnion<readonly [z.ZodObject<{
602
602
  }, z.core.$strict>;
603
603
  }, z.core.$strict>>;
604
604
  }, z.core.$strict>], null>, z.ZodUnion<[z.ZodPromise<z.ZodVoid>, z.ZodVoid]>>, z.core.$InferInnerFunctionType<z.ZodTuple<[z.ZodObject<{
605
- caller: z.ZodCustom<Uint8Array<ArrayBufferLike>, Uint8Array<ArrayBufferLike>>;
605
+ caller: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
606
606
  data: z.ZodArray<z.ZodObject<{
607
607
  collection: z.ZodString;
608
608
  key: z.ZodString;
609
609
  data: z.ZodObject<{
610
610
  before: z.ZodOptional<z.ZodObject<{
611
- owner: z.ZodCustom<Uint8Array<ArrayBufferLike>, Uint8Array<ArrayBufferLike>>;
612
- data: z.ZodCustom<Uint8Array<ArrayBufferLike>, Uint8Array<ArrayBufferLike>>;
611
+ owner: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
612
+ data: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
613
613
  description: z.ZodOptional<z.ZodString>;
614
614
  created_at: z.ZodBigInt;
615
615
  updated_at: z.ZodBigInt;
616
616
  version: z.ZodOptional<z.ZodBigInt>;
617
617
  }, z.core.$strict>>;
618
618
  after: z.ZodObject<{
619
- owner: z.ZodCustom<Uint8Array<ArrayBufferLike>, Uint8Array<ArrayBufferLike>>;
620
- data: z.ZodCustom<Uint8Array<ArrayBufferLike>, Uint8Array<ArrayBufferLike>>;
619
+ owner: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
620
+ data: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
621
621
  description: z.ZodOptional<z.ZodString>;
622
622
  created_at: z.ZodBigInt;
623
623
  updated_at: z.ZodBigInt;
@@ -627,13 +627,13 @@ export declare const HookSchema: z.ZodUnion<readonly [z.ZodObject<{
627
627
  }, z.core.$strict>>;
628
628
  }, z.core.$strict>], null>, z.ZodUnion<[z.ZodPromise<z.ZodVoid>, z.ZodVoid]>>>;
629
629
  }, z.core.$strict>, z.ZodObject<{
630
- caller: z.ZodCustom<Uint8Array<ArrayBufferLike>, Uint8Array<ArrayBufferLike>>;
630
+ caller: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
631
631
  data: z.ZodObject<{
632
632
  collection: z.ZodString;
633
633
  key: z.ZodString;
634
634
  data: z.ZodOptional<z.ZodObject<{
635
- owner: z.ZodCustom<Uint8Array<ArrayBufferLike>, Uint8Array<ArrayBufferLike>>;
636
- data: z.ZodCustom<Uint8Array<ArrayBufferLike>, Uint8Array<ArrayBufferLike>>;
635
+ owner: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
636
+ data: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
637
637
  description: z.ZodOptional<z.ZodString>;
638
638
  created_at: z.ZodBigInt;
639
639
  updated_at: z.ZodBigInt;
@@ -641,13 +641,13 @@ export declare const HookSchema: z.ZodUnion<readonly [z.ZodObject<{
641
641
  }, z.core.$strict>>;
642
642
  }, z.core.$strict>;
643
643
  }, z.core.$strict>, z.ZodObject<{
644
- caller: z.ZodCustom<Uint8Array<ArrayBufferLike>, Uint8Array<ArrayBufferLike>>;
644
+ caller: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
645
645
  data: z.ZodArray<z.ZodObject<{
646
646
  collection: z.ZodString;
647
647
  key: z.ZodString;
648
648
  data: z.ZodOptional<z.ZodObject<{
649
- owner: z.ZodCustom<Uint8Array<ArrayBufferLike>, Uint8Array<ArrayBufferLike>>;
650
- data: z.ZodCustom<Uint8Array<ArrayBufferLike>, Uint8Array<ArrayBufferLike>>;
649
+ owner: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
650
+ data: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
651
651
  description: z.ZodOptional<z.ZodString>;
652
652
  created_at: z.ZodBigInt;
653
653
  updated_at: z.ZodBigInt;
@@ -655,13 +655,13 @@ export declare const HookSchema: z.ZodUnion<readonly [z.ZodObject<{
655
655
  }, z.core.$strict>>;
656
656
  }, z.core.$strict>>;
657
657
  }, z.core.$strict>, z.ZodObject<{
658
- caller: z.ZodCustom<Uint8Array<ArrayBufferLike>, Uint8Array<ArrayBufferLike>>;
658
+ caller: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
659
659
  data: z.ZodArray<z.ZodObject<{
660
660
  collection: z.ZodString;
661
661
  key: z.ZodString;
662
662
  data: z.ZodOptional<z.ZodObject<{
663
- owner: z.ZodCustom<Uint8Array<ArrayBufferLike>, Uint8Array<ArrayBufferLike>>;
664
- data: z.ZodCustom<Uint8Array<ArrayBufferLike>, Uint8Array<ArrayBufferLike>>;
663
+ owner: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
664
+ data: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
665
665
  description: z.ZodOptional<z.ZodString>;
666
666
  created_at: z.ZodBigInt;
667
667
  updated_at: z.ZodBigInt;
@@ -671,14 +671,14 @@ export declare const HookSchema: z.ZodUnion<readonly [z.ZodObject<{
671
671
  }, z.core.$strict>, z.ZodObject<{
672
672
  collections: z.ZodReadonly<z.ZodArray<z.ZodString>>;
673
673
  run: z.ZodCustom<z.core.$InferInnerFunctionType<z.ZodTuple<[z.ZodObject<{
674
- caller: z.ZodCustom<Uint8Array<ArrayBufferLike>, Uint8Array<ArrayBufferLike>>;
674
+ caller: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
675
675
  data: z.ZodObject<{
676
676
  key: z.ZodObject<{
677
677
  name: z.ZodString;
678
678
  full_path: z.ZodString;
679
679
  token: z.ZodOptional<z.ZodString>;
680
680
  collection: z.ZodString;
681
- owner: z.ZodCustom<Uint8Array<ArrayBufferLike>, Uint8Array<ArrayBufferLike>>;
681
+ owner: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
682
682
  description: z.ZodOptional<z.ZodString>;
683
683
  }, z.core.$strict>;
684
684
  headers: z.ZodArray<z.ZodTuple<[z.ZodString, z.ZodString], null>>;
@@ -690,7 +690,7 @@ export declare const HookSchema: z.ZodUnion<readonly [z.ZodObject<{
690
690
  br: "br";
691
691
  }>, z.ZodObject<{
692
692
  modified: z.ZodBigInt;
693
- content_chunks: z.ZodArray<z.ZodCustom<Uint8Array<ArrayBufferLike>, Uint8Array<ArrayBufferLike>>>;
693
+ content_chunks: z.ZodArray<z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>>;
694
694
  total_length: z.ZodBigInt;
695
695
  sha256: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
696
696
  }, z.core.$strip>], null>>;
@@ -699,14 +699,14 @@ export declare const HookSchema: z.ZodUnion<readonly [z.ZodObject<{
699
699
  version: z.ZodOptional<z.ZodBigInt>;
700
700
  }, z.core.$strict>;
701
701
  }, z.core.$strict>], null>, z.ZodUnion<[z.ZodPromise<z.ZodVoid>, z.ZodVoid]>>, z.core.$InferInnerFunctionType<z.ZodTuple<[z.ZodObject<{
702
- caller: z.ZodCustom<Uint8Array<ArrayBufferLike>, Uint8Array<ArrayBufferLike>>;
702
+ caller: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
703
703
  data: z.ZodObject<{
704
704
  key: z.ZodObject<{
705
705
  name: z.ZodString;
706
706
  full_path: z.ZodString;
707
707
  token: z.ZodOptional<z.ZodString>;
708
708
  collection: z.ZodString;
709
- owner: z.ZodCustom<Uint8Array<ArrayBufferLike>, Uint8Array<ArrayBufferLike>>;
709
+ owner: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
710
710
  description: z.ZodOptional<z.ZodString>;
711
711
  }, z.core.$strict>;
712
712
  headers: z.ZodArray<z.ZodTuple<[z.ZodString, z.ZodString], null>>;
@@ -718,7 +718,7 @@ export declare const HookSchema: z.ZodUnion<readonly [z.ZodObject<{
718
718
  br: "br";
719
719
  }>, z.ZodObject<{
720
720
  modified: z.ZodBigInt;
721
- content_chunks: z.ZodArray<z.ZodCustom<Uint8Array<ArrayBufferLike>, Uint8Array<ArrayBufferLike>>>;
721
+ content_chunks: z.ZodArray<z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>>;
722
722
  total_length: z.ZodBigInt;
723
723
  sha256: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
724
724
  }, z.core.$strip>], null>>;
@@ -730,14 +730,14 @@ export declare const HookSchema: z.ZodUnion<readonly [z.ZodObject<{
730
730
  }, z.core.$strict>, z.ZodObject<{
731
731
  collections: z.ZodReadonly<z.ZodArray<z.ZodString>>;
732
732
  run: z.ZodCustom<z.core.$InferInnerFunctionType<z.ZodTuple<[z.ZodObject<{
733
- caller: z.ZodCustom<Uint8Array<ArrayBufferLike>, Uint8Array<ArrayBufferLike>>;
733
+ caller: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
734
734
  data: z.ZodOptional<z.ZodObject<{
735
735
  key: z.ZodObject<{
736
736
  name: z.ZodString;
737
737
  full_path: z.ZodString;
738
738
  token: z.ZodOptional<z.ZodString>;
739
739
  collection: z.ZodString;
740
- owner: z.ZodCustom<Uint8Array<ArrayBufferLike>, Uint8Array<ArrayBufferLike>>;
740
+ owner: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
741
741
  description: z.ZodOptional<z.ZodString>;
742
742
  }, z.core.$strict>;
743
743
  headers: z.ZodArray<z.ZodTuple<[z.ZodString, z.ZodString], null>>;
@@ -749,7 +749,7 @@ export declare const HookSchema: z.ZodUnion<readonly [z.ZodObject<{
749
749
  br: "br";
750
750
  }>, z.ZodObject<{
751
751
  modified: z.ZodBigInt;
752
- content_chunks: z.ZodArray<z.ZodCustom<Uint8Array<ArrayBufferLike>, Uint8Array<ArrayBufferLike>>>;
752
+ content_chunks: z.ZodArray<z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>>;
753
753
  total_length: z.ZodBigInt;
754
754
  sha256: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
755
755
  }, z.core.$strip>], null>>;
@@ -758,14 +758,14 @@ export declare const HookSchema: z.ZodUnion<readonly [z.ZodObject<{
758
758
  version: z.ZodOptional<z.ZodBigInt>;
759
759
  }, z.core.$strict>>;
760
760
  }, z.core.$strict>], null>, z.ZodUnion<[z.ZodPromise<z.ZodVoid>, z.ZodVoid]>>, z.core.$InferInnerFunctionType<z.ZodTuple<[z.ZodObject<{
761
- caller: z.ZodCustom<Uint8Array<ArrayBufferLike>, Uint8Array<ArrayBufferLike>>;
761
+ caller: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
762
762
  data: z.ZodOptional<z.ZodObject<{
763
763
  key: z.ZodObject<{
764
764
  name: z.ZodString;
765
765
  full_path: z.ZodString;
766
766
  token: z.ZodOptional<z.ZodString>;
767
767
  collection: z.ZodString;
768
- owner: z.ZodCustom<Uint8Array<ArrayBufferLike>, Uint8Array<ArrayBufferLike>>;
768
+ owner: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
769
769
  description: z.ZodOptional<z.ZodString>;
770
770
  }, z.core.$strict>;
771
771
  headers: z.ZodArray<z.ZodTuple<[z.ZodString, z.ZodString], null>>;
@@ -777,7 +777,7 @@ export declare const HookSchema: z.ZodUnion<readonly [z.ZodObject<{
777
777
  br: "br";
778
778
  }>, z.ZodObject<{
779
779
  modified: z.ZodBigInt;
780
- content_chunks: z.ZodArray<z.ZodCustom<Uint8Array<ArrayBufferLike>, Uint8Array<ArrayBufferLike>>>;
780
+ content_chunks: z.ZodArray<z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>>;
781
781
  total_length: z.ZodBigInt;
782
782
  sha256: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
783
783
  }, z.core.$strip>], null>>;
@@ -789,14 +789,14 @@ export declare const HookSchema: z.ZodUnion<readonly [z.ZodObject<{
789
789
  }, z.core.$strict>, z.ZodObject<{
790
790
  collections: z.ZodReadonly<z.ZodArray<z.ZodString>>;
791
791
  run: z.ZodCustom<z.core.$InferInnerFunctionType<z.ZodTuple<[z.ZodObject<{
792
- caller: z.ZodCustom<Uint8Array<ArrayBufferLike>, Uint8Array<ArrayBufferLike>>;
792
+ caller: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
793
793
  data: z.ZodArray<z.ZodOptional<z.ZodObject<{
794
794
  key: z.ZodObject<{
795
795
  name: z.ZodString;
796
796
  full_path: z.ZodString;
797
797
  token: z.ZodOptional<z.ZodString>;
798
798
  collection: z.ZodString;
799
- owner: z.ZodCustom<Uint8Array<ArrayBufferLike>, Uint8Array<ArrayBufferLike>>;
799
+ owner: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
800
800
  description: z.ZodOptional<z.ZodString>;
801
801
  }, z.core.$strict>;
802
802
  headers: z.ZodArray<z.ZodTuple<[z.ZodString, z.ZodString], null>>;
@@ -808,7 +808,7 @@ export declare const HookSchema: z.ZodUnion<readonly [z.ZodObject<{
808
808
  br: "br";
809
809
  }>, z.ZodObject<{
810
810
  modified: z.ZodBigInt;
811
- content_chunks: z.ZodArray<z.ZodCustom<Uint8Array<ArrayBufferLike>, Uint8Array<ArrayBufferLike>>>;
811
+ content_chunks: z.ZodArray<z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>>;
812
812
  total_length: z.ZodBigInt;
813
813
  sha256: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
814
814
  }, z.core.$strip>], null>>;
@@ -817,14 +817,14 @@ export declare const HookSchema: z.ZodUnion<readonly [z.ZodObject<{
817
817
  version: z.ZodOptional<z.ZodBigInt>;
818
818
  }, z.core.$strict>>>;
819
819
  }, z.core.$strict>], null>, z.ZodUnion<[z.ZodPromise<z.ZodVoid>, z.ZodVoid]>>, z.core.$InferInnerFunctionType<z.ZodTuple<[z.ZodObject<{
820
- caller: z.ZodCustom<Uint8Array<ArrayBufferLike>, Uint8Array<ArrayBufferLike>>;
820
+ caller: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
821
821
  data: z.ZodArray<z.ZodOptional<z.ZodObject<{
822
822
  key: z.ZodObject<{
823
823
  name: z.ZodString;
824
824
  full_path: z.ZodString;
825
825
  token: z.ZodOptional<z.ZodString>;
826
826
  collection: z.ZodString;
827
- owner: z.ZodCustom<Uint8Array<ArrayBufferLike>, Uint8Array<ArrayBufferLike>>;
827
+ owner: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
828
828
  description: z.ZodOptional<z.ZodString>;
829
829
  }, z.core.$strict>;
830
830
  headers: z.ZodArray<z.ZodTuple<[z.ZodString, z.ZodString], null>>;
@@ -836,7 +836,7 @@ export declare const HookSchema: z.ZodUnion<readonly [z.ZodObject<{
836
836
  br: "br";
837
837
  }>, z.ZodObject<{
838
838
  modified: z.ZodBigInt;
839
- content_chunks: z.ZodArray<z.ZodCustom<Uint8Array<ArrayBufferLike>, Uint8Array<ArrayBufferLike>>>;
839
+ content_chunks: z.ZodArray<z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>>;
840
840
  total_length: z.ZodBigInt;
841
841
  sha256: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
842
842
  }, z.core.$strip>], null>>;
@@ -848,14 +848,14 @@ export declare const HookSchema: z.ZodUnion<readonly [z.ZodObject<{
848
848
  }, z.core.$strict>, z.ZodObject<{
849
849
  collections: z.ZodReadonly<z.ZodArray<z.ZodString>>;
850
850
  run: z.ZodCustom<z.core.$InferInnerFunctionType<z.ZodTuple<[z.ZodObject<{
851
- caller: z.ZodCustom<Uint8Array<ArrayBufferLike>, Uint8Array<ArrayBufferLike>>;
851
+ caller: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
852
852
  data: z.ZodArray<z.ZodOptional<z.ZodObject<{
853
853
  key: z.ZodObject<{
854
854
  name: z.ZodString;
855
855
  full_path: z.ZodString;
856
856
  token: z.ZodOptional<z.ZodString>;
857
857
  collection: z.ZodString;
858
- owner: z.ZodCustom<Uint8Array<ArrayBufferLike>, Uint8Array<ArrayBufferLike>>;
858
+ owner: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
859
859
  description: z.ZodOptional<z.ZodString>;
860
860
  }, z.core.$strict>;
861
861
  headers: z.ZodArray<z.ZodTuple<[z.ZodString, z.ZodString], null>>;
@@ -867,7 +867,7 @@ export declare const HookSchema: z.ZodUnion<readonly [z.ZodObject<{
867
867
  br: "br";
868
868
  }>, z.ZodObject<{
869
869
  modified: z.ZodBigInt;
870
- content_chunks: z.ZodArray<z.ZodCustom<Uint8Array<ArrayBufferLike>, Uint8Array<ArrayBufferLike>>>;
870
+ content_chunks: z.ZodArray<z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>>;
871
871
  total_length: z.ZodBigInt;
872
872
  sha256: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
873
873
  }, z.core.$strip>], null>>;
@@ -876,14 +876,14 @@ export declare const HookSchema: z.ZodUnion<readonly [z.ZodObject<{
876
876
  version: z.ZodOptional<z.ZodBigInt>;
877
877
  }, z.core.$strict>>>;
878
878
  }, z.core.$strict>], null>, z.ZodUnion<[z.ZodPromise<z.ZodVoid>, z.ZodVoid]>>, z.core.$InferInnerFunctionType<z.ZodTuple<[z.ZodObject<{
879
- caller: z.ZodCustom<Uint8Array<ArrayBufferLike>, Uint8Array<ArrayBufferLike>>;
879
+ caller: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
880
880
  data: z.ZodArray<z.ZodOptional<z.ZodObject<{
881
881
  key: z.ZodObject<{
882
882
  name: z.ZodString;
883
883
  full_path: z.ZodString;
884
884
  token: z.ZodOptional<z.ZodString>;
885
885
  collection: z.ZodString;
886
- owner: z.ZodCustom<Uint8Array<ArrayBufferLike>, Uint8Array<ArrayBufferLike>>;
886
+ owner: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
887
887
  description: z.ZodOptional<z.ZodString>;
888
888
  }, z.core.$strict>;
889
889
  headers: z.ZodArray<z.ZodTuple<[z.ZodString, z.ZodString], null>>;
@@ -895,7 +895,7 @@ export declare const HookSchema: z.ZodUnion<readonly [z.ZodObject<{
895
895
  br: "br";
896
896
  }>, z.ZodObject<{
897
897
  modified: z.ZodBigInt;
898
- content_chunks: z.ZodArray<z.ZodCustom<Uint8Array<ArrayBufferLike>, Uint8Array<ArrayBufferLike>>>;
898
+ content_chunks: z.ZodArray<z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>>;
899
899
  total_length: z.ZodBigInt;
900
900
  sha256: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
901
901
  }, z.core.$strip>], null>>;