@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
@@ -107,12 +107,131 @@ interface SerializedWorkflowDefinition {
107
107
  metricsConfig?: object;
108
108
  }
109
109
 
110
+ declare const ResourceKindSchema: z.ZodEnum<{
111
+ agent: "agent";
112
+ workflow: "workflow";
113
+ integration: "integration";
114
+ script: "script";
115
+ }>;
110
116
  declare const ResourceGovernanceStatusSchema: z.ZodEnum<{
111
- active: "active";
112
117
  deprecated: "deprecated";
118
+ active: "active";
113
119
  archived: "archived";
114
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>;
115
233
  type ResourceGovernanceStatus = z.infer<typeof ResourceGovernanceStatusSchema>;
234
+ type ResourceEntry = z.infer<typeof ResourceEntrySchema>;
116
235
 
117
236
  /**
118
237
  * Memory type definitions
@@ -257,26 +376,61 @@ interface DashboardMetrics {
257
376
  */
258
377
  type AIResourceDefinition = SerializedWorkflowDefinition | SerializedAgentDefinition;
259
378
 
260
- declare const SystemEntrySchema: z.ZodObject<{
261
- id: z.ZodString;
262
- title: z.ZodString;
263
- description: z.ZodString;
264
- kind: z.ZodEnum<{
265
- platform: "platform";
266
- product: "product";
267
- operational: "operational";
268
- diagnostic: "diagnostic";
269
- }>;
270
- responsibleRoleId: z.ZodOptional<z.ZodString>;
271
- governedByKnowledge: z.ZodDefault<z.ZodArray<z.ZodString>>;
272
- drivesGoals: z.ZodDefault<z.ZodArray<z.ZodString>>;
273
- status: z.ZodEnum<{
274
- active: "active";
275
- deprecated: "deprecated";
276
- archived: "archived";
277
- }>;
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>>;
278
394
  }, z.core.$strip>;
279
- type SystemEntry = z.infer<typeof SystemEntrySchema>;
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
+ }
280
434
 
281
435
  /**
282
436
  * Resource Registry type definitions
@@ -291,7 +445,7 @@ type ResourceStatus = 'dev' | 'prod';
291
445
  * Used as the discriminator field in ResourceDefinition
292
446
  */
293
447
  type ResourceType = 'agent' | 'workflow' | 'trigger' | 'integration' | 'external' | 'human';
294
- type ResourceSystemSummary = Pick<SystemEntry, 'id' | 'title' | 'description' | 'kind' | 'status'>;
448
+ type ResourceSystemSummary = Pick<SystemEntry, 'id' | 'title' | 'description' | 'kind' | 'lifecycle'>;
295
449
  /**
296
450
  * Base interface for ALL platform resources
297
451
  * Shared by both executable (agents, workflows) and non-executable (triggers, integrations, etc.) resources
@@ -317,8 +471,8 @@ interface ResourceDefinition {
317
471
  sessionCapable?: boolean;
318
472
  /** Whether the resource is local (monorepo) or remote (externally deployed) */
319
473
  origin?: 'local' | 'remote';
320
- /** OM System membership, when backed by a Resource descriptor */
321
- systemId?: string;
474
+ /** OM System membership — dot-separated system path (e.g. "sys.lead-gen"), when backed by a Resource descriptor */
475
+ systemPath?: string;
322
476
  /** Display metadata for the owning OM System */
323
477
  system?: ResourceSystemSummary;
324
478
  /** Governance lifecycle status from the OM Resource descriptor */
@@ -327,16 +481,687 @@ interface ResourceDefinition {
327
481
  archived?: boolean;
328
482
  }
329
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
+
330
1150
  declare const LinkSchema: z.ZodObject<{
331
1151
  nodeId: z.ZodString;
332
1152
  kind: z.ZodEnum<{
1153
+ links: "links";
1154
+ affects: "affects";
1155
+ emits: "emits";
333
1156
  contains: "contains";
334
1157
  references: "references";
335
- exposes: "exposes";
336
1158
  maps_to: "maps_to";
337
- "operates-on": "operates-on";
338
1159
  uses: "uses";
339
1160
  governs: "governs";
1161
+ originates_from: "originates_from";
1162
+ triggers: "triggers";
1163
+ applies_to: "applies_to";
1164
+ effects: "effects";
340
1165
  }>;
341
1166
  }, z.core.$strip>;
342
1167
  type Link = z.infer<typeof LinkSchema>;
