@platformatic/composer 3.39.0 → 3.41.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 +16 -0
  2. package/package.json +3 -3
  3. package/schema.json +47 -1
package/config.d.ts CHANGED
@@ -79,6 +79,10 @@ export interface PlatformaticComposerConfig {
79
79
  customLevels?: {
80
80
  [k: string]: unknown;
81
81
  };
82
+ openTelemetryExporter?: {
83
+ protocol: "grpc" | "http";
84
+ url: string;
85
+ };
82
86
  [k: string]: unknown;
83
87
  };
84
88
  loggerInstance?: {
@@ -243,6 +247,10 @@ export interface PlatformaticComposerConfig {
243
247
  customLevels?: {
244
248
  [k: string]: unknown;
245
249
  };
250
+ openTelemetryExporter?: {
251
+ protocol: "grpc" | "http";
252
+ url: string;
253
+ };
246
254
  [k: string]: unknown;
247
255
  };
248
256
  server?: {
@@ -381,6 +389,12 @@ export interface PlatformaticComposerConfig {
381
389
  */
382
390
  socket?: string;
383
391
  };
392
+ management?:
393
+ | boolean
394
+ | {
395
+ enabled?: boolean;
396
+ operations?: string[];
397
+ };
384
398
  metrics?:
385
399
  | boolean
386
400
  | {
@@ -873,6 +887,8 @@ export interface PlatformaticComposerConfig {
873
887
  proxy?:
874
888
  | false
875
889
  | {
890
+ methods?: ("GET" | "POST" | "PUT" | "DELETE" | "PATCH" | "OPTIONS")[];
891
+ routes?: string[];
876
892
  upstream?: string;
877
893
  prefix?: string;
878
894
  hostname?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@platformatic/composer",
3
- "version": "3.39.0",
3
+ "version": "3.41.0",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",
@@ -23,8 +23,8 @@
23
23
  "json-schema-to-typescript": "^15.0.0"
24
24
  },
25
25
  "dependencies": {
26
- "@platformatic/foundation": "3.39.0",
27
- "@platformatic/gateway": "3.39.0"
26
+ "@platformatic/foundation": "3.41.0",
27
+ "@platformatic/gateway": "3.41.0"
28
28
  },
29
29
  "engines": {
30
30
  "node": ">=22.19.0"
package/schema.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "$id": "https://schemas.platformatic.dev/@platformatic/composer/3.39.0.json",
2
+ "$id": "https://schemas.platformatic.dev/@platformatic/composer/3.41.0.json",
3
3
  "$schema": "http://json-schema.org/draft-07/schema#",
4
4
  "title": "Platformatic Composer Config",
5
5
  "type": "object",
@@ -1034,6 +1034,29 @@
1034
1034
  "additionalProperties": false
1035
1035
  }
1036
1036
  ]
1037
+ },
1038
+ "management": {
1039
+ "anyOf": [
1040
+ {
1041
+ "type": "boolean"
1042
+ },
1043
+ {
1044
+ "type": "object",
1045
+ "properties": {
1046
+ "enabled": {
1047
+ "type": "boolean",
1048
+ "default": true
1049
+ },
1050
+ "operations": {
1051
+ "type": "array",
1052
+ "items": {
1053
+ "type": "string"
1054
+ }
1055
+ }
1056
+ },
1057
+ "additionalProperties": false
1058
+ }
1059
+ ]
1037
1060
  }
1038
1061
  }
1039
1062
  }
@@ -1773,6 +1796,29 @@
1773
1796
  ],
1774
1797
  "default": true
1775
1798
  },
1799
+ "management": {
1800
+ "anyOf": [
1801
+ {
1802
+ "type": "boolean"
1803
+ },
1804
+ {
1805
+ "type": "object",
1806
+ "properties": {
1807
+ "enabled": {
1808
+ "type": "boolean",
1809
+ "default": true
1810
+ },
1811
+ "operations": {
1812
+ "type": "array",
1813
+ "items": {
1814
+ "type": "string"
1815
+ }
1816
+ }
1817
+ },
1818
+ "additionalProperties": false
1819
+ }
1820
+ ]
1821
+ },
1776
1822
  "metrics": {
1777
1823
  "anyOf": [
1778
1824
  {