@elevasis/ui 2.31.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 (144) hide show
  1. package/dist/{CoreAuthKitInner-KSEGSB67.js → CoreAuthKitInner-QC62UHTZ.js} +1 -1
  2. package/dist/api/index.js +3 -3
  3. package/dist/app/index.css +38 -0
  4. package/dist/app/index.d.ts +69 -9
  5. package/dist/app/index.js +7 -6
  6. package/dist/auth/context.js +1 -1
  7. package/dist/auth/index.js +1 -1
  8. package/dist/charts/index.js +5 -6
  9. package/dist/{chunk-XQHZBA65.js → chunk-2RJMVWFJ.js} +1 -6
  10. package/dist/{chunk-CW3UNAF2.js → chunk-4DYOXEH6.js} +410 -5
  11. package/dist/{chunk-HQGF4ATG.js → chunk-4MFNGNHF.js} +118 -141
  12. package/dist/{chunk-ND42LPY4.js → chunk-4QK76KIF.js} +6 -6
  13. package/dist/chunk-5FJJ72HU.js +13 -0
  14. package/dist/chunk-5J4PDX26.js +112 -0
  15. package/dist/{chunk-QDEETKYT.js → chunk-6DWD423K.js} +9 -9
  16. package/dist/{chunk-SHQXMW4F.js → chunk-7KZINJLP.js} +46 -28
  17. package/dist/{chunk-L3BVJWML.js → chunk-EPTHX4VZ.js} +1 -1
  18. package/dist/{chunk-JKSUN5GN.js → chunk-GCOQ3TBG.js} +81 -746
  19. package/dist/{chunk-DZTG5IAC.js → chunk-I2KLQ2HA.js} +1 -7
  20. package/dist/{chunk-L2NVFLXU.js → chunk-IQHU7O5Y.js} +4 -4
  21. package/dist/{chunk-P55BJZZW.js → chunk-IZWTVFJ2.js} +16 -4
  22. package/dist/{chunk-QHEWXU7I.js → chunk-JFL3GRD4.js} +1 -1
  23. package/dist/{chunk-Q6OYNEGR.js → chunk-LLRXA7D7.js} +5 -6
  24. package/dist/{chunk-7KC4P3AU.js → chunk-MOY4VOHF.js} +2 -12
  25. package/dist/{chunk-XQQEKWTL.js → chunk-N55DVMAG.js} +6 -2
  26. package/dist/{chunk-TOIXUWR6.js → chunk-ND5TDV2J.js} +1 -1
  27. package/dist/{chunk-WF227UBV.js → chunk-QQHOKTJA.js} +4 -4
  28. package/dist/{chunk-T3IPHEYJ.js → chunk-QTI3KC7D.js} +4335 -554
  29. package/dist/chunk-QXCDKE2O.js +486 -0
  30. package/dist/{chunk-3BAPR3KA.js → chunk-RQA2EVN3.js} +5 -15
  31. package/dist/{chunk-HYNYEBHM.js → chunk-RQTWIXJ5.js} +3 -3
  32. package/dist/chunk-T35FWDAB.js +4342 -0
  33. package/dist/{chunk-DWK2QIAK.js → chunk-TYRUKGGD.js} +1 -1
  34. package/dist/{chunk-GRDLB6LM.js → chunk-UROTM5OR.js} +13 -1
  35. package/dist/{chunk-6YT4IKJ7.js → chunk-VNAZTCHA.js} +15 -0
  36. package/dist/{chunk-5LJAEZMA.js → chunk-VRNMNB3O.js} +5 -6
  37. package/dist/chunk-WQPX44YM.js +1626 -0
  38. package/dist/{chunk-7HMCB26R.js → chunk-XZGSCABI.js} +1 -1
  39. package/dist/chunk-YLQEVSOR.js +299 -0
  40. package/dist/{chunk-Y4FWCG7Y.js → chunk-ZQOKIGZP.js} +8 -7
  41. package/dist/components/chat/index.js +1 -1
  42. package/dist/components/index.css +38 -0
  43. package/dist/components/index.d.ts +152 -50
  44. package/dist/components/index.js +36 -39
  45. package/dist/components/navigation/index.css +38 -0
  46. package/dist/components/navigation/index.js +4 -3
  47. package/dist/execution/index.d.ts +7 -2
  48. package/dist/execution/index.js +1 -1
  49. package/dist/features/auth/index.css +38 -0
  50. package/dist/features/auth/index.d.ts +91 -14
  51. package/dist/features/auth/index.js +42 -10
  52. package/dist/features/clients/index.css +38 -0
  53. package/dist/features/clients/index.d.ts +1 -1
  54. package/dist/features/clients/index.js +16 -15
  55. package/dist/features/crm/index.css +38 -0
  56. package/dist/features/crm/index.d.ts +80 -18
  57. package/dist/features/crm/index.js +16 -15
  58. package/dist/features/dashboard/index.css +38 -0
  59. package/dist/features/dashboard/index.d.ts +65 -25
  60. package/dist/features/dashboard/index.js +16 -16
  61. package/dist/features/delivery/index.css +38 -0
  62. package/dist/features/delivery/index.d.ts +80 -18
  63. package/dist/features/delivery/index.js +15 -15
  64. package/dist/features/knowledge/index.css +38 -0
  65. package/dist/features/knowledge/index.d.ts +20 -18
  66. package/dist/features/knowledge/index.js +112 -597
  67. package/dist/features/lead-gen/index.css +38 -0
  68. package/dist/features/lead-gen/index.d.ts +45 -43
  69. package/dist/features/lead-gen/index.js +16 -16
  70. package/dist/features/monitoring/index.css +38 -0
  71. package/dist/features/monitoring/index.d.ts +20 -18
  72. package/dist/features/monitoring/index.js +17 -17
  73. package/dist/features/monitoring/requests/index.css +38 -0
  74. package/dist/features/monitoring/requests/index.d.ts +21 -19
  75. package/dist/features/monitoring/requests/index.js +15 -14
  76. package/dist/features/operations/index.css +38 -0
  77. package/dist/features/operations/index.d.ts +930 -66
  78. package/dist/features/operations/index.js +21 -24
  79. package/dist/features/seo/index.d.ts +20 -18
  80. package/dist/features/seo/index.js +2 -2
  81. package/dist/features/settings/index.css +38 -0
  82. package/dist/features/settings/index.d.ts +80 -18
  83. package/dist/features/settings/index.js +16 -15
  84. package/dist/graph/index.js +1 -1
  85. package/dist/hooks/delivery/index.css +38 -0
  86. package/dist/hooks/delivery/index.d.ts +60 -0
  87. package/dist/hooks/delivery/index.js +3 -3
  88. package/dist/hooks/index.css +38 -0
  89. package/dist/hooks/index.d.ts +301 -87
  90. package/dist/hooks/index.js +14 -13
  91. package/dist/hooks/operations/command-view/utils/transformCommandViewData.d.ts +143 -33
  92. package/dist/hooks/operations/command-view/utils/transformCommandViewData.js +1 -1
  93. package/dist/hooks/published.css +38 -0
  94. package/dist/hooks/published.d.ts +301 -87
  95. package/dist/hooks/published.js +14 -13
  96. package/dist/index.css +38 -0
  97. package/dist/index.d.ts +976 -1341
  98. package/dist/index.js +15 -14
  99. package/dist/initialization/index.d.ts +60 -0
  100. package/dist/initialization/index.js +1 -1
  101. package/dist/knowledge/index.d.ts +809 -1160
  102. package/dist/knowledge/index.js +5988 -2140
  103. package/dist/{chunk-O2QOPJI5.js → knowledge-search-index-5KYPO746.js} +96 -852
  104. package/dist/layout/index.js +3 -4
  105. package/dist/organization/index.css +38 -0
  106. package/dist/organization/index.js +1 -1
  107. package/dist/profile/index.d.ts +60 -0
  108. package/dist/profile/index.js +1 -1
  109. package/dist/provider/ElevasisServiceContext.js +1 -1
  110. package/dist/provider/index.css +38 -0
  111. package/dist/provider/index.d.ts +786 -1249
  112. package/dist/provider/index.js +11 -10
  113. package/dist/provider/published.css +38 -0
  114. package/dist/provider/published.d.ts +783 -1246
  115. package/dist/provider/published.js +8 -7
  116. package/dist/router/context.js +1 -1
  117. package/dist/router/index.js +1 -1
  118. package/dist/sse/index.js +1 -1
  119. package/dist/supabase/index.d.ts +117 -0
  120. package/dist/supabase/index.js +1 -1
  121. package/dist/test-utils/index.d.ts +16 -9
  122. package/dist/test-utils/index.js +40 -33
  123. package/dist/test-utils/setup-integration.js +1 -1
  124. package/dist/test-utils/setup.js +1 -1
  125. package/dist/theme/index.js +3 -3
  126. package/dist/theme/presets/index.js +1 -1
  127. package/dist/typeform/index.js +1 -1
  128. package/dist/typeform/schemas.js +1 -1
  129. package/dist/types/index.d.ts +205 -35
  130. package/dist/utils/index.d.ts +65 -25
  131. package/dist/utils/index.js +2 -2
  132. package/dist/vite/index.js +1 -1
  133. package/dist/vite-plugin-knowledge/index.js +1 -1
  134. package/dist/zustand/index.js +1 -1
  135. package/package.json +39 -38
  136. package/src/provider/README.md +5 -5
  137. package/dist/chunk-542WPQU2.js +0 -413
  138. package/dist/chunk-6IXOKUBC.js +0 -347
  139. package/dist/chunk-CQZ3DNQY.js +0 -740
  140. package/dist/chunk-ECNNI3NT.js +0 -6
  141. package/dist/chunk-JDNEWB5F.js +0 -10
  142. package/dist/chunk-MVFCLZSK.js +0 -4337
  143. package/dist/chunk-OAVTMITG.js +0 -13
  144. package/dist/chunk-TVRQ6AQI.js +0 -476
