@elevasis/ui 2.30.0 → 2.32.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 (130) hide show
  1. package/dist/api/index.js +2 -2
  2. package/dist/app/index.css +38 -0
  3. package/dist/app/index.d.ts +190 -9
  4. package/dist/app/index.js +7 -6
  5. package/dist/charts/index.js +4 -5
  6. package/dist/{chunk-HXZQWMKE.js → chunk-2RJMVWFJ.js} +1 -6
  7. package/dist/{chunk-4VQ2PXMI.js → chunk-3FV6HBXS.js} +4 -4
  8. package/dist/{chunk-CW3UNAF2.js → chunk-4DYOXEH6.js} +410 -5
  9. package/dist/{chunk-JKTPRYGV.js → chunk-4MFNGNHF.js} +123 -192
  10. package/dist/{chunk-HYLERWRO.js → chunk-4QK76KIF.js} +7 -7
  11. package/dist/chunk-5FJJ72HU.js +13 -0
  12. package/dist/chunk-5J4PDX26.js +112 -0
  13. package/dist/{chunk-4SY6BTVZ.js → chunk-6DWD423K.js} +12 -9
  14. package/dist/{chunk-3GV5NHSS.js → chunk-7KZINJLP.js} +78 -232
  15. package/dist/{chunk-6WXDE5LZ.js → chunk-EPTHX4VZ.js} +1 -1
  16. package/dist/{chunk-6EFVZV6X.js → chunk-GCOQ3TBG.js} +243 -254
  17. package/dist/{chunk-LRZFLK2F.js → chunk-IQHU7O5Y.js} +4 -4
  18. package/dist/{chunk-X2SUMO3P.js → chunk-IZWTVFJ2.js} +16 -3
  19. package/dist/{chunk-IKQ42WHU.js → chunk-JFL3GRD4.js} +1 -1
  20. package/dist/{chunk-4FZYEEPK.js → chunk-LLRXA7D7.js} +5 -6
  21. package/dist/chunk-MOY4VOHF.js +347 -0
  22. package/dist/{chunk-XQQEKWTL.js → chunk-N55DVMAG.js} +6 -2
  23. package/dist/{chunk-7E3FUTND.js → chunk-ND5TDV2J.js} +1 -1
  24. package/dist/{chunk-WF227UBV.js → chunk-QQHOKTJA.js} +4 -4
  25. package/dist/{chunk-A7B7HLDF.js → chunk-QTI3KC7D.js} +5884 -515
  26. package/dist/chunk-QXCDKE2O.js +486 -0
  27. package/dist/chunk-R2XR4FCV.js +48 -0
  28. package/dist/chunk-R66W5UDG.js +26 -0
  29. package/dist/{chunk-T5Z7G2J2.js → chunk-RQA2EVN3.js} +6 -16
  30. package/dist/{chunk-SKXXT3E2.js → chunk-RQTWIXJ5.js} +4 -4
  31. package/dist/chunk-T35FWDAB.js +4342 -0
  32. package/dist/{chunk-DWK2QIAK.js → chunk-TYRUKGGD.js} +1 -1
  33. package/dist/{chunk-CN2HC4D4.js → chunk-UFTM5SZZ.js} +2 -2
  34. package/dist/{chunk-JCGD4GM6.js → chunk-UROTM5OR.js} +14 -1
  35. package/dist/{chunk-6YT4IKJ7.js → chunk-VNAZTCHA.js} +15 -0
  36. package/dist/{chunk-KVJ3LFH2.js → chunk-VNFR57DF.js} +4 -24
  37. package/dist/{chunk-SBCIB5TZ.js → chunk-VRNMNB3O.js} +6 -7
  38. package/dist/chunk-WQPX44YM.js +1626 -0
  39. package/dist/{chunk-T2PAD63Y.js → chunk-XZGSCABI.js} +1 -1
  40. package/dist/chunk-YLQEVSOR.js +299 -0
  41. package/dist/{chunk-P5WYW2GI.js → chunk-ZQOKIGZP.js} +152 -306
  42. package/dist/components/index.css +38 -0
  43. package/dist/components/index.d.ts +334 -38
  44. package/dist/components/index.js +42 -42
  45. package/dist/components/navigation/index.css +38 -0
  46. package/dist/components/navigation/index.js +3 -2
  47. package/dist/execution/index.d.ts +9 -3
  48. package/dist/features/auth/index.css +38 -0
  49. package/dist/features/auth/index.d.ts +212 -14
  50. package/dist/features/auth/index.js +41 -9
  51. package/dist/features/clients/index.css +649 -0
  52. package/dist/features/clients/index.d.ts +86 -0
  53. package/dist/features/clients/index.js +720 -0
  54. package/dist/features/crm/index.css +38 -0
  55. package/dist/features/crm/index.d.ts +228 -20
  56. package/dist/features/crm/index.js +20 -17
  57. package/dist/features/dashboard/index.css +38 -0
  58. package/dist/features/dashboard/index.d.ts +78 -3
  59. package/dist/features/dashboard/index.js +16 -16
  60. package/dist/features/delivery/index.css +38 -0
  61. package/dist/features/delivery/index.d.ts +201 -18
  62. package/dist/features/delivery/index.js +20 -18
  63. package/dist/features/knowledge/index.css +38 -0
  64. package/dist/features/knowledge/index.d.ts +20 -18
  65. package/dist/features/knowledge/index.js +116 -578
  66. package/dist/features/lead-gen/index.css +38 -0
  67. package/dist/features/lead-gen/index.d.ts +59 -51
  68. package/dist/features/lead-gen/index.js +20 -18
  69. package/dist/features/monitoring/index.css +38 -0
  70. package/dist/features/monitoring/index.d.ts +20 -18
  71. package/dist/features/monitoring/index.js +19 -18
  72. package/dist/features/monitoring/requests/index.css +38 -0
  73. package/dist/features/monitoring/requests/index.d.ts +21 -19
  74. package/dist/features/monitoring/requests/index.js +17 -15
  75. package/dist/features/operations/index.css +38 -0
  76. package/dist/features/operations/index.d.ts +945 -45
  77. package/dist/features/operations/index.js +24 -26
  78. package/dist/features/seo/index.d.ts +20 -18
  79. package/dist/features/seo/index.js +1 -1
  80. package/dist/features/settings/index.css +38 -0
  81. package/dist/features/settings/index.d.ts +201 -18
  82. package/dist/features/settings/index.js +18 -16
  83. package/dist/hooks/delivery/index.css +38 -0
  84. package/dist/hooks/delivery/index.d.ts +200 -0
  85. package/dist/hooks/delivery/index.js +2 -2
  86. package/dist/hooks/index.css +38 -0
  87. package/dist/hooks/index.d.ts +825 -47
  88. package/dist/hooks/index.js +14 -13
  89. package/dist/hooks/operations/command-view/utils/transformCommandViewData.d.ts +194 -3
  90. package/dist/hooks/published.css +38 -0
  91. package/dist/hooks/published.d.ts +825 -47
  92. package/dist/hooks/published.js +14 -13
  93. package/dist/index.css +38 -0
  94. package/dist/index.d.ts +1506 -1212
  95. package/dist/index.js +15 -14
  96. package/dist/initialization/index.d.ts +181 -0
  97. package/dist/knowledge/index.d.ts +813 -1068
  98. package/dist/knowledge/index.js +7370 -2869
  99. package/dist/{chunk-CLUP5H3C.js → knowledge-search-index-5KYPO746.js} +441 -963
  100. package/dist/layout/index.d.ts +6 -0
  101. package/dist/layout/index.js +4 -5
  102. package/dist/organization/index.css +38 -0
  103. package/dist/profile/index.d.ts +181 -0
  104. package/dist/provider/index.css +38 -0
  105. package/dist/provider/index.d.ts +909 -1156
  106. package/dist/provider/index.js +11 -10
  107. package/dist/provider/published.css +38 -0
  108. package/dist/provider/published.d.ts +906 -1153
  109. package/dist/provider/published.js +7 -6
  110. package/dist/supabase/index.d.ts +349 -0
  111. package/dist/test-utils/index.d.ts +16 -9
  112. package/dist/test-utils/index.js +39 -32
  113. package/dist/test-utils/setup.js +1 -1
  114. package/dist/theme/index.js +3 -3
  115. package/dist/theme/presets/index.js +1 -1
  116. package/dist/types/index.d.ts +378 -5
  117. package/dist/utils/index.d.ts +78 -3
  118. package/dist/utils/index.js +1 -1
  119. package/dist/vite/index.js +2 -2
  120. package/dist/vite-plugin-knowledge/index.js +1 -1
  121. package/package.json +47 -37
  122. package/src/provider/README.md +5 -5
  123. package/dist/chunk-2DIYILF7.js +0 -413
  124. package/dist/chunk-3MDNBHVB.js +0 -3868
  125. package/dist/chunk-6IXOKUBC.js +0 -347
  126. package/dist/chunk-AKOD52HS.js +0 -739
  127. package/dist/chunk-ECNNI3NT.js +0 -6
  128. package/dist/chunk-JDNEWB5F.js +0 -10
  129. package/dist/chunk-NITGGYH2.js +0 -476
  130. package/dist/chunk-OAVTMITG.js +0 -13
@@ -1,8 +1,64 @@
1
- import * as react_jsx_runtime from 'react/jsx-runtime';
2
1
  import { z } from 'zod';
2
+ import * as react_jsx_runtime from 'react/jsx-runtime';
3
3
  import { ComponentType, CSSProperties, ReactNode, HTMLAttributes } from 'react';
4
4
  import { IconBrain } from '@tabler/icons-react';
5
5
 
6
+ /**
7
+ * Placeholder discriminated union for ContentNode (Wave 1A).
8
+ * Wave 2A wires concrete (kind, type) pairs via the registry.
9
+ *
10
+ * Per D2: unregistered (kind, type) pairs are allowed and pass through validation.
11
+ * Per L14: every node carries BOTH `kind` and `type`.
12
+ */
13
+ declare const ContentNodeSchema: z.ZodObject<{
14
+ label: z.ZodString;
15
+ description: z.ZodOptional<z.ZodString>;
16
+ order: z.ZodOptional<z.ZodNumber>;
17
+ parentContentId: z.ZodOptional<z.ZodString>;
18
+ kind: z.ZodString;
19
+ type: z.ZodString;
20
+ data: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
21
+ }, z.core.$strip>;
22
+ type ContentNode = z.infer<typeof ContentNodeSchema>;
23
+
24
+ /** Explicit interface needed to annotate the recursive SystemEntrySchema. */
25
+ interface SystemEntry {
26
+ id: string;
27
+ label?: string;
28
+ title?: string;
29
+ description?: string;
30
+ kind?: 'product' | 'operational' | 'platform' | 'diagnostic';
31
+ parentSystemId?: string;
32
+ ui?: {
33
+ path: string;
34
+ surfaces: string[];
35
+ icon?: string;
36
+ order?: number;
37
+ };
38
+ lifecycle?: 'draft' | 'beta' | 'active' | 'deprecated' | 'archived';
39
+ responsibleRoleId?: string;
40
+ governedByKnowledge?: string[];
41
+ actions?: {
42
+ actionId: string;
43
+ intent: 'exposes' | 'consumes';
44
+ invocation?: unknown;
45
+ }[];
46
+ policies?: string[];
47
+ drivesGoals?: string[];
48
+ /** @deprecated Use lifecycle. Accepted for one publish cycle. */
49
+ status?: 'active' | 'deprecated' | 'archived';
50
+ path?: string;
51
+ icon?: string;
52
+ color?: string;
53
+ uiPosition?: 'sidebar-primary' | 'sidebar-bottom';
54
+ enabled?: boolean;
55
+ devOnly?: boolean;
56
+ requiresAdmin?: boolean;
57
+ order: number;
58
+ content?: Record<string, ContentNode>;
59
+ subsystems?: Record<string, SystemEntry>;
60
+ }
61
+
6
62
  /**
7
63
  * Command View Types
8
64
  *
@@ -22,6 +78,41 @@ import { IconBrain } from '@tabler/icons-react';
22
78
  */
23
79
  type RelationshipType = 'triggers' | 'uses' | 'approval';
24
80
 
81
+ declare const SurfaceTypeSchema: z.ZodEnum<{
82
+ list: "list";
83
+ graph: "graph";
84
+ page: "page";
85
+ dashboard: "dashboard";
86
+ detail: "detail";
87
+ settings: "settings";
88
+ }>;
89
+ interface SidebarSurfaceNode {
90
+ type: 'surface';
91
+ label: string;
92
+ path: string;
93
+ surfaceType: z.infer<typeof SurfaceTypeSchema>;
94
+ description?: string;
95
+ icon?: string;
96
+ order?: number;
97
+ targets?: {
98
+ systems?: string[];
99
+ entities?: string[];
100
+ resources?: string[];
101
+ actions?: string[];
102
+ };
103
+ devOnly?: boolean;
104
+ requiresAdmin?: boolean;
105
+ }
106
+ interface SidebarGroupNode {
107
+ type: 'group';
108
+ label: string;
109
+ description?: string;
110
+ icon?: string;
111
+ order?: number;
112
+ children: Record<string, SidebarNode>;
113
+ }
114
+ type SidebarNode = SidebarSurfaceNode | SidebarGroupNode;
115
+
25
116
  declare const OrgKnowledgeKindSchema: z.ZodEnum<{
26
117
  playbook: "playbook";
27
118
  strategy: "strategy";
@@ -54,6 +145,7 @@ declare const OrgKnowledgeNodeSchema: z.ZodObject<{
54
145
  "knowledge.reference": "knowledge.reference";
55
146
  "feature.dashboard": "feature.dashboard";
56
147
  "feature.calendar": "feature.calendar";
148
+ "feature.business": "feature.business";
57
149
  "feature.sales": "feature.sales";
58
150
  "feature.crm": "feature.crm";
59
151
  "feature.finance": "feature.finance";
@@ -102,12 +194,40 @@ declare const OrgKnowledgeNodeSchema: z.ZodObject<{
102
194
  "action.submit": "action.submit";
103
195
  "action.email": "action.email";
104
196
  }>, z.ZodString]>>;
197
+ externalUrl: z.ZodOptional<z.ZodString>;
105
198
  body: z.ZodString;
106
- links: z.ZodDefault<z.ZodArray<z.ZodObject<{
199
+ links: z.ZodDefault<z.ZodArray<z.ZodPipe<z.ZodUnion<readonly [z.ZodObject<{
200
+ target: z.ZodObject<{
201
+ kind: z.ZodEnum<{
202
+ system: "system";
203
+ action: "action";
204
+ knowledge: "knowledge";
205
+ role: "role";
206
+ goal: "goal";
207
+ stage: "stage";
208
+ resource: "resource";
209
+ "customer-segment": "customer-segment";
210
+ offering: "offering";
211
+ "content-node": "content-node";
212
+ }>;
213
+ id: z.ZodString;
214
+ }, z.core.$strip>;
215
+ }, z.core.$strip>, z.ZodObject<{
107
216
  nodeId: z.ZodString;
108
- }, z.core.$strip>>>;
109
- skills: z.ZodOptional<z.ZodArray<z.ZodString>>;
110
- domain: z.ZodOptional<z.ZodString>;
217
+ }, z.core.$strip>]>, z.ZodTransform<{
218
+ target: {
219
+ kind: "system" | "action" | "knowledge" | "role" | "goal" | "stage" | "resource" | "customer-segment" | "offering" | "content-node";
220
+ id: string;
221
+ };
222
+ nodeId: string;
223
+ }, {
224
+ nodeId: string;
225
+ } | {
226
+ target: {
227
+ kind: "system" | "action" | "knowledge" | "role" | "goal" | "stage" | "resource" | "customer-segment" | "offering" | "content-node";
228
+ id: string;
229
+ };
230
+ }>>>>;
111
231
  ownerIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
112
232
  updatedAt: z.ZodString;
113
233
  }, z.core.$strip>;
