@meistrari/vault-http-client 2.10.0 → 2.17.6

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;
@@ -248,6 +245,14 @@ declare function useVaultClient(vaultUrl: string, token: string): _zodios_core.Z
248
245
  name: "preserveFileName";
249
246
  type: "Query";
250
247
  schema: zod.ZodDefault<zod.ZodOptional<zod.ZodEnum<["true", "false"]>>>;
248
+ }, {
249
+ name: "includeChildren";
250
+ type: "Query";
251
+ schema: zod.ZodDefault<zod.ZodOptional<zod.ZodEnum<["true", "false"]>>>;
252
+ }, {
253
+ name: "includeParent";
254
+ type: "Query";
255
+ schema: zod.ZodDefault<zod.ZodOptional<zod.ZodEnum<["true", "false"]>>>;
251
256
  }, {
252
257
  name: "fileId";
253
258
  type: "Path";
@@ -271,7 +276,7 @@ declare function useVaultClient(vaultUrl: string, token: string): _zodios_core.Z
271
276
  createdAt: zod.ZodString;
272
277
  deletedAt: zod.ZodOptional<zod.ZodUnion<[zod.ZodString, zod.ZodNull]>>;
273
278
  uploadedAt: zod.ZodOptional<zod.ZodUnion<[zod.ZodString, zod.ZodNull]>>;
274
- children: zod.ZodArray<zod.ZodObject<{
279
+ children: zod.ZodOptional<zod.ZodArray<zod.ZodObject<{
275
280
  id: zod.ZodString;
276
281
  path: zod.ZodString;
277
282
  workspaceId: zod.ZodString;
@@ -316,8 +321,8 @@ declare function useVaultClient(vaultUrl: string, token: string): _zodios_core.Z
316
321
  bucketName?: string | null | undefined;
317
322
  encryptionKey?: string | null | undefined;
318
323
  uploadedAt?: string | null | undefined;
319
- }>, "many">;
320
- parent: zod.ZodUnion<[zod.ZodObject<{
324
+ }>, "many">>;
325
+ parent: zod.ZodOptional<zod.ZodUnion<[zod.ZodObject<{
321
326
  id: zod.ZodString;
322
327
  path: zod.ZodString;
323
328
  workspaceId: zod.ZodString;
@@ -362,13 +367,23 @@ declare function useVaultClient(vaultUrl: string, token: string): _zodios_core.Z
362
367
  bucketName?: string | null | undefined;
363
368
  encryptionKey?: string | null | undefined;
364
369
  uploadedAt?: string | null | undefined;
365
- }>, zod.ZodNull]>;
370
+ }>, zod.ZodNull]>>;
366
371
  }, "strip", zod.ZodTypeAny, {
367
372
  path: string;
368
373
  workspaceId: string;
369
374
  id: string;
370
375
  createdAt: string;
371
- children: {
376
+ deletedAt?: string | null | undefined;
377
+ originalFileName?: string | null | undefined;
378
+ size?: number | null | undefined;
379
+ createdBy?: string | null | undefined;
380
+ parentId?: string | null | undefined;
381
+ mimeType?: string | null | undefined;
382
+ legacyKey?: string | null | undefined;
383
+ bucketName?: string | null | undefined;
384
+ encryptionKey?: string | null | undefined;
385
+ uploadedAt?: string | null | undefined;
386
+ children?: {
372
387
  path: string;
373
388
  workspaceId: string;
374
389
  id: string;
@@ -383,8 +398,8 @@ declare function useVaultClient(vaultUrl: string, token: string): _zodios_core.Z
383
398
  bucketName?: string | null | undefined;
384
399
  encryptionKey?: string | null | undefined;
385
400
  uploadedAt?: string | null | undefined;
386
- }[];
387
- parent: {
401
+ }[] | undefined;
402
+ parent?: {
388
403
  path: string;
389
404
  workspaceId: string;
390
405
  id: string;
@@ -399,7 +414,12 @@ declare function useVaultClient(vaultUrl: string, token: string): _zodios_core.Z
399
414
  bucketName?: string | null | undefined;
400
415
  encryptionKey?: string | null | undefined;
401
416
  uploadedAt?: string | null | undefined;
402
- } | null;
417
+ } | null | undefined;
418
+ }, {
419
+ path: string;
420
+ workspaceId: string;
421
+ id: string;
422
+ createdAt: string;
403
423
  deletedAt?: string | null | undefined;
404
424
  originalFileName?: string | null | undefined;
405
425
  size?: number | null | undefined;
@@ -410,12 +430,7 @@ declare function useVaultClient(vaultUrl: string, token: string): _zodios_core.Z
410
430
  bucketName?: string | null | undefined;
411
431
  encryptionKey?: string | null | undefined;
412
432
  uploadedAt?: string | null | undefined;
413
- }, {
414
- path: string;
415
- workspaceId: string;
416
- id: string;
417
- createdAt: string;
418
- children: {
433
+ children?: {
419
434
  path: string;
420
435
  workspaceId: string;
421
436
  id: string;
@@ -430,8 +445,8 @@ declare function useVaultClient(vaultUrl: string, token: string): _zodios_core.Z
430
445
  bucketName?: string | null | undefined;
431
446
  encryptionKey?: string | null | undefined;
432
447
  uploadedAt?: string | null | undefined;
433
- }[];
434
- parent: {
448
+ }[] | undefined;
449
+ parent?: {
435
450
  path: string;
436
451
  workspaceId: string;
437
452
  id: string;
@@ -446,7 +461,15 @@ declare function useVaultClient(vaultUrl: string, token: string): _zodios_core.Z
446
461
  bucketName?: string | null | undefined;
447
462
  encryptionKey?: string | null | undefined;
448
463
  uploadedAt?: string | null | undefined;
449
- } | null;
464
+ } | null | undefined;
465
+ }>, zod.ZodNull]>;
466
+ }, "strip", zod.ZodTypeAny, {
467
+ expiresAt: string;
468
+ metadata: {
469
+ path: string;
470
+ workspaceId: string;
471
+ id: string;
472
+ createdAt: string;
450
473
  deletedAt?: string | null | undefined;
451
474
  originalFileName?: string | null | undefined;
452
475
  size?: number | null | undefined;
@@ -457,15 +480,7 @@ declare function useVaultClient(vaultUrl: string, token: string): _zodios_core.Z
457
480
  bucketName?: string | null | undefined;
458
481
  encryptionKey?: string | null | undefined;
459
482
  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: {
483
+ children?: {
469
484
  path: string;
470
485
  workspaceId: string;
471
486
  id: string;
@@ -480,8 +495,8 @@ declare function useVaultClient(vaultUrl: string, token: string): _zodios_core.Z
480
495
  bucketName?: string | null | undefined;
481
496
  encryptionKey?: string | null | undefined;
482
497
  uploadedAt?: string | null | undefined;
483
- }[];
484
- parent: {
498
+ }[] | undefined;
499
+ parent?: {
485
500
  path: string;
486
501
  workspaceId: string;
487
502
  id: string;
@@ -496,7 +511,16 @@ declare function useVaultClient(vaultUrl: string, token: string): _zodios_core.Z
496
511
  bucketName?: string | null | undefined;
497
512
  encryptionKey?: string | null | undefined;
498
513
  uploadedAt?: string | null | undefined;
499
- } | null;
514
+ } | null | undefined;
515
+ } | null;
516
+ url: string;
517
+ }, {
518
+ expiresAt: string;
519
+ metadata: {
520
+ path: string;
521
+ workspaceId: string;
522
+ id: string;
523
+ createdAt: string;
500
524
  deletedAt?: string | null | undefined;
501
525
  originalFileName?: string | null | undefined;
502
526
  size?: number | null | undefined;
@@ -507,16 +531,7 @@ declare function useVaultClient(vaultUrl: string, token: string): _zodios_core.Z
507
531
  bucketName?: string | null | undefined;
508
532
  encryptionKey?: string | null | undefined;
509
533
  uploadedAt?: string | null | undefined;
510
- } | null;
511
- url: string;
512
- }, {
513
- expiresAt: string;
514
- metadata: {
515
- path: string;
516
- workspaceId: string;
517
- id: string;
518
- createdAt: string;
519
- children: {
534
+ children?: {
520
535
  path: string;
521
536
  workspaceId: string;
522
537
  id: string;
@@ -531,8 +546,8 @@ declare function useVaultClient(vaultUrl: string, token: string): _zodios_core.Z
531
546
  bucketName?: string | null | undefined;
532
547
  encryptionKey?: string | null | undefined;
533
548
  uploadedAt?: string | null | undefined;
534
- }[];
535
- parent: {
549
+ }[] | undefined;
550
+ parent?: {
536
551
  path: string;
537
552
  workspaceId: string;
538
553
  id: string;
@@ -547,17 +562,7 @@ declare function useVaultClient(vaultUrl: string, token: string): _zodios_core.Z
547
562
  bucketName?: string | null | undefined;
548
563
  encryptionKey?: string | null | undefined;
549
564
  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;
565
+ } | null | undefined;
561
566
  } | null;
562
567
  url: string;
563
568
  }>;
@@ -835,17 +840,14 @@ declare function useVaultClient(vaultUrl: string, token: string): _zodios_core.Z
835
840
  requestFormat: "json";
836
841
  response: zod.ZodArray<zod.ZodObject<{
837
842
  workspaceId: zod.ZodString;
838
- files: zod.ZodNumber;
839
843
  permalinks: zod.ZodNumber;
840
844
  hasCustomSettings: zod.ZodBoolean;
841
845
  }, "strip", zod.ZodTypeAny, {
842
846
  workspaceId: string;
843
- files: number;
844
847
  permalinks: number;
845
848
  hasCustomSettings: boolean;
846
849
  }, {
847
850
  workspaceId: string;
848
- files: number;
849
851
  permalinks: number;
850
852
  hasCustomSettings: boolean;
851
853
  }>, "many">;
@@ -1037,6 +1039,202 @@ declare function useVaultClient(vaultUrl: string, token: string): _zodios_core.Z
1037
1039
  schema: zod.ZodString;
1038
1040
  }];
