@contractspec/lib.contracts 1.45.2 → 1.45.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.
@@ -29,14 +29,14 @@ declare const OpenApiSourceConfigSchema: z$2.ZodObject<{
29
29
  include: z$2.ZodOptional<z$2.ZodArray<z$2.ZodString>>;
30
30
  prefix: z$2.ZodOptional<z$2.ZodString>;
31
31
  defaultStability: z$2.ZodOptional<z$2.ZodEnum<{
32
- deprecated: "deprecated";
33
32
  experimental: "experimental";
34
33
  beta: "beta";
35
34
  stable: "stable";
35
+ deprecated: "deprecated";
36
36
  }>>;
37
37
  defaultAuth: z$2.ZodOptional<z$2.ZodEnum<{
38
- user: "user";
39
38
  anonymous: "anonymous";
39
+ user: "user";
40
40
  admin: "admin";
41
41
  }>>;
42
42
  defaultOwners: z$2.ZodOptional<z$2.ZodArray<z$2.ZodString>>;
@@ -79,14 +79,14 @@ declare const OpenApiConfigSchema: z$2.ZodObject<{
79
79
  include: z$2.ZodOptional<z$2.ZodArray<z$2.ZodString>>;
80
80
  prefix: z$2.ZodOptional<z$2.ZodString>;
81
81
  defaultStability: z$2.ZodOptional<z$2.ZodEnum<{
82
- deprecated: "deprecated";
83
82
  experimental: "experimental";
84
83
  beta: "beta";
85
84
  stable: "stable";
85
+ deprecated: "deprecated";
86
86
  }>>;
87
87
  defaultAuth: z$2.ZodOptional<z$2.ZodEnum<{
88
- user: "user";
89
88
  anonymous: "anonymous";
89
+ user: "user";
90
90
  admin: "admin";
91
91
  }>>;
92
92
  defaultOwners: z$2.ZodOptional<z$2.ZodArray<z$2.ZodString>>;
@@ -294,92 +294,141 @@ declare const FormatterConfigSchema: z$2.ZodObject<{
294
294
  args: z$2.ZodOptional<z$2.ZodArray<z$2.ZodString>>;
295
295
  timeout: z$2.ZodDefault<z$2.ZodNumber>;
296
296
  }, z$2.core.$strip>;
297
+ /**
298
+ * Bump strategy for version management.
299
+ */
300
+ declare const BumpStrategySchema: z$2.ZodEnum<{
301
+ impact: "impact";
302
+ conventional: "conventional";
303
+ }>;
304
+ /**
305
+ * Changelog format template.
306
+ */
307
+ declare const ChangelogFormatSchema: z$2.ZodEnum<{
308
+ custom: "custom";
309
+ conventional: "conventional";
310
+ "keep-a-changelog": "keep-a-changelog";
311
+ }>;
312
+ /**
313
+ * Changelog tier configuration.
314
+ */
315
+ declare const ChangelogTierSchema: z$2.ZodEnum<{
316
+ spec: "spec";
317
+ library: "library";
318
+ monorepo: "monorepo";
319
+ }>;
320
+ /**
321
+ * Versioning configuration for changelog and version management.
322
+ */
323
+ declare const VersioningConfigSchema: z$2.ZodObject<{
324
+ autoBump: z$2.ZodDefault<z$2.ZodBoolean>;
325
+ bumpStrategy: z$2.ZodDefault<z$2.ZodEnum<{
326
+ impact: "impact";
327
+ conventional: "conventional";
328
+ }>>;
329
+ changelogTiers: z$2.ZodDefault<z$2.ZodArray<z$2.ZodEnum<{
330
+ spec: "spec";
331
+ library: "library";
332
+ monorepo: "monorepo";
333
+ }>>>;
334
+ format: z$2.ZodDefault<z$2.ZodEnum<{
335
+ custom: "custom";
336
+ conventional: "conventional";
337
+ "keep-a-changelog": "keep-a-changelog";
338
+ }>>;
339
+ commitChanges: z$2.ZodDefault<z$2.ZodBoolean>;
340
+ commitMessage: z$2.ZodDefault<z$2.ZodString>;
341
+ createTags: z$2.ZodDefault<z$2.ZodBoolean>;
342
+ tagPrefix: z$2.ZodDefault<z$2.ZodString>;
343
+ include: z$2.ZodOptional<z$2.ZodArray<z$2.ZodString>>;
344
+ exclude: z$2.ZodOptional<z$2.ZodArray<z$2.ZodString>>;
345
+ }, z$2.core.$strip>;
297
346
  /**
298
347
  * Rule severity levels (inspired by ESLint).
299
348
  */
300
349
  declare const RuleSeveritySchema: z$2.ZodEnum<{
301
- error: "error";
302
350
  off: "off";
303
351
  warn: "warn";
352
+ error: "error";
304
353
  }>;
305
354
  /**
306
355
  * Contract kinds for per-kind rule overrides.
307
356
  */
308
357
  declare const SpecKindSchema: z$2.ZodEnum<{
309
- telemetry: "telemetry";
310
358
  operation: "operation";
311
- "app-config": "app-config";
312
- "data-view": "data-view";
313
- workflow: "workflow";
314
- feature: "feature";
315
359
  event: "event";
316
360
  presentation: "presentation";
361
+ feature: "feature";
362
+ workflow: "workflow";
363
+ "data-view": "data-view";
317
364
  migration: "migration";
365
+ telemetry: "telemetry";
318
366
  experiment: "experiment";
367
+ "app-config": "app-config";
319
368
  }>;
320
369
  /**
321
370
  * Available lint rules with their severity.
322
371
  */
323
372
  declare const LintRulesSchema: z$2.ZodObject<{
324
373
  'require-acceptance': z$2.ZodOptional<z$2.ZodEnum<{
325
- error: "error";
326
374
  off: "off";
327
375
  warn: "warn";
376
+ error: "error";
328
377
  }>>;
329
378
  'require-examples': z$2.ZodOptional<z$2.ZodEnum<{
330
- error: "error";
331
379
  off: "off";
332
380
  warn: "warn";
381
+ error: "error";
333
382
  }>>;
334
383
  'require-stability': z$2.ZodOptional<z$2.ZodEnum<{
335
- error: "error";
336
384
  off: "off";
337
385
  warn: "warn";
386
+ error: "error";
338
387
  }>>;
339
388
  'require-owners-format': z$2.ZodOptional<z$2.ZodEnum<{
340
- error: "error";
341
389
  off: "off";
342
390
  warn: "warn";
391
+ error: "error";
343
392
  }>>;
344
393
  'event-past-tense': z$2.ZodOptional<z$2.ZodEnum<{
345
- error: "error";
346
394
  off: "off";
347
395
  warn: "warn";
396
+ error: "error";
348
397
  }>>;
349
398
  'no-todo': z$2.ZodOptional<z$2.ZodEnum<{
350
- error: "error";
351
399
  off: "off";
352
400
  warn: "warn";
401
+ error: "error";
353
402
  }>>;
354
403
  'workflow-transitions': z$2.ZodOptional<z$2.ZodEnum<{
355
- error: "error";
356
404
  off: "off";
357
405
  warn: "warn";
406
+ error: "error";
358
407
  }>>;
359
408
  'telemetry-privacy': z$2.ZodOptional<z$2.ZodEnum<{
360
- error: "error";
361
409
  off: "off";
362
410
  warn: "warn";
411
+ error: "error";
363
412
  }>>;
364
413
  'experiment-allocation': z$2.ZodOptional<z$2.ZodEnum<{
365
- error: "error";
366
414
  off: "off";
367
415
  warn: "warn";
416
+ error: "error";
368
417
  }>>;
369
418
  'app-config-appid': z$2.ZodOptional<z$2.ZodEnum<{
370
- error: "error";
371
419
  off: "off";
372
420
  warn: "warn";
421
+ error: "error";
373
422
  }>>;
374
423
  'app-config-capabilities': z$2.ZodOptional<z$2.ZodEnum<{
375
- error: "error";
376
424
  off: "off";
377
425
  warn: "warn";
426
+ error: "error";
378
427
  }>>;
379
428
  'data-view-fields': z$2.ZodOptional<z$2.ZodEnum<{
380
- error: "error";
381
429
  off: "off";
382
430
  warn: "warn";
431
+ error: "error";
383
432
  }>>;
384
433
  }, z$2.core.$strip>;
385
434
  /**
@@ -388,137 +437,137 @@ declare const LintRulesSchema: z$2.ZodObject<{
388
437
  declare const RulesConfigSchema: z$2.ZodObject<{
389
438
  defaults: z$2.ZodOptional<z$2.ZodObject<{
390
439
  'require-acceptance': z$2.ZodOptional<z$2.ZodEnum<{
391
- error: "error";
392
440
  off: "off";
393
441
  warn: "warn";
442
+ error: "error";
394
443
  }>>;
395
444
  'require-examples': z$2.ZodOptional<z$2.ZodEnum<{
396
- error: "error";
397
445
  off: "off";
398
446
  warn: "warn";
447
+ error: "error";
399
448
  }>>;
400
449
  'require-stability': z$2.ZodOptional<z$2.ZodEnum<{
401
- error: "error";
402
450
  off: "off";
403
451
  warn: "warn";
452
+ error: "error";
404
453
  }>>;
405
454
  'require-owners-format': z$2.ZodOptional<z$2.ZodEnum<{
406
- error: "error";
407
455
  off: "off";
408
456
  warn: "warn";
457
+ error: "error";
409
458
  }>>;
410
459
  'event-past-tense': z$2.ZodOptional<z$2.ZodEnum<{
411
- error: "error";
412
460
  off: "off";
413
461
  warn: "warn";
462
+ error: "error";
414
463
  }>>;
415
464
  'no-todo': z$2.ZodOptional<z$2.ZodEnum<{
416
- error: "error";
417
465
  off: "off";
418
466
  warn: "warn";
467
+ error: "error";
419
468
  }>>;
420
469
  'workflow-transitions': z$2.ZodOptional<z$2.ZodEnum<{
421
- error: "error";
422
470
  off: "off";
423
471
  warn: "warn";
472
+ error: "error";
424
473
  }>>;
425
474
  'telemetry-privacy': z$2.ZodOptional<z$2.ZodEnum<{
426
- error: "error";
427
475
  off: "off";
428
476
  warn: "warn";
477
+ error: "error";
429
478
  }>>;
430
479
  'experiment-allocation': z$2.ZodOptional<z$2.ZodEnum<{
431
- error: "error";
432
480
  off: "off";
433
481
  warn: "warn";
482
+ error: "error";
434
483
  }>>;
435
484
  'app-config-appid': z$2.ZodOptional<z$2.ZodEnum<{
436
- error: "error";
437
485
  off: "off";
438
486
  warn: "warn";
487
+ error: "error";
439
488
  }>>;
440
489
  'app-config-capabilities': z$2.ZodOptional<z$2.ZodEnum<{
441
- error: "error";
442
490
  off: "off";
443
491
  warn: "warn";
492
+ error: "error";
444
493
  }>>;
445
494
  'data-view-fields': z$2.ZodOptional<z$2.ZodEnum<{
446
- error: "error";
447
495
  off: "off";
448
496
  warn: "warn";
497
+ error: "error";
449
498
  }>>;
450
499
  }, z$2.core.$strip>>;
451
500
  overrides: z$2.ZodOptional<z$2.ZodRecord<z$2.ZodEnum<{
452
- telemetry: "telemetry";
453
501
  operation: "operation";
454
- "app-config": "app-config";
455
- "data-view": "data-view";
456
- workflow: "workflow";
457
- feature: "feature";
458
502
  event: "event";
459
503
  presentation: "presentation";
504
+ feature: "feature";
505
+ workflow: "workflow";
506
+ "data-view": "data-view";
460
507
  migration: "migration";
508
+ telemetry: "telemetry";
461
509
  experiment: "experiment";
510
+ "app-config": "app-config";
462
511
  }>, z$2.ZodObject<{
463
512
  'require-acceptance': z$2.ZodOptional<z$2.ZodEnum<{
464
- error: "error";
465
513
  off: "off";
466
514
  warn: "warn";
515
+ error: "error";
467
516
  }>>;
468
517
  'require-examples': z$2.ZodOptional<z$2.ZodEnum<{
469
- error: "error";
470
518
  off: "off";
471
519
  warn: "warn";
520
+ error: "error";
472
521
  }>>;
473
522
  'require-stability': z$2.ZodOptional<z$2.ZodEnum<{
474
- error: "error";
475
523
  off: "off";
476
524
  warn: "warn";
525
+ error: "error";
477
526
  }>>;
478
527
  'require-owners-format': z$2.ZodOptional<z$2.ZodEnum<{
479
- error: "error";
480
528
  off: "off";
481
529
  warn: "warn";
530
+ error: "error";
482
531
  }>>;
483
532
  'event-past-tense': z$2.ZodOptional<z$2.ZodEnum<{
484
- error: "error";
485
533
  off: "off";
486
534
  warn: "warn";
535
+ error: "error";
487
536
  }>>;
488
537
  'no-todo': z$2.ZodOptional<z$2.ZodEnum<{
489
- error: "error";
490
538
  off: "off";
491
539
  warn: "warn";
540
+ error: "error";
492
541
  }>>;
493
542
  'workflow-transitions': z$2.ZodOptional<z$2.ZodEnum<{
494
- error: "error";
495
543
  off: "off";
496
544
  warn: "warn";
545
+ error: "error";
497
546
  }>>;
498
547
  'telemetry-privacy': z$2.ZodOptional<z$2.ZodEnum<{
499
- error: "error";
500
548
  off: "off";
501
549
  warn: "warn";
550
+ error: "error";
502
551
  }>>;
503
552
  'experiment-allocation': z$2.ZodOptional<z$2.ZodEnum<{
504
- error: "error";
505
553
  off: "off";
506
554
  warn: "warn";
555
+ error: "error";
507
556
  }>>;
508
557
  'app-config-appid': z$2.ZodOptional<z$2.ZodEnum<{
509
- error: "error";
510
558
  off: "off";
511
559
  warn: "warn";
560
+ error: "error";
512
561
  }>>;
513
562
  'app-config-capabilities': z$2.ZodOptional<z$2.ZodEnum<{
514
- error: "error";
515
563
  off: "off";
516
564
  warn: "warn";
565
+ error: "error";
517
566
  }>>;
518
567
  'data-view-fields': z$2.ZodOptional<z$2.ZodEnum<{
519
- error: "error";
520
568
  off: "off";
521
569
  warn: "warn";
570
+ error: "error";
522
571
  }>>;
523
572
  }, z$2.core.$strip>>>;
524
573
  }, z$2.core.$strip>;
@@ -534,9 +583,9 @@ declare const ContractsrcSchema: z$2.ZodObject<{
534
583
  }>>;
535
584
  aiModel: z$2.ZodOptional<z$2.ZodString>;
536
585
  agentMode: z$2.ZodDefault<z$2.ZodEnum<{
537
- "claude-code": "claude-code";
538
586
  simple: "simple";
539
587
  cursor: "cursor";
588
+ "claude-code": "claude-code";
540
589
  "openai-codex": "openai-codex";
541
590
  }>>;
542
591
  customEndpoint: z$2.ZodOptional<z$2.ZodNullable<z$2.ZodURL>>;
@@ -609,14 +658,14 @@ declare const ContractsrcSchema: z$2.ZodObject<{
609
658
  include: z$2.ZodOptional<z$2.ZodArray<z$2.ZodString>>;
610
659
  prefix: z$2.ZodOptional<z$2.ZodString>;
611
660
  defaultStability: z$2.ZodOptional<z$2.ZodEnum<{
612
- deprecated: "deprecated";
613
661
  experimental: "experimental";
614
662
  beta: "beta";
615
663
  stable: "stable";
664
+ deprecated: "deprecated";
616
665
  }>>;
617
666
  defaultAuth: z$2.ZodOptional<z$2.ZodEnum<{
618
- user: "user";
619
667
  anonymous: "anonymous";
668
+ user: "user";
620
669
  admin: "admin";
621
670
  }>>;
622
671
  defaultOwners: z$2.ZodOptional<z$2.ZodArray<z$2.ZodString>>;
@@ -680,137 +729,137 @@ declare const ContractsrcSchema: z$2.ZodObject<{
680
729
  rules: z$2.ZodOptional<z$2.ZodObject<{
681
730
  defaults: z$2.ZodOptional<z$2.ZodObject<{
682
731
  'require-acceptance': z$2.ZodOptional<z$2.ZodEnum<{
683
- error: "error";
684
732
  off: "off";
685
733
  warn: "warn";
734
+ error: "error";
686
735
  }>>;
687
736
  'require-examples': z$2.ZodOptional<z$2.ZodEnum<{
688
- error: "error";
689
737
  off: "off";
690
738
  warn: "warn";
739
+ error: "error";
691
740
  }>>;
692
741
  'require-stability': z$2.ZodOptional<z$2.ZodEnum<{
693
- error: "error";
694
742
  off: "off";
695
743
  warn: "warn";
744
+ error: "error";
696
745
  }>>;
697
746
  'require-owners-format': z$2.ZodOptional<z$2.ZodEnum<{
698
- error: "error";
699
747
  off: "off";
700
748
  warn: "warn";
749
+ error: "error";
701
750
  }>>;
702
751
  'event-past-tense': z$2.ZodOptional<z$2.ZodEnum<{
703
- error: "error";
704
752
  off: "off";
705
753
  warn: "warn";
754
+ error: "error";
706
755
  }>>;
707
756
  'no-todo': z$2.ZodOptional<z$2.ZodEnum<{
708
- error: "error";
709
757
  off: "off";
710
758
  warn: "warn";
759
+ error: "error";
711
760
  }>>;
712
761
  'workflow-transitions': z$2.ZodOptional<z$2.ZodEnum<{
713
- error: "error";
714
762
  off: "off";
715
763
  warn: "warn";
764
+ error: "error";
716
765
  }>>;
717
766
  'telemetry-privacy': z$2.ZodOptional<z$2.ZodEnum<{
718
- error: "error";
719
767
  off: "off";
720
768
  warn: "warn";
769
+ error: "error";
721
770
  }>>;
722
771
  'experiment-allocation': z$2.ZodOptional<z$2.ZodEnum<{
723
- error: "error";
724
772
  off: "off";
725
773
  warn: "warn";
774
+ error: "error";
726
775
  }>>;
727
776
  'app-config-appid': z$2.ZodOptional<z$2.ZodEnum<{
728
- error: "error";
729
777
  off: "off";
730
778
  warn: "warn";
779
+ error: "error";
731
780
  }>>;
732
781
  'app-config-capabilities': z$2.ZodOptional<z$2.ZodEnum<{
733
- error: "error";
734
782
  off: "off";
735
783
  warn: "warn";
784
+ error: "error";
736
785
  }>>;
737
786
  'data-view-fields': z$2.ZodOptional<z$2.ZodEnum<{
738
- error: "error";
739
787
  off: "off";
740
788
  warn: "warn";
789
+ error: "error";
741
790
  }>>;
742
791
  }, z$2.core.$strip>>;
743
792
  overrides: z$2.ZodOptional<z$2.ZodRecord<z$2.ZodEnum<{
744
- telemetry: "telemetry";
745
793
  operation: "operation";
746
- "app-config": "app-config";
747
- "data-view": "data-view";
748
- workflow: "workflow";
749
- feature: "feature";
750
794
  event: "event";
751
795
  presentation: "presentation";
796
+ feature: "feature";
797
+ workflow: "workflow";
798
+ "data-view": "data-view";
752
799
  migration: "migration";
800
+ telemetry: "telemetry";
753
801
  experiment: "experiment";
802
+ "app-config": "app-config";
754
803
  }>, z$2.ZodObject<{
755
804
  'require-acceptance': z$2.ZodOptional<z$2.ZodEnum<{
756
- error: "error";
757
805
  off: "off";
758
806
  warn: "warn";
807
+ error: "error";
759
808
  }>>;
760
809
  'require-examples': z$2.ZodOptional<z$2.ZodEnum<{
761
- error: "error";
762
810
  off: "off";
763
811
  warn: "warn";
812
+ error: "error";
764
813
  }>>;
765
814
  'require-stability': z$2.ZodOptional<z$2.ZodEnum<{
766
- error: "error";
767
815
  off: "off";
768
816
  warn: "warn";
817
+ error: "error";
769
818
  }>>;
770
819
  'require-owners-format': z$2.ZodOptional<z$2.ZodEnum<{
771
- error: "error";
772
820
  off: "off";
773
821
  warn: "warn";
822
+ error: "error";
774
823
  }>>;
775
824
  'event-past-tense': z$2.ZodOptional<z$2.ZodEnum<{
776
- error: "error";
777
825
  off: "off";
778
826
  warn: "warn";
827
+ error: "error";
779
828
  }>>;
780
829
  'no-todo': z$2.ZodOptional<z$2.ZodEnum<{
781
- error: "error";
782
830
  off: "off";
783
831
  warn: "warn";
832
+ error: "error";
784
833
  }>>;
785
834
  'workflow-transitions': z$2.ZodOptional<z$2.ZodEnum<{
786
- error: "error";
787
835
  off: "off";
788
836
  warn: "warn";
837
+ error: "error";
789
838
  }>>;
790
839
  'telemetry-privacy': z$2.ZodOptional<z$2.ZodEnum<{
791
- error: "error";
792
840
  off: "off";
793
841
  warn: "warn";
842
+ error: "error";
794
843
  }>>;
795
844
  'experiment-allocation': z$2.ZodOptional<z$2.ZodEnum<{
796
- error: "error";
797
845
  off: "off";
798
846
  warn: "warn";
847
+ error: "error";
799
848
  }>>;
800
849
  'app-config-appid': z$2.ZodOptional<z$2.ZodEnum<{
801
- error: "error";
802
850
  off: "off";
803
851
  warn: "warn";
852
+ error: "error";
804
853
  }>>;
805
854
  'app-config-capabilities': z$2.ZodOptional<z$2.ZodEnum<{
806
- error: "error";
807
855
  off: "off";
808
856
  warn: "warn";
857
+ error: "error";
809
858
  }>>;
810
859
  'data-view-fields': z$2.ZodOptional<z$2.ZodEnum<{
811
- error: "error";
812
860
  off: "off";
813
861
  warn: "warn";
862
+ error: "error";
814
863
  }>>;
815
864
  }, z$2.core.$strip>>>;
816
865
  }, z$2.core.$strip>>;
@@ -833,6 +882,29 @@ declare const ContractsrcSchema: z$2.ZodObject<{
833
882
  args: z$2.ZodOptional<z$2.ZodArray<z$2.ZodString>>;
834
883
  timeout: z$2.ZodDefault<z$2.ZodNumber>;
835
884
  }, z$2.core.$strip>>;
885
+ versioning: z$2.ZodOptional<z$2.ZodObject<{
886
+ autoBump: z$2.ZodDefault<z$2.ZodBoolean>;
887
+ bumpStrategy: z$2.ZodDefault<z$2.ZodEnum<{
888
+ impact: "impact";
889
+ conventional: "conventional";
890
+ }>>;
891
+ changelogTiers: z$2.ZodDefault<z$2.ZodArray<z$2.ZodEnum<{
892
+ spec: "spec";
893
+ library: "library";
894
+ monorepo: "monorepo";
895
+ }>>>;
896
+ format: z$2.ZodDefault<z$2.ZodEnum<{
897
+ custom: "custom";
898
+ conventional: "conventional";
899
+ "keep-a-changelog": "keep-a-changelog";
900
+ }>>;
901
+ commitChanges: z$2.ZodDefault<z$2.ZodBoolean>;
902
+ commitMessage: z$2.ZodDefault<z$2.ZodString>;
903
+ createTags: z$2.ZodDefault<z$2.ZodBoolean>;
904
+ tagPrefix: z$2.ZodDefault<z$2.ZodString>;
905
+ include: z$2.ZodOptional<z$2.ZodArray<z$2.ZodString>>;
906
+ exclude: z$2.ZodOptional<z$2.ZodArray<z$2.ZodString>>;
907
+ }, z$2.core.$strip>>;
836
908
  }, z$2.core.$strip>;
837
909
  type OpenApiSourceConfig = z$2.infer<typeof OpenApiSourceConfigSchema>;
838
910
  type OpenApiExportConfig = z$2.infer<typeof OpenApiExportConfigSchema>;
@@ -854,9 +926,13 @@ type RulesConfig = z$2.infer<typeof RulesConfigSchema>;
854
926
  type SchemaFormat = z$2.infer<typeof SchemaFormatSchema>;
855
927
  type FormatterType = z$2.infer<typeof FormatterTypeSchema>;
856
928
  type FormatterConfig = z$2.infer<typeof FormatterConfigSchema>;
929
+ type BumpStrategy = z$2.infer<typeof BumpStrategySchema>;
930
+ type ChangelogFormat = z$2.infer<typeof ChangelogFormatSchema>;
931
+ type ChangelogTier = z$2.infer<typeof ChangelogTierSchema>;
932
+ type VersioningConfig = z$2.infer<typeof VersioningConfigSchema>;
857
933
  /**
858
934
  * Default configuration values.
859
935
  */
860
936
  declare const DEFAULT_CONTRACTSRC: ContractsrcConfig;
861
937
  //#endregion
862
- export { CheckRunConfig, CheckRunConfigSchema, CiConfig, CiConfigSchema, ContractsrcConfig, ContractsrcSchema, DEFAULT_CONTRACTSRC, ExternalWorkspace, ExternalWorkspaceSchema, FolderConventions, FolderConventionsSchema, FormatterConfig, FormatterConfigSchema, FormatterType, FormatterTypeSchema, GroupingRule, GroupingRuleSchema, GroupingStrategy, GroupingStrategySchema, ImpactConfig, ImpactConfigSchema, LintRules, LintRulesSchema, MetaRepoConfig, MetaRepoConfigSchema, OpenApiConfig, OpenApiConfigSchema, OpenApiExportConfig, OpenApiExportConfigSchema, OpenApiSourceConfig, OpenApiSourceConfigSchema, PrCommentConfig, PrCommentConfigSchema, RuleSeverity, RuleSeveritySchema, RulesConfig, RulesConfigSchema, SchemaFormat, SchemaFormatSchema, SpecKind, SpecKindSchema };
938
+ export { BumpStrategy, BumpStrategySchema, ChangelogFormat, ChangelogFormatSchema, ChangelogTier, ChangelogTierSchema, CheckRunConfig, CheckRunConfigSchema, CiConfig, CiConfigSchema, ContractsrcConfig, ContractsrcSchema, DEFAULT_CONTRACTSRC, ExternalWorkspace, ExternalWorkspaceSchema, FolderConventions, FolderConventionsSchema, FormatterConfig, FormatterConfigSchema, FormatterType, FormatterTypeSchema, GroupingRule, GroupingRuleSchema, GroupingStrategy, GroupingStrategySchema, ImpactConfig, ImpactConfigSchema, LintRules, LintRulesSchema, MetaRepoConfig, MetaRepoConfigSchema, OpenApiConfig, OpenApiConfigSchema, OpenApiExportConfig, OpenApiExportConfigSchema, OpenApiSourceConfig, OpenApiSourceConfigSchema, PrCommentConfig, PrCommentConfigSchema, RuleSeverity, RuleSeveritySchema, RulesConfig, RulesConfigSchema, SchemaFormat, SchemaFormatSchema, SpecKind, SpecKindSchema, VersioningConfig, VersioningConfigSchema };
@@ -178,6 +178,45 @@ const FormatterConfigSchema = z$2.object({
178
178
  timeout: z$2.number().default(3e4)
179
179
  });
180
180
  /**
181
+ * Bump strategy for version management.
182
+ */
183
+ const BumpStrategySchema = z$2.enum(["impact", "conventional"]);
184
+ /**
185
+ * Changelog format template.
186
+ */
187
+ const ChangelogFormatSchema = z$2.enum([
188
+ "keep-a-changelog",
189
+ "conventional",
190
+ "custom"
191
+ ]);
192
+ /**
193
+ * Changelog tier configuration.
194
+ */
195
+ const ChangelogTierSchema = z$2.enum([
196
+ "spec",
197
+ "library",
198
+ "monorepo"
199
+ ]);
200
+ /**
201
+ * Versioning configuration for changelog and version management.
202
+ */
203
+ const VersioningConfigSchema = z$2.object({
204
+ autoBump: z$2.boolean().default(false),
205
+ bumpStrategy: BumpStrategySchema.default("impact"),
206
+ changelogTiers: z$2.array(ChangelogTierSchema).default([
207
+ "spec",
208
+ "library",
209
+ "monorepo"
210
+ ]),
211
+ format: ChangelogFormatSchema.default("keep-a-changelog"),
212
+ commitChanges: z$2.boolean().default(false),
213
+ commitMessage: z$2.string().default("chore: bump spec versions"),
214
+ createTags: z$2.boolean().default(false),
215
+ tagPrefix: z$2.string().default("v"),
216
+ include: z$2.array(z$2.string()).optional(),
217
+ exclude: z$2.array(z$2.string()).optional()
218
+ });
219
+ /**
181
220
  * Rule severity levels (inspired by ESLint).
182
221
  */
183
222
  const RuleSeveritySchema = z$2.enum([
@@ -255,7 +294,8 @@ const ContractsrcSchema = z$2.object({
255
294
  metaRepo: MetaRepoConfigSchema.optional(),
256
295
  rules: RulesConfigSchema.optional(),
257
296
  schemaFormat: SchemaFormatSchema.default("contractspec"),
258
- formatter: FormatterConfigSchema.optional()
297
+ formatter: FormatterConfigSchema.optional(),
298
+ versioning: VersioningConfigSchema.optional()
259
299
  });
260
300
  /**
261
301
  * Default configuration values.
@@ -278,4 +318,4 @@ const DEFAULT_CONTRACTSRC = {
278
318
  };
279
319
 
280
320
  //#endregion
281
- export { CheckRunConfigSchema, CiConfigSchema, ContractsrcSchema, DEFAULT_CONTRACTSRC, ExternalWorkspaceSchema, FolderConventionsSchema, FormatterConfigSchema, FormatterTypeSchema, GroupingRuleSchema, GroupingStrategySchema, ImpactConfigSchema, LintRulesSchema, MetaRepoConfigSchema, OpenApiConfigSchema, OpenApiExportConfigSchema, OpenApiSourceConfigSchema, PrCommentConfigSchema, RuleSeveritySchema, RulesConfigSchema, SchemaFormatSchema, SpecKindSchema };
321
+ export { BumpStrategySchema, ChangelogFormatSchema, ChangelogTierSchema, CheckRunConfigSchema, CiConfigSchema, ContractsrcSchema, DEFAULT_CONTRACTSRC, ExternalWorkspaceSchema, FolderConventionsSchema, FormatterConfigSchema, FormatterTypeSchema, GroupingRuleSchema, GroupingStrategySchema, ImpactConfigSchema, LintRulesSchema, MetaRepoConfigSchema, OpenApiConfigSchema, OpenApiExportConfigSchema, OpenApiSourceConfigSchema, PrCommentConfigSchema, RuleSeveritySchema, RulesConfigSchema, SchemaFormatSchema, SpecKindSchema, VersioningConfigSchema };
@@ -1,2 +1,2 @@
1
- import { ContractsrcConfig, ContractsrcSchema, DEFAULT_CONTRACTSRC, FolderConventions, FolderConventionsSchema, FormatterConfig, FormatterConfigSchema, FormatterType, FormatterTypeSchema, OpenApiConfig, OpenApiConfigSchema, OpenApiExportConfig, OpenApiExportConfigSchema, OpenApiSourceConfig, OpenApiSourceConfigSchema, SchemaFormat, SchemaFormatSchema } from "./contractsrc-schema.js";
2
- export { type ContractsrcConfig, ContractsrcSchema, DEFAULT_CONTRACTSRC, type FolderConventions, FolderConventionsSchema, type FormatterConfig, FormatterConfigSchema, type FormatterType, FormatterTypeSchema, type OpenApiConfig, OpenApiConfigSchema, type OpenApiExportConfig, OpenApiExportConfigSchema, type OpenApiSourceConfig, OpenApiSourceConfigSchema, type SchemaFormat, SchemaFormatSchema };
1
+ import { BumpStrategy, BumpStrategySchema, ChangelogFormat, ChangelogFormatSchema, ChangelogTier, ChangelogTierSchema, ContractsrcConfig, ContractsrcSchema, DEFAULT_CONTRACTSRC, FolderConventions, FolderConventionsSchema, FormatterConfig, FormatterConfigSchema, FormatterType, FormatterTypeSchema, OpenApiConfig, OpenApiConfigSchema, OpenApiExportConfig, OpenApiExportConfigSchema, OpenApiSourceConfig, OpenApiSourceConfigSchema, SchemaFormat, SchemaFormatSchema, VersioningConfig, VersioningConfigSchema } from "./contractsrc-schema.js";
2
+ export { type BumpStrategy, BumpStrategySchema, type ChangelogFormat, ChangelogFormatSchema, type ChangelogTier, ChangelogTierSchema, type ContractsrcConfig, ContractsrcSchema, DEFAULT_CONTRACTSRC, type FolderConventions, FolderConventionsSchema, type FormatterConfig, FormatterConfigSchema, type FormatterType, FormatterTypeSchema, type OpenApiConfig, OpenApiConfigSchema, type OpenApiExportConfig, OpenApiExportConfigSchema, type OpenApiSourceConfig, OpenApiSourceConfigSchema, type SchemaFormat, SchemaFormatSchema, type VersioningConfig, VersioningConfigSchema };
@@ -1,3 +1,3 @@
1
- import { ContractsrcSchema, DEFAULT_CONTRACTSRC, FolderConventionsSchema, FormatterConfigSchema, FormatterTypeSchema, OpenApiConfigSchema, OpenApiExportConfigSchema, OpenApiSourceConfigSchema, SchemaFormatSchema } from "./contractsrc-schema.js";
1
+ import { BumpStrategySchema, ChangelogFormatSchema, ChangelogTierSchema, ContractsrcSchema, DEFAULT_CONTRACTSRC, FolderConventionsSchema, FormatterConfigSchema, FormatterTypeSchema, OpenApiConfigSchema, OpenApiExportConfigSchema, OpenApiSourceConfigSchema, SchemaFormatSchema, VersioningConfigSchema } from "./contractsrc-schema.js";
2
2
 
3
- export { ContractsrcSchema, DEFAULT_CONTRACTSRC, FolderConventionsSchema, FormatterConfigSchema, FormatterTypeSchema, OpenApiConfigSchema, OpenApiExportConfigSchema, OpenApiSourceConfigSchema, SchemaFormatSchema };
3
+ export { BumpStrategySchema, ChangelogFormatSchema, ChangelogTierSchema, ContractsrcSchema, DEFAULT_CONTRACTSRC, FolderConventionsSchema, FormatterConfigSchema, FormatterTypeSchema, OpenApiConfigSchema, OpenApiExportConfigSchema, OpenApiSourceConfigSchema, SchemaFormatSchema, VersioningConfigSchema };