@meistrari/vault-http-client 2.3.6 → 2.3.9

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.ts CHANGED
@@ -99,14 +99,17 @@ declare function createApiClient(baseUrl: string, options?: ZodiosOptions): _zod
99
99
  size: z.ZodOptional<z.ZodNumber>;
100
100
  mimeType: z.ZodOptional<z.ZodString>;
101
101
  createdBy: z.ZodOptional<z.ZodString>;
102
+ path: z.ZodOptional<z.ZodString>;
102
103
  }, "strip", z.ZodTypeAny, {
103
104
  fileName: string;
105
+ path?: string | undefined;
104
106
  sha256sum?: string | undefined;
105
107
  size?: number | undefined;
106
108
  mimeType?: string | undefined;
107
109
  createdBy?: string | undefined;
108
110
  }, {
109
111
  fileName: string;
112
+ path?: string | undefined;
110
113
  sha256sum?: string | undefined;
111
114
  size?: number | undefined;
112
115
  mimeType?: string | undefined;
@@ -749,6 +752,122 @@ declare function createApiClient(baseUrl: string, options?: ZodiosOptions): _zod
749
752
  keyArns: string[];
750
753
  defaultS3LinkTtl: number;
751
754
  }>;
755
+ }, {
756
+ method: "post";
757
+ path: "/files";
758
+ description: "Create a file and get a pre-signed upload URL.\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 &#x60;filename&#x60; parameter is deprecated. Use the &#x60;originalFileName&#x60; parameter in the request body instead. Either way, the information about the file name is stored in the &#x60;metadata.originalFileName&#x60; field.\n\nThe returned &#x60;uploadUrl&#x60; is valid for 1 hour by default. You can change the expiration time by passing the &#x60;expiresIn&#x60; query parameter.\n";
759
+ requestFormat: "json";
760
+ parameters: [{
761
+ name: "body";
762
+ type: "Body";
763
+ schema: z.ZodObject<{
764
+ fileName: z.ZodOptional<z.ZodDefault<z.ZodString>>;
765
+ sha256sum: z.ZodOptional<z.ZodString>;
766
+ size: z.ZodOptional<z.ZodNumber>;
767
+ mimeType: z.ZodOptional<z.ZodString>;
768
+ createdBy: z.ZodOptional<z.ZodString>;
769
+ path: z.ZodOptional<z.ZodString>;
770
+ }, "strip", z.ZodTypeAny, {
771
+ path?: string | undefined;
772
+ fileName?: string | undefined;
773
+ sha256sum?: string | undefined;
774
+ size?: number | undefined;
775
+ mimeType?: string | undefined;
776
+ createdBy?: string | undefined;
777
+ }, {
778
+ path?: string | undefined;
779
+ fileName?: string | undefined;
780
+ sha256sum?: string | undefined;
781
+ size?: number | undefined;
782
+ mimeType?: string | undefined;
783
+ createdBy?: string | undefined;
784
+ }>;
785
+ }, {
786
+ name: "expiresIn";
787
+ type: "Query";
788
+ schema: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
789
+ }];
790
+ response: z.ZodObject<{
791
+ id: z.ZodString;
792
+ uploadUrl: z.ZodString;
793
+ expiresAt: z.ZodString;
794
+ metadata: z.ZodObject<{
795
+ id: z.ZodString;
796
+ path: z.ZodString;
797
+ workspaceId: z.ZodString;
798
+ originalFileName: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
799
+ mimeType: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
800
+ size: z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodNull]>>;
801
+ legacyKey: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
802
+ bucketName: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
803
+ encryptionKey: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
804
+ createdBy: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
805
+ createdAt: z.ZodString;
806
+ deletedAt: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
807
+ }, "strip", z.ZodTypeAny, {
808
+ path: string;
809
+ workspaceId: string;
810
+ id: string;
811
+ createdAt: string;
812
+ bucketName?: string | null | undefined;
813
+ size?: number | null | undefined;
814
+ mimeType?: string | null | undefined;
815
+ createdBy?: string | null | undefined;
816
+ deletedAt?: string | null | undefined;
817
+ originalFileName?: string | null | undefined;
818
+ legacyKey?: string | null | undefined;
819
+ encryptionKey?: string | null | undefined;
820
+ }, {
821
+ path: string;
822
+ workspaceId: string;
823
+ id: string;
824
+ createdAt: string;
825
+ bucketName?: string | null | undefined;
826
+ size?: number | null | undefined;
827
+ mimeType?: string | null | undefined;
828
+ createdBy?: string | null | undefined;
829
+ deletedAt?: string | null | undefined;
830
+ originalFileName?: string | null | undefined;
831
+ legacyKey?: string | null | undefined;
832
+ encryptionKey?: string | null | undefined;
833
+ }>;
834
+ }, "strip", z.ZodTypeAny, {
835
+ id: string;
836
+ uploadUrl: string;
837
+ expiresAt: string;
838
+ metadata: {
839
+ path: string;
840
+ workspaceId: string;
841
+ id: string;
842
+ createdAt: string;
843
+ bucketName?: string | null | undefined;
844
+ size?: number | null | undefined;
845
+ mimeType?: string | null | undefined;
846
+ createdBy?: string | null | undefined;
847
+ deletedAt?: string | null | undefined;
848
+ originalFileName?: string | null | undefined;
849
+ legacyKey?: string | null | undefined;
850
+ encryptionKey?: string | null | undefined;
851
+ };
852
+ }, {
853
+ id: string;
854
+ uploadUrl: string;
855
+ expiresAt: string;
856
+ metadata: {
857
+ path: string;
858
+ workspaceId: string;
859
+ id: string;
860
+ createdAt: string;
861
+ bucketName?: string | null | undefined;
862
+ size?: number | null | undefined;
863
+ mimeType?: string | null | undefined;
864
+ createdBy?: string | null | undefined;
865
+ deletedAt?: string | null | undefined;
866
+ originalFileName?: string | null | undefined;
867
+ legacyKey?: string | null | undefined;
868
+ encryptionKey?: string | null | undefined;
869
+ };
870
+ }>;
752
871
  }, {
753
872
  method: "get";
754
873
  path: "/files/:fileId";
@@ -916,132 +1035,6 @@ declare function createApiClient(baseUrl: string, options?: ZodiosOptions): _zod
916
1035
  expiresAt: string | null;
917
1036
  fileId: string;
918
1037
  }>, "many">;
