@meistrari/vault-http-client 2.6.4 → 2.9.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs CHANGED
@@ -164,6 +164,11 @@ The returned `uploadUrl` is valid for 1 hour by default. You can chang
164
164
  type: "Query",
165
165
  schema: zod.z.string()
166
166
  },
167
+ {
168
+ name: "preserveFileName",
169
+ type: "Query",
170
+ schema: zod.z.enum(["true", "false"]).optional().default("false")
171
+ },
167
172
  {
168
173
  name: "fileId",
169
174
  type: "Path",
@@ -573,6 +578,11 @@ The returned `uploadUrl` is valid for 1 hour by default. You can chang
573
578
  description: `Get a pre-signed download URL for a file.`,
574
579
  requestFormat: "json",
575
580
  parameters: [
581
+ {
582
+ name: "preserveFileName",
583
+ type: "Query",
584
+ schema: zod.z.enum(["true", "false"]).optional().default("true")
585
+ },
576
586
  {
577
587
  name: "fileId",
578
588
  type: "Path",
@@ -1034,6 +1044,11 @@ The returned `uploadUrl` is valid for 1 hour by default. You can chang
1034
1044
  description: `Get a pre-signed download URL for a file.`,
1035
1045
  requestFormat: "json",
1036
1046
  parameters: [
1047
+ {
1048
+ name: "preserveFileName",
1049
+ type: "Query",
1050
+ schema: zod.z.enum(["true", "false"]).optional().default("true")
1051
+ },
1037
1052
  {
1038
1053
  name: "fileId",
1039
1054
  type: "Path",
@@ -1318,7 +1333,7 @@ function useVaultClient(vaultUrl, token) {
1318
1333
  axiosConfig: {
1319
1334
  headers: {
1320
1335
  "Authorization": token,
1321
- "User-Agent": "vault-http-client:2.6.4"
1336
+ "User-Agent": "vault-http-client:2.9.0"
1322
1337
  }
1323
1338
  }
1324
1339
  });
package/dist/index.d.cts CHANGED
@@ -243,6 +243,10 @@ declare function createApiClient(baseUrl: string, options?: ZodiosOptions): _zod
243
243
  name: "workspaceId";
244
244
  type: "Query";
245
245
  schema: z.ZodString;
246
+ }, {
247
+ name: "preserveFileName";
248
+ type: "Query";
249
+ schema: z.ZodDefault<z.ZodOptional<z.ZodEnum<["true", "false"]>>>;
246
250
  }, {
247
251
  name: "fileId";
248
252
  type: "Path";
@@ -1173,6 +1177,10 @@ declare function createApiClient(baseUrl: string, options?: ZodiosOptions): _zod
1173
1177
  description: "Get a pre-signed download URL for a file.";
1174
1178
  requestFormat: "json";
1175
1179
  parameters: [{
1180
+ name: "preserveFileName";
1181
+ type: "Query";
1182
+ schema: z.ZodDefault<z.ZodOptional<z.ZodEnum<["true", "false"]>>>;
1183
+ }, {
1176
1184
  name: "fileId";
1177
1185
  type: "Path";
1178
1186
  schema: z.ZodString;
@@ -2086,6 +2094,10 @@ declare function createApiClient(baseUrl: string, options?: ZodiosOptions): _zod
2086
2094
  description: "Get a pre-signed download URL for a file.";
2087
2095
  requestFormat: "json";
2088
2096
  parameters: [{
2097
+ name: "preserveFileName";
2098
+ type: "Query";
2099
+ schema: z.ZodDefault<z.ZodOptional<z.ZodEnum<["true", "false"]>>>;
2100
+ }, {
2089
2101
  name: "fileId";
2090
2102
  type: "Path";
2091
2103
  schema: z.ZodString;
@@ -2947,6 +2959,10 @@ declare function useVaultClient(vaultUrl: string, token: string): _zodios_core.Z
2947
2959
  name: "workspaceId";
2948
2960
  type: "Query";
2949
2961
  schema: zod.ZodString;
2962
+ }, {
2963
+ name: "preserveFileName";
2964
+ type: "Query";
2965
+ schema: zod.ZodDefault<zod.ZodOptional<zod.ZodEnum<["true", "false"]>>>;
2950
2966
  }, {
2951
2967
  name: "fileId";
2952
2968
  type: "Path";
@@ -3877,6 +3893,10 @@ declare function useVaultClient(vaultUrl: string, token: string): _zodios_core.Z
3877
3893
  description: "Get a pre-signed download URL for a file.";
3878
3894
  requestFormat: "json";
3879
3895
  parameters: [{
3896
+ name: "preserveFileName";
3897
+ type: "Query";
3898
+ schema: zod.ZodDefault<zod.ZodOptional<zod.ZodEnum<["true", "false"]>>>;
3899
+ }, {
3880
3900
  name: "fileId";
3881
3901
  type: "Path";
3882
3902
  schema: zod.ZodString;
@@ -4790,6 +4810,10 @@ declare function useVaultClient(vaultUrl: string, token: string): _zodios_core.Z
4790
4810
  description: "Get a pre-signed download URL for a file.";
4791
4811
  requestFormat: "json";
4792
4812
  parameters: [{
4813
+ name: "preserveFileName";
4814
+ type: "Query";
4815
+ schema: zod.ZodDefault<zod.ZodOptional<zod.ZodEnum<["true", "false"]>>>;
4816
+ }, {
4793
4817
  name: "fileId";
4794
4818
  type: "Path";
4795
4819
  schema: zod.ZodString;
package/dist/index.d.mts CHANGED
@@ -243,6 +243,10 @@ declare function createApiClient(baseUrl: string, options?: ZodiosOptions): _zod
243
243
  name: "workspaceId";
244
244
  type: "Query";
245
245
  schema: z.ZodString;
246
+ }, {
247
+ name: "preserveFileName";
248
+ type: "Query";
249
+ schema: z.ZodDefault<z.ZodOptional<z.ZodEnum<["true", "false"]>>>;
246
250
  }, {
247
251
  name: "fileId";
248
252
  type: "Path";
@@ -1173,6 +1177,10 @@ declare function createApiClient(baseUrl: string, options?: ZodiosOptions): _zod
1173
1177
  description: "Get a pre-signed download URL for a file.";
1174
1178
  requestFormat: "json";
1175
1179
  parameters: [{
1180
+ name: "preserveFileName";
1181
+ type: "Query";
1182
+ schema: z.ZodDefault<z.ZodOptional<z.ZodEnum<["true", "false"]>>>;
1183
+ }, {
1176
1184
  name: "fileId";
1177
1185
  type: "Path";
1178
1186
  schema: z.ZodString;
@@ -2086,6 +2094,10 @@ declare function createApiClient(baseUrl: string, options?: ZodiosOptions): _zod
2086
2094
  description: "Get a pre-signed download URL for a file.";
2087
2095
  requestFormat: "json";
2088
2096
  parameters: [{
2097
+ name: "preserveFileName";
2098
+ type: "Query";
2099
+ schema: z.ZodDefault<z.ZodOptional<z.ZodEnum<["true", "false"]>>>;
2100
+ }, {
2089
2101
  name: "fileId";
2090
2102
  type: "Path";
2091
2103
  schema: z.ZodString;
@@ -2947,6 +2959,10 @@ declare function useVaultClient(vaultUrl: string, token: string): _zodios_core.Z
2947
2959
  name: "workspaceId";
2948
2960
  type: "Query";
2949
2961
  schema: zod.ZodString;
2962
+ }, {
2963
+ name: "preserveFileName";
2964
+ type: "Query";
2965
+ schema: zod.ZodDefault<zod.ZodOptional<zod.ZodEnum<["true", "false"]>>>;
2950
2966
  }, {
2951
2967
  name: "fileId";
2952
2968
  type: "Path";
@@ -3877,6 +3893,10 @@ declare function useVaultClient(vaultUrl: string, token: string): _zodios_core.Z
3877
3893
  description: "Get a pre-signed download URL for a file.";
3878
3894
  requestFormat: "json";
3879
3895
  parameters: [{
3896
+ name: "preserveFileName";
3897
+ type: "Query";
3898
+ schema: zod.ZodDefault<zod.ZodOptional<zod.ZodEnum<["true", "false"]>>>;
3899
+ }, {
3880
3900
  name: "fileId";
3881
3901
  type: "Path";
3882
3902
  schema: zod.ZodString;
@@ -4790,6 +4810,10 @@ declare function useVaultClient(vaultUrl: string, token: string): _zodios_core.Z
4790
4810
  description: "Get a pre-signed download URL for a file.";
4791
4811
  requestFormat: "json";
4792
4812
  parameters: [{
4813
+ name: "preserveFileName";
4814
+ type: "Query";
4815
+ schema: zod.ZodDefault<zod.ZodOptional<zod.ZodEnum<["true", "false"]>>>;
4816
+ }, {
4793
4817
  name: "fileId";
4794
4818
  type: "Path";
4795
4819
  schema: zod.ZodString;
package/dist/index.d.ts CHANGED
@@ -243,6 +243,10 @@ declare function createApiClient(baseUrl: string, options?: ZodiosOptions): _zod
243
243
  name: "workspaceId";
244
244
  type: "Query";
245
245
  schema: z.ZodString;
246
+ }, {
247
+ name: "preserveFileName";
248
+ type: "Query";
249
+ schema: z.ZodDefault<z.ZodOptional<z.ZodEnum<["true", "false"]>>>;
246
250
  }, {
247
251
  name: "fileId";
248
252
  type: "Path";
@@ -1173,6 +1177,10 @@ declare function createApiClient(baseUrl: string, options?: ZodiosOptions): _zod
1173
1177
  description: "Get a pre-signed download URL for a file.";
1174
1178
  requestFormat: "json";
1175
1179
  parameters: [{
1180
+ name: "preserveFileName";
1181
+ type: "Query";
1182
+ schema: z.ZodDefault<z.ZodOptional<z.ZodEnum<["true", "false"]>>>;
1183
+ }, {
1176
1184
  name: "fileId";
1177
1185
  type: "Path";
1178
1186
  schema: z.ZodString;
@@ -2086,6 +2094,10 @@ declare function createApiClient(baseUrl: string, options?: ZodiosOptions): _zod
2086
2094
  description: "Get a pre-signed download URL for a file.";
2087
2095
  requestFormat: "json";
2088
2096
  parameters: [{
2097
+ name: "preserveFileName";
2098
+ type: "Query";
2099
+ schema: z.ZodDefault<z.ZodOptional<z.ZodEnum<["true", "false"]>>>;
2100
+ }, {
2089
2101
  name: "fileId";
2090
2102
  type: "Path";
2091
2103
  schema: z.ZodString;
@@ -2947,6 +2959,10 @@ declare function useVaultClient(vaultUrl: string, token: string): _zodios_core.Z
2947
2959
  name: "workspaceId";
2948
2960
  type: "Query";
2949
2961
  schema: zod.ZodString;
2962
+ }, {
2963
+ name: "preserveFileName";
2964
+ type: "Query";
2965
+ schema: zod.ZodDefault<zod.ZodOptional<zod.ZodEnum<["true", "false"]>>>;
2950
2966
  }, {
2951
2967
  name: "fileId";
2952
2968
  type: "Path";
@@ -3877,6 +3893,10 @@ declare function useVaultClient(vaultUrl: string, token: string): _zodios_core.Z
3877
3893
  description: "Get a pre-signed download URL for a file.";
3878
3894
  requestFormat: "json";
3879
3895
  parameters: [{
3896
+ name: "preserveFileName";
3897
+ type: "Query";
3898
+ schema: zod.ZodDefault<zod.ZodOptional<zod.ZodEnum<["true", "false"]>>>;
3899
+ }, {
3880
3900
  name: "fileId";
3881
3901
  type: "Path";
3882
3902
  schema: zod.ZodString;
@@ -4790,6 +4810,10 @@ declare function useVaultClient(vaultUrl: string, token: string): _zodios_core.Z
4790
4810
  description: "Get a pre-signed download URL for a file.";
4791
4811
  requestFormat: "json";
4792
4812
  parameters: [{
4813
+ name: "preserveFileName";
4814
+ type: "Query";
4815
+ schema: zod.ZodDefault<zod.ZodOptional<zod.ZodEnum<["true", "false"]>>>;
4816
+ }, {
4793
4817
  name: "fileId";
4794
4818
  type: "Path";
4795
4819
  schema: zod.ZodString;
package/dist/index.mjs CHANGED
@@ -162,6 +162,11 @@ The returned &#x60;uploadUrl&#x60; is valid for 1 hour by default. You can chang
162
162
  type: "Query",
163
163
  schema: z.string()
164
164
  },
165
+ {
166
+ name: "preserveFileName",
167
+ type: "Query",
168
+ schema: z.enum(["true", "false"]).optional().default("false")
169
+ },
165
170
  {
166
171
  name: "fileId",
167
172
  type: "Path",
@@ -571,6 +576,11 @@ The returned &#x60;uploadUrl&#x60; is valid for 1 hour by default. You can chang
571
576
  description: `Get a pre-signed download URL for a file.`,
572
577
  requestFormat: "json",
573
578
  parameters: [
579
+ {
580
+ name: "preserveFileName",
581
+ type: "Query",
582
+ schema: z.enum(["true", "false"]).optional().default("true")
583
+ },
574
584
  {
575
585
  name: "fileId",
576
586
  type: "Path",
@@ -1032,6 +1042,11 @@ The returned &#x60;uploadUrl&#x60; is valid for 1 hour by default. You can chang
1032
1042
  description: `Get a pre-signed download URL for a file.`,
1033
1043
  requestFormat: "json",
1034
1044
  parameters: [
1045
+ {
1046
+ name: "preserveFileName",
1047
+ type: "Query",
1048
+ schema: z.enum(["true", "false"]).optional().default("true")
1049
+ },
1035
1050
  {
1036
1051
  name: "fileId",
1037
1052
  type: "Path",
@@ -1316,7 +1331,7 @@ function useVaultClient(vaultUrl, token) {
1316
1331
  axiosConfig: {
1317
1332
  headers: {
1318
1333
  "Authorization": token,
1319
- "User-Agent": "vault-http-client:2.6.4"
1334
+ "User-Agent": "vault-http-client:2.9.0"
1320
1335
  }
1321
1336
  }
1322
1337
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@meistrari/vault-http-client",
3
- "version": "2.6.4",
3
+ "version": "2.9.0",
4
4
  "types": "dist/index.d.ts",
5
5
  "exports": {
6
6
  ".": {