1039
1041
  response: zod.ZodVoid;
1042
+ }, {
1043
+ method: "post";
1044
+ path: "/assets";
1045
+ description: "Create an asset and get a pre-signed upload URL for the dedicated assets bucket.";
1046
+ requestFormat: "json";
1047
+ parameters: [{
1048
+ name: "body";
1049
+ type: "Body";
1050
+ schema: zod.ZodObject<{
1051
+ assetClass: zod.ZodString;
1052
+ subject: zod.ZodString;
1053
+ mimeType: zod.ZodEnum<["image/png", "image/jpeg", "image/gif", "image/webp", "image/avif"]>;
1054
+ size: zod.ZodOptional<zod.ZodNumber>;
1055
+ }, "strip", zod.ZodTypeAny, {
1056
+ mimeType: "image/png" | "image/jpeg" | "image/gif" | "image/webp" | "image/avif";
1057
+ assetClass: string;
1058
+ subject: string;
1059
+ size?: number | undefined;
1060
+ }, {
1061
+ mimeType: "image/png" | "image/jpeg" | "image/gif" | "image/webp" | "image/avif";
1062
+ assetClass: string;
1063
+ subject: string;
1064
+ size?: number | undefined;
1065
+ }>;
1066
+ }, {
1067
+ name: "expiresIn";
1068
+ type: "Query";
1069
+ schema: zod.ZodDefault<zod.ZodOptional<zod.ZodNumber>>;
1070
+ }];
1071
+ response: zod.ZodObject<{
1072
+ assetId: zod.ZodString;
1073
+ assetUrl: zod.ZodString;
1074
+ uploadUrl: zod.ZodString;
1075
+ expiresAt: zod.ZodString;
1076
+ uploadHeaders: zod.ZodObject<{
1077
+ "cache-control": zod.ZodString;
1078
+ "content-disposition": zod.ZodString;
1079
+ "content-type": zod.ZodString;
1080
+ "if-none-match": zod.ZodString;
1081
+ }, "strip", zod.ZodTypeAny, {
1082
+ "cache-control": string;
1083
+ "content-disposition": string;
1084
+ "content-type": string;
1085
+ "if-none-match": string;
1086
+ }, {
1087
+ "cache-control": string;
1088
+ "content-disposition": string;
1089
+ "content-type": string;
1090
+ "if-none-match": string;
1091
+ }>;
1092
+ asset: zod.ZodObject<{
1093
+ id: zod.ZodString;
1094
+ path: zod.ZodString;
1095
+ assetUrl: zod.ZodString;
1096
+ assetClass: zod.ZodString;
1097
+ subject: zod.ZodString;
1098
+ mimeType: zod.ZodString;
1099
+ size: zod.ZodOptional<zod.ZodUnion<[zod.ZodNumber, zod.ZodNull]>>;
1100
+ bucketName: zod.ZodOptional<zod.ZodUnion<[zod.ZodString, zod.ZodNull]>>;
1101
+ createdBy: zod.ZodOptional<zod.ZodUnion<[zod.ZodString, zod.ZodNull]>>;
1102
+ createdAt: zod.ZodString;
1103
+ uploadedAt: zod.ZodOptional<zod.ZodUnion<[zod.ZodString, zod.ZodNull]>>;
1104
+ deletedAt: zod.ZodOptional<zod.ZodUnion<[zod.ZodString, zod.ZodNull]>>;
1105
+ }, "strip", zod.ZodTypeAny, {
1106
+ path: string;
1107
+ id: string;
1108
+ createdAt: string;
1109
+ mimeType: string;
1110
+ assetClass: string;
1111
+ subject: string;
1112
+ assetUrl: string;
1113
+ deletedAt?: string | null | undefined;
1114
+ size?: number | null | undefined;
1115
+ createdBy?: string | null | undefined;
1116
+ bucketName?: string | null | undefined;
1117
+ uploadedAt?: string | null | undefined;
1118
+ }, {
1119
+ path: string;
1120
+ id: string;
1121
+ createdAt: string;
1122
+ mimeType: string;
1123
+ assetClass: string;
1124
+ subject: string;
1125
+ assetUrl: string;
1126
+ deletedAt?: string | null | undefined;
1127
+ size?: number | null | undefined;
1128
+ createdBy?: string | null | undefined;
1129
+ bucketName?: string | null | undefined;
1130
+ uploadedAt?: string | null | undefined;
1131
+ }>;
1132
+ }, "strip", zod.ZodTypeAny, {
1133
+ uploadUrl: string;
1134
+ expiresAt: string;
1135
+ assetId: string;
1136
+ assetUrl: string;
1137
+ uploadHeaders: {
1138
+ "cache-control": string;
1139
+ "content-disposition": string;
1140
+ "content-type": string;
1141
+ "if-none-match": string;
1142
+ };
1143
+ asset: {
1144
+ path: string;
1145
+ id: string;
1146
+ createdAt: string;
1147
+ mimeType: string;
1148
+ assetClass: string;
1149
+ subject: string;
1150
+ assetUrl: string;
1151
+ deletedAt?: string | null | undefined;
1152
+ size?: number | null | undefined;
1153
+ createdBy?: string | null | undefined;
1154
+ bucketName?: string | null | undefined;
1155
+ uploadedAt?: string | null | undefined;
1156
+ };
1157
+ }, {
1158
+ uploadUrl: string;
1159
+ expiresAt: string;
1160
+ assetId: string;
1161
+ assetUrl: string;
1162
+ uploadHeaders: {
1163
+ "cache-control": string;
1164
+ "content-disposition": string;
1165
+ "content-type": string;
1166
+ "if-none-match": string;
1167
+ };
1168
+ asset: {
1169
+ path: string;
1170
+ id: string;
1171
+ createdAt: string;
1172
+ mimeType: string;
1173
+ assetClass: string;
1174
+ subject: string;
1175
+ assetUrl: string;
1176
+ deletedAt?: string | null | undefined;
1177
+ size?: number | null | undefined;
1178
+ createdBy?: string | null | undefined;
1179
+ bucketName?: string | null | undefined;
1180
+ uploadedAt?: string | null | undefined;
1181
+ };
1182
+ }>;
1183
+ }, {
1184
+ method: "get";
1185
+ path: "/assets/:assetId";
1186
+ description: "Get a stored asset by ID, including its stable CloudFront URL.";
1187
+ requestFormat: "json";
1188
+ parameters: [{
1189
+ name: "assetId";
1190
+ type: "Path";
1191
+ schema: zod.ZodString;
1192
+ }];
1193
+ response: zod.ZodObject<{
1194
+ id: zod.ZodString;
1195
+ path: zod.ZodString;
1196
+ assetUrl: zod.ZodString;
1197
+ assetClass: zod.ZodString;
1198
+ subject: zod.ZodString;
1199
+ mimeType: zod.ZodString;
1200
+ size: zod.ZodOptional<zod.ZodUnion<[zod.ZodNumber, zod.ZodNull]>>;
1201
+ bucketName: zod.ZodOptional<zod.ZodUnion<[zod.ZodString, zod.ZodNull]>>;
1202
+ createdBy: zod.ZodOptional<zod.ZodUnion<[zod.ZodString, zod.ZodNull]>>;
1203
+ createdAt: zod.ZodString;
1204
+ uploadedAt: zod.ZodOptional<zod.ZodUnion<[zod.ZodString, zod.ZodNull]>>;
1205
+ deletedAt: zod.ZodOptional<zod.ZodUnion<[zod.ZodString, zod.ZodNull]>>;
1206
+ }, "strip", zod.ZodTypeAny, {
1207
+ path: string;
1208
+ id: string;
1209
+ createdAt: string;
1210
+ mimeType: string;
1211
+ assetClass: string;
1212
+ subject: string;
1213
+ assetUrl: string;
1214
+ deletedAt?: string | null | undefined;
1215
+ size?: number | null | undefined;
1216
+ createdBy?: string | null | undefined;
1217
+ bucketName?: string | null | undefined;
1218
+ uploadedAt?: string | null | undefined;
1219
+ }, {
1220
+ path: string;
1221
+ id: string;
1222
+ createdAt: string;
1223
+ mimeType: string;
1224
+ assetClass: string;
1225
+ subject: string;
1226
+ assetUrl: string;
1227
+ deletedAt?: string | null | undefined;
1228
+ size?: number | null | undefined;
1229
+ createdBy?: string | null | undefined;
1230
+ bucketName?: string | null | undefined;
1231
+ uploadedAt?: string | null | undefined;
1232
+ }>;
1233
+ errors: [{
1234
+ status: 404;
1235
+ description: string;
1236
+ schema: zod.ZodVoid;
1237
+ }];
1040
1238
  }, {
1041
1239
  method: "post";
1042
1240
  path: "/files";
@@ -1054,9 +1252,7 @@ declare function useVaultClient(vaultUrl: string, token: string): _zodios_core.Z
1054
1252
  size: zod.ZodOptional<zod.ZodNumber>;
1055
1253
  mimeType: zod.ZodOptional<zod.ZodString>;
1056
1254
  createdBy: zod.ZodOptional<zod.ZodString>;
1057
- path: zod.ZodOptional<zod.ZodString>;
1058
1255
  }, "strip", zod.ZodTypeAny, {
1059
- path?: string | undefined;
1060
1256
  size?: number | undefined;
1061
1257
  createdBy?: string | undefined;
1062
1258
  fileName?: string | undefined;
@@ -1066,7 +1262,6 @@ declare function useVaultClient(vaultUrl: string, token: string): _zodios_core.Z
1066
1262
  sha256sum?: string | undefined;
1067
1263
  mimeType?: string | undefined;
1068
1264
  }, {
1069
- path?: string | undefined;
1070
1265
  size?: number | undefined;
1071
1266
  createdBy?: string | undefined;
1072
1267
  fileName?: string | undefined;
@@ -1177,22 +1372,40 @@ declare function useVaultClient(vaultUrl: string, token: string): _zodios_core.Z
1177
1372
  }>;
