@junobuild/functions 0.1.4 → 0.2.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.
@@ -1,4 +1,4 @@
1
- import * as z from 'zod';
1
+ import * as z from 'zod/v4';
2
2
  import { type Collection, type Description, type RawUserId, type Timestamp, type Version } from './satellite';
3
3
  /**
4
4
  * Represents a single HTTP header as a tuple of name and value.
@@ -7,7 +7,7 @@ export type HeaderField = [string, string];
7
7
  /**
8
8
  * @see HeaderFields
9
9
  */
10
- export declare const HeaderFieldsSchema: z.ZodArray<z.ZodTuple<[z.ZodString, z.ZodString], null>, "many">;
10
+ export declare const HeaderFieldsSchema: z.ZodArray<z.ZodTuple<[z.ZodString, z.ZodString], null>>;
11
11
  /**
12
12
  * Represents a list of HTTP headers.
13
13
  */
@@ -15,7 +15,7 @@ export type HeaderFields = HeaderField[];
15
15
  /**
16
16
  * @see Blob
17
17
  */
18
- export declare const BlobSchema: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
18
+ export declare const BlobSchema: z.ZodCustom<Uint8Array<ArrayBufferLike>, Uint8Array<ArrayBufferLike>>;
19
19
  /**
20
20
  * Binary content used in asset encoding.
21
21
  */
@@ -36,23 +36,9 @@ export declare const AssetKeySchema: z.ZodObject<{
36
36
  full_path: z.ZodString;
37
37
  token: z.ZodOptional<z.ZodString>;
38
38
  collection: z.ZodString;
39
- owner: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
39
+ owner: z.ZodCustom<Uint8Array<ArrayBufferLike>, Uint8Array<ArrayBufferLike>>;
40
40
  description: z.ZodOptional<z.ZodString>;
41
- }, "strict", z.ZodTypeAny, {
42
- owner: Uint8Array<ArrayBufferLike>;
43
- collection: string;
44
- name: string;
45
- full_path: string;
46
- description?: string | undefined;
47
- token?: string | undefined;
48
- }, {
49
- owner: Uint8Array<ArrayBufferLike>;
50
- collection: string;
51
- name: string;
52
- full_path: string;
53
- description?: string | undefined;
54
- token?: string | undefined;
55
- }>;
41
+ }, z.core.$strict>;
56
42
  /**
57
43
  * Metadata identifying an asset within a collection and the storage system.
58
44
  */
@@ -88,20 +74,10 @@ export interface AssetKey {
88
74
  */
89
75
  export declare const AssetEncodingSchema: z.ZodObject<{
90
76
  modified: z.ZodBigInt;
91
- content_chunks: z.ZodArray<z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>, "many">;
77
+ content_chunks: z.ZodArray<z.ZodCustom<Uint8Array<ArrayBufferLike>, Uint8Array<ArrayBufferLike>>>;
92
78
  total_length: z.ZodBigInt;
93
- sha256: z.ZodEffects<z.ZodType<Uint8Array<ArrayBuffer>, z.ZodTypeDef, Uint8Array<ArrayBuffer>>, Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
94
- }, "strip", z.ZodTypeAny, {
95
- modified: bigint;
96
- content_chunks: Uint8Array<ArrayBufferLike>[];
97
- total_length: bigint;
98
- sha256: Uint8Array<ArrayBuffer>;
99
- }, {
100
- modified: bigint;
101
- content_chunks: Uint8Array<ArrayBufferLike>[];
102
- total_length: bigint;
103
- sha256: Uint8Array<ArrayBuffer>;
104
- }>;
79
+ sha256: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
80
+ }, z.core.$strip>;
105
81
  /**
106
82
  * Represents a specific encoding of an asset, such as "gzip" or "identity" (no compression).
107
83
  */
