@platformatic/next 3.4.1 → 3.5.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
- "$id": "https://schemas.platformatic.dev/@platformatic/next/3.4.1.json",
2
+ "$id": "https://schemas.platformatic.dev/@platformatic/next/3.5.0.json",
3
3
  "$schema": "http://json-schema.org/draft-07/schema#",
4
- "title": "Platformatic Next.js Stackable",
4
+ "title": "Platformatic Next.js Config",
5
5
  "type": "object",
6
6
  "properties": {
7
7
  "$schema": {
@@ -54,17 +54,25 @@
54
54
  "type": "object",
55
55
  "properties": {
56
56
  "target": {
57
- "type": "string",
58
- "resolveModule": true
57
+ "anyOf": [
58
+ {
59
+ "type": "string",
60
+ "resolveModule": true
61
+ },
62
+ {
63
+ "type": "string",
64
+ "resolvePath": true
65
+ }
66
+ ]
59
67
  },
60
68
  "options": {
61
69
  "type": "object"
62
70
  },
63
71
  "level": {
64
72
  "type": "string"
65
- },
66
- "additionalProperties": false
67
- }
73
+ }
74
+ },
75
+ "additionalProperties": false
68
76
  }
69
77
  },
70
78
  "options": {
@@ -87,6 +95,64 @@
87
95
  }
88
96
  },
89
97
  "additionalProperties": false
98
+ },
99
+ "formatters": {
100
+ "type": "object",
101
+ "properties": {
102
+ "path": {
103
+ "type": "string",
104
+ "resolvePath": true
105
+ }
106
+ },
107
+ "required": [
108
+ "path"
109
+ ],
110
+ "additionalProperties": false
111
+ },
112
+ "timestamp": {
113
+ "enum": [
114
+ "epochTime",
115
+ "unixTime",
116
+ "nullTime",
117
+ "isoTime"
118
+ ]
119
+ },
120
+ "redact": {
121
+ "type": "object",
122
+ "properties": {
123
+ "paths": {
124
+ "type": "array",
125
+ "items": {
126
+ "type": "string"
127
+ }
128
+ },
129
+ "censor": {
130
+ "type": "string",
131
+ "default": "[redacted]"
132
+ }
133
+ },
134
+ "required": [
135
+ "paths"
136
+ ],
137
+ "additionalProperties": false
138
+ },
139
+ "base": {
140
+ "anyOf": [
141
+ {
142
+ "type": "object",
143
+ "additionalProperties": true
144
+ },
145
+ {
146
+ "type": "null"
147
+ }
148
+ ]
149
+ },
150
+ "messageKey": {
151
+ "type": "string"
152
+ },
153
+ "customLevels": {
154
+ "type": "object",
155
+ "additionalProperties": true
90
156
  }
91
157
  },
92
158
  "required": [
@@ -118,6 +184,9 @@
118
184
  "https": {
119
185
  "type": "object",
120
186
  "properties": {
187
+ "allowHTTP1": {
188
+ "type": "boolean"
189
+ },
121
190
  "key": {
122
191
  "anyOf": [
123
192
  {
@@ -191,6 +260,12 @@
191
260
  }
192
261
  }
193
262
  ]
263
+ },
264
+ "requestCert": {
265
+ "type": "boolean"
266
+ },
267
+ "rejectUnauthorized": {
268
+ "type": "boolean"
194
269
  }
195
270
  },
196
271
  "additionalProperties": false,
@@ -287,7 +362,1329 @@
287
362
  }
288
363
  },
289
364
  "additionalProperties": false,
365
+ "required": [],
290
366
  "default": {}
