@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.d.mts 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";
package/dist/index.d.ts 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";