919
- }, {
920
- method: "post";
921
- path: "/files/:filename";
922
- description: "Create a file and get a pre-signed upload URL.\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 &#x60;filename&#x60; parameter is deprecated. Use the &#x60;originalFileName&#x60; parameter in the request body instead. Either way, the information about the file name is stored in the &#x60;metadata.originalFileName&#x60; field.\n\nThe returned &#x60;uploadUrl&#x60; is valid for 1 hour by default. You can change the expiration time by passing the &#x60;expiresIn&#x60; query parameter.\n";
923
- requestFormat: "json";
924
- parameters: [{
925
- name: "body";
926
- type: "Body";
927
- schema: z.ZodObject<{
928
- fileName: z.ZodOptional<z.ZodString>;
929
- sha256sum: z.ZodOptional<z.ZodString>;
930
- size: z.ZodOptional<z.ZodNumber>;
931
- mimeType: z.ZodOptional<z.ZodString>;
932
- createdBy: z.ZodOptional<z.ZodString>;
933
- }, "strip", z.ZodTypeAny, {
934
- fileName?: string | undefined;
935
- sha256sum?: string | undefined;
936
- size?: number | undefined;
937
- mimeType?: string | undefined;
938
- createdBy?: string | undefined;
939
- }, {
940
- fileName?: string | undefined;
941
- sha256sum?: string | undefined;
942
- size?: number | undefined;
943
- mimeType?: string | undefined;
944
- createdBy?: string | undefined;
945
- }>;
946
- }, {
947
- name: "expiresIn";
948
- type: "Query";
949
- schema: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
950
- }, {
951
- name: "filename";
952
- type: "Path";
953
- schema: z.ZodString;
954
- }];
955
- response: z.ZodUnion<[z.ZodObject<{
956
- id: z.ZodString;
957
- uploadUrl: z.ZodString;
958
- expiresAt: z.ZodString;
959
- metadata: z.ZodObject<{
960
- id: z.ZodString;
961
- path: z.ZodString;
962
- workspaceId: z.ZodString;
963
- originalFileName: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
964
- mimeType: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
965
- size: z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodNull]>>;
966
- legacyKey: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
967
- bucketName: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
968
- encryptionKey: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
969
- createdBy: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
970
- createdAt: z.ZodString;
971
- deletedAt: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
972
- }, "strip", z.ZodTypeAny, {
973
- path: string;
974
- workspaceId: string;
975
- id: string;
976
- createdAt: string;
977
- bucketName?: string | null | undefined;
978
- size?: number | null | undefined;
979
- mimeType?: string | null | undefined;
980
- createdBy?: string | null | undefined;
981
- deletedAt?: string | null | undefined;
982
- originalFileName?: string | null | undefined;
983
- legacyKey?: string | null | undefined;
984
- encryptionKey?: string | null | undefined;
985
- }, {
986
- path: string;
987
- workspaceId: string;
988
- id: string;
989
- createdAt: string;
990
- bucketName?: string | null | undefined;
991
- size?: number | null | undefined;
992
- mimeType?: string | null | undefined;
993
- createdBy?: string | null | undefined;
994
- deletedAt?: string | null | undefined;
995
- originalFileName?: string | null | undefined;
996
- legacyKey?: string | null | undefined;
997
- encryptionKey?: string | null | undefined;
998
- }>;
999
- }, "strip", z.ZodTypeAny, {
1000
- id: string;
1001
- uploadUrl: string;
1002
- expiresAt: string;
1003
- metadata: {
1004
- path: string;
1005
- workspaceId: string;
1006
- id: string;
1007
- createdAt: string;
1008
- bucketName?: string | null | undefined;
1009
- size?: number | null | undefined;
1010
- mimeType?: string | null | undefined;
1011
- createdBy?: string | null | undefined;
1012
- deletedAt?: string | null | undefined;
1013
- originalFileName?: string | null | undefined;
1014
- legacyKey?: string | null | undefined;
1015
- encryptionKey?: string | null | undefined;
1016
- };
1017
- }, {
1018
- id: string;
1019
- uploadUrl: string;
1020
- expiresAt: string;
1021
- metadata: {
1022
- path: string;
1023
- workspaceId: string;
1024
- id: string;
1025
- createdAt: string;
1026
- bucketName?: string | null | undefined;
1027
- size?: number | null | undefined;
1028
- mimeType?: string | null | undefined;
1029
- createdBy?: string | null | undefined;
1030
- deletedAt?: string | null | undefined;
1031
- originalFileName?: string | null | undefined;
1032
- legacyKey?: string | null | undefined;
1033
- encryptionKey?: string | null | undefined;
1034
- };
1035
- }>, z.ZodObject<{
1036
- url: z.ZodString;
1037
- expiresAt: z.ZodString;
1038
- }, "strip", z.ZodTypeAny, {
1039
- expiresAt: string;
1040
- url: string;
1041
- }, {
1042
- expiresAt: string;
1043
- url: string;
1044
- }>]>;
1045
1038
  }, {
1046
1039
  method: "put";
1047
1040
  path: "/files/:id";
@@ -1226,14 +1219,17 @@ declare function createApiClient(baseUrl: string, options?: ZodiosOptions): _zod
1226
1219
  size: z.ZodOptional<z.ZodNumber>;
1227
1220
  mimeType: z.ZodOptional<z.ZodString>;
1228
1221
  createdBy: z.ZodOptional<z.ZodString>;
1222
+ path: z.ZodOptional<z.ZodString>;
1229
1223
  }, "strip", z.ZodTypeAny, {
1230
1224
  fileName: string;
1225
+ path?: string | undefined;
1231
1226
  sha256sum?: string | undefined;
1232
1227
  size?: number | undefined;
1233
1228
  mimeType?: string | undefined;
1234
1229
  createdBy?: string | undefined;
1235
1230
  }, {
1236
1231
  fileName: string;
1232
+ path?: string | undefined;
1237
1233
  sha256sum?: string | undefined;
1238
1234
  size?: number | undefined;
1239
1235
  mimeType?: string | undefined;
@@ -1426,19 +1422,45 @@ declare function createApiClient(baseUrl: string, options?: ZodiosOptions): _zod
1426
1422
  schema: z.ZodVoid;
1427
1423
  }];
