@elevasis/core 0.20.0 → 0.22.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.
Files changed (77) hide show
  1. package/dist/index.d.ts +524 -6
  2. package/dist/index.js +417 -42
  3. package/dist/knowledge/index.d.ts +151 -1
  4. package/dist/organization-model/index.d.ts +524 -6
  5. package/dist/organization-model/index.js +417 -42
  6. package/dist/test-utils/index.d.ts +270 -1
  7. package/dist/test-utils/index.js +407 -41
  8. package/package.json +5 -5
  9. package/src/_gen/__tests__/__snapshots__/contracts.md.snap +501 -303
  10. package/src/auth/multi-tenancy/permissions.ts +20 -8
  11. package/src/business/README.md +2 -2
  12. package/src/business/acquisition/api-schemas.test.ts +198 -0
  13. package/src/business/acquisition/api-schemas.ts +250 -9
  14. package/src/business/acquisition/build-templates.test.ts +28 -0
  15. package/src/business/acquisition/build-templates.ts +20 -8
  16. package/src/business/acquisition/index.ts +12 -0
  17. package/src/business/acquisition/types.ts +6 -1
  18. package/src/business/clients/api-schemas.test.ts +115 -0
  19. package/src/business/clients/api-schemas.ts +158 -0
  20. package/src/business/clients/index.ts +1 -0
  21. package/src/business/deals/api-schemas.ts +8 -0
  22. package/src/business/index.ts +5 -2
  23. package/src/business/projects/types.ts +19 -0
  24. package/src/execution/engine/__tests__/fixtures/test-agents.ts +10 -8
  25. package/src/execution/engine/agent/core/__tests__/agent.test.ts +16 -12
  26. package/src/execution/engine/agent/core/__tests__/error-passthrough.test.ts +4 -3
  27. package/src/execution/engine/agent/core/types.ts +25 -15
  28. package/src/execution/engine/agent/index.ts +6 -4
  29. package/src/execution/engine/agent/reasoning/__tests__/request-builder.test.ts +24 -18
  30. package/src/execution/engine/index.ts +3 -0
  31. package/src/execution/engine/tools/integration/server/adapters/apify/apify-adapter.test.ts +55 -0
  32. package/src/execution/engine/tools/integration/server/adapters/apify/apify-adapter.ts +107 -41
  33. package/src/execution/engine/tools/integration/server/adapters/apollo/apollo-adapter.test.ts +48 -0
  34. package/src/execution/engine/tools/integration/server/adapters/apollo/apollo-adapter.ts +99 -0
  35. package/src/execution/engine/tools/integration/server/adapters/apollo/index.ts +1 -0
  36. package/src/execution/engine/tools/integration/server/adapters/clickup/clickup-adapter.test.ts +18 -0
  37. package/src/execution/engine/tools/integration/server/adapters/clickup/clickup-adapter.ts +194 -0
  38. package/src/execution/engine/tools/integration/server/adapters/clickup/index.ts +7 -0
  39. package/src/execution/engine/workflow/types.ts +7 -0
  40. package/src/integrations/credentials/api-schemas.ts +21 -2
  41. package/src/integrations/credentials/schemas.ts +200 -164
  42. package/src/organization-model/README.md +10 -3
  43. package/src/organization-model/__tests__/defaults.test.ts +6 -0
  44. package/src/organization-model/__tests__/domains/resources.test.ts +188 -0
  45. package/src/organization-model/__tests__/domains/roles.test.ts +402 -347
  46. package/src/organization-model/__tests__/domains/systems.test.ts +193 -0
  47. package/src/organization-model/__tests__/knowledge.test.ts +39 -0
  48. package/src/organization-model/__tests__/prospecting-ssot.test.ts +7 -4
  49. package/src/organization-model/__tests__/resolve.test.ts +1 -1
  50. package/src/organization-model/defaults.ts +24 -3
  51. package/src/organization-model/domains/knowledge.ts +3 -2
  52. package/src/organization-model/domains/prospecting.ts +182 -25
  53. package/src/organization-model/domains/resources.ts +88 -0
  54. package/src/organization-model/domains/roles.ts +93 -55
  55. package/src/organization-model/domains/sales.ts +24 -3
  56. package/src/organization-model/domains/systems.ts +46 -0
  57. package/src/organization-model/icons.ts +1 -0
  58. package/src/organization-model/index.ts +2 -0
  59. package/src/organization-model/organization-model.mdx +33 -14
  60. package/src/organization-model/published.ts +52 -1
  61. package/src/organization-model/schema.ts +121 -0
  62. package/src/organization-model/types.ts +46 -1
  63. package/src/platform/api/types.ts +38 -35
  64. package/src/platform/constants/versions.ts +1 -1
  65. package/src/platform/registry/__tests__/resource-registry.test.ts +2051 -2005
  66. package/src/platform/registry/__tests__/validation.test.ts +1343 -1086
  67. package/src/platform/registry/index.ts +14 -0
  68. package/src/platform/registry/resource-registry.ts +40 -2
  69. package/src/platform/registry/serialization.ts +241 -202
  70. package/src/platform/registry/serialized-types.ts +1 -0
  71. package/src/platform/registry/types.ts +411 -361
  72. package/src/platform/registry/validation.ts +743 -513
  73. package/src/projects/api-schemas.ts +290 -267
  74. package/src/reference/_generated/contracts.md +501 -303
  75. package/src/reference/glossary.md +8 -3
  76. package/src/server.ts +2 -0
  77. package/src/supabase/database.types.ts +121 -0
