@meistrari/vault-http-client 2.14.1 → 2.20.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.
package/dist/index.d.mts CHANGED
@@ -109,9 +109,7 @@ declare function useVaultClient(vaultUrl: string, token: string): _zodios_core.Z
109
109
  size: zod.ZodOptional<zod.ZodNumber>;
110
110
  mimeType: zod.ZodOptional<zod.ZodString>;
111
111
  createdBy: zod.ZodOptional<zod.ZodString>;
112
- path: zod.ZodOptional<zod.ZodString>;
113
112
  }, "strip", zod.ZodTypeAny, {
114
- path?: string | undefined;
115
113
  size?: number | undefined;
116
114
  createdBy?: string | undefined;
117
115
  fileName?: string | undefined;
@@ -121,7 +119,6 @@ declare function useVaultClient(vaultUrl: string, token: string): _zodios_core.Z
121
119
  sha256sum?: string | undefined;
122
120
  mimeType?: string | undefined;
123
121
  }, {
124
- path?: string | undefined;
125
122
  size?: number | undefined;
126
123
  createdBy?: string | undefined;
127
124
  fileName?: string | undefined;
@@ -154,7 +151,6 @@ declare function useVaultClient(vaultUrl: string, token: string): _zodios_core.Z
154
151
  size: zod.ZodOptional<zod.ZodUnion<[zod.ZodNumber, zod.ZodNull]>>;
155
152
  legacyKey: zod.ZodOptional<zod.ZodUnion<[zod.ZodString, zod.ZodNull]>>;
156
153
  bucketName: zod.ZodOptional<zod.ZodUnion<[zod.ZodString, zod.ZodNull]>>;
157
- encryptionKey: zod.ZodOptional<zod.ZodUnion<[zod.ZodString, zod.ZodNull]>>;
158
154
  createdBy: zod.ZodOptional<zod.ZodUnion<[zod.ZodString, zod.ZodNull]>>;
159
155
  createdAt: zod.ZodString;
160
156
  deletedAt: zod.ZodOptional<zod.ZodUnion<[zod.ZodString, zod.ZodNull]>>;
@@ -172,7 +168,6 @@ declare function useVaultClient(vaultUrl: string, token: string): _zodios_core.Z
172
168
  mimeType?: string | null | undefined;
173
169
  legacyKey?: string | null | undefined;
174
170
  bucketName?: string | null | undefined;
175
- encryptionKey?: string | null | undefined;
176
171
  uploadedAt?: string | null | undefined;
177
172
  }, {
178
173
  path: string;
@@ -187,7 +182,6 @@ declare function useVaultClient(vaultUrl: string, token: string): _zodios_core.Z
187
182
  mimeType?: string | null | undefined;
188
183
  legacyKey?: string | null | undefined;
189
184
  bucketName?: string | null | undefined;
190
- encryptionKey?: string | null | undefined;
191
185
  uploadedAt?: string | null | undefined;
192
186
  }>;
193
187
  }, "strip", zod.ZodTypeAny, {
@@ -207,7 +201,6 @@ declare function useVaultClient(vaultUrl: string, token: string): _zodios_core.Z
207
201
  mimeType?: string | null | undefined;
208
202
  legacyKey?: string | null | undefined;
209
203
  bucketName?: string | null | undefined;
210
- encryptionKey?: string | null | undefined;
211
204
  uploadedAt?: string | null | undefined;
212
205
  };
213
206
  }, {
@@ -227,7 +220,6 @@ declare function useVaultClient(vaultUrl: string, token: string): _zodios_core.Z
227
220
  mimeType?: string | null | undefined;
228
221
  legacyKey?: string | null | undefined;
229
222
  bucketName?: string | null | undefined;
230
- encryptionKey?: string | null | undefined;
231
223
  uploadedAt?: string | null | undefined;
232
224
  };
233
225
  }>;
@@ -248,6 +240,14 @@ declare function useVaultClient(vaultUrl: string, token: string): _zodios_core.Z
248
240
  name: "preserveFileName";
249
241
  type: "Query";
250
242
  schema: zod.ZodDefault<zod.ZodOptional<zod.ZodEnum<["true", "false"]>>>;
