@elevasis/sdk 1.20.1 → 1.21.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/cli.cjs +3388 -1530
- package/dist/index.d.ts +412 -149
- package/dist/index.js +955 -721
- package/dist/node/index.d.ts +0 -3
- package/dist/node/index.js +22 -49
- package/dist/test-utils/index.d.ts +395 -128
- package/dist/test-utils/index.js +599 -368
- package/dist/worker/index.js +536 -323
- package/package.json +4 -4
- package/reference/_navigation.md +9 -7
- package/reference/_reference-manifest.json +1 -1
- package/reference/claude-config/rules/agent-start-here.md +4 -0
- package/reference/claude-config/rules/frontend.md +2 -2
- package/reference/claude-config/rules/organization-model.md +44 -2
- package/reference/claude-config/rules/organization-os.md +12 -12
- package/reference/claude-config/rules/ui.md +14 -14
- package/reference/claude-config/rules/vibe.md +37 -33
- package/reference/claude-config/skills/explore/SKILL.md +6 -6
- package/reference/claude-config/skills/knowledge/SKILL.md +73 -29
- package/reference/claude-config/skills/knowledge/operations/codify-level-a.md +1 -1
- package/reference/claude-config/skills/knowledge/operations/codify-level-b.md +25 -24
- package/reference/claude-config/skills/knowledge/operations/features.md +56 -93
- package/reference/claude-config/skills/knowledge/operations/labels.md +19 -14
- package/reference/claude-config/skills/knowledge/operations/offerings.md +6 -6
- package/reference/claude-config/skills/save/SKILL.md +2 -2
- package/reference/claude-config/skills/setup/SKILL.md +1 -1
- package/reference/claude-config/skills/tutorial/technical.md +23 -26
- package/reference/claude-config/skills/tutorial/vibe-coder.md +9 -9
- package/reference/claude-config/sync-notes/2026-05-12-sdk-ready-release-train.md +30 -0
- package/reference/cli.mdx +140 -0
- package/reference/deployment/provided-features.mdx +29 -15
- package/reference/examples/organization-model.ts +1 -1
- package/reference/packages/core/src/knowledge/README.md +8 -7
- package/reference/packages/core/src/organization-model/README.md +66 -26
- package/reference/packages/ui/src/provider/README.md +5 -5
- package/reference/scaffold/core/organization-graph.mdx +16 -15
- package/reference/scaffold/core/organization-model.mdx +89 -41
- package/reference/scaffold/index.mdx +9 -9
- package/reference/scaffold/operations/propagation-pipeline.md +3 -3
- package/reference/scaffold/operations/scaffold-maintenance.md +11 -11
- package/reference/scaffold/recipes/add-a-feature.md +26 -24
- package/reference/scaffold/recipes/add-a-resource.md +10 -14
- package/reference/scaffold/recipes/customize-crm-actions.md +439 -439
- package/reference/scaffold/recipes/customize-knowledge-browser.md +384 -0
- package/reference/scaffold/recipes/customize-organization-model.md +72 -44
- package/reference/scaffold/recipes/extend-crm.md +40 -39
- package/reference/scaffold/recipes/extend-lead-gen.md +15 -16
- package/reference/scaffold/recipes/gate-by-feature-or-admin.md +34 -30
- package/reference/scaffold/recipes/index.md +13 -12
- package/reference/scaffold/recipes/query-the-knowledge-graph.md +200 -0
- package/reference/scaffold/reference/contracts.md +362 -99
- package/reference/scaffold/reference/feature-registry.md +9 -20
- package/reference/scaffold/reference/glossary.md +18 -18
- package/reference/scaffold/ui/composition-extensibility.mdx +23 -23
- package/reference/scaffold/ui/customization.md +11 -11
- package/reference/scaffold/ui/feature-flags-and-gating.md +8 -8
- package/reference/scaffold/ui/feature-shell.mdx +19 -19
- package/reference/scaffold/ui/recipes.md +29 -28
package/dist/index.d.ts
CHANGED
|
@@ -503,125 +503,312 @@ interface ModelConfig {
|
|
|
503
503
|
}
|
|
504
504
|
|
|
505
505
|
declare const ResourceGovernanceStatusSchema: z.ZodEnum<{
|
|
506
|
-
active: "active";
|
|
507
506
|
deprecated: "deprecated";
|
|
507
|
+
active: "active";
|
|
508
508
|
archived: "archived";
|
|
509
509
|
}>;
|
|
510
510
|
declare const WorkflowResourceEntrySchema: z.ZodObject<{
|
|
511
511
|
id: z.ZodString;
|
|
512
|
-
|
|
512
|
+
order: z.ZodDefault<z.ZodNumber>;
|
|
513
|
+
systemPath: z.ZodString;
|
|
513
514
|
ownerRoleId: z.ZodOptional<z.ZodString>;
|
|
514
515
|
status: z.ZodEnum<{
|
|
515
|
-
active: "active";
|
|
516
516
|
deprecated: "deprecated";
|
|
517
|
+
active: "active";
|
|
517
518
|
archived: "archived";
|
|
518
519
|
}>;
|
|
519
520
|
kind: z.ZodLiteral<"workflow">;
|
|
520
|
-
|
|
521
|
+
actionKey: z.ZodOptional<z.ZodString>;
|
|
522
|
+
emits: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
523
|
+
eventKey: z.ZodString;
|
|
524
|
+
label: z.ZodString;
|
|
525
|
+
payloadSchema: z.ZodOptional<z.ZodString>;
|
|
526
|
+
lifecycle: z.ZodOptional<z.ZodEnum<{
|
|
527
|
+
deprecated: "deprecated";
|
|
528
|
+
draft: "draft";
|
|
529
|
+
beta: "beta";
|
|
530
|
+
active: "active";
|
|
531
|
+
archived: "archived";
|
|
532
|
+
}>>;
|
|
533
|
+
}, z.core.$strip>>>;
|
|
521
534
|
}, z.core.$strip>;
|
|
522
535
|
declare const AgentResourceEntrySchema: z.ZodObject<{
|
|
523
536
|
id: z.ZodString;
|
|
524
|
-
|
|
537
|
+
order: z.ZodDefault<z.ZodNumber>;
|
|
538
|
+
systemPath: z.ZodString;
|
|
525
539
|
ownerRoleId: z.ZodOptional<z.ZodString>;
|
|
526
540
|
status: z.ZodEnum<{
|
|
527
|
-
active: "active";
|
|
528
541
|
deprecated: "deprecated";
|
|
542
|
+
active: "active";
|
|
529
543
|
archived: "archived";
|
|
530
544
|
}>;
|
|
531
545
|
kind: z.ZodLiteral<"agent">;
|
|
532
546
|
agentKind: z.ZodEnum<{
|
|
547
|
+
platform: "platform";
|
|
533
548
|
orchestrator: "orchestrator";
|
|
534
549
|
specialist: "specialist";
|
|
535
550
|
utility: "utility";
|
|
536
|
-
system: "system";
|
|
537
551
|
}>;
|
|
538
552
|
actsAsRoleId: z.ZodOptional<z.ZodString>;
|
|
539
553
|
sessionCapable: z.ZodBoolean;
|
|
554
|
+
invocations: z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
555
|
+
kind: z.ZodLiteral<"slash-command">;
|
|
556
|
+
command: z.ZodString;
|
|
557
|
+
toolFactory: z.ZodOptional<z.ZodString>;
|
|
558
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
559
|
+
kind: z.ZodLiteral<"mcp-tool">;
|
|
560
|
+
server: z.ZodString;
|
|
561
|
+
name: z.ZodString;
|
|
562
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
563
|
+
kind: z.ZodLiteral<"api-endpoint">;
|
|
564
|
+
method: z.ZodEnum<{
|
|
565
|
+
GET: "GET";
|
|
566
|
+
POST: "POST";
|
|
567
|
+
PATCH: "PATCH";
|
|
568
|
+
DELETE: "DELETE";
|
|
569
|
+
}>;
|
|
570
|
+
path: z.ZodString;
|
|
571
|
+
requestSchema: z.ZodOptional<z.ZodString>;
|
|
572
|
+
responseSchema: z.ZodOptional<z.ZodString>;
|
|
573
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
574
|
+
kind: z.ZodLiteral<"script-execution">;
|
|
575
|
+
resourceId: z.ZodString;
|
|
576
|
+
}, z.core.$strip>], "kind">>>;
|
|
577
|
+
emits: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
578
|
+
eventKey: z.ZodString;
|
|
579
|
+
label: z.ZodString;
|
|
580
|
+
payloadSchema: z.ZodOptional<z.ZodString>;
|
|
581
|
+
lifecycle: z.ZodOptional<z.ZodEnum<{
|
|
582
|
+
deprecated: "deprecated";
|
|
583
|
+
draft: "draft";
|
|
584
|
+
beta: "beta";
|
|
585
|
+
active: "active";
|
|
586
|
+
archived: "archived";
|
|
587
|
+
}>>;
|
|
588
|
+
}, z.core.$strip>>>;
|
|
540
589
|
}, z.core.$strip>;
|
|
541
590
|
declare const ResourceEntrySchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
542
591
|
id: z.ZodString;
|
|
543
|
-
|
|
592
|
+
order: z.ZodDefault<z.ZodNumber>;
|
|
593
|
+
systemPath: z.ZodString;
|
|
544
594
|
ownerRoleId: z.ZodOptional<z.ZodString>;
|
|
545
595
|
status: z.ZodEnum<{
|
|
546
|
-
active: "active";
|
|
547
596
|
deprecated: "deprecated";
|
|
597
|
+
active: "active";
|
|
548
598
|
archived: "archived";
|
|
549
599
|
}>;
|
|
550
600
|
kind: z.ZodLiteral<"workflow">;
|
|
551
|
-
|
|
601
|
+
actionKey: z.ZodOptional<z.ZodString>;
|
|
602
|
+
emits: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
603
|
+
eventKey: z.ZodString;
|
|
604
|
+
label: z.ZodString;
|
|
605
|
+
payloadSchema: z.ZodOptional<z.ZodString>;
|
|
606
|
+
lifecycle: z.ZodOptional<z.ZodEnum<{
|
|
607
|
+
deprecated: "deprecated";
|
|
608
|
+
draft: "draft";
|
|
609
|
+
beta: "beta";
|
|
610
|
+
active: "active";
|
|
611
|
+
archived: "archived";
|
|
612
|
+
}>>;
|
|
613
|
+
}, z.core.$strip>>>;
|
|
552
614
|
}, z.core.$strip>, z.ZodObject<{
|
|
553
615
|
id: z.ZodString;
|
|
554
|
-
|
|
616
|
+
order: z.ZodDefault<z.ZodNumber>;
|
|
617
|
+
systemPath: z.ZodString;
|
|
555
618
|
ownerRoleId: z.ZodOptional<z.ZodString>;
|
|
556
619
|
status: z.ZodEnum<{
|
|
557
|
-
active: "active";
|
|
558
620
|
deprecated: "deprecated";
|
|
621
|
+
active: "active";
|
|
559
622
|
archived: "archived";
|
|
560
623
|
}>;
|
|
561
624
|
kind: z.ZodLiteral<"agent">;
|
|
562
625
|
agentKind: z.ZodEnum<{
|
|
626
|
+
platform: "platform";
|
|
563
627
|
orchestrator: "orchestrator";
|
|
564
628
|
specialist: "specialist";
|
|
565
629
|
utility: "utility";
|
|
566
|
-
system: "system";
|
|
567
630
|
}>;
|
|
568
631
|
actsAsRoleId: z.ZodOptional<z.ZodString>;
|
|
569
632
|
sessionCapable: z.ZodBoolean;
|
|
633
|
+
invocations: z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
634
|
+
kind: z.ZodLiteral<"slash-command">;
|
|
635
|
+
command: z.ZodString;
|
|
636
|
+
toolFactory: z.ZodOptional<z.ZodString>;
|
|
637
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
638
|
+
kind: z.ZodLiteral<"mcp-tool">;
|
|
639
|
+
server: z.ZodString;
|
|
640
|
+
name: z.ZodString;
|
|
641
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
642
|
+
kind: z.ZodLiteral<"api-endpoint">;
|
|
643
|
+
method: z.ZodEnum<{
|
|
644
|
+
GET: "GET";
|
|
645
|
+
POST: "POST";
|
|
646
|
+
PATCH: "PATCH";
|
|
647
|
+
DELETE: "DELETE";
|
|
648
|
+
}>;
|
|
649
|
+
path: z.ZodString;
|
|
650
|
+
requestSchema: z.ZodOptional<z.ZodString>;
|
|
651
|
+
responseSchema: z.ZodOptional<z.ZodString>;
|
|
652
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
653
|
+
kind: z.ZodLiteral<"script-execution">;
|
|
654
|
+
resourceId: z.ZodString;
|
|
655
|
+
}, z.core.$strip>], "kind">>>;
|
|
656
|
+
emits: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
657
|
+
eventKey: z.ZodString;
|
|
658
|
+
label: z.ZodString;
|
|
659
|
+
payloadSchema: z.ZodOptional<z.ZodString>;
|
|
660
|
+
lifecycle: z.ZodOptional<z.ZodEnum<{
|
|
661
|
+
deprecated: "deprecated";
|
|
662
|
+
draft: "draft";
|
|
663
|
+
beta: "beta";
|
|
664
|
+
active: "active";
|
|
665
|
+
archived: "archived";
|
|
666
|
+
}>>;
|
|
667
|
+
}, z.core.$strip>>>;
|
|
570
668
|
}, z.core.$strip>, z.ZodObject<{
|
|
571
669
|
id: z.ZodString;
|
|
572
|
-
|
|
670
|
+
order: z.ZodDefault<z.ZodNumber>;
|
|
671
|
+
systemPath: z.ZodString;
|
|
573
672
|
ownerRoleId: z.ZodOptional<z.ZodString>;
|
|
574
673
|
status: z.ZodEnum<{
|
|
575
|
-
active: "active";
|
|
576
674
|
deprecated: "deprecated";
|
|
675
|
+
active: "active";
|
|
577
676
|
archived: "archived";
|
|
578
677
|
}>;
|
|
579
678
|
kind: z.ZodLiteral<"integration">;
|
|
580
679
|
provider: z.ZodString;
|
|
680
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
681
|
+
id: z.ZodString;
|
|
682
|
+
order: z.ZodDefault<z.ZodNumber>;
|
|
683
|
+
systemPath: z.ZodString;
|
|
684
|
+
ownerRoleId: z.ZodOptional<z.ZodString>;
|
|
685
|
+
status: z.ZodEnum<{
|
|
686
|
+
deprecated: "deprecated";
|
|
687
|
+
active: "active";
|
|
688
|
+
archived: "archived";
|
|
689
|
+
}>;
|
|
690
|
+
kind: z.ZodLiteral<"script">;
|
|
691
|
+
language: z.ZodEnum<{
|
|
692
|
+
shell: "shell";
|
|
693
|
+
sql: "sql";
|
|
694
|
+
typescript: "typescript";
|
|
695
|
+
python: "python";
|
|
696
|
+
}>;
|
|
697
|
+
source: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
698
|
+
file: z.ZodString;
|
|
699
|
+
}, z.core.$strip>]>;
|
|
581
700
|
}, z.core.$strip>], "kind">;
|
|
582
|
-
declare const ResourcesDomainSchema: z.ZodObject<{
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
701
|
+
declare const ResourcesDomainSchema: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
702
|
+
id: z.ZodString;
|
|
703
|
+
order: z.ZodDefault<z.ZodNumber>;
|
|
704
|
+
systemPath: z.ZodString;
|
|
705
|
+
ownerRoleId: z.ZodOptional<z.ZodString>;
|
|
706
|
+
status: z.ZodEnum<{
|
|
707
|
+
deprecated: "deprecated";
|
|
708
|
+
active: "active";
|
|
709
|
+
archived: "archived";
|
|
710
|
+
}>;
|
|
711
|
+
kind: z.ZodLiteral<"workflow">;
|
|
712
|
+
actionKey: z.ZodOptional<z.ZodString>;
|
|
713
|
+
emits: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
714
|
+
eventKey: z.ZodString;
|
|
715
|
+
label: z.ZodString;
|
|
716
|
+
payloadSchema: z.ZodOptional<z.ZodString>;
|
|
717
|
+
lifecycle: z.ZodOptional<z.ZodEnum<{
|
|
589
718
|
deprecated: "deprecated";
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
kind: z.ZodLiteral<"workflow">;
|
|
593
|
-
capabilityKey: z.ZodOptional<z.ZodString>;
|
|
594
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
595
|
-
id: z.ZodString;
|
|
596
|
-
systemId: z.ZodString;
|
|
597
|
-
ownerRoleId: z.ZodOptional<z.ZodString>;
|
|
598
|
-
status: z.ZodEnum<{
|
|
719
|
+
draft: "draft";
|
|
720
|
+
beta: "beta";
|
|
599
721
|
active: "active";
|
|
600
|
-
deprecated: "deprecated";
|
|
601
722
|
archived: "archived";
|
|
723
|
+
}>>;
|
|
724
|
+
}, z.core.$strip>>>;
|
|
725
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
726
|
+
id: z.ZodString;
|
|
727
|
+
order: z.ZodDefault<z.ZodNumber>;
|
|
728
|
+
systemPath: z.ZodString;
|
|
729
|
+
ownerRoleId: z.ZodOptional<z.ZodString>;
|
|
730
|
+
status: z.ZodEnum<{
|
|
731
|
+
deprecated: "deprecated";
|
|
732
|
+
active: "active";
|
|
733
|
+
archived: "archived";
|
|
734
|
+
}>;
|
|
735
|
+
kind: z.ZodLiteral<"agent">;
|
|
736
|
+
agentKind: z.ZodEnum<{
|
|
737
|
+
platform: "platform";
|
|
738
|
+
orchestrator: "orchestrator";
|
|
739
|
+
specialist: "specialist";
|
|
740
|
+
utility: "utility";
|
|
741
|
+
}>;
|
|
742
|
+
actsAsRoleId: z.ZodOptional<z.ZodString>;
|
|
743
|
+
sessionCapable: z.ZodBoolean;
|
|
744
|
+
invocations: z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
745
|
+
kind: z.ZodLiteral<"slash-command">;
|
|
746
|
+
command: z.ZodString;
|
|
747
|
+
toolFactory: z.ZodOptional<z.ZodString>;
|
|
748
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
749
|
+
kind: z.ZodLiteral<"mcp-tool">;
|
|
750
|
+
server: z.ZodString;
|
|
751
|
+
name: z.ZodString;
|
|
752
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
753
|
+
kind: z.ZodLiteral<"api-endpoint">;
|
|
754
|
+
method: z.ZodEnum<{
|
|
755
|
+
GET: "GET";
|
|
756
|
+
POST: "POST";
|
|
757
|
+
PATCH: "PATCH";
|
|
758
|
+
DELETE: "DELETE";
|
|
602
759
|
}>;
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
specialist: "specialist";
|
|
607
|
-
utility: "utility";
|
|
608
|
-
system: "system";
|
|
609
|
-
}>;
|
|
610
|
-
actsAsRoleId: z.ZodOptional<z.ZodString>;
|
|
611
|
-
sessionCapable: z.ZodBoolean;
|
|
760
|
+
path: z.ZodString;
|
|
761
|
+
requestSchema: z.ZodOptional<z.ZodString>;
|
|
762
|
+
responseSchema: z.ZodOptional<z.ZodString>;
|
|
612
763
|
}, z.core.$strip>, z.ZodObject<{
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
764
|
+
kind: z.ZodLiteral<"script-execution">;
|
|
765
|
+
resourceId: z.ZodString;
|
|
766
|
+
}, z.core.$strip>], "kind">>>;
|
|
767
|
+
emits: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
768
|
+
eventKey: z.ZodString;
|
|
769
|
+
label: z.ZodString;
|
|
770
|
+
payloadSchema: z.ZodOptional<z.ZodString>;
|
|
771
|
+
lifecycle: z.ZodOptional<z.ZodEnum<{
|
|
618
772
|
deprecated: "deprecated";
|
|
773
|
+
draft: "draft";
|
|
774
|
+
beta: "beta";
|
|
775
|
+
active: "active";
|
|
619
776
|
archived: "archived";
|
|
620
|
-
}
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
777
|
+
}>>;
|
|
778
|
+
}, z.core.$strip>>>;
|
|
779
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
780
|
+
id: z.ZodString;
|
|
781
|
+
order: z.ZodDefault<z.ZodNumber>;
|
|
782
|
+
systemPath: z.ZodString;
|
|
783
|
+
ownerRoleId: z.ZodOptional<z.ZodString>;
|
|
784
|
+
status: z.ZodEnum<{
|
|
785
|
+
deprecated: "deprecated";
|
|
786
|
+
active: "active";
|
|
787
|
+
archived: "archived";
|
|
788
|
+
}>;
|
|
789
|
+
kind: z.ZodLiteral<"integration">;
|
|
790
|
+
provider: z.ZodString;
|
|
791
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
792
|
+
id: z.ZodString;
|
|
793
|
+
order: z.ZodDefault<z.ZodNumber>;
|
|
794
|
+
systemPath: z.ZodString;
|
|
795
|
+
ownerRoleId: z.ZodOptional<z.ZodString>;
|
|
796
|
+
status: z.ZodEnum<{
|
|
797
|
+
deprecated: "deprecated";
|
|
798
|
+
active: "active";
|
|
799
|
+
archived: "archived";
|
|
800
|
+
}>;
|
|
801
|
+
kind: z.ZodLiteral<"script">;
|
|
802
|
+
language: z.ZodEnum<{
|
|
803
|
+
shell: "shell";
|
|
804
|
+
sql: "sql";
|
|
805
|
+
typescript: "typescript";
|
|
806
|
+
python: "python";
|
|
807
|
+
}>;
|
|
808
|
+
source: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
809
|
+
file: z.ZodString;
|
|
810
|
+
}, z.core.$strip>]>;
|
|
811
|
+
}, z.core.$strip>], "kind">>>;
|
|
625
812
|
type ResourceGovernanceStatus = z.infer<typeof ResourceGovernanceStatusSchema>;
|
|
626
813
|
type WorkflowResourceEntry = z.infer<typeof WorkflowResourceEntrySchema>;
|
|
627
814
|
type AgentResourceEntry = z.infer<typeof AgentResourceEntrySchema>;
|
|
@@ -736,8 +923,8 @@ interface WorkflowConfig extends ResourceDefinition {
|
|
|
736
923
|
type: 'workflow';
|
|
737
924
|
/** OM descriptor backing canonical identity and governance metadata. */
|
|
738
925
|
resource?: WorkflowResourceEntry;
|
|
739
|
-
/** Lead-gen
|
|
740
|
-
|
|
926
|
+
/** Lead-gen action key for registry derivation (e.g. 'lead-gen.company.apollo-import') */
|
|
927
|
+
actionKey?: string;
|
|
741
928
|
}
|
|
742
929
|
interface WorkflowStepDefinition {
|
|
743
930
|
id: string;
|
|
@@ -1088,7 +1275,7 @@ interface KnowledgeContent {
|
|
|
1088
1275
|
* AIUsageCollector/AICallContext) and the worker proxy (which ignores them) satisfy the type.
|
|
1089
1276
|
*/
|
|
1090
1277
|
type LLMAdapterFactory = (config: ModelConfig, ...args: any[]) => LLMAdapter;
|
|
1091
|
-
type AgentKind = 'orchestrator' | 'specialist' | 'utility' | '
|
|
1278
|
+
type AgentKind = 'orchestrator' | 'specialist' | 'utility' | 'platform';
|
|
1092
1279
|
interface AgentConfig extends ResourceDefinition {
|
|
1093
1280
|
type: 'agent';
|
|
1094
1281
|
/** OM descriptor backing canonical identity and governance metadata. */
|
|
@@ -3955,6 +4142,66 @@ type Database = {
|
|
|
3955
4142
|
}
|
|
3956
4143
|
];
|
|
3957
4144
|
};
|
|
4145
|
+
user_notes: {
|
|
4146
|
+
Row: {
|
|
4147
|
+
content: string;
|
|
4148
|
+
created_at: string;
|
|
4149
|
+
created_by: string;
|
|
4150
|
+
id: string;
|
|
4151
|
+
metadata: Json;
|
|
4152
|
+
organization_id: string | null;
|
|
4153
|
+
pinned: boolean;
|
|
4154
|
+
priority: string;
|
|
4155
|
+
source: string | null;
|
|
4156
|
+
title: string | null;
|
|
4157
|
+
updated_at: string;
|
|
4158
|
+
user_id: string;
|
|
4159
|
+
};
|
|
4160
|
+
Insert: {
|
|
4161
|
+
content: string;
|
|
4162
|
+
created_at?: string;
|
|
4163
|
+
created_by?: string;
|
|
4164
|
+
id?: string;
|
|
4165
|
+
metadata?: Json;
|
|
4166
|
+
organization_id?: string | null;
|
|
4167
|
+
pinned?: boolean;
|
|
4168
|
+
priority?: string;
|
|
4169
|
+
source?: string | null;
|
|
4170
|
+
title?: string | null;
|
|
4171
|
+
updated_at?: string;
|
|
4172
|
+
user_id: string;
|
|
4173
|
+
};
|
|
4174
|
+
Update: {
|
|
4175
|
+
content?: string;
|
|
4176
|
+
created_at?: string;
|
|
4177
|
+
created_by?: string;
|
|
4178
|
+
id?: string;
|
|
4179
|
+
metadata?: Json;
|
|
4180
|
+
organization_id?: string | null;
|
|
4181
|
+
pinned?: boolean;
|
|
4182
|
+
priority?: string;
|
|
4183
|
+
source?: string | null;
|
|
4184
|
+
title?: string | null;
|
|
4185
|
+
updated_at?: string;
|
|
4186
|
+
user_id?: string;
|
|
4187
|
+
};
|
|
4188
|
+
Relationships: [
|
|
4189
|
+
{
|
|
4190
|
+
foreignKeyName: "user_notes_organization_id_fkey";
|
|
4191
|
+
columns: ["organization_id"];
|
|
4192
|
+
isOneToOne: false;
|
|
4193
|
+
referencedRelation: "organizations";
|
|
4194
|
+
referencedColumns: ["id"];
|
|
4195
|
+
},
|
|
4196
|
+
{
|
|
4197
|
+
foreignKeyName: "user_notes_user_id_fkey";
|
|
4198
|
+
columns: ["user_id"];
|
|
4199
|
+
isOneToOne: false;
|
|
4200
|
+
referencedRelation: "users";
|
|
4201
|
+
referencedColumns: ["id"];
|
|
4202
|
+
}
|
|
4203
|
+
];
|
|
4204
|
+
};
|
|
3958
4205
|
users: {
|
|
3959
4206
|
Row: {
|
|
3960
4207
|
config: Json;
|
|
@@ -4219,10 +4466,10 @@ declare const RecordColumnConfigSchema: z.ZodObject<{
|
|
|
4219
4466
|
width: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
|
|
4220
4467
|
renderType: z.ZodOptional<z.ZodEnum<{
|
|
4221
4468
|
text: "text";
|
|
4222
|
-
badge: "badge";
|
|
4223
|
-
datetime: "datetime";
|
|
4224
4469
|
count: "count";
|
|
4225
4470
|
json: "json";
|
|
4471
|
+
badge: "badge";
|
|
4472
|
+
datetime: "datetime";
|
|
4226
4473
|
}>>;
|
|
4227
4474
|
badgeColor: z.ZodOptional<z.ZodString>;
|
|
4228
4475
|
}, z.core.$strip>;
|
|
@@ -4334,7 +4581,7 @@ declare const ProspectingBuildTemplateStepSchema: z.ZodObject<{
|
|
|
4334
4581
|
recordSourceStageKey: z.ZodOptional<z.ZodString>;
|
|
4335
4582
|
dependsOn: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
4336
4583
|
dependencyMode: z.ZodLiteral<"per-record-eligibility">;
|
|
4337
|
-
|
|
4584
|
+
actionKey: z.ZodString;
|
|
4338
4585
|
defaultBatchSize: z.ZodNumber;
|
|
4339
4586
|
maxBatchSize: z.ZodNumber;
|
|
4340
4587
|
recordColumns: z.ZodOptional<z.ZodObject<{
|
|
@@ -4345,10 +4592,10 @@ declare const ProspectingBuildTemplateStepSchema: z.ZodObject<{
|
|
|
4345
4592
|
width: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
|
|
4346
4593
|
renderType: z.ZodOptional<z.ZodEnum<{
|
|
4347
4594
|
text: "text";
|
|
4348
|
-
badge: "badge";
|
|
4349
|
-
datetime: "datetime";
|
|
4350
4595
|
count: "count";
|
|
4351
4596
|
json: "json";
|
|
4597
|
+
badge: "badge";
|
|
4598
|
+
datetime: "datetime";
|
|
4352
4599
|
}>>;
|
|
4353
4600
|
badgeColor: z.ZodOptional<z.ZodString>;
|
|
4354
4601
|
}, z.core.$strip>>>;
|
|
@@ -4359,10 +4606,10 @@ declare const ProspectingBuildTemplateStepSchema: z.ZodObject<{
|
|
|
4359
4606
|
width: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
|
|
4360
4607
|
renderType: z.ZodOptional<z.ZodEnum<{
|
|
4361
4608
|
text: "text";
|
|
4362
|
-
badge: "badge";
|
|
4363
|
-
datetime: "datetime";
|
|
4364
4609
|
count: "count";
|
|
4365
4610
|
json: "json";
|
|
4611
|
+
badge: "badge";
|
|
4612
|
+
datetime: "datetime";
|
|
4366
4613
|
}>>;
|
|
4367
4614
|
badgeColor: z.ZodOptional<z.ZodString>;
|
|
4368
4615
|
}, z.core.$strip>>>;
|
|
@@ -4548,7 +4795,7 @@ declare const ProspectingBuildTemplateSchema: z.ZodObject<{
|
|
|
4548
4795
|
recordSourceStageKey: z.ZodOptional<z.ZodString>;
|
|
4549
4796
|
dependsOn: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
4550
4797
|
dependencyMode: z.ZodLiteral<"per-record-eligibility">;
|
|
4551
|
-
|
|
4798
|
+
actionKey: z.ZodString;
|
|
4552
4799
|
defaultBatchSize: z.ZodNumber;
|
|
4553
4800
|
maxBatchSize: z.ZodNumber;
|
|
4554
4801
|
recordColumns: z.ZodOptional<z.ZodObject<{
|
|
@@ -4559,10 +4806,10 @@ declare const ProspectingBuildTemplateSchema: z.ZodObject<{
|
|
|
4559
4806
|
width: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
|
|
4560
4807
|
renderType: z.ZodOptional<z.ZodEnum<{
|
|
4561
4808
|
text: "text";
|
|
4562
|
-
badge: "badge";
|
|
4563
|
-
datetime: "datetime";
|
|
4564
4809
|
count: "count";
|
|
4565
4810
|
json: "json";
|
|
4811
|
+
badge: "badge";
|
|
4812
|
+
datetime: "datetime";
|
|
4566
4813
|
}>>;
|
|
4567
4814
|
badgeColor: z.ZodOptional<z.ZodString>;
|
|
4568
4815
|
}, z.core.$strip>>>;
|
|
@@ -4573,10 +4820,10 @@ declare const ProspectingBuildTemplateSchema: z.ZodObject<{
|
|
|
4573
4820
|
width: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
|
|
4574
4821
|
renderType: z.ZodOptional<z.ZodEnum<{
|
|
4575
4822
|
text: "text";
|
|
4576
|
-
badge: "badge";
|
|
4577
|
-
datetime: "datetime";
|
|
4578
4823
|
count: "count";
|
|
4579
4824
|
json: "json";
|
|
4825
|
+
badge: "badge";
|
|
4826
|
+
datetime: "datetime";
|
|
4580
4827
|
}>>;
|
|
4581
4828
|
badgeColor: z.ZodOptional<z.ZodString>;
|
|
4582
4829
|
}, z.core.$strip>>>;
|
|
@@ -4631,7 +4878,7 @@ interface LeadGenStageCatalogEntry {
|
|
|
4631
4878
|
* Canonical lead-gen processing stage catalog.
|
|
4632
4879
|
* Keys are the stage names written by workflow steps into processing_state jsonb.
|
|
4633
4880
|
*
|
|
4634
|
-
* Ordered roughly by pipeline progression (prospecting
|
|
4881
|
+
* Ordered roughly by pipeline progression (prospecting -> outreach -> qualification).
|
|
4635
4882
|
*/
|
|
4636
4883
|
declare const LEAD_GEN_STAGE_CATALOG: Record<string, LeadGenStageCatalogEntry>;
|
|
4637
4884
|
|
|
@@ -4675,10 +4922,10 @@ declare const DealSchemas: {
|
|
|
4675
4922
|
}, z.core.$strict>;
|
|
4676
4923
|
ListDealTasksDueQuery: z.ZodObject<{
|
|
4677
4924
|
window: z.ZodOptional<z.ZodEnum<{
|
|
4678
|
-
upcoming: "upcoming";
|
|
4679
4925
|
overdue: "overdue";
|
|
4680
4926
|
today: "today";
|
|
4681
4927
|
today_and_overdue: "today_and_overdue";
|
|
4928
|
+
upcoming: "upcoming";
|
|
4682
4929
|
}>>;
|
|
4683
4930
|
assigneeUserId: z.ZodOptional<z.ZodString>;
|
|
4684
4931
|
}, z.core.$strict>;
|
|
@@ -4689,8 +4936,8 @@ declare const DealSchemas: {
|
|
|
4689
4936
|
title: z.ZodString;
|
|
4690
4937
|
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
4691
4938
|
kind: z.ZodOptional<z.ZodEnum<{
|
|
4692
|
-
email: "email";
|
|
4693
4939
|
other: "other";
|
|
4940
|
+
email: "email";
|
|
4694
4941
|
call: "call";
|
|
4695
4942
|
meeting: "meeting";
|
|
4696
4943
|
}>>;
|
|
@@ -5030,8 +5277,8 @@ declare const DealSchemas: {
|
|
|
5030
5277
|
title: z.ZodString;
|
|
5031
5278
|
description: z.ZodNullable<z.ZodString>;
|
|
5032
5279
|
kind: z.ZodEnum<{
|
|
5033
|
-
email: "email";
|
|
5034
5280
|
other: "other";
|
|
5281
|
+
email: "email";
|
|
5035
5282
|
call: "call";
|
|
5036
5283
|
meeting: "meeting";
|
|
5037
5284
|
}>;
|
|
@@ -5050,8 +5297,8 @@ declare const DealSchemas: {
|
|
|
5050
5297
|
title: z.ZodString;
|
|
5051
5298
|
description: z.ZodNullable<z.ZodString>;
|
|
5052
5299
|
kind: z.ZodEnum<{
|
|
5053
|
-
email: "email";
|
|
5054
5300
|
other: "other";
|
|
5301
|
+
email: "email";
|
|
5055
5302
|
call: "call";
|
|
5056
5303
|
meeting: "meeting";
|
|
5057
5304
|
}>;
|
|
@@ -5097,7 +5344,7 @@ declare const BuildPlanSnapshotStepSchema: z.ZodObject<{
|
|
|
5097
5344
|
recordSourceStageKey: z.ZodOptional<z.ZodString>;
|
|
5098
5345
|
dependsOn: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
5099
5346
|
dependencyMode: z.ZodLiteral<"per-record-eligibility">;
|
|
5100
|
-
|
|
5347
|
+
actionKey: z.ZodString;
|
|
5101
5348
|
defaultBatchSize: z.ZodNumber;
|
|
5102
5349
|
maxBatchSize: z.ZodNumber;
|
|
5103
5350
|
recordColumns: z.ZodOptional<z.ZodObject<{
|
|
@@ -5108,10 +5355,10 @@ declare const BuildPlanSnapshotStepSchema: z.ZodObject<{
|
|
|
5108
5355
|
width: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
|
|
5109
5356
|
renderType: z.ZodOptional<z.ZodEnum<{
|
|
5110
5357
|
text: "text";
|
|
5111
|
-
badge: "badge";
|
|
5112
|
-
datetime: "datetime";
|
|
5113
5358
|
count: "count";
|
|
5114
5359
|
json: "json";
|
|
5360
|
+
badge: "badge";
|
|
5361
|
+
datetime: "datetime";
|
|
5115
5362
|
}>>;
|
|
5116
5363
|
badgeColor: z.ZodOptional<z.ZodString>;
|
|
5117
5364
|
}, z.core.$strip>>>;
|
|
@@ -5122,10 +5369,10 @@ declare const BuildPlanSnapshotStepSchema: z.ZodObject<{
|
|
|
5122
5369
|
width: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
|
|
5123
5370
|
renderType: z.ZodOptional<z.ZodEnum<{
|
|
5124
5371
|
text: "text";
|
|
5125
|
-
badge: "badge";
|
|
5126
|
-
datetime: "datetime";
|
|
5127
5372
|
count: "count";
|
|
5128
5373
|
json: "json";
|
|
5374
|
+
badge: "badge";
|
|
5375
|
+
datetime: "datetime";
|
|
5129
5376
|
}>>;
|
|
5130
5377
|
badgeColor: z.ZodOptional<z.ZodString>;
|
|
5131
5378
|
}, z.core.$strip>>>;
|
|
@@ -5272,7 +5519,7 @@ interface BuildPlanSnapshotStep {
|
|
|
5272
5519
|
recordSourceStageKey?: string;
|
|
5273
5520
|
dependsOn?: string[];
|
|
5274
5521
|
dependencyMode: BuildPlanSnapshotDependencyMode;
|
|
5275
|
-
|
|
5522
|
+
actionKey: string;
|
|
5276
5523
|
defaultBatchSize: number;
|
|
5277
5524
|
maxBatchSize: number;
|
|
5278
5525
|
recordColumns?: Partial<Record<BuildPlanSnapshotPrimaryEntity, RecordColumnConfig[]>>;
|
|
@@ -7802,11 +8049,11 @@ declare const ProjectSchemas: {
|
|
|
7802
8049
|
}>;
|
|
7803
8050
|
status: z.ZodOptional<z.ZodEnum<{
|
|
7804
8051
|
active: "active";
|
|
8052
|
+
completed: "completed";
|
|
8053
|
+
paused: "paused";
|
|
7805
8054
|
on_track: "on_track";
|
|
7806
8055
|
at_risk: "at_risk";
|
|
7807
8056
|
blocked: "blocked";
|
|
7808
|
-
paused: "paused";
|
|
7809
|
-
completed: "completed";
|
|
7810
8057
|
}>>;
|
|
7811
8058
|
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
7812
8059
|
deal_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -7827,11 +8074,11 @@ declare const ProjectSchemas: {
|
|
|
7827
8074
|
}>>;
|
|
7828
8075
|
status: z.ZodOptional<z.ZodEnum<{
|
|
7829
8076
|
active: "active";
|
|
8077
|
+
completed: "completed";
|
|
8078
|
+
paused: "paused";
|
|
7830
8079
|
on_track: "on_track";
|
|
7831
8080
|
at_risk: "at_risk";
|
|
7832
8081
|
blocked: "blocked";
|
|
7833
|
-
paused: "paused";
|
|
7834
|
-
completed: "completed";
|
|
7835
8082
|
}>>;
|
|
7836
8083
|
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
7837
8084
|
deal_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -7852,11 +8099,11 @@ declare const ProjectSchemas: {
|
|
|
7852
8099
|
}>>;
|
|
7853
8100
|
status: z.ZodOptional<z.ZodEnum<{
|
|
7854
8101
|
active: "active";
|
|
8102
|
+
completed: "completed";
|
|
8103
|
+
paused: "paused";
|
|
7855
8104
|
on_track: "on_track";
|
|
7856
8105
|
at_risk: "at_risk";
|
|
7857
8106
|
blocked: "blocked";
|
|
7858
|
-
paused: "paused";
|
|
7859
|
-
completed: "completed";
|
|
7860
8107
|
}>>;
|
|
7861
8108
|
search: z.ZodOptional<z.ZodString>;
|
|
7862
8109
|
client_id: z.ZodOptional<z.ZodString>;
|
|
@@ -7881,11 +8128,11 @@ declare const ProjectSchemas: {
|
|
|
7881
8128
|
CreateMilestoneRequest: z.ZodObject<{
|
|
7882
8129
|
name: z.ZodString;
|
|
7883
8130
|
status: z.ZodOptional<z.ZodEnum<{
|
|
7884
|
-
blocked: "blocked";
|
|
7885
8131
|
completed: "completed";
|
|
8132
|
+
overdue: "overdue";
|
|
7886
8133
|
upcoming: "upcoming";
|
|
8134
|
+
blocked: "blocked";
|
|
7887
8135
|
in_progress: "in_progress";
|
|
7888
|
-
overdue: "overdue";
|
|
7889
8136
|
}>>;
|
|
7890
8137
|
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
7891
8138
|
due_date: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -7895,11 +8142,11 @@ declare const ProjectSchemas: {
|
|
|
7895
8142
|
UpdateMilestoneRequest: z.ZodObject<{
|
|
7896
8143
|
name: z.ZodOptional<z.ZodString>;
|
|
7897
8144
|
status: z.ZodOptional<z.ZodEnum<{
|
|
7898
|
-
blocked: "blocked";
|
|
7899
8145
|
completed: "completed";
|
|
8146
|
+
overdue: "overdue";
|
|
7900
8147
|
upcoming: "upcoming";
|
|
8148
|
+
blocked: "blocked";
|
|
7901
8149
|
in_progress: "in_progress";
|
|
7902
|
-
overdue: "overdue";
|
|
7903
8150
|
}>>;
|
|
7904
8151
|
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
7905
8152
|
due_date: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -7923,25 +8170,25 @@ declare const ProjectSchemas: {
|
|
|
7923
8170
|
name: z.ZodString;
|
|
7924
8171
|
type: z.ZodOptional<z.ZodEnum<{
|
|
7925
8172
|
code: "code";
|
|
7926
|
-
feature: "feature";
|
|
7927
8173
|
other: "other";
|
|
7928
8174
|
research: "research";
|
|
7929
8175
|
documentation: "documentation";
|
|
7930
8176
|
report: "report";
|
|
7931
8177
|
design: "design";
|
|
7932
8178
|
refactor: "refactor";
|
|
8179
|
+
feature: "feature";
|
|
7933
8180
|
bug: "bug";
|
|
7934
8181
|
}>>;
|
|
7935
8182
|
status: z.ZodOptional<z.ZodEnum<{
|
|
7936
|
-
blocked: "blocked";
|
|
7937
8183
|
completed: "completed";
|
|
8184
|
+
cancelled: "cancelled";
|
|
8185
|
+
blocked: "blocked";
|
|
7938
8186
|
in_progress: "in_progress";
|
|
7939
8187
|
planned: "planned";
|
|
7940
8188
|
submitted: "submitted";
|
|
7941
8189
|
approved: "approved";
|
|
7942
|
-
revision_requested: "revision_requested";
|
|
7943
8190
|
rejected: "rejected";
|
|
7944
|
-
|
|
8191
|
+
revision_requested: "revision_requested";
|
|
7945
8192
|
}>>;
|
|
7946
8193
|
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
7947
8194
|
milestone_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -7959,25 +8206,25 @@ declare const ProjectSchemas: {
|
|
|
7959
8206
|
name: z.ZodOptional<z.ZodString>;
|
|
7960
8207
|
type: z.ZodOptional<z.ZodEnum<{
|
|
7961
8208
|
code: "code";
|
|
7962
|
-
feature: "feature";
|
|
7963
8209
|
other: "other";
|
|
7964
8210
|
research: "research";
|
|
7965
8211
|
documentation: "documentation";
|
|
7966
8212
|
report: "report";
|
|
7967
8213
|
design: "design";
|
|
7968
8214
|
refactor: "refactor";
|
|
8215
|
+
feature: "feature";
|
|
7969
8216
|
bug: "bug";
|
|
7970
8217
|
}>>;
|
|
7971
8218
|
status: z.ZodOptional<z.ZodEnum<{
|
|
7972
|
-
blocked: "blocked";
|
|
7973
8219
|
completed: "completed";
|
|
8220
|
+
cancelled: "cancelled";
|
|
8221
|
+
blocked: "blocked";
|
|
7974
8222
|
in_progress: "in_progress";
|
|
7975
8223
|
planned: "planned";
|
|
7976
8224
|
submitted: "submitted";
|
|
7977
8225
|
approved: "approved";
|
|
7978
|
-
revision_requested: "revision_requested";
|
|
7979
8226
|
rejected: "rejected";
|
|
7980
|
-
|
|
8227
|
+
revision_requested: "revision_requested";
|
|
7981
8228
|
}>>;
|
|
7982
8229
|
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
7983
8230
|
milestone_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -7996,15 +8243,15 @@ declare const ProjectSchemas: {
|
|
|
7996
8243
|
MergeResumeContextRequest: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
7997
8244
|
GetTasksQuery: z.ZodObject<{
|
|
7998
8245
|
status: z.ZodOptional<z.ZodEnum<{
|
|
7999
|
-
blocked: "blocked";
|
|
8000
8246
|
completed: "completed";
|
|
8247
|
+
cancelled: "cancelled";
|
|
8248
|
+
blocked: "blocked";
|
|
8001
8249
|
in_progress: "in_progress";
|
|
8002
8250
|
planned: "planned";
|
|
8003
8251
|
submitted: "submitted";
|
|
8004
8252
|
approved: "approved";
|
|
8005
|
-
revision_requested: "revision_requested";
|
|
8006
8253
|
rejected: "rejected";
|
|
8007
|
-
|
|
8254
|
+
revision_requested: "revision_requested";
|
|
8008
8255
|
}>>;
|
|
8009
8256
|
milestone_id: z.ZodOptional<z.ZodString>;
|
|
8010
8257
|
parent_task_id: z.ZodOptional<z.ZodString>;
|
|
@@ -9349,47 +9596,62 @@ type ToolingErrorType = 'service_unavailable' | 'permission_denied' | 'platform_
|
|
|
9349
9596
|
*/
|
|
9350
9597
|
type IntegrationType = 'gmail' | 'google-sheets' | 'slack' | 'github' | 'linear' | 'attio' | 'airtable' | 'salesforce' | 'hubspot' | 'stripe' | 'twilio' | 'sendgrid' | 'mailgun' | 'zapier' | 'webhook' | 'apify' | 'instantly' | 'resend' | 'signature-api' | 'dropbox' | 'anymailfinder' | 'tomba' | 'millionverifier';
|
|
9351
9598
|
|
|
9352
|
-
|
|
9353
|
-
|
|
9354
|
-
|
|
9355
|
-
|
|
9356
|
-
|
|
9357
|
-
|
|
9358
|
-
|
|
9359
|
-
|
|
9360
|
-
|
|
9361
|
-
|
|
9362
|
-
|
|
9363
|
-
|
|
9364
|
-
|
|
9365
|
-
|
|
9366
|
-
|
|
9367
|
-
deprecated: "deprecated";
|
|
9368
|
-
archived: "archived";
|
|
9369
|
-
}>;
|
|
9370
|
-
}, z.core.$strip>;
|
|
9371
|
-
declare const SystemsDomainSchema: z.ZodObject<{
|
|
9372
|
-
systems: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
9373
|
-
id: z.ZodString;
|
|
9374
|
-
title: z.ZodString;
|
|
9375
|
-
description: z.ZodString;
|
|
9376
|
-
kind: z.ZodEnum<{
|
|
9377
|
-
platform: "platform";
|
|
9378
|
-
product: "product";
|
|
9379
|
-
operational: "operational";
|
|
9380
|
-
diagnostic: "diagnostic";
|
|
9381
|
-
}>;
|
|
9382
|
-
responsibleRoleId: z.ZodOptional<z.ZodString>;
|
|
9383
|
-
governedByKnowledge: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
9384
|
-
drivesGoals: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
9385
|
-
status: z.ZodEnum<{
|
|
9386
|
-
active: "active";
|
|
9387
|
-
deprecated: "deprecated";
|
|
9388
|
-
archived: "archived";
|
|
9389
|
-
}>;
|
|
9390
|
-
}, z.core.$strip>>>;
|
|
9599
|
+
/**
|
|
9600
|
+
* Placeholder discriminated union for ContentNode (Wave 1A).
|
|
9601
|
+
* Wave 2A wires concrete (kind, type) pairs via the registry.
|
|
9602
|
+
*
|
|
9603
|
+
* Per D2: unregistered (kind, type) pairs are allowed and pass through validation.
|
|
9604
|
+
* Per L14: every node carries BOTH `kind` and `type`.
|
|
9605
|
+
*/
|
|
9606
|
+
declare const ContentNodeSchema: z.ZodObject<{
|
|
9607
|
+
label: z.ZodString;
|
|
9608
|
+
description: z.ZodOptional<z.ZodString>;
|
|
9609
|
+
order: z.ZodOptional<z.ZodNumber>;
|
|
9610
|
+
parentContentId: z.ZodOptional<z.ZodString>;
|
|
9611
|
+
kind: z.ZodString;
|
|
9612
|
+
type: z.ZodString;
|
|
9613
|
+
data: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
9391
9614
|
}, z.core.$strip>;
|
|
9392
|
-
type
|
|
9615
|
+
type ContentNode = z.infer<typeof ContentNodeSchema>;
|
|
9616
|
+
|
|
9617
|
+
/** Explicit interface needed to annotate the recursive SystemEntrySchema. */
|
|
9618
|
+
interface SystemEntry {
|
|
9619
|
+
id: string;
|
|
9620
|
+
label?: string;
|
|
9621
|
+
title?: string;
|
|
9622
|
+
description?: string;
|
|
9623
|
+
kind?: 'product' | 'operational' | 'platform' | 'diagnostic';
|
|
9624
|
+
parentSystemId?: string;
|
|
9625
|
+
ui?: {
|
|
9626
|
+
path: string;
|
|
9627
|
+
surfaces: string[];
|
|
9628
|
+
icon?: string;
|
|
9629
|
+
order?: number;
|
|
9630
|
+
};
|
|
9631
|
+
lifecycle?: 'draft' | 'beta' | 'active' | 'deprecated' | 'archived';
|
|
9632
|
+
responsibleRoleId?: string;
|
|
9633
|
+
governedByKnowledge?: string[];
|
|
9634
|
+
actions?: {
|
|
9635
|
+
actionId: string;
|
|
9636
|
+
intent: 'exposes' | 'consumes';
|
|
9637
|
+
invocation?: unknown;
|
|
9638
|
+
}[];
|
|
9639
|
+
policies?: string[];
|
|
9640
|
+
drivesGoals?: string[];
|
|
9641
|
+
/** @deprecated Use lifecycle. Accepted for one publish cycle. */
|
|
9642
|
+
status?: 'active' | 'deprecated' | 'archived';
|
|
9643
|
+
path?: string;
|
|
9644
|
+
icon?: string;
|
|
9645
|
+
color?: string;
|
|
9646
|
+
uiPosition?: 'sidebar-primary' | 'sidebar-bottom';
|
|
9647
|
+
enabled?: boolean;
|
|
9648
|
+
devOnly?: boolean;
|
|
9649
|
+
requiresAdmin?: boolean;
|
|
9650
|
+
order: number;
|
|
9651
|
+
content?: Record<string, ContentNode>;
|
|
9652
|
+
subsystems?: Record<string, SystemEntry>;
|
|
9653
|
+
}
|
|
9654
|
+
declare const SystemsDomainSchema: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodType<SystemEntry, unknown, z.core.$ZodTypeInternals<SystemEntry, unknown>>>>;
|
|
9393
9655
|
|
|
9394
9656
|
/**
|
|
9395
9657
|
* Resource Registry type definitions
|
|
@@ -9404,7 +9666,7 @@ type ResourceStatus$1 = 'dev' | 'prod';
|
|
|
9404
9666
|
* Used as the discriminator field in ResourceDefinition
|
|
9405
9667
|
*/
|
|
9406
9668
|
type ResourceType = 'agent' | 'workflow' | 'trigger' | 'integration' | 'external' | 'human';
|
|
9407
|
-
type ResourceSystemSummary = Pick<SystemEntry, 'id' | 'title' | 'description' | 'kind' | '
|
|
9669
|
+
type ResourceSystemSummary = Pick<SystemEntry, 'id' | 'title' | 'description' | 'kind' | 'lifecycle'>;
|
|
9408
9670
|
/**
|
|
9409
9671
|
* Base interface for ALL platform resources
|
|
9410
9672
|
* Shared by both executable (agents, workflows) and non-executable (triggers, integrations, etc.) resources
|
|
@@ -9430,8 +9692,8 @@ interface ResourceDefinition {
|
|
|
9430
9692
|
sessionCapable?: boolean;
|
|
9431
9693
|
/** Whether the resource is local (monorepo) or remote (externally deployed) */
|
|
9432
9694
|
origin?: 'local' | 'remote';
|
|
9433
|
-
/** OM System membership, when backed by a Resource descriptor */
|
|
9434
|
-
|
|
9695
|
+
/** OM System membership — dot-separated system path (e.g. "sys.lead-gen"), when backed by a Resource descriptor */
|
|
9696
|
+
systemPath?: string;
|
|
9435
9697
|
/** Display metadata for the owning OM System */
|
|
9436
9698
|
system?: ResourceSystemSummary;
|
|
9437
9699
|
/** Governance lifecycle status from the OM Resource descriptor */
|
|
@@ -9774,13 +10036,18 @@ type OrganizationModelResources = z.infer<typeof ResourcesDomainSchema>;
|
|
|
9774
10036
|
declare const LinkSchema: z.ZodObject<{
|
|
9775
10037
|
nodeId: z.ZodString;
|
|
9776
10038
|
kind: z.ZodEnum<{
|
|
10039
|
+
links: "links";
|
|
10040
|
+
affects: "affects";
|
|
10041
|
+
emits: "emits";
|
|
9777
10042
|
contains: "contains";
|
|
9778
10043
|
references: "references";
|
|
9779
|
-
exposes: "exposes";
|
|
9780
10044
|
maps_to: "maps_to";
|
|
9781
|
-
"operates-on": "operates-on";
|
|
9782
10045
|
uses: "uses";
|
|
9783
10046
|
governs: "governs";
|
|
10047
|
+
originates_from: "originates_from";
|
|
10048
|
+
triggers: "triggers";
|
|
10049
|
+
applies_to: "applies_to";
|
|
10050
|
+
effects: "effects";
|
|
9784
10051
|
}>;
|
|
9785
10052
|
}, z.core.$strip>;
|
|
9786
10053
|
type Link = z.infer<typeof LinkSchema>;
|
|
@@ -10162,12 +10429,8 @@ declare class RegistryValidationError extends Error {
|
|
|
10162
10429
|
type ResourceValidatorMode = 'strict' | 'warn-only';
|
|
10163
10430
|
type ResourceGovernanceValidationIssueType = 'missing-code-resource' | 'missing-om-resource' | 'type-mismatch' | 'system-mismatch' | 'missing-om-system' | 'raw-resource-id';
|
|
10164
10431
|
interface ResourceGovernanceModel {
|
|
10165
|
-
systems?:
|
|
10166
|
-
|
|
10167
|
-
};
|
|
10168
|
-
resources?: {
|
|
10169
|
-
entries: ResourceEntry[];
|
|
10170
|
-
};
|
|
10432
|
+
systems?: Record<string, SystemEntry>;
|
|
10433
|
+
resources?: Record<string, ResourceEntry>;
|
|
10171
10434
|
}
|
|
10172
10435
|
interface ResourceGovernanceValidationIssue {
|
|
10173
10436
|
type: ResourceGovernanceValidationIssueType;
|