@meistrari/vault-http-client 2.10.0 → 2.14.1

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,22 +3,6 @@
3
3
  const core = require('@zodios/core');
4
4
  const zod = require('zod');
5
5
 
6
- const postFilesBulk_Body = zod.z.union([
7
- zod.z.array(
8
- zod.z.object({
9
- fileName: zod.z.string(),
10
- parentId: zod.z.string(),
11
- onMissingParent: zod.z.enum(["error", "create-as-root"]).default("error"),
12
- onParentConflict: zod.z.enum(["error", "update-parent-id", "ignore"]).default("error"),
13
- sha256sum: zod.z.string(),
14
- size: zod.z.number(),
15
- mimeType: zod.z.string(),
16
- createdBy: zod.z.string(),
17
- path: zod.z.string()
18
- }).partial()
19
- ),
20
- zod.z.object({ files: zod.z.array(zod.z.string()) })
21
- ]);
22
6
  const postFiles_Body = zod.z.object({
23
7
  fileName: zod.z.string(),
24
8
  parentId: zod.z.string(),
@@ -30,6 +14,19 @@ const postFiles_Body = zod.z.object({
30
14
  createdBy: zod.z.string(),
31
15
  path: zod.z.string()
32
16
  }).partial();
17
+ const postFilesBulk_Body = zod.z.array(
18
+ zod.z.object({
19
+ fileName: zod.z.string(),
20
+ parentId: zod.z.string(),
21
+ onMissingParent: zod.z.enum(["error", "create-as-root"]).default("error"),
22
+ onParentConflict: zod.z.enum(["error", "update-parent-id", "ignore"]).default("error"),
23
+ sha256sum: zod.z.string(),
24
+ size: zod.z.number(),
25
+ mimeType: zod.z.string(),
26
+ createdBy: zod.z.string(),
27
+ path: zod.z.string()
28
+ }).partial()
29
+ );
33
30
  const put_WorkspacesByWorkspaceIdSettings_Body = zod.z.object({
34
31
  bucketName: zod.z.string().min(1),
35
32
  keyArns: zod.z.array(zod.z.string()).min(1),
@@ -408,7 +405,6 @@ The returned `uploadUrl` is valid for 1 hour by default. You can chang
408
405
  response: zod.z.array(
409
406
  zod.z.object({
410
407
  workspaceId: zod.z.string(),
411
- files: zod.z.number(),
412
408
  permalinks: zod.z.number(),
413
409
  hasCustomSettings: zod.z.boolean()
414
410
  })
@@ -574,6 +570,71 @@ The returned `uploadUrl` is valid for 1 hour by default. You can chang
574
570
  path: zod.z.string()
575
571
  })
576
572
  },
573
+ {
574
+ method: "get",
575
+ path: "/files",
576
+ description: `Get a list of files.`,
577
+ requestFormat: "json",
578
+ parameters: [
579
+ {
580
+ name: "limit",
581
+ type: "Query",
582
+ schema: zod.z.number().gte(1).lte(500).optional().default(10)
583
+ },
584
+ {
585
+ name: "offset",
586
+ type: "Query",
587
+ schema: zod.z.number().gte(0).optional().default(0)
588
+ },
589
+ {
590
+ name: "orderByField",
591
+ type: "Query",
592
+ schema: zod.z.enum(["id", "createdAt", "deletedAt"]).optional()
593
+ },
594
+ {
595
+ name: "orderByDirection",
596
+ type: "Query",
597
+ schema: zod.z.enum(["asc", "desc"]).optional().default("asc")
598
+ },
599
+ {
600
+ name: "search",
601
+ type: "Query",
602
+ schema: zod.z.string().optional()
603
+ },
604
+ {
605
+ name: "includeDeleted",
606
+ type: "Query",
607
+ schema: zod.z.enum(["true", "false"]).optional().default("false")
608
+ },
609
+ {
610
+ name: "includeChildren",
611
+ type: "Query",
612
+ schema: zod.z.enum(["true", "false"]).optional().default("false")
613
+ }
614
+ ],
615
+ response: zod.z.object({
616
+ files: zod.z.array(
617
+ zod.z.object({
618
+ id: zod.z.string(),
619
+ path: zod.z.string(),
620
+ workspaceId: zod.z.string(),
621
+ parentId: zod.z.union([zod.z.string(), zod.z.null()]).optional(),
622
+ originalFileName: zod.z.union([zod.z.string(), zod.z.null()]).optional(),
623
+ mimeType: zod.z.union([zod.z.string(), zod.z.null()]).optional(),
624
+ size: zod.z.union([zod.z.number(), zod.z.null()]).optional(),
625
+ legacyKey: zod.z.union([zod.z.string(), zod.z.null()]).optional(),
626
+ bucketName: zod.z.union([zod.z.string(), zod.z.null()]).optional(),
627
+ encryptionKey: zod.z.union([zod.z.string(), zod.z.null()]).optional(),
628
+ createdBy: zod.z.union([zod.z.string(), zod.z.null()]).optional(),
629
+ createdAt: zod.z.string(),
630
+ deletedAt: zod.z.union([zod.z.string(), zod.z.null()]).optional(),
631
+ uploadedAt: zod.z.union([zod.z.string(), zod.z.null()]).optional()
632
+ })
633
+ ),
634
+ count: zod.z.number(),
635
+ pages: zod.z.number()
636
+ })
637
+ },
577
638
  {
578
639
  method: "get",
579
640
  path: "/files/:fileId",
@@ -622,6 +683,40 @@ The returned `uploadUrl` is valid for 1 hour by default. You can chang
622
683
  }
623
684
  ]
624
685
  },