243
+ }, {
244
+ name: "includeChildren";
245
+ type: "Query";
246
+ schema: zod.ZodDefault<zod.ZodOptional<zod.ZodEnum<["true", "false"]>>>;
247
+ }, {
248
+ name: "includeParent";
249
+ type: "Query";
250
+ schema: zod.ZodDefault<zod.ZodOptional<zod.ZodEnum<["true", "false"]>>>;
251
251
  }, {
252
252
  name: "fileId";
253
253
  type: "Path";
@@ -266,12 +266,11 @@ declare function useVaultClient(vaultUrl: string, token: string): _zodios_core.Z
266
266
  size: zod.ZodOptional<zod.ZodUnion<[zod.ZodNumber, zod.ZodNull]>>;
267
267
  legacyKey: zod.ZodOptional<zod.ZodUnion<[zod.ZodString, zod.ZodNull]>>;
268
268
  bucketName: zod.ZodOptional<zod.ZodUnion<[zod.ZodString, zod.ZodNull]>>;
269
- encryptionKey: zod.ZodOptional<zod.ZodUnion<[zod.ZodString, zod.ZodNull]>>;
270
269
  createdBy: zod.ZodOptional<zod.ZodUnion<[zod.ZodString, zod.ZodNull]>>;
271
270
  createdAt: zod.ZodString;
272
271
  deletedAt: zod.ZodOptional<zod.ZodUnion<[zod.ZodString, zod.ZodNull]>>;
273
272
  uploadedAt: zod.ZodOptional<zod.ZodUnion<[zod.ZodString, zod.ZodNull]>>;
274
- children: zod.ZodArray<zod.ZodObject<{
273
+ children: zod.ZodOptional<zod.ZodArray<zod.ZodObject<{
275
274
  id: zod.ZodString;
276
275
  path: zod.ZodString;
277
276
  workspaceId: zod.ZodString;
@@ -281,7 +280,6 @@ declare function useVaultClient(vaultUrl: string, token: string): _zodios_core.Z
281
280
  size: zod.ZodOptional<zod.ZodUnion<[zod.ZodNumber, zod.ZodNull]>>;
282
281
  legacyKey: zod.ZodOptional<zod.ZodUnion<[zod.ZodString, zod.ZodNull]>>;
283
282
  bucketName: zod.ZodOptional<zod.ZodUnion<[zod.ZodString, zod.ZodNull]>>;
284
- encryptionKey: zod.ZodOptional<zod.ZodUnion<[zod.ZodString, zod.ZodNull]>>;
285
283
  createdBy: zod.ZodOptional<zod.ZodUnion<[zod.ZodString, zod.ZodNull]>>;
286
284
  createdAt: zod.ZodString;
287
285
  deletedAt: zod.ZodOptional<zod.ZodUnion<[zod.ZodString, zod.ZodNull]>>;
@@ -299,7 +297,6 @@ declare function useVaultClient(vaultUrl: string, token: string): _zodios_core.Z
299
297
  mimeType?: string | null | undefined;
300
298
  legacyKey?: string | null | undefined;
301
299
  bucketName?: string | null | undefined;
302
- encryptionKey?: string | null | undefined;
303
300
  uploadedAt?: string | null | undefined;
304
301
  }, {
305
302
  path: string;
@@ -314,10 +311,9 @@ declare function useVaultClient(vaultUrl: string, token: string): _zodios_core.Z
314
311
  mimeType?: string | null | undefined;
315
312
  legacyKey?: string | null | undefined;
316
313
  bucketName?: string | null | undefined;
317
- encryptionKey?: string | null | undefined;
318
314
  uploadedAt?: string | null | undefined;
319
- }>, "many">;
320
- parent: zod.ZodUnion<[zod.ZodObject<{
315
+ }>, "many">>;
316
+ parent: zod.ZodOptional<zod.ZodUnion<[zod.ZodObject<{
321
317
  id: zod.ZodString;
322
318
  path: zod.ZodString;
323
319
  workspaceId: zod.ZodString;
@@ -327,7 +323,6 @@ declare function useVaultClient(vaultUrl: string, token: string): _zodios_core.Z
327
323
  size: zod.ZodOptional<zod.ZodUnion<[zod.ZodNumber, zod.ZodNull]>>;
328
324
  legacyKey: zod.ZodOptional<zod.ZodUnion<[zod.ZodString, zod.ZodNull]>>;
329
325
  bucketName: zod.ZodOptional<zod.ZodUnion<[zod.ZodString, zod.ZodNull]>>;
330
- encryptionKey: zod.ZodOptional<zod.ZodUnion<[zod.ZodString, zod.ZodNull]>>;
331
326
  createdBy: zod.ZodOptional<zod.ZodUnion<[zod.ZodString, zod.ZodNull]>>;
332
327
  createdAt: zod.ZodString;
333
328
  deletedAt: zod.ZodOptional<zod.ZodUnion<[zod.ZodString, zod.ZodNull]>>;
@@ -345,7 +340,6 @@ declare function useVaultClient(vaultUrl: string, token: string): _zodios_core.Z
345
340
  mimeType?: string | null | undefined;
346
341
  legacyKey?: string | null | undefined;
347
342
  bucketName?: string | null | undefined;
348
- encryptionKey?: string | null | undefined;
349
343
  uploadedAt?: string | null | undefined;
350
344
  }, {
351
345
  path: string;
@@ -360,15 +354,23 @@ declare function useVaultClient(vaultUrl: string, token: string): _zodios_core.Z
360
354
  mimeType?: string | null | undefined;
361
355
  legacyKey?: string | null | undefined;
362
356
  bucketName?: string | null | undefined;
363
- encryptionKey?: string | null | undefined;
364
357
  uploadedAt?: string | null | undefined;
365
- }>, zod.ZodNull]>;
358
+ }>, zod.ZodNull]>>;
366
359
  }, "strip", zod.ZodTypeAny, {
367
360
  path: string;
368
361
  workspaceId: string;
369
362
  id: string;
370
363
  createdAt: string;
371
- children: {
364
+ deletedAt?: string | null | undefined;
365
+ originalFileName?: string | null | undefined;
366
+ size?: number | null | undefined;
367
+ createdBy?: string | null | undefined;
368
+ parentId?: string | null | undefined;
369
+ mimeType?: string | null | undefined;
370
+ legacyKey?: string | null | undefined;
371
+ bucketName?: string | null | undefined;
372
+ uploadedAt?: string | null | undefined;
373
+ children?: {
372
374
  path: string;
373
375
  workspaceId: string;
374
376
  id: string;
@@ -381,10 +383,9 @@ declare function useVaultClient(vaultUrl: string, token: string): _zodios_core.Z
381
383
  mimeType?: string | null | undefined;
382
384
  legacyKey?: string | null | undefined;
383
385
  bucketName?: string | null | undefined;
384
- encryptionKey?: string | null | undefined;
385
386
  uploadedAt?: string | null | undefined;
386
- }[];
387
- parent: {
387
+ }[] | undefined;
388
+ parent?: {
388
389
  path: string;
389
390
  workspaceId: string;
390
391
  id: string;
@@ -397,9 +398,13 @@ declare function useVaultClient(vaultUrl: string, token: string): _zodios_core.Z
397
398
  mimeType?: string | null | undefined;
398
399
  legacyKey?: string | null | undefined;
399
400
  bucketName?: string | null | undefined;
400
- encryptionKey?: string | null | undefined;
401
401
  uploadedAt?: string | null | undefined;
402
- } | null;
402
+ } | null | undefined;
403
+ }, {
404
+ path: string;
405
+ workspaceId: string;
406
+ id: string;
407
+ createdAt: string;
403
408
  deletedAt?: string | null | undefined;
404
409
  originalFileName?: string | null | undefined;
405
410
  size?: number | null | undefined;
@@ -408,14 +413,8 @@ declare function useVaultClient(vaultUrl: string, token: string): _zodios_core.Z
408
413
  mimeType?: string | null | undefined;
409
414
  legacyKey?: string | null | undefined;
410
415
  bucketName?: string | null | undefined;
411
- encryptionKey?: string | null | undefined;
412
416
  uploadedAt?: string | null | undefined;
413
- }, {
414
- path: string;
415
- workspaceId: string;
416
- id: string;
417
- createdAt: string;
418
- children: {
417
+ children?: {
419
418
  path: string;
420
419
  workspaceId: string;
421
420
  id: string;
@@ -428,10 +427,9 @@ declare function useVaultClient(vaultUrl: string, token: string): _zodios_core.Z
428
427
  mimeType?: string | null | undefined;
429
428
  legacyKey?: string | null | undefined;
430
429
  bucketName?: string | null | undefined;
431
- encryptionKey?: string | null | undefined;
432
430
  uploadedAt?: string | null | undefined;
433
- }[];
434
- parent: {
431
+ }[] | undefined;
432
+ parent?: {
435
433
  path: string;
436
434
  workspaceId: string;
437
435
  id: string;
@@ -444,9 +442,16 @@ declare function useVaultClient(vaultUrl: string, token: string): _zodios_core.Z
444
442
  mimeType?: string | null | undefined;
445
443
  legacyKey?: string | null | undefined;
446
444
  bucketName?: string | null | undefined;
447
- encryptionKey?: string | null | undefined;
448
445
  uploadedAt?: string | null | undefined;
449
- } | null;
446
+ } | null | undefined;
447
+ }>, zod.ZodNull]>;
448
+ }, "strip", zod.ZodTypeAny, {
449
+ expiresAt: string;
450
+ metadata: {
451
+ path: string;
452
+ workspaceId: string;
453
+ id: string;
454
+ createdAt: string;
450
455
  deletedAt?: string | null | undefined;
451
456
  originalFileName?: string | null | undefined;
452
457
  size?: number | null | undefined;
@@ -455,17 +460,8 @@ declare function useVaultClient(vaultUrl: string, token: string): _zodios_core.Z
455
460
  mimeType?: string | null | undefined;
456
461
  legacyKey?: string | null | undefined;
457
462
  bucketName?: string | null | undefined;
458
- encryptionKey?: string | null | undefined;
459
463
  uploadedAt?: string | null | undefined;
460
- }>, zod.ZodNull]>;
461
- }, "strip", zod.ZodTypeAny, {
462
- expiresAt: string;
463
- metadata: {
464
- path: string;
465
- workspaceId: string;
466
- id: string;
467
- createdAt: string;
468
- children: {
464
+ children?: {
469
465
  path: string;
470
466
  workspaceId: string;
471
467
  id: string;
@@ -478,10 +474,9 @@ declare function useVaultClient(vaultUrl: string, token: string): _zodios_core.Z
478
474
  mimeType?: string | null | undefined;
479
475
  legacyKey?: string | null | undefined;
480
476
  bucketName?: string | null | undefined;
481
- encryptionKey?: string | null | undefined;
482
477
  uploadedAt?: string | null | undefined;
483
- }[];
484
- parent: {
478
+ }[] | undefined;
479
+ parent?: {
485
480
  path: string;
486
481
  workspaceId: string;
487
482
  id: string;
@@ -494,19 +489,8 @@ declare function useVaultClient(vaultUrl: string, token: string): _zodios_core.Z
494
489
  mimeType?: string | null | undefined;
495
490
  legacyKey?: string | null | undefined;
496
491
  bucketName?: string | null | undefined;
497
- encryptionKey?: string | null | undefined;
498
492
  uploadedAt?: string | null | undefined;
499
- } | null;
500
- deletedAt?: string | null | undefined;
501
- originalFileName?: string | null | undefined;
502
- size?: number | null | undefined;
503
- createdBy?: string | null | undefined;
504
- parentId?: string | null | undefined;
505
- mimeType?: string | null | undefined;
506
- legacyKey?: string | null | undefined;
507
- bucketName?: string | null | undefined;
508
- encryptionKey?: string | null | undefined;
509
- uploadedAt?: string | null | undefined;
493
+ } | null | undefined;
510
494
  } | null;
511
495
  url: string;
512
496
  }, {
@@ -516,7 +500,16 @@ declare function useVaultClient(vaultUrl: string, token: string): _zodios_core.Z
516
500
  workspaceId: string;
517
501
  id: string;
518
502
  createdAt: string;
519
- children: {
503
+ deletedAt?: string | null | undefined;
504
+ originalFileName?: string | null | undefined;
505
+ size?: number | null | undefined;
506
+ createdBy?: string | null | undefined;
507
+ parentId?: string | null | undefined;
508
+ mimeType?: string | null | undefined;
509
+ legacyKey?: string | null | undefined;
510
+ bucketName?: string | null | undefined;
511
+ uploadedAt?: string | null | undefined;
512
+ children?: {
520
513
  path: string;
521
514
  workspaceId: string;
522
515
  id: string;
@@ -529,10 +522,9 @@ declare function useVaultClient(vaultUrl: string, token: string): _zodios_core.Z
529
522
  mimeType?: string | null | undefined;
530
523
  legacyKey?: string | null | undefined;
531
524
  bucketName?: string | null | undefined;
532
- encryptionKey?: string | null | undefined;
533
525
  uploadedAt?: string | null | undefined;
534
- }[];
535
- parent: {
526
+ }[] | undefined;
527
+ parent?: {
536
528
  path: string;
537
529
  workspaceId: string;
538
530
  id: string;
@@ -545,19 +537,8 @@ declare function useVaultClient(vaultUrl: string, token: string): _zodios_core.Z
545
537
  mimeType?: string | null | undefined;
546
538
  legacyKey?: string | null | undefined;
547
539
  bucketName?: string | null | undefined;
548
- encryptionKey?: string | null | undefined;
549
540
  uploadedAt?: string | null | undefined;
550
- } | null;
551
- deletedAt?: string | null | undefined;
552
- originalFileName?: string | null | undefined;
553
- size?: number | null | undefined;
554
- createdBy?: string | null | undefined;
555
- parentId?: string | null | undefined;
556
- mimeType?: string | null | undefined;
557
- legacyKey?: string | null | undefined;
558
- bucketName?: string | null | undefined;
559
- encryptionKey?: string | null | undefined;
560
- uploadedAt?: string | null | undefined;
541
+ } | null | undefined;
561
542
  } | null;
562
543
  url: string;
563
544
  }>;
@@ -594,7 +575,6 @@ declare function useVaultClient(vaultUrl: string, token: string): _zodios_core.Z
594
575
  size: zod.ZodOptional<zod.ZodUnion<[zod.ZodNumber, zod.ZodNull]>>;
595
576
  legacyKey: zod.ZodOptional<zod.ZodUnion<[zod.ZodString, zod.ZodNull]>>;
