@fractary/core 0.6.0 → 0.7.3

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.
@@ -0,0 +1,1368 @@
1
+ /**
2
+ * @fractary/core - Configuration Validation Schemas
3
+ *
4
+ * Zod schemas for validating Fractary Core configuration.
5
+ * Provides runtime type checking and detailed error messages.
6
+ */
7
+ import { z } from 'zod';
8
+ /**
9
+ * PR merge defaults schema
10
+ */
11
+ export declare const PRMergeDefaultsSchema: z.ZodOptional<z.ZodObject<{
12
+ strategy: z.ZodOptional<z.ZodEnum<["squash", "merge", "rebase"]>>;
13
+ delete_branch: z.ZodOptional<z.ZodBoolean>;
14
+ }, "strict", z.ZodTypeAny, {
15
+ strategy?: "merge" | "squash" | "rebase" | undefined;
16
+ delete_branch?: boolean | undefined;
17
+ }, {
18
+ strategy?: "merge" | "squash" | "rebase" | undefined;
19
+ delete_branch?: boolean | undefined;
20
+ }>>;
21
+ /**
22
+ * PR defaults schema
23
+ */
24
+ export declare const PRDefaultsSchema: z.ZodOptional<z.ZodObject<{
25
+ template: z.ZodOptional<z.ZodString>;
26
+ require_work_id: z.ZodOptional<z.ZodBoolean>;
27
+ auto_link_issues: z.ZodOptional<z.ZodBoolean>;
28
+ ci_polling: z.ZodOptional<z.ZodObject<{
29
+ enabled: z.ZodOptional<z.ZodBoolean>;
30
+ interval_seconds: z.ZodOptional<z.ZodNumber>;
31
+ timeout_seconds: z.ZodOptional<z.ZodNumber>;
32
+ initial_delay_seconds: z.ZodOptional<z.ZodNumber>;
33
+ }, "strip", z.ZodTypeAny, {
34
+ enabled?: boolean | undefined;
35
+ interval_seconds?: number | undefined;
36
+ timeout_seconds?: number | undefined;
37
+ initial_delay_seconds?: number | undefined;
38
+ }, {
39
+ enabled?: boolean | undefined;
40
+ interval_seconds?: number | undefined;
41
+ timeout_seconds?: number | undefined;
42
+ initial_delay_seconds?: number | undefined;
43
+ }>>;
44
+ merge: z.ZodOptional<z.ZodObject<{
45
+ strategy: z.ZodOptional<z.ZodEnum<["squash", "merge", "rebase"]>>;
46
+ delete_branch: z.ZodOptional<z.ZodBoolean>;
47
+ }, "strict", z.ZodTypeAny, {
48
+ strategy?: "merge" | "squash" | "rebase" | undefined;
49
+ delete_branch?: boolean | undefined;
50
+ }, {
51
+ strategy?: "merge" | "squash" | "rebase" | undefined;
52
+ delete_branch?: boolean | undefined;
53
+ }>>;
54
+ }, "strip", z.ZodTypeAny, {
55
+ merge?: {
56
+ strategy?: "merge" | "squash" | "rebase" | undefined;
57
+ delete_branch?: boolean | undefined;
58
+ } | undefined;
59
+ template?: string | undefined;
60
+ require_work_id?: boolean | undefined;
61
+ auto_link_issues?: boolean | undefined;
62
+ ci_polling?: {
63
+ enabled?: boolean | undefined;
64
+ interval_seconds?: number | undefined;
65
+ timeout_seconds?: number | undefined;
66
+ initial_delay_seconds?: number | undefined;
67
+ } | undefined;
68
+ }, {
69
+ merge?: {
70
+ strategy?: "merge" | "squash" | "rebase" | undefined;
71
+ delete_branch?: boolean | undefined;
72
+ } | undefined;
73
+ template?: string | undefined;
74
+ require_work_id?: boolean | undefined;
75
+ auto_link_issues?: boolean | undefined;
76
+ ci_polling?: {
77
+ enabled?: boolean | undefined;
78
+ interval_seconds?: number | undefined;
79
+ timeout_seconds?: number | undefined;
80
+ initial_delay_seconds?: number | undefined;
81
+ } | undefined;
82
+ }>>;
83
+ /**
84
+ * Repository defaults schema
85
+ */
86
+ export declare const RepoDefaultsSchema: z.ZodOptional<z.ZodObject<{
87
+ default_branch: z.ZodOptional<z.ZodString>;
88
+ protected_branches: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
89
+ branch_naming: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
90
+ commit_format: z.ZodOptional<z.ZodString>;
91
+ require_signed_commits: z.ZodOptional<z.ZodBoolean>;
92
+ merge_strategy: z.ZodOptional<z.ZodString>;
93
+ auto_delete_merged_branches: z.ZodOptional<z.ZodBoolean>;
94
+ remote: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
95
+ push_sync_strategy: z.ZodOptional<z.ZodString>;
96
+ pull_sync_strategy: z.ZodOptional<z.ZodString>;
97
+ pr: z.ZodOptional<z.ZodObject<{
98
+ template: z.ZodOptional<z.ZodString>;
99
+ require_work_id: z.ZodOptional<z.ZodBoolean>;
100
+ auto_link_issues: z.ZodOptional<z.ZodBoolean>;
101
+ ci_polling: z.ZodOptional<z.ZodObject<{
102
+ enabled: z.ZodOptional<z.ZodBoolean>;
103
+ interval_seconds: z.ZodOptional<z.ZodNumber>;
104
+ timeout_seconds: z.ZodOptional<z.ZodNumber>;
105
+ initial_delay_seconds: z.ZodOptional<z.ZodNumber>;
106
+ }, "strip", z.ZodTypeAny, {
107
+ enabled?: boolean | undefined;
108
+ interval_seconds?: number | undefined;
109
+ timeout_seconds?: number | undefined;
110
+ initial_delay_seconds?: number | undefined;
111
+ }, {
112
+ enabled?: boolean | undefined;
113
+ interval_seconds?: number | undefined;
114
+ timeout_seconds?: number | undefined;
115
+ initial_delay_seconds?: number | undefined;
116
+ }>>;
117
+ merge: z.ZodOptional<z.ZodObject<{
118
+ strategy: z.ZodOptional<z.ZodEnum<["squash", "merge", "rebase"]>>;
119
+ delete_branch: z.ZodOptional<z.ZodBoolean>;
120
+ }, "strict", z.ZodTypeAny, {
121
+ strategy?: "merge" | "squash" | "rebase" | undefined;
122
+ delete_branch?: boolean | undefined;
123
+ }, {
124
+ strategy?: "merge" | "squash" | "rebase" | undefined;
125
+ delete_branch?: boolean | undefined;
126
+ }>>;
127
+ }, "strip", z.ZodTypeAny, {
128
+ merge?: {
129
+ strategy?: "merge" | "squash" | "rebase" | undefined;
130
+ delete_branch?: boolean | undefined;
131
+ } | undefined;
132
+ template?: string | undefined;
133
+ require_work_id?: boolean | undefined;
134
+ auto_link_issues?: boolean | undefined;
135
+ ci_polling?: {
136
+ enabled?: boolean | undefined;
137
+ interval_seconds?: number | undefined;
138
+ timeout_seconds?: number | undefined;
139
+ initial_delay_seconds?: number | undefined;
140
+ } | undefined;
141
+ }, {
142
+ merge?: {
143
+ strategy?: "merge" | "squash" | "rebase" | undefined;
144
+ delete_branch?: boolean | undefined;
145
+ } | undefined;
146
+ template?: string | undefined;
147
+ require_work_id?: boolean | undefined;
148
+ auto_link_issues?: boolean | undefined;
149
+ ci_polling?: {
150
+ enabled?: boolean | undefined;
151
+ interval_seconds?: number | undefined;
152
+ timeout_seconds?: number | undefined;
153
+ initial_delay_seconds?: number | undefined;
154
+ } | undefined;
155
+ }>>;
156
+ }, "strip", z.ZodTypeAny, {
157
+ remote?: Record<string, any> | undefined;
158
+ pr?: {
159
+ merge?: {
160
+ strategy?: "merge" | "squash" | "rebase" | undefined;
161
+ delete_branch?: boolean | undefined;
162
+ } | undefined;
163
+ template?: string | undefined;
164
+ require_work_id?: boolean | undefined;
165
+ auto_link_issues?: boolean | undefined;
166
+ ci_polling?: {
167
+ enabled?: boolean | undefined;
168
+ interval_seconds?: number | undefined;
169
+ timeout_seconds?: number | undefined;
170
+ initial_delay_seconds?: number | undefined;
171
+ } | undefined;
172
+ } | undefined;
173
+ default_branch?: string | undefined;
174
+ commit_format?: string | undefined;
175
+ require_signed_commits?: boolean | undefined;
176
+ merge_strategy?: string | undefined;
177
+ auto_delete_merged_branches?: boolean | undefined;
178
+ push_sync_strategy?: string | undefined;
179
+ pull_sync_strategy?: string | undefined;
180
+ protected_branches?: string[] | undefined;
181
+ branch_naming?: Record<string, any> | undefined;
182
+ }, {
183
+ remote?: Record<string, any> | undefined;
184
+ pr?: {
185
+ merge?: {
186
+ strategy?: "merge" | "squash" | "rebase" | undefined;
187
+ delete_branch?: boolean | undefined;
188
+ } | undefined;
189
+ template?: string | undefined;
190
+ require_work_id?: boolean | undefined;
191
+ auto_link_issues?: boolean | undefined;
192
+ ci_polling?: {
193
+ enabled?: boolean | undefined;
194
+ interval_seconds?: number | undefined;
195
+ timeout_seconds?: number | undefined;
196
+ initial_delay_seconds?: number | undefined;
197
+ } | undefined;
198
+ } | undefined;
199
+ default_branch?: string | undefined;
200
+ commit_format?: string | undefined;
201
+ require_signed_commits?: boolean | undefined;
202
+ merge_strategy?: string | undefined;
203
+ auto_delete_merged_branches?: boolean | undefined;
204
+ push_sync_strategy?: string | undefined;
205
+ pull_sync_strategy?: string | undefined;
206
+ protected_branches?: string[] | undefined;
207
+ branch_naming?: Record<string, any> | undefined;
208
+ }>>;
209
+ /**
210
+ * Work configuration schema
211
+ */
212
+ export declare const WorkConfigSchema: z.ZodObject<{
213
+ active_handler: z.ZodString;
214
+ handlers: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodAny>, Record<string, any>, Record<string, any>>;
215
+ defaults: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
216
+ hooks: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
217
+ advanced: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
218
+ }, "strip", z.ZodTypeAny, {
219
+ active_handler: string;
220
+ handlers: Record<string, any>;
221
+ defaults?: Record<string, any> | undefined;
222
+ hooks?: Record<string, any> | undefined;
223
+ advanced?: Record<string, any> | undefined;
224
+ }, {
225
+ active_handler: string;
226
+ handlers: Record<string, any>;
227
+ defaults?: Record<string, any> | undefined;
228
+ hooks?: Record<string, any> | undefined;
229
+ advanced?: Record<string, any> | undefined;
230
+ }>;
231
+ /**
232
+ * Repository configuration schema
233
+ */
234
+ export declare const RepoConfigSchema: z.ZodObject<{
235
+ active_handler: z.ZodString;
236
+ handlers: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodAny>, Record<string, any>, Record<string, any>>;
237
+ defaults: z.ZodOptional<z.ZodObject<{
238
+ default_branch: z.ZodOptional<z.ZodString>;
239
+ protected_branches: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
240
+ branch_naming: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
241
+ commit_format: z.ZodOptional<z.ZodString>;
242
+ require_signed_commits: z.ZodOptional<z.ZodBoolean>;
243
+ merge_strategy: z.ZodOptional<z.ZodString>;
244
+ auto_delete_merged_branches: z.ZodOptional<z.ZodBoolean>;
245
+ remote: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
246
+ push_sync_strategy: z.ZodOptional<z.ZodString>;
247
+ pull_sync_strategy: z.ZodOptional<z.ZodString>;
248
+ pr: z.ZodOptional<z.ZodObject<{
249
+ template: z.ZodOptional<z.ZodString>;
250
+ require_work_id: z.ZodOptional<z.ZodBoolean>;
251
+ auto_link_issues: z.ZodOptional<z.ZodBoolean>;
252
+ ci_polling: z.ZodOptional<z.ZodObject<{
253
+ enabled: z.ZodOptional<z.ZodBoolean>;
254
+ interval_seconds: z.ZodOptional<z.ZodNumber>;
255
+ timeout_seconds: z.ZodOptional<z.ZodNumber>;
256
+ initial_delay_seconds: z.ZodOptional<z.ZodNumber>;
257
+ }, "strip", z.ZodTypeAny, {
258
+ enabled?: boolean | undefined;
259
+ interval_seconds?: number | undefined;
260
+ timeout_seconds?: number | undefined;
261
+ initial_delay_seconds?: number | undefined;
262
+ }, {
263
+ enabled?: boolean | undefined;
264
+ interval_seconds?: number | undefined;
265
+ timeout_seconds?: number | undefined;
266
+ initial_delay_seconds?: number | undefined;
267
+ }>>;
268
+ merge: z.ZodOptional<z.ZodObject<{
269
+ strategy: z.ZodOptional<z.ZodEnum<["squash", "merge", "rebase"]>>;
270
+ delete_branch: z.ZodOptional<z.ZodBoolean>;
271
+ }, "strict", z.ZodTypeAny, {
272
+ strategy?: "merge" | "squash" | "rebase" | undefined;
273
+ delete_branch?: boolean | undefined;
274
+ }, {
275
+ strategy?: "merge" | "squash" | "rebase" | undefined;
276
+ delete_branch?: boolean | undefined;
277
+ }>>;
278
+ }, "strip", z.ZodTypeAny, {
279
+ merge?: {
280
+ strategy?: "merge" | "squash" | "rebase" | undefined;
281
+ delete_branch?: boolean | undefined;
282
+ } | undefined;
283
+ template?: string | undefined;
284
+ require_work_id?: boolean | undefined;
285
+ auto_link_issues?: boolean | undefined;
286
+ ci_polling?: {
287
+ enabled?: boolean | undefined;
288
+ interval_seconds?: number | undefined;
289
+ timeout_seconds?: number | undefined;
290
+ initial_delay_seconds?: number | undefined;
291
+ } | undefined;
292
+ }, {
293
+ merge?: {
294
+ strategy?: "merge" | "squash" | "rebase" | undefined;
295
+ delete_branch?: boolean | undefined;
296
+ } | undefined;
297
+ template?: string | undefined;
298
+ require_work_id?: boolean | undefined;
299
+ auto_link_issues?: boolean | undefined;
300
+ ci_polling?: {
301
+ enabled?: boolean | undefined;
302
+ interval_seconds?: number | undefined;
303
+ timeout_seconds?: number | undefined;
304
+ initial_delay_seconds?: number | undefined;
305
+ } | undefined;
306
+ }>>;
307
+ }, "strip", z.ZodTypeAny, {
308
+ remote?: Record<string, any> | undefined;
309
+ pr?: {
310
+ merge?: {
311
+ strategy?: "merge" | "squash" | "rebase" | undefined;
312
+ delete_branch?: boolean | undefined;
313
+ } | undefined;
314
+ template?: string | undefined;
315
+ require_work_id?: boolean | undefined;
316
+ auto_link_issues?: boolean | undefined;
317
+ ci_polling?: {
318
+ enabled?: boolean | undefined;
319
+ interval_seconds?: number | undefined;
320
+ timeout_seconds?: number | undefined;
321
+ initial_delay_seconds?: number | undefined;
322
+ } | undefined;
323
+ } | undefined;
324
+ default_branch?: string | undefined;
325
+ commit_format?: string | undefined;
326
+ require_signed_commits?: boolean | undefined;
327
+ merge_strategy?: string | undefined;
328
+ auto_delete_merged_branches?: boolean | undefined;
329
+ push_sync_strategy?: string | undefined;
330
+ pull_sync_strategy?: string | undefined;
331
+ protected_branches?: string[] | undefined;
332
+ branch_naming?: Record<string, any> | undefined;
333
+ }, {
334
+ remote?: Record<string, any> | undefined;
335
+ pr?: {
336
+ merge?: {
337
+ strategy?: "merge" | "squash" | "rebase" | undefined;
338
+ delete_branch?: boolean | undefined;
339
+ } | undefined;
340
+ template?: string | undefined;
341
+ require_work_id?: boolean | undefined;
342
+ auto_link_issues?: boolean | undefined;
343
+ ci_polling?: {
344
+ enabled?: boolean | undefined;
345
+ interval_seconds?: number | undefined;
346
+ timeout_seconds?: number | undefined;
347
+ initial_delay_seconds?: number | undefined;
348
+ } | undefined;
349
+ } | undefined;
350
+ default_branch?: string | undefined;
351
+ commit_format?: string | undefined;
352
+ require_signed_commits?: boolean | undefined;
353
+ merge_strategy?: string | undefined;
354
+ auto_delete_merged_branches?: boolean | undefined;
355
+ push_sync_strategy?: string | undefined;
356
+ pull_sync_strategy?: string | undefined;
357
+ protected_branches?: string[] | undefined;
358
+ branch_naming?: Record<string, any> | undefined;
359
+ }>>;
360
+ faber_integration: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
361
+ hooks: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
362
+ platform_specific: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
363
+ }, "strip", z.ZodTypeAny, {
364
+ active_handler: string;
365
+ handlers: Record<string, any>;
366
+ defaults?: {
367
+ remote?: Record<string, any> | undefined;
368
+ pr?: {
369
+ merge?: {
370
+ strategy?: "merge" | "squash" | "rebase" | undefined;
371
+ delete_branch?: boolean | undefined;
372
+ } | undefined;
373
+ template?: string | undefined;
374
+ require_work_id?: boolean | undefined;
375
+ auto_link_issues?: boolean | undefined;
376
+ ci_polling?: {
377
+ enabled?: boolean | undefined;
378
+ interval_seconds?: number | undefined;
379
+ timeout_seconds?: number | undefined;
380
+ initial_delay_seconds?: number | undefined;
381
+ } | undefined;
382
+ } | undefined;
383
+ default_branch?: string | undefined;
384
+ commit_format?: string | undefined;
385
+ require_signed_commits?: boolean | undefined;
386
+ merge_strategy?: string | undefined;
387
+ auto_delete_merged_branches?: boolean | undefined;
388
+ push_sync_strategy?: string | undefined;
389
+ pull_sync_strategy?: string | undefined;
390
+ protected_branches?: string[] | undefined;
391
+ branch_naming?: Record<string, any> | undefined;
392
+ } | undefined;
393
+ hooks?: Record<string, any> | undefined;
394
+ faber_integration?: Record<string, any> | undefined;
395
+ platform_specific?: Record<string, any> | undefined;
396
+ }, {
397
+ active_handler: string;
398
+ handlers: Record<string, any>;
399
+ defaults?: {
400
+ remote?: Record<string, any> | undefined;
401
+ pr?: {
402
+ merge?: {
403
+ strategy?: "merge" | "squash" | "rebase" | undefined;
404
+ delete_branch?: boolean | undefined;
405
+ } | undefined;
406
+ template?: string | undefined;
407
+ require_work_id?: boolean | undefined;
408
+ auto_link_issues?: boolean | undefined;
409
+ ci_polling?: {
410
+ enabled?: boolean | undefined;
411
+ interval_seconds?: number | undefined;
412
+ timeout_seconds?: number | undefined;
413
+ initial_delay_seconds?: number | undefined;
414
+ } | undefined;
415
+ } | undefined;
416
+ default_branch?: string | undefined;
417
+ commit_format?: string | undefined;
418
+ require_signed_commits?: boolean | undefined;
419
+ merge_strategy?: string | undefined;
420
+ auto_delete_merged_branches?: boolean | undefined;
421
+ push_sync_strategy?: string | undefined;
422
+ pull_sync_strategy?: string | undefined;
423
+ protected_branches?: string[] | undefined;
424
+ branch_naming?: Record<string, any> | undefined;
425
+ } | undefined;
426
+ hooks?: Record<string, any> | undefined;
427
+ faber_integration?: Record<string, any> | undefined;
428
+ platform_specific?: Record<string, any> | undefined;
429
+ }>;
430
+ /**
431
+ * Logs configuration schema
432
+ */
433
+ export declare const LogsConfigSchema: z.ZodObject<{
434
+ schema_version: z.ZodString;
435
+ custom_templates_path: z.ZodOptional<z.ZodString>;
436
+ storage: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
437
+ retention: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
438
+ session_logging: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
439
+ auto_backup: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
440
+ summarization: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
441
+ archive: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
442
+ search: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
443
+ integration: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
444
+ docs_integration: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
445
+ }, "strip", z.ZodTypeAny, {
446
+ schema_version: string;
447
+ search?: Record<string, any> | undefined;
448
+ custom_templates_path?: string | undefined;
449
+ storage?: Record<string, any> | undefined;
450
+ retention?: Record<string, any> | undefined;
451
+ session_logging?: Record<string, any> | undefined;
452
+ auto_backup?: Record<string, any> | undefined;
453
+ summarization?: Record<string, any> | undefined;
454
+ archive?: Record<string, any> | undefined;
455
+ integration?: Record<string, any> | undefined;
456
+ docs_integration?: Record<string, any> | undefined;
457
+ }, {
458
+ schema_version: string;
459
+ search?: Record<string, any> | undefined;
460
+ custom_templates_path?: string | undefined;
461
+ storage?: Record<string, any> | undefined;
462
+ retention?: Record<string, any> | undefined;
463
+ session_logging?: Record<string, any> | undefined;
464
+ auto_backup?: Record<string, any> | undefined;
465
+ summarization?: Record<string, any> | undefined;
466
+ archive?: Record<string, any> | undefined;
467
+ integration?: Record<string, any> | undefined;
468
+ docs_integration?: Record<string, any> | undefined;
469
+ }>;
470
+ /**
471
+ * File source schema
472
+ */
473
+ export declare const FileSourceSchema: z.ZodObject<{
474
+ type: z.ZodString;
475
+ bucket: z.ZodOptional<z.ZodString>;
476
+ prefix: z.ZodOptional<z.ZodString>;
477
+ region: z.ZodOptional<z.ZodString>;
478
+ project_id: z.ZodOptional<z.ZodString>;
479
+ local: z.ZodObject<{
480
+ base_path: z.ZodString;
481
+ }, "strip", z.ZodTypeAny, {
482
+ base_path: string;
483
+ }, {
484
+ base_path: string;
485
+ }>;
486
+ push: z.ZodOptional<z.ZodObject<{
487
+ compress: z.ZodOptional<z.ZodBoolean>;
488
+ keep_local: z.ZodOptional<z.ZodBoolean>;
489
+ }, "strip", z.ZodTypeAny, {
490
+ compress?: boolean | undefined;
491
+ keep_local?: boolean | undefined;
492
+ }, {
493
+ compress?: boolean | undefined;
494
+ keep_local?: boolean | undefined;
495
+ }>>;
496
+ auth: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
497
+ }, "strip", z.ZodTypeAny, {
498
+ local: {
499
+ base_path: string;
500
+ };
501
+ type: string;
502
+ auth?: Record<string, any> | undefined;
503
+ push?: {
504
+ compress?: boolean | undefined;
505
+ keep_local?: boolean | undefined;
506
+ } | undefined;
507
+ bucket?: string | undefined;
508
+ prefix?: string | undefined;
509
+ region?: string | undefined;
510
+ project_id?: string | undefined;
511
+ }, {
512
+ local: {
513
+ base_path: string;
514
+ };
515
+ type: string;
516
+ auth?: Record<string, any> | undefined;
517
+ push?: {
518
+ compress?: boolean | undefined;
519
+ keep_local?: boolean | undefined;
520
+ } | undefined;
521
+ bucket?: string | undefined;
522
+ prefix?: string | undefined;
523
+ region?: string | undefined;
524
+ project_id?: string | undefined;
525
+ }>;
526
+ /**
527
+ * File configuration schema
528
+ */
529
+ export declare const FileConfigSchema: z.ZodObject<{
530
+ schema_version: z.ZodString;
531
+ sources: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
532
+ type: z.ZodString;
533
+ bucket: z.ZodOptional<z.ZodString>;
534
+ prefix: z.ZodOptional<z.ZodString>;
535
+ region: z.ZodOptional<z.ZodString>;
536
+ project_id: z.ZodOptional<z.ZodString>;
537
+ local: z.ZodObject<{
538
+ base_path: z.ZodString;
539
+ }, "strip", z.ZodTypeAny, {
540
+ base_path: string;
541
+ }, {
542
+ base_path: string;
543
+ }>;
544
+ push: z.ZodOptional<z.ZodObject<{
545
+ compress: z.ZodOptional<z.ZodBoolean>;
546
+ keep_local: z.ZodOptional<z.ZodBoolean>;
547
+ }, "strip", z.ZodTypeAny, {
548
+ compress?: boolean | undefined;
549
+ keep_local?: boolean | undefined;
550
+ }, {
551
+ compress?: boolean | undefined;
552
+ keep_local?: boolean | undefined;
553
+ }>>;
554
+ auth: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
555
+ }, "strip", z.ZodTypeAny, {
556
+ local: {
557
+ base_path: string;
558
+ };
559
+ type: string;
560
+ auth?: Record<string, any> | undefined;
561
+ push?: {
562
+ compress?: boolean | undefined;
563
+ keep_local?: boolean | undefined;
564
+ } | undefined;
565
+ bucket?: string | undefined;
566
+ prefix?: string | undefined;
567
+ region?: string | undefined;
568
+ project_id?: string | undefined;
569
+ }, {
570
+ local: {
571
+ base_path: string;
572
+ };
573
+ type: string;
574
+ auth?: Record<string, any> | undefined;
575
+ push?: {
576
+ compress?: boolean | undefined;
577
+ keep_local?: boolean | undefined;
578
+ } | undefined;
579
+ bucket?: string | undefined;
580
+ prefix?: string | undefined;
581
+ region?: string | undefined;
582
+ project_id?: string | undefined;
583
+ }>>>;
584
+ global_settings: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
585
+ active_handler: z.ZodOptional<z.ZodString>;
586
+ handlers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
587
+ }, "strip", z.ZodTypeAny, {
588
+ schema_version: string;
589
+ active_handler?: string | undefined;
590
+ handlers?: Record<string, any> | undefined;
591
+ sources?: Record<string, {
592
+ local: {
593
+ base_path: string;
594
+ };
595
+ type: string;
596
+ auth?: Record<string, any> | undefined;
597
+ push?: {
598
+ compress?: boolean | undefined;
599
+ keep_local?: boolean | undefined;
600
+ } | undefined;
601
+ bucket?: string | undefined;
602
+ prefix?: string | undefined;
603
+ region?: string | undefined;
604
+ project_id?: string | undefined;
605
+ }> | undefined;
606
+ global_settings?: Record<string, any> | undefined;
607
+ }, {
608
+ schema_version: string;
609
+ active_handler?: string | undefined;
610
+ handlers?: Record<string, any> | undefined;
611
+ sources?: Record<string, {
612
+ local: {
613
+ base_path: string;
614
+ };
615
+ type: string;
616
+ auth?: Record<string, any> | undefined;
617
+ push?: {
618
+ compress?: boolean | undefined;
619
+ keep_local?: boolean | undefined;
620
+ } | undefined;
621
+ bucket?: string | undefined;
622
+ prefix?: string | undefined;
623
+ region?: string | undefined;
624
+ project_id?: string | undefined;
625
+ }> | undefined;
626
+ global_settings?: Record<string, any> | undefined;
627
+ }>;
628
+ /**
629
+ * Specification configuration schema
630
+ */
631
+ export declare const SpecConfigSchema: z.ZodObject<{
632
+ schema_version: z.ZodString;
633
+ storage: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
634
+ naming: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
635
+ archive: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
636
+ integration: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
637
+ templates: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
638
+ }, "strip", z.ZodTypeAny, {
639
+ schema_version: string;
640
+ storage?: Record<string, any> | undefined;
641
+ archive?: Record<string, any> | undefined;
642
+ integration?: Record<string, any> | undefined;
643
+ naming?: Record<string, any> | undefined;
644
+ templates?: Record<string, any> | undefined;
645
+ }, {
646
+ schema_version: string;
647
+ storage?: Record<string, any> | undefined;
648
+ archive?: Record<string, any> | undefined;
649
+ integration?: Record<string, any> | undefined;
650
+ naming?: Record<string, any> | undefined;
651
+ templates?: Record<string, any> | undefined;
652
+ }>;
653
+ /**
654
+ * Documentation configuration schema
655
+ */
656
+ export declare const DocsConfigSchema: z.ZodObject<{
657
+ schema_version: z.ZodString;
658
+ custom_templates_path: z.ZodOptional<z.ZodString>;
659
+ hooks: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
660
+ doc_types: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
661
+ output_paths: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
662
+ templates: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
663
+ frontmatter: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
664
+ validation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
665
+ linking: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
666
+ }, "strip", z.ZodTypeAny, {
667
+ schema_version: string;
668
+ validation?: Record<string, any> | undefined;
669
+ hooks?: Record<string, any> | undefined;
670
+ custom_templates_path?: string | undefined;
671
+ templates?: Record<string, any> | undefined;
672
+ doc_types?: Record<string, any> | undefined;
673
+ output_paths?: Record<string, any> | undefined;
674
+ frontmatter?: Record<string, any> | undefined;
675
+ linking?: Record<string, any> | undefined;
676
+ }, {
677
+ schema_version: string;
678
+ validation?: Record<string, any> | undefined;
679
+ hooks?: Record<string, any> | undefined;
680
+ custom_templates_path?: string | undefined;
681
+ templates?: Record<string, any> | undefined;
682
+ doc_types?: Record<string, any> | undefined;
683
+ output_paths?: Record<string, any> | undefined;
684
+ frontmatter?: Record<string, any> | undefined;
685
+ linking?: Record<string, any> | undefined;
686
+ }>;
687
+ /**
688
+ * Codex configuration schema
689
+ */
690
+ export declare const CodexConfigSchema: z.ZodObject<{
691
+ schema_version: z.ZodString;
692
+ organization: z.ZodString;
693
+ project: z.ZodString;
694
+ dependencies: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
695
+ }, "strip", z.ZodTypeAny, {
696
+ organization: string;
697
+ project: string;
698
+ schema_version: string;
699
+ dependencies?: Record<string, any> | undefined;
700
+ }, {
701
+ organization: string;
702
+ project: string;
703
+ schema_version: string;
704
+ dependencies?: Record<string, any> | undefined;
705
+ }>;
706
+ /**
707
+ * Complete CoreYamlConfig schema
708
+ */
709
+ export declare const CoreYamlConfigSchema: z.ZodObject<{
710
+ version: z.ZodEffects<z.ZodString, "2.0", string>;
711
+ work: z.ZodOptional<z.ZodObject<{
712
+ active_handler: z.ZodString;
713
+ handlers: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodAny>, Record<string, any>, Record<string, any>>;
714
+ defaults: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
715
+ hooks: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
716
+ advanced: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
717
+ }, "strip", z.ZodTypeAny, {
718
+ active_handler: string;
719
+ handlers: Record<string, any>;
720
+ defaults?: Record<string, any> | undefined;
721
+ hooks?: Record<string, any> | undefined;
722
+ advanced?: Record<string, any> | undefined;
723
+ }, {
724
+ active_handler: string;
725
+ handlers: Record<string, any>;
726
+ defaults?: Record<string, any> | undefined;
727
+ hooks?: Record<string, any> | undefined;
728
+ advanced?: Record<string, any> | undefined;
729
+ }>>;
730
+ repo: z.ZodOptional<z.ZodObject<{
731
+ active_handler: z.ZodString;
732
+ handlers: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodAny>, Record<string, any>, Record<string, any>>;
733
+ defaults: z.ZodOptional<z.ZodObject<{
734
+ default_branch: z.ZodOptional<z.ZodString>;
735
+ protected_branches: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
736
+ branch_naming: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
737
+ commit_format: z.ZodOptional<z.ZodString>;
738
+ require_signed_commits: z.ZodOptional<z.ZodBoolean>;
739
+ merge_strategy: z.ZodOptional<z.ZodString>;
740
+ auto_delete_merged_branches: z.ZodOptional<z.ZodBoolean>;
741
+ remote: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
742
+ push_sync_strategy: z.ZodOptional<z.ZodString>;
743
+ pull_sync_strategy: z.ZodOptional<z.ZodString>;
744
+ pr: z.ZodOptional<z.ZodObject<{
745
+ template: z.ZodOptional<z.ZodString>;
746
+ require_work_id: z.ZodOptional<z.ZodBoolean>;
747
+ auto_link_issues: z.ZodOptional<z.ZodBoolean>;
748
+ ci_polling: z.ZodOptional<z.ZodObject<{
749
+ enabled: z.ZodOptional<z.ZodBoolean>;
750
+ interval_seconds: z.ZodOptional<z.ZodNumber>;
751
+ timeout_seconds: z.ZodOptional<z.ZodNumber>;
752
+ initial_delay_seconds: z.ZodOptional<z.ZodNumber>;
753
+ }, "strip", z.ZodTypeAny, {
754
+ enabled?: boolean | undefined;
755
+ interval_seconds?: number | undefined;
756
+ timeout_seconds?: number | undefined;
757
+ initial_delay_seconds?: number | undefined;
758
+ }, {
759
+ enabled?: boolean | undefined;
760
+ interval_seconds?: number | undefined;
761
+ timeout_seconds?: number | undefined;
762
+ initial_delay_seconds?: number | undefined;
763
+ }>>;
764
+ merge: z.ZodOptional<z.ZodObject<{
765
+ strategy: z.ZodOptional<z.ZodEnum<["squash", "merge", "rebase"]>>;
766
+ delete_branch: z.ZodOptional<z.ZodBoolean>;
767
+ }, "strict", z.ZodTypeAny, {
768
+ strategy?: "merge" | "squash" | "rebase" | undefined;
769
+ delete_branch?: boolean | undefined;
770
+ }, {
771
+ strategy?: "merge" | "squash" | "rebase" | undefined;
772
+ delete_branch?: boolean | undefined;
773
+ }>>;
774
+ }, "strip", z.ZodTypeAny, {
775
+ merge?: {
776
+ strategy?: "merge" | "squash" | "rebase" | undefined;
777
+ delete_branch?: boolean | undefined;
778
+ } | undefined;
779
+ template?: string | undefined;
780
+ require_work_id?: boolean | undefined;
781
+ auto_link_issues?: boolean | undefined;
782
+ ci_polling?: {
783
+ enabled?: boolean | undefined;
784
+ interval_seconds?: number | undefined;
785
+ timeout_seconds?: number | undefined;
786
+ initial_delay_seconds?: number | undefined;
787
+ } | undefined;
788
+ }, {
789
+ merge?: {
790
+ strategy?: "merge" | "squash" | "rebase" | undefined;
791
+ delete_branch?: boolean | undefined;
792
+ } | undefined;
793
+ template?: string | undefined;
794
+ require_work_id?: boolean | undefined;
795
+ auto_link_issues?: boolean | undefined;
796
+ ci_polling?: {
797
+ enabled?: boolean | undefined;
798
+ interval_seconds?: number | undefined;
799
+ timeout_seconds?: number | undefined;
800
+ initial_delay_seconds?: number | undefined;
801
+ } | undefined;
802
+ }>>;
803
+ }, "strip", z.ZodTypeAny, {
804
+ remote?: Record<string, any> | undefined;
805
+ pr?: {
806
+ merge?: {
807
+ strategy?: "merge" | "squash" | "rebase" | undefined;
808
+ delete_branch?: boolean | undefined;
809
+ } | undefined;
810
+ template?: string | undefined;
811
+ require_work_id?: boolean | undefined;
812
+ auto_link_issues?: boolean | undefined;
813
+ ci_polling?: {
814
+ enabled?: boolean | undefined;
815
+ interval_seconds?: number | undefined;
816
+ timeout_seconds?: number | undefined;
817
+ initial_delay_seconds?: number | undefined;
818
+ } | undefined;
819
+ } | undefined;
820
+ default_branch?: string | undefined;
821
+ commit_format?: string | undefined;
822
+ require_signed_commits?: boolean | undefined;
823
+ merge_strategy?: string | undefined;
824
+ auto_delete_merged_branches?: boolean | undefined;
825
+ push_sync_strategy?: string | undefined;
826
+ pull_sync_strategy?: string | undefined;
827
+ protected_branches?: string[] | undefined;
828
+ branch_naming?: Record<string, any> | undefined;
829
+ }, {
830
+ remote?: Record<string, any> | undefined;
831
+ pr?: {
832
+ merge?: {
833
+ strategy?: "merge" | "squash" | "rebase" | undefined;
834
+ delete_branch?: boolean | undefined;
835
+ } | undefined;
836
+ template?: string | undefined;
837
+ require_work_id?: boolean | undefined;
838
+ auto_link_issues?: boolean | undefined;
839
+ ci_polling?: {
840
+ enabled?: boolean | undefined;
841
+ interval_seconds?: number | undefined;
842
+ timeout_seconds?: number | undefined;
843
+ initial_delay_seconds?: number | undefined;
844
+ } | undefined;
845
+ } | undefined;
846
+ default_branch?: string | undefined;
847
+ commit_format?: string | undefined;
848
+ require_signed_commits?: boolean | undefined;
849
+ merge_strategy?: string | undefined;
850
+ auto_delete_merged_branches?: boolean | undefined;
851
+ push_sync_strategy?: string | undefined;
852
+ pull_sync_strategy?: string | undefined;
853
+ protected_branches?: string[] | undefined;
854
+ branch_naming?: Record<string, any> | undefined;
855
+ }>>;
856
+ faber_integration: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
857
+ hooks: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
858
+ platform_specific: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
859
+ }, "strip", z.ZodTypeAny, {
860
+ active_handler: string;
861
+ handlers: Record<string, any>;
862
+ defaults?: {
863
+ remote?: Record<string, any> | undefined;
864
+ pr?: {
865
+ merge?: {
866
+ strategy?: "merge" | "squash" | "rebase" | undefined;
867
+ delete_branch?: boolean | undefined;
868
+ } | undefined;
869
+ template?: string | undefined;
870
+ require_work_id?: boolean | undefined;
871
+ auto_link_issues?: boolean | undefined;
872
+ ci_polling?: {
873
+ enabled?: boolean | undefined;
874
+ interval_seconds?: number | undefined;
875
+ timeout_seconds?: number | undefined;
876
+ initial_delay_seconds?: number | undefined;
877
+ } | undefined;
878
+ } | undefined;
879
+ default_branch?: string | undefined;
880
+ commit_format?: string | undefined;
881
+ require_signed_commits?: boolean | undefined;
882
+ merge_strategy?: string | undefined;
883
+ auto_delete_merged_branches?: boolean | undefined;
884
+ push_sync_strategy?: string | undefined;
885
+ pull_sync_strategy?: string | undefined;
886
+ protected_branches?: string[] | undefined;
887
+ branch_naming?: Record<string, any> | undefined;
888
+ } | undefined;
889
+ hooks?: Record<string, any> | undefined;
890
+ faber_integration?: Record<string, any> | undefined;
891
+ platform_specific?: Record<string, any> | undefined;
892
+ }, {
893
+ active_handler: string;
894
+ handlers: Record<string, any>;
895
+ defaults?: {
896
+ remote?: Record<string, any> | undefined;
897
+ pr?: {
898
+ merge?: {
899
+ strategy?: "merge" | "squash" | "rebase" | undefined;
900
+ delete_branch?: boolean | undefined;
901
+ } | undefined;
902
+ template?: string | undefined;
903
+ require_work_id?: boolean | undefined;
904
+ auto_link_issues?: boolean | undefined;
905
+ ci_polling?: {
906
+ enabled?: boolean | undefined;
907
+ interval_seconds?: number | undefined;
908
+ timeout_seconds?: number | undefined;
909
+ initial_delay_seconds?: number | undefined;
910
+ } | undefined;
911
+ } | undefined;
912
+ default_branch?: string | undefined;
913
+ commit_format?: string | undefined;
914
+ require_signed_commits?: boolean | undefined;
915
+ merge_strategy?: string | undefined;
916
+ auto_delete_merged_branches?: boolean | undefined;
917
+ push_sync_strategy?: string | undefined;
918
+ pull_sync_strategy?: string | undefined;
919
+ protected_branches?: string[] | undefined;
920
+ branch_naming?: Record<string, any> | undefined;
921
+ } | undefined;
922
+ hooks?: Record<string, any> | undefined;
923
+ faber_integration?: Record<string, any> | undefined;
924
+ platform_specific?: Record<string, any> | undefined;
925
+ }>>;
926
+ logs: z.ZodOptional<z.ZodObject<{
927
+ schema_version: z.ZodString;
928
+ custom_templates_path: z.ZodOptional<z.ZodString>;
929
+ storage: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
930
+ retention: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
931
+ session_logging: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
932
+ auto_backup: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
933
+ summarization: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
934
+ archive: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
935
+ search: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
936
+ integration: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
937
+ docs_integration: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
938
+ }, "strip", z.ZodTypeAny, {
939
+ schema_version: string;
940
+ search?: Record<string, any> | undefined;
941
+ custom_templates_path?: string | undefined;
942
+ storage?: Record<string, any> | undefined;
943
+ retention?: Record<string, any> | undefined;
944
+ session_logging?: Record<string, any> | undefined;
945
+ auto_backup?: Record<string, any> | undefined;
946
+ summarization?: Record<string, any> | undefined;
947
+ archive?: Record<string, any> | undefined;
948
+ integration?: Record<string, any> | undefined;
949
+ docs_integration?: Record<string, any> | undefined;
950
+ }, {
951
+ schema_version: string;
952
+ search?: Record<string, any> | undefined;
953
+ custom_templates_path?: string | undefined;
954
+ storage?: Record<string, any> | undefined;
955
+ retention?: Record<string, any> | undefined;
956
+ session_logging?: Record<string, any> | undefined;
957
+ auto_backup?: Record<string, any> | undefined;
958
+ summarization?: Record<string, any> | undefined;
959
+ archive?: Record<string, any> | undefined;
960
+ integration?: Record<string, any> | undefined;
961
+ docs_integration?: Record<string, any> | undefined;
962
+ }>>;
963
+ file: z.ZodOptional<z.ZodObject<{
964
+ schema_version: z.ZodString;
965
+ sources: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
966
+ type: z.ZodString;
967
+ bucket: z.ZodOptional<z.ZodString>;
968
+ prefix: z.ZodOptional<z.ZodString>;
969
+ region: z.ZodOptional<z.ZodString>;
970
+ project_id: z.ZodOptional<z.ZodString>;
971
+ local: z.ZodObject<{
972
+ base_path: z.ZodString;
973
+ }, "strip", z.ZodTypeAny, {
974
+ base_path: string;
975
+ }, {
976
+ base_path: string;
977
+ }>;
978
+ push: z.ZodOptional<z.ZodObject<{
979
+ compress: z.ZodOptional<z.ZodBoolean>;
980
+ keep_local: z.ZodOptional<z.ZodBoolean>;
981
+ }, "strip", z.ZodTypeAny, {
982
+ compress?: boolean | undefined;
983
+ keep_local?: boolean | undefined;
984
+ }, {
985
+ compress?: boolean | undefined;
986
+ keep_local?: boolean | undefined;
987
+ }>>;
988
+ auth: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
989
+ }, "strip", z.ZodTypeAny, {
990
+ local: {
991
+ base_path: string;
992
+ };
993
+ type: string;
994
+ auth?: Record<string, any> | undefined;
995
+ push?: {
996
+ compress?: boolean | undefined;
997
+ keep_local?: boolean | undefined;
998
+ } | undefined;
999
+ bucket?: string | undefined;
1000
+ prefix?: string | undefined;
1001
+ region?: string | undefined;
1002
+ project_id?: string | undefined;
1003
+ }, {
1004
+ local: {
1005
+ base_path: string;
1006
+ };
1007
+ type: string;
1008
+ auth?: Record<string, any> | undefined;
1009
+ push?: {
1010
+ compress?: boolean | undefined;
1011
+ keep_local?: boolean | undefined;
1012
+ } | undefined;
1013
+ bucket?: string | undefined;
1014
+ prefix?: string | undefined;
1015
+ region?: string | undefined;
1016
+ project_id?: string | undefined;
1017
+ }>>>;
1018
+ global_settings: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
1019
+ active_handler: z.ZodOptional<z.ZodString>;
1020
+ handlers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
1021
+ }, "strip", z.ZodTypeAny, {
1022
+ schema_version: string;
1023
+ active_handler?: string | undefined;
1024
+ handlers?: Record<string, any> | undefined;
1025
+ sources?: Record<string, {
1026
+ local: {
1027
+ base_path: string;
1028
+ };
1029
+ type: string;
1030
+ auth?: Record<string, any> | undefined;
1031
+ push?: {
1032
+ compress?: boolean | undefined;
1033
+ keep_local?: boolean | undefined;
1034
+ } | undefined;
1035
+ bucket?: string | undefined;
1036
+ prefix?: string | undefined;
1037
+ region?: string | undefined;
1038
+ project_id?: string | undefined;
1039
+ }> | undefined;
1040
+ global_settings?: Record<string, any> | undefined;
1041
+ }, {
1042
+ schema_version: string;
1043
+ active_handler?: string | undefined;
1044
+ handlers?: Record<string, any> | undefined;
1045
+ sources?: Record<string, {
1046
+ local: {
1047
+ base_path: string;
1048
+ };
1049
+ type: string;
1050
+ auth?: Record<string, any> | undefined;
1051
+ push?: {
1052
+ compress?: boolean | undefined;
1053
+ keep_local?: boolean | undefined;
1054
+ } | undefined;
1055
+ bucket?: string | undefined;
1056
+ prefix?: string | undefined;
1057
+ region?: string | undefined;
1058
+ project_id?: string | undefined;
1059
+ }> | undefined;
1060
+ global_settings?: Record<string, any> | undefined;
1061
+ }>>;
1062
+ spec: z.ZodOptional<z.ZodObject<{
1063
+ schema_version: z.ZodString;
1064
+ storage: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
1065
+ naming: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
1066
+ archive: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
1067
+ integration: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
1068
+ templates: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
1069
+ }, "strip", z.ZodTypeAny, {
1070
+ schema_version: string;
1071
+ storage?: Record<string, any> | undefined;
1072
+ archive?: Record<string, any> | undefined;
1073
+ integration?: Record<string, any> | undefined;
1074
+ naming?: Record<string, any> | undefined;
1075
+ templates?: Record<string, any> | undefined;
1076
+ }, {
1077
+ schema_version: string;
1078
+ storage?: Record<string, any> | undefined;
1079
+ archive?: Record<string, any> | undefined;
1080
+ integration?: Record<string, any> | undefined;
1081
+ naming?: Record<string, any> | undefined;
1082
+ templates?: Record<string, any> | undefined;
1083
+ }>>;
1084
+ docs: z.ZodOptional<z.ZodObject<{
1085
+ schema_version: z.ZodString;
1086
+ custom_templates_path: z.ZodOptional<z.ZodString>;
1087
+ hooks: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
1088
+ doc_types: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
1089
+ output_paths: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
1090
+ templates: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
1091
+ frontmatter: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
1092
+ validation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
1093
+ linking: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
1094
+ }, "strip", z.ZodTypeAny, {
1095
+ schema_version: string;
1096
+ validation?: Record<string, any> | undefined;
1097
+ hooks?: Record<string, any> | undefined;
1098
+ custom_templates_path?: string | undefined;
1099
+ templates?: Record<string, any> | undefined;
1100
+ doc_types?: Record<string, any> | undefined;
1101
+ output_paths?: Record<string, any> | undefined;
1102
+ frontmatter?: Record<string, any> | undefined;
1103
+ linking?: Record<string, any> | undefined;
1104
+ }, {
1105
+ schema_version: string;
1106
+ validation?: Record<string, any> | undefined;
1107
+ hooks?: Record<string, any> | undefined;
1108
+ custom_templates_path?: string | undefined;
1109
+ templates?: Record<string, any> | undefined;
1110
+ doc_types?: Record<string, any> | undefined;
1111
+ output_paths?: Record<string, any> | undefined;
1112
+ frontmatter?: Record<string, any> | undefined;
1113
+ linking?: Record<string, any> | undefined;
1114
+ }>>;
1115
+ codex: z.ZodOptional<z.ZodObject<{
1116
+ schema_version: z.ZodString;
1117
+ organization: z.ZodString;
1118
+ project: z.ZodString;
1119
+ dependencies: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
1120
+ }, "strip", z.ZodTypeAny, {
1121
+ organization: string;
1122
+ project: string;
1123
+ schema_version: string;
1124
+ dependencies?: Record<string, any> | undefined;
1125
+ }, {
1126
+ organization: string;
1127
+ project: string;
1128
+ schema_version: string;
1129
+ dependencies?: Record<string, any> | undefined;
1130
+ }>>;
1131
+ }, "strip", z.ZodTypeAny, {
1132
+ version: "2.0";
1133
+ docs?: {
1134
+ schema_version: string;
1135
+ validation?: Record<string, any> | undefined;
1136
+ hooks?: Record<string, any> | undefined;
1137
+ custom_templates_path?: string | undefined;
1138
+ templates?: Record<string, any> | undefined;
1139
+ doc_types?: Record<string, any> | undefined;
1140
+ output_paths?: Record<string, any> | undefined;
1141
+ frontmatter?: Record<string, any> | undefined;
1142
+ linking?: Record<string, any> | undefined;
1143
+ } | undefined;
1144
+ spec?: {
1145
+ schema_version: string;
1146
+ storage?: Record<string, any> | undefined;
1147
+ archive?: Record<string, any> | undefined;
1148
+ integration?: Record<string, any> | undefined;
1149
+ naming?: Record<string, any> | undefined;
1150
+ templates?: Record<string, any> | undefined;
1151
+ } | undefined;
1152
+ work?: {
1153
+ active_handler: string;
1154
+ handlers: Record<string, any>;
1155
+ defaults?: Record<string, any> | undefined;
1156
+ hooks?: Record<string, any> | undefined;
1157
+ advanced?: Record<string, any> | undefined;
1158
+ } | undefined;
1159
+ repo?: {
1160
+ active_handler: string;
1161
+ handlers: Record<string, any>;
1162
+ defaults?: {
1163
+ remote?: Record<string, any> | undefined;
1164
+ pr?: {
1165
+ merge?: {
1166
+ strategy?: "merge" | "squash" | "rebase" | undefined;
1167
+ delete_branch?: boolean | undefined;
1168
+ } | undefined;
1169
+ template?: string | undefined;
1170
+ require_work_id?: boolean | undefined;
1171
+ auto_link_issues?: boolean | undefined;
1172
+ ci_polling?: {
1173
+ enabled?: boolean | undefined;
1174
+ interval_seconds?: number | undefined;
1175
+ timeout_seconds?: number | undefined;
1176
+ initial_delay_seconds?: number | undefined;
1177
+ } | undefined;
1178
+ } | undefined;
1179
+ default_branch?: string | undefined;
1180
+ commit_format?: string | undefined;
1181
+ require_signed_commits?: boolean | undefined;
1182
+ merge_strategy?: string | undefined;
1183
+ auto_delete_merged_branches?: boolean | undefined;
1184
+ push_sync_strategy?: string | undefined;
1185
+ pull_sync_strategy?: string | undefined;
1186
+ protected_branches?: string[] | undefined;
1187
+ branch_naming?: Record<string, any> | undefined;
1188
+ } | undefined;
1189
+ hooks?: Record<string, any> | undefined;
1190
+ faber_integration?: Record<string, any> | undefined;
1191
+ platform_specific?: Record<string, any> | undefined;
1192
+ } | undefined;
1193
+ logs?: {
1194
+ schema_version: string;
1195
+ search?: Record<string, any> | undefined;
1196
+ custom_templates_path?: string | undefined;
1197
+ storage?: Record<string, any> | undefined;
1198
+ retention?: Record<string, any> | undefined;
1199
+ session_logging?: Record<string, any> | undefined;
1200
+ auto_backup?: Record<string, any> | undefined;
1201
+ summarization?: Record<string, any> | undefined;
1202
+ archive?: Record<string, any> | undefined;
1203
+ integration?: Record<string, any> | undefined;
1204
+ docs_integration?: Record<string, any> | undefined;
1205
+ } | undefined;
1206
+ file?: {
1207
+ schema_version: string;
1208
+ active_handler?: string | undefined;
1209
+ handlers?: Record<string, any> | undefined;
1210
+ sources?: Record<string, {
1211
+ local: {
1212
+ base_path: string;
1213
+ };
1214
+ type: string;
1215
+ auth?: Record<string, any> | undefined;
1216
+ push?: {
1217
+ compress?: boolean | undefined;
1218
+ keep_local?: boolean | undefined;
1219
+ } | undefined;
1220
+ bucket?: string | undefined;
1221
+ prefix?: string | undefined;
1222
+ region?: string | undefined;
1223
+ project_id?: string | undefined;
1224
+ }> | undefined;
1225
+ global_settings?: Record<string, any> | undefined;
1226
+ } | undefined;
1227
+ codex?: {
1228
+ organization: string;
1229
+ project: string;
1230
+ schema_version: string;
1231
+ dependencies?: Record<string, any> | undefined;
1232
+ } | undefined;
1233
+ }, {
1234
+ version: string;
1235
+ docs?: {
1236
+ schema_version: string;
1237
+ validation?: Record<string, any> | undefined;
1238
+ hooks?: Record<string, any> | undefined;
1239
+ custom_templates_path?: string | undefined;
1240
+ templates?: Record<string, any> | undefined;
1241
+ doc_types?: Record<string, any> | undefined;
1242
+ output_paths?: Record<string, any> | undefined;
1243
+ frontmatter?: Record<string, any> | undefined;
1244
+ linking?: Record<string, any> | undefined;
1245
+ } | undefined;
1246
+ spec?: {
1247
+ schema_version: string;
1248
+ storage?: Record<string, any> | undefined;
1249
+ archive?: Record<string, any> | undefined;
1250
+ integration?: Record<string, any> | undefined;
1251
+ naming?: Record<string, any> | undefined;
1252
+ templates?: Record<string, any> | undefined;
1253
+ } | undefined;
1254
+ work?: {
1255
+ active_handler: string;
1256
+ handlers: Record<string, any>;
1257
+ defaults?: Record<string, any> | undefined;
1258
+ hooks?: Record<string, any> | undefined;
1259
+ advanced?: Record<string, any> | undefined;
1260
+ } | undefined;
1261
+ repo?: {
1262
+ active_handler: string;
1263
+ handlers: Record<string, any>;
1264
+ defaults?: {
1265
+ remote?: Record<string, any> | undefined;
1266
+ pr?: {
1267
+ merge?: {
1268
+ strategy?: "merge" | "squash" | "rebase" | undefined;
1269
+ delete_branch?: boolean | undefined;
1270
+ } | undefined;
1271
+ template?: string | undefined;
1272
+ require_work_id?: boolean | undefined;
1273
+ auto_link_issues?: boolean | undefined;
1274
+ ci_polling?: {
1275
+ enabled?: boolean | undefined;
1276
+ interval_seconds?: number | undefined;
1277
+ timeout_seconds?: number | undefined;
1278
+ initial_delay_seconds?: number | undefined;
1279
+ } | undefined;
1280
+ } | undefined;
1281
+ default_branch?: string | undefined;
1282
+ commit_format?: string | undefined;
1283
+ require_signed_commits?: boolean | undefined;
1284
+ merge_strategy?: string | undefined;
1285
+ auto_delete_merged_branches?: boolean | undefined;
1286
+ push_sync_strategy?: string | undefined;
1287
+ pull_sync_strategy?: string | undefined;
1288
+ protected_branches?: string[] | undefined;
1289
+ branch_naming?: Record<string, any> | undefined;
1290
+ } | undefined;
1291
+ hooks?: Record<string, any> | undefined;
1292
+ faber_integration?: Record<string, any> | undefined;
1293
+ platform_specific?: Record<string, any> | undefined;
1294
+ } | undefined;
1295
+ logs?: {
1296
+ schema_version: string;
1297
+ search?: Record<string, any> | undefined;
1298
+ custom_templates_path?: string | undefined;
1299
+ storage?: Record<string, any> | undefined;
1300
+ retention?: Record<string, any> | undefined;
1301
+ session_logging?: Record<string, any> | undefined;
1302
+ auto_backup?: Record<string, any> | undefined;
1303
+ summarization?: Record<string, any> | undefined;
1304
+ archive?: Record<string, any> | undefined;
1305
+ integration?: Record<string, any> | undefined;
1306
+ docs_integration?: Record<string, any> | undefined;
1307
+ } | undefined;
1308
+ file?: {
1309
+ schema_version: string;
1310
+ active_handler?: string | undefined;
1311
+ handlers?: Record<string, any> | undefined;
1312
+ sources?: Record<string, {
1313
+ local: {
1314
+ base_path: string;
1315
+ };
1316
+ type: string;
1317
+ auth?: Record<string, any> | undefined;
1318
+ push?: {
1319
+ compress?: boolean | undefined;
1320
+ keep_local?: boolean | undefined;
1321
+ } | undefined;
1322
+ bucket?: string | undefined;
1323
+ prefix?: string | undefined;
1324
+ region?: string | undefined;
1325
+ project_id?: string | undefined;
1326
+ }> | undefined;
1327
+ global_settings?: Record<string, any> | undefined;
1328
+ } | undefined;
1329
+ codex?: {
1330
+ organization: string;
1331
+ project: string;
1332
+ schema_version: string;
1333
+ dependencies?: Record<string, any> | undefined;
1334
+ } | undefined;
1335
+ }>;
1336
+ /**
1337
+ * Validation result type
1338
+ */
1339
+ export interface ValidationResult {
1340
+ /** Whether the configuration is valid */
1341
+ valid: boolean;
1342
+ /** Array of error messages (empty if valid) */
1343
+ errors: string[];
1344
+ /** Array of warning messages */
1345
+ warnings: string[];
1346
+ /** Parsed configuration (only present if valid) */
1347
+ config?: z.infer<typeof CoreYamlConfigSchema>;
1348
+ }
1349
+ /**
1350
+ * Validate a configuration object against the schema
1351
+ *
1352
+ * @param config Configuration object to validate
1353
+ * @returns Validation result with errors and warnings
1354
+ *
1355
+ * @example
1356
+ * ```typescript
1357
+ * const result = validateConfig(loadedConfig);
1358
+ * if (!result.valid) {
1359
+ * console.error('Validation errors:', result.errors);
1360
+ * }
1361
+ * ```
1362
+ */
1363
+ export declare function validateConfig(config: unknown): ValidationResult;
1364
+ /**
1365
+ * Type alias for inferred CoreYamlConfig from schema
1366
+ */
1367
+ export type ValidatedCoreYamlConfig = z.infer<typeof CoreYamlConfigSchema>;
1368
+ //# sourceMappingURL=schema.d.ts.map