@platformatic/composer 3.38.1 → 3.40.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 +119 -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.38.1",
3
+ "version": "3.40.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.38.1",
27
- "@platformatic/gateway": "3.38.1"
26
+ "@platformatic/foundation": "3.40.0",
27
+ "@platformatic/gateway": "3.40.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.38.1.json",
2
+ "$id": "https://schemas.platformatic.dev/@platformatic/composer/3.40.0.json",
3
3
  "$schema": "http://json-schema.org/draft-07/schema#",
4
4
  "title": "Platformatic Composer Config",
5
5
  "type": "object",
@@ -237,6 +237,26 @@
237
237
  "customLevels": {
238
238
  "type": "object",
239
239
  "additionalProperties": true
240
+ },
241
+ "openTelemetryExporter": {
242
+ "type": "object",
243
+ "properties": {
244
+ "protocol": {
245
+ "type": "string",
246
+ "enum": [
247
+ "grpc",
248
+ "http"
249
+ ]
250
+ },
251
+ "url": {
252
+ "type": "string"
253
+ }
254
+ },
255
+ "required": [
256
+ "protocol",
257
+ "url"
258
+ ],
259
+ "additionalProperties": false
240
260
  }
241
261
  },
242
262
  "default": {},
@@ -1014,6 +1034,29 @@
1014
1034
  "additionalProperties": false
1015
1035
  }
1016
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
+ ]
1017
1060
  }
1018
1061
  }
1019
1062
  }
@@ -1233,6 +1276,26 @@
1233
1276
  "customLevels": {
1234
1277
  "type": "object",
1235
1278
  "additionalProperties": true
1279
+ },
1280
+ "openTelemetryExporter": {
1281
+ "type": "object",
1282
+ "properties": {
1283
+ "protocol": {
1284
+ "type": "string",
1285
+ "enum": [
1286
+ "grpc",
1287
+ "http"
1288
+ ]
1289
+ },
1290
+ "url": {
1291
+ "type": "string"
1292
+ }
1293
+ },
1294
+ "required": [
1295
+ "protocol",
1296
+ "url"
1297
+ ],
1298
+ "additionalProperties": false
1236
1299
  }
1237
1300
  },
1238
1301
  "default": {},
@@ -1733,6 +1796,29 @@
1733
1796
  ],
1734
1797
  "default": true
1735
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
+ },
1736
1822
  "metrics": {
1737
1823
  "anyOf": [
1738
1824
  {
@@ -3082,6 +3168,38 @@
3082
3168
  {
3083
3169
  "type": "object",
3084
3170
  "properties": {
3171
+ "methods": {
3172
+ "type": "array",
3173
+ "items": {
3174
+ "type": "string",
3175
+ "enum": [
3176
+ "GET",
3177
+ "POST",
3178
+ "PUT",
3179
+ "DELETE",
3180
+ "PATCH",
3181
+ "OPTIONS"
3182
+ ]
3183
+ },
3184
+ "default": [
3185
+ "GET",
3186
+ "POST",
3187
+ "PUT",
3188
+ "DELETE",
3189
+ "PATCH",
3190
+ "OPTIONS"
3191
+ ]
3192
+ },
3193
+ "routes": {
3194
+ "type": "array",
3195
+ "items": {
3196
+ "type": "string"
3197
+ },
3198
+ "default": [
3199
+ "/",
3200
+ "/*"
3201
+ ]
3202
+ },
3085
3203
  "upstream": {
3086
3204
  "type": "string"
3087
3205
  },