@meistrari/vault-http-client 2.3.6 → 2.3.10

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.cjs CHANGED
@@ -3,37 +3,32 @@
3
3
  const core = require('@zodios/core');
4
4
  const zod = require('zod');
5
5
 
6
- const put_WorkspacesByWorkspaceIdSettings_Body = zod.z.object({
7
- bucketName: zod.z.string().min(1),
8
- keyArns: zod.z.array(zod.z.string()).min(1),
9
- defaultS3LinkTtl: zod.z.number().gte(1)
10
- });
11
- const post_Files_Body = zod.z.object({
12
- fileName: zod.z.string(),
13
- sha256sum: zod.z.string().optional(),
14
- size: zod.z.number().optional(),
15
- mimeType: zod.z.string().optional(),
16
- createdBy: zod.z.string().optional()
17
- });
18
6
  const postFilesBulk_Body = zod.z.union([
19
7
  zod.z.array(
20
8
  zod.z.object({
21
9
  fileName: zod.z.string(),
22
- sha256sum: zod.z.string().optional(),
23
- size: zod.z.number().optional(),
24
- mimeType: zod.z.string().optional(),
25
- createdBy: zod.z.string().optional()
26
- })
10
+ sha256sum: zod.z.string(),
11
+ size: zod.z.number(),
12
+ mimeType: zod.z.string(),
13
+ createdBy: zod.z.string(),
14
+ path: zod.z.string()
15
+ }).partial()
27
16
  ),
28
17
  zod.z.object({ files: zod.z.array(zod.z.string()) })
29
18
  ]);
30
- const postFilesByFilename_Body = zod.z.object({
19
+ const postFiles_Body = zod.z.object({
31
20
  fileName: zod.z.string(),
32
21
  sha256sum: zod.z.string(),
33
22
  size: zod.z.number(),
34
23
  mimeType: zod.z.string(),
35
- createdBy: zod.z.string()
24
+ createdBy: zod.z.string(),
25
+ path: zod.z.string()
36
26
  }).partial();
27
+ const put_WorkspacesByWorkspaceIdSettings_Body = zod.z.object({
28
+ bucketName: zod.z.string().min(1),
29
+ keyArns: zod.z.array(zod.z.string()).min(1),
30
+ defaultS3LinkTtl: zod.z.number().gte(1)
31
+ });
37
32
  const endpoints = core.makeApi([
38
33
  {
39
34
  method: "get",
@@ -108,7 +103,7 @@ The returned `uploadUrl` is valid for 1 hour by default. You can chang
108
103
  {
109
104
  name: "body",
110
105
  type: "Body",
111
- schema: post_Files_Body
106
+ schema: postFiles_Body
112
107
  },
113
108
  {
114
109
  name: "expiresIn",
@@ -121,31 +116,26 @@ The returned `uploadUrl` is valid for 1 hour by default. You can chang
121
116
  schema: zod.z.string()
122
117
  }
123
118
  ],
124
- response: zod.z.union([
125
- zod.z.object({
119
+ response: zod.z.object({
120
+ id: zod.z.string(),
121
+ uploadUrl: zod.z.string().url(),
122
+ expiresAt: zod.z.string().datetime({ offset: true }),
123
+ metadata: zod.z.object({
126
124
  id: zod.z.string(),
127
- uploadUrl: zod.z.string(),
128
- expiresAt: zod.z.string().datetime({ offset: true }),
129
- metadata: zod.z.object({
130
- id: zod.z.string(),
131
- path: zod.z.string(),
132
- workspaceId: zod.z.string(),
133
- originalFileName: zod.z.union([zod.z.string(), zod.z.null()]).optional(),
134
- mimeType: zod.z.union([zod.z.string(), zod.z.null()]).optional(),
135
- size: zod.z.union([zod.z.number(), zod.z.null()]).optional(),
136
- legacyKey: zod.z.union([zod.z.string(), zod.z.null()]).optional(),
137
- bucketName: zod.z.union([zod.z.string(), zod.z.null()]).optional(),
138
- encryptionKey: zod.z.union([zod.z.string(), zod.z.null()]).optional(),
139
- createdBy: zod.z.union([zod.z.string(), zod.z.null()]).optional(),
140
- createdAt: zod.z.string(),
141
- deletedAt: zod.z.union([zod.z.string(), zod.z.null()]).optional()
142
- })
143
- }),
144
- zod.z.object({
145
- url: zod.z.string(),
146
- expiresAt: zod.z.string().datetime({ offset: true })
125
+ path: zod.z.string(),
126
+ workspaceId: zod.z.string(),
127
+ originalFileName: zod.z.union([zod.z.string(), zod.z.null()]).optional(),
128
+ mimeType: zod.z.union([zod.z.string(), zod.z.null()]).optional(),
129
+ size: zod.z.union([zod.z.number(), zod.z.null()]).optional(),
130
+ legacyKey: zod.z.union([zod.z.string(), zod.z.null()]).optional(),
131
+ bucketName: zod.z.union([zod.z.string(), zod.z.null()]).optional(),
132
+ encryptionKey: zod.z.union([zod.z.string(), zod.z.null()]).optional(),
133
+ createdBy: zod.z.union([zod.z.string(), zod.z.null()]).optional(),
134
+ createdAt: zod.z.string(),
135
+ deletedAt: zod.z.union([zod.z.string(), zod.z.null()]).optional(),
136
+ uploadedAt: zod.z.union([zod.z.string(), zod.z.null()]).optional()
147
137
  })
148
- ])
138
+ })
149
139
  },
150
140
  {
151
141
  method: "get",
@@ -185,7 +175,8 @@ The returned `uploadUrl` is valid for 1 hour by default. You can chang
185
175
  encryptionKey: zod.z.union([zod.z.string(), zod.z.null()]).optional(),
186
176
  createdBy: zod.z.union([zod.z.string(), zod.z.null()]).optional(),
187
177
  createdAt: zod.z.string(),
188
- deletedAt: zod.z.union([zod.z.string(), zod.z.null()]).optional()
178
+ deletedAt: zod.z.union([zod.z.string(), zod.z.null()]).optional(),
179
+ uploadedAt: zod.z.union([zod.z.string(), zod.z.null()]).optional()
189
180
  }),
190
181
  zod.z.null()
191
182
  ])
@@ -232,7 +223,8 @@ The returned `uploadUrl` is valid for 1 hour by default. You can chang
232
223
  encryptionKey: zod.z.union([zod.z.string(), zod.z.null()]).optional(),
233
224
  createdBy: zod.z.union([zod.z.string(), zod.z.null()]).optional(),
234
225
  createdAt: zod.z.string(),
235
- deletedAt: zod.z.union([zod.z.string(), zod.z.null()]).optional()
226
+ deletedAt: zod.z.union([zod.z.string(), zod.z.null()]).optional(),
227
+ uploadedAt: zod.z.union([zod.z.string(), zod.z.null()]).optional()
236
228
  }),
