@contractspec/lib.contracts 1.45.3 → 1.45.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/app-config/contracts.d.ts +50 -50
- package/dist/app-config/events.d.ts +27 -27
- package/dist/app-config/lifecycle-contracts.d.ts +54 -54
- package/dist/contract-registry/schemas.d.ts +6 -6
- package/dist/examples/schema.d.ts +14 -14
- package/dist/index.d.ts +2 -2
- package/dist/index.js +2 -2
- package/dist/integrations/openbanking/contracts/accounts.d.ts +66 -66
- package/dist/integrations/openbanking/contracts/balances.d.ts +34 -34
- package/dist/integrations/openbanking/contracts/transactions.d.ts +48 -48
- package/dist/integrations/openbanking/models.d.ts +55 -55
- package/dist/integrations/operations.d.ts +102 -102
- package/dist/jsonschema.d.ts +17 -2
- package/dist/jsonschema.js +22 -3
- package/dist/knowledge/operations.d.ts +66 -66
- package/dist/onboarding-base.d.ts +29 -29
- package/dist/prompt.d.ts +2 -9
- package/dist/server/mcp/registerPresentations.js +2 -1
- package/dist/server/mcp/registerPrompts.js +28 -24
- package/dist/workspace-config/contractsrc-schema.d.ts +80 -71
- package/dist/workspace-config/contractsrc-schema.js +8 -1
- package/package.json +5 -5
|
@@ -29,15 +29,15 @@ 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";
|
|
32
33
|
experimental: "experimental";
|
|
33
34
|
beta: "beta";
|
|
34
35
|
stable: "stable";
|
|
35
|
-
deprecated: "deprecated";
|
|
36
36
|
}>>;
|
|
37
37
|
defaultAuth: z$2.ZodOptional<z$2.ZodEnum<{
|
|
38
|
+
admin: "admin";
|
|
38
39
|
anonymous: "anonymous";
|
|
39
40
|
user: "user";
|
|
40
|
-
admin: "admin";
|
|
41
41
|
}>>;
|
|
42
42
|
defaultOwners: z$2.ZodOptional<z$2.ZodArray<z$2.ZodString>>;
|
|
43
43
|
schemaFormat: z$2.ZodDefault<z$2.ZodEnum<{
|
|
@@ -79,15 +79,15 @@ 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";
|
|
82
83
|
experimental: "experimental";
|
|
83
84
|
beta: "beta";
|
|
84
85
|
stable: "stable";
|
|
85
|
-
deprecated: "deprecated";
|
|
86
86
|
}>>;
|
|
87
87
|
defaultAuth: z$2.ZodOptional<z$2.ZodEnum<{
|
|
88
|
+
admin: "admin";
|
|
88
89
|
anonymous: "anonymous";
|
|
89
90
|
user: "user";
|
|
90
|
-
admin: "admin";
|
|
91
91
|
}>>;
|
|
92
92
|
defaultOwners: z$2.ZodOptional<z$2.ZodArray<z$2.ZodString>>;
|
|
93
93
|
schemaFormat: z$2.ZodDefault<z$2.ZodEnum<{
|
|
@@ -326,6 +326,7 @@ declare const VersioningConfigSchema: z$2.ZodObject<{
|
|
|
326
326
|
impact: "impact";
|
|
327
327
|
conventional: "conventional";
|
|
328
328
|
}>>;
|
|
329
|
+
integrateWithChangesets: z$2.ZodDefault<z$2.ZodBoolean>;
|
|
329
330
|
changelogTiers: z$2.ZodDefault<z$2.ZodArray<z$2.ZodEnum<{
|
|
330
331
|
spec: "spec";
|
|
331
332
|
library: "library";
|
|
@@ -347,14 +348,15 @@ declare const VersioningConfigSchema: z$2.ZodObject<{
|
|
|
347
348
|
* Rule severity levels (inspired by ESLint).
|
|
348
349
|
*/
|
|
349
350
|
declare const RuleSeveritySchema: z$2.ZodEnum<{
|
|
351
|
+
error: "error";
|
|
350
352
|
off: "off";
|
|
351
353
|
warn: "warn";
|
|
352
|
-
error: "error";
|
|
353
354
|
}>;
|
|
354
355
|
/**
|
|
355
356
|
* Contract kinds for per-kind rule overrides.
|
|
356
357
|
*/
|
|
357
358
|
declare const SpecKindSchema: z$2.ZodEnum<{
|
|
359
|
+
telemetry: "telemetry";
|
|
358
360
|
operation: "operation";
|
|
359
361
|
event: "event";
|
|
360
362
|
presentation: "presentation";
|
|
@@ -362,7 +364,6 @@ declare const SpecKindSchema: z$2.ZodEnum<{
|
|
|
362
364
|
workflow: "workflow";
|
|
363
365
|
"data-view": "data-view";
|
|
364
366
|
migration: "migration";
|
|
365
|
-
telemetry: "telemetry";
|
|
366
367
|
experiment: "experiment";
|
|
367
368
|
"app-config": "app-config";
|
|
368
369
|
}>;
|
|
@@ -371,64 +372,64 @@ declare const SpecKindSchema: z$2.ZodEnum<{
|
|
|
371
372
|
*/
|
|
372
373
|
declare const LintRulesSchema: z$2.ZodObject<{
|
|
373
374
|
'require-acceptance': z$2.ZodOptional<z$2.ZodEnum<{
|
|
375
|
+
error: "error";
|
|
374
376
|
off: "off";
|
|
375
377
|
warn: "warn";
|
|
376
|
-
error: "error";
|
|
377
378
|
}>>;
|
|
378
379
|
'require-examples': z$2.ZodOptional<z$2.ZodEnum<{
|
|
380
|
+
error: "error";
|
|
379
381
|
off: "off";
|
|
380
382
|
warn: "warn";
|
|
381
|
-
error: "error";
|
|
382
383
|
}>>;
|
|
383
384
|
'require-stability': z$2.ZodOptional<z$2.ZodEnum<{
|
|
385
|
+
error: "error";
|
|
384
386
|
off: "off";
|
|
385
387
|
warn: "warn";
|
|
386
|
-
error: "error";
|
|
387
388
|
}>>;
|
|
388
389
|
'require-owners-format': z$2.ZodOptional<z$2.ZodEnum<{
|
|
390
|
+
error: "error";
|
|
389
391
|
off: "off";
|
|
390
392
|
warn: "warn";
|
|
391
|
-
error: "error";
|
|
392
393
|
}>>;
|
|
393
394
|
'event-past-tense': z$2.ZodOptional<z$2.ZodEnum<{
|
|
395
|
+
error: "error";
|
|
394
396
|
off: "off";
|
|
395
397
|
warn: "warn";
|
|
396
|
-
error: "error";
|
|
397
398
|
}>>;
|
|
398
399
|
'no-todo': z$2.ZodOptional<z$2.ZodEnum<{
|
|
400
|
+
error: "error";
|
|
399
401
|
off: "off";
|
|
400
402
|
warn: "warn";
|
|
401
|
-
error: "error";
|
|
402
403
|
}>>;
|
|
403
404
|
'workflow-transitions': z$2.ZodOptional<z$2.ZodEnum<{
|
|
405
|
+
error: "error";
|
|
404
406
|
off: "off";
|
|
405
407
|
warn: "warn";
|
|
406
|
-
error: "error";
|
|
407
408
|
}>>;
|
|
408
409
|
'telemetry-privacy': z$2.ZodOptional<z$2.ZodEnum<{
|
|
410
|
+
error: "error";
|
|
409
411
|
off: "off";
|
|
410
412
|
warn: "warn";
|
|
411
|
-
error: "error";
|
|
412
413
|
}>>;
|
|
413
414
|
'experiment-allocation': z$2.ZodOptional<z$2.ZodEnum<{
|
|
415
|
+
error: "error";
|
|
414
416
|
off: "off";
|
|
415
417
|
warn: "warn";
|
|
416
|
-
error: "error";
|
|
417
418
|
}>>;
|
|
418
419
|
'app-config-appid': z$2.ZodOptional<z$2.ZodEnum<{
|
|
420
|
+
error: "error";
|
|
419
421
|
off: "off";
|
|
420
422
|
warn: "warn";
|
|
421
|
-
error: "error";
|
|
422
423
|
}>>;
|
|
423
424
|
'app-config-capabilities': z$2.ZodOptional<z$2.ZodEnum<{
|
|
425
|
+
error: "error";
|
|
424
426
|
off: "off";
|
|
425
427
|
warn: "warn";
|
|
426
|
-
error: "error";
|
|
427
428
|
}>>;
|
|
428
429
|
'data-view-fields': z$2.ZodOptional<z$2.ZodEnum<{
|
|
430
|
+
error: "error";
|
|
429
431
|
off: "off";
|
|
430
432
|
warn: "warn";
|
|
431
|
-
error: "error";
|
|
432
433
|
}>>;
|
|
433
434
|
}, z$2.core.$strip>;
|
|
434
435
|
/**
|
|
@@ -437,67 +438,68 @@ declare const LintRulesSchema: z$2.ZodObject<{
|
|
|
437
438
|
declare const RulesConfigSchema: z$2.ZodObject<{
|
|
438
439
|
defaults: z$2.ZodOptional<z$2.ZodObject<{
|
|
439
440
|
'require-acceptance': z$2.ZodOptional<z$2.ZodEnum<{
|
|
441
|
+
error: "error";
|
|
440
442
|
off: "off";
|
|
441
443
|
warn: "warn";
|
|
442
|
-
error: "error";
|
|
443
444
|
}>>;
|
|
444
445
|
'require-examples': z$2.ZodOptional<z$2.ZodEnum<{
|
|
446
|
+
error: "error";
|
|
445
447
|
off: "off";
|
|
446
448
|
warn: "warn";
|
|
447
|
-
error: "error";
|
|
448
449
|
}>>;
|
|
449
450
|
'require-stability': z$2.ZodOptional<z$2.ZodEnum<{
|
|
451
|
+
error: "error";
|
|
450
452
|
off: "off";
|
|
451
453
|
warn: "warn";
|
|
452
|
-
error: "error";
|
|
453
454
|
}>>;
|
|
454
455
|
'require-owners-format': z$2.ZodOptional<z$2.ZodEnum<{
|
|
456
|
+
error: "error";
|
|
455
457
|
off: "off";
|
|
456
458
|
warn: "warn";
|
|
457
|
-
error: "error";
|
|
458
459
|
}>>;
|
|
459
460
|
'event-past-tense': z$2.ZodOptional<z$2.ZodEnum<{
|
|
461
|
+
error: "error";
|
|
460
462
|
off: "off";
|
|
461
463
|
warn: "warn";
|
|
462
|
-
error: "error";
|
|
463
464
|
}>>;
|
|
464
465
|
'no-todo': z$2.ZodOptional<z$2.ZodEnum<{
|
|
466
|
+
error: "error";
|
|
465
467
|
off: "off";
|
|
466
468
|
warn: "warn";
|
|
467
|
-
error: "error";
|
|
468
469
|
}>>;
|
|
469
470
|
'workflow-transitions': z$2.ZodOptional<z$2.ZodEnum<{
|
|
471
|
+
error: "error";
|
|
470
472
|
off: "off";
|
|
471
473
|
warn: "warn";
|
|
472
|
-
error: "error";
|
|
473
474
|
}>>;
|
|
474
475
|
'telemetry-privacy': z$2.ZodOptional<z$2.ZodEnum<{
|
|
476
|
+
error: "error";
|
|
475
477
|
off: "off";
|
|
476
478
|
warn: "warn";
|
|
477
|
-
error: "error";
|
|
478
479
|
}>>;
|
|
479
480
|
'experiment-allocation': z$2.ZodOptional<z$2.ZodEnum<{
|
|
481
|
+
error: "error";
|
|
480
482
|
off: "off";
|
|
481
483
|
warn: "warn";
|
|
482
|
-
error: "error";
|
|
483
484
|
}>>;
|
|
484
485
|
'app-config-appid': z$2.ZodOptional<z$2.ZodEnum<{
|
|
486
|
+
error: "error";
|
|
485
487
|
off: "off";
|
|
486
488
|
warn: "warn";
|
|
487
|
-
error: "error";
|
|
488
489
|
}>>;
|
|
489
490
|
'app-config-capabilities': z$2.ZodOptional<z$2.ZodEnum<{
|
|
491
|
+
error: "error";
|
|
490
492
|
off: "off";
|
|
491
493
|
warn: "warn";
|
|
492
|
-
error: "error";
|
|
493
494
|
}>>;
|
|
494
495
|
'data-view-fields': z$2.ZodOptional<z$2.ZodEnum<{
|
|
496
|
+
error: "error";
|
|
495
497
|
off: "off";
|
|
496
498
|
warn: "warn";
|
|
497
|
-
error: "error";
|
|
498
499
|
}>>;
|
|
499
500
|
}, z$2.core.$strip>>;
|
|
500
501
|
overrides: z$2.ZodOptional<z$2.ZodRecord<z$2.ZodEnum<{
|
|
502
|
+
telemetry: "telemetry";
|
|
501
503
|
operation: "operation";
|
|
502
504
|
event: "event";
|
|
503
505
|
presentation: "presentation";
|
|
@@ -505,72 +507,76 @@ declare const RulesConfigSchema: z$2.ZodObject<{
|
|
|
505
507
|
workflow: "workflow";
|
|
506
508
|
"data-view": "data-view";
|
|
507
509
|
migration: "migration";
|
|
508
|
-
telemetry: "telemetry";
|
|
509
510
|
experiment: "experiment";
|
|
510
511
|
"app-config": "app-config";
|
|
511
512
|
}>, z$2.ZodObject<{
|
|
512
513
|
'require-acceptance': z$2.ZodOptional<z$2.ZodEnum<{
|
|
514
|
+
error: "error";
|
|
513
515
|
off: "off";
|
|
514
516
|
warn: "warn";
|
|
515
|
-
error: "error";
|
|
516
517
|
}>>;
|
|
517
518
|
'require-examples': z$2.ZodOptional<z$2.ZodEnum<{
|
|
519
|
+
error: "error";
|
|
518
520
|
off: "off";
|
|
519
521
|
warn: "warn";
|
|
520
|
-
error: "error";
|
|
521
522
|
}>>;
|
|
522
523
|
'require-stability': z$2.ZodOptional<z$2.ZodEnum<{
|
|
524
|
+
error: "error";
|
|
523
525
|
off: "off";
|
|
524
526
|
warn: "warn";
|
|
525
|
-
error: "error";
|
|
526
527
|
}>>;
|
|
527
528
|
'require-owners-format': z$2.ZodOptional<z$2.ZodEnum<{
|
|
529
|
+
error: "error";
|
|
528
530
|
off: "off";
|
|
529
531
|
warn: "warn";
|
|
530
|
-
error: "error";
|
|
531
532
|
}>>;
|
|
532
533
|
'event-past-tense': z$2.ZodOptional<z$2.ZodEnum<{
|
|
534
|
+
error: "error";
|
|
533
535
|
off: "off";
|
|
534
536
|
warn: "warn";
|
|
535
|
-
error: "error";
|
|
536
537
|
}>>;
|
|
537
538
|
'no-todo': z$2.ZodOptional<z$2.ZodEnum<{
|
|
539
|
+
error: "error";
|
|
538
540
|
off: "off";
|
|
539
541
|
warn: "warn";
|
|
540
|
-
error: "error";
|
|
541
542
|
}>>;
|
|
542
543
|
'workflow-transitions': z$2.ZodOptional<z$2.ZodEnum<{
|
|
544
|
+
error: "error";
|
|
543
545
|
off: "off";
|
|
544
546
|
warn: "warn";
|
|
545
|
-
error: "error";
|
|
546
547
|
}>>;
|
|
547
548
|
'telemetry-privacy': z$2.ZodOptional<z$2.ZodEnum<{
|
|
549
|
+
error: "error";
|
|
548
550
|
off: "off";
|
|
549
551
|
warn: "warn";
|
|
550
|
-
error: "error";
|
|
551
552
|
}>>;
|
|
552
553
|
'experiment-allocation': z$2.ZodOptional<z$2.ZodEnum<{
|
|
554
|
+
error: "error";
|
|
553
555
|
off: "off";
|
|
554
556
|
warn: "warn";
|
|
555
|
-
error: "error";
|
|
556
557
|
}>>;
|
|
557
558
|
'app-config-appid': z$2.ZodOptional<z$2.ZodEnum<{
|
|
559
|
+
error: "error";
|
|
558
560
|
off: "off";
|
|
559
561
|
warn: "warn";
|
|
560
|
-
error: "error";
|
|
561
562
|
}>>;
|
|
562
563
|
'app-config-capabilities': z$2.ZodOptional<z$2.ZodEnum<{
|
|
564
|
+
error: "error";
|
|
563
565
|
off: "off";
|
|
564
566
|
warn: "warn";
|
|
565
|
-
error: "error";
|
|
566
567
|
}>>;
|
|
567
568
|
'data-view-fields': z$2.ZodOptional<z$2.ZodEnum<{
|
|
569
|
+
error: "error";
|
|
568
570
|
off: "off";
|
|
569
571
|
warn: "warn";
|
|
570
|
-
error: "error";
|
|
571
572
|
}>>;
|
|
572
573
|
}, z$2.core.$strip>>>;
|
|
573
574
|
}, z$2.core.$strip>;
|
|
575
|
+
/**
|
|
576
|
+
* Git hooks configuration.
|
|
577
|
+
* Maps hook names (e.g., "pre-commit") to a list of commands or checks to run.
|
|
578
|
+
*/
|
|
579
|
+
declare const HooksConfigSchema: z$2.ZodRecord<z$2.ZodString, z$2.ZodArray<z$2.ZodString>>;
|
|
574
580
|
/**
|
|
575
581
|
* Full ContractSpec configuration schema (.contractsrc.json).
|
|
576
582
|
*/
|
|
@@ -658,15 +664,15 @@ declare const ContractsrcSchema: z$2.ZodObject<{
|
|
|
658
664
|
include: z$2.ZodOptional<z$2.ZodArray<z$2.ZodString>>;
|
|
659
665
|
prefix: z$2.ZodOptional<z$2.ZodString>;
|
|
660
666
|
defaultStability: z$2.ZodOptional<z$2.ZodEnum<{
|
|
667
|
+
deprecated: "deprecated";
|
|
661
668
|
experimental: "experimental";
|
|
662
669
|
beta: "beta";
|
|
663
670
|
stable: "stable";
|
|
664
|
-
deprecated: "deprecated";
|
|
665
671
|
}>>;
|
|
666
672
|
defaultAuth: z$2.ZodOptional<z$2.ZodEnum<{
|
|
673
|
+
admin: "admin";
|
|
667
674
|
anonymous: "anonymous";
|
|
668
675
|
user: "user";
|
|
669
|
-
admin: "admin";
|
|
670
676
|
}>>;
|
|
671
677
|
defaultOwners: z$2.ZodOptional<z$2.ZodArray<z$2.ZodString>>;
|
|
672
678
|
schemaFormat: z$2.ZodDefault<z$2.ZodEnum<{
|
|
@@ -729,67 +735,68 @@ declare const ContractsrcSchema: z$2.ZodObject<{
|
|
|
729
735
|
rules: z$2.ZodOptional<z$2.ZodObject<{
|
|
730
736
|
defaults: z$2.ZodOptional<z$2.ZodObject<{
|
|
731
737
|
'require-acceptance': z$2.ZodOptional<z$2.ZodEnum<{
|
|
738
|
+
error: "error";
|
|
732
739
|
off: "off";
|
|
733
740
|
warn: "warn";
|
|
734
|
-
error: "error";
|
|
735
741
|
}>>;
|
|
736
742
|
'require-examples': z$2.ZodOptional<z$2.ZodEnum<{
|
|
743
|
+
error: "error";
|
|
737
744
|
off: "off";
|
|
738
745
|
warn: "warn";
|
|
739
|
-
error: "error";
|
|
740
746
|
}>>;
|
|
741
747
|
'require-stability': z$2.ZodOptional<z$2.ZodEnum<{
|
|
748
|
+
error: "error";
|
|
742
749
|
off: "off";
|
|
743
750
|
warn: "warn";
|
|
744
|
-
error: "error";
|
|
745
751
|
}>>;
|
|
746
752
|
'require-owners-format': z$2.ZodOptional<z$2.ZodEnum<{
|
|
753
|
+
error: "error";
|
|
747
754
|
off: "off";
|
|
748
755
|
warn: "warn";
|
|
749
|
-
error: "error";
|
|
750
756
|
}>>;
|
|
751
757
|
'event-past-tense': z$2.ZodOptional<z$2.ZodEnum<{
|
|
758
|
+
error: "error";
|
|
752
759
|
off: "off";
|
|
753
760
|
warn: "warn";
|
|
754
|
-
error: "error";
|
|
755
761
|
}>>;
|
|
756
762
|
'no-todo': z$2.ZodOptional<z$2.ZodEnum<{
|
|
763
|
+
error: "error";
|
|
757
764
|
off: "off";
|
|
758
765
|
warn: "warn";
|
|
759
|
-
error: "error";
|
|
760
766
|
}>>;
|
|
761
767
|
'workflow-transitions': z$2.ZodOptional<z$2.ZodEnum<{
|
|
768
|
+
error: "error";
|
|
762
769
|
off: "off";
|
|
763
770
|
warn: "warn";
|
|
764
|
-
error: "error";
|
|
765
771
|
}>>;
|
|
766
772
|
'telemetry-privacy': z$2.ZodOptional<z$2.ZodEnum<{
|
|
773
|
+
error: "error";
|
|
767
774
|
off: "off";
|
|
768
775
|
warn: "warn";
|
|
769
|
-
error: "error";
|
|
770
776
|
}>>;
|
|
771
777
|
'experiment-allocation': z$2.ZodOptional<z$2.ZodEnum<{
|
|
778
|
+
error: "error";
|
|
772
779
|
off: "off";
|
|
773
780
|
warn: "warn";
|
|
774
|
-
error: "error";
|
|
775
781
|
}>>;
|
|
776
782
|
'app-config-appid': z$2.ZodOptional<z$2.ZodEnum<{
|
|
783
|
+
error: "error";
|
|
777
784
|
off: "off";
|
|
778
785
|
warn: "warn";
|
|
779
|
-
error: "error";
|
|
780
786
|
}>>;
|
|
781
787
|
'app-config-capabilities': z$2.ZodOptional<z$2.ZodEnum<{
|
|
788
|
+
error: "error";
|
|
782
789
|
off: "off";
|
|
783
790
|
warn: "warn";
|
|
784
|
-
error: "error";
|
|
785
791
|
}>>;
|
|
786
792
|
'data-view-fields': z$2.ZodOptional<z$2.ZodEnum<{
|
|
793
|
+
error: "error";
|
|
787
794
|
off: "off";
|
|
788
795
|
warn: "warn";
|
|
789
|
-
error: "error";
|
|
790
796
|
}>>;
|
|
791
797
|
}, z$2.core.$strip>>;
|
|
792
798
|
overrides: z$2.ZodOptional<z$2.ZodRecord<z$2.ZodEnum<{
|
|
799
|
+
telemetry: "telemetry";
|
|
793
800
|
operation: "operation";
|
|
794
801
|
event: "event";
|
|
795
802
|
presentation: "presentation";
|
|
@@ -797,72 +804,72 @@ declare const ContractsrcSchema: z$2.ZodObject<{
|
|
|
797
804
|
workflow: "workflow";
|
|
798
805
|
"data-view": "data-view";
|
|
799
806
|
migration: "migration";
|
|
800
|
-
telemetry: "telemetry";
|
|
801
807
|
experiment: "experiment";
|
|
802
808
|
"app-config": "app-config";
|
|
803
809
|
}>, z$2.ZodObject<{
|
|
804
810
|
'require-acceptance': z$2.ZodOptional<z$2.ZodEnum<{
|
|
811
|
+
error: "error";
|
|
805
812
|
off: "off";
|
|
806
813
|
warn: "warn";
|
|
807
|
-
error: "error";
|
|
808
814
|
}>>;
|
|
809
815
|
'require-examples': z$2.ZodOptional<z$2.ZodEnum<{
|
|
816
|
+
error: "error";
|
|
810
817
|
off: "off";
|
|
811
818
|
warn: "warn";
|
|
812
|
-
error: "error";
|
|
813
819
|
}>>;
|
|
814
820
|
'require-stability': z$2.ZodOptional<z$2.ZodEnum<{
|
|
821
|
+
error: "error";
|
|
815
822
|
off: "off";
|
|
816
823
|
warn: "warn";
|
|
817
|
-
error: "error";
|
|
818
824
|
}>>;
|
|
819
825
|
'require-owners-format': z$2.ZodOptional<z$2.ZodEnum<{
|
|
826
|
+
error: "error";
|
|
820
827
|
off: "off";
|
|
821
828
|
warn: "warn";
|
|
822
|
-
error: "error";
|
|
823
829
|
}>>;
|
|
824
830
|
'event-past-tense': z$2.ZodOptional<z$2.ZodEnum<{
|
|
831
|
+
error: "error";
|
|
825
832
|
off: "off";
|
|
826
833
|
warn: "warn";
|
|
827
|
-
error: "error";
|
|
828
834
|
}>>;
|
|
829
835
|
'no-todo': z$2.ZodOptional<z$2.ZodEnum<{
|
|
836
|
+
error: "error";
|
|
830
837
|
off: "off";
|
|
831
838
|
warn: "warn";
|
|
832
|
-
error: "error";
|
|
833
839
|
}>>;
|
|
834
840
|
'workflow-transitions': z$2.ZodOptional<z$2.ZodEnum<{
|
|
841
|
+
error: "error";
|
|
835
842
|
off: "off";
|
|
836
843
|
warn: "warn";
|
|
837
|
-
error: "error";
|
|
838
844
|
}>>;
|
|
839
845
|
'telemetry-privacy': z$2.ZodOptional<z$2.ZodEnum<{
|
|
846
|
+
error: "error";
|
|
840
847
|
off: "off";
|
|
841
848
|
warn: "warn";
|
|
842
|
-
error: "error";
|
|
843
849
|
}>>;
|
|
844
850
|
'experiment-allocation': z$2.ZodOptional<z$2.ZodEnum<{
|
|
851
|
+
error: "error";
|
|
845
852
|
off: "off";
|
|
846
853
|
warn: "warn";
|
|
847
|
-
error: "error";
|
|
848
854
|
}>>;
|
|
849
855
|
'app-config-appid': z$2.ZodOptional<z$2.ZodEnum<{
|
|
856
|
+
error: "error";
|
|
850
857
|
off: "off";
|
|
851
858
|
warn: "warn";
|
|
852
|
-
error: "error";
|
|
853
859
|
}>>;
|
|
854
860
|
'app-config-capabilities': z$2.ZodOptional<z$2.ZodEnum<{
|
|
861
|
+
error: "error";
|
|
855
862
|
off: "off";
|
|
856
863
|
warn: "warn";
|
|
857
|
-
error: "error";
|
|
858
864
|
}>>;
|
|
859
865
|
'data-view-fields': z$2.ZodOptional<z$2.ZodEnum<{
|
|
866
|
+
error: "error";
|
|
860
867
|
off: "off";
|
|
861
868
|
warn: "warn";
|
|
862
|
-
error: "error";
|
|
863
869
|
}>>;
|
|
864
870
|
}, z$2.core.$strip>>>;
|
|
865
871
|
}, z$2.core.$strip>>;
|
|
872
|
+
hooks: z$2.ZodOptional<z$2.ZodRecord<z$2.ZodString, z$2.ZodArray<z$2.ZodString>>>;
|
|
866
873
|
schemaFormat: z$2.ZodDefault<z$2.ZodEnum<{
|
|
867
874
|
contractspec: "contractspec";
|
|
868
875
|
zod: "zod";
|
|
@@ -888,6 +895,7 @@ declare const ContractsrcSchema: z$2.ZodObject<{
|
|
|
888
895
|
impact: "impact";
|
|
889
896
|
conventional: "conventional";
|
|
890
897
|
}>>;
|
|
898
|
+
integrateWithChangesets: z$2.ZodDefault<z$2.ZodBoolean>;
|
|
891
899
|
changelogTiers: z$2.ZodDefault<z$2.ZodArray<z$2.ZodEnum<{
|
|
892
900
|
spec: "spec";
|
|
893
901
|
library: "library";
|
|
@@ -923,6 +931,7 @@ type RuleSeverity = z$2.infer<typeof RuleSeveritySchema>;
|
|
|
923
931
|
type SpecKind = z$2.infer<typeof SpecKindSchema>;
|
|
924
932
|
type LintRules = z$2.infer<typeof LintRulesSchema>;
|
|
925
933
|
type RulesConfig = z$2.infer<typeof RulesConfigSchema>;
|
|
934
|
+
type HooksConfig = z$2.infer<typeof HooksConfigSchema>;
|
|
926
935
|
type SchemaFormat = z$2.infer<typeof SchemaFormatSchema>;
|
|
927
936
|
type FormatterType = z$2.infer<typeof FormatterTypeSchema>;
|
|
928
937
|
type FormatterConfig = z$2.infer<typeof FormatterConfigSchema>;
|
|
@@ -935,4 +944,4 @@ type VersioningConfig = z$2.infer<typeof VersioningConfigSchema>;
|
|
|
935
944
|
*/
|
|
936
945
|
declare const DEFAULT_CONTRACTSRC: ContractsrcConfig;
|
|
937
946
|
//#endregion
|
|
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 };
|
|
947
|
+
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, HooksConfig, HooksConfigSchema, ImpactConfig, ImpactConfigSchema, LintRules, LintRulesSchema, MetaRepoConfig, MetaRepoConfigSchema, OpenApiConfig, OpenApiConfigSchema, OpenApiExportConfig, OpenApiExportConfigSchema, OpenApiSourceConfig, OpenApiSourceConfigSchema, PrCommentConfig, PrCommentConfigSchema, RuleSeverity, RuleSeveritySchema, RulesConfig, RulesConfigSchema, SchemaFormat, SchemaFormatSchema, SpecKind, SpecKindSchema, VersioningConfig, VersioningConfigSchema };
|
|
@@ -203,6 +203,7 @@ const ChangelogTierSchema = z$2.enum([
|
|
|
203
203
|
const VersioningConfigSchema = z$2.object({
|
|
204
204
|
autoBump: z$2.boolean().default(false),
|
|
205
205
|
bumpStrategy: BumpStrategySchema.default("impact"),
|
|
206
|
+
integrateWithChangesets: z$2.boolean().default(false),
|
|
206
207
|
changelogTiers: z$2.array(ChangelogTierSchema).default([
|
|
207
208
|
"spec",
|
|
208
209
|
"library",
|
|
@@ -264,6 +265,11 @@ const RulesConfigSchema = z$2.object({
|
|
|
264
265
|
overrides: z$2.record(SpecKindSchema, LintRulesSchema).optional()
|
|
265
266
|
});
|
|
266
267
|
/**
|
|
268
|
+
* Git hooks configuration.
|
|
269
|
+
* Maps hook names (e.g., "pre-commit") to a list of commands or checks to run.
|
|
270
|
+
*/
|
|
271
|
+
const HooksConfigSchema = z$2.record(z$2.string(), z$2.array(z$2.string()));
|
|
272
|
+
/**
|
|
267
273
|
* Full ContractSpec configuration schema (.contractsrc.json).
|
|
268
274
|
*/
|
|
269
275
|
const ContractsrcSchema = z$2.object({
|
|
@@ -293,6 +299,7 @@ const ContractsrcSchema = z$2.object({
|
|
|
293
299
|
ci: CiConfigSchema.optional(),
|
|
294
300
|
metaRepo: MetaRepoConfigSchema.optional(),
|
|
295
301
|
rules: RulesConfigSchema.optional(),
|
|
302
|
+
hooks: HooksConfigSchema.optional(),
|
|
296
303
|
schemaFormat: SchemaFormatSchema.default("contractspec"),
|
|
297
304
|
formatter: FormatterConfigSchema.optional(),
|
|
298
305
|
versioning: VersioningConfigSchema.optional()
|
|
@@ -318,4 +325,4 @@ const DEFAULT_CONTRACTSRC = {
|
|
|
318
325
|
};
|
|
319
326
|
|
|
320
327
|
//#endregion
|
|
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 };
|
|
328
|
+
export { BumpStrategySchema, ChangelogFormatSchema, ChangelogTierSchema, CheckRunConfigSchema, CiConfigSchema, ContractsrcSchema, DEFAULT_CONTRACTSRC, ExternalWorkspaceSchema, FolderConventionsSchema, FormatterConfigSchema, FormatterTypeSchema, GroupingRuleSchema, GroupingStrategySchema, HooksConfigSchema, ImpactConfigSchema, LintRulesSchema, MetaRepoConfigSchema, OpenApiConfigSchema, OpenApiExportConfigSchema, OpenApiSourceConfigSchema, PrCommentConfigSchema, RuleSeveritySchema, RulesConfigSchema, SchemaFormatSchema, SpecKindSchema, VersioningConfigSchema };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@contractspec/lib.contracts",
|
|
3
|
-
"version": "1.45.
|
|
3
|
+
"version": "1.45.5",
|
|
4
4
|
"description": "Core contract specification definitions and runtime",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"contractspec",
|
|
@@ -25,8 +25,8 @@
|
|
|
25
25
|
"test": "bun test"
|
|
26
26
|
},
|
|
27
27
|
"devDependencies": {
|
|
28
|
-
"@contractspec/tool.tsdown": "1.45.
|
|
29
|
-
"@contractspec/tool.typescript": "1.45.
|
|
28
|
+
"@contractspec/tool.tsdown": "1.45.5",
|
|
29
|
+
"@contractspec/tool.typescript": "1.45.5",
|
|
30
30
|
"@types/express": "^5.0.3",
|
|
31
31
|
"@types/turndown": "^5.0.6",
|
|
32
32
|
"tsdown": "^0.18.3",
|
|
@@ -35,8 +35,8 @@
|
|
|
35
35
|
"dependencies": {
|
|
36
36
|
"@aws-sdk/client-secrets-manager": "^3.958.0",
|
|
37
37
|
"@aws-sdk/client-sqs": "^3.958.0",
|
|
38
|
-
"@contractspec/lib.logger": "1.45.
|
|
39
|
-
"@contractspec/lib.schema": "1.45.
|
|
38
|
+
"@contractspec/lib.logger": "1.45.5",
|
|
39
|
+
"@contractspec/lib.schema": "1.45.5",
|
|
40
40
|
"@elevenlabs/elevenlabs-js": "^2.27.0",
|
|
41
41
|
"@google-cloud/secret-manager": "^6.1.1",
|
|
42
42
|
"@google-cloud/storage": "^7.18.0",
|