@elevasis/core 0.22.0 → 0.23.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 (112) hide show
  1. package/dist/index.d.ts +2330 -2391
  2. package/dist/index.js +2322 -1147
  3. package/dist/knowledge/index.d.ts +702 -1136
  4. package/dist/knowledge/index.js +9 -9
  5. package/dist/organization-model/index.d.ts +2330 -2391
  6. package/dist/organization-model/index.js +2322 -1147
  7. package/dist/test-utils/index.d.ts +703 -1106
  8. package/dist/test-utils/index.js +1735 -1089
  9. package/package.json +1 -1
  10. package/src/__tests__/template-core-compatibility.test.ts +11 -79
  11. package/src/_gen/__tests__/__snapshots__/contracts.md.snap +360 -98
  12. package/src/business/acquisition/api-schemas.test.ts +2 -2
  13. package/src/business/acquisition/api-schemas.ts +7 -9
  14. package/src/business/acquisition/build-templates.test.ts +4 -4
  15. package/src/business/acquisition/build-templates.ts +72 -30
  16. package/src/business/acquisition/crm-state-actions.test.ts +13 -11
  17. package/src/business/acquisition/types.ts +7 -3
  18. package/src/execution/engine/agent/core/types.ts +1 -1
  19. package/src/execution/engine/workflow/types.ts +2 -2
  20. package/src/knowledge/README.md +8 -7
  21. package/src/knowledge/__tests__/queries.test.ts +74 -73
  22. package/src/knowledge/format.ts +10 -9
  23. package/src/knowledge/index.ts +1 -1
  24. package/src/knowledge/published.ts +1 -1
  25. package/src/knowledge/queries.ts +26 -25
  26. package/src/organization-model/README.md +66 -26
  27. package/src/organization-model/__tests__/content-kinds-registry.test.ts +210 -0
  28. package/src/organization-model/__tests__/defaults.test.ts +72 -98
  29. package/src/organization-model/__tests__/domains/actions.test.ts +56 -0
  30. package/src/organization-model/__tests__/domains/customers.test.ts +299 -295
  31. package/src/organization-model/__tests__/domains/entities.test.ts +56 -0
  32. package/src/organization-model/__tests__/domains/goals.test.ts +493 -479
  33. package/src/organization-model/__tests__/domains/identity.test.ts +280 -279
  34. package/src/organization-model/__tests__/domains/navigation.test.ts +268 -212
  35. package/src/organization-model/__tests__/domains/offerings.test.ts +414 -419
  36. package/src/organization-model/__tests__/domains/policies.test.ts +323 -0
  37. package/src/organization-model/__tests__/domains/resource-mappings.test.ts +271 -271
  38. package/src/organization-model/__tests__/domains/resources.test.ts +159 -37
  39. package/src/organization-model/__tests__/domains/roles.test.ts +147 -86
  40. package/src/organization-model/__tests__/domains/statuses.test.ts +246 -243
  41. package/src/organization-model/__tests__/domains/systems.test.ts +67 -51
  42. package/src/organization-model/__tests__/flatten-additive-merge.test.ts +361 -0
  43. package/src/organization-model/__tests__/foundation.test.ts +74 -102
  44. package/src/organization-model/__tests__/get-resources-for-system.test.ts +144 -0
  45. package/src/organization-model/__tests__/graph.test.ts +899 -71
  46. package/src/organization-model/__tests__/knowledge.test.ts +173 -52
  47. package/src/organization-model/__tests__/lookup-helpers.test.ts +438 -0
  48. package/src/organization-model/__tests__/migration-helpers.test.ts +591 -0
  49. package/src/organization-model/__tests__/prospecting-ssot.test.ts +36 -27
  50. package/src/organization-model/__tests__/recursive-system-schema.test.ts +520 -0
  51. package/src/organization-model/__tests__/resolve.test.ts +174 -23
  52. package/src/organization-model/__tests__/schema.test.ts +291 -114
  53. package/src/organization-model/__tests__/surface-projection.test.ts +207 -97
  54. package/src/organization-model/catalogs/lead-gen.ts +144 -0
  55. package/src/organization-model/content-kinds/config.ts +36 -0
  56. package/src/organization-model/content-kinds/index.ts +74 -0
  57. package/src/organization-model/content-kinds/pipeline.ts +68 -0
  58. package/src/organization-model/content-kinds/registry.ts +44 -0
  59. package/src/organization-model/content-kinds/status.ts +71 -0
  60. package/src/organization-model/content-kinds/template.ts +83 -0
  61. package/src/organization-model/content-kinds/types.ts +117 -0
  62. package/src/organization-model/contracts.ts +13 -3
  63. package/src/organization-model/defaults.ts +488 -96
  64. package/src/organization-model/domains/actions.ts +239 -0
  65. package/src/organization-model/domains/customers.ts +78 -75
  66. package/src/organization-model/domains/entities.ts +144 -0
  67. package/src/organization-model/domains/goals.ts +83 -80
  68. package/src/organization-model/domains/knowledge.ts +74 -16
  69. package/src/organization-model/domains/navigation.ts +107 -384
  70. package/src/organization-model/domains/offerings.ts +71 -66
  71. package/src/organization-model/domains/policies.ts +102 -0
  72. package/src/organization-model/domains/projects.ts +14 -48
  73. package/src/organization-model/domains/prospecting.ts +62 -181
  74. package/src/organization-model/domains/resources.ts +81 -24
  75. package/src/organization-model/domains/roles.ts +13 -10
  76. package/src/organization-model/domains/sales.ts +10 -219
  77. package/src/organization-model/domains/shared.ts +57 -57
  78. package/src/organization-model/domains/statuses.ts +339 -130
  79. package/src/organization-model/domains/systems.ts +186 -29
  80. package/src/organization-model/foundation.ts +54 -67
  81. package/src/organization-model/graph/build.ts +682 -54
  82. package/src/organization-model/graph/link.ts +1 -1
  83. package/src/organization-model/graph/schema.ts +24 -9
  84. package/src/organization-model/graph/types.ts +20 -7
  85. package/src/organization-model/helpers.ts +231 -26
  86. package/src/organization-model/index.ts +116 -5
  87. package/src/organization-model/migration-helpers.ts +249 -0
  88. package/src/organization-model/organization-graph.mdx +16 -15
  89. package/src/organization-model/organization-model.mdx +89 -41
  90. package/src/organization-model/published.ts +120 -18
  91. package/src/organization-model/resolve.ts +117 -54
  92. package/src/organization-model/schema.ts +561 -140
  93. package/src/organization-model/surface-projection.ts +116 -122
  94. package/src/organization-model/types.ts +102 -21
  95. package/src/platform/constants/versions.ts +1 -1
  96. package/src/platform/registry/__tests__/command-view.test.ts +6 -8
  97. package/src/platform/registry/__tests__/resource-link.test.ts +13 -8
  98. package/src/platform/registry/__tests__/resource-registry.integration.test.ts +16 -31
  99. package/src/platform/registry/__tests__/resource-registry.nested-systems.test.ts +245 -0
  100. package/src/platform/registry/__tests__/resource-registry.test.ts +9 -7
  101. package/src/platform/registry/__tests__/validation.test.ts +15 -11
  102. package/src/platform/registry/resource-registry.ts +20 -8
  103. package/src/platform/registry/serialization.ts +7 -7
  104. package/src/platform/registry/types.ts +3 -3
  105. package/src/platform/registry/validation.ts +17 -15
  106. package/src/reference/_generated/contracts.md +362 -99
  107. package/src/reference/glossary.md +18 -18
  108. package/src/supabase/database.types.ts +60 -0
  109. package/src/test-utils/test-utils.test.ts +1 -6
  110. package/src/organization-model/__tests__/domains/operations.test.ts +0 -203
  111. package/src/organization-model/domains/features.ts +0 -31
  112. package/src/organization-model/domains/operations.ts +0 -85
@@ -1,5 +1,61 @@
1
1
  import { z } from 'zod';
2
2
 
3
+ /**
4
+ * Placeholder discriminated union for ContentNode (Wave 1A).
5
+ * Wave 2A wires concrete (kind, type) pairs via the registry.
6
+ *
7
+ * Per D2: unregistered (kind, type) pairs are allowed and pass through validation.
8
+ * Per L14: every node carries BOTH `kind` and `type`.
9
+ */
10
+ declare const ContentNodeSchema: z.ZodObject<{
11
+ label: z.ZodString;
12
+ description: z.ZodOptional<z.ZodString>;
13
+ order: z.ZodOptional<z.ZodNumber>;
14
+ parentContentId: z.ZodOptional<z.ZodString>;
15
+ kind: z.ZodString;
16
+ type: z.ZodString;
17
+ data: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
18
+ }, z.core.$strip>;
19
+ type ContentNode = z.infer<typeof ContentNodeSchema>;
20
+
21
+ /** Explicit interface needed to annotate the recursive SystemEntrySchema. */
22
+ interface SystemEntry {
23
+ id: string;
24
+ label?: string;
25
+ title?: string;
26
+ description?: string;
27
+ kind?: 'product' | 'operational' | 'platform' | 'diagnostic';
28
+ parentSystemId?: string;
29
+ ui?: {
30
+ path: string;
31
+ surfaces: string[];
32
+ icon?: string;
33
+ order?: number;
34
+ };
35
+ lifecycle?: 'draft' | 'beta' | 'active' | 'deprecated' | 'archived';
36
+ responsibleRoleId?: string;
37
+ governedByKnowledge?: string[];
38
+ actions?: {
39
+ actionId: string;
40
+ intent: 'exposes' | 'consumes';
41
+ invocation?: unknown;
42
+ }[];
43
+ policies?: string[];
44
+ drivesGoals?: string[];
45
+ /** @deprecated Use lifecycle. Accepted for one publish cycle. */
46
+ status?: 'active' | 'deprecated' | 'archived';
47
+ path?: string;
48
+ icon?: string;
49
+ color?: string;
50
+ uiPosition?: 'sidebar-primary' | 'sidebar-bottom';
51
+ enabled?: boolean;
52
+ devOnly?: boolean;
53
+ requiresAdmin?: boolean;
54
+ order: number;
55
+ content?: Record<string, ContentNode>;
56
+ subsystems?: Record<string, SystemEntry>;
57
+ }
58
+
3
59
  /**
4
60
  * Command View Types
5
61
  *
@@ -19,6 +75,41 @@ import { z } from 'zod';
19
75
  */
20
76
  type RelationshipType = 'triggers' | 'uses' | 'approval';
21
77
 
78
+ declare const SurfaceTypeSchema: z.ZodEnum<{
79
+ list: "list";
80
+ graph: "graph";
81
+ page: "page";
82
+ dashboard: "dashboard";
83
+ detail: "detail";
84
+ settings: "settings";
85
+ }>;
86
+ interface SidebarSurfaceNode {
87
+ type: 'surface';
88
+ label: string;
89
+ path: string;
90
+ surfaceType: z.infer<typeof SurfaceTypeSchema>;
91
+ description?: string;
92
+ icon?: string;
93
+ order?: number;
94
+ targets?: {
95
+ systems?: string[];
96
+ entities?: string[];
97
+ resources?: string[];
98
+ actions?: string[];
99
+ };
100
+ devOnly?: boolean;
101
+ requiresAdmin?: boolean;
102
+ }
103
+ interface SidebarGroupNode {
104
+ type: 'group';
105
+ label: string;
106
+ description?: string;
107
+ icon?: string;
108
+ order?: number;
109
+ children: Record<string, SidebarNode>;
110
+ }
111
+ type SidebarNode = SidebarSurfaceNode | SidebarGroupNode;
112
+
22
113
  declare const OrgKnowledgeKindSchema: z.ZodEnum<{
23
114
  playbook: "playbook";
24
115
  strategy: "strategy";
@@ -100,12 +191,40 @@ declare const OrgKnowledgeNodeSchema: z.ZodObject<{
100
191
  "action.submit": "action.submit";
101
192
  "action.email": "action.email";
102
193
  }>, z.ZodString]>>;
194
+ externalUrl: z.ZodOptional<z.ZodString>;
103
195
  body: z.ZodString;
