@elevasis/sdk 1.20.2 → 1.22.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 (164) hide show
  1. package/dist/cli.cjs +4220 -1583
  2. package/dist/index.d.ts +1035 -481
  3. package/dist/index.js +7381 -4187
  4. package/dist/node/index.d.ts +1 -3
  5. package/dist/node/index.js +40 -49
  6. package/dist/test-utils/index.d.ts +699 -123
  7. package/dist/test-utils/index.js +3826 -630
  8. package/dist/worker/index.js +3616 -442
  9. package/package.json +3 -3
  10. package/reference/_navigation.md +9 -7
  11. package/reference/_reference-manifest.json +1 -1
  12. package/reference/claude-config/hooks/post-edit-validate.mjs +98 -98
  13. package/reference/claude-config/hooks/scaffold-registry-reminder.mjs +188 -188
  14. package/reference/claude-config/hooks/tool-failure-recovery.mjs +73 -73
  15. package/reference/claude-config/registries/graph-skills.json +4 -4
  16. package/reference/claude-config/registries/knowledge-flags.json +0 -2
  17. package/reference/claude-config/rules/active-change-index.md +80 -80
  18. package/reference/claude-config/rules/agent-start-here.md +277 -273
  19. package/reference/claude-config/rules/deployment.md +57 -57
  20. package/reference/claude-config/rules/error-handling.md +56 -56
  21. package/reference/claude-config/rules/execution.md +40 -40
  22. package/reference/claude-config/rules/frontend.md +4 -4
  23. package/reference/claude-config/rules/observability.md +31 -31
  24. package/reference/claude-config/rules/operations.md +29 -17
  25. package/reference/claude-config/rules/organization-model.md +108 -40
  26. package/reference/claude-config/rules/organization-os.md +115 -113
  27. package/reference/claude-config/rules/package-taxonomy.md +33 -33
  28. package/reference/claude-config/rules/platform.md +42 -42
  29. package/reference/claude-config/rules/shared-types.md +49 -46
  30. package/reference/claude-config/rules/task-tracking.md +47 -47
  31. package/reference/claude-config/rules/ui.md +200 -200
  32. package/reference/claude-config/rules/vibe.md +235 -231
  33. package/reference/claude-config/scripts/statusline-command.js +18 -18
  34. package/reference/claude-config/settings.json +34 -34
  35. package/reference/claude-config/skills/deploy/{SKILL.md → skill.md} +156 -156
  36. package/reference/claude-config/skills/dsp/SKILL.md +66 -66
  37. package/reference/claude-config/skills/elevasis/SKILL.md +235 -235
  38. package/reference/claude-config/skills/explore/SKILL.md +6 -6
  39. package/reference/claude-config/skills/git-sync/SKILL.md +126 -126
  40. package/reference/claude-config/skills/knowledge/SKILL.md +330 -271
  41. package/reference/claude-config/skills/knowledge/operations/codify-level-a.md +100 -100
  42. package/reference/claude-config/skills/knowledge/operations/codify-level-b.md +159 -158
  43. package/reference/claude-config/skills/knowledge/operations/customers.md +109 -109
  44. package/reference/claude-config/skills/knowledge/operations/features.md +76 -113
  45. package/reference/claude-config/skills/knowledge/operations/goals.md +118 -118
  46. package/reference/claude-config/skills/knowledge/operations/identity.md +93 -93
  47. package/reference/claude-config/skills/knowledge/operations/labels.md +94 -89
  48. package/reference/claude-config/skills/knowledge/operations/offerings.md +109 -109
  49. package/reference/claude-config/skills/knowledge/operations/roles.md +99 -99
  50. package/reference/claude-config/skills/knowledge/operations/techStack.md +30 -30
  51. package/reference/claude-config/skills/project/SKILL.md +1088 -1088
  52. package/reference/claude-config/skills/run-ui/SKILL.md +73 -73
  53. package/reference/claude-config/skills/save/SKILL.md +3 -3
  54. package/reference/claude-config/skills/setup/SKILL.md +275 -275
  55. package/reference/claude-config/skills/status/SKILL.md +59 -59
  56. package/reference/claude-config/skills/submit-request/SKILL.md +180 -180
  57. package/reference/claude-config/skills/sync/SKILL.md +47 -47
  58. package/reference/claude-config/skills/tutorial/SKILL.md +259 -259
  59. package/reference/claude-config/skills/tutorial/progress-template.md +74 -74
  60. package/reference/claude-config/skills/tutorial/technical.md +1303 -1306
  61. package/reference/claude-config/skills/tutorial/vibe-coder.md +890 -890
  62. package/reference/claude-config/sync-notes/2026-04-22-git-sync-and-sync-notes.md +27 -27
  63. package/reference/claude-config/sync-notes/2026-04-22-lead-gen-deliverability-removal.md +30 -30
  64. package/reference/claude-config/sync-notes/2026-04-24-test-utils-and-template-tests.md +73 -73
  65. package/reference/claude-config/sync-notes/2026-04-24-ui-consolidation-and-sdk-cli-train.md +86 -86
  66. package/reference/claude-config/sync-notes/2026-04-25-auth-role-system-and-settings-roles.md +55 -55
  67. package/reference/claude-config/sync-notes/2026-04-27-crm-hitl-action-layer-cutover.md +97 -97
  68. package/reference/claude-config/sync-notes/2026-04-27-lead-gen-substrate-train.md +112 -112
  69. package/reference/claude-config/sync-notes/2026-04-29-crm-state-and-lead-gen-processing-status.md +93 -93
  70. package/reference/claude-config/sync-notes/2026-05-02-crm-ownership-next-action.md +58 -58
  71. package/reference/claude-config/sync-notes/2026-05-02-template-hardcode-workos-config.md +56 -56
  72. package/reference/claude-config/sync-notes/2026-05-04-elevasis-workspace.md +71 -71
  73. package/reference/claude-config/sync-notes/2026-05-04-knowledge-bundle.md +83 -83
  74. package/reference/claude-config/sync-notes/2026-05-04-template-skills-run-ui-and-tutorial.md +59 -59
  75. package/reference/claude-config/sync-notes/2026-05-05-list-builder.md +42 -42
  76. package/reference/claude-config/sync-notes/2026-05-06-crm-spine.md +60 -60
  77. package/reference/claude-config/sync-notes/2026-05-06-sdk-changes-release-train.md +37 -37
  78. package/reference/claude-config/sync-notes/2026-05-07-sdk-changes-release-train.md +34 -34
  79. package/reference/claude-config/sync-notes/2026-05-08-resource-governance-scaffold-guidance.md +38 -38
  80. package/reference/claude-config/sync-notes/2026-05-09-clients-domain.md +32 -32
  81. package/reference/claude-config/sync-notes/2026-05-09-command-system.md +33 -33
  82. package/reference/claude-config/sync-notes/2026-05-09-resource-governance-and-misc.md +69 -69
  83. package/reference/claude-config/sync-notes/2026-05-12-sdk-ready-release-train.md +30 -0
  84. package/reference/claude-config/sync-notes/2026-05-14-organization-model-ontology-refactor.md +42 -0
  85. package/reference/claude-config/sync-notes/README.md +43 -43
  86. package/reference/cli.mdx +808 -668
  87. package/reference/concepts.mdx +146 -146
  88. package/reference/deployment/api.mdx +297 -297
  89. package/reference/deployment/command-center.mdx +209 -209
  90. package/reference/deployment/index.mdx +195 -195
  91. package/reference/deployment/provided-features.mdx +107 -93
  92. package/reference/deployment/ui-execution.mdx +250 -250
  93. package/reference/examples/organization-model.ts +147 -84
  94. package/reference/framework/agent.mdx +156 -156
  95. package/reference/framework/index.mdx +195 -195
  96. package/reference/framework/interaction-guidance.mdx +182 -182
  97. package/reference/framework/memory.mdx +326 -326
  98. package/reference/framework/project-structure.mdx +282 -282
  99. package/reference/framework/tutorial-system.mdx +135 -135
  100. package/reference/getting-started.mdx +142 -142
  101. package/reference/index.mdx +106 -106
  102. package/reference/packages/core/src/README.md +14 -14
  103. package/reference/packages/core/src/business/README.md +2 -2
  104. package/reference/packages/core/src/knowledge/README.md +33 -32
  105. package/reference/packages/core/src/organization-model/README.md +149 -109
  106. package/reference/packages/core/src/test-utils/README.md +37 -37
  107. package/reference/packages/ui/src/api/README.md +18 -18
  108. package/reference/packages/ui/src/app/README.md +24 -24
  109. package/reference/packages/ui/src/auth/README.md +18 -18
  110. package/reference/packages/ui/src/components/README.md +24 -24
  111. package/reference/packages/ui/src/execution/README.md +16 -16
  112. package/reference/packages/ui/src/features/README.md +28 -28
  113. package/reference/packages/ui/src/graph/README.md +16 -16
  114. package/reference/packages/ui/src/hooks/README.md +23 -23
  115. package/reference/packages/ui/src/initialization/README.md +19 -19
  116. package/reference/packages/ui/src/knowledge/README.md +31 -31
  117. package/reference/packages/ui/src/organization/README.md +18 -18
  118. package/reference/packages/ui/src/profile/README.md +19 -19
  119. package/reference/packages/ui/src/provider/README.md +32 -32
  120. package/reference/packages/ui/src/router/README.md +18 -18
  121. package/reference/packages/ui/src/sse/README.md +13 -13
  122. package/reference/packages/ui/src/test-utils/README.md +7 -7
  123. package/reference/packages/ui/src/theme/README.md +23 -23
  124. package/reference/packages/ui/src/theme/presets/README.md +19 -19
  125. package/reference/packages/ui/src/types/README.md +16 -16
  126. package/reference/packages/ui/src/utils/README.md +18 -18
  127. package/reference/packages/ui/src/zustand/README.md +18 -18
  128. package/reference/platform-tools/adapters-integration.mdx +301 -301
  129. package/reference/platform-tools/adapters-platform.mdx +553 -553
  130. package/reference/platform-tools/index.mdx +217 -217
  131. package/reference/platform-tools/type-safety.mdx +82 -82
  132. package/reference/resources/index.mdx +349 -349
  133. package/reference/resources/patterns.mdx +449 -449
  134. package/reference/resources/types.mdx +116 -116
  135. package/reference/roadmap.mdx +165 -165
  136. package/reference/runtime.mdx +173 -173
  137. package/reference/scaffold/core/organization-graph.mdx +110 -89
  138. package/reference/scaffold/core/organization-model.mdx +226 -171
  139. package/reference/scaffold/index.mdx +67 -67
  140. package/reference/scaffold/operations/propagation-pipeline.md +77 -77
  141. package/reference/scaffold/operations/scaffold-maintenance.md +10 -10
  142. package/reference/scaffold/operations/workflow-recipes.md +138 -138
  143. package/reference/scaffold/recipes/add-a-feature.md +310 -88
  144. package/reference/scaffold/recipes/add-a-resource.md +137 -117
  145. package/reference/scaffold/recipes/customize-crm-actions.md +439 -439
  146. package/reference/scaffold/recipes/customize-knowledge-browser.md +384 -0
  147. package/reference/scaffold/recipes/customize-organization-model.md +281 -118
  148. package/reference/scaffold/recipes/extend-a-base-entity.md +8 -8
  149. package/reference/scaffold/recipes/extend-crm.md +40 -39
  150. package/reference/scaffold/recipes/extend-lead-gen.md +400 -401
  151. package/reference/scaffold/recipes/gate-by-feature-or-admin.md +118 -114
  152. package/reference/scaffold/recipes/index.md +47 -46
  153. package/reference/scaffold/recipes/query-the-knowledge-graph.md +227 -0
  154. package/reference/scaffold/reference/contracts.md +2389 -2121
  155. package/reference/scaffold/reference/feature-registry.md +9 -20
  156. package/reference/scaffold/reference/glossary.md +76 -76
  157. package/reference/scaffold/ui/composition-extensibility.mdx +233 -233
  158. package/reference/scaffold/ui/customization.md +243 -243
  159. package/reference/scaffold/ui/feature-flags-and-gating.md +46 -46
  160. package/reference/scaffold/ui/feature-shell.mdx +72 -72
  161. package/reference/scaffold/ui/recipes.md +221 -213
  162. package/reference/spine/spine-primer.md +96 -96
  163. package/reference/templates/index.mdx +47 -47
  164. package/reference/troubleshooting.mdx +223 -223
