@elevasis/ui 2.30.0 → 2.32.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (130) hide show
  1. package/dist/api/index.js +2 -2
  2. package/dist/app/index.css +38 -0
  3. package/dist/app/index.d.ts +190 -9
  4. package/dist/app/index.js +7 -6
  5. package/dist/charts/index.js +4 -5
  6. package/dist/{chunk-HXZQWMKE.js → chunk-2RJMVWFJ.js} +1 -6
  7. package/dist/{chunk-4VQ2PXMI.js → chunk-3FV6HBXS.js} +4 -4
  8. package/dist/{chunk-CW3UNAF2.js → chunk-4DYOXEH6.js} +410 -5
  9. package/dist/{chunk-JKTPRYGV.js → chunk-4MFNGNHF.js} +123 -192
  10. package/dist/{chunk-HYLERWRO.js → chunk-4QK76KIF.js} +7 -7
  11. package/dist/chunk-5FJJ72HU.js +13 -0
  12. package/dist/chunk-5J4PDX26.js +112 -0
  13. package/dist/{chunk-4SY6BTVZ.js → chunk-6DWD423K.js} +12 -9
  14. package/dist/{chunk-3GV5NHSS.js → chunk-7KZINJLP.js} +78 -232
  15. package/dist/{chunk-6WXDE5LZ.js → chunk-EPTHX4VZ.js} +1 -1
  16. package/dist/{chunk-6EFVZV6X.js → chunk-GCOQ3TBG.js} +243 -254
  17. package/dist/{chunk-LRZFLK2F.js → chunk-IQHU7O5Y.js} +4 -4
  18. package/dist/{chunk-X2SUMO3P.js → chunk-IZWTVFJ2.js} +16 -3
  19. package/dist/{chunk-IKQ42WHU.js → chunk-JFL3GRD4.js} +1 -1
  20. package/dist/{chunk-4FZYEEPK.js → chunk-LLRXA7D7.js} +5 -6
  21. package/dist/chunk-MOY4VOHF.js +347 -0
  22. package/dist/{chunk-XQQEKWTL.js → chunk-N55DVMAG.js} +6 -2
  23. package/dist/{chunk-7E3FUTND.js → chunk-ND5TDV2J.js} +1 -1
  24. package/dist/{chunk-WF227UBV.js → chunk-QQHOKTJA.js} +4 -4
  25. package/dist/{chunk-A7B7HLDF.js → chunk-QTI3KC7D.js} +5884 -515
  26. package/dist/chunk-QXCDKE2O.js +486 -0
  27. package/dist/chunk-R2XR4FCV.js +48 -0
  28. package/dist/chunk-R66W5UDG.js +26 -0
  29. package/dist/{chunk-T5Z7G2J2.js → chunk-RQA2EVN3.js} +6 -16
  30. package/dist/{chunk-SKXXT3E2.js → chunk-RQTWIXJ5.js} +4 -4
  31. package/dist/chunk-T35FWDAB.js +4342 -0
  32. package/dist/{chunk-DWK2QIAK.js → chunk-TYRUKGGD.js} +1 -1
  33. package/dist/{chunk-CN2HC4D4.js → chunk-UFTM5SZZ.js} +2 -2
  34. package/dist/{chunk-JCGD4GM6.js → chunk-UROTM5OR.js} +14 -1
  35. package/dist/{chunk-6YT4IKJ7.js → chunk-VNAZTCHA.js} +15 -0
  36. package/dist/{chunk-KVJ3LFH2.js → chunk-VNFR57DF.js} +4 -24
  37. package/dist/{chunk-SBCIB5TZ.js → chunk-VRNMNB3O.js} +6 -7
  38. package/dist/chunk-WQPX44YM.js +1626 -0
  39. package/dist/{chunk-T2PAD63Y.js → chunk-XZGSCABI.js} +1 -1
  40. package/dist/chunk-YLQEVSOR.js +299 -0
  41. package/dist/{chunk-P5WYW2GI.js → chunk-ZQOKIGZP.js} +152 -306
  42. package/dist/components/index.css +38 -0
  43. package/dist/components/index.d.ts +334 -38
  44. package/dist/components/index.js +42 -42
  45. package/dist/components/navigation/index.css +38 -0
  46. package/dist/components/navigation/index.js +3 -2
  47. package/dist/execution/index.d.ts +9 -3
  48. package/dist/features/auth/index.css +38 -0
  49. package/dist/features/auth/index.d.ts +212 -14
  50. package/dist/features/auth/index.js +41 -9
  51. package/dist/features/clients/index.css +649 -0
  52. package/dist/features/clients/index.d.ts +86 -0
  53. package/dist/features/clients/index.js +720 -0
  54. package/dist/features/crm/index.css +38 -0
  55. package/dist/features/crm/index.d.ts +228 -20
  56. package/dist/features/crm/index.js +20 -17
  57. package/dist/features/dashboard/index.css +38 -0
  58. package/dist/features/dashboard/index.d.ts +78 -3
  59. package/dist/features/dashboard/index.js +16 -16
  60. package/dist/features/delivery/index.css +38 -0
  61. package/dist/features/delivery/index.d.ts +201 -18
  62. package/dist/features/delivery/index.js +20 -18
  63. package/dist/features/knowledge/index.css +38 -0
  64. package/dist/features/knowledge/index.d.ts +20 -18
  65. package/dist/features/knowledge/index.js +116 -578
  66. package/dist/features/lead-gen/index.css +38 -0
  67. package/dist/features/lead-gen/index.d.ts +59 -51
  68. package/dist/features/lead-gen/index.js +20 -18
  69. package/dist/features/monitoring/index.css +38 -0
  70. package/dist/features/monitoring/index.d.ts +20 -18
  71. package/dist/features/monitoring/index.js +19 -18
  72. package/dist/features/monitoring/requests/index.css +38 -0
  73. package/dist/features/monitoring/requests/index.d.ts +21 -19
  74. package/dist/features/monitoring/requests/index.js +17 -15
  75. package/dist/features/operations/index.css +38 -0
  76. package/dist/features/operations/index.d.ts +945 -45
  77. package/dist/features/operations/index.js +24 -26
  78. package/dist/features/seo/index.d.ts +20 -18
  79. package/dist/features/seo/index.js +1 -1
  80. package/dist/features/settings/index.css +38 -0
  81. package/dist/features/settings/index.d.ts +201 -18
  82. package/dist/features/settings/index.js +18 -16
  83. package/dist/hooks/delivery/index.css +38 -0
  84. package/dist/hooks/delivery/index.d.ts +200 -0
  85. package/dist/hooks/delivery/index.js +2 -2
  86. package/dist/hooks/index.css +38 -0
  87. package/dist/hooks/index.d.ts +825 -47
  88. package/dist/hooks/index.js +14 -13
  89. package/dist/hooks/operations/command-view/utils/transformCommandViewData.d.ts +194 -3
  90. package/dist/hooks/published.css +38 -0
  91. package/dist/hooks/published.d.ts +825 -47
  92. package/dist/hooks/published.js +14 -13
  93. package/dist/index.css +38 -0
  94. package/dist/index.d.ts +1506 -1212
  95. package/dist/index.js +15 -14
  96. package/dist/initialization/index.d.ts +181 -0
  97. package/dist/knowledge/index.d.ts +813 -1068
  98. package/dist/knowledge/index.js +7370 -2869
  99. package/dist/{chunk-CLUP5H3C.js → knowledge-search-index-5KYPO746.js} +441 -963
  100. package/dist/layout/index.d.ts +6 -0
  101. package/dist/layout/index.js +4 -5
  102. package/dist/organization/index.css +38 -0
  103. package/dist/profile/index.d.ts +181 -0
  104. package/dist/provider/index.css +38 -0
  105. package/dist/provider/index.d.ts +909 -1156
  106. package/dist/provider/index.js +11 -10
  107. package/dist/provider/published.css +38 -0
  108. package/dist/provider/published.d.ts +906 -1153
  109. package/dist/provider/published.js +7 -6
  110. package/dist/supabase/index.d.ts +349 -0
  111. package/dist/test-utils/index.d.ts +16 -9
  112. package/dist/test-utils/index.js +39 -32
  113. package/dist/test-utils/setup.js +1 -1
  114. package/dist/theme/index.js +3 -3
  115. package/dist/theme/presets/index.js +1 -1
  116. package/dist/types/index.d.ts +378 -5
  117. package/dist/utils/index.d.ts +78 -3
  118. package/dist/utils/index.js +1 -1
  119. package/dist/vite/index.js +2 -2
  120. package/dist/vite-plugin-knowledge/index.js +1 -1
  121. package/package.json +47 -37
  122. package/src/provider/README.md +5 -5
  123. package/dist/chunk-2DIYILF7.js +0 -413
  124. package/dist/chunk-3MDNBHVB.js +0 -3868
  125. package/dist/chunk-6IXOKUBC.js +0 -347
  126. package/dist/chunk-AKOD52HS.js +0 -739
  127. package/dist/chunk-ECNNI3NT.js +0 -6
  128. package/dist/chunk-JDNEWB5F.js +0 -10
  129. package/dist/chunk-NITGGYH2.js +0 -476
  130. package/dist/chunk-OAVTMITG.js +0 -13