104
- links: z.ZodDefault<z.ZodArray<z.ZodObject<{
196
+ links: z.ZodDefault<z.ZodArray<z.ZodPipe<z.ZodUnion<readonly [z.ZodObject<{
197
+ target: z.ZodObject<{
198
+ kind: z.ZodEnum<{
199
+ system: "system";
200
+ action: "action";
201
+ knowledge: "knowledge";
202
+ role: "role";
203
+ goal: "goal";
204
+ stage: "stage";
205
+ resource: "resource";
206
+ "customer-segment": "customer-segment";
207
+ offering: "offering";
208
+ "content-node": "content-node";
209
+ }>;
210
+ id: z.ZodString;
211
+ }, z.core.$strip>;
212
+ }, z.core.$strip>, z.ZodObject<{
105
213
  nodeId: z.ZodString;
106
- }, z.core.$strip>>>;
107
- skills: z.ZodOptional<z.ZodArray<z.ZodString>>;
108
- domain: z.ZodOptional<z.ZodString>;
214
+ }, z.core.$strip>]>, z.ZodTransform<{
215
+ target: {
216
+ kind: "system" | "action" | "knowledge" | "role" | "goal" | "stage" | "resource" | "customer-segment" | "offering" | "content-node";
217
+ id: string;
218
+ };
219
+ nodeId: string;
220
+ }, {
221
+ nodeId: string;
222
+ } | {
223
+ target: {
224
+ kind: "system" | "action" | "knowledge" | "role" | "goal" | "stage" | "resource" | "customer-segment" | "offering" | "content-node";
225
+ id: string;
226
+ };
227
+ }>>>>;
109
228
  ownerIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
110
229
  updatedAt: z.ZodString;
111
230
  }, z.core.$strip>;
@@ -183,12 +302,527 @@ type OrganizationModelIconToken = z.infer<typeof OrganizationModelIconTokenSchem
183
302
 
184
303
  declare const OrganizationModelSchema: z.ZodObject<{
185
304
  version: z.ZodDefault<z.ZodLiteral<1>>;
186
- features: z.ZodDefault<z.ZodArray<z.ZodObject<{
305
+ domainMetadata: z.ZodPipe<z.ZodDefault<z.ZodObject<{
306
+ branding: z.ZodOptional<z.ZodObject<{
307
+ version: z.ZodDefault<z.ZodLiteral<1>>;
308
+ lastModified: z.ZodString;
309
+ }, z.core.$strip>>;
310
+ identity: z.ZodOptional<z.ZodObject<{
311
+ version: z.ZodDefault<z.ZodLiteral<1>>;
312
+ lastModified: z.ZodString;
313
+ }, z.core.$strip>>;
314
+ customers: z.ZodOptional<z.ZodObject<{
315
+ version: z.ZodDefault<z.ZodLiteral<1>>;
316
+ lastModified: z.ZodString;
317
+ }, z.core.$strip>>;
318
+ offerings: z.ZodOptional<z.ZodObject<{
319
+ version: z.ZodDefault<z.ZodLiteral<1>>;
320
+ lastModified: z.ZodString;
321
+ }, z.core.$strip>>;
322
+ roles: z.ZodOptional<z.ZodObject<{
323
+ version: z.ZodDefault<z.ZodLiteral<1>>;
324
+ lastModified: z.ZodString;
325
+ }, z.core.$strip>>;
326
+ goals: z.ZodOptional<z.ZodObject<{
327
+ version: z.ZodDefault<z.ZodLiteral<1>>;
328
+ lastModified: z.ZodString;
329
+ }, z.core.$strip>>;
330
+ systems: z.ZodOptional<z.ZodObject<{
331
+ version: z.ZodDefault<z.ZodLiteral<1>>;
332
+ lastModified: z.ZodString;
333
+ }, z.core.$strip>>;
334
+ resources: z.ZodOptional<z.ZodObject<{
335
+ version: z.ZodDefault<z.ZodLiteral<1>>;
336
+ lastModified: z.ZodString;
337
+ }, z.core.$strip>>;
338
+ actions: z.ZodOptional<z.ZodObject<{
339
+ version: z.ZodDefault<z.ZodLiteral<1>>;
340
+ lastModified: z.ZodString;
341
+ }, z.core.$strip>>;
342
+ entities: z.ZodOptional<z.ZodObject<{
343
+ version: z.ZodDefault<z.ZodLiteral<1>>;
344
+ lastModified: z.ZodString;
345
+ }, z.core.$strip>>;
346
+ policies: z.ZodOptional<z.ZodObject<{
347
+ version: z.ZodDefault<z.ZodLiteral<1>>;
348
+ lastModified: z.ZodString;
349
+ }, z.core.$strip>>;
350
+ knowledge: z.ZodOptional<z.ZodObject<{
351
+ version: z.ZodDefault<z.ZodLiteral<1>>;
352
+ lastModified: z.ZodString;
353
+ }, z.core.$strip>>;
354
+ }, z.core.$strip>>, z.ZodTransform<{
355
+ branding: {
356
+ version: 1;
357
+ lastModified: string;
358
+ };
359
+ identity: {
360
+ version: 1;
361
+ lastModified: string;
362
+ };
363
+ customers: {
364
+ version: 1;
365
+ lastModified: string;
366
+ };
367
+ offerings: {
368
+ version: 1;
369
+ lastModified: string;
370
+ };
371
+ roles: {
372
+ version: 1;
373
+ lastModified: string;
374
+ };
375
+ goals: {
376
+ version: 1;
377
+ lastModified: string;
378
+ };
379
+ systems: {
380
+ version: 1;
381
+ lastModified: string;
382
+ };
383
+ resources: {
384
+ version: 1;
385
+ lastModified: string;
386
+ };
387
+ actions: {
388
+ version: 1;
389
+ lastModified: string;
390
+ };
391
+ entities: {
392
+ version: 1;
393
+ lastModified: string;
394
+ };
395
+ policies: {
396
+ version: 1;
397
+ lastModified: string;
398
+ };
399
+ knowledge: {
400
+ version: 1;
401
+ lastModified: string;
402
+ };
403
+ }, {
404
+ branding?: {
405
+ version: 1;
406
+ lastModified: string;
407
+ } | undefined;
408
+ identity?: {
409
+ version: 1;
410
+ lastModified: string;
411
+ } | undefined;
412
+ customers?: {
413
+ version: 1;
414
+ lastModified: string;
415
+ } | undefined;
416
+ offerings?: {
417
+ version: 1;
418
+ lastModified: string;
419
+ } | undefined;
420
+ roles?: {
421
+ version: 1;
422
+ lastModified: string;
423
+ } | undefined;
424
+ goals?: {
425
+ version: 1;
426
+ lastModified: string;
427
+ } | undefined;
428
+ systems?: {
429
+ version: 1;
430
+ lastModified: string;
431
+ } | undefined;
432
+ resources?: {
433
+ version: 1;
434
+ lastModified: string;
435
+ } | undefined;
436
+ actions?: {
437
+ version: 1;
438
+ lastModified: string;
439
+ } | undefined;
440
+ entities?: {
441
+ version: 1;
442
+ lastModified: string;
443
+ } | undefined;
444
+ policies?: {
445
+ version: 1;
446
+ lastModified: string;
447
+ } | undefined;
448
+ knowledge?: {
449
+ version: 1;
450
+ lastModified: string;
451
+ } | undefined;
452
+ }>>;
453
+ branding: z.ZodObject<{
454
+ organizationName: z.ZodString;
455
+ productName: z.ZodString;
456
+ shortName: z.ZodString;
457
+ description: z.ZodOptional<z.ZodString>;
458
+ logos: z.ZodDefault<z.ZodObject<{
459
+ light: z.ZodOptional<z.ZodString>;
460
+ dark: z.ZodOptional<z.ZodString>;
461
+ }, z.core.$strip>>;
462
+ }, z.core.$strip>;
463
+ navigation: z.ZodDefault<z.ZodObject<{
464
+ sidebar: z.ZodDefault<z.ZodObject<{
465
+ primary: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodType<SidebarNode, unknown, z.core.$ZodTypeInternals<SidebarNode, unknown>>>>;
466
+ bottom: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodType<SidebarNode, unknown, z.core.$ZodTypeInternals<SidebarNode, unknown>>>>;
467
+ }, z.core.$strip>>;
468
+ }, z.core.$strip>>;
469
+ identity: z.ZodDefault<z.ZodObject<{
470
+ mission: z.ZodDefault<z.ZodString>;
471
+ vision: z.ZodDefault<z.ZodString>;
472
+ legalName: z.ZodDefault<z.ZodString>;
473
+ entityType: z.ZodDefault<z.ZodString>;
474
+ jurisdiction: z.ZodDefault<z.ZodString>;
475
+ industryCategory: z.ZodDefault<z.ZodString>;
476
+ geographicFocus: z.ZodDefault<z.ZodString>;
477
+ timeZone: z.ZodDefault<z.ZodString>;
478
+ businessHours: z.ZodDefault<z.ZodObject<{
479
+ monday: z.ZodOptional<z.ZodObject<{
480
+ open: z.ZodString;
481
+ close: z.ZodString;
482
+ }, z.core.$strip>>;
483
+ tuesday: z.ZodOptional<z.ZodObject<{
484
+ open: z.ZodString;
485
+ close: z.ZodString;
486
+ }, z.core.$strip>>;
487
+ wednesday: z.ZodOptional<z.ZodObject<{
488
+ open: z.ZodString;
489
+ close: z.ZodString;
490
+ }, z.core.$strip>>;
491
+ thursday: z.ZodOptional<z.ZodObject<{
492
+ open: z.ZodString;
493
+ close: z.ZodString;
494
+ }, z.core.$strip>>;
495
+ friday: z.ZodOptional<z.ZodObject<{
496
+ open: z.ZodString;
497
+ close: z.ZodString;
498
+ }, z.core.$strip>>;
499
+ saturday: z.ZodOptional<z.ZodObject<{
500
+ open: z.ZodString;
501
+ close: z.ZodString;
502
+ }, z.core.$strip>>;
503
+ sunday: z.ZodOptional<z.ZodObject<{
504
+ open: z.ZodString;
505
+ close: z.ZodString;
506
+ }, z.core.$strip>>;
507
+ }, z.core.$strip>>;
508
+ clientBrief: z.ZodDefault<z.ZodString>;
509
+ }, z.core.$strip>>;
510
+ customers: z.ZodDefault<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
511
+ id: z.ZodString;
512
+ order: z.ZodNumber;
513
+ name: z.ZodDefault<z.ZodString>;
514
+ description: z.ZodDefault<z.ZodString>;
515
+ jobsToBeDone: z.ZodDefault<z.ZodString>;
516
+ pains: z.ZodDefault<z.ZodArray<z.ZodString>>;
517
+ gains: z.ZodDefault<z.ZodArray<z.ZodString>>;
518
+ firmographics: z.ZodDefault<z.ZodObject<{
519
+ industry: z.ZodOptional<z.ZodString>;
520
+ companySize: z.ZodOptional<z.ZodString>;
521
+ region: z.ZodOptional<z.ZodString>;
522
+ }, z.core.$strip>>;
523
+ valueProp: z.ZodDefault<z.ZodString>;
524
+ }, z.core.$strip>>>>;
525
+ offerings: z.ZodDefault<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
526
+ id: z.ZodString;
527
+ order: z.ZodNumber;
528
+ name: z.ZodDefault<z.ZodString>;
529
+ description: z.ZodDefault<z.ZodString>;
530
+ pricingModel: z.ZodDefault<z.ZodEnum<{
531
+ custom: "custom";
532
+ "one-time": "one-time";
533
+ subscription: "subscription";
534
+ "usage-based": "usage-based";
535
+ }>>;
536
+ price: z.ZodDefault<z.ZodNumber>;
537
+ currency: z.ZodDefault<z.ZodString>;
538
+ targetSegmentIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
539
+ deliveryFeatureId: z.ZodOptional<z.ZodString>;
540
+ }, z.core.$strip>>>>;
541
+ roles: z.ZodDefault<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
187
542
  id: z.ZodString;