686
+ {
687
+ method: "patch",
688
+ path: "/files/:fileId",
689
+ description: `Update file metadata. This only affects file metadata and has no effect on file conflicts or storage location.`,
690
+ requestFormat: "json",
691
+ parameters: [
692
+ {
693
+ name: "body",
694
+ type: "Body",
695
+ schema: zod.z.object({ name: zod.z.string().min(1) })
696
+ },
697
+ {
698
+ name: "fileId",
699
+ type: "Path",
700
+ schema: zod.z.string()
701
+ }
702
+ ],
703
+ response: zod.z.object({
704
+ id: zod.z.string(),
705
+ path: zod.z.string(),
706
+ workspaceId: zod.z.string(),
707
+ parentId: zod.z.union([zod.z.string(), zod.z.null()]).optional(),
708
+ originalFileName: zod.z.union([zod.z.string(), zod.z.null()]).optional(),
709
+ mimeType: zod.z.union([zod.z.string(), zod.z.null()]).optional(),
710
+ size: zod.z.union([zod.z.number(), zod.z.null()]).optional(),
711
+ legacyKey: zod.z.union([zod.z.string(), zod.z.null()]).optional(),
712
+ bucketName: zod.z.union([zod.z.string(), zod.z.null()]).optional(),
713
+ encryptionKey: zod.z.union([zod.z.string(), zod.z.null()]).optional(),
714
+ createdBy: zod.z.union([zod.z.string(), zod.z.null()]).optional(),
715
+ createdAt: zod.z.string(),
716
+ deletedAt: zod.z.union([zod.z.string(), zod.z.null()]).optional(),
717
+ uploadedAt: zod.z.union([zod.z.string(), zod.z.null()]).optional()
718
+ })
719
+ },
625
720
  {
626
721
  method: "post",
627
722
  path: "/files/:fileId/permalinks",
@@ -869,9 +964,12 @@ The returned `url` is valid for 1 hour by default. You can change the
869
964
  schema: postFilesBulk_Body
870
965
  }
871
966
  ],