@@ -140,82 +116,26 @@ export declare const AssetSchema: z.ZodObject<{
140
116
  full_path: z.ZodString;
141
117
  token: z.ZodOptional<z.ZodString>;
142
118
  collection: z.ZodString;
143
- owner: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
119
+ owner: z.ZodCustom<Uint8Array<ArrayBufferLike>, Uint8Array<ArrayBufferLike>>;
144
120
  description: z.ZodOptional<z.ZodString>;
145
- }, "strict", z.ZodTypeAny, {
146
- owner: Uint8Array<ArrayBufferLike>;
147
- collection: string;
148
- name: string;
149
- full_path: string;
150
- description?: string | undefined;
151
- token?: string | undefined;
152
- }, {
153
- owner: Uint8Array<ArrayBufferLike>;
154
- collection: string;
155
- name: string;
156
- full_path: string;
157
- description?: string | undefined;
158
- token?: string | undefined;
159
- }>;
160
- headers: z.ZodArray<z.ZodTuple<[z.ZodString, z.ZodString], null>, "many">;
161
- encodings: z.ZodArray<z.ZodTuple<[z.ZodEnum<["identity", "gzip", "compress", "deflate", "br"]>, z.ZodObject<{
121
+ }, z.core.$strict>;
122
+ headers: z.ZodArray<z.ZodTuple<[z.ZodString, z.ZodString], null>>;
123
+ encodings: z.ZodArray<z.ZodTuple<[z.ZodEnum<{
124
+ identity: "identity";
125
+ gzip: "gzip";
126
+ compress: "compress";
127
+ deflate: "deflate";
128
+ br: "br";
129
+ }>, z.ZodObject<{
162
130
  modified: z.ZodBigInt;
163
- content_chunks: z.ZodArray<z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>, "many">;
131
+ content_chunks: z.ZodArray<z.ZodCustom<Uint8Array<ArrayBufferLike>, Uint8Array<ArrayBufferLike>>>;
164
132
  total_length: z.ZodBigInt;
165
- sha256: z.ZodEffects<z.ZodType<Uint8Array<ArrayBuffer>, z.ZodTypeDef, Uint8Array<ArrayBuffer>>, Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
166
- }, "strip", z.ZodTypeAny, {
167
- modified: bigint;
168
- content_chunks: Uint8Array<ArrayBufferLike>[];
169
- total_length: bigint;
170
- sha256: Uint8Array<ArrayBuffer>;
171
- }, {
172
- modified: bigint;
173
- content_chunks: Uint8Array<ArrayBufferLike>[];
174
- total_length: bigint;
175
- sha256: Uint8Array<ArrayBuffer>;
176
- }>], null>, "many">;
133
+ sha256: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
134
+ }, z.core.$strip>], null>>;
177
135
  created_at: z.ZodBigInt;
178
136
  updated_at: z.ZodBigInt;
179
137
  version: z.ZodOptional<z.ZodBigInt>;
180
- }, "strict", z.ZodTypeAny, {
181
- created_at: bigint;
182
- updated_at: bigint;
183
- key: {
184
- owner: Uint8Array<ArrayBufferLike>;
185
- collection: string;
186
- name: string;
187
- full_path: string;
188
- description?: string | undefined;
189
- token?: string | undefined;
190
- };
191
- headers: [string, string][];
192
- encodings: ["identity" | "gzip" | "compress" | "deflate" | "br", {
193
- modified: bigint;
194
- content_chunks: Uint8Array<ArrayBufferLike>[];
195
- total_length: bigint;
196
- sha256: Uint8Array<ArrayBuffer>;
197
- }][];
198
- version?: bigint | undefined;
199
- }, {
200
- created_at: bigint;
201
- updated_at: bigint;
202
- key: {
203
- owner: Uint8Array<ArrayBufferLike>;
204
- collection: string;
205
- name: string;
206
- full_path: string;
207
- description?: string | undefined;
208
- token?: string | undefined;
209
- };
210
- headers: [string, string][];
211
- encodings: ["identity" | "gzip" | "compress" | "deflate" | "br", {
212
- modified: bigint;
213
- content_chunks: Uint8Array<ArrayBufferLike>[];
214
- total_length: bigint;
215
- sha256: Uint8Array<ArrayBuffer>;
216
- }][];
217
- version?: bigint | undefined;
218
- }>;
138
+ }, z.core.$strict>;
219
139
  /**
220
140
  * A stored asset including its metadata, encodings, and timestamps.
221
141
  */
