@elevasis/sdk 1.23.0 → 1.24.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 (50) hide show
  1. package/dist/cli.cjs +5408 -6605
  2. package/dist/index.d.ts +183 -242
  3. package/dist/index.js +1829 -2912
  4. package/dist/node/index.d.ts +3722 -2
  5. package/dist/node/index.js +163 -1
  6. package/dist/test-utils/index.d.ts +60 -72
  7. package/dist/test-utils/index.js +239 -1479
  8. package/dist/types/worker/index.d.ts +2 -0
  9. package/dist/types/worker/utils.d.ts +9 -0
  10. package/dist/worker/index.js +260 -1487
  11. package/package.json +5 -4
  12. package/reference/_navigation.md +1 -0
  13. package/reference/claude-config/rules/active-change-index.md +11 -80
  14. package/reference/claude-config/rules/agent-start-here.md +11 -277
  15. package/reference/claude-config/rules/deployment.md +11 -57
  16. package/reference/claude-config/rules/error-handling.md +11 -56
  17. package/reference/claude-config/rules/execution.md +11 -40
  18. package/reference/claude-config/rules/frontend.md +11 -43
  19. package/reference/claude-config/rules/observability.md +11 -31
  20. package/reference/claude-config/rules/operations.md +11 -80
  21. package/reference/claude-config/rules/organization-model.md +5 -110
  22. package/reference/claude-config/rules/organization-os.md +7 -111
  23. package/reference/claude-config/rules/package-taxonomy.md +11 -33
  24. package/reference/claude-config/rules/platform.md +11 -42
  25. package/reference/claude-config/rules/shared-types.md +10 -48
  26. package/reference/claude-config/rules/task-tracking.md +11 -47
  27. package/reference/claude-config/rules/ui.md +11 -200
  28. package/reference/claude-config/rules/vibe.md +5 -229
  29. package/reference/claude-config/sync-notes/2026-05-04-knowledge-bundle.md +83 -83
  30. package/reference/claude-config/sync-notes/2026-05-15-om-skill-rename-and-write-family.md +2 -2
  31. package/reference/claude-config/sync-notes/2026-05-17-sdk-boundary-consolidation.md +33 -0
  32. package/reference/rules/active-change-index.md +83 -0
  33. package/reference/rules/agent-start-here.md +280 -0
  34. package/reference/rules/deployment.md +60 -0
  35. package/reference/rules/error-handling.md +59 -0
  36. package/reference/rules/execution.md +43 -0
  37. package/reference/rules/frontend.md +46 -0
  38. package/reference/rules/observability.md +34 -0
  39. package/reference/rules/operations.md +85 -0
  40. package/reference/rules/organization-model.md +119 -0
  41. package/reference/rules/organization-os.md +118 -0
  42. package/reference/rules/package-taxonomy.md +36 -0
  43. package/reference/rules/platform.md +45 -0
  44. package/reference/rules/shared-types.md +52 -0
  45. package/reference/rules/task-tracking.md +50 -0
  46. package/reference/rules/ui.md +203 -0
  47. package/reference/rules/vibe.md +238 -0
  48. package/reference/scaffold/core/organization-graph.mdx +4 -5
  49. package/reference/scaffold/core/organization-model.mdx +1 -1
  50. package/reference/scaffold/reference/contracts.md +14 -2
@@ -511,4 +511,166 @@ async function runKnowledgeCodegen(layout) {
511
511
  );
512
512
  }
513
513
 