@@ -21,6 +21,7 @@ interface SerializedAgentDefinition {
21
21
  description: string;
22
22
  version: string;
23
23
  type: 'agent';
24
+ kind: 'orchestrator' | 'specialist' | 'utility' | 'system';
24
25
  status: 'dev' | 'prod';
25
26
  links?: ResourceLink[];
26
27
  category?: ResourceCategory;
@@ -106,6 +107,132 @@ interface SerializedWorkflowDefinition {
106
107
  metricsConfig?: object;
107
108
  }
108
109
 
110
+ declare const ResourceKindSchema: z.ZodEnum<{
111
+ agent: "agent";
112
+ workflow: "workflow";
113
+ integration: "integration";
114
+ script: "script";
115
+ }>;
116
+ declare const ResourceGovernanceStatusSchema: z.ZodEnum<{
117
+ deprecated: "deprecated";
118
+ active: "active";
119
+ archived: "archived";
120
+ }>;
121
+ declare const ResourceEntrySchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
122
+ id: z.ZodString;
123
+ order: z.ZodDefault<z.ZodNumber>;
124
+ systemPath: z.ZodString;
125
+ ownerRoleId: z.ZodOptional<z.ZodString>;
126
+ status: z.ZodEnum<{
127
+ deprecated: "deprecated";
128
+ active: "active";
129
+ archived: "archived";
130
+ }>;
131
+ kind: z.ZodLiteral<"workflow">;
132
+ actionKey: z.ZodOptional<z.ZodString>;
133
+ emits: z.ZodOptional<z.ZodArray<z.ZodObject<{
134
+ eventKey: z.ZodString;
135
+ label: z.ZodString;
136
+ payloadSchema: z.ZodOptional<z.ZodString>;
137
+ lifecycle: z.ZodOptional<z.ZodEnum<{
138
+ deprecated: "deprecated";
139
+ draft: "draft";
140
+ beta: "beta";
141
+ active: "active";
142
+ archived: "archived";
143
+ }>>;
144
+ }, z.core.$strip>>>;
145
+ }, z.core.$strip>, z.ZodObject<{
146
+ id: z.ZodString;
147
+ order: z.ZodDefault<z.ZodNumber>;
148
+ systemPath: z.ZodString;
149
+ ownerRoleId: z.ZodOptional<z.ZodString>;
150
+ status: z.ZodEnum<{
151
+ deprecated: "deprecated";
152
+ active: "active";
153
+ archived: "archived";
154
+ }>;
155
+ kind: z.ZodLiteral<"agent">;
156
+ agentKind: z.ZodEnum<{
157
+ platform: "platform";
158
+ orchestrator: "orchestrator";
159
+ specialist: "specialist";
160
+ utility: "utility";
161
+ }>;
162
+ actsAsRoleId: z.ZodOptional<z.ZodString>;
163
+ sessionCapable: z.ZodBoolean;
164
+ invocations: z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
165
+ kind: z.ZodLiteral<"slash-command">;
166
+ command: z.ZodString;
167
+ toolFactory: z.ZodOptional<z.ZodString>;
168
+ }, z.core.$strip>, z.ZodObject<{
169
+ kind: z.ZodLiteral<"mcp-tool">;
170
+ server: z.ZodString;
171
+ name: z.ZodString;
172
+ }, z.core.$strip>, z.ZodObject<{
173
+ kind: z.ZodLiteral<"api-endpoint">;
174
+ method: z.ZodEnum<{
175
+ GET: "GET";
176
+ POST: "POST";
177
+ PATCH: "PATCH";
178
+ DELETE: "DELETE";
179
+ }>;
180
+ path: z.ZodString;
181
+ requestSchema: z.ZodOptional<z.ZodString>;
182
+ responseSchema: z.ZodOptional<z.ZodString>;
183
+ }, z.core.$strip>, z.ZodObject<{
184
+ kind: z.ZodLiteral<"script-execution">;
185
+ resourceId: z.ZodString;
186
+ }, z.core.$strip>], "kind">>>;
187
+ emits: z.ZodOptional<z.ZodArray<z.ZodObject<{
188
+ eventKey: z.ZodString;
189
+ label: z.ZodString;
190
+ payloadSchema: z.ZodOptional<z.ZodString>;
191
+ lifecycle: z.ZodOptional<z.ZodEnum<{
192
+ deprecated: "deprecated";
193
+ draft: "draft";
194
+ beta: "beta";
195
+ active: "active";
196
+ archived: "archived";
197
+ }>>;
198
+ }, z.core.$strip>>>;
199
+ }, z.core.$strip>, z.ZodObject<{
200
+ id: z.ZodString;
201
+ order: z.ZodDefault<z.ZodNumber>;
202
+ systemPath: z.ZodString;
203
+ ownerRoleId: z.ZodOptional<z.ZodString>;
204
+ status: z.ZodEnum<{
205
+ deprecated: "deprecated";
206
+ active: "active";
207
+ archived: "archived";
208
+ }>;
209
+ kind: z.ZodLiteral<"integration">;
210
+ provider: z.ZodString;
211
+ }, z.core.$strip>, z.ZodObject<{
212
+ id: z.ZodString;
213
+ order: z.ZodDefault<z.ZodNumber>;
214
+ systemPath: z.ZodString;
215
+ ownerRoleId: z.ZodOptional<z.ZodString>;
216
+ status: z.ZodEnum<{
217
+ deprecated: "deprecated";
218
+ active: "active";
219
+ archived: "archived";
220
+ }>;
221
+ kind: z.ZodLiteral<"script">;
222
+ language: z.ZodEnum<{
223
+ shell: "shell";
224
+ sql: "sql";
225
+ typescript: "typescript";
226
+ python: "python";
227
+ }>;
228
+ source: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
229
+ file: z.ZodString;
230
+ }, z.core.$strip>]>;
231
+ }, z.core.$strip>], "kind">;
232
+ type ResourceKind = z.infer<typeof ResourceKindSchema>;
233
+ type ResourceGovernanceStatus = z.infer<typeof ResourceGovernanceStatusSchema>;
234
+ type ResourceEntry = z.infer<typeof ResourceEntrySchema>;
235
+
109
236
  /**
110
237
  * Memory type definitions
111
238
  * Types for agent memory management with semantic entry types
@@ -249,6 +376,62 @@ interface DashboardMetrics {
249
376
  */
250
377
  type AIResourceDefinition = SerializedWorkflowDefinition | SerializedAgentDefinition;
251
378
 