@@ -248,101 +168,31 @@ export interface Asset {
248
168
  /**
249
169
  * @see AssetNoContent
250
170
  */
251
- export declare const AssetNoContentSchema: z.ZodObject<Omit<{
171
+ export declare const AssetNoContentSchema: z.ZodObject<{
172
+ version: z.ZodOptional<z.ZodBigInt>;
173
+ created_at: z.ZodBigInt;
174
+ updated_at: z.ZodBigInt;
252
175
  key: z.ZodObject<{
253
176
  name: z.ZodString;
254
177
  full_path: z.ZodString;
255
178
  token: z.ZodOptional<z.ZodString>;
256
179
  collection: z.ZodString;
257
- owner: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
180
+ owner: z.ZodCustom<Uint8Array<ArrayBufferLike>, Uint8Array<ArrayBufferLike>>;
258
181
  description: z.ZodOptional<z.ZodString>;
259
- }, "strict", z.ZodTypeAny, {
260
- owner: Uint8Array<ArrayBufferLike>;
261
- collection: string;
262
- name: string;
263
- full_path: string;
264
- description?: string | undefined;
265
- token?: string | undefined;
266
- }, {
267
- owner: Uint8Array<ArrayBufferLike>;
268
- collection: string;
269
- name: string;
270
- full_path: string;
271
- description?: string | undefined;
272
- token?: string | undefined;
273
- }>;
274
- headers: z.ZodArray<z.ZodTuple<[z.ZodString, z.ZodString], null>, "many">;
275
- encodings: z.ZodArray<z.ZodTuple<[z.ZodEnum<["identity", "gzip", "compress", "deflate", "br"]>, z.ZodObject<{
276
- modified: z.ZodBigInt;
277
- content_chunks: z.ZodArray<z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>, "many">;
278
- total_length: z.ZodBigInt;
279
- sha256: z.ZodEffects<z.ZodType<Uint8Array<ArrayBuffer>, z.ZodTypeDef, Uint8Array<ArrayBuffer>>, Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
280
- }, "strip", z.ZodTypeAny, {
281
- modified: bigint;
282
- content_chunks: Uint8Array<ArrayBufferLike>[];
283
- total_length: bigint;
284
- sha256: Uint8Array<ArrayBuffer>;
285
- }, {
286
- modified: bigint;
287
- content_chunks: Uint8Array<ArrayBufferLike>[];
288
- total_length: bigint;
289
- sha256: Uint8Array<ArrayBuffer>;
290
- }>], null>, "many">;
291
- created_at: z.ZodBigInt;
292
- updated_at: z.ZodBigInt;
293
- version: z.ZodOptional<z.ZodBigInt>;
294
- }, "encodings"> & {
295
- encodings: z.ZodArray<z.ZodTuple<[z.ZodEnum<["identity", "gzip", "compress", "deflate", "br"]>, z.ZodObject<Omit<{
182
+ }, z.core.$strict>;
183
+ headers: z.ZodArray<z.ZodTuple<[z.ZodString, z.ZodString], null>>;
184
+ encodings: z.ZodArray<z.ZodTuple<[z.ZodEnum<{
185
+ identity: "identity";
186
+ gzip: "gzip";
187
+ compress: "compress";
188
+ deflate: "deflate";
189
+ br: "br";
190
+ }>, z.ZodObject<{
296
191
  modified: z.ZodBigInt;
297
- content_chunks: z.ZodArray<z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>, "many">;
192
+ sha256: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
298
193
  total_length: z.ZodBigInt;
299
- sha256: z.ZodEffects<z.ZodType<Uint8Array<ArrayBuffer>, z.ZodTypeDef, Uint8Array<ArrayBuffer>>, Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
300
- }, "content_chunks">, "strict", z.ZodTypeAny, {
301
- modified: bigint;
302
- total_length: bigint;
303
- sha256: Uint8Array<ArrayBuffer>;
304
- }, {
305
- modified: bigint;
306
- total_length: bigint;
307
- sha256: Uint8Array<ArrayBuffer>;
308
- }>], null>, "many">;
309
- }, "strict", z.ZodTypeAny, {
310
- created_at: bigint;
311
- updated_at: bigint;
312
- key: {
313
- owner: Uint8Array<ArrayBufferLike>;
314
- collection: string;
315
- name: string;
316
- full_path: string;
317
- description?: string | undefined;
318
- token?: string | undefined;
319
- };
320
- headers: [string, string][];
321
- encodings: ["identity" | "gzip" | "compress" | "deflate" | "br", {
322
- modified: bigint;
323
- total_length: bigint;
324
- sha256: Uint8Array<ArrayBuffer>;
325
- }][];
326
- version?: bigint | undefined;
327
- }, {
328
- created_at: bigint;
329
- updated_at: bigint;
330
- key: {
331
- owner: Uint8Array<ArrayBufferLike>;
332
- collection: string;
333
- name: string;
334
- full_path: string;
335
- description?: string | undefined;
336
- token?: string | undefined;
337
- };
338
- headers: [string, string][];
339
- encodings: ["identity" | "gzip" | "compress" | "deflate" | "br", {
340
- modified: bigint;
341
- total_length: bigint;
342
- sha256: Uint8Array<ArrayBuffer>;
343
- }][];
344
- version?: bigint | undefined;
345
- }>;
194
+ }, z.core.$strict>], null>>;
195
+ }, z.core.$strict>;
346
196
  /**
347
197
  * A stored asset including its metadata, encodings without chunks, and timestamps.
348
198
  */
