@meistrari/vault-http-client 2.3.5 → 2.3.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.cjs CHANGED
@@ -198,6 +198,55 @@ The returned `uploadUrl` is valid for 1 hour by default. You can chang
198
198
  }
199
199
  ]
200
200
  },
201
+ {
202
+ method: "post",
203
+ path: "/_/files/:fileId/copy",
204
+ description: `Copy a file from one workspace to another.`,
205
+ requestFormat: "json",
206
+ parameters: [
207
+ {
208
+ name: "sourceWorkspaceId",
209
+ type: "Query",
210
+ schema: zod.z.string()
211
+ },
212
+ {
213
+ name: "destinationWorkspaceId",
214
+ type: "Query",
215
+ schema: zod.z.string()
216
+ },
217
+ {
218
+ name: "fileId",
219
+ type: "Path",
220
+ schema: zod.z.string()
221
+ }
222
+ ],
223
+ response: zod.z.object({
224
+ id: zod.z.string(),
225
+ path: zod.z.string(),
226
+ workspaceId: zod.z.string(),
227
+ originalFileName: zod.z.union([zod.z.string(), zod.z.null()]).optional(),
228
+ mimeType: zod.z.union([zod.z.string(), zod.z.null()]).optional(),
229
+ size: zod.z.union([zod.z.number(), zod.z.null()]).optional(),
230
+ legacyKey: zod.z.union([zod.z.string(), zod.z.null()]).optional(),
231
+ bucketName: zod.z.union([zod.z.string(), zod.z.null()]).optional(),
232
+ encryptionKey: zod.z.union([zod.z.string(), zod.z.null()]).optional(),
233
+ createdBy: zod.z.union([zod.z.string(), zod.z.null()]).optional(),
234
+ createdAt: zod.z.string(),
235
+ deletedAt: zod.z.union([zod.z.string(), zod.z.null()]).optional()
236
+ }),
237
+ errors: [
238
+ {
239
+ status: 404,
240
+ description: `Source file not found`,
241
+ schema: zod.z.void()
242
+ },
243
+ {
244
+ status: 409,
245
+ description: `File already exists in destination workspace`,
246
+ schema: zod.z.void()
247
+ }
248
+ ]
249
+ },
201
250
  {
202
251
  method: "put",
203
252
  path: "/_/files/:id",
@@ -1023,7 +1072,7 @@ function useVaultClient(vaultUrl, token) {
1023
1072
  axiosConfig: {
1024
1073
  headers: {
1025
1074
  Authorization: token,
1026
- "User-Agent": "vault-http-client:2.3.5"
1075
+ "User-Agent": "vault-http-client:2.3.6"
1027
1076
  }
1028
1077
  }
1029
1078
  });
package/dist/index.d.cts CHANGED
@@ -312,6 +312,73 @@ declare function createApiClient(baseUrl: string, options?: ZodiosOptions): _zod
312
312
  description: string;
313
313
  schema: z.ZodVoid;
314
314
  }];