237
229
  errors: [
238
230
  {
@@ -269,31 +261,26 @@ The returned `uploadUrl` is valid for 1 hour by default. You can chang
269
261
  schema: zod.z.string()
270
262
  }
271
263
  ],
272
- response: zod.z.union([
273
- zod.z.object({
264
+ response: zod.z.object({
265
+ id: zod.z.string(),
266
+ uploadUrl: zod.z.string().url(),
267
+ expiresAt: zod.z.string().datetime({ offset: true }),
268
+ metadata: zod.z.object({
274
269
  id: zod.z.string(),
275
- uploadUrl: zod.z.string().url(),
276
- expiresAt: zod.z.string().datetime({ offset: true }),
277
- metadata: zod.z.object({
278
- id: zod.z.string(),
279
- path: zod.z.string(),
280
- workspaceId: zod.z.string(),
281
- originalFileName: zod.z.union([zod.z.string(), zod.z.null()]).optional(),
282
- mimeType: zod.z.union([zod.z.string(), zod.z.null()]).optional(),
283
- size: zod.z.union([zod.z.number(), zod.z.null()]).optional(),
284
- legacyKey: zod.z.union([zod.z.string(), zod.z.null()]).optional(),
285
- bucketName: zod.z.union([zod.z.string(), zod.z.null()]).optional(),
286
- encryptionKey: zod.z.union([zod.z.string(), zod.z.null()]).optional(),
287
- createdBy: zod.z.union([zod.z.string(), zod.z.null()]).optional(),
288
- createdAt: zod.z.string(),
289
- deletedAt: zod.z.union([zod.z.string(), zod.z.null()]).optional()
290
- })
291
- }),
292
- zod.z.object({
293
- url: zod.z.string().url(),
294
- expiresAt: zod.z.string().datetime({ offset: true })
270
+ path: zod.z.string(),
271
+ workspaceId: zod.z.string(),
272
+ originalFileName: zod.z.union([zod.z.string(), zod.z.null()]).optional(),
273
+ mimeType: zod.z.union([zod.z.string(), zod.z.null()]).optional(),
274
+ size: zod.z.union([zod.z.number(), zod.z.null()]).optional(),
275
+ legacyKey: zod.z.union([zod.z.string(), zod.z.null()]).optional(),
276
+ bucketName: zod.z.union([zod.z.string(), zod.z.null()]).optional(),
277
+ encryptionKey: zod.z.union([zod.z.string(), zod.z.null()]).optional(),
278
+ createdBy: zod.z.union([zod.z.string(), zod.z.null()]).optional(),
279
+ createdAt: zod.z.string(),
280
+ deletedAt: zod.z.union([zod.z.string(), zod.z.null()]).optional(),
281
+ uploadedAt: zod.z.union([zod.z.string(), zod.z.null()]).optional()
295
282
  })
296
- ])
283
+ })
297
284
  },
298
285
  {
299
286
  method: "delete",
@@ -343,7 +330,8 @@ The returned `uploadUrl` is valid for 1 hour by default. You can chang
343
330
  encryptionKey: zod.z.union([zod.z.string(), zod.z.null()]).optional(),
344
331
  createdBy: zod.z.union([zod.z.string(), zod.z.null()]).optional(),
345
332
  createdAt: zod.z.string(),
346
- deletedAt: zod.z.union([zod.z.string(), zod.z.null()]).optional()
333
+ deletedAt: zod.z.union([zod.z.string(), zod.z.null()]).optional(),
334
+ uploadedAt: zod.z.union([zod.z.string(), zod.z.null()]).optional()
347
335
  }),