package/dist/index.d.ts CHANGED
@@ -26,6 +26,7 @@ declare const OrganizationModelSchema: z.ZodObject<{
26
26
  "knowledge.reference": "knowledge.reference";
27
27
  "feature.dashboard": "feature.dashboard";
28
28
  "feature.calendar": "feature.calendar";
29
+ "feature.business": "feature.business";
29
30
  "feature.sales": "feature.sales";
30
31
  "feature.crm": "feature.crm";
31
32
  "feature.finance": "feature.finance";
@@ -127,6 +128,7 @@ declare const OrganizationModelSchema: z.ZodObject<{
127
128
  "knowledge.reference": "knowledge.reference";
128
129
  "feature.dashboard": "feature.dashboard";
129
130
  "feature.calendar": "feature.calendar";
131
+ "feature.business": "feature.business";
130
132
  "feature.sales": "feature.sales";
131
133
  "feature.crm": "feature.crm";
132
134
  "feature.finance": "feature.finance";
@@ -219,6 +221,7 @@ declare const OrganizationModelSchema: z.ZodObject<{
219
221
  "knowledge.reference": "knowledge.reference";
220
222
  "feature.dashboard": "feature.dashboard";
221
223
  "feature.calendar": "feature.calendar";
224
+ "feature.business": "feature.business";
222
225
  "feature.sales": "feature.sales";
223
226
  "feature.crm": "feature.crm";
224
227
  "feature.finance": "feature.finance";
@@ -308,6 +311,7 @@ declare const OrganizationModelSchema: z.ZodObject<{
308
311
  "knowledge.reference": "knowledge.reference";
309
312
  "feature.dashboard": "feature.dashboard";
310
313
  "feature.calendar": "feature.calendar";
314
+ "feature.business": "feature.business";
311
315
  "feature.sales": "feature.sales";
312
316
  "feature.crm": "feature.crm";
313
317
  "feature.finance": "feature.finance";
@@ -381,6 +385,7 @@ declare const OrganizationModelSchema: z.ZodObject<{
381
385
  "knowledge.reference": "knowledge.reference";
382
386
  "feature.dashboard": "feature.dashboard";
383
387
  "feature.calendar": "feature.calendar";
388
+ "feature.business": "feature.business";
384
389
  "feature.sales": "feature.sales";
385
390
  "feature.crm": "feature.crm";
386
391
  "feature.finance": "feature.finance";
@@ -455,6 +460,7 @@ declare const OrganizationModelSchema: z.ZodObject<{
455
460
  "knowledge.reference": "knowledge.reference";
456
461
  "feature.dashboard": "feature.dashboard";
457
462
  "feature.calendar": "feature.calendar";
463
+ "feature.business": "feature.business";
458
464
  "feature.sales": "feature.sales";
459
465
  "feature.crm": "feature.crm";
460
466
  "feature.finance": "feature.finance";
@@ -526,6 +532,7 @@ declare const OrganizationModelSchema: z.ZodObject<{
526
532
  "knowledge.reference": "knowledge.reference";
527
533
  "feature.dashboard": "feature.dashboard";
528
534
  "feature.calendar": "feature.calendar";
535
+ "feature.business": "feature.business";
529
536
  "feature.sales": "feature.sales";
530
537
  "feature.crm": "feature.crm";
531
538
  "feature.finance": "feature.finance";
@@ -585,11 +592,65 @@ declare const OrganizationModelSchema: z.ZodObject<{
585
592
  export: "export";
586
593
  }>>;
587
594
  stageKey: z.ZodString;
595
+ recordEntity: z.ZodOptional<z.ZodEnum<{
596
+ company: "company";
597
+ contact: "contact";
598
+ }>>;
599
+ recordsStageKey: z.ZodOptional<z.ZodString>;
600
+ recordSourceStageKey: z.ZodOptional<z.ZodString>;
588
601
  dependsOn: z.ZodOptional<z.ZodArray<z.ZodString>>;
589
602
  dependencyMode: z.ZodLiteral<"per-record-eligibility">;
590
603
  capabilityKey: z.ZodString;
591
604
  defaultBatchSize: z.ZodNumber;
592
605
  maxBatchSize: z.ZodNumber;
606
+ recordColumns: z.ZodOptional<z.ZodObject<{
607
+ company: z.ZodOptional<z.ZodArray<z.ZodObject<{
608
+ key: z.ZodString;
609
+ label: z.ZodString;
610
+ path: z.ZodString;
611
+ width: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
612
+ renderType: z.ZodOptional<z.ZodEnum<{
613
+ text: "text";
614
+ badge: "badge";
615
+ datetime: "datetime";
616
+ count: "count";
617
+ json: "json";
618
+ }>>;
619
+ badgeColor: z.ZodOptional<z.ZodString>;
620
+ }, z.core.$strip>>>;
621
+ contact: z.ZodOptional<z.ZodArray<z.ZodObject<{
622
+ key: z.ZodString;
623
+ label: z.ZodString;
624
+ path: z.ZodString;
625
+ width: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
626
+ renderType: z.ZodOptional<z.ZodEnum<{
627
+ text: "text";
628
+ badge: "badge";
629
+ datetime: "datetime";
630
+ count: "count";
631
+ json: "json";
632
+ }>>;
633
+ badgeColor: z.ZodOptional<z.ZodString>;
634
+ }, z.core.$strip>>>;
635
+ }, z.core.$strip>>;
636
+ credentialRequirements: z.ZodOptional<z.ZodArray<z.ZodObject<{
637
+ key: z.ZodString;
638
+ provider: z.ZodString;
639
+ credentialType: z.ZodEnum<{
640
+ "api-key": "api-key";
641
+ "api-key-secret": "api-key-secret";
642
+ oauth: "oauth";
643
+ "webhook-secret": "webhook-secret";
644
+ }>;
645
+ label: z.ZodString;
646
+ required: z.ZodBoolean;
647
+ selectionMode: z.ZodOptional<z.ZodEnum<{
648
+ single: "single";
649
+ multiple: "multiple";
650
+ }>>;
651
+ inputPath: z.ZodString;
652
+ verifyOnRun: z.ZodOptional<z.ZodBoolean>;
653
+ }, z.core.$strip>>>;
593
654
  }, z.core.$strip>>;
594
655
  }, z.core.$strip>>;
595
656
  }, z.core.$strip>;
@@ -619,6 +680,7 @@ declare const OrganizationModelSchema: z.ZodObject<{
619
680
  "knowledge.reference": "knowledge.reference";
620
681
  "feature.dashboard": "feature.dashboard";
621
682
  "feature.calendar": "feature.calendar";
683
+ "feature.business": "feature.business";
622
684
  "feature.sales": "feature.sales";
623
685
  "feature.crm": "feature.crm";
624
686
  "feature.finance": "feature.finance";
@@ -692,6 +754,7 @@ declare const OrganizationModelSchema: z.ZodObject<{
692
754
  "knowledge.reference": "knowledge.reference";
693
755
  "feature.dashboard": "feature.dashboard";
694
756
  "feature.calendar": "feature.calendar";
757
+ "feature.business": "feature.business";
695
758
  "feature.sales": "feature.sales";
696
759
  "feature.crm": "feature.crm";
697
760
  "feature.finance": "feature.finance";
@@ -765,6 +828,7 @@ declare const OrganizationModelSchema: z.ZodObject<{
765
828
  "knowledge.reference": "knowledge.reference";
766
829
  "feature.dashboard": "feature.dashboard";
767
830
  "feature.calendar": "feature.calendar";
831
+ "feature.business": "feature.business";
768
832
  "feature.sales": "feature.sales";
769
833
  "feature.crm": "feature.crm";
770
834
  "feature.finance": "feature.finance";
@@ -897,7 +961,26 @@ declare const OrganizationModelSchema: z.ZodObject<{
897
961
  title: z.ZodString;
898
962
  responsibilities: z.ZodDefault<z.ZodArray<z.ZodString>>;
899
963
  reportsToId: z.ZodOptional<z.ZodString>;
900
- heldBy: z.ZodOptional<z.ZodString>;
964
+ heldBy: z.ZodOptional<z.ZodUnion<readonly [z.ZodDiscriminatedUnion<[z.ZodObject<{
965
+ kind: z.ZodLiteral<"human">;
966
+ userId: z.ZodString;
967
+ }, z.core.$strip>, z.ZodObject<{
968
+ kind: z.ZodLiteral<"agent">;
969
+ agentId: z.ZodString;
970
+ }, z.core.$strip>, z.ZodObject<{
971
+ kind: z.ZodLiteral<"team">;
972
+ memberIds: z.ZodArray<z.ZodString>;
973
+ }, z.core.$strip>], "kind">, z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
974
+ kind: z.ZodLiteral<"human">;
975
+ userId: z.ZodString;
976
+ }, z.core.$strip>, z.ZodObject<{
977
+ kind: z.ZodLiteral<"agent">;
978
+ agentId: z.ZodString;
979
+ }, z.core.$strip>, z.ZodObject<{
980
+ kind: z.ZodLiteral<"team">;
981
+ memberIds: z.ZodArray<z.ZodString>;
982
+ }, z.core.$strip>], "kind">>]>>;
983
+ responsibleFor: z.ZodOptional<z.ZodArray<z.ZodString>>;
901
984
  }, z.core.$strip>>>;
902
985
  }, z.core.$strip>>;
903
986
  goals: z.ZodDefault<z.ZodObject<{
@@ -915,6 +998,70 @@ declare const OrganizationModelSchema: z.ZodObject<{
915
998
  }, z.core.$strip>>>;
916
999
  }, z.core.$strip>>>;
917
1000
  }, z.core.$strip>>;
1001
+ systems: z.ZodDefault<z.ZodObject<{
1002
+ systems: z.ZodDefault<z.ZodArray<z.ZodObject<{
1003
+ id: z.ZodString;
1004
+ title: z.ZodString;
1005
+ description: z.ZodString;
1006
+ kind: z.ZodEnum<{
1007
+ platform: "platform";
1008
+ product: "product";
1009
+ operational: "operational";
1010
+ diagnostic: "diagnostic";
1011
+ }>;
1012
+ responsibleRoleId: z.ZodOptional<z.ZodString>;
1013
+ governedByKnowledge: z.ZodDefault<z.ZodArray<z.ZodString>>;
1014
+ drivesGoals: z.ZodDefault<z.ZodArray<z.ZodString>>;
1015
+ status: z.ZodEnum<{
1016
+ active: "active";
1017
+ deprecated: "deprecated";
1018
+ archived: "archived";
1019
+ }>;
1020
+ }, z.core.$strip>>>;
1021
+ }, z.core.$strip>>;
1022
+ resources: z.ZodDefault<z.ZodObject<{
1023
+ entries: z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
1024
+ id: z.ZodString;
1025
+ systemId: z.ZodString;
1026
+ ownerRoleId: z.ZodOptional<z.ZodString>;
1027
+ status: z.ZodEnum<{
1028
+ active: "active";
1029
+ deprecated: "deprecated";
1030
+ archived: "archived";
1031
+ }>;
1032
+ kind: z.ZodLiteral<"workflow">;
1033
+ capabilityKey: z.ZodOptional<z.ZodString>;
1034
+ }, z.core.$strip>, z.ZodObject<{
1035
+ id: z.ZodString;
1036
+ systemId: z.ZodString;
1037
+ ownerRoleId: z.ZodOptional<z.ZodString>;
1038
+ status: z.ZodEnum<{
1039
+ active: "active";
1040
+ deprecated: "deprecated";
1041
+ archived: "archived";
1042
+ }>;
1043
+ kind: z.ZodLiteral<"agent">;
1044
+ agentKind: z.ZodEnum<{
1045
+ orchestrator: "orchestrator";
1046
+ specialist: "specialist";
1047
+ utility: "utility";
1048
+ system: "system";
1049
+ }>;
1050
+ actsAsRoleId: z.ZodOptional<z.ZodString>;
1051
+ sessionCapable: z.ZodBoolean;
1052
+ }, z.core.$strip>, z.ZodObject<{
1053
+ id: z.ZodString;
1054
+ systemId: z.ZodString;
1055
+ ownerRoleId: z.ZodOptional<z.ZodString>;
1056
+ status: z.ZodEnum<{
1057
+ active: "active";
1058
+ deprecated: "deprecated";
1059
+ archived: "archived";
1060
+ }>;
1061
+ kind: z.ZodLiteral<"integration">;
1062
+ provider: z.ZodString;
1063
+ }, z.core.$strip>], "kind">>>;
1064
+ }, z.core.$strip>>;
918
1065
  statuses: z.ZodDefault<z.ZodObject<{
919
1066
  entries: z.ZodDefault<z.ZodArray<z.ZodObject<{
920
1067
  id: z.ZodString;
@@ -975,6 +1122,7 @@ declare const OrganizationModelSchema: z.ZodObject<{
975
1122
  "knowledge.reference": "knowledge.reference";
976
1123
  "feature.dashboard": "feature.dashboard";
977
1124
  "feature.calendar": "feature.calendar";
1125
+ "feature.business": "feature.business";
978
1126
  "feature.sales": "feature.sales";
979
1127
  "feature.crm": "feature.crm";
980
1128
  "feature.finance": "feature.finance";
@@ -1065,6 +1213,7 @@ declare const FeatureSchema: z.ZodObject<{
1065
1213
  "knowledge.reference": "knowledge.reference";
1066
1214
  "feature.dashboard": "feature.dashboard";
1067
1215
  "feature.calendar": "feature.calendar";
1216
+ "feature.business": "feature.business";
1068
1217
  "feature.sales": "feature.sales";
1069
1218
  "feature.crm": "feature.crm";
1070
1219
  "feature.finance": "feature.finance";
@@ -1153,6 +1302,7 @@ declare const IconNameSchema: z.ZodUnion<readonly [z.ZodEnum<{
1153
1302
  "knowledge.reference": "knowledge.reference";
1154
1303
  "feature.dashboard": "feature.dashboard";
1155
1304
  "feature.calendar": "feature.calendar";
1305
+ "feature.business": "feature.business";
1156
1306
  "feature.sales": "feature.sales";
1157
1307
  "feature.crm": "feature.crm";
1158
1308
  "feature.finance": "feature.finance";
@@ -1213,7 +1363,7 @@ declare const TechStackEntrySchema: z.ZodObject<{
1213
1363
  isSystemOfRecord: z.ZodDefault<z.ZodBoolean>;
1214
1364
  }, z.core.$strip>;
1215
1365
 
1216
- declare const ORGANIZATION_MODEL_ICON_TOKENS: readonly ["nav.dashboard", "nav.calendar", "nav.sales", "nav.crm", "nav.lead-gen", "nav.projects", "nav.operations", "nav.monitoring", "nav.knowledge", "nav.settings", "nav.admin", "nav.archive", "knowledge.playbook", "knowledge.strategy", "knowledge.reference", "feature.dashboard", "feature.calendar", "feature.sales", "feature.crm", "feature.finance", "feature.lead-gen", "feature.platform", "feature.projects", "feature.operations", "feature.knowledge", "feature.monitoring", "feature.settings", "feature.admin", "feature.archive", "feature.seo", "resource.agent", "resource.workflow", "resource.integration", "resource.database", "resource.user", "resource.team", "integration.gmail", "integration.google-sheets", "integration.attio", "surface.dashboard", "surface.calendar", "surface.overview", "surface.command-view", "surface.command-queue", "surface.pipeline", "surface.lists", "surface.resources", "surface.settings", "status.success", "status.error", "status.warning", "status.info", "status.pending", "action.approve", "action.reject", "action.retry", "action.edit", "action.view", "action.launch", "action.message", "action.escalate", "action.promote", "action.submit", "action.email"];
1366
+ declare const ORGANIZATION_MODEL_ICON_TOKENS: readonly ["nav.dashboard", "nav.calendar", "nav.sales", "nav.crm", "nav.lead-gen", "nav.projects", "nav.operations", "nav.monitoring", "nav.knowledge", "nav.settings", "nav.admin", "nav.archive", "knowledge.playbook", "knowledge.strategy", "knowledge.reference", "feature.dashboard", "feature.calendar", "feature.business", "feature.sales", "feature.crm", "feature.finance", "feature.lead-gen", "feature.platform", "feature.projects", "feature.operations", "feature.knowledge", "feature.monitoring", "feature.settings", "feature.admin", "feature.archive", "feature.seo", "resource.agent", "resource.workflow", "resource.integration", "resource.database", "resource.user", "resource.team", "integration.gmail", "integration.google-sheets", "integration.attio", "surface.dashboard", "surface.calendar", "surface.overview", "surface.command-view", "surface.command-queue", "surface.pipeline", "surface.lists", "surface.resources", "surface.settings", "status.success", "status.error", "status.warning", "status.info", "status.pending", "action.approve", "action.reject", "action.retry", "action.edit", "action.view", "action.launch", "action.message", "action.escalate", "action.promote", "action.submit", "action.email"];
1217
1367
  declare const OrganizationModelBuiltinIconTokenSchema: z.ZodEnum<{
1218
1368
  "nav.dashboard": "nav.dashboard";
1219
1369
  "nav.calendar": "nav.calendar";
@@ -1232,6 +1382,7 @@ declare const OrganizationModelBuiltinIconTokenSchema: z.ZodEnum<{
1232
1382
  "knowledge.reference": "knowledge.reference";
1233
1383
  "feature.dashboard": "feature.dashboard";
1234
1384
  "feature.calendar": "feature.calendar";
1385
+ "feature.business": "feature.business";
1235
1386
  "feature.sales": "feature.sales";
1236
1387
  "feature.crm": "feature.crm";
1237
1388
  "feature.finance": "feature.finance";
@@ -1298,6 +1449,7 @@ declare const OrganizationModelIconTokenSchema: z.ZodUnion<readonly [z.ZodEnum<{
1298
1449
  "knowledge.reference": "knowledge.reference";
1299
1450
  "feature.dashboard": "feature.dashboard";
1300
1451
  "feature.calendar": "feature.calendar";
1452
+ "feature.business": "feature.business";
1301
1453
  "feature.sales": "feature.sales";
1302
1454
  "feature.crm": "feature.crm";
1303
1455
  "feature.finance": "feature.finance";
@@ -1404,6 +1556,7 @@ declare const OrganizationModelSalesSchema: z.ZodObject<{
1404
1556
  "knowledge.reference": "knowledge.reference";
1405
1557
  "feature.dashboard": "feature.dashboard";
1406
1558
  "feature.calendar": "feature.calendar";
1559
+ "feature.business": "feature.business";
1407
1560
  "feature.sales": "feature.sales";
1408
1561
  "feature.crm": "feature.crm";
1409
1562
  "feature.finance": "feature.finance";
@@ -1493,6 +1646,7 @@ declare const OrganizationModelProjectsSchema: z.ZodObject<{
1493
1646
  "knowledge.reference": "knowledge.reference";
1494
1647
  "feature.dashboard": "feature.dashboard";
1495
1648
  "feature.calendar": "feature.calendar";
1649
+ "feature.business": "feature.business";
1496
1650
  "feature.sales": "feature.sales";
1497
1651
  "feature.crm": "feature.crm";
1498
1652
  "feature.finance": "feature.finance";
@@ -1566,6 +1720,7 @@ declare const OrganizationModelProjectsSchema: z.ZodObject<{
1566
1720
  "knowledge.reference": "knowledge.reference";
1567
1721
  "feature.dashboard": "feature.dashboard";
1568
1722
  "feature.calendar": "feature.calendar";
1723
+ "feature.business": "feature.business";
1569
1724
  "feature.sales": "feature.sales";
1570
1725
  "feature.crm": "feature.crm";
1571
1726
  "feature.finance": "feature.finance";
@@ -1639,6 +1794,7 @@ declare const OrganizationModelProjectsSchema: z.ZodObject<{
1639
1794
  "knowledge.reference": "knowledge.reference";
1640
1795
  "feature.dashboard": "feature.dashboard";
1641
1796
  "feature.calendar": "feature.calendar";
1797
+ "feature.business": "feature.business";
1642
1798
  "feature.sales": "feature.sales";
1643
1799
  "feature.crm": "feature.crm";
1644
1800
  "feature.finance": "feature.finance";
@@ -1719,6 +1875,7 @@ declare const OrganizationModelProspectingSchema: z.ZodObject<{
1719
1875
  "knowledge.reference": "knowledge.reference";
1720
1876
  "feature.dashboard": "feature.dashboard";
1721
1877
  "feature.calendar": "feature.calendar";
1878
+ "feature.business": "feature.business";
1722
1879
  "feature.sales": "feature.sales";
1723
1880
  "feature.crm": "feature.crm";
1724
1881
  "feature.finance": "feature.finance";
@@ -1792,6 +1949,7 @@ declare const OrganizationModelProspectingSchema: z.ZodObject<{
1792
1949
  "knowledge.reference": "knowledge.reference";
1793
1950
  "feature.dashboard": "feature.dashboard";
1794
1951
  "feature.calendar": "feature.calendar";
1952
+ "feature.business": "feature.business";
1795
1953
  "feature.sales": "feature.sales";
1796
1954
  "feature.crm": "feature.crm";
1797
1955
  "feature.finance": "feature.finance";
@@ -1866,6 +2024,7 @@ declare const OrganizationModelProspectingSchema: z.ZodObject<{
1866
2024
  "knowledge.reference": "knowledge.reference";
1867
2025
  "feature.dashboard": "feature.dashboard";
1868
2026
  "feature.calendar": "feature.calendar";
2027
+ "feature.business": "feature.business";
1869
2028
  "feature.sales": "feature.sales";
1870
2029
  "feature.crm": "feature.crm";
1871
2030
  "feature.finance": "feature.finance";
@@ -1937,6 +2096,7 @@ declare const OrganizationModelProspectingSchema: z.ZodObject<{
1937
2096
  "knowledge.reference": "knowledge.reference";
1938
2097
  "feature.dashboard": "feature.dashboard";
1939
2098
  "feature.calendar": "feature.calendar";
2099
+ "feature.business": "feature.business";
1940
2100
  "feature.sales": "feature.sales";
1941
2101
  "feature.crm": "feature.crm";
1942
2102
  "feature.finance": "feature.finance";
@@ -1996,11 +2156,65 @@ declare const OrganizationModelProspectingSchema: z.ZodObject<{
1996
2156
  export: "export";
1997
2157
  }>>;
1998
2158
  stageKey: z.ZodString;
2159
+ recordEntity: z.ZodOptional<z.ZodEnum<{
2160
+ company: "company";
2161
+ contact: "contact";
2162
+ }>>;
2163
+ recordsStageKey: z.ZodOptional<z.ZodString>;
2164
+ recordSourceStageKey: z.ZodOptional<z.ZodString>;
1999
2165
  dependsOn: z.ZodOptional<z.ZodArray<z.ZodString>>;
2000
2166
  dependencyMode: z.ZodLiteral<"per-record-eligibility">;
2001
2167
  capabilityKey: z.ZodString;
2002
2168
  defaultBatchSize: z.ZodNumber;
2003
2169
  maxBatchSize: z.ZodNumber;
2170
+ recordColumns: z.ZodOptional<z.ZodObject<{
2171
+ company: z.ZodOptional<z.ZodArray<z.ZodObject<{
2172
+ key: z.ZodString;
2173
+ label: z.ZodString;
2174
+ path: z.ZodString;
2175
+ width: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
2176
+ renderType: z.ZodOptional<z.ZodEnum<{
2177
+ text: "text";
2178
+ badge: "badge";
2179
+ datetime: "datetime";
2180
+ count: "count";
2181
+ json: "json";
2182
+ }>>;
2183
+ badgeColor: z.ZodOptional<z.ZodString>;
2184
+ }, z.core.$strip>>>;
2185
+ contact: z.ZodOptional<z.ZodArray<z.ZodObject<{
2186
+ key: z.ZodString;
2187
+ label: z.ZodString;
2188
+ path: z.ZodString;
2189
+ width: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
2190
+ renderType: z.ZodOptional<z.ZodEnum<{
2191
+ text: "text";
2192
+ badge: "badge";
2193
+ datetime: "datetime";
2194
+ count: "count";
2195
+ json: "json";
2196
+ }>>;
2197
+ badgeColor: z.ZodOptional<z.ZodString>;
2198
+ }, z.core.$strip>>>;
2199
+ }, z.core.$strip>>;
2200
+ credentialRequirements: z.ZodOptional<z.ZodArray<z.ZodObject<{
2201
+ key: z.ZodString;
2202
+ provider: z.ZodString;
2203
+ credentialType: z.ZodEnum<{
2204
+ "api-key": "api-key";
2205
+ "api-key-secret": "api-key-secret";
2206
+ oauth: "oauth";
2207
+ "webhook-secret": "webhook-secret";
2208
+ }>;
2209
+ label: z.ZodString;
2210
+ required: z.ZodBoolean;
2211
+ selectionMode: z.ZodOptional<z.ZodEnum<{
2212
+ single: "single";
2213
+ multiple: "multiple";
2214
+ }>>;
2215
+ inputPath: z.ZodString;
2216
+ verifyOnRun: z.ZodOptional<z.ZodBoolean>;
2217
+ }, z.core.$strip>>>;
2004
2218
  }, z.core.$strip>>;
2005
2219
  }, z.core.$strip>>;
2006
2220
  }, z.core.$strip>;
@@ -2163,12 +2377,73 @@ declare const OfferingsDomainSchema: z.ZodObject<{
2163
2377
  }, z.core.$strip>;
2164
2378
  declare const DEFAULT_ORGANIZATION_MODEL_OFFERINGS: z.infer<typeof OfferingsDomainSchema>;
2165
2379
 
2380
+ declare const RoleIdSchema: z.ZodString;
2381
+ declare const HumanRoleHolderSchema: z.ZodObject<{
2382
+ kind: z.ZodLiteral<"human">;
2383
+ userId: z.ZodString;
2384
+ }, z.core.$strip>;
2385
+ declare const AgentRoleHolderSchema: z.ZodObject<{
2386
+ kind: z.ZodLiteral<"agent">;
2387
+ agentId: z.ZodString;
2388
+ }, z.core.$strip>;
2389
+ declare const TeamRoleHolderSchema: z.ZodObject<{
2390
+ kind: z.ZodLiteral<"team">;
2391
+ memberIds: z.ZodArray<z.ZodString>;
2392
+ }, z.core.$strip>;
2393
+ declare const RoleHolderSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
2394
+ kind: z.ZodLiteral<"human">;
2395
+ userId: z.ZodString;
2396
+ }, z.core.$strip>, z.ZodObject<{
2397
+ kind: z.ZodLiteral<"agent">;
2398
+ agentId: z.ZodString;
2399
+ }, z.core.$strip>, z.ZodObject<{
2400
+ kind: z.ZodLiteral<"team">;
2401
+ memberIds: z.ZodArray<z.ZodString>;
2402
+ }, z.core.$strip>], "kind">;
2403
+ declare const RoleHoldersSchema: z.ZodUnion<readonly [z.ZodDiscriminatedUnion<[z.ZodObject<{
2404
+ kind: z.ZodLiteral<"human">;
2405
+ userId: z.ZodString;
2406
+ }, z.core.$strip>, z.ZodObject<{
2407
+ kind: z.ZodLiteral<"agent">;
2408
+ agentId: z.ZodString;
2409
+ }, z.core.$strip>, z.ZodObject<{
2410
+ kind: z.ZodLiteral<"team">;
2411
+ memberIds: z.ZodArray<z.ZodString>;
2412
+ }, z.core.$strip>], "kind">, z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
2413
+ kind: z.ZodLiteral<"human">;
2414
+ userId: z.ZodString;
2415
+ }, z.core.$strip>, z.ZodObject<{
2416
+ kind: z.ZodLiteral<"agent">;
2417
+ agentId: z.ZodString;
2418
+ }, z.core.$strip>, z.ZodObject<{
2419
+ kind: z.ZodLiteral<"team">;
2420
+ memberIds: z.ZodArray<z.ZodString>;
2421
+ }, z.core.$strip>], "kind">>]>;
2166
2422
  declare const RoleSchema: z.ZodObject<{
2167
2423
  id: z.ZodString;
2168
2424
  title: z.ZodString;
2169
2425
  responsibilities: z.ZodDefault<z.ZodArray<z.ZodString>>;
2170
2426
  reportsToId: z.ZodOptional<z.ZodString>;
2171
- heldBy: z.ZodOptional<z.ZodString>;
2427
+ heldBy: z.ZodOptional<z.ZodUnion<readonly [z.ZodDiscriminatedUnion<[z.ZodObject<{
2428
+ kind: z.ZodLiteral<"human">;
2429
+ userId: z.ZodString;
2430
+ }, z.core.$strip>, z.ZodObject<{
2431
+ kind: z.ZodLiteral<"agent">;
2432
+ agentId: z.ZodString;
2433
+ }, z.core.$strip>, z.ZodObject<{
2434
+ kind: z.ZodLiteral<"team">;
2435
+ memberIds: z.ZodArray<z.ZodString>;
2436
+ }, z.core.$strip>], "kind">, z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
2437
+ kind: z.ZodLiteral<"human">;
2438
+ userId: z.ZodString;
2439
+ }, z.core.$strip>, z.ZodObject<{
2440
+ kind: z.ZodLiteral<"agent">;
2441
+ agentId: z.ZodString;
2442
+ }, z.core.$strip>, z.ZodObject<{
2443
+ kind: z.ZodLiteral<"team">;
2444
+ memberIds: z.ZodArray<z.ZodString>;
2445
+ }, z.core.$strip>], "kind">>]>>;
2446
+ responsibleFor: z.ZodOptional<z.ZodArray<z.ZodString>>;
2172
2447
  }, z.core.$strip>;
2173
2448
  declare const RolesDomainSchema: z.ZodObject<{
2174
2449
  roles: z.ZodDefault<z.ZodArray<z.ZodObject<{
@@ -2176,7 +2451,26 @@ declare const RolesDomainSchema: z.ZodObject<{
2176
2451
  title: z.ZodString;
2177
2452
  responsibilities: z.ZodDefault<z.ZodArray<z.ZodString>>;
2178
2453
  reportsToId: z.ZodOptional<z.ZodString>;
2179
- heldBy: z.ZodOptional<z.ZodString>;
2454
+ heldBy: z.ZodOptional<z.ZodUnion<readonly [z.ZodDiscriminatedUnion<[z.ZodObject<{
2455
+ kind: z.ZodLiteral<"human">;
2456
+ userId: z.ZodString;
2457
+ }, z.core.$strip>, z.ZodObject<{
2458
+ kind: z.ZodLiteral<"agent">;
2459
+ agentId: z.ZodString;
2460
+ }, z.core.$strip>, z.ZodObject<{
2461
+ kind: z.ZodLiteral<"team">;
2462
+ memberIds: z.ZodArray<z.ZodString>;
2463
+ }, z.core.$strip>], "kind">, z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
2464
+ kind: z.ZodLiteral<"human">;
2465
+ userId: z.ZodString;
2466
+ }, z.core.$strip>, z.ZodObject<{
2467
+ kind: z.ZodLiteral<"agent">;
2468
+ agentId: z.ZodString;
2469
+ }, z.core.$strip>, z.ZodObject<{
2470
+ kind: z.ZodLiteral<"team">;
2471
+ memberIds: z.ZodArray<z.ZodString>;
2472
+ }, z.core.$strip>], "kind">>]>>;
2473
+ responsibleFor: z.ZodOptional<z.ZodArray<z.ZodString>>;
2180
2474
  }, z.core.$strip>>>;
2181
2475
  }, z.core.$strip>;
2182
2476
  declare const DEFAULT_ORGANIZATION_MODEL_ROLES: z.infer<typeof RolesDomainSchema>;
@@ -2253,6 +2547,7 @@ declare const OrgKnowledgeNodeSchema: z.ZodObject<{
2253
2547
  "knowledge.reference": "knowledge.reference";
2254
2548
  "feature.dashboard": "feature.dashboard";
2255
2549
  "feature.calendar": "feature.calendar";
2550
+ "feature.business": "feature.business";
2256
2551
  "feature.sales": "feature.sales";
2257
2552
  "feature.crm": "feature.crm";
2258
2553
  "feature.finance": "feature.finance";
@@ -2338,6 +2633,7 @@ declare const KnowledgeDomainSchema: z.ZodObject<{
2338
2633
  "knowledge.reference": "knowledge.reference";
2339
2634
  "feature.dashboard": "feature.dashboard";
2340
2635
  "feature.calendar": "feature.calendar";
2636
+ "feature.business": "feature.business";
2341
2637
  "feature.sales": "feature.sales";
2342
2638
  "feature.crm": "feature.crm";
2343
2639
  "feature.finance": "feature.finance";
@@ -2397,6 +2693,209 @@ declare const KnowledgeDomainSchema: z.ZodObject<{
2397
2693
  }, z.core.$strip>>>;
2398
2694
  }, z.core.$strip>;
2399
2695
 
2696
+ declare const SystemKindSchema: z.ZodEnum<{
2697
+ platform: "platform";
2698
+ product: "product";
2699
+ operational: "operational";
2700
+ diagnostic: "diagnostic";
2701
+ }>;
2702
+ declare const SystemStatusSchema: z.ZodEnum<{
2703
+ active: "active";
2704
+ deprecated: "deprecated";
2705
+ archived: "archived";
2706
+ }>;
2707
+ declare const SystemIdSchema: z.ZodString;
2708
+ declare const SystemEntrySchema: z.ZodObject<{
2709
+ id: z.ZodString;
2710
+ title: z.ZodString;
2711
+ description: z.ZodString;
2712
+ kind: z.ZodEnum<{
2713
+ platform: "platform";
2714
+ product: "product";
2715
+ operational: "operational";
2716
+ diagnostic: "diagnostic";
2717
+ }>;
2718
+ responsibleRoleId: z.ZodOptional<z.ZodString>;
2719
+ governedByKnowledge: z.ZodDefault<z.ZodArray<z.ZodString>>;
2720
+ drivesGoals: z.ZodDefault<z.ZodArray<z.ZodString>>;
2721
+ status: z.ZodEnum<{
2722
+ active: "active";
2723
+ deprecated: "deprecated";
2724
+ archived: "archived";
2725
+ }>;
2726
+ }, z.core.$strip>;
2727
+ declare const SystemsDomainSchema: z.ZodObject<{
2728
+ systems: z.ZodDefault<z.ZodArray<z.ZodObject<{
2729
+ id: z.ZodString;
2730
+ title: z.ZodString;
2731
+ description: z.ZodString;
2732
+ kind: z.ZodEnum<{
2733
+ platform: "platform";
2734
+ product: "product";
2735
+ operational: "operational";
2736
+ diagnostic: "diagnostic";
2737
+ }>;
2738
+ responsibleRoleId: z.ZodOptional<z.ZodString>;
2739
+ governedByKnowledge: z.ZodDefault<z.ZodArray<z.ZodString>>;
2740
+ drivesGoals: z.ZodDefault<z.ZodArray<z.ZodString>>;
2741
+ status: z.ZodEnum<{
2742
+ active: "active";
2743
+ deprecated: "deprecated";
2744
+ archived: "archived";
2745
+ }>;
2746
+ }, z.core.$strip>>>;
2747
+ }, z.core.$strip>;
2748
+ declare const DEFAULT_ORGANIZATION_MODEL_SYSTEMS: z.infer<typeof SystemsDomainSchema>;
2749
+
2750
+ declare const ResourceKindSchema: z.ZodEnum<{
2751
+ agent: "agent";
2752
+ workflow: "workflow";
2753
+ integration: "integration";
2754
+ }>;
2755
+ declare const ResourceGovernanceStatusSchema: z.ZodEnum<{
2756
+ active: "active";
2757
+ deprecated: "deprecated";
2758
+ archived: "archived";
2759
+ }>;
2760
+ declare const AgentKindSchema: z.ZodEnum<{
2761
+ orchestrator: "orchestrator";
2762
+ specialist: "specialist";
2763
+ utility: "utility";
2764
+ system: "system";
2765
+ }>;
2766
+ declare const ResourceIdSchema: z.ZodString;
2767
+ declare const WorkflowResourceEntrySchema: z.ZodObject<{
2768
+ id: z.ZodString;
2769
+ systemId: z.ZodString;
2770
+ ownerRoleId: z.ZodOptional<z.ZodString>;
2771
+ status: z.ZodEnum<{
2772
+ active: "active";
2773
+ deprecated: "deprecated";
2774
+ archived: "archived";
2775
+ }>;
2776
+ kind: z.ZodLiteral<"workflow">;
2777
+ capabilityKey: z.ZodOptional<z.ZodString>;
2778
+ }, z.core.$strip>;
2779
+ declare const AgentResourceEntrySchema: z.ZodObject<{
2780
+ id: z.ZodString;
2781
+ systemId: z.ZodString;
2782
+ ownerRoleId: z.ZodOptional<z.ZodString>;
2783
+ status: z.ZodEnum<{
2784
+ active: "active";
2785
+ deprecated: "deprecated";
2786
+ archived: "archived";
2787
+ }>;
2788
+ kind: z.ZodLiteral<"agent">;
2789
+ agentKind: z.ZodEnum<{
2790
+ orchestrator: "orchestrator";
2791
+ specialist: "specialist";
2792
+ utility: "utility";
2793
+ system: "system";
2794
+ }>;
2795
+ actsAsRoleId: z.ZodOptional<z.ZodString>;
2796
+ sessionCapable: z.ZodBoolean;
2797
+ }, z.core.$strip>;
2798
+ declare const IntegrationResourceEntrySchema: z.ZodObject<{
2799
+ id: z.ZodString;
2800
+ systemId: z.ZodString;
2801
+ ownerRoleId: z.ZodOptional<z.ZodString>;
2802
+ status: z.ZodEnum<{
2803
+ active: "active";
2804
+ deprecated: "deprecated";
2805
+ archived: "archived";
2806
+ }>;
2807
+ kind: z.ZodLiteral<"integration">;
2808
+ provider: z.ZodString;
2809
+ }, z.core.$strip>;
2810
+ declare const ResourceEntrySchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
2811
+ id: z.ZodString;
2812
+ systemId: z.ZodString;
2813
+ ownerRoleId: z.ZodOptional<z.ZodString>;
2814
+ status: z.ZodEnum<{
2815
+ active: "active";
2816
+ deprecated: "deprecated";
2817
+ archived: "archived";
2818
+ }>;
2819
+ kind: z.ZodLiteral<"workflow">;
2820
+ capabilityKey: z.ZodOptional<z.ZodString>;
2821
+ }, z.core.$strip>, z.ZodObject<{
2822
+ id: z.ZodString;
2823
+ systemId: z.ZodString;
2824
+ ownerRoleId: z.ZodOptional<z.ZodString>;
2825
+ status: z.ZodEnum<{
2826
+ active: "active";
2827
+ deprecated: "deprecated";
2828
+ archived: "archived";
2829
+ }>;
2830
+ kind: z.ZodLiteral<"agent">;
2831
+ agentKind: z.ZodEnum<{
2832
+ orchestrator: "orchestrator";
2833
+ specialist: "specialist";
2834
+ utility: "utility";
2835
+ system: "system";
2836
+ }>;
2837
+ actsAsRoleId: z.ZodOptional<z.ZodString>;
2838
+ sessionCapable: z.ZodBoolean;
2839
+ }, z.core.$strip>, z.ZodObject<{
2840
+ id: z.ZodString;
2841
+ systemId: z.ZodString;
2842
+ ownerRoleId: z.ZodOptional<z.ZodString>;
2843
+ status: z.ZodEnum<{
2844
+ active: "active";
2845
+ deprecated: "deprecated";
2846
+ archived: "archived";
2847
+ }>;
2848
+ kind: z.ZodLiteral<"integration">;
2849
+ provider: z.ZodString;
2850
+ }, z.core.$strip>], "kind">;
2851
+ declare const ResourcesDomainSchema: z.ZodObject<{
2852
+ entries: z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
2853
+ id: z.ZodString;
2854
+ systemId: z.ZodString;
2855
+ ownerRoleId: z.ZodOptional<z.ZodString>;
2856
+ status: z.ZodEnum<{
2857
+ active: "active";
2858
+ deprecated: "deprecated";
2859
+ archived: "archived";
2860
+ }>;
2861
+ kind: z.ZodLiteral<"workflow">;
2862
+ capabilityKey: z.ZodOptional<z.ZodString>;
2863
+ }, z.core.$strip>, z.ZodObject<{
2864
+ id: z.ZodString;
2865
+ systemId: z.ZodString;
2866
+ ownerRoleId: z.ZodOptional<z.ZodString>;
2867
+ status: z.ZodEnum<{
2868
+ active: "active";
2869
+ deprecated: "deprecated";
2870
+ archived: "archived";
2871
+ }>;
2872
+ kind: z.ZodLiteral<"agent">;
2873
+ agentKind: z.ZodEnum<{
2874
+ orchestrator: "orchestrator";
2875
+ specialist: "specialist";
2876
+ utility: "utility";
2877
+ system: "system";
2878
+ }>;
2879
+ actsAsRoleId: z.ZodOptional<z.ZodString>;
2880
+ sessionCapable: z.ZodBoolean;
2881
+ }, z.core.$strip>, z.ZodObject<{
2882
+ id: z.ZodString;
2883
+ systemId: z.ZodString;
2884
+ ownerRoleId: z.ZodOptional<z.ZodString>;
2885
+ status: z.ZodEnum<{
2886
+ active: "active";
2887
+ deprecated: "deprecated";
2888
+ archived: "archived";
2889
+ }>;
2890
+ kind: z.ZodLiteral<"integration">;
2891
+ provider: z.ZodString;
2892
+ }, z.core.$strip>], "kind">>>;
2893
+ }, z.core.$strip>;
2894
+ declare const DEFAULT_ORGANIZATION_MODEL_RESOURCES: z.infer<typeof ResourcesDomainSchema>;
2895
+ declare function defineResource<const TResource extends ResourceEntry>(resource: TResource): TResource;
2896
+ declare function defineResources<const TResources extends Record<string, ResourceEntry>>(resources: TResources): TResources;
2897
+ type ResourceEntry = z.infer<typeof ResourceEntrySchema>;
2898
+
2400
2899
  type OrganizationModel = z.infer<typeof OrganizationModelSchema>;
2401
2900
  type OrganizationModelBranding = z.infer<typeof OrganizationModelBrandingSchema>;
2402
2901
  type OrganizationModelSales = z.infer<typeof OrganizationModelSalesSchema>;
@@ -2420,9 +2919,28 @@ type OrganizationModelProduct = z.infer<typeof ProductSchema>;
2420
2919
  type OrganizationModelPricingModel = z.infer<typeof PricingModelSchema>;
2421
2920
  type OrganizationModelRoles = z.infer<typeof RolesDomainSchema>;
2422
2921
  type OrganizationModelRole = z.infer<typeof RoleSchema>;
2922
+ type OrganizationModelRoleId = z.infer<typeof RoleIdSchema>;
2923
+ type OrganizationModelRoleHolder = z.infer<typeof RoleHolderSchema>;
2924
+ type OrganizationModelHumanRoleHolder = z.infer<typeof HumanRoleHolderSchema>;
2925
+ type OrganizationModelAgentRoleHolder = z.infer<typeof AgentRoleHolderSchema>;
2926
+ type OrganizationModelTeamRoleHolder = z.infer<typeof TeamRoleHolderSchema>;
2423
2927
  type OrganizationModelGoals = z.infer<typeof GoalsDomainSchema>;
2424
2928
  type OrganizationModelObjective = z.infer<typeof ObjectiveSchema>;
2425
2929
  type OrganizationModelKeyResult = z.infer<typeof KeyResultSchema>;
2930
+ type OrganizationModelSystems = z.infer<typeof SystemsDomainSchema>;
2931
+ type OrganizationModelSystemEntry = z.infer<typeof SystemEntrySchema>;
2932
+ type OrganizationModelSystemId = z.infer<typeof SystemIdSchema>;
2933
+ type OrganizationModelSystemKind = z.infer<typeof SystemKindSchema>;
2934
+ type OrganizationModelSystemStatus = z.infer<typeof SystemStatusSchema>;
2935
+ type OrganizationModelResources = z.infer<typeof ResourcesDomainSchema>;
2936
+ type OrganizationModelResourceEntry = z.infer<typeof ResourceEntrySchema>;
2937
+ type OrganizationModelResourceId = z.infer<typeof ResourceIdSchema>;
2938
+ type OrganizationModelResourceKind = z.infer<typeof ResourceKindSchema>;
2939
+ type OrganizationModelResourceGovernanceStatus = z.infer<typeof ResourceGovernanceStatusSchema>;
2940
+ type OrganizationModelAgentKind = z.infer<typeof AgentKindSchema>;
2941
+ type OrganizationModelWorkflowResourceEntry = z.infer<typeof WorkflowResourceEntrySchema>;
2942
+ type OrganizationModelAgentResourceEntry = z.infer<typeof AgentResourceEntrySchema>;
2943
+ type OrganizationModelIntegrationResourceEntry = z.infer<typeof IntegrationResourceEntrySchema>;
2426
2944
  type OrganizationModelKnowledge = z.infer<typeof KnowledgeDomainSchema>;
2427
2945
  type OrgKnowledgeNode = z.infer<typeof OrgKnowledgeNodeSchema>;
2428
2946
  type OrgKnowledgeKind = z.infer<typeof OrgKnowledgeKindSchema>;
@@ -2476,5 +2994,5 @@ declare function createFoundationOrganizationModel(override: DeepPartial<Organiz
2476
2994
  getOrganizationSurface: (surfaceId: string) => FoundationNavigationSurface | undefined;
2477
2995
  };
2478
2996
 
2479
- export { CustomerSegmentSchema, CustomersDomainSchema, DEFAULT_ORGANIZATION_MODEL, DEFAULT_ORGANIZATION_MODEL_CUSTOMERS, DEFAULT_ORGANIZATION_MODEL_GOALS, DEFAULT_ORGANIZATION_MODEL_OFFERINGS, DEFAULT_ORGANIZATION_MODEL_OPERATIONS, DEFAULT_ORGANIZATION_MODEL_ROLES, DEFAULT_ORGANIZATION_MODEL_STATUSES, FeatureSchema, FirmographicsSchema, GoalsDomainSchema, IconNameSchema, KNOWLEDGE_FEATURE_ID, KeyResultSchema, KnowledgeDomainSchema, KnowledgeLinkSchema, LinkSchema, MONITORING_FEATURE_ID, NodeIdPathSchema, NodeIdStringSchema, OPERATIONS_COMMAND_VIEW_SURFACE_ID, OPERATIONS_FEATURE_ID, ORGANIZATION_MODEL_ICON_TOKENS, ObjectiveSchema, OfferingsDomainSchema, OperationEntrySchema, OperationSemanticClassSchema, OperationsDomainSchema, OrgKnowledgeKindSchema, OrgKnowledgeNodeSchema, OrganizationModelBuiltinIconTokenSchema, OrganizationModelIconTokenSchema, OrganizationModelSchema, PROJECTS_FEATURE_ID, PROJECTS_INDEX_SURFACE_ID, PROJECTS_VIEW_CAPABILITY_ID, PROSPECTING_FEATURE_ID, PROSPECTING_LISTS_SURFACE_ID, PricingModelSchema, ProductSchema, RoleSchema, RolesDomainSchema, SALES_FEATURE_ID, SALES_PIPELINE_SURFACE_ID, SEO_FEATURE_ID, SETTINGS_FEATURE_ID, SETTINGS_ROLES_SURFACE_ID, StatusEntrySchema, StatusSemanticClassSchema, StatusesDomainSchema, TechStackEntrySchema, UiPositionSchema, createFoundationOrganizationModel, defineOrganizationModel, resolveOrganizationModel };
2480
- export type { DeepPartial, FoundationBranding, FoundationNavigationSurface, FoundationOrganizationModel, FoundationSurfaceIcon, FoundationSurfaceType, NodeIdPath, NodeIdString, OrgKnowledgeKind, OrgKnowledgeNode, OrganizationModel, OrganizationModelBranding, OrganizationModelBuiltinIconToken, OrganizationModelCustomerFirmographics, OrganizationModelCustomerSegment, OrganizationModelCustomers, OrganizationModelFeature, OrganizationModelGoals, OrganizationModelIconToken, OrganizationModelKeyResult, OrganizationModelKnowledge, OrganizationModelObjective, OrganizationModelOfferings, OrganizationModelOperationEntry, OrganizationModelOperationSemanticClass, OrganizationModelOperations, OrganizationModelPricingModel, OrganizationModelProduct, OrganizationModelProjects, OrganizationModelProspecting, OrganizationModelRole, OrganizationModelRoles, OrganizationModelSales, OrganizationModelStatusEntry, OrganizationModelStatusSemanticClass, OrganizationModelStatuses, OrganizationModelTechStackEntry };
2997
+ export { AgentKindSchema, AgentResourceEntrySchema, AgentRoleHolderSchema, CustomerSegmentSchema, CustomersDomainSchema, DEFAULT_ORGANIZATION_MODEL, DEFAULT_ORGANIZATION_MODEL_CUSTOMERS, DEFAULT_ORGANIZATION_MODEL_GOALS, DEFAULT_ORGANIZATION_MODEL_OFFERINGS, DEFAULT_ORGANIZATION_MODEL_OPERATIONS, DEFAULT_ORGANIZATION_MODEL_RESOURCES, DEFAULT_ORGANIZATION_MODEL_ROLES, DEFAULT_ORGANIZATION_MODEL_STATUSES, DEFAULT_ORGANIZATION_MODEL_SYSTEMS, FeatureSchema, FirmographicsSchema, GoalsDomainSchema, HumanRoleHolderSchema, IconNameSchema, IntegrationResourceEntrySchema, KNOWLEDGE_FEATURE_ID, KeyResultSchema, KnowledgeDomainSchema, KnowledgeLinkSchema, LinkSchema, MONITORING_FEATURE_ID, NodeIdPathSchema, NodeIdStringSchema, OPERATIONS_COMMAND_VIEW_SURFACE_ID, OPERATIONS_FEATURE_ID, ORGANIZATION_MODEL_ICON_TOKENS, ObjectiveSchema, OfferingsDomainSchema, OperationEntrySchema, OperationSemanticClassSchema, OperationsDomainSchema, OrgKnowledgeKindSchema, OrgKnowledgeNodeSchema, OrganizationModelBuiltinIconTokenSchema, OrganizationModelIconTokenSchema, OrganizationModelSchema, PROJECTS_FEATURE_ID, PROJECTS_INDEX_SURFACE_ID, PROJECTS_VIEW_CAPABILITY_ID, PROSPECTING_FEATURE_ID, PROSPECTING_LISTS_SURFACE_ID, PricingModelSchema, ProductSchema, ResourceEntrySchema, ResourceGovernanceStatusSchema, ResourceIdSchema, ResourceKindSchema, ResourcesDomainSchema, RoleHolderSchema, RoleHoldersSchema, RoleIdSchema, RoleSchema, RolesDomainSchema, SALES_FEATURE_ID, SALES_PIPELINE_SURFACE_ID, SEO_FEATURE_ID, SETTINGS_FEATURE_ID, SETTINGS_ROLES_SURFACE_ID, StatusEntrySchema, StatusSemanticClassSchema, StatusesDomainSchema, SystemEntrySchema, SystemIdSchema, SystemKindSchema, SystemStatusSchema, SystemsDomainSchema, TeamRoleHolderSchema, TechStackEntrySchema, UiPositionSchema, WorkflowResourceEntrySchema, createFoundationOrganizationModel, defineOrganizationModel, defineResource, defineResources, resolveOrganizationModel };
2998
+ export type { DeepPartial, FoundationBranding, FoundationNavigationSurface, FoundationOrganizationModel, FoundationSurfaceIcon, FoundationSurfaceType, NodeIdPath, NodeIdString, OrgKnowledgeKind, OrgKnowledgeNode, OrganizationModel, OrganizationModelAgentKind, OrganizationModelAgentResourceEntry, OrganizationModelAgentRoleHolder, OrganizationModelBranding, OrganizationModelBuiltinIconToken, OrganizationModelCustomerFirmographics, OrganizationModelCustomerSegment, OrganizationModelCustomers, OrganizationModelFeature, OrganizationModelGoals, OrganizationModelHumanRoleHolder, OrganizationModelIconToken, OrganizationModelIntegrationResourceEntry, OrganizationModelKeyResult, OrganizationModelKnowledge, OrganizationModelObjective, OrganizationModelOfferings, OrganizationModelOperationEntry, OrganizationModelOperationSemanticClass, OrganizationModelOperations, OrganizationModelPricingModel, OrganizationModelProduct, OrganizationModelProjects, OrganizationModelProspecting, OrganizationModelResourceEntry, OrganizationModelResourceGovernanceStatus, OrganizationModelResourceId, OrganizationModelResourceKind, OrganizationModelResources, OrganizationModelRole, OrganizationModelRoleHolder, OrganizationModelRoleId, OrganizationModelRoles, OrganizationModelSales, OrganizationModelStatusEntry, OrganizationModelStatusSemanticClass, OrganizationModelStatuses, OrganizationModelSystemEntry, OrganizationModelSystemId, OrganizationModelSystemKind, OrganizationModelSystemStatus, OrganizationModelSystems, OrganizationModelTeamRoleHolder, OrganizationModelTechStackEntry, OrganizationModelWorkflowResourceEntry };