@@ -362,51 +212,19 @@ export declare const BatchSchema: z.ZodObject<{
362
212
  full_path: z.ZodString;
363
213
  token: z.ZodOptional<z.ZodString>;
364
214
  collection: z.ZodString;
365
- owner: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
215
+ owner: z.ZodCustom<Uint8Array<ArrayBufferLike>, Uint8Array<ArrayBufferLike>>;
366
216
  description: z.ZodOptional<z.ZodString>;
367
- }, "strict", z.ZodTypeAny, {
368
- owner: Uint8Array<ArrayBufferLike>;
369
- collection: string;
370
- name: string;
371
- full_path: string;
372
- description?: string | undefined;
373
- token?: string | undefined;
374
- }, {
375
- owner: Uint8Array<ArrayBufferLike>;
376
- collection: string;
377
- name: string;
378
- full_path: string;
379
- description?: string | undefined;
380
- token?: string | undefined;
381
- }>;
217
+ }, z.core.$strict>;
382
218
  reference_id: z.ZodOptional<z.ZodBigInt>;
383
219
  expires_at: z.ZodBigInt;
384
- encoding_type: z.ZodOptional<z.ZodEnum<["identity", "gzip", "compress", "deflate", "br"]>>;
385
- }, "strict", z.ZodTypeAny, {
386
- key: {
387
- owner: Uint8Array<ArrayBufferLike>;
388
- collection: string;
389
- name: string;
390
- full_path: string;
391
- description?: string | undefined;
392
- token?: string | undefined;
393
- };
394
- expires_at: bigint;
395
- reference_id?: bigint | undefined;
396
- encoding_type?: "identity" | "gzip" | "compress" | "deflate" | "br" | undefined;
397
- }, {
398
- key: {
399
- owner: Uint8Array<ArrayBufferLike>;
400
- collection: string;
401
- name: string;
402
- full_path: string;
403
- description?: string | undefined;
404
- token?: string | undefined;
405
- };
406
- expires_at: bigint;
407
- reference_id?: bigint | undefined;
408
- encoding_type?: "identity" | "gzip" | "compress" | "deflate" | "br" | undefined;
409
- }>;
220
+ encoding_type: z.ZodOptional<z.ZodEnum<{
221
+ identity: "identity";
222
+ gzip: "gzip";
223
+ compress: "compress";
224
+ deflate: "deflate";
225
+ br: "br";
226
+ }>>;
227
+ }, z.core.$strict>;
410
228
  /**
411
229
  * Represents a batch of chunks to be uploaded and committed to an asset.
412
230
  */