348
336
  errors: [
349
337
  {
@@ -415,7 +403,8 @@ The returned `uploadUrl` is valid for 1 hour by default. You can chang
415
403
  encryptionKey: zod.z.union([zod.z.string(), zod.z.null()]).optional(),
416
404
  createdBy: zod.z.union([zod.z.string(), zod.z.null()]).optional(),
417
405
  createdAt: zod.z.string(),
418
- deletedAt: zod.z.union([zod.z.string(), zod.z.null()]).optional()
406
+ deletedAt: zod.z.union([zod.z.string(), zod.z.null()]).optional(),
407
+ uploadedAt: zod.z.union([zod.z.string(), zod.z.null()]).optional()
419
408
  })
420
409
  ),
421
410
  count: zod.z.number(),
@@ -466,6 +455,64 @@ The returned `uploadUrl` is valid for 1 hour by default. You can chang
466
455
  defaultS3LinkTtl: zod.z.number().gte(1)
467
456
  })
468
457
  },
458
+ {
459
+ method: "patch",
460
+ path: "/:id/uploaded-at",
461
+ description: `Set the uploaded at timestamp for a file.`,
462
+ requestFormat: "json",
463
+ parameters: [
464
+ {
465
+ name: "id",
466
+ type: "Path",
467
+ schema: zod.z.string()
468
+ }
469
+ ],
470
+ response: zod.z.void()
471
+ },
472
+ {
473
+ method: "post",
474
+ path: "/files",
475
+ description: `Create a file and get a pre-signed upload URL.
476
+
477
+ The `sha256` body param is used as the file's primary key. If not provided, a random UUID will be generated.
478
+
479
+ The returned `uploadUrl` is valid for 1 hour by default. You can change the expiration time by passing the `expiresIn` query parameter.
480
+ `,
481
+ requestFormat: "json",
482
+ parameters: [
483
+ {
484
+ name: "body",
485
+ type: "Body",
486
+ schema: postFiles_Body
487
+ },
488
+ {
489
+ name: "expiresIn",
490
+ type: "Query",
491
+ schema: zod.z.number().optional().default(3600)
492
+ }
493
+ ],
494
+ response: zod.z.object({
495
+ id: zod.z.string(),
496
+ uploadUrl: zod.z.string(),
497
+ expiresAt: zod.z.string().datetime({ offset: true }),
498
+ metadata: zod.z.object({
499
+ id: zod.z.string(),
500
+ path: zod.z.string(),
501
+ workspaceId: zod.z.string(),
502
+ originalFileName: zod.z.union([zod.z.string(), zod.z.null()]).optional(),
503
+ mimeType: zod.z.union([zod.z.string(), zod.z.null()]).optional(),
504
+ size: zod.z.union([zod.z.number(), zod.z.null()]).optional(),
505
+ legacyKey: zod.z.union([zod.z.string(), zod.z.null()]).optional(),
506
+ bucketName: zod.z.union([zod.z.string(), zod.z.null()]).optional(),
507
+ encryptionKey: zod.z.union([zod.z.string(), zod.z.null()]).optional(),
508
+ createdBy: zod.z.union([zod.z.string(), zod.z.null()]).optional(),
509
+ createdAt: zod.z.string(),
510
+ deletedAt: zod.z.union([zod.z.string(), zod.z.null()]).optional(),
511
+ uploadedAt: zod.z.union([zod.z.string(), zod.z.null()]).optional()
512
+ }),
513
+ path: zod.z.string()
514
+ })
515
+ },
469
516
  {
470
517
  method: "get",
471
518
  path: "/files/:fileId",
@@ -494,7 +541,8 @@ The returned `uploadUrl` is valid for 1 hour by default. You can chang
494
541
  encryptionKey: zod.z.union([zod.z.string(), zod.z.null()]).optional(),
495
542
  createdBy: zod.z.union([zod.z.string(), zod.z.null()]).optional(),
496
543
  createdAt: zod.z.string(),
497
- deletedAt: zod.z.union([zod.z.string(), zod.z.null()]).optional()
544
+ deletedAt: zod.z.union([zod.z.string(), zod.z.null()]).optional(),
545
+ uploadedAt: zod.z.union([zod.z.string(), zod.z.null()]).optional()
498
546
  }),