596
577
  bucketName: zod.ZodOptional<zod.ZodUnion<[zod.ZodString, zod.ZodNull]>>;
597
- encryptionKey: zod.ZodOptional<zod.ZodUnion<[zod.ZodString, zod.ZodNull]>>;
598
578
  createdBy: zod.ZodOptional<zod.ZodUnion<[zod.ZodString, zod.ZodNull]>>;
599
579
  createdAt: zod.ZodString;
600
580
  deletedAt: zod.ZodOptional<zod.ZodUnion<[zod.ZodString, zod.ZodNull]>>;
@@ -612,7 +592,6 @@ declare function useVaultClient(vaultUrl: string, token: string): _zodios_core.Z
612
592
  mimeType?: string | null | undefined;
613
593
  legacyKey?: string | null | undefined;
614
594
  bucketName?: string | null | undefined;
615
- encryptionKey?: string | null | undefined;
616
595
  uploadedAt?: string | null | undefined;
617
596
  }, {
618
597
  path: string;
@@ -627,7 +606,6 @@ declare function useVaultClient(vaultUrl: string, token: string): _zodios_core.Z
627
606
  mimeType?: string | null | undefined;
628
607
  legacyKey?: string | null | undefined;
629
608
  bucketName?: string | null | undefined;
630
- encryptionKey?: string | null | undefined;
631
609
  uploadedAt?: string | null | undefined;
632
610
  }>;
633
611
  errors: [{
@@ -671,7 +649,6 @@ declare function useVaultClient(vaultUrl: string, token: string): _zodios_core.Z
671
649
  size: zod.ZodOptional<zod.ZodUnion<[zod.ZodNumber, zod.ZodNull]>>;
672
650
  legacyKey: zod.ZodOptional<zod.ZodUnion<[zod.ZodString, zod.ZodNull]>>;
673
651
  bucketName: zod.ZodOptional<zod.ZodUnion<[zod.ZodString, zod.ZodNull]>>;
674
- encryptionKey: zod.ZodOptional<zod.ZodUnion<[zod.ZodString, zod.ZodNull]>>;
675
652
  createdBy: zod.ZodOptional<zod.ZodUnion<[zod.ZodString, zod.ZodNull]>>;
676
653
  createdAt: zod.ZodString;
677
654
  deletedAt: zod.ZodOptional<zod.ZodUnion<[zod.ZodString, zod.ZodNull]>>;
@@ -689,7 +666,6 @@ declare function useVaultClient(vaultUrl: string, token: string): _zodios_core.Z
689
666
  mimeType?: string | null | undefined;
690
667
  legacyKey?: string | null | undefined;
691
668
  bucketName?: string | null | undefined;
692
- encryptionKey?: string | null | undefined;
693
669
  uploadedAt?: string | null | undefined;
694
670
  }, {
695
671
  path: string;
@@ -704,7 +680,6 @@ declare function useVaultClient(vaultUrl: string, token: string): _zodios_core.Z
704
680
  mimeType?: string | null | undefined;
705
681
  legacyKey?: string | null | undefined;
706
682
  bucketName?: string | null | undefined;
707
- encryptionKey?: string | null | undefined;
708
683
  uploadedAt?: string | null | undefined;
709
684
  }>;
710
685
  }, "strip", zod.ZodTypeAny, {
@@ -724,7 +699,6 @@ declare function useVaultClient(vaultUrl: string, token: string): _zodios_core.Z
724
699
  mimeType?: string | null | undefined;
725
700
  legacyKey?: string | null | undefined;
726
701
  bucketName?: string | null | undefined;
727
- encryptionKey?: string | null | undefined;
728
702
  uploadedAt?: string | null | undefined;
729
703
  };
730
704
  }, {
@@ -744,7 +718,6 @@ declare function useVaultClient(vaultUrl: string, token: string): _zodios_core.Z
744
718
  mimeType?: string | null | undefined;
745
719
  legacyKey?: string | null | undefined;
746
720
  bucketName?: string | null | undefined;
747
- encryptionKey?: string | null | undefined;
748
721
  uploadedAt?: string | null | undefined;
749
722
  };
750
723
  }>;
@@ -787,7 +760,6 @@ declare function useVaultClient(vaultUrl: string, token: string): _zodios_core.Z
787
760
  size: zod.ZodOptional<zod.ZodUnion<[zod.ZodNumber, zod.ZodNull]>>;
788
761
  legacyKey: zod.ZodOptional<zod.ZodUnion<[zod.ZodString, zod.ZodNull]>>;
789
762
  bucketName: zod.ZodOptional<zod.ZodUnion<[zod.ZodString, zod.ZodNull]>>;
790
- encryptionKey: zod.ZodOptional<zod.ZodUnion<[zod.ZodString, zod.ZodNull]>>;
791
763
  createdBy: zod.ZodOptional<zod.ZodUnion<[zod.ZodString, zod.ZodNull]>>;
792
764
  createdAt: zod.ZodString;
793
765
  deletedAt: zod.ZodOptional<zod.ZodUnion<[zod.ZodString, zod.ZodNull]>>;
@@ -805,7 +777,6 @@ declare function useVaultClient(vaultUrl: string, token: string): _zodios_core.Z
805
777
  mimeType?: string | null | undefined;
806
778
  legacyKey?: string | null | undefined;
807
779
  bucketName?: string | null | undefined;
808
- encryptionKey?: string | null | undefined;
809
780
  uploadedAt?: string | null | undefined;
810
781
  }, {
811
782
  path: string;
@@ -820,7 +791,6 @@ declare function useVaultClient(vaultUrl: string, token: string): _zodios_core.Z
820
791
  mimeType?: string | null | undefined;
821
792
  legacyKey?: string | null | undefined;
822
793
  bucketName?: string | null | undefined;
823
- encryptionKey?: string | null | undefined;
824
794
  uploadedAt?: string | null | undefined;
825
795
  }>;
826
796
  errors: [{
@@ -891,7 +861,6 @@ declare function useVaultClient(vaultUrl: string, token: string): _zodios_core.Z
891
861
  size: zod.ZodOptional<zod.ZodUnion<[zod.ZodNumber, zod.ZodNull]>>;
892
862
  legacyKey: zod.ZodOptional<zod.ZodUnion<[zod.ZodString, zod.ZodNull]>>;
893
863
  bucketName: zod.ZodOptional<zod.ZodUnion<[zod.ZodString, zod.ZodNull]>>;
894
- encryptionKey: zod.ZodOptional<zod.ZodUnion<[zod.ZodString, zod.ZodNull]>>;
895
864
  createdBy: zod.ZodOptional<zod.ZodUnion<[zod.ZodString, zod.ZodNull]>>;
896
865
  createdAt: zod.ZodString;
897
866
  deletedAt: zod.ZodOptional<zod.ZodUnion<[zod.ZodString, zod.ZodNull]>>;
@@ -909,7 +878,6 @@ declare function useVaultClient(vaultUrl: string, token: string): _zodios_core.Z
909
878
  mimeType?: string | null | undefined;
910
879
  legacyKey?: string | null | undefined;
911
880
  bucketName?: string | null | undefined;
912
- encryptionKey?: string | null | undefined;
913
881
  uploadedAt?: string | null | undefined;
914
882
  }, {
915
883
  path: string;
@@ -924,7 +892,6 @@ declare function useVaultClient(vaultUrl: string, token: string): _zodios_core.Z
924
892
  mimeType?: string | null | undefined;
925
893
  legacyKey?: string | null | undefined;
926
894
  bucketName?: string | null | undefined;
927
- encryptionKey?: string | null | undefined;
928
895
  uploadedAt?: string | null | undefined;
929
896
  }>, "many">;
930
897
  count: zod.ZodNumber;
@@ -943,7 +910,6 @@ declare function useVaultClient(vaultUrl: string, token: string): _zodios_core.Z
943
910
  mimeType?: string | null | undefined;
944
911
  legacyKey?: string | null | undefined;
945
912
  bucketName?: string | null | undefined;
946
- encryptionKey?: string | null | undefined;
947
913
  uploadedAt?: string | null | undefined;
948
914
  }[];
949
915
  count: number;
@@ -962,7 +928,6 @@ declare function useVaultClient(vaultUrl: string, token: string): _zodios_core.Z
962
928
  mimeType?: string | null | undefined;
963
929
  legacyKey?: string | null | undefined;
964
930
  bucketName?: string | null | undefined;
965
- encryptionKey?: string | null | undefined;
966
931
  uploadedAt?: string | null | undefined;
967
932
  }[];
968
933
  count: number;
@@ -978,15 +943,12 @@ declare function useVaultClient(vaultUrl: string, token: string): _zodios_core.Z
978
943
  type: "Body";
979
944
  schema: zod.ZodObject<{
980
945
  bucketName: zod.ZodString;
981
- keyArns: zod.ZodArray<zod.ZodString, "many">;
982
946
  defaultS3LinkTtl: zod.ZodNumber;
983
947
  }, "strip", zod.ZodTypeAny, {
984
948
  bucketName: string;
985
- keyArns: string[];
986
949
  defaultS3LinkTtl: number;
987
950
  }, {
988
951
  bucketName: string;
989
- keyArns: string[];
990
952
  defaultS3LinkTtl: number;
991
953
  }>;
992
954
  }, {
@@ -1012,15 +974,12 @@ declare function useVaultClient(vaultUrl: string, token: string): _zodios_core.Z
1012
974
  }];