315
+ }, {
316
+ method: "post";
317
+ path: "/_/files/:fileId/copy";
318
+ description: "Copy a file from one workspace to another.";
319
+ requestFormat: "json";
320
+ parameters: [{
321
+ name: "sourceWorkspaceId";
322
+ type: "Query";
323
+ schema: z.ZodString;
324
+ }, {
325
+ name: "destinationWorkspaceId";
326
+ type: "Query";
327
+ schema: z.ZodString;
328
+ }, {
329
+ name: "fileId";
330
+ type: "Path";
331
+ schema: z.ZodString;
332
+ }];
333
+ response: z.ZodObject<{
334
+ id: z.ZodString;
335
+ path: z.ZodString;
336
+ workspaceId: z.ZodString;
337
+ originalFileName: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
338
+ mimeType: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
339
+ size: z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodNull]>>;
340
+ legacyKey: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
341
+ bucketName: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
342
+ encryptionKey: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
343
+ createdBy: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
344
+ createdAt: z.ZodString;
345
+ deletedAt: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
346
+ }, "strip", z.ZodTypeAny, {
347
+ path: string;
348
+ workspaceId: string;
349
+ id: string;
350
+ createdAt: string;
351
+ bucketName?: string | null | undefined;
352
+ size?: number | null | undefined;
353
+ mimeType?: string | null | undefined;
354
+ createdBy?: string | null | undefined;
355
+ deletedAt?: string | null | undefined;
356
+ originalFileName?: string | null | undefined;
357
+ legacyKey?: string | null | undefined;
358
+ encryptionKey?: string | null | undefined;
359
+ }, {
360
+ path: string;
361
+ workspaceId: string;
362
+ id: string;
363
+ createdAt: string;
364
+ bucketName?: string | null | undefined;
365
+ size?: number | null | undefined;
366
+ mimeType?: string | null | undefined;
367
+ createdBy?: string | null | undefined;
368
+ deletedAt?: string | null | undefined;
369
+ originalFileName?: string | null | undefined;
370
+ legacyKey?: string | null | undefined;
371
+ encryptionKey?: string | null | undefined;
372
+ }>;
373
+ errors: [{
374
+ status: 404;
375
+ description: string;
376
+ schema: z.ZodVoid;
377
+ }, {
378
+ status: 409;
379
+ description: string;
380
+ schema: z.ZodVoid;
381
+ }];
315
382
  }, {
316
383
  method: "put";
317
384
  path: "/_/files/:id";
@@ -2203,6 +2270,73 @@ declare function useVaultClient(vaultUrl: string, token: string): _zodios_core.Z
2203
2270
  description: string;
2204
2271
  schema: zod.ZodVoid;
2205
2272
  }];
2273
+ }, {
2274
+ method: "post";
2275
+ path: "/_/files/:fileId/copy";
2276
+ description: "Copy a file from one workspace to another.";
2277
+ requestFormat: "json";
2278
+ parameters: [{
2279
+ name: "sourceWorkspaceId";
2280
+ type: "Query";
2281
+ schema: zod.ZodString;
2282
+ }, {
2283
+ name: "destinationWorkspaceId";
2284
+ type: "Query";
2285
+ schema: zod.ZodString;
2286
+ }, {
2287
+ name: "fileId";
2288
+ type: "Path";
2289
+ schema: zod.ZodString;
2290
+ }];
2291
+ response: zod.ZodObject<{
2292
+ id: zod.ZodString;
2293
+ path: zod.ZodString;
2294
+ workspaceId: zod.ZodString;
2295
+ originalFileName: zod.ZodOptional<zod.ZodUnion<[zod.ZodString, zod.ZodNull]>>;
2296
+ mimeType: zod.ZodOptional<zod.ZodUnion<[zod.ZodString, zod.ZodNull]>>;
2297
+ size: zod.ZodOptional<zod.ZodUnion<[zod.ZodNumber, zod.ZodNull]>>;
2298
+ legacyKey: zod.ZodOptional<zod.ZodUnion<[zod.ZodString, zod.ZodNull]>>;
2299
+ bucketName: zod.ZodOptional<zod.ZodUnion<[zod.ZodString, zod.ZodNull]>>;
2300
+ encryptionKey: zod.ZodOptional<zod.ZodUnion<[zod.ZodString, zod.ZodNull]>>;
2301
+ createdBy: zod.ZodOptional<zod.ZodUnion<[zod.ZodString, zod.ZodNull]>>;
2302
+ createdAt: zod.ZodString;
2303
+ deletedAt: zod.ZodOptional<zod.ZodUnion<[zod.ZodString, zod.ZodNull]>>;
2304
+ }, "strip", zod.ZodTypeAny, {
2305
+ path: string;
2306
+ workspaceId: string;
2307
+ id: string;
2308
+ createdAt: string;
2309
+ deletedAt?: string | null | undefined;
2310
+ originalFileName?: string | null | undefined;
2311
+ size?: number | null | undefined;
2312
+ createdBy?: string | null | undefined;
2313
+ mimeType?: string | null | undefined;
2314
+ legacyKey?: string | null | undefined;
2315
+ bucketName?: string | null | undefined;
2316
+ encryptionKey?: string | null | undefined;
2317
+ }, {
2318
+ path: string;
2319
+ workspaceId: string;
2320
+ id: string;
2321
+ createdAt: string;
2322
+ deletedAt?: string | null | undefined;
2323
+ originalFileName?: string | null | undefined;
2324
+ size?: number | null | undefined;
2325
+ createdBy?: string | null | undefined;
2326
+ mimeType?: string | null | undefined;
2327
+ legacyKey?: string | null | undefined;
2328
+ bucketName?: string | null | undefined;
2329
+ encryptionKey?: string | null | undefined;
2330
+ }>;
2331
+ errors: [{
2332
+ status: 404;
2333
+ description: string;
2334
+ schema: zod.ZodVoid;
2335
+ }, {
2336
+ status: 409;
2337
+ description: string;
2338
+ schema: zod.ZodVoid;
2339
+ }];
2206
2340
  }, {
2207
2341
  method: "put";
2208
2342
  path: "/_/files/:id";
package/dist/index.d.mts CHANGED
@@ -312,6 +312,73 @@ declare function createApiClient(baseUrl: string, options?: ZodiosOptions): _zod
312
312
  description: string;
313
313
  schema: z.ZodVoid;
314
314
  }];