499
547
  zod.z.null()
500
548
  ])
@@ -562,20 +610,20 @@ The returned permalink ID should be used with the `/permalinks/:permalinkId
562
610
  {
563
611
  method: "post",
564
612
  path: "/files/:filename",
565
- description: `Create a file and get a pre-signed upload URL.
613
+ description: `Create a file and get a pre-signed upload URL (legacy endpoint).
566
614
 
567
- The `sha256` body param is used as the file's primary key. If not provided, a random UUID will be generated.
615
+ This endpoint is deprecated. Use POST /files instead with `originalFileName` in the request body.
568
616
 
569
- The `filename` parameter is deprecated. Use the `originalFileName` parameter in the request body instead. Either way, the information about the file name is stored in the `metadata.originalFileName` field.
617
+ The `sha256` body param is used as the file's primary key. If not provided, a random UUID will be generated.
570
618
 
571
- The returned `uploadUrl` is valid for 1 hour by default. You can change the expiration time by passing the `expiresIn` query parameter.
619
+ The returned `url` is valid for 1 hour by default. You can change the expiration time by passing the `expiresIn` query parameter.
572
620
  `,
573
621
  requestFormat: "json",
574
622
  parameters: [
575
623
  {
576
624
  name: "body",
577
625
  type: "Body",
578
- schema: postFilesByFilename_Body
626
+ schema: postFiles_Body
579
627
  },
580
628
  {
581
629
  name: "expiresIn",
@@ -588,31 +636,10 @@ The returned `uploadUrl` is valid for 1 hour by default. You can chang
588
636
  schema: zod.z.string()
589
637
  }
590
638
  ],
591
- response: zod.z.union([
592
- zod.z.object({
593
- id: zod.z.string(),
594
- uploadUrl: zod.z.string(),
595
- expiresAt: zod.z.string().datetime({ offset: true }),
596
- metadata: zod.z.object({
597
- id: zod.z.string(),
598
- path: zod.z.string(),
599
- workspaceId: zod.z.string(),
600
- originalFileName: zod.z.union([zod.z.string(), zod.z.null()]).optional(),
601
- mimeType: zod.z.union([zod.z.string(), zod.z.null()]).optional(),
602
- size: zod.z.union([zod.z.number(), zod.z.null()]).optional(),
603
- legacyKey: zod.z.union([zod.z.string(), zod.z.null()]).optional(),
604
- bucketName: zod.z.union([zod.z.string(), zod.z.null()]).optional(),
605
- encryptionKey: zod.z.union([zod.z.string(), zod.z.null()]).optional(),
606
- createdBy: zod.z.union([zod.z.string(), zod.z.null()]).optional(),
607
- createdAt: zod.z.string(),
608
- deletedAt: zod.z.union([zod.z.string(), zod.z.null()]).optional()
609
- })
610
- }),
611
- zod.z.object({
612
- url: zod.z.string(),
613
- expiresAt: zod.z.string().datetime({ offset: true })
614
- })
615
- ])
639
+ response: zod.z.object({
640
+ url: zod.z.string(),
641
+ expiresAt: zod.z.string().datetime({ offset: true })
642
+ })
616
643
  },