543
+ order: z.ZodNumber;
544
+ title: z.ZodString;
545
+ responsibilities: z.ZodDefault<z.ZodArray<z.ZodString>>;
546
+ reportsToId: z.ZodOptional<z.ZodString>;
547
+ heldBy: z.ZodOptional<z.ZodUnion<readonly [z.ZodDiscriminatedUnion<[z.ZodObject<{
548
+ kind: z.ZodLiteral<"human">;
549
+ userId: z.ZodString;
550
+ }, z.core.$strip>, z.ZodObject<{
551
+ kind: z.ZodLiteral<"agent">;
552
+ agentId: z.ZodString;
553
+ }, z.core.$strip>, z.ZodObject<{
554
+ kind: z.ZodLiteral<"team">;
555
+ memberIds: z.ZodArray<z.ZodString>;
556
+ }, z.core.$strip>], "kind">, z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
557
+ kind: z.ZodLiteral<"human">;
558
+ userId: z.ZodString;
559
+ }, z.core.$strip>, z.ZodObject<{
560
+ kind: z.ZodLiteral<"agent">;
561
+ agentId: z.ZodString;
562
+ }, z.core.$strip>, z.ZodObject<{
563
+ kind: z.ZodLiteral<"team">;
564
+ memberIds: z.ZodArray<z.ZodString>;
565
+ }, z.core.$strip>], "kind">>]>>;
566
+ responsibleFor: z.ZodOptional<z.ZodArray<z.ZodString>>;
567
+ }, z.core.$strip>>>>;
568
+ goals: z.ZodDefault<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
569
+ id: z.ZodString;
570
+ order: z.ZodNumber;
571
+ description: z.ZodString;
572
+ periodStart: z.ZodString;
573
+ periodEnd: z.ZodString;
574
+ keyResults: z.ZodDefault<z.ZodArray<z.ZodObject<{
575
+ id: z.ZodString;
576
+ description: z.ZodString;
577
+ targetMetric: z.ZodString;
578
+ currentValue: z.ZodDefault<z.ZodNumber>;
579
+ targetValue: z.ZodOptional<z.ZodNumber>;
580
+ }, z.core.$strip>>>;
581
+ }, z.core.$strip>>>>;
582
+ systems: z.ZodDefault<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodType<SystemEntry, unknown, z.core.$ZodTypeInternals<SystemEntry, unknown>>>>>;
583
+ resources: z.ZodDefault<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
584
+ id: z.ZodString;
585
+ order: z.ZodDefault<z.ZodNumber>;
586
+ systemPath: z.ZodString;
587
+ ownerRoleId: z.ZodOptional<z.ZodString>;
588
+ status: z.ZodEnum<{
589
+ deprecated: "deprecated";
590
+ active: "active";
591
+ archived: "archived";
592
+ }>;
593
+ kind: z.ZodLiteral<"workflow">;
594
+ actionKey: z.ZodOptional<z.ZodString>;
595
+ emits: z.ZodOptional<z.ZodArray<z.ZodObject<{
596
+ eventKey: z.ZodString;
597
+ label: z.ZodString;
598
+ payloadSchema: z.ZodOptional<z.ZodString>;
599
+ lifecycle: z.ZodOptional<z.ZodEnum<{
600
+ deprecated: "deprecated";
601
+ draft: "draft";
602
+ beta: "beta";
603
+ active: "active";
604
+ archived: "archived";
605
+ }>>;
606
+ }, z.core.$strip>>>;
607
+ }, z.core.$strip>, z.ZodObject<{
608
+ id: z.ZodString;
609
+ order: z.ZodDefault<z.ZodNumber>;
610
+ systemPath: z.ZodString;
611
+ ownerRoleId: z.ZodOptional<z.ZodString>;
612
+ status: z.ZodEnum<{
613
+ deprecated: "deprecated";
614
+ active: "active";
615
+ archived: "archived";
616
+ }>;
617
+ kind: z.ZodLiteral<"agent">;
618
+ agentKind: z.ZodEnum<{
619
+ platform: "platform";
620
+ orchestrator: "orchestrator";
621
+ specialist: "specialist";
622
+ utility: "utility";
623
+ }>;
624
+ actsAsRoleId: z.ZodOptional<z.ZodString>;
625
+ sessionCapable: z.ZodBoolean;
626
+ invocations: z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
627
+ kind: z.ZodLiteral<"slash-command">;
628
+ command: z.ZodString;
629
+ toolFactory: z.ZodOptional<z.ZodString>;
630
+ }, z.core.$strip>, z.ZodObject<{
631
+ kind: z.ZodLiteral<"mcp-tool">;
632
+ server: z.ZodString;
633
+ name: z.ZodString;
634
+ }, z.core.$strip>, z.ZodObject<{
635
+ kind: z.ZodLiteral<"api-endpoint">;
636
+ method: z.ZodEnum<{
637
+ GET: "GET";
638
+ POST: "POST";
639
+ PATCH: "PATCH";
640
+ DELETE: "DELETE";
641
+ }>;
642
+ path: z.ZodString;
643
+ requestSchema: z.ZodOptional<z.ZodString>;
644
+ responseSchema: z.ZodOptional<z.ZodString>;
645
+ }, z.core.$strip>, z.ZodObject<{
646
+ kind: z.ZodLiteral<"script-execution">;
647
+ resourceId: z.ZodString;
648
+ }, z.core.$strip>], "kind">>>;
649
+ emits: z.ZodOptional<z.ZodArray<z.ZodObject<{
650
+ eventKey: z.ZodString;
651
+ label: z.ZodString;
652
+ payloadSchema: z.ZodOptional<z.ZodString>;
653
+ lifecycle: z.ZodOptional<z.ZodEnum<{
654
+ deprecated: "deprecated";
655
+ draft: "draft";
656
+ beta: "beta";
657
+ active: "active";
658
+ archived: "archived";
659
+ }>>;
660
+ }, z.core.$strip>>>;
661
+ }, z.core.$strip>, z.ZodObject<{
662
+ id: z.ZodString;
663
+ order: z.ZodDefault<z.ZodNumber>;
664
+ systemPath: z.ZodString;
665
+ ownerRoleId: z.ZodOptional<z.ZodString>;
666
+ status: z.ZodEnum<{
667
+ deprecated: "deprecated";
668
+ active: "active";
669
+ archived: "archived";
670
+ }>;
671
+ kind: z.ZodLiteral<"integration">;
672
+ provider: z.ZodString;
673
+ }, z.core.$strip>, z.ZodObject<{
674
+ id: z.ZodString;
675
+ order: z.ZodDefault<z.ZodNumber>;
676
+ systemPath: z.ZodString;
677
+ ownerRoleId: z.ZodOptional<z.ZodString>;
678
+ status: z.ZodEnum<{
679
+ deprecated: "deprecated";
680
+ active: "active";
681
+ archived: "archived";
682
+ }>;
683
+ kind: z.ZodLiteral<"script">;
684
+ language: z.ZodEnum<{
685
+ shell: "shell";
686
+ sql: "sql";
687
+ typescript: "typescript";
688
+ python: "python";
689
+ }>;
690
+ source: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
691
+ file: z.ZodString;
692
+ }, z.core.$strip>]>;
693
+ }, z.core.$strip>], "kind">>>>;
694
+ actions: z.ZodDefault<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
695
+ id: z.ZodString;
696
+ order: z.ZodNumber;
697
+ label: z.ZodString;
698
+ description: z.ZodOptional<z.ZodString>;
699
+ scope: z.ZodDefault<z.ZodUnion<readonly [z.ZodLiteral<"global">, z.ZodObject<{
700
+ domain: z.ZodString;
701
+ }, z.core.$strip>]>>;
702
+ resourceId: z.ZodOptional<z.ZodString>;
703
+ affects: z.ZodOptional<z.ZodArray<z.ZodString>>;
704
+ invocations: z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
705
+ kind: z.ZodLiteral<"slash-command">;
706
+ command: z.ZodString;
707
+ toolFactory: z.ZodOptional<z.ZodString>;
708
+ }, z.core.$strip>, z.ZodObject<{
709
+ kind: z.ZodLiteral<"mcp-tool">;
710
+ server: z.ZodString;
711
+ name: z.ZodString;
712
+ }, z.core.$strip>, z.ZodObject<{
713
+ kind: z.ZodLiteral<"api-endpoint">;
714
+ method: z.ZodEnum<{
715
+ GET: "GET";
716
+ POST: "POST";
717
+ PATCH: "PATCH";
718
+ DELETE: "DELETE";
719
+ }>;
720
+ path: z.ZodString;
721
+ requestSchema: z.ZodOptional<z.ZodString>;
722
+ responseSchema: z.ZodOptional<z.ZodString>;
723
+ }, z.core.$strip>, z.ZodObject<{
724
+ kind: z.ZodLiteral<"script-execution">;
725
+ resourceId: z.ZodString;
726
+ }, z.core.$strip>], "kind">>>;
727
+ knowledge: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString>>>;
728
+ lifecycle: z.ZodDefault<z.ZodEnum<{
729
+ deprecated: "deprecated";
730
+ draft: "draft";
731
+ beta: "beta";
732
+ active: "active";
733
+ archived: "archived";
734
+ }>>;
735
+ }, z.core.$strip>>>>;
736
+ entities: z.ZodDefault<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
737
+ id: z.ZodString;
738
+ order: z.ZodNumber;
739
+ label: z.ZodString;
740
+ description: z.ZodOptional<z.ZodString>;
741
+ ownedBySystemId: z.ZodString;
742
+ table: z.ZodOptional<z.ZodString>;
743
+ rowSchema: z.ZodOptional<z.ZodString>;
744
+ stateCatalogId: z.ZodOptional<z.ZodString>;
745
+ links: z.ZodOptional<z.ZodArray<z.ZodObject<{
746
+ toEntity: z.ZodString;
747
+ kind: z.ZodEnum<{
748
+ "belongs-to": "belongs-to";
749
+ "has-many": "has-many";
750
+ "has-one": "has-one";
751
+ "many-to-many": "many-to-many";
752
+ }>;
753
+ via: z.ZodOptional<z.ZodString>;
754
+ label: z.ZodOptional<z.ZodString>;
755
+ }, z.core.$strip>>>;
756
+ }, z.core.$strip>>>>;
757
+ policies: z.ZodDefault<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
758
+ id: z.ZodString;
759
+ order: z.ZodNumber;
188
760
  label: z.ZodString;
189
761
  description: z.ZodOptional<z.ZodString>;
190
- enabled: z.ZodDefault<z.ZodBoolean>;
191
- path: z.ZodOptional<z.ZodString>;
762
+ trigger: z.ZodDiscriminatedUnion<[z.ZodObject<{
763
+ kind: z.ZodLiteral<"event">;
764
+ eventId: z.ZodString;
765
+ }, z.core.$strip>, z.ZodObject<{
766
+ kind: z.ZodLiteral<"action-invocation">;
767
+ actionId: z.ZodString;
768
+ }, z.core.$strip>, z.ZodObject<{
769
+ kind: z.ZodLiteral<"schedule">;
770
+ cron: z.ZodString;
771
+ }, z.core.$strip>, z.ZodObject<{
772
+ kind: z.ZodLiteral<"manual">;
773
+ }, z.core.$strip>], "kind">;
774
+ predicate: z.ZodDefault<z.ZodDiscriminatedUnion<[z.ZodObject<{
775
+ kind: z.ZodLiteral<"always">;
776
+ }, z.core.$strip>, z.ZodObject<{
777
+ kind: z.ZodLiteral<"expression">;
778
+ expression: z.ZodString;
779
+ }, z.core.$strip>, z.ZodObject<{
780
+ kind: z.ZodLiteral<"threshold">;
781
+ metric: z.ZodString;
782
+ operator: z.ZodEnum<{
783
+ lt: "lt";
784
+ lte: "lte";
785
+ eq: "eq";
786
+ gte: "gte";
787
+ gt: "gt";
788
+ }>;
789
+ value: z.ZodNumber;
790
+ }, z.core.$strip>], "kind">>;
791
+ actions: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
792
+ kind: z.ZodLiteral<"require-approval">;
793
+ roleId: z.ZodOptional<z.ZodString>;
794
+ }, z.core.$strip>, z.ZodObject<{
795
+ kind: z.ZodLiteral<"invoke-action">;
796
+ actionId: z.ZodString;
797
+ }, z.core.$strip>, z.ZodObject<{
798
+ kind: z.ZodLiteral<"notify-role">;
799
+ roleId: z.ZodString;
800
+ }, z.core.$strip>, z.ZodObject<{
801
+ kind: z.ZodLiteral<"block">;
802
+ }, z.core.$strip>], "kind">>;
803
+ appliesTo: z.ZodDefault<z.ZodObject<{
804
+ systemIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
805
+ actionIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
806
+ resourceIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
807
+ roleIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
808
+ }, z.core.$strip>>;
809
+ lifecycle: z.ZodDefault<z.ZodEnum<{
810
+ deprecated: "deprecated";
811
+ draft: "draft";
812
+ beta: "beta";
813
+ active: "active";
814
+ archived: "archived";
815
+ }>>;
816
+ }, z.core.$strip>>>>;
817
+ knowledge: z.ZodDefault<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
818
+ id: z.ZodString;
819
+ kind: z.ZodEnum<{
820
+ playbook: "playbook";
821
+ strategy: "strategy";
822
+ reference: "reference";
823
+ }>;
824
+ title: z.ZodString;
825
+ summary: z.ZodString;
192
826
  icon: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
