@platformatic/nitro 0.0.1 → 3.63.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/schema.json ADDED
@@ -0,0 +1,3080 @@
1
+ {
2
+ "$id": "https://schemas.platformatic.dev/@platformatic/nitro/3.63.0.json",
3
+ "$schema": "http://json-schema.org/draft-07/schema#",
4
+ "title": "Platformatic Nitro Config",
5
+ "type": "object",
6
+ "properties": {
7
+ "$schema": {
8
+ "type": "string"
9
+ },
10
+ "module": {
11
+ "type": "string"
12
+ },
13
+ "logger": {
14
+ "type": "object",
15
+ "properties": {
16
+ "level": {
17
+ "type": "string",
18
+ "oneOf": [
19
+ {
20
+ "enum": [
21
+ "fatal",
22
+ "error",
23
+ "warn",
24
+ "info",
25
+ "debug",
26
+ "trace",
27
+ "silent"
28
+ ]
29
+ },
30
+ {
31
+ "pattern": "^\\{.+\\}$"
32
+ }
33
+ ]
34
+ },
35
+ "transport": {
36
+ "anyOf": [
37
+ {
38
+ "type": "object",
39
+ "properties": {
40
+ "target": {
41
+ "type": "string",
42
+ "resolveModule": true
43
+ },
44
+ "options": {
45
+ "type": "object"
46
+ }
47
+ },
48
+ "additionalProperties": false
49
+ },
50
+ {
51
+ "type": "object",
52
+ "properties": {
53
+ "targets": {
54
+ "type": "array",
55
+ "items": {
56
+ "type": "object",
57
+ "properties": {
58
+ "target": {
59
+ "anyOf": [
60
+ {
61
+ "type": "string",
62
+ "resolveModule": true
63
+ },
64
+ {
65
+ "type": "string",
66
+ "resolvePath": true
67
+ }
68
+ ]
69
+ },
70
+ "options": {
71
+ "type": "object"
72
+ },
73
+ "level": {
74
+ "type": "string"
75
+ }
76
+ },
77
+ "additionalProperties": false
78
+ }
79
+ },
80
+ "options": {
81
+ "type": "object"
82
+ }
83
+ },
84
+ "additionalProperties": false
85
+ }
86
+ ]
87
+ },
88
+ "pipeline": {
89
+ "type": "object",
90
+ "properties": {
91
+ "target": {
92
+ "type": "string",
93
+ "resolveModule": true
94
+ },
95
+ "options": {
96
+ "type": "object"
97
+ }
98
+ },
99
+ "additionalProperties": false
100
+ },
101
+ "formatters": {
102
+ "type": "object",
103
+ "properties": {
104
+ "path": {
105
+ "type": "string",
106
+ "resolvePath": true
107
+ }
108
+ },
109
+ "required": [
110
+ "path"
111
+ ],
112
+ "additionalProperties": false
113
+ },
114
+ "timestamp": {
115
+ "enum": [
116
+ "epochTime",
117
+ "unixTime",
118
+ "nullTime",
119
+ "isoTime"
120
+ ]
121
+ },
122
+ "redact": {
123
+ "type": "object",
124
+ "properties": {
125
+ "paths": {
126
+ "type": "array",
127
+ "items": {
128
+ "type": "string"
129
+ }
130
+ },
131
+ "censor": {
132
+ "type": "string",
133
+ "default": "[redacted]"
134
+ }
135
+ },
136
+ "required": [
137
+ "paths"
138
+ ],
139
+ "additionalProperties": false
140
+ },
141
+ "base": {
142
+ "anyOf": [
143
+ {
144
+ "type": "object",
145
+ "additionalProperties": true
146
+ },
147
+ {
148
+ "type": "null"
149
+ }
150
+ ]
151
+ },
152
+ "messageKey": {
153
+ "type": "string"
154
+ },
155
+ "customLevels": {
156
+ "type": "object",
157
+ "additionalProperties": true
158
+ },
159
+ "openTelemetryExporter": {
160
+ "type": "object",
161
+ "properties": {
162
+ "protocol": {
163
+ "type": "string",
164
+ "enum": [
165
+ "grpc",
166
+ "http"
167
+ ]
168
+ },
169
+ "url": {
170
+ "type": "string"
171
+ }
172
+ },
173
+ "required": [
174
+ "protocol",
175
+ "url"
176
+ ],
177
+ "additionalProperties": false
178
+ }
179
+ },
180
+ "default": {},
181
+ "additionalProperties": true
182
+ },
183
+ "server": {
184
+ "type": "object",
185
+ "properties": {
186
+ "hostname": {
187
+ "type": "string"
188
+ },
189
+ "port": {
190
+ "anyOf": [
191
+ {
192
+ "type": "integer"
193
+ },
194
+ {
195
+ "type": "string"
196
+ }
197
+ ]
198
+ },
199
+ "portAssignment": {
200
+ "type": "string",
201
+ "enum": [
202
+ "shared",
203
+ "perWorkerIncrement"
204
+ ],
205
+ "description": "Configures how entrypoint server worker ports are assigned. When set to shared, all workers listen on the same port. When set to perWorkerIncrement, each worker will use its own port, starting from port (worker 0)."
206
+ },
207
+ "backlog": {
208
+ "type": "integer",
209
+ "description": "The maximum length of the queue of pending connections"
210
+ },
211
+ "https": {
212
+ "type": "object",
213
+ "properties": {
214
+ "allowHTTP1": {
215
+ "type": "boolean"
216
+ },
217
+ "key": {
218
+ "anyOf": [
219
+ {
220
+ "type": "string"
221
+ },
222
+ {
223
+ "type": "object",
224
+ "properties": {
225
+ "path": {
226
+ "type": "string",
227
+ "resolvePath": true
228
+ }
229
+ },
230
+ "additionalProperties": false
231
+ },
232
+ {
233
+ "type": "array",
234
+ "items": {
235
+ "anyOf": [
236
+ {
237
+ "type": "string"
238
+ },
239
+ {
240
+ "type": "object",
241
+ "properties": {
242
+ "path": {
243
+ "type": "string",
244
+ "resolvePath": true
245
+ }
246
+ },
247
+ "additionalProperties": false
248
+ }
249
+ ]
250
+ }
251
+ }
252
+ ]
253
+ },
254
+ "cert": {
255
+ "anyOf": [
256
+ {
257
+ "type": "string"
258
+ },
259
+ {
260
+ "type": "object",
261
+ "properties": {
262
+ "path": {
263
+ "type": "string",
264
+ "resolvePath": true
265
+ }
266
+ },
267
+ "additionalProperties": false
268
+ },
269
+ {
270
+ "type": "array",
271
+ "items": {
272
+ "anyOf": [
273
+ {
274
+ "type": "string"
275
+ },
276
+ {
277
+ "type": "object",
278
+ "properties": {
279
+ "path": {
280
+ "type": "string",
281
+ "resolvePath": true
282
+ }
283
+ },
284
+ "additionalProperties": false
285
+ }
286
+ ]
287
+ }
288
+ }
289
+ ]
290
+ },
291
+ "requestCert": {
292
+ "type": "boolean"
293
+ },
294
+ "rejectUnauthorized": {
295
+ "type": "boolean"
296
+ }
297
+ },
298
+ "additionalProperties": false,
299
+ "required": [
300
+ "key",
301
+ "cert"
302
+ ]
303
+ }
304
+ },
305
+ "additionalProperties": false
306
+ },
307
+ "watch": {
308
+ "anyOf": [
309
+ {
310
+ "type": "object",
311
+ "properties": {
312
+ "enabled": {
313
+ "default": true,
314
+ "anyOf": [
315
+ {
316
+ "type": "boolean"
317
+ },
318
+ {
319
+ "type": "string"
320
+ }
321
+ ]
322
+ },
323
+ "allow": {
324
+ "type": "array",
325
+ "items": {
326
+ "type": "string"
327
+ },
328
+ "minItems": 1,
329
+ "nullable": true,
330
+ "default": null
331
+ },
332
+ "ignore": {
333
+ "type": "array",
334
+ "items": {
335
+ "type": "string"
336
+ },
337
+ "nullable": true,
338
+ "default": null
339
+ }
340
+ },
341
+ "additionalProperties": false
342
+ },
343
+ {
344
+ "type": "boolean"
345
+ },
346
+ {
347
+ "type": "string"
348
+ }
349
+ ]
350
+ },
351
+ "application": {
352
+ "type": "object",
353
+ "properties": {
354
+ "basePath": {
355
+ "type": "string"
356
+ },
357
+ "outputDirectory": {
358
+ "type": "string",
359
+ "default": ".output"
360
+ },
361
+ "include": {
362
+ "type": "array",
363
+ "items": {
364
+ "type": "string"
365
+ }
366
+ },
367
+ "commands": {
368
+ "type": "object",
369
+ "properties": {
370
+ "install": {
371
+ "type": "string",
372
+ "default": "npm ci --omit-dev"
373
+ },
374
+ "build": {
375
+ "type": "string"
376
+ },
377
+ "development": {
378
+ "type": "string"
379
+ },
380
+ "production": {
381
+ "type": "string"
382
+ }
383
+ },
384
+ "default": {},
385
+ "additionalProperties": false
386
+ },
387
+ "entrypointPort": {
388
+ "type": "number"
389
+ },
390
+ "changeDirectoryBeforeExecution": {
391
+ "type": "boolean",
392
+ "default": false
393
+ },
394
+ "preferLocalCommands": {
395
+ "type": "boolean",
396
+ "default": true
397
+ },
398
+ "processSpawner": {
399
+ "type": "string"
400
+ }
401
+ },
402
+ "additionalProperties": false,
403
+ "required": [],
404
+ "default": {}
405
+ },
406
+ "runtime": {
407
+ "type": "object",
408
+ "properties": {
409
+ "preload": {
410
+ "anyOf": [
411
+ {
412
+ "type": "string",
413
+ "resolvePath": true
414
+ },
415
+ {
416
+ "type": "array",
417
+ "items": {
418
+ "type": "string",
419
+ "resolvePath": true
420
+ }
421
+ }
422
+ ]
423
+ },
424
+ "extensions": {
425
+ "anyOf": [
426
+ {
427
+ "type": "string",
428
+ "resolvePath": true
429
+ },
430
+ {
431
+ "type": "object",
432
+ "additionalProperties": false,
433
+ "required": [
434
+ "path"
435
+ ],
436
+ "properties": {
437
+ "path": {
438
+ "type": "string",
439
+ "resolvePath": true
440
+ },
441
+ "options": {
442
+ "type": "object",
443
+ "additionalProperties": true
444
+ }
445
+ }
446
+ },
447
+ {
448
+ "type": "array",
449
+ "items": {
450
+ "anyOf": [
451
+ {
452
+ "type": "string",
453
+ "resolvePath": true
454
+ },
455
+ {
456
+ "type": "object",
457
+ "additionalProperties": false,
458
+ "required": [
459
+ "path"
460
+ ],
461
+ "properties": {
462
+ "path": {
463
+ "type": "string",
464
+ "resolvePath": true
465
+ },
466
+ "options": {
467
+ "type": "object",
468
+ "additionalProperties": true
469
+ }
470
+ }
471
+ }
472
+ ]
473
+ }
474
+ }
475
+ ]
476
+ },
477
+ "basePath": {
478
+ "type": "string"
479
+ },
480
+ "services": {
481
+ "type": "array",
482
+ "items": {
483
+ "type": "object",
484
+ "anyOf": [
485
+ {
486
+ "required": [
487
+ "id",
488
+ "path"
489
+ ]
490
+ },
491
+ {
492
+ "required": [
493
+ "id",
494
+ "url"
495
+ ]
496
+ }
497
+ ],
498
+ "properties": {
499
+ "id": {
500
+ "type": "string"
501
+ },
502
+ "enabled": {
503
+ "anyOf": [
504
+ {
505
+ "type": "boolean"
506
+ },
507
+ {
508
+ "type": "string"
509
+ },
510
+ {
511
+ "type": "object",
512
+ "additionalProperties": {
513
+ "type": "boolean"
514
+ }
515
+ }
516
+ ],
517
+ "default": true
518
+ },
519
+ "path": {
520
+ "type": "string",
521
+ "allowEmptyPaths": true,
522
+ "resolvePath": true
523
+ },
524
+ "config": {
525
+ "type": "string"
526
+ },
527
+ "url": {
528
+ "type": "string"
529
+ },
530
+ "gitBranch": {
531
+ "type": "string",
532
+ "default": "main"
533
+ },
534
+ "useHttp": {
535
+ "type": "boolean"
536
+ },
537
+ "reuseTcpPorts": {
538
+ "type": "boolean",
539
+ "default": true
540
+ },
541
+ "workers": {
542
+ "anyOf": [
543
+ {
544
+ "type": "number"
545
+ },
546
+ {
547
+ "type": "string"
548
+ },
549
+ {
550
+ "type": "object",
551
+ "properties": {
552
+ "static": {
553
+ "type": "number",
554
+ "minimum": 1
555
+ },
556
+ "minimum": {
557
+ "type": "number",
558
+ "minimum": 1
559
+ },
560
+ "maximum": {
561
+ "type": "number",
562
+ "minimum": 0
563
+ },
564
+ "scaleUpELU": {
565
+ "type": "number",
566
+ "minimum": 0,
567
+ "maximum": 1
568
+ },
569
+ "scaleDownELU": {
570
+ "type": "number",
571
+ "minimum": 0,
572
+ "maximum": 1
573
+ }
574
+ }
575
+ }
576
+ ]
577
+ },
578
+ "health": {
579
+ "type": "object",
580
+ "default": {},
581
+ "properties": {
582
+ "enabled": {
583
+ "anyOf": [
584
+ {
585
+ "type": "boolean"
586
+ },
587
+ {
588
+ "type": "string"
589
+ }
590
+ ]
591
+ },
592
+ "interval": {
593
+ "anyOf": [
594
+ {
595
+ "type": "number",
596
+ "minimum": 0
597
+ },
598
+ {
599
+ "type": "string"
600
+ }
601
+ ]
602
+ },
603
+ "gracePeriod": {
604
+ "anyOf": [
605
+ {
606
+ "type": "number",
607
+ "minimum": 0
608
+ },
609
+ {
610
+ "type": "string"
611
+ }
612
+ ]
613
+ },
614
+ "maxUnhealthyChecks": {
615
+ "anyOf": [
616
+ {
617
+ "type": "number",
618
+ "minimum": 1
619
+ },
620
+ {
621
+ "type": "string"
622
+ }
623
+ ]
624
+ },
625
+ "maxELU": {
626
+ "anyOf": [
627
+ {
628
+ "type": "number",
629
+ "minimum": 0,
630
+ "maximum": 1
631
+ },
632
+ {
633
+ "type": "string"
634
+ }
635
+ ]
636
+ },
637
+ "maxEventLoopDelay": {
638
+ "anyOf": [
639
+ {
640
+ "type": "number",
641
+ "minimum": 0
642
+ },
643
+ {
644
+ "type": "string"
645
+ }
646
+ ]
647
+ },
648
+ "maxEventLoopDelayP99": {
649
+ "anyOf": [
650
+ {
651
+ "type": "number",
652
+ "minimum": 0
653
+ },
654
+ {
655
+ "type": "string"
656
+ }
657
+ ]
658
+ },
659
+ "maxHeapUsed": {
660
+ "anyOf": [
661
+ {
662
+ "type": "number",
663
+ "minimum": 0,
664
+ "maximum": 1
665
+ },
666
+ {
667
+ "type": "string"
668
+ }
669
+ ]
670
+ },
671
+ "maxHeapTotal": {
672
+ "anyOf": [
673
+ {
674
+ "type": "number",
675
+ "minimum": 0
676
+ },
677
+ {
678
+ "type": "string"
679
+ }
680
+ ]
681
+ },
682
+ "maxYoungGeneration": {
683
+ "anyOf": [
684
+ {
685
+ "type": "number",
686
+ "minimum": 0
687
+ },
688
+ {
689
+ "type": "string"
690
+ }
691
+ ]
692
+ },
693
+ "codeRangeSize": {
694
+ "anyOf": [
695
+ {
696
+ "type": "number",
697
+ "minimum": 0
698
+ },
699
+ {
700
+ "type": "string"
701
+ }
702
+ ]
703
+ },
704
+ "bufferPoolSize": {
705
+ "anyOf": [
706
+ {
707
+ "type": "number",
708
+ "minimum": 0
709
+ },
710
+ {
711
+ "type": "string"
712
+ }
713
+ ]
714
+ },
715
+ "defaultHighWaterMark": {
716
+ "anyOf": [
717
+ {
718
+ "type": "number",
719
+ "minimum": 0
720
+ },
721
+ {
722
+ "type": "string"
723
+ }
724
+ ]
725
+ }
726
+ },
727
+ "additionalProperties": false
728
+ },
729
+ "restartOnError": {
730
+ "description": "Overrides the runtime-level restartOnError for this application. Set to false or 0 to never restart the application when it crashes, a positive number to wait that amount of milliseconds between restarts, or true to use the default delay.",
731
+ "anyOf": [
732
+ {
733
+ "type": "boolean"
734
+ },
735
+ {
736
+ "type": "number",
737
+ "minimum": 0
738
+ }
739
+ ]
740
+ },
741
+ "dependencies": {
742
+ "type": "array",
743
+ "items": {
744
+ "type": "string"
745
+ },
746
+ "default": []
747
+ },
748
+ "arguments": {
749
+ "type": "array",
750
+ "items": {
751
+ "type": "string"
752
+ }
753
+ },
754
+ "env": {
755
+ "type": "object",
756
+ "additionalProperties": {
757
+ "type": "string"
758
+ }
759
+ },
760
+ "envfile": {
761
+ "type": "string"
762
+ },
763
+ "sourceMaps": {
764
+ "type": "boolean"
765
+ },
766
+ "nodeModulesSourceMaps": {
767
+ "type": "array",
768
+ "items": {
769
+ "type": "string"
770
+ }
771
+ },
772
+ "packageManager": {
773
+ "type": "string",
774
+ "enum": [
775
+ "npm",
776
+ "pnpm",
777
+ "yarn"
778
+ ]
779
+ },
780
+ "preload": {
781
+ "anyOf": [
782
+ {
783
+ "type": "string",
784
+ "resolvePath": true
785
+ },
786
+ {
787
+ "type": "array",
788
+ "items": {
789
+ "type": "string",
790
+ "resolvePath": true
791
+ }
792
+ }
793
+ ]
794
+ },
795
+ "nodeOptions": {
796
+ "type": "string"
797
+ },
798
+ "execArgv": {
799
+ "type": "array",
800
+ "items": {
801
+ "type": "string"
802
+ }
803
+ },
804
+ "permissions": {
805
+ "type": "object",
806
+ "properties": {
807
+ "fs": {
808
+ "type": "object",
809
+ "properties": {
810
+ "read": {
811
+ "type": "array",
812
+ "items": {
813
+ "type": "string"
814
+ }
815
+ },
816
+ "write": {
817
+ "type": "array",
818
+ "items": {
819
+ "type": "string"
820
+ }
821
+ }
822
+ },
823
+ "additionalProperties": false
824
+ }
825
+ },
826
+ "additionalProperties": false
827
+ },
828
+ "telemetry": {
829
+ "type": "object",
830
+ "properties": {
831
+ "instrumentations": {
832
+ "type": "array",
833
+ "description": "An array of instrumentations loaded if telemetry is enabled",
834
+ "items": {
835
+ "oneOf": [
836
+ {
837
+ "type": "string"
838
+ },
839
+ {
840
+ "type": "object",
841
+ "properties": {
842
+ "package": {
843
+ "type": "string"
844
+ },
845
+ "exportName": {
846
+ "type": "string"
847
+ },
848
+ "options": {
849
+ "type": "object",
850
+ "additionalProperties": true
851
+ }
852
+ },
853
+ "required": [
854
+ "package"
855
+ ]
856
+ }
857
+ ]
858
+ }
859
+ }
860
+ }
861
+ },
862
+ "compileCache": {
863
+ "anyOf": [
864
+ {
865
+ "type": "boolean"
866
+ },
867
+ {
868
+ "type": "object",
869
+ "properties": {
870
+ "enabled": {
871
+ "type": "boolean",
872
+ "default": true,
873
+ "description": "Enable Node.js module compile cache for faster startup"
874
+ },
875
+ "directory": {
876
+ "type": "string",
877
+ "description": "Directory to store compile cache. Defaults to .plt/compile-cache in app root"
878
+ }
879
+ },
880
+ "additionalProperties": false
881
+ }
882
+ ]
883
+ },
884
+ "management": {
885
+ "anyOf": [
886
+ {
887
+ "type": "boolean"
888
+ },
889
+ {
890
+ "type": "object",
891
+ "properties": {
892
+ "enabled": {
893
+ "type": "boolean",
894
+ "default": true
895
+ },
896
+ "operations": {
897
+ "type": "array",
898
+ "items": {
899
+ "type": "string"
900
+ }
901
+ }
902
+ },
903
+ "additionalProperties": false
904
+ }
905
+ ]
906
+ }
907
+ }
908
+ }
909
+ },
910
+ "workers": {
911
+ "anyOf": [
912
+ {
913
+ "type": "number",
914
+ "minimum": 1
915
+ },
916
+ {
917
+ "type": "string"
918
+ },
919
+ {
920
+ "type": "object",
921
+ "properties": {
922
+ "static": {
923
+ "type": "number",
924
+ "minimum": 1
925
+ },
926
+ "dynamic": {
927
+ "type": "boolean",
928
+ "default": false
929
+ },
930
+ "minimum": {
931
+ "type": "number",
932
+ "minimum": 1
933
+ },
934
+ "maximum": {
935
+ "type": "number",
936
+ "minimum": 0
937
+ },
938
+ "total": {
939
+ "type": "number",
940
+ "minimum": 1
941
+ },
942
+ "maxMemory": {
943
+ "type": "number",
944
+ "minimum": 0
945
+ },
946
+ "cooldown": {
947
+ "type": "number",
948
+ "minimum": 0
949
+ },
950
+ "gracePeriod": {
951
+ "type": "number",
952
+ "minimum": 0
953
+ },
954
+ "scaleUpELU": {
955
+ "type": "number",
956
+ "minimum": 0,
957
+ "maximum": 1
958
+ },
959
+ "scaleDownELU": {
960
+ "type": "number",
961
+ "minimum": 0,
962
+ "maximum": 1
963
+ }
964
+ }
965
+ }
966
+ ]
967
+ },
968
+ "workersRestartDelay": {
969
+ "anyOf": [
970
+ {
971
+ "type": "number",
972
+ "minimum": 0
973
+ },
974
+ {
975
+ "type": "string"
976
+ }
977
+ ],
978
+ "default": 0
979
+ },
980
+ "logger": {
981
+ "type": "object",
982
+ "properties": {
983
+ "level": {
984
+ "type": "string",
985
+ "oneOf": [
986
+ {
987
+ "enum": [
988
+ "fatal",
989
+ "error",
990
+ "warn",
991
+ "info",
992
+ "debug",
993
+ "trace",
994
+ "silent"
995
+ ]
996
+ },
997
+ {
998
+ "pattern": "^\\{.+\\}$"
999
+ }
1000
+ ]
1001
+ },
1002
+ "transport": {
1003
+ "anyOf": [
1004
+ {
1005
+ "type": "object",
1006
+ "properties": {
1007
+ "target": {
1008
+ "type": "string",
1009
+ "resolveModule": true
1010
+ },
1011
+ "options": {
1012
+ "type": "object"
1013
+ }
1014
+ },
1015
+ "additionalProperties": false
1016
+ },
1017
+ {
1018
+ "type": "object",
1019
+ "properties": {
1020
+ "targets": {
1021
+ "type": "array",
1022
+ "items": {
1023
+ "type": "object",
1024
+ "properties": {
1025
+ "target": {
1026
+ "anyOf": [
1027
+ {
1028
+ "type": "string",
1029
+ "resolveModule": true
1030
+ },
1031
+ {
1032
+ "type": "string",
1033
+ "resolvePath": true
1034
+ }
1035
+ ]
1036
+ },
1037
+ "options": {
1038
+ "type": "object"
1039
+ },
1040
+ "level": {
1041
+ "type": "string"
1042
+ }
1043
+ },
1044
+ "additionalProperties": false
1045
+ }
1046
+ },
1047
+ "options": {
1048
+ "type": "object"
1049
+ }
1050
+ },
1051
+ "additionalProperties": false
1052
+ }
1053
+ ]
1054
+ },
1055
+ "pipeline": {
1056
+ "type": "object",
1057
+ "properties": {
1058
+ "target": {
1059
+ "type": "string",
1060
+ "resolveModule": true
1061
+ },
1062
+ "options": {
1063
+ "type": "object"
1064
+ }
1065
+ },
1066
+ "additionalProperties": false
1067
+ },
1068
+ "formatters": {
1069
+ "type": "object",
1070
+ "properties": {
1071
+ "path": {
1072
+ "type": "string",
1073
+ "resolvePath": true
1074
+ }
1075
+ },
1076
+ "required": [
1077
+ "path"
1078
+ ],
1079
+ "additionalProperties": false
1080
+ },
1081
+ "timestamp": {
1082
+ "enum": [
1083
+ "epochTime",
1084
+ "unixTime",
1085
+ "nullTime",
1086
+ "isoTime"
1087
+ ]
1088
+ },
1089
+ "redact": {
1090
+ "type": "object",
1091
+ "properties": {
1092
+ "paths": {
1093
+ "type": "array",
1094
+ "items": {
1095
+ "type": "string"
1096
+ }
1097
+ },
1098
+ "censor": {
1099
+ "type": "string",
1100
+ "default": "[redacted]"
1101
+ }
1102
+ },
1103
+ "required": [
1104
+ "paths"
1105
+ ],
1106
+ "additionalProperties": false
1107
+ },
1108
+ "base": {
1109
+ "anyOf": [
1110
+ {
1111
+ "type": "object",
1112
+ "additionalProperties": true
1113
+ },
1114
+ {
1115
+ "type": "null"
1116
+ }
1117
+ ]
1118
+ },
1119
+ "messageKey": {
1120
+ "type": "string"
1121
+ },
1122
+ "customLevels": {
1123
+ "type": "object",
1124
+ "additionalProperties": true
1125
+ },
1126
+ "openTelemetryExporter": {
1127
+ "type": "object",
1128
+ "properties": {
1129
+ "protocol": {
1130
+ "type": "string",
1131
+ "enum": [
1132
+ "grpc",
1133
+ "http"
1134
+ ]
1135
+ },
1136
+ "url": {
1137
+ "type": "string"
1138
+ }
1139
+ },
1140
+ "required": [
1141
+ "protocol",
1142
+ "url"
1143
+ ],
1144
+ "additionalProperties": false
1145
+ }
1146
+ },
1147
+ "default": {},
1148
+ "additionalProperties": true
1149
+ },
1150
+ "server": {
1151
+ "type": "object",
1152
+ "properties": {
1153
+ "hostname": {
1154
+ "type": "string"
1155
+ },
1156
+ "port": {
1157
+ "anyOf": [
1158
+ {
1159
+ "type": "integer"
1160
+ },
1161
+ {
1162
+ "type": "string"
1163
+ }
1164
+ ]
1165
+ },
1166
+ "portAssignment": {
1167
+ "type": "string",
1168
+ "enum": [
1169
+ "shared",
1170
+ "perWorkerIncrement"
1171
+ ],
1172
+ "description": "Configures how entrypoint server worker ports are assigned. When set to shared, all workers listen on the same port. When set to perWorkerIncrement, each worker will use its own port, starting from port (worker 0)."
1173
+ },
1174
+ "backlog": {
1175
+ "type": "integer",
1176
+ "description": "The maximum length of the queue of pending connections"
1177
+ },
1178
+ "http2": {
1179
+ "type": "boolean"
1180
+ },
1181
+ "https": {
1182
+ "type": "object",
1183
+ "properties": {
1184
+ "allowHTTP1": {
1185
+ "type": "boolean"
1186
+ },
1187
+ "key": {
1188
+ "anyOf": [
1189
+ {
1190
+ "type": "string"
1191
+ },
1192
+ {
1193
+ "type": "object",
1194
+ "properties": {
1195
+ "path": {
1196
+ "type": "string",
1197
+ "resolvePath": true
1198
+ }
1199
+ },
1200
+ "additionalProperties": false
1201
+ },
1202
+ {
1203
+ "type": "array",
1204
+ "items": {
1205
+ "anyOf": [
1206
+ {
1207
+ "type": "string"
1208
+ },
1209
+ {
1210
+ "type": "object",
1211
+ "properties": {
1212
+ "path": {
1213
+ "type": "string",
1214
+ "resolvePath": true
1215
+ }
1216
+ },
1217
+ "additionalProperties": false
1218
+ }
1219
+ ]
1220
+ }
1221
+ }
1222
+ ]
1223
+ },
1224
+ "cert": {
1225
+ "anyOf": [
1226
+ {
1227
+ "type": "string"
1228
+ },
1229
+ {
1230
+ "type": "object",
1231
+ "properties": {
1232
+ "path": {
1233
+ "type": "string",
1234
+ "resolvePath": true
1235
+ }
1236
+ },
1237
+ "additionalProperties": false
1238
+ },
1239
+ {
1240
+ "type": "array",
1241
+ "items": {
1242
+ "anyOf": [
1243
+ {
1244
+ "type": "string"
1245
+ },
1246
+ {
1247
+ "type": "object",
1248
+ "properties": {
1249
+ "path": {
1250
+ "type": "string",
1251
+ "resolvePath": true
1252
+ }
1253
+ },
1254
+ "additionalProperties": false
1255
+ }
1256
+ ]
1257
+ }
1258
+ }
1259
+ ]
1260
+ },
1261
+ "requestCert": {
1262
+ "type": "boolean"
1263
+ },
1264
+ "rejectUnauthorized": {
1265
+ "type": "boolean"
1266
+ }
1267
+ },
1268
+ "additionalProperties": false,
1269
+ "required": [
1270
+ "key",
1271
+ "cert"
1272
+ ]
1273
+ }
1274
+ },
1275
+ "additionalProperties": false
1276
+ },
1277
+ "reuseTcpPorts": {
1278
+ "type": "boolean",
1279
+ "default": true
1280
+ },
1281
+ "startTimeout": {
1282
+ "default": 30000,
1283
+ "type": "number",
1284
+ "minimum": 0
1285
+ },
1286
+ "restartOnError": {
1287
+ "default": true,
1288
+ "anyOf": [
1289
+ {
1290
+ "type": "boolean"
1291
+ },
1292
+ {
1293
+ "type": "number",
1294
+ "minimum": 0
1295
+ }
1296
+ ]
1297
+ },
1298
+ "exitOnUnhandledErrors": {
1299
+ "default": true,
1300
+ "anyOf": [
1301
+ {
1302
+ "type": "boolean"
1303
+ },
1304
+ {
1305
+ "type": "number"
1306
+ }
1307
+ ]
1308
+ },
1309
+ "gracefulShutdown": {
1310
+ "type": "object",
1311
+ "properties": {
1312
+ "runtime": {
1313
+ "anyOf": [
1314
+ {
1315
+ "type": "number",
1316
+ "minimum": 1
1317
+ },
1318
+ {
1319
+ "type": "string"
1320
+ }
1321
+ ],
1322
+ "default": 30000
1323
+ },
1324
+ "application": {
1325
+ "anyOf": [
1326
+ {
1327
+ "type": "number",
1328
+ "minimum": 1
1329
+ },
1330
+ {
1331
+ "type": "string"
1332
+ }
1333
+ ],
1334
+ "default": 10000
1335
+ },
1336
+ "closeConnections": {
1337
+ "type": "boolean",
1338
+ "default": true,
1339
+ "description": "Add Connection: close header to HTTP responses during graceful shutdown"
1340
+ }
1341
+ },
1342
+ "default": {},
1343
+ "required": [
1344
+ "runtime",
1345
+ "application"
1346
+ ],
1347
+ "additionalProperties": false
1348
+ },
1349
+ "health": {
1350
+ "type": "object",
1351
+ "default": {},
1352
+ "properties": {
1353
+ "enabled": {
1354
+ "anyOf": [
1355
+ {
1356
+ "type": "boolean"
1357
+ },
1358
+ {
1359
+ "type": "string"
1360
+ }
1361
+ ],
1362
+ "default": true
1363
+ },
1364
+ "interval": {
1365
+ "anyOf": [
1366
+ {
1367
+ "type": "number",
1368
+ "minimum": 0
1369
+ },
1370
+ {
1371
+ "type": "string"
1372
+ }
1373
+ ],
1374
+ "default": 30000
1375
+ },
1376
+ "gracePeriod": {
1377
+ "anyOf": [
1378
+ {
1379
+ "type": "number",
1380
+ "minimum": 0
1381
+ },
1382
+ {
1383
+ "type": "string"
1384
+ }
1385
+ ],
1386
+ "default": 30000
1387
+ },
1388
+ "maxUnhealthyChecks": {
1389
+ "anyOf": [
1390
+ {
1391
+ "type": "number",
1392
+ "minimum": 1
1393
+ },
1394
+ {
1395
+ "type": "string"
1396
+ }
1397
+ ],
1398
+ "default": 10
1399
+ },
1400
+ "maxELU": {
1401
+ "anyOf": [
1402
+ {
1403
+ "type": "number",
1404
+ "minimum": 0,
1405
+ "maximum": 1
1406
+ },
1407
+ {
1408
+ "type": "string"
1409
+ }
1410
+ ],
1411
+ "default": 0.99
1412
+ },
1413
+ "maxEventLoopDelay": {
1414
+ "anyOf": [
1415
+ {
1416
+ "type": "number",
1417
+ "minimum": 0
1418
+ },
1419
+ {
1420
+ "type": "string"
1421
+ }
1422
+ ]
1423
+ },
1424
+ "maxEventLoopDelayP99": {
1425
+ "anyOf": [
1426
+ {
1427
+ "type": "number",
1428
+ "minimum": 0
1429
+ },
1430
+ {
1431
+ "type": "string"
1432
+ }
1433
+ ]
1434
+ },
1435
+ "maxHeapUsed": {
1436
+ "anyOf": [
1437
+ {
1438
+ "type": "number",
1439
+ "minimum": 0,
1440
+ "maximum": 1
1441
+ },
1442
+ {
1443
+ "type": "string"
1444
+ }
1445
+ ],
1446
+ "default": 0.99
1447
+ },
1448
+ "maxHeapTotal": {
1449
+ "anyOf": [
1450
+ {
1451
+ "type": "number",
1452
+ "minimum": 0
1453
+ },
1454
+ {
1455
+ "type": "string"
1456
+ }
1457
+ ],
1458
+ "default": 4294967296
1459
+ },
1460
+ "maxYoungGeneration": {
1461
+ "anyOf": [
1462
+ {
1463
+ "type": "number",
1464
+ "minimum": 0
1465
+ },
1466
+ {
1467
+ "type": "string"
1468
+ }
1469
+ ],
1470
+ "default": 134217728
1471
+ },
1472
+ "codeRangeSize": {
1473
+ "anyOf": [
1474
+ {
1475
+ "type": "number",
1476
+ "minimum": 0
1477
+ },
1478
+ {
1479
+ "type": "string"
1480
+ }
1481
+ ],
1482
+ "default": 268435456
1483
+ },
1484
+ "bufferPoolSize": {
1485
+ "anyOf": [
1486
+ {
1487
+ "type": "number",
1488
+ "minimum": 0
1489
+ },
1490
+ {
1491
+ "type": "string"
1492
+ }
1493
+ ],
1494
+ "default": 262144
1495
+ },
1496
+ "defaultHighWaterMark": {
1497
+ "anyOf": [
1498
+ {
1499
+ "type": "number",
1500
+ "minimum": 0
1501
+ },
1502
+ {
1503
+ "type": "string"
1504
+ }
1505
+ ],
1506
+ "default": 262144
1507
+ }
1508
+ },
1509
+ "additionalProperties": false
1510
+ },
1511
+ "healthProbes": {
1512
+ "anyOf": [
1513
+ {
1514
+ "type": "boolean"
1515
+ },
1516
+ {
1517
+ "type": "string"
1518
+ },
1519
+ {
1520
+ "type": "object",
1521
+ "properties": {
1522
+ "enabled": {
1523
+ "anyOf": [
1524
+ {
1525
+ "type": "boolean"
1526
+ },
1527
+ {
1528
+ "type": "string"
1529
+ }
1530
+ ]
1531
+ },
1532
+ "hostname": {
1533
+ "type": "string"
1534
+ },
1535
+ "port": {
1536
+ "anyOf": [
1537
+ {
1538
+ "type": "integer"
1539
+ },
1540
+ {
1541
+ "type": "string"
1542
+ }
1543
+ ]
1544
+ },
1545
+ "readiness": {
1546
+ "anyOf": [
1547
+ {
1548
+ "type": "boolean"
1549
+ },
1550
+ {
1551
+ "type": "object",
1552
+ "properties": {
1553
+ "endpoint": {
1554
+ "type": "string"
1555
+ },
1556
+ "success": {
1557
+ "type": "object",
1558
+ "properties": {
1559
+ "statusCode": {
1560
+ "type": "number"
1561
+ },
1562
+ "body": {
1563
+ "type": "string"
1564
+ }
1565
+ },
1566
+ "additionalProperties": false
1567
+ },
1568
+ "fail": {
1569
+ "type": "object",
1570
+ "properties": {
1571
+ "statusCode": {
1572
+ "type": "number"
1573
+ },
1574
+ "body": {
1575
+ "type": "string"
1576
+ }
1577
+ },
1578
+ "additionalProperties": false
1579
+ }
1580
+ },
1581
+ "additionalProperties": false
1582
+ }
1583
+ ]
1584
+ },
1585
+ "liveness": {
1586
+ "anyOf": [
1587
+ {
1588
+ "type": "boolean"
1589
+ },
1590
+ {
1591
+ "type": "object",
1592
+ "properties": {
1593
+ "endpoint": {
1594
+ "type": "string"
1595
+ },
1596
+ "success": {
1597
+ "type": "object",
1598
+ "properties": {
1599
+ "statusCode": {
1600
+ "type": "number"
1601
+ },
1602
+ "body": {
1603
+ "type": "string"
1604
+ }
1605
+ },
1606
+ "additionalProperties": false
1607
+ },
1608
+ "fail": {
1609
+ "type": "object",
1610
+ "properties": {
1611
+ "statusCode": {
1612
+ "type": "number"
1613
+ },
1614
+ "body": {
1615
+ "type": "string"
1616
+ }
1617
+ },
1618
+ "additionalProperties": false
1619
+ }
1620
+ },
1621
+ "additionalProperties": false
1622
+ }
1623
+ ]
1624
+ }
1625
+ },
1626
+ "additionalProperties": false
1627
+ }
1628
+ ],
1629
+ "default": true
1630
+ },
1631
+ "undici": {
1632
+ "type": "object",
1633
+ "properties": {
1634
+ "agentOptions": {
1635
+ "type": "object",
1636
+ "additionalProperties": true
1637
+ },
1638
+ "interceptors": {
1639
+ "anyOf": [
1640
+ {
1641
+ "type": "array",
1642
+ "items": {
1643
+ "type": "object",
1644
+ "properties": {
1645
+ "module": {
1646
+ "type": "string"
1647
+ },
1648
+ "options": {
1649
+ "type": "object",
1650
+ "additionalProperties": true
1651
+ }
1652
+ },
1653
+ "required": [
1654
+ "module",
1655
+ "options"
1656
+ ]
1657
+ }
1658
+ },
1659
+ {
1660
+ "type": "object",
1661
+ "properties": {
1662
+ "Client": {
1663
+ "type": "array",
1664
+ "items": {
1665
+ "type": "object",
1666
+ "properties": {
1667
+ "module": {
1668
+ "type": "string"
1669
+ },
1670
+ "options": {
1671
+ "type": "object",
1672
+ "additionalProperties": true
1673
+ }
1674
+ },
1675
+ "required": [
1676
+ "module",
1677
+ "options"
1678
+ ]
1679
+ }
1680
+ },
1681
+ "Pool": {
1682
+ "type": "array",
1683
+ "items": {
1684
+ "type": "object",
1685
+ "properties": {
1686
+ "module": {
1687
+ "type": "string"
1688
+ },
1689
+ "options": {
1690
+ "type": "object",
1691
+ "additionalProperties": true
1692
+ }
1693
+ },
1694
+ "required": [
1695
+ "module",
1696
+ "options"
1697
+ ]
1698
+ }
1699
+ },
1700
+ "Agent": {
1701
+ "type": "array",
1702
+ "items": {
1703
+ "type": "object",
1704
+ "properties": {
1705
+ "module": {
1706
+ "type": "string"
1707
+ },
1708
+ "options": {
1709
+ "type": "object",
1710
+ "additionalProperties": true
1711
+ }
1712
+ },
1713
+ "required": [
1714
+ "module",
1715
+ "options"
1716
+ ]
1717
+ }
1718
+ }
1719
+ }
1720
+ }
1721
+ ]
1722
+ }
1723
+ }
1724
+ },
1725
+ "httpCache": {
1726
+ "oneOf": [
1727
+ {
1728
+ "type": "boolean"
1729
+ },
1730
+ {
1731
+ "type": "object",
1732
+ "properties": {
1733
+ "store": {
1734
+ "type": "string"
1735
+ },
1736
+ "methods": {
1737
+ "type": "array",
1738
+ "items": {
1739
+ "type": "string"
1740
+ },
1741
+ "default": [
1742
+ "GET",
1743
+ "HEAD"
1744
+ ],
1745
+ "minItems": 1
1746
+ },
1747
+ "cacheTagsHeader": {
1748
+ "type": "string"
1749
+ },
1750
+ "maxSize": {
1751
+ "type": "integer"
1752
+ },
1753
+ "maxEntrySize": {
1754
+ "type": "integer"
1755
+ },
1756
+ "maxCount": {
1757
+ "type": "integer"
1758
+ },
1759
+ "origins": {
1760
+ "type": "array",
1761
+ "items": {
1762
+ "type": "string"
1763
+ },
1764
+ "description": "Whitelist of origins to cache. Supports exact strings and regex patterns (e.g., \"/https:\\\\/\\\\/.*\\\\.example\\\\.com/\")."
1765
+ },
1766
+ "cacheByDefault": {
1767
+ "type": "integer",
1768
+ "description": "Default cache duration in seconds for responses without explicit expiration headers."
1769
+ },
1770
+ "type": {
1771
+ "type": "string",
1772
+ "enum": [
1773
+ "shared",
1774
+ "private"
1775
+ ],
1776
+ "default": "shared",
1777
+ "description": "Cache type. \"shared\" caches may be shared between users, \"private\" caches are user-specific."
1778
+ }
1779
+ }
1780
+ }
1781
+ ]
1782
+ },
1783
+ "watch": {
1784
+ "anyOf": [
1785
+ {
1786
+ "type": "boolean"
1787
+ },
1788
+ {
1789
+ "type": "string"
1790
+ }
1791
+ ]
1792
+ },
1793
+ "managementApi": {
1794
+ "anyOf": [
1795
+ {
1796
+ "type": "boolean"
1797
+ },
1798
+ {
1799
+ "type": "string"
1800
+ },
1801
+ {
1802
+ "type": "object",
1803
+ "properties": {
1804
+ "logs": {
1805
+ "type": "object",
1806
+ "properties": {
1807
+ "maxSize": {
1808
+ "type": "number",
1809
+ "minimum": 5,
1810
+ "default": 200
1811
+ }
1812
+ },
1813
+ "additionalProperties": false
1814
+ },
1815
+ "socket": {
1816
+ "type": "string",
1817
+ "description": "Custom path for the control socket. If not specified, uses the default platform-specific location."
1818
+ }
1819
+ },
1820
+ "additionalProperties": false
1821
+ }
1822
+ ],
1823
+ "default": true
1824
+ },
1825
+ "management": {
1826
+ "anyOf": [
1827
+ {
1828
+ "type": "boolean"
1829
+ },
1830
+ {
1831
+ "type": "object",
1832
+ "properties": {
1833
+ "enabled": {
1834
+ "type": "boolean",
1835
+ "default": true
1836
+ },
1837
+ "operations": {
1838
+ "type": "array",
1839
+ "items": {
1840
+ "type": "string"
1841
+ }
1842
+ }
1843
+ },
1844
+ "additionalProperties": false
1845
+ }
1846
+ ]
1847
+ },
1848
+ "metrics": {
1849
+ "anyOf": [
1850
+ {
1851
+ "type": "boolean"
1852
+ },
1853
+ {
1854
+ "type": "object",
1855
+ "properties": {
1856
+ "port": {
1857
+ "anyOf": [
1858
+ {
1859
+ "type": "integer"
1860
+ },
1861
+ {
1862
+ "type": "string"
1863
+ }
1864
+ ]
1865
+ },
1866
+ "enabled": {
1867
+ "anyOf": [
1868
+ {
1869
+ "type": "boolean"
1870
+ },
1871
+ {
1872
+ "type": "string"
1873
+ }
1874
+ ]
1875
+ },
1876
+ "hostname": {
1877
+ "type": "string"
1878
+ },
1879
+ "endpoint": {
1880
+ "type": "string"
1881
+ },
1882
+ "https": {
1883
+ "type": "object",
1884
+ "properties": {
1885
+ "allowHTTP1": {
1886
+ "type": "boolean"
1887
+ },
1888
+ "key": {
1889
+ "anyOf": [
1890
+ {
1891
+ "type": "string"
1892
+ },
1893
+ {
1894
+ "type": "object",
1895
+ "properties": {
1896
+ "path": {
1897
+ "type": "string",
1898
+ "resolvePath": true
1899
+ }
1900
+ },
1901
+ "additionalProperties": false
1902
+ },
1903
+ {
1904
+ "type": "array",
1905
+ "items": {
1906
+ "anyOf": [
1907
+ {
1908
+ "type": "string"
1909
+ },
1910
+ {
1911
+ "type": "object",
1912
+ "properties": {
1913
+ "path": {
1914
+ "type": "string",
1915
+ "resolvePath": true
1916
+ }
1917
+ },
1918
+ "additionalProperties": false
1919
+ }
1920
+ ]
1921
+ }
1922
+ }
1923
+ ]
1924
+ },
1925
+ "cert": {
1926
+ "anyOf": [
1927
+ {
1928
+ "type": "string"
1929
+ },
1930
+ {
1931
+ "type": "object",
1932
+ "properties": {
1933
+ "path": {
1934
+ "type": "string",
1935
+ "resolvePath": true
1936
+ }
1937
+ },
1938
+ "additionalProperties": false
1939
+ },
1940
+ {
1941
+ "type": "array",
1942
+ "items": {
1943
+ "anyOf": [
1944
+ {
1945
+ "type": "string"
1946
+ },
1947
+ {
1948
+ "type": "object",
1949
+ "properties": {
1950
+ "path": {
1951
+ "type": "string",
1952
+ "resolvePath": true
1953
+ }
1954
+ },
1955
+ "additionalProperties": false
1956
+ }
1957
+ ]
1958
+ }
1959
+ }
1960
+ ]
1961
+ },
1962
+ "requestCert": {
1963
+ "type": "boolean"
1964
+ },
1965
+ "rejectUnauthorized": {
1966
+ "type": "boolean"
1967
+ }
1968
+ },
1969
+ "additionalProperties": false,
1970
+ "required": [
1971
+ "key",
1972
+ "cert"
1973
+ ]
1974
+ },
1975
+ "auth": {
1976
+ "type": "object",
1977
+ "properties": {
1978
+ "username": {
1979
+ "type": "string"
1980
+ },
1981
+ "password": {
1982
+ "type": "string"
1983
+ }
1984
+ },
1985
+ "additionalProperties": false,
1986
+ "required": [
1987
+ "username",
1988
+ "password"
1989
+ ]
1990
+ },
1991
+ "labels": {
1992
+ "type": "object",
1993
+ "additionalProperties": {
1994
+ "type": "string"
1995
+ }
1996
+ },
1997
+ "applicationLabel": {
1998
+ "type": "string",
1999
+ "default": "applicationId",
2000
+ "description": "The label name to use for the application identifier in metrics (e.g., applicationId, serviceId)"
2001
+ },
2002
+ "httpClientMetrics": {
2003
+ "anyOf": [
2004
+ {
2005
+ "type": "boolean"
2006
+ },
2007
+ {
2008
+ "type": "string"
2009
+ }
2010
+ ],
2011
+ "default": false,
2012
+ "description": "Enable outgoing HTTP client request duration metrics"
2013
+ },
2014
+ "readiness": {
2015
+ "anyOf": [
2016
+ {
2017
+ "type": "boolean"
2018
+ },
2019
+ {
2020
+ "type": "object",
2021
+ "properties": {
2022
+ "endpoint": {
2023
+ "type": "string"
2024
+ },
2025
+ "success": {
2026
+ "type": "object",
2027
+ "properties": {
2028
+ "statusCode": {
2029
+ "type": "number"
2030
+ },
2031
+ "body": {
2032
+ "type": "string"
2033
+ }
2034
+ },
2035
+ "additionalProperties": false
2036
+ },
2037
+ "fail": {
2038
+ "type": "object",
2039
+ "properties": {
2040
+ "statusCode": {
2041
+ "type": "number"
2042
+ },
2043
+ "body": {
2044
+ "type": "string"
2045
+ }
2046
+ },
2047
+ "additionalProperties": false
2048
+ }
2049
+ },
2050
+ "additionalProperties": false
2051
+ }
2052
+ ]
2053
+ },
2054
+ "liveness": {
2055
+ "anyOf": [
2056
+ {
2057
+ "type": "boolean"
2058
+ },
2059
+ {
2060
+ "type": "object",
2061
+ "properties": {
2062
+ "endpoint": {
2063
+ "type": "string"
2064
+ },
2065
+ "success": {
2066
+ "type": "object",
2067
+ "properties": {
2068
+ "statusCode": {
2069
+ "type": "number"
2070
+ },
2071
+ "body": {
2072
+ "type": "string"
2073
+ }
2074
+ },
2075
+ "additionalProperties": false
2076
+ },
2077
+ "fail": {
2078
+ "type": "object",
2079
+ "properties": {
2080
+ "statusCode": {
2081
+ "type": "number"
2082
+ },
2083
+ "body": {
2084
+ "type": "string"
2085
+ }
2086
+ },
2087
+ "additionalProperties": false
2088
+ }
2089
+ },
2090
+ "additionalProperties": false
2091
+ }
2092
+ ]
2093
+ },
2094
+ "healthChecksTimeouts": {
2095
+ "anyOf": [
2096
+ {
2097
+ "type": "integer"
2098
+ },
2099
+ {
2100
+ "type": "string"
2101
+ }
2102
+ ],
2103
+ "default": 5000,
2104
+ "deprecated": true,
2105
+ "description": "Deprecated. Health probe timeout configuration is no longer used."
2106
+ },
2107
+ "plugins": {
2108
+ "type": "array",
2109
+ "items": {
2110
+ "anyOf": [
2111
+ {
2112
+ "type": "string",
2113
+ "resolvePath": true
2114
+ }
2115
+ ]
2116
+ }
2117
+ },
2118
+ "timeout": {
2119
+ "anyOf": [
2120
+ {
2121
+ "type": "integer"
2122
+ },
2123
+ {
2124
+ "type": "string"
2125
+ }
2126
+ ],
2127
+ "default": 10000
2128
+ },
2129
+ "otlpExporter": {
2130
+ "type": "object",
2131
+ "description": "Configuration for exporting metrics to an OTLP endpoint",
2132
+ "properties": {
2133
+ "enabled": {
2134
+ "anyOf": [
2135
+ {
2136
+ "type": "boolean"
2137
+ },
2138
+ {
2139
+ "type": "string"
2140
+ }
2141
+ ],
2142
+ "description": "Enable or disable OTLP metrics export"
2143
+ },
2144
+ "endpoint": {
2145
+ "type": "string",
2146
+ "description": "OTLP endpoint URL (e.g., http://collector:4318/v1/metrics)"
2147
+ },
2148
+ "interval": {
2149
+ "anyOf": [
2150
+ {
2151
+ "type": "integer"
2152
+ },
2153
+ {
2154
+ "type": "string"
2155
+ }
2156
+ ],
2157
+ "default": 60000,
2158
+ "description": "Interval in milliseconds between metric pushes"
2159
+ },
2160
+ "headers": {
2161
+ "type": "object",
2162
+ "additionalProperties": {
2163
+ "type": "string"
2164
+ },
2165
+ "description": "Additional HTTP headers for authentication"
2166
+ },
2167
+ "serviceName": {
2168
+ "type": "string",
2169
+ "description": "Service name for OTLP resource attributes"
2170
+ },
2171
+ "serviceVersion": {
2172
+ "type": "string",
2173
+ "description": "Service version for OTLP resource attributes"
2174
+ }
2175
+ },
2176
+ "required": [
2177
+ "endpoint"
2178
+ ],
2179
+ "additionalProperties": false
2180
+ },
2181
+ "opentelemetry": {
2182
+ "type": "object",
2183
+ "description": "Configuration for forwarding user OpenTelemetry metrics to an OTLP endpoint",
2184
+ "properties": {
2185
+ "enabled": {
2186
+ "anyOf": [
2187
+ {
2188
+ "type": "boolean"
2189
+ },
2190
+ {
2191
+ "type": "string"
2192
+ }
2193
+ ],
2194
+ "description": "Enable or disable OpenTelemetry metrics forwarding"
2195
+ },
2196
+ "endpoint": {
2197
+ "type": "string",
2198
+ "description": "OTLP metrics endpoint URL (e.g., http://collector:4318/v1/metrics)"
2199
+ },
2200
+ "interval": {
2201
+ "anyOf": [
2202
+ {
2203
+ "type": "integer"
2204
+ },
2205
+ {
2206
+ "type": "string"
2207
+ }
2208
+ ],
2209
+ "default": 60000,
2210
+ "description": "Interval in milliseconds between metric forwards"
2211
+ },
2212
+ "headers": {
2213
+ "type": "object",
2214
+ "additionalProperties": {
2215
+ "type": "string"
2216
+ },
2217
+ "description": "Additional HTTP headers for authentication"
2218
+ }
2219
+ },
2220
+ "required": [
2221
+ "endpoint"
2222
+ ],
2223
+ "additionalProperties": false
2224
+ },
2225
+ "httpCustomLabels": {
2226
+ "type": "array",
2227
+ "description": "Custom labels to add to HTTP metrics (http_request_all_duration_seconds). Each label extracts its value from an HTTP request header.",
2228
+ "items": {
2229
+ "type": "object",
2230
+ "properties": {
2231
+ "name": {
2232
+ "type": "string",
2233
+ "description": "The label name to use in metrics"
2234
+ },
2235
+ "header": {
2236
+ "type": "string",
2237
+ "description": "The HTTP request header to extract the value from"
2238
+ },
2239
+ "default": {
2240
+ "type": "string",
2241
+ "description": "Default value when header is missing (defaults to \"unknown\")"
2242
+ }
2243
+ },
2244
+ "required": [
2245
+ "name",
2246
+ "header"
2247
+ ],
2248
+ "additionalProperties": false
2249
+ }
2250
+ }
2251
+ },
2252
+ "additionalProperties": false
2253
+ }
2254
+ ]
2255
+ },
2256
+ "telemetry": {
2257
+ "type": "object",
2258
+ "properties": {
2259
+ "enabled": {
2260
+ "anyOf": [
2261
+ {
2262
+ "type": "boolean"
2263
+ },
2264
+ {
2265
+ "type": "string"
2266
+ }
2267
+ ]
2268
+ },
2269
+ "applicationName": {
2270
+ "type": "string",
2271
+ "description": "The name of the application. Defaults to the folder name if not specified."
2272
+ },
2273
+ "version": {
2274
+ "type": "string",
2275
+ "description": "The version of the application (optional)"
2276
+ },
2277
+ "skip": {
2278
+ "type": "array",
2279
+ "description": "An array of paths to skip when creating spans. Useful for health checks and other endpoints that do not need to be traced.",
2280
+ "items": {
2281
+ "type": "object",
2282
+ "properties": {
2283
+ "path": {
2284
+ "type": "string",
2285
+ "description": "The path to skip. Can be a string or a regex."
2286
+ },
2287
+ "method": {
2288
+ "description": "HTTP method to skip",
2289
+ "type": "string",
2290
+ "enum": [
2291
+ "GET",
2292
+ "POST",
2293
+ "PUT",
2294
+ "DELETE",
2295
+ "PATCH",
2296
+ "HEAD",
2297
+ "OPTIONS"
2298
+ ]
2299
+ }
2300
+ }
2301
+ }
2302
+ },
2303
+ "exporter": {
2304
+ "anyOf": [
2305
+ {
2306
+ "type": "array",
2307
+ "items": {
2308
+ "type": "object",
2309
+ "properties": {
2310
+ "type": {
2311
+ "type": "string",
2312
+ "enum": [
2313
+ "console",
2314
+ "otlp",
2315
+ "zipkin",
2316
+ "memory",
2317
+ "file"
2318
+ ],
2319
+ "default": "console"
2320
+ },
2321
+ "options": {
2322
+ "type": "object",
2323
+ "description": "Options for the exporter. These are passed directly to the exporter.",
2324
+ "properties": {
2325
+ "url": {
2326
+ "type": "string",
2327
+ "description": "The URL to send the traces to. Not used for console or memory exporters."
2328
+ },
2329
+ "headers": {
2330
+ "type": "object",
2331
+ "description": "Headers to send to the exporter. Not used for console or memory exporters."
2332
+ },
2333
+ "path": {
2334
+ "type": "string",
2335
+ "description": "The path to write the traces to. Only for file exporter."
2336
+ },
2337
+ "protocol": {
2338
+ "type": "string",
2339
+ "enum": [
2340
+ "http",
2341
+ "grpc"
2342
+ ],
2343
+ "description": "The OTLP transport protocol to use. Only for the otlp exporter. Defaults to http."
2344
+ },
2345
+ "transport": {
2346
+ "type": "string",
2347
+ "enum": [
2348
+ "http",
2349
+ "grpc"
2350
+ ],
2351
+ "description": "Alias for protocol. Only for the otlp exporter. Defaults to http."
2352
+ }
2353
+ }
2354
+ },
2355
+ "additionalProperties": false
2356
+ }
2357
+ }
2358
+ },
2359
+ {
2360
+ "type": "object",
2361
+ "properties": {
2362
+ "type": {
2363
+ "type": "string",
2364
+ "enum": [
2365
+ "console",
2366
+ "otlp",
2367
+ "zipkin",
2368
+ "memory",
2369
+ "file"
2370
+ ],
2371
+ "default": "console"
2372
+ },
2373
+ "options": {
2374
+ "type": "object",
2375
+ "description": "Options for the exporter. These are passed directly to the exporter.",
2376
+ "properties": {
2377
+ "url": {
2378
+ "type": "string",
2379
+ "description": "The URL to send the traces to. Not used for console or memory exporters."
2380
+ },
2381
+ "headers": {
2382
+ "type": "object",
2383
+ "description": "Headers to send to the exporter. Not used for console or memory exporters."
2384
+ },
2385
+ "path": {
2386
+ "type": "string",
2387
+ "description": "The path to write the traces to. Only for file exporter."
2388
+ },
2389
+ "protocol": {
2390
+ "type": "string",
2391
+ "enum": [
2392
+ "http",
2393
+ "grpc"
2394
+ ],
2395
+ "description": "The OTLP transport protocol to use. Only for the otlp exporter. Defaults to http."
2396
+ },
2397
+ "transport": {
2398
+ "type": "string",
2399
+ "enum": [
2400
+ "http",
2401
+ "grpc"
2402
+ ],
2403
+ "description": "Alias for protocol. Only for the otlp exporter. Defaults to http."
2404
+ }
2405
+ }
2406
+ },
2407
+ "additionalProperties": false
2408
+ }
2409
+ }
2410
+ ]
2411
+ },
2412
+ "diagLogger": {
2413
+ "anyOf": [
2414
+ {
2415
+ "type": "boolean"
2416
+ },
2417
+ {
2418
+ "type": "string"
2419
+ }
2420
+ ],
2421
+ "description": "Enable the OpenTelemetry diagnostic logger. Diagnostic messages are forwarded to the Platformatic global logger using the current logger level."
2422
+ }
2423
+ },
2424
+ "required": [
2425
+ "applicationName"
2426
+ ],
2427
+ "additionalProperties": false
2428
+ },
2429
+ "verticalScaler": {
2430
+ "type": "object",
2431
+ "properties": {
2432
+ "enabled": {
2433
+ "type": "boolean",
2434
+ "default": true
2435
+ },
2436
+ "maxTotalWorkers": {
2437
+ "type": "number",
2438
+ "minimum": 1
2439
+ },
2440
+ "maxTotalMemory": {
2441
+ "type": "number",
2442
+ "minimum": 0
2443
+ },
2444
+ "minWorkers": {
2445
+ "type": "number",
2446
+ "minimum": 1
2447
+ },
2448
+ "maxWorkers": {
2449
+ "type": "number",
2450
+ "minimum": 1
2451
+ },
2452
+ "cooldownSec": {
2453
+ "type": "number",
2454
+ "minimum": 0
2455
+ },
2456
+ "gracePeriod": {
2457
+ "type": "number",
2458
+ "minimum": 0
2459
+ },
2460
+ "scaleUpELU": {
2461
+ "type": "number",
2462
+ "minimum": 0,
2463
+ "maximum": 1
2464
+ },
2465
+ "scaleDownELU": {
2466
+ "type": "number",
2467
+ "minimum": 0,
2468
+ "maximum": 1
2469
+ },
2470
+ "timeWindowSec": {
2471
+ "type": "number",
2472
+ "minimum": 0,
2473
+ "deprecated": true
2474
+ },
2475
+ "scaleDownTimeWindowSec": {
2476
+ "type": "number",
2477
+ "minimum": 0,
2478
+ "deprecated": true
2479
+ },
2480
+ "scaleIntervalSec": {
2481
+ "type": "number",
2482
+ "minimum": 0,
2483
+ "deprecated": true
2484
+ }
2485
+ },
2486
+ "additionalProperties": false
2487
+ },
2488
+ "inspectorOptions": {
2489
+ "type": "object",
2490
+ "properties": {
2491
+ "host": {
2492
+ "type": "string"
2493
+ },
2494
+ "port": {
2495
+ "type": "number"
2496
+ },
2497
+ "breakFirstLine": {
2498
+ "type": "boolean"
2499
+ },
2500
+ "watchDisabled": {
2501
+ "type": "boolean"
2502
+ }
2503
+ }
2504
+ },
2505
+ "applicationTimeout": {
2506
+ "anyOf": [
2507
+ {
2508
+ "type": "number",
2509
+ "minimum": 1
2510
+ },
2511
+ {
2512
+ "type": "string"
2513
+ }
2514
+ ],
2515
+ "default": 300000
2516
+ },
2517
+ "startupConcurrency": {
2518
+ "anyOf": [
2519
+ {
2520
+ "type": "number",
2521
+ "minimum": 1
2522
+ },
2523
+ {
2524
+ "type": "string"
2525
+ }
2526
+ ]
2527
+ },
2528
+ "messagingTimeout": {
2529
+ "anyOf": [
2530
+ {
2531
+ "type": "number",
2532
+ "minimum": 1
2533
+ },
2534
+ {
2535
+ "type": "string"
2536
+ }
2537
+ ],
2538
+ "default": 30000
2539
+ },
2540
+ "env": {
2541
+ "type": "object",
2542
+ "additionalProperties": {
2543
+ "type": "string"
2544
+ }
2545
+ },
2546
+ "envfile": {
2547
+ "type": "string"
2548
+ },
2549
+ "strictEnv": {
2550
+ "anyOf": [
2551
+ {
2552
+ "type": "boolean"
2553
+ },
2554
+ {
2555
+ "type": "string"
2556
+ }
2557
+ ],
2558
+ "description": "When set to true, the configuration loading fails if a {PLT_*} placeholder references an environment variable which is not set. When set to \"warn\", a warning listing the missing variables is logged but the placeholders are still replaced with an empty string. Defaults to false."
2559
+ },
2560
+ "sourceMaps": {
2561
+ "type": "boolean",
2562
+ "default": false
2563
+ },
2564
+ "nodeModulesSourceMaps": {
2565
+ "type": "array",
2566
+ "items": {
2567
+ "type": "string"
2568
+ },
2569
+ "default": []
2570
+ },
2571
+ "scheduler": {
2572
+ "type": "array",
2573
+ "items": {
2574
+ "type": "object",
2575
+ "properties": {
2576
+ "enabled": {
2577
+ "anyOf": [
2578
+ {
2579
+ "type": "boolean"
2580
+ },
2581
+ {
2582
+ "type": "string"
2583
+ }
2584
+ ],
2585
+ "default": true
2586
+ },
2587
+ "name": {
2588
+ "type": "string"
2589
+ },
2590
+ "cron": {
2591
+ "type": "string"
2592
+ },
2593
+ "callbackUrl": {
2594
+ "type": "string"
2595
+ },
2596
+ "method": {
2597
+ "type": "string",
2598
+ "enum": [
2599
+ "GET",
2600
+ "POST",
2601
+ "PUT",
2602
+ "PATCH",
2603
+ "DELETE"
2604
+ ],
2605
+ "default": "GET"
2606
+ },
2607
+ "headers": {
2608
+ "type": "object",
2609
+ "additionalProperties": {
2610
+ "type": "string"
2611
+ }
2612
+ },
2613
+ "body": {
2614
+ "anyOf": [
2615
+ {
2616
+ "type": "string"
2617
+ },
2618
+ {
2619
+ "type": "object",
2620
+ "additionalProperties": true
2621
+ }
2622
+ ]
2623
+ },
2624
+ "maxRetries": {
2625
+ "type": "number",
2626
+ "minimum": 0,
2627
+ "default": 3
2628
+ }
2629
+ },
2630
+ "required": [
2631
+ "name",
2632
+ "cron",
2633
+ "callbackUrl"
2634
+ ]
2635
+ }
2636
+ },
2637
+ "policies": {
2638
+ "type": "object",
2639
+ "properties": {
2640
+ "deny": {
2641
+ "type": "object",
2642
+ "patternProperties": {
2643
+ "^.*$": {
2644
+ "oneOf": [
2645
+ {
2646
+ "type": "string"
2647
+ },
2648
+ {
2649
+ "type": "array",
2650
+ "items": {
2651
+ "type": "string"
2652
+ },
2653
+ "minItems": 1
2654
+ }
2655
+ ]
2656
+ }
2657
+ }
2658
+ }
2659
+ },
2660
+ "required": [
2661
+ "deny"
2662
+ ],
2663
+ "additionalProperties": false
2664
+ },
2665
+ "compileCache": {
2666
+ "anyOf": [
2667
+ {
2668
+ "type": "boolean"
2669
+ },
2670
+ {
2671
+ "type": "object",
2672
+ "properties": {
2673
+ "enabled": {
2674
+ "type": "boolean",
2675
+ "default": true,
2676
+ "description": "Enable Node.js module compile cache for faster startup"
2677
+ },
2678
+ "directory": {
2679
+ "type": "string",
2680
+ "description": "Directory to store compile cache. Defaults to .plt/compile-cache in app root"
2681
+ }
2682
+ },
2683
+ "additionalProperties": false
2684
+ }
2685
+ ]
2686
+ },
2687
+ "application": {
2688
+ "type": "object",
2689
+ "properties": {
2690
+ "reuseTcpPorts": {
2691
+ "type": "boolean",
2692
+ "default": true
2693
+ },
2694
+ "workers": {
2695
+ "anyOf": [
2696
+ {
2697
+ "type": "number"
2698
+ },
2699
+ {
2700
+ "type": "string"
2701
+ },
2702
+ {
2703
+ "type": "object",
2704
+ "properties": {
2705
+ "static": {
2706
+ "type": "number",
2707
+ "minimum": 1
2708
+ },
2709
+ "minimum": {
2710
+ "type": "number",
2711
+ "minimum": 1
2712
+ },
2713
+ "maximum": {
2714
+ "type": "number",
2715
+ "minimum": 0
2716
+ },
2717
+ "scaleUpELU": {
2718
+ "type": "number",
2719
+ "minimum": 0,
2720
+ "maximum": 1
2721
+ },
2722
+ "scaleDownELU": {
2723
+ "type": "number",
2724
+ "minimum": 0,
2725
+ "maximum": 1
2726
+ }
2727
+ }
2728
+ }
2729
+ ]
2730
+ },
2731
+ "health": {
2732
+ "type": "object",
2733
+ "default": {},
2734
+ "properties": {
2735
+ "enabled": {
2736
+ "anyOf": [
2737
+ {
2738
+ "type": "boolean"
2739
+ },
2740
+ {
2741
+ "type": "string"
2742
+ }
2743
+ ]
2744
+ },
2745
+ "interval": {
2746
+ "anyOf": [
2747
+ {
2748
+ "type": "number",
2749
+ "minimum": 0
2750
+ },
2751
+ {
2752
+ "type": "string"
2753
+ }
2754
+ ]
2755
+ },
2756
+ "gracePeriod": {
2757
+ "anyOf": [
2758
+ {
2759
+ "type": "number",
2760
+ "minimum": 0
2761
+ },
2762
+ {
2763
+ "type": "string"
2764
+ }
2765
+ ]
2766
+ },
2767
+ "maxUnhealthyChecks": {
2768
+ "anyOf": [
2769
+ {
2770
+ "type": "number",
2771
+ "minimum": 1
2772
+ },
2773
+ {
2774
+ "type": "string"
2775
+ }
2776
+ ]
2777
+ },
2778
+ "maxELU": {
2779
+ "anyOf": [
2780
+ {
2781
+ "type": "number",
2782
+ "minimum": 0,
2783
+ "maximum": 1
2784
+ },
2785
+ {
2786
+ "type": "string"
2787
+ }
2788
+ ]
2789
+ },
2790
+ "maxEventLoopDelay": {
2791
+ "anyOf": [
2792
+ {
2793
+ "type": "number",
2794
+ "minimum": 0
2795
+ },
2796
+ {
2797
+ "type": "string"
2798
+ }
2799
+ ]
2800
+ },
2801
+ "maxEventLoopDelayP99": {
2802
+ "anyOf": [
2803
+ {
2804
+ "type": "number",
2805
+ "minimum": 0
2806
+ },
2807
+ {
2808
+ "type": "string"
2809
+ }
2810
+ ]
2811
+ },
2812
+ "maxHeapUsed": {
2813
+ "anyOf": [
2814
+ {
2815
+ "type": "number",
2816
+ "minimum": 0,
2817
+ "maximum": 1
2818
+ },
2819
+ {
2820
+ "type": "string"
2821
+ }
2822
+ ]
2823
+ },
2824
+ "maxHeapTotal": {
2825
+ "anyOf": [
2826
+ {
2827
+ "type": "number",
2828
+ "minimum": 0
2829
+ },
2830
+ {
2831
+ "type": "string"
2832
+ }
2833
+ ]
2834
+ },
2835
+ "maxYoungGeneration": {
2836
+ "anyOf": [
2837
+ {
2838
+ "type": "number",
2839
+ "minimum": 0
2840
+ },
2841
+ {
2842
+ "type": "string"
2843
+ }
2844
+ ]
2845
+ },
2846
+ "codeRangeSize": {
2847
+ "anyOf": [
2848
+ {
2849
+ "type": "number",
2850
+ "minimum": 0
2851
+ },
2852
+ {
2853
+ "type": "string"
2854
+ }
2855
+ ]
2856
+ },
2857
+ "bufferPoolSize": {
2858
+ "anyOf": [
2859
+ {
2860
+ "type": "number",
2861
+ "minimum": 0
2862
+ },
2863
+ {
2864
+ "type": "string"
2865
+ }
2866
+ ]
2867
+ },
2868
+ "defaultHighWaterMark": {
2869
+ "anyOf": [
2870
+ {
2871
+ "type": "number",
2872
+ "minimum": 0
2873
+ },
2874
+ {
2875
+ "type": "string"
2876
+ }
2877
+ ]
2878
+ }
2879
+ },
2880
+ "additionalProperties": false
2881
+ },
2882
+ "restartOnError": {
2883
+ "description": "Overrides the runtime-level restartOnError for this application. Set to false or 0 to never restart the application when it crashes, a positive number to wait that amount of milliseconds between restarts, or true to use the default delay.",
2884
+ "anyOf": [
2885
+ {
2886
+ "type": "boolean"
2887
+ },
2888
+ {
2889
+ "type": "number",
2890
+ "minimum": 0
2891
+ }
2892
+ ]
2893
+ },
2894
+ "arguments": {
2895
+ "type": "array",
2896
+ "items": {
2897
+ "type": "string"
2898
+ }
2899
+ },
2900
+ "env": {
2901
+ "type": "object",
2902
+ "additionalProperties": {
2903
+ "type": "string"
2904
+ }
2905
+ },
2906
+ "envfile": {
2907
+ "type": "string"
2908
+ },
2909
+ "sourceMaps": {
2910
+ "type": "boolean"
2911
+ },
2912
+ "nodeModulesSourceMaps": {
2913
+ "type": "array",
2914
+ "items": {
2915
+ "type": "string"
2916
+ }
2917
+ },
2918
+ "packageManager": {
2919
+ "type": "string",
2920
+ "enum": [
2921
+ "npm",
2922
+ "pnpm",
2923
+ "yarn"
2924
+ ]
2925
+ },
2926
+ "preload": {
2927
+ "anyOf": [
2928
+ {
2929
+ "type": "string",
2930
+ "resolvePath": true
2931
+ },
2932
+ {
2933
+ "type": "array",
2934
+ "items": {
2935
+ "type": "string",
2936
+ "resolvePath": true
2937
+ }
2938
+ }
2939
+ ]
2940
+ },
2941
+ "nodeOptions": {
2942
+ "type": "string"
2943
+ },
2944
+ "execArgv": {
2945
+ "type": "array",
2946
+ "items": {
2947
+ "type": "string"
2948
+ }
2949
+ },
2950
+ "permissions": {
2951
+ "type": "object",
2952
+ "properties": {
2953
+ "fs": {
2954
+ "type": "object",
2955
+ "properties": {
2956
+ "read": {
2957
+ "type": "array",
2958
+ "items": {
2959
+ "type": "string"
2960
+ }
2961
+ },
2962
+ "write": {
2963
+ "type": "array",
2964
+ "items": {
2965
+ "type": "string"
2966
+ }
2967
+ }
2968
+ },
2969
+ "additionalProperties": false
2970
+ }
2971
+ },
2972
+ "additionalProperties": false
2973
+ },
2974
+ "telemetry": {
2975
+ "type": "object",
2976
+ "properties": {
2977
+ "instrumentations": {
2978
+ "type": "array",
2979
+ "description": "An array of instrumentations loaded if telemetry is enabled",
2980
+ "items": {
2981
+ "oneOf": [
2982
+ {
2983
+ "type": "string"
2984
+ },
2985
+ {
2986
+ "type": "object",
2987
+ "properties": {
2988
+ "package": {
2989
+ "type": "string"
2990
+ },
2991
+ "exportName": {
2992
+ "type": "string"
2993
+ },
2994
+ "options": {
2995
+ "type": "object",
2996
+ "additionalProperties": true
2997
+ }
2998
+ },
2999
+ "required": [
3000
+ "package"
3001
+ ]
3002
+ }
3003
+ ]
3004
+ }
3005
+ }
3006
+ }
3007
+ },
3008
+ "compileCache": {
3009
+ "anyOf": [
3010
+ {
3011
+ "type": "boolean"
3012
+ },
3013
+ {
3014
+ "type": "object",
3015
+ "properties": {
3016
+ "enabled": {
3017
+ "type": "boolean",
3018
+ "default": true,
3019
+ "description": "Enable Node.js module compile cache for faster startup"
3020
+ },
3021
+ "directory": {
3022
+ "type": "string",
3023
+ "description": "Directory to store compile cache. Defaults to .plt/compile-cache in app root"
3024
+ }
3025
+ },
3026
+ "additionalProperties": false
3027
+ }
3028
+ ]
3029
+ }
3030
+ },
3031
+ "additionalProperties": false
3032
+ }
3033
+ },
3034
+ "additionalProperties": false
3035
+ },
3036
+ "vite": {
3037
+ "type": "object",
3038
+ "properties": {
3039
+ "configFile": {
3040
+ "oneOf": [
3041
+ {
3042
+ "type": "string"
3043
+ },
3044
+ {
3045
+ "type": "boolean"
3046
+ }
3047
+ ]
3048
+ },
3049
+ "devServer": {
3050
+ "type": "object",
3051
+ "properties": {
3052
+ "strict": {
3053
+ "type": "boolean",
3054
+ "default": false
3055
+ }
3056
+ },
3057
+ "additionalProperties": false,
3058
+ "default": {}
3059
+ }
3060
+ },
3061
+ "default": {},
3062
+ "additionalProperties": false
3063
+ },
3064
+ "nitro": {
3065
+ "type": "object",
3066
+ "properties": {
3067
+ "outputDirectory": {
3068
+ "type": "string"
3069
+ },
3070
+ "entrypoint": {
3071
+ "type": "string",
3072
+ "default": "server/index.mjs"
3073
+ }
3074
+ },
3075
+ "default": {},
3076
+ "additionalProperties": false
3077
+ }
3078
+ },
3079
+ "additionalProperties": false
3080
+ }