@meistrari/vault-http-client 2.3.3 → 2.3.4

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
@@ -49,7 +49,7 @@ const endpoints = core.makeApi([
49
49
  {
50
50
  name: "includeDeleted",
51
51
  type: "Query",
52
- schema: zod.z.boolean().optional().default(false)
52
+ schema: zod.z.enum(["true", "false"]).optional().default("false")
53
53
  },
54
54
  {
55
55
  name: "limit",
@@ -318,6 +318,13 @@ 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
+ },
321
328
  {
322
329
  method: "put",
323
330
  path: "/_/workspaces/:workspaceId/settings",
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.ZodBoolean>>;
18
+ schema: z.ZodDefault<z.ZodOptional<z.ZodEnum<["true", "false"]>>>;
19
19
  }, {
20
20
  name: "limit";
21
21
  type: "Query";
@@ -515,6 +515,18 @@ 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
+ }>;
518
530
  }, {
519
531
  method: "put";
520
532
  path: "/_/workspaces/:workspaceId/settings";
@@ -1794,7 +1806,7 @@ declare function useVaultClient(vaultUrl: string, token: string): _zodios_core.Z
1794
1806
  }, {
1795
1807
  name: "includeDeleted";
1796
1808
  type: "Query";
1797
- schema: zod.ZodDefault<zod.ZodOptional<zod.ZodBoolean>>;
1809
+ schema: zod.ZodDefault<zod.ZodOptional<zod.ZodEnum<["true", "false"]>>>;
1798
1810
  }, {
1799
1811
  name: "limit";
1800
1812
  type: "Query";
@@ -2294,6 +2306,18 @@ declare function useVaultClient(vaultUrl: string, token: string): _zodios_core.Z
2294
2306
  permalinks: number;
2295
2307
  hasCustomSettings: boolean;
2296
2308
  }>, "many">;
2309
+ }, {
2310
+ method: "get";
2311
+ path: "/_/files/count";
2312
+ description: "Get the total count of active files across all workspaces";
2313
+ requestFormat: "json";
2314
+ response: zod.ZodObject<{
2315
+ count: zod.ZodNumber;
2316
+ }, "strip", zod.ZodTypeAny, {
2317
+ count: number;
2318
+ }, {
2319
+ count: number;
2320
+ }>;
2297
2321
  }, {
2298
2322
  method: "put";
2299
2323
  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.ZodBoolean>>;
18
+ schema: z.ZodDefault<z.ZodOptional<z.ZodEnum<["true", "false"]>>>;
19
19
  }, {
20
20
  name: "limit";
21
21
  type: "Query";
@@ -515,6 +515,18 @@ 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
+ }>;
518
530
  }, {
519
531
  method: "put";
520
532
  path: "/_/workspaces/:workspaceId/settings";
@@ -1794,7 +1806,7 @@ declare function useVaultClient(vaultUrl: string, token: string): _zodios_core.Z
1794
1806
  }, {
1795
1807
  name: "includeDeleted";
1796
1808
  type: "Query";
1797
- schema: zod.ZodDefault<zod.ZodOptional<zod.ZodBoolean>>;
1809
+ schema: zod.ZodDefault<zod.ZodOptional<zod.ZodEnum<["true", "false"]>>>;
1798
1810
  }, {
1799
1811
  name: "limit";
1800
1812
  type: "Query";
@@ -2294,6 +2306,18 @@ declare function useVaultClient(vaultUrl: string, token: string): _zodios_core.Z
2294
2306
  permalinks: number;
2295
2307
  hasCustomSettings: boolean;
2296
2308
  }>, "many">;
2309
+ }, {
2310
+ method: "get";
2311
+ path: "/_/files/count";
2312
+ description: "Get the total count of active files across all workspaces";
2313
+ requestFormat: "json";
2314
+ response: zod.ZodObject<{
2315
+ count: zod.ZodNumber;
2316
+ }, "strip", zod.ZodTypeAny, {
2317
+ count: number;
2318
+ }, {
2319
+ count: number;
2320
+ }>;
2297
2321
  }, {
2298
2322
  method: "put";
2299
2323
  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.ZodBoolean>>;
18
+ schema: z.ZodDefault<z.ZodOptional<z.ZodEnum<["true", "false"]>>>;
19
19
  }, {
20
20
  name: "limit";
21
21
  type: "Query";
@@ -515,6 +515,18 @@ 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
+ }>;
518
530
  }, {
519
531
  method: "put";
520
532
  path: "/_/workspaces/:workspaceId/settings";
@@ -1794,7 +1806,7 @@ declare function useVaultClient(vaultUrl: string, token: string): _zodios_core.Z
1794
1806
  }, {
1795
1807
  name: "includeDeleted";
1796
1808
  type: "Query";
1797
- schema: zod.ZodDefault<zod.ZodOptional<zod.ZodBoolean>>;
1809
+ schema: zod.ZodDefault<zod.ZodOptional<zod.ZodEnum<["true", "false"]>>>;
1798
1810
  }, {
1799
1811
  name: "limit";
1800
1812
  type: "Query";
@@ -2294,6 +2306,18 @@ declare function useVaultClient(vaultUrl: string, token: string): _zodios_core.Z
2294
2306
  permalinks: number;
2295
2307
  hasCustomSettings: boolean;
2296
2308
  }>, "many">;
2309
+ }, {
2310
+ method: "get";
2311
+ path: "/_/files/count";
2312
+ description: "Get the total count of active files across all workspaces";
2313
+ requestFormat: "json";
2314
+ response: zod.ZodObject<{
2315
+ count: zod.ZodNumber;
2316
+ }, "strip", zod.ZodTypeAny, {
2317
+ count: number;
2318
+ }, {
2319
+ count: number;
2320
+ }>;
2297
2321
  }, {
2298
2322
  method: "put";
2299
2323
  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.boolean().optional().default(false)
50
+ schema: z.enum(["true", "false"]).optional().default("false")
51
51
  },
52
52
  {
53
53
  name: "limit",
@@ -316,6 +316,13 @@ The returned &#x60;uploadUrl&#x60; 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
+ },
319
326
  {
320
327
  method: "put",
321
328
  path: "/_/workspaces/:workspaceId/settings",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@meistrari/vault-http-client",
3
- "version": "2.3.3",
3
+ "version": "2.3.4",
4
4
  "types": "dist/index.d.ts",
5
5
  "exports": {
6
6
  ".": {