379
+ /**
380
+ * Placeholder discriminated union for ContentNode (Wave 1A).
381
+ * Wave 2A wires concrete (kind, type) pairs via the registry.
382
+ *
383
+ * Per D2: unregistered (kind, type) pairs are allowed and pass through validation.
384
+ * Per L14: every node carries BOTH `kind` and `type`.
385
+ */
386
+ declare const ContentNodeSchema: z.ZodObject<{
387
+ label: z.ZodString;
388
+ description: z.ZodOptional<z.ZodString>;
389
+ order: z.ZodOptional<z.ZodNumber>;
390
+ parentContentId: z.ZodOptional<z.ZodString>;
391
+ kind: z.ZodString;
392
+ type: z.ZodString;
393
+ data: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
394
+ }, z.core.$strip>;
395
+ type ContentNode = z.infer<typeof ContentNodeSchema>;
396
+
397
+ /** Explicit interface needed to annotate the recursive SystemEntrySchema. */
398
+ interface SystemEntry {
399
+ id: string;
400
+ label?: string;
401
+ title?: string;
402
+ description?: string;
403
+ kind?: 'product' | 'operational' | 'platform' | 'diagnostic';
404
+ parentSystemId?: string;
405
+ ui?: {
406
+ path: string;
407
+ surfaces: string[];
408
+ icon?: string;
409
+ order?: number;
410
+ };
411
+ lifecycle?: 'draft' | 'beta' | 'active' | 'deprecated' | 'archived';
412
+ responsibleRoleId?: string;
413
+ governedByKnowledge?: string[];
414
+ actions?: {
415
+ actionId: string;
416
+ intent: 'exposes' | 'consumes';
417
+ invocation?: unknown;
418
+ }[];
419
+ policies?: string[];
420
+ drivesGoals?: string[];
421
+ /** @deprecated Use lifecycle. Accepted for one publish cycle. */
422
+ status?: 'active' | 'deprecated' | 'archived';
423
+ path?: string;
424
+ icon?: string;
425
+ color?: string;
426
+ uiPosition?: 'sidebar-primary' | 'sidebar-bottom';
427
+ enabled?: boolean;
428
+ devOnly?: boolean;
429
+ requiresAdmin?: boolean;
430
+ order: number;
431
+ content?: Record<string, ContentNode>;
432
+ subsystems?: Record<string, SystemEntry>;
433
+ }
434
+
252
435
  /**
253
436
  * Resource Registry type definitions
254
437
  */
@@ -262,6 +445,7 @@ type ResourceStatus = 'dev' | 'prod';
262
445
  * Used as the discriminator field in ResourceDefinition
263
446
  */
264
447
  type ResourceType = 'agent' | 'workflow' | 'trigger' | 'integration' | 'external' | 'human';
448
+ type ResourceSystemSummary = Pick<SystemEntry, 'id' | 'title' | 'description' | 'kind' | 'lifecycle'>;
265
449
  /**
266
450
  * Base interface for ALL platform resources
267
451
  * Shared by both executable (agents, workflows) and non-executable (triggers, integrations, etc.) resources
@@ -287,27 +471,704 @@ interface ResourceDefinition {
287
471
  sessionCapable?: boolean;
288
472
  /** Whether the resource is local (monorepo) or remote (externally deployed) */
289
473
  origin?: 'local' | 'remote';
474
+ /** OM System membership — dot-separated system path (e.g. "sys.lead-gen"), when backed by a Resource descriptor */
475
+ systemPath?: string;
476
+ /** Display metadata for the owning OM System */
477
+ system?: ResourceSystemSummary;
478
+ /** Governance lifecycle status from the OM Resource descriptor */
479
+ governanceStatus?: ResourceGovernanceStatus;
290
480
  /** Whether this resource is archived and should be excluded from registration and deployment */
291
481
  archived?: boolean;
292
482
  }
293
483
 