514
- export { generateKnowledgeBodies, generateKnowledgeNodes, generateKnowledgeNodesTs, readKnowledgeNodeMdx, runKnowledgeCodegen };
514
+ // ../core/src/organization-model/helpers.ts
515
+ function childSystemsOf(system) {
516
+ return system.systems ?? system.subsystems ?? {};
517
+ }
518
+ function listAllSystems(model) {
519
+ const results = [];
520
+ function walk(map, prefix) {
521
+ for (const [localId, system] of Object.entries(map)) {
522
+ const fullPath = prefix ? `${prefix}.${localId}` : localId;
523
+ results.push({ path: fullPath, system });
524
+ const childSystems = childSystemsOf(system);
525
+ if (Object.keys(childSystems).length > 0) {
526
+ walk(childSystems, fullPath);
527
+ }
528
+ }
529
+ }
530
+ walk(model.systems, "");
531
+ return results;
532
+ }
533
+
534
+ // src/node/project-deployment-spec.ts
535
+ function toSdkResourceDescriptor(resource, getResourceOntologyBinding) {
536
+ const ontologyBinding = getResourceOntologyBinding?.(resource.id);
537
+ return {
538
+ ...resource,
539
+ ...ontologyBinding ?? {},
540
+ systemId: resource.systemPath
541
+ };
542
+ }
543
+ function withPlatformResourceDescriptor(workflow, getWorkflowResourceDescriptor, getResourceOntologyBinding) {
544
+ const resource = getWorkflowResourceDescriptor(workflow.config.resourceId);
545
+ const sdkResource = toSdkResourceDescriptor(resource, getResourceOntologyBinding);
546
+ return {
547
+ ...workflow,
548
+ config: {
549
+ ...workflow.config,
550
+ resource: sdkResource,
551
+ resourceId: sdkResource.id,
552
+ type: sdkResource.kind
553
+ }
554
+ };
555
+ }
556
+ function withPlatformResourceDescriptors(workflows, getWorkflowResourceDescriptor, getResourceOntologyBinding) {
557
+ return workflows.map(
558
+ (workflow) => withPlatformResourceDescriptor(workflow, getWorkflowResourceDescriptor, getResourceOntologyBinding)
559
+ );
560
+ }
561
+ function withPlatformIntegrationResourceDescriptor(integration, getIntegrationResourceDescriptor, getResourceOntologyBinding) {
562
+ const resource = getIntegrationResourceDescriptor(integration.resourceId);
563
+ const sdkResource = toSdkResourceDescriptor(resource, getResourceOntologyBinding);
564
+ return {
565
+ ...integration,
566
+ resource: sdkResource,
567
+ resourceId: sdkResource.id,
568
+ type: sdkResource.kind
569
+ };
570
+ }
571
+ function withPlatformIntegrationResourceDescriptors(integrations, getIntegrationResourceDescriptor, getResourceOntologyBinding) {
572
+ return integrations.map(
573
+ (integration) => withPlatformIntegrationResourceDescriptor(integration, getIntegrationResourceDescriptor, getResourceOntologyBinding)
574
+ );
575
+ }
576
+ function projectTopologyRelationships(model) {
577
+ const projected = {};
578
+ function ensure(sourceId) {
579
+ projected[sourceId] ??= {};
580
+ return projected[sourceId];
581
+ }
582
+ for (const relationship of Object.values(model.topology.relationships)) {
583
+ if (relationship.from.kind === "humanCheckpoint") continue;
584
+ if (relationship.kind === "triggers" && relationship.to.kind === "resource") {
585
+ const target = model.resources[relationship.to.id];
586
+ if (target?.kind !== "workflow" && target?.kind !== "agent") continue;
587
+ const source = ensure(relationship.from.id);
588
+ source.triggers ??= {};
589
+ if (target.kind === "workflow") {
590
+ source.triggers.workflows ??= [];
591
+ source.triggers.workflows.push(target.id);
592
+ } else {
593
+ source.triggers.agents ??= [];
594
+ source.triggers.agents.push(target.id);
595
+ }
596
+ continue;
597
+ }
598
+ if (relationship.kind === "uses" && relationship.from.kind === "resource" && relationship.to.kind === "resource") {
599
+ const target = model.resources[relationship.to.id];
600
+ if (target?.kind !== "integration") continue;
601
+ const source = ensure(relationship.from.id);
602
+ source.uses ??= {};
603
+ source.uses.integrations ??= [];
604
+ source.uses.integrations.push(target.id);
605
+ }
606
+ }
607
+ return projected;
608
+ }
609
+ function projectDeploymentSpec(options) {
610
+ const workflows = withPlatformResourceDescriptors(
611
+ options.workflows,
612
+ options.getWorkflowResourceDescriptor,
613
+ options.getResourceOntologyBinding
614
+ );
615
+ const integrations = withPlatformIntegrationResourceDescriptors(
616
+ options.integrations ?? [],
617
+ options.getIntegrationResourceDescriptor,
618
+ options.getResourceOntologyBinding
619
+ );
620
+ const workflowResourceIds = new Set(workflows.map((workflow) => workflow.config.resourceId));
621
+ const integrationResourceIds = new Set(integrations.map((integration) => integration.resourceId));
622
+ const resources = projectDeploymentResources(
623
+ options.organizationModel.resources,
624
+ workflowResourceIds,
625
+ integrationResourceIds,
626
+ options.getResourceOntologyBinding
627
+ );
628
+ return {
629
+ version: options.version,
630
+ organizationModel: {
631
+ systems: projectDeploymentSystems(options.organizationModel),
632
+ resources
633
+ },
634
+ workflows,
635
+ agents: options.agents ?? [],
636
+ triggers: options.triggers,
637
+ integrations,
638
+ humanCheckpoints: options.humanCheckpoints,
639
+ relationships: projectTopologyRelationships(options.organizationModel),
640
+ ...options.externalResources ? { externalResources: options.externalResources } : {}
641
+ };
642
+ }
643
+ function projectDeploymentResources(resources, workflowResourceIds, integrationResourceIds, getResourceOntologyBinding) {
644
+ return Object.fromEntries(
645
+ Object.values(resources).filter((resource) => workflowResourceIds.has(resource.id) || integrationResourceIds.has(resource.id)).map((resource) => {
646
+ const sdkResource = toSdkResourceDescriptor(resource, getResourceOntologyBinding);
647
+ return [sdkResource.id, sdkResource];
648
+ })
649
+ );
650
+ }
651
+ function projectDeploymentSystems(model) {
652
+ return Object.fromEntries(
653
+ listAllSystems(model).map(({ path, system }, index) => {
654
+ const lifecycle = system.lifecycle === "archived" ? "archived" : system.lifecycle === "deprecated" ? "deprecated" : "active";
655
+ return [
656
+ system.id,
657
+ {
658
+ id: system.id,
659
+ order: system.order ?? (index + 1) * 10,
660
+ title: system.label ?? system.title ?? system.id,
661
+ description: system.description ?? "",
662
+ kind: system.kind ?? "product",
663
+ ...system.parentSystemId ? { parentSystemId: system.parentSystemId } : {},
664
+ ...path !== system.id ? { systemPath: path } : {},
665
+ governedByKnowledge: system.governedByKnowledge ?? [],
666
+ drivesGoals: system.drivesGoals ?? [],
667
+ lifecycle,
668
+ status: lifecycle,
669
+ ...system.responsibleRoleId ? { responsibleRoleId: system.responsibleRoleId } : {}
670
+ }
671
+ ];
672
+ })
673
+ );
674
+ }
675
+
676
+ export { generateKnowledgeBodies, generateKnowledgeNodes, generateKnowledgeNodesTs, projectDeploymentSpec, projectTopologyRelationships, readKnowledgeNodeMdx, runKnowledgeCodegen, toSdkResourceDescriptor, withPlatformIntegrationResourceDescriptor, withPlatformIntegrationResourceDescriptors, withPlatformResourceDescriptor, withPlatformResourceDescriptors };
@@ -359,14 +359,18 @@ declare const WorkflowResourceEntrySchema: z.ZodObject<{
359
359
  writes: z.ZodOptional<z.ZodArray<z.ZodString>>;
360
360
  usesCatalogs: z.ZodOptional<z.ZodArray<z.ZodString>>;
361
361
  emits: z.ZodOptional<z.ZodArray<z.ZodString>>;
362
+ contract: z.ZodOptional<z.ZodObject<{
363
+ input: z.ZodOptional<z.ZodString>;
364
+ output: z.ZodOptional<z.ZodString>;
365
+ }, z.core.$strip>>;
362
366
  }, z.core.$strip>>;
