@meistrari/vault-http-client 2.3.4 → 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 CHANGED
@@ -325,6 +325,54 @@ The returned `uploadUrl` is valid for 1 hour by default. You can chang
325
325
  requestFormat: "json",
326
326
  response: zod.z.object({ count: zod.z.number() })
327
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
+ },
328
376
  {
329
377
  method: "put",
330
378
  path: "/_/workspaces/:workspaceId/settings",
@@ -974,7 +1022,8 @@ function useVaultClient(vaultUrl, token) {
974
1022
  const api = createApiClient(vaultUrl, {
975
1023
  axiosConfig: {
976
1024
  headers: {
977
- Authorization: token
1025
+ Authorization: token,
1026
+ "User-Agent": "vault-http-client:2.3.5"
978
1027
  }
979
1028
  }
980
1029
  });
package/dist/index.d.cts CHANGED
@@ -527,6 +527,106 @@ declare function createApiClient(baseUrl: string, options?: ZodiosOptions): _zod
527
527
  }, {
528
528
  count: number;
529
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
+ }>;
530
630
  }, {
531
631
  method: "put";
532
632
  path: "/_/workspaces/:workspaceId/settings";
@@ -2318,6 +2418,106 @@ declare function useVaultClient(vaultUrl: string, token: string): _zodios_core.Z
2318
2418
  }, {
2319
2419
  count: number;
2320
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
+ }>;
2321
2521
  }, {
2322
2522
  method: "put";
2323
2523
  path: "/_/workspaces/:workspaceId/settings";
package/dist/index.d.mts CHANGED
@@ -527,6 +527,106 @@ declare function createApiClient(baseUrl: string, options?: ZodiosOptions): _zod
527
527
  }, {
528
528
  count: number;
529
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
+ }>;
530
630
  }, {
531
631
  method: "put";
532
632
  path: "/_/workspaces/:workspaceId/settings";
@@ -2318,6 +2418,106 @@ declare function useVaultClient(vaultUrl: string, token: string): _zodios_core.Z
2318
2418
  }, {
2319
2419
  count: number;
2320
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
+ }>;
2321
2521
  }, {
2322
2522
  method: "put";
2323
2523
  path: "/_/workspaces/:workspaceId/settings";
package/dist/index.d.ts CHANGED
@@ -527,6 +527,106 @@ declare function createApiClient(baseUrl: string, options?: ZodiosOptions): _zod
527
527
  }, {
528
528
  count: number;
529
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
+ }>;
530
630
  }, {
531
631
  method: "put";
532
632
  path: "/_/workspaces/:workspaceId/settings";
@@ -2318,6 +2418,106 @@ declare function useVaultClient(vaultUrl: string, token: string): _zodios_core.Z
2318
2418
  }, {
2319
2419
  count: number;
2320
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
+ }>;
2321
2521
  }, {
2322
2522
  method: "put";
2323
2523
  path: "/_/workspaces/:workspaceId/settings";
package/dist/index.mjs CHANGED
@@ -323,6 +323,54 @@ The returned &#x60;uploadUrl&#x60; is valid for 1 hour by default. You can chang
323
323
  requestFormat: "json",
324
324
  response: z.object({ count: z.number() })
325
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
+ },
326
374
  {
327
375
  method: "put",
328
376
  path: "/_/workspaces/:workspaceId/settings",
@@ -972,7 +1020,8 @@ function useVaultClient(vaultUrl, token) {
972
1020
  const api = createApiClient(vaultUrl, {
973
1021
  axiosConfig: {
974
1022
  headers: {
975
- Authorization: token
1023
+ Authorization: token,
1024
+ "User-Agent": "vault-http-client:2.3.5"
976
1025
  }
977
1026
  }
978
1027
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@meistrari/vault-http-client",
3
- "version": "2.3.4",
3
+ "version": "2.3.5",
4
4
  "types": "dist/index.d.ts",
5
5
  "exports": {
6
6
  ".": {