@elevasis/sdk 1.22.1 → 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 (70) hide show
  1. package/dist/cli.cjs +5738 -6283
  2. package/dist/index.d.ts +187 -242
  3. package/dist/index.js +1830 -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 +61 -72
  7. package/dist/test-utils/index.js +240 -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 +261 -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 +7 -115
  22. package/reference/claude-config/rules/organization-os.md +8 -112
  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 +11 -235
  29. package/reference/claude-config/skills/om/SKILL.md +324 -0
  30. package/reference/claude-config/skills/{knowledge → om}/operations/customers.md +110 -109
  31. package/reference/claude-config/skills/{knowledge → om}/operations/features.md +77 -76
  32. package/reference/claude-config/skills/{knowledge → om}/operations/goals.md +119 -118
  33. package/reference/claude-config/skills/{knowledge → om}/operations/identity.md +94 -93
  34. package/reference/claude-config/skills/{knowledge → om}/operations/labels.md +94 -94
  35. package/reference/claude-config/skills/{knowledge → om}/operations/offerings.md +110 -109
  36. package/reference/claude-config/skills/{knowledge → om}/operations/roles.md +100 -99
  37. package/reference/claude-config/skills/{knowledge → om}/operations/techStack.md +30 -30
  38. package/reference/claude-config/skills/project/SKILL.md +1088 -1088
  39. package/reference/claude-config/skills/setup/SKILL.md +275 -275
  40. package/reference/claude-config/skills/tutorial/SKILL.md +259 -259
  41. package/reference/claude-config/skills/tutorial/progress-template.md +74 -74
  42. package/reference/claude-config/skills/tutorial/technical.md +1303 -1303
  43. package/reference/claude-config/skills/tutorial/vibe-coder.md +890 -890
  44. package/reference/claude-config/sync-notes/2026-05-04-knowledge-bundle.md +83 -83
  45. package/reference/claude-config/sync-notes/2026-05-15-om-skill-rename-and-write-family.md +52 -0
  46. package/reference/claude-config/sync-notes/2026-05-17-sdk-boundary-consolidation.md +33 -0
  47. package/reference/rules/active-change-index.md +83 -0
  48. package/reference/rules/agent-start-here.md +280 -0
  49. package/reference/rules/deployment.md +60 -0
  50. package/reference/rules/error-handling.md +59 -0
  51. package/reference/rules/execution.md +43 -0
  52. package/reference/rules/frontend.md +46 -0
  53. package/reference/rules/observability.md +34 -0
  54. package/reference/rules/operations.md +85 -0
  55. package/reference/rules/organization-model.md +119 -0
  56. package/reference/rules/organization-os.md +118 -0
  57. package/reference/rules/package-taxonomy.md +36 -0
  58. package/reference/rules/platform.md +45 -0
  59. package/reference/rules/shared-types.md +52 -0
  60. package/reference/rules/task-tracking.md +50 -0
  61. package/reference/rules/ui.md +203 -0
  62. package/reference/rules/vibe.md +238 -0
  63. package/reference/scaffold/core/organization-graph.mdx +4 -5
  64. package/reference/scaffold/core/organization-model.mdx +1 -1
  65. package/reference/scaffold/recipes/query-the-knowledge-graph.md +189 -185
  66. package/reference/scaffold/reference/contracts.md +108 -96
  67. package/reference/scaffold/reference/glossary.md +71 -69
  68. package/reference/claude-config/skills/knowledge/SKILL.md +0 -345
  69. /package/reference/claude-config/skills/{knowledge → om}/operations/codify-level-a.md +0 -0
  70. /package/reference/claude-config/skills/{knowledge → om}/operations/codify-level-b.md +0 -0
package/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { z } from 'zod';
1
+ import { z, ZodTypeAny } from 'zod';
2
2
 