@@ -130,6 +250,7 @@ declare const OrganizationModelIconTokenSchema: z.ZodUnion<readonly [z.ZodEnum<{
130
250
  "knowledge.reference": "knowledge.reference";
131
251
  "feature.dashboard": "feature.dashboard";
132
252
  "feature.calendar": "feature.calendar";
253
+ "feature.business": "feature.business";
133
254
  "feature.sales": "feature.sales";
134
255
  "feature.crm": "feature.crm";
135
256
  "feature.finance": "feature.finance";
@@ -182,12 +303,527 @@ type OrganizationModelIconToken = z.infer<typeof OrganizationModelIconTokenSchem
182
303
 
183
304
  declare const OrganizationModelSchema: z.ZodObject<{
184
305
  version: z.ZodDefault<z.ZodLiteral<1>>;
185
- features: z.ZodDefault<z.ZodArray<z.ZodObject<{
306
+ domainMetadata: z.ZodPipe<z.ZodDefault<z.ZodObject<{
307
+ branding: z.ZodOptional<z.ZodObject<{
308
+ version: z.ZodDefault<z.ZodLiteral<1>>;
309
+ lastModified: z.ZodString;
310
+ }, z.core.$strip>>;
311
+ identity: z.ZodOptional<z.ZodObject<{
312
+ version: z.ZodDefault<z.ZodLiteral<1>>;
313
+ lastModified: z.ZodString;
314
+ }, z.core.$strip>>;
315
+ customers: z.ZodOptional<z.ZodObject<{
316
+ version: z.ZodDefault<z.ZodLiteral<1>>;
317
+ lastModified: z.ZodString;
318
+ }, z.core.$strip>>;
319
+ offerings: z.ZodOptional<z.ZodObject<{
320
+ version: z.ZodDefault<z.ZodLiteral<1>>;
321
+ lastModified: z.ZodString;
322
+ }, z.core.$strip>>;
323
+ roles: z.ZodOptional<z.ZodObject<{
324
+ version: z.ZodDefault<z.ZodLiteral<1>>;
325
+ lastModified: z.ZodString;
326
+ }, z.core.$strip>>;
327
+ goals: z.ZodOptional<z.ZodObject<{
328
+ version: z.ZodDefault<z.ZodLiteral<1>>;
329
+ lastModified: z.ZodString;
330
+ }, z.core.$strip>>;
331
+ systems: z.ZodOptional<z.ZodObject<{
332
+ version: z.ZodDefault<z.ZodLiteral<1>>;
333
+ lastModified: z.ZodString;
334
+ }, z.core.$strip>>;
335
+ resources: z.ZodOptional<z.ZodObject<{
336
+ version: z.ZodDefault<z.ZodLiteral<1>>;
337
+ lastModified: z.ZodString;
338
+ }, z.core.$strip>>;
339
+ actions: z.ZodOptional<z.ZodObject<{
340
+ version: z.ZodDefault<z.ZodLiteral<1>>;
341
+ lastModified: z.ZodString;
342
+ }, z.core.$strip>>;
343
+ entities: z.ZodOptional<z.ZodObject<{
344
+ version: z.ZodDefault<z.ZodLiteral<1>>;
345
+ lastModified: z.ZodString;
346
+ }, z.core.$strip>>;
347
+ policies: z.ZodOptional<z.ZodObject<{
348
+ version: z.ZodDefault<z.ZodLiteral<1>>;
349
+ lastModified: z.ZodString;
350
+ }, z.core.$strip>>;
351
+ knowledge: z.ZodOptional<z.ZodObject<{
352
+ version: z.ZodDefault<z.ZodLiteral<1>>;
353
+ lastModified: z.ZodString;
354
+ }, z.core.$strip>>;
355
+ }, z.core.$strip>>, z.ZodTransform<{
356
+ branding: {
357
+ version: 1;
358
+ lastModified: string;
359
+ };
360
+ identity: {
361
+ version: 1;
362
+ lastModified: string;
363
+ };
364
+ customers: {
365
+ version: 1;
366
+ lastModified: string;
367
+ };
368
+ offerings: {
369
+ version: 1;
370
+ lastModified: string;
371
+ };
372
+ roles: {
373
+ version: 1;
374
+ lastModified: string;
375
+ };
376
+ goals: {
377
+ version: 1;
378
+ lastModified: string;
379
+ };
380
+ systems: {
381
+ version: 1;
382
+ lastModified: string;
383
+ };
384
+ resources: {
385
+ version: 1;
386
+ lastModified: string;
387
+ };
388
+ actions: {
389
+ version: 1;
390
+ lastModified: string;
391
+ };
392
+ entities: {
393
+ version: 1;
394
+ lastModified: string;
395
+ };
396
+ policies: {
397
+ version: 1;
398
+ lastModified: string;
399
+ };
400
+ knowledge: {
401
+ version: 1;
402
+ lastModified: string;
403
+ };
404
+ }, {
405
+ branding?: {
406
+ version: 1;
407
+ lastModified: string;
408
+ } | undefined;
409
+ identity?: {
410
+ version: 1;
411
+ lastModified: string;
412
+ } | undefined;
413
+ customers?: {
414
+ version: 1;
415
+ lastModified: string;
416
+ } | undefined;
417
+ offerings?: {
418
+ version: 1;
419
+ lastModified: string;
420
+ } | undefined;
421
+ roles?: {
422
+ version: 1;
423
+ lastModified: string;
424
+ } | undefined;
425
+ goals?: {
426
+ version: 1;
427
+ lastModified: string;
428
+ } | undefined;
429
+ systems?: {
430
+ version: 1;
431
+ lastModified: string;
432
+ } | undefined;
433
+ resources?: {
434
+ version: 1;
435
+ lastModified: string;
436
+ } | undefined;
437
+ actions?: {
438
+ version: 1;
439
+ lastModified: string;
440
+ } | undefined;
441
+ entities?: {
442
+ version: 1;
443
+ lastModified: string;
444
+ } | undefined;
445
+ policies?: {
446
+ version: 1;
447
+ lastModified: string;
448
+ } | undefined;
449
+ knowledge?: {
450
+ version: 1;
451
+ lastModified: string;
452
+ } | undefined;
453
+ }>>;
454
+ branding: z.ZodObject<{
455
+ organizationName: z.ZodString;
456
+ productName: z.ZodString;
457
+ shortName: z.ZodString;
458
+ description: z.ZodOptional<z.ZodString>;
459
+ logos: z.ZodDefault<z.ZodObject<{
460
+ light: z.ZodOptional<z.ZodString>;
461
+ dark: z.ZodOptional<z.ZodString>;
462
+ }, z.core.$strip>>;
463
+ }, z.core.$strip>;
464
+ navigation: z.ZodDefault<z.ZodObject<{
465
+ sidebar: z.ZodDefault<z.ZodObject<{
466
+ primary: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodType<SidebarNode, unknown, z.core.$ZodTypeInternals<SidebarNode, unknown>>>>;
467
+ bottom: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodType<SidebarNode, unknown, z.core.$ZodTypeInternals<SidebarNode, unknown>>>>;
468
+ }, z.core.$strip>>;
469
+ }, z.core.$strip>>;
470
+ identity: z.ZodDefault<z.ZodObject<{
471
+ mission: z.ZodDefault<z.ZodString>;
472
+ vision: z.ZodDefault<z.ZodString>;
473
+ legalName: z.ZodDefault<z.ZodString>;
474
+ entityType: z.ZodDefault<z.ZodString>;
475
+ jurisdiction: z.ZodDefault<z.ZodString>;
476
+ industryCategory: z.ZodDefault<z.ZodString>;
477
+ geographicFocus: z.ZodDefault<z.ZodString>;
478
+ timeZone: z.ZodDefault<z.ZodString>;
479
+ businessHours: z.ZodDefault<z.ZodObject<{
480
+ monday: z.ZodOptional<z.ZodObject<{
481
+ open: z.ZodString;
482
+ close: z.ZodString;
483
+ }, z.core.$strip>>;
484
+ tuesday: z.ZodOptional<z.ZodObject<{
485
+ open: z.ZodString;
486
+ close: z.ZodString;
487
+ }, z.core.$strip>>;
488
+ wednesday: z.ZodOptional<z.ZodObject<{
489
+ open: z.ZodString;
490
+ close: z.ZodString;
491
+ }, z.core.$strip>>;
492
+ thursday: z.ZodOptional<z.ZodObject<{
493
+ open: z.ZodString;
494
+ close: z.ZodString;
495
+ }, z.core.$strip>>;
496
+ friday: z.ZodOptional<z.ZodObject<{
497
+ open: z.ZodString;
498
+ close: z.ZodString;
499
+ }, z.core.$strip>>;
500
+ saturday: z.ZodOptional<z.ZodObject<{
501
+ open: z.ZodString;
502
+ close: z.ZodString;
503
+ }, z.core.$strip>>;
504
+ sunday: z.ZodOptional<z.ZodObject<{
505
+ open: z.ZodString;
506
+ close: z.ZodString;
507
+ }, z.core.$strip>>;
508
+ }, z.core.$strip>>;
509
+ clientBrief: z.ZodDefault<z.ZodString>;
510
+ }, z.core.$strip>>;
511
+ customers: z.ZodDefault<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
512
+ id: z.ZodString;
513
+ order: z.ZodNumber;
514
+ name: z.ZodDefault<z.ZodString>;
515
+ description: z.ZodDefault<z.ZodString>;
516
+ jobsToBeDone: z.ZodDefault<z.ZodString>;
517
+ pains: z.ZodDefault<z.ZodArray<z.ZodString>>;
518
+ gains: z.ZodDefault<z.ZodArray<z.ZodString>>;
519
+ firmographics: z.ZodDefault<z.ZodObject<{
520
+ industry: z.ZodOptional<z.ZodString>;
521
+ companySize: z.ZodOptional<z.ZodString>;
522
+ region: z.ZodOptional<z.ZodString>;
523
+ }, z.core.$strip>>;
524
+ valueProp: z.ZodDefault<z.ZodString>;
525
+ }, z.core.$strip>>>>;
526
+ offerings: z.ZodDefault<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
527
+ id: z.ZodString;
528
+ order: z.ZodNumber;
529
+ name: z.ZodDefault<z.ZodString>;
530
+ description: z.ZodDefault<z.ZodString>;
531
+ pricingModel: z.ZodDefault<z.ZodEnum<{
532
+ custom: "custom";
533
+ "one-time": "one-time";
534
+ subscription: "subscription";
535
+ "usage-based": "usage-based";
536
+ }>>;
537
+ price: z.ZodDefault<z.ZodNumber>;
538
+ currency: z.ZodDefault<z.ZodString>;
539
+ targetSegmentIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
540
+ deliveryFeatureId: z.ZodOptional<z.ZodString>;
541
+ }, z.core.$strip>>>>;
542
+ roles: z.ZodDefault<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
543
+ id: z.ZodString;
544
+ order: z.ZodNumber;
545
+ title: z.ZodString;
546
+ responsibilities: z.ZodDefault<z.ZodArray<z.ZodString>>;
547
+ reportsToId: z.ZodOptional<z.ZodString>;
548
+ heldBy: z.ZodOptional<z.ZodUnion<readonly [z.ZodDiscriminatedUnion<[z.ZodObject<{
549
+ kind: z.ZodLiteral<"human">;
550
+ userId: z.ZodString;
551
+ }, z.core.$strip>, z.ZodObject<{
552
+ kind: z.ZodLiteral<"agent">;
553
+ agentId: z.ZodString;
554
+ }, z.core.$strip>, z.ZodObject<{
555
+ kind: z.ZodLiteral<"team">;
556
+ memberIds: z.ZodArray<z.ZodString>;
557
+ }, z.core.$strip>], "kind">, z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
558
+ kind: z.ZodLiteral<"human">;
559
+ userId: z.ZodString;
560
+ }, z.core.$strip>, z.ZodObject<{
561
+ kind: z.ZodLiteral<"agent">;
562
+ agentId: z.ZodString;
563
+ }, z.core.$strip>, z.ZodObject<{
564
+ kind: z.ZodLiteral<"team">;
565
+ memberIds: z.ZodArray<z.ZodString>;
566
+ }, z.core.$strip>], "kind">>]>>;
567
+ responsibleFor: z.ZodOptional<z.ZodArray<z.ZodString>>;
568
+ }, z.core.$strip>>>>;
569
+ goals: z.ZodDefault<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
570
+ id: z.ZodString;
571
+ order: z.ZodNumber;
572
+ description: z.ZodString;
573
+ periodStart: z.ZodString;
574
+ periodEnd: z.ZodString;
575
+ keyResults: z.ZodDefault<z.ZodArray<z.ZodObject<{
576
+ id: z.ZodString;
577
+ description: z.ZodString;
578
+ targetMetric: z.ZodString;
579
+ currentValue: z.ZodDefault<z.ZodNumber>;
580
+ targetValue: z.ZodOptional<z.ZodNumber>;
581
+ }, z.core.$strip>>>;
582
+ }, z.core.$strip>>>>;
583
+ systems: z.ZodDefault<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodType<SystemEntry, unknown, z.core.$ZodTypeInternals<SystemEntry, unknown>>>>>;
584
+ resources: z.ZodDefault<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
585
+ id: z.ZodString;
586
+ order: z.ZodDefault<z.ZodNumber>;
587
+ systemPath: z.ZodString;
588
+ ownerRoleId: z.ZodOptional<z.ZodString>;
589
+ status: z.ZodEnum<{
590
+ deprecated: "deprecated";
591
+ active: "active";
592
+ archived: "archived";
593
+ }>;
594
+ kind: z.ZodLiteral<"workflow">;
595
+ actionKey: z.ZodOptional<z.ZodString>;
596
+ emits: z.ZodOptional<z.ZodArray<z.ZodObject<{
597
+ eventKey: z.ZodString;
598
+ label: z.ZodString;
599
+ payloadSchema: z.ZodOptional<z.ZodString>;
600
+ lifecycle: z.ZodOptional<z.ZodEnum<{
601
+ deprecated: "deprecated";
602
+ draft: "draft";
603
+ beta: "beta";
604
+ active: "active";
605
+ archived: "archived";
606
+ }>>;
607
+ }, z.core.$strip>>>;
608
+ }, z.core.$strip>, z.ZodObject<{
609
+ id: z.ZodString;
610
+ order: z.ZodDefault<z.ZodNumber>;
611
+ systemPath: z.ZodString;
612
+ ownerRoleId: z.ZodOptional<z.ZodString>;
613
+ status: z.ZodEnum<{
614
+ deprecated: "deprecated";
615
+ active: "active";
616
+ archived: "archived";
617
+ }>;
618
+ kind: z.ZodLiteral<"agent">;
619
+ agentKind: z.ZodEnum<{
620
+ platform: "platform";
621
+ orchestrator: "orchestrator";
622
+ specialist: "specialist";
623
+ utility: "utility";
624
+ }>;
625
+ actsAsRoleId: z.ZodOptional<z.ZodString>;
626
+ sessionCapable: z.ZodBoolean;
627
+ invocations: z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
628
+ kind: z.ZodLiteral<"slash-command">;
629
+ command: z.ZodString;
630
+ toolFactory: z.ZodOptional<z.ZodString>;
631
+ }, z.core.$strip>, z.ZodObject<{
632
+ kind: z.ZodLiteral<"mcp-tool">;
633
+ server: z.ZodString;
634
+ name: z.ZodString;
635
+ }, z.core.$strip>, z.ZodObject<{
636
+ kind: z.ZodLiteral<"api-endpoint">;
637
+ method: z.ZodEnum<{
638
+ GET: "GET";
639
+ POST: "POST";
640
+ PATCH: "PATCH";
641
+ DELETE: "DELETE";
642
+ }>;
643
+ path: z.ZodString;
644
+ requestSchema: z.ZodOptional<z.ZodString>;
645
+ responseSchema: z.ZodOptional<z.ZodString>;
646
+ }, z.core.$strip>, z.ZodObject<{
647
+ kind: z.ZodLiteral<"script-execution">;
648
+ resourceId: z.ZodString;
649
+ }, z.core.$strip>], "kind">>>;
650
+ emits: z.ZodOptional<z.ZodArray<z.ZodObject<{
651
+ eventKey: z.ZodString;
652
+ label: z.ZodString;
653
+ payloadSchema: z.ZodOptional<z.ZodString>;
654
+ lifecycle: z.ZodOptional<z.ZodEnum<{
655
+ deprecated: "deprecated";
656
+ draft: "draft";
657
+ beta: "beta";
658
+ active: "active";
659
+ archived: "archived";
660
+ }>>;
661
+ }, z.core.$strip>>>;
662
+ }, z.core.$strip>, z.ZodObject<{
663
+ id: z.ZodString;
664
+ order: z.ZodDefault<z.ZodNumber>;
665
+ systemPath: z.ZodString;
666
+ ownerRoleId: z.ZodOptional<z.ZodString>;
667
+ status: z.ZodEnum<{
668
+ deprecated: "deprecated";
669
+ active: "active";
670
+ archived: "archived";
671
+ }>;
672
+ kind: z.ZodLiteral<"integration">;
673
+ provider: z.ZodString;
674
+ }, z.core.$strip>, z.ZodObject<{
675
+ id: z.ZodString;
676
+ order: z.ZodDefault<z.ZodNumber>;
677
+ systemPath: z.ZodString;
678
+ ownerRoleId: z.ZodOptional<z.ZodString>;
679
+ status: z.ZodEnum<{
680
+ deprecated: "deprecated";
681
+ active: "active";
682
+ archived: "archived";
683
+ }>;
684
+ kind: z.ZodLiteral<"script">;
685
+ language: z.ZodEnum<{
686
+ shell: "shell";
687
+ sql: "sql";
688
+ typescript: "typescript";
689
+ python: "python";
690
+ }>;
691
+ source: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
692
+ file: z.ZodString;
693
+ }, z.core.$strip>]>;
694
+ }, z.core.$strip>], "kind">>>>;
695
+ actions: z.ZodDefault<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
696
+ id: z.ZodString;
697
+ order: z.ZodNumber;
698
+ label: z.ZodString;
699
+ description: z.ZodOptional<z.ZodString>;
700
+ scope: z.ZodDefault<z.ZodUnion<readonly [z.ZodLiteral<"global">, z.ZodObject<{
701
+ domain: z.ZodString;
702
+ }, z.core.$strip>]>>;
703
+ resourceId: z.ZodOptional<z.ZodString>;
704
+ affects: z.ZodOptional<z.ZodArray<z.ZodString>>;
705
+ invocations: z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
706
+ kind: z.ZodLiteral<"slash-command">;
707
+ command: z.ZodString;
708
+ toolFactory: z.ZodOptional<z.ZodString>;
709
+ }, z.core.$strip>, z.ZodObject<{
710
+ kind: z.ZodLiteral<"mcp-tool">;
711
+ server: z.ZodString;
712
+ name: z.ZodString;
713
+ }, z.core.$strip>, z.ZodObject<{
714
+ kind: z.ZodLiteral<"api-endpoint">;
715
+ method: z.ZodEnum<{
716
+ GET: "GET";
717
+ POST: "POST";
718
+ PATCH: "PATCH";
719
+ DELETE: "DELETE";
720
+ }>;
721
+ path: z.ZodString;
722
+ requestSchema: z.ZodOptional<z.ZodString>;
723
+ responseSchema: z.ZodOptional<z.ZodString>;
724
+ }, z.core.$strip>, z.ZodObject<{
725
+ kind: z.ZodLiteral<"script-execution">;
726
+ resourceId: z.ZodString;
727
+ }, z.core.$strip>], "kind">>>;
728
+ knowledge: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString>>>;
729
+ lifecycle: z.ZodDefault<z.ZodEnum<{
730
+ deprecated: "deprecated";
731
+ draft: "draft";
732
+ beta: "beta";
733
+ active: "active";
734
+ archived: "archived";
735
+ }>>;
736
+ }, z.core.$strip>>>>;
737
+ entities: z.ZodDefault<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
186
738
  id: z.ZodString;