193
827
  "nav.dashboard": "nav.dashboard";
194
828
  "nav.calendar": "nav.calendar";
@@ -256,1118 +890,51 @@ declare const OrganizationModelSchema: z.ZodObject<{
256
890
  "action.submit": "action.submit";
257
891
  "action.email": "action.email";
258
892
  }>, z.ZodString]>>;
259
- color: z.ZodOptional<z.ZodString>;
260
- uiPosition: z.ZodOptional<z.ZodEnum<{
261
- "sidebar-primary": "sidebar-primary";
262
- "sidebar-bottom": "sidebar-bottom";
263
- }>>;
264
- requiresAdmin: z.ZodOptional<z.ZodBoolean>;
265
- devOnly: z.ZodOptional<z.ZodBoolean>;
266
- }, z.core.$strip>>>;
267
- branding: z.ZodObject<{
268
- organizationName: z.ZodString;
269
- productName: z.ZodString;
270
- shortName: z.ZodString;
271
- description: z.ZodOptional<z.ZodString>;
272
- logos: z.ZodDefault<z.ZodObject<{
273
- light: z.ZodOptional<z.ZodString>;
274
- dark: z.ZodOptional<z.ZodString>;
275
- }, z.core.$strip>>;
276
- }, z.core.$strip>;
277
- navigation: z.ZodDefault<z.ZodObject<{
278
- defaultSurfaceId: z.ZodOptional<z.ZodString>;
279
- surfaces: z.ZodDefault<z.ZodArray<z.ZodObject<{
280
- id: z.ZodString;
281
- label: z.ZodString;
282
- path: z.ZodString;
283
- surfaceType: z.ZodEnum<{
284
- settings: "settings";
285
- page: "page";
286
- dashboard: "dashboard";
287
- graph: "graph";
288
- detail: "detail";
289
- list: "list";
290
- }>;
291
- description: z.ZodOptional<z.ZodString>;
292
- enabled: z.ZodDefault<z.ZodBoolean>;
293
- devOnly: z.ZodOptional<z.ZodBoolean>;
294
- icon: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
295
- "nav.dashboard": "nav.dashboard";
296
- "nav.calendar": "nav.calendar";
297
- "nav.sales": "nav.sales";
298
- "nav.crm": "nav.crm";
299
- "nav.lead-gen": "nav.lead-gen";
300
- "nav.projects": "nav.projects";
301
- "nav.operations": "nav.operations";
302
- "nav.monitoring": "nav.monitoring";
303
- "nav.knowledge": "nav.knowledge";
304
- "nav.settings": "nav.settings";
305
- "nav.admin": "nav.admin";
306
- "nav.archive": "nav.archive";
307
- "knowledge.playbook": "knowledge.playbook";
308
- "knowledge.strategy": "knowledge.strategy";
309
- "knowledge.reference": "knowledge.reference";
310
- "feature.dashboard": "feature.dashboard";
311
- "feature.calendar": "feature.calendar";
312
- "feature.business": "feature.business";
313
- "feature.sales": "feature.sales";
314
- "feature.crm": "feature.crm";
315
- "feature.finance": "feature.finance";
316
- "feature.lead-gen": "feature.lead-gen";
317
- "feature.platform": "feature.platform";
318
- "feature.projects": "feature.projects";
319
- "feature.operations": "feature.operations";
320
- "feature.knowledge": "feature.knowledge";
321
- "feature.monitoring": "feature.monitoring";
322
- "feature.settings": "feature.settings";
323
- "feature.admin": "feature.admin";
324
- "feature.archive": "feature.archive";
325
- "feature.seo": "feature.seo";
326
- "resource.agent": "resource.agent";
327
- "resource.workflow": "resource.workflow";
328
- "resource.integration": "resource.integration";
329
- "resource.database": "resource.database";
330
- "resource.user": "resource.user";
331
- "resource.team": "resource.team";
332
- "integration.gmail": "integration.gmail";
333
- "integration.google-sheets": "integration.google-sheets";
334
- "integration.attio": "integration.attio";
335
- "surface.dashboard": "surface.dashboard";
336
- "surface.calendar": "surface.calendar";
337
- "surface.overview": "surface.overview";
338
- "surface.command-view": "surface.command-view";
339
- "surface.command-queue": "surface.command-queue";
340
- "surface.pipeline": "surface.pipeline";
341
- "surface.lists": "surface.lists";
342
- "surface.resources": "surface.resources";
343
- "surface.settings": "surface.settings";
344
- "status.success": "status.success";
345
- "status.error": "status.error";
346
- "status.warning": "status.warning";
347
- "status.info": "status.info";
348
- "status.pending": "status.pending";
349
- "action.approve": "action.approve";
350
- "action.reject": "action.reject";
351
- "action.retry": "action.retry";
352
- "action.edit": "action.edit";
353
- "action.view": "action.view";
354
- "action.launch": "action.launch";
355
- "action.message": "action.message";
356
- "action.escalate": "action.escalate";
357
- "action.promote": "action.promote";
358
- "action.submit": "action.submit";
359
- "action.email": "action.email";
360
- }>, z.ZodString]>>;
361
- featureId: z.ZodOptional<z.ZodString>;
362
- featureIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
363
- entityIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
364
- resourceIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
365
- capabilityIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
366
- parentId: z.ZodOptional<z.ZodString>;
367
- }, z.core.$strip>>>;
368
- groups: z.ZodDefault<z.ZodArray<z.ZodObject<{
369
- id: z.ZodString;
370
- label: z.ZodString;
371
- placement: z.ZodString;
372
- surfaceIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
373
- }, z.core.$strip>>>;
374
- }, z.core.$strip>>;
375
- sales: z.ZodObject<{
376
- entityId: z.ZodString;
377
- defaultPipelineId: z.ZodString;
378
- pipelines: z.ZodArray<z.ZodObject<{
379
- id: z.ZodString;
380
- label: z.ZodString;
381
- description: z.ZodOptional<z.ZodString>;
382
- entityId: z.ZodString;
383
- stages: z.ZodArray<z.ZodObject<{
384
- label: z.ZodString;
385
- description: z.ZodOptional<z.ZodString>;
386
- color: z.ZodOptional<z.ZodString>;
387
- icon: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
388
- "nav.dashboard": "nav.dashboard";
389
- "nav.calendar": "nav.calendar";
390
- "nav.sales": "nav.sales";
391
- "nav.crm": "nav.crm";
392
- "nav.lead-gen": "nav.lead-gen";
393
- "nav.projects": "nav.projects";
394
- "nav.operations": "nav.operations";
395
- "nav.monitoring": "nav.monitoring";
396
- "nav.knowledge": "nav.knowledge";
397
- "nav.settings": "nav.settings";
398
- "nav.admin": "nav.admin";
399
- "nav.archive": "nav.archive";
400
- "knowledge.playbook": "knowledge.playbook";
401
- "knowledge.strategy": "knowledge.strategy";
402
- "knowledge.reference": "knowledge.reference";
403
- "feature.dashboard": "feature.dashboard";
404
- "feature.calendar": "feature.calendar";
405
- "feature.business": "feature.business";
406
- "feature.sales": "feature.sales";
407
- "feature.crm": "feature.crm";
408
- "feature.finance": "feature.finance";
409
- "feature.lead-gen": "feature.lead-gen";
410
- "feature.platform": "feature.platform";
411
- "feature.projects": "feature.projects";
412
- "feature.operations": "feature.operations";
413
- "feature.knowledge": "feature.knowledge";
414
- "feature.monitoring": "feature.monitoring";
415
- "feature.settings": "feature.settings";
416
- "feature.admin": "feature.admin";
417
- "feature.archive": "feature.archive";
418
- "feature.seo": "feature.seo";
419
- "resource.agent": "resource.agent";
420
- "resource.workflow": "resource.workflow";
421
- "resource.integration": "resource.integration";
422
- "resource.database": "resource.database";
423
- "resource.user": "resource.user";
424
- "resource.team": "resource.team";
425
- "integration.gmail": "integration.gmail";
426
- "integration.google-sheets": "integration.google-sheets";
427
- "integration.attio": "integration.attio";
428
- "surface.dashboard": "surface.dashboard";
429
- "surface.calendar": "surface.calendar";
430
- "surface.overview": "surface.overview";
431
- "surface.command-view": "surface.command-view";
432
- "surface.command-queue": "surface.command-queue";
433
- "surface.pipeline": "surface.pipeline";
434
- "surface.lists": "surface.lists";
435
- "surface.resources": "surface.resources";
436
- "surface.settings": "surface.settings";
437
- "status.success": "status.success";
438
- "status.error": "status.error";
439
- "status.warning": "status.warning";
440
- "status.info": "status.info";
441
- "status.pending": "status.pending";
442
- "action.approve": "action.approve";
443
- "action.reject": "action.reject";
444
- "action.retry": "action.retry";
445
- "action.edit": "action.edit";
446
- "action.view": "action.view";
447
- "action.launch": "action.launch";
448
- "action.message": "action.message";
449
- "action.escalate": "action.escalate";
450
- "action.promote": "action.promote";
451
- "action.submit": "action.submit";
452
- "action.email": "action.email";
453
- }>, z.ZodString]>>;
454
- id: z.ZodString;
455
- order: z.ZodNumber;
456
- semanticClass: z.ZodEnum<{
457
- open: "open";
458
- active: "active";
459
- nurturing: "nurturing";
460
- closed_won: "closed_won";
461
- closed_lost: "closed_lost";
893
+ externalUrl: z.ZodOptional<z.ZodString>;
894
+ body: z.ZodString;
895
+ links: z.ZodDefault<z.ZodArray<z.ZodPipe<z.ZodUnion<readonly [z.ZodObject<{
896
+ target: z.ZodObject<{
897
+ kind: z.ZodEnum<{
898
+ system: "system";
899
+ action: "action";
900
+ knowledge: "knowledge";
901
+ role: "role";
902
+ goal: "goal";
903
+ stage: "stage";
904
+ resource: "resource";
905
+ "customer-segment": "customer-segment";
906
+ offering: "offering";
907
+ "content-node": "content-node";
462
908
  }>;
463
- surfaceIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
464
- resourceIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
465
- }, z.core.$strip>>;
466
- }, z.core.$strip>>;
467
- }, z.core.$strip>;
468
- prospecting: z.ZodObject<{
469
- listEntityId: z.ZodString;
470
- companyEntityId: z.ZodString;
471
- contactEntityId: z.ZodString;
472
- description: z.ZodOptional<z.ZodString>;
473
- companyStages: z.ZodArray<z.ZodObject<{
474
- label: z.ZodString;
475
- description: z.ZodOptional<z.ZodString>;
476
- color: z.ZodOptional<z.ZodString>;
477
- icon: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
478
- "nav.dashboard": "nav.dashboard";
479
- "nav.calendar": "nav.calendar";
480
- "nav.sales": "nav.sales";
481
- "nav.crm": "nav.crm";
482
- "nav.lead-gen": "nav.lead-gen";
483
- "nav.projects": "nav.projects";
484
- "nav.operations": "nav.operations";
485
- "nav.monitoring": "nav.monitoring";
486
- "nav.knowledge": "nav.knowledge";
487
- "nav.settings": "nav.settings";
488
- "nav.admin": "nav.admin";
489
- "nav.archive": "nav.archive";
490
- "knowledge.playbook": "knowledge.playbook";
491
- "knowledge.strategy": "knowledge.strategy";
492
- "knowledge.reference": "knowledge.reference";
493
- "feature.dashboard": "feature.dashboard";
494
- "feature.calendar": "feature.calendar";
495
- "feature.business": "feature.business";
496
- "feature.sales": "feature.sales";
497
- "feature.crm": "feature.crm";
498
- "feature.finance": "feature.finance";
499
- "feature.lead-gen": "feature.lead-gen";
500
- "feature.platform": "feature.platform";
501
- "feature.projects": "feature.projects";
502
- "feature.operations": "feature.operations";
503
- "feature.knowledge": "feature.knowledge";
504
- "feature.monitoring": "feature.monitoring";
505
- "feature.settings": "feature.settings";
506
- "feature.admin": "feature.admin";
507
- "feature.archive": "feature.archive";
508
- "feature.seo": "feature.seo";
509
- "resource.agent": "resource.agent";
510
- "resource.workflow": "resource.workflow";
511
- "resource.integration": "resource.integration";
512
- "resource.database": "resource.database";
513
- "resource.user": "resource.user";
514
- "resource.team": "resource.team";
515
- "integration.gmail": "integration.gmail";
516
- "integration.google-sheets": "integration.google-sheets";
517
- "integration.attio": "integration.attio";
518
- "surface.dashboard": "surface.dashboard";
519
- "surface.calendar": "surface.calendar";
520
- "surface.overview": "surface.overview";
521
- "surface.command-view": "surface.command-view";
522
- "surface.command-queue": "surface.command-queue";
523
- "surface.pipeline": "surface.pipeline";
524
- "surface.lists": "surface.lists";
525
- "surface.resources": "surface.resources";
526
- "surface.settings": "surface.settings";
527
- "status.success": "status.success";
528
- "status.error": "status.error";
529
- "status.warning": "status.warning";
530
- "status.info": "status.info";
531
- "status.pending": "status.pending";
532
- "action.approve": "action.approve";
533
- "action.reject": "action.reject";
534
- "action.retry": "action.retry";
535
- "action.edit": "action.edit";
536
- "action.view": "action.view";
537
- "action.launch": "action.launch";
538
- "action.message": "action.message";
539
- "action.escalate": "action.escalate";
540
- "action.promote": "action.promote";
541
- "action.submit": "action.submit";
542
- "action.email": "action.email";
543
- }>, z.ZodString]>>;
544
- id: z.ZodString;
545
- order: z.ZodNumber;
546
- }, z.core.$strip>>;
547
- contactStages: z.ZodArray<z.ZodObject<{
548
- label: z.ZodString;
549
- description: z.ZodOptional<z.ZodString>;
550
- color: z.ZodOptional<z.ZodString>;
551
- icon: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
552
- "nav.dashboard": "nav.dashboard";
553
- "nav.calendar": "nav.calendar";
554
- "nav.sales": "nav.sales";
555
- "nav.crm": "nav.crm";
556
- "nav.lead-gen": "nav.lead-gen";
557
- "nav.projects": "nav.projects";
558
- "nav.operations": "nav.operations";
559
- "nav.monitoring": "nav.monitoring";
560
- "nav.knowledge": "nav.knowledge";
561
- "nav.settings": "nav.settings";
562
- "nav.admin": "nav.admin";
563
- "nav.archive": "nav.archive";
564
- "knowledge.playbook": "knowledge.playbook";
565
- "knowledge.strategy": "knowledge.strategy";
566
- "knowledge.reference": "knowledge.reference";
567
- "feature.dashboard": "feature.dashboard";
568
- "feature.calendar": "feature.calendar";
569
- "feature.business": "feature.business";
570
- "feature.sales": "feature.sales";
571
- "feature.crm": "feature.crm";
572
- "feature.finance": "feature.finance";
573
- "feature.lead-gen": "feature.lead-gen";
574
- "feature.platform": "feature.platform";
575
- "feature.projects": "feature.projects";
576
- "feature.operations": "feature.operations";
577
- "feature.knowledge": "feature.knowledge";
578
- "feature.monitoring": "feature.monitoring";
579
- "feature.settings": "feature.settings";
580
- "feature.admin": "feature.admin";
581
- "feature.archive": "feature.archive";
582
- "feature.seo": "feature.seo";
583
- "resource.agent": "resource.agent";
584
- "resource.workflow": "resource.workflow";
585
- "resource.integration": "resource.integration";
586
- "resource.database": "resource.database";
587
- "resource.user": "resource.user";
588
- "resource.team": "resource.team";
589
- "integration.gmail": "integration.gmail";
590
- "integration.google-sheets": "integration.google-sheets";
591
- "integration.attio": "integration.attio";
592
- "surface.dashboard": "surface.dashboard";
593
- "surface.calendar": "surface.calendar";
594
- "surface.overview": "surface.overview";
595
- "surface.command-view": "surface.command-view";
596
- "surface.command-queue": "surface.command-queue";
597
- "surface.pipeline": "surface.pipeline";
598
- "surface.lists": "surface.lists";
599
- "surface.resources": "surface.resources";
600
- "surface.settings": "surface.settings";
601
- "status.success": "status.success";
602
- "status.error": "status.error";
603
- "status.warning": "status.warning";
604
- "status.info": "status.info";
605
- "status.pending": "status.pending";
606
- "action.approve": "action.approve";
607
- "action.reject": "action.reject";
608
- "action.retry": "action.retry";
609
- "action.edit": "action.edit";
610
- "action.view": "action.view";
611
- "action.launch": "action.launch";
612
- "action.message": "action.message";
613
- "action.escalate": "action.escalate";
614
- "action.promote": "action.promote";
615
- "action.submit": "action.submit";
616
- "action.email": "action.email";
617
- }>, z.ZodString]>>;
618
- id: z.ZodString;
619
- order: z.ZodNumber;
620
- }, z.core.$strip>>;
621
- defaultBuildTemplateId: z.ZodString;
622
- buildTemplates: z.ZodArray<z.ZodObject<{
623
- label: z.ZodString;
624
- description: z.ZodOptional<z.ZodString>;
625
- color: z.ZodOptional<z.ZodString>;
626
- icon: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
627
- "nav.dashboard": "nav.dashboard";
628
- "nav.calendar": "nav.calendar";
629
- "nav.sales": "nav.sales";
630
- "nav.crm": "nav.crm";
631
- "nav.lead-gen": "nav.lead-gen";
632
- "nav.projects": "nav.projects";
633
- "nav.operations": "nav.operations";
634
- "nav.monitoring": "nav.monitoring";
635
- "nav.knowledge": "nav.knowledge";
636
- "nav.settings": "nav.settings";
637
- "nav.admin": "nav.admin";
638
- "nav.archive": "nav.archive";
639
- "knowledge.playbook": "knowledge.playbook";
640
- "knowledge.strategy": "knowledge.strategy";
641
- "knowledge.reference": "knowledge.reference";
642
- "feature.dashboard": "feature.dashboard";
643
- "feature.calendar": "feature.calendar";
644
- "feature.business": "feature.business";
645
- "feature.sales": "feature.sales";
646
- "feature.crm": "feature.crm";
647
- "feature.finance": "feature.finance";
648
- "feature.lead-gen": "feature.lead-gen";
649
- "feature.platform": "feature.platform";
650
- "feature.projects": "feature.projects";
651
- "feature.operations": "feature.operations";
652
- "feature.knowledge": "feature.knowledge";
653
- "feature.monitoring": "feature.monitoring";
654
- "feature.settings": "feature.settings";
655
- "feature.admin": "feature.admin";
656
- "feature.archive": "feature.archive";
657
- "feature.seo": "feature.seo";
658
- "resource.agent": "resource.agent";
659
- "resource.workflow": "resource.workflow";
660
- "resource.integration": "resource.integration";
661
- "resource.database": "resource.database";
662
- "resource.user": "resource.user";
663
- "resource.team": "resource.team";
664
- "integration.gmail": "integration.gmail";
665
- "integration.google-sheets": "integration.google-sheets";
666
- "integration.attio": "integration.attio";
667
- "surface.dashboard": "surface.dashboard";
668
- "surface.calendar": "surface.calendar";
669
- "surface.overview": "surface.overview";
670
- "surface.command-view": "surface.command-view";
671
- "surface.command-queue": "surface.command-queue";
672
- "surface.pipeline": "surface.pipeline";
673
- "surface.lists": "surface.lists";
674
- "surface.resources": "surface.resources";
675
- "surface.settings": "surface.settings";
676
- "status.success": "status.success";
677
- "status.error": "status.error";
678
- "status.warning": "status.warning";
679
- "status.info": "status.info";
680
- "status.pending": "status.pending";
681
- "action.approve": "action.approve";
682
- "action.reject": "action.reject";
683
- "action.retry": "action.retry";
684
- "action.edit": "action.edit";
685
- "action.view": "action.view";
686
- "action.launch": "action.launch";
687
- "action.message": "action.message";
688
- "action.escalate": "action.escalate";
689
- "action.promote": "action.promote";
690
- "action.submit": "action.submit";
691
- "action.email": "action.email";
692
- }>, z.ZodString]>>;
693
- id: z.ZodString;
694
- steps: z.ZodArray<z.ZodObject<{
695
- label: z.ZodString;
696
- description: z.ZodOptional<z.ZodString>;
697
- color: z.ZodOptional<z.ZodString>;
698
- icon: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
699
- "nav.dashboard": "nav.dashboard";
700
- "nav.calendar": "nav.calendar";
701
- "nav.sales": "nav.sales";
702
- "nav.crm": "nav.crm";
703
- "nav.lead-gen": "nav.lead-gen";
704
- "nav.projects": "nav.projects";
705
- "nav.operations": "nav.operations";
706
- "nav.monitoring": "nav.monitoring";
707
- "nav.knowledge": "nav.knowledge";
708
- "nav.settings": "nav.settings";
709
- "nav.admin": "nav.admin";
710
- "nav.archive": "nav.archive";
711
- "knowledge.playbook": "knowledge.playbook";
712
- "knowledge.strategy": "knowledge.strategy";
713
- "knowledge.reference": "knowledge.reference";
714
- "feature.dashboard": "feature.dashboard";
715
- "feature.calendar": "feature.calendar";
716
- "feature.business": "feature.business";
717
- "feature.sales": "feature.sales";
718
- "feature.crm": "feature.crm";
719
- "feature.finance": "feature.finance";
720
- "feature.lead-gen": "feature.lead-gen";
721
- "feature.platform": "feature.platform";
722
- "feature.projects": "feature.projects";
723
- "feature.operations": "feature.operations";
724
- "feature.knowledge": "feature.knowledge";
725
- "feature.monitoring": "feature.monitoring";
726
- "feature.settings": "feature.settings";
727
- "feature.admin": "feature.admin";
728
- "feature.archive": "feature.archive";
729
- "feature.seo": "feature.seo";
730
- "resource.agent": "resource.agent";
731
- "resource.workflow": "resource.workflow";
732
- "resource.integration": "resource.integration";
733
- "resource.database": "resource.database";
734
- "resource.user": "resource.user";
735
- "resource.team": "resource.team";
736
- "integration.gmail": "integration.gmail";
737
- "integration.google-sheets": "integration.google-sheets";
738
- "integration.attio": "integration.attio";
739
- "surface.dashboard": "surface.dashboard";
740
- "surface.calendar": "surface.calendar";
741
- "surface.overview": "surface.overview";
742
- "surface.command-view": "surface.command-view";
743
- "surface.command-queue": "surface.command-queue";
744
- "surface.pipeline": "surface.pipeline";
745
- "surface.lists": "surface.lists";
746
- "surface.resources": "surface.resources";
747
- "surface.settings": "surface.settings";
748
- "status.success": "status.success";
749
- "status.error": "status.error";
750
- "status.warning": "status.warning";
751
- "status.info": "status.info";
752
- "status.pending": "status.pending";
753
- "action.approve": "action.approve";
754
- "action.reject": "action.reject";
755
- "action.retry": "action.retry";
756
- "action.edit": "action.edit";
757
- "action.view": "action.view";
758
- "action.launch": "action.launch";
759
- "action.message": "action.message";
760
- "action.escalate": "action.escalate";
761
- "action.promote": "action.promote";
762
- "action.submit": "action.submit";
763
- "action.email": "action.email";
764
- }>, z.ZodString]>>;
765
909
  id: z.ZodString;