367
+ },
368
+ "runtime": {
369
+ "type": "object",
370
+ "properties": {
371
+ "preload": {
372
+ "anyOf": [
373
+ {
374
+ "type": "string",
375
+ "resolvePath": true
376
+ },
377
+ {
378
+ "type": "array",
379
+ "items": {
380
+ "type": "string",
381
+ "resolvePath": true
382
+ }
383
+ }
384
+ ]
385
+ },
386
+ "basePath": {
387
+ "type": "string"
388
+ },
389
+ "services": {
390
+ "type": "array",
391
+ "items": {
392
+ "type": "object",
393
+ "anyOf": [
394
+ {
395
+ "required": [
396
+ "id",
397
+ "path"
398
+ ]
399
+ },
400
+ {
401
+ "required": [
402
+ "id",
403
+ "url"
404
+ ]
405
+ }
406
+ ],
407
+ "properties": {
408
+ "id": {
409
+ "type": "string"
410
+ },
411
+ "path": {
412
+ "type": "string",
413
+ "allowEmptyPaths": true,
414
+ "resolvePath": true
415
+ },
416
+ "config": {
417
+ "type": "string"
418
+ },
419
+ "url": {
420
+ "type": "string"
421
+ },
422
+ "gitBranch": {
423
+ "type": "string",
424
+ "default": "main"
425
+ },
426
+ "useHttp": {
427
+ "type": "boolean"
428
+ },
429
+ "workers": {
430
+ "anyOf": [
431
+ {
432
+ "type": "number",
433
+ "minimum": 1
434
+ },
435
+ {
436
+ "type": "string"
437
+ }
438
+ ]
439
+ },
440
+ "health": {
441
+ "type": "object",
442
+ "default": {},
443
+ "properties": {
444
+ "enabled": {
445
+ "anyOf": [
446
+ {
447
+ "type": "boolean"
448
+ },
449
+ {
450
+ "type": "string"
451
+ }
452
+ ]
453
+ },
454
+ "interval": {
455
+ "anyOf": [
456
+ {
457
+ "type": "number",
458
+ "minimum": 0
459
+ },
460
+ {
461
+ "type": "string"
462
+ }
463
+ ]
464
+ },
465
+ "gracePeriod": {
466
+ "anyOf": [
467
+ {
468
+ "type": "number",
469
+ "minimum": 0
470
+ },
471
+ {
472
+ "type": "string"
473
+ }
474
+ ]
475
+ },
476
+ "maxUnhealthyChecks": {
477
+ "anyOf": [
478
+ {
479
+ "type": "number",
480
+ "minimum": 1
481
+ },
482
+ {
483
+ "type": "string"
484
+ }
485
+ ]
486
+ },
487
+ "maxELU": {
488
+ "anyOf": [
489
+ {
490
+ "type": "number",
491
+ "minimum": 0,
492
+ "maximum": 1
493
+ },
494
+ {
495
+ "type": "string"
496
+ }
497
+ ]
498
+ },
499
+ "maxHeapUsed": {
500
+ "anyOf": [
501
+ {
502
+ "type": "number",
503
+ "minimum": 0,
504
+ "maximum": 1
505
+ },
506
+ {
507
+ "type": "string"
508
+ }
509
+ ]
510
+ },
511
+ "maxHeapTotal": {
512
+ "anyOf": [
513
+ {
514
+ "type": "number",
515
+ "minimum": 0
516
+ },
517
+ {
518
+ "type": "string"
519
+ }
520
+ ]
521
+ },
522
+ "maxYoungGeneration": {
523
+ "anyOf": [
524
+ {
525
+ "type": "number",
526
+ "minimum": 0
527
+ },
528
+ {
529
+ "type": "string"
530
+ }
531
+ ]
532
+ }
533
+ },
534
+ "additionalProperties": false
535
+ },
536
+ "dependencies": {
537
+ "type": "array",
538
+ "items": {
539
+ "type": "string"
540
+ },
541
+ "default": []
542
+ },
543
+ "arguments": {
544
+ "type": "array",
545
+ "items": {
546
+ "type": "string"
547
+ }
548
+ },
549
+ "env": {
550
+ "type": "object",
551
+ "additionalProperties": {
552
+ "type": "string"
553
+ }
554
+ },
555
+ "envfile": {
556
+ "type": "string"
557
+ },
558
+ "sourceMaps": {
559
+ "type": "boolean",
560
+ "default": false
561
+ },
562
+ "packageManager": {
563
+ "type": "string",
564
+ "enum": [
565
+ "npm",
566
+ "pnpm",
567
+ "yarn"
568
+ ]
569
+ },
570
+ "preload": {
571
+ "anyOf": [
572
+ {
573
+ "type": "string",
574
+ "resolvePath": true
575
+ },
576
+ {
577
+ "type": "array",
578
+ "items": {
579
+ "type": "string",
580
+ "resolvePath": true
581
+ }
582
+ }
583
+ ]
584
+ },
585
+ "nodeOptions": {
586
+ "type": "string"
587
+ },
588
+ "telemetry": {
589
+ "type": "object",
590
+ "properties": {
591
+ "instrumentations": {
592
+ "type": "array",
593
+ "description": "An array of instrumentations loaded if telemetry is enabled",
594
+ "items": {
595
+ "oneOf": [
596
+ {
597
+ "type": "string"
598
+ },
599
+ {
600
+ "type": "object",
601
+ "properties": {
602
+ "package": {
603
+ "type": "string"
604
+ },
605
+ "exportName": {
606
+ "type": "string"
607
+ },
608
+ "options": {
609
+ "type": "object",
610
+ "additionalProperties": true
611
+ }
612
+ },
613
+ "required": [
614
+ "package"
615
+ ]
616
+ }
617
+ ]
618
+ }
619
+ }
620
+ }
621
+ }
622
+ }
623
+ }
624
+ },
625
+ "workers": {
626
+ "anyOf": [
627
+ {
628
+ "type": "number",
629
+ "minimum": 1
630
+ },
631
+ {
632
+ "type": "string"
633
+ }
634
+ ],
635
+ "default": 1
636
+ },
637
+ "logger": {
638
+ "type": "object",
639
+ "properties": {
640
+ "level": {
641
+ "type": "string",
642
+ "default": "info",
643
+ "oneOf": [
644
+ {
645
+ "enum": [
646
+ "fatal",
647
+ "error",
648
+ "warn",
649
+ "info",
650
+ "debug",
651
+ "trace",
652
+ "silent"
653
+ ]
654
+ },
655
+ {
656
+ "pattern": "^\\{.+\\}$"
657
+ }
658
+ ]
659
+ },
660
+ "transport": {
661
+ "anyOf": [
662
+ {
663
+ "type": "object",
664
+ "properties": {
665
+ "target": {
666
+ "type": "string",
667
+ "resolveModule": true
668
+ },
669
+ "options": {
670
+ "type": "object"
671
+ }
672
+ },
673
+ "additionalProperties": false
674
+ },
675
+ {
676
+ "type": "object",
677
+ "properties": {
678
+ "targets": {
679
+ "type": "array",
680
+ "items": {
681
+ "type": "object",
682
+ "properties": {
683
+ "target": {
684
+ "anyOf": [
685
+ {
686
+ "type": "string",
687
+ "resolveModule": true
688
+ },
689
+ {
690
+ "type": "string",
691
+ "resolvePath": true
692
+ }
693
+ ]
694
+ },
695
+ "options": {
696
+ "type": "object"
697
+ },
698
+ "level": {
699
+ "type": "string"
700
+ }
701
+ },
702
+ "additionalProperties": false
703
+ }
704
+ },
705
+ "options": {
706
+ "type": "object"
707
+ }
708
+ },
709
+ "additionalProperties": false
710
+ }
711
+ ]
712
+ },
713
+ "pipeline": {
714
+ "type": "object",
715
+ "properties": {
716
+ "target": {
717
+ "type": "string",
718
+ "resolveModule": true
719
+ },
720
+ "options": {
721
+ "type": "object"
722
+ }
723
+ },
724
+ "additionalProperties": false
725
+ },
726
+ "formatters": {
727
+ "type": "object",
728
+ "properties": {
729
+ "path": {
730
+ "type": "string",
731
+ "resolvePath": true
732
+ }
733
+ },
734
+ "required": [
735
+ "path"
736
+ ],
737
+ "additionalProperties": false
738
+ },
739
+ "timestamp": {
740
+ "enum": [
741
+ "epochTime",
742
+ "unixTime",
743
+ "nullTime",
744
+ "isoTime"
745
+ ]
746
+ },
747
+ "redact": {
748
+ "type": "object",
749
+ "properties": {
750
+ "paths": {
751
+ "type": "array",
752
+ "items": {
753
+ "type": "string"
754
+ }
755
+ },
756
+ "censor": {
757
+ "type": "string",
758
+ "default": "[redacted]"
759
+ }
760
+ },
761
+ "required": [
762
+ "paths"
763
+ ],
764
+ "additionalProperties": false
765
+ },
766
+ "base": {
767
+ "anyOf": [
768
+ {
769
+ "type": "object",
770
+ "additionalProperties": true
771
+ },
772
+ {
773
+ "type": "null"
774
+ }
775
+ ]
776
+ },
777
+ "messageKey": {
778
+ "type": "string"
779
+ },
780
+ "customLevels": {
781
+ "type": "object",
782
+ "additionalProperties": true
783
+ }
784
+ },
785
+ "required": [
786
+ "level"
787
+ ],
788
+ "default": {},
789
+ "additionalProperties": true
790
+ },
791
+ "server": {
792
+ "type": "object",
793
+ "properties": {
794
+ "hostname": {
795
+ "type": "string",
796
+ "default": "127.0.0.1"
797
+ },
798
+ "port": {
799
+ "anyOf": [
800
+ {
801
+ "type": "integer"
802
+ },
803
+ {
804
+ "type": "string"
805
+ }
806
+ ]
807
+ },
808
+ "http2": {
809
+ "type": "boolean"
810
+ },
811
+ "https": {
812
+ "type": "object",
813
+ "properties": {
814
+ "allowHTTP1": {
815
+ "type": "boolean"
816
+ },
817
+ "key": {
818
+ "anyOf": [
819
+ {
820
+ "type": "string"
821
+ },
822
+ {
823
+ "type": "object",
824
+ "properties": {
825
+ "path": {
826
+ "type": "string",
827
+ "resolvePath": true
828
+ }
829
+ },
830
+ "additionalProperties": false
831
+ },
832
+ {
833
+ "type": "array",
834
+ "items": {
835
+ "anyOf": [
836
+ {
837
+ "type": "string"
838
+ },
839
+ {
840
+ "type": "object",
841
+ "properties": {
842
+ "path": {
843
+ "type": "string",
844
+ "resolvePath": true
845
+ }
846
+ },
847
+ "additionalProperties": false
848
+ }
849
+ ]
850
+ }
851
+ }
852
+ ]
853
+ },
854
+ "cert": {
855
+ "anyOf": [
856
+ {
857
+ "type": "string"
858
+ },
859
+ {
860
+ "type": "object",
861
+ "properties": {
862
+ "path": {
863
+ "type": "string",
864
+ "resolvePath": true
865
+ }
866
+ },
867
+ "additionalProperties": false
868
+ },
869
+ {
870
+ "type": "array",
871
+ "items": {
872
+ "anyOf": [
873
+ {
874
+ "type": "string"
875
+ },
876
+ {
877
+ "type": "object",
878
+ "properties": {
879
+ "path": {
880
+ "type": "string",
881
+ "resolvePath": true
882
+ }
883
+ },
884
+ "additionalProperties": false
885
+ }
886
+ ]
887
+ }
888
+ }
889
+ ]
890
+ },
891
+ "requestCert": {
892
+ "type": "boolean"
893
+ },
894
+ "rejectUnauthorized": {
895
+ "type": "boolean"
896
+ }
897
+ },
898
+ "additionalProperties": false,
899
+ "required": [
900
+ "key",
901
+ "cert"
902
+ ]
903
+ }
904
+ },
905
+ "additionalProperties": false
906
+ },
907
+ "startTimeout": {
908
+ "default": 30000,
909
+ "type": "number",
910
+ "minimum": 0
911
+ },
912
+ "restartOnError": {
913
+ "default": true,
914
+ "anyOf": [
915
+ {
916
+ "type": "boolean"
917
+ },
918
+ {
919
+ "type": "number",
920
+ "minimum": 0
921
+ }
922
+ ]
923
+ },
924
+ "exitOnUnhandledErrors": {
925
+ "default": true,
926
+ "type": "boolean"
927
+ },
928
+ "gracefulShutdown": {
929
+ "type": "object",
930
+ "properties": {
931
+ "runtime": {
932
+ "anyOf": [
933
+ {
934
+ "type": "number",
935
+ "minimum": 1
936
+ },
937
+ {
938
+ "type": "string"
939
+ }
940
+ ],
941
+ "default": 10000
942
+ },
943
+ "application": {
944
+ "anyOf": [
945
+ {
946
+ "type": "number",
947
+ "minimum": 1
948
+ },
949
+ {
950
+ "type": "string"
951
+ }
952
+ ],
953
+ "default": 10000
954
+ }
955
+ },
956
+ "default": {},
957
+ "required": [
958
+ "runtime",
959
+ "application"
960
+ ],
961
+ "additionalProperties": false
962
+ },
963
+ "health": {
964
+ "type": "object",
965
+ "default": {},
966
+ "properties": {
967
+ "enabled": {
968
+ "anyOf": [
969
+ {
970
+ "type": "boolean"
971
+ },
972
+ {
973
+ "type": "string"
974
+ }
975
+ ],
976
+ "default": true
977
+ },
978
+ "interval": {
979
+ "anyOf": [
980
+ {
981
+ "type": "number",
982
+ "minimum": 0
983
+ },
984
+ {
985
+ "type": "string"
986
+ }
987
+ ],
988
+ "default": 30000
989
+ },
990
+ "gracePeriod": {
991
+ "anyOf": [
992
+ {
993
+ "type": "number",
994
+ "minimum": 0
995
+ },
996
+ {
997
+ "type": "string"
998
+ }
999
+ ],
1000
+ "default": 30000
1001
+ },
1002
+ "maxUnhealthyChecks": {
1003
+ "anyOf": [
1004
+ {
1005
+ "type": "number",
1006
+ "minimum": 1
1007
+ },
1008
+ {
1009
+ "type": "string"
1010
+ }
1011
+ ],
1012
+ "default": 10
1013
+ },
1014
+ "maxELU": {
1015
+ "anyOf": [
1016
+ {
1017
+ "type": "number",
1018
+ "minimum": 0,
1019
+ "maximum": 1
1020
+ },
1021
+ {
1022
+ "type": "string"
1023
+ }
1024
+ ],
1025
+ "default": 0.99
1026
+ },
1027
+ "maxHeapUsed": {
1028
+ "anyOf": [
1029
+ {
1030
+ "type": "number",
1031
+ "minimum": 0,
1032
+ "maximum": 1
1033
+ },
1034
+ {
1035
+ "type": "string"
1036
+ }
1037
+ ],
1038
+ "default": 0.99
1039
+ },
1040
+ "maxHeapTotal": {
1041
+ "anyOf": [
1042
+ {
1043
+ "type": "number",
1044
+ "minimum": 0
1045
+ },
1046
+ {
1047
+ "type": "string"
1048
+ }
1049
+ ],
1050
+ "default": 4294967296
1051
+ },
1052
+ "maxYoungGeneration": {
1053
+ "anyOf": [
1054
+ {
1055
+ "type": "number",
1056
+ "minimum": 0
1057
+ },
1058
+ {
1059
+ "type": "string"
1060
+ }
1061
+ ]
1062
+ }
1063
+ },
1064
+ "additionalProperties": false
1065
+ },
1066
+ "undici": {
1067
+ "type": "object",
1068
+ "properties": {
1069
+ "agentOptions": {
1070
+ "type": "object",
1071
+ "additionalProperties": true
1072
+ },
1073
+ "interceptors": {
1074
+ "anyOf": [
1075
+ {
1076
+ "type": "array",
1077
+ "items": {
1078
+ "type": "object",
1079
+ "properties": {
1080
+ "module": {
1081
+ "type": "string"
1082
+ },
1083
+ "options": {
1084
+ "type": "object",
1085
+ "additionalProperties": true
1086
+ }
1087
+ },
1088
+ "required": [
1089
+ "module",
1090
+ "options"
1091
+ ]
1092
+ }
1093
+ },
1094
+ {
1095
+ "type": "object",
1096
+ "properties": {
1097
+ "Client": {
1098
+ "type": "array",
1099
+ "items": {
1100
+ "type": "object",
1101
+ "properties": {
1102
+ "module": {
1103
+ "type": "string"
1104
+ },
1105
+ "options": {
1106
+ "type": "object",
1107
+ "additionalProperties": true
1108
+ }
1109
+ },
1110
+ "required": [
1111
+ "module",
1112
+ "options"
1113
+ ]
1114
+ }
1115
+ },
1116
+ "Pool": {
1117
+ "type": "array",
1118
+ "items": {
1119
+ "type": "object",
1120
+ "properties": {
1121
+ "module": {
1122
+ "type": "string"
1123
+ },
1124
+ "options": {
1125
+ "type": "object",
1126
+ "additionalProperties": true
1127
+ }
1128
+ },
1129
+ "required": [
1130
+ "module",
1131
+ "options"
1132
+ ]
1133
+ }
1134
+ },
1135
+ "Agent": {
1136
+ "type": "array",
1137
+ "items": {
1138
+ "type": "object",
1139
+ "properties": {
1140
+ "module": {
1141
+ "type": "string"
1142
+ },
1143
+ "options": {
1144
+ "type": "object",
1145
+ "additionalProperties": true
1146
+ }
1147
+ },
1148
+ "required": [
1149
+ "module",
1150
+ "options"
1151
+ ]
1152
+ }
1153
+ }
1154
+ }
1155
+ }
1156
+ ]
1157
+ }
1158
+ }
1159
+ },
1160
+ "httpCache": {
1161
+ "oneOf": [
1162
+ {
1163
+ "type": "boolean"
1164
+ },
1165
+ {
1166
+ "type": "object",
1167
+ "properties": {
1168
+ "store": {
1169
+ "type": "string"
1170
+ },
1171
+ "methods": {
1172
+ "type": "array",
1173
+ "items": {
1174
+ "type": "string"
1175
+ },
1176
+ "default": [
1177
+ "GET",
1178
+ "HEAD"
1179
+ ],
1180
+ "minItems": 1
1181
+ },
1182
+ "cacheTagsHeader": {
1183
+ "type": "string"
1184
+ },
1185
+ "maxSize": {
1186
+ "type": "integer"
1187
+ },
1188
+ "maxEntrySize": {
1189
+ "type": "integer"
1190
+ },
1191
+ "maxCount": {
1192
+ "type": "integer"
1193
+ }
1194
+ }
1195
+ }
1196
+ ]
1197
+ },
1198
+ "watch": {
1199
+ "anyOf": [
1200
+ {
1201
+ "type": "boolean"
1202
+ },
1203
+ {
1204
+ "type": "string"
1205
+ }
1206
+ ]
1207
+ },
1208
+ "managementApi": {
1209
+ "anyOf": [
1210
+ {
1211
+ "type": "boolean"
1212
+ },
1213
+ {
1214
+ "type": "string"
1215
+ },
1216
+ {
1217
+ "type": "object",
1218
+ "properties": {
1219
+ "logs": {
1220
+ "type": "object",
1221
+ "properties": {
1222
+ "maxSize": {
1223
+ "type": "number",
1224
+ "minimum": 5,
1225
+ "default": 200
1226
+ }
1227
+ },
1228
+ "additionalProperties": false
1229
+ }
1230
+ },
1231
+ "additionalProperties": false
1232
+ }
1233
+ ],
1234
+ "default": true
1235
+ },
1236
+ "metrics": {
1237
+ "anyOf": [
1238
+ {
1239
+ "type": "boolean"
1240
+ },
1241
+ {
1242
+ "type": "object",
1243
+ "properties": {
1244
+ "port": {
1245
+ "anyOf": [
1246
+ {
1247
+ "type": "integer"
1248
+ },
1249
+ {
1250
+ "type": "string"
1251
+ }
1252
+ ]
1253
+ },
1254
+ "enabled": {
1255
+ "anyOf": [
1256
+ {
1257
+ "type": "boolean"
1258
+ },
1259
+ {
1260
+ "type": "string"
1261
+ }
1262
+ ]
1263
+ },
1264
+ "hostname": {
1265
+ "type": "string"
1266
+ },
1267
+ "endpoint": {
1268
+ "type": "string"
1269
+ },
1270
+ "auth": {
1271
+ "type": "object",
1272
+ "properties": {
1273
+ "username": {
1274
+ "type": "string"
1275
+ },
1276
+ "password": {
1277
+ "type": "string"
1278
+ }
1279
+ },
1280
+ "additionalProperties": false,
1281
+ "required": [
1282
+ "username",
1283
+ "password"
1284
+ ]
1285
+ },
1286
+ "labels": {
1287
+ "type": "object",
1288
+ "additionalProperties": {
1289
+ "type": "string"
1290
+ }
1291
+ },
1292
+ "applicationLabel": {
1293
+ "type": "string",
1294
+ "default": "applicationId",
1295
+ "description": "The label name to use for the application identifier in metrics (e.g., applicationId, serviceId)"
1296
+ },
1297
+ "readiness": {
1298
+ "anyOf": [
1299
+ {
1300
+ "type": "boolean"
1301
+ },
1302
+ {
1303
+ "type": "object",
1304
+ "properties": {
1305
+ "endpoint": {
1306
+ "type": "string"
1307
+ },
1308
+ "success": {
1309
+ "type": "object",
1310
+ "properties": {
1311
+ "statusCode": {
1312
+ "type": "number"
1313
+ },
1314
+ "body": {
1315
+ "type": "string"
1316
+ }
1317
+ },
1318
+ "additionalProperties": false
1319
+ },
1320
+ "fail": {
1321
+ "type": "object",
1322
+ "properties": {
1323
+ "statusCode": {
1324
+ "type": "number"
1325
+ },
1326
+ "body": {
1327
+ "type": "string"
1328
+ }
1329
+ },
1330
+ "additionalProperties": false
1331
+ }
1332
+ },
1333
+ "additionalProperties": false
1334
+ }
1335
+ ]
1336
+ },
1337
+ "liveness": {
1338
+ "anyOf": [
1339
+ {
1340
+ "type": "boolean"
1341
+ },
1342
+ {
1343
+ "type": "object",
1344
+ "properties": {
1345
+ "endpoint": {
1346
+ "type": "string"
1347
+ },
1348
+ "success": {
1349
+ "type": "object",
1350
+ "properties": {
1351
+ "statusCode": {
1352
+ "type": "number"
1353
+ },
1354
+ "body": {
1355
+ "type": "string"
1356
+ }
1357
+ },
1358
+ "additionalProperties": false
1359
+ },
1360
+ "fail": {
1361
+ "type": "object",
1362
+ "properties": {
1363
+ "statusCode": {
1364
+ "type": "number"
1365
+ },
1366
+ "body": {
1367
+ "type": "string"
1368
+ }
1369
+ },
1370
+ "additionalProperties": false
1371
+ }
1372
+ },
1373
+ "additionalProperties": false
1374
+ }
1375
+ ]
1376
+ },
1377
+ "plugins": {
1378
+ "type": "array",
1379
+ "items": {
1380
+ "anyOf": [
1381
+ {
1382
+ "type": "string",
1383
+ "resolvePath": true
1384
+ }
1385
+ ]
1386
+ }
1387
+ }
1388
+ },
1389
+ "additionalProperties": false
1390
+ }
1391
+ ]
1392
+ },
1393
+ "telemetry": {
1394
+ "type": "object",
1395
+ "properties": {
1396
+ "enabled": {
1397
+ "anyOf": [
1398
+ {
1399
+ "type": "boolean"
1400
+ },
1401
+ {
1402
+ "type": "string"
1403
+ }
1404
+ ]
1405
+ },
1406
+ "applicationName": {
1407
+ "type": "string",
1408
+ "description": "The name of the application. Defaults to the folder name if not specified."
1409
+ },
1410
+ "version": {
1411
+ "type": "string",
1412
+ "description": "The version of the application (optional)"
1413
+ },
1414
+ "skip": {
1415
+ "type": "array",
1416
+ "description": "An array of paths to skip when creating spans. Useful for health checks and other endpoints that do not need to be traced.",
1417
+ "items": {
1418
+ "type": "object",
1419
+ "properties": {
1420
+ "path": {
1421
+ "type": "string",
1422
+ "description": "The path to skip. Can be a string or a regex."
1423
+ },
1424
+ "method": {
1425
+ "description": "HTTP method to skip",
1426
+ "type": "string",
1427
+ "enum": [
1428
+ "GET",
1429
+ "POST",
1430
+ "PUT",
1431
+ "DELETE",
1432
+ "PATCH",
1433
+ "HEAD",
1434
+ "OPTIONS"
1435
+ ]
1436
+ }
1437
+ }
1438
+ }
1439
+ },
1440
+ "exporter": {
1441
+ "anyOf": [
1442
+ {
1443
+ "type": "array",
1444
+ "items": {
1445
+ "type": "object",
1446
+ "properties": {
1447
+ "type": {
1448
+ "type": "string",
1449
+ "enum": [
1450
+ "console",
1451
+ "otlp",
1452
+ "zipkin",
1453
+ "memory",
1454
+ "file"
1455
+ ],
1456
+ "default": "console"
1457
+ },
1458
+ "options": {
1459
+ "type": "object",
1460
+ "description": "Options for the exporter. These are passed directly to the exporter.",
1461
+ "properties": {
1462
+ "url": {
1463
+ "type": "string",
1464
+ "description": "The URL to send the traces to. Not used for console or memory exporters."
1465
+ },
1466
+ "headers": {
1467
+ "type": "object",
1468
+ "description": "Headers to send to the exporter. Not used for console or memory exporters."
1469
+ },
1470
+ "path": {
1471
+ "type": "string",
1472
+ "description": "The path to write the traces to. Only for file exporter."
1473
+ }
1474
+ }
1475
+ },
1476
+ "additionalProperties": false
1477
+ }
1478
+ }
1479
+ },
1480
+ {
1481
+ "type": "object",
1482
+ "properties": {
1483
+ "type": {
1484
+ "type": "string",
1485
+ "enum": [
1486
+ "console",
1487
+ "otlp",
1488
+ "zipkin",
1489
+ "memory",
1490
+ "file"
1491
+ ],
1492
+ "default": "console"
1493
+ },
1494
+ "options": {
1495
+ "type": "object",
1496
+ "description": "Options for the exporter. These are passed directly to the exporter.",
1497
+ "properties": {
1498
+ "url": {
1499
+ "type": "string",
1500
+ "description": "The URL to send the traces to. Not used for console or memory exporters."
1501
+ },
1502
+ "headers": {
1503
+ "type": "object",
1504
+ "description": "Headers to send to the exporter. Not used for console or memory exporters."
1505
+ },
1506
+ "path": {
1507
+ "type": "string",
1508
+ "description": "The path to write the traces to. Only for file exporter."
1509
+ }
1510
+ }
1511
+ },
1512
+ "additionalProperties": false
1513
+ }
1514
+ }
1515
+ ]
1516
+ }
1517
+ },
1518
+ "required": [
1519
+ "applicationName"
1520
+ ],
1521
+ "additionalProperties": false
1522
+ },
1523
+ "inspectorOptions": {
1524
+ "type": "object",
1525
+ "properties": {
1526
+ "host": {
1527
+ "type": "string"
1528
+ },
1529
+ "port": {
1530
+ "type": "number"
1531
+ },
1532
+ "breakFirstLine": {
1533
+ "type": "boolean"
1534
+ },
1535
+ "watchDisabled": {
1536
+ "type": "boolean"
1537
+ }
1538
+ }
1539
+ },
1540
+ "applicationTimeout": {
1541
+ "anyOf": [
1542
+ {
1543
+ "type": "number",
1544
+ "minimum": 1
1545
+ },
1546
+ {
1547
+ "type": "string"
1548
+ }
1549
+ ],
1550
+ "default": 300000
1551
+ },
1552
+ "messagingTimeout": {
1553
+ "anyOf": [
1554
+ {
1555
+ "type": "number",
1556
+ "minimum": 1
1557
+ },
1558
+ {
1559
+ "type": "string"
1560
+ }
1561
+ ],
1562
+ "default": 30000
1563
+ },
1564
+ "env": {
1565
+ "type": "object",
1566
+ "additionalProperties": {
1567
+ "type": "string"
1568
+ }
1569
+ },
1570
+ "sourceMaps": {
1571
+ "type": "boolean",
1572
+ "default": false
1573
+ },
1574
+ "scheduler": {
1575
+ "type": "array",
1576
+ "items": {
1577
+ "type": "object",
1578
+ "properties": {
1579
+ "enabled": {
1580
+ "anyOf": [
1581
+ {
1582
+ "type": "boolean"
1583
+ },
1584
+ {
1585
+ "type": "string"
1586
+ }
1587
+ ],
1588
+ "default": true
1589
+ },
1590
+ "name": {
1591
+ "type": "string"
1592
+ },
1593
+ "cron": {
1594
+ "type": "string"
1595
+ },
1596
+ "callbackUrl": {
1597
+ "type": "string"
1598
+ },
1599
+ "method": {
1600
+ "type": "string",
1601
+ "enum": [
1602
+ "GET",
1603
+ "POST",
1604
+ "PUT",
1605
+ "PATCH",
1606
+ "DELETE"
1607
+ ],
1608
+ "default": "GET"
1609
+ },
1610
+ "headers": {
1611
+ "type": "object",
1612
+ "additionalProperties": {
1613
+ "type": "string"
1614
+ }
1615
+ },
1616
+ "body": {
1617
+ "anyOf": [
1618
+ {
1619
+ "type": "string"
1620
+ },
1621
+ {
1622
+ "type": "object",
1623
+ "additionalProperties": true
1624
+ }
1625
+ ]
1626
+ },
1627
+ "maxRetries": {
1628
+ "type": "number",
1629
+ "minimum": 0,
1630
+ "default": 3
1631
+ }
1632
+ },
1633
+ "required": [
1634
+ "name",
1635
+ "cron",
1636
+ "callbackUrl"
1637
+ ]
1638
+ }
1639
+ }
1640
+ },
1641
+ "additionalProperties": false
1642
+ },
1643
+ "next": {
1644
+ "type": "object",
1645
+ "properties": {
1646
+ "trailingSlash": {
1647
+ "type": "boolean",
1648
+ "default": false
1649
+ }
1650
+ },
1651
+ "default": {},
1652
+ "additionalProperties": false
1653
+ },
1654
+ "cache": {
1655
+ "type": "object",
1656
+ "properties": {
1657
+ "adapter": {
1658
+ "type": "string",
1659
+ "enum": [
1660
+ "redis",
1661
+ "valkey"
1662
+ ]
1663
+ },
1664
+ "url": {
1665
+ "type": "string"
1666
+ },
1667
+ "prefix": {
1668
+ "type": "string"
1669
+ },
1670
+ "maxTTL": {
1671
+ "default": 604800,
1672
+ "anyOf": [
1673
+ {
1674
+ "type": "number",
1675
+ "minimum": 0
1676
+ },
1677
+ {
1678
+ "type": "string"
1679
+ }
1680
+ ]
1681
+ }
1682
+ },
1683
+ "required": [
1684
+ "adapter",
1685
+ "url"
1686
+ ],
1687
+ "additionalProperties": false
291
1688
  }
292
1689
  },
293
1690
  "additionalProperties": false