1428
1424
  }, {
1429
- method: "get";
1430
- path: "/v2/files/:fileId";
1431
- description: "Get a pre-signed download URL for a file.";
1425
+ method: "post";
1426
+ path: "/v2/files";
1427
+ description: "Create a file and get a pre-signed upload URL.\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 &#x60;filename&#x60; parameter is deprecated. Use the &#x60;originalFileName&#x60; parameter in the request body instead. Either way, the information about the file name is stored in the &#x60;metadata.originalFileName&#x60; field.\n\nThe returned &#x60;uploadUrl&#x60; is valid for 1 hour by default. You can change the expiration time by passing the &#x60;expiresIn&#x60; query parameter.\n";
1432
1428
  requestFormat: "json";
1433
1429
  parameters: [{
1434
- name: "fileId";
1435
- type: "Path";
1436
- schema: z.ZodString;
1430
+ name: "body";
1431
+ type: "Body";
1432
+ schema: z.ZodObject<{
1433
+ fileName: z.ZodOptional<z.ZodDefault<z.ZodString>>;
1434
+ sha256sum: z.ZodOptional<z.ZodString>;
1435
+ size: z.ZodOptional<z.ZodNumber>;
1436
+ mimeType: z.ZodOptional<z.ZodString>;
1437
+ createdBy: z.ZodOptional<z.ZodString>;
1438
+ path: z.ZodOptional<z.ZodString>;
1439
+ }, "strip", z.ZodTypeAny, {
1440
+ path?: string | undefined;
1441
+ fileName?: string | undefined;
1442
+ sha256sum?: string | undefined;
1443
+ size?: number | undefined;
1444
+ mimeType?: string | undefined;
1445
+ createdBy?: string | undefined;
1446
+ }, {
1447
+ path?: string | undefined;
1448
+ fileName?: string | undefined;
1449
+ sha256sum?: string | undefined;
1450
+ size?: number | undefined;
1451
+ mimeType?: string | undefined;
1452
+ createdBy?: string | undefined;
1453
+ }>;
1454
+ }, {
1455
+ name: "expiresIn";
1456
+ type: "Query";
1457
+ schema: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
1437
1458
  }];
1438
1459
  response: z.ZodObject<{
1439
- url: z.ZodString;
1460
+ id: z.ZodString;
1461
+ uploadUrl: z.ZodString;
1440
1462
  expiresAt: z.ZodString;
1441
- metadata: z.ZodUnion<[z.ZodObject<{
1463
+ metadata: z.ZodObject<{
1442
1464
  id: z.ZodString;
1443
1465
  path: z.ZodString;
1444
1466
  workspaceId: z.ZodString;
@@ -1477,8 +1499,10 @@ declare function createApiClient(baseUrl: string, options?: ZodiosOptions): _zod
1477
1499
  originalFileName?: string | null | undefined;
1478
1500
  legacyKey?: string | null | undefined;
1479
1501
  encryptionKey?: string | null | undefined;
1480
- }>, z.ZodNull]>;
1502
+ }>;
1481
1503
  }, "strip", z.ZodTypeAny, {
1504
+ id: string;
1505
+ uploadUrl: string;
1482
1506
  expiresAt: string;
1483
1507
  metadata: {
1484
1508
  path: string;
@@ -1493,9 +1517,10 @@ declare function createApiClient(baseUrl: string, options?: ZodiosOptions): _zod
1493
1517
  originalFileName?: string | null | undefined;
1494
1518
  legacyKey?: string | null | undefined;
1495
1519
  encryptionKey?: string | null | undefined;
1496
- } | null;
1497
- url: string;
1520
+ };
1498
1521
  }, {
1522
+ id: string;
1523
+ uploadUrl: string;
1499
1524
  expiresAt: string;
1500
1525
  metadata: {
1501
1526
  path: string;
@@ -1510,55 +1535,22 @@ declare function createApiClient(baseUrl: string, options?: ZodiosOptions): _zod
1510
1535
  originalFileName?: string | null | undefined;
1511
1536
  legacyKey?: string | null | undefined;
1512
1537
  encryptionKey?: string | null | undefined;
1513
- } | null;
1514
- url: string;
1538
+ };
1515
1539
  }>;
