@itphx/synth-shared 0.2.0 → 0.4.4

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 (41) hide show
  1. package/dist/config/defaults.d.ts.map +1 -1
  2. package/dist/config/defaults.js +12 -1
  3. package/dist/config/defaults.js.map +1 -1
  4. package/dist/config/defaults.test.js +0 -1
  5. package/dist/config/defaults.test.js.map +1 -1
  6. package/dist/config/types.d.ts +383 -149
  7. package/dist/config/types.d.ts.map +1 -1
  8. package/dist/config/types.js +36 -0
  9. package/dist/config/types.js.map +1 -1
  10. package/dist/i18n/index.d.ts +20 -0
  11. package/dist/i18n/index.d.ts.map +1 -0
  12. package/dist/i18n/index.js +435 -0
  13. package/dist/i18n/index.js.map +1 -0
  14. package/dist/i18n/index.test.d.ts +2 -0
  15. package/dist/i18n/index.test.d.ts.map +1 -0
  16. package/dist/i18n/index.test.js +41 -0
  17. package/dist/i18n/index.test.js.map +1 -0
  18. package/dist/index.d.ts +2 -1
  19. package/dist/index.d.ts.map +1 -1
  20. package/dist/index.js +1 -0
  21. package/dist/index.js.map +1 -1
  22. package/dist/schemas/index.d.ts +120 -154
  23. package/dist/schemas/index.d.ts.map +1 -1
  24. package/dist/schemas/index.js +6 -19
  25. package/dist/schemas/index.js.map +1 -1
  26. package/dist/types/index.d.ts +67 -28
  27. package/dist/types/index.d.ts.map +1 -1
  28. package/dist/types/index.js +0 -7
  29. package/dist/types/index.js.map +1 -1
  30. package/dist/types/permission.d.ts +4 -0
  31. package/dist/types/permission.d.ts.map +1 -1
  32. package/dist/utils/index.d.ts.map +1 -1
  33. package/dist/utils/index.js +9 -3
  34. package/dist/utils/index.js.map +1 -1
  35. package/dist/version.d.ts +1 -1
  36. package/dist/version.js +1 -1
  37. package/package.json +5 -1
  38. package/dist/data/model-metadata.d.ts +0 -16
  39. package/dist/data/model-metadata.d.ts.map +0 -1
  40. package/dist/data/model-metadata.js +0 -137
  41. package/dist/data/model-metadata.js.map +0 -1
@@ -56,18 +56,22 @@ export declare const authConfigSchema: z.ZodObject<{
56
56
  clientId: z.ZodDefault<z.ZodString>;
57
57
  clientSecret: z.ZodDefault<z.ZodString>;
58
58
  redirectUri: z.ZodDefault<z.ZodString>;
59
+ /** Public client_id для локального CLI/core (ROPC/device flow). Не секрет. */
60
+ cliClientId: z.ZodDefault<z.ZodString>;
59
61
  }, "strip", z.ZodTypeAny, {
60
62
  enabled: boolean;
61
63
  issuer: string;
62
64
  clientId: string;
63
65
  clientSecret: string;
64
66
  redirectUri: string;
67
+ cliClientId: string;
65
68
  }, {
66
69
  enabled?: boolean | undefined;
67
70
  issuer?: string | undefined;
68
71
  clientId?: string | undefined;
69
72
  clientSecret?: string | undefined;
70
73
  redirectUri?: string | undefined;
74
+ cliClientId?: string | undefined;
71
75
  }>>;