484
+ declare const SurfaceTypeSchema: z.ZodEnum<{
485
+ list: "list";
486
+ graph: "graph";
487
+ page: "page";
488
+ dashboard: "dashboard";
489
+ detail: "detail";
490
+ settings: "settings";
491
+ }>;
492
+ interface SidebarSurfaceNode {
493
+ type: 'surface';
494
+ label: string;
495
+ path: string;
496
+ surfaceType: z.infer<typeof SurfaceTypeSchema>;
497
+ description?: string;
498
+ icon?: string;
499
+ order?: number;
500
+ targets?: {
501
+ systems?: string[];
502
+ entities?: string[];
503
+ resources?: string[];
504
+ actions?: string[];
505
+ };
506
+ devOnly?: boolean;
507
+ requiresAdmin?: boolean;
508
+ }
509
+ interface SidebarGroupNode {
510
+ type: 'group';
511
+ label: string;
512
+ description?: string;
513
+ icon?: string;
514
+ order?: number;
515
+ children: Record<string, SidebarNode>;
516
+ }
517
+ type SidebarNode = SidebarSurfaceNode | SidebarGroupNode;
518
+
519
+ declare const OrganizationModelSchema: z.ZodObject<{
520
+ version: z.ZodDefault<z.ZodLiteral<1>>;
521
+ domainMetadata: z.ZodPipe<z.ZodDefault<z.ZodObject<{
522
+ branding: z.ZodOptional<z.ZodObject<{
523
+ version: z.ZodDefault<z.ZodLiteral<1>>;
524
+ lastModified: z.ZodString;
525
+ }, z.core.$strip>>;
526
+ identity: z.ZodOptional<z.ZodObject<{
527
+ version: z.ZodDefault<z.ZodLiteral<1>>;
528
+ lastModified: z.ZodString;
529
+ }, z.core.$strip>>;
530
+ customers: z.ZodOptional<z.ZodObject<{
531
+ version: z.ZodDefault<z.ZodLiteral<1>>;
532
+ lastModified: z.ZodString;
533
+ }, z.core.$strip>>;
534
+ offerings: z.ZodOptional<z.ZodObject<{
535
+ version: z.ZodDefault<z.ZodLiteral<1>>;
536
+ lastModified: z.ZodString;
537
+ }, z.core.$strip>>;
538
+ roles: z.ZodOptional<z.ZodObject<{
539
+ version: z.ZodDefault<z.ZodLiteral<1>>;
540
+ lastModified: z.ZodString;
541
+ }, z.core.$strip>>;
542
+ goals: z.ZodOptional<z.ZodObject<{
543
+ version: z.ZodDefault<z.ZodLiteral<1>>;
544
+ lastModified: z.ZodString;
545
+ }, z.core.$strip>>;
546
+ systems: z.ZodOptional<z.ZodObject<{
547
+ version: z.ZodDefault<z.ZodLiteral<1>>;
548
+ lastModified: z.ZodString;
549
+ }, z.core.$strip>>;
550
+ resources: z.ZodOptional<z.ZodObject<{
551
+ version: z.ZodDefault<z.ZodLiteral<1>>;
552
+ lastModified: z.ZodString;
553
+ }, z.core.$strip>>;
554
+ actions: z.ZodOptional<z.ZodObject<{
555
+ version: z.ZodDefault<z.ZodLiteral<1>>;
556
+ lastModified: z.ZodString;
557
+ }, z.core.$strip>>;
558
+ entities: z.ZodOptional<z.ZodObject<{
559
+ version: z.ZodDefault<z.ZodLiteral<1>>;
560
+ lastModified: z.ZodString;
561
+ }, z.core.$strip>>;
562
+ policies: z.ZodOptional<z.ZodObject<{
563
+ version: z.ZodDefault<z.ZodLiteral<1>>;
564
+ lastModified: z.ZodString;
565
+ }, z.core.$strip>>;
566
+ knowledge: z.ZodOptional<z.ZodObject<{
567
+ version: z.ZodDefault<z.ZodLiteral<1>>;
568
+ lastModified: z.ZodString;
569
+ }, z.core.$strip>>;
570
+ }, z.core.$strip>>, z.ZodTransform<{
571
+ branding: {
572
+ version: 1;
573
+ lastModified: string;
574
+ };
575
+ identity: {
576
+ version: 1;
577
+ lastModified: string;
578
+ };
579
+ customers: {
580
+ version: 1;
581
+ lastModified: string;
582
+ };
583
+ offerings: {
584
+ version: 1;
585
+ lastModified: string;
586
+ };
587
+ roles: {
588
+ version: 1;
589
+ lastModified: string;
590
+ };
591
+ goals: {
592
+ version: 1;
593
+ lastModified: string;
594
+ };
595
+ systems: {
596
+ version: 1;
597
+ lastModified: string;
598
+ };
599
+ resources: {
600
+ version: 1;
601
+ lastModified: string;
602
+ };
603
+ actions: {
604
+ version: 1;
605
+ lastModified: string;
606
+ };
607
+ entities: {
608
+ version: 1;
609
+ lastModified: string;
610
+ };
611
+ policies: {
612
+ version: 1;
613
+ lastModified: string;
614
+ };
615
+ knowledge: {
616
+ version: 1;
617
+ lastModified: string;
618
+ };
619
+ }, {
620
+ branding?: {
621
+ version: 1;
622
+ lastModified: string;
623
+ } | undefined;
624
+ identity?: {
625
+ version: 1;
626
+ lastModified: string;
627
+ } | undefined;
628
+ customers?: {
629
+ version: 1;
630
+ lastModified: string;
631
+ } | undefined;
632
+ offerings?: {
633
+ version: 1;
634
+ lastModified: string;
635
+ } | undefined;
636
+ roles?: {
637
+ version: 1;
638
+ lastModified: string;
639
+ } | undefined;
640
+ goals?: {
641
+ version: 1;
642
+ lastModified: string;
643
+ } | undefined;
644
+ systems?: {
645
+ version: 1;
646
+ lastModified: string;
647
+ } | undefined;
648
+ resources?: {
649
+ version: 1;
650
+ lastModified: string;
651
+ } | undefined;
652
+ actions?: {
653
+ version: 1;
654
+ lastModified: string;
655
+ } | undefined;
656
+ entities?: {
657
+ version: 1;
658
+ lastModified: string;
659
+ } | undefined;
660
+ policies?: {
661
+ version: 1;
662
+ lastModified: string;
663
+ } | undefined;
664
+ knowledge?: {
665
+ version: 1;
666
+ lastModified: string;
667
+ } | undefined;
668
+ }>>;
669
+ branding: z.ZodObject<{
670
+ organizationName: z.ZodString;
671
+ productName: z.ZodString;
672
+ shortName: z.ZodString;
673
+ description: z.ZodOptional<z.ZodString>;
674
+ logos: z.ZodDefault<z.ZodObject<{
675
+ light: z.ZodOptional<z.ZodString>;
676
+ dark: z.ZodOptional<z.ZodString>;
677
+ }, z.core.$strip>>;
678
+ }, z.core.$strip>;
679
+ navigation: z.ZodDefault<z.ZodObject<{
680
+ sidebar: z.ZodDefault<z.ZodObject<{
681
+ primary: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodType<SidebarNode, unknown, z.core.$ZodTypeInternals<SidebarNode, unknown>>>>;
682
+ bottom: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodType<SidebarNode, unknown, z.core.$ZodTypeInternals<SidebarNode, unknown>>>>;
683
+ }, z.core.$strip>>;
684
+ }, z.core.$strip>>;
685
+ identity: z.ZodDefault<z.ZodObject<{
686
+ mission: z.ZodDefault<z.ZodString>;
687
+ vision: z.ZodDefault<z.ZodString>;
688
+ legalName: z.ZodDefault<z.ZodString>;
689
+ entityType: z.ZodDefault<z.ZodString>;
690
+ jurisdiction: z.ZodDefault<z.ZodString>;
691
+ industryCategory: z.ZodDefault<z.ZodString>;
692
+ geographicFocus: z.ZodDefault<z.ZodString>;
693
+ timeZone: z.ZodDefault<z.ZodString>;
694
+ businessHours: z.ZodDefault<z.ZodObject<{
695
+ monday: z.ZodOptional<z.ZodObject<{
696
+ open: z.ZodString;
697
+ close: z.ZodString;
698
+ }, z.core.$strip>>;
699
+ tuesday: z.ZodOptional<z.ZodObject<{
700
+ open: z.ZodString;
701
+ close: z.ZodString;
702
+ }, z.core.$strip>>;
703
+ wednesday: z.ZodOptional<z.ZodObject<{
704
+ open: z.ZodString;
705
+ close: z.ZodString;
706
+ }, z.core.$strip>>;
707
+ thursday: z.ZodOptional<z.ZodObject<{
708
+ open: z.ZodString;
709
+ close: z.ZodString;
710
+ }, z.core.$strip>>;
711
+ friday: z.ZodOptional<z.ZodObject<{
712
+ open: z.ZodString;
713
+ close: z.ZodString;
714
+ }, z.core.$strip>>;
715
+ saturday: z.ZodOptional<z.ZodObject<{
716
+ open: z.ZodString;
717
+ close: z.ZodString;
718
+ }, z.core.$strip>>;
719
+ sunday: z.ZodOptional<z.ZodObject<{
720
+ open: z.ZodString;
721
+ close: z.ZodString;
722
+ }, z.core.$strip>>;
723
+ }, z.core.$strip>>;
724
+ clientBrief: z.ZodDefault<z.ZodString>;
725
+ }, z.core.$strip>>;
726
+ customers: z.ZodDefault<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
727
+ id: z.ZodString;
728
+ order: z.ZodNumber;
729
+ name: z.ZodDefault<z.ZodString>;
730
+ description: z.ZodDefault<z.ZodString>;
731
+ jobsToBeDone: z.ZodDefault<z.ZodString>;
732
+ pains: z.ZodDefault<z.ZodArray<z.ZodString>>;
733
+ gains: z.ZodDefault<z.ZodArray<z.ZodString>>;
734
+ firmographics: z.ZodDefault<z.ZodObject<{
735
+ industry: z.ZodOptional<z.ZodString>;
736
+ companySize: z.ZodOptional<z.ZodString>;
737
+ region: z.ZodOptional<z.ZodString>;
738
+ }, z.core.$strip>>;
739
+ valueProp: z.ZodDefault<z.ZodString>;
740
+ }, z.core.$strip>>>>;
741
+ offerings: z.ZodDefault<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
742
+ id: z.ZodString;
743
+ order: z.ZodNumber;
744
+ name: z.ZodDefault<z.ZodString>;
745
+ description: z.ZodDefault<z.ZodString>;
746
+ pricingModel: z.ZodDefault<z.ZodEnum<{
747
+ custom: "custom";
748
+ "one-time": "one-time";
749
+ subscription: "subscription";
750
+ "usage-based": "usage-based";
751
+ }>>;
752
+ price: z.ZodDefault<z.ZodNumber>;
753
+ currency: z.ZodDefault<z.ZodString>;
754
+ targetSegmentIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
755
+ deliveryFeatureId: z.ZodOptional<z.ZodString>;
756
+ }, z.core.$strip>>>>;
757
+ roles: z.ZodDefault<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
758
+ id: z.ZodString;
759
+ order: z.ZodNumber;
760
+ title: z.ZodString;
761
+ responsibilities: z.ZodDefault<z.ZodArray<z.ZodString>>;
762
+ reportsToId: z.ZodOptional<z.ZodString>;
763
+ heldBy: z.ZodOptional<z.ZodUnion<readonly [z.ZodDiscriminatedUnion<[z.ZodObject<{
764
+ kind: z.ZodLiteral<"human">;
765
+ userId: z.ZodString;
766
+ }, z.core.$strip>, z.ZodObject<{
767
+ kind: z.ZodLiteral<"agent">;
768
+ agentId: z.ZodString;
769
+ }, z.core.$strip>, z.ZodObject<{
770
+ kind: z.ZodLiteral<"team">;
771
+ memberIds: z.ZodArray<z.ZodString>;
772
+ }, z.core.$strip>], "kind">, z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
773
+ kind: z.ZodLiteral<"human">;
774
+ userId: z.ZodString;
775
+ }, z.core.$strip>, z.ZodObject<{
776
+ kind: z.ZodLiteral<"agent">;
777
+ agentId: z.ZodString;
778
+ }, z.core.$strip>, z.ZodObject<{
779
+ kind: z.ZodLiteral<"team">;
780
+ memberIds: z.ZodArray<z.ZodString>;
781
+ }, z.core.$strip>], "kind">>]>>;
782
+ responsibleFor: z.ZodOptional<z.ZodArray<z.ZodString>>;
783
+ }, z.core.$strip>>>>;
784
+ goals: z.ZodDefault<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
785
+ id: z.ZodString;
786
+ order: z.ZodNumber;
787
+ description: z.ZodString;
788
+ periodStart: z.ZodString;
789
+ periodEnd: z.ZodString;
790
+ keyResults: z.ZodDefault<z.ZodArray<z.ZodObject<{
791
+ id: z.ZodString;
792
+ description: z.ZodString;
793
+ targetMetric: z.ZodString;
794
+ currentValue: z.ZodDefault<z.ZodNumber>;
795
+ targetValue: z.ZodOptional<z.ZodNumber>;
796
+ }, z.core.$strip>>>;
797
+ }, z.core.$strip>>>>;
798
+ systems: z.ZodDefault<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodType<SystemEntry, unknown, z.core.$ZodTypeInternals<SystemEntry, unknown>>>>>;
799
+ resources: z.ZodDefault<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
800
+ id: z.ZodString;
801
+ order: z.ZodDefault<z.ZodNumber>;
802
+ systemPath: z.ZodString;
803
+ ownerRoleId: z.ZodOptional<z.ZodString>;
804
+ status: z.ZodEnum<{
805
+ deprecated: "deprecated";
806
+ active: "active";
807
+ archived: "archived";
808
+ }>;
809
+ kind: z.ZodLiteral<"workflow">;
810
+ actionKey: z.ZodOptional<z.ZodString>;
811
+ emits: z.ZodOptional<z.ZodArray<z.ZodObject<{
812
+ eventKey: z.ZodString;
813
+ label: z.ZodString;
814
+ payloadSchema: z.ZodOptional<z.ZodString>;
815
+ lifecycle: z.ZodOptional<z.ZodEnum<{
816
+ deprecated: "deprecated";
817
+ draft: "draft";
818
+ beta: "beta";
819
+ active: "active";
820
+ archived: "archived";
821
+ }>>;
822
+ }, z.core.$strip>>>;
823
+ }, z.core.$strip>, z.ZodObject<{
824
+ id: z.ZodString;
825
+ order: z.ZodDefault<z.ZodNumber>;
826
+ systemPath: z.ZodString;
827
+ ownerRoleId: z.ZodOptional<z.ZodString>;
828
+ status: z.ZodEnum<{
829
+ deprecated: "deprecated";
830
+ active: "active";
831
+ archived: "archived";
832
+ }>;
833
+ kind: z.ZodLiteral<"agent">;
834
+ agentKind: z.ZodEnum<{
835
+ platform: "platform";
836
+ orchestrator: "orchestrator";
837
+ specialist: "specialist";
838
+ utility: "utility";
839
+ }>;
840
+ actsAsRoleId: z.ZodOptional<z.ZodString>;
841
+ sessionCapable: z.ZodBoolean;
842
+ invocations: z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
843
+ kind: z.ZodLiteral<"slash-command">;
844
+ command: z.ZodString;
845
+ toolFactory: z.ZodOptional<z.ZodString>;
846
+ }, z.core.$strip>, z.ZodObject<{
847
+ kind: z.ZodLiteral<"mcp-tool">;
848
+ server: z.ZodString;
849
+ name: z.ZodString;
850
+ }, z.core.$strip>, z.ZodObject<{
851
+ kind: z.ZodLiteral<"api-endpoint">;
852
+ method: z.ZodEnum<{
853
+ GET: "GET";
854
+ POST: "POST";
855
+ PATCH: "PATCH";
856
+ DELETE: "DELETE";
857
+ }>;
858
+ path: z.ZodString;
859
+ requestSchema: z.ZodOptional<z.ZodString>;
860
+ responseSchema: z.ZodOptional<z.ZodString>;
861
+ }, z.core.$strip>, z.ZodObject<{
862
+ kind: z.ZodLiteral<"script-execution">;
863
+ resourceId: z.ZodString;
864
+ }, z.core.$strip>], "kind">>>;
865
+ emits: z.ZodOptional<z.ZodArray<z.ZodObject<{
866
+ eventKey: z.ZodString;
867
+ label: z.ZodString;
868
+ payloadSchema: z.ZodOptional<z.ZodString>;
869
+ lifecycle: z.ZodOptional<z.ZodEnum<{
870
+ deprecated: "deprecated";
871
+ draft: "draft";
872
+ beta: "beta";
873
+ active: "active";
874
+ archived: "archived";
875
+ }>>;
876
+ }, z.core.$strip>>>;
877
+ }, z.core.$strip>, z.ZodObject<{
878
+ id: z.ZodString;
879
+ order: z.ZodDefault<z.ZodNumber>;
880
+ systemPath: z.ZodString;
881
+ ownerRoleId: z.ZodOptional<z.ZodString>;
882
+ status: z.ZodEnum<{
883
+ deprecated: "deprecated";
884
+ active: "active";
885
+ archived: "archived";
886
+ }>;
887
+ kind: z.ZodLiteral<"integration">;
888
+ provider: z.ZodString;
889
+ }, z.core.$strip>, z.ZodObject<{
890
+ id: z.ZodString;
891
+ order: z.ZodDefault<z.ZodNumber>;
892
+ systemPath: z.ZodString;
893
+ ownerRoleId: z.ZodOptional<z.ZodString>;
894
+ status: z.ZodEnum<{
895
+ deprecated: "deprecated";
896
+ active: "active";
897
+ archived: "archived";
898
+ }>;
899
+ kind: z.ZodLiteral<"script">;
900
+ language: z.ZodEnum<{
901
+ shell: "shell";
902
+ sql: "sql";
903
+ typescript: "typescript";
904
+ python: "python";
905
+ }>;
906
+ source: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
907
+ file: z.ZodString;
908
+ }, z.core.$strip>]>;
909
+ }, z.core.$strip>], "kind">>>>;
910
+ actions: z.ZodDefault<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
911
+ id: z.ZodString;
912
+ order: z.ZodNumber;
913
+ label: z.ZodString;
914
+ description: z.ZodOptional<z.ZodString>;
915
+ scope: z.ZodDefault<z.ZodUnion<readonly [z.ZodLiteral<"global">, z.ZodObject<{
916
+ domain: z.ZodString;
917
+ }, z.core.$strip>]>>;
918
+ resourceId: z.ZodOptional<z.ZodString>;
919
+ affects: z.ZodOptional<z.ZodArray<z.ZodString>>;
920
+ invocations: z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
921
+ kind: z.ZodLiteral<"slash-command">;
922
+ command: z.ZodString;
923
+ toolFactory: z.ZodOptional<z.ZodString>;
924
+ }, z.core.$strip>, z.ZodObject<{
925
+ kind: z.ZodLiteral<"mcp-tool">;
926
+ server: z.ZodString;
927
+ name: z.ZodString;
928
+ }, z.core.$strip>, z.ZodObject<{
929
+ kind: z.ZodLiteral<"api-endpoint">;
930
+ method: z.ZodEnum<{
931
+ GET: "GET";
932
+ POST: "POST";
933
+ PATCH: "PATCH";
934
+ DELETE: "DELETE";
935
+ }>;
936
+ path: z.ZodString;
937
+ requestSchema: z.ZodOptional<z.ZodString>;
938
+ responseSchema: z.ZodOptional<z.ZodString>;
939
+ }, z.core.$strip>, z.ZodObject<{
940
+ kind: z.ZodLiteral<"script-execution">;
941
+ resourceId: z.ZodString;
942
+ }, z.core.$strip>], "kind">>>;
943
+ knowledge: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString>>>;
944
+ lifecycle: z.ZodDefault<z.ZodEnum<{
945
+ deprecated: "deprecated";
946
+ draft: "draft";
947
+ beta: "beta";
948
+ active: "active";
949
+ archived: "archived";
950
+ }>>;
951
+ }, z.core.$strip>>>>;
952
+ entities: z.ZodDefault<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
953
+ id: z.ZodString;
954
+ order: z.ZodNumber;
955
+ label: z.ZodString;
956
+ description: z.ZodOptional<z.ZodString>;
957
+ ownedBySystemId: z.ZodString;
958
+ table: z.ZodOptional<z.ZodString>;
959
+ rowSchema: z.ZodOptional<z.ZodString>;
960
+ stateCatalogId: z.ZodOptional<z.ZodString>;
961
+ links: z.ZodOptional<z.ZodArray<z.ZodObject<{
962
+ toEntity: z.ZodString;
963
+ kind: z.ZodEnum<{
964
+ "belongs-to": "belongs-to";
965
+ "has-many": "has-many";
966
+ "has-one": "has-one";
967
+ "many-to-many": "many-to-many";
968
+ }>;
969
+ via: z.ZodOptional<z.ZodString>;
970
+ label: z.ZodOptional<z.ZodString>;
971
+ }, z.core.$strip>>>;
972
+ }, z.core.$strip>>>>;
973
+ policies: z.ZodDefault<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
974
+ id: z.ZodString;
975
+ order: z.ZodNumber;
976
+ label: z.ZodString;
977
+ description: z.ZodOptional<z.ZodString>;
978
+ trigger: z.ZodDiscriminatedUnion<[z.ZodObject<{
979
+ kind: z.ZodLiteral<"event">;
980
+ eventId: z.ZodString;
981
+ }, z.core.$strip>, z.ZodObject<{
982
+ kind: z.ZodLiteral<"action-invocation">;
983
+ actionId: z.ZodString;
984
+ }, z.core.$strip>, z.ZodObject<{
985
+ kind: z.ZodLiteral<"schedule">;
986
+ cron: z.ZodString;
987
+ }, z.core.$strip>, z.ZodObject<{
988
+ kind: z.ZodLiteral<"manual">;
989
+ }, z.core.$strip>], "kind">;
990
+ predicate: z.ZodDefault<z.ZodDiscriminatedUnion<[z.ZodObject<{
991
+ kind: z.ZodLiteral<"always">;
992
+ }, z.core.$strip>, z.ZodObject<{
993
+ kind: z.ZodLiteral<"expression">;
994
+ expression: z.ZodString;
995
+ }, z.core.$strip>, z.ZodObject<{
996
+ kind: z.ZodLiteral<"threshold">;
997
+ metric: z.ZodString;
998
+ operator: z.ZodEnum<{
999
+ lt: "lt";
1000
+ lte: "lte";
1001
+ eq: "eq";
1002
+ gte: "gte";
1003
+ gt: "gt";
1004
+ }>;
1005
+ value: z.ZodNumber;
1006
+ }, z.core.$strip>], "kind">>;
1007
+ actions: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
1008
+ kind: z.ZodLiteral<"require-approval">;
1009
+ roleId: z.ZodOptional<z.ZodString>;
1010
+ }, z.core.$strip>, z.ZodObject<{
1011
+ kind: z.ZodLiteral<"invoke-action">;
1012
+ actionId: z.ZodString;
1013
+ }, z.core.$strip>, z.ZodObject<{
1014
+ kind: z.ZodLiteral<"notify-role">;
1015
+ roleId: z.ZodString;
1016
+ }, z.core.$strip>, z.ZodObject<{
1017
+ kind: z.ZodLiteral<"block">;
1018
+ }, z.core.$strip>], "kind">>;
1019
+ appliesTo: z.ZodDefault<z.ZodObject<{
1020
+ systemIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
1021
+ actionIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
1022
+ resourceIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
1023
+ roleIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
1024
+ }, z.core.$strip>>;
1025
+ lifecycle: z.ZodDefault<z.ZodEnum<{
1026
+ deprecated: "deprecated";
1027
+ draft: "draft";
1028
+ beta: "beta";
1029
+ active: "active";
1030
+ archived: "archived";
1031
+ }>>;
1032
+ }, z.core.$strip>>>>;
1033
+ knowledge: z.ZodDefault<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
1034
+ id: z.ZodString;
1035
+ kind: z.ZodEnum<{
1036
+ playbook: "playbook";
1037
+ strategy: "strategy";
1038
+ reference: "reference";
1039
+ }>;
1040
+ title: z.ZodString;
1041
+ summary: z.ZodString;
1042
+ icon: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
1043
+ "nav.dashboard": "nav.dashboard";
1044
+ "nav.calendar": "nav.calendar";
1045
+ "nav.sales": "nav.sales";
1046
+ "nav.crm": "nav.crm";
1047
+ "nav.lead-gen": "nav.lead-gen";
1048
+ "nav.projects": "nav.projects";
1049
+ "nav.operations": "nav.operations";
1050
+ "nav.monitoring": "nav.monitoring";
1051
+ "nav.knowledge": "nav.knowledge";
1052
+ "nav.settings": "nav.settings";
1053
+ "nav.admin": "nav.admin";
1054
+ "nav.archive": "nav.archive";
1055
+ "knowledge.playbook": "knowledge.playbook";
1056
+ "knowledge.strategy": "knowledge.strategy";
1057
+ "knowledge.reference": "knowledge.reference";
1058
+ "feature.dashboard": "feature.dashboard";
1059
+ "feature.calendar": "feature.calendar";
1060
+ "feature.business": "feature.business";
1061
+ "feature.sales": "feature.sales";
1062
+ "feature.crm": "feature.crm";
1063
+ "feature.finance": "feature.finance";
1064
+ "feature.lead-gen": "feature.lead-gen";
1065
+ "feature.platform": "feature.platform";
1066
+ "feature.projects": "feature.projects";
1067
+ "feature.operations": "feature.operations";
1068
+ "feature.knowledge": "feature.knowledge";
1069
+ "feature.monitoring": "feature.monitoring";
1070
+ "feature.settings": "feature.settings";
1071
+ "feature.admin": "feature.admin";
1072
+ "feature.archive": "feature.archive";
1073
+ "feature.seo": "feature.seo";
1074
+ "resource.agent": "resource.agent";
1075
+ "resource.workflow": "resource.workflow";
1076
+ "resource.integration": "resource.integration";
1077
+ "resource.database": "resource.database";
1078
+ "resource.user": "resource.user";
1079
+ "resource.team": "resource.team";
1080
+ "integration.gmail": "integration.gmail";
1081
+ "integration.google-sheets": "integration.google-sheets";
1082
+ "integration.attio": "integration.attio";
1083
+ "surface.dashboard": "surface.dashboard";
1084
+ "surface.calendar": "surface.calendar";
1085
+ "surface.overview": "surface.overview";
1086
+ "surface.command-view": "surface.command-view";
1087
+ "surface.command-queue": "surface.command-queue";
1088
+ "surface.pipeline": "surface.pipeline";
1089
+ "surface.lists": "surface.lists";
1090
+ "surface.resources": "surface.resources";
1091
+ "surface.settings": "surface.settings";
1092
+ "status.success": "status.success";
1093
+ "status.error": "status.error";
1094
+ "status.warning": "status.warning";
1095
+ "status.info": "status.info";
1096
+ "status.pending": "status.pending";
1097
+ "action.approve": "action.approve";
1098
+ "action.reject": "action.reject";
1099
+ "action.retry": "action.retry";
1100
+ "action.edit": "action.edit";
1101
+ "action.view": "action.view";
1102
+ "action.launch": "action.launch";
1103
+ "action.message": "action.message";
1104
+ "action.escalate": "action.escalate";
1105
+ "action.promote": "action.promote";
1106
+ "action.submit": "action.submit";
1107
+ "action.email": "action.email";
1108
+ }>, z.ZodString]>>;
1109
+ externalUrl: z.ZodOptional<z.ZodString>;
1110
+ body: z.ZodString;
1111
+ links: z.ZodDefault<z.ZodArray<z.ZodPipe<z.ZodUnion<readonly [z.ZodObject<{
1112
+ target: z.ZodObject<{
1113
+ kind: z.ZodEnum<{
1114
+ system: "system";
1115
+ action: "action";
1116
+ knowledge: "knowledge";
1117
+ role: "role";
1118
+ goal: "goal";
1119
+ stage: "stage";
1120
+ resource: "resource";
1121
+ "customer-segment": "customer-segment";
1122
+ offering: "offering";
1123
+ "content-node": "content-node";
1124
+ }>;
1125
+ id: z.ZodString;
1126
+ }, z.core.$strip>;
1127
+ }, z.core.$strip>, z.ZodObject<{
1128
+ nodeId: z.ZodString;
1129
+ }, z.core.$strip>]>, z.ZodTransform<{
1130
+ target: {
1131
+ kind: "system" | "action" | "knowledge" | "role" | "goal" | "stage" | "resource" | "customer-segment" | "offering" | "content-node";
1132
+ id: string;
1133
+ };
1134
+ nodeId: string;
1135
+ }, {
1136
+ nodeId: string;
1137
+ } | {
1138
+ target: {
1139
+ kind: "system" | "action" | "knowledge" | "role" | "goal" | "stage" | "resource" | "customer-segment" | "offering" | "content-node";
1140
+ id: string;
1141
+ };
1142
+ }>>>>;
1143
+ ownerIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
1144
+ updatedAt: z.ZodString;
1145
+ }, z.core.$strip>>>>;
1146
+ }, z.core.$strip>;
1147
+
1148
+ type OrganizationModel = z.infer<typeof OrganizationModelSchema>;
1149
+
294
1150
  declare const LinkSchema: z.ZodObject<{
295
1151
  nodeId: z.ZodString;
296
1152
  kind: z.ZodEnum<{
1153
+ links: "links";
1154
+ affects: "affects";
1155
+ emits: "emits";
297
1156
  contains: "contains";
298
1157
  references: "references";
299
- exposes: "exposes";
300
1158
  maps_to: "maps_to";
301
- "operates-on": "operates-on";
302
1159
  uses: "uses";
303
1160
  governs: "governs";
1161
+ originates_from: "originates_from";
1162
+ triggers: "triggers";
1163
+ applies_to: "applies_to";
1164
+ effects: "effects";
304
1165
  }>;
305
1166
  }, z.core.$strip>;