@@ -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";
@@ -103,12 +194,40 @@ declare const OrgKnowledgeNodeSchema: z.ZodObject<{
103
194
  "action.submit": "action.submit";
104
195
  "action.email": "action.email";
105
196
  }>, z.ZodString]>>;
197
+ externalUrl: z.ZodOptional<z.ZodString>;
106
198
  body: z.ZodString;
107
- 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<{
108
216
  nodeId: z.ZodString;
109
- }, z.core.$strip>>>;
110
- skills: z.ZodOptional<z.ZodArray<z.ZodString>>;
111
- 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
+ }>>>>;
112
231
  ownerIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
113
232
  updatedAt: z.ZodString;
114
233
  }, z.core.$strip>;
@@ -184,12 +303,527 @@ type OrganizationModelIconToken = z.infer<typeof OrganizationModelIconTokenSchem
184
303
 
185
304
  declare const OrganizationModelSchema: z.ZodObject<{
186
305
  version: z.ZodDefault<z.ZodLiteral<1>>;
187
- 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<{
188
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;
189
698
  label: z.ZodString;
190
699
  description: z.ZodOptional<z.ZodString>;
191
- enabled: z.ZodDefault<z.ZodBoolean>;
192
- path: 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<{
738
+ id: z.ZodString;
739
+ order: z.ZodNumber;
740
+ label: z.ZodString;
741
+ description: 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;
193
827
  icon: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
194
828
  "nav.dashboard": "nav.dashboard";
195
829
  "nav.calendar": "nav.calendar";
@@ -257,1120 +891,53 @@ declare const OrganizationModelSchema: z.ZodObject<{
257
891
  "action.submit": "action.submit";
258
892
  "action.email": "action.email";
259
893
  }>, z.ZodString]>>;
260
- color: z.ZodOptional<z.ZodString>;
261
- uiPosition: z.ZodOptional<z.ZodEnum<{
262
- "sidebar-primary": "sidebar-primary";
263
- "sidebar-bottom": "sidebar-bottom";
264
- }>>;
265
- requiresAdmin: z.ZodOptional<z.ZodBoolean>;
266
- devOnly: z.ZodOptional<z.ZodBoolean>;
267
- }, z.core.$strip>>>;
268
- branding: z.ZodObject<{
269
- organizationName: z.ZodString;
270
- productName: z.ZodString;
271
- shortName: z.ZodString;
272
- description: z.ZodOptional<z.ZodString>;
273
- logos: z.ZodDefault<z.ZodObject<{
274
- light: z.ZodOptional<z.ZodString>;
275
- dark: z.ZodOptional<z.ZodString>;
276
- }, z.core.$strip>>;
277
- }, z.core.$strip>;
278
- navigation: z.ZodDefault<z.ZodObject<{
279
- defaultSurfaceId: z.ZodOptional<z.ZodString>;
280
- surfaces: z.ZodDefault<z.ZodArray<z.ZodObject<{
281
- id: z.ZodString;
282
- label: z.ZodString;
283
- path: z.ZodString;
284
- surfaceType: z.ZodEnum<{
285
- settings: "settings";
286
- page: "page";
287
- dashboard: "dashboard";
288
- graph: "graph";
289
- detail: "detail";
290
- list: "list";
291
- }>;
292
- description: z.ZodOptional<z.ZodString>;
293
- enabled: z.ZodDefault<z.ZodBoolean>;
294
- devOnly: z.ZodOptional<z.ZodBoolean>;
295
- icon: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
296
- "nav.dashboard": "nav.dashboard";
297
- "nav.calendar": "nav.calendar";
298
- "nav.sales": "nav.sales";
299
- "nav.crm": "nav.crm";
300
- "nav.lead-gen": "nav.lead-gen";
301
- "nav.projects": "nav.projects";
302
- "nav.operations": "nav.operations";
303
- "nav.monitoring": "nav.monitoring";
304
- "nav.knowledge": "nav.knowledge";
305
- "nav.settings": "nav.settings";
306
- "nav.admin": "nav.admin";
307
- "nav.archive": "nav.archive";
308
- "knowledge.playbook": "knowledge.playbook";
309
- "knowledge.strategy": "knowledge.strategy";
310
- "knowledge.reference": "knowledge.reference";
311
- "feature.dashboard": "feature.dashboard";
312
- "feature.calendar": "feature.calendar";
313
- "feature.business": "feature.business";
314
- "feature.sales": "feature.sales";
315
- "feature.crm": "feature.crm";
316
- "feature.finance": "feature.finance";
317
- "feature.lead-gen": "feature.lead-gen";
318
- "feature.platform": "feature.platform";
319
- "feature.projects": "feature.projects";
320
- "feature.operations": "feature.operations";
321
- "feature.knowledge": "feature.knowledge";
322
- "feature.monitoring": "feature.monitoring";
323
- "feature.settings": "feature.settings";
324
- "feature.admin": "feature.admin";
325
- "feature.archive": "feature.archive";
326
- "feature.seo": "feature.seo";
327
- "resource.agent": "resource.agent";
328
- "resource.workflow": "resource.workflow";
329
- "resource.integration": "resource.integration";
330
- "resource.database": "resource.database";
331
- "resource.user": "resource.user";
332
- "resource.team": "resource.team";
333
- "integration.gmail": "integration.gmail";
334
- "integration.google-sheets": "integration.google-sheets";
335
- "integration.attio": "integration.attio";
336
- "surface.dashboard": "surface.dashboard";
337
- "surface.calendar": "surface.calendar";
338
- "surface.overview": "surface.overview";
339
- "surface.command-view": "surface.command-view";
340
- "surface.command-queue": "surface.command-queue";
341
- "surface.pipeline": "surface.pipeline";
342
- "surface.lists": "surface.lists";
343
- "surface.resources": "surface.resources";
344
- "surface.settings": "surface.settings";
345
- "status.success": "status.success";
346
- "status.error": "status.error";
347
- "status.warning": "status.warning";
348
- "status.info": "status.info";
349
- "status.pending": "status.pending";
350
- "action.approve": "action.approve";
351
- "action.reject": "action.reject";
352
- "action.retry": "action.retry";
353
- "action.edit": "action.edit";
354
- "action.view": "action.view";
355
- "action.launch": "action.launch";
356
- "action.message": "action.message";
357
- "action.escalate": "action.escalate";
358
- "action.promote": "action.promote";
359
- "action.submit": "action.submit";
360
- "action.email": "action.email";
361
- }>, z.ZodString]>>;
362
- featureId: z.ZodOptional<z.ZodString>;
363
- featureIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
364
- entityIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
365
- resourceIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
366
- capabilityIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
367
- parentId: z.ZodOptional<z.ZodString>;
368
- }, z.core.$strip>>>;
369
- groups: z.ZodDefault<z.ZodArray<z.ZodObject<{
370
- id: z.ZodString;
371
- label: z.ZodString;
372
- placement: z.ZodString;
373
- surfaceIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
374
- }, z.core.$strip>>>;
375
- }, z.core.$strip>>;
376
- sales: z.ZodObject<{
377
- entityId: z.ZodString;
378
- defaultPipelineId: z.ZodString;
379
- pipelines: z.ZodArray<z.ZodObject<{
380
- id: z.ZodString;
381
- label: z.ZodString;
382
- description: z.ZodOptional<z.ZodString>;
383
- entityId: z.ZodString;
384
- stages: z.ZodArray<z.ZodObject<{
385
- label: z.ZodString;
386
- description: z.ZodOptional<z.ZodString>;
387
- color: z.ZodOptional<z.ZodString>;
388
- icon: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
389
- "nav.dashboard": "nav.dashboard";
390
- "nav.calendar": "nav.calendar";
391
- "nav.sales": "nav.sales";
392
- "nav.crm": "nav.crm";
393
- "nav.lead-gen": "nav.lead-gen";
394
- "nav.projects": "nav.projects";
395
- "nav.operations": "nav.operations";
396
- "nav.monitoring": "nav.monitoring";
397
- "nav.knowledge": "nav.knowledge";
398
- "nav.settings": "nav.settings";
399
- "nav.admin": "nav.admin";
400
- "nav.archive": "nav.archive";
401
- "knowledge.playbook": "knowledge.playbook";
402
- "knowledge.strategy": "knowledge.strategy";
403
- "knowledge.reference": "knowledge.reference";
404
- "feature.dashboard": "feature.dashboard";
405
- "feature.calendar": "feature.calendar";
406
- "feature.business": "feature.business";
407
- "feature.sales": "feature.sales";
408
- "feature.crm": "feature.crm";
409
- "feature.finance": "feature.finance";
410
- "feature.lead-gen": "feature.lead-gen";
411
- "feature.platform": "feature.platform";
412
- "feature.projects": "feature.projects";
413
- "feature.operations": "feature.operations";
414
- "feature.knowledge": "feature.knowledge";
415
- "feature.monitoring": "feature.monitoring";
416
- "feature.settings": "feature.settings";
417
- "feature.admin": "feature.admin";
418
- "feature.archive": "feature.archive";
419
- "feature.seo": "feature.seo";
420
- "resource.agent": "resource.agent";
421
- "resource.workflow": "resource.workflow";
422
- "resource.integration": "resource.integration";
423
- "resource.database": "resource.database";
424
- "resource.user": "resource.user";
425
- "resource.team": "resource.team";
426
- "integration.gmail": "integration.gmail";
427
- "integration.google-sheets": "integration.google-sheets";
428
- "integration.attio": "integration.attio";
429
- "surface.dashboard": "surface.dashboard";
430
- "surface.calendar": "surface.calendar";
431
- "surface.overview": "surface.overview";
432
- "surface.command-view": "surface.command-view";
433
- "surface.command-queue": "surface.command-queue";
434
- "surface.pipeline": "surface.pipeline";
435
- "surface.lists": "surface.lists";
436
- "surface.resources": "surface.resources";
437
- "surface.settings": "surface.settings";
438
- "status.success": "status.success";
439
- "status.error": "status.error";
440
- "status.warning": "status.warning";
441
- "status.info": "status.info";
442
- "status.pending": "status.pending";
443
- "action.approve": "action.approve";
444
- "action.reject": "action.reject";
445
- "action.retry": "action.retry";
446
- "action.edit": "action.edit";
447
- "action.view": "action.view";
448
- "action.launch": "action.launch";
449
- "action.message": "action.message";
450
- "action.escalate": "action.escalate";
451
- "action.promote": "action.promote";
452
- "action.submit": "action.submit";
453
- "action.email": "action.email";
454
- }>, z.ZodString]>>;
455
- id: z.ZodString;
456
- order: z.ZodNumber;
457
- semanticClass: z.ZodEnum<{
458
- open: "open";
459
- active: "active";
460
- nurturing: "nurturing";
461
- closed_won: "closed_won";
462
- closed_lost: "closed_lost";
463
- }>;
464
- surfaceIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
465
- resourceIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
466
- }, z.core.$strip>>;
467
- }, z.core.$strip>>;
468
- }, z.core.$strip>;
469
- prospecting: z.ZodObject<{
470
- listEntityId: z.ZodString;
471
- companyEntityId: z.ZodString;
472
- contactEntityId: z.ZodString;
473
- description: z.ZodOptional<z.ZodString>;
474
- companyStages: z.ZodArray<z.ZodObject<{
475
- label: z.ZodString;
476
- description: z.ZodOptional<z.ZodString>;
477
- color: z.ZodOptional<z.ZodString>;
478
- icon: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
479
- "nav.dashboard": "nav.dashboard";
480
- "nav.calendar": "nav.calendar";
481
- "nav.sales": "nav.sales";
482
- "nav.crm": "nav.crm";
483
- "nav.lead-gen": "nav.lead-gen";
484
- "nav.projects": "nav.projects";
485
- "nav.operations": "nav.operations";
486
- "nav.monitoring": "nav.monitoring";
487
- "nav.knowledge": "nav.knowledge";
488
- "nav.settings": "nav.settings";
489
- "nav.admin": "nav.admin";
490
- "nav.archive": "nav.archive";
491
- "knowledge.playbook": "knowledge.playbook";
492
- "knowledge.strategy": "knowledge.strategy";
493
- "knowledge.reference": "knowledge.reference";
494
- "feature.dashboard": "feature.dashboard";
495
- "feature.calendar": "feature.calendar";
496
- "feature.business": "feature.business";
497
- "feature.sales": "feature.sales";
498
- "feature.crm": "feature.crm";
499
- "feature.finance": "feature.finance";
500
- "feature.lead-gen": "feature.lead-gen";
501
- "feature.platform": "feature.platform";
502
- "feature.projects": "feature.projects";
503
- "feature.operations": "feature.operations";
504
- "feature.knowledge": "feature.knowledge";
505
- "feature.monitoring": "feature.monitoring";
506
- "feature.settings": "feature.settings";
507
- "feature.admin": "feature.admin";
508
- "feature.archive": "feature.archive";
509
- "feature.seo": "feature.seo";
510
- "resource.agent": "resource.agent";
511
- "resource.workflow": "resource.workflow";
512
- "resource.integration": "resource.integration";
513
- "resource.database": "resource.database";
514
- "resource.user": "resource.user";
515
- "resource.team": "resource.team";
516
- "integration.gmail": "integration.gmail";
517
- "integration.google-sheets": "integration.google-sheets";
518
- "integration.attio": "integration.attio";
519
- "surface.dashboard": "surface.dashboard";
520
- "surface.calendar": "surface.calendar";
521
- "surface.overview": "surface.overview";
522
- "surface.command-view": "surface.command-view";
523
- "surface.command-queue": "surface.command-queue";
524
- "surface.pipeline": "surface.pipeline";
525
- "surface.lists": "surface.lists";
526
- "surface.resources": "surface.resources";
527
- "surface.settings": "surface.settings";
528
- "status.success": "status.success";
529
- "status.error": "status.error";
530
- "status.warning": "status.warning";
531
- "status.info": "status.info";
532
- "status.pending": "status.pending";
533
- "action.approve": "action.approve";
534
- "action.reject": "action.reject";
535
- "action.retry": "action.retry";
536
- "action.edit": "action.edit";
537
- "action.view": "action.view";
538
- "action.launch": "action.launch";
539
- "action.message": "action.message";
540
- "action.escalate": "action.escalate";
541
- "action.promote": "action.promote";
542
- "action.submit": "action.submit";
543
- "action.email": "action.email";
544
- }>, z.ZodString]>>;
545
- id: z.ZodString;
546
- order: z.ZodNumber;
547
- }, z.core.$strip>>;
548
- contactStages: z.ZodArray<z.ZodObject<{
549
- label: z.ZodString;
550
- description: z.ZodOptional<z.ZodString>;
551
- color: z.ZodOptional<z.ZodString>;
552
- icon: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
553
- "nav.dashboard": "nav.dashboard";
554
- "nav.calendar": "nav.calendar";
555
- "nav.sales": "nav.sales";
556
- "nav.crm": "nav.crm";
557
- "nav.lead-gen": "nav.lead-gen";
558
- "nav.projects": "nav.projects";
559
- "nav.operations": "nav.operations";
560
- "nav.monitoring": "nav.monitoring";
561
- "nav.knowledge": "nav.knowledge";
562
- "nav.settings": "nav.settings";
563
- "nav.admin": "nav.admin";
564
- "nav.archive": "nav.archive";
565
- "knowledge.playbook": "knowledge.playbook";
566
- "knowledge.strategy": "knowledge.strategy";
567
- "knowledge.reference": "knowledge.reference";
568
- "feature.dashboard": "feature.dashboard";
569
- "feature.calendar": "feature.calendar";
570
- "feature.business": "feature.business";
571
- "feature.sales": "feature.sales";
572
- "feature.crm": "feature.crm";
573
- "feature.finance": "feature.finance";
574
- "feature.lead-gen": "feature.lead-gen";
575
- "feature.platform": "feature.platform";
576
- "feature.projects": "feature.projects";
577
- "feature.operations": "feature.operations";
578
- "feature.knowledge": "feature.knowledge";
579
- "feature.monitoring": "feature.monitoring";
580
- "feature.settings": "feature.settings";
581
- "feature.admin": "feature.admin";
582
- "feature.archive": "feature.archive";
583
- "feature.seo": "feature.seo";
584
- "resource.agent": "resource.agent";
585
- "resource.workflow": "resource.workflow";
586
- "resource.integration": "resource.integration";
587
- "resource.database": "resource.database";
588
- "resource.user": "resource.user";
589
- "resource.team": "resource.team";
590
- "integration.gmail": "integration.gmail";
591
- "integration.google-sheets": "integration.google-sheets";
592
- "integration.attio": "integration.attio";
593
- "surface.dashboard": "surface.dashboard";
594
- "surface.calendar": "surface.calendar";
595
- "surface.overview": "surface.overview";
596
- "surface.command-view": "surface.command-view";
597
- "surface.command-queue": "surface.command-queue";
598
- "surface.pipeline": "surface.pipeline";
599
- "surface.lists": "surface.lists";
600
- "surface.resources": "surface.resources";
601
- "surface.settings": "surface.settings";
602
- "status.success": "status.success";
603
- "status.error": "status.error";
604
- "status.warning": "status.warning";
605
- "status.info": "status.info";
606
- "status.pending": "status.pending";
607
- "action.approve": "action.approve";
608
- "action.reject": "action.reject";
609
- "action.retry": "action.retry";
610
- "action.edit": "action.edit";
611
- "action.view": "action.view";
612
- "action.launch": "action.launch";
613
- "action.message": "action.message";
614
- "action.escalate": "action.escalate";
615
- "action.promote": "action.promote";
616
- "action.submit": "action.submit";
617
- "action.email": "action.email";
618
- }>, z.ZodString]>>;
619
- id: z.ZodString;
620
- order: z.ZodNumber;
621
- }, z.core.$strip>>;
622
- defaultBuildTemplateId: z.ZodString;
623
- buildTemplates: z.ZodArray<z.ZodObject<{
624
- label: z.ZodString;
625
- description: z.ZodOptional<z.ZodString>;
626
- color: z.ZodOptional<z.ZodString>;
627
- icon: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
628
- "nav.dashboard": "nav.dashboard";
629
- "nav.calendar": "nav.calendar";
630
- "nav.sales": "nav.sales";
631
- "nav.crm": "nav.crm";
632
- "nav.lead-gen": "nav.lead-gen";
633
- "nav.projects": "nav.projects";
634
- "nav.operations": "nav.operations";
635
- "nav.monitoring": "nav.monitoring";
636
- "nav.knowledge": "nav.knowledge";
637
- "nav.settings": "nav.settings";
638
- "nav.admin": "nav.admin";
639
- "nav.archive": "nav.archive";
640
- "knowledge.playbook": "knowledge.playbook";
641
- "knowledge.strategy": "knowledge.strategy";
642
- "knowledge.reference": "knowledge.reference";
643
- "feature.dashboard": "feature.dashboard";
644
- "feature.calendar": "feature.calendar";
645
- "feature.business": "feature.business";
646
- "feature.sales": "feature.sales";
647
- "feature.crm": "feature.crm";
648
- "feature.finance": "feature.finance";
649
- "feature.lead-gen": "feature.lead-gen";
650
- "feature.platform": "feature.platform";
651
- "feature.projects": "feature.projects";
652
- "feature.operations": "feature.operations";
653
- "feature.knowledge": "feature.knowledge";
654
- "feature.monitoring": "feature.monitoring";
655
- "feature.settings": "feature.settings";
656
- "feature.admin": "feature.admin";
657
- "feature.archive": "feature.archive";
658
- "feature.seo": "feature.seo";
659
- "resource.agent": "resource.agent";
660
- "resource.workflow": "resource.workflow";
661
- "resource.integration": "resource.integration";
662
- "resource.database": "resource.database";
663
- "resource.user": "resource.user";
664
- "resource.team": "resource.team";
665
- "integration.gmail": "integration.gmail";
666
- "integration.google-sheets": "integration.google-sheets";
667
- "integration.attio": "integration.attio";
668
- "surface.dashboard": "surface.dashboard";
669
- "surface.calendar": "surface.calendar";
670
- "surface.overview": "surface.overview";
671
- "surface.command-view": "surface.command-view";
672
- "surface.command-queue": "surface.command-queue";
673
- "surface.pipeline": "surface.pipeline";
674
- "surface.lists": "surface.lists";
675
- "surface.resources": "surface.resources";
676
- "surface.settings": "surface.settings";
677
- "status.success": "status.success";
678
- "status.error": "status.error";
679
- "status.warning": "status.warning";
680
- "status.info": "status.info";
681
- "status.pending": "status.pending";
682
- "action.approve": "action.approve";
683
- "action.reject": "action.reject";
684
- "action.retry": "action.retry";
685
- "action.edit": "action.edit";
686
- "action.view": "action.view";
687
- "action.launch": "action.launch";
688
- "action.message": "action.message";
689
- "action.escalate": "action.escalate";
690
- "action.promote": "action.promote";
691
- "action.submit": "action.submit";
692
- "action.email": "action.email";
693
- }>, z.ZodString]>>;
694
- id: z.ZodString;
695
- steps: z.ZodArray<z.ZodObject<{
696
- label: z.ZodString;
697
- description: z.ZodOptional<z.ZodString>;
698
- color: z.ZodOptional<z.ZodString>;
699
- icon: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
700
- "nav.dashboard": "nav.dashboard";
701
- "nav.calendar": "nav.calendar";
702
- "nav.sales": "nav.sales";
703
- "nav.crm": "nav.crm";
704
- "nav.lead-gen": "nav.lead-gen";
705
- "nav.projects": "nav.projects";
706
- "nav.operations": "nav.operations";
707
- "nav.monitoring": "nav.monitoring";
708
- "nav.knowledge": "nav.knowledge";
709
- "nav.settings": "nav.settings";
710
- "nav.admin": "nav.admin";
711
- "nav.archive": "nav.archive";
712
- "knowledge.playbook": "knowledge.playbook";
713
- "knowledge.strategy": "knowledge.strategy";
714
- "knowledge.reference": "knowledge.reference";
715
- "feature.dashboard": "feature.dashboard";
716
- "feature.calendar": "feature.calendar";
717
- "feature.business": "feature.business";
718
- "feature.sales": "feature.sales";
719
- "feature.crm": "feature.crm";
720
- "feature.finance": "feature.finance";
721
- "feature.lead-gen": "feature.lead-gen";
722
- "feature.platform": "feature.platform";
723
- "feature.projects": "feature.projects";
724
- "feature.operations": "feature.operations";
725
- "feature.knowledge": "feature.knowledge";
726
- "feature.monitoring": "feature.monitoring";
727
- "feature.settings": "feature.settings";
728
- "feature.admin": "feature.admin";
729
- "feature.archive": "feature.archive";
730
- "feature.seo": "feature.seo";
731
- "resource.agent": "resource.agent";
732
- "resource.workflow": "resource.workflow";
733
- "resource.integration": "resource.integration";
734
- "resource.database": "resource.database";
735
- "resource.user": "resource.user";
736
- "resource.team": "resource.team";
737
- "integration.gmail": "integration.gmail";
738
- "integration.google-sheets": "integration.google-sheets";
739
- "integration.attio": "integration.attio";
740
- "surface.dashboard": "surface.dashboard";
741
- "surface.calendar": "surface.calendar";
742
- "surface.overview": "surface.overview";
743
- "surface.command-view": "surface.command-view";
744
- "surface.command-queue": "surface.command-queue";
745
- "surface.pipeline": "surface.pipeline";
746
- "surface.lists": "surface.lists";
747
- "surface.resources": "surface.resources";
748
- "surface.settings": "surface.settings";
749
- "status.success": "status.success";
750
- "status.error": "status.error";
751
- "status.warning": "status.warning";
752
- "status.info": "status.info";
753
- "status.pending": "status.pending";
754
- "action.approve": "action.approve";
755
- "action.reject": "action.reject";
756
- "action.retry": "action.retry";
757
- "action.edit": "action.edit";
758
- "action.view": "action.view";
759
- "action.launch": "action.launch";
760
- "action.message": "action.message";
761
- "action.escalate": "action.escalate";
762
- "action.promote": "action.promote";
763
- "action.submit": "action.submit";
764
- "action.email": "action.email";
765
- }>, z.ZodString]>>;
766
- id: z.ZodString;
767
- primaryEntity: z.ZodEnum<{
768
- company: "company";
769
- 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";
770
909
  }>;