@@ -336,125 +336,512 @@ interface ModelConfig {
336
336
  }
337
337
 
338
338
  declare const ResourceGovernanceStatusSchema: z.ZodEnum<{
339
- active: "active";
340
339
  deprecated: "deprecated";
340
+ active: "active";
341
341
  archived: "archived";
342
342
  }>;
343
343
  declare const WorkflowResourceEntrySchema: z.ZodObject<{
344
344
  id: z.ZodString;
345
- systemId: z.ZodString;
345
+ order: z.ZodDefault<z.ZodNumber>;
346
+ systemPath: z.ZodString;
346
347
  ownerRoleId: z.ZodOptional<z.ZodString>;
347
348
  status: z.ZodEnum<{
348
- active: "active";
349
349
  deprecated: "deprecated";
350
+ active: "active";
350
351
  archived: "archived";
351
352
  }>;
353
+ ontology: z.ZodOptional<z.ZodObject<{
354
+ implements: z.ZodOptional<z.ZodArray<z.ZodString>>;
355
+ reads: z.ZodOptional<z.ZodArray<z.ZodString>>;
356
+ writes: z.ZodOptional<z.ZodArray<z.ZodString>>;
357
+ usesCatalogs: z.ZodOptional<z.ZodArray<z.ZodString>>;
358
+ emits: z.ZodOptional<z.ZodArray<z.ZodString>>;
359
+ }, z.core.$strip>>;
360
+ codeRefs: z.ZodDefault<z.ZodArray<z.ZodObject<{
361
+ path: z.ZodString;
362
+ role: z.ZodEnum<{
363
+ schema: "schema";
364
+ config: "config";
365
+ entrypoint: "entrypoint";
366
+ handler: "handler";
367
+ test: "test";
368
+ docs: "docs";
369
+ }>;
370
+ symbol: z.ZodOptional<z.ZodString>;
371
+ description: z.ZodOptional<z.ZodString>;
372
+ }, z.core.$strip>>>;
352
373
  kind: z.ZodLiteral<"workflow">;
353
- capabilityKey: z.ZodOptional<z.ZodString>;
374
+ actionKey: z.ZodOptional<z.ZodString>;
375
+ emits: z.ZodOptional<z.ZodArray<z.ZodObject<{
376
+ eventKey: z.ZodString;
377
+ label: z.ZodString;
378
+ payloadSchema: z.ZodOptional<z.ZodString>;
379
+ lifecycle: z.ZodOptional<z.ZodEnum<{
380
+ deprecated: "deprecated";
381
+ draft: "draft";
382
+ beta: "beta";
383
+ active: "active";
384
+ archived: "archived";
385
+ }>>;
386
+ }, z.core.$strip>>>;
354
387
  }, z.core.$strip>;