872
- response: zod.z.union([
873
- zod.z.array(
874
- zod.z.object({
967
+ response: zod.z.array(
968
+ zod.z.object({
969
+ id: zod.z.string(),
970
+ uploadUrl: zod.z.string(),
971
+ expiresAt: zod.z.string().datetime({ offset: true }),
972
+ metadata: zod.z.object({
875
973
  id: zod.z.string(),
876
974
  path: zod.z.string(),
877
975
  workspaceId: zod.z.string(),
@@ -886,29 +984,10 @@ The returned `url` is valid for 1 hour by default. You can change the
886
984
  createdAt: zod.z.string(),
887
985
  deletedAt: zod.z.union([zod.z.string(), zod.z.null()]).optional(),
888
986
  uploadedAt: zod.z.union([zod.z.string(), zod.z.null()]).optional()
889
- })
890
- ),
891
- zod.z.object({
892
- files: zod.z.array(
893
- zod.z.object({
894
- id: zod.z.string(),
895
- path: zod.z.string(),
896
- workspaceId: zod.z.string(),
897
- parentId: zod.z.union([zod.z.string(), zod.z.null()]).optional(),
898
- originalFileName: zod.z.union([zod.z.string(), zod.z.null()]).optional(),
899
- mimeType: zod.z.union([zod.z.string(), zod.z.null()]).optional(),
900
- size: zod.z.union([zod.z.number(), zod.z.null()]).optional(),
901
- legacyKey: zod.z.union([zod.z.string(), zod.z.null()]).optional(),
902
- bucketName: zod.z.union([zod.z.string(), zod.z.null()]).optional(),
903
- encryptionKey: zod.z.union([zod.z.string(), zod.z.null()]).optional(),
904
- createdBy: zod.z.union([zod.z.string(), zod.z.null()]).optional(),
905
- createdAt: zod.z.string(),
906
- deletedAt: zod.z.union([zod.z.string(), zod.z.null()]).optional(),
907
- uploadedAt: zod.z.union([zod.z.string(), zod.z.null()]).optional()
908
- })
909
- )
987
+ }),
988
+ path: zod.z.string()
910
989
  })
911
- ])
990
+ )
912
991
  },
913
992
  {
914
993
  method: "get",
@@ -987,8 +1066,12 @@ function createApiClient(baseUrl, options) {
987
1066
  return new core.Zodios(baseUrl, endpoints, options);
988
1067
  }
989
1068
 
1069
+ const version = "2.14.0";
1070
+ const packageInfo = {
1071
+ version: version};
1072
+
990
1073
  const serviceName = process.env.SERVICE_NAME;
991
- const userAgent = `vault-http-client:2.10.0${serviceName ? `@${serviceName}` : ""}`.trim();
1074
+ const userAgent = `vault-http-client:${packageInfo.version}${serviceName ? `@${serviceName}` : ""}`.trim();
992
1075
  function useVaultClient(vaultUrl, token) {
993
1076
  const api = createApiClient(vaultUrl, {
994
1077
  axiosConfig: {
package/dist/index.d.cts CHANGED
@@ -835,17 +835,14 @@ declare function useVaultClient(vaultUrl: string, token: string): _zodios_core.Z
835
835
  requestFormat: "json";
836
836
  response: zod.ZodArray<zod.ZodObject<{
837
837
  workspaceId: zod.ZodString;
838
- files: zod.ZodNumber;
839
838
  permalinks: zod.ZodNumber;
840
839
  hasCustomSettings: zod.ZodBoolean;
841
840
  }, "strip", zod.ZodTypeAny, {
842
841
  workspaceId: string;
843
- files: number;
844
842
  permalinks: number;
845
843
  hasCustomSettings: boolean;
846
844
  }, {
847
845
  workspaceId: string;
848
- files: number;
849
846
  permalinks: number;
850
847
  hasCustomSettings: boolean;
851
848
  }>, "many">;
@@ -1175,6 +1172,128 @@ declare function useVaultClient(vaultUrl: string, token: string): _zodios_core.Z
1175
1172
  uploadedAt?: string | null | undefined;
1176
1173
  };
1177
1174
  }>;
1175
+ }, {
1176
+ method: "get";
1177
+ path: "/files";
1178
+ description: "Get a list of files.";
1179
+ requestFormat: "json";
1180
+ parameters: [{
1181
+ name: "limit";
1182
+ type: "Query";
1183
+ schema: zod.ZodDefault<zod.ZodOptional<zod.ZodNumber>>;
1184
+ }, {
1185
+ name: "offset";
1186
+ type: "Query";
1187
+ schema: zod.ZodDefault<zod.ZodOptional<zod.ZodNumber>>;
1188
+ }, {
1189
+ name: "orderByField";
1190
+ type: "Query";
1191
+ schema: zod.ZodOptional<zod.ZodEnum<["id", "createdAt", "deletedAt"]>>;
1192
+ }, {
1193
+ name: "orderByDirection";
1194
+ type: "Query";
1195
+ schema: zod.ZodDefault<zod.ZodOptional<zod.ZodEnum<["asc", "desc"]>>>;
1196
+ }, {
1197
+ name: "search";
1198
+ type: "Query";
1199
+ schema: zod.ZodOptional<zod.ZodString>;
1200
+ }, {
1201
+ name: "includeDeleted";
1202
+ type: "Query";
1203
+ schema: zod.ZodDefault<zod.ZodOptional<zod.ZodEnum<["true", "false"]>>>;
1204
+ }, {
1205
+ name: "includeChildren";
1206
+ type: "Query";
1207
+ schema: zod.ZodDefault<zod.ZodOptional<zod.ZodEnum<["true", "false"]>>>;
1208
+ }];
1209
+ response: zod.ZodObject<{
1210
+ files: zod.ZodArray<zod.ZodObject<{
1211
+ id: zod.ZodString;
1212
+ path: zod.ZodString;
1213
+ workspaceId: zod.ZodString;
1214
+ parentId: zod.ZodOptional<zod.ZodUnion<[zod.ZodString, zod.ZodNull]>>;
1215
+ originalFileName: zod.ZodOptional<zod.ZodUnion<[zod.ZodString, zod.ZodNull]>>;
1216
+ mimeType: zod.ZodOptional<zod.ZodUnion<[zod.ZodString, zod.ZodNull]>>;
1217
+ size: zod.ZodOptional<zod.ZodUnion<[zod.ZodNumber, zod.ZodNull]>>;
1218
+ legacyKey: zod.ZodOptional<zod.ZodUnion<[zod.ZodString, zod.ZodNull]>>;
1219
+ bucketName: zod.ZodOptional<zod.ZodUnion<[zod.ZodString, zod.ZodNull]>>;
1220
+ encryptionKey: zod.ZodOptional<zod.ZodUnion<[zod.ZodString, zod.ZodNull]>>;
1221
+ createdBy: zod.ZodOptional<zod.ZodUnion<[zod.ZodString, zod.ZodNull]>>;
1222
+ createdAt: zod.ZodString;
1223
+ deletedAt: zod.ZodOptional<zod.ZodUnion<[zod.ZodString, zod.ZodNull]>>;
1224
+ uploadedAt: zod.ZodOptional<zod.ZodUnion<[zod.ZodString, zod.ZodNull]>>;
1225
+ }, "strip", zod.ZodTypeAny, {
1226
+ path: string;
1227
+ workspaceId: string;
1228
+ id: string;
1229
+ createdAt: string;
1230
+ deletedAt?: string | null | undefined;
1231
+ originalFileName?: string | null | undefined;
1232
+ size?: number | null | undefined;
1233
+ createdBy?: string | null | undefined;
1234
+ parentId?: string | null | undefined;
1235
+ mimeType?: string | null | undefined;
1236
+ legacyKey?: string | null | undefined;
1237
+ bucketName?: string | null | undefined;
1238
+ encryptionKey?: string | null | undefined;
1239
+ uploadedAt?: string | null | undefined;
1240
+ }, {
1241
+ path: string;
1242
+ workspaceId: string;
1243
+ id: string;
1244
+ createdAt: string;
1245
+ deletedAt?: string | null | undefined;
1246
+ originalFileName?: string | null | undefined;
1247
+ size?: number | null | undefined;
1248
+ createdBy?: string | null | undefined;
1249
+ parentId?: string | null | undefined;
1250
+ mimeType?: string | null | undefined;
1251
+ legacyKey?: string | null | undefined;
1252
+ bucketName?: string | null | undefined;
1253
+ encryptionKey?: string | null | undefined;
1254
+ uploadedAt?: string | null | undefined;
1255
+ }>, "many">;
1256
+ count: zod.ZodNumber;
1257
+ pages: zod.ZodNumber;
1258
+ }, "strip", zod.ZodTypeAny, {
1259
+ files: {
1260
+ path: string;
1261
+ workspaceId: string;
1262
+ id: string;
1263
+ createdAt: string;
1264
+ deletedAt?: string | null | undefined;
1265
+ originalFileName?: string | null | undefined;
1266
+ size?: number | null | undefined;
1267
+ createdBy?: string | null | undefined;
1268
+ parentId?: string | null | undefined;
1269
+ mimeType?: string | null | undefined;
1270
+ legacyKey?: string | null | undefined;
1271
+ bucketName?: string | null | undefined;
1272
+ encryptionKey?: string | null | undefined;
1273
+ uploadedAt?: string | null | undefined;
1274
+ }[];
1275
+ count: number;
1276
+ pages: number;
1277
+ }, {
1278
+ files: {
1279
+ path: string;
1280
+ workspaceId: string;
1281
+ id: string;
1282
+ createdAt: string;
1283
+ deletedAt?: string | null | undefined;
1284
+ originalFileName?: string | null | undefined;
1285
+ size?: number | null | undefined;
1286
+ createdBy?: string | null | undefined;
1287
+ parentId?: string | null | undefined;
1288
+ mimeType?: string | null | undefined;
1289
+ legacyKey?: string | null | undefined;
1290
+ bucketName?: string | null | undefined;
1291
+ encryptionKey?: string | null | undefined;
1292
+ uploadedAt?: string | null | undefined;
1293
+ }[];
1294
+ count: number;
1295
+ pages: number;
1296
+ }>;
1178
1297
  }, {
1179
1298
  method: "get";
1180
1299
  path: "/files/:fileId";
@@ -1282,6 +1401,72 @@ declare function useVaultClient(vaultUrl: string, token: string): _zodios_core.Z
1282
1401
  description: string;
1283
1402
  schema: zod.ZodVoid;
1284
1403
  }];
1404
+ }, {
1405
+ method: "patch";
1406
+ path: "/files/:fileId";
1407
+ description: "Update file metadata. This only affects file metadata and has no effect on file conflicts or storage location.";
1408
+ requestFormat: "json";
1409
+ parameters: [{
1410
+ name: "body";
1411
+ type: "Body";
1412
+ schema: zod.ZodObject<{
1413
+ name: zod.ZodString;
1414
+ }, "strip", zod.ZodTypeAny, {
1415
+ name: string;
1416
+ }, {
1417
+ name: string;
1418
+ }>;
1419
+ }, {
1420
+ name: "fileId";
1421
+ type: "Path";
1422
+ schema: zod.ZodString;
1423
+ }];
1424
+ response: zod.ZodObject<{
1425
+ id: zod.ZodString;
1426
+ path: zod.ZodString;
1427
+ workspaceId: zod.ZodString;
1428
+ parentId: zod.ZodOptional<zod.ZodUnion<[zod.ZodString, zod.ZodNull]>>;
1429
+ originalFileName: zod.ZodOptional<zod.ZodUnion<[zod.ZodString, zod.ZodNull]>>;
1430
+ mimeType: zod.ZodOptional<zod.ZodUnion<[zod.ZodString, zod.ZodNull]>>;
1431
+ size: zod.ZodOptional<zod.ZodUnion<[zod.ZodNumber, zod.ZodNull]>>;
1432
+ legacyKey: zod.ZodOptional<zod.ZodUnion<[zod.ZodString, zod.ZodNull]>>;
1433
+ bucketName: zod.ZodOptional<zod.ZodUnion<[zod.ZodString, zod.ZodNull]>>;
1434
+ encryptionKey: zod.ZodOptional<zod.ZodUnion<[zod.ZodString, zod.ZodNull]>>;
1435
+ createdBy: zod.ZodOptional<zod.ZodUnion<[zod.ZodString, zod.ZodNull]>>;
1436
+ createdAt: zod.ZodString;
1437
+ deletedAt: zod.ZodOptional<zod.ZodUnion<[zod.ZodString, zod.ZodNull]>>;
1438
+ uploadedAt: zod.ZodOptional<zod.ZodUnion<[zod.ZodString, zod.ZodNull]>>;
1439
+ }, "strip", zod.ZodTypeAny, {
1440
+ path: string;
1441
+ workspaceId: string;
1442
+ id: string;
1443
+ createdAt: string;
1444
+ deletedAt?: string | null | undefined;
1445
+ originalFileName?: string | null | undefined;
1446
+ size?: number | null | undefined;
1447
+ createdBy?: string | null | undefined;
1448
+ parentId?: string | null | undefined;
1449
+ mimeType?: string | null | undefined;
1450
+ legacyKey?: string | null | undefined;
1451
+ bucketName?: string | null | undefined;
1452
+ encryptionKey?: string | null | undefined;
1453
+ uploadedAt?: string | null | undefined;
1454
+ }, {
1455
+ path: string;
1456
+ workspaceId: string;
1457
+ id: string;
1458
+ createdAt: string;
1459
+ deletedAt?: string | null | undefined;
1460
+ originalFileName?: string | null | undefined;
1461
+ size?: number | null | undefined;
1462
+ createdBy?: string | null | undefined;
1463
+ parentId?: string | null | undefined;
1464
+ mimeType?: string | null | undefined;
1465
+ legacyKey?: string | null | undefined;
1466
+ bucketName?: string | null | undefined;
1467
+ encryptionKey?: string | null | undefined;
1468
+ uploadedAt?: string | null | undefined;
1469
+ }>;
1285
1470
  }, {
1286
1471
  method: "post";
1287
1472
  path: "/files/:fileId/permalinks";
@@ -1719,7 +1904,7 @@ declare function useVaultClient(vaultUrl: string, token: string): _zodios_core.Z
1719
1904
  parameters: [{
1720
1905
  name: "body";
1721
1906
  type: "Body";
1722
- schema: zod.ZodUnion<[zod.ZodArray<zod.ZodObject<{
1907
+ schema: zod.ZodArray<zod.ZodObject<{
1723
1908
  fileName: zod.ZodOptional<zod.ZodString>;
1724
1909
  parentId: zod.ZodOptional<zod.ZodString>;
1725
1910
  onMissingParent: zod.ZodOptional<zod.ZodDefault<zod.ZodEnum<["error", "create-as-root"]>>>;
@@ -1749,61 +1934,13 @@ declare function useVaultClient(vaultUrl: string, token: string): _zodios_core.Z
1749
1934
  onParentConflict?: "error" | "update-parent-id" | "ignore" | undefined;
1750
1935
  sha256sum?: string | undefined;
1751
1936
  mimeType?: string | undefined;
1752
- }>, "many">, zod.ZodObject<{
1753
- files: zod.ZodArray<zod.ZodString, "many">;
1754
- }, "strip", zod.ZodTypeAny, {
1755
- files: string[];
1756
- }, {
1757
- files: string[];
1758
- }>]>;
1937
+ }>, "many">;
1759
1938
  }];
1760
- response: zod.ZodUnion<[zod.ZodArray<zod.ZodObject<{
1939
+ response: zod.ZodArray<zod.ZodObject<{
1761
1940
  id: zod.ZodString;
1762
- path: zod.ZodString;
1763
- workspaceId: zod.ZodString;
1764
- parentId: zod.ZodOptional<zod.ZodUnion<[zod.ZodString, zod.ZodNull]>>;
1765
- originalFileName: zod.ZodOptional<zod.ZodUnion<[zod.ZodString, zod.ZodNull]>>;
1766
- mimeType: zod.ZodOptional<zod.ZodUnion<[zod.ZodString, zod.ZodNull]>>;
1767
- size: zod.ZodOptional<zod.ZodUnion<[zod.ZodNumber, zod.ZodNull]>>;
1768
- legacyKey: zod.ZodOptional<zod.ZodUnion<[zod.ZodString, zod.ZodNull]>>;
1769
- bucketName: zod.ZodOptional<zod.ZodUnion<[zod.ZodString, zod.ZodNull]>>;
1770
- encryptionKey: zod.ZodOptional<zod.ZodUnion<[zod.ZodString, zod.ZodNull]>>;
1771
- createdBy: zod.ZodOptional<zod.ZodUnion<[zod.ZodString, zod.ZodNull]>>;
1772
- createdAt: zod.ZodString;
1773
- deletedAt: zod.ZodOptional<zod.ZodUnion<[zod.ZodString, zod.ZodNull]>>;
1774
- uploadedAt: zod.ZodOptional<zod.ZodUnion<[zod.ZodString, zod.ZodNull]>>;
1775
- }, "strip", zod.ZodTypeAny, {
1776
- path: string;
1777
- workspaceId: string;
1778
- id: string;
1779
- createdAt: string;
1780
- deletedAt?: string | null | undefined;
1781
- originalFileName?: string | null | undefined;
1782
- size?: number | null | undefined;
1783
- createdBy?: string | null | undefined;
1784
- parentId?: string | null | undefined;
1785
- mimeType?: string | null | undefined;
1786
- legacyKey?: string | null | undefined;
1787
- bucketName?: string | null | undefined;
1788
- encryptionKey?: string | null | undefined;
1789
- uploadedAt?: string | null | undefined;
1790
- }, {
1791
- path: string;
1792
- workspaceId: string;
1793
- id: string;
1794
- createdAt: string;
1795
- deletedAt?: string | null | undefined;
1796
- originalFileName?: string | null | undefined;
1797
- size?: number | null | undefined;
1798
- createdBy?: string | null | undefined;
1799
- parentId?: string | null | undefined;
1800
- mimeType?: string | null | undefined;
1801
- legacyKey?: string | null | undefined;
1802
- bucketName?: string | null | undefined;
1803
- encryptionKey?: string | null | undefined;
1804
- uploadedAt?: string | null | undefined;
1805
- }>, "many">, zod.ZodObject<{
1806
- files: zod.ZodArray<zod.ZodObject<{
1941
+ uploadUrl: zod.ZodString;
1942
+ expiresAt: zod.ZodString;
1943
+ metadata: zod.ZodObject<{
1807
1944
  id: zod.ZodString;
1808
1945
  path: zod.ZodString;
1809
1946
  workspaceId: zod.ZodString;
@@ -1848,9 +1985,14 @@ declare function useVaultClient(vaultUrl: string, token: string): _zodios_core.Z
1848
1985
  bucketName?: string | null | undefined;
1849
1986
  encryptionKey?: string | null | undefined;
1850
1987
  uploadedAt?: string | null | undefined;
1851
- }>, "many">;
1988
+ }>;
1989
+ path: zod.ZodString;
1852
1990
  }, "strip", zod.ZodTypeAny, {
1853
- files: {
1991
+ path: string;
1992
+ id: string;
1993
+ uploadUrl: string;
1994
+ expiresAt: string;
1995
+ metadata: {
1854
1996
  path: string;
1855
1997
  workspaceId: string;
1856
1998
  id: string;
@@ -1865,9 +2007,13 @@ declare function useVaultClient(vaultUrl: string, token: string): _zodios_core.Z
1865
2007
  bucketName?: string | null | undefined;
1866
2008
  encryptionKey?: string | null | undefined;
1867
2009
  uploadedAt?: string | null | undefined;
1868
- }[];
2010
+ };
1869
2011
  }, {
1870
- files: {
2012
+ path: string;
2013
+ id: string;
2014
+ uploadUrl: string;
2015
+ expiresAt: string;
2016
+ metadata: {
1871
2017
  path: string;
1872
2018
  workspaceId: string;
1873
2019
  id: string;
@@ -1882,8 +2028,8 @@ declare function useVaultClient(vaultUrl: string, token: string): _zodios_core.Z
1882
2028
  bucketName?: string | null | undefined;
1883
2029
  encryptionKey?: string | null | undefined;
1884
2030
  uploadedAt?: string | null | undefined;
1885
- }[];
1886
- }>]>;
2031
+ };
2032
+ }>, "many">;
1887
2033
  }, {
1888
2034
  method: "get";
1889
2035
  path: "/permalinks/:permalinkId";