1178
1373
  }, {
1179
1374
  method: "get";
1180
- path: "/files/:fileId";
1181
- description: "Get a pre-signed download URL for a file.";
1375
+ path: "/files";
1376
+ description: "Get a list of files.";
1182
1377
  requestFormat: "json";
1183
1378
  parameters: [{
1184
- name: "preserveFileName";
1379
+ name: "limit";
1380
+ type: "Query";
1381
+ schema: zod.ZodDefault<zod.ZodOptional<zod.ZodNumber>>;
1382
+ }, {
1383
+ name: "offset";
1384
+ type: "Query";
1385
+ schema: zod.ZodDefault<zod.ZodOptional<zod.ZodNumber>>;
1386
+ }, {
1387
+ name: "orderByField";
1388
+ type: "Query";
1389
+ schema: zod.ZodOptional<zod.ZodEnum<["id", "createdAt", "deletedAt"]>>;
1390
+ }, {
1391
+ name: "orderByDirection";
1392
+ type: "Query";
1393
+ schema: zod.ZodDefault<zod.ZodOptional<zod.ZodEnum<["asc", "desc"]>>>;
1394
+ }, {
1395
+ name: "search";
1396
+ type: "Query";
1397
+ schema: zod.ZodOptional<zod.ZodString>;
1398
+ }, {
1399
+ name: "includeDeleted";
1185
1400
  type: "Query";
1186
1401
  schema: zod.ZodDefault<zod.ZodOptional<zod.ZodEnum<["true", "false"]>>>;
1187
1402
  }, {
1188
- name: "fileId";
1189
- type: "Path";
1190
- schema: zod.ZodString;
1403
+ name: "includeChildren";
1404
+ type: "Query";
1405
+ schema: zod.ZodDefault<zod.ZodOptional<zod.ZodEnum<["true", "false"]>>>;
1191
1406
  }];
1192
1407
  response: zod.ZodObject<{
1193
- url: zod.ZodString;
1194
- expiresAt: zod.ZodString;
1195
- metadata: zod.ZodUnion<[zod.ZodObject<{
1408
+ files: zod.ZodArray<zod.ZodObject<{
1196
1409
  id: zod.ZodString;
1197
1410
  path: zod.ZodString;
1198
1411
  workspaceId: zod.ZodString;
@@ -1237,10 +1450,11 @@ declare function useVaultClient(vaultUrl: string, token: string): _zodios_core.Z
1237
1450
  bucketName?: string | null | undefined;
1238
1451
  encryptionKey?: string | null | undefined;
1239
1452
  uploadedAt?: string | null | undefined;
1240
- }>, zod.ZodNull]>;
1453
+ }>, "many">;
1454
+ count: zod.ZodNumber;
1455
+ pages: zod.ZodNumber;
1241
1456
  }, "strip", zod.ZodTypeAny, {
1242
- expiresAt: string;
1243
- metadata: {
1457
+ files: {
1244
1458
  path: string;
1245
1459
  workspaceId: string;
1246
1460
  id: string;
@@ -1255,11 +1469,11 @@ declare function useVaultClient(vaultUrl: string, token: string): _zodios_core.Z
1255
1469
  bucketName?: string | null | undefined;
1256
1470
  encryptionKey?: string | null | undefined;
1257
1471
  uploadedAt?: string | null | undefined;
1258
- } | null;
1259
- url: string;
1472
+ }[];
1473
+ count: number;
1474
+ pages: number;
1260
1475
  }, {
1261
- expiresAt: string;
1262
- metadata: {
1476
+ files: {
1263
1477
  path: string;
1264
1478
  workspaceId: string;
1265
1479
  id: string;
@@ -1274,17 +1488,294 @@ declare function useVaultClient(vaultUrl: string, token: string): _zodios_core.Z
1274
1488
  bucketName?: string | null | undefined;
1275
1489
  encryptionKey?: string | null | undefined;
1276
1490
  uploadedAt?: string | null | undefined;
1277
- } | null;
1278
- url: string;
1491
+ }[];
1492
+ count: number;
1493
+ pages: number;
1279
1494
  }>;
1280
- errors: [{
1281
- status: 404;
1282
- description: string;
1283
- schema: zod.ZodVoid;
1284
- }];
1285
1495
  }, {
1286
- method: "post";
1287
- path: "/files/:fileId/permalinks";
1496
+ method: "get";
1497
+ path: "/files/:fileId";
1498
+ description: "Get a pre-signed download URL for a file.";
1499
+ requestFormat: "json";
1500
+ parameters: [{
1501
+ name: "preserveFileName";
1502
+ type: "Query";
1503
+ schema: zod.ZodDefault<zod.ZodOptional<zod.ZodEnum<["true", "false"]>>>;
1504
+ }, {
1505
+ name: "fileId";
1506
+ type: "Path";
1507
+ schema: zod.ZodString;
1508
+ }];
1509
+ response: zod.ZodObject<{
1510
+ url: zod.ZodString;
1511
+ expiresAt: zod.ZodString;
1512
+ metadata: zod.ZodUnion<[zod.ZodObject<{
1513
+ id: zod.ZodString;
1514
+ path: zod.ZodString;
1515
+ workspaceId: zod.ZodString;
1516
+ parentId: zod.ZodOptional<zod.ZodUnion<[zod.ZodString, zod.ZodNull]>>;
1517
+ originalFileName: zod.ZodOptional<zod.ZodUnion<[zod.ZodString, zod.ZodNull]>>;
1518
+ mimeType: zod.ZodOptional<zod.ZodUnion<[zod.ZodString, zod.ZodNull]>>;
1519
+ size: zod.ZodOptional<zod.ZodUnion<[zod.ZodNumber, zod.ZodNull]>>;
1520
+ legacyKey: zod.ZodOptional<zod.ZodUnion<[zod.ZodString, zod.ZodNull]>>;
1521
+ bucketName: zod.ZodOptional<zod.ZodUnion<[zod.ZodString, zod.ZodNull]>>;
1522
+ encryptionKey: zod.ZodOptional<zod.ZodUnion<[zod.ZodString, zod.ZodNull]>>;
1523
+ createdBy: zod.ZodOptional<zod.ZodUnion<[zod.ZodString, zod.ZodNull]>>;
1524
+ createdAt: zod.ZodString;
1525
+ deletedAt: zod.ZodOptional<zod.ZodUnion<[zod.ZodString, zod.ZodNull]>>;
1526
+ uploadedAt: zod.ZodOptional<zod.ZodUnion<[zod.ZodString, zod.ZodNull]>>;
1527
+ }, "strip", zod.ZodTypeAny, {
1528
+ path: string;
1529
+ workspaceId: string;
1530
+ id: string;
1531
+ createdAt: string;
1532
+ deletedAt?: string | null | undefined;
1533
+ originalFileName?: string | null | undefined;
1534
+ size?: number | null | undefined;
1535
+ createdBy?: string | null | undefined;
1536
+ parentId?: string | null | undefined;
1537
+ mimeType?: string | null | undefined;
1538
+ legacyKey?: string | null | undefined;
1539
+ bucketName?: string | null | undefined;
1540
+ encryptionKey?: string | null | undefined;
1541
+ uploadedAt?: string | null | undefined;
1542
+ }, {
1543
+ path: string;
1544
+ workspaceId: string;
1545
+ id: string;
1546
+ createdAt: string;
1547
+ deletedAt?: string | null | undefined;
1548
+ originalFileName?: string | null | undefined;
1549
+ size?: number | null | undefined;
1550
+ createdBy?: string | null | undefined;
1551
+ parentId?: string | null | undefined;
1552
+ mimeType?: string | null | undefined;
1553
+ legacyKey?: string | null | undefined;
1554
+ bucketName?: string | null | undefined;
1555
+ encryptionKey?: string | null | undefined;
1556
+ uploadedAt?: string | null | undefined;
1557
+ }>, zod.ZodNull]>;
1558
+ }, "strip", zod.ZodTypeAny, {
1559
+ expiresAt: string;
1560
+ metadata: {
1561
+ path: string;
1562
+ workspaceId: string;
1563
+ id: string;
1564
+ createdAt: string;
1565
+ deletedAt?: string | null | undefined;
1566
+ originalFileName?: string | null | undefined;
1567
+ size?: number | null | undefined;
1568
+ createdBy?: string | null | undefined;
1569
+ parentId?: string | null | undefined;
1570
+ mimeType?: string | null | undefined;
1571
+ legacyKey?: string | null | undefined;
1572
+ bucketName?: string | null | undefined;
1573
+ encryptionKey?: string | null | undefined;
1574
+ uploadedAt?: string | null | undefined;
1575
+ } | null;
1576
+ url: string;
1577
+ }, {
1578
+ expiresAt: string;
1579
+ metadata: {
1580
+ path: string;
1581
+ workspaceId: string;
1582
+ id: string;
1583
+ createdAt: string;
1584
+ deletedAt?: string | null | undefined;
1585
+ originalFileName?: string | null | undefined;
1586
+ size?: number | null | undefined;
1587
+ createdBy?: string | null | undefined;
1588
+ parentId?: string | null | undefined;
1589
+ mimeType?: string | null | undefined;
1590
+ legacyKey?: string | null | undefined;
1591
+ bucketName?: string | null | undefined;
1592
+ encryptionKey?: string | null | undefined;
1593
+ uploadedAt?: string | null | undefined;
1594
+ } | null;
1595
+ url: string;
1596
+ }>;
1597
+ errors: [{
1598
+ status: 404;
1599
+ description: string;
1600
+ schema: zod.ZodVoid;
1601
+ }];
1602
+ }, {
1603
+ method: "patch";
1604
+ path: "/files/:fileId";
1605
+ description: "Update file metadata. This only affects file metadata and has no effect on file conflicts or storage location.";
1606
+ requestFormat: "json";
1607
+ parameters: [{
1608
+ name: "body";
1609
+ type: "Body";
1610
+ schema: zod.ZodObject<{
1611
+ name: zod.ZodString;
1612
+ }, "strip", zod.ZodTypeAny, {
1613
+ name: string;
1614
+ }, {
1615
+ name: string;
1616
+ }>;
1617
+ }, {
1618
+ name: "fileId";
1619
+ type: "Path";
1620
+ schema: zod.ZodString;
1621
+ }];
1622
+ response: zod.ZodObject<{
1623
+ id: zod.ZodString;
1624
+ path: zod.ZodString;
1625
+ workspaceId: zod.ZodString;
1626
+ parentId: zod.ZodOptional<zod.ZodUnion<[zod.ZodString, zod.ZodNull]>>;
1627
+ originalFileName: zod.ZodOptional<zod.ZodUnion<[zod.ZodString, zod.ZodNull]>>;
1628
+ mimeType: zod.ZodOptional<zod.ZodUnion<[zod.ZodString, zod.ZodNull]>>;
1629
+ size: zod.ZodOptional<zod.ZodUnion<[zod.ZodNumber, zod.ZodNull]>>;
1630
+ legacyKey: zod.ZodOptional<zod.ZodUnion<[zod.ZodString, zod.ZodNull]>>;
1631
+ bucketName: zod.ZodOptional<zod.ZodUnion<[zod.ZodString, zod.ZodNull]>>;
1632
+ encryptionKey: zod.ZodOptional<zod.ZodUnion<[zod.ZodString, zod.ZodNull]>>;
1633
+ createdBy: zod.ZodOptional<zod.ZodUnion<[zod.ZodString, zod.ZodNull]>>;
1634
+ createdAt: zod.ZodString;
1635
+ deletedAt: zod.ZodOptional<zod.ZodUnion<[zod.ZodString, zod.ZodNull]>>;
1636
+ uploadedAt: zod.ZodOptional<zod.ZodUnion<[zod.ZodString, zod.ZodNull]>>;
1637
+ }, "strip", zod.ZodTypeAny, {
1638
+ path: string;
1639
+ workspaceId: string;
1640
+ id: string;
1641
+ createdAt: string;
1642
+ deletedAt?: string | null | undefined;
1643
+ originalFileName?: string | null | undefined;
1644
+ size?: number | null | undefined;
1645
+ createdBy?: string | null | undefined;
1646
+ parentId?: string | null | undefined;
1647
+ mimeType?: string | null | undefined;
1648
+ legacyKey?: string | null | undefined;
1649
+ bucketName?: string | null | undefined;
1650
+ encryptionKey?: string | null | undefined;
1651
+ uploadedAt?: string | null | undefined;
1652
+ }, {
1653
+ path: string;
1654
+ workspaceId: string;
1655
+ id: string;
1656
+ createdAt: string;
1657
+ deletedAt?: string | null | undefined;
1658
+ originalFileName?: string | null | undefined;
1659
+ size?: number | null | undefined;
1660
+ createdBy?: string | null | undefined;
1661
+ parentId?: string | null | undefined;
1662
+ mimeType?: string | null | undefined;
1663
+ legacyKey?: string | null | undefined;
1664
+ bucketName?: string | null | undefined;
1665
+ encryptionKey?: string | null | undefined;
1666
+ uploadedAt?: string | null | undefined;
1667
+ }>;
1668
+ }, {
1669
+ method: "post";
1670
+ path: "/files/:fileId/multipart";
1671
+ description: "Initiate a multipart upload for a file.";
1672
+ requestFormat: "json";
1673
+ parameters: [{
1674
+ name: "fileId";
1675
+ type: "Path";
1676
+ schema: zod.ZodString;
1677
+ }];
1678
+ response: zod.ZodObject<{
1679
+ uploadId: zod.ZodString;
1680
+ }, "strip", zod.ZodTypeAny, {
1681
+ uploadId: string;
1682
+ }, {
1683
+ uploadId: string;
1684
+ }>;
1685
+ }, {
1686
+ method: "delete";
1687
+ path: "/files/:fileId/multipart";
1688
+ description: "Abort a multipart upload and discard its uploaded parts.";
1689
+ requestFormat: "json";
1690
+ parameters: [{
1691
+ name: "uploadId";
1692
+ type: "Query";
1693
+ schema: zod.ZodString;
1694
+ }, {
1695
+ name: "fileId";
1696
+ type: "Path";
1697
+ schema: zod.ZodString;
1698
+ }];
1699
+ response: zod.ZodVoid;
1700
+ }, {
1701
+ method: "post";
1702
+ path: "/files/:fileId/multipart/complete";
1703
+ description: "Complete a multipart upload and assemble the file in S3.";
1704
+ requestFormat: "json";
1705
+ parameters: [{
1706
+ name: "body";
1707
+ type: "Body";
1708
+ schema: zod.ZodObject<{
1709
+ uploadId: zod.ZodString;
1710
+ parts: zod.ZodArray<zod.ZodObject<{
1711
+ partNumber: zod.ZodNumber;
1712
+ etag: zod.ZodString;
1713
+ }, "strip", zod.ZodTypeAny, {
1714
+ partNumber: number;
1715
+ etag: string;
1716
+ }, {
1717
+ partNumber: number;
1718
+ etag: string;
1719
+ }>, "many">;
1720
+ }, "strip", zod.ZodTypeAny, {
1721
+ uploadId: string;
1722
+ parts: {
1723
+ partNumber: number;
1724
+ etag: string;
1725
+ }[];
1726
+ }, {
1727
+ uploadId: string;
1728
+ parts: {
1729
+ partNumber: number;
1730
+ etag: string;
1731
+ }[];
1732
+ }>;
1733
+ }, {
1734
+ name: "fileId";
1735
+ type: "Path";
1736
+ schema: zod.ZodString;
1737
+ }];
1738
+ response: zod.ZodVoid;
1739
+ }, {
1740
+ method: "post";
1741
+ path: "/files/:fileId/multipart/part";
1742
+ description: "Get a pre-signed URL for one multipart upload part.";
1743
+ requestFormat: "json";
1744
+ parameters: [{
1745
+ name: "body";
1746
+ type: "Body";
1747
+ schema: zod.ZodObject<{
1748
+ uploadId: zod.ZodString;
1749
+ partNumber: zod.ZodNumber;
1750
+ }, "strip", zod.ZodTypeAny, {
1751
+ uploadId: string;
1752
+ partNumber: number;
1753
+ }, {
1754
+ uploadId: string;
1755
+ partNumber: number;
1756
+ }>;
1757
+ }, {
1758
+ name: "expiresIn";
1759
+ type: "Query";
1760
+ schema: zod.ZodDefault<zod.ZodOptional<zod.ZodNumber>>;
1761
+ }, {
1762
+ name: "fileId";
1763
+ type: "Path";
1764
+ schema: zod.ZodString;
1765
+ }];
1766
+ response: zod.ZodObject<{
1767
+ uploadUrl: zod.ZodString;
1768
+ expiresAt: zod.ZodString;
1769
+ }, "strip", zod.ZodTypeAny, {
1770
+ uploadUrl: string;
1771
+ expiresAt: string;
1772
+ }, {
1773
+ uploadUrl: string;
1774
+ expiresAt: string;
1775
+ }>;
1776
+ }, {
1777
+ method: "post";
1778
+ path: "/files/:fileId/permalinks";
1288
1779
  description: "Create a public, direct, and optionally expiring download link for a file.\n\nThe returned permalink ID should be used with the &#x60;/permalinks/:permalinkId&#x60; endpoint to download the file via a 302 redirect.\n";
1289
1780
  requestFormat: "json";
1290
1781
  parameters: [{
@@ -1356,64 +1847,6 @@ declare function useVaultClient(vaultUrl: string, token: string): _zodios_core.Z
1356
1847
  expiresAt: string | null;
1357
1848
  fileId: string;
1358
1849
  }>, "many">;
1359
- }, {
1360
- method: "post";
1361
- path: "/files/:filename";
1362
- 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";
1363
- requestFormat: "json";
1364
- parameters: [{
1365
- name: "body";
1366
- type: "Body";
1367
- schema: zod.ZodObject<{
1368
- fileName: zod.ZodOptional<zod.ZodString>;
1369
- parentId: zod.ZodOptional<zod.ZodString>;
1370
- onMissingParent: zod.ZodOptional<zod.ZodDefault<zod.ZodEnum<["error", "create-as-root"]>>>;
1371
- onParentConflict: zod.ZodOptional<zod.ZodDefault<zod.ZodEnum<["error", "update-parent-id", "ignore"]>>>;
1372
- sha256sum: zod.ZodOptional<zod.ZodString>;
1373
- size: zod.ZodOptional<zod.ZodNumber>;
1374
- mimeType: zod.ZodOptional<zod.ZodString>;
1375
- createdBy: zod.ZodOptional<zod.ZodString>;
1376
- path: zod.ZodOptional<zod.ZodString>;
1377
- }, "strip", zod.ZodTypeAny, {
1378
- path?: string | undefined;
1379
- size?: number | undefined;
1380
- createdBy?: string | undefined;
1381
- fileName?: string | undefined;
1382
- parentId?: string | undefined;
1383
- onMissingParent?: "error" | "create-as-root" | undefined;
1384
- onParentConflict?: "error" | "update-parent-id" | "ignore" | undefined;
1385
- sha256sum?: string | undefined;
1386
- mimeType?: string | undefined;
1387
- }, {
1388
- path?: string | undefined;
1389
- size?: number | undefined;
1390
- createdBy?: string | undefined;
1391
- fileName?: string | undefined;
1392
- parentId?: string | undefined;
1393
- onMissingParent?: "error" | "create-as-root" | undefined;
1394
- onParentConflict?: "error" | "update-parent-id" | "ignore" | undefined;
1395
- sha256sum?: string | undefined;
1396
- mimeType?: string | undefined;
1397
- }>;
1398
- }, {
1399
- name: "expiresIn";
1400
- type: "Query";
1401
- schema: zod.ZodDefault<zod.ZodOptional<zod.ZodNumber>>;
1402
- }, {
1403
- name: "filename";
1404
- type: "Path";
1405
- schema: zod.ZodString;
1406
- }];
1407
- response: zod.ZodObject<{
1408
- url: zod.ZodString;
1409
- expiresAt: zod.ZodString;
1410
- }, "strip", zod.ZodTypeAny, {
1411
- expiresAt: string;
1412
- url: string;
1413
- }, {
1414
- expiresAt: string;
1415
- url: string;
1416
- }>;
1417
1850
  }, {
1418
1851
  method: "put";
1419
1852
  path: "/files/:id";
@@ -1428,7 +1861,7 @@ declare function useVaultClient(vaultUrl: string, token: string): _zodios_core.Z
1428
1861
  type: "Path";
1429
1862
  schema: zod.ZodString;
1430
1863
  }];