739
+ order: z.ZodNumber;
187
740
  label: z.ZodString;
188
741
  description: z.ZodOptional<z.ZodString>;
189
- enabled: z.ZodDefault<z.ZodBoolean>;
190
- path: z.ZodOptional<z.ZodString>;
742
+ ownedBySystemId: z.ZodString;
743
+ table: z.ZodOptional<z.ZodString>;
744
+ rowSchema: z.ZodOptional<z.ZodString>;
745
+ stateCatalogId: z.ZodOptional<z.ZodString>;
746
+ links: z.ZodOptional<z.ZodArray<z.ZodObject<{
747
+ toEntity: z.ZodString;
748
+ kind: z.ZodEnum<{
749
+ "belongs-to": "belongs-to";
750
+ "has-many": "has-many";
751
+ "has-one": "has-one";
752
+ "many-to-many": "many-to-many";
753
+ }>;
754
+ via: z.ZodOptional<z.ZodString>;
755
+ label: z.ZodOptional<z.ZodString>;
756
+ }, z.core.$strip>>>;
757
+ }, z.core.$strip>>>>;
758
+ policies: z.ZodDefault<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
759
+ id: z.ZodString;
760
+ order: z.ZodNumber;
761
+ label: z.ZodString;
762
+ description: z.ZodOptional<z.ZodString>;
763
+ trigger: z.ZodDiscriminatedUnion<[z.ZodObject<{
764
+ kind: z.ZodLiteral<"event">;
765
+ eventId: z.ZodString;
766
+ }, z.core.$strip>, z.ZodObject<{
767
+ kind: z.ZodLiteral<"action-invocation">;
768
+ actionId: z.ZodString;
769
+ }, z.core.$strip>, z.ZodObject<{
770
+ kind: z.ZodLiteral<"schedule">;
771
+ cron: z.ZodString;
772
+ }, z.core.$strip>, z.ZodObject<{
773
+ kind: z.ZodLiteral<"manual">;
774
+ }, z.core.$strip>], "kind">;
775
+ predicate: z.ZodDefault<z.ZodDiscriminatedUnion<[z.ZodObject<{
776
+ kind: z.ZodLiteral<"always">;
777
+ }, z.core.$strip>, z.ZodObject<{
778
+ kind: z.ZodLiteral<"expression">;
779
+ expression: z.ZodString;
780
+ }, z.core.$strip>, z.ZodObject<{
781
+ kind: z.ZodLiteral<"threshold">;
782
+ metric: z.ZodString;
783
+ operator: z.ZodEnum<{
784
+ lt: "lt";
785
+ lte: "lte";
786
+ eq: "eq";
787
+ gte: "gte";
788
+ gt: "gt";
789
+ }>;
790
+ value: z.ZodNumber;
791
+ }, z.core.$strip>], "kind">>;
792
+ actions: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
793
+ kind: z.ZodLiteral<"require-approval">;
794
+ roleId: z.ZodOptional<z.ZodString>;
795
+ }, z.core.$strip>, z.ZodObject<{
796
+ kind: z.ZodLiteral<"invoke-action">;
797
+ actionId: z.ZodString;
798
+ }, z.core.$strip>, z.ZodObject<{
799
+ kind: z.ZodLiteral<"notify-role">;
800
+ roleId: z.ZodString;
801
+ }, z.core.$strip>, z.ZodObject<{
802
+ kind: z.ZodLiteral<"block">;
803
+ }, z.core.$strip>], "kind">>;
804
+ appliesTo: z.ZodDefault<z.ZodObject<{
805
+ systemIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
806
+ actionIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
807
+ resourceIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
808
+ roleIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
809
+ }, z.core.$strip>>;
810
+ lifecycle: z.ZodDefault<z.ZodEnum<{
811
+ deprecated: "deprecated";
812
+ draft: "draft";
813
+ beta: "beta";
814
+ active: "active";
815
+ archived: "archived";
816
+ }>>;
817
+ }, z.core.$strip>>>>;
818
+ knowledge: z.ZodDefault<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
819
+ id: z.ZodString;
820
+ kind: z.ZodEnum<{
821
+ playbook: "playbook";
822
+ strategy: "strategy";
823
+ reference: "reference";
824
+ }>;
825
+ title: z.ZodString;
826
+ summary: z.ZodString;
191
827
  icon: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
192
828
  "nav.dashboard": "nav.dashboard";
193
829
  "nav.calendar": "nav.calendar";
@@ -206,6 +842,7 @@ declare const OrganizationModelSchema: z.ZodObject<{
206
842
  "knowledge.reference": "knowledge.reference";
207
843
  "feature.dashboard": "feature.dashboard";
208
844
  "feature.calendar": "feature.calendar";
845
+ "feature.business": "feature.business";
209
846
  "feature.sales": "feature.sales";
210
847
  "feature.crm": "feature.crm";
211
848
  "feature.finance": "feature.finance";
@@ -254,1027 +891,53 @@ declare const OrganizationModelSchema: z.ZodObject<{
254
891
  "action.submit": "action.submit";
255
892
  "action.email": "action.email";
256
893
  }>, z.ZodString]>>;