617
644
  {
618
645
  method: "put",
@@ -648,7 +675,8 @@ The returned `uploadUrl` is valid for 1 hour by default. You can chang
648
675
  encryptionKey: zod.z.union([zod.z.string(), zod.z.null()]).optional(),
649
676
  createdBy: zod.z.union([zod.z.string(), zod.z.null()]).optional(),
650
677
  createdAt: zod.z.string(),
651
- deletedAt: zod.z.union([zod.z.string(), zod.z.null()]).optional()
678
+ deletedAt: zod.z.union([zod.z.string(), zod.z.null()]).optional(),
679
+ uploadedAt: zod.z.union([zod.z.string(), zod.z.null()]).optional()
652
680
  })
653
681
  }),
654
682
  zod.z.object({
@@ -695,7 +723,8 @@ The returned `uploadUrl` is valid for 1 hour by default. You can chang
695
723
  encryptionKey: zod.z.union([zod.z.string(), zod.z.null()]).optional(),
696
724
  createdBy: zod.z.union([zod.z.string(), zod.z.null()]).optional(),
697
725
  createdAt: zod.z.string(),
698
- deletedAt: zod.z.union([zod.z.string(), zod.z.null()]).optional()
726
+ deletedAt: zod.z.union([zod.z.string(), zod.z.null()]).optional(),
727
+ uploadedAt: zod.z.union([zod.z.string(), zod.z.null()]).optional()
699
728
  }),
700
729
  errors: [
701
730
  {
@@ -731,7 +760,8 @@ The returned `uploadUrl` is valid for 1 hour by default. You can chang
731
760
  encryptionKey: zod.z.union([zod.z.string(), zod.z.null()]).optional(),
732
761
  createdBy: zod.z.union([zod.z.string(), zod.z.null()]).optional(),
733
762
  createdAt: zod.z.string(),
734
- deletedAt: zod.z.union([zod.z.string(), zod.z.null()]).optional()
763
+ deletedAt: zod.z.union([zod.z.string(), zod.z.null()]).optional(),
764
+ uploadedAt: zod.z.union([zod.z.string(), zod.z.null()]).optional()
735
765
  })
736
766
  ),
737
767
  zod.z.object({
@@ -748,7 +778,8 @@ The returned `uploadUrl` is valid for 1 hour by default. You can chang
748
778
  encryptionKey: zod.z.union([zod.z.string(), zod.z.null()]).optional(),
749
779
  createdBy: zod.z.union([zod.z.string(), zod.z.null()]).optional(),
750
780
  createdAt: zod.z.string(),
751
- deletedAt: zod.z.union([zod.z.string(), zod.z.null()]).optional()
781
+ deletedAt: zod.z.union([zod.z.string(), zod.z.null()]).optional(),
782
+ uploadedAt: zod.z.union([zod.z.string(), zod.z.null()]).optional()
752
783
  })
753
784
  )
754
785
  })
@@ -825,6 +856,64 @@ Make sure to follow redirects to the actual file download URL.
825
856
  }
826
857
  ]
827
858
  },
