@lssm/lib.contracts 1.43.0 → 1.43.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.
Files changed (63) hide show
  1. package/README.md +5 -0
  2. package/dist/app-config/app-config.feature.d.ts +2 -1
  3. package/dist/app-config/contracts.d.ts +51 -51
  4. package/dist/app-config/events.d.ts +27 -27
  5. package/dist/app-config/lifecycle-contracts.d.ts +55 -55
  6. package/dist/app-config/runtime.d.ts +7 -4
  7. package/dist/app-config/spec.d.ts +3 -2
  8. package/dist/app-config/validation.d.ts +1 -1
  9. package/dist/client/react/feature-render.d.ts +3 -1
  10. package/dist/contract-registry/schemas.d.ts +6 -6
  11. package/dist/data-views/data-views.d.ts +5 -138
  12. package/dist/data-views/data-views.js +3 -57
  13. package/dist/data-views/index.d.ts +4 -4
  14. package/dist/data-views/index.js +3 -4
  15. package/dist/data-views/query-generator.d.ts +1 -1
  16. package/dist/data-views/registry.d.ts +51 -0
  17. package/dist/data-views/registry.js +82 -0
  18. package/dist/data-views/runtime.d.ts +2 -1
  19. package/dist/data-views/spec.d.ts +32 -0
  20. package/dist/data-views/spec.js +10 -0
  21. package/dist/data-views/types.d.ts +157 -0
  22. package/dist/data-views/types.js +0 -0
  23. package/dist/experiments/spec-resolver.d.ts +1 -1
  24. package/dist/features/index.d.ts +5 -0
  25. package/dist/features/index.js +5 -0
  26. package/dist/features/install.d.ts +22 -0
  27. package/dist/features/install.js +36 -0
  28. package/dist/features/registry.d.ts +26 -0
  29. package/dist/features/registry.js +49 -0
  30. package/dist/features/types.d.ts +88 -0
  31. package/dist/features/types.js +0 -0
  32. package/dist/features/validation.d.ts +8 -0
  33. package/dist/features/validation.js +14 -0
  34. package/dist/index.d.ts +16 -12
  35. package/dist/index.js +7 -6
  36. package/dist/install.d.ts +1 -1
  37. package/dist/integrations/integrations.feature.d.ts +2 -1
  38. package/dist/integrations/openbanking/contracts/accounts.d.ts +67 -67
  39. package/dist/integrations/openbanking/contracts/balances.d.ts +35 -35
  40. package/dist/integrations/openbanking/contracts/transactions.d.ts +49 -49
  41. package/dist/integrations/openbanking/models.d.ts +55 -55
  42. package/dist/integrations/openbanking/openbanking.feature.d.ts +2 -1
  43. package/dist/integrations/operations.d.ts +103 -103
  44. package/dist/integrations/providers/impls/stripe-payments.js +1 -1
  45. package/dist/jsonschema.d.ts +1 -1
  46. package/dist/knowledge/knowledge.feature.d.ts +2 -1
  47. package/dist/knowledge/operations.d.ts +67 -67
  48. package/dist/llm/exporters.d.ts +3 -2
  49. package/dist/llm/prompts.d.ts +1 -1
  50. package/dist/llm/types.d.ts +3 -2
  51. package/dist/markdown.d.ts +2 -2
  52. package/dist/onboarding-base.d.ts +29 -29
  53. package/dist/tests/runner.js +1 -1
  54. package/dist/tests/spec.d.ts +2 -10
  55. package/dist/workflow/runner.d.ts +2 -1
  56. package/dist/workflow/spec.d.ts +3 -2
  57. package/dist/workspace-config/contractsrc-schema.d.ts +116 -75
  58. package/dist/workspace-config/contractsrc-schema.js +23 -2
  59. package/dist/workspace-config/index.d.ts +2 -2
  60. package/dist/workspace-config/index.js +2 -2
  61. package/package.json +14 -7
  62. package/dist/features.d.ts +0 -104
  63. package/dist/features.js +0 -91
