Enums
Database enums constrain values at the storage layer; TypeScript const enum`s in `lib/enums.ts
carry values that are not stored (event names, skip reasons).
Campaign and calling
CampaignType-
call,email CampaignStatus-
draft,running,paused,stopped,completed TargetState-
pending,in_progress,dialing,completed,failed,canceled,skipped,DNC,WN,MAX,DT_PENDING,VOICEMAILThe uppercase values are legacy. Current handler code produces
pending,in_progress,dialing,completed,failed,skippedandDNConly — see Target lifecycle.Note the spelling: the enum value is
canceled(onel). Some UI code normalises tocancelled. CallStatus-
created,dialing,answered,ended
AI agents
AiAgentType-
analysis,caller,sms,other AiAgentLlmModelType-
gpt,claude— legacy fallback used whenAiAgent.modelIdis unset
Contacts and sellers
ContactSource-
campaign,hubspot,import,manualStored on
Contact.sourceas aString, not as this enum — a migration widened the column. ContactLifecycleStage-
subscriber,lead,marketingqualifiedlead,salesqualifiedlead,opportunity,customer,evangelist,other— mirrors HubSpotlifecyclestage ContactLeadStatus-
new,open,in_progress,open_deal,unqualified,attempted_to_contact,connected,bad_timing— mirrors HubSpoths_lead_status ContactHeatStatus-
hot(active follow-up),warm(rep acted, deal open),warming(task failed, automated track running),idle(30 days silent) ContactHubspotSyncStatus-
synced,pending,failed,skipped SellerPlatform-
amazon,walmart,shopify SellerDatasource-
smartscout,manual SellerLifeCycleStage-
new,enriched,qualified,opportunity,closed_won,closed_lost
Registries
LineTypes-
mobile,landline,fixedVoip,nonFixedVoip,tollFree,sharedCost,premium,voicemail,pager,voip,uan,unknown,other RiskLevel-
low,medium,high,criticalOnly
low(or null) is dialable — see Registries.
EmailTargetStatus-
pending,requested,sent,opened,bounced,unsubscribed,blocked,suppressed,failedThere is deliberately no
clickedvalue — a click is aclickedAttimestamp, not a status.suppressedmeans Resend dropped the send because the address is on its suppression list. EmailTargetCategory-
interested,not_interested,question,out_of_office,unsubscribe,wrong_person,other— LLM classification of a reply EmailVariationStatus-
pending_generation,active,archived EmailDirection-
outbound / inbound direction on
Emails EmailInboxCategory-
in-app inbox folder on
Emails DomainWarmupStatus-
warming_up,active— a label only; it does not gate sending
Sequences and tasks
SequenceType-
onboarding,re_engagement,not_connected_outreach SequenceStatus-
pending,active,paused,completed,abandoned,exited SequenceStepChannel-
email,call_task,sms,wait,data_gate,crm_task,crm_event FollowUpTaskType-
call,email,sequence_enrollment FollowUpTaskStatus-
pending,in_progress,completed,skipped,failed
Segmentation
See Segmentation models.
SegmentPurpose-
reengagement,email_campaign,reporting,other SegmentAssignmentMode-
round_robin,keep_owner,unassigned SegmentRunStatus-
running,completed,failed SegmentPrioritySource-
sql_view,strategy_rulesWhich of the two ways a segment’s priority number is produced.
lost_dealandsupplier_accountcompute a weighted score in their BigQuery view and the producer only rounds it; the rest compute priority in producer code. ReengagementArm-
control,treatment
Other
ActivityType-
sms,email,call,task,meeting,note,reminder SubscriptionUserRole-
owner,admin,member
TypeScript enums (lib/enums.ts)
Not stored in the database.
CampaignTargetStateEnum-
pending,in_progress,completed,failed,cancelledA legacy subset with the British spelling
cancelled, unlike the Prismacanceled. CampaignEventTypeEnum-
CALL_STARTED,CALL_ENDED CrmWorkflowEventTypeEnum-
Crm.DialerCallEnded,Crm.DealUpdate JustCallEventTypeEnum-
justcall_call.initiated,justcall_call.answered,justcall_call.incoming,justcall_call.completed,justcall_call.updated CallSkipReason-
prior_disposition,warm_lead,lifecycle_stage,dnc,campaign_not_running,invalid_e164,target_not_found,no_phone_number_available,outside_call_window,retell_errorReturned by the dial pipeline instead of thrown, so an ineligible target does not consume a retry.
Disposition sets (lib/constants.ts)
RetellDisposition is a TypeScript enum of every disposition value. The sets built from it decide
routing:
| Set | Values |
|---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
DOUBLE_TAP_REASONS and TECHNICAL_FAILURE_REASONS overlap but are not the same: the former uses
Retell’s disconnection_reason vocabulary, the latter mixes disposition and disconnection values.
RETRY_CONSTANTS:
| Constant | Value |
|---|---|
|
|
|
|
|
|
|
|