859
+ {
860
+ method: "patch",
861
+ path: "/v2/:id/uploaded-at",
862
+ description: `Set the uploaded at timestamp for a file.`,
863
+ requestFormat: "json",
864
+ parameters: [
865
+ {
866
+ name: "id",
867
+ type: "Path",
868
+ schema: zod.z.string()
869
+ }
870
+ ],
871
+ response: zod.z.void()
872
+ },
873
+ {
874
+ method: "post",
875
+ path: "/v2/files",
876
+ description: `Create a file and get a pre-signed upload URL.
877
+
878
+ The `sha256` body param is used as the file's primary key. If not provided, a random UUID will be generated.
879
+
880
+ The returned `uploadUrl` is valid for 1 hour by default. You can change the expiration time by passing the `expiresIn` query parameter.
881
+ `,
882
+ requestFormat: "json",
883
+ parameters: [
884
+ {
885
+ name: "body",
886
+ type: "Body",
887
+ schema: postFiles_Body
888
+ },
889
+ {
890
+ name: "expiresIn",
891
+ type: "Query",
892
+ schema: zod.z.number().optional().default(3600)
893
+ }
894
+ ],
895
+ response: zod.z.object({
896
+ id: zod.z.string(),
897
+ uploadUrl: zod.z.string(),
898
+ expiresAt: zod.z.string().datetime({ offset: true }),
899
+ metadata: zod.z.object({
900
+ id: zod.z.string(),
901
+ path: zod.z.string(),
902
+ workspaceId: zod.z.string(),
903
+ originalFileName: zod.z.union([zod.z.string(), zod.z.null()]).optional(),
904
+ mimeType: zod.z.union([zod.z.string(), zod.z.null()]).optional(),
905
+ size: zod.z.union([zod.z.number(), zod.z.null()]).optional(),
906
+ legacyKey: zod.z.union([zod.z.string(), zod.z.null()]).optional(),
907
+ bucketName: zod.z.union([zod.z.string(), zod.z.null()]).optional(),
908
+ encryptionKey: zod.z.union([zod.z.string(), zod.z.null()]).optional(),
909
+ createdBy: zod.z.union([zod.z.string(), zod.z.null()]).optional(),
910
+ createdAt: zod.z.string(),
911
+ deletedAt: zod.z.union([zod.z.string(), zod.z.null()]).optional(),
912
+ uploadedAt: zod.z.union([zod.z.string(), zod.z.null()]).optional()
913
+ }),
914
+ path: zod.z.string()
915
+ })
916
+ },
828
917
  {
829
918
  method: "get",
830
919
  path: "/v2/files/:fileId",
@@ -853,7 +942,8 @@ Make sure to follow redirects to the actual file download URL.
853
942
  encryptionKey: zod.z.union([zod.z.string(), zod.z.null()]).optional(),
854
943
  createdBy: zod.z.union([zod.z.string(), zod.z.null()]).optional(),
855
944
  createdAt: zod.z.string(),
856
- deletedAt: zod.z.union([zod.z.string(), zod.z.null()]).optional()
945
+ deletedAt: zod.z.union([zod.z.string(), zod.z.null()]).optional(),
946
+ uploadedAt: zod.z.union([zod.z.string(), zod.z.null()]).optional()
857
947
  }),
858
948
  zod.z.null()
859
949
  ])
