@platformatic/gateway 3.11.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 CHANGED
@@ -717,6 +717,15 @@ export interface PlatformaticGatewayConfig {
717
717
  maxRetries?: number;
718
718
  [k: string]: unknown;
719
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
+ };
720
729
  };
721
730
  telemetry?: {
722
731
  enabled?: boolean | string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@platformatic/gateway",
3
- "version": "3.11.0",
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.11.0"
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.11.0",
68
- "@platformatic/foundation": "^3.11.0",
69
- "@platformatic/scalar-theme": "3.11.0",
70
- "@platformatic/telemetry": "3.11.0",
71
- "@platformatic/service": "3.11.0"
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.11.0.json",
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",
@@ -2628,6 +2628,34 @@
2628
2628
  "callbackUrl"
2629
2629
  ]
2630
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
2631
2659
  }
2632
2660
  },
2633
2661
  "additionalProperties": false