@corsair-dev/hunterio 0.1.0 → 0.1.1
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/README.md +25 -17
- package/dist/client.d.ts +2 -0
- package/dist/client.d.ts.map +1 -1
- package/dist/endpoints/briefing.d.ts +3 -0
- package/dist/endpoints/briefing.d.ts.map +1 -0
- package/dist/endpoints/company-lists.d.ts +1 -0
- package/dist/endpoints/company-lists.d.ts.map +1 -1
- package/dist/endpoints/domain-search.d.ts +2 -0
- package/dist/endpoints/domain-search.d.ts.map +1 -1
- package/dist/endpoints/index.d.ts +577 -138
- package/dist/endpoints/index.d.ts.map +1 -1
- package/dist/endpoints/leads-lists.d.ts.map +1 -1
- package/dist/endpoints/monitored-signals.d.ts +3 -0
- package/dist/endpoints/monitored-signals.d.ts.map +1 -0
- package/dist/endpoints/opportunities.d.ts +4 -0
- package/dist/endpoints/opportunities.d.ts.map +1 -0
- package/dist/endpoints/signals.d.ts +3 -0
- package/dist/endpoints/signals.d.ts.map +1 -0
- package/dist/endpoints/types.d.ts +1268 -323
- package/dist/endpoints/types.d.ts.map +1 -1
- package/dist/error-handlers.d.ts.map +1 -1
- package/dist/index.d.ts +590 -140
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/managed-pricing.test.d.ts +2 -0
- package/dist/managed-pricing.test.d.ts.map +1 -0
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{logEventFromContext as xt}from"corsair/core";import{AuthMissingError as Mn}from"corsair/core";import{request as Bn}from"corsair/http";var fe=class extends Error{constructor(o,s){super(o);this.code=s;this.name="HunterioAPIError"}},Vn="https://api.hunter.io/v2",Kn={enabled:!0,maxRetries:0,initialRetryDelay:1e3,backoffMultiplier:2,headerNames:{retryAfter:"retry-after",resetTime:"x-ratelimit-reset",remaining:"x-ratelimit-remaining",limit:"x-ratelimit-limit"},isRateLimitError:t=>t===403};async function r(t,i,o={}){let{method:s="GET",body:p,query:d}=o;if(i!==void 0&&i.length===0)throw new Mn("hunterio","api_key");let l={BASE:Vn,VERSION:"2.0.0",WITH_CREDENTIALS:!1,CREDENTIALS:"omit",TIMEOUT:3e4,HEADERS:{"Content-Type":"application/json",...i?{"X-API-KEY":i}:{}}},T={method:s,url:t,body:p!==void 0?p:void 0,mediaType:"application/json; charset=utf-8",query:d??{}};try{return await Bn(l,T,{rateLimitConfig:Kn})}catch(Me){throw Me instanceof Error?Me:new fe("Unknown error")}}import{z as e}from"zod";var g=e.object({total:e.number().optional(),limit:e.number().optional(),offset:e.number().optional(),results:e.number().optional(),params:e.unknown().optional()}).passthrough(),c=t=>e.object({status:e.string().optional(),data:t,meta:g.optional()}).passthrough(),_=e.object({status:e.string().optional(),data:e.unknown().optional(),meta:g.optional()}).passthrough(),u=e.union([e.number(),e.string()]),O={limit:e.number().int().min(1).optional(),offset:e.number().int().min(0).optional()},Le=e.object({used:e.number().optional(),available:e.number().optional(),remaining:e.number().optional(),over_quota:e.number().optional()}).passthrough(),Ke=e.object({credits:Le.optional(),searches:Le.optional(),verifications:Le.optional()}).passthrough(),$n=e.object({first_name:e.string().nullable().optional(),last_name:e.string().nullable().optional(),email:e.string().optional(),plan_name:e.string().optional(),plan_level:e.number().optional(),reset_date:e.string().optional(),team_id:e.number().optional(),requests:Ke.optional(),calls:e.object({_deprecation_notice:e.string().optional(),used:e.number().optional(),available:e.number().optional()}).passthrough().optional()}).passthrough(),Wn=e.object({}).passthrough(),Nn=c($n),Qn=e.object({first_name:e.string().optional(),last_name:e.string().optional()}),Yn=e.undefined(),Zn=e.object({}).passthrough(),Xn=_,Jn=e.object({show_overage_requests:e.boolean().optional()}),ea=c(e.object({reset_date:e.string().optional(),requests:Ke.optional()}).passthrough()),ta=e.object({...O,start_date:e.string().optional(),end_date:e.string().optional(),user_id:e.number().int().optional()}),oa=e.object({id:e.number().optional(),type:e.string().optional(),product:e.string().optional(),source:e.string().optional(),credits:e.number().optional(),free:e.boolean().optional(),made_at:e.string().optional(),made_by:e.object({id:e.number().optional(),first_name:e.string().nullable().optional(),last_name:e.string().nullable().optional(),api_key_name:e.string().nullable().optional()}).passthrough().optional(),request:e.object({url:e.string().optional(),ip:e.string().nullable().optional(),user_agent:e.string().nullable().optional(),filters:e.unknown().optional(),bulk_search_id:e.number().nullable().optional(),bulk_finder_id:e.number().nullable().optional()}).passthrough().optional()}).passthrough(),sa=c(e.array(oa)),na=e.object({...O}),aa=e.object({id:e.number().optional(),name:e.string().optional(),email:e.string().optional()}).passthrough(),ia=c(e.array(aa)),pe=e.object({id:e.number().optional(),name:e.string().nullable().optional(),token:e.string().optional(),created_at:e.string().optional()}).passthrough(),pa=e.object({}).passthrough(),ra=c(e.array(pe)),ua=e.object({name:e.string().max(255).optional()}),ca=c(pe),$e=e.object({id:u,name:e.string().max(255)}),la=c(pe),da=$e,ma=c(pe),ya=e.object({id:u}),ha=e.undefined(),ga=e.object({feedback_type:e.enum(["missing_endpoint","incorrect_documentation","unexpected_response","bug","data_quality","confusing_behavior","feature_request","other"]),summary:e.string().max(200),details:e.string(),endpoint:e.string().optional(),expected:e.string().optional(),actual:e.string().optional(),request_example:e.string().optional(),response_example:e.string().optional(),severity:e.enum(["low","medium","high","blocking"]).optional(),agent:e.string().optional()}),ba=c(e.object({id:e.number().optional(),status:e.string().optional(),feedback_type:e.string().optional(),severity:e.string().optional(),message:e.string().optional()}).passthrough()),fa=e.object({target_field:e.string().optional(),source_field:e.string().optional(),direction:e.string().optional(),conflict_policy:e.string().optional()}).passthrough(),We=e.object({id:e.number().optional(),provider:e.string().optional(),name:e.string().optional(),category:e.string().optional(),provider_email:e.string().nullable().optional(),connected_at:e.string().optional(),updated_at:e.string().optional(),attribute_mappings:e.array(fa).optional()}).passthrough(),La=e.object({...O}),Sa=c(e.array(We)),Ea=e.object({id:u}),xa=c(We),ka=e.object({id:u,lead_ids:e.array(e.number().int()).optional(),leads_list_id:u.optional()}).refine(t=>t.lead_ids!==void 0||t.leads_list_id!==void 0,{message:"Provide lead_ids or leads_list_id"}),Ca=c(e.object({connected_app_id:e.number().optional(),provider:e.string().optional(),leads_count:e.number().optional(),status:e.string().optional()}).passthrough()),Be=e.object({continent:e.string().optional(),business_region:e.string().optional(),country:e.string().optional(),state:e.string().optional(),city:e.string().optional()}),Ne={include:e.array(Be).optional(),exclude:e.array(Be).optional()},f={include:e.array(e.string()).optional(),exclude:e.array(e.string()).optional()};var va=["1-10","11-50","51-200","201-500","501-1000","1001-5000","5001-10000","10001+"],Oa=["pre_seed","seed","pre_series_a","series_a","pre_series_b","series_b","pre_series_c","series_c+","other"],re=e.object({query:e.string().optional(),organization:e.object({domain:e.array(e.string()).optional(),name:e.array(e.string()).optional()}).optional(),headquarters_location:e.object(Ne).optional(),industry:e.object(f).optional(),headcount:e.array(e.enum(va)).optional(),company_type:e.object(f).optional(),keywords:e.object({...f,match:e.enum(["all","any"]).optional()}).optional(),year_founded:e.object({...f,include:e.array(e.number().int()).optional(),exclude:e.array(e.number().int()).optional(),from:e.number().int().optional(),to:e.number().int().optional()}).optional(),technology:e.object({...f,match:e.enum(["all","any"]).optional()}).optional(),funding:e.object({series:e.array(e.enum(Oa)).optional(),amount:e.object({from:e.number().optional(),to:e.number().optional()}).optional(),date:e.object({from:e.string().optional(),to:e.string().optional()}).optional(),received:e.boolean().optional()}).optional(),job_openings:e.object({hiring:e.boolean().optional(),department:e.array(e.string()).optional(),job_title:e.object(f).optional(),posted_date:e.enum(["last7d","last30d","last90d"]).optional(),open_roles:e.object({from:e.number().int().optional(),to:e.number().int().optional()}).optional(),include_closed_roles:e.boolean().optional()}).optional(),similar_to:e.object({domain:e.string().optional(),organization:e.string().optional()}).optional(),limit:e.number().int().min(1).max(100).optional(),offset:e.number().int().min(0).max(1e4).optional()}),wa=e.object({domain:e.string().optional(),organization:e.string().optional(),emails_count:e.object({personal:e.number().optional(),generic:e.number().optional(),total:e.number().optional()}).passthrough().optional(),already_saved:e.boolean().optional(),city:e.string().nullable().optional(),state:e.string().nullable().optional(),country:e.string().nullable().optional(),company_type:e.string().nullable().optional(),headcount:e.string().nullable().optional(),industry:e.string().nullable().optional(),keywords:e.array(e.string()).optional(),description:e.string().nullable().optional(),year_founded:e.number().nullable().optional(),socials:e.object({facebook:e.string().nullable().optional(),instagram:e.string().nullable().optional(),twitter:e.string().nullable().optional(),youtube:e.string().nullable().optional()}).passthrough().optional(),technologies:e.array(e.string()).optional(),technology_details:e.array(e.object({category:e.string().optional(),category_label:e.string().optional(),name:e.string().optional(),slug:e.string().optional(),website:e.string().nullable().optional()}).passthrough()).optional()}).passthrough(),Qe={filters:e.unknown().optional(),permalink:e.string().optional()},Ra=re,_a=e.object({status:e.string().optional(),data:e.array(wa),meta:g.extend(Qe).optional()}).passthrough(),Fa=e.object({domain:e.string().optional(),organization:e.string().optional(),emails_count:e.object({personal:e.number().optional(),generic:e.number().optional(),total:e.number().optional()}).passthrough().optional()}).passthrough(),Ia=re,Ta=re,Ye=e.object({status:e.string().optional(),data:e.array(Fa),meta:g.extend({...Qe,total_emails:e.object({personal:e.number().optional(),generic:e.number().optional(),total:e.number().optional()}).passthrough().optional()}).optional()}).passthrough(),Ha=Ye,qa=Ye,Se=e.object({id:e.number().optional(),name:e.string().optional(),filters:e.record(e.string(),e.unknown()).optional(),created_at:e.string().optional(),updated_at:e.string().optional()}).passthrough(),Aa=e.object({}).passthrough(),Ua=c(e.array(Se)),Da=e.object({name:e.string(),filters:e.record(e.string(),e.unknown()).optional()}),Ga=c(Se),za=e.object({id:u}),ja=c(Se),Pa=e.object({id:u}),Ma=e.undefined(),Ba=re,Va=c(e.object({total:e.number().optional()}).passthrough()),Ze=e.object({company:e.string(),limit:e.number().int().min(1).optional(),perfect_match:e.boolean().optional()}),Ka=Ze,$a=e.object({domain:e.string().optional(),company_name:e.string().optional()}).passthrough(),Xe=c(e.array($a)),Wa=Xe,Na=Xe,Qa=e.object({query:e.string(),limit:e.number().int().min(1).optional()}),Ya=_,Je={domain:e.string().optional(),company:e.string().optional(),type:e.enum(["personal","generic"]).optional(),limit:e.number().int().min(1).max(100).optional(),offset:e.number().int().min(0).optional(),department:e.string().optional(),seniority:e.string().optional(),job_titles:e.string().optional(),decision_maker:e.boolean().optional(),required_field:e.string().optional(),verification_status:e.string().optional(),source_type:e.enum(["found","generated"]).optional(),saved_leads:e.boolean().optional(),aggregations:e.boolean().optional()},Za=e.object(Je),Xa=e.object({...Je,location:e.object(Ne).optional()}),Ja=e.object({domain:e.string().optional(),uri:e.string().optional(),extracted_on:e.string().nullable().optional(),last_seen_on:e.string().nullable().optional(),still_on_page:e.boolean().optional()}).passthrough(),ei=e.object({value:e.string().optional(),type:e.string().optional(),confidence:e.number().optional(),first_name:e.string().nullable().optional(),last_name:e.string().nullable().optional(),position:e.string().nullable().optional(),position_raw:e.string().nullable().optional(),seniority:e.string().nullable().optional(),department:e.string().nullable().optional(),decision_maker:e.boolean().optional(),linkedin:e.string().nullable().optional(),twitter:e.string().nullable().optional(),phone_number:e.string().nullable().optional(),source_type:e.string().optional(),verification:e.object({date:e.string().nullable().optional(),status:e.string().nullable().optional()}).passthrough().nullable().optional(),sources:e.array(Ja).optional()}).passthrough(),ti=e.object({domain:e.string().optional(),disposable:e.boolean().optional(),webmail:e.boolean().optional(),accept_all:e.boolean().optional(),pattern:e.string().nullable().optional(),organization:e.string().nullable().optional(),linked_domains:e.array(e.string()).optional(),emails:e.array(ei).optional()}).passthrough(),et=e.object({status:e.string().optional(),data:ti,meta:g.extend({results_approximate:e.boolean().optional(),aggregations:e.unknown().optional()}).optional()}).passthrough(),oi=et,si=et,ni=e.object({domain:e.string().optional(),company_name:e.string().optional(),company_type:e.string().optional(),industry:e.string().optional(),headcount:e.string().optional(),founded_year:e.string().optional(),location:e.string().optional(),technology:e.string().optional(),department:e.string().optional(),seniority:e.string().optional(),job_title:e.string().optional(),type:e.string().optional(),verification_status:e.string().optional(),provenance:e.string().optional(),min_confidence:e.number().int().optional(),required_field:e.string().optional(),decision_maker:e.boolean().optional(),exclude_already_saved:e.boolean().optional(),per_domain:e.boolean().optional(),search_after:e.string().optional(),limit:e.number().int().min(1).optional()}),ai=e.object({name:e.string().nullable().optional(),position:e.string().nullable().optional(),department:e.string().nullable().optional(),seniority:e.string().nullable().optional(),type:e.string().optional(),decision_maker:e.boolean().optional(),domain:e.string().optional(),company_name:e.string().nullable().optional(),full_name_exists:e.boolean().optional(),phone_number_exists:e.boolean().optional(),linkedin_exists:e.boolean().optional(),verification:e.object({date:e.string().nullable().optional(),status:e.string().nullable().optional()}).passthrough().optional(),reveal_handle:e.string().optional(),provenance:e.string().optional()}).passthrough(),ii=e.object({status:e.string().optional(),data:e.array(ai),meta:g.extend({next_search_after:e.string().nullable().optional(),per_domain:e.array(e.object({domain:e.string().optional(),emails:e.number().optional()}).passthrough()).optional()}).optional()}).passthrough(),pi=e.object({handles:e.array(e.string()).min(1).max(100)}),ri=_,Ee={domain:e.string().optional(),company:e.string().optional(),first_name:e.string().optional(),last_name:e.string().optional(),full_name:e.string().optional(),linkedin_handle:e.string().optional(),max_duration:e.number().int().min(3).max(20).optional()},ui=e.object(Ee),ci=e.object(Ee),li=e.object(Ee),di=e.object({domain:e.string().optional(),uri:e.string().optional(),extracted_on:e.string().nullable().optional(),last_seen_on:e.string().nullable().optional(),still_on_page:e.boolean().optional()}).passthrough(),mi=e.object({email:e.string().nullable().optional(),score:e.number().nullable().optional(),domain:e.string().optional(),company:e.string().nullable().optional(),first_name:e.string().nullable().optional(),last_name:e.string().nullable().optional(),position:e.string().nullable().optional(),linkedin_url:e.string().nullable().optional(),twitter:e.string().nullable().optional(),phone_number:e.string().nullable().optional(),accept_all:e.boolean().optional(),source_type:e.string().optional(),sources:e.array(di).optional(),verification:e.object({date:e.string().nullable().optional(),status:e.string().nullable().optional(),id:e.number().nullable().optional()}).passthrough().nullable().optional()}).passthrough(),xe=c(mi),yi=xe,hi=xe,gi=xe,bi=e.object({email:e.string(),domain_metadata:e.union([e.boolean(),e.string()]).optional()}),fi=e.object({domain:e.string().optional(),uri:e.string().optional(),extracted_on:e.string().nullable().optional(),last_seen_on:e.string().nullable().optional(),still_on_page:e.boolean().optional()}).passthrough(),Li=e.object({status:e.string().optional(),result:e.string().optional(),score:e.number().nullable().optional(),email:e.string().optional(),regexp:e.boolean().optional(),gibberish:e.boolean().optional(),disposable:e.boolean().optional(),webmail:e.boolean().optional(),mx_records:e.boolean().optional(),smtp_server:e.string().nullable().optional(),smtp_check:e.boolean().optional(),accept_all:e.boolean().optional(),block:e.boolean().optional(),verification:e.object({date:e.string().nullable().optional(),status:e.string().nullable().optional(),id:e.number().nullable().optional()}).passthrough().nullable().optional(),sources:e.array(fi).optional(),_deprecation_notice:e.string().optional()}).passthrough(),Si=e.object({status:e.string().optional(),data:Li.optional(),meta:g.extend({company_name:e.string().nullable().optional(),domain:e.string().nullable().optional(),following_domain:e.boolean().optional(),webmail:e.boolean().optional()}).optional()}).passthrough(),Ei=e.object({email:e.string()}),xi=c(e.object({email:e.string().optional(),gibberish:e.boolean().optional(),pattern:e.boolean().optional(),mx_records:e.boolean().optional(),disposable:e.boolean().optional(),webmail:e.boolean().optional(),webmail_allowed:e.boolean().nullable().optional()}).passthrough()),ki=e.object({domain:e.string().optional(),company:e.string().optional(),type:e.enum(["personal","generic"]).optional(),include_job_titles:e.union([e.boolean(),e.string()]).optional()}),Ci=c(e.object({total:e.number().optional(),personal_emails:e.number().optional(),generic_emails:e.number().optional(),department:e.record(e.string(),e.number()).optional(),seniority:e.record(e.string(),e.number()).optional(),job_titles:e.record(e.string(),e.number()).optional()}).passthrough()),ae=e.object({id:e.string().nullable().optional(),name:e.object({fullName:e.string().nullable().optional(),givenName:e.string().nullable().optional(),familyName:e.string().nullable().optional()}).passthrough().nullable().optional(),email:e.string().nullable().optional(),location:e.string().nullable().optional(),timeZone:e.string().nullable().optional(),utcOffset:e.number().nullable().optional(),geo:e.object({city:e.string().nullable().optional(),country:e.string().nullable().optional(),countryCode:e.string().nullable().optional(),lat:e.number().nullable().optional(),lng:e.number().nullable().optional(),state:e.string().nullable().optional(),stateCode:e.string().nullable().optional()}).passthrough().nullable().optional(),bio:e.string().nullable().optional(),site:e.string().nullable().optional(),avatar:e.string().nullable().optional(),employment:e.object({domain:e.string().nullable().optional(),name:e.string().nullable().optional(),role:e.string().nullable().optional(),seniority:e.string().nullable().optional(),subRole:e.string().nullable().optional(),title:e.string().nullable().optional()}).passthrough().nullable().optional(),facebook:e.object({handle:e.string().nullable().optional()}).passthrough().nullable().optional(),linkedin:e.object({handle:e.string().nullable().optional()}).passthrough().nullable().optional(),googleplus:e.object({handle:e.string().nullable().optional()}).passthrough().nullable().optional(),twitter:e.object({handle:e.string().nullable().optional(),avatar:e.string().nullable().optional(),bio:e.string().nullable().optional(),followers:e.number().nullable().optional(),following:e.number().nullable().optional(),location:e.string().nullable().optional(),site:e.string().nullable().optional(),statuses:e.number().nullable().optional(),favorites:e.number().nullable().optional(),id:e.number().nullable().optional()}).passthrough().nullable().optional(),github:e.object({handle:e.string().nullable().optional(),avatar:e.string().nullable().optional(),blog:e.string().nullable().optional(),company:e.string().nullable().optional(),followers:e.number().nullable().optional(),following:e.number().nullable().optional(),id:e.number().nullable().optional()}).passthrough().nullable().optional(),gravatar:e.object({handle:e.string().nullable().optional(),avatar:e.string().nullable().optional(),avatars:e.array(e.unknown()).optional(),urls:e.array(e.unknown()).optional()}).passthrough().nullable().optional(),fuzzy:e.boolean().optional(),emailProvider:e.boolean().optional(),phone:e.string().nullable().optional(),indexedAt:e.string().nullable().optional(),activeAt:e.string().nullable().optional(),inactiveAt:e.string().nullable().optional()}).passthrough(),ie=e.object({id:e.string().nullable().optional(),name:e.string().nullable().optional(),legalName:e.string().nullable().optional(),domain:e.string().nullable().optional(),domainAliases:e.array(e.string()).optional(),site:e.object({emailAddresses:e.array(e.string()).optional(),phoneNumbers:e.array(e.string()).optional()}).passthrough().nullable().optional(),category:e.object({sector:e.string().nullable().optional(),industryGroup:e.string().nullable().optional(),industry:e.string().nullable().optional(),subIndustry:e.string().nullable().optional(),sicCode:e.string().nullable().optional(),sic4Codes:e.array(e.string()).optional(),naicsCode:e.string().nullable().optional(),naics6Codes:e.array(e.string()).optional(),naics6Codes2022:e.array(e.string()).optional(),gicsCode:e.string().nullable().optional()}).passthrough().nullable().optional(),tags:e.array(e.string()).optional(),description:e.string().nullable().optional(),foundedYear:e.number().nullable().optional(),location:e.string().nullable().optional(),timeZone:e.string().nullable().optional(),utcOffset:e.number().nullable().optional(),geo:e.record(e.string(),e.unknown()).nullable().optional(),logo:e.string().nullable().optional(),facebook:e.object({handle:e.string().nullable().optional(),likes:e.number().nullable().optional()}).passthrough().nullable().optional(),linkedin:e.object({handle:e.string().nullable().optional()}).passthrough().nullable().optional(),twitter:e.object({handle:e.string().nullable().optional()}).passthrough().nullable().optional(),crunchbase:e.object({handle:e.string().nullable().optional()}).passthrough().nullable().optional(),youtube:e.object({handle:e.string().nullable().optional()}).passthrough().nullable().optional(),instagram:e.object({handle:e.string().nullable().optional()}).passthrough().nullable().optional(),emailProvider:e.boolean().optional(),type:e.string().nullable().optional(),companyType:e.string().nullable().optional(),ticker:e.string().nullable().optional(),identifiers:e.object({usEIN:e.string().nullable().optional()}).passthrough().nullable().optional(),phone:e.string().nullable().optional(),metrics:e.object({employees:e.number().nullable().optional(),employeesCount:e.number().nullable().optional(),alexaGlobalRank:e.number().nullable().optional(),alexaUsRank:e.number().nullable().optional(),annualRevenue:e.number().nullable().optional(),estimatedAnnualRevenue:e.string().nullable().optional(),marketCap:e.string().nullable().optional(),raised:e.number().nullable().optional(),fiscalYearEnd:e.number().nullable().optional(),trafficRank:e.string().nullable().optional()}).passthrough().nullable().optional(),indexedAt:e.string().nullable().optional(),tech:e.array(e.string()).optional(),techCategories:e.array(e.string()).optional(),fundingRounds:e.array(e.object({amount:e.number().nullable().optional(),date:e.string().nullable().optional(),investors:e.array(e.string()).optional(),type:e.string().nullable().optional()}).passthrough()).optional(),parent:e.object({domain:e.string().nullable().optional()}).passthrough().nullable().optional(),ultimateParent:e.object({domain:e.string().nullable().optional()}).passthrough().nullable().optional(),alreadySaved:e.boolean().optional(),emailsCount:e.number().optional()}).passthrough(),ke={clearbit_format:e.union([e.boolean(),e.string()]).optional()},vi=e.object({email:e.string().optional(),linkedin_handle:e.string().optional(),...ke}),Oi=e.object({domain:e.string(),...ke}),wi=e.object({email:e.string().optional(),linkedin_handle:e.string().optional(),...ke}),Ri=e.union([e.object({status:e.string().optional(),data:ae,meta:g.optional()}).passthrough(),ae]),_i=e.union([e.object({status:e.string().optional(),data:ie,meta:g.optional()}).passthrough(),ie]),Fi=e.union([e.object({status:e.string().optional(),data:e.object({person:ae.optional(),company:ie.optional()}).passthrough(),meta:g.optional()}).passthrough(),e.object({person:ae.optional(),company:ie.optional()}).passthrough()]),Ii=e.object({date:e.string().nullable().optional(),status:e.string().nullable().optional()}).passthrough(),Ve=e.object({id:e.number().optional(),name:e.string().optional(),leads_count:e.number().optional()}).passthrough(),H=e.object({id:e.number().optional(),email:e.string().nullable().optional(),first_name:e.string().nullable().optional(),last_name:e.string().nullable().optional(),position:e.string().nullable().optional(),company:e.string().nullable().optional(),company_industry:e.string().nullable().optional(),company_size:e.string().nullable().optional(),confidence_score:e.number().nullable().optional(),website:e.string().nullable().optional(),country_code:e.string().nullable().optional(),source:e.string().nullable().optional(),department:e.string().nullable().optional(),linkedin_url:e.string().nullable().optional(),phone_number:e.string().nullable().optional(),twitter:e.string().nullable().optional(),sync_status:e.string().nullable().optional(),notes:e.string().nullable().optional(),sending_status:e.string().nullable().optional(),last_activity_at:e.string().nullable().optional(),last_contacted_at:e.string().nullable().optional(),verification:Ii.nullable().optional(),leads_list:Ve.nullable().optional(),leads_lists:e.array(Ve).optional(),custom_attributes:e.record(e.string(),e.unknown()).optional(),created_at:e.string().nullable().optional(),created_by:e.number().nullable().optional()}).passthrough(),Ce={email:e.string().optional(),first_name:e.string().optional(),last_name:e.string().optional(),position:e.string().optional(),company:e.string().optional(),company_industry:e.string().optional(),company_size:e.string().optional(),confidence_score:e.number().int().min(0).max(100).optional(),website:e.string().optional(),country_code:e.string().optional(),department:e.string().optional(),linkedin_url:e.string().optional(),phone_number:e.string().optional(),twitter:e.string().optional(),notes:e.string().optional(),source:e.string().optional(),leads_list_id:u.optional(),leads_list_ids:e.array(u).optional(),leads_list_name:e.string().max(255).optional(),custom_attributes:e.record(e.string(),e.string()).optional()},tt={company_type:e.string().optional(),lead_country_code:e.string().optional(),lead_city:e.string().optional(),lead_state:e.string().optional()},Ti=e.object({...Ce,...tt}),ot=e.object(Ce),st=e.object({id:u,...Ce,...tt}),Hi=st,qi={from:e.string().optional(),to:e.string().optional()},M=e.union([e.literal("*"),e.literal("~"),e.enum(["last1h","today","this_week","last7d","last30d","current_year"]),e.object(qi)]),Ai=e.object({leads_list_id:u.optional(),email:e.string().optional(),first_name:e.string().optional(),last_name:e.string().optional(),position:e.union([e.string(),e.array(e.string())]).optional(),company:e.string().optional(),industry:e.string().optional(),website:e.string().optional(),country_code:e.string().optional(),company_size:e.string().optional(),source:e.string().optional(),twitter:e.string().optional(),linkedin_url:e.string().optional(),phone_number:e.string().optional(),sync_status:e.enum(["pending","error","success"]).optional(),sending_status:e.array(e.enum(["clicked","opened","sent","pending","error","bounced","unsubscribed","replied","~"])).optional(),verification_status:e.array(e.enum(["accept_all","disposable","invalid","unknown","valid","webmail","pending"])).optional(),last_activity_at:M.optional(),last_contacted_at:M.optional(),last_exported_at:M.optional(),created_at:M.optional(),updated_at:M.optional(),verification_date:M.optional(),department:e.array(e.enum(["executive","it","finance","management","sales","legal","support","hr","marketing","communication","education","design","health","operations"])).optional(),tags:e.array(e.number().int()).optional(),sequence_ids:e.union([e.array(e.number().int()),e.literal("*"),e.literal("~")]).optional(),campaign_ids:e.union([e.array(e.number().int()),e.literal("*"),e.literal("~")]).optional(),user_id:e.array(e.number().int()).optional(),confidence_score:e.union([e.literal("*"),e.literal("~"),e.object({from:e.number().int().min(0).max(100).optional(),to:e.number().int().min(0).max(100).optional()})]).optional(),custom_attributes:e.record(e.string(),e.string()).optional(),query:e.string().optional(),location:e.object({country:e.object(f).optional(),state:e.object(f).optional(),city:e.object(f).optional(),continent:e.object(f).optional(),business_region:e.object(f).optional()}).optional(),limit:e.number().int().min(1).max(1e3).optional(),offset:e.number().int().min(0).max(1e5).optional()}),Ui=c(e.object({leads:e.array(H)}).passthrough()),Di=c(H),Gi=c(H),zi=e.object({id:u}),ji=c(H),Pi=e.undefined(),Mi=e.undefined(),Bi=e.object({id:u}),Vi=e.undefined(),Ki=e.object({id:u}),$i=c(H),Wi=e.object({email:e.string()}),Ni=c(e.object({id:e.number().nullable(),leads_list_id:e.number().nullable(),leads_list_name:e.string().nullable()}).passthrough()),Qi=e.object({emails:e.array(e.string()).min(1).max(100)}),Yi=c(e.array(e.object({email:e.string(),id:e.number().nullable()}).passthrough())),Zi=e.object({leads_list_id:u.optional(),leads_list_name:e.string().max(255).optional(),leads:e.array(ot).min(1).max(100)}),Xi=e.object({index:e.number().optional(),email:e.string().nullable().optional(),status:e.string().optional(),lead:H.nullable().optional(),errors:e.array(e.unknown()).optional()}).passthrough(),Ji=e.object({status:e.string().optional(),data:e.array(Xi),meta:g.extend({created:e.number().optional(),updated:e.number().optional(),failed:e.number().optional()}).optional()}).passthrough(),ep=e.object({leads_list_id:u,target_leads_list_id:u,lead_ids:e.array(e.number().int()).optional()}),tp=c(e.object({source_leads_list_id:e.number().optional(),target_leads_list_id:e.number().optional(),leads_count:e.number().optional(),status:e.string().optional()}).passthrough()),op=e.object({lead_ids:e.array(e.number().int()).optional(),leads_list_id:u.optional()}),sp=_,np=e.object({csv_data:e.string(),leads_list_id:u.optional(),file_name:e.string().optional()}),ap=_,h=e.object({id:e.number().optional(),name:e.string().optional(),color:e.string().nullable().optional(),created_at:e.string().optional()}).passthrough(),ip=e.object({limit:e.number().int().min(1).max(100).optional(),offset:e.number().int().min(0).optional()}),pp=c(e.object({tags:e.array(h)}).passthrough()),rp=e.object({id:u}),up=c(h),cp=e.object({name:e.string(),color:e.string().optional()}),lp=c(h),nt=e.object({id:u,name:e.string().optional(),color:e.string().optional()}),dp=c(h),mp=nt,yp=c(h),hp=e.object({id:u}),gp=e.undefined(),bp=e.object({id:u,tag_id:u}),fp=c(e.object({tags:e.array(h)}).passthrough()),Lp=e.object({id:u,tag_id:u}),Sp=e.undefined(),ve=e.object({id:e.number().optional(),label:e.string().optional(),slug:e.string().optional()}).passthrough(),Ep=e.object({}).passthrough(),xp=c(e.object({leads_custom_attributes:e.array(ve)})),kp=e.object({id:u}),Cp=c(ve),vp=e.object({label:e.string()}),Op=c(ve),at=e.object({id:u,label:e.string()}),wp=e.undefined(),Rp=at,_p=e.undefined(),Fp=e.object({id:u}),Ip=e.undefined(),Oe=e.object({id:e.number().optional(),name:e.string().optional(),leads_count:e.number().optional(),type:e.string().optional(),created_at:e.string().optional(),leads_list_folder_id:e.number().nullable().optional()}).passthrough(),Tp=e.object({limit:e.number().int().min(1).max(100).optional(),offset:e.number().int().min(0).optional()}),Hp=c(e.object({leads_lists:e.array(Oe)}).passthrough()),qp=e.object({id:u,limit:e.number().int().min(1).max(100).optional(),offset:e.number().int().min(0).optional()}),Ap=c(Oe.extend({leads:e.array(H.passthrough()).optional()})),Up=e.object({name:e.string().max(255),leads_list_folder_id:u.nullable().optional()}),Dp=c(Oe),it=e.object({id:u,name:e.string().max(255),leads_list_folder_id:u.nullable().optional()}),Gp=e.undefined(),zp=it,jp=e.undefined(),Pp=e.object({id:u}),Mp=e.union([_,e.undefined()]),ue=e.object({id:e.number().optional(),favorited:e.boolean().optional()}).passthrough(),Bp=e.object({id:u}),Vp=c(ue),Kp=e.object({id:u}),$p=c(ue),Wp=e.object({id:u}),Np=e.undefined(),pt=["374151","3489F9","10B981","F5BA0B","EF4444","7C3AED","F97316","E5E7EB","B4D9F7","BAE6B0","FDE68A","FBD0D0","D4C4F8","FFD79B"],we=e.object({id:e.number().optional(),name:e.string().optional(),color:e.string().optional(),leads_lists_count:e.number().optional(),created_at:e.string().optional()}).passthrough(),Qp=e.object({limit:e.number().int().min(1).max(100).optional(),offset:e.number().int().min(0).optional()}),Yp=c(e.object({folders:e.array(we)}).passthrough()),Zp=e.object({id:u}),Xp=c(we),Jp=e.object({name:e.string(),color:e.enum(pt)}),er=c(we),rt=e.object({id:u,name:e.string().optional(),color:e.enum(pt).optional()}),tr=e.undefined(),or=rt,sr=e.undefined(),nr=e.object({id:u}),ar=e.undefined(),Z=e.object({id:e.number().optional(),domain:e.string().nullable().optional(),leads_count:e.number().optional(),created_at:e.string().optional()}).passthrough(),ir=e.object({limit:e.number().int().min(1).max(100).optional(),offset:e.number().int().min(0).max(9999).optional(),sort:e.enum(["company_name","website","company_size","company_type","leads_count","created_at","updated_at","last_exported_at","last_funding_date"]).optional(),direction:e.enum(["asc","desc"]).optional(),query:e.string().optional(),company_name:e.string().optional(),website:e.string().optional(),company_size:e.string().optional(),company_type:e.string().optional(),industry:e.string().optional(),technology:e.string().optional(),keywords:e.string().optional(),source:e.string().optional(),tags:e.string().optional(),company_list_ids:e.string().optional(),leads_count:e.string().optional(),location:e.string().optional(),country:e.string().optional(),founded_year:e.string().optional(),funding_series:e.string().optional(),funding_amount:e.string().optional(),last_funding_date:e.string().optional(),location_country_included:e.string().optional(),location_country_excluded:e.string().optional(),location_state_included:e.string().optional(),location_state_excluded:e.string().optional(),location_city_included:e.string().optional(),location_city_excluded:e.string().optional(),location_continent_included:e.string().optional(),location_continent_excluded:e.string().optional(),location_business_region_included:e.string().optional(),location_business_region_excluded:e.string().optional()}),pr=c(e.object({companies:e.array(Z)}).passthrough()),rr=e.object({id:u}),ur=c(Z),cr=e.object({domain:e.string()}),lr=c(Z),dr=e.object({id:u}),mr=e.undefined(),yr=e.object({id:u,tag_id:u.optional(),tag_name:e.string().optional()}).refine(t=>t.tag_id!==void 0||t.tag_name!==void 0,{message:"Provide tag_id or tag_name"}),hr=c(h),gr=e.object({id:u,tag_id:u}),br=e.undefined(),fr=e.object({company_list_id:u,target_company_list_id:u,company_ids:e.array(e.number().int()).optional()}),Lr=c(e.object({source_company_list_id:e.number().optional(),target_company_list_id:e.number().optional(),companies_count:e.number().optional(),status:e.string().optional()}).passthrough()),Sr=e.object({target_company_list_id:u,company_ids:e.array(e.number().int()).optional(),company_list_id:u.optional()}).refine(t=>t.company_ids!==void 0||t.company_list_id!==void 0,{message:"Provide company_ids or company_list_id"}),Er=c(e.object({target_company_list_id:e.number().optional(),companies_count:e.number().optional(),status:e.string().optional()}).passthrough()),xr=e.object({company_ids:e.array(e.number().int()).optional(),company_list_id:u.optional()}).refine(t=>t.company_ids!==void 0||t.company_list_id!==void 0,{message:"Provide company_ids or company_list_id"}),kr=c(e.object({requested_count:e.number().optional(),deleted_count:e.number().optional(),status:e.string().optional()}).passthrough()),Cr=e.object({company_ids:e.array(e.number().int()).optional(),company_list_id:u.optional(),tag_id:u.optional(),tag_name:e.string().optional()}).refine(t=>(t.company_ids!==void 0||t.company_list_id!==void 0)&&(t.tag_id!==void 0||t.tag_name!==void 0),{message:"Provide a company selection and tag_id or tag_name"}),vr=c(e.object({tag:h.optional(),companies_count:e.number().optional(),status:e.string().optional()}).passthrough()),Re=e.object({id:e.number().optional(),name:e.string().optional(),type:e.string().optional(),companies_count:e.number().optional(),company_list_folder_id:e.number().nullable().optional(),created_at:e.string().optional(),filters:e.unknown().optional()}).passthrough(),Or=e.object({limit:e.number().int().min(1).max(1e3).optional(),offset:e.number().int().min(0).optional()}),wr=c(e.object({company_lists:e.array(Re)}).passthrough()),Rr=e.object({id:u,limit:e.number().int().min(1).max(1e3).optional(),offset:e.number().int().min(0).optional()}),_r=c(Re.extend({companies:e.array(Z.passthrough()).optional()})),Fr=e.object({name:e.string(),type:e.enum(["static","dynamic"]).optional(),filters:e.unknown().optional(),company_list_folder_id:u.nullable().optional()}).refine(t=>t.type!=="dynamic"||t.filters!==void 0,{message:"filters is required when type is dynamic"}),Ir=c(Re),ut=e.object({id:u,name:e.string().optional(),type:e.enum(["static","dynamic"]).optional(),filters:e.unknown().optional(),company_list_folder_id:u.nullable().optional()}),Tr=e.undefined(),Hr=ut,qr=e.undefined(),Ar=e.object({id:u}),Ur=e.union([_,e.undefined()]),Dr=e.object({company_list_id:u,company_id:u}),Gr=c(Z),zr=e.object({company_list_id:u,company_id:u}),jr=e.undefined(),Pr=e.object({id:u}),Mr=c(ue),Br=e.object({id:u}),Vr=c(ue),_e=e.object({id:e.number().optional(),name:e.string().optional(),color:e.string().nullable().optional(),company_lists_count:e.number().optional(),created_at:e.string().optional()}).passthrough(),Kr=e.object({limit:e.number().int().min(1).max(100).optional(),offset:e.number().int().min(0).optional()}),$r=c(e.object({folders:e.array(_e)}).passthrough()),Wr=e.object({id:u}),Nr=c(_e),Qr=e.object({name:e.string(),color:e.string().optional()}),Yr=c(_e),ct=e.object({id:u,name:e.string().optional(),color:e.string().optional()}),Zr=e.undefined(),Xr=ct,Jr=e.undefined(),eu=e.object({id:u}),tu=e.undefined(),ou=e.object({limit:e.number().int().min(1).max(100).optional(),offset:e.number().int().min(0).optional()}),su=c(e.object({tags:e.array(h)}).passthrough()),nu=e.object({id:u}),au=c(h),iu=e.object({name:e.string(),color:e.string().optional()}),pu=c(h),lt=e.object({id:u,name:e.string().optional(),color:e.string().optional()}),ru=c(h),uu=lt,cu=c(h),lu=e.object({id:u}),du=e.undefined(),mu=e.object({company_list_id:u.optional(),domain:e.string().optional(),country:e.string().optional(),size:e.array(e.string()).optional(),industry:e.array(e.string()).optional(),limit:e.number().int().min(1).optional()}).refine(t=>t.company_list_id!==void 0||t.domain!==void 0,{message:"Provide company_list_id or domain"}),yu=e.object({company_name:e.string().nullable().optional(),domain:e.string().optional(),industry:e.string().nullable().optional(),size:e.string().nullable().optional(),country:e.string().nullable().optional(),similarity_score:e.number().optional()}).passthrough(),hu=e.object({status:e.string().optional(),data:e.array(yu),meta:g.optional()}).passthrough(),gu=["draft","planned","active","paused","completed","archived","preparing","error"],dt=e.object({id:e.number().optional(),email:e.string().optional()}).passthrough(),X=e.object({id:e.number().optional(),name:e.string().optional(),status:e.enum(gu).optional(),recipients_count:e.number().optional(),editable:e.boolean().optional(),started:e.boolean().optional(),paused:e.boolean().optional(),archived:e.boolean().optional(),schedule:e.object({start_at:e.string().nullable().optional(),time_start:e.string().optional(),time_end:e.string().optional(),days:e.array(e.number().int()).optional()}).passthrough().optional(),settings:e.object({tracked:e.boolean().optional(),tracked_links:e.boolean().optional(),add_unsubscribe_link:e.boolean().optional(),ai_assistant_enabled:e.boolean().optional(),bcc_recipient:e.string().nullable().optional()}).passthrough().optional(),ab_testing:e.object({enabled:e.boolean().optional(),variant_a_percentage:e.number().nullable().optional(),variant_b_percentage:e.number().nullable().optional(),winner_variant:e.string().nullable().optional(),winner_selected_at:e.string().nullable().optional()}).passthrough().optional(),email_account_ids:e.array(e.number().int()).optional(),follow_ups:e.object({unique_steps_count:e.number().optional(),steps:e.array(e.number().int()).optional()}).passthrough().optional(),owner:dt.nullable().optional(),created_at:e.string().optional(),updated_at:e.string().optional()}).passthrough(),mt={name:e.string().optional(),email_account_ids:e.array(e.number().int()).optional(),schedule_time_start:e.string().optional(),schedule_time_end:e.string().optional(),schedule_days:e.array(e.number().int().min(0).max(6)).optional(),add_unsubscribe_link:e.boolean().optional(),tracked:e.boolean().optional(),tracked_links:e.boolean().optional(),ai_assistant_enabled:e.boolean().optional(),bcc_recipient:e.string().nullable().optional(),start_at:e.string().nullable().optional()},bu=e.object({started:e.boolean().optional(),archived:e.boolean().optional(),...O}),fu=c(e.object({sequences:e.array(X)}).passthrough()),Lu=e.object({...mt,name:e.string()}),Su=c(X),Eu=e.object({id:u}),xu=c(X),yt=e.object({...mt,id:u}),ku=c(X),Cu=yt,vu=c(X),Ou=e.object({id:u}),wu=e.undefined(),ce=c(e.object({message:e.string().optional(),recipients_count:e.number().optional()}).passthrough()),Ru=e.object({id:u}),_u=ce,Fu=e.object({id:u}),Iu=ce,Tu=e.object({id:u}),Hu=ce,qu=e.object({id:u}),Au=ce,Uu=e.object({id:u,email:e.string()}),Du=_,Gu=e.object({email:e.string().nullable().optional(),first_name:e.string().nullable().optional(),last_name:e.string().nullable().optional(),position:e.string().nullable().optional(),company:e.string().nullable().optional(),website:e.string().nullable().optional(),sending_status:e.string().optional(),sending_status_comment:e.string().nullable().optional(),lead_id:e.number().nullable().optional()}).passthrough(),zu=e.object({id:u,...O}),ju=c(e.object({recipients:e.array(Gu)}).passthrough()),ht=e.object({email:e.string().optional(),reason:e.string().optional()}).passthrough(),Pu=e.object({id:u,emails:e.union([e.string(),e.array(e.string()).max(50)]).optional(),lead_ids:e.array(e.number().int()).max(50).optional()}).refine(t=>t.emails!==void 0||t.lead_ids!==void 0,{message:"Provide emails or lead_ids"}),Mu=c(e.object({recipients_added:e.number().optional(),skipped_recipients:e.array(ht).nullable().optional()}).passthrough()),Bu=e.object({id:u,emails:e.union([e.string(),e.array(e.string()).max(50)])}),Vu=c(e.object({recipients_removed:e.array(e.string()).optional(),recipients_canceled:e.array(e.string()).optional(),messages_canceled:e.number().optional(),skipped_recipients:e.array(ht).nullable().optional()}).passthrough()),J=e.object({id:e.number().optional(),campaign_id:e.number().optional(),step:e.number().int().optional(),wait_days:e.number().int().optional(),message_format:e.string().nullable().optional(),messages_sent:e.number().optional(),subject:e.string().nullable().optional(),body:e.string().nullable().optional(),variant:e.string().nullable().optional()}).passthrough(),Ku=e.object({sequence_id:u,...O}),$u=c(e.object({follow_ups:e.array(J)}).passthrough()),Wu=e.object({sequence_id:u,subject:e.string().optional(),body:e.string().optional(),wait_days:e.number().int().optional(),step:e.number().int().optional(),variant:e.literal("B").optional(),message_format:e.enum(["text","html"]).optional(),message_template_id:u.optional()}).refine(t=>t.variant==="B"||t.message_template_id!==void 0||t.subject!==void 0&&t.body!==void 0,{message:"subject and body are required unless message_template_id is provided"}),Nu=c(e.object({follow_up:J})),Qu=e.object({sequence_id:u,id:u}),Yu=c(J),gt=e.object({sequence_id:u,id:u,subject:e.string().optional(),body:e.string().optional(),wait_days:e.number().int().optional(),message_format:e.enum(["text","html"]).optional()}),Zu=c(J),Xu=gt,Ju=c(J),ec=e.object({sequence_id:u,id:u}),tc=e.undefined(),oc=e.object({id:u}),sc=c(e.object({id:e.number().optional(),name:e.string().optional(),recipients_count:e.number().optional(),sent:e.number().optional(),delivered:e.number().optional(),opened:e.number().optional(),clicked:e.number().optional(),replied:e.number().optional(),bounced:e.number().optional(),unsubscribed_recipients:e.number().optional(),open_rate:e.number().nullable().optional(),click_rate:e.number().nullable().optional(),reply_rate:e.number().nullable().optional(),bounce_rate:e.number().nullable().optional(),unsubscribed_recipients_rate:e.number().nullable().optional(),follow_ups:e.array(e.object({id:e.number().optional(),step:e.number().optional(),variant:e.string().nullable().optional(),messages_sent:e.number().optional(),delivered:e.number().optional(),opened:e.number().optional(),clicked:e.number().optional(),replied:e.number().optional(),bounced:e.number().optional(),unsubscribed:e.number().optional(),open_rate:e.number().nullable().optional(),click_rate:e.number().nullable().optional(),reply_rate:e.number().nullable().optional(),bounce_rate:e.number().nullable().optional(),unsubscribe_rate:e.number().nullable().optional()}).passthrough()).optional()}).passthrough()),nc=e.object({id:e.number().optional(),email:e.string().nullable().optional(),first_name:e.string().nullable().optional(),last_name:e.string().nullable().optional()}).passthrough(),ac=e.object({id:e.number().optional(),name:e.string().optional(),recipients_count:e.number().optional(),started:e.boolean().optional(),archived:e.boolean().optional(),paused:e.boolean().optional(),last_email_sent_at:e.string().nullable().optional()}).passthrough(),bt=e.object({id:e.number().optional(),status:e.string().optional(),message_id:e.string().nullable().optional(),thread_id:e.string().nullable().optional(),to:e.string().nullable().optional(),subject:e.string().nullable().optional(),body:e.string().nullable().optional(),manually_edited:e.boolean().optional(),opens:e.number().optional(),clicks:e.number().optional(),bounced:e.boolean().optional(),replied:e.boolean().optional(),last_activity_at:e.string().nullable().optional(),sent_at:e.string().nullable().optional(),lead:nc.nullable().optional(),campaign:ac.nullable().optional(),owner:dt.nullable().optional()}).passthrough(),ic=e.object({status:e.union([e.string(),e.array(e.string())]).optional(),direction:e.enum(["outgoing","incoming"]).optional(),read:e.boolean().optional(),replied:e.boolean().optional(),bounced:e.boolean().optional(),unsubscribed:e.boolean().optional(),out_of_office:e.boolean().optional(),lead_id:u.optional(),sequence_id:u.optional(),campaign_id:u.optional(),email_account_id:u.optional(),sent_after:e.string().optional(),sent_before:e.string().optional(),received_after:e.string().optional(),received_before:e.string().optional(),q:e.string().optional(),...O}),pc=c(e.object({messages:e.array(bt)}).passthrough()),rc=e.object({email_account_id:u,lead_id:u.optional(),to:e.string().optional(),subject:e.string().max(250),body:e.string().max(5e4),message_format:e.enum(["text","html"]).optional()}).refine(t=>t.lead_id!==void 0||t.to!==void 0,{message:"Provide lead_id or to"}),uc=c(bt),ee=e.object({id:e.number().optional(),name:e.string().optional(),subject:e.string().nullable().optional(),body:e.string().nullable().optional(),message_format:e.string().nullable().optional(),created_at:e.string().optional(),updated_at:e.string().optional()}).passthrough(),cc=e.object({limit:e.number().int().min(1).max(100).optional(),offset:e.number().int().min(0).optional()}),lc=c(e.object({message_templates:e.array(ee)})),dc=e.object({id:u}),mc=c(ee),yc=e.object({name:e.string(),subject:e.string().max(255).optional(),body:e.string(),message_format:e.enum(["text","html"]).optional()}),hc=c(ee),ft=e.object({id:u,name:e.string().optional(),subject:e.string().max(255).optional(),body:e.string().optional(),message_format:e.enum(["text","html"]).optional()}),gc=c(ee),bc=ft,fc=c(ee),Lc=e.object({id:u}),Sc=e.undefined(),le=e.object({id:e.number().optional(),email:e.string().nullable().optional(),first_name:e.string().nullable().optional(),last_name:e.string().nullable().optional(),sending_status:e.string().optional(),daily_limit:e.number().optional(),provider:e.string().optional(),sender_name:e.string().nullable().optional(),default_account:e.boolean().optional(),signature:e.string().nullable().optional(),profile_picture_url:e.string().nullable().optional(),custom_tracking_domain:e.string().nullable().optional(),sending_schedule:e.object({days:e.array(e.number().int()).optional(),start_time:e.string().optional(),end_time:e.string().optional(),time_zone:e.string().optional()}).passthrough().optional(),warmup:e.object({enabled:e.boolean().optional(),status:e.string().nullable().optional(),end_date:e.string().nullable().optional()}).passthrough().optional()}).passthrough(),Ec=e.object({...O}),xc=c(e.array(le)),kc=e.object({id:u}),Cc=c(le),Lt=e.object({id:u,daily_limit:e.number().int().min(1).optional(),sender_name:e.string().optional(),signature:e.string().optional(),first_name:e.string().optional(),last_name:e.string().optional(),default_account:e.boolean().optional()}),vc=c(le),Oc=Lt,wc=c(le),Rc=e.object({}).passthrough(),_c=e.object({id:e.number().optional(),email:e.string().nullable().optional(),sent:e.number().optional(),daily_limit:e.number().optional(),scheduled:e.number().optional()}).passthrough(),Fc=c(e.array(_c)),Ic=e.object({id:u}),Tc=c(e.object({score:e.number().nullable().optional(),status:e.string().nullable().optional(),domain:e.string().nullable().optional(),domain_score:e.number().nullable().optional(),checked_at:e.string().nullable().optional(),issues:e.object({disconnected:e.boolean().optional(),no_recent_sending_activity:e.boolean().optional(),no_inbox_protection:e.boolean().optional()}).passthrough().optional()}).passthrough()),Hc=e.object({id:u}),qc=c(e.object({sent_today:e.number().optional(),sent_last_7_days:e.array(e.object({date:e.string().optional(),count:e.number().optional(),capacity:e.number().optional()}).passthrough()).optional(),daily_limit:e.number().optional(),scheduled:e.number().optional(),available:e.number().optional()}).passthrough()),Ac=e.object({id:u}),Uc=c(e.object({state:e.string().optional(),progress:e.object({percent:e.number().optional(),end_date:e.string().optional(),current_limit:e.number().optional(),target_limit:e.number().optional()}).passthrough().optional(),metrics:e.object({emails_sent:e.number().optional(),interactions:e.number().optional(),in_spam:e.number().optional()}).passthrough().nullable().optional(),chart_data:e.array(e.object({date:e.string().optional(),sent:e.number().optional(),scheduled:e.number().optional()}).passthrough()).optional(),billing_cycle:e.string().nullable().optional()}).passthrough()),Dc=e.object({email_account_id:u,include_archived:e.boolean().optional(),...O}),Gc=e.object({id:e.number().optional(),name:e.string().optional(),status:e.string().optional(),recipients_allocated:e.number().optional(),emails_scheduled:e.number().optional()}).passthrough(),zc=c(e.array(Gc)),St=["lead.created","message.sent","message.read","message.clicked","message.replied","export.completed","import.completed","sequence.paused","sequence.resumed"],te=e.object({id:e.number().optional(),target_url:e.string().optional(),event:e.string().optional()}).passthrough(),jc=e.object({limit:e.number().int().min(1).max(100).optional(),offset:e.number().int().min(0).optional()}),Pc=c(e.array(te)),Mc=e.object({target_url:e.string().url().max(500),event:e.enum(St),filter_on:u.optional()}),Bc=c(te),Vc=e.object({id:u}),Kc=c(te),Et=e.object({id:u,target_url:e.string().url().max(500).optional(),event:e.enum(St).optional(),filter_on:u.optional()}),$c=c(te),Wc=Et,Nc=c(te),Qc=e.object({id:u}),Yc=e.undefined(),Zc=e.object({id:u}),Xc=e.undefined(),n={accountGet:Wn,accountUpdate:Qn,accountStatsGet:Zn,usageGet:Jn,usageHistory:ta,teamMembersList:na,apiKeysList:pa,apiKeysCreate:ua,apiKeysUpdate:$e,apiKeysReplace:da,apiKeysDelete:ya,connectedAppsList:La,connectedAppsGet:Ea,connectedAppsPush:ka,feedbackCreate:ga,discoverCompanies:Ra,discoverPeople:Ia,discoverPeoplePost:Ta,discoverViewsList:Aa,discoverViewsCreate:Da,discoverViewsGet:za,discoverViewsDelete:Pa,domainCountGet:Ba,domainFinderFind:Ze,domainFinderFindPost:Ka,domainsSuggestionGet:Qa,domainSearchSearch:Za,domainSearchSearchPost:Xa,multiDomainSearchSearch:ni,multiDomainSearchReveal:pi,emailFinderFind:ui,emailFinderFindFound:ci,emailFinderFindFoundPost:li,emailVerifierVerify:bi,emailInsightGet:Ei,emailCountGet:ki,enrichmentPerson:vi,enrichmentCompany:Oi,enrichmentCombined:wi,leadsList:Ai,leadsCreate:Ti,leadsUpsert:ot,leadsGet:zi,leadsUpdate:st,leadsReplace:Hi,leadsDelete:Bi,leadsEnrich:Ki,leadsExist:Wi,leadsBulkExist:Qi,leadsBulkUpsert:Zi,leadsBulkMove:ep,leadsBulkDelete:op,leadsImportCsv:np,tagsList:ip,tagsCreate:cp,tagsGet:rp,tagsUpdate:nt,tagsReplace:mp,tagsDelete:hp,leadTagsAttach:bp,leadTagsDetach:Lp,customAttributesList:Ep,customAttributesCreate:vp,customAttributesGet:kp,customAttributesUpdate:at,customAttributesReplace:Rp,customAttributesDelete:Fp,leadsListsList:Tp,leadsListsCreate:Up,leadsListsGet:qp,leadsListsUpdate:it,leadsListsReplace:zp,leadsListsDelete:Pp,leadsListsFavorite:Bp,leadsListsUnfavorite:Kp,leadsListsMerge:Wp,leadsListFoldersList:Qp,leadsListFoldersCreate:Jp,leadsListFoldersGet:Zp,leadsListFoldersUpdate:rt,leadsListFoldersReplace:or,leadsListFoldersDelete:nr,companiesList:ir,companiesCreate:cr,companiesGet:rr,companiesDelete:dr,companiesTag:yr,companiesUntag:gr,companiesBulkMove:fr,companiesBulkCopy:Sr,companiesBulkDelete:xr,companiesBulkTag:Cr,companyListsList:Or,companyListsCreate:Fr,companyListsGet:Rr,companyListsUpdate:ut,companyListsReplace:Hr,companyListsDelete:Ar,companyListsAddCompany:Dr,companyListsRemoveCompany:zr,companyListsFavorite:Pr,companyListsUnfavorite:Br,companyListFoldersList:Kr,companyListFoldersCreate:Qr,companyListFoldersGet:Wr,companyListFoldersUpdate:ct,companyListFoldersReplace:Xr,companyListFoldersDelete:eu,companyTagsList:ou,companyTagsCreate:iu,companyTagsGet:nu,companyTagsUpdate:lt,companyTagsReplace:uu,companyTagsDelete:lu,lookalikesList:mu,sequencesList:bu,sequencesCreate:Lu,sequencesGet:Eu,sequencesUpdate:yt,sequencesReplace:Cu,sequencesDelete:Ou,sequencesStart:Ru,sequencesPause:Fu,sequencesResume:Tu,sequencesArchive:qu,sequencesTest:Uu,sequenceRecipientsList:zu,sequenceRecipientsAdd:Pu,sequenceRecipientsRemove:Bu,sequenceFollowUpsList:Ku,sequenceFollowUpsCreate:Wu,sequenceFollowUpsGet:Qu,sequenceFollowUpsUpdate:gt,sequenceFollowUpsReplace:Xu,sequenceFollowUpsDelete:ec,sequenceStatsGet:oc,messagesList:ic,messagesSend:rc,messageTemplatesList:cc,messageTemplatesCreate:yc,messageTemplatesGet:dc,messageTemplatesUpdate:ft,messageTemplatesReplace:bc,messageTemplatesDelete:Lc,emailAccountsList:Ec,emailAccountsGet:kc,emailAccountsUpdate:Lt,emailAccountsReplace:Oc,emailAccountsCapacities:Rc,emailAccountsHealthReport:Ic,emailAccountsUsage:Hc,emailAccountsWarmupReport:Ac,emailAccountsSequences:Dc,webhooksList:jc,webhooksCreate:Mc,webhooksGet:Vc,webhooksUpdate:Et,webhooksReplace:Wc,webhooksDelete:Qc,webhooksDeleteLegacy:Zc},a={accountGet:Nn,accountUpdate:Yn,accountStatsGet:Xn,usageGet:ea,usageHistory:sa,teamMembersList:ia,apiKeysList:ra,apiKeysCreate:ca,apiKeysUpdate:la,apiKeysReplace:ma,apiKeysDelete:ha,connectedAppsList:Sa,connectedAppsGet:xa,connectedAppsPush:Ca,feedbackCreate:ba,discoverCompanies:_a,discoverPeople:Ha,discoverPeoplePost:qa,discoverViewsList:Ua,discoverViewsCreate:Ga,discoverViewsGet:ja,discoverViewsDelete:Ma,domainCountGet:Va,domainFinderFind:Wa,domainFinderFindPost:Na,domainsSuggestionGet:Ya,domainSearchSearch:oi,domainSearchSearchPost:si,multiDomainSearchSearch:ii,multiDomainSearchReveal:ri,emailFinderFind:yi,emailFinderFindFound:hi,emailFinderFindFoundPost:gi,emailVerifierVerify:Si,emailInsightGet:xi,emailCountGet:Ci,enrichmentPerson:Ri,enrichmentCompany:_i,enrichmentCombined:Fi,leadsList:Ui,leadsCreate:Di,leadsUpsert:Gi,leadsGet:ji,leadsUpdate:Pi,leadsReplace:Mi,leadsDelete:Vi,leadsEnrich:$i,leadsExist:Ni,leadsBulkExist:Yi,leadsBulkUpsert:Ji,leadsBulkMove:tp,leadsBulkDelete:sp,leadsImportCsv:ap,tagsList:pp,tagsCreate:lp,tagsGet:up,tagsUpdate:dp,tagsReplace:yp,tagsDelete:gp,leadTagsAttach:fp,leadTagsDetach:Sp,customAttributesList:xp,customAttributesCreate:Op,customAttributesGet:Cp,customAttributesUpdate:wp,customAttributesReplace:_p,customAttributesDelete:Ip,leadsListsList:Hp,leadsListsCreate:Dp,leadsListsGet:Ap,leadsListsUpdate:Gp,leadsListsReplace:jp,leadsListsDelete:Mp,leadsListsFavorite:Vp,leadsListsUnfavorite:$p,leadsListsMerge:Np,leadsListFoldersList:Yp,leadsListFoldersCreate:er,leadsListFoldersGet:Xp,leadsListFoldersUpdate:tr,leadsListFoldersReplace:sr,leadsListFoldersDelete:ar,companiesList:pr,companiesCreate:lr,companiesGet:ur,companiesDelete:mr,companiesTag:hr,companiesUntag:br,companiesBulkMove:Lr,companiesBulkCopy:Er,companiesBulkDelete:kr,companiesBulkTag:vr,companyListsList:wr,companyListsCreate:Ir,companyListsGet:_r,companyListsUpdate:Tr,companyListsReplace:qr,companyListsDelete:Ur,companyListsAddCompany:Gr,companyListsRemoveCompany:jr,companyListsFavorite:Mr,companyListsUnfavorite:Vr,companyListFoldersList:$r,companyListFoldersCreate:Yr,companyListFoldersGet:Nr,companyListFoldersUpdate:Zr,companyListFoldersReplace:Jr,companyListFoldersDelete:tu,companyTagsList:su,companyTagsCreate:pu,companyTagsGet:au,companyTagsUpdate:ru,companyTagsReplace:cu,companyTagsDelete:du,lookalikesList:hu,sequencesList:fu,sequencesCreate:Su,sequencesGet:xu,sequencesUpdate:ku,sequencesReplace:vu,sequencesDelete:wu,sequencesStart:_u,sequencesPause:Iu,sequencesResume:Hu,sequencesArchive:Au,sequencesTest:Du,sequenceRecipientsList:ju,sequenceRecipientsAdd:Mu,sequenceRecipientsRemove:Vu,sequenceFollowUpsList:$u,sequenceFollowUpsCreate:Nu,sequenceFollowUpsGet:Yu,sequenceFollowUpsUpdate:Zu,sequenceFollowUpsReplace:Ju,sequenceFollowUpsDelete:tc,sequenceStatsGet:sc,messagesList:pc,messagesSend:uc,messageTemplatesList:lc,messageTemplatesCreate:hc,messageTemplatesGet:mc,messageTemplatesUpdate:gc,messageTemplatesReplace:fc,messageTemplatesDelete:Sc,emailAccountsList:xc,emailAccountsGet:Cc,emailAccountsUpdate:vc,emailAccountsReplace:wc,emailAccountsCapacities:Fc,emailAccountsHealthReport:Tc,emailAccountsUsage:qc,emailAccountsWarmupReport:Uc,emailAccountsSequences:zc,webhooksList:Pc,webhooksCreate:Bc,webhooksGet:Kc,webhooksUpdate:$c,webhooksReplace:Nc,webhooksDelete:Yc,webhooksDeleteLegacy:Xc};var kt=async(t,i)=>{let o=n.accountGet.parse(i),s=await r("/account",t.key,{method:"GET"}),p=a.accountGet.parse(s);return await xt(t,"hunterio.account.get",{},"completed"),p},Ct=async(t,i)=>{let o=n.accountUpdate.parse(i),s=await r("/account",t.key,{method:"PUT",body:o}),p=a.accountUpdate.parse(s);return await xt(t,"hunterio.account.update",{},"completed"),p};import{logEventFromContext as Jc}from"corsair/core";var vt=async(t,i)=>{let o=n.accountStatsGet.parse(i),s=await r("/account-stats",t.key,{method:"GET"}),p=a.accountStatsGet.parse(s);return await Jc(t,"hunterio.accountStats.get",{},"completed"),p};import{logEventFromContext as oe}from"corsair/core";var Ot=async(t,i)=>{let o=n.apiKeysList.parse(i),s=await r("/api-keys",t.key,{method:"GET"}),p=a.apiKeysList.parse(s);return await oe(t,"hunterio.apiKeys.list",{},"completed"),p},wt=async(t,i)=>{let o=n.apiKeysCreate.parse(i),s=await r("/api-keys",t.key,{method:"POST",body:{name:o.name}}),p=a.apiKeysCreate.parse(s);return await oe(t,"hunterio.apiKeys.create",{},"completed"),p},Rt=async(t,i)=>{let o=n.apiKeysUpdate.parse(i),{id:s,...p}=o,d=await r(`/api-keys/${s}`,t.key,{method:"PATCH",body:p}),l=a.apiKeysUpdate.parse(d);return await oe(t,"hunterio.apiKeys.update",{id:s},"completed"),l},_t=async(t,i)=>{let o=n.apiKeysReplace.parse(i),{id:s,...p}=o,d=await r(`/api-keys/${s}`,t.key,{method:"PUT",body:p}),l=a.apiKeysReplace.parse(d);return await oe(t,"hunterio.apiKeys.replace",{id:s},"completed"),l},Ft=async(t,i)=>{let o=n.apiKeysDelete.parse(i),s=await r(`/api-keys/${o.id}`,t.key,{method:"DELETE"}),p=a.apiKeysDelete.parse(s);return await oe(t,"hunterio.apiKeys.delete",{id:o.id},"completed"),p};import{logEventFromContext as x}from"corsair/core";var It=async(t,i)=>{let o=n.companiesList.parse(i),s=await r("/companies",t.key,{method:"GET",query:o}),p=a.companiesList.parse(s);return await x(t,"hunterio.companies.list",{count:p.data.companies.length},"completed"),p},Tt=async(t,i)=>{let o=n.companiesCreate.parse(i),s=await r("/companies",t.key,{method:"POST",body:o}),p=a.companiesCreate.parse(s);return await x(t,"hunterio.companies.create",{},"completed"),p},Ht=async(t,i)=>{let o=n.companiesGet.parse(i),s=await r(`/companies/${o.id}`,t.key,{method:"GET"}),p=a.companiesGet.parse(s);return await x(t,"hunterio.companies.get",{id:o.id},"completed"),p},qt=async(t,i)=>{let o=n.companiesDelete.parse(i),s=await r(`/companies/${o.id}`,t.key,{method:"DELETE"}),p=a.companiesDelete.parse(s);return await x(t,"hunterio.companies.delete",{id:o.id},"completed"),p},At=async(t,i)=>{let o=n.companiesTag.parse(i),{id:s,...p}=o,d=await r(`/companies/${s}/tags`,t.key,{method:"POST",body:p}),l=a.companiesTag.parse(d);return await x(t,"hunterio.companies.tag",{id:s},"completed"),l},Ut=async(t,i)=>{let o=n.companiesUntag.parse(i),s=await r(`/companies/${o.id}/tags/${o.tag_id}`,t.key,{method:"DELETE"}),p=a.companiesUntag.parse(s);return await x(t,"hunterio.companies.untag",{id:o.id},"completed"),p},Dt=async(t,i)=>{let o=n.companiesBulkMove.parse(i),s=await r("/companies/bulk/move",t.key,{method:"POST",body:o}),p=a.companiesBulkMove.parse(s);return await x(t,"hunterio.companies.bulkMove",{companyCount:o.company_ids?.length},"completed"),p},Gt=async(t,i)=>{let o=n.companiesBulkCopy.parse(i),s=await r("/companies/bulk/copy",t.key,{method:"POST",body:o}),p=a.companiesBulkCopy.parse(s);return await x(t,"hunterio.companies.bulkCopy",{companyCount:o.company_ids?.length},"completed"),p},zt=async(t,i)=>{let o=n.companiesBulkDelete.parse(i),s=await r("/companies/bulk/delete",t.key,{method:"POST",body:o}),p=a.companiesBulkDelete.parse(s);return await x(t,"hunterio.companies.bulkDelete",{companyCount:o.company_ids?.length},"completed"),p},jt=async(t,i)=>{let o=n.companiesBulkTag.parse(i),s=await r("/companies/bulk/tag",t.key,{method:"POST",body:o}),p=a.companiesBulkTag.parse(s);return await x(t,"hunterio.companies.bulkTag",{companyCount:o.company_ids?.length},"completed"),p};import{logEventFromContext as B}from"corsair/core";var Pt=async(t,i)=>{let o=n.companyListFoldersList.parse(i),s=await r("/company-lists/folders",t.key,{method:"GET",query:{limit:o.limit,offset:o.offset}}),p=a.companyListFoldersList.parse(s);return await B(t,"hunterio.companyListFolders.list",{},"completed"),p},Mt=async(t,i)=>{let o=n.companyListFoldersCreate.parse(i),s=await r("/company-lists/folders",t.key,{method:"POST",body:o}),p=a.companyListFoldersCreate.parse(s);return await B(t,"hunterio.companyListFolders.create",{},"completed"),p},Bt=async(t,i)=>{let o=n.companyListFoldersGet.parse(i),s=await r(`/company-lists/folders/${o.id}`,t.key,{method:"GET"}),p=a.companyListFoldersGet.parse(s);return await B(t,"hunterio.companyListFolders.get",{id:o.id},"completed"),p},Vt=async(t,i)=>{let o=n.companyListFoldersUpdate.parse(i),{id:s,...p}=o,d=await r(`/company-lists/folders/${s}`,t.key,{method:"PATCH",body:p}),l=a.companyListFoldersUpdate.parse(d);return await B(t,"hunterio.companyListFolders.update",{id:s},"completed"),l},Kt=async(t,i)=>{let o=n.companyListFoldersReplace.parse(i),{id:s,...p}=o,d=await r(`/company-lists/folders/${s}`,t.key,{method:"PUT",body:p}),l=a.companyListFoldersReplace.parse(d);return await B(t,"hunterio.companyListFolders.replace",{id:s},"completed"),l},$t=async(t,i)=>{let o=n.companyListFoldersDelete.parse(i),s=await r(`/company-lists/folders/${o.id}`,t.key,{method:"DELETE"}),p=a.companyListFoldersDelete.parse(s);return await B(t,"hunterio.companyListFolders.delete",{id:o.id},"completed"),p};import{logEventFromContext as k}from"corsair/core";var Wt=async(t,i)=>{let o=n.companyListsList.parse(i),s=await r("/company-lists",t.key,{method:"GET",query:{limit:o.limit,offset:o.offset}}),p=a.companyListsList.parse(s);return await k(t,"hunterio.companyLists.list",{},"completed"),p},Nt=async(t,i)=>{let o=n.companyListsCreate.parse(i),s=await r("/company-lists",t.key,{method:"POST",body:o}),p=a.companyListsCreate.parse(s);return await k(t,"hunterio.companyLists.create",{},"completed"),p},Qt=async(t,i)=>{let o=n.companyListsGet.parse(i),{id:s,...p}=o,d=await r(`/company-lists/${s}`,t.key,{method:"GET",query:p}),l=a.companyListsGet.parse(d);return await k(t,"hunterio.companyLists.get",{id:s},"completed"),l},Yt=async(t,i)=>{let o=n.companyListsUpdate.parse(i),{id:s,...p}=o,d=await r(`/company-lists/${s}`,t.key,{method:"PATCH",body:p}),l=a.companyListsUpdate.parse(d);return await k(t,"hunterio.companyLists.update",{id:s},"completed"),l},Zt=async(t,i)=>{let o=n.companyListsReplace.parse(i),{id:s,...p}=o,d=await r(`/company-lists/${s}`,t.key,{method:"PUT",body:p}),l=a.companyListsReplace.parse(d);return await k(t,"hunterio.companyLists.replace",{id:s},"completed"),l},Xt=async(t,i)=>{let o=n.companyListsDelete.parse(i),s=await r(`/company-lists/${o.id}`,t.key,{method:"DELETE"}),p=a.companyListsDelete.parse(s);return await k(t,"hunterio.companyLists.delete",{id:o.id},"completed"),p},Jt=async(t,i)=>{let o=n.companyListsAddCompany.parse(i),s=await r(`/company-lists/${o.company_list_id}/companies`,t.key,{method:"POST",body:{company_id:o.company_id}}),p=a.companyListsAddCompany.parse(s);return await k(t,"hunterio.companyLists.addCompany",{companyListId:o.company_list_id},"completed"),p},eo=async(t,i)=>{let o=n.companyListsRemoveCompany.parse(i),s=await r(`/company-lists/${o.company_list_id}/companies/${o.company_id}`,t.key,{method:"DELETE"}),p=a.companyListsRemoveCompany.parse(s);return await k(t,"hunterio.companyLists.removeCompany",{companyListId:o.company_list_id},"completed"),p},to=async(t,i)=>{let o=n.companyListsFavorite.parse(i),s=await r(`/company-lists/${o.id}/favorite`,t.key,{method:"POST"}),p=a.companyListsFavorite.parse(s);return await k(t,"hunterio.companyLists.favorite",{id:o.id},"completed"),p},oo=async(t,i)=>{let o=n.companyListsUnfavorite.parse(i),s=await r(`/company-lists/${o.id}/favorite`,t.key,{method:"DELETE"}),p=a.companyListsUnfavorite.parse(s);return await k(t,"hunterio.companyLists.unfavorite",{id:o.id},"completed"),p};import{logEventFromContext as V}from"corsair/core";var so=async(t,i)=>{let o=n.companyTagsList.parse(i),s=await r("/company-tags",t.key,{method:"GET",query:{limit:o.limit,offset:o.offset}}),p=a.companyTagsList.parse(s);return await V(t,"hunterio.companyTags.list",{},"completed"),p},no=async(t,i)=>{let o=n.companyTagsCreate.parse(i),s=await r("/company-tags",t.key,{method:"POST",body:o}),p=a.companyTagsCreate.parse(s);return await V(t,"hunterio.companyTags.create",{},"completed"),p},ao=async(t,i)=>{let o=n.companyTagsGet.parse(i),s=await r(`/company-tags/${o.id}`,t.key,{method:"GET"}),p=a.companyTagsGet.parse(s);return await V(t,"hunterio.companyTags.get",{id:o.id},"completed"),p},io=async(t,i)=>{let o=n.companyTagsUpdate.parse(i),{id:s,...p}=o,d=await r(`/company-tags/${s}`,t.key,{method:"PATCH",body:p}),l=a.companyTagsUpdate.parse(d);return await V(t,"hunterio.companyTags.update",{id:s},"completed"),l},po=async(t,i)=>{let o=n.companyTagsReplace.parse(i),{id:s,...p}=o,d=await r(`/company-tags/${s}`,t.key,{method:"PUT",body:p}),l=a.companyTagsReplace.parse(d);return await V(t,"hunterio.companyTags.replace",{id:s},"completed"),l},ro=async(t,i)=>{let o=n.companyTagsDelete.parse(i),s=await r(`/company-tags/${o.id}`,t.key,{method:"DELETE"}),p=a.companyTagsDelete.parse(s);return await V(t,"hunterio.companyTags.delete",{id:o.id},"completed"),p};import{logEventFromContext as Fe}from"corsair/core";var uo=async(t,i)=>{let o=n.connectedAppsList.parse(i),s=await r("/connected-apps",t.key,{method:"GET",query:{limit:o.limit,offset:o.offset}}),p=a.connectedAppsList.parse(s);return await Fe(t,"hunterio.connectedApps.list",{},"completed"),p},co=async(t,i)=>{let o=n.connectedAppsGet.parse(i),s=await r(`/connected-apps/${o.id}`,t.key,{method:"GET"}),p=a.connectedAppsGet.parse(s);return await Fe(t,"hunterio.connectedApps.get",{id:o.id},"completed"),p},lo=async(t,i)=>{let o=n.connectedAppsPush.parse(i),{id:s,...p}=o,d=await r(`/connected-apps/${s}/push`,t.key,{method:"POST",body:p}),l=a.connectedAppsPush.parse(d);return await Fe(t,"hunterio.connectedApps.push",{id:s,leadCount:o.lead_ids?.length},"completed"),l};import{logEventFromContext as K}from"corsair/core";var mo=async(t,i)=>{let o=n.customAttributesList.parse(i),s=await r("/leads_custom_attributes",t.key,{method:"GET"}),p=a.customAttributesList.parse(s);return await K(t,"hunterio.customAttributes.list",{},"completed"),p},yo=async(t,i)=>{let o=n.customAttributesCreate.parse(i),s=await r("/leads_custom_attributes",t.key,{method:"POST",body:o}),p=a.customAttributesCreate.parse(s);return await K(t,"hunterio.customAttributes.create",{},"completed"),p},ho=async(t,i)=>{let o=n.customAttributesGet.parse(i),s=await r(`/leads_custom_attributes/${o.id}`,t.key,{method:"GET"}),p=a.customAttributesGet.parse(s);return await K(t,"hunterio.customAttributes.get",{id:o.id},"completed"),p},go=async(t,i)=>{let o=n.customAttributesUpdate.parse(i),{id:s,...p}=o,d=await r(`/leads_custom_attributes/${s}`,t.key,{method:"PATCH",body:p}),l=a.customAttributesUpdate.parse(d);return await K(t,"hunterio.customAttributes.update",{id:s},"completed"),l},bo=async(t,i)=>{let o=n.customAttributesReplace.parse(i),{id:s,...p}=o,d=await r(`/leads_custom_attributes/${s}`,t.key,{method:"PUT",body:p}),l=a.customAttributesReplace.parse(d);return await K(t,"hunterio.customAttributes.replace",{id:s},"completed"),l},fo=async(t,i)=>{let o=n.customAttributesDelete.parse(i),s=await r(`/leads_custom_attributes/${o.id}`,t.key,{method:"DELETE"}),p=a.customAttributesDelete.parse(s);return await K(t,"hunterio.customAttributes.delete",{id:o.id},"completed"),p};import{logEventFromContext as Ie}from"corsair/core";var F=t=>{let i={},o=(s,p)=>{if(p!==void 0){if(Array.isArray(p)){if(p.some(l=>l!==null&&typeof l=="object")){p.forEach((l,T)=>{o(`${s}[${T}]`,l)});return}i[`${s}[]`]=p;return}if(p!==null&&typeof p=="object"){for(let[d,l]of Object.entries(p))o(`${s}[${d}]`,l);return}i[s]=p}};for(let[s,p]of Object.entries(t))o(s,p);return i};var Lo=async(t,i)=>{let o=n.discoverCompanies.parse(i),s=await r("/discover",t.key,{method:"POST",body:o}),p=a.discoverCompanies.parse(s);return await Ie(t,"hunterio.discover.companies",{},"completed"),p},So=async(t,i)=>{let o=n.discoverPeople.parse(i),s=await r("/discover/people",t.key,{method:"GET",query:F(o)}),p=a.discoverPeople.parse(s);return await Ie(t,"hunterio.discover.people",{},"completed"),p},Eo=async(t,i)=>{let o=n.discoverPeoplePost.parse(i),s=await r("/discover/people",t.key,{method:"POST",body:o}),p=a.discoverPeoplePost.parse(s);return await Ie(t,"hunterio.discover.peoplePost",{},"completed"),p};import{logEventFromContext as de}from"corsair/core";var xo=async(t,i)=>{let o=n.discoverViewsList.parse(i),s=await r("/discover/views",t.key,{method:"GET"}),p=a.discoverViewsList.parse(s);return await de(t,"hunterio.discoverViews.list",{},"completed"),p},ko=async(t,i)=>{let o=n.discoverViewsCreate.parse(i),s=await r("/discover/views",t.key,{method:"POST",body:o}),p=a.discoverViewsCreate.parse(s);return await de(t,"hunterio.discoverViews.create",{},"completed"),p},Co=async(t,i)=>{let o=n.discoverViewsGet.parse(i),s=await r(`/discover/views/${o.id}`,t.key,{method:"GET"}),p=a.discoverViewsGet.parse(s);return await de(t,"hunterio.discoverViews.get",{id:o.id},"completed"),p},vo=async(t,i)=>{let o=n.discoverViewsDelete.parse(i),s=await r(`/discover/views/${o.id}`,t.key,{method:"DELETE"}),p=a.discoverViewsDelete.parse(s);return await de(t,"hunterio.discoverViews.delete",{id:o.id},"completed"),p};import{logEventFromContext as el}from"corsair/core";var Oo=async(t,i)=>{let o=n.domainCountGet.parse(i),s=await r("/domain-count",t.key,{method:"GET",query:F(o)}),p=a.domainCountGet.parse(s);return await el(t,"hunterio.domainCount.get",{},"completed"),p};import{logEventFromContext as wo}from"corsair/core";var Ro=async(t,i)=>{let o=n.domainFinderFind.parse(i),s=await r("/domain-finder",t.key,{method:"GET",query:{company:o.company,limit:o.limit,perfect_match:o.perfect_match}}),p=a.domainFinderFind.parse(s);return await wo(t,"hunterio.domainFinder.find",{},"completed"),p},_o=async(t,i)=>{let o=n.domainFinderFindPost.parse(i),s=await r("/domain-finder",t.key,{method:"POST",body:o}),p=a.domainFinderFindPost.parse(s);return await wo(t,"hunterio.domainFinder.findPost",{},"completed"),p};import{logEventFromContext as Fo}from"corsair/core";var Io=async(t,i)=>{let o=n.domainSearchSearch.parse(i),s=await r("/domain-search",t.key,{method:"GET",query:o}),p=a.domainSearchSearch.parse(s);return await Fo(t,"hunterio.domainSearch.search",{},"completed"),p},To=async(t,i)=>{let o=n.domainSearchSearchPost.parse(i),s=await r("/domain-search",t.key,{method:"POST",body:o}),p=a.domainSearchSearchPost.parse(s);return await Fo(t,"hunterio.domainSearch.searchPost",{},"completed"),p};import{logEventFromContext as tl}from"corsair/core";var Ho=async(t,i)=>{let o=n.domainsSuggestionGet.parse(i),s=await r("/domains-suggestion",t.key,{method:"GET",query:{query:o.query,limit:o.limit}}),p=a.domainsSuggestionGet.parse(s);return await tl(t,"hunterio.domainsSuggestion.get",{},"completed"),p};import{logEventFromContext as w}from"corsair/core";var qo=async(t,i)=>{let o=n.emailAccountsList.parse(i),s=await r("/email-accounts",t.key,{method:"GET",query:{limit:o.limit,offset:o.offset}}),p=a.emailAccountsList.parse(s);return await w(t,"hunterio.emailAccounts.list",{},"completed"),p},Ao=async(t,i)=>{let o=n.emailAccountsGet.parse(i),s=await r(`/email-accounts/${o.id}`,t.key,{method:"GET"}),p=a.emailAccountsGet.parse(s);return await w(t,"hunterio.emailAccounts.get",{id:o.id},"completed"),p},Uo=async(t,i)=>{let o=n.emailAccountsUpdate.parse(i),{id:s,...p}=o,d=await r(`/email-accounts/${s}`,t.key,{method:"PUT",query:p}),l=a.emailAccountsUpdate.parse(d);return await w(t,"hunterio.emailAccounts.update",{id:s},"completed"),l},Do=async(t,i)=>{let o=n.emailAccountsReplace.parse(i),{id:s,...p}=o,d=await r(`/email-accounts/${s}`,t.key,{method:"PATCH",query:p}),l=a.emailAccountsReplace.parse(d);return await w(t,"hunterio.emailAccounts.replace",{id:s},"completed"),l},Go=async(t,i)=>{n.emailAccountsCapacities.parse(i);let o=await r("/email-accounts/capacities",t.key,{method:"GET"}),s=a.emailAccountsCapacities.parse(o);return await w(t,"hunterio.emailAccounts.capacities",{},"completed"),s},zo=async(t,i)=>{let o=n.emailAccountsHealthReport.parse(i),s=await r(`/email-accounts/${o.id}/health-report`,t.key,{method:"GET"}),p=a.emailAccountsHealthReport.parse(s);return await w(t,"hunterio.emailAccounts.healthReport",{id:o.id},"completed"),p},jo=async(t,i)=>{let o=n.emailAccountsUsage.parse(i),s=await r(`/email-accounts/${o.id}/usage`,t.key,{method:"GET"}),p=a.emailAccountsUsage.parse(s);return await w(t,"hunterio.emailAccounts.usage",{id:o.id},"completed"),p},Po=async(t,i)=>{let o=n.emailAccountsWarmupReport.parse(i),s=await r(`/email-accounts/${o.id}/warmup-report`,t.key,{method:"GET"}),p=a.emailAccountsWarmupReport.parse(s);return await w(t,"hunterio.emailAccounts.warmupReport",{id:o.id},"completed"),p},Mo=async(t,i)=>{let o=n.emailAccountsSequences.parse(i),{email_account_id:s,...p}=o,d=await r(`/email-accounts/${s}/sequences`,t.key,{method:"GET",query:p}),l=a.emailAccountsSequences.parse(d);return await w(t,"hunterio.emailAccounts.sequences",{emailAccountId:s},"completed"),l};import{logEventFromContext as ol}from"corsair/core";var Bo=async(t,i)=>{let o=n.emailCountGet.parse(i),s=await r("/email-count",t.key,{method:"GET",query:o}),p=a.emailCountGet.parse(s);return await ol(t,"hunterio.emailCount.get",{},"completed"),p};import{logEventFromContext as Te}from"corsair/core";var Vo=async(t,i)=>{let o=n.emailFinderFind.parse(i),s=await r("/email-finder",t.key,{method:"GET",query:o}),p=a.emailFinderFind.parse(s);return await Te(t,"hunterio.emailFinder.find",{},"completed"),p},Ko=async(t,i)=>{let o=n.emailFinderFindFound.parse(i),s=await r("/email-finder/found",t.key,{method:"GET",query:o}),p=a.emailFinderFindFound.parse(s);return await Te(t,"hunterio.emailFinder.findFound",{},"completed"),p},$o=async(t,i)=>{let o=n.emailFinderFindFoundPost.parse(i),s=await r("/email-finder/found",t.key,{method:"POST",body:o}),p=a.emailFinderFindFoundPost.parse(s);return await Te(t,"hunterio.emailFinder.findFoundPost",{},"completed"),p};import{logEventFromContext as sl}from"corsair/core";var Wo=async(t,i)=>{let o=n.emailInsightGet.parse(i),s=await r("/email-insight",t.key,{method:"GET",query:{email:o.email}}),p=a.emailInsightGet.parse(s);return await sl(t,"hunterio.emailInsight.get",{},"completed"),p};import{logEventFromContext as nl}from"corsair/core";var No=async(t,i)=>{let o=n.emailVerifierVerify.parse(i),s=await r("/email-verifier",t.key,{method:"GET",query:{email:o.email,domain_metadata:o.domain_metadata}}),p=a.emailVerifierVerify.parse(s);return await nl(t,"hunterio.emailVerifier.verify",{},"completed"),p};import{logEventFromContext as He}from"corsair/core";var Qo=async(t,i)=>{let o=n.enrichmentPerson.parse(i),s=await r("/people/find",t.key,{method:"GET",query:o}),p=a.enrichmentPerson.parse(s);return await He(t,"hunterio.enrichment.person",{},"completed"),p},Yo=async(t,i)=>{let o=n.enrichmentCompany.parse(i),s=await r("/companies/find",t.key,{method:"GET",query:o}),p=a.enrichmentCompany.parse(s);return await He(t,"hunterio.enrichment.company",{},"completed"),p},Zo=async(t,i)=>{let o=n.enrichmentCombined.parse(i),s=await r("/combined/find",t.key,{method:"GET",query:o}),p=a.enrichmentCombined.parse(s);return await He(t,"hunterio.enrichment.combined",{},"completed"),p};import{logEventFromContext as al}from"corsair/core";var Xo=async(t,i)=>{let o=n.feedbackCreate.parse(i),s=await r("/feedback",t.key,{method:"POST",body:o}),p=a.feedbackCreate.parse(s);return await al(t,"hunterio.feedback.create",{feedbackType:o.feedback_type},"completed"),p};import{logEventFromContext as Jo}from"corsair/core";var es=async(t,i)=>{let o=n.leadTagsAttach.parse(i),s=await r(`/leads/${o.id}/tags`,t.key,{method:"POST",body:{tag_id:o.tag_id}}),p=a.leadTagsAttach.parse(s);return await Jo(t,"hunterio.leadTags.attach",{id:o.id},"completed"),p},ts=async(t,i)=>{let o=n.leadTagsDetach.parse(i),s=await r(`/leads/${o.id}/tags/${o.tag_id}`,t.key,{method:"DELETE"}),p=a.leadTagsDetach.parse(s);return await Jo(t,"hunterio.leadTags.detach",{id:o.id},"completed"),p};import{logEventFromContext as y}from"corsair/core";var os=async(t,i)=>{let o=n.leadsList.parse(i),s=await r("/leads",t.key,{method:"GET",query:F(o)}),p=a.leadsList.parse(s);return await y(t,"hunterio.leads.list",{count:p.data.leads.length},"completed"),p},ss=async(t,i)=>{let o=n.leadsCreate.parse(i),s=await r("/leads",t.key,{method:"POST",body:o}),p=a.leadsCreate.parse(s);return await y(t,"hunterio.leads.create",{},"completed"),p},ns=async(t,i)=>{let o=n.leadsUpsert.parse(i),s=await r("/leads",t.key,{method:"PUT",body:o}),p=a.leadsUpsert.parse(s);return await y(t,"hunterio.leads.upsert",{},"completed"),p},as=async(t,i)=>{let o=n.leadsGet.parse(i),s=await r(`/leads/${o.id}`,t.key,{method:"GET"}),p=a.leadsGet.parse(s);return await y(t,"hunterio.leads.get",{id:o.id},"completed"),p},is=async(t,i)=>{let o=n.leadsUpdate.parse(i),{id:s,...p}=o,d=await r(`/leads/${s}`,t.key,{method:"PATCH",body:p}),l=a.leadsUpdate.parse(d);return await y(t,"hunterio.leads.update",{id:s},"completed"),l},ps=async(t,i)=>{let o=n.leadsReplace.parse(i),{id:s,...p}=o,d=await r(`/leads/${s}`,t.key,{method:"PUT",body:p}),l=a.leadsReplace.parse(d);return await y(t,"hunterio.leads.replace",{id:s},"completed"),l},rs=async(t,i)=>{let o=n.leadsDelete.parse(i),s=await r(`/leads/${o.id}`,t.key,{method:"DELETE"}),p=a.leadsDelete.parse(s);return await y(t,"hunterio.leads.delete",{id:o.id},"completed"),p},us=async(t,i)=>{let o=n.leadsEnrich.parse(i),s=await r(`/leads/${o.id}/enrich`,t.key,{method:"POST"}),p=a.leadsEnrich.parse(s);return await y(t,"hunterio.leads.enrich",{id:o.id},"completed"),p},cs=async(t,i)=>{let o=n.leadsExist.parse(i),s=await r("/leads/exist",t.key,{method:"GET",query:{email:o.email}}),p=a.leadsExist.parse(s);return await y(t,"hunterio.leads.exist",{},"completed"),p},ls=async(t,i)=>{let o=n.leadsBulkExist.parse(i),s=await r("/leads/bulk/exist",t.key,{method:"GET",query:{"emails[]":o.emails}}),p=a.leadsBulkExist.parse(s);return await y(t,"hunterio.leads.bulkExist",{count:o.emails.length},"completed"),p},ds=async(t,i)=>{let o=n.leadsBulkUpsert.parse(i),s=await r("/leads/bulk",t.key,{method:"PUT",body:o}),p=a.leadsBulkUpsert.parse(s);return await y(t,"hunterio.leads.bulkUpsert",{count:o.leads.length},"completed"),p},ms=async(t,i)=>{let o=n.leadsBulkMove.parse(i),s=await r("/leads/bulk/move",t.key,{method:"POST",body:o}),p=a.leadsBulkMove.parse(s);return await y(t,"hunterio.leads.bulkMove",{leadCount:o.lead_ids?.length},"completed"),p},ys=async(t,i)=>{let o=n.leadsBulkDelete.parse(i),s=await r("/leads/bulk/delete",t.key,{method:"POST",body:o}),p=a.leadsBulkDelete.parse(s);return await y(t,"hunterio.leads.bulkDelete",{leadCount:o.lead_ids?.length},"completed"),p},hs=async(t,i)=>{let o=n.leadsImportCsv.parse(i),s=await r("/leads-imports",t.key,{method:"POST",body:o}),p=a.leadsImportCsv.parse(s);return await y(t,"hunterio.leads.importCsv",{},"completed"),p};import{logEventFromContext as $}from"corsair/core";var gs=async(t,i)=>{let o=n.leadsListFoldersList.parse(i),s=await r("/leads_lists/folders",t.key,{method:"GET",query:{limit:o.limit,offset:o.offset}}),p=a.leadsListFoldersList.parse(s);return await $(t,"hunterio.leadsListFolders.list",{},"completed"),p},bs=async(t,i)=>{let o=n.leadsListFoldersCreate.parse(i),s=await r("/leads_lists/folders",t.key,{method:"POST",body:o}),p=a.leadsListFoldersCreate.parse(s);return await $(t,"hunterio.leadsListFolders.create",{},"completed"),p},fs=async(t,i)=>{let o=n.leadsListFoldersGet.parse(i),s=await r(`/leads_lists/folders/${o.id}`,t.key,{method:"GET"}),p=a.leadsListFoldersGet.parse(s);return await $(t,"hunterio.leadsListFolders.get",{id:o.id},"completed"),p},Ls=async(t,i)=>{let o=n.leadsListFoldersUpdate.parse(i),{id:s,...p}=o,d=await r(`/leads_lists/folders/${s}`,t.key,{method:"PATCH",body:p}),l=a.leadsListFoldersUpdate.parse(d);return await $(t,"hunterio.leadsListFolders.update",{id:s},"completed"),l},Ss=async(t,i)=>{let o=n.leadsListFoldersReplace.parse(i),{id:s,...p}=o,d=await r(`/leads_lists/folders/${s}`,t.key,{method:"PUT",body:p}),l=a.leadsListFoldersReplace.parse(d);return await $(t,"hunterio.leadsListFolders.replace",{id:s},"completed"),l},Es=async(t,i)=>{let o=n.leadsListFoldersDelete.parse(i),s=await r(`/leads_lists/folders/${o.id}`,t.key,{method:"DELETE"}),p=a.leadsListFoldersDelete.parse(s);return await $(t,"hunterio.leadsListFolders.delete",{id:o.id},"completed"),p};import{logEventFromContext as R}from"corsair/core";var xs=async(t,i)=>{let o=n.leadsListsList.parse(i),s=await r("/leads_lists",t.key,{method:"GET",query:{limit:o.limit,offset:o.offset}}),p=a.leadsListsList.parse(s);return await R(t,"hunterio.leadsLists.list",{},"completed"),p},ks=async(t,i)=>{let o=n.leadsListsCreate.parse(i),s=await r("/leads_lists",t.key,{method:"POST",body:o}),p=a.leadsListsCreate.parse(s);return await R(t,"hunterio.leadsLists.create",{},"completed"),p},Cs=async(t,i)=>{let o=n.leadsListsGet.parse(i),{id:s,...p}=o,d=await r(`/leads_lists/${s}`,t.key,{method:"GET",query:p}),l=a.leadsListsGet.parse(d);return await R(t,"hunterio.leadsLists.get",{id:s},"completed"),l},vs=async(t,i)=>{let o=n.leadsListsUpdate.parse(i),{id:s,...p}=o,d=await r(`/leads_lists/${s}`,t.key,{method:"PATCH",body:p}),l=a.leadsListsUpdate.parse(d);return await R(t,"hunterio.leadsLists.update",{id:s},"completed"),l},Os=async(t,i)=>{let o=n.leadsListsReplace.parse(i),{id:s,...p}=o,d=await r(`/leads_lists/${s}`,t.key,{method:"PUT",body:p}),l=a.leadsListsReplace.parse(d);return await R(t,"hunterio.leadsLists.replace",{id:s},"completed"),l},ws=async(t,i)=>{let o=n.leadsListsDelete.parse(i),s=await r(`/leads_lists/${o.id}`,t.key,{method:"DELETE"}),p=a.leadsListsDelete.parse(s);return await R(t,"hunterio.leadsLists.delete",{id:o.id},"completed"),p},Rs=async(t,i)=>{let o=n.leadsListsFavorite.parse(i),s=await r(`/leads_lists/${o.id}/favorite`,t.key,{method:"POST"}),p=a.leadsListsFavorite.parse(s);return await R(t,"hunterio.leadsLists.favorite",{id:o.id},"completed"),p},_s=async(t,i)=>{let o=n.leadsListsUnfavorite.parse(i),s=await r(`/leads_lists/${o.id}/favorite`,t.key,{method:"DELETE"}),p=a.leadsListsUnfavorite.parse(s);return await R(t,"hunterio.leadsLists.unfavorite",{id:o.id},"completed"),p},Fs=async(t,i)=>{let o=n.leadsListsMerge.parse(i),s=await r(`/leads_lists/${o.id}/merge`,t.key,{method:"POST"}),p=a.leadsListsMerge.parse(s);return await R(t,"hunterio.leadsLists.merge",{id:o.id},"completed"),p};import{logEventFromContext as il}from"corsair/core";var Is=async(t,i)=>{let o=n.lookalikesList.parse(i),s=await r("/lookalikes",t.key,{method:"GET",query:F(o)}),p=a.lookalikesList.parse(s);return await il(t,"hunterio.lookalikes.list",{},"completed"),p};import{logEventFromContext as W}from"corsair/core";var Ts=async(t,i)=>{let o=n.messageTemplatesList.parse(i),s=await r("/message-templates",t.key,{method:"GET",query:{limit:o.limit,offset:o.offset}}),p=a.messageTemplatesList.parse(s);return await W(t,"hunterio.messageTemplates.list",{},"completed"),p},Hs=async(t,i)=>{let o=n.messageTemplatesCreate.parse(i),s=await r("/message-templates",t.key,{method:"POST",body:o}),p=a.messageTemplatesCreate.parse(s);return await W(t,"hunterio.messageTemplates.create",{},"completed"),p},qs=async(t,i)=>{let o=n.messageTemplatesGet.parse(i),s=await r(`/message-templates/${o.id}`,t.key,{method:"GET"}),p=a.messageTemplatesGet.parse(s);return await W(t,"hunterio.messageTemplates.get",{id:o.id},"completed"),p},As=async(t,i)=>{let o=n.messageTemplatesUpdate.parse(i),{id:s,...p}=o,d=await r(`/message-templates/${s}`,t.key,{method:"PATCH",body:p}),l=a.messageTemplatesUpdate.parse(d);return await W(t,"hunterio.messageTemplates.update",{id:s},"completed"),l},Us=async(t,i)=>{let o=n.messageTemplatesReplace.parse(i),{id:s,...p}=o,d=await r(`/message-templates/${s}`,t.key,{method:"PUT",body:p}),l=a.messageTemplatesReplace.parse(d);return await W(t,"hunterio.messageTemplates.replace",{id:s},"completed"),l},Ds=async(t,i)=>{let o=n.messageTemplatesDelete.parse(i),s=await r(`/message-templates/${o.id}`,t.key,{method:"DELETE"}),p=a.messageTemplatesDelete.parse(s);return await W(t,"hunterio.messageTemplates.delete",{id:o.id},"completed"),p};import{logEventFromContext as Gs}from"corsair/core";var zs=async(t,i)=>{let o=n.messagesList.parse(i),{status:s,...p}=o,d=await r("/messages",t.key,{method:"GET",query:{...p,status:Array.isArray(s)?s.join(","):s}}),l=a.messagesList.parse(d);return await Gs(t,"hunterio.messages.list",{},"completed"),l},js=async(t,i)=>{let o=n.messagesSend.parse(i),s=await r("/messages",t.key,{method:"POST",body:o}),p=a.messagesSend.parse(s);return await Gs(t,"hunterio.messages.send",{},"completed"),p};import{logEventFromContext as Ps}from"corsair/core";var Ms=async(t,i)=>{let o=n.multiDomainSearchSearch.parse(i),s=await r("/multi-domain-search",t.key,{method:"POST",body:o}),p=a.multiDomainSearchSearch.parse(s);return await Ps(t,"hunterio.multiDomainSearch.search",{rowCount:p.data.length},"completed"),p},Bs=async(t,i)=>{let o=n.multiDomainSearchReveal.parse(i),s=await r("/multi-domain-search/reveal",t.key,{method:"POST",body:{handles:o.handles}}),p=a.multiDomainSearchReveal.parse(s);return await Ps(t,"hunterio.multiDomainSearch.reveal",{handleCount:o.handles.length},"completed"),p};import{logEventFromContext as N}from"corsair/core";var Vs=async(t,i)=>{let o=n.sequenceFollowUpsList.parse(i),{sequence_id:s,...p}=o,d=await r(`/sequences/${s}/follow-ups`,t.key,{method:"GET",query:p}),l=a.sequenceFollowUpsList.parse(d);return await N(t,"hunterio.sequenceFollowUps.list",{sequenceId:s},"completed"),l},Ks=async(t,i)=>{let o=n.sequenceFollowUpsCreate.parse(i),{sequence_id:s,...p}=o,d=await r(`/sequences/${s}/follow-ups`,t.key,{method:"POST",body:p}),l=a.sequenceFollowUpsCreate.parse(d);return await N(t,"hunterio.sequenceFollowUps.create",{sequenceId:s},"completed"),l},$s=async(t,i)=>{let o=n.sequenceFollowUpsGet.parse(i),s=await r(`/sequences/${o.sequence_id}/follow-ups/${o.id}`,t.key,{method:"GET"}),p=a.sequenceFollowUpsGet.parse(s);return await N(t,"hunterio.sequenceFollowUps.get",{sequenceId:o.sequence_id,id:o.id},"completed"),p},Ws=async(t,i)=>{let o=n.sequenceFollowUpsUpdate.parse(i),{sequence_id:s,id:p,...d}=o,l=await r(`/sequences/${s}/follow-ups/${p}`,t.key,{method:"PATCH",body:d}),T=a.sequenceFollowUpsUpdate.parse(l);return await N(t,"hunterio.sequenceFollowUps.update",{sequenceId:s,id:p},"completed"),T},Ns=async(t,i)=>{let o=n.sequenceFollowUpsReplace.parse(i),{sequence_id:s,id:p,...d}=o,l=await r(`/sequences/${s}/follow-ups/${p}`,t.key,{method:"PUT",body:d}),T=a.sequenceFollowUpsReplace.parse(l);return await N(t,"hunterio.sequenceFollowUps.replace",{sequenceId:s,id:p},"completed"),T},Qs=async(t,i)=>{let o=n.sequenceFollowUpsDelete.parse(i),s=await r(`/sequences/${o.sequence_id}/follow-ups/${o.id}`,t.key,{method:"DELETE"}),p=a.sequenceFollowUpsDelete.parse(s);return await N(t,"hunterio.sequenceFollowUps.delete",{sequenceId:o.sequence_id,id:o.id},"completed"),p};import{logEventFromContext as qe}from"corsair/core";var Ys=async(t,i)=>{let o=n.sequenceRecipientsList.parse(i),{id:s,...p}=o,d=await r(`/sequences/${s}/recipients`,t.key,{method:"GET",query:p}),l=a.sequenceRecipientsList.parse(d);return await qe(t,"hunterio.sequenceRecipients.list",{id:s},"completed"),l},Zs=async(t,i)=>{let o=n.sequenceRecipientsAdd.parse(i),{id:s,...p}=o,d=await r(`/sequences/${s}/recipients`,t.key,{method:"POST",body:p}),l=a.sequenceRecipientsAdd.parse(d);return await qe(t,"hunterio.sequenceRecipients.add",{id:s,addedCount:l.data.recipients_added},"completed"),l},Xs=async(t,i)=>{let o=n.sequenceRecipientsRemove.parse(i),{id:s,...p}=o,d=await r(`/sequences/${s}/recipients`,t.key,{method:"DELETE",body:p}),l=a.sequenceRecipientsRemove.parse(d);return await qe(t,"hunterio.sequenceRecipients.remove",{id:s},"completed"),l};import{logEventFromContext as pl}from"corsair/core";var Js=async(t,i)=>{let o=n.sequenceStatsGet.parse(i),s=await r(`/sequences/${o.id}/stats`,t.key,{method:"GET"}),p=a.sequenceStatsGet.parse(s);return await pl(t,"hunterio.sequenceStats.get",{id:o.id},"completed"),p};import{logEventFromContext as L}from"corsair/core";var en=async(t,i)=>{let o=n.sequencesList.parse(i),s=await r("/sequences",t.key,{method:"GET",query:o}),p=a.sequencesList.parse(s);return await L(t,"hunterio.sequences.list",{},"completed"),p},tn=async(t,i)=>{let o=n.sequencesCreate.parse(i),s=await r("/sequences",t.key,{method:"POST",body:o}),p=a.sequencesCreate.parse(s);return await L(t,"hunterio.sequences.create",{},"completed"),p},on=async(t,i)=>{let o=n.sequencesGet.parse(i),s=await r(`/sequences/${o.id}`,t.key,{method:"GET"}),p=a.sequencesGet.parse(s);return await L(t,"hunterio.sequences.get",{id:o.id},"completed"),p},sn=async(t,i)=>{let o=n.sequencesUpdate.parse(i),{id:s,...p}=o,d=await r(`/sequences/${s}`,t.key,{method:"PATCH",body:p}),l=a.sequencesUpdate.parse(d);return await L(t,"hunterio.sequences.update",{id:s},"completed"),l},nn=async(t,i)=>{let o=n.sequencesReplace.parse(i),{id:s,...p}=o,d=await r(`/sequences/${s}`,t.key,{method:"PUT",body:p}),l=a.sequencesReplace.parse(d);return await L(t,"hunterio.sequences.replace",{id:s},"completed"),l},an=async(t,i)=>{let o=n.sequencesDelete.parse(i),s=await r(`/sequences/${o.id}`,t.key,{method:"DELETE"}),p=a.sequencesDelete.parse(s);return await L(t,"hunterio.sequences.delete",{id:o.id},"completed"),p},pn=async(t,i)=>{let o=n.sequencesStart.parse(i),s=await r(`/sequences/${o.id}/start`,t.key,{method:"POST"}),p=a.sequencesStart.parse(s);return await L(t,"hunterio.sequences.start",{id:o.id},"completed"),p},rn=async(t,i)=>{let o=n.sequencesPause.parse(i),s=await r(`/sequences/${o.id}/pause`,t.key,{method:"POST"}),p=a.sequencesPause.parse(s);return await L(t,"hunterio.sequences.pause",{id:o.id},"completed"),p},un=async(t,i)=>{let o=n.sequencesResume.parse(i),s=await r(`/sequences/${o.id}/pause`,t.key,{method:"DELETE"}),p=a.sequencesResume.parse(s);return await L(t,"hunterio.sequences.resume",{id:o.id},"completed"),p},cn=async(t,i)=>{let o=n.sequencesArchive.parse(i),s=await r(`/sequences/${o.id}/archive`,t.key,{method:"POST"}),p=a.sequencesArchive.parse(s);return await L(t,"hunterio.sequences.archive",{id:o.id},"completed"),p},ln=async(t,i)=>{let o=n.sequencesTest.parse(i),{id:s,...p}=o,d=await r(`/sequences/${s}/test`,t.key,{method:"POST",body:p}),l=a.sequencesTest.parse(d);return await L(t,"hunterio.sequences.test",{id:s},"completed"),l};import{logEventFromContext as Q}from"corsair/core";var dn=async(t,i)=>{let o=n.tagsList.parse(i),s=await r("/tags",t.key,{method:"GET",query:{limit:o.limit,offset:o.offset}}),p=a.tagsList.parse(s);return await Q(t,"hunterio.tags.list",{},"completed"),p},mn=async(t,i)=>{let o=n.tagsCreate.parse(i),s=await r("/tags",t.key,{method:"POST",body:o}),p=a.tagsCreate.parse(s);return await Q(t,"hunterio.tags.create",{},"completed"),p},yn=async(t,i)=>{let o=n.tagsGet.parse(i),s=await r(`/tags/${o.id}`,t.key,{method:"GET"}),p=a.tagsGet.parse(s);return await Q(t,"hunterio.tags.get",{id:o.id},"completed"),p},hn=async(t,i)=>{let o=n.tagsUpdate.parse(i),{id:s,...p}=o,d=await r(`/tags/${s}`,t.key,{method:"PATCH",body:p}),l=a.tagsUpdate.parse(d);return await Q(t,"hunterio.tags.update",{id:s},"completed"),l},gn=async(t,i)=>{let o=n.tagsReplace.parse(i),{id:s,...p}=o,d=await r(`/tags/${s}`,t.key,{method:"PUT",body:p}),l=a.tagsReplace.parse(d);return await Q(t,"hunterio.tags.replace",{id:s},"completed"),l},bn=async(t,i)=>{let o=n.tagsDelete.parse(i),s=await r(`/tags/${o.id}`,t.key,{method:"DELETE"}),p=a.tagsDelete.parse(s);return await Q(t,"hunterio.tags.delete",{id:o.id},"completed"),p};import{logEventFromContext as rl}from"corsair/core";var fn=async(t,i)=>{let o=n.teamMembersList.parse(i),s=await r("/team/members",t.key,{method:"GET",query:{limit:o.limit,offset:o.offset}}),p=a.teamMembersList.parse(s);return await rl(t,"hunterio.teamMembers.list",{},"completed"),p};import{logEventFromContext as Ln}from"corsair/core";var Sn=async(t,i)=>{let o=n.usageGet.parse(i),s=await r("/usage",t.key,{method:"GET",query:{show_overage_requests:o.show_overage_requests}}),p=a.usageGet.parse(s);return await Ln(t,"hunterio.usage.get",{},"completed"),p},En=async(t,i)=>{let o=n.usageHistory.parse(i),s=await r("/usage/history",t.key,{method:"GET",query:{offset:o.offset,limit:o.limit,start_date:o.start_date,end_date:o.end_date,user_id:o.user_id}}),p=a.usageHistory.parse(s);return await Ln(t,"hunterio.usage.history",{},"completed"),p};import{logEventFromContext as q}from"corsair/core";var xn=async(t,i)=>{let o=n.webhooksList.parse(i),s=await r("/webhooks",t.key,{method:"GET",query:{limit:o.limit,offset:o.offset}}),p=a.webhooksList.parse(s);return await q(t,"hunterio.webhooks.list",{},"completed"),p},kn=async(t,i)=>{let o=n.webhooksCreate.parse(i),s=await r("/webhooks",t.key,{method:"POST",body:o}),p=a.webhooksCreate.parse(s);return await q(t,"hunterio.webhooks.create",{},"completed"),p},Cn=async(t,i)=>{let o=n.webhooksGet.parse(i),s=await r(`/webhooks/${o.id}`,t.key,{method:"GET"}),p=a.webhooksGet.parse(s);return await q(t,"hunterio.webhooks.get",{id:o.id},"completed"),p},vn=async(t,i)=>{let o=n.webhooksUpdate.parse(i),{id:s,...p}=o,d=await r(`/webhooks/${s}`,t.key,{method:"PUT",body:p}),l=a.webhooksUpdate.parse(d);return await q(t,"hunterio.webhooks.update",{id:s},"completed"),l},On=async(t,i)=>{let o=n.webhooksReplace.parse(i),{id:s,...p}=o,d=await r(`/webhooks/${s}`,t.key,{method:"PATCH",body:p}),l=a.webhooksReplace.parse(d);return await q(t,"hunterio.webhooks.replace",{id:s},"completed"),l},wn=async(t,i)=>{let o=n.webhooksDelete.parse(i),s=await r(`/webhooks/${o.id}`,t.key,{method:"DELETE"}),p=a.webhooksDelete.parse(s);return await q(t,"hunterio.webhooks.delete",{id:o.id},"completed"),p},Rn=async(t,i)=>{let o=n.webhooksDeleteLegacy.parse(i),s=await r("/webhooks",t.key,{method:"DELETE",query:{id:o.id}}),p=a.webhooksDeleteLegacy.parse(s);return await q(t,"hunterio.webhooks.deleteLegacy",{id:o.id},"completed"),p};var Ae={get:kt,update:Ct},_n={get:vt},Ue={get:Sn,history:En},Fn={list:fn},Y={list:Ot,create:wt,update:Rt,replace:_t,delete:Ft},me={list:uo,get:co,push:lo},In={create:Xo},ye={companies:Lo,people:So,peoplePost:Eo},se={list:xo,create:ko,get:Co,delete:vo},Tn={get:Oo},De={find:Ro,findPost:_o},Hn={get:Ho},Ge={search:Io,searchPost:To},ze={search:Ms,reveal:Bs},he={find:Vo,findFound:Ko,findFoundPost:$o},qn={verify:No},An={get:Wo},Un={get:Bo},ge={person:Qo,company:Yo,combined:Zo},Dn={list:Is},m={list:os,create:ss,upsert:ns,get:as,update:is,replace:ps,delete:rs,enrich:us,exist:cs,bulkExist:ls,bulkUpsert:ds,bulkMove:ms,bulkDelete:ys,importCsv:hs},A={list:dn,create:mn,get:yn,update:hn,replace:gn,delete:bn},je={attach:es,detach:ts},U={list:mo,create:yo,get:ho,update:go,replace:bo,delete:fo},C={list:xs,create:ks,get:Cs,update:vs,replace:Os,delete:ws,favorite:Rs,unfavorite:_s,merge:Fs},D={list:gs,create:bs,get:fs,update:Ls,replace:Ss,delete:Es},S={list:It,create:Tt,get:Ht,delete:qt,tag:At,untag:Ut,bulkMove:Dt,bulkCopy:Gt,bulkDelete:zt,bulkTag:jt},E={list:Wt,create:Nt,get:Qt,update:Yt,replace:Zt,delete:Xt,addCompany:Jt,removeCompany:eo,favorite:to,unfavorite:oo},G={list:Pt,create:Mt,get:Bt,update:Vt,replace:Kt,delete:$t},z={list:so,create:no,get:ao,update:io,replace:po,delete:ro},b={list:en,create:tn,get:on,update:sn,replace:nn,delete:an,start:pn,pause:rn,resume:un,archive:cn,test:ln},be={list:Ys,add:Zs,remove:Xs},j={list:Vs,create:Ks,get:$s,update:Ws,replace:Ns,delete:Qs},Gn={get:Js},Pe={list:zs,send:js},P={list:Ts,create:Hs,get:qs,update:As,replace:Us,delete:Ds},v={list:qo,get:Ao,update:Uo,replace:Do,capacities:Go,healthReport:zo,usage:jo,warmupReport:Po,sequences:Mo},I={list:xn,create:kn,get:Cn,update:vn,replace:On,delete:wn,deleteLegacy:Rn};import{ApiError as ne}from"corsair/http";var zn={INSUFFICIENT_CREDITS_ERROR:{match:t=>{if(t instanceof ne&&t.status===429)return!0;let i=t.message.toLowerCase();return i.includes("insufficient credits")||i.includes("insufficient_credits")||i.includes("quota")||i.includes("plan limit")},handler:async()=>({maxRetries:0})},RATE_LIMIT_ERROR:{match:t=>{if(t instanceof ne&&t.status===403)return!0;let i=t.message.toLowerCase();return i.includes("too many requests")||i.includes("rate limit")||i.includes("rate_limited")},handler:async t=>{let i;return t instanceof ne&&t.retryAfter!==void 0&&(i=t.retryAfter),{maxRetries:5,headersRetryAfterMs:i}}},AUTH_ERROR:{match:t=>{if(t instanceof ne&&t.status===401)return!0;let i=t.message.toLowerCase();return i.includes("unauthorized")||i.includes("invalid api key")||i.includes("missing api key")},handler:async()=>({maxRetries:0})},BAD_REQUEST_ERROR:{match:t=>{if(t instanceof ne&&(t.status===400||t.status===422))return!0;let i=t.message.toLowerCase();return i.includes("bad request")||i.includes("unprocessable")||i.includes("validation")},handler:async()=>({maxRetries:0})},DEFAULT:{match:()=>!0,handler:async()=>({maxRetries:0})}};var jn={};var Pn={version:"1.0.0",entities:jn};var ul={account:{get:Ae.get,update:Ae.update},accountStats:{get:_n.get},usage:{get:Ue.get,history:Ue.history},teamMembers:{list:Fn.list},apiKeys:{list:Y.list,create:Y.create,update:Y.update,replace:Y.replace,delete:Y.delete},connectedApps:{list:me.list,get:me.get,push:me.push},feedback:{create:In.create},discover:{companies:ye.companies,people:ye.people,peoplePost:ye.peoplePost},discoverViews:{list:se.list,create:se.create,get:se.get,delete:se.delete},domainCount:{get:Tn.get},domainFinder:{find:De.find,findPost:De.findPost},domainsSuggestion:{get:Hn.get},domainSearch:{search:Ge.search,searchPost:Ge.searchPost},multiDomainSearch:{search:ze.search,reveal:ze.reveal},emailFinder:{find:he.find,findFound:he.findFound,findFoundPost:he.findFoundPost},emailVerifier:{verify:qn.verify},emailInsight:{get:An.get},emailCount:{get:Un.get},enrichment:{person:ge.person,company:ge.company,combined:ge.combined},lookalikes:{list:Dn.list},leads:{list:m.list,create:m.create,upsert:m.upsert,get:m.get,update:m.update,replace:m.replace,delete:m.delete,enrich:m.enrich,exist:m.exist,bulkExist:m.bulkExist,bulkUpsert:m.bulkUpsert,bulkMove:m.bulkMove,bulkDelete:m.bulkDelete,importCsv:m.importCsv},tags:{list:A.list,create:A.create,get:A.get,update:A.update,replace:A.replace,delete:A.delete},leadTags:{attach:je.attach,detach:je.detach},customAttributes:{list:U.list,create:U.create,get:U.get,update:U.update,replace:U.replace,delete:U.delete},leadsLists:{list:C.list,create:C.create,get:C.get,update:C.update,replace:C.replace,delete:C.delete,favorite:C.favorite,unfavorite:C.unfavorite,merge:C.merge},leadsListFolders:{list:D.list,create:D.create,get:D.get,update:D.update,replace:D.replace,delete:D.delete},companies:{list:S.list,create:S.create,get:S.get,delete:S.delete,tag:S.tag,untag:S.untag,bulkMove:S.bulkMove,bulkCopy:S.bulkCopy,bulkDelete:S.bulkDelete,bulkTag:S.bulkTag},companyLists:{list:E.list,create:E.create,get:E.get,update:E.update,replace:E.replace,delete:E.delete,addCompany:E.addCompany,removeCompany:E.removeCompany,favorite:E.favorite,unfavorite:E.unfavorite},companyListFolders:{list:G.list,create:G.create,get:G.get,update:G.update,replace:G.replace,delete:G.delete},companyTags:{list:z.list,create:z.create,get:z.get,update:z.update,replace:z.replace,delete:z.delete},sequences:{list:b.list,create:b.create,get:b.get,update:b.update,replace:b.replace,delete:b.delete,start:b.start,pause:b.pause,resume:b.resume,archive:b.archive,test:b.test},sequenceRecipients:{list:be.list,add:be.add,remove:be.remove},sequenceFollowUps:{list:j.list,create:j.create,get:j.get,update:j.update,replace:j.replace,delete:j.delete},sequenceStats:{get:Gn.get},messages:{list:Pe.list,send:Pe.send},messageTemplates:{list:P.list,create:P.create,get:P.get,update:P.update,replace:P.replace,delete:P.delete},emailAccounts:{list:v.list,get:v.get,update:v.update,replace:v.replace,capacities:v.capacities,healthReport:v.healthReport,usage:v.usage,warmupReport:v.warmupReport,sequences:v.sequences},webhooks:{list:I.list,create:I.create,get:I.get,update:I.update,replace:I.replace,delete:I.delete,deleteLegacy:I.deleteLegacy}},cl={"account.get":{input:n.accountGet,output:a.accountGet},"account.update":{input:n.accountUpdate,output:a.accountUpdate},"accountStats.get":{input:n.accountStatsGet,output:a.accountStatsGet},"usage.get":{input:n.usageGet,output:a.usageGet},"usage.history":{input:n.usageHistory,output:a.usageHistory},"teamMembers.list":{input:n.teamMembersList,output:a.teamMembersList},"apiKeys.list":{input:n.apiKeysList,output:a.apiKeysList},"apiKeys.create":{input:n.apiKeysCreate,output:a.apiKeysCreate},"apiKeys.update":{input:n.apiKeysUpdate,output:a.apiKeysUpdate},"apiKeys.replace":{input:n.apiKeysReplace,output:a.apiKeysReplace},"apiKeys.delete":{input:n.apiKeysDelete,output:a.apiKeysDelete},"connectedApps.list":{input:n.connectedAppsList,output:a.connectedAppsList},"connectedApps.get":{input:n.connectedAppsGet,output:a.connectedAppsGet},"connectedApps.push":{input:n.connectedAppsPush,output:a.connectedAppsPush},"feedback.create":{input:n.feedbackCreate,output:a.feedbackCreate},"discover.companies":{input:n.discoverCompanies,output:a.discoverCompanies},"discover.people":{input:n.discoverPeople,output:a.discoverPeople},"discover.peoplePost":{input:n.discoverPeoplePost,output:a.discoverPeoplePost},"discoverViews.list":{input:n.discoverViewsList,output:a.discoverViewsList},"discoverViews.create":{input:n.discoverViewsCreate,output:a.discoverViewsCreate},"discoverViews.get":{input:n.discoverViewsGet,output:a.discoverViewsGet},"discoverViews.delete":{input:n.discoverViewsDelete,output:a.discoverViewsDelete},"domainCount.get":{input:n.domainCountGet,output:a.domainCountGet},"domainFinder.find":{input:n.domainFinderFind,output:a.domainFinderFind},"domainFinder.findPost":{input:n.domainFinderFindPost,output:a.domainFinderFindPost},"domainsSuggestion.get":{input:n.domainsSuggestionGet,output:a.domainsSuggestionGet},"domainSearch.search":{input:n.domainSearchSearch,output:a.domainSearchSearch},"domainSearch.searchPost":{input:n.domainSearchSearchPost,output:a.domainSearchSearchPost},"multiDomainSearch.search":{input:n.multiDomainSearchSearch,output:a.multiDomainSearchSearch},"multiDomainSearch.reveal":{input:n.multiDomainSearchReveal,output:a.multiDomainSearchReveal},"emailFinder.find":{input:n.emailFinderFind,output:a.emailFinderFind},"emailFinder.findFound":{input:n.emailFinderFindFound,output:a.emailFinderFindFound},"emailFinder.findFoundPost":{input:n.emailFinderFindFoundPost,output:a.emailFinderFindFoundPost},"emailVerifier.verify":{input:n.emailVerifierVerify,output:a.emailVerifierVerify},"emailInsight.get":{input:n.emailInsightGet,output:a.emailInsightGet},"emailCount.get":{input:n.emailCountGet,output:a.emailCountGet},"enrichment.person":{input:n.enrichmentPerson,output:a.enrichmentPerson},"enrichment.company":{input:n.enrichmentCompany,output:a.enrichmentCompany},"enrichment.combined":{input:n.enrichmentCombined,output:a.enrichmentCombined},"lookalikes.list":{input:n.lookalikesList,output:a.lookalikesList},"leads.list":{input:n.leadsList,output:a.leadsList},"leads.create":{input:n.leadsCreate,output:a.leadsCreate},"leads.upsert":{input:n.leadsUpsert,output:a.leadsUpsert},"leads.get":{input:n.leadsGet,output:a.leadsGet},"leads.update":{input:n.leadsUpdate,output:a.leadsUpdate},"leads.replace":{input:n.leadsReplace,output:a.leadsReplace},"leads.delete":{input:n.leadsDelete,output:a.leadsDelete},"leads.enrich":{input:n.leadsEnrich,output:a.leadsEnrich},"leads.exist":{input:n.leadsExist,output:a.leadsExist},"leads.bulkExist":{input:n.leadsBulkExist,output:a.leadsBulkExist},"leads.bulkUpsert":{input:n.leadsBulkUpsert,output:a.leadsBulkUpsert},"leads.bulkMove":{input:n.leadsBulkMove,output:a.leadsBulkMove},"leads.bulkDelete":{input:n.leadsBulkDelete,output:a.leadsBulkDelete},"leads.importCsv":{input:n.leadsImportCsv,output:a.leadsImportCsv},"tags.list":{input:n.tagsList,output:a.tagsList},"tags.create":{input:n.tagsCreate,output:a.tagsCreate},"tags.get":{input:n.tagsGet,output:a.tagsGet},"tags.update":{input:n.tagsUpdate,output:a.tagsUpdate},"tags.replace":{input:n.tagsReplace,output:a.tagsReplace},"tags.delete":{input:n.tagsDelete,output:a.tagsDelete},"leadTags.attach":{input:n.leadTagsAttach,output:a.leadTagsAttach},"leadTags.detach":{input:n.leadTagsDetach,output:a.leadTagsDetach},"customAttributes.list":{input:n.customAttributesList,output:a.customAttributesList},"customAttributes.create":{input:n.customAttributesCreate,output:a.customAttributesCreate},"customAttributes.get":{input:n.customAttributesGet,output:a.customAttributesGet},"customAttributes.update":{input:n.customAttributesUpdate,output:a.customAttributesUpdate},"customAttributes.replace":{input:n.customAttributesReplace,output:a.customAttributesReplace},"customAttributes.delete":{input:n.customAttributesDelete,output:a.customAttributesDelete},"leadsLists.list":{input:n.leadsListsList,output:a.leadsListsList},"leadsLists.create":{input:n.leadsListsCreate,output:a.leadsListsCreate},"leadsLists.get":{input:n.leadsListsGet,output:a.leadsListsGet},"leadsLists.update":{input:n.leadsListsUpdate,output:a.leadsListsUpdate},"leadsLists.replace":{input:n.leadsListsReplace,output:a.leadsListsReplace},"leadsLists.delete":{input:n.leadsListsDelete,output:a.leadsListsDelete},"leadsLists.favorite":{input:n.leadsListsFavorite,output:a.leadsListsFavorite},"leadsLists.unfavorite":{input:n.leadsListsUnfavorite,output:a.leadsListsUnfavorite},"leadsLists.merge":{input:n.leadsListsMerge,output:a.leadsListsMerge},"leadsListFolders.list":{input:n.leadsListFoldersList,output:a.leadsListFoldersList},"leadsListFolders.create":{input:n.leadsListFoldersCreate,output:a.leadsListFoldersCreate},"leadsListFolders.get":{input:n.leadsListFoldersGet,output:a.leadsListFoldersGet},"leadsListFolders.update":{input:n.leadsListFoldersUpdate,output:a.leadsListFoldersUpdate},"leadsListFolders.replace":{input:n.leadsListFoldersReplace,output:a.leadsListFoldersReplace},"leadsListFolders.delete":{input:n.leadsListFoldersDelete,output:a.leadsListFoldersDelete},"companies.list":{input:n.companiesList,output:a.companiesList},"companies.create":{input:n.companiesCreate,output:a.companiesCreate},"companies.get":{input:n.companiesGet,output:a.companiesGet},"companies.delete":{input:n.companiesDelete,output:a.companiesDelete},"companies.tag":{input:n.companiesTag,output:a.companiesTag},"companies.untag":{input:n.companiesUntag,output:a.companiesUntag},"companies.bulkMove":{input:n.companiesBulkMove,output:a.companiesBulkMove},"companies.bulkCopy":{input:n.companiesBulkCopy,output:a.companiesBulkCopy},"companies.bulkDelete":{input:n.companiesBulkDelete,output:a.companiesBulkDelete},"companies.bulkTag":{input:n.companiesBulkTag,output:a.companiesBulkTag},"companyLists.list":{input:n.companyListsList,output:a.companyListsList},"companyLists.create":{input:n.companyListsCreate,output:a.companyListsCreate},"companyLists.get":{input:n.companyListsGet,output:a.companyListsGet},"companyLists.update":{input:n.companyListsUpdate,output:a.companyListsUpdate},"companyLists.replace":{input:n.companyListsReplace,output:a.companyListsReplace},"companyLists.delete":{input:n.companyListsDelete,output:a.companyListsDelete},"companyLists.addCompany":{input:n.companyListsAddCompany,output:a.companyListsAddCompany},"companyLists.removeCompany":{input:n.companyListsRemoveCompany,output:a.companyListsRemoveCompany},"companyLists.favorite":{input:n.companyListsFavorite,output:a.companyListsFavorite},"companyLists.unfavorite":{input:n.companyListsUnfavorite,output:a.companyListsUnfavorite},"companyListFolders.list":{input:n.companyListFoldersList,output:a.companyListFoldersList},"companyListFolders.create":{input:n.companyListFoldersCreate,output:a.companyListFoldersCreate},"companyListFolders.get":{input:n.companyListFoldersGet,output:a.companyListFoldersGet},"companyListFolders.update":{input:n.companyListFoldersUpdate,output:a.companyListFoldersUpdate},"companyListFolders.replace":{input:n.companyListFoldersReplace,output:a.companyListFoldersReplace},"companyListFolders.delete":{input:n.companyListFoldersDelete,output:a.companyListFoldersDelete},"companyTags.list":{input:n.companyTagsList,output:a.companyTagsList},"companyTags.create":{input:n.companyTagsCreate,output:a.companyTagsCreate},"companyTags.get":{input:n.companyTagsGet,output:a.companyTagsGet},"companyTags.update":{input:n.companyTagsUpdate,output:a.companyTagsUpdate},"companyTags.replace":{input:n.companyTagsReplace,output:a.companyTagsReplace},"companyTags.delete":{input:n.companyTagsDelete,output:a.companyTagsDelete},"sequences.list":{input:n.sequencesList,output:a.sequencesList},"sequences.create":{input:n.sequencesCreate,output:a.sequencesCreate},"sequences.get":{input:n.sequencesGet,output:a.sequencesGet},"sequences.update":{input:n.sequencesUpdate,output:a.sequencesUpdate},"sequences.replace":{input:n.sequencesReplace,output:a.sequencesReplace},"sequences.delete":{input:n.sequencesDelete,output:a.sequencesDelete},"sequences.start":{input:n.sequencesStart,output:a.sequencesStart},"sequences.pause":{input:n.sequencesPause,output:a.sequencesPause},"sequences.resume":{input:n.sequencesResume,output:a.sequencesResume},"sequences.archive":{input:n.sequencesArchive,output:a.sequencesArchive},"sequences.test":{input:n.sequencesTest,output:a.sequencesTest},"sequenceRecipients.list":{input:n.sequenceRecipientsList,output:a.sequenceRecipientsList},"sequenceRecipients.add":{input:n.sequenceRecipientsAdd,output:a.sequenceRecipientsAdd},"sequenceRecipients.remove":{input:n.sequenceRecipientsRemove,output:a.sequenceRecipientsRemove},"sequenceFollowUps.list":{input:n.sequenceFollowUpsList,output:a.sequenceFollowUpsList},"sequenceFollowUps.create":{input:n.sequenceFollowUpsCreate,output:a.sequenceFollowUpsCreate},"sequenceFollowUps.get":{input:n.sequenceFollowUpsGet,output:a.sequenceFollowUpsGet},"sequenceFollowUps.update":{input:n.sequenceFollowUpsUpdate,output:a.sequenceFollowUpsUpdate},"sequenceFollowUps.replace":{input:n.sequenceFollowUpsReplace,output:a.sequenceFollowUpsReplace},"sequenceFollowUps.delete":{input:n.sequenceFollowUpsDelete,output:a.sequenceFollowUpsDelete},"sequenceStats.get":{input:n.sequenceStatsGet,output:a.sequenceStatsGet},"messages.list":{input:n.messagesList,output:a.messagesList},"messages.send":{input:n.messagesSend,output:a.messagesSend},"messageTemplates.list":{input:n.messageTemplatesList,output:a.messageTemplatesList},"messageTemplates.create":{input:n.messageTemplatesCreate,output:a.messageTemplatesCreate},"messageTemplates.get":{input:n.messageTemplatesGet,output:a.messageTemplatesGet},"messageTemplates.update":{input:n.messageTemplatesUpdate,output:a.messageTemplatesUpdate},"messageTemplates.replace":{input:n.messageTemplatesReplace,output:a.messageTemplatesReplace},"messageTemplates.delete":{input:n.messageTemplatesDelete,output:a.messageTemplatesDelete},"emailAccounts.list":{input:n.emailAccountsList,output:a.emailAccountsList},"emailAccounts.get":{input:n.emailAccountsGet,output:a.emailAccountsGet},"emailAccounts.update":{input:n.emailAccountsUpdate,output:a.emailAccountsUpdate},"emailAccounts.replace":{input:n.emailAccountsReplace,output:a.emailAccountsReplace},"emailAccounts.capacities":{input:n.emailAccountsCapacities,output:a.emailAccountsCapacities},"emailAccounts.healthReport":{input:n.emailAccountsHealthReport,output:a.emailAccountsHealthReport},"emailAccounts.usage":{input:n.emailAccountsUsage,output:a.emailAccountsUsage},"emailAccounts.warmupReport":{input:n.emailAccountsWarmupReport,output:a.emailAccountsWarmupReport},"emailAccounts.sequences":{input:n.emailAccountsSequences,output:a.emailAccountsSequences},"webhooks.list":{input:n.webhooksList,output:a.webhooksList},"webhooks.create":{input:n.webhooksCreate,output:a.webhooksCreate},"webhooks.get":{input:n.webhooksGet,output:a.webhooksGet},"webhooks.update":{input:n.webhooksUpdate,output:a.webhooksUpdate},"webhooks.replace":{input:n.webhooksReplace,output:a.webhooksReplace},"webhooks.delete":{input:n.webhooksDelete,output:a.webhooksDelete},"webhooks.deleteLegacy":{input:n.webhooksDeleteLegacy,output:a.webhooksDeleteLegacy}},ll="api_key",dl={"account.get":{riskLevel:"read",description:"Get the Hunter.io account profile"},"account.update":{riskLevel:"write",description:"Update the Hunter.io account profile"},"accountStats.get":{riskLevel:"read",description:"Get global account statistics and credit usage"},"usage.get":{riskLevel:"read",description:"Get account usage and plan limits"},"usage.history":{riskLevel:"read",description:"Get the daily API usage history for this billing period"},"teamMembers.list":{riskLevel:"read",description:"List the team members on the account"},"apiKeys.list":{riskLevel:"read",description:"List the API keys on the account"},"apiKeys.create":{riskLevel:"write",description:"Create a new API key"},"apiKeys.update":{riskLevel:"write",description:"Update an API key"},"apiKeys.replace":{riskLevel:"write",description:"Replace an API key definition"},"apiKeys.delete":{riskLevel:"destructive",irreversible:!0,description:"Delete an API key permanently [DESTRUCTIVE \xB7 IRREVERSIBLE]"},"connectedApps.list":{riskLevel:"read",description:"List the connected apps on the account"},"connectedApps.get":{riskLevel:"read",description:"Get a connected app"},"connectedApps.push":{riskLevel:"write",description:"Push leads to a connected app"},"feedback.create":{riskLevel:"write",description:"Send product feedback to Hunter"},"discover.companies":{riskLevel:"read",description:"Discover companies matching the given filters"},"discover.people":{riskLevel:"read",description:"Discover people matching the given filters"},"discover.peoplePost":{riskLevel:"read",description:"Discover people with nested filters (POST form)"},"discoverViews.list":{riskLevel:"read",description:"List saved discover views"},"discoverViews.create":{riskLevel:"write",description:"Save the current discover filters as a view"},"discoverViews.get":{riskLevel:"read",description:"Get a saved discover view"},"discoverViews.delete":{riskLevel:"destructive",irreversible:!0,description:"Delete a saved discover view permanently [DESTRUCTIVE \xB7 IRREVERSIBLE]"},"domainCount.get":{riskLevel:"read",description:"Count the email addresses available for a domain"},"domainFinder.find":{riskLevel:"read",description:"Find the domain of a company by name"},"domainFinder.findPost":{riskLevel:"read",description:"Find the domain of a company by name (POST form)"},"domainsSuggestion.get":{riskLevel:"read",description:"Suggest similar company domains"},"domainSearch.search":{riskLevel:"read",description:"List the email addresses found for a domain"},"domainSearch.searchPost":{riskLevel:"read",description:"List the email addresses found for a domain (POST form)"},"multiDomainSearch.search":{riskLevel:"read",description:"Find email addresses across multiple domains"},"multiDomainSearch.reveal":{riskLevel:"read",description:"Reveal the verified email addresses of a multi-domain search"},"emailFinder.find":{riskLevel:"read",description:"Find the most likely email of a person"},"emailFinder.findFound":{riskLevel:"read",description:"Check whether an email was already found for a person"},"emailFinder.findFoundPost":{riskLevel:"read",description:"Check whether an email was already found (POST form)"},"emailVerifier.verify":{riskLevel:"read",description:"Verify the deliverability of an email address"},"emailInsight.get":{riskLevel:"read",description:"Get insight data for an email address"},"emailCount.get":{riskLevel:"read",description:"Count the email addresses found for a domain"},"enrichment.person":{riskLevel:"read",description:"Enrich a person profile from an email or name"},"enrichment.company":{riskLevel:"read",description:"Enrich a company profile from a domain or name"},"enrichment.combined":{riskLevel:"read",description:"Enrich a person and their company together"},"lookalikes.list":{riskLevel:"read",description:"Find companies similar to a seed company"},"leads.list":{riskLevel:"read",description:"List leads with filters"},"leads.create":{riskLevel:"write",description:"Create a lead"},"leads.upsert":{riskLevel:"write",description:"Create or update a lead"},"leads.get":{riskLevel:"read",description:"Get a lead"},"leads.update":{riskLevel:"write",description:"Update a lead"},"leads.replace":{riskLevel:"write",description:"Replace a lead"},"leads.delete":{riskLevel:"destructive",irreversible:!0,description:"Delete a lead permanently [DESTRUCTIVE \xB7 IRREVERSIBLE]"},"leads.enrich":{riskLevel:"write",description:"Enrich a lead with data found by Hunter"},"leads.exist":{riskLevel:"read",description:"Check whether an email exists as a lead"},"leads.bulkExist":{riskLevel:"read",description:"Check which of the given emails exist as leads"},"leads.bulkUpsert":{riskLevel:"write",description:"Create or update up to 100 leads in a single call"},"leads.bulkMove":{riskLevel:"write",description:"Move leads to another leads list"},"leads.bulkDelete":{riskLevel:"destructive",irreversible:!0,description:"Delete leads in bulk permanently [DESTRUCTIVE \xB7 IRREVERSIBLE]"},"leads.importCsv":{riskLevel:"write",description:"Create a CSV import job for leads"},"tags.list":{riskLevel:"read",description:"List the lead tags on the account"},"tags.create":{riskLevel:"write",description:"Create a lead tag"},"tags.get":{riskLevel:"read",description:"Get a lead tag"},"tags.update":{riskLevel:"write",description:"Update a lead tag"},"tags.replace":{riskLevel:"write",description:"Replace a lead tag"},"tags.delete":{riskLevel:"destructive",irreversible:!0,description:"Delete a lead tag permanently [DESTRUCTIVE \xB7 IRREVERSIBLE]"},"leadTags.attach":{riskLevel:"write",description:"Attach a tag to a lead"},"leadTags.detach":{riskLevel:"destructive",description:"Detach a tag from a lead [DESTRUCTIVE]"},"customAttributes.list":{riskLevel:"read",description:"List the custom attributes on the account"},"customAttributes.create":{riskLevel:"write",description:"Create a custom attribute"},"customAttributes.get":{riskLevel:"read",description:"Get a custom attribute"},"customAttributes.update":{riskLevel:"write",description:"Update a custom attribute"},"customAttributes.replace":{riskLevel:"write",description:"Replace a custom attribute"},"customAttributes.delete":{riskLevel:"destructive",irreversible:!0,description:"Delete a custom attribute permanently [DESTRUCTIVE \xB7 IRREVERSIBLE]"},"leadsLists.list":{riskLevel:"read",description:"List the leads lists on the account"},"leadsLists.create":{riskLevel:"write",description:"Create a leads list"},"leadsLists.get":{riskLevel:"read",description:"Get a leads list and its leads"},"leadsLists.update":{riskLevel:"write",description:"Update a leads list"},"leadsLists.replace":{riskLevel:"write",description:"Replace a leads list"},"leadsLists.delete":{riskLevel:"destructive",irreversible:!0,description:"Delete a leads list permanently [DESTRUCTIVE \xB7 IRREVERSIBLE]"},"leadsLists.favorite":{riskLevel:"write",description:"Mark a leads list as favorite"},"leadsLists.unfavorite":{riskLevel:"write",description:"Remove the favorite mark from a leads list"},"leadsLists.merge":{riskLevel:"destructive",description:"Merge a leads list into another list [DESTRUCTIVE]"},"leadsListFolders.list":{riskLevel:"read",description:"List the leads list folders"},"leadsListFolders.create":{riskLevel:"write",description:"Create a leads list folder"},"leadsListFolders.get":{riskLevel:"read",description:"Get a leads list folder"},"leadsListFolders.update":{riskLevel:"write",description:"Update a leads list folder"},"leadsListFolders.replace":{riskLevel:"write",description:"Replace a leads list folder"},"leadsListFolders.delete":{riskLevel:"destructive",irreversible:!0,description:"Delete a leads list folder permanently [DESTRUCTIVE \xB7 IRREVERSIBLE]"},"companies.list":{riskLevel:"read",description:"List companies with filters"},"companies.create":{riskLevel:"write",description:"Add a company to the account from a domain"},"companies.get":{riskLevel:"read",description:"Get a company"},"companies.delete":{riskLevel:"destructive",irreversible:!0,description:"Delete a company permanently [DESTRUCTIVE \xB7 IRREVERSIBLE]"},"companies.tag":{riskLevel:"write",description:"Assign a tag to a company"},"companies.untag":{riskLevel:"destructive",description:"Remove a tag from a company [DESTRUCTIVE]"},"companies.bulkMove":{riskLevel:"write",description:"Move companies to another company list"},"companies.bulkCopy":{riskLevel:"write",description:"Copy companies to another company list"},"companies.bulkDelete":{riskLevel:"destructive",irreversible:!0,description:"Delete companies in bulk permanently [DESTRUCTIVE \xB7 IRREVERSIBLE]"},"companies.bulkTag":{riskLevel:"write",description:"Assign a tag to companies in bulk"},"companyLists.list":{riskLevel:"read",description:"List the company lists on the account"},"companyLists.create":{riskLevel:"write",description:"Create a company list"},"companyLists.get":{riskLevel:"read",description:"Get a company list and its companies"},"companyLists.update":{riskLevel:"write",description:"Update a company list"},"companyLists.replace":{riskLevel:"write",description:"Replace a company list"},"companyLists.delete":{riskLevel:"destructive",irreversible:!0,description:"Delete a company list permanently [DESTRUCTIVE \xB7 IRREVERSIBLE]"},"companyLists.addCompany":{riskLevel:"write",description:"Add a company to a company list"},"companyLists.removeCompany":{riskLevel:"destructive",description:"Remove a company from a company list [DESTRUCTIVE]"},"companyLists.favorite":{riskLevel:"write",description:"Mark a company list as favorite"},"companyLists.unfavorite":{riskLevel:"write",description:"Remove the favorite mark from a company list"},"companyListFolders.list":{riskLevel:"read",description:"List the company list folders"},"companyListFolders.create":{riskLevel:"write",description:"Create a company list folder"},"companyListFolders.get":{riskLevel:"read",description:"Get a company list folder"},"companyListFolders.update":{riskLevel:"write",description:"Update a company list folder"},"companyListFolders.replace":{riskLevel:"write",description:"Replace a company list folder"},"companyListFolders.delete":{riskLevel:"destructive",irreversible:!0,description:"Delete a company list folder permanently [DESTRUCTIVE \xB7 IRREVERSIBLE]"},"companyTags.list":{riskLevel:"read",description:"List the company tags on the account"},"companyTags.create":{riskLevel:"write",description:"Create a company tag"},"companyTags.get":{riskLevel:"read",description:"Get a company tag"},"companyTags.update":{riskLevel:"write",description:"Update a company tag"},"companyTags.replace":{riskLevel:"write",description:"Replace a company tag"},"companyTags.delete":{riskLevel:"destructive",irreversible:!0,description:"Delete a company tag permanently [DESTRUCTIVE \xB7 IRREVERSIBLE]"},"sequences.list":{riskLevel:"read",description:"List sequences"},"sequences.create":{riskLevel:"write",description:"Create a sequence draft"},"sequences.get":{riskLevel:"read",description:"Get a sequence"},"sequences.update":{riskLevel:"write",description:"Update a sequence"},"sequences.replace":{riskLevel:"write",description:"Replace a sequence"},"sequences.delete":{riskLevel:"destructive",irreversible:!0,description:"Delete a sequence draft permanently [DESTRUCTIVE \xB7 IRREVERSIBLE]"},"sequences.start":{riskLevel:"write",description:"Start a sequence"},"sequences.pause":{riskLevel:"write",description:"Pause an active sequence"},"sequences.resume":{riskLevel:"write",description:"Resume a paused sequence"},"sequences.archive":{riskLevel:"write",description:"Archive a sequence"},"sequences.test":{riskLevel:"write",description:"Send test emails for every step of a sequence"},"sequenceRecipients.list":{riskLevel:"read",description:"List the recipients of a sequence"},"sequenceRecipients.add":{riskLevel:"write",description:"Add recipients to a sequence"},"sequenceRecipients.remove":{riskLevel:"destructive",description:"Remove recipients from a sequence and cancel their messages [DESTRUCTIVE]"},"sequenceFollowUps.list":{riskLevel:"read",description:"List the follow-up steps of a sequence"},"sequenceFollowUps.create":{riskLevel:"write",description:"Add a follow-up step to a sequence"},"sequenceFollowUps.get":{riskLevel:"read",description:"Get a follow-up step"},"sequenceFollowUps.update":{riskLevel:"write",description:"Update a follow-up step"},"sequenceFollowUps.replace":{riskLevel:"write",description:"Replace a follow-up step"},"sequenceFollowUps.delete":{riskLevel:"destructive",irreversible:!0,description:"Delete the last follow-up step permanently [DESTRUCTIVE \xB7 IRREVERSIBLE]"},"sequenceStats.get":{riskLevel:"read",description:"Get performance statistics for a sequence"},"messages.list":{riskLevel:"read",description:"List messages sent or received"},"messages.send":{riskLevel:"write",description:"Send a message from a connected email account"},"messageTemplates.list":{riskLevel:"read",description:"List message templates"},"messageTemplates.create":{riskLevel:"write",description:"Create a message template"},"messageTemplates.get":{riskLevel:"read",description:"Get a message template"},"messageTemplates.update":{riskLevel:"write",description:"Update a message template"},"messageTemplates.replace":{riskLevel:"write",description:"Replace a message template"},"messageTemplates.delete":{riskLevel:"destructive",irreversible:!0,description:"Delete a message template permanently [DESTRUCTIVE \xB7 IRREVERSIBLE]"},"emailAccounts.list":{riskLevel:"read",description:"List the connected email accounts"},"emailAccounts.get":{riskLevel:"read",description:"Get a connected email account"},"emailAccounts.update":{riskLevel:"write",description:"Update email account settings"},"emailAccounts.replace":{riskLevel:"write",description:"Replace email account settings"},"emailAccounts.capacities":{riskLevel:"read",description:"Get the sending capacities of all email accounts"},"emailAccounts.healthReport":{riskLevel:"read",description:"Get the deliverability health report of an email account"},"emailAccounts.usage":{riskLevel:"read",description:"Get sending usage and limits of an email account"},"emailAccounts.warmupReport":{riskLevel:"read",description:"Get the warmup report of an email account"},"emailAccounts.sequences":{riskLevel:"read",description:"List the sequences using an email account"},"webhooks.list":{riskLevel:"read",description:"List the configured webhooks"},"webhooks.create":{riskLevel:"write",description:"Create a webhook"},"webhooks.get":{riskLevel:"read",description:"Get a webhook"},"webhooks.update":{riskLevel:"write",description:"Update a webhook"},"webhooks.replace":{riskLevel:"write",description:"Replace a webhook"},"webhooks.delete":{riskLevel:"destructive",irreversible:!0,description:"Delete a webhook permanently [DESTRUCTIVE \xB7 IRREVERSIBLE]"},"webhooks.deleteLegacy":{riskLevel:"destructive",irreversible:!0,description:"Delete a webhook permanently via the legacy endpoint [DESTRUCTIVE \xB7 IRREVERSIBLE]"}},ml={api_key:{}};function uh(t={}){let i={...t,authType:t.authType??ll};return{id:"hunterio",authConfig:ml,schema:Pn,options:i,hooks:i.hooks,endpoints:ul,webhooks:{},endpointMeta:dl,endpointSchemas:cl,errorHandlers:(()=>{let{DEFAULT:o,...s}=zn,{DEFAULT:p,...d}=i.errorHandlers??{};return{...s,...d,DEFAULT:p??o}})(),keyBuilder:async(o,s)=>s==="endpoint"&&i.key?i.key:s==="endpoint"&&o.authType==="api_key"?await o.keys.get_api_key()??"":""}}export{uh as hunterio,ml as hunterioAuthConfig,cl as hunterioEndpointSchemas};
|
|
1
|
+
import{createManagedPricingCredentialCache as ed,resolveManagedPricingApiKey as td}from"corsair/hub";import{logEventFromContext as _t}from"corsair/core";import{AuthMissingError as ia}from"corsair/core";import{request as pa}from"corsair/http";var ke=class extends Error{constructor(o,s){super(o);this.code=s;this.name="HunterioAPIError"}},ra="https://api.hunter.io/v2",ua={enabled:!0,maxRetries:0,initialRetryDelay:1e3,backoffMultiplier:2,headerNames:{retryAfter:"retry-after",resetTime:"x-ratelimit-reset",remaining:"x-ratelimit-remaining",limit:"x-ratelimit-limit"},isRateLimitError:(t,n)=>t===403&&Ce(n)};function Ce(t){let n=la(t);return n.length===0||n.includes("too_many_requests")}function la(t){if(t===null||typeof t!="object")return[];let n=t.errors;return Array.isArray(n)?n.map(o=>o!==null&&typeof o=="object"?o.id:void 0).filter(o=>typeof o=="string"):[]}async function r(t,n,o={}){let{method:s="GET",body:p,query:d}=o;if(n!==void 0&&n.length===0)throw new ia("hunterio","api_key");let c={BASE:ra,VERSION:"2.0.0",WITH_CREDENTIALS:!1,CREDENTIALS:"omit",TIMEOUT:3e4,HEADERS:{...n?{Authorization:`Bearer ${n}`}:{}}},H={method:s,url:t,body:p!==void 0?p:void 0,mediaType:"application/json; charset=utf-8",query:d??{}};try{return await pa(c,H,{rateLimitConfig:ua})}catch(Ye){throw Ye instanceof Error?Ye:new ke("Unknown error")}}import{z as e}from"zod";var g=e.object({total:e.number().optional(),limit:e.number().optional(),offset:e.number().optional(),results:e.number().optional(),params:e.unknown().optional()}).passthrough(),l=t=>e.object({status:e.string().optional(),data:t,meta:g.optional()}).passthrough(),_=e.object({status:e.string().optional(),data:e.unknown().optional(),meta:g.optional()}).passthrough(),u=e.union([e.number(),e.string()]),v={limit:e.number().int().min(1).optional(),offset:e.number().int().min(0).optional()},Oe=e.object({used:e.number().optional(),available:e.number().optional(),remaining:e.number().optional(),over_quota:e.number().optional()}).passthrough(),ve=e.object({credits:Oe.optional(),searches:Oe.optional(),verifications:Oe.optional()}).passthrough(),ca=e.object({first_name:e.string().nullable().optional(),last_name:e.string().nullable().optional(),email:e.string().optional(),plan_name:e.string().optional(),plan_level:e.number().optional(),reset_date:e.string().optional(),team_id:e.number().optional(),requests:ve.optional(),calls:e.object({_deprecation_notice:e.string().optional(),used:e.number().optional(),available:e.number().optional()}).passthrough().optional()}).passthrough(),da=e.object({}).passthrough(),ma=l(ca),ya=e.object({first_name:e.string().optional(),last_name:e.string().optional()}),ha=e.undefined(),ga=e.object({}).passthrough(),ba=_,fa=e.object({show_overage_requests:e.boolean().optional()}),La=l(e.object({reset_date:e.string().optional(),requests:ve.optional()}).passthrough()),Sa=e.object({...v,start_date:e.string().optional(),end_date:e.string().optional(),user_id:e.number().int().optional()}),Ea=e.object({id:e.number().optional(),type:e.string().optional(),product:e.string().optional(),source:e.string().optional(),credits:e.number().optional(),free:e.boolean().optional(),made_at:e.string().optional(),made_by:e.object({id:e.number().optional(),first_name:e.string().nullable().optional(),last_name:e.string().nullable().optional(),api_key_name:e.string().nullable().optional()}).passthrough().optional(),request:e.object({url:e.string().optional(),ip:e.string().nullable().optional(),user_agent:e.string().nullable().optional(),filters:e.unknown().optional(),bulk_search_id:e.number().nullable().optional(),bulk_finder_id:e.number().nullable().optional()}).passthrough().optional()}).passthrough(),xa=l(e.array(Ea)),ka=e.object({...v}),Ca=e.object({id:e.number().optional(),name:e.string().optional(),email:e.string().optional()}).passthrough(),Oa=l(e.array(Ca)),ue=e.object({id:e.number().optional(),name:e.string().nullable().optional(),token:e.string().optional(),created_at:e.string().optional()}).passthrough(),va=e.object({}).passthrough(),wa=l(e.array(ue)),Ra=e.object({name:e.string().max(255).optional()}),_a=l(ue),tt=e.object({id:u,name:e.string().max(255)}),Fa=l(ue),Ia=tt,Ha=l(ue),Ta=e.object({id:u}),qa=e.undefined(),Aa=e.object({feedback_type:e.enum(["missing_endpoint","incorrect_documentation","unexpected_response","bug","data_quality","confusing_behavior","feature_request","other"]),summary:e.string().max(200),details:e.string(),endpoint:e.string().optional(),expected:e.string().optional(),actual:e.string().optional(),request_example:e.string().optional(),response_example:e.string().optional(),severity:e.enum(["low","medium","high","blocking"]).optional(),agent:e.string().optional()}),Da=l(e.object({id:e.number().optional(),status:e.string().optional(),feedback_type:e.string().optional(),severity:e.string().optional(),message:e.string().optional()}).passthrough()),Ua=e.object({target_field:e.string().optional(),source_field:e.string().optional(),direction:e.string().optional(),conflict_policy:e.string().optional()}).passthrough(),ot=e.object({id:e.number().optional(),provider:e.string().optional(),name:e.string().optional(),category:e.string().optional(),provider_email:e.string().nullable().optional(),connected_at:e.string().optional(),updated_at:e.string().optional(),attribute_mappings:e.array(Ua).optional()}).passthrough(),Ga=e.object({...v}),ja=l(e.array(ot)),za=e.object({id:u}),Pa=l(ot),Ma=e.object({id:u,lead_ids:e.array(e.number().int()).optional(),leads_list_id:u.optional()}).refine(t=>t.lead_ids!==void 0||t.leads_list_id!==void 0,{message:"Provide lead_ids or leads_list_id"}),Ba=l(e.object({connected_app_id:e.number().optional(),provider:e.string().optional(),leads_count:e.number().optional(),status:e.string().optional()}).passthrough()),Je=e.object({continent:e.string().optional(),business_region:e.string().optional(),country:e.string().optional(),state:e.string().optional(),city:e.string().optional()}),we={include:e.array(Je).optional(),exclude:e.array(Je).optional()},L={include:e.array(e.string()).optional(),exclude:e.array(e.string()).optional()};var Va=["1-10","11-50","51-200","201-500","501-1000","1001-5000","5001-10000","10001+"],Ka=["pre_seed","seed","pre_series_a","series_a","pre_series_b","series_b","pre_series_c","series_c+","other"],le=e.object({query:e.string().optional(),organization:e.object({domain:e.array(e.string()).optional(),name:e.array(e.string()).optional()}).optional(),headquarters_location:e.object(we).optional(),industry:e.object(L).optional(),headcount:e.array(e.enum(Va)).optional(),company_type:e.object(L).optional(),keywords:e.object({...L,match:e.enum(["all","any"]).optional()}).optional(),year_founded:e.object({...L,include:e.array(e.number().int()).optional(),exclude:e.array(e.number().int()).optional(),from:e.number().int().optional(),to:e.number().int().optional()}).optional(),technology:e.object({...L,match:e.enum(["all","any"]).optional()}).optional(),funding:e.object({series:e.array(e.enum(Ka)).optional(),amount:e.object({from:e.number().optional(),to:e.number().optional()}).optional(),date:e.object({from:e.string().optional(),to:e.string().optional()}).optional(),received:e.boolean().optional()}).optional(),job_openings:e.object({hiring:e.boolean().optional(),department:e.array(e.string()).optional(),job_title:e.object(L).optional(),posted_date:e.enum(["last7d","last30d","last90d"]).optional(),open_roles:e.object({from:e.number().int().optional(),to:e.number().int().optional()}).optional(),include_closed_roles:e.boolean().optional()}).optional(),similar_to:e.object({domain:e.string().optional(),organization:e.string().optional()}).optional(),limit:e.number().int().min(1).max(100).optional(),offset:e.number().int().min(0).max(1e4).optional()}),$a=e.object({domain:e.string().optional(),organization:e.string().nullable().optional(),emails_count:e.object({personal:e.number().nullable().optional(),generic:e.number().nullable().optional(),total:e.number().nullable().optional()}).passthrough().optional(),already_saved:e.boolean().optional(),city:e.string().nullable().optional(),state:e.string().nullable().optional(),country:e.string().nullable().optional(),company_type:e.string().nullable().optional(),headcount:e.string().nullable().optional(),industry:e.string().nullable().optional(),keywords:e.array(e.string()).nullable().optional(),description:e.string().nullable().optional(),year_founded:e.number().nullable().optional(),socials:e.object({facebook:e.string().nullable().optional(),instagram:e.string().nullable().optional(),twitter:e.string().nullable().optional(),youtube:e.string().nullable().optional()}).passthrough().optional(),technologies:e.array(e.string()).optional(),technology_details:e.array(e.object({category:e.string().nullable().optional(),category_label:e.string().nullable().optional(),name:e.string().nullable().optional(),slug:e.string().optional(),website:e.string().nullable().optional()}).passthrough()).optional()}).passthrough(),st={filters:e.unknown().optional(),permalink:e.string().nullable().optional()},Wa=le,Na=e.object({status:e.string().optional(),data:e.array($a),meta:g.extend(st).optional()}).passthrough(),Qa=e.object({domain:e.string().optional(),organization:e.string().optional(),emails_count:e.object({personal:e.number().optional(),generic:e.number().optional(),total:e.number().optional()}).passthrough().optional()}).passthrough(),Za=le,Ya=le,nt=e.object({status:e.string().optional(),data:e.array(Qa),meta:g.extend({...st,total_emails:e.object({personal:e.number().optional(),generic:e.number().optional(),total:e.number().optional()}).passthrough().optional()}).optional()}).passthrough(),Ja=nt,Xa=nt,Re=e.object({id:e.number().optional(),name:e.string().optional(),filters:e.record(e.string(),e.unknown()).optional(),created_at:e.string().optional(),updated_at:e.string().optional()}).passthrough(),ei=e.object({}).passthrough(),ti=l(e.object({views:e.array(Re)}).passthrough()),oi=e.object({name:e.string(),filters:e.record(e.string(),e.unknown()).optional()}),si=l(Re),ni=e.object({id:u}),ai=l(Re),ii=e.object({id:u}),pi=e.undefined(),ri=le,ui=l(e.object({total:e.number().optional()}).passthrough()),at=e.object({company:e.string(),limit:e.number().int().min(1).optional(),perfect_match:e.boolean().optional()}),li=at,ci=e.object({domain:e.string().optional(),company_name:e.string().optional()}).passthrough(),it=l(e.array(ci)),di=it,mi=it,yi=e.object({query:e.string(),limit:e.number().int().min(1).optional()}),hi=_,_e={domain:e.string().optional(),company:e.string().optional(),type:e.enum(["personal","generic"]).optional(),limit:e.number().int().min(1).max(100).optional(),offset:e.number().int().min(0).optional(),department:e.string().optional(),seniority:e.string().optional(),job_titles:e.string().optional(),decision_maker:e.boolean().optional(),required_field:e.string().optional(),verification_status:e.string().optional(),source_type:e.enum(["found","generated"]).optional(),saved_leads:e.boolean().optional(),aggregations:e.boolean().optional()},gi=e.object(_e),bi=e.object({..._e,location:e.object(we).optional()}),fi=e.object({domain:e.string().optional(),uri:e.string().optional(),extracted_on:e.string().nullable().optional(),last_seen_on:e.string().nullable().optional(),still_on_page:e.boolean().optional()}).passthrough(),Li=e.object({value:e.string().optional(),type:e.string().optional(),confidence:e.number().optional(),first_name:e.string().nullable().optional(),last_name:e.string().nullable().optional(),position:e.string().nullable().optional(),position_raw:e.string().nullable().optional(),seniority:e.string().nullable().optional(),department:e.string().nullable().optional(),decision_maker:e.boolean().optional(),linkedin:e.string().nullable().optional(),twitter:e.string().nullable().optional(),phone_number:e.string().nullable().optional(),source_type:e.string().optional(),verification:e.object({date:e.string().nullable().optional(),status:e.string().nullable().optional()}).passthrough().nullable().optional(),sources:e.array(fi).optional()}).passthrough(),Si=e.object({domain:e.string().nullable().optional(),disposable:e.boolean().optional(),webmail:e.boolean().optional(),accept_all:e.boolean().optional(),pattern:e.string().nullable().optional(),organization:e.string().nullable().optional(),linked_domains:e.array(e.string()).optional(),emails:e.array(Li).optional()}).passthrough(),ce=e.object({status:e.string().optional(),data:Si,meta:g.extend({results_approximate:e.boolean().optional(),aggregations:e.unknown().optional()}).optional()}).passthrough(),Ei=ce,xi=ce,pt={..._e,provenance:e.string().optional()},ki=e.object(pt),Ci=e.object({...pt,location:e.object(we).optional()}),Oi=ce,vi=ce,wi=e.object({domain:e.string().optional(),company_name:e.string().optional(),company_type:e.string().optional(),industry:e.string().optional(),headcount:e.string().optional(),founded_year:e.string().optional(),location:e.string().optional(),technology:e.string().optional(),department:e.string().optional(),seniority:e.string().optional(),job_title:e.string().optional(),type:e.string().optional(),verification_status:e.string().optional(),provenance:e.string().optional(),min_confidence:e.number().int().optional(),required_field:e.string().optional(),decision_maker:e.boolean().optional(),exclude_already_saved:e.boolean().optional(),per_domain:e.boolean().optional(),search_after:e.string().optional(),limit:e.number().int().min(1).optional()}),Ri=e.object({name:e.string().nullable().optional(),position:e.string().nullable().optional(),department:e.string().nullable().optional(),seniority:e.string().nullable().optional(),type:e.string().optional(),decision_maker:e.boolean().optional(),domain:e.string().optional(),company_name:e.string().nullable().optional(),full_name_exists:e.boolean().optional(),phone_number_exists:e.boolean().optional(),linkedin_exists:e.boolean().optional(),verification:e.object({date:e.string().nullable().optional(),status:e.string().nullable().optional()}).passthrough().optional(),reveal_handle:e.string().optional(),provenance:e.string().nullable().optional()}).passthrough(),_i=e.object({status:e.string().optional(),data:e.array(Ri),meta:g.extend({next_search_after:e.string().nullable().optional(),per_domain:e.array(e.object({domain:e.string().optional(),emails:e.number().optional()}).passthrough()).optional()}).optional()}).passthrough(),Fi=e.object({handles:e.array(e.string()).min(1).max(100)}),Ii=_,Fe={domain:e.string().optional(),company:e.string().optional(),first_name:e.string().optional(),last_name:e.string().optional(),full_name:e.string().optional(),linkedin_handle:e.string().optional(),max_duration:e.number().int().min(3).max(20).optional()},Hi=e.object(Fe),Ti=e.object(Fe),qi=e.object(Fe),Ai=e.object({domain:e.string().optional(),uri:e.string().optional(),extracted_on:e.string().nullable().optional(),last_seen_on:e.string().nullable().optional(),still_on_page:e.boolean().optional()}).passthrough(),Di=e.object({email:e.string().nullable().optional(),score:e.number().nullable().optional(),domain:e.string().nullable().optional(),company:e.string().nullable().optional(),first_name:e.string().nullable().optional(),last_name:e.string().nullable().optional(),position:e.string().nullable().optional(),linkedin_url:e.string().nullable().optional(),twitter:e.string().nullable().optional(),phone_number:e.string().nullable().optional(),accept_all:e.boolean().nullable().optional(),source_type:e.string().nullable().optional(),sources:e.array(Ai).optional(),verification:e.object({date:e.string().nullable().optional(),status:e.string().nullable().optional(),id:e.number().nullable().optional()}).passthrough().nullable().optional()}).passthrough(),Ie=l(Di),Ui=Ie,Gi=Ie,ji=Ie,zi=e.object({email:e.string(),domain_metadata:e.union([e.boolean(),e.string()]).optional()}),Pi=e.object({domain:e.string().optional(),uri:e.string().optional(),extracted_on:e.string().nullable().optional(),last_seen_on:e.string().nullable().optional(),still_on_page:e.boolean().optional()}).passthrough(),Mi=e.object({status:e.string().optional(),result:e.string().optional(),score:e.number().nullable().optional(),email:e.string().optional(),regexp:e.boolean().optional(),gibberish:e.boolean().optional(),disposable:e.boolean().optional(),webmail:e.boolean().optional(),mx_records:e.boolean().optional(),smtp_server:e.boolean().nullable().optional(),smtp_check:e.boolean().optional(),accept_all:e.boolean().optional(),block:e.boolean().optional(),verification:e.object({date:e.string().nullable().optional(),status:e.string().nullable().optional(),id:e.number().nullable().optional()}).passthrough().nullable().optional(),sources:e.array(Pi).optional(),_deprecation_notice:e.string().optional()}).passthrough(),Bi=e.object({status:e.string().optional(),data:Mi.optional(),meta:g.extend({company_name:e.string().nullable().optional(),domain:e.string().nullable().optional(),following_domain:e.boolean().optional(),webmail:e.boolean().optional()}).optional()}).passthrough(),Vi=e.object({email:e.string()}),Ki=l(e.object({email:e.string().optional(),gibberish:e.boolean().optional(),pattern:e.boolean().optional(),mx_records:e.boolean().optional(),disposable:e.boolean().optional(),webmail:e.boolean().optional(),webmail_allowed:e.boolean().nullable().optional()}).passthrough()),$i=e.object({domain:e.string().optional(),company:e.string().optional(),type:e.enum(["personal","generic"]).optional(),include_job_titles:e.union([e.boolean(),e.string()]).optional()}),Wi=l(e.object({total:e.number().optional(),personal_emails:e.number().optional(),generic_emails:e.number().optional(),department:e.record(e.string(),e.number()).optional(),seniority:e.record(e.string(),e.number()).optional(),job_titles:e.record(e.string(),e.number()).optional()}).passthrough()),pe=e.object({id:e.string().nullable().optional(),name:e.object({fullName:e.string().nullable().optional(),givenName:e.string().nullable().optional(),familyName:e.string().nullable().optional()}).passthrough().nullable().optional(),email:e.string().nullable().optional(),location:e.string().nullable().optional(),timeZone:e.string().nullable().optional(),utcOffset:e.number().nullable().optional(),geo:e.object({city:e.string().nullable().optional(),country:e.string().nullable().optional(),countryCode:e.string().nullable().optional(),lat:e.number().nullable().optional(),lng:e.number().nullable().optional(),state:e.string().nullable().optional(),stateCode:e.string().nullable().optional()}).passthrough().nullable().optional(),bio:e.string().nullable().optional(),site:e.string().nullable().optional(),avatar:e.string().nullable().optional(),employment:e.object({domain:e.string().nullable().optional(),name:e.string().nullable().optional(),role:e.string().nullable().optional(),seniority:e.string().nullable().optional(),subRole:e.string().nullable().optional(),title:e.string().nullable().optional()}).passthrough().nullable().optional(),facebook:e.object({handle:e.string().nullable().optional()}).passthrough().nullable().optional(),linkedin:e.object({handle:e.string().nullable().optional()}).passthrough().nullable().optional(),googleplus:e.object({handle:e.string().nullable().optional()}).passthrough().nullable().optional(),twitter:e.object({handle:e.string().nullable().optional(),avatar:e.string().nullable().optional(),bio:e.string().nullable().optional(),followers:e.number().nullable().optional(),following:e.number().nullable().optional(),location:e.string().nullable().optional(),site:e.string().nullable().optional(),statuses:e.number().nullable().optional(),favorites:e.number().nullable().optional(),id:e.union([e.string(),e.number()]).nullable().optional()}).passthrough().nullable().optional(),github:e.object({handle:e.string().nullable().optional(),avatar:e.string().nullable().optional(),blog:e.string().nullable().optional(),company:e.string().nullable().optional(),followers:e.number().nullable().optional(),following:e.number().nullable().optional(),id:e.union([e.string(),e.number()]).nullable().optional()}).passthrough().nullable().optional(),gravatar:e.object({handle:e.string().nullable().optional(),avatar:e.string().nullable().optional(),avatars:e.array(e.unknown()).optional(),urls:e.array(e.unknown()).optional()}).passthrough().nullable().optional(),fuzzy:e.boolean().optional(),emailProvider:e.string().nullable().optional(),phone:e.string().nullable().optional(),indexedAt:e.string().nullable().optional(),activeAt:e.string().nullable().optional(),inactiveAt:e.string().nullable().optional()}).passthrough(),re=e.object({id:e.string().nullable().optional(),name:e.string().nullable().optional(),legalName:e.string().nullable().optional(),domain:e.string().nullable().optional(),domainAliases:e.array(e.string()).optional(),site:e.object({emailAddresses:e.array(e.string()).optional(),phoneNumbers:e.array(e.string()).optional()}).passthrough().nullable().optional(),category:e.object({sector:e.string().nullable().optional(),industryGroup:e.string().nullable().optional(),industry:e.string().nullable().optional(),subIndustry:e.string().nullable().optional(),sicCode:e.string().nullable().optional(),sic4Codes:e.array(e.string()).optional(),naicsCode:e.string().nullable().optional(),naics6Codes:e.array(e.string()).optional(),naics6Codes2022:e.array(e.string()).optional(),gicsCode:e.string().nullable().optional()}).passthrough().nullable().optional(),tags:e.array(e.string()).nullable().optional(),description:e.string().nullable().optional(),foundedYear:e.number().nullable().optional(),location:e.string().nullable().optional(),timeZone:e.string().nullable().optional(),utcOffset:e.number().nullable().optional(),geo:e.record(e.string(),e.unknown()).nullable().optional(),logo:e.string().nullable().optional(),facebook:e.object({handle:e.string().nullable().optional(),likes:e.number().nullable().optional()}).passthrough().nullable().optional(),linkedin:e.object({handle:e.string().nullable().optional()}).passthrough().nullable().optional(),twitter:e.object({handle:e.string().nullable().optional()}).passthrough().nullable().optional(),crunchbase:e.object({handle:e.string().nullable().optional()}).passthrough().nullable().optional(),youtube:e.object({handle:e.string().nullable().optional()}).passthrough().nullable().optional(),instagram:e.object({handle:e.string().nullable().optional()}).passthrough().nullable().optional(),emailProvider:e.string().nullable().optional(),type:e.string().nullable().optional(),companyType:e.string().nullable().optional(),ticker:e.string().nullable().optional(),identifiers:e.object({usEIN:e.string().nullable().optional()}).passthrough().nullable().optional(),phone:e.string().nullable().optional(),metrics:e.object({employees:e.string().nullable().optional(),employeesCount:e.number().nullable().optional(),alexaGlobalRank:e.number().nullable().optional(),alexaUsRank:e.number().nullable().optional(),annualRevenue:e.number().nullable().optional(),estimatedAnnualRevenue:e.union([e.string(),e.number()]).nullable().optional(),marketCap:e.union([e.string(),e.number()]).nullable().optional(),raised:e.number().nullable().optional(),fiscalYearEnd:e.union([e.string(),e.number()]).nullable().optional(),trafficRank:e.string().nullable().optional()}).passthrough().nullable().optional(),indexedAt:e.string().nullable().optional(),tech:e.array(e.string()).optional(),techCategories:e.array(e.string()).optional(),fundingRounds:e.array(e.object({amount:e.string().nullable().optional(),date:e.string().nullable().optional(),investors:e.array(e.string()).optional(),type:e.string().nullable().optional()}).passthrough()).optional(),parent:e.object({domain:e.string().nullable().optional()}).passthrough().nullable().optional(),ultimateParent:e.object({domain:e.string().nullable().optional()}).passthrough().nullable().optional(),alreadySaved:e.boolean().optional(),emailsCount:e.union([e.number(),e.object({personal:e.number().nullable().optional(),generic:e.number().nullable().optional(),total:e.number().nullable().optional()}).passthrough()]).nullable().optional()}).passthrough(),He={clearbit_format:e.union([e.boolean(),e.string()]).optional()},Ni=e.object({email:e.string().optional(),linkedin_handle:e.string().optional(),...He}),Qi=e.object({domain:e.string(),...He}),Zi=e.object({email:e.string().optional(),linkedin_handle:e.string().optional(),...He}),Yi=e.union([e.object({status:e.string().optional(),data:pe,meta:g.optional()}).passthrough(),pe]),Ji=e.union([e.object({status:e.string().optional(),data:re,meta:g.optional()}).passthrough(),re]),Xi=e.union([e.object({status:e.string().optional(),data:e.object({person:pe.optional(),company:re.optional()}).passthrough(),meta:g.optional()}).passthrough(),e.object({person:pe.optional(),company:re.optional()}).passthrough()]),ep=e.object({date:e.string().nullable().optional(),status:e.string().nullable().optional()}).passthrough(),Xe=e.object({id:e.number().nullable().optional(),name:e.string().nullable().optional(),leads_count:e.number().nullable().optional()}).passthrough(),T=e.object({id:e.number().optional(),email:e.string().nullable().optional(),first_name:e.string().nullable().optional(),last_name:e.string().nullable().optional(),position:e.string().nullable().optional(),company:e.string().nullable().optional(),company_industry:e.string().nullable().optional(),company_size:e.string().nullable().optional(),confidence_score:e.number().nullable().optional(),website:e.string().nullable().optional(),country_code:e.string().nullable().optional(),source:e.string().nullable().optional(),department:e.string().nullable().optional(),linkedin_url:e.string().nullable().optional(),phone_number:e.string().nullable().optional(),twitter:e.string().nullable().optional(),sync_status:e.string().nullable().optional(),notes:e.string().nullable().optional(),sending_status:e.string().nullable().optional(),last_activity_at:e.string().nullable().optional(),last_contacted_at:e.string().nullable().optional(),verification:ep.nullable().optional(),leads_list:Xe.nullable().optional(),leads_lists:e.array(Xe).optional(),custom_attributes:e.record(e.string(),e.unknown()).optional(),created_at:e.string().nullable().optional(),created_by:e.number().nullable().optional()}).passthrough(),Te={email:e.string().optional(),first_name:e.string().optional(),last_name:e.string().optional(),position:e.string().optional(),company:e.string().optional(),company_industry:e.string().optional(),company_size:e.string().optional(),confidence_score:e.number().int().min(0).max(100).optional(),website:e.string().optional(),country_code:e.string().optional(),department:e.string().optional(),linkedin_url:e.string().optional(),phone_number:e.string().optional(),twitter:e.string().optional(),notes:e.string().optional(),source:e.string().optional(),leads_list_id:u.optional(),leads_list_ids:e.array(u).optional(),leads_list_name:e.string().max(255).optional(),custom_attributes:e.record(e.string(),e.string()).optional()},rt={company_type:e.string().optional(),lead_country_code:e.string().optional(),lead_city:e.string().optional(),lead_state:e.string().optional()},tp=e.object({...Te,...rt}),ut=e.object(Te),lt=e.object({id:u,...Te,...rt}),op=lt,sp={from:e.string().optional(),to:e.string().optional()},M=e.union([e.literal("*"),e.literal("~"),e.enum(["last1h","today","this_week","last7d","last30d","current_year"]),e.object(sp)]),np=e.object({leads_list_id:u.optional(),email:e.string().optional(),first_name:e.string().optional(),last_name:e.string().optional(),position:e.union([e.string(),e.array(e.string())]).optional(),company:e.string().optional(),industry:e.string().optional(),website:e.string().optional(),country_code:e.string().optional(),company_size:e.string().optional(),source:e.string().optional(),twitter:e.string().optional(),linkedin_url:e.string().optional(),phone_number:e.string().optional(),sync_status:e.enum(["pending","error","success"]).optional(),sending_status:e.array(e.enum(["clicked","opened","sent","pending","error","bounced","unsubscribed","replied","~"])).optional(),verification_status:e.array(e.enum(["accept_all","disposable","invalid","unknown","valid","webmail","pending"])).optional(),last_activity_at:M.optional(),last_contacted_at:M.optional(),last_exported_at:M.optional(),created_at:M.optional(),updated_at:M.optional(),verification_date:M.optional(),department:e.array(e.enum(["executive","it","finance","management","sales","legal","support","hr","marketing","communication","education","design","health","operations"])).optional(),tags:e.array(e.number().int()).optional(),sequence_ids:e.union([e.array(e.number().int()),e.literal("*"),e.literal("~")]).optional(),campaign_ids:e.union([e.array(e.number().int()),e.literal("*"),e.literal("~")]).optional(),user_id:e.array(e.number().int()).optional(),confidence_score:e.union([e.literal("*"),e.literal("~"),e.object({from:e.number().int().min(0).max(100).optional(),to:e.number().int().min(0).max(100).optional()})]).optional(),custom_attributes:e.record(e.string(),e.string()).optional(),query:e.string().optional(),location:e.object({country:e.object(L).optional(),state:e.object(L).optional(),city:e.object(L).optional(),continent:e.object(L).optional(),business_region:e.object(L).optional()}).optional(),limit:e.number().int().min(1).max(1e3).optional(),offset:e.number().int().min(0).max(1e5).optional()}),ap=l(e.object({leads:e.array(T)}).passthrough()),ip=l(T),pp=l(T),rp=e.object({id:u}),up=l(T),lp=e.undefined(),cp=e.undefined(),dp=e.object({id:u}),mp=e.undefined(),yp=e.object({id:u}),hp=l(T),gp=e.object({email:e.string()}),bp=l(e.object({id:e.number().nullable(),leads_list_id:e.number().nullable(),leads_list_name:e.string().nullable()}).passthrough()),fp=e.object({emails:e.array(e.string()).min(1).max(100)}),Lp=l(e.array(e.object({email:e.string(),id:e.number().nullable()}).passthrough())),Sp=e.object({leads_list_id:u.optional(),leads_list_name:e.string().max(255).optional(),leads:e.array(ut).min(1).max(100)}),Ep=e.object({index:e.number().optional(),email:e.string().nullable().optional(),status:e.string().optional(),lead:T.nullable().optional(),errors:e.array(e.unknown()).optional()}).passthrough(),xp=e.object({status:e.string().optional(),data:e.array(Ep),meta:g.extend({created:e.number().optional(),updated:e.number().optional(),failed:e.number().optional()}).optional()}).passthrough(),kp=e.object({leads_list_id:u,target_leads_list_id:u,lead_ids:e.array(e.number().int()).optional()}),Cp=l(e.object({source_leads_list_id:e.number().optional(),target_leads_list_id:e.number().optional(),leads_count:e.number().optional(),status:e.string().optional()}).passthrough()),Op=e.object({lead_ids:e.array(e.number().int()).optional(),leads_list_id:u.optional()}),vp=_,wp=e.object({csv_data:e.string(),leads_list_id:u.optional(),file_name:e.string().optional()}),Rp=_,h=e.object({id:e.number().optional(),name:e.string().optional(),color:e.string().nullable().optional(),created_at:e.string().optional()}).passthrough(),_p=e.object({limit:e.number().int().min(1).max(100).optional(),offset:e.number().int().min(0).optional()}),Fp=l(e.object({tags:e.array(h)}).passthrough()),Ip=e.object({id:u}),Hp=l(h),Tp=e.object({name:e.string(),color:e.string().optional()}),qp=l(h),ct=e.object({id:u,name:e.string().optional(),color:e.string().optional()}),Ap=l(h),Dp=ct,Up=l(h),Gp=e.object({id:u}),jp=e.undefined(),zp=e.object({id:u,tag_id:u}),Pp=l(e.object({tags:e.array(h)}).passthrough()),Mp=e.object({id:u,tag_id:u}),Bp=e.undefined(),qe=e.object({id:e.number().optional(),label:e.string().optional(),slug:e.string().optional()}).passthrough(),Vp=e.object({}).passthrough(),Kp=l(e.object({leads_custom_attributes:e.array(qe)})),$p=e.object({id:u}),Wp=l(qe),Np=e.object({label:e.string()}),Qp=l(qe),dt=e.object({id:u,label:e.string()}),Zp=e.undefined(),Yp=dt,Jp=e.undefined(),Xp=e.object({id:u}),er=e.undefined(),Ae=e.object({id:e.number().optional(),name:e.string().optional(),leads_count:e.number().optional(),type:e.string().optional(),created_at:e.string().optional(),leads_list_folder_id:e.number().nullable().optional()}).passthrough(),tr=e.object({limit:e.number().int().min(1).max(100).optional(),offset:e.number().int().min(0).optional()}),or=l(e.object({leads_lists:e.array(Ae)}).passthrough()),sr=e.object({id:u,limit:e.number().int().min(1).max(100).optional(),offset:e.number().int().min(0).optional()}),nr=l(Ae.extend({leads:e.array(T.passthrough()).optional()})),ar=e.object({name:e.string().max(255),leads_list_folder_id:u.nullable().optional()}),ir=l(Ae),mt=e.object({id:u,name:e.string().max(255),leads_list_folder_id:u.nullable().optional()}),pr=e.undefined(),rr=mt,ur=e.undefined(),lr=e.object({id:u}),cr=e.union([_,e.undefined()]),de=e.object({id:e.number().optional(),favorited:e.boolean().optional()}).passthrough(),dr=e.object({id:u}),mr=l(de),yr=e.object({id:u}),hr=l(de),gr=e.object({id:u,destination_leads_list_id:u}),br=e.undefined(),yt=["374151","3489F9","10B981","F5BA0B","EF4444","7C3AED","F97316","E5E7EB","B4D9F7","BAE6B0","FDE68A","FBD0D0","D4C4F8","FFD79B"],De=e.object({id:e.number().optional(),name:e.string().optional(),color:e.string().optional(),leads_lists_count:e.number().optional(),created_at:e.string().optional()}).passthrough(),fr=e.object({limit:e.number().int().min(1).max(100).optional(),offset:e.number().int().min(0).optional()}),Lr=l(e.object({folders:e.array(De)}).passthrough()),Sr=e.object({id:u}),Er=l(De),xr=e.object({name:e.string(),color:e.enum(yt)}),kr=l(De),ht=e.object({id:u,name:e.string().optional(),color:e.enum(yt).optional()}),Cr=e.undefined(),Or=ht,vr=e.undefined(),wr=e.object({id:u}),Rr=e.undefined(),Y=e.object({id:e.number().optional(),domain:e.string().nullable().optional(),leads_count:e.number().nullable().optional(),created_at:e.string().optional()}).passthrough(),_r=e.object({limit:e.number().int().min(1).max(100).optional(),offset:e.number().int().min(0).max(9999).optional(),sort:e.enum(["company_name","website","company_size","company_type","leads_count","created_at","updated_at","last_exported_at","last_funding_date"]).optional(),direction:e.enum(["asc","desc"]).optional(),query:e.string().optional(),company_name:e.string().optional(),website:e.string().optional(),company_size:e.string().optional(),company_type:e.string().optional(),industry:e.string().optional(),technology:e.string().optional(),keywords:e.string().optional(),source:e.string().optional(),tags:e.string().optional(),company_list_ids:e.string().optional(),leads_count:e.string().optional(),location:e.string().optional(),country:e.string().optional(),founded_year:e.string().optional(),funding_series:e.string().optional(),funding_amount:e.string().optional(),last_funding_date:e.string().optional(),location_country_included:e.string().optional(),location_country_excluded:e.string().optional(),location_state_included:e.string().optional(),location_state_excluded:e.string().optional(),location_city_included:e.string().optional(),location_city_excluded:e.string().optional(),location_continent_included:e.string().optional(),location_continent_excluded:e.string().optional(),location_business_region_included:e.string().optional(),location_business_region_excluded:e.string().optional()}),Fr=l(e.object({companies:e.array(Y)}).passthrough()),Ir=e.object({id:u}),Hr=l(Y),Tr=e.object({domain:e.string()}),qr=l(Y),Ar=e.object({id:u}),Dr=e.undefined(),Ur=e.object({id:u,tag_id:u.optional(),tag_name:e.string().optional()}).refine(t=>t.tag_id!==void 0||t.tag_name!==void 0,{message:"Provide tag_id or tag_name"}),Gr=l(h),jr=e.object({id:u,tag_id:u}),zr=e.undefined(),Pr=e.object({company_list_id:u,target_company_list_id:u,company_ids:e.array(e.number().int()).optional()}),Mr=l(e.object({source_company_list_id:e.number().optional(),target_company_list_id:e.number().optional(),companies_count:e.number().optional(),status:e.string().optional()}).passthrough()),Br=e.object({target_company_list_id:u,company_ids:e.array(e.number().int()).optional(),company_list_id:u.optional()}).refine(t=>t.company_ids!==void 0||t.company_list_id!==void 0,{message:"Provide company_ids or company_list_id"}),Vr=l(e.object({target_company_list_id:e.number().optional(),companies_count:e.number().optional(),status:e.string().optional()}).passthrough()),Kr=e.object({company_ids:e.array(e.number().int()).optional(),company_list_id:u.optional()}).refine(t=>t.company_ids!==void 0||t.company_list_id!==void 0,{message:"Provide company_ids or company_list_id"}),$r=l(e.object({requested_count:e.number().optional(),deleted_count:e.number().optional(),status:e.string().optional()}).passthrough()),Wr=e.object({company_ids:e.array(e.number().int()).optional(),company_list_id:u.optional(),tag_id:u.optional(),tag_name:e.string().optional()}).refine(t=>(t.company_ids!==void 0||t.company_list_id!==void 0)&&(t.tag_id!==void 0||t.tag_name!==void 0),{message:"Provide a company selection and tag_id or tag_name"}),Nr=l(e.object({tag:h.optional(),companies_count:e.number().optional(),status:e.string().optional()}).passthrough()),Ue=e.object({id:e.number().optional(),name:e.string().optional(),type:e.string().optional(),companies_count:e.number().optional(),company_list_folder_id:e.number().nullable().optional(),created_at:e.string().optional(),filters:e.unknown().optional()}).passthrough(),Qr=e.object({limit:e.number().int().min(1).max(1e3).optional(),offset:e.number().int().min(0).optional()}),Zr=l(e.object({company_lists:e.array(Ue)}).passthrough()),Yr=e.object({id:u,limit:e.number().int().min(1).max(1e3).optional(),offset:e.number().int().min(0).optional()}),Jr=l(Ue.extend({companies:e.array(Y.passthrough()).optional()})),Xr=e.object({name:e.string(),type:e.enum(["static","dynamic"]).optional(),filters:e.unknown().optional(),company_list_folder_id:u.nullable().optional()}).refine(t=>t.type!=="dynamic"||t.filters!==void 0,{message:"filters is required when type is dynamic"}),eu=l(Ue),gt=e.object({id:u,name:e.string().optional(),type:e.enum(["static","dynamic"]).optional(),filters:e.unknown().optional(),company_list_folder_id:u.nullable().optional()}),tu=e.undefined(),ou=gt,su=e.undefined(),nu=e.object({id:u}),au=e.union([_,e.undefined()]),iu=e.object({company_list_id:u,company_id:u}),pu=l(Y),ru=e.object({company_list_id:u,limit:e.number().int().min(1).max(100).optional(),offset:e.number().int().min(0).optional()}),uu=e.object({id:e.number(),domain:e.string(),created_at:e.string().optional(),organization:e.string().nullable().optional()}).passthrough(),lu=l(e.array(uu)),cu=e.object({company_list_id:u,company_id:u}),du=e.undefined(),mu=e.object({id:u}),yu=l(de),hu=e.object({id:u}),gu=l(de),Ge=e.object({id:e.number().optional(),name:e.string().optional(),color:e.string().nullable().optional(),company_lists_count:e.number().optional(),created_at:e.string().optional()}).passthrough(),bu=e.object({limit:e.number().int().min(1).max(100).optional(),offset:e.number().int().min(0).optional()}),fu=l(e.object({folders:e.array(Ge)}).passthrough()),Lu=e.object({id:u}),Su=l(Ge),Eu=e.object({name:e.string(),color:e.string().optional()}),xu=l(Ge),bt=e.object({id:u,name:e.string().optional(),color:e.string().optional()}),ku=e.undefined(),Cu=bt,Ou=e.undefined(),vu=e.object({id:u}),wu=e.undefined(),Ru=e.object({limit:e.number().int().min(1).max(100).optional(),offset:e.number().int().min(0).optional()}),_u=l(e.object({company_tags:e.array(h)}).passthrough()),Fu=e.object({id:u}),Iu=l(h),Hu=e.object({name:e.string(),color:e.string().optional()}),Tu=l(h),ft=e.object({id:u,name:e.string().optional(),color:e.string().optional()}),qu=l(h),Au=ft,Du=l(h),Uu=e.object({id:u}),Gu=e.undefined(),me=e.object({endpoint:e.string(),params:e.record(e.string(),e.unknown()),mcp_tool:e.string().nullable().optional(),charges_credits:e.boolean()}).passthrough(),ie=e.string(),ju=e.object({since:ie.optional(),leads_since:ie.optional(),monitored_since:ie.optional()}),et=e.object({type:e.string(),status:e.string(),reason:e.string().nullable(),count:e.number().nullable(),count_exact:e.boolean().nullable(),next_call:me.nullable(),next_since:e.string().nullable()}).passthrough(),zu=e.object({data:e.object({needs_attention:e.object({items:e.array(et)}).passthrough(),new_this_week:e.object({items:e.array(et)}).passthrough(),account:e.object({status:e.string(),plan_name:e.string().nullable(),plan_level:e.number().nullable(),reset_date:e.string().nullable(),requests:ve.nullable(),next_call:me.nullable()}).passthrough()}).passthrough(),meta:e.object({since:e.string(),next_since:e.string()}).passthrough()}).passthrough(),Pu=["funding_round","technology_added","technology_removed","new_contact","new_executive","job_posted","hiring_volume","hiring_spike","company_growth","location_changed","position_changed","email_invalidated"],Mu=e.object({source:e.enum(["leads","monitored"]),signal_id:e.number().int().min(1).optional(),since:ie.optional(),types:e.array(e.enum(Pu)).optional(),limit:e.number().int().min(1).max(100).optional(),cursor:e.string().optional()}),Bu=e.object({id:e.string(),source:e.string(),type:e.string(),occurred_at:e.string(),company:e.object({domain:e.string(),name:e.string().nullable()}).passthrough(),details:e.record(e.string(),e.unknown()),signal_id:e.number().nullable(),next_call:me.nullable()}).passthrough(),Vu=e.object({data:e.array(Bu),meta:e.object({limit:e.number(),next_cursor:e.string().nullable(),next_since:e.string(),window_start:e.string(),types_skipped:e.array(e.string()).optional(),signals_included:e.array(e.number()).optional(),signals_skipped:e.array(e.number()).optional()}).passthrough()}).passthrough(),Ku=e.object({limit:e.number().int().min(1).max(100).optional(),offset:e.number().int().min(0).optional()}),$u=e.object({id:e.number(),name:e.string(),type:e.string(),status:e.string(),filters:e.record(e.string(),e.unknown()),event_types:e.array(e.string()),created_at:e.string()}).passthrough(),Wu=e.object({data:e.array($u),meta:e.object({total:e.number(),limit:e.number(),offset:e.number()}).passthrough()}).passthrough(),Nu=e.object({limit:e.number().int().min(1).max(100).optional(),offset:e.number().int().min(0).optional()}),Qu=e.object({id:e.number(),type:e.string(),source:e.string(),description:e.string(),results_count:e.number(),score:e.number(),seen_at:e.string().nullable(),created_at:e.string(),next_call:me}).passthrough(),Zu=e.object({data:e.array(Qu),meta:e.object({results:e.number(),limit:e.number(),offset:e.number()}).passthrough()}).passthrough(),Yu=e.object({id:e.number().int().min(1),limit:e.number().int().min(1).max(100).optional(),offset:e.number().int().min(0).optional()}),Ju=e.object({name:e.string().nullable(),position:e.string().nullable(),department:e.string().nullable(),seniority:e.string().nullable(),type:e.string(),provenance:e.string().nullable().optional(),decision_maker:e.boolean().nullable(),domain:e.string(),company_name:e.string().nullable(),full_name_exists:e.boolean(),phone_number_exists:e.boolean(),verification:e.object({date:e.string().nullable(),status:e.string().nullable()}).passthrough(),reveal_handle:e.string()}).passthrough(),Xu=e.object({domain:e.string(),company_name:e.string().nullable(),emails_count:e.object({personal:e.number(),generic:e.number(),total:e.number()}).passthrough()}).passthrough(),el=e.object({data:e.array(e.union([Ju,Xu])),meta:e.object({type:e.string(),results:e.number(),limit:e.number(),offset:e.number()}).passthrough()}).passthrough(),tl=e.object({company_list_id:u.optional(),domain:e.string().optional(),country:e.string().optional(),size:e.array(e.string()).optional(),industry:e.array(e.string()).optional(),limit:e.number().int().min(1).optional()}).refine(t=>t.company_list_id!==void 0||t.domain!==void 0,{message:"Provide company_list_id or domain"}),ol=e.object({company_name:e.string().nullable().optional(),domain:e.string().optional(),industry:e.string().nullable().optional(),size:e.string().nullable().optional(),country:e.string().nullable().optional(),similarity_score:e.number().optional()}).passthrough(),sl=e.object({status:e.string().optional(),data:e.array(ol),meta:g.optional()}).passthrough(),nl=["draft","planned","active","paused","completed","archived","preparing","error"],Lt=e.object({id:e.number().optional(),email:e.string().optional()}).passthrough(),J=e.object({id:e.number().optional(),name:e.string().optional(),status:e.enum(nl).optional(),recipients_count:e.number().optional(),editable:e.boolean().optional(),started:e.boolean().optional(),paused:e.boolean().optional(),archived:e.boolean().optional(),schedule:e.object({start_at:e.string().nullable().optional(),time_start:e.string().optional(),time_end:e.string().optional(),days:e.array(e.number().int()).optional()}).passthrough().optional(),settings:e.object({tracked:e.boolean().optional(),tracked_links:e.boolean().optional(),add_unsubscribe_link:e.boolean().optional(),ai_assistant_enabled:e.boolean().optional(),bcc_recipient:e.string().nullable().optional()}).passthrough().optional(),ab_testing:e.object({enabled:e.boolean().optional(),variant_a_percentage:e.number().nullable().optional(),variant_b_percentage:e.number().nullable().optional(),winner_variant:e.string().nullable().optional(),winner_selected_at:e.string().nullable().optional()}).passthrough().optional(),email_account_ids:e.array(e.number().int()).optional(),follow_ups:e.object({unique_steps_count:e.number().optional(),steps:e.array(e.number().int()).optional()}).passthrough().optional(),owner:Lt.nullable().optional(),created_at:e.string().optional(),updated_at:e.string().optional()}).passthrough(),St={name:e.string().optional(),email_account_ids:e.array(e.number().int()).optional(),schedule_time_start:e.string().optional(),schedule_time_end:e.string().optional(),schedule_days:e.array(e.number().int().min(0).max(6)).optional(),add_unsubscribe_link:e.boolean().optional(),tracked:e.boolean().optional(),tracked_links:e.boolean().optional(),ai_assistant_enabled:e.boolean().optional(),bcc_recipient:e.string().nullable().optional(),start_at:e.string().nullable().optional()},al=e.object({started:e.boolean().optional(),archived:e.boolean().optional(),...v}),il=l(e.object({sequences:e.array(J)}).passthrough()),pl=e.object({...St,name:e.string()}),rl=l(J),ul=e.object({id:u}),ll=l(J),Et=e.object({...St,id:u}),cl=l(J),dl=Et,ml=l(J),yl=e.object({id:u}),hl=e.undefined(),ye=l(e.object({message:e.string().optional(),recipients_count:e.number().optional()}).passthrough()),gl=e.object({id:u}),bl=ye,fl=e.object({id:u}),Ll=ye,Sl=e.object({id:u}),El=ye,xl=e.object({id:u}),kl=ye,Cl=e.object({id:u,email:e.string()}),Ol=_,vl=e.object({email:e.string().nullable().optional(),first_name:e.string().nullable().optional(),last_name:e.string().nullable().optional(),position:e.string().nullable().optional(),company:e.string().nullable().optional(),website:e.string().nullable().optional(),sending_status:e.string().optional(),sending_status_comment:e.string().nullable().optional(),lead_id:e.number().nullable().optional()}).passthrough(),wl=e.object({id:u,...v}),Rl=l(e.object({recipients:e.array(vl)}).passthrough()),xt=e.object({email:e.string().optional(),reason:e.string().optional()}).passthrough(),_l=e.object({id:u,emails:e.union([e.string(),e.array(e.string()).max(50)]).optional(),lead_ids:e.array(e.number().int()).max(50).optional()}).refine(t=>t.emails!==void 0||t.lead_ids!==void 0,{message:"Provide emails or lead_ids"}),Fl=l(e.object({recipients_added:e.number().optional(),skipped_recipients:e.array(xt).nullable().optional()}).passthrough()),Il=e.object({id:u,emails:e.union([e.string(),e.array(e.string()).max(50)])}),Hl=l(e.object({recipients_removed:e.array(e.string()).optional(),recipients_canceled:e.array(e.string()).optional(),messages_canceled:e.number().optional(),skipped_recipients:e.array(xt).nullable().optional()}).passthrough()),X=e.object({id:e.number().optional(),campaign_id:e.number().optional(),step:e.number().int().optional(),wait_days:e.number().int().optional(),message_format:e.string().nullable().optional(),messages_sent:e.number().optional(),subject:e.string().nullable().optional(),body:e.string().nullable().optional(),variant:e.string().nullable().optional()}).passthrough(),Tl=e.object({sequence_id:u,...v}),ql=l(e.object({follow_ups:e.array(X)}).passthrough()),Al=e.object({sequence_id:u,subject:e.string().optional(),body:e.string().optional(),wait_days:e.number().int().optional(),step:e.number().int().optional(),variant:e.literal("B").optional(),message_format:e.enum(["text","html"]).optional(),message_template_id:u.optional()}).refine(t=>t.variant==="B"||t.message_template_id!==void 0||t.subject!==void 0&&t.body!==void 0,{message:"subject and body are required unless message_template_id is provided"}),Dl=l(e.object({follow_up:X})),Ul=e.object({sequence_id:u,id:u}),Gl=l(X),kt=e.object({sequence_id:u,id:u,subject:e.string().optional(),body:e.string().optional(),wait_days:e.number().int().optional(),message_format:e.enum(["text","html"]).optional()}),jl=l(X),zl=kt,Pl=l(X),Ml=e.object({sequence_id:u,id:u}),Bl=e.undefined(),Vl=e.object({id:u}),Kl=l(e.object({id:e.number().optional(),name:e.string().optional(),recipients_count:e.number().optional(),sent:e.number().optional(),delivered:e.number().optional(),opened:e.number().optional(),clicked:e.number().optional(),replied:e.number().optional(),bounced:e.number().optional(),unsubscribed_recipients:e.number().optional(),open_rate:e.number().nullable().optional(),click_rate:e.number().nullable().optional(),reply_rate:e.number().nullable().optional(),bounce_rate:e.number().nullable().optional(),unsubscribed_recipients_rate:e.number().nullable().optional(),follow_ups:e.array(e.object({id:e.number().optional(),step:e.number().optional(),variant:e.string().nullable().optional(),messages_sent:e.number().optional(),delivered:e.number().optional(),opened:e.number().optional(),clicked:e.number().optional(),replied:e.number().optional(),bounced:e.number().optional(),unsubscribed:e.number().optional(),open_rate:e.number().nullable().optional(),click_rate:e.number().nullable().optional(),reply_rate:e.number().nullable().optional(),bounce_rate:e.number().nullable().optional(),unsubscribe_rate:e.number().nullable().optional()}).passthrough()).optional()}).passthrough()),$l=e.object({id:e.number().optional(),email:e.string().nullable().optional(),first_name:e.string().nullable().optional(),last_name:e.string().nullable().optional()}).passthrough(),Wl=e.object({id:e.number().optional(),name:e.string().optional(),recipients_count:e.number().optional(),started:e.boolean().optional(),archived:e.boolean().optional(),paused:e.boolean().optional(),last_email_sent_at:e.string().nullable().optional()}).passthrough(),Ct=e.object({id:e.number().optional(),status:e.string().optional(),message_id:e.string().nullable().optional(),thread_id:e.string().nullable().optional(),to:e.string().nullable().optional(),subject:e.string().nullable().optional(),body:e.string().nullable().optional(),manually_edited:e.boolean().optional(),opens:e.number().optional(),clicks:e.number().optional(),bounced:e.boolean().optional(),replied:e.boolean().optional(),last_activity_at:e.string().nullable().optional(),sent_at:e.string().nullable().optional(),lead:$l.nullable().optional(),campaign:Wl.nullable().optional(),owner:Lt.nullable().optional()}).passthrough(),Nl=e.object({status:e.union([e.string(),e.array(e.string())]).optional(),direction:e.enum(["outgoing","incoming"]).optional(),read:e.boolean().optional(),replied:e.boolean().optional(),bounced:e.boolean().optional(),unsubscribed:e.boolean().optional(),out_of_office:e.boolean().optional(),lead_id:u.optional(),sequence_id:u.optional(),campaign_id:u.optional(),email_account_id:u.optional(),sent_after:e.string().optional(),sent_before:e.string().optional(),received_after:e.string().optional(),received_before:e.string().optional(),q:e.string().optional(),...v}),Ql=l(e.object({messages:e.array(Ct)}).passthrough()),Zl=e.object({email_account_id:u,lead_id:u.optional(),to:e.string().optional(),subject:e.string().max(250),body:e.string().max(5e4),message_format:e.enum(["text","html"]).optional()}).refine(t=>t.lead_id!==void 0||t.to!==void 0,{message:"Provide lead_id or to"}),Yl=l(Ct),ee=e.object({id:e.number().optional(),name:e.string().optional(),subject:e.string().nullable().optional(),body:e.string().nullable().optional(),message_format:e.string().nullable().optional(),created_at:e.string().optional(),updated_at:e.string().optional()}).passthrough(),Jl=e.object({limit:e.number().int().min(1).max(100).optional(),offset:e.number().int().min(0).optional()}),Xl=l(e.object({message_templates:e.array(ee)})),ec=e.object({id:u}),tc=l(ee),oc=e.object({name:e.string(),subject:e.string().max(255).optional(),body:e.string(),message_format:e.enum(["text","html"]).optional()}),sc=l(ee),Ot=e.object({id:u,name:e.string().optional(),subject:e.string().max(255).optional(),body:e.string().optional(),message_format:e.enum(["text","html"]).optional()}),nc=l(ee),ac=Ot,ic=l(ee),pc=e.object({id:u}),rc=e.undefined(),he=e.object({id:e.number().optional(),email:e.string().nullable().optional(),first_name:e.string().nullable().optional(),last_name:e.string().nullable().optional(),sending_status:e.string().optional(),daily_limit:e.number().optional(),provider:e.string().optional(),sender_name:e.string().nullable().optional(),default_account:e.boolean().nullable().optional(),signature:e.string().nullable().optional(),profile_picture_url:e.string().nullable().optional(),custom_tracking_domain:e.string().nullable().optional(),sending_schedule:e.object({days:e.array(e.number().int()).nullable().optional(),start_time:e.string().nullable().optional(),end_time:e.string().nullable().optional(),time_zone:e.string().optional()}).passthrough().optional(),warmup:e.object({enabled:e.boolean().optional(),status:e.string().nullable().optional(),end_date:e.string().nullable().optional()}).passthrough().optional()}).passthrough(),uc=e.object({...v}),lc=l(e.array(he)),cc=e.object({id:u}),dc=l(he),vt=e.object({id:u,daily_limit:e.number().int().min(1).optional(),sender_name:e.string().optional(),signature:e.string().optional(),first_name:e.string().optional(),last_name:e.string().optional(),default_account:e.boolean().optional()}),mc=l(he),yc=vt,hc=l(he),gc=e.object({}).passthrough(),bc=e.object({id:e.number().optional(),email:e.string().nullable().optional(),sent:e.number().optional(),daily_limit:e.number().optional(),scheduled:e.number().optional()}).passthrough(),fc=l(e.array(bc)),Lc=e.object({id:u}),Sc=l(e.object({score:e.number().nullable().optional(),status:e.string().nullable().optional(),domain:e.string().nullable().optional(),domain_score:e.number().nullable().optional(),checked_at:e.string().nullable().optional(),issues:e.object({disconnected:e.boolean().optional(),no_recent_sending_activity:e.boolean().optional(),no_inbox_protection:e.boolean().optional()}).passthrough().optional()}).passthrough()),Ec=e.object({id:u}),xc=l(e.object({sent_today:e.number().optional(),sent_last_7_days:e.array(e.object({date:e.string().optional(),count:e.number().optional(),capacity:e.number().optional()}).passthrough()).optional(),daily_limit:e.number().optional(),scheduled:e.number().optional(),available:e.number().optional()}).passthrough()),kc=e.object({id:u}),Cc=l(e.object({state:e.string().optional(),progress:e.object({percent:e.number().optional(),end_date:e.string().optional(),current_limit:e.number().optional(),target_limit:e.number().optional()}).passthrough().optional(),metrics:e.object({emails_sent:e.number().optional(),interactions:e.number().optional(),in_spam:e.number().optional()}).passthrough().nullable().optional(),chart_data:e.array(e.object({date:e.string().optional(),sent:e.number().optional(),scheduled:e.number().optional()}).passthrough()).optional(),billing_cycle:e.string().nullable().optional()}).passthrough()),Oc=e.object({email_account_id:u,include_archived:e.boolean().optional(),...v}),vc=e.object({id:e.number().optional(),name:e.string().optional(),status:e.string().optional(),recipients_allocated:e.number().optional(),emails_scheduled:e.number().optional()}).passthrough(),wc=l(e.array(vc)),wt=["lead.created","message.sent","message.read","message.clicked","message.replied","export.completed","import.completed","sequence.paused","sequence.resumed"],te=e.object({id:e.number().optional(),target_url:e.string().optional(),event:e.string().optional()}).passthrough(),Rc=e.object({limit:e.number().int().min(1).max(100).optional(),offset:e.number().int().min(0).optional()}),_c=l(e.array(te)),Fc=e.object({target_url:e.string().url().max(500),event:e.enum(wt),filter_on:u.optional()}),Ic=l(te),Hc=e.object({id:u}),Tc=l(te),Rt=e.object({id:u,target_url:e.string().url().max(500).optional(),event:e.enum(wt).optional(),filter_on:u.optional()}),qc=l(te),Ac=Rt,Dc=l(te),Uc=e.object({id:u}),Gc=e.undefined(),jc=e.object({id:u}),zc=e.undefined(),a={accountGet:da,accountUpdate:ya,accountStatsGet:ga,usageGet:fa,usageHistory:Sa,teamMembersList:ka,apiKeysList:va,apiKeysCreate:Ra,apiKeysUpdate:tt,apiKeysReplace:Ia,apiKeysDelete:Ta,connectedAppsList:Ga,connectedAppsGet:za,connectedAppsPush:Ma,feedbackCreate:Aa,discoverCompanies:Wa,discoverPeople:Za,discoverPeoplePost:Ya,discoverViewsList:ei,discoverViewsCreate:oi,discoverViewsGet:ni,discoverViewsDelete:ii,domainCountGet:ri,domainFinderFind:at,domainFinderFindPost:li,domainsSuggestionGet:yi,domainSearchSearch:gi,domainSearchSearchPost:bi,domainSearchFound:ki,domainSearchFoundPost:Ci,multiDomainSearchSearch:wi,multiDomainSearchReveal:Fi,emailFinderFind:Hi,emailFinderFindFound:Ti,emailFinderFindFoundPost:qi,emailVerifierVerify:zi,emailInsightGet:Vi,emailCountGet:$i,enrichmentPerson:Ni,enrichmentCompany:Qi,enrichmentCombined:Zi,leadsList:np,leadsCreate:tp,leadsUpsert:ut,leadsGet:rp,leadsUpdate:lt,leadsReplace:op,leadsDelete:dp,leadsEnrich:yp,leadsExist:gp,leadsBulkExist:fp,leadsBulkUpsert:Sp,leadsBulkMove:kp,leadsBulkDelete:Op,leadsImportCsv:wp,tagsList:_p,tagsCreate:Tp,tagsGet:Ip,tagsUpdate:ct,tagsReplace:Dp,tagsDelete:Gp,leadTagsAttach:zp,leadTagsDetach:Mp,customAttributesList:Vp,customAttributesCreate:Np,customAttributesGet:$p,customAttributesUpdate:dt,customAttributesReplace:Yp,customAttributesDelete:Xp,leadsListsList:tr,leadsListsCreate:ar,leadsListsGet:sr,leadsListsUpdate:mt,leadsListsReplace:rr,leadsListsDelete:lr,leadsListsFavorite:dr,leadsListsUnfavorite:yr,leadsListsMerge:gr,leadsListFoldersList:fr,leadsListFoldersCreate:xr,leadsListFoldersGet:Sr,leadsListFoldersUpdate:ht,leadsListFoldersReplace:Or,leadsListFoldersDelete:wr,companiesList:_r,companiesCreate:Tr,companiesGet:Ir,companiesDelete:Ar,companiesTag:Ur,companiesUntag:jr,companiesBulkMove:Pr,companiesBulkCopy:Br,companiesBulkDelete:Kr,companiesBulkTag:Wr,companyListsList:Qr,companyListsCreate:Xr,companyListsGet:Yr,companyListsUpdate:gt,companyListsReplace:ou,companyListsDelete:nu,companyListsAddCompany:iu,companyListsRemoveCompany:cu,companyListsListCompanies:ru,companyListsFavorite:mu,companyListsUnfavorite:hu,companyListFoldersList:bu,companyListFoldersCreate:Eu,companyListFoldersGet:Lu,companyListFoldersUpdate:bt,companyListFoldersReplace:Cu,companyListFoldersDelete:vu,companyTagsList:Ru,companyTagsCreate:Hu,companyTagsGet:Fu,companyTagsUpdate:ft,companyTagsReplace:Au,companyTagsDelete:Uu,lookalikesList:tl,briefingGet:ju,signalsList:Mu,monitoredSignalsList:Ku,opportunitiesList:Nu,opportunitiesResults:Yu,sequencesList:al,sequencesCreate:pl,sequencesGet:ul,sequencesUpdate:Et,sequencesReplace:dl,sequencesDelete:yl,sequencesStart:gl,sequencesPause:fl,sequencesResume:Sl,sequencesArchive:xl,sequencesTest:Cl,sequenceRecipientsList:wl,sequenceRecipientsAdd:_l,sequenceRecipientsRemove:Il,sequenceFollowUpsList:Tl,sequenceFollowUpsCreate:Al,sequenceFollowUpsGet:Ul,sequenceFollowUpsUpdate:kt,sequenceFollowUpsReplace:zl,sequenceFollowUpsDelete:Ml,sequenceStatsGet:Vl,messagesList:Nl,messagesSend:Zl,messageTemplatesList:Jl,messageTemplatesCreate:oc,messageTemplatesGet:ec,messageTemplatesUpdate:Ot,messageTemplatesReplace:ac,messageTemplatesDelete:pc,emailAccountsList:uc,emailAccountsGet:cc,emailAccountsUpdate:vt,emailAccountsReplace:yc,emailAccountsCapacities:gc,emailAccountsHealthReport:Lc,emailAccountsUsage:Ec,emailAccountsWarmupReport:kc,emailAccountsSequences:Oc,webhooksList:Rc,webhooksCreate:Fc,webhooksGet:Hc,webhooksUpdate:Rt,webhooksReplace:Ac,webhooksDelete:Uc,webhooksDeleteLegacy:jc},i={accountGet:ma,accountUpdate:ha,accountStatsGet:ba,usageGet:La,usageHistory:xa,teamMembersList:Oa,apiKeysList:wa,apiKeysCreate:_a,apiKeysUpdate:Fa,apiKeysReplace:Ha,apiKeysDelete:qa,connectedAppsList:ja,connectedAppsGet:Pa,connectedAppsPush:Ba,feedbackCreate:Da,discoverCompanies:Na,discoverPeople:Ja,discoverPeoplePost:Xa,discoverViewsList:ti,discoverViewsCreate:si,discoverViewsGet:ai,discoverViewsDelete:pi,domainCountGet:ui,domainFinderFind:di,domainFinderFindPost:mi,domainsSuggestionGet:hi,domainSearchSearch:Ei,domainSearchSearchPost:xi,domainSearchFound:Oi,domainSearchFoundPost:vi,multiDomainSearchSearch:_i,multiDomainSearchReveal:Ii,emailFinderFind:Ui,emailFinderFindFound:Gi,emailFinderFindFoundPost:ji,emailVerifierVerify:Bi,emailInsightGet:Ki,emailCountGet:Wi,enrichmentPerson:Yi,enrichmentCompany:Ji,enrichmentCombined:Xi,leadsList:ap,leadsCreate:ip,leadsUpsert:pp,leadsGet:up,leadsUpdate:lp,leadsReplace:cp,leadsDelete:mp,leadsEnrich:hp,leadsExist:bp,leadsBulkExist:Lp,leadsBulkUpsert:xp,leadsBulkMove:Cp,leadsBulkDelete:vp,leadsImportCsv:Rp,tagsList:Fp,tagsCreate:qp,tagsGet:Hp,tagsUpdate:Ap,tagsReplace:Up,tagsDelete:jp,leadTagsAttach:Pp,leadTagsDetach:Bp,customAttributesList:Kp,customAttributesCreate:Qp,customAttributesGet:Wp,customAttributesUpdate:Zp,customAttributesReplace:Jp,customAttributesDelete:er,leadsListsList:or,leadsListsCreate:ir,leadsListsGet:nr,leadsListsUpdate:pr,leadsListsReplace:ur,leadsListsDelete:cr,leadsListsFavorite:mr,leadsListsUnfavorite:hr,leadsListsMerge:br,leadsListFoldersList:Lr,leadsListFoldersCreate:kr,leadsListFoldersGet:Er,leadsListFoldersUpdate:Cr,leadsListFoldersReplace:vr,leadsListFoldersDelete:Rr,companiesList:Fr,companiesCreate:qr,companiesGet:Hr,companiesDelete:Dr,companiesTag:Gr,companiesUntag:zr,companiesBulkMove:Mr,companiesBulkCopy:Vr,companiesBulkDelete:$r,companiesBulkTag:Nr,companyListsList:Zr,companyListsCreate:eu,companyListsGet:Jr,companyListsUpdate:tu,companyListsReplace:su,companyListsDelete:au,companyListsAddCompany:pu,companyListsRemoveCompany:du,companyListsListCompanies:lu,companyListsFavorite:yu,companyListsUnfavorite:gu,companyListFoldersList:fu,companyListFoldersCreate:xu,companyListFoldersGet:Su,companyListFoldersUpdate:ku,companyListFoldersReplace:Ou,companyListFoldersDelete:wu,companyTagsList:_u,companyTagsCreate:Tu,companyTagsGet:Iu,companyTagsUpdate:qu,companyTagsReplace:Du,companyTagsDelete:Gu,lookalikesList:sl,briefingGet:zu,signalsList:Vu,monitoredSignalsList:Wu,opportunitiesList:Zu,opportunitiesResults:el,sequencesList:il,sequencesCreate:rl,sequencesGet:ll,sequencesUpdate:cl,sequencesReplace:ml,sequencesDelete:hl,sequencesStart:bl,sequencesPause:Ll,sequencesResume:El,sequencesArchive:kl,sequencesTest:Ol,sequenceRecipientsList:Rl,sequenceRecipientsAdd:Fl,sequenceRecipientsRemove:Hl,sequenceFollowUpsList:ql,sequenceFollowUpsCreate:Dl,sequenceFollowUpsGet:Gl,sequenceFollowUpsUpdate:jl,sequenceFollowUpsReplace:Pl,sequenceFollowUpsDelete:Bl,sequenceStatsGet:Kl,messagesList:Ql,messagesSend:Yl,messageTemplatesList:Xl,messageTemplatesCreate:sc,messageTemplatesGet:tc,messageTemplatesUpdate:nc,messageTemplatesReplace:ic,messageTemplatesDelete:rc,emailAccountsList:lc,emailAccountsGet:dc,emailAccountsUpdate:mc,emailAccountsReplace:hc,emailAccountsCapacities:fc,emailAccountsHealthReport:Sc,emailAccountsUsage:xc,emailAccountsWarmupReport:Cc,emailAccountsSequences:wc,webhooksList:_c,webhooksCreate:Ic,webhooksGet:Tc,webhooksUpdate:qc,webhooksReplace:Dc,webhooksDelete:Gc,webhooksDeleteLegacy:zc};var Ft=async(t,n)=>{let o=a.accountGet.parse(n),s=await r("/account",t.key,{method:"GET"}),p=i.accountGet.parse(s);return await _t(t,"hunterio.account.get",{},"completed"),p},It=async(t,n)=>{let o=a.accountUpdate.parse(n),s=await r("/account",t.key,{method:"PUT",body:o}),p=i.accountUpdate.parse(s);return await _t(t,"hunterio.account.update",{},"completed"),p};import{logEventFromContext as Pc}from"corsair/core";var Ht=async(t,n)=>{let o=a.accountStatsGet.parse(n),s=await r("/account-stats",t.key,{method:"GET"}),p=i.accountStatsGet.parse(s);return await Pc(t,"hunterio.accountStats.get",{},"completed"),p};import{logEventFromContext as oe}from"corsair/core";var Tt=async(t,n)=>{let o=a.apiKeysList.parse(n),s=await r("/api-keys",t.key,{method:"GET"}),p=i.apiKeysList.parse(s);return await oe(t,"hunterio.apiKeys.list",{},"completed"),p},qt=async(t,n)=>{let o=a.apiKeysCreate.parse(n),s=await r("/api-keys",t.key,{method:"POST",body:{name:o.name}}),p=i.apiKeysCreate.parse(s);return await oe(t,"hunterio.apiKeys.create",{},"completed"),p},At=async(t,n)=>{let o=a.apiKeysUpdate.parse(n),{id:s,...p}=o,d=await r(`/api-keys/${s}`,t.key,{method:"PATCH",body:p}),c=i.apiKeysUpdate.parse(d);return await oe(t,"hunterio.apiKeys.update",{id:s},"completed"),c},Dt=async(t,n)=>{let o=a.apiKeysReplace.parse(n),{id:s,...p}=o,d=await r(`/api-keys/${s}`,t.key,{method:"PUT",body:p}),c=i.apiKeysReplace.parse(d);return await oe(t,"hunterio.apiKeys.replace",{id:s},"completed"),c},Ut=async(t,n)=>{let o=a.apiKeysDelete.parse(n),s=await r(`/api-keys/${o.id}`,t.key,{method:"DELETE"}),p=i.apiKeysDelete.parse(s);return await oe(t,"hunterio.apiKeys.delete",{id:o.id},"completed"),p};import{logEventFromContext as Mc}from"corsair/core";var Gt=async(t,n)=>{let o=a.briefingGet.parse(n),s=await r("/briefing",t.key,{method:"GET",query:o}),p=i.briefingGet.parse(s);return await Mc(t,"hunterio.briefing.get",{},"completed"),p};import{logEventFromContext as k}from"corsair/core";var jt=async(t,n)=>{let o=a.companiesList.parse(n),s=await r("/companies",t.key,{method:"GET",query:o}),p=i.companiesList.parse(s);return await k(t,"hunterio.companies.list",{count:p.data.companies.length},"completed"),p},zt=async(t,n)=>{let o=a.companiesCreate.parse(n),s=await r("/companies",t.key,{method:"POST",body:o}),p=i.companiesCreate.parse(s);return await k(t,"hunterio.companies.create",{},"completed"),p},Pt=async(t,n)=>{let o=a.companiesGet.parse(n),s=await r(`/companies/${o.id}`,t.key,{method:"GET"}),p=i.companiesGet.parse(s);return await k(t,"hunterio.companies.get",{id:o.id},"completed"),p},Mt=async(t,n)=>{let o=a.companiesDelete.parse(n),s=await r(`/companies/${o.id}`,t.key,{method:"DELETE"}),p=i.companiesDelete.parse(s);return await k(t,"hunterio.companies.delete",{id:o.id},"completed"),p},Bt=async(t,n)=>{let o=a.companiesTag.parse(n),{id:s,...p}=o,d=await r(`/companies/${s}/tags`,t.key,{method:"POST",body:p}),c=i.companiesTag.parse(d);return await k(t,"hunterio.companies.tag",{id:s},"completed"),c},Vt=async(t,n)=>{let o=a.companiesUntag.parse(n),s=await r(`/companies/${o.id}/tags/${o.tag_id}`,t.key,{method:"DELETE"}),p=i.companiesUntag.parse(s);return await k(t,"hunterio.companies.untag",{id:o.id},"completed"),p},Kt=async(t,n)=>{let o=a.companiesBulkMove.parse(n),s=await r("/companies/bulk/move",t.key,{method:"POST",body:o}),p=i.companiesBulkMove.parse(s);return await k(t,"hunterio.companies.bulkMove",{companyCount:o.company_ids?.length},"completed"),p},$t=async(t,n)=>{let o=a.companiesBulkCopy.parse(n),s=await r("/companies/bulk/copy",t.key,{method:"POST",body:o}),p=i.companiesBulkCopy.parse(s);return await k(t,"hunterio.companies.bulkCopy",{companyCount:o.company_ids?.length},"completed"),p},Wt=async(t,n)=>{let o=a.companiesBulkDelete.parse(n),s=await r("/companies/bulk/delete",t.key,{method:"POST",body:o}),p=i.companiesBulkDelete.parse(s);return await k(t,"hunterio.companies.bulkDelete",{companyCount:o.company_ids?.length},"completed"),p},Nt=async(t,n)=>{let o=a.companiesBulkTag.parse(n),s=await r("/companies/bulk/tag",t.key,{method:"POST",body:o}),p=i.companiesBulkTag.parse(s);return await k(t,"hunterio.companies.bulkTag",{companyCount:o.company_ids?.length},"completed"),p};import{logEventFromContext as B}from"corsair/core";var Qt=async(t,n)=>{let o=a.companyListFoldersList.parse(n),s=await r("/company-lists/folders",t.key,{method:"GET",query:{limit:o.limit,offset:o.offset}}),p=i.companyListFoldersList.parse(s);return await B(t,"hunterio.companyListFolders.list",{},"completed"),p},Zt=async(t,n)=>{let o=a.companyListFoldersCreate.parse(n),s=await r("/company-lists/folders",t.key,{method:"POST",body:o}),p=i.companyListFoldersCreate.parse(s);return await B(t,"hunterio.companyListFolders.create",{},"completed"),p},Yt=async(t,n)=>{let o=a.companyListFoldersGet.parse(n),s=await r(`/company-lists/folders/${o.id}`,t.key,{method:"GET"}),p=i.companyListFoldersGet.parse(s);return await B(t,"hunterio.companyListFolders.get",{id:o.id},"completed"),p},Jt=async(t,n)=>{let o=a.companyListFoldersUpdate.parse(n),{id:s,...p}=o,d=await r(`/company-lists/folders/${s}`,t.key,{method:"PATCH",body:p}),c=i.companyListFoldersUpdate.parse(d);return await B(t,"hunterio.companyListFolders.update",{id:s},"completed"),c},Xt=async(t,n)=>{let o=a.companyListFoldersReplace.parse(n),{id:s,...p}=o,d=await r(`/company-lists/folders/${s}`,t.key,{method:"PUT",body:p}),c=i.companyListFoldersReplace.parse(d);return await B(t,"hunterio.companyListFolders.replace",{id:s},"completed"),c},eo=async(t,n)=>{let o=a.companyListFoldersDelete.parse(n),s=await r(`/company-lists/folders/${o.id}`,t.key,{method:"DELETE"}),p=i.companyListFoldersDelete.parse(s);return await B(t,"hunterio.companyListFolders.delete",{id:o.id},"completed"),p};import{logEventFromContext as S}from"corsair/core";var to=async(t,n)=>{let o=a.companyListsList.parse(n),s=await r("/company-lists",t.key,{method:"GET",query:{limit:o.limit,offset:o.offset}}),p=i.companyListsList.parse(s);return await S(t,"hunterio.companyLists.list",{},"completed"),p},oo=async(t,n)=>{let o=a.companyListsCreate.parse(n),s=await r("/company-lists",t.key,{method:"POST",body:o}),p=i.companyListsCreate.parse(s);return await S(t,"hunterio.companyLists.create",{},"completed"),p},so=async(t,n)=>{let o=a.companyListsGet.parse(n),{id:s,...p}=o,d=await r(`/company-lists/${s}`,t.key,{method:"GET",query:p}),c=i.companyListsGet.parse(d);return await S(t,"hunterio.companyLists.get",{id:s},"completed"),c},no=async(t,n)=>{let o=a.companyListsUpdate.parse(n),{id:s,...p}=o,d=await r(`/company-lists/${s}`,t.key,{method:"PATCH",body:p}),c=i.companyListsUpdate.parse(d);return await S(t,"hunterio.companyLists.update",{id:s},"completed"),c},ao=async(t,n)=>{let o=a.companyListsReplace.parse(n),{id:s,...p}=o,d=await r(`/company-lists/${s}`,t.key,{method:"PUT",body:p}),c=i.companyListsReplace.parse(d);return await S(t,"hunterio.companyLists.replace",{id:s},"completed"),c},io=async(t,n)=>{let o=a.companyListsDelete.parse(n),s=await r(`/company-lists/${o.id}`,t.key,{method:"DELETE"}),p=i.companyListsDelete.parse(s);return await S(t,"hunterio.companyLists.delete",{id:o.id},"completed"),p},po=async(t,n)=>{let o=a.companyListsAddCompany.parse(n),s=await r(`/company-lists/${o.company_list_id}/companies`,t.key,{method:"POST",body:{company_id:o.company_id}}),p=i.companyListsAddCompany.parse(s);return await S(t,"hunterio.companyLists.addCompany",{companyListId:o.company_list_id},"completed"),p},ro=async(t,n)=>{let o=a.companyListsRemoveCompany.parse(n),s=await r(`/company-lists/${o.company_list_id}/companies/${o.company_id}`,t.key,{method:"DELETE"}),p=i.companyListsRemoveCompany.parse(s);return await S(t,"hunterio.companyLists.removeCompany",{companyListId:o.company_list_id},"completed"),p},uo=async(t,n)=>{let o=a.companyListsFavorite.parse(n),s=await r(`/company-lists/${o.id}/favorite`,t.key,{method:"POST"}),p=i.companyListsFavorite.parse(s);return await S(t,"hunterio.companyLists.favorite",{id:o.id},"completed"),p},lo=async(t,n)=>{let o=a.companyListsUnfavorite.parse(n),s=await r(`/company-lists/${o.id}/favorite`,t.key,{method:"DELETE"}),p=i.companyListsUnfavorite.parse(s);return await S(t,"hunterio.companyLists.unfavorite",{id:o.id},"completed"),p},co=async(t,n)=>{let o=a.companyListsListCompanies.parse(n),{company_list_id:s,...p}=o,d=await r(`/company-lists/${s}/companies`,t.key,{method:"GET",query:p}),c=i.companyListsListCompanies.parse(d);return await S(t,"hunterio.companyLists.listCompanies",{companyListId:s},"completed"),c};import{logEventFromContext as V}from"corsair/core";var mo=async(t,n)=>{let o=a.companyTagsList.parse(n),s=await r("/company-tags",t.key,{method:"GET",query:{limit:o.limit,offset:o.offset}}),p=i.companyTagsList.parse(s);return await V(t,"hunterio.companyTags.list",{},"completed"),p},yo=async(t,n)=>{let o=a.companyTagsCreate.parse(n),s=await r("/company-tags",t.key,{method:"POST",body:o}),p=i.companyTagsCreate.parse(s);return await V(t,"hunterio.companyTags.create",{},"completed"),p},ho=async(t,n)=>{let o=a.companyTagsGet.parse(n),s=await r(`/company-tags/${o.id}`,t.key,{method:"GET"}),p=i.companyTagsGet.parse(s);return await V(t,"hunterio.companyTags.get",{id:o.id},"completed"),p},go=async(t,n)=>{let o=a.companyTagsUpdate.parse(n),{id:s,...p}=o,d=await r(`/company-tags/${s}`,t.key,{method:"PATCH",body:p}),c=i.companyTagsUpdate.parse(d);return await V(t,"hunterio.companyTags.update",{id:s},"completed"),c},bo=async(t,n)=>{let o=a.companyTagsReplace.parse(n),{id:s,...p}=o,d=await r(`/company-tags/${s}`,t.key,{method:"PUT",body:p}),c=i.companyTagsReplace.parse(d);return await V(t,"hunterio.companyTags.replace",{id:s},"completed"),c},fo=async(t,n)=>{let o=a.companyTagsDelete.parse(n),s=await r(`/company-tags/${o.id}`,t.key,{method:"DELETE"}),p=i.companyTagsDelete.parse(s);return await V(t,"hunterio.companyTags.delete",{id:o.id},"completed"),p};import{logEventFromContext as je}from"corsair/core";var Lo=async(t,n)=>{let o=a.connectedAppsList.parse(n),s=await r("/connected-apps",t.key,{method:"GET",query:{limit:o.limit,offset:o.offset}}),p=i.connectedAppsList.parse(s);return await je(t,"hunterio.connectedApps.list",{},"completed"),p},So=async(t,n)=>{let o=a.connectedAppsGet.parse(n),s=await r(`/connected-apps/${o.id}`,t.key,{method:"GET"}),p=i.connectedAppsGet.parse(s);return await je(t,"hunterio.connectedApps.get",{id:o.id},"completed"),p},Eo=async(t,n)=>{let o=a.connectedAppsPush.parse(n),{id:s,...p}=o,d=await r(`/connected-apps/${s}/push`,t.key,{method:"POST",body:p}),c=i.connectedAppsPush.parse(d);return await je(t,"hunterio.connectedApps.push",{id:s,leadCount:o.lead_ids?.length},"completed"),c};import{logEventFromContext as K}from"corsair/core";var xo=async(t,n)=>{let o=a.customAttributesList.parse(n),s=await r("/leads_custom_attributes",t.key,{method:"GET"}),p=i.customAttributesList.parse(s);return await K(t,"hunterio.customAttributes.list",{},"completed"),p},ko=async(t,n)=>{let o=a.customAttributesCreate.parse(n),s=await r("/leads_custom_attributes",t.key,{method:"POST",body:o}),p=i.customAttributesCreate.parse(s);return await K(t,"hunterio.customAttributes.create",{},"completed"),p},Co=async(t,n)=>{let o=a.customAttributesGet.parse(n),s=await r(`/leads_custom_attributes/${o.id}`,t.key,{method:"GET"}),p=i.customAttributesGet.parse(s);return await K(t,"hunterio.customAttributes.get",{id:o.id},"completed"),p},Oo=async(t,n)=>{let o=a.customAttributesUpdate.parse(n),{id:s,...p}=o,d=await r(`/leads_custom_attributes/${s}`,t.key,{method:"PATCH",body:p}),c=i.customAttributesUpdate.parse(d);return await K(t,"hunterio.customAttributes.update",{id:s},"completed"),c},vo=async(t,n)=>{let o=a.customAttributesReplace.parse(n),{id:s,...p}=o,d=await r(`/leads_custom_attributes/${s}`,t.key,{method:"PUT",body:p}),c=i.customAttributesReplace.parse(d);return await K(t,"hunterio.customAttributes.replace",{id:s},"completed"),c},wo=async(t,n)=>{let o=a.customAttributesDelete.parse(n),s=await r(`/leads_custom_attributes/${o.id}`,t.key,{method:"DELETE"}),p=i.customAttributesDelete.parse(s);return await K(t,"hunterio.customAttributes.delete",{id:o.id},"completed"),p};import{logEventFromContext as ze}from"corsair/core";var F=t=>{let n={},o=(s,p)=>{if(p!==void 0){if(Array.isArray(p)){if(p.some(c=>c!==null&&typeof c=="object")){p.forEach((c,H)=>{o(`${s}[${H}]`,c)});return}n[`${s}[]`]=p;return}if(p!==null&&typeof p=="object"){for(let[d,c]of Object.entries(p))o(`${s}[${d}]`,c);return}n[s]=p}};for(let[s,p]of Object.entries(t))o(s,p);return n};var Ro=async(t,n)=>{let o=a.discoverCompanies.parse(n),s=await r("/discover",t.key,{method:"POST",body:o}),p=i.discoverCompanies.parse(s);return await ze(t,"hunterio.discover.companies",{},"completed"),p},_o=async(t,n)=>{let o=a.discoverPeople.parse(n),s=await r("/discover/people",t.key,{method:"GET",query:F(o)}),p=i.discoverPeople.parse(s);return await ze(t,"hunterio.discover.people",{},"completed"),p},Fo=async(t,n)=>{let o=a.discoverPeoplePost.parse(n),s=await r("/discover/people",t.key,{method:"POST",body:o}),p=i.discoverPeoplePost.parse(s);return await ze(t,"hunterio.discover.peoplePost",{},"completed"),p};import{logEventFromContext as ge}from"corsair/core";var Io=async(t,n)=>{let o=a.discoverViewsList.parse(n),s=await r("/discover/views",t.key,{method:"GET"}),p=i.discoverViewsList.parse(s);return await ge(t,"hunterio.discoverViews.list",{},"completed"),p},Ho=async(t,n)=>{let o=a.discoverViewsCreate.parse(n),s=await r("/discover/views",t.key,{method:"POST",body:o}),p=i.discoverViewsCreate.parse(s);return await ge(t,"hunterio.discoverViews.create",{},"completed"),p},To=async(t,n)=>{let o=a.discoverViewsGet.parse(n),s=await r(`/discover/views/${o.id}`,t.key,{method:"GET"}),p=i.discoverViewsGet.parse(s);return await ge(t,"hunterio.discoverViews.get",{id:o.id},"completed"),p},qo=async(t,n)=>{let o=a.discoverViewsDelete.parse(n),s=await r(`/discover/views/${o.id}`,t.key,{method:"DELETE"}),p=i.discoverViewsDelete.parse(s);return await ge(t,"hunterio.discoverViews.delete",{id:o.id},"completed"),p};import{logEventFromContext as Bc}from"corsair/core";var Ao=async(t,n)=>{let o=a.domainCountGet.parse(n),s=await r("/domain-count",t.key,{method:"GET",query:F(o)}),p=i.domainCountGet.parse(s);return await Bc(t,"hunterio.domainCount.get",{},"completed"),p};import{logEventFromContext as Do}from"corsair/core";var Uo=async(t,n)=>{let o=a.domainFinderFind.parse(n),s=await r("/domain-finder",t.key,{method:"GET",query:{company:o.company,limit:o.limit,perfect_match:o.perfect_match}}),p=i.domainFinderFind.parse(s);return await Do(t,"hunterio.domainFinder.find",{},"completed"),p},Go=async(t,n)=>{let o=a.domainFinderFindPost.parse(n),s=await r("/domain-finder",t.key,{method:"POST",body:o}),p=i.domainFinderFindPost.parse(s);return await Do(t,"hunterio.domainFinder.findPost",{},"completed"),p};import{logEventFromContext as be}from"corsair/core";var jo=async(t,n)=>{let o=a.domainSearchSearch.parse(n),s=await r("/domain-search",t.key,{method:"GET",query:o}),p=i.domainSearchSearch.parse(s);return await be(t,"hunterio.domainSearch.search",{},"completed"),p},zo=async(t,n)=>{let o=a.domainSearchSearchPost.parse(n),s=await r("/domain-search",t.key,{method:"POST",body:o}),p=i.domainSearchSearchPost.parse(s);return await be(t,"hunterio.domainSearch.searchPost",{},"completed"),p},Po=async(t,n)=>{let o=a.domainSearchFound.parse(n),s=await r("/domain-search/found",t.key,{method:"GET",query:o}),p=i.domainSearchFound.parse(s);return await be(t,"hunterio.domainSearch.found",{},"completed"),p},Mo=async(t,n)=>{let o=a.domainSearchFoundPost.parse(n),s=await r("/domain-search/found",t.key,{method:"POST",body:o}),p=i.domainSearchFoundPost.parse(s);return await be(t,"hunterio.domainSearch.foundPost",{},"completed"),p};import{logEventFromContext as Vc}from"corsair/core";var Bo=async(t,n)=>{let o=a.domainsSuggestionGet.parse(n),s=await r("/domains-suggestion",t.key,{method:"GET",query:{query:o.query,limit:o.limit}}),p=i.domainsSuggestionGet.parse(s);return await Vc(t,"hunterio.domainsSuggestion.get",{},"completed"),p};import{logEventFromContext as w}from"corsair/core";var Vo=async(t,n)=>{let o=a.emailAccountsList.parse(n),s=await r("/email-accounts",t.key,{method:"GET",query:{limit:o.limit,offset:o.offset}}),p=i.emailAccountsList.parse(s);return await w(t,"hunterio.emailAccounts.list",{},"completed"),p},Ko=async(t,n)=>{let o=a.emailAccountsGet.parse(n),s=await r(`/email-accounts/${o.id}`,t.key,{method:"GET"}),p=i.emailAccountsGet.parse(s);return await w(t,"hunterio.emailAccounts.get",{id:o.id},"completed"),p},$o=async(t,n)=>{let o=a.emailAccountsUpdate.parse(n),{id:s,...p}=o,d=await r(`/email-accounts/${s}`,t.key,{method:"PUT",query:p}),c=i.emailAccountsUpdate.parse(d);return await w(t,"hunterio.emailAccounts.update",{id:s},"completed"),c},Wo=async(t,n)=>{let o=a.emailAccountsReplace.parse(n),{id:s,...p}=o,d=await r(`/email-accounts/${s}`,t.key,{method:"PATCH",query:p}),c=i.emailAccountsReplace.parse(d);return await w(t,"hunterio.emailAccounts.replace",{id:s},"completed"),c},No=async(t,n)=>{a.emailAccountsCapacities.parse(n);let o=await r("/email-accounts/capacities",t.key,{method:"GET"}),s=i.emailAccountsCapacities.parse(o);return await w(t,"hunterio.emailAccounts.capacities",{},"completed"),s},Qo=async(t,n)=>{let o=a.emailAccountsHealthReport.parse(n),s=await r(`/email-accounts/${o.id}/health-report`,t.key,{method:"GET"}),p=i.emailAccountsHealthReport.parse(s);return await w(t,"hunterio.emailAccounts.healthReport",{id:o.id},"completed"),p},Zo=async(t,n)=>{let o=a.emailAccountsUsage.parse(n),s=await r(`/email-accounts/${o.id}/usage`,t.key,{method:"GET"}),p=i.emailAccountsUsage.parse(s);return await w(t,"hunterio.emailAccounts.usage",{id:o.id},"completed"),p},Yo=async(t,n)=>{let o=a.emailAccountsWarmupReport.parse(n),s=await r(`/email-accounts/${o.id}/warmup-report`,t.key,{method:"GET"}),p=i.emailAccountsWarmupReport.parse(s);return await w(t,"hunterio.emailAccounts.warmupReport",{id:o.id},"completed"),p},Jo=async(t,n)=>{let o=a.emailAccountsSequences.parse(n),{email_account_id:s,...p}=o,d=await r(`/email-accounts/${s}/sequences`,t.key,{method:"GET",query:p}),c=i.emailAccountsSequences.parse(d);return await w(t,"hunterio.emailAccounts.sequences",{emailAccountId:s},"completed"),c};import{logEventFromContext as Kc}from"corsair/core";var Xo=async(t,n)=>{let o=a.emailCountGet.parse(n),s=await r("/email-count",t.key,{method:"GET",query:o}),p=i.emailCountGet.parse(s);return await Kc(t,"hunterio.emailCount.get",{},"completed"),p};import{logEventFromContext as Pe}from"corsair/core";var es=async(t,n)=>{let o=a.emailFinderFind.parse(n),s=await r("/email-finder",t.key,{method:"GET",query:o}),p=i.emailFinderFind.parse(s);return await Pe(t,"hunterio.emailFinder.find",{},"completed"),p},ts=async(t,n)=>{let o=a.emailFinderFindFound.parse(n),s=await r("/email-finder/found",t.key,{method:"GET",query:o}),p=i.emailFinderFindFound.parse(s);return await Pe(t,"hunterio.emailFinder.findFound",{},"completed"),p},os=async(t,n)=>{let o=a.emailFinderFindFoundPost.parse(n),s=await r("/email-finder/found",t.key,{method:"POST",body:o}),p=i.emailFinderFindFoundPost.parse(s);return await Pe(t,"hunterio.emailFinder.findFoundPost",{},"completed"),p};import{logEventFromContext as $c}from"corsair/core";var ss=async(t,n)=>{let o=a.emailInsightGet.parse(n),s=await r("/email-insight",t.key,{method:"GET",query:{email:o.email}}),p=i.emailInsightGet.parse(s);return await $c(t,"hunterio.emailInsight.get",{},"completed"),p};import{logEventFromContext as Wc}from"corsair/core";var ns=async(t,n)=>{let o=a.emailVerifierVerify.parse(n),s=await r("/email-verifier",t.key,{method:"GET",query:{email:o.email,domain_metadata:o.domain_metadata}}),p=i.emailVerifierVerify.parse(s);return await Wc(t,"hunterio.emailVerifier.verify",{},"completed"),p};import{logEventFromContext as Me}from"corsair/core";var as=async(t,n)=>{let o=a.enrichmentPerson.parse(n),s=await r("/people/find",t.key,{method:"GET",query:o}),p=i.enrichmentPerson.parse(s);return await Me(t,"hunterio.enrichment.person",{},"completed"),p},is=async(t,n)=>{let o=a.enrichmentCompany.parse(n),s=await r("/companies/find",t.key,{method:"GET",query:o}),p=i.enrichmentCompany.parse(s);return await Me(t,"hunterio.enrichment.company",{},"completed"),p},ps=async(t,n)=>{let o=a.enrichmentCombined.parse(n),s=await r("/combined/find",t.key,{method:"GET",query:o}),p=i.enrichmentCombined.parse(s);return await Me(t,"hunterio.enrichment.combined",{},"completed"),p};import{logEventFromContext as Nc}from"corsair/core";var rs=async(t,n)=>{let o=a.feedbackCreate.parse(n),s=await r("/feedback",t.key,{method:"POST",body:o}),p=i.feedbackCreate.parse(s);return await Nc(t,"hunterio.feedback.create",{feedbackType:o.feedback_type},"completed"),p};import{logEventFromContext as us}from"corsair/core";var ls=async(t,n)=>{let o=a.leadTagsAttach.parse(n),s=await r(`/leads/${o.id}/tags`,t.key,{method:"POST",body:{tag_id:o.tag_id}}),p=i.leadTagsAttach.parse(s);return await us(t,"hunterio.leadTags.attach",{id:o.id},"completed"),p},cs=async(t,n)=>{let o=a.leadTagsDetach.parse(n),s=await r(`/leads/${o.id}/tags/${o.tag_id}`,t.key,{method:"DELETE"}),p=i.leadTagsDetach.parse(s);return await us(t,"hunterio.leadTags.detach",{id:o.id},"completed"),p};import{logEventFromContext as y}from"corsair/core";var ds=async(t,n)=>{let o=a.leadsList.parse(n),s=await r("/leads",t.key,{method:"GET",query:F(o)}),p=i.leadsList.parse(s);return await y(t,"hunterio.leads.list",{count:p.data.leads.length},"completed"),p},ms=async(t,n)=>{let o=a.leadsCreate.parse(n),s=await r("/leads",t.key,{method:"POST",body:o}),p=i.leadsCreate.parse(s);return await y(t,"hunterio.leads.create",{},"completed"),p},ys=async(t,n)=>{let o=a.leadsUpsert.parse(n),s=await r("/leads",t.key,{method:"PUT",body:o}),p=i.leadsUpsert.parse(s);return await y(t,"hunterio.leads.upsert",{},"completed"),p},hs=async(t,n)=>{let o=a.leadsGet.parse(n),s=await r(`/leads/${o.id}`,t.key,{method:"GET"}),p=i.leadsGet.parse(s);return await y(t,"hunterio.leads.get",{id:o.id},"completed"),p},gs=async(t,n)=>{let o=a.leadsUpdate.parse(n),{id:s,...p}=o,d=await r(`/leads/${s}`,t.key,{method:"PATCH",body:p}),c=i.leadsUpdate.parse(d);return await y(t,"hunterio.leads.update",{id:s},"completed"),c},bs=async(t,n)=>{let o=a.leadsReplace.parse(n),{id:s,...p}=o,d=await r(`/leads/${s}`,t.key,{method:"PUT",body:p}),c=i.leadsReplace.parse(d);return await y(t,"hunterio.leads.replace",{id:s},"completed"),c},fs=async(t,n)=>{let o=a.leadsDelete.parse(n),s=await r(`/leads/${o.id}`,t.key,{method:"DELETE"}),p=i.leadsDelete.parse(s);return await y(t,"hunterio.leads.delete",{id:o.id},"completed"),p},Ls=async(t,n)=>{let o=a.leadsEnrich.parse(n),s=await r(`/leads/${o.id}/enrich`,t.key,{method:"POST"}),p=i.leadsEnrich.parse(s);return await y(t,"hunterio.leads.enrich",{id:o.id},"completed"),p},Ss=async(t,n)=>{let o=a.leadsExist.parse(n),s=await r("/leads/exist",t.key,{method:"GET",query:{email:o.email}}),p=i.leadsExist.parse(s);return await y(t,"hunterio.leads.exist",{},"completed"),p},Es=async(t,n)=>{let o=a.leadsBulkExist.parse(n),s=await r("/leads/bulk/exist",t.key,{method:"GET",query:{"emails[]":o.emails}}),p=i.leadsBulkExist.parse(s);return await y(t,"hunterio.leads.bulkExist",{count:o.emails.length},"completed"),p},xs=async(t,n)=>{let o=a.leadsBulkUpsert.parse(n),s=await r("/leads/bulk",t.key,{method:"PUT",body:o}),p=i.leadsBulkUpsert.parse(s);return await y(t,"hunterio.leads.bulkUpsert",{count:o.leads.length},"completed"),p},ks=async(t,n)=>{let o=a.leadsBulkMove.parse(n),s=await r("/leads/bulk/move",t.key,{method:"POST",body:o}),p=i.leadsBulkMove.parse(s);return await y(t,"hunterio.leads.bulkMove",{leadCount:o.lead_ids?.length},"completed"),p},Cs=async(t,n)=>{let o=a.leadsBulkDelete.parse(n),s=await r("/leads/bulk/delete",t.key,{method:"POST",body:o}),p=i.leadsBulkDelete.parse(s);return await y(t,"hunterio.leads.bulkDelete",{leadCount:o.lead_ids?.length},"completed"),p},Os=async(t,n)=>{let o=a.leadsImportCsv.parse(n),s=await r("/leads-imports",t.key,{method:"POST",body:o}),p=i.leadsImportCsv.parse(s);return await y(t,"hunterio.leads.importCsv",{},"completed"),p};import{logEventFromContext as $}from"corsair/core";var vs=async(t,n)=>{let o=a.leadsListFoldersList.parse(n),s=await r("/leads_lists/folders",t.key,{method:"GET",query:{limit:o.limit,offset:o.offset}}),p=i.leadsListFoldersList.parse(s);return await $(t,"hunterio.leadsListFolders.list",{},"completed"),p},ws=async(t,n)=>{let o=a.leadsListFoldersCreate.parse(n),s=await r("/leads_lists/folders",t.key,{method:"POST",body:o}),p=i.leadsListFoldersCreate.parse(s);return await $(t,"hunterio.leadsListFolders.create",{},"completed"),p},Rs=async(t,n)=>{let o=a.leadsListFoldersGet.parse(n),s=await r(`/leads_lists/folders/${o.id}`,t.key,{method:"GET"}),p=i.leadsListFoldersGet.parse(s);return await $(t,"hunterio.leadsListFolders.get",{id:o.id},"completed"),p},_s=async(t,n)=>{let o=a.leadsListFoldersUpdate.parse(n),{id:s,...p}=o,d=await r(`/leads_lists/folders/${s}`,t.key,{method:"PATCH",body:p}),c=i.leadsListFoldersUpdate.parse(d);return await $(t,"hunterio.leadsListFolders.update",{id:s},"completed"),c},Fs=async(t,n)=>{let o=a.leadsListFoldersReplace.parse(n),{id:s,...p}=o,d=await r(`/leads_lists/folders/${s}`,t.key,{method:"PUT",body:p}),c=i.leadsListFoldersReplace.parse(d);return await $(t,"hunterio.leadsListFolders.replace",{id:s},"completed"),c},Is=async(t,n)=>{let o=a.leadsListFoldersDelete.parse(n),s=await r(`/leads_lists/folders/${o.id}`,t.key,{method:"DELETE"}),p=i.leadsListFoldersDelete.parse(s);return await $(t,"hunterio.leadsListFolders.delete",{id:o.id},"completed"),p};import{logEventFromContext as R}from"corsair/core";var Hs=async(t,n)=>{let o=a.leadsListsList.parse(n),s=await r("/leads_lists",t.key,{method:"GET",query:{limit:o.limit,offset:o.offset}}),p=i.leadsListsList.parse(s);return await R(t,"hunterio.leadsLists.list",{},"completed"),p},Ts=async(t,n)=>{let o=a.leadsListsCreate.parse(n),s=await r("/leads_lists",t.key,{method:"POST",body:o}),p=i.leadsListsCreate.parse(s);return await R(t,"hunterio.leadsLists.create",{},"completed"),p},qs=async(t,n)=>{let o=a.leadsListsGet.parse(n),{id:s,...p}=o,d=await r(`/leads_lists/${s}`,t.key,{method:"GET",query:p}),c=i.leadsListsGet.parse(d);return await R(t,"hunterio.leadsLists.get",{id:s},"completed"),c},As=async(t,n)=>{let o=a.leadsListsUpdate.parse(n),{id:s,...p}=o,d=await r(`/leads_lists/${s}`,t.key,{method:"PATCH",body:p}),c=i.leadsListsUpdate.parse(d);return await R(t,"hunterio.leadsLists.update",{id:s},"completed"),c},Ds=async(t,n)=>{let o=a.leadsListsReplace.parse(n),{id:s,...p}=o,d=await r(`/leads_lists/${s}`,t.key,{method:"PUT",body:p}),c=i.leadsListsReplace.parse(d);return await R(t,"hunterio.leadsLists.replace",{id:s},"completed"),c},Us=async(t,n)=>{let o=a.leadsListsDelete.parse(n),s=await r(`/leads_lists/${o.id}`,t.key,{method:"DELETE"}),p=i.leadsListsDelete.parse(s);return await R(t,"hunterio.leadsLists.delete",{id:o.id},"completed"),p},Gs=async(t,n)=>{let o=a.leadsListsFavorite.parse(n),s=await r(`/leads_lists/${o.id}/favorite`,t.key,{method:"POST"}),p=i.leadsListsFavorite.parse(s);return await R(t,"hunterio.leadsLists.favorite",{id:o.id},"completed"),p},js=async(t,n)=>{let o=a.leadsListsUnfavorite.parse(n),s=await r(`/leads_lists/${o.id}/favorite`,t.key,{method:"DELETE"}),p=i.leadsListsUnfavorite.parse(s);return await R(t,"hunterio.leadsLists.unfavorite",{id:o.id},"completed"),p},zs=async(t,n)=>{let o=a.leadsListsMerge.parse(n),{id:s,...p}=o,d=await r(`/leads_lists/${s}/merge`,t.key,{method:"POST",body:p}),c=i.leadsListsMerge.parse(d);return await R(t,"hunterio.leadsLists.merge",{id:s,destinationLeadsListId:p.destination_leads_list_id},"completed"),c};import{logEventFromContext as Qc}from"corsair/core";var Ps=async(t,n)=>{let o=a.lookalikesList.parse(n),s=await r("/lookalikes",t.key,{method:"GET",query:F(o)}),p=i.lookalikesList.parse(s);return await Qc(t,"hunterio.lookalikes.list",{},"completed"),p};import{logEventFromContext as W}from"corsair/core";var Ms=async(t,n)=>{let o=a.messageTemplatesList.parse(n),s=await r("/message-templates",t.key,{method:"GET",query:{limit:o.limit,offset:o.offset}}),p=i.messageTemplatesList.parse(s);return await W(t,"hunterio.messageTemplates.list",{},"completed"),p},Bs=async(t,n)=>{let o=a.messageTemplatesCreate.parse(n),s=await r("/message-templates",t.key,{method:"POST",body:o}),p=i.messageTemplatesCreate.parse(s);return await W(t,"hunterio.messageTemplates.create",{},"completed"),p},Vs=async(t,n)=>{let o=a.messageTemplatesGet.parse(n),s=await r(`/message-templates/${o.id}`,t.key,{method:"GET"}),p=i.messageTemplatesGet.parse(s);return await W(t,"hunterio.messageTemplates.get",{id:o.id},"completed"),p},Ks=async(t,n)=>{let o=a.messageTemplatesUpdate.parse(n),{id:s,...p}=o,d=await r(`/message-templates/${s}`,t.key,{method:"PATCH",body:p}),c=i.messageTemplatesUpdate.parse(d);return await W(t,"hunterio.messageTemplates.update",{id:s},"completed"),c},$s=async(t,n)=>{let o=a.messageTemplatesReplace.parse(n),{id:s,...p}=o,d=await r(`/message-templates/${s}`,t.key,{method:"PUT",body:p}),c=i.messageTemplatesReplace.parse(d);return await W(t,"hunterio.messageTemplates.replace",{id:s},"completed"),c},Ws=async(t,n)=>{let o=a.messageTemplatesDelete.parse(n),s=await r(`/message-templates/${o.id}`,t.key,{method:"DELETE"}),p=i.messageTemplatesDelete.parse(s);return await W(t,"hunterio.messageTemplates.delete",{id:o.id},"completed"),p};import{logEventFromContext as Ns}from"corsair/core";var Qs=async(t,n)=>{let o=a.messagesList.parse(n),{status:s,...p}=o,d=await r("/messages",t.key,{method:"GET",query:{...p,status:Array.isArray(s)?s.join(","):s}}),c=i.messagesList.parse(d);return await Ns(t,"hunterio.messages.list",{},"completed"),c},Zs=async(t,n)=>{let o=a.messagesSend.parse(n),s=await r("/messages",t.key,{method:"POST",body:o}),p=i.messagesSend.parse(s);return await Ns(t,"hunterio.messages.send",{},"completed"),p};import{logEventFromContext as Zc}from"corsair/core";var Ys=async(t,n)=>{let o=a.monitoredSignalsList.parse(n),s=await r("/monitored-signals",t.key,{method:"GET",query:o}),p=i.monitoredSignalsList.parse(s);return await Zc(t,"hunterio.monitoredSignals.list",{},"completed"),p};import{logEventFromContext as Js}from"corsair/core";var Xs=async(t,n)=>{let o=a.multiDomainSearchSearch.parse(n),s=await r("/multi-domain-search",t.key,{method:"POST",body:o}),p=i.multiDomainSearchSearch.parse(s);return await Js(t,"hunterio.multiDomainSearch.search",{rowCount:p.data.length},"completed"),p},en=async(t,n)=>{let o=a.multiDomainSearchReveal.parse(n),s=await r("/multi-domain-search/reveal",t.key,{method:"POST",body:{handles:o.handles}}),p=i.multiDomainSearchReveal.parse(s);return await Js(t,"hunterio.multiDomainSearch.reveal",{handleCount:o.handles.length},"completed"),p};import{logEventFromContext as tn}from"corsair/core";var on=async(t,n)=>{let o=a.opportunitiesList.parse(n),s=await r("/opportunities",t.key,{method:"GET",query:o}),p=i.opportunitiesList.parse(s);return await tn(t,"hunterio.opportunities.list",{},"completed"),p},sn=async(t,n)=>{let o=a.opportunitiesResults.parse(n),{id:s,...p}=o,d=await r(`/opportunities/${s}/results`,t.key,{method:"GET",query:p}),c=i.opportunitiesResults.parse(d);return await tn(t,"hunterio.opportunities.results",{id:s},"completed"),c};import{logEventFromContext as N}from"corsair/core";var nn=async(t,n)=>{let o=a.sequenceFollowUpsList.parse(n),{sequence_id:s,...p}=o,d=await r(`/sequences/${s}/follow-ups`,t.key,{method:"GET",query:p}),c=i.sequenceFollowUpsList.parse(d);return await N(t,"hunterio.sequenceFollowUps.list",{sequenceId:s},"completed"),c},an=async(t,n)=>{let o=a.sequenceFollowUpsCreate.parse(n),{sequence_id:s,...p}=o,d=await r(`/sequences/${s}/follow-ups`,t.key,{method:"POST",body:p}),c=i.sequenceFollowUpsCreate.parse(d);return await N(t,"hunterio.sequenceFollowUps.create",{sequenceId:s},"completed"),c},pn=async(t,n)=>{let o=a.sequenceFollowUpsGet.parse(n),s=await r(`/sequences/${o.sequence_id}/follow-ups/${o.id}`,t.key,{method:"GET"}),p=i.sequenceFollowUpsGet.parse(s);return await N(t,"hunterio.sequenceFollowUps.get",{sequenceId:o.sequence_id,id:o.id},"completed"),p},rn=async(t,n)=>{let o=a.sequenceFollowUpsUpdate.parse(n),{sequence_id:s,id:p,...d}=o,c=await r(`/sequences/${s}/follow-ups/${p}`,t.key,{method:"PATCH",body:d}),H=i.sequenceFollowUpsUpdate.parse(c);return await N(t,"hunterio.sequenceFollowUps.update",{sequenceId:s,id:p},"completed"),H},un=async(t,n)=>{let o=a.sequenceFollowUpsReplace.parse(n),{sequence_id:s,id:p,...d}=o,c=await r(`/sequences/${s}/follow-ups/${p}`,t.key,{method:"PUT",body:d}),H=i.sequenceFollowUpsReplace.parse(c);return await N(t,"hunterio.sequenceFollowUps.replace",{sequenceId:s,id:p},"completed"),H},ln=async(t,n)=>{let o=a.sequenceFollowUpsDelete.parse(n),s=await r(`/sequences/${o.sequence_id}/follow-ups/${o.id}`,t.key,{method:"DELETE"}),p=i.sequenceFollowUpsDelete.parse(s);return await N(t,"hunterio.sequenceFollowUps.delete",{sequenceId:o.sequence_id,id:o.id},"completed"),p};import{logEventFromContext as Be}from"corsair/core";var cn=async(t,n)=>{let o=a.sequenceRecipientsList.parse(n),{id:s,...p}=o,d=await r(`/sequences/${s}/recipients`,t.key,{method:"GET",query:p}),c=i.sequenceRecipientsList.parse(d);return await Be(t,"hunterio.sequenceRecipients.list",{id:s},"completed"),c},dn=async(t,n)=>{let o=a.sequenceRecipientsAdd.parse(n),{id:s,...p}=o,d=await r(`/sequences/${s}/recipients`,t.key,{method:"POST",body:p}),c=i.sequenceRecipientsAdd.parse(d);return await Be(t,"hunterio.sequenceRecipients.add",{id:s,addedCount:c.data.recipients_added},"completed"),c},mn=async(t,n)=>{let o=a.sequenceRecipientsRemove.parse(n),{id:s,...p}=o,d=await r(`/sequences/${s}/recipients`,t.key,{method:"DELETE",body:p}),c=i.sequenceRecipientsRemove.parse(d);return await Be(t,"hunterio.sequenceRecipients.remove",{id:s},"completed"),c};import{logEventFromContext as Yc}from"corsair/core";var yn=async(t,n)=>{let o=a.sequenceStatsGet.parse(n),s=await r(`/sequences/${o.id}/stats`,t.key,{method:"GET"}),p=i.sequenceStatsGet.parse(s);return await Yc(t,"hunterio.sequenceStats.get",{id:o.id},"completed"),p};import{logEventFromContext as E}from"corsair/core";var hn=async(t,n)=>{let o=a.sequencesList.parse(n),s=await r("/sequences",t.key,{method:"GET",query:o}),p=i.sequencesList.parse(s);return await E(t,"hunterio.sequences.list",{},"completed"),p},gn=async(t,n)=>{let o=a.sequencesCreate.parse(n),s=await r("/sequences",t.key,{method:"POST",body:o}),p=i.sequencesCreate.parse(s);return await E(t,"hunterio.sequences.create",{},"completed"),p},bn=async(t,n)=>{let o=a.sequencesGet.parse(n),s=await r(`/sequences/${o.id}`,t.key,{method:"GET"}),p=i.sequencesGet.parse(s);return await E(t,"hunterio.sequences.get",{id:o.id},"completed"),p},fn=async(t,n)=>{let o=a.sequencesUpdate.parse(n),{id:s,...p}=o,d=await r(`/sequences/${s}`,t.key,{method:"PATCH",body:p}),c=i.sequencesUpdate.parse(d);return await E(t,"hunterio.sequences.update",{id:s},"completed"),c},Ln=async(t,n)=>{let o=a.sequencesReplace.parse(n),{id:s,...p}=o,d=await r(`/sequences/${s}`,t.key,{method:"PUT",body:p}),c=i.sequencesReplace.parse(d);return await E(t,"hunterio.sequences.replace",{id:s},"completed"),c},Sn=async(t,n)=>{let o=a.sequencesDelete.parse(n),s=await r(`/sequences/${o.id}`,t.key,{method:"DELETE"}),p=i.sequencesDelete.parse(s);return await E(t,"hunterio.sequences.delete",{id:o.id},"completed"),p},En=async(t,n)=>{let o=a.sequencesStart.parse(n),s=await r(`/sequences/${o.id}/start`,t.key,{method:"POST"}),p=i.sequencesStart.parse(s);return await E(t,"hunterio.sequences.start",{id:o.id},"completed"),p},xn=async(t,n)=>{let o=a.sequencesPause.parse(n),s=await r(`/sequences/${o.id}/pause`,t.key,{method:"POST"}),p=i.sequencesPause.parse(s);return await E(t,"hunterio.sequences.pause",{id:o.id},"completed"),p},kn=async(t,n)=>{let o=a.sequencesResume.parse(n),s=await r(`/sequences/${o.id}/pause`,t.key,{method:"DELETE"}),p=i.sequencesResume.parse(s);return await E(t,"hunterio.sequences.resume",{id:o.id},"completed"),p},Cn=async(t,n)=>{let o=a.sequencesArchive.parse(n),s=await r(`/sequences/${o.id}/archive`,t.key,{method:"POST"}),p=i.sequencesArchive.parse(s);return await E(t,"hunterio.sequences.archive",{id:o.id},"completed"),p},On=async(t,n)=>{let o=a.sequencesTest.parse(n),{id:s,...p}=o,d=await r(`/sequences/${s}/test`,t.key,{method:"POST",body:p}),c=i.sequencesTest.parse(d);return await E(t,"hunterio.sequences.test",{id:s},"completed"),c};import{logEventFromContext as Jc}from"corsair/core";var vn=async(t,n)=>{let o=a.signalsList.parse(n),s=await r("/signals",t.key,{method:"GET",query:o}),p=i.signalsList.parse(s);return await Jc(t,"hunterio.signals.list",{source:o.source},"completed"),p};import{logEventFromContext as Q}from"corsair/core";var wn=async(t,n)=>{let o=a.tagsList.parse(n),s=await r("/tags",t.key,{method:"GET",query:{limit:o.limit,offset:o.offset}}),p=i.tagsList.parse(s);return await Q(t,"hunterio.tags.list",{},"completed"),p},Rn=async(t,n)=>{let o=a.tagsCreate.parse(n),s=await r("/tags",t.key,{method:"POST",body:o}),p=i.tagsCreate.parse(s);return await Q(t,"hunterio.tags.create",{},"completed"),p},_n=async(t,n)=>{let o=a.tagsGet.parse(n),s=await r(`/tags/${o.id}`,t.key,{method:"GET"}),p=i.tagsGet.parse(s);return await Q(t,"hunterio.tags.get",{id:o.id},"completed"),p},Fn=async(t,n)=>{let o=a.tagsUpdate.parse(n),{id:s,...p}=o,d=await r(`/tags/${s}`,t.key,{method:"PATCH",body:p}),c=i.tagsUpdate.parse(d);return await Q(t,"hunterio.tags.update",{id:s},"completed"),c},In=async(t,n)=>{let o=a.tagsReplace.parse(n),{id:s,...p}=o,d=await r(`/tags/${s}`,t.key,{method:"PUT",body:p}),c=i.tagsReplace.parse(d);return await Q(t,"hunterio.tags.replace",{id:s},"completed"),c},Hn=async(t,n)=>{let o=a.tagsDelete.parse(n),s=await r(`/tags/${o.id}`,t.key,{method:"DELETE"}),p=i.tagsDelete.parse(s);return await Q(t,"hunterio.tags.delete",{id:o.id},"completed"),p};import{logEventFromContext as Xc}from"corsair/core";var Tn=async(t,n)=>{let o=a.teamMembersList.parse(n),s=await r("/team/members",t.key,{method:"GET",query:{limit:o.limit,offset:o.offset}}),p=i.teamMembersList.parse(s);return await Xc(t,"hunterio.teamMembers.list",{},"completed"),p};import{logEventFromContext as qn}from"corsair/core";var An=async(t,n)=>{let o=a.usageGet.parse(n),s=await r("/usage",t.key,{method:"GET",query:{show_overage_requests:o.show_overage_requests}}),p=i.usageGet.parse(s);return await qn(t,"hunterio.usage.get",{},"completed"),p},Dn=async(t,n)=>{let o=a.usageHistory.parse(n),s=await r("/usage/history",t.key,{method:"GET",query:{offset:o.offset,limit:o.limit,start_date:o.start_date,end_date:o.end_date,user_id:o.user_id}}),p=i.usageHistory.parse(s);return await qn(t,"hunterio.usage.history",{},"completed"),p};import{logEventFromContext as q}from"corsair/core";var Un=async(t,n)=>{let o=a.webhooksList.parse(n),s=await r("/webhooks",t.key,{method:"GET",query:{limit:o.limit,offset:o.offset}}),p=i.webhooksList.parse(s);return await q(t,"hunterio.webhooks.list",{},"completed"),p},Gn=async(t,n)=>{let o=a.webhooksCreate.parse(n),s=await r("/webhooks",t.key,{method:"POST",body:o}),p=i.webhooksCreate.parse(s);return await q(t,"hunterio.webhooks.create",{},"completed"),p},jn=async(t,n)=>{let o=a.webhooksGet.parse(n),s=await r(`/webhooks/${o.id}`,t.key,{method:"GET"}),p=i.webhooksGet.parse(s);return await q(t,"hunterio.webhooks.get",{id:o.id},"completed"),p},zn=async(t,n)=>{let o=a.webhooksUpdate.parse(n),{id:s,...p}=o,d=await r(`/webhooks/${s}`,t.key,{method:"PUT",body:p}),c=i.webhooksUpdate.parse(d);return await q(t,"hunterio.webhooks.update",{id:s},"completed"),c},Pn=async(t,n)=>{let o=a.webhooksReplace.parse(n),{id:s,...p}=o,d=await r(`/webhooks/${s}`,t.key,{method:"PATCH",body:p}),c=i.webhooksReplace.parse(d);return await q(t,"hunterio.webhooks.replace",{id:s},"completed"),c},Mn=async(t,n)=>{let o=a.webhooksDelete.parse(n),s=await r(`/webhooks/${o.id}`,t.key,{method:"DELETE"}),p=i.webhooksDelete.parse(s);return await q(t,"hunterio.webhooks.delete",{id:o.id},"completed"),p},Bn=async(t,n)=>{let o=a.webhooksDeleteLegacy.parse(n),s=await r("/webhooks",t.key,{method:"DELETE",query:{id:o.id}}),p=i.webhooksDeleteLegacy.parse(s);return await q(t,"hunterio.webhooks.deleteLegacy",{id:o.id},"completed"),p};var Ve={get:Ft,update:It},Vn={get:Ht},Ke={get:An,history:Dn},Kn={list:Tn},Z={list:Tt,create:qt,update:At,replace:Dt,delete:Ut},fe={list:Lo,get:So,push:Eo},$n={create:rs},Le={companies:Ro,people:_o,peoplePost:Fo},se={list:Io,create:Ho,get:To,delete:qo},Wn={get:Ao},$e={find:Uo,findPost:Go},Nn={get:Bo},ne={search:jo,searchPost:zo,found:Po,foundPost:Mo},We={search:Xs,reveal:en},Se={find:es,findFound:ts,findFoundPost:os},Qn={verify:ns},Zn={get:ss},Yn={get:Xo},Ee={person:as,company:is,combined:ps},Jn={list:Ps},Xn={get:Gt},ea={list:vn},ta={list:Ys},Ne={list:on,results:sn},m={list:ds,create:ms,upsert:ys,get:hs,update:gs,replace:bs,delete:fs,enrich:Ls,exist:Ss,bulkExist:Es,bulkUpsert:xs,bulkMove:ks,bulkDelete:Cs,importCsv:Os},A={list:wn,create:Rn,get:_n,update:Fn,replace:In,delete:Hn},Qe={attach:ls,detach:cs},D={list:xo,create:ko,get:Co,update:Oo,replace:vo,delete:wo},C={list:Hs,create:Ts,get:qs,update:As,replace:Ds,delete:Us,favorite:Gs,unfavorite:js,merge:zs},U={list:vs,create:ws,get:Rs,update:_s,replace:Fs,delete:Is},x={list:jt,create:zt,get:Pt,delete:Mt,tag:Bt,untag:Vt,bulkMove:Kt,bulkCopy:$t,bulkDelete:Wt,bulkTag:Nt},b={list:to,create:oo,get:so,update:no,replace:ao,delete:io,listCompanies:co,addCompany:po,removeCompany:ro,favorite:uo,unfavorite:lo},G={list:Qt,create:Zt,get:Yt,update:Jt,replace:Xt,delete:eo},j={list:mo,create:yo,get:ho,update:go,replace:bo,delete:fo},f={list:hn,create:gn,get:bn,update:fn,replace:Ln,delete:Sn,start:En,pause:xn,resume:kn,archive:Cn,test:On},xe={list:cn,add:dn,remove:mn},z={list:nn,create:an,get:pn,update:rn,replace:un,delete:ln},oa={get:yn},Ze={list:Qs,send:Zs},P={list:Ms,create:Bs,get:Vs,update:Ks,replace:$s,delete:Ws},O={list:Vo,get:Ko,update:$o,replace:Wo,capacities:No,healthReport:Qo,usage:Zo,warmupReport:Yo,sequences:Jo},I={list:Un,create:Gn,get:jn,update:zn,replace:Pn,delete:Mn,deleteLegacy:Bn};import{ApiError as ae}from"corsair/http";var sa={INSUFFICIENT_CREDITS_ERROR:{match:t=>{if(t instanceof ae&&t.status===429)return!0;let n=t.message.toLowerCase();return n.includes("insufficient credits")||n.includes("insufficient_credits")||n.includes("quota")||n.includes("plan limit")},handler:async()=>({maxRetries:0})},RATE_LIMIT_ERROR:{match:t=>{if(t instanceof ae&&t.status===403)return Ce(t.body);let n=t.message.toLowerCase();return n.includes("too many requests")||n.includes("rate limit")||n.includes("rate_limited")},handler:async t=>{let n;return t instanceof ae&&t.retryAfter!==void 0&&(n=t.retryAfter),{maxRetries:5,headersRetryAfterMs:n}}},AUTH_ERROR:{match:t=>{if(t instanceof ae&&t.status===401)return!0;let n=t.message.toLowerCase();return n.includes("unauthorized")||n.includes("invalid api key")||n.includes("missing api key")},handler:async()=>({maxRetries:0})},BAD_REQUEST_ERROR:{match:t=>{if(t instanceof ae&&(t.status===400||t.status===422))return!0;let n=t.message.toLowerCase();return n.includes("bad request")||n.includes("unprocessable")||n.includes("validation")},handler:async()=>({maxRetries:0})},DEFAULT:{match:()=>!0,handler:async()=>({maxRetries:0})}};var na={};var aa={version:"1.0.0",entities:na};var od={account:{get:Ve.get,update:Ve.update},accountStats:{get:Vn.get},usage:{get:Ke.get,history:Ke.history},teamMembers:{list:Kn.list},apiKeys:{list:Z.list,create:Z.create,update:Z.update,replace:Z.replace,delete:Z.delete},connectedApps:{list:fe.list,get:fe.get,push:fe.push},feedback:{create:$n.create},discover:{companies:Le.companies,people:Le.people,peoplePost:Le.peoplePost},discoverViews:{list:se.list,create:se.create,get:se.get,delete:se.delete},domainCount:{get:Wn.get},domainFinder:{find:$e.find,findPost:$e.findPost},domainsSuggestion:{get:Nn.get},domainSearch:{search:ne.search,searchPost:ne.searchPost,found:ne.found,foundPost:ne.foundPost},multiDomainSearch:{search:We.search,reveal:We.reveal},emailFinder:{find:Se.find,findFound:Se.findFound,findFoundPost:Se.findFoundPost},emailVerifier:{verify:Qn.verify},emailInsight:{get:Zn.get},emailCount:{get:Yn.get},enrichment:{person:Ee.person,company:Ee.company,combined:Ee.combined},lookalikes:{list:Jn.list},briefing:{get:Xn.get},signals:{list:ea.list},monitoredSignals:{list:ta.list},opportunities:{list:Ne.list,results:Ne.results},leads:{list:m.list,create:m.create,upsert:m.upsert,get:m.get,update:m.update,replace:m.replace,delete:m.delete,enrich:m.enrich,exist:m.exist,bulkExist:m.bulkExist,bulkUpsert:m.bulkUpsert,bulkMove:m.bulkMove,bulkDelete:m.bulkDelete,importCsv:m.importCsv},tags:{list:A.list,create:A.create,get:A.get,update:A.update,replace:A.replace,delete:A.delete},leadTags:{attach:Qe.attach,detach:Qe.detach},customAttributes:{list:D.list,create:D.create,get:D.get,update:D.update,replace:D.replace,delete:D.delete},leadsLists:{list:C.list,create:C.create,get:C.get,update:C.update,replace:C.replace,delete:C.delete,favorite:C.favorite,unfavorite:C.unfavorite,merge:C.merge},leadsListFolders:{list:U.list,create:U.create,get:U.get,update:U.update,replace:U.replace,delete:U.delete},companies:{list:x.list,create:x.create,get:x.get,delete:x.delete,tag:x.tag,untag:x.untag,bulkMove:x.bulkMove,bulkCopy:x.bulkCopy,bulkDelete:x.bulkDelete,bulkTag:x.bulkTag},companyLists:{list:b.list,create:b.create,get:b.get,update:b.update,replace:b.replace,delete:b.delete,listCompanies:b.listCompanies,addCompany:b.addCompany,removeCompany:b.removeCompany,favorite:b.favorite,unfavorite:b.unfavorite},companyListFolders:{list:G.list,create:G.create,get:G.get,update:G.update,replace:G.replace,delete:G.delete},companyTags:{list:j.list,create:j.create,get:j.get,update:j.update,replace:j.replace,delete:j.delete},sequences:{list:f.list,create:f.create,get:f.get,update:f.update,replace:f.replace,delete:f.delete,start:f.start,pause:f.pause,resume:f.resume,archive:f.archive,test:f.test},sequenceRecipients:{list:xe.list,add:xe.add,remove:xe.remove},sequenceFollowUps:{list:z.list,create:z.create,get:z.get,update:z.update,replace:z.replace,delete:z.delete},sequenceStats:{get:oa.get},messages:{list:Ze.list,send:Ze.send},messageTemplates:{list:P.list,create:P.create,get:P.get,update:P.update,replace:P.replace,delete:P.delete},emailAccounts:{list:O.list,get:O.get,update:O.update,replace:O.replace,capacities:O.capacities,healthReport:O.healthReport,usage:O.usage,warmupReport:O.warmupReport,sequences:O.sequences},webhooks:{list:I.list,create:I.create,get:I.get,update:I.update,replace:I.replace,delete:I.delete,deleteLegacy:I.deleteLegacy}},sd={"account.get":{input:a.accountGet,output:i.accountGet},"account.update":{input:a.accountUpdate,output:i.accountUpdate},"accountStats.get":{input:a.accountStatsGet,output:i.accountStatsGet},"usage.get":{input:a.usageGet,output:i.usageGet},"usage.history":{input:a.usageHistory,output:i.usageHistory},"teamMembers.list":{input:a.teamMembersList,output:i.teamMembersList},"apiKeys.list":{input:a.apiKeysList,output:i.apiKeysList},"apiKeys.create":{input:a.apiKeysCreate,output:i.apiKeysCreate},"apiKeys.update":{input:a.apiKeysUpdate,output:i.apiKeysUpdate},"apiKeys.replace":{input:a.apiKeysReplace,output:i.apiKeysReplace},"apiKeys.delete":{input:a.apiKeysDelete,output:i.apiKeysDelete},"connectedApps.list":{input:a.connectedAppsList,output:i.connectedAppsList},"connectedApps.get":{input:a.connectedAppsGet,output:i.connectedAppsGet},"connectedApps.push":{input:a.connectedAppsPush,output:i.connectedAppsPush},"feedback.create":{input:a.feedbackCreate,output:i.feedbackCreate},"discover.companies":{input:a.discoverCompanies,output:i.discoverCompanies},"discover.people":{input:a.discoverPeople,output:i.discoverPeople},"discover.peoplePost":{input:a.discoverPeoplePost,output:i.discoverPeoplePost},"discoverViews.list":{input:a.discoverViewsList,output:i.discoverViewsList},"discoverViews.create":{input:a.discoverViewsCreate,output:i.discoverViewsCreate},"discoverViews.get":{input:a.discoverViewsGet,output:i.discoverViewsGet},"discoverViews.delete":{input:a.discoverViewsDelete,output:i.discoverViewsDelete},"domainCount.get":{input:a.domainCountGet,output:i.domainCountGet},"domainFinder.find":{input:a.domainFinderFind,output:i.domainFinderFind},"domainFinder.findPost":{input:a.domainFinderFindPost,output:i.domainFinderFindPost},"domainsSuggestion.get":{input:a.domainsSuggestionGet,output:i.domainsSuggestionGet},"domainSearch.search":{input:a.domainSearchSearch,output:i.domainSearchSearch},"domainSearch.searchPost":{input:a.domainSearchSearchPost,output:i.domainSearchSearchPost},"domainSearch.found":{input:a.domainSearchFound,output:i.domainSearchFound},"domainSearch.foundPost":{input:a.domainSearchFoundPost,output:i.domainSearchFoundPost},"multiDomainSearch.search":{input:a.multiDomainSearchSearch,output:i.multiDomainSearchSearch},"multiDomainSearch.reveal":{input:a.multiDomainSearchReveal,output:i.multiDomainSearchReveal},"emailFinder.find":{input:a.emailFinderFind,output:i.emailFinderFind},"emailFinder.findFound":{input:a.emailFinderFindFound,output:i.emailFinderFindFound},"emailFinder.findFoundPost":{input:a.emailFinderFindFoundPost,output:i.emailFinderFindFoundPost},"emailVerifier.verify":{input:a.emailVerifierVerify,output:i.emailVerifierVerify},"emailInsight.get":{input:a.emailInsightGet,output:i.emailInsightGet},"emailCount.get":{input:a.emailCountGet,output:i.emailCountGet},"enrichment.person":{input:a.enrichmentPerson,output:i.enrichmentPerson},"enrichment.company":{input:a.enrichmentCompany,output:i.enrichmentCompany},"enrichment.combined":{input:a.enrichmentCombined,output:i.enrichmentCombined},"lookalikes.list":{input:a.lookalikesList,output:i.lookalikesList},"briefing.get":{input:a.briefingGet,output:i.briefingGet},"signals.list":{input:a.signalsList,output:i.signalsList},"monitoredSignals.list":{input:a.monitoredSignalsList,output:i.monitoredSignalsList},"opportunities.list":{input:a.opportunitiesList,output:i.opportunitiesList},"opportunities.results":{input:a.opportunitiesResults,output:i.opportunitiesResults},"leads.list":{input:a.leadsList,output:i.leadsList},"leads.create":{input:a.leadsCreate,output:i.leadsCreate},"leads.upsert":{input:a.leadsUpsert,output:i.leadsUpsert},"leads.get":{input:a.leadsGet,output:i.leadsGet},"leads.update":{input:a.leadsUpdate,output:i.leadsUpdate},"leads.replace":{input:a.leadsReplace,output:i.leadsReplace},"leads.delete":{input:a.leadsDelete,output:i.leadsDelete},"leads.enrich":{input:a.leadsEnrich,output:i.leadsEnrich},"leads.exist":{input:a.leadsExist,output:i.leadsExist},"leads.bulkExist":{input:a.leadsBulkExist,output:i.leadsBulkExist},"leads.bulkUpsert":{input:a.leadsBulkUpsert,output:i.leadsBulkUpsert},"leads.bulkMove":{input:a.leadsBulkMove,output:i.leadsBulkMove},"leads.bulkDelete":{input:a.leadsBulkDelete,output:i.leadsBulkDelete},"leads.importCsv":{input:a.leadsImportCsv,output:i.leadsImportCsv},"tags.list":{input:a.tagsList,output:i.tagsList},"tags.create":{input:a.tagsCreate,output:i.tagsCreate},"tags.get":{input:a.tagsGet,output:i.tagsGet},"tags.update":{input:a.tagsUpdate,output:i.tagsUpdate},"tags.replace":{input:a.tagsReplace,output:i.tagsReplace},"tags.delete":{input:a.tagsDelete,output:i.tagsDelete},"leadTags.attach":{input:a.leadTagsAttach,output:i.leadTagsAttach},"leadTags.detach":{input:a.leadTagsDetach,output:i.leadTagsDetach},"customAttributes.list":{input:a.customAttributesList,output:i.customAttributesList},"customAttributes.create":{input:a.customAttributesCreate,output:i.customAttributesCreate},"customAttributes.get":{input:a.customAttributesGet,output:i.customAttributesGet},"customAttributes.update":{input:a.customAttributesUpdate,output:i.customAttributesUpdate},"customAttributes.replace":{input:a.customAttributesReplace,output:i.customAttributesReplace},"customAttributes.delete":{input:a.customAttributesDelete,output:i.customAttributesDelete},"leadsLists.list":{input:a.leadsListsList,output:i.leadsListsList},"leadsLists.create":{input:a.leadsListsCreate,output:i.leadsListsCreate},"leadsLists.get":{input:a.leadsListsGet,output:i.leadsListsGet},"leadsLists.update":{input:a.leadsListsUpdate,output:i.leadsListsUpdate},"leadsLists.replace":{input:a.leadsListsReplace,output:i.leadsListsReplace},"leadsLists.delete":{input:a.leadsListsDelete,output:i.leadsListsDelete},"leadsLists.favorite":{input:a.leadsListsFavorite,output:i.leadsListsFavorite},"leadsLists.unfavorite":{input:a.leadsListsUnfavorite,output:i.leadsListsUnfavorite},"leadsLists.merge":{input:a.leadsListsMerge,output:i.leadsListsMerge},"leadsListFolders.list":{input:a.leadsListFoldersList,output:i.leadsListFoldersList},"leadsListFolders.create":{input:a.leadsListFoldersCreate,output:i.leadsListFoldersCreate},"leadsListFolders.get":{input:a.leadsListFoldersGet,output:i.leadsListFoldersGet},"leadsListFolders.update":{input:a.leadsListFoldersUpdate,output:i.leadsListFoldersUpdate},"leadsListFolders.replace":{input:a.leadsListFoldersReplace,output:i.leadsListFoldersReplace},"leadsListFolders.delete":{input:a.leadsListFoldersDelete,output:i.leadsListFoldersDelete},"companies.list":{input:a.companiesList,output:i.companiesList},"companies.create":{input:a.companiesCreate,output:i.companiesCreate},"companies.get":{input:a.companiesGet,output:i.companiesGet},"companies.delete":{input:a.companiesDelete,output:i.companiesDelete},"companies.tag":{input:a.companiesTag,output:i.companiesTag},"companies.untag":{input:a.companiesUntag,output:i.companiesUntag},"companies.bulkMove":{input:a.companiesBulkMove,output:i.companiesBulkMove},"companies.bulkCopy":{input:a.companiesBulkCopy,output:i.companiesBulkCopy},"companies.bulkDelete":{input:a.companiesBulkDelete,output:i.companiesBulkDelete},"companies.bulkTag":{input:a.companiesBulkTag,output:i.companiesBulkTag},"companyLists.list":{input:a.companyListsList,output:i.companyListsList},"companyLists.create":{input:a.companyListsCreate,output:i.companyListsCreate},"companyLists.get":{input:a.companyListsGet,output:i.companyListsGet},"companyLists.update":{input:a.companyListsUpdate,output:i.companyListsUpdate},"companyLists.replace":{input:a.companyListsReplace,output:i.companyListsReplace},"companyLists.delete":{input:a.companyListsDelete,output:i.companyListsDelete},"companyLists.addCompany":{input:a.companyListsAddCompany,output:i.companyListsAddCompany},"companyLists.listCompanies":{input:a.companyListsListCompanies,output:i.companyListsListCompanies},"companyLists.removeCompany":{input:a.companyListsRemoveCompany,output:i.companyListsRemoveCompany},"companyLists.favorite":{input:a.companyListsFavorite,output:i.companyListsFavorite},"companyLists.unfavorite":{input:a.companyListsUnfavorite,output:i.companyListsUnfavorite},"companyListFolders.list":{input:a.companyListFoldersList,output:i.companyListFoldersList},"companyListFolders.create":{input:a.companyListFoldersCreate,output:i.companyListFoldersCreate},"companyListFolders.get":{input:a.companyListFoldersGet,output:i.companyListFoldersGet},"companyListFolders.update":{input:a.companyListFoldersUpdate,output:i.companyListFoldersUpdate},"companyListFolders.replace":{input:a.companyListFoldersReplace,output:i.companyListFoldersReplace},"companyListFolders.delete":{input:a.companyListFoldersDelete,output:i.companyListFoldersDelete},"companyTags.list":{input:a.companyTagsList,output:i.companyTagsList},"companyTags.create":{input:a.companyTagsCreate,output:i.companyTagsCreate},"companyTags.get":{input:a.companyTagsGet,output:i.companyTagsGet},"companyTags.update":{input:a.companyTagsUpdate,output:i.companyTagsUpdate},"companyTags.replace":{input:a.companyTagsReplace,output:i.companyTagsReplace},"companyTags.delete":{input:a.companyTagsDelete,output:i.companyTagsDelete},"sequences.list":{input:a.sequencesList,output:i.sequencesList},"sequences.create":{input:a.sequencesCreate,output:i.sequencesCreate},"sequences.get":{input:a.sequencesGet,output:i.sequencesGet},"sequences.update":{input:a.sequencesUpdate,output:i.sequencesUpdate},"sequences.replace":{input:a.sequencesReplace,output:i.sequencesReplace},"sequences.delete":{input:a.sequencesDelete,output:i.sequencesDelete},"sequences.start":{input:a.sequencesStart,output:i.sequencesStart},"sequences.pause":{input:a.sequencesPause,output:i.sequencesPause},"sequences.resume":{input:a.sequencesResume,output:i.sequencesResume},"sequences.archive":{input:a.sequencesArchive,output:i.sequencesArchive},"sequences.test":{input:a.sequencesTest,output:i.sequencesTest},"sequenceRecipients.list":{input:a.sequenceRecipientsList,output:i.sequenceRecipientsList},"sequenceRecipients.add":{input:a.sequenceRecipientsAdd,output:i.sequenceRecipientsAdd},"sequenceRecipients.remove":{input:a.sequenceRecipientsRemove,output:i.sequenceRecipientsRemove},"sequenceFollowUps.list":{input:a.sequenceFollowUpsList,output:i.sequenceFollowUpsList},"sequenceFollowUps.create":{input:a.sequenceFollowUpsCreate,output:i.sequenceFollowUpsCreate},"sequenceFollowUps.get":{input:a.sequenceFollowUpsGet,output:i.sequenceFollowUpsGet},"sequenceFollowUps.update":{input:a.sequenceFollowUpsUpdate,output:i.sequenceFollowUpsUpdate},"sequenceFollowUps.replace":{input:a.sequenceFollowUpsReplace,output:i.sequenceFollowUpsReplace},"sequenceFollowUps.delete":{input:a.sequenceFollowUpsDelete,output:i.sequenceFollowUpsDelete},"sequenceStats.get":{input:a.sequenceStatsGet,output:i.sequenceStatsGet},"messages.list":{input:a.messagesList,output:i.messagesList},"messages.send":{input:a.messagesSend,output:i.messagesSend},"messageTemplates.list":{input:a.messageTemplatesList,output:i.messageTemplatesList},"messageTemplates.create":{input:a.messageTemplatesCreate,output:i.messageTemplatesCreate},"messageTemplates.get":{input:a.messageTemplatesGet,output:i.messageTemplatesGet},"messageTemplates.update":{input:a.messageTemplatesUpdate,output:i.messageTemplatesUpdate},"messageTemplates.replace":{input:a.messageTemplatesReplace,output:i.messageTemplatesReplace},"messageTemplates.delete":{input:a.messageTemplatesDelete,output:i.messageTemplatesDelete},"emailAccounts.list":{input:a.emailAccountsList,output:i.emailAccountsList},"emailAccounts.get":{input:a.emailAccountsGet,output:i.emailAccountsGet},"emailAccounts.update":{input:a.emailAccountsUpdate,output:i.emailAccountsUpdate},"emailAccounts.replace":{input:a.emailAccountsReplace,output:i.emailAccountsReplace},"emailAccounts.capacities":{input:a.emailAccountsCapacities,output:i.emailAccountsCapacities},"emailAccounts.healthReport":{input:a.emailAccountsHealthReport,output:i.emailAccountsHealthReport},"emailAccounts.usage":{input:a.emailAccountsUsage,output:i.emailAccountsUsage},"emailAccounts.warmupReport":{input:a.emailAccountsWarmupReport,output:i.emailAccountsWarmupReport},"emailAccounts.sequences":{input:a.emailAccountsSequences,output:i.emailAccountsSequences},"webhooks.list":{input:a.webhooksList,output:i.webhooksList},"webhooks.create":{input:a.webhooksCreate,output:i.webhooksCreate},"webhooks.get":{input:a.webhooksGet,output:i.webhooksGet},"webhooks.update":{input:a.webhooksUpdate,output:i.webhooksUpdate},"webhooks.replace":{input:a.webhooksReplace,output:i.webhooksReplace},"webhooks.delete":{input:a.webhooksDelete,output:i.webhooksDelete},"webhooks.deleteLegacy":{input:a.webhooksDeleteLegacy,output:i.webhooksDeleteLegacy}},nd="api_key",ad={"account.get":{riskLevel:"read",description:"Get the Hunter.io account profile"},"account.update":{riskLevel:"write",description:"Update the Hunter.io account profile"},"accountStats.get":{riskLevel:"read",description:"Get global account statistics and credit usage"},"usage.get":{riskLevel:"read",description:"Get account usage and plan limits"},"usage.history":{riskLevel:"read",description:"Get the daily API usage history for this billing period"},"teamMembers.list":{riskLevel:"read",description:"List the team members on the account"},"apiKeys.list":{riskLevel:"read",description:"List the API keys on the account"},"apiKeys.create":{riskLevel:"write",description:"Create a new API key"},"apiKeys.update":{riskLevel:"write",description:"Update an API key"},"apiKeys.replace":{riskLevel:"write",description:"Replace an API key definition"},"apiKeys.delete":{riskLevel:"destructive",irreversible:!0,description:"Delete an API key permanently [DESTRUCTIVE \xB7 IRREVERSIBLE]"},"connectedApps.list":{riskLevel:"read",description:"List the connected apps on the account"},"connectedApps.get":{riskLevel:"read",description:"Get a connected app"},"connectedApps.push":{riskLevel:"write",description:"Push leads to a connected app"},"feedback.create":{riskLevel:"write",description:"Send product feedback to Hunter"},"discover.companies":{riskLevel:"read",description:"Discover companies matching the given filters"},"discover.people":{riskLevel:"read",description:"Discover people matching the given filters"},"discover.peoplePost":{riskLevel:"read",description:"Discover people with nested filters (POST form)"},"discoverViews.list":{riskLevel:"read",description:"List saved discover views"},"discoverViews.create":{riskLevel:"write",description:"Save the current discover filters as a view"},"discoverViews.get":{riskLevel:"read",description:"Get a saved discover view"},"discoverViews.delete":{riskLevel:"destructive",irreversible:!0,description:"Delete a saved discover view permanently [DESTRUCTIVE \xB7 IRREVERSIBLE]"},"domainCount.get":{riskLevel:"read",description:"Count the email addresses available for a domain"},"domainFinder.find":{riskLevel:"read",description:"Find the domain of a company by name"},"domainFinder.findPost":{riskLevel:"read",description:"Find the domain of a company by name (POST form)"},"domainsSuggestion.get":{riskLevel:"read",description:"Suggest similar company domains"},"domainSearch.search":{riskLevel:"read",description:"List the email addresses found for a domain. Charges 1 credit per 10 emails returned"},"domainSearch.searchPost":{riskLevel:"read",description:"List the email addresses found for a domain (POST form). Charges 1 credit per 10 emails returned"},"domainSearch.found":{riskLevel:"read",description:"Search the email addresses Hunter found on the web for a domain, without generated guesses. Charges 1 credit per 10 emails returned"},"domainSearch.foundPost":{riskLevel:"read",description:"Search found email addresses for a domain with body filters, including location. Charges 1 credit per 10 emails returned"},"multiDomainSearch.search":{riskLevel:"read",description:"Find email addresses across multiple domains"},"multiDomainSearch.reveal":{riskLevel:"read",description:"Reveal the verified email addresses of a multi-domain search. Charges 1 credit per email revealed for the first time this billing period"},"emailFinder.find":{riskLevel:"read",description:"Find the most likely email of a person. Charges 1 credit when an email is found"},"emailFinder.findFound":{riskLevel:"read",description:"Check whether an email was already found for a person. Charges 1 credit when an email is found"},"emailFinder.findFoundPost":{riskLevel:"read",description:"Check whether an email was already found (POST form). Charges 1 credit when an email is found"},"emailVerifier.verify":{riskLevel:"read",description:"Verify the deliverability of an email address. Charges 0.5 credit per verification"},"emailInsight.get":{riskLevel:"read",description:"Get insight data for an email address"},"emailCount.get":{riskLevel:"read",description:"Count the email addresses found for a domain"},"enrichment.person":{riskLevel:"read",description:"Enrich a person profile from an email or name. Charges 0.2 credit when data is found"},"enrichment.company":{riskLevel:"read",description:"Enrich a company profile from a domain or name. Charges 0.2 credit when data is found"},"enrichment.combined":{riskLevel:"read",description:"Enrich a person and their company together. Charges 0.2 credit when data is found"},"lookalikes.list":{riskLevel:"read",description:"Find companies similar to a seed company"},"briefing.get":{riskLevel:"read",description:"Get what needs attention today: counts of new lead and Monitored Signals events, new opportunities this week, and the credit balance, each with its follow-up call"},"signals.list":{riskLevel:"read",description:"List signal events from the last 30 days (funding rounds, tech changes, new contacts, hires, job posts, contact moves) for your leads or your Monitored Signals"},"monitoredSignals.list":{riskLevel:"read",description:"List the Monitored Signals of the team: funding signals, job openings signals and company follows"},"opportunities.list":{riskLevel:"read",description:"List the opportunities of this week: groups of people or companies similar to the leads and companies you saved"},"opportunities.results":{riskLevel:"read",description:"List the masked people or the companies of one opportunity; reveal emails with multiDomainSearch.reveal"},"leads.list":{riskLevel:"read",description:"List leads with filters"},"leads.create":{riskLevel:"write",description:"Create a lead"},"leads.upsert":{riskLevel:"write",description:"Create or update a lead"},"leads.get":{riskLevel:"read",description:"Get a lead"},"leads.update":{riskLevel:"write",description:"Update a lead"},"leads.replace":{riskLevel:"write",description:"Replace a lead"},"leads.delete":{riskLevel:"destructive",irreversible:!0,description:"Delete a lead permanently [DESTRUCTIVE \xB7 IRREVERSIBLE]"},"leads.enrich":{riskLevel:"write",description:"Enrich a lead with data found by Hunter"},"leads.exist":{riskLevel:"read",description:"Check whether an email exists as a lead"},"leads.bulkExist":{riskLevel:"read",description:"Check which of the given emails exist as leads"},"leads.bulkUpsert":{riskLevel:"write",description:"Create or update up to 100 leads in a single call"},"leads.bulkMove":{riskLevel:"write",description:"Move leads to another leads list"},"leads.bulkDelete":{riskLevel:"destructive",irreversible:!0,description:"Delete leads in bulk permanently [DESTRUCTIVE \xB7 IRREVERSIBLE]"},"leads.importCsv":{riskLevel:"write",description:"Create a CSV import job for leads"},"tags.list":{riskLevel:"read",description:"List the lead tags on the account"},"tags.create":{riskLevel:"write",description:"Create a lead tag"},"tags.get":{riskLevel:"read",description:"Get a lead tag"},"tags.update":{riskLevel:"write",description:"Update a lead tag"},"tags.replace":{riskLevel:"write",description:"Replace a lead tag"},"tags.delete":{riskLevel:"destructive",irreversible:!0,description:"Delete a lead tag permanently [DESTRUCTIVE \xB7 IRREVERSIBLE]"},"leadTags.attach":{riskLevel:"write",description:"Attach a tag to a lead"},"leadTags.detach":{riskLevel:"destructive",description:"Detach a tag from a lead [DESTRUCTIVE]"},"customAttributes.list":{riskLevel:"read",description:"List the custom attributes on the account"},"customAttributes.create":{riskLevel:"write",description:"Create a custom attribute"},"customAttributes.get":{riskLevel:"read",description:"Get a custom attribute"},"customAttributes.update":{riskLevel:"write",description:"Update a custom attribute"},"customAttributes.replace":{riskLevel:"write",description:"Replace a custom attribute"},"customAttributes.delete":{riskLevel:"destructive",irreversible:!0,description:"Delete a custom attribute permanently [DESTRUCTIVE \xB7 IRREVERSIBLE]"},"leadsLists.list":{riskLevel:"read",description:"List the leads lists on the account"},"leadsLists.create":{riskLevel:"write",description:"Create a leads list"},"leadsLists.get":{riskLevel:"read",description:"Get a leads list and its leads"},"leadsLists.update":{riskLevel:"write",description:"Update a leads list"},"leadsLists.replace":{riskLevel:"write",description:"Replace a leads list"},"leadsLists.delete":{riskLevel:"destructive",irreversible:!0,description:"Delete a leads list permanently [DESTRUCTIVE \xB7 IRREVERSIBLE]"},"leadsLists.favorite":{riskLevel:"write",description:"Mark a leads list as favorite"},"leadsLists.unfavorite":{riskLevel:"write",description:"Remove the favorite mark from a leads list"},"leadsLists.merge":{riskLevel:"destructive",description:"Merge a leads list into another list [DESTRUCTIVE]"},"leadsListFolders.list":{riskLevel:"read",description:"List the leads list folders"},"leadsListFolders.create":{riskLevel:"write",description:"Create a leads list folder"},"leadsListFolders.get":{riskLevel:"read",description:"Get a leads list folder"},"leadsListFolders.update":{riskLevel:"write",description:"Update a leads list folder"},"leadsListFolders.replace":{riskLevel:"write",description:"Replace a leads list folder"},"leadsListFolders.delete":{riskLevel:"destructive",irreversible:!0,description:"Delete a leads list folder permanently [DESTRUCTIVE \xB7 IRREVERSIBLE]"},"companies.list":{riskLevel:"read",description:"List companies with filters"},"companies.create":{riskLevel:"write",description:"Add a company to the account from a domain"},"companies.get":{riskLevel:"read",description:"Get a company"},"companies.delete":{riskLevel:"destructive",irreversible:!0,description:"Delete a company permanently [DESTRUCTIVE \xB7 IRREVERSIBLE]"},"companies.tag":{riskLevel:"write",description:"Assign a tag to a company"},"companies.untag":{riskLevel:"destructive",description:"Remove a tag from a company [DESTRUCTIVE]"},"companies.bulkMove":{riskLevel:"write",description:"Move companies to another company list"},"companies.bulkCopy":{riskLevel:"write",description:"Copy companies to another company list"},"companies.bulkDelete":{riskLevel:"destructive",irreversible:!0,description:"Delete companies in bulk permanently [DESTRUCTIVE \xB7 IRREVERSIBLE]"},"companies.bulkTag":{riskLevel:"write",description:"Assign a tag to companies in bulk"},"companyLists.list":{riskLevel:"read",description:"List the company lists on the account"},"companyLists.create":{riskLevel:"write",description:"Create a company list"},"companyLists.get":{riskLevel:"read",description:"Get a company list and its companies"},"companyLists.update":{riskLevel:"write",description:"Update a company list"},"companyLists.replace":{riskLevel:"write",description:"Replace a company list"},"companyLists.delete":{riskLevel:"destructive",irreversible:!0,description:"Delete a company list permanently [DESTRUCTIVE \xB7 IRREVERSIBLE]"},"companyLists.addCompany":{riskLevel:"write",description:"Add a company to a company list"},"companyLists.listCompanies":{riskLevel:"read",description:"List the companies in a static company list, most recently added first"},"companyLists.removeCompany":{riskLevel:"destructive",description:"Remove a company from a company list [DESTRUCTIVE]"},"companyLists.favorite":{riskLevel:"write",description:"Mark a company list as favorite"},"companyLists.unfavorite":{riskLevel:"write",description:"Remove the favorite mark from a company list"},"companyListFolders.list":{riskLevel:"read",description:"List the company list folders"},"companyListFolders.create":{riskLevel:"write",description:"Create a company list folder"},"companyListFolders.get":{riskLevel:"read",description:"Get a company list folder"},"companyListFolders.update":{riskLevel:"write",description:"Update a company list folder"},"companyListFolders.replace":{riskLevel:"write",description:"Replace a company list folder"},"companyListFolders.delete":{riskLevel:"destructive",irreversible:!0,description:"Delete a company list folder permanently [DESTRUCTIVE \xB7 IRREVERSIBLE]"},"companyTags.list":{riskLevel:"read",description:"List the company tags on the account"},"companyTags.create":{riskLevel:"write",description:"Create a company tag"},"companyTags.get":{riskLevel:"read",description:"Get a company tag"},"companyTags.update":{riskLevel:"write",description:"Update a company tag"},"companyTags.replace":{riskLevel:"write",description:"Replace a company tag"},"companyTags.delete":{riskLevel:"destructive",irreversible:!0,description:"Delete a company tag permanently [DESTRUCTIVE \xB7 IRREVERSIBLE]"},"sequences.list":{riskLevel:"read",description:"List sequences"},"sequences.create":{riskLevel:"write",description:"Create a sequence draft"},"sequences.get":{riskLevel:"read",description:"Get a sequence"},"sequences.update":{riskLevel:"write",description:"Update a sequence"},"sequences.replace":{riskLevel:"write",description:"Replace a sequence"},"sequences.delete":{riskLevel:"destructive",irreversible:!0,description:"Delete a sequence draft permanently [DESTRUCTIVE \xB7 IRREVERSIBLE]"},"sequences.start":{riskLevel:"destructive",description:"Start a sequence. Starts sending emails to the recipients [DESTRUCTIVE \xB7 SENDS EMAIL]"},"sequences.pause":{riskLevel:"write",description:"Pause an active sequence"},"sequences.resume":{riskLevel:"write",description:"Resume a paused sequence"},"sequences.archive":{riskLevel:"write",description:"Archive a sequence"},"sequences.test":{riskLevel:"destructive",description:"Send test emails for every step of a sequence. Sends a real test email [DESTRUCTIVE \xB7 SENDS EMAIL]"},"sequenceRecipients.list":{riskLevel:"read",description:"List the recipients of a sequence"},"sequenceRecipients.add":{riskLevel:"write",description:"Add recipients to a sequence"},"sequenceRecipients.remove":{riskLevel:"destructive",description:"Remove recipients from a sequence and cancel their messages [DESTRUCTIVE]"},"sequenceFollowUps.list":{riskLevel:"read",description:"List the follow-up steps of a sequence"},"sequenceFollowUps.create":{riskLevel:"write",description:"Add a follow-up step to a sequence"},"sequenceFollowUps.get":{riskLevel:"read",description:"Get a follow-up step"},"sequenceFollowUps.update":{riskLevel:"write",description:"Update a follow-up step"},"sequenceFollowUps.replace":{riskLevel:"write",description:"Replace a follow-up step"},"sequenceFollowUps.delete":{riskLevel:"destructive",irreversible:!0,description:"Delete the last follow-up step permanently [DESTRUCTIVE \xB7 IRREVERSIBLE]"},"sequenceStats.get":{riskLevel:"read",description:"Get performance statistics for a sequence"},"messages.list":{riskLevel:"read",description:"List messages sent or received"},"messages.send":{riskLevel:"destructive",description:"Send a message from a connected email account. Sends a real email [DESTRUCTIVE \xB7 SENDS EMAIL]"},"messageTemplates.list":{riskLevel:"read",description:"List message templates"},"messageTemplates.create":{riskLevel:"write",description:"Create a message template"},"messageTemplates.get":{riskLevel:"read",description:"Get a message template"},"messageTemplates.update":{riskLevel:"write",description:"Update a message template"},"messageTemplates.replace":{riskLevel:"write",description:"Replace a message template"},"messageTemplates.delete":{riskLevel:"destructive",irreversible:!0,description:"Delete a message template permanently [DESTRUCTIVE \xB7 IRREVERSIBLE]"},"emailAccounts.list":{riskLevel:"read",description:"List the connected email accounts"},"emailAccounts.get":{riskLevel:"read",description:"Get a connected email account"},"emailAccounts.update":{riskLevel:"write",description:"Update email account settings"},"emailAccounts.replace":{riskLevel:"write",description:"Replace email account settings"},"emailAccounts.capacities":{riskLevel:"read",description:"Get the sending capacities of all email accounts"},"emailAccounts.healthReport":{riskLevel:"read",description:"Get the deliverability health report of an email account"},"emailAccounts.usage":{riskLevel:"read",description:"Get sending usage and limits of an email account"},"emailAccounts.warmupReport":{riskLevel:"read",description:"Get the warmup report of an email account"},"emailAccounts.sequences":{riskLevel:"read",description:"List the sequences using an email account"},"webhooks.list":{riskLevel:"read",description:"List the configured webhooks"},"webhooks.create":{riskLevel:"write",description:"Create a webhook"},"webhooks.get":{riskLevel:"read",description:"Get a webhook"},"webhooks.update":{riskLevel:"write",description:"Update a webhook"},"webhooks.replace":{riskLevel:"write",description:"Replace a webhook"},"webhooks.delete":{riskLevel:"destructive",irreversible:!0,description:"Delete a webhook permanently [DESTRUCTIVE \xB7 IRREVERSIBLE]"},"webhooks.deleteLegacy":{riskLevel:"destructive",irreversible:!0,description:"Delete a webhook permanently via the legacy endpoint [DESTRUCTIVE \xB7 IRREVERSIBLE]"}},id=ed(),pd={api_key:{}};function Og(t={}){let n={...t,authType:t.authType??nd};if(n.authType==="managed_pricing"&&n.key)throw new Error("hunterio: `key` can't be used with authType 'managed_pricing', which runs on Corsair's Hunter key. Drop `key`, or use authType 'api_key' to call Hunter with your own key.");return{id:"hunterio",authConfig:pd,schema:aa,options:n,hooks:n.hooks,endpoints:od,webhooks:{},endpointMeta:ad,endpointSchemas:sd,errorHandlers:(()=>{let{DEFAULT:o,...s}=sa,{DEFAULT:p,...d}=n.errorHandlers??{};return{...s,...d,DEFAULT:p??o}})(),keyBuilder:async(o,s)=>s==="endpoint"&&n.key?n.key:s==="endpoint"&&o.authType==="managed_pricing"?td(o,{plugin:"hunterio",cache:id,operation:o.meteredOperationId}):s==="endpoint"&&o.authType==="api_key"?await o.keys.get_api_key()??"":""}}export{Og as hunterio,pd as hunterioAuthConfig,sd as hunterioEndpointSchemas};
|