@platformatic/service 3.10.0 → 3.12.0

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 (3) hide show
  1. package/config.d.ts +11 -1
  2. package/package.json +7 -7
  3. package/schema.json +37 -6
package/config.d.ts CHANGED
@@ -601,12 +601,13 @@ export interface PlatformaticServiceConfig {
601
601
  verticalScaler?: {
602
602
  enabled?: boolean;
603
603
  maxTotalWorkers?: number;
604
+ maxTotalMemory?: number;
604
605
  minWorkers?: number;
605
606
  maxWorkers?: number;
606
607
  scaleUpELU?: number;
607
608
  scaleDownELU?: number;
608
- minELUDiff?: number;
609
609
  timeWindowSec?: number;
610
+ scaleDownTimeWindowSec?: number;
610
611
  cooldownSec?: number;
611
612
  scaleIntervalSec?: number;
612
613
  gracePeriod?: number;
@@ -641,6 +642,15 @@ export interface PlatformaticServiceConfig {
641
642
  maxRetries?: number;
642
643
  [k: string]: unknown;
643
644
  }[];
645
+ policies?: {
646
+ deny: {
647
+ /**
648
+ * This interface was referenced by `undefined`'s JSON-Schema definition
649
+ * via the `patternProperty` "^.*$".
650
+ */
651
+ [k: string]: string | [string, ...string[]];
652
+ };
653
+ };
644
654
  };
645
655
  }
646
656
  export interface Info {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@platformatic/service",
3
- "version": "3.10.0",
3
+ "version": "3.12.0",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",
@@ -67,12 +67,12 @@
67
67
  "rfdc": "^1.3.1",
68
68
  "semgrator": "^0.3.0",
69
69
  "undici": "^7.0.0",
70
- "@platformatic/basic": "3.10.0",
71
- "@platformatic/foundation": "3.10.0",
72
- "@platformatic/generators": "3.10.0",
73
- "@platformatic/metrics": "3.10.0",
74
- "@platformatic/scalar-theme": "3.10.0",
75
- "@platformatic/telemetry": "3.10.0"
70
+ "@platformatic/basic": "3.12.0",
71
+ "@platformatic/generators": "3.12.0",
72
+ "@platformatic/scalar-theme": "3.12.0",
73
+ "@platformatic/foundation": "3.12.0",
74
+ "@platformatic/telemetry": "3.12.0",
75
+ "@platformatic/metrics": "3.12.0"
76
76
  },
77
77
  "engines": {
78
78
  "node": ">=22.19.0"
package/schema.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
- "$id": "https://schemas.platformatic.dev/@platformatic/service/3.10.0.json",
3
- "version": "3.10.0",
2
+ "$id": "https://schemas.platformatic.dev/@platformatic/service/3.12.0.json",
3
+ "version": "3.12.0",
4
4
  "title": "Platformatic Service Config",
5
5
  "type": "object",
6
6
  "properties": {
@@ -2205,6 +2205,10 @@
2205
2205
  "type": "number",
2206
2206
  "minimum": 1
2207
2207
  },
2208
+ "maxTotalMemory": {
2209
+ "type": "number",
2210
+ "minimum": 0
2211
+ },
2208
2212
  "minWorkers": {
2209
2213
  "type": "number",
2210
2214
  "minimum": 1
@@ -2223,12 +2227,11 @@
2223
2227
  "minimum": 0,
2224
2228
  "maximum": 1
2225
2229
  },
2226
- "minELUDiff": {
2230
+ "timeWindowSec": {
2227
2231
  "type": "number",
2228
- "minimum": 0,
2229
- "maximum": 1
2232
+ "minimum": 0
2230
2233
  },
2231
- "timeWindowSec": {
2234
+ "scaleDownTimeWindowSec": {
2232
2235
  "type": "number",
2233
2236
  "minimum": 0
2234
2237
  },
@@ -2363,6 +2366,34 @@
2363
2366
  "callbackUrl"
2364
2367
  ]
2365
2368
  }
2369
+ },
2370
+ "policies": {
2371
+ "type": "object",
2372
+ "properties": {
2373
+ "deny": {
2374
+ "type": "object",
2375
+ "patternProperties": {
2376
+ "^.*$": {
2377
+ "oneOf": [
2378
+ {
2379
+ "type": "string"
2380
+ },
2381
+ {
2382
+ "type": "array",
2383
+ "items": {
2384
+ "type": "string"
2385
+ },
2386
+ "minItems": 1
2387
+ }
2388
+ ]
2389
+ }
2390
+ }
2391
+ }
2392
+ },
2393
+ "required": [
2394
+ "deny"
2395
+ ],
2396
+ "additionalProperties": false
2366
2397
  }
2367
2398
  },
2368
2399
  "additionalProperties": false