@elevasis/ui 2.41.1 → 2.43.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 (57) hide show
  1. package/dist/api/index.js +3 -3
  2. package/dist/app/index.d.ts +74 -3
  3. package/dist/app/index.js +3 -3
  4. package/dist/auth/index.js +3 -3
  5. package/dist/charts/index.js +3 -3
  6. package/dist/{chunk-QDXTIQT4.js → chunk-FUKNHVUV.js} +205 -415
  7. package/dist/{chunk-7FJI76OH.js → chunk-NVVAQNKE.js} +1 -1
  8. package/dist/{chunk-V5HWC5EW.js → chunk-UECAFQKT.js} +1 -1
  9. package/dist/{chunk-5M4HSHQ5.js → chunk-XDEUR36B.js} +388 -25
  10. package/dist/components/index.d.ts +8 -1
  11. package/dist/components/index.js +3 -3
  12. package/dist/components/navigation/index.js +3 -3
  13. package/dist/features/auth/index.d.ts +3 -0
  14. package/dist/features/auth/index.js +4 -4
  15. package/dist/features/clients/index.d.ts +6 -3
  16. package/dist/features/clients/index.js +80 -19
  17. package/dist/features/crm/index.d.ts +3 -0
  18. package/dist/features/crm/index.js +3 -3
  19. package/dist/features/dashboard/index.d.ts +5 -1
  20. package/dist/features/dashboard/index.js +3 -3
  21. package/dist/features/delivery/index.d.ts +3 -0
  22. package/dist/features/delivery/index.js +3 -3
  23. package/dist/features/knowledge/index.js +3 -3
  24. package/dist/features/lead-gen/index.d.ts +77 -4
  25. package/dist/features/lead-gen/index.js +3 -3
  26. package/dist/features/monitoring/index.js +3 -3
  27. package/dist/features/monitoring/requests/index.js +4 -4
  28. package/dist/features/operations/index.d.ts +71 -3
  29. package/dist/features/operations/index.js +3 -3
  30. package/dist/features/settings/index.d.ts +3 -0
  31. package/dist/features/settings/index.js +3 -3
  32. package/dist/hooks/access/index.js +3 -3
  33. package/dist/hooks/delivery/index.d.ts +3 -0
  34. package/dist/hooks/delivery/index.js +3 -3
  35. package/dist/hooks/index.d.ts +38 -19
  36. package/dist/hooks/index.js +3 -3
  37. package/dist/hooks/operations/command-view/utils/transformCommandViewData.d.ts +5 -1
  38. package/dist/hooks/published.d.ts +38 -19
  39. package/dist/hooks/published.js +3 -3
  40. package/dist/index.d.ts +104 -21
  41. package/dist/index.js +4 -4
  42. package/dist/initialization/index.d.ts +3 -0
  43. package/dist/knowledge/index.d.ts +76 -7
  44. package/dist/knowledge/index.js +68 -8
  45. package/dist/layout/index.js +3 -3
  46. package/dist/organization/index.js +3 -3
  47. package/dist/profile/index.d.ts +3 -0
  48. package/dist/provider/index.d.ts +74 -3
  49. package/dist/provider/index.js +3 -3
  50. package/dist/provider/published.d.ts +74 -3
  51. package/dist/provider/published.js +3 -3
  52. package/dist/supabase/index.d.ts +6 -0
  53. package/dist/test-utils/index.js +3 -3
  54. package/dist/types/index.d.ts +8 -1
  55. package/dist/utils/index.d.ts +5 -1
  56. package/dist/utils/index.js +1 -1
  57. package/package.json +5 -5
@@ -105,7 +105,11 @@ declare const SystemApiInterfaceSchema: z.ZodObject<{
105
105
  archived: "archived";
106
106
  disabled: "disabled";
107
107
  }>>;
108
- readinessProfile: z.ZodOptional<z.ZodString>;
108
+ readinessProfile: z.ZodOptional<z.ZodEnum<{
109
+ "sales.lead-gen.api": "sales.lead-gen.api";
110
+ "sales.crm.api": "sales.crm.api";
111
+ "sales.lead-gen.crm-handoff": "sales.lead-gen.crm-handoff";
112
+ }>>;
109
113
  resourceIds: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString>>>;
110
114
  }, z.core.$strict>;
111
115
  type JsonPrimitive = string | number | boolean | null;