315
+ }, {
316
+ method: "post";
317
+ path: "/_/files/:fileId/copy";
318
+ description: "Copy a file from one workspace to another.";
319
+ requestFormat: "json";
320
+ parameters: [{
321
+ name: "sourceWorkspaceId";
322
+ type: "Query";
323
+ schema: z.ZodString;
324
+ }, {
325
+ name: "destinationWorkspaceId";
326
+ type: "Query";
327
+ schema: z.ZodString;
328
+ }, {
329
+ name: "fileId";
330
+ type: "Path";
331
+ schema: z.ZodString;
332
+ }];
333
+ response: z.ZodObject<{
334
+ id: z.ZodString;
335
+ path: z.ZodString;
336
+ workspaceId: z.ZodString;
337
+ originalFileName: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
338
+ mimeType: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
339
+ size: z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodNull]>>;
340
+ legacyKey: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
341
+ bucketName: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
342
+ encryptionKey: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
343
+ createdBy: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
344
+ createdAt: z.ZodString;
345
+ deletedAt: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
346
+ }, "strip", z.ZodTypeAny, {
347
+ path: string;
348
+ workspaceId: string;
349
+ id: string;
350
+ createdAt: string;
351
+ bucketName?: string | null | undefined;
352
+ size?: number | null | undefined;
353
+ mimeType?: string | null | undefined;
354
+ createdBy?: string | null | undefined;
355
+ deletedAt?: string | null | undefined;
356
+ originalFileName?: string | null | undefined;
357
+ legacyKey?: string | null | undefined;
358
+ encryptionKey?: string | null | undefined;
359
+ }, {
360
+ path: string;
361
+ workspaceId: string;
362
+ id: string;
363
+ createdAt: string;
364
+ bucketName?: string | null | undefined;
365
+ size?: number | null | undefined;
366
+ mimeType?: string | null | undefined;
367
+ createdBy?: string | null | undefined;
368
+ deletedAt?: string | null | undefined;
369
+ originalFileName?: string | null | undefined;
370
+ legacyKey?: string | null | undefined;
371
+ encryptionKey?: string | null | undefined;
372
+ }>;
373
+ errors: [{
374
+ status: 404;
375
+ description: string;
376
+ schema: z.ZodVoid;
377
+ }, {
378
+ status: 409;
379
+ description: string;
380
+ schema: z.ZodVoid;
381
+ }];
315
382
  }, {
316
383
  method: "put";
317
384
  path: "/_/files/:id";
@@ -2203,6 +2270,73 @@ declare function useVaultClient(vaultUrl: string, token: string): _zodios_core.Z
2203
2270
  description: string;
2204
2271
  schema: zod.ZodVoid;
2205
2272
  }];