@@ -526,32 +1351,34 @@ interface UseExecutionPanelStateOptions {
526
1351
 
527
1352
  type TaskFilterStatus = 'all' | 'pending' | 'completed' | 'expired';
528
1353
 
529
- type FeatureSidebarComponent = ComponentType;
530
- type FeatureIconComponent = ComponentType<{
1354
+ type SystemSidebarComponent = ComponentType;
1355
+ type SystemIconComponent = ComponentType<{
531
1356
  size?: number;
532
1357
  stroke?: number;
533
1358
  }>;
534
- type FeatureSidebarWidthResolver = number | ((context: {
1359
+ type SystemSidebarWidthResolver = number | ((context: {
535
1360
  currentPath: string;
536
1361
  }) => number);
537
- interface FeatureModule {
538
- /** Unique stable identifier for this feature module. */
1362
+ interface SystemModule {
1363
+ /** Unique stable identifier for this UI system module. */
539
1364
  key: string;
540
- /** Organization Model feature id this module presents. */
541
- featureId: string;
542
- /** 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. */
543
1370
  capabilityIds?: string[];
544
- /** Icon used when this feature node appears in shell navigation. */
545
- icon?: FeatureIconComponent;
546
- /** Sidebar component rendered when this feature's subtree route is active. */
547
- 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;
548
1375
  /** Optional shell sidebar width override. Defaults to 250px. */
549
- sidebarWidth?: FeatureSidebarWidthResolver;
550
- /** Operations-only bridge connecting this feature to the organization graph node. */
551
- organizationGraph?: OrganizationGraphFeatureBridge;
1376
+ sidebarWidth?: SystemSidebarWidthResolver;
1377
+ /** Operations-only bridge connecting this system to the organization graph node. */
1378
+ organizationGraph?: OrganizationGraphSystemBridge;
552
1379
  }
553
- interface OrganizationGraphFeatureBridge {
554
- featureId: string;
1380
+ interface OrganizationGraphSystemBridge {
1381
+ systemId?: string;
555
1382
  }
556
1383
 
557
1384
  interface CommandQueuePageProps {
@@ -593,21 +1420,6 @@ interface OrganizationGraphPageProps {
593
1420
  }
594
1421
  declare function OrganizationGraphPage({ lens, timeRange }: OrganizationGraphPageProps): react_jsx_runtime.JSX.Element;
595
1422
 
596
- interface CommandViewSidebarContentProps {
597
- /** Current time range value — caller passes from its own store (e.g. useAppStore) */
598
- timeRange: TimeRange;
599
- }
600
- /**
601
- * Contextual sidebar for the Command View page.
602
- * Shown in the shared Operations subshell sidebar when on /operations/command-view.
603
- *
604
- * Contains:
605
- * - Execution health donut chart
606
- * - Graph filter and visibility controls
607
- * - Selected node details + executions/tasks (lazy loaded)
608
- */
609
- declare function CommandViewSidebarContent({ timeRange }: CommandViewSidebarContentProps): react_jsx_runtime.JSX.Element;
610
-
611
1423
  type ExecutionSelectionControlProps$2 = Pick<UseExecutionPanelStateOptions, 'selectedId' | 'onSelectedIdChange'>;
612
1424
  interface ExecutionPanelProps extends ExecutionSelectionControlProps$2 {
613
1425
  resourceId: string;
@@ -865,23 +1677,75 @@ declare const OperationsSidebarTop: () => null;
865
1677
  declare const OperationsSidebarMiddle: () => react_jsx_runtime.JSX.Element;
866
1678
 
867
1679
  interface CommandQueueShellProps {
868
- /** @deprecated Sidebar is now rendered by OperationsSidebarMiddle via the FeatureShell. */
1680
+ /** @deprecated Sidebar is now rendered by OperationsSidebarMiddle via the SystemShell. */
869
1681
  selectedCheckpoint?: string | undefined;
870
- /** @deprecated Sidebar is now rendered by OperationsSidebarMiddle via the FeatureShell. */
1682
+ /** @deprecated Sidebar is now rendered by OperationsSidebarMiddle via the SystemShell. */
871
1683
  onSelectCheckpoint?: (checkpoint: string | undefined) => void;
872
- /** @deprecated Sidebar is now rendered by OperationsSidebarMiddle via the FeatureShell. */
1684
+ /** @deprecated Sidebar is now rendered by OperationsSidebarMiddle via the SystemShell. */
873
1685
  status?: TaskFilterStatus;
874
- /** @deprecated Sidebar is now rendered by OperationsSidebarMiddle via the FeatureShell. */
1686
+ /** @deprecated Sidebar is now rendered by OperationsSidebarMiddle via the SystemShell. */
875
1687
  onStatusChange?: (status: TaskFilterStatus) => void;
876
- /** @deprecated Sidebar is now rendered by OperationsSidebarMiddle via the FeatureShell. */
1688
+ /** @deprecated Sidebar is now rendered by OperationsSidebarMiddle via the SystemShell. */
877
1689
  priorityRange?: [number, number];
878
- /** @deprecated Sidebar is now rendered by OperationsSidebarMiddle via the FeatureShell. */
1690
+ /** @deprecated Sidebar is now rendered by OperationsSidebarMiddle via the SystemShell. */
879
1691
  onPriorityRangeChange?: (range: [number, number]) => void;
880
1692
  children: ReactNode;
881
1693
  }
882
1694
  declare function CommandQueueShell({ children }: CommandQueueShellProps): react_jsx_runtime.JSX.Element;
883
1695
 
884
- 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;
885
1749
 
886
- 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 };
887
- 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 };