771
- outputs: z.ZodArray<z.ZodEnum<{
772
- company: "company";
773
- contact: "contact";
774
- export: "export";
775
- }>>;
776
- stageKey: z.ZodString;
777
- recordEntity: z.ZodOptional<z.ZodEnum<{
778
- company: "company";
779
- contact: "contact";
780
- }>>;
781
- recordsStageKey: z.ZodOptional<z.ZodString>;
782
- recordSourceStageKey: z.ZodOptional<z.ZodString>;
783
- dependsOn: z.ZodOptional<z.ZodArray<z.ZodString>>;
784
- dependencyMode: z.ZodLiteral<"per-record-eligibility">;
785
- capabilityKey: z.ZodString;
786
- defaultBatchSize: z.ZodNumber;
787
- maxBatchSize: z.ZodNumber;
788
- recordColumns: z.ZodOptional<z.ZodObject<{
789
- company: z.ZodOptional<z.ZodArray<z.ZodObject<{
790
- key: z.ZodString;
791
- label: z.ZodString;
792
- path: z.ZodString;
793
- width: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
794
- renderType: z.ZodOptional<z.ZodEnum<{
795
- text: "text";
796
- badge: "badge";
797
- datetime: "datetime";
798
- count: "count";
799
- json: "json";
800
- }>>;
801
- badgeColor: z.ZodOptional<z.ZodString>;
802
- }, z.core.$strip>>>;
803
- contact: z.ZodOptional<z.ZodArray<z.ZodObject<{
804
- key: z.ZodString;
805
- label: z.ZodString;
806
- path: z.ZodString;
807
- width: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
808
- renderType: z.ZodOptional<z.ZodEnum<{
809
- text: "text";
810
- badge: "badge";
811
- datetime: "datetime";
812
- count: "count";
813
- json: "json";
814
- }>>;
815
- badgeColor: z.ZodOptional<z.ZodString>;
816
- }, z.core.$strip>>>;
817
- }, z.core.$strip>>;
818
- credentialRequirements: z.ZodOptional<z.ZodArray<z.ZodObject<{
819
- key: z.ZodString;
820
- provider: z.ZodString;
821
- credentialType: z.ZodEnum<{
822
- "api-key": "api-key";
823
- "api-key-secret": "api-key-secret";
824
- oauth: "oauth";
825
- "webhook-secret": "webhook-secret";
826
- }>;
827
- label: z.ZodString;
828
- required: z.ZodBoolean;
829
- selectionMode: z.ZodOptional<z.ZodEnum<{
830
- single: "single";
831
- multiple: "multiple";
832
- }>>;
833
- inputPath: z.ZodString;
834
- verifyOnRun: z.ZodOptional<z.ZodBoolean>;
835
- }, z.core.$strip>>>;
836
- }, z.core.$strip>>;
837
- }, z.core.$strip>>;
838
- }, z.core.$strip>;
839
- projects: z.ZodObject<{
840
- projectEntityId: z.ZodString;
841
- milestoneEntityId: z.ZodString;
842
- taskEntityId: z.ZodString;
843
- projectStatuses: z.ZodArray<z.ZodObject<{
844
- label: z.ZodString;
845
- description: z.ZodOptional<z.ZodString>;
846
- color: z.ZodOptional<z.ZodString>;
847
- icon: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
848
- "nav.dashboard": "nav.dashboard";
849
- "nav.calendar": "nav.calendar";
850
- "nav.sales": "nav.sales";
851
- "nav.crm": "nav.crm";
852
- "nav.lead-gen": "nav.lead-gen";
853
- "nav.projects": "nav.projects";
854
- "nav.operations": "nav.operations";
855
- "nav.monitoring": "nav.monitoring";
856
- "nav.knowledge": "nav.knowledge";
857
- "nav.settings": "nav.settings";
858
- "nav.admin": "nav.admin";
859
- "nav.archive": "nav.archive";
860
- "knowledge.playbook": "knowledge.playbook";
861
- "knowledge.strategy": "knowledge.strategy";
862
- "knowledge.reference": "knowledge.reference";
863
- "feature.dashboard": "feature.dashboard";
864
- "feature.calendar": "feature.calendar";
865
- "feature.business": "feature.business";
866
- "feature.sales": "feature.sales";
867
- "feature.crm": "feature.crm";
868
- "feature.finance": "feature.finance";
869
- "feature.lead-gen": "feature.lead-gen";
870
- "feature.platform": "feature.platform";
871
- "feature.projects": "feature.projects";
872
- "feature.operations": "feature.operations";
873
- "feature.knowledge": "feature.knowledge";
874
- "feature.monitoring": "feature.monitoring";
875
- "feature.settings": "feature.settings";
876
- "feature.admin": "feature.admin";
877
- "feature.archive": "feature.archive";
878
- "feature.seo": "feature.seo";
879
- "resource.agent": "resource.agent";
880
- "resource.workflow": "resource.workflow";
881
- "resource.integration": "resource.integration";
882
- "resource.database": "resource.database";
883
- "resource.user": "resource.user";
884
- "resource.team": "resource.team";
885
- "integration.gmail": "integration.gmail";
886
- "integration.google-sheets": "integration.google-sheets";
887
- "integration.attio": "integration.attio";
888
- "surface.dashboard": "surface.dashboard";
889
- "surface.calendar": "surface.calendar";
890
- "surface.overview": "surface.overview";
891
- "surface.command-view": "surface.command-view";
892
- "surface.command-queue": "surface.command-queue";
893
- "surface.pipeline": "surface.pipeline";
894
- "surface.lists": "surface.lists";
895
- "surface.resources": "surface.resources";
896
- "surface.settings": "surface.settings";
897
- "status.success": "status.success";
898
- "status.error": "status.error";
899
- "status.warning": "status.warning";
900
- "status.info": "status.info";
901
- "status.pending": "status.pending";
902
- "action.approve": "action.approve";
903
- "action.reject": "action.reject";
904
- "action.retry": "action.retry";
905
- "action.edit": "action.edit";
906
- "action.view": "action.view";
907
- "action.launch": "action.launch";
908
- "action.message": "action.message";
909
- "action.escalate": "action.escalate";
910
- "action.promote": "action.promote";
911
- "action.submit": "action.submit";
912
- "action.email": "action.email";
913
- }>, z.ZodString]>>;
914
- id: z.ZodString;
915
- order: z.ZodNumber;
916
- }, z.core.$strip>>;
917
- milestoneStatuses: z.ZodArray<z.ZodObject<{
918
- label: z.ZodString;
919
- description: z.ZodOptional<z.ZodString>;
920
- color: z.ZodOptional<z.ZodString>;
921
- icon: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
922
- "nav.dashboard": "nav.dashboard";
923
- "nav.calendar": "nav.calendar";
924
- "nav.sales": "nav.sales";
925
- "nav.crm": "nav.crm";
926
- "nav.lead-gen": "nav.lead-gen";
927
- "nav.projects": "nav.projects";
928
- "nav.operations": "nav.operations";
929
- "nav.monitoring": "nav.monitoring";
930
- "nav.knowledge": "nav.knowledge";
931
- "nav.settings": "nav.settings";
932
- "nav.admin": "nav.admin";
933
- "nav.archive": "nav.archive";
934
- "knowledge.playbook": "knowledge.playbook";
935
- "knowledge.strategy": "knowledge.strategy";
936
- "knowledge.reference": "knowledge.reference";
937
- "feature.dashboard": "feature.dashboard";
938
- "feature.calendar": "feature.calendar";
939
- "feature.business": "feature.business";
940
- "feature.sales": "feature.sales";
941
- "feature.crm": "feature.crm";
942
- "feature.finance": "feature.finance";
943
- "feature.lead-gen": "feature.lead-gen";
944
- "feature.platform": "feature.platform";
945
- "feature.projects": "feature.projects";
946
- "feature.operations": "feature.operations";
947
- "feature.knowledge": "feature.knowledge";
948
- "feature.monitoring": "feature.monitoring";
949
- "feature.settings": "feature.settings";
950
- "feature.admin": "feature.admin";
951
- "feature.archive": "feature.archive";
952
- "feature.seo": "feature.seo";
953
- "resource.agent": "resource.agent";
954
- "resource.workflow": "resource.workflow";
955
- "resource.integration": "resource.integration";
956
- "resource.database": "resource.database";
957
- "resource.user": "resource.user";
958
- "resource.team": "resource.team";
959
- "integration.gmail": "integration.gmail";
960
- "integration.google-sheets": "integration.google-sheets";
961
- "integration.attio": "integration.attio";
962
- "surface.dashboard": "surface.dashboard";
963
- "surface.calendar": "surface.calendar";
964
- "surface.overview": "surface.overview";
965
- "surface.command-view": "surface.command-view";
966
- "surface.command-queue": "surface.command-queue";
967
- "surface.pipeline": "surface.pipeline";
968
- "surface.lists": "surface.lists";
969
- "surface.resources": "surface.resources";
970
- "surface.settings": "surface.settings";
971
- "status.success": "status.success";
972
- "status.error": "status.error";
973
- "status.warning": "status.warning";
974
- "status.info": "status.info";
975
- "status.pending": "status.pending";
976
- "action.approve": "action.approve";
977
- "action.reject": "action.reject";
978
- "action.retry": "action.retry";
979
- "action.edit": "action.edit";
980
- "action.view": "action.view";
981
- "action.launch": "action.launch";
982
- "action.message": "action.message";
983
- "action.escalate": "action.escalate";
984
- "action.promote": "action.promote";
985
- "action.submit": "action.submit";
986
- "action.email": "action.email";
987
- }>, z.ZodString]>>;
988
- id: z.ZodString;
989
- order: z.ZodNumber;
990
- }, z.core.$strip>>;
991
- taskStatuses: z.ZodArray<z.ZodObject<{
992
- label: z.ZodString;
993
- description: z.ZodOptional<z.ZodString>;
994
- color: z.ZodOptional<z.ZodString>;
995
- icon: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
996
- "nav.dashboard": "nav.dashboard";
997
- "nav.calendar": "nav.calendar";
998
- "nav.sales": "nav.sales";
999
- "nav.crm": "nav.crm";
1000
- "nav.lead-gen": "nav.lead-gen";
1001
- "nav.projects": "nav.projects";
1002
- "nav.operations": "nav.operations";
1003
- "nav.monitoring": "nav.monitoring";
1004
- "nav.knowledge": "nav.knowledge";
1005
- "nav.settings": "nav.settings";
1006
- "nav.admin": "nav.admin";
1007
- "nav.archive": "nav.archive";
1008
- "knowledge.playbook": "knowledge.playbook";
1009
- "knowledge.strategy": "knowledge.strategy";
1010
- "knowledge.reference": "knowledge.reference";
1011
- "feature.dashboard": "feature.dashboard";
1012
- "feature.calendar": "feature.calendar";
1013
- "feature.business": "feature.business";
1014
- "feature.sales": "feature.sales";
1015
- "feature.crm": "feature.crm";
1016
- "feature.finance": "feature.finance";
1017
- "feature.lead-gen": "feature.lead-gen";
1018
- "feature.platform": "feature.platform";
1019
- "feature.projects": "feature.projects";
1020
- "feature.operations": "feature.operations";
1021
- "feature.knowledge": "feature.knowledge";
1022
- "feature.monitoring": "feature.monitoring";
1023
- "feature.settings": "feature.settings";
1024
- "feature.admin": "feature.admin";
1025
- "feature.archive": "feature.archive";
1026
- "feature.seo": "feature.seo";
1027
- "resource.agent": "resource.agent";
1028
- "resource.workflow": "resource.workflow";
1029
- "resource.integration": "resource.integration";
1030
- "resource.database": "resource.database";
1031
- "resource.user": "resource.user";
1032
- "resource.team": "resource.team";
1033
- "integration.gmail": "integration.gmail";
1034
- "integration.google-sheets": "integration.google-sheets";
1035
- "integration.attio": "integration.attio";
1036
- "surface.dashboard": "surface.dashboard";
1037
- "surface.calendar": "surface.calendar";
1038
- "surface.overview": "surface.overview";
1039
- "surface.command-view": "surface.command-view";
1040
- "surface.command-queue": "surface.command-queue";
1041
- "surface.pipeline": "surface.pipeline";
1042
- "surface.lists": "surface.lists";
1043
- "surface.resources": "surface.resources";
1044
- "surface.settings": "surface.settings";
1045
- "status.success": "status.success";
1046
- "status.error": "status.error";
1047
- "status.warning": "status.warning";
1048
- "status.info": "status.info";
1049
- "status.pending": "status.pending";
1050
- "action.approve": "action.approve";
1051
- "action.reject": "action.reject";
1052
- "action.retry": "action.retry";
1053
- "action.edit": "action.edit";
1054
- "action.view": "action.view";
1055
- "action.launch": "action.launch";
1056
- "action.message": "action.message";
1057
- "action.escalate": "action.escalate";
1058
- "action.promote": "action.promote";
1059
- "action.submit": "action.submit";
1060
- "action.email": "action.email";
1061
- }>, z.ZodString]>>;
1062
- id: z.ZodString;
1063
- order: z.ZodNumber;
1064
- }, z.core.$strip>>;
1065
- }, z.core.$strip>;
1066
- identity: z.ZodDefault<z.ZodObject<{
1067
- mission: z.ZodDefault<z.ZodString>;
1068
- vision: z.ZodDefault<z.ZodString>;
1069
- legalName: z.ZodDefault<z.ZodString>;
1070
- entityType: z.ZodDefault<z.ZodString>;
1071
- jurisdiction: z.ZodDefault<z.ZodString>;
1072
- industryCategory: z.ZodDefault<z.ZodString>;
1073
- geographicFocus: z.ZodDefault<z.ZodString>;
1074
- timeZone: z.ZodDefault<z.ZodString>;
1075
- businessHours: z.ZodDefault<z.ZodObject<{
1076
- monday: z.ZodOptional<z.ZodObject<{
1077
- open: z.ZodString;
1078
- close: z.ZodString;
1079
- }, z.core.$strip>>;
1080
- tuesday: z.ZodOptional<z.ZodObject<{
1081
- open: z.ZodString;
1082
- close: z.ZodString;
1083
- }, z.core.$strip>>;
1084
- wednesday: z.ZodOptional<z.ZodObject<{
1085
- open: z.ZodString;
1086
- close: z.ZodString;
1087
- }, z.core.$strip>>;
1088
- thursday: z.ZodOptional<z.ZodObject<{
1089
- open: z.ZodString;
1090
- close: z.ZodString;
1091
- }, z.core.$strip>>;
1092
- friday: z.ZodOptional<z.ZodObject<{
1093
- open: z.ZodString;
1094
- close: z.ZodString;
1095
- }, z.core.$strip>>;
1096
- saturday: z.ZodOptional<z.ZodObject<{
1097
- open: z.ZodString;
1098
- close: z.ZodString;
1099
- }, z.core.$strip>>;
1100
- sunday: z.ZodOptional<z.ZodObject<{
1101
- open: z.ZodString;
1102
- close: z.ZodString;
1103
- }, z.core.$strip>>;
1104
- }, z.core.$strip>>;
1105
- clientBrief: z.ZodDefault<z.ZodString>;
1106
- }, z.core.$strip>>;
1107
- customers: z.ZodDefault<z.ZodObject<{
1108
- segments: z.ZodDefault<z.ZodArray<z.ZodObject<{
1109
- id: z.ZodString;
1110
- name: z.ZodDefault<z.ZodString>;
1111
- description: z.ZodDefault<z.ZodString>;
1112
- jobsToBeDone: z.ZodDefault<z.ZodString>;
1113
- pains: z.ZodDefault<z.ZodArray<z.ZodString>>;
1114
- gains: z.ZodDefault<z.ZodArray<z.ZodString>>;
1115
- firmographics: z.ZodDefault<z.ZodObject<{
1116
- industry: z.ZodOptional<z.ZodString>;
1117
- companySize: z.ZodOptional<z.ZodString>;
1118
- region: z.ZodOptional<z.ZodString>;
1119
- }, z.core.$strip>>;
1120
- valueProp: z.ZodDefault<z.ZodString>;
1121
- }, z.core.$strip>>>;
1122
- }, z.core.$strip>>;
1123
- offerings: z.ZodDefault<z.ZodObject<{
1124
- products: z.ZodDefault<z.ZodArray<z.ZodObject<{
1125
- id: z.ZodString;
1126
- name: z.ZodDefault<z.ZodString>;
1127
- description: z.ZodDefault<z.ZodString>;
1128
- pricingModel: z.ZodDefault<z.ZodEnum<{
1129
- custom: "custom";
1130
- "one-time": "one-time";
1131
- subscription: "subscription";
1132
- "usage-based": "usage-based";
1133
- }>>;
1134
- price: z.ZodDefault<z.ZodNumber>;
1135
- currency: z.ZodDefault<z.ZodString>;
1136
- targetSegmentIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
1137
- deliveryFeatureId: z.ZodOptional<z.ZodString>;
1138
- }, z.core.$strip>>>;
1139
- }, z.core.$strip>>;
1140
- roles: z.ZodDefault<z.ZodObject<{
1141
- roles: z.ZodDefault<z.ZodArray<z.ZodObject<{
1142
- id: z.ZodString;
1143
- title: z.ZodString;
1144
- responsibilities: z.ZodDefault<z.ZodArray<z.ZodString>>;
1145
- reportsToId: z.ZodOptional<z.ZodString>;
1146
- heldBy: z.ZodOptional<z.ZodUnion<readonly [z.ZodDiscriminatedUnion<[z.ZodObject<{
1147
- kind: z.ZodLiteral<"human">;
1148
- userId: z.ZodString;
1149
- }, z.core.$strip>, z.ZodObject<{
1150
- kind: z.ZodLiteral<"agent">;
1151
- agentId: z.ZodString;
1152
- }, z.core.$strip>, z.ZodObject<{
1153
- kind: z.ZodLiteral<"team">;
1154
- memberIds: z.ZodArray<z.ZodString>;
1155
- }, z.core.$strip>], "kind">, z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
1156
- kind: z.ZodLiteral<"human">;
1157
- userId: z.ZodString;
1158
- }, z.core.$strip>, z.ZodObject<{
1159
- kind: z.ZodLiteral<"agent">;
1160
- agentId: z.ZodString;
1161
- }, z.core.$strip>, z.ZodObject<{
1162
- kind: z.ZodLiteral<"team">;
1163
- memberIds: z.ZodArray<z.ZodString>;
1164
- }, z.core.$strip>], "kind">>]>>;
1165
- responsibleFor: z.ZodOptional<z.ZodArray<z.ZodString>>;
1166
- }, z.core.$strip>>>;
1167
- }, z.core.$strip>>;
1168
- goals: z.ZodDefault<z.ZodObject<{
1169
- objectives: z.ZodDefault<z.ZodArray<z.ZodObject<{
1170
- id: z.ZodString;
1171
- description: z.ZodString;
1172
- periodStart: z.ZodString;
1173
- periodEnd: z.ZodString;
1174
- keyResults: z.ZodDefault<z.ZodArray<z.ZodObject<{
1175
910
  id: z.ZodString;
1176
- description: z.ZodString;
1177
- targetMetric: z.ZodString;
1178
- currentValue: z.ZodDefault<z.ZodNumber>;
1179
- targetValue: z.ZodOptional<z.ZodNumber>;
1180
- }, z.core.$strip>>>;
1181
- }, z.core.$strip>>>;
1182
- }, z.core.$strip>>;
1183
- systems: z.ZodDefault<z.ZodObject<{
1184
- systems: z.ZodDefault<z.ZodArray<z.ZodObject<{
1185
- id: z.ZodString;
1186
- title: z.ZodString;
1187
- description: z.ZodString;
1188
- kind: z.ZodEnum<{
1189
- platform: "platform";
1190
- product: "product";
1191
- operational: "operational";
1192
- diagnostic: "diagnostic";
1193
- }>;
1194
- responsibleRoleId: z.ZodOptional<z.ZodString>;
1195
- governedByKnowledge: z.ZodDefault<z.ZodArray<z.ZodString>>;
1196
- drivesGoals: z.ZodDefault<z.ZodArray<z.ZodString>>;
1197
- status: z.ZodEnum<{
1198
- active: "active";
1199
- deprecated: "deprecated";
1200
- archived: "archived";
1201
- }>;
1202
- }, z.core.$strip>>>;
1203
- }, z.core.$strip>>;
1204
- resources: z.ZodDefault<z.ZodObject<{
1205
- entries: z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
1206
- id: z.ZodString;
1207
- systemId: z.ZodString;
1208
- ownerRoleId: z.ZodOptional<z.ZodString>;
1209
- status: z.ZodEnum<{
1210
- active: "active";
1211
- deprecated: "deprecated";
1212
- archived: "archived";
1213
- }>;
1214
- kind: z.ZodLiteral<"workflow">;
1215
- capabilityKey: z.ZodOptional<z.ZodString>;
1216
- }, z.core.$strip>, z.ZodObject<{
1217
- id: z.ZodString;
1218
- systemId: z.ZodString;
1219
- ownerRoleId: z.ZodOptional<z.ZodString>;
1220
- status: z.ZodEnum<{
1221
- active: "active";
1222
- deprecated: "deprecated";
1223
- archived: "archived";
1224
- }>;
1225
- kind: z.ZodLiteral<"agent">;
1226
- agentKind: z.ZodEnum<{
1227
- orchestrator: "orchestrator";
1228
- specialist: "specialist";
1229
- utility: "utility";
1230
- system: "system";
1231
- }>;
1232
- actsAsRoleId: z.ZodOptional<z.ZodString>;
1233
- sessionCapable: z.ZodBoolean;
911
+ }, z.core.$strip>;
1234
912
  }, z.core.$strip>, z.ZodObject<{
1235
- id: z.ZodString;
1236
- systemId: z.ZodString;
1237
- ownerRoleId: z.ZodOptional<z.ZodString>;
1238
- status: z.ZodEnum<{
1239
- active: "active";
1240
- deprecated: "deprecated";
1241
- archived: "archived";
1242
- }>;
1243
- kind: z.ZodLiteral<"integration">;
1244
- provider: z.ZodString;
1245
- }, z.core.$strip>], "kind">>>;
1246
- }, z.core.$strip>>;
1247
- statuses: z.ZodDefault<z.ZodObject<{
1248
- entries: z.ZodDefault<z.ZodArray<z.ZodObject<{
1249
- id: z.ZodString;
1250
- label: z.ZodString;
1251
- semanticClass: z.ZodEnum<{
1252
- "delivery.project": "delivery.project";
1253
- "delivery.milestone": "delivery.milestone";
1254
- "delivery.task": "delivery.task";
1255
- queue: "queue";
1256
- execution: "execution";
1257
- schedule: "schedule";
1258
- "schedule.run": "schedule.run";
1259
- request: "request";
1260
- }>;
1261
- category: z.ZodOptional<z.ZodString>;
1262
- }, z.core.$strip>>>;
1263
- }, z.core.$strip>>;
1264
- operations: z.ZodDefault<z.ZodObject<{
1265
- entries: z.ZodDefault<z.ZodArray<z.ZodObject<{
1266
- id: z.ZodString;
1267
- label: z.ZodString;
1268
- semanticClass: z.ZodEnum<{
1269
- queue: "queue";
1270
- executions: "executions";
1271
- sessions: "sessions";
1272
- notifications: "notifications";
1273
- schedules: "schedules";
1274
- }>;
1275
- featureId: z.ZodOptional<z.ZodString>;
1276
- supportedStatusSemanticClass: z.ZodOptional<z.ZodArray<z.ZodString>>;
1277
- }, z.core.$strip>>>;
1278
- }, z.core.$strip>>;
1279
- knowledge: z.ZodDefault<z.ZodObject<{
1280
- nodes: z.ZodDefault<z.ZodArray<z.ZodObject<{
1281
- id: z.ZodString;
1282
- kind: z.ZodEnum<{
1283
- playbook: "playbook";
1284
- strategy: "strategy";
1285
- reference: "reference";
1286
- }>;
1287
- title: z.ZodString;
1288
- summary: z.ZodString;
1289
- icon: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
1290
- "nav.dashboard": "nav.dashboard";
1291
- "nav.calendar": "nav.calendar";
1292
- "nav.sales": "nav.sales";
1293
- "nav.crm": "nav.crm";
1294
- "nav.lead-gen": "nav.lead-gen";
1295
- "nav.projects": "nav.projects";
1296
- "nav.operations": "nav.operations";
1297
- "nav.monitoring": "nav.monitoring";
1298
- "nav.knowledge": "nav.knowledge";
1299
- "nav.settings": "nav.settings";
1300
- "nav.admin": "nav.admin";
1301
- "nav.archive": "nav.archive";
1302
- "knowledge.playbook": "knowledge.playbook";
1303
- "knowledge.strategy": "knowledge.strategy";
1304
- "knowledge.reference": "knowledge.reference";
1305
- "feature.dashboard": "feature.dashboard";
1306
- "feature.calendar": "feature.calendar";
1307
- "feature.business": "feature.business";
1308
- "feature.sales": "feature.sales";
1309
- "feature.crm": "feature.crm";
1310
- "feature.finance": "feature.finance";
1311
- "feature.lead-gen": "feature.lead-gen";
1312
- "feature.platform": "feature.platform";
1313
- "feature.projects": "feature.projects";
1314
- "feature.operations": "feature.operations";
1315
- "feature.knowledge": "feature.knowledge";
1316
- "feature.monitoring": "feature.monitoring";
1317
- "feature.settings": "feature.settings";
1318
- "feature.admin": "feature.admin";
1319
- "feature.archive": "feature.archive";
1320
- "feature.seo": "feature.seo";
1321
- "resource.agent": "resource.agent";
1322
- "resource.workflow": "resource.workflow";
1323
- "resource.integration": "resource.integration";
1324
- "resource.database": "resource.database";
1325
- "resource.user": "resource.user";
1326
- "resource.team": "resource.team";
1327
- "integration.gmail": "integration.gmail";
1328
- "integration.google-sheets": "integration.google-sheets";
1329
- "integration.attio": "integration.attio";
1330
- "surface.dashboard": "surface.dashboard";
1331
- "surface.calendar": "surface.calendar";
1332
- "surface.overview": "surface.overview";
1333
- "surface.command-view": "surface.command-view";
1334
- "surface.command-queue": "surface.command-queue";
1335
- "surface.pipeline": "surface.pipeline";
1336
- "surface.lists": "surface.lists";
1337
- "surface.resources": "surface.resources";
1338
- "surface.settings": "surface.settings";
1339
- "status.success": "status.success";
1340
- "status.error": "status.error";
1341
- "status.warning": "status.warning";
1342
- "status.info": "status.info";
1343
- "status.pending": "status.pending";
1344
- "action.approve": "action.approve";
1345
- "action.reject": "action.reject";
1346
- "action.retry": "action.retry";
1347
- "action.edit": "action.edit";
1348
- "action.view": "action.view";
1349
- "action.launch": "action.launch";
1350
- "action.message": "action.message";
1351
- "action.escalate": "action.escalate";
1352
- "action.promote": "action.promote";
1353
- "action.submit": "action.submit";
1354
- "action.email": "action.email";
1355
- }>, z.ZodString]>>;
1356
- body: z.ZodString;
1357
- links: z.ZodDefault<z.ZodArray<z.ZodObject<{
1358
- nodeId: z.ZodString;
1359
- }, z.core.$strip>>>;
1360
- skills: z.ZodOptional<z.ZodArray<z.ZodString>>;
1361
- domain: z.ZodOptional<z.ZodString>;
1362
- ownerIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
1363
- updatedAt: z.ZodString;
1364
- }, z.core.$strip>>>;
1365
- }, z.core.$strip>>;
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>>>>;
1366
931
  }, z.core.$strip>;