363
367
  codeRefs: z.ZodDefault<z.ZodArray<z.ZodObject<{
364
368
  path: z.ZodString;
365
369
  role: z.ZodEnum<{
366
- schema: "schema";
367
370
  config: "config";
368
371
  entrypoint: "entrypoint";
369
372
  handler: "handler";
373
+ schema: "schema";
370
374
  test: "test";
371
375
  docs: "docs";
372
376
  }>;
@@ -406,14 +410,18 @@ declare const AgentResourceEntrySchema: z.ZodObject<{
406
410
  writes: z.ZodOptional<z.ZodArray<z.ZodString>>;
407
411
  usesCatalogs: z.ZodOptional<z.ZodArray<z.ZodString>>;
408
412
  emits: z.ZodOptional<z.ZodArray<z.ZodString>>;
413
+ contract: z.ZodOptional<z.ZodObject<{
414
+ input: z.ZodOptional<z.ZodString>;
415
+ output: z.ZodOptional<z.ZodString>;
416
+ }, z.core.$strip>>;
409
417
  }, z.core.$strip>>;
410
418
  codeRefs: z.ZodDefault<z.ZodArray<z.ZodObject<{
411
419
  path: z.ZodString;
412
420
  role: z.ZodEnum<{
413
- schema: "schema";
414
421
  config: "config";
415
422
  entrypoint: "entrypoint";
416
423
  handler: "handler";
424
+ schema: "schema";
417
425
  test: "test";
418
426
  docs: "docs";
419
427
  }>;
@@ -484,14 +492,18 @@ declare const ResourceEntrySchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
484
492
  writes: z.ZodOptional<z.ZodArray<z.ZodString>>;
485
493
  usesCatalogs: z.ZodOptional<z.ZodArray<z.ZodString>>;
486
494
  emits: z.ZodOptional<z.ZodArray<z.ZodString>>;
495
+ contract: z.ZodOptional<z.ZodObject<{
496
+ input: z.ZodOptional<z.ZodString>;
497
+ output: z.ZodOptional<z.ZodString>;
498
+ }, z.core.$strip>>;
487
499
  }, z.core.$strip>>;
488
500
  codeRefs: z.ZodDefault<z.ZodArray<z.ZodObject<{
489
501
  path: z.ZodString;
490
502
  role: z.ZodEnum<{
491
- schema: "schema";
492
503
  config: "config";
493
504
  entrypoint: "entrypoint";
494
505
  handler: "handler";
506
+ schema: "schema";
495
507
  test: "test";
496
508
  docs: "docs";
497
509
  }>;
@@ -530,14 +542,18 @@ declare const ResourceEntrySchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
530
542
  writes: z.ZodOptional<z.ZodArray<z.ZodString>>;
531
543
  usesCatalogs: z.ZodOptional<z.ZodArray<z.ZodString>>;
532
544
  emits: z.ZodOptional<z.ZodArray<z.ZodString>>;
545
+ contract: z.ZodOptional<z.ZodObject<{
546
+ input: z.ZodOptional<z.ZodString>;
547
+ output: z.ZodOptional<z.ZodString>;
548
+ }, z.core.$strip>>;
533
549
  }, z.core.$strip>>;
534
550
  codeRefs: z.ZodDefault<z.ZodArray<z.ZodObject<{
535
551
  path: z.ZodString;
536
552
  role: z.ZodEnum<{
537
- schema: "schema";
538
553
  config: "config";
539
554
  entrypoint: "entrypoint";
540
555
  handler: "handler";
556
+ schema: "schema";
541
557
  test: "test";
542
558
  docs: "docs";
543
559
  }>;
@@ -607,14 +623,18 @@ declare const ResourceEntrySchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
607
623
  writes: z.ZodOptional<z.ZodArray<z.ZodString>>;
608
624
  usesCatalogs: z.ZodOptional<z.ZodArray<z.ZodString>>;
609
625
  emits: z.ZodOptional<z.ZodArray<z.ZodString>>;
626
+ contract: z.ZodOptional<z.ZodObject<{
627
+ input: z.ZodOptional<z.ZodString>;
628
+ output: z.ZodOptional<z.ZodString>;
629
+ }, z.core.$strip>>;
610
630
  }, z.core.$strip>>;
611
631
  codeRefs: z.ZodDefault<z.ZodArray<z.ZodObject<{
612
632
  path: z.ZodString;
613
633
  role: z.ZodEnum<{
614
- schema: "schema";
615
634
  config: "config";
616
635
  entrypoint: "entrypoint";
617
636
  handler: "handler";
637
+ schema: "schema";
618
638
  test: "test";
619
639
  docs: "docs";
620
640
  }>;
@@ -642,14 +662,18 @@ declare const ResourceEntrySchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
642
662
  writes: z.ZodOptional<z.ZodArray<z.ZodString>>;
643
663
  usesCatalogs: z.ZodOptional<z.ZodArray<z.ZodString>>;
644
664
  emits: z.ZodOptional<z.ZodArray<z.ZodString>>;
665
+ contract: z.ZodOptional<z.ZodObject<{
666
+ input: z.ZodOptional<z.ZodString>;
667
+ output: z.ZodOptional<z.ZodString>;
668
+ }, z.core.$strip>>;
645
669
  }, z.core.$strip>>;
646
670
  codeRefs: z.ZodDefault<z.ZodArray<z.ZodObject<{
647
671
  path: z.ZodString;
648
672
  role: z.ZodEnum<{
649
- schema: "schema";
650
673
  config: "config";
651
674
  entrypoint: "entrypoint";
652
675
  handler: "handler";
676
+ schema: "schema";
653
677
  test: "test";
654
678
  docs: "docs";
655
679
  }>;
@@ -4353,36 +4377,6 @@ declare const CredentialRequirementSchema: z.ZodObject<{
4353
4377
  type RecordColumnConfig = z.infer<typeof RecordColumnConfigSchema>;
4354
4378
  type CredentialRequirement = z.infer<typeof CredentialRequirementSchema>;
4355
4379
 
4356
- /** One entry in the lead-gen stage catalog. */
4357
- interface LeadGenStageCatalogEntry {
4358
- /** Matches the status key written into processing_state jsonb (e.g. 'scraped'). */
4359
- key: string;
4360
- /** Human-readable label for UI display. */
4361
- label: string;
4362
- /** Short description of what this stage represents. */
4363
- description: string;
4364
- /** Canonical pipeline order for UI sorting. Lower = earlier in the funnel. */
4365
- order: number;
4366
- /** Which entity's processing_state jsonb carries this stage status. */
4367
- entity: 'company' | 'contact';
4368
- /** Additional entities allowed to write/read this processing_state key. */
4369
- additionalEntities?: Array<'company' | 'contact'>;
4370
- /**
4371
- * Optional read-side override for Records views when a company-scoped step
4372
- * produces records on a different entity.
4373
- */
4374
- recordEntity?: 'company' | 'contact';
4375
- /** Stage key to read from recordEntity.processing_state for Records views. */
4376
- recordStageKey?: string;
4377
- }
4378
- /**
4379
- * Canonical lead-gen processing stage catalog.
4380
- * Keys are the stage names written by workflow steps into processing_state jsonb.
4381
- *
4382
- * Ordered roughly by pipeline progression (prospecting -> outreach -> qualification).
4383
- */
4384
- declare const LEAD_GEN_STAGE_CATALOG: Record<string, LeadGenStageCatalogEntry>;
4385
-
4386
4380
  declare const ProcessingStageStatusSchema: z.ZodEnum<{
4387
4381
  error: "error";
4388
4382
  success: "success";
@@ -4446,7 +4440,7 @@ declare const DealSchemas: {
4446
4440
  assigneeUserId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4447
4441
  }, z.core.$strict>;
4448
4442
  TransitionItemRequest: z.ZodObject<{
4449
- pipelineKey: z.ZodLiteral<string>;
4443
+ pipelineKey: z.ZodString;
4450
4444
  stageKey: z.ZodEnum<{
4451
4445
  [x: string]: string;
4452
4446
  }>;
@@ -4813,9 +4807,11 @@ declare const DealSchemas: {
4813
4807
  }, z.core.$strip>>;
4814
4808
  };
4815
4809
  /**
4816
- * One stage entry in a list's `pipeline_config.stages[]`. The `key` is
4817
- * validated against `LEAD_GEN_STAGE_CATALOG` so list pipeline definitions
4818
- * stay aligned with the org-os semantic layer.
4810
+ * One stage entry in a list's `pipeline_config.stages[]`.
4811
+ *
4812
+ * Stage catalogs are model-owned. The published core schema validates the
4813
+ * transport shape and leaves closed-catalog checks to callers with a resolved
4814
+ * Organization Model.
4819
4815
  */
4820
4816
  declare const PipelineStageSchema: z.ZodObject<{
4821
4817
  key: z.ZodString;
@@ -4828,7 +4824,7 @@ type ProcessingStageStatus = z.infer<typeof ProcessingStageStatusSchema>;
4828
4824
 
4829
4825
  /** Raw database row type for acq_deals table */
4830
4826
  type AcqDealRow = Database['public']['Tables']['acq_deals']['Row'];
4831
- type LeadGenStageKey = (typeof LEAD_GEN_STAGE_CATALOG)[keyof typeof LEAD_GEN_STAGE_CATALOG]['key'];
4827
+ type LeadGenStageKey = string;
4832
4828
  interface ProcessingStateEntry {
4833
4829
  status: ProcessingStageStatus;
4834
4830
  data?: unknown;
@@ -9031,24 +9027,6 @@ interface Tool {
9031
9027
  */
9032
9028
  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';
9033
9029
 
9034
- /**
9035
- * Placeholder discriminated union for ContentNode (Wave 1A).
9036
- * Wave 2A wires concrete (kind, type) pairs via the registry.
9037
- *
9038
- * Per D2: unregistered (kind, type) pairs are allowed and pass through validation.
9039
- * Per L14: every node carries BOTH `kind` and `type`.
9040
- */
9041
- declare const ContentNodeSchema: z.ZodObject<{
9042
- label: z.ZodString;
9043
- description: z.ZodOptional<z.ZodString>;
9044
- order: z.ZodOptional<z.ZodNumber>;
9045
- parentContentId: z.ZodOptional<z.ZodString>;
9046
- kind: z.ZodString;
9047
- type: z.ZodString;
9048
- data: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
9049
- }, z.core.$strip>;
9050
- type ContentNode = z.infer<typeof ContentNodeSchema>;
9051
-
9052
9030
  type JsonPrimitive = string | number | boolean | null;
9053
9031
  type JsonValue = JsonPrimitive | JsonValue[] | {
9054
9032
  [key: string]: JsonValue;
@@ -9090,11 +9068,6 @@ interface SystemEntry {
9090
9068
  config?: Record<string, JsonValue>;
9091
9069
  ontology?: OntologyScope;
9092
9070
  systems?: Record<string, SystemEntry>;
9093
- /**
9094
- * @deprecated Compatibility-only bridge for old tenant data and migration readers.
9095
- * Author new semantic catalogs in `ontology` and local settings in `config`.
9096
- */
9097
- content?: Record<string, ContentNode>;
9098
9071
  subsystems?: Record<string, SystemEntry>;
9099
9072
  }
9100
9073
 
@@ -9871,14 +9844,18 @@ declare const OrganizationModelSchema: z.ZodObject<{
9871
9844
  writes: z.ZodOptional<z.ZodArray<z.ZodString>>;
9872
9845
  usesCatalogs: z.ZodOptional<z.ZodArray<z.ZodString>>;
9873
9846
  emits: z.ZodOptional<z.ZodArray<z.ZodString>>;
9847
+ contract: z.ZodOptional<z.ZodObject<{
9848
+ input: z.ZodOptional<z.ZodString>;
9849
+ output: z.ZodOptional<z.ZodString>;
9850
+ }, z.core.$strip>>;
9874
9851
  }, z.core.$strip>>;
9875
9852
  codeRefs: z.ZodDefault<z.ZodArray<z.ZodObject<{
9876
9853
  path: z.ZodString;
9877
9854
  role: z.ZodEnum<{
9878
- schema: "schema";
9879
9855
  config: "config";
9880
9856
  entrypoint: "entrypoint";
9881
9857
  handler: "handler";
9858
+ schema: "schema";
9882
9859
  test: "test";
9883
9860
  docs: "docs";
9884
9861
  }>;
@@ -9917,14 +9894,18 @@ declare const OrganizationModelSchema: z.ZodObject<{
9917
9894
  writes: z.ZodOptional<z.ZodArray<z.ZodString>>;
9918
9895
  usesCatalogs: z.ZodOptional<z.ZodArray<z.ZodString>>;
9919
9896
  emits: z.ZodOptional<z.ZodArray<z.ZodString>>;
9897
+ contract: z.ZodOptional<z.ZodObject<{
9898
+ input: z.ZodOptional<z.ZodString>;
9899
+ output: z.ZodOptional<z.ZodString>;
9900
+ }, z.core.$strip>>;
9920
9901
  }, z.core.$strip>>;
9921
9902
  codeRefs: z.ZodDefault<z.ZodArray<z.ZodObject<{
9922
9903
  path: z.ZodString;
9923
9904
  role: z.ZodEnum<{
9924
- schema: "schema";
9925
9905
  config: "config";
9926
9906
  entrypoint: "entrypoint";
9927
9907
  handler: "handler";
9908
+ schema: "schema";
9928
9909
  test: "test";
9929
9910
  docs: "docs";
9930
9911
  }>;
@@ -9994,14 +9975,18 @@ declare const OrganizationModelSchema: z.ZodObject<{
9994
9975
  writes: z.ZodOptional<z.ZodArray<z.ZodString>>;
9995
9976
  usesCatalogs: z.ZodOptional<z.ZodArray<z.ZodString>>;
9996
9977
  emits: z.ZodOptional<z.ZodArray<z.ZodString>>;
9978
+ contract: z.ZodOptional<z.ZodObject<{
9979
+ input: z.ZodOptional<z.ZodString>;
9980
+ output: z.ZodOptional<z.ZodString>;
9981
+ }, z.core.$strip>>;
9997
9982
  }, z.core.$strip>>;
9998
9983
  codeRefs: z.ZodDefault<z.ZodArray<z.ZodObject<{
9999
9984
  path: z.ZodString;
10000
9985
  role: z.ZodEnum<{
10001
- schema: "schema";
10002
9986
  config: "config";
10003
9987
  entrypoint: "entrypoint";
10004
9988
  handler: "handler";
9989
+ schema: "schema";
10005
9990
  test: "test";
10006
9991
  docs: "docs";
10007
9992
  }>;
@@ -10029,14 +10014,18 @@ declare const OrganizationModelSchema: z.ZodObject<{
10029
10014
  writes: z.ZodOptional<z.ZodArray<z.ZodString>>;
10030
10015
  usesCatalogs: z.ZodOptional<z.ZodArray<z.ZodString>>;
10031
10016
  emits: z.ZodOptional<z.ZodArray<z.ZodString>>;
10017
+ contract: z.ZodOptional<z.ZodObject<{
10018
+ input: z.ZodOptional<z.ZodString>;
10019
+ output: z.ZodOptional<z.ZodString>;
10020
+ }, z.core.$strip>>;
10032
10021
  }, z.core.$strip>>;
10033
10022
  codeRefs: z.ZodDefault<z.ZodArray<z.ZodObject<{
10034
10023
  path: z.ZodString;
10035
10024
  role: z.ZodEnum<{
10036
- schema: "schema";
10037
10025
  config: "config";
10038
10026
  entrypoint: "entrypoint";
10039
10027
  handler: "handler";
10028
+ schema: "schema";
10040
10029
  test: "test";
10041
10030
  docs: "docs";
10042
10031
  }>;
@@ -10323,11 +10312,10 @@ declare const OrganizationModelSchema: z.ZodObject<{
10323
10312
  ontology: "ontology";
10324
10313
  role: "role";
10325
10314
  goal: "goal";
10326
- stage: "stage";
10327
10315
  resource: "resource";
10316
+ stage: "stage";
10328
10317
  "customer-segment": "customer-segment";
10329
10318
  offering: "offering";
10330
- "content-node": "content-node";
10331
10319
  }>;
10332
10320
  id: z.ZodString;
10333
10321
  }, z.core.$strip>;
@@ -10335,7 +10323,7 @@ declare const OrganizationModelSchema: z.ZodObject<{
10335
10323
  nodeId: z.ZodUnion<readonly [z.ZodString, z.ZodTemplateLiteral<`ontology:${string}`>]>;
10336
10324
  }, z.core.$strip>]>, z.ZodTransform<{
10337
10325
  target: {
10338
- kind: "knowledge" | "system" | "action" | "ontology" | "role" | "goal" | "stage" | "resource" | "customer-segment" | "offering" | "content-node";
10326
+ kind: "knowledge" | "system" | "action" | "ontology" | "role" | "goal" | "resource" | "stage" | "customer-segment" | "offering";
10339
10327
  id: string;
10340
10328
  };
10341
10329
  nodeId: string;
@@ -10343,7 +10331,7 @@ declare const OrganizationModelSchema: z.ZodObject<{
10343
10331
  nodeId: string;
10344
10332
  } | {
10345
10333
  target: {
10346
- kind: "knowledge" | "system" | "action" | "ontology" | "role" | "goal" | "stage" | "resource" | "customer-segment" | "offering" | "content-node";
10334
+ kind: "knowledge" | "system" | "action" | "ontology" | "role" | "goal" | "resource" | "stage" | "customer-segment" | "offering";
10347
10335
  id: string;
10348
10336
  };
10349
10337
  }>>>>;