257
- color: z.ZodOptional<z.ZodString>;
258
- uiPosition: z.ZodOptional<z.ZodEnum<{
259
- "sidebar-primary": "sidebar-primary";
260
- "sidebar-bottom": "sidebar-bottom";
261
- }>>;
262
- requiresAdmin: z.ZodOptional<z.ZodBoolean>;
263
- devOnly: z.ZodOptional<z.ZodBoolean>;
264
- }, z.core.$strip>>>;
265
- branding: z.ZodObject<{
266
- organizationName: z.ZodString;
267
- productName: z.ZodString;
268
- shortName: z.ZodString;
269
- description: z.ZodOptional<z.ZodString>;
270
- logos: z.ZodDefault<z.ZodObject<{
271
- light: z.ZodOptional<z.ZodString>;
272
- dark: z.ZodOptional<z.ZodString>;
273
- }, z.core.$strip>>;
274
- }, z.core.$strip>;
275
- navigation: z.ZodDefault<z.ZodObject<{
276
- defaultSurfaceId: z.ZodOptional<z.ZodString>;
277
- surfaces: z.ZodDefault<z.ZodArray<z.ZodObject<{
278
- id: z.ZodString;
279
- label: z.ZodString;
280
- path: z.ZodString;
281
- surfaceType: z.ZodEnum<{
282
- settings: "settings";
283
- page: "page";
284
- dashboard: "dashboard";
285
- graph: "graph";
286
- detail: "detail";
287
- list: "list";
288
- }>;
289
- description: z.ZodOptional<z.ZodString>;
290
- enabled: z.ZodDefault<z.ZodBoolean>;
291
- devOnly: z.ZodOptional<z.ZodBoolean>;
292
- icon: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
293
- "nav.dashboard": "nav.dashboard";
294
- "nav.calendar": "nav.calendar";
295
- "nav.sales": "nav.sales";
296
- "nav.crm": "nav.crm";
297
- "nav.lead-gen": "nav.lead-gen";
298
- "nav.projects": "nav.projects";
299
- "nav.operations": "nav.operations";
300
- "nav.monitoring": "nav.monitoring";
301
- "nav.knowledge": "nav.knowledge";
302
- "nav.settings": "nav.settings";
303
- "nav.admin": "nav.admin";
304
- "nav.archive": "nav.archive";
305
- "knowledge.playbook": "knowledge.playbook";
306
- "knowledge.strategy": "knowledge.strategy";
307
- "knowledge.reference": "knowledge.reference";
308
- "feature.dashboard": "feature.dashboard";
309
- "feature.calendar": "feature.calendar";
310
- "feature.sales": "feature.sales";
311
- "feature.crm": "feature.crm";
312
- "feature.finance": "feature.finance";
313
- "feature.lead-gen": "feature.lead-gen";
314
- "feature.platform": "feature.platform";
315
- "feature.projects": "feature.projects";
316
- "feature.operations": "feature.operations";
317
- "feature.knowledge": "feature.knowledge";
318
- "feature.monitoring": "feature.monitoring";
319
- "feature.settings": "feature.settings";
320
- "feature.admin": "feature.admin";
321
- "feature.archive": "feature.archive";
322
- "feature.seo": "feature.seo";
323
- "resource.agent": "resource.agent";
324
- "resource.workflow": "resource.workflow";
325
- "resource.integration": "resource.integration";
326
- "resource.database": "resource.database";
327
- "resource.user": "resource.user";
328
- "resource.team": "resource.team";
329
- "integration.gmail": "integration.gmail";
330
- "integration.google-sheets": "integration.google-sheets";
331
- "integration.attio": "integration.attio";
332
- "surface.dashboard": "surface.dashboard";
333
- "surface.calendar": "surface.calendar";
334
- "surface.overview": "surface.overview";
335
- "surface.command-view": "surface.command-view";
336
- "surface.command-queue": "surface.command-queue";
337
- "surface.pipeline": "surface.pipeline";
338
- "surface.lists": "surface.lists";
339
- "surface.resources": "surface.resources";
340
- "surface.settings": "surface.settings";
341
- "status.success": "status.success";
342
- "status.error": "status.error";
343
- "status.warning": "status.warning";
344
- "status.info": "status.info";
345
- "status.pending": "status.pending";
346
- "action.approve": "action.approve";
347
- "action.reject": "action.reject";
348
- "action.retry": "action.retry";
349
- "action.edit": "action.edit";
350
- "action.view": "action.view";
351
- "action.launch": "action.launch";
352
- "action.message": "action.message";
353
- "action.escalate": "action.escalate";
354
- "action.promote": "action.promote";
355
- "action.submit": "action.submit";
356
- "action.email": "action.email";
357
- }>, z.ZodString]>>;
358
- featureId: z.ZodOptional<z.ZodString>;
359
- featureIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
360
- entityIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
361
- resourceIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
362
- capabilityIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
363
- parentId: z.ZodOptional<z.ZodString>;
364
- }, z.core.$strip>>>;
365
- groups: z.ZodDefault<z.ZodArray<z.ZodObject<{
366
- id: z.ZodString;
367
- label: z.ZodString;
368
- placement: z.ZodString;
369
- surfaceIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
370
- }, z.core.$strip>>>;
371
- }, z.core.$strip>>;
372
- sales: z.ZodObject<{
373
- entityId: z.ZodString;
374
- defaultPipelineId: z.ZodString;
375
- pipelines: z.ZodArray<z.ZodObject<{
376
- id: z.ZodString;
377
- label: z.ZodString;
378
- description: z.ZodOptional<z.ZodString>;
379
- entityId: z.ZodString;
380
- stages: z.ZodArray<z.ZodObject<{
381
- label: z.ZodString;
382
- description: z.ZodOptional<z.ZodString>;
383
- color: z.ZodOptional<z.ZodString>;
384
- icon: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
385
- "nav.dashboard": "nav.dashboard";
386
- "nav.calendar": "nav.calendar";
387
- "nav.sales": "nav.sales";
388
- "nav.crm": "nav.crm";
389
- "nav.lead-gen": "nav.lead-gen";
390
- "nav.projects": "nav.projects";
391
- "nav.operations": "nav.operations";
392
- "nav.monitoring": "nav.monitoring";
393
- "nav.knowledge": "nav.knowledge";
394
- "nav.settings": "nav.settings";
395
- "nav.admin": "nav.admin";
396
- "nav.archive": "nav.archive";
397
- "knowledge.playbook": "knowledge.playbook";
398
- "knowledge.strategy": "knowledge.strategy";
399
- "knowledge.reference": "knowledge.reference";
400
- "feature.dashboard": "feature.dashboard";
401
- "feature.calendar": "feature.calendar";
402
- "feature.sales": "feature.sales";
403
- "feature.crm": "feature.crm";
404
- "feature.finance": "feature.finance";
405
- "feature.lead-gen": "feature.lead-gen";
406
- "feature.platform": "feature.platform";
407
- "feature.projects": "feature.projects";
408
- "feature.operations": "feature.operations";
409
- "feature.knowledge": "feature.knowledge";
410
- "feature.monitoring": "feature.monitoring";
411
- "feature.settings": "feature.settings";
412
- "feature.admin": "feature.admin";
413
- "feature.archive": "feature.archive";
414
- "feature.seo": "feature.seo";
415
- "resource.agent": "resource.agent";
416
- "resource.workflow": "resource.workflow";
417
- "resource.integration": "resource.integration";
418
- "resource.database": "resource.database";
419
- "resource.user": "resource.user";
420
- "resource.team": "resource.team";
421
- "integration.gmail": "integration.gmail";
422
- "integration.google-sheets": "integration.google-sheets";
423
- "integration.attio": "integration.attio";
424
- "surface.dashboard": "surface.dashboard";
425
- "surface.calendar": "surface.calendar";
426
- "surface.overview": "surface.overview";
427
- "surface.command-view": "surface.command-view";
428
- "surface.command-queue": "surface.command-queue";
429
- "surface.pipeline": "surface.pipeline";
430
- "surface.lists": "surface.lists";
431
- "surface.resources": "surface.resources";
432
- "surface.settings": "surface.settings";
433
- "status.success": "status.success";
434
- "status.error": "status.error";
435
- "status.warning": "status.warning";
436
- "status.info": "status.info";
437
- "status.pending": "status.pending";
438
- "action.approve": "action.approve";
439
- "action.reject": "action.reject";
440
- "action.retry": "action.retry";
441
- "action.edit": "action.edit";
442
- "action.view": "action.view";
443
- "action.launch": "action.launch";
444
- "action.message": "action.message";
445
- "action.escalate": "action.escalate";
446
- "action.promote": "action.promote";
447
- "action.submit": "action.submit";
448
- "action.email": "action.email";
449
- }>, z.ZodString]>>;
450
- id: z.ZodString;
451
- order: z.ZodNumber;
452
- semanticClass: z.ZodEnum<{
453
- open: "open";
454
- active: "active";
455
- nurturing: "nurturing";
456
- closed_won: "closed_won";
457
- closed_lost: "closed_lost";
458
- }>;
459
- surfaceIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
460
- resourceIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
461
- }, z.core.$strip>>;
462
- }, z.core.$strip>>;
463
- }, z.core.$strip>;
464
- prospecting: z.ZodObject<{
465
- listEntityId: z.ZodString;
466
- companyEntityId: z.ZodString;
467
- contactEntityId: z.ZodString;
468
- description: z.ZodOptional<z.ZodString>;
469
- companyStages: z.ZodArray<z.ZodObject<{
470
- label: z.ZodString;
471
- description: z.ZodOptional<z.ZodString>;
472
- color: z.ZodOptional<z.ZodString>;
473
- icon: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
474
- "nav.dashboard": "nav.dashboard";
475
- "nav.calendar": "nav.calendar";
476
- "nav.sales": "nav.sales";
477
- "nav.crm": "nav.crm";
478
- "nav.lead-gen": "nav.lead-gen";
479
- "nav.projects": "nav.projects";
480
- "nav.operations": "nav.operations";
481
- "nav.monitoring": "nav.monitoring";
482
- "nav.knowledge": "nav.knowledge";
483
- "nav.settings": "nav.settings";
484
- "nav.admin": "nav.admin";
485
- "nav.archive": "nav.archive";
486
- "knowledge.playbook": "knowledge.playbook";
487
- "knowledge.strategy": "knowledge.strategy";
488
- "knowledge.reference": "knowledge.reference";
489
- "feature.dashboard": "feature.dashboard";
490
- "feature.calendar": "feature.calendar";
491
- "feature.sales": "feature.sales";
492
- "feature.crm": "feature.crm";
493
- "feature.finance": "feature.finance";
494
- "feature.lead-gen": "feature.lead-gen";
495
- "feature.platform": "feature.platform";
496
- "feature.projects": "feature.projects";
497
- "feature.operations": "feature.operations";
498
- "feature.knowledge": "feature.knowledge";
499
- "feature.monitoring": "feature.monitoring";
500
- "feature.settings": "feature.settings";
501
- "feature.admin": "feature.admin";
502
- "feature.archive": "feature.archive";
503
- "feature.seo": "feature.seo";
504
- "resource.agent": "resource.agent";
505
- "resource.workflow": "resource.workflow";
506
- "resource.integration": "resource.integration";
507
- "resource.database": "resource.database";
508
- "resource.user": "resource.user";
509
- "resource.team": "resource.team";
510
- "integration.gmail": "integration.gmail";
511
- "integration.google-sheets": "integration.google-sheets";
512
- "integration.attio": "integration.attio";
513
- "surface.dashboard": "surface.dashboard";
514
- "surface.calendar": "surface.calendar";
515
- "surface.overview": "surface.overview";
516
- "surface.command-view": "surface.command-view";
517
- "surface.command-queue": "surface.command-queue";
518
- "surface.pipeline": "surface.pipeline";
519
- "surface.lists": "surface.lists";
520
- "surface.resources": "surface.resources";
521
- "surface.settings": "surface.settings";
522
- "status.success": "status.success";
523
- "status.error": "status.error";
524
- "status.warning": "status.warning";
525
- "status.info": "status.info";
526
- "status.pending": "status.pending";
527
- "action.approve": "action.approve";
528
- "action.reject": "action.reject";
529
- "action.retry": "action.retry";
530
- "action.edit": "action.edit";
531
- "action.view": "action.view";
532
- "action.launch": "action.launch";
533
- "action.message": "action.message";
534
- "action.escalate": "action.escalate";
535
- "action.promote": "action.promote";
536
- "action.submit": "action.submit";
537
- "action.email": "action.email";
538
- }>, z.ZodString]>>;
539
- id: z.ZodString;
540
- order: z.ZodNumber;
541
- }, z.core.$strip>>;
542
- contactStages: z.ZodArray<z.ZodObject<{
543
- label: z.ZodString;
544
- description: z.ZodOptional<z.ZodString>;
545
- color: z.ZodOptional<z.ZodString>;
546
- icon: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
547
- "nav.dashboard": "nav.dashboard";
548
- "nav.calendar": "nav.calendar";
549
- "nav.sales": "nav.sales";
550
- "nav.crm": "nav.crm";
551
- "nav.lead-gen": "nav.lead-gen";
552
- "nav.projects": "nav.projects";
553
- "nav.operations": "nav.operations";
554
- "nav.monitoring": "nav.monitoring";
555
- "nav.knowledge": "nav.knowledge";
556
- "nav.settings": "nav.settings";
557
- "nav.admin": "nav.admin";
558
- "nav.archive": "nav.archive";
559
- "knowledge.playbook": "knowledge.playbook";
560
- "knowledge.strategy": "knowledge.strategy";
561
- "knowledge.reference": "knowledge.reference";
562
- "feature.dashboard": "feature.dashboard";
563
- "feature.calendar": "feature.calendar";
564
- "feature.sales": "feature.sales";
565
- "feature.crm": "feature.crm";
566
- "feature.finance": "feature.finance";
567
- "feature.lead-gen": "feature.lead-gen";
568
- "feature.platform": "feature.platform";
569
- "feature.projects": "feature.projects";
570
- "feature.operations": "feature.operations";
571
- "feature.knowledge": "feature.knowledge";
572
- "feature.monitoring": "feature.monitoring";
573
- "feature.settings": "feature.settings";
574
- "feature.admin": "feature.admin";
575
- "feature.archive": "feature.archive";
576
- "feature.seo": "feature.seo";
577
- "resource.agent": "resource.agent";
578
- "resource.workflow": "resource.workflow";
579
- "resource.integration": "resource.integration";
580
- "resource.database": "resource.database";
581
- "resource.user": "resource.user";
582
- "resource.team": "resource.team";
583
- "integration.gmail": "integration.gmail";
584
- "integration.google-sheets": "integration.google-sheets";
585
- "integration.attio": "integration.attio";
586
- "surface.dashboard": "surface.dashboard";
587
- "surface.calendar": "surface.calendar";
588
- "surface.overview": "surface.overview";
589
- "surface.command-view": "surface.command-view";
590
- "surface.command-queue": "surface.command-queue";
591
- "surface.pipeline": "surface.pipeline";
592
- "surface.lists": "surface.lists";
593
- "surface.resources": "surface.resources";
594
- "surface.settings": "surface.settings";
595
- "status.success": "status.success";
596
- "status.error": "status.error";
597
- "status.warning": "status.warning";
598
- "status.info": "status.info";
599
- "status.pending": "status.pending";
600
- "action.approve": "action.approve";
601
- "action.reject": "action.reject";
602
- "action.retry": "action.retry";
603
- "action.edit": "action.edit";
604
- "action.view": "action.view";
605
- "action.launch": "action.launch";
606
- "action.message": "action.message";
607
- "action.escalate": "action.escalate";
608
- "action.promote": "action.promote";
609
- "action.submit": "action.submit";
610
- "action.email": "action.email";
611
- }>, z.ZodString]>>;
612
- id: z.ZodString;
613
- order: z.ZodNumber;
614
- }, z.core.$strip>>;
615
- defaultBuildTemplateId: z.ZodString;
616
- buildTemplates: z.ZodArray<z.ZodObject<{
617
- label: z.ZodString;
618
- description: z.ZodOptional<z.ZodString>;
619
- color: z.ZodOptional<z.ZodString>;
620
- icon: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
621
- "nav.dashboard": "nav.dashboard";
622
- "nav.calendar": "nav.calendar";
623
- "nav.sales": "nav.sales";
624
- "nav.crm": "nav.crm";
625
- "nav.lead-gen": "nav.lead-gen";
626
- "nav.projects": "nav.projects";
627
- "nav.operations": "nav.operations";
628
- "nav.monitoring": "nav.monitoring";
629
- "nav.knowledge": "nav.knowledge";
630
- "nav.settings": "nav.settings";
631
- "nav.admin": "nav.admin";
632
- "nav.archive": "nav.archive";
633
- "knowledge.playbook": "knowledge.playbook";
634
- "knowledge.strategy": "knowledge.strategy";
635
- "knowledge.reference": "knowledge.reference";
636
- "feature.dashboard": "feature.dashboard";
637
- "feature.calendar": "feature.calendar";
638
- "feature.sales": "feature.sales";
639
- "feature.crm": "feature.crm";
640
- "feature.finance": "feature.finance";
641
- "feature.lead-gen": "feature.lead-gen";
642
- "feature.platform": "feature.platform";
643
- "feature.projects": "feature.projects";
644
- "feature.operations": "feature.operations";
645
- "feature.knowledge": "feature.knowledge";
646
- "feature.monitoring": "feature.monitoring";
647
- "feature.settings": "feature.settings";
648
- "feature.admin": "feature.admin";
649
- "feature.archive": "feature.archive";
650
- "feature.seo": "feature.seo";
651
- "resource.agent": "resource.agent";
652
- "resource.workflow": "resource.workflow";
653
- "resource.integration": "resource.integration";
654
- "resource.database": "resource.database";
655
- "resource.user": "resource.user";
656
- "resource.team": "resource.team";
657
- "integration.gmail": "integration.gmail";
658
- "integration.google-sheets": "integration.google-sheets";
659
- "integration.attio": "integration.attio";
660
- "surface.dashboard": "surface.dashboard";
661
- "surface.calendar": "surface.calendar";
662
- "surface.overview": "surface.overview";
663
- "surface.command-view": "surface.command-view";
664
- "surface.command-queue": "surface.command-queue";
665
- "surface.pipeline": "surface.pipeline";
666
- "surface.lists": "surface.lists";
667
- "surface.resources": "surface.resources";
668
- "surface.settings": "surface.settings";
669
- "status.success": "status.success";
670
- "status.error": "status.error";
671
- "status.warning": "status.warning";
672
- "status.info": "status.info";
673
- "status.pending": "status.pending";
674
- "action.approve": "action.approve";
675
- "action.reject": "action.reject";
676
- "action.retry": "action.retry";
677
- "action.edit": "action.edit";
678
- "action.view": "action.view";
679
- "action.launch": "action.launch";
680
- "action.message": "action.message";
681
- "action.escalate": "action.escalate";
682
- "action.promote": "action.promote";
683
- "action.submit": "action.submit";
684
- "action.email": "action.email";
685
- }>, z.ZodString]>>;
686
- id: z.ZodString;
687
- steps: z.ZodArray<z.ZodObject<{
688
- label: z.ZodString;
689
- description: z.ZodOptional<z.ZodString>;
690
- color: z.ZodOptional<z.ZodString>;
691
- icon: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
692
- "nav.dashboard": "nav.dashboard";
693
- "nav.calendar": "nav.calendar";
694
- "nav.sales": "nav.sales";
695
- "nav.crm": "nav.crm";
696
- "nav.lead-gen": "nav.lead-gen";
697
- "nav.projects": "nav.projects";
698
- "nav.operations": "nav.operations";
699
- "nav.monitoring": "nav.monitoring";
700
- "nav.knowledge": "nav.knowledge";
701
- "nav.settings": "nav.settings";
702
- "nav.admin": "nav.admin";
703
- "nav.archive": "nav.archive";
704
- "knowledge.playbook": "knowledge.playbook";
705
- "knowledge.strategy": "knowledge.strategy";
706
- "knowledge.reference": "knowledge.reference";
707
- "feature.dashboard": "feature.dashboard";
708
- "feature.calendar": "feature.calendar";
709
- "feature.sales": "feature.sales";
710
- "feature.crm": "feature.crm";
711
- "feature.finance": "feature.finance";
712
- "feature.lead-gen": "feature.lead-gen";
713
- "feature.platform": "feature.platform";
714
- "feature.projects": "feature.projects";
715
- "feature.operations": "feature.operations";
716
- "feature.knowledge": "feature.knowledge";
717
- "feature.monitoring": "feature.monitoring";
718
- "feature.settings": "feature.settings";
719
- "feature.admin": "feature.admin";
720
- "feature.archive": "feature.archive";
721
- "feature.seo": "feature.seo";
722
- "resource.agent": "resource.agent";
723
- "resource.workflow": "resource.workflow";
724
- "resource.integration": "resource.integration";
725
- "resource.database": "resource.database";
726
- "resource.user": "resource.user";
727
- "resource.team": "resource.team";
728
- "integration.gmail": "integration.gmail";
729
- "integration.google-sheets": "integration.google-sheets";
730
- "integration.attio": "integration.attio";
731
- "surface.dashboard": "surface.dashboard";
732
- "surface.calendar": "surface.calendar";
733
- "surface.overview": "surface.overview";
734
- "surface.command-view": "surface.command-view";
735
- "surface.command-queue": "surface.command-queue";
736
- "surface.pipeline": "surface.pipeline";
737
- "surface.lists": "surface.lists";
738
- "surface.resources": "surface.resources";
739
- "surface.settings": "surface.settings";
740
- "status.success": "status.success";
741
- "status.error": "status.error";
742
- "status.warning": "status.warning";
743
- "status.info": "status.info";
744
- "status.pending": "status.pending";
745
- "action.approve": "action.approve";
746
- "action.reject": "action.reject";
747
- "action.retry": "action.retry";
748
- "action.edit": "action.edit";
749
- "action.view": "action.view";
750
- "action.launch": "action.launch";
751
- "action.message": "action.message";
752
- "action.escalate": "action.escalate";
753
- "action.promote": "action.promote";
754
- "action.submit": "action.submit";
755
- "action.email": "action.email";
756
- }>, z.ZodString]>>;
757
- id: z.ZodString;
758
- primaryEntity: z.ZodEnum<{
759
- company: "company";
760
- contact: "contact";
894
+ externalUrl: z.ZodOptional<z.ZodString>;
895
+ body: z.ZodString;
896
+ links: z.ZodDefault<z.ZodArray<z.ZodPipe<z.ZodUnion<readonly [z.ZodObject<{
897
+ target: z.ZodObject<{
898
+ kind: z.ZodEnum<{
899
+ system: "system";
900
+ action: "action";
901
+ knowledge: "knowledge";
902
+ role: "role";
903
+ goal: "goal";
904
+ stage: "stage";
905
+ resource: "resource";
906
+ "customer-segment": "customer-segment";
907
+ offering: "offering";
908
+ "content-node": "content-node";
761
909
  }>;
762
- outputs: z.ZodArray<z.ZodEnum<{
763
- company: "company";
764
- contact: "contact";
765
- export: "export";
766
- }>>;
767
- stageKey: z.ZodString;
768
- recordEntity: z.ZodOptional<z.ZodEnum<{
769
- company: "company";
770
- contact: "contact";
771
- }>>;
772
- recordsStageKey: z.ZodOptional<z.ZodString>;
773
- recordSourceStageKey: z.ZodOptional<z.ZodString>;
774
- dependsOn: z.ZodOptional<z.ZodArray<z.ZodString>>;
775
- dependencyMode: z.ZodLiteral<"per-record-eligibility">;
776
- capabilityKey: z.ZodString;
777
- defaultBatchSize: z.ZodNumber;
778
- maxBatchSize: z.ZodNumber;
779
- recordColumns: z.ZodOptional<z.ZodObject<{
780
- company: z.ZodOptional<z.ZodArray<z.ZodObject<{
781
- key: z.ZodString;
782
- label: z.ZodString;
783
- path: z.ZodString;
784
- width: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
785
- renderType: z.ZodOptional<z.ZodEnum<{
786
- text: "text";
787
- badge: "badge";
788
- datetime: "datetime";
789
- count: "count";
790
- json: "json";
791
- }>>;
792
- badgeColor: z.ZodOptional<z.ZodString>;
793
- }, z.core.$strip>>>;
794
- contact: z.ZodOptional<z.ZodArray<z.ZodObject<{
795
- key: z.ZodString;
796
- label: z.ZodString;
797
- path: z.ZodString;
798
- width: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
799
- renderType: z.ZodOptional<z.ZodEnum<{
800
- text: "text";
801
- badge: "badge";
802
- datetime: "datetime";
803
- count: "count";
804
- json: "json";
805
- }>>;
806
- badgeColor: z.ZodOptional<z.ZodString>;
807
- }, z.core.$strip>>>;
808
- }, z.core.$strip>>;
809
- credentialRequirements: z.ZodOptional<z.ZodArray<z.ZodObject<{
810
- key: z.ZodString;
811
- provider: z.ZodString;
812
- credentialType: z.ZodEnum<{
813
- "api-key": "api-key";
814
- "api-key-secret": "api-key-secret";
815
- oauth: "oauth";
816
- "webhook-secret": "webhook-secret";
817
- }>;
818
- label: z.ZodString;
819
- required: z.ZodBoolean;
820
- selectionMode: z.ZodOptional<z.ZodEnum<{
821
- single: "single";
822
- multiple: "multiple";
823
- }>>;
824
- inputPath: z.ZodString;
825
- verifyOnRun: z.ZodOptional<z.ZodBoolean>;
826
- }, z.core.$strip>>>;
827
- }, z.core.$strip>>;
828
- }, z.core.$strip>>;
829
- }, z.core.$strip>;
830
- projects: z.ZodObject<{
831
- projectEntityId: z.ZodString;
832
- milestoneEntityId: z.ZodString;
833
- taskEntityId: z.ZodString;
834
- projectStatuses: z.ZodArray<z.ZodObject<{
835
- label: z.ZodString;
836
- description: z.ZodOptional<z.ZodString>;
837
- color: z.ZodOptional<z.ZodString>;
838
- icon: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
839
- "nav.dashboard": "nav.dashboard";
840
- "nav.calendar": "nav.calendar";
841
- "nav.sales": "nav.sales";
842
- "nav.crm": "nav.crm";
843
- "nav.lead-gen": "nav.lead-gen";
844
- "nav.projects": "nav.projects";
845
- "nav.operations": "nav.operations";
846
- "nav.monitoring": "nav.monitoring";
847
- "nav.knowledge": "nav.knowledge";
848
- "nav.settings": "nav.settings";
849
- "nav.admin": "nav.admin";
850
- "nav.archive": "nav.archive";
851
- "knowledge.playbook": "knowledge.playbook";
852
- "knowledge.strategy": "knowledge.strategy";
853
- "knowledge.reference": "knowledge.reference";
854
- "feature.dashboard": "feature.dashboard";
855
- "feature.calendar": "feature.calendar";
856
- "feature.sales": "feature.sales";
857
- "feature.crm": "feature.crm";
858
- "feature.finance": "feature.finance";
859
- "feature.lead-gen": "feature.lead-gen";
860
- "feature.platform": "feature.platform";
861
- "feature.projects": "feature.projects";
862
- "feature.operations": "feature.operations";
863
- "feature.knowledge": "feature.knowledge";
864
- "feature.monitoring": "feature.monitoring";
865
- "feature.settings": "feature.settings";
866
- "feature.admin": "feature.admin";
867
- "feature.archive": "feature.archive";
868
- "feature.seo": "feature.seo";
869
- "resource.agent": "resource.agent";
870
- "resource.workflow": "resource.workflow";
871
- "resource.integration": "resource.integration";
872
- "resource.database": "resource.database";
873
- "resource.user": "resource.user";
874
- "resource.team": "resource.team";
875
- "integration.gmail": "integration.gmail";
876
- "integration.google-sheets": "integration.google-sheets";
877
- "integration.attio": "integration.attio";
878
- "surface.dashboard": "surface.dashboard";
879
- "surface.calendar": "surface.calendar";
880
- "surface.overview": "surface.overview";
881
- "surface.command-view": "surface.command-view";
882
- "surface.command-queue": "surface.command-queue";
883
- "surface.pipeline": "surface.pipeline";
884
- "surface.lists": "surface.lists";
885
- "surface.resources": "surface.resources";
886
- "surface.settings": "surface.settings";
887
- "status.success": "status.success";
888
- "status.error": "status.error";
889
- "status.warning": "status.warning";
890
- "status.info": "status.info";
891
- "status.pending": "status.pending";
892
- "action.approve": "action.approve";
893
- "action.reject": "action.reject";
894
- "action.retry": "action.retry";
895
- "action.edit": "action.edit";
896
- "action.view": "action.view";
897
- "action.launch": "action.launch";
898
- "action.message": "action.message";
899
- "action.escalate": "action.escalate";
900
- "action.promote": "action.promote";
901
- "action.submit": "action.submit";
902
- "action.email": "action.email";
903
- }>, z.ZodString]>>;
904
- id: z.ZodString;
905
- order: z.ZodNumber;
906
- }, z.core.$strip>>;
907
- milestoneStatuses: z.ZodArray<z.ZodObject<{
908
- label: z.ZodString;
909
- description: z.ZodOptional<z.ZodString>;
910
- color: z.ZodOptional<z.ZodString>;
911
- icon: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
912
- "nav.dashboard": "nav.dashboard";
913
- "nav.calendar": "nav.calendar";
914
- "nav.sales": "nav.sales";
915
- "nav.crm": "nav.crm";
916
- "nav.lead-gen": "nav.lead-gen";
917
- "nav.projects": "nav.projects";
918
- "nav.operations": "nav.operations";
919
- "nav.monitoring": "nav.monitoring";
920
- "nav.knowledge": "nav.knowledge";
921
- "nav.settings": "nav.settings";
922
- "nav.admin": "nav.admin";
923
- "nav.archive": "nav.archive";
924
- "knowledge.playbook": "knowledge.playbook";
925
- "knowledge.strategy": "knowledge.strategy";
926
- "knowledge.reference": "knowledge.reference";
927
- "feature.dashboard": "feature.dashboard";
928
- "feature.calendar": "feature.calendar";
929
- "feature.sales": "feature.sales";
930
- "feature.crm": "feature.crm";
931
- "feature.finance": "feature.finance";
932
- "feature.lead-gen": "feature.lead-gen";
933
- "feature.platform": "feature.platform";
934
- "feature.projects": "feature.projects";
935
- "feature.operations": "feature.operations";
936
- "feature.knowledge": "feature.knowledge";
937
- "feature.monitoring": "feature.monitoring";
938
- "feature.settings": "feature.settings";
939
- "feature.admin": "feature.admin";
940
- "feature.archive": "feature.archive";
941
- "feature.seo": "feature.seo";
942
- "resource.agent": "resource.agent";
943
- "resource.workflow": "resource.workflow";
944
- "resource.integration": "resource.integration";
945
- "resource.database": "resource.database";
946
- "resource.user": "resource.user";
947
- "resource.team": "resource.team";
948
- "integration.gmail": "integration.gmail";
949
- "integration.google-sheets": "integration.google-sheets";
950
- "integration.attio": "integration.attio";
951
- "surface.dashboard": "surface.dashboard";
952
- "surface.calendar": "surface.calendar";
953
- "surface.overview": "surface.overview";
954
- "surface.command-view": "surface.command-view";
955
- "surface.command-queue": "surface.command-queue";
956
- "surface.pipeline": "surface.pipeline";
957
- "surface.lists": "surface.lists";
958
- "surface.resources": "surface.resources";
959
- "surface.settings": "surface.settings";
960
- "status.success": "status.success";
961
- "status.error": "status.error";
962
- "status.warning": "status.warning";
963
- "status.info": "status.info";
964
- "status.pending": "status.pending";
965
- "action.approve": "action.approve";
966
- "action.reject": "action.reject";
967
- "action.retry": "action.retry";
968
- "action.edit": "action.edit";
969
- "action.view": "action.view";
970
- "action.launch": "action.launch";
971
- "action.message": "action.message";
972
- "action.escalate": "action.escalate";
973
- "action.promote": "action.promote";
974
- "action.submit": "action.submit";
975
- "action.email": "action.email";
976
- }>, z.ZodString]>>;
977
- id: z.ZodString;
978
- order: z.ZodNumber;
979
- }, z.core.$strip>>;
980
- taskStatuses: z.ZodArray<z.ZodObject<{
981
- label: z.ZodString;
982
- description: z.ZodOptional<z.ZodString>;
983
- color: z.ZodOptional<z.ZodString>;
984
- icon: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
985
- "nav.dashboard": "nav.dashboard";
986
- "nav.calendar": "nav.calendar";
987
- "nav.sales": "nav.sales";
988
- "nav.crm": "nav.crm";
989
- "nav.lead-gen": "nav.lead-gen";
990
- "nav.projects": "nav.projects";
991
- "nav.operations": "nav.operations";
992
- "nav.monitoring": "nav.monitoring";
993
- "nav.knowledge": "nav.knowledge";
994
- "nav.settings": "nav.settings";
995
- "nav.admin": "nav.admin";
996
- "nav.archive": "nav.archive";
997
- "knowledge.playbook": "knowledge.playbook";
998
- "knowledge.strategy": "knowledge.strategy";
999
- "knowledge.reference": "knowledge.reference";
1000
- "feature.dashboard": "feature.dashboard";
1001
- "feature.calendar": "feature.calendar";
1002
- "feature.sales": "feature.sales";
1003
- "feature.crm": "feature.crm";
1004
- "feature.finance": "feature.finance";
1005
- "feature.lead-gen": "feature.lead-gen";
1006
- "feature.platform": "feature.platform";
1007
- "feature.projects": "feature.projects";
1008
- "feature.operations": "feature.operations";
1009
- "feature.knowledge": "feature.knowledge";
1010
- "feature.monitoring": "feature.monitoring";
1011
- "feature.settings": "feature.settings";
1012
- "feature.admin": "feature.admin";
1013
- "feature.archive": "feature.archive";
1014
- "feature.seo": "feature.seo";
1015
- "resource.agent": "resource.agent";
1016
- "resource.workflow": "resource.workflow";
1017
- "resource.integration": "resource.integration";
1018
- "resource.database": "resource.database";
1019
- "resource.user": "resource.user";
1020
- "resource.team": "resource.team";
1021
- "integration.gmail": "integration.gmail";
1022
- "integration.google-sheets": "integration.google-sheets";
1023
- "integration.attio": "integration.attio";
1024
- "surface.dashboard": "surface.dashboard";
1025
- "surface.calendar": "surface.calendar";
1026
- "surface.overview": "surface.overview";
1027
- "surface.command-view": "surface.command-view";
1028
- "surface.command-queue": "surface.command-queue";
1029
- "surface.pipeline": "surface.pipeline";
1030
- "surface.lists": "surface.lists";
1031
- "surface.resources": "surface.resources";
1032
- "surface.settings": "surface.settings";
1033
- "status.success": "status.success";
1034
- "status.error": "status.error";
1035
- "status.warning": "status.warning";
1036
- "status.info": "status.info";
1037
- "status.pending": "status.pending";
1038
- "action.approve": "action.approve";
1039
- "action.reject": "action.reject";
1040
- "action.retry": "action.retry";
1041
- "action.edit": "action.edit";
1042
- "action.view": "action.view";
1043
- "action.launch": "action.launch";
1044
- "action.message": "action.message";
1045
- "action.escalate": "action.escalate";
1046
- "action.promote": "action.promote";
1047
- "action.submit": "action.submit";
1048
- "action.email": "action.email";
1049
- }>, z.ZodString]>>;
1050
- id: z.ZodString;
1051
- order: z.ZodNumber;
1052
- }, z.core.$strip>>;
1053
- }, z.core.$strip>;
1054
- identity: z.ZodDefault<z.ZodObject<{
1055
- mission: z.ZodDefault<z.ZodString>;
1056
- vision: z.ZodDefault<z.ZodString>;
1057
- legalName: z.ZodDefault<z.ZodString>;
1058
- entityType: z.ZodDefault<z.ZodString>;
1059
- jurisdiction: z.ZodDefault<z.ZodString>;
1060
- industryCategory: z.ZodDefault<z.ZodString>;
1061
- geographicFocus: z.ZodDefault<z.ZodString>;
1062
- timeZone: z.ZodDefault<z.ZodString>;
1063
- businessHours: z.ZodDefault<z.ZodObject<{
1064
- monday: z.ZodOptional<z.ZodObject<{
1065
- open: z.ZodString;
1066
- close: z.ZodString;
1067
- }, z.core.$strip>>;
1068
- tuesday: z.ZodOptional<z.ZodObject<{
1069
- open: z.ZodString;
1070
- close: z.ZodString;
1071
- }, z.core.$strip>>;
1072
- wednesday: z.ZodOptional<z.ZodObject<{
1073
- open: z.ZodString;
1074
- close: z.ZodString;
1075
- }, z.core.$strip>>;
1076
- thursday: z.ZodOptional<z.ZodObject<{
1077
- open: z.ZodString;
1078
- close: z.ZodString;
1079
- }, z.core.$strip>>;
1080
- friday: z.ZodOptional<z.ZodObject<{
1081
- open: z.ZodString;
1082
- close: z.ZodString;
1083
- }, z.core.$strip>>;
1084
- saturday: z.ZodOptional<z.ZodObject<{
1085
- open: z.ZodString;
1086
- close: z.ZodString;
1087
- }, z.core.$strip>>;
1088
- sunday: z.ZodOptional<z.ZodObject<{
1089
- open: z.ZodString;
1090
- close: z.ZodString;
1091
- }, z.core.$strip>>;
1092
- }, z.core.$strip>>;
1093
- clientBrief: z.ZodDefault<z.ZodString>;
1094
- }, z.core.$strip>>;
1095
- customers: z.ZodDefault<z.ZodObject<{
1096
- segments: z.ZodDefault<z.ZodArray<z.ZodObject<{
1097
- id: z.ZodString;
1098
- name: z.ZodDefault<z.ZodString>;
1099
- description: z.ZodDefault<z.ZodString>;
1100
- jobsToBeDone: z.ZodDefault<z.ZodString>;
1101
- pains: z.ZodDefault<z.ZodArray<z.ZodString>>;
1102
- gains: z.ZodDefault<z.ZodArray<z.ZodString>>;
1103
- firmographics: z.ZodDefault<z.ZodObject<{
1104
- industry: z.ZodOptional<z.ZodString>;
1105
- companySize: z.ZodOptional<z.ZodString>;
1106
- region: z.ZodOptional<z.ZodString>;
1107
- }, z.core.$strip>>;
1108
- valueProp: z.ZodDefault<z.ZodString>;
1109
- }, z.core.$strip>>>;
1110
- }, z.core.$strip>>;
1111
- offerings: z.ZodDefault<z.ZodObject<{
1112
- products: z.ZodDefault<z.ZodArray<z.ZodObject<{
1113
- id: z.ZodString;
1114
- name: z.ZodDefault<z.ZodString>;
1115
- description: z.ZodDefault<z.ZodString>;
1116
- pricingModel: z.ZodDefault<z.ZodEnum<{
1117
- custom: "custom";
1118
- "one-time": "one-time";
1119
- subscription: "subscription";
1120
- "usage-based": "usage-based";
1121
- }>>;
1122
- price: z.ZodDefault<z.ZodNumber>;
1123
- currency: z.ZodDefault<z.ZodString>;
1124
- targetSegmentIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
1125
- deliveryFeatureId: z.ZodOptional<z.ZodString>;
1126
- }, z.core.$strip>>>;
1127
- }, z.core.$strip>>;
1128
- roles: z.ZodDefault<z.ZodObject<{
1129
- roles: z.ZodDefault<z.ZodArray<z.ZodObject<{
1130
- id: z.ZodString;
1131
- title: z.ZodString;
1132
- responsibilities: z.ZodDefault<z.ZodArray<z.ZodString>>;
1133
- reportsToId: z.ZodOptional<z.ZodString>;
1134
- heldBy: z.ZodOptional<z.ZodString>;
1135
- }, z.core.$strip>>>;
1136
- }, z.core.$strip>>;
1137
- goals: z.ZodDefault<z.ZodObject<{
1138
- objectives: z.ZodDefault<z.ZodArray<z.ZodObject<{
1139
- id: z.ZodString;
1140
- description: z.ZodString;
1141
- periodStart: z.ZodString;
1142
- periodEnd: z.ZodString;
1143
- keyResults: z.ZodDefault<z.ZodArray<z.ZodObject<{
1144
910
  id: z.ZodString;
1145
- description: z.ZodString;
1146
- targetMetric: z.ZodString;
1147
- currentValue: z.ZodDefault<z.ZodNumber>;
1148
- targetValue: z.ZodOptional<z.ZodNumber>;
1149
- }, z.core.$strip>>>;
1150
- }, z.core.$strip>>>;
1151
- }, z.core.$strip>>;
1152
- statuses: z.ZodDefault<z.ZodObject<{
1153
- entries: z.ZodDefault<z.ZodArray<z.ZodObject<{
1154
- id: z.ZodString;
1155
- label: z.ZodString;
1156
- semanticClass: z.ZodEnum<{
1157
- "delivery.project": "delivery.project";
1158
- "delivery.milestone": "delivery.milestone";
1159
- "delivery.task": "delivery.task";
1160
- queue: "queue";
1161
- execution: "execution";
1162
- schedule: "schedule";
1163
- "schedule.run": "schedule.run";
1164
- request: "request";
1165
- }>;
1166
- category: z.ZodOptional<z.ZodString>;
1167
- }, z.core.$strip>>>;
1168
- }, z.core.$strip>>;
1169
- operations: z.ZodDefault<z.ZodObject<{
1170
- entries: z.ZodDefault<z.ZodArray<z.ZodObject<{
1171
- id: z.ZodString;
1172
- label: z.ZodString;
1173
- semanticClass: z.ZodEnum<{
1174
- queue: "queue";
1175
- executions: "executions";
1176
- sessions: "sessions";
1177
- notifications: "notifications";
1178
- schedules: "schedules";
1179
- }>;
1180
- featureId: z.ZodOptional<z.ZodString>;
1181
- supportedStatusSemanticClass: z.ZodOptional<z.ZodArray<z.ZodString>>;
1182
- }, z.core.$strip>>>;
1183
- }, z.core.$strip>>;
1184
- knowledge: z.ZodDefault<z.ZodObject<{
1185
- nodes: z.ZodDefault<z.ZodArray<z.ZodObject<{
1186
- id: z.ZodString;
1187
- kind: z.ZodEnum<{
1188
- playbook: "playbook";
1189
- strategy: "strategy";
1190
- reference: "reference";
1191
- }>;
1192
- title: z.ZodString;
1193
- summary: z.ZodString;
1194
- icon: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
1195
- "nav.dashboard": "nav.dashboard";
1196
- "nav.calendar": "nav.calendar";
1197
- "nav.sales": "nav.sales";
1198
- "nav.crm": "nav.crm";
1199
- "nav.lead-gen": "nav.lead-gen";
1200
- "nav.projects": "nav.projects";
1201
- "nav.operations": "nav.operations";
1202
- "nav.monitoring": "nav.monitoring";
1203
- "nav.knowledge": "nav.knowledge";
1204
- "nav.settings": "nav.settings";
1205
- "nav.admin": "nav.admin";
1206
- "nav.archive": "nav.archive";
1207
- "knowledge.playbook": "knowledge.playbook";
1208
- "knowledge.strategy": "knowledge.strategy";
1209
- "knowledge.reference": "knowledge.reference";
1210
- "feature.dashboard": "feature.dashboard";
1211
- "feature.calendar": "feature.calendar";
1212
- "feature.sales": "feature.sales";
1213
- "feature.crm": "feature.crm";
1214
- "feature.finance": "feature.finance";
1215
- "feature.lead-gen": "feature.lead-gen";
1216
- "feature.platform": "feature.platform";
1217
- "feature.projects": "feature.projects";
1218
- "feature.operations": "feature.operations";
1219
- "feature.knowledge": "feature.knowledge";
1220
- "feature.monitoring": "feature.monitoring";
1221
- "feature.settings": "feature.settings";
1222
- "feature.admin": "feature.admin";
1223
- "feature.archive": "feature.archive";
1224
- "feature.seo": "feature.seo";
1225
- "resource.agent": "resource.agent";
1226
- "resource.workflow": "resource.workflow";
1227
- "resource.integration": "resource.integration";
1228
- "resource.database": "resource.database";
1229
- "resource.user": "resource.user";
1230
- "resource.team": "resource.team";
1231
- "integration.gmail": "integration.gmail";
1232
- "integration.google-sheets": "integration.google-sheets";
1233
- "integration.attio": "integration.attio";
1234
- "surface.dashboard": "surface.dashboard";
1235
- "surface.calendar": "surface.calendar";
1236
- "surface.overview": "surface.overview";
1237
- "surface.command-view": "surface.command-view";
1238
- "surface.command-queue": "surface.command-queue";
1239
- "surface.pipeline": "surface.pipeline";
1240
- "surface.lists": "surface.lists";
1241
- "surface.resources": "surface.resources";
1242
- "surface.settings": "surface.settings";
1243
- "status.success": "status.success";
1244
- "status.error": "status.error";
1245
- "status.warning": "status.warning";
1246
- "status.info": "status.info";
1247
- "status.pending": "status.pending";
1248
- "action.approve": "action.approve";
1249
- "action.reject": "action.reject";
1250
- "action.retry": "action.retry";
1251
- "action.edit": "action.edit";
1252
- "action.view": "action.view";
1253
- "action.launch": "action.launch";
1254
- "action.message": "action.message";
1255
- "action.escalate": "action.escalate";
1256
- "action.promote": "action.promote";
1257
- "action.submit": "action.submit";
1258
- "action.email": "action.email";
1259
- }>, z.ZodString]>>;
1260
- body: z.ZodString;
1261
- links: z.ZodDefault<z.ZodArray<z.ZodObject<{
1262
- nodeId: z.ZodString;
1263
- }, z.core.$strip>>>;
1264
- skills: z.ZodOptional<z.ZodArray<z.ZodString>>;
1265
- domain: z.ZodOptional<z.ZodString>;
1266
- ownerIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
1267
- updatedAt: z.ZodString;
1268
- }, z.core.$strip>>>;
1269
- }, z.core.$strip>>;
911
+ }, z.core.$strip>;
912
+ }, z.core.$strip>, z.ZodObject<{
913
+ nodeId: z.ZodString;
914
+ }, z.core.$strip>]>, z.ZodTransform<{
915
+ target: {
916
+ kind: "system" | "action" | "knowledge" | "role" | "goal" | "stage" | "resource" | "customer-segment" | "offering" | "content-node";
917
+ id: string;
918
+ };
919
+ nodeId: string;
920
+ }, {
921
+ nodeId: string;
922
+ } | {
923
+ target: {
924
+ kind: "system" | "action" | "knowledge" | "role" | "goal" | "stage" | "resource" | "customer-segment" | "offering" | "content-node";
925
+ id: string;
926
+ };
927
+ }>>>>;
928
+ ownerIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
929
+ updatedAt: z.ZodString;
930
+ }, z.core.$strip>>>>;
1270
931
  }, z.core.$strip>;