355
388
  declare const AgentResourceEntrySchema: z.ZodObject<{
356
389
  id: z.ZodString;
357
- systemId: z.ZodString;
390
+ order: z.ZodDefault<z.ZodNumber>;
391
+ systemPath: z.ZodString;
358
392
  ownerRoleId: z.ZodOptional<z.ZodString>;
359
393
  status: z.ZodEnum<{
360
- active: "active";
361
394
  deprecated: "deprecated";
395
+ active: "active";
362
396
  archived: "archived";
363
397
  }>;
398
+ ontology: z.ZodOptional<z.ZodObject<{
399
+ implements: z.ZodOptional<z.ZodArray<z.ZodString>>;
400
+ reads: z.ZodOptional<z.ZodArray<z.ZodString>>;
401
+ writes: z.ZodOptional<z.ZodArray<z.ZodString>>;
402
+ usesCatalogs: z.ZodOptional<z.ZodArray<z.ZodString>>;
403
+ emits: z.ZodOptional<z.ZodArray<z.ZodString>>;
404
+ }, z.core.$strip>>;
405
+ codeRefs: z.ZodDefault<z.ZodArray<z.ZodObject<{
406
+ path: z.ZodString;
407
+ role: z.ZodEnum<{
408
+ schema: "schema";
409
+ config: "config";
410
+ entrypoint: "entrypoint";
411
+ handler: "handler";
412
+ test: "test";
413
+ docs: "docs";
414
+ }>;
415
+ symbol: z.ZodOptional<z.ZodString>;
416
+ description: z.ZodOptional<z.ZodString>;
417
+ }, z.core.$strip>>>;
364
418
  kind: z.ZodLiteral<"agent">;
365
419
  agentKind: z.ZodEnum<{
420
+ platform: "platform";
366
421
  orchestrator: "orchestrator";
367
422
  specialist: "specialist";
368
423
  utility: "utility";
369
- system: "system";
370
424
  }>;
371
425
  actsAsRoleId: z.ZodOptional<z.ZodString>;
372
426
  sessionCapable: z.ZodBoolean;
427
+ invocations: z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
428
+ kind: z.ZodLiteral<"slash-command">;
429
+ command: z.ZodString;
430
+ toolFactory: z.ZodOptional<z.ZodString>;
431
+ }, z.core.$strip>, z.ZodObject<{
432
+ kind: z.ZodLiteral<"mcp-tool">;
433
+ server: z.ZodString;
434
+ name: z.ZodString;
435
+ }, z.core.$strip>, z.ZodObject<{
436
+ kind: z.ZodLiteral<"api-endpoint">;
437
+ method: z.ZodEnum<{
438
+ GET: "GET";
439
+ POST: "POST";
440
+ PATCH: "PATCH";
441
+ DELETE: "DELETE";
442
+ }>;
443
+ path: z.ZodString;
444
+ requestSchema: z.ZodOptional<z.ZodString>;
445
+ responseSchema: z.ZodOptional<z.ZodString>;
446
+ }, z.core.$strip>, z.ZodObject<{
447
+ kind: z.ZodLiteral<"script-execution">;
448
+ resourceId: z.ZodString;
449
+ }, z.core.$strip>], "kind">>>;
450
+ emits: z.ZodOptional<z.ZodArray<z.ZodObject<{
451
+ eventKey: z.ZodString;
452
+ label: z.ZodString;
453
+ payloadSchema: z.ZodOptional<z.ZodString>;
454
+ lifecycle: z.ZodOptional<z.ZodEnum<{
455
+ deprecated: "deprecated";
456
+ draft: "draft";
457
+ beta: "beta";
458
+ active: "active";
459
+ archived: "archived";
460
+ }>>;
461
+ }, z.core.$strip>>>;
373
462
  }, z.core.$strip>;
374
463
  declare const ResourceEntrySchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
375
464
  id: z.ZodString;
376
- systemId: z.ZodString;
465
+ order: z.ZodDefault<z.ZodNumber>;
466
+ systemPath: z.ZodString;
377
467
  ownerRoleId: z.ZodOptional<z.ZodString>;
378
468
  status: z.ZodEnum<{
379
- active: "active";
380
469
  deprecated: "deprecated";
470
+ active: "active";
381
471
  archived: "archived";
382
472
  }>;
473
+ ontology: z.ZodOptional<z.ZodObject<{
474
+ implements: z.ZodOptional<z.ZodArray<z.ZodString>>;
475
+ reads: z.ZodOptional<z.ZodArray<z.ZodString>>;
476
+ writes: z.ZodOptional<z.ZodArray<z.ZodString>>;
477
+ usesCatalogs: z.ZodOptional<z.ZodArray<z.ZodString>>;
478
+ emits: z.ZodOptional<z.ZodArray<z.ZodString>>;
479
+ }, z.core.$strip>>;
480
+ codeRefs: z.ZodDefault<z.ZodArray<z.ZodObject<{
481
+ path: z.ZodString;
482
+ role: z.ZodEnum<{
483
+ schema: "schema";
484
+ config: "config";
485
+ entrypoint: "entrypoint";
486
+ handler: "handler";
487
+ test: "test";
488
+ docs: "docs";
489
+ }>;
490
+ symbol: z.ZodOptional<z.ZodString>;
491
+ description: z.ZodOptional<z.ZodString>;
492
+ }, z.core.$strip>>>;
383
493
  kind: z.ZodLiteral<"workflow">;
384
- capabilityKey: z.ZodOptional<z.ZodString>;
494
+ actionKey: z.ZodOptional<z.ZodString>;
495
+ emits: z.ZodOptional<z.ZodArray<z.ZodObject<{
496
+ eventKey: z.ZodString;
497
+ label: z.ZodString;
498
+ payloadSchema: z.ZodOptional<z.ZodString>;
499
+ lifecycle: z.ZodOptional<z.ZodEnum<{
500
+ deprecated: "deprecated";
501
+ draft: "draft";
502
+ beta: "beta";
503
+ active: "active";
504
+ archived: "archived";
505
+ }>>;
506
+ }, z.core.$strip>>>;
385
507
  }, z.core.$strip>, z.ZodObject<{
386
508
  id: z.ZodString;
387
- systemId: z.ZodString;
509
+ order: z.ZodDefault<z.ZodNumber>;
510
+ systemPath: z.ZodString;
388
511
  ownerRoleId: z.ZodOptional<z.ZodString>;
389
512
  status: z.ZodEnum<{
390
- active: "active";
391
513
  deprecated: "deprecated";
514
+ active: "active";
392
515
  archived: "archived";
393
516
  }>;
517
+ ontology: z.ZodOptional<z.ZodObject<{
518
+ implements: z.ZodOptional<z.ZodArray<z.ZodString>>;
519
+ reads: z.ZodOptional<z.ZodArray<z.ZodString>>;
520
+ writes: z.ZodOptional<z.ZodArray<z.ZodString>>;
521
+ usesCatalogs: z.ZodOptional<z.ZodArray<z.ZodString>>;
522
+ emits: z.ZodOptional<z.ZodArray<z.ZodString>>;
523
+ }, z.core.$strip>>;
524
+ codeRefs: z.ZodDefault<z.ZodArray<z.ZodObject<{
525
+ path: z.ZodString;
526
+ role: z.ZodEnum<{
527
+ schema: "schema";
528
+ config: "config";
529
+ entrypoint: "entrypoint";
530
+ handler: "handler";
531
+ test: "test";
532
+ docs: "docs";
533
+ }>;
534
+ symbol: z.ZodOptional<z.ZodString>;
535
+ description: z.ZodOptional<z.ZodString>;
536
+ }, z.core.$strip>>>;
394
537
  kind: z.ZodLiteral<"agent">;
395
538
  agentKind: z.ZodEnum<{
539
+ platform: "platform";
396
540
  orchestrator: "orchestrator";
397
541
  specialist: "specialist";
398
542
  utility: "utility";
399
- system: "system";
400
543
  }>;
401
544
  actsAsRoleId: z.ZodOptional<z.ZodString>;
402
545
  sessionCapable: z.ZodBoolean;
546
+ invocations: z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
547
+ kind: z.ZodLiteral<"slash-command">;
548
+ command: z.ZodString;
549
+ toolFactory: z.ZodOptional<z.ZodString>;
550
+ }, z.core.$strip>, z.ZodObject<{
551
+ kind: z.ZodLiteral<"mcp-tool">;
552
+ server: z.ZodString;
553
+ name: z.ZodString;
554
+ }, z.core.$strip>, z.ZodObject<{
555
+ kind: z.ZodLiteral<"api-endpoint">;
556
+ method: z.ZodEnum<{
557
+ GET: "GET";
558
+ POST: "POST";
559
+ PATCH: "PATCH";
560
+ DELETE: "DELETE";
561
+ }>;
562
+ path: z.ZodString;
563
+ requestSchema: z.ZodOptional<z.ZodString>;
564
+ responseSchema: z.ZodOptional<z.ZodString>;
565
+ }, z.core.$strip>, z.ZodObject<{
566
+ kind: z.ZodLiteral<"script-execution">;
567
+ resourceId: z.ZodString;
568
+ }, z.core.$strip>], "kind">>>;
569
+ emits: z.ZodOptional<z.ZodArray<z.ZodObject<{
570
+ eventKey: z.ZodString;
571
+ label: z.ZodString;
572
+ payloadSchema: z.ZodOptional<z.ZodString>;
573
+ lifecycle: z.ZodOptional<z.ZodEnum<{
574
+ deprecated: "deprecated";
575
+ draft: "draft";
576
+ beta: "beta";
577
+ active: "active";
578
+ archived: "archived";
579
+ }>>;
580
+ }, z.core.$strip>>>;
403
581
  }, z.core.$strip>, z.ZodObject<{
404
582
  id: z.ZodString;
405
- systemId: z.ZodString;
583
+ order: z.ZodDefault<z.ZodNumber>;
584
+ systemPath: z.ZodString;
406
585
  ownerRoleId: z.ZodOptional<z.ZodString>;
407
586
  status: z.ZodEnum<{
408
- active: "active";
409
587
  deprecated: "deprecated";
588
+ active: "active";
410
589
  archived: "archived";
411
590
  }>;
591
+ ontology: z.ZodOptional<z.ZodObject<{
592
+ implements: z.ZodOptional<z.ZodArray<z.ZodString>>;
593
+ reads: z.ZodOptional<z.ZodArray<z.ZodString>>;
594
+ writes: z.ZodOptional<z.ZodArray<z.ZodString>>;
595
+ usesCatalogs: z.ZodOptional<z.ZodArray<z.ZodString>>;
596
+ emits: z.ZodOptional<z.ZodArray<z.ZodString>>;
597
+ }, z.core.$strip>>;
598
+ codeRefs: z.ZodDefault<z.ZodArray<z.ZodObject<{
599
+ path: z.ZodString;
600
+ role: z.ZodEnum<{
601
+ schema: "schema";
602
+ config: "config";
603
+ entrypoint: "entrypoint";
604
+ handler: "handler";
605
+ test: "test";
606
+ docs: "docs";
607
+ }>;
608
+ symbol: z.ZodOptional<z.ZodString>;
609
+ description: z.ZodOptional<z.ZodString>;
610
+ }, z.core.$strip>>>;
412
611
  kind: z.ZodLiteral<"integration">;
413
612
  provider: z.ZodString;
613
+ }, z.core.$strip>, z.ZodObject<{
614
+ id: z.ZodString;
615
+ order: z.ZodDefault<z.ZodNumber>;
616
+ systemPath: z.ZodString;
617
+ ownerRoleId: z.ZodOptional<z.ZodString>;
618
+ status: z.ZodEnum<{
619
+ deprecated: "deprecated";
620
+ active: "active";
621
+ archived: "archived";
622
+ }>;
623
+ ontology: z.ZodOptional<z.ZodObject<{
624
+ implements: z.ZodOptional<z.ZodArray<z.ZodString>>;
625
+ reads: z.ZodOptional<z.ZodArray<z.ZodString>>;
626
+ writes: z.ZodOptional<z.ZodArray<z.ZodString>>;
627
+ usesCatalogs: z.ZodOptional<z.ZodArray<z.ZodString>>;
628
+ emits: z.ZodOptional<z.ZodArray<z.ZodString>>;
629
+ }, z.core.$strip>>;
630
+ codeRefs: z.ZodDefault<z.ZodArray<z.ZodObject<{
631
+ path: z.ZodString;
632
+ role: z.ZodEnum<{
633
+ schema: "schema";
634
+ config: "config";
635
+ entrypoint: "entrypoint";
636
+ handler: "handler";
637
+ test: "test";
638
+ docs: "docs";
639
+ }>;
640
+ symbol: z.ZodOptional<z.ZodString>;
641
+ description: z.ZodOptional<z.ZodString>;
642
+ }, z.core.$strip>>>;
643
+ kind: z.ZodLiteral<"script">;
644
+ language: z.ZodEnum<{
645
+ shell: "shell";
646
+ sql: "sql";
647
+ typescript: "typescript";
648
+ python: "python";
649
+ }>;
650
+ source: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
651
+ file: z.ZodString;
652
+ }, z.core.$strip>]>;
414
653
  }, z.core.$strip>], "kind">;
