@almadar/core 10.37.0 → 10.38.0
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/{builders-CBdyt_gd.d.ts → builders-BoyWDFfH.d.ts} +89 -88
- package/dist/builders.d.ts +4 -3
- package/dist/builders.js +20 -16
- package/dist/builders.js.map +1 -1
- package/dist/{effect-Cd6ibbZc.d.ts → effect-5kg4MCeB.d.ts} +33 -1561
- package/dist/entity-CVylqnAf.d.ts +1559 -0
- package/dist/factory/index.d.ts +6 -5
- package/dist/factory/index.js +7 -0
- package/dist/factory/index.js.map +1 -1
- package/dist/factory-runtime/index.d.ts +4 -3
- package/dist/factory-runtime/index.js +20 -16
- package/dist/factory-runtime/index.js.map +1 -1
- package/dist/index.d.ts +8 -7
- package/dist/index.js +461 -21
- package/dist/index.js.map +1 -1
- package/dist/mock/index.d.ts +119 -0
- package/dist/mock/index.js +695 -0
- package/dist/mock/index.js.map +1 -0
- package/dist/patterns/component-mapping.json +16 -1
- package/dist/patterns/event-contracts.json +1 -1
- package/dist/patterns/index.d.ts +897 -6
- package/dist/patterns/index.js +396 -4
- package/dist/patterns/index.js.map +1 -1
- package/dist/patterns/integrators-registry.json +21 -1
- package/dist/patterns/patterns-registry.json +355 -1
- package/dist/patterns/registry.json +355 -1
- package/dist/patterns/services-registry.json +104 -0
- package/dist/{trait-CEO7o8Ne.d.ts → trait-Bnd3i_2G.d.ts} +38 -22
- package/dist/types/index.d.ts +11 -9
- package/dist/types/index.js +61 -17
- package/dist/types/index.js.map +1 -1
- package/dist/{types-1YGQKdbm.d.ts → types-BE598tvP.d.ts} +3 -3
- package/package.json +6 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": "1.0.0",
|
|
3
|
-
"exportedAt": "2026-07-
|
|
3
|
+
"exportedAt": "2026-07-26T06:18:13.545Z",
|
|
4
4
|
"patterns": {
|
|
5
5
|
"entity-table": {
|
|
6
6
|
"type": "entity-table",
|
|
@@ -40319,6 +40319,360 @@
|
|
|
40319
40319
|
"description": "className prop"
|
|
40320
40320
|
}
|
|
40321
40321
|
}
|
|
40322
|
+
},
|
|
40323
|
+
"import-preview-tree": {
|
|
40324
|
+
"type": "import-preview-tree",
|
|
40325
|
+
"category": "component",
|
|
40326
|
+
"tier": "molecules",
|
|
40327
|
+
"family": "core",
|
|
40328
|
+
"description": "ImportPreviewTree component",
|
|
40329
|
+
"suggestedFor": [
|
|
40330
|
+
"import",
|
|
40331
|
+
"preview",
|
|
40332
|
+
"tree",
|
|
40333
|
+
"import preview tree"
|
|
40334
|
+
],
|
|
40335
|
+
"typicalSize": "medium",
|
|
40336
|
+
"propsSchema": {
|
|
40337
|
+
"units": {
|
|
40338
|
+
"types": [
|
|
40339
|
+
"array"
|
|
40340
|
+
],
|
|
40341
|
+
"description": "Staged units to preview",
|
|
40342
|
+
"required": true,
|
|
40343
|
+
"items": {
|
|
40344
|
+
"types": [
|
|
40345
|
+
"object"
|
|
40346
|
+
],
|
|
40347
|
+
"properties": {
|
|
40348
|
+
"ref": {
|
|
40349
|
+
"types": [
|
|
40350
|
+
"string"
|
|
40351
|
+
]
|
|
40352
|
+
},
|
|
40353
|
+
"targetEntity": {
|
|
40354
|
+
"types": [
|
|
40355
|
+
"string"
|
|
40356
|
+
]
|
|
40357
|
+
},
|
|
40358
|
+
"fields": {
|
|
40359
|
+
"types": [
|
|
40360
|
+
"object"
|
|
40361
|
+
],
|
|
40362
|
+
"mapValue": {
|
|
40363
|
+
"types": [
|
|
40364
|
+
"object"
|
|
40365
|
+
],
|
|
40366
|
+
"freeform": true
|
|
40367
|
+
}
|
|
40368
|
+
},
|
|
40369
|
+
"parentRef": {
|
|
40370
|
+
"types": [
|
|
40371
|
+
"string"
|
|
40372
|
+
]
|
|
40373
|
+
}
|
|
40374
|
+
},
|
|
40375
|
+
"required": [
|
|
40376
|
+
"ref",
|
|
40377
|
+
"targetEntity",
|
|
40378
|
+
"fields"
|
|
40379
|
+
]
|
|
40380
|
+
}
|
|
40381
|
+
},
|
|
40382
|
+
"skipped": {
|
|
40383
|
+
"types": [
|
|
40384
|
+
"array"
|
|
40385
|
+
],
|
|
40386
|
+
"description": "Elements skipped during extraction, with reasons",
|
|
40387
|
+
"items": {
|
|
40388
|
+
"types": [
|
|
40389
|
+
"object"
|
|
40390
|
+
],
|
|
40391
|
+
"properties": {
|
|
40392
|
+
"ref": {
|
|
40393
|
+
"types": [
|
|
40394
|
+
"string"
|
|
40395
|
+
]
|
|
40396
|
+
},
|
|
40397
|
+
"reason": {
|
|
40398
|
+
"types": [
|
|
40399
|
+
"string"
|
|
40400
|
+
]
|
|
40401
|
+
}
|
|
40402
|
+
},
|
|
40403
|
+
"required": [
|
|
40404
|
+
"ref",
|
|
40405
|
+
"reason"
|
|
40406
|
+
]
|
|
40407
|
+
},
|
|
40408
|
+
"default": []
|
|
40409
|
+
},
|
|
40410
|
+
"entityDisplay": {
|
|
40411
|
+
"types": [
|
|
40412
|
+
"object"
|
|
40413
|
+
],
|
|
40414
|
+
"description": "Entity name → display labels; falls back to the entity name",
|
|
40415
|
+
"required": true,
|
|
40416
|
+
"mapValue": {
|
|
40417
|
+
"types": [
|
|
40418
|
+
"object"
|
|
40419
|
+
],
|
|
40420
|
+
"properties": {
|
|
40421
|
+
"singular": {
|
|
40422
|
+
"types": [
|
|
40423
|
+
"string"
|
|
40424
|
+
]
|
|
40425
|
+
},
|
|
40426
|
+
"plural": {
|
|
40427
|
+
"types": [
|
|
40428
|
+
"string"
|
|
40429
|
+
]
|
|
40430
|
+
}
|
|
40431
|
+
},
|
|
40432
|
+
"required": [
|
|
40433
|
+
"singular",
|
|
40434
|
+
"plural"
|
|
40435
|
+
]
|
|
40436
|
+
}
|
|
40437
|
+
},
|
|
40438
|
+
"onConfirm": {
|
|
40439
|
+
"types": [
|
|
40440
|
+
"function"
|
|
40441
|
+
],
|
|
40442
|
+
"description": "Called when the user confirms the staged import",
|
|
40443
|
+
"kind": "callback",
|
|
40444
|
+
"callbackArgs": []
|
|
40445
|
+
},
|
|
40446
|
+
"onCancel": {
|
|
40447
|
+
"types": [
|
|
40448
|
+
"function"
|
|
40449
|
+
],
|
|
40450
|
+
"description": "Called when the user cancels the staged import",
|
|
40451
|
+
"kind": "callback",
|
|
40452
|
+
"callbackArgs": []
|
|
40453
|
+
},
|
|
40454
|
+
"confirmLabel": {
|
|
40455
|
+
"types": [
|
|
40456
|
+
"string"
|
|
40457
|
+
],
|
|
40458
|
+
"description": "Confirm button label",
|
|
40459
|
+
"default": "Confirm import"
|
|
40460
|
+
},
|
|
40461
|
+
"cancelLabel": {
|
|
40462
|
+
"types": [
|
|
40463
|
+
"string"
|
|
40464
|
+
],
|
|
40465
|
+
"description": "Cancel button label",
|
|
40466
|
+
"default": "Cancel"
|
|
40467
|
+
},
|
|
40468
|
+
"indent": {
|
|
40469
|
+
"types": [
|
|
40470
|
+
"number"
|
|
40471
|
+
],
|
|
40472
|
+
"description": "Indent per tree depth in px (default: 16)",
|
|
40473
|
+
"default": 16
|
|
40474
|
+
},
|
|
40475
|
+
"className": {
|
|
40476
|
+
"types": [
|
|
40477
|
+
"string"
|
|
40478
|
+
],
|
|
40479
|
+
"description": "Additional CSS classes"
|
|
40480
|
+
}
|
|
40481
|
+
}
|
|
40482
|
+
},
|
|
40483
|
+
"import-progress": {
|
|
40484
|
+
"type": "import-progress",
|
|
40485
|
+
"category": "component",
|
|
40486
|
+
"tier": "molecules",
|
|
40487
|
+
"family": "core",
|
|
40488
|
+
"description": "ImportProgress component",
|
|
40489
|
+
"suggestedFor": [
|
|
40490
|
+
"import",
|
|
40491
|
+
"progress",
|
|
40492
|
+
"import progress"
|
|
40493
|
+
],
|
|
40494
|
+
"typicalSize": "medium",
|
|
40495
|
+
"propsSchema": {
|
|
40496
|
+
"step": {
|
|
40497
|
+
"types": [
|
|
40498
|
+
"string"
|
|
40499
|
+
],
|
|
40500
|
+
"description": "Current lifecycle step",
|
|
40501
|
+
"required": true,
|
|
40502
|
+
"enumValues": [
|
|
40503
|
+
"fetching",
|
|
40504
|
+
"mapping",
|
|
40505
|
+
"reviewing",
|
|
40506
|
+
"committing",
|
|
40507
|
+
"done",
|
|
40508
|
+
"failed"
|
|
40509
|
+
]
|
|
40510
|
+
},
|
|
40511
|
+
"counts": {
|
|
40512
|
+
"types": [
|
|
40513
|
+
"object"
|
|
40514
|
+
],
|
|
40515
|
+
"description": "Unit counts",
|
|
40516
|
+
"properties": {
|
|
40517
|
+
"staged": {
|
|
40518
|
+
"types": [
|
|
40519
|
+
"number"
|
|
40520
|
+
]
|
|
40521
|
+
},
|
|
40522
|
+
"committed": {
|
|
40523
|
+
"types": [
|
|
40524
|
+
"number"
|
|
40525
|
+
]
|
|
40526
|
+
},
|
|
40527
|
+
"failed": {
|
|
40528
|
+
"types": [
|
|
40529
|
+
"number"
|
|
40530
|
+
]
|
|
40531
|
+
}
|
|
40532
|
+
}
|
|
40533
|
+
},
|
|
40534
|
+
"labels": {
|
|
40535
|
+
"types": [
|
|
40536
|
+
"object"
|
|
40537
|
+
],
|
|
40538
|
+
"description": "Step label overrides",
|
|
40539
|
+
"mapValue": {
|
|
40540
|
+
"types": [
|
|
40541
|
+
"string"
|
|
40542
|
+
]
|
|
40543
|
+
}
|
|
40544
|
+
},
|
|
40545
|
+
"className": {
|
|
40546
|
+
"types": [
|
|
40547
|
+
"string"
|
|
40548
|
+
],
|
|
40549
|
+
"description": "Additional CSS classes"
|
|
40550
|
+
}
|
|
40551
|
+
}
|
|
40552
|
+
},
|
|
40553
|
+
"import-source-picker": {
|
|
40554
|
+
"type": "import-source-picker",
|
|
40555
|
+
"category": "component",
|
|
40556
|
+
"tier": "molecules",
|
|
40557
|
+
"family": "core",
|
|
40558
|
+
"description": "ImportSourcePicker component",
|
|
40559
|
+
"suggestedFor": [
|
|
40560
|
+
"import",
|
|
40561
|
+
"source",
|
|
40562
|
+
"picker",
|
|
40563
|
+
"import source picker"
|
|
40564
|
+
],
|
|
40565
|
+
"typicalSize": "medium",
|
|
40566
|
+
"propsSchema": {
|
|
40567
|
+
"sources": {
|
|
40568
|
+
"types": [
|
|
40569
|
+
"array"
|
|
40570
|
+
],
|
|
40571
|
+
"description": "Source options to render",
|
|
40572
|
+
"required": true,
|
|
40573
|
+
"items": {
|
|
40574
|
+
"types": [
|
|
40575
|
+
"object"
|
|
40576
|
+
],
|
|
40577
|
+
"properties": {
|
|
40578
|
+
"id": {
|
|
40579
|
+
"types": [
|
|
40580
|
+
"string"
|
|
40581
|
+
]
|
|
40582
|
+
},
|
|
40583
|
+
"label": {
|
|
40584
|
+
"types": [
|
|
40585
|
+
"string"
|
|
40586
|
+
]
|
|
40587
|
+
},
|
|
40588
|
+
"description": {
|
|
40589
|
+
"types": [
|
|
40590
|
+
"string"
|
|
40591
|
+
]
|
|
40592
|
+
},
|
|
40593
|
+
"icon": {
|
|
40594
|
+
"types": [
|
|
40595
|
+
"icon",
|
|
40596
|
+
"string"
|
|
40597
|
+
]
|
|
40598
|
+
},
|
|
40599
|
+
"kind": {
|
|
40600
|
+
"types": [
|
|
40601
|
+
"string"
|
|
40602
|
+
],
|
|
40603
|
+
"enumValues": [
|
|
40604
|
+
"action",
|
|
40605
|
+
"file"
|
|
40606
|
+
]
|
|
40607
|
+
},
|
|
40608
|
+
"accept": {
|
|
40609
|
+
"types": [
|
|
40610
|
+
"string"
|
|
40611
|
+
]
|
|
40612
|
+
},
|
|
40613
|
+
"multiple": {
|
|
40614
|
+
"types": [
|
|
40615
|
+
"boolean"
|
|
40616
|
+
]
|
|
40617
|
+
},
|
|
40618
|
+
"disabled": {
|
|
40619
|
+
"types": [
|
|
40620
|
+
"boolean"
|
|
40621
|
+
]
|
|
40622
|
+
}
|
|
40623
|
+
},
|
|
40624
|
+
"required": [
|
|
40625
|
+
"id",
|
|
40626
|
+
"label"
|
|
40627
|
+
]
|
|
40628
|
+
}
|
|
40629
|
+
},
|
|
40630
|
+
"onSelect": {
|
|
40631
|
+
"types": [
|
|
40632
|
+
"function"
|
|
40633
|
+
],
|
|
40634
|
+
"description": "Called with the source id when an 'action' option is picked",
|
|
40635
|
+
"kind": "callback",
|
|
40636
|
+
"callbackArgs": [
|
|
40637
|
+
{
|
|
40638
|
+
"name": "sourceId",
|
|
40639
|
+
"type": "string"
|
|
40640
|
+
}
|
|
40641
|
+
]
|
|
40642
|
+
},
|
|
40643
|
+
"onFilesSelected": {
|
|
40644
|
+
"types": [
|
|
40645
|
+
"function"
|
|
40646
|
+
],
|
|
40647
|
+
"description": "Called with the chosen files when a 'file' option resolves",
|
|
40648
|
+
"kind": "callback",
|
|
40649
|
+
"callbackArgs": [
|
|
40650
|
+
{
|
|
40651
|
+
"name": "files",
|
|
40652
|
+
"type": "array"
|
|
40653
|
+
}
|
|
40654
|
+
],
|
|
40655
|
+
"nonEmittable": true
|
|
40656
|
+
},
|
|
40657
|
+
"title": {
|
|
40658
|
+
"types": [
|
|
40659
|
+
"string"
|
|
40660
|
+
],
|
|
40661
|
+
"description": "Optional heading above the options"
|
|
40662
|
+
},
|
|
40663
|
+
"moreSources": {
|
|
40664
|
+
"types": [
|
|
40665
|
+
"node"
|
|
40666
|
+
],
|
|
40667
|
+
"description": "Generic slot for additional sources rendered below the options"
|
|
40668
|
+
},
|
|
40669
|
+
"className": {
|
|
40670
|
+
"types": [
|
|
40671
|
+
"string"
|
|
40672
|
+
],
|
|
40673
|
+
"description": "Additional CSS classes"
|
|
40674
|
+
}
|
|
40675
|
+
}
|
|
40322
40676
|
}
|
|
40323
40677
|
},
|
|
40324
40678
|
"categories": [
|
|
@@ -623,6 +623,73 @@
|
|
|
623
623
|
],
|
|
624
624
|
"credentials": []
|
|
625
625
|
},
|
|
626
|
+
"migration": {
|
|
627
|
+
"name": "migration",
|
|
628
|
+
"description": "Migration service — import external data (notes, docs, references) into the system",
|
|
629
|
+
"category": "infrastructure",
|
|
630
|
+
"package": "@almadar-io/migration",
|
|
631
|
+
"actions": [
|
|
632
|
+
{
|
|
633
|
+
"name": "listDocuments",
|
|
634
|
+
"description": "List the documents available from an import source.",
|
|
635
|
+
"params": [
|
|
636
|
+
{
|
|
637
|
+
"name": "source",
|
|
638
|
+
"type": "ServiceParams",
|
|
639
|
+
"required": true,
|
|
640
|
+
"description": "ImportSource descriptor (kind + source-specific config)"
|
|
641
|
+
}
|
|
642
|
+
],
|
|
643
|
+
"responseShape": {
|
|
644
|
+
"documents": "array"
|
|
645
|
+
}
|
|
646
|
+
},
|
|
647
|
+
{
|
|
648
|
+
"name": "fetchDocument",
|
|
649
|
+
"description": "Fetch one document's content from an import source.",
|
|
650
|
+
"params": [
|
|
651
|
+
{
|
|
652
|
+
"name": "source",
|
|
653
|
+
"type": "ServiceParams",
|
|
654
|
+
"required": true,
|
|
655
|
+
"description": "ImportSource descriptor (kind + source-specific config)"
|
|
656
|
+
},
|
|
657
|
+
{
|
|
658
|
+
"name": "documentId",
|
|
659
|
+
"type": "string",
|
|
660
|
+
"required": true,
|
|
661
|
+
"description": ""
|
|
662
|
+
}
|
|
663
|
+
],
|
|
664
|
+
"responseShape": {
|
|
665
|
+
"document": "object"
|
|
666
|
+
}
|
|
667
|
+
},
|
|
668
|
+
{
|
|
669
|
+
"name": "commit",
|
|
670
|
+
"description": "Commit staged import units through the host's sink.",
|
|
671
|
+
"params": [
|
|
672
|
+
{
|
|
673
|
+
"name": "jobId",
|
|
674
|
+
"type": "string",
|
|
675
|
+
"required": true,
|
|
676
|
+
"description": ""
|
|
677
|
+
},
|
|
678
|
+
{
|
|
679
|
+
"name": "units",
|
|
680
|
+
"type": "array",
|
|
681
|
+
"required": true,
|
|
682
|
+
"description": "ImportUnit[] staged for commit"
|
|
683
|
+
}
|
|
684
|
+
],
|
|
685
|
+
"responseShape": {
|
|
686
|
+
"committed": "number",
|
|
687
|
+
"failed": "array"
|
|
688
|
+
}
|
|
689
|
+
}
|
|
690
|
+
],
|
|
691
|
+
"credentials": []
|
|
692
|
+
},
|
|
626
693
|
"skills": {
|
|
627
694
|
"name": "skills",
|
|
628
695
|
"description": "Skills service — AI-powered schema generation",
|
|
@@ -1675,6 +1742,43 @@
|
|
|
1675
1742
|
}
|
|
1676
1743
|
]
|
|
1677
1744
|
},
|
|
1745
|
+
"database": {
|
|
1746
|
+
"name": "database",
|
|
1747
|
+
"description": "Database integration — read-only SQL queries over external connections",
|
|
1748
|
+
"category": "infrastructure",
|
|
1749
|
+
"package": "@almadar/integrations",
|
|
1750
|
+
"actions": [
|
|
1751
|
+
{
|
|
1752
|
+
"name": "query",
|
|
1753
|
+
"description": "",
|
|
1754
|
+
"params": [
|
|
1755
|
+
{
|
|
1756
|
+
"name": "connectionRef",
|
|
1757
|
+
"type": "string",
|
|
1758
|
+
"required": true,
|
|
1759
|
+
"description": ""
|
|
1760
|
+
},
|
|
1761
|
+
{
|
|
1762
|
+
"name": "sql",
|
|
1763
|
+
"type": "string",
|
|
1764
|
+
"required": true,
|
|
1765
|
+
"description": ""
|
|
1766
|
+
},
|
|
1767
|
+
{
|
|
1768
|
+
"name": "params",
|
|
1769
|
+
"type": "DatabaseQueryParamValue[]",
|
|
1770
|
+
"required": false,
|
|
1771
|
+
"description": ""
|
|
1772
|
+
}
|
|
1773
|
+
],
|
|
1774
|
+
"responseShape": {
|
|
1775
|
+
"rows": "DatabaseRow[]",
|
|
1776
|
+
"rowCount": "number"
|
|
1777
|
+
}
|
|
1778
|
+
}
|
|
1779
|
+
],
|
|
1780
|
+
"credentials": []
|
|
1781
|
+
},
|
|
1678
1782
|
"storage": {
|
|
1679
1783
|
"name": "storage",
|
|
1680
1784
|
"description": "Object storage — upload, download, delete, list files",
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { c as EventId, T as TraitId, O as OrbitalId, d as EntityId, P as PageId, e as Entity, a as EntityField } from './entity-CVylqnAf.js';
|
|
2
2
|
import { E as Expression, S as SExpr } from './expression-DpAj1RzP.js';
|
|
3
3
|
import { z } from 'zod';
|
|
4
|
+
import { E as Effect, A as AnyPatternConfig } from './effect-5kg4MCeB.js';
|
|
4
5
|
|
|
5
6
|
/**
|
|
6
7
|
* Represents a state in the state machine
|
|
@@ -496,6 +497,21 @@ declare const REFERENCE_CONFIG_TYPES: readonly ["entity", "trait", "event"];
|
|
|
496
497
|
type ReferenceConfigType = (typeof REFERENCE_CONFIG_TYPES)[number];
|
|
497
498
|
/** True when a config field's `type` marks its value as an entity/trait/event reference. */
|
|
498
499
|
declare function isReferenceConfigType(type: string): type is ReferenceConfigType;
|
|
500
|
+
/**
|
|
501
|
+
* The secret config-field types. A config knob typed `secret` holds a
|
|
502
|
+
* CREDENTIAL (or a reference to one): it must never flow into spec.json,
|
|
503
|
+
* traces, plan snapshots, or factory bakes in cleartext — consumers mask it
|
|
504
|
+
* in UI (password-rendered input) and exclude it from serialization. The
|
|
505
|
+
* `.lolo` language does not yet accept `secret` as a config-field type
|
|
506
|
+
* (orbital-lolo parser gate); this contract is the single deterministic
|
|
507
|
+
* source downstream consumers (studio, verifiers, rabit bakes) key on once
|
|
508
|
+
* it lands — until then hosts use a `string` knob plus a password-rendered
|
|
509
|
+
* `ui-input` (the std-service-custom-bearer pattern).
|
|
510
|
+
*/
|
|
511
|
+
declare const SECRET_CONFIG_TYPES: readonly ["secret"];
|
|
512
|
+
type SecretConfigType = (typeof SECRET_CONFIG_TYPES)[number];
|
|
513
|
+
/** True when a config field's `type` marks its value as a credential to be masked. */
|
|
514
|
+
declare function isSecretConfigType(type: string): type is SecretConfigType;
|
|
499
515
|
type ConfigFieldDeclaration = {
|
|
500
516
|
readonly type: string;
|
|
501
517
|
readonly default?: TraitConfigValue;
|
|
@@ -546,7 +562,7 @@ declare const TraitCategorySchema: z.ZodEnum<["lifecycle", "temporal", "validati
|
|
|
546
562
|
/**
|
|
547
563
|
* Field types for trait data entities
|
|
548
564
|
*/
|
|
549
|
-
type TraitFieldType = 'string' | 'number' | 'boolean' | 'date' | 'array' | 'object' | 'timestamp' | 'datetime' | 'enum';
|
|
565
|
+
type TraitFieldType = 'string' | 'number' | 'boolean' | 'date' | 'array' | 'object' | 'timestamp' | 'datetime' | 'enum' | 'email' | 'url' | 'phone' | 'uuid' | 'image';
|
|
550
566
|
/**
|
|
551
567
|
* Simplified field for trait data entities
|
|
552
568
|
*/
|
|
@@ -1014,19 +1030,19 @@ declare const TraitEventListenerSchema: z.ZodObject<{
|
|
|
1014
1030
|
*/
|
|
1015
1031
|
type RequiredField = {
|
|
1016
1032
|
name: string;
|
|
1017
|
-
type:
|
|
1033
|
+
type: TraitFieldType;
|
|
1018
1034
|
description?: string;
|
|
1019
1035
|
};
|
|
1020
1036
|
declare const RequiredFieldSchema: z.ZodObject<{
|
|
1021
1037
|
name: z.ZodString;
|
|
1022
|
-
type: z.ZodEnum<["string", "number", "boolean", "date", "array", "object", "timestamp", "datetime", "enum"]>;
|
|
1038
|
+
type: z.ZodEnum<["string", "number", "boolean", "date", "array", "object", "timestamp", "datetime", "enum", "email", "url", "phone", "uuid", "image"]>;
|
|
1023
1039
|
description: z.ZodOptional<z.ZodString>;
|
|
1024
1040
|
}, "strip", z.ZodTypeAny, {
|
|
1025
|
-
type: "string" | "number" | "boolean" | "object" | "date" | "array" | "timestamp" | "datetime" | "enum";
|
|
1041
|
+
type: "string" | "number" | "boolean" | "object" | "date" | "array" | "timestamp" | "datetime" | "email" | "url" | "phone" | "uuid" | "image" | "enum";
|
|
1026
1042
|
name: string;
|
|
1027
1043
|
description?: string | undefined;
|
|
1028
1044
|
}, {
|
|
1029
|
-
type: "string" | "number" | "boolean" | "object" | "date" | "array" | "timestamp" | "datetime" | "enum";
|
|
1045
|
+
type: "string" | "number" | "boolean" | "object" | "date" | "array" | "timestamp" | "datetime" | "email" | "url" | "phone" | "uuid" | "image" | "enum";
|
|
1030
1046
|
name: string;
|
|
1031
1047
|
description?: string | undefined;
|
|
1032
1048
|
}>;
|
|
@@ -1436,14 +1452,14 @@ declare const TraitSchema: z.ZodObject<{
|
|
|
1436
1452
|
traitEmbedIds: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodEffects<z.ZodString, TraitId, string>>>;
|
|
1437
1453
|
requiredFields: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1438
1454
|
name: z.ZodString;
|
|
1439
|
-
type: z.ZodEnum<["string", "number", "boolean", "date", "array", "object", "timestamp", "datetime", "enum"]>;
|
|
1455
|
+
type: z.ZodEnum<["string", "number", "boolean", "date", "array", "object", "timestamp", "datetime", "enum", "email", "url", "phone", "uuid", "image"]>;
|
|
1440
1456
|
description: z.ZodOptional<z.ZodString>;
|
|
1441
1457
|
}, "strip", z.ZodTypeAny, {
|
|
1442
|
-
type: "string" | "number" | "boolean" | "object" | "date" | "array" | "timestamp" | "datetime" | "enum";
|
|
1458
|
+
type: "string" | "number" | "boolean" | "object" | "date" | "array" | "timestamp" | "datetime" | "email" | "url" | "phone" | "uuid" | "image" | "enum";
|
|
1443
1459
|
name: string;
|
|
1444
1460
|
description?: string | undefined;
|
|
1445
1461
|
}, {
|
|
1446
|
-
type: "string" | "number" | "boolean" | "object" | "date" | "array" | "timestamp" | "datetime" | "enum";
|
|
1462
|
+
type: "string" | "number" | "boolean" | "object" | "date" | "array" | "timestamp" | "datetime" | "email" | "url" | "phone" | "uuid" | "image" | "enum";
|
|
1447
1463
|
name: string;
|
|
1448
1464
|
description?: string | undefined;
|
|
1449
1465
|
}>, "many">>;
|
|
@@ -2004,7 +2020,7 @@ declare const TraitSchema: z.ZodObject<{
|
|
|
2004
2020
|
entityRefIds?: Record<string, EntityId> | undefined;
|
|
2005
2021
|
traitEmbedIds?: Record<string, TraitId> | undefined;
|
|
2006
2022
|
requiredFields?: {
|
|
2007
|
-
type: "string" | "number" | "boolean" | "object" | "date" | "array" | "timestamp" | "datetime" | "enum";
|
|
2023
|
+
type: "string" | "number" | "boolean" | "object" | "date" | "array" | "timestamp" | "datetime" | "email" | "url" | "phone" | "uuid" | "image" | "enum";
|
|
2008
2024
|
name: string;
|
|
2009
2025
|
description?: string | undefined;
|
|
2010
2026
|
}[] | undefined;
|
|
@@ -2150,7 +2166,7 @@ declare const TraitSchema: z.ZodObject<{
|
|
|
2150
2166
|
entityRefIds?: Record<string, string> | undefined;
|
|
2151
2167
|
traitEmbedIds?: Record<string, string> | undefined;
|
|
2152
2168
|
requiredFields?: {
|
|
2153
|
-
type: "string" | "number" | "boolean" | "object" | "date" | "array" | "timestamp" | "datetime" | "enum";
|
|
2169
|
+
type: "string" | "number" | "boolean" | "object" | "date" | "array" | "timestamp" | "datetime" | "email" | "url" | "phone" | "uuid" | "image" | "enum";
|
|
2154
2170
|
name: string;
|
|
2155
2171
|
description?: string | undefined;
|
|
2156
2172
|
}[] | undefined;
|
|
@@ -2240,14 +2256,14 @@ declare const TraitRefSchema: z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
|
2240
2256
|
traitEmbedIds: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodEffects<z.ZodString, TraitId, string>>>;
|
|
2241
2257
|
requiredFields: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2242
2258
|
name: z.ZodString;
|
|
2243
|
-
type: z.ZodEnum<["string", "number", "boolean", "date", "array", "object", "timestamp", "datetime", "enum"]>;
|
|
2259
|
+
type: z.ZodEnum<["string", "number", "boolean", "date", "array", "object", "timestamp", "datetime", "enum", "email", "url", "phone", "uuid", "image"]>;
|
|
2244
2260
|
description: z.ZodOptional<z.ZodString>;
|
|
2245
2261
|
}, "strip", z.ZodTypeAny, {
|
|
2246
|
-
type: "string" | "number" | "boolean" | "object" | "date" | "array" | "timestamp" | "datetime" | "enum";
|
|
2262
|
+
type: "string" | "number" | "boolean" | "object" | "date" | "array" | "timestamp" | "datetime" | "email" | "url" | "phone" | "uuid" | "image" | "enum";
|
|
2247
2263
|
name: string;
|
|
2248
2264
|
description?: string | undefined;
|
|
2249
2265
|
}, {
|
|
2250
|
-
type: "string" | "number" | "boolean" | "object" | "date" | "array" | "timestamp" | "datetime" | "enum";
|
|
2266
|
+
type: "string" | "number" | "boolean" | "object" | "date" | "array" | "timestamp" | "datetime" | "email" | "url" | "phone" | "uuid" | "image" | "enum";
|
|
2251
2267
|
name: string;
|
|
2252
2268
|
description?: string | undefined;
|
|
2253
2269
|
}>, "many">>;
|
|
@@ -2808,7 +2824,7 @@ declare const TraitRefSchema: z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
|
2808
2824
|
entityRefIds?: Record<string, EntityId> | undefined;
|
|
2809
2825
|
traitEmbedIds?: Record<string, TraitId> | undefined;
|
|
2810
2826
|
requiredFields?: {
|
|
2811
|
-
type: "string" | "number" | "boolean" | "object" | "date" | "array" | "timestamp" | "datetime" | "enum";
|
|
2827
|
+
type: "string" | "number" | "boolean" | "object" | "date" | "array" | "timestamp" | "datetime" | "email" | "url" | "phone" | "uuid" | "image" | "enum";
|
|
2812
2828
|
name: string;
|
|
2813
2829
|
description?: string | undefined;
|
|
2814
2830
|
}[] | undefined;
|
|
@@ -2954,7 +2970,7 @@ declare const TraitRefSchema: z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
|
2954
2970
|
entityRefIds?: Record<string, string> | undefined;
|
|
2955
2971
|
traitEmbedIds?: Record<string, string> | undefined;
|
|
2956
2972
|
requiredFields?: {
|
|
2957
|
-
type: "string" | "number" | "boolean" | "object" | "date" | "array" | "timestamp" | "datetime" | "enum";
|
|
2973
|
+
type: "string" | "number" | "boolean" | "object" | "date" | "array" | "timestamp" | "datetime" | "email" | "url" | "phone" | "uuid" | "image" | "enum";
|
|
2958
2974
|
name: string;
|
|
2959
2975
|
description?: string | undefined;
|
|
2960
2976
|
}[] | undefined;
|
|
@@ -3114,14 +3130,14 @@ declare const OrbitalTraitRefSchema: z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
|
3114
3130
|
traitEmbedIds: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodEffects<z.ZodString, TraitId, string>>>;
|
|
3115
3131
|
requiredFields: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
3116
3132
|
name: z.ZodString;
|
|
3117
|
-
type: z.ZodEnum<["string", "number", "boolean", "date", "array", "object", "timestamp", "datetime", "enum"]>;
|
|
3133
|
+
type: z.ZodEnum<["string", "number", "boolean", "date", "array", "object", "timestamp", "datetime", "enum", "email", "url", "phone", "uuid", "image"]>;
|
|
3118
3134
|
description: z.ZodOptional<z.ZodString>;
|
|
3119
3135
|
}, "strip", z.ZodTypeAny, {
|
|
3120
|
-
type: "string" | "number" | "boolean" | "object" | "date" | "array" | "timestamp" | "datetime" | "enum";
|
|
3136
|
+
type: "string" | "number" | "boolean" | "object" | "date" | "array" | "timestamp" | "datetime" | "email" | "url" | "phone" | "uuid" | "image" | "enum";
|
|
3121
3137
|
name: string;
|
|
3122
3138
|
description?: string | undefined;
|
|
3123
3139
|
}, {
|
|
3124
|
-
type: "string" | "number" | "boolean" | "object" | "date" | "array" | "timestamp" | "datetime" | "enum";
|
|
3140
|
+
type: "string" | "number" | "boolean" | "object" | "date" | "array" | "timestamp" | "datetime" | "email" | "url" | "phone" | "uuid" | "image" | "enum";
|
|
3125
3141
|
name: string;
|
|
3126
3142
|
description?: string | undefined;
|
|
3127
3143
|
}>, "many">>;
|
|
@@ -3682,7 +3698,7 @@ declare const OrbitalTraitRefSchema: z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
|
3682
3698
|
entityRefIds?: Record<string, EntityId> | undefined;
|
|
3683
3699
|
traitEmbedIds?: Record<string, TraitId> | undefined;
|
|
3684
3700
|
requiredFields?: {
|
|
3685
|
-
type: "string" | "number" | "boolean" | "object" | "date" | "array" | "timestamp" | "datetime" | "enum";
|
|
3701
|
+
type: "string" | "number" | "boolean" | "object" | "date" | "array" | "timestamp" | "datetime" | "email" | "url" | "phone" | "uuid" | "image" | "enum";
|
|
3686
3702
|
name: string;
|
|
3687
3703
|
description?: string | undefined;
|
|
3688
3704
|
}[] | undefined;
|
|
@@ -3828,7 +3844,7 @@ declare const OrbitalTraitRefSchema: z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
|
3828
3844
|
entityRefIds?: Record<string, string> | undefined;
|
|
3829
3845
|
traitEmbedIds?: Record<string, string> | undefined;
|
|
3830
3846
|
requiredFields?: {
|
|
3831
|
-
type: "string" | "number" | "boolean" | "object" | "date" | "array" | "timestamp" | "datetime" | "enum";
|
|
3847
|
+
type: "string" | "number" | "boolean" | "object" | "date" | "array" | "timestamp" | "datetime" | "email" | "url" | "phone" | "uuid" | "image" | "enum";
|
|
3832
3848
|
name: string;
|
|
3833
3849
|
description?: string | undefined;
|
|
3834
3850
|
}[] | undefined;
|
|
@@ -3874,4 +3890,4 @@ declare const OrbitalTraitRefSchema: z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
|
3874
3890
|
} | undefined;
|
|
3875
3891
|
}>]>;
|
|
3876
3892
|
|
|
3877
|
-
export { type
|
|
3893
|
+
export { type TraitEntityField as $, RequiredFieldSchema as A, SECRET_CONFIG_TYPES as B, type CallSiteConfig as C, type DeclaredTraitConfig as D, type EntityFieldContract as E, type SecretConfigType as F, type Guard as G, type StateInput as H, type StateMachine as I, type StateMachineInput as J, StateMachineSchema as K, type ListenSource as L, StateSchema as M, TickIntervalSchema as N, type OrbitalTraitRef as O, type PayloadField as P, type TraitCategory as Q, REFERENCE_CONFIG_TYPES as R, type State as S, type TraitEventListener as T, TraitCategorySchema as U, type TraitConfigObject as V, TraitConfigSchema as W, type TraitConfigValue as X, TraitConfigValueSchema as Y, type TraitDataEntity as Z, TraitDataEntitySchema as _, type TraitReference as a, TraitEntityFieldSchema as a0, type TraitEventContract as a1, TraitEventContractSchema as a2, TraitEventListenerSchema as a3, type TraitInput as a4, type TraitRef as a5, TraitRefSchema as a6, type TraitReferenceInput as a7, TraitReferenceSchema as a8, TraitSchema as a9, type TraitTick as aa, TraitTickSchema as ab, type TraitUIBinding as ac, type Transition as ad, type TransitionInput as ae, TransitionSchema as af, configRefEventKnob as ag, getTraitConfig as ah, getTraitName as ai, isCallSiteConfigDeclaration as aj, isCircuitEvent as ak, isInlineTrait as al, isReferenceConfigType as am, isSecretConfigType as an, normalizeCallSiteConfigToValues as ao, normalizeTraitRef as ap, resolveConfigRefEventName as aq, type TraitScope as ar, type CallSiteConfigEntry as b, type Trait as c, type TraitConfig as d, CONFIG_REF_EVENT_PATTERN as e, type ConfigFieldDeclaration as f, ConfigFieldDeclarationSchema as g, type ConfigFieldItemsDeclaration as h, type ConfigRefEventError as i, DeclaredTraitConfigSchema as j, EntityFieldContractSchema as k, type Event as l, type EventInput as m, type EventPayloadField as n, EventPayloadFieldSchema as o, EventSchema as p, type EventScope as q, EventScopeSchema as r, type GuardInput as s, GuardSchema as t, ListenSourceSchema as u, OrbitalTraitRefSchema as v, PayloadFieldSchema as w, type PresentationType as x, type ReferenceConfigType as y, type RequiredField as z };
|