766
- primaryEntity: z.ZodEnum<{
767
- company: "company";
768
- contact: "contact";
769
- }>;
770
- outputs: z.ZodArray<z.ZodEnum<{
771
- company: "company";
772
- contact: "contact";
773
- export: "export";
774
- }>>;
775
- stageKey: z.ZodString;
776
- recordEntity: z.ZodOptional<z.ZodEnum<{
777
- company: "company";
778
- contact: "contact";
779
- }>>;
780
- recordsStageKey: z.ZodOptional<z.ZodString>;
781
- recordSourceStageKey: z.ZodOptional<z.ZodString>;
782
- dependsOn: z.ZodOptional<z.ZodArray<z.ZodString>>;
783
- dependencyMode: z.ZodLiteral<"per-record-eligibility">;
784
- capabilityKey: z.ZodString;
785
- defaultBatchSize: z.ZodNumber;
786
- maxBatchSize: z.ZodNumber;
787
- recordColumns: z.ZodOptional<z.ZodObject<{
788
- company: z.ZodOptional<z.ZodArray<z.ZodObject<{
789
- key: z.ZodString;
790
- label: z.ZodString;
791
- path: z.ZodString;
792
- width: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
793
- renderType: z.ZodOptional<z.ZodEnum<{
794
- text: "text";
795
- badge: "badge";
796
- datetime: "datetime";
797
- count: "count";
798
- json: "json";
799
- }>>;
800
- badgeColor: z.ZodOptional<z.ZodString>;
801
- }, z.core.$strip>>>;
802
- contact: z.ZodOptional<z.ZodArray<z.ZodObject<{
803
- key: z.ZodString;
804
- label: z.ZodString;
805
- path: z.ZodString;
806
- width: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
807
- renderType: z.ZodOptional<z.ZodEnum<{
808
- text: "text";
809
- badge: "badge";
810
- datetime: "datetime";
811
- count: "count";
812
- json: "json";
813
- }>>;
814
- badgeColor: z.ZodOptional<z.ZodString>;
815
- }, z.core.$strip>>>;
816
- }, z.core.$strip>>;
817
- credentialRequirements: z.ZodOptional<z.ZodArray<z.ZodObject<{
818
- key: z.ZodString;
819
- provider: z.ZodString;
820
- credentialType: z.ZodEnum<{
821
- "api-key": "api-key";
822
- "api-key-secret": "api-key-secret";
823
- oauth: "oauth";
824
- "webhook-secret": "webhook-secret";
825
- }>;
826
- label: z.ZodString;
827
- required: z.ZodBoolean;
828
- selectionMode: z.ZodOptional<z.ZodEnum<{
829
- single: "single";
830
- multiple: "multiple";
831
- }>>;
832
- inputPath: z.ZodString;
833
- verifyOnRun: z.ZodOptional<z.ZodBoolean>;
834
- }, z.core.$strip>>>;
835
- }, z.core.$strip>>;
836
- }, z.core.$strip>>;
837
- }, z.core.$strip>;
838
- projects: z.ZodObject<{
839
- projectEntityId: z.ZodString;
840
- milestoneEntityId: z.ZodString;
841
- taskEntityId: z.ZodString;
842
- projectStatuses: z.ZodArray<z.ZodObject<{
843
- label: z.ZodString;
844
- description: z.ZodOptional<z.ZodString>;
845
- color: z.ZodOptional<z.ZodString>;
846
- icon: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
847
- "nav.dashboard": "nav.dashboard";
848
- "nav.calendar": "nav.calendar";
849
- "nav.sales": "nav.sales";
850
- "nav.crm": "nav.crm";
851
- "nav.lead-gen": "nav.lead-gen";
852
- "nav.projects": "nav.projects";
853
- "nav.operations": "nav.operations";
854
- "nav.monitoring": "nav.monitoring";
855
- "nav.knowledge": "nav.knowledge";
856
- "nav.settings": "nav.settings";
857
- "nav.admin": "nav.admin";
858
- "nav.archive": "nav.archive";
859
- "knowledge.playbook": "knowledge.playbook";
860
- "knowledge.strategy": "knowledge.strategy";
861
- "knowledge.reference": "knowledge.reference";
862
- "feature.dashboard": "feature.dashboard";
863
- "feature.calendar": "feature.calendar";
864
- "feature.business": "feature.business";
865
- "feature.sales": "feature.sales";
866
- "feature.crm": "feature.crm";
867
- "feature.finance": "feature.finance";
868
- "feature.lead-gen": "feature.lead-gen";
869
- "feature.platform": "feature.platform";
870
- "feature.projects": "feature.projects";
871
- "feature.operations": "feature.operations";
872
- "feature.knowledge": "feature.knowledge";
873
- "feature.monitoring": "feature.monitoring";
874
- "feature.settings": "feature.settings";
875
- "feature.admin": "feature.admin";
876
- "feature.archive": "feature.archive";
877
- "feature.seo": "feature.seo";
878
- "resource.agent": "resource.agent";
879
- "resource.workflow": "resource.workflow";
880
- "resource.integration": "resource.integration";
881
- "resource.database": "resource.database";
882
- "resource.user": "resource.user";
883
- "resource.team": "resource.team";
884
- "integration.gmail": "integration.gmail";
885
- "integration.google-sheets": "integration.google-sheets";
886
- "integration.attio": "integration.attio";
887
- "surface.dashboard": "surface.dashboard";
888
- "surface.calendar": "surface.calendar";
889
- "surface.overview": "surface.overview";
890
- "surface.command-view": "surface.command-view";
891
- "surface.command-queue": "surface.command-queue";
892
- "surface.pipeline": "surface.pipeline";
893
- "surface.lists": "surface.lists";
894
- "surface.resources": "surface.resources";
895
- "surface.settings": "surface.settings";
896
- "status.success": "status.success";
897
- "status.error": "status.error";
898
- "status.warning": "status.warning";
899
- "status.info": "status.info";
900
- "status.pending": "status.pending";
901
- "action.approve": "action.approve";
902
- "action.reject": "action.reject";
903
- "action.retry": "action.retry";
904
- "action.edit": "action.edit";
905
- "action.view": "action.view";
906
- "action.launch": "action.launch";
907
- "action.message": "action.message";
908
- "action.escalate": "action.escalate";
909
- "action.promote": "action.promote";
910
- "action.submit": "action.submit";
911
- "action.email": "action.email";
912
- }>, z.ZodString]>>;
913
- id: z.ZodString;
914
- order: z.ZodNumber;
915
- }, z.core.$strip>>;
916
- milestoneStatuses: z.ZodArray<z.ZodObject<{
917
- label: z.ZodString;
918
- description: z.ZodOptional<z.ZodString>;
919
- color: z.ZodOptional<z.ZodString>;
920
- icon: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
921
- "nav.dashboard": "nav.dashboard";
922
- "nav.calendar": "nav.calendar";
923
- "nav.sales": "nav.sales";
924
- "nav.crm": "nav.crm";
925
- "nav.lead-gen": "nav.lead-gen";
926
- "nav.projects": "nav.projects";
927
- "nav.operations": "nav.operations";
928
- "nav.monitoring": "nav.monitoring";
929
- "nav.knowledge": "nav.knowledge";
930
- "nav.settings": "nav.settings";
931
- "nav.admin": "nav.admin";
932
- "nav.archive": "nav.archive";
933
- "knowledge.playbook": "knowledge.playbook";
934
- "knowledge.strategy": "knowledge.strategy";
935
- "knowledge.reference": "knowledge.reference";
936
- "feature.dashboard": "feature.dashboard";
937
- "feature.calendar": "feature.calendar";
938
- "feature.business": "feature.business";
939
- "feature.sales": "feature.sales";
940
- "feature.crm": "feature.crm";
941
- "feature.finance": "feature.finance";
942
- "feature.lead-gen": "feature.lead-gen";
943
- "feature.platform": "feature.platform";
944
- "feature.projects": "feature.projects";
945
- "feature.operations": "feature.operations";
946
- "feature.knowledge": "feature.knowledge";
947
- "feature.monitoring": "feature.monitoring";
948
- "feature.settings": "feature.settings";
949
- "feature.admin": "feature.admin";
950
- "feature.archive": "feature.archive";
951
- "feature.seo": "feature.seo";
952
- "resource.agent": "resource.agent";
953
- "resource.workflow": "resource.workflow";
954
- "resource.integration": "resource.integration";
955
- "resource.database": "resource.database";
956
- "resource.user": "resource.user";
957
- "resource.team": "resource.team";
958
- "integration.gmail": "integration.gmail";
959
- "integration.google-sheets": "integration.google-sheets";
960
- "integration.attio": "integration.attio";
961
- "surface.dashboard": "surface.dashboard";
962
- "surface.calendar": "surface.calendar";
963
- "surface.overview": "surface.overview";
964
- "surface.command-view": "surface.command-view";
965
- "surface.command-queue": "surface.command-queue";
966
- "surface.pipeline": "surface.pipeline";
967
- "surface.lists": "surface.lists";
968
- "surface.resources": "surface.resources";
969
- "surface.settings": "surface.settings";
970
- "status.success": "status.success";
971
- "status.error": "status.error";
972
- "status.warning": "status.warning";
973
- "status.info": "status.info";
974
- "status.pending": "status.pending";
975
- "action.approve": "action.approve";
976
- "action.reject": "action.reject";
977
- "action.retry": "action.retry";
978
- "action.edit": "action.edit";
979
- "action.view": "action.view";
980
- "action.launch": "action.launch";
981
- "action.message": "action.message";
982
- "action.escalate": "action.escalate";
983
- "action.promote": "action.promote";
984
- "action.submit": "action.submit";
985
- "action.email": "action.email";
986
- }>, z.ZodString]>>;
987
- id: z.ZodString;
988
- order: z.ZodNumber;
989
- }, z.core.$strip>>;
990
- taskStatuses: z.ZodArray<z.ZodObject<{
991
- label: z.ZodString;
992
- description: z.ZodOptional<z.ZodString>;
993
- color: z.ZodOptional<z.ZodString>;
994
- icon: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
995
- "nav.dashboard": "nav.dashboard";
996
- "nav.calendar": "nav.calendar";
997
- "nav.sales": "nav.sales";
998
- "nav.crm": "nav.crm";
999
- "nav.lead-gen": "nav.lead-gen";
1000
- "nav.projects": "nav.projects";
1001
- "nav.operations": "nav.operations";
1002
- "nav.monitoring": "nav.monitoring";
1003
- "nav.knowledge": "nav.knowledge";
1004
- "nav.settings": "nav.settings";
1005
- "nav.admin": "nav.admin";
1006
- "nav.archive": "nav.archive";
1007
- "knowledge.playbook": "knowledge.playbook";
1008
- "knowledge.strategy": "knowledge.strategy";
1009
- "knowledge.reference": "knowledge.reference";
1010
- "feature.dashboard": "feature.dashboard";
1011
- "feature.calendar": "feature.calendar";
1012
- "feature.business": "feature.business";
1013
- "feature.sales": "feature.sales";
1014
- "feature.crm": "feature.crm";
1015
- "feature.finance": "feature.finance";
1016
- "feature.lead-gen": "feature.lead-gen";
1017
- "feature.platform": "feature.platform";
1018
- "feature.projects": "feature.projects";
1019
- "feature.operations": "feature.operations";
1020
- "feature.knowledge": "feature.knowledge";
1021
- "feature.monitoring": "feature.monitoring";
1022
- "feature.settings": "feature.settings";
1023
- "feature.admin": "feature.admin";
1024
- "feature.archive": "feature.archive";
1025
- "feature.seo": "feature.seo";
1026
- "resource.agent": "resource.agent";
1027
- "resource.workflow": "resource.workflow";
1028
- "resource.integration": "resource.integration";
1029
- "resource.database": "resource.database";
1030
- "resource.user": "resource.user";
1031
- "resource.team": "resource.team";
1032
- "integration.gmail": "integration.gmail";
1033
- "integration.google-sheets": "integration.google-sheets";
1034
- "integration.attio": "integration.attio";
1035
- "surface.dashboard": "surface.dashboard";
1036
- "surface.calendar": "surface.calendar";
1037
- "surface.overview": "surface.overview";
1038
- "surface.command-view": "surface.command-view";
1039
- "surface.command-queue": "surface.command-queue";
1040
- "surface.pipeline": "surface.pipeline";
1041
- "surface.lists": "surface.lists";
1042
- "surface.resources": "surface.resources";
1043
- "surface.settings": "surface.settings";
1044
- "status.success": "status.success";
1045
- "status.error": "status.error";
1046
- "status.warning": "status.warning";
1047
- "status.info": "status.info";
1048
- "status.pending": "status.pending";
1049
- "action.approve": "action.approve";
1050
- "action.reject": "action.reject";
1051
- "action.retry": "action.retry";
1052
- "action.edit": "action.edit";
1053
- "action.view": "action.view";
1054
- "action.launch": "action.launch";
1055
- "action.message": "action.message";
1056
- "action.escalate": "action.escalate";
1057
- "action.promote": "action.promote";
1058
- "action.submit": "action.submit";
1059
- "action.email": "action.email";
1060
- }>, z.ZodString]>>;
1061
- id: z.ZodString;
1062
- order: z.ZodNumber;
1063
- }, z.core.$strip>>;
1064
- }, z.core.$strip>;
1065
- identity: z.ZodDefault<z.ZodObject<{
1066
- mission: z.ZodDefault<z.ZodString>;
1067
- vision: z.ZodDefault<z.ZodString>;
1068
- legalName: z.ZodDefault<z.ZodString>;
1069
- entityType: z.ZodDefault<z.ZodString>;
1070
- jurisdiction: z.ZodDefault<z.ZodString>;
1071
- industryCategory: z.ZodDefault<z.ZodString>;
1072
- geographicFocus: z.ZodDefault<z.ZodString>;
1073
- timeZone: z.ZodDefault<z.ZodString>;
1074
- businessHours: z.ZodDefault<z.ZodObject<{
1075
- monday: z.ZodOptional<z.ZodObject<{
1076
- open: z.ZodString;
1077
- close: z.ZodString;
1078
- }, z.core.$strip>>;
1079
- tuesday: z.ZodOptional<z.ZodObject<{
1080
- open: z.ZodString;
1081
- close: z.ZodString;
1082
- }, z.core.$strip>>;
1083
- wednesday: z.ZodOptional<z.ZodObject<{
1084
- open: z.ZodString;
1085
- close: z.ZodString;
1086
- }, z.core.$strip>>;
1087
- thursday: z.ZodOptional<z.ZodObject<{
1088
- open: z.ZodString;
1089
- close: z.ZodString;
1090
- }, z.core.$strip>>;
1091
- friday: z.ZodOptional<z.ZodObject<{
1092
- open: z.ZodString;
1093
- close: z.ZodString;
1094
- }, z.core.$strip>>;
1095
- saturday: z.ZodOptional<z.ZodObject<{
1096
- open: z.ZodString;
1097
- close: z.ZodString;
1098
- }, z.core.$strip>>;
1099
- sunday: z.ZodOptional<z.ZodObject<{
1100
- open: z.ZodString;
1101
- close: z.ZodString;
1102
- }, z.core.$strip>>;
1103
- }, z.core.$strip>>;
1104
- clientBrief: z.ZodDefault<z.ZodString>;
1105
- }, z.core.$strip>>;
1106
- customers: z.ZodDefault<z.ZodObject<{
1107
- segments: z.ZodDefault<z.ZodArray<z.ZodObject<{
1108
- id: z.ZodString;
1109
- name: z.ZodDefault<z.ZodString>;
1110
- description: z.ZodDefault<z.ZodString>;
1111
- jobsToBeDone: z.ZodDefault<z.ZodString>;
1112
- pains: z.ZodDefault<z.ZodArray<z.ZodString>>;
1113
- gains: z.ZodDefault<z.ZodArray<z.ZodString>>;
1114
- firmographics: z.ZodDefault<z.ZodObject<{
1115
- industry: z.ZodOptional<z.ZodString>;
1116
- companySize: z.ZodOptional<z.ZodString>;
1117
- region: z.ZodOptional<z.ZodString>;
1118
- }, z.core.$strip>>;
1119
- valueProp: z.ZodDefault<z.ZodString>;
1120
- }, z.core.$strip>>>;
1121
- }, z.core.$strip>>;
1122
- offerings: z.ZodDefault<z.ZodObject<{
1123
- products: z.ZodDefault<z.ZodArray<z.ZodObject<{
1124
- id: z.ZodString;
1125
- name: z.ZodDefault<z.ZodString>;
1126
- description: z.ZodDefault<z.ZodString>;
1127
- pricingModel: z.ZodDefault<z.ZodEnum<{
1128
- custom: "custom";
1129
- "one-time": "one-time";
1130
- subscription: "subscription";
1131
- "usage-based": "usage-based";
1132
- }>>;
1133
- price: z.ZodDefault<z.ZodNumber>;
1134
- currency: z.ZodDefault<z.ZodString>;
1135
- targetSegmentIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
1136
- deliveryFeatureId: z.ZodOptional<z.ZodString>;
1137
- }, z.core.$strip>>>;
1138
- }, z.core.$strip>>;
1139
- roles: z.ZodDefault<z.ZodObject<{
1140
- roles: z.ZodDefault<z.ZodArray<z.ZodObject<{
1141
- id: z.ZodString;
1142
- title: z.ZodString;
1143
- responsibilities: z.ZodDefault<z.ZodArray<z.ZodString>>;
1144
- reportsToId: z.ZodOptional<z.ZodString>;
1145
- heldBy: z.ZodOptional<z.ZodUnion<readonly [z.ZodDiscriminatedUnion<[z.ZodObject<{
1146
- kind: z.ZodLiteral<"human">;
1147
- userId: z.ZodString;
1148
- }, z.core.$strip>, z.ZodObject<{
1149
- kind: z.ZodLiteral<"agent">;
1150
- agentId: z.ZodString;
1151
- }, z.core.$strip>, z.ZodObject<{
1152
- kind: z.ZodLiteral<"team">;
1153
- memberIds: z.ZodArray<z.ZodString>;
1154
- }, z.core.$strip>], "kind">, z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
1155
- kind: z.ZodLiteral<"human">;
1156
- userId: z.ZodString;
1157
- }, z.core.$strip>, z.ZodObject<{
1158
- kind: z.ZodLiteral<"agent">;
1159
- agentId: z.ZodString;
1160
- }, z.core.$strip>, z.ZodObject<{
1161
- kind: z.ZodLiteral<"team">;
1162
- memberIds: z.ZodArray<z.ZodString>;
1163
- }, z.core.$strip>], "kind">>]>>;
1164
- responsibleFor: z.ZodOptional<z.ZodArray<z.ZodString>>;
1165
- }, z.core.$strip>>>;
1166
- }, z.core.$strip>>;
1167
- goals: z.ZodDefault<z.ZodObject<{
1168
- objectives: z.ZodDefault<z.ZodArray<z.ZodObject<{
1169
- id: z.ZodString;
1170
- description: z.ZodString;
1171
- periodStart: z.ZodString;
1172
- periodEnd: z.ZodString;
1173
- keyResults: z.ZodDefault<z.ZodArray<z.ZodObject<{
1174
- id: z.ZodString;
1175
- description: z.ZodString;
1176
- targetMetric: z.ZodString;
1177
- currentValue: z.ZodDefault<z.ZodNumber>;
1178
- targetValue: z.ZodOptional<z.ZodNumber>;
1179
- }, z.core.$strip>>>;
1180
- }, z.core.$strip>>>;
1181
- }, z.core.$strip>>;
1182
- systems: z.ZodDefault<z.ZodObject<{
1183
- systems: z.ZodDefault<z.ZodArray<z.ZodObject<{
1184
- id: z.ZodString;
1185
- title: z.ZodString;
1186
- description: z.ZodString;
1187
- kind: z.ZodEnum<{
1188
- platform: "platform";
1189
- product: "product";
1190
- operational: "operational";
1191
- diagnostic: "diagnostic";
1192
- }>;
1193
- responsibleRoleId: z.ZodOptional<z.ZodString>;
1194
- governedByKnowledge: z.ZodDefault<z.ZodArray<z.ZodString>>;
1195
- drivesGoals: z.ZodDefault<z.ZodArray<z.ZodString>>;
1196
- status: z.ZodEnum<{
1197
- active: "active";
1198
- deprecated: "deprecated";
1199
- archived: "archived";
1200
- }>;
1201
- }, z.core.$strip>>>;
1202
- }, z.core.$strip>>;
1203
- resources: z.ZodDefault<z.ZodObject<{
1204
- entries: z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
1205
- id: z.ZodString;
1206
- systemId: z.ZodString;
1207
- ownerRoleId: z.ZodOptional<z.ZodString>;
1208
- status: z.ZodEnum<{
1209
- active: "active";
1210
- deprecated: "deprecated";
1211
- archived: "archived";
1212
- }>;
1213
- kind: z.ZodLiteral<"workflow">;
1214
- capabilityKey: z.ZodOptional<z.ZodString>;
910
+ }, z.core.$strip>;
1215
911
  }, z.core.$strip>, z.ZodObject<{
1216
- id: z.ZodString;
1217
- systemId: z.ZodString;
1218
- ownerRoleId: z.ZodOptional<z.ZodString>;
1219
- status: z.ZodEnum<{
1220
- active: "active";
1221
- deprecated: "deprecated";
1222
- archived: "archived";
1223
- }>;
1224
- kind: z.ZodLiteral<"agent">;
1225
- agentKind: z.ZodEnum<{
1226
- orchestrator: "orchestrator";
1227
- specialist: "specialist";
1228
- utility: "utility";
1229
- system: "system";
1230
- }>;
1231
- actsAsRoleId: z.ZodOptional<z.ZodString>;
1232
- sessionCapable: z.ZodBoolean;
1233
- }, z.core.$strip>, z.ZodObject<{
1234
- id: z.ZodString;
1235
- systemId: z.ZodString;
1236
- ownerRoleId: z.ZodOptional<z.ZodString>;
1237
- status: z.ZodEnum<{
1238
- active: "active";
1239
- deprecated: "deprecated";
1240
- archived: "archived";
1241
- }>;
1242
- kind: z.ZodLiteral<"integration">;
1243
- provider: z.ZodString;
1244
- }, z.core.$strip>], "kind">>>;
1245
- }, z.core.$strip>>;
1246
- statuses: z.ZodDefault<z.ZodObject<{
1247
- entries: z.ZodDefault<z.ZodArray<z.ZodObject<{
1248
- id: z.ZodString;
1249
- label: z.ZodString;
1250
- semanticClass: z.ZodEnum<{
1251
- "delivery.project": "delivery.project";
1252
- "delivery.milestone": "delivery.milestone";
1253
- "delivery.task": "delivery.task";
1254
- queue: "queue";
1255
- execution: "execution";
1256
- schedule: "schedule";
1257
- "schedule.run": "schedule.run";
1258
- request: "request";
1259
- }>;
1260
- category: z.ZodOptional<z.ZodString>;
1261
- }, z.core.$strip>>>;
1262
- }, z.core.$strip>>;
1263
- operations: z.ZodDefault<z.ZodObject<{
1264
- entries: z.ZodDefault<z.ZodArray<z.ZodObject<{
1265
- id: z.ZodString;
1266
- label: z.ZodString;
1267
- semanticClass: z.ZodEnum<{
1268
- queue: "queue";
1269
- executions: "executions";
1270
- sessions: "sessions";
1271
- notifications: "notifications";
1272
- schedules: "schedules";
1273
- }>;
1274
- featureId: z.ZodOptional<z.ZodString>;
1275
- supportedStatusSemanticClass: z.ZodOptional<z.ZodArray<z.ZodString>>;
1276
- }, z.core.$strip>>>;
1277
- }, z.core.$strip>>;
1278
- knowledge: z.ZodDefault<z.ZodObject<{
1279
- nodes: z.ZodDefault<z.ZodArray<z.ZodObject<{
1280
- id: z.ZodString;
1281
- kind: z.ZodEnum<{
1282
- playbook: "playbook";
1283
- strategy: "strategy";
1284
- reference: "reference";
1285
- }>;
1286
- title: z.ZodString;
1287
- summary: z.ZodString;
1288
- icon: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
1289
- "nav.dashboard": "nav.dashboard";
1290
- "nav.calendar": "nav.calendar";
1291
- "nav.sales": "nav.sales";
1292
- "nav.crm": "nav.crm";
1293
- "nav.lead-gen": "nav.lead-gen";
1294
- "nav.projects": "nav.projects";
1295
- "nav.operations": "nav.operations";
1296
- "nav.monitoring": "nav.monitoring";
1297
- "nav.knowledge": "nav.knowledge";
1298
- "nav.settings": "nav.settings";
1299
- "nav.admin": "nav.admin";
1300
- "nav.archive": "nav.archive";
1301
- "knowledge.playbook": "knowledge.playbook";
1302
- "knowledge.strategy": "knowledge.strategy";
1303
- "knowledge.reference": "knowledge.reference";
1304
- "feature.dashboard": "feature.dashboard";
1305
- "feature.calendar": "feature.calendar";
1306
- "feature.business": "feature.business";
1307
- "feature.sales": "feature.sales";
1308
- "feature.crm": "feature.crm";
1309
- "feature.finance": "feature.finance";
1310
- "feature.lead-gen": "feature.lead-gen";
1311
- "feature.platform": "feature.platform";
1312
- "feature.projects": "feature.projects";
1313
- "feature.operations": "feature.operations";
1314
- "feature.knowledge": "feature.knowledge";
1315
- "feature.monitoring": "feature.monitoring";
1316
- "feature.settings": "feature.settings";
1317
- "feature.admin": "feature.admin";
1318
- "feature.archive": "feature.archive";
1319
- "feature.seo": "feature.seo";
1320
- "resource.agent": "resource.agent";
1321
- "resource.workflow": "resource.workflow";
1322
- "resource.integration": "resource.integration";
1323
- "resource.database": "resource.database";
1324
- "resource.user": "resource.user";
1325
- "resource.team": "resource.team";
1326
- "integration.gmail": "integration.gmail";
1327
- "integration.google-sheets": "integration.google-sheets";
1328
- "integration.attio": "integration.attio";
1329
- "surface.dashboard": "surface.dashboard";
1330
- "surface.calendar": "surface.calendar";
1331
- "surface.overview": "surface.overview";
1332
- "surface.command-view": "surface.command-view";
1333
- "surface.command-queue": "surface.command-queue";
1334
- "surface.pipeline": "surface.pipeline";
1335
- "surface.lists": "surface.lists";
1336
- "surface.resources": "surface.resources";
1337
- "surface.settings": "surface.settings";
1338
- "status.success": "status.success";
1339
- "status.error": "status.error";
1340
- "status.warning": "status.warning";
1341
- "status.info": "status.info";
1342
- "status.pending": "status.pending";
1343
- "action.approve": "action.approve";
1344
- "action.reject": "action.reject";
1345
- "action.retry": "action.retry";
1346
- "action.edit": "action.edit";
1347
- "action.view": "action.view";
1348
- "action.launch": "action.launch";
1349
- "action.message": "action.message";
1350
- "action.escalate": "action.escalate";
1351
- "action.promote": "action.promote";
1352
- "action.submit": "action.submit";
1353
- "action.email": "action.email";
1354
- }>, z.ZodString]>>;
1355
- body: z.ZodString;
1356
- links: z.ZodDefault<z.ZodArray<z.ZodObject<{
1357
- nodeId: z.ZodString;
1358
- }, z.core.$strip>>>;
1359
- skills: z.ZodOptional<z.ZodArray<z.ZodString>>;
1360
- domain: z.ZodOptional<z.ZodString>;
1361
- ownerIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
1362
- updatedAt: z.ZodString;
1363
- }, z.core.$strip>>>;
1364
- }, z.core.$strip>>;
912
+ nodeId: z.ZodString;
913
+ }, z.core.$strip>]>, z.ZodTransform<{
914
+ target: {
915
+ kind: "system" | "action" | "knowledge" | "role" | "goal" | "stage" | "resource" | "customer-segment" | "offering" | "content-node";
916
+ id: string;
917
+ };
918
+ nodeId: string;
919
+ }, {
920
+ nodeId: string;
921
+ } | {
922
+ target: {
923
+ kind: "system" | "action" | "knowledge" | "role" | "goal" | "stage" | "resource" | "customer-segment" | "offering" | "content-node";
924
+ id: string;
925
+ };
926
+ }>>>>;
927
+ ownerIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
928
+ updatedAt: z.ZodString;
929
+ }, z.core.$strip>>>>;
1365
930
  }, z.core.$strip>;