415
- declare const ResourcesDomainSchema: z.ZodObject<{
416
- entries: z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
417
- id: z.ZodString;
418
- systemId: z.ZodString;
419
- ownerRoleId: z.ZodOptional<z.ZodString>;
420
- status: z.ZodEnum<{
421
- active: "active";
422
- deprecated: "deprecated";
423
- archived: "archived";
654
+ declare const ResourcesDomainSchema: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
655
+ id: z.ZodString;
656
+ order: z.ZodDefault<z.ZodNumber>;
657
+ systemPath: z.ZodString;
658
+ ownerRoleId: z.ZodOptional<z.ZodString>;
659
+ status: z.ZodEnum<{
660
+ deprecated: "deprecated";
661
+ active: "active";
662
+ archived: "archived";
663
+ }>;
664
+ ontology: z.ZodOptional<z.ZodObject<{
665
+ implements: z.ZodOptional<z.ZodArray<z.ZodString>>;
666
+ reads: z.ZodOptional<z.ZodArray<z.ZodString>>;
667
+ writes: z.ZodOptional<z.ZodArray<z.ZodString>>;
668
+ usesCatalogs: z.ZodOptional<z.ZodArray<z.ZodString>>;
669
+ emits: z.ZodOptional<z.ZodArray<z.ZodString>>;
670
+ }, z.core.$strip>>;
671
+ codeRefs: z.ZodDefault<z.ZodArray<z.ZodObject<{
672
+ path: z.ZodString;
673
+ role: z.ZodEnum<{
674
+ schema: "schema";
675
+ config: "config";
676
+ entrypoint: "entrypoint";
677
+ handler: "handler";
678
+ test: "test";
679
+ docs: "docs";
424
680
  }>;
425
- kind: z.ZodLiteral<"workflow">;
426
- capabilityKey: z.ZodOptional<z.ZodString>;
427
- }, z.core.$strip>, z.ZodObject<{
428
- id: z.ZodString;
429
- systemId: z.ZodString;
430
- ownerRoleId: z.ZodOptional<z.ZodString>;
431
- status: z.ZodEnum<{
432
- active: "active";
681
+ symbol: z.ZodOptional<z.ZodString>;
682
+ description: z.ZodOptional<z.ZodString>;
683
+ }, z.core.$strip>>>;
684
+ kind: z.ZodLiteral<"workflow">;
685
+ actionKey: z.ZodOptional<z.ZodString>;
686
+ emits: z.ZodOptional<z.ZodArray<z.ZodObject<{
687
+ eventKey: z.ZodString;
688
+ label: z.ZodString;
689
+ payloadSchema: z.ZodOptional<z.ZodString>;
690
+ lifecycle: z.ZodOptional<z.ZodEnum<{
433
691
  deprecated: "deprecated";
692
+ draft: "draft";
693
+ beta: "beta";
694
+ active: "active";
434
695
  archived: "archived";
696
+ }>>;
697
+ }, z.core.$strip>>>;
698
+ }, z.core.$strip>, z.ZodObject<{
699
+ id: z.ZodString;
700
+ order: z.ZodDefault<z.ZodNumber>;
701
+ systemPath: z.ZodString;
702
+ ownerRoleId: z.ZodOptional<z.ZodString>;
703
+ status: z.ZodEnum<{
704
+ deprecated: "deprecated";
705
+ active: "active";
706
+ archived: "archived";
707
+ }>;
708
+ ontology: z.ZodOptional<z.ZodObject<{
709
+ implements: z.ZodOptional<z.ZodArray<z.ZodString>>;
710
+ reads: z.ZodOptional<z.ZodArray<z.ZodString>>;
711
+ writes: z.ZodOptional<z.ZodArray<z.ZodString>>;
712
+ usesCatalogs: z.ZodOptional<z.ZodArray<z.ZodString>>;
713
+ emits: z.ZodOptional<z.ZodArray<z.ZodString>>;
714
+ }, z.core.$strip>>;
715
+ codeRefs: z.ZodDefault<z.ZodArray<z.ZodObject<{
716
+ path: z.ZodString;
717
+ role: z.ZodEnum<{
718
+ schema: "schema";
719
+ config: "config";
720
+ entrypoint: "entrypoint";
721
+ handler: "handler";
722
+ test: "test";
723
+ docs: "docs";
435
724
  }>;
436
- kind: z.ZodLiteral<"agent">;
437
- agentKind: z.ZodEnum<{
438
- orchestrator: "orchestrator";
439
- specialist: "specialist";
440
- utility: "utility";
441
- system: "system";
725
+ symbol: z.ZodOptional<z.ZodString>;
726
+ description: z.ZodOptional<z.ZodString>;
727
+ }, z.core.$strip>>>;
728
+ kind: z.ZodLiteral<"agent">;
729
+ agentKind: z.ZodEnum<{
730
+ platform: "platform";
731
+ orchestrator: "orchestrator";
732
+ specialist: "specialist";
733
+ utility: "utility";
734
+ }>;
735
+ actsAsRoleId: z.ZodOptional<z.ZodString>;
736
+ sessionCapable: z.ZodBoolean;
737
+ invocations: z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
738
+ kind: z.ZodLiteral<"slash-command">;
739
+ command: z.ZodString;
740
+ toolFactory: z.ZodOptional<z.ZodString>;
741
+ }, z.core.$strip>, z.ZodObject<{
742
+ kind: z.ZodLiteral<"mcp-tool">;
743
+ server: z.ZodString;
744
+ name: z.ZodString;
745
+ }, z.core.$strip>, z.ZodObject<{
746
+ kind: z.ZodLiteral<"api-endpoint">;
747
+ method: z.ZodEnum<{
748
+ GET: "GET";
749
+ POST: "POST";
750
+ PATCH: "PATCH";
751
+ DELETE: "DELETE";
442
752
  }>;
443
- actsAsRoleId: z.ZodOptional<z.ZodString>;
444
- sessionCapable: z.ZodBoolean;
753
+ path: z.ZodString;
754
+ requestSchema: z.ZodOptional<z.ZodString>;
755
+ responseSchema: z.ZodOptional<z.ZodString>;
445
756
  }, z.core.$strip>, z.ZodObject<{
446
- id: z.ZodString;
447
- systemId: z.ZodString;
448
- ownerRoleId: z.ZodOptional<z.ZodString>;
449
- status: z.ZodEnum<{
450
- active: "active";
757
+ kind: z.ZodLiteral<"script-execution">;
758
+ resourceId: z.ZodString;
759
+ }, z.core.$strip>], "kind">>>;
760
+ emits: z.ZodOptional<z.ZodArray<z.ZodObject<{
761
+ eventKey: z.ZodString;
762
+ label: z.ZodString;
763
+ payloadSchema: z.ZodOptional<z.ZodString>;
764
+ lifecycle: z.ZodOptional<z.ZodEnum<{
451
765
  deprecated: "deprecated";
766
+ draft: "draft";
767
+ beta: "beta";
768
+ active: "active";
452
769
  archived: "archived";
770
+ }>>;
771
+ }, z.core.$strip>>>;
772
+ }, z.core.$strip>, z.ZodObject<{
773
+ id: z.ZodString;
774
+ order: z.ZodDefault<z.ZodNumber>;
775
+ systemPath: z.ZodString;
776
+ ownerRoleId: z.ZodOptional<z.ZodString>;
777
+ status: z.ZodEnum<{
778
+ deprecated: "deprecated";
779
+ active: "active";
780
+ archived: "archived";
781
+ }>;
782
+ ontology: z.ZodOptional<z.ZodObject<{
783
+ implements: z.ZodOptional<z.ZodArray<z.ZodString>>;
784
+ reads: z.ZodOptional<z.ZodArray<z.ZodString>>;
785
+ writes: z.ZodOptional<z.ZodArray<z.ZodString>>;
786
+ usesCatalogs: z.ZodOptional<z.ZodArray<z.ZodString>>;
787
+ emits: z.ZodOptional<z.ZodArray<z.ZodString>>;
788
+ }, z.core.$strip>>;
789
+ codeRefs: z.ZodDefault<z.ZodArray<z.ZodObject<{
790
+ path: z.ZodString;
791
+ role: z.ZodEnum<{
792
+ schema: "schema";
793
+ config: "config";
794
+ entrypoint: "entrypoint";
795
+ handler: "handler";
796
+ test: "test";
797
+ docs: "docs";
453
798
  }>;
454
- kind: z.ZodLiteral<"integration">;
455
- provider: z.ZodString;
456
- }, z.core.$strip>], "kind">>>;
457
- }, z.core.$strip>;
799
+ symbol: z.ZodOptional<z.ZodString>;
800
+ description: z.ZodOptional<z.ZodString>;
801
+ }, z.core.$strip>>>;
802
+ kind: z.ZodLiteral<"integration">;
803
+ provider: z.ZodString;
804
+ }, z.core.$strip>, z.ZodObject<{
805
+ id: z.ZodString;
806
+ order: z.ZodDefault<z.ZodNumber>;
807
+ systemPath: z.ZodString;
808
+ ownerRoleId: z.ZodOptional<z.ZodString>;
809
+ status: z.ZodEnum<{
810
+ deprecated: "deprecated";
811
+ active: "active";
812
+ archived: "archived";
813
+ }>;
814
+ ontology: z.ZodOptional<z.ZodObject<{
815
+ implements: z.ZodOptional<z.ZodArray<z.ZodString>>;
816
+ reads: z.ZodOptional<z.ZodArray<z.ZodString>>;
817
+ writes: z.ZodOptional<z.ZodArray<z.ZodString>>;
818
+ usesCatalogs: z.ZodOptional<z.ZodArray<z.ZodString>>;
819
+ emits: z.ZodOptional<z.ZodArray<z.ZodString>>;
820
+ }, z.core.$strip>>;
821
+ codeRefs: z.ZodDefault<z.ZodArray<z.ZodObject<{
822
+ path: z.ZodString;
823
+ role: z.ZodEnum<{
824
+ schema: "schema";
825
+ config: "config";
826
+ entrypoint: "entrypoint";
827
+ handler: "handler";
828
+ test: "test";
829
+ docs: "docs";
830
+ }>;
831
+ symbol: z.ZodOptional<z.ZodString>;
832
+ description: z.ZodOptional<z.ZodString>;
833
+ }, z.core.$strip>>>;
834
+ kind: z.ZodLiteral<"script">;
835
+ language: z.ZodEnum<{
836
+ shell: "shell";
837
+ sql: "sql";
838
+ typescript: "typescript";
839
+ python: "python";
840
+ }>;
841
+ source: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
842
+ file: z.ZodString;
843
+ }, z.core.$strip>]>;
844
+ }, z.core.$strip>], "kind">>>;
458
845
  type ResourceGovernanceStatus = z.infer<typeof ResourceGovernanceStatusSchema>;