@@ -441,17 +259,9 @@ export type BatchId = bigint;
441
259
  */
442
260
  export declare const CommitBatchSchema: z.ZodObject<{
443
261
  batch_id: z.ZodBigInt;
444
- headers: z.ZodArray<z.ZodTuple<[z.ZodString, z.ZodString], null>, "many">;
445
- chunk_ids: z.ZodArray<z.ZodBigInt, "many">;
446
- }, "strict", z.ZodTypeAny, {
447
- headers: [string, string][];
448
- batch_id: bigint;
449
- chunk_ids: bigint[];
450
- }, {
451
- headers: [string, string][];
452
- batch_id: bigint;
453
- chunk_ids: bigint[];
454
- }>;
262
+ headers: z.ZodArray<z.ZodTuple<[z.ZodString, z.ZodString], null>>;
263
+ chunk_ids: z.ZodArray<z.ZodBigInt>;
264
+ }, z.core.$strict>;
455
265
  /**
456
266
  * Represents the final step in uploading an asset, committing the batch to storage.
457
267
  */
@@ -489,82 +299,26 @@ export declare const OptionAssetSchema: z.ZodOptional<z.ZodObject<{
489
299
  full_path: z.ZodString;
490
300
  token: z.ZodOptional<z.ZodString>;
491
301
  collection: z.ZodString;
492
- owner: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
302
+ owner: z.ZodCustom<Uint8Array<ArrayBufferLike>, Uint8Array<ArrayBufferLike>>;
493
303
  description: z.ZodOptional<z.ZodString>;
494
- }, "strict", z.ZodTypeAny, {
495
- owner: Uint8Array<ArrayBufferLike>;
496
- collection: string;
497
- name: string;
498
- full_path: string;
499
- description?: string | undefined;
500
- token?: string | undefined;
501
- }, {
502
- owner: Uint8Array<ArrayBufferLike>;
503
- collection: string;
504
- name: string;
505
- full_path: string;
506
- description?: string | undefined;
507
- token?: string | undefined;
508
- }>;
509
- headers: z.ZodArray<z.ZodTuple<[z.ZodString, z.ZodString], null>, "many">;
510
- encodings: z.ZodArray<z.ZodTuple<[z.ZodEnum<["identity", "gzip", "compress", "deflate", "br"]>, z.ZodObject<{
304
+ }, z.core.$strict>;
305
+ headers: z.ZodArray<z.ZodTuple<[z.ZodString, z.ZodString], null>>;
306
+ encodings: z.ZodArray<z.ZodTuple<[z.ZodEnum<{
307
+ identity: "identity";
308
+ gzip: "gzip";
309
+ compress: "compress";
310
+ deflate: "deflate";
311
+ br: "br";
312
+ }>, z.ZodObject<{
511
313
  modified: z.ZodBigInt;
512
- content_chunks: z.ZodArray<z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>, "many">;
314
+ content_chunks: z.ZodArray<z.ZodCustom<Uint8Array<ArrayBufferLike>, Uint8Array<ArrayBufferLike>>>;
513
315
  total_length: z.ZodBigInt;
514
- sha256: z.ZodEffects<z.ZodType<Uint8Array<ArrayBuffer>, z.ZodTypeDef, Uint8Array<ArrayBuffer>>, Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
515
- }, "strip", z.ZodTypeAny, {
516
- modified: bigint;
517
- content_chunks: Uint8Array<ArrayBufferLike>[];
518
- total_length: bigint;
519
- sha256: Uint8Array<ArrayBuffer>;
520
- }, {
521
- modified: bigint;
522
- content_chunks: Uint8Array<ArrayBufferLike>[];
523
- total_length: bigint;
524
- sha256: Uint8Array<ArrayBuffer>;
525
- }>], null>, "many">;
316
+ sha256: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
317
+ }, z.core.$strip>], null>>;
526
318
  created_at: z.ZodBigInt;