1367
932
 
1368
933
  type OrganizationModel = z.infer<typeof OrganizationModelSchema>;
1369
934
  type OrgKnowledgeNode = z.infer<typeof OrgKnowledgeNodeSchema>;
1370
935
  type OrgKnowledgeKind = z.infer<typeof OrgKnowledgeKindSchema>;
1371
936
 
1372
- type OrganizationGraphNodeKind = 'organization' | 'feature' | 'surface' | 'entity' | 'capability' | 'stage' | 'resource' | 'knowledge';
1373
- 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';
1374
941
 
1375
942
  interface OrganizationGraphNode {
1376
943
  id: string;
@@ -1380,8 +947,7 @@ interface OrganizationGraphNode {
1380
947
  description?: string;
1381
948
  icon?: OrganizationModelIconToken;
1382
949
  enabled?: boolean;
1383
- featureId?: string;
1384
- resourceType?: 'workflow' | 'agent' | 'trigger' | 'integration' | 'external' | 'human_checkpoint';
950
+ resourceType?: 'workflow' | 'agent' | 'trigger' | 'integration' | 'external' | 'human_checkpoint' | 'script';
1385
951
  }
1386
952
  interface OrganizationGraphEdge {
1387
953
  id: string;
@@ -1398,6 +964,8 @@ interface OrganizationGraph {
1398
964
  edges: OrganizationGraphEdge[];
1399
965
  }
1400
966
 
967
+ declare function getSharedOrganizationGraph(organizationModel: OrganizationModel): OrganizationGraph;
968
+
1401
969
  interface KnowledgeBrowserProps {
1402
970
  /** Built organization graph. */
1403
971
  graph: OrganizationGraph;
@@ -1413,30 +981,64 @@ interface KnowledgeBrowserProps {
1413
981
  /**
1414
982
  * Renders the selected knowledge node detail, or the root knowledge overview.
1415
983
  *
1416
- * The file-system tree nav and the search bar live in the subshell sidebar
1417
- * (`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`.
1418
986
  */
1419
987
  declare function KnowledgeBrowser({ graph, knowledgeNodes, initialNodeId, onNavigateToNode, onSelectNode }: KnowledgeBrowserProps): react_jsx_runtime.JSX.Element;
1420
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>>;
1421
1002
  interface KnowledgeTreeProps {
1422
1003
  /** Built organization graph - used to enumerate features and resolve `governs` edges. */
1423
1004
  graph: OrganizationGraph;
1424
1005
  /** All knowledge nodes (the OM authoring shape; queries need this for body/links). */
1425
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;
1426
1012
  /** Called when a knowledge node is selected. */
1427
1013
  onSelectNode: (node: OrgKnowledgeNode) => void;
1428
1014
  /** Called when a graph/config node is selected. */
1429
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;
1430
1032
  /** Currently selected node id (highlights the active row). */
1431
1033
  selectedNodeId?: string;
1432
1034
  }
1433
1035
  /**
1434
1036
  * By-feature primary tree using Mantine `Tree`.
1435
1037
  */
1436
- 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;
1437
1039
 
1438
1040
  interface KnowledgeNodeListProps {
1439
- /** 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). */
1440
1042
  nodes: OrgKnowledgeNode[];
1441
1043
  /** Called when the user selects a node. */
1442
1044
  onSelect: (node: OrgKnowledgeNode) => void;
@@ -1469,12 +1071,17 @@ interface KnowledgeNodeViewProps {
1469
1071
  * Passed directly to the internal `KnowledgeMDXProvider` wrapper.
1470
1072
  */
1471
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;
1472
1079
  }
1473
1080
  /**
1474
1081
  * Full single-node view: title, kind chip, summary, compiled MDX body, graph
1475
1082
  * relationships, and technical metadata for the backing graph node.
1476
1083
  */
1477
- 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;
1478
1085
 
1479
1086
  interface KnowledgeSearchBarProps {
1480
1087
  /** All available knowledge nodes — used to resolve hit ids to nodes. */
@@ -1532,28 +1139,6 @@ interface NavItem {
1532
1139
  exact: boolean;
1533
1140
  }
1534
1141
 
1535
- interface KnowledgeSidebarMiddleProps {
1536
- /** Override the default nav items. Defaults to {@link KNOWLEDGE_ITEMS}. */
1537
- items?: NavItem[];
1538
- }
1539
- /**
1540
- * @deprecated Use `KnowledgeSidebarMiddle` from `features/knowledge/sidebar` instead.
1541
- * This legacy nav-items sidebar is retained as a published API surface for external
1542
- * consumers that compose custom sidebars using `KNOWLEDGE_ITEMS`. The canonical
1543
- * subshell sidebar now lives at `packages/ui/src/features/knowledge/sidebar/`.
1544
- *
1545
- * Sidebar middle section for the Knowledge feature (legacy nav-items variant).
1546
- *
1547
- * Mirrors the `CrmSidebarMiddle` pattern. Pass `items` to extend or replace
1548
- * the default nav entries (e.g. add owner-scoped sections for a specific org).
1549
- *
1550
- * @example
1551
- * ```tsx
1552
- * <KnowledgeSidebarMiddle items={[...KNOWLEDGE_ITEMS, { label: 'Runbooks', ... }]} />
1553
- * ```
1554
- */
1555
- declare const KnowledgeSidebarMiddle: ({ items }?: KnowledgeSidebarMiddleProps) => react_jsx_runtime.JSX.Element;
1556
-
1557
1142
  /**
1558
1143
  * @deprecated Used by the legacy `KnowledgeSidebarMiddle` (nav-items variant).
1559
1144
  * Retained as a published API surface for external consumers. The canonical
@@ -1577,7 +1162,7 @@ declare const KNOWLEDGE_ITEMS: NavItem[];
1577
1162
 
1578
1163
  type SemanticIconToken = string;
1579
1164
  type TablerIconComponent = typeof IconBrain;
1580
- 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';
1581
1166
  type SemanticIconRegistry = Record<SemanticIconToken, TablerIconComponent>;
1582
1167
  declare function extendSemanticIconRegistry(overrides: SemanticIconRegistry): void;
1583
1168
  declare function getSemanticIconComponent(token?: string | null, fallbackKind?: SemanticIconFallbackKind, fallbackToken?: string): TablerIconComponent;
@@ -1660,11 +1245,25 @@ type KnowledgeBodyProps = {
1660
1245
  };
1661
1246
  declare const KNOWLEDGE_BODIES: Record<string, ComponentType<KnowledgeBodyProps>>;
1662
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;
1663
1260
  interface DescribeNodeViewProps {
1664
- /** The graph node to display. */
1665
- node: OrganizationGraphNode;
1261
+ /** The graph node or semantic tree node to display. */
1262
+ node: DescribeSelectionNode;
1666
1263
  /** The organization graph, used to resolve edge relationships. */
1667
1264
  graph: OrganizationGraph;
1265
+ /** Full organization model, required for semantic domain/group tree selections. */
1266
+ organizationModel?: OrganizationModel;
1668
1267
  /** Full knowledge nodes from the organization model, used to hydrate graph knowledge stubs. */
1669
1268
  knowledgeNodes?: OrgKnowledgeNode[];
1670
1269
  /**
@@ -1679,43 +1278,62 @@ interface DescribeNodeViewProps {
1679
1278
  * for kinds that do not have a dedicated view or knowledge graph stubs that
1680
1279
  * cannot be hydrated from the organization model.
1681
1280
  */
1682
- 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;
1683
1282
 
1684
- interface FeatureDescribeViewProps {
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;
1291
+
1292
+ interface SystemDescribeViewProps {
1685
1293
  node: OrganizationGraphNode;
1686
1294
  graph: OrganizationGraph;
1687
1295
  knowledgeNodes?: OrgKnowledgeNode[];
1688
1296
  onNavigateToNode?: (graphNodeId: string) => void;
1297
+ /** Optional full organization model; when provided, renders rich authored system fields. */
1298
+ organizationModel?: OrganizationModel;
1689
1299
  }
1690
1300
  /**
1691
- * Minimal describe view for `feature` graph nodes.
1692
- * 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.
1693
1307
  */
1694
- 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;
1695
1309
 
1696
1310
  interface ResourceDescribeViewProps {
1697
1311
  node: OrganizationGraphNode;
1698
1312
  graph: OrganizationGraph;
1699
1313
  knowledgeNodes?: OrgKnowledgeNode[];
1700
1314
  onNavigateToNode?: (graphNodeId: string) => void;
1315
+ /** Optional full organization model; when provided, renders kind-specific resource fields. */
1316
+ organizationModel?: OrganizationModel;
1701
1317
  }
1702
1318
  /**
1703
- * Minimal describe view for `resource` graph nodes.
1704
- * 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.
1705
1322
  */
1706
- 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;
1707
1324
 
1708
1325
  interface OrganizationDescribeViewProps {
1709
1326
  node: OrganizationGraphNode;
1710
1327
  graph: OrganizationGraph;
1711
1328
  knowledgeNodes?: OrgKnowledgeNode[];
1712
1329
  onNavigateToNode?: (graphNodeId: string) => void;
1330
+ organizationModel?: OrganizationModel;
1713
1331
  }
1714
1332
  /**
1715
1333
  * Minimal describe view for `organization` graph nodes.
1716
- * Shows: header, id, relationships, technical metadata.
1334
+ * Shows: header, id, identity fields, relationships, technical metadata.
1717
1335
  */
1718
- 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;
1719
1337
 
1720
1338
  interface GenericDescribeViewProps {
1721
1339
  node: OrganizationGraphNode;
@@ -1735,6 +1353,8 @@ interface KindChipProps extends Omit<HTMLAttributes<HTMLSpanElement>, 'children'
1735
1353
  tone?: KindChipTone;
1736
1354
  }
1737
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';
1738
1358
  interface NodeHeaderProps {
1739
1359
  title: ReactNode;
1740
1360
  kind: string;
@@ -1743,8 +1363,14 @@ interface NodeHeaderProps {
1743
1363
  description?: ReactNode;
1744
1364
  updatedAt?: string;
1745
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;
1746
1372
  }
1747
- 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;
1748
1374
  interface RelatedKnowledgeSectionProps {
1749
1375
  nodeId: string;
1750
1376
  graph: OrganizationGraph;
@@ -1752,18 +1378,41 @@ interface RelatedKnowledgeSectionProps {
1752
1378
  onNavigateToNode?: (nodeId: string) => void;
1753
1379
  }
1754
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
+ }
1755
1385
  interface EdgeRelationshipGroupProps {
1756
1386
  nodeId: string;
1757
1387
  graph: OrganizationGraph;
1758
1388
  knowledgeNodes?: OrgKnowledgeNode[];
1759
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[];
1760
1396
  }
1761
- 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;
1762
1398
  interface NodeMetadataFooterProps {
1763
1399
  node: OrganizationGraphNode;
1764
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;
1765
1414
  }
1766
- 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;
1767
1416
  interface NodeDescribeShellProps {
1768
1417
  header?: ReactNode;
1769
1418
  content?: ReactNode;
@@ -1772,5 +1421,5 @@ interface NodeDescribeShellProps {
1772
1421
  }
1773
1422
  declare function NodeDescribeShell({ header, content, relationships, footer }: NodeDescribeShellProps): react_jsx_runtime.JSX.Element;
1774
1423
 
1775
- 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 };
1776
- 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 };