459
846
  type WorkflowResourceEntry = z.infer<typeof WorkflowResourceEntrySchema>;
460
847
  type AgentResourceEntry = z.infer<typeof AgentResourceEntrySchema>;
@@ -569,8 +956,8 @@ interface WorkflowConfig extends ResourceDefinition {
569
956
  type: 'workflow';
570
957
  /** OM descriptor backing canonical identity and governance metadata. */
571
958
  resource?: WorkflowResourceEntry;
572
- /** Lead-gen capability key for registry derivation (e.g. 'lead-gen.company.apollo-import') */
573
- capabilityKey?: string;
959
+ /** Lead-gen action key for registry derivation (e.g. 'lead-gen.company.apollo-import') */
960
+ actionKey?: string;
574
961
  }
575
962
  interface WorkflowStepDefinition {
576
963
  id: string;
@@ -921,7 +1308,7 @@ interface KnowledgeContent {
921
1308
  * AIUsageCollector/AICallContext) and the worker proxy (which ignores them) satisfy the type.
922
1309
  */
923
1310
  type LLMAdapterFactory = (config: ModelConfig, ...args: any[]) => LLMAdapter;
924
- type AgentKind = 'orchestrator' | 'specialist' | 'utility' | 'system';
1311
+ type AgentKind = 'orchestrator' | 'specialist' | 'utility' | 'platform';
925
1312
  interface AgentConfig extends ResourceDefinition {
926
1313
  type: 'agent';
927
1314
  /** OM descriptor backing canonical identity and governance metadata. */
@@ -3788,6 +4175,66 @@ type Database = {
3788
4175
  }
3789
4176
  ];
3790
4177
  };