@@ -277,6 +281,7 @@ declare const OrgKnowledgeNodeSchema: z.ZodObject<{
277
281
  action: "action";
278
282
  ontology: "ontology";
279
283
  role: "role";
284
+ client: "client";
280
285
  stage: "stage";
281
286
  goal: "goal";
282
287
  "customer-segment": "customer-segment";
@@ -288,7 +293,7 @@ declare const OrgKnowledgeNodeSchema: z.ZodObject<{
288
293
  nodeId: z.ZodUnion<readonly [z.ZodString, z.ZodTemplateLiteral<`ontology:${string}`>]>;
289
294
  }, z.core.$strip>]>, z.ZodTransform<{
290
295
  target: {
291
- kind: "knowledge" | "system" | "resource" | "action" | "ontology" | "role" | "stage" | "goal" | "customer-segment" | "offering";
296
+ kind: "knowledge" | "system" | "resource" | "action" | "ontology" | "role" | "client" | "stage" | "goal" | "customer-segment" | "offering";
292
297
  id: string;
293
298
  };
294
299
  nodeId: string;
@@ -296,7 +301,7 @@ declare const OrgKnowledgeNodeSchema: z.ZodObject<{
296
301
  nodeId: string;
297
302
  } | {
298
303
  target: {
299
- kind: "knowledge" | "system" | "resource" | "action" | "ontology" | "role" | "stage" | "goal" | "customer-segment" | "offering";
304
+ kind: "knowledge" | "system" | "resource" | "action" | "ontology" | "role" | "client" | "stage" | "goal" | "customer-segment" | "offering";
300
305
  id: string;
301
306
  };
302
307
  }>>>>;
@@ -371,6 +376,7 @@ type OrganizationModelIconToken = z.infer<typeof OrganizationModelIconTokenSchem
371
376
 
372
377
  declare const OrganizationModelSchema: z.ZodObject<{
373
378
  version: z.ZodDefault<z.ZodLiteral<1>>;
379
+ snapshotHash: z.ZodOptional<z.ZodString>;
374
380
  domainMetadata: z.ZodPipe<z.ZodDefault<z.ZodObject<{
375
381
  branding: z.ZodOptional<z.ZodObject<{
376
382
  version: z.ZodDefault<z.ZodLiteral<1>>;
@@ -380,6 +386,10 @@ declare const OrganizationModelSchema: z.ZodObject<{
380
386
  version: z.ZodDefault<z.ZodLiteral<1>>;
381
387
  lastModified: z.ZodString;
382
388
  }, z.core.$strip>>;
389
+ clients: z.ZodOptional<z.ZodObject<{
390
+ version: z.ZodDefault<z.ZodLiteral<1>>;
391
+ lastModified: z.ZodString;
392
+ }, z.core.$strip>>;
383
393
  customers: z.ZodOptional<z.ZodObject<{
384
394
  version: z.ZodDefault<z.ZodLiteral<1>>;
385
395
  lastModified: z.ZodString;
@@ -437,6 +447,10 @@ declare const OrganizationModelSchema: z.ZodObject<{
437
447
  version: 1;
438
448
  lastModified: string;
439
449
  };
450
+ clients: {
451
+ version: 1;
452
+ lastModified: string;
453
+ };
440
454
  customers: {
441
455
  version: 1;
442
456
  lastModified: string;
@@ -494,6 +508,10 @@ declare const OrganizationModelSchema: z.ZodObject<{
494
508
  version: 1;
495
509
  lastModified: string;
496
510
  } | undefined;
511
+ clients?: {
512
+ version: 1;
513
+ lastModified: string;
514
+ } | undefined;
497
515
  customers?: {
498
516
  version: 1;
499
517
  lastModified: string;
@@ -686,6 +704,56 @@ declare const OrganizationModelSchema: z.ZodObject<{
686
704
  shortName: z.ZodOptional<z.ZodString>;
687
705
  description: z.ZodOptional<z.ZodString>;
688
706
  }, z.core.$loose>>;
707
+ clients: z.ZodDefault<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
708
+ id: z.ZodString;
709
+ slug: z.ZodString;
710
+ name: z.ZodString;
711
+ status: z.ZodDefault<z.ZodEnum<{
712
+ active: "active";
713
+ onboarding: "onboarding";
714
+ paused: "paused";
715
+ completed: "completed";
716
+ churned: "churned";
717
+ }>>;
718
+ source: z.ZodOptional<z.ZodString>;
719
+ identity: z.ZodDefault<z.ZodObject<{
720
+ organizationName: z.ZodOptional<z.ZodString>;
721
+ shortName: z.ZodOptional<z.ZodString>;
722
+ clientBrief: z.ZodDefault<z.ZodString>;
723
+ geographicFocus: z.ZodDefault<z.ZodArray<z.ZodString>>;
724
+ timeZone: z.ZodDefault<z.ZodString>;
725
+ }, z.core.$loose>>;
726
+ branding: z.ZodDefault<z.ZodObject<{
727
+ voice: z.ZodOptional<z.ZodString>;
728
+ tagline: z.ZodOptional<z.ZodString>;
729
+ values: z.ZodDefault<z.ZodArray<z.ZodString>>;
730
+ }, z.core.$loose>>;
731
+ workspace: z.ZodDefault<z.ZodObject<{
732
+ kind: z.ZodOptional<z.ZodEnum<{
733
+ "external-project": "external-project";
734
+ "internal-project": "internal-project";
735
+ none: "none";
736
+ }>>;
737
+ owner: z.ZodOptional<z.ZodEnum<{
738
+ platform: "platform";
739
+ client: "client";
740
+ developer: "developer";
741
+ }>>;
742
+ projectId: z.ZodOptional<z.ZodString>;
743
+ workspacePath: z.ZodOptional<z.ZodString>;
744
+ }, z.core.$loose>>;
745
+ links: z.ZodDefault<z.ZodObject<{
746
+ projectIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
747
+ primaryCompanyId: z.ZodOptional<z.ZodString>;
748
+ primaryContactId: z.ZodOptional<z.ZodString>;
749
+ sourceDealId: z.ZodOptional<z.ZodString>;
750
+ }, z.core.$strip>>;
751
+ prompts: z.ZodDefault<z.ZodObject<{
752
+ defaultContext: z.ZodDefault<z.ZodString>;
753
+ }, z.core.$loose>>;
754
+ config: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>>>;
755
+ customValues: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>>>;
756
+ }, z.core.$strict>>>>;
689
757
  customers: z.ZodDefault<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
690
758
  id: z.ZodString;
691
759
  order: z.ZodNumber;
@@ -1339,6 +1407,7 @@ declare const OrganizationModelSchema: z.ZodObject<{
1339
1407
  action: "action";
1340
1408
  ontology: "ontology";
1341
1409
  role: "role";
1410
+ client: "client";
1342
1411
  stage: "stage";
1343
1412
  goal: "goal";
1344
1413
  "customer-segment": "customer-segment";
@@ -1350,7 +1419,7 @@ declare const OrganizationModelSchema: z.ZodObject<{
1350
1419
  nodeId: z.ZodUnion<readonly [z.ZodString, z.ZodTemplateLiteral<`ontology:${string}`>]>;
1351
1420
  }, z.core.$strip>]>, z.ZodTransform<{
1352
1421
  target: {
1353
- kind: "knowledge" | "system" | "resource" | "action" | "ontology" | "role" | "stage" | "goal" | "customer-segment" | "offering";
1422
+ kind: "knowledge" | "system" | "resource" | "action" | "ontology" | "role" | "client" | "stage" | "goal" | "customer-segment" | "offering";
1354
1423
  id: string;
1355
1424
  };
1356
1425
  nodeId: string;
@@ -1358,7 +1427,7 @@ declare const OrganizationModelSchema: z.ZodObject<{
1358
1427
  nodeId: string;
1359
1428
  } | {
1360
1429
  target: {
1361
- kind: "knowledge" | "system" | "resource" | "action" | "ontology" | "role" | "stage" | "goal" | "customer-segment" | "offering";
1430
+ kind: "knowledge" | "system" | "resource" | "action" | "ontology" | "role" | "client" | "stage" | "goal" | "customer-segment" | "offering";
1362
1431
  id: string;
1363
1432
  };
1364
1433
  }>>>>;
@@ -1390,7 +1459,7 @@ type OrgKnowledgeKind = z.infer<typeof OrgKnowledgeKindSchema>;
1390
1459
  */
1391
1460
  type RelationshipType = 'triggers' | 'uses' | 'approval';
1392
1461
 
1393
- type OrganizationGraphNodeKind = 'organization' | 'system' | 'role' | 'action' | 'entity' | 'event' | 'policy' | 'stage' | 'resource' | 'knowledge' | 'customer-segment' | 'offering' | 'goal' | 'surface' | 'navigation-group' | 'ontology';
1462
+ type OrganizationGraphNodeKind = 'organization' | 'system' | 'client' | 'role' | 'action' | 'entity' | 'event' | 'policy' | 'stage' | 'resource' | 'knowledge' | 'customer-segment' | 'offering' | 'goal' | 'surface' | 'navigation-group' | 'ontology';
1394
1463
  type OrganizationGraphEdgeKind = 'contains' | 'references' | 'maps_to' | 'uses' | 'governs' | 'links' | 'affects' | 'emits' | 'originates_from' | 'triggers' | 'approval' | 'applies_to' | 'effects' | 'actions' | 'reads' | 'writes' | 'uses_catalog';
1395
1464
 
1396
1465
  interface OrganizationGraphNode {
@@ -1735,7 +1804,7 @@ interface DescribeNodeViewProps {
1735
1804
  */
1736
1805
  declare function DescribeNodeView({ node, graph, organizationModel, knowledgeNodes, onNavigateToNode }: DescribeNodeViewProps): react_jsx_runtime.JSX.Element;
1737
1806
 
1738
- type DomainPanelKey = 'identity' | 'branding' | 'customers' | 'offerings' | 'goals' | 'roles' | 'statuses' | 'navigation' | 'policies' | 'ontology-objects' | 'ontology-links' | 'ontology-actions' | 'ontology-catalogs' | 'ontology-events' | 'ontology-interfaces' | 'ontology-value-types' | 'ontology-properties' | 'ontology-groups' | 'ontology-surfaces' | 'ontology-resources';
1807
+ type DomainPanelKey = 'identity' | 'branding' | 'customers' | 'clients' | 'offerings' | 'goals' | 'roles' | 'statuses' | 'navigation' | 'policies' | 'ontology-objects' | 'ontology-links' | 'ontology-actions' | 'ontology-catalogs' | 'ontology-events' | 'ontology-interfaces' | 'ontology-value-types' | 'ontology-properties' | 'ontology-groups' | 'ontology-surfaces' | 'ontology-resources';
1739
1808
  interface DomainPanelDispatcherProps {
1740
1809
  domainKey: string;
1741
1810
  model: OrganizationModel;
@@ -1,5 +1,5 @@
1
- import { SemanticIcon, getKnowledgeIconToken, PageContainer, SystemEntrySchema, getKnowledgeGraphNodeCommand, IdentityDomainSchema, WorkflowResourceEntrySchema, AgentResourceEntrySchema, IntegrationResourceEntrySchema, ScriptResourceEntrySchema, getKnowledgeNodeReadCommand, getKnowledgeOntologyProjection, getPrimaryOntologyItemsForDomain, projectNavigationSurfaces, projectNavigationGroups, SurfaceDefinitionSchema, RoleSchema, PolicySchema, EntitySchema, ActionSchema, getOntologyDomainLabel, getKnowledgeDomainFolderCommand, getKnowledgeTreeFolderCommand, KNOWLEDGE_DOMAINS_WITH_PANELS } from '../chunk-QDXTIQT4.js';
2
- export { KNOWLEDGE_ICON_TOKEN_BY_KIND, KnowledgeSearchBar, KnowledgeTree, OM_TREE_GROUPS, SemanticIcon, extendSemanticIconRegistry, getKnowledgeIconToken, getSemanticIconComponent, getSharedOrganizationGraph, resolveSemanticIconComponent } from '../chunk-QDXTIQT4.js';
1
+ import { SemanticIcon, getKnowledgeIconToken, PageContainer, getKnowledgeGraphNodeCommand, IdentityDomainSchema, WorkflowResourceEntrySchema, AgentResourceEntrySchema, IntegrationResourceEntrySchema, ScriptResourceEntrySchema, getKnowledgeNodeReadCommand, getKnowledgeOntologyProjection, getPrimaryOntologyItemsForDomain, projectNavigationSurfaces, projectNavigationGroups, SurfaceDefinitionSchema, RoleSchema, PolicySchema, getOntologyDomainLabel, getKnowledgeDomainFolderCommand, getKnowledgeTreeFolderCommand, KNOWLEDGE_DOMAINS_WITH_PANELS } from '../chunk-FUKNHVUV.js';
2
+ export { KNOWLEDGE_ICON_TOKEN_BY_KIND, KnowledgeSearchBar, KnowledgeTree, OM_TREE_GROUPS, SemanticIcon, extendSemanticIconRegistry, getKnowledgeIconToken, getSemanticIconComponent, getSharedOrganizationGraph, resolveSemanticIconComponent } from '../chunk-FUKNHVUV.js';
3
3
  import { usePresetsContext } from '../chunk-NZ2F5RQ4.js';
4
4
  import '../chunk-OJJK27GC.js';
5
5
  import '../chunk-AUDNF2Q7.js';
@@ -10,7 +10,7 @@ import '../chunk-SJHM4WDG.js';
10
10
  import '../chunk-ZTWA5H77.js';
11
11
  import '../chunk-S3XR4II4.js';
12
12
  import '../chunk-6DO4PE3O.js';
13
- import '../chunk-7FJI76OH.js';
13
+ import '../chunk-NVVAQNKE.js';
14
14
  import '../chunk-DD3CCMCZ.js';
15
15
  import '../chunk-GMXGDO3I.js';
16
16
  import '../chunk-2IFYDILW.js';
@@ -19,7 +19,7 @@ import '../chunk-HENXLGVD.js';
19
19
  import '../chunk-7FPLLSHN.js';
20
20
  import '../chunk-RNP5R5I3.js';
21
21
  import '../chunk-W2SFTXMT.js';
22
- import { getSystem, OntologyIdSchema, ontologyGraphNodeId, compileOrganizationOntology, parseOntologyId } from '../chunk-5M4HSHQ5.js';
22
+ import { getSystem, SystemEntrySchema, EntitySchema, ActionSchema, OntologyIdSchema, ontologyGraphNodeId, compileOrganizationOntology, parseOntologyId } from '../chunk-XDEUR36B.js';
23
23
  import '../chunk-KRWALB24.js';
24
24
  import '../chunk-2FTX4WO2.js';
25
25
  import '../chunk-MQZE7SUI.js';
@@ -9080,6 +9080,62 @@ function ThemeSwatchRow({ tokens }) {
9080
9080
  /* @__PURE__ */ jsx(Text, { size: "xs", c: "dimmed", ta: "center", children: label })
9081
9081
  ] }, label)) });
9082
9082
  }
9083
+ function formatLabel(value) {
9084
+ return value.split(/[-_]/).filter(Boolean).map((part) => part.charAt(0).toUpperCase() + part.slice(1)).join(" ");
9085
+ }
9086
+ function ClientsPanel({ model, filterToItemId }) {
9087
+ const clients = Object.values(model.clients).filter((client) => !filterToItemId || client.id === filterToItemId).sort((left, right) => left.slug.localeCompare(right.slug));
9088
+ if (clients.length === 0) {
9089
+ return /* @__PURE__ */ jsxs(Stack, { p: "md", gap: "sm", children: [
9090
+ /* @__PURE__ */ jsx(
9091
+ KnowledgePageHeader,
9092
+ {
9093
+ title: "Clients",
9094
+ kind: "Domain",
9095
+ tone: "subtle",
9096
+ copyCommand: getKnowledgeDomainFolderCommand("clients")
9097
+ }
9098
+ ),
9099
+ /* @__PURE__ */ jsx(Text, { size: "sm", c: "dimmed", children: filterToItemId ? "Client profile not found." : "No client profiles defined yet." })
9100
+ ] });
9101
+ }
9102
+ return /* @__PURE__ */ jsxs(Stack, { p: "md", gap: "md", children: [
9103
+ /* @__PURE__ */ jsx(
9104
+ KnowledgePageHeader,
9105
+ {
9106
+ title: "Clients",
9107
+ kind: "Domain",
9108
+ tone: "subtle",
9109
+ copyCommand: getKnowledgeDomainFolderCommand("clients")
9110
+ }
9111
+ ),
9112
+ /* @__PURE__ */ jsxs(Text, { size: "sm", c: "dimmed", children: [
9113
+ clients.length,
9114
+ " client profile",
9115
+ clients.length === 1 ? "" : "s",
9116
+ " defined."
9117
+ ] }),
9118
+ /* @__PURE__ */ jsx(Divider, {}),
9119
+ /* @__PURE__ */ jsx(Stack, { gap: "md", children: clients.map((client) => /* @__PURE__ */ jsx(Card, { withBorder: true, padding: "md", style: { background: "var(--color-surface)" }, children: /* @__PURE__ */ jsxs(Stack, { gap: "sm", children: [
9120
+ /* @__PURE__ */ jsxs(Group, { gap: "xs", justify: "space-between", wrap: "nowrap", children: [
9121
+ /* @__PURE__ */ jsxs(Stack, { gap: 2, style: { minWidth: 0 }, children: [
9122
+ /* @__PURE__ */ jsx(Text, { fw: 600, size: "sm", lineClamp: 1, children: client.name }),
9123
+ /* @__PURE__ */ jsx(Text, { size: "xs", c: "dimmed", lineClamp: 1, children: client.slug })
9124
+ ] }),
9125
+ /* @__PURE__ */ jsxs(Group, { gap: "xs", wrap: "nowrap", style: { flexShrink: 0 }, children: [
9126
+ /* @__PURE__ */ jsx(Badge, { variant: "light", size: "sm", children: formatLabel(client.status) }),
9127
+ client.source ? /* @__PURE__ */ jsx(Badge, { variant: "outline", size: "sm", children: formatLabel(client.source) }) : null
9128
+ ] })
9129
+ ] }),
9130
+ client.identity.clientBrief ? /* @__PURE__ */ jsx(Text, { size: "sm", c: "dimmed", children: client.identity.clientBrief }) : null,
9131
+ /* @__PURE__ */ jsxs(Group, { gap: "xs", wrap: "wrap", children: [
9132
+ client.workspace.kind ? /* @__PURE__ */ jsx(Badge, { variant: "light", color: "gray", size: "sm", children: formatLabel(client.workspace.kind) }) : null,
9133
+ client.workspace.owner ? /* @__PURE__ */ jsx(Badge, { variant: "light", color: "gray", size: "sm", children: formatLabel(client.workspace.owner) }) : null,
9134
+ client.workspace.projectId ? /* @__PURE__ */ jsx(Badge, { variant: "light", color: "gray", size: "sm", children: client.workspace.projectId }) : null
9135
+ ] })
9136
+ ] }) }, client.id)) })
9137
+ ] });
9138
+ }
9083
9139
  function CustomersPanel({ model, filterToItemId }) {
9084
9140
  const customers = model.customers;
9085
9141
  const segments = Object.values(customers).filter((segment) => !filterToItemId || segment.id === filterToItemId).sort((a, b) => a.order - b.order);
@@ -9088,20 +9144,20 @@ function CustomersPanel({ model, filterToItemId }) {
9088
9144
  /* @__PURE__ */ jsx(
9089
9145
  KnowledgePageHeader,
9090
9146
  {
9091
- title: "Customers",
9147
+ title: "ICP",
9092
9148
  kind: "Domain",
9093
9149
  tone: "subtle",
9094
9150
  copyCommand: getKnowledgeDomainFolderCommand("customers")
9095
9151
  }
9096
9152
  ),
9097
- /* @__PURE__ */ jsx(Text, { size: "sm", c: "dimmed", children: filterToItemId ? "Customer segment not found." : "No customer segments defined yet." })
9153
+ /* @__PURE__ */ jsx(Text, { size: "sm", c: "dimmed", children: filterToItemId ? "ICP segment not found." : "No ICP segments defined yet." })
9098
9154
  ] });
9099
9155
  }
9100
9156
  return /* @__PURE__ */ jsxs(Stack, { p: "md", gap: "md", children: [
9101
9157
  /* @__PURE__ */ jsx(
9102
9158
  KnowledgePageHeader,
9103
9159
  {
9104
- title: "Customers",
9160
+ title: "ICP",
9105
9161
  kind: "Domain",
9106
9162
  tone: "subtle",
9107
9163
  copyCommand: getKnowledgeDomainFolderCommand("customers")
@@ -9109,7 +9165,7 @@ function CustomersPanel({ model, filterToItemId }) {
9109
9165
  ),
9110
9166
  /* @__PURE__ */ jsxs(Text, { size: "sm", c: "dimmed", children: [
9111
9167
  segments.length,
9112
- " segment",
9168
+ " ICP segment",
9113
9169
  segments.length === 1 ? "" : "s",
9114
9170
  " defined."
9115
9171
  ] }),
@@ -10043,6 +10099,8 @@ function DomainPanel({
10043
10099
  return /* @__PURE__ */ jsx(BrandingPanel, { model, onNavigateToNode });
10044
10100
  case "customers":
10045
10101
  return /* @__PURE__ */ jsx(CustomersPanel, { model, onNavigateToNode, filterToItemId });
10102
+ case "clients":
10103
+ return /* @__PURE__ */ jsx(ClientsPanel, { model, filterToItemId });
10046
10104
  case "offerings":
10047
10105
  return /* @__PURE__ */ jsx(OfferingsPanel, { model, onNavigateToNode, filterToItemId });
10048
10106
  case "goals":
@@ -10726,6 +10784,8 @@ function DomainPanelDispatcher({
10726
10784
  return /* @__PURE__ */ jsx(DomainPanelFrame, { children: /* @__PURE__ */ jsx(BrandingPanel, { model, onNavigateToNode }) });
10727
10785
  case "customers":
10728
10786
  return /* @__PURE__ */ jsx(DomainPanelFrame, { children: /* @__PURE__ */ jsx(CustomersPanel, { model, onNavigateToNode, filterToItemId }) });
10787
+ case "clients":
10788
+ return /* @__PURE__ */ jsx(DomainPanelFrame, { children: /* @__PURE__ */ jsx(ClientsPanel, { model, filterToItemId }) });
10729
10789
  case "offerings":
10730
10790
  return /* @__PURE__ */ jsx(DomainPanelFrame, { children: /* @__PURE__ */ jsx(OfferingsPanel, { model, onNavigateToNode, filterToItemId }) });
10731
10791
  case "goals":
@@ -1,4 +1,4 @@
1
- export { AppShellCenteredContainer, AppShellContainer, AppShellContentContainer, AppShellError, AppShellLoader, AppShellRightSideContainer, AppShellRightSideOuterContainer, AppTopbarAdjusterWrapper, CollapsibleSidebarGroup, CyberParticles, LinksGroup, PageContainer, Sidebar, SidebarContext, SidebarProvider, SubshellContainer, SubshellContentContainer, SubshellLoader, SubshellNavList, SubshellRightSideContainer, SubshellSidebar, SubshellSidebarLoader, Topbar, TopbarActions, TopbarContainer, Vignette, subsidebarWidth, useSidebar, useSidebarCollapse } from '../chunk-QDXTIQT4.js';
1
+ export { AppShellCenteredContainer, AppShellContainer, AppShellContentContainer, AppShellError, AppShellLoader, AppShellRightSideContainer, AppShellRightSideOuterContainer, AppTopbarAdjusterWrapper, CollapsibleSidebarGroup, CyberParticles, LinksGroup, PageContainer, Sidebar, SidebarContext, SidebarProvider, SubshellContainer, SubshellContentContainer, SubshellLoader, SubshellNavList, SubshellRightSideContainer, SubshellSidebar, SubshellSidebarLoader, Topbar, TopbarActions, TopbarContainer, Vignette, subsidebarWidth, useSidebar, useSidebarCollapse } from '../chunk-FUKNHVUV.js';
2
2
  import '../chunk-NZ2F5RQ4.js';
3
3
  export { AmbientBloomGrid, AppBackground, CyberBackground, FilmGrain, FloatingMotes, FloatingOrbs, PerspectiveGrid, RadiantGlow, WaveBackground } from '../chunk-OJJK27GC.js';
4
4
  import '../chunk-AUDNF2Q7.js';
@@ -9,7 +9,7 @@ import '../chunk-SJHM4WDG.js';
9
9
  import '../chunk-ZTWA5H77.js';
10
10
  import '../chunk-S3XR4II4.js';
11
11
  import '../chunk-6DO4PE3O.js';
12
- import '../chunk-7FJI76OH.js';
12
+ import '../chunk-NVVAQNKE.js';
13
13
  import '../chunk-DD3CCMCZ.js';
14
14
  export { SubshellNavItem, SubshellSidebarSection, sidebarBottomSectionCollapsedHeight, sidebarBottomSectionHeight, sidebarCollapsedWidth, sidebarGroupChevronSize, sidebarHoverDelay, sidebarIconInnerSize, sidebarIconSize, sidebarIconStroke, sidebarItemGap, sidebarItemHeight, sidebarItemPadding, sidebarSectionPadding, sidebarSubLinkIndent, sidebarSubLinkPaddingX, sidebarSubLinkPaddingY, sidebarToggleIconSize, sidebarTransitionDuration, sidebarWidth, subshellNavItemIconSize, topbarHeight } from '../chunk-GMXGDO3I.js';
15
15
  import '../chunk-2IFYDILW.js';
@@ -18,7 +18,7 @@ import '../chunk-HENXLGVD.js';
18
18
  import '../chunk-7FPLLSHN.js';
19
19
  import '../chunk-RNP5R5I3.js';
20
20
  import '../chunk-W2SFTXMT.js';
21
- import '../chunk-5M4HSHQ5.js';
21
+ import '../chunk-XDEUR36B.js';
22
22
  import '../chunk-KRWALB24.js';
23
23
  import '../chunk-2FTX4WO2.js';
24
24
  import '../chunk-MQZE7SUI.js';
@@ -1,4 +1,4 @@
1
- export { OrganizationProvider, OrganizationSwitcher, OrganizationSwitcherConnected, createOrganizationsSlice, createUseOrgInitialization, createUseOrganizations } from '../chunk-QDXTIQT4.js';
1
+ export { OrganizationProvider, OrganizationSwitcher, OrganizationSwitcherConnected, createOrganizationsSlice, createUseOrgInitialization, createUseOrganizations } from '../chunk-FUKNHVUV.js';
2
2
  import '../chunk-NZ2F5RQ4.js';
3
3
  import '../chunk-OJJK27GC.js';
4
4
  import '../chunk-AUDNF2Q7.js';
@@ -9,7 +9,7 @@ import '../chunk-SJHM4WDG.js';
9
9
  import '../chunk-ZTWA5H77.js';
10
10
  import '../chunk-S3XR4II4.js';
11
11
  import '../chunk-6DO4PE3O.js';
12
- import '../chunk-7FJI76OH.js';
12
+ import '../chunk-NVVAQNKE.js';
13
13
  export { OrganizationContext, useOrganization } from '../chunk-DD3CCMCZ.js';
14
14
  import '../chunk-GMXGDO3I.js';
15
15
  import '../chunk-2IFYDILW.js';
@@ -18,7 +18,7 @@ import '../chunk-HENXLGVD.js';
18
18
  import '../chunk-7FPLLSHN.js';
19
19
  import '../chunk-RNP5R5I3.js';
20
20
  import '../chunk-W2SFTXMT.js';
21
- import '../chunk-5M4HSHQ5.js';
21
+ import '../chunk-XDEUR36B.js';
22
22
  import '../chunk-KRWALB24.js';
23
23
  import '../chunk-2FTX4WO2.js';
24
24
  import '../chunk-MQZE7SUI.js';
@@ -1252,6 +1252,7 @@ type Database = {
1252
1252
  organization_id: string;
1253
1253
  primary_company_id: string | null;
1254
1254
  primary_contact_id: string | null;
1255
+ source: string;
1255
1256
  source_deal_id: string | null;
1256
1257
  status: string;
1257
1258
  updated_at: string;
@@ -1265,6 +1266,7 @@ type Database = {
1265
1266
  organization_id: string;
1266
1267
  primary_company_id?: string | null;
1267
1268
  primary_contact_id?: string | null;
1269
+ source?: string;
1268
1270
  source_deal_id?: string | null;
1269
1271
  status?: string;
1270
1272
  updated_at?: string;
@@ -1278,6 +1280,7 @@ type Database = {
1278
1280
  organization_id?: string;
1279
1281
  primary_company_id?: string | null;
1280
1282
  primary_contact_id?: string | null;
1283
+ source?: string;
1281
1284
  source_deal_id?: string | null;
1282
1285
  status?: string;
1283
1286
  updated_at?: string;
@@ -1355,6 +1355,7 @@ type Database = {
1355
1355
  organization_id: string;
1356
1356
  primary_company_id: string | null;
1357
1357
  primary_contact_id: string | null;
1358
+ source: string;
1358
1359
  source_deal_id: string | null;
1359
1360
  status: string;
1360
1361
  updated_at: string;
@@ -1368,6 +1369,7 @@ type Database = {
1368
1369
  organization_id: string;
1369
1370
  primary_company_id?: string | null;
1370
1371
  primary_contact_id?: string | null;
1372
+ source?: string;
1371
1373
  source_deal_id?: string | null;
1372
1374
  status?: string;
1373
1375
  updated_at?: string;
@@ -1381,6 +1383,7 @@ type Database = {
1381
1383
  organization_id?: string;
1382
1384
  primary_company_id?: string | null;
1383
1385
  primary_contact_id?: string | null;
1386
+ source?: string;
1384
1387
  source_deal_id?: string | null;
1385
1388
  status?: string;
1386
1389
  updated_at?: string;
@@ -3524,7 +3527,11 @@ declare const SystemApiInterfaceSchema: z$1.ZodObject<{
3524
3527
  archived: "archived";
3525
3528
  disabled: "disabled";
3526
3529
  }>>;
3527
- readinessProfile: z$1.ZodOptional<z$1.ZodString>;
3530
+ readinessProfile: z$1.ZodOptional<z$1.ZodEnum<{
3531
+ "sales.lead-gen.api": "sales.lead-gen.api";
3532
+ "sales.crm.api": "sales.crm.api";
3533
+ "sales.lead-gen.crm-handoff": "sales.lead-gen.crm-handoff";
3534
+ }>>;
3528
3535
  resourceIds: z$1.ZodOptional<z$1.ZodDefault<z$1.ZodArray<z$1.ZodString>>>;
3529
3536
  }, z$1.core.$strict>;
3530
3537
  type JsonPrimitive = string | number | boolean | null;
@@ -3610,6 +3617,7 @@ type SidebarNode = SidebarSurfaceNode | SidebarGroupNode;
3610
3617
 
3611
3618
  declare const OrganizationModelSchema: z$1.ZodObject<{
3612
3619
  version: z$1.ZodDefault<z$1.ZodLiteral<1>>;
3620
+ snapshotHash: z$1.ZodOptional<z$1.ZodString>;
3613
3621
  domainMetadata: z$1.ZodPipe<z$1.ZodDefault<z$1.ZodObject<{
3614
3622
  branding: z$1.ZodOptional<z$1.ZodObject<{
3615
3623
  version: z$1.ZodDefault<z$1.ZodLiteral<1>>;
@@ -3619,6 +3627,10 @@ declare const OrganizationModelSchema: z$1.ZodObject<{
3619
3627
  version: z$1.ZodDefault<z$1.ZodLiteral<1>>;
3620
3628
  lastModified: z$1.ZodString;
3621
3629
  }, z$1.core.$strip>>;
3630
+ clients: z$1.ZodOptional<z$1.ZodObject<{
3631
+ version: z$1.ZodDefault<z$1.ZodLiteral<1>>;
3632
+ lastModified: z$1.ZodString;
3633
+ }, z$1.core.$strip>>;
3622
3634
  customers: z$1.ZodOptional<z$1.ZodObject<{
3623
3635
  version: z$1.ZodDefault<z$1.ZodLiteral<1>>;
3624
3636
  lastModified: z$1.ZodString;
@@ -3676,6 +3688,10 @@ declare const OrganizationModelSchema: z$1.ZodObject<{
3676
3688
  version: 1;
3677
3689
  lastModified: string;
3678
3690
  };
3691
+ clients: {
3692
+ version: 1;
3693
+ lastModified: string;
3694
+ };
3679
3695
  customers: {
3680
3696
  version: 1;
3681
3697
  lastModified: string;
@@ -3733,6 +3749,10 @@ declare const OrganizationModelSchema: z$1.ZodObject<{
3733
3749
  version: 1;
3734
3750
  lastModified: string;
3735
3751
  } | undefined;
3752
+ clients?: {
3753
+ version: 1;
3754
+ lastModified: string;
3755
+ } | undefined;
3736
3756
  customers?: {
3737
3757
  version: 1;
3738
3758
  lastModified: string;
@@ -3925,6 +3945,56 @@ declare const OrganizationModelSchema: z$1.ZodObject<{
3925
3945
  shortName: z$1.ZodOptional<z$1.ZodString>;
3926
3946
  description: z$1.ZodOptional<z$1.ZodString>;
3927
3947
  }, z$1.core.$loose>>;
3948
+ clients: z$1.ZodDefault<z$1.ZodDefault<z$1.ZodRecord<z$1.ZodString, z$1.ZodObject<{
3949
+ id: z$1.ZodString;
3950
+ slug: z$1.ZodString;
3951
+ name: z$1.ZodString;
3952
+ status: z$1.ZodDefault<z$1.ZodEnum<{
3953
+ active: "active";
3954
+ onboarding: "onboarding";
3955
+ paused: "paused";
3956
+ completed: "completed";
3957
+ churned: "churned";
3958
+ }>>;
3959
+ source: z$1.ZodOptional<z$1.ZodString>;
3960
+ identity: z$1.ZodDefault<z$1.ZodObject<{
3961
+ organizationName: z$1.ZodOptional<z$1.ZodString>;
3962
+ shortName: z$1.ZodOptional<z$1.ZodString>;
3963
+ clientBrief: z$1.ZodDefault<z$1.ZodString>;
3964
+ geographicFocus: z$1.ZodDefault<z$1.ZodArray<z$1.ZodString>>;
3965
+ timeZone: z$1.ZodDefault<z$1.ZodString>;
3966
+ }, z$1.core.$loose>>;
3967
+ branding: z$1.ZodDefault<z$1.ZodObject<{
3968
+ voice: z$1.ZodOptional<z$1.ZodString>;
3969
+ tagline: z$1.ZodOptional<z$1.ZodString>;
3970
+ values: z$1.ZodDefault<z$1.ZodArray<z$1.ZodString>>;
3971
+ }, z$1.core.$loose>>;
3972
+ workspace: z$1.ZodDefault<z$1.ZodObject<{
3973
+ kind: z$1.ZodOptional<z$1.ZodEnum<{
3974
+ "external-project": "external-project";
3975
+ "internal-project": "internal-project";
3976
+ none: "none";
3977
+ }>>;
3978
+ owner: z$1.ZodOptional<z$1.ZodEnum<{
3979
+ platform: "platform";
3980
+ client: "client";
3981
+ developer: "developer";
3982
+ }>>;
3983
+ projectId: z$1.ZodOptional<z$1.ZodString>;
3984
+ workspacePath: z$1.ZodOptional<z$1.ZodString>;
3985
+ }, z$1.core.$loose>>;
3986
+ links: z$1.ZodDefault<z$1.ZodObject<{
3987
+ projectIds: z$1.ZodDefault<z$1.ZodArray<z$1.ZodString>>;
3988
+ primaryCompanyId: z$1.ZodOptional<z$1.ZodString>;
3989
+ primaryContactId: z$1.ZodOptional<z$1.ZodString>;
3990
+ sourceDealId: z$1.ZodOptional<z$1.ZodString>;
3991
+ }, z$1.core.$strip>>;
3992
+ prompts: z$1.ZodDefault<z$1.ZodObject<{
3993
+ defaultContext: z$1.ZodDefault<z$1.ZodString>;
3994
+ }, z$1.core.$loose>>;
3995
+ config: z$1.ZodDefault<z$1.ZodRecord<z$1.ZodString, z$1.ZodType<JsonValue, unknown, z$1.core.$ZodTypeInternals<JsonValue, unknown>>>>;
3996
+ customValues: z$1.ZodDefault<z$1.ZodRecord<z$1.ZodString, z$1.ZodType<JsonValue, unknown, z$1.core.$ZodTypeInternals<JsonValue, unknown>>>>;
3997
+ }, z$1.core.$strict>>>>;
3928
3998
  customers: z$1.ZodDefault<z$1.ZodDefault<z$1.ZodRecord<z$1.ZodString, z$1.ZodObject<{
3929
3999
  id: z$1.ZodString;
3930
4000
  order: z$1.ZodNumber;
@@ -4578,6 +4648,7 @@ declare const OrganizationModelSchema: z$1.ZodObject<{
4578
4648
  action: "action";
4579
4649
  ontology: "ontology";
4580
4650
  role: "role";
4651
+ client: "client";
4581
4652
  stage: "stage";
4582
4653
  goal: "goal";
4583
4654
  "customer-segment": "customer-segment";
@@ -4589,7 +4660,7 @@ declare const OrganizationModelSchema: z$1.ZodObject<{
4589
4660
  nodeId: z$1.ZodUnion<readonly [z$1.ZodString, z$1.ZodTemplateLiteral<`ontology:${string}`>]>;
4590
4661
  }, z$1.core.$strip>]>, z$1.ZodTransform<{
4591
4662
  target: {
4592
- kind: "knowledge" | "system" | "resource" | "action" | "ontology" | "role" | "stage" | "goal" | "customer-segment" | "offering";
4663
+ kind: "knowledge" | "system" | "resource" | "action" | "ontology" | "role" | "client" | "stage" | "goal" | "customer-segment" | "offering";
4593
4664
  id: string;
4594
4665
  };
4595
4666
  nodeId: string;
@@ -4597,7 +4668,7 @@ declare const OrganizationModelSchema: z$1.ZodObject<{
4597
4668
  nodeId: string;
4598
4669
  } | {
4599
4670
  target: {
4600
- kind: "knowledge" | "system" | "resource" | "action" | "ontology" | "role" | "stage" | "goal" | "customer-segment" | "offering";
4671
+ kind: "knowledge" | "system" | "resource" | "action" | "ontology" | "role" | "client" | "stage" | "goal" | "customer-segment" | "offering";
4601
4672
  id: string;
4602
4673
  };
4603
4674
  }>>>>;
@@ -1,4 +1,4 @@
1
- export { AppearanceProvider, CrmActionsProvider, ElevasisCoreProvider, ElevasisSystemsProvider, ElevasisUIProvider, ListActionsProvider, NotificationProvider, SystemShell, createTestSystemsProvider, useAppearance, useCrmActions, useElevasisSystems, useListActions, useNotificationAdapter, useOptionalElevasisSystems, useResolvedOrganizationModel } from '../chunk-QDXTIQT4.js';
1
+ export { AppearanceProvider, CrmActionsProvider, ElevasisCoreProvider, ElevasisSystemsProvider, ElevasisUIProvider, ListActionsProvider, NotificationProvider, SystemShell, createTestSystemsProvider, useAppearance, useCrmActions, useElevasisSystems, useListActions, useNotificationAdapter, useOptionalElevasisSystems, useResolvedOrganizationModel } from '../chunk-FUKNHVUV.js';
2
2
  import '../chunk-NZ2F5RQ4.js';
3
3
  import '../chunk-OJJK27GC.js';
4
4
  import '../chunk-AUDNF2Q7.js';
@@ -9,7 +9,7 @@ import '../chunk-SJHM4WDG.js';
9
9
  import '../chunk-ZTWA5H77.js';
10
10
  import '../chunk-S3XR4II4.js';
11
11
  import '../chunk-6DO4PE3O.js';
12
- import '../chunk-7FJI76OH.js';
12
+ import '../chunk-NVVAQNKE.js';
13
13
  import '../chunk-DD3CCMCZ.js';
14
14
  import '../chunk-GMXGDO3I.js';
15
15
  import '../chunk-2IFYDILW.js';
@@ -18,7 +18,7 @@ import '../chunk-HENXLGVD.js';
18
18
  import '../chunk-7FPLLSHN.js';
19
19
  import '../chunk-RNP5R5I3.js';
20
20
  import '../chunk-W2SFTXMT.js';
21
- import '../chunk-5M4HSHQ5.js';
21
+ import '../chunk-XDEUR36B.js';
22
22
  import '../chunk-KRWALB24.js';
23
23
  export { ElevasisServiceProvider, useElevasisServices } from '../chunk-2FTX4WO2.js';
24
24
  import '../chunk-MQZE7SUI.js';