@@ -869,20 +959,20 @@ Make sure to follow redirects to the actual file download URL.
869
959
  {
870
960
  method: "post",
871
961
  path: "/v2/files/:filename",
872
- description: `Create a file and get a pre-signed upload URL.
962
+ description: `Create a file and get a pre-signed upload URL (legacy endpoint).
873
963
 
874
- The `sha256` body param is used as the file's primary key. If not provided, a random UUID will be generated.
964
+ This endpoint is deprecated. Use POST /files instead with `originalFileName` in the request body.
875
965
 
876
- The `filename` parameter is deprecated. Use the `originalFileName` parameter in the request body instead. Either way, the information about the file name is stored in the `metadata.originalFileName` field.
966
+ The `sha256` body param is used as the file's primary key. If not provided, a random UUID will be generated.
877
967
 
878
- The returned `uploadUrl` is valid for 1 hour by default. You can change the expiration time by passing the `expiresIn` query parameter.
968
+ The returned `url` is valid for 1 hour by default. You can change the expiration time by passing the `expiresIn` query parameter.
879
969
  `,
880
970
  requestFormat: "json",
881
971
  parameters: [
882
972
  {
883
973
  name: "body",
884
974
  type: "Body",
885
- schema: postFilesByFilename_Body
975
+ schema: postFiles_Body
886
976
  },
887
977
  {
888
978
  name: "expiresIn",
@@ -895,31 +985,10 @@ The returned `uploadUrl` is valid for 1 hour by default. You can chang
895
985
  schema: zod.z.string()
896
986
  }
897
987
  ],
898
- response: zod.z.union([
899
- zod.z.object({
900
- id: zod.z.string(),
901
- uploadUrl: zod.z.string(),
902
- expiresAt: zod.z.string().datetime({ offset: true }),
903
- metadata: zod.z.object({
904
- id: zod.z.string(),
905
- path: zod.z.string(),
906
- workspaceId: zod.z.string(),
907
- originalFileName: zod.z.union([zod.z.string(), zod.z.null()]).optional(),
908
- mimeType: zod.z.union([zod.z.string(), zod.z.null()]).optional(),
909
- size: zod.z.union([zod.z.number(), zod.z.null()]).optional(),
910
- legacyKey: zod.z.union([zod.z.string(), zod.z.null()]).optional(),
911
- bucketName: zod.z.union([zod.z.string(), zod.z.null()]).optional(),
912
- encryptionKey: zod.z.union([zod.z.string(), zod.z.null()]).optional(),
913
- createdBy: zod.z.union([zod.z.string(), zod.z.null()]).optional(),
914
- createdAt: zod.z.string(),
915
- deletedAt: zod.z.union([zod.z.string(), zod.z.null()]).optional()
916
- })
917
- }),
918
- zod.z.object({
919
- url: zod.z.string(),
920
- expiresAt: zod.z.string().datetime({ offset: true })
921
- })
922
- ])
988
+ response: zod.z.object({
989
+ url: zod.z.string(),
990
+ expiresAt: zod.z.string().datetime({ offset: true })
991
+ })
923
992
  },
924
993
  {
925
994
  method: "put",
@@ -955,7 +1024,8 @@ The returned `uploadUrl` is valid for 1 hour by default. You can chang
955
1024
  encryptionKey: zod.z.union([zod.z.string(), zod.z.null()]).optional(),
956
1025
  createdBy: zod.z.union([zod.z.string(), zod.z.null()]).optional(),
957
1026
  createdAt: zod.z.string(),
958
- deletedAt: zod.z.union([zod.z.string(), zod.z.null()]).optional()
1027
+ deletedAt: zod.z.union([zod.z.string(), zod.z.null()]).optional(),
1028
+ uploadedAt: zod.z.union([zod.z.string(), zod.z.null()]).optional()
959
1029
  })
960
1030
  }),
961
1031
  zod.z.object({
@@ -1002,7 +1072,8 @@ The returned `uploadUrl` is valid for 1 hour by default. You can chang
1002
1072
  encryptionKey: zod.z.union([zod.z.string(), zod.z.null()]).optional(),
1003
1073
  createdBy: zod.z.union([zod.z.string(), zod.z.null()]).optional(),
1004
1074
  createdAt: zod.z.string(),
1005
- deletedAt: zod.z.union([zod.z.string(), zod.z.null()]).optional()
1075
+ deletedAt: zod.z.union([zod.z.string(), zod.z.null()]).optional(),
1076
+ uploadedAt: zod.z.union([zod.z.string(), zod.z.null()]).optional()
1006
1077
  }),
1007
1078
  errors: [
1008
1079
  {
@@ -1038,7 +1109,8 @@ The returned `uploadUrl` is valid for 1 hour by default. You can chang
1038
1109
  encryptionKey: zod.z.union([zod.z.string(), zod.z.null()]).optional(),
1039
1110
  createdBy: zod.z.union([zod.z.string(), zod.z.null()]).optional(),
1040
1111
  createdAt: zod.z.string(),
1041
- deletedAt: zod.z.union([zod.z.string(), zod.z.null()]).optional()
1112
+ deletedAt: zod.z.union([zod.z.string(), zod.z.null()]).optional(),
1113
+ uploadedAt: zod.z.union([zod.z.string(), zod.z.null()]).optional()
1042
1114
  })
1043
1115
  ),
1044
1116
  zod.z.object({
@@ -1055,7 +1127,8 @@ The returned `uploadUrl` is valid for 1 hour by default. You can chang
1055
1127
  encryptionKey: zod.z.union([zod.z.string(), zod.z.null()]).optional(),
1056
1128
  createdBy: zod.z.union([zod.z.string(), zod.z.null()]).optional(),
1057
1129
  createdAt: zod.z.string(),
1058
- deletedAt: zod.z.union([zod.z.string(), zod.z.null()]).optional()
1130
+ deletedAt: zod.z.union([zod.z.string(), zod.z.null()]).optional(),
1131
+ uploadedAt: zod.z.union([zod.z.string(), zod.z.null()]).optional()
1059
1132
  })
1060
1133
  )
1061
1134
  })
@@ -1072,7 +1145,7 @@ function useVaultClient(vaultUrl, token) {
1072
1145
  axiosConfig: {
1073
1146
  headers: {
1074
1147
  Authorization: token,
1075
- "User-Agent": "vault-http-client:2.3.6"
1148
+ "User-Agent": "vault-http-client:2.3.10"
1076
1149
  }
1077
1150
  }
1078
1151
  });