@elevasis/sdk 1.17.0 → 1.18.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.
- package/dist/cli.cjs +382 -175
- package/dist/index.d.ts +390 -73
- package/dist/index.js +1087 -62
- package/dist/node/index.d.ts +3 -0
- package/dist/node/index.js +34 -1
- package/dist/test-utils/index.d.ts +108 -71
- package/dist/test-utils/index.js +1872 -667
- package/dist/types/worker/index.d.ts +3 -2
- package/dist/worker/index.js +1373 -2
- package/package.json +2 -2
- package/reference/claude-config/rules/package-taxonomy.md +33 -0
- package/reference/claude-config/rules/vibe.md +23 -0
- package/reference/claude-config/skills/knowledge/SKILL.md +37 -5
- package/reference/claude-config/skills/project/SKILL.md +21 -0
- package/reference/claude-config/skills/tutorial/SKILL.md +13 -3
- package/reference/claude-config/sync-notes/2026-05-05-list-builder.md +42 -0
- package/reference/claude-config/sync-notes/2026-05-06-sdk-changes-release-train.md +37 -0
- package/reference/scaffold/reference/contracts.md +78 -65
- package/reference/scaffold/reference/feature-registry.md +1 -1
- package/reference/spine/spine-primer.md +99 -0
package/dist/index.d.ts
CHANGED
|
@@ -1131,7 +1131,7 @@ type Database = {
|
|
|
1131
1131
|
name: string;
|
|
1132
1132
|
num_employees: number | null;
|
|
1133
1133
|
organization_id: string;
|
|
1134
|
-
|
|
1134
|
+
processing_state: Json;
|
|
1135
1135
|
qualification_rubric_key: string | null;
|
|
1136
1136
|
qualification_score: number | null;
|
|
1137
1137
|
qualification_signals: Json | null;
|
|
@@ -1157,7 +1157,7 @@ type Database = {
|
|
|
1157
1157
|
name: string;
|
|
1158
1158
|
num_employees?: number | null;
|
|
1159
1159
|
organization_id: string;
|
|
1160
|
-
|
|
1160
|
+
processing_state?: Json;
|
|
1161
1161
|
qualification_rubric_key?: string | null;
|
|
1162
1162
|
qualification_score?: number | null;
|
|
1163
1163
|
qualification_signals?: Json | null;
|
|
@@ -1183,7 +1183,7 @@ type Database = {
|
|
|
1183
1183
|
name?: string;
|
|
1184
1184
|
num_employees?: number | null;
|
|
1185
1185
|
organization_id?: string;
|
|
1186
|
-
|
|
1186
|
+
processing_state?: Json;
|
|
1187
1187
|
qualification_rubric_key?: string | null;
|
|
1188
1188
|
qualification_score?: number | null;
|
|
1189
1189
|
qualification_signals?: Json | null;
|
|
@@ -1222,7 +1222,7 @@ type Database = {
|
|
|
1222
1222
|
nurture: boolean;
|
|
1223
1223
|
opening_line: string | null;
|
|
1224
1224
|
organization_id: string;
|
|
1225
|
-
|
|
1225
|
+
processing_state: Json;
|
|
1226
1226
|
qualification_rubric_key: string | null;
|
|
1227
1227
|
qualification_score: number | null;
|
|
1228
1228
|
qualification_signals: Json | null;
|
|
@@ -1250,7 +1250,7 @@ type Database = {
|
|
|
1250
1250
|
nurture?: boolean;
|
|
1251
1251
|
opening_line?: string | null;
|
|
1252
1252
|
organization_id: string;
|
|
1253
|
-
|
|
1253
|
+
processing_state?: Json;
|
|
1254
1254
|
qualification_rubric_key?: string | null;
|
|
1255
1255
|
qualification_score?: number | null;
|
|
1256
1256
|
qualification_signals?: Json | null;
|
|
@@ -1278,7 +1278,7 @@ type Database = {
|
|
|
1278
1278
|
nurture?: boolean;
|
|
1279
1279
|
opening_line?: string | null;
|
|
1280
1280
|
organization_id?: string;
|
|
1281
|
-
|
|
1281
|
+
processing_state?: Json;
|
|
1282
1282
|
qualification_rubric_key?: string | null;
|
|
1283
1283
|
qualification_score?: number | null;
|
|
1284
1284
|
qualification_signals?: Json | null;
|
|
@@ -1674,7 +1674,6 @@ type Database = {
|
|
|
1674
1674
|
id: string;
|
|
1675
1675
|
list_id: string;
|
|
1676
1676
|
pipeline_key: string;
|
|
1677
|
-
processing_state: Json;
|
|
1678
1677
|
source_execution_id: string | null;
|
|
1679
1678
|
source_input_hash: string | null;
|
|
1680
1679
|
source_resource_id: string | null;
|
|
@@ -1689,7 +1688,6 @@ type Database = {
|
|
|
1689
1688
|
id?: string;
|
|
1690
1689
|
list_id: string;
|
|
1691
1690
|
pipeline_key?: string;
|
|
1692
|
-
processing_state?: Json;
|
|
1693
1691
|
source_execution_id?: string | null;
|
|
1694
1692
|
source_input_hash?: string | null;
|
|
1695
1693
|
source_resource_id?: string | null;
|
|
@@ -1704,7 +1702,6 @@ type Database = {
|
|
|
1704
1702
|
id?: string;
|
|
1705
1703
|
list_id?: string;
|
|
1706
1704
|
pipeline_key?: string;
|
|
1707
|
-
processing_state?: Json;
|
|
1708
1705
|
source_execution_id?: string | null;
|
|
1709
1706
|
source_input_hash?: string | null;
|
|
1710
1707
|
source_resource_id?: string | null;
|
|
@@ -1783,7 +1780,6 @@ type Database = {
|
|
|
1783
1780
|
id: string;
|
|
1784
1781
|
list_id: string;
|
|
1785
1782
|
pipeline_key: string;
|
|
1786
|
-
processing_state: Json;
|
|
1787
1783
|
source_execution_id: string | null;
|
|
1788
1784
|
source_input_hash: string | null;
|
|
1789
1785
|
source_resource_id: string | null;
|
|
@@ -1798,7 +1794,6 @@ type Database = {
|
|
|
1798
1794
|
id?: string;
|
|
1799
1795
|
list_id: string;
|
|
1800
1796
|
pipeline_key?: string;
|
|
1801
|
-
processing_state?: Json;
|
|
1802
1797
|
source_execution_id?: string | null;
|
|
1803
1798
|
source_input_hash?: string | null;
|
|
1804
1799
|
source_resource_id?: string | null;
|
|
@@ -1813,7 +1808,6 @@ type Database = {
|
|
|
1813
1808
|
id?: string;
|
|
1814
1809
|
list_id?: string;
|
|
1815
1810
|
pipeline_key?: string;
|
|
1816
|
-
processing_state?: Json;
|
|
1817
1811
|
source_execution_id?: string | null;
|
|
1818
1812
|
source_input_hash?: string | null;
|
|
1819
1813
|
source_resource_id?: string | null;
|
|
@@ -3965,6 +3959,281 @@ type Database = {
|
|
|
3965
3959
|
};
|
|
3966
3960
|
};
|
|
3967
3961
|
|
|
3962
|
+
declare const ProspectingBuildTemplateStepSchema: z.ZodObject<{
|
|
3963
|
+
label: z.ZodString;
|
|
3964
|
+
description: z.ZodOptional<z.ZodString>;
|
|
3965
|
+
color: z.ZodOptional<z.ZodString>;
|
|
3966
|
+
icon: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
3967
|
+
"nav.dashboard": "nav.dashboard";
|
|
3968
|
+
"nav.calendar": "nav.calendar";
|
|
3969
|
+
"nav.sales": "nav.sales";
|
|
3970
|
+
"nav.crm": "nav.crm";
|
|
3971
|
+
"nav.lead-gen": "nav.lead-gen";
|
|
3972
|
+
"nav.projects": "nav.projects";
|
|
3973
|
+
"nav.operations": "nav.operations";
|
|
3974
|
+
"nav.monitoring": "nav.monitoring";
|
|
3975
|
+
"nav.knowledge": "nav.knowledge";
|
|
3976
|
+
"nav.settings": "nav.settings";
|
|
3977
|
+
"nav.admin": "nav.admin";
|
|
3978
|
+
"nav.archive": "nav.archive";
|
|
3979
|
+
"knowledge.playbook": "knowledge.playbook";
|
|
3980
|
+
"knowledge.strategy": "knowledge.strategy";
|
|
3981
|
+
"knowledge.reference": "knowledge.reference";
|
|
3982
|
+
"feature.dashboard": "feature.dashboard";
|
|
3983
|
+
"feature.calendar": "feature.calendar";
|
|
3984
|
+
"feature.sales": "feature.sales";
|
|
3985
|
+
"feature.crm": "feature.crm";
|
|
3986
|
+
"feature.finance": "feature.finance";
|
|
3987
|
+
"feature.lead-gen": "feature.lead-gen";
|
|
3988
|
+
"feature.platform": "feature.platform";
|
|
3989
|
+
"feature.projects": "feature.projects";
|
|
3990
|
+
"feature.operations": "feature.operations";
|
|
3991
|
+
"feature.knowledge": "feature.knowledge";
|
|
3992
|
+
"feature.monitoring": "feature.monitoring";
|
|
3993
|
+
"feature.settings": "feature.settings";
|
|
3994
|
+
"feature.admin": "feature.admin";
|
|
3995
|
+
"feature.archive": "feature.archive";
|
|
3996
|
+
"feature.seo": "feature.seo";
|
|
3997
|
+
"resource.agent": "resource.agent";
|
|
3998
|
+
"resource.workflow": "resource.workflow";
|
|
3999
|
+
"resource.integration": "resource.integration";
|
|
4000
|
+
"resource.database": "resource.database";
|
|
4001
|
+
"resource.user": "resource.user";
|
|
4002
|
+
"resource.team": "resource.team";
|
|
4003
|
+
"integration.gmail": "integration.gmail";
|
|
4004
|
+
"integration.google-sheets": "integration.google-sheets";
|
|
4005
|
+
"integration.attio": "integration.attio";
|
|
4006
|
+
"surface.dashboard": "surface.dashboard";
|
|
4007
|
+
"surface.calendar": "surface.calendar";
|
|
4008
|
+
"surface.overview": "surface.overview";
|
|
4009
|
+
"surface.command-view": "surface.command-view";
|
|
4010
|
+
"surface.command-queue": "surface.command-queue";
|
|
4011
|
+
"surface.pipeline": "surface.pipeline";
|
|
4012
|
+
"surface.lists": "surface.lists";
|
|
4013
|
+
"surface.resources": "surface.resources";
|
|
4014
|
+
"surface.settings": "surface.settings";
|
|
4015
|
+
"status.success": "status.success";
|
|
4016
|
+
"status.error": "status.error";
|
|
4017
|
+
"status.warning": "status.warning";
|
|
4018
|
+
"status.info": "status.info";
|
|
4019
|
+
"status.pending": "status.pending";
|
|
4020
|
+
"action.approve": "action.approve";
|
|
4021
|
+
"action.reject": "action.reject";
|
|
4022
|
+
"action.retry": "action.retry";
|
|
4023
|
+
"action.edit": "action.edit";
|
|
4024
|
+
"action.view": "action.view";
|
|
4025
|
+
"action.launch": "action.launch";
|
|
4026
|
+
"action.message": "action.message";
|
|
4027
|
+
"action.escalate": "action.escalate";
|
|
4028
|
+
"action.promote": "action.promote";
|
|
4029
|
+
"action.submit": "action.submit";
|
|
4030
|
+
"action.email": "action.email";
|
|
4031
|
+
}>, z.ZodString]>>;
|
|
4032
|
+
id: z.ZodString;
|
|
4033
|
+
primaryEntity: z.ZodEnum<{
|
|
4034
|
+
company: "company";
|
|
4035
|
+
contact: "contact";
|
|
4036
|
+
}>;
|
|
4037
|
+
outputs: z.ZodArray<z.ZodEnum<{
|
|
4038
|
+
company: "company";
|
|
4039
|
+
contact: "contact";
|
|
4040
|
+
export: "export";
|
|
4041
|
+
}>>;
|
|
4042
|
+
stageKey: z.ZodString;
|
|
4043
|
+
dependsOn: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
4044
|
+
dependencyMode: z.ZodLiteral<"per-record-eligibility">;
|
|
4045
|
+
capabilityKey: z.ZodString;
|
|
4046
|
+
defaultBatchSize: z.ZodNumber;
|
|
4047
|
+
maxBatchSize: z.ZodNumber;
|
|
4048
|
+
}, z.core.$strip>;
|
|
4049
|
+
declare const ProspectingBuildTemplateSchema: z.ZodObject<{
|
|
4050
|
+
label: z.ZodString;
|
|
4051
|
+
description: z.ZodOptional<z.ZodString>;
|
|
4052
|
+
color: z.ZodOptional<z.ZodString>;
|
|
4053
|
+
icon: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
4054
|
+
"nav.dashboard": "nav.dashboard";
|
|
4055
|
+
"nav.calendar": "nav.calendar";
|
|
4056
|
+
"nav.sales": "nav.sales";
|
|
4057
|
+
"nav.crm": "nav.crm";
|
|
4058
|
+
"nav.lead-gen": "nav.lead-gen";
|
|
4059
|
+
"nav.projects": "nav.projects";
|
|
4060
|
+
"nav.operations": "nav.operations";
|
|
4061
|
+
"nav.monitoring": "nav.monitoring";
|
|
4062
|
+
"nav.knowledge": "nav.knowledge";
|
|
4063
|
+
"nav.settings": "nav.settings";
|
|
4064
|
+
"nav.admin": "nav.admin";
|
|
4065
|
+
"nav.archive": "nav.archive";
|
|
4066
|
+
"knowledge.playbook": "knowledge.playbook";
|
|
4067
|
+
"knowledge.strategy": "knowledge.strategy";
|
|
4068
|
+
"knowledge.reference": "knowledge.reference";
|
|
4069
|
+
"feature.dashboard": "feature.dashboard";
|
|
4070
|
+
"feature.calendar": "feature.calendar";
|
|
4071
|
+
"feature.sales": "feature.sales";
|
|
4072
|
+
"feature.crm": "feature.crm";
|
|
4073
|
+
"feature.finance": "feature.finance";
|
|
4074
|
+
"feature.lead-gen": "feature.lead-gen";
|
|
4075
|
+
"feature.platform": "feature.platform";
|
|
4076
|
+
"feature.projects": "feature.projects";
|
|
4077
|
+
"feature.operations": "feature.operations";
|
|
4078
|
+
"feature.knowledge": "feature.knowledge";
|
|
4079
|
+
"feature.monitoring": "feature.monitoring";
|
|
4080
|
+
"feature.settings": "feature.settings";
|
|
4081
|
+
"feature.admin": "feature.admin";
|
|
4082
|
+
"feature.archive": "feature.archive";
|
|
4083
|
+
"feature.seo": "feature.seo";
|
|
4084
|
+
"resource.agent": "resource.agent";
|
|
4085
|
+
"resource.workflow": "resource.workflow";
|
|
4086
|
+
"resource.integration": "resource.integration";
|
|
4087
|
+
"resource.database": "resource.database";
|
|
4088
|
+
"resource.user": "resource.user";
|
|
4089
|
+
"resource.team": "resource.team";
|
|
4090
|
+
"integration.gmail": "integration.gmail";
|
|
4091
|
+
"integration.google-sheets": "integration.google-sheets";
|
|
4092
|
+
"integration.attio": "integration.attio";
|
|
4093
|
+
"surface.dashboard": "surface.dashboard";
|
|
4094
|
+
"surface.calendar": "surface.calendar";
|
|
4095
|
+
"surface.overview": "surface.overview";
|
|
4096
|
+
"surface.command-view": "surface.command-view";
|
|
4097
|
+
"surface.command-queue": "surface.command-queue";
|
|
4098
|
+
"surface.pipeline": "surface.pipeline";
|
|
4099
|
+
"surface.lists": "surface.lists";
|
|
4100
|
+
"surface.resources": "surface.resources";
|
|
4101
|
+
"surface.settings": "surface.settings";
|
|
4102
|
+
"status.success": "status.success";
|
|
4103
|
+
"status.error": "status.error";
|
|
4104
|
+
"status.warning": "status.warning";
|
|
4105
|
+
"status.info": "status.info";
|
|
4106
|
+
"status.pending": "status.pending";
|
|
4107
|
+
"action.approve": "action.approve";
|
|
4108
|
+
"action.reject": "action.reject";
|
|
4109
|
+
"action.retry": "action.retry";
|
|
4110
|
+
"action.edit": "action.edit";
|
|
4111
|
+
"action.view": "action.view";
|
|
4112
|
+
"action.launch": "action.launch";
|
|
4113
|
+
"action.message": "action.message";
|
|
4114
|
+
"action.escalate": "action.escalate";
|
|
4115
|
+
"action.promote": "action.promote";
|
|
4116
|
+
"action.submit": "action.submit";
|
|
4117
|
+
"action.email": "action.email";
|
|
4118
|
+
}>, z.ZodString]>>;
|
|
4119
|
+
id: z.ZodString;
|
|
4120
|
+
steps: z.ZodArray<z.ZodObject<{
|
|
4121
|
+
label: z.ZodString;
|
|
4122
|
+
description: z.ZodOptional<z.ZodString>;
|
|
4123
|
+
color: z.ZodOptional<z.ZodString>;
|
|
4124
|
+
icon: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
4125
|
+
"nav.dashboard": "nav.dashboard";
|
|
4126
|
+
"nav.calendar": "nav.calendar";
|
|
4127
|
+
"nav.sales": "nav.sales";
|
|
4128
|
+
"nav.crm": "nav.crm";
|
|
4129
|
+
"nav.lead-gen": "nav.lead-gen";
|
|
4130
|
+
"nav.projects": "nav.projects";
|
|
4131
|
+
"nav.operations": "nav.operations";
|
|
4132
|
+
"nav.monitoring": "nav.monitoring";
|
|
4133
|
+
"nav.knowledge": "nav.knowledge";
|
|
4134
|
+
"nav.settings": "nav.settings";
|
|
4135
|
+
"nav.admin": "nav.admin";
|
|
4136
|
+
"nav.archive": "nav.archive";
|
|
4137
|
+
"knowledge.playbook": "knowledge.playbook";
|
|
4138
|
+
"knowledge.strategy": "knowledge.strategy";
|
|
4139
|
+
"knowledge.reference": "knowledge.reference";
|
|
4140
|
+
"feature.dashboard": "feature.dashboard";
|
|
4141
|
+
"feature.calendar": "feature.calendar";
|
|
4142
|
+
"feature.sales": "feature.sales";
|
|
4143
|
+
"feature.crm": "feature.crm";
|
|
4144
|
+
"feature.finance": "feature.finance";
|
|
4145
|
+
"feature.lead-gen": "feature.lead-gen";
|
|
4146
|
+
"feature.platform": "feature.platform";
|
|
4147
|
+
"feature.projects": "feature.projects";
|
|
4148
|
+
"feature.operations": "feature.operations";
|
|
4149
|
+
"feature.knowledge": "feature.knowledge";
|
|
4150
|
+
"feature.monitoring": "feature.monitoring";
|
|
4151
|
+
"feature.settings": "feature.settings";
|
|
4152
|
+
"feature.admin": "feature.admin";
|
|
4153
|
+
"feature.archive": "feature.archive";
|
|
4154
|
+
"feature.seo": "feature.seo";
|
|
4155
|
+
"resource.agent": "resource.agent";
|
|
4156
|
+
"resource.workflow": "resource.workflow";
|
|
4157
|
+
"resource.integration": "resource.integration";
|
|
4158
|
+
"resource.database": "resource.database";
|
|
4159
|
+
"resource.user": "resource.user";
|
|
4160
|
+
"resource.team": "resource.team";
|
|
4161
|
+
"integration.gmail": "integration.gmail";
|
|
4162
|
+
"integration.google-sheets": "integration.google-sheets";
|
|
4163
|
+
"integration.attio": "integration.attio";
|
|
4164
|
+
"surface.dashboard": "surface.dashboard";
|
|
4165
|
+
"surface.calendar": "surface.calendar";
|
|
4166
|
+
"surface.overview": "surface.overview";
|
|
4167
|
+
"surface.command-view": "surface.command-view";
|
|
4168
|
+
"surface.command-queue": "surface.command-queue";
|
|
4169
|
+
"surface.pipeline": "surface.pipeline";
|
|
4170
|
+
"surface.lists": "surface.lists";
|
|
4171
|
+
"surface.resources": "surface.resources";
|
|
4172
|
+
"surface.settings": "surface.settings";
|
|
4173
|
+
"status.success": "status.success";
|
|
4174
|
+
"status.error": "status.error";
|
|
4175
|
+
"status.warning": "status.warning";
|
|
4176
|
+
"status.info": "status.info";
|
|
4177
|
+
"status.pending": "status.pending";
|
|
4178
|
+
"action.approve": "action.approve";
|
|
4179
|
+
"action.reject": "action.reject";
|
|
4180
|
+
"action.retry": "action.retry";
|
|
4181
|
+
"action.edit": "action.edit";
|
|
4182
|
+
"action.view": "action.view";
|
|
4183
|
+
"action.launch": "action.launch";
|
|
4184
|
+
"action.message": "action.message";
|
|
4185
|
+
"action.escalate": "action.escalate";
|
|
4186
|
+
"action.promote": "action.promote";
|
|
4187
|
+
"action.submit": "action.submit";
|
|
4188
|
+
"action.email": "action.email";
|
|
4189
|
+
}>, z.ZodString]>>;
|
|
4190
|
+
id: z.ZodString;
|
|
4191
|
+
primaryEntity: z.ZodEnum<{
|
|
4192
|
+
company: "company";
|
|
4193
|
+
contact: "contact";
|
|
4194
|
+
}>;
|
|
4195
|
+
outputs: z.ZodArray<z.ZodEnum<{
|
|
4196
|
+
company: "company";
|
|
4197
|
+
contact: "contact";
|
|
4198
|
+
export: "export";
|
|
4199
|
+
}>>;
|
|
4200
|
+
stageKey: z.ZodString;
|
|
4201
|
+
dependsOn: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
4202
|
+
dependencyMode: z.ZodLiteral<"per-record-eligibility">;
|
|
4203
|
+
capabilityKey: z.ZodString;
|
|
4204
|
+
defaultBatchSize: z.ZodNumber;
|
|
4205
|
+
maxBatchSize: z.ZodNumber;
|
|
4206
|
+
}, z.core.$strip>>;
|
|
4207
|
+
}, z.core.$strip>;
|
|
4208
|
+
type ListBuilderStep = z.infer<typeof ProspectingBuildTemplateStepSchema>;
|
|
4209
|
+
|
|
4210
|
+
/** One entry in the lead-gen stage catalog. */
|
|
4211
|
+
interface LeadGenStageCatalogEntry {
|
|
4212
|
+
/** Matches the status key written into processing_state jsonb (e.g. 'scraped'). */
|
|
4213
|
+
key: string;
|
|
4214
|
+
/** Human-readable label for UI display. */
|
|
4215
|
+
label: string;
|
|
4216
|
+
/** Short description of what this stage represents. */
|
|
4217
|
+
description: string;
|
|
4218
|
+
/** Canonical pipeline order for UI sorting. Lower = earlier in the funnel. */
|
|
4219
|
+
order: number;
|
|
4220
|
+
/** Which entity's processing_state jsonb carries this stage status. */
|
|
4221
|
+
entity: 'company' | 'contact';
|
|
4222
|
+
}
|
|
4223
|
+
/**
|
|
4224
|
+
* Canonical lead-gen processing stage catalog.
|
|
4225
|
+
* Keys are the stage names written by workflow steps into processing_state jsonb.
|
|
4226
|
+
*
|
|
4227
|
+
* Ordered roughly by pipeline progression (prospecting → outreach → qualification).
|
|
4228
|
+
*/
|
|
4229
|
+
declare const LEAD_GEN_STAGE_CATALOG: Record<string, LeadGenStageCatalogEntry>;
|
|
4230
|
+
|
|
4231
|
+
declare const ProcessingStageStatusSchema: z.ZodEnum<{
|
|
4232
|
+
error: "error";
|
|
4233
|
+
success: "success";
|
|
4234
|
+
no_result: "no_result";
|
|
4235
|
+
skipped: "skipped";
|
|
4236
|
+
}>;
|
|
3968
4237
|
declare const DealSchemas: {
|
|
3969
4238
|
DealIdParams: z.ZodObject<{
|
|
3970
4239
|
dealId: z.ZodString;
|
|
@@ -4101,7 +4370,15 @@ declare const DealSchemas: {
|
|
|
4101
4370
|
title: z.ZodNullable<z.ZodString>;
|
|
4102
4371
|
headline: z.ZodNullable<z.ZodString>;
|
|
4103
4372
|
linkedin_url: z.ZodNullable<z.ZodString>;
|
|
4104
|
-
|
|
4373
|
+
processing_state: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
4374
|
+
status: z.ZodEnum<{
|
|
4375
|
+
error: "error";
|
|
4376
|
+
success: "success";
|
|
4377
|
+
no_result: "no_result";
|
|
4378
|
+
skipped: "skipped";
|
|
4379
|
+
}>;
|
|
4380
|
+
data: z.ZodOptional<z.ZodUnknown>;
|
|
4381
|
+
}, z.core.$loose>>>;
|
|
4105
4382
|
enrichment_data: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
4106
4383
|
company: z.ZodNullable<z.ZodObject<{
|
|
4107
4384
|
id: z.ZodString;
|
|
@@ -4215,7 +4492,15 @@ declare const DealSchemas: {
|
|
|
4215
4492
|
title: z.ZodNullable<z.ZodString>;
|
|
4216
4493
|
headline: z.ZodNullable<z.ZodString>;
|
|
4217
4494
|
linkedin_url: z.ZodNullable<z.ZodString>;
|
|
4218
|
-
|
|
4495
|
+
processing_state: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
4496
|
+
status: z.ZodEnum<{
|
|
4497
|
+
error: "error";
|
|
4498
|
+
success: "success";
|
|
4499
|
+
no_result: "no_result";
|
|
4500
|
+
skipped: "skipped";
|
|
4501
|
+
}>;
|
|
4502
|
+
data: z.ZodOptional<z.ZodUnknown>;
|
|
4503
|
+
}, z.core.$loose>>>;
|
|
4219
4504
|
enrichment_data: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
4220
4505
|
company: z.ZodNullable<z.ZodObject<{
|
|
4221
4506
|
id: z.ZodString;
|
|
@@ -4313,57 +4598,41 @@ declare const PipelineStageSchema: z.ZodObject<{
|
|
|
4313
4598
|
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
4314
4599
|
order: z.ZodOptional<z.ZodNumber>;
|
|
4315
4600
|
}, z.core.$strip>;
|
|
4316
|
-
|
|
4317
|
-
|
|
4318
|
-
|
|
4319
|
-
|
|
4320
|
-
|
|
4321
|
-
|
|
4322
|
-
|
|
4323
|
-
|
|
4324
|
-
|
|
4325
|
-
|
|
4326
|
-
|
|
4601
|
+
declare const BuildPlanSnapshotStepSchema: z.ZodObject<{
|
|
4602
|
+
id: z.ZodString;
|
|
4603
|
+
label: z.ZodString;
|
|
4604
|
+
description: z.ZodOptional<z.ZodString>;
|
|
4605
|
+
primaryEntity: z.ZodEnum<{
|
|
4606
|
+
company: "company";
|
|
4607
|
+
contact: "contact";
|
|
4608
|
+
}>;
|
|
4609
|
+
outputs: z.ZodArray<z.ZodEnum<{
|
|
4610
|
+
company: "company";
|
|
4611
|
+
contact: "contact";
|
|
4612
|
+
export: "export";
|
|
4613
|
+
}>>;
|
|
4614
|
+
stageKey: z.ZodString;
|
|
4615
|
+
dependsOn: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
4616
|
+
dependencyMode: z.ZodLiteral<"per-record-eligibility">;
|
|
4617
|
+
capabilityKey: z.ZodString;
|
|
4618
|
+
defaultBatchSize: z.ZodNumber;
|
|
4619
|
+
maxBatchSize: z.ZodNumber;
|
|
4620
|
+
}, z.core.$strip>;
|
|
4327
4621
|
type PipelineStage = z.infer<typeof PipelineStageSchema>;
|
|
4328
4622
|
type ProcessingStageStatus = z.infer<typeof ProcessingStageStatusSchema>;
|
|
4329
4623
|
|
|
4330
4624
|
/** Raw database row type for acq_deals table */
|
|
4331
4625
|
type AcqDealRow = Database['public']['Tables']['acq_deals']['Row'];
|
|
4332
|
-
|
|
4333
|
-
|
|
4334
|
-
|
|
4335
|
-
|
|
4336
|
-
acquired: boolean;
|
|
4337
|
-
enrichment: {
|
|
4338
|
-
[source: string]: {
|
|
4339
|
-
status: 'pending' | 'complete' | 'failed' | 'skipped';
|
|
4340
|
-
completedAt?: string;
|
|
4341
|
-
error?: string;
|
|
4342
|
-
};
|
|
4343
|
-
};
|
|
4344
|
-
}
|
|
4345
|
-
/**
|
|
4346
|
-
* Tracks pipeline status for a contact across all processing stages.
|
|
4347
|
-
*/
|
|
4348
|
-
interface ContactPipelineStatus {
|
|
4349
|
-
enrichment: {
|
|
4350
|
-
[source: string]: {
|
|
4351
|
-
status: 'pending' | 'complete' | 'failed' | 'skipped';
|
|
4352
|
-
completedAt?: string;
|
|
4353
|
-
error?: string;
|
|
4354
|
-
};
|
|
4355
|
-
};
|
|
4356
|
-
personalization: {
|
|
4357
|
-
status: 'pending' | 'complete' | 'failed' | 'skipped';
|
|
4358
|
-
completedAt?: string;
|
|
4359
|
-
};
|
|
4360
|
-
outreach: {
|
|
4361
|
-
status: 'pending' | 'sent' | 'replied' | 'bounced' | 'opted-out';
|
|
4362
|
-
sentAt?: string;
|
|
4363
|
-
channel?: string;
|
|
4364
|
-
campaignId?: string;
|
|
4365
|
-
};
|
|
4626
|
+
type LeadGenStageKey = (typeof LEAD_GEN_STAGE_CATALOG)[keyof typeof LEAD_GEN_STAGE_CATALOG]['key'];
|
|
4627
|
+
interface ProcessingStateEntry {
|
|
4628
|
+
status: ProcessingStageStatus;
|
|
4629
|
+
data?: unknown;
|
|
4366
4630
|
}
|
|
4631
|
+
type ProcessingState = Partial<Record<LeadGenStageKey, ProcessingStateEntry>>;
|
|
4632
|
+
type CompanyProcessingState = ProcessingState;
|
|
4633
|
+
type ContactProcessingState = ProcessingState;
|
|
4634
|
+
/** @deprecated Use `processingState`. Retained only as a compile-time/read-shape bridge for external tenants. */
|
|
4635
|
+
type LegacyPipelineStatus = unknown;
|
|
4367
4636
|
/**
|
|
4368
4637
|
* Enrichment data collected for a company from various sources.
|
|
4369
4638
|
*/
|
|
@@ -4516,7 +4785,9 @@ interface AcqCompany {
|
|
|
4516
4785
|
category: string | null;
|
|
4517
4786
|
categoryPain: string | null;
|
|
4518
4787
|
segment: string | null;
|
|
4519
|
-
|
|
4788
|
+
processingState: CompanyProcessingState | null;
|
|
4789
|
+
/** @deprecated Use `processingState`. This legacy DB column has been removed; responses return null. */
|
|
4790
|
+
pipelineStatus?: LegacyPipelineStatus | null;
|
|
4520
4791
|
enrichmentData: CompanyEnrichmentData | null;
|
|
4521
4792
|
source: string | null;
|
|
4522
4793
|
batchId: string | null;
|
|
@@ -4551,7 +4822,9 @@ interface AcqContact {
|
|
|
4551
4822
|
openingLine: string | null;
|
|
4552
4823
|
source: string | null;
|
|
4553
4824
|
sourceId: string | null;
|
|
4554
|
-
|
|
4825
|
+
processingState: ContactProcessingState | null;
|
|
4826
|
+
/** @deprecated Use `processingState`. This legacy DB column has been removed; responses return null. */
|
|
4827
|
+
pipelineStatus?: LegacyPipelineStatus | null;
|
|
4555
4828
|
enrichmentData: ContactEnrichmentData | null;
|
|
4556
4829
|
/** Attio Person record ID - set when contact responds and is added to CRM */
|
|
4557
4830
|
attioPersonId: string | null;
|
|
@@ -4578,7 +4851,7 @@ interface DealContact {
|
|
|
4578
4851
|
title: string | null;
|
|
4579
4852
|
headline: string | null;
|
|
4580
4853
|
linkedin_url: string | null;
|
|
4581
|
-
|
|
4854
|
+
processing_state: Record<string, unknown> | null;
|
|
4582
4855
|
enrichment_data: Record<string, unknown> | null;
|
|
4583
4856
|
company: {
|
|
4584
4857
|
id: string;
|
|
@@ -4667,6 +4940,8 @@ interface CreateCompanyParams {
|
|
|
4667
4940
|
source?: string;
|
|
4668
4941
|
batchId?: string;
|
|
4669
4942
|
verticalResearch?: string;
|
|
4943
|
+
/** @deprecated Use processingState. Accepted as a no-op compatibility bridge for external tenants. */
|
|
4944
|
+
pipelineStatus?: unknown;
|
|
4670
4945
|
}
|
|
4671
4946
|
interface UpdateCompanyParams {
|
|
4672
4947
|
name?: string;
|
|
@@ -4679,7 +4954,9 @@ interface UpdateCompanyParams {
|
|
|
4679
4954
|
locationState?: string;
|
|
4680
4955
|
category?: string;
|
|
4681
4956
|
segment?: string;
|
|
4682
|
-
|
|
4957
|
+
processingState?: ProcessingState;
|
|
4958
|
+
/** @deprecated Use processingState. Accepted as a no-op compatibility bridge for external tenants. */
|
|
4959
|
+
pipelineStatus?: unknown;
|
|
4683
4960
|
enrichmentData?: Record<string, unknown>;
|
|
4684
4961
|
source?: string;
|
|
4685
4962
|
batchId?: string;
|
|
@@ -4687,7 +4964,7 @@ interface UpdateCompanyParams {
|
|
|
4687
4964
|
verticalResearch?: string | null;
|
|
4688
4965
|
/** Track A: flat qualification score column (null until a scoring rubric is defined) */
|
|
4689
4966
|
qualificationScore?: number | null;
|
|
4690
|
-
/** Track A: flat qualification signals jsonb
|
|
4967
|
+
/** Track A: flat qualification signals jsonb */
|
|
4691
4968
|
qualificationSignals?: Record<string, unknown> | null;
|
|
4692
4969
|
/** Track A: key identifying the rubric used for qualification */
|
|
4693
4970
|
qualificationRubricKey?: string | null;
|
|
@@ -4700,13 +4977,15 @@ interface CompanyFilters {
|
|
|
4700
4977
|
website?: string;
|
|
4701
4978
|
segment?: string;
|
|
4702
4979
|
category?: string;
|
|
4703
|
-
|
|
4704
|
-
/**
|
|
4705
|
-
|
|
4980
|
+
processingState?: ProcessingState;
|
|
4981
|
+
/** @deprecated Use processingState. Accepted as a no-op compatibility bridge for external tenants. */
|
|
4982
|
+
pipelineStatus?: unknown;
|
|
4983
|
+
/** Exclude companies whose processing state contains this value (PostgREST NOT contains) */
|
|
4984
|
+
processingStateNot?: ProcessingState;
|
|
4706
4985
|
batchId?: string;
|
|
4707
4986
|
status?: 'active' | 'invalid';
|
|
4708
4987
|
includeAll?: boolean;
|
|
4709
|
-
excludeColumns?: Array<'enrichmentData' | '
|
|
4988
|
+
excludeColumns?: Array<'enrichmentData' | 'processingState'>;
|
|
4710
4989
|
limit?: number;
|
|
4711
4990
|
}
|
|
4712
4991
|
interface CreateContactParams {
|
|
@@ -4720,6 +4999,8 @@ interface CreateContactParams {
|
|
|
4720
4999
|
source?: string;
|
|
4721
5000
|
sourceId?: string;
|
|
4722
5001
|
batchId?: string;
|
|
5002
|
+
/** @deprecated Use processingState. Accepted as a no-op compatibility bridge for external tenants. */
|
|
5003
|
+
pipelineStatus?: unknown;
|
|
4723
5004
|
}
|
|
4724
5005
|
interface UpdateContactParams {
|
|
4725
5006
|
companyId?: string;
|
|
@@ -4731,7 +5012,9 @@ interface UpdateContactParams {
|
|
|
4731
5012
|
headline?: string;
|
|
4732
5013
|
filterReason?: string;
|
|
4733
5014
|
openingLine?: string;
|
|
4734
|
-
|
|
5015
|
+
processingState?: ProcessingState;
|
|
5016
|
+
/** @deprecated Use processingState. Accepted as a no-op compatibility bridge for external tenants. */
|
|
5017
|
+
pipelineStatus?: unknown;
|
|
4735
5018
|
enrichmentData?: Record<string, unknown>;
|
|
4736
5019
|
status?: 'active' | 'invalid';
|
|
4737
5020
|
}
|
|
@@ -4740,7 +5023,9 @@ interface ContactFilters {
|
|
|
4740
5023
|
listId?: string;
|
|
4741
5024
|
search?: string;
|
|
4742
5025
|
openingLineIsNull?: boolean;
|
|
4743
|
-
|
|
5026
|
+
processingState?: ProcessingState;
|
|
5027
|
+
/** @deprecated Use processingState. Accepted as a no-op compatibility bridge for external tenants. */
|
|
5028
|
+
pipelineStatus?: unknown;
|
|
4744
5029
|
batchId?: string;
|
|
4745
5030
|
contactStatus?: 'active' | 'invalid';
|
|
4746
5031
|
}
|
|
@@ -4998,6 +5283,18 @@ interface UpdateContactStageParams {
|
|
|
4998
5283
|
status?: ProcessingStageStatus;
|
|
4999
5284
|
executionId?: string;
|
|
5000
5285
|
}
|
|
5286
|
+
interface ListPendingCompanyIdsParams {
|
|
5287
|
+
organizationId: string;
|
|
5288
|
+
listId: string;
|
|
5289
|
+
stageKey: string;
|
|
5290
|
+
limit?: number;
|
|
5291
|
+
}
|
|
5292
|
+
interface ListPendingContactIdsParams {
|
|
5293
|
+
organizationId: string;
|
|
5294
|
+
listId: string;
|
|
5295
|
+
stageKey: string;
|
|
5296
|
+
limit?: number;
|
|
5297
|
+
}
|
|
5001
5298
|
interface AddCompaniesToListParams {
|
|
5002
5299
|
organizationId: string;
|
|
5003
5300
|
listId: string;
|
|
@@ -5035,7 +5332,7 @@ interface BulkImportCompanyEntry {
|
|
|
5035
5332
|
category?: string;
|
|
5036
5333
|
source?: string;
|
|
5037
5334
|
enrichmentData?: Record<string, unknown>;
|
|
5038
|
-
|
|
5335
|
+
processingState?: ProcessingState;
|
|
5039
5336
|
}
|
|
5040
5337
|
interface BulkImportCompaniesParams {
|
|
5041
5338
|
organizationId: string;
|
|
@@ -8082,6 +8379,14 @@ type ListToolMap = {
|
|
|
8082
8379
|
params: Omit<UpdateContactStageParams, 'organizationId'>;
|
|
8083
8380
|
result: void;
|
|
8084
8381
|
};
|
|
8382
|
+
listPendingCompanyIds: {
|
|
8383
|
+
params: Omit<ListPendingCompanyIdsParams, 'organizationId'>;
|
|
8384
|
+
result: string[];
|
|
8385
|
+
};
|
|
8386
|
+
listPendingContactIds: {
|
|
8387
|
+
params: Omit<ListPendingContactIdsParams, 'organizationId'>;
|
|
8388
|
+
result: string[];
|
|
8389
|
+
};
|
|
8085
8390
|
};
|
|
8086
8391
|
type PdfToolMap = {
|
|
8087
8392
|
render: {
|
|
@@ -9289,5 +9594,17 @@ declare class ToolingError extends ExecutionError {
|
|
|
9289
9594
|
constructor(errorType: string, message: string, details?: unknown);
|
|
9290
9595
|
}
|
|
9291
9596
|
|
|
9292
|
-
|
|
9293
|
-
|
|
9597
|
+
/**
|
|
9598
|
+
* @elevasis/sdk - Types and utilities for building Elevasis organization resources
|
|
9599
|
+
*
|
|
9600
|
+
* All types are re-exported from @repo/core and inlined at build time
|
|
9601
|
+
* via rollup-plugin-dts. External consumers never see @repo/core.
|
|
9602
|
+
*/
|
|
9603
|
+
|
|
9604
|
+
declare const ListBuilderStageKeySchema: z.ZodEnum<{
|
|
9605
|
+
[x: string]: string;
|
|
9606
|
+
}>;
|
|
9607
|
+
type ListBuilderStageKey = z.infer<typeof ListBuilderStageKeySchema>;
|
|
9608
|
+
|
|
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 };
|