2273
+ }, {
2274
+ method: "post";
2275
+ path: "/_/files/:fileId/copy";
2276
+ description: "Copy a file from one workspace to another.";
2277
+ requestFormat: "json";
2278
+ parameters: [{
2279
+ name: "sourceWorkspaceId";
2280
+ type: "Query";
2281
+ schema: zod.ZodString;
2282
+ }, {
2283
+ name: "destinationWorkspaceId";
2284
+ type: "Query";
2285
+ schema: zod.ZodString;
2286
+ }, {
2287
+ name: "fileId";
2288
+ type: "Path";
2289
+ schema: zod.ZodString;
2290
+ }];
2291
+ response: zod.ZodObject<{
2292
+ id: zod.ZodString;
2293
+ path: zod.ZodString;
2294
+ workspaceId: zod.ZodString;
2295
+ originalFileName: zod.ZodOptional<zod.ZodUnion<[zod.ZodString, zod.ZodNull]>>;
2296
+ mimeType: zod.ZodOptional<zod.ZodUnion<[zod.ZodString, zod.ZodNull]>>;
2297
+ size: zod.ZodOptional<zod.ZodUnion<[zod.ZodNumber, zod.ZodNull]>>;
2298
+ legacyKey: zod.ZodOptional<zod.ZodUnion<[zod.ZodString, zod.ZodNull]>>;
2299
+ bucketName: zod.ZodOptional<zod.ZodUnion<[zod.ZodString, zod.ZodNull]>>;
2300
+ encryptionKey: zod.ZodOptional<zod.ZodUnion<[zod.ZodString, zod.ZodNull]>>;
2301
+ createdBy: zod.ZodOptional<zod.ZodUnion<[zod.ZodString, zod.ZodNull]>>;
2302
+ createdAt: zod.ZodString;
2303
+ deletedAt: zod.ZodOptional<zod.ZodUnion<[zod.ZodString, zod.ZodNull]>>;
2304
+ }, "strip", zod.ZodTypeAny, {
2305
+ path: string;
2306
+ workspaceId: string;
2307
+ id: string;
2308
+ createdAt: string;
2309
+ deletedAt?: string | null | undefined;
2310
+ originalFileName?: string | null | undefined;
2311
+ size?: number | null | undefined;
2312
+ createdBy?: string | null | undefined;
2313
+ mimeType?: string | null | undefined;
2314
+ legacyKey?: string | null | undefined;
2315
+ bucketName?: string | null | undefined;
2316
+ encryptionKey?: string | null | undefined;
2317
+ }, {
2318
+ path: string;
2319
+ workspaceId: string;
2320
+ id: string;
2321
+ createdAt: string;
2322
+ deletedAt?: string | null | undefined;
2323
+ originalFileName?: string | null | undefined;
2324
+ size?: number | null | undefined;
2325
+ createdBy?: string | null | undefined;
2326
+ mimeType?: string | null | undefined;
2327
+ legacyKey?: string | null | undefined;
2328
+ bucketName?: string | null | undefined;
2329
+ encryptionKey?: string | null | undefined;
2330
+ }>;
2331
+ errors: [{
2332
+ status: 404;
2333
+ description: string;
2334
+ schema: zod.ZodVoid;
2335
+ }, {
2336
+ status: 409;
2337
+ description: string;
2338
+ schema: zod.ZodVoid;
2339
+ }];
2206
2340
  }, {
2207
2341
  method: "put";
2208
2342
  path: "/_/files/:id";
package/dist/index.d.ts CHANGED
@@ -312,6 +312,73 @@ declare function createApiClient(baseUrl: string, options?: ZodiosOptions): _zod
312
312
  description: string;
313
313
  schema: z.ZodVoid;
314
314
  }];