1271
932
 
1272
933
  type OrganizationModel = z.infer<typeof OrganizationModelSchema>;
1273
934
  type OrgKnowledgeNode = z.infer<typeof OrgKnowledgeNodeSchema>;
1274
935
  type OrgKnowledgeKind = z.infer<typeof OrgKnowledgeKindSchema>;
1275
936
 
1276
- type OrganizationGraphNodeKind = 'organization' | 'feature' | 'surface' | 'entity' | 'capability' | 'stage' | 'resource' | 'knowledge';
1277
- type OrganizationGraphEdgeKind = 'contains' | 'references' | 'exposes' | 'maps_to' | 'operates-on' | 'uses' | 'governs';
937
+ type OrganizationGraphNodeKind = 'organization' | 'system' | 'role' | 'action' | 'entity' | 'event' | 'policy' | 'stage' | 'resource' | 'knowledge' | 'customer-segment' | 'offering' | 'goal' | 'surface' | 'navigation-group'
938
+ /** Phase 3 preview Phase 4 populates this kind via graph projection of system.content entries. */
939
+ | 'content-node';
940
+ type OrganizationGraphEdgeKind = 'contains' | 'references' | 'maps_to' | 'uses' | 'governs' | 'links' | 'affects' | 'emits' | 'originates_from' | 'triggers' | 'applies_to' | 'effects';
1278
941
 
