@platformatic/gateway 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.
- package/config.d.ts +11 -1
- package/package.json +7 -7
- package/schema.json +36 -5
package/config.d.ts
CHANGED
|
@@ -676,12 +676,13 @@ export interface PlatformaticGatewayConfig {
|
|
|
676
676
|
verticalScaler?: {
|
|
677
677
|
enabled?: boolean;
|
|
678
678
|
maxTotalWorkers?: number;
|
|
679
|
+
maxTotalMemory?: number;
|
|
679
680
|
minWorkers?: number;
|
|
680
681
|
maxWorkers?: number;
|
|
681
682
|
scaleUpELU?: number;
|
|
682
683
|
scaleDownELU?: number;
|
|
683
|
-
minELUDiff?: number;
|
|
684
684
|
timeWindowSec?: number;
|
|
685
|
+
scaleDownTimeWindowSec?: number;
|
|
685
686
|
cooldownSec?: number;
|
|
686
687
|
scaleIntervalSec?: number;
|
|
687
688
|
gracePeriod?: number;
|
|
@@ -716,6 +717,15 @@ export interface PlatformaticGatewayConfig {
|
|
|
716
717
|
maxRetries?: number;
|
|
717
718
|
[k: string]: unknown;
|
|
718
719
|
}[];
|
|
720
|
+
policies?: {
|
|
721
|
+
deny: {
|
|
722
|
+
/**
|
|
723
|
+
* This interface was referenced by `undefined`'s JSON-Schema definition
|
|
724
|
+
* via the `patternProperty` "^.*$".
|
|
725
|
+
*/
|
|
726
|
+
[k: string]: string | [string, ...string[]];
|
|
727
|
+
};
|
|
728
|
+
};
|
|
719
729
|
};
|
|
720
730
|
telemetry?: {
|
|
721
731
|
enabled?: boolean | string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@platformatic/gateway",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.12.0",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"types": "index.d.ts",
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
"typescript": "^5.5.4",
|
|
34
34
|
"why-is-node-running": "2",
|
|
35
35
|
"ws": "^8.16.0",
|
|
36
|
-
"@platformatic/db": "3.
|
|
36
|
+
"@platformatic/db": "3.12.0"
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
39
|
"@fastify/error": "^4.0.0",
|
|
@@ -64,11 +64,11 @@
|
|
|
64
64
|
"rfdc": "^1.3.1",
|
|
65
65
|
"semgrator": "^0.3.0",
|
|
66
66
|
"undici": "^7.0.0",
|
|
67
|
-
"@platformatic/basic": "3.
|
|
68
|
-
"@platformatic/
|
|
69
|
-
"@platformatic/
|
|
70
|
-
"@platformatic/
|
|
71
|
-
"@platformatic/
|
|
67
|
+
"@platformatic/basic": "3.12.0",
|
|
68
|
+
"@platformatic/scalar-theme": "3.12.0",
|
|
69
|
+
"@platformatic/service": "3.12.0",
|
|
70
|
+
"@platformatic/telemetry": "3.12.0",
|
|
71
|
+
"@platformatic/foundation": "^3.12.0"
|
|
72
72
|
},
|
|
73
73
|
"engines": {
|
|
74
74
|
"node": ">=22.19.0"
|
package/schema.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"$id": "https://schemas.platformatic.dev/@platformatic/gateway/3.
|
|
2
|
+
"$id": "https://schemas.platformatic.dev/@platformatic/gateway/3.12.0.json",
|
|
3
3
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
4
4
|
"title": "Platformatic Gateway Config",
|
|
5
5
|
"type": "object",
|
|
@@ -2467,6 +2467,10 @@
|
|
|
2467
2467
|
"type": "number",
|
|
2468
2468
|
"minimum": 1
|
|
2469
2469
|
},
|
|
2470
|
+
"maxTotalMemory": {
|
|
2471
|
+
"type": "number",
|
|
2472
|
+
"minimum": 0
|
|
2473
|
+
},
|
|
2470
2474
|
"minWorkers": {
|
|
2471
2475
|
"type": "number",
|
|
2472
2476
|
"minimum": 1
|
|
@@ -2485,12 +2489,11 @@
|
|
|
2485
2489
|
"minimum": 0,
|
|
2486
2490
|
"maximum": 1
|
|
2487
2491
|
},
|
|
2488
|
-
"
|
|
2492
|
+
"timeWindowSec": {
|
|
2489
2493
|
"type": "number",
|
|
2490
|
-
"minimum": 0
|
|
2491
|
-
"maximum": 1
|
|
2494
|
+
"minimum": 0
|
|
2492
2495
|
},
|
|
2493
|
-
"
|
|
2496
|
+
"scaleDownTimeWindowSec": {
|
|
2494
2497
|
"type": "number",
|
|
2495
2498
|
"minimum": 0
|
|
2496
2499
|
},
|
|
@@ -2625,6 +2628,34 @@
|
|
|
2625
2628
|
"callbackUrl"
|
|
2626
2629
|
]
|
|
2627
2630
|
}
|
|
2631
|
+
},
|
|
2632
|
+
"policies": {
|
|
2633
|
+
"type": "object",
|
|
2634
|
+
"properties": {
|
|
2635
|
+
"deny": {
|
|
2636
|
+
"type": "object",
|
|
2637
|
+
"patternProperties": {
|
|
2638
|
+
"^.*$": {
|
|
2639
|
+
"oneOf": [
|
|
2640
|
+
{
|
|
2641
|
+
"type": "string"
|
|
2642
|
+
},
|
|
2643
|
+
{
|
|
2644
|
+
"type": "array",
|
|
2645
|
+
"items": {
|
|
2646
|
+
"type": "string"
|
|
2647
|
+
},
|
|
2648
|
+
"minItems": 1
|
|
2649
|
+
}
|
|
2650
|
+
]
|
|
2651
|
+
}
|
|
2652
|
+
}
|
|
2653
|
+
}
|
|
2654
|
+
},
|
|
2655
|
+
"required": [
|
|
2656
|
+
"deny"
|
|
2657
|
+
],
|
|
2658
|
+
"additionalProperties": false
|
|
2628
2659
|
}
|
|
2629
2660
|
},
|
|
2630
2661
|
"additionalProperties": false
|