4178
+ user_notes: {
4179
+ Row: {
4180
+ content: string;
4181
+ created_at: string;
4182
+ created_by: string;
4183
+ id: string;
4184
+ metadata: Json;
4185
+ organization_id: string | null;
4186
+ pinned: boolean;
4187
+ priority: string;
4188
+ source: string | null;
4189
+ title: string | null;
4190
+ updated_at: string;
4191
+ user_id: string;
4192
+ };
4193
+ Insert: {
4194
+ content: string;
4195
+ created_at?: string;
4196
+ created_by?: string;
4197
+ id?: string;
4198
+ metadata?: Json;
4199
+ organization_id?: string | null;
4200
+ pinned?: boolean;
4201
+ priority?: string;
4202
+ source?: string | null;
4203
+ title?: string | null;
4204
+ updated_at?: string;
4205
+ user_id: string;
4206
+ };
4207
+ Update: {
4208
+ content?: string;
4209
+ created_at?: string;
4210
+ created_by?: string;
4211
+ id?: string;
4212
+ metadata?: Json;
4213
+ organization_id?: string | null;
4214
+ pinned?: boolean;
4215
+ priority?: string;
4216
+ source?: string | null;
4217
+ title?: string | null;
4218
+ updated_at?: string;
4219
+ user_id?: string;
4220
+ };
4221
+ Relationships: [
4222
+ {
4223
+ foreignKeyName: "user_notes_organization_id_fkey";
4224
+ columns: ["organization_id"];
4225
+ isOneToOne: false;
4226
+ referencedRelation: "organizations";
4227
+ referencedColumns: ["id"];
4228
+ },
4229
+ {
4230
+ foreignKeyName: "user_notes_user_id_fkey";
4231
+ columns: ["user_id"];
4232
+ isOneToOne: false;
4233
+ referencedRelation: "users";
4234
+ referencedColumns: ["id"];
4235
+ }
4236
+ ];
4237
+ };
3791
4238
  users: {
3792
4239
  Row: {
3793
4240
  config: Json;
@@ -4052,10 +4499,10 @@ declare const RecordColumnConfigSchema: z.ZodObject<{
4052
4499
  width: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
4053
4500
  renderType: z.ZodOptional<z.ZodEnum<{
4054
4501
  text: "text";
4055
- badge: "badge";
4056
- datetime: "datetime";
4057
4502
  count: "count";
4058
4503
  json: "json";
4504
+ badge: "badge";
4505
+ datetime: "datetime";
4059
4506
  }>>;
4060
4507
  badgeColor: z.ZodOptional<z.ZodString>;
4061
4508
  }, z.core.$strip>;
@@ -4106,7 +4553,7 @@ interface LeadGenStageCatalogEntry {
4106
4553
  * Canonical lead-gen processing stage catalog.
4107
4554
  * Keys are the stage names written by workflow steps into processing_state jsonb.
4108
4555
  *
4109
- * Ordered roughly by pipeline progression (prospecting outreach qualification).
4556
+ * Ordered roughly by pipeline progression (prospecting -> outreach -> qualification).
4110
4557
  */
4111
4558
  declare const LEAD_GEN_STAGE_CATALOG: Record<string, LeadGenStageCatalogEntry>;
4112
4559
 
@@ -4150,10 +4597,10 @@ declare const DealSchemas: {
4150
4597
  }, z.core.$strict>;
4151
4598
  ListDealTasksDueQuery: z.ZodObject<{
4152
4599
  window: z.ZodOptional<z.ZodEnum<{
4153
- upcoming: "upcoming";
4154
4600
  overdue: "overdue";
4155
4601
  today: "today";
4156
4602
  today_and_overdue: "today_and_overdue";
4603
+ upcoming: "upcoming";
4157
4604
  }>>;
4158
4605
  assigneeUserId: z.ZodOptional<z.ZodString>;
4159
4606
  }, z.core.$strict>;
@@ -4673,7 +5120,7 @@ interface BuildPlanSnapshotStep {
4673
5120
  recordSourceStageKey?: string;
4674
5121
  dependsOn?: string[];
4675
5122
  dependencyMode: BuildPlanSnapshotDependencyMode;
4676
- capabilityKey: string;
5123
+ actionKey: string;
4677
5124
  defaultBatchSize: number;
4678
5125
  maxBatchSize: number;
4679
5126
  recordColumns?: Partial<Record<BuildPlanSnapshotPrimaryEntity, RecordColumnConfig[]>>;
@@ -5417,6 +5864,100 @@ interface ProjectClientRef {
5417
5864
  status: string;
5418
5865
  }
5419
5866
 
5867
+ declare const OntologyScopeSchema: z.ZodDefault<z.ZodObject<{
5868
+ objectTypes: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
5869
+ id: z.ZodString;
5870
+ label: z.ZodOptional<z.ZodString>;
5871
+ description: z.ZodOptional<z.ZodString>;
5872
+ ownerSystemId: z.ZodOptional<z.ZodString>;
5873
+ aliases: z.ZodOptional<z.ZodArray<z.ZodString>>;
5874
+ properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
5875
+ storage: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
5876
+ }, z.core.$loose>>>>;
5877
+ linkTypes: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
5878
+ id: z.ZodString;
5879
+ label: z.ZodOptional<z.ZodString>;
5880
+ description: z.ZodOptional<z.ZodString>;
5881
+ ownerSystemId: z.ZodOptional<z.ZodString>;
5882
+ aliases: z.ZodOptional<z.ZodArray<z.ZodString>>;
5883
+ from: z.ZodString;
5884
+ to: z.ZodString;
5885
+ cardinality: z.ZodOptional<z.ZodString>;
5886
+ via: z.ZodOptional<z.ZodString>;
5887
+ }, z.core.$loose>>>>;
5888
+ actionTypes: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
5889
+ id: z.ZodString;
5890
+ label: z.ZodOptional<z.ZodString>;
5891
+ description: z.ZodOptional<z.ZodString>;
5892
+ ownerSystemId: z.ZodOptional<z.ZodString>;
5893
+ aliases: z.ZodOptional<z.ZodArray<z.ZodString>>;
5894
+ actsOn: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString>>>;
5895
+ input: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
5896
+ effects: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
5897
+ }, z.core.$loose>>>>;
5898
+ catalogTypes: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
5899
+ id: z.ZodString;
5900
+ label: z.ZodOptional<z.ZodString>;
5901
+ description: z.ZodOptional<z.ZodString>;
5902
+ ownerSystemId: z.ZodOptional<z.ZodString>;
5903
+ aliases: z.ZodOptional<z.ZodArray<z.ZodString>>;
5904
+ kind: z.ZodOptional<z.ZodString>;
5905
+ appliesTo: z.ZodOptional<z.ZodString>;
5906
+ entries: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
5907
+ }, z.core.$loose>>>>;
5908
+ eventTypes: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
5909
+ id: z.ZodString;
5910
+ label: z.ZodOptional<z.ZodString>;
5911
+ description: z.ZodOptional<z.ZodString>;
5912
+ ownerSystemId: z.ZodOptional<z.ZodString>;
5913
+ aliases: z.ZodOptional<z.ZodArray<z.ZodString>>;
5914
+ payload: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
5915
+ }, z.core.$loose>>>>;
5916
+ interfaceTypes: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
5917
+ id: z.ZodString;
5918
+ label: z.ZodOptional<z.ZodString>;
5919
+ description: z.ZodOptional<z.ZodString>;
5920
+ ownerSystemId: z.ZodOptional<z.ZodString>;
5921
+ aliases: z.ZodOptional<z.ZodArray<z.ZodString>>;
5922
+ properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
5923
+ }, z.core.$loose>>>>;
5924
+ valueTypes: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
5925
+ id: z.ZodString;
5926
+ label: z.ZodOptional<z.ZodString>;
5927
+ description: z.ZodOptional<z.ZodString>;
5928
+ ownerSystemId: z.ZodOptional<z.ZodString>;
5929
+ aliases: z.ZodOptional<z.ZodArray<z.ZodString>>;
5930
+ primitive: z.ZodOptional<z.ZodString>;
5931
+ }, z.core.$loose>>>>;
5932
+ sharedProperties: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
5933
+ id: z.ZodString;
5934
+ label: z.ZodOptional<z.ZodString>;
5935
+ description: z.ZodOptional<z.ZodString>;
5936
+ ownerSystemId: z.ZodOptional<z.ZodString>;
5937
+ aliases: z.ZodOptional<z.ZodArray<z.ZodString>>;
5938
+ valueType: z.ZodOptional<z.ZodString>;
5939
+ searchable: z.ZodOptional<z.ZodBoolean>;
5940
+ pii: z.ZodOptional<z.ZodBoolean>;
5941
+ }, z.core.$loose>>>>;
5942
+ groups: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
5943
+ id: z.ZodString;
5944
+ label: z.ZodOptional<z.ZodString>;
5945
+ description: z.ZodOptional<z.ZodString>;
5946
+ ownerSystemId: z.ZodOptional<z.ZodString>;
5947
+ aliases: z.ZodOptional<z.ZodArray<z.ZodString>>;
5948
+ members: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString>>>;
5949
+ }, z.core.$loose>>>>;
5950
+ surfaces: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
5951
+ id: z.ZodString;
5952
+ label: z.ZodOptional<z.ZodString>;
5953
+ description: z.ZodOptional<z.ZodString>;
5954
+ ownerSystemId: z.ZodOptional<z.ZodString>;
5955
+ aliases: z.ZodOptional<z.ZodArray<z.ZodString>>;
5956
+ route: z.ZodOptional<z.ZodString>;
5957
+ }, z.core.$loose>>>>;
5958
+ }, z.core.$strip>>;
5959
+ type OntologyScope = z.infer<typeof OntologyScopeSchema>;
5960
+
5420
5961
  /**
5421
5962
  * A single CRM activity entry (note, stage change, or deal creation).
5422
5963
  * Matches the CrmActivityEntry interface from useRecentCrmActivity.ts.
@@ -7129,11 +7670,11 @@ declare const ProjectSchemas: {
7129
7670
  }>;
7130
7671
  status: z.ZodOptional<z.ZodEnum<{
7131
7672
  active: "active";
7673
+ completed: "completed";
7674
+ paused: "paused";
7132
7675
  on_track: "on_track";
7133
7676
  at_risk: "at_risk";
7134
7677
  blocked: "blocked";
7135
- paused: "paused";
7136
- completed: "completed";
7137
7678
  }>>;
7138
7679
  description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7139
7680
  deal_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -7154,11 +7695,11 @@ declare const ProjectSchemas: {
7154
7695
  }>>;
7155
7696
  status: z.ZodOptional<z.ZodEnum<{
7156
7697
  active: "active";
7698
+ completed: "completed";
7699
+ paused: "paused";
7157
7700
  on_track: "on_track";
7158
7701
  at_risk: "at_risk";
7159
7702
  blocked: "blocked";
7160
- paused: "paused";
7161
- completed: "completed";
7162
7703
  }>>;
7163
7704
  description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7164
7705
  deal_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -7179,11 +7720,11 @@ declare const ProjectSchemas: {
7179
7720
  }>>;
7180
7721
  status: z.ZodOptional<z.ZodEnum<{
7181
7722
  active: "active";
7723
+ completed: "completed";
7724
+ paused: "paused";
7182
7725
  on_track: "on_track";
7183
7726
  at_risk: "at_risk";
7184
7727
  blocked: "blocked";
7185
- paused: "paused";
7186
- completed: "completed";
7187
7728
  }>>;
7188
7729
  search: z.ZodOptional<z.ZodString>;
7189
7730
  client_id: z.ZodOptional<z.ZodString>;
@@ -7208,11 +7749,11 @@ declare const ProjectSchemas: {
7208
7749
  CreateMilestoneRequest: z.ZodObject<{
7209
7750
  name: z.ZodString;
7210
7751
  status: z.ZodOptional<z.ZodEnum<{
7211
- blocked: "blocked";
7212
7752
  completed: "completed";
7753
+ overdue: "overdue";
7213
7754
  upcoming: "upcoming";
7755
+ blocked: "blocked";
7214
7756
  in_progress: "in_progress";
7215
- overdue: "overdue";
7216
7757
  }>>;
7217
7758
  description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7218
7759
  due_date: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -7222,11 +7763,11 @@ declare const ProjectSchemas: {
7222
7763
  UpdateMilestoneRequest: z.ZodObject<{
7223
7764
  name: z.ZodOptional<z.ZodString>;
7224
7765
  status: z.ZodOptional<z.ZodEnum<{
7225
- blocked: "blocked";
7226
7766
  completed: "completed";
7767
+ overdue: "overdue";
7227
7768
  upcoming: "upcoming";
7769
+ blocked: "blocked";
7228
7770
  in_progress: "in_progress";
7229
- overdue: "overdue";
7230
7771
  }>>;
7231
7772
  description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7232
7773
  due_date: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -7250,25 +7791,25 @@ declare const ProjectSchemas: {
7250
7791
  name: z.ZodString;
7251
7792
  type: z.ZodOptional<z.ZodEnum<{
7252
7793
  code: "code";
7253
- feature: "feature";
7254
7794
  other: "other";
7255
7795
  research: "research";
7256
7796
  documentation: "documentation";
7257
7797
  report: "report";
7258
7798
  design: "design";
7259
7799
  refactor: "refactor";
7800
+ feature: "feature";
7260
7801
  bug: "bug";
7261
7802
  }>>;
7262
7803
  status: z.ZodOptional<z.ZodEnum<{
7263
- blocked: "blocked";
7264
7804
  completed: "completed";
7805
+ cancelled: "cancelled";
7806
+ blocked: "blocked";
7265
7807
  in_progress: "in_progress";
7266
7808
  planned: "planned";
7267
7809
  submitted: "submitted";
7268
7810
  approved: "approved";
7269
- revision_requested: "revision_requested";
7270
7811
  rejected: "rejected";
7271
- cancelled: "cancelled";
7812
+ revision_requested: "revision_requested";
7272
7813
  }>>;
7273
7814
  description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7274
7815
  milestone_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -7286,25 +7827,25 @@ declare const ProjectSchemas: {
7286
7827
  name: z.ZodOptional<z.ZodString>;
7287
7828
  type: z.ZodOptional<z.ZodEnum<{
7288
7829
  code: "code";
7289
- feature: "feature";
7290
7830
  other: "other";
7291
7831
  research: "research";
7292
7832
  documentation: "documentation";
7293
7833
  report: "report";
7294
7834
  design: "design";
7295
7835
  refactor: "refactor";
7836
+ feature: "feature";
7296
7837
  bug: "bug";
7297
7838
  }>>;
7298
7839
  status: z.ZodOptional<z.ZodEnum<{
7299
- blocked: "blocked";
7300
7840
  completed: "completed";
7841
+ cancelled: "cancelled";
7842
+ blocked: "blocked";
7301
7843
  in_progress: "in_progress";
7302
7844
  planned: "planned";
7303
7845
  submitted: "submitted";
7304
7846
  approved: "approved";
7305
- revision_requested: "revision_requested";
7306
7847
  rejected: "rejected";
7307
- cancelled: "cancelled";
7848
+ revision_requested: "revision_requested";
7308
7849
  }>>;
7309
7850
  description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7310
7851
  milestone_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -7323,15 +7864,15 @@ declare const ProjectSchemas: {
7323
7864
  MergeResumeContextRequest: z.ZodRecord<z.ZodString, z.ZodUnknown>;
7324
7865
  GetTasksQuery: z.ZodObject<{
7325
7866
  status: z.ZodOptional<z.ZodEnum<{
7326
- blocked: "blocked";
7327
7867
  completed: "completed";
7868
+ cancelled: "cancelled";
7869
+ blocked: "blocked";
7328
7870
  in_progress: "in_progress";
7329
7871
  planned: "planned";
7330
7872
  submitted: "submitted";
7331
7873
  approved: "approved";
7332
- revision_requested: "revision_requested";
7333
7874
  rejected: "rejected";
7334
- cancelled: "cancelled";
7875
+ revision_requested: "revision_requested";
7335
7876
  }>>;
7336
7877
  milestone_id: z.ZodOptional<z.ZodString>;
7337
7878
  parent_task_id: z.ZodOptional<z.ZodString>;
@@ -8664,47 +9205,73 @@ interface Tool {
8664
9205
  */