1279
942
  interface OrganizationGraphNode {
1280
943
  id: string;
@@ -1284,8 +947,7 @@ interface OrganizationGraphNode {
1284
947
  description?: string;
1285
948
  icon?: OrganizationModelIconToken;
1286
949
  enabled?: boolean;
1287
- featureId?: string;
1288
- resourceType?: 'workflow' | 'agent' | 'trigger' | 'integration' | 'external' | 'human_checkpoint';
950
+ resourceType?: 'workflow' | 'agent' | 'trigger' | 'integration' | 'external' | 'human_checkpoint' | 'script';
1289
951
  }
1290
952
  interface OrganizationGraphEdge {
1291
953
  id: string;
@@ -1302,6 +964,8 @@ interface OrganizationGraph {
1302
964
  edges: OrganizationGraphEdge[];
1303
965
  }
1304
966
 
967
+ declare function getSharedOrganizationGraph(organizationModel: OrganizationModel): OrganizationGraph;
968
+
1305
969
  interface KnowledgeBrowserProps {
1306
970
  /** Built organization graph. */
1307
971
  graph: OrganizationGraph;
@@ -1317,30 +981,64 @@ interface KnowledgeBrowserProps {
1317
981
  /**
1318
982
  * Renders the selected knowledge node detail, or the root knowledge overview.
1319
983
  *
1320
- * The file-system tree nav and the search bar live in the subshell sidebar
1321
- * (`KnowledgeSidebarMiddle`). Selection is URL-driven via `initialNodeId`.
984
+ * The file-system tree nav and the search bar live in the knowledge subshell
985
+ * sidebar. Selection is URL-driven via `initialNodeId`.
1322
986
  */
1323
987
  declare function KnowledgeBrowser({ graph, knowledgeNodes, initialNodeId, onNavigateToNode, onSelectNode }: KnowledgeBrowserProps): react_jsx_runtime.JSX.Element;
1324
988
 
989
+ /**
990
+ * Semantic OM tree groups (in display order). Operational configuration domains
991
+ * are projected under their owning systems rather than surfaced as top-level
992
+ * siblings.
993
+ */
994
+ declare const OM_TREE_GROUPS: ReadonlyArray<{
995
+ key: string;
996
+ label: string;
997
+ domains: readonly string[];
998
+ }>;
999
+ type KnowledgeTreeSpine = 'system' | 'entity' | 'resource';
1000
+ type KnowledgeFacetState = 'include' | 'neutral' | 'exclude';
1001
+ type KnowledgeFacetStates = Partial<Record<OrganizationGraphNodeKind, KnowledgeFacetState>>;
1325
1002
  interface KnowledgeTreeProps {
1326
1003
  /** Built organization graph - used to enumerate features and resolve `governs` edges. */
1327
1004
  graph: OrganizationGraph;
1328
1005
  /** All knowledge nodes (the OM authoring shape; queries need this for body/links). */
1329
1006
  knowledgeNodes: OrgKnowledgeNode[];
1007
+ /**
1008
+ * Full organization model. Required when `omRooted` is true so the tree can
1009
+ * surface the 12 non-system OM domain branches. Optional otherwise.
1010
+ */
1011
+ organizationModel?: OrganizationModel;
1330
1012
  /** Called when a knowledge node is selected. */
1331
1013
  onSelectNode: (node: OrgKnowledgeNode) => void;
1332
1014
  /** Called when a graph/config node is selected. */
1333
1015
  onSelectGraphNode?: (node: OrganizationGraphNode) => void;
1016
+ /** Called when an OM domain branch is selected (e.g. `identity`, `customers`). */
1017
+ onSelectDomain?: (domainKey: string) => void;
1018
+ /** Called when an OM semantic group is selected (e.g. `profile`, `graph`). */
1019
+ onSelectGroup?: (groupKey: string) => void;
1020
+ /** Called when an OM domain item is selected (e.g. one customer segment). */
1021
+ onSelectItem?: (domainKey: string, itemId: string) => void;
1022
+ /** Root graph kind for the tree. */
1023
+ spine?: KnowledgeTreeSpine;
1024
+ /**
1025
+ * When true, render an OM-rooted tree with 13 top-level domain branches; the
1026
+ * systems branch retains the spine recursion. When false (default), render a
1027
+ * single-spine tree as before.
1028
+ */
1029
+ omRooted?: boolean;
1030
+ /** Tri-state graph-kind facets. Included kinds are rendered inline; excluded kinds are hidden. */
1031
+ facetStates?: KnowledgeFacetStates;
1334
1032
  /** Currently selected node id (highlights the active row). */
1335
1033
  selectedNodeId?: string;
1336
1034
  }
1337
1035
  /**
1338
1036
  * By-feature primary tree using Mantine `Tree`.
1339
1037
  */
1340
- declare function KnowledgeTree({ graph, knowledgeNodes, onSelectNode, onSelectGraphNode, selectedNodeId }: KnowledgeTreeProps): react_jsx_runtime.JSX.Element;
1038
+ declare function KnowledgeTree({ graph, knowledgeNodes, organizationModel, onSelectNode, onSelectGraphNode, onSelectDomain, onSelectGroup, onSelectItem, spine, omRooted, facetStates, selectedNodeId }: KnowledgeTreeProps): react_jsx_runtime.JSX.Element;
1341
1039
 
1342
1040
  interface KnowledgeNodeListProps {
1343
- /** Nodes to render. Usually the result of a query (byFeature, byKind, search). */
1041
+ /** Nodes to render. Usually the result of a query (bySystem, byKind, search). */
1344
1042
  nodes: OrgKnowledgeNode[];
1345
1043
  /** Called when the user selects a node. */
1346
1044
  onSelect: (node: OrgKnowledgeNode) => void;
@@ -1373,12 +1071,17 @@ interface KnowledgeNodeViewProps {
1373
1071
  * Passed directly to the internal `KnowledgeMDXProvider` wrapper.
1374
1072
  */
1375
1073
  extraComponents?: Record<string, React.ComponentType<any>>;
1074
+ /**
1075
+ * `domainMetadata.knowledge.lastModified` from the OrganizationModel.
1076
+ * When provided, surfaced in the technical metadata footer as "Domain version".
1077
+ */
1078
+ domainVersion?: string;
1376
1079
  }
1377
1080
  /**
1378
1081
  * Full single-node view: title, kind chip, summary, compiled MDX body, graph
1379
1082
  * relationships, and technical metadata for the backing graph node.
1380
1083
  */
1381
- declare function KnowledgeNodeView({ node, graph, onNavigateToNode, extraComponents }: KnowledgeNodeViewProps): react_jsx_runtime.JSX.Element;
1084
+ declare function KnowledgeNodeView({ node, graph, onNavigateToNode, extraComponents, domainVersion }: KnowledgeNodeViewProps): react_jsx_runtime.JSX.Element;
1382
1085
 
1383
1086
  interface KnowledgeSearchBarProps {
1384
1087
  /** All available knowledge nodes — used to resolve hit ids to nodes. */
@@ -1436,28 +1139,6 @@ interface NavItem {
1436
1139
  exact: boolean;
1437
1140
  }
1438
1141
 
1439
- interface KnowledgeSidebarMiddleProps {
1440
- /** Override the default nav items. Defaults to {@link KNOWLEDGE_ITEMS}. */
1441
- items?: NavItem[];
1442
- }
1443
- /**
1444
- * @deprecated Use `KnowledgeSidebarMiddle` from `features/knowledge/sidebar` instead.
1445
- * This legacy nav-items sidebar is retained as a published API surface for external
1446
- * consumers that compose custom sidebars using `KNOWLEDGE_ITEMS`. The canonical
1447
- * subshell sidebar now lives at `packages/ui/src/features/knowledge/sidebar/`.
1448
- *
1449
- * Sidebar middle section for the Knowledge feature (legacy nav-items variant).
1450
- *
1451
- * Mirrors the `CrmSidebarMiddle` pattern. Pass `items` to extend or replace
1452
- * the default nav entries (e.g. add owner-scoped sections for a specific org).
1453
- *
1454
- * @example
1455
- * ```tsx
1456
- * <KnowledgeSidebarMiddle items={[...KNOWLEDGE_ITEMS, { label: 'Runbooks', ... }]} />
1457
- * ```
1458
- */
1459
- declare const KnowledgeSidebarMiddle: ({ items }?: KnowledgeSidebarMiddleProps) => react_jsx_runtime.JSX.Element;
1460
-
1461
1142
  /**
1462
1143
  * @deprecated Used by the legacy `KnowledgeSidebarMiddle` (nav-items variant).
1463
1144
  * Retained as a published API surface for external consumers. The canonical
@@ -1481,7 +1162,7 @@ declare const KNOWLEDGE_ITEMS: NavItem[];
1481
1162
 
1482
1163
  type SemanticIconToken = string;
1483
1164
  type TablerIconComponent = typeof IconBrain;
1484
- type SemanticIconFallbackKind = 'knowledge' | 'playbook' | 'strategy' | 'reference' | 'feature' | 'resource' | 'integration' | 'action' | 'status' | 'nav' | 'unknown';
1165
+ type SemanticIconFallbackKind = 'knowledge' | 'playbook' | 'strategy' | 'reference' | 'feature' | 'resource' | 'integration' | 'action' | 'entity' | 'event' | 'policy' | 'status' | 'nav' | 'unknown';
1485
1166
  type SemanticIconRegistry = Record<SemanticIconToken, TablerIconComponent>;
1486
1167
  declare function extendSemanticIconRegistry(overrides: SemanticIconRegistry): void;
1487
1168
  declare function getSemanticIconComponent(token?: string | null, fallbackKind?: SemanticIconFallbackKind, fallbackToken?: string): TablerIconComponent;
@@ -1564,11 +1245,25 @@ type KnowledgeBodyProps = {
1564
1245
  };
1565
1246
  declare const KNOWLEDGE_BODIES: Record<string, ComponentType<KnowledgeBodyProps>>;
1566
1247
 
1248
+ type DescribeTreeNodeType = 'group' | 'domain-collection' | 'domain' | 'item';
1249
+ interface DescribeTreeSelectionNode {
1250
+ id?: string;
1251
+ value?: string;
1252
+ label: string;
1253
+ description?: string;
1254
+ nodeType: DescribeTreeNodeType;
1255
+ domainKey?: string;
1256
+ itemId?: string;
1257
+ children?: DescribeTreeSelectionNode[];
1258
+ }
1259
+ type DescribeSelectionNode = OrganizationGraphNode | DescribeTreeSelectionNode;
1567
1260
  interface DescribeNodeViewProps {
1568
- /** The graph node to display. */
1569
- node: OrganizationGraphNode;
1261
+ /** The graph node or semantic tree node to display. */
1262
+ node: DescribeSelectionNode;
1570
1263
  /** The organization graph, used to resolve edge relationships. */
1571
1264
  graph: OrganizationGraph;
1265
+ /** Full organization model, required for semantic domain/group tree selections. */
1266
+ organizationModel?: OrganizationModel;
1572
1267
  /** Full knowledge nodes from the organization model, used to hydrate graph knowledge stubs. */
1573
1268
  knowledgeNodes?: OrgKnowledgeNode[];
1574
1269
  /**
@@ -1583,43 +1278,62 @@ interface DescribeNodeViewProps {
1583
1278
  * for kinds that do not have a dedicated view or knowledge graph stubs that
1584
1279
  * cannot be hydrated from the organization model.
1585
1280
  */
1586
- declare function DescribeNodeView({ node, graph, knowledgeNodes, onNavigateToNode }: DescribeNodeViewProps): react_jsx_runtime.JSX.Element;
1281
+ declare function DescribeNodeView({ node, graph, organizationModel, knowledgeNodes, onNavigateToNode }: DescribeNodeViewProps): react_jsx_runtime.JSX.Element;
1282
+
1283
+ type DomainPanelKey = 'identity' | 'branding' | 'customers' | 'offerings' | 'goals' | 'roles' | 'statuses' | 'navigation' | 'policies';
1284
+ interface DomainPanelDispatcherProps {
1285
+ domainKey: string;
1286
+ model: OrganizationModel;
1287
+ onNavigateToNode?: (graphNodeId: string) => void;
1288
+ filterToItemId?: string;
1289
+ }
1290
+ declare function DomainPanelDispatcher({ domainKey, model, onNavigateToNode, filterToItemId }: DomainPanelDispatcherProps): react_jsx_runtime.JSX.Element;
1587
1291
 
1588
- interface FeatureDescribeViewProps {
1292
+ interface SystemDescribeViewProps {
1589
1293
  node: OrganizationGraphNode;
1590
1294
  graph: OrganizationGraph;
1591
1295
  knowledgeNodes?: OrgKnowledgeNode[];
1592
1296
  onNavigateToNode?: (graphNodeId: string) => void;
1297
+ /** Optional full organization model; when provided, renders rich authored system fields. */
1298
+ organizationModel?: OrganizationModel;
1593
1299
  }
1594
1300
  /**
1595
- * Minimal describe view for `feature` graph nodes.
1596
- * Shows: header, key fields (id, sourceId/path, enabled, featureId), relationships, metadata.
1301
+ * Describe view for system graph nodes.
1302
+ * Shows: header, kind chip, key fields (id, path, enabled, ui.path),
1303
+ * ui.icon, lifecycle, parent breadcrumb, responsible role, drives goals,
1304
+ * policies, governedByKnowledge, ui.surfaces, ui placement flags,
1305
+ * actions (exposes/consumes), owned entities, relationships,
1306
+ * and technical metadata.
1597
1307
  */
1598
- declare function FeatureDescribeView({ node, graph, knowledgeNodes, onNavigateToNode }: FeatureDescribeViewProps): react_jsx_runtime.JSX.Element;
1308
+ declare function SystemDescribeView({ node, graph, knowledgeNodes, onNavigateToNode, organizationModel }: SystemDescribeViewProps): react_jsx_runtime.JSX.Element;
1599
1309
 
1600
1310
  interface ResourceDescribeViewProps {
1601
1311
  node: OrganizationGraphNode;
1602
1312
  graph: OrganizationGraph;
1603
1313
  knowledgeNodes?: OrgKnowledgeNode[];
1604
1314
  onNavigateToNode?: (graphNodeId: string) => void;
1315
+ /** Optional full organization model; when provided, renders kind-specific resource fields. */
1316
+ organizationModel?: OrganizationModel;
1605
1317
  }
1606
1318
  /**
1607
- * Minimal describe view for `resource` graph nodes.
1608
- * Shows: header, resource metadata, relationships, technical metadata.
1319
+ * Describe view for `resource` graph nodes.
1320
+ * Shows: header, resource metadata (type, status, owner role, system),
1321
+ * kind-specific content (workflow/agent/integration/script), and relationships.
1609
1322
  */
1610
- declare function ResourceDescribeView({ node, graph, knowledgeNodes, onNavigateToNode }: ResourceDescribeViewProps): react_jsx_runtime.JSX.Element;
1323
+ declare function ResourceDescribeView({ node, graph, knowledgeNodes, onNavigateToNode, organizationModel }: ResourceDescribeViewProps): react_jsx_runtime.JSX.Element;
1611
1324
 
1612
1325
  interface OrganizationDescribeViewProps {
1613
1326
  node: OrganizationGraphNode;
1614
1327
  graph: OrganizationGraph;
1615
1328
  knowledgeNodes?: OrgKnowledgeNode[];
1616
1329
  onNavigateToNode?: (graphNodeId: string) => void;
1330
+ organizationModel?: OrganizationModel;
1617
1331
  }
1618
1332
  /**
1619
1333
  * Minimal describe view for `organization` graph nodes.
1620
- * Shows: header, id, relationships, technical metadata.
1334
+ * Shows: header, id, identity fields, relationships, technical metadata.
1621
1335
  */
1622
- declare function OrganizationDescribeView({ node, graph, knowledgeNodes, onNavigateToNode }: OrganizationDescribeViewProps): react_jsx_runtime.JSX.Element;
1336
+ declare function OrganizationDescribeView({ node, graph, knowledgeNodes, onNavigateToNode, organizationModel }: OrganizationDescribeViewProps): react_jsx_runtime.JSX.Element;
1623
1337
 
1624
1338
  interface GenericDescribeViewProps {
1625
1339
  node: OrganizationGraphNode;
@@ -1639,6 +1353,8 @@ interface KindChipProps extends Omit<HTMLAttributes<HTMLSpanElement>, 'children'
1639
1353
  tone?: KindChipTone;
1640
1354
  }
1641
1355
  declare function KindChip({ kind, tone, style, ...spanProps }: KindChipProps): react_jsx_runtime.JSX.Element;
1356
+ /** Authored-vs-projected provenance label for a knowledge node. */
1357
+ type ProvenanceTag = 'MDX' | 'inline TS' | 'projected';
1642
1358
  interface NodeHeaderProps {
1643
1359
  title: ReactNode;
1644
1360
  kind: string;
@@ -1647,8 +1363,14 @@ interface NodeHeaderProps {
1647
1363
  description?: ReactNode;
1648
1364
  updatedAt?: string;
1649
1365
  rightSection?: ReactNode;
1366
+ /**
1367
+ * Optional provenance chip rendered next to the kind chip.
1368
+ * Decision 7: subtle Badge indicating whether the node body is MDX-compiled,
1369
+ * inline TS, or graph-projected.
1370
+ */
1371
+ provenanceTag?: ProvenanceTag;
1650
1372
  }
1651
- declare function NodeHeader({ title, kind, tone, iconToken, description, updatedAt, rightSection }: NodeHeaderProps): react_jsx_runtime.JSX.Element;
1373
+ declare function NodeHeader({ title, kind, tone, iconToken, description, updatedAt, rightSection, provenanceTag }: NodeHeaderProps): react_jsx_runtime.JSX.Element;
1652
1374
  interface RelatedKnowledgeSectionProps {
1653
1375
  nodeId: string;
1654
1376
  graph: OrganizationGraph;
@@ -1656,18 +1378,41 @@ interface RelatedKnowledgeSectionProps {
1656
1378
  onNavigateToNode?: (nodeId: string) => void;
1657
1379
  }
1658
1380
  declare function RelatedKnowledgeSection({ nodeId, graph, knowledgeNodes, onNavigateToNode }: RelatedKnowledgeSectionProps): react_jsx_runtime.JSX.Element | null;
1381
+ interface ExcludedEdgeFilter {
1382
+ kind: OrganizationGraph['edges'][number]['kind'];
1383
+ direction: 'outgoing' | 'incoming';
1384
+ }
1659
1385
  interface EdgeRelationshipGroupProps {
1660
1386
  nodeId: string;
1661
1387
  graph: OrganizationGraph;
1662
1388
  knowledgeNodes?: OrgKnowledgeNode[];
1663
1389
  onNavigateToNode?: (nodeId: string) => void;
1390
+ /**
1391
+ * Edge kind+direction pairs to suppress from the generic relationship panels.
1392
+ * Use this when a parent view renders a custom panel for that edge kind and
1393
+ * direction to avoid rendering the same chips twice.
1394
+ */
1395
+ excludeKinds?: ExcludedEdgeFilter[];
1664
1396
  }
1665
- declare function EdgeRelationshipGroup({ nodeId, graph, knowledgeNodes, onNavigateToNode }: EdgeRelationshipGroupProps): react_jsx_runtime.JSX.Element | null;
1397
+ declare function EdgeRelationshipGroup({ nodeId, graph, knowledgeNodes, onNavigateToNode, excludeKinds }: EdgeRelationshipGroupProps): react_jsx_runtime.JSX.Element | null;
1666
1398
  interface NodeMetadataFooterProps {
1667
1399
  node: OrganizationGraphNode;
1668
1400
  title?: string;
1401
+ /** Optional content rendered inside the details disclosure (e.g. graph relationships). */
1402
+ children?: ReactNode;
1403
+ /**
1404
+ * Source file path relative to the repo root (e.g.
1405
+ * `packages/elevasis-core/src/knowledge/nodes/platform/foo.mdx`).
1406
+ * When provided, rendered as an extra metadata row.
1407
+ */
1408
+ sourceFilePath?: string;
1409
+ /**
1410
+ * `domainMetadata.knowledge.lastModified` value from the OrganizationModel.
1411
+ * When provided, rendered as an extra "Domain version" metadata row.
1412
+ */
1413
+ domainVersion?: string;
1669
1414
  }
1670
- declare function NodeMetadataFooter({ node, title }: NodeMetadataFooterProps): react_jsx_runtime.JSX.Element | null;
1415
+ declare function NodeMetadataFooter({ node, title, children, sourceFilePath, domainVersion }: NodeMetadataFooterProps): react_jsx_runtime.JSX.Element | null;
1671
1416
  interface NodeDescribeShellProps {
1672
1417
  header?: ReactNode;
1673
1418
  content?: ReactNode;
@@ -1676,5 +1421,5 @@ interface NodeDescribeShellProps {
1676
1421
  }
1677
1422
  declare function NodeDescribeShell({ header, content, relationships, footer }: NodeDescribeShellProps): react_jsx_runtime.JSX.Element;
1678
1423
 
1679
- export { DescribeNodeView, EdgeRelationshipGroup, FeatureDescribeView, GenericDescribeView, KNOWLEDGE_ALLOWLIST, KNOWLEDGE_BODIES, KNOWLEDGE_ICON_TOKEN_BY_KIND, KNOWLEDGE_ITEMS, KindChip, KnowledgeBrowser, KnowledgeMDXProvider, KnowledgeNodeList, KnowledgeNodeView, KnowledgeSearchBar, KnowledgeSidebarMiddle, KnowledgeTree, NodeDescribeShell, NodeHeader, NodeMetadataFooter, OrganizationDescribeView, RelatedKnowledgeSection, ResourceDescribeView, SemanticIcon, extendSemanticIconRegistry, getKnowledgeIconToken, getSemanticIconComponent, resolveSemanticIconComponent, useKnowledgeAllowlist };
1680
- export type { DescribeNodeViewProps, EdgeRelationshipGroupProps, FeatureDescribeViewProps, GenericDescribeViewProps, KindChipProps, KindChipTone, KnowledgeBrowserProps, KnowledgeNodeListProps, KnowledgeNodeViewProps, KnowledgeSearchBarProps, KnowledgeSidebarMiddleProps, KnowledgeTreeProps, NodeDescribeShellProps, NodeHeaderProps, NodeMetadataFooterProps, OrganizationDescribeViewProps, RelatedKnowledgeSectionProps, ResourceDescribeViewProps, SemanticIconProps, SemanticIconRegistry, SemanticIconToken };
1424
+ export { DescribeNodeView, DomainPanelDispatcher, EdgeRelationshipGroup, GenericDescribeView, KNOWLEDGE_ALLOWLIST, KNOWLEDGE_BODIES, KNOWLEDGE_ICON_TOKEN_BY_KIND, KNOWLEDGE_ITEMS, KindChip, KnowledgeBrowser, KnowledgeMDXProvider, KnowledgeNodeList, KnowledgeNodeView, KnowledgeSearchBar, KnowledgeTree, NodeDescribeShell, NodeHeader, NodeMetadataFooter, OM_TREE_GROUPS, OrganizationDescribeView, RelatedKnowledgeSection, ResourceDescribeView, SemanticIcon, SystemDescribeView, extendSemanticIconRegistry, getKnowledgeIconToken, getSemanticIconComponent, getSharedOrganizationGraph, resolveSemanticIconComponent, useKnowledgeAllowlist };
1425
+ export type { DescribeNodeViewProps, DomainPanelDispatcherProps, DomainPanelKey, EdgeRelationshipGroupProps, GenericDescribeViewProps, KindChipProps, KindChipTone, KnowledgeBrowserProps, KnowledgeNodeListProps, KnowledgeNodeViewProps, KnowledgeSearchBarProps, KnowledgeTreeProps, NodeDescribeShellProps, NodeHeaderProps, NodeMetadataFooterProps, OrganizationDescribeViewProps, RelatedKnowledgeSectionProps, ResourceDescribeViewProps, SemanticIconProps, SemanticIconRegistry, SemanticIconToken, SystemDescribeViewProps };