315
+ }, {
316
+ method: "post";
317
+ path: "/_/files/:fileId/copy";
318
+ description: "Copy a file from one workspace to another.";
319
+ requestFormat: "json";
320
+ parameters: [{
321
+ name: "sourceWorkspaceId";
322
+ type: "Query";
323
+ schema: z.ZodString;
324
+ }, {
325
+ name: "destinationWorkspaceId";
326
+ type: "Query";
327
+ schema: z.ZodString;
328
+ }, {
329
+ name: "fileId";
330
+ type: "Path";
331
+ schema: z.ZodString;
332
+ }];
333
+ response: z.ZodObject<{
334
+ id: z.ZodString;
335
+ path: z.ZodString;
336
+ workspaceId: z.ZodString;
337
+ originalFileName: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
338
+ mimeType: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
339
+ size: z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodNull]>>;
340
+ legacyKey: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
341
+ bucketName: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
342
+ encryptionKey: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
343
+ createdBy: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
344
+ createdAt: z.ZodString;
345
+ deletedAt: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
346
+ }, "strip", z.ZodTypeAny, {
347
+ path: string;
348
+ workspaceId: string;
349
+ id: string;
350
+ createdAt: string;
351
+ bucketName?: string | null | undefined;
352
+ size?: number | null | undefined;
353
+ mimeType?: string | null | undefined;
354
+ createdBy?: string | null | undefined;
355
+ deletedAt?: string | null | undefined;
356
+ originalFileName?: string | null | undefined;
357
+ legacyKey?: string | null | undefined;
358
+ encryptionKey?: string | null | undefined;
359
+ }, {
360
+ path: string;
361
+ workspaceId: string;
362
+ id: string;
363
+ createdAt: string;
364
+ bucketName?: string | null | undefined;
365
+ size?: number | null | undefined;
366
+ mimeType?: string | null | undefined;
367
+ createdBy?: string | null | undefined;
368
+ deletedAt?: string | null | undefined;
369
+ originalFileName?: string | null | undefined;
370
+ legacyKey?: string | null | undefined;
371
+ encryptionKey?: string | null | undefined;
372
+ }>;
373
+ errors: [{
374
+ status: 404;
375
+ description: string;
376
+ schema: z.ZodVoid;
377
+ }, {
378
+ status: 409;
379
+ description: string;
380
+ schema: z.ZodVoid;
381
+ }];
315
382
  }, {
316
383
  method: "put";
317
384
  path: "/_/files/:id";
@@ -2203,6 +2270,73 @@ declare function useVaultClient(vaultUrl: string, token: string): _zodios_core.Z
2203
2270
  description: string;
2204
2271
  schema: zod.ZodVoid;
2205
2272
  }];
2273
+ }, {
2274
+ method: "post";
2275
+ path: "/_/files/:fileId/copy";
2276
+ description: "Copy a file from one workspace to another.";
2277
+ requestFormat: "json";
2278
+ parameters: [{
2279
+ name: "sourceWorkspaceId";
2280
+ type: "Query";
2281
+ schema: zod.ZodString;
2282
+ }, {
2283
+ name: "destinationWorkspaceId";
2284
+ type: "Query";
2285
+ schema: zod.ZodString;
2286
+ }, {
2287
+ name: "fileId";
2288
+ type: "Path";
2289
+ schema: zod.ZodString;
2290
+ }];
2291
+ response: zod.ZodObject<{
2292
+ id: zod.ZodString;
2293
+ path: zod.ZodString;
2294
+ workspaceId: zod.ZodString;
2295
+ originalFileName: zod.ZodOptional<zod.ZodUnion<[zod.ZodString, zod.ZodNull]>>;
2296
+ mimeType: zod.ZodOptional<zod.ZodUnion<[zod.ZodString, zod.ZodNull]>>;
2297
+ size: zod.ZodOptional<zod.ZodUnion<[zod.ZodNumber, zod.ZodNull]>>;
2298
+ legacyKey: zod.ZodOptional<zod.ZodUnion<[zod.ZodString, zod.ZodNull]>>;
2299
+ bucketName: zod.ZodOptional<zod.ZodUnion<[zod.ZodString, zod.ZodNull]>>;
2300
+ encryptionKey: zod.ZodOptional<zod.ZodUnion<[zod.ZodString, zod.ZodNull]>>;
2301
+ createdBy: zod.ZodOptional<zod.ZodUnion<[zod.ZodString, zod.ZodNull]>>;
2302
+ createdAt: zod.ZodString;
2303
+ deletedAt: zod.ZodOptional<zod.ZodUnion<[zod.ZodString, zod.ZodNull]>>;
2304
+ }, "strip", zod.ZodTypeAny, {
2305
+ path: string;
2306
+ workspaceId: string;
2307
+ id: string;
2308
+ createdAt: string;
2309
+ deletedAt?: string | null | undefined;
2310
+ originalFileName?: string | null | undefined;
2311
+ size?: number | null | undefined;
2312
+ createdBy?: string | null | undefined;
2313
+ mimeType?: string | null | undefined;
2314
+ legacyKey?: string | null | undefined;
2315
+ bucketName?: string | null | undefined;
2316
+ encryptionKey?: string | null | undefined;
2317
+ }, {
2318
+ path: string;
2319
+ workspaceId: string;
2320
+ id: string;
2321
+ createdAt: string;
2322
+ deletedAt?: string | null | undefined;
2323
+ originalFileName?: string | null | undefined;
2324
+ size?: number | null | undefined;
2325
+ createdBy?: string | null | undefined;
2326
+ mimeType?: string | null | undefined;
2327
+ legacyKey?: string | null | undefined;
2328
+ bucketName?: string | null | undefined;
2329
+ encryptionKey?: string | null | undefined;
2330
+ }>;
2331
+ errors: [{
2332
+ status: 404;
2333
+ description: string;
2334
+ schema: zod.ZodVoid;
2335
+ }, {
2336
+ status: 409;
2337
+ description: string;
2338
+ schema: zod.ZodVoid;
2339
+ }];
2206
2340
  }, {
2207
2341
  method: "put";
2208
2342
  path: "/_/files/:id";
package/dist/index.mjs CHANGED
@@ -196,6 +196,55 @@ The returned &#x60;uploadUrl&#x60; is valid for 1 hour by default. You can chang
196
196
  }
