@meistrari/vault-http-client 2.3.4 → 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 +99 -1
- package/dist/index.d.cts +334 -0
- package/dist/index.d.mts +334 -0
- package/dist/index.d.ts +334 -0
- package/dist/index.mjs +99 -1
- package/package.json +1 -1
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",
|
|
@@ -325,6 +374,54 @@ The returned `uploadUrl` is valid for 1 hour by default. You can chang
|
|
|
325
374
|
requestFormat: "json",
|
|
326
375
|
response: zod.z.object({ count: zod.z.number() })
|
|
327
376
|
},
|
|
377
|
+
{
|
|
378
|
+
method: "get",
|
|
379
|
+
path: "/_/files/inspect",
|
|
380
|
+
description: `Inspect files by file ID across all workspaces.`,
|
|
381
|
+
requestFormat: "json",
|
|
382
|
+
parameters: [
|
|
383
|
+
{
|
|
384
|
+
name: "fileId",
|
|
385
|
+
type: "Query",
|
|
386
|
+
schema: zod.z.string()
|
|
387
|
+
},
|
|
388
|
+
{
|
|
389
|
+
name: "includeDeleted",
|
|
390
|
+
type: "Query",
|
|
391
|
+
schema: zod.z.enum(["true", "false"]).optional().default("false")
|
|
392
|
+
},
|
|
393
|
+
{
|
|
394
|
+
name: "limit",
|
|
395
|
+
type: "Query",
|
|
396
|
+
schema: zod.z.number().optional().default(100)
|
|
397
|
+
},
|
|
398
|
+
{
|
|
399
|
+
name: "offset",
|
|
400
|
+
type: "Query",
|
|
401
|
+
schema: zod.z.number().optional().default(0)
|
|
402
|
+
}
|
|
403
|
+
],
|
|
404
|
+
response: zod.z.object({
|
|
405
|
+
files: zod.z.array(
|
|
406
|
+
zod.z.object({
|
|
407
|
+
id: zod.z.string(),
|
|
408
|
+
path: zod.z.string(),
|
|
409
|
+
workspaceId: zod.z.string(),
|
|
410
|
+
originalFileName: zod.z.union([zod.z.string(), zod.z.null()]).optional(),
|
|
411
|
+
mimeType: zod.z.union([zod.z.string(), zod.z.null()]).optional(),
|
|
412
|
+
size: zod.z.union([zod.z.number(), zod.z.null()]).optional(),
|
|
413
|
+
legacyKey: zod.z.union([zod.z.string(), zod.z.null()]).optional(),
|
|
414
|
+
bucketName: zod.z.union([zod.z.string(), zod.z.null()]).optional(),
|
|
415
|
+
encryptionKey: zod.z.union([zod.z.string(), zod.z.null()]).optional(),
|
|
416
|
+
createdBy: zod.z.union([zod.z.string(), zod.z.null()]).optional(),
|
|
417
|
+
createdAt: zod.z.string(),
|
|
418
|
+
deletedAt: zod.z.union([zod.z.string(), zod.z.null()]).optional()
|
|
419
|
+
})
|
|
420
|
+
),
|
|
421
|
+
count: zod.z.number(),
|
|
422
|
+
pages: zod.z.number()
|
|
423
|
+
})
|
|
424
|
+
},
|
|
328
425
|
{
|
|
329
426
|
method: "put",
|
|
330
427
|
path: "/_/workspaces/:workspaceId/settings",
|
|
@@ -974,7 +1071,8 @@ function useVaultClient(vaultUrl, token) {
|
|
|
974
1071
|
const api = createApiClient(vaultUrl, {
|
|
975
1072
|
axiosConfig: {
|
|
976
1073
|
headers: {
|
|
977
|
-
Authorization: token
|
|
1074
|
+
Authorization: token,
|
|
1075
|
+
"User-Agent": "vault-http-client:2.3.6"
|
|
978
1076
|
}
|
|
979
1077
|
}
|
|
980
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";
|
|
@@ -527,6 +594,106 @@ declare function createApiClient(baseUrl: string, options?: ZodiosOptions): _zod
|
|
|
527
594
|
}, {
|
|
528
595
|
count: number;
|
|
529
596
|
}>;
|
|
597
|
+
}, {
|
|
598
|
+
method: "get";
|
|
599
|
+
path: "/_/files/inspect";
|
|
600
|
+
description: "Inspect files by file ID across all workspaces.";
|
|
601
|
+
requestFormat: "json";
|
|
602
|
+
parameters: [{
|
|
603
|
+
name: "fileId";
|
|
604
|
+
type: "Query";
|
|
605
|
+
schema: z.ZodString;
|
|
606
|
+
}, {
|
|
607
|
+
name: "includeDeleted";
|
|
608
|
+
type: "Query";
|
|
609
|
+
schema: z.ZodDefault<z.ZodOptional<z.ZodEnum<["true", "false"]>>>;
|
|
610
|
+
}, {
|
|
611
|
+
name: "limit";
|
|
612
|
+
type: "Query";
|
|
613
|
+
schema: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
614
|
+
}, {
|
|
615
|
+
name: "offset";
|
|
616
|
+
type: "Query";
|
|
617
|
+
schema: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
618
|
+
}];
|
|
619
|
+
response: z.ZodObject<{
|
|
620
|
+
files: z.ZodArray<z.ZodObject<{
|
|
621
|
+
id: z.ZodString;
|
|
622
|
+
path: z.ZodString;
|
|
623
|
+
workspaceId: z.ZodString;
|
|
624
|
+
originalFileName: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
|
|
625
|
+
mimeType: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
|
|
626
|
+
size: z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodNull]>>;
|
|
627
|
+
legacyKey: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
|
|
628
|
+
bucketName: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
|
|
629
|
+
encryptionKey: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
|
|
630
|
+
createdBy: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
|
|
631
|
+
createdAt: z.ZodString;
|
|
632
|
+
deletedAt: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
|
|
633
|
+
}, "strip", z.ZodTypeAny, {
|
|
634
|
+
path: string;
|
|
635
|
+
workspaceId: string;
|
|
636
|
+
id: string;
|
|
637
|
+
createdAt: string;
|
|
638
|
+
bucketName?: string | null | undefined;
|
|
639
|
+
size?: number | null | undefined;
|
|
640
|
+
mimeType?: string | null | undefined;
|
|
641
|
+
createdBy?: string | null | undefined;
|
|
642
|
+
deletedAt?: string | null | undefined;
|
|
643
|
+
originalFileName?: string | null | undefined;
|
|
644
|
+
legacyKey?: string | null | undefined;
|
|
645
|
+
encryptionKey?: string | null | undefined;
|
|
646
|
+
}, {
|
|
647
|
+
path: string;
|
|
648
|
+
workspaceId: string;
|
|
649
|
+
id: string;
|
|
650
|
+
createdAt: string;
|
|
651
|
+
bucketName?: string | null | undefined;
|
|
652
|
+
size?: number | null | undefined;
|
|
653
|
+
mimeType?: string | null | undefined;
|
|
654
|
+
createdBy?: string | null | undefined;
|
|
655
|
+
deletedAt?: string | null | undefined;
|
|
656
|
+
originalFileName?: string | null | undefined;
|
|
657
|
+
legacyKey?: string | null | undefined;
|
|
658
|
+
encryptionKey?: string | null | undefined;
|
|
659
|
+
}>, "many">;
|
|
660
|
+
count: z.ZodNumber;
|
|
661
|
+
pages: z.ZodNumber;
|
|
662
|
+
}, "strip", z.ZodTypeAny, {
|
|
663
|
+
files: {
|
|
664
|
+
path: string;
|
|
665
|
+
workspaceId: string;
|
|
666
|
+
id: string;
|
|
667
|
+
createdAt: string;
|
|
668
|
+
bucketName?: string | null | undefined;
|
|
669
|
+
size?: number | null | undefined;
|
|
670
|
+
mimeType?: string | null | undefined;
|
|
671
|
+
createdBy?: string | null | undefined;
|
|
672
|
+
deletedAt?: string | null | undefined;
|
|
673
|
+
originalFileName?: string | null | undefined;
|
|
674
|
+
legacyKey?: string | null | undefined;
|
|
675
|
+
encryptionKey?: string | null | undefined;
|
|
676
|
+
}[];
|
|
677
|
+
count: number;
|
|
678
|
+
pages: number;
|
|
679
|
+
}, {
|
|
680
|
+
files: {
|
|
681
|
+
path: string;
|
|
682
|
+
workspaceId: string;
|
|
683
|
+
id: string;
|
|
684
|
+
createdAt: string;
|
|
685
|
+
bucketName?: string | null | undefined;
|
|
686
|
+
size?: number | null | undefined;
|
|
687
|
+
mimeType?: string | null | undefined;
|
|
688
|
+
createdBy?: string | null | undefined;
|
|
689
|
+
deletedAt?: string | null | undefined;
|
|
690
|
+
originalFileName?: string | null | undefined;
|
|
691
|
+
legacyKey?: string | null | undefined;
|
|
692
|
+
encryptionKey?: string | null | undefined;
|
|
693
|
+
}[];
|
|
694
|
+
count: number;
|
|
695
|
+
pages: number;
|
|
696
|
+
}>;
|
|
530
697
|
}, {
|
|
531
698
|
method: "put";
|
|
532
699
|
path: "/_/workspaces/:workspaceId/settings";
|
|
@@ -2103,6 +2270,73 @@ declare function useVaultClient(vaultUrl: string, token: string): _zodios_core.Z
|
|
|
2103
2270
|
description: string;
|
|
2104
2271
|
schema: zod.ZodVoid;
|
|
2105
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
|
+
}];
|
|
2106
2340
|
}, {
|
|
2107
2341
|
method: "put";
|
|
2108
2342
|
path: "/_/files/:id";
|
|
@@ -2318,6 +2552,106 @@ declare function useVaultClient(vaultUrl: string, token: string): _zodios_core.Z
|
|
|
2318
2552
|
}, {
|
|
2319
2553
|
count: number;
|
|
2320
2554
|
}>;
|
|
2555
|
+
}, {
|
|
2556
|
+
method: "get";
|
|
2557
|
+
path: "/_/files/inspect";
|
|
2558
|
+
description: "Inspect files by file ID across all workspaces.";
|
|
2559
|
+
requestFormat: "json";
|
|
2560
|
+
parameters: [{
|
|
2561
|
+
name: "fileId";
|
|
2562
|
+
type: "Query";
|
|
2563
|
+
schema: zod.ZodString;
|
|
2564
|
+
}, {
|
|
2565
|
+
name: "includeDeleted";
|
|
2566
|
+
type: "Query";
|
|
2567
|
+
schema: zod.ZodDefault<zod.ZodOptional<zod.ZodEnum<["true", "false"]>>>;
|
|
2568
|
+
}, {
|
|
2569
|
+
name: "limit";
|
|
2570
|
+
type: "Query";
|
|
2571
|
+
schema: zod.ZodDefault<zod.ZodOptional<zod.ZodNumber>>;
|
|
2572
|
+
}, {
|
|
2573
|
+
name: "offset";
|
|
2574
|
+
type: "Query";
|
|
2575
|
+
schema: zod.ZodDefault<zod.ZodOptional<zod.ZodNumber>>;
|
|
2576
|
+
}];
|
|
2577
|
+
response: zod.ZodObject<{
|
|
2578
|
+
files: zod.ZodArray<zod.ZodObject<{
|
|
2579
|
+
id: zod.ZodString;
|
|
2580
|
+
path: zod.ZodString;
|
|
2581
|
+
workspaceId: zod.ZodString;
|
|
2582
|
+
originalFileName: zod.ZodOptional<zod.ZodUnion<[zod.ZodString, zod.ZodNull]>>;
|
|
2583
|
+
mimeType: zod.ZodOptional<zod.ZodUnion<[zod.ZodString, zod.ZodNull]>>;
|
|
2584
|
+
size: zod.ZodOptional<zod.ZodUnion<[zod.ZodNumber, zod.ZodNull]>>;
|
|
2585
|
+
legacyKey: zod.ZodOptional<zod.ZodUnion<[zod.ZodString, zod.ZodNull]>>;
|
|
2586
|
+
bucketName: zod.ZodOptional<zod.ZodUnion<[zod.ZodString, zod.ZodNull]>>;
|
|
2587
|
+
encryptionKey: zod.ZodOptional<zod.ZodUnion<[zod.ZodString, zod.ZodNull]>>;
|
|
2588
|
+
createdBy: zod.ZodOptional<zod.ZodUnion<[zod.ZodString, zod.ZodNull]>>;
|
|
2589
|
+
createdAt: zod.ZodString;
|
|
2590
|
+
deletedAt: zod.ZodOptional<zod.ZodUnion<[zod.ZodString, zod.ZodNull]>>;
|
|
2591
|
+
}, "strip", zod.ZodTypeAny, {
|
|
2592
|
+
path: string;
|
|
2593
|
+
workspaceId: string;
|
|
2594
|
+
id: string;
|
|
2595
|
+
createdAt: string;
|
|
2596
|
+
deletedAt?: string | null | undefined;
|
|
2597
|
+
originalFileName?: string | null | undefined;
|
|
2598
|
+
size?: number | null | undefined;
|
|
2599
|
+
createdBy?: string | null | undefined;
|
|
2600
|
+
mimeType?: string | null | undefined;
|
|
2601
|
+
legacyKey?: string | null | undefined;
|
|
2602
|
+
bucketName?: string | null | undefined;
|
|
2603
|
+
encryptionKey?: string | null | undefined;
|
|
2604
|
+
}, {
|
|
2605
|
+
path: string;
|
|
2606
|
+
workspaceId: string;
|
|
2607
|
+
id: string;
|
|
2608
|
+
createdAt: string;
|
|
2609
|
+
deletedAt?: string | null | undefined;
|
|
2610
|
+
originalFileName?: string | null | undefined;
|
|
2611
|
+
size?: number | null | undefined;
|
|
2612
|
+
createdBy?: string | null | undefined;
|
|
2613
|
+
mimeType?: string | null | undefined;
|
|
2614
|
+
legacyKey?: string | null | undefined;
|
|
2615
|
+
bucketName?: string | null | undefined;
|
|
2616
|
+
encryptionKey?: string | null | undefined;
|
|
2617
|
+
}>, "many">;
|
|
2618
|
+
count: zod.ZodNumber;
|
|
2619
|
+
pages: zod.ZodNumber;
|
|
2620
|
+
}, "strip", zod.ZodTypeAny, {
|
|
2621
|
+
files: {
|
|
2622
|
+
path: string;
|
|
2623
|
+
workspaceId: string;
|
|
2624
|
+
id: string;
|
|
2625
|
+
createdAt: string;
|
|
2626
|
+
deletedAt?: string | null | undefined;
|
|
2627
|
+
originalFileName?: string | null | undefined;
|
|
2628
|
+
size?: number | null | undefined;
|
|
2629
|
+
createdBy?: string | null | undefined;
|
|
2630
|
+
mimeType?: string | null | undefined;
|
|
2631
|
+
legacyKey?: string | null | undefined;
|
|
2632
|
+
bucketName?: string | null | undefined;
|
|
2633
|
+
encryptionKey?: string | null | undefined;
|
|
2634
|
+
}[];
|
|
2635
|
+
count: number;
|
|
2636
|
+
pages: number;
|
|
2637
|
+
}, {
|
|
2638
|
+
files: {
|
|
2639
|
+
path: string;
|
|
2640
|
+
workspaceId: string;
|
|
2641
|
+
id: string;
|
|
2642
|
+
createdAt: string;
|
|
2643
|
+
deletedAt?: string | null | undefined;
|
|
2644
|
+
originalFileName?: string | null | undefined;
|
|
2645
|
+
size?: number | null | undefined;
|
|
2646
|
+
createdBy?: string | null | undefined;
|
|
2647
|
+
mimeType?: string | null | undefined;
|
|
2648
|
+
legacyKey?: string | null | undefined;
|
|
2649
|
+
bucketName?: string | null | undefined;
|
|
2650
|
+
encryptionKey?: string | null | undefined;
|
|
2651
|
+
}[];
|
|
2652
|
+
count: number;
|
|
2653
|
+
pages: number;
|
|
2654
|
+
}>;
|
|
2321
2655
|
}, {
|
|
2322
2656
|
method: "put";
|
|
2323
2657
|
path: "/_/workspaces/:workspaceId/settings";
|
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";
|
|
@@ -527,6 +594,106 @@ declare function createApiClient(baseUrl: string, options?: ZodiosOptions): _zod
|
|
|
527
594
|
}, {
|
|
528
595
|
count: number;
|
|
529
596
|
}>;
|
|
597
|
+
}, {
|
|
598
|
+
method: "get";
|
|
599
|
+
path: "/_/files/inspect";
|
|
600
|
+
description: "Inspect files by file ID across all workspaces.";
|
|
601
|
+
requestFormat: "json";
|
|
602
|
+
parameters: [{
|
|
603
|
+
name: "fileId";
|
|
604
|
+
type: "Query";
|
|
605
|
+
schema: z.ZodString;
|
|
606
|
+
}, {
|
|
607
|
+
name: "includeDeleted";
|
|
608
|
+
type: "Query";
|
|
609
|
+
schema: z.ZodDefault<z.ZodOptional<z.ZodEnum<["true", "false"]>>>;
|
|
610
|
+
}, {
|
|
611
|
+
name: "limit";
|
|
612
|
+
type: "Query";
|
|
613
|
+
schema: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
614
|
+
}, {
|
|
615
|
+
name: "offset";
|
|
616
|
+
type: "Query";
|
|
617
|
+
schema: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
618
|
+
}];
|
|
619
|
+
response: z.ZodObject<{
|
|
620
|
+
files: z.ZodArray<z.ZodObject<{
|
|
621
|
+
id: z.ZodString;
|
|
622
|
+
path: z.ZodString;
|
|
623
|
+
workspaceId: z.ZodString;
|
|
624
|
+
originalFileName: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
|
|
625
|
+
mimeType: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
|
|
626
|
+
size: z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodNull]>>;
|
|
627
|
+
legacyKey: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
|
|
628
|
+
bucketName: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
|
|
629
|
+
encryptionKey: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
|
|
630
|
+
createdBy: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
|
|
631
|
+
createdAt: z.ZodString;
|
|
632
|
+
deletedAt: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
|
|
633
|
+
}, "strip", z.ZodTypeAny, {
|
|
634
|
+
path: string;
|
|
635
|
+
workspaceId: string;
|
|
636
|
+
id: string;
|
|
637
|
+
createdAt: string;
|
|
638
|
+
bucketName?: string | null | undefined;
|
|
639
|
+
size?: number | null | undefined;
|
|
640
|
+
mimeType?: string | null | undefined;
|
|
641
|
+
createdBy?: string | null | undefined;
|
|
642
|
+
deletedAt?: string | null | undefined;
|
|
643
|
+
originalFileName?: string | null | undefined;
|
|
644
|
+
legacyKey?: string | null | undefined;
|
|
645
|
+
encryptionKey?: string | null | undefined;
|
|
646
|
+
}, {
|
|
647
|
+
path: string;
|
|
648
|
+
workspaceId: string;
|
|
649
|
+
id: string;
|
|
650
|
+
createdAt: string;
|
|
651
|
+
bucketName?: string | null | undefined;
|
|
652
|
+
size?: number | null | undefined;
|
|
653
|
+
mimeType?: string | null | undefined;
|
|
654
|
+
createdBy?: string | null | undefined;
|
|
655
|
+
deletedAt?: string | null | undefined;
|
|
656
|
+
originalFileName?: string | null | undefined;
|
|
657
|
+
legacyKey?: string | null | undefined;
|
|
658
|
+
encryptionKey?: string | null | undefined;
|
|
659
|
+
}>, "many">;
|
|
660
|
+
count: z.ZodNumber;
|
|
661
|
+
pages: z.ZodNumber;
|
|
662
|
+
}, "strip", z.ZodTypeAny, {
|
|
663
|
+
files: {
|
|
664
|
+
path: string;
|
|
665
|
+
workspaceId: string;
|
|
666
|
+
id: string;
|
|
667
|
+
createdAt: string;
|
|
668
|
+
bucketName?: string | null | undefined;
|
|
669
|
+
size?: number | null | undefined;
|
|
670
|
+
mimeType?: string | null | undefined;
|
|
671
|
+
createdBy?: string | null | undefined;
|
|
672
|
+
deletedAt?: string | null | undefined;
|
|
673
|
+
originalFileName?: string | null | undefined;
|
|
674
|
+
legacyKey?: string | null | undefined;
|
|
675
|
+
encryptionKey?: string | null | undefined;
|
|
676
|
+
}[];
|
|
677
|
+
count: number;
|
|
678
|
+
pages: number;
|
|
679
|
+
}, {
|
|
680
|
+
files: {
|
|
681
|
+
path: string;
|
|
682
|
+
workspaceId: string;
|
|
683
|
+
id: string;
|
|
684
|
+
createdAt: string;
|
|
685
|
+
bucketName?: string | null | undefined;
|
|
686
|
+
size?: number | null | undefined;
|
|
687
|
+
mimeType?: string | null | undefined;
|
|
688
|
+
createdBy?: string | null | undefined;
|
|
689
|
+
deletedAt?: string | null | undefined;
|
|
690
|
+
originalFileName?: string | null | undefined;
|
|
691
|
+
legacyKey?: string | null | undefined;
|
|
692
|
+
encryptionKey?: string | null | undefined;
|
|
693
|
+
}[];
|
|
694
|
+
count: number;
|
|
695
|
+
pages: number;
|
|
696
|
+
}>;
|
|
530
697
|
}, {
|
|
531
698
|
method: "put";
|
|
532
699
|
path: "/_/workspaces/:workspaceId/settings";
|
|
@@ -2103,6 +2270,73 @@ declare function useVaultClient(vaultUrl: string, token: string): _zodios_core.Z
|
|
|
2103
2270
|
description: string;
|
|
2104
2271
|
schema: zod.ZodVoid;
|
|
2105
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
|
+
}];
|
|
2106
2340
|
}, {
|
|
2107
2341
|
method: "put";
|
|
2108
2342
|
path: "/_/files/:id";
|
|
@@ -2318,6 +2552,106 @@ declare function useVaultClient(vaultUrl: string, token: string): _zodios_core.Z
|
|
|
2318
2552
|
}, {
|
|
2319
2553
|
count: number;
|
|
2320
2554
|
}>;
|
|
2555
|
+
}, {
|
|
2556
|
+
method: "get";
|
|
2557
|
+
path: "/_/files/inspect";
|
|
2558
|
+
description: "Inspect files by file ID across all workspaces.";
|
|
2559
|
+
requestFormat: "json";
|
|
2560
|
+
parameters: [{
|
|
2561
|
+
name: "fileId";
|
|
2562
|
+
type: "Query";
|
|
2563
|
+
schema: zod.ZodString;
|
|
2564
|
+
}, {
|
|
2565
|
+
name: "includeDeleted";
|
|
2566
|
+
type: "Query";
|
|
2567
|
+
schema: zod.ZodDefault<zod.ZodOptional<zod.ZodEnum<["true", "false"]>>>;
|
|
2568
|
+
}, {
|
|
2569
|
+
name: "limit";
|
|
2570
|
+
type: "Query";
|
|
2571
|
+
schema: zod.ZodDefault<zod.ZodOptional<zod.ZodNumber>>;
|
|
2572
|
+
}, {
|
|
2573
|
+
name: "offset";
|
|
2574
|
+
type: "Query";
|
|
2575
|
+
schema: zod.ZodDefault<zod.ZodOptional<zod.ZodNumber>>;
|
|
2576
|
+
}];
|
|
2577
|
+
response: zod.ZodObject<{
|
|
2578
|
+
files: zod.ZodArray<zod.ZodObject<{
|
|
2579
|
+
id: zod.ZodString;
|
|
2580
|
+
path: zod.ZodString;
|
|
2581
|
+
workspaceId: zod.ZodString;
|
|
2582
|
+
originalFileName: zod.ZodOptional<zod.ZodUnion<[zod.ZodString, zod.ZodNull]>>;
|
|
2583
|
+
mimeType: zod.ZodOptional<zod.ZodUnion<[zod.ZodString, zod.ZodNull]>>;
|
|
2584
|
+
size: zod.ZodOptional<zod.ZodUnion<[zod.ZodNumber, zod.ZodNull]>>;
|
|
2585
|
+
legacyKey: zod.ZodOptional<zod.ZodUnion<[zod.ZodString, zod.ZodNull]>>;
|
|
2586
|
+
bucketName: zod.ZodOptional<zod.ZodUnion<[zod.ZodString, zod.ZodNull]>>;
|
|
2587
|
+
encryptionKey: zod.ZodOptional<zod.ZodUnion<[zod.ZodString, zod.ZodNull]>>;
|
|
2588
|
+
createdBy: zod.ZodOptional<zod.ZodUnion<[zod.ZodString, zod.ZodNull]>>;
|
|
2589
|
+
createdAt: zod.ZodString;
|
|
2590
|
+
deletedAt: zod.ZodOptional<zod.ZodUnion<[zod.ZodString, zod.ZodNull]>>;
|
|
2591
|
+
}, "strip", zod.ZodTypeAny, {
|
|
2592
|
+
path: string;
|
|
2593
|
+
workspaceId: string;
|
|
2594
|
+
id: string;
|
|
2595
|
+
createdAt: string;
|
|
2596
|
+
deletedAt?: string | null | undefined;
|
|
2597
|
+
originalFileName?: string | null | undefined;
|
|
2598
|
+
size?: number | null | undefined;
|
|
2599
|
+
createdBy?: string | null | undefined;
|
|
2600
|
+
mimeType?: string | null | undefined;
|
|
2601
|
+
legacyKey?: string | null | undefined;
|
|
2602
|
+
bucketName?: string | null | undefined;
|
|
2603
|
+
encryptionKey?: string | null | undefined;
|
|
2604
|
+
}, {
|
|
2605
|
+
path: string;
|
|
2606
|
+
workspaceId: string;
|
|
2607
|
+
id: string;
|
|
2608
|
+
createdAt: string;
|
|
2609
|
+
deletedAt?: string | null | undefined;
|
|
2610
|
+
originalFileName?: string | null | undefined;
|
|
2611
|
+
size?: number | null | undefined;
|
|
2612
|
+
createdBy?: string | null | undefined;
|
|
2613
|
+
mimeType?: string | null | undefined;
|
|
2614
|
+
legacyKey?: string | null | undefined;
|
|
2615
|
+
bucketName?: string | null | undefined;
|
|
2616
|
+
encryptionKey?: string | null | undefined;
|
|
2617
|
+
}>, "many">;
|
|
2618
|
+
count: zod.ZodNumber;
|
|
2619
|
+
pages: zod.ZodNumber;
|
|
2620
|
+
}, "strip", zod.ZodTypeAny, {
|
|
2621
|
+
files: {
|
|
2622
|
+
path: string;
|
|
2623
|
+
workspaceId: string;
|
|
2624
|
+
id: string;
|
|
2625
|
+
createdAt: string;
|
|
2626
|
+
deletedAt?: string | null | undefined;
|
|
2627
|
+
originalFileName?: string | null | undefined;
|
|
2628
|
+
size?: number | null | undefined;
|
|
2629
|
+
createdBy?: string | null | undefined;
|
|
2630
|
+
mimeType?: string | null | undefined;
|
|
2631
|
+
legacyKey?: string | null | undefined;
|
|
2632
|
+
bucketName?: string | null | undefined;
|
|
2633
|
+
encryptionKey?: string | null | undefined;
|
|
2634
|
+
}[];
|
|
2635
|
+
count: number;
|
|
2636
|
+
pages: number;
|
|
2637
|
+
}, {
|
|
2638
|
+
files: {
|
|
2639
|
+
path: string;
|
|
2640
|
+
workspaceId: string;
|
|
2641
|
+
id: string;
|
|
2642
|
+
createdAt: string;
|
|
2643
|
+
deletedAt?: string | null | undefined;
|
|
2644
|
+
originalFileName?: string | null | undefined;
|
|
2645
|
+
size?: number | null | undefined;
|
|
2646
|
+
createdBy?: string | null | undefined;
|
|
2647
|
+
mimeType?: string | null | undefined;
|
|
2648
|
+
legacyKey?: string | null | undefined;
|
|
2649
|
+
bucketName?: string | null | undefined;
|
|
2650
|
+
encryptionKey?: string | null | undefined;
|
|
2651
|
+
}[];
|
|
2652
|
+
count: number;
|
|
2653
|
+
pages: number;
|
|
2654
|
+
}>;
|
|
2321
2655
|
}, {
|
|
2322
2656
|
method: "put";
|
|
2323
2657
|
path: "/_/workspaces/:workspaceId/settings";
|
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";
|
|
@@ -527,6 +594,106 @@ declare function createApiClient(baseUrl: string, options?: ZodiosOptions): _zod
|
|
|
527
594
|
}, {
|
|
528
595
|
count: number;
|
|
529
596
|
}>;
|
|
597
|
+
}, {
|
|
598
|
+
method: "get";
|
|
599
|
+
path: "/_/files/inspect";
|
|
600
|
+
description: "Inspect files by file ID across all workspaces.";
|
|
601
|
+
requestFormat: "json";
|
|
602
|
+
parameters: [{
|
|
603
|
+
name: "fileId";
|
|
604
|
+
type: "Query";
|
|
605
|
+
schema: z.ZodString;
|
|
606
|
+
}, {
|
|
607
|
+
name: "includeDeleted";
|
|
608
|
+
type: "Query";
|
|
609
|
+
schema: z.ZodDefault<z.ZodOptional<z.ZodEnum<["true", "false"]>>>;
|
|
610
|
+
}, {
|
|
611
|
+
name: "limit";
|
|
612
|
+
type: "Query";
|
|
613
|
+
schema: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
614
|
+
}, {
|
|
615
|
+
name: "offset";
|
|
616
|
+
type: "Query";
|
|
617
|
+
schema: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
618
|
+
}];
|
|
619
|
+
response: z.ZodObject<{
|
|
620
|
+
files: z.ZodArray<z.ZodObject<{
|
|
621
|
+
id: z.ZodString;
|
|
622
|
+
path: z.ZodString;
|
|
623
|
+
workspaceId: z.ZodString;
|
|
624
|
+
originalFileName: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
|
|
625
|
+
mimeType: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
|
|
626
|
+
size: z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodNull]>>;
|
|
627
|
+
legacyKey: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
|
|
628
|
+
bucketName: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
|
|
629
|
+
encryptionKey: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
|
|
630
|
+
createdBy: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
|
|
631
|
+
createdAt: z.ZodString;
|
|
632
|
+
deletedAt: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
|
|
633
|
+
}, "strip", z.ZodTypeAny, {
|
|
634
|
+
path: string;
|
|
635
|
+
workspaceId: string;
|
|
636
|
+
id: string;
|
|
637
|
+
createdAt: string;
|
|
638
|
+
bucketName?: string | null | undefined;
|
|
639
|
+
size?: number | null | undefined;
|
|
640
|
+
mimeType?: string | null | undefined;
|
|
641
|
+
createdBy?: string | null | undefined;
|
|
642
|
+
deletedAt?: string | null | undefined;
|
|
643
|
+
originalFileName?: string | null | undefined;
|
|
644
|
+
legacyKey?: string | null | undefined;
|
|
645
|
+
encryptionKey?: string | null | undefined;
|
|
646
|
+
}, {
|
|
647
|
+
path: string;
|
|
648
|
+
workspaceId: string;
|
|
649
|
+
id: string;
|
|
650
|
+
createdAt: string;
|
|
651
|
+
bucketName?: string | null | undefined;
|
|
652
|
+
size?: number | null | undefined;
|
|
653
|
+
mimeType?: string | null | undefined;
|
|
654
|
+
createdBy?: string | null | undefined;
|
|
655
|
+
deletedAt?: string | null | undefined;
|
|
656
|
+
originalFileName?: string | null | undefined;
|
|
657
|
+
legacyKey?: string | null | undefined;
|
|
658
|
+
encryptionKey?: string | null | undefined;
|
|
659
|
+
}>, "many">;
|
|
660
|
+
count: z.ZodNumber;
|
|
661
|
+
pages: z.ZodNumber;
|
|
662
|
+
}, "strip", z.ZodTypeAny, {
|
|
663
|
+
files: {
|
|
664
|
+
path: string;
|
|
665
|
+
workspaceId: string;
|
|
666
|
+
id: string;
|
|
667
|
+
createdAt: string;
|
|
668
|
+
bucketName?: string | null | undefined;
|
|
669
|
+
size?: number | null | undefined;
|
|
670
|
+
mimeType?: string | null | undefined;
|
|
671
|
+
createdBy?: string | null | undefined;
|
|
672
|
+
deletedAt?: string | null | undefined;
|
|
673
|
+
originalFileName?: string | null | undefined;
|
|
674
|
+
legacyKey?: string | null | undefined;
|
|
675
|
+
encryptionKey?: string | null | undefined;
|
|
676
|
+
}[];
|
|
677
|
+
count: number;
|
|
678
|
+
pages: number;
|
|
679
|
+
}, {
|
|
680
|
+
files: {
|
|
681
|
+
path: string;
|
|
682
|
+
workspaceId: string;
|
|
683
|
+
id: string;
|
|
684
|
+
createdAt: string;
|
|
685
|
+
bucketName?: string | null | undefined;
|
|
686
|
+
size?: number | null | undefined;
|
|
687
|
+
mimeType?: string | null | undefined;
|
|
688
|
+
createdBy?: string | null | undefined;
|
|
689
|
+
deletedAt?: string | null | undefined;
|
|
690
|
+
originalFileName?: string | null | undefined;
|
|
691
|
+
legacyKey?: string | null | undefined;
|
|
692
|
+
encryptionKey?: string | null | undefined;
|
|
693
|
+
}[];
|
|
694
|
+
count: number;
|
|
695
|
+
pages: number;
|
|
696
|
+
}>;
|
|
530
697
|
}, {
|
|
531
698
|
method: "put";
|
|
532
699
|
path: "/_/workspaces/:workspaceId/settings";
|
|
@@ -2103,6 +2270,73 @@ declare function useVaultClient(vaultUrl: string, token: string): _zodios_core.Z
|
|
|
2103
2270
|
description: string;
|
|
2104
2271
|
schema: zod.ZodVoid;
|
|
2105
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
|
+
}];
|
|
2106
2340
|
}, {
|
|
2107
2341
|
method: "put";
|
|
2108
2342
|
path: "/_/files/:id";
|
|
@@ -2318,6 +2552,106 @@ declare function useVaultClient(vaultUrl: string, token: string): _zodios_core.Z
|
|
|
2318
2552
|
}, {
|
|
2319
2553
|
count: number;
|
|
2320
2554
|
}>;
|
|
2555
|
+
}, {
|
|
2556
|
+
method: "get";
|
|
2557
|
+
path: "/_/files/inspect";
|
|
2558
|
+
description: "Inspect files by file ID across all workspaces.";
|
|
2559
|
+
requestFormat: "json";
|
|
2560
|
+
parameters: [{
|
|
2561
|
+
name: "fileId";
|
|
2562
|
+
type: "Query";
|
|
2563
|
+
schema: zod.ZodString;
|
|
2564
|
+
}, {
|
|
2565
|
+
name: "includeDeleted";
|
|
2566
|
+
type: "Query";
|
|
2567
|
+
schema: zod.ZodDefault<zod.ZodOptional<zod.ZodEnum<["true", "false"]>>>;
|
|
2568
|
+
}, {
|
|
2569
|
+
name: "limit";
|
|
2570
|
+
type: "Query";
|
|
2571
|
+
schema: zod.ZodDefault<zod.ZodOptional<zod.ZodNumber>>;
|
|
2572
|
+
}, {
|
|
2573
|
+
name: "offset";
|
|
2574
|
+
type: "Query";
|
|
2575
|
+
schema: zod.ZodDefault<zod.ZodOptional<zod.ZodNumber>>;
|
|
2576
|
+
}];
|
|
2577
|
+
response: zod.ZodObject<{
|
|
2578
|
+
files: zod.ZodArray<zod.ZodObject<{
|
|
2579
|
+
id: zod.ZodString;
|
|
2580
|
+
path: zod.ZodString;
|
|
2581
|
+
workspaceId: zod.ZodString;
|
|
2582
|
+
originalFileName: zod.ZodOptional<zod.ZodUnion<[zod.ZodString, zod.ZodNull]>>;
|
|
2583
|
+
mimeType: zod.ZodOptional<zod.ZodUnion<[zod.ZodString, zod.ZodNull]>>;
|
|
2584
|
+
size: zod.ZodOptional<zod.ZodUnion<[zod.ZodNumber, zod.ZodNull]>>;
|
|
2585
|
+
legacyKey: zod.ZodOptional<zod.ZodUnion<[zod.ZodString, zod.ZodNull]>>;
|
|
2586
|
+
bucketName: zod.ZodOptional<zod.ZodUnion<[zod.ZodString, zod.ZodNull]>>;
|
|
2587
|
+
encryptionKey: zod.ZodOptional<zod.ZodUnion<[zod.ZodString, zod.ZodNull]>>;
|
|
2588
|
+
createdBy: zod.ZodOptional<zod.ZodUnion<[zod.ZodString, zod.ZodNull]>>;
|
|
2589
|
+
createdAt: zod.ZodString;
|
|
2590
|
+
deletedAt: zod.ZodOptional<zod.ZodUnion<[zod.ZodString, zod.ZodNull]>>;
|
|
2591
|
+
}, "strip", zod.ZodTypeAny, {
|
|
2592
|
+
path: string;
|
|
2593
|
+
workspaceId: string;
|
|
2594
|
+
id: string;
|
|
2595
|
+
createdAt: string;
|
|
2596
|
+
deletedAt?: string | null | undefined;
|
|
2597
|
+
originalFileName?: string | null | undefined;
|
|
2598
|
+
size?: number | null | undefined;
|
|
2599
|
+
createdBy?: string | null | undefined;
|
|
2600
|
+
mimeType?: string | null | undefined;
|
|
2601
|
+
legacyKey?: string | null | undefined;
|
|
2602
|
+
bucketName?: string | null | undefined;
|
|
2603
|
+
encryptionKey?: string | null | undefined;
|
|
2604
|
+
}, {
|
|
2605
|
+
path: string;
|
|
2606
|
+
workspaceId: string;
|
|
2607
|
+
id: string;
|
|
2608
|
+
createdAt: string;
|
|
2609
|
+
deletedAt?: string | null | undefined;
|
|
2610
|
+
originalFileName?: string | null | undefined;
|
|
2611
|
+
size?: number | null | undefined;
|
|
2612
|
+
createdBy?: string | null | undefined;
|
|
2613
|
+
mimeType?: string | null | undefined;
|
|
2614
|
+
legacyKey?: string | null | undefined;
|
|
2615
|
+
bucketName?: string | null | undefined;
|
|
2616
|
+
encryptionKey?: string | null | undefined;
|
|
2617
|
+
}>, "many">;
|
|
2618
|
+
count: zod.ZodNumber;
|
|
2619
|
+
pages: zod.ZodNumber;
|
|
2620
|
+
}, "strip", zod.ZodTypeAny, {
|
|
2621
|
+
files: {
|
|
2622
|
+
path: string;
|
|
2623
|
+
workspaceId: string;
|
|
2624
|
+
id: string;
|
|
2625
|
+
createdAt: string;
|
|
2626
|
+
deletedAt?: string | null | undefined;
|
|
2627
|
+
originalFileName?: string | null | undefined;
|
|
2628
|
+
size?: number | null | undefined;
|
|
2629
|
+
createdBy?: string | null | undefined;
|
|
2630
|
+
mimeType?: string | null | undefined;
|
|
2631
|
+
legacyKey?: string | null | undefined;
|
|
2632
|
+
bucketName?: string | null | undefined;
|
|
2633
|
+
encryptionKey?: string | null | undefined;
|
|
2634
|
+
}[];
|
|
2635
|
+
count: number;
|
|
2636
|
+
pages: number;
|
|
2637
|
+
}, {
|
|
2638
|
+
files: {
|
|
2639
|
+
path: string;
|
|
2640
|
+
workspaceId: string;
|
|
2641
|
+
id: string;
|
|
2642
|
+
createdAt: string;
|
|
2643
|
+
deletedAt?: string | null | undefined;
|
|
2644
|
+
originalFileName?: string | null | undefined;
|
|
2645
|
+
size?: number | null | undefined;
|
|
2646
|
+
createdBy?: string | null | undefined;
|
|
2647
|
+
mimeType?: string | null | undefined;
|
|
2648
|
+
legacyKey?: string | null | undefined;
|
|
2649
|
+
bucketName?: string | null | undefined;
|
|
2650
|
+
encryptionKey?: string | null | undefined;
|
|
2651
|
+
}[];
|
|
2652
|
+
count: number;
|
|
2653
|
+
pages: number;
|
|
2654
|
+
}>;
|
|
2321
2655
|
}, {
|
|
2322
2656
|
method: "put";
|
|
2323
2657
|
path: "/_/workspaces/:workspaceId/settings";
|
package/dist/index.mjs
CHANGED
|
@@ -196,6 +196,55 @@ The returned `uploadUrl` 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",
|
|
@@ -323,6 +372,54 @@ The returned `uploadUrl` is valid for 1 hour by default. You can chang
|
|
|
323
372
|
requestFormat: "json",
|
|
324
373
|
response: z.object({ count: z.number() })
|
|
325
374
|
},
|
|
375
|
+
{
|
|
376
|
+
method: "get",
|
|
377
|
+
path: "/_/files/inspect",
|
|
378
|
+
description: `Inspect files by file ID across all workspaces.`,
|
|
379
|
+
requestFormat: "json",
|
|
380
|
+
parameters: [
|
|
381
|
+
{
|
|
382
|
+
name: "fileId",
|
|
383
|
+
type: "Query",
|
|
384
|
+
schema: z.string()
|
|
385
|
+
},
|
|
386
|
+
{
|
|
387
|
+
name: "includeDeleted",
|
|
388
|
+
type: "Query",
|
|
389
|
+
schema: z.enum(["true", "false"]).optional().default("false")
|
|
390
|
+
},
|
|
391
|
+
{
|
|
392
|
+
name: "limit",
|
|
393
|
+
type: "Query",
|
|
394
|
+
schema: z.number().optional().default(100)
|
|
395
|
+
},
|
|
396
|
+
{
|
|
397
|
+
name: "offset",
|
|
398
|
+
type: "Query",
|
|
399
|
+
schema: z.number().optional().default(0)
|
|
400
|
+
}
|
|
401
|
+
],
|
|
402
|
+
response: z.object({
|
|
403
|
+
files: z.array(
|
|
404
|
+
z.object({
|
|
405
|
+
id: z.string(),
|
|
406
|
+
path: z.string(),
|
|
407
|
+
workspaceId: z.string(),
|
|
408
|
+
originalFileName: z.union([z.string(), z.null()]).optional(),
|
|
409
|
+
mimeType: z.union([z.string(), z.null()]).optional(),
|
|
410
|
+
size: z.union([z.number(), z.null()]).optional(),
|
|
411
|
+
legacyKey: z.union([z.string(), z.null()]).optional(),
|
|
412
|
+
bucketName: z.union([z.string(), z.null()]).optional(),
|
|
413
|
+
encryptionKey: z.union([z.string(), z.null()]).optional(),
|
|
414
|
+
createdBy: z.union([z.string(), z.null()]).optional(),
|
|
415
|
+
createdAt: z.string(),
|
|
416
|
+
deletedAt: z.union([z.string(), z.null()]).optional()
|
|
417
|
+
})
|
|
418
|
+
),
|
|
419
|
+
count: z.number(),
|
|
420
|
+
pages: z.number()
|
|
421
|
+
})
|
|
422
|
+
},
|
|
326
423
|
{
|
|
327
424
|
method: "put",
|
|
328
425
|
path: "/_/workspaces/:workspaceId/settings",
|
|
@@ -972,7 +1069,8 @@ function useVaultClient(vaultUrl, token) {
|
|
|
972
1069
|
const api = createApiClient(vaultUrl, {
|
|
973
1070
|
axiosConfig: {
|
|
974
1071
|
headers: {
|
|
975
|
-
Authorization: token
|
|
1072
|
+
Authorization: token,
|
|
1073
|
+
"User-Agent": "vault-http-client:2.3.6"
|
|
976
1074
|
}
|
|
977
1075
|
}
|
|
978
1076
|
});
|