@platformatic/foundation 3.31.0 → 3.32.0-alpha.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.
Files changed (2) hide show
  1. package/lib/schema.js +17 -0
  2. package/package.json +1 -1
package/lib/schema.js CHANGED
@@ -1066,6 +1066,23 @@ export const runtimeProperties = {
1066
1066
  },
1067
1067
  maxCount: {
1068
1068
  type: 'integer'
1069
+ },
1070
+ origins: {
1071
+ type: 'array',
1072
+ items: {
1073
+ type: 'string'
1074
+ },
1075
+ description: 'Whitelist of origins to cache. Supports exact strings and regex patterns (e.g., "/https:\\\\/\\\\/.*\\\\.example\\\\.com/").'
1076
+ },
1077
+ cacheByDefault: {
1078
+ type: 'integer',
1079
+ description: 'Default cache duration in seconds for responses without explicit expiration headers.'
1080
+ },
1081
+ type: {
1082
+ type: 'string',
1083
+ enum: ['shared', 'private'],
1084
+ default: 'shared',
1085
+ description: 'Cache type. "shared" caches may be shared between users, "private" caches are user-specific.'
1069
1086
  }
1070
1087
  }
1071
1088
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@platformatic/foundation",
3
- "version": "3.31.0",
3
+ "version": "3.32.0-alpha.1",
4
4
  "description": "Platformatic Foundation",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",