1516
- errors: [{
1517
- status: 404;
1518
- description: string;
1519
- schema: z.ZodVoid;
1520
- }];
1521
1540
  }, {
1522
- method: "post";
1523
- path: "/v2/files/:filename";
1524
- description: "Create a file and get a pre-signed upload URL.\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 &#x60;filename&#x60; parameter is deprecated. Use the &#x60;originalFileName&#x60; parameter in the request body instead. Either way, the information about the file name is stored in the &#x60;metadata.originalFileName&#x60; field.\n\nThe returned &#x60;uploadUrl&#x60; is valid for 1 hour by default. You can change the expiration time by passing the &#x60;expiresIn&#x60; query parameter.\n";
1541
+ method: "get";
1542
+ path: "/v2/files/:fileId";
1543
+ description: "Get a pre-signed download URL for a file.";
1525
1544
  requestFormat: "json";
1526
1545
  parameters: [{
1527
- name: "body";
1528
- type: "Body";
1529
- schema: z.ZodObject<{
1530
- fileName: z.ZodOptional<z.ZodString>;
1531
- sha256sum: z.ZodOptional<z.ZodString>;
1532
- size: z.ZodOptional<z.ZodNumber>;
1533
- mimeType: z.ZodOptional<z.ZodString>;
1534
- createdBy: z.ZodOptional<z.ZodString>;
1535
- }, "strip", z.ZodTypeAny, {
1536
- fileName?: string | undefined;
1537
- sha256sum?: string | undefined;
1538
- size?: number | undefined;
1539
- mimeType?: string | undefined;
1540
- createdBy?: string | undefined;
1541
- }, {
1542
- fileName?: string | undefined;
1543
- sha256sum?: string | undefined;
1544
- size?: number | undefined;
1545
- mimeType?: string | undefined;
1546
- createdBy?: string | undefined;
1547
- }>;
1548
- }, {
1549
- name: "expiresIn";
1550
- type: "Query";
1551
- schema: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
1552
- }, {
1553
- name: "filename";
1546
+ name: "fileId";
1554
1547
  type: "Path";
1555
1548
  schema: z.ZodString;
1556
1549
  }];
1557
- response: z.ZodUnion<[z.ZodObject<{
1558
- id: z.ZodString;
1559
- uploadUrl: z.ZodString;
1550
+ response: z.ZodObject<{
1551
+ url: z.ZodString;
1560
1552
  expiresAt: z.ZodString;
1561
- metadata: z.ZodObject<{
1553
+ metadata: z.ZodUnion<[z.ZodObject<{
1562
1554
  id: z.ZodString;
1563
1555
  path: z.ZodString;
1564
1556
  workspaceId: z.ZodString;
@@ -1597,10 +1589,8 @@ declare function createApiClient(baseUrl: string, options?: ZodiosOptions): _zod
1597
1589
  originalFileName?: string | null | undefined;
1598
1590
  legacyKey?: string | null | undefined;
1599
1591
  encryptionKey?: string | null | undefined;
1600
- }>;
1592
+ }>, z.ZodNull]>;
1601
1593
  }, "strip", z.ZodTypeAny, {
1602
- id: string;
1603
- uploadUrl: string;
1604
1594
  expiresAt: string;
1605
1595
  metadata: {
1606
1596
  path: string;
@@ -1615,10 +1605,9 @@ declare function createApiClient(baseUrl: string, options?: ZodiosOptions): _zod
1615
1605
  originalFileName?: string | null | undefined;
1616
1606
  legacyKey?: string | null | undefined;
1617
1607
  encryptionKey?: string | null | undefined;
1618
- };
1608
+ } | null;
1609
+ url: string;
1619
1610
  }, {
1620
- id: string;
1621
- uploadUrl: string;
1622
1611
  expiresAt: string;
1623
1612
  metadata: {
1624
1613
  path: string;
@@ -1633,17 +1622,14 @@ declare function createApiClient(baseUrl: string, options?: ZodiosOptions): _zod
1633
1622
  originalFileName?: string | null | undefined;
1634
1623
  legacyKey?: string | null | undefined;
1635
1624
  encryptionKey?: string | null | undefined;
1636
- };
1637
- }>, z.ZodObject<{
1638
- url: z.ZodString;
1639
- expiresAt: z.ZodString;
1640
- }, "strip", z.ZodTypeAny, {
1641
- expiresAt: string;
1642
- url: string;
1643
- }, {
1644
- expiresAt: string;
1625
+ } | null;
1645
1626
  url: string;
1646
- }>]>;
1627
+ }>;
1628
+ errors: [{
1629
+ status: 404;
1630
+ description: string;
1631
+ schema: z.ZodVoid;
1632
+ }];
1647
1633
  }, {
1648
1634
  method: "put";
1649
1635
  path: "/v2/files/:id";
@@ -1828,14 +1814,17 @@ declare function createApiClient(baseUrl: string, options?: ZodiosOptions): _zod
1828
1814
  size: z.ZodOptional<z.ZodNumber>;
1829
1815
  mimeType: z.ZodOptional<z.ZodString>;
1830
1816
  createdBy: z.ZodOptional<z.ZodString>;
1817
+ path: z.ZodOptional<z.ZodString>;
1831
1818
  }, "strip", z.ZodTypeAny, {
1832
1819
  fileName: string;
1820
+ path?: string | undefined;
1833
1821
  sha256sum?: string | undefined;
1834
1822
  size?: number | undefined;
1835
1823
  mimeType?: string | undefined;
1836
1824
  createdBy?: string | undefined;
1837
1825
  }, {
1838
1826
  fileName: string;
1827
+ path?: string | undefined;
1839
1828
  sha256sum?: string | undefined;
1840
1829
  size?: number | undefined;
1841
1830
  mimeType?: string | undefined;
@@ -1961,7 +1950,22 @@ declare function createApiClient(baseUrl: string, options?: ZodiosOptions): _zod
1961
1950
  }>]>;
1962
1951
  }]>;
1963
1952
 