306
1167
  type Link = z.infer<typeof LinkSchema>;
307
1168
 
308
1169
  declare const ResourceCategorySchema: z.ZodEnum<{
309
- production: "production";
310
1170
  diagnostic: "diagnostic";
1171
+ production: "production";
311
1172
  internal: "internal";
312
1173
  testing: "testing";
313
1174
  }>;
@@ -490,32 +1351,34 @@ interface UseExecutionPanelStateOptions {
490
1351
 
491
1352
  type TaskFilterStatus = 'all' | 'pending' | 'completed' | 'expired';
492
1353
 
493
- type FeatureSidebarComponent = ComponentType;
494
- type FeatureIconComponent = ComponentType<{
1354
+ type SystemSidebarComponent = ComponentType;
1355
+ type SystemIconComponent = ComponentType<{
495
1356
  size?: number;
496
1357
  stroke?: number;
497
1358
  }>;
498
- type FeatureSidebarWidthResolver = number | ((context: {
1359
+ type SystemSidebarWidthResolver = number | ((context: {
499
1360
  currentPath: string;
500
1361
  }) => number);
501
- interface FeatureModule {
502
- /** Unique stable identifier for this feature module. */
1362
+ interface SystemModule {
1363
+ /** Unique stable identifier for this UI system module. */
503
1364
  key: string;
504
- /** Organization Model feature id this module presents. */
505
- featureId: string;
506
- /** Capability identifiers contributed by this feature module. */
1365
+ /** Organization Model system id this module presents. Omit for navigation-only app surfaces. */
1366
+ systemId?: string;
1367
+ /** Route prefixes owned by navigation-only app surfaces. */
1368
+ routePrefixes?: string[];
1369
+ /** Capability identifiers contributed by this system module. */
507
1370
  capabilityIds?: string[];
508
- /** Icon used when this feature node appears in shell navigation. */
509
- icon?: FeatureIconComponent;
510
- /** Sidebar component rendered when this feature's subtree route is active. */
511
- sidebar?: FeatureSidebarComponent;
1371
+ /** Icon used when this system node appears in shell navigation. */
1372
+ icon?: SystemIconComponent;
1373
+ /** Sidebar component rendered when this system's subtree route is active. */
1374
+ sidebar?: SystemSidebarComponent;
512
1375
  /** Optional shell sidebar width override. Defaults to 250px. */
513
- sidebarWidth?: FeatureSidebarWidthResolver;
514
- /** Operations-only bridge connecting this feature to the organization graph node. */
515
- organizationGraph?: OrganizationGraphFeatureBridge;
1376
+ sidebarWidth?: SystemSidebarWidthResolver;
1377
+ /** Operations-only bridge connecting this system to the organization graph node. */
1378
+ organizationGraph?: OrganizationGraphSystemBridge;
516
1379
  }
517
- interface OrganizationGraphFeatureBridge {
518
- featureId: string;
1380
+ interface OrganizationGraphSystemBridge {
1381
+ systemId?: string;
519
1382
  }
520
1383
 
521
1384
  interface CommandQueuePageProps {
@@ -557,21 +1420,6 @@ interface OrganizationGraphPageProps {
557
1420
  }
558
1421
  declare function OrganizationGraphPage({ lens, timeRange }: OrganizationGraphPageProps): react_jsx_runtime.JSX.Element;
559
1422
 
560
- interface CommandViewSidebarContentProps {
561
- /** Current time range value — caller passes from its own store (e.g. useAppStore) */
562
- timeRange: TimeRange;
563
- }
564
- /**
565
- * Contextual sidebar for the Command View page.
566
- * Shown in the shared Operations subshell sidebar when on /operations/command-view.
567
- *
568
- * Contains:
569
- * - Execution health donut chart
570
- * - Graph filter and visibility controls
571
- * - Selected node details + executions/tasks (lazy loaded)
572
- */
573
- declare function CommandViewSidebarContent({ timeRange }: CommandViewSidebarContentProps): react_jsx_runtime.JSX.Element;
574
-
575
1423
  type ExecutionSelectionControlProps$2 = Pick<UseExecutionPanelStateOptions, 'selectedId' | 'onSelectedIdChange'>;
576
1424
  interface ExecutionPanelProps extends ExecutionSelectionControlProps$2 {
577
1425
  resourceId: string;
@@ -824,28 +1672,80 @@ declare function SessionsSidebar({ isReady, onAgentClick, buildSessionDetailUrl,
824
1672
 
825
1673
  declare const OperationsSidebar: () => react_jsx_runtime.JSX.Element;
826
1674
 
827
- declare const OperationsSidebarTop: () => react_jsx_runtime.JSX.Element | null;
1675
+ declare const OperationsSidebarTop: () => null;
828
1676
 
829
1677
  declare const OperationsSidebarMiddle: () => react_jsx_runtime.JSX.Element;
830
1678
 
831
1679
  interface CommandQueueShellProps {
832
- /** @deprecated Sidebar is now rendered by OperationsSidebarMiddle via the FeatureShell. */
1680
+ /** @deprecated Sidebar is now rendered by OperationsSidebarMiddle via the SystemShell. */
833
1681
  selectedCheckpoint?: string | undefined;
834
- /** @deprecated Sidebar is now rendered by OperationsSidebarMiddle via the FeatureShell. */
1682
+ /** @deprecated Sidebar is now rendered by OperationsSidebarMiddle via the SystemShell. */
835
1683
  onSelectCheckpoint?: (checkpoint: string | undefined) => void;
836
- /** @deprecated Sidebar is now rendered by OperationsSidebarMiddle via the FeatureShell. */
1684
+ /** @deprecated Sidebar is now rendered by OperationsSidebarMiddle via the SystemShell. */
837
1685
  status?: TaskFilterStatus;
838
- /** @deprecated Sidebar is now rendered by OperationsSidebarMiddle via the FeatureShell. */
1686
+ /** @deprecated Sidebar is now rendered by OperationsSidebarMiddle via the SystemShell. */
839
1687
  onStatusChange?: (status: TaskFilterStatus) => void;
840
- /** @deprecated Sidebar is now rendered by OperationsSidebarMiddle via the FeatureShell. */
1688
+ /** @deprecated Sidebar is now rendered by OperationsSidebarMiddle via the SystemShell. */
841
1689
  priorityRange?: [number, number];
842
- /** @deprecated Sidebar is now rendered by OperationsSidebarMiddle via the FeatureShell. */
1690
+ /** @deprecated Sidebar is now rendered by OperationsSidebarMiddle via the SystemShell. */
843
1691
  onPriorityRangeChange?: (range: [number, number]) => void;
844
1692
  children: ReactNode;
845
1693
  }
846
1694
  declare function CommandQueueShell({ children }: CommandQueueShellProps): react_jsx_runtime.JSX.Element;
847
1695
 
848
- declare const operationsManifest: FeatureModule;
1696
+ declare const operationsManifest: SystemModule;
1697
+
1698
+ interface SystemOpsViewProps {
1699
+ model: OrganizationModel;
1700
+ systemPath: string;
1701
+ onNavigate: (path: string) => void;
1702
+ }
1703
+ declare function SystemOpsView({ model, systemPath, onNavigate }: SystemOpsViewProps): react_jsx_runtime.JSX.Element;
1704
+
1705
+ /**
1706
+ * v1 shape: resources-only. Queue / Executions / Sessions / Errors are deferred to v2.
1707
+ */
1708
+ interface SystemMetrics {
1709
+ /** Total resources in this system branch (direct + descendant). */
1710
+ resourceCount: number;
1711
+ /** Resources owned directly by this system (not descendants). */
1712
+ directResourceCount: number;
1713
+ /** Resources owned by descendant systems only. */
1714
+ descendantResourceCount: number;
1715
+ /** Total direct + descendant resources by resource kind. */
1716
+ resourceKindCounts: Record<ResourceKind, number>;
1717
+ /** Direct resources by resource kind. */
1718
+ directResourceKindCounts: Record<ResourceKind, number>;
1719
+ /** Descendant resources by resource kind. */
1720
+ descendantResourceKindCounts: Record<ResourceKind, number>;
1721
+ /** Resources included in the active rollup. */
1722
+ resources: ResourceEntry[];
1723
+ /** Resources owned directly by this system. */
1724
+ directResources: ResourceEntry[];
1725
+ /** Resources owned by descendant systems. */
1726
+ descendantResources: ResourceEntry[];
1727
+ }
1728
+ /**
1729
+ * Compute resource rollup metrics for the given system path.
1730
+ *
1731
+ * Uses `getResourcesForSystem` with `{ includeDescendants: true }` for the
1732
+ * inclusive total and `{ includeDescendants: false }` for direct-only, then
1733
+ * derives the descendant count by subtraction.
1734
+ *
1735
+ * @param model - The full OrganizationModel.
1736
+ * @param systemPath - Dot-separated system path (e.g. `'sales.crm'`).
1737
+ * Pass an empty string to aggregate across the entire model root.
1738
+ * @returns Metrics object with resource counts.
1739
+ */
1740
+ declare function aggregateSystemMetrics(model: OrganizationModel, systemPath: string): SystemMetrics;
1741
+ /**
1742
+ * Format the resource count attribution as a human-readable string.
1743
+ *
1744
+ * @example
1745
+ * formatResourceAttribution({ resourceCount: 12, directResourceCount: 3, descendantResourceCount: 9 })
1746
+ * // "12 total - 3 direct - 9 in subsystems"
1747
+ */
1748
+ declare function formatResourceAttribution(metrics: SystemMetrics): string;
849
1749
 
850
- export { AgentExecutionPanel, AgentSessionGroup, CommandQueueDetailPage, CommandQueuePage, CommandQueueShell, CommandViewPage, CommandViewSidebarContent, DashboardOperationsOverview, ExecuteWorkflowModal, ExecutionPanel, OperationsOverview, OperationsSidebar, OperationsSidebarMiddle, OperationsSidebarTop, OrganizationGraphPage, ResourceDetailPage, ResourcesPage, ResourcesSidebar, SessionChatArea, SessionChatInterface, SessionChatPage, SessionDetailsSidebar, SessionExecutionLogs, SessionHeader, SessionListItem, SessionsPage, SessionsSidebar, WorkflowExecutionPanel, operationsManifest };
851
- export type { AgentExecutionPanelProps, AgentSessionGroupProps, CommandQueueDetailPageProps, CommandQueueDetailPageRichTextArgs, CommandQueuePageProps, CommandQueueShellProps, CommandViewPageProps, CommandViewSidebarContentProps, ConversationViewSlotArgs, ExecuteWorkflowModalProps, ExecuteWorkflowModalResource, ExecutionPanelProps, OperationalOverviewPanelProps, OperationsOverviewProps, ResourceDetailPageProps, ResourceDetailPageRenderExecuteDialogArgs, ResourceDetailPageRenderExecutionPanelArgs, ResourcesPageProps, ResourcesSidebarProps, SessionChatAreaProps, SessionChatInterfaceProps, SessionChatPageProps, SessionDetailsSidebarProps, SessionExecutionLogsProps, SessionHeaderProps, SessionListItemProps, SessionsPageProps, SessionsSidebarProps, TaskFilterStatus, WorkflowExecutionPanelProps };
1750
+ export { AgentExecutionPanel, AgentSessionGroup, CommandQueueDetailPage, CommandQueuePage, CommandQueueShell, CommandViewPage, DashboardOperationsOverview, ExecuteWorkflowModal, ExecutionPanel, OperationsOverview, OperationsSidebar, OperationsSidebarMiddle, OperationsSidebarTop, OrganizationGraphPage, ResourceDetailPage, ResourcesPage, ResourcesSidebar, SessionChatArea, SessionChatInterface, SessionChatPage, SessionDetailsSidebar, SessionExecutionLogs, SessionHeader, SessionListItem, SessionsPage, SessionsSidebar, SystemOpsView, WorkflowExecutionPanel, aggregateSystemMetrics, formatResourceAttribution, operationsManifest };
1751
+ export type { AgentExecutionPanelProps, AgentSessionGroupProps, CommandQueueDetailPageProps, CommandQueueDetailPageRichTextArgs, CommandQueuePageProps, CommandQueueShellProps, CommandViewPageProps, ConversationViewSlotArgs, ExecuteWorkflowModalProps, ExecuteWorkflowModalResource, ExecutionPanelProps, OperationalOverviewPanelProps, OperationsOverviewProps, ResourceDetailPageProps, ResourceDetailPageRenderExecuteDialogArgs, ResourceDetailPageRenderExecutionPanelArgs, ResourcesPageProps, ResourcesSidebarProps, SessionChatAreaProps, SessionChatInterfaceProps, SessionChatPageProps, SessionDetailsSidebarProps, SessionExecutionLogsProps, SessionHeaderProps, SessionListItemProps, SessionsPageProps, SessionsSidebarProps, SystemMetrics, SystemOpsViewProps, TaskFilterStatus, WorkflowExecutionPanelProps };