@elevasis/sdk 1.18.0 → 1.20.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 (58) hide show
  1. package/dist/cli.cjs +1915 -70
  2. package/dist/index.d.ts +825 -16
  3. package/dist/index.js +714 -63
  4. package/dist/node/index.d.ts +1 -0
  5. package/dist/node/index.js +213 -2
  6. package/dist/test-utils/index.d.ts +479 -14
  7. package/dist/test-utils/index.js +660 -54
  8. package/dist/worker/index.js +516 -54
  9. package/package.json +4 -4
  10. package/reference/_navigation.md +2 -1
  11. package/reference/_reference-manifest.json +14 -0
  12. package/reference/claude-config/registries/graph-skills.json +4 -0
  13. package/reference/claude-config/rules/agent-start-here.md +5 -5
  14. package/reference/claude-config/rules/deployment.md +4 -3
  15. package/reference/claude-config/rules/frontend.md +2 -2
  16. package/reference/claude-config/rules/operations.md +17 -13
  17. package/reference/claude-config/rules/organization-model.md +7 -5
  18. package/reference/claude-config/rules/organization-os.md +13 -11
  19. package/reference/claude-config/rules/ui.md +3 -3
  20. package/reference/claude-config/rules/vibe.md +4 -4
  21. package/reference/claude-config/skills/explore/SKILL.md +4 -4
  22. package/reference/claude-config/skills/knowledge/SKILL.md +17 -16
  23. package/reference/claude-config/skills/knowledge/operations/codify-level-a.md +7 -7
  24. package/reference/claude-config/skills/knowledge/operations/codify-level-b.md +13 -13
  25. package/reference/claude-config/skills/knowledge/operations/customers.md +1 -1
  26. package/reference/claude-config/skills/knowledge/operations/goals.md +1 -1
  27. package/reference/claude-config/skills/knowledge/operations/identity.md +1 -1
  28. package/reference/claude-config/skills/knowledge/operations/offerings.md +1 -1
  29. package/reference/claude-config/skills/knowledge/operations/roles.md +1 -1
  30. package/reference/claude-config/skills/knowledge/operations/techStack.md +19 -91
  31. package/reference/claude-config/skills/project/SKILL.md +73 -13
  32. package/reference/claude-config/skills/save/SKILL.md +5 -5
  33. package/reference/claude-config/skills/tutorial/technical.md +11 -14
  34. package/reference/claude-config/sync-notes/2026-05-06-crm-spine.md +60 -0
  35. package/reference/claude-config/sync-notes/2026-05-07-sdk-changes-release-train.md +34 -0
  36. package/reference/claude-config/sync-notes/2026-05-08-resource-governance-scaffold-guidance.md +38 -0
  37. package/reference/claude-config/sync-notes/2026-05-09-clients-domain.md +32 -0
  38. package/reference/claude-config/sync-notes/2026-05-09-command-system.md +33 -0
  39. package/reference/claude-config/sync-notes/2026-05-09-resource-governance-and-misc.md +69 -0
  40. package/reference/examples/organization-model.ts +17 -5
  41. package/reference/framework/index.mdx +1 -1
  42. package/reference/framework/project-structure.mdx +10 -8
  43. package/reference/packages/core/src/business/README.md +2 -2
  44. package/reference/packages/core/src/organization-model/README.md +10 -3
  45. package/reference/resources/index.mdx +27 -17
  46. package/reference/scaffold/core/organization-model.mdx +33 -14
  47. package/reference/scaffold/operations/workflow-recipes.md +35 -29
  48. package/reference/scaffold/recipes/add-a-feature.md +18 -3
  49. package/reference/scaffold/recipes/add-a-resource.md +50 -10
  50. package/reference/scaffold/recipes/customize-crm-actions.md +12 -6
  51. package/reference/scaffold/recipes/customize-organization-model.md +18 -3
  52. package/reference/scaffold/recipes/extend-crm.md +17 -19
  53. package/reference/scaffold/recipes/extend-lead-gen.md +31 -31
  54. package/reference/scaffold/recipes/index.md +1 -1
  55. package/reference/scaffold/reference/contracts.md +512 -307
  56. package/reference/scaffold/reference/feature-registry.md +1 -1
  57. package/reference/scaffold/reference/glossary.md +8 -3
  58. package/reference/scaffold/ui/recipes.md +21 -6
package/dist/index.d.ts CHANGED
@@ -318,6 +318,7 @@ interface SerializedAgentDefinition {
318
318
  description: string;
319
319
  version: string;
320
320
  type: 'agent';
321
+ kind: 'orchestrator' | 'specialist' | 'utility' | 'system';
321
322
  status: 'dev' | 'prod';
322
323
  links?: ResourceLink[];
323
324
  category?: ResourceCategory;
@@ -501,6 +502,131 @@ interface ModelConfig {
501
502
  modelOptions?: ModelSpecificOptions;
502
503
  }
503
504
 
505
+ declare const ResourceGovernanceStatusSchema: z.ZodEnum<{
506
+ active: "active";
507
+ deprecated: "deprecated";
508
+ archived: "archived";
509
+ }>;
510
+ declare const WorkflowResourceEntrySchema: z.ZodObject<{
511
+ id: z.ZodString;
512
+ systemId: z.ZodString;
513
+ ownerRoleId: z.ZodOptional<z.ZodString>;
514
+ status: z.ZodEnum<{
515
+ active: "active";
516
+ deprecated: "deprecated";
517
+ archived: "archived";
518
+ }>;
519
+ kind: z.ZodLiteral<"workflow">;
520
+ capabilityKey: z.ZodOptional<z.ZodString>;
521
+ }, z.core.$strip>;
522
+ declare const AgentResourceEntrySchema: z.ZodObject<{
523
+ id: z.ZodString;
524
+ systemId: z.ZodString;
525
+ ownerRoleId: z.ZodOptional<z.ZodString>;
526
+ status: z.ZodEnum<{
527
+ active: "active";
528
+ deprecated: "deprecated";
529
+ archived: "archived";
530
+ }>;
531
+ kind: z.ZodLiteral<"agent">;
532
+ agentKind: z.ZodEnum<{
533
+ orchestrator: "orchestrator";
534
+ specialist: "specialist";
535
+ utility: "utility";
536
+ system: "system";
537
+ }>;
538
+ actsAsRoleId: z.ZodOptional<z.ZodString>;
539
+ sessionCapable: z.ZodBoolean;
540
+ }, z.core.$strip>;
541
+ declare const ResourceEntrySchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
542
+ id: z.ZodString;
543
+ systemId: z.ZodString;
544
+ ownerRoleId: z.ZodOptional<z.ZodString>;
545
+ status: z.ZodEnum<{
546
+ active: "active";
547
+ deprecated: "deprecated";
548
+ archived: "archived";
549
+ }>;
550
+ kind: z.ZodLiteral<"workflow">;
551
+ capabilityKey: z.ZodOptional<z.ZodString>;
552
+ }, z.core.$strip>, z.ZodObject<{
553
+ id: z.ZodString;
554
+ systemId: z.ZodString;
555
+ ownerRoleId: z.ZodOptional<z.ZodString>;
556
+ status: z.ZodEnum<{
557
+ active: "active";
558
+ deprecated: "deprecated";
559
+ archived: "archived";
560
+ }>;
561
+ kind: z.ZodLiteral<"agent">;
562
+ agentKind: z.ZodEnum<{
563
+ orchestrator: "orchestrator";
564
+ specialist: "specialist";
565
+ utility: "utility";
566
+ system: "system";
567
+ }>;
568
+ actsAsRoleId: z.ZodOptional<z.ZodString>;
569
+ sessionCapable: z.ZodBoolean;
570
+ }, z.core.$strip>, z.ZodObject<{
571
+ id: z.ZodString;
572
+ systemId: z.ZodString;
573
+ ownerRoleId: z.ZodOptional<z.ZodString>;
574
+ status: z.ZodEnum<{
575
+ active: "active";
576
+ deprecated: "deprecated";
577
+ archived: "archived";
578
+ }>;
579
+ kind: z.ZodLiteral<"integration">;
580
+ provider: z.ZodString;
581
+ }, z.core.$strip>], "kind">;
582
+ declare const ResourcesDomainSchema: z.ZodObject<{
583
+ entries: z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
584
+ id: z.ZodString;
585
+ systemId: z.ZodString;
586
+ ownerRoleId: z.ZodOptional<z.ZodString>;
587
+ status: z.ZodEnum<{
588
+ active: "active";
589
+ deprecated: "deprecated";
590
+ archived: "archived";
591
+ }>;
592
+ kind: z.ZodLiteral<"workflow">;
593
+ capabilityKey: z.ZodOptional<z.ZodString>;
594
+ }, z.core.$strip>, z.ZodObject<{
595
+ id: z.ZodString;
596
+ systemId: z.ZodString;
597
+ ownerRoleId: z.ZodOptional<z.ZodString>;
598
+ status: z.ZodEnum<{
599
+ active: "active";
600
+ deprecated: "deprecated";
601
+ archived: "archived";
602
+ }>;
603
+ kind: z.ZodLiteral<"agent">;
604
+ agentKind: z.ZodEnum<{
605
+ orchestrator: "orchestrator";
606
+ specialist: "specialist";
607
+ utility: "utility";
608
+ system: "system";
609
+ }>;
610
+ actsAsRoleId: z.ZodOptional<z.ZodString>;
611
+ sessionCapable: z.ZodBoolean;
612
+ }, z.core.$strip>, z.ZodObject<{
613
+ id: z.ZodString;
614
+ systemId: z.ZodString;
615
+ ownerRoleId: z.ZodOptional<z.ZodString>;
616
+ status: z.ZodEnum<{
617
+ active: "active";
618
+ deprecated: "deprecated";
619
+ archived: "archived";
620
+ }>;
621
+ kind: z.ZodLiteral<"integration">;
622
+ provider: z.ZodString;
623
+ }, z.core.$strip>], "kind">>>;
624
+ }, z.core.$strip>;
625
+ type ResourceGovernanceStatus = z.infer<typeof ResourceGovernanceStatusSchema>;
626
+ type WorkflowResourceEntry = z.infer<typeof WorkflowResourceEntrySchema>;
627
+ type AgentResourceEntry = z.infer<typeof AgentResourceEntrySchema>;
628
+ type ResourceEntry = z.infer<typeof ResourceEntrySchema>;
629
+
504
630
  /**
505
631
  * Shared form field types for dynamic form generation
506
632
  * Used by: Command Queue, Execution Runner UI, future form-based features
@@ -608,6 +734,8 @@ interface WebhookConfig {
608
734
 
609
735
  interface WorkflowConfig extends ResourceDefinition {
610
736
  type: 'workflow';
737
+ /** OM descriptor backing canonical identity and governance metadata. */
738
+ resource?: WorkflowResourceEntry;
611
739
  /** Lead-gen capability key for registry derivation (e.g. 'lead-gen.company.apollo-import') */