1964
- declare function useVaultClient(vaultUrl: string, token: string): _zodios_core.ZodiosInstance<[{
1953
+ /**
1954
+ * Creates a vault client that automatically adds authentication and compatibility date headers to the request.
1955
+ *
1956
+ * Usage of this client is encouraged over the raw createApiClient function.
1957
+ *
1958
+ * Added headers:
1959
+ * - Authorization: The token to use for the request.
1960
+ * - User-Agent: The user agent to use for the request.
1961
+ * - X-Compatibility-Date: The compatibility date to use for the request.
1962
+ *
1963
+ * @param vaultUrl - The URL of the vault service.
1964
+ * @param token - The token to use for the request.
1965
+ * @param headerOverrides - Additional headers to add to the request, or override existing headers (**case-sensitive**).
1966
+ * @returns The vault client.
1967
+ */
1968
+ declare function useVaultClient(vaultUrl: string, token: string, headerOverrides?: Record<string, string>): _zodios_core.ZodiosInstance<[{
1965
1969
  method: "get";
1966
1970
  path: "/_/files";
1967
1971
  description: "Get a list of files.";
@@ -2057,14 +2061,17 @@ declare function useVaultClient(vaultUrl: string, token: string): _zodios_core.Z
2057
2061
  size: zod.ZodOptional<zod.ZodNumber>;
2058
2062
  mimeType: zod.ZodOptional<zod.ZodString>;
2059
2063
  createdBy: zod.ZodOptional<zod.ZodString>;
2064
+ path: zod.ZodOptional<zod.ZodString>;
2060
2065
  }, "strip", zod.ZodTypeAny, {
2061
2066
  fileName: string;
2067
+ path?: string | undefined;
2062
2068
  size?: number | undefined;
2063
2069
  createdBy?: string | undefined;
2064
2070
  sha256sum?: string | undefined;
2065
2071
  mimeType?: string | undefined;
2066
2072
  }, {
2067
2073
  fileName: string;
2074
+ path?: string | undefined;
2068
2075
  size?: number | undefined;
2069
2076
  createdBy?: string | undefined;
2070
2077
  sha256sum?: string | undefined;
@@ -2707,6 +2714,122 @@ declare function useVaultClient(vaultUrl: string, token: string): _zodios_core.Z
2707
2714
  keyArns: string[];
2708
2715
  defaultS3LinkTtl: number;
2709
2716
  }>;
2717
+ }, {
2718
+ method: "post";
2719
+ path: "/files";
2720
+ description: "Create a file and get a pre-signed upload URL.\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 &#x60;filename&#x60; parameter is deprecated. Use the &#x60;originalFileName&#x60; parameter in the request body instead. Either way, the information about the file name is stored in the &#x60;metadata.originalFileName&#x60; field.\n\nThe returned &#x60;uploadUrl&#x60; is valid for 1 hour by default. You can change the expiration time by passing the &#x60;expiresIn&#x60; query parameter.\n";
2721
+ requestFormat: "json";
2722
+ parameters: [{
2723
+ name: "body";
2724
+ type: "Body";
2725
+ schema: zod.ZodObject<{
2726
+ fileName: zod.ZodOptional<zod.ZodDefault<zod.ZodString>>;
2727
+ sha256sum: zod.ZodOptional<zod.ZodString>;
2728
+ size: zod.ZodOptional<zod.ZodNumber>;
2729
+ mimeType: zod.ZodOptional<zod.ZodString>;
2730
+ createdBy: zod.ZodOptional<zod.ZodString>;
2731
+ path: zod.ZodOptional<zod.ZodString>;
2732
+ }, "strip", zod.ZodTypeAny, {
2733
+ path?: string | undefined;
2734
+ size?: number | undefined;
2735
+ createdBy?: string | undefined;
2736
+ fileName?: string | undefined;
2737
+ sha256sum?: string | undefined;
2738
+ mimeType?: string | undefined;
2739
+ }, {
2740
+ path?: string | undefined;
2741
+ size?: number | undefined;
2742
+ createdBy?: string | undefined;
2743
+ fileName?: string | undefined;
2744
+ sha256sum?: string | undefined;
2745
+ mimeType?: string | undefined;
2746
+ }>;
2747
+ }, {
2748
+ name: "expiresIn";
2749
+ type: "Query";
2750
+ schema: zod.ZodDefault<zod.ZodOptional<zod.ZodNumber>>;
2751
+ }];
2752
+ response: zod.ZodObject<{
2753
+ id: zod.ZodString;
2754
+ uploadUrl: zod.ZodString;
2755
+ expiresAt: zod.ZodString;
2756
+ metadata: zod.ZodObject<{
2757
+ id: zod.ZodString;
2758
+ path: zod.ZodString;
2759
+ workspaceId: zod.ZodString;
2760
+ originalFileName: zod.ZodOptional<zod.ZodUnion<[zod.ZodString, zod.ZodNull]>>;
2761
+ mimeType: zod.ZodOptional<zod.ZodUnion<[zod.ZodString, zod.ZodNull]>>;
2762
+ size: zod.ZodOptional<zod.ZodUnion<[zod.ZodNumber, zod.ZodNull]>>;
2763
+ legacyKey: zod.ZodOptional<zod.ZodUnion<[zod.ZodString, zod.ZodNull]>>;
2764
+ bucketName: zod.ZodOptional<zod.ZodUnion<[zod.ZodString, zod.ZodNull]>>;
2765
+ encryptionKey: zod.ZodOptional<zod.ZodUnion<[zod.ZodString, zod.ZodNull]>>;
2766
+ createdBy: zod.ZodOptional<zod.ZodUnion<[zod.ZodString, zod.ZodNull]>>;
2767
+ createdAt: zod.ZodString;
2768
+ deletedAt: zod.ZodOptional<zod.ZodUnion<[zod.ZodString, zod.ZodNull]>>;
2769
+ }, "strip", zod.ZodTypeAny, {
2770
+ path: string;
2771
+ workspaceId: string;
2772
+ id: string;
2773
+ createdAt: string;
2774
+ deletedAt?: string | null | undefined;
2775
+ originalFileName?: string | null | undefined;
2776
+ size?: number | null | undefined;
2777
+ createdBy?: string | null | undefined;
2778
+ mimeType?: string | null | undefined;
2779
+ legacyKey?: string | null | undefined;
2780
+ bucketName?: string | null | undefined;
2781
+ encryptionKey?: string | null | undefined;
2782
+ }, {
2783
+ path: string;
2784
+ workspaceId: string;
2785
+ id: string;
2786
+ createdAt: string;
2787
+ deletedAt?: string | null | undefined;
2788
+ originalFileName?: string | null | undefined;
2789
+ size?: number | null | undefined;
2790
+ createdBy?: string | null | undefined;
2791
+ mimeType?: string | null | undefined;
2792
+ legacyKey?: string | null | undefined;
2793
+ bucketName?: string | null | undefined;
2794
+ encryptionKey?: string | null | undefined;
2795
+ }>;
2796
+ }, "strip", zod.ZodTypeAny, {
2797
+ id: string;
2798
+ uploadUrl: string;
2799
+ expiresAt: string;
2800
+ metadata: {
2801
+ path: string;
2802
+ workspaceId: string;
2803
+ id: string;
2804
+ createdAt: string;
2805
+ deletedAt?: string | null | undefined;
2806
+ originalFileName?: string | null | undefined;
2807
+ size?: number | null | undefined;
2808
+ createdBy?: string | null | undefined;
2809
+ mimeType?: string | null | undefined;
2810
+ legacyKey?: string | null | undefined;
2811
+ bucketName?: string | null | undefined;
2812
+ encryptionKey?: string | null | undefined;
2813
+ };
2814
+ }, {
2815
+ id: string;
2816
+ uploadUrl: string;
2817
+ expiresAt: string;
2818
+ metadata: {
2819
+ path: string;
2820
+ workspaceId: string;
2821
+ id: string;
2822
+ createdAt: string;
2823
+ deletedAt?: string | null | undefined;
2824
+ originalFileName?: string | null | undefined;
2825
+ size?: number | null | undefined;
2826
+ createdBy?: string | null | undefined;
2827
+ mimeType?: string | null | undefined;
2828
+ legacyKey?: string | null | undefined;
2829
+ bucketName?: string | null | undefined;
2830
+ encryptionKey?: string | null | undefined;
2831
+ };
2832
+ }>;
2710
2833
  }, {
2711
2834
  method: "get";
2712
2835
  path: "/files/:fileId";
@@ -2874,132 +2997,6 @@ declare function useVaultClient(vaultUrl: string, token: string): _zodios_core.Z
2874
2997
  expiresAt: string | null;
2875
2998
  fileId: string;
2876
2999
  }>, "many">;
2877
- }, {
2878
- method: "post";
2879
- path: "/files/:filename";
2880
- description: "Create a file and get a pre-signed upload URL.\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 &#x60;filename&#x60; parameter is deprecated. Use the &#x60;originalFileName&#x60; parameter in the request body instead. Either way, the information about the file name is stored in the &#x60;metadata.originalFileName&#x60; field.\n\nThe returned &#x60;uploadUrl&#x60; is valid for 1 hour by default. You can change the expiration time by passing the &#x60;expiresIn&#x60; query parameter.\n";
2881
- requestFormat: "json";
2882
- parameters: [{
2883
- name: "body";
2884
- type: "Body";
2885
- schema: zod.ZodObject<{
2886
- fileName: zod.ZodOptional<zod.ZodString>;
2887
- sha256sum: zod.ZodOptional<zod.ZodString>;
2888
- size: zod.ZodOptional<zod.ZodNumber>;
2889
- mimeType: zod.ZodOptional<zod.ZodString>;
2890
- createdBy: zod.ZodOptional<zod.ZodString>;
2891
- }, "strip", zod.ZodTypeAny, {
2892
- size?: number | undefined;
2893
- createdBy?: string | undefined;
2894
- fileName?: string | undefined;
2895
- sha256sum?: string | undefined;
2896
- mimeType?: string | undefined;
2897
- }, {
2898
- size?: number | undefined;
2899
- createdBy?: string | undefined;
2900
- fileName?: string | undefined;
2901
- sha256sum?: string | undefined;
2902
- mimeType?: string | undefined;
2903
- }>;
2904
- }, {
2905
- name: "expiresIn";
2906
- type: "Query";
2907
- schema: zod.ZodDefault<zod.ZodOptional<zod.ZodNumber>>;
2908
- }, {
2909
- name: "filename";
2910
- type: "Path";
2911
- schema: zod.ZodString;
2912
- }];
2913
- response: zod.ZodUnion<[zod.ZodObject<{
2914
- id: zod.ZodString;
2915
- uploadUrl: zod.ZodString;
2916
- expiresAt: zod.ZodString;
2917
- metadata: zod.ZodObject<{
2918
- id: zod.ZodString;
2919
- path: zod.ZodString;
2920
- workspaceId: zod.ZodString;
2921
- originalFileName: zod.ZodOptional<zod.ZodUnion<[zod.ZodString, zod.ZodNull]>>;
2922
- mimeType: zod.ZodOptional<zod.ZodUnion<[zod.ZodString, zod.ZodNull]>>;
2923
- size: zod.ZodOptional<zod.ZodUnion<[zod.ZodNumber, zod.ZodNull]>>;
2924
- legacyKey: zod.ZodOptional<zod.ZodUnion<[zod.ZodString, zod.ZodNull]>>;
2925
- bucketName: zod.ZodOptional<zod.ZodUnion<[zod.ZodString, zod.ZodNull]>>;
2926
- encryptionKey: zod.ZodOptional<zod.ZodUnion<[zod.ZodString, zod.ZodNull]>>;
2927
- createdBy: zod.ZodOptional<zod.ZodUnion<[zod.ZodString, zod.ZodNull]>>;
2928
- createdAt: zod.ZodString;
2929
- deletedAt: zod.ZodOptional<zod.ZodUnion<[zod.ZodString, zod.ZodNull]>>;
2930
- }, "strip", zod.ZodTypeAny, {
2931
- path: string;
2932
- workspaceId: string;
2933
- id: string;
2934
- createdAt: string;
2935
- deletedAt?: string | null | undefined;
2936
- originalFileName?: string | null | undefined;
2937
- size?: number | null | undefined;
2938
- createdBy?: string | null | undefined;
2939
- mimeType?: string | null | undefined;
2940
- legacyKey?: string | null | undefined;
2941
- bucketName?: string | null | undefined;
2942
- encryptionKey?: string | null | undefined;
2943
- }, {
2944
- path: string;
2945
- workspaceId: string;
2946
- id: string;
2947
- createdAt: string;
2948
- deletedAt?: string | null | undefined;
2949
- originalFileName?: string | null | undefined;
2950
- size?: number | null | undefined;
2951
- createdBy?: string | null | undefined;
2952
- mimeType?: string | null | undefined;
2953
- legacyKey?: string | null | undefined;
2954
- bucketName?: string | null | undefined;
2955
- encryptionKey?: string | null | undefined;
2956
- }>;
2957
- }, "strip", zod.ZodTypeAny, {
2958
- id: string;
2959
- uploadUrl: string;
2960
- expiresAt: string;
2961
- metadata: {
2962
- path: string;
2963
- workspaceId: string;
2964
- id: string;
2965
- createdAt: string;
2966
- deletedAt?: string | null | undefined;
2967
- originalFileName?: string | null | undefined;
2968
- size?: number | null | undefined;
2969
- createdBy?: string | null | undefined;
2970
- mimeType?: string | null | undefined;
2971
- legacyKey?: string | null | undefined;
2972
- bucketName?: string | null | undefined;
2973
- encryptionKey?: string | null | undefined;
2974
- };
2975
- }, {
2976
- id: string;
2977
- uploadUrl: string;
2978
- expiresAt: string;
2979
- metadata: {
2980
- path: string;
2981
- workspaceId: string;
2982
- id: string;
2983
- createdAt: string;
2984
- deletedAt?: string | null | undefined;
2985
- originalFileName?: string | null | undefined;
2986
- size?: number | null | undefined;
2987
- createdBy?: string | null | undefined;
2988
- mimeType?: string | null | undefined;
2989
- legacyKey?: string | null | undefined;
2990
- bucketName?: string | null | undefined;
2991
- encryptionKey?: string | null | undefined;
2992
- };
2993
- }>, zod.ZodObject<{
2994
- url: zod.ZodString;
2995
- expiresAt: zod.ZodString;
2996
- }, "strip", zod.ZodTypeAny, {
2997
- expiresAt: string;
2998
- url: string;
2999
- }, {
3000
- expiresAt: string;
3001
- url: string;
3002
- }>]>;
3003
3000
  }, {
3004
3001
  method: "put";
3005
3002
  path: "/files/:id";
@@ -3184,14 +3181,17 @@ declare function useVaultClient(vaultUrl: string, token: string): _zodios_core.Z
3184
3181
  size: zod.ZodOptional<zod.ZodNumber>;
3185
3182
  mimeType: zod.ZodOptional<zod.ZodString>;
3186
3183
  createdBy: zod.ZodOptional<zod.ZodString>;
3184
+ path: zod.ZodOptional<zod.ZodString>;
3187
3185
  }, "strip", zod.ZodTypeAny, {
3188
3186
  fileName: string;
3187
+ path?: string | undefined;
3189
3188
  size?: number | undefined;
3190
3189
  createdBy?: string | undefined;
3191
3190
  sha256sum?: string | undefined;
3192
3191
  mimeType?: string | undefined;
3193
3192
  }, {
3194
3193
  fileName: string;
3194
+ path?: string | undefined;
3195
3195
  size?: number | undefined;
3196
3196
  createdBy?: string | undefined;
3197
3197
  sha256sum?: string | undefined;
@@ -3384,19 +3384,45 @@ declare function useVaultClient(vaultUrl: string, token: string): _zodios_core.Z
3384
3384
  schema: zod.ZodVoid;
3385
3385
  }];
