@meistrari/vault-http-client 2.3.9 → 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,40 +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
- path: zod.z.string().optional()
18
- });
19
6
  const postFilesBulk_Body = zod.z.union([
20
7
  zod.z.array(
21
8
  zod.z.object({
22
9
  fileName: zod.z.string(),
23
- sha256sum: zod.z.string().optional(),
24
- size: zod.z.number().optional(),
25
- mimeType: zod.z.string().optional(),
26
- createdBy: zod.z.string().optional(),
27
- path: zod.z.string().optional()
28
- })
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()
29
16
  ),
30
17
  zod.z.object({ files: zod.z.array(zod.z.string()) })
31
18
  ]);
32
19
  const postFiles_Body = zod.z.object({
33
- fileName: zod.z.string().default("unknown"),
20
+ fileName: zod.z.string(),
34
21
  sha256sum: zod.z.string(),
35
22
  size: zod.z.number(),
36
23
  mimeType: zod.z.string(),
37
24
  createdBy: zod.z.string(),
38
25
  path: zod.z.string()
39
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
+ });
40
32
  const endpoints = core.makeApi([
41
33
  {
42
34
  method: "get",
@@ -111,7 +103,7 @@ The returned `uploadUrl` is valid for 1 hour by default. You can chang
111
103
  {
112
104
  name: "body",
113
105
  type: "Body",
114
- schema: post_Files_Body
106
+ schema: postFiles_Body
115
107
  },
116
108
  {
117
109
  name: "expiresIn",
@@ -124,31 +116,26 @@ The returned `uploadUrl` is valid for 1 hour by default. You can chang
124
116
  schema: zod.z.string()
125
117
  }
126
118
  ],
127
- response: zod.z.union([
128
- 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({
129
124
  id: zod.z.string(),
130
- uploadUrl: zod.z.string(),
131
- expiresAt: zod.z.string().datetime({ offset: true }),
132
- metadata: zod.z.object({
133
- id: zod.z.string(),
134
- path: zod.z.string(),
135
- workspaceId: zod.z.string(),
136
- originalFileName: zod.z.union([zod.z.string(), zod.z.null()]).optional(),
137
- mimeType: zod.z.union([zod.z.string(), zod.z.null()]).optional(),
138
- size: zod.z.union([zod.z.number(), zod.z.null()]).optional(),
139
- legacyKey: zod.z.union([zod.z.string(), zod.z.null()]).optional(),
140
- bucketName: zod.z.union([zod.z.string(), zod.z.null()]).optional(),
141
- encryptionKey: zod.z.union([zod.z.string(), zod.z.null()]).optional(),
142
- createdBy: zod.z.union([zod.z.string(), zod.z.null()]).optional(),
143
- createdAt: zod.z.string(),
144
- deletedAt: zod.z.union([zod.z.string(), zod.z.null()]).optional()
145
- })
146
- }),
147
- zod.z.object({
148
- url: zod.z.string(),
149
- 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()
150
137
  })
151
- ])
138
+ })
152
139
  },
153
140
  {
154
141
  method: "get",
@@ -188,7 +175,8 @@ The returned `uploadUrl` is valid for 1 hour by default. You can chang
188
175
  encryptionKey: zod.z.union([zod.z.string(), zod.z.null()]).optional(),
189
176
  createdBy: zod.z.union([zod.z.string(), zod.z.null()]).optional(),
190
177
  createdAt: zod.z.string(),
191
- 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()
192
180
  }),
193
181
  zod.z.null()
194
182
  ])
@@ -235,7 +223,8 @@ The returned `uploadUrl` is valid for 1 hour by default. You can chang
235
223
  encryptionKey: zod.z.union([zod.z.string(), zod.z.null()]).optional(),
236
224
  createdBy: zod.z.union([zod.z.string(), zod.z.null()]).optional(),
237
225
  createdAt: zod.z.string(),
238
- 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()
239
228
  }),
240
229
  errors: [
241
230
  {
@@ -272,31 +261,26 @@ The returned `uploadUrl` is valid for 1 hour by default. You can chang
272
261
  schema: zod.z.string()
273
262
  }
274
263
  ],