527
319
  updated_at: z.ZodBigInt;
528
320
  version: z.ZodOptional<z.ZodBigInt>;
529
- }, "strict", z.ZodTypeAny, {
530
- created_at: bigint;
531
- updated_at: bigint;
532
- key: {
533
- owner: Uint8Array<ArrayBufferLike>;
534
- collection: string;
535
- name: string;
536
- full_path: string;
537
- description?: string | undefined;
538
- token?: string | undefined;
539
- };
540
- headers: [string, string][];
541
- encodings: ["identity" | "gzip" | "compress" | "deflate" | "br", {
542
- modified: bigint;
543
- content_chunks: Uint8Array<ArrayBufferLike>[];
544
- total_length: bigint;
545
- sha256: Uint8Array<ArrayBuffer>;
546
- }][];
547
- version?: bigint | undefined;
548
- }, {
549
- created_at: bigint;
550
- updated_at: bigint;
551
- key: {
552
- owner: Uint8Array<ArrayBufferLike>;
553
- collection: string;
554
- name: string;
555
- full_path: string;
556
- description?: string | undefined;
557
- token?: string | undefined;
558
- };
559
- headers: [string, string][];
560
- encodings: ["identity" | "gzip" | "compress" | "deflate" | "br", {
561
- modified: bigint;
562
- content_chunks: Uint8Array<ArrayBufferLike>[];
563
- total_length: bigint;
564
- sha256: Uint8Array<ArrayBuffer>;
565
- }][];
566
- version?: bigint | undefined;
567
- }>>;
321
+ }, z.core.$strict>>;
568
322
  /**
569
323
  * A shorthand for an asset that might or not be defined.
570
324
  */
@@ -1,8 +1,11 @@
1
- import * as z from 'zod';
1
+ import * as z from 'zod/v4';
2
2
  /**
3
3
  * @see Memory
4
4
  */
5
- export declare const MemorySchema: z.ZodEnum<["heap", "stable"]>;
5
+ export declare const MemorySchema: z.ZodEnum<{
6
+ heap: "heap";
7
+ stable: "stable";
8
+ }>;
6
9
  /**
7
10
  * Memory type used to select storage or datastore location.
8
11
  */
@@ -1,9 +1,13 @@
1
- import * as z from 'zod';
1
+ import * as z from 'zod/v4';
2
2
  import { type RawUserId, type Timestamp, type UserId } from '../../schemas/satellite';
3
3
  /**
4
4
  * @see ControllerScopeSchema
5
5
  */
6
- export declare const ControllerScopeSchema: z.ZodEnum<["write", "admin", "submit"]>;
6
+ export declare const ControllerScopeSchema: z.ZodEnum<{
7
+ write: "write";
8
+ admin: "admin";
9
+ submit: "submit";
10
+ }>;
7
11
  /**
8
12
  * Represents the permission scope of a controller.
9
13
  */
@@ -20,24 +24,16 @@ export type Metadata = z.infer<typeof MetadataSchema>;
20
24
  * @see ControllerSchema
21
25
  */