1013
975
  response: zod.ZodObject<{
1014
976
  bucketName: zod.ZodString;
1015
- keyArns: zod.ZodArray<zod.ZodString, "many">;
1016
977
  defaultS3LinkTtl: zod.ZodNumber;
1017
978
  }, "strip", zod.ZodTypeAny, {
1018
979
  bucketName: string;
1019
- keyArns: string[];
1020
980
  defaultS3LinkTtl: number;
1021
981
  }, {
1022
982
  bucketName: string;
1023
- keyArns: string[];
1024
983
  defaultS3LinkTtl: number;
1025
984
  }>;
1026
985
  }, {
@@ -1034,6 +993,202 @@ declare function useVaultClient(vaultUrl: string, token: string): _zodios_core.Z
1034
993
  schema: zod.ZodString;
1035
994
  }];
1036
995
  response: zod.ZodVoid;
996
+ }, {
997
+ method: "post";
998
+ path: "/assets";
999
+ description: "Create an asset and get a pre-signed upload URL for the dedicated assets bucket.";
1000
+ requestFormat: "json";
1001
+ parameters: [{
1002
+ name: "body";
1003
+ type: "Body";
1004
+ schema: zod.ZodObject<{
1005
+ assetClass: zod.ZodString;
1006
+ subject: zod.ZodString;
1007
+ mimeType: zod.ZodEnum<["image/png", "image/jpeg", "image/gif", "image/webp", "image/avif"]>;
1008
+ size: zod.ZodOptional<zod.ZodNumber>;
1009
+ }, "strip", zod.ZodTypeAny, {
1010
+ mimeType: "image/png" | "image/jpeg" | "image/gif" | "image/webp" | "image/avif";
1011
+ assetClass: string;
1012
+ subject: string;
1013
+ size?: number | undefined;
1014
+ }, {
1015
+ mimeType: "image/png" | "image/jpeg" | "image/gif" | "image/webp" | "image/avif";
1016
+ assetClass: string;
1017
+ subject: string;
1018
+ size?: number | undefined;
1019
+ }>;
1020
+ }, {
1021
+ name: "expiresIn";
1022
+ type: "Query";
1023
+ schema: zod.ZodDefault<zod.ZodOptional<zod.ZodNumber>>;
1024
+ }];
1025
+ response: zod.ZodObject<{
1026
+ assetId: zod.ZodString;
1027
+ assetUrl: zod.ZodString;
1028
+ uploadUrl: zod.ZodString;
1029
+ expiresAt: zod.ZodString;
1030
+ uploadHeaders: zod.ZodObject<{
1031
+ "cache-control": zod.ZodString;
1032
+ "content-disposition": zod.ZodString;
1033
+ "content-type": zod.ZodString;
1034
+ "if-none-match": zod.ZodString;
1035
+ }, "strip", zod.ZodTypeAny, {
1036
+ "cache-control": string;
1037
+ "content-disposition": string;
1038
+ "content-type": string;
1039
+ "if-none-match": string;
1040
+ }, {
1041
+ "cache-control": string;
1042
+ "content-disposition": string;
1043
+ "content-type": string;
1044
+ "if-none-match": string;
1045
+ }>;
1046
+ asset: zod.ZodObject<{
1047
+ id: zod.ZodString;
1048
+ path: zod.ZodString;
1049
+ assetUrl: zod.ZodString;
1050
+ assetClass: zod.ZodString;
1051
+ subject: zod.ZodString;
1052
+ mimeType: zod.ZodString;
1053
+ size: zod.ZodOptional<zod.ZodUnion<[zod.ZodNumber, zod.ZodNull]>>;
1054
+ bucketName: zod.ZodOptional<zod.ZodUnion<[zod.ZodString, zod.ZodNull]>>;
1055
+ createdBy: zod.ZodOptional<zod.ZodUnion<[zod.ZodString, zod.ZodNull]>>;
1056
+ createdAt: zod.ZodString;
1057
+ uploadedAt: zod.ZodOptional<zod.ZodUnion<[zod.ZodString, zod.ZodNull]>>;
1058
+ deletedAt: zod.ZodOptional<zod.ZodUnion<[zod.ZodString, zod.ZodNull]>>;
1059
+ }, "strip", zod.ZodTypeAny, {
1060
+ path: string;
1061
+ id: string;
1062
+ createdAt: string;
1063
+ mimeType: string;
1064
+ assetClass: string;
1065
+ subject: string;
1066
+ assetUrl: string;
1067
+ deletedAt?: string | null | undefined;
1068
+ size?: number | null | undefined;
1069
+ createdBy?: string | null | undefined;
1070
+ bucketName?: string | null | undefined;
1071
+ uploadedAt?: string | null | undefined;
1072
+ }, {
1073
+ path: string;
1074
+ id: string;
1075
+ createdAt: string;
1076
+ mimeType: string;
1077
+ assetClass: string;
1078
+ subject: string;
1079
+ assetUrl: string;
1080
+ deletedAt?: string | null | undefined;
1081
+ size?: number | null | undefined;
1082
+ createdBy?: string | null | undefined;
1083
+ bucketName?: string | null | undefined;
1084
+ uploadedAt?: string | null | undefined;
1085
+ }>;
1086
+ }, "strip", zod.ZodTypeAny, {
1087
+ uploadUrl: string;
1088
+ expiresAt: string;
1089
+ assetId: string;
1090
+ assetUrl: string;
1091
+ uploadHeaders: {
1092
+ "cache-control": string;
1093
+ "content-disposition": string;
1094
+ "content-type": string;
1095
+ "if-none-match": string;
1096
+ };
1097
+ asset: {
1098
+ path: string;
1099
+ id: string;
1100
+ createdAt: string;
1101
+ mimeType: string;
1102
+ assetClass: string;
1103
+ subject: string;
1104
+ assetUrl: string;
1105
+ deletedAt?: string | null | undefined;
1106
+ size?: number | null | undefined;
1107
+ createdBy?: string | null | undefined;
1108
+ bucketName?: string | null | undefined;
1109
+ uploadedAt?: string | null | undefined;
1110
+ };
1111
+ }, {
1112
+ uploadUrl: string;
1113
+ expiresAt: string;
1114
+ assetId: string;
1115
+ assetUrl: string;
1116
+ uploadHeaders: {
1117
+ "cache-control": string;
1118
+ "content-disposition": string;
1119
+ "content-type": string;
1120
+ "if-none-match": string;
1121
+ };
1122
+ asset: {
1123
+ path: string;
1124
+ id: string;
1125
+ createdAt: string;
1126
+ mimeType: string;
1127
+ assetClass: string;
1128
+ subject: string;
1129
+ assetUrl: string;
1130
+ deletedAt?: string | null | undefined;
1131
+ size?: number | null | undefined;
1132
+ createdBy?: string | null | undefined;
1133
+ bucketName?: string | null | undefined;
1134
+ uploadedAt?: string | null | undefined;
1135
+ };
1136
+ }>;
1137
+ }, {
1138
+ method: "get";
1139
+ path: "/assets/:assetId";
1140
+ description: "Get a stored asset by ID, including its stable CloudFront URL.";
1141
+ requestFormat: "json";
1142
+ parameters: [{
1143
+ name: "assetId";
1144
+ type: "Path";
1145
+ schema: zod.ZodString;
1146
+ }];
1147
+ response: zod.ZodObject<{
1148
+ id: zod.ZodString;
1149
+ path: zod.ZodString;
1150
+ assetUrl: zod.ZodString;
1151
+ assetClass: zod.ZodString;
1152
+ subject: zod.ZodString;
1153
+ mimeType: zod.ZodString;
1154
+ size: zod.ZodOptional<zod.ZodUnion<[zod.ZodNumber, zod.ZodNull]>>;
1155
+ bucketName: zod.ZodOptional<zod.ZodUnion<[zod.ZodString, zod.ZodNull]>>;
1156
+ createdBy: zod.ZodOptional<zod.ZodUnion<[zod.ZodString, zod.ZodNull]>>;
1157
+ createdAt: zod.ZodString;
1158
+ uploadedAt: zod.ZodOptional<zod.ZodUnion<[zod.ZodString, zod.ZodNull]>>;
1159
+ deletedAt: zod.ZodOptional<zod.ZodUnion<[zod.ZodString, zod.ZodNull]>>;
1160
+ }, "strip", zod.ZodTypeAny, {
1161
+ path: string;
1162
+ id: string;
1163
+ createdAt: string;
1164
+ mimeType: string;
1165
+ assetClass: string;
1166
+ subject: string;
1167
+ assetUrl: string;
1168
+ deletedAt?: string | null | undefined;
1169
+ size?: number | null | undefined;
1170
+ createdBy?: string | null | undefined;
1171
+ bucketName?: string | null | undefined;
1172
+ uploadedAt?: string | null | undefined;
1173
+ }, {
1174
+ path: string;
1175
+ id: string;
1176
+ createdAt: string;
1177
+ mimeType: string;
1178
+ assetClass: string;
1179
+ subject: string;
1180
+ assetUrl: string;
1181
+ deletedAt?: string | null | undefined;
1182
+ size?: number | null | undefined;
1183
+ createdBy?: string | null | undefined;
1184
+ bucketName?: string | null | undefined;
1185
+ uploadedAt?: string | null | undefined;
1186
+ }>;
1187
+ errors: [{
1188
+ status: 404;
1189
+ description: string;
1190
+ schema: zod.ZodVoid;
1191
+ }];
1037
1192
  }, {
1038
1193
  method: "post";
1039
1194
  path: "/files";
@@ -1051,9 +1206,7 @@ declare function useVaultClient(vaultUrl: string, token: string): _zodios_core.Z
1051
1206
  size: zod.ZodOptional<zod.ZodNumber>;
1052
1207
  mimeType: zod.ZodOptional<zod.ZodString>;
1053
1208
  createdBy: zod.ZodOptional<zod.ZodString>;
1054
- path: zod.ZodOptional<zod.ZodString>;
1055
1209
  }, "strip", zod.ZodTypeAny, {
1056
- path?: string | undefined;
1057
1210
  size?: number | undefined;
1058
1211
  createdBy?: string | undefined;
1059
1212
  fileName?: string | undefined;
@@ -1063,7 +1216,6 @@ declare function useVaultClient(vaultUrl: string, token: string): _zodios_core.Z
1063
1216
  sha256sum?: string | undefined;
1064
1217
  mimeType?: string | undefined;
1065
1218
  }, {
1066
- path?: string | undefined;
1067
1219
  size?: number | undefined;
1068
1220
  createdBy?: string | undefined;
1069
1221
  fileName?: string | undefined;
@@ -1092,7 +1244,6 @@ declare function useVaultClient(vaultUrl: string, token: string): _zodios_core.Z
1092
1244
  size: zod.ZodOptional<zod.ZodUnion<[zod.ZodNumber, zod.ZodNull]>>;
1093
1245
  legacyKey: zod.ZodOptional<zod.ZodUnion<[zod.ZodString, zod.ZodNull]>>;
1094
1246
  bucketName: zod.ZodOptional<zod.ZodUnion<[zod.ZodString, zod.ZodNull]>>;
1095
- encryptionKey: zod.ZodOptional<zod.ZodUnion<[zod.ZodString, zod.ZodNull]>>;
1096
1247
  createdBy: zod.ZodOptional<zod.ZodUnion<[zod.ZodString, zod.ZodNull]>>;
1097
1248
  createdAt: zod.ZodString;
1098
1249
  deletedAt: zod.ZodOptional<zod.ZodUnion<[zod.ZodString, zod.ZodNull]>>;
@@ -1110,7 +1261,6 @@ declare function useVaultClient(vaultUrl: string, token: string): _zodios_core.Z
1110
1261
  mimeType?: string | null | undefined;
1111
1262
  legacyKey?: string | null | undefined;
1112
1263
  bucketName?: string | null | undefined;
1113
- encryptionKey?: string | null | undefined;
1114
1264
  uploadedAt?: string | null | undefined;
1115
1265
  }, {
1116
1266
  path: string;
@@ -1125,7 +1275,6 @@ declare function useVaultClient(vaultUrl: string, token: string): _zodios_core.Z
1125
1275
  mimeType?: string | null | undefined;
1126
1276
  legacyKey?: string | null | undefined;
1127
1277
  bucketName?: string | null | undefined;
1128
- encryptionKey?: string | null | undefined;
1129
1278
  uploadedAt?: string | null | undefined;
1130
1279
  }>;