275
- response: zod.z.union([
276
- 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({
277
269
  id: zod.z.string(),
278
- uploadUrl: zod.z.string().url(),
279
- expiresAt: zod.z.string().datetime({ offset: true }),
280
- metadata: zod.z.object({
281
- id: zod.z.string(),
282
- path: zod.z.string(),
283
- workspaceId: zod.z.string(),
284
- originalFileName: zod.z.union([zod.z.string(), zod.z.null()]).optional(),
285
- mimeType: zod.z.union([zod.z.string(), zod.z.null()]).optional(),
286
- size: zod.z.union([zod.z.number(), zod.z.null()]).optional(),
287
- legacyKey: zod.z.union([zod.z.string(), zod.z.null()]).optional(),
288
- bucketName: zod.z.union([zod.z.string(), zod.z.null()]).optional(),
289
- encryptionKey: zod.z.union([zod.z.string(), zod.z.null()]).optional(),
290
- createdBy: zod.z.union([zod.z.string(), zod.z.null()]).optional(),
291
- createdAt: zod.z.string(),
292
- deletedAt: zod.z.union([zod.z.string(), zod.z.null()]).optional()
293
- })
294
- }),
295
- zod.z.object({
296
- url: zod.z.string().url(),
297
- 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()
298
282
  })
299
- ])
283
+ })
300
284
  },
301
285
  {
302
286
  method: "delete",
@@ -346,7 +330,8 @@ The returned `uploadUrl` is valid for 1 hour by default. You can chang
346
330
  encryptionKey: zod.z.union([zod.z.string(), zod.z.null()]).optional(),
347
331
  createdBy: zod.z.union([zod.z.string(), zod.z.null()]).optional(),
348
332
  createdAt: zod.z.string(),
349
- 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()
350
335
  }),
351
336
  errors: [
352
337
  {
@@ -418,7 +403,8 @@ The returned `uploadUrl` is valid for 1 hour by default. You can chang
418
403
  encryptionKey: zod.z.union([zod.z.string(), zod.z.null()]).optional(),
419
404
  createdBy: zod.z.union([zod.z.string(), zod.z.null()]).optional(),
420
405
  createdAt: zod.z.string(),
421
- 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()
422
408
  })
423
409
  ),
424
410
  count: zod.z.number(),
@@ -469,6 +455,20 @@ The returned `uploadUrl` is valid for 1 hour by default. You can chang
469
455
  defaultS3LinkTtl: zod.z.number().gte(1)
470
456
  })
471
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
472
  {
473
473
  method: "post",
474
474
  path: "/files",
@@ -476,8 +476,6 @@ The returned `uploadUrl` is valid for 1 hour by default. You can chang
476
476
 
477
477
  The `sha256` body param is used as the file's primary key. If not provided, a random UUID will be generated.
478
478
 
479
- 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.
480
-
481
479
  The returned `uploadUrl` is valid for 1 hour by default. You can change the expiration time by passing the `expiresIn` query parameter.
482
480
  `,
483
481
  requestFormat: "json",
@@ -509,8 +507,10 @@ The returned `uploadUrl` is valid for 1 hour by default. You can chang
509
507
  encryptionKey: zod.z.union([zod.z.string(), zod.z.null()]).optional(),
510
508
  createdBy: zod.z.union([zod.z.string(), zod.z.null()]).optional(),
511
509
  createdAt: zod.z.string(),
512
- deletedAt: zod.z.union([zod.z.string(), zod.z.null()]).optional()
513
- })
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
514
  })
515
515
  },
516
516
  {
@@ -541,7 +541,8 @@ The returned `uploadUrl` is valid for 1 hour by default. You can chang
541
541
  encryptionKey: zod.z.union([zod.z.string(), zod.z.null()]).optional(),
542
542
  createdBy: zod.z.union([zod.z.string(), zod.z.null()]).optional(),
543
543
  createdAt: zod.z.string(),
544
- 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()
545
546
  }),
546
547
  zod.z.null()
547
548
  ])
@@ -606,6 +607,40 @@ The returned permalink ID should be used with the `/permalinks/:permalinkId
606
607
  })
607
608
  )
608
609
  },
