@veloxts/storage 0.6.101 → 0.6.103

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.
@@ -10,37 +10,14 @@ import type { StorageStore } from '../types.js';
10
10
  * MinIO configuration schema.
11
11
  */
12
12
  declare const MinIOConfigSchema: z.ZodObject<{
13
- /** MinIO bucket name */
14
13
  bucket: z.ZodString;
15
- /** MinIO endpoint (e.g., 'http://localhost:9000') */
16
14
  endpoint: z.ZodString;
17
- /** MinIO access key ID */
18
15
  accessKeyId: z.ZodString;
19
- /** MinIO secret access key */
20
16
  secretAccessKey: z.ZodString;
21
- /** AWS region (default: 'us-east-1') */
22
17
  region: z.ZodDefault<z.ZodString>;
23
- /** Custom public URL for accessing files */
24
18
  publicUrl: z.ZodOptional<z.ZodString>;
25
- /** Key prefix for all operations */
26
19
  prefix: z.ZodOptional<z.ZodString>;
27
- }, "strip", z.ZodTypeAny, {
28
- bucket: string;
29
- region: string;
30
- endpoint: string;
31
- accessKeyId: string;
32
- secretAccessKey: string;
33
- prefix?: string | undefined;
34
- publicUrl?: string | undefined;
35
- }, {
36
- bucket: string;
37
- endpoint: string;
38
- accessKeyId: string;
39
- secretAccessKey: string;
40
- region?: string | undefined;
41
- prefix?: string | undefined;
42
- publicUrl?: string | undefined;
43
- }>;
20
+ }, z.core.$strip>;
44
21
  /**
45
22
  * MinIO configuration options.
46
23
  */
@@ -10,37 +10,17 @@ import type { StorageStore } from '../types.js';
10
10
  * Cloudflare R2 configuration schema.
11
11
  */
12
12
  declare const R2ConfigSchema: z.ZodObject<{
13
- /** R2 bucket name */
14
13
  bucket: z.ZodString;
15
- /** Cloudflare account ID */
16
14
  accountId: z.ZodString;
17
- /** R2 API token access key ID */
18
15
  accessKeyId: z.ZodString;
19
- /** R2 API token secret access key */
20
16
  secretAccessKey: z.ZodString;
21
- /** Custom domain / CDN URL for public objects */
22
17
  publicUrl: z.ZodOptional<z.ZodString>;
23
- /** Regional jurisdiction (affects endpoint URL) */
24
- jurisdiction: z.ZodOptional<z.ZodEnum<["eu", "fedramp"]>>;
25
- /** Key prefix for all operations */
18
+ jurisdiction: z.ZodOptional<z.ZodEnum<{
19
+ eu: "eu";
20
+ fedramp: "fedramp";
21
+ }>>;
26
22
  prefix: z.ZodOptional<z.ZodString>;
27
- }, "strip", z.ZodTypeAny, {
28
- bucket: string;
29
- accessKeyId: string;
30
- secretAccessKey: string;
31
- accountId: string;
32
- prefix?: string | undefined;
33
- publicUrl?: string | undefined;
34
- jurisdiction?: "eu" | "fedramp" | undefined;
35
- }, {
36
- bucket: string;
37
- accessKeyId: string;
38
- secretAccessKey: string;
39
- accountId: string;
40
- prefix?: string | undefined;
41
- publicUrl?: string | undefined;
42
- jurisdiction?: "eu" | "fedramp" | undefined;
43
- }>;
23
+ }, z.core.$strip>;
44
24
  /**
45
25
  * Cloudflare R2 configuration options.
46
26
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@veloxts/storage",
3
- "version": "0.6.101",
3
+ "version": "0.6.103",
4
4
  "description": "Multi-driver file storage abstraction for VeloxTS framework",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -56,14 +56,14 @@
56
56
  "dependencies": {
57
57
  "fastify-plugin": "5.1.0",
58
58
  "mime-types": "3.0.2",
59
- "zod": "3.24.4",
60
- "@veloxts/core": "0.6.101"
59
+ "zod": "4.3.6",
60
+ "@veloxts/core": "0.6.103"
61
61
  },
62
62
  "peerDependencies": {
63
63
  "@aws-sdk/client-s3": ">=3.0.0",
64
64
  "@aws-sdk/lib-storage": ">=3.0.0",
65
65
  "@aws-sdk/s3-request-presigner": ">=3.0.0",
66
- "fastify": "^5.0.0"
66
+ "fastify": "^5.7.4"
67
67
  },
68
68
  "peerDependenciesMeta": {
69
69
  "@aws-sdk/client-s3": {
@@ -83,10 +83,10 @@
83
83
  "@types/mime-types": "3.0.1",
84
84
  "@types/node": "25.1.0",
85
85
  "@vitest/coverage-v8": "4.0.18",
86
- "fastify": "5.7.2",
86
+ "fastify": "5.7.4",
87
87
  "typescript": "5.9.3",
88
88
  "vitest": "4.0.18",
89
- "@veloxts/testing": "0.6.101"
89
+ "@veloxts/testing": "0.6.103"
90
90
  },
91
91
  "publishConfig": {
92
92
  "access": "public"