@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
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
  }>;
@@ -4863,36 +4887,6 @@ type ListBuilderStep = z.infer<typeof ProspectingBuildTemplateStepSchema>;
4863
4887
  type RecordColumnConfig = z.infer<typeof RecordColumnConfigSchema>;
4864
4888
  type CredentialRequirement = z.infer<typeof CredentialRequirementSchema>;
4865
4889
 
4866
- /** One entry in the lead-gen stage catalog. */
4867
- interface LeadGenStageCatalogEntry {
4868
- /** Matches the status key written into processing_state jsonb (e.g. 'scraped'). */
4869
- key: string;
4870
- /** Human-readable label for UI display. */
4871
- label: string;
4872
- /** Short description of what this stage represents. */
4873
- description: string;
4874
- /** Canonical pipeline order for UI sorting. Lower = earlier in the funnel. */
4875
- order: number;
4876
- /** Which entity's processing_state jsonb carries this stage status. */
4877
- entity: 'company' | 'contact';
4878
- /** Additional entities allowed to write/read this processing_state key. */
4879
- additionalEntities?: Array<'company' | 'contact'>;
4880
- /**
4881
- * Optional read-side override for Records views when a company-scoped step
4882
- * produces records on a different entity.
4883
- */
4884
- recordEntity?: 'company' | 'contact';
4885
- /** Stage key to read from recordEntity.processing_state for Records views. */
4886
- recordStageKey?: string;
4887
- }
4888
- /**
4889
- * Canonical lead-gen processing stage catalog.
4890
- * Keys are the stage names written by workflow steps into processing_state jsonb.
4891
- *
4892
- * Ordered roughly by pipeline progression (prospecting -> outreach -> qualification).
4893
- */
4894
- declare const LEAD_GEN_STAGE_CATALOG: Record<string, LeadGenStageCatalogEntry>;
4895
-
4896
4890
  declare const ProcessingStageStatusSchema: z.ZodEnum<{
4897
4891
  error: "error";
4898
4892
  success: "success";
@@ -4956,7 +4950,7 @@ declare const DealSchemas: {
4956
4950
  assigneeUserId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4957
4951
  }, z.core.$strict>;
4958
4952
  TransitionItemRequest: z.ZodObject<{
4959
- pipelineKey: z.ZodLiteral<string>;
4953
+ pipelineKey: z.ZodString;
4960
4954
  stageKey: z.ZodEnum<{
4961
4955
  [x: string]: string;
4962
4956
  }>;
@@ -5323,9 +5317,11 @@ declare const DealSchemas: {
5323
5317
  }, z.core.$strip>>;
5324
5318
  };
5325
5319
  /**
5326
- * One stage entry in a list's `pipeline_config.stages[]`. The `key` is
5327
- * validated against `LEAD_GEN_STAGE_CATALOG` so list pipeline definitions
5328
- * 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.
5329
5325
  */
5330
5326
  declare const PipelineStageSchema: z.ZodObject<{
5331
5327
  key: z.ZodString;
@@ -5412,7 +5408,7 @@ type ProcessingStageStatus = z.infer<typeof ProcessingStageStatusSchema>;
5412
5408
 
5413
5409
  /** Raw database row type for acq_deals table */
5414
5410
  type AcqDealRow = Database['public']['Tables']['acq_deals']['Row'];
5415
- type LeadGenStageKey = (typeof LEAD_GEN_STAGE_CATALOG)[keyof typeof LEAD_GEN_STAGE_CATALOG]['key'];
5411
+ type LeadGenStageKey = string;
5416
5412
  interface ProcessingStateEntry {
5417
5413
  status: ProcessingStageStatus;
5418
5414
  data?: unknown;
@@ -9701,24 +9697,6 @@ type ToolingErrorType = 'service_unavailable' | 'permission_denied' | 'platform_
9701
9697
  */
9702
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';
9703
9699
 
9704
- /**
9705
- * Placeholder discriminated union for ContentNode (Wave 1A).
9706
- * Wave 2A wires concrete (kind, type) pairs via the registry.
9707
- *
9708
- * Per D2: unregistered (kind, type) pairs are allowed and pass through validation.
9709
- * Per L14: every node carries BOTH `kind` and `type`.
9710
- */
9711
- declare const ContentNodeSchema: z.ZodObject<{
9712
- label: z.ZodString;
9713
- description: z.ZodOptional<z.ZodString>;
9714
- order: z.ZodOptional<z.ZodNumber>;
9715
- parentContentId: z.ZodOptional<z.ZodString>;
9716
- kind: z.ZodString;
9717
- type: z.ZodString;
9718
- data: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
9719
- }, z.core.$strip>;
9720
- type ContentNode = z.infer<typeof ContentNodeSchema>;
9721
-
9722
9700
  type JsonPrimitive = string | number | boolean | null;
9723
9701
  type JsonValue = JsonPrimitive | JsonValue[] | {
9724
9702
  [key: string]: JsonValue;
@@ -9760,11 +9738,6 @@ interface SystemEntry {
9760
9738
  config?: Record<string, JsonValue>;
9761
9739
  ontology?: OntologyScope;
9762
9740
  systems?: Record<string, SystemEntry>;
9763
- /**
9764
- * @deprecated Compatibility-only bridge for old tenant data and migration readers.
9765
- * Author new semantic catalogs in `ontology` and local settings in `config`.
9766
- */
9767
- content?: Record<string, ContentNode>;
9768
9741
  subsystems?: Record<string, SystemEntry>;
9769
9742
  }
9770
9743
 
@@ -10634,14 +10607,18 @@ declare const OrganizationModelSchema: z.ZodObject<{
10634
10607
  writes: z.ZodOptional<z.ZodArray<z.ZodString>>;
10635
10608
  usesCatalogs: z.ZodOptional<z.ZodArray<z.ZodString>>;
10636
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>>;
10637
10614
  }, z.core.$strip>>;
10638
10615
  codeRefs: z.ZodDefault<z.ZodArray<z.ZodObject<{
10639
10616
  path: z.ZodString;
10640
10617
  role: z.ZodEnum<{
10641
- schema: "schema";
10642
10618
  config: "config";
10643
10619
  entrypoint: "entrypoint";
10644
10620
  handler: "handler";
10621
+ schema: "schema";
10645
10622
  test: "test";
10646
10623
  docs: "docs";
10647
10624
  }>;
@@ -10680,14 +10657,18 @@ declare const OrganizationModelSchema: z.ZodObject<{
10680
10657
  writes: z.ZodOptional<z.ZodArray<z.ZodString>>;
10681
10658
  usesCatalogs: z.ZodOptional<z.ZodArray<z.ZodString>>;
10682
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>>;
10683
10664
  }, z.core.$strip>>;
10684
10665
  codeRefs: z.ZodDefault<z.ZodArray<z.ZodObject<{
10685
10666
  path: z.ZodString;
10686
10667
  role: z.ZodEnum<{
10687
- schema: "schema";
10688
10668
  config: "config";
10689
10669
  entrypoint: "entrypoint";
10690
10670
  handler: "handler";
10671
+ schema: "schema";
10691
10672
  test: "test";
10692
10673
  docs: "docs";
10693
10674
  }>;
@@ -10757,14 +10738,18 @@ declare const OrganizationModelSchema: z.ZodObject<{
10757
10738
  writes: z.ZodOptional<z.ZodArray<z.ZodString>>;
10758
10739
  usesCatalogs: z.ZodOptional<z.ZodArray<z.ZodString>>;
10759
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>>;
10760
10745
  }, z.core.$strip>>;
10761
10746
  codeRefs: z.ZodDefault<z.ZodArray<z.ZodObject<{
10762
10747
  path: z.ZodString;
10763
10748
  role: z.ZodEnum<{
10764
- schema: "schema";
10765
10749
  config: "config";
10766
10750
  entrypoint: "entrypoint";
10767
10751
  handler: "handler";
10752
+ schema: "schema";
10768
10753
  test: "test";
10769
10754
  docs: "docs";
10770
10755
  }>;
@@ -10792,14 +10777,18 @@ declare const OrganizationModelSchema: z.ZodObject<{
10792
10777
  writes: z.ZodOptional<z.ZodArray<z.ZodString>>;
10793
10778
  usesCatalogs: z.ZodOptional<z.ZodArray<z.ZodString>>;
10794
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>>;
10795
10784
  }, z.core.$strip>>;
10796
10785
  codeRefs: z.ZodDefault<z.ZodArray<z.ZodObject<{
10797
10786
  path: z.ZodString;
10798
10787
  role: z.ZodEnum<{
10799
- schema: "schema";
10800
10788
  config: "config";
10801
10789
  entrypoint: "entrypoint";
10802
10790
  handler: "handler";
10791
+ schema: "schema";
10803
10792
  test: "test";
10804
10793
  docs: "docs";
10805
10794
  }>;
@@ -11086,11 +11075,10 @@ declare const OrganizationModelSchema: z.ZodObject<{
11086
11075
  ontology: "ontology";
11087
11076
  role: "role";
11088
11077
  goal: "goal";
11089
- stage: "stage";
11090
11078
  resource: "resource";
11079
+ stage: "stage";
11091
11080
  "customer-segment": "customer-segment";
11092
11081
  offering: "offering";
11093
- "content-node": "content-node";
11094
11082
  }>;
11095
11083
  id: z.ZodString;
11096
11084
  }, z.core.$strip>;
@@ -11098,7 +11086,7 @@ declare const OrganizationModelSchema: z.ZodObject<{
11098
11086
  nodeId: z.ZodUnion<readonly [z.ZodString, z.ZodTemplateLiteral<`ontology:${string}`>]>;
11099
11087
  }, z.core.$strip>]>, z.ZodTransform<{
11100
11088
  target: {
11101
- 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";
11102
11090
  id: string;
11103
11091
  };
11104
11092
  nodeId: string;
@@ -11106,7 +11094,7 @@ declare const OrganizationModelSchema: z.ZodObject<{
11106
11094
  nodeId: string;
11107
11095
  } | {
11108
11096
  target: {
11109
- 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";
11110
11098
  id: string;
11111
11099
  };
11112
11100
  }>>>>;
@@ -11561,6 +11549,87 @@ interface ElevasConfig {
11561
11549
  };
11562
11550
  }
11563
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
+
11564
11633
  /**
11565
11634
  * Runtime values for SDK developers.
11566
11635
  *
@@ -11588,147 +11657,6 @@ declare class ToolingError extends ExecutionError {
11588
11657
  constructor(errorType: string, message: string, details?: unknown);
11589
11658
  }
11590
11659
 
11591
- // ============================================================================
11592
- // Lead-Gen Stateful Pipeline Definitions (Decision N8, Wave 4)
11593
- //
11594
- // Defines the (pipeline_key, stage_key, state_key) vocabulary for the three
11595
- // entities that carry the Stateful trait via Track B:
11596
- // - acq_lists (pipeline_key='lead-gen', stage_key='lifecycle')
11597
- // - acq_list_members (pipeline_key='lead-gen', stages: outreach / prospecting / qualification)
11598
- // - acq_list_companies (pipeline_key='lead-gen', stages: outreach / prospecting / qualification)
11599
- //
11600
- // DB columns (pipeline_key, stage_key, state_key) remain free-form text with no
11601
- // CHECK constraint — new states can be introduced without a migration (Decision N8).
11602
- // These definitions are the org-specific source of truth consumed by UI and tooling.
11603
- //
11604
- // State vocabularies sourced from the post-restructure sales tree (W3 canonical):
11605
- // outreach/:
11606
- // - personalized (instantly-personalization.ts → contacts)
11607
- // - uploaded (instantly-upload.ts → contacts)
11608
- // - interested (instantly-reply-handler.ts → contacts, initial reply transition)
11609
- // prospecting/:
11610
- // - populated (apify-acquire.ts, apify-scrape.ts → companies)
11611
- // - crawled (apify-website-crawl.ts → companies)
11612
- // - extracted (website-extract.ts → companies)
11613
- // - discovered (email-discovery.ts, anymailfinder-enrich.ts → contacts)
11614
- // - verified (email-verification.ts → contacts)
11615
- // qualification/:
11616
- // - qualified (company-qualification.ts → companies)
11617
- //
11618
- // The 'pending' state is the W2 backfill default (coalesce(stage, 'pending')).
11619
- // It is valid in any stage and represents "not yet processed by a workflow step".
11620
- // ============================================================================
11621
-
11622
- /** One state within a stage — minimal shape: key + display label. */
11623
- interface StatefulStateDefinition {
11624
- /** Matches state_key values written by workflow steps. */
11625
- stateKey: string
11626
- label: string
11627
- }
11628
-
11629
- /** One stage within a pipeline — has a stage_key and an ordered list of valid states. */
11630
- interface StatefulStageDefinition {
11631
- /** Matches stage_key values written by workflow steps. */
11632
- stageKey: string
11633
- label: string
11634
- /** UI color token. Consumers may map this to their design system. */
11635
- color?: string
11636
- states: StatefulStateDefinition[]
11637
- }
11638
-
11639
- /**
11640
- * Pipeline definition for a single entity participating in the Stateful trait.
11641
- * Parallel to acq_deals' pipeline_key concept but structured for lead-gen entities.
11642
- */
11643
- interface StatefulPipelineDefinition {
11644
- /** Matches pipeline_key values in the database (e.g. 'lead-gen'). */
11645
- pipelineKey: string
11646
- label: string
11647
- /** Entity this pipeline applies to (e.g. 'acq.list', 'acq.list-member', 'acq.list-company'). */
11648
- entityKey: string
11649
- stages: StatefulStageDefinition[]
11650
- }
11651
-
11652
- // ============================================================================
11653
- // CRM Stateful Pipeline Definition
11654
- //
11655
- // Defines the (pipeline_key, stage_key, state_key) vocabulary for crm.deal
11656
- // entities. Stage keys match DEFAULT_ORGANIZATION_MODEL_SALES.pipelines[0].stages.
11657
- //
11658
- // State vocabularies sourced from the CRM action/handler tree:
11659
- // interested/:
11660
- // - discovery_replied (instantly-reply-handler.ts → first/subsequent reply)
11661
- // - discovery_link_sent (crm-send-booking-link.ts, crm-rebook.ts → booking link sent)
11662
- // - discovery_nudging (crm-send-nudge.ts → nudge sent after link)
11663
- // - discovery_booking_cancelled (booking-revert.ts → Cal cancellation webhook)
11664
- // - reply_sent (crm-send-reply.ts → operator reply sent)
11665
- // - followup_1_sent (crm-reply-followup.ts day=3)
11666
- // - followup_2_sent (crm-reply-followup.ts day=5)
11667
- // - followup_3_sent (crm-reply-followup.ts day=7)
11668
- // proposal, closing, closed_won, closed_lost, nurturing: no observed sub-states
11669
- // ============================================================================
11670
-
11671
- declare const CRM_DISCOVERY_REPLIED_STATE: StatefulStateDefinition = {
11672
- stateKey: 'discovery_replied',
11673
- label: 'Discovery Replied'
11674
- }
11675
- declare const CRM_DISCOVERY_LINK_SENT_STATE: StatefulStateDefinition = {
11676
- stateKey: 'discovery_link_sent',
11677
- label: 'Discovery Link Sent'
11678
- }
11679
- declare const CRM_DISCOVERY_NUDGING_STATE: StatefulStateDefinition = {
11680
- stateKey: 'discovery_nudging',
11681
- label: 'Discovery Nudging'
11682
- }
11683
- declare const CRM_DISCOVERY_BOOKING_CANCELLED_STATE: StatefulStateDefinition = {
11684
- stateKey: 'discovery_booking_cancelled',
11685
- label: 'Discovery Booking Cancelled'
11686
- }
11687
- declare const CRM_REPLY_SENT_STATE: StatefulStateDefinition = {
11688
- stateKey: 'reply_sent',
11689
- label: 'Reply Sent'
11690
- }
11691
- declare const CRM_FOLLOWUP_1_SENT_STATE: StatefulStateDefinition = {
11692
- stateKey: 'followup_1_sent',
11693
- label: 'Follow-up 1 Sent'
11694
- }
11695
- declare const CRM_FOLLOWUP_2_SENT_STATE: StatefulStateDefinition = {
11696
- stateKey: 'followup_2_sent',
11697
- label: 'Follow-up 2 Sent'
11698
- }
11699
- declare const CRM_FOLLOWUP_3_SENT_STATE: StatefulStateDefinition = {
11700
- stateKey: 'followup_3_sent',
11701
- label: 'Follow-up 3 Sent'
11702
- }
11703
-
11704
- declare const CRM_PIPELINE_DEFINITION: StatefulPipelineDefinition = {
11705
- pipelineKey: 'crm',
11706
- label: 'CRM',
11707
- entityKey: 'crm.deal',
11708
- stages: [
11709
- {
11710
- stageKey: 'interested',
11711
- label: 'Interested',
11712
- color: 'blue',
11713
- states: [
11714
- CRM_DISCOVERY_REPLIED_STATE,
11715
- CRM_DISCOVERY_LINK_SENT_STATE,
11716
- CRM_DISCOVERY_NUDGING_STATE,
11717
- CRM_DISCOVERY_BOOKING_CANCELLED_STATE,
11718
- CRM_REPLY_SENT_STATE,
11719
- CRM_FOLLOWUP_1_SENT_STATE,
11720
- CRM_FOLLOWUP_2_SENT_STATE,
11721
- CRM_FOLLOWUP_3_SENT_STATE
11722
- ]
11723
- },
11724
- { stageKey: 'proposal', label: 'Proposal', color: 'yellow', states: [] },
11725
- { stageKey: 'closing', label: 'Closing', color: 'orange', states: [] },
11726
- { stageKey: 'closed_won', label: 'Closed Won', color: 'green', states: [] },
11727
- { stageKey: 'closed_lost', label: 'Closed Lost', color: 'red', states: [] },
11728
- { stageKey: 'nurturing', label: 'Nurturing', color: 'grape', states: [] }
11729
- ]
11730
- }
11731
-
11732
11660
  declare const ResourceOntologyBindingSchema = z
11733
11661
  .object({
11734
11662
  actions: z.array(OntologyIdSchema).optional(),
@@ -11736,7 +11664,22 @@ declare const ResourceOntologyBindingSchema = z
11736
11664
  reads: z.array(OntologyIdSchema).optional(),
11737
11665
  writes: z.array(OntologyIdSchema).optional(),
11738
11666
  usesCatalogs: z.array(OntologyIdSchema).optional(),
11739
- 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()
11740
11683
  })
11741
11684
  .superRefine((binding, ctx) => {
11742
11685
  if (binding.primaryAction === undefined) return
@@ -11758,33 +11701,33 @@ type ResourceOntologyBindingInput = {
11758
11701
  usesCatalogs?: OntologyRefInput[]
11759
11702
  emits?: OntologyRefInput[]
11760
11703
  }
11761
-
11704
+
11762
11705
  declare const WorkflowResourceEntrySchema = ResourceEntryBaseSchema.extend({
11763
11706
  kind: z.literal('workflow'),
11764
11707
  emits: z.array(EventEmissionDescriptorSchema).optional()
11765
- })
11766
-
11767
- declare const IntegrationResourceEntrySchema = ResourceEntryBaseSchema.extend({
11768
- kind: z.literal('integration'),
11769
- provider: z.string().trim().min(1).max(100)
11770
- })
11771
-
11772
- declare const ResourceEntrySchema = z.discriminatedUnion('kind', [
11773
- WorkflowResourceEntrySchema,
11774
- AgentResourceEntrySchema,
11775
- IntegrationResourceEntrySchema,
11776
- ScriptResourceEntrySchema
11777
- ])
11778
-
11779
- declare function defineResource<const TResource extends ResourceEntry>(resource: TResource): TResource {
11780
- return ResourceEntrySchema.parse(resource) as TResource
11781
- }
11782
-
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
+
11783
11726
  declare function defineResources<const TResources extends Record<string, ResourceEntry>>(
11784
11727
  resources: TResources
11785
11728
  ): TResources {
11786
- return Object.fromEntries(
11787
- 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)])
11788
11731
  ) as TResources
11789
11732
  }
11790
11733
 
@@ -11798,7 +11741,7 @@ declare function defineResourceOntology(input: ResourceOntologyBindingInput): Re
11798
11741
  emits: ontologyIdArrayFrom(input.emits)
11799
11742
  })
11800
11743
  }
11801
- type ResourceOntologyBinding = z.infer<typeof ResourceOntologyBindingSchema>
11744
+ type ResourceOntologyBinding = z.infer<typeof ResourceOntologyBindingSchema>
11802
11745
  type ResourceEntry = z.infer<typeof ResourceEntrySchema>
11803
11746
 
11804
11747
  declare const OmTopologyNodeRefSchema = z.discriminatedUnion('kind', [
@@ -11965,10 +11908,8 @@ type CrmStateKey = z.infer<typeof CrmStateKeySchema>
11965
11908
  * via rollup-plugin-dts. External consumers never see internal workspace imports.
11966
11909
  */
11967
11910
 
11968
- declare const ListBuilderStageKeySchema: z.ZodEnum<{
11969
- [x: string]: string;
11970
- }>;
11911
+ declare const ListBuilderStageKeySchema: z.ZodString;
11971
11912
  type ListBuilderStageKey = z.infer<typeof ListBuilderStageKeySchema>;
11972
11913
 
11973
- 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 };
11974
- 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 };