197
197
  ]
198
198
  },
199
+ {
200
+ method: "post",
201
+ path: "/_/files/:fileId/copy",
202
+ description: `Copy a file from one workspace to another.`,
203
+ requestFormat: "json",
204
+ parameters: [
205
+ {
206
+ name: "sourceWorkspaceId",
207
+ type: "Query",
208
+ schema: z.string()
209
+ },
210
+ {
211
+ name: "destinationWorkspaceId",
212
+ type: "Query",
213
+ schema: z.string()
214
+ },
215
+ {
216
+ name: "fileId",
217
+ type: "Path",
218
+ schema: z.string()
219
+ }
220
+ ],
221
+ response: z.object({
222
+ id: z.string(),
223
+ path: z.string(),
224
+ workspaceId: z.string(),
225
+ originalFileName: z.union([z.string(), z.null()]).optional(),
226
+ mimeType: z.union([z.string(), z.null()]).optional(),
227
+ size: z.union([z.number(), z.null()]).optional(),
228
+ legacyKey: z.union([z.string(), z.null()]).optional(),
229
+ bucketName: z.union([z.string(), z.null()]).optional(),
230
+ encryptionKey: z.union([z.string(), z.null()]).optional(),
231
+ createdBy: z.union([z.string(), z.null()]).optional(),
232
+ createdAt: z.string(),
233
+ deletedAt: z.union([z.string(), z.null()]).optional()
234
+ }),
235
+ errors: [
236
+ {
237
+ status: 404,
238
+ description: `Source file not found`,
239
+ schema: z.void()
240
+ },
241
+ {
242
+ status: 409,
243
+ description: `File already exists in destination workspace`,
244
+ schema: z.void()
245
+ }
246
+ ]
247
+ },
199
248
  {
200
249
  method: "put",
201
250
  path: "/_/files/:id",
@@ -1021,7 +1070,7 @@ function useVaultClient(vaultUrl, token) {
1021
1070
  axiosConfig: {
1022
1071
  headers: {
1023
1072
  Authorization: token,
1024
- "User-Agent": "vault-http-client:2.3.5"
1073
+ "User-Agent": "vault-http-client:2.3.6"
1025
1074
  }
1026
1075
  }
1027
1076
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@meistrari/vault-http-client",
3
- "version": "2.3.5",
3
+ "version": "2.3.6",
4
4
  "types": "dist/index.d.ts",
5
5
  "exports": {
6
6
  ".": {