@pgpmjs/types 2.56.3 → 2.57.1

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/esm/pgpm.js CHANGED
@@ -43,15 +43,6 @@ export const pgpmDefaults = {
43
43
  trustProxy: false,
44
44
  strictAuth: false
45
45
  },
46
- cdn: {
47
- provider: 'minio',
48
- bucketName: 'test-bucket',
49
- awsRegion: 'us-east-1',
50
- awsAccessKey: 'constructive',
51
- awsSecretKey: 'constructive-dev-secret',
52
- endpoint: 'http://localhost:9000',
53
- publicUrlPrefix: 'http://localhost:9000'
54
- },
55
46
  deployment: {
56
47
  useTx: true,
57
48
  fast: false,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pgpmjs/types",
3
- "version": "2.56.3",
3
+ "version": "2.57.1",
4
4
  "author": "Constructive <developers@constructive.io>",
5
5
  "description": "PGPM types",
6
6
  "main": "index.js",
@@ -29,8 +29,8 @@
29
29
  "test:watch": "jest --watch"
30
30
  },
31
31
  "dependencies": {
32
- "@constructive-io/errors": "^0.23.0",
33
- "pg-env": "^1.32.0"
32
+ "@constructive-io/errors": "^0.24.0",
33
+ "pg-env": "^1.32.1"
34
34
  },
35
35
  "keywords": [
36
36
  "types",
@@ -43,5 +43,5 @@
43
43
  "devDependencies": {
44
44
  "makage": "^0.8.0"
45
45
  },
46
- "gitHead": "a95137c03998f4ef18aaba770bdeb598077e5b51"
46
+ "gitHead": "bf845a1b0701f57f6900d9e2a3c66ea48e125cc3"
47
47
  }
package/pgpm.d.ts CHANGED
@@ -111,27 +111,17 @@ export interface ServerOptions {
111
111
  strictAuth?: boolean;
112
112
  }
113
113
  /**
114
- * Storage provider type for CDN/bucket operations
114
+ * Storage provider type for bucket operations
115
115
  */
116
116
  export type BucketProvider = 's3' | 'minio' | 'rustfs' | 'gcs';
117
117
  /**
118
- * CDN and file storage configuration
118
+ * Object-store credentials — the only storage input read from the environment
119
+ * (`STORAGE_ACCESS_KEY_ID`, `STORAGE_SECRET_ACCESS_KEY`). Endpoint, provider,
120
+ * region and public URL prefix are `storage_module` rows, never config.
119
121
  */
120
- export interface CDNOptions {
121
- /** Storage provider type (s3, minio, rustfs, gcs). 'minio' means path-style S3-compatible (RustFS, MinIO) */
122
- provider?: BucketProvider;
123
- /** S3 bucket name for file storage */
124
- bucketName?: string;
125
- /** AWS region for S3 bucket */
126
- awsRegion?: string;
127
- /** AWS access key for S3 */
128
- awsAccessKey?: string;
129
- /** AWS secret key for S3 */
130
- awsSecretKey?: string;
131
- /** S3-compatible API endpoint URL (RustFS, MinIO, R2, DO Spaces, GCS, etc.) */
132
- endpoint?: string;
133
- /** Public URL prefix for generating download URLs (e.g., CDN domain, S3 public URL) */
134
- publicUrlPrefix?: string;
122
+ export interface StorageCredentialOptions {
123
+ accessKeyId?: string;
124
+ secretAccessKey?: string;
135
125
  }
136
126
  /**
137
127
  * SMTP email configuration options
@@ -285,8 +275,8 @@ export interface PgpmOptions {
285
275
  pg?: Partial<PgConfig>;
286
276
  /** HTTP server configuration */
287
277
  server?: ServerOptions;
288
- /** CDN and file storage configuration */
289
- cdn?: CDNOptions;
278
+ /** Object-store credentials (coordinates live in storage_module) */
279
+ storage?: StorageCredentialOptions;
290
280
  /** Module deployment configuration */
291
281
  deployment?: DeploymentOptions;
292
282
  /** Migration and code generation options */
package/pgpm.js CHANGED
@@ -47,15 +47,6 @@ exports.pgpmDefaults = {
47
47
  trustProxy: false,
48
48
  strictAuth: false
49
49
  },
50
- cdn: {
51
- provider: 'minio',
52
- bucketName: 'test-bucket',
53
- awsRegion: 'us-east-1',
54
- awsAccessKey: 'constructive',
55
- awsSecretKey: 'constructive-dev-secret',
56
- endpoint: 'http://localhost:9000',
57
- publicUrlPrefix: 'http://localhost:9000'
58
- },
59
50
  deployment: {
60
51
  useTx: true,
61
52
  fast: false,