22
26
  export declare const ControllerSchema: z.ZodObject<{
23
- metadata: z.ZodArray<z.ZodTuple<[z.ZodString, z.ZodString], null>, "many">;
27
+ metadata: z.ZodArray<z.ZodTuple<[z.ZodString, z.ZodString], null>>;
24
28
  created_at: z.ZodBigInt;
25
29
  updated_at: z.ZodBigInt;
26
30
  expires_at: z.ZodOptional<z.ZodBigInt>;
27
- scope: z.ZodEnum<["write", "admin", "submit"]>;
28
- }, "strict", z.ZodTypeAny, {
29
- created_at: bigint;
30
- updated_at: bigint;
31
- metadata: [string, string][];
32
- scope: "write" | "admin" | "submit";
33
- expires_at?: bigint | undefined;
34
- }, {
35
- created_at: bigint;
36
- updated_at: bigint;
37
- metadata: [string, string][];
38
- scope: "write" | "admin" | "submit";
39
- expires_at?: bigint | undefined;
40
- }>;
31
+ scope: z.ZodEnum<{
32
+ write: "write";
33
+ admin: "admin";
34
+ submit: "submit";
35
+ }>;
36
+ }, z.core.$strict>;
41
37
  /**
42
38
  * Represents a controller with access scope and associated metadata.
43
39
  */