3386
3386
  }, {
3387
- method: "get";
3388
- path: "/v2/files/:fileId";
3389
- description: "Get a pre-signed download URL for a file.";
3387
+ method: "post";
3388
+ path: "/v2/files";
3389
+ description: "Create a file and get a pre-signed upload URL.\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 &#x60;filename&#x60; parameter is deprecated. Use the &#x60;originalFileName&#x60; parameter in the request body instead. Either way, the information about the file name is stored in the &#x60;metadata.originalFileName&#x60; field.\n\nThe returned &#x60;uploadUrl&#x60; is valid for 1 hour by default. You can change the expiration time by passing the &#x60;expiresIn&#x60; query parameter.\n";
3390
3390
  requestFormat: "json";
3391
3391
  parameters: [{
3392
- name: "fileId";
3393
- type: "Path";
3394
- schema: zod.ZodString;
3392
+ name: "body";
3393
+ type: "Body";
3394
+ schema: zod.ZodObject<{
3395
+ fileName: zod.ZodOptional<zod.ZodDefault<zod.ZodString>>;
3396
+ sha256sum: zod.ZodOptional<zod.ZodString>;
3397
+ size: zod.ZodOptional<zod.ZodNumber>;
3398
+ mimeType: zod.ZodOptional<zod.ZodString>;
3399
+ createdBy: zod.ZodOptional<zod.ZodString>;
3400
+ path: zod.ZodOptional<zod.ZodString>;
3401
+ }, "strip", zod.ZodTypeAny, {
3402
+ path?: string | undefined;
3403
+ size?: number | undefined;
3404
+ createdBy?: string | undefined;
3405
+ fileName?: string | undefined;
3406
+ sha256sum?: string | undefined;
3407
+ mimeType?: string | undefined;
3408
+ }, {
3409
+ path?: string | undefined;
3410
+ size?: number | undefined;
3411
+ createdBy?: string | undefined;
3412
+ fileName?: string | undefined;
3413
+ sha256sum?: string | undefined;
3414
+ mimeType?: string | undefined;
3415
+ }>;
3416
+ }, {
3417
+ name: "expiresIn";
3418
+ type: "Query";
3419
+ schema: zod.ZodDefault<zod.ZodOptional<zod.ZodNumber>>;
3395
3420
  }];
3396
3421
  response: zod.ZodObject<{
3397
- url: zod.ZodString;
3422
+ id: zod.ZodString;
3423
+ uploadUrl: zod.ZodString;
3398
3424
  expiresAt: zod.ZodString;
3399
- metadata: zod.ZodUnion<[zod.ZodObject<{
3425
+ metadata: zod.ZodObject<{
3400
3426
  id: zod.ZodString;
3401
3427
  path: zod.ZodString;
3402
3428
  workspaceId: zod.ZodString;
@@ -3435,8 +3461,10 @@ declare function useVaultClient(vaultUrl: string, token: string): _zodios_core.Z
3435
3461
  legacyKey?: string | null | undefined;
3436
3462
  bucketName?: string | null | undefined;
3437
3463
  encryptionKey?: string | null | undefined;
3438
- }>, zod.ZodNull]>;
3464
+ }>;
3439
3465
  }, "strip", zod.ZodTypeAny, {
3466
+ id: string;
3467
+ uploadUrl: string;
3440
3468
  expiresAt: string;
3441
3469
  metadata: {
3442
3470
  path: string;
@@ -3451,9 +3479,10 @@ declare function useVaultClient(vaultUrl: string, token: string): _zodios_core.Z
3451
3479
  legacyKey?: string | null | undefined;
3452
3480
  bucketName?: string | null | undefined;
3453
3481
  encryptionKey?: string | null | undefined;
3454
- } | null;
3455
- url: string;
3482
+ };
3456
3483
  }, {
3484
+ id: string;
3485
+ uploadUrl: string;
3457
3486
  expiresAt: string;
3458
3487
  metadata: {
3459
3488
  path: string;
@@ -3468,55 +3497,22 @@ declare function useVaultClient(vaultUrl: string, token: string): _zodios_core.Z
3468
3497
  legacyKey?: string | null | undefined;
3469
3498
  bucketName?: string | null | undefined;
3470
3499
  encryptionKey?: string | null | undefined;
3471
- } | null;
3472
- url: string;
3500
+ };
3473
3501
  }>;