1366
931
 
1367
932
  type OrganizationModel = z.infer<typeof OrganizationModelSchema>;
1368
933
 
1369
- type OrganizationGraphNodeKind = 'organization' | 'feature' | 'surface' | 'entity' | 'capability' | 'stage' | 'resource' | 'knowledge';
1370
- type OrganizationGraphEdgeKind = 'contains' | 'references' | 'exposes' | 'maps_to' | 'operates-on' | 'uses' | 'governs';
934
+ type OrganizationGraphNodeKind = 'organization' | 'system' | 'role' | 'action' | 'entity' | 'event' | 'policy' | 'stage' | 'resource' | 'knowledge' | 'customer-segment' | 'offering' | 'goal' | 'surface' | 'navigation-group'
935
+ /** Phase 3 preview Phase 4 populates this kind via graph projection of system.content entries. */
936
+ | 'content-node';
937
+ type OrganizationGraphEdgeKind = 'contains' | 'references' | 'maps_to' | 'uses' | 'governs' | 'links' | 'affects' | 'emits' | 'originates_from' | 'triggers' | 'applies_to' | 'effects';
1371
938
 
1372
939
  interface OrganizationGraphNode {
1373
940
  id: string;
@@ -1377,8 +944,7 @@ interface OrganizationGraphNode {
1377
944
  description?: string;
1378
945
  icon?: OrganizationModelIconToken;
1379
946
  enabled?: boolean;
1380
- featureId?: string;
1381
- resourceType?: 'workflow' | 'agent' | 'trigger' | 'integration' | 'external' | 'human_checkpoint';
947
+ resourceType?: 'workflow' | 'agent' | 'trigger' | 'integration' | 'external' | 'human_checkpoint' | 'script';
1382
948
  }
1383
949
  interface OrganizationGraphEdge {
1384
950
  id: string;
@@ -1397,12 +963,12 @@ interface OrganizationGraph {
1397
963
 
1398
964
  /**
1399
965
  * Returns all knowledge nodes whose `governs` edges point to the given
1400
- * featureId (graph node ID: `feature:<featureId>`).
966
+ * systemId (graph node ID: `system:<systemId>`).
1401
967
  *
1402
968
  * @param graph - The built OrganizationGraph.
1403
- * @param featureId - The dotted feature id (e.g. `sales.crm`).
969
+ * @param systemId - The dotted system id (e.g. `sales.crm`).
1404
970
  */
1405
- declare function byFeature(graph: OrganizationGraph, featureId: string, knowledgeNodes: OrgKnowledgeNode[]): OrgKnowledgeNode[];
971
+ declare function bySystem(graph: OrganizationGraph, systemId: string, knowledgeNodes: OrgKnowledgeNode[]): OrgKnowledgeNode[];
1406
972
  /**
1407
973
  * Returns all knowledge nodes whose `kind` matches the given kind.
1408
974
  *
@@ -1428,7 +994,7 @@ declare function byOwner(_graph: OrganizationGraph, ownerId: string, knowledgeNo
1428
994
  * @param graph - The built OrganizationGraph.
1429
995
  * @param nodeId - The OM knowledge node id (e.g. `knowledge.outreach-playbook`).
1430
996
  * Also accepts the graph node ID format (`knowledge:knowledge.outreach-playbook`).
1431
- * @returns Array of target graph node IDs (e.g. `['feature:sales.crm', ...]`).
997
+ * @returns Array of target graph node IDs (e.g. `['system:sales.crm', ...]`).
1432
998
  */
1433
999
  declare function governs(graph: OrganizationGraph, nodeId: string): string[];
1434
1000
  /**
@@ -1436,20 +1002,20 @@ declare function governs(graph: OrganizationGraph, nodeId: string): string[];
1436
1002
  * (incoming `governs` edges pointing to `nodeId`).
1437
1003
  *
1438
1004
  * @param graph - The built OrganizationGraph.
1439
- * @param nodeId - The target graph node ID (e.g. `feature:sales.crm`) or a
1440
- * bare feature id (e.g. `sales.crm` will be prefixed with `feature:`).
1005
+ * @param nodeId - The target graph node ID (e.g. `system:sales.crm`) or a
1006
+ * bare system id (e.g. `sales.crm` — will be prefixed with `system:`).
1441
1007
  * @returns Array of source graph node IDs (e.g. `['knowledge:knowledge.outreach-playbook', ...]`).
1442
1008
  */
1443
1009
  declare function governedBy(graph: OrganizationGraph, nodeId: string): string[];
1444
1010
  /** The recognized mount axes for Knowledge Map paths. */
1445
- type KnowledgeMount = 'by-feature' | 'by-kind' | 'by-owner' | 'graph' | 'node';
1011
+ type KnowledgeMount = 'by-system' | 'by-kind' | 'by-owner' | 'graph' | 'node';
1446
1012
  /**
1447
1013
  * The result of parsing a Knowledge Map path string.
1448
1014
  *
1449
1015
  * Shape: `{ mount: KnowledgeMount, args: string[] }`
1450
1016
  *
1451
1017
  * Per-mount arg arrays:
1452
- * - `by-feature`: `[featureId]` (e.g. `['sales.crm']`)
1018
+ * - `by-system`: `[systemId]` (e.g. `['sales.crm']`)
1453
1019
  * - `by-kind`: `[kind]` (e.g. `['playbook']`)
1454
1020
  * - `by-owner`: `[ownerId]` (e.g. `['role.ops-lead']`)
1455
1021
  * - `graph`: `[nodeId, verb]` where verb is `'governs'` or `'governed-by'`
@@ -1463,12 +1029,12 @@ interface ParsedKnowledgePath {
1463
1029
  * Parses a Knowledge Map path string into a `{ mount, args }` descriptor.
1464
1030
  *
1465
1031
  * Supported path patterns:
1466
- * `/by-feature/<featureId>` `{ mount: 'by-feature', args: ['<featureId>'] }`
1467
- * `/by-kind/<kind>` `{ mount: 'by-kind', args: ['<kind>'] }`
1468
- * `/by-owner/<ownerId>` `{ mount: 'by-owner', args: ['<ownerId>'] }`
1469
- * `/graph/<nodeId>/governs` `{ mount: 'graph', args: ['<nodeId>', 'governs'] }`
1470
- * `/graph/<nodeId>/governed-by` `{ mount: 'graph', args: ['<nodeId>', 'governed-by'] }`
1471
- * `/<nodeId>` `{ mount: 'node', args: ['<nodeId>'] }`
1032
+ * `/by-system/<systemId>` -> `{ mount: 'by-system', args: ['<systemId>'] }`
1033
+ * `/by-kind/<kind>` → `{ mount: 'by-kind', args: ['<kind>'] }`
1034
+ * `/by-owner/<ownerId>` → `{ mount: 'by-owner', args: ['<ownerId>'] }`
1035
+ * `/graph/<nodeId>/governs` → `{ mount: 'graph', args: ['<nodeId>', 'governs'] }`
1036
+ * `/graph/<nodeId>/governed-by` → `{ mount: 'graph', args: ['<nodeId>', 'governed-by'] }`
1037
+ * `/<nodeId>` → `{ mount: 'node', args: ['<nodeId>'] }`
1472
1038
  *
1473
1039
  * The path MUST start with `/`. Trailing slashes are stripped before parsing.
1474
1040
  *
@@ -1481,7 +1047,7 @@ declare function parsePath(pathString: string): ParsedKnowledgePath;
1481
1047
  * Renders a list of `OrgKnowledgeNode` results as a human-friendly text table.
1482
1048
  *
1483
1049
  * Output format (one row per node):
1484
- * `<kind> <id> <title> <summary (truncated to 80 chars)>`
1050
+ * `<kind> <id> <title> — <summary (truncated to 80 chars)>`
1485
1051
  *
1486
1052
  * Returns `"(no results)"` when the array is empty.
1487
1053
  */
@@ -1491,10 +1057,10 @@ declare function formatText(results: OrgKnowledgeNode[]): string;
1491
1057
  *
1492
1058
  * Shape: `{ path, mount, args, results }`
1493
1059
  *
1494
- * - `path` the original path string passed to `parsePath`
1495
- * - `mount` the resolved mount axis
1496
- * - `args` the parsed arguments array
1497
- * - `results` the query results (array of `OrgKnowledgeNode` or string IDs)
1060
+ * - `path` — the original path string passed to `parsePath`
1061
+ * - `mount` — the resolved mount axis
1062
+ * - `args` — the parsed arguments array
1063
+ * - `results` — the query results (array of `OrgKnowledgeNode` or string IDs)
1498
1064
  */
1499
1065
  interface KnowledgeJsonEnvelope {
1500
1066
  path: string;
@@ -1506,10 +1072,10 @@ interface KnowledgeJsonEnvelope {
1506
1072
  * Formats query results as a wrapped JSON envelope string.
1507
1073
  *
1508
1074
  * The envelope shape is `{ path, mount, args, results }`. This is intentionally
1509
- * NOT flat `{ results }` consumers (agent skills, jq pipelines) need the
1075
+ * NOT flat `{ results }` — consumers (agent skills, jq pipelines) need the
1510
1076
  * mount + args to know how to interpret the results array.
1511
1077
  *
1512
- * @param input.path - The original path string (e.g. `"/by-feature/sales.crm"`).
1078
+ * @param input.path - The original path string (e.g. `"/by-system/sales.crm"`).
1513
1079
  * @param input.mount - The resolved mount axis.
1514
1080
  * @param input.args - The parsed argument array.
1515
1081
  * @param input.results - The query results.
@@ -1529,5 +1095,5 @@ declare function formatJson(input: {
1529
1095
  */
1530
1096
  declare function formatIdsOnly(results: OrgKnowledgeNode[] | string[]): string;
1531
1097
 
1532
- export { byFeature, byKind, byOwner, formatIdsOnly, formatJson, formatText, governedBy, governs, parsePath };
1098
+ export { byKind, byOwner, bySystem, formatIdsOnly, formatJson, formatText, governedBy, governs, parsePath };
1533
1099
  export type { KnowledgeJsonEnvelope, KnowledgeMount, ParsedKnowledgePath };