@@ -67,25 +63,17 @@ export interface Controller {
67
63
  /**
68
64
  * @see ControllerRecordSchema
69
65
  */
70
- export declare const ControllerRecordSchema: z.ZodTuple<[z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>, z.ZodObject<{
71
- metadata: z.ZodArray<z.ZodTuple<[z.ZodString, z.ZodString], null>, "many">;
66
+ export declare const ControllerRecordSchema: z.ZodTuple<[z.ZodCustom<Uint8Array<ArrayBufferLike>, Uint8Array<ArrayBufferLike>>, z.ZodObject<{
67
+ metadata: z.ZodArray<z.ZodTuple<[z.ZodString, z.ZodString], null>>;
72
68
  created_at: z.ZodBigInt;
73
69
  updated_at: z.ZodBigInt;
74
70
  expires_at: z.ZodOptional<z.ZodBigInt>;
75
- scope: z.ZodEnum<["write", "admin", "submit"]>;
76
- }, "strict", z.ZodTypeAny, {
77
- created_at: bigint;
78
- updated_at: bigint;
79
- metadata: [string, string][];
80
- scope: "write" | "admin" | "submit";
81
- expires_at?: bigint | undefined;
82
- }, {
83
- created_at: bigint;
84
- updated_at: bigint;
85
- metadata: [string, string][];
86
- scope: "write" | "admin" | "submit";
87
- expires_at?: bigint | undefined;
88
- }>], null>;
71
+ scope: z.ZodEnum<{
72
+ write: "write";
73
+ admin: "admin";
74
+ submit: "submit";
75
+ }>;
76
+ }, z.core.$strict>], null>;
89
77
  /**
90
78
  * Represents a tuple containing the principal ID and associated controller data.
91
79
  */
@@ -93,25 +81,17 @@ export type ControllerRecord = z.infer<typeof ControllerRecordSchema>;
93
81
  /**
94
82
  * @see ControllersSchema
95
83
  */
96
- export declare const ControllersSchema: z.ZodArray<z.ZodTuple<[z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>, z.ZodObject<{
97
- metadata: z.ZodArray<z.ZodTuple<[z.ZodString, z.ZodString], null>, "many">;
84
+ export declare const ControllersSchema: z.ZodArray<z.ZodTuple<[z.ZodCustom<Uint8Array<ArrayBufferLike>, Uint8Array<ArrayBufferLike>>, z.ZodObject<{
85
+ metadata: z.ZodArray<z.ZodTuple<[z.ZodString, z.ZodString], null>>;
98
86
  created_at: z.ZodBigInt;
99
87
  updated_at: z.ZodBigInt;
100
88
  expires_at: z.ZodOptional<z.ZodBigInt>;
101
- scope: z.ZodEnum<["write", "admin", "submit"]>;
102
- }, "strict", z.ZodTypeAny, {
103
- created_at: bigint;
104
- updated_at: bigint;
105
- metadata: [string, string][];
106
- scope: "write" | "admin" | "submit";
107
- expires_at?: bigint | undefined;
108
- }, {
109
- created_at: bigint;
110
- updated_at: bigint;
111
- metadata: [string, string][];
112
- scope: "write" | "admin" | "submit";
113
- expires_at?: bigint | undefined;
114
- }>], null>, "many">;
89
+ scope: z.ZodEnum<{
90
+ write: "write";
91
+ admin: "admin";
92
+ submit: "submit";
93
+ }>;
94
+ }, z.core.$strict>], null>>;
115
95
  /**
116
96
  * Represents a list of controllers.
117
97
  */
@@ -120,45 +100,19 @@ export type Controllers = z.infer<typeof ControllersSchema>;
120
100
  * @see ControllerCheckParamsSchema
121
101
  */
122
102
  export declare const ControllerCheckParamsSchema: z.ZodObject<{
123
- caller: z.ZodUnion<[z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>, z.ZodType<import("@dfinity/principal").Principal, z.ZodTypeDef, import("@dfinity/principal").Principal>]>;
124
- controllers: z.ZodArray<z.ZodTuple<[z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>, z.ZodObject<{
125
- metadata: z.ZodArray<z.ZodTuple<[z.ZodString, z.ZodString], null>, "many">;
103
+ caller: z.ZodUnion<[z.ZodCustom<Uint8Array<ArrayBufferLike>, Uint8Array<ArrayBufferLike>>, z.ZodCustom<import("@dfinity/principal").Principal, import("@dfinity/principal").Principal>]>;
104
+ controllers: z.ZodArray<z.ZodTuple<[z.ZodCustom<Uint8Array<ArrayBufferLike>, Uint8Array<ArrayBufferLike>>, z.ZodObject<{
105
+ metadata: z.ZodArray<z.ZodTuple<[z.ZodString, z.ZodString], null>>;
126
106
  created_at: z.ZodBigInt;
127
107
  updated_at: z.ZodBigInt;
128
108
  expires_at: z.ZodOptional<z.ZodBigInt>;
129
- scope: z.ZodEnum<["write", "admin", "submit"]>;
130
- }, "strict", z.ZodTypeAny, {
131
- created_at: bigint;
132
- updated_at: bigint;
133
- metadata: [string, string][];
134
- scope: "write" | "admin" | "submit";
135
- expires_at?: bigint | undefined;
136
- }, {
137
- created_at: bigint;
138
- updated_at: bigint;
139
- metadata: [string, string][];
140
- scope: "write" | "admin" | "submit";
141
- expires_at?: bigint | undefined;
142
- }>], null>, "many">;
143
- }, "strip", z.ZodTypeAny, {
144
- caller: Uint8Array<ArrayBufferLike> | import("@dfinity/principal").Principal;
145
- controllers: [Uint8Array<ArrayBufferLike>, {
146
- created_at: bigint;
147
- updated_at: bigint;
148
- metadata: [string, string][];
149
- scope: "write" | "admin" | "submit";
150
- expires_at?: bigint | undefined;
151
- }][];
152
- }, {
153
- caller: Uint8Array<ArrayBufferLike> | import("@dfinity/principal").Principal;
154
- controllers: [Uint8Array<ArrayBufferLike>, {
155
- created_at: bigint;
156
- updated_at: bigint;
157
- metadata: [string, string][];
158
- scope: "write" | "admin" | "submit";
159
- expires_at?: bigint | undefined;
160
- }][];
161
- }>;
109
+ scope: z.ZodEnum<{
110
+ write: "write";
111
+ admin: "admin";
112
+ submit: "submit";
113
+ }>;
114
+ }, z.core.$strict>], null>>;
115
+ }, z.core.$strip>;
162
116
  /**
163
117
  * Represents the parameters required to perform controller checks.
164
118
  */