8665
9206
  type IntegrationType = 'gmail' | 'google-sheets' | 'slack' | 'github' | 'linear' | 'attio' | 'airtable' | 'salesforce' | 'hubspot' | 'stripe' | 'twilio' | 'sendgrid' | 'mailgun' | 'zapier' | 'webhook' | 'apify' | 'instantly' | 'resend' | 'signature-api' | 'dropbox' | 'anymailfinder' | 'tomba' | 'millionverifier';
8666
9207
 
8667
- declare const SystemEntrySchema: z.ZodObject<{
8668
- id: z.ZodString;
8669
- title: z.ZodString;
8670
- description: z.ZodString;
8671
- kind: z.ZodEnum<{
8672
- platform: "platform";
8673
- product: "product";
8674
- operational: "operational";
8675
- diagnostic: "diagnostic";
8676
- }>;
8677
- responsibleRoleId: z.ZodOptional<z.ZodString>;
8678
- governedByKnowledge: z.ZodDefault<z.ZodArray<z.ZodString>>;
8679
- drivesGoals: z.ZodDefault<z.ZodArray<z.ZodString>>;
8680
- status: z.ZodEnum<{
8681
- active: "active";
8682
- deprecated: "deprecated";
8683
- archived: "archived";
8684
- }>;
8685
- }, z.core.$strip>;
8686
- declare const SystemsDomainSchema: z.ZodObject<{
8687
- systems: z.ZodDefault<z.ZodArray<z.ZodObject<{
8688
- id: z.ZodString;
8689
- title: z.ZodString;
8690
- description: z.ZodString;
8691
- kind: z.ZodEnum<{
8692
- platform: "platform";
8693
- product: "product";
8694
- operational: "operational";
8695
- diagnostic: "diagnostic";
8696
- }>;
8697
- responsibleRoleId: z.ZodOptional<z.ZodString>;
8698
- governedByKnowledge: z.ZodDefault<z.ZodArray<z.ZodString>>;
8699
- drivesGoals: z.ZodDefault<z.ZodArray<z.ZodString>>;
8700
- status: z.ZodEnum<{
8701
- active: "active";
8702
- deprecated: "deprecated";
8703
- archived: "archived";
8704
- }>;
8705
- }, z.core.$strip>>>;
9208
+ /**
9209
+ * Placeholder discriminated union for ContentNode (Wave 1A).
9210
+ * Wave 2A wires concrete (kind, type) pairs via the registry.
9211
+ *
9212
+ * Per D2: unregistered (kind, type) pairs are allowed and pass through validation.
9213
+ * Per L14: every node carries BOTH `kind` and `type`.
9214
+ */
9215
+ declare const ContentNodeSchema: z.ZodObject<{
9216
+ label: z.ZodString;
9217
+ description: z.ZodOptional<z.ZodString>;
9218
+ order: z.ZodOptional<z.ZodNumber>;
9219
+ parentContentId: z.ZodOptional<z.ZodString>;
9220
+ kind: z.ZodString;
9221
+ type: z.ZodString;
9222
+ data: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
8706
9223
  }, z.core.$strip>;
8707
- type SystemEntry = z.infer<typeof SystemEntrySchema>;
9224
+ type ContentNode = z.infer<typeof ContentNodeSchema>;
9225
+
9226
+ type JsonPrimitive = string | number | boolean | null;
9227
+ type JsonValue = JsonPrimitive | JsonValue[] | {
9228
+ [key: string]: JsonValue;
9229
+ };
9230
+ /** Explicit interface needed to annotate the recursive SystemEntrySchema. */
9231
+ interface SystemEntry {
9232
+ id: string;
9233
+ label?: string;
9234
+ title?: string;
9235
+ description?: string;
9236
+ kind?: 'product' | 'operational' | 'platform' | 'diagnostic';
9237
+ parentSystemId?: string;
9238
+ ui?: {
9239
+ path: string;
9240
+ surfaces: string[];
9241
+ icon?: string;
9242
+ order?: number;
9243
+ };
9244
+ lifecycle?: 'draft' | 'beta' | 'active' | 'deprecated' | 'archived';
9245
+ responsibleRoleId?: string;
9246
+ governedByKnowledge?: string[];
9247
+ actions?: {
9248
+ actionId: string;
9249
+ intent: 'exposes' | 'consumes';
9250
+ invocation?: unknown;
9251
+ }[];
9252
+ policies?: string[];
9253
+ drivesGoals?: string[];
9254
+ /** @deprecated Use lifecycle. Accepted for one publish cycle. */
9255
+ status?: 'active' | 'deprecated' | 'archived';
9256
+ path?: string;
9257
+ icon?: string;
9258
+ color?: string;
9259
+ uiPosition?: 'sidebar-primary' | 'sidebar-bottom';
9260
+ enabled?: boolean;
9261
+ devOnly?: boolean;
9262
+ requiresAdmin?: boolean;
9263
+ order: number;
9264
+ config?: Record<string, JsonValue>;
9265
+ ontology?: OntologyScope;
9266
+ systems?: Record<string, SystemEntry>;
9267
+ /**
9268
+ * @deprecated Compatibility-only bridge for old tenant data and migration readers.
9269
+ * Author new semantic catalogs in `ontology` and local settings in `config`.
9270
+ */
9271
+ content?: Record<string, ContentNode>;
9272
+ subsystems?: Record<string, SystemEntry>;
9273
+ }
9274
+ declare const SystemsDomainSchema: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodType<SystemEntry, unknown, z.core.$ZodTypeInternals<SystemEntry, unknown>>>>;
8708
9275
 
8709
9276
  /**
8710
9277
  * Resource Registry type definitions
@@ -8719,7 +9286,7 @@ type ResourceStatus = 'dev' | 'prod';
8719
9286
  * Used as the discriminator field in ResourceDefinition
8720
9287
  */
8721
9288
  type ResourceType = 'agent' | 'workflow' | 'trigger' | 'integration' | 'external' | 'human';
8722
- type ResourceSystemSummary = Pick<SystemEntry, 'id' | 'title' | 'description' | 'kind' | 'status'>;
9289
+ type ResourceSystemSummary = Pick<SystemEntry, 'id' | 'title' | 'description' | 'kind' | 'lifecycle'>;
8723
9290
  /**
8724
9291
  * Base interface for ALL platform resources
8725
9292
  * Shared by both executable (agents, workflows) and non-executable (triggers, integrations, etc.) resources
@@ -8745,8 +9312,8 @@ interface ResourceDefinition {
8745
9312
  sessionCapable?: boolean;
8746
9313
  /** Whether the resource is local (monorepo) or remote (externally deployed) */
8747
9314
  origin?: 'local' | 'remote';
8748
- /** OM System membership, when backed by a Resource descriptor */
8749
- systemId?: string;
9315
+ /** OM System membership — dot-separated system path (e.g. "sys.lead-gen"), when backed by a Resource descriptor */
9316
+ systemPath?: string;
8750
9317
  /** Display metadata for the owning OM System */
8751
9318
  system?: ResourceSystemSummary;
8752
9319
  /** Governance lifecycle status from the OM Resource descriptor */
@@ -9011,13 +9578,22 @@ type OrganizationModelResources = z.infer<typeof ResourcesDomainSchema>;
9011
9578
  declare const LinkSchema: z.ZodObject<{
9012
9579
  nodeId: z.ZodString;
9013
9580
  kind: z.ZodEnum<{
9581
+ links: "links";
9582
+ affects: "affects";
9583
+ effects: "effects";
9584
+ implements: "implements";
9585
+ reads: "reads";
9586
+ writes: "writes";
9587
+ emits: "emits";
9014
9588
  contains: "contains";
9015
9589
  references: "references";
9016
- exposes: "exposes";
9017
9590
  maps_to: "maps_to";
9018
- "operates-on": "operates-on";
9019
9591
  uses: "uses";
9020
9592
  governs: "governs";
9593
+ originates_from: "originates_from";
9594
+ triggers: "triggers";
9595
+ applies_to: "applies_to";
9596
+ uses_catalog: "uses_catalog";
9021
9597
  }>;
9022
9598
  }, z.core.$strip>;
9023
9599
  type Link = z.infer<typeof LinkSchema>;