610
+ {
611
+ method: "post",
612
+ path: "/files/:filename",
613
+ description: `Create a file and get a pre-signed upload URL (legacy endpoint).
614
+
615
+ This endpoint is deprecated. Use POST /files instead with `originalFileName` in the request body.
616
+
617
+ The `sha256` body param is used as the file's primary key. If not provided, a random UUID will be generated.
618
+
619
+ The returned `url` is valid for 1 hour by default. You can change the expiration time by passing the `expiresIn` query parameter.
620
+ `,
621
+ requestFormat: "json",
622
+ parameters: [
623
+ {
624
+ name: "body",
625
+ type: "Body",
626
+ schema: postFiles_Body
627
+ },
628
+ {
629
+ name: "expiresIn",
630
+ type: "Query",
631
+ schema: zod.z.number().optional().default(3600)
632
+ },
633
+ {
634
+ name: "filename",
635
+ type: "Path",
636
+ schema: zod.z.string()
637
+ }
638
+ ],
639
+ response: zod.z.object({
640
+ url: zod.z.string(),
641
+ expiresAt: zod.z.string().datetime({ offset: true })
642
+ })
643
+ },
609
644
  {
610
645
  method: "put",
611
646
  path: "/files/:id",
@@ -640,7 +675,8 @@ The returned permalink ID should be used with the `/permalinks/:permalinkId
640
675
  encryptionKey: zod.z.union([zod.z.string(), zod.z.null()]).optional(),
641
676
  createdBy: zod.z.union([zod.z.string(), zod.z.null()]).optional(),
642
677
  createdAt: zod.z.string(),
643
- 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()
644
680
  })
645
681
  }),
646
682
  zod.z.object({
@@ -687,7 +723,8 @@ The returned permalink ID should be used with the `/permalinks/:permalinkId
687
723
  encryptionKey: zod.z.union([zod.z.string(), zod.z.null()]).optional(),
688
724
  createdBy: zod.z.union([zod.z.string(), zod.z.null()]).optional(),
689
725
  createdAt: zod.z.string(),
690
- 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()
691
728
  }),
692
729
  errors: [
693
730
  {
@@ -723,7 +760,8 @@ The returned permalink ID should be used with the `/permalinks/:permalinkId
723
760
  encryptionKey: zod.z.union([zod.z.string(), zod.z.null()]).optional(),
724
761
  createdBy: zod.z.union([zod.z.string(), zod.z.null()]).optional(),
725
762
  createdAt: zod.z.string(),
726
- 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()
727
765
  })
728
766
  ),
729
767
  zod.z.object({
@@ -740,7 +778,8 @@ The returned permalink ID should be used with the `/permalinks/:permalinkId
740
778
  encryptionKey: zod.z.union([zod.z.string(), zod.z.null()]).optional(),
741
779
  createdBy: zod.z.union([zod.z.string(), zod.z.null()]).optional(),
742
780
  createdAt: zod.z.string(),
743
- 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()
744
783
  })
745
784
  )
746
785
  })
@@ -817,6 +856,20 @@ Make sure to follow redirects to the actual file download URL.
817
856
  }
818
857
  ]