1131
1280
  path: zod.ZodString;
@@ -1147,7 +1296,6 @@ declare function useVaultClient(vaultUrl: string, token: string): _zodios_core.Z
1147
1296
  mimeType?: string | null | undefined;
1148
1297
  legacyKey?: string | null | undefined;
1149
1298
  bucketName?: string | null | undefined;
1150
- encryptionKey?: string | null | undefined;
1151
1299
  uploadedAt?: string | null | undefined;
1152
1300
  };
1153
1301
  }, {
@@ -1168,7 +1316,6 @@ declare function useVaultClient(vaultUrl: string, token: string): _zodios_core.Z
1168
1316
  mimeType?: string | null | undefined;
1169
1317
  legacyKey?: string | null | undefined;
1170
1318
  bucketName?: string | null | undefined;
1171
- encryptionKey?: string | null | undefined;
1172
1319
  uploadedAt?: string | null | undefined;
1173
1320
  };
1174
1321
  }>;
@@ -1217,7 +1364,6 @@ declare function useVaultClient(vaultUrl: string, token: string): _zodios_core.Z
1217
1364
  size: zod.ZodOptional<zod.ZodUnion<[zod.ZodNumber, zod.ZodNull]>>;
1218
1365
  legacyKey: zod.ZodOptional<zod.ZodUnion<[zod.ZodString, zod.ZodNull]>>;
1219
1366
  bucketName: zod.ZodOptional<zod.ZodUnion<[zod.ZodString, zod.ZodNull]>>;
1220
- encryptionKey: zod.ZodOptional<zod.ZodUnion<[zod.ZodString, zod.ZodNull]>>;
1221
1367
  createdBy: zod.ZodOptional<zod.ZodUnion<[zod.ZodString, zod.ZodNull]>>;
1222
1368
  createdAt: zod.ZodString;
1223
1369
  deletedAt: zod.ZodOptional<zod.ZodUnion<[zod.ZodString, zod.ZodNull]>>;
@@ -1235,7 +1381,6 @@ declare function useVaultClient(vaultUrl: string, token: string): _zodios_core.Z
1235
1381
  mimeType?: string | null | undefined;
1236
1382
  legacyKey?: string | null | undefined;
1237
1383
  bucketName?: string | null | undefined;
1238
- encryptionKey?: string | null | undefined;
1239
1384
  uploadedAt?: string | null | undefined;
1240
1385
  }, {
1241
1386
  path: string;
@@ -1250,7 +1395,6 @@ declare function useVaultClient(vaultUrl: string, token: string): _zodios_core.Z
1250
1395
  mimeType?: string | null | undefined;
1251
1396
  legacyKey?: string | null | undefined;
1252
1397
  bucketName?: string | null | undefined;
1253
- encryptionKey?: string | null | undefined;
1254
1398
  uploadedAt?: string | null | undefined;
1255
1399
  }>, "many">;
1256
1400
  count: zod.ZodNumber;
@@ -1269,7 +1413,6 @@ declare function useVaultClient(vaultUrl: string, token: string): _zodios_core.Z
1269
1413
  mimeType?: string | null | undefined;
1270
1414
  legacyKey?: string | null | undefined;
1271
1415
  bucketName?: string | null | undefined;
1272
- encryptionKey?: string | null | undefined;
1273
1416
  uploadedAt?: string | null | undefined;
1274
1417
  }[];
1275
1418
  count: number;
@@ -1288,7 +1431,6 @@ declare function useVaultClient(vaultUrl: string, token: string): _zodios_core.Z
1288
1431
  mimeType?: string | null | undefined;
1289
1432
  legacyKey?: string | null | undefined;
1290
1433
  bucketName?: string | null | undefined;
1291
- encryptionKey?: string | null | undefined;
1292
1434
  uploadedAt?: string | null | undefined;
1293
1435
  }[];
1294
1436
  count: number;
@@ -1321,7 +1463,6 @@ declare function useVaultClient(vaultUrl: string, token: string): _zodios_core.Z
1321
1463
  size: zod.ZodOptional<zod.ZodUnion<[zod.ZodNumber, zod.ZodNull]>>;
1322
1464
  legacyKey: zod.ZodOptional<zod.ZodUnion<[zod.ZodString, zod.ZodNull]>>;
1323
1465
  bucketName: zod.ZodOptional<zod.ZodUnion<[zod.ZodString, zod.ZodNull]>>;
1324
- encryptionKey: zod.ZodOptional<zod.ZodUnion<[zod.ZodString, zod.ZodNull]>>;
1325
1466
  createdBy: zod.ZodOptional<zod.ZodUnion<[zod.ZodString, zod.ZodNull]>>;
1326
1467
  createdAt: zod.ZodString;
1327
1468
  deletedAt: zod.ZodOptional<zod.ZodUnion<[zod.ZodString, zod.ZodNull]>>;
@@ -1339,7 +1480,6 @@ declare function useVaultClient(vaultUrl: string, token: string): _zodios_core.Z
1339
1480
  mimeType?: string | null | undefined;
1340
1481
  legacyKey?: string | null | undefined;
1341
1482
  bucketName?: string | null | undefined;
1342
- encryptionKey?: string | null | undefined;
1343
1483
  uploadedAt?: string | null | undefined;
1344
1484
  }, {
1345
1485
  path: string;
@@ -1354,7 +1494,6 @@ declare function useVaultClient(vaultUrl: string, token: string): _zodios_core.Z
1354
1494
  mimeType?: string | null | undefined;
1355
1495
  legacyKey?: string | null | undefined;
1356
1496
  bucketName?: string | null | undefined;
1357
- encryptionKey?: string | null | undefined;
1358
1497
  uploadedAt?: string | null | undefined;
1359
1498
  }>, zod.ZodNull]>;
1360
1499
  }, "strip", zod.ZodTypeAny, {
@@ -1372,7 +1511,6 @@ declare function useVaultClient(vaultUrl: string, token: string): _zodios_core.Z
1372
1511
  mimeType?: string | null | undefined;
1373
1512
  legacyKey?: string | null | undefined;
1374
1513
  bucketName?: string | null | undefined;
1375
- encryptionKey?: string | null | undefined;
1376
1514
  uploadedAt?: string | null | undefined;
1377
1515
  } | null;
1378
1516
  url: string;
@@ -1391,7 +1529,6 @@ declare function useVaultClient(vaultUrl: string, token: string): _zodios_core.Z
1391
1529
  mimeType?: string | null | undefined;