3474
- errors: [{
3475
- status: 404;
3476
- description: string;
3477
- schema: zod.ZodVoid;
3478
- }];
3479
3502
  }, {
3480
- method: "post";
3481
- path: "/v2/files/:filename";
3482
- description: "Create a file and get a pre-signed upload URL.\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 &#x60;filename&#x60; parameter is deprecated. Use the &#x60;originalFileName&#x60; parameter in the request body instead. Either way, the information about the file name is stored in the &#x60;metadata.originalFileName&#x60; field.\n\nThe returned &#x60;uploadUrl&#x60; is valid for 1 hour by default. You can change the expiration time by passing the &#x60;expiresIn&#x60; query parameter.\n";
3503
+ method: "get";
3504
+ path: "/v2/files/:fileId";
3505
+ description: "Get a pre-signed download URL for a file.";
3483
3506
  requestFormat: "json";
3484
3507
  parameters: [{
3485
- name: "body";
3486
- type: "Body";
3487
- schema: zod.ZodObject<{
3488
- fileName: zod.ZodOptional<zod.ZodString>;
3489
- sha256sum: zod.ZodOptional<zod.ZodString>;
3490
- size: zod.ZodOptional<zod.ZodNumber>;
3491
- mimeType: zod.ZodOptional<zod.ZodString>;
3492
- createdBy: zod.ZodOptional<zod.ZodString>;
3493
- }, "strip", zod.ZodTypeAny, {
3494
- size?: number | undefined;
3495
- createdBy?: string | undefined;
3496
- fileName?: string | undefined;
3497
- sha256sum?: string | undefined;
3498
- mimeType?: string | undefined;
3499
- }, {
3500
- size?: number | undefined;
3501
- createdBy?: string | undefined;
3502
- fileName?: string | undefined;
3503
- sha256sum?: string | undefined;
3504
- mimeType?: string | undefined;
3505
- }>;
3506
- }, {
3507
- name: "expiresIn";
3508
- type: "Query";
3509
- schema: zod.ZodDefault<zod.ZodOptional<zod.ZodNumber>>;
3510
- }, {
3511
- name: "filename";
3508
+ name: "fileId";
3512
3509
  type: "Path";
3513
3510
  schema: zod.ZodString;
3514
3511
  }];
3515
- response: zod.ZodUnion<[zod.ZodObject<{
3516
- id: zod.ZodString;
3517
- uploadUrl: zod.ZodString;
3512
+ response: zod.ZodObject<{
3513
+ url: zod.ZodString;
3518
3514
  expiresAt: zod.ZodString;
3519
- metadata: zod.ZodObject<{
3515
+ metadata: zod.ZodUnion<[zod.ZodObject<{
3520
3516
  id: zod.ZodString;
3521
3517
  path: zod.ZodString;
3522
3518
  workspaceId: zod.ZodString;
@@ -3555,10 +3551,8 @@ declare function useVaultClient(vaultUrl: string, token: string): _zodios_core.Z
3555
3551
  legacyKey?: string | null | undefined;
3556
3552
  bucketName?: string | null | undefined;
3557
3553
  encryptionKey?: string | null | undefined;
3558
- }>;
3554
+ }>, zod.ZodNull]>;
3559
3555
  }, "strip", zod.ZodTypeAny, {
3560
- id: string;
3561
- uploadUrl: string;
3562
3556
  expiresAt: string;
3563
3557
  metadata: {
3564
3558
  path: string;
@@ -3573,10 +3567,9 @@ declare function useVaultClient(vaultUrl: string, token: string): _zodios_core.Z
3573
3567
  legacyKey?: string | null | undefined;
3574
3568
  bucketName?: string | null | undefined;
3575
3569
  encryptionKey?: string | null | undefined;
3576
- };
3570
+ } | null;
3571
+ url: string;
3577
3572
  }, {
3578
- id: string;
3579
- uploadUrl: string;
3580
3573
  expiresAt: string;
3581
3574
  metadata: {
3582
3575
  path: string;
@@ -3591,17 +3584,14 @@ declare function useVaultClient(vaultUrl: string, token: string): _zodios_core.Z
3591
3584
  legacyKey?: string | null | undefined;
3592
3585
  bucketName?: string | null | undefined;
3593
3586
  encryptionKey?: string | null | undefined;
3594
- };
3595
- }>, zod.ZodObject<{
3596
- url: zod.ZodString;
3597
- expiresAt: zod.ZodString;
3598
- }, "strip", zod.ZodTypeAny, {
3599
- expiresAt: string;
3600
- url: string;
3601
- }, {
3602
- expiresAt: string;
3587
+ } | null;
3603
3588
  url: string;
3604
- }>]>;
3589
+ }>;
3590
+ errors: [{
3591
+ status: 404;
3592
+ description: string;
3593
+ schema: zod.ZodVoid;
3594
+ }];
3605
3595
  }, {
3606
3596
  method: "put";
3607
3597
  path: "/v2/files/:id";
@@ -3786,14 +3776,17 @@ declare function useVaultClient(vaultUrl: string, token: string): _zodios_core.Z
3786
3776
  size: zod.ZodOptional<zod.ZodNumber>;
3787
3777
  mimeType: zod.ZodOptional<zod.ZodString>;
3788
3778
  createdBy: zod.ZodOptional<zod.ZodString>;
3779
+ path: zod.ZodOptional<zod.ZodString>;
3789
3780
  }, "strip", zod.ZodTypeAny, {
3790
3781
  fileName: string;
3782
+ path?: string | undefined;
3791
3783
  size?: number | undefined;
3792
3784
  createdBy?: string | undefined;
3793
3785
  sha256sum?: string | undefined;
3794
3786
  mimeType?: string | undefined;
3795
3787
  }, {
3796
3788
  fileName: string;
3789
+ path?: string | undefined;
3797
3790
  size?: number | undefined;
3798
3791
  createdBy?: string | undefined;
3799
3792
  sha256sum?: string | undefined;