819
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
+ },
820
873
  {
821
874
  method: "post",
822
875
  path: "/v2/files",
@@ -824,8 +877,6 @@ Make sure to follow redirects to the actual file download URL.
824
877
 
825
878
  The `sha256` body param is used as the file's primary key. If not provided, a random UUID will be generated.
826
879
 
827
- 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.
828
-
829
880
  The returned `uploadUrl` is valid for 1 hour by default. You can change the expiration time by passing the `expiresIn` query parameter.
830
881
  `,
831
882
  requestFormat: "json",
@@ -857,8 +908,10 @@ The returned `uploadUrl` is valid for 1 hour by default. You can chang
857
908
  encryptionKey: zod.z.union([zod.z.string(), zod.z.null()]).optional(),
858
909
  createdBy: zod.z.union([zod.z.string(), zod.z.null()]).optional(),
859
910
  createdAt: zod.z.string(),
860
- deletedAt: zod.z.union([zod.z.string(), zod.z.null()]).optional()
861
- })
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()
862
915
  })
863
916
  },
864
917
  {
@@ -889,7 +942,8 @@ The returned `uploadUrl` is valid for 1 hour by default. You can chang
889
942
  encryptionKey: zod.z.union([zod.z.string(), zod.z.null()]).optional(),
890
943
  createdBy: zod.z.union([zod.z.string(), zod.z.null()]).optional(),
891
944
  createdAt: zod.z.string(),
892
- 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()
893
947
  }),
894
948
  zod.z.null()
895
949
  ])
@@ -902,6 +956,40 @@ The returned `uploadUrl` is valid for 1 hour by default. You can chang
902
956
  }
903
957
  ]
904
958
  },
959
+ {
960
+ method: "post",
961
+ path: "/v2/files/:filename",
962
+ description: `Create a file and get a pre-signed upload URL (legacy endpoint).
963
+
964
+ This endpoint is deprecated. Use POST /files instead with `originalFileName` in the request body.
965
+
966
+ The `sha256` body param is used as the file's primary key. If not provided, a random UUID will be generated.
967
+
968
+ The returned `url` is valid for 1 hour by default. You can change the expiration time by passing the `expiresIn` query parameter.
969
+ `,
970
+ requestFormat: "json",
971
+ parameters: [
972
+ {
973
+ name: "body",
974
+ type: "Body",
975
+ schema: postFiles_Body
976
+ },
977
+ {
978
+ name: "expiresIn",
979
+ type: "Query",
980
+ schema: zod.z.number().optional().default(3600)
981
+ },
982
+ {
983
+ name: "filename",
984
+ type: "Path",
985
+ schema: zod.z.string()
986
+ }
987
+ ],
988
+ response: zod.z.object({
989
+ url: zod.z.string(),
990
+ expiresAt: zod.z.string().datetime({ offset: true })
991
+ })
992
+ },
905
993
  {
906
994
  method: "put",
907
995
  path: "/v2/files/:id",
@@ -936,7 +1024,8 @@ The returned `uploadUrl` is valid for 1 hour by default. You can chang
936
1024
  encryptionKey: zod.z.union([zod.z.string(), zod.z.null()]).optional(),
937
1025
  createdBy: zod.z.union([zod.z.string(), zod.z.null()]).optional(),
938
1026
  createdAt: zod.z.string(),
939
- 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()
940
1029
  })
941
1030
  }),
942
1031
  zod.z.object({
@@ -983,7 +1072,8 @@ The returned `uploadUrl` is valid for 1 hour by default. You can chang
983
1072
  encryptionKey: zod.z.union([zod.z.string(), zod.z.null()]).optional(),
984
1073
  createdBy: zod.z.union([zod.z.string(), zod.z.null()]).optional(),
985
1074
  createdAt: zod.z.string(),
986
- 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()
987
1077
  }),
988
1078
  errors: [
989
1079
  {
@@ -1019,7 +1109,8 @@ The returned `uploadUrl` is valid for 1 hour by default. You can chang
1019
1109
  encryptionKey: zod.z.union([zod.z.string(), zod.z.null()]).optional(),
1020
1110
  createdBy: zod.z.union([zod.z.string(), zod.z.null()]).optional(),
1021
1111
  createdAt: zod.z.string(),
1022
- 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()
1023
1114
  })
1024
1115
  ),
1025
1116
  zod.z.object({
@@ -1036,7 +1127,8 @@ The returned `uploadUrl` is valid for 1 hour by default. You can chang
1036
1127
  encryptionKey: zod.z.union([zod.z.string(), zod.z.null()]).optional(),
1037
1128
  createdBy: zod.z.union([zod.z.string(), zod.z.null()]).optional(),
1038
1129
  createdAt: zod.z.string(),
1039
- 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()
1040
1132
  })
1041
1133
  )
1042
1134
  })
@@ -1048,14 +1140,12 @@ function createApiClient(baseUrl, options) {
1048
1140
  return new core.Zodios(baseUrl, endpoints, options);
1049
1141
  }
1050
1142
 
1051
- function useVaultClient(vaultUrl, token, headerOverrides = {}) {
1143
+ function useVaultClient(vaultUrl, token) {
1052
1144
  const api = createApiClient(vaultUrl, {
1053
1145
  axiosConfig: {
1054
1146
  headers: {
1055
1147
  Authorization: token,
1056
- "User-Agent": "vault-http-client:2.3.9",
1057
- "X-Compatibility-Date": "2025-09-17T10:33:21.181Z",
1058
- ...headerOverrides
1148
+ "User-Agent": "vault-http-client:2.3.10"
1059
1149
  }
1060
1150
  }
1061
1151
  });