@meistrari/vault-http-client 2.3.3 → 2.3.5
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 +58 -2
- package/dist/index.d.cts +226 -2
- package/dist/index.d.mts +226 -2
- package/dist/index.d.ts +226 -2
- package/dist/index.mjs +58 -2
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -49,7 +49,7 @@ const endpoints = core.makeApi([
|
|
|
49
49
|
{
|
|
50
50
|
name: "includeDeleted",
|
|
51
51
|
type: "Query",
|
|
52
|
-
schema: zod.z.
|
|
52
|
+
schema: zod.z.enum(["true", "false"]).optional().default("false")
|
|
53
53
|
},
|
|
54
54
|
{
|
|
55
55
|
name: "limit",
|
|
@@ -318,6 +318,61 @@ The returned `uploadUrl` is valid for 1 hour by default. You can chang
|
|
|
318
318
|
})
|
|
319
319
|
)
|
|
320
320
|
},
|
|
321
|
+
{
|
|
322
|
+
method: "get",
|
|
323
|
+
path: "/_/files/count",
|
|
324
|
+
description: `Get the total count of active files across all workspaces`,
|
|
325
|
+
requestFormat: "json",
|
|
326
|
+
response: zod.z.object({ count: zod.z.number() })
|
|
327
|
+
},
|
|
328
|
+
{
|
|
329
|
+
method: "get",
|
|
330
|
+
path: "/_/files/inspect",
|
|
331
|
+
description: `Inspect files by file ID across all workspaces.`,
|
|
332
|
+
requestFormat: "json",
|
|
333
|
+
parameters: [
|
|
334
|
+
{
|
|
335
|
+
name: "fileId",
|
|
336
|
+
type: "Query",
|
|
337
|
+
schema: zod.z.string()
|
|
338
|
+
},
|
|
339
|
+
{
|
|
340
|
+
name: "includeDeleted",
|
|
341
|
+
type: "Query",
|
|
342
|
+
schema: zod.z.enum(["true", "false"]).optional().default("false")
|
|
343
|
+
},
|
|
344
|
+
{
|
|
345
|
+
name: "limit",
|
|
346
|
+
type: "Query",
|
|
347
|
+
schema: zod.z.number().optional().default(100)
|
|
348
|
+
},
|
|
349
|
+
{
|
|
350
|
+
name: "offset",
|
|
351
|
+
type: "Query",
|
|
352
|
+
schema: zod.z.number().optional().default(0)
|
|
353
|
+
}
|
|
354
|
+
],
|
|
355
|
+
response: zod.z.object({
|
|
356
|
+
files: zod.z.array(
|
|
357
|
+
zod.z.object({
|
|
358
|
+
id: zod.z.string(),
|
|
359
|
+
path: zod.z.string(),
|
|
360
|
+
workspaceId: zod.z.string(),
|
|
361
|
+
originalFileName: zod.z.union([zod.z.string(), zod.z.null()]).optional(),
|
|
362
|
+
mimeType: zod.z.union([zod.z.string(), zod.z.null()]).optional(),
|
|
363
|
+
size: zod.z.union([zod.z.number(), zod.z.null()]).optional(),
|
|
364
|
+
legacyKey: zod.z.union([zod.z.string(), zod.z.null()]).optional(),
|
|
365
|
+
bucketName: zod.z.union([zod.z.string(), zod.z.null()]).optional(),
|
|
366
|
+
encryptionKey: zod.z.union([zod.z.string(), zod.z.null()]).optional(),
|
|
367
|
+
createdBy: zod.z.union([zod.z.string(), zod.z.null()]).optional(),
|
|
368
|
+
createdAt: zod.z.string(),
|
|
369
|
+
deletedAt: zod.z.union([zod.z.string(), zod.z.null()]).optional()
|
|
370
|
+
})
|
|
371
|
+
),
|
|
372
|
+
count: zod.z.number(),
|
|
373
|
+
pages: zod.z.number()
|
|
374
|
+
})
|
|
375
|
+
},
|
|
321
376
|
{
|
|
322
377
|
method: "put",
|
|
323
378
|
path: "/_/workspaces/:workspaceId/settings",
|
|
@@ -967,7 +1022,8 @@ function useVaultClient(vaultUrl, token) {
|
|
|
967
1022
|
const api = createApiClient(vaultUrl, {
|
|
968
1023
|
axiosConfig: {
|
|
969
1024
|
headers: {
|
|
970
|
-
Authorization: token
|
|
1025
|
+
Authorization: token,
|
|
1026
|
+
"User-Agent": "vault-http-client:2.3.5"
|
|
971
1027
|
}
|
|
972
1028
|
}
|
|
973
1029
|
});
|
package/dist/index.d.cts
CHANGED
|
@@ -15,7 +15,7 @@ declare function createApiClient(baseUrl: string, options?: ZodiosOptions): _zod
|
|
|
15
15
|
}, {
|
|
16
16
|
name: "includeDeleted";
|
|
17
17
|
type: "Query";
|
|
18
|
-
schema: z.ZodDefault<z.ZodOptional<z.
|
|
18
|
+
schema: z.ZodDefault<z.ZodOptional<z.ZodEnum<["true", "false"]>>>;
|
|
19
19
|
}, {
|
|
20
20
|
name: "limit";
|
|
21
21
|
type: "Query";
|
|
@@ -515,6 +515,118 @@ declare function createApiClient(baseUrl: string, options?: ZodiosOptions): _zod
|
|
|
515
515
|
permalinks: number;
|
|
516
516
|
hasCustomSettings: boolean;
|
|
517
517
|
}>, "many">;
|
|
518
|
+
}, {
|
|
519
|
+
method: "get";
|
|
520
|
+
path: "/_/files/count";
|
|
521
|
+
description: "Get the total count of active files across all workspaces";
|
|
522
|
+
requestFormat: "json";
|
|
523
|
+
response: z.ZodObject<{
|
|
524
|
+
count: z.ZodNumber;
|
|
525
|
+
}, "strip", z.ZodTypeAny, {
|
|
526
|
+
count: number;
|
|
527
|
+
}, {
|
|
528
|
+
count: number;
|
|
529
|
+
}>;
|
|
530
|
+
}, {
|
|
531
|
+
method: "get";
|
|
532
|
+
path: "/_/files/inspect";
|
|
533
|
+
description: "Inspect files by file ID across all workspaces.";
|
|
534
|
+
requestFormat: "json";
|
|
535
|
+
parameters: [{
|
|
536
|
+
name: "fileId";
|
|
537
|
+
type: "Query";
|
|
538
|
+
schema: z.ZodString;
|
|
539
|
+
}, {
|
|
540
|
+
name: "includeDeleted";
|
|
541
|
+
type: "Query";
|
|
542
|
+
schema: z.ZodDefault<z.ZodOptional<z.ZodEnum<["true", "false"]>>>;
|
|
543
|
+
}, {
|
|
544
|
+
name: "limit";
|
|
545
|
+
type: "Query";
|
|
546
|
+
schema: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
547
|
+
}, {
|
|
548
|
+
name: "offset";
|
|
549
|
+
type: "Query";
|
|
550
|
+
schema: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
551
|
+
}];
|
|
552
|
+
response: z.ZodObject<{
|
|
553
|
+
files: z.ZodArray<z.ZodObject<{
|
|
554
|
+
id: z.ZodString;
|
|
555
|
+
path: z.ZodString;
|
|
556
|
+
workspaceId: z.ZodString;
|
|
557
|
+
originalFileName: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
|
|
558
|
+
mimeType: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
|
|
559
|
+
size: z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodNull]>>;
|
|
560
|
+
legacyKey: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
|
|
561
|
+
bucketName: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
|
|
562
|
+
encryptionKey: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
|
|
563
|
+
createdBy: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
|
|
564
|
+
createdAt: z.ZodString;
|
|
565
|
+
deletedAt: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
|
|
566
|
+
}, "strip", z.ZodTypeAny, {
|
|
567
|
+
path: string;
|
|
568
|
+
workspaceId: string;
|
|
569
|
+
id: string;
|
|
570
|
+
createdAt: string;
|
|
571
|
+
bucketName?: string | null | undefined;
|
|
572
|
+
size?: number | null | undefined;
|
|
573
|
+
mimeType?: string | null | undefined;
|
|
574
|
+
createdBy?: string | null | undefined;
|
|
575
|
+
deletedAt?: string | null | undefined;
|
|
576
|
+
originalFileName?: string | null | undefined;
|
|
577
|
+
legacyKey?: string | null | undefined;
|
|
578
|
+
encryptionKey?: string | null | undefined;
|
|
579
|
+
}, {
|
|
580
|
+
path: string;
|
|
581
|
+
workspaceId: string;
|
|
582
|
+
id: string;
|
|
583
|
+
createdAt: string;
|
|
584
|
+
bucketName?: string | null | undefined;
|
|
585
|
+
size?: number | null | undefined;
|
|
586
|
+
mimeType?: string | null | undefined;
|
|
587
|
+
createdBy?: string | null | undefined;
|
|
588
|
+
deletedAt?: string | null | undefined;
|
|
589
|
+
originalFileName?: string | null | undefined;
|
|
590
|
+
legacyKey?: string | null | undefined;
|
|
591
|
+
encryptionKey?: string | null | undefined;
|
|
592
|
+
}>, "many">;
|
|
593
|
+
count: z.ZodNumber;
|
|
594
|
+
pages: z.ZodNumber;
|
|
595
|
+
}, "strip", z.ZodTypeAny, {
|
|
596
|
+
files: {
|
|
597
|
+
path: string;
|
|
598
|
+
workspaceId: string;
|
|
599
|
+
id: string;
|
|
600
|
+
createdAt: string;
|
|
601
|
+
bucketName?: string | null | undefined;
|
|
602
|
+
size?: number | null | undefined;
|
|
603
|
+
mimeType?: string | null | undefined;
|
|
604
|
+
createdBy?: string | null | undefined;
|
|
605
|
+
deletedAt?: string | null | undefined;
|
|
606
|
+
originalFileName?: string | null | undefined;
|
|
607
|
+
legacyKey?: string | null | undefined;
|
|
608
|
+
encryptionKey?: string | null | undefined;
|
|
609
|
+
}[];
|
|
610
|
+
count: number;
|
|
611
|
+
pages: number;
|
|
612
|
+
}, {
|
|
613
|
+
files: {
|
|
614
|
+
path: string;
|
|
615
|
+
workspaceId: string;
|
|
616
|
+
id: string;
|
|
617
|
+
createdAt: string;
|
|
618
|
+
bucketName?: string | null | undefined;
|
|
619
|
+
size?: number | null | undefined;
|
|
620
|
+
mimeType?: string | null | undefined;
|
|
621
|
+
createdBy?: string | null | undefined;
|
|
622
|
+
deletedAt?: string | null | undefined;
|
|
623
|
+
originalFileName?: string | null | undefined;
|
|
624
|
+
legacyKey?: string | null | undefined;
|
|
625
|
+
encryptionKey?: string | null | undefined;
|
|
626
|
+
}[];
|
|
627
|
+
count: number;
|
|
628
|
+
pages: number;
|
|
629
|
+
}>;
|
|
518
630
|
}, {
|
|
519
631
|
method: "put";
|
|
520
632
|
path: "/_/workspaces/:workspaceId/settings";
|
|
@@ -1794,7 +1906,7 @@ declare function useVaultClient(vaultUrl: string, token: string): _zodios_core.Z
|
|
|
1794
1906
|
}, {
|
|
1795
1907
|
name: "includeDeleted";
|
|
1796
1908
|
type: "Query";
|
|
1797
|
-
schema: zod.ZodDefault<zod.ZodOptional<zod.
|
|
1909
|
+
schema: zod.ZodDefault<zod.ZodOptional<zod.ZodEnum<["true", "false"]>>>;
|
|
1798
1910
|
}, {
|
|
1799
1911
|
name: "limit";
|
|
1800
1912
|
type: "Query";
|
|
@@ -2294,6 +2406,118 @@ declare function useVaultClient(vaultUrl: string, token: string): _zodios_core.Z
|
|
|
2294
2406
|
permalinks: number;
|
|
2295
2407
|
hasCustomSettings: boolean;
|
|
2296
2408
|
}>, "many">;
|
|
2409
|
+
}, {
|
|
2410
|
+
method: "get";
|
|
2411
|
+
path: "/_/files/count";
|
|
2412
|
+
description: "Get the total count of active files across all workspaces";
|
|
2413
|
+
requestFormat: "json";
|
|
2414
|
+
response: zod.ZodObject<{
|
|
2415
|
+
count: zod.ZodNumber;
|
|
2416
|
+
}, "strip", zod.ZodTypeAny, {
|
|
2417
|
+
count: number;
|
|
2418
|
+
}, {
|
|
2419
|
+
count: number;
|
|
2420
|
+
}>;
|
|
2421
|
+
}, {
|
|
2422
|
+
method: "get";
|
|
2423
|
+
path: "/_/files/inspect";
|
|
2424
|
+
description: "Inspect files by file ID across all workspaces.";
|
|
2425
|
+
requestFormat: "json";
|
|
2426
|
+
parameters: [{
|
|
2427
|
+
name: "fileId";
|
|
2428
|
+
type: "Query";
|
|
2429
|
+
schema: zod.ZodString;
|
|
2430
|
+
}, {
|
|
2431
|
+
name: "includeDeleted";
|
|
2432
|
+
type: "Query";
|
|
2433
|
+
schema: zod.ZodDefault<zod.ZodOptional<zod.ZodEnum<["true", "false"]>>>;
|
|
2434
|
+
}, {
|
|
2435
|
+
name: "limit";
|
|
2436
|
+
type: "Query";
|
|
2437
|
+
schema: zod.ZodDefault<zod.ZodOptional<zod.ZodNumber>>;
|
|
2438
|
+
}, {
|
|
2439
|
+
name: "offset";
|
|
2440
|
+
type: "Query";
|
|
2441
|
+
schema: zod.ZodDefault<zod.ZodOptional<zod.ZodNumber>>;
|
|
2442
|
+
}];
|
|
2443
|
+
response: zod.ZodObject<{
|
|
2444
|
+
files: zod.ZodArray<zod.ZodObject<{
|
|
2445
|
+
id: zod.ZodString;
|
|
2446
|
+
path: zod.ZodString;
|
|
2447
|
+
workspaceId: zod.ZodString;
|
|
2448
|
+
originalFileName: zod.ZodOptional<zod.ZodUnion<[zod.ZodString, zod.ZodNull]>>;
|
|
2449
|
+
mimeType: zod.ZodOptional<zod.ZodUnion<[zod.ZodString, zod.ZodNull]>>;
|
|
2450
|
+
size: zod.ZodOptional<zod.ZodUnion<[zod.ZodNumber, zod.ZodNull]>>;
|
|
2451
|
+
legacyKey: zod.ZodOptional<zod.ZodUnion<[zod.ZodString, zod.ZodNull]>>;
|
|
2452
|
+
bucketName: zod.ZodOptional<zod.ZodUnion<[zod.ZodString, zod.ZodNull]>>;
|
|
2453
|
+
encryptionKey: zod.ZodOptional<zod.ZodUnion<[zod.ZodString, zod.ZodNull]>>;
|
|
2454
|
+
createdBy: zod.ZodOptional<zod.ZodUnion<[zod.ZodString, zod.ZodNull]>>;
|
|
2455
|
+
createdAt: zod.ZodString;
|
|
2456
|
+
deletedAt: zod.ZodOptional<zod.ZodUnion<[zod.ZodString, zod.ZodNull]>>;
|
|
2457
|
+
}, "strip", zod.ZodTypeAny, {
|
|
2458
|
+
path: string;
|
|
2459
|
+
workspaceId: string;
|
|
2460
|
+
id: string;
|
|
2461
|
+
createdAt: string;
|
|
2462
|
+
deletedAt?: string | null | undefined;
|
|
2463
|
+
originalFileName?: string | null | undefined;
|
|
2464
|
+
size?: number | null | undefined;
|
|
2465
|
+
createdBy?: string | null | undefined;
|
|
2466
|
+
mimeType?: string | null | undefined;
|
|
2467
|
+
legacyKey?: string | null | undefined;
|
|
2468
|
+
bucketName?: string | null | undefined;
|
|
2469
|
+
encryptionKey?: string | null | undefined;
|
|
2470
|
+
}, {
|
|
2471
|
+
path: string;
|
|
2472
|
+
workspaceId: string;
|
|
2473
|
+
id: string;
|
|
2474
|
+
createdAt: string;
|
|
2475
|
+
deletedAt?: string | null | undefined;
|
|
2476
|
+
originalFileName?: string | null | undefined;
|
|
2477
|
+
size?: number | null | undefined;
|
|
2478
|
+
createdBy?: string | null | undefined;
|
|
2479
|
+
mimeType?: string | null | undefined;
|
|
2480
|
+
legacyKey?: string | null | undefined;
|
|
2481
|
+
bucketName?: string | null | undefined;
|
|
2482
|
+
encryptionKey?: string | null | undefined;
|
|
2483
|
+
}>, "many">;
|
|
2484
|
+
count: zod.ZodNumber;
|
|
2485
|
+
pages: zod.ZodNumber;
|
|
2486
|
+
}, "strip", zod.ZodTypeAny, {
|
|
2487
|
+
files: {
|
|
2488
|
+
path: string;
|
|
2489
|
+
workspaceId: string;
|
|
2490
|
+
id: string;
|
|
2491
|
+
createdAt: string;
|
|
2492
|
+
deletedAt?: string | null | undefined;
|
|
2493
|
+
originalFileName?: string | null | undefined;
|
|
2494
|
+
size?: number | null | undefined;
|
|
2495
|
+
createdBy?: string | null | undefined;
|
|
2496
|
+
mimeType?: string | null | undefined;
|
|
2497
|
+
legacyKey?: string | null | undefined;
|
|
2498
|
+
bucketName?: string | null | undefined;
|
|
2499
|
+
encryptionKey?: string | null | undefined;
|
|
2500
|
+
}[];
|
|
2501
|
+
count: number;
|
|
2502
|
+
pages: number;
|
|
2503
|
+
}, {
|
|
2504
|
+
files: {
|
|
2505
|
+
path: string;
|
|
2506
|
+
workspaceId: string;
|
|
2507
|
+
id: string;
|
|
2508
|
+
createdAt: string;
|
|
2509
|
+
deletedAt?: string | null | undefined;
|
|
2510
|
+
originalFileName?: string | null | undefined;
|
|
2511
|
+
size?: number | null | undefined;
|
|
2512
|
+
createdBy?: string | null | undefined;
|
|
2513
|
+
mimeType?: string | null | undefined;
|
|
2514
|
+
legacyKey?: string | null | undefined;
|
|
2515
|
+
bucketName?: string | null | undefined;
|
|
2516
|
+
encryptionKey?: string | null | undefined;
|
|
2517
|
+
}[];
|
|
2518
|
+
count: number;
|
|
2519
|
+
pages: number;
|
|
2520
|
+
}>;
|
|
2297
2521
|
}, {
|
|
2298
2522
|
method: "put";
|
|
2299
2523
|
path: "/_/workspaces/:workspaceId/settings";
|
package/dist/index.d.mts
CHANGED
|
@@ -15,7 +15,7 @@ declare function createApiClient(baseUrl: string, options?: ZodiosOptions): _zod
|
|
|
15
15
|
}, {
|
|
16
16
|
name: "includeDeleted";
|
|
17
17
|
type: "Query";
|
|
18
|
-
schema: z.ZodDefault<z.ZodOptional<z.
|
|
18
|
+
schema: z.ZodDefault<z.ZodOptional<z.ZodEnum<["true", "false"]>>>;
|
|
19
19
|
}, {
|
|
20
20
|
name: "limit";
|
|
21
21
|
type: "Query";
|
|
@@ -515,6 +515,118 @@ declare function createApiClient(baseUrl: string, options?: ZodiosOptions): _zod
|
|
|
515
515
|
permalinks: number;
|
|
516
516
|
hasCustomSettings: boolean;
|
|
517
517
|
}>, "many">;
|
|
518
|
+
}, {
|
|
519
|
+
method: "get";
|
|
520
|
+
path: "/_/files/count";
|
|
521
|
+
description: "Get the total count of active files across all workspaces";
|
|
522
|
+
requestFormat: "json";
|
|
523
|
+
response: z.ZodObject<{
|
|
524
|
+
count: z.ZodNumber;
|
|
525
|
+
}, "strip", z.ZodTypeAny, {
|
|
526
|
+
count: number;
|
|
527
|
+
}, {
|
|
528
|
+
count: number;
|
|
529
|
+
}>;
|
|
530
|
+
}, {
|
|
531
|
+
method: "get";
|
|
532
|
+
path: "/_/files/inspect";
|
|
533
|
+
description: "Inspect files by file ID across all workspaces.";
|
|
534
|
+
requestFormat: "json";
|
|
535
|
+
parameters: [{
|
|
536
|
+
name: "fileId";
|
|
537
|
+
type: "Query";
|
|
538
|
+
schema: z.ZodString;
|
|
539
|
+
}, {
|
|
540
|
+
name: "includeDeleted";
|
|
541
|
+
type: "Query";
|
|
542
|
+
schema: z.ZodDefault<z.ZodOptional<z.ZodEnum<["true", "false"]>>>;
|
|
543
|
+
}, {
|
|
544
|
+
name: "limit";
|
|
545
|
+
type: "Query";
|
|
546
|
+
schema: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
547
|
+
}, {
|
|
548
|
+
name: "offset";
|
|
549
|
+
type: "Query";
|
|
550
|
+
schema: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
551
|
+
}];
|
|
552
|
+
response: z.ZodObject<{
|
|
553
|
+
files: z.ZodArray<z.ZodObject<{
|
|
554
|
+
id: z.ZodString;
|
|
555
|
+
path: z.ZodString;
|
|
556
|
+
workspaceId: z.ZodString;
|
|
557
|
+
originalFileName: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
|
|
558
|
+
mimeType: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
|
|
559
|
+
size: z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodNull]>>;
|
|
560
|
+
legacyKey: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
|
|
561
|
+
bucketName: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
|
|
562
|
+
encryptionKey: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
|
|
563
|
+
createdBy: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
|
|
564
|
+
createdAt: z.ZodString;
|
|
565
|
+
deletedAt: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
|
|
566
|
+
}, "strip", z.ZodTypeAny, {
|
|
567
|
+
path: string;
|
|
568
|
+
workspaceId: string;
|
|
569
|
+
id: string;
|
|
570
|
+
createdAt: string;
|
|
571
|
+
bucketName?: string | null | undefined;
|
|
572
|
+
size?: number | null | undefined;
|
|
573
|
+
mimeType?: string | null | undefined;
|
|
574
|
+
createdBy?: string | null | undefined;
|
|
575
|
+
deletedAt?: string | null | undefined;
|
|
576
|
+
originalFileName?: string | null | undefined;
|
|
577
|
+
legacyKey?: string | null | undefined;
|
|
578
|
+
encryptionKey?: string | null | undefined;
|
|
579
|
+
}, {
|
|
580
|
+
path: string;
|
|
581
|
+
workspaceId: string;
|
|
582
|
+
id: string;
|
|
583
|
+
createdAt: string;
|
|
584
|
+
bucketName?: string | null | undefined;
|
|
585
|
+
size?: number | null | undefined;
|
|
586
|
+
mimeType?: string | null | undefined;
|
|
587
|
+
createdBy?: string | null | undefined;
|
|
588
|
+
deletedAt?: string | null | undefined;
|
|
589
|
+
originalFileName?: string | null | undefined;
|
|
590
|
+
legacyKey?: string | null | undefined;
|
|
591
|
+
encryptionKey?: string | null | undefined;
|
|
592
|
+
}>, "many">;
|
|
593
|
+
count: z.ZodNumber;
|
|
594
|
+
pages: z.ZodNumber;
|
|
595
|
+
}, "strip", z.ZodTypeAny, {
|
|
596
|
+
files: {
|
|
597
|
+
path: string;
|
|
598
|
+
workspaceId: string;
|
|
599
|
+
id: string;
|
|
600
|
+
createdAt: string;
|
|
601
|
+
bucketName?: string | null | undefined;
|
|
602
|
+
size?: number | null | undefined;
|
|
603
|
+
mimeType?: string | null | undefined;
|
|
604
|
+
createdBy?: string | null | undefined;
|
|
605
|
+
deletedAt?: string | null | undefined;
|
|
606
|
+
originalFileName?: string | null | undefined;
|
|
607
|
+
legacyKey?: string | null | undefined;
|
|
608
|
+
encryptionKey?: string | null | undefined;
|
|
609
|
+
}[];
|
|
610
|
+
count: number;
|
|
611
|
+
pages: number;
|
|
612
|
+
}, {
|
|
613
|
+
files: {
|
|
614
|
+
path: string;
|
|
615
|
+
workspaceId: string;
|
|
616
|
+
id: string;
|
|
617
|
+
createdAt: string;
|
|
618
|
+
bucketName?: string | null | undefined;
|
|
619
|
+
size?: number | null | undefined;
|
|
620
|
+
mimeType?: string | null | undefined;
|
|
621
|
+
createdBy?: string | null | undefined;
|
|
622
|
+
deletedAt?: string | null | undefined;
|
|
623
|
+
originalFileName?: string | null | undefined;
|
|
624
|
+
legacyKey?: string | null | undefined;
|
|
625
|
+
encryptionKey?: string | null | undefined;
|
|
626
|
+
}[];
|
|
627
|
+
count: number;
|
|
628
|
+
pages: number;
|
|
629
|
+
}>;
|
|
518
630
|
}, {
|
|
519
631
|
method: "put";
|
|
520
632
|
path: "/_/workspaces/:workspaceId/settings";
|
|
@@ -1794,7 +1906,7 @@ declare function useVaultClient(vaultUrl: string, token: string): _zodios_core.Z
|
|
|
1794
1906
|
}, {
|
|
1795
1907
|
name: "includeDeleted";
|
|
1796
1908
|
type: "Query";
|
|
1797
|
-
schema: zod.ZodDefault<zod.ZodOptional<zod.
|
|
1909
|
+
schema: zod.ZodDefault<zod.ZodOptional<zod.ZodEnum<["true", "false"]>>>;
|
|
1798
1910
|
}, {
|
|
1799
1911
|
name: "limit";
|
|
1800
1912
|
type: "Query";
|
|
@@ -2294,6 +2406,118 @@ declare function useVaultClient(vaultUrl: string, token: string): _zodios_core.Z
|
|
|
2294
2406
|
permalinks: number;
|
|
2295
2407
|
hasCustomSettings: boolean;
|
|
2296
2408
|
}>, "many">;
|
|
2409
|
+
}, {
|
|
2410
|
+
method: "get";
|
|
2411
|
+
path: "/_/files/count";
|
|
2412
|
+
description: "Get the total count of active files across all workspaces";
|
|
2413
|
+
requestFormat: "json";
|
|
2414
|
+
response: zod.ZodObject<{
|
|
2415
|
+
count: zod.ZodNumber;
|
|
2416
|
+
}, "strip", zod.ZodTypeAny, {
|
|
2417
|
+
count: number;
|
|
2418
|
+
}, {
|
|
2419
|
+
count: number;
|
|
2420
|
+
}>;
|
|
2421
|
+
}, {
|
|
2422
|
+
method: "get";
|
|
2423
|
+
path: "/_/files/inspect";
|
|
2424
|
+
description: "Inspect files by file ID across all workspaces.";
|
|
2425
|
+
requestFormat: "json";
|
|
2426
|
+
parameters: [{
|
|
2427
|
+
name: "fileId";
|
|
2428
|
+
type: "Query";
|
|
2429
|
+
schema: zod.ZodString;
|
|
2430
|
+
}, {
|
|
2431
|
+
name: "includeDeleted";
|
|
2432
|
+
type: "Query";
|
|
2433
|
+
schema: zod.ZodDefault<zod.ZodOptional<zod.ZodEnum<["true", "false"]>>>;
|
|
2434
|
+
}, {
|
|
2435
|
+
name: "limit";
|
|
2436
|
+
type: "Query";
|
|
2437
|
+
schema: zod.ZodDefault<zod.ZodOptional<zod.ZodNumber>>;
|
|
2438
|
+
}, {
|
|
2439
|
+
name: "offset";
|
|
2440
|
+
type: "Query";
|
|
2441
|
+
schema: zod.ZodDefault<zod.ZodOptional<zod.ZodNumber>>;
|
|
2442
|
+
}];
|
|
2443
|
+
response: zod.ZodObject<{
|
|
2444
|
+
files: zod.ZodArray<zod.ZodObject<{
|
|
2445
|
+
id: zod.ZodString;
|
|
2446
|
+
path: zod.ZodString;
|
|
2447
|
+
workspaceId: zod.ZodString;
|
|
2448
|
+
originalFileName: zod.ZodOptional<zod.ZodUnion<[zod.ZodString, zod.ZodNull]>>;
|
|
2449
|
+
mimeType: zod.ZodOptional<zod.ZodUnion<[zod.ZodString, zod.ZodNull]>>;
|
|
2450
|
+
size: zod.ZodOptional<zod.ZodUnion<[zod.ZodNumber, zod.ZodNull]>>;
|
|
2451
|
+
legacyKey: zod.ZodOptional<zod.ZodUnion<[zod.ZodString, zod.ZodNull]>>;
|
|
2452
|
+
bucketName: zod.ZodOptional<zod.ZodUnion<[zod.ZodString, zod.ZodNull]>>;
|
|
2453
|
+
encryptionKey: zod.ZodOptional<zod.ZodUnion<[zod.ZodString, zod.ZodNull]>>;
|
|
2454
|
+
createdBy: zod.ZodOptional<zod.ZodUnion<[zod.ZodString, zod.ZodNull]>>;
|
|
2455
|
+
createdAt: zod.ZodString;
|
|
2456
|
+
deletedAt: zod.ZodOptional<zod.ZodUnion<[zod.ZodString, zod.ZodNull]>>;
|
|
2457
|
+
}, "strip", zod.ZodTypeAny, {
|
|
2458
|
+
path: string;
|
|
2459
|
+
workspaceId: string;
|
|
2460
|
+
id: string;
|
|
2461
|
+
createdAt: string;
|
|
2462
|
+
deletedAt?: string | null | undefined;
|
|
2463
|
+
originalFileName?: string | null | undefined;
|
|
2464
|
+
size?: number | null | undefined;
|
|
2465
|
+
createdBy?: string | null | undefined;
|
|
2466
|
+
mimeType?: string | null | undefined;
|
|
2467
|
+
legacyKey?: string | null | undefined;
|
|
2468
|
+
bucketName?: string | null | undefined;
|
|
2469
|
+
encryptionKey?: string | null | undefined;
|
|
2470
|
+
}, {
|
|
2471
|
+
path: string;
|
|
2472
|
+
workspaceId: string;
|
|
2473
|
+
id: string;
|
|
2474
|
+
createdAt: string;
|
|
2475
|
+
deletedAt?: string | null | undefined;
|
|
2476
|
+
originalFileName?: string | null | undefined;
|
|
2477
|
+
size?: number | null | undefined;
|
|
2478
|
+
createdBy?: string | null | undefined;
|
|
2479
|
+
mimeType?: string | null | undefined;
|
|
2480
|
+
legacyKey?: string | null | undefined;
|
|
2481
|
+
bucketName?: string | null | undefined;
|
|
2482
|
+
encryptionKey?: string | null | undefined;
|
|
2483
|
+
}>, "many">;
|
|
2484
|
+
count: zod.ZodNumber;
|
|
2485
|
+
pages: zod.ZodNumber;
|
|
2486
|
+
}, "strip", zod.ZodTypeAny, {
|
|
2487
|
+
files: {
|
|
2488
|
+
path: string;
|
|
2489
|
+
workspaceId: string;
|
|
2490
|
+
id: string;
|
|
2491
|
+
createdAt: string;
|
|
2492
|
+
deletedAt?: string | null | undefined;
|
|
2493
|
+
originalFileName?: string | null | undefined;
|
|
2494
|
+
size?: number | null | undefined;
|
|
2495
|
+
createdBy?: string | null | undefined;
|
|
2496
|
+
mimeType?: string | null | undefined;
|
|
2497
|
+
legacyKey?: string | null | undefined;
|
|
2498
|
+
bucketName?: string | null | undefined;
|
|
2499
|
+
encryptionKey?: string | null | undefined;
|
|
2500
|
+
}[];
|
|
2501
|
+
count: number;
|
|
2502
|
+
pages: number;
|
|
2503
|
+
}, {
|
|
2504
|
+
files: {
|
|
2505
|
+
path: string;
|
|
2506
|
+
workspaceId: string;
|
|
2507
|
+
id: string;
|
|
2508
|
+
createdAt: string;
|
|
2509
|
+
deletedAt?: string | null | undefined;
|
|
2510
|
+
originalFileName?: string | null | undefined;
|
|
2511
|
+
size?: number | null | undefined;
|
|
2512
|
+
createdBy?: string | null | undefined;
|
|
2513
|
+
mimeType?: string | null | undefined;
|
|
2514
|
+
legacyKey?: string | null | undefined;
|
|
2515
|
+
bucketName?: string | null | undefined;
|
|
2516
|
+
encryptionKey?: string | null | undefined;
|
|
2517
|
+
}[];
|
|
2518
|
+
count: number;
|
|
2519
|
+
pages: number;
|
|
2520
|
+
}>;
|
|
2297
2521
|
}, {
|
|
2298
2522
|
method: "put";
|
|
2299
2523
|
path: "/_/workspaces/:workspaceId/settings";
|
package/dist/index.d.ts
CHANGED
|
@@ -15,7 +15,7 @@ declare function createApiClient(baseUrl: string, options?: ZodiosOptions): _zod
|
|
|
15
15
|
}, {
|
|
16
16
|
name: "includeDeleted";
|
|
17
17
|
type: "Query";
|
|
18
|
-
schema: z.ZodDefault<z.ZodOptional<z.
|
|
18
|
+
schema: z.ZodDefault<z.ZodOptional<z.ZodEnum<["true", "false"]>>>;
|
|
19
19
|
}, {
|
|
20
20
|
name: "limit";
|
|
21
21
|
type: "Query";
|
|
@@ -515,6 +515,118 @@ declare function createApiClient(baseUrl: string, options?: ZodiosOptions): _zod
|
|
|
515
515
|
permalinks: number;
|
|
516
516
|
hasCustomSettings: boolean;
|
|
517
517
|
}>, "many">;
|
|
518
|
+
}, {
|
|
519
|
+
method: "get";
|
|
520
|
+
path: "/_/files/count";
|
|
521
|
+
description: "Get the total count of active files across all workspaces";
|
|
522
|
+
requestFormat: "json";
|
|
523
|
+
response: z.ZodObject<{
|
|
524
|
+
count: z.ZodNumber;
|
|
525
|
+
}, "strip", z.ZodTypeAny, {
|
|
526
|
+
count: number;
|
|
527
|
+
}, {
|
|
528
|
+
count: number;
|
|
529
|
+
}>;
|
|
530
|
+
}, {
|
|
531
|
+
method: "get";
|
|
532
|
+
path: "/_/files/inspect";
|
|
533
|
+
description: "Inspect files by file ID across all workspaces.";
|
|
534
|
+
requestFormat: "json";
|
|
535
|
+
parameters: [{
|
|
536
|
+
name: "fileId";
|
|
537
|
+
type: "Query";
|
|
538
|
+
schema: z.ZodString;
|
|
539
|
+
}, {
|
|
540
|
+
name: "includeDeleted";
|
|
541
|
+
type: "Query";
|
|
542
|
+
schema: z.ZodDefault<z.ZodOptional<z.ZodEnum<["true", "false"]>>>;
|
|
543
|
+
}, {
|
|
544
|
+
name: "limit";
|
|
545
|
+
type: "Query";
|
|
546
|
+
schema: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
547
|
+
}, {
|
|
548
|
+
name: "offset";
|
|
549
|
+
type: "Query";
|
|
550
|
+
schema: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
551
|
+
}];
|
|
552
|
+
response: z.ZodObject<{
|
|
553
|
+
files: z.ZodArray<z.ZodObject<{
|
|
554
|
+
id: z.ZodString;
|
|
555
|
+
path: z.ZodString;
|
|
556
|
+
workspaceId: z.ZodString;
|
|
557
|
+
originalFileName: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
|
|
558
|
+
mimeType: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
|
|
559
|
+
size: z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodNull]>>;
|
|
560
|
+
legacyKey: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
|
|
561
|
+
bucketName: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
|
|
562
|
+
encryptionKey: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
|
|
563
|
+
createdBy: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
|
|
564
|
+
createdAt: z.ZodString;
|
|
565
|
+
deletedAt: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
|
|
566
|
+
}, "strip", z.ZodTypeAny, {
|
|
567
|
+
path: string;
|
|
568
|
+
workspaceId: string;
|
|
569
|
+
id: string;
|
|
570
|
+
createdAt: string;
|
|
571
|
+
bucketName?: string | null | undefined;
|
|
572
|
+
size?: number | null | undefined;
|
|
573
|
+
mimeType?: string | null | undefined;
|
|
574
|
+
createdBy?: string | null | undefined;
|
|
575
|
+
deletedAt?: string | null | undefined;
|
|
576
|
+
originalFileName?: string | null | undefined;
|
|
577
|
+
legacyKey?: string | null | undefined;
|
|
578
|
+
encryptionKey?: string | null | undefined;
|
|
579
|
+
}, {
|
|
580
|
+
path: string;
|
|
581
|
+
workspaceId: string;
|
|
582
|
+
id: string;
|
|
583
|
+
createdAt: string;
|
|
584
|
+
bucketName?: string | null | undefined;
|
|
585
|
+
size?: number | null | undefined;
|
|
586
|
+
mimeType?: string | null | undefined;
|
|
587
|
+
createdBy?: string | null | undefined;
|
|
588
|
+
deletedAt?: string | null | undefined;
|
|
589
|
+
originalFileName?: string | null | undefined;
|
|
590
|
+
legacyKey?: string | null | undefined;
|
|
591
|
+
encryptionKey?: string | null | undefined;
|
|
592
|
+
}>, "many">;
|
|
593
|
+
count: z.ZodNumber;
|
|
594
|
+
pages: z.ZodNumber;
|
|
595
|
+
}, "strip", z.ZodTypeAny, {
|
|
596
|
+
files: {
|
|
597
|
+
path: string;
|
|
598
|
+
workspaceId: string;
|
|
599
|
+
id: string;
|
|
600
|
+
createdAt: string;
|
|
601
|
+
bucketName?: string | null | undefined;
|
|
602
|
+
size?: number | null | undefined;
|
|
603
|
+
mimeType?: string | null | undefined;
|
|
604
|
+
createdBy?: string | null | undefined;
|
|
605
|
+
deletedAt?: string | null | undefined;
|
|
606
|
+
originalFileName?: string | null | undefined;
|
|
607
|
+
legacyKey?: string | null | undefined;
|
|
608
|
+
encryptionKey?: string | null | undefined;
|
|
609
|
+
}[];
|
|
610
|
+
count: number;
|
|
611
|
+
pages: number;
|
|
612
|
+
}, {
|
|
613
|
+
files: {
|
|
614
|
+
path: string;
|
|
615
|
+
workspaceId: string;
|
|
616
|
+
id: string;
|
|
617
|
+
createdAt: string;
|
|
618
|
+
bucketName?: string | null | undefined;
|
|
619
|
+
size?: number | null | undefined;
|
|
620
|
+
mimeType?: string | null | undefined;
|
|
621
|
+
createdBy?: string | null | undefined;
|
|
622
|
+
deletedAt?: string | null | undefined;
|
|
623
|
+
originalFileName?: string | null | undefined;
|
|
624
|
+
legacyKey?: string | null | undefined;
|
|
625
|
+
encryptionKey?: string | null | undefined;
|
|
626
|
+
}[];
|
|
627
|
+
count: number;
|
|
628
|
+
pages: number;
|
|
629
|
+
}>;
|
|
518
630
|
}, {
|
|
519
631
|
method: "put";
|
|
520
632
|
path: "/_/workspaces/:workspaceId/settings";
|
|
@@ -1794,7 +1906,7 @@ declare function useVaultClient(vaultUrl: string, token: string): _zodios_core.Z
|
|
|
1794
1906
|
}, {
|
|
1795
1907
|
name: "includeDeleted";
|
|
1796
1908
|
type: "Query";
|
|
1797
|
-
schema: zod.ZodDefault<zod.ZodOptional<zod.
|
|
1909
|
+
schema: zod.ZodDefault<zod.ZodOptional<zod.ZodEnum<["true", "false"]>>>;
|
|
1798
1910
|
}, {
|
|
1799
1911
|
name: "limit";
|
|
1800
1912
|
type: "Query";
|
|
@@ -2294,6 +2406,118 @@ declare function useVaultClient(vaultUrl: string, token: string): _zodios_core.Z
|
|
|
2294
2406
|
permalinks: number;
|
|
2295
2407
|
hasCustomSettings: boolean;
|
|
2296
2408
|
}>, "many">;
|
|
2409
|
+
}, {
|
|
2410
|
+
method: "get";
|
|
2411
|
+
path: "/_/files/count";
|
|
2412
|
+
description: "Get the total count of active files across all workspaces";
|
|
2413
|
+
requestFormat: "json";
|
|
2414
|
+
response: zod.ZodObject<{
|
|
2415
|
+
count: zod.ZodNumber;
|
|
2416
|
+
}, "strip", zod.ZodTypeAny, {
|
|
2417
|
+
count: number;
|
|
2418
|
+
}, {
|
|
2419
|
+
count: number;
|
|
2420
|
+
}>;
|
|
2421
|
+
}, {
|
|
2422
|
+
method: "get";
|
|
2423
|
+
path: "/_/files/inspect";
|
|
2424
|
+
description: "Inspect files by file ID across all workspaces.";
|
|
2425
|
+
requestFormat: "json";
|
|
2426
|
+
parameters: [{
|
|
2427
|
+
name: "fileId";
|
|
2428
|
+
type: "Query";
|
|
2429
|
+
schema: zod.ZodString;
|
|
2430
|
+
}, {
|
|
2431
|
+
name: "includeDeleted";
|
|
2432
|
+
type: "Query";
|
|
2433
|
+
schema: zod.ZodDefault<zod.ZodOptional<zod.ZodEnum<["true", "false"]>>>;
|
|
2434
|
+
}, {
|
|
2435
|
+
name: "limit";
|
|
2436
|
+
type: "Query";
|
|
2437
|
+
schema: zod.ZodDefault<zod.ZodOptional<zod.ZodNumber>>;
|
|
2438
|
+
}, {
|
|
2439
|
+
name: "offset";
|
|
2440
|
+
type: "Query";
|
|
2441
|
+
schema: zod.ZodDefault<zod.ZodOptional<zod.ZodNumber>>;
|
|
2442
|
+
}];
|
|
2443
|
+
response: zod.ZodObject<{
|
|
2444
|
+
files: zod.ZodArray<zod.ZodObject<{
|
|
2445
|
+
id: zod.ZodString;
|
|
2446
|
+
path: zod.ZodString;
|
|
2447
|
+
workspaceId: zod.ZodString;
|
|
2448
|
+
originalFileName: zod.ZodOptional<zod.ZodUnion<[zod.ZodString, zod.ZodNull]>>;
|
|
2449
|
+
mimeType: zod.ZodOptional<zod.ZodUnion<[zod.ZodString, zod.ZodNull]>>;
|
|
2450
|
+
size: zod.ZodOptional<zod.ZodUnion<[zod.ZodNumber, zod.ZodNull]>>;
|
|
2451
|
+
legacyKey: zod.ZodOptional<zod.ZodUnion<[zod.ZodString, zod.ZodNull]>>;
|
|
2452
|
+
bucketName: zod.ZodOptional<zod.ZodUnion<[zod.ZodString, zod.ZodNull]>>;
|
|
2453
|
+
encryptionKey: zod.ZodOptional<zod.ZodUnion<[zod.ZodString, zod.ZodNull]>>;
|
|
2454
|
+
createdBy: zod.ZodOptional<zod.ZodUnion<[zod.ZodString, zod.ZodNull]>>;
|
|
2455
|
+
createdAt: zod.ZodString;
|
|
2456
|
+
deletedAt: zod.ZodOptional<zod.ZodUnion<[zod.ZodString, zod.ZodNull]>>;
|
|
2457
|
+
}, "strip", zod.ZodTypeAny, {
|
|
2458
|
+
path: string;
|
|
2459
|
+
workspaceId: string;
|
|
2460
|
+
id: string;
|
|
2461
|
+
createdAt: string;
|
|
2462
|
+
deletedAt?: string | null | undefined;
|
|
2463
|
+
originalFileName?: string | null | undefined;
|
|
2464
|
+
size?: number | null | undefined;
|
|
2465
|
+
createdBy?: string | null | undefined;
|
|
2466
|
+
mimeType?: string | null | undefined;
|
|
2467
|
+
legacyKey?: string | null | undefined;
|
|
2468
|
+
bucketName?: string | null | undefined;
|
|
2469
|
+
encryptionKey?: string | null | undefined;
|
|
2470
|
+
}, {
|
|
2471
|
+
path: string;
|
|
2472
|
+
workspaceId: string;
|
|
2473
|
+
id: string;
|
|
2474
|
+
createdAt: string;
|
|
2475
|
+
deletedAt?: string | null | undefined;
|
|
2476
|
+
originalFileName?: string | null | undefined;
|
|
2477
|
+
size?: number | null | undefined;
|
|
2478
|
+
createdBy?: string | null | undefined;
|
|
2479
|
+
mimeType?: string | null | undefined;
|
|
2480
|
+
legacyKey?: string | null | undefined;
|
|
2481
|
+
bucketName?: string | null | undefined;
|
|
2482
|
+
encryptionKey?: string | null | undefined;
|
|
2483
|
+
}>, "many">;
|
|
2484
|
+
count: zod.ZodNumber;
|
|
2485
|
+
pages: zod.ZodNumber;
|
|
2486
|
+
}, "strip", zod.ZodTypeAny, {
|
|
2487
|
+
files: {
|
|
2488
|
+
path: string;
|
|
2489
|
+
workspaceId: string;
|
|
2490
|
+
id: string;
|
|
2491
|
+
createdAt: string;
|
|
2492
|
+
deletedAt?: string | null | undefined;
|
|
2493
|
+
originalFileName?: string | null | undefined;
|
|
2494
|
+
size?: number | null | undefined;
|
|
2495
|
+
createdBy?: string | null | undefined;
|
|
2496
|
+
mimeType?: string | null | undefined;
|
|
2497
|
+
legacyKey?: string | null | undefined;
|
|
2498
|
+
bucketName?: string | null | undefined;
|
|
2499
|
+
encryptionKey?: string | null | undefined;
|
|
2500
|
+
}[];
|
|
2501
|
+
count: number;
|
|
2502
|
+
pages: number;
|
|
2503
|
+
}, {
|
|
2504
|
+
files: {
|
|
2505
|
+
path: string;
|
|
2506
|
+
workspaceId: string;
|
|
2507
|
+
id: string;
|
|
2508
|
+
createdAt: string;
|
|
2509
|
+
deletedAt?: string | null | undefined;
|
|
2510
|
+
originalFileName?: string | null | undefined;
|
|
2511
|
+
size?: number | null | undefined;
|
|
2512
|
+
createdBy?: string | null | undefined;
|
|
2513
|
+
mimeType?: string | null | undefined;
|
|
2514
|
+
legacyKey?: string | null | undefined;
|
|
2515
|
+
bucketName?: string | null | undefined;
|
|
2516
|
+
encryptionKey?: string | null | undefined;
|
|
2517
|
+
}[];
|
|
2518
|
+
count: number;
|
|
2519
|
+
pages: number;
|
|
2520
|
+
}>;
|
|
2297
2521
|
}, {
|
|
2298
2522
|
method: "put";
|
|
2299
2523
|
path: "/_/workspaces/:workspaceId/settings";
|
package/dist/index.mjs
CHANGED
|
@@ -47,7 +47,7 @@ const endpoints = makeApi([
|
|
|
47
47
|
{
|
|
48
48
|
name: "includeDeleted",
|
|
49
49
|
type: "Query",
|
|
50
|
-
schema: z.
|
|
50
|
+
schema: z.enum(["true", "false"]).optional().default("false")
|
|
51
51
|
},
|
|
52
52
|
{
|
|
53
53
|
name: "limit",
|
|
@@ -316,6 +316,61 @@ The returned `uploadUrl` is valid for 1 hour by default. You can chang
|
|
|
316
316
|
})
|
|
317
317
|
)
|
|
318
318
|
},
|
|
319
|
+
{
|
|
320
|
+
method: "get",
|
|
321
|
+
path: "/_/files/count",
|
|
322
|
+
description: `Get the total count of active files across all workspaces`,
|
|
323
|
+
requestFormat: "json",
|
|
324
|
+
response: z.object({ count: z.number() })
|
|
325
|
+
},
|
|
326
|
+
{
|
|
327
|
+
method: "get",
|
|
328
|
+
path: "/_/files/inspect",
|
|
329
|
+
description: `Inspect files by file ID across all workspaces.`,
|
|
330
|
+
requestFormat: "json",
|
|
331
|
+
parameters: [
|
|
332
|
+
{
|
|
333
|
+
name: "fileId",
|
|
334
|
+
type: "Query",
|
|
335
|
+
schema: z.string()
|
|
336
|
+
},
|
|
337
|
+
{
|
|
338
|
+
name: "includeDeleted",
|
|
339
|
+
type: "Query",
|
|
340
|
+
schema: z.enum(["true", "false"]).optional().default("false")
|
|
341
|
+
},
|
|
342
|
+
{
|
|
343
|
+
name: "limit",
|
|
344
|
+
type: "Query",
|
|
345
|
+
schema: z.number().optional().default(100)
|
|
346
|
+
},
|
|
347
|
+
{
|
|
348
|
+
name: "offset",
|
|
349
|
+
type: "Query",
|
|
350
|
+
schema: z.number().optional().default(0)
|
|
351
|
+
}
|
|
352
|
+
],
|
|
353
|
+
response: z.object({
|
|
354
|
+
files: z.array(
|
|
355
|
+
z.object({
|
|
356
|
+
id: z.string(),
|
|
357
|
+
path: z.string(),
|
|
358
|
+
workspaceId: z.string(),
|
|
359
|
+
originalFileName: z.union([z.string(), z.null()]).optional(),
|
|
360
|
+
mimeType: z.union([z.string(), z.null()]).optional(),
|
|
361
|
+
size: z.union([z.number(), z.null()]).optional(),
|
|
362
|
+
legacyKey: z.union([z.string(), z.null()]).optional(),
|
|
363
|
+
bucketName: z.union([z.string(), z.null()]).optional(),
|
|
364
|
+
encryptionKey: z.union([z.string(), z.null()]).optional(),
|
|
365
|
+
createdBy: z.union([z.string(), z.null()]).optional(),
|
|
366
|
+
createdAt: z.string(),
|
|
367
|
+
deletedAt: z.union([z.string(), z.null()]).optional()
|
|
368
|
+
})
|
|
369
|
+
),
|
|
370
|
+
count: z.number(),
|
|
371
|
+
pages: z.number()
|
|
372
|
+
})
|
|
373
|
+
},
|
|
319
374
|
{
|
|
320
375
|
method: "put",
|
|
321
376
|
path: "/_/workspaces/:workspaceId/settings",
|
|
@@ -965,7 +1020,8 @@ function useVaultClient(vaultUrl, token) {
|
|
|
965
1020
|
const api = createApiClient(vaultUrl, {
|
|
966
1021
|
axiosConfig: {
|
|
967
1022
|
headers: {
|
|
968
|
-
Authorization: token
|
|
1023
|
+
Authorization: token,
|
|
1024
|
+
"User-Agent": "vault-http-client:2.3.5"
|
|
969
1025
|
}
|
|
970
1026
|
}
|
|
971
1027
|
});
|