@timeax/digital-service-engine 0.0.1 → 0.0.2

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.
@@ -49,6 +49,15 @@
49
49
  },
50
50
  "fallbacks": {
51
51
  "$ref": "#/definitions/ServiceFallback"
52
+ },
53
+ "name": {
54
+ "type": "string"
55
+ },
56
+ "notices": {
57
+ "type": "array",
58
+ "items": {
59
+ "$ref": "#/definitions/ServicePropsNotice"
60
+ }
52
61
  }
53
62
  },
54
63
  "required": [
@@ -272,13 +281,6 @@
272
281
  "required": {
273
282
  "type": "boolean"
274
283
  },
275
- "ui": {
276
- "type": "object",
277
- "additionalProperties": {
278
- "$ref": "#/definitions/Ui"
279
- },
280
- "description": "Host-defined prop names → typed UI nodes"
281
- },
282
284
  "defaults": {
283
285
  "type": "object",
284
286
  "additionalProperties": {},
@@ -430,13 +432,6 @@
430
432
  "required": {
431
433
  "type": "boolean"
432
434
  },
433
- "ui": {
434
- "type": "object",
435
- "additionalProperties": {
436
- "$ref": "#/definitions/Ui"
437
- },
438
- "description": "Host-defined prop names → typed UI nodes"
439
- },
440
435
  "defaults": {
441
436
  "type": "object",
442
437
  "additionalProperties": {},
@@ -536,236 +531,153 @@
536
531
  "utility"
537
532
  ]
538
533
  },
539
- "Ui": {
540
- "anyOf": [
541
- {
542
- "$ref": "#/definitions/UiString"
543
- },
544
- {
545
- "$ref": "#/definitions/UiNumber"
546
- },
547
- {
548
- "$ref": "#/definitions/UiBoolean"
549
- },
550
- {
551
- "$ref": "#/definitions/UiAnyOf"
552
- },
553
- {
554
- "$ref": "#/definitions/UiArray"
534
+ "ServiceFallback": {
535
+ "type": "object",
536
+ "properties": {
537
+ "nodes": {
538
+ "type": "object",
539
+ "additionalProperties": {
540
+ "type": "array",
541
+ "items": {
542
+ "$ref": "#/definitions/ServiceIdRef"
543
+ }
544
+ },
545
+ "description": "Node-scoped fallbacks: prefer these when that node’s primary service fails"
555
546
  },
556
- {
557
- "$ref": "#/definitions/UiObject"
547
+ "global": {
548
+ "type": "object",
549
+ "additionalProperties": {
550
+ "type": "array",
551
+ "items": {
552
+ "$ref": "#/definitions/ServiceIdRef"
553
+ }
554
+ },
555
+ "description": "Primary→fallback list used when no node-scoped entry is present"
558
556
  }
557
+ }
558
+ },
559
+ "ServiceIdRef": {
560
+ "type": [
561
+ "number",
562
+ "string"
559
563
  ]
560
564
  },
561
- "UiString": {
565
+ "ServicePropsNotice": {
562
566
  "type": "object",
563
567
  "properties": {
568
+ "id": {
569
+ "type": "string"
570
+ },
564
571
  "type": {
565
- "type": "string",
566
- "const": "string"
572
+ "$ref": "#/definitions/NoticeType"
567
573
  },
568
- "enum": {
569
- "type": "array",
570
- "items": {
571
- "type": "string"
572
- }
574
+ "kind": {
575
+ "$ref": "#/definitions/NoticeKind"
573
576
  },
574
- "minLength": {
575
- "type": "number"
577
+ "severity": {
578
+ "$ref": "#/definitions/NoticeSeverity"
576
579
  },
577
- "maxLength": {
578
- "type": "number"
580
+ "target": {
581
+ "$ref": "#/definitions/NoticeTarget"
579
582
  },
580
- "pattern": {
583
+ "title": {
581
584
  "type": "string"
582
585
  },
583
- "format": {
586
+ "description": {
584
587
  "type": "string"
585
- }
586
- },
587
- "required": [
588
- "type"
589
- ],
590
- "description": "string"
591
- },
592
- "UiNumber": {
593
- "type": "object",
594
- "properties": {
595
- "type": {
596
- "type": "string",
597
- "const": "number"
598
588
  },
599
- "minimum": {
600
- "type": "number"
589
+ "reason": {
590
+ "type": "string"
601
591
  },
602
- "maximum": {
603
- "type": "number"
592
+ "marked_at": {
593
+ "type": "string"
604
594
  },
605
- "multipleOf": {
606
- "type": "number"
607
- }
608
- },
609
- "required": [
610
- "type"
611
- ],
612
- "description": "number"
613
- },
614
- "UiBoolean": {
615
- "type": "object",
616
- "properties": {
617
- "type": {
618
- "type": "string",
619
- "const": "boolean"
620
- }
621
- },
622
- "required": [
623
- "type"
624
- ],
625
- "description": "boolean"
626
- },
627
- "UiAnyOf": {
628
- "type": "object",
629
- "properties": {
630
- "type": {
631
- "type": "string",
632
- "const": "anyOf"
595
+ "icon": {
596
+ "type": "string"
633
597
  },
634
- "multiple": {
635
- "type": "boolean"
598
+ "color": {
599
+ "type": "string"
636
600
  },
637
- "items": {
638
- "type": "array",
639
- "items": {
640
- "type": "object",
641
- "properties": {
642
- "type": {
643
- "type": "string",
644
- "enum": [
645
- "string",
646
- "number",
647
- "boolean"
648
- ]
649
- },
650
- "title": {
651
- "type": "string"
652
- },
653
- "description": {
654
- "type": "string"
655
- },
656
- "value": {
657
- "type": [
658
- "string",
659
- "number",
660
- "boolean"
661
- ]
662
- }
663
- },
664
- "required": [
665
- "type",
666
- "value"
667
- ]
668
- }
601
+ "meta": {
602
+ "type": "object",
603
+ "additionalProperties": {}
669
604
  }
670
605
  },
671
606
  "required": [
607
+ "id",
672
608
  "type",
673
- "items"
674
- ],
675
- "description": "enumerated choices"
609
+ "kind",
610
+ "severity",
611
+ "target",
612
+ "title"
613
+ ]
676
614
  },
677
- "UiArray": {
678
- "type": "object",
679
- "properties": {
680
- "type": {
681
- "type": "string",
682
- "const": "array"
683
- },
684
- "item": {
685
- "$ref": "#/definitions/Ui"
686
- },
687
- "items": {
688
- "type": "array",
689
- "items": {
690
- "$ref": "#/definitions/Ui"
691
- }
692
- },
693
- "minItems": {
694
- "type": "number"
695
- },
696
- "maxItems": {
697
- "type": "number"
698
- },
699
- "uniqueItems": {
700
- "type": "boolean"
701
- }
702
- },
703
- "required": [
704
- "type"
705
- ],
706
- "description": "arrays: homogeneous (item) or tuple (items)"
615
+ "NoticeType": {
616
+ "type": "string",
617
+ "enum": [
618
+ "public",
619
+ "private"
620
+ ]
707
621
  },
708
- "UiObject": {
709
- "type": "object",
710
- "properties": {
711
- "type": {
712
- "type": "string",
713
- "const": "object"
714
- },
715
- "fields": {
716
- "type": "object",
717
- "additionalProperties": {
718
- "$ref": "#/definitions/Ui"
719
- }
720
- },
721
- "required": {
722
- "type": "array",
723
- "items": {
724
- "type": "string"
725
- }
726
- },
727
- "order": {
728
- "type": "array",
729
- "items": {
730
- "type": "string"
731
- }
732
- }
733
- },
734
- "required": [
735
- "type",
736
- "fields"
622
+ "NoticeKind": {
623
+ "type": "string",
624
+ "enum": [
625
+ "label",
626
+ "warning",
627
+ "deprecation",
628
+ "compat",
629
+ "migration",
630
+ "policy"
737
631
  ],
738
- "description": "objects: nested props"
632
+ "description": "“label” is lightweight + UI-friendly (best, sale, hot, etc). Others remain semantic / governance oriented."
739
633
  },
740
- "ServiceFallback": {
741
- "type": "object",
742
- "properties": {
743
- "nodes": {
634
+ "NoticeSeverity": {
635
+ "type": "string",
636
+ "enum": [
637
+ "info",
638
+ "warning",
639
+ "error"
640
+ ]
641
+ },
642
+ "NoticeTarget": {
643
+ "anyOf": [
644
+ {
744
645
  "type": "object",
745
- "additionalProperties": {
746
- "type": "array",
747
- "items": {
748
- "$ref": "#/definitions/ServiceIdRef"
646
+ "properties": {
647
+ "scope": {
648
+ "type": "string",
649
+ "const": "global"
749
650
  }
750
651
  },
751
- "description": "Node-scoped fallbacks: prefer these when that node’s primary service fails"
652
+ "required": [
653
+ "scope"
654
+ ]
752
655
  },
753
- "global": {
656
+ {
754
657
  "type": "object",
755
- "additionalProperties": {
756
- "type": "array",
757
- "items": {
758
- "$ref": "#/definitions/ServiceIdRef"
658
+ "properties": {
659
+ "scope": {
660
+ "type": "string",
661
+ "const": "node"
662
+ },
663
+ "node_kind": {
664
+ "type": "string",
665
+ "enum": [
666
+ "tag",
667
+ "field",
668
+ "option"
669
+ ]
670
+ },
671
+ "node_id": {
672
+ "type": "string"
759
673
  }
760
674
  },
761
- "description": "Primary→fallback list used when no node-scoped entry is present"
675
+ "required": [
676
+ "scope",
677
+ "node_kind",
678
+ "node_id"
679
+ ]
762
680
  }
763
- }
764
- },
765
- "ServiceIdRef": {
766
- "type": [
767
- "number",
768
- "string"
769
681
  ]
770
682
  }
771
683
  }