@platformatic/db 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.
Files changed (3) hide show
  1. package/config.d.ts +9 -0
  2. package/package.json +12 -12
  3. package/schema.json +29 -1
package/config.d.ts CHANGED
@@ -812,6 +812,15 @@ export interface PlatformaticDatabaseConfig {
812
812
  maxRetries?: number;
813
813
  [k: string]: unknown;
814
814
  }[];
815
+ policies?: {
816
+ deny: {
817
+ /**
818
+ * This interface was referenced by `undefined`'s JSON-Schema definition
819
+ * via the `patternProperty` "^.*$".
820
+ */
821
+ [k: string]: string | [string, ...string[]];
822
+ };
823
+ };
815
824
  };
816
825
  watch?:
817
826
  | {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@platformatic/db",
3
- "version": "3.11.0",
3
+ "version": "3.12.0",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",
@@ -66,17 +66,17 @@
66
66
  "rfdc": "^1.3.1",
67
67
  "rimraf": "^4.4.1",
68
68
  "semgrator": "^0.3.0",
69
- "@platformatic/basic": "3.11.0",
70
- "@platformatic/db-authorization": "3.11.0",
71
- "@platformatic/foundation": "3.11.0",
72
- "@platformatic/db-core": "3.11.0",
73
- "@platformatic/service": "3.11.0",
74
- "@platformatic/sql-graphql": "3.11.0",
75
- "@platformatic/sql-events": "3.11.0",
76
- "@platformatic/sql-json-schema-mapper": "3.11.0",
77
- "@platformatic/sql-mapper": "3.11.0",
78
- "@platformatic/telemetry": "3.11.0",
79
- "@platformatic/sql-openapi": "3.11.0"
69
+ "@platformatic/basic": "3.12.0",
70
+ "@platformatic/db-authorization": "3.12.0",
71
+ "@platformatic/db-core": "3.12.0",
72
+ "@platformatic/service": "3.12.0",
73
+ "@platformatic/sql-events": "3.12.0",
74
+ "@platformatic/sql-graphql": "3.12.0",
75
+ "@platformatic/sql-json-schema-mapper": "3.12.0",
76
+ "@platformatic/sql-mapper": "3.12.0",
77
+ "@platformatic/sql-openapi": "3.12.0",
78
+ "@platformatic/foundation": "3.12.0",
79
+ "@platformatic/telemetry": "3.12.0"
80
80
  },
81
81
  "engines": {
82
82
  "node": ">=22.19.0"
package/schema.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "$id": "https://schemas.platformatic.dev/@platformatic/db/3.11.0.json",
2
+ "$id": "https://schemas.platformatic.dev/@platformatic/db/3.12.0.json",
3
3
  "$schema": "http://json-schema.org/draft-07/schema#",
4
4
  "title": "Platformatic Database Config",
5
5
  "type": "object",
@@ -2677,6 +2677,34 @@
2677
2677
  "callbackUrl"
2678
2678
  ]
2679
2679
  }
2680
+ },
2681
+ "policies": {
2682
+ "type": "object",
2683
+ "properties": {
2684
+ "deny": {
2685
+ "type": "object",
2686
+ "patternProperties": {
2687
+ "^.*$": {
2688
+ "oneOf": [
2689
+ {
2690
+ "type": "string"
2691
+ },
2692
+ {
2693
+ "type": "array",
2694
+ "items": {
2695
+ "type": "string"
2696
+ },
2697
+ "minItems": 1
2698
+ }
2699
+ ]
2700
+ }
2701
+ }
2702
+ }
2703
+ },
2704
+ "required": [
2705
+ "deny"
2706
+ ],
2707
+ "additionalProperties": false
2680
2708
  }
2681
2709
  },
2682
2710
  "additionalProperties": false