72
76
  }, "strip", z.ZodTypeAny, {
73
77
  debugMode: boolean;
@@ -85,10 +89,11 @@ export declare const authConfigSchema: z.ZodObject<{
85
89
  clientId: string;
86
90
  clientSecret: string;
87
91
  redirectUri: string;
92
+ cliClientId: string;
88
93
  } | undefined;
89
94
  }, {
90
- debugMode?: boolean | undefined;
91
95
  apiKey?: string | undefined;
96
+ debugMode?: boolean | undefined;
92
97
  testUsers?: {
93
98
  apiKey: string;
94
99
  username: string;
@@ -102,6 +107,7 @@ export declare const authConfigSchema: z.ZodObject<{
102
107
  clientId?: string | undefined;
103
108
  clientSecret?: string | undefined;
104
109
  redirectUri?: string | undefined;
110
+ cliClientId?: string | undefined;
105
111
  } | undefined;
106
112
  }>;
107
113
  export declare const llmConfigSchema: z.ZodObject<{
@@ -124,11 +130,11 @@ export declare const coreConfigSchema: z.ZodObject<{
124
130
  port: z.ZodDefault<z.ZodNumber>;
125
131
  apiKey: z.ZodDefault<z.ZodString>;
126
132
  }, "strip", z.ZodTypeAny, {
127
- port: number;
128
133
  apiKey: string;
134
+ port: number;
129
135
  }, {
130
- port?: number | undefined;
131
136
  apiKey?: string | undefined;
137
+ port?: number | undefined;
132
138
  }>;
133
139
  export declare const runnerConfigSchema: z.ZodObject<{
134
140
  port: z.ZodDefault<z.ZodNumber>;
@@ -138,31 +144,31 @@ export declare const runnerConfigSchema: z.ZodObject<{
138
144
  cline: z.ZodDefault<z.ZodNumber>;
139
145
  synth: z.ZodDefault<z.ZodNumber>;
140
146
  }, "strip", z.ZodTypeAny, {
147
+ synth: number;
141
148
  opencode: number;
142
149
  cline: number;
143
- synth: number;
144
150
  }, {
151
+ synth?: number | undefined;
145
152
  opencode?: number | undefined;
146
153
  cline?: number | undefined;
147
- synth?: number | undefined;
148
154
  }>>;
149
155
  proxyPort: z.ZodDefault<z.ZodNumber>;
150
156
  }, "strip", z.ZodTypeAny, {
151
157
  port: number;
152
158
  backendUrl: string;
153
159
  enginePorts: {
160
+ synth: number;
154
161
  opencode: number;
155
162
  cline: number;
156
- synth: number;
157
163
  };
158
164
  proxyPort: number;
159
165
  }, {
160
166
  port?: number | undefined;
161
167
  backendUrl?: string | undefined;
162
168
  enginePorts?: {
169
+ synth?: number | undefined;
163
170
  opencode?: number | undefined;
164
171
  cline?: number | undefined;
165
- synth?: number | undefined;
166
172
  } | undefined;
167
173
  proxyPort?: number | undefined;
168
174
  }>;
@@ -256,22 +262,22 @@ export declare const mcpServerConfigSchema: z.ZodObject<{
256
262
  connectTimeout: z.ZodOptional<z.ZodNumber>;
257
263
  }, "strip", z.ZodTypeAny, {
258
264
  type: "stdio" | "sse";
259
- enabled?: boolean | undefined;
260
- timeout?: number | undefined;
261
265
  url?: string | undefined;
262
266
  command?: string | undefined;
263
267
  args?: string[] | undefined;
268
+ enabled?: boolean | undefined;
269
+ timeout?: number | undefined;
264
270
  env?: Record<string, string> | undefined;
265
271
  headers?: Record<string, string> | undefined;
266
272
  enabledByDefault?: boolean | undefined;
267
273
  connectTimeout?: number | undefined;
268
274
  }, {
269
275
  type: "stdio" | "sse";
270
- enabled?: boolean | undefined;
271
- timeout?: number | undefined;
272
276
  url?: string | undefined;
273
277
  command?: string | undefined;
274
278
  args?: string[] | undefined;
279
+ enabled?: boolean | undefined;
280
+ timeout?: number | undefined;
275
281
  env?: Record<string, string> | undefined;
276
282
  headers?: Record<string, string> | undefined;
277
283
  enabledByDefault?: boolean | undefined;
@@ -291,22 +297,22 @@ export declare const mcpConfigSchema: z.ZodObject<{
291
297
  connectTimeout: z.ZodOptional<z.ZodNumber>;
292
298
  }, "strip", z.ZodTypeAny, {
293
299
  type: "stdio" | "sse";
294
- enabled?: boolean | undefined;
295
- timeout?: number | undefined;
296
300
  url?: string | undefined;
297
301
  command?: string | undefined;
298
302
  args?: string[] | undefined;
303
+ enabled?: boolean | undefined;
304
+ timeout?: number | undefined;
299
305
  env?: Record<string, string> | undefined;
300
306
  headers?: Record<string, string> | undefined;
301
307
  enabledByDefault?: boolean | undefined;
302
308
  connectTimeout?: number | undefined;
303
309
  }, {
304
310
  type: "stdio" | "sse";
305
- enabled?: boolean | undefined;
306
- timeout?: number | undefined;
307
311
  url?: string | undefined;
308
312
  command?: string | undefined;
309
313
  args?: string[] | undefined;
314
+ enabled?: boolean | undefined;
315
+ timeout?: number | undefined;
310
316
  env?: Record<string, string> | undefined;
311
317
  headers?: Record<string, string> | undefined;
312
318
  enabledByDefault?: boolean | undefined;
@@ -315,11 +321,11 @@ export declare const mcpConfigSchema: z.ZodObject<{
315
321
  }, "strip", z.ZodTypeAny, {
316
322
  servers: Record<string, {
317
323
  type: "stdio" | "sse";
318
- enabled?: boolean | undefined;
319
- timeout?: number | undefined;
320
324
  url?: string | undefined;
321
325
  command?: string | undefined;
322
326
  args?: string[] | undefined;
327
+ enabled?: boolean | undefined;
328
+ timeout?: number | undefined;
323
329
  env?: Record<string, string> | undefined;
324
330
  headers?: Record<string, string> | undefined;
325
331
  enabledByDefault?: boolean | undefined;
@@ -328,11 +334,11 @@ export declare const mcpConfigSchema: z.ZodObject<{
328
334
  }, {
329
335
  servers?: Record<string, {
330
336
  type: "stdio" | "sse";
331
- enabled?: boolean | undefined;
332
- timeout?: number | undefined;
333
337
  url?: string | undefined;
334
338
  command?: string | undefined;
335
339
  args?: string[] | undefined;
340
+ enabled?: boolean | undefined;
341
+ timeout?: number | undefined;
336
342
  env?: Record<string, string> | undefined;
337
343
  headers?: Record<string, string> | undefined;
338
344
  enabledByDefault?: boolean | undefined;
@@ -347,13 +353,21 @@ export declare const promptInjectionConfigSchema: z.ZodObject<{
347
353
  /** Режим детекции подозрительных паттернов: flag (пометить), sanitize (заменить), block (заблокировать). */
348
354
  mode: z.ZodDefault<z.ZodEnum<["flag", "sanitize", "block"]>>;
349
355
  }, "strip", z.ZodTypeAny, {
356
+ mode: "flag" | "sanitize" | "block";
350
357
  enabled: boolean;
351
358
  wrapContent: boolean;
352
- mode: "flag" | "sanitize" | "block";
353
359
  }, {
360
+ mode?: "flag" | "sanitize" | "block" | undefined;
354
361
  enabled?: boolean | undefined;
355
362
  wrapContent?: boolean | undefined;
356
- mode?: "flag" | "sanitize" | "block" | undefined;
363
+ }>;
364
+ export declare const protectedPathsConfigSchema: z.ZodObject<{
365
+ /** Глобальный выключатель защиты защищённых путей (сквозная проверка файловых тулов). */
366
+ enabled: z.ZodDefault<z.ZodBoolean>;
367
+ }, "strip", z.ZodTypeAny, {
368
+ enabled: boolean;
369
+ }, {
370
+ enabled?: boolean | undefined;
357
371
  }>;
358
372
  export declare const securityConfigSchema: z.ZodObject<{
359
373
  promptInjection: z.ZodDefault<z.ZodObject<{
@@ -364,25 +378,39 @@ export declare const securityConfigSchema: z.ZodObject<{
364
378
  /** Режим детекции подозрительных паттернов: flag (пометить), sanitize (заменить), block (заблокировать). */
365
379
  mode: z.ZodDefault<z.ZodEnum<["flag", "sanitize", "block"]>>;
366
380
  }, "strip", z.ZodTypeAny, {
381
+ mode: "flag" | "sanitize" | "block";
367
382
  enabled: boolean;
368
383
  wrapContent: boolean;
369
- mode: "flag" | "sanitize" | "block";
370
384
  }, {
385
+ mode?: "flag" | "sanitize" | "block" | undefined;
371
386
  enabled?: boolean | undefined;
372
387
  wrapContent?: boolean | undefined;
373
- mode?: "flag" | "sanitize" | "block" | undefined;
388
+ }>>;
389
+ protectedPaths: z.ZodDefault<z.ZodObject<{
390
+ /** Глобальный выключатель защиты защищённых путей (сквозная проверка файловых тулов). */
391
+ enabled: z.ZodDefault<z.ZodBoolean>;
392
+ }, "strip", z.ZodTypeAny, {
393
+ enabled: boolean;
394
+ }, {
395
+ enabled?: boolean | undefined;
374
396
  }>>;
375
397
  }, "strip", z.ZodTypeAny, {
376
398
  promptInjection: {
399
+ mode: "flag" | "sanitize" | "block";
377
400
  enabled: boolean;
378
401
  wrapContent: boolean;
379
- mode: "flag" | "sanitize" | "block";
402
+ };
403
+ protectedPaths: {
404
+ enabled: boolean;
380
405
  };
381
406
  }, {
382
407
  promptInjection?: {
408
+ mode?: "flag" | "sanitize" | "block" | undefined;
383
409
  enabled?: boolean | undefined;
384
410
  wrapContent?: boolean | undefined;
385
- mode?: "flag" | "sanitize" | "block" | undefined;
411
+ } | undefined;
412
+ protectedPaths?: {
413
+ enabled?: boolean | undefined;
386
414
  } | undefined;
387
415
  }>;
388
416
  export declare const llmGatewayRateLimitConfigSchema: z.ZodObject<{
@@ -568,13 +596,13 @@ export declare const routerSubagentConfigSchema: z.ZodObject<{
568
596
  model: z.ZodDefault<z.ZodString>;
569
597
  provider: z.ZodDefault<z.ZodString>;
570
598
  }, "strip", z.ZodTypeAny, {
571
- enabled: boolean;
572
599
  provider: string;
573
600
  model: string;
601
+ enabled: boolean;
574
602
  }, {
575
- enabled?: boolean | undefined;
576
603
  provider?: string | undefined;
577
604
  model?: string | undefined;
605
+ enabled?: boolean | undefined;
578
606
  }>;
579
607
  export declare const microFirstConfigSchema: z.ZodObject<{
580
608
  enabled: z.ZodDefault<z.ZodBoolean>;
@@ -717,16 +745,20 @@ export declare const routerConfigSchema: z.ZodObject<{
717
745
  model: z.ZodDefault<z.ZodString>;
718
746
  provider: z.ZodDefault<z.ZodString>;
719
747
  }, "strip", z.ZodTypeAny, {
720
- enabled: boolean;
721
748
  provider: string;
722
749
  model: string;
750
+ enabled: boolean;
723
751
  }, {
724
- enabled?: boolean | undefined;
725
752
  provider?: string | undefined;
726
753
  model?: string | undefined;
754
+ enabled?: boolean | undefined;
727
755
  }>>;
728
756
  }, "strip", z.ZodTypeAny, {
729
- enabled: boolean;
757
+ subagent: {
758
+ provider: string;
759
+ model: string;
760
+ enabled: boolean;
761
+ };
730
762
  content: {
731
763
  coding: {
732
764
  provider: string;
@@ -749,6 +781,7 @@ export declare const routerConfigSchema: z.ZodObject<{
749
781
  expensiveModel: string;
750
782
  maxCheapTokens: number;
751
783
  };
784
+ enabled: boolean;
752
785
  strategy: "auto" | "content" | "cost" | "content+cost";
753
786
  escalation: {
754
787
  enabled: boolean;
@@ -758,13 +791,12 @@ export declare const routerConfigSchema: z.ZodObject<{
758
791
  fallbackModel: string;
759
792
  checks: ("min_length" | "constraint" | "self_check")[];
760
793
  };
761
- subagent: {
762
- enabled: boolean;
763
- provider: string;
764
- model: string;
765
- };
766
794
  }, {
767
- enabled?: boolean | undefined;
795
+ subagent?: {
796
+ provider?: string | undefined;
797
+ model?: string | undefined;
798
+ enabled?: boolean | undefined;
799
+ } | undefined;
768
800
  content?: {
769
801
  coding?: {
770
802
  provider?: string | undefined;
@@ -787,6 +819,7 @@ export declare const routerConfigSchema: z.ZodObject<{
787
819
  expensiveModel?: string | undefined;
788
820
  maxCheapTokens?: number | undefined;
789
821
  } | undefined;
822
+ enabled?: boolean | undefined;
790
823
  strategy?: "auto" | "content" | "cost" | "content+cost" | undefined;
791
824
  escalation?: {
792
825
  enabled?: boolean | undefined;
@@ -796,11 +829,77 @@ export declare const routerConfigSchema: z.ZodObject<{
796
829
  fallbackModel?: string | undefined;
797
830
  checks?: ("min_length" | "constraint" | "self_check")[] | undefined;
798
831
  } | undefined;
799
- subagent?: {
800
- enabled?: boolean | undefined;
801
- provider?: string | undefined;
802
- model?: string | undefined;
832
+ }>;
833
+ export declare const remoteConfigSchema: z.ZodObject<{
834
+ /** Включён ли гибридный режим: локальный core подключается к удалённому backend. */
835
+ enabled: z.ZodDefault<z.ZodBoolean>;
836
+ /** Базовый URL удалённого backend (например https://synth.k3s.itphx.loc). */
837
+ backendUrl: z.ZodDefault<z.ZodString>;
838
+ auth: z.ZodDefault<z.ZodObject<{
839
+ type: z.ZodDefault<z.ZodEnum<["device", "api_key"]>>;
840
+ apiKey: z.ZodDefault<z.ZodString>;
841
+ /** OIDC issuer (Keycloak realm), напр. https://keycloak.itphx.loc/realms/synth. Для device flow. */
842
+ issuer: z.ZodDefault<z.ZodString>;
843
+ /** OIDC client_id (public client). Для device flow. */
844
+ clientId: z.ZodDefault<z.ZodString>;
845
+ }, "strip", z.ZodTypeAny, {
846
+ type: "device" | "api_key";
847
+ apiKey: string;
848
+ issuer: string;
849
+ clientId: string;
850
+ }, {
851
+ type?: "device" | "api_key" | undefined;
852
+ apiKey?: string | undefined;
853
+ issuer?: string | undefined;
854
+ clientId?: string | undefined;
855
+ }>>;
856
+ /** Куда идут LLM-запросы локальных сессий: server (централизация) | local. По умолчанию server. */
857
+ llm: z.ZodDefault<z.ZodEnum<["server", "local"]>>;
858
+ worlds: z.ZodDefault<z.ZodObject<{
859
+ local: z.ZodDefault<z.ZodBoolean>;
860
+ remote: z.ZodDefault<z.ZodBoolean>;
861
+ }, "strip", z.ZodTypeAny, {
862
+ local: boolean;
863
+ remote: boolean;
864
+ }, {
865
+ local?: boolean | undefined;
866
+ remote?: boolean | undefined;
867
+ }>>;
868
+ /** Путь к файлу credentials (пусто → ~/.config/synth/credentials.json). */
869
+ credentialsPath: z.ZodDefault<z.ZodString>;
870
+ timeoutMs: z.ZodDefault<z.ZodNumber>;
871
+ }, "strip", z.ZodTypeAny, {
872
+ enabled: boolean;
873
+ backendUrl: string;
874
+ auth: {
875
+ type: "device" | "api_key";
876
+ apiKey: string;
877
+ issuer: string;
878
+ clientId: string;
879
+ };
880
+ llm: "local" | "server";
881
+ worlds: {
882
+ local: boolean;
883
+ remote: boolean;
884
+ };
885
+ credentialsPath: string;
886
+ timeoutMs: number;
887
+ }, {
888
+ enabled?: boolean | undefined;
889
+ backendUrl?: string | undefined;
890
+ auth?: {
891
+ type?: "device" | "api_key" | undefined;
892
+ apiKey?: string | undefined;
893
+ issuer?: string | undefined;
894
+ clientId?: string | undefined;
895
+ } | undefined;
896
+ llm?: "local" | "server" | undefined;
897
+ worlds?: {
898
+ local?: boolean | undefined;
899
+ remote?: boolean | undefined;
803
900
  } | undefined;
901
+ credentialsPath?: string | undefined;
902
+ timeoutMs?: number | undefined;
804
903
  }>;
805
904
  export declare const synthConfigSchema: z.ZodObject<{
806
905
  server: z.ZodDefault<z.ZodObject<{
@@ -859,18 +958,22 @@ export declare const synthConfigSchema: z.ZodObject<{
859
958
  clientId: z.ZodDefault<z.ZodString>;
860
959
  clientSecret: z.ZodDefault<z.ZodString>;
861
960
  redirectUri: z.ZodDefault<z.ZodString>;
961
+ /** Public client_id для локального CLI/core (ROPC/device flow). Не секрет. */
962
+ cliClientId: z.ZodDefault<z.ZodString>;
862
963
  }, "strip", z.ZodTypeAny, {
863
964
  enabled: boolean;
864
965
  issuer: string;
865
966
  clientId: string;
866
967
  clientSecret: string;
867
968
  redirectUri: string;
969
+ cliClientId: string;
868
970
  }, {
869
971
  enabled?: boolean | undefined;
870
972
  issuer?: string | undefined;
871
973
  clientId?: string | undefined;
872
974
  clientSecret?: string | undefined;
873
975
  redirectUri?: string | undefined;
976
+ cliClientId?: string | undefined;
874
977
  }>>;
875
978
  }, "strip", z.ZodTypeAny, {
876
979
  debugMode: boolean;
@@ -888,10 +991,11 @@ export declare const synthConfigSchema: z.ZodObject<{
888
991
  clientId: string;
889
992
  clientSecret: string;
890
993
  redirectUri: string;
994
+ cliClientId: string;
891
995
  } | undefined;
892
996
  }, {
893
- debugMode?: boolean | undefined;
894
997
  apiKey?: string | undefined;
998
+ debugMode?: boolean | undefined;
895
999
  testUsers?: {
896
1000
  apiKey: string;
897
1001
  username: string;
@@ -905,6 +1009,7 @@ export declare const synthConfigSchema: z.ZodObject<{
905
1009
  clientId?: string | undefined;
906
1010
  clientSecret?: string | undefined;
907
1011
  redirectUri?: string | undefined;
1012
+ cliClientId?: string | undefined;
908
1013
  } | undefined;
909
1014
  }>>;
910
1015
  llm: z.ZodDefault<z.ZodObject<{
@@ -927,11 +1032,11 @@ export declare const synthConfigSchema: z.ZodObject<{
927
1032
  port: z.ZodDefault<z.ZodNumber>;
928
1033
  apiKey: z.ZodDefault<z.ZodString>;
929
1034
  }, "strip", z.ZodTypeAny, {
930
- port: number;
931
1035
  apiKey: string;
1036
+ port: number;
932
1037
  }, {
933
- port?: number | undefined;
934
1038
  apiKey?: string | undefined;
1039
+ port?: number | undefined;
935
1040
  }>>;
936
1041
  runner: z.ZodDefault<z.ZodObject<{
937
1042
  port: z.ZodDefault<z.ZodNumber>;
@@ -941,31 +1046,31 @@ export declare const synthConfigSchema: z.ZodObject<{
941
1046
  cline: z.ZodDefault<z.ZodNumber>;
942
1047
  synth: z.ZodDefault<z.ZodNumber>;
943
1048
  }, "strip", z.ZodTypeAny, {
1049
+ synth: number;
944
1050
  opencode: number;
945
1051
  cline: number;
946
- synth: number;
947
1052
  }, {
1053
+ synth?: number | undefined;
948
1054
  opencode?: number | undefined;
949
1055
  cline?: number | undefined;
950
- synth?: number | undefined;
951
1056
  }>>;
952
1057
  proxyPort: z.ZodDefault<z.ZodNumber>;
953
1058
  }, "strip", z.ZodTypeAny, {
954
1059
  port: number;
955
1060
  backendUrl: string;
956
1061
  enginePorts: {
1062
+ synth: number;
957
1063
  opencode: number;
958
1064
  cline: number;
959
- synth: number;
960
1065
  };
961
1066
  proxyPort: number;
962
1067
  }, {
963
1068
  port?: number | undefined;
964
1069
  backendUrl?: string | undefined;
965
1070
  enginePorts?: {
1071
+ synth?: number | undefined;
966
1072
  opencode?: number | undefined;
967
1073
  cline?: number | undefined;
968
- synth?: number | undefined;
969
1074
  } | undefined;
970
1075
  proxyPort?: number | undefined;
971
1076
  }>>;
@@ -1060,22 +1165,22 @@ export declare const synthConfigSchema: z.ZodObject<{
1060
1165
  connectTimeout: z.ZodOptional<z.ZodNumber>;
1061
1166
  }, "strip", z.ZodTypeAny, {
1062
1167
  type: "stdio" | "sse";
1063
- enabled?: boolean | undefined;
1064
- timeout?: number | undefined;
1065
1168
  url?: string | undefined;
1066
1169
  command?: string | undefined;
1067
1170
  args?: string[] | undefined;
1171
+ enabled?: boolean | undefined;
1172
+ timeout?: number | undefined;
1068
1173
  env?: Record<string, string> | undefined;
1069
1174
  headers?: Record<string, string> | undefined;
1070
1175
  enabledByDefault?: boolean | undefined;
1071
1176
  connectTimeout?: number | undefined;
1072
1177
  }, {
1073
1178
  type: "stdio" | "sse";
1074
- enabled?: boolean | undefined;
1075
- timeout?: number | undefined;
1076
1179
  url?: string | undefined;
1077
1180
  command?: string | undefined;
1078
1181
  args?: string[] | undefined;
1182
+ enabled?: boolean | undefined;
1183
+ timeout?: number | undefined;
1079
1184
  env?: Record<string, string> | undefined;
1080
1185
  headers?: Record<string, string> | undefined;
1081
1186
  enabledByDefault?: boolean | undefined;
@@ -1084,11 +1189,11 @@ export declare const synthConfigSchema: z.ZodObject<{
1084
1189
  }, "strip", z.ZodTypeAny, {
1085
1190
  servers: Record<string, {
1086
1191
  type: "stdio" | "sse";
1087
- enabled?: boolean | undefined;
1088
- timeout?: number | undefined;
1089
1192
  url?: string | undefined;
1090
1193
  command?: string | undefined;
1091
1194
  args?: string[] | undefined;
1195
+ enabled?: boolean | undefined;
1196
+ timeout?: number | undefined;
1092
1197
  env?: Record<string, string> | undefined;
1093
1198
  headers?: Record<string, string> | undefined;
1094
1199
  enabledByDefault?: boolean | undefined;
@@ -1097,11 +1202,11 @@ export declare const synthConfigSchema: z.ZodObject<{
1097
1202
  }, {
1098
1203
  servers?: Record<string, {
1099
1204
  type: "stdio" | "sse";
1100
- enabled?: boolean | undefined;
1101
- timeout?: number | undefined;
1102
1205
  url?: string | undefined;
1103
1206
  command?: string | undefined;
1104
1207
  args?: string[] | undefined;
1208
+ enabled?: boolean | undefined;
1209
+ timeout?: number | undefined;
1105
1210
  env?: Record<string, string> | undefined;
1106
1211
  headers?: Record<string, string> | undefined;
1107
1212
  enabledByDefault?: boolean | undefined;
@@ -1218,16 +1323,20 @@ export declare const synthConfigSchema: z.ZodObject<{
1218
1323
  model: z.ZodDefault<z.ZodString>;
1219
1324
  provider: z.ZodDefault<z.ZodString>;
1220
1325
  }, "strip", z.ZodTypeAny, {
1221
- enabled: boolean;
1222
1326
  provider: string;
1223
1327
  model: string;
1328
+ enabled: boolean;
1224
1329
  }, {
1225
- enabled?: boolean | undefined;
1226
1330
  provider?: string | undefined;
1227
1331
  model?: string | undefined;
1332
+ enabled?: boolean | undefined;
1228
1333
  }>>;
1229
1334
  }, "strip", z.ZodTypeAny, {
1230
- enabled: boolean;
1335
+ subagent: {
1336
+ provider: string;
1337
+ model: string;
1338
+ enabled: boolean;
1339
+ };
1231
1340
  content: {
1232
1341
  coding: {
1233
1342
  provider: string;
@@ -1250,6 +1359,7 @@ export declare const synthConfigSchema: z.ZodObject<{
1250
1359
  expensiveModel: string;
1251
1360
  maxCheapTokens: number;
1252
1361
  };
1362
+ enabled: boolean;
1253
1363
  strategy: "auto" | "content" | "cost" | "content+cost";
1254
1364
  escalation: {
1255
1365
  enabled: boolean;
@@ -1259,13 +1369,12 @@ export declare const synthConfigSchema: z.ZodObject<{
1259
1369
  fallbackModel: string;
1260
1370
  checks: ("min_length" | "constraint" | "self_check")[];
1261
1371
  };
1262
- subagent: {
1263
- enabled: boolean;
1264
- provider: string;
1265
- model: string;
1266
- };
1267
1372
  }, {
1268
- enabled?: boolean | undefined;
1373
+ subagent?: {
1374
+ provider?: string | undefined;
1375
+ model?: string | undefined;
1376
+ enabled?: boolean | undefined;
1377
+ } | undefined;
1269
1378
  content?: {
1270
1379
  coding?: {
1271
1380
  provider?: string | undefined;
@@ -1288,6 +1397,7 @@ export declare const synthConfigSchema: z.ZodObject<{
1288
1397
  expensiveModel?: string | undefined;
1289
1398
  maxCheapTokens?: number | undefined;
1290
1399
  } | undefined;
1400
+ enabled?: boolean | undefined;
1291
1401
  strategy?: "auto" | "content" | "cost" | "content+cost" | undefined;
1292
1402
  escalation?: {
1293
1403
  enabled?: boolean | undefined;
@@ -1297,11 +1407,77 @@ export declare const synthConfigSchema: z.ZodObject<{
1297
1407
  fallbackModel?: string | undefined;
1298
1408
  checks?: ("min_length" | "constraint" | "self_check")[] | undefined;
1299
1409
  } | undefined;
1300
- subagent?: {
1301
- enabled?: boolean | undefined;
1302
- provider?: string | undefined;
1303
- model?: string | undefined;
1410
+ }>>;
1411
+ remote: z.ZodDefault<z.ZodObject<{
1412
+ /** Включён ли гибридный режим: локальный core подключается к удалённому backend. */
1413
+ enabled: z.ZodDefault<z.ZodBoolean>;
1414
+ /** Базовый URL удалённого backend (например https://synth.k3s.itphx.loc). */
1415
+ backendUrl: z.ZodDefault<z.ZodString>;
1416
+ auth: z.ZodDefault<z.ZodObject<{
1417
+ type: z.ZodDefault<z.ZodEnum<["device", "api_key"]>>;
1418
+ apiKey: z.ZodDefault<z.ZodString>;
1419
+ /** OIDC issuer (Keycloak realm), напр. https://keycloak.itphx.loc/realms/synth. Для device flow. */
1420
+ issuer: z.ZodDefault<z.ZodString>;
1421
+ /** OIDC client_id (public client). Для device flow. */
1422
+ clientId: z.ZodDefault<z.ZodString>;
1423
+ }, "strip", z.ZodTypeAny, {
1424
+ type: "device" | "api_key";
1425
+ apiKey: string;
1426
+ issuer: string;
1427
+ clientId: string;
1428
+ }, {
1429
+ type?: "device" | "api_key" | undefined;
1430
+ apiKey?: string | undefined;
1431
+ issuer?: string | undefined;
1432
+ clientId?: string | undefined;
1433
+ }>>;
1434
+ /** Куда идут LLM-запросы локальных сессий: server (централизация) | local. По умолчанию server. */
1435
+ llm: z.ZodDefault<z.ZodEnum<["server", "local"]>>;
1436
+ worlds: z.ZodDefault<z.ZodObject<{
1437
+ local: z.ZodDefault<z.ZodBoolean>;
1438
+ remote: z.ZodDefault<z.ZodBoolean>;
1439
+ }, "strip", z.ZodTypeAny, {
1440
+ local: boolean;
1441
+ remote: boolean;
1442
+ }, {
1443
+ local?: boolean | undefined;
1444
+ remote?: boolean | undefined;
1445
+ }>>;
1446
+ /** Путь к файлу credentials (пусто → ~/.config/synth/credentials.json). */
1447
+ credentialsPath: z.ZodDefault<z.ZodString>;
1448
+ timeoutMs: z.ZodDefault<z.ZodNumber>;
1449
+ }, "strip", z.ZodTypeAny, {
1450
+ enabled: boolean;
1451
+ backendUrl: string;
1452
+ auth: {
1453
+ type: "device" | "api_key";
1454
+ apiKey: string;
1455
+ issuer: string;
1456
+ clientId: string;
1457
+ };
1458
+ llm: "local" | "server";
1459
+ worlds: {
1460
+ local: boolean;
1461
+ remote: boolean;
1462
+ };
1463
+ credentialsPath: string;
1464
+ timeoutMs: number;
1465
+ }, {
1466
+ enabled?: boolean | undefined;
1467
+ backendUrl?: string | undefined;
1468
+ auth?: {
1469
+ type?: "device" | "api_key" | undefined;
1470
+ apiKey?: string | undefined;
1471
+ issuer?: string | undefined;
1472
+ clientId?: string | undefined;
1304
1473
  } | undefined;
1474
+ llm?: "local" | "server" | undefined;
1475
+ worlds?: {
1476
+ local?: boolean | undefined;
1477
+ remote?: boolean | undefined;
1478
+ } | undefined;
1479
+ credentialsPath?: string | undefined;
1480
+ timeoutMs?: number | undefined;
1305
1481
  }>>;
1306
1482
  microFirst: z.ZodDefault<z.ZodObject<{
1307
1483
  enabled: z.ZodDefault<z.ZodBoolean>;
@@ -1409,38 +1585,61 @@ export declare const synthConfigSchema: z.ZodObject<{
1409
1585
  /** Режим детекции подозрительных паттернов: flag (пометить), sanitize (заменить), block (заблокировать). */
1410
1586
  mode: z.ZodDefault<z.ZodEnum<["flag", "sanitize", "block"]>>;
1411
1587
  }, "strip", z.ZodTypeAny, {
1588
+ mode: "flag" | "sanitize" | "block";
1412
1589
  enabled: boolean;
1413
1590
  wrapContent: boolean;
1414
- mode: "flag" | "sanitize" | "block";
1415
1591
  }, {
1592
+ mode?: "flag" | "sanitize" | "block" | undefined;
1416
1593
  enabled?: boolean | undefined;
1417
1594
  wrapContent?: boolean | undefined;
1418
- mode?: "flag" | "sanitize" | "block" | undefined;
1595
+ }>>;
1596
+ protectedPaths: z.ZodDefault<z.ZodObject<{
1597
+ /** Глобальный выключатель защиты защищённых путей (сквозная проверка файловых тулов). */
1598
+ enabled: z.ZodDefault<z.ZodBoolean>;
1599
+ }, "strip", z.ZodTypeAny, {
1600
+ enabled: boolean;
1601
+ }, {
1602
+ enabled?: boolean | undefined;
1419
1603
  }>>;
1420
1604
  }, "strip", z.ZodTypeAny, {
1421
1605
  promptInjection: {
1606
+ mode: "flag" | "sanitize" | "block";
1422
1607
  enabled: boolean;
1423
1608
  wrapContent: boolean;
1424
- mode: "flag" | "sanitize" | "block";
1609
+ };
1610
+ protectedPaths: {
1611
+ enabled: boolean;
1425
1612
  };
1426
1613
  }, {
1427
1614
  promptInjection?: {
1615
+ mode?: "flag" | "sanitize" | "block" | undefined;
1428
1616
  enabled?: boolean | undefined;
1429
1617
  wrapContent?: boolean | undefined;
1430
- mode?: "flag" | "sanitize" | "block" | undefined;
1618
+ } | undefined;
1619
+ protectedPaths?: {
1620
+ enabled?: boolean | undefined;
1431
1621
  } | undefined;
1432
1622
  }>>;
1433
1623
  }, "strip", z.ZodTypeAny, {
1434
- server: {
1435
- host: string;
1436
- port: number;
1437
- corsOrigin: string;
1438
- allowedOrigins: string[];
1624
+ mcp: {
1625
+ servers: Record<string, {
1626
+ type: "stdio" | "sse";
1627
+ url?: string | undefined;
1628
+ command?: string | undefined;
1629
+ args?: string[] | undefined;
1630
+ enabled?: boolean | undefined;
1631
+ timeout?: number | undefined;
1632
+ env?: Record<string, string> | undefined;
1633
+ headers?: Record<string, string> | undefined;
1634
+ enabledByDefault?: boolean | undefined;
1635
+ connectTimeout?: number | undefined;
1636
+ }>;
1439
1637
  };
1440
- storage: {
1441
- dataDir: string;
1442
- workspacesRoot: string;
1443
- defaultWorkspace: string;
1638
+ summarization: {
1639
+ provider: string;
1640
+ model: string;
1641
+ temperature: number;
1642
+ promptFile: string;
1444
1643
  };
1445
1644
  auth: {
1446
1645
  debugMode: boolean;
@@ -1458,25 +1657,54 @@ export declare const synthConfigSchema: z.ZodObject<{
1458
1657
  clientId: string;
1459
1658
  clientSecret: string;
1460
1659
  redirectUri: string;
1660
+ cliClientId: string;
1461
1661
  } | undefined;
1462
1662
  };
1663
+ server: {
1664
+ host: string;
1665
+ port: number;
1666
+ corsOrigin: string;
1667
+ allowedOrigins: string[];
1668
+ };
1463
1669
  llm: {
1464
1670
  defaultProvider: string;
1465
1671
  defaultModel: string;
1466
1672
  maxRetries: number;
1467
1673
  timeout: number;
1468
1674
  };
1675
+ remote: {
1676
+ enabled: boolean;
1677
+ backendUrl: string;
1678
+ auth: {
1679
+ type: "device" | "api_key";
1680
+ apiKey: string;
1681
+ issuer: string;
1682
+ clientId: string;
1683
+ };
1684
+ llm: "local" | "server";
1685
+ worlds: {
1686
+ local: boolean;
1687
+ remote: boolean;
1688
+ };
1689
+ credentialsPath: string;
1690
+ timeoutMs: number;
1691
+ };
1692
+ storage: {
1693
+ dataDir: string;
1694
+ workspacesRoot: string;
1695
+ defaultWorkspace: string;
1696
+ };
1469
1697
  core: {
1470
- port: number;
1471
1698
  apiKey: string;
1699
+ port: number;
1472
1700
  };
1473
1701
  runner: {
1474
1702
  port: number;
1475
1703
  backendUrl: string;
1476
1704
  enginePorts: {
1705
+ synth: number;
1477
1706
  opencode: number;
1478
1707
  cline: number;
1479
- synth: number;
1480
1708
  };
1481
1709
  proxyPort: number;
1482
1710
  };
@@ -1504,28 +1732,12 @@ export declare const synthConfigSchema: z.ZodObject<{
1504
1732
  context: {
1505
1733
  enabledFiles: string[];
1506
1734
  };
1507
- summarization: {
1508
- provider: string;
1509
- model: string;
1510
- temperature: number;
1511
- promptFile: string;
1512
- };
1513
- mcp: {
1514
- servers: Record<string, {
1515
- type: "stdio" | "sse";
1516
- enabled?: boolean | undefined;
1517
- timeout?: number | undefined;
1518
- url?: string | undefined;
1519
- command?: string | undefined;
1520
- args?: string[] | undefined;
1521
- env?: Record<string, string> | undefined;
1522
- headers?: Record<string, string> | undefined;
1523
- enabledByDefault?: boolean | undefined;
1524
- connectTimeout?: number | undefined;
1525
- }>;
1526
- };
1527
1735
  router: {
1528
- enabled: boolean;
1736
+ subagent: {
1737
+ provider: string;
1738
+ model: string;
1739
+ enabled: boolean;
1740
+ };
1529
1741
  content: {
1530
1742
  coding: {
1531
1743
  provider: string;
@@ -1548,6 +1760,7 @@ export declare const synthConfigSchema: z.ZodObject<{
1548
1760
  expensiveModel: string;
1549
1761
  maxCheapTokens: number;
1550
1762
  };
1763
+ enabled: boolean;
1551
1764
  strategy: "auto" | "content" | "cost" | "content+cost";
1552
1765
  escalation: {
1553
1766
  enabled: boolean;
@@ -1557,11 +1770,6 @@ export declare const synthConfigSchema: z.ZodObject<{
1557
1770
  fallbackModel: string;
1558
1771
  checks: ("min_length" | "constraint" | "self_check")[];
1559
1772
  };
1560
- subagent: {
1561
- enabled: boolean;
1562
- provider: string;
1563
- model: string;
1564
- };
1565
1773
  };
1566
1774
  microFirst: {
1567
1775
  enabled: boolean;
@@ -1594,26 +1802,38 @@ export declare const synthConfigSchema: z.ZodObject<{
1594
1802
  };
1595
1803
  security: {
1596
1804
  promptInjection: {
1805
+ mode: "flag" | "sanitize" | "block";
1597
1806
  enabled: boolean;
1598
1807
  wrapContent: boolean;
1599
- mode: "flag" | "sanitize" | "block";
1808
+ };
1809
+ protectedPaths: {
1810
+ enabled: boolean;
1600
1811
  };
1601
1812
  };
1602
1813
  }, {
1603
- server?: {
1604
- host?: string | undefined;
1605
- port?: number | undefined;
1606
- corsOrigin?: string | undefined;
1607
- allowedOrigins?: string[] | undefined;
1814
+ mcp?: {
1815
+ servers?: Record<string, {
1816
+ type: "stdio" | "sse";
1817
+ url?: string | undefined;
1818
+ command?: string | undefined;
1819
+ args?: string[] | undefined;
1820
+ enabled?: boolean | undefined;
1821
+ timeout?: number | undefined;
1822
+ env?: Record<string, string> | undefined;
1823
+ headers?: Record<string, string> | undefined;
1824
+ enabledByDefault?: boolean | undefined;
1825
+ connectTimeout?: number | undefined;
1826
+ }> | undefined;
1608
1827
  } | undefined;
1609
- storage?: {
1610
- dataDir?: string | undefined;
1611
- workspacesRoot?: string | undefined;
1612
- defaultWorkspace?: string | undefined;
1828
+ summarization?: {
1829
+ provider?: string | undefined;
1830
+ model?: string | undefined;
1831
+ temperature?: number | undefined;
1832
+ promptFile?: string | undefined;
1613
1833
  } | undefined;
1614
1834
  auth?: {
1615
- debugMode?: boolean | undefined;
1616
1835
  apiKey?: string | undefined;
1836
+ debugMode?: boolean | undefined;
1617
1837
  testUsers?: {
1618
1838
  apiKey: string;
1619
1839
  username: string;
@@ -1627,25 +1847,54 @@ export declare const synthConfigSchema: z.ZodObject<{
1627
1847
  clientId?: string | undefined;
1628
1848
  clientSecret?: string | undefined;
1629
1849
  redirectUri?: string | undefined;
1850
+ cliClientId?: string | undefined;
1630
1851
  } | undefined;
1631
1852
  } | undefined;
1853
+ server?: {
1854
+ host?: string | undefined;
1855
+ port?: number | undefined;
1856
+ corsOrigin?: string | undefined;
1857
+ allowedOrigins?: string[] | undefined;
1858
+ } | undefined;
1632
1859
  llm?: {
1633
1860
  defaultProvider?: string | undefined;
1634
1861
  defaultModel?: string | undefined;
1635
1862
  maxRetries?: number | undefined;
1636
1863
  timeout?: number | undefined;
1637
1864
  } | undefined;
1865
+ remote?: {
1866
+ enabled?: boolean | undefined;
1867
+ backendUrl?: string | undefined;
1868
+ auth?: {
1869
+ type?: "device" | "api_key" | undefined;
1870
+ apiKey?: string | undefined;
1871
+ issuer?: string | undefined;
1872
+ clientId?: string | undefined;
1873
+ } | undefined;
1874
+ llm?: "local" | "server" | undefined;
1875
+ worlds?: {
1876
+ local?: boolean | undefined;
1877
+ remote?: boolean | undefined;
1878
+ } | undefined;
1879
+ credentialsPath?: string | undefined;
1880
+ timeoutMs?: number | undefined;
1881
+ } | undefined;
1882
+ storage?: {
1883
+ dataDir?: string | undefined;
1884
+ workspacesRoot?: string | undefined;
1885
+ defaultWorkspace?: string | undefined;
1886
+ } | undefined;
1638
1887
  core?: {
1639
- port?: number | undefined;
1640
1888
  apiKey?: string | undefined;
1889
+ port?: number | undefined;
1641
1890
  } | undefined;
1642
1891
  runner?: {
1643
1892
  port?: number | undefined;
1644
1893
  backendUrl?: string | undefined;
1645
1894
  enginePorts?: {
1895
+ synth?: number | undefined;
1646
1896
  opencode?: number | undefined;
1647
1897
  cline?: number | undefined;
1648
- synth?: number | undefined;
1649
1898
  } | undefined;
1650
1899
  proxyPort?: number | undefined;
1651
1900
  } | undefined;
@@ -1673,28 +1922,12 @@ export declare const synthConfigSchema: z.ZodObject<{
1673
1922
  context?: {
1674
1923
  enabledFiles?: string[] | undefined;
1675
1924
  } | undefined;
1676
- summarization?: {
1677
- provider?: string | undefined;
1678
- model?: string | undefined;
1679
- temperature?: number | undefined;
1680
- promptFile?: string | undefined;
1681
- } | undefined;
1682
- mcp?: {
1683
- servers?: Record<string, {
1684
- type: "stdio" | "sse";
1685
- enabled?: boolean | undefined;
1686
- timeout?: number | undefined;
1687
- url?: string | undefined;
1688
- command?: string | undefined;
1689
- args?: string[] | undefined;
1690
- env?: Record<string, string> | undefined;
1691
- headers?: Record<string, string> | undefined;
1692
- enabledByDefault?: boolean | undefined;
1693
- connectTimeout?: number | undefined;
1694
- }> | undefined;
1695
- } | undefined;
1696
1925
  router?: {
1697
- enabled?: boolean | undefined;
1926
+ subagent?: {
1927
+ provider?: string | undefined;
1928
+ model?: string | undefined;
1929
+ enabled?: boolean | undefined;
1930
+ } | undefined;
1698
1931
  content?: {
1699
1932
  coding?: {
1700
1933
  provider?: string | undefined;
@@ -1717,6 +1950,7 @@ export declare const synthConfigSchema: z.ZodObject<{
1717
1950
  expensiveModel?: string | undefined;
1718
1951
  maxCheapTokens?: number | undefined;
1719
1952
  } | undefined;
1953
+ enabled?: boolean | undefined;
1720
1954
  strategy?: "auto" | "content" | "cost" | "content+cost" | undefined;
1721
1955
  escalation?: {
1722
1956
  enabled?: boolean | undefined;
@@ -1726,11 +1960,6 @@ export declare const synthConfigSchema: z.ZodObject<{
1726
1960
  fallbackModel?: string | undefined;
1727
1961
  checks?: ("min_length" | "constraint" | "self_check")[] | undefined;
1728
1962
  } | undefined;
1729
- subagent?: {
1730
- enabled?: boolean | undefined;
1731
- provider?: string | undefined;
1732
- model?: string | undefined;
1733
- } | undefined;
1734
1963
  } | undefined;
1735
1964
  microFirst?: {
1736
1965
  enabled?: boolean | undefined;
@@ -1763,9 +1992,12 @@ export declare const synthConfigSchema: z.ZodObject<{
1763
1992
  } | undefined;
1764
1993
  security?: {
1765
1994
  promptInjection?: {
1995
+ mode?: "flag" | "sanitize" | "block" | undefined;
1766
1996
  enabled?: boolean | undefined;
1767
1997
  wrapContent?: boolean | undefined;
1768
- mode?: "flag" | "sanitize" | "block" | undefined;
1998
+ } | undefined;
1999
+ protectedPaths?: {
2000
+ enabled?: boolean | undefined;
1769
2001
  } | undefined;
1770
2002
  } | undefined;
1771
2003
  }>;
@@ -1789,10 +2021,12 @@ export type RouterEscalationConfig = z.infer<typeof routerEscalationConfigSchema
1789
2021
  export type RouterCostConfig = z.infer<typeof routerCostConfigSchema>;
1790
2022
  export type RouterSubagentConfig = z.infer<typeof routerSubagentConfigSchema>;
1791
2023
  export type RouterConfig = z.infer<typeof routerConfigSchema>;
2024
+ export type RemoteConfig = z.infer<typeof remoteConfigSchema>;
1792
2025
  export type MicroFirstConfig = z.infer<typeof microFirstConfigSchema>;
1793
2026
  export type SynthConfig = z.infer<typeof synthConfigSchema>;
1794
2027
  export type PermissionConfig = z.infer<typeof permissionConfigSchema>;
1795
2028
  export type PromptInjectionConfig = z.infer<typeof promptInjectionConfigSchema>;
2029
+ export type ProtectedPathsConfig = z.infer<typeof protectedPathsConfigSchema>;
1796
2030
  export type SecurityConfig = z.infer<typeof securityConfigSchema>;
1797
2031
  export type LLMGatewayRateLimitConfig = z.infer<typeof llmGatewayRateLimitConfigSchema>;
1798
2032
  export type LLMGatewayAuditConfig = z.infer<typeof llmGatewayAuditConfigSchema>;