1392
1530
  legacyKey?: string | null | undefined;
1393
1531
  bucketName?: string | null | undefined;
1394
- encryptionKey?: string | null | undefined;
1395
1532
  uploadedAt?: string | null | undefined;
1396
1533
  } | null;
1397
1534
  url: string;
@@ -1431,7 +1568,6 @@ declare function useVaultClient(vaultUrl: string, token: string): _zodios_core.Z
1431
1568
  size: zod.ZodOptional<zod.ZodUnion<[zod.ZodNumber, zod.ZodNull]>>;
1432
1569
  legacyKey: zod.ZodOptional<zod.ZodUnion<[zod.ZodString, zod.ZodNull]>>;
1433
1570
  bucketName: zod.ZodOptional<zod.ZodUnion<[zod.ZodString, zod.ZodNull]>>;
1434
- encryptionKey: zod.ZodOptional<zod.ZodUnion<[zod.ZodString, zod.ZodNull]>>;
1435
1571
  createdBy: zod.ZodOptional<zod.ZodUnion<[zod.ZodString, zod.ZodNull]>>;
1436
1572
  createdAt: zod.ZodString;
1437
1573
  deletedAt: zod.ZodOptional<zod.ZodUnion<[zod.ZodString, zod.ZodNull]>>;
@@ -1449,7 +1585,6 @@ declare function useVaultClient(vaultUrl: string, token: string): _zodios_core.Z
1449
1585
  mimeType?: string | null | undefined;
1450
1586
  legacyKey?: string | null | undefined;
1451
1587
  bucketName?: string | null | undefined;
1452
- encryptionKey?: string | null | undefined;
1453
1588
  uploadedAt?: string | null | undefined;
1454
1589
  }, {
1455
1590
  path: string;
@@ -1464,9 +1599,116 @@ declare function useVaultClient(vaultUrl: string, token: string): _zodios_core.Z
1464
1599
  mimeType?: string | null | undefined;
1465
1600
  legacyKey?: string | null | undefined;
1466
1601
  bucketName?: string | null | undefined;
1467
- encryptionKey?: string | null | undefined;
1468
1602
  uploadedAt?: string | null | undefined;
1469
1603
  }>;
1604
+ }, {
1605
+ method: "post";
1606
+ path: "/files/:fileId/multipart";
1607
+ description: "Initiate a multipart upload for a file.";
1608
+ requestFormat: "json";
1609
+ parameters: [{
1610
+ name: "fileId";
1611
+ type: "Path";
1612
+ schema: zod.ZodString;
1613
+ }];
1614
+ response: zod.ZodObject<{
1615
+ uploadId: zod.ZodString;
1616
+ }, "strip", zod.ZodTypeAny, {
1617
+ uploadId: string;
1618
+ }, {
1619
+ uploadId: string;
1620
+ }>;
1621
+ }, {
1622
+ method: "delete";
1623
+ path: "/files/:fileId/multipart";
1624
+ description: "Abort a multipart upload and discard its uploaded parts.";
1625
+ requestFormat: "json";
1626
+ parameters: [{
1627
+ name: "uploadId";
1628
+ type: "Query";
1629
+ schema: zod.ZodString;
1630
+ }, {
1631
+ name: "fileId";
1632
+ type: "Path";
1633
+ schema: zod.ZodString;
1634
+ }];
1635
+ response: zod.ZodVoid;
1636
+ }, {
1637
+ method: "post";
1638
+ path: "/files/:fileId/multipart/complete";
1639
+ description: "Complete a multipart upload and assemble the file in S3.";
1640
+ requestFormat: "json";
1641
+ parameters: [{
1642
+ name: "body";
1643
+ type: "Body";
1644
+ schema: zod.ZodObject<{
1645
+ uploadId: zod.ZodString;
1646
+ parts: zod.ZodArray<zod.ZodObject<{
1647
+ partNumber: zod.ZodNumber;
1648
+ etag: zod.ZodString;
1649
+ }, "strip", zod.ZodTypeAny, {
1650
+ partNumber: number;
1651
+ etag: string;
1652
+ }, {
1653
+ partNumber: number;
1654
+ etag: string;
1655
+ }>, "many">;
1656
+ }, "strip", zod.ZodTypeAny, {
1657
+ uploadId: string;
1658
+ parts: {
1659
+ partNumber: number;
1660
+ etag: string;
1661
+ }[];
1662
+ }, {
1663
+ uploadId: string;
1664
+ parts: {
1665
+ partNumber: number;
1666
+ etag: string;
1667
+ }[];
1668
+ }>;
1669
+ }, {
1670
+ name: "fileId";
1671
+ type: "Path";
1672
+ schema: zod.ZodString;
1673
+ }];
1674
+ response: zod.ZodVoid;
1675
+ }, {
1676
+ method: "post";
1677
+ path: "/files/:fileId/multipart/part";
1678
+ description: "Get a pre-signed URL for one multipart upload part.";
1679
+ requestFormat: "json";
1680
+ parameters: [{
1681
+ name: "body";
1682
+ type: "Body";
1683
+ schema: zod.ZodObject<{
1684
+ uploadId: zod.ZodString;
1685
+ partNumber: zod.ZodNumber;
1686
+ }, "strip", zod.ZodTypeAny, {
1687
+ uploadId: string;
1688
+ partNumber: number;
1689
+ }, {
1690
+ uploadId: string;
1691
+ partNumber: number;
1692
+ }>;
1693
+ }, {
1694
+ name: "expiresIn";
1695
+ type: "Query";
1696
+ schema: zod.ZodDefault<zod.ZodOptional<zod.ZodNumber>>;
1697
+ }, {
1698
+ name: "fileId";
1699
+ type: "Path";
1700
+ schema: zod.ZodString;
1701
+ }];
1702
+ response: zod.ZodObject<{
1703
+ uploadUrl: zod.ZodString;
1704
+ expiresAt: zod.ZodString;
1705
+ }, "strip", zod.ZodTypeAny, {
1706
+ uploadUrl: string;
1707
+ expiresAt: string;
1708
+ }, {
1709
+ uploadUrl: string;
1710
+ expiresAt: string;
1711
+ }>;
1470
1712
  }, {
1471
1713
  method: "post";
1472
1714
  path: "/files/:fileId/permalinks";
@@ -1541,64 +1783,6 @@ declare function useVaultClient(vaultUrl: string, token: string): _zodios_core.Z
1541
1783
  expiresAt: string | null;
1542
1784
  fileId: string;
1543
1785
  }>, "many">;
1544
- }, {
1545
- method: "post";
1546
- path: "/files/:filename";
1547
- description: "Create a file and get a pre-signed upload URL (legacy endpoint).\n\nThis endpoint is deprecated. Use POST /files instead with &#x60;originalFileName&#x60; in the request body.\n\nThe &#x60;sha256&#x60; body param is used as the file&#x27;s primary key. If not provided, a random UUID will be generated.\n\nThe returned &#x60;url&#x60; is valid for 1 hour by default. You can change the expiration time by passing the &#x60;expiresIn&#x60; query parameter.\n";
1548
- requestFormat: "json";
1549
- parameters: [{
1550
- name: "body";
1551
- type: "Body";
1552
- schema: zod.ZodObject<{
1553
- fileName: zod.ZodOptional<zod.ZodString>;
1554
- parentId: zod.ZodOptional<zod.ZodString>;
1555
- onMissingParent: zod.ZodOptional<zod.ZodDefault<zod.ZodEnum<["error", "create-as-root"]>>>;
1556
- onParentConflict: zod.ZodOptional<zod.ZodDefault<zod.ZodEnum<["error", "update-parent-id", "ignore"]>>>;
1557
- sha256sum: zod.ZodOptional<zod.ZodString>;
1558
- size: zod.ZodOptional<zod.ZodNumber>;
1559
- mimeType: zod.ZodOptional<zod.ZodString>;
1560
- createdBy: zod.ZodOptional<zod.ZodString>;
1561
- path: zod.ZodOptional<zod.ZodString>;
1562
- }, "strip", zod.ZodTypeAny, {
1563
- path?: string | undefined;
1564
- size?: number | undefined;
1565
- createdBy?: string | undefined;
1566
- fileName?: string | undefined;
1567
- parentId?: string | undefined;
1568
- onMissingParent?: "error" | "create-as-root" | undefined;
1569
- onParentConflict?: "error" | "update-parent-id" | "ignore" | undefined;
1570
- sha256sum?: string | undefined;
1571
- mimeType?: string | undefined;
1572
- }, {
1573
- path?: string | undefined;
1574
- size?: number | undefined;
1575
- createdBy?: string | undefined;
1576
- fileName?: string | undefined;
1577
- parentId?: string | undefined;
1578
- onMissingParent?: "error" | "create-as-root" | undefined;
1579
- onParentConflict?: "error" | "update-parent-id" | "ignore" | undefined;
1580
- sha256sum?: string | undefined;
1581
- mimeType?: string | undefined;
1582
- }>;
1583
- }, {
1584
- name: "expiresIn";
1585
- type: "Query";
1586
- schema: zod.ZodDefault<zod.ZodOptional<zod.ZodNumber>>;
1587
- }, {
1588
- name: "filename";
1589
- type: "Path";
1590
- schema: zod.ZodString;
1591
- }];
1592
- response: zod.ZodObject<{
1593
- url: zod.ZodString;
1594
- expiresAt: zod.ZodString;
1595
- }, "strip", zod.ZodTypeAny, {
1596
- expiresAt: string;
1597
- url: string;
1598
- }, {
1599
- expiresAt: string;
1600
- url: string;
1601
- }>;
1602
1786
  }, {
1603
1787
  method: "put";
1604
1788
  path: "/files/:id";
@@ -1613,7 +1797,7 @@ declare function useVaultClient(vaultUrl: string, token: string): _zodios_core.Z
1613
1797
  type: "Path";
1614
1798
  schema: zod.ZodString;
1615
1799
  }];
