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