1431
- response: zod.ZodUnion<[zod.ZodObject<{
1864
+ response: zod.ZodObject<{
1432
1865
  id: zod.ZodString;
1433
1866
  uploadUrl: zod.ZodString;
1434
1867
  expiresAt: zod.ZodString;
@@ -1518,16 +1951,7 @@ declare function useVaultClient(vaultUrl: string, token: string): _zodios_core.Z
1518
1951
  encryptionKey?: string | null | undefined;
1519
1952
  uploadedAt?: string | null | undefined;
1520
1953
  };
1521
- }>, zod.ZodObject<{
1522
- url: zod.ZodString;
1523
- expiresAt: zod.ZodString;
1524
- }, "strip", zod.ZodTypeAny, {
1525
- expiresAt: string;
1526
- url: string;
1527
- }, {
1528
- expiresAt: string;
1529
- url: string;
1530
- }>]>;
1954
+ }>;
1531
1955
  }, {
1532
1956
  method: "delete";
1533
1957
  path: "/files/:id";
@@ -1719,7 +2143,7 @@ declare function useVaultClient(vaultUrl: string, token: string): _zodios_core.Z
1719
2143
  parameters: [{
1720
2144
  name: "body";
1721
2145
  type: "Body";
1722
- schema: zod.ZodUnion<[zod.ZodArray<zod.ZodObject<{
2146
+ schema: zod.ZodArray<zod.ZodObject<{
1723
2147
  fileName: zod.ZodOptional<zod.ZodString>;
1724
2148
  parentId: zod.ZodOptional<zod.ZodString>;
1725
2149
  onMissingParent: zod.ZodOptional<zod.ZodDefault<zod.ZodEnum<["error", "create-as-root"]>>>;
@@ -1728,9 +2152,7 @@ declare function useVaultClient(vaultUrl: string, token: string): _zodios_core.Z
1728
2152
  size: zod.ZodOptional<zod.ZodNumber>;
1729
2153
  mimeType: zod.ZodOptional<zod.ZodString>;
1730
2154
  createdBy: zod.ZodOptional<zod.ZodString>;
1731
- path: zod.ZodOptional<zod.ZodString>;
1732
2155
  }, "strip", zod.ZodTypeAny, {
1733
- path?: string | undefined;
1734
2156
  size?: number | undefined;
1735
2157
  createdBy?: string | undefined;
1736
2158
  fileName?: string | undefined;
@@ -1740,7 +2162,6 @@ declare function useVaultClient(vaultUrl: string, token: string): _zodios_core.Z
1740
2162
  sha256sum?: string | undefined;
1741
2163
  mimeType?: string | undefined;
1742
2164
  }, {
1743
- path?: string | undefined;
1744
2165
  size?: number | undefined;
1745
2166
  createdBy?: string | undefined;
1746
2167
  fileName?: string | undefined;
@@ -1749,61 +2170,13 @@ declare function useVaultClient(vaultUrl: string, token: string): _zodios_core.Z
1749
2170
  onParentConflict?: "error" | "update-parent-id" | "ignore" | undefined;
1750
2171
  sha256sum?: string | undefined;
1751
2172
  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
- }>]>;
2173
+ }>, "many">;
1759
2174
  }];
1760
- response: zod.ZodUnion<[zod.ZodArray<zod.ZodObject<{
2175
+ response: zod.ZodArray<zod.ZodObject<{
1761
2176
  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<{
2177
+ uploadUrl: zod.ZodString;
2178
+ expiresAt: zod.ZodString;
2179
+ metadata: zod.ZodObject<{
1807
2180
  id: zod.ZodString;
1808
2181
  path: zod.ZodString;
1809
2182
  workspaceId: zod.ZodString;
@@ -1848,9 +2221,14 @@ declare function useVaultClient(vaultUrl: string, token: string): _zodios_core.Z
1848
2221
  bucketName?: string | null | undefined;
1849
2222
  encryptionKey?: string | null | undefined;
1850
2223
  uploadedAt?: string | null | undefined;
1851
- }>, "many">;
2224
+ }>;
2225
+ path: zod.ZodString;
1852
2226
  }, "strip", zod.ZodTypeAny, {
1853
- files: {
2227
+ path: string;
2228
+ id: string;
2229
+ uploadUrl: string;
2230
+ expiresAt: string;
2231
+ metadata: {
1854
2232
  path: string;
1855
2233
  workspaceId: string;
1856
2234
  id: string;
@@ -1865,9 +2243,13 @@ declare function useVaultClient(vaultUrl: string, token: string): _zodios_core.Z
1865
2243
  bucketName?: string | null | undefined;
1866
2244
  encryptionKey?: string | null | undefined;
1867
2245
  uploadedAt?: string | null | undefined;
1868
- }[];
2246
+ };
1869
2247
  }, {
1870
- files: {
2248
+ path: string;
2249
+ id: string;
2250
+ uploadUrl: string;
2251
+ expiresAt: string;
2252
+ metadata: {
1871
2253
  path: string;
1872
2254
  workspaceId: string;
1873
2255
  id: string;
@@ -1882,8 +2264,8 @@ declare function useVaultClient(vaultUrl: string, token: string): _zodios_core.Z
1882
2264
  bucketName?: string | null | undefined;
1883
2265
  encryptionKey?: string | null | undefined;
1884
2266
  uploadedAt?: string | null | undefined;
1885
- }[];
1886
- }>]>;
2267
+ };
2268
+ }>, "many">;
1887
2269
  }, {
1888
2270
  method: "get";
1889
2271
  path: "/permalinks/:permalinkId";