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