1616
- response: zod.ZodUnion<[zod.ZodObject<{
1800
+ response: zod.ZodObject<{
1617
1801
  id: zod.ZodString;
1618
1802
  uploadUrl: zod.ZodString;
1619
1803
  expiresAt: zod.ZodString;
@@ -1627,7 +1811,6 @@ declare function useVaultClient(vaultUrl: string, token: string): _zodios_core.Z
1627
1811
  size: zod.ZodOptional<zod.ZodUnion<[zod.ZodNumber, zod.ZodNull]>>;
1628
1812
  legacyKey: zod.ZodOptional<zod.ZodUnion<[zod.ZodString, zod.ZodNull]>>;
1629
1813
  bucketName: zod.ZodOptional<zod.ZodUnion<[zod.ZodString, zod.ZodNull]>>;
1630
- encryptionKey: zod.ZodOptional<zod.ZodUnion<[zod.ZodString, zod.ZodNull]>>;
1631
1814
  createdBy: zod.ZodOptional<zod.ZodUnion<[zod.ZodString, zod.ZodNull]>>;
1632
1815
  createdAt: zod.ZodString;
1633
1816
  deletedAt: zod.ZodOptional<zod.ZodUnion<[zod.ZodString, zod.ZodNull]>>;
@@ -1645,7 +1828,6 @@ declare function useVaultClient(vaultUrl: string, token: string): _zodios_core.Z
1645
1828
  mimeType?: string | null | undefined;
1646
1829
  legacyKey?: string | null | undefined;
1647
1830
  bucketName?: string | null | undefined;
1648
- encryptionKey?: string | null | undefined;
1649
1831
  uploadedAt?: string | null | undefined;
1650
1832
  }, {
1651
1833
  path: string;
@@ -1660,7 +1842,6 @@ declare function useVaultClient(vaultUrl: string, token: string): _zodios_core.Z
1660
1842
  mimeType?: string | null | undefined;
1661
1843
  legacyKey?: string | null | undefined;
1662
1844
  bucketName?: string | null | undefined;
1663
- encryptionKey?: string | null | undefined;
1664
1845
  uploadedAt?: string | null | undefined;
1665
1846
  }>;
1666
1847
  }, "strip", zod.ZodTypeAny, {
@@ -1680,7 +1861,6 @@ declare function useVaultClient(vaultUrl: string, token: string): _zodios_core.Z
1680
1861
  mimeType?: string | null | undefined;
1681
1862
  legacyKey?: string | null | undefined;
1682
1863
  bucketName?: string | null | undefined;
1683
- encryptionKey?: string | null | undefined;
1684
1864
  uploadedAt?: string | null | undefined;
1685
1865
  };
1686
1866
  }, {
@@ -1700,19 +1880,9 @@ declare function useVaultClient(vaultUrl: string, token: string): _zodios_core.Z
1700
1880
  mimeType?: string | null | undefined;
1701
1881
  legacyKey?: string | null | undefined;
1702
1882
  bucketName?: string | null | undefined;
1703
- encryptionKey?: string | null | undefined;
1704
1883
  uploadedAt?: string | null | undefined;
1705
1884
  };
1706
- }>, zod.ZodObject<{
1707
- url: zod.ZodString;
1708
- expiresAt: zod.ZodString;
1709
- }, "strip", zod.ZodTypeAny, {
1710
- expiresAt: string;
1711
- url: string;
1712
- }, {
1713
- expiresAt: string;
1714
- url: string;
1715
- }>]>;
1885
+ }>;
1716
1886
  }, {
1717
1887
  method: "delete";
1718
1888
  path: "/files/:id";
@@ -1744,7 +1914,6 @@ declare function useVaultClient(vaultUrl: string, token: string): _zodios_core.Z
1744
1914
  size: zod.ZodOptional<zod.ZodUnion<[zod.ZodNumber, zod.ZodNull]>>;
1745
1915
  legacyKey: zod.ZodOptional<zod.ZodUnion<[zod.ZodString, zod.ZodNull]>>;
1746
1916
  bucketName: zod.ZodOptional<zod.ZodUnion<[zod.ZodString, zod.ZodNull]>>;
1747
- encryptionKey: zod.ZodOptional<zod.ZodUnion<[zod.ZodString, zod.ZodNull]>>;
1748
1917
  createdBy: zod.ZodOptional<zod.ZodUnion<[zod.ZodString, zod.ZodNull]>>;
1749
1918
  createdAt: zod.ZodString;
1750
1919
  deletedAt: zod.ZodOptional<zod.ZodUnion<[zod.ZodString, zod.ZodNull]>>;
@@ -1762,7 +1931,6 @@ declare function useVaultClient(vaultUrl: string, token: string): _zodios_core.Z
1762
1931
  mimeType?: string | null | undefined;
1763
1932
  legacyKey?: string | null | undefined;
1764
1933
  bucketName?: string | null | undefined;
1765
- encryptionKey?: string | null | undefined;
1766
1934
  uploadedAt?: string | null | undefined;
1767
1935
  }, {
1768
1936
  path: string;
@@ -1777,7 +1945,6 @@ declare function useVaultClient(vaultUrl: string, token: string): _zodios_core.Z
1777
1945
  mimeType?: string | null | undefined;
1778
1946
  legacyKey?: string | null | undefined;
1779
1947
  bucketName?: string | null | undefined;
1780
- encryptionKey?: string | null | undefined;
1781
1948
  uploadedAt?: string | null | undefined;
1782
1949
  }>;
1783
1950
  errors: [{
@@ -1822,7 +1989,6 @@ declare function useVaultClient(vaultUrl: string, token: string): _zodios_core.Z
1822
1989
  size: zod.ZodOptional<zod.ZodUnion<[zod.ZodNumber, zod.ZodNull]>>;
1823
1990
  legacyKey: zod.ZodOptional<zod.ZodUnion<[zod.ZodString, zod.ZodNull]>>;
1824
1991
  bucketName: zod.ZodOptional<zod.ZodUnion<[zod.ZodString, zod.ZodNull]>>;
1825
- encryptionKey: zod.ZodOptional<zod.ZodUnion<[zod.ZodString, zod.ZodNull]>>;
1826
1992
  createdBy: zod.ZodOptional<zod.ZodUnion<[zod.ZodString, zod.ZodNull]>>;
1827
1993
  createdAt: zod.ZodString;
1828
1994
  deletedAt: zod.ZodOptional<zod.ZodUnion<[zod.ZodString, zod.ZodNull]>>;
@@ -1840,7 +2006,6 @@ declare function useVaultClient(vaultUrl: string, token: string): _zodios_core.Z
1840
2006
  mimeType?: string | null | undefined;
1841
2007
  legacyKey?: string | null | undefined;
1842
2008
  bucketName?: string | null | undefined;
1843
- encryptionKey?: string | null | undefined;
1844
2009
  uploadedAt?: string | null | undefined;
1845
2010
  }, {
1846
2011
  path: string;
@@ -1855,7 +2020,6 @@ declare function useVaultClient(vaultUrl: string, token: string): _zodios_core.Z
1855
2020
  mimeType?: string | null | undefined;
1856
2021
  legacyKey?: string | null | undefined;
1857
2022
  bucketName?: string | null | undefined;
1858
- encryptionKey?: string | null | undefined;
1859
2023
  uploadedAt?: string | null | undefined;
1860
2024
  }>, "many">;
1861
2025
  count: zod.ZodNumber;
@@ -1873,7 +2037,6 @@ declare function useVaultClient(vaultUrl: string, token: string): _zodios_core.Z
1873
2037
  mimeType?: string | null | undefined;
1874
2038
  legacyKey?: string | null | undefined;
1875
2039
  bucketName?: string | null | undefined;
1876
- encryptionKey?: string | null | undefined;
1877
2040
  uploadedAt?: string | null | undefined;
1878
2041
  }[];
1879
2042
  count: number;
@@ -1891,7 +2054,6 @@ declare function useVaultClient(vaultUrl: string, token: string): _zodios_core.Z
1891
2054
  mimeType?: string | null | undefined;
1892
2055
  legacyKey?: string | null | undefined;
1893
2056
  bucketName?: string | null | undefined;
1894
- encryptionKey?: string | null | undefined;
1895
2057
  uploadedAt?: string | null | undefined;
1896
2058
  }[];
1897
2059
  count: number;
@@ -1913,9 +2075,7 @@ declare function useVaultClient(vaultUrl: string, token: string): _zodios_core.Z
1913
2075
  size: zod.ZodOptional<zod.ZodNumber>;
1914
2076
  mimeType: zod.ZodOptional<zod.ZodString>;
1915
2077
  createdBy: zod.ZodOptional<zod.ZodString>;