612
740
  capabilityKey?: string;
613
741
  }
@@ -960,8 +1088,12 @@ interface KnowledgeContent {
960
1088
  * AIUsageCollector/AICallContext) and the worker proxy (which ignores them) satisfy the type.
961
1089
  */
962
1090
  type LLMAdapterFactory = (config: ModelConfig, ...args: any[]) => LLMAdapter;
1091
+ type AgentKind = 'orchestrator' | 'specialist' | 'utility' | 'system';
963
1092
  interface AgentConfig extends ResourceDefinition {
964
1093
  type: 'agent';
1094
+ /** OM descriptor backing canonical identity and governance metadata. */
1095
+ resource?: AgentResourceEntry;
1096
+ kind: AgentKind;
965
1097
  systemPrompt: string;
966
1098
  constraints?: AgentConstraints;
967
1099
  /**
@@ -1119,6 +1251,7 @@ type Database = {
1119
1251
  batch_id: string | null;
1120
1252
  category: string | null;
1121
1253
  category_pain: string | null;
1254
+ client_id: string | null;
1122
1255
  created_at: string;
1123
1256
  domain: string | null;
1124
1257
  enrichment_data: Json | null;
@@ -1145,6 +1278,7 @@ type Database = {
1145
1278
  batch_id?: string | null;
1146
1279
  category?: string | null;
1147
1280
  category_pain?: string | null;
1281
+ client_id?: string | null;
1148
1282
  created_at?: string;
1149
1283
  domain?: string | null;
1150
1284
  enrichment_data?: Json | null;
@@ -1171,6 +1305,7 @@ type Database = {
1171
1305
  batch_id?: string | null;
1172
1306
  category?: string | null;
1173
1307
  category_pain?: string | null;
1308
+ client_id?: string | null;
1174
1309
  created_at?: string;
1175
1310
  domain?: string | null;
1176
1311
  enrichment_data?: Json | null;
@@ -1194,6 +1329,13 @@ type Database = {
1194
1329
  website?: string | null;
1195
1330
  };
1196
1331
  Relationships: [
1332
+ {
1333
+ foreignKeyName: "acq_companies_client_id_fkey";
1334
+ columns: ["client_id"];
1335
+ isOneToOne: false;
1336
+ referencedRelation: "clients";
1337
+ referencedColumns: ["id"];
1338
+ },
1197
1339
  {
1198
1340
  foreignKeyName: "acq_companies_organization_id_fkey";
1199
1341
  columns: ["organization_id"];
@@ -1208,6 +1350,7 @@ type Database = {
1208
1350
  batch_id: string | null;
1209
1351
  brochure_first_viewed_at: string | null;
1210
1352
  brochure_view_count: number;
1353
+ client_id: string | null;
1211
1354
  company_id: string | null;
1212
1355
  created_at: string;
1213
1356
  email: string;
@@ -1236,6 +1379,7 @@ type Database = {
1236
1379
  batch_id?: string | null;
1237
1380
  brochure_first_viewed_at?: string | null;
1238
1381
  brochure_view_count?: number;
1382
+ client_id?: string | null;
1239
1383
  company_id?: string | null;
1240
1384
  created_at?: string;
1241
1385
  email: string;
@@ -1264,6 +1408,7 @@ type Database = {
1264
1408
  batch_id?: string | null;
1265
1409
  brochure_first_viewed_at?: string | null;
1266
1410
  brochure_view_count?: number;
1411
+ client_id?: string | null;
1267
1412
  company_id?: string | null;
1268
1413
  created_at?: string;
1269
1414
  email?: string;
@@ -1289,6 +1434,13 @@ type Database = {
1289
1434
  updated_at?: string;
1290
1435
  };
1291
1436
  Relationships: [
1437
+ {
1438
+ foreignKeyName: "acq_contacts_client_id_fkey";
1439
+ columns: ["client_id"];
1440
+ isOneToOne: false;
1441
+ referencedRelation: "clients";
1442
+ referencedColumns: ["id"];
1443
+ },
1292
1444
  {
1293
1445
  foreignKeyName: "acq_contacts_company_id_fkey";
1294
1446
  columns: ["company_id"];
@@ -1532,8 +1684,10 @@ type Database = {
1532
1684
  acq_deals: {
1533
1685
  Row: {
1534
1686
  activity_log: Json;
1687
+ client_id: string | null;
1535
1688
  closed_lost_at: string | null;
1536
1689
  closed_lost_reason: string | null;
1690
+ company_id: string | null;
1537
1691
  contact_email: string;
1538
1692
  contact_id: string | null;
1539
1693
  created_at: string;
@@ -1569,8 +1723,10 @@ type Database = {
1569
1723
  };
1570
1724
  Insert: {
1571
1725
  activity_log?: Json;
1726
+ client_id?: string | null;
1572
1727
  closed_lost_at?: string | null;
1573
1728
  closed_lost_reason?: string | null;
1729
+ company_id?: string | null;
1574
1730
  contact_email: string;
1575
1731
  contact_id?: string | null;
1576
1732
  created_at?: string;
@@ -1606,8 +1762,10 @@ type Database = {
1606
1762
  };
1607
1763
  Update: {
1608
1764
  activity_log?: Json;
1765
+ client_id?: string | null;
1609
1766
  closed_lost_at?: string | null;
1610
1767
  closed_lost_reason?: string | null;
1768
+ company_id?: string | null;
1611
1769
  contact_email?: string;
1612
1770
  contact_id?: string | null;
1613
1771
  created_at?: string;
@@ -1642,6 +1800,20 @@ type Database = {
1642
1800
  updated_at?: string;
1643
1801
  };
1644
1802
  Relationships: [
1803
+ {
1804
+ foreignKeyName: "acq_deals_client_id_fkey";
1805
+ columns: ["client_id"];
1806
+ isOneToOne: false;
1807
+ referencedRelation: "clients";
1808
+ referencedColumns: ["id"];
1809
+ },
1810
+ {
1811
+ foreignKeyName: "acq_deals_company_id_fkey";
1812
+ columns: ["company_id"];
1813
+ isOneToOne: false;
1814
+ referencedRelation: "acq_companies";
1815
+ referencedColumns: ["id"];
1816
+ },
1645
1817
  {
1646
1818
  foreignKeyName: "acq_deals_contact_id_fkey";
1647
1819
  columns: ["contact_id"];
@@ -2259,6 +2431,77 @@ type Database = {
2259
2431
  }
2260
2432
  ];
2261
2433
  };
2434
+ clients: {
2435
+ Row: {
2436
+ converted_at: string | null;
2437
+ created_at: string;
2438
+ id: string;
2439
+ metadata: Json;
2440
+ name: string;
2441
+ organization_id: string;
2442
+ primary_company_id: string | null;
2443
+ primary_contact_id: string | null;
2444
+ source_deal_id: string | null;
2445
+ status: string;
2446
+ updated_at: string;
2447
+ };
2448
+ Insert: {
2449
+ converted_at?: string | null;
2450
+ created_at?: string;
2451
+ id?: string;
2452
+ metadata?: Json;
2453
+ name: string;
2454
+ organization_id: string;
2455
+ primary_company_id?: string | null;
2456
+ primary_contact_id?: string | null;
2457
+ source_deal_id?: string | null;
2458
+ status?: string;
2459
+ updated_at?: string;
2460
+ };
2461
+ Update: {
2462
+ converted_at?: string | null;
2463
+ created_at?: string;
2464
+ id?: string;
2465
+ metadata?: Json;
2466
+ name?: string;
2467
+ organization_id?: string;
2468
+ primary_company_id?: string | null;
2469
+ primary_contact_id?: string | null;
2470
+ source_deal_id?: string | null;
2471
+ status?: string;
2472
+ updated_at?: string;
2473
+ };
2474
+ Relationships: [
2475
+ {
2476
+ foreignKeyName: "clients_organization_id_fkey";
2477
+ columns: ["organization_id"];
2478
+ isOneToOne: false;
2479
+ referencedRelation: "organizations";
2480
+ referencedColumns: ["id"];
2481
+ },
2482
+ {
2483
+ foreignKeyName: "clients_primary_company_id_fkey";
2484
+ columns: ["primary_company_id"];
2485
+ isOneToOne: false;
2486
+ referencedRelation: "acq_companies";
2487
+ referencedColumns: ["id"];
2488
+ },
2489
+ {
2490
+ foreignKeyName: "clients_primary_contact_id_fkey";
2491
+ columns: ["primary_contact_id"];
2492
+ isOneToOne: false;
2493
+ referencedRelation: "acq_contacts";
2494
+ referencedColumns: ["id"];
2495
+ },
2496
+ {
2497
+ foreignKeyName: "clients_source_deal_id_fkey";
2498
+ columns: ["source_deal_id"];
2499
+ isOneToOne: false;
2500
+ referencedRelation: "acq_deals";
2501
+ referencedColumns: ["id"];
2502
+ }
2503
+ ];
2504
+ };
2262
2505
  command_queue: {
2263
2506
  Row: {
2264
2507
  action_payload: Json | null;
@@ -3228,6 +3471,7 @@ type Database = {
3228
3471
  Row: {
3229
3472
  actual_end_date: string | null;
3230
3473
  client_company_id: string | null;
3474
+ client_id: string | null;
3231
3475
  contract_value: number | null;
3232
3476
  created_at: string;
3233
3477
  deal_id: string | null;
@@ -3245,6 +3489,7 @@ type Database = {
3245
3489
  Insert: {
3246
3490
  actual_end_date?: string | null;
3247
3491
  client_company_id?: string | null;
3492
+ client_id?: string | null;
3248
3493
  contract_value?: number | null;
3249
3494
  created_at?: string;
3250
3495
  deal_id?: string | null;
@@ -3262,6 +3507,7 @@ type Database = {
3262
3507
  Update: {
3263
3508
  actual_end_date?: string | null;
3264
3509
  client_company_id?: string | null;
3510
+ client_id?: string | null;
3265
3511
  contract_value?: number | null;
3266
3512
  created_at?: string;
3267
3513
  deal_id?: string | null;
@@ -3298,6 +3544,13 @@ type Database = {
3298
3544
  referencedRelation: "acq_companies";
3299
3545
  referencedColumns: ["id"];
3300
3546
  },
3547
+ {
3548
+ foreignKeyName: "prj_projects_client_id_fkey";
3549
+ columns: ["client_id"];
3550
+ isOneToOne: false;
3551
+ referencedRelation: "clients";
3552
+ referencedColumns: ["id"];
3553
+ },
3301
3554
  {
3302
3555
  foreignKeyName: "prj_projects_deal_id_fkey";
3303
3556
  columns: ["deal_id"];
@@ -3959,6 +4212,38 @@ type Database = {
3959
4212
  };
3960
4213
  };
3961
4214
 
4215
+ declare const RecordColumnConfigSchema: z.ZodObject<{
4216
+ key: z.ZodString;
4217
+ label: z.ZodString;
4218
+ path: z.ZodString;
4219
+ width: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
4220
+ renderType: z.ZodOptional<z.ZodEnum<{
4221
+ text: "text";
4222
+ badge: "badge";
4223
+ datetime: "datetime";
4224
+ count: "count";
4225
+ json: "json";
4226
+ }>>;
4227
+ badgeColor: z.ZodOptional<z.ZodString>;
4228
+ }, z.core.$strip>;
4229
+ declare const CredentialRequirementSchema: z.ZodObject<{
4230
+ key: z.ZodString;
4231
+ provider: z.ZodString;
4232
+ credentialType: z.ZodEnum<{
4233
+ "api-key": "api-key";
4234
+ "api-key-secret": "api-key-secret";
4235
+ oauth: "oauth";
4236
+ "webhook-secret": "webhook-secret";
4237
+ }>;
4238
+ label: z.ZodString;
4239
+ required: z.ZodBoolean;
4240
+ selectionMode: z.ZodOptional<z.ZodEnum<{
4241
+ single: "single";
4242
+ multiple: "multiple";
4243
+ }>>;
4244
+ inputPath: z.ZodString;
4245
+ verifyOnRun: z.ZodOptional<z.ZodBoolean>;
4246
+ }, z.core.$strip>;
3962
4247
  declare const ProspectingBuildTemplateStepSchema: z.ZodObject<{
3963
4248
  label: z.ZodString;
3964
4249
  description: z.ZodOptional<z.ZodString>;
@@ -3981,6 +4266,7 @@ declare const ProspectingBuildTemplateStepSchema: z.ZodObject<{
3981
4266
  "knowledge.reference": "knowledge.reference";
3982
4267
  "feature.dashboard": "feature.dashboard";
3983
4268
  "feature.calendar": "feature.calendar";
4269
+ "feature.business": "feature.business";
3984
4270
  "feature.sales": "feature.sales";
3985
4271
  "feature.crm": "feature.crm";
3986
4272
  "feature.finance": "feature.finance";
@@ -4040,11 +4326,65 @@ declare const ProspectingBuildTemplateStepSchema: z.ZodObject<{
4040
4326
  export: "export";
4041
4327
  }>>;
4042
4328
  stageKey: z.ZodString;
4329
+ recordEntity: z.ZodOptional<z.ZodEnum<{
4330
+ company: "company";
4331
+ contact: "contact";
4332
+ }>>;
4333
+ recordsStageKey: z.ZodOptional<z.ZodString>;
4334
+ recordSourceStageKey: z.ZodOptional<z.ZodString>;
4043
4335
  dependsOn: z.ZodOptional<z.ZodArray<z.ZodString>>;
4044
4336
  dependencyMode: z.ZodLiteral<"per-record-eligibility">;
4045
4337
  capabilityKey: z.ZodString;
4046
4338
  defaultBatchSize: z.ZodNumber;
4047
4339
  maxBatchSize: z.ZodNumber;
4340
+ recordColumns: z.ZodOptional<z.ZodObject<{
4341
+ company: z.ZodOptional<z.ZodArray<z.ZodObject<{
4342
+ key: z.ZodString;
4343
+ label: z.ZodString;
4344
+ path: z.ZodString;
4345
+ width: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
4346
+ renderType: z.ZodOptional<z.ZodEnum<{
4347
+ text: "text";
4348
+ badge: "badge";
4349
+ datetime: "datetime";
4350
+ count: "count";
4351
+ json: "json";
4352
+ }>>;
4353
+ badgeColor: z.ZodOptional<z.ZodString>;
4354
+ }, z.core.$strip>>>;
4355
+ contact: z.ZodOptional<z.ZodArray<z.ZodObject<{
4356
+ key: z.ZodString;
4357
+ label: z.ZodString;
4358
+ path: z.ZodString;
4359
+ width: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
4360
+ renderType: z.ZodOptional<z.ZodEnum<{
4361
+ text: "text";
4362
+ badge: "badge";
4363
+ datetime: "datetime";
4364
+ count: "count";
4365
+ json: "json";
4366
+ }>>;
4367
+ badgeColor: z.ZodOptional<z.ZodString>;
4368
+ }, z.core.$strip>>>;
4369
+ }, z.core.$strip>>;
4370
+ credentialRequirements: z.ZodOptional<z.ZodArray<z.ZodObject<{
4371
+ key: z.ZodString;
4372
+ provider: z.ZodString;
4373
+ credentialType: z.ZodEnum<{
4374
+ "api-key": "api-key";
4375
+ "api-key-secret": "api-key-secret";
4376
+ oauth: "oauth";
4377
+ "webhook-secret": "webhook-secret";
4378
+ }>;
4379
+ label: z.ZodString;
4380
+ required: z.ZodBoolean;
4381
+ selectionMode: z.ZodOptional<z.ZodEnum<{
4382
+ single: "single";
4383
+ multiple: "multiple";
4384
+ }>>;
4385
+ inputPath: z.ZodString;
4386
+ verifyOnRun: z.ZodOptional<z.ZodBoolean>;
4387
+ }, z.core.$strip>>>;
4048
4388
  }, z.core.$strip>;
4049
4389
  declare const ProspectingBuildTemplateSchema: z.ZodObject<{
4050
4390
  label: z.ZodString;
@@ -4068,6 +4408,7 @@ declare const ProspectingBuildTemplateSchema: z.ZodObject<{
4068
4408
  "knowledge.reference": "knowledge.reference";
4069
4409
  "feature.dashboard": "feature.dashboard";
4070
4410
  "feature.calendar": "feature.calendar";
4411
+ "feature.business": "feature.business";
4071
4412
  "feature.sales": "feature.sales";
4072
4413
  "feature.crm": "feature.crm";
4073
4414
  "feature.finance": "feature.finance";
@@ -4139,6 +4480,7 @@ declare const ProspectingBuildTemplateSchema: z.ZodObject<{
4139
4480
  "knowledge.reference": "knowledge.reference";
4140
4481
  "feature.dashboard": "feature.dashboard";
4141
4482
  "feature.calendar": "feature.calendar";
4483
+ "feature.business": "feature.business";
4142
4484
  "feature.sales": "feature.sales";
4143
4485
  "feature.crm": "feature.crm";
4144
4486
  "feature.finance": "feature.finance";
@@ -4198,14 +4540,70 @@ declare const ProspectingBuildTemplateSchema: z.ZodObject<{
4198
4540
  export: "export";
4199
4541
  }>>;
4200
4542
  stageKey: z.ZodString;
4543
+ recordEntity: z.ZodOptional<z.ZodEnum<{
4544
+ company: "company";
4545
+ contact: "contact";
4546
+ }>>;
4547
+ recordsStageKey: z.ZodOptional<z.ZodString>;
4548
+ recordSourceStageKey: z.ZodOptional<z.ZodString>;
4201
4549
  dependsOn: z.ZodOptional<z.ZodArray<z.ZodString>>;
4202
4550
  dependencyMode: z.ZodLiteral<"per-record-eligibility">;
4203
4551
  capabilityKey: z.ZodString;
4204
4552
  defaultBatchSize: z.ZodNumber;
4205
4553
  maxBatchSize: z.ZodNumber;
4554
+ recordColumns: z.ZodOptional<z.ZodObject<{
4555
+ company: z.ZodOptional<z.ZodArray<z.ZodObject<{
4556
+ key: z.ZodString;
4557
+ label: z.ZodString;
4558
+ path: z.ZodString;
4559
+ width: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
4560
+ renderType: z.ZodOptional<z.ZodEnum<{
4561
+ text: "text";
4562
+ badge: "badge";
4563
+ datetime: "datetime";
4564
+ count: "count";
4565
+ json: "json";
4566
+ }>>;
4567
+ badgeColor: z.ZodOptional<z.ZodString>;
4568
+ }, z.core.$strip>>>;
4569
+ contact: z.ZodOptional<z.ZodArray<z.ZodObject<{
4570
+ key: z.ZodString;
4571
+ label: z.ZodString;
4572
+ path: z.ZodString;
4573
+ width: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
4574
+ renderType: z.ZodOptional<z.ZodEnum<{
4575
+ text: "text";
4576
+ badge: "badge";
4577
+ datetime: "datetime";
4578
+ count: "count";
4579
+ json: "json";
4580
+ }>>;
4581
+ badgeColor: z.ZodOptional<z.ZodString>;
4582
+ }, z.core.$strip>>>;
4583
+ }, z.core.$strip>>;
4584
+ credentialRequirements: z.ZodOptional<z.ZodArray<z.ZodObject<{
4585
+ key: z.ZodString;
4586
+ provider: z.ZodString;
4587
+ credentialType: z.ZodEnum<{
4588
+ "api-key": "api-key";
4589
+ "api-key-secret": "api-key-secret";
4590
+ oauth: "oauth";
4591
+ "webhook-secret": "webhook-secret";
4592
+ }>;
4593
+ label: z.ZodString;
4594
+ required: z.ZodBoolean;
4595
+ selectionMode: z.ZodOptional<z.ZodEnum<{
4596
+ single: "single";
4597
+ multiple: "multiple";
4598
+ }>>;
4599
+ inputPath: z.ZodString;
4600
+ verifyOnRun: z.ZodOptional<z.ZodBoolean>;
4601
+ }, z.core.$strip>>>;
4206
4602
  }, z.core.$strip>>;
4207
4603
  }, z.core.$strip>;
4208
4604
  type ListBuilderStep = z.infer<typeof ProspectingBuildTemplateStepSchema>;
4605
+ type RecordColumnConfig = z.infer<typeof RecordColumnConfigSchema>;
4606
+ type CredentialRequirement = z.infer<typeof CredentialRequirementSchema>;
4209
4607
 
4210
4608
  /** One entry in the lead-gen stage catalog. */
4211
4609
  interface LeadGenStageCatalogEntry {
@@ -4219,6 +4617,15 @@ interface LeadGenStageCatalogEntry {
4219
4617
  order: number;
4220
4618
  /** Which entity's processing_state jsonb carries this stage status. */
4221
4619
  entity: 'company' | 'contact';
4620
+ /** Additional entities allowed to write/read this processing_state key. */
4621
+ additionalEntities?: Array<'company' | 'contact'>;
4622
+ /**
4623
+ * Optional read-side override for Records views when a company-scoped step
4624
+ * produces records on a different entity.
4625
+ */
4626
+ recordEntity?: 'company' | 'contact';
4627
+ /** Stage key to read from recordEntity.processing_state for Records views. */
4628
+ recordStageKey?: string;
4222
4629
  }
4223
4630
  /**
4224
4631
  * Canonical lead-gen processing stage catalog.
@@ -4235,6 +4642,15 @@ declare const ProcessingStageStatusSchema: z.ZodEnum<{
4235
4642
  skipped: "skipped";
4236
4643
  }>;
4237
4644
  declare const DealSchemas: {
4645
+ CrmStageKey: z.ZodEnum<{
4646
+ [x: string]: string;
4647
+ }>;
4648
+ CrmStateKey: z.ZodEnum<{
4649
+ [x: string]: string;
4650
+ }>;
4651
+ DealStage: z.ZodEnum<{
4652
+ [x: string]: string;
4653
+ }>;
4238
4654
  DealIdParams: z.ZodObject<{
4239
4655
  dealId: z.ZodString;
4240
4656
  }, z.core.$strip>;
@@ -4244,13 +4660,11 @@ declare const DealSchemas: {
4244
4660
  }, z.core.$strip>;
4245
4661
  ListDealsQuery: z.ZodObject<{
4246
4662
  stage: z.ZodOptional<z.ZodEnum<{
4247
- nurturing: "nurturing";
4248
- closed_won: "closed_won";
4249
- closed_lost: "closed_lost";
4250
- interested: "interested";
4251
- proposal: "proposal";
4252
- closing: "closing";
4663
+ [x: string]: string;
4253
4664
  }>>;
4665
+ list: z.ZodOptional<z.ZodString>;
4666
+ batch: z.ZodOptional<z.ZodString>;
4667
+ staleSince: z.ZodOptional<z.ZodString>;
4254
4668
  search: z.ZodOptional<z.ZodString>;
4255
4669
  limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
4256
4670
  offset: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
@@ -4275,8 +4689,8 @@ declare const DealSchemas: {
4275
4689
  title: z.ZodString;
4276
4690
  description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4277
4691
  kind: z.ZodOptional<z.ZodEnum<{
4278
- other: "other";
4279
4692
  email: "email";
4693
+ other: "other";
4280
4694
  call: "call";
4281
4695
  meeting: "meeting";
4282
4696
  }>>;
@@ -4284,14 +4698,20 @@ declare const DealSchemas: {
4284
4698
  assigneeUserId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4285
4699
  }, z.core.$strict>;
4286
4700
  TransitionItemRequest: z.ZodObject<{
4287
- pipelineKey: z.ZodString;
4288
- stageKey: z.ZodString;
4289
- stateKey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4701
+ pipelineKey: z.ZodLiteral<string>;
4702
+ stageKey: z.ZodEnum<{
4703
+ [x: string]: string;
4704
+ }>;
4705
+ stateKey: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
4706
+ [x: string]: string;
4707
+ }>>>;
4290
4708
  reason: z.ZodOptional<z.ZodString>;
4291
4709
  expectedUpdatedAt: z.ZodOptional<z.ZodString>;
4292
4710
  }, z.core.$strict>;
4293
4711
  TransitionDealStateRequest: z.ZodObject<{
4294
- stateKey: z.ZodString;
4712
+ stateKey: z.ZodEnum<{
4713
+ [x: string]: string;
4714
+ }>;
4295
4715
  reason: z.ZodOptional<z.ZodString>;
4296
4716
  expectedUpdatedAt: z.ZodOptional<z.ZodString>;
4297
4717
  }, z.core.$strict>;
@@ -4321,6 +4741,7 @@ declare const DealSchemas: {
4321
4741
  data: z.ZodArray<z.ZodObject<{
4322
4742
  id: z.ZodString;
4323
4743
  organization_id: z.ZodString;
4744
+ client_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4324
4745
  contact_id: z.ZodNullable<z.ZodString>;
4325
4746
  contact_email: z.ZodString;
4326
4747
  pipeline_key: z.ZodString;
@@ -4440,9 +4861,46 @@ declare const DealSchemas: {
4440
4861
  body: z.ZodString;
4441
4862
  sentAt: z.ZodNullable<z.ZodString>;
4442
4863
  }, z.core.$strip>;
4864
+ DealLineageListRef: z.ZodObject<{
4865
+ id: z.ZodString;
4866
+ name: z.ZodString;
4867
+ status: z.ZodString;
4868
+ }, z.core.$strip>;
4869
+ DealLineageProjectRef: z.ZodObject<{
4870
+ id: z.ZodString;
4871
+ name: z.ZodString;
4872
+ kind: z.ZodString;
4873
+ status: z.ZodString;
4874
+ updatedAt: z.ZodString;
4875
+ }, z.core.$strip>;
4876
+ DealLineageClientRef: z.ZodObject<{
4877
+ id: z.ZodString;
4878
+ name: z.ZodString;
4879
+ status: z.ZodString;
4880
+ }, z.core.$strip>;
4881
+ DealLineage: z.ZodObject<{
4882
+ list: z.ZodNullable<z.ZodObject<{
4883
+ id: z.ZodString;
4884
+ name: z.ZodString;
4885
+ status: z.ZodString;
4886
+ }, z.core.$strip>>;
4887
+ projects: z.ZodArray<z.ZodObject<{
4888
+ id: z.ZodString;
4889
+ name: z.ZodString;
4890
+ kind: z.ZodString;
4891
+ status: z.ZodString;
4892
+ updatedAt: z.ZodString;
4893
+ }, z.core.$strip>>;
4894
+ client: z.ZodNullable<z.ZodObject<{
4895
+ id: z.ZodString;
4896
+ name: z.ZodString;
4897
+ status: z.ZodString;
4898
+ }, z.core.$strip>>;
4899
+ }, z.core.$strip>;
4443
4900
  DealDetailResponse: z.ZodObject<{
4444
4901
  id: z.ZodString;
4445
4902
  organization_id: z.ZodString;
4903
+ client_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4446
4904
  contact_id: z.ZodNullable<z.ZodString>;
4447
4905
  contact_email: z.ZodString;
4448
4906
  pipeline_key: z.ZodString;
@@ -4527,6 +4985,25 @@ declare const DealSchemas: {
4527
4985
  sentAt: z.ZodNullable<z.ZodString>;
4528
4986
  }, z.core.$strip>>;
4529
4987
  }, z.core.$strip>;
4988
+ lineage: z.ZodOptional<z.ZodObject<{
4989
+ list: z.ZodNullable<z.ZodObject<{
4990
+ id: z.ZodString;
4991
+ name: z.ZodString;
4992
+ status: z.ZodString;
4993
+ }, z.core.$strip>>;
4994
+ projects: z.ZodArray<z.ZodObject<{
4995
+ id: z.ZodString;
4996
+ name: z.ZodString;
4997
+ kind: z.ZodString;
4998
+ status: z.ZodString;
4999
+ updatedAt: z.ZodString;
5000
+ }, z.core.$strip>>;
5001
+ client: z.ZodNullable<z.ZodObject<{
5002
+ id: z.ZodString;
5003
+ name: z.ZodString;
5004
+ status: z.ZodString;
5005
+ }, z.core.$strip>>;
5006
+ }, z.core.$strip>>;
4530
5007
  }, z.core.$strip>;
4531
5008
  DealNoteResponse: z.ZodObject<{
4532
5009
  id: z.ZodString;
@@ -4553,8 +5030,8 @@ declare const DealSchemas: {
4553
5030
  title: z.ZodString;
4554
5031
  description: z.ZodNullable<z.ZodString>;
4555
5032
  kind: z.ZodEnum<{
4556
- other: "other";
4557
5033
  email: "email";
5034
+ other: "other";
4558
5035
  call: "call";
4559
5036
  meeting: "meeting";
4560
5037
  }>;
@@ -4573,8 +5050,8 @@ declare const DealSchemas: {
4573
5050
  title: z.ZodString;
4574
5051
  description: z.ZodNullable<z.ZodString>;
4575
5052
  kind: z.ZodEnum<{
4576
- other: "other";
4577
5053
  email: "email";
5054
+ other: "other";
4578
5055
  call: "call";
4579
5056
  meeting: "meeting";
4580
5057
  }>;
@@ -4612,11 +5089,65 @@ declare const BuildPlanSnapshotStepSchema: z.ZodObject<{
4612
5089
  export: "export";
4613
5090
  }>>;
4614
5091
  stageKey: z.ZodString;
5092
+ recordEntity: z.ZodOptional<z.ZodEnum<{
5093
+ company: "company";
5094
+ contact: "contact";
5095
+ }>>;
5096
+ recordsStageKey: z.ZodOptional<z.ZodString>;
5097
+ recordSourceStageKey: z.ZodOptional<z.ZodString>;
4615
5098
  dependsOn: z.ZodOptional<z.ZodArray<z.ZodString>>;
4616
5099
  dependencyMode: z.ZodLiteral<"per-record-eligibility">;
4617
5100
  capabilityKey: z.ZodString;
4618
5101
  defaultBatchSize: z.ZodNumber;
4619
5102
  maxBatchSize: z.ZodNumber;
5103
+ recordColumns: z.ZodOptional<z.ZodObject<{
5104
+ company: z.ZodOptional<z.ZodArray<z.ZodObject<{
5105
+ key: z.ZodString;
5106
+ label: z.ZodString;
5107
+ path: z.ZodString;
5108
+ width: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
5109
+ renderType: z.ZodOptional<z.ZodEnum<{
5110
+ text: "text";
5111
+ badge: "badge";
5112
+ datetime: "datetime";
5113
+ count: "count";
5114
+ json: "json";
5115
+ }>>;
5116
+ badgeColor: z.ZodOptional<z.ZodString>;
5117
+ }, z.core.$strip>>>;
5118
+ contact: z.ZodOptional<z.ZodArray<z.ZodObject<{
5119
+ key: z.ZodString;
5120
+ label: z.ZodString;
5121
+ path: z.ZodString;
5122
+ width: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
5123
+ renderType: z.ZodOptional<z.ZodEnum<{
5124
+ text: "text";
5125
+ badge: "badge";
5126
+ datetime: "datetime";
5127
+ count: "count";
5128
+ json: "json";
5129
+ }>>;
5130
+ badgeColor: z.ZodOptional<z.ZodString>;
5131
+ }, z.core.$strip>>>;
5132
+ }, z.core.$strip>>;
5133
+ credentialRequirements: z.ZodOptional<z.ZodArray<z.ZodObject<{
5134
+ key: z.ZodString;
5135
+ provider: z.ZodString;
5136
+ credentialType: z.ZodEnum<{
5137
+ "api-key": "api-key";
5138
+ "api-key-secret": "api-key-secret";
5139
+ oauth: "oauth";
5140
+ "webhook-secret": "webhook-secret";
5141
+ }>;
5142
+ label: z.ZodString;
5143
+ required: z.ZodBoolean;
5144
+ selectionMode: z.ZodOptional<z.ZodEnum<{
5145
+ single: "single";
5146
+ multiple: "multiple";
5147
+ }>>;
5148
+ inputPath: z.ZodString;
5149
+ verifyOnRun: z.ZodOptional<z.ZodBoolean>;
5150
+ }, z.core.$strip>>>;
4620
5151
  }, z.core.$strip>;
4621
5152
  type PipelineStage = z.infer<typeof PipelineStageSchema>;
4622
5153
  type ProcessingStageStatus = z.infer<typeof ProcessingStageStatusSchema>;
@@ -4736,11 +5267,16 @@ interface BuildPlanSnapshotStep {
4736
5267
  primaryEntity: BuildPlanSnapshotPrimaryEntity;
4737
5268
  outputs: BuildPlanSnapshotOutput[];
4738
5269
  stageKey: string;
5270
+ recordEntity?: BuildPlanSnapshotPrimaryEntity;
5271
+ recordsStageKey?: string;
5272
+ recordSourceStageKey?: string;
4739
5273
  dependsOn?: string[];
4740
5274
  dependencyMode: BuildPlanSnapshotDependencyMode;
4741
5275
  capabilityKey: string;
4742
5276
  defaultBatchSize: number;
4743
5277
  maxBatchSize: number;
5278
+ recordColumns?: Partial<Record<BuildPlanSnapshotPrimaryEntity, RecordColumnConfig[]>>;
5279
+ credentialRequirements?: CredentialRequirement[];
4744
5280
  }
4745
5281
  interface BuildPlanSnapshot {
4746
5282
  templateId: string;
@@ -5462,6 +5998,22 @@ interface ProjectDetail extends ProjectRow {
5462
5998
  name: string;
5463
5999
  domain: string | null;
5464
6000
  } | null;
6001
+ deal: ProjectSourceDealRef | null;
6002
+ client: ProjectClientRef | null;
6003
+ }
6004
+ interface ProjectSourceDealRef {
6005
+ id: string;
6006
+ clientId?: string | null;
6007
+ contactEmail: string;
6008
+ stageKey: string | null;
6009
+ stateKey: string | null;
6010
+ sourceListId: string | null;
6011
+ updatedAt: string;
6012
+ }
6013
+ interface ProjectClientRef {
6014
+ id: string;
6015
+ name: string;
6016
+ status: string;
5465
6017
  }
5466
6018
 
5467
6019
  declare const ActivityEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
@@ -7258,6 +7810,7 @@ declare const ProjectSchemas: {
7258
7810
  }>>;
7259
7811
  description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7260
7812
  deal_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7813
+ client_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7261
7814
  client_company_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7262
7815
  start_date: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7263
7816
  target_end_date: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -7282,6 +7835,7 @@ declare const ProjectSchemas: {
7282
7835
  }>>;
7283
7836
  description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7284
7837
  deal_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7838
+ client_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7285
7839
  client_company_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7286
7840
  start_date: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7287
7841
  target_end_date: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -7305,10 +7859,25 @@ declare const ProjectSchemas: {
7305
7859
  completed: "completed";
7306
7860
  }>>;
7307
7861
  search: z.ZodOptional<z.ZodString>;
7862
+ client_id: z.ZodOptional<z.ZodString>;
7308
7863
  }, z.core.$strict>;
7309
7864
  ProjectIdParams: z.ZodObject<{
7310
7865
  id: z.ZodString;
7311
7866
  }, z.core.$strip>;
7867
+ ProjectSourceDealRef: z.ZodObject<{
7868
+ id: z.ZodString;
7869
+ clientId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7870
+ contactEmail: z.ZodString;
7871
+ stageKey: z.ZodNullable<z.ZodString>;
7872
+ stateKey: z.ZodNullable<z.ZodString>;
7873
+ sourceListId: z.ZodNullable<z.ZodString>;
7874
+ updatedAt: z.ZodString;
7875
+ }, z.core.$strip>;
7876
+ ProjectClientRef: z.ZodObject<{
7877
+ id: z.ZodString;
7878
+ name: z.ZodString;
7879
+ status: z.ZodString;
7880
+ }, z.core.$strip>;
7312
7881
  CreateMilestoneRequest: z.ZodObject<{
7313
7882
  name: z.ZodString;
7314
7883
  status: z.ZodOptional<z.ZodEnum<{
@@ -8780,6 +9349,48 @@ type ToolingErrorType = 'service_unavailable' | 'permission_denied' | 'platform_
8780
9349
  */
8781
9350
  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';
8782
9351
 
9352
+ declare const SystemEntrySchema: z.ZodObject<{
9353
+ id: z.ZodString;
9354
+ title: z.ZodString;
9355
+ description: z.ZodString;
9356
+ kind: z.ZodEnum<{
9357
+ platform: "platform";
9358
+ product: "product";
9359
+ operational: "operational";
9360
+ diagnostic: "diagnostic";
9361
+ }>;
9362
+ responsibleRoleId: z.ZodOptional<z.ZodString>;
9363
+ governedByKnowledge: z.ZodDefault<z.ZodArray<z.ZodString>>;
9364
+ drivesGoals: z.ZodDefault<z.ZodArray<z.ZodString>>;
9365
+ status: z.ZodEnum<{
9366
+ active: "active";
9367
+ deprecated: "deprecated";
9368
+ archived: "archived";
9369
+ }>;
9370
+ }, z.core.$strip>;
9371
+ declare const SystemsDomainSchema: z.ZodObject<{
9372
+ systems: z.ZodDefault<z.ZodArray<z.ZodObject<{
9373
+ id: z.ZodString;
9374
+ title: z.ZodString;
9375
+ description: z.ZodString;
9376
+ kind: z.ZodEnum<{
9377
+ platform: "platform";
9378
+ product: "product";
9379
+ operational: "operational";
9380
+ diagnostic: "diagnostic";
9381
+ }>;
9382
+ responsibleRoleId: z.ZodOptional<z.ZodString>;
9383
+ governedByKnowledge: z.ZodDefault<z.ZodArray<z.ZodString>>;
9384
+ drivesGoals: z.ZodDefault<z.ZodArray<z.ZodString>>;
9385
+ status: z.ZodEnum<{
9386
+ active: "active";
9387
+ deprecated: "deprecated";
9388
+ archived: "archived";
9389
+ }>;
9390
+ }, z.core.$strip>>>;
9391
+ }, z.core.$strip>;
9392
+ type SystemEntry = z.infer<typeof SystemEntrySchema>;
9393
+
8783
9394
  /**
8784
9395
  * Resource Registry type definitions
8785
9396
  */
@@ -8793,6 +9404,7 @@ type ResourceStatus$1 = 'dev' | 'prod';
8793
9404
  * Used as the discriminator field in ResourceDefinition
8794
9405
  */
8795
9406
  type ResourceType = 'agent' | 'workflow' | 'trigger' | 'integration' | 'external' | 'human';
9407
+ type ResourceSystemSummary = Pick<SystemEntry, 'id' | 'title' | 'description' | 'kind' | 'status'>;
8796
9408
  /**
8797
9409
  * Base interface for ALL platform resources
8798
9410
  * Shared by both executable (agents, workflows) and non-executable (triggers, integrations, etc.) resources
@@ -8818,6 +9430,12 @@ interface ResourceDefinition {
8818
9430
  sessionCapable?: boolean;
8819
9431
  /** Whether the resource is local (monorepo) or remote (externally deployed) */
8820
9432
  origin?: 'local' | 'remote';
9433
+ /** OM System membership, when backed by a Resource descriptor */
9434
+ systemId?: string;
9435
+ /** Display metadata for the owning OM System */
9436
+ system?: ResourceSystemSummary;
9437
+ /** Governance lifecycle status from the OM Resource descriptor */
9438
+ governanceStatus?: ResourceGovernanceStatus;
8821
9439
  /** Whether this resource is archived and should be excluded from registration and deployment */
8822
9440
  archived?: boolean;
8823
9441
  }
@@ -8934,6 +9552,10 @@ interface TriggerDefinition extends ResourceDefinition {
8934
9552
  interface IntegrationDefinition extends ResourceDefinition {
8935
9553
  /** Resource type discriminator (narrowed from base union) */
8936
9554
  type: 'integration';
9555
+ /** OM descriptor that owns canonical identity and governance metadata. */
9556
+ resource?: Extract<ResourceEntry, {
9557
+ kind: 'integration';
9558
+ }>;
8937
9559
  /** Integration provider type */
8938
9560
  provider: IntegrationType;
8939
9561
  /** References credentials table (e.g., 'shopify-prod', 'zendesk-api') */
@@ -9146,6 +9768,9 @@ interface CommandViewData {
9146
9768
  edges: CommandViewEdge[];
9147
9769
  }
9148
9770
 
9771
+ type OrganizationModelSystems = z.infer<typeof SystemsDomainSchema>;
9772
+ type OrganizationModelResources = z.infer<typeof ResourcesDomainSchema>;
9773
+
9149
9774
  declare const LinkSchema: z.ZodObject<{
9150
9775
  nodeId: z.ZodString;
9151
9776
  kind: z.ZodEnum<{
@@ -9161,8 +9786,8 @@ declare const LinkSchema: z.ZodObject<{
9161
9786
  type Link = z.infer<typeof LinkSchema>;
9162
9787
 
9163
9788
  declare const ResourceCategorySchema: z.ZodEnum<{
9164
- production: "production";
9165
9789
  diagnostic: "diagnostic";
9790
+ production: "production";
9166
9791
  internal: "internal";
9167
9792
  testing: "testing";
9168
9793
  }>;
@@ -9222,6 +9847,11 @@ interface SystemConfig {
9222
9847
  interface DeploymentSpec {
9223
9848
  /** Deployment version (semver) */
9224
9849
  version: string;
9850
+ /** Optional Organization Model governance catalog used for OM-code validation */
9851
+ organizationModel?: {
9852
+ systems?: OrganizationModelSystems;
9853
+ resources?: OrganizationModelResources;
9854
+ };
9225
9855
  /** Workflow definitions */
9226
9856
  workflows?: WorkflowDefinition[];
9227
9857
  /** Agent definitions */
@@ -9529,6 +10159,39 @@ declare class RegistryValidationError extends Error {
9529
10159
  readonly field: string | null;
9530
10160
  constructor(orgName: string, resourceId: string | null, field: string | null, message: string);
9531
10161
  }
10162
+ type ResourceValidatorMode = 'strict' | 'warn-only';
10163
+ type ResourceGovernanceValidationIssueType = 'missing-code-resource' | 'missing-om-resource' | 'type-mismatch' | 'system-mismatch' | 'missing-om-system' | 'raw-resource-id';
10164
+ interface ResourceGovernanceModel {
10165
+ systems?: {
10166
+ systems: SystemEntry[];
10167
+ };
10168
+ resources?: {
10169
+ entries: ResourceEntry[];
10170
+ };
10171
+ }
10172
+ interface ResourceGovernanceValidationIssue {
10173
+ type: ResourceGovernanceValidationIssueType;
10174
+ orgName: string;
10175
+ resourceId: string;
10176
+ message: string;
10177
+ }
10178
+ interface ResourceGovernanceValidationResult {
10179
+ valid: boolean;
10180
+ mode: ResourceValidatorMode;
10181
+ issues: ResourceGovernanceValidationIssue[];
10182
+ }
10183
+ interface ResourceGovernanceValidationOptions {
10184
+ mode?: ResourceValidatorMode;
10185
+ onWarning?: (issue: ResourceGovernanceValidationIssue) => void;
10186
+ }
10187
+ /**
10188
+ * Validates runtime resource definitions against OM Resources and Systems.
10189
+ *
10190
+ * This is the shared core entry point for SDK, CI, deploy, and ResourceRegistry.
10191
+ * Default mode is strict. ELEVASIS_RESOURCE_VALIDATOR=warn-only remains a
10192
+ * permanent emergency escape hatch unless an explicit mode is passed.
10193
+ */
10194
+ declare function validateResourceGovernance(orgName: string, deployment: DeploymentSpec, organizationModel?: ResourceGovernanceModel | undefined, options?: ResourceGovernanceValidationOptions): ResourceGovernanceValidationResult;
9532
10195
 
9533
10196
  /**
9534
10197
  * LLM Platform Tool Adapter
@@ -9594,6 +10257,152 @@ declare class ToolingError extends ExecutionError {
9594
10257
  constructor(errorType: string, message: string, details?: unknown);
9595
10258
  }
9596
10259
 
10260
+ // ============================================================================
10261
+ // Lead-Gen Stateful Pipeline Definitions (Decision N8, Wave 4)
10262
+ //
10263
+ // Defines the (pipeline_key, stage_key, state_key) vocabulary for the three
10264
+ // entities that carry the Stateful trait via Track B:
10265
+ // - acq_lists (pipeline_key='lead-gen', stage_key='lifecycle')
10266
+ // - acq_list_members (pipeline_key='lead-gen', stages: outreach / prospecting / qualification)
10267
+ // - acq_list_companies (pipeline_key='lead-gen', stages: outreach / prospecting / qualification)
10268
+ //
10269
+ // DB columns (pipeline_key, stage_key, state_key) remain free-form text with no
10270
+ // CHECK constraint — new states can be introduced without a migration (Decision N8).
10271
+ // These definitions are the org-specific source of truth consumed by UI and tooling.
10272
+ //
10273
+ // State vocabularies sourced from the post-restructure sales tree (W3 canonical):
10274
+ // outreach/:
10275
+ // - personalized (instantly-personalization.ts → contacts)
10276
+ // - uploaded (instantly-upload.ts → contacts)
10277
+ // - interested (instantly-reply-handler.ts → contacts, initial reply transition)
10278
+ // prospecting/:
10279
+ // - populated (apify-acquire.ts, apify-scrape.ts → companies)
10280
+ // - crawled (apify-website-crawl.ts → companies)
10281
+ // - extracted (website-extract.ts → companies)
10282
+ // - discovered (email-discovery.ts, anymailfinder-enrich.ts → contacts)
10283
+ // - verified (email-verification.ts → contacts)
10284
+ // qualification/:
10285
+ // - qualified (company-qualification.ts → companies)
10286
+ //
10287
+ // The 'pending' state is the W2 backfill default (coalesce(stage, 'pending')).
10288
+ // It is valid in any stage and represents "not yet processed by a workflow step".
10289
+ // ============================================================================
10290
+
10291
+ /** One state within a stage — minimal shape: key + display label. */
10292
+ interface StatefulStateDefinition {
10293
+ /** Matches state_key values written by workflow steps. */
10294
+ stateKey: string
10295
+ label: string
10296
+ }
10297
+
10298
+ /** One stage within a pipeline — has a stage_key and an ordered list of valid states. */
10299
+ interface StatefulStageDefinition {
10300
+ /** Matches stage_key values written by workflow steps. */
10301
+ stageKey: string
10302
+ label: string
10303
+ /** UI color token. Consumers may map this to their design system. */
10304
+ color?: string
10305
+ states: StatefulStateDefinition[]
10306
+ }
10307
+
10308
+ /**
10309
+ * Pipeline definition for a single entity participating in the Stateful trait.
10310
+ * Parallel to acq_deals' pipeline_key concept but structured for lead-gen entities.
10311
+ */
10312
+ interface StatefulPipelineDefinition {
10313
+ /** Matches pipeline_key values in the database (e.g. 'lead-gen'). */
10314
+ pipelineKey: string
10315
+ label: string
10316
+ /** Entity this pipeline applies to (e.g. 'acq.list', 'acq.list-member', 'acq.list-company'). */
10317
+ entityKey: string
10318
+ stages: StatefulStageDefinition[]
10319
+ }
10320
+
10321
+ // ============================================================================
10322
+ // CRM Stateful Pipeline Definition
10323
+ //
10324
+ // Defines the (pipeline_key, stage_key, state_key) vocabulary for crm.deal
10325
+ // entities. Stage keys match DEFAULT_ORGANIZATION_MODEL_SALES.pipelines[0].stages.
10326
+ //
10327
+ // State vocabularies sourced from the CRM action/handler tree:
10328
+ // interested/:
10329
+ // - discovery_replied (instantly-reply-handler.ts → first/subsequent reply)
10330
+ // - discovery_link_sent (crm-send-booking-link.ts, crm-rebook.ts → booking link sent)
10331
+ // - discovery_nudging (crm-send-nudge.ts → nudge sent after link)
10332
+ // - discovery_booking_cancelled (booking-revert.ts → Cal cancellation webhook)
10333
+ // - reply_sent (crm-send-reply.ts → operator reply sent)
10334
+ // - followup_1_sent (crm-reply-followup.ts day=3)
10335
+ // - followup_2_sent (crm-reply-followup.ts day=5)
10336
+ // - followup_3_sent (crm-reply-followup.ts day=7)
10337
+ // proposal, closing, closed_won, closed_lost, nurturing: no observed sub-states
10338
+ // ============================================================================
10339
+
10340
+ declare const CRM_DISCOVERY_REPLIED_STATE: StatefulStateDefinition = {
10341
+ stateKey: 'discovery_replied',
10342
+ label: 'Discovery Replied'
10343
+ }
10344
+ declare const CRM_DISCOVERY_LINK_SENT_STATE: StatefulStateDefinition = {
10345
+ stateKey: 'discovery_link_sent',
10346
+ label: 'Discovery Link Sent'
10347
+ }
10348
+ declare const CRM_DISCOVERY_NUDGING_STATE: StatefulStateDefinition = {
10349
+ stateKey: 'discovery_nudging',
10350
+ label: 'Discovery Nudging'
10351
+ }
10352
+ declare const CRM_DISCOVERY_BOOKING_CANCELLED_STATE: StatefulStateDefinition = {
10353
+ stateKey: 'discovery_booking_cancelled',
10354
+ label: 'Discovery Booking Cancelled'
10355
+ }
10356
+ declare const CRM_REPLY_SENT_STATE: StatefulStateDefinition = {
10357
+ stateKey: 'reply_sent',
10358
+ label: 'Reply Sent'
10359
+ }
10360
+ declare const CRM_FOLLOWUP_1_SENT_STATE: StatefulStateDefinition = {
10361
+ stateKey: 'followup_1_sent',
10362
+ label: 'Follow-up 1 Sent'
10363
+ }
10364
+ declare const CRM_FOLLOWUP_2_SENT_STATE: StatefulStateDefinition = {
10365
+ stateKey: 'followup_2_sent',
10366
+ label: 'Follow-up 2 Sent'
10367
+ }
10368
+ declare const CRM_FOLLOWUP_3_SENT_STATE: StatefulStateDefinition = {
10369
+ stateKey: 'followup_3_sent',
10370
+ label: 'Follow-up 3 Sent'
10371
+ }
10372
+
10373
+ declare const CRM_PIPELINE_DEFINITION: StatefulPipelineDefinition = {
10374
+ pipelineKey: 'crm',
10375
+ label: 'CRM',
10376
+ entityKey: 'crm.deal',
10377
+ stages: [
10378
+ {
10379
+ stageKey: 'interested',
10380
+ label: 'Interested',
10381
+ color: 'blue',
10382
+ states: [
10383
+ CRM_DISCOVERY_REPLIED_STATE,
10384
+ CRM_DISCOVERY_LINK_SENT_STATE,
10385
+ CRM_DISCOVERY_NUDGING_STATE,
10386
+ CRM_DISCOVERY_BOOKING_CANCELLED_STATE,
10387
+ CRM_REPLY_SENT_STATE,
10388
+ CRM_FOLLOWUP_1_SENT_STATE,
10389
+ CRM_FOLLOWUP_2_SENT_STATE,
10390
+ CRM_FOLLOWUP_3_SENT_STATE
10391
+ ]
10392
+ },
10393
+ { stageKey: 'proposal', label: 'Proposal', color: 'yellow', states: [] },
10394
+ { stageKey: 'closing', label: 'Closing', color: 'orange', states: [] },
10395
+ { stageKey: 'closed_won', label: 'Closed Won', color: 'green', states: [] },
10396
+ { stageKey: 'closed_lost', label: 'Closed Lost', color: 'red', states: [] },
10397
+ { stageKey: 'nurturing', label: 'Nurturing', color: 'grape', states: [] }
10398
+ ]
10399
+ }
10400
+
10401
+ declare const CrmStageKeySchema = z.enum(crmStageKeys)
10402
+ declare const CrmStateKeySchema = z.enum(crmStateKeys)
10403
+ type CrmStageKey = z.infer<typeof CrmStageKeySchema>
10404
+ type CrmStateKey = z.infer<typeof CrmStateKeySchema>
10405
+
9597
10406
  /**
9598
10407
  * @elevasis/sdk - Types and utilities for building Elevasis organization resources
9599
10408
  *
@@ -9606,5 +10415,5 @@ declare const ListBuilderStageKeySchema: z.ZodEnum<{
9606
10415
  }>;
9607
10416
  type ListBuilderStageKey = z.infer<typeof ListBuilderStageKeySchema>;
9608
10417
 
9609
- export { ActivityEventSchema, BuildPlanSnapshotStepSchema, ProspectingBuildTemplateSchema as BuildTemplateSchema, DEFAULT_CRM_ACTIONS, EmailSchema, ExecutionError, LEAD_GEN_STAGE_CATALOG, ListBuilderStageKeySchema, ProcessingStageStatusSchema, RegistryValidationError, ResourceRegistry, StepType, ToolingError, deriveActions };
9610
- 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, 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, 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 };
10418
+ 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, deriveActions, validateResourceGovernance };
10419
+ 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, 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 };