@@ -29,14 +29,14 @@ declare const OpenApiSourceConfigSchema: z$1.ZodObject<{
29
29
  include: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString>>;
30
30
  prefix: z$1.ZodOptional<z$1.ZodString>;
31
31
  defaultStability: z$1.ZodOptional<z$1.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$1.ZodOptional<z$1.ZodEnum<{
38
- user: "user";
39
38
  anonymous: "anonymous";
39
+ user: "user";
40
40
  admin: "admin";
41
41
  }>>;
42
42
  defaultOwners: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString>>;
@@ -79,14 +79,14 @@ declare const OpenApiConfigSchema: z$1.ZodObject<{
79
79
  include: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString>>;
80
80
  prefix: z$1.ZodOptional<z$1.ZodString>;
81
81
  defaultStability: z$1.ZodOptional<z$1.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$1.ZodOptional<z$1.ZodEnum<{
88
- user: "user";
89
88
  anonymous: "anonymous";
89
+ user: "user";
90
90
  admin: "admin";
91
91
  }>>;
92
92
  defaultOwners: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString>>;
@@ -268,20 +268,44 @@ declare const MetaRepoConfigSchema: z$1.ZodObject<{
268
268
  }, z$1.core.$strip>>>;
269
269
  crossWorkspaceSearch: z$1.ZodDefault<z$1.ZodBoolean>;
270
270
  }, z$1.core.$strip>;
271
+ /**
272
+ * Supported formatter tools.
273
+ */
274
+ declare const FormatterTypeSchema: z$1.ZodEnum<{
275
+ custom: "custom";
276
+ prettier: "prettier";
277
+ eslint: "eslint";
278
+ biome: "biome";
279
+ dprint: "dprint";
280
+ }>;
281
+ /**
282
+ * Formatter configuration for code generation.
283
+ */
284
+ declare const FormatterConfigSchema: z$1.ZodObject<{
285
+ enabled: z$1.ZodDefault<z$1.ZodBoolean>;
286
+ type: z$1.ZodOptional<z$1.ZodEnum<{
287
+ custom: "custom";
288
+ prettier: "prettier";
289
+ eslint: "eslint";
290
+ biome: "biome";
291
+ dprint: "dprint";
292
+ }>>;
293
+ command: z$1.ZodOptional<z$1.ZodString>;
294
+ args: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString>>;
295
+ timeout: z$1.ZodDefault<z$1.ZodNumber>;
296
+ }, z$1.core.$strip>;
271
297
  /**
272
298
  * Rule severity levels (inspired by ESLint).
273
299
  */
274
300
  declare const RuleSeveritySchema: z$1.ZodEnum<{
275
- error: "error";
276
301
  off: "off";
277
302
  warn: "warn";
303
+ error: "error";
278
304
  }>;
279
305
  /**
280
306
  * Contract kinds for per-kind rule overrides.
281
307
  */
282
308
  declare const SpecKindSchema: z$1.ZodEnum<{
283
- telemetry: "telemetry";
284
- "app-config": "app-config";
285
309
  operation: "operation";
286
310
  event: "event";
287
311
  presentation: "presentation";
@@ -289,71 +313,73 @@ declare const SpecKindSchema: z$1.ZodEnum<{
289
313
  workflow: "workflow";
290
314
  "data-view": "data-view";
291
315
  migration: "migration";
316
+ telemetry: "telemetry";
292
317
  experiment: "experiment";
318
+ "app-config": "app-config";
293
319
  }>;
294
320
  /**
295
321
  * Available lint rules with their severity.
296
322
  */
297
323
  declare const LintRulesSchema: z$1.ZodObject<{
298
324
  'require-acceptance': z$1.ZodOptional<z$1.ZodEnum<{
299
- error: "error";
300
325
  off: "off";
301
326
  warn: "warn";
327
+ error: "error";
302
328
  }>>;
303
329
  'require-examples': z$1.ZodOptional<z$1.ZodEnum<{
304
- error: "error";
305
330
  off: "off";
306
331
  warn: "warn";
332
+ error: "error";
307
333
  }>>;
308
334
  'require-stability': z$1.ZodOptional<z$1.ZodEnum<{
309
- error: "error";
310
335
  off: "off";
311
336
  warn: "warn";
337
+ error: "error";
312
338
  }>>;
313
339
  'require-owners-format': z$1.ZodOptional<z$1.ZodEnum<{
314
- error: "error";
315
340
  off: "off";
316
341
  warn: "warn";
342
+ error: "error";
317
343
  }>>;
318
344
  'event-past-tense': z$1.ZodOptional<z$1.ZodEnum<{
319
- error: "error";
320
345
  off: "off";
321
346
  warn: "warn";
347
+ error: "error";
322
348
  }>>;
323
349
  'no-todo': z$1.ZodOptional<z$1.ZodEnum<{
324
- error: "error";
325
350
  off: "off";
326
351
  warn: "warn";
352
+ error: "error";
327
353
  }>>;
328
354
  'workflow-transitions': z$1.ZodOptional<z$1.ZodEnum<{
329
- error: "error";
330
355
  off: "off";
331
356
  warn: "warn";
357
+ error: "error";
332
358
  }>>;
333
359
  'telemetry-privacy': z$1.ZodOptional<z$1.ZodEnum<{
334
- error: "error";
335
360
  off: "off";
336
361
  warn: "warn";
362
+ error: "error";
337
363
  }>>;
338
364
  'experiment-allocation': z$1.ZodOptional<z$1.ZodEnum<{
339
- error: "error";
340
365
  off: "off";
341
366
  warn: "warn";
367
+ error: "error";
342
368
  }>>;
343
369
  'app-config-appid': z$1.ZodOptional<z$1.ZodEnum<{
344
- error: "error";
345
370
  off: "off";
346
371
  warn: "warn";
372
+ error: "error";
347
373
  }>>;
348
374
  'app-config-capabilities': z$1.ZodOptional<z$1.ZodEnum<{
349
- error: "error";
350
375
  off: "off";
351
376
  warn: "warn";
377
+ error: "error";
352
378
  }>>;
353
379
  'data-view-fields': z$1.ZodOptional<z$1.ZodEnum<{
354
- error: "error";
355
380
  off: "off";
356
381
  warn: "warn";
382
+ error: "error";
357
383
  }>>;
358
384
  }, z$1.core.$strip>;
359
385
  /**
@@ -362,69 +388,67 @@ declare const LintRulesSchema: z$1.ZodObject<{
362
388
  declare const RulesConfigSchema: z$1.ZodObject<{
363
389
  defaults: z$1.ZodOptional<z$1.ZodObject<{
364
390
  'require-acceptance': z$1.ZodOptional<z$1.ZodEnum<{
365
- error: "error";
366
391
  off: "off";
367
392
  warn: "warn";
393
+ error: "error";
368
394
  }>>;
369
395
  'require-examples': z$1.ZodOptional<z$1.ZodEnum<{
370
- error: "error";
371
396
  off: "off";
372
397
  warn: "warn";
398
+ error: "error";
373
399
  }>>;
374
400
  'require-stability': z$1.ZodOptional<z$1.ZodEnum<{
375
- error: "error";
376
401
  off: "off";
377
402
  warn: "warn";
403
+ error: "error";
378
404
  }>>;
379
405
  'require-owners-format': z$1.ZodOptional<z$1.ZodEnum<{
380
- error: "error";
381
406
  off: "off";
382
407
  warn: "warn";
408
+ error: "error";
383
409
  }>>;
384
410
  'event-past-tense': z$1.ZodOptional<z$1.ZodEnum<{
385
- error: "error";
386
411
  off: "off";
387
412
  warn: "warn";
413
+ error: "error";
388
414
  }>>;
389
415
  'no-todo': z$1.ZodOptional<z$1.ZodEnum<{
390
- error: "error";
391
416
  off: "off";
392
417
  warn: "warn";
418
+ error: "error";
393
419
  }>>;
394
420
  'workflow-transitions': z$1.ZodOptional<z$1.ZodEnum<{
395
- error: "error";
396
421
  off: "off";
397
422
  warn: "warn";
423
+ error: "error";
398
424
  }>>;
399
425
  'telemetry-privacy': z$1.ZodOptional<z$1.ZodEnum<{
400
- error: "error";
401
426
  off: "off";
402
427
  warn: "warn";
428
+ error: "error";
403
429
  }>>;
404
430
  'experiment-allocation': z$1.ZodOptional<z$1.ZodEnum<{
405
- error: "error";
406
431
  off: "off";
407
432
  warn: "warn";
433
+ error: "error";
408
434
  }>>;
409
435
  'app-config-appid': z$1.ZodOptional<z$1.ZodEnum<{
410
- error: "error";
411
436
  off: "off";
412
437
  warn: "warn";
438
+ error: "error";
413
439
  }>>;
414
440
  'app-config-capabilities': z$1.ZodOptional<z$1.ZodEnum<{
415
- error: "error";
416
441
  off: "off";
417
442
  warn: "warn";
443
+ error: "error";
418
444
  }>>;
419
445
  'data-view-fields': z$1.ZodOptional<z$1.ZodEnum<{
420
- error: "error";
421
446
  off: "off";
422
447
  warn: "warn";
448
+ error: "error";
423
449
  }>>;
424
450
  }, z$1.core.$strip>>;
425
451
  overrides: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodEnum<{
426
- telemetry: "telemetry";
427
- "app-config": "app-config";
428
452
  operation: "operation";
429
453
  event: "event";
430
454
  presentation: "presentation";
@@ -432,67 +456,69 @@ declare const RulesConfigSchema: z$1.ZodObject<{
432
456
  workflow: "workflow";
433
457
  "data-view": "data-view";
434
458
  migration: "migration";
459
+ telemetry: "telemetry";
435
460
  experiment: "experiment";
461
+ "app-config": "app-config";
436
462
  }>, z$1.ZodObject<{
437
463
  'require-acceptance': z$1.ZodOptional<z$1.ZodEnum<{
438
- error: "error";
439
464
  off: "off";
440
465
  warn: "warn";
466
+ error: "error";
441
467
  }>>;
442
468
  'require-examples': z$1.ZodOptional<z$1.ZodEnum<{
443
- error: "error";
444
469
  off: "off";
445
470
  warn: "warn";
471
+ error: "error";
446
472
  }>>;
447
473
  'require-stability': z$1.ZodOptional<z$1.ZodEnum<{
448
- error: "error";
449
474
  off: "off";
450
475
  warn: "warn";
476
+ error: "error";
451
477
  }>>;
452
478
  'require-owners-format': z$1.ZodOptional<z$1.ZodEnum<{
453
- error: "error";
454
479
  off: "off";
455
480
  warn: "warn";
481
+ error: "error";
456
482
  }>>;
457
483
  'event-past-tense': z$1.ZodOptional<z$1.ZodEnum<{
458
- error: "error";
459
484
  off: "off";
460
485
  warn: "warn";
486
+ error: "error";
461
487
  }>>;
462
488
  'no-todo': z$1.ZodOptional<z$1.ZodEnum<{
463
- error: "error";
464
489
  off: "off";
465
490
  warn: "warn";
491
+ error: "error";
466
492
  }>>;
467
493
  'workflow-transitions': z$1.ZodOptional<z$1.ZodEnum<{
468
- error: "error";
469
494
  off: "off";
470
495
  warn: "warn";
496
+ error: "error";
471
497
  }>>;
472
498
  'telemetry-privacy': z$1.ZodOptional<z$1.ZodEnum<{
473
- error: "error";
474
499
  off: "off";
475
500
  warn: "warn";
501
+ error: "error";
476
502
  }>>;
477
503
  'experiment-allocation': z$1.ZodOptional<z$1.ZodEnum<{
478
- error: "error";
479
504
  off: "off";
480
505
  warn: "warn";
506
+ error: "error";
481
507
  }>>;
482
508
  'app-config-appid': z$1.ZodOptional<z$1.ZodEnum<{
483
- error: "error";
484
509
  off: "off";
485
510
  warn: "warn";
511
+ error: "error";
486
512
  }>>;
487
513
  'app-config-capabilities': z$1.ZodOptional<z$1.ZodEnum<{
488
- error: "error";
489
514
  off: "off";
490
515
  warn: "warn";
516
+ error: "error";
491
517
  }>>;
492
518
  'data-view-fields': z$1.ZodOptional<z$1.ZodEnum<{
493
- error: "error";
494
519
  off: "off";
495
520
  warn: "warn";
521
+ error: "error";
496
522
  }>>;
497
523
  }, z$1.core.$strip>>>;
498
524
  }, z$1.core.$strip>;
@@ -508,9 +534,9 @@ declare const ContractsrcSchema: z$1.ZodObject<{
508
534
  }>>;
509
535
  aiModel: z$1.ZodOptional<z$1.ZodString>;
510
536
  agentMode: z$1.ZodDefault<z$1.ZodEnum<{
537
+ simple: "simple";
511
538
  cursor: "cursor";
512
539
  "claude-code": "claude-code";
513
- simple: "simple";
514
540
  "openai-codex": "openai-codex";
515
541
  }>>;
516
542
  customEndpoint: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodURL>>;
@@ -583,14 +609,14 @@ declare const ContractsrcSchema: z$1.ZodObject<{
583
609
  include: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString>>;
584
610
  prefix: z$1.ZodOptional<z$1.ZodString>;
585
611
  defaultStability: z$1.ZodOptional<z$1.ZodEnum<{
586
- deprecated: "deprecated";
587
612
  experimental: "experimental";
588
613
  beta: "beta";
589
614
  stable: "stable";
615
+ deprecated: "deprecated";
590
616
  }>>;
591
617
  defaultAuth: z$1.ZodOptional<z$1.ZodEnum<{
592
- user: "user";
593
618
  anonymous: "anonymous";
619
+ user: "user";
594
620
  admin: "admin";
595
621
  }>>;
596
622
  defaultOwners: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString>>;
@@ -654,69 +680,67 @@ declare const ContractsrcSchema: z$1.ZodObject<{
654
680
  rules: z$1.ZodOptional<z$1.ZodObject<{
655
681
  defaults: z$1.ZodOptional<z$1.ZodObject<{
656
682
  'require-acceptance': z$1.ZodOptional<z$1.ZodEnum<{
657
- error: "error";
658
683
  off: "off";
659
684
  warn: "warn";
685
+ error: "error";
660
686
  }>>;
661
687
  'require-examples': z$1.ZodOptional<z$1.ZodEnum<{
662
- error: "error";
663
688
  off: "off";
664
689
  warn: "warn";
690
+ error: "error";
665
691
  }>>;
666
692
  'require-stability': z$1.ZodOptional<z$1.ZodEnum<{
667
- error: "error";
668
693
  off: "off";
669
694
  warn: "warn";
695
+ error: "error";
670
696
  }>>;
671
697
  'require-owners-format': z$1.ZodOptional<z$1.ZodEnum<{
672
- error: "error";
673
698
  off: "off";
674
699
  warn: "warn";
700
+ error: "error";
675
701
  }>>;
676
702
  'event-past-tense': z$1.ZodOptional<z$1.ZodEnum<{
677
- error: "error";
678
703
  off: "off";
679
704
  warn: "warn";
705
+ error: "error";
680
706
  }>>;
681
707
  'no-todo': z$1.ZodOptional<z$1.ZodEnum<{
682
- error: "error";
683
708
  off: "off";
684
709
  warn: "warn";
710
+ error: "error";
685
711
  }>>;
686
712
  'workflow-transitions': z$1.ZodOptional<z$1.ZodEnum<{
687
- error: "error";
688
713
  off: "off";
689
714
  warn: "warn";
715
+ error: "error";
690
716
  }>>;
691
717
  'telemetry-privacy': z$1.ZodOptional<z$1.ZodEnum<{
692
- error: "error";
693
718
  off: "off";
694
719
  warn: "warn";
720
+ error: "error";
695
721
  }>>;
696
722
  'experiment-allocation': z$1.ZodOptional<z$1.ZodEnum<{
697
- error: "error";
698
723
  off: "off";
699
724
  warn: "warn";
725
+ error: "error";
700
726
  }>>;
701
727
  'app-config-appid': z$1.ZodOptional<z$1.ZodEnum<{
702
- error: "error";
703
728
  off: "off";
704
729
  warn: "warn";
730
+ error: "error";
705
731
  }>>;
706
732
  'app-config-capabilities': z$1.ZodOptional<z$1.ZodEnum<{
707
- error: "error";
708
733
  off: "off";
709
734
  warn: "warn";
735
+ error: "error";
710
736
  }>>;
711
737
  'data-view-fields': z$1.ZodOptional<z$1.ZodEnum<{
712
- error: "error";
713
738
  off: "off";
714
739
  warn: "warn";
740
+ error: "error";
715
741
  }>>;
716
742
  }, z$1.core.$strip>>;
717
743
  overrides: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodEnum<{
718
- telemetry: "telemetry";
719
- "app-config": "app-config";
720
744
  operation: "operation";
721
745
  event: "event";
722
746
  presentation: "presentation";
@@ -724,67 +748,69 @@ declare const ContractsrcSchema: z$1.ZodObject<{
724
748
  workflow: "workflow";
725
749
  "data-view": "data-view";
726
750
  migration: "migration";
751
+ telemetry: "telemetry";
727
752
  experiment: "experiment";
753
+ "app-config": "app-config";
728
754
  }>, z$1.ZodObject<{
729
755
  'require-acceptance': z$1.ZodOptional<z$1.ZodEnum<{
730
- error: "error";
731
756
  off: "off";
732
757
  warn: "warn";
758
+ error: "error";
733
759
  }>>;
734
760
  'require-examples': z$1.ZodOptional<z$1.ZodEnum<{
735
- error: "error";
736
761
  off: "off";
737
762
  warn: "warn";
763
+ error: "error";
738
764
  }>>;
739
765
  'require-stability': z$1.ZodOptional<z$1.ZodEnum<{
740
- error: "error";
741
766
  off: "off";
742
767
  warn: "warn";
768
+ error: "error";
743
769
  }>>;
744
770
  'require-owners-format': z$1.ZodOptional<z$1.ZodEnum<{
745
- error: "error";
746
771
  off: "off";
747
772
  warn: "warn";
773
+ error: "error";
748
774
  }>>;
749
775
  'event-past-tense': z$1.ZodOptional<z$1.ZodEnum<{
750
- error: "error";
751
776
  off: "off";
752
777
  warn: "warn";
778
+ error: "error";
753
779
  }>>;
754
780
  'no-todo': z$1.ZodOptional<z$1.ZodEnum<{
755
- error: "error";
756
781
  off: "off";
757
782
  warn: "warn";
783
+ error: "error";
758
784
  }>>;
759
785
  'workflow-transitions': z$1.ZodOptional<z$1.ZodEnum<{
760
- error: "error";
761
786
  off: "off";
762
787
  warn: "warn";
788
+ error: "error";
763
789
  }>>;
764
790
  'telemetry-privacy': z$1.ZodOptional<z$1.ZodEnum<{
765
- error: "error";
766
791
  off: "off";
767
792
  warn: "warn";
793
+ error: "error";
768
794
  }>>;
769
795
  'experiment-allocation': z$1.ZodOptional<z$1.ZodEnum<{
770
- error: "error";
771
796
  off: "off";
772
797
  warn: "warn";
798
+ error: "error";
773
799
  }>>;
774
800
  'app-config-appid': z$1.ZodOptional<z$1.ZodEnum<{
775
- error: "error";
776
801
  off: "off";
777
802
  warn: "warn";
803
+ error: "error";
778
804
  }>>;
779
805
  'app-config-capabilities': z$1.ZodOptional<z$1.ZodEnum<{
780
- error: "error";
781
806
  off: "off";
782
807
  warn: "warn";
808
+ error: "error";
783
809
  }>>;
784
810
  'data-view-fields': z$1.ZodOptional<z$1.ZodEnum<{
785
- error: "error";
786
811
  off: "off";
787
812
  warn: "warn";
813
+ error: "error";
788
814
  }>>;
789
815
  }, z$1.core.$strip>>>;
790
816
  }, z$1.core.$strip>>;
@@ -794,6 +820,19 @@ declare const ContractsrcSchema: z$1.ZodObject<{
794
820
  "json-schema": "json-schema";
795
821
  graphql: "graphql";
796
822
  }>>;
823
+ formatter: z$1.ZodOptional<z$1.ZodObject<{
824
+ enabled: z$1.ZodDefault<z$1.ZodBoolean>;
825
+ type: z$1.ZodOptional<z$1.ZodEnum<{
826
+ custom: "custom";
827
+ prettier: "prettier";
828
+ eslint: "eslint";
829
+ biome: "biome";
830
+ dprint: "dprint";
831
+ }>>;
832
+ command: z$1.ZodOptional<z$1.ZodString>;
833
+ args: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString>>;
834
+ timeout: z$1.ZodDefault<z$1.ZodNumber>;
835
+ }, z$1.core.$strip>>;
797
836
  }, z$1.core.$strip>;
798
837
  type OpenApiSourceConfig = z$1.infer<typeof OpenApiSourceConfigSchema>;
799
838
  type OpenApiExportConfig = z$1.infer<typeof OpenApiExportConfigSchema>;
@@ -813,9 +852,11 @@ type SpecKind = z$1.infer<typeof SpecKindSchema>;
813
852
  type LintRules = z$1.infer<typeof LintRulesSchema>;
814
853
  type RulesConfig = z$1.infer<typeof RulesConfigSchema>;
815
854
  type SchemaFormat = z$1.infer<typeof SchemaFormatSchema>;
855
+ type FormatterType = z$1.infer<typeof FormatterTypeSchema>;
856
+ type FormatterConfig = z$1.infer<typeof FormatterConfigSchema>;
816
857
  /**
817
858
  * Default configuration values.
818
859
  */
819
860
  declare const DEFAULT_CONTRACTSRC: ContractsrcConfig;
820
861
  //#endregion
821
- export { CheckRunConfig, CheckRunConfigSchema, CiConfig, CiConfigSchema, ContractsrcConfig, ContractsrcSchema, DEFAULT_CONTRACTSRC, ExternalWorkspace, ExternalWorkspaceSchema, FolderConventions, FolderConventionsSchema, 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 };
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 };
@@ -158,6 +158,26 @@ const MetaRepoConfigSchema = z$1.object({
158
158
  crossWorkspaceSearch: z$1.boolean().default(false)
159
159
  });
160
160
  /**
161
+ * Supported formatter tools.
162
+ */
163
+ const FormatterTypeSchema = z$1.enum([
164
+ "prettier",
165
+ "eslint",
166
+ "biome",
167
+ "dprint",
168
+ "custom"
169
+ ]);
170
+ /**
171
+ * Formatter configuration for code generation.
172
+ */
173
+ const FormatterConfigSchema = z$1.object({
174
+ enabled: z$1.boolean().default(true),
175
+ type: FormatterTypeSchema.optional(),
176
+ command: z$1.string().optional(),
177
+ args: z$1.array(z$1.string()).optional(),
178
+ timeout: z$1.number().default(3e4)
179
+ });
180
+ /**
161
181
  * Rule severity levels (inspired by ESLint).
162
182
  */
163
183
  const RuleSeveritySchema = z$1.enum([
@@ -234,7 +254,8 @@ const ContractsrcSchema = z$1.object({
234
254
  ci: CiConfigSchema.optional(),
235
255
  metaRepo: MetaRepoConfigSchema.optional(),
236
256
  rules: RulesConfigSchema.optional(),
237
- schemaFormat: SchemaFormatSchema.default("contractspec")
257
+ schemaFormat: SchemaFormatSchema.default("contractspec"),
258
+ formatter: FormatterConfigSchema.optional()
238
259
  });
239
260
  /**
240
261
  * Default configuration values.
@@ -257,4 +278,4 @@ const DEFAULT_CONTRACTSRC = {
257
278
  };
258
279
 
259
280
  //#endregion
260
- export { CheckRunConfigSchema, CiConfigSchema, ContractsrcSchema, DEFAULT_CONTRACTSRC, ExternalWorkspaceSchema, FolderConventionsSchema, GroupingRuleSchema, GroupingStrategySchema, ImpactConfigSchema, LintRulesSchema, MetaRepoConfigSchema, OpenApiConfigSchema, OpenApiExportConfigSchema, OpenApiSourceConfigSchema, PrCommentConfigSchema, RuleSeveritySchema, RulesConfigSchema, SchemaFormatSchema, SpecKindSchema };
281
+ export { CheckRunConfigSchema, CiConfigSchema, ContractsrcSchema, DEFAULT_CONTRACTSRC, ExternalWorkspaceSchema, FolderConventionsSchema, FormatterConfigSchema, FormatterTypeSchema, GroupingRuleSchema, GroupingStrategySchema, ImpactConfigSchema, LintRulesSchema, MetaRepoConfigSchema, OpenApiConfigSchema, OpenApiExportConfigSchema, OpenApiSourceConfigSchema, PrCommentConfigSchema, RuleSeveritySchema, RulesConfigSchema, SchemaFormatSchema, SpecKindSchema };
@@ -1,2 +1,2 @@
1
- import { ContractsrcConfig, ContractsrcSchema, DEFAULT_CONTRACTSRC, FolderConventions, FolderConventionsSchema, OpenApiConfig, OpenApiConfigSchema, OpenApiExportConfig, OpenApiExportConfigSchema, OpenApiSourceConfig, OpenApiSourceConfigSchema, SchemaFormat, SchemaFormatSchema } from "./contractsrc-schema.js";
2
- export { type ContractsrcConfig, ContractsrcSchema, DEFAULT_CONTRACTSRC, type FolderConventions, FolderConventionsSchema, type OpenApiConfig, OpenApiConfigSchema, type OpenApiExportConfig, OpenApiExportConfigSchema, type OpenApiSourceConfig, OpenApiSourceConfigSchema, type SchemaFormat, SchemaFormatSchema };
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,3 +1,3 @@
1
- import { ContractsrcSchema, DEFAULT_CONTRACTSRC, FolderConventionsSchema, OpenApiConfigSchema, OpenApiExportConfigSchema, OpenApiSourceConfigSchema, SchemaFormatSchema } from "./contractsrc-schema.js";
1
+ import { ContractsrcSchema, DEFAULT_CONTRACTSRC, FolderConventionsSchema, FormatterConfigSchema, FormatterTypeSchema, OpenApiConfigSchema, OpenApiExportConfigSchema, OpenApiSourceConfigSchema, SchemaFormatSchema } from "./contractsrc-schema.js";
2
2
 
3
- export { ContractsrcSchema, DEFAULT_CONTRACTSRC, FolderConventionsSchema, OpenApiConfigSchema, OpenApiExportConfigSchema, OpenApiSourceConfigSchema, SchemaFormatSchema };
3
+ export { ContractsrcSchema, DEFAULT_CONTRACTSRC, FolderConventionsSchema, FormatterConfigSchema, FormatterTypeSchema, OpenApiConfigSchema, OpenApiExportConfigSchema, OpenApiSourceConfigSchema, SchemaFormatSchema };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lssm/lib.contracts",
3
- "version": "1.43.0",
3
+ "version": "1.43.3",
4
4
  "scripts": {
5
5
  "publish:pkg": "bun publish --tolerate-republish --ignore-scripts --verbose",
6
6
  "publish:pkg:canary": "bun publish:pkg --tag canary",
@@ -16,8 +16,8 @@
16
16
  "test": "bun run"
17
17
  },
18
18
  "devDependencies": {
19
- "@lssm/tool.tsdown": "1.43.0",
20
- "@lssm/tool.typescript": "1.43.0",
19
+ "@lssm/tool.tsdown": "1.43.2",
20
+ "@lssm/tool.typescript": "1.43.2",
21
21
  "@types/express": "^5.0.3",
22
22
  "@types/turndown": "^5.0.6",
23
23
  "tsdown": "^0.18.3",
@@ -35,15 +35,15 @@
35
35
  "@elevenlabs/elevenlabs-js": "^2.27.0",
36
36
  "@google-cloud/secret-manager": "^6.1.1",
37
37
  "@google-cloud/storage": "^7.18.0",
38
- "@lssm/lib.logger": "1.43.0",
39
- "@lssm/lib.schema": "1.43.0",
38
+ "@lssm/lib.logger": "1.43.2",
39
+ "@lssm/lib.schema": "1.43.2",
40
40
  "@mistralai/mistralai": "^1.11.0",
41
41
  "@modelcontextprotocol/sdk": "^1.24.3",
42
42
  "@qdrant/js-client-rest": "^1.16.2",
43
43
  "googleapis": "^169.0.0",
44
44
  "mcp-handler": "^1.0.4",
45
45
  "postmark": "^4.0.4",
46
- "stripe": "^19.1.0",
46
+ "stripe": "^20.1.0",
47
47
  "turndown": "^7.2.2",
48
48
  "twilio": "^5.10.7",
49
49
  "zod": "^4.1.13"
@@ -100,7 +100,10 @@
100
100
  "./data-views/data-views": "./dist/data-views/data-views.js",
101
101
  "./data-views/docs/data-views.docblock": "./dist/data-views/docs/data-views.docblock.js",
102
102
  "./data-views/query-generator": "./dist/data-views/query-generator.js",
103
+ "./data-views/registry": "./dist/data-views/registry.js",
103
104
  "./data-views/runtime": "./dist/data-views/runtime.js",
105
+ "./data-views/spec": "./dist/data-views/spec.js",
106
+ "./data-views/types": "./dist/data-views/types.js",
104
107
  "./docs": "./dist/docs/index.js",
105
108
  "./docs/accessibility_wcag_compliance_specs.docblock": "./dist/docs/accessibility_wcag_compliance_specs.docblock.js",
106
109
  "./docs/meta.docs": "./dist/docs/meta.docs.js",
@@ -142,7 +145,11 @@
142
145
  "./experiments/evaluator": "./dist/experiments/evaluator.js",
143
146
  "./experiments/spec": "./dist/experiments/spec.js",
144
147
  "./experiments/spec-resolver": "./dist/experiments/spec-resolver.js",
145
- "./features": "./dist/features.js",
148
+ "./features": "./dist/features/index.js",
149
+ "./features/install": "./dist/features/install.js",
150
+ "./features/registry": "./dist/features/registry.js",
151
+ "./features/types": "./dist/features/types.js",
152
+ "./features/validation": "./dist/features/validation.js",
146
153
  "./forms": "./dist/forms/index.js",
147
154
  "./forms/docs/forms.docblock": "./dist/forms/docs/forms.docblock.js",
148
155
  "./forms/forms": "./dist/forms/forms.js",