1916
- path: zod.ZodOptional<zod.ZodString>;
1917
2078
  }, "strip", zod.ZodTypeAny, {
1918
- path?: string | undefined;
1919
2079
  size?: number | undefined;
1920
2080
  createdBy?: string | undefined;
1921
2081
  fileName?: string | undefined;
@@ -1925,7 +2085,6 @@ declare function useVaultClient(vaultUrl: string, token: string): _zodios_core.Z
1925
2085
  sha256sum?: string | undefined;
1926
2086
  mimeType?: string | undefined;
1927
2087
  }, {
1928
- path?: string | undefined;
1929
2088
  size?: number | undefined;
1930
2089
  createdBy?: string | undefined;
1931
2090
  fileName?: string | undefined;
@@ -1950,7 +2109,6 @@ declare function useVaultClient(vaultUrl: string, token: string): _zodios_core.Z
1950
2109
  size: zod.ZodOptional<zod.ZodUnion<[zod.ZodNumber, zod.ZodNull]>>;
1951
2110
  legacyKey: zod.ZodOptional<zod.ZodUnion<[zod.ZodString, zod.ZodNull]>>;
1952
2111
  bucketName: zod.ZodOptional<zod.ZodUnion<[zod.ZodString, zod.ZodNull]>>;
1953
- encryptionKey: zod.ZodOptional<zod.ZodUnion<[zod.ZodString, zod.ZodNull]>>;
1954
2112
  createdBy: zod.ZodOptional<zod.ZodUnion<[zod.ZodString, zod.ZodNull]>>;
1955
2113
  createdAt: zod.ZodString;
1956
2114
  deletedAt: zod.ZodOptional<zod.ZodUnion<[zod.ZodString, zod.ZodNull]>>;
@@ -1968,7 +2126,6 @@ declare function useVaultClient(vaultUrl: string, token: string): _zodios_core.Z
1968
2126
  mimeType?: string | null | undefined;
1969
2127
  legacyKey?: string | null | undefined;
1970
2128
  bucketName?: string | null | undefined;
1971
- encryptionKey?: string | null | undefined;
1972
2129
  uploadedAt?: string | null | undefined;
1973
2130
  }, {
1974
2131
  path: string;
@@ -1983,7 +2140,6 @@ declare function useVaultClient(vaultUrl: string, token: string): _zodios_core.Z
1983
2140
  mimeType?: string | null | undefined;
1984
2141
  legacyKey?: string | null | undefined;
1985
2142
  bucketName?: string | null | undefined;
1986
- encryptionKey?: string | null | undefined;
1987
2143
  uploadedAt?: string | null | undefined;
1988
2144
  }>;
1989
2145
  path: zod.ZodString;
@@ -2005,7 +2161,6 @@ declare function useVaultClient(vaultUrl: string, token: string): _zodios_core.Z
2005
2161
  mimeType?: string | null | undefined;
2006
2162
  legacyKey?: string | null | undefined;
2007
2163
  bucketName?: string | null | undefined;
2008
- encryptionKey?: string | null | undefined;
2009
2164
  uploadedAt?: string | null | undefined;
2010
2165
  };
2011
2166
  }, {
@@ -2026,10 +2181,129 @@ declare function useVaultClient(vaultUrl: string, token: string): _zodios_core.Z
2026
2181
  mimeType?: string | null | undefined;
2027
2182
  legacyKey?: string | null | undefined;
2028
2183
  bucketName?: string | null | undefined;
2029
- encryptionKey?: string | null | undefined;
2030
2184
  uploadedAt?: string | null | undefined;
2031
2185
  };
2032
2186
  }>, "many">;
2187
+ }, {
2188
+ method: "post";
2189
+ path: "/files/download-urls/bulk";
2190
+ description: "Read up to 100 files and sign their download URLs. Results preserve input order and duplicates. Missing, deleted and inaccessible files all return not_found.";
2191
+ requestFormat: "json";
2192
+ parameters: [{
2193
+ name: "body";
2194
+ type: "Body";
2195
+ schema: zod.ZodObject<{
2196
+ fileIds: zod.ZodArray<zod.ZodString, "many">;
2197
+ expiresIn: zod.ZodOptional<zod.ZodNumber>;
2198
+ preserveFileName: zod.ZodDefault<zod.ZodOptional<zod.ZodBoolean>>;
2199
+ }, "strip", zod.ZodTypeAny, {
2200
+ preserveFileName: boolean;
2201
+ fileIds: string[];
2202
+ expiresIn?: number | undefined;
2203
+ }, {
2204
+ fileIds: string[];
2205
+ expiresIn?: number | undefined;
2206
+ preserveFileName?: boolean | undefined;
2207
+ }>;
2208
+ }];
2209
+ response: zod.ZodArray<zod.ZodUnion<[zod.ZodObject<{
2210
+ id: zod.ZodString;
2211
+ status: zod.ZodString;
2212
+ url: zod.ZodString;
2213
+ expiresAt: zod.ZodString;
2214
+ metadata: zod.ZodObject<{
2215
+ id: zod.ZodString;
2216
+ path: zod.ZodString;
2217
+ workspaceId: zod.ZodString;
2218
+ parentId: zod.ZodOptional<zod.ZodUnion<[zod.ZodString, zod.ZodNull]>>;
2219
+ originalFileName: zod.ZodOptional<zod.ZodUnion<[zod.ZodString, zod.ZodNull]>>;
2220
+ mimeType: zod.ZodOptional<zod.ZodUnion<[zod.ZodString, zod.ZodNull]>>;
2221
+ size: zod.ZodOptional<zod.ZodUnion<[zod.ZodNumber, zod.ZodNull]>>;
2222
+ legacyKey: zod.ZodOptional<zod.ZodUnion<[zod.ZodString, zod.ZodNull]>>;
2223
+ bucketName: zod.ZodOptional<zod.ZodUnion<[zod.ZodString, zod.ZodNull]>>;
2224
+ createdBy: zod.ZodOptional<zod.ZodUnion<[zod.ZodString, zod.ZodNull]>>;
2225
+ createdAt: zod.ZodString;
2226
+ deletedAt: zod.ZodOptional<zod.ZodUnion<[zod.ZodString, zod.ZodNull]>>;
2227
+ uploadedAt: zod.ZodOptional<zod.ZodUnion<[zod.ZodString, zod.ZodNull]>>;
2228
+ }, "strip", zod.ZodTypeAny, {
2229
+ path: string;
2230
+ workspaceId: string;
2231
+ id: string;
2232
+ createdAt: string;
2233
+ deletedAt?: string | null | undefined;
2234
+ originalFileName?: string | null | undefined;
2235
+ size?: number | null | undefined;
2236
+ createdBy?: string | null | undefined;
2237
+ parentId?: string | null | undefined;
2238
+ mimeType?: string | null | undefined;
2239
+ legacyKey?: string | null | undefined;
2240
+ bucketName?: string | null | undefined;
2241
+ uploadedAt?: string | null | undefined;
2242
+ }, {
2243
+ path: string;
2244
+ workspaceId: string;
2245
+ id: string;
2246
+ createdAt: string;
2247
+ deletedAt?: string | null | undefined;
2248
+ originalFileName?: string | null | undefined;
2249
+ size?: number | null | undefined;
2250
+ createdBy?: string | null | undefined;
2251
+ parentId?: string | null | undefined;
2252
+ mimeType?: string | null | undefined;
2253
+ legacyKey?: string | null | undefined;
2254
+ bucketName?: string | null | undefined;
2255
+ uploadedAt?: string | null | undefined;
2256
+ }>;
2257
+ }, "strip", zod.ZodTypeAny, {
2258
+ status: string;
2259
+ id: string;
2260
+ expiresAt: string;
2261
+ metadata: {
2262
+ path: string;
2263
+ workspaceId: string;
2264
+ id: string;
2265
+ createdAt: string;
2266
+ deletedAt?: string | null | undefined;
2267
+ originalFileName?: string | null | undefined;
2268
+ size?: number | null | undefined;
2269
+ createdBy?: string | null | undefined;
2270
+ parentId?: string | null | undefined;
2271
+ mimeType?: string | null | undefined;
2272
+ legacyKey?: string | null | undefined;
2273
+ bucketName?: string | null | undefined;
2274
+ uploadedAt?: string | null | undefined;
2275
+ };
2276
+ url: string;
2277
+ }, {
2278
+ status: string;
2279
+ id: string;
2280
+ expiresAt: string;
2281
+ metadata: {
2282
+ path: string;
2283
+ workspaceId: string;
2284
+ id: string;
2285
+ createdAt: string;
2286
+ deletedAt?: string | null | undefined;
2287
+ originalFileName?: string | null | undefined;
2288
+ size?: number | null | undefined;
2289
+ createdBy?: string | null | undefined;
2290
+ parentId?: string | null | undefined;
2291
+ mimeType?: string | null | undefined;
2292
+ legacyKey?: string | null | undefined;
2293
+ bucketName?: string | null | undefined;
2294
+ uploadedAt?: string | null | undefined;
2295
+ };
2296
+ url: string;
2297
+ }>, zod.ZodObject<{
2298
+ id: zod.ZodString;
2299
+ status: zod.ZodEnum<["not_found", "error"]>;
2300
+ }, "strip", zod.ZodTypeAny, {
2301
+ status: "error" | "not_found";
2302
+ id: string;
2303
+ }, {
2304
+ status: "error" | "not_found";
2305
+ id: string;
2306
+ }>]>, "many">;
2033
2307
  }, {
2034
2308
  method: "get";
2035
2309
  path: "/permalinks/:permalinkId";