3
3
  /**
4
4
  * Common validation utilities
@@ -526,14 +526,18 @@ declare const WorkflowResourceEntrySchema$1: z.ZodObject<{
526
526
  writes: z.ZodOptional<z.ZodArray<z.ZodString>>;
527
527
  usesCatalogs: z.ZodOptional<z.ZodArray<z.ZodString>>;
528
528
  emits: z.ZodOptional<z.ZodArray<z.ZodString>>;
529
+ contract: z.ZodOptional<z.ZodObject<{
530
+ input: z.ZodOptional<z.ZodString>;
531
+ output: z.ZodOptional<z.ZodString>;
532
+ }, z.core.$strip>>;
529
533
  }, z.core.$strip>>;
530
534
  codeRefs: z.ZodDefault<z.ZodArray<z.ZodObject<{
531
535
  path: z.ZodString;
532
536
  role: z.ZodEnum<{
533
- schema: "schema";
534
537
  config: "config";
535
538
  entrypoint: "entrypoint";
536
539
  handler: "handler";
540
+ schema: "schema";
537
541
  test: "test";
538
542
  docs: "docs";
539
543
  }>;
@@ -573,14 +577,18 @@ declare const AgentResourceEntrySchema: z.ZodObject<{
573
577
  writes: z.ZodOptional<z.ZodArray<z.ZodString>>;
574
578
  usesCatalogs: z.ZodOptional<z.ZodArray<z.ZodString>>;
575
579
  emits: z.ZodOptional<z.ZodArray<z.ZodString>>;
580
+ contract: z.ZodOptional<z.ZodObject<{
581
+ input: z.ZodOptional<z.ZodString>;
582
+ output: z.ZodOptional<z.ZodString>;
583
+ }, z.core.$strip>>;
576
584
  }, z.core.$strip>>;
577
585
  codeRefs: z.ZodDefault<z.ZodArray<z.ZodObject<{
578
586
  path: z.ZodString;
579
587
  role: z.ZodEnum<{
580
- schema: "schema";
581
588
  config: "config";
582
589
  entrypoint: "entrypoint";
583
590
  handler: "handler";
591
+ schema: "schema";
584
592
  test: "test";
585
593
  docs: "docs";
586
594
  }>;
@@ -651,14 +659,18 @@ declare const ResourceEntrySchema$1: z.ZodDiscriminatedUnion<[z.ZodObject<{
651
659
  writes: z.ZodOptional<z.ZodArray<z.ZodString>>;
652
660
  usesCatalogs: z.ZodOptional<z.ZodArray<z.ZodString>>;
653
661
  emits: z.ZodOptional<z.ZodArray<z.ZodString>>;
662
+ contract: z.ZodOptional<z.ZodObject<{
663
+ input: z.ZodOptional<z.ZodString>;
664
+ output: z.ZodOptional<z.ZodString>;
665
+ }, z.core.$strip>>;
654
666
  }, z.core.$strip>>;
655
667
  codeRefs: z.ZodDefault<z.ZodArray<z.ZodObject<{
656
668
  path: z.ZodString;
657
669
  role: z.ZodEnum<{
658
- schema: "schema";
659
670
  config: "config";
660
671
  entrypoint: "entrypoint";
661
672
  handler: "handler";
673
+ schema: "schema";
662
674
  test: "test";
663
675
  docs: "docs";
664
676
  }>;
@@ -697,14 +709,18 @@ declare const ResourceEntrySchema$1: z.ZodDiscriminatedUnion<[z.ZodObject<{
697
709
  writes: z.ZodOptional<z.ZodArray<z.ZodString>>;
698
710
  usesCatalogs: z.ZodOptional<z.ZodArray<z.ZodString>>;
699
711
  emits: z.ZodOptional<z.ZodArray<z.ZodString>>;
712
+ contract: z.ZodOptional<z.ZodObject<{
713
+ input: z.ZodOptional<z.ZodString>;
714
+ output: z.ZodOptional<z.ZodString>;
715
+ }, z.core.$strip>>;
700
716
  }, z.core.$strip>>;
701
717
  codeRefs: z.ZodDefault<z.ZodArray<z.ZodObject<{
702
718
  path: z.ZodString;
703
719
  role: z.ZodEnum<{
704
- schema: "schema";
705
720
  config: "config";
706
721
  entrypoint: "entrypoint";
707
722
  handler: "handler";
723
+ schema: "schema";
708
724
  test: "test";
709
725
  docs: "docs";
710
726
  }>;
@@ -774,14 +790,18 @@ declare const ResourceEntrySchema$1: z.ZodDiscriminatedUnion<[z.ZodObject<{
774
790
  writes: z.ZodOptional<z.ZodArray<z.ZodString>>;
775
791
  usesCatalogs: z.ZodOptional<z.ZodArray<z.ZodString>>;
776
792
  emits: z.ZodOptional<z.ZodArray<z.ZodString>>;
793
+ contract: z.ZodOptional<z.ZodObject<{
794
+ input: z.ZodOptional<z.ZodString>;
795
+ output: z.ZodOptional<z.ZodString>;
796
+ }, z.core.$strip>>;
777
797
  }, z.core.$strip>>;
778
798
  codeRefs: z.ZodDefault<z.ZodArray<z.ZodObject<{
779
799
  path: z.ZodString;
780
800
  role: z.ZodEnum<{
781
- schema: "schema";
782
801
  config: "config";
783
802
  entrypoint: "entrypoint";
784
803
  handler: "handler";
804
+ schema: "schema";
785
805
  test: "test";
786
806
  docs: "docs";
787
807
  }>;
@@ -809,14 +829,18 @@ declare const ResourceEntrySchema$1: z.ZodDiscriminatedUnion<[z.ZodObject<{
809
829
  writes: z.ZodOptional<z.ZodArray<z.ZodString>>;
810
830
  usesCatalogs: z.ZodOptional<z.ZodArray<z.ZodString>>;
811
831
  emits: z.ZodOptional<z.ZodArray<z.ZodString>>;
832
+ contract: z.ZodOptional<z.ZodObject<{
833
+ input: z.ZodOptional<z.ZodString>;
834
+ output: z.ZodOptional<z.ZodString>;
835
+ }, z.core.$strip>>;
812
836
  }, z.core.$strip>>;
813
837
  codeRefs: z.ZodDefault<z.ZodArray<z.ZodObject<{
814
838
  path: z.ZodString;
815
839
  role: z.ZodEnum<{
816
- schema: "schema";
817
840
  config: "config";
818
841
  entrypoint: "entrypoint";
819
842
  handler: "handler";
843
+ schema: "schema";
820
844
  test: "test";
821
845
  docs: "docs";
822
846
  }>;
@@ -4533,6 +4557,7 @@ declare const ProspectingBuildTemplateStepSchema: z.ZodObject<{
4533
4557
  crm: "crm";
4534
4558
  "lead-gen": "lead-gen";
4535
4559
  projects: "projects";
4560
+ clients: "clients";
4536
4561
  operations: "operations";
4537
4562
  monitoring: "monitoring";
4538
4563
  knowledge: "knowledge";
@@ -4669,6 +4694,7 @@ declare const ProspectingBuildTemplateSchema: z.ZodObject<{
4669
4694
  crm: "crm";
4670
4695
  "lead-gen": "lead-gen";
4671
4696
  projects: "projects";
4697
+ clients: "clients";
4672
4698
  operations: "operations";
4673
4699
  monitoring: "monitoring";
4674
4700
  knowledge: "knowledge";
@@ -4735,6 +4761,7 @@ declare const ProspectingBuildTemplateSchema: z.ZodObject<{
4735
4761
  crm: "crm";
4736
4762
  "lead-gen": "lead-gen";
4737
4763
  projects: "projects";
4764
+ clients: "clients";
4738
4765
  operations: "operations";
4739
4766
  monitoring: "monitoring";
4740
4767
  knowledge: "knowledge";
@@ -4860,36 +4887,6 @@ type ListBuilderStep = z.infer<typeof ProspectingBuildTemplateStepSchema>;
4860
4887
  type RecordColumnConfig = z.infer<typeof RecordColumnConfigSchema>;
4861
4888
  type CredentialRequirement = z.infer<typeof CredentialRequirementSchema>;
4862
4889
 
4863
- /** One entry in the lead-gen stage catalog. */
4864
- interface LeadGenStageCatalogEntry {
4865
- /** Matches the status key written into processing_state jsonb (e.g. 'scraped'). */
4866
- key: string;
4867
- /** Human-readable label for UI display. */
4868
- label: string;
4869
- /** Short description of what this stage represents. */
4870
- description: string;
4871
- /** Canonical pipeline order for UI sorting. Lower = earlier in the funnel. */
4872
- order: number;
4873
- /** Which entity's processing_state jsonb carries this stage status. */
4874
- entity: 'company' | 'contact';
4875
- /** Additional entities allowed to write/read this processing_state key. */
4876
- additionalEntities?: Array<'company' | 'contact'>;
4877
- /**
4878
- * Optional read-side override for Records views when a company-scoped step
4879
- * produces records on a different entity.
4880
- */
4881
- recordEntity?: 'company' | 'contact';
4882
- /** Stage key to read from recordEntity.processing_state for Records views. */
4883
- recordStageKey?: string;
4884
- }
4885
- /**
4886
- * Canonical lead-gen processing stage catalog.
4887
- * Keys are the stage names written by workflow steps into processing_state jsonb.
4888
- *
4889
- * Ordered roughly by pipeline progression (prospecting -> outreach -> qualification).
4890
- */
4891
- declare const LEAD_GEN_STAGE_CATALOG: Record<string, LeadGenStageCatalogEntry>;
4892
-
4893
4890
  declare const ProcessingStageStatusSchema: z.ZodEnum<{
4894
4891
  error: "error";
4895
4892
  success: "success";
@@ -4953,7 +4950,7 @@ declare const DealSchemas: {
4953
4950
  assigneeUserId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4954
4951
  }, z.core.$strict>;
4955
4952
  TransitionItemRequest: z.ZodObject<{
4956
- pipelineKey: z.ZodLiteral<string>;
4953
+ pipelineKey: z.ZodString;
4957
4954
  stageKey: z.ZodEnum<{
4958
4955
  [x: string]: string;
4959
4956
  }>;
@@ -5320,9 +5317,11 @@ declare const DealSchemas: {
5320
5317
  }, z.core.$strip>>;
5321
5318
  };
5322
5319
  /**
5323
- * One stage entry in a list's `pipeline_config.stages[]`. The `key` is
5324
- * validated against `LEAD_GEN_STAGE_CATALOG` so list pipeline definitions
5325
- * stay aligned with the org-os semantic layer.
5320
+ * One stage entry in a list's `pipeline_config.stages[]`.
5321
+ *
5322
+ * Stage catalogs are model-owned. The published core schema validates the
5323
+ * transport shape and leaves closed-catalog checks to callers with a resolved
5324
+ * Organization Model.
5326
5325
  */
5327
5326
  declare const PipelineStageSchema: z.ZodObject<{
5328
5327
  key: z.ZodString;
@@ -5409,7 +5408,7 @@ type ProcessingStageStatus = z.infer<typeof ProcessingStageStatusSchema>;
5409
5408
 
5410
5409
  /** Raw database row type for acq_deals table */
5411
5410
  type AcqDealRow = Database['public']['Tables']['acq_deals']['Row'];
5412
- type LeadGenStageKey = (typeof LEAD_GEN_STAGE_CATALOG)[keyof typeof LEAD_GEN_STAGE_CATALOG]['key'];
5411
+ type LeadGenStageKey = string;
5413
5412
  interface ProcessingStateEntry {
5414
5413
  status: ProcessingStageStatus;
5415
5414
  data?: unknown;
@@ -9698,24 +9697,6 @@ type ToolingErrorType = 'service_unavailable' | 'permission_denied' | 'platform_
9698
9697
  */
9699
9698
  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';
9700
9699
 
9701
- /**
9702
- * Placeholder discriminated union for ContentNode (Wave 1A).
9703
- * Wave 2A wires concrete (kind, type) pairs via the registry.
9704
- *
9705
- * Per D2: unregistered (kind, type) pairs are allowed and pass through validation.
9706
- * Per L14: every node carries BOTH `kind` and `type`.
9707
- */
9708
- declare const ContentNodeSchema: z.ZodObject<{
9709
- label: z.ZodString;
9710
- description: z.ZodOptional<z.ZodString>;
9711
- order: z.ZodOptional<z.ZodNumber>;
9712
- parentContentId: z.ZodOptional<z.ZodString>;
9713
- kind: z.ZodString;
9714
- type: z.ZodString;
9715
- data: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
9716
- }, z.core.$strip>;
9717
- type ContentNode = z.infer<typeof ContentNodeSchema>;
9718
-
9719
9700
  type JsonPrimitive = string | number | boolean | null;
9720
9701
  type JsonValue = JsonPrimitive | JsonValue[] | {
9721
9702
  [key: string]: JsonValue;
@@ -9757,11 +9738,6 @@ interface SystemEntry {
9757
9738
  config?: Record<string, JsonValue>;
9758
9739
  ontology?: OntologyScope;
9759
9740
  systems?: Record<string, SystemEntry>;
9760
- /**
9761
- * @deprecated Compatibility-only bridge for old tenant data and migration readers.
9762
- * Author new semantic catalogs in `ontology` and local settings in `config`.
9763
- */
9764
- content?: Record<string, ContentNode>;
9765
9741
  subsystems?: Record<string, SystemEntry>;
9766
9742
  }
9767
9743
 
@@ -10631,14 +10607,18 @@ declare const OrganizationModelSchema: z.ZodObject<{
10631
10607
  writes: z.ZodOptional<z.ZodArray<z.ZodString>>;
10632
10608
  usesCatalogs: z.ZodOptional<z.ZodArray<z.ZodString>>;
10633
10609
  emits: z.ZodOptional<z.ZodArray<z.ZodString>>;
10610
+ contract: z.ZodOptional<z.ZodObject<{
10611
+ input: z.ZodOptional<z.ZodString>;
10612
+ output: z.ZodOptional<z.ZodString>;
10613
+ }, z.core.$strip>>;
10634
10614
  }, z.core.$strip>>;
10635
10615
  codeRefs: z.ZodDefault<z.ZodArray<z.ZodObject<{
10636
10616
  path: z.ZodString;
10637
10617
  role: z.ZodEnum<{
10638
- schema: "schema";
10639
10618
  config: "config";
10640
10619
  entrypoint: "entrypoint";
10641
10620
  handler: "handler";
10621
+ schema: "schema";
10642
10622
  test: "test";
10643
10623
  docs: "docs";
10644
10624
  }>;
@@ -10677,14 +10657,18 @@ declare const OrganizationModelSchema: z.ZodObject<{
10677
10657
  writes: z.ZodOptional<z.ZodArray<z.ZodString>>;
10678
10658
  usesCatalogs: z.ZodOptional<z.ZodArray<z.ZodString>>;
10679
10659
  emits: z.ZodOptional<z.ZodArray<z.ZodString>>;
10660
+ contract: z.ZodOptional<z.ZodObject<{
10661
+ input: z.ZodOptional<z.ZodString>;
10662
+ output: z.ZodOptional<z.ZodString>;
10663
+ }, z.core.$strip>>;
10680
10664
  }, z.core.$strip>>;
10681
10665
  codeRefs: z.ZodDefault<z.ZodArray<z.ZodObject<{
10682
10666
  path: z.ZodString;
10683
10667
  role: z.ZodEnum<{
10684
- schema: "schema";
10685
10668
  config: "config";
10686
10669
  entrypoint: "entrypoint";
10687
10670
  handler: "handler";
10671
+ schema: "schema";
10688
10672
  test: "test";
10689
10673
  docs: "docs";
10690
10674
  }>;
@@ -10754,14 +10738,18 @@ declare const OrganizationModelSchema: z.ZodObject<{
10754
10738
  writes: z.ZodOptional<z.ZodArray<z.ZodString>>;
10755
10739
  usesCatalogs: z.ZodOptional<z.ZodArray<z.ZodString>>;
10756
10740
  emits: z.ZodOptional<z.ZodArray<z.ZodString>>;
10741
+ contract: z.ZodOptional<z.ZodObject<{
10742
+ input: z.ZodOptional<z.ZodString>;
10743
+ output: z.ZodOptional<z.ZodString>;
10744
+ }, z.core.$strip>>;
10757
10745
  }, z.core.$strip>>;
10758
10746
  codeRefs: z.ZodDefault<z.ZodArray<z.ZodObject<{
10759
10747
  path: z.ZodString;
10760
10748
  role: z.ZodEnum<{
10761
- schema: "schema";
10762
10749
  config: "config";
10763
10750
  entrypoint: "entrypoint";
10764
10751
  handler: "handler";
10752
+ schema: "schema";
10765
10753
  test: "test";
10766
10754
  docs: "docs";
10767
10755
  }>;
@@ -10789,14 +10777,18 @@ declare const OrganizationModelSchema: z.ZodObject<{
10789
10777
  writes: z.ZodOptional<z.ZodArray<z.ZodString>>;
10790
10778
  usesCatalogs: z.ZodOptional<z.ZodArray<z.ZodString>>;
10791
10779
  emits: z.ZodOptional<z.ZodArray<z.ZodString>>;
10780
+ contract: z.ZodOptional<z.ZodObject<{
10781
+ input: z.ZodOptional<z.ZodString>;
10782
+ output: z.ZodOptional<z.ZodString>;
10783
+ }, z.core.$strip>>;
10792
10784
  }, z.core.$strip>>;
10793
10785
  codeRefs: z.ZodDefault<z.ZodArray<z.ZodObject<{
10794
10786
  path: z.ZodString;
10795
10787
  role: z.ZodEnum<{
10796
- schema: "schema";
10797
10788
  config: "config";
10798
10789
  entrypoint: "entrypoint";
10799
10790
  handler: "handler";
10791
+ schema: "schema";
10800
10792
  test: "test";
10801
10793
  docs: "docs";
10802
10794
  }>;
@@ -11021,6 +11013,7 @@ declare const OrganizationModelSchema: z.ZodObject<{
11021
11013
  crm: "crm";
11022
11014
  "lead-gen": "lead-gen";
11023
11015
  projects: "projects";
11016
+ clients: "clients";
11024
11017
  operations: "operations";
11025
11018
  monitoring: "monitoring";
11026
11019
  knowledge: "knowledge";
@@ -11082,11 +11075,10 @@ declare const OrganizationModelSchema: z.ZodObject<{
11082
11075
  ontology: "ontology";
11083
11076
  role: "role";
11084
11077
  goal: "goal";
11085
- stage: "stage";
11086
11078
  resource: "resource";
11079
+ stage: "stage";
11087
11080
  "customer-segment": "customer-segment";
11088
11081
  offering: "offering";
11089
- "content-node": "content-node";
11090
11082
  }>;
11091
11083
  id: z.ZodString;
11092
11084
  }, z.core.$strip>;
@@ -11094,7 +11086,7 @@ declare const OrganizationModelSchema: z.ZodObject<{
11094
11086
  nodeId: z.ZodUnion<readonly [z.ZodString, z.ZodTemplateLiteral<`ontology:${string}`>]>;
11095
11087
  }, z.core.$strip>]>, z.ZodTransform<{
11096
11088
  target: {
11097
- kind: "knowledge" | "system" | "action" | "ontology" | "role" | "goal" | "stage" | "resource" | "customer-segment" | "offering" | "content-node";
11089
+ kind: "knowledge" | "system" | "action" | "ontology" | "role" | "goal" | "resource" | "stage" | "customer-segment" | "offering";
11098
11090
  id: string;
11099
11091
  };
11100
11092
  nodeId: string;
@@ -11102,7 +11094,7 @@ declare const OrganizationModelSchema: z.ZodObject<{
11102
11094
  nodeId: string;
11103
11095
  } | {
11104
11096
  target: {
11105
- kind: "knowledge" | "system" | "action" | "ontology" | "role" | "goal" | "stage" | "resource" | "customer-segment" | "offering" | "content-node";
11097
+ kind: "knowledge" | "system" | "action" | "ontology" | "role" | "goal" | "resource" | "stage" | "customer-segment" | "offering";
11106
11098
  id: string;
11107
11099
  };
11108
11100
  }>>>>;
@@ -11557,6 +11549,87 @@ interface ElevasConfig {
11557
11549
  };
11558
11550
  }
11559
11551
 
11552
+ declare function defineContract<TContract extends Contract>(contract: TContract): TContract;
11553
+
11554
+ declare function defineStep<TStep extends WorkflowStep>(step: TStep): TStep;
11555
+
11556
+ declare function defineWorkflow<TWorkflow extends WorkflowDefinition>(workflow: TWorkflow): TWorkflow;
11557
+
11558
+ type ContractRegistry = Record<string, Record<string, unknown>>;
11559
+ type ContractRefResolutionErrorCode = 'contract-ref-unknown-module' | 'contract-ref-unknown-export' | 'contract-ref-not-zod-type';
11560
+ declare class ContractRefResolutionError extends Error {
11561
+ readonly code: ContractRefResolutionErrorCode;
11562
+ readonly ref: string;
11563
+ constructor(code: ContractRefResolutionErrorCode, message: string, ref: string);
11564
+ }
11565
+ interface ResolvedContractRef<TValue extends ZodTypeAny = ZodTypeAny> {
11566
+ ref: string;
11567
+ moduleSpecifier: string;
11568
+ exportName: string;
11569
+ value: TValue;
11570
+ }
11571
+ declare function isZodType(value: unknown): value is ZodTypeAny;
11572
+ declare function resolveContractRef(ref: string, registry: ContractRegistry): ResolvedContractRef;
11573
+
11574
+ /** Minimal logger interface compatible with ExecutionContext.logger. */
11575
+ interface WorkflowLogger {
11576
+ info(message: string): void;
11577
+ warn(message: string): void;
11578
+ error(message: string): void;
11579
+ }
11580
+ interface ConcurrentPoolOptions<T, R> {
11581
+ /** Items to process. */
11582
+ items: T[];
11583
+ /** Max concurrent tasks. */
11584
+ concurrency: number;
11585
+ /** Process a single item. Receives the item and its index. */
11586
+ process: (item: T, index: number) => Promise<R>;
11587
+ /** Called when an item succeeds. */
11588
+ onSuccess?: (result: R, item: T, index: number) => void;
11589
+ /** Called when an item fails. Return void to continue, throw to abort. */
11590
+ onError?: (error: unknown, item: T, index: number) => void;
11591
+ }
11592
+ interface ConcurrentPoolResult<R> {
11593
+ results: Array<{
11594
+ index: number;
11595
+ value: R;
11596
+ } | {
11597
+ index: number;
11598
+ error: unknown;
11599
+ }>;
11600
+ succeeded: number;
11601
+ failed: number;
11602
+ }
11603
+ /**
11604
+ * Process items concurrently with a sliding window.
11605
+ * Maintains `concurrency` active tasks at all times, enqueuing new ones as each completes.
11606
+ */
11607
+ declare function concurrentPool<T, R>(opts: ConcurrentPoolOptions<T, R>): Promise<ConcurrentPoolResult<R>>;
11608
+ /** Shared output schema for diagnostic workflows. */
11609
+ declare const diagnosticOutput: z.ZodObject<{
11610
+ success: z.ZodBoolean;
11611
+ tool: z.ZodString;
11612
+ method: z.ZodString;
11613
+ result: z.ZodOptional<z.ZodUnknown>;
11614
+ error: z.ZodOptional<z.ZodString>;
11615
+ durationMs: z.ZodOptional<z.ZodNumber>;
11616
+ }, z.core.$strip>;
11617
+ type DiagnosticOutput = z.infer<typeof diagnosticOutput>;
11618
+ /** Shared input schema for integration diagnostics that require a credential. */
11619
+ declare const integrationInput: z.ZodObject<{
11620
+ credential: z.ZodString;
11621
+ }, z.core.$strip>;
11622
+ /** Run a diagnostic call and capture timing plus errors. */
11623
+ declare function runDiagnostic(tool: string, method: string, fn: () => Promise<unknown>): Promise<DiagnosticOutput>;
11624
+ /**
11625
+ * Split a full name into firstName/lastName, stripping common titles and credentials.
11626
+ * Handles formats like "Dr. Sarah Smith", "John Smith, DVM", "Jane Doe PhD".
11627
+ */
11628
+ declare function splitName(name: string): {
11629
+ firstName: string;
11630
+ lastName: string | undefined;
11631
+ };
11632
+
11560
11633
  /**
11561
11634
  * Runtime values for SDK developers.
11562
11635
  *
@@ -11584,147 +11657,6 @@ declare class ToolingError extends ExecutionError {
11584
11657
  constructor(errorType: string, message: string, details?: unknown);
11585
11658
  }
11586
11659
 
11587
- // ============================================================================
11588
- // Lead-Gen Stateful Pipeline Definitions (Decision N8, Wave 4)
11589
- //
11590
- // Defines the (pipeline_key, stage_key, state_key) vocabulary for the three
11591
- // entities that carry the Stateful trait via Track B:
11592
- // - acq_lists (pipeline_key='lead-gen', stage_key='lifecycle')
11593
- // - acq_list_members (pipeline_key='lead-gen', stages: outreach / prospecting / qualification)
11594
- // - acq_list_companies (pipeline_key='lead-gen', stages: outreach / prospecting / qualification)
11595
- //
11596
- // DB columns (pipeline_key, stage_key, state_key) remain free-form text with no
11597
- // CHECK constraint — new states can be introduced without a migration (Decision N8).
11598
- // These definitions are the org-specific source of truth consumed by UI and tooling.
11599
- //
11600
- // State vocabularies sourced from the post-restructure sales tree (W3 canonical):
11601
- // outreach/:
11602
- // - personalized (instantly-personalization.ts → contacts)
11603
- // - uploaded (instantly-upload.ts → contacts)
11604
- // - interested (instantly-reply-handler.ts → contacts, initial reply transition)
11605
- // prospecting/:
11606
- // - populated (apify-acquire.ts, apify-scrape.ts → companies)
11607
- // - crawled (apify-website-crawl.ts → companies)
11608
- // - extracted (website-extract.ts → companies)
11609
- // - discovered (email-discovery.ts, anymailfinder-enrich.ts → contacts)
11610
- // - verified (email-verification.ts → contacts)
11611
- // qualification/:
11612
- // - qualified (company-qualification.ts → companies)
11613
- //
11614
- // The 'pending' state is the W2 backfill default (coalesce(stage, 'pending')).
11615
- // It is valid in any stage and represents "not yet processed by a workflow step".
11616
- // ============================================================================
11617
-
11618
- /** One state within a stage — minimal shape: key + display label. */
11619
- interface StatefulStateDefinition {
11620
- /** Matches state_key values written by workflow steps. */
11621
- stateKey: string
11622
- label: string
11623
- }
11624
-
11625
- /** One stage within a pipeline — has a stage_key and an ordered list of valid states. */
11626
- interface StatefulStageDefinition {
11627
- /** Matches stage_key values written by workflow steps. */
11628
- stageKey: string
11629
- label: string
11630
- /** UI color token. Consumers may map this to their design system. */
11631
- color?: string
11632
- states: StatefulStateDefinition[]
11633
- }
11634
-
11635
- /**
11636
- * Pipeline definition for a single entity participating in the Stateful trait.
11637
- * Parallel to acq_deals' pipeline_key concept but structured for lead-gen entities.
11638
- */
11639
- interface StatefulPipelineDefinition {
11640
- /** Matches pipeline_key values in the database (e.g. 'lead-gen'). */
11641
- pipelineKey: string
11642
- label: string
11643
- /** Entity this pipeline applies to (e.g. 'acq.list', 'acq.list-member', 'acq.list-company'). */
11644
- entityKey: string
11645
- stages: StatefulStageDefinition[]
11646
- }
11647
-
11648
- // ============================================================================
11649
- // CRM Stateful Pipeline Definition
11650
- //
11651
- // Defines the (pipeline_key, stage_key, state_key) vocabulary for crm.deal
11652
- // entities. Stage keys match DEFAULT_ORGANIZATION_MODEL_SALES.pipelines[0].stages.
11653
- //
11654
- // State vocabularies sourced from the CRM action/handler tree:
11655
- // interested/:
11656
- // - discovery_replied (instantly-reply-handler.ts → first/subsequent reply)
11657
- // - discovery_link_sent (crm-send-booking-link.ts, crm-rebook.ts → booking link sent)
11658
- // - discovery_nudging (crm-send-nudge.ts → nudge sent after link)
11659
- // - discovery_booking_cancelled (booking-revert.ts → Cal cancellation webhook)
11660
- // - reply_sent (crm-send-reply.ts → operator reply sent)
11661
- // - followup_1_sent (crm-reply-followup.ts day=3)
11662
- // - followup_2_sent (crm-reply-followup.ts day=5)
11663
- // - followup_3_sent (crm-reply-followup.ts day=7)
11664
- // proposal, closing, closed_won, closed_lost, nurturing: no observed sub-states
11665
- // ============================================================================
11666
-
11667
- declare const CRM_DISCOVERY_REPLIED_STATE: StatefulStateDefinition = {
11668
- stateKey: 'discovery_replied',
11669
- label: 'Discovery Replied'
11670
- }
11671
- declare const CRM_DISCOVERY_LINK_SENT_STATE: StatefulStateDefinition = {
11672
- stateKey: 'discovery_link_sent',
11673
- label: 'Discovery Link Sent'
11674
- }
11675
- declare const CRM_DISCOVERY_NUDGING_STATE: StatefulStateDefinition = {
11676
- stateKey: 'discovery_nudging',
11677
- label: 'Discovery Nudging'
11678
- }
11679
- declare const CRM_DISCOVERY_BOOKING_CANCELLED_STATE: StatefulStateDefinition = {
11680
- stateKey: 'discovery_booking_cancelled',
11681
- label: 'Discovery Booking Cancelled'
11682
- }
11683
- declare const CRM_REPLY_SENT_STATE: StatefulStateDefinition = {
11684
- stateKey: 'reply_sent',
11685
- label: 'Reply Sent'
11686
- }
11687
- declare const CRM_FOLLOWUP_1_SENT_STATE: StatefulStateDefinition = {
11688
- stateKey: 'followup_1_sent',
11689
- label: 'Follow-up 1 Sent'
11690
- }
11691
- declare const CRM_FOLLOWUP_2_SENT_STATE: StatefulStateDefinition = {
11692
- stateKey: 'followup_2_sent',
11693
- label: 'Follow-up 2 Sent'
11694
- }
11695
- declare const CRM_FOLLOWUP_3_SENT_STATE: StatefulStateDefinition = {
11696
- stateKey: 'followup_3_sent',
11697
- label: 'Follow-up 3 Sent'
11698
- }
11699
-
11700
- declare const CRM_PIPELINE_DEFINITION: StatefulPipelineDefinition = {
11701
- pipelineKey: 'crm',
11702
- label: 'CRM',
11703
- entityKey: 'crm.deal',
11704
- stages: [
11705
- {
11706
- stageKey: 'interested',
11707
- label: 'Interested',
11708
- color: 'blue',
11709
- states: [
11710
- CRM_DISCOVERY_REPLIED_STATE,
11711
- CRM_DISCOVERY_LINK_SENT_STATE,
11712
- CRM_DISCOVERY_NUDGING_STATE,
11713
- CRM_DISCOVERY_BOOKING_CANCELLED_STATE,
11714
- CRM_REPLY_SENT_STATE,
11715
- CRM_FOLLOWUP_1_SENT_STATE,
11716
- CRM_FOLLOWUP_2_SENT_STATE,
11717
- CRM_FOLLOWUP_3_SENT_STATE
11718
- ]
11719
- },
11720
- { stageKey: 'proposal', label: 'Proposal', color: 'yellow', states: [] },
11721
- { stageKey: 'closing', label: 'Closing', color: 'orange', states: [] },
11722
- { stageKey: 'closed_won', label: 'Closed Won', color: 'green', states: [] },
11723
- { stageKey: 'closed_lost', label: 'Closed Lost', color: 'red', states: [] },
11724
- { stageKey: 'nurturing', label: 'Nurturing', color: 'grape', states: [] }
11725
- ]
11726
- }
11727
-
11728
11660
  declare const ResourceOntologyBindingSchema = z
11729
11661
  .object({
11730
11662
  actions: z.array(OntologyIdSchema).optional(),
@@ -11732,7 +11664,22 @@ declare const ResourceOntologyBindingSchema = z
11732
11664
  reads: z.array(OntologyIdSchema).optional(),
11733
11665
  writes: z.array(OntologyIdSchema).optional(),
11734
11666
  usesCatalogs: z.array(OntologyIdSchema).optional(),
11735
- emits: z.array(OntologyIdSchema).optional()
11667
+ emits: z.array(OntologyIdSchema).optional(),
11668
+ /**
11669
+ * Optional typed contract binding for this resource's workflow I/O.
11670
+ * Each ref is a `package/subpath#ExportName` string that resolves to a
11671
+ * Zod schema in `@repo/elevasis-core` (or the consumer's equivalent package).
11672
+ *
11673
+ * Absence of this field preserves all existing behavior — it is additive + optional.
11674
+ * Tier-1 validation (schema.ts): ref-string shape only (browser-safe, no imports).
11675
+ * Tier-2 validation (om:verify): intra-package typed-map resolution asserts ZodType.
11676
+ */
11677
+ contract: z
11678
+ .object({
11679
+ input: ContractRefSchema.optional(),
11680
+ output: ContractRefSchema.optional()
11681
+ })
11682
+ .optional()
11736
11683
  })
11737
11684
  .superRefine((binding, ctx) => {
11738
11685
  if (binding.primaryAction === undefined) return
@@ -11754,33 +11701,33 @@ type ResourceOntologyBindingInput = {
11754
11701
  usesCatalogs?: OntologyRefInput[]
11755
11702
  emits?: OntologyRefInput[]
11756
11703
  }
11757
-
11704
+
11758
11705
  declare const WorkflowResourceEntrySchema = ResourceEntryBaseSchema.extend({
11759
11706
  kind: z.literal('workflow'),
11760
11707
  emits: z.array(EventEmissionDescriptorSchema).optional()
11761
- })
11762
-
11763
- declare const IntegrationResourceEntrySchema = ResourceEntryBaseSchema.extend({
11764
- kind: z.literal('integration'),
11765
- provider: z.string().trim().min(1).max(100)
11766
- })
11767
-
11768
- declare const ResourceEntrySchema = z.discriminatedUnion('kind', [
11769
- WorkflowResourceEntrySchema,
11770
- AgentResourceEntrySchema,
11771
- IntegrationResourceEntrySchema,
11772
- ScriptResourceEntrySchema
11773
- ])
11774
-
11775
- declare function defineResource<const TResource extends ResourceEntry>(resource: TResource): TResource {
11776
- return ResourceEntrySchema.parse(resource) as TResource
11777
- }
11778
-
11708
+ })
11709
+
11710
+ declare const IntegrationResourceEntrySchema = ResourceEntryBaseSchema.extend({
11711
+ kind: z.literal('integration'),
11712
+ provider: z.string().trim().min(1).max(100)
11713
+ })
11714
+
11715
+ declare const ResourceEntrySchema = z.discriminatedUnion('kind', [
11716
+ WorkflowResourceEntrySchema,
11717
+ AgentResourceEntrySchema,
11718
+ IntegrationResourceEntrySchema,
11719
+ ScriptResourceEntrySchema
11720
+ ])
11721
+
11722
+ declare function defineResource<const TResource extends ResourceEntry>(resource: TResource): TResource {
11723
+ return ResourceEntrySchema.parse(resource) as TResource
11724
+ }
11725
+
11779
11726
  declare function defineResources<const TResources extends Record<string, ResourceEntry>>(
11780
11727
  resources: TResources
11781
11728
  ): TResources {
11782
- return Object.fromEntries(
11783
- Object.entries(resources).map(([key, resource]) => [key, ResourceEntrySchema.parse(resource)])
11729
+ return Object.fromEntries(
11730
+ Object.entries(resources).map(([key, resource]) => [key, ResourceEntrySchema.parse(resource)])
11784
11731
  ) as TResources
11785
11732
  }
11786
11733
 
@@ -11794,7 +11741,7 @@ declare function defineResourceOntology(input: ResourceOntologyBindingInput): Re
11794
11741
  emits: ontologyIdArrayFrom(input.emits)
11795
11742
  })
11796
11743
  }
11797
- type ResourceOntologyBinding = z.infer<typeof ResourceOntologyBindingSchema>
11744
+ type ResourceOntologyBinding = z.infer<typeof ResourceOntologyBindingSchema>
11798
11745
  type ResourceEntry = z.infer<typeof ResourceEntrySchema>
11799
11746
 
11800
11747
  declare const OmTopologyNodeRefSchema = z.discriminatedUnion('kind', [
@@ -11961,10 +11908,8 @@ type CrmStateKey = z.infer<typeof CrmStateKeySchema>
11961
11908
  * via rollup-plugin-dts. External consumers never see internal workspace imports.
11962
11909
  */
11963
11910
 
11964
- declare const ListBuilderStageKeySchema: z.ZodEnum<{
11965
- [x: string]: string;
11966
- }>;
11911
+ declare const ListBuilderStageKeySchema: z.ZodString;
11967
11912
  type ListBuilderStageKey = z.infer<typeof ListBuilderStageKeySchema>;
11968
11913
 
11969
- export { ActivityEventSchema, BuildPlanSnapshotStepSchema, ProspectingBuildTemplateSchema as BuildTemplateSchema, CRM_PIPELINE_DEFINITION, CrmStageKeySchema, CrmStateKeySchema, DEFAULT_CRM_ACTIONS, EmailSchema, ExecutionError, LEAD_GEN_STAGE_CATALOG, ListBuilderStageKeySchema, ProcessingStageStatusSchema, RegistryValidationError, ResourceRegistry, StepType, ToolingError, bindResourceDescriptor, defineResource, defineResourceOntology, defineResources, defineTopology, defineTopologyRelationship, deriveActions, parseTopologyNodeRef, topologyRef, topologyRelationship, validateResourceGovernance };
11970
- export type { AbsoluteScheduleConfig, AcqCompany, AcqContact, AcqDeal, AcqDealRow, AcqList, Action, ActionDef, ActivityEvent, AddToCampaignLead, AddToCampaignParams, AddToCampaignResult, AgentConfig, AgentConstraints, AgentDefinition, AgentMemory, FindCompanyEmailParams as AnymailfinderFindCompanyEmailParams, FindCompanyEmailResult as AnymailfinderFindCompanyEmailResult, FindDecisionMakerEmailParams as AnymailfinderFindDecisionMakerEmailParams, FindDecisionMakerEmailResult as AnymailfinderFindDecisionMakerEmailResult, FindPersonEmailParams as AnymailfinderFindPersonEmailParams, FindPersonEmailResult as AnymailfinderFindPersonEmailResult, AnymailfinderToolMap, VerifyEmailParams as AnymailfinderVerifyEmailParams, VerifyEmailResult as AnymailfinderVerifyEmailResult, ApifyToolMap, ApifyWebhookConfig, AppendRowsParams, AppendRowsResult, ApprovalToolMap, AttioToolMap, BatchUpdateParams, BatchUpdateResult, BuildPlanSnapshotStep, BulkDeleteLeadsParams, BulkDeleteLeadsResult, BulkImportParams, BulkImportResult, CancelHitlByDealIdParams, CancelSchedulesAndHitlByEmailParams, ClearDealFieldsParams, ClearRangeParams, ClearRangeResult, CompanyFilters, ConditionalNext, ContactFilters, Contract, CreateAttributeParams, CreateAttributeResult, CreateAutoPaymentLinkParams, CreateAutoPaymentLinkResult, CreateCheckoutSessionParams, CreateCheckoutSessionResult, CreateCompanyParams, CreateContactParams, CreateEnvelopeParams, CreateEnvelopeResult, CreateFolderParams, CreateFolderResult, CreateListParams, CreateNoteParams, CreateNoteResult, CreatePaymentLinkParams, CreatePaymentLinkResult, CreateRecordParams, CreateRecordResult, CreateScheduleInput, CrmStageKey, CrmStateKey, CrmToolMap, DeleteDealParams, DeleteNoteParams, DeleteNoteResult, DeleteRecordParams, DeleteRecordResult, DeleteRowByValueParams, DeleteRowByValueResult, DeploymentSpec, DownloadDocumentParams, DownloadDocumentResult, DropboxToolMap, ElevasConfig, EmailToolMap, EnvelopeDocument, EventTriggerConfig, ExecutionContext, ExecutionInterface, ExecutionMetadata, ExecutionToolMap, FilterExpression, FilterRowsParams, FilterRowsResult, FormField, FormFieldType, FormSchema, GetDailyCampaignAnalyticsParams, GetDailyCampaignAnalyticsResult, GetEmailsParams, GetEmailsResult, GetEnvelopeParams, GetEnvelopeResult, GetHeadersParams, GetHeadersResult, GetLastRowParams, GetLastRowResult, GetPaymentLinkParams, GetPaymentLinkResult, GetRecordParams, GetRecordResult, GetRowByValueParams, GetRowByValueResult, GetSpreadsheetMetadataParams, GetSpreadsheetMetadataResult, GmailSendEmailParams, GmailSendEmailResult, GmailToolMap, GoogleSheetsToolMap, HumanCheckpointDefinition, InstantlyToolMap, IntegrationDefinition, LLMAdapterFactory, LLMGenerateRequest, LLMGenerateResponse, LLMMessage, LLMModel, LeadToolMap, LinearNext, ListAttributesParams, ListAttributesResult, ListBuilderStageKey, ListBuilderStep, ListLeadsParams, ListLeadsResult, ListNotesParams, ListNotesResult, ListObjectsResult, ListPaymentLinksParams, ListPaymentLinksResult, ListToolMap, MarkProposalReviewedParams, MarkProposalSentParams, MethodEntry, MillionVerifierToolMap, ModelConfig, NextConfig, NotificationSDKInput, NotificationToolMap, OrganizationModelIntegrationResourceEntry, OrganizationModelResourceEntry, OrganizationModelResourceOntologyBinding, OrganizationModelTopology, OrganizationModelTopologyNodeRef, OrganizationModelTopologyRelationship, OrganizationModelWorkflowResourceEntry, PaginatedResult, PaginationParams, PdfToolMap, ProcessingStageStatus, ProjectsToolMap, QueryRecordsParams, QueryRecordsResult, ReadSheetParams, ReadSheetResult, Recipient, RecurringScheduleConfig, RelationshipDeclaration, RelativeScheduleConfig, RemoveFromSubsequenceParams, RemoveFromSubsequenceResult, ResendGetEmailParams, ResendGetEmailResult, ResendSendEmailParams, ResendSendEmailResult, ResendToolMap, ResourceCategory, ResourceDefinition, ResourceLink, ResourceMetricsConfig, ResourceRelationships, ResourceStatus$1 as ResourceStatus, ResourceType, RunActorParams, RunActorResult, SDKLLMGenerateParams, ScheduleOriginTracking, ScheduleTarget, ScheduleTriggerConfig, SchedulerToolMap, SendReplyParams, SendReplyResult, SetContactNurtureParams, SheetInfo, SignatureApiFieldType, SignatureApiToolMap, SigningPlace, SortCriteria, StartActorParams, StartActorResult, StepHandler, StorageDeleteInput, StorageDeleteOutput, StorageDownloadInput, StorageDownloadOutput, StorageListInput, StorageListOutput, StorageSignedUrlInput, StorageSignedUrlOutput, StorageToolMap, StorageUploadInput, StorageUploadOutput, StripeToolMap, TaskSchedule, TaskScheduleConfig, TombaToolMap, Tool, ToolExecutionOptions, ToolMethodMap, ToolingErrorType, TransitionItemParams, TriggerConfig, TriggerDefinition, UpdateAttributeParams, UpdateAttributeResult, UpdateCloseLostReasonParams, UpdateCompanyParams, UpdateContactParams, UpdateDiscoveryDataParams, UpdateFeesParams, UpdateInterestStatusParams, UpdateInterestStatusResult, UpdateListParams, UpdatePaymentLinkParams, UpdatePaymentLinkResult, UpdateProposalDataParams, UpdateRecordParams, UpdateRecordResult, UpdateRowByValueParams, UpdateRowByValueResult, UploadFileParams, UploadFileResult, UpsertCompanyParams, UpsertContactParams, UpsertDealParams, UpsertRowParams, UpsertRowResult, VoidEnvelopeParams, VoidEnvelopeResult, WebhookProviderType, WebhookTriggerConfig, WorkflowConfig, WorkflowDefinition, WorkflowStep, WriteSheetParams, WriteSheetResult };
11914
+ export { ActivityEventSchema, BuildPlanSnapshotStepSchema, ProspectingBuildTemplateSchema as BuildTemplateSchema, ContractRefResolutionError, CrmStageKeySchema, CrmStateKeySchema, DEFAULT_CRM_ACTIONS, EmailSchema, ExecutionError, ListBuilderStageKeySchema, ProcessingStageStatusSchema, RegistryValidationError, ResourceRegistry, StepType, ToolingError, bindResourceDescriptor, concurrentPool, defineContract, defineResource, defineResourceOntology, defineResources, defineStep, defineTopology, defineTopologyRelationship, defineWorkflow, deriveActions, diagnosticOutput, integrationInput, isZodType, parseTopologyNodeRef, resolveContractRef, runDiagnostic, splitName, topologyRef, topologyRelationship, validateResourceGovernance };
11915
+ export type { AbsoluteScheduleConfig, AcqCompany, AcqContact, AcqDeal, AcqDealRow, AcqList, Action, ActionDef, ActivityEvent, AddToCampaignLead, AddToCampaignParams, AddToCampaignResult, AgentConfig, AgentConstraints, AgentDefinition, AgentMemory, FindCompanyEmailParams as AnymailfinderFindCompanyEmailParams, FindCompanyEmailResult as AnymailfinderFindCompanyEmailResult, FindDecisionMakerEmailParams as AnymailfinderFindDecisionMakerEmailParams, FindDecisionMakerEmailResult as AnymailfinderFindDecisionMakerEmailResult, FindPersonEmailParams as AnymailfinderFindPersonEmailParams, FindPersonEmailResult as AnymailfinderFindPersonEmailResult, AnymailfinderToolMap, VerifyEmailParams as AnymailfinderVerifyEmailParams, VerifyEmailResult as AnymailfinderVerifyEmailResult, ApifyToolMap, ApifyWebhookConfig, AppendRowsParams, AppendRowsResult, ApprovalToolMap, AttioToolMap, BatchUpdateParams, BatchUpdateResult, BuildPlanSnapshotStep, BulkDeleteLeadsParams, BulkDeleteLeadsResult, BulkImportParams, BulkImportResult, CancelHitlByDealIdParams, CancelSchedulesAndHitlByEmailParams, ClearDealFieldsParams, ClearRangeParams, ClearRangeResult, CompanyFilters, ConcurrentPoolOptions, ConcurrentPoolResult, ConditionalNext, ContactFilters, Contract, ContractRefResolutionErrorCode, ContractRegistry, CreateAttributeParams, CreateAttributeResult, CreateAutoPaymentLinkParams, CreateAutoPaymentLinkResult, CreateCheckoutSessionParams, CreateCheckoutSessionResult, CreateCompanyParams, CreateContactParams, CreateEnvelopeParams, CreateEnvelopeResult, CreateFolderParams, CreateFolderResult, CreateListParams, CreateNoteParams, CreateNoteResult, CreatePaymentLinkParams, CreatePaymentLinkResult, CreateRecordParams, CreateRecordResult, CreateScheduleInput, CrmStageKey, CrmStateKey, CrmToolMap, DeleteDealParams, DeleteNoteParams, DeleteNoteResult, DeleteRecordParams, DeleteRecordResult, DeleteRowByValueParams, DeleteRowByValueResult, DeploymentSpec, DiagnosticOutput, DownloadDocumentParams, DownloadDocumentResult, DropboxToolMap, ElevasConfig, EmailToolMap, EnvelopeDocument, EventTriggerConfig, ExecutionContext, ExecutionInterface, ExecutionMetadata, ExecutionToolMap, FilterExpression, FilterRowsParams, FilterRowsResult, FormField, FormFieldType, FormSchema, GetDailyCampaignAnalyticsParams, GetDailyCampaignAnalyticsResult, GetEmailsParams, GetEmailsResult, GetEnvelopeParams, GetEnvelopeResult, GetHeadersParams, GetHeadersResult, GetLastRowParams, GetLastRowResult, GetPaymentLinkParams, GetPaymentLinkResult, GetRecordParams, GetRecordResult, GetRowByValueParams, GetRowByValueResult, GetSpreadsheetMetadataParams, GetSpreadsheetMetadataResult, GmailSendEmailParams, GmailSendEmailResult, GmailToolMap, GoogleSheetsToolMap, HumanCheckpointDefinition, InstantlyToolMap, IntegrationDefinition, LLMAdapterFactory, LLMGenerateRequest, LLMGenerateResponse, LLMMessage, LLMModel, LeadToolMap, LinearNext, ListAttributesParams, ListAttributesResult, ListBuilderStageKey, ListBuilderStep, ListLeadsParams, ListLeadsResult, ListNotesParams, ListNotesResult, ListObjectsResult, ListPaymentLinksParams, ListPaymentLinksResult, ListToolMap, MarkProposalReviewedParams, MarkProposalSentParams, MethodEntry, MillionVerifierToolMap, ModelConfig, NextConfig, NotificationSDKInput, NotificationToolMap, OrganizationModelIntegrationResourceEntry, OrganizationModelResourceEntry, OrganizationModelResourceOntologyBinding, OrganizationModelTopology, OrganizationModelTopologyNodeRef, OrganizationModelTopologyRelationship, OrganizationModelWorkflowResourceEntry, PaginatedResult, PaginationParams, PdfToolMap, ProcessingStageStatus, ProjectsToolMap, QueryRecordsParams, QueryRecordsResult, ReadSheetParams, ReadSheetResult, Recipient, RecurringScheduleConfig, RelationshipDeclaration, RelativeScheduleConfig, RemoveFromSubsequenceParams, RemoveFromSubsequenceResult, ResendGetEmailParams, ResendGetEmailResult, ResendSendEmailParams, ResendSendEmailResult, ResendToolMap, ResolvedContractRef, ResourceCategory, ResourceDefinition, ResourceLink, ResourceMetricsConfig, ResourceRelationships, ResourceStatus$1 as ResourceStatus, ResourceType, RunActorParams, RunActorResult, SDKLLMGenerateParams, ScheduleOriginTracking, ScheduleTarget, ScheduleTriggerConfig, SchedulerToolMap, SendReplyParams, SendReplyResult, SetContactNurtureParams, SheetInfo, SignatureApiFieldType, SignatureApiToolMap, SigningPlace, SortCriteria, StartActorParams, StartActorResult, StepHandler, StorageDeleteInput, StorageDeleteOutput, StorageDownloadInput, StorageDownloadOutput, StorageListInput, StorageListOutput, StorageSignedUrlInput, StorageSignedUrlOutput, StorageToolMap, StorageUploadInput, StorageUploadOutput, StripeToolMap, TaskSchedule, TaskScheduleConfig, TombaToolMap, Tool, ToolExecutionOptions, ToolMethodMap, ToolingErrorType, TransitionItemParams, TriggerConfig, TriggerDefinition, UpdateAttributeParams, UpdateAttributeResult, UpdateCloseLostReasonParams, UpdateCompanyParams, UpdateContactParams, UpdateDiscoveryDataParams, UpdateFeesParams, UpdateInterestStatusParams, UpdateInterestStatusResult, UpdateListParams, UpdatePaymentLinkParams, UpdatePaymentLinkResult, UpdateProposalDataParams, UpdateRecordParams, UpdateRecordResult, UpdateRowByValueParams, UpdateRowByValueResult, UploadFileParams, UploadFileResult, UpsertCompanyParams, UpsertContactParams, UpsertDealParams, UpsertRowParams, UpsertRowResult, VoidEnvelopeParams, VoidEnvelopeResult, WebhookProviderType, WebhookTriggerConfig, WorkflowConfig, WorkflowDefinition, WorkflowLogger, WorkflowStep, WriteSheetParams, WriteSheetResult };