@pipe0/base 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/dist/index.mjs CHANGED
@@ -64,13 +64,13 @@ From the current S24 batch.
64
64
  How do you...`,`Y Combinator's most popular startups.
65
65
  From the current S24 batch.
66
66
 
67
- How do you...`]}},crustdata_post_list:{label:`Crustdata Post list`,type:`json`,format:`json_list_string`,description:`Rich JSON post list`,jsonMeta:{zodSchema:ct,exampleValue:lt}},role_finder_match:{label:`Role finder match`,type:`json`,format:`json_object`,description:`Result of a role finder operation`,jsonMeta:{zodSchema:Ft,exampleValue:It}},amplemarket_person_match:{label:`Person match`,type:`json`,format:`json_object`,description:`Person match object as returned by Amplemarket`,jsonMeta:{zodSchema:Ne,exampleValue:Pe}},amplemarket_company_match:{label:`Company match`,type:`json`,format:`json_object`,description:`Company match object as returned by Amplemarket`,jsonMeta:{zodSchema:je,exampleValue:Me}},companyenrich_matches:{label:`CompanyEnrich matches`,type:`json`,format:`json_object`,description:`CompanyEnrich response list.`,jsonMeta:{zodSchema:r.array(et),exampleValue:[tt]}},logo_url:{label:`Logo URL`,type:`string`,format:`text`,description:`Company or organization logo`,jsonMeta:null},logodev_describe_match:{label:`Company match`,type:`json`,format:`json_object`,description:`Get company logos & brand data`,jsonMeta:{exampleValue:Dt,zodSchema:Et}},mobile_number:{label:`Mobile`,type:`string`,description:`Mobile telephone number of a person.`,jsonMeta:null,format:`phone`},company_social_url:{label:`Company Social URL`,type:`string`,description:`Social Media URL for a given company (e.g. LinkedIn profile URL).`,jsonMeta:null,format:`profile_url`},professional_profile:{label:`Professional profile (LinkedIn)`,type:`json`,description:`A standardized format for returning LinkedIn profile data.`,jsonMeta:{zodSchema:Nt,exampleValue:Pt},format:`json_object`},professional_profile_url:{label:`LinkedIn Profile URL`,type:`string`,format:`profile_url`,description:`A person's LinkedIn profile URL.`,jsonMeta:null}},nn={company_description:{},cleaned_company_name:{},company_industry:{},icypeas_person_match:{getStaticWidgets(e){if(!e)return{};let t=e;return{display_value:{label:`${t.firstname} ${t.lastname} profile`}}}},icypeas_company_match:{getStaticWidgets(e){return e?{display_value:{label:`${e.name} profile`}}:{}}},company_region:{getStaticWidgets:e=>{let t={},n=Qt(e);return n&&(t.location_indicator={emoji:n}),t}},location_hint:{},estimated_revenue:{},founded_year:{},technology_list:{},spending_trend:{getStaticWidgets(e){let t=e;return{display_value:{label:`${t>3?`πŸ”ΌπŸ”ΌπŸ”Ό`:t>1?`πŸ”ΌπŸ”Ό`:t>0?`πŸ”Ό`:t<-3?`πŸ”½πŸ”½πŸ”½`:t<-1?`πŸ”½πŸ”½`:t<0?`πŸ”½`:``} ${Math.round(t*100)}%`}}}},technology_match_builtwith:{getStaticWidgets(e){return{display_value:{label:`Technology profile`}}}},number_of_social_followers:{},email:{},personal_email:{},alternate_personal_emails:{},company_news_summary:{},work_email:{},headcount:{},company_website_url:{},company_domain:{},company_name:{},first_name:{},addressee_name:{},address_line_1:{},address_line_2:{},job_title:{getStaticWidgets(){return{icon:{key:`job`}}}},job_description:{},profile_headline:{},address_city:{},address_country:{},address_state:{},zip_code:{},last_name:{},is_work_email:{},name:{},ip_address:{},skills:{},avatar_url:{},string_input:{},domain:{},url_input:{},slugified:{},http_response_status:{},http_response_body:{},http_response_headers:{},estimated_salary:{},scrape_list_response:{},clado_person_match:{getStaticWidgets(e){return e?{display_value:{label:`${e.profile?.name||`Person`} profile`}}:{}}},clado_person_match_v2:{getStaticWidgets(e){return e?{display_value:{label:`${e.profile?.name||`Person`} profile`}}:{}}},company_social_url:{getStaticWidgets(e){let t=en(e);return{display_value:t?{label:t}:void 0}}},crustdata_profile_match_score:{},is_email_valid:{},amplemarket_person_match:{getStaticWidgets(){return{display_value:{label:`Person match`}}}},amplemarket_company_match:{getStaticWidgets(){return{display_value:{label:`Company match`}}}},profile_url:{getStaticWidgets(e){let t=en(e);return{display_value:t?{label:t}:void 0,icon:{key:`linkedin`}}}},company_profile_url:{getStaticWidgets(e){let t=en(e);return{display_value:t?{label:t}:void 0,icon:{key:`linkedin`}}}},profile_posts:{getStaticWidgets(){return{display_value:{label:`LinkedIn posts`}}}},profile:{getStaticWidgets(e){return e?{display_value:{label:`${e.name||`Person`} LinkedIn profile`}}:{}}},clado_person_profile:{getStaticWidgets(e){return e?{display_value:{label:`${e.profile?.name||`Person`} match`}}:{}}},email_subject:{},message:{},slack_message_success:{getStaticWidgets(e){return{display_value:{label:e?`βœ… Sent`:`❌ Not sent`}}}},resend_email_success:{getStaticWidgets(e){return{display_value:{label:e?`βœ… Sent`:`❌ Not sent`}}}},email_body:{},mobile:{},landline:{},phone:{},funding_history:{},funding_total_usd:{},leadmagic_competitor_list:{getStaticWidgets(e){return e?{display_value:{label:e.map(e=>e.company_name).slice(0,4).join(`, `)}}:{}}},leadmagic_acquisition_history:{getStaticWidgets(e){return e?{display_value:{label:e.map(e=>e.company_name).slice(0,4).join(`, `)}}:{}}},leadmagic_company_news_list:{getStaticWidgets(e){return e?{display_value:{label:`${e.length} news sources`}}:{}}},merge_result:{},website_markdown:{getStaticWidgets(e){return e?{display_value:{label:`πŸ“ Markdown result`}}:{}}},urls:{},website_html:{},website_url:{},website_links:{},mapped_links:{},firecrawl_extract_result:{getStaticWidgets(){return{display_value:{label:`Extract result`}}}},exa_match_evaluation:{getStaticWidgets(){return{display_value:{label:`Exa match`}}}},email_validation_status:{},million_validation_match:{getStaticWidgets(){return{display_value:{label:`Validation result`}}}},post_list_string:{getStaticWidgets(e){return{entity_logo:{entity:`LinkedIn`,image_url:Ae.linkedin}}}},crustdata_post_list:{getStaticWidgets(e){return{entity_logo:{entity:`LinkedIn`,image_url:Ae.linkedin}}}},crustdata_company_match:{},crustdata_person_match:{},resend_contact_id:{},sheet_record_id:{},sheet_record_ids:{},companyenrich_match:{},companyenrich_matches:{},input_objects:{},role_finder_match:{},sheet:{},logodev_describe_match:{getStaticWidgets(){return{display_value:{label:`Match`}}}},logo_url:{getStaticWidgets(){return{display_value:{label:`Logo URL`}}}},mobile_number:{},created_sheet:{},professional_profile:{},professional_profile_url:{},crustdata_companyenrich_match:{},template_output:{},zerobounce_validation_match:{},zerobounce_validation_status:{getStaticWidgets(e){return{display_value:{label:e===`valid`?`βœ… Valid`:e===`invalid`?`❌ Invalid`:e===`catch-all`?`⚾️ Catch All`:e===`abuse`?`⚠️ Abuse`:e===`do_not_mail`?`❌❌ Do not mail`:e===`spamtrap`?`❌❌❌ Spam Trap`:e}}}},gmail_email_success:{getStaticWidgets(e){return{display_value:{label:e?`βœ… Sent`:`❌ Not sent`}}}}};function _(e){return{...tn[e],name:e}}function rn(e,t){if(on(e,t))return nn[e]}function an(e){return e in tn}function on(e,t){return e in tn?tn[e].format===t:!1}const sn={completed:`Completed`,failed:`Failed`,no_result:`No result`,pending:`Pending`,processing:`Processing`,queued:`Queued`,skipped:`Skipped`};function cn(e){return sn[e]}const ln=(e,t=`Set a ${e} connection to enable this`)=>n=>(n.connector?.connections??[]).some(t=>t?.connection?.startsWith(`${e}_`))?{disabled:!1}:{disabled:!0,message:t},un=(e,t)=>n=>{let r=e(n);return r!=null&&r!==``?{disabled:!1}:{disabled:!0,message:t}},dn=(...e)=>t=>{for(let n of e){let e=n(t);if(e.disabled)return e}return{disabled:!1}},fn=(...e)=>t=>{let n={disabled:!0,message:`No condition matched`};for(let r of e){let e=r(t);if(!e.disabled)return e;n=e}return n};function pn(e,t,n){if(!t.added_by||t.added_by.ref===`input`||t.added_by.pipe_index==null)throw Error(`Tried to find output field info for field not generated by pipe: ${e}, added_by: ${t.added_by}`);let r=n.orderedPipeInstances[t.added_by.pipe_index];if(!r)throw Error(`Unable to find pipe instance at index ${t.added_by.pipe_index} for resolved field ${e}`);let i=Object.entries(r.getOutputFields()).find(([t,n])=>n.resolvedName===e);if(!i)throw Error(`Resolved pipe output field '${e}' not found for pipe ${t.added_by.ref}`);let[a,o]=i;return{fieldName:a,...o}}const mn=r.enum(`company_description.cleaned_company_name.company_industry.company_region.location_hint.estimated_revenue.founded_year.technology_list.spending_trend.technology_match_builtwith.number_of_social_followers.email.personal_email.alternate_personal_emails.company_news_summary.work_email.headcount.company_website_url.company_domain.company_name.first_name.addressee_name.address_line_1.address_line_2.job_title.job_description.profile_headline.address_city.address_country.address_state.zip_code.last_name.is_work_email.companyenrich_match.companyenrich_matches.name.ip_address.skills.avatar_url.estimated_salary.is_email_valid.profile_url.company_profile_url.profile_posts.clado_person_match.clado_person_match_v2.icypeas_person_match.icypeas_company_match.clado_person_profile.resend_email_success.email_body.email_subject.profile.mobile.landline.phone.message.slack_message_success.funding_history.funding_total_usd.template_output.gmail_email_success.zerobounce_validation_status.zerobounce_validation_match.leadmagic_competitor_list.leadmagic_acquisition_history.leadmagic_company_news_list.merge_result.mapped_links.website_markdown.website_html.website_url.urls.website_links.firecrawl_extract_result.exa_match_evaluation.email_validation_status.million_validation_match.scrape_list_response.resend_contact_id.sheet_record_id.sheet_record_ids.input_objects.role_finder_match.logodev_describe_match.logo_url.crustdata_company_match.crustdata_companyenrich_match.crustdata_person_match.post_list_string.crustdata_post_list.crustdata_profile_match_score.amplemarket_person_match.amplemarket_company_match.created_sheet.sheet.string_input.domain.url_input.slugified.http_response_status.http_response_body.http_response_headers.professional_profile_url.professional_profile.company_social_url.mobile_number`.split(`.`)),hn=r.enum([`pipe0`,`findymail`,`crustdata`,`hunter`,`zerobounce`,`millionverifier`,`googlemaps`,`gemini`,`leadmagic`,`mixrank`,`builtwith`,`perplexity`,`serper`,`icypeas`,`prospeo`,`clado`,`resend`,`slack`,`gmail`,`firecrawl`,`exa`,`openai`,`companyenrich`,`logodev`,`amplemarket`]),gn=r.enum([`production`,`sandbox`]),_n=`prompt:run@1.company:newssummary:website@1.company:newssummary:domain@1.company:techstack:builtwith@1.company:techstack:builtwith@2.company:websiteurl:email@1.company:domain:workemail@1.company:funding:leadmagic@1.company:funding:leadmagic@2.people:workemail:waterfall@1.person:workemail:waterfall@1.people:email:iswork@1.email:iswork@1.people:name:split@1.person:name:split@1.person:name:join@1.people:validate:email:zerobounce@1.people:email:validate:zerobounce@2.email:validate:zerobounce@1.people:mobilenumber:workemail:waterfall@1.company:overview@1.company:overview@2.company:overview@3.json:extract:multi@1.email:write@1.message:write@1.email:send:resend@1.email:send:gmail@1.message:send:slack@1.template:fill@1.contact:create:resend@1.people:match:role:waterfall@1.person:match:role:waterfall@1.person:identity:amplemarket@1.company:identity@2.company:identity@3.person:match:amplemarket@1.people:phone:profile:waterfall@1.person:mobile:profileurl:waterfall@1.people:personalemail:profile:waterfall@1.person:personalemail:profileurl:waterfall@1.people:profile:waterfall@1.person:profile:waterfall@1.people:profileurl:email:waterfall@1.person:profileurl:email:waterfall@1.person:profileurl:name@1.people:email:validate:zerobounce@1.person:email:validate:millionverifier@1.people:phone:workemail:waterfall@1.person:mobile:workemail:waterfall@1.fields:merge@1.field:slugify@1.field:domainify@1.website:scrape:firecrawl@1.website:scrapelist:firecrawl@1.website:extract:firecrawl@1.website:maplinks:firecrawl@1.sheet:row:append@1.sheet:row:expandappend@1.company:lookalikes:companyenrich@1.company:lookalikes:companyenrich@2.company:match:logodev@1.company:match:logodev@2.person:posts:crustdata@1.company:match:crustdata@1.company:match:crustdata@2.people:profile:workemail:crustdata@1.person:profile:workemail:crustdata@1.people:workemail:profileurl:waterfall@1.person:workemail:profileurl:waterfall@1.people:identity:email:waterfall@1.person:identity:email:waterfall@1.http:request@1.company:identity@1.people:professionalprofile:waterfall@1.people:professionalprofileurl:name@1.people:professionalprofileurl:email:waterfall@1.people:mobilenumber:professionalprofile:waterfall@1`.split(`.`),vn=r.enum(_n),yn=[`string`,`number`,`boolean`,`json`,`unknown`],bn=r.enum(yn),xn=r.union([r.number(),r.string()]),Sn=r.union([r.literal(`completed`),r.literal(`failed`),r.literal(`pending`),r.literal(`queued`),r.literal(`processing`),r.literal(`no_result`),r.literal(`skipped`)]),Cn=r.union([r.string().min(1),r.number(),r.boolean(),r.null(),r.record(r.string(),r.unknown()),r.array(r.unknown())]),wn=r.object({example_value:r.any().nullable(),schema:r.any().nullable()}),Tn=r.object({}),En=Tn.extend({image_url:r.string().url().describe(`URL to the provider's logo image.`),entity:r.string().describe(`The name of the entity.`)}),Dn=Tn.extend({emoji:r.string().describe(`Country flag emoji.`)}),On=Tn.extend({image_url:r.url().describe(`URL to the provider's logo image.`),name:r.string().describe(`The name of the avatar owner.`)}),kn=Tn.extend({attempted_providers:r.array(r.object({provider:hn})),available_providers:r.array(hn),successful_provider:hn.optional()}),An=r.enum([`linkedin`,`job`]),jn=Tn.extend({key:An}).optional(),Mn=r.object({result_status:r.enum([`completed`,`failed`])}).optional(),Nn=r.object({list:r.array(r.object({source:r.string(),description:r.string().optional(),url:r.string()}))}).optional(),Pn=r.object({numeric:r.int().min(1).max(5)}).optional(),Fn=r.object({display_value:r.object({label:r.string().optional()}),entity_logo:En.optional(),location_indicator:Dn.optional(),avatar:On.optional(),waterfall:kn.optional(),icon:jn,action_summary:Mn,sources:Nn,confidence:Pn}).partial().describe(`A map of widgets associated with this field for UI display, keyed by widget type.`),In=r.object({code:r.string(),message:r.string(),path:r.string().optional()}),Ln=r.object({code:r.string(),summary:r.string(),message:r.string()}),Rn=[`json_object`,`json_list`,`json_list_string`,`url`,`website_url`,`profile_url`,`email`,`datetime`,`currency`,`date`,`phone`,`markdown`,`text`,`int`,`decimal`,`address_line_1`,`zip_code`,`percent`],zn=r.enum(Rn);zn.nullable();const Bn=r.object({type:bn,label:r.string().nullable().optional(),format:zn.nullable().optional(),json_metadata:wn.nullable().optional()}),Vn=r.record(r.string(),Bn),Hn=r.enum([..._n,`input`]).nullable(),Un=r.enum([..._n,`input`,`system`]).nullable(),Wn=r.object({ref:Hn,config_hash:r.string().nullable()}),Gn=r.object({ref:Un,environment:gn.nullable(),config_hash:r.string().nullable(),input_hash:r.string().nullable()}),Kn=r.object({value:Cn,status:Sn,type:bn,reason:Ln.nullable(),claimed_by:Wn,resolved_by:Gn.nullable(),widgets:Fn.optional(),format:zn.nullable()}),qn=r.object({value:Cn,status:Sn,reason:Ln.nullable().optional(),type:bn.optional(),format:zn.nullable().optional(),claimed_by:Wn.optional(),resolved_by:Gn.nullable().optional(),widgets:Fn.optional()}),Jn=r.record(r.string(),r.union([Cn,qn])).openapi(`PipesInput`),Yn=r.object({id:xn,fields:r.record(xn,Kn)}),Xn=r.object({type:r.literal(`catalog`),fieldName:r.string().min(1)}),Zn=r.object({type:bn,label:r.string(),added_by:r.object({ref:r.union([vn,r.literal(`input`)]),config_hash:r.string().nullable(),pipe_index:r.number().nullable()}),format:zn.nullable(),is_primary_output:r.boolean()}),Qn=r.record(r.string(),Zn),$n=r.object({field_name:r.string().min(1),extractions:r.array(r.object({path:r.string().min(1),output_field:r.object({name:r.string().min(1),format:zn.nullable().default(null),label:r.string().optional(),type:bn})})).min(1).check(e=>{let t=new Set;Object.values(e.value).forEach(n=>{t.has(n.output_field.name)?e.issues.push({code:`custom`,message:`Output field names must be unique. The name ${n.output_field.name} exists more than once in your config.`,input:e.value}):t.add(n.output_field.name)})})}),er=r.enum([`eq`,`neq`,`gt`,`gte`,`lt`,`lte`,`contains`]),tr={eq:`equals`,neq:`not equals`,gt:`greater than`,gte:`greater than or equal`,lt:`less than`,lte:`less than or equal`,contains:`contains`},nr=[`eq`,`neq`,`gt`,`gte`,`lt`,`lte`,`contains`],rr=[`eq`,`neq`],ir=r.object({type:r.literal(`vault`),connection:r.string()}),v=r.object({strategy:r.enum([`first`]).default(`first`),connections:r.array(ir)}).nullable().optional(),ar=r.object({strategy:r.enum([`first`]).default(`first`),connections:r.array(ir).min(1,{message:`Provide your own credentials to use this object.`})}),or=r.object({strategy:r.enum([`first`]).default(`first`),connections:r.array(r.object({type:r.literal(`vault`),connection:r.string()})).max(0,{message:`This pipe does not support custom connectors.`})}).optional().nullable(),sr=r.enum(nr),cr=r.enum(rr),lr=r.enum([`failed`,`no_result`,`completed`,`skipped`]),ur=r.object({action:r.enum([`run`]).default(`run`).describe(`What to do when conditions match. Defaults to "run" (run the pipe only on matching records). Reserved for future extension.`),when:r.object({logic:r.enum([`and`,`or`]).describe(`"and" = all conditions must match. "or" = any condition matches.`),conditions:r.array(r.discriminatedUnion(`property`,[r.object({property:r.literal(`value`).describe(`Compare the actual field value. Use operators: eq, neq, gt, gte, lt, lte, contains.`),field_name:r.string().min(1,{message:`Select a target field for the condition.`}).describe(`Name of a field from input data or produced by an earlier pipe in the workflow.`),operator:sr.describe(`Comparison operator: "eq", "neq", "gt", "gte", "lt", "lte", "contains".`),value:r.union([r.number(),r.string(),r.boolean(),r.null()]).describe(`The value to compare the field against. Must be a primitive (string, number, boolean, or null).`).check(e=>{(e.value===void 0||e.value===``)&&e.issues.push({code:`custom`,input:e.value,message:`Provide a value to compare against.`}),typeof e.value==`object`&&e.value!==null&&e.issues.push({code:`custom`,input:e.value,message:`Conditions can only be defined on primitive fields. To apply a condition on a JSON value, expand it into an object first.`})})}),r.object({property:r.literal(`status`).describe(`Compare the field resolution status instead of its value. Use operators: eq, neq.`),field_name:r.string().min(1).describe(`Name of a field from input data or produced by an earlier pipe in the workflow.`),operator:cr.describe(`Status comparison operator: "eq" or "neq".`),value:lr.describe(`Field status to compare against: "completed", "no_result", "failed", or "skipped".`)})])).min(1).describe(`Array of conditions to evaluate. Each condition checks either a field value or its resolution status.`)}).describe(`Condition block. All conditions are combined with the chosen logic (and/or).`)}).describe(`Run-if gate for a pipe. When set, the pipe only runs on records matching the conditions. Example: { "when": { "logic": "and", "conditions": [{ "property": "status", "field_name": "work_email", "operator": "neq", "value": "no_result" }] } }`),dr={pipe0:{name:`pipe0`,label:`pipe0`,description:`A framework for lead and company data enrichment.`,url:`https://pipe0.com`,public:!0,hasManagedConnections:!0,allowsUserConnections:!1,connectionType:`api_key`,logoUrl:`https://imagedelivery.net/3B3AWuP94-S3Ro5eEac6JA/52f2d955-d9f3-4139-2c13-63cfd568ed00/icon`,background:{light:`#F4F4F5`,dark:`#1F1F23`},oAuthConfig:null},findymail:{name:`findymail`,label:`FindyMail`,description:`Find verified emails.`,url:`https://findymail.com`,public:!1,hasManagedConnections:!0,allowsUserConnections:!0,connectionType:`api_key`,oAuthConfig:null,logoUrl:`https://imagedelivery.net/3B3AWuP94-S3Ro5eEac6JA/9e8ce38d-a49d-42a3-4317-506f7fbec900/icon`,background:{light:`#D4F4DD`,dark:`#143822`}},hunter:{name:`hunter`,label:`HunterMail`,description:`Find email addresses and send cold emails`,url:`https://hunter.io`,public:!1,hasManagedConnections:!0,allowsUserConnections:!0,oAuthConfig:null,connectionType:`api_key`,logoUrl:`https://imagedelivery.net/3B3AWuP94-S3Ro5eEac6JA/fc66b052-6b1e-4c91-a239-6bbce08f1b00/icon`,background:{light:`#FFE4D4`,dark:`#3D1F0C`}},zerobounce:{name:`zerobounce`,label:`ZeroBounce`,description:`Email validation tools and email list cleaning`,url:`https://www.zerobounce.net`,public:!0,hasManagedConnections:!0,allowsUserConnections:!0,connectionType:`api_key`,logoUrl:`https://imagedelivery.net/3B3AWuP94-S3Ro5eEac6JA/db8e9e41-0bda-4f2c-de42-cf8ce61ee500/icon`,background:{light:`#D6F5E5`,dark:`#0E3823`},oAuthConfig:null},googlemaps:{name:`googlemaps`,label:`Google Maps`,description:`A map service by Google`,url:`https://www.google.com/maps`,public:!1,hasManagedConnections:!0,allowsUserConnections:!0,connectionType:`api_key`,logoUrl:`https://imagedelivery.net/3B3AWuP94-S3Ro5eEac6JA/1796d3c1-dfb0-4555-b2bf-0ca4930e8f00/icon`,background:{light:`#D8E8FF`,dark:`#0E2447`},oAuthConfig:null},leadmagic:{name:`leadmagic`,label:`LeadMagic`,description:`Enrichment provider`,url:`https://leadmagic.io`,public:!0,hasManagedConnections:!0,allowsUserConnections:!0,connectionType:`api_key`,logoUrl:`https://imagedelivery.net/3B3AWuP94-S3Ro5eEac6JA/508cb23a-47d4-40ee-1645-b5a8bf994c00/icon`,background:{light:`#EBD8FF`,dark:`#2A1247`},oAuthConfig:null},builtwith:{name:`builtwith`,label:`BuiltWith`,description:`BuiltWith tracks over 2500 eCommerce technologies across over 26 million eCommerce websites.`,url:`https://builtwith.com`,public:!0,hasManagedConnections:!0,allowsUserConnections:!0,connectionType:`api_key`,logoUrl:`https://imagedelivery.net/3B3AWuP94-S3Ro5eEac6JA/e675cb72-6dc2-43c8-972e-0fc9c3b73c00/icon`,background:{light:`#FFF0D4`,dark:`#3D2806`},oAuthConfig:null},perplexity:{name:`perplexity`,label:`Perplexity`,description:`AI search company`,public:!1,url:`https://perplexity.com`,hasManagedConnections:!0,allowsUserConnections:!0,connectionType:`api_key`,logoUrl:`https://imagedelivery.net/3B3AWuP94-S3Ro5eEac6JA/d17d3ba0-5c9e-43d8-17ee-3e4a70404e00/icon`,background:{light:`#D3F1EE`,dark:`#0E3633`},oAuthConfig:null},serper:{name:`serper`,label:`Serper`,description:`The World's Fastest & Cheapest Google Search API`,url:`https://serper.dev/`,public:!1,hasManagedConnections:!0,allowsUserConnections:!0,connectionType:`api_key`,logoUrl:`https://imagedelivery.net/3B3AWuP94-S3Ro5eEac6JA/04e720cd-56ea-44d3-3a31-cfc516c6f800/icon`,background:{light:`#D8E6FF`,dark:`#0C2554`},oAuthConfig:null},icypeas:{name:`icypeas`,label:`Icypeas`,description:`A popular data catalog`,url:`https://www.icypeas.com/`,public:!0,hasManagedConnections:!0,allowsUserConnections:!0,connectionType:`api_key`,logoUrl:`https://imagedelivery.net/3B3AWuP94-S3Ro5eEac6JA/d635119e-08ae-40cb-78bc-34161d422400/icon`,background:{light:`#D8EFFF`,dark:`#0C2A4A`},oAuthConfig:null},prospeo:{name:`prospeo`,label:`Prospeo`,description:`Find anyone’s contact data.`,url:`https://prospeo.io/`,public:!0,hasManagedConnections:!0,allowsUserConnections:!0,connectionType:`api_key`,logoUrl:`https://imagedelivery.net/3B3AWuP94-S3Ro5eEac6JA/9446f572-d08c-4d48-a5a5-04747fe66000/icon`,background:{light:`#D6E2FF`,dark:`#0C2052`},oAuthConfig:null},gemini:{name:`gemini`,label:`Gemini`,description:`Google's AI service`,url:`https://gemini.google.com`,public:!0,hasManagedConnections:!0,allowsUserConnections:!0,connectionType:`api_key`,logoUrl:`https://imagedelivery.net/3B3AWuP94-S3Ro5eEac6JA/417de5dd-a8a8-4210-d7dc-6f40e54ece00/icon`,background:{light:`#DDE7FF`,dark:`#1A2C5C`},oAuthConfig:null},slack:{name:`slack`,label:`Slack`,description:`A modern business chat application.`,url:`https://slack.com`,public:!0,hasManagedConnections:!1,allowsUserConnections:!0,connectionType:`oauth_token`,logoUrl:`https://imagedelivery.net/3B3AWuP94-S3Ro5eEac6JA/676e823c-c926-4b0b-465c-121b9d1c3300/icon`,background:{light:`#F1E0FF`,dark:`#2A0E44`},oAuthConfig:{}},companyenrich:{name:`companyenrich`,label:`CompanyEnrich`,description:`A company enrichment service.`,url:`https://companyenrich.com`,public:!0,hasManagedConnections:!0,allowsUserConnections:!0,connectionType:`api_key`,logoUrl:`https://imagedelivery.net/3B3AWuP94-S3Ro5eEac6JA/e80b3a16-7b36-4733-bcbe-46f471d33100/icon`,background:{light:`#DCEEFF`,dark:`#0E2C4A`},oAuthConfig:{}},mixrank:{name:`mixrank`,label:`MixRank`,description:`Ultra-high-frequency technographic and people data for your data teams.`,url:`https://mixrank.com/`,hasManagedConnections:!0,allowsUserConnections:!1,connectionType:`api_key`,oAuthConfig:{},public:!0,logoUrl:`https://imagedelivery.net/3B3AWuP94-S3Ro5eEac6JA/a29f3095-b3f9-4b12-d21b-1c506ccd7200/icon`,background:{light:`#FFE5D4`,dark:`#3A1D08`}},clado:{name:`clado`,label:`Clado`,description:`A data provider deploying 10^5 AI agents to find contact information.`,public:!0,hasManagedConnections:!0,allowsUserConnections:!0,connectionType:`api_key`,url:`https://clado.ai`,logoUrl:`https://imagedelivery.net/3B3AWuP94-S3Ro5eEac6JA/fdf3d2d0-70be-45c3-2fe5-a8c5cac55a00/icon`,background:{light:`#E8E8EC`,dark:`#1A1A1F`},oAuthConfig:null},gmail:{name:`gmail`,label:`Gmail`,description:`Google's email service`,public:!0,hasManagedConnections:!1,allowsUserConnections:!0,connectionType:`oauth_token_bundle`,url:`https://mail.google.com`,logoUrl:`https://imagedelivery.net/3B3AWuP94-S3Ro5eEac6JA/8da8ab6b-7f7e-4c42-6abf-212ea537db00/icon`,background:{light:`#FFD8D8`,dark:`#45100F`},oAuthConfig:{}},resend:{name:`resend`,label:`Resend`,description:`An email platform built for developers.`,public:!0,hasManagedConnections:!1,allowsUserConnections:!0,url:`https://clado.ai`,connectionType:`api_key`,logoUrl:`https://imagedelivery.net/3B3AWuP94-S3Ro5eEac6JA/7c88f71b-8472-40f4-4bec-0e77eac30400/icon`,background:{light:`#EDEDEE`,dark:`#1A1A1C`},oAuthConfig:null},firecrawl:{name:`firecrawl`,label:`Firecrawl`,description:`Firecrawl is an API service that takes a URL, crawls it, and converts it into clean markdown. Firecrawl crawls all accessible subpages and gives you clean markdown for each. No sitemap required.`,public:!0,hasManagedConnections:!0,allowsUserConnections:!0,url:`https://www.firecrawl.dev`,connectionType:`api_key`,logoUrl:`https://imagedelivery.net/3B3AWuP94-S3Ro5eEac6JA/5c318569-7bf4-4276-a3f2-1f25530f7f00/icon`,background:{light:`#FFE5CC`,dark:`#3A1A05`},oAuthConfig:null},exa:{name:`exa`,label:`Exa`,description:`Exa is a search engine built for AI.`,public:!0,hasManagedConnections:!0,allowsUserConnections:!0,url:`https://exa.ai/`,connectionType:`api_key`,logoUrl:`https://imagedelivery.net/3B3AWuP94-S3Ro5eEac6JA/8ae69780-4506-4952-a90e-02e70b06af00/icon`,background:{light:`#D8DCFF`,dark:`#14154A`},oAuthConfig:null},openai:{name:`openai`,label:`OpenAI`,description:`Foundational AI company based out of San Francisco.`,public:!0,hasManagedConnections:!0,allowsUserConnections:!0,url:`https://openai.com/`,connectionType:`api_key`,logoUrl:`https://imagedelivery.net/3B3AWuP94-S3Ro5eEac6JA/7ac79c3a-bccb-4ed4-d6e5-7b300b2fd300/icon`,background:{light:`#D8EFE4`,dark:`#0C2A1C`},oAuthConfig:null},millionverifier:{name:`millionverifier`,label:`MillionVerifier`,description:`E-Mail validation service.`,public:!0,hasManagedConnections:!0,allowsUserConnections:!0,url:`https://www.millionverifier.com/`,connectionType:`api_key`,logoUrl:`https://imagedelivery.net/3B3AWuP94-S3Ro5eEac6JA/7a8bd9cb-efeb-492e-3f4c-311c9492b800/icon`,background:{light:`#D8F0DB`,dark:`#0E3215`},oAuthConfig:null},logodev:{name:`logodev`,label:`Logo.dev`,description:`Every company logo, one simple API.`,public:!0,hasManagedConnections:!0,allowsUserConnections:!0,url:`https://www.logo.dev/`,connectionType:`api_key`,logoUrl:`https://imagedelivery.net/3B3AWuP94-S3Ro5eEac6JA/1defa51b-5c01-4034-1030-60f68aa46400/icon`,background:{light:`#F4ECD4`,dark:`#2C2406`},oAuthConfig:null},crustdata:{name:`crustdata`,label:`Crustdata`,description:`Real-time company & people data`,public:!0,hasManagedConnections:!0,allowsUserConnections:!0,url:`https://crustdata.com/`,connectionType:`api_key`,logoUrl:`https://imagedelivery.net/3B3AWuP94-S3Ro5eEac6JA/fa05be24-d174-40f0-69c2-4fdb43c6be00/icon`,background:{light:`#FFE2D2`,dark:`#3C1A08`},oAuthConfig:null},amplemarket:{name:`amplemarket`,label:`Amplemarket`,description:`Sales data platform`,public:!0,hasManagedConnections:!0,allowsUserConnections:!0,url:`https://www.amplemarket.com`,connectionType:`api_key`,logoUrl:`https://imagedelivery.net/3B3AWuP94-S3Ro5eEac6JA/adecf16b-4187-409b-d77f-16fc07fc6100/icon`,background:{light:`#FFD8E1`,dark:`#45102A`},oAuthConfig:null}},fr=[`if`,`elsif`,`else`,`endif`,`unless`,`endunless`,`for`,`endfor`,`break`,`continue`,`output`],pr=[`json`,`escape`,`escape_once`,`default`,`upcase`,`downcase`,`size`,`join`,`first`,`last`,`replace`,`truncate`,`strip`,`newline_to_br`,`url_encode`],mr=/^[A-Z][A-Z0-9_]*$/,hr=/^[A-Z][A-Z0-9_]*$/,gr=/^[a-zA-Z_][a-zA-Z0-9_]*$/,_r=`SECRETS`,vr=`CONSTANTS`,yr=new Set(fr),br=new Set(pr),xr=e=>`{${e}}`;var Sr=class extends i{constructor(e){super(),this.values=e}liquidMethodMissing(e){let t=String(e);if(!mr.test(t))throw Error(`Secret key "${t}" must be uppercase letters, digits, and underscores (e.g. SECRETS.API_KEY).`);if(!(t in this.values))throw Error(`Missing secret: SECRETS.${t}`);return this.values[t]}},Cr=class extends i{constructor(e){super(),this.values=e}liquidMethodMissing(e){let t=String(e);if(!hr.test(t))throw Error(`Constant key "${t}" must be uppercase letters, digits, and underscores (e.g. CONSTANTS.PROMO).`);if(!(t in this.values))throw Error(`Missing constant: CONSTANTS.${t}`);return this.values[t]}};function wr(e){let t=e.trim();if(!t)throw Error(`Empty {% output %} tag β€” expected at least a name (e.g. {% output rec, type: "string", description: "..." %}).`);let n=t.match(/^([a-zA-Z_][a-zA-Z0-9_]*)\s*(?:,|$)/);if(!n||!n[1])throw Error(`Invalid {% output %} tag β€” expected a name as the first argument, got: ${t}`);let r=n[1];if(!gr.test(r))throw Error(`Invalid {% output %} tag name "${r}" β€” must start with a letter or underscore and contain only letters, digits, and underscores.`);let i=t.slice(n[0].length).trim(),a={},o=/([a-zA-Z_][a-zA-Z0-9_]*)\s*:\s*(?:"((?:\\.|[^"\\])*)"|'((?:\\.|[^'\\])*)'|(true|false))\s*(?:,|$)/g,s=0,c;for(;(c=o.exec(i))!==null;){s=c.index+c[0].length;let e=c[1],t=c[2]??c[3]??c[4];c[4]===void 0?a[e]=t:a[e]=t===`true`}if(i&&s<i.length)throw Error(`Invalid {% output %} tag β€” could not parse arguments after "${i.slice(s)}". Expected key: "value" pairs.`);let l=a.type;if(typeof l!=`string`||!l)throw Error(`{% output ${r} %} tag is missing required "type" argument (e.g. type: "string").`);let u=a.description;if(typeof u!=`string`||!u)throw Error(`{% output ${r} %} tag is missing required "description" argument (e.g. description: "What this means.").`);return{name:r,type:l,description:u,required:typeof a.required==`boolean`?a.required:!0,format:typeof a.format==`string`?a.format:null,schemaRef:typeof a.schema==`string`?a.schema:null}}function Tr(){let e=new a({strictVariables:!1,strictFilters:!0,jsTruthy:!0,greedy:!1,catchAllErrors:!1,ownPropertyOnly:!0});e.registerTag(`output`,{parse(e,t){let n=wr(e.args);this.outputDecl=n},render(e,t){let n=this.outputDecl;if(!(e.globals&&e.globals.__outputAllowed))throw Error(`{% output %} is not allowed in this template (referenced output "${n.name}").`);t.write(xr(n.name))}});for(let t of Object.keys(e.tags))yr.has(t)||delete e.tags[t];for(let t of Object.keys(e.filters))br.has(t)||delete e.filters[t];return e}let Er=null;function Dr(){return Er||=Tr(),Er}async function Or(e,t,n={}){let r=Dr(),i=n.renderLimitMs??250,a={...t.inputs??{},[_r]:new Sr(t.secrets??{}),[vr]:new Cr(t.constants??{})},o={globals:{__outputAllowed:n.outputAllowed===!0},renderLimit:i},s=await Promise.race([r.parseAndRender(e,a,o),new Promise((e,t)=>setTimeout(()=>t(Error(`Liquid render exceeded ${i}ms.`)),i))]);return String(s)}function kr(e,t,n={}){let r=Dr(),i=n.renderLimitMs??250,a={...t.inputs??{},[_r]:new Sr(t.secrets??{}),[vr]:new Cr(t.constants??{})},o=r.parseAndRenderSync(e,a,{globals:{__outputAllowed:n.outputAllowed===!0},renderLimit:i});return String(o)}function Ar(e){return Dr().parse(e)}function jr(e){let t=Dr().parse(e),n={scopeStack:[],guardStack:[],inputs:new Map,secrets:new Set,constants:new Set,outputs:[],forDepth:0};Mr(t,n);let r={};for(let[e,t]of n.inputs)r[e]={required:t.unguardedRefs>0};return{inputs:r,secrets:[...n.secrets],constants:[...n.constants],outputs:n.outputs}}function Mr(e,t){for(let n of e)Nr(n,t)}function Nr(e,t){let n=e;if(n.value&&typeof n.value==`object`&&`filters`in n.value&&`initial`in n.value){Rr(n.value,t,!1);return}if(typeof n.name==`string`){Pr(n,t);return}}function Pr(e,t){switch(e.name){case`for`:Fr(e,t);return;case`if`:case`unless`:Ir(e,t);return;case`output`:Lr(e,t);return;case`break`:case`continue`:return;default:throw Error(`Unhandled liquid tag in analyzer: ${e.name}`)}}function Fr(e,t){if(t.forDepth+=1,t.forDepth>3)throw Error(`Liquid template exceeds maximum nested {% for %} depth of 3.`);e.collection!==void 0&&e.collection!==null&&zr(e.collection,t,!1);let n=typeof e.variable==`string`?e.variable:null;n&&t.scopeStack.push(n),Mr(Array.isArray(e.templates)?e.templates:[],t),n&&t.scopeStack.pop(),Mr(Array.isArray(e.elseTemplates)?e.elseTemplates:[],t),--t.forDepth}function Ir(e,t){let n=Array.isArray(e.branches)?e.branches:[];e.name;for(let e=0;e<n.length;e++){let r=n[e],i=r.value,a=null;e===0&&i&&typeof i==`object`&&(a=Hr(i.initial)),a&&t.guardStack.push(a),i&&typeof i==`object`&&Rr(i,t,!1),Mr(r.templates,t),a&&t.guardStack.pop()}Mr(Array.isArray(e.elseTemplates)?e.elseTemplates:[],t)}function Lr(e,t){let n=e.outputDecl;if(!n){let t=e.token?.args;typeof t==`string`&&(n=wr(t))}if(!n)throw Error(`Internal: {% output %} tag missing parsed declaration.`);t.outputs.push({name:n.name,type:n.type,description:n.description,required:n.required,format:n.format,schemaRef:n.schemaRef??void 0})}function Rr(e,t,n){let r=e.filters.some(e=>e.name===`default`),i=n||r;for(let n of e.initial.postfix)Ur(n)&&Vr(n,t,i);for(let n of e.filters)for(let e of n.args)Br(e,t)}function zr(e,t,n){Ur(e)&&Vr(e,t,n)}function Br(e,t){if(Array.isArray(e)){let n=e[1];n&&zr(n,t,!1)}else zr(e,t,!1)}function Vr(e,t,n){let r=e.props;if(r.length===0)return;let i=r[0];if(!i||!Wr(i))return;let a=i.content;if(t.scopeStack.includes(a))return;if(a===`SECRETS`){let e=r[1];if(!e||!Wr(e))throw Error(`Invalid SECRETS reference β€” expected SECRETS.KEY (got ${qr(r)}).`);let n=e.content;if(!mr.test(n))throw Error(`Invalid SECRETS key "${n}" β€” must be uppercase letters, digits, and underscores (e.g. SECRETS.API_KEY).`);t.secrets.add(n);return}if(a===`CONSTANTS`){let e=r[1];if(!e||!Wr(e))throw Error(`Invalid CONSTANTS reference β€” expected CONSTANTS.KEY (got ${qr(r)}).`);let n=e.content;if(!hr.test(n))throw Error(`Invalid CONSTANTS key "${n}" β€” must be uppercase letters, digits, and underscores (e.g. CONSTANTS.PROMO).`);t.constants.add(n);return}let o=n||t.guardStack.includes(a),s=t.inputs.get(a)??{unguardedRefs:0,guardedRefs:0};o?s.guardedRefs+=1:s.unguardedRefs+=1,t.inputs.set(a,s)}function Hr(e){if(e.postfix.length===1){let t=e.postfix[0];if(t&&Ur(t)&&t.props.length===1){let e=t.props[0];if(e&&Wr(e))return e.content}}if(e.postfix.length===3){let[t,n,r]=e.postfix;if(t&&n&&r&&Ur(t)&&t.props.length===1){let e=t.props[0];if(e&&Wr(e)&&Gr(n)&&Kr(r,[`==`,`!=`]))return e.content}}return null}function Ur(e){return e.kind===o.PropertyAccess}function Wr(e){return!!e&&typeof e==`object`&&e.kind===o.Word}function Gr(e){if(e.kind!==o.Literal)return!1;let t=e.literal;return t===`nil`||t===`null`}function Kr(e,t){return e.kind===o.Operator?t.includes(e.operator):!1}function qr(e){let t=[];for(let n of e)n&&Wr(n)?t.push(n.content):t.push(`?`);return t.join(`.`)}function Jr(e){let t=e.split(`_`),n=t[0],r=t.slice(1).join(`_`);if(!n)throw Error(`connection string of invalid format`);try{return{provider:hn.parse(n),id:r}}catch{throw Error(`Connection string ${e}: Failed to parse provider name.`)}}function Yr(e){return`${e.provider}_${e.id}`}const Xr=new s;function Zr(e){return Xr.validateSchema(e)}function Qr(e){let t=!1;return c(e,{},e=>{e.type&&[`string`,`number`,`boolean`,`integer`,`null`].includes(e.type)&&(t=!0),e.type===`object`&&e.properties&&Object.keys(e.properties).length>0&&(t=!0),e.type===`array`&&e.items&&(t=!0)}),!t}const $r=[`gemini-flash-latest`,`openai-gpt-latest`,`openai-gpt-mini-latest`],ei={"gemini-flash-latest":{provider:`gemini`,rateLimitOperation:`gemini_25_flash_preview`,rateLimitRatio:1,allowManagedConnection:!0,defaultCredits:.5,billingMode:`always`},"openai-gpt-latest":{provider:`openai`,rateLimitOperation:`openai_gpt-5`,rateLimitRatio:1,allowManagedConnection:!0,defaultCredits:1,billingMode:`always`},"openai-gpt-mini-latest":{provider:`openai`,rateLimitOperation:`openai_gpt-5-mini`,rateLimitRatio:1,allowManagedConnection:!0,defaultCredits:.5,billingMode:`always`}};function ti(e,t){let n={};for(let r of $r){let i=ei[r],a=`${e}-${r}`;n[a]={credits:{default:t?.[r]??i.defaultCredits},allowManagedConnection:!0,provider:i.provider,mode:i.billingMode}}return n}function ni(e,t){return`${t}-${e}`}function ri(e){let t=ei[e];if(!t)throw Error(`Unknown AI model: ${e}`);return[t.provider]}function ii(e){let t=ei[e];if(!t)throw Error(`Unknown AI model: ${e}`);return[{provider:t.provider,rateLimitRatio:t.rateLimitRatio,rateLimitOperation:t.rateLimitOperation,allowManagedConnection:t.allowManagedConnection}]}function ai(){let e=new Set;for(let t of $r)e.add(ei[t].provider);return[...e]}function oi(e){if(!e?.requires)return;let t=[];e.requires.connection&&t.push(ln(e.requires.connection));for(let n of e.requires.fields??[])t.push(un(e=>n.split(`.`).reduce((e,t)=>e==null?e:e[t],e),`Set ${n} first`));if(t.length!==0)return t.length===1?t[0]:dn(...t)}function si(e,t,n){let i={exampleValue:null,jsonSchema:null},a=t.fieldAnnotations.annotations[e];if(a?.json_metadata?.example_value&&(i.exampleValue=a.json_metadata.example_value||null),a?.json_metadata?.schema&&(i.jsonSchema=a.json_metadata.schema||null),i.exampleValue&&i.jsonSchema||!t.resolvedFieldNames[e])return i;let o=pn(e,n,t),s=an(o.fieldName)?_(o.fieldName):null;return s?.jsonMeta?{jsonSchema:s.jsonMeta.zodSchema?r.toJSONSchema(s.jsonMeta.zodSchema):null,exampleValue:s.jsonMeta.exampleValue||null}:i}const y=r.registry();{let e=y._map,t=y.get.bind(y);y.get=n=>{let r=n;for(;r;){let t=e.get(r);if(typeof t==`function`)return t;r=r?._zod?.parent}return t(n)}}const b=r.registry(),x={text_input:r.coerce.string(),textarea_input:r.string(),prompt_input:r.object({template:r.string(),json_schemas:r.record(r.string(),r.record(r.string(),r.unknown()))}),template_input:r.string(),tagged_text_input:r.coerce.string().nullable(),boolean_input:r.boolean(),nullable_boolean_input:r.boolean().nullable(),select_input:r.string(),multi_select_input:r.array(r.string()),async_multi_select_input:r.array(r.string()),int_input:r.coerce.number().int().nullable(),number_input:r.coerce.number().optional(),min_max_int_input:r.object({min:r.number().nullable(),max:r.number().nullable()}),include_exclude_input:r.object({include:r.array(r.string()),exclude:r.array(r.string())}),include_exclude_select_input:r.object({include:r.array(r.string()),exclude:r.array(r.string())}),async_include_exclude_select_input:r.object({include:r.array(r.string()),exclude:r.array(r.string())}),exact_range_input:r.record(r.string(),r.number().nullable()),range_input:r.object({from:r.number().nullable(),to:r.number().nullable()}),date_range_input:r.record(r.string(),r.string()),multi_create_input:r.array(r.string()),ordered_multi_create_input:r.array(r.string()),tagged_ordered_multi_create_input:r.array(r.string()),key_value_list_input:r.array(r.object({key:r.string(),value:r.string()})),connector_input:r.object({connections:r.array(r.object({type:r.string(),connection:r.string()}))}).nullable(),providers_input:r.array(r.object({provider:r.string()})),json_extraction_input:r.record(r.string(),r.unknown()),pipes_run_if_input:r.record(r.string(),r.unknown()).nullable(),fields_select_input:r.array(r.object({field_name:r.string()})),output_field_input:r.object({alias:r.string(),enabled:r.boolean()}),json_schema_input:r.record(r.string(),r.unknown()),cursor_pagination_metadata:r.object({limit:r.number()}),context_select_input:r.union([r.string(),r.array(r.string())])},ci=(e,t)=>{let n=x.multi_create_input;return e.maxItems&&(n=n.max(e.maxItems)),n=e.minItems?n.min(e.minItems):n.default([]),t.add(n,{type:`multi_create_input`,...e}),n},li=(e,t)=>{let n=x.ordered_multi_create_input;return e.maxItems&&(n=n.max(e.maxItems)),n=e.minItems?n.min(e.minItems):n.default([]),t.add(n,{type:`ordered_multi_create_input`,...e}),n},ui=/^\s*\{\{\s*[a-zA-Z_][a-zA-Z0-9_.]*(?:\s*\|\s*[^}]+)?\s*\}\}\s*$/,di=/\{\{|\{%/,fi=(e,t)=>{let n=x.tagged_ordered_multi_create_input;e.maxItems&&(n=n.max(e.maxItems)),n=n.check(e=>{let t=e;(t.value??[]).forEach((e,n)=>{let r=ui.test(e),i=di.test(e);!r&&i&&t.issues.push({code:`custom`,input:e,path:[n],message:`Each entry must be either plain text or a single field reference β€” not mixed.`})})}),n=e.minItems?n.min(e.minItems):n.default([]);let r={type:`tagged_ordered_multi_create_input`,...e};if(t===y){let i=t=>{let n=t.validationContext,i=n?Object.entries(n.fieldDefinitions).filter(([e,n])=>n.added_by.config_hash!==t.hash).filter(([t,n])=>!e.expectedTagType||n.type===e.expectedTagType).map(([e,t])=>({...t,resolvedName:e})):[];return{...r,inputFields:i}};return i.staticMeta={...r,inputFields:[]},t.add(n,i),n}return t.add(n,r),n},pi=(e,t)=>{let n=x.key_value_list_input;e.maxItems&&(n=n.max(e.maxItems)),n=n.check(e=>{let t=e;(t.value??[]).forEach((e,n)=>{Vi({value:e.key,issues:t.issues},!1,[n,`key`]),Vi({value:e.value,issues:t.issues},!1,[n,`value`])})}),n=n.default([]);let r={type:`key_value_list_input`,...e},i=e=>{let t=e.validationContext,n=t?Object.entries(t.fieldDefinitions).filter(([t,n])=>n.added_by.config_hash!==e.hash).map(([e,t])=>({...t,resolvedName:e})):[];return{...r,inputFields:n}};return i.staticMeta={...r,inputFields:[]},t.add(n,i),n},mi=(e,t)=>{let n=e.maxItems||200,r=x.include_exclude_input.check(e=>{e.value.include.length>n&&e.issues.push({code:`custom`,input:e.value.include,path:[`include`],message:`Array must contain at most ${n} element(s)`}),e.value.exclude.length>n&&e.issues.push({code:`custom`,input:e.value.exclude,path:[`exclude`],message:`Array must contain at most ${n} element(s)`})}).default({include:[],exclude:[]});return e.description&&r.describe(e.description),t.add(r,{type:`include_exclude_input`,...e}),r},hi=()=>{let e=$n;return y.add(e,e=>{let t=e.validationContext;return{label:``,description:``,type:`json_extraction_input`,fields:Object.entries(t.fieldDefinitions).filter(([e,t])=>e.toLowerCase()!==`id`&&t.type===`json`).map(([e,n])=>{let{jsonSchema:r,exampleValue:i}=si(e,t,n)||{};return{fieldName:e,fieldLabel:n.label,schema:r||null,exampleValue:i||null}}),path:`config.json_extraction`,groupPath:`config.json_extraction`,sectionKey:`general`}}),e},gi=(e,t)=>{let n=r.array(r.object({provider:r.enum(e.availableProviders)})).max(e.maxItems||99).min(1).default(e.defaultProviders),i=e.availableProviders.map(t=>{let n=e.providerCredits?.[t];return{value:t,label:dr[t].label,widgets:{provider_logo:{provider:t},...typeof n==`number`?{pricing:{credits:n}}:{}}}});return t.add(n,{label:`Provider sequence`,description:``,path:`config.providers`,groupPath:`config.providers`,type:`providers_input`,options:i,defaultProviders:e.defaultProviders,maxItems:e.maxItems,sectionKey:e.sectionKey}),n},_i=(e,t)=>{let n=e.maxItems||200,r=x.include_exclude_select_input.check(e=>{e.value.include.length>n&&e.issues.push({code:`custom`,input:e.value.include,path:[`include`],message:`Array must contain at most ${n} element(s)`}),e.value.exclude.length>n&&e.issues.push({code:`custom`,input:e.value.exclude,path:[`exclude`],message:`Array must contain at most ${n} element(s)`})}).default({include:[],exclude:[]});return e.description&&r.describe(e.description),t.add(r,{type:`include_exclude_select_input`,...e}),r},vi=(e,t)=>{let n=x.exact_range_input.check(t=>{e.min===void 0&&e.max===void 0||Object.values(t.value).filter(e=>e!==null).some(t=>e.min!=null&&t<e.min||e.max!=null&&t>e.max)&&t.issues.push({code:`custom`,input:t.value,message:`Values must be between ${e.min??`any`} and ${e.max??`any`}`})});return e.description&&n.describe(e.description),t.add(n,{type:`exact_range_input`,...e}),n},yi=(e,t)=>{let n=r.object({from:r.number().optional().nullable(),to:r.number().optional().nullable()}).default({from:null,to:null}),i=n;return(e.min!==void 0||e.max!==void 0)&&(i=n.check(t=>{Object.values(t.value).filter(e=>e!=null).every(t=>(e?.min==null||t>=e.min)&&(e.max==null||t<=e.max))||t.issues.push({code:`custom`,input:t.value,message:`Values must be between ${e.min??`any`} and ${e.max??`any`}`}),t.value.from&&t.value.to&&t.value.from>t.value.to&&t.issues.push({code:`custom`,input:t.value,message:`'From' value must be smaller than 'to' value.`})})),e.description&&i.describe(e.description),t.add(i,{type:`range_input`,...e}),i},bi=(e,t)=>{let n=x.date_range_input.check(e=>{let t=/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}/;for(let[n,r]of Object.entries(e.value))r&&!t.test(r)&&e.issues.push({code:`custom`,input:r,path:[n],message:`Must be an ISO datetime string`})});return e.description&&n.describe(e.description),t.add(n,{type:`date_range_input`,...e}),n},xi=(e,t)=>{let n=x.boolean_input.default(e.defaultValue);return e.description&&n.describe(e.description),t.add(n,{...e,required:!1,type:`boolean_input`}),n},Si=(e,t)=>{let n=x.nullable_boolean_input.default(e.defaultValue);return e.description&&n.describe(e.description),t.add(n,{...e,required:!1,type:`nullable_boolean_input`,defaultValue:e.defaultValue}),n},Ci=(e,t)=>{let n=x.text_input;return e.minLength&&(n=n.min(e.minLength)),e.maxLength&&(n=n.max(e.maxLength)),e.pattern&&(n=n.regex(new RegExp(e.pattern))),e.minLength||(n=n.nullable()),e.description&&n.describe(e.description),t.add(n,{type:`text_input`,...e}),n},wi=(e,t)=>{let n=x.textarea_input;return e.minLength&&(n=n.min(e.minLength)),e.maxLength&&(n=n.max(e.maxLength)),e.description&&n.describe(e.description),t.add(n,{type:`textarea_input`,...e}),n},Ti=(e,t,n=`pipe_io`)=>{let i=r.object({alias:r.string().default(``).describe(`Rename this output field. Leave empty to use default name.`),enabled:r.boolean().default(!0).describe(`Whether to include this field in the output.`)}).describe(`Output field '${e.fieldName}'`);return t.add(i,{type:`output_field_input`,label:`Rename *${e.fieldName}*`,placeholder:e.fieldName,path:`config.output_fields.${e.fieldName}`,description:void 0,groupPath:`config.output_fields`,sectionKey:n}),i.default({alias:``,enabled:!0})},Ei=(e,t)=>{let n=x.int_input.optional().check(t=>{if(t.value==null){e.required!==!1&&t.issues.push({code:`custom`,input:t.value,message:`Required`});return}e.min!=null&&t.value<e.min&&t.issues.push({code:`custom`,input:t.value,message:`Value must be at least ${e.min}`}),e.max!=null&&t.value>e.max&&t.issues.push({code:`custom`,input:t.value,message:`Value must be at most ${e.max}`})});return e.description&&n.describe(e.description),t.add(n,{...e,type:`int_input`}),n},Di=(e,t)=>{let n=x.number_input.check(t=>{if(t.value===void 0){e.required&&t.issues.push({code:`custom`,input:t.value,message:`Required`});return}e.min!=null&&t.value<e.min&&t.issues.push({code:`custom`,input:t.value,message:`Value must be at least ${e.min}`}),e.max!=null&&t.value>e.max&&t.issues.push({code:`custom`,input:t.value,message:`Value must be at most ${e.max}`})});return e.description&&n.describe(e.description),t.add(n,{...e,type:`number_input`}),n},Oi=(e,t)=>{let n=x.json_schema_input,r=e.required?n:n.optional();return r.check(e=>{Zr(e.value)||e.issues.push({code:`custom`,input:e.value,message:`JSON schema is invalid. Check your input.`})}),e.allowEmpty||(r=r.check(e=>{Qr(e.value)&&e.issues.push({code:`custom`,message:`JSON Schema must define a meaningful value. Can not be an empty object or array.`,input:e.value})})),t.add(r,{...e,type:`json_schema_input`}),r},ki=(e,t)=>{let n=e.options.map(e=>e.value),r=new Set([...n,``]),i=x.select_input.check(t=>{if(t.value===``){e.required&&t.issues.push({code:`custom`,input:t.value,message:`Required`});return}r.has(t.value)||t.issues.push({code:`custom`,input:t.value,message:`Must be one of: ${[...r].filter(e=>e).join(`, `)}`})}),a=e.defaultValue?i.default(e.defaultValue):i;return e.description&&a.describe(e.description),t.add(a,{type:`select_input`,...e}),a},Ai=({billableOperations:e,...t},n)=>{let i=r.enum($r).default(t.defaultValue||`gemini-flash-latest`);return n.add(i,{type:`select_input`,options:$r.map(t=>{let n=e[Object.keys(e).find(e=>e.endsWith(`-${t}`))];if(!n)throw Error(`Unable to find billing info for model ${t}`);return{label:t,value:t,widgets:{logo:{url:dr[ei[t].provider].logoUrl},pricing:{credits:n.credits.default}}}}),required:!0,description:``,label:`AI Models`,...t}),i},ji=(e,t)=>{let n=e.options.map(e=>e.value),i=new Set(n),a=r.array(r.enum(Array.from(i))).check(t=>{e.required&&t.value.length===0&&t.issues.push({code:`custom`,input:t.value,message:`Required`}),t.value.forEach((e,r)=>{i.has(e)||t.issues.push({code:`custom`,input:e,path:[r],message:`Must be one of: ${n.join(`, `)}`})})});return t.add(a,{type:`multi_select_input`,...e}),a},Mi=(e,t)=>{let n=e.required?x.context_select_input.check(e=>{(e.value===``||Array.isArray(e.value)&&e.value.length===0)&&e.issues.push({code:`custom`,input:e.value,message:`Required`})}):x.context_select_input,r=e.defaultValue?n.default(e.defaultValue):n,i=e.enabledIf??oi(e.optionsDef);return t.add(r,{type:`context_select_input`,...e,enabledIf:i,options:[]}),r},Ni=(e,t)=>{let n=x.min_max_int_input.check(t=>{for(let n of[`min`,`max`]){let r=t.value[n];if(r!=null){if(!Number.isInteger(r)){t.issues.push({code:`custom`,input:r,path:[n],message:`Must be an integer`});continue}(r<e.min||r>e.max)&&t.issues.push({code:`custom`,input:r,path:[n],message:`Must be between ${e.min} and ${e.max}`})}}});return t.add(n,{type:`min_max_int_input`,...e}),n},Pi=(e,t)=>{let n=x.async_multi_select_input.check(t=>{e.required&&t.value.length===0&&t.issues.push({code:`custom`,input:t.value,message:`Required`})});return t.add(n,{type:`async_multi_select_input`,...e}),n},Fi=(e,t)=>{let n=e.maxItems||200,r=x.async_include_exclude_select_input.check(e=>{e.value.include.length>n&&e.issues.push({code:`custom`,input:e.value.include,path:[`include`],message:`Array must contain at most ${n} element(s)`}),e.value.exclude.length>n&&e.issues.push({code:`custom`,input:e.value.exclude,path:[`exclude`],message:`Array must contain at most ${n} element(s)`})}).default({include:[],exclude:[]});return t.add(r,{type:`async_include_exclude_select_input`,...e}),r};function Ii(e,t){let n=e.reduce((e,t)=>{let n=t.groupPath||``;return e[n]??=[],e[n].push(t),e},{});return Object.entries(n).map(([e,n])=>({type:`group`,groupPath:e,description:t[e]?.description,label:t[e]?.label,iconKey:t[e]?.iconKey,defaultExpand:!!t[e]?.defaultExpand,order:t[e]?.order??99,fields:n.sort((e,t)=>(e.order||0)-(t.order||0))})).sort((e,t)=>e.order-t.order)}const S=()=>{let e=ur.nullish();return y.add(e,e=>{let t=e.validationContext;return{label:``,description:``,type:`pipes_run_if_input`,groupPath:`run_if`,path:`run_if`,sectionKey:`pipe_io`,fields:Object.entries(t.fieldDefinitions).filter(([e,t])=>t.type!==`json`&&e.toLowerCase()!==`id`).map(([e,t])=>({fieldName:e,fieldLabel:t.label,format:t.format,type:t.type}))}}),e},Li={pipe_io:{type:`form_section`,label:`In- and outputs`,description:`Configure output fields and reassign inputs.`,path:`config.pipe_io`},"config.filters":{type:`form_section`,label:`Filters`,path:`config.filters`,description:`Narrow down the search output`},general:{type:`form_section`,path:`general`,label:`Behavior`},pagination:{type:`form_section`,path:`pagination`}},Ri={general:1,pagination:2,"config.filters":3,pipe_io:10};function zi({fieldMetadata:e,store:t}){if(e.type===`context_select_input`||e.type===`tagged_text_input`){t.field_options??={};let n=t.field_options[e.path]?.options||[],r=e.optionsDef?.widgets;e.options=r?n.map(e=>({...e,widgets:{...r,...e.widgets??{}}})):n}return e}const Bi=({schema:e,groupPathMatch:t,extractFromSchema:n,sectionOrder:i=Ri,sectionMap:a=Li,store:o,formResolvers:s})=>{let c={};function l(e){let i=n(e);if(i){c[i.sectionKey]??={type:`section`,groups:[],metadata:a[i.sectionKey]};let e=c[i.sectionKey],n=e?.groups.find(e=>e.groupPath===i.groupPath);if(n){let e=zi({fieldMetadata:i,store:o,formResolvers:s});e&&n.fields.push(e)}else{let n=t[i.groupPath],r=zi({fieldMetadata:i,store:o,formResolvers:s});r&&e.groups.push({groupPath:i.groupPath,fields:[r],type:`group`,label:n?.label,defaultExpand:!!n?.defaultExpand,description:n?.description,iconKey:n?.iconKey,order:n?.order})}}if(typeof e==`object`&&`unwrap`in e&&typeof e.unwrap==`function`&&l(e.unwrap()),e instanceof r.ZodObject)for(let t of Object.values(e.shape))l(t)}l(e);let u=Object.values(c);return u.forEach(e=>{e.groups.sort((e,t)=>(e.order??99)-(t.order??99))}),[...u].filter(e=>e.groups.length!==0).sort((e,t)=>(i?.[e.metadata?.path||``]??99)-(i?.[t.metadata?.path||``]??99))};function Vi(e,t,n=[]){let r=e.value;if(!(typeof r!=`string`||!r))try{let i=jr(r);!t&&i.outputs.length>0&&e.issues.push({code:`custom`,input:r,path:n,message:`{% output %} tags are not allowed in this field.`})}catch(t){e.issues.push({code:`custom`,input:r,path:n,message:t instanceof Error?t.message:String(t)})}}const Hi=e=>{let t=(e.supportedTags??[]).includes(`output`),n=r.object({template:r.string().min(10).check(e=>Vi(e,t,[`template`])).describe(e.description||'Liquid prompt with `{{ field }}` input refs, `{{ field | default: "" }}` for optional refs, `{{ SECRETS.KEY }}` for secrets, `{{ CONSTANTS.KEY }}` for plaintext constants, and `{% output name, type: "string", description: "..." %}` to declare model outputs. Supports `{% if %}` / `{% for %}` control flow. Example: "Summarize {{ name }}. {% output summary, type: \\"string\\", description: \\"One-line summary\\" %}"'),json_schemas:r.record(r.string().min(1,`Schema name cannot be empty`),r.record(r.string(),r.any())).optional().describe(`JSON schemas for output fields with type="json". Keys are referenced via schema="<name>" in output tags.`)});return y.add(n,t=>{let n=t.validationContext;return{type:`prompt_input`,inputFields:Object.entries(n.fieldDefinitions).filter(([e,n])=>n.added_by.config_hash!==t.hash).map(([e,t])=>({...t,resolvedName:e})),...e}}),n},Ui=e=>{let t=r.string();e.required&&(t=t.min(1));let n=t.check(e=>Vi(e,!1,[])).describe(e.description||'Liquid template with `{{ field }}` input refs, `{{ field | default: "" }}` for optional refs, `{{ SECRETS.KEY }}` for secrets, `{{ CONSTANTS.KEY }}` for plaintext constants, and `{% if %}` / `{% for %}` control flow. Example: "Write to {{ name }} about {{ topic | default: \\"the project\\" }}."');return y.add(n,t=>{let n=t.validationContext;return{type:`template_input`,inputFields:Object.entries(n.fieldDefinitions).filter(([e,n])=>n.added_by.config_hash!==t.hash).map(([e,t])=>({...t,resolvedName:e})),rows:e.rows||10,...e}}),n},C=e=>{let t=`${e.multiline?`Multi-line`:`Single-line`} ${e.expectedTagType} value, optionally containing \`{{ field }}\` Liquid input refs (use \`| default: ""\` for optional refs), \`{{ SECRETS.KEY }}\` for encrypted secrets, and \`{{ CONSTANTS.KEY }}\` for plaintext constants.`,n=r.coerce.string();e.minLength&&(n=n.min(e.minLength)),e.maxLength&&(n=n.max(e.maxLength)),e.pattern&&(n=n.regex(new RegExp(e.pattern))),e.minLength||(n=n.nullable()),n=n.check(e=>Vi(e,!1,[])),n=n.describe(e.description||t);let i=e.optionsDef?{...e.optionsDef,enabledIf:e.optionsDef.enabledIf??oi(e.optionsDef)}:void 0,a={type:`tagged_text_input`,...e,optionsDef:i,options:[]},o=t=>{let n=t.validationContext,r=Object.entries(n.fieldDefinitions).filter(([e,n])=>n.added_by.config_hash!==t.hash).filter(([t,n])=>n.type===e.expectedTagType).map(([e,t])=>({...t,resolvedName:e}));return{...a,inputFields:r}};return o.staticMeta={...a,inputFields:[]},y.add(n,o),n};function Wi(e,t){y.add(e,({userConnections:e,pipeEntry:n})=>{let r=new Set(n.allowedUserConnectionProviders),i=e.filter(e=>r.has(e.provider));return{label:``,description:``,groupPath:`connector`,path:`connector`,connectorMode:t,type:`connector_input`,sectionKey:`pipe_io`,supportsUserConnections:r.size>0,filteredConnections:i.map(e=>({provider:e.provider,connection:Yr({id:e.public_id,provider:e.provider})}))}})}const Gi=()=>{let e=ar;return Wi(e,`required`),e},w=()=>{let e=v;return Wi(e,`optional`),e},T=()=>{let e=or;return Wi(e,`disabled`),e};function Ki(e,t){return Object.entries(t.fieldDefinitions).filter(([t,n])=>n.added_by.config_hash!==e&&t.toLowerCase()!==`id`).map(([e,t])=>({label:e,value:e,type:t.type,format:t.format}))}const E=e=>{let t=r.object({alias:r.string().describe(`Override field name mapping. Leave empty to use default.`)});return y.add(t,t=>{let n=t.validationContext;return{type:`select_input`,required:!1,sectionKey:`pipe_io`,defaultValue:void 0,placeholder:e.fieldName,options:Ki(t.hash,n),path:`config.input_fields.${e.fieldName}.alias`,label:`Assign *${e.fieldName}* to:`,description:``,groupPath:`config.input_fields`,multiple:!1}}),t.default({alias:``})},D=e=>gi(e,y),qi=e=>{let t=x.fields_select_input.check(e=>{e.value.forEach((t,n)=>{t.field_name.length<1&&e.issues.push({code:`custom`,input:t.field_name,path:[n,`field_name`],message:`field_name must not be empty`})})});return t=e.minItems?t.min(e.minItems):t.default([]),y.add(t,t=>{let n=t.validationContext;return{type:`fields_select_input`,options:Object.entries(n.fieldDefinitions).filter(([e])=>e.toLowerCase()!==`id`).map(([e,t])=>({fieldName:e,fieldLabel:e,type:t.type})).map(e=>({value:e.fieldName,label:e.fieldLabel,widgets:{field_type:{type:e.type}}})),...e}}),t},Ji=e=>mi(e,y),Yi=e=>ci(e,y),Xi=e=>li(e,y),Zi=e=>fi(e,y),Qi=e=>pi(e,y),$i=e=>_i(e,y),ea=e=>Fi(e,y),ta=e=>vi(e,y),na=e=>bi(e,y),O=e=>xi(e,y),k=e=>Ti(e,y),ra=e=>Ci(e,y),ia=e=>wi(e,y),aa=e=>ki(e,y),oa=e=>Ai(e,y),sa=e=>ji(e,y),ca=e=>Ei(e,y),la=e=>Di(e,y),ua=e=>Oi(e,y),da=e=>Mi(e,y),A=e=>ci(e,b),fa=e=>li(e,b),pa=e=>Ni(e,b),j=e=>mi(e,b),M=e=>_i(e,b),ma=e=>vi(e,b),ha=e=>yi(e,b),ga=e=>bi(e,b),_a=e=>xi(e,b),va=e=>Si(e,b),N=e=>Ti(e,b,`pipe_io`),ya=e=>Ci(e,b),ba=e=>wi(e,b),xa=e=>ki(e,b),P=e=>ji(e,b),F=e=>Pi(e,b),I=e=>Fi(e,b),L=e=>Ei(e,b),Sa=e=>Di(e,b),R=e=>(e=e.check(e=>{let t=e.value,n=!1;for(let e in t)if(t[e]?.enabled){n=!0;break}n||e.issues.push({code:`custom`,input:e.value,message:`All output fields are disabled. Enable at least one output.`})}),e.optional()),z=e=>e.optional();function Ca(e,t){if(!e)return t;let n={...e};for(let[e,r]of Object.entries(t))n[e]===void 0?n[e]=r:n[e]!==null&&typeof n[e]==`object`&&!Array.isArray(n[e])&&typeof r==`object`&&r&&!Array.isArray(r)&&(n[e]=Ca(n[e],r));return n}const B={EMAIL:`Email`,TEXT:`Text`,CHAT:`Chat`,PERSONAL_EMAIL:`Personal Email`,NAMES:`Names`,WORK_EMAIL:`Work Email`,WATERFALL:`Waterfall`,WEBSITE:`Website`,SCRAPE:`Scrape`,ADDRESS:`Address`,NEWS:`News`,LINKEDIN:`LinkedIn`,FINANCIAL_DATA:`Financial Data`,AI:`AI`,PHONE:`Phone Number`,NEW:`New`,BETA:`Beta`,PEOPLE_PROFILES:`People Profiles`,COMPANY_PROFILES:`Company Profiles`,JSON:`Json`,FIELDS:`Fields`,LOGIC:`Logic`,DEPRECATED:`Deprecated ❌`},wa=e=>typeof e.kind==`string`,Ta=e=>wa(e)?e:{kind:`field`,field:e},V=e=>({kind:`field`,field:e}),Ea=(...e)=>({kind:`all`,of:e.map(Ta)}),H=(...e)=>({kind:`any`,of:e.map(Ta)}),Da=e=>({kind:`optional`,field:e});function Oa(e,t){switch(e.kind){case`optional`:return!0;case`field`:return t.has(e.field.resolvedName);case`all`:return e.of.every(e=>Oa(e,t));case`any`:return e.of.some(e=>Oa(e,t))}}function ka(e){switch(e.kind){case`field`:return[{field:e.field,required:!0}];case`optional`:return[{field:e.field,required:!1}];case`all`:case`any`:return e.of.flatMap(ka)}}function Aa(e,t){let n=ja(e,t);return n.ok?{valid:!0,failedPipeInputField:null,failedRecordField:null}:{valid:!1,failedPipeInputField:n.field,failedRecordField:n.recordField}}function ja(e,t){switch(e.kind){case`optional`:return{ok:!0};case`field`:{let n=t.fields[e.field.resolvedName];if(!n)throw Error(`Record field does not exist ${e.field.name} for requirement.`);return n.status===`completed`||n.status===`queued`?{ok:!0}:{ok:!1,field:e.field,recordField:n}}case`all`:for(let n of e.of){let e=ja(n,t);if(!e.ok)return e}return{ok:!0};case`any`:{let n=null,r=!1;for(let i of e.of)try{let e=ja(i,t);if(r=!0,e.ok)return{ok:!0};n=e}catch{}return r?n:{ok:!0}}}}function Ma(e){if(typeof e!=`object`||!e)return e;if(Array.isArray(e))return e.map(Ma).filter(e=>!jt(e));let t={};for(let[n,r]of Object.entries(e)){let e=Ma(r);jt(e)||(t[n]=e)}return t}const Na=await l();var Pa=class e{static hashObject(t){if(!Na)throw Error(`HashAPI not initialized`);let{h64ToString:n}=Na,r=e.normalizeObject(t);return n(JSON.stringify(r))}static normalizeObject(t){if(typeof t!=`object`||!t)return t;if(Array.isArray(t))return t.map(t=>e.normalizeObject(t));let n={},r=Object.keys(t).sort();for(let i of r)n[i]=e.normalizeObject(t[i]);return n}};function Fa(e,t){let n={pipeId:e,config:Ma(t)};return Pa.hashObject(n)}function Ia(e,t){let n={};return Object.values(t).forEach(t=>{let r=t,i=e.fields[r.resolvedName];i?.value!=null&&(n[r.resolvedName]=i.value)}),Object.keys(n).length===0?null:Pa.hashObject(Ma(n))}var U=class{validatePayload(e){try{return this.payloadSchema.parse(e)}catch(e){throw e instanceof n?Error(r.prettifyError(e)):e}}getSecretRequirements(){return[]}getConstantRequirements(){return[]}catalogOutput(e,{isPrimaryOutput:t=!1,resolveFormat:n,resolveType:r}={resolveType:void 0,resolveFormat:void 0,isPrimaryOutput:!1}){return{name:e.name,enabled:!!this.payload.config?.output_fields?.[e.name].enabled,type:r||e.type,format:n||e.format,resolvedName:this.payload.config?.output_fields?.[e.name]?.alias||e.name,description:e.description,jsonMeta:e.jsonMeta,label:e.label,isCatalogFIeld:!0,isPrimaryOutput:t}}getOutputFields(){let e={};for(let[t,n]of Object.entries(this.getRawOutputFields()))n.enabled&&(e[t]=n);return e}get inputFields(){let e={};for(let{field:t}of ka(this.getInputRequirement()))e[t.name]=t;return e}getConfigHashKey(){return Fa(this.payload.pipe_id,this.payload.config||{})}getInputHashKey(e){return Ia(e,this.inputFields)}};function La(e,t){let n={};for(let r of t)for(let t of Object.values(e))if(t&&t.provider===r&&t.allowManagedConnection){n[r]=t.credits.default;break}return n}function Ra(e){return ka(e).map(({field:e})=>e)}function za({recordField:e,value:t,resolvedBy:n,widgets:r}){return e.value=t,e.status=`completed`,e.resolved_by=n,e.widgets=r,e}function Ba({recordField:e}){return e.status=`pending`,e.resolved_by=null,e.value=null,e}function Va({recordField:e,reason:t,resolvedBy:n,widgets:r={}}){return e.value=null,e.status=`no_result`,e.resolved_by=n,e.reason=t,e.widgets=r,e}function Ha(e,t,n){return e.value=null,e.status=`failed`,e.resolved_by=null,e.reason=t,e.resolved_by=n,e.widgets={},e}function Ua(e,t){return e.value=null,e.status=`skipped`,e.resolved_by=null,e.reason=t,e.widgets={},e}function Wa(e){return e.value=null,e.status=`processing`,e.resolved_by=null,e.widgets={},e}function W(e){return e.split(`@`)[0]}function G(e){return`/docs/pipe-catalog/${W(e)}/${e.split(`@`)[1]}`}function K(e,t){return{name:e.name,description:e.description,resolvedName:t?.input_fields?.[e.name]?.alias||e.name,type:e.type,label:e.label,format:e.format}}const Ga=`company:domain:workemail@1`,Ka=_(`company_domain`),qa=_(`work_email`),Ja=r.object({pipe_id:r.literal(Ga),run_if:S(),connector:T(),config:r.object({input_fields:z(r.object({[qa.name]:E({fieldName:qa.name})})),output_fields:R(r.object({[Ka.name]:k({fieldName:Ka.name})}))}).optional()}),Ya=e=>V(K(qa,e)),Xa={"company-domain-workemail-v1-pipe0":{credits:{default:0},allowManagedConnection:!0,mode:`always`,provider:`pipe0`}},Za=class extends U{pipeId=Ga;payload;payloadSchema=Ja;billableOperations=Xa;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[`company-domain-workemail-v1-pipe0`]}getInputRequirement(){return Ya(this.payload.config)}getRawOutputFields(){return{[Ka.name]:this.catalogOutput(Ka)}}getConnectionsRequirements(){return[{provider:`pipe0`,rateLimitRatio:1,rateLimitOperation:`pipe0_logic`,allowManagedConnection:!0}]}},Qa=Ja,$a={pipeId:Ga,basePipe:W(Ga),inputFieldMode:`static`,outputFieldMode:`static`,label:`Website from email`,executionMode:`single`,categories:[`company_data`],lifecycle:null,description:`Extract the company website URL from a work email address.`,tags:[B.EMAIL,B.WORK_EMAIL,B.WEBSITE],docPath:G(Ga),allowedUserConnectionProviders:[],managedProviders:[`pipe0`],deprecatedProviders:[],billableOperations:Xa,defaultInputRequirement:Ya(null),defaultPayload:{pipe_id:Ga,connector:null,run_if:null,config:{input_fields:{[qa.name]:{alias:``}},output_fields:{[Ka.name]:{alias:``,enabled:!0}}}}},eo=`company:funding:leadmagic@2`,to=_(`company_name`),no=_(`company_domain`),ro=_(`funding_history`),io=_(`funding_total_usd`),ao=_(`leadmagic_competitor_list`),oo=_(`leadmagic_acquisition_history`),so=_(`leadmagic_company_news_list`),co=r.object({pipe_id:r.literal(eo),connector:w(),run_if:S(),config:r.object({input_fields:z(r.object({[to.name]:E({fieldName:to.name}),[no.name]:E({fieldName:no.name})})),output_fields:R(r.object({[ro.name]:k({fieldName:ro.name}),[io.name]:k({fieldName:io.name}),[ao.name]:k({fieldName:ao.name}),[oo.name]:k({fieldName:oo.name}),[so.name]:k({fieldName:so.name})}))}).optional()}),lo=e=>H(K(to,e),K(no,e)),uo={"company-funding-leadmagic-v2-leadmagic":{provider:`leadmagic`,allowManagedConnection:!0,credits:{default:2},mode:`onSuccess`}},fo=class extends U{pipeId=eo;payload;payloadSchema=co;billableOperations=uo;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`leadmagic`]}estimateBillableOperations(){return[`company-funding-leadmagic-v2-leadmagic`]}getInputRequirement(){return lo(this.payload.config)}getRawOutputFields(){return{[ro.name]:this.catalogOutput(ro),[io.name]:this.catalogOutput(io),[oo.name]:this.catalogOutput(oo),[so.name]:this.catalogOutput(so),[ao.name]:this.catalogOutput(ao)}}getConnectionsRequirements(){return[{provider:`leadmagic`,rateLimitRatio:1,rateLimitOperation:`leadmagic_company_funding`,allowManagedConnection:!0}]}},po=co,mo={pipeId:eo,basePipe:W(eo),label:`Funding history`,executionMode:`single`,categories:[`company_data`],lifecycle:null,description:`Information on funding rounds, acquisition, competitors, and investors.`,tags:[B.FINANCIAL_DATA],docPath:G(eo),billableOperations:uo,inputFieldMode:`static`,outputFieldMode:`static`,allowedUserConnectionProviders:[`leadmagic`],managedProviders:[`leadmagic`],deprecatedProviders:[],defaultInputRequirement:lo(null),defaultPayload:{pipe_id:eo,connector:null,run_if:null,config:{input_fields:{company_name:{alias:``},company_domain:{alias:``}},output_fields:{funding_history:{enabled:!0,alias:``},funding_total_usd:{enabled:!0,alias:``},leadmagic_acquisition_history:{enabled:!1,alias:``},leadmagic_company_news_list:{enabled:!1,alias:``},leadmagic_competitor_list:{enabled:!1,alias:``}}}}},ho=_(`company_name`),go=_(`company_profile_url`),_o=_(`company_domain`),vo=_(`cleaned_company_name`),yo=`company:identity@3`,bo=r.object({pipe_id:r.literal(yo),run_if:S(),connector:T(),config:r.object({input_fields:z(r.object({[ho.name]:E({fieldName:ho.name})})),output_fields:R(r.object({[go.name]:k({fieldName:go.name}),[vo.name]:k({fieldName:vo.name}),[_o.name]:k({fieldName:_o.name})}))}).optional()}),xo=e=>V(K(ho,e)),So={"company-identity-v3-pipe0":{allowManagedConnection:!0,credits:{default:.3},mode:`always`,provider:`pipe0`}},Co=class extends U{pipeId=yo;payload;payloadSchema=bo;billableOperations=So;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[`company-identity-v3-pipe0`]}getInputRequirement(){return xo(this.payload.config)}getRawOutputFields(){return{[go.name]:this.catalogOutput(go),[_o.name]:this.catalogOutput(_o),[vo.name]:this.catalogOutput(vo)}}getConnectionsRequirements(){return[{provider:`gemini`,rateLimitRatio:1,rateLimitOperation:`gemini_25_flash_preview`,allowManagedConnection:!0},{provider:`serper`,rateLimitRatio:2,rateLimitOperation:`serper_search`,allowManagedConnection:!0},{provider:`leadmagic`,rateLimitRatio:.2,rateLimitOperation:`leadmagic_company_search`,allowManagedConnection:!0},{provider:`perplexity`,rateLimitRatio:.2,rateLimitOperation:`perplexity_generic`,allowManagedConnection:!0},{provider:`pipe0`,rateLimitRatio:.02,rateLimitOperation:`pipe0_scraper`,allowManagedConnection:!0}]}},wo=bo,To={pipeId:yo,inputFieldMode:`static`,outputFieldMode:`static`,basePipe:W(yo),label:`Find company identity`,executionMode:`mix`,categories:[`company_data`],lifecycle:null,description:`Find any company's website URL, LinkedIn profile URL, and cleaned name.`,tags:[B.WEBSITE,B.LINKEDIN],docPath:G(yo),billableOperations:So,allowedUserConnectionProviders:[],managedProviders:[`pipe0`],deprecatedProviders:[],defaultInputRequirement:xo(null),defaultPayload:{pipe_id:yo,connector:null,run_if:null,config:{input_fields:{company_name:{alias:``}},output_fields:{cleaned_company_name:{alias:``,enabled:!0},company_profile_url:{alias:``,enabled:!0},company_domain:{alias:``,enabled:!0}}}}},Eo=_(`company_domain`),Do=_(`companyenrich_matches`),Oo=`company:lookalikes:companyenrich@2`,ko=r.object({pipe_id:r.literal(Oo),run_if:S(),connector:w(),config:r.object({limit:ca({groupPath:`config.general`,max:50,min:1,path:`config.limit`,required:!0,sectionKey:`general`,info:`Define how many lookalikes you want to find.`,label:`Limit`}),input_fields:z(r.object({[Eo.name]:E({fieldName:Eo.name})})),output_fields:R(r.object({[Do.name]:k({fieldName:Do.name})}))}).optional()}),Ao=e=>V(K(Eo,e)),jo={"company-lookalikes-companyenrich-v2-companyenrich":{allowManagedConnection:!0,credits:{default:.2},mode:`onSuccess`,note:`One billing event per result.`,provider:`companyenrich`}},Mo=class extends U{pipeId=Oo;payload;payloadSchema=ko;billableOperations=jo;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`companyenrich`]}estimateBillableOperations(){return[,,,,,].fill(`lookalikes-companyenrich`)}getInputRequirement(){return Ao(this.payload.config)}getRawOutputFields(){return{[Do.name]:this.catalogOutput(Do)}}getConnectionsRequirements(){return[{provider:`companyenrich`,rateLimitRatio:1,rateLimitOperation:`company_enrich_generic`,allowManagedConnection:!0}]}},No=ko,Po={pipeId:Oo,inputFieldMode:`static`,outputFieldMode:`static`,basePipe:W(Oo),label:`Find company lookalikes`,executionMode:`single`,categories:[`company_data`],lifecycle:null,description:`Find companies similar to the company you provide as input.`,tags:[B.COMPANY_PROFILES],docPath:G(Oo),billableOperations:jo,allowedUserConnectionProviders:[`companyenrich`],managedProviders:[`companyenrich`],deprecatedProviders:[],defaultInputRequirement:Ao(null),defaultPayload:{pipe_id:Oo,connector:null,run_if:null,config:{limit:20,input_fields:{company_domain:{alias:``}},output_fields:{companyenrich_matches:{alias:``,enabled:!0}}}}},Fo=_(`company_domain`),Io=_(`crustdata_companyenrich_match`),Lo=`company:match:crustdata@2`,Ro=r.object({pipe_id:r.literal(Lo),run_if:S(),connector:w(),config:r.object({input_fields:z(r.object({[Fo.name]:E({fieldName:Fo.name})})),output_fields:R(r.object({[Io.name]:k({fieldName:Io.name})}))}).optional()}),zo=e=>V(K(Fo,e)),Bo={"company-match-crustdata-v2-crustdata":{allowManagedConnection:!0,credits:{default:2},mode:`onSuccess`,provider:`crustdata`}},Vo=class extends U{pipeId=Lo;payload;payloadSchema=Ro;billableOperations=Bo;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`crustdata`]}estimateBillableOperations(){return[`company-match-crustdata-v2-crustdata`]}getInputRequirement(){return zo(this.payload.config)}getRawOutputFields(){return{[Io.name]:this.catalogOutput(Io)}}getConnectionsRequirements(){return[{provider:`crustdata`,rateLimitRatio:1,rateLimitOperation:`crustdata_company_enrich`,allowManagedConnection:!0}]}},Ho=Ro,Uo={pipeId:Lo,inputFieldMode:`static`,outputFieldMode:`static`,basePipe:W(Lo),label:`Company match`,executionMode:`single`,categories:[`company_data`],lifecycle:null,description:`Company data like headcount distribution, LinkedIn URLs etc. via the Crustdata API.`,tags:[B.WEBSITE,B.LINKEDIN],docPath:G(Lo),billableOperations:Bo,allowedUserConnectionProviders:[`crustdata`],managedProviders:[`crustdata`],deprecatedProviders:[],defaultInputRequirement:zo(null),defaultPayload:{pipe_id:Lo,connector:null,run_if:null,config:{input_fields:{company_domain:{alias:``}},output_fields:{crustdata_companyenrich_match:{alias:``,enabled:!0}}}}},Wo=_(`company_domain`),Go=_(`company_name`),Ko=_(`company_profile_url`),qo=_(`logodev_describe_match`),Jo=_(`logo_url`),Yo=`company:match:logodev@2`,Xo=r.object({pipe_id:r.literal(Yo),run_if:S(),connector:w(),config:r.object({input_fields:z(r.object({[Wo.name]:E({fieldName:Wo.name})})),output_fields:R(r.object({[Ko.name]:k({fieldName:Ko.name}),[Jo.name]:k({fieldName:Jo.name}),[Go.name]:k({fieldName:Go.name}),[qo.name]:k({fieldName:qo.name})}))}).optional()}),Zo=e=>V(K(Wo,e)),Qo={"company-match-logodev-v2-logodev":{allowManagedConnection:!0,credits:{default:.1},mode:`onSuccess`,provider:`logodev`}},$o=class extends U{pipeId=Yo;payload;payloadSchema=Xo;billableOperations=Qo;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`logodev`]}estimateBillableOperations(){return[`company-match-logodev-v2-logodev`]}getInputRequirement(){return Zo(this.payload.config)}getRawOutputFields(){return{[Ko.name]:this.catalogOutput(Ko),[Go.name]:this.catalogOutput(Go),[Jo.name]:this.catalogOutput(Jo),[qo.name]:this.catalogOutput(qo)}}getConnectionsRequirements(){return[{provider:`logodev`,rateLimitRatio:1,rateLimitOperation:`logodev_describe`,allowManagedConnection:!0}]}},es=Xo,ts={pipeId:Yo,inputFieldMode:`static`,outputFieldMode:`static`,basePipe:W(Yo),label:`Company match`,executionMode:`single`,categories:[`company_data`],lifecycle:null,description:`Find brand data like logos, colors, and social links via the Logo.dev API.`,tags:[B.WEBSITE,B.LINKEDIN],docPath:G(Yo),billableOperations:Qo,allowedUserConnectionProviders:[`logodev`],managedProviders:[`logodev`],deprecatedProviders:[],defaultInputRequirement:Zo(null),defaultPayload:{pipe_id:Yo,connector:null,run_if:null,config:{input_fields:{company_domain:{alias:``}},output_fields:{company_profile_url:{alias:``,enabled:!0},logo_url:{alias:``,enabled:!0},logodev_describe_match:{alias:``,enabled:!0},company_name:{alias:``,enabled:!1}}}}},ns=`company:newssummary:domain@1`,rs=_(`company_news_summary`),is=_(`company_domain`),as=r.object({pipe_id:r.literal(ns),run_if:S(),connector:w(),config:r.object({input_fields:z(r.object({[is.name]:E({fieldName:is.name})})),output_fields:R(r.object({[rs.name]:k({fieldName:rs.name})}))}).optional()}),os=e=>V(K(is,e)),ss={"company-newssummary-domain-v1-pipe0":{allowManagedConnection:!0,credits:{default:1},mode:`always`,provider:`pipe0`}},cs=class extends U{pipeId=ns;payloadSchema=as;billableOperations=ss;payload;constructor(e){super(),this.payload=e}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[`company-newssummary-domain-v1-pipe0`]}getInputRequirement(){return os(this.payload.config)}getRawOutputFields(){return{[rs.name]:this.catalogOutput(rs)}}getConnectionsRequirements(){return[{provider:`perplexity`,rateLimitRatio:1,rateLimitOperation:`perplexity_generic`,allowManagedConnection:!0}]}},ls=as,us={pipeId:ns,basePipe:W(ns),inputFieldMode:`static`,outputFieldMode:`static`,label:`Company news`,executionMode:`single`,categories:[`company_data`],lifecycle:null,description:`Find recent company news by performing a search and scrape.`,tags:[B.NEWS],docPath:G(ns),billableOperations:ss,allowedUserConnectionProviders:[],managedProviders:[`pipe0`],deprecatedProviders:[],defaultInputRequirement:os(null),defaultPayload:{pipe_id:ns,run_if:null,connector:null,config:{input_fields:{company_domain:{alias:``}},output_fields:{company_news_summary:{alias:``,enabled:!0}}}}},ds=_(`company_domain`),fs=_(`company_profile_url`),ps=_(`company_description`),ms=_(`company_industry`),hs=_(`company_region`),gs=_(`headcount`),_s=_(`estimated_revenue`),vs=_(`founded_year`),ys=_(`company_name`),bs=`company:overview@3`,xs=r.object({pipe_id:r.literal(bs),run_if:S(),connector:T(),config:r.object({input_fields:z(r.object({[ds.name]:E({fieldName:ds.name}),[fs.name]:E({fieldName:fs.name})})),output_fields:R(r.object({[ps.name]:k({fieldName:ps.name}),[ms.name]:k({fieldName:ms.name}),[hs.name]:k({fieldName:hs.name}),[gs.name]:k({fieldName:gs.name}),[_s.name]:k({fieldName:_s.name}),[vs.name]:k({fieldName:vs.name}),[ys.name]:k({fieldName:ys.name})}))}).optional()}),Ss=e=>H(K(ds,e),K(fs,e)),Cs={"company-overview-v3-pipe0":{provider:`pipe0`,allowManagedConnection:!0,credits:{default:1},mode:`always`}},ws=class extends U{pipeId=bs;payloadSchema=xs;billableOperations=Cs;payload;constructor(e){super(),this.payload=e}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[`company-overview-v3-pipe0`]}getInputRequirement(){return Ss(this.payload.config)}getRawOutputFields(){return{[ps.name]:this.catalogOutput(ps),[ms.name]:this.catalogOutput(ms),[hs.name]:this.catalogOutput(hs),[gs.name]:this.catalogOutput(gs),[_s.name]:this.catalogOutput(_s),[vs.name]:this.catalogOutput(vs),[ys.name]:this.catalogOutput(ys)}}getConnectionsRequirements(){return[{provider:`perplexity`,rateLimitRatio:1,rateLimitOperation:`perplexity_generic`,allowManagedConnection:!0},{provider:`leadmagic`,rateLimitRatio:.2,rateLimitOperation:`leadmagic_email_lookup`,allowManagedConnection:!0},{provider:`gemini`,rateLimitOperation:`gemini_20_flash`,rateLimitRatio:.1,allowManagedConnection:!0}]}},Ts=xs,Es={pipeId:bs,basePipe:W(bs),inputFieldMode:`static`,outputFieldMode:`static`,label:`Company overview`,executionMode:`mix`,categories:[`company_data`],lifecycle:null,description:`Business description, industry, and financial information.`,docPath:G(bs),tags:[B.WEBSITE,B.LINKEDIN,B.FINANCIAL_DATA],allowedUserConnectionProviders:[],managedProviders:[`pipe0`],deprecatedProviders:[],billableOperations:Cs,defaultInputRequirement:Ss(null),defaultPayload:{pipe_id:bs,run_if:null,connector:void 0,config:{input_fields:{company_profile_url:{alias:``},company_domain:{alias:``}},output_fields:{company_description:{alias:``,enabled:!0},company_industry:{alias:``,enabled:!0},company_region:{alias:``,enabled:!0},estimated_revenue:{alias:``,enabled:!0},founded_year:{alias:``,enabled:!0},headcount:{alias:``,enabled:!0},company_name:{alias:``,enabled:!1}}}}},Ds=_(`company_domain`),Os=_(`technology_list`),ks=_(`spending_trend`),As=_(`technology_match_builtwith`),js=`company:techstack:builtwith@2`,Ms=r.object({pipe_id:r.literal(js),connector:w(),run_if:S(),config:r.object({input_fields:z(r.object({[Ds.name]:E({fieldName:Ds.name})})),output_fields:R(r.object({[Os.name]:k({fieldName:Os.name}),[As.name]:k({fieldName:As.name}),[ks.name]:k({fieldName:ks.name})}))}).optional()}),Ns=e=>V(K(Ds,e)),Ps={"company-techstack-builtwith-v2-builtwith":{provider:`builtwith`,allowManagedConnection:!0,credits:{default:2},mode:`always`}},Fs=class extends U{pipeId=js;payload;payloadSchema=Ms;billableOperations=Ps;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`builtwith`]}estimateBillableOperations(){return[`company-techstack-builtwith-v2-builtwith`]}getInputRequirement(){return Ns(this.payload.config)}getRawOutputFields(){return{[Os.name]:this.catalogOutput(Os),[As.name]:this.catalogOutput(As),[ks.name]:this.catalogOutput(ks)}}getConnectionsRequirements(){return[{provider:`builtwith`,rateLimitRatio:1,rateLimitOperation:`builtwith_generic`,allowManagedConnection:!0}]}},Is=Ms,Ls={pipeId:js,basePipe:W(js),managedProviders:[`builtwith`],deprecatedProviders:[],allowedUserConnectionProviders:[`builtwith`],label:`Tech stack`,executionMode:`single`,categories:[`company_data`],lifecycle:null,description:`All technologies and frameworks powering a given website.`,tags:[B.WEBSITE],inputFieldMode:`static`,outputFieldMode:`static`,docPath:G(js),billableOperations:Ps,defaultInputRequirement:Ns(null),defaultPayload:{pipe_id:js,connector:null,run_if:null,config:{input_fields:{company_domain:{alias:``}},output_fields:{technology_list:{alias:``,enabled:!0},technology_match_builtwith:{alias:``,enabled:!0},spending_trend:{alias:``,enabled:!0}}}}},Rs={MissingSecretError:class extends Error{constructor({providerName:e}){super(`Missing secret for ${e}`)}},HttpError:class extends Error{constructor({msg:e}){super(e)}}},zs=`contact:create:resend@1`,Bs={"contact-create-resend-v1-resend":{allowManagedConnection:!1,provider:`resend`,credits:null,mode:null}},Vs=_(`email`),Hs=_(`name`),Us=_(`resend_contact_id`),Ws=[{label:`Demo subscribers`,value:`sandbox-segment-1`},{label:`Demo product updates`,value:`sandbox-segment-2`}],Gs=r.object({pipe_id:r.literal(zs),connector:Gi(),run_if:S(),config:r.object({segment_id:da({sectionKey:`general`,required:!0,label:`Segment`,groupPath:`config.general`,path:`config.segment_id`,info:``,enabledIf:ln(`resend`),optionsDef:{requires:{connection:`resend`},options:async({query:e,secret:t,environment:n})=>{if(n===`sandbox`)return Ws;if(!t)throw new Rs.MissingSecretError({providerName:`resend`});let r=await fetch(`https://api.resend.com/segments?limit=100`,{headers:{Authorization:`Bearer ${t}`}});if(!r.ok){let e=await r.text();throw new Rs.HttpError({msg:e})}let i=(await r.json()).data.map(e=>({label:e.name,value:e.id}));return e?i.filter(t=>t.label.toLowerCase().includes(e.toLowerCase())):i}}}),add_as_subscribed:O({sectionKey:`general`,defaultValue:!0,label:`Add as subscribed`,groupPath:`config.general`,path:`config.add_as_subscribed`,info:``}),input_fields:z(r.object({[Hs.name]:E({fieldName:Hs.name}),[Vs.name]:E({fieldName:Vs.name})})),output_fields:R(r.object({[Us.name]:k({fieldName:Us.name})}))})}),Ks=e=>Ea(V(K(Vs,e)),V(K(Hs,e))),qs=class extends U{pipeId=zs;payload;payloadSchema=Gs;billableOperations=Bs;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`resend`]}estimateBillableOperations(){return[`contact-create-resend-v1-resend`]}getInputRequirement(){return Ks(this.payload.config)}getRawOutputFields(){return{[Us.name]:this.catalogOutput(Us)}}getConnectionsRequirements(){return[{provider:`resend`,rateLimitRatio:1,rateLimitOperation:`resend_generic`,allowManagedConnection:!1}]}},Js=Gs,Ys={pipeId:zs,basePipe:W(zs),label:`Create Contact`,executionMode:`single`,categories:[`actions`],lifecycle:null,description:`Create a contact inside a Resend audience.`,tags:[B.EMAIL],docPath:G(zs),billableOperations:Bs,inputFieldMode:`static`,outputFieldMode:`static`,allowedUserConnectionProviders:[`resend`],defaultInputRequirement:Ks(null),managedProviders:[],deprecatedProviders:[],defaultPayload:{pipe_id:zs,connector:{strategy:`first`,connections:[]},run_if:null,config:{segment_id:``,add_as_subscribed:!0,input_fields:{name:{alias:``},email:{alias:``}},output_fields:{resend_contact_id:{alias:``,enabled:!0}}}}},Xs=`company:funding:leadmagic@1`,Zs=_(`company_name`),Qs=_(`company_website_url`),$s=_(`funding_history`),ec=_(`funding_total_usd`),tc=_(`leadmagic_competitor_list`),nc=_(`leadmagic_acquisition_history`),rc=_(`leadmagic_company_news_list`),ic=r.object({pipe_id:r.literal(Xs),connector:w(),run_if:S(),config:r.object({input_fields:z(r.object({[Zs.name]:E({fieldName:Zs.name}),[Qs.name]:E({fieldName:Qs.name})})),output_fields:R(r.object({[$s.name]:k({fieldName:$s.name}),[ec.name]:k({fieldName:ec.name}),[tc.name]:k({fieldName:tc.name}),[nc.name]:k({fieldName:nc.name}),[rc.name]:k({fieldName:rc.name})}))}).optional()}),ac=e=>H(K(Zs,e),K(Qs,e)),oc={"company-funding-leadmagic-v1-leadmagic":{provider:`leadmagic`,allowManagedConnection:!0,credits:{default:2},mode:`onSuccess`}},sc=class extends U{pipeId=Xs;payload;payloadSchema=ic;billableOperations=oc;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`leadmagic`]}estimateBillableOperations(){return[`company-funding-leadmagic-v1-leadmagic`]}getInputRequirement(){return ac(this.payload.config)}getRawOutputFields(){return{[$s.name]:this.catalogOutput($s),[ec.name]:this.catalogOutput(ec)}}getConnectionsRequirements(){return[{provider:`leadmagic`,rateLimitRatio:1,rateLimitOperation:`leadmagic_company_funding`,allowManagedConnection:!0}]}},cc=ic,lc={pipeId:Xs,basePipe:W(Xs),label:`Funding history`,executionMode:`single`,categories:[`deprecated`],lifecycle:{deprecatedOn:`2026-06-13`,replacedBy:`company:funding:leadmagic@2`},description:`Information on funding rounds, acquisition, competitors, and investors.`,tags:[B.FINANCIAL_DATA],docPath:G(Xs),billableOperations:oc,inputFieldMode:`static`,outputFieldMode:`static`,allowedUserConnectionProviders:[`leadmagic`],managedProviders:[`leadmagic`],deprecatedProviders:[],defaultInputRequirement:ac(null),defaultPayload:{pipe_id:Xs,connector:null,run_if:null,config:{input_fields:{company_name:{alias:``},company_website_url:{alias:``}},output_fields:{funding_history:{enabled:!0,alias:``},funding_total_usd:{enabled:!0,alias:``},leadmagic_acquisition_history:{enabled:!1,alias:``},leadmagic_company_news_list:{enabled:!1,alias:``},leadmagic_competitor_list:{enabled:!1,alias:``}}}}},uc=_(`company_name`),dc=_(`company_social_url`),fc=_(`company_website_url`),pc=_(`cleaned_company_name`),mc=`company:identity@1`,hc=r.object({pipe_id:r.literal(mc),run_if:S(),connector:T(),config:r.object({input_fields:z(r.object({[uc.name]:E({fieldName:uc.name})})),output_fields:R(r.object({[dc.name]:k({fieldName:dc.name}),[pc.name]:k({fieldName:pc.name}),[fc.name]:k({fieldName:fc.name})}))}).optional()}),gc=e=>V(K(uc,e)),_c={"company-identity-v1-pipe0":{allowManagedConnection:!0,credits:{default:.3},mode:`always`,provider:`pipe0`}},vc=class extends U{pipeId=mc;payload;payloadSchema=hc;billableOperations=_c;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[`company-identity-v1-pipe0`]}getInputRequirement(){return gc(this.payload.config)}getRawOutputFields(){return{[dc.name]:this.catalogOutput(dc),[fc.name]:this.catalogOutput(fc),[pc.name]:this.catalogOutput(pc)}}getConnectionsRequirements(){return[{provider:`gemini`,rateLimitRatio:1,rateLimitOperation:`gemini_25_flash_preview`,allowManagedConnection:!0},{provider:`serper`,rateLimitRatio:2,rateLimitOperation:`serper_search`,allowManagedConnection:!0},{provider:`leadmagic`,rateLimitRatio:.2,rateLimitOperation:`leadmagic_company_search`,allowManagedConnection:!0},{provider:`perplexity`,rateLimitRatio:.2,rateLimitOperation:`perplexity_generic`,allowManagedConnection:!0},{provider:`pipe0`,rateLimitRatio:.02,rateLimitOperation:`pipe0_scraper`,allowManagedConnection:!0}]}},yc=hc,bc={pipeId:mc,inputFieldMode:`static`,outputFieldMode:`static`,basePipe:W(mc),label:`Find company identity`,executionMode:`mix`,categories:[`deprecated`],lifecycle:{deprecatedOn:`2026-06-13`,replacedBy:`company:identity@2`},description:`Find any company's website URL, LinkedIn profile URL, and cleaned name.`,tags:[B.WEBSITE,B.LINKEDIN],docPath:`/resources/pipe-catalog/company:identity/1`,billableOperations:_c,allowedUserConnectionProviders:[],managedProviders:[`pipe0`],deprecatedProviders:[],defaultInputRequirement:gc(null),defaultPayload:{pipe_id:mc,connector:null,run_if:null,config:{input_fields:{company_name:{alias:``}},output_fields:{cleaned_company_name:{alias:``,enabled:!0},company_social_url:{alias:``,enabled:!0},company_website_url:{alias:``,enabled:!0}}}}},xc=_(`company_name`),Sc=_(`company_profile_url`),Cc=_(`company_website_url`),wc=_(`cleaned_company_name`),Tc=`company:identity@2`,Ec=r.object({pipe_id:r.literal(Tc),run_if:S(),connector:T(),config:r.object({input_fields:z(r.object({[xc.name]:E({fieldName:xc.name})})),output_fields:R(r.object({[Sc.name]:k({fieldName:Sc.name}),[wc.name]:k({fieldName:wc.name}),[Cc.name]:k({fieldName:Cc.name})}))}).optional()}),Dc=e=>V(K(xc,e)),Oc={"company-identity-v2-pipe0":{allowManagedConnection:!0,credits:{default:.3},mode:`always`,provider:`pipe0`}},kc=class extends U{pipeId=Tc;payload;payloadSchema=Ec;billableOperations=Oc;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[`company-identity-v2-pipe0`]}getInputRequirement(){return Dc(this.payload.config)}getRawOutputFields(){return{[Sc.name]:this.catalogOutput(Sc),[Cc.name]:this.catalogOutput(Cc),[wc.name]:this.catalogOutput(wc)}}getConnectionsRequirements(){return[{provider:`gemini`,rateLimitRatio:1,rateLimitOperation:`gemini_25_flash_preview`,allowManagedConnection:!0},{provider:`serper`,rateLimitRatio:2,rateLimitOperation:`serper_search`,allowManagedConnection:!0},{provider:`leadmagic`,rateLimitRatio:.2,rateLimitOperation:`leadmagic_company_search`,allowManagedConnection:!0},{provider:`perplexity`,rateLimitRatio:.2,rateLimitOperation:`perplexity_generic`,allowManagedConnection:!0},{provider:`pipe0`,rateLimitRatio:.02,rateLimitOperation:`pipe0_scraper`,allowManagedConnection:!0}]}},Ac=Ec,jc={pipeId:Tc,inputFieldMode:`static`,outputFieldMode:`static`,basePipe:W(Tc),label:`Find company identity`,executionMode:`mix`,categories:[`deprecated`],lifecycle:{deprecatedOn:`2026-06-13`,replacedBy:`company:identity@3`},description:`Find any company's website URL, LinkedIn profile URL, and cleaned name.`,tags:[B.WEBSITE,B.LINKEDIN],docPath:G(Tc),billableOperations:Oc,allowedUserConnectionProviders:[],managedProviders:[`pipe0`],deprecatedProviders:[],defaultInputRequirement:Dc(null),defaultPayload:{pipe_id:Tc,connector:null,run_if:null,config:{input_fields:{company_name:{alias:``}},output_fields:{cleaned_company_name:{alias:``,enabled:!0},company_profile_url:{alias:``,enabled:!0},company_website_url:{alias:``,enabled:!0}}}}},Mc=_(`company_website_url`),Nc=_(`companyenrich_matches`),Pc=`company:lookalikes:companyenrich@1`,Fc=r.object({pipe_id:r.literal(Pc),run_if:S(),connector:w(),config:r.object({limit:ca({groupPath:`config.general`,max:50,min:1,path:`config.limit`,required:!0,sectionKey:`general`,info:`Define how many lookalikes you want to find.`,label:`Limit`}),input_fields:z(r.object({[Mc.name]:E({fieldName:Mc.name})})),output_fields:R(r.object({[Nc.name]:k({fieldName:Nc.name})}))}).optional()}),Ic=e=>V(K(Mc,e)),Lc={"company-lookalikes-companyenrich-v1-companyenrich":{allowManagedConnection:!0,credits:{default:.2},mode:`onSuccess`,note:`One billing event per result.`,provider:`companyenrich`}},Rc=class extends U{pipeId=Pc;payload;payloadSchema=Fc;billableOperations=Lc;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`companyenrich`]}estimateBillableOperations(){return[,,,,,].fill(`lookalikes-companyenrich`)}getInputRequirement(){return Ic(this.payload.config)}getRawOutputFields(){return{[Nc.name]:this.catalogOutput(Nc)}}getConnectionsRequirements(){return[{provider:`companyenrich`,rateLimitRatio:1,rateLimitOperation:`company_enrich_generic`,allowManagedConnection:!0}]}},zc=Fc,Bc={pipeId:Pc,inputFieldMode:`static`,outputFieldMode:`static`,basePipe:W(Pc),label:`Find company lookalikes`,executionMode:`single`,categories:[`deprecated`],lifecycle:{deprecatedOn:`2026-06-13`,replacedBy:`company:lookalikes:companyenrich@2`},description:`Find companies similar to the company you provide as input.`,tags:[B.COMPANY_PROFILES],docPath:G(Pc),billableOperations:Lc,allowedUserConnectionProviders:[`companyenrich`],managedProviders:[`companyenrich`],deprecatedProviders:[],defaultInputRequirement:Ic(null),defaultPayload:{pipe_id:Pc,connector:null,run_if:null,config:{limit:20,input_fields:{company_website_url:{alias:``}},output_fields:{companyenrich_matches:{alias:``,enabled:!0}}}}},Vc=_(`company_website_url`),Hc=_(`crustdata_companyenrich_match`),Uc=`company:match:crustdata@1`,Wc=r.object({pipe_id:r.literal(Uc),run_if:S(),connector:w(),config:r.object({input_fields:z(r.object({[Vc.name]:E({fieldName:Vc.name})})),output_fields:R(r.object({[Hc.name]:k({fieldName:Hc.name})}))}).optional()}),Gc=e=>V(K(Vc,e)),Kc={"company-match-crustdata-v1-crustdata":{allowManagedConnection:!0,credits:{default:2},mode:`onSuccess`,provider:`crustdata`}},qc=class extends U{pipeId=Uc;payload;payloadSchema=Wc;billableOperations=Kc;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`crustdata`]}estimateBillableOperations(){return[`company-match-crustdata-v1-crustdata`]}getInputRequirement(){return Gc(this.payload.config)}getRawOutputFields(){return{[Hc.name]:this.catalogOutput(Hc)}}getConnectionsRequirements(){return[{provider:`crustdata`,rateLimitRatio:1,rateLimitOperation:`crustdata_company_enrich`,allowManagedConnection:!0}]}},Jc=Wc,Yc={pipeId:Uc,inputFieldMode:`static`,outputFieldMode:`static`,basePipe:W(Uc),label:`Company match`,executionMode:`single`,categories:[`deprecated`],lifecycle:{deprecatedOn:`2026-06-13`,replacedBy:`company:match:crustdata@2`},description:`Company data like headcount distribution, LinkedIn URLs etc. via the Crustdata API.`,tags:[B.WEBSITE,B.LINKEDIN],docPath:G(Uc),billableOperations:Kc,allowedUserConnectionProviders:[`crustdata`],managedProviders:[`crustdata`],deprecatedProviders:[],defaultInputRequirement:Gc(null),defaultPayload:{pipe_id:Uc,connector:null,run_if:null,config:{input_fields:{company_website_url:{alias:``}},output_fields:{crustdata_companyenrich_match:{alias:``,enabled:!0}}}}},Xc=_(`company_website_url`),Zc=_(`company_name`),Qc=_(`company_profile_url`),$c=_(`logodev_describe_match`),el=_(`logo_url`),tl=`company:match:logodev@1`,nl=r.object({pipe_id:r.literal(tl),run_if:S(),connector:w(),config:r.object({input_fields:z(r.object({[Xc.name]:E({fieldName:Xc.name})})),output_fields:R(r.object({[Qc.name]:k({fieldName:Qc.name}),[el.name]:k({fieldName:el.name}),[Zc.name]:k({fieldName:Zc.name}),[$c.name]:k({fieldName:$c.name})}))}).optional()}),rl=e=>V(K(Xc,e)),il={"company-match-logodev-v1-logodev":{allowManagedConnection:!0,credits:{default:.1},mode:`onSuccess`,provider:`logodev`}},al=class extends U{pipeId=tl;payload;payloadSchema=nl;billableOperations=il;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`logodev`]}estimateBillableOperations(){return[`company-match-logodev-v1-logodev`]}getInputRequirement(){return rl(this.payload.config)}getRawOutputFields(){return{[Qc.name]:this.catalogOutput(Qc),[Zc.name]:this.catalogOutput(Zc),[el.name]:this.catalogOutput(el),[$c.name]:this.catalogOutput($c)}}getConnectionsRequirements(){return[{provider:`logodev`,rateLimitRatio:1,rateLimitOperation:`logodev_describe`,allowManagedConnection:!0}]}},ol=nl,sl={pipeId:tl,inputFieldMode:`static`,outputFieldMode:`static`,basePipe:W(tl),label:`Company match`,executionMode:`single`,categories:[`deprecated`],lifecycle:{deprecatedOn:`2026-06-13`,replacedBy:`company:match:logodev@2`},description:`Find brand data like logos, colors, and social links via the Logo.dev API.`,tags:[B.WEBSITE,B.LINKEDIN],docPath:G(tl),billableOperations:il,allowedUserConnectionProviders:[`logodev`],managedProviders:[`logodev`],deprecatedProviders:[],defaultInputRequirement:rl(null),defaultPayload:{pipe_id:tl,connector:null,run_if:null,config:{input_fields:{company_website_url:{alias:``}},output_fields:{company_profile_url:{alias:``,enabled:!0},logo_url:{alias:``,enabled:!0},logodev_describe_match:{alias:``,enabled:!0},company_name:{alias:``,enabled:!1}}}}},cl=`company:newssummary:website@1`,ll=_(`company_news_summary`),ul=_(`company_website_url`),dl=r.object({pipe_id:r.literal(cl),run_if:S(),connector:w(),config:r.object({input_fields:z(r.object({[ul.name]:E({fieldName:ul.name})})),output_fields:R(r.object({[ll.name]:k({fieldName:ll.name})}))}).optional()}),fl=e=>V(K(ul,e)),pl={"company-newssummary-website-v1-pipe0":{allowManagedConnection:!0,credits:{default:1},mode:`always`,provider:`pipe0`}},ml=class extends U{pipeId=cl;payloadSchema=dl;billableOperations=pl;payload;constructor(e){super(),this.payload=e}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[`company-newssummary-website-v1-pipe0`]}getInputRequirement(){return fl(this.payload.config)}getRawOutputFields(){return{[ll.name]:this.catalogOutput(ll)}}getConnectionsRequirements(){return[{provider:`perplexity`,rateLimitRatio:1,rateLimitOperation:`perplexity_generic`,allowManagedConnection:!0}]}},hl=dl,gl={pipeId:cl,basePipe:W(cl),inputFieldMode:`static`,outputFieldMode:`static`,label:`Company news`,executionMode:`single`,categories:[`deprecated`],lifecycle:{deprecatedOn:`2026-06-13`,replacedBy:`company:newssummary:domain@1`},description:`Find recent company news by performing a search and scrape.`,tags:[B.NEWS],docPath:G(cl),billableOperations:pl,allowedUserConnectionProviders:[],managedProviders:[`pipe0`],deprecatedProviders:[],defaultInputRequirement:fl(null),defaultPayload:{pipe_id:cl,run_if:null,connector:null,config:{input_fields:{company_website_url:{alias:``}},output_fields:{company_news_summary:{alias:``,enabled:!0}}}}},_l=_(`company_website_url`),vl=_(`company_social_url`),yl=_(`company_description`),bl=_(`company_industry`),xl=_(`company_region`),Sl=_(`headcount`),Cl=_(`estimated_revenue`),wl=_(`founded_year`),Tl=`company:overview@1`,El=r.object({pipe_id:r.literal(Tl),run_if:S(),connector:T(),config:r.object({input_fields:z(r.object({[_l.name]:E({fieldName:_l.name}),[vl.name]:E({fieldName:vl.name})})),output_fields:R(r.object({[yl.name]:k({fieldName:yl.name}),[bl.name]:k({fieldName:bl.name}),[xl.name]:k({fieldName:xl.name}),[Sl.name]:k({fieldName:Sl.name}),[Cl.name]:k({fieldName:Cl.name}),[wl.name]:k({fieldName:wl.name})}))}).optional()}),Dl=e=>H(K(_l,e),K(vl,e)),Ol={"company-overview-v1-pipe0":{provider:`pipe0`,allowManagedConnection:!0,credits:{default:1},mode:`always`}},kl=class extends U{pipeId=Tl;payloadSchema=El;billableOperations=Ol;payload;constructor(e){super(),this.payload=e}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[`company-overview-v1-pipe0`]}getInputRequirement(){return Dl(this.payload.config)}getRawOutputFields(){return{[yl.name]:this.catalogOutput(yl),[bl.name]:this.catalogOutput(bl),[xl.name]:this.catalogOutput(xl),[Sl.name]:this.catalogOutput(Sl),[Cl.name]:this.catalogOutput(Cl),[wl.name]:this.catalogOutput(wl)}}getConnectionsRequirements(){return[{provider:`perplexity`,rateLimitRatio:1,rateLimitOperation:`perplexity_generic`,allowManagedConnection:!0},{provider:`leadmagic`,rateLimitRatio:.2,rateLimitOperation:`leadmagic_email_lookup`,allowManagedConnection:!0},{provider:`gemini`,rateLimitOperation:`gemini_20_flash`,rateLimitRatio:.1,allowManagedConnection:!0}]}},Al=El,jl={pipeId:Tl,basePipe:W(Tl),inputFieldMode:`static`,outputFieldMode:`static`,label:`Company overview`,executionMode:`mix`,categories:[`deprecated`],lifecycle:{deprecatedOn:`2026-06-13`,replacedBy:`company:identity@2`},description:`Find high-level business and financial information like company description, estimated revenue, and headcount.`,docPath:`/resources/pipe-catalog/company:overview/1`,tags:[B.WEBSITE,B.LINKEDIN,B.FINANCIAL_DATA,B.DEPRECATED],allowedUserConnectionProviders:[],managedProviders:[`pipe0`],deprecatedProviders:[],billableOperations:Ol,defaultInputRequirement:Dl(null),defaultPayload:{pipe_id:Tl,run_if:null,connector:void 0,config:{input_fields:{company_social_url:{alias:``},company_website_url:{alias:``}},output_fields:{company_description:{alias:``,enabled:!0},company_industry:{alias:``,enabled:!0},company_region:{alias:``,enabled:!0},estimated_revenue:{alias:``,enabled:!0},founded_year:{alias:``,enabled:!0},headcount:{alias:``,enabled:!0}}}}},Ml=_(`company_website_url`),Nl=_(`company_profile_url`),Pl=_(`company_description`),Fl=_(`company_industry`),Il=_(`company_region`),Ll=_(`headcount`),Rl=_(`estimated_revenue`),zl=_(`founded_year`),Bl=_(`company_name`),Vl=`company:overview@2`,Hl=r.object({pipe_id:r.literal(Vl),run_if:S(),connector:T(),config:r.object({input_fields:z(r.object({[Ml.name]:E({fieldName:Ml.name}),[Nl.name]:E({fieldName:Nl.name})})),output_fields:R(r.object({[Pl.name]:k({fieldName:Pl.name}),[Fl.name]:k({fieldName:Fl.name}),[Il.name]:k({fieldName:Il.name}),[Ll.name]:k({fieldName:Ll.name}),[Rl.name]:k({fieldName:Rl.name}),[zl.name]:k({fieldName:zl.name}),[Bl.name]:k({fieldName:Bl.name})}))}).optional()}),Ul=e=>H(K(Ml,e),K(Nl,e)),Wl={"company-overview-v2-pipe0":{provider:`pipe0`,allowManagedConnection:!0,credits:{default:1},mode:`always`}},Gl=class extends U{pipeId=Vl;payloadSchema=Hl;billableOperations=Wl;payload;constructor(e){super(),this.payload=e}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[`company-overview-v2-pipe0`]}getInputRequirement(){return Ul(this.payload.config)}getRawOutputFields(){return{[Pl.name]:this.catalogOutput(Pl),[Fl.name]:this.catalogOutput(Fl),[Il.name]:this.catalogOutput(Il),[Ll.name]:this.catalogOutput(Ll),[Rl.name]:this.catalogOutput(Rl),[zl.name]:this.catalogOutput(zl),[Bl.name]:this.catalogOutput(Bl)}}getConnectionsRequirements(){return[{provider:`perplexity`,rateLimitRatio:1,rateLimitOperation:`perplexity_generic`,allowManagedConnection:!0},{provider:`leadmagic`,rateLimitRatio:.2,rateLimitOperation:`leadmagic_email_lookup`,allowManagedConnection:!0},{provider:`gemini`,rateLimitOperation:`gemini_20_flash`,rateLimitRatio:.1,allowManagedConnection:!0}]}},Kl=Hl,ql={pipeId:Vl,basePipe:W(Vl),inputFieldMode:`static`,outputFieldMode:`static`,label:`Company overview`,executionMode:`mix`,categories:[`deprecated`],lifecycle:{deprecatedOn:`2026-06-13`,replacedBy:`company:overview@3`},description:`Business description, industry, and financial information.`,docPath:G(Vl),tags:[B.WEBSITE,B.LINKEDIN,B.FINANCIAL_DATA],allowedUserConnectionProviders:[],managedProviders:[`pipe0`],deprecatedProviders:[],billableOperations:Wl,defaultInputRequirement:Ul(null),defaultPayload:{pipe_id:Vl,run_if:null,connector:void 0,config:{input_fields:{company_profile_url:{alias:``},company_website_url:{alias:``}},output_fields:{company_description:{alias:``,enabled:!0},company_industry:{alias:``,enabled:!0},company_region:{alias:``,enabled:!0},estimated_revenue:{alias:``,enabled:!0},founded_year:{alias:``,enabled:!0},headcount:{alias:``,enabled:!0},company_name:{alias:``,enabled:!1}}}}},Jl=_(`company_website_url`),Yl=_(`technology_list`),Xl=_(`spending_trend`),Zl=_(`technology_match_builtwith`),Ql=`company:techstack:builtwith@1`,$l=r.object({pipe_id:r.literal(Ql),connector:w(),run_if:S(),config:r.object({input_fields:z(r.object({[Jl.name]:E({fieldName:Jl.name})})),output_fields:R(r.object({[Yl.name]:k({fieldName:Yl.name}),[Zl.name]:k({fieldName:Zl.name}),[Xl.name]:k({fieldName:Xl.name})}))}).optional()}),eu=e=>V(K(Jl,e)),tu={"company-techstack-builtwith-v1-builtwith":{provider:`builtwith`,allowManagedConnection:!0,credits:{default:2},mode:`always`}},nu=class extends U{pipeId=Ql;payload;payloadSchema=$l;billableOperations=tu;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`builtwith`]}estimateBillableOperations(){return[`company-techstack-builtwith-v1-builtwith`]}getInputRequirement(){return eu(this.payload.config)}getRawOutputFields(){return{[Yl.name]:this.catalogOutput(Yl),[Zl.name]:this.catalogOutput(Zl),[Xl.name]:this.catalogOutput(Xl)}}getConnectionsRequirements(){return[{provider:`builtwith`,rateLimitRatio:1,rateLimitOperation:`builtwith_generic`,allowManagedConnection:!0}]}},ru=$l,iu={pipeId:Ql,basePipe:W(Ql),managedProviders:[`builtwith`],deprecatedProviders:[],allowedUserConnectionProviders:[`builtwith`],label:`Tech stack`,executionMode:`single`,categories:[`deprecated`],lifecycle:{deprecatedOn:`2026-06-13`,replacedBy:`company:techstack:builtwith@2`},description:`All technologies and frameworks powering a given website.`,tags:[B.WEBSITE],inputFieldMode:`static`,outputFieldMode:`static`,docPath:G(Ql),billableOperations:tu,defaultInputRequirement:eu(null),defaultPayload:{pipe_id:Ql,connector:null,run_if:null,config:{input_fields:{company_website_url:{alias:``}},output_fields:{technology_list:{alias:``,enabled:!0},technology_match_builtwith:{alias:``,enabled:!0},spending_trend:{alias:``,enabled:!0}}}}},au=`company:websiteurl:email@1`,ou=_(`company_website_url`),su=_(`email`),cu=r.object({pipe_id:r.literal(au),run_if:S(),connector:T(),config:r.object({input_fields:z(r.object({[su.name]:E({fieldName:su.name})})),output_fields:R(r.object({[ou.name]:k({fieldName:ou.name})}))}).optional()}),lu=e=>V(K(su,e)),uu={"company-websiteurl-email-v1-pipe0":{credits:{default:0},allowManagedConnection:!0,mode:`always`,provider:`pipe0`}},du=class extends U{pipeId=au;payload;payloadSchema=cu;billableOperations=uu;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[`company-websiteurl-email-v1-pipe0`]}getInputRequirement(){return lu(this.payload.config)}getRawOutputFields(){return{[ou.name]:this.catalogOutput(ou)}}getConnectionsRequirements(){return[{provider:`pipe0`,rateLimitRatio:1,rateLimitOperation:`pipe0_logic`,allowManagedConnection:!0}]}},fu=cu,pu={pipeId:au,basePipe:W(au),inputFieldMode:`static`,outputFieldMode:`static`,label:`Website from email`,executionMode:`single`,categories:[`deprecated`],lifecycle:{deprecatedOn:`2026-06-13`,replacedBy:`company:domain:workemail@1`},description:`Extract the company website URL from a work email address.`,tags:[B.EMAIL,B.WORK_EMAIL,B.WEBSITE],docPath:G(au),allowedUserConnectionProviders:[],managedProviders:[`pipe0`],deprecatedProviders:[],billableOperations:uu,defaultInputRequirement:lu(null),defaultPayload:{pipe_id:au,connector:null,run_if:null,config:{input_fields:{email:{alias:``}},output_fields:{company_website_url:{alias:``,enabled:!0}}}}},mu=`people:email:iswork@1`,hu=_(`is_work_email`),gu=_(`email`),_u=r.object({pipe_id:r.literal(mu),run_if:S(),connector:T(),config:r.object({input_fields:z(r.object({[gu.name]:E({fieldName:gu.name})})),output_fields:R(r.object({[hu.name]:k({fieldName:hu.name})}))}).optional()}),vu=e=>V(K(gu,e)),yu={"people-email-iswork-v1-pipe0":{provider:`pipe0`,allowManagedConnection:!0,credits:{default:0},mode:`always`}},bu=class extends U{pipeId=mu;payload;payloadSchema=_u;billableOperations=yu;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[`people-email-iswork-v1-pipe0`]}getInputRequirement(){return vu(this.payload.config)}getRawOutputFields(){return{[hu.name]:this.catalogOutput(hu)}}getConnectionsRequirements(){return[{provider:`pipe0`,rateLimitRatio:1,rateLimitOperation:`pipe0_logic`,allowManagedConnection:!0}]}},xu=_u,Su={pipeId:mu,label:`Work email checker`,executionMode:`single`,categories:[`deprecated`],lifecycle:{deprecatedOn:`2026-06-13`,replacedBy:`email:iswork@1`},description:`Check if a given email address is personal or professional.`,tags:[B.EMAIL,B.WORK_EMAIL],docPath:G(mu),billableOperations:yu,basePipe:W(mu),allowedUserConnectionProviders:[],inputFieldMode:`static`,outputFieldMode:`static`,managedProviders:[`pipe0`],deprecatedProviders:[],defaultInputRequirement:vu(null),defaultPayload:{pipe_id:mu,run_if:null,connector:null,config:{input_fields:{email:{alias:``}},output_fields:{is_work_email:{alias:``,enabled:!0}}}}},Cu=`people:email:validate:zerobounce@1`,wu=_(`work_email`),Tu=_(`is_email_valid`),Eu=r.object({pipe_id:r.literal(Cu),connector:w(),run_if:S(),config:r.object({input_fields:z(r.object({[wu.name]:E({fieldName:wu.name})})),output_fields:R(r.object({[Tu.name]:k({fieldName:Tu.name})}))}).optional()}),Du=e=>V(K(wu,e)),Ou={"people-email-validate-zerobounce-v1-zerobounce":{provider:`zerobounce`,allowManagedConnection:!0,credits:{default:.3},mode:`always`}},ku=class extends U{pipeId=Cu;payload;payloadSchema=Eu;billableOperations=Ou;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`zerobounce`]}estimateBillableOperations(){return[`people-email-validate-zerobounce-v1-zerobounce`]}getInputRequirement(){return Du(this.payload.config)}getRawOutputFields(){return{[Tu.name]:this.catalogOutput(Tu)}}getConnectionsRequirements(){return[{provider:`zerobounce`,rateLimitRatio:1,rateLimitOperation:`zerobounce_generic`,allowManagedConnection:!0}]}},Au=Eu,ju={pipeId:Cu,basePipe:W(Cu),label:`Validate email`,executionMode:`single`,categories:[`people_data`],lifecycle:{deprecatedOn:`2026-06-13`,replacedBy:`people:email:validate:zerobounce@2`},description:`Verify email address against various factors, including syntax, domain, and server existence, to ensure it is deliverable and active.`,tags:[B.EMAIL],docPath:`/resources/pipe-catalog/people:email:validate:zerobounce/1`,billableOperations:Ou,inputFieldMode:`static`,outputFieldMode:`static`,allowedUserConnectionProviders:[`zerobounce`],managedProviders:[`zerobounce`],deprecatedProviders:[],defaultInputRequirement:Du(null),defaultPayload:{pipe_id:Cu,connector:null,run_if:null,config:{input_fields:{work_email:{alias:``}},output_fields:{is_email_valid:{alias:``,enabled:!0}}}}},Mu=`people:email:validate:zerobounce@2`,Nu=_(`email`),Pu=_(`zerobounce_validation_status`),Fu=_(`zerobounce_validation_match`),Iu=r.object({pipe_id:r.literal(Mu),connector:w(),run_if:S(),config:r.object({input_fields:z(r.object({[Nu.name]:E({fieldName:Nu.name})})),output_fields:R(r.object({[Fu.name]:k({fieldName:Fu.name}),[Pu.name]:k({fieldName:Pu.name})}))}).optional()}),Lu=e=>V(K(Nu,e)),Ru={"people-email-validate-zerobounce-v2-zerobounce":{provider:`zerobounce`,allowManagedConnection:!0,credits:{default:.3},mode:`always`}},zu=class extends U{pipeId=Mu;payload;payloadSchema=Iu;billableOperations=Ru;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`zerobounce`]}estimateBillableOperations(){return[`people-email-validate-zerobounce-v2-zerobounce`]}getInputRequirement(){return Lu(this.payload.config)}getRawOutputFields(){return{[Pu.name]:this.catalogOutput(Pu),[Fu.name]:this.catalogOutput(Fu)}}getConnectionsRequirements(){return[{provider:`zerobounce`,rateLimitRatio:1,rateLimitOperation:`zerobounce_generic`,allowManagedConnection:!0}]}},Bu=Iu,Vu={pipeId:Mu,basePipe:W(Mu),label:`Validate email`,executionMode:`single`,categories:[`deprecated`],lifecycle:{deprecatedOn:`2026-06-13`,replacedBy:`email:validate:zerobounce@1`},description:`Verify email address against various factors, including syntax, domain, and server existence, to ensure it is deliverable and active.`,tags:[B.EMAIL],docPath:G(Mu),billableOperations:Ru,inputFieldMode:`static`,outputFieldMode:`static`,allowedUserConnectionProviders:[`zerobounce`],managedProviders:[`zerobounce`],deprecatedProviders:[],defaultInputRequirement:Lu(null),defaultPayload:{pipe_id:Mu,connector:null,run_if:null,config:{input_fields:{email:{alias:``}},output_fields:{zerobounce_validation_status:{alias:``,enabled:!0},zerobounce_validation_match:{alias:``,enabled:!0}}}}};function Hu(e){return(e.widgets||{}).display_value?.label}function Uu(e){console.dir(e,{depth:100})}function Wu(e){return typeof e==`object`&&e?JSON.stringify(e):e}function q(e){return e===0?1:e===1?.3:e===2?.2:.1}function Gu(e){if(typeof e!=`object`||!e||Array.isArray(e))return e;let t={};return Object.keys(e).sort().forEach(n=>{t[n]=Gu(e[n])}),t}const Ku={string:[`address_line_1`,`email`,`url`,`website_url`,`markdown`,`zip_code`,`date`,`datetime`,`phone`,`text`,`profile_url`],json:[`json_object`,`json_list`],number:[`int`,`decimal`],boolean:[],unknown:[]};function J(e,t){let n=Object.entries(t).filter(([t,n])=>n.provider===e);if(n.length!==1)throw Error(`Found ${n.length} billing operations for provider ${e}. This is not allowed. There must be exactly 1 billing operation per provider.`);let[r,i]=n[0];return{billableOperation:r,billableOperationDef:i}}const qu=`people:identity:email:waterfall@1`,Ju=_(`email`),Yu=_(`company_website_url`),Xu=_(`name`),Zu=_(`job_title`),Qu=_(`profile_url`),$u=_(`company_profile_url`),ed=_(`company_name`),td=[`findymail`,`hunter`,`crustdata`],nd=[{provider:`findymail`},{provider:`hunter`},{provider:`crustdata`}],rd=r.object({pipe_id:r.literal(qu),connector:w(),run_if:S(),config:r.object({providers:D({availableProviders:td,defaultProviders:nd,sectionKey:`general`}),input_fields:z(r.object({[Ju.name]:E({fieldName:Ju.name})})),output_fields:R(r.object({[Xu.name]:k({fieldName:Xu.name}),[Qu.name]:k({fieldName:Qu.name}),[Zu.name]:k({fieldName:Zu.name}),[Yu.name]:k({fieldName:Yu.name}),[ed.name]:k({fieldName:ed.name}),[$u.name]:k({fieldName:$u.name})}))}).optional()}),id=e=>V(K(Ju,e)),ad={"people-identity-email-waterfall-v1-hunter":{provider:`hunter`,allowManagedConnection:!0,credits:{default:2},mode:`onSuccess`},"people-identity-email-waterfall-v1-findymail":{provider:`findymail`,allowManagedConnection:!0,credits:{default:2},mode:`onSuccess`},"people-identity-email-waterfall-v1-crustdata":{provider:`crustdata`,allowManagedConnection:!0,credits:{default:5},mode:`onSuccess`}},od=class extends U{pipeId=qu;payload;payloadSchema=rd;billableOperations=ad;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return this.payload.config?.providers.map(e=>e.provider)||[]}estimateBillableOperations(){return this.getProviderNames().map(e=>J(e,this.billableOperations).billableOperation)}getInputRequirement(){return id(this.payload.config)}getRawOutputFields(){return{[Xu.name]:this.catalogOutput(Xu,{isPrimaryOutput:!0}),[Qu.name]:this.catalogOutput(Qu,{isPrimaryOutput:!0}),[Zu.name]:this.catalogOutput(Zu,{isPrimaryOutput:!0}),[ed.name]:this.catalogOutput(ed,{isPrimaryOutput:!0}),[$u.name]:this.catalogOutput($u,{isPrimaryOutput:!0}),[Yu.name]:this.catalogOutput(Yu,{isPrimaryOutput:!0})}}getConnectionsRequirements(){let e={hunter:`prospeo_email_lookup`,findymail:`findymail_email_b2b_lookup`,crustdata:`crustdata_realtime_person_enrich`};return(this.payload.config?.providers||[]).map((t,n)=>({provider:t.provider,rateLimitRatio:q(n),rateLimitOperation:e[t.provider],allowManagedConnection:!0}))}},sd=rd,cd={pipeId:qu,basePipe:W(qu),label:`Person identity from email`,executionMode:`waterfall`,categories:[`deprecated`],lifecycle:{deprecatedOn:`2026-06-13`,replacedBy:`person:identity:email:waterfall@1`},description:`Find identity of a person from their email address.`,tags:[B.EMAIL,B.PEOPLE_PROFILES],docPath:G(qu),managedProviders:td,deprecatedProviders:[],allowedUserConnectionProviders:td,inputFieldMode:`static`,outputFieldMode:`static`,billableOperations:ad,defaultInputRequirement:id(null),defaultPayload:{pipe_id:qu,connector:null,run_if:null,config:{providers:nd,input_fields:{email:{alias:``}},output_fields:{name:{alias:``,enabled:!0},profile_url:{alias:``,enabled:!0},job_title:{alias:``,enabled:!0},company_name:{alias:``,enabled:!0},company_profile_url:{alias:``,enabled:!0},company_website_url:{alias:``,enabled:!0}}}}},ld=`people:match:role:waterfall@1`,ud=_(`company_website_url`),dd=_(`role_finder_match`),fd=[`leadmagic`],pd=[{provider:`leadmagic`}],md=r.object({pipe_id:r.literal(ld),run_if:S(),connector:w(),config:r.object({providers:D({sectionKey:`general`,defaultProviders:pd,availableProviders:fd}),roles:Xi({sectionKey:`general`,groupPath:`config.general`,label:`Roles`,path:`config.roles`,info:`Company roles to include`,maxItems:3,minItems:1}),input_fields:z(r.object({[ud.name]:E({fieldName:ud.name})})),output_fields:R(r.object({[dd.name]:k({fieldName:dd.name})}))})}),hd=e=>H(K(ud,e)),gd={"people-match-role-waterfall-v1-leadmagic":{provider:`leadmagic`,allowManagedConnection:!0,credits:{default:1},mode:`onSuccess`}},_d=class extends U{pipeId=ld;payload;payloadSchema=md;billableOperations=gd;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return this.payload.config?.providers.map(e=>e.provider)||[]}estimateBillableOperations(){return this.getProviderNames().map(e=>J(e,this.billableOperations).billableOperation)}getInputRequirement(){return hd(this.payload.config)}getRawOutputFields(){return{[dd.name]:this.catalogOutput(dd,{isPrimaryOutput:!0})}}getConnectionsRequirements(){let e={leadmagic:`leadmagic_role_finder`};return(this.payload.config?.providers||[]).map((t,n)=>({provider:t.provider,rateLimitRatio:q(n),rateLimitOperation:e[t.provider],allowManagedConnection:!0}))}},vd=md,yd={pipeId:ld,basePipe:W(ld),managedProviders:fd,deprecatedProviders:[],allowedUserConnectionProviders:fd,label:`Role finder`,executionMode:`waterfall`,categories:[`deprecated`],lifecycle:{deprecatedOn:`2026-06-13`,replacedBy:`person:match:role:waterfall@1`},description:`Find role matches for a given companies like "CEO" or "CFO".`,tags:[B.PEOPLE_PROFILES],docPath:G(ld),billableOperations:gd,inputFieldMode:`static`,outputFieldMode:`static`,defaultInputRequirement:hd(null),defaultPayload:{pipe_id:ld,run_if:null,connector:null,config:{roles:[],providers:pd,input_fields:{company_website_url:{alias:``}},output_fields:{role_finder_match:{alias:``,enabled:!0}}}}},bd=`people:mobilenumber:professionalprofile:waterfall@1`,xd=_(`professional_profile_url`),Sd=_(`mobile_number`),Cd=[`leadmagic`,`prospeo`],wd=[{provider:`leadmagic`},{provider:`prospeo`}],Td=r.object({pipe_id:r.literal(bd),run_if:S(),connector:w(),config:r.object({providers:D({sectionKey:`general`,defaultProviders:wd,availableProviders:Cd}),input_fields:z(r.object({[xd.name]:E({fieldName:xd.name})})),output_fields:R(r.object({[Sd.name]:k({fieldName:Sd.name})}))}).optional()}),Ed=e=>V(K(xd,e)),Dd={"people-mobilenumber-professionalprofile-waterfall-v1-leadmagic":{provider:`leadmagic`,allowManagedConnection:!0,credits:{default:2},mode:`onSuccess`},"people-mobilenumber-professionalprofile-waterfall-v1-prospeo":{provider:`prospeo`,allowManagedConnection:!0,credits:{default:5},mode:`onSuccess`}},Od=class extends U{pipeId=bd;payload;payloadSchema=Td;billableOperations=Dd;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return this.payload.config?.providers.map(e=>e.provider)||[]}estimateBillableOperations(){return this.getProviderNames().map(e=>J(e,this.billableOperations).billableOperation)}getInputRequirement(){return Ed(this.payload.config)}getRawOutputFields(){return{[Sd.name]:this.catalogOutput(Sd)}}getConnectionsRequirements(){let e={leadmagic:`leadmagic_email_lookup`,prospeo:`prospeo_phone_number_lookup`};return(this.payload.config?.providers||[]).map((t,n)=>({provider:t.provider,rateLimitRatio:q(n),rateLimitOperation:e[t.provider],allowManagedConnection:!0}))}},kd=Td,Ad={pipeId:bd,basePipe:W(bd),label:`Mobile number from LinkedIn profile`,executionMode:`waterfall`,categories:[`deprecated`],lifecycle:{deprecatedOn:`2026-06-13`,replacedBy:`people:phone:profile:waterfall@1`},description:`Find a mobile phone number for any prospect using multiple data providers in a waterfall motion.`,docPath:`/resources/pipe-catalog/people:mobilenumber:professionalprofile:waterfall/1`,tags:[B.PHONE,B.WATERFALL],billableOperations:Dd,defaultInputRequirement:Ed(null),inputFieldMode:`static`,outputFieldMode:`static`,managedProviders:Cd,deprecatedProviders:[],allowedUserConnectionProviders:Cd,defaultPayload:{pipe_id:bd,connector:null,run_if:null,config:{providers:wd,input_fields:{professional_profile_url:{alias:``}},output_fields:{mobile_number:{alias:``,enabled:!0}}}}},jd=`people:mobilenumber:workemail:waterfall@1`,Md=_(`work_email`),Nd=_(`mobile_number`),Pd=[`leadmagic`],Fd=[{provider:`leadmagic`}],Id=r.object({pipe_id:r.literal(jd),run_if:S(),connector:w(),config:r.object({providers:D({sectionKey:`general`,availableProviders:Pd,defaultProviders:Fd}),input_fields:z(r.object({[Md.name]:E({fieldName:Md.name})})),output_fields:R(r.object({[Nd.name]:k({fieldName:Nd.name})}))}).optional()}),Ld=e=>V(K(Md,e)),Rd={"people-mobilenumber-workemail-waterfall-v1-leadmagic":{provider:`leadmagic`,allowManagedConnection:!0,credits:{default:2},mode:`onSuccess`}},zd=class extends U{pipeId=jd;payload;payloadSchema=Id;billableOperations=Rd;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return this.payload.config?.providers?.map(e=>e.provider)||[]}estimateBillableOperations(){return this.getProviderNames().map(e=>J(e,this.billableOperations).billableOperation)}getInputRequirement(){return Ld(this.payload.config)}getRawOutputFields(){return{[Nd.name]:this.catalogOutput(Nd)}}getConnectionsRequirements(){let e={leadmagic:`leadmagic_email_lookup`};return(this.payload.config?.providers||[]).map((t,n)=>({provider:t.provider,rateLimitRatio:q(n),rateLimitOperation:e[t.provider],allowManagedConnection:!0}))}},Bd=Id,Vd={pipeId:jd,basePipe:W(jd),label:`Mobile number from email`,executionMode:`waterfall`,categories:[`deprecated`],lifecycle:{deprecatedOn:`2026-06-13`,replacedBy:`people:phone:workemail:waterfall@1`},description:`Find a mobile phone number for a prospect.`,tags:[B.PHONE,B.WATERFALL],docPath:`/resources/pipe-catalog/people:mobilenumber:workemail:waterfall/1`,billableOperations:Rd,defaultInputRequirement:Ld(null),inputFieldMode:`static`,outputFieldMode:`static`,allowedUserConnectionProviders:Pd,managedProviders:Pd,deprecatedProviders:[],defaultPayload:{pipe_id:jd,connector:null,run_if:null,config:{providers:Fd,input_fields:{work_email:{alias:``}},output_fields:{mobile_number:{alias:``,enabled:!0}}}}},Hd=`people:name:split@1`,Ud=_(`name`),Wd=_(`first_name`),Gd=_(`last_name`),Kd=r.object({pipe_id:r.literal(Hd),connector:T(),run_if:S(),config:r.object({input_fields:z(r.object({[Ud.name]:E({fieldName:Ud.name})})),output_fields:R(r.object({[Wd.name]:k({fieldName:Wd.name}),[Gd.name]:k({fieldName:Gd.name})}))}).optional()}),qd=e=>V(K(Ud,e)),Jd={"people-name-split-v1-pipe0":{provider:`pipe0`,allowManagedConnection:!0,credits:{default:0},mode:`always`}},Yd=class extends U{pipeId=Hd;payload;payloadSchema=Kd;billableOperations=Jd;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[`people-name-split-v1-pipe0`]}getInputRequirement(){return qd(this.payload.config)}getRawOutputFields(){return{[Wd.name]:this.catalogOutput(Wd),[Gd.name]:this.catalogOutput(Gd)}}getConnectionsRequirements(){return[{provider:`pipe0`,rateLimitRatio:1,rateLimitOperation:`pipe0_logic`,allowManagedConnection:!0}]}},Xd=Kd,Zd={pipeId:Hd,basePipe:W(Hd),label:`Split name`,executionMode:`single`,categories:[`deprecated`],lifecycle:{deprecatedOn:`2026-06-13`,replacedBy:`person:name:split@1`},description:`Split a full name into first and last name.`,tags:[B.NAMES],docPath:G(Hd),billableOperations:Jd,inputFieldMode:`static`,outputFieldMode:`static`,defaultInputRequirement:qd(null),allowedUserConnectionProviders:[],managedProviders:[`pipe0`],deprecatedProviders:[],defaultPayload:{pipe_id:Hd,run_if:null,connector:void 0,config:{input_fields:{name:{alias:``}},output_fields:{first_name:{alias:``,enabled:!0},last_name:{alias:``,enabled:!0}}}}},Qd=`people:personalemail:profile:waterfall@1`,$d=_(`profile_url`),ef=_(`personal_email`),tf=_(`alternate_personal_emails`),nf=[`clado`,`leadmagic`,`mixrank`],rf=[{provider:`leadmagic`},{provider:`mixrank`}],af=r.object({pipe_id:r.literal(Qd),run_if:S(),connector:w(),config:r.object({providers:D({sectionKey:`general`,availableProviders:nf,defaultProviders:rf}),input_fields:z(r.object({[$d.name]:E({fieldName:$d.name})})),output_fields:R(r.object({[ef.name]:k({fieldName:ef.name}),[tf.name]:k({fieldName:tf.name})}))}).optional()}),of=e=>V(K($d,e)),sf={"people-personalemail-profile-waterfall-v1-clado":{provider:`clado`,allowManagedConnection:!0,credits:{default:2},mode:`always`},"people-personalemail-profile-waterfall-v1-leadmagic":{provider:`leadmagic`,allowManagedConnection:!0,credits:{default:1},mode:`onSuccess`},"people-personalemail-profile-waterfall-v1-mixrank":{provider:`mixrank`,allowManagedConnection:!0,credits:{default:1},mode:`onSuccess`}},cf=class extends U{pipeId=Qd;payload;payloadSchema=af;billableOperations=sf;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return this.payload.config?.providers.map(e=>e.provider)||[]}estimateBillableOperations(){return this.getProviderNames().map(e=>J(e,this.billableOperations).billableOperation)}getInputRequirement(){return of(this.payload.config)}getRawOutputFields(){return{[ef.name]:this.catalogOutput(ef,{isPrimaryOutput:!0}),[tf.name]:this.catalogOutput(tf)}}getConnectionsRequirements(){let e={leadmagic:`leadmagic_personal_email_finder`,clado:`clado_contact_information`,mixrank:`mixrank-person-match`};return(this.payload.config?.providers||[]).map((t,n)=>({provider:t.provider,rateLimitRatio:q(n),rateLimitOperation:e[t.provider],allowManagedConnection:!0}))}},lf=af,uf={pipeId:Qd,basePipe:W(Qd),allowedUserConnectionProviders:nf,managedProviders:nf,deprecatedProviders:[`clado`],label:`Find personal email`,executionMode:`waterfall`,categories:[`deprecated`],lifecycle:{deprecatedOn:`2026-06-13`,replacedBy:`person:personalemail:profileurl:waterfall@1`},description:`Find the personal email address of a prospect by using a professional profile URL as input.`,tags:[B.EMAIL,B.PERSONAL_EMAIL],docPath:G(Qd),billableOperations:sf,defaultInputRequirement:of(null),inputFieldMode:`static`,outputFieldMode:`static`,defaultPayload:{pipe_id:Qd,connector:null,run_if:null,config:{providers:rf,input_fields:{profile_url:{alias:``}},output_fields:{personal_email:{alias:``,enabled:!0},alternate_personal_emails:{alias:``,enabled:!0}}}}},df=`people:phone:profile:waterfall@1`,ff=_(`profile_url`),pf=_(`mobile`),mf=[`leadmagic`,`prospeo`,`amplemarket`,`findymail`,`clado`],hf=[{provider:`leadmagic`},{provider:`prospeo`},{provider:`amplemarket`},{provider:`findymail`}],gf=r.object({pipe_id:r.literal(df),run_if:S(),connector:w(),config:r.object({providers:D({sectionKey:`general`,defaultProviders:hf,availableProviders:mf}),input_fields:z(r.object({[ff.name]:E({fieldName:ff.name})})),output_fields:R(r.object({[pf.name]:k({fieldName:pf.name})}))}).optional()}),_f=e=>V(K(ff,e)),vf={"people-phone-profile-waterfall-v1-leadmagic":{provider:`leadmagic`,allowManagedConnection:!0,credits:{default:2},mode:`onSuccess`},"people-phone-profile-waterfall-v1-clado":{provider:`clado`,allowManagedConnection:!0,credits:{default:5},mode:`onSuccess`},"people-phone-profile-waterfall-v1-prospeo":{provider:`prospeo`,allowManagedConnection:!0,credits:{default:5},mode:`onSuccess`},"people-phone-profile-waterfall-v1-findymail":{provider:`findymail`,allowManagedConnection:!0,credits:{default:6},mode:`onSuccess`},"people-phone-profile-waterfall-v1-amplemarket":{provider:`amplemarket`,allowManagedConnection:!0,credits:{default:4},mode:`onSuccess`}},yf=class extends U{pipeId=df;payload;payloadSchema=gf;billableOperations=vf;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return this.payload.config?.providers.map(e=>e.provider)||[]}estimateBillableOperations(){return this.getProviderNames().map(e=>J(e,this.billableOperations).billableOperation)}getInputRequirement(){return _f(this.payload.config)}getRawOutputFields(){return{[pf.name]:this.catalogOutput(pf,{isPrimaryOutput:!0})}}getConnectionsRequirements(){let e={leadmagic:`leadmagic_email_lookup`,prospeo:`prospeo_phone_number_lookup`,findymail:`findymail_phone_lookup`,clado:`clado_contact_information`,amplemarket:`amplemarket-person-reveal`};return(this.payload.config?.providers||[]).map((t,n)=>({provider:t.provider,rateLimitRatio:q(n),rateLimitOperation:e[t.provider],allowManagedConnection:!0}))}},bf=gf,xf={pipeId:df,basePipe:W(df),label:`Mobile number from LinkedIn profile`,executionMode:`waterfall`,categories:[`deprecated`],lifecycle:{deprecatedOn:`2026-06-13`,replacedBy:`person:mobile:profileurl:waterfall@1`},description:`Find a mobile phone number for any prospect using multiple data providers in a waterfall motion.`,docPath:G(df),tags:[B.PHONE,B.WATERFALL],billableOperations:vf,defaultInputRequirement:_f(null),inputFieldMode:`static`,outputFieldMode:`static`,managedProviders:mf,allowedUserConnectionProviders:mf,deprecatedProviders:[`clado`],defaultPayload:{pipe_id:df,connector:null,run_if:null,config:{providers:hf,input_fields:{profile_url:{alias:``}},output_fields:{mobile:{alias:``,enabled:!0}}}}},Sf=`people:phone:workemail:waterfall@1`,Cf=_(`work_email`),wf=_(`mobile`),Tf=[`leadmagic`,`amplemarket`],Ef=[{provider:`leadmagic`},{provider:`amplemarket`}],Df=r.object({pipe_id:r.literal(Sf),run_if:S(),connector:w(),config:r.object({providers:D({sectionKey:`general`,availableProviders:Tf,defaultProviders:Ef}),input_fields:z(r.object({[Cf.name]:E({fieldName:Cf.name})})),output_fields:R(r.object({[wf.name]:k({fieldName:wf.name})}))}).optional()}),Of=e=>V(K(Cf,e)),kf={"people-phone-workemail-waterfall-v1-leadmagic":{provider:`leadmagic`,allowManagedConnection:!0,credits:{default:2},mode:`onSuccess`},"people-phone-workemail-waterfall-v1-amplemarket":{provider:`amplemarket`,allowManagedConnection:!0,credits:{default:4},mode:`onSuccess`}},Af=class extends U{pipeId=Sf;payload;payloadSchema=Df;billableOperations=kf;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return this.payload.config?.providers.map(e=>e.provider)||[]}estimateBillableOperations(){return this.getProviderNames().map(e=>J(e,this.billableOperations).billableOperation)}getInputRequirement(){return Of(this.payload.config)}getRawOutputFields(){return{[wf.name]:this.catalogOutput(wf,{isPrimaryOutput:!0})}}getConnectionsRequirements(){let e={leadmagic:`leadmagic_email_lookup`,amplemarket:`amplemarket-person-reveal`};return(this.payload.config?.providers||[]).map((t,n)=>({provider:t.provider,rateLimitRatio:q(n),rateLimitOperation:e[t.provider],allowManagedConnection:!0}))}},jf=Df,Mf={pipeId:Sf,basePipe:W(Sf),label:`Mobile number from email`,executionMode:`waterfall`,categories:[`deprecated`],lifecycle:{deprecatedOn:`2026-06-13`,replacedBy:`person:mobile:workemail:waterfall@1`},description:`Find a mobile phone number for a prospect.`,tags:[B.PHONE,B.WATERFALL],docPath:G(Sf),billableOperations:kf,defaultInputRequirement:Of(null),inputFieldMode:`static`,outputFieldMode:`static`,allowedUserConnectionProviders:Tf,managedProviders:Tf,deprecatedProviders:[],defaultPayload:{pipe_id:Sf,connector:null,run_if:null,config:{providers:Ef,input_fields:{work_email:{alias:``}},output_fields:{mobile:{alias:``,enabled:!0}}}}},Nf=`people:professionalprofile:waterfall@1`,Pf=_(`professional_profile`),Ff=_(`professional_profile_url`),If=[`prospeo`,`icypeas`],Lf=[{provider:`prospeo`},{provider:`icypeas`}],Rf=r.object({pipe_id:r.literal(Nf),run_if:S(),connector:w(),config:r.object({providers:D({sectionKey:`general`,availableProviders:If,defaultProviders:Lf}),input_fields:z(r.object({[Ff.name]:E({fieldName:Ff.name})})),output_fields:R(r.object({[Pf.name]:k({fieldName:Pf.name})}))}).optional()}),zf=e=>V(K(Ff,e)),Bf={"people-professionalprofile-waterfall-v1-icypeas":{provider:`icypeas`,credits:{default:1},mode:`onSuccess`,allowManagedConnection:!0},"people-professionalprofile-waterfall-v1-prospeo":{provider:`prospeo`,credits:{default:1},mode:`onSuccess`,allowManagedConnection:!0}},Vf=class extends U{pipeId=Nf;payload;payloadSchema=Rf;billableOperations=Bf;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return this.payload.config?.providers.map(e=>e.provider)||[]}estimateBillableOperations(){return this.getProviderNames().map(e=>J(e,this.billableOperations).billableOperation)}getInputRequirement(){return zf(this.payload.config)}getRawOutputFields(){return{[Pf.name]:this.catalogOutput(Pf)}}getConnectionsRequirements(){let e={icypeas:`icypeas_scrape_profile`,prospeo:`prospeo_social_profile_lookup`};return(this.payload.config?.providers||[]).map((t,n)=>({provider:t.provider,rateLimitRatio:q(n),rateLimitOperation:e[t.provider],allowManagedConnection:!0}))}},Hf=Rf,Uf={pipeId:Nf,basePipe:W(Nf),label:`Full LinkedIn profile`,executionMode:`waterfall`,categories:[`deprecated`],lifecycle:{deprecatedOn:`2026-06-13`,replacedBy:`people:profile:waterfall@1`},description:`Find a JSON representation of a LinkedIn profile.`,docPath:`/resources/pipe-catalog/people:professionalprofile:waterfall/1`,tags:[B.LINKEDIN,B.WATERFALL],managedProviders:If,deprecatedProviders:[],allowedUserConnectionProviders:If,inputFieldMode:`static`,outputFieldMode:`static`,billableOperations:Bf,defaultInputRequirement:zf(null),defaultPayload:{pipe_id:Nf,run_if:null,connector:null,config:{providers:Lf,input_fields:{professional_profile_url:{alias:``}},output_fields:{professional_profile:{alias:``,enabled:!0}}}}},Wf=`people:professionalprofileurl:email:waterfall@1`,Gf=_(`email`),Kf=_(`work_email`),qf=_(`professional_profile_url`),Jf=[`leadmagic`],Yf=[{provider:`leadmagic`}],Xf=r.object({pipe_id:r.literal(Wf),run_if:S(),connector:w(),config:r.object({providers:D({sectionKey:`general`,defaultProviders:Yf,availableProviders:Jf}),input_fields:z(r.object({[Gf.name]:E({fieldName:Gf.name}),[Kf.name]:E({fieldName:Kf.name})})),output_fields:R(r.object({[qf.name]:k({fieldName:qf.name})}))}).optional()}),Zf=e=>H(K(Gf,e),K(Kf,e)),Qf={"people-professionalprofileurl-email-waterfall-v1-leadmagic":{provider:`leadmagic`,allowManagedConnection:!0,credits:{default:3.5},mode:`onSuccess`}},$f=class extends U{pipeId=Wf;payload;payloadSchema=Xf;billableOperations=Qf;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return this.payload.config?.providers.map(e=>e.provider)||[]}estimateBillableOperations(){return this.getProviderNames().map(e=>J(e,this.billableOperations).billableOperation)}getInputRequirement(){return Zf(this.payload.config)}getRawOutputFields(){return{[qf.name]:this.catalogOutput(qf)}}getConnectionsRequirements(){let e={leadmagic:`leadmagic_email_to_b2b_profile`};return(this.payload.config?.providers||[]).map((t,n)=>({provider:t.provider,rateLimitRatio:q(n),rateLimitOperation:e[t.provider],allowManagedConnection:!0}))}},ep=Xf,tp={pipeId:Wf,basePipe:W(Wf),managedProviders:Jf,deprecatedProviders:[],allowedUserConnectionProviders:Jf,label:`LinkedIn URL from email`,executionMode:`waterfall`,categories:[`deprecated`],lifecycle:{deprecatedOn:`2026-06-13`,replacedBy:`people:profileurl:email:waterfall@1`},description:`Find the URL for a prospect's LinkedIn profile from their personal or professional email address.`,tags:[B.LINKEDIN],docPath:`/resources/pipe-catalog/people:professionalprofileurl:email:waterfall/1`,billableOperations:Qf,inputFieldMode:`static`,outputFieldMode:`static`,defaultInputRequirement:Zf(null),defaultPayload:{pipe_id:Wf,run_if:null,connector:null,config:{providers:Yf,input_fields:{email:{alias:``},work_email:{alias:``}},output_fields:{professional_profile_url:{alias:``,enabled:!0}}}}},np=`people:professionalprofileurl:name@1`,rp=_(`name`),ip=_(`company_name`),ap=_(`location_hint`),op=_(`professional_profile_url`),sp=r.object({pipe_id:r.literal(np),connector:T(),run_if:S(),config:r.object({input_fields:z(r.object({[rp.name]:E({fieldName:rp.name}),[ip.name]:E({fieldName:ip.name}),[ap.name]:E({fieldName:ap.name})})),output_fields:R(r.object({[op.name]:k({fieldName:op.name})}))}).optional()}),cp=e=>Ea(V(K(rp,e)),V(K(ip,e)),Da(K(ap,e))),lp={"people-professionalprofileurl-name-v1-pipe0":{provider:`pipe0`,allowManagedConnection:!0,credits:{default:.6},mode:`always`}},up=class extends U{pipeId=np;payload;payloadSchema=sp;billableOperations=lp;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[`people-professionalprofileurl-name-v1-pipe0`]}getInputRequirement(){return cp(this.payload.config)}getRawOutputFields(){return{[op.name]:this.catalogOutput(op)}}getConnectionsRequirements(){return[{provider:`serper`,rateLimitRatio:1,rateLimitOperation:`serper_search`,allowManagedConnection:!0}]}},dp=sp,fp={pipeId:np,basePipe:W(np),label:`LinkedIn URL from name`,executionMode:`single`,categories:[`deprecated`],lifecycle:{deprecatedOn:`2026-06-13`,replacedBy:`person:profileurl:name@1`},allowedUserConnectionProviders:[],managedProviders:[`pipe0`],deprecatedProviders:[],description:`Find the LinkedIn profile URL by using the prospect's name as input.`,docPath:`/resources/pipe-catalog/people:professionalprofileurl:name/1`,tags:[B.LINKEDIN],billableOperations:lp,defaultInputRequirement:cp(null),inputFieldMode:`static`,outputFieldMode:`static`,defaultPayload:{pipe_id:np,connector:void 0,run_if:null,config:{input_fields:{company_name:{alias:``},location_hint:{alias:``},name:{alias:``}},output_fields:{professional_profile_url:{alias:``,enabled:!0}}}}},pp=`people:profile:waterfall@1`,mp=_(`profile`),hp=_(`profile_url`),gp=[`prospeo`,`icypeas`,`amplemarket`,`clado`],_p=[{provider:`amplemarket`},{provider:`prospeo`},{provider:`icypeas`}],vp=r.object({pipe_id:r.literal(pp),run_if:S(),connector:w(),config:r.object({providers:D({sectionKey:`general`,availableProviders:gp,defaultProviders:_p}),input_fields:z(r.object({[hp.name]:E({fieldName:hp.name})})),output_fields:R(r.object({[mp.name]:k({fieldName:mp.name})}))}).optional()}),yp=e=>V(K(hp,e)),bp={"people-profile-waterfall-v1-icypeas":{provider:`icypeas`,credits:{default:1},mode:`onSuccess`,allowManagedConnection:!0},"people-profile-waterfall-v1-prospeo":{provider:`prospeo`,credits:{default:1},mode:`onSuccess`,allowManagedConnection:!0},"people-profile-waterfall-v1-clado":{provider:`clado`,credits:{default:1},mode:`onSuccess`,allowManagedConnection:!0},"people-profile-waterfall-v1-amplemarket":{provider:`amplemarket`,credits:{default:1},mode:`onSuccess`,allowManagedConnection:!0}},xp=class extends U{pipeId=pp;payload;payloadSchema=vp;billableOperations=bp;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return this.payload.config?.providers.map(e=>e.provider)||[]}estimateBillableOperations(){return this.getProviderNames().map(e=>J(e,this.billableOperations).billableOperation)}getInputRequirement(){return yp(this.payload.config)}getRawOutputFields(){return{[mp.name]:this.catalogOutput(mp,{isPrimaryOutput:!0})}}getConnectionsRequirements(){let e={icypeas:`icypeas_scrape_profile`,prospeo:`prospeo_social_profile_lookup`,clado:`clado_social_profile_lookup`,amplemarket:`amplemarket-person-reveal`};return(this.payload.config?.providers||[]).map((t,n)=>({provider:t.provider,rateLimitRatio:q(n),rateLimitOperation:e[t.provider],allowManagedConnection:!0}))}},Sp=vp,Cp={pipeId:pp,basePipe:W(pp),label:`Full LinkedIn profile`,executionMode:`waterfall`,categories:[`deprecated`],lifecycle:{deprecatedOn:`2026-06-13`,replacedBy:`person:profile:waterfall@1`},description:`Find a JSON representation of a LinkedIn profile.`,docPath:G(pp),tags:[B.LINKEDIN,B.WATERFALL],managedProviders:gp,deprecatedProviders:[`clado`],allowedUserConnectionProviders:gp,inputFieldMode:`static`,outputFieldMode:`static`,billableOperations:bp,defaultInputRequirement:yp(null),defaultPayload:{pipe_id:pp,run_if:null,connector:null,config:{providers:_p,input_fields:{profile_url:{alias:``}},output_fields:{profile:{alias:``,enabled:!0}}}}},wp=_(`work_email`),Tp=_(`crustdata_person_match`),Ep=_(`crustdata_profile_match_score`),Dp=`people:profile:workemail:crustdata@1`,Op=r.object({pipe_id:r.literal(Dp),run_if:S(),connector:w(),config:r.object({input_fields:z(r.object({[wp.name]:E({fieldName:wp.name})})),output_fields:R(r.object({[Tp.name]:k({fieldName:Tp.name}),[Ep.name]:k({fieldName:Ep.name})}))}).optional()}),kp=e=>V(K(wp,e)),Ap={"people-profile-workemail-crustdata-v1-crustdata":{allowManagedConnection:!0,credits:{default:5},mode:`onSuccess`,provider:`crustdata`}},jp=class extends U{pipeId=Dp;payload;payloadSchema=Op;billableOperations=Ap;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`crustdata`]}estimateBillableOperations(){return[`people-profile-workemail-crustdata-v1-crustdata`]}getInputRequirement(){return kp(this.payload.config)}getRawOutputFields(){return{[Tp.name]:this.catalogOutput(Tp),[Ep.name]:this.catalogOutput(Ep)}}getConnectionsRequirements(){return[{provider:`crustdata`,rateLimitRatio:1,rateLimitOperation:`crustdata_realtime_person_enrich`,allowManagedConnection:!0}]}},Mp=Op,Np={pipeId:Dp,inputFieldMode:`static`,outputFieldMode:`static`,basePipe:W(Dp),label:`Profile from work email`,executionMode:`single`,categories:[`deprecated`],lifecycle:{deprecatedOn:`2026-06-13`,replacedBy:`person:profile:workemail:crustdata@1`},description:`Find person profile by their work email address.`,tags:[B.EMAIL,B.PEOPLE_PROFILES],docPath:G(Dp),billableOperations:Ap,allowedUserConnectionProviders:[`crustdata`],managedProviders:[`crustdata`],deprecatedProviders:[],defaultInputRequirement:kp(null),defaultPayload:{pipe_id:Dp,connector:null,run_if:null,config:{input_fields:{work_email:{alias:``}},output_fields:{crustdata_person_match:{alias:``,enabled:!0},crustdata_profile_match_score:{alias:``,enabled:!0}}}}},Pp=`people:profileurl:email:waterfall@1`,Fp=_(`email`),Ip=_(`work_email`),Lp=_(`profile_url`),Rp=[`leadmagic`],zp=[{provider:`leadmagic`}],Bp=r.object({pipe_id:r.literal(Pp),run_if:S(),connector:w(),config:r.object({providers:D({sectionKey:`general`,defaultProviders:zp,availableProviders:Rp}),input_fields:z(r.object({[Fp.name]:E({fieldName:Fp.name}),[Ip.name]:E({fieldName:Ip.name})})),output_fields:R(r.object({[Lp.name]:k({fieldName:Lp.name})}))}).optional()}),Vp=e=>H(K(Fp,e),K(Ip,e)),Hp={"people-profileurl-email-waterfall-v1-leadmagic":{provider:`leadmagic`,allowManagedConnection:!0,credits:{default:3.5},mode:`onSuccess`}},Up=class extends U{pipeId=Pp;payload;payloadSchema=Bp;billableOperations=Hp;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return this.payload.config?.providers.map(e=>e.provider)||[]}estimateBillableOperations(){return this.getProviderNames().map(e=>J(e,this.billableOperations).billableOperation)}getInputRequirement(){return Vp(this.payload.config)}getRawOutputFields(){return{[Lp.name]:this.catalogOutput(Lp,{isPrimaryOutput:!0})}}getConnectionsRequirements(){let e={leadmagic:`leadmagic_email_to_b2b_profile`};return(this.payload.config?.providers||[]).map((t,n)=>({provider:t.provider,rateLimitRatio:q(n),rateLimitOperation:e[t.provider],allowManagedConnection:!0}))}},Wp=Bp,Gp={pipeId:Pp,basePipe:W(Pp),managedProviders:Rp,deprecatedProviders:[],allowedUserConnectionProviders:Rp,label:`LinkedIn URL from email`,executionMode:`waterfall`,categories:[`deprecated`],lifecycle:{deprecatedOn:`2026-06-13`,replacedBy:`person:profileurl:email:waterfall@1`},description:`Find the URL for a prospect's LinkedIn profile from their personal or professional email address.`,tags:[B.LINKEDIN],docPath:G(Pp),billableOperations:Hp,inputFieldMode:`static`,outputFieldMode:`static`,defaultInputRequirement:Vp(null),defaultPayload:{pipe_id:Pp,run_if:null,connector:null,config:{providers:zp,input_fields:{email:{alias:``},work_email:{alias:``}},output_fields:{profile_url:{alias:``,enabled:!0}}}}},Kp=`people:validate:email:zerobounce@1`,qp=_(`work_email`),Jp=_(`ip_address`),Yp=_(`is_email_valid`),Xp=r.object({pipe_id:r.literal(Kp),connector:w(),run_if:S(),config:r.object({input_fields:z(r.object({[qp.name]:E({fieldName:qp.name}),[Jp.name]:E({fieldName:Jp.name})})),output_fields:R(r.object({[Yp.name]:k({fieldName:Yp.name})}))}).optional()}),Zp=e=>Ea(V(K(qp,e)),Da(K(Jp,e))),Qp={"people-validate-email-zerobounce-v1-zerobounce":{provider:`zerobounce`,allowManagedConnection:!0,credits:{default:.5},mode:`always`}},$p=class extends U{pipeId=Kp;payload;payloadSchema=Xp;billableOperations=Qp;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`zerobounce`]}estimateBillableOperations(){return[`people-validate-email-zerobounce-v1-zerobounce`]}getInputRequirement(){return Zp(this.payload.config)}getRawOutputFields(){return{[Yp.name]:this.catalogOutput(Yp)}}getConnectionsRequirements(){return[{provider:`zerobounce`,rateLimitRatio:1,rateLimitOperation:`zerobounce_generic`,allowManagedConnection:!0}]}},em=Xp,tm={pipeId:Kp,basePipe:W(Kp),label:`Validate email`,executionMode:`single`,categories:[`deprecated`],lifecycle:{deprecatedOn:`2026-06-13`,replacedBy:`people:email:validate:zerobounce@1`},description:`Verify email address against various factors, including syntax, domain, and server existence, to ensure it is deliverable and active.`,tags:[B.EMAIL],docPath:`/resources/pipe-catalog/people:validate:email:zerobounce/1`,billableOperations:Qp,inputFieldMode:`static`,outputFieldMode:`static`,allowedUserConnectionProviders:[`zerobounce`],managedProviders:[`zerobounce`],deprecatedProviders:[],defaultInputRequirement:Zp(null),defaultPayload:{pipe_id:Kp,connector:null,run_if:null,config:{input_fields:{ip_address:{alias:``},work_email:{alias:``}},output_fields:{is_email_valid:{alias:``,enabled:!0}}}}},nm=`people:workemail:profileurl:waterfall@1`,rm=_(`profile_url`),im=_(`work_email`),am=_(`email_validation_status`),om=[`hunter`,`amplemarket`,`findymail`,`leadmagic`,`crustdata`,`clado`],sm=[`clado`],cm=[{provider:`hunter`},{provider:`amplemarket`},{provider:`leadmagic`},{provider:`findymail`},{provider:`crustdata`}],lm=r.object({pipe_id:r.literal(nm),connector:w(),run_if:S(),config:r.object({providers:D({availableProviders:om,defaultProviders:cm,sectionKey:`general`}),allow_catch_all_emails:O({path:`config.allow_catch_all_emails`,defaultValue:!0,groupPath:`config.general`,sectionKey:`general`,info:``,label:`Allow catch-all emails`}),allow_risky_emails:O({path:`config.allow_risky_emails`,defaultValue:!0,groupPath:`config.general`,sectionKey:`general`,info:`Higher chance of bouncing or being marked as spam.`,label:`Allow risky emails`}),input_fields:z(r.object({[rm.name]:E({fieldName:rm.name})})),output_fields:R(r.object({[im.name]:k({fieldName:im.name}),[am.name]:k({fieldName:am.name})}))}).optional()}),um=e=>V(K(rm,e)),dm={"people-workemail-profileurl-waterfall-v1-hunter":{provider:`hunter`,allowManagedConnection:!0,credits:{default:1},mode:`onSuccess`},"people-workemail-profileurl-waterfall-v1-leadmagic":{provider:`leadmagic`,allowManagedConnection:!0,credits:{default:2},mode:`onSuccess`},"people-workemail-profileurl-waterfall-v1-findymail":{provider:`findymail`,allowManagedConnection:!0,credits:{default:2},mode:`onSuccess`},"people-workemail-profileurl-waterfall-v1-crustdata":{provider:`crustdata`,allowManagedConnection:!0,credits:{default:3},mode:`onSuccess`},"people-workemail-profileurl-waterfall-v1-clado":{provider:`clado`,allowManagedConnection:!0,credits:{default:3.5},mode:`onSuccess`},"people-workemail-profileurl-waterfall-v1-amplemarket":{provider:`amplemarket`,allowManagedConnection:!0,credits:{default:2.5},mode:`onSuccess`}},fm=class extends U{pipeId=nm;payload;payloadSchema=lm;billableOperations=dm;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return this.payload.config?.providers.map(e=>e.provider)||[]}estimateBillableOperations(){return this.getProviderNames().map(e=>J(e,this.billableOperations).billableOperation)}getInputRequirement(){return um(this.payload.config)}getRawOutputFields(){return{[im.name]:this.catalogOutput(im,{isPrimaryOutput:!0}),[am.name]:this.catalogOutput(am,{isPrimaryOutput:!1})}}getConnectionsRequirements(){let e={leadmagic:`leadmagic_email_b2b_lookup`,hunter:`prospeo_email_lookup`,amplemarket:`amplemarket-person-reveal`,findymail:`findymail_email_b2b_lookup`,crustdata:`crustdata_realtime_person_enrich`,clado:`clado_contact_information`};return(this.payload.config?.providers||[]).map((t,n)=>({provider:t.provider,rateLimitRatio:q(n),rateLimitOperation:e[t.provider],allowManagedConnection:!0}))}},pm=lm,mm={pipeId:nm,basePipe:W(nm),label:`Work email from LinkedIn URL`,executionMode:`waterfall`,categories:[`deprecated`],lifecycle:{deprecatedOn:`2026-06-13`,replacedBy:`person:workemail:profileurl:waterfall@1`},description:`Find work email addresses from B2B profile.`,tags:[B.EMAIL,B.WORK_EMAIL,B.WATERFALL],docPath:G(nm),managedProviders:om,allowedUserConnectionProviders:om,deprecatedProviders:sm,inputFieldMode:`static`,outputFieldMode:`static`,billableOperations:dm,defaultInputRequirement:um(null),defaultPayload:{pipe_id:nm,connector:null,run_if:null,config:{providers:cm,allow_catch_all_emails:!0,allow_risky_emails:!0,input_fields:{profile_url:{alias:``}},output_fields:{work_email:{alias:``,enabled:!0},email_validation_status:{alias:``,enabled:!0}}}}},hm=`people:workemail:waterfall@1`,gm=_(`name`),_m=_(`company_website_url`),vm=_(`company_name`),ym=_(`work_email`),bm=_(`email_validation_status`),xm=[`leadmagic`,`prospeo`,`amplemarket`,`hunter`,`icypeas`,`findymail`],Sm=[{provider:`leadmagic`},{provider:`prospeo`},{provider:`amplemarket`},{provider:`hunter`},{provider:`icypeas`},{provider:`findymail`}],Cm=r.object({pipe_id:r.literal(hm),connector:w(),run_if:S(),config:r.object({providers:D({availableProviders:xm,defaultProviders:Sm,sectionKey:`general`}),allow_catch_all_emails:O({path:`config.allow_catch_all_emails`,defaultValue:!0,groupPath:`config.general`,sectionKey:`general`,description:`Catch-alls appear valid but remain undeliverable-risk.`,label:`Allow catch-all emails`}),allow_risky_emails:O({path:`config.allow_risky_emails`,defaultValue:!0,groupPath:`config.general`,sectionKey:`general`,description:`DNS configuration and spam reputation may flag emails as high-risk.`,label:`Allow risky emails`}),input_fields:z(r.object({[gm.name]:E({fieldName:gm.name}),[_m.name]:E({fieldName:_m.name}),[vm.name]:E({fieldName:vm.name})})),output_fields:R(r.object({[ym.name]:k({fieldName:ym.name}),[bm.name]:k({fieldName:bm.name})}))}).optional()}),wm=e=>Ea(V(K(gm,e)),H(K(_m,e),K(vm,e))),Tm={"people-workemail-waterfall-v1-leadmagic":{provider:`leadmagic`,allowManagedConnection:!0,credits:{default:.5},mode:`onSuccess`},"people-workemail-waterfall-v1-icypeas":{provider:`icypeas`,allowManagedConnection:!0,credits:{default:.5},mode:`onSuccess`},"people-workemail-waterfall-v1-prospeo":{provider:`prospeo`,allowManagedConnection:!0,credits:{default:1,level1:{credits:.5,weight:1}},mode:`onSuccess`},"people-workemail-waterfall-v1-findymail":{provider:`findymail`,allowManagedConnection:!0,credits:{default:1},mode:`onSuccess`},"people-workemail-waterfall-v1-hunter":{provider:`hunter`,allowManagedConnection:!0,credits:{default:1},mode:`onSuccess`},"people-workemail-waterfall-v1-amplemarket":{provider:`amplemarket`,allowManagedConnection:!0,credits:{default:2.5},mode:`onSuccess`}},Em=class extends U{pipeId=hm;payload;payloadSchema=Cm;billableOperations=Tm;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return this.payload.config?.providers.map(e=>e.provider)||[]}estimateBillableOperations(){return this.getProviderNames().map(e=>J(e,this.billableOperations).billableOperation)}getInputRequirement(){return wm(this.payload.config)}getRawOutputFields(){return{[ym.name]:this.catalogOutput(ym,{isPrimaryOutput:!0}),[bm.name]:this.catalogOutput(bm,{isPrimaryOutput:!0})}}getConnectionsRequirements(){let e={leadmagic:`leadmagic_email_lookup`,prospeo:`prospeo_email_lookup`,icypeas:`icypeas_email_lookup`,findymail:`findymail_email_lookup`,hunter:`hunter_email_finder`,amplemarket:`amplemarket-person-reveal`};return(this.payload.config?.providers||[]).map((t,n)=>({provider:t.provider,rateLimitRatio:q(n),rateLimitOperation:e[t.provider],allowManagedConnection:!0}))}},Dm=Cm,Om={pipeId:hm,basePipe:W(hm),label:`Work email from name`,executionMode:`waterfall`,categories:[`deprecated`],lifecycle:{deprecatedOn:`2026-06-13`,replacedBy:`person:workemail:waterfall@1`},description:`Find work email addresses in a waterfall motion.`,tags:[B.EMAIL,B.WORK_EMAIL,B.WATERFALL],docPath:G(hm),managedProviders:xm,deprecatedProviders:[],allowedUserConnectionProviders:xm,inputFieldMode:`static`,outputFieldMode:`static`,billableOperations:Tm,defaultInputRequirement:wm(null),defaultPayload:{pipe_id:hm,connector:null,run_if:null,config:{providers:Sm,allow_catch_all_emails:!0,allow_risky_emails:!0,input_fields:{company_name:{alias:``},company_website_url:{alias:``},name:{alias:``}},output_fields:{work_email:{alias:``,enabled:!0},email_validation_status:{alias:``,enabled:!1}}}}},km=`email:iswork@1`,Am=_(`is_work_email`),jm=_(`email`),Mm=r.object({pipe_id:r.literal(km),run_if:S(),connector:T(),config:r.object({input_fields:z(r.object({[jm.name]:E({fieldName:jm.name})})),output_fields:R(r.object({[Am.name]:k({fieldName:Am.name})}))}).optional()}),Nm=e=>V(K(jm,e)),Pm={"email-iswork-v1-pipe0":{provider:`pipe0`,allowManagedConnection:!0,credits:{default:0},mode:`always`}},Fm=class extends U{pipeId=km;payload;payloadSchema=Mm;billableOperations=Pm;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[`email-iswork-v1-pipe0`]}getInputRequirement(){return Nm(this.payload.config)}getRawOutputFields(){return{[Am.name]:this.catalogOutput(Am)}}getConnectionsRequirements(){return[{provider:`pipe0`,rateLimitRatio:1,rateLimitOperation:`pipe0_logic`,allowManagedConnection:!0}]}},Im=Mm,Lm={pipeId:km,label:`Work email checker`,executionMode:`single`,categories:[`people_data`],lifecycle:null,description:`Check if a given email address is personal or professional.`,tags:[B.EMAIL,B.WORK_EMAIL],docPath:G(km),billableOperations:Pm,basePipe:W(km),allowedUserConnectionProviders:[],inputFieldMode:`static`,outputFieldMode:`static`,managedProviders:[`pipe0`],deprecatedProviders:[],defaultInputRequirement:Nm(null),defaultPayload:{pipe_id:km,run_if:null,connector:null,config:{input_fields:{email:{alias:``}},output_fields:{is_work_email:{alias:``,enabled:!0}}}}};function Rm(e,t){return typeof t==`string`?t:t(e)}function zm(e,t){return typeof t==`string`||t===null?t:t(e)}function Bm(e,t){let n={};for(let r of t){let t=!1;for(let i of e.pipes){let a=i.getOutputFields();if(a[r]){n[r]??={type:Rm(e,a[r].type),format:zm(e,a[r].format)},t=!0;break}}if(t)continue;let i=e.derivedInputFields[r];i&&(n[r]??={type:i.type,format:null})}return n}function Vm(e,t){for(let n of e.pipes){let r=n.getOutputFields();if(r[t])return{type:Rm(e,r[t].type),format:zm(e,r[t].format)}}let n=e.derivedInputFields[t];if(n)return{type:n.type,format:null}}function Hm(e,t={}){let n=t.expectedType??`string`,r=t.expectedFormat??`text`,i=new Map;for(let t of e){if(!t)continue;let e;try{e=jr(t)}catch{continue}for(let[t,n]of Object.entries(e.inputs)){let e=i.get(t);i.set(t,{required:e&&e.required||n.required})}}let a=[];for(let[e,t]of i){let i={name:e,resolvedName:e,label:e,description:``,type:t=>Vm(t,e)?.type||n,format:r};a.push(t.required?V(i):Da(i))}return Ea(...a)}function Y(e){let t=new Set;for(let n of e)if(n)try{let e=jr(n);for(let n of e.secrets)t.add(n)}catch{}return[...t]}function X(e){let t=new Set;for(let n of e)if(n)try{let e=jr(n);for(let n of e.constants)t.add(n)}catch{}return[...t]}const Um=`email:send:gmail@1`,Wm=_(`gmail_email_success`),Gm=r.object({pipe_id:r.literal(Um),connector:Gi(),run_if:S(),config:r.object({to:C({sectionKey:`general`,groupPath:`config.general`,path:`config.to`,label:`To`,info:"Recipient address. Type `@` to insert a field reference or `$` to insert a secret reference.",placeholder:`{{ email }}`,inputType:`email`,minLength:1,maxLength:320,expectedTagType:`string`,expectedTagFormat:`email`}),reply_to:C({sectionKey:`general`,groupPath:`config.general`,path:`config.reply_to`,label:`Reply-To`,info:"Optional address recipients can reply to. Type `@` to insert a field reference or `$` to insert a secret reference.",placeholder:`support@example.com`,inputType:`email`,maxLength:320,expectedTagType:`string`,expectedTagFormat:`email`}),subject:C({sectionKey:`general`,groupPath:`config.general`,path:`config.subject`,label:`Subject`,info:"Email subject line. Type `@` to insert a field reference or `$` to insert a secret reference.",placeholder:`Hi {{ first_name }}`,inputType:`text`,minLength:1,maxLength:998,expectedTagType:`string`,expectedTagFormat:`text`}),body:C({sectionKey:`general`,groupPath:`config.general`,path:`config.body`,label:`Body`,info:"Email body in markdown. Type `@` to insert a field reference or `$` to insert a secret reference.",placeholder:`Hi {{ first_name }},
67
+ How do you...`]}},crustdata_post_list:{label:`Crustdata Post list`,type:`json`,format:`json_list_string`,description:`Rich JSON post list`,jsonMeta:{zodSchema:ct,exampleValue:lt}},role_finder_match:{label:`Role finder match`,type:`json`,format:`json_object`,description:`Result of a role finder operation`,jsonMeta:{zodSchema:Ft,exampleValue:It}},amplemarket_person_match:{label:`Person match`,type:`json`,format:`json_object`,description:`Person match object as returned by Amplemarket`,jsonMeta:{zodSchema:Ne,exampleValue:Pe}},amplemarket_company_match:{label:`Company match`,type:`json`,format:`json_object`,description:`Company match object as returned by Amplemarket`,jsonMeta:{zodSchema:je,exampleValue:Me}},companyenrich_matches:{label:`CompanyEnrich matches`,type:`json`,format:`json_object`,description:`CompanyEnrich response list.`,jsonMeta:{zodSchema:r.array(et),exampleValue:[tt]}},logo_url:{label:`Logo URL`,type:`string`,format:`text`,description:`Company or organization logo`,jsonMeta:null},logodev_describe_match:{label:`Company match`,type:`json`,format:`json_object`,description:`Get company logos & brand data`,jsonMeta:{exampleValue:Dt,zodSchema:Et}},mobile_number:{label:`Mobile`,type:`string`,description:`Mobile telephone number of a person.`,jsonMeta:null,format:`phone`},company_social_url:{label:`Company Social URL`,type:`string`,description:`Social Media URL for a given company (e.g. LinkedIn profile URL).`,jsonMeta:null,format:`profile_url`},professional_profile:{label:`Professional profile (LinkedIn)`,type:`json`,description:`A standardized format for returning LinkedIn profile data.`,jsonMeta:{zodSchema:Nt,exampleValue:Pt},format:`json_object`},professional_profile_url:{label:`LinkedIn Profile URL`,type:`string`,format:`profile_url`,description:`A person's LinkedIn profile URL.`,jsonMeta:null}},nn={company_description:{},cleaned_company_name:{},company_industry:{},icypeas_person_match:{getStaticWidgets(e){if(!e)return{};let t=e;return{display_value:{label:`${t.firstname} ${t.lastname} profile`}}}},icypeas_company_match:{getStaticWidgets(e){return e?{display_value:{label:`${e.name} profile`}}:{}}},company_region:{getStaticWidgets:e=>{let t={},n=Qt(e);return n&&(t.location_indicator={emoji:n}),t}},location_hint:{},estimated_revenue:{},founded_year:{},technology_list:{},spending_trend:{getStaticWidgets(e){let t=e;return{display_value:{label:`${t>3?`πŸ”ΌπŸ”ΌπŸ”Ό`:t>1?`πŸ”ΌπŸ”Ό`:t>0?`πŸ”Ό`:t<-3?`πŸ”½πŸ”½πŸ”½`:t<-1?`πŸ”½πŸ”½`:t<0?`πŸ”½`:``} ${Math.round(t*100)}%`}}}},technology_match_builtwith:{getStaticWidgets(e){return{display_value:{label:`Technology profile`}}}},number_of_social_followers:{},email:{},personal_email:{},alternate_personal_emails:{},company_news_summary:{},work_email:{},headcount:{},company_website_url:{},company_domain:{},company_name:{},first_name:{},addressee_name:{},address_line_1:{},address_line_2:{},job_title:{getStaticWidgets(){return{icon:{key:`job`}}}},job_description:{},profile_headline:{},address_city:{},address_country:{},address_state:{},zip_code:{},last_name:{},is_work_email:{},name:{},ip_address:{},skills:{},avatar_url:{},string_input:{},domain:{},url_input:{},slugified:{},http_response_status:{},http_response_body:{},http_response_headers:{},estimated_salary:{},scrape_list_response:{},clado_person_match:{getStaticWidgets(e){return e?{display_value:{label:`${e.profile?.name||`Person`} profile`}}:{}}},clado_person_match_v2:{getStaticWidgets(e){return e?{display_value:{label:`${e.profile?.name||`Person`} profile`}}:{}}},company_social_url:{getStaticWidgets(e){let t=en(e);return{display_value:t?{label:t}:void 0}}},crustdata_profile_match_score:{},is_email_valid:{},amplemarket_person_match:{getStaticWidgets(){return{display_value:{label:`Person match`}}}},amplemarket_company_match:{getStaticWidgets(){return{display_value:{label:`Company match`}}}},profile_url:{getStaticWidgets(e){let t=en(e);return{display_value:t?{label:t}:void 0,icon:{key:`linkedin`}}}},company_profile_url:{getStaticWidgets(e){let t=en(e);return{display_value:t?{label:t}:void 0,icon:{key:`linkedin`}}}},profile_posts:{getStaticWidgets(){return{display_value:{label:`LinkedIn posts`}}}},profile:{getStaticWidgets(e){return e?{display_value:{label:`${e.name||`Person`} LinkedIn profile`}}:{}}},clado_person_profile:{getStaticWidgets(e){return e?{display_value:{label:`${e.profile?.name||`Person`} match`}}:{}}},email_subject:{},message:{},slack_message_success:{getStaticWidgets(e){return{display_value:{label:e?`βœ… Sent`:`❌ Not sent`}}}},resend_email_success:{getStaticWidgets(e){return{display_value:{label:e?`βœ… Sent`:`❌ Not sent`}}}},email_body:{},mobile:{},landline:{},phone:{},funding_history:{},funding_total_usd:{},leadmagic_competitor_list:{getStaticWidgets(e){return e?{display_value:{label:e.map(e=>e.company_name).slice(0,4).join(`, `)}}:{}}},leadmagic_acquisition_history:{getStaticWidgets(e){return e?{display_value:{label:e.map(e=>e.company_name).slice(0,4).join(`, `)}}:{}}},leadmagic_company_news_list:{getStaticWidgets(e){return e?{display_value:{label:`${e.length} news sources`}}:{}}},merge_result:{},website_markdown:{getStaticWidgets(e){return e?{display_value:{label:`πŸ“ Markdown result`}}:{}}},urls:{},website_html:{},website_url:{},website_links:{},mapped_links:{},firecrawl_extract_result:{getStaticWidgets(){return{display_value:{label:`Extract result`}}}},exa_match_evaluation:{getStaticWidgets(){return{display_value:{label:`Exa match`}}}},email_validation_status:{},million_validation_match:{getStaticWidgets(){return{display_value:{label:`Validation result`}}}},post_list_string:{getStaticWidgets(e){return{entity_logo:{entity:`LinkedIn`,image_url:Ae.linkedin}}}},crustdata_post_list:{getStaticWidgets(e){return{entity_logo:{entity:`LinkedIn`,image_url:Ae.linkedin}}}},crustdata_company_match:{},crustdata_person_match:{},resend_contact_id:{},sheet_record_id:{},sheet_record_ids:{},companyenrich_match:{},companyenrich_matches:{},input_objects:{},role_finder_match:{},sheet:{},logodev_describe_match:{getStaticWidgets(){return{display_value:{label:`Match`}}}},logo_url:{getStaticWidgets(){return{display_value:{label:`Logo URL`}}}},mobile_number:{},created_sheet:{},professional_profile:{},professional_profile_url:{},crustdata_companyenrich_match:{},template_output:{},zerobounce_validation_match:{},zerobounce_validation_status:{getStaticWidgets(e){return{display_value:{label:e===`valid`?`βœ… Valid`:e===`invalid`?`❌ Invalid`:e===`catch-all`?`⚾️ Catch All`:e===`abuse`?`⚠️ Abuse`:e===`do_not_mail`?`❌❌ Do not mail`:e===`spamtrap`?`❌❌❌ Spam Trap`:e}}}},gmail_email_success:{getStaticWidgets(e){return{display_value:{label:e?`βœ… Sent`:`❌ Not sent`}}}}};function _(e){return{...tn[e],name:e}}function rn(e,t){if(on(e,t))return nn[e]}function an(e){return e in tn}function on(e,t){return e in tn?tn[e].format===t:!1}const sn={completed:`Completed`,failed:`Failed`,no_result:`No result`,pending:`Pending`,processing:`Processing`,queued:`Queued`,skipped:`Skipped`};function cn(e){return sn[e]}const ln=(e,t=`Set a ${e} connection to enable this`)=>n=>(n.connector?.connections??[]).some(t=>t?.connection?.startsWith(`${e}_`))?{disabled:!1}:{disabled:!0,message:t},un=(e,t)=>n=>{let r=e(n);return r!=null&&r!==``?{disabled:!1}:{disabled:!0,message:t}},dn=(...e)=>t=>{for(let n of e){let e=n(t);if(e.disabled)return e}return{disabled:!1}},fn=(...e)=>t=>{let n={disabled:!0,message:`No condition matched`};for(let r of e){let e=r(t);if(!e.disabled)return e;n=e}return n};function pn(e,t,n){if(!t.added_by||t.added_by.ref===`input`||t.added_by.pipe_index==null)throw Error(`Tried to find output field info for field not generated by pipe: ${e}, added_by: ${t.added_by}`);let r=n.orderedPipeInstances[t.added_by.pipe_index];if(!r)throw Error(`Unable to find pipe instance at index ${t.added_by.pipe_index} for resolved field ${e}`);let i=Object.entries(r.getOutputFields()).find(([t,n])=>n.resolvedName===e);if(!i)throw Error(`Resolved pipe output field '${e}' not found for pipe ${t.added_by.ref}`);let[a,o]=i;return{fieldName:a,...o}}const mn=r.enum(`company_description.cleaned_company_name.company_industry.company_region.location_hint.estimated_revenue.founded_year.technology_list.spending_trend.technology_match_builtwith.number_of_social_followers.email.personal_email.alternate_personal_emails.company_news_summary.work_email.headcount.company_website_url.company_domain.company_name.first_name.addressee_name.address_line_1.address_line_2.job_title.job_description.profile_headline.address_city.address_country.address_state.zip_code.last_name.is_work_email.companyenrich_match.companyenrich_matches.name.ip_address.skills.avatar_url.estimated_salary.is_email_valid.profile_url.company_profile_url.profile_posts.clado_person_match.clado_person_match_v2.icypeas_person_match.icypeas_company_match.clado_person_profile.resend_email_success.email_body.email_subject.profile.mobile.landline.phone.message.slack_message_success.funding_history.funding_total_usd.template_output.gmail_email_success.zerobounce_validation_status.zerobounce_validation_match.leadmagic_competitor_list.leadmagic_acquisition_history.leadmagic_company_news_list.merge_result.mapped_links.website_markdown.website_html.website_url.urls.website_links.firecrawl_extract_result.exa_match_evaluation.email_validation_status.million_validation_match.scrape_list_response.resend_contact_id.sheet_record_id.sheet_record_ids.input_objects.role_finder_match.logodev_describe_match.logo_url.crustdata_company_match.crustdata_companyenrich_match.crustdata_person_match.post_list_string.crustdata_post_list.crustdata_profile_match_score.amplemarket_person_match.amplemarket_company_match.created_sheet.sheet.string_input.domain.url_input.slugified.http_response_status.http_response_body.http_response_headers.professional_profile_url.professional_profile.company_social_url.mobile_number`.split(`.`)),hn=r.enum([`pipe0`,`findymail`,`crustdata`,`hunter`,`zerobounce`,`millionverifier`,`googlemaps`,`gemini`,`leadmagic`,`mixrank`,`builtwith`,`perplexity`,`serper`,`icypeas`,`prospeo`,`clado`,`resend`,`slack`,`gmail`,`firecrawl`,`exa`,`openai`,`companyenrich`,`logodev`,`amplemarket`]),gn=r.enum([`production`,`sandbox`]),_n=`prompt:run@1.company:newssummary:website@1.company:newssummary:domain@1.company:techstack:builtwith@1.company:techstack:builtwith@2.company:websiteurl:email@1.company:domain:workemail@1.company:funding:leadmagic@1.company:funding:leadmagic@2.people:workemail:waterfall@1.person:workemail:waterfall@1.people:email:iswork@1.email:iswork@1.people:name:split@1.person:name:split@1.person:name:join@1.people:validate:email:zerobounce@1.people:email:validate:zerobounce@2.email:validate:zerobounce@1.people:mobilenumber:workemail:waterfall@1.company:overview@1.company:overview@2.company:overview@3.json:extract:multi@1.email:write@1.message:write@1.email:send:resend@1.email:send:gmail@1.message:send:slack@1.template:fill@1.contact:create:resend@1.people:match:role:waterfall@1.person:match:role:waterfall@1.person:identity:amplemarket@1.company:identity@2.company:identity@3.person:match:amplemarket@1.people:phone:profile:waterfall@1.person:mobile:profileurl:waterfall@1.people:personalemail:profile:waterfall@1.person:personalemail:profileurl:waterfall@1.people:profile:waterfall@1.person:profile:waterfall@1.people:profileurl:email:waterfall@1.person:profileurl:email:waterfall@1.person:profileurl:name@1.people:email:validate:zerobounce@1.person:email:validate:millionverifier@1.people:phone:workemail:waterfall@1.person:mobile:workemail:waterfall@1.fields:merge@1.field:slugify@1.field:domainify@1.website:scrape:firecrawl@1.website:scrapelist:firecrawl@1.website:extract:firecrawl@1.website:maplinks:firecrawl@1.sheet:row:append@1.sheet:row:expandappend@1.company:lookalikes:companyenrich@1.company:lookalikes:companyenrich@2.company:match:logodev@1.company:match:logodev@2.person:posts:crustdata@1.company:match:crustdata@1.company:match:crustdata@2.people:profile:workemail:crustdata@1.person:profile:workemail:crustdata@1.people:workemail:profileurl:waterfall@1.person:workemail:profileurl:waterfall@1.people:identity:email:waterfall@1.person:identity:email:waterfall@1.http:request@1.company:identity@1.people:professionalprofile:waterfall@1.people:professionalprofileurl:name@1.people:professionalprofileurl:email:waterfall@1.people:mobilenumber:professionalprofile:waterfall@1`.split(`.`),vn=r.enum(_n),yn=[`string`,`number`,`boolean`,`json`,`unknown`],bn=r.enum(yn),xn=r.union([r.number(),r.string()]),Sn=r.union([r.literal(`completed`),r.literal(`failed`),r.literal(`pending`),r.literal(`queued`),r.literal(`processing`),r.literal(`no_result`),r.literal(`skipped`)]),Cn=r.union([r.string().min(1),r.number(),r.boolean(),r.null(),r.record(r.string(),r.unknown()),r.array(r.unknown())]),wn=r.object({example_value:r.any().nullable(),schema:r.any().nullable()}),Tn=r.object({}),En=Tn.extend({image_url:r.string().url().describe(`URL to the provider's logo image.`),entity:r.string().describe(`The name of the entity.`)}),Dn=Tn.extend({emoji:r.string().describe(`Country flag emoji.`)}),On=Tn.extend({image_url:r.url().describe(`URL to the provider's logo image.`),name:r.string().describe(`The name of the avatar owner.`)}),kn=Tn.extend({attempted_providers:r.array(r.object({provider:hn})),available_providers:r.array(hn),successful_provider:hn.optional()}),An=r.enum([`linkedin`,`job`]),jn=Tn.extend({key:An}).optional(),Mn=r.object({result_status:r.enum([`completed`,`failed`])}).optional(),Nn=r.object({list:r.array(r.object({source:r.string(),description:r.string().optional(),url:r.string()}))}).optional(),Pn=r.object({numeric:r.int().min(1).max(5)}).optional(),Fn=r.object({display_value:r.object({label:r.string().optional()}),entity_logo:En.optional(),location_indicator:Dn.optional(),avatar:On.optional(),waterfall:kn.optional(),icon:jn,action_summary:Mn,sources:Nn,confidence:Pn}).partial().describe(`A map of widgets associated with this field for UI display, keyed by widget type.`),In=r.object({code:r.string(),message:r.string(),path:r.string().optional()}),Ln=r.object({code:r.string(),summary:r.string(),message:r.string()}),Rn=[`json_object`,`json_list`,`json_list_string`,`url`,`website_url`,`profile_url`,`email`,`datetime`,`currency`,`date`,`phone`,`markdown`,`text`,`int`,`decimal`,`address_line_1`,`zip_code`,`percent`],zn=r.enum(Rn);zn.nullable();const Bn=r.object({type:bn,label:r.string().nullable().optional(),format:zn.nullable().optional(),json_metadata:wn.nullable().optional()}),Vn=r.record(r.string(),Bn),Hn=r.enum([..._n,`input`]).nullable(),Un=r.enum([..._n,`input`,`system`]).nullable(),Wn=r.object({ref:Hn,config_hash:r.string().nullable()}),Gn=r.object({ref:Un,environment:gn.nullable(),config_hash:r.string().nullable(),input_hash:r.string().nullable()}),Kn=r.object({value:Cn,status:Sn,type:bn,reason:Ln.nullable(),claimed_by:Wn,resolved_by:Gn.nullable(),widgets:Fn.optional(),format:zn.nullable()}),qn=r.object({value:Cn,status:Sn,reason:Ln.nullable().optional(),type:bn.optional(),format:zn.nullable().optional(),claimed_by:Wn.optional(),resolved_by:Gn.nullable().optional(),widgets:Fn.optional()}),Jn=r.record(r.string(),r.union([Cn,qn])).openapi(`PipesInput`),Yn=r.object({id:xn,fields:r.record(xn,Kn)}),Xn=r.object({type:r.literal(`catalog`),fieldName:r.string().min(1)}),Zn=r.object({type:bn,label:r.string(),added_by:r.object({ref:r.union([vn,r.literal(`input`)]),config_hash:r.string().nullable(),pipe_index:r.number().nullable()}),format:zn.nullable(),is_primary_output:r.boolean()}),Qn=r.record(r.string(),Zn),$n=r.object({field_name:r.string().min(1),extractions:r.array(r.object({path:r.string().min(1),output_field:r.object({name:r.string().min(1),format:zn.nullable().default(null),label:r.string().optional(),type:bn})})).min(1).check(e=>{let t=new Set;Object.values(e.value).forEach(n=>{t.has(n.output_field.name)?e.issues.push({code:`custom`,message:`Output field names must be unique. The name ${n.output_field.name} exists more than once in your config.`,input:e.value}):t.add(n.output_field.name)})})}),er=r.enum([`eq`,`neq`,`gt`,`gte`,`lt`,`lte`,`contains`]),tr={eq:`equals`,neq:`not equals`,gt:`greater than`,gte:`greater than or equal`,lt:`less than`,lte:`less than or equal`,contains:`contains`},nr=[`eq`,`neq`,`gt`,`gte`,`lt`,`lte`,`contains`],rr=[`eq`,`neq`],ir=r.object({type:r.literal(`vault`),connection:r.string()}),v=r.object({strategy:r.enum([`first`]).default(`first`),connections:r.array(ir)}).nullable().optional(),ar=r.object({strategy:r.enum([`first`]).default(`first`),connections:r.array(ir).min(1,{message:`Provide your own credentials to use this object.`})}),or=r.object({strategy:r.enum([`first`]).default(`first`),connections:r.array(r.object({type:r.literal(`vault`),connection:r.string()})).max(0,{message:`This pipe does not support custom connectors.`})}).optional().nullable(),sr=r.enum(nr),cr=r.enum(rr),lr=r.enum([`failed`,`no_result`,`completed`,`skipped`]),ur=r.object({action:r.enum([`run`]).default(`run`).describe(`What to do when conditions match. Defaults to "run" (run the pipe only on matching records). Reserved for future extension.`),when:r.object({logic:r.enum([`and`,`or`]).describe(`"and" = all conditions must match. "or" = any condition matches.`),conditions:r.array(r.discriminatedUnion(`property`,[r.object({property:r.literal(`value`).describe(`Compare the actual field value. Use operators: eq, neq, gt, gte, lt, lte, contains.`),field_name:r.string().min(1,{message:`Select a target field for the condition.`}).describe(`Name of a field from input data or produced by an earlier pipe in the workflow.`),operator:sr.describe(`Comparison operator: "eq", "neq", "gt", "gte", "lt", "lte", "contains".`),value:r.union([r.number(),r.string(),r.boolean(),r.null()]).describe(`The value to compare the field against. Must be a primitive (string, number, boolean, or null).`).check(e=>{(e.value===void 0||e.value===``)&&e.issues.push({code:`custom`,input:e.value,message:`Provide a value to compare against.`}),typeof e.value==`object`&&e.value!==null&&e.issues.push({code:`custom`,input:e.value,message:`Conditions can only be defined on primitive fields. To apply a condition on a JSON value, expand it into an object first.`})})}),r.object({property:r.literal(`status`).describe(`Compare the field resolution status instead of its value. Use operators: eq, neq.`),field_name:r.string().min(1).describe(`Name of a field from input data or produced by an earlier pipe in the workflow.`),operator:cr.describe(`Status comparison operator: "eq" or "neq".`),value:lr.describe(`Field status to compare against: "completed", "no_result", "failed", or "skipped".`)})])).min(1).describe(`Array of conditions to evaluate. Each condition checks either a field value or its resolution status.`)}).describe(`Condition block. All conditions are combined with the chosen logic (and/or).`)}).describe(`Run-if gate for a pipe. When set, the pipe only runs on records matching the conditions. Example: { "when": { "logic": "and", "conditions": [{ "property": "status", "field_name": "work_email", "operator": "neq", "value": "no_result" }] } }`),dr={pipe0:{name:`pipe0`,label:`pipe0`,description:`A framework for lead and company data enrichment.`,url:`https://pipe0.com`,public:!0,hasManagedConnections:!0,allowsUserConnections:!1,connectionType:`api_key`,logoUrl:`https://imagedelivery.net/3B3AWuP94-S3Ro5eEac6JA/52f2d955-d9f3-4139-2c13-63cfd568ed00/icon`,background:{light:`#F4F4F5`,dark:`#1F1F23`},oAuthConfig:null},findymail:{name:`findymail`,label:`FindyMail`,description:`Find verified emails.`,url:`https://findymail.com`,public:!1,hasManagedConnections:!0,allowsUserConnections:!0,connectionType:`api_key`,oAuthConfig:null,logoUrl:`https://imagedelivery.net/3B3AWuP94-S3Ro5eEac6JA/9e8ce38d-a49d-42a3-4317-506f7fbec900/icon`,background:{light:`#D4F4DD`,dark:`#143822`}},hunter:{name:`hunter`,label:`HunterMail`,description:`Find email addresses and send cold emails`,url:`https://hunter.io`,public:!1,hasManagedConnections:!0,allowsUserConnections:!0,oAuthConfig:null,connectionType:`api_key`,logoUrl:`https://imagedelivery.net/3B3AWuP94-S3Ro5eEac6JA/fc66b052-6b1e-4c91-a239-6bbce08f1b00/icon`,background:{light:`#FFE4D4`,dark:`#3D1F0C`}},zerobounce:{name:`zerobounce`,label:`ZeroBounce`,description:`Email validation tools and email list cleaning`,url:`https://www.zerobounce.net`,public:!0,hasManagedConnections:!0,allowsUserConnections:!0,connectionType:`api_key`,logoUrl:`https://imagedelivery.net/3B3AWuP94-S3Ro5eEac6JA/db8e9e41-0bda-4f2c-de42-cf8ce61ee500/icon`,background:{light:`#D6F5E5`,dark:`#0E3823`},oAuthConfig:null},googlemaps:{name:`googlemaps`,label:`Google Maps`,description:`A map service by Google`,url:`https://www.google.com/maps`,public:!1,hasManagedConnections:!0,allowsUserConnections:!0,connectionType:`api_key`,logoUrl:`https://imagedelivery.net/3B3AWuP94-S3Ro5eEac6JA/1796d3c1-dfb0-4555-b2bf-0ca4930e8f00/icon`,background:{light:`#D8E8FF`,dark:`#0E2447`},oAuthConfig:null},leadmagic:{name:`leadmagic`,label:`LeadMagic`,description:`Enrichment provider`,url:`https://leadmagic.io`,public:!0,hasManagedConnections:!0,allowsUserConnections:!0,connectionType:`api_key`,logoUrl:`https://imagedelivery.net/3B3AWuP94-S3Ro5eEac6JA/508cb23a-47d4-40ee-1645-b5a8bf994c00/icon`,background:{light:`#EBD8FF`,dark:`#2A1247`},oAuthConfig:null},builtwith:{name:`builtwith`,label:`BuiltWith`,description:`BuiltWith tracks over 2500 eCommerce technologies across over 26 million eCommerce websites.`,url:`https://builtwith.com`,public:!0,hasManagedConnections:!0,allowsUserConnections:!0,connectionType:`api_key`,logoUrl:`https://imagedelivery.net/3B3AWuP94-S3Ro5eEac6JA/e675cb72-6dc2-43c8-972e-0fc9c3b73c00/icon`,background:{light:`#FFF0D4`,dark:`#3D2806`},oAuthConfig:null},perplexity:{name:`perplexity`,label:`Perplexity`,description:`AI search company`,public:!1,url:`https://perplexity.com`,hasManagedConnections:!0,allowsUserConnections:!0,connectionType:`api_key`,logoUrl:`https://imagedelivery.net/3B3AWuP94-S3Ro5eEac6JA/d17d3ba0-5c9e-43d8-17ee-3e4a70404e00/icon`,background:{light:`#D3F1EE`,dark:`#0E3633`},oAuthConfig:null},serper:{name:`serper`,label:`Serper`,description:`The World's Fastest & Cheapest Google Search API`,url:`https://serper.dev/`,public:!1,hasManagedConnections:!0,allowsUserConnections:!0,connectionType:`api_key`,logoUrl:`https://imagedelivery.net/3B3AWuP94-S3Ro5eEac6JA/04e720cd-56ea-44d3-3a31-cfc516c6f800/icon`,background:{light:`#D8E6FF`,dark:`#0C2554`},oAuthConfig:null},icypeas:{name:`icypeas`,label:`Icypeas`,description:`A popular data catalog`,url:`https://www.icypeas.com/`,public:!0,hasManagedConnections:!0,allowsUserConnections:!0,connectionType:`api_key`,logoUrl:`https://imagedelivery.net/3B3AWuP94-S3Ro5eEac6JA/d635119e-08ae-40cb-78bc-34161d422400/icon`,background:{light:`#D8EFFF`,dark:`#0C2A4A`},oAuthConfig:null},prospeo:{name:`prospeo`,label:`Prospeo`,description:`Find anyone’s contact data.`,url:`https://prospeo.io/`,public:!0,hasManagedConnections:!0,allowsUserConnections:!0,connectionType:`api_key`,logoUrl:`https://imagedelivery.net/3B3AWuP94-S3Ro5eEac6JA/9446f572-d08c-4d48-a5a5-04747fe66000/icon`,background:{light:`#D6E2FF`,dark:`#0C2052`},oAuthConfig:null},gemini:{name:`gemini`,label:`Gemini`,description:`Google's AI service`,url:`https://gemini.google.com`,public:!0,hasManagedConnections:!0,allowsUserConnections:!0,connectionType:`api_key`,logoUrl:`https://imagedelivery.net/3B3AWuP94-S3Ro5eEac6JA/417de5dd-a8a8-4210-d7dc-6f40e54ece00/icon`,background:{light:`#DDE7FF`,dark:`#1A2C5C`},oAuthConfig:null},slack:{name:`slack`,label:`Slack`,description:`A modern business chat application.`,url:`https://slack.com`,public:!0,hasManagedConnections:!1,allowsUserConnections:!0,connectionType:`oauth_token`,logoUrl:`https://imagedelivery.net/3B3AWuP94-S3Ro5eEac6JA/676e823c-c926-4b0b-465c-121b9d1c3300/icon`,background:{light:`#F1E0FF`,dark:`#2A0E44`},oAuthConfig:{}},companyenrich:{name:`companyenrich`,label:`CompanyEnrich`,description:`A company enrichment service.`,url:`https://companyenrich.com`,public:!0,hasManagedConnections:!0,allowsUserConnections:!0,connectionType:`api_key`,logoUrl:`https://imagedelivery.net/3B3AWuP94-S3Ro5eEac6JA/e80b3a16-7b36-4733-bcbe-46f471d33100/icon`,background:{light:`#DCEEFF`,dark:`#0E2C4A`},oAuthConfig:{}},mixrank:{name:`mixrank`,label:`MixRank`,description:`Ultra-high-frequency technographic and people data for your data teams.`,url:`https://mixrank.com/`,hasManagedConnections:!0,allowsUserConnections:!1,connectionType:`api_key`,oAuthConfig:{},public:!0,logoUrl:`https://imagedelivery.net/3B3AWuP94-S3Ro5eEac6JA/a29f3095-b3f9-4b12-d21b-1c506ccd7200/icon`,background:{light:`#FFE5D4`,dark:`#3A1D08`}},clado:{name:`clado`,label:`Clado`,description:`A data provider deploying 10^5 AI agents to find contact information.`,public:!0,hasManagedConnections:!0,allowsUserConnections:!0,connectionType:`api_key`,url:`https://clado.ai`,logoUrl:`https://imagedelivery.net/3B3AWuP94-S3Ro5eEac6JA/fdf3d2d0-70be-45c3-2fe5-a8c5cac55a00/icon`,background:{light:`#E8E8EC`,dark:`#1A1A1F`},oAuthConfig:null},gmail:{name:`gmail`,label:`Gmail`,description:`Google's email service`,public:!0,hasManagedConnections:!1,allowsUserConnections:!0,connectionType:`oauth_token_bundle`,url:`https://mail.google.com`,logoUrl:`https://imagedelivery.net/3B3AWuP94-S3Ro5eEac6JA/8da8ab6b-7f7e-4c42-6abf-212ea537db00/icon`,background:{light:`#FFD8D8`,dark:`#45100F`},oAuthConfig:{}},resend:{name:`resend`,label:`Resend`,description:`An email platform built for developers.`,public:!0,hasManagedConnections:!1,allowsUserConnections:!0,url:`https://clado.ai`,connectionType:`api_key`,logoUrl:`https://imagedelivery.net/3B3AWuP94-S3Ro5eEac6JA/7c88f71b-8472-40f4-4bec-0e77eac30400/icon`,background:{light:`#EDEDEE`,dark:`#1A1A1C`},oAuthConfig:null},firecrawl:{name:`firecrawl`,label:`Firecrawl`,description:`Firecrawl is an API service that takes a URL, crawls it, and converts it into clean markdown. Firecrawl crawls all accessible subpages and gives you clean markdown for each. No sitemap required.`,public:!0,hasManagedConnections:!0,allowsUserConnections:!0,url:`https://www.firecrawl.dev`,connectionType:`api_key`,logoUrl:`https://imagedelivery.net/3B3AWuP94-S3Ro5eEac6JA/5c318569-7bf4-4276-a3f2-1f25530f7f00/icon`,background:{light:`#FFE5CC`,dark:`#3A1A05`},oAuthConfig:null},exa:{name:`exa`,label:`Exa`,description:`Exa is a search engine built for AI.`,public:!0,hasManagedConnections:!0,allowsUserConnections:!0,url:`https://exa.ai/`,connectionType:`api_key`,logoUrl:`https://imagedelivery.net/3B3AWuP94-S3Ro5eEac6JA/8ae69780-4506-4952-a90e-02e70b06af00/icon`,background:{light:`#D8DCFF`,dark:`#14154A`},oAuthConfig:null},openai:{name:`openai`,label:`OpenAI`,description:`Foundational AI company based out of San Francisco.`,public:!0,hasManagedConnections:!0,allowsUserConnections:!0,url:`https://openai.com/`,connectionType:`api_key`,logoUrl:`https://imagedelivery.net/3B3AWuP94-S3Ro5eEac6JA/7ac79c3a-bccb-4ed4-d6e5-7b300b2fd300/icon`,background:{light:`#D8EFE4`,dark:`#0C2A1C`},oAuthConfig:null},millionverifier:{name:`millionverifier`,label:`MillionVerifier`,description:`E-Mail validation service.`,public:!0,hasManagedConnections:!0,allowsUserConnections:!0,url:`https://www.millionverifier.com/`,connectionType:`api_key`,logoUrl:`https://imagedelivery.net/3B3AWuP94-S3Ro5eEac6JA/7a8bd9cb-efeb-492e-3f4c-311c9492b800/icon`,background:{light:`#D8F0DB`,dark:`#0E3215`},oAuthConfig:null},logodev:{name:`logodev`,label:`Logo.dev`,description:`Every company logo, one simple API.`,public:!0,hasManagedConnections:!0,allowsUserConnections:!0,url:`https://www.logo.dev/`,connectionType:`api_key`,logoUrl:`https://imagedelivery.net/3B3AWuP94-S3Ro5eEac6JA/1defa51b-5c01-4034-1030-60f68aa46400/icon`,background:{light:`#F4ECD4`,dark:`#2C2406`},oAuthConfig:null},crustdata:{name:`crustdata`,label:`Crustdata`,description:`Real-time company & people data`,public:!0,hasManagedConnections:!0,allowsUserConnections:!0,url:`https://crustdata.com/`,connectionType:`api_key`,logoUrl:`https://imagedelivery.net/3B3AWuP94-S3Ro5eEac6JA/fa05be24-d174-40f0-69c2-4fdb43c6be00/icon`,background:{light:`#FFE2D2`,dark:`#3C1A08`},oAuthConfig:null},amplemarket:{name:`amplemarket`,label:`Amplemarket`,description:`Sales data platform`,public:!0,hasManagedConnections:!0,allowsUserConnections:!0,url:`https://www.amplemarket.com`,connectionType:`api_key`,logoUrl:`https://imagedelivery.net/3B3AWuP94-S3Ro5eEac6JA/adecf16b-4187-409b-d77f-16fc07fc6100/icon`,background:{light:`#FFD8E1`,dark:`#45102A`},oAuthConfig:null}},fr=[`if`,`elsif`,`else`,`endif`,`unless`,`endunless`,`for`,`endfor`,`break`,`continue`,`output`],pr=[`json`,`escape`,`escape_once`,`default`,`upcase`,`downcase`,`size`,`join`,`first`,`last`,`replace`,`truncate`,`strip`,`newline_to_br`,`url_encode`],mr=/^[A-Z][A-Z0-9_]*$/,hr=/^[A-Z][A-Z0-9_]*$/,gr=/^[a-zA-Z_][a-zA-Z0-9_]*$/,_r=`SECRETS`,vr=`CONSTANTS`,yr=new Set(fr),br=new Set(pr),xr=e=>`{${e}}`;var Sr=class extends i{constructor(e){super(),this.values=e}liquidMethodMissing(e){let t=String(e);if(!mr.test(t))throw Error(`Secret key "${t}" must be uppercase letters, digits, and underscores (e.g. SECRETS.API_KEY).`);if(!(t in this.values))throw Error(`Missing secret: SECRETS.${t}`);return this.values[t]}},Cr=class extends i{constructor(e){super(),this.values=e}liquidMethodMissing(e){let t=String(e);if(!hr.test(t))throw Error(`Constant key "${t}" must be uppercase letters, digits, and underscores (e.g. CONSTANTS.PROMO).`);if(!(t in this.values))throw Error(`Missing constant: CONSTANTS.${t}`);return this.values[t]}};function wr(e){let t=e.trim();if(!t)throw Error(`Empty {% output %} tag β€” expected at least a name (e.g. {% output rec, type: "string", description: "..." %}).`);let n=t.match(/^([a-zA-Z_][a-zA-Z0-9_]*)\s*(?:,|$)/);if(!n||!n[1])throw Error(`Invalid {% output %} tag β€” expected a name as the first argument, got: ${t}`);let r=n[1];if(!gr.test(r))throw Error(`Invalid {% output %} tag name "${r}" β€” must start with a letter or underscore and contain only letters, digits, and underscores.`);let i=t.slice(n[0].length).trim(),a={},o=/([a-zA-Z_][a-zA-Z0-9_]*)\s*:\s*(?:"((?:\\.|[^"\\])*)"|'((?:\\.|[^'\\])*)'|(true|false))\s*(?:,|$)/g,s=0,c;for(;(c=o.exec(i))!==null;){s=c.index+c[0].length;let e=c[1],t=c[2]??c[3]??c[4];c[4]===void 0?a[e]=t:a[e]=t===`true`}if(i&&s<i.length)throw Error(`Invalid {% output %} tag β€” could not parse arguments after "${i.slice(s)}". Expected key: "value" pairs.`);let l=a.type;if(typeof l!=`string`||!l)throw Error(`{% output ${r} %} tag is missing required "type" argument (e.g. type: "string").`);let u=a.description;if(typeof u!=`string`||!u)throw Error(`{% output ${r} %} tag is missing required "description" argument (e.g. description: "What this means.").`);return{name:r,type:l,description:u,required:typeof a.required==`boolean`?a.required:!0,format:typeof a.format==`string`?a.format:null,schemaRef:typeof a.schema==`string`?a.schema:null}}function Tr(){let e=new a({strictVariables:!1,strictFilters:!0,jsTruthy:!0,greedy:!1,catchAllErrors:!1,ownPropertyOnly:!0});e.registerTag(`output`,{parse(e,t){let n=wr(e.args);this.outputDecl=n},render(e,t){let n=this.outputDecl;if(!(e.globals&&e.globals.__outputAllowed))throw Error(`{% output %} is not allowed in this template (referenced output "${n.name}").`);t.write(xr(n.name))}});for(let t of Object.keys(e.tags))yr.has(t)||delete e.tags[t];for(let t of Object.keys(e.filters))br.has(t)||delete e.filters[t];return e}let Er=null;function Dr(){return Er||=Tr(),Er}async function Or(e,t,n={}){let r=Dr(),i=n.renderLimitMs??250,a={...t.inputs??{},[_r]:new Sr(t.secrets??{}),[vr]:new Cr(t.constants??{})},o={globals:{__outputAllowed:n.outputAllowed===!0},renderLimit:i},s=await Promise.race([r.parseAndRender(e,a,o),new Promise((e,t)=>setTimeout(()=>t(Error(`Liquid render exceeded ${i}ms.`)),i))]);return String(s)}function kr(e,t,n={}){let r=Dr(),i=n.renderLimitMs??250,a={...t.inputs??{},[_r]:new Sr(t.secrets??{}),[vr]:new Cr(t.constants??{})},o=r.parseAndRenderSync(e,a,{globals:{__outputAllowed:n.outputAllowed===!0},renderLimit:i});return String(o)}function Ar(e){return Dr().parse(e)}function jr(e){let t=Dr().parse(e),n={scopeStack:[],guardStack:[],inputs:new Map,secrets:new Set,constants:new Set,outputs:[],forDepth:0};Mr(t,n);let r={};for(let[e,t]of n.inputs)r[e]={required:t.unguardedRefs>0};return{inputs:r,secrets:[...n.secrets],constants:[...n.constants],outputs:n.outputs}}function Mr(e,t){for(let n of e)Nr(n,t)}function Nr(e,t){let n=e;if(n.value&&typeof n.value==`object`&&`filters`in n.value&&`initial`in n.value){Rr(n.value,t,!1);return}if(typeof n.name==`string`){Pr(n,t);return}}function Pr(e,t){switch(e.name){case`for`:Fr(e,t);return;case`if`:case`unless`:Ir(e,t);return;case`output`:Lr(e,t);return;case`break`:case`continue`:return;default:throw Error(`Unhandled liquid tag in analyzer: ${e.name}`)}}function Fr(e,t){if(t.forDepth+=1,t.forDepth>3)throw Error(`Liquid template exceeds maximum nested {% for %} depth of 3.`);e.collection!==void 0&&e.collection!==null&&zr(e.collection,t,!1);let n=typeof e.variable==`string`?e.variable:null;n&&t.scopeStack.push(n),Mr(Array.isArray(e.templates)?e.templates:[],t),n&&t.scopeStack.pop(),Mr(Array.isArray(e.elseTemplates)?e.elseTemplates:[],t),--t.forDepth}function Ir(e,t){let n=Array.isArray(e.branches)?e.branches:[];e.name;for(let e=0;e<n.length;e++){let r=n[e],i=r.value,a=null;e===0&&i&&typeof i==`object`&&(a=Hr(i.initial)),a&&t.guardStack.push(a),i&&typeof i==`object`&&Rr(i,t,!1),Mr(r.templates,t),a&&t.guardStack.pop()}Mr(Array.isArray(e.elseTemplates)?e.elseTemplates:[],t)}function Lr(e,t){let n=e.outputDecl;if(!n){let t=e.token?.args;typeof t==`string`&&(n=wr(t))}if(!n)throw Error(`Internal: {% output %} tag missing parsed declaration.`);t.outputs.push({name:n.name,type:n.type,description:n.description,required:n.required,format:n.format,schemaRef:n.schemaRef??void 0})}function Rr(e,t,n){let r=e.filters.some(e=>e.name===`default`),i=n||r;for(let n of e.initial.postfix)Ur(n)&&Vr(n,t,i);for(let n of e.filters)for(let e of n.args)Br(e,t)}function zr(e,t,n){Ur(e)&&Vr(e,t,n)}function Br(e,t){if(Array.isArray(e)){let n=e[1];n&&zr(n,t,!1)}else zr(e,t,!1)}function Vr(e,t,n){let r=e.props;if(r.length===0)return;let i=r[0];if(!i||!Wr(i))return;let a=i.content;if(t.scopeStack.includes(a))return;if(a===`SECRETS`){let e=r[1];if(!e||!Wr(e))throw Error(`Invalid SECRETS reference β€” expected SECRETS.KEY (got ${qr(r)}).`);let n=e.content;if(!mr.test(n))throw Error(`Invalid SECRETS key "${n}" β€” must be uppercase letters, digits, and underscores (e.g. SECRETS.API_KEY).`);t.secrets.add(n);return}if(a===`CONSTANTS`){let e=r[1];if(!e||!Wr(e))throw Error(`Invalid CONSTANTS reference β€” expected CONSTANTS.KEY (got ${qr(r)}).`);let n=e.content;if(!hr.test(n))throw Error(`Invalid CONSTANTS key "${n}" β€” must be uppercase letters, digits, and underscores (e.g. CONSTANTS.PROMO).`);t.constants.add(n);return}let o=n||t.guardStack.includes(a),s=t.inputs.get(a)??{unguardedRefs:0,guardedRefs:0};o?s.guardedRefs+=1:s.unguardedRefs+=1,t.inputs.set(a,s)}function Hr(e){if(e.postfix.length===1){let t=e.postfix[0];if(t&&Ur(t)&&t.props.length===1){let e=t.props[0];if(e&&Wr(e))return e.content}}if(e.postfix.length===3){let[t,n,r]=e.postfix;if(t&&n&&r&&Ur(t)&&t.props.length===1){let e=t.props[0];if(e&&Wr(e)&&Gr(n)&&Kr(r,[`==`,`!=`]))return e.content}}return null}function Ur(e){return e.kind===o.PropertyAccess}function Wr(e){return!!e&&typeof e==`object`&&e.kind===o.Word}function Gr(e){if(e.kind!==o.Literal)return!1;let t=e.literal;return t===`nil`||t===`null`}function Kr(e,t){return e.kind===o.Operator?t.includes(e.operator):!1}function qr(e){let t=[];for(let n of e)n&&Wr(n)?t.push(n.content):t.push(`?`);return t.join(`.`)}function Jr(e){let t=e.split(`_`),n=t[0],r=t.slice(1).join(`_`);if(!n)throw Error(`connection string of invalid format`);try{return{provider:hn.parse(n),id:r}}catch{throw Error(`Connection string ${e}: Failed to parse provider name.`)}}function Yr(e){return`${e.provider}_${e.id}`}const Xr=new s;function Zr(e){return Xr.validateSchema(e)}function Qr(e){let t=!1;return c(e,{},e=>{e.type&&[`string`,`number`,`boolean`,`integer`,`null`].includes(e.type)&&(t=!0),e.type===`object`&&e.properties&&Object.keys(e.properties).length>0&&(t=!0),e.type===`array`&&e.items&&(t=!0)}),!t}const $r=[`gemini-flash-latest`,`openai-gpt-latest`,`openai-gpt-mini-latest`],ei={"gemini-flash-latest":{provider:`gemini`,rateLimitOperation:`gemini_25_flash_preview`,rateLimitRatio:1,allowManagedConnection:!0,defaultCredits:.5,billingMode:`always`},"openai-gpt-latest":{provider:`openai`,rateLimitOperation:`openai_gpt-5`,rateLimitRatio:1,allowManagedConnection:!0,defaultCredits:1,billingMode:`always`},"openai-gpt-mini-latest":{provider:`openai`,rateLimitOperation:`openai_gpt-5-mini`,rateLimitRatio:1,allowManagedConnection:!0,defaultCredits:.5,billingMode:`always`}};function ti(e,t){let n={};for(let r of $r){let i=ei[r],a=`${e}-${r}`;n[a]={credits:{default:t?.[r]??i.defaultCredits},allowManagedConnection:!0,provider:i.provider,mode:i.billingMode}}return n}function ni(e,t){return`${t}-${e}`}function ri(e){let t=ei[e];if(!t)throw Error(`Unknown AI model: ${e}`);return[t.provider]}function ii(e){let t=ei[e];if(!t)throw Error(`Unknown AI model: ${e}`);return[{provider:t.provider,rateLimitRatio:t.rateLimitRatio,rateLimitOperation:t.rateLimitOperation,allowManagedConnection:t.allowManagedConnection}]}function ai(){let e=new Set;for(let t of $r)e.add(ei[t].provider);return[...e]}function oi(e){if(!e?.requires)return;let t=[];e.requires.connection&&t.push(ln(e.requires.connection));for(let n of e.requires.fields??[])t.push(un(e=>n.split(`.`).reduce((e,t)=>e==null?e:e[t],e),`Set ${n} first`));if(t.length!==0)return t.length===1?t[0]:dn(...t)}function si(e,t,n){let i={exampleValue:null,jsonSchema:null},a=t.fieldAnnotations.annotations[e];if(a?.json_metadata?.example_value&&(i.exampleValue=a.json_metadata.example_value||null),a?.json_metadata?.schema&&(i.jsonSchema=a.json_metadata.schema||null),i.exampleValue&&i.jsonSchema||!t.resolvedFieldNames[e])return i;let o=pn(e,n,t),s=an(o.fieldName)?_(o.fieldName):null;return s?.jsonMeta?{jsonSchema:s.jsonMeta.zodSchema?r.toJSONSchema(s.jsonMeta.zodSchema):null,exampleValue:s.jsonMeta.exampleValue||null}:i}const y=r.registry();{let e=y._map,t=y.get.bind(y);y.get=n=>{let r=n;for(;r;){let t=e.get(r);if(typeof t==`function`)return t;r=r?._zod?.parent}return t(n)}}const b=r.registry(),x={text_input:r.coerce.string(),textarea_input:r.string(),prompt_input:r.object({template:r.string(),json_schemas:r.record(r.string(),r.record(r.string(),r.unknown()))}),template_input:r.string(),tagged_text_input:r.coerce.string().nullable(),boolean_input:r.boolean(),nullable_boolean_input:r.boolean().nullable(),select_input:r.string(),multi_select_input:r.array(r.string()),async_multi_select_input:r.array(r.string()),int_input:r.coerce.number().int().nullable(),number_input:r.coerce.number().optional(),min_max_int_input:r.object({min:r.number().nullable(),max:r.number().nullable()}),include_exclude_input:r.object({include:r.array(r.string()),exclude:r.array(r.string())}),include_exclude_select_input:r.object({include:r.array(r.string()),exclude:r.array(r.string())}),async_include_exclude_select_input:r.object({include:r.array(r.string()),exclude:r.array(r.string())}),exact_range_input:r.record(r.string(),r.number().nullable()),range_input:r.object({from:r.number().nullable(),to:r.number().nullable()}),date_range_input:r.record(r.string(),r.string()),multi_create_input:r.array(r.string()),ordered_multi_create_input:r.array(r.string()),tagged_ordered_multi_create_input:r.array(r.string()),key_value_list_input:r.array(r.object({key:r.string(),value:r.string()})),connector_input:r.object({connections:r.array(r.object({type:r.string(),connection:r.string()}))}).nullable(),providers_input:r.array(r.object({provider:r.string()})),json_extraction_input:r.record(r.string(),r.unknown()),pipes_run_if_input:r.record(r.string(),r.unknown()).nullable(),fields_select_input:r.array(r.object({field_name:r.string()})),output_field_input:r.object({alias:r.string(),enabled:r.boolean()}),json_schema_input:r.record(r.string(),r.unknown()),cursor_pagination_metadata:r.object({limit:r.number()}),context_select_input:r.union([r.string(),r.array(r.string())])},ci=(e,t)=>{let n=x.multi_create_input;return e.maxItems&&(n=n.max(e.maxItems)),n=e.minItems?n.min(e.minItems):n.default([]),t.add(n,{type:`multi_create_input`,...e}),n},li=(e,t)=>{let n=x.ordered_multi_create_input;return e.maxItems&&(n=n.max(e.maxItems)),n=e.minItems?n.min(e.minItems):n.default([]),t.add(n,{type:`ordered_multi_create_input`,...e}),n},ui=/^\s*\{\{\s*[a-zA-Z_][a-zA-Z0-9_.]*(?:\s*\|\s*[^}]+)?\s*\}\}\s*$/,di=/\{\{|\{%/,fi=(e,t)=>{let n=x.tagged_ordered_multi_create_input;e.maxItems&&(n=n.max(e.maxItems)),n=n.check(e=>{let t=e;(t.value??[]).forEach((e,n)=>{let r=ui.test(e),i=di.test(e);!r&&i&&t.issues.push({code:`custom`,input:e,path:[n],message:`Each entry must be either plain text or a single field reference β€” not mixed.`})})}),n=e.minItems?n.min(e.minItems):n.default([]);let r={type:`tagged_ordered_multi_create_input`,...e};if(t===y){let i=t=>{let n=t.validationContext,i=n?Object.entries(n.fieldDefinitions).filter(([e,n])=>n.added_by.config_hash!==t.hash).filter(([t,n])=>!e.expectedTagType||n.type===e.expectedTagType).map(([e,t])=>({...t,resolvedName:e})):[];return{...r,inputFields:i}};return i.staticMeta={...r,inputFields:[]},t.add(n,i),n}return t.add(n,r),n},pi=(e,t)=>{let n=x.key_value_list_input;e.maxItems&&(n=n.max(e.maxItems)),n=n.check(e=>{let t=e;(t.value??[]).forEach((e,n)=>{Vi({value:e.key,issues:t.issues},!1,[n,`key`]),Vi({value:e.value,issues:t.issues},!1,[n,`value`])})}),n=n.default([]);let r={type:`key_value_list_input`,...e},i=e=>{let t=e.validationContext,n=t?Object.entries(t.fieldDefinitions).filter(([t,n])=>n.added_by.config_hash!==e.hash).map(([e,t])=>({...t,resolvedName:e})):[];return{...r,inputFields:n}};return i.staticMeta={...r,inputFields:[]},t.add(n,i),n},mi=(e,t)=>{let n=e.maxItems||200,r=x.include_exclude_input.check(e=>{e.value.include.length>n&&e.issues.push({code:`custom`,input:e.value.include,path:[`include`],message:`Array must contain at most ${n} element(s)`}),e.value.exclude.length>n&&e.issues.push({code:`custom`,input:e.value.exclude,path:[`exclude`],message:`Array must contain at most ${n} element(s)`})}).default({include:[],exclude:[]});return e.description&&r.describe(e.description),t.add(r,{type:`include_exclude_input`,...e}),r},hi=()=>{let e=$n;return y.add(e,e=>{let t=e.validationContext;return{label:``,description:``,type:`json_extraction_input`,fields:Object.entries(t.fieldDefinitions).filter(([e,t])=>e.toLowerCase()!==`id`&&t.type===`json`).map(([e,n])=>{let{jsonSchema:r,exampleValue:i}=si(e,t,n)||{};return{fieldName:e,fieldLabel:n.label,schema:r||null,exampleValue:i||null}}),path:`config.json_extraction`,groupPath:`config.json_extraction`,sectionKey:`general`}}),e},gi=(e,t)=>{let n=r.array(r.object({provider:r.enum(e.availableProviders)})).max(e.maxItems||99).min(1).default(e.defaultProviders),i=e.availableProviders.map(t=>{let n=e.providerCredits?.[t];return{value:t,label:dr[t].label,widgets:{provider_logo:{provider:t},...typeof n==`number`?{pricing:{credits:n}}:{}}}});return t.add(n,{label:`Provider sequence`,description:``,path:`config.providers`,groupPath:`config.providers`,type:`providers_input`,options:i,defaultProviders:e.defaultProviders,maxItems:e.maxItems,sectionKey:e.sectionKey}),n},_i=(e,t)=>{let n=e.maxItems||200,r=x.include_exclude_select_input.check(e=>{e.value.include.length>n&&e.issues.push({code:`custom`,input:e.value.include,path:[`include`],message:`Array must contain at most ${n} element(s)`}),e.value.exclude.length>n&&e.issues.push({code:`custom`,input:e.value.exclude,path:[`exclude`],message:`Array must contain at most ${n} element(s)`})}).default({include:[],exclude:[]});return e.description&&r.describe(e.description),t.add(r,{type:`include_exclude_select_input`,...e}),r},vi=(e,t)=>{let n=x.exact_range_input.check(t=>{e.min===void 0&&e.max===void 0||Object.values(t.value).filter(e=>e!==null).some(t=>e.min!=null&&t<e.min||e.max!=null&&t>e.max)&&t.issues.push({code:`custom`,input:t.value,message:`Values must be between ${e.min??`any`} and ${e.max??`any`}`})});return e.description&&n.describe(e.description),t.add(n,{type:`exact_range_input`,...e}),n},yi=(e,t)=>{let n=r.object({from:r.number().optional().nullable(),to:r.number().optional().nullable()}).default({from:null,to:null}),i=n;return(e.min!==void 0||e.max!==void 0)&&(i=n.check(t=>{Object.values(t.value).filter(e=>e!=null).every(t=>(e?.min==null||t>=e.min)&&(e.max==null||t<=e.max))||t.issues.push({code:`custom`,input:t.value,message:`Values must be between ${e.min??`any`} and ${e.max??`any`}`}),t.value.from&&t.value.to&&t.value.from>t.value.to&&t.issues.push({code:`custom`,input:t.value,message:`'From' value must be smaller than 'to' value.`})})),e.description&&i.describe(e.description),t.add(i,{type:`range_input`,...e}),i},bi=(e,t)=>{let n=x.date_range_input.check(e=>{let t=/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}/;for(let[n,r]of Object.entries(e.value))r&&!t.test(r)&&e.issues.push({code:`custom`,input:r,path:[n],message:`Must be an ISO datetime string`})});return e.description&&n.describe(e.description),t.add(n,{type:`date_range_input`,...e}),n},xi=(e,t)=>{let n=x.boolean_input.default(e.defaultValue);return e.description&&n.describe(e.description),t.add(n,{...e,required:!1,type:`boolean_input`}),n},Si=(e,t)=>{let n=x.nullable_boolean_input.default(e.defaultValue);return e.description&&n.describe(e.description),t.add(n,{...e,required:!1,type:`nullable_boolean_input`,defaultValue:e.defaultValue}),n},Ci=(e,t)=>{let n=x.text_input;return e.minLength&&(n=n.min(e.minLength)),e.maxLength&&(n=n.max(e.maxLength)),e.pattern&&(n=n.regex(new RegExp(e.pattern))),e.minLength||(n=n.nullable()),e.description&&n.describe(e.description),t.add(n,{type:`text_input`,...e}),n},wi=(e,t)=>{let n=x.textarea_input;return e.minLength&&(n=n.min(e.minLength)),e.maxLength&&(n=n.max(e.maxLength)),e.description&&n.describe(e.description),t.add(n,{type:`textarea_input`,...e}),n},Ti=(e,t,n=`pipe_io`)=>{let i=r.object({alias:r.string().default(``).describe(`Rename this output field. Leave empty to use default name.`),enabled:r.boolean().default(!0).describe(`Whether to include this field in the output.`)}).describe(`Output field '${e.fieldName}'`);return t.add(i,{type:`output_field_input`,label:`Rename *${e.fieldName}*`,placeholder:e.fieldName,path:`config.output_fields.${e.fieldName}`,description:void 0,groupPath:`config.output_fields`,sectionKey:n}),i.default({alias:``,enabled:!0})},Ei=(e,t)=>{let n=x.int_input.optional().check(t=>{if(t.value==null){e.required!==!1&&t.issues.push({code:`custom`,input:t.value,message:`Required`});return}e.min!=null&&t.value<e.min&&t.issues.push({code:`custom`,input:t.value,message:`Value must be at least ${e.min}`}),e.max!=null&&t.value>e.max&&t.issues.push({code:`custom`,input:t.value,message:`Value must be at most ${e.max}`})});return e.description&&n.describe(e.description),t.add(n,{...e,type:`int_input`}),n},Di=(e,t)=>{let n=x.number_input.check(t=>{if(t.value===void 0){e.required&&t.issues.push({code:`custom`,input:t.value,message:`Required`});return}e.min!=null&&t.value<e.min&&t.issues.push({code:`custom`,input:t.value,message:`Value must be at least ${e.min}`}),e.max!=null&&t.value>e.max&&t.issues.push({code:`custom`,input:t.value,message:`Value must be at most ${e.max}`})});return e.description&&n.describe(e.description),t.add(n,{...e,type:`number_input`}),n},Oi=(e,t)=>{let n=x.json_schema_input,r=e.required?n:n.optional();return r.check(e=>{Zr(e.value)||e.issues.push({code:`custom`,input:e.value,message:`JSON schema is invalid. Check your input.`})}),e.allowEmpty||(r=r.check(e=>{Qr(e.value)&&e.issues.push({code:`custom`,message:`JSON Schema must define a meaningful value. Can not be an empty object or array.`,input:e.value})})),t.add(r,{...e,type:`json_schema_input`}),r},ki=(e,t)=>{let n=e.options.map(e=>e.value),r=new Set([...n,``]),i=x.select_input.check(t=>{if(t.value===``){e.required&&t.issues.push({code:`custom`,input:t.value,message:`Required`});return}r.has(t.value)||t.issues.push({code:`custom`,input:t.value,message:`Must be one of: ${[...r].filter(e=>e).join(`, `)}`})}),a=e.defaultValue?i.default(e.defaultValue):i;return e.description&&a.describe(e.description),t.add(a,{type:`select_input`,...e}),a},Ai=({billableOperations:e,...t},n)=>{let i=r.enum($r).default(t.defaultValue||`gemini-flash-latest`);return n.add(i,{type:`select_input`,options:$r.map(t=>{let n=e[Object.keys(e).find(e=>e.endsWith(`-${t}`))];if(!n)throw Error(`Unable to find billing info for model ${t}`);return{label:t,value:t,widgets:{logo:{url:dr[ei[t].provider].logoUrl},pricing:{credits:n.credits.default}}}}),required:!0,description:``,label:`AI Models`,...t}),i},ji=(e,t)=>{let n=e.options.map(e=>e.value),i=new Set(n),a=r.array(r.enum(Array.from(i))).check(t=>{e.required&&t.value.length===0&&t.issues.push({code:`custom`,input:t.value,message:`Required`}),t.value.forEach((e,r)=>{i.has(e)||t.issues.push({code:`custom`,input:e,path:[r],message:`Must be one of: ${n.join(`, `)}`})})});return t.add(a,{type:`multi_select_input`,...e}),a},Mi=(e,t)=>{let n=e.required?x.context_select_input.check(e=>{(e.value===``||Array.isArray(e.value)&&e.value.length===0)&&e.issues.push({code:`custom`,input:e.value,message:`Required`})}):x.context_select_input,r=e.defaultValue?n.default(e.defaultValue):n,i=e.enabledIf??oi(e.optionsDef);return t.add(r,{type:`context_select_input`,...e,enabledIf:i,options:[]}),r},Ni=(e,t)=>{let n=x.min_max_int_input.check(t=>{for(let n of[`min`,`max`]){let r=t.value[n];if(r!=null){if(!Number.isInteger(r)){t.issues.push({code:`custom`,input:r,path:[n],message:`Must be an integer`});continue}(r<e.min||r>e.max)&&t.issues.push({code:`custom`,input:r,path:[n],message:`Must be between ${e.min} and ${e.max}`})}}});return t.add(n,{type:`min_max_int_input`,...e}),n},Pi=(e,t)=>{let n=x.async_multi_select_input.check(t=>{e.required&&t.value.length===0&&t.issues.push({code:`custom`,input:t.value,message:`Required`})});return t.add(n,{type:`async_multi_select_input`,...e}),n},Fi=(e,t)=>{let n=e.maxItems||200,r=x.async_include_exclude_select_input.check(e=>{e.value.include.length>n&&e.issues.push({code:`custom`,input:e.value.include,path:[`include`],message:`Array must contain at most ${n} element(s)`}),e.value.exclude.length>n&&e.issues.push({code:`custom`,input:e.value.exclude,path:[`exclude`],message:`Array must contain at most ${n} element(s)`})}).default({include:[],exclude:[]});return t.add(r,{type:`async_include_exclude_select_input`,...e}),r};function Ii(e,t){let n=e.reduce((e,t)=>{let n=t.groupPath||``;return e[n]??=[],e[n].push(t),e},{});return Object.entries(n).map(([e,n])=>({type:`group`,groupPath:e,description:t[e]?.description,label:t[e]?.label,iconKey:t[e]?.iconKey,defaultExpand:!!t[e]?.defaultExpand,order:t[e]?.order??99,fields:n.sort((e,t)=>(e.order||0)-(t.order||0))})).sort((e,t)=>e.order-t.order)}const S=()=>{let e=ur.nullish();return y.add(e,e=>{let t=e.validationContext;return{label:``,description:``,type:`pipes_run_if_input`,groupPath:`run_if`,path:`run_if`,sectionKey:`pipe_io`,fields:Object.entries(t.fieldDefinitions).filter(([e,t])=>t.type!==`json`&&e.toLowerCase()!==`id`).map(([e,t])=>({fieldName:e,fieldLabel:t.label,format:t.format,type:t.type}))}}),e},Li={pipe_io:{type:`form_section`,label:`In- and outputs`,description:`Configure output fields and reassign inputs.`,path:`config.pipe_io`},"config.filters":{type:`form_section`,label:`Filters`,path:`config.filters`,description:`Narrow down the search output`},general:{type:`form_section`,path:`general`,label:`Behavior`},pagination:{type:`form_section`,path:`pagination`}},Ri={general:1,pagination:2,"config.filters":3,pipe_io:10};function zi({fieldMetadata:e,store:t}){if(e.type===`context_select_input`||e.type===`tagged_text_input`){t.field_options??={};let n=t.field_options[e.path]?.options||[],r=e.optionsDef?.widgets;e.options=r?n.map(e=>({...e,widgets:{...r,...e.widgets??{}}})):n}return e}const Bi=({schema:e,groupPathMatch:t,extractFromSchema:n,sectionOrder:i=Ri,sectionMap:a=Li,store:o,formResolvers:s})=>{let c={};function l(e){let i=n(e);if(i){c[i.sectionKey]??={type:`section`,groups:[],metadata:a[i.sectionKey]};let e=c[i.sectionKey],n=e?.groups.find(e=>e.groupPath===i.groupPath);if(n){let e=zi({fieldMetadata:i,store:o,formResolvers:s});e&&n.fields.push(e)}else{let n=t[i.groupPath],r=zi({fieldMetadata:i,store:o,formResolvers:s});r&&e.groups.push({groupPath:i.groupPath,fields:[r],type:`group`,label:n?.label,defaultExpand:!!n?.defaultExpand,description:n?.description,iconKey:n?.iconKey,order:n?.order})}}if(typeof e==`object`&&`unwrap`in e&&typeof e.unwrap==`function`&&l(e.unwrap()),e instanceof r.ZodObject)for(let t of Object.values(e.shape))l(t)}l(e);let u=Object.values(c);return u.forEach(e=>{e.groups.sort((e,t)=>(e.order??99)-(t.order??99))}),[...u].filter(e=>e.groups.length!==0).sort((e,t)=>(i?.[e.metadata?.path||``]??99)-(i?.[t.metadata?.path||``]??99))};function Vi(e,t,n=[]){let r=e.value;if(!(typeof r!=`string`||!r))try{let i=jr(r);!t&&i.outputs.length>0&&e.issues.push({code:`custom`,input:r,path:n,message:`{% output %} tags are not allowed in this field.`})}catch(t){e.issues.push({code:`custom`,input:r,path:n,message:t instanceof Error?t.message:String(t)})}}const Hi=e=>{let t=(e.supportedTags??[]).includes(`output`),n=r.object({template:r.string().min(10).check(e=>Vi(e,t,[`template`])).describe(e.description||'Liquid prompt with `{{ field }}` input refs, `{{ field | default: "" }}` for optional refs, `{{ SECRETS.KEY }}` for secrets, `{{ CONSTANTS.KEY }}` for plaintext constants, and `{% output name, type: "string", description: "..." %}` to declare model outputs. Supports `{% if %}` / `{% for %}` control flow. Example: "Summarize {{ name }}. {% output summary, type: \\"string\\", description: \\"One-line summary\\" %}"'),json_schemas:r.record(r.string().min(1,`Schema name cannot be empty`),r.record(r.string(),r.any())).optional().describe(`JSON schemas for output fields with type="json". Keys are referenced via schema="<name>" in output tags.`)});return y.add(n,t=>{let n=t.validationContext;return{type:`prompt_input`,inputFields:Object.entries(n.fieldDefinitions).filter(([e,n])=>n.added_by.config_hash!==t.hash).map(([e,t])=>({...t,resolvedName:e})),...e}}),n},Ui=e=>{let t=r.string();e.required&&(t=t.min(1));let n=t.check(e=>Vi(e,!1,[])).describe(e.description||'Liquid template with `{{ field }}` input refs, `{{ field | default: "" }}` for optional refs, `{{ SECRETS.KEY }}` for secrets, `{{ CONSTANTS.KEY }}` for plaintext constants, and `{% if %}` / `{% for %}` control flow. Example: "Write to {{ name }} about {{ topic | default: \\"the project\\" }}."');return y.add(n,t=>{let n=t.validationContext;return{type:`template_input`,inputFields:Object.entries(n.fieldDefinitions).filter(([e,n])=>n.added_by.config_hash!==t.hash).map(([e,t])=>({...t,resolvedName:e})),rows:e.rows||10,...e}}),n},C=e=>{let t=`${e.multiline?`Multi-line`:`Single-line`} ${e.expectedTagType} value, optionally containing \`{{ field }}\` Liquid input refs (use \`| default: ""\` for optional refs), \`{{ SECRETS.KEY }}\` for encrypted secrets, and \`{{ CONSTANTS.KEY }}\` for plaintext constants.`,n=r.coerce.string();e.minLength&&(n=n.min(e.minLength)),e.maxLength&&(n=n.max(e.maxLength)),e.pattern&&(n=n.regex(new RegExp(e.pattern))),e.minLength||(n=n.nullable()),n=n.check(e=>Vi(e,!1,[])),n=n.describe(e.description||t);let i=e.optionsDef?{...e.optionsDef,enabledIf:e.optionsDef.enabledIf??oi(e.optionsDef)}:void 0,a={type:`tagged_text_input`,...e,optionsDef:i,options:[]},o=t=>{let n=t.validationContext,r=Object.entries(n.fieldDefinitions).filter(([e,n])=>n.added_by.config_hash!==t.hash).filter(([t,n])=>n.type===e.expectedTagType).map(([e,t])=>({...t,resolvedName:e}));return{...a,inputFields:r}};return o.staticMeta={...a,inputFields:[]},y.add(n,o),n};function Wi(e,t){y.add(e,({userConnections:e,pipeEntry:n})=>{let r=new Set(n.allowedUserConnectionProviders),i=e.filter(e=>r.has(e.provider));return{label:``,description:``,groupPath:`connector`,path:`connector`,connectorMode:t,type:`connector_input`,sectionKey:`pipe_io`,supportsUserConnections:r.size>0,filteredConnections:i.map(e=>({provider:e.provider,connection:Yr({id:e.public_id,provider:e.provider})}))}})}const Gi=()=>{let e=ar;return Wi(e,`required`),e},w=()=>{let e=v;return Wi(e,`optional`),e},T=()=>{let e=or;return Wi(e,`disabled`),e};function Ki(e,t){return Object.entries(t.fieldDefinitions).filter(([t,n])=>n.added_by.config_hash!==e&&t.toLowerCase()!==`id`).map(([e,t])=>({label:e,value:e,type:t.type,format:t.format}))}const E=e=>{let t=r.object({alias:r.string().describe(`Override field name mapping. Leave empty to use default.`)});return y.add(t,t=>{let n=t.validationContext;return{type:`select_input`,required:!1,sectionKey:`pipe_io`,defaultValue:void 0,placeholder:e.fieldName,options:Ki(t.hash,n),path:`config.input_fields.${e.fieldName}.alias`,label:`Assign *${e.fieldName}* to:`,description:``,groupPath:`config.input_fields`,multiple:!1}}),t.default({alias:``})},D=e=>gi(e,y),qi=e=>{let t=x.fields_select_input.check(e=>{e.value.forEach((t,n)=>{t.field_name.length<1&&e.issues.push({code:`custom`,input:t.field_name,path:[n,`field_name`],message:`field_name must not be empty`})})});return t=e.minItems?t.min(e.minItems):t.default([]),y.add(t,t=>{let n=t.validationContext;return{type:`fields_select_input`,options:Object.entries(n.fieldDefinitions).filter(([e])=>e.toLowerCase()!==`id`).map(([e,t])=>({fieldName:e,fieldLabel:e,type:t.type})).map(e=>({value:e.fieldName,label:e.fieldLabel,widgets:{field_type:{type:e.type}}})),...e}}),t},Ji=e=>mi(e,y),Yi=e=>ci(e,y),Xi=e=>li(e,y),Zi=e=>fi(e,y),Qi=e=>pi(e,y),$i=e=>_i(e,y),ea=e=>Fi(e,y),ta=e=>vi(e,y),na=e=>bi(e,y),O=e=>xi(e,y),k=e=>Ti(e,y),ra=e=>Ci(e,y),ia=e=>wi(e,y),aa=e=>ki(e,y),oa=e=>Ai(e,y),sa=e=>ji(e,y),ca=e=>Ei(e,y),la=e=>Di(e,y),ua=e=>Oi(e,y),da=e=>Mi(e,y),A=e=>ci(e,b),fa=e=>li(e,b),pa=e=>Ni(e,b),j=e=>mi(e,b),M=e=>_i(e,b),ma=e=>vi(e,b),ha=e=>yi(e,b),ga=e=>bi(e,b),_a=e=>xi(e,b),va=e=>Si(e,b),N=e=>Ti(e,b,`pipe_io`),ya=e=>Ci(e,b),ba=e=>wi(e,b),xa=e=>ki(e,b),P=e=>ji(e,b),F=e=>Pi(e,b),I=e=>Fi(e,b),L=e=>Ei(e,b),Sa=e=>Di(e,b),R=e=>(e=e.check(e=>{let t=e.value,n=!1;for(let e in t)if(t[e]?.enabled){n=!0;break}n||e.issues.push({code:`custom`,input:e.value,message:`All output fields are disabled. Enable at least one output.`})}),e.optional()),z=e=>e.optional();function Ca(e,t){if(!e)return t;let n={...e};for(let[e,r]of Object.entries(t))n[e]===void 0?n[e]=r:n[e]!==null&&typeof n[e]==`object`&&!Array.isArray(n[e])&&typeof r==`object`&&r&&!Array.isArray(r)&&(n[e]=Ca(n[e],r));return n}const B={EMAIL:`Email`,TEXT:`Text`,CHAT:`Chat`,PERSONAL_EMAIL:`Personal Email`,NAMES:`Names`,WORK_EMAIL:`Work Email`,WATERFALL:`Waterfall`,WEBSITE:`Website`,SCRAPE:`Scrape`,ADDRESS:`Address`,NEWS:`News`,LINKEDIN:`LinkedIn`,FINANCIAL_DATA:`Financial Data`,AI:`AI`,PHONE:`Phone Number`,NEW:`New`,BETA:`Beta`,PEOPLE_PROFILES:`People Profiles`,COMPANY_PROFILES:`Company Profiles`,JSON:`Json`,FIELDS:`Fields`,LOGIC:`Logic`,DEPRECATED:`Deprecated ❌`},wa=e=>typeof e.kind==`string`,Ta=e=>wa(e)?e:{kind:`field`,field:e},V=e=>({kind:`field`,field:e}),Ea=(...e)=>({kind:`all`,of:e.map(Ta)}),H=(...e)=>({kind:`any`,of:e.map(Ta)}),Da=e=>({kind:`optional`,field:e});function Oa(e,t){switch(e.kind){case`optional`:return!0;case`field`:return t.has(e.field.resolvedName);case`all`:return e.of.every(e=>Oa(e,t));case`any`:return e.of.some(e=>Oa(e,t))}}function ka(e){switch(e.kind){case`field`:return[{field:e.field,required:!0}];case`optional`:return[{field:e.field,required:!1}];case`all`:case`any`:return e.of.flatMap(ka)}}function Aa(e,t){let n=ja(e,t);return n.ok?{valid:!0,failedPipeInputField:null,failedRecordField:null}:{valid:!1,failedPipeInputField:n.field,failedRecordField:n.recordField}}function ja(e,t){switch(e.kind){case`optional`:return{ok:!0};case`field`:{let n=t.fields[e.field.resolvedName];if(!n)throw Error(`Record field does not exist ${e.field.name} for requirement.`);return n.status===`completed`||n.status===`queued`?{ok:!0}:{ok:!1,field:e.field,recordField:n}}case`all`:for(let n of e.of){let e=ja(n,t);if(!e.ok)return e}return{ok:!0};case`any`:{let n=null,r=!1;for(let i of e.of)try{let e=ja(i,t);if(r=!0,e.ok)return{ok:!0};n=e}catch{}return r?n:{ok:!0}}}}function Ma(e){if(typeof e!=`object`||!e)return e;if(Array.isArray(e))return e.map(Ma).filter(e=>!jt(e));let t={};for(let[n,r]of Object.entries(e)){let e=Ma(r);jt(e)||(t[n]=e)}return t}const Na=await l();var Pa=class e{static hashObject(t){if(!Na)throw Error(`HashAPI not initialized`);let{h64ToString:n}=Na,r=e.normalizeObject(t);return n(JSON.stringify(r))}static normalizeObject(t){if(typeof t!=`object`||!t)return t;if(Array.isArray(t))return t.map(t=>e.normalizeObject(t));let n={},r=Object.keys(t).sort();for(let i of r)n[i]=e.normalizeObject(t[i]);return n}};function Fa(e,t){let n={pipeId:e,config:Ma(t)};return Pa.hashObject(n)}function Ia(e,t){let n={};return Object.values(t).forEach(t=>{let r=t,i=e.fields[r.resolvedName];i?.value!=null&&(n[r.resolvedName]=i.value)}),Object.keys(n).length===0?null:Pa.hashObject(Ma(n))}var U=class{validatePayload(e){try{return this.payloadSchema.parse(e)}catch(e){throw e instanceof n?Error(r.prettifyError(e)):e}}getSecretRequirements(){return[]}getConstantRequirements(){return[]}catalogOutput(e,{isPrimaryOutput:t=!1,resolveFormat:n,resolveType:r}={resolveType:void 0,resolveFormat:void 0,isPrimaryOutput:!1}){return{name:e.name,enabled:!!this.payload.config?.output_fields?.[e.name].enabled,type:r||e.type,format:n||e.format,resolvedName:this.payload.config?.output_fields?.[e.name]?.alias||e.name,description:e.description,jsonMeta:e.jsonMeta,label:e.label,isCatalogFIeld:!0,isPrimaryOutput:t}}getOutputFields(){let e={};for(let[t,n]of Object.entries(this.getRawOutputFields()))n.enabled&&(e[t]=n);return e}get inputFields(){let e={};for(let{field:t}of ka(this.getInputRequirement()))e[t.name]=t;return e}getConfigHashKey(){return Fa(this.payload.pipe_id,this.payload.config||{})}getInputHashKey(e){return Ia(e,this.inputFields)}};function La(e,t){let n={};for(let r of t)for(let t of Object.values(e))if(t&&t.provider===r&&t.allowManagedConnection){n[r]=t.credits.default;break}return n}function Ra(e){return ka(e).map(({field:e})=>e)}function za({recordField:e,value:t,resolvedBy:n,widgets:r}){return e.value=t,e.status=`completed`,e.resolved_by=n,e.widgets=r,e}function Ba({recordField:e}){return e.status=`pending`,e.resolved_by=null,e.value=null,e}function Va({recordField:e,reason:t,resolvedBy:n,widgets:r={}}){return e.value=null,e.status=`no_result`,e.resolved_by=n,e.reason=t,e.widgets=r,e}function Ha(e,t,n){return e.value=null,e.status=`failed`,e.resolved_by=null,e.reason=t,e.resolved_by=n,e.widgets={},e}function Ua(e,t){return e.value=null,e.status=`skipped`,e.resolved_by=null,e.reason=t,e.widgets={},e}function Wa(e){return e.value=null,e.status=`processing`,e.resolved_by=null,e.widgets={},e}function W(e){return e.split(`@`)[0]}function G(e){return`/docs/pipe-catalog/${W(e)}/${e.split(`@`)[1]}`}function K(e,t){return{name:e.name,description:e.description,resolvedName:t?.input_fields?.[e.name]?.alias||e.name,type:e.type,label:e.label,format:e.format}}const Ga=`company:domain:workemail@1`,Ka=_(`company_domain`),qa=_(`work_email`),Ja=r.object({pipe_id:r.literal(Ga),run_if:S(),connector:T(),config:r.object({input_fields:z(r.object({[qa.name]:E({fieldName:qa.name})})),output_fields:R(r.object({[Ka.name]:k({fieldName:Ka.name})}))}).optional()}),Ya=e=>V(K(qa,e)),Xa={"company-domain-workemail-v1-pipe0":{credits:{default:0},allowManagedConnection:!0,mode:`always`,provider:`pipe0`}},Za=class extends U{pipeId=Ga;payload;payloadSchema=Ja;billableOperations=Xa;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[`company-domain-workemail-v1-pipe0`]}getInputRequirement(){return Ya(this.payload.config)}getRawOutputFields(){return{[Ka.name]:this.catalogOutput(Ka)}}getConnectionsRequirements(){return[{provider:`pipe0`,rateLimitRatio:1,rateLimitOperation:`pipe0_logic`,allowManagedConnection:!0}]}},Qa=Ja,$a={pipeId:Ga,basePipe:W(Ga),inputFieldMode:`static`,outputFieldMode:`static`,label:`Website from email`,executionMode:`single`,categories:[`company_data`],lifecycle:null,description:`Extract the company website URL from a work email address.`,tags:[B.EMAIL,B.WORK_EMAIL,B.WEBSITE],docPath:G(Ga),allowedUserConnectionProviders:[],managedProviders:[`pipe0`],deprecatedProviders:[],billableOperations:Xa,defaultInputRequirement:Ya(null),defaultPayload:{pipe_id:Ga,connector:null,run_if:null,config:{input_fields:{[qa.name]:{alias:``}},output_fields:{[Ka.name]:{alias:``,enabled:!0}}}}},eo=`company:funding:leadmagic@2`,to=_(`company_name`),no=_(`company_domain`),ro=_(`funding_history`),io=_(`funding_total_usd`),ao=_(`leadmagic_competitor_list`),oo=_(`leadmagic_acquisition_history`),so=_(`leadmagic_company_news_list`),co=r.object({pipe_id:r.literal(eo),connector:w(),run_if:S(),config:r.object({input_fields:z(r.object({[to.name]:E({fieldName:to.name}),[no.name]:E({fieldName:no.name})})),output_fields:R(r.object({[ro.name]:k({fieldName:ro.name}),[io.name]:k({fieldName:io.name}),[ao.name]:k({fieldName:ao.name}),[oo.name]:k({fieldName:oo.name}),[so.name]:k({fieldName:so.name})}))}).optional()}),lo=e=>H(K(to,e),K(no,e)),uo={"company-funding-leadmagic-v2-leadmagic":{provider:`leadmagic`,allowManagedConnection:!0,credits:{default:2},mode:`onSuccess`}},fo=class extends U{pipeId=eo;payload;payloadSchema=co;billableOperations=uo;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`leadmagic`]}estimateBillableOperations(){return[`company-funding-leadmagic-v2-leadmagic`]}getInputRequirement(){return lo(this.payload.config)}getRawOutputFields(){return{[ro.name]:this.catalogOutput(ro),[io.name]:this.catalogOutput(io),[oo.name]:this.catalogOutput(oo),[so.name]:this.catalogOutput(so),[ao.name]:this.catalogOutput(ao)}}getConnectionsRequirements(){return[{provider:`leadmagic`,rateLimitRatio:1,rateLimitOperation:`leadmagic_company_funding`,allowManagedConnection:!0}]}},po=co,mo={pipeId:eo,basePipe:W(eo),label:`Funding history`,executionMode:`single`,categories:[`company_data`],lifecycle:null,description:`Information on funding rounds, acquisition, competitors, and investors.`,tags:[B.FINANCIAL_DATA],docPath:G(eo),billableOperations:uo,inputFieldMode:`static`,outputFieldMode:`static`,allowedUserConnectionProviders:[`leadmagic`],managedProviders:[`leadmagic`],deprecatedProviders:[],defaultInputRequirement:lo(null),defaultPayload:{pipe_id:eo,connector:null,run_if:null,config:{input_fields:{company_name:{alias:``},company_domain:{alias:``}},output_fields:{funding_history:{enabled:!0,alias:``},funding_total_usd:{enabled:!0,alias:``},leadmagic_acquisition_history:{enabled:!1,alias:``},leadmagic_company_news_list:{enabled:!1,alias:``},leadmagic_competitor_list:{enabled:!1,alias:``}}}}},ho=_(`company_name`),go=_(`company_profile_url`),_o=_(`company_domain`),vo=_(`cleaned_company_name`),yo=`company:identity@3`,bo=r.object({pipe_id:r.literal(yo),run_if:S(),connector:T(),config:r.object({input_fields:z(r.object({[ho.name]:E({fieldName:ho.name})})),output_fields:R(r.object({[go.name]:k({fieldName:go.name}),[vo.name]:k({fieldName:vo.name}),[_o.name]:k({fieldName:_o.name})}))}).optional()}),xo=e=>V(K(ho,e)),So={"company-identity-v3-pipe0":{allowManagedConnection:!0,credits:{default:.3,level1:{credits:.2,weight:1}},mode:`always`,provider:`pipe0`}},Co=class extends U{pipeId=yo;payload;payloadSchema=bo;billableOperations=So;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[`company-identity-v3-pipe0`]}getInputRequirement(){return xo(this.payload.config)}getRawOutputFields(){return{[go.name]:this.catalogOutput(go),[_o.name]:this.catalogOutput(_o),[vo.name]:this.catalogOutput(vo)}}getConnectionsRequirements(){return[{provider:`gemini`,rateLimitRatio:1,rateLimitOperation:`gemini_25_flash_preview`,allowManagedConnection:!0},{provider:`serper`,rateLimitRatio:2,rateLimitOperation:`serper_search`,allowManagedConnection:!0},{provider:`leadmagic`,rateLimitRatio:.2,rateLimitOperation:`leadmagic_company_search`,allowManagedConnection:!0},{provider:`perplexity`,rateLimitRatio:.2,rateLimitOperation:`perplexity_generic`,allowManagedConnection:!0},{provider:`pipe0`,rateLimitRatio:.02,rateLimitOperation:`pipe0_scraper`,allowManagedConnection:!0}]}},wo=bo,To={pipeId:yo,inputFieldMode:`static`,outputFieldMode:`static`,basePipe:W(yo),label:`Find company identity`,executionMode:`mix`,categories:[`company_data`],lifecycle:null,description:`Find any company's website URL, LinkedIn profile URL, and cleaned name.`,tags:[B.WEBSITE,B.LINKEDIN],docPath:G(yo),billableOperations:So,allowedUserConnectionProviders:[],managedProviders:[`pipe0`],deprecatedProviders:[],defaultInputRequirement:xo(null),defaultPayload:{pipe_id:yo,connector:null,run_if:null,config:{input_fields:{company_name:{alias:``}},output_fields:{cleaned_company_name:{alias:``,enabled:!0},company_profile_url:{alias:``,enabled:!0},company_domain:{alias:``,enabled:!0}}}}},Eo=_(`company_domain`),Do=_(`companyenrich_matches`),Oo=`company:lookalikes:companyenrich@2`,ko=r.object({pipe_id:r.literal(Oo),run_if:S(),connector:w(),config:r.object({limit:ca({groupPath:`config.general`,max:50,min:1,path:`config.limit`,required:!0,sectionKey:`general`,info:`Define how many lookalikes you want to find.`,label:`Limit`}),input_fields:z(r.object({[Eo.name]:E({fieldName:Eo.name})})),output_fields:R(r.object({[Do.name]:k({fieldName:Do.name})}))}).optional()}),Ao=e=>V(K(Eo,e)),jo={"company-lookalikes-companyenrich-v2-companyenrich":{allowManagedConnection:!0,credits:{default:.2,level1:{credits:.1,weight:1}},mode:`onSuccess`,note:`One billing event per result.`,provider:`companyenrich`}},Mo=class extends U{pipeId=Oo;payload;payloadSchema=ko;billableOperations=jo;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`companyenrich`]}estimateBillableOperations(){return[,,,,,].fill(`lookalikes-companyenrich`)}getInputRequirement(){return Ao(this.payload.config)}getRawOutputFields(){return{[Do.name]:this.catalogOutput(Do)}}getConnectionsRequirements(){return[{provider:`companyenrich`,rateLimitRatio:1,rateLimitOperation:`company_enrich_generic`,allowManagedConnection:!0}]}},No=ko,Po={pipeId:Oo,inputFieldMode:`static`,outputFieldMode:`static`,basePipe:W(Oo),label:`Find company lookalikes`,executionMode:`single`,categories:[`company_data`],lifecycle:null,description:`Find companies similar to the company you provide as input.`,tags:[B.COMPANY_PROFILES],docPath:G(Oo),billableOperations:jo,allowedUserConnectionProviders:[`companyenrich`],managedProviders:[`companyenrich`],deprecatedProviders:[],defaultInputRequirement:Ao(null),defaultPayload:{pipe_id:Oo,connector:null,run_if:null,config:{limit:20,input_fields:{company_domain:{alias:``}},output_fields:{companyenrich_matches:{alias:``,enabled:!0}}}}},Fo=_(`company_domain`),Io=_(`crustdata_companyenrich_match`),Lo=`company:match:crustdata@2`,Ro=r.object({pipe_id:r.literal(Lo),run_if:S(),connector:w(),config:r.object({input_fields:z(r.object({[Fo.name]:E({fieldName:Fo.name})})),output_fields:R(r.object({[Io.name]:k({fieldName:Io.name})}))}).optional()}),zo=e=>V(K(Fo,e)),Bo={"company-match-crustdata-v2-crustdata":{allowManagedConnection:!0,credits:{default:2.5,level1:{credits:1.2,weight:1}},mode:`onSuccess`,provider:`crustdata`}},Vo=class extends U{pipeId=Lo;payload;payloadSchema=Ro;billableOperations=Bo;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`crustdata`]}estimateBillableOperations(){return[`company-match-crustdata-v2-crustdata`]}getInputRequirement(){return zo(this.payload.config)}getRawOutputFields(){return{[Io.name]:this.catalogOutput(Io)}}getConnectionsRequirements(){return[{provider:`crustdata`,rateLimitRatio:1,rateLimitOperation:`crustdata_company_enrich`,allowManagedConnection:!0}]}},Ho=Ro,Uo={pipeId:Lo,inputFieldMode:`static`,outputFieldMode:`static`,basePipe:W(Lo),label:`Company match`,executionMode:`single`,categories:[`company_data`],lifecycle:null,description:`Company data like headcount distribution, LinkedIn URLs etc. via the Crustdata API.`,tags:[B.WEBSITE,B.LINKEDIN],docPath:G(Lo),billableOperations:Bo,allowedUserConnectionProviders:[`crustdata`],managedProviders:[`crustdata`],deprecatedProviders:[],defaultInputRequirement:zo(null),defaultPayload:{pipe_id:Lo,connector:null,run_if:null,config:{input_fields:{company_domain:{alias:``}},output_fields:{crustdata_companyenrich_match:{alias:``,enabled:!0}}}}},Wo=_(`company_domain`),Go=_(`company_name`),Ko=_(`company_profile_url`),qo=_(`logodev_describe_match`),Jo=_(`logo_url`),Yo=`company:match:logodev@2`,Xo=r.object({pipe_id:r.literal(Yo),run_if:S(),connector:w(),config:r.object({input_fields:z(r.object({[Wo.name]:E({fieldName:Wo.name})})),output_fields:R(r.object({[Ko.name]:k({fieldName:Ko.name}),[Jo.name]:k({fieldName:Jo.name}),[Go.name]:k({fieldName:Go.name}),[qo.name]:k({fieldName:qo.name})}))}).optional()}),Zo=e=>V(K(Wo,e)),Qo={"company-match-logodev-v2-logodev":{allowManagedConnection:!0,credits:{default:.1},mode:`onSuccess`,provider:`logodev`}},$o=class extends U{pipeId=Yo;payload;payloadSchema=Xo;billableOperations=Qo;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`logodev`]}estimateBillableOperations(){return[`company-match-logodev-v2-logodev`]}getInputRequirement(){return Zo(this.payload.config)}getRawOutputFields(){return{[Ko.name]:this.catalogOutput(Ko),[Go.name]:this.catalogOutput(Go),[Jo.name]:this.catalogOutput(Jo),[qo.name]:this.catalogOutput(qo)}}getConnectionsRequirements(){return[{provider:`logodev`,rateLimitRatio:1,rateLimitOperation:`logodev_describe`,allowManagedConnection:!0}]}},es=Xo,ts={pipeId:Yo,inputFieldMode:`static`,outputFieldMode:`static`,basePipe:W(Yo),label:`Company match`,executionMode:`single`,categories:[`company_data`],lifecycle:null,description:`Find brand data like logos, colors, and social links via the Logo.dev API.`,tags:[B.WEBSITE,B.LINKEDIN],docPath:G(Yo),billableOperations:Qo,allowedUserConnectionProviders:[`logodev`],managedProviders:[`logodev`],deprecatedProviders:[],defaultInputRequirement:Zo(null),defaultPayload:{pipe_id:Yo,connector:null,run_if:null,config:{input_fields:{company_domain:{alias:``}},output_fields:{company_profile_url:{alias:``,enabled:!0},logo_url:{alias:``,enabled:!0},logodev_describe_match:{alias:``,enabled:!0},company_name:{alias:``,enabled:!1}}}}},ns=`company:newssummary:domain@1`,rs=_(`company_news_summary`),is=_(`company_domain`),as=r.object({pipe_id:r.literal(ns),run_if:S(),connector:w(),config:r.object({input_fields:z(r.object({[is.name]:E({fieldName:is.name})})),output_fields:R(r.object({[rs.name]:k({fieldName:rs.name})}))}).optional()}),os=e=>V(K(is,e)),ss={"company-newssummary-domain-v1-pipe0":{allowManagedConnection:!0,credits:{default:1},mode:`always`,provider:`pipe0`}},cs=class extends U{pipeId=ns;payloadSchema=as;billableOperations=ss;payload;constructor(e){super(),this.payload=e}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[`company-newssummary-domain-v1-pipe0`]}getInputRequirement(){return os(this.payload.config)}getRawOutputFields(){return{[rs.name]:this.catalogOutput(rs)}}getConnectionsRequirements(){return[{provider:`perplexity`,rateLimitRatio:1,rateLimitOperation:`perplexity_generic`,allowManagedConnection:!0}]}},ls=as,us={pipeId:ns,basePipe:W(ns),inputFieldMode:`static`,outputFieldMode:`static`,label:`Company news`,executionMode:`single`,categories:[`company_data`],lifecycle:null,description:`Find recent company news by performing a search and scrape.`,tags:[B.NEWS],docPath:G(ns),billableOperations:ss,allowedUserConnectionProviders:[],managedProviders:[`pipe0`],deprecatedProviders:[],defaultInputRequirement:os(null),defaultPayload:{pipe_id:ns,run_if:null,connector:null,config:{input_fields:{company_domain:{alias:``}},output_fields:{company_news_summary:{alias:``,enabled:!0}}}}},ds=_(`company_domain`),fs=_(`company_profile_url`),ps=_(`company_description`),ms=_(`company_industry`),hs=_(`company_region`),gs=_(`headcount`),_s=_(`estimated_revenue`),vs=_(`founded_year`),ys=_(`company_name`),bs=`company:overview@3`,xs=r.object({pipe_id:r.literal(bs),run_if:S(),connector:T(),config:r.object({input_fields:z(r.object({[ds.name]:E({fieldName:ds.name}),[fs.name]:E({fieldName:fs.name})})),output_fields:R(r.object({[ps.name]:k({fieldName:ps.name}),[ms.name]:k({fieldName:ms.name}),[hs.name]:k({fieldName:hs.name}),[gs.name]:k({fieldName:gs.name}),[_s.name]:k({fieldName:_s.name}),[vs.name]:k({fieldName:vs.name}),[ys.name]:k({fieldName:ys.name})}))}).optional()}),Ss=e=>H(K(ds,e),K(fs,e)),Cs={"company-overview-v3-pipe0":{provider:`pipe0`,allowManagedConnection:!0,credits:{default:1,level1:{credits:.5,weight:1}},mode:`always`}},ws=class extends U{pipeId=bs;payloadSchema=xs;billableOperations=Cs;payload;constructor(e){super(),this.payload=e}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[`company-overview-v3-pipe0`]}getInputRequirement(){return Ss(this.payload.config)}getRawOutputFields(){return{[ps.name]:this.catalogOutput(ps),[ms.name]:this.catalogOutput(ms),[hs.name]:this.catalogOutput(hs),[gs.name]:this.catalogOutput(gs),[_s.name]:this.catalogOutput(_s),[vs.name]:this.catalogOutput(vs),[ys.name]:this.catalogOutput(ys)}}getConnectionsRequirements(){return[{provider:`perplexity`,rateLimitRatio:1,rateLimitOperation:`perplexity_generic`,allowManagedConnection:!0},{provider:`leadmagic`,rateLimitRatio:.2,rateLimitOperation:`leadmagic_email_lookup`,allowManagedConnection:!0},{provider:`gemini`,rateLimitOperation:`gemini_20_flash`,rateLimitRatio:.1,allowManagedConnection:!0}]}},Ts=xs,Es={pipeId:bs,basePipe:W(bs),inputFieldMode:`static`,outputFieldMode:`static`,label:`Company overview`,executionMode:`mix`,categories:[`company_data`],lifecycle:null,description:`Business description, industry, and financial information.`,docPath:G(bs),tags:[B.WEBSITE,B.LINKEDIN,B.FINANCIAL_DATA],allowedUserConnectionProviders:[],managedProviders:[`pipe0`],deprecatedProviders:[],billableOperations:Cs,defaultInputRequirement:Ss(null),defaultPayload:{pipe_id:bs,run_if:null,connector:void 0,config:{input_fields:{company_profile_url:{alias:``},company_domain:{alias:``}},output_fields:{company_description:{alias:``,enabled:!0},company_industry:{alias:``,enabled:!0},company_region:{alias:``,enabled:!0},estimated_revenue:{alias:``,enabled:!0},founded_year:{alias:``,enabled:!0},headcount:{alias:``,enabled:!0},company_name:{alias:``,enabled:!1}}}}},Ds=_(`company_domain`),Os=_(`technology_list`),ks=_(`spending_trend`),As=_(`technology_match_builtwith`),js=`company:techstack:builtwith@2`,Ms=r.object({pipe_id:r.literal(js),connector:w(),run_if:S(),config:r.object({input_fields:z(r.object({[Ds.name]:E({fieldName:Ds.name})})),output_fields:R(r.object({[Os.name]:k({fieldName:Os.name}),[As.name]:k({fieldName:As.name}),[ks.name]:k({fieldName:ks.name})}))}).optional()}),Ns=e=>V(K(Ds,e)),Ps={"company-techstack-builtwith-v2-builtwith":{provider:`builtwith`,allowManagedConnection:!0,credits:{default:2},mode:`always`}},Fs=class extends U{pipeId=js;payload;payloadSchema=Ms;billableOperations=Ps;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`builtwith`]}estimateBillableOperations(){return[`company-techstack-builtwith-v2-builtwith`]}getInputRequirement(){return Ns(this.payload.config)}getRawOutputFields(){return{[Os.name]:this.catalogOutput(Os),[As.name]:this.catalogOutput(As),[ks.name]:this.catalogOutput(ks)}}getConnectionsRequirements(){return[{provider:`builtwith`,rateLimitRatio:1,rateLimitOperation:`builtwith_generic`,allowManagedConnection:!0}]}},Is=Ms,Ls={pipeId:js,basePipe:W(js),managedProviders:[`builtwith`],deprecatedProviders:[],allowedUserConnectionProviders:[`builtwith`],label:`Tech stack`,executionMode:`single`,categories:[`company_data`],lifecycle:null,description:`All technologies and frameworks powering a given website.`,tags:[B.WEBSITE],inputFieldMode:`static`,outputFieldMode:`static`,docPath:G(js),billableOperations:Ps,defaultInputRequirement:Ns(null),defaultPayload:{pipe_id:js,connector:null,run_if:null,config:{input_fields:{company_domain:{alias:``}},output_fields:{technology_list:{alias:``,enabled:!0},technology_match_builtwith:{alias:``,enabled:!0},spending_trend:{alias:``,enabled:!0}}}}},Rs={MissingSecretError:class extends Error{constructor({providerName:e}){super(`Missing secret for ${e}`)}},HttpError:class extends Error{constructor({msg:e}){super(e)}}},zs=`contact:create:resend@1`,Bs={"contact-create-resend-v1-resend":{allowManagedConnection:!1,provider:`resend`,credits:null,mode:null}},Vs=_(`email`),Hs=_(`name`),Us=_(`resend_contact_id`),Ws=[{label:`Demo subscribers`,value:`sandbox-segment-1`},{label:`Demo product updates`,value:`sandbox-segment-2`}],Gs=r.object({pipe_id:r.literal(zs),connector:Gi(),run_if:S(),config:r.object({segment_id:da({sectionKey:`general`,required:!0,label:`Segment`,groupPath:`config.general`,path:`config.segment_id`,info:``,enabledIf:ln(`resend`),optionsDef:{requires:{connection:`resend`},options:async({query:e,secret:t,environment:n})=>{if(n===`sandbox`)return Ws;if(!t)throw new Rs.MissingSecretError({providerName:`resend`});let r=await fetch(`https://api.resend.com/segments?limit=100`,{headers:{Authorization:`Bearer ${t}`}});if(!r.ok){let e=await r.text();throw new Rs.HttpError({msg:e})}let i=(await r.json()).data.map(e=>({label:e.name,value:e.id}));return e?i.filter(t=>t.label.toLowerCase().includes(e.toLowerCase())):i}}}),add_as_subscribed:O({sectionKey:`general`,defaultValue:!0,label:`Add as subscribed`,groupPath:`config.general`,path:`config.add_as_subscribed`,info:``}),input_fields:z(r.object({[Hs.name]:E({fieldName:Hs.name}),[Vs.name]:E({fieldName:Vs.name})})),output_fields:R(r.object({[Us.name]:k({fieldName:Us.name})}))})}),Ks=e=>Ea(V(K(Vs,e)),V(K(Hs,e))),qs=class extends U{pipeId=zs;payload;payloadSchema=Gs;billableOperations=Bs;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`resend`]}estimateBillableOperations(){return[`contact-create-resend-v1-resend`]}getInputRequirement(){return Ks(this.payload.config)}getRawOutputFields(){return{[Us.name]:this.catalogOutput(Us)}}getConnectionsRequirements(){return[{provider:`resend`,rateLimitRatio:1,rateLimitOperation:`resend_generic`,allowManagedConnection:!1}]}},Js=Gs,Ys={pipeId:zs,basePipe:W(zs),label:`Create Contact`,executionMode:`single`,categories:[`actions`],lifecycle:null,description:`Create a contact inside a Resend audience.`,tags:[B.EMAIL],docPath:G(zs),billableOperations:Bs,inputFieldMode:`static`,outputFieldMode:`static`,allowedUserConnectionProviders:[`resend`],defaultInputRequirement:Ks(null),managedProviders:[],deprecatedProviders:[],defaultPayload:{pipe_id:zs,connector:{strategy:`first`,connections:[]},run_if:null,config:{segment_id:``,add_as_subscribed:!0,input_fields:{name:{alias:``},email:{alias:``}},output_fields:{resend_contact_id:{alias:``,enabled:!0}}}}},Xs=`company:funding:leadmagic@1`,Zs=_(`company_name`),Qs=_(`company_website_url`),$s=_(`funding_history`),ec=_(`funding_total_usd`),tc=_(`leadmagic_competitor_list`),nc=_(`leadmagic_acquisition_history`),rc=_(`leadmagic_company_news_list`),ic=r.object({pipe_id:r.literal(Xs),connector:w(),run_if:S(),config:r.object({input_fields:z(r.object({[Zs.name]:E({fieldName:Zs.name}),[Qs.name]:E({fieldName:Qs.name})})),output_fields:R(r.object({[$s.name]:k({fieldName:$s.name}),[ec.name]:k({fieldName:ec.name}),[tc.name]:k({fieldName:tc.name}),[nc.name]:k({fieldName:nc.name}),[rc.name]:k({fieldName:rc.name})}))}).optional()}),ac=e=>H(K(Zs,e),K(Qs,e)),oc={"company-funding-leadmagic-v1-leadmagic":{provider:`leadmagic`,allowManagedConnection:!0,credits:{default:2},mode:`onSuccess`}},sc=class extends U{pipeId=Xs;payload;payloadSchema=ic;billableOperations=oc;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`leadmagic`]}estimateBillableOperations(){return[`company-funding-leadmagic-v1-leadmagic`]}getInputRequirement(){return ac(this.payload.config)}getRawOutputFields(){return{[$s.name]:this.catalogOutput($s),[ec.name]:this.catalogOutput(ec)}}getConnectionsRequirements(){return[{provider:`leadmagic`,rateLimitRatio:1,rateLimitOperation:`leadmagic_company_funding`,allowManagedConnection:!0}]}},cc=ic,lc={pipeId:Xs,basePipe:W(Xs),label:`Funding history`,executionMode:`single`,categories:[`deprecated`],lifecycle:{deprecatedOn:`2026-06-13`,replacedBy:`company:funding:leadmagic@2`},description:`Information on funding rounds, acquisition, competitors, and investors.`,tags:[B.FINANCIAL_DATA],docPath:G(Xs),billableOperations:oc,inputFieldMode:`static`,outputFieldMode:`static`,allowedUserConnectionProviders:[`leadmagic`],managedProviders:[`leadmagic`],deprecatedProviders:[],defaultInputRequirement:ac(null),defaultPayload:{pipe_id:Xs,connector:null,run_if:null,config:{input_fields:{company_name:{alias:``},company_website_url:{alias:``}},output_fields:{funding_history:{enabled:!0,alias:``},funding_total_usd:{enabled:!0,alias:``},leadmagic_acquisition_history:{enabled:!1,alias:``},leadmagic_company_news_list:{enabled:!1,alias:``},leadmagic_competitor_list:{enabled:!1,alias:``}}}}},uc=_(`company_name`),dc=_(`company_social_url`),fc=_(`company_website_url`),pc=_(`cleaned_company_name`),mc=`company:identity@1`,hc=r.object({pipe_id:r.literal(mc),run_if:S(),connector:T(),config:r.object({input_fields:z(r.object({[uc.name]:E({fieldName:uc.name})})),output_fields:R(r.object({[dc.name]:k({fieldName:dc.name}),[pc.name]:k({fieldName:pc.name}),[fc.name]:k({fieldName:fc.name})}))}).optional()}),gc=e=>V(K(uc,e)),_c={"company-identity-v1-pipe0":{allowManagedConnection:!0,credits:{default:.3},mode:`always`,provider:`pipe0`}},vc=class extends U{pipeId=mc;payload;payloadSchema=hc;billableOperations=_c;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[`company-identity-v1-pipe0`]}getInputRequirement(){return gc(this.payload.config)}getRawOutputFields(){return{[dc.name]:this.catalogOutput(dc),[fc.name]:this.catalogOutput(fc),[pc.name]:this.catalogOutput(pc)}}getConnectionsRequirements(){return[{provider:`gemini`,rateLimitRatio:1,rateLimitOperation:`gemini_25_flash_preview`,allowManagedConnection:!0},{provider:`serper`,rateLimitRatio:2,rateLimitOperation:`serper_search`,allowManagedConnection:!0},{provider:`leadmagic`,rateLimitRatio:.2,rateLimitOperation:`leadmagic_company_search`,allowManagedConnection:!0},{provider:`perplexity`,rateLimitRatio:.2,rateLimitOperation:`perplexity_generic`,allowManagedConnection:!0},{provider:`pipe0`,rateLimitRatio:.02,rateLimitOperation:`pipe0_scraper`,allowManagedConnection:!0}]}},yc=hc,bc={pipeId:mc,inputFieldMode:`static`,outputFieldMode:`static`,basePipe:W(mc),label:`Find company identity`,executionMode:`mix`,categories:[`deprecated`],lifecycle:{deprecatedOn:`2026-06-13`,replacedBy:`company:identity@2`},description:`Find any company's website URL, LinkedIn profile URL, and cleaned name.`,tags:[B.WEBSITE,B.LINKEDIN],docPath:`/resources/pipe-catalog/company:identity/1`,billableOperations:_c,allowedUserConnectionProviders:[],managedProviders:[`pipe0`],deprecatedProviders:[],defaultInputRequirement:gc(null),defaultPayload:{pipe_id:mc,connector:null,run_if:null,config:{input_fields:{company_name:{alias:``}},output_fields:{cleaned_company_name:{alias:``,enabled:!0},company_social_url:{alias:``,enabled:!0},company_website_url:{alias:``,enabled:!0}}}}},xc=_(`company_name`),Sc=_(`company_profile_url`),Cc=_(`company_website_url`),wc=_(`cleaned_company_name`),Tc=`company:identity@2`,Ec=r.object({pipe_id:r.literal(Tc),run_if:S(),connector:T(),config:r.object({input_fields:z(r.object({[xc.name]:E({fieldName:xc.name})})),output_fields:R(r.object({[Sc.name]:k({fieldName:Sc.name}),[wc.name]:k({fieldName:wc.name}),[Cc.name]:k({fieldName:Cc.name})}))}).optional()}),Dc=e=>V(K(xc,e)),Oc={"company-identity-v2-pipe0":{allowManagedConnection:!0,credits:{default:.3},mode:`always`,provider:`pipe0`}},kc=class extends U{pipeId=Tc;payload;payloadSchema=Ec;billableOperations=Oc;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[`company-identity-v2-pipe0`]}getInputRequirement(){return Dc(this.payload.config)}getRawOutputFields(){return{[Sc.name]:this.catalogOutput(Sc),[Cc.name]:this.catalogOutput(Cc),[wc.name]:this.catalogOutput(wc)}}getConnectionsRequirements(){return[{provider:`gemini`,rateLimitRatio:1,rateLimitOperation:`gemini_25_flash_preview`,allowManagedConnection:!0},{provider:`serper`,rateLimitRatio:2,rateLimitOperation:`serper_search`,allowManagedConnection:!0},{provider:`leadmagic`,rateLimitRatio:.2,rateLimitOperation:`leadmagic_company_search`,allowManagedConnection:!0},{provider:`perplexity`,rateLimitRatio:.2,rateLimitOperation:`perplexity_generic`,allowManagedConnection:!0},{provider:`pipe0`,rateLimitRatio:.02,rateLimitOperation:`pipe0_scraper`,allowManagedConnection:!0}]}},Ac=Ec,jc={pipeId:Tc,inputFieldMode:`static`,outputFieldMode:`static`,basePipe:W(Tc),label:`Find company identity`,executionMode:`mix`,categories:[`deprecated`],lifecycle:{deprecatedOn:`2026-06-13`,replacedBy:`company:identity@3`},description:`Find any company's website URL, LinkedIn profile URL, and cleaned name.`,tags:[B.WEBSITE,B.LINKEDIN],docPath:G(Tc),billableOperations:Oc,allowedUserConnectionProviders:[],managedProviders:[`pipe0`],deprecatedProviders:[],defaultInputRequirement:Dc(null),defaultPayload:{pipe_id:Tc,connector:null,run_if:null,config:{input_fields:{company_name:{alias:``}},output_fields:{cleaned_company_name:{alias:``,enabled:!0},company_profile_url:{alias:``,enabled:!0},company_website_url:{alias:``,enabled:!0}}}}},Mc=_(`company_website_url`),Nc=_(`companyenrich_matches`),Pc=`company:lookalikes:companyenrich@1`,Fc=r.object({pipe_id:r.literal(Pc),run_if:S(),connector:w(),config:r.object({limit:ca({groupPath:`config.general`,max:50,min:1,path:`config.limit`,required:!0,sectionKey:`general`,info:`Define how many lookalikes you want to find.`,label:`Limit`}),input_fields:z(r.object({[Mc.name]:E({fieldName:Mc.name})})),output_fields:R(r.object({[Nc.name]:k({fieldName:Nc.name})}))}).optional()}),Ic=e=>V(K(Mc,e)),Lc={"company-lookalikes-companyenrich-v1-companyenrich":{allowManagedConnection:!0,credits:{default:.2},mode:`onSuccess`,note:`One billing event per result.`,provider:`companyenrich`}},Rc=class extends U{pipeId=Pc;payload;payloadSchema=Fc;billableOperations=Lc;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`companyenrich`]}estimateBillableOperations(){return[,,,,,].fill(`lookalikes-companyenrich`)}getInputRequirement(){return Ic(this.payload.config)}getRawOutputFields(){return{[Nc.name]:this.catalogOutput(Nc)}}getConnectionsRequirements(){return[{provider:`companyenrich`,rateLimitRatio:1,rateLimitOperation:`company_enrich_generic`,allowManagedConnection:!0}]}},zc=Fc,Bc={pipeId:Pc,inputFieldMode:`static`,outputFieldMode:`static`,basePipe:W(Pc),label:`Find company lookalikes`,executionMode:`single`,categories:[`deprecated`],lifecycle:{deprecatedOn:`2026-06-13`,replacedBy:`company:lookalikes:companyenrich@2`},description:`Find companies similar to the company you provide as input.`,tags:[B.COMPANY_PROFILES],docPath:G(Pc),billableOperations:Lc,allowedUserConnectionProviders:[`companyenrich`],managedProviders:[`companyenrich`],deprecatedProviders:[],defaultInputRequirement:Ic(null),defaultPayload:{pipe_id:Pc,connector:null,run_if:null,config:{limit:20,input_fields:{company_website_url:{alias:``}},output_fields:{companyenrich_matches:{alias:``,enabled:!0}}}}},Vc=_(`company_website_url`),Hc=_(`crustdata_companyenrich_match`),Uc=`company:match:crustdata@1`,Wc=r.object({pipe_id:r.literal(Uc),run_if:S(),connector:w(),config:r.object({input_fields:z(r.object({[Vc.name]:E({fieldName:Vc.name})})),output_fields:R(r.object({[Hc.name]:k({fieldName:Hc.name})}))}).optional()}),Gc=e=>V(K(Vc,e)),Kc={"company-match-crustdata-v1-crustdata":{allowManagedConnection:!0,credits:{default:2},mode:`onSuccess`,provider:`crustdata`}},qc=class extends U{pipeId=Uc;payload;payloadSchema=Wc;billableOperations=Kc;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`crustdata`]}estimateBillableOperations(){return[`company-match-crustdata-v1-crustdata`]}getInputRequirement(){return Gc(this.payload.config)}getRawOutputFields(){return{[Hc.name]:this.catalogOutput(Hc)}}getConnectionsRequirements(){return[{provider:`crustdata`,rateLimitRatio:1,rateLimitOperation:`crustdata_company_enrich`,allowManagedConnection:!0}]}},Jc=Wc,Yc={pipeId:Uc,inputFieldMode:`static`,outputFieldMode:`static`,basePipe:W(Uc),label:`Company match`,executionMode:`single`,categories:[`deprecated`],lifecycle:{deprecatedOn:`2026-06-13`,replacedBy:`company:match:crustdata@2`},description:`Company data like headcount distribution, LinkedIn URLs etc. via the Crustdata API.`,tags:[B.WEBSITE,B.LINKEDIN],docPath:G(Uc),billableOperations:Kc,allowedUserConnectionProviders:[`crustdata`],managedProviders:[`crustdata`],deprecatedProviders:[],defaultInputRequirement:Gc(null),defaultPayload:{pipe_id:Uc,connector:null,run_if:null,config:{input_fields:{company_website_url:{alias:``}},output_fields:{crustdata_companyenrich_match:{alias:``,enabled:!0}}}}},Xc=_(`company_website_url`),Zc=_(`company_name`),Qc=_(`company_profile_url`),$c=_(`logodev_describe_match`),el=_(`logo_url`),tl=`company:match:logodev@1`,nl=r.object({pipe_id:r.literal(tl),run_if:S(),connector:w(),config:r.object({input_fields:z(r.object({[Xc.name]:E({fieldName:Xc.name})})),output_fields:R(r.object({[Qc.name]:k({fieldName:Qc.name}),[el.name]:k({fieldName:el.name}),[Zc.name]:k({fieldName:Zc.name}),[$c.name]:k({fieldName:$c.name})}))}).optional()}),rl=e=>V(K(Xc,e)),il={"company-match-logodev-v1-logodev":{allowManagedConnection:!0,credits:{default:.1},mode:`onSuccess`,provider:`logodev`}},al=class extends U{pipeId=tl;payload;payloadSchema=nl;billableOperations=il;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`logodev`]}estimateBillableOperations(){return[`company-match-logodev-v1-logodev`]}getInputRequirement(){return rl(this.payload.config)}getRawOutputFields(){return{[Qc.name]:this.catalogOutput(Qc),[Zc.name]:this.catalogOutput(Zc),[el.name]:this.catalogOutput(el),[$c.name]:this.catalogOutput($c)}}getConnectionsRequirements(){return[{provider:`logodev`,rateLimitRatio:1,rateLimitOperation:`logodev_describe`,allowManagedConnection:!0}]}},ol=nl,sl={pipeId:tl,inputFieldMode:`static`,outputFieldMode:`static`,basePipe:W(tl),label:`Company match`,executionMode:`single`,categories:[`deprecated`],lifecycle:{deprecatedOn:`2026-06-13`,replacedBy:`company:match:logodev@2`},description:`Find brand data like logos, colors, and social links via the Logo.dev API.`,tags:[B.WEBSITE,B.LINKEDIN],docPath:G(tl),billableOperations:il,allowedUserConnectionProviders:[`logodev`],managedProviders:[`logodev`],deprecatedProviders:[],defaultInputRequirement:rl(null),defaultPayload:{pipe_id:tl,connector:null,run_if:null,config:{input_fields:{company_website_url:{alias:``}},output_fields:{company_profile_url:{alias:``,enabled:!0},logo_url:{alias:``,enabled:!0},logodev_describe_match:{alias:``,enabled:!0},company_name:{alias:``,enabled:!1}}}}},cl=`company:newssummary:website@1`,ll=_(`company_news_summary`),ul=_(`company_website_url`),dl=r.object({pipe_id:r.literal(cl),run_if:S(),connector:w(),config:r.object({input_fields:z(r.object({[ul.name]:E({fieldName:ul.name})})),output_fields:R(r.object({[ll.name]:k({fieldName:ll.name})}))}).optional()}),fl=e=>V(K(ul,e)),pl={"company-newssummary-website-v1-pipe0":{allowManagedConnection:!0,credits:{default:1},mode:`always`,provider:`pipe0`}},ml=class extends U{pipeId=cl;payloadSchema=dl;billableOperations=pl;payload;constructor(e){super(),this.payload=e}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[`company-newssummary-website-v1-pipe0`]}getInputRequirement(){return fl(this.payload.config)}getRawOutputFields(){return{[ll.name]:this.catalogOutput(ll)}}getConnectionsRequirements(){return[{provider:`perplexity`,rateLimitRatio:1,rateLimitOperation:`perplexity_generic`,allowManagedConnection:!0}]}},hl=dl,gl={pipeId:cl,basePipe:W(cl),inputFieldMode:`static`,outputFieldMode:`static`,label:`Company news`,executionMode:`single`,categories:[`deprecated`],lifecycle:{deprecatedOn:`2026-06-13`,replacedBy:`company:newssummary:domain@1`},description:`Find recent company news by performing a search and scrape.`,tags:[B.NEWS],docPath:G(cl),billableOperations:pl,allowedUserConnectionProviders:[],managedProviders:[`pipe0`],deprecatedProviders:[],defaultInputRequirement:fl(null),defaultPayload:{pipe_id:cl,run_if:null,connector:null,config:{input_fields:{company_website_url:{alias:``}},output_fields:{company_news_summary:{alias:``,enabled:!0}}}}},_l=_(`company_website_url`),vl=_(`company_social_url`),yl=_(`company_description`),bl=_(`company_industry`),xl=_(`company_region`),Sl=_(`headcount`),Cl=_(`estimated_revenue`),wl=_(`founded_year`),Tl=`company:overview@1`,El=r.object({pipe_id:r.literal(Tl),run_if:S(),connector:T(),config:r.object({input_fields:z(r.object({[_l.name]:E({fieldName:_l.name}),[vl.name]:E({fieldName:vl.name})})),output_fields:R(r.object({[yl.name]:k({fieldName:yl.name}),[bl.name]:k({fieldName:bl.name}),[xl.name]:k({fieldName:xl.name}),[Sl.name]:k({fieldName:Sl.name}),[Cl.name]:k({fieldName:Cl.name}),[wl.name]:k({fieldName:wl.name})}))}).optional()}),Dl=e=>H(K(_l,e),K(vl,e)),Ol={"company-overview-v1-pipe0":{provider:`pipe0`,allowManagedConnection:!0,credits:{default:1},mode:`always`}},kl=class extends U{pipeId=Tl;payloadSchema=El;billableOperations=Ol;payload;constructor(e){super(),this.payload=e}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[`company-overview-v1-pipe0`]}getInputRequirement(){return Dl(this.payload.config)}getRawOutputFields(){return{[yl.name]:this.catalogOutput(yl),[bl.name]:this.catalogOutput(bl),[xl.name]:this.catalogOutput(xl),[Sl.name]:this.catalogOutput(Sl),[Cl.name]:this.catalogOutput(Cl),[wl.name]:this.catalogOutput(wl)}}getConnectionsRequirements(){return[{provider:`perplexity`,rateLimitRatio:1,rateLimitOperation:`perplexity_generic`,allowManagedConnection:!0},{provider:`leadmagic`,rateLimitRatio:.2,rateLimitOperation:`leadmagic_email_lookup`,allowManagedConnection:!0},{provider:`gemini`,rateLimitOperation:`gemini_20_flash`,rateLimitRatio:.1,allowManagedConnection:!0}]}},Al=El,jl={pipeId:Tl,basePipe:W(Tl),inputFieldMode:`static`,outputFieldMode:`static`,label:`Company overview`,executionMode:`mix`,categories:[`deprecated`],lifecycle:{deprecatedOn:`2026-06-13`,replacedBy:`company:identity@2`},description:`Find high-level business and financial information like company description, estimated revenue, and headcount.`,docPath:`/resources/pipe-catalog/company:overview/1`,tags:[B.WEBSITE,B.LINKEDIN,B.FINANCIAL_DATA,B.DEPRECATED],allowedUserConnectionProviders:[],managedProviders:[`pipe0`],deprecatedProviders:[],billableOperations:Ol,defaultInputRequirement:Dl(null),defaultPayload:{pipe_id:Tl,run_if:null,connector:void 0,config:{input_fields:{company_social_url:{alias:``},company_website_url:{alias:``}},output_fields:{company_description:{alias:``,enabled:!0},company_industry:{alias:``,enabled:!0},company_region:{alias:``,enabled:!0},estimated_revenue:{alias:``,enabled:!0},founded_year:{alias:``,enabled:!0},headcount:{alias:``,enabled:!0}}}}},Ml=_(`company_website_url`),Nl=_(`company_profile_url`),Pl=_(`company_description`),Fl=_(`company_industry`),Il=_(`company_region`),Ll=_(`headcount`),Rl=_(`estimated_revenue`),zl=_(`founded_year`),Bl=_(`company_name`),Vl=`company:overview@2`,Hl=r.object({pipe_id:r.literal(Vl),run_if:S(),connector:T(),config:r.object({input_fields:z(r.object({[Ml.name]:E({fieldName:Ml.name}),[Nl.name]:E({fieldName:Nl.name})})),output_fields:R(r.object({[Pl.name]:k({fieldName:Pl.name}),[Fl.name]:k({fieldName:Fl.name}),[Il.name]:k({fieldName:Il.name}),[Ll.name]:k({fieldName:Ll.name}),[Rl.name]:k({fieldName:Rl.name}),[zl.name]:k({fieldName:zl.name}),[Bl.name]:k({fieldName:Bl.name})}))}).optional()}),Ul=e=>H(K(Ml,e),K(Nl,e)),Wl={"company-overview-v2-pipe0":{provider:`pipe0`,allowManagedConnection:!0,credits:{default:1},mode:`always`}},Gl=class extends U{pipeId=Vl;payloadSchema=Hl;billableOperations=Wl;payload;constructor(e){super(),this.payload=e}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[`company-overview-v2-pipe0`]}getInputRequirement(){return Ul(this.payload.config)}getRawOutputFields(){return{[Pl.name]:this.catalogOutput(Pl),[Fl.name]:this.catalogOutput(Fl),[Il.name]:this.catalogOutput(Il),[Ll.name]:this.catalogOutput(Ll),[Rl.name]:this.catalogOutput(Rl),[zl.name]:this.catalogOutput(zl),[Bl.name]:this.catalogOutput(Bl)}}getConnectionsRequirements(){return[{provider:`perplexity`,rateLimitRatio:1,rateLimitOperation:`perplexity_generic`,allowManagedConnection:!0},{provider:`leadmagic`,rateLimitRatio:.2,rateLimitOperation:`leadmagic_email_lookup`,allowManagedConnection:!0},{provider:`gemini`,rateLimitOperation:`gemini_20_flash`,rateLimitRatio:.1,allowManagedConnection:!0}]}},Kl=Hl,ql={pipeId:Vl,basePipe:W(Vl),inputFieldMode:`static`,outputFieldMode:`static`,label:`Company overview`,executionMode:`mix`,categories:[`deprecated`],lifecycle:{deprecatedOn:`2026-06-13`,replacedBy:`company:overview@3`},description:`Business description, industry, and financial information.`,docPath:G(Vl),tags:[B.WEBSITE,B.LINKEDIN,B.FINANCIAL_DATA],allowedUserConnectionProviders:[],managedProviders:[`pipe0`],deprecatedProviders:[],billableOperations:Wl,defaultInputRequirement:Ul(null),defaultPayload:{pipe_id:Vl,run_if:null,connector:void 0,config:{input_fields:{company_profile_url:{alias:``},company_website_url:{alias:``}},output_fields:{company_description:{alias:``,enabled:!0},company_industry:{alias:``,enabled:!0},company_region:{alias:``,enabled:!0},estimated_revenue:{alias:``,enabled:!0},founded_year:{alias:``,enabled:!0},headcount:{alias:``,enabled:!0},company_name:{alias:``,enabled:!1}}}}},Jl=_(`company_website_url`),Yl=_(`technology_list`),Xl=_(`spending_trend`),Zl=_(`technology_match_builtwith`),Ql=`company:techstack:builtwith@1`,$l=r.object({pipe_id:r.literal(Ql),connector:w(),run_if:S(),config:r.object({input_fields:z(r.object({[Jl.name]:E({fieldName:Jl.name})})),output_fields:R(r.object({[Yl.name]:k({fieldName:Yl.name}),[Zl.name]:k({fieldName:Zl.name}),[Xl.name]:k({fieldName:Xl.name})}))}).optional()}),eu=e=>V(K(Jl,e)),tu={"company-techstack-builtwith-v1-builtwith":{provider:`builtwith`,allowManagedConnection:!0,credits:{default:2},mode:`always`}},nu=class extends U{pipeId=Ql;payload;payloadSchema=$l;billableOperations=tu;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`builtwith`]}estimateBillableOperations(){return[`company-techstack-builtwith-v1-builtwith`]}getInputRequirement(){return eu(this.payload.config)}getRawOutputFields(){return{[Yl.name]:this.catalogOutput(Yl),[Zl.name]:this.catalogOutput(Zl),[Xl.name]:this.catalogOutput(Xl)}}getConnectionsRequirements(){return[{provider:`builtwith`,rateLimitRatio:1,rateLimitOperation:`builtwith_generic`,allowManagedConnection:!0}]}},ru=$l,iu={pipeId:Ql,basePipe:W(Ql),managedProviders:[`builtwith`],deprecatedProviders:[],allowedUserConnectionProviders:[`builtwith`],label:`Tech stack`,executionMode:`single`,categories:[`deprecated`],lifecycle:{deprecatedOn:`2026-06-13`,replacedBy:`company:techstack:builtwith@2`},description:`All technologies and frameworks powering a given website.`,tags:[B.WEBSITE],inputFieldMode:`static`,outputFieldMode:`static`,docPath:G(Ql),billableOperations:tu,defaultInputRequirement:eu(null),defaultPayload:{pipe_id:Ql,connector:null,run_if:null,config:{input_fields:{company_website_url:{alias:``}},output_fields:{technology_list:{alias:``,enabled:!0},technology_match_builtwith:{alias:``,enabled:!0},spending_trend:{alias:``,enabled:!0}}}}},au=`company:websiteurl:email@1`,ou=_(`company_website_url`),su=_(`email`),cu=r.object({pipe_id:r.literal(au),run_if:S(),connector:T(),config:r.object({input_fields:z(r.object({[su.name]:E({fieldName:su.name})})),output_fields:R(r.object({[ou.name]:k({fieldName:ou.name})}))}).optional()}),lu=e=>V(K(su,e)),uu={"company-websiteurl-email-v1-pipe0":{credits:{default:0},allowManagedConnection:!0,mode:`always`,provider:`pipe0`}},du=class extends U{pipeId=au;payload;payloadSchema=cu;billableOperations=uu;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[`company-websiteurl-email-v1-pipe0`]}getInputRequirement(){return lu(this.payload.config)}getRawOutputFields(){return{[ou.name]:this.catalogOutput(ou)}}getConnectionsRequirements(){return[{provider:`pipe0`,rateLimitRatio:1,rateLimitOperation:`pipe0_logic`,allowManagedConnection:!0}]}},fu=cu,pu={pipeId:au,basePipe:W(au),inputFieldMode:`static`,outputFieldMode:`static`,label:`Website from email`,executionMode:`single`,categories:[`deprecated`],lifecycle:{deprecatedOn:`2026-06-13`,replacedBy:`company:domain:workemail@1`},description:`Extract the company website URL from a work email address.`,tags:[B.EMAIL,B.WORK_EMAIL,B.WEBSITE],docPath:G(au),allowedUserConnectionProviders:[],managedProviders:[`pipe0`],deprecatedProviders:[],billableOperations:uu,defaultInputRequirement:lu(null),defaultPayload:{pipe_id:au,connector:null,run_if:null,config:{input_fields:{email:{alias:``}},output_fields:{company_website_url:{alias:``,enabled:!0}}}}},mu=`people:email:iswork@1`,hu=_(`is_work_email`),gu=_(`email`),_u=r.object({pipe_id:r.literal(mu),run_if:S(),connector:T(),config:r.object({input_fields:z(r.object({[gu.name]:E({fieldName:gu.name})})),output_fields:R(r.object({[hu.name]:k({fieldName:hu.name})}))}).optional()}),vu=e=>V(K(gu,e)),yu={"people-email-iswork-v1-pipe0":{provider:`pipe0`,allowManagedConnection:!0,credits:{default:0},mode:`always`}},bu=class extends U{pipeId=mu;payload;payloadSchema=_u;billableOperations=yu;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[`people-email-iswork-v1-pipe0`]}getInputRequirement(){return vu(this.payload.config)}getRawOutputFields(){return{[hu.name]:this.catalogOutput(hu)}}getConnectionsRequirements(){return[{provider:`pipe0`,rateLimitRatio:1,rateLimitOperation:`pipe0_logic`,allowManagedConnection:!0}]}},xu=_u,Su={pipeId:mu,label:`Work email checker`,executionMode:`single`,categories:[`deprecated`],lifecycle:{deprecatedOn:`2026-06-13`,replacedBy:`email:iswork@1`},description:`Check if a given email address is personal or professional.`,tags:[B.EMAIL,B.WORK_EMAIL],docPath:G(mu),billableOperations:yu,basePipe:W(mu),allowedUserConnectionProviders:[],inputFieldMode:`static`,outputFieldMode:`static`,managedProviders:[`pipe0`],deprecatedProviders:[],defaultInputRequirement:vu(null),defaultPayload:{pipe_id:mu,run_if:null,connector:null,config:{input_fields:{email:{alias:``}},output_fields:{is_work_email:{alias:``,enabled:!0}}}}},Cu=`people:email:validate:zerobounce@1`,wu=_(`work_email`),Tu=_(`is_email_valid`),Eu=r.object({pipe_id:r.literal(Cu),connector:w(),run_if:S(),config:r.object({input_fields:z(r.object({[wu.name]:E({fieldName:wu.name})})),output_fields:R(r.object({[Tu.name]:k({fieldName:Tu.name})}))}).optional()}),Du=e=>V(K(wu,e)),Ou={"people-email-validate-zerobounce-v1-zerobounce":{provider:`zerobounce`,allowManagedConnection:!0,credits:{default:.3},mode:`always`}},ku=class extends U{pipeId=Cu;payload;payloadSchema=Eu;billableOperations=Ou;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`zerobounce`]}estimateBillableOperations(){return[`people-email-validate-zerobounce-v1-zerobounce`]}getInputRequirement(){return Du(this.payload.config)}getRawOutputFields(){return{[Tu.name]:this.catalogOutput(Tu)}}getConnectionsRequirements(){return[{provider:`zerobounce`,rateLimitRatio:1,rateLimitOperation:`zerobounce_generic`,allowManagedConnection:!0}]}},Au=Eu,ju={pipeId:Cu,basePipe:W(Cu),label:`Validate email`,executionMode:`single`,categories:[`people_data`],lifecycle:{deprecatedOn:`2026-06-13`,replacedBy:`people:email:validate:zerobounce@2`},description:`Verify email address against various factors, including syntax, domain, and server existence, to ensure it is deliverable and active.`,tags:[B.EMAIL],docPath:`/resources/pipe-catalog/people:email:validate:zerobounce/1`,billableOperations:Ou,inputFieldMode:`static`,outputFieldMode:`static`,allowedUserConnectionProviders:[`zerobounce`],managedProviders:[`zerobounce`],deprecatedProviders:[],defaultInputRequirement:Du(null),defaultPayload:{pipe_id:Cu,connector:null,run_if:null,config:{input_fields:{work_email:{alias:``}},output_fields:{is_email_valid:{alias:``,enabled:!0}}}}},Mu=`people:email:validate:zerobounce@2`,Nu=_(`email`),Pu=_(`zerobounce_validation_status`),Fu=_(`zerobounce_validation_match`),Iu=r.object({pipe_id:r.literal(Mu),connector:w(),run_if:S(),config:r.object({input_fields:z(r.object({[Nu.name]:E({fieldName:Nu.name})})),output_fields:R(r.object({[Fu.name]:k({fieldName:Fu.name}),[Pu.name]:k({fieldName:Pu.name})}))}).optional()}),Lu=e=>V(K(Nu,e)),Ru={"people-email-validate-zerobounce-v2-zerobounce":{provider:`zerobounce`,allowManagedConnection:!0,credits:{default:.3},mode:`always`}},zu=class extends U{pipeId=Mu;payload;payloadSchema=Iu;billableOperations=Ru;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`zerobounce`]}estimateBillableOperations(){return[`people-email-validate-zerobounce-v2-zerobounce`]}getInputRequirement(){return Lu(this.payload.config)}getRawOutputFields(){return{[Pu.name]:this.catalogOutput(Pu),[Fu.name]:this.catalogOutput(Fu)}}getConnectionsRequirements(){return[{provider:`zerobounce`,rateLimitRatio:1,rateLimitOperation:`zerobounce_generic`,allowManagedConnection:!0}]}},Bu=Iu,Vu={pipeId:Mu,basePipe:W(Mu),label:`Validate email`,executionMode:`single`,categories:[`deprecated`],lifecycle:{deprecatedOn:`2026-06-13`,replacedBy:`email:validate:zerobounce@1`},description:`Verify email address against various factors, including syntax, domain, and server existence, to ensure it is deliverable and active.`,tags:[B.EMAIL],docPath:G(Mu),billableOperations:Ru,inputFieldMode:`static`,outputFieldMode:`static`,allowedUserConnectionProviders:[`zerobounce`],managedProviders:[`zerobounce`],deprecatedProviders:[],defaultInputRequirement:Lu(null),defaultPayload:{pipe_id:Mu,connector:null,run_if:null,config:{input_fields:{email:{alias:``}},output_fields:{zerobounce_validation_status:{alias:``,enabled:!0},zerobounce_validation_match:{alias:``,enabled:!0}}}}};function Hu(e){return(e.widgets||{}).display_value?.label}function Uu(e){console.dir(e,{depth:100})}function Wu(e){return typeof e==`object`&&e?JSON.stringify(e):e}function q(e){return e===0?1:e===1?.3:e===2?.2:.1}function Gu(e){if(typeof e!=`object`||!e||Array.isArray(e))return e;let t={};return Object.keys(e).sort().forEach(n=>{t[n]=Gu(e[n])}),t}const Ku={string:[`address_line_1`,`email`,`url`,`website_url`,`markdown`,`zip_code`,`date`,`datetime`,`phone`,`text`,`profile_url`],json:[`json_object`,`json_list`],number:[`int`,`decimal`],boolean:[],unknown:[]};function J(e,t){let n=Object.entries(t).filter(([t,n])=>n.provider===e);if(n.length!==1)throw Error(`Found ${n.length} billing operations for provider ${e}. This is not allowed. There must be exactly 1 billing operation per provider.`);let[r,i]=n[0];return{billableOperation:r,billableOperationDef:i}}const qu=`people:identity:email:waterfall@1`,Ju=_(`email`),Yu=_(`company_website_url`),Xu=_(`name`),Zu=_(`job_title`),Qu=_(`profile_url`),$u=_(`company_profile_url`),ed=_(`company_name`),td=[`findymail`,`hunter`,`crustdata`],nd=[{provider:`findymail`},{provider:`hunter`},{provider:`crustdata`}],rd=r.object({pipe_id:r.literal(qu),connector:w(),run_if:S(),config:r.object({providers:D({availableProviders:td,defaultProviders:nd,sectionKey:`general`}),input_fields:z(r.object({[Ju.name]:E({fieldName:Ju.name})})),output_fields:R(r.object({[Xu.name]:k({fieldName:Xu.name}),[Qu.name]:k({fieldName:Qu.name}),[Zu.name]:k({fieldName:Zu.name}),[Yu.name]:k({fieldName:Yu.name}),[ed.name]:k({fieldName:ed.name}),[$u.name]:k({fieldName:$u.name})}))}).optional()}),id=e=>V(K(Ju,e)),ad={"people-identity-email-waterfall-v1-hunter":{provider:`hunter`,allowManagedConnection:!0,credits:{default:2},mode:`onSuccess`},"people-identity-email-waterfall-v1-findymail":{provider:`findymail`,allowManagedConnection:!0,credits:{default:2},mode:`onSuccess`},"people-identity-email-waterfall-v1-crustdata":{provider:`crustdata`,allowManagedConnection:!0,credits:{default:5},mode:`onSuccess`}},od=class extends U{pipeId=qu;payload;payloadSchema=rd;billableOperations=ad;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return this.payload.config?.providers.map(e=>e.provider)||[]}estimateBillableOperations(){return this.getProviderNames().map(e=>J(e,this.billableOperations).billableOperation)}getInputRequirement(){return id(this.payload.config)}getRawOutputFields(){return{[Xu.name]:this.catalogOutput(Xu,{isPrimaryOutput:!0}),[Qu.name]:this.catalogOutput(Qu,{isPrimaryOutput:!0}),[Zu.name]:this.catalogOutput(Zu,{isPrimaryOutput:!0}),[ed.name]:this.catalogOutput(ed,{isPrimaryOutput:!0}),[$u.name]:this.catalogOutput($u,{isPrimaryOutput:!0}),[Yu.name]:this.catalogOutput(Yu,{isPrimaryOutput:!0})}}getConnectionsRequirements(){let e={hunter:`prospeo_email_lookup`,findymail:`findymail_email_b2b_lookup`,crustdata:`crustdata_realtime_person_enrich`};return(this.payload.config?.providers||[]).map((t,n)=>({provider:t.provider,rateLimitRatio:q(n),rateLimitOperation:e[t.provider],allowManagedConnection:!0}))}},sd=rd,cd={pipeId:qu,basePipe:W(qu),label:`Person identity from email`,executionMode:`waterfall`,categories:[`deprecated`],lifecycle:{deprecatedOn:`2026-06-13`,replacedBy:`person:identity:email:waterfall@1`},description:`Find identity of a person from their email address.`,tags:[B.EMAIL,B.PEOPLE_PROFILES],docPath:G(qu),managedProviders:td,deprecatedProviders:[],allowedUserConnectionProviders:td,inputFieldMode:`static`,outputFieldMode:`static`,billableOperations:ad,defaultInputRequirement:id(null),defaultPayload:{pipe_id:qu,connector:null,run_if:null,config:{providers:nd,input_fields:{email:{alias:``}},output_fields:{name:{alias:``,enabled:!0},profile_url:{alias:``,enabled:!0},job_title:{alias:``,enabled:!0},company_name:{alias:``,enabled:!0},company_profile_url:{alias:``,enabled:!0},company_website_url:{alias:``,enabled:!0}}}}},ld=`people:match:role:waterfall@1`,ud=_(`company_website_url`),dd=_(`role_finder_match`),fd=[`leadmagic`],pd=[{provider:`leadmagic`}],md=r.object({pipe_id:r.literal(ld),run_if:S(),connector:w(),config:r.object({providers:D({sectionKey:`general`,defaultProviders:pd,availableProviders:fd}),roles:Xi({sectionKey:`general`,groupPath:`config.general`,label:`Roles`,path:`config.roles`,info:`Company roles to include`,maxItems:3,minItems:1}),input_fields:z(r.object({[ud.name]:E({fieldName:ud.name})})),output_fields:R(r.object({[dd.name]:k({fieldName:dd.name})}))})}),hd=e=>H(K(ud,e)),gd={"people-match-role-waterfall-v1-leadmagic":{provider:`leadmagic`,allowManagedConnection:!0,credits:{default:1},mode:`onSuccess`}},_d=class extends U{pipeId=ld;payload;payloadSchema=md;billableOperations=gd;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return this.payload.config?.providers.map(e=>e.provider)||[]}estimateBillableOperations(){return this.getProviderNames().map(e=>J(e,this.billableOperations).billableOperation)}getInputRequirement(){return hd(this.payload.config)}getRawOutputFields(){return{[dd.name]:this.catalogOutput(dd,{isPrimaryOutput:!0})}}getConnectionsRequirements(){let e={leadmagic:`leadmagic_role_finder`};return(this.payload.config?.providers||[]).map((t,n)=>({provider:t.provider,rateLimitRatio:q(n),rateLimitOperation:e[t.provider],allowManagedConnection:!0}))}},vd=md,yd={pipeId:ld,basePipe:W(ld),managedProviders:fd,deprecatedProviders:[],allowedUserConnectionProviders:fd,label:`Role finder`,executionMode:`waterfall`,categories:[`deprecated`],lifecycle:{deprecatedOn:`2026-06-13`,replacedBy:`person:match:role:waterfall@1`},description:`Find role matches for a given companies like "CEO" or "CFO".`,tags:[B.PEOPLE_PROFILES],docPath:G(ld),billableOperations:gd,inputFieldMode:`static`,outputFieldMode:`static`,defaultInputRequirement:hd(null),defaultPayload:{pipe_id:ld,run_if:null,connector:null,config:{roles:[],providers:pd,input_fields:{company_website_url:{alias:``}},output_fields:{role_finder_match:{alias:``,enabled:!0}}}}},bd=`people:mobilenumber:professionalprofile:waterfall@1`,xd=_(`professional_profile_url`),Sd=_(`mobile_number`),Cd=[`leadmagic`,`prospeo`],wd=[{provider:`leadmagic`},{provider:`prospeo`}],Td=r.object({pipe_id:r.literal(bd),run_if:S(),connector:w(),config:r.object({providers:D({sectionKey:`general`,defaultProviders:wd,availableProviders:Cd}),input_fields:z(r.object({[xd.name]:E({fieldName:xd.name})})),output_fields:R(r.object({[Sd.name]:k({fieldName:Sd.name})}))}).optional()}),Ed=e=>V(K(xd,e)),Dd={"people-mobilenumber-professionalprofile-waterfall-v1-leadmagic":{provider:`leadmagic`,allowManagedConnection:!0,credits:{default:2},mode:`onSuccess`},"people-mobilenumber-professionalprofile-waterfall-v1-prospeo":{provider:`prospeo`,allowManagedConnection:!0,credits:{default:5},mode:`onSuccess`}},Od=class extends U{pipeId=bd;payload;payloadSchema=Td;billableOperations=Dd;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return this.payload.config?.providers.map(e=>e.provider)||[]}estimateBillableOperations(){return this.getProviderNames().map(e=>J(e,this.billableOperations).billableOperation)}getInputRequirement(){return Ed(this.payload.config)}getRawOutputFields(){return{[Sd.name]:this.catalogOutput(Sd)}}getConnectionsRequirements(){let e={leadmagic:`leadmagic_email_lookup`,prospeo:`prospeo_phone_number_lookup`};return(this.payload.config?.providers||[]).map((t,n)=>({provider:t.provider,rateLimitRatio:q(n),rateLimitOperation:e[t.provider],allowManagedConnection:!0}))}},kd=Td,Ad={pipeId:bd,basePipe:W(bd),label:`Mobile number from LinkedIn profile`,executionMode:`waterfall`,categories:[`deprecated`],lifecycle:{deprecatedOn:`2026-06-13`,replacedBy:`people:phone:profile:waterfall@1`},description:`Find a mobile phone number for any prospect using multiple data providers in a waterfall motion.`,docPath:`/resources/pipe-catalog/people:mobilenumber:professionalprofile:waterfall/1`,tags:[B.PHONE,B.WATERFALL],billableOperations:Dd,defaultInputRequirement:Ed(null),inputFieldMode:`static`,outputFieldMode:`static`,managedProviders:Cd,deprecatedProviders:[],allowedUserConnectionProviders:Cd,defaultPayload:{pipe_id:bd,connector:null,run_if:null,config:{providers:wd,input_fields:{professional_profile_url:{alias:``}},output_fields:{mobile_number:{alias:``,enabled:!0}}}}},jd=`people:mobilenumber:workemail:waterfall@1`,Md=_(`work_email`),Nd=_(`mobile_number`),Pd=[`leadmagic`],Fd=[{provider:`leadmagic`}],Id=r.object({pipe_id:r.literal(jd),run_if:S(),connector:w(),config:r.object({providers:D({sectionKey:`general`,availableProviders:Pd,defaultProviders:Fd}),input_fields:z(r.object({[Md.name]:E({fieldName:Md.name})})),output_fields:R(r.object({[Nd.name]:k({fieldName:Nd.name})}))}).optional()}),Ld=e=>V(K(Md,e)),Rd={"people-mobilenumber-workemail-waterfall-v1-leadmagic":{provider:`leadmagic`,allowManagedConnection:!0,credits:{default:2},mode:`onSuccess`}},zd=class extends U{pipeId=jd;payload;payloadSchema=Id;billableOperations=Rd;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return this.payload.config?.providers?.map(e=>e.provider)||[]}estimateBillableOperations(){return this.getProviderNames().map(e=>J(e,this.billableOperations).billableOperation)}getInputRequirement(){return Ld(this.payload.config)}getRawOutputFields(){return{[Nd.name]:this.catalogOutput(Nd)}}getConnectionsRequirements(){let e={leadmagic:`leadmagic_email_lookup`};return(this.payload.config?.providers||[]).map((t,n)=>({provider:t.provider,rateLimitRatio:q(n),rateLimitOperation:e[t.provider],allowManagedConnection:!0}))}},Bd=Id,Vd={pipeId:jd,basePipe:W(jd),label:`Mobile number from email`,executionMode:`waterfall`,categories:[`deprecated`],lifecycle:{deprecatedOn:`2026-06-13`,replacedBy:`people:phone:workemail:waterfall@1`},description:`Find a mobile phone number for a prospect.`,tags:[B.PHONE,B.WATERFALL],docPath:`/resources/pipe-catalog/people:mobilenumber:workemail:waterfall/1`,billableOperations:Rd,defaultInputRequirement:Ld(null),inputFieldMode:`static`,outputFieldMode:`static`,allowedUserConnectionProviders:Pd,managedProviders:Pd,deprecatedProviders:[],defaultPayload:{pipe_id:jd,connector:null,run_if:null,config:{providers:Fd,input_fields:{work_email:{alias:``}},output_fields:{mobile_number:{alias:``,enabled:!0}}}}},Hd=`people:name:split@1`,Ud=_(`name`),Wd=_(`first_name`),Gd=_(`last_name`),Kd=r.object({pipe_id:r.literal(Hd),connector:T(),run_if:S(),config:r.object({input_fields:z(r.object({[Ud.name]:E({fieldName:Ud.name})})),output_fields:R(r.object({[Wd.name]:k({fieldName:Wd.name}),[Gd.name]:k({fieldName:Gd.name})}))}).optional()}),qd=e=>V(K(Ud,e)),Jd={"people-name-split-v1-pipe0":{provider:`pipe0`,allowManagedConnection:!0,credits:{default:0},mode:`always`}},Yd=class extends U{pipeId=Hd;payload;payloadSchema=Kd;billableOperations=Jd;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[`people-name-split-v1-pipe0`]}getInputRequirement(){return qd(this.payload.config)}getRawOutputFields(){return{[Wd.name]:this.catalogOutput(Wd),[Gd.name]:this.catalogOutput(Gd)}}getConnectionsRequirements(){return[{provider:`pipe0`,rateLimitRatio:1,rateLimitOperation:`pipe0_logic`,allowManagedConnection:!0}]}},Xd=Kd,Zd={pipeId:Hd,basePipe:W(Hd),label:`Split name`,executionMode:`single`,categories:[`deprecated`],lifecycle:{deprecatedOn:`2026-06-13`,replacedBy:`person:name:split@1`},description:`Split a full name into first and last name.`,tags:[B.NAMES],docPath:G(Hd),billableOperations:Jd,inputFieldMode:`static`,outputFieldMode:`static`,defaultInputRequirement:qd(null),allowedUserConnectionProviders:[],managedProviders:[`pipe0`],deprecatedProviders:[],defaultPayload:{pipe_id:Hd,run_if:null,connector:void 0,config:{input_fields:{name:{alias:``}},output_fields:{first_name:{alias:``,enabled:!0},last_name:{alias:``,enabled:!0}}}}},Qd=`people:personalemail:profile:waterfall@1`,$d=_(`profile_url`),ef=_(`personal_email`),tf=_(`alternate_personal_emails`),nf=[`clado`,`leadmagic`,`mixrank`],rf=[{provider:`leadmagic`},{provider:`mixrank`}],af=r.object({pipe_id:r.literal(Qd),run_if:S(),connector:w(),config:r.object({providers:D({sectionKey:`general`,availableProviders:nf,defaultProviders:rf}),input_fields:z(r.object({[$d.name]:E({fieldName:$d.name})})),output_fields:R(r.object({[ef.name]:k({fieldName:ef.name}),[tf.name]:k({fieldName:tf.name})}))}).optional()}),of=e=>V(K($d,e)),sf={"people-personalemail-profile-waterfall-v1-clado":{provider:`clado`,allowManagedConnection:!0,credits:{default:2},mode:`always`},"people-personalemail-profile-waterfall-v1-leadmagic":{provider:`leadmagic`,allowManagedConnection:!0,credits:{default:1},mode:`onSuccess`},"people-personalemail-profile-waterfall-v1-mixrank":{provider:`mixrank`,allowManagedConnection:!0,credits:{default:1},mode:`onSuccess`}},cf=class extends U{pipeId=Qd;payload;payloadSchema=af;billableOperations=sf;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return this.payload.config?.providers.map(e=>e.provider)||[]}estimateBillableOperations(){return this.getProviderNames().map(e=>J(e,this.billableOperations).billableOperation)}getInputRequirement(){return of(this.payload.config)}getRawOutputFields(){return{[ef.name]:this.catalogOutput(ef,{isPrimaryOutput:!0}),[tf.name]:this.catalogOutput(tf)}}getConnectionsRequirements(){let e={leadmagic:`leadmagic_personal_email_finder`,clado:`clado_contact_information`,mixrank:`mixrank-person-match`};return(this.payload.config?.providers||[]).map((t,n)=>({provider:t.provider,rateLimitRatio:q(n),rateLimitOperation:e[t.provider],allowManagedConnection:!0}))}},lf=af,uf={pipeId:Qd,basePipe:W(Qd),allowedUserConnectionProviders:nf,managedProviders:nf,deprecatedProviders:[`clado`],label:`Find personal email`,executionMode:`waterfall`,categories:[`deprecated`],lifecycle:{deprecatedOn:`2026-06-13`,replacedBy:`person:personalemail:profileurl:waterfall@1`},description:`Find the personal email address of a prospect by using a professional profile URL as input.`,tags:[B.EMAIL,B.PERSONAL_EMAIL],docPath:G(Qd),billableOperations:sf,defaultInputRequirement:of(null),inputFieldMode:`static`,outputFieldMode:`static`,defaultPayload:{pipe_id:Qd,connector:null,run_if:null,config:{providers:rf,input_fields:{profile_url:{alias:``}},output_fields:{personal_email:{alias:``,enabled:!0},alternate_personal_emails:{alias:``,enabled:!0}}}}},df=`people:phone:profile:waterfall@1`,ff=_(`profile_url`),pf=_(`mobile`),mf=[`leadmagic`,`prospeo`,`amplemarket`,`findymail`,`clado`],hf=[{provider:`leadmagic`},{provider:`prospeo`},{provider:`amplemarket`},{provider:`findymail`}],gf=r.object({pipe_id:r.literal(df),run_if:S(),connector:w(),config:r.object({providers:D({sectionKey:`general`,defaultProviders:hf,availableProviders:mf}),input_fields:z(r.object({[ff.name]:E({fieldName:ff.name})})),output_fields:R(r.object({[pf.name]:k({fieldName:pf.name})}))}).optional()}),_f=e=>V(K(ff,e)),vf={"people-phone-profile-waterfall-v1-leadmagic":{provider:`leadmagic`,allowManagedConnection:!0,credits:{default:2},mode:`onSuccess`},"people-phone-profile-waterfall-v1-clado":{provider:`clado`,allowManagedConnection:!0,credits:{default:5},mode:`onSuccess`},"people-phone-profile-waterfall-v1-prospeo":{provider:`prospeo`,allowManagedConnection:!0,credits:{default:5},mode:`onSuccess`},"people-phone-profile-waterfall-v1-findymail":{provider:`findymail`,allowManagedConnection:!0,credits:{default:6},mode:`onSuccess`},"people-phone-profile-waterfall-v1-amplemarket":{provider:`amplemarket`,allowManagedConnection:!0,credits:{default:4},mode:`onSuccess`}},yf=class extends U{pipeId=df;payload;payloadSchema=gf;billableOperations=vf;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return this.payload.config?.providers.map(e=>e.provider)||[]}estimateBillableOperations(){return this.getProviderNames().map(e=>J(e,this.billableOperations).billableOperation)}getInputRequirement(){return _f(this.payload.config)}getRawOutputFields(){return{[pf.name]:this.catalogOutput(pf,{isPrimaryOutput:!0})}}getConnectionsRequirements(){let e={leadmagic:`leadmagic_email_lookup`,prospeo:`prospeo_phone_number_lookup`,findymail:`findymail_phone_lookup`,clado:`clado_contact_information`,amplemarket:`amplemarket-person-reveal`};return(this.payload.config?.providers||[]).map((t,n)=>({provider:t.provider,rateLimitRatio:q(n),rateLimitOperation:e[t.provider],allowManagedConnection:!0}))}},bf=gf,xf={pipeId:df,basePipe:W(df),label:`Mobile number from LinkedIn profile`,executionMode:`waterfall`,categories:[`deprecated`],lifecycle:{deprecatedOn:`2026-06-13`,replacedBy:`person:mobile:profileurl:waterfall@1`},description:`Find a mobile phone number for any prospect using multiple data providers in a waterfall motion.`,docPath:G(df),tags:[B.PHONE,B.WATERFALL],billableOperations:vf,defaultInputRequirement:_f(null),inputFieldMode:`static`,outputFieldMode:`static`,managedProviders:mf,allowedUserConnectionProviders:mf,deprecatedProviders:[`clado`],defaultPayload:{pipe_id:df,connector:null,run_if:null,config:{providers:hf,input_fields:{profile_url:{alias:``}},output_fields:{mobile:{alias:``,enabled:!0}}}}},Sf=`people:phone:workemail:waterfall@1`,Cf=_(`work_email`),wf=_(`mobile`),Tf=[`leadmagic`,`amplemarket`],Ef=[{provider:`leadmagic`},{provider:`amplemarket`}],Df=r.object({pipe_id:r.literal(Sf),run_if:S(),connector:w(),config:r.object({providers:D({sectionKey:`general`,availableProviders:Tf,defaultProviders:Ef}),input_fields:z(r.object({[Cf.name]:E({fieldName:Cf.name})})),output_fields:R(r.object({[wf.name]:k({fieldName:wf.name})}))}).optional()}),Of=e=>V(K(Cf,e)),kf={"people-phone-workemail-waterfall-v1-leadmagic":{provider:`leadmagic`,allowManagedConnection:!0,credits:{default:2},mode:`onSuccess`},"people-phone-workemail-waterfall-v1-amplemarket":{provider:`amplemarket`,allowManagedConnection:!0,credits:{default:4},mode:`onSuccess`}},Af=class extends U{pipeId=Sf;payload;payloadSchema=Df;billableOperations=kf;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return this.payload.config?.providers.map(e=>e.provider)||[]}estimateBillableOperations(){return this.getProviderNames().map(e=>J(e,this.billableOperations).billableOperation)}getInputRequirement(){return Of(this.payload.config)}getRawOutputFields(){return{[wf.name]:this.catalogOutput(wf,{isPrimaryOutput:!0})}}getConnectionsRequirements(){let e={leadmagic:`leadmagic_email_lookup`,amplemarket:`amplemarket-person-reveal`};return(this.payload.config?.providers||[]).map((t,n)=>({provider:t.provider,rateLimitRatio:q(n),rateLimitOperation:e[t.provider],allowManagedConnection:!0}))}},jf=Df,Mf={pipeId:Sf,basePipe:W(Sf),label:`Mobile number from email`,executionMode:`waterfall`,categories:[`deprecated`],lifecycle:{deprecatedOn:`2026-06-13`,replacedBy:`person:mobile:workemail:waterfall@1`},description:`Find a mobile phone number for a prospect.`,tags:[B.PHONE,B.WATERFALL],docPath:G(Sf),billableOperations:kf,defaultInputRequirement:Of(null),inputFieldMode:`static`,outputFieldMode:`static`,allowedUserConnectionProviders:Tf,managedProviders:Tf,deprecatedProviders:[],defaultPayload:{pipe_id:Sf,connector:null,run_if:null,config:{providers:Ef,input_fields:{work_email:{alias:``}},output_fields:{mobile:{alias:``,enabled:!0}}}}},Nf=`people:professionalprofile:waterfall@1`,Pf=_(`professional_profile`),Ff=_(`professional_profile_url`),If=[`prospeo`,`icypeas`],Lf=[{provider:`prospeo`},{provider:`icypeas`}],Rf=r.object({pipe_id:r.literal(Nf),run_if:S(),connector:w(),config:r.object({providers:D({sectionKey:`general`,availableProviders:If,defaultProviders:Lf}),input_fields:z(r.object({[Ff.name]:E({fieldName:Ff.name})})),output_fields:R(r.object({[Pf.name]:k({fieldName:Pf.name})}))}).optional()}),zf=e=>V(K(Ff,e)),Bf={"people-professionalprofile-waterfall-v1-icypeas":{provider:`icypeas`,credits:{default:1},mode:`onSuccess`,allowManagedConnection:!0},"people-professionalprofile-waterfall-v1-prospeo":{provider:`prospeo`,credits:{default:1},mode:`onSuccess`,allowManagedConnection:!0}},Vf=class extends U{pipeId=Nf;payload;payloadSchema=Rf;billableOperations=Bf;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return this.payload.config?.providers.map(e=>e.provider)||[]}estimateBillableOperations(){return this.getProviderNames().map(e=>J(e,this.billableOperations).billableOperation)}getInputRequirement(){return zf(this.payload.config)}getRawOutputFields(){return{[Pf.name]:this.catalogOutput(Pf)}}getConnectionsRequirements(){let e={icypeas:`icypeas_scrape_profile`,prospeo:`prospeo_social_profile_lookup`};return(this.payload.config?.providers||[]).map((t,n)=>({provider:t.provider,rateLimitRatio:q(n),rateLimitOperation:e[t.provider],allowManagedConnection:!0}))}},Hf=Rf,Uf={pipeId:Nf,basePipe:W(Nf),label:`Full LinkedIn profile`,executionMode:`waterfall`,categories:[`deprecated`],lifecycle:{deprecatedOn:`2026-06-13`,replacedBy:`people:profile:waterfall@1`},description:`Find a JSON representation of a LinkedIn profile.`,docPath:`/resources/pipe-catalog/people:professionalprofile:waterfall/1`,tags:[B.LINKEDIN,B.WATERFALL],managedProviders:If,deprecatedProviders:[],allowedUserConnectionProviders:If,inputFieldMode:`static`,outputFieldMode:`static`,billableOperations:Bf,defaultInputRequirement:zf(null),defaultPayload:{pipe_id:Nf,run_if:null,connector:null,config:{providers:Lf,input_fields:{professional_profile_url:{alias:``}},output_fields:{professional_profile:{alias:``,enabled:!0}}}}},Wf=`people:professionalprofileurl:email:waterfall@1`,Gf=_(`email`),Kf=_(`work_email`),qf=_(`professional_profile_url`),Jf=[`leadmagic`],Yf=[{provider:`leadmagic`}],Xf=r.object({pipe_id:r.literal(Wf),run_if:S(),connector:w(),config:r.object({providers:D({sectionKey:`general`,defaultProviders:Yf,availableProviders:Jf}),input_fields:z(r.object({[Gf.name]:E({fieldName:Gf.name}),[Kf.name]:E({fieldName:Kf.name})})),output_fields:R(r.object({[qf.name]:k({fieldName:qf.name})}))}).optional()}),Zf=e=>H(K(Gf,e),K(Kf,e)),Qf={"people-professionalprofileurl-email-waterfall-v1-leadmagic":{provider:`leadmagic`,allowManagedConnection:!0,credits:{default:3.5},mode:`onSuccess`}},$f=class extends U{pipeId=Wf;payload;payloadSchema=Xf;billableOperations=Qf;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return this.payload.config?.providers.map(e=>e.provider)||[]}estimateBillableOperations(){return this.getProviderNames().map(e=>J(e,this.billableOperations).billableOperation)}getInputRequirement(){return Zf(this.payload.config)}getRawOutputFields(){return{[qf.name]:this.catalogOutput(qf)}}getConnectionsRequirements(){let e={leadmagic:`leadmagic_email_to_b2b_profile`};return(this.payload.config?.providers||[]).map((t,n)=>({provider:t.provider,rateLimitRatio:q(n),rateLimitOperation:e[t.provider],allowManagedConnection:!0}))}},ep=Xf,tp={pipeId:Wf,basePipe:W(Wf),managedProviders:Jf,deprecatedProviders:[],allowedUserConnectionProviders:Jf,label:`LinkedIn URL from email`,executionMode:`waterfall`,categories:[`deprecated`],lifecycle:{deprecatedOn:`2026-06-13`,replacedBy:`people:profileurl:email:waterfall@1`},description:`Find the URL for a prospect's LinkedIn profile from their personal or professional email address.`,tags:[B.LINKEDIN],docPath:`/resources/pipe-catalog/people:professionalprofileurl:email:waterfall/1`,billableOperations:Qf,inputFieldMode:`static`,outputFieldMode:`static`,defaultInputRequirement:Zf(null),defaultPayload:{pipe_id:Wf,run_if:null,connector:null,config:{providers:Yf,input_fields:{email:{alias:``},work_email:{alias:``}},output_fields:{professional_profile_url:{alias:``,enabled:!0}}}}},np=`people:professionalprofileurl:name@1`,rp=_(`name`),ip=_(`company_name`),ap=_(`location_hint`),op=_(`professional_profile_url`),sp=r.object({pipe_id:r.literal(np),connector:T(),run_if:S(),config:r.object({input_fields:z(r.object({[rp.name]:E({fieldName:rp.name}),[ip.name]:E({fieldName:ip.name}),[ap.name]:E({fieldName:ap.name})})),output_fields:R(r.object({[op.name]:k({fieldName:op.name})}))}).optional()}),cp=e=>Ea(V(K(rp,e)),V(K(ip,e)),Da(K(ap,e))),lp={"people-professionalprofileurl-name-v1-pipe0":{provider:`pipe0`,allowManagedConnection:!0,credits:{default:.6},mode:`always`}},up=class extends U{pipeId=np;payload;payloadSchema=sp;billableOperations=lp;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[`people-professionalprofileurl-name-v1-pipe0`]}getInputRequirement(){return cp(this.payload.config)}getRawOutputFields(){return{[op.name]:this.catalogOutput(op)}}getConnectionsRequirements(){return[{provider:`serper`,rateLimitRatio:1,rateLimitOperation:`serper_search`,allowManagedConnection:!0}]}},dp=sp,fp={pipeId:np,basePipe:W(np),label:`LinkedIn URL from name`,executionMode:`single`,categories:[`deprecated`],lifecycle:{deprecatedOn:`2026-06-13`,replacedBy:`person:profileurl:name@1`},allowedUserConnectionProviders:[],managedProviders:[`pipe0`],deprecatedProviders:[],description:`Find the LinkedIn profile URL by using the prospect's name as input.`,docPath:`/resources/pipe-catalog/people:professionalprofileurl:name/1`,tags:[B.LINKEDIN],billableOperations:lp,defaultInputRequirement:cp(null),inputFieldMode:`static`,outputFieldMode:`static`,defaultPayload:{pipe_id:np,connector:void 0,run_if:null,config:{input_fields:{company_name:{alias:``},location_hint:{alias:``},name:{alias:``}},output_fields:{professional_profile_url:{alias:``,enabled:!0}}}}},pp=`people:profile:waterfall@1`,mp=_(`profile`),hp=_(`profile_url`),gp=[`prospeo`,`icypeas`,`amplemarket`,`clado`],_p=[{provider:`amplemarket`},{provider:`prospeo`},{provider:`icypeas`}],vp=r.object({pipe_id:r.literal(pp),run_if:S(),connector:w(),config:r.object({providers:D({sectionKey:`general`,availableProviders:gp,defaultProviders:_p}),input_fields:z(r.object({[hp.name]:E({fieldName:hp.name})})),output_fields:R(r.object({[mp.name]:k({fieldName:mp.name})}))}).optional()}),yp=e=>V(K(hp,e)),bp={"people-profile-waterfall-v1-icypeas":{provider:`icypeas`,credits:{default:1},mode:`onSuccess`,allowManagedConnection:!0},"people-profile-waterfall-v1-prospeo":{provider:`prospeo`,credits:{default:1},mode:`onSuccess`,allowManagedConnection:!0},"people-profile-waterfall-v1-clado":{provider:`clado`,credits:{default:1},mode:`onSuccess`,allowManagedConnection:!0},"people-profile-waterfall-v1-amplemarket":{provider:`amplemarket`,credits:{default:1},mode:`onSuccess`,allowManagedConnection:!0}},xp=class extends U{pipeId=pp;payload;payloadSchema=vp;billableOperations=bp;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return this.payload.config?.providers.map(e=>e.provider)||[]}estimateBillableOperations(){return this.getProviderNames().map(e=>J(e,this.billableOperations).billableOperation)}getInputRequirement(){return yp(this.payload.config)}getRawOutputFields(){return{[mp.name]:this.catalogOutput(mp,{isPrimaryOutput:!0})}}getConnectionsRequirements(){let e={icypeas:`icypeas_scrape_profile`,prospeo:`prospeo_social_profile_lookup`,clado:`clado_social_profile_lookup`,amplemarket:`amplemarket-person-reveal`};return(this.payload.config?.providers||[]).map((t,n)=>({provider:t.provider,rateLimitRatio:q(n),rateLimitOperation:e[t.provider],allowManagedConnection:!0}))}},Sp=vp,Cp={pipeId:pp,basePipe:W(pp),label:`Full LinkedIn profile`,executionMode:`waterfall`,categories:[`deprecated`],lifecycle:{deprecatedOn:`2026-06-13`,replacedBy:`person:profile:waterfall@1`},description:`Find a JSON representation of a LinkedIn profile.`,docPath:G(pp),tags:[B.LINKEDIN,B.WATERFALL],managedProviders:gp,deprecatedProviders:[`clado`],allowedUserConnectionProviders:gp,inputFieldMode:`static`,outputFieldMode:`static`,billableOperations:bp,defaultInputRequirement:yp(null),defaultPayload:{pipe_id:pp,run_if:null,connector:null,config:{providers:_p,input_fields:{profile_url:{alias:``}},output_fields:{profile:{alias:``,enabled:!0}}}}},wp=_(`work_email`),Tp=_(`crustdata_person_match`),Ep=_(`crustdata_profile_match_score`),Dp=`people:profile:workemail:crustdata@1`,Op=r.object({pipe_id:r.literal(Dp),run_if:S(),connector:w(),config:r.object({input_fields:z(r.object({[wp.name]:E({fieldName:wp.name})})),output_fields:R(r.object({[Tp.name]:k({fieldName:Tp.name}),[Ep.name]:k({fieldName:Ep.name})}))}).optional()}),kp=e=>V(K(wp,e)),Ap={"people-profile-workemail-crustdata-v1-crustdata":{allowManagedConnection:!0,credits:{default:5},mode:`onSuccess`,provider:`crustdata`}},jp=class extends U{pipeId=Dp;payload;payloadSchema=Op;billableOperations=Ap;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`crustdata`]}estimateBillableOperations(){return[`people-profile-workemail-crustdata-v1-crustdata`]}getInputRequirement(){return kp(this.payload.config)}getRawOutputFields(){return{[Tp.name]:this.catalogOutput(Tp),[Ep.name]:this.catalogOutput(Ep)}}getConnectionsRequirements(){return[{provider:`crustdata`,rateLimitRatio:1,rateLimitOperation:`crustdata_realtime_person_enrich`,allowManagedConnection:!0}]}},Mp=Op,Np={pipeId:Dp,inputFieldMode:`static`,outputFieldMode:`static`,basePipe:W(Dp),label:`Profile from work email`,executionMode:`single`,categories:[`deprecated`],lifecycle:{deprecatedOn:`2026-06-13`,replacedBy:`person:profile:workemail:crustdata@1`},description:`Find person profile by their work email address.`,tags:[B.EMAIL,B.PEOPLE_PROFILES],docPath:G(Dp),billableOperations:Ap,allowedUserConnectionProviders:[`crustdata`],managedProviders:[`crustdata`],deprecatedProviders:[],defaultInputRequirement:kp(null),defaultPayload:{pipe_id:Dp,connector:null,run_if:null,config:{input_fields:{work_email:{alias:``}},output_fields:{crustdata_person_match:{alias:``,enabled:!0},crustdata_profile_match_score:{alias:``,enabled:!0}}}}},Pp=`people:profileurl:email:waterfall@1`,Fp=_(`email`),Ip=_(`work_email`),Lp=_(`profile_url`),Rp=[`leadmagic`],zp=[{provider:`leadmagic`}],Bp=r.object({pipe_id:r.literal(Pp),run_if:S(),connector:w(),config:r.object({providers:D({sectionKey:`general`,defaultProviders:zp,availableProviders:Rp}),input_fields:z(r.object({[Fp.name]:E({fieldName:Fp.name}),[Ip.name]:E({fieldName:Ip.name})})),output_fields:R(r.object({[Lp.name]:k({fieldName:Lp.name})}))}).optional()}),Vp=e=>H(K(Fp,e),K(Ip,e)),Hp={"people-profileurl-email-waterfall-v1-leadmagic":{provider:`leadmagic`,allowManagedConnection:!0,credits:{default:3.5},mode:`onSuccess`}},Up=class extends U{pipeId=Pp;payload;payloadSchema=Bp;billableOperations=Hp;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return this.payload.config?.providers.map(e=>e.provider)||[]}estimateBillableOperations(){return this.getProviderNames().map(e=>J(e,this.billableOperations).billableOperation)}getInputRequirement(){return Vp(this.payload.config)}getRawOutputFields(){return{[Lp.name]:this.catalogOutput(Lp,{isPrimaryOutput:!0})}}getConnectionsRequirements(){let e={leadmagic:`leadmagic_email_to_b2b_profile`};return(this.payload.config?.providers||[]).map((t,n)=>({provider:t.provider,rateLimitRatio:q(n),rateLimitOperation:e[t.provider],allowManagedConnection:!0}))}},Wp=Bp,Gp={pipeId:Pp,basePipe:W(Pp),managedProviders:Rp,deprecatedProviders:[],allowedUserConnectionProviders:Rp,label:`LinkedIn URL from email`,executionMode:`waterfall`,categories:[`deprecated`],lifecycle:{deprecatedOn:`2026-06-13`,replacedBy:`person:profileurl:email:waterfall@1`},description:`Find the URL for a prospect's LinkedIn profile from their personal or professional email address.`,tags:[B.LINKEDIN],docPath:G(Pp),billableOperations:Hp,inputFieldMode:`static`,outputFieldMode:`static`,defaultInputRequirement:Vp(null),defaultPayload:{pipe_id:Pp,run_if:null,connector:null,config:{providers:zp,input_fields:{email:{alias:``},work_email:{alias:``}},output_fields:{profile_url:{alias:``,enabled:!0}}}}},Kp=`people:validate:email:zerobounce@1`,qp=_(`work_email`),Jp=_(`ip_address`),Yp=_(`is_email_valid`),Xp=r.object({pipe_id:r.literal(Kp),connector:w(),run_if:S(),config:r.object({input_fields:z(r.object({[qp.name]:E({fieldName:qp.name}),[Jp.name]:E({fieldName:Jp.name})})),output_fields:R(r.object({[Yp.name]:k({fieldName:Yp.name})}))}).optional()}),Zp=e=>Ea(V(K(qp,e)),Da(K(Jp,e))),Qp={"people-validate-email-zerobounce-v1-zerobounce":{provider:`zerobounce`,allowManagedConnection:!0,credits:{default:.5},mode:`always`}},$p=class extends U{pipeId=Kp;payload;payloadSchema=Xp;billableOperations=Qp;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`zerobounce`]}estimateBillableOperations(){return[`people-validate-email-zerobounce-v1-zerobounce`]}getInputRequirement(){return Zp(this.payload.config)}getRawOutputFields(){return{[Yp.name]:this.catalogOutput(Yp)}}getConnectionsRequirements(){return[{provider:`zerobounce`,rateLimitRatio:1,rateLimitOperation:`zerobounce_generic`,allowManagedConnection:!0}]}},em=Xp,tm={pipeId:Kp,basePipe:W(Kp),label:`Validate email`,executionMode:`single`,categories:[`deprecated`],lifecycle:{deprecatedOn:`2026-06-13`,replacedBy:`people:email:validate:zerobounce@1`},description:`Verify email address against various factors, including syntax, domain, and server existence, to ensure it is deliverable and active.`,tags:[B.EMAIL],docPath:`/resources/pipe-catalog/people:validate:email:zerobounce/1`,billableOperations:Qp,inputFieldMode:`static`,outputFieldMode:`static`,allowedUserConnectionProviders:[`zerobounce`],managedProviders:[`zerobounce`],deprecatedProviders:[],defaultInputRequirement:Zp(null),defaultPayload:{pipe_id:Kp,connector:null,run_if:null,config:{input_fields:{ip_address:{alias:``},work_email:{alias:``}},output_fields:{is_email_valid:{alias:``,enabled:!0}}}}},nm=`people:workemail:profileurl:waterfall@1`,rm=_(`profile_url`),im=_(`work_email`),am=_(`email_validation_status`),om=[`hunter`,`amplemarket`,`findymail`,`leadmagic`,`crustdata`,`clado`],sm=[`clado`],cm=[{provider:`hunter`},{provider:`amplemarket`},{provider:`leadmagic`},{provider:`findymail`},{provider:`crustdata`}],lm=r.object({pipe_id:r.literal(nm),connector:w(),run_if:S(),config:r.object({providers:D({availableProviders:om,defaultProviders:cm,sectionKey:`general`}),allow_catch_all_emails:O({path:`config.allow_catch_all_emails`,defaultValue:!0,groupPath:`config.general`,sectionKey:`general`,info:``,label:`Allow catch-all emails`}),allow_risky_emails:O({path:`config.allow_risky_emails`,defaultValue:!0,groupPath:`config.general`,sectionKey:`general`,info:`Higher chance of bouncing or being marked as spam.`,label:`Allow risky emails`}),input_fields:z(r.object({[rm.name]:E({fieldName:rm.name})})),output_fields:R(r.object({[im.name]:k({fieldName:im.name}),[am.name]:k({fieldName:am.name})}))}).optional()}),um=e=>V(K(rm,e)),dm={"people-workemail-profileurl-waterfall-v1-hunter":{provider:`hunter`,allowManagedConnection:!0,credits:{default:1},mode:`onSuccess`},"people-workemail-profileurl-waterfall-v1-leadmagic":{provider:`leadmagic`,allowManagedConnection:!0,credits:{default:2},mode:`onSuccess`},"people-workemail-profileurl-waterfall-v1-findymail":{provider:`findymail`,allowManagedConnection:!0,credits:{default:2},mode:`onSuccess`},"people-workemail-profileurl-waterfall-v1-crustdata":{provider:`crustdata`,allowManagedConnection:!0,credits:{default:3},mode:`onSuccess`},"people-workemail-profileurl-waterfall-v1-clado":{provider:`clado`,allowManagedConnection:!0,credits:{default:3.5},mode:`onSuccess`},"people-workemail-profileurl-waterfall-v1-amplemarket":{provider:`amplemarket`,allowManagedConnection:!0,credits:{default:2.5},mode:`onSuccess`}},fm=class extends U{pipeId=nm;payload;payloadSchema=lm;billableOperations=dm;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return this.payload.config?.providers.map(e=>e.provider)||[]}estimateBillableOperations(){return this.getProviderNames().map(e=>J(e,this.billableOperations).billableOperation)}getInputRequirement(){return um(this.payload.config)}getRawOutputFields(){return{[im.name]:this.catalogOutput(im,{isPrimaryOutput:!0}),[am.name]:this.catalogOutput(am,{isPrimaryOutput:!1})}}getConnectionsRequirements(){let e={leadmagic:`leadmagic_email_b2b_lookup`,hunter:`prospeo_email_lookup`,amplemarket:`amplemarket-person-reveal`,findymail:`findymail_email_b2b_lookup`,crustdata:`crustdata_realtime_person_enrich`,clado:`clado_contact_information`};return(this.payload.config?.providers||[]).map((t,n)=>({provider:t.provider,rateLimitRatio:q(n),rateLimitOperation:e[t.provider],allowManagedConnection:!0}))}},pm=lm,mm={pipeId:nm,basePipe:W(nm),label:`Work email from LinkedIn URL`,executionMode:`waterfall`,categories:[`deprecated`],lifecycle:{deprecatedOn:`2026-06-13`,replacedBy:`person:workemail:profileurl:waterfall@1`},description:`Find work email addresses from B2B profile.`,tags:[B.EMAIL,B.WORK_EMAIL,B.WATERFALL],docPath:G(nm),managedProviders:om,allowedUserConnectionProviders:om,deprecatedProviders:sm,inputFieldMode:`static`,outputFieldMode:`static`,billableOperations:dm,defaultInputRequirement:um(null),defaultPayload:{pipe_id:nm,connector:null,run_if:null,config:{providers:cm,allow_catch_all_emails:!0,allow_risky_emails:!0,input_fields:{profile_url:{alias:``}},output_fields:{work_email:{alias:``,enabled:!0},email_validation_status:{alias:``,enabled:!0}}}}},hm=`people:workemail:waterfall@1`,gm=_(`name`),_m=_(`company_website_url`),vm=_(`company_name`),ym=_(`work_email`),bm=_(`email_validation_status`),xm=[`leadmagic`,`prospeo`,`amplemarket`,`hunter`,`icypeas`,`findymail`],Sm=[{provider:`leadmagic`},{provider:`prospeo`},{provider:`amplemarket`},{provider:`hunter`},{provider:`icypeas`},{provider:`findymail`}],Cm=r.object({pipe_id:r.literal(hm),connector:w(),run_if:S(),config:r.object({providers:D({availableProviders:xm,defaultProviders:Sm,sectionKey:`general`}),allow_catch_all_emails:O({path:`config.allow_catch_all_emails`,defaultValue:!0,groupPath:`config.general`,sectionKey:`general`,description:`Catch-alls appear valid but remain undeliverable-risk.`,label:`Allow catch-all emails`}),allow_risky_emails:O({path:`config.allow_risky_emails`,defaultValue:!0,groupPath:`config.general`,sectionKey:`general`,description:`DNS configuration and spam reputation may flag emails as high-risk.`,label:`Allow risky emails`}),input_fields:z(r.object({[gm.name]:E({fieldName:gm.name}),[_m.name]:E({fieldName:_m.name}),[vm.name]:E({fieldName:vm.name})})),output_fields:R(r.object({[ym.name]:k({fieldName:ym.name}),[bm.name]:k({fieldName:bm.name})}))}).optional()}),wm=e=>Ea(V(K(gm,e)),H(K(_m,e),K(vm,e))),Tm={"people-workemail-waterfall-v1-leadmagic":{provider:`leadmagic`,allowManagedConnection:!0,credits:{default:.5},mode:`onSuccess`},"people-workemail-waterfall-v1-icypeas":{provider:`icypeas`,allowManagedConnection:!0,credits:{default:.5},mode:`onSuccess`},"people-workemail-waterfall-v1-prospeo":{provider:`prospeo`,allowManagedConnection:!0,credits:{default:1,level1:{credits:.5,weight:1}},mode:`onSuccess`},"people-workemail-waterfall-v1-findymail":{provider:`findymail`,allowManagedConnection:!0,credits:{default:1},mode:`onSuccess`},"people-workemail-waterfall-v1-hunter":{provider:`hunter`,allowManagedConnection:!0,credits:{default:1},mode:`onSuccess`},"people-workemail-waterfall-v1-amplemarket":{provider:`amplemarket`,allowManagedConnection:!0,credits:{default:2.5},mode:`onSuccess`}},Em=class extends U{pipeId=hm;payload;payloadSchema=Cm;billableOperations=Tm;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return this.payload.config?.providers.map(e=>e.provider)||[]}estimateBillableOperations(){return this.getProviderNames().map(e=>J(e,this.billableOperations).billableOperation)}getInputRequirement(){return wm(this.payload.config)}getRawOutputFields(){return{[ym.name]:this.catalogOutput(ym,{isPrimaryOutput:!0}),[bm.name]:this.catalogOutput(bm,{isPrimaryOutput:!0})}}getConnectionsRequirements(){let e={leadmagic:`leadmagic_email_lookup`,prospeo:`prospeo_email_lookup`,icypeas:`icypeas_email_lookup`,findymail:`findymail_email_lookup`,hunter:`hunter_email_finder`,amplemarket:`amplemarket-person-reveal`};return(this.payload.config?.providers||[]).map((t,n)=>({provider:t.provider,rateLimitRatio:q(n),rateLimitOperation:e[t.provider],allowManagedConnection:!0}))}},Dm=Cm,Om={pipeId:hm,basePipe:W(hm),label:`Work email from name`,executionMode:`waterfall`,categories:[`deprecated`],lifecycle:{deprecatedOn:`2026-06-13`,replacedBy:`person:workemail:waterfall@1`},description:`Find work email addresses in a waterfall motion.`,tags:[B.EMAIL,B.WORK_EMAIL,B.WATERFALL],docPath:G(hm),managedProviders:xm,deprecatedProviders:[],allowedUserConnectionProviders:xm,inputFieldMode:`static`,outputFieldMode:`static`,billableOperations:Tm,defaultInputRequirement:wm(null),defaultPayload:{pipe_id:hm,connector:null,run_if:null,config:{providers:Sm,allow_catch_all_emails:!0,allow_risky_emails:!0,input_fields:{company_name:{alias:``},company_website_url:{alias:``},name:{alias:``}},output_fields:{work_email:{alias:``,enabled:!0},email_validation_status:{alias:``,enabled:!1}}}}},km=`email:iswork@1`,Am=_(`is_work_email`),jm=_(`email`),Mm=r.object({pipe_id:r.literal(km),run_if:S(),connector:T(),config:r.object({input_fields:z(r.object({[jm.name]:E({fieldName:jm.name})})),output_fields:R(r.object({[Am.name]:k({fieldName:Am.name})}))}).optional()}),Nm=e=>V(K(jm,e)),Pm={"email-iswork-v1-pipe0":{provider:`pipe0`,allowManagedConnection:!0,credits:{default:0},mode:`always`}},Fm=class extends U{pipeId=km;payload;payloadSchema=Mm;billableOperations=Pm;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[`email-iswork-v1-pipe0`]}getInputRequirement(){return Nm(this.payload.config)}getRawOutputFields(){return{[Am.name]:this.catalogOutput(Am)}}getConnectionsRequirements(){return[{provider:`pipe0`,rateLimitRatio:1,rateLimitOperation:`pipe0_logic`,allowManagedConnection:!0}]}},Im=Mm,Lm={pipeId:km,label:`Work email checker`,executionMode:`single`,categories:[`people_data`],lifecycle:null,description:`Check if a given email address is personal or professional.`,tags:[B.EMAIL,B.WORK_EMAIL],docPath:G(km),billableOperations:Pm,basePipe:W(km),allowedUserConnectionProviders:[],inputFieldMode:`static`,outputFieldMode:`static`,managedProviders:[`pipe0`],deprecatedProviders:[],defaultInputRequirement:Nm(null),defaultPayload:{pipe_id:km,run_if:null,connector:null,config:{input_fields:{email:{alias:``}},output_fields:{is_work_email:{alias:``,enabled:!0}}}}};function Rm(e,t){return typeof t==`string`?t:t(e)}function zm(e,t){return typeof t==`string`||t===null?t:t(e)}function Bm(e,t){let n={};for(let r of t){let t=!1;for(let i of e.pipes){let a=i.getOutputFields();if(a[r]){n[r]??={type:Rm(e,a[r].type),format:zm(e,a[r].format)},t=!0;break}}if(t)continue;let i=e.derivedInputFields[r];i&&(n[r]??={type:i.type,format:null})}return n}function Vm(e,t){for(let n of e.pipes){let r=n.getOutputFields();if(r[t])return{type:Rm(e,r[t].type),format:zm(e,r[t].format)}}let n=e.derivedInputFields[t];if(n)return{type:n.type,format:null}}function Hm(e,t={}){let n=t.expectedType??`string`,r=t.expectedFormat??`text`,i=new Map;for(let t of e){if(!t)continue;let e;try{e=jr(t)}catch{continue}for(let[t,n]of Object.entries(e.inputs)){let e=i.get(t);i.set(t,{required:e&&e.required||n.required})}}let a=[];for(let[e,t]of i){let i={name:e,resolvedName:e,label:e,description:``,type:t=>Vm(t,e)?.type||n,format:r};a.push(t.required?V(i):Da(i))}return Ea(...a)}function Y(e){let t=new Set;for(let n of e)if(n)try{let e=jr(n);for(let n of e.secrets)t.add(n)}catch{}return[...t]}function X(e){let t=new Set;for(let n of e)if(n)try{let e=jr(n);for(let n of e.constants)t.add(n)}catch{}return[...t]}const Um=`email:send:gmail@1`,Wm=_(`gmail_email_success`),Gm=r.object({pipe_id:r.literal(Um),connector:Gi(),run_if:S(),config:r.object({to:C({sectionKey:`general`,groupPath:`config.general`,path:`config.to`,label:`To`,info:"Recipient address. Type `@` to insert a field reference or `$` to insert a secret reference.",placeholder:`{{ email }}`,inputType:`email`,minLength:1,maxLength:320,expectedTagType:`string`,expectedTagFormat:`email`}),reply_to:C({sectionKey:`general`,groupPath:`config.general`,path:`config.reply_to`,label:`Reply-To`,info:"Optional address recipients can reply to. Type `@` to insert a field reference or `$` to insert a secret reference.",placeholder:`support@example.com`,inputType:`email`,maxLength:320,expectedTagType:`string`,expectedTagFormat:`email`}),subject:C({sectionKey:`general`,groupPath:`config.general`,path:`config.subject`,label:`Subject`,info:"Email subject line. Type `@` to insert a field reference or `$` to insert a secret reference.",placeholder:`Hi {{ first_name }}`,inputType:`text`,minLength:1,maxLength:998,expectedTagType:`string`,expectedTagFormat:`text`}),body:C({sectionKey:`general`,groupPath:`config.general`,path:`config.body`,label:`Body`,info:"Email body in markdown. Type `@` to insert a field reference or `$` to insert a secret reference.",placeholder:`Hi {{ first_name }},
68
68
 
69
69
  …`,inputType:`text`,minLength:1,maxLength:1e6,expectedTagType:`string`,expectedTagFormat:`markdown`,multiline:!0}),output_fields:R(r.object({[Wm.name]:k({fieldName:Wm.name})}))})}),Km={"email-send-gmail-v1-gmail":{allowManagedConnection:!1,provider:`gmail`,credits:null,mode:null}},qm=class extends U{pipeId=Um;payload;payloadSchema=Gm;billableOperations=Km;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`gmail`]}estimateBillableOperations(){return[`email-send-gmail-v1-gmail`]}getTemplatedFields(){return[this.payload.config.to,this.payload.config.reply_to,this.payload.config.subject,this.payload.config.body]}getInputRequirement(){return Hm(this.getTemplatedFields())}getSecretRequirements(){return Y(this.getTemplatedFields())}getConstantRequirements(){return X(this.getTemplatedFields())}getRawOutputFields(){return{[Wm.name]:this.catalogOutput(Wm)}}getConnectionsRequirements(){return[{provider:`gmail`,rateLimitRatio:1,rateLimitOperation:`gmail_send_email`,allowManagedConnection:!1}]}},Jm=Gm,Ym={pipeId:Um,basePipe:W(Um),label:`Send email`,executionMode:`single`,categories:[`actions`],lifecycle:null,description:`Send an email with Gmail.`,detailed_description:"Send an email via Gmail. To, Reply-To, Subject and Body are templated config fields β€” reference upstream fields with `{{ field_name }}` and stored secrets with `{{ SECRETS.KEY }}`. Requires a Gmail vault connection (call list_connections to find one).",tags:[B.EMAIL],docPath:G(Um),billableOperations:Km,inputFieldMode:`config`,outputFieldMode:`static`,allowedUserConnectionProviders:[`gmail`],defaultInputRequirement:null,managedProviders:[],deprecatedProviders:[],defaultPayload:{pipe_id:Um,connector:{strategy:`first`,connections:[]},run_if:null,config:{to:``,reply_to:``,subject:``,body:``,output_fields:{gmail_email_success:{alias:``,enabled:!0}}}}},Xm=`email:send:resend@1`,Zm=_(`resend_email_success`),Qm=r.object({pipe_id:r.literal(Xm),connector:Gi(),run_if:S(),config:r.object({from:C({sectionKey:`general`,groupPath:`config.general`,path:`config.from`,label:`From`,info:"Sender address. Type `@` to insert a field reference or `$` to insert a secret reference.",placeholder:`noreply@example.com`,inputType:`email`,minLength:3,maxLength:320,expectedTagType:`string`,expectedTagFormat:`email`}),to:C({sectionKey:`general`,groupPath:`config.general`,path:`config.to`,label:`To`,info:"Recipient address. Type `@` to insert a field reference or `$` to insert a secret reference.",placeholder:`{{ email }}`,inputType:`email`,minLength:1,maxLength:320,expectedTagType:`string`,expectedTagFormat:`email`}),reply_to:C({sectionKey:`general`,groupPath:`config.general`,path:`config.reply_to`,label:`Reply-To`,info:"Optional address recipients can reply to. Type `@` to insert a field reference or `$` to insert a secret reference.",placeholder:`support@example.com`,inputType:`email`,maxLength:320,expectedTagType:`string`,expectedTagFormat:`email`}),subject:C({sectionKey:`general`,groupPath:`config.general`,path:`config.subject`,label:`Subject`,info:"Email subject line. Type `@` to insert a field reference or `$` to insert a secret reference.",placeholder:`Hi {{ first_name }}`,inputType:`text`,minLength:1,maxLength:998,expectedTagType:`string`,expectedTagFormat:`text`}),body:C({sectionKey:`general`,groupPath:`config.general`,path:`config.body`,label:`Body`,info:"Email body in markdown. Type `@` to insert a field reference or `$` to insert a secret reference.",placeholder:`Hi {{ first_name }},
70
70
 
71
71
  …`,inputType:`text`,minLength:1,maxLength:1e6,expectedTagType:`string`,expectedTagFormat:`markdown`,multiline:!0}),output_fields:R(r.object({[Zm.name]:k({fieldName:Zm.name})}))})}),$m={"email-send-resend-v1-resend":{allowManagedConnection:!1,provider:`resend`,credits:null,mode:null}},eh=class extends U{pipeId=Xm;payload;payloadSchema=Qm;billableOperations=$m;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`resend`]}estimateBillableOperations(){return[`email-send-resend-v1-resend`]}getTemplatedFields(){return[this.payload.config.from,this.payload.config.to,this.payload.config.reply_to,this.payload.config.subject,this.payload.config.body]}getInputRequirement(){return Hm(this.getTemplatedFields())}getSecretRequirements(){return Y(this.getTemplatedFields())}getConstantRequirements(){return X(this.getTemplatedFields())}getRawOutputFields(){return{[Zm.name]:this.catalogOutput(Zm)}}getConnectionsRequirements(){return[{provider:`resend`,rateLimitRatio:1,rateLimitOperation:`resend_generic`,allowManagedConnection:!1}]}},th=Qm,nh={pipeId:Xm,basePipe:W(Xm),label:`Send email with Resend`,executionMode:`single`,categories:[`actions`],lifecycle:null,description:`Send an email with Resend.`,detailed_description:"Send an email via Resend. From, To, Reply-To, Subject and Body are templated config fields β€” reference upstream fields with `{{ field_name }}` and stored secrets with `{{ SECRETS.KEY }}`. Requires a Resend vault connection (call list_connections to find one).",tags:[B.EMAIL],docPath:G(Xm),billableOperations:$m,inputFieldMode:`config`,outputFieldMode:`static`,allowedUserConnectionProviders:[`resend`],defaultInputRequirement:null,managedProviders:[],deprecatedProviders:[],defaultPayload:{pipe_id:Xm,connector:{strategy:`first`,connections:[]},run_if:null,config:{from:``,to:``,reply_to:``,subject:``,body:``,output_fields:{resend_email_success:{alias:``,enabled:!0}}}}},rh=`email:validate:zerobounce@1`,ih=_(`email`),ah=_(`zerobounce_validation_status`),oh=_(`zerobounce_validation_match`),sh=r.object({pipe_id:r.literal(rh),connector:w(),run_if:S(),config:r.object({input_fields:z(r.object({[ih.name]:E({fieldName:ih.name})})),output_fields:R(r.object({[oh.name]:k({fieldName:oh.name}),[ah.name]:k({fieldName:ah.name})}))}).optional()}),ch=e=>V(K(ih,e)),lh={"email-validate-zerobounce-v1-zerobounce":{provider:`zerobounce`,allowManagedConnection:!0,credits:{default:.4,level1:{credits:.3,weight:1},level2:{credits:.15,weight:2}},mode:`always`}},uh=class extends U{pipeId=rh;payload;payloadSchema=sh;billableOperations=lh;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`zerobounce`]}estimateBillableOperations(){return[`email-validate-zerobounce-v1-zerobounce`]}getInputRequirement(){return ch(this.payload.config)}getRawOutputFields(){return{[ah.name]:this.catalogOutput(ah),[oh.name]:this.catalogOutput(oh)}}getConnectionsRequirements(){return[{provider:`zerobounce`,rateLimitRatio:1,rateLimitOperation:`zerobounce_generic`,allowManagedConnection:!0}]}},dh=sh,fh={pipeId:rh,basePipe:W(rh),label:`Validate email`,executionMode:`single`,categories:[`people_data`],lifecycle:null,description:`Verify email address against various factors, including syntax, domain, and server existence, to ensure it is deliverable and active.`,tags:[B.EMAIL],docPath:G(rh),billableOperations:lh,inputFieldMode:`static`,outputFieldMode:`static`,allowedUserConnectionProviders:[`zerobounce`],managedProviders:[`zerobounce`],deprecatedProviders:[],defaultInputRequirement:ch(null),defaultPayload:{pipe_id:rh,connector:null,run_if:null,config:{input_fields:{email:{alias:``}},output_fields:{zerobounce_validation_status:{alias:``,enabled:!0},zerobounce_validation_match:{alias:``,enabled:!0}}}}},ph={title:`Software Engineer, CEO, ...`,seniority:`C-Suite, Senior, ...`,department:`Consulting, Finance, ...`,certification:`CISSP, AWS, ...`,crunchbase_category:`3D Printing, Big Date, ...`,honor:`Cum Laude, 40 Under 40, ...`,field_of_study:`Engineering, Computer Science, ...`,degree_name:`Bachelor of Science, ...`,extracurricular:`Athelete, Debate Team, ...`,job_function:`Accounting, Advertising, ...`,location:`USA, Germany, France, ...`,company_name:`Google, Anthropic, ...`,company_domain:`google.com, openai.com, ...`,company_profile_keyword:`B2B, Software, ...`,headline_keywords:`Founder, JavaScript, ...`,profile_keywords:`Coach, Scrum, ...`,languages:`German, English, ...`,languages_1:`Spanish, Italian, ...`,skills:`TypeScript, Playwright, ...`,industry:`IT, Agriculture, ...`,investor:`a16z, Inside Partners, ...`,school:`MIT, Harvard, ...`,prompt:`Enter prompt here...`,template:`Enter template here...`};function Z(e){return ph[e]}const mh=`email:write@1`,hh=`email-write-v1`,gh=ti(hh),_h=_(`email_subject`),vh=_(`email_body`),yh=r.object({pipe_id:r.literal(mh),connector:w(),run_if:S(),config:r.object({template:Ui({sectionKey:`general`,label:`Prompt`,path:`config.template`,placeholder:Z(`prompt`),groupPath:`config.prompt`,required:!0}),model:oa({sectionKey:`general`,label:`Model`,path:`config.model`,groupPath:`config.prompt`,billableOperations:gh}),signature:ia({sectionKey:`general`,label:`Signature (Markdown)`,path:`config.signature`,groupPath:`config.email`,minLength:5,rows:10}),persona:aa({sectionKey:`general`,label:`Persona`,info:`Define the unique tone of your email`,path:`config.persona`,groupPath:`config.prompt`,required:!1,options:[{label:`Sales`,value:`sales`},{label:`Human Resources`,value:`human_resources`},{label:`Customer Success`,value:`customer_success`}]}),output_fields:R(r.object({[_h.name]:k({fieldName:_h.name}),[vh.name]:k({fieldName:vh.name})}))})}),bh=class extends U{pipeId=mh;payload;payloadSchema=yh;billableOperations=gh;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return ri(this.payload.config.model)}estimateBillableOperations(){return[ni(this.payload.config.model,hh)]}getInputRequirement(){return Hm([this.payload.config.template])}getSecretRequirements(){return Y([this.payload.config.template])}getConstantRequirements(){return X([this.payload.config.template])}getRawOutputFields(){return{[_h.name]:this.catalogOutput(_h),[vh.name]:this.catalogOutput(vh)}}getConnectionsRequirements(){return ii(this.payload.config.model)}},xh=yh,Sh={pipeId:mh,inputFieldMode:`config`,outputFieldMode:`static`,basePipe:W(mh),label:`Email writer`,executionMode:`single`,categories:[`tools`],lifecycle:null,description:`An AI agent specialized in composing emails.`,detailed_description:`AI email composer. Outputs: email_subject, email_body. Pair with email:send:gmail@1 or email:send:resend@1 to send the composed email. Requires 'email' field in input records for the sender pipe.`,tags:[B.AI],docPath:G(mh),defaultInputRequirement:null,billableOperations:gh,allowedUserConnectionProviders:ai(),managedProviders:ai(),deprecatedProviders:[],defaultPayload:{pipe_id:mh,connector:null,run_if:null,config:{template:``,output_fields:{email_body:{alias:``,enabled:!0},email_subject:{alias:``,enabled:!0}},persona:`sales`,model:`openai-gpt-latest`,signature:``}}},Ch=`field:domainify@1`,wh=_(`url_input`),Th=_(`domain`),Eh=r.object({pipe_id:r.literal(Ch),run_if:S(),connector:T(),config:r.object({input_fields:z(r.object({[wh.name]:E({fieldName:wh.name})})),output_fields:R(r.object({[Th.name]:k({fieldName:Th.name})}))}).optional()}),Dh=e=>V(K(wh,e)),Oh={"field-domainify-v1-pipe0":{provider:`pipe0`,allowManagedConnection:!0,credits:{default:0},mode:`always`}},kh=class extends U{pipeId=Ch;payload;payloadSchema=Eh;billableOperations=Oh;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[]}getInputRequirement(){return Dh(this.payload.config)}getRawOutputFields(){return{[Th.name]:this.catalogOutput(Th)}}getConnectionsRequirements(){return[{provider:`pipe0`,rateLimitRatio:1,rateLimitOperation:`pipe0_logic`,allowManagedConnection:!0}]}},Ah=Eh,jh={pipeId:Ch,basePipe:W(Ch),label:`Extract domain`,executionMode:`single`,categories:[`tools`],lifecycle:null,description:`Transform URL input into a domain. Example: 'https://go.com' to 'go.com'.`,tags:[B.LOGIC,B.FIELDS],docPath:G(Ch),billableOperations:Oh,defaultInputRequirement:Dh(null),inputFieldMode:`static`,outputFieldMode:`static`,allowedUserConnectionProviders:[],managedProviders:[`pipe0`],deprecatedProviders:[],defaultPayload:{pipe_id:Ch,run_if:null,connector:null,config:{input_fields:{url_input:{alias:``}},output_fields:{domain:{alias:``,enabled:!0}}}}},Mh=`field:slugify@1`,Nh=_(`string_input`),Ph=_(`slugified`),Fh=r.object({pipe_id:r.literal(Mh),run_if:S(),connector:T(),config:r.object({input_fields:z(r.object({[Nh.name]:E({fieldName:Nh.name})})),output_fields:R(r.object({[Ph.name]:k({fieldName:Ph.name})}))}).optional()}),Ih=e=>V(K(Nh,e)),Lh={"field-slugify-v1-pipe0":{provider:`pipe0`,allowManagedConnection:!0,credits:{default:0},mode:`always`}},Rh=class extends U{pipeId=Mh;payload;payloadSchema=Fh;billableOperations=Lh;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[]}getInputRequirement(){return Ih(this.payload.config)}getRawOutputFields(){return{[Ph.name]:this.catalogOutput(Ph)}}getConnectionsRequirements(){return[{provider:`pipe0`,rateLimitRatio:1,rateLimitOperation:`pipe0_logic`,allowManagedConnection:!0}]}},zh=Fh,Bh={pipeId:Mh,basePipe:W(Mh),label:`Slugify field`,executionMode:`single`,categories:[`tools`],lifecycle:null,description:`Strip a field value of characters not commonly found in slugs.`,tags:[B.LOGIC,B.FIELDS],docPath:G(Mh),billableOperations:Lh,defaultInputRequirement:Ih(null),inputFieldMode:`static`,outputFieldMode:`static`,allowedUserConnectionProviders:[],managedProviders:[`pipe0`],deprecatedProviders:[],defaultPayload:{pipe_id:Mh,run_if:null,connector:null,config:{input_fields:{string_input:{alias:``}},output_fields:{slugified:{alias:``,enabled:!0}}}}};function Vh({name:e,resolvedName:t}){return e===t?`'${e}'`:`'${e}' (resolved to '${t}')`}function Hh(e){switch(e.kind){case`field`:return Vh(e.field);case`optional`:return`[optional ${Vh(e.field)}]`;case`all`:return e.of.length===0?`(none)`:e.of.length===1?Hh(e.of[0]):`(${e.of.map(Hh).join(` AND `)})`;case`any`:return e.of.length===0?`(none)`:e.of.length===1?Hh(e.of[0]):`(${e.of.map(Hh).join(` OR `)})`}}function Uh(e){return`Pipe input requirement is not satisfied: ${Hh(e)}. Map missing fields to existing ones, add a pipe that outputs them, or include them in your inputs.`}var Wh=class extends Error{constructor(e){super(`Request validation failed (${e.length} errors): ${e.join(`, `)}`),this.errors=e,this.name=`RequestValidationError`,Object.setPrototypeOf(this,new.target.prototype)}};const Q={ConditionTargetFieldNotFound:({fieldName:e,pipeId:t,pipeIdx:n})=>({code:`ConditionTargetFieldNotFound`,message:`${t} (idx: ${n}) has an invalid condition. Field '${e}' not found.`}),FaultyEnrichmentOrder:()=>({code:`FaultyEnrichmentOrder`,message:`Enrichment not found while ordering. Was the request invalid?`}),MustDefineAnnotations:()=>({code:`MustDefineAnnotations`,message:`Must define either input or field annoations to validate pipes payload.`}),CircularDependency:({currentPipe:e,circularPipe:t})=>({code:`CircularDependency`,message:`'${e.pipe_id}' (${e.idx}) and '${t.pipeId}' (${t.idx}) create a dependency loop. They both need the other's output to complete. Neither can complete. You can map the pipe outputs or input to fields with different names if you want the pipes to be independent or each other.`}),ValidationFailed:({error:e})=>({code:`ValidationFailed`,message:`Failed to validate task request: ${e instanceof Error?e.message:String(e)}`}),MissingCustomConnections:({pipeId:e,index:t,missingProviders:n})=>({code:`MissingCustomConnections`,message:`Pipe ${e} (index ${t}) requires you to specify custom connections for the providers ${n.join(`, `)}. Create the custom connections in the dashbard and reference them in your request.`}),ResponseGenerationFailed:({error:e})=>({code:`ResponseGenerationFailed`,message:`Failed to generate response: ${e instanceof Error?e.message:String(e)}`}),InputValuesMustHaveSameType:({pipeId:e,fieldNames:t})=>({code:`InputValuesMustHaveSameType`,message:`Pipe ${e} requires all input values to have the same type. But values ${t.join(`, `)} have different types.`}),NotValidated:()=>({code:`NotValidated`,message:`PipelineRequest must be validated before accessing results`}),MissingIdInInput:()=>({code:`MissingIdInInput`,message:`Inputs missing 'id' property.`}),InputDataTypeMismatch:({key:e,derivedInputFieldType:t,fieldType:n})=>({code:`InputDataTypeMismatch`,message:`Input data has values with matching keys '${e}' but different types. Expected type: '${t}'. Actual: '${n}'.`}),UnresolvableDependency:({index:e,dependencyIndex:t})=>({code:`UnresolvableDependency`,message:`Unresolvable dependency at index ${e} to ${t}`}),RequirementUnmet:({requirement:e})=>({code:`RequirementUnmet`,message:Uh(e)}),HardInputDependencyViolation:({index:e,indexPipeId:t,dependencyIndex:n,dependencyIndexPipeId:r})=>({code:`HardInputDependencyViolation`,message:`Dependency violation: pipe at idx: ${e} (${t}) must come after pipe at idx: ${n} (${r})`}),HardConditionDependencyViolation:({index:e,indexPipeId:t,dependencyIndex:n,dependencyIndexPipeId:r})=>({code:`HardConditionDependencyViolation`,message:`Dependency violation: pipe at idx: ${e} (${t}) has a condition that points to pipe at idx: ${n} (${r}). But pipe index: ${e} (${t}) is always must be processed after pipe at index ${n} (${r}). This is due to input requirements or other conditions.`}),DuplicateInitialField:({name:e})=>({code:`DuplicateInitialField`,message:`Duplicate initial field '${e}' detected. Each field must be defined only once.`}),MissingInputId:({index:e})=>({code:`MissingInputId`,message:`Input record at index ${e} is missing a required ID field.`}),InvalidId:()=>({code:`InvalidId`,message:`Cell IDs must be numbers or strings`}),IDConflict:({index:e,id:t})=>({code:`IDConflict`,message:`Input data at index ${e} has Id conflict. Id '${t}' is not unique.`}),UnknownResolver:({pipeId:e,index:t})=>({code:`UnknownResolver`,message:`Unknown pipe '${e}' specified at position ${t}.`}),DuplicatePipeOutput:({pipeId:e,outputField:t})=>({code:`DuplicateEnrichmentOutput`,message:`Field conflict for '${e}'. Cannot add output field ${Vh(t)} to pipeline because it already exists. Try renaming it.`}),InputDataDoesNotMatchOutputField:({index:e,resolvedName:t,type:n,inputValueType:r})=>({code:`InputDataDoesNotMatchOutputField`,message:`Input at position ${e} provided data for field '${t}' that did not match expected type. Expected: '${n}', Actual: '${r}'.`}),AmbiguousDependency:({fieldName:e})=>({code:`AmbiguousDependency`,message:`Found more than one pipe that produces field: ${e}. Rename or disable the field to add it.`}),EmptyObjectProperty:()=>({code:`EmptyObjectProperty`,message:`Input data contains empty object property "". This is not allowed.`}),JSONSchemaMissing:({schemaRef:e,outputName:t})=>({code:`JSONSchemaMissing`,message:`Missing jsonSchema '${e}' for output with name '${t}'.`}),InvalidJSONSchema:({schemaRef:e})=>({code:`InvalidJSONSchema`,message:`JSON Schema (ref: ${e}) is invalid.`}),MissingOutputFieldDescription:({outputName:e})=>({code:`MissingOutputFieldDescription`,message:`The output field ${e} is missing a "description" property. Define it {{ ${e} description="Foo bar" }}`}),InvalidFormatTag:({outputName:e,format:t})=>({code:`InvalidFormatTag`,message:`The output field ${e} has an invalid format tag ${t}.`}),RecursiveExpandedValue:()=>({code:`RecursiveExpandedValue`,message:`Your input values contain a recursive expanded valuetype `})};var Gh=class extends Error{},$=class extends Gh{codes;appErrors;constructor(e){super(e.map(e=>e.message).join(`, `)||`Unknown`),this.errors=e,this.codes=e.map(e=>e.code),this.appErrors=e}};const Kh=`fields:merge@1`,qh=_(`merge_result`),Jh=r.object({pipe_id:r.literal(Kh),connector:T(),run_if:S(),config:r.object({sources:qi({sectionKey:`general`,groupPath:`config.general`,path:`config.sources`,info:`Provide references to input fields`,minItems:2}),output_fields:R(r.object({[qh.name]:k({fieldName:qh.name})}))})}),Yh={"fields-merge-v1-pipe0":{credits:{default:0},allowManagedConnection:!0,provider:`pipe0`,mode:`always`}},Xh=class extends U{pipeId=Kh;payload;payloadSchema=Jh;billableOperations=Yh;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[`fields-merge-v1-pipe0`]}getInputRequirement(){let e=this.payload.config.sources.map(e=>e.field_name),t;return H(...this.payload.config.sources.map(n=>V({format:null,type:r=>{let i=Bm(r,e)[n.field_name],a=i?.type?i.type:`unknown`;if(a!==`unknown`){if(t&&t!==a)throw new $([Q.InputValuesMustHaveSameType({pipeId:this.pipeId,fieldNames:e})]);t=a}return i?.type?i.type:`unknown`},label:``,description:``,name:n.field_name,resolvedName:n.field_name})))}getRawOutputFields(){return{[qh.name]:this.catalogOutput(qh,{resolveType:e=>{let t=Bm(e,this.payload.config.sources.map(e=>e.field_name));return Object.values(t).find(e=>!!e.type)?.type||`string`}})}}getConnectionsRequirements(){return[{provider:`pipe0`,rateLimitRatio:1,rateLimitOperation:`pipe0_logic`,allowManagedConnection:!0}]}},Zh=Jh,Qh={pipeId:Kh,inputFieldMode:`config`,outputFieldMode:`static`,basePipe:W(Kh),label:`Merge fields`,executionMode:`single`,categories:[`tools`],lifecycle:null,description:`Join multiple fields into one field. The final result will be the first defined field.`,tags:[B.FIELDS,B.LOGIC],docPath:G(Kh),defaultInputRequirement:null,billableOperations:Yh,allowedUserConnectionProviders:[],managedProviders:[`pipe0`],deprecatedProviders:[],defaultPayload:{pipe_id:Kh,connector:null,run_if:null,config:{sources:[],output_fields:{merge_result:{alias:``,enabled:!0}}}}},$h=`http:request@1`,eg=_(`http_response_status`),tg=_(`http_response_body`),ng=_(`http_response_headers`),rg=r.object({pipe_id:r.literal($h),connector:T(),run_if:S(),config:r.object({method:aa({sectionKey:`general`,groupPath:`config.general`,path:`config.method`,label:`Method`,defaultValue:`GET`,options:[...[{value:`GET`,label:`GET`},{value:`POST`,label:`POST`},{value:`PUT`,label:`PUT`},{value:`PATCH`,label:`PATCH`},{value:`DELETE`,label:`DELETE`}]],required:!0}),url:C({sectionKey:`general`,groupPath:`config.general`,path:`config.url`,label:`Endpoint`,info:"Target URL. Only http/https. Type `@` to insert a field reference or `$` to insert a secret reference.",placeholder:`https://api.example.com/v1/things`,inputType:`text`,minLength:1,maxLength:2048,expectedTagType:`string`,expectedTagFormat:`text`}),query_params:Qi({sectionKey:`general`,groupPath:`config.general`,path:`config.query_params`,label:`Query parameters`,info:"Appended to the URL. Type `@` to insert a field reference or `$` to insert a secret reference in either column.",keyLabel:`Key`,valueLabel:`Value`,keyPlaceholder:`page`,valuePlaceholder:`1`,maxItems:50}),body:C({sectionKey:`general`,groupPath:`config.general`,path:`config.body`,label:`Body`,info:"Sent verbatim as the request body. Type `@` to insert a field reference or `$` to insert a secret reference. Set Content-Type via Headers.",placeholder:`{
72
72
  "key": "value"
73
- }`,inputType:`text`,maxLength:1e6,expectedTagType:`string`,expectedTagFormat:`text`,multiline:!0}),headers:Qi({sectionKey:`general`,groupPath:`config.general`,path:`config.headers`,label:`Headers`,info:"Type `@` to insert a field reference or `$` to insert a secret reference in either column (e.g. `Bearer $token`).",keyLabel:`Header`,valueLabel:`Value`,keyPlaceholder:`Authorization`,valuePlaceholder:`Bearer {{ secret … }}`,maxItems:50}),expected_response_schema:ua({sectionKey:`general`,groupPath:`config.advanced`,path:`config.expected_response_schema`,label:`Expected response shape`,description:`Optional JSON Schema. Successful responses that don't satisfy it are marked failed. Extra properties are always tolerated (whitelist).`,required:!1,allowEmpty:!0}),output_fields:R(r.object({[eg.name]:k({fieldName:eg.name}),[tg.name]:k({fieldName:tg.name}),[ng.name]:k({fieldName:ng.name})}))})}),ig={"http-request-v1-pipe0":{provider:`pipe0`,allowManagedConnection:!0,credits:{default:.001},mode:`always`}},ag=class extends U{pipeId=$h;payload;payloadSchema=rg;billableOperations=ig;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[`http-request-v1-pipe0`]}getTemplatedFields(){let e=[this.payload.config.url,this.payload.config.body];for(let t of this.payload.config.query_params??[])e.push(t.key,t.value);for(let t of this.payload.config.headers??[])e.push(t.key,t.value);return e}getInputRequirement(){return Hm(this.getTemplatedFields(),{expectedType:`string`,expectedFormat:`text`})}getSecretRequirements(){return Y(this.getTemplatedFields())}getConstantRequirements(){return X(this.getTemplatedFields())}getRawOutputFields(){return{[eg.name]:this.catalogOutput(eg),[tg.name]:this.catalogOutput(tg),[ng.name]:this.catalogOutput(ng)}}getConnectionsRequirements(){return[{provider:`pipe0`,rateLimitRatio:1,rateLimitOperation:`pipe0_logic`,allowManagedConnection:!0}]}},og=rg,sg={pipeId:$h,basePipe:W($h),label:`HTTP request`,executionMode:`single`,categories:[`tools`],lifecycle:null,description:`Make a generic GET/POST/PUT/PATCH/DELETE HTTP request and capture the JSON response. Optionally validate the response against a JSON schema.`,tags:[B.LOGIC,B.JSON,B.NEW],docPath:G($h),billableOperations:ig,defaultInputRequirement:null,inputFieldMode:`config`,outputFieldMode:`static`,allowedUserConnectionProviders:[],managedProviders:[`pipe0`],deprecatedProviders:[],defaultPayload:{pipe_id:$h,run_if:null,connector:null,config:{method:`GET`,url:``,query_params:[],body:``,headers:[],expected_response_schema:{},output_fields:{http_response_status:{alias:``,enabled:!0},http_response_body:{alias:``,enabled:!0},http_response_headers:{alias:``,enabled:!1}}}}},cg=`json:extract:multi@1`,lg=r.object({pipe_id:r.literal(cg),run_if:S(),connector:T(),config:r.object({json_extraction:hi()})}),ug={"json-extract-multi-v1-pipe0":{provider:`pipe0`,allowManagedConnection:!0,credits:{default:0},mode:`always`}},dg=class extends U{pipeId=cg;payload;payloadSchema=lg;billableOperations=ug;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[`json-extract-multi-v1-pipe0`]}getInputRequirement(){return V({description:``,name:this.payload.config.json_extraction.field_name,format:null,label:``,type:`json`,resolvedName:this.payload.config.json_extraction.field_name})}getRawOutputFields(){let e={};for(let t of this.payload.config.json_extraction.extractions)e[t.output_field.name||t.output_field.name]={description:`Extracted value from JSON input field ${this.payload.config.json_extraction.field_name}.`,enabled:!0,format:t.output_field.format||null,label:t.output_field.label||`Extract JSON`,name:t.output_field.name,resolvedName:t.output_field.name,jsonMeta:null,type:t.output_field.type,isCatalogFIeld:!1,isPrimaryOutput:!1};return e}getConnectionsRequirements(){return[]}},fg=lg,pg={pipeId:cg,basePipe:W(cg),inputFieldMode:`config`,outputFieldMode:`config`,label:`JSON extract`,executionMode:`single`,categories:[`tools`],lifecycle:null,description:`Extract nested JSON properties into new output fields.`,docPath:G(cg),tags:[B.JSON],managedProviders:[`pipe0`],deprecatedProviders:[],allowedUserConnectionProviders:[],billableOperations:ug,defaultInputRequirement:null,defaultPayload:{pipe_id:cg,run_if:null,connector:null,config:{json_extraction:{field_name:``,extractions:[]}}}},mg=`message:send:slack@1`,hg=_(`slack_message_success`),gg=[{label:`#demo-general`,value:`C0SANDBOX001`},{label:`#demo-alerts`,value:`C0SANDBOX002`}],_g=r.object({pipe_id:r.literal(mg),connector:Gi(),run_if:S(),config:r.object({channel_id:C({sectionKey:`general`,groupPath:`config.general`,path:`config.channel_id`,label:`Channel ID`,info:"Your connection must be authorized to post to this channel. Type `@` to insert a field reference or `$` to insert a secret reference.",placeholder:`C0123456789`,inputType:`text`,minLength:3,expectedTagType:`string`,expectedTagFormat:`text`,optionsDef:{requires:{connection:`slack`},options:async({query:e,secret:t,environment:n})=>{if(n===`sandbox`)return gg;if(!t)throw new Rs.MissingSecretError({providerName:`slack`});let r=await fetch(`https://slack.com/api/conversations.list?limit=200&exclude_archived=true&types=public_channel,private_channel`,{headers:{Authorization:`Bearer ${t}`}});if(!r.ok){let e=await r.text();throw new Rs.HttpError({msg:e})}let i=await r.json();if(!i.ok)throw new Rs.HttpError({msg:i.error??`slack_error`});let a=(i.channels??[]).map(e=>({label:`#${e.name}`,value:e.id}));return e?a.filter(t=>t.label.toLowerCase().includes(e.toLowerCase())):a},widgets:{provider_logo:{provider:`slack`}}}}),message:C({sectionKey:`general`,groupPath:`config.general`,path:`config.message`,label:`Message`,info:"The message body. Type `@` to insert a field reference or `$` to insert a secret reference.",placeholder:`Hi {{ name }}, …`,inputType:`text`,minLength:1,maxLength:4e4,expectedTagType:`string`,expectedTagFormat:`markdown`,multiline:!0}),output_fields:R(r.object({[hg.name]:k({fieldName:hg.name})}))})}),vg={"message-send-slack-v1-slack":{allowManagedConnection:!1,provider:`slack`,credits:null,mode:null}},yg=class extends U{pipeId=mg;payload;payloadSchema=_g;billableOperations=vg;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`slack`]}estimateBillableOperations(){return[`message-send-slack-v1-slack`]}getTemplatedFields(){return[this.payload.config.channel_id,this.payload.config.message]}getInputRequirement(){return Hm(this.getTemplatedFields())}getSecretRequirements(){return Y(this.getTemplatedFields())}getConstantRequirements(){return X(this.getTemplatedFields())}getRawOutputFields(){return{[hg.name]:this.catalogOutput(hg)}}getConnectionsRequirements(){return[{provider:`slack`,rateLimitRatio:1,rateLimitOperation:`slack_post_message`,allowManagedConnection:!1}]}},bg=_g,xg={pipeId:mg,basePipe:W(mg),label:`Send message into channel`,executionMode:`single`,categories:[`actions`],lifecycle:null,description:`Send a Slack message to a channel.`,detailed_description:"Send a Slack message. The channel ID and message body are templated config fields β€” reference upstream fields with `{{ field_name }}` and stored secrets with `{{ SECRETS.KEY }}`. Requires a Slack vault connection (call list_connections to find one).",tags:[B.CHAT],docPath:G(mg),billableOperations:vg,inputFieldMode:`config`,outputFieldMode:`static`,allowedUserConnectionProviders:[`slack`],managedProviders:[],deprecatedProviders:[],defaultInputRequirement:null,defaultPayload:{pipe_id:mg,connector:{strategy:`first`,connections:[]},run_if:null,config:{channel_id:``,message:``,output_fields:{slack_message_success:{alias:``,enabled:!0}}}}},Sg=`message:write@1`,Cg=_(`message`),wg=`message-write-v1`,Tg=ti(wg),Eg=r.object({pipe_id:r.literal(Sg),connector:w(),run_if:S(),config:r.object({template:Ui({sectionKey:`general`,label:`Template`,path:`config.template`,placeholder:Z(`prompt`),groupPath:`config.prompt`,required:!0}),model:oa({sectionKey:`general`,label:`Model`,path:`config.model`,groupPath:`config.prompt`,billableOperations:Tg}),output_fields:R(r.object({[Cg.name]:k({fieldName:Cg.name})}))})}),Dg=class extends U{pipeId=Sg;payload;payloadSchema=Eg;billableOperations=Tg;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return ri(this.payload.config.model)}estimateBillableOperations(){return[ni(this.payload.config.model,wg)]}getInputRequirement(){return Hm([this.payload.config.template])}getSecretRequirements(){return Y([this.payload.config.template])}getConstantRequirements(){return X([this.payload.config.template])}getRawOutputFields(){return{[Cg.name]:this.catalogOutput(Cg)}}getConnectionsRequirements(){return ii(this.payload.config.model)}},Og=Eg,kg={pipeId:Sg,inputFieldMode:`config`,outputFieldMode:`static`,basePipe:W(Sg),label:`Message writer`,executionMode:`single`,categories:[`tools`],lifecycle:null,description:`An AI agent specialized in composing messages for modern workplace communication platforms (Slack, Teams, Discord, etc.)`,detailed_description:`AI message composer for Slack/Teams/Discord. Outputs: message. Pair with message:send:slack@1 to send.`,tags:[B.AI],docPath:G(Sg),defaultInputRequirement:null,billableOperations:Tg,allowedUserConnectionProviders:ai(),managedProviders:ai(),deprecatedProviders:[],defaultPayload:{pipe_id:Sg,connector:null,run_if:null,config:{model:`openai-gpt-latest`,template:``,output_fields:{message:{alias:``,enabled:!0}}}}},Ag=`person:email:validate:millionverifier@1`,jg=_(`email`),Mg=_(`email_validation_status`),Ng=_(`million_validation_match`),Pg=r.object({pipe_id:r.literal(Ag),connector:w(),run_if:S(),config:r.object({input_fields:z(r.object({[jg.name]:E({fieldName:jg.name})})),output_fields:R(r.object({[Mg.name]:k({fieldName:Mg.name}),[Ng.name]:k({fieldName:Ng.name})}))}).optional()}),Fg=e=>V(K(jg,e)),Ig={"person-email-validate-millionverifier-v1-millionverifier":{provider:`millionverifier`,allowManagedConnection:!0,credits:{default:.1,level1:{credits:.05,weight:1}},mode:`always`}},Lg=class extends U{pipeId=Ag;payload;payloadSchema=Pg;billableOperations=Ig;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`millionverifier`]}estimateBillableOperations(){return[`person-email-validate-millionverifier-v1-millionverifier`]}getInputRequirement(){return Fg(this.payload.config)}getRawOutputFields(){return{[Mg.name]:this.catalogOutput(Mg),[Ng.name]:this.catalogOutput(Ng)}}getConnectionsRequirements(){return[{provider:`millionverifier`,rateLimitRatio:1,rateLimitOperation:`millionverifier_generic`,allowManagedConnection:!0}]}},Rg=Pg,zg={pipeId:Ag,basePipe:W(Ag),label:`Validate email`,executionMode:`single`,categories:[`people_data`],lifecycle:null,description:`Verify email addresses to ensure is deliverability.`,tags:[B.EMAIL],docPath:G(Ag),billableOperations:Ig,inputFieldMode:`static`,outputFieldMode:`static`,allowedUserConnectionProviders:[`millionverifier`],managedProviders:[`millionverifier`],deprecatedProviders:[],defaultInputRequirement:Fg(null),defaultPayload:{pipe_id:Ag,connector:null,run_if:null,config:{input_fields:{email:{alias:``}},output_fields:{email_validation_status:{alias:``,enabled:!0},million_validation_match:{alias:``,enabled:!0}}}}},Bg=_(`email`),Vg=_(`amplemarket_person_match`),Hg=`person:identity:amplemarket@1`,Ug=r.object({pipe_id:r.literal(Hg),run_if:S(),connector:w(),config:r.object({input_fields:z(r.object({[Bg.name]:E({fieldName:Bg.name})})),output_fields:R(r.object({[Vg.name]:k({fieldName:Vg.name})}))}).optional()}),Wg=e=>V(K(Bg,e)),Gg={"person-identity-amplemarket-v1-amplemarket":{allowManagedConnection:!1,credits:null,mode:null,provider:`amplemarket`}},Kg=class extends U{pipeId=Hg;payload;payloadSchema=Ug;billableOperations=Gg;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`amplemarket`]}estimateBillableOperations(){return[]}getInputRequirement(){return Wg(this.payload.config)}getRawOutputFields(){return{[Vg.name]:this.catalogOutput(Vg)}}getConnectionsRequirements(){return[{provider:`amplemarket`,rateLimitRatio:1,rateLimitOperation:`amplemarket_generic`,allowManagedConnection:!1}]}},qg=Ug,Jg={pipeId:Hg,inputFieldMode:`static`,outputFieldMode:`static`,basePipe:W(Hg),label:`Person identity`,executionMode:`single`,categories:[`people_data`],lifecycle:null,description:`Find information on a person based on their email`,tags:[B.PEOPLE_PROFILES],docPath:G(Hg),billableOperations:Gg,allowedUserConnectionProviders:[`amplemarket`],managedProviders:[],deprecatedProviders:[],defaultInputRequirement:Wg(null),defaultPayload:{pipe_id:Hg,connector:null,run_if:null,config:{input_fields:{email:{alias:``}},output_fields:{amplemarket_person_match:{alias:``,enabled:!0}}}}},Yg=`person:identity:email:waterfall@1`,Xg=_(`email`),Zg=_(`company_domain`),Qg=_(`name`),$g=_(`job_title`),e_=_(`profile_url`),t_=_(`company_profile_url`),n_=_(`company_name`),r_=[`findymail`,`hunter`,`crustdata`],i_=[{provider:`findymail`},{provider:`hunter`},{provider:`crustdata`}],a_=r.object({pipe_id:r.literal(Yg),connector:w(),run_if:S(),config:r.object({providers:D({availableProviders:r_,defaultProviders:i_,sectionKey:`general`}),input_fields:z(r.object({[Xg.name]:E({fieldName:Xg.name})})),output_fields:R(r.object({[Qg.name]:k({fieldName:Qg.name}),[e_.name]:k({fieldName:e_.name}),[$g.name]:k({fieldName:$g.name}),[Zg.name]:k({fieldName:Zg.name}),[n_.name]:k({fieldName:n_.name}),[t_.name]:k({fieldName:t_.name})}))}).optional()}),o_=e=>V(K(Xg,e)),s_={"person-identity-email-waterfall-v1-hunter":{provider:`hunter`,allowManagedConnection:!0,credits:{default:2},mode:`onSuccess`},"person-identity-email-waterfall-v1-findymail":{provider:`findymail`,allowManagedConnection:!0,credits:{default:2},mode:`onSuccess`},"person-identity-email-waterfall-v1-crustdata":{provider:`crustdata`,allowManagedConnection:!0,credits:{default:5},mode:`onSuccess`}},c_=class extends U{pipeId=Yg;payload;payloadSchema=a_;billableOperations=s_;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return this.payload.config?.providers.map(e=>e.provider)||[]}estimateBillableOperations(){return this.getProviderNames().map(e=>J(e,this.billableOperations).billableOperation)}getInputRequirement(){return o_(this.payload.config)}getRawOutputFields(){return{[Qg.name]:this.catalogOutput(Qg,{isPrimaryOutput:!0}),[e_.name]:this.catalogOutput(e_,{isPrimaryOutput:!0}),[$g.name]:this.catalogOutput($g,{isPrimaryOutput:!0}),[n_.name]:this.catalogOutput(n_,{isPrimaryOutput:!0}),[t_.name]:this.catalogOutput(t_,{isPrimaryOutput:!0}),[Zg.name]:this.catalogOutput(Zg,{isPrimaryOutput:!0})}}getConnectionsRequirements(){let e={hunter:`prospeo_email_lookup`,findymail:`findymail_email_b2b_lookup`,crustdata:`crustdata_realtime_person_enrich`};return(this.payload.config?.providers||[]).map((t,n)=>({provider:t.provider,rateLimitRatio:q(n),rateLimitOperation:e[t.provider],allowManagedConnection:!0}))}},l_=a_,u_={pipeId:Yg,basePipe:W(Yg),label:`Person identity from email`,executionMode:`waterfall`,categories:[`people_data`],lifecycle:null,description:`Find identity of a person from their email address.`,tags:[B.EMAIL,B.PEOPLE_PROFILES],docPath:G(Yg),managedProviders:r_,deprecatedProviders:[],allowedUserConnectionProviders:r_,inputFieldMode:`static`,outputFieldMode:`static`,billableOperations:s_,defaultInputRequirement:o_(null),defaultPayload:{pipe_id:Yg,connector:null,run_if:null,config:{providers:i_,input_fields:{email:{alias:``}},output_fields:{name:{alias:``,enabled:!0},profile_url:{alias:``,enabled:!0},job_title:{alias:``,enabled:!0},company_name:{alias:``,enabled:!0},company_profile_url:{alias:``,enabled:!0},company_domain:{alias:``,enabled:!0}}}}},d_=_(`profile_url`),f_=_(`amplemarket_person_match`),p_=`person:match:amplemarket@1`,m_=r.object({pipe_id:r.literal(p_),run_if:S(),connector:w(),config:r.object({input_fields:z(r.object({[d_.name]:E({fieldName:d_.name})})),output_fields:R(r.object({[f_.name]:k({fieldName:f_.name})}))}).optional()}),h_=e=>V(K(d_,e)),g_={"person-match-amplemarket-v1-amplemarket":{allowManagedConnection:!1,credits:null,mode:null,provider:`amplemarket`}},__=class extends U{pipeId=p_;payload;payloadSchema=m_;billableOperations=g_;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`amplemarket`]}estimateBillableOperations(){return[]}getInputRequirement(){return h_(this.payload.config)}getRawOutputFields(){return{[f_.name]:this.catalogOutput(f_)}}getConnectionsRequirements(){return[{provider:`amplemarket`,rateLimitRatio:1,rateLimitOperation:`amplemarket_generic`,allowManagedConnection:!1}]}},v_=m_,y_={pipeId:p_,inputFieldMode:`static`,outputFieldMode:`static`,basePipe:W(p_),label:`Person match`,executionMode:`single`,categories:[`people_data`],lifecycle:null,description:`Find information on a person based on their LinkedIn profile URL.`,tags:[B.PEOPLE_PROFILES],docPath:G(p_),billableOperations:g_,allowedUserConnectionProviders:[`amplemarket`],managedProviders:[],deprecatedProviders:[],defaultInputRequirement:h_(null),defaultPayload:{pipe_id:p_,connector:null,run_if:null,config:{input_fields:{profile_url:{alias:``}},output_fields:{amplemarket_person_match:{alias:``,enabled:!0}}}}},b_=`person:match:role:waterfall@1`,x_=_(`company_domain`),S_=_(`role_finder_match`),C_=[`leadmagic`],w_=[{provider:`leadmagic`}],T_=r.object({pipe_id:r.literal(b_),run_if:S(),connector:w(),config:r.object({providers:D({sectionKey:`general`,defaultProviders:w_,availableProviders:C_}),roles:Zi({sectionKey:`general`,groupPath:`config.general`,label:`Roles`,path:`config.roles`,info:`Company roles to include`,maxItems:3,minItems:1,suggestionsDef:g(`titles`),expectedTagType:`string`}),input_fields:z(r.object({[x_.name]:E({fieldName:x_.name})})),output_fields:R(r.object({[S_.name]:k({fieldName:S_.name})}))})}),E_=e=>H(K(x_,e)),D_={"person-match-role-waterfall-v1-leadmagic":{provider:`leadmagic`,allowManagedConnection:!0,credits:{default:1},mode:`onSuccess`}},O_=class extends U{pipeId=b_;payload;payloadSchema=T_;billableOperations=D_;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return this.payload.config?.providers.map(e=>e.provider)||[]}estimateBillableOperations(){return this.getProviderNames().map(e=>J(e,this.billableOperations).billableOperation)}getInputRequirement(){return E_(this.payload.config)}getSecretRequirements(){return Y(this.payload.config?.roles??[])}getConstantRequirements(){return X(this.payload.config?.roles??[])}getRawOutputFields(){return{[S_.name]:this.catalogOutput(S_,{isPrimaryOutput:!0})}}getConnectionsRequirements(){let e={leadmagic:`leadmagic_role_finder`};return(this.payload.config?.providers||[]).map((t,n)=>({provider:t.provider,rateLimitRatio:q(n),rateLimitOperation:e[t.provider],allowManagedConnection:!0}))}},k_=T_,A_={pipeId:b_,basePipe:W(b_),managedProviders:C_,deprecatedProviders:[],allowedUserConnectionProviders:C_,label:`Role finder`,executionMode:`waterfall`,categories:[`people_data`],lifecycle:null,description:`Find role matches for a given companies like "CEO" or "CFO".`,tags:[B.PEOPLE_PROFILES],docPath:G(b_),billableOperations:D_,inputFieldMode:`static`,outputFieldMode:`static`,defaultInputRequirement:E_(null),defaultPayload:{pipe_id:b_,run_if:null,connector:null,config:{roles:[],providers:w_,input_fields:{company_domain:{alias:``}},output_fields:{role_finder_match:{alias:``,enabled:!0}}}}},j_=`person:mobile:profileurl:waterfall@1`,M_=_(`profile_url`),N_=_(`mobile`),P_=[`leadmagic`,`prospeo`,`amplemarket`,`findymail`],F_=[{provider:`leadmagic`},{provider:`prospeo`},{provider:`amplemarket`},{provider:`findymail`}],I_=r.object({pipe_id:r.literal(j_),run_if:S(),connector:w(),config:r.object({providers:D({sectionKey:`general`,defaultProviders:F_,availableProviders:P_}),input_fields:z(r.object({[M_.name]:E({fieldName:M_.name})})),output_fields:R(r.object({[N_.name]:k({fieldName:N_.name})}))}).optional()}),L_=e=>V(K(M_,e)),R_={"person-mobile-profileurl-waterfall-v1-leadmagic":{provider:`leadmagic`,allowManagedConnection:!0,credits:{default:3,level1:{credits:2,weight:1}},mode:`onSuccess`},"person-mobile-profileurl-waterfall-v1-prospeo":{provider:`prospeo`,allowManagedConnection:!0,credits:{default:5,level1:{credits:3,weight:1}},mode:`onSuccess`},"person-mobile-profileurl-waterfall-v1-findymail":{provider:`findymail`,allowManagedConnection:!0,credits:{default:6,level1:{credits:4,weight:1}},mode:`onSuccess`},"person-mobile-profileurl-waterfall-v1-amplemarket":{provider:`amplemarket`,allowManagedConnection:!0,credits:{default:4,level1:{credits:3,weight:1}},mode:`onSuccess`}},z_=class extends U{pipeId=j_;payload;payloadSchema=I_;billableOperations=R_;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return this.payload.config?.providers.map(e=>e.provider)||[]}estimateBillableOperations(){return this.getProviderNames().map(e=>J(e,this.billableOperations).billableOperation)}getInputRequirement(){return L_(this.payload.config)}getRawOutputFields(){return{[N_.name]:this.catalogOutput(N_,{isPrimaryOutput:!0})}}getConnectionsRequirements(){let e={leadmagic:`leadmagic_email_lookup`,prospeo:`prospeo_phone_number_lookup`,findymail:`findymail_phone_lookup`,amplemarket:`amplemarket-person-reveal`};return(this.payload.config?.providers||[]).map((t,n)=>({provider:t.provider,rateLimitRatio:q(n),rateLimitOperation:e[t.provider],allowManagedConnection:!0}))}},B_=I_,V_={pipeId:j_,basePipe:W(j_),label:`Mobile number from LinkedIn profile`,executionMode:`waterfall`,categories:[`people_data`],lifecycle:null,description:`Find a mobile phone number for any prospect using multiple data providers in a waterfall motion.`,docPath:G(j_),tags:[B.PHONE,B.WATERFALL],billableOperations:R_,defaultInputRequirement:L_(null),inputFieldMode:`static`,outputFieldMode:`static`,managedProviders:P_,allowedUserConnectionProviders:P_,deprecatedProviders:[],defaultPayload:{pipe_id:j_,connector:null,run_if:null,config:{providers:F_,input_fields:{profile_url:{alias:``}},output_fields:{mobile:{alias:``,enabled:!0}}}}},H_=`person:mobile:workemail:waterfall@1`,U_=_(`work_email`),W_=_(`mobile`),G_=[`leadmagic`,`amplemarket`],K_=[{provider:`leadmagic`},{provider:`amplemarket`}],q_=r.object({pipe_id:r.literal(H_),run_if:S(),connector:w(),config:r.object({providers:D({sectionKey:`general`,availableProviders:G_,defaultProviders:K_}),input_fields:z(r.object({[U_.name]:E({fieldName:U_.name})})),output_fields:R(r.object({[W_.name]:k({fieldName:W_.name})}))}).optional()}),J_=e=>V(K(U_,e)),Y_={"person-mobile-workemail-waterfall-v1-leadmagic":{provider:`leadmagic`,allowManagedConnection:!0,credits:{default:3,level1:{credits:2,weight:1}},mode:`onSuccess`},"person-mobile-workemail-waterfall-v1-amplemarket":{provider:`amplemarket`,allowManagedConnection:!0,credits:{default:5,level1:{credits:4,weight:1}},mode:`onSuccess`}},X_=class extends U{pipeId=H_;payload;payloadSchema=q_;billableOperations=Y_;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return this.payload.config?.providers.map(e=>e.provider)||[]}estimateBillableOperations(){return this.getProviderNames().map(e=>J(e,this.billableOperations).billableOperation)}getInputRequirement(){return J_(this.payload.config)}getRawOutputFields(){return{[W_.name]:this.catalogOutput(W_,{isPrimaryOutput:!0})}}getConnectionsRequirements(){let e={leadmagic:`leadmagic_email_lookup`,amplemarket:`amplemarket-person-reveal`};return(this.payload.config?.providers||[]).map((t,n)=>({provider:t.provider,rateLimitRatio:q(n),rateLimitOperation:e[t.provider],allowManagedConnection:!0}))}},Z_=q_,Q_={pipeId:H_,basePipe:W(H_),label:`Mobile number from email`,executionMode:`waterfall`,categories:[`people_data`],lifecycle:null,description:`Find a mobile phone number for a prospect.`,tags:[B.PHONE,B.WATERFALL],docPath:G(H_),billableOperations:Y_,defaultInputRequirement:J_(null),inputFieldMode:`static`,outputFieldMode:`static`,allowedUserConnectionProviders:G_,managedProviders:G_,deprecatedProviders:[],defaultPayload:{pipe_id:H_,connector:null,run_if:null,config:{providers:K_,input_fields:{work_email:{alias:``}},output_fields:{mobile:{alias:``,enabled:!0}}}}},$_=`person:name:join@1`,ev=_(`first_name`),tv=_(`last_name`),nv=_(`name`),rv=r.object({pipe_id:r.literal($_),run_if:S(),connector:T(),config:r.object({input_fields:z(r.object({[ev.name]:E({fieldName:ev.name}),[tv.name]:E({fieldName:tv.name})})),output_fields:R(r.object({[nv.name]:k({fieldName:nv.name})}))}).optional()}),iv=e=>Ea(K(ev,e),K(tv,e)),av={"person-name-join-v1-pipe0":{provider:`pipe0`,allowManagedConnection:!0,credits:{default:0},mode:`always`}},ov=class extends U{pipeId=$_;payload;payloadSchema=rv;billableOperations=av;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[`person-name-join-v1-pipe0`]}getInputRequirement(){return iv(this.payload.config)}getRawOutputFields(){return{[nv.name]:this.catalogOutput(nv)}}getConnectionsRequirements(){return[{provider:`pipe0`,rateLimitRatio:1,rateLimitOperation:`pipe0_logic`,allowManagedConnection:!0}]}},sv=rv,cv={pipeId:$_,basePipe:W($_),label:`Join name`,executionMode:`single`,categories:[`people_data`],lifecycle:null,description:`Combine the first and last names of a prospect into a full name field.`,tags:[B.NAMES],docPath:G($_),billableOperations:av,defaultInputRequirement:iv(null),inputFieldMode:`static`,outputFieldMode:`static`,allowedUserConnectionProviders:[],managedProviders:[`pipe0`],deprecatedProviders:[],defaultPayload:{pipe_id:$_,run_if:null,connector:null,config:{input_fields:{first_name:{alias:``},last_name:{alias:``}},output_fields:{name:{alias:``,enabled:!0}}}}},lv=`person:name:split@1`,uv=_(`name`),dv=_(`first_name`),fv=_(`last_name`),pv=r.object({pipe_id:r.literal(lv),connector:T(),run_if:S(),config:r.object({input_fields:z(r.object({[uv.name]:E({fieldName:uv.name})})),output_fields:R(r.object({[dv.name]:k({fieldName:dv.name}),[fv.name]:k({fieldName:fv.name})}))}).optional()}),mv=e=>V(K(uv,e)),hv={"person-name-split-v1-pipe0":{provider:`pipe0`,allowManagedConnection:!0,credits:{default:0},mode:`always`}},gv=class extends U{pipeId=lv;payload;payloadSchema=pv;billableOperations=hv;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[`person-name-split-v1-pipe0`]}getInputRequirement(){return mv(this.payload.config)}getRawOutputFields(){return{[dv.name]:this.catalogOutput(dv),[fv.name]:this.catalogOutput(fv)}}getConnectionsRequirements(){return[{provider:`pipe0`,rateLimitRatio:1,rateLimitOperation:`pipe0_logic`,allowManagedConnection:!0}]}},_v=pv,vv={pipeId:lv,basePipe:W(lv),label:`Split name`,executionMode:`single`,categories:[`people_data`],lifecycle:null,description:`Split a full name into first and last name.`,tags:[B.NAMES],docPath:G(lv),billableOperations:hv,inputFieldMode:`static`,outputFieldMode:`static`,defaultInputRequirement:mv(null),allowedUserConnectionProviders:[],managedProviders:[`pipe0`],deprecatedProviders:[],defaultPayload:{pipe_id:lv,run_if:null,connector:void 0,config:{input_fields:{name:{alias:``}},output_fields:{first_name:{alias:``,enabled:!0},last_name:{alias:``,enabled:!0}}}}},yv=`person:personalemail:profileurl:waterfall@1`,bv=_(`profile_url`),xv=_(`personal_email`),Sv=_(`alternate_personal_emails`),Cv=[`leadmagic`,`mixrank`],wv=[{provider:`leadmagic`},{provider:`mixrank`}],Tv=r.object({pipe_id:r.literal(yv),run_if:S(),connector:w(),config:r.object({providers:D({sectionKey:`general`,availableProviders:Cv,defaultProviders:wv}),input_fields:z(r.object({[bv.name]:E({fieldName:bv.name})})),output_fields:R(r.object({[xv.name]:k({fieldName:xv.name}),[Sv.name]:k({fieldName:Sv.name})}))}).optional()}),Ev=e=>V(K(bv,e)),Dv={"person-personalemail-profileurl-waterfall-v1-leadmagic":{provider:`leadmagic`,allowManagedConnection:!0,credits:{default:1},mode:`onSuccess`},"person-personalemail-profileurl-waterfall-v1-mixrank":{provider:`mixrank`,allowManagedConnection:!0,credits:{default:1},mode:`onSuccess`}},Ov=class extends U{pipeId=yv;payload;payloadSchema=Tv;billableOperations=Dv;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return this.payload.config?.providers.map(e=>e.provider)||[]}estimateBillableOperations(){return this.getProviderNames().map(e=>J(e,this.billableOperations).billableOperation)}getInputRequirement(){return Ev(this.payload.config)}getRawOutputFields(){return{[xv.name]:this.catalogOutput(xv,{isPrimaryOutput:!0}),[Sv.name]:this.catalogOutput(Sv)}}getConnectionsRequirements(){let e={leadmagic:`leadmagic_personal_email_finder`,mixrank:`mixrank-person-match`};return(this.payload.config?.providers||[]).map((t,n)=>({provider:t.provider,rateLimitRatio:q(n),rateLimitOperation:e[t.provider],allowManagedConnection:!0}))}},kv=Tv,Av={pipeId:yv,basePipe:W(yv),allowedUserConnectionProviders:Cv,managedProviders:Cv,deprecatedProviders:[],label:`Find personal email`,executionMode:`waterfall`,categories:[`people_data`],lifecycle:null,description:`Find the personal email address of a prospect by using a professional profile URL as input.`,tags:[B.EMAIL,B.PERSONAL_EMAIL],docPath:G(yv),billableOperations:Dv,defaultInputRequirement:Ev(null),inputFieldMode:`static`,outputFieldMode:`static`,defaultPayload:{pipe_id:yv,connector:null,run_if:null,config:{providers:wv,input_fields:{profile_url:{alias:``}},output_fields:{personal_email:{alias:``,enabled:!0},alternate_personal_emails:{alias:``,enabled:!1}}}}},jv=_(`profile_url`),Mv=_(`post_list_string`),Nv=_(`crustdata_post_list`),Pv=`person:posts:crustdata@1`,Fv=r.object({pipe_id:r.literal(Pv),run_if:S(),connector:w(),config:r.object({limit:ca({path:`config.limit`,groupPath:`config.general`,max:100,min:1,required:!0,sectionKey:`general`,info:``,label:`Limit`,legend:`Max. 100`}),input_fields:z(r.object({[jv.name]:E({fieldName:jv.name})})),output_fields:R(r.object({[Mv.name]:k({fieldName:Mv.name}),[Nv.name]:k({fieldName:Nv.name})}))}).optional()}),Iv=e=>V(K(jv,e)),Lv={"person-posts-crustdata-v1-crustdata":{allowManagedConnection:!0,credits:{default:2,level1:{credits:1,weight:1}},mode:`onSuccess`,note:`1.5 credits per post. Posts are fetched in increments of 5.`,provider:`crustdata`}},Rv=class extends U{pipeId=Pv;payload;payloadSchema=Fv;billableOperations=Lv;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`crustdata`]}estimateBillableOperations(){return[`person-posts-crustdata-v1-crustdata`]}getInputRequirement(){return Iv(this.payload.config)}getRawOutputFields(){return{[Mv.name]:this.catalogOutput(Mv),[Nv.name]:this.catalogOutput(Nv)}}getConnectionsRequirements(){return[{provider:`crustdata`,rateLimitRatio:1,rateLimitOperation:`crustdata_realtime_post_fetch`,allowManagedConnection:!0}]}},zv=Fv,Bv={pipeId:Pv,inputFieldMode:`static`,outputFieldMode:`static`,basePipe:W(Pv),label:`LinkedIn posts`,executionMode:`single`,categories:[`people_data`],lifecycle:null,description:`Find list of recent LinkedIn posts.`,tags:[B.LINKEDIN],docPath:G(Pv),billableOperations:Lv,allowedUserConnectionProviders:[`crustdata`],managedProviders:[`crustdata`],deprecatedProviders:[],defaultInputRequirement:Iv(null),defaultPayload:{pipe_id:Pv,connector:null,run_if:null,config:{limit:5,input_fields:{profile_url:{alias:``}},output_fields:{crustdata_post_list:{alias:``,enabled:!0},post_list_string:{alias:``,enabled:!0}}}}},Vv=`person:profile:waterfall@1`,Hv=_(`profile`),Uv=_(`profile_url`),Wv=[`prospeo`,`icypeas`,`amplemarket`],Gv=[{provider:`amplemarket`},{provider:`prospeo`},{provider:`icypeas`}],Kv=r.object({pipe_id:r.literal(Vv),run_if:S(),connector:w(),config:r.object({providers:D({sectionKey:`general`,availableProviders:Wv,defaultProviders:Gv}),input_fields:z(r.object({[Uv.name]:E({fieldName:Uv.name})})),output_fields:R(r.object({[Hv.name]:k({fieldName:Hv.name})}))}).optional()}),qv=e=>V(K(Uv,e)),Jv={"person-profile-waterfall-v1-icypeas":{provider:`icypeas`,credits:{default:1},mode:`onSuccess`,allowManagedConnection:!0},"person-profile-waterfall-v1-prospeo":{provider:`prospeo`,credits:{default:1},mode:`onSuccess`,allowManagedConnection:!0},"person-profile-waterfall-v1-amplemarket":{provider:`amplemarket`,credits:{default:1},mode:`onSuccess`,allowManagedConnection:!0}},Yv=class extends U{pipeId=Vv;payload;payloadSchema=Kv;billableOperations=Jv;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return this.payload.config?.providers.map(e=>e.provider)||[]}estimateBillableOperations(){return this.getProviderNames().map(e=>J(e,this.billableOperations).billableOperation)}getInputRequirement(){return qv(this.payload.config)}getRawOutputFields(){return{[Hv.name]:this.catalogOutput(Hv,{isPrimaryOutput:!0})}}getConnectionsRequirements(){let e={icypeas:`icypeas_scrape_profile`,prospeo:`prospeo_social_profile_lookup`,amplemarket:`amplemarket-person-reveal`};return(this.payload.config?.providers||[]).map((t,n)=>({provider:t.provider,rateLimitRatio:q(n),rateLimitOperation:e[t.provider],allowManagedConnection:!0}))}},Xv=Kv,Zv={pipeId:Vv,basePipe:W(Vv),label:`Full LinkedIn profile`,executionMode:`waterfall`,categories:[`people_data`],lifecycle:null,description:`Find a JSON representation of a LinkedIn profile.`,docPath:G(Vv),tags:[B.LINKEDIN,B.WATERFALL],managedProviders:Wv,deprecatedProviders:[],allowedUserConnectionProviders:Wv,inputFieldMode:`static`,outputFieldMode:`static`,billableOperations:Jv,defaultInputRequirement:qv(null),defaultPayload:{pipe_id:Vv,run_if:null,connector:null,config:{providers:Gv,input_fields:{profile_url:{alias:``}},output_fields:{profile:{alias:``,enabled:!0}}}}},Qv=_(`work_email`),$v=_(`crustdata_person_match`),ey=_(`crustdata_profile_match_score`),ty=`person:profile:workemail:crustdata@1`,ny=r.object({pipe_id:r.literal(ty),run_if:S(),connector:w(),config:r.object({input_fields:z(r.object({[Qv.name]:E({fieldName:Qv.name})})),output_fields:R(r.object({[$v.name]:k({fieldName:$v.name}),[ey.name]:k({fieldName:ey.name})}))}).optional()}),ry=e=>V(K(Qv,e)),iy={"person-profile-workemail-crustdata-v1-crustdata":{allowManagedConnection:!0,credits:{default:5},mode:`onSuccess`,provider:`crustdata`}},ay=class extends U{pipeId=ty;payload;payloadSchema=ny;billableOperations=iy;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`crustdata`]}estimateBillableOperations(){return[`person-profile-workemail-crustdata-v1-crustdata`]}getInputRequirement(){return ry(this.payload.config)}getRawOutputFields(){return{[$v.name]:this.catalogOutput($v),[ey.name]:this.catalogOutput(ey)}}getConnectionsRequirements(){return[{provider:`crustdata`,rateLimitRatio:1,rateLimitOperation:`crustdata_realtime_person_enrich`,allowManagedConnection:!0}]}},oy=ny,sy={pipeId:ty,inputFieldMode:`static`,outputFieldMode:`static`,basePipe:W(ty),label:`Profile from work email`,executionMode:`single`,categories:[`people_data`],lifecycle:null,description:`Find person profile by their work email address.`,tags:[B.EMAIL,B.PEOPLE_PROFILES],docPath:G(ty),billableOperations:iy,allowedUserConnectionProviders:[`crustdata`],managedProviders:[`crustdata`],deprecatedProviders:[],defaultInputRequirement:ry(null),defaultPayload:{pipe_id:ty,connector:null,run_if:null,config:{input_fields:{work_email:{alias:``}},output_fields:{crustdata_person_match:{alias:``,enabled:!0},crustdata_profile_match_score:{alias:``,enabled:!0}}}}},cy=`person:profileurl:email:waterfall@1`,ly=_(`email`),uy=_(`work_email`),dy=_(`profile_url`),fy=[`leadmagic`],py=[{provider:`leadmagic`}],my=r.object({pipe_id:r.literal(cy),run_if:S(),connector:w(),config:r.object({providers:D({sectionKey:`general`,defaultProviders:py,availableProviders:fy}),input_fields:z(r.object({[ly.name]:E({fieldName:ly.name}),[uy.name]:E({fieldName:uy.name})})),output_fields:R(r.object({[dy.name]:k({fieldName:dy.name})}))}).optional()}),hy=e=>H(K(ly,e),K(uy,e)),gy={"person-profileurl-email-waterfall-v1-leadmagic":{provider:`leadmagic`,allowManagedConnection:!0,credits:{default:3.5},mode:`onSuccess`}},_y=class extends U{pipeId=cy;payload;payloadSchema=my;billableOperations=gy;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return this.payload.config?.providers.map(e=>e.provider)||[]}estimateBillableOperations(){return this.getProviderNames().map(e=>J(e,this.billableOperations).billableOperation)}getInputRequirement(){return hy(this.payload.config)}getRawOutputFields(){return{[dy.name]:this.catalogOutput(dy,{isPrimaryOutput:!0})}}getConnectionsRequirements(){let e={leadmagic:`leadmagic_email_to_b2b_profile`};return(this.payload.config?.providers||[]).map((t,n)=>({provider:t.provider,rateLimitRatio:q(n),rateLimitOperation:e[t.provider],allowManagedConnection:!0}))}},vy=my,yy={pipeId:cy,basePipe:W(cy),managedProviders:fy,deprecatedProviders:[],allowedUserConnectionProviders:fy,label:`LinkedIn URL from email`,executionMode:`waterfall`,categories:[`people_data`],lifecycle:null,description:`Find the URL for a prospect's LinkedIn profile from their personal or professional email address.`,tags:[B.LINKEDIN],docPath:G(cy),billableOperations:gy,inputFieldMode:`static`,outputFieldMode:`static`,defaultInputRequirement:hy(null),defaultPayload:{pipe_id:cy,run_if:null,connector:null,config:{providers:py,input_fields:{email:{alias:``},work_email:{alias:``}},output_fields:{profile_url:{alias:``,enabled:!0}}}}},by=`person:profileurl:name@1`,xy=_(`name`),Sy=_(`company_name`),Cy=_(`location_hint`),wy=_(`profile_url`),Ty=r.object({pipe_id:r.literal(by),connector:T(),run_if:S(),config:r.object({input_fields:z(r.object({[xy.name]:E({fieldName:xy.name}),[Sy.name]:E({fieldName:Sy.name}),[Cy.name]:E({fieldName:Cy.name})})),output_fields:R(r.object({[wy.name]:k({fieldName:wy.name})}))}).optional()}),Ey=e=>Ea(V(K(xy,e)),V(K(Sy,e)),Da(K(Cy,e))),Dy={"person-profileurl-name-v1-pipe0":{provider:`pipe0`,allowManagedConnection:!0,credits:{default:.6},mode:`always`}},Oy=class extends U{pipeId=by;payload;payloadSchema=Ty;billableOperations=Dy;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[`person-profileurl-name-v1-pipe0`]}getInputRequirement(){return Ey(this.payload.config)}getRawOutputFields(){return{[wy.name]:this.catalogOutput(wy)}}getConnectionsRequirements(){return[{provider:`serper`,rateLimitRatio:1,rateLimitOperation:`serper_search`,allowManagedConnection:!0}]}},ky=Ty,Ay={pipeId:by,basePipe:W(by),label:`LinkedIn URL from name`,executionMode:`single`,categories:[`people_data`],lifecycle:null,allowedUserConnectionProviders:[],managedProviders:[`pipe0`],deprecatedProviders:[],description:`Find the LinkedIn profile URL by using the prospect's name as input.`,docPath:G(by),tags:[B.LINKEDIN],billableOperations:Dy,defaultInputRequirement:Ey(null),inputFieldMode:`static`,outputFieldMode:`static`,defaultPayload:{pipe_id:by,connector:void 0,run_if:null,config:{input_fields:{company_name:{alias:``},location_hint:{alias:``},name:{alias:``}},output_fields:{profile_url:{alias:``,enabled:!0}}}}},jy=`person:workemail:profileurl:waterfall@1`,My=_(`profile_url`),Ny=_(`work_email`),Py=_(`email_validation_status`),Fy=[`hunter`,`amplemarket`,`findymail`,`leadmagic`,`crustdata`],Iy=[{provider:`hunter`},{provider:`amplemarket`},{provider:`leadmagic`},{provider:`findymail`},{provider:`crustdata`}],Ly=r.object({pipe_id:r.literal(jy),connector:w(),run_if:S(),config:r.object({providers:D({availableProviders:Fy,defaultProviders:Iy,sectionKey:`general`}),allow_catch_all_emails:O({path:`config.allow_catch_all_emails`,defaultValue:!0,groupPath:`config.general`,sectionKey:`general`,info:``,label:`Allow catch-all emails`}),allow_risky_emails:O({path:`config.allow_risky_emails`,defaultValue:!0,groupPath:`config.general`,sectionKey:`general`,info:`Higher chance of bouncing or being marked as spam.`,label:`Allow risky emails`}),input_fields:z(r.object({[My.name]:E({fieldName:My.name})})),output_fields:R(r.object({[Ny.name]:k({fieldName:Ny.name}),[Py.name]:k({fieldName:Py.name})}))}).optional()}),Ry=e=>V(K(My,e)),zy={"person-workemail-profileurl-waterfall-v1-hunter":{provider:`hunter`,allowManagedConnection:!0,credits:{default:1},mode:`onSuccess`},"person-workemail-profileurl-waterfall-v1-leadmagic":{provider:`leadmagic`,allowManagedConnection:!0,credits:{default:2},mode:`onSuccess`},"person-workemail-profileurl-waterfall-v1-findymail":{provider:`findymail`,allowManagedConnection:!0,credits:{default:2},mode:`onSuccess`},"person-workemail-profileurl-waterfall-v1-crustdata":{provider:`crustdata`,allowManagedConnection:!0,credits:{default:3},mode:`onSuccess`},"person-workemail-profileurl-waterfall-v1-amplemarket":{provider:`amplemarket`,allowManagedConnection:!0,credits:{default:2.5},mode:`onSuccess`}},By=class extends U{pipeId=jy;payload;payloadSchema=Ly;billableOperations=zy;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return this.payload.config?.providers.map(e=>e.provider)||[]}estimateBillableOperations(){return this.getProviderNames().map(e=>J(e,this.billableOperations).billableOperation)}getInputRequirement(){return Ry(this.payload.config)}getRawOutputFields(){return{[Ny.name]:this.catalogOutput(Ny,{isPrimaryOutput:!0}),[Py.name]:this.catalogOutput(Py,{isPrimaryOutput:!1})}}getConnectionsRequirements(){let e={leadmagic:`leadmagic_email_b2b_lookup`,hunter:`prospeo_email_lookup`,amplemarket:`amplemarket-person-reveal`,findymail:`findymail_email_b2b_lookup`,crustdata:`crustdata_realtime_person_enrich`};return(this.payload.config?.providers||[]).map((t,n)=>({provider:t.provider,rateLimitRatio:q(n),rateLimitOperation:e[t.provider],allowManagedConnection:!0}))}},Vy=Ly,Hy={pipeId:jy,basePipe:W(jy),label:`Work email from LinkedIn URL`,executionMode:`waterfall`,categories:[`people_data`],lifecycle:null,description:`Find work email addresses from B2B profile.`,tags:[B.EMAIL,B.WORK_EMAIL,B.WATERFALL],docPath:G(jy),managedProviders:Fy,allowedUserConnectionProviders:Fy,deprecatedProviders:[],inputFieldMode:`static`,outputFieldMode:`static`,billableOperations:zy,defaultInputRequirement:Ry(null),defaultPayload:{pipe_id:jy,connector:null,run_if:null,config:{providers:Iy,allow_catch_all_emails:!0,allow_risky_emails:!0,input_fields:{profile_url:{alias:``}},output_fields:{work_email:{alias:``,enabled:!0},email_validation_status:{alias:``,enabled:!1}}}}},Uy=`person:workemail:waterfall@1`,Wy=_(`name`),Gy=_(`company_domain`),Ky=_(`company_name`),qy=_(`work_email`),Jy=_(`email_validation_status`),Yy=[`leadmagic`,`prospeo`,`amplemarket`,`hunter`,`icypeas`,`findymail`],Xy=[{provider:`leadmagic`},{provider:`prospeo`},{provider:`amplemarket`},{provider:`hunter`},{provider:`icypeas`},{provider:`findymail`}],Zy={"person-workemail-waterfall-v1-leadmagic":{provider:`leadmagic`,allowManagedConnection:!0,credits:{default:.5,level1:{credits:.25,weight:1}},mode:`onSuccess`},"person-workemail-waterfall-v1-icypeas":{provider:`icypeas`,allowManagedConnection:!0,credits:{default:.5,level1:{credits:.25,weight:1}},mode:`onSuccess`},"person-workemail-waterfall-v1-prospeo":{provider:`prospeo`,allowManagedConnection:!0,credits:{default:1,level1:{credits:.5,weight:1}},mode:`onSuccess`},"person-workemail-waterfall-v1-findymail":{provider:`findymail`,allowManagedConnection:!0,credits:{default:1.5,level1:{credits:.75,weight:1}},mode:`onSuccess`},"person-workemail-waterfall-v1-hunter":{provider:`hunter`,allowManagedConnection:!0,credits:{default:1.3,level1:{credits:.75,weight:1}},mode:`onSuccess`},"person-workemail-waterfall-v1-amplemarket":{provider:`amplemarket`,allowManagedConnection:!0,credits:{default:3,level1:{credits:2,weight:1}},mode:`onSuccess`}},Qy=r.object({pipe_id:r.literal(Uy),connector:w(),run_if:S(),config:r.object({providers:D({availableProviders:Yy,defaultProviders:Xy,sectionKey:`general`,providerCredits:La(Zy,Yy)}),allow_catch_all_emails:O({path:`config.allow_catch_all_emails`,defaultValue:!0,groupPath:`config.general`,sectionKey:`general`,info:`Catch-alls appear valid but remain undeliverable-risk.`,label:`Allow catch-all emails`}),allow_risky_emails:O({path:`config.allow_risky_emails`,defaultValue:!0,groupPath:`config.general`,sectionKey:`general`,info:`DNS configuration and spam reputation may flag emails as high-risk.`,label:`Allow risky emails`}),input_fields:z(r.object({[Wy.name]:E({fieldName:Wy.name}),[Gy.name]:E({fieldName:Gy.name}),[Ky.name]:E({fieldName:Ky.name})})),output_fields:R(r.object({[qy.name]:k({fieldName:qy.name}),[Jy.name]:k({fieldName:Jy.name})}))}).optional()}),$y=e=>Ea(V(K(Wy,e)),H(K(Gy,e),K(Ky,e))),eb=class extends U{pipeId=Uy;payload;payloadSchema=Qy;billableOperations=Zy;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return this.payload.config?.providers.map(e=>e.provider)||[]}estimateBillableOperations(){return this.getProviderNames().map(e=>J(e,this.billableOperations).billableOperation)}getInputRequirement(){return $y(this.payload.config)}getRawOutputFields(){return{[qy.name]:this.catalogOutput(qy,{isPrimaryOutput:!0}),[Jy.name]:this.catalogOutput(Jy,{isPrimaryOutput:!0})}}getConnectionsRequirements(){let e={leadmagic:`leadmagic_email_lookup`,prospeo:`prospeo_email_lookup`,icypeas:`icypeas_email_lookup`,findymail:`findymail_email_lookup`,hunter:`hunter_email_finder`,amplemarket:`amplemarket-person-reveal`};return(this.payload.config?.providers||[]).map((t,n)=>({provider:t.provider,rateLimitRatio:q(n),rateLimitOperation:e[t.provider],allowManagedConnection:!0}))}},tb=Qy,nb={pipeId:Uy,basePipe:W(Uy),label:`Work email from name`,executionMode:`waterfall`,categories:[`people_data`],lifecycle:null,description:`Find work email addresses in a waterfall motion.`,tags:[B.EMAIL,B.WORK_EMAIL,B.WATERFALL],docPath:G(Uy),managedProviders:Yy,deprecatedProviders:[],allowedUserConnectionProviders:Yy,inputFieldMode:`static`,outputFieldMode:`static`,billableOperations:Zy,defaultInputRequirement:$y(null),defaultPayload:{pipe_id:Uy,connector:null,run_if:null,config:{providers:Xy,allow_catch_all_emails:!0,allow_risky_emails:!0,input_fields:{company_name:{alias:``},company_domain:{alias:``},name:{alias:``}},output_fields:{work_email:{alias:``,enabled:!0},email_validation_status:{alias:``,enabled:!1}}}}},rb=`prompt:run@1`,ib=`prompt-run-v1`,ab=ti(ib),ob=r.object({pipe_id:r.literal(rb),connector:w(),run_if:S(),config:r.object({prompt:Hi({sectionKey:`general`,path:`config.prompt`,placeholder:Z(`prompt`),groupPath:`config.prompt`,supportedTags:[`input`,`output`]}),model:oa({sectionKey:`general`,label:`Model`,path:`config.model`,groupPath:`config.prompt`,billableOperations:ab})})}),sb=class extends U{pipeId=rb;payload;payloadSchema=ob;billableOperations=ab;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return ri(this.payload.config.model)}estimateBillableOperations(){return[ni(this.payload.config.model,ib)]}getInputRequirement(){return Hm([this.payload.config.prompt.template])}getSecretRequirements(){return Y([this.payload.config.prompt.template])}getConstantRequirements(){return X([this.payload.config.prompt.template])}getRawOutputFields(){let e=this.payload.config.prompt.template,t=this.payload.config.prompt.json_schemas??{},n={},r;try{r=jr(e)}catch{return n}for(let e of r.outputs){let r=e.type;if(r===`json`){let i=e.schemaRef?t[e.schemaRef]:void 0;n[e.name]={enabled:!0,name:e.name,label:e.name,resolvedName:e.name,type:r,description:e.description,jsonMeta:{zodSchema:i,exampleValue:null},format:null,isCatalogFIeld:!1,isPrimaryOutput:!1}}else n[e.name]={enabled:!0,name:e.name,label:e.name,resolvedName:e.name,type:r,description:e.description,jsonMeta:null,format:e.format??null,isCatalogFIeld:!1,isPrimaryOutput:!1}}return n}getConnectionsRequirements(){return ii(this.payload.config.model)}},cb=ob,lb={pipeId:rb,inputFieldMode:`config`,outputFieldMode:`config`,basePipe:W(rb),label:`AI prompt`,executionMode:`single`,categories:[`actions`,`tools`],lifecycle:null,description:`Executes configurable AI prompts with structured output fields.`,detailed_description:`General-purpose AI prompt runner. Inputs and outputs are fully dynamic β€” defined by the tags in the prompt template.`,tags:[B.AI],docPath:G(rb),defaultInputRequirement:null,billableOperations:ab,allowedUserConnectionProviders:ai(),managedProviders:ai(),deprecatedProviders:[],defaultPayload:{pipe_id:rb,connector:null,run_if:null,config:{model:`openai-gpt-latest`,prompt:{template:``,json_schemas:{}}}}},ub=`sheet:row:append@1`,db=_(`sheet_record_id`),fb=_(`created_sheet`),pb=[{label:`Demo leads`,value:`demo-leads`},{label:`Demo companies`,value:`demo-companies`},{label:`Demo contacts`,value:`demo-contacts`}],mb=[{label:`Demo team`,value:`sandbox-team-1`},{label:`Demo workspace`,value:`sandbox-team-2`}],hb={requires:{connection:`pipe0`},enabledIf:ln(`pipe0`,`Select a pipe0 connection to see sheet suggestions`),options:async({query:e,client:t,environment:n})=>n===`sandbox`?pb:t?(await t.sheets.list({query:e})).map(e=>({label:e.name&&e.name!==e.slug?`${e.name} (${e.slug})`:e.slug,value:e.slug})):[],widgets:{provider_logo:{provider:`pipe0`}}},gb={requires:{connection:`pipe0`},enabledIf:ln(`pipe0`,`Select a pipe0 connection to see team suggestions`),options:async({query:e,client:t,environment:n})=>n===`sandbox`?mb:t?(await t.teams.list({query:e})).map(e=>({label:e.name,value:e.id})):[],widgets:{provider_logo:{provider:`pipe0`}}},_b=r.object({pipe_id:r.literal(ub),connector:Gi(),run_if:S(),config:r.object({sheet:C({label:`Destination sheet`,info:"Sheet identifier. Either a literal slug, or type `@` to insert a field reference / `$` to insert a secret reference.",groupPath:`config.general`,sectionKey:`general`,inputType:`text`,path:`config.sheet`,minLength:3,expectedTagType:`string`,expectedTagFormat:`text`,optionsDef:hb}),run:O({defaultValue:!0,groupPath:`config.advanced`,path:`config.run`,sectionKey:`general`,description:`Auto-run sheet row after append action.`,label:`Run after append`}),allow_field_creation:O({label:`Create unkown fields`,defaultValue:!0,groupPath:`config.advanced`,path:`config.allow_field_creation`,sectionKey:`general`,description:`Add unkown fields as new sheet columns.`}),allow_sheet_creation:O({label:`Create missing sheets`,description:`Create new sheet if none exists with the provided name`,defaultValue:!0,groupPath:`config.advanced`,path:`config.allow_sheet_creation`,sectionKey:`general`}),new_sheet_team_id:da({label:`Team`,info:`Optional hint for the team where the sheet should be created. Only used when a new sheet is created.`,placeholder:`Select a team…`,required:!1,groupPath:`config.advanced`,path:`config.new_sheet_team_id`,sectionKey:`general`,optionsDef:gb,enabledIf:e=>e.config?.allow_sheet_creation?{disabled:!1}:{disabled:!0,message:`Turn on β€œUpsert sheets” to specify a team.`}}),included_fields:qi({label:`Fields`,info:`All fields are written if empty.`,groupPath:`config.general`,path:`config.included_fields`,sectionKey:`general`,disableSearch:!0}),output_fields:R(r.object({[db.name]:k({fieldName:db.name}),[fb.name]:k({fieldName:fb.name})}))})}),vb={"sheet-row-append-v1-pipe0":{provider:`pipe0`,allowManagedConnection:!1,credits:null,mode:null}},yb=class extends U{pipeId=ub;payload;payloadSchema=_b;billableOperations=vb;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[`sheet-row-append-v1-pipe0`]}getInputRequirement(){let e=[Hm([this.payload.config.sheet],{expectedType:`string`,expectedFormat:`text`})];if(this.payload.config.included_fields?.length)for(let t of this.payload.config.included_fields)e.push(V({name:t.field_name,resolvedName:t.field_name,label:``,description:``,type:e=>{let n=Vm(e,t.field_name);if(!n)throw Error(`Unable to find field with name ${t.field_name}. But needed by prompt parser.`);return n.type||`unknown`},format:null}));return Ea(...e)}getSecretRequirements(){return Y([this.payload.config.sheet])}getConstantRequirements(){return X([this.payload.config.sheet])}getRawOutputFields(){return{[db.name]:this.catalogOutput(db),[fb.name]:this.catalogOutput(fb)}}getConnectionsRequirements(){return[{provider:`pipe0`,rateLimitRatio:1,rateLimitOperation:`pipe0-sheet-operation`,allowManagedConnection:!0}]}},bb=_b,xb={pipeId:ub,basePipe:W(ub),label:`Append row to sheet`,executionMode:`single`,categories:[`actions`,`tools`],lifecycle:null,allowedUserConnectionProviders:[`pipe0`],managedProviders:[],deprecatedProviders:[],description:"Add rows to a pipe0 sheet. The sheet identifier may be a literal slug or a `{{ field_name }}` tag.",docPath:G(ub),tags:[B.FIELDS],billableOperations:vb,defaultInputRequirement:null,inputFieldMode:`config`,outputFieldMode:`static`,defaultPayload:{pipe_id:ub,connector:{strategy:`first`,connections:[]},run_if:null,config:{sheet:``,run:!0,allow_field_creation:!0,allow_sheet_creation:!0,new_sheet_team_id:``,included_fields:[],output_fields:{sheet_record_id:{alias:``,enabled:!0},created_sheet:{alias:``,enabled:!0}}}}},Sb=`sheet:row:expandappend@1`,Cb=_(`sheet_record_ids`),wb=_(`input_objects`),Tb=r.object({pipe_id:r.literal(Sb),connector:Gi(),run_if:S(),config:r.object({sheet:ra({label:`Sheet name`,info:`Unique identifier for the sheet`,groupPath:`config.general`,sectionKey:`general`,inputType:`text`,path:`config.sheet`,minLength:3}),run:O({defaultValue:!0,groupPath:`config.general`,path:`config.run`,sectionKey:`general`,info:`Enrich record after write. Ignored if target sheet writes to other sheets.`,label:`Run`}),allow_field_creation:O({defaultValue:!0,groupPath:`config.general`,path:`config.allow_field_creation`,sectionKey:`general`,info:`Add unkown object fields to the sheet definition.`,label:`Allow field creation`}),input_fields:z(r.object({[wb.name]:E({fieldName:wb.name})})),output_fields:R(r.object({[Cb.name]:k({fieldName:Cb.name})}))})}),Eb={"sheet-row-expandappend-v1-pipe0":{provider:`pipe0`,allowManagedConnection:!1,credits:null,mode:null}},Db=e=>V(K(wb,e)),Ob=class extends U{pipeId=Sb;payload;payloadSchema=Tb;billableOperations=Eb;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[`sheet-row-expandappend-v1-pipe0`]}getInputRequirement(){return Db(this.payload.config)}getRawOutputFields(){return{[Cb.name]:this.catalogOutput(Cb)}}getConnectionsRequirements(){return[{provider:`pipe0`,rateLimitRatio:1,rateLimitOperation:`pipe0-sheet-operation`,allowManagedConnection:!0}]}},kb=Tb,Ab={pipeId:Sb,basePipe:W(Sb),label:`Object list to sheet rows`,executionMode:`single`,categories:[`actions`,`tools`],lifecycle:null,allowedUserConnectionProviders:[`pipe0`],managedProviders:[],deprecatedProviders:[],description:`Expand a list of nested objects into sheet rows.`,docPath:G(Sb),tags:[B.FIELDS],billableOperations:Eb,defaultInputRequirement:Db(null),inputFieldMode:`static`,outputFieldMode:`static`,defaultPayload:{pipe_id:Sb,connector:{strategy:`first`,connections:[]},run_if:null,config:{sheet:``,run:!0,allow_field_creation:!0,input_fields:{input_objects:{alias:``}},output_fields:{sheet_record_ids:{alias:``,enabled:!0}}}}},jb=`template:fill@1`,Mb=_(`template_output`),Nb=r.object({pipe_id:r.literal(jb),connector:w(),run_if:S(),config:r.object({template:Ui({sectionKey:`general`,path:`config.template`,label:`Template`,placeholder:Z(`template`),groupPath:`config.general`,required:!0}),output_fields:R(r.object({[Mb.name]:k({fieldName:Mb.name})}))})}),Pb={"template-fill-v1-pipe0":{credits:{default:0},allowManagedConnection:!0,provider:`pipe0`,mode:`always`}},Fb=class extends U{pipeId=jb;payload;payloadSchema=Nb;billableOperations=Pb;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[`template-fill-v1-pipe0`]}getInputRequirement(){return Hm([this.payload.config.template])}getSecretRequirements(){return Y([this.payload.config.template])}getConstantRequirements(){return X([this.payload.config.template])}getRawOutputFields(){return{[Mb.name]:this.catalogOutput(Mb)}}getConnectionsRequirements(){return[]}},Ib=Nb,Lb={pipeId:jb,inputFieldMode:`config`,outputFieldMode:`config`,basePipe:W(jb),label:`Fill a text template`,executionMode:`single`,categories:[`tools`],lifecycle:null,description:`Replaces template tags like {{ name }} with actual values.`,tags:[B.TEXT],docPath:G(jb),defaultInputRequirement:null,billableOperations:Pb,allowedUserConnectionProviders:[],managedProviders:[`pipe0`],deprecatedProviders:[],defaultPayload:{pipe_id:jb,connector:null,run_if:null,config:{template:``,output_fields:{template_output:{alias:``,enabled:!0}}}}},Rb=`website:extract:firecrawl@1`,zb=_(`website_url`),Bb=_(`firecrawl_extract_result`),Vb=r.object({pipe_id:r.literal(Rb),connector:w(),run_if:S(),config:r.object({json_schema:ua({sectionKey:`general`,groupPath:`config.extraction`,path:`config.json_schema`,label:`Output JSON schema`,info:`Specify the data you want to extract as a JSON schema.`,allowEmpty:!1,required:!0}),extraction_prompt:ia({sectionKey:`general`,groupPath:`config.extraction`,path:`config.extraction_prompt`,label:`Extraction Prompt`,info:`Prompt the scraper on what it should extract. Template tags are not supported.`,rows:5,minLength:10,placeholder:`E.g. Extract the company missing and latest news.`}),enable_full_domain_crawl:O({sectionKey:`general`,groupPath:`config.extraction`,defaultValue:!1,path:`config.enable_full_domain_crawl`,info:`If this option is enabled all URLs from this domain will be scraped.`,label:`Crawl full domain`}),enable_web_search:O({sectionKey:`general`,groupPath:`config.extraction`,label:`Enable web search`,path:`enable_web_search`,defaultValue:!1,info:`When 'true', the extraction will follow links outside the specified domain.`}),input_fields:z(r.object({[zb.name]:E({fieldName:zb.name})})),output_fields:R(r.object({[Bb.name]:k({fieldName:Bb.name})}))})}),Hb=e=>V(K(zb,e)),Ub={"website-extract-firecrawl-v1-firecrawl":{allowManagedConnection:!0,provider:`firecrawl`,credits:{default:2},mode:`onSuccess`}},Wb=class extends U{pipeId=Rb;payload;payloadSchema=Vb;billableOperations=Ub;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`firecrawl`]}estimateBillableOperations(){return[`website-extract-firecrawl-v1-firecrawl`]}getInputRequirement(){return Hb(this.payload.config)}getRawOutputFields(){return{[Bb.name]:this.catalogOutput(Bb)}}getConnectionsRequirements(){return[{provider:`firecrawl`,rateLimitRatio:1,rateLimitOperation:`firecrawl_generic`,allowManagedConnection:!0}]}},Gb=Vb,Kb={pipeId:Rb,basePipe:W(Rb),label:`Extract`,executionMode:`single`,categories:[`tools`],lifecycle:null,description:`Perform advanced AI scraping to extract data from any website. Search all subdomains and combine scraped data with search results.`,tags:[B.SCRAPE],docPath:G(Rb),billableOperations:Ub,inputFieldMode:`static`,outputFieldMode:`static`,allowedUserConnectionProviders:[`firecrawl`],managedProviders:[`firecrawl`],deprecatedProviders:[],defaultInputRequirement:Hb(null),defaultPayload:{pipe_id:Rb,run_if:null,connector:null,config:{json_schema:{type:`object`},enable_full_domain_crawl:!1,enable_web_search:!1,extraction_prompt:``,input_fields:{website_url:{alias:``}},output_fields:{firecrawl_extract_result:{alias:``,enabled:!0}}}}},qb=`website:maplinks:firecrawl@1`,Jb={"website-maplinks-firecrawl-v1-firecrawl":{allowManagedConnection:!0,provider:`firecrawl`,credits:{default:1},mode:`onSuccess`}},Yb=_(`website_url`),Xb=_(`mapped_links`),Zb=r.object({pipe_id:r.literal(qb),connector:w(),run_if:S(),config:r.object({page_limit:ca({label:`Page limit`,info:`Number of pages searched`,groupPath:`config.general`,max:50,min:1,required:!1,path:`config.page_limit`,sectionKey:`general`}),sitemap:aa({label:`Sitemap`,info:`Include sitemap links`,sectionKey:`general`,groupPath:`config.general`,path:`config.sitemap`,defaultValue:`include`,required:!1,options:[{value:`include`,label:`Include`},{value:`skip`,label:`Skip`},{value:`only`,label:`Only`}]}),search:ra({sectionKey:`general`,label:`Search`,inputType:`text`,info:`Return matching urls`,groupPath:`config.general`,path:`config.search`}).default(``),input_fields:z(r.object({[Yb.name]:E({fieldName:Yb.name})})),output_fields:R(r.object({[Xb.name]:k({fieldName:Xb.name})}))}).optional()}),Qb=e=>V(K(Yb,e)),$b=class extends U{pipeId=qb;payload;payloadSchema=Zb;billableOperations=Jb;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`firecrawl`]}estimateBillableOperations(){return[`website-maplinks-firecrawl-v1-firecrawl`]}getInputRequirement(){return Qb(this.payload.config)}getRawOutputFields(){return{[Xb.name]:this.catalogOutput(Xb)}}getConnectionsRequirements(){return[{provider:`firecrawl`,rateLimitRatio:1,rateLimitOperation:`firecrawl_map_requests`,allowManagedConnection:!0}]}},ex=Zb,tx={pipeId:qb,basePipe:W(qb),label:`Map domain links`,executionMode:`single`,categories:[`tools`],lifecycle:null,description:`Input a website and get all internal URLs on the website. Results do not include links to external pages.`,tags:[B.SCRAPE],docPath:G(qb),billableOperations:Jb,inputFieldMode:`static`,outputFieldMode:`static`,allowedUserConnectionProviders:[`firecrawl`],managedProviders:[`firecrawl`],deprecatedProviders:[],defaultInputRequirement:Qb(null),defaultPayload:{pipe_id:qb,run_if:null,connector:null,config:{page_limit:25,sitemap:`include`,search:``,input_fields:{website_url:{alias:``}},output_fields:{mapped_links:{alias:``,enabled:!0}}}}},nx=`website:scrape:firecrawl@1`,rx=_(`website_url`),ix=_(`website_markdown`),ax=_(`website_html`),ox=_(`website_links`),sx=r.object({pipe_id:r.literal(nx),connector:w(),run_if:S(),config:r.object({scrape_main_only:O({defaultValue:!1,label:`Scrape main content only?`,info:`If selected, content like headers, footers, and sidebars are excluded from the scrape results.`,sectionKey:`general`,groupPath:`config.general`,path:`config.scrape_main_only`}),input_fields:z(r.object({[rx.name]:E({fieldName:rx.name})})),output_fields:R(r.object({[ix.name]:k({fieldName:ix.name}),[ax.name]:k({fieldName:ax.name}),[ox.name]:k({fieldName:ox.name})}))}).optional()}),cx=e=>V(K(rx,e)),lx={"website-scrape-firecrawl-v1-firecrawl":{allowManagedConnection:!0,provider:`firecrawl`,credits:{default:.1},mode:`onSuccess`}},ux=class extends U{pipeId=nx;payload;payloadSchema=sx;billableOperations=lx;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`firecrawl`]}estimateBillableOperations(){return[`website-scrape-firecrawl-v1-firecrawl`]}getInputRequirement(){return cx(this.payload.config)}getRawOutputFields(){return{[ix.name]:this.catalogOutput(ix),[ax.name]:this.catalogOutput(ax),[ox.name]:this.catalogOutput(ox)}}getConnectionsRequirements(){return[{provider:`firecrawl`,rateLimitRatio:1,rateLimitOperation:`firecrawl_generic`,allowManagedConnection:!0}]}},dx=sx,fx={pipeId:nx,basePipe:W(nx),label:`Scrape`,executionMode:`single`,categories:[`tools`],lifecycle:null,description:`Turn any URL into clean data.`,tags:[B.SCRAPE],docPath:G(nx),billableOperations:lx,inputFieldMode:`static`,outputFieldMode:`static`,allowedUserConnectionProviders:[`firecrawl`],managedProviders:[`firecrawl`],deprecatedProviders:[],defaultInputRequirement:cx(null),defaultPayload:{pipe_id:nx,run_if:null,connector:null,config:{scrape_main_only:!0,input_fields:{website_url:{alias:``}},output_fields:{website_markdown:{alias:``,enabled:!0},website_html:{alias:``,enabled:!1},website_links:{alias:``,enabled:!1}}}}},px=`website:scrapelist:firecrawl@1`,mx={"website-scrapelist-firecrawl-v1-firecrawl":{allowManagedConnection:!0,provider:`firecrawl`,credits:{default:.1},mode:`onSuccess`,note:`You are charged per url that is scraped.`}},hx=_(`urls`),gx=_(`scrape_list_response`),_x=r.object({pipe_id:r.literal(px),connector:w(),run_if:S(),config:r.object({scrape_main_only:O({label:`Scrape main content only?`,defaultValue:!1,info:`If selected headers, footers, and sidebars will be excluded from the results.`,sectionKey:`general`,groupPath:`config.general`,path:`config.scrape_main_only`}),formats:sa({options:[{label:`Markdown`,value:`markdown`},{label:`HTML`,value:`html`},{label:`Links`,value:`links`}],disableSearch:!0,info:`Choose what you want to scrape from the website`,required:!1,label:`Formats`,sectionKey:`general`,groupPath:`config.general`,path:`config.formats`}),input_fields:z(r.object({[hx.name]:E({fieldName:hx.name})})),output_fields:R(r.object({[gx.name]:k({fieldName:gx.name})}))}).optional()}),vx=e=>V(K(hx,e)),yx=class extends U{pipeId=px;payload;payloadSchema=_x;billableOperations=mx;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`firecrawl`]}estimateBillableOperations(){return[,,,,,].fill(`list-url-scrape-firecrawl`)}getInputRequirement(){return vx(this.payload.config)}getRawOutputFields(){return{[gx.name]:this.catalogOutput(gx)}}getConnectionsRequirements(){return[{provider:`firecrawl`,rateLimitRatio:1,rateLimitOperation:`firecrawl_generic`,allowManagedConnection:!0}]}},bx=_x,xx={pipeId:px,basePipe:W(px),label:`Scrape list`,executionMode:`single`,categories:[`tools`],lifecycle:null,description:`Turn a list of URLs into clean scraped data.`,tags:[B.SCRAPE],docPath:G(px),billableOperations:mx,inputFieldMode:`static`,outputFieldMode:`static`,allowedUserConnectionProviders:[`firecrawl`],managedProviders:[`firecrawl`],deprecatedProviders:[],defaultInputRequirement:vx(null),defaultPayload:{pipe_id:px,run_if:null,connector:null,config:{scrape_main_only:!0,formats:[`html`,`markdown`,`links`],input_fields:{urls:{alias:``}},output_fields:{scrape_list_response:{alias:``,enabled:!0}}}}},Sx=[`companies:profiles:crustdata@1`,`companies:profiles:crustdata@2`,`companies:profiles:amplemarket@1`,`companies:profiles:amplemarket@2`,`people:profiles:crustdata@1`,`people:profiles:crustdata@2`,`people:profiles:amplemarket@1`,`people:profiles:amplemarket@2`],Cx=r.enum(Sx);function wx(e){let t=!0,n=e=>{if(t!==!1&&typeof e==`object`&&e){Array.isArray(e)&&e.length>0&&(t=!1);for(let r of Object.values(e))typeof r!=`object`&&r!=null&&r!==``&&(t=!1),typeof r==`object`&&r&&n(r)}};return n(e),t}function Tx(e,t){let n={name:e,config:t};return Pa.hashObject(n)}var Ex=class{validatePayload(e){try{return this.schema.parse(e)}catch(e){throw e instanceof n?Error(JSON.stringify(r.prettifyError(e))):e}}catalogOutput(e){return{name:e.name,enabled:!!this.payload.config?.output_fields?.[e.name].enabled,type:e.type,format:e.format,resolvedName:this.payload.config?.output_fields?.[e.name]?.alias||e.name,description:e.description,jsonMeta:e.jsonMeta,label:e.label,isCatalogFIeld:!0}}getOutputFields(){let e={};for(let[t,n]of Object.entries(this.getRawOutputFields()))n.enabled&&(e[t]=n);return e}getHashKey(){return Tx(this.searchId,this.payload)}};function Dx(e){return e.split(`@`)[0]}function Ox(e){return`/docs/search-catalog/${Dx(e)}/${e.split(`@`)[1]}`}function kx(e,t=32){return`https://www.google.com/s2/favicons?sz=${t}&domain=${e.replace(/^(https?:\/\/)?(www\.)?/,``)}`}function Ax(e,t){return e==null?void 0:t(e)}function jx(){return Mx({companyWebsiteUrl:`linkedin.com`,entity:`LinkedIn`})}function Mx({companyWebsiteUrl:e,entity:t}){if(e)return{image_url:kx(e),entity:t||e}}function Nx(e,t){let n=JSON.parse(JSON.stringify({...e}));if(!t)return n;for(let e in t)!(e in n)&&t[e]!=null&&(n[e]=t[e]);return n}const Px=`companies:profiles:amplemarket@2`,Fx=_(`company_name`),Ix=_(`company_domain`),Lx=_(`company_description`),Rx=_(`company_profile_url`),zx=_(`amplemarket_company_match`),Bx=r.object({search_id:r.literal(Px),connector:v.nullable().optional(),config:r.object({limit:L({label:`Limit`,description:`Max number of search results`,path:`config.limit`,min:1,max:100,groupPath:`config.pagination`,required:!0,sectionKey:`pagination`}),page_number:L({path:`config.page_number`,groupPath:`config.pagination`,required:!1,label:`Page number`,min:1,sectionKey:`pagination`,description:``}),output_fields:R(r.object({[Fx.name]:N({fieldName:Fx.name}),[Ix.name]:N({fieldName:Ix.name}),[Lx.name]:N({fieldName:Lx.name}),[Rx.name]:N({fieldName:Rx.name}),[zx.name]:N({fieldName:zx.name})})),filters:r.object({hq_locations:I({path:`config.filters.hq_locations`,sectionKey:`config.filters`,label:`HQ locations`,description:``,placeholder:Z(`location`),groupPath:`config.filters.location`,optionsDef:g(`locations`)}),company_names:j({sectionKey:`config.filters`,path:`config.filters.company_names`,label:`Company names`,description:``,placeholder:Z(`company_name`),groupPath:`config.filters.categories`,suggestionsDef:g(`company_names`)}),company_domains:j({sectionKey:`config.filters`,path:`config.filters.company_domains`,label:`Company domains`,description:``,placeholder:Z(`company_domain`),groupPath:`config.filters.categories`,suggestionsDef:g(`company_domains`,{widgets:e=>({logo_url:{url:kx(e.value)}})})}),company_profile_urls:j({sectionKey:`config.filters`,path:`config.filters.company_profile_urls`,label:`Company LinkedIn URLs`,description:``,groupPath:`config.filters.categories`}),company_types:P({sectionKey:`config.filters`,path:`config.filters.company_types`,disableSearch:!1,label:`Company Type`,description:``,groupPath:`config.filters.categories`,options:m(`amplemarket.company_types`),required:!1}),investors:F({sectionKey:`config.filters`,path:`config.filters.investors`,label:`Investor names`,optionsDef:g(`company.crunchbase_investors.crustdata`),description:`A list of company investor names`,placeholder:Z(`investor`),groupPath:`config.filters.investors`,disableSearch:!1,required:!1}),company_industries:M({sectionKey:`config.filters`,path:`config.filters.company_industries`,optionsDef:h(`amplemarket.industries`),disableSearch:!1,label:`Industries`,description:``,placeholder:Z(`industry`),groupPath:`config.filters.industry`}),customer_types:P({sectionKey:`config.filters`,path:`config.filters.customer_types`,options:[{value:`b2b`,label:`B2B`},{value:`b2c`,label:`B2C`}],required:!1,disableSearch:!0,label:`Customer Types`,description:``,groupPath:`config.filters.industry`}),keywords:j({sectionKey:`config.filters`,path:`config.filters.keywords`,label:`Keywords`,description:``,groupPath:`config.filters.industry`}),revenue_groups:P({path:`config.filters.revenue_groups`,sectionKey:`config.filters`,label:`Revenue groups`,description:``,disableSearch:!0,options:m(`amplemarket.company_revenue`),required:!1,groupPath:`config.filters.financials`}),founded_year:pa({path:`config.filters.founded_year`,sectionKey:`config.filters`,label:`Founded year`,groupPath:`config.filters.general`,min:0,max:2040,required:!1,description:``}),open_position_titles:A({path:`config.filters.open_position_titles`,sectionKey:`config.filters`,label:`Job openings for titles`,groupPath:`config.filters.job_openings`,description:``,placeholder:Z(`title`),suggestionsDef:g(`titles`)}),headcount:P({sectionKey:`config.filters`,path:`config.filters.company_sizes`,disableSearch:!1,options:m(`amplemarket.company_size`),label:`Headcount groups`,required:!1,description:``,groupPath:`config.filters.company_size`}),headcount_growth_l6m_in_percent:pa({path:`config.filters.headcount_growth_l6m_in_percent`,sectionKey:`config.filters`,label:`Headcount growth over last 6 months (in %)`,groupPath:`config.filters.company_size`,description:``,max:1e4,min:0,required:!1})}).check(e=>{wx(e.value)&&e.issues.push({code:`custom`,message:`You must set at least one filter.`,input:e.value})})})}),Vx={default:{input:[{fields:[]}]}},Hx=class extends Ex{searchId=Px;schema=Bx;payload;constructor(e){super(),this.payload=this.validatePayload(e)}getRawOutputFields(){return{[Fx.name]:this.catalogOutput(Fx),[Ix.name]:this.catalogOutput(Ix),[Lx.name]:this.catalogOutput(Lx),[Rx.name]:this.catalogOutput(Rx),[zx.name]:this.catalogOutput(zx)}}getConnectionsRequirements(){return[{provider:`amplemarket`,rateLimitOperation:`amplemarket_company_search`,rateLimitRatio:1,allowManagedConnection:!0}]}getDedupConfig(){return Vx}},Ux=Bx,Wx={searchId:Px,billableOperation:`companies-profiles-amplemarket-v2`,baseSearch:Dx(`companies:profiles:amplemarket@2`),label:`Company search`,categories:[`companies`],paginationType:`page_number`,hasManagedConnection:!0,allowsUserConnection:!0,lifecycle:null,description:`Filter based company search.`,tags:[B.COMPANY_PROFILES],docPath:Ox(Px),cost:{mode:`per_page`,credits:{default:2}},provider:`amplemarket`,defaultPayload:{search_id:Px,connector:null,config:{limit:100,page_number:1,output_fields:{company_name:{enabled:!0,alias:``},company_domain:{enabled:!0,alias:``},company_description:{enabled:!0,alias:``},company_profile_url:{enabled:!0,alias:``},amplemarket_company_match:{enabled:!0,alias:``}},filters:{company_industries:{include:[],exclude:[]},company_names:{include:[],exclude:[]},company_profile_urls:{include:[],exclude:[]},company_types:[],company_domains:{include:[],exclude:[]},customer_types:[],headcount_growth_l6m_in_percent:{min:null,max:null},founded_year:{min:null,max:null},revenue_groups:[],investors:[],keywords:{include:[],exclude:[]},open_position_titles:[],headcount:[],hq_locations:{include:[],exclude:[]}}}}},Gx=`companies:profiles:crustdata@2`,Kx=_(`company_name`),qx=_(`company_domain`),Jx=_(`company_description`),Yx=_(`company_profile_url`),Xx=_(`crustdata_company_match`),Zx=r.object({search_id:r.literal(Gx),connector:v.nullable().optional(),config:r.object({limit:L({path:`config.limit`,min:1,max:100,groupPath:`config.pagination`,required:!0,sectionKey:`pagination`,label:`Limit`,description:`Max number of search results`}),cursor:ya({path:`config.cursor`,groupPath:`config.pagination`,inputType:`text`,label:`Cursor`,sectionKey:`pagination`,description:`Pagination cursor`}),output_fields:R(r.object({[Kx.name]:N({fieldName:Kx.name}),[qx.name]:N({fieldName:qx.name}),[Jx.name]:N({fieldName:Jx.name}),[Yx.name]:N({fieldName:Yx.name}),[Xx.name]:N({fieldName:Xx.name})})),filters:r.object({hq_locations:I({path:`config.filters.hq_locations`,sectionKey:`config.filters`,label:`HQ locations`,description:``,placeholder:Z(`location`),groupPath:`config.filters.location`,optionsDef:g(`locations`)}),crunchbase_categories:I({path:`config.filters.crunchbase_categories`,sectionKey:`config.filters`,label:`Crunchbase categories`,placeholder:Z(`crunchbase_category`),description:``,groupPath:`config.filters.categories`,optionsDef:g(`company.crunchbase_categories.crustdata`)}),crunchbase_investors:I({path:`config.filters.crunchbase_investors`,sectionKey:`config.filters`,label:`Investors to include (Crunchbase)`,description:``,placeholder:Z(`investor`),groupPath:`config.filters.investors`,optionsDef:g(`company.crunchbase_investors.crustdata`)}),tracxn_investors:I({path:`config.filters.tracxn_investors`,sectionKey:`config.filters`,label:`Investors to include (Tracxn)`,description:``,placeholder:Z(`investor`),groupPath:`config.filters.investors`,optionsDef:g(`company.tracxn_investors.crustdata`)}),company_types:M({sectionKey:`config.filters`,path:`config.filters.company_types`,optionsDef:{type:`static`,options:m(`crustdata.company_types`)},label:`Company types`,placeholder:`Public, Private, ...`,description:``,groupPath:`config.filters.categories`}),linkedin_industries:I({sectionKey:`config.filters`,path:`config.filters.linkedin_industries`,optionsDef:g(`linkedin_industries.crustdata`),label:`Industries`,description:``,placeholder:Z(`industry`),groupPath:`config.filters.industry`}),markets:I({sectionKey:`config.filters`,path:`config.filters.markets`,optionsDef:g(`company.markets.crustdata`),placeholder:`NYSE, TYO, ...`,label:`Markets`,description:``,groupPath:`config.filters.industry`}),linkedin_categories:I({sectionKey:`config.filters`,path:`config.filters.linkedin_categories`,optionsDef:g(`company.linkedin_categories.crustdata`),label:`LinkedIn category`,placeholder:`Marketing, Branding, ...`,description:``,groupPath:`config.filters.categories`}),headcount:M({path:`config.filters.headcount`,sectionKey:`config.filters`,label:`Headcount`,description:``,disableSearch:!0,placeholder:`1-10`,optionsDef:{type:`static`,options:m(`crustdata.company_size`)},groupPath:`config.filters.company_size`}),headcount_growth_l6m_in_percent:P({path:`config.filters.headcount_growth_l6m_in_percent`,sectionKey:`config.filters`,label:`Headcount growth over last 6 months in percent`,description:``,options:m(`crustdata.headcount_growth`),placeholder:`0-10%`,disableSearch:!0,required:!1,groupPath:`config.filters.company_size`}),revenue_in_usd:ha({path:`config.filters.revenue_in_usd`,sectionKey:`config.filters`,label:`Revenue (USD)`,description:``,legend:`1k - 10B`,min:1e3,max:1e10,groupPath:`config.filters.financials`}),last_funding_type:M({path:`config.filters.last_funding_type`,sectionKey:`config.filters`,label:`Last funding type`,placeholder:`Series A`,disableSearch:!0,optionsDef:{type:`static`,options:m(`crustdata.funding_rounds`)},description:``,groupPath:`config.filters.financials`}),last_funding_amount:ha({path:`config.filters.last_funding_amount`,sectionKey:`config.filters`,label:`Last funding amount`,legend:`1k - 10B`,min:1e3,max:1e10,description:``,groupPath:`config.filters.financials`}),number_of_followers:P({path:`config.filters.number_of_followers`,sectionKey:`config.filters`,label:`Number of LinkedIn followers`,placeholder:`1-500`,disableSearch:!0,description:``,required:!1,options:m(`crustdata.company_followers`),groupPath:`config.filters.web_presence`}),follower_growth_l6m_in_percent:P({path:`config.filters.follower_growth_l6m_in_percent`,sectionKey:`config.filters`,label:`LinkedIn follower growth within last 6 months`,required:!1,disableSearch:!0,placeholder:`0-10%`,description:``,options:m(`crustdata.follower_growth`),groupPath:`config.filters.web_presence`}),profile_summary_keywords:j({path:`config.filters.profile_summary_keywords`,sectionKey:`config.filters`,maxItems:50,label:`LinkedIn company description contains`,placeholder:Z(`company_profile_keyword`),description:``,groupPath:`config.filters.keywords`}),competitor_domains:j({path:`config.filters.competitor_domains`,sectionKey:`config.filters`,maxItems:50,label:`Competitor domain`,description:``,placeholder:Z(`company_domain`),groupPath:`config.filters.competitors`,suggestionsDef:g(`company_domains`,{widgets:e=>({logo_url:{url:kx(e.value)}})})})}).check(e=>{wx(e.value)&&e.issues.push({code:`custom`,message:`You must set at least one filter.`,input:e.value})})})}),Qx={default:{input:[{fields:[]}]}},$x=class extends Ex{searchId=Gx;schema=Zx;payload;constructor(e){super(),this.payload=this.validatePayload(e)}getRawOutputFields(){return{[Kx.name]:this.catalogOutput(Kx),[qx.name]:this.catalogOutput(qx),[Jx.name]:this.catalogOutput(Jx),[Yx.name]:this.catalogOutput(Yx),[Xx.name]:this.catalogOutput(Xx)}}getConnectionsRequirements(){return[{provider:`crustdata`,rateLimitOperation:`crustdata_company_db_search`,rateLimitRatio:1,allowManagedConnection:!0}]}getDedupConfig(){return Qx}},eS=Zx,tS={searchId:Gx,billableOperation:`companies-profiles-crustdata-v2`,baseSearch:Dx(`companies:profiles:crustdata@2`),label:`Company search`,categories:[`companies`],paginationType:`cursor`,hasManagedConnection:!0,allowsUserConnection:!0,lifecycle:null,description:`Filter based company search.`,tags:[B.COMPANY_PROFILES],docPath:Ox(Gx),cost:{mode:`per_page`,credits:{default:2}},provider:`crustdata`,defaultPayload:{search_id:Gx,connector:null,config:{limit:100,cursor:``,output_fields:{company_name:{enabled:!0,alias:``},company_domain:{enabled:!0,alias:``},company_description:{enabled:!0,alias:``},company_profile_url:{enabled:!0,alias:``},crustdata_company_match:{enabled:!0,alias:``}},filters:{company_types:{include:[],exclude:[]},headcount_growth_l6m_in_percent:[],last_funding_amount:{from:null,to:null},last_funding_type:{include:[],exclude:[]},linkedin_industries:{include:[],exclude:[]},linkedin_categories:{include:[],exclude:[]},crunchbase_categories:{include:[],exclude:[]},markets:{include:[],exclude:[]},revenue_in_usd:{from:null,to:null},crunchbase_investors:{include:[],exclude:[]},tracxn_investors:{include:[],exclude:[]},follower_growth_l6m_in_percent:[],headcount:{include:[],exclude:[]},hq_locations:{include:[],exclude:[]},number_of_followers:[],profile_summary_keywords:{include:[],exclude:[]},competitor_domains:{include:[],exclude:[]}}}}},nS=`companies:profiles:amplemarket@1`,rS=_(`company_name`),iS=_(`company_website_url`),aS=_(`company_description`),oS=_(`company_profile_url`),sS=_(`amplemarket_company_match`),cS=r.object({search_id:r.literal(nS),connector:v.nullable().optional(),config:r.object({limit:L({label:`Limit`,description:`Max number of search results`,path:`config.limit`,min:1,max:100,groupPath:`config.pagination`,required:!0,sectionKey:`pagination`}),page_number:L({path:`config.page_number`,groupPath:`config.pagination`,required:!1,label:`Page number`,min:1,sectionKey:`pagination`,description:``}),output_fields:R(r.object({[rS.name]:N({fieldName:rS.name}),[iS.name]:N({fieldName:iS.name}),[aS.name]:N({fieldName:aS.name}),[oS.name]:N({fieldName:oS.name}),[sS.name]:N({fieldName:sS.name})})),filters:r.object({hq_locations:I({path:`config.filters.hq_locations`,sectionKey:`config.filters`,label:`HQ locations`,description:``,placeholder:Z(`location`),groupPath:`config.filters.location`,optionsDef:g(`locations`)}),company_names:j({sectionKey:`config.filters`,path:`config.filters.company_names`,label:`Company names`,description:``,placeholder:Z(`company_name`),groupPath:`config.filters.categories`,suggestionsDef:g(`company_names`)}),company_website_urls:j({sectionKey:`config.filters`,path:`config.filters.company_website_urls`,label:`Company domains`,description:``,placeholder:Z(`company_domain`),groupPath:`config.filters.categories`,suggestionsDef:g(`company_domains`,{widgets:{emoji:{char:`🌐`}}})}),company_profile_urls:j({sectionKey:`config.filters`,path:`config.filters.company_profile_urls`,label:`Company LinkedIn URLs`,description:``,groupPath:`config.filters.categories`}),company_types:P({sectionKey:`config.filters`,path:`config.filters.company_types`,disableSearch:!1,label:`Company Type`,description:``,groupPath:`config.filters.categories`,options:m(`amplemarket.company_types`),required:!1}),investors:F({sectionKey:`config.filters`,path:`config.filters.investors`,label:`Investor names`,optionsDef:g(`company.crunchbase_investors.crustdata`),description:`A list of company investor names`,placeholder:Z(`investor`),groupPath:`config.filters.investors`,disableSearch:!1,required:!1}),company_industries:M({sectionKey:`config.filters`,path:`config.filters.company_industries`,optionsDef:h(`amplemarket.industries`),disableSearch:!1,label:`Industries`,description:``,placeholder:Z(`industry`),groupPath:`config.filters.industry`}),customer_types:P({sectionKey:`config.filters`,path:`config.filters.customer_types`,options:[{value:`b2b`,label:`B2B`},{value:`b2c`,label:`B2C`}],required:!1,disableSearch:!0,label:`Customer Types`,description:``,groupPath:`config.filters.industry`}),keywords:j({sectionKey:`config.filters`,path:`config.filters.keywords`,label:`Keywords`,description:``,groupPath:`config.filters.industry`}),revenue_groups:P({path:`config.filters.revenue_groups`,sectionKey:`config.filters`,label:`Revenue groups`,description:``,disableSearch:!0,options:m(`amplemarket.company_revenue`),required:!1,groupPath:`config.filters.financials`}),founded_year:pa({path:`config.filters.founded_year`,sectionKey:`config.filters`,label:`Founded year`,groupPath:`config.filters.general`,min:0,max:2040,required:!1,description:``}),open_positions_titles:A({path:`config.filters.open_positions_titles`,sectionKey:`config.filters`,label:`Job openings for titles`,groupPath:`config.filters.job_openings`,description:``,placeholder:Z(`title`),suggestionsDef:g(`titles`)}),headcount:P({sectionKey:`config.filters`,path:`config.filters.company_sizes`,disableSearch:!1,options:m(`amplemarket.company_size`),label:`Headcount groups`,required:!1,description:``,groupPath:`config.filters.company_size`}),headcount_growth_last_6_months_in_percent:pa({path:`config.filters.headcount_growth_last_6_months_in_percent`,sectionKey:`config.filters`,label:`Headcount growth over last 6 months (in %)`,groupPath:`config.filters.company_size`,description:``,max:1e4,min:0,required:!1})}).check(e=>{wx(e.value)&&e.issues.push({code:`custom`,message:`You must set at least one filter.`,input:e.value})})})}),lS={default:{input:[{fields:[]}]}},uS=class extends Ex{searchId=nS;schema=cS;payload;constructor(e){super(),this.payload=this.validatePayload(e)}getRawOutputFields(){return{[rS.name]:this.catalogOutput(rS),[iS.name]:this.catalogOutput(iS),[aS.name]:this.catalogOutput(aS),[oS.name]:this.catalogOutput(oS),[sS.name]:this.catalogOutput(sS)}}getConnectionsRequirements(){return[{provider:`amplemarket`,rateLimitOperation:`amplemarket_company_search`,rateLimitRatio:1,allowManagedConnection:!0}]}getDedupConfig(){return lS}},dS=cS,fS={searchId:nS,billableOperation:`companies-profiles-amplemarket-v1`,baseSearch:Dx(`companies:profiles:amplemarket@1`),label:`Company search`,categories:[`deprecated`],paginationType:`page_number`,hasManagedConnection:!0,allowsUserConnection:!0,lifecycle:{deprecatedOn:`2026-06-13`,replacedBy:`companies:profiles:amplemarket@2`},description:`Filter based company search.`,tags:[B.COMPANY_PROFILES],docPath:Ox(nS),cost:{mode:`per_page`,credits:{default:2}},provider:`amplemarket`,defaultPayload:{search_id:nS,connector:null,config:{limit:100,page_number:1,output_fields:{company_name:{enabled:!0,alias:``},company_website_url:{enabled:!0,alias:``},company_description:{enabled:!0,alias:``},company_profile_url:{enabled:!0,alias:``},amplemarket_company_match:{enabled:!0,alias:``}},filters:{company_industries:{include:[],exclude:[]},company_names:{include:[],exclude:[]},company_profile_urls:{include:[],exclude:[]},company_types:[],company_website_urls:{include:[],exclude:[]},customer_types:[],headcount_growth_last_6_months_in_percent:{min:null,max:null},founded_year:{min:null,max:null},revenue_groups:[],investors:[],keywords:{include:[],exclude:[]},open_positions_titles:[],headcount:[],hq_locations:{include:[],exclude:[]}}}}},pS=`companies:profiles:crustdata@1`,mS=_(`company_name`),hS=_(`company_website_url`),gS=_(`company_description`),_S=_(`company_profile_url`),vS=_(`crustdata_company_match`),yS=r.object({search_id:r.literal(pS),connector:v.nullable().optional(),config:r.object({limit:L({path:`config.limit`,min:1,max:100,groupPath:`config.pagination`,required:!0,sectionKey:`pagination`,label:`Limit`,description:`Max number of search results`}),cursor:ya({path:`config.cursor`,groupPath:`config.pagination`,inputType:`text`,label:`Cursor`,sectionKey:`pagination`,description:`Pagination cursor`}),output_fields:R(r.object({[mS.name]:N({fieldName:mS.name}),[hS.name]:N({fieldName:mS.name}),[gS.name]:N({fieldName:gS.name}),[_S.name]:N({fieldName:_S.name}),[vS.name]:N({fieldName:vS.name})})),filters:r.object({hq_locations:I({path:`config.filters.hq_locations`,sectionKey:`config.filters`,label:`HQ locations`,description:``,placeholder:Z(`location`),groupPath:`config.filters.location`,optionsDef:g(`locations`)}),crunchbase_categories:I({path:`config.filters.crunchbase_categories`,sectionKey:`config.filters`,label:`Crunchbase categories`,placeholder:Z(`crunchbase_category`),description:``,groupPath:`config.filters.categories`,optionsDef:g(`company.crunchbase_categories.crustdata`)}),crunchbase_investors:I({path:`config.filters.crunchbase_investors`,sectionKey:`config.filters`,label:`Investors to include (Crunchbase)`,description:``,placeholder:Z(`investor`),groupPath:`config.filters.investors`,optionsDef:g(`company.crunchbase_investors.crustdata`)}),tracxn_investors:I({path:`config.filters.tracxn_investors`,sectionKey:`config.filters`,label:`Investors to include (Tracxn)`,description:``,placeholder:Z(`investor`),groupPath:`config.filters.investors`,optionsDef:g(`company.tracxn_investors.crustdata`)}),company_types:M({sectionKey:`config.filters`,path:`config.filters.company_types`,optionsDef:{type:`static`,options:m(`crustdata.company_types`)},label:`Company types`,placeholder:`Public, Private, ...`,description:``,groupPath:`config.filters.categories`}),linkedin_industries:I({sectionKey:`config.filters`,path:`config.filters.linkedin_industries`,optionsDef:g(`linkedin_industries.crustdata`),label:`Industries`,description:``,placeholder:Z(`industry`),groupPath:`config.filters.industry`}),markets:I({sectionKey:`config.filters`,path:`config.filters.markets`,optionsDef:g(`company.markets.crustdata`),placeholder:`NYSE, TYO, ...`,label:`Markets`,description:``,groupPath:`config.filters.industry`}),linkedin_categories:I({sectionKey:`config.filters`,path:`config.filters.linkedin_categories`,optionsDef:g(`company.linkedin_categories.crustdata`),label:`LinkedIn category`,placeholder:`Marketing, Branding, ...`,description:``,groupPath:`config.filters.categories`}),headcount:M({path:`config.filters.headcount`,sectionKey:`config.filters`,label:`Headcount`,description:``,disableSearch:!0,placeholder:`1-10`,optionsDef:{type:`static`,options:m(`crustdata.company_size`)},groupPath:`config.filters.company_size`}),headcount_growth_last_6m_in_percent:P({path:`config.filters.headcount_growth_last_6m_in_percent`,sectionKey:`config.filters`,label:`Headcount growth over last 6 months in percent`,description:``,options:m(`crustdata.headcount_growth`),placeholder:`0-10%`,disableSearch:!0,required:!1,groupPath:`config.filters.company_size`}),revenue_in_usd:ha({path:`config.filters.revenue_in_usd`,sectionKey:`config.filters`,label:`Revenue (USD)`,description:``,legend:`1k - 10B`,min:1e3,max:1e10,groupPath:`config.filters.financials`}),last_funding_type:M({path:`config.filters.last_funding_type`,sectionKey:`config.filters`,label:`Last funding type`,placeholder:`Series A`,disableSearch:!0,optionsDef:{type:`static`,options:m(`crustdata.funding_rounds`)},description:``,groupPath:`config.filters.financials`}),last_funding_amount:ha({path:`config.filters.last_funding_amount`,sectionKey:`config.filters`,label:`Last funding amount`,legend:`1k - 10B`,min:1e3,max:1e10,description:``,groupPath:`config.filters.financials`}),number_of_followers:P({path:`config.filters.number_of_followers`,sectionKey:`config.filters`,label:`Number of LinkedIn followers`,placeholder:`1-500`,disableSearch:!0,description:``,required:!1,options:m(`crustdata.company_followers`),groupPath:`config.filters.web_presence`}),follower_growth_last_6m_in_percent:P({path:`config.filters.follower_growth_last_6m_in_percent`,sectionKey:`config.filters`,label:`LinkedIn follower growth within last 6 months`,required:!1,disableSearch:!0,placeholder:`0-10%`,description:``,options:m(`crustdata.follower_growth`),groupPath:`config.filters.web_presence`}),profile_summary_keywords:j({path:`config.filters.profile_summary_keywords`,sectionKey:`config.filters`,maxItems:50,label:`LinkedIn company description contains`,placeholder:Z(`company_profile_keyword`),description:``,groupPath:`config.filters.keywords`}),competitor_websites:j({path:`config.filters.competitor_websites`,sectionKey:`config.filters`,maxItems:50,label:`Competitor domains`,description:``,placeholder:Z(`company_domain`),groupPath:`config.filters.competitors`,suggestionsDef:g(`company_domains`,{widgets:{emoji:{char:`🌐`}}})})}).check(e=>{wx(e.value)&&e.issues.push({code:`custom`,message:`You must set at least one filter.`,input:e.value})})})}),bS={default:{input:[{fields:[]}]}},xS=class extends Ex{searchId=pS;schema=yS;payload;constructor(e){super(),this.payload=this.validatePayload(e)}getRawOutputFields(){return{[mS.name]:this.catalogOutput(mS),[hS.name]:this.catalogOutput(hS),[gS.name]:this.catalogOutput(gS),[_S.name]:this.catalogOutput(_S),[vS.name]:this.catalogOutput(vS)}}getConnectionsRequirements(){return[{provider:`crustdata`,rateLimitOperation:`crustdata_company_db_search`,rateLimitRatio:1,allowManagedConnection:!0}]}getDedupConfig(){return bS}},SS=yS,CS={searchId:pS,billableOperation:`companies-profiles-crustdata-v1`,baseSearch:Dx(`companies:profiles:crustdata@1`),label:`Company search`,categories:[`deprecated`],paginationType:`cursor`,hasManagedConnection:!0,allowsUserConnection:!0,lifecycle:{deprecatedOn:`2026-06-13`,replacedBy:`companies:profiles:crustdata@2`},description:`Filter based company search.`,tags:[B.COMPANY_PROFILES],docPath:Ox(pS),cost:{mode:`per_page`,credits:{default:2}},provider:`crustdata`,defaultPayload:{search_id:pS,connector:null,config:{limit:100,cursor:``,output_fields:{company_name:{enabled:!0,alias:``},company_website_url:{enabled:!0,alias:``},company_description:{enabled:!0,alias:``},company_profile_url:{enabled:!0,alias:``},crustdata_company_match:{enabled:!0,alias:``}},filters:{company_types:{include:[],exclude:[]},headcount_growth_last_6m_in_percent:[],last_funding_amount:{from:null,to:null},last_funding_type:{include:[],exclude:[]},linkedin_industries:{include:[],exclude:[]},linkedin_categories:{include:[],exclude:[]},crunchbase_categories:{include:[],exclude:[]},markets:{include:[],exclude:[]},revenue_in_usd:{from:null,to:null},crunchbase_investors:{include:[],exclude:[]},tracxn_investors:{include:[],exclude:[]},follower_growth_last_6m_in_percent:[],headcount:{include:[],exclude:[]},hq_locations:{include:[],exclude:[]},number_of_followers:[],profile_summary_keywords:{include:[],exclude:[]},competitor_websites:{include:[],exclude:[]}}}}},wS=`people:profiles:amplemarket@1`,TS=_(`name`),ES=_(`company_website_url`),DS=_(`profile_url`),OS=_(`job_title`),kS=_(`amplemarket_person_match`),AS=r.object({search_id:r.literal(wS),connector:v.nullable().optional(),config:r.object({limit:L({path:`config.limit`,min:1,max:100,groupPath:`config.pagination`,required:!0,label:`Limit`,sectionKey:`pagination`,description:`Max number of search results`}),page_number:L({path:`config.page_number`,groupPath:`config.pagination`,required:!1,label:`Page number`,min:1,sectionKey:`pagination`,description:``}),output_fields:R(r.object({[TS.name]:N({fieldName:TS.name}),[ES.name]:N({fieldName:ES.name}),[DS.name]:N({fieldName:DS.name}),[OS.name]:N({fieldName:OS.name}),[kS.name]:N({fieldName:kS.name})})),filters:r.object({person_names:A({label:`Full name`,path:`config.filters.person_names`,sectionKey:`config.filters`,groupPath:`config.filters.general`}),current_locations:I({path:`config.filters.current_locations`,sectionKey:`config.filters`,label:`Location`,optionsDef:g(`locations`),groupPath:`config.filters.general`}),current_job_titles:A({path:`config.filters.current_job_titles`,sectionKey:`config.filters`,label:`Title`,placeholder:Z(`title`),description:``,order:1,groupPath:`config.filters.current_employer`,suggestionsDef:g(`titles`)}),current_seniority_levels:P({path:`config.filters.current_seniority_levels`,sectionKey:`config.filters`,placeholder:Z(`seniority`),label:`Seniority`,required:!1,disableSearch:!1,options:m(`amplemarket.seniority_levels`),description:``,groupPath:`config.filters.current_employer`}),current_departments:P({path:`config.filters.current_departments`,sectionKey:`config.filters`,label:`Department`,placeholder:Z(`department`),disableSearch:!1,required:!1,options:m(`amplemarket.departments`),description:``,groupPath:`config.filters.current_employer`}),current_job_functions:P({path:`config.filters.current_job_functions`,sectionKey:`config.filters`,label:`Job function`,placeholder:Z(`job_function`),disableSearch:!1,required:!1,options:m(`amplemarket.job_functions`),description:``,groupPath:`config.filters.current_employer`}),current_employer_locations:I({path:`config.filters.current_employer_locations`,sectionKey:`config.filters`,label:`Headquarters`,optionsDef:g(`locations`),groupPath:`config.filters.current_company`,placeholder:Z(`location`)}),current_employer_names:j({path:`config.filters.current_employer_names`,sectionKey:`config.filters`,label:`Company name`,groupPath:`config.filters.current_company`,description:``,placeholder:Z(`company_name`),suggestionsDef:g(`company_names`)}),current_employer_website_urls:j({path:`config.filters.current_employer_website_urls`,sectionKey:`config.filters`,label:`Company domain`,description:``,maxItems:200,placeholder:Z(`company_domain`),groupPath:`config.filters.current_company`,suggestionsDef:g(`company_domains`,{widgets:{emoji:{char:`🌐`}}})}),current_employer_linkedin_industries:P({path:`config.filters.current_employer_linkedin_industries`,sectionKey:`config.filters`,label:`Industry`,disableSearch:!1,groupPath:`config.filters.current_company`,description:``,placeholder:Z(`industry`),required:!1,options:m(`linkedin.industries`)}),current_employer_estimated_revenue:P({path:`config.filters.current_employer_estimated_revenue`,sectionKey:`config.filters`,label:`Estimated revenue`,disableSearch:!1,required:!1,groupPath:`config.filters.current_company`,description:``,options:m(`amplemarket.company_revenue`)}),current_employer_founded_year:pa({path:`config.filters.current_employer_founded_year`,sectionKey:`config.filters`,label:`Founded year`,groupPath:`config.filters.current_company`,min:0,max:2040,required:!1,description:``}),current_employer_investors:A({path:`config.filters.current_employer_investors`,sectionKey:`config.filters`,label:`Employer investors`,groupPath:`config.filters.current_company`,placeholder:Z(`investor`),description:``}),current_employer_open_positions_titles:A({path:`config.filters.current_employer_open_positions_titles`,sectionKey:`config.filters`,label:`Open positions`,groupPath:`config.filters.current_company`,description:``,placeholder:Z(`title`),suggestionsDef:g(`titles`)}),school_names:I({path:`config.filters.school_names`,sectionKey:`config.filters`,label:`School names`,description:``,placeholder:Z(`school`),groupPath:`config.filters.education`,optionsDef:g(`schools`)})}).check(e=>{wx(e.value)&&e.issues.push({code:`custom`,message:`You must set at least one filter.`,input:e.value})})})}),jS={default:{input:[{fields:[]}]}},MS=class extends Ex{searchId=wS;schema=AS;payload;constructor(e){super(),this.payload=this.validatePayload(e)}getRawOutputFields(){return{[TS.name]:this.catalogOutput(TS),[ES.name]:this.catalogOutput(ES),[DS.name]:this.catalogOutput(DS),[OS.name]:this.catalogOutput(OS),[kS.name]:this.catalogOutput(kS)}}getConnectionsRequirements(){return[{provider:`amplemarket`,rateLimitOperation:`amplemarket_people_search`,rateLimitRatio:1,allowManagedConnection:!0}]}getDedupConfig(){return jS}},NS=AS,PS={searchId:wS,billableOperation:`people-profiles-amplemarket-v1`,baseSearch:Dx(`people:profiles:amplemarket@1`),paginationType:`page_number`,label:`People search`,categories:[`deprecated`],hasManagedConnection:!0,allowsUserConnection:!0,lifecycle:{deprecatedOn:`2026-06-13`,replacedBy:`people:profiles:amplemarket@2`},description:`Filter-based people search.`,tags:[B.PEOPLE_PROFILES],docPath:Ox(wS),cost:{mode:`per_page`,credits:{default:3},info:`1 page = 100 records; 200 results = 2 pages`},provider:`amplemarket`,defaultPayload:{search_id:wS,connector:null,config:{limit:50,page_number:1,output_fields:{name:{enabled:!0,alias:``},job_title:{enabled:!0,alias:``},profile_url:{enabled:!0,alias:``},company_website_url:{enabled:!0,alias:``},amplemarket_person_match:{enabled:!0,alias:``}},filters:{current_employer_names:{include:[],exclude:[]},current_departments:[],current_employer_locations:{include:[],exclude:[]},person_names:[],current_employer_founded_year:{min:null,max:null},current_employer_estimated_revenue:[],current_employer_investors:[],current_employer_open_positions_titles:[],current_job_functions:[],current_locations:{include:[],exclude:[]},current_employer_linkedin_industries:[],current_employer_website_urls:{include:[],exclude:[]},current_seniority_levels:[],school_names:{include:[],exclude:[]},current_job_titles:[]}}}},FS=`people:profiles:crustdata@1`,IS=_(`name`),LS=_(`company_website_url`),RS=_(`profile_url`),zS=_(`job_title`),BS=_(`crustdata_person_match`),VS=r.object({search_id:r.literal(FS),connector:v.nullable().optional(),config:r.object({limit:L({path:`config.limit`,min:1,max:100,groupPath:`config.pagination`,required:!0,sectionKey:`pagination`,label:`Limit`,description:`Max number of search results`}),cursor:ya({path:`config.cursor`,groupPath:`config.pagination`,inputType:`text`,label:`Cursor`,sectionKey:`pagination`,description:`Pagination cursor`}),output_fields:R(r.object({[IS.name]:N({fieldName:IS.name}),[LS.name]:N({fieldName:LS.name}),[RS.name]:N({fieldName:RS.name}),[zS.name]:N({fieldName:zS.name}),[BS.name]:N({fieldName:BS.name})})),filters:r.object({locations:I({path:`config.filters.locations`,sectionKey:`config.filters`,label:`Location`,placeholder:Z(`location`),optionsDef:g(`locations`),groupPath:`config.filters.general`}),current_job_titles:j({path:`config.filters.current_job_titles`,sectionKey:`config.filters`,label:`Title`,description:``,placeholder:Z(`title`),order:1,groupPath:`config.filters.current_employer`,suggestionsDef:g(`titles`)}),current_employers:j({path:`config.filters.current_employers`,sectionKey:`config.filters`,label:`Company name`,description:``,placeholder:Z(`company_name`),maxItems:200,groupPath:`config.filters.current_employer`,suggestionsDef:g(`company_names`,{widgets:{emoji:{char:`🏷️`}}})}),current_employers_website_urls:j({path:`config.filters.current_employers_website_urls`,sectionKey:`config.filters`,label:`Company domain`,placeholder:Z(`company_domain`),description:``,maxItems:200,groupPath:`config.filters.current_employer`,suggestionsDef:g(`company_domains`,{widgets:{emoji:{char:`🌐`}}})}),current_employers_linkedin_industries:I({path:`config.filters.current_employers_linkedin_industries`,sectionKey:`config.filters`,label:`Industry`,groupPath:`config.filters.current_employer`,placeholder:Z(`industry`),description:``,optionsDef:g(`linkedin_industries.crustdata`,{limit:300})}),years_at_current_company:P({path:`config.filters.years_at_current_company`,sectionKey:`config.filters`,label:`Years at current company`,placeholder:`1 to 2 years`,disableSearch:!1,required:!1,groupPath:`config.filters.current_employer`,description:``,options:m(`crustdata.years_of_experience`)}),previous_employers_website_urls:j({path:`config.filters.previous_employers_website_urls`,sectionKey:`config.filters`,label:`Previous employer domain`,description:``,placeholder:Z(`company_domain`),maxItems:200,groupPath:`config.filters.experience`,suggestionsDef:g(`company_domains`,{widgets:{emoji:{char:`🌐`}}})}),previous_seniority_levels:M({path:`config.filters.previous_seniority_levels`,sectionKey:`config.filters`,label:`Previous seniority`,placeholder:Z(`seniority`),disableSearch:!0,optionsDef:h(`crustdata.person_seniority`),description:``,groupPath:`config.filters.experience`}),previous_employers:j({path:`config.filters.previous_employers`,sectionKey:`config.filters`,label:`Previous employer`,description:``,placeholder:Z(`company_name`),maxItems:200,groupPath:`config.filters.experience`,suggestionsDef:g(`company_names`,{widgets:{emoji:{char:`🏷️`}}})}),previous_job_titles:j({path:`config.filters.previous_job_titles`,sectionKey:`config.filters`,label:`Previous title`,description:``,placeholder:Z(`title`),groupPath:`config.filters.experience`,suggestionsDef:g(`titles`)}),previous_employers_linkedin_industries:I({path:`config.filters.previous_employers_linkedin_industries`,sectionKey:`config.filters`,label:`Previous employer industries`,placeholder:Z(`industry`),groupPath:`config.filters.experience`,description:``,optionsDef:g(`linkedin_industries.crustdata`,{limit:300})}),profile_headline_keywords:j({path:`config.filters.profile_headline_keywords`,sectionKey:`config.filters`,label:`Headline contains keywords`,maxItems:100,groupPath:`config.filters.keywords`,placeholder:Z(`headline_keywords`)}),profile_summary_keywords:j({path:`config.filters.profile_summary_keywords`,sectionKey:`config.filters`,label:`Profile about section contains keywords`,maxItems:100,groupPath:`config.filters.keywords`,placeholder:Z(`profile_keywords`)}),profile_languages:M({path:`config.filters.profile_languages`,sectionKey:`config.filters`,label:`Profile language`,placeholder:Z(`languages`),optionsDef:h(`crustdata.person_profile_languages`),groupPath:`config.filters.general`}),languages:M({path:`config.filters.languages`,sectionKey:`config.filters`,label:`Spoken language`,placeholder:Z(`languages_1`),optionsDef:h(`crustdata.person_profile_languages`),groupPath:`config.filters.general`}),skills:I({path:`config.filters.skills`,sectionKey:`config.filters`,label:`Skills`,description:``,placeholder:Z(`skills`),groupPath:`config.filters.skills`,optionsDef:g(`skills`)}),years_of_experience:P({path:`config.filters.years_of_experience`,sectionKey:`config.filters`,label:`Years of experience`,placeholder:`1 to 2 years`,disableSearch:!0,description:``,required:!1,options:m(`crustdata.years_of_experience`),groupPath:`config.filters.experience`}),current_seniority_levels:M({path:`config.filters.current_seniority_levels`,sectionKey:`config.filters`,disableSearch:!0,label:`Seniority`,placeholder:Z(`seniority`),optionsDef:h(`crustdata.person_seniority`),description:``,groupPath:`config.filters.experience`}),certifications:j({path:`config.filters.certifications`,sectionKey:`config.filters`,label:`Certifications`,groupPath:`config.filters.certifications_honors`,placeholder:Z(`certification`),description:``}),honors:j({path:`config.filters.honors`,sectionKey:`config.filters`,label:`Honors`,groupPath:`config.filters.certifications_honors`,placeholder:Z(`honor`),description:``}),recently_changed_jobs:va({path:`config.filters.recently_changed_jobs`,sectionKey:`config.filters`,label:`Recently changed jobs`,description:``,defaultValue:null,groupPath:`config.filters.activities`}),fields_of_study:I({path:`config.filters.fields_of_study`,sectionKey:`config.filters`,label:`Fields of study`,placeholder:Z(`field_of_study`),description:``,groupPath:`config.filters.education`,optionsDef:g(`person.education_field_of_study.crustdata`)}),degree_names:I({path:`config.filters.degree_names`,sectionKey:`config.filters`,label:`Degree names`,placeholder:Z(`degree_name`),description:``,groupPath:`config.filters.education`,optionsDef:g(`person.education_degree.crustdata`)}),school_names:I({path:`config.filters.school_names`,sectionKey:`config.filters`,label:`School names`,description:``,placeholder:Z(`school`),groupPath:`config.filters.education`,optionsDef:g(`schools`)}),current_school_names:I({path:`config.filters.current_school_names`,sectionKey:`config.filters`,label:`Currently enrolled at`,description:``,placeholder:Z(`school`),groupPath:`config.filters.education`,optionsDef:g(`schools`)}),extracurricular_activities:j({path:`config.filters.extracurricular_activities`,sectionKey:`config.filters`,label:`Extracurricular activities`,description:``,placeholder:Z(`extracurricular`),groupPath:`config.filters.education`,suggestionsDef:g(`person.education_activities.crustdata`)})}).check(e=>{wx(e.value)&&e.issues.push({code:`custom`,message:`You must set at least one filter.`,input:e.value})})})}),HS={default:{input:[{fields:[]}]}},US=class extends Ex{searchId=FS;schema=VS;payload;constructor(e){super(),this.payload=this.validatePayload(e)}getRawOutputFields(){return{[IS.name]:this.catalogOutput(IS),[LS.name]:this.catalogOutput(LS),[RS.name]:this.catalogOutput(RS),[zS.name]:this.catalogOutput(zS),[BS.name]:this.catalogOutput(BS)}}getConnectionsRequirements(){return[{provider:`crustdata`,rateLimitOperation:`crustdata_people_db_search`,rateLimitRatio:1,allowManagedConnection:!0}]}getDedupConfig(){return HS}},WS=VS,GS={searchId:FS,billableOperation:`people-profiles-crustdata-v1`,baseSearch:Dx(`people:profiles:crustdata@1`),paginationType:`cursor`,label:`People search`,categories:[`deprecated`],hasManagedConnection:!0,allowsUserConnection:!0,lifecycle:{deprecatedOn:`2026-06-13`,replacedBy:`people:profiles:crustdata@2`},description:`Filter-based people search.`,tags:[B.PEOPLE_PROFILES],docPath:Ox(FS),cost:{mode:`per_page`,credits:{default:5},info:`1 page = 100 records; 200 results = 2 pages`},provider:`crustdata`,defaultPayload:{search_id:FS,connector:null,config:{limit:100,cursor:``,output_fields:{name:{enabled:!0,alias:``},job_title:{enabled:!0,alias:``},profile_url:{enabled:!0,alias:``},company_website_url:{enabled:!0,alias:``},crustdata_person_match:{enabled:!0,alias:``}},filters:{profile_headline_keywords:{include:[],exclude:[]},languages:{include:[],exclude:[]},profile_summary_keywords:{include:[],exclude:[]},previous_job_titles:{include:[],exclude:[]},current_employers:{include:[],exclude:[]},current_school_names:{include:[],exclude:[]},years_at_current_company:[],certifications:{include:[],exclude:[]},honors:{include:[],exclude:[]},current_employers_linkedin_industries:{include:[],exclude:[]},current_employers_website_urls:{include:[],exclude:[]},previous_employers_website_urls:{include:[],exclude:[]},current_seniority_levels:{include:[],exclude:[]},previous_seniority_levels:{include:[],exclude:[]},degree_names:{include:[],exclude:[]},locations:{include:[],exclude:[]},profile_languages:{include:[],exclude:[]},recently_changed_jobs:null,extracurricular_activities:{include:[],exclude:[]},school_names:{include:[],exclude:[]},fields_of_study:{include:[],exclude:[]},previous_employers:{include:[],exclude:[]},current_job_titles:{include:[],exclude:[]},skills:{include:[],exclude:[]},years_of_experience:[],previous_employers_linkedin_industries:{include:[],exclude:[]}}}}},KS=`people:profiles:amplemarket@2`,qS=_(`name`),JS=_(`company_domain`),YS=_(`profile_url`),XS=_(`job_title`),ZS=_(`amplemarket_person_match`),QS=r.object({search_id:r.literal(KS),connector:v.nullable().optional(),config:r.object({limit:L({path:`config.limit`,min:1,max:100,groupPath:`config.pagination`,required:!0,label:`Limit`,sectionKey:`pagination`,description:`Max number of search results`}),page_number:L({path:`config.page_number`,groupPath:`config.pagination`,required:!1,label:`Page number`,min:1,sectionKey:`pagination`,description:``}),output_fields:R(r.object({[qS.name]:N({fieldName:qS.name}),[JS.name]:N({fieldName:JS.name}),[YS.name]:N({fieldName:YS.name}),[XS.name]:N({fieldName:XS.name}),[ZS.name]:N({fieldName:ZS.name})})),filters:r.object({person_names:A({label:`Full name`,path:`config.filters.person_names`,sectionKey:`config.filters`,groupPath:`config.filters.general`}),current_locations:I({path:`config.filters.current_locations`,sectionKey:`config.filters`,label:`Location`,optionsDef:g(`locations`),groupPath:`config.filters.general`}),current_job_titles:A({path:`config.filters.current_job_titles`,sectionKey:`config.filters`,label:`Title`,placeholder:Z(`title`),description:``,order:1,groupPath:`config.filters.current_employer`,suggestionsDef:g(`titles`)}),current_seniority_levels:P({path:`config.filters.current_seniority_levels`,sectionKey:`config.filters`,placeholder:Z(`seniority`),label:`Seniority`,required:!1,disableSearch:!1,options:m(`amplemarket.seniority_levels`),description:``,groupPath:`config.filters.current_employer`}),current_departments:P({path:`config.filters.current_departments`,sectionKey:`config.filters`,label:`Department`,placeholder:Z(`department`),disableSearch:!1,required:!1,options:m(`amplemarket.departments`),description:``,groupPath:`config.filters.current_employer`}),current_job_functions:P({path:`config.filters.current_job_functions`,sectionKey:`config.filters`,label:`Job function`,placeholder:Z(`job_function`),disableSearch:!1,required:!1,options:m(`amplemarket.job_functions`),description:``,groupPath:`config.filters.current_employer`}),current_employer_locations:I({path:`config.filters.current_employer_locations`,sectionKey:`config.filters`,label:`Headquarters`,optionsDef:g(`locations`),groupPath:`config.filters.current_company`,placeholder:Z(`location`)}),current_employer_names:j({path:`config.filters.current_employer_names`,sectionKey:`config.filters`,label:`Company name`,groupPath:`config.filters.current_company`,description:``,placeholder:Z(`company_name`),suggestionsDef:g(`company_names`)}),current_employer_domains:j({path:`config.filters.current_employer_domains`,sectionKey:`config.filters`,label:`Company domain`,description:``,maxItems:200,placeholder:Z(`company_domain`),groupPath:`config.filters.current_company`,suggestionsDef:g(`company_domains`,{widgets:e=>({logo_url:{url:kx(e.value)}})})}),current_employer_linkedin_industries:P({path:`config.filters.current_employer_linkedin_industries`,sectionKey:`config.filters`,label:`Industry`,disableSearch:!1,groupPath:`config.filters.current_company`,description:``,placeholder:Z(`industry`),required:!1,options:m(`linkedin.industries`)}),current_employer_estimated_revenue:P({path:`config.filters.current_employer_estimated_revenue`,sectionKey:`config.filters`,label:`Estimated revenue`,disableSearch:!1,required:!1,groupPath:`config.filters.current_company`,description:``,options:m(`amplemarket.company_revenue`)}),current_employer_founded_year:pa({path:`config.filters.current_employer_founded_year`,sectionKey:`config.filters`,label:`Founded year`,groupPath:`config.filters.current_company`,min:0,max:2040,required:!1,description:``}),current_employer_investors:A({path:`config.filters.current_employer_investors`,sectionKey:`config.filters`,label:`Employer investors`,groupPath:`config.filters.current_company`,placeholder:Z(`investor`),description:``}),current_employer_open_position_titles:A({path:`config.filters.current_employer_open_position_titles`,sectionKey:`config.filters`,label:`Open positions`,groupPath:`config.filters.current_company`,description:``,placeholder:Z(`title`),suggestionsDef:g(`titles`)}),school_names:I({path:`config.filters.school_names`,sectionKey:`config.filters`,label:`School names`,description:``,placeholder:Z(`school`),groupPath:`config.filters.education`,optionsDef:g(`schools`)})}).check(e=>{wx(e.value)&&e.issues.push({code:`custom`,message:`You must set at least one filter.`,input:e.value})})})}),$S={default:{input:[{fields:[]}]}},eC=class extends Ex{searchId=KS;schema=QS;payload;constructor(e){super(),this.payload=this.validatePayload(e)}getRawOutputFields(){return{[qS.name]:this.catalogOutput(qS),[JS.name]:this.catalogOutput(JS),[YS.name]:this.catalogOutput(YS),[XS.name]:this.catalogOutput(XS),[ZS.name]:this.catalogOutput(ZS)}}getConnectionsRequirements(){return[{provider:`amplemarket`,rateLimitOperation:`amplemarket_people_search`,rateLimitRatio:1,allowManagedConnection:!0}]}getDedupConfig(){return $S}},tC=QS,nC={searchId:KS,billableOperation:`people-profiles-amplemarket-v2`,baseSearch:Dx(`people:profiles:amplemarket@2`),paginationType:`page_number`,label:`People search`,categories:[`people`],hasManagedConnection:!0,allowsUserConnection:!0,lifecycle:null,description:`Filter-based people search.`,tags:[B.PEOPLE_PROFILES],docPath:Ox(KS),cost:{mode:`per_page`,credits:{default:3},info:`1 page = 100 records; 200 results = 2 pages`},provider:`amplemarket`,defaultPayload:{search_id:KS,connector:null,config:{limit:50,page_number:1,output_fields:{name:{enabled:!0,alias:``},job_title:{enabled:!0,alias:``},profile_url:{enabled:!0,alias:``},company_domain:{enabled:!0,alias:``},amplemarket_person_match:{enabled:!0,alias:``}},filters:{current_employer_names:{include:[],exclude:[]},current_departments:[],current_employer_locations:{include:[],exclude:[]},person_names:[],current_employer_founded_year:{min:null,max:null},current_employer_estimated_revenue:[],current_employer_investors:[],current_employer_open_position_titles:[],current_job_functions:[],current_locations:{include:[],exclude:[]},current_employer_linkedin_industries:[],current_employer_domains:{include:[],exclude:[]},current_seniority_levels:[],school_names:{include:[],exclude:[]},current_job_titles:[]}}}},rC=`people:profiles:crustdata@2`,iC=_(`name`),aC=_(`company_domain`),oC=_(`profile_url`),sC=_(`job_title`),cC=_(`crustdata_person_match`),lC=r.object({search_id:r.literal(rC),connector:v.nullable().optional(),config:r.object({limit:L({path:`config.limit`,min:1,max:100,groupPath:`config.pagination`,required:!0,sectionKey:`pagination`,label:`Limit`,description:`Max number of search results`}),cursor:ya({path:`config.cursor`,groupPath:`config.pagination`,inputType:`text`,label:`Cursor`,sectionKey:`pagination`,description:`Pagination cursor`}),output_fields:R(r.object({[iC.name]:N({fieldName:iC.name}),[aC.name]:N({fieldName:aC.name}),[oC.name]:N({fieldName:oC.name}),[sC.name]:N({fieldName:sC.name}),[cC.name]:N({fieldName:cC.name})})),filters:r.object({locations:I({path:`config.filters.locations`,sectionKey:`config.filters`,label:`Location`,placeholder:Z(`location`),optionsDef:g(`locations`),groupPath:`config.filters.general`}),current_job_titles:j({path:`config.filters.current_job_titles`,sectionKey:`config.filters`,label:`Title`,description:``,placeholder:Z(`title`),order:1,groupPath:`config.filters.current_employer`,suggestionsDef:g(`titles`)}),current_employer_names:j({path:`config.filters.current_employer_names`,sectionKey:`config.filters`,label:`Company name`,description:``,placeholder:Z(`company_name`),maxItems:200,groupPath:`config.filters.current_employer`,suggestionsDef:g(`company_names`,{widgets:{emoji:{char:`🏷️`}}})}),current_employer_domains:j({path:`config.filters.current_employer_domains`,sectionKey:`config.filters`,label:`Company domain`,placeholder:Z(`company_domain`),description:``,maxItems:200,groupPath:`config.filters.current_employer`,suggestionsDef:g(`company_domains`,{widgets:e=>({logo_url:{url:kx(e.value)}})})}),current_employer_industries:I({path:`config.filters.current_employer_industries`,sectionKey:`config.filters`,label:`Industry`,groupPath:`config.filters.current_employer`,placeholder:Z(`industry`),description:``,optionsDef:g(`linkedin_industries.crustdata`,{limit:300})}),years_at_current_company:P({path:`config.filters.years_at_current_company`,sectionKey:`config.filters`,label:`Years at current company`,placeholder:`1 to 2 years`,disableSearch:!1,required:!1,groupPath:`config.filters.current_employer`,description:``,options:m(`crustdata.years_of_experience`)}),previous_employer_domains:j({path:`config.filters.previous_employer_domains`,sectionKey:`config.filters`,label:`Previous employer domain`,description:``,placeholder:Z(`company_domain`),maxItems:200,groupPath:`config.filters.experience`,suggestionsDef:g(`company_domains`,{widgets:e=>({logo_url:{url:kx(e.value)}})})}),previous_seniority_levels:M({path:`config.filters.previous_seniority_levels`,sectionKey:`config.filters`,label:`Previous seniority`,placeholder:Z(`seniority`),disableSearch:!0,optionsDef:h(`crustdata.person_seniority`),description:``,groupPath:`config.filters.experience`}),previous_employer_names:j({path:`config.filters.previous_employer_names`,sectionKey:`config.filters`,label:`Previous employer`,description:``,placeholder:Z(`company_name`),maxItems:200,groupPath:`config.filters.experience`,suggestionsDef:g(`company_names`,{widgets:{emoji:{char:`🏷️`}}})}),previous_job_titles:j({path:`config.filters.previous_job_titles`,sectionKey:`config.filters`,label:`Previous title`,description:``,placeholder:Z(`title`),groupPath:`config.filters.experience`,suggestionsDef:g(`titles`)}),previous_employer_industries:I({path:`config.filters.previous_employer_industries`,sectionKey:`config.filters`,label:`Previous employer industries`,placeholder:Z(`industry`),groupPath:`config.filters.experience`,description:``,optionsDef:g(`linkedin_industries.crustdata`,{limit:300})}),profile_headline_keywords:j({path:`config.filters.profile_headline_keywords`,sectionKey:`config.filters`,label:`Headline contains keywords`,maxItems:100,groupPath:`config.filters.keywords`,placeholder:Z(`headline_keywords`)}),profile_summary_keywords:j({path:`config.filters.profile_summary_keywords`,sectionKey:`config.filters`,label:`Profile about section contains keywords`,maxItems:100,groupPath:`config.filters.keywords`,placeholder:Z(`profile_keywords`)}),profile_languages:M({path:`config.filters.profile_languages`,sectionKey:`config.filters`,label:`Profile language`,placeholder:Z(`languages`),optionsDef:h(`crustdata.person_profile_languages`),groupPath:`config.filters.general`}),languages:M({path:`config.filters.languages`,sectionKey:`config.filters`,label:`Spoken language`,placeholder:Z(`languages_1`),optionsDef:h(`crustdata.person_profile_languages`),groupPath:`config.filters.general`}),skills:I({path:`config.filters.skills`,sectionKey:`config.filters`,label:`Skills`,description:``,placeholder:Z(`skills`),groupPath:`config.filters.skills`,optionsDef:g(`skills`)}),years_of_experience:P({path:`config.filters.years_of_experience`,sectionKey:`config.filters`,label:`Years of experience`,placeholder:`1 to 2 years`,disableSearch:!0,description:``,required:!1,options:m(`crustdata.years_of_experience`),groupPath:`config.filters.experience`}),current_seniority_levels:M({path:`config.filters.current_seniority_levels`,sectionKey:`config.filters`,disableSearch:!0,label:`Seniority`,placeholder:Z(`seniority`),optionsDef:h(`crustdata.person_seniority`),description:``,groupPath:`config.filters.experience`}),certifications:j({path:`config.filters.certifications`,sectionKey:`config.filters`,label:`Certifications`,groupPath:`config.filters.certifications_honors`,placeholder:Z(`certification`),description:``}),honors:j({path:`config.filters.honors`,sectionKey:`config.filters`,label:`Honors`,groupPath:`config.filters.certifications_honors`,placeholder:Z(`honor`),description:``}),recently_changed_jobs:va({path:`config.filters.recently_changed_jobs`,sectionKey:`config.filters`,label:`Recently changed jobs`,description:``,defaultValue:null,groupPath:`config.filters.activities`}),fields_of_study:I({path:`config.filters.fields_of_study`,sectionKey:`config.filters`,label:`Fields of study`,placeholder:Z(`field_of_study`),description:``,groupPath:`config.filters.education`,optionsDef:g(`person.education_field_of_study.crustdata`)}),degree_names:I({path:`config.filters.degree_names`,sectionKey:`config.filters`,label:`Degree names`,placeholder:Z(`degree_name`),description:``,groupPath:`config.filters.education`,optionsDef:g(`person.education_degree.crustdata`)}),school_names:I({path:`config.filters.school_names`,sectionKey:`config.filters`,label:`School names`,description:``,placeholder:Z(`school`),groupPath:`config.filters.education`,optionsDef:g(`schools`)}),current_school_names:I({path:`config.filters.current_school_names`,sectionKey:`config.filters`,label:`Currently enrolled at`,description:``,placeholder:Z(`school`),groupPath:`config.filters.education`,optionsDef:g(`schools`)}),extracurricular_activities:j({path:`config.filters.extracurricular_activities`,sectionKey:`config.filters`,label:`Extracurricular activities`,description:``,placeholder:Z(`extracurricular`),groupPath:`config.filters.education`,suggestionsDef:g(`person.education_activities.crustdata`)})}).check(e=>{wx(e.value)&&e.issues.push({code:`custom`,message:`You must set at least one filter.`,input:e.value})})})}),uC={default:{input:[{fields:[]}]}},dC=class extends Ex{searchId=rC;schema=lC;payload;constructor(e){super(),this.payload=this.validatePayload(e)}getRawOutputFields(){return{[iC.name]:this.catalogOutput(iC),[aC.name]:this.catalogOutput(aC),[oC.name]:this.catalogOutput(oC),[sC.name]:this.catalogOutput(sC),[cC.name]:this.catalogOutput(cC)}}getConnectionsRequirements(){return[{provider:`crustdata`,rateLimitOperation:`crustdata_people_db_search`,rateLimitRatio:1,allowManagedConnection:!0}]}getDedupConfig(){return uC}},fC=lC,pC={searchId:rC,billableOperation:`people-profiles-crustdata-v2`,baseSearch:Dx(`people:profiles:crustdata@2`),paginationType:`cursor`,label:`People search`,categories:[`people`],hasManagedConnection:!0,allowsUserConnection:!0,lifecycle:null,description:`Filter-based people search.`,tags:[B.PEOPLE_PROFILES],docPath:Ox(rC),cost:{mode:`per_page`,credits:{default:5},info:`1 page = 100 records; 200 results = 2 pages`},provider:`crustdata`,defaultPayload:{search_id:rC,connector:null,config:{limit:100,cursor:``,output_fields:{name:{enabled:!0,alias:``},job_title:{enabled:!0,alias:``},profile_url:{enabled:!0,alias:``},company_domain:{enabled:!0,alias:``},crustdata_person_match:{enabled:!0,alias:``}},filters:{profile_headline_keywords:{include:[],exclude:[]},languages:{include:[],exclude:[]},profile_summary_keywords:{include:[],exclude:[]},previous_job_titles:{include:[],exclude:[]},current_employer_names:{include:[],exclude:[]},current_school_names:{include:[],exclude:[]},years_at_current_company:[],certifications:{include:[],exclude:[]},honors:{include:[],exclude:[]},current_employer_industries:{include:[],exclude:[]},current_employer_domains:{include:[],exclude:[]},previous_employer_domains:{include:[],exclude:[]},current_seniority_levels:{include:[],exclude:[]},previous_seniority_levels:{include:[],exclude:[]},degree_names:{include:[],exclude:[]},locations:{include:[],exclude:[]},profile_languages:{include:[],exclude:[]},recently_changed_jobs:null,extracurricular_activities:{include:[],exclude:[]},school_names:{include:[],exclude:[]},fields_of_study:{include:[],exclude:[]},previous_employer_names:{include:[],exclude:[]},current_job_titles:{include:[],exclude:[]},skills:{include:[],exclude:[]},years_of_experience:[],previous_employer_industries:{include:[],exclude:[]}}}}},mC={"people:profiles:crustdata@1":US,"people:profiles:crustdata@2":dC,"companies:profiles:crustdata@1":xS,"companies:profiles:crustdata@2":$x,"people:profiles:amplemarket@1":MS,"people:profiles:amplemarket@2":eC,"companies:profiles:amplemarket@1":uS,"companies:profiles:amplemarket@2":Hx},hC={"people:profiles:crustdata@1":WS,"people:profiles:crustdata@2":fC,"companies:profiles:crustdata@1":SS,"companies:profiles:crustdata@2":eS,"people:profiles:amplemarket@1":NS,"people:profiles:amplemarket@2":tC,"companies:profiles:amplemarket@1":dS,"companies:profiles:amplemarket@2":Ux},gC={"people:profiles:crustdata@1":GS,"people:profiles:crustdata@2":pC,"companies:profiles:crustdata@1":CS,"companies:profiles:crustdata@2":tS,"people:profiles:amplemarket@1":PS,"people:profiles:amplemarket@2":nC,"companies:profiles:amplemarket@1":fS,"companies:profiles:amplemarket@2":Wx};function _C(e){return mC[e]}const vC=t.discriminatedUnion(`search_id`,Object.values(hC).map(e=>e)).openapi(`SearchPayloadSchema`);function yC(e,t){return Ca(t,gC[e].defaultPayload)}const bC=t.preprocess(e=>{if(!e||typeof e!=`object`||!(`search_id`in e))return e;let t=yC(e.search_id);return t?{...e,config:Ca(e?.config||{},t.config)}:e},vC),xC=t.object({config:t.object({environment:t.enum([`production`,`sandbox`]).default(`production`),widgets:t.object({enabled:t.boolean().default(!1)}).default({enabled:!1})}).default({environment:`production`,widgets:{enabled:!1}}),search:bC}).openapi(`SearchRequestSchema`),SC=In,CC=t.object({value:Cn,status:Sn,type:bn.optional(),format:zn.nullable().optional(),resolved_by:Gn.nullable().optional(),widgets:Fn.optional()}),wC=t.record(t.string(),CC.nullable());function TC(e){return hC[e]}const EC=t.enum([`cursor`,`page_number`]),DC=t.object({id:t.string(),status:t.enum([`completed`,`failed`,`pending`,`processing`]),search_id:Cx,errors:t.array(SC),results:t.array(wC),organization_id:t.string(),next_page:bC.nullable(),pagination_type:EC.nullable(),total_pages:t.int32().nullable()}).openapi(`SearchResponseSchema`);function OC(e){let t=e.split(`@`)[1];if(!t)throw Error(`No search version found`);return Number(t)}function kC(){let e={};for(let t of Object.values(gC)){let{baseSearch:n}=t;e[n]??=[],e[n].push(t)}return Object.entries(e).forEach(([t,n])=>{e[t]=n.sort((e,t)=>{let n=OC(e.searchId);return OC(t.searchId)-n})}),e}function AC(e){return gC[e]}const jC=kC();function MC(e){let t=[];for(let[n,r]of Object.entries(jC)){let i=r[0];if(!i)throw Error(`Found empty entry`);i.lifecycle?.deprecatedOn&&e!==`deprecated`||(e===null||i.categories.includes(e))&&t.push({...i,baseSearch:n,latestVersion:OC(i.searchId)})}return t}function NC(e){return Object.keys(gC[e].defaultPayload.config.output_fields)}function PC(e,t){let n=e.filter(e=>t===null?!0:e.categories.some(e=>e===t)),r={},i={},a={};for(let e of n){if(e.lifecycle&&e.lifecycle.deprecatedOn){i.Deprecated??=[],i.Deprecated.push(e.searchId);continue}a[e.provider]??=[],a[e.provider].push(e.searchId);for(let t of NC(e.searchId))r[t]??=[],r[t].push(e.searchId);for(let t of e.tags)i[t]??=[],i[t].push(e.searchId)}return{searchIdsByOutputField:r,searchIdsByTag:i,searchIdsByProvider:a,sortedTagEntries:Object.entries(i).sort((e,t)=>e[0].localeCompare(t[0])),sortedOutputFieldEntries:Object.entries(r).sort((e,t)=>e[0].localeCompare(t[0])),sortedProviderEntries:Object.entries(a).sort((e,t)=>e[0].localeCompare(t[0])),searchEntriesByBaseSearch:jC}}function FC(e){let t=AC(e);return{[t.provider]:t.cost.credits.default}}const IC={"prompt:run@1":sb,"company:newssummary:website@1":ml,"company:newssummary:domain@1":cs,"company:techstack:builtwith@1":nu,"company:techstack:builtwith@2":Fs,"company:websiteurl:email@1":du,"company:domain:workemail@1":Za,"company:funding:leadmagic@1":sc,"company:funding:leadmagic@2":fo,"people:workemail:waterfall@1":Em,"person:workemail:waterfall@1":eb,"people:email:iswork@1":bu,"email:iswork@1":Fm,"people:name:split@1":Yd,"person:name:split@1":gv,"people:validate:email:zerobounce@1":$p,"people:email:validate:zerobounce@2":zu,"email:validate:zerobounce@1":uh,"people:mobilenumber:workemail:waterfall@1":zd,"person:name:join@1":ov,"company:overview@1":kl,"company:overview@2":Gl,"company:overview@3":ws,"json:extract:multi@1":dg,"company:lookalikes:companyenrich@1":Rc,"company:lookalikes:companyenrich@2":Mo,"company:match:logodev@1":al,"company:match:logodev@2":$o,"person:posts:crustdata@1":Rv,"people:profile:workemail:crustdata@1":jp,"person:profile:workemail:crustdata@1":ay,"people:identity:email:waterfall@1":od,"person:identity:email:waterfall@1":c_,"person:identity:amplemarket@1":Kg,"email:send:resend@1":eh,"contact:create:resend@1":qs,"email:send:gmail@1":qm,"email:write@1":bh,"fields:merge@1":Xh,"field:slugify@1":Rh,"field:domainify@1":kh,"http:request@1":ag,"template:fill@1":Fb,"message:send:slack@1":yg,"message:write@1":Dg,"people:personalemail:profile:waterfall@1":cf,"person:personalemail:profileurl:waterfall@1":Ov,"website:scrape:firecrawl@1":ux,"website:scrapelist:firecrawl@1":yx,"website:extract:firecrawl@1":Wb,"website:maplinks:firecrawl@1":$b,"sheet:row:append@1":yb,"sheet:row:expandappend@1":Ob,"people:match:role:waterfall@1":_d,"person:match:role:waterfall@1":O_,"company:match:crustdata@1":qc,"company:match:crustdata@2":Vo,"person:match:amplemarket@1":__,"company:identity@2":kc,"company:identity@3":Co,"people:phone:profile:waterfall@1":yf,"person:mobile:profileurl:waterfall@1":z_,"people:phone:workemail:waterfall@1":Af,"person:mobile:workemail:waterfall@1":X_,"people:profile:waterfall@1":xp,"person:profile:waterfall@1":Yv,"people:profileurl:email:waterfall@1":Up,"person:profileurl:email:waterfall@1":_y,"person:profileurl:name@1":Oy,"people:email:validate:zerobounce@1":ku,"person:email:validate:millionverifier@1":Lg,"people:workemail:profileurl:waterfall@1":fm,"person:workemail:profileurl:waterfall@1":By,"company:identity@1":vc,"people:professionalprofile:waterfall@1":Vf,"people:professionalprofileurl:name@1":up,"people:professionalprofileurl:email:waterfall@1":$f,"people:mobilenumber:professionalprofile:waterfall@1":Od},LC={"prompt:run@1":cb,"company:newssummary:website@1":hl,"company:newssummary:domain@1":ls,"company:techstack:builtwith@1":ru,"company:techstack:builtwith@2":Is,"company:websiteurl:email@1":fu,"company:domain:workemail@1":Qa,"company:funding:leadmagic@1":cc,"company:funding:leadmagic@2":po,"people:workemail:waterfall@1":Dm,"person:workemail:waterfall@1":tb,"people:email:iswork@1":xu,"email:iswork@1":Im,"people:name:split@1":Xd,"person:name:split@1":_v,"people:validate:email:zerobounce@1":em,"people:email:validate:zerobounce@2":Bu,"email:validate:zerobounce@1":dh,"people:mobilenumber:workemail:waterfall@1":Bd,"person:name:join@1":sv,"company:overview@1":Al,"company:overview@2":Kl,"company:overview@3":Ts,"json:extract:multi@1":fg,"email:write@1":xh,"fields:merge@1":Zh,"field:slugify@1":zh,"field:domainify@1":Ah,"http:request@1":og,"email:send:resend@1":th,"contact:create:resend@1":Js,"company:lookalikes:companyenrich@1":zc,"company:lookalikes:companyenrich@2":No,"company:match:logodev@1":ol,"company:match:logodev@2":es,"person:posts:crustdata@1":zv,"people:profile:workemail:crustdata@1":Mp,"person:profile:workemail:crustdata@1":oy,"people:identity:email:waterfall@1":sd,"person:identity:email:waterfall@1":l_,"company:match:crustdata@1":Jc,"company:match:crustdata@2":Ho,"person:identity:amplemarket@1":qg,"message:send:slack@1":bg,"email:send:gmail@1":Jm,"message:write@1":Og,"template:fill@1":Ib,"website:scrape:firecrawl@1":dx,"website:scrapelist:firecrawl@1":bx,"website:extract:firecrawl@1":Gb,"website:maplinks:firecrawl@1":ex,"sheet:row:append@1":bb,"sheet:row:expandappend@1":kb,"people:match:role:waterfall@1":vd,"person:match:role:waterfall@1":k_,"company:identity@2":Ac,"company:identity@3":wo,"people:phone:profile:waterfall@1":bf,"person:mobile:profileurl:waterfall@1":B_,"people:personalemail:profile:waterfall@1":lf,"person:personalemail:profileurl:waterfall@1":kv,"people:profile:waterfall@1":Sp,"person:profile:waterfall@1":Xv,"people:profileurl:email:waterfall@1":Wp,"person:profileurl:email:waterfall@1":vy,"person:profileurl:name@1":ky,"people:email:validate:zerobounce@1":Au,"person:email:validate:millionverifier@1":Rg,"people:phone:workemail:waterfall@1":jf,"person:mobile:workemail:waterfall@1":Z_,"people:workemail:profileurl:waterfall@1":pm,"person:workemail:profileurl:waterfall@1":Vy,"person:match:amplemarket@1":v_,"company:identity@1":yc,"people:professionalprofile:waterfall@1":Hf,"people:professionalprofileurl:name@1":dp,"people:professionalprofileurl:email:waterfall@1":ep,"people:mobilenumber:professionalprofile:waterfall@1":kd},RC={"prompt:run@1":lb,"company:newssummary:website@1":gl,"company:newssummary:domain@1":us,"company:techstack:builtwith@1":iu,"company:techstack:builtwith@2":Ls,"company:websiteurl:email@1":pu,"company:domain:workemail@1":$a,"company:funding:leadmagic@1":lc,"company:funding:leadmagic@2":mo,"people:workemail:waterfall@1":Om,"person:workemail:waterfall@1":nb,"people:email:iswork@1":Su,"email:iswork@1":Lm,"people:name:split@1":Zd,"person:name:split@1":vv,"people:validate:email:zerobounce@1":tm,"people:mobilenumber:workemail:waterfall@1":Vd,"person:name:join@1":cv,"company:overview@1":jl,"company:overview@2":ql,"company:overview@3":Es,"json:extract:multi@1":pg,"email:send:resend@1":nh,"contact:create:resend@1":Ys,"email:send:gmail@1":Ym,"message:send:slack@1":xg,"message:write@1":kg,"email:write@1":Sh,"template:fill@1":Lb,"fields:merge@1":Qh,"field:slugify@1":Bh,"field:domainify@1":jh,"http:request@1":sg,"sheet:row:append@1":xb,"sheet:row:expandappend@1":Ab,"company:lookalikes:companyenrich@1":Bc,"company:lookalikes:companyenrich@2":Po,"people:match:role:waterfall@1":yd,"person:match:role:waterfall@1":A_,"company:match:logodev@1":sl,"company:match:logodev@2":ts,"person:posts:crustdata@1":Bv,"people:profile:workemail:crustdata@1":Np,"person:profile:workemail:crustdata@1":sy,"people:workemail:profileurl:waterfall@1":mm,"person:workemail:profileurl:waterfall@1":Hy,"people:identity:email:waterfall@1":cd,"person:identity:email:waterfall@1":u_,"company:match:crustdata@1":Yc,"company:match:crustdata@2":Uo,"person:identity:amplemarket@1":Jg,"email:validate:zerobounce@1":fh,"person:email:validate:millionverifier@1":zg,"people:personalemail:profile:waterfall@1":uf,"person:personalemail:profileurl:waterfall@1":Av,"people:email:validate:zerobounce@1":ju,"people:email:validate:zerobounce@2":Vu,"people:phone:workemail:waterfall@1":Mf,"person:mobile:workemail:waterfall@1":Q_,"website:scrape:firecrawl@1":fx,"website:scrapelist:firecrawl@1":xx,"website:extract:firecrawl@1":Kb,"website:maplinks:firecrawl@1":tx,"person:match:amplemarket@1":y_,"company:identity@2":jc,"company:identity@3":To,"people:phone:profile:waterfall@1":xf,"person:mobile:profileurl:waterfall@1":V_,"people:profile:waterfall@1":Cp,"person:profile:waterfall@1":Zv,"people:profileurl:email:waterfall@1":Gp,"person:profileurl:email:waterfall@1":yy,"person:profileurl:name@1":Ay,"company:identity@1":bc,"people:professionalprofile:waterfall@1":Uf,"people:professionalprofileurl:name@1":fp,"people:professionalprofileurl:email:waterfall@1":tp,"people:mobilenumber:professionalprofile:waterfall@1":Ad};function zC(e){return e.defaultPayload?.config?.output_fields?Object.keys(e.defaultPayload?.config?.output_fields||{}):[]}function BC(e){return IC[e]}function VC(e){return RC[e].defaultPayload}function HC(e){return LC[e]}const UC=r.discriminatedUnion(`pipe_id`,Object.values(LC)).openapi(`PipePayload`),WC=r.preprocess(e=>{if(!e||typeof e!=`object`||!(`pipe_id`in e))return e;try{let t=VC(vn.parse(e.pipe_id));return t?{...e,config:Ca(e?.config||{},t.config)}:e}catch{return e}},UC);function GC(e){return RC[e]}function KC(e,t){let n=GC(e);if(t in n.billableOperations)return n.billableOperations[t];throw Error(`Unable to find billable operation definition for pipeId '${e}' and operation '${t}'`)}function qC(e){let t=e.split(`@`)[1];if(!t)throw Error(`No pipe version found`);return Number(t)}function JC(){let e={};for(let t of Object.values(RC)){let{basePipe:n}=t;e[n]??=[],e[n].push(t)}return Object.entries(e).forEach(([t,n])=>{e[t]=n.sort((e,t)=>{let n=qC(e.pipeId);return qC(t.pipeId)-n})}),e}const YC=e=>{let t=GC(e),n=new Set(t.deprecatedProviders);return Array.from(new Set([...t.managedProviders,...t.allowedUserConnectionProviders])).filter(e=>!n.has(e))},XC=JC();function ZC(e,t){let n=new Map;for(let[t,r]of Object.entries(e))for(let e of Object.keys(r.billableOperations)){let r=n.get(e)??[];r.push(`pipe ${t}`),n.set(e,r)}for(let[e,r]of Object.entries(t)){let t=r.billableOperation,i=n.get(t)??[];i.push(`search ${e}`),n.set(t,i)}let r=[...n.entries()].filter(([,e])=>e.length>1);if(r.length>0){let e=r.map(([e,t])=>` "${e}" used by ${t.join(`, `)}`).join(`
73
+ }`,inputType:`text`,maxLength:1e6,expectedTagType:`string`,expectedTagFormat:`text`,multiline:!0}),headers:Qi({sectionKey:`general`,groupPath:`config.general`,path:`config.headers`,label:`Headers`,info:"Type `@` to insert a field reference or `$` to insert a secret reference in either column (e.g. `Bearer $token`).",keyLabel:`Header`,valueLabel:`Value`,keyPlaceholder:`Authorization`,valuePlaceholder:`Bearer {{ secret … }}`,maxItems:50}),expected_response_schema:ua({sectionKey:`general`,groupPath:`config.advanced`,path:`config.expected_response_schema`,label:`Expected response shape`,description:`Optional JSON Schema. Successful responses that don't satisfy it are marked failed. Extra properties are always tolerated (whitelist).`,required:!1,allowEmpty:!0}),output_fields:R(r.object({[eg.name]:k({fieldName:eg.name}),[tg.name]:k({fieldName:tg.name}),[ng.name]:k({fieldName:ng.name})}))})}),ig={"http-request-v1-pipe0":{provider:`pipe0`,allowManagedConnection:!0,credits:{default:.001},mode:`always`}},ag=class extends U{pipeId=$h;payload;payloadSchema=rg;billableOperations=ig;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[`http-request-v1-pipe0`]}getTemplatedFields(){let e=[this.payload.config.url,this.payload.config.body];for(let t of this.payload.config.query_params??[])e.push(t.key,t.value);for(let t of this.payload.config.headers??[])e.push(t.key,t.value);return e}getInputRequirement(){return Hm(this.getTemplatedFields(),{expectedType:`string`,expectedFormat:`text`})}getSecretRequirements(){return Y(this.getTemplatedFields())}getConstantRequirements(){return X(this.getTemplatedFields())}getRawOutputFields(){return{[eg.name]:this.catalogOutput(eg),[tg.name]:this.catalogOutput(tg),[ng.name]:this.catalogOutput(ng)}}getConnectionsRequirements(){return[{provider:`pipe0`,rateLimitRatio:1,rateLimitOperation:`pipe0_logic`,allowManagedConnection:!0}]}},og=rg,sg={pipeId:$h,basePipe:W($h),label:`HTTP request`,executionMode:`single`,categories:[`tools`],lifecycle:null,description:`Make a generic GET/POST/PUT/PATCH/DELETE HTTP request and capture the JSON response. Optionally validate the response against a JSON schema.`,tags:[B.LOGIC,B.JSON,B.NEW],docPath:G($h),billableOperations:ig,defaultInputRequirement:null,inputFieldMode:`config`,outputFieldMode:`static`,allowedUserConnectionProviders:[],managedProviders:[`pipe0`],deprecatedProviders:[],defaultPayload:{pipe_id:$h,run_if:null,connector:null,config:{method:`GET`,url:``,query_params:[],body:``,headers:[],expected_response_schema:{},output_fields:{http_response_status:{alias:``,enabled:!0},http_response_body:{alias:``,enabled:!0},http_response_headers:{alias:``,enabled:!1}}}}},cg=`json:extract:multi@1`,lg=r.object({pipe_id:r.literal(cg),run_if:S(),connector:T(),config:r.object({json_extraction:hi()})}),ug={"json-extract-multi-v1-pipe0":{provider:`pipe0`,allowManagedConnection:!0,credits:{default:0},mode:`always`}},dg=class extends U{pipeId=cg;payload;payloadSchema=lg;billableOperations=ug;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[`json-extract-multi-v1-pipe0`]}getInputRequirement(){return V({description:``,name:this.payload.config.json_extraction.field_name,format:null,label:``,type:`json`,resolvedName:this.payload.config.json_extraction.field_name})}getRawOutputFields(){let e={};for(let t of this.payload.config.json_extraction.extractions)e[t.output_field.name||t.output_field.name]={description:`Extracted value from JSON input field ${this.payload.config.json_extraction.field_name}.`,enabled:!0,format:t.output_field.format||null,label:t.output_field.label||`Extract JSON`,name:t.output_field.name,resolvedName:t.output_field.name,jsonMeta:null,type:t.output_field.type,isCatalogFIeld:!1,isPrimaryOutput:!1};return e}getConnectionsRequirements(){return[]}},fg=lg,pg={pipeId:cg,basePipe:W(cg),inputFieldMode:`config`,outputFieldMode:`config`,label:`JSON extract`,executionMode:`single`,categories:[`tools`],lifecycle:null,description:`Extract nested JSON properties into new output fields.`,docPath:G(cg),tags:[B.JSON],managedProviders:[`pipe0`],deprecatedProviders:[],allowedUserConnectionProviders:[],billableOperations:ug,defaultInputRequirement:null,defaultPayload:{pipe_id:cg,run_if:null,connector:null,config:{json_extraction:{field_name:``,extractions:[]}}}},mg=`message:send:slack@1`,hg=_(`slack_message_success`),gg=[{label:`#demo-general`,value:`C0SANDBOX001`},{label:`#demo-alerts`,value:`C0SANDBOX002`}],_g=r.object({pipe_id:r.literal(mg),connector:Gi(),run_if:S(),config:r.object({channel_id:C({sectionKey:`general`,groupPath:`config.general`,path:`config.channel_id`,label:`Channel ID`,info:"Your connection must be authorized to post to this channel. Type `@` to insert a field reference or `$` to insert a secret reference.",placeholder:`C0123456789`,inputType:`text`,minLength:3,expectedTagType:`string`,expectedTagFormat:`text`,optionsDef:{requires:{connection:`slack`},options:async({query:e,secret:t,environment:n})=>{if(n===`sandbox`)return gg;if(!t)throw new Rs.MissingSecretError({providerName:`slack`});let r=await fetch(`https://slack.com/api/conversations.list?limit=200&exclude_archived=true&types=public_channel,private_channel`,{headers:{Authorization:`Bearer ${t}`}});if(!r.ok){let e=await r.text();throw new Rs.HttpError({msg:e})}let i=await r.json();if(!i.ok)throw new Rs.HttpError({msg:i.error??`slack_error`});let a=(i.channels??[]).map(e=>({label:`#${e.name}`,value:e.id}));return e?a.filter(t=>t.label.toLowerCase().includes(e.toLowerCase())):a},widgets:{provider_logo:{provider:`slack`}}}}),message:C({sectionKey:`general`,groupPath:`config.general`,path:`config.message`,label:`Message`,info:"The message body. Type `@` to insert a field reference or `$` to insert a secret reference.",placeholder:`Hi {{ name }}, …`,inputType:`text`,minLength:1,maxLength:4e4,expectedTagType:`string`,expectedTagFormat:`markdown`,multiline:!0}),output_fields:R(r.object({[hg.name]:k({fieldName:hg.name})}))})}),vg={"message-send-slack-v1-slack":{allowManagedConnection:!1,provider:`slack`,credits:null,mode:null}},yg=class extends U{pipeId=mg;payload;payloadSchema=_g;billableOperations=vg;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`slack`]}estimateBillableOperations(){return[`message-send-slack-v1-slack`]}getTemplatedFields(){return[this.payload.config.channel_id,this.payload.config.message]}getInputRequirement(){return Hm(this.getTemplatedFields())}getSecretRequirements(){return Y(this.getTemplatedFields())}getConstantRequirements(){return X(this.getTemplatedFields())}getRawOutputFields(){return{[hg.name]:this.catalogOutput(hg)}}getConnectionsRequirements(){return[{provider:`slack`,rateLimitRatio:1,rateLimitOperation:`slack_post_message`,allowManagedConnection:!1}]}},bg=_g,xg={pipeId:mg,basePipe:W(mg),label:`Send message into channel`,executionMode:`single`,categories:[`actions`],lifecycle:null,description:`Send a Slack message to a channel.`,detailed_description:"Send a Slack message. The channel ID and message body are templated config fields β€” reference upstream fields with `{{ field_name }}` and stored secrets with `{{ SECRETS.KEY }}`. Requires a Slack vault connection (call list_connections to find one).",tags:[B.CHAT],docPath:G(mg),billableOperations:vg,inputFieldMode:`config`,outputFieldMode:`static`,allowedUserConnectionProviders:[`slack`],managedProviders:[],deprecatedProviders:[],defaultInputRequirement:null,defaultPayload:{pipe_id:mg,connector:{strategy:`first`,connections:[]},run_if:null,config:{channel_id:``,message:``,output_fields:{slack_message_success:{alias:``,enabled:!0}}}}},Sg=`message:write@1`,Cg=_(`message`),wg=`message-write-v1`,Tg=ti(wg),Eg=r.object({pipe_id:r.literal(Sg),connector:w(),run_if:S(),config:r.object({template:Ui({sectionKey:`general`,label:`Template`,path:`config.template`,placeholder:Z(`prompt`),groupPath:`config.prompt`,required:!0}),model:oa({sectionKey:`general`,label:`Model`,path:`config.model`,groupPath:`config.prompt`,billableOperations:Tg}),output_fields:R(r.object({[Cg.name]:k({fieldName:Cg.name})}))})}),Dg=class extends U{pipeId=Sg;payload;payloadSchema=Eg;billableOperations=Tg;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return ri(this.payload.config.model)}estimateBillableOperations(){return[ni(this.payload.config.model,wg)]}getInputRequirement(){return Hm([this.payload.config.template])}getSecretRequirements(){return Y([this.payload.config.template])}getConstantRequirements(){return X([this.payload.config.template])}getRawOutputFields(){return{[Cg.name]:this.catalogOutput(Cg)}}getConnectionsRequirements(){return ii(this.payload.config.model)}},Og=Eg,kg={pipeId:Sg,inputFieldMode:`config`,outputFieldMode:`static`,basePipe:W(Sg),label:`Message writer`,executionMode:`single`,categories:[`tools`],lifecycle:null,description:`An AI agent specialized in composing messages for modern workplace communication platforms (Slack, Teams, Discord, etc.)`,detailed_description:`AI message composer for Slack/Teams/Discord. Outputs: message. Pair with message:send:slack@1 to send.`,tags:[B.AI],docPath:G(Sg),defaultInputRequirement:null,billableOperations:Tg,allowedUserConnectionProviders:ai(),managedProviders:ai(),deprecatedProviders:[],defaultPayload:{pipe_id:Sg,connector:null,run_if:null,config:{model:`openai-gpt-latest`,template:``,output_fields:{message:{alias:``,enabled:!0}}}}},Ag=`person:email:validate:millionverifier@1`,jg=_(`email`),Mg=_(`email_validation_status`),Ng=_(`million_validation_match`),Pg=r.object({pipe_id:r.literal(Ag),connector:w(),run_if:S(),config:r.object({input_fields:z(r.object({[jg.name]:E({fieldName:jg.name})})),output_fields:R(r.object({[Mg.name]:k({fieldName:Mg.name}),[Ng.name]:k({fieldName:Ng.name})}))}).optional()}),Fg=e=>V(K(jg,e)),Ig={"person-email-validate-millionverifier-v1-millionverifier":{provider:`millionverifier`,allowManagedConnection:!0,credits:{default:.1,level1:{credits:.05,weight:1}},mode:`always`}},Lg=class extends U{pipeId=Ag;payload;payloadSchema=Pg;billableOperations=Ig;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`millionverifier`]}estimateBillableOperations(){return[`person-email-validate-millionverifier-v1-millionverifier`]}getInputRequirement(){return Fg(this.payload.config)}getRawOutputFields(){return{[Mg.name]:this.catalogOutput(Mg),[Ng.name]:this.catalogOutput(Ng)}}getConnectionsRequirements(){return[{provider:`millionverifier`,rateLimitRatio:1,rateLimitOperation:`millionverifier_generic`,allowManagedConnection:!0}]}},Rg=Pg,zg={pipeId:Ag,basePipe:W(Ag),label:`Validate email`,executionMode:`single`,categories:[`people_data`],lifecycle:null,description:`Verify email addresses to ensure is deliverability.`,tags:[B.EMAIL],docPath:G(Ag),billableOperations:Ig,inputFieldMode:`static`,outputFieldMode:`static`,allowedUserConnectionProviders:[`millionverifier`],managedProviders:[`millionverifier`],deprecatedProviders:[],defaultInputRequirement:Fg(null),defaultPayload:{pipe_id:Ag,connector:null,run_if:null,config:{input_fields:{email:{alias:``}},output_fields:{email_validation_status:{alias:``,enabled:!0},million_validation_match:{alias:``,enabled:!0}}}}},Bg=_(`email`),Vg=_(`amplemarket_person_match`),Hg=`person:identity:amplemarket@1`,Ug=r.object({pipe_id:r.literal(Hg),run_if:S(),connector:w(),config:r.object({input_fields:z(r.object({[Bg.name]:E({fieldName:Bg.name})})),output_fields:R(r.object({[Vg.name]:k({fieldName:Vg.name})}))}).optional()}),Wg=e=>V(K(Bg,e)),Gg={"person-identity-amplemarket-v1-amplemarket":{allowManagedConnection:!1,credits:null,mode:null,provider:`amplemarket`}},Kg=class extends U{pipeId=Hg;payload;payloadSchema=Ug;billableOperations=Gg;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`amplemarket`]}estimateBillableOperations(){return[]}getInputRequirement(){return Wg(this.payload.config)}getRawOutputFields(){return{[Vg.name]:this.catalogOutput(Vg)}}getConnectionsRequirements(){return[{provider:`amplemarket`,rateLimitRatio:1,rateLimitOperation:`amplemarket_generic`,allowManagedConnection:!1}]}},qg=Ug,Jg={pipeId:Hg,inputFieldMode:`static`,outputFieldMode:`static`,basePipe:W(Hg),label:`Person identity`,executionMode:`single`,categories:[`people_data`],lifecycle:null,description:`Find information on a person based on their email`,tags:[B.PEOPLE_PROFILES],docPath:G(Hg),billableOperations:Gg,allowedUserConnectionProviders:[`amplemarket`],managedProviders:[],deprecatedProviders:[],defaultInputRequirement:Wg(null),defaultPayload:{pipe_id:Hg,connector:null,run_if:null,config:{input_fields:{email:{alias:``}},output_fields:{amplemarket_person_match:{alias:``,enabled:!0}}}}},Yg=`person:identity:email:waterfall@1`,Xg=_(`email`),Zg=_(`company_domain`),Qg=_(`name`),$g=_(`job_title`),e_=_(`profile_url`),t_=_(`company_profile_url`),n_=_(`company_name`),r_=[`findymail`,`hunter`,`crustdata`],i_=[{provider:`findymail`},{provider:`hunter`},{provider:`crustdata`}],a_=r.object({pipe_id:r.literal(Yg),connector:w(),run_if:S(),config:r.object({providers:D({availableProviders:r_,defaultProviders:i_,sectionKey:`general`}),input_fields:z(r.object({[Xg.name]:E({fieldName:Xg.name})})),output_fields:R(r.object({[Qg.name]:k({fieldName:Qg.name}),[e_.name]:k({fieldName:e_.name}),[$g.name]:k({fieldName:$g.name}),[Zg.name]:k({fieldName:Zg.name}),[n_.name]:k({fieldName:n_.name}),[t_.name]:k({fieldName:t_.name})}))}).optional()}),o_=e=>V(K(Xg,e)),s_={"person-identity-email-waterfall-v1-hunter":{provider:`hunter`,allowManagedConnection:!0,credits:{default:2},mode:`onSuccess`},"person-identity-email-waterfall-v1-findymail":{provider:`findymail`,allowManagedConnection:!0,credits:{default:2},mode:`onSuccess`},"person-identity-email-waterfall-v1-crustdata":{provider:`crustdata`,allowManagedConnection:!0,credits:{default:5},mode:`onSuccess`}},c_=class extends U{pipeId=Yg;payload;payloadSchema=a_;billableOperations=s_;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return this.payload.config?.providers.map(e=>e.provider)||[]}estimateBillableOperations(){return this.getProviderNames().map(e=>J(e,this.billableOperations).billableOperation)}getInputRequirement(){return o_(this.payload.config)}getRawOutputFields(){return{[Qg.name]:this.catalogOutput(Qg,{isPrimaryOutput:!0}),[e_.name]:this.catalogOutput(e_,{isPrimaryOutput:!0}),[$g.name]:this.catalogOutput($g,{isPrimaryOutput:!0}),[n_.name]:this.catalogOutput(n_,{isPrimaryOutput:!0}),[t_.name]:this.catalogOutput(t_,{isPrimaryOutput:!0}),[Zg.name]:this.catalogOutput(Zg,{isPrimaryOutput:!0})}}getConnectionsRequirements(){let e={hunter:`prospeo_email_lookup`,findymail:`findymail_email_b2b_lookup`,crustdata:`crustdata_realtime_person_enrich`};return(this.payload.config?.providers||[]).map((t,n)=>({provider:t.provider,rateLimitRatio:q(n),rateLimitOperation:e[t.provider],allowManagedConnection:!0}))}},l_=a_,u_={pipeId:Yg,basePipe:W(Yg),label:`Person identity from email`,executionMode:`waterfall`,categories:[`people_data`],lifecycle:null,description:`Find identity of a person from their email address.`,tags:[B.EMAIL,B.PEOPLE_PROFILES],docPath:G(Yg),managedProviders:r_,deprecatedProviders:[],allowedUserConnectionProviders:r_,inputFieldMode:`static`,outputFieldMode:`static`,billableOperations:s_,defaultInputRequirement:o_(null),defaultPayload:{pipe_id:Yg,connector:null,run_if:null,config:{providers:i_,input_fields:{email:{alias:``}},output_fields:{name:{alias:``,enabled:!0},profile_url:{alias:``,enabled:!0},job_title:{alias:``,enabled:!0},company_name:{alias:``,enabled:!0},company_profile_url:{alias:``,enabled:!0},company_domain:{alias:``,enabled:!0}}}}},d_=_(`profile_url`),f_=_(`amplemarket_person_match`),p_=`person:match:amplemarket@1`,m_=r.object({pipe_id:r.literal(p_),run_if:S(),connector:w(),config:r.object({input_fields:z(r.object({[d_.name]:E({fieldName:d_.name})})),output_fields:R(r.object({[f_.name]:k({fieldName:f_.name})}))}).optional()}),h_=e=>V(K(d_,e)),g_={"person-match-amplemarket-v1-amplemarket":{allowManagedConnection:!1,credits:null,mode:null,provider:`amplemarket`}},__=class extends U{pipeId=p_;payload;payloadSchema=m_;billableOperations=g_;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`amplemarket`]}estimateBillableOperations(){return[]}getInputRequirement(){return h_(this.payload.config)}getRawOutputFields(){return{[f_.name]:this.catalogOutput(f_)}}getConnectionsRequirements(){return[{provider:`amplemarket`,rateLimitRatio:1,rateLimitOperation:`amplemarket_generic`,allowManagedConnection:!1}]}},v_=m_,y_={pipeId:p_,inputFieldMode:`static`,outputFieldMode:`static`,basePipe:W(p_),label:`Person match`,executionMode:`single`,categories:[`people_data`],lifecycle:null,description:`Find information on a person based on their LinkedIn profile URL.`,tags:[B.PEOPLE_PROFILES],docPath:G(p_),billableOperations:g_,allowedUserConnectionProviders:[`amplemarket`],managedProviders:[],deprecatedProviders:[],defaultInputRequirement:h_(null),defaultPayload:{pipe_id:p_,connector:null,run_if:null,config:{input_fields:{profile_url:{alias:``}},output_fields:{amplemarket_person_match:{alias:``,enabled:!0}}}}},b_=`person:match:role:waterfall@1`,x_=_(`company_domain`),S_=_(`role_finder_match`),C_=[`leadmagic`],w_=[{provider:`leadmagic`}],T_=r.object({pipe_id:r.literal(b_),run_if:S(),connector:w(),config:r.object({providers:D({sectionKey:`general`,defaultProviders:w_,availableProviders:C_}),roles:Zi({sectionKey:`general`,groupPath:`config.general`,label:`Roles`,path:`config.roles`,info:`Company roles to include`,maxItems:3,minItems:1,suggestionsDef:g(`titles`),expectedTagType:`string`}),input_fields:z(r.object({[x_.name]:E({fieldName:x_.name})})),output_fields:R(r.object({[S_.name]:k({fieldName:S_.name})}))})}),E_=e=>H(K(x_,e)),D_={"person-match-role-waterfall-v1-leadmagic":{provider:`leadmagic`,allowManagedConnection:!0,credits:{default:1},mode:`onSuccess`}},O_=class extends U{pipeId=b_;payload;payloadSchema=T_;billableOperations=D_;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return this.payload.config?.providers.map(e=>e.provider)||[]}estimateBillableOperations(){return this.getProviderNames().map(e=>J(e,this.billableOperations).billableOperation)}getInputRequirement(){return E_(this.payload.config)}getSecretRequirements(){return Y(this.payload.config?.roles??[])}getConstantRequirements(){return X(this.payload.config?.roles??[])}getRawOutputFields(){return{[S_.name]:this.catalogOutput(S_,{isPrimaryOutput:!0})}}getConnectionsRequirements(){let e={leadmagic:`leadmagic_role_finder`};return(this.payload.config?.providers||[]).map((t,n)=>({provider:t.provider,rateLimitRatio:q(n),rateLimitOperation:e[t.provider],allowManagedConnection:!0}))}},k_=T_,A_={pipeId:b_,basePipe:W(b_),managedProviders:C_,deprecatedProviders:[],allowedUserConnectionProviders:C_,label:`Role finder`,executionMode:`waterfall`,categories:[`people_data`],lifecycle:null,description:`Find role matches for a given companies like "CEO" or "CFO".`,tags:[B.PEOPLE_PROFILES],docPath:G(b_),billableOperations:D_,inputFieldMode:`static`,outputFieldMode:`static`,defaultInputRequirement:E_(null),defaultPayload:{pipe_id:b_,run_if:null,connector:null,config:{roles:[],providers:w_,input_fields:{company_domain:{alias:``}},output_fields:{role_finder_match:{alias:``,enabled:!0}}}}},j_=`person:mobile:profileurl:waterfall@1`,M_=_(`profile_url`),N_=_(`mobile`),P_=[`leadmagic`,`prospeo`,`amplemarket`,`findymail`],F_=[{provider:`leadmagic`},{provider:`prospeo`},{provider:`amplemarket`},{provider:`findymail`}],I_=r.object({pipe_id:r.literal(j_),run_if:S(),connector:w(),config:r.object({providers:D({sectionKey:`general`,defaultProviders:F_,availableProviders:P_}),input_fields:z(r.object({[M_.name]:E({fieldName:M_.name})})),output_fields:R(r.object({[N_.name]:k({fieldName:N_.name})}))}).optional()}),L_=e=>V(K(M_,e)),R_={"person-mobile-profileurl-waterfall-v1-leadmagic":{provider:`leadmagic`,allowManagedConnection:!0,credits:{default:3,level1:{credits:2,weight:1}},mode:`onSuccess`},"person-mobile-profileurl-waterfall-v1-prospeo":{provider:`prospeo`,allowManagedConnection:!0,credits:{default:5,level1:{credits:3,weight:1}},mode:`onSuccess`},"person-mobile-profileurl-waterfall-v1-findymail":{provider:`findymail`,allowManagedConnection:!0,credits:{default:6,level1:{credits:4,weight:1}},mode:`onSuccess`},"person-mobile-profileurl-waterfall-v1-amplemarket":{provider:`amplemarket`,allowManagedConnection:!0,credits:{default:4,level1:{credits:3,weight:1}},mode:`onSuccess`}},z_=class extends U{pipeId=j_;payload;payloadSchema=I_;billableOperations=R_;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return this.payload.config?.providers.map(e=>e.provider)||[]}estimateBillableOperations(){return this.getProviderNames().map(e=>J(e,this.billableOperations).billableOperation)}getInputRequirement(){return L_(this.payload.config)}getRawOutputFields(){return{[N_.name]:this.catalogOutput(N_,{isPrimaryOutput:!0})}}getConnectionsRequirements(){let e={leadmagic:`leadmagic_email_lookup`,prospeo:`prospeo_phone_number_lookup`,findymail:`findymail_phone_lookup`,amplemarket:`amplemarket-person-reveal`};return(this.payload.config?.providers||[]).map((t,n)=>({provider:t.provider,rateLimitRatio:q(n),rateLimitOperation:e[t.provider],allowManagedConnection:!0}))}},B_=I_,V_={pipeId:j_,basePipe:W(j_),label:`Mobile number from LinkedIn profile`,executionMode:`waterfall`,categories:[`people_data`],lifecycle:null,description:`Find a mobile phone number for any prospect using multiple data providers in a waterfall motion.`,docPath:G(j_),tags:[B.PHONE,B.WATERFALL],billableOperations:R_,defaultInputRequirement:L_(null),inputFieldMode:`static`,outputFieldMode:`static`,managedProviders:P_,allowedUserConnectionProviders:P_,deprecatedProviders:[],defaultPayload:{pipe_id:j_,connector:null,run_if:null,config:{providers:F_,input_fields:{profile_url:{alias:``}},output_fields:{mobile:{alias:``,enabled:!0}}}}},H_=`person:mobile:workemail:waterfall@1`,U_=_(`work_email`),W_=_(`mobile`),G_=[`leadmagic`,`amplemarket`],K_=[{provider:`leadmagic`},{provider:`amplemarket`}],q_=r.object({pipe_id:r.literal(H_),run_if:S(),connector:w(),config:r.object({providers:D({sectionKey:`general`,availableProviders:G_,defaultProviders:K_}),input_fields:z(r.object({[U_.name]:E({fieldName:U_.name})})),output_fields:R(r.object({[W_.name]:k({fieldName:W_.name})}))}).optional()}),J_=e=>V(K(U_,e)),Y_={"person-mobile-workemail-waterfall-v1-leadmagic":{provider:`leadmagic`,allowManagedConnection:!0,credits:{default:3,level1:{credits:2,weight:1}},mode:`onSuccess`},"person-mobile-workemail-waterfall-v1-amplemarket":{provider:`amplemarket`,allowManagedConnection:!0,credits:{default:5,level1:{credits:4,weight:1}},mode:`onSuccess`}},X_=class extends U{pipeId=H_;payload;payloadSchema=q_;billableOperations=Y_;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return this.payload.config?.providers.map(e=>e.provider)||[]}estimateBillableOperations(){return this.getProviderNames().map(e=>J(e,this.billableOperations).billableOperation)}getInputRequirement(){return J_(this.payload.config)}getRawOutputFields(){return{[W_.name]:this.catalogOutput(W_,{isPrimaryOutput:!0})}}getConnectionsRequirements(){let e={leadmagic:`leadmagic_email_lookup`,amplemarket:`amplemarket-person-reveal`};return(this.payload.config?.providers||[]).map((t,n)=>({provider:t.provider,rateLimitRatio:q(n),rateLimitOperation:e[t.provider],allowManagedConnection:!0}))}},Z_=q_,Q_={pipeId:H_,basePipe:W(H_),label:`Mobile number from email`,executionMode:`waterfall`,categories:[`people_data`],lifecycle:null,description:`Find a mobile phone number for a prospect.`,tags:[B.PHONE,B.WATERFALL],docPath:G(H_),billableOperations:Y_,defaultInputRequirement:J_(null),inputFieldMode:`static`,outputFieldMode:`static`,allowedUserConnectionProviders:G_,managedProviders:G_,deprecatedProviders:[],defaultPayload:{pipe_id:H_,connector:null,run_if:null,config:{providers:K_,input_fields:{work_email:{alias:``}},output_fields:{mobile:{alias:``,enabled:!0}}}}},$_=`person:name:join@1`,ev=_(`first_name`),tv=_(`last_name`),nv=_(`name`),rv=r.object({pipe_id:r.literal($_),run_if:S(),connector:T(),config:r.object({input_fields:z(r.object({[ev.name]:E({fieldName:ev.name}),[tv.name]:E({fieldName:tv.name})})),output_fields:R(r.object({[nv.name]:k({fieldName:nv.name})}))}).optional()}),iv=e=>Ea(K(ev,e),K(tv,e)),av={"person-name-join-v1-pipe0":{provider:`pipe0`,allowManagedConnection:!0,credits:{default:0},mode:`always`}},ov=class extends U{pipeId=$_;payload;payloadSchema=rv;billableOperations=av;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[`person-name-join-v1-pipe0`]}getInputRequirement(){return iv(this.payload.config)}getRawOutputFields(){return{[nv.name]:this.catalogOutput(nv)}}getConnectionsRequirements(){return[{provider:`pipe0`,rateLimitRatio:1,rateLimitOperation:`pipe0_logic`,allowManagedConnection:!0}]}},sv=rv,cv={pipeId:$_,basePipe:W($_),label:`Join name`,executionMode:`single`,categories:[`people_data`],lifecycle:null,description:`Combine the first and last names of a prospect into a full name field.`,tags:[B.NAMES],docPath:G($_),billableOperations:av,defaultInputRequirement:iv(null),inputFieldMode:`static`,outputFieldMode:`static`,allowedUserConnectionProviders:[],managedProviders:[`pipe0`],deprecatedProviders:[],defaultPayload:{pipe_id:$_,run_if:null,connector:null,config:{input_fields:{first_name:{alias:``},last_name:{alias:``}},output_fields:{name:{alias:``,enabled:!0}}}}},lv=`person:name:split@1`,uv=_(`name`),dv=_(`first_name`),fv=_(`last_name`),pv=r.object({pipe_id:r.literal(lv),connector:T(),run_if:S(),config:r.object({input_fields:z(r.object({[uv.name]:E({fieldName:uv.name})})),output_fields:R(r.object({[dv.name]:k({fieldName:dv.name}),[fv.name]:k({fieldName:fv.name})}))}).optional()}),mv=e=>V(K(uv,e)),hv={"person-name-split-v1-pipe0":{provider:`pipe0`,allowManagedConnection:!0,credits:{default:0},mode:`always`}},gv=class extends U{pipeId=lv;payload;payloadSchema=pv;billableOperations=hv;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[`person-name-split-v1-pipe0`]}getInputRequirement(){return mv(this.payload.config)}getRawOutputFields(){return{[dv.name]:this.catalogOutput(dv),[fv.name]:this.catalogOutput(fv)}}getConnectionsRequirements(){return[{provider:`pipe0`,rateLimitRatio:1,rateLimitOperation:`pipe0_logic`,allowManagedConnection:!0}]}},_v=pv,vv={pipeId:lv,basePipe:W(lv),label:`Split name`,executionMode:`single`,categories:[`people_data`],lifecycle:null,description:`Split a full name into first and last name.`,tags:[B.NAMES],docPath:G(lv),billableOperations:hv,inputFieldMode:`static`,outputFieldMode:`static`,defaultInputRequirement:mv(null),allowedUserConnectionProviders:[],managedProviders:[`pipe0`],deprecatedProviders:[],defaultPayload:{pipe_id:lv,run_if:null,connector:void 0,config:{input_fields:{name:{alias:``}},output_fields:{first_name:{alias:``,enabled:!0},last_name:{alias:``,enabled:!0}}}}},yv=`person:personalemail:profileurl:waterfall@1`,bv=_(`profile_url`),xv=_(`personal_email`),Sv=_(`alternate_personal_emails`),Cv=[`leadmagic`,`mixrank`],wv=[{provider:`leadmagic`},{provider:`mixrank`}],Tv=r.object({pipe_id:r.literal(yv),run_if:S(),connector:w(),config:r.object({providers:D({sectionKey:`general`,availableProviders:Cv,defaultProviders:wv}),input_fields:z(r.object({[bv.name]:E({fieldName:bv.name})})),output_fields:R(r.object({[xv.name]:k({fieldName:xv.name}),[Sv.name]:k({fieldName:Sv.name})}))}).optional()}),Ev=e=>V(K(bv,e)),Dv={"person-personalemail-profileurl-waterfall-v1-leadmagic":{provider:`leadmagic`,allowManagedConnection:!0,credits:{default:1},mode:`onSuccess`},"person-personalemail-profileurl-waterfall-v1-mixrank":{provider:`mixrank`,allowManagedConnection:!0,credits:{default:1},mode:`onSuccess`}},Ov=class extends U{pipeId=yv;payload;payloadSchema=Tv;billableOperations=Dv;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return this.payload.config?.providers.map(e=>e.provider)||[]}estimateBillableOperations(){return this.getProviderNames().map(e=>J(e,this.billableOperations).billableOperation)}getInputRequirement(){return Ev(this.payload.config)}getRawOutputFields(){return{[xv.name]:this.catalogOutput(xv,{isPrimaryOutput:!0}),[Sv.name]:this.catalogOutput(Sv)}}getConnectionsRequirements(){let e={leadmagic:`leadmagic_personal_email_finder`,mixrank:`mixrank-person-match`};return(this.payload.config?.providers||[]).map((t,n)=>({provider:t.provider,rateLimitRatio:q(n),rateLimitOperation:e[t.provider],allowManagedConnection:!0}))}},kv=Tv,Av={pipeId:yv,basePipe:W(yv),allowedUserConnectionProviders:Cv,managedProviders:Cv,deprecatedProviders:[],label:`Find personal email`,executionMode:`waterfall`,categories:[`people_data`],lifecycle:null,description:`Find the personal email address of a prospect by using a professional profile URL as input.`,tags:[B.EMAIL,B.PERSONAL_EMAIL],docPath:G(yv),billableOperations:Dv,defaultInputRequirement:Ev(null),inputFieldMode:`static`,outputFieldMode:`static`,defaultPayload:{pipe_id:yv,connector:null,run_if:null,config:{providers:wv,input_fields:{profile_url:{alias:``}},output_fields:{personal_email:{alias:``,enabled:!0},alternate_personal_emails:{alias:``,enabled:!1}}}}},jv=_(`profile_url`),Mv=_(`post_list_string`),Nv=_(`crustdata_post_list`),Pv=`person:posts:crustdata@1`,Fv=r.object({pipe_id:r.literal(Pv),run_if:S(),connector:w(),config:r.object({limit:ca({path:`config.limit`,groupPath:`config.general`,max:100,min:1,required:!0,sectionKey:`general`,info:``,label:`Limit`,legend:`Max. 100`}),input_fields:z(r.object({[jv.name]:E({fieldName:jv.name})})),output_fields:R(r.object({[Mv.name]:k({fieldName:Mv.name}),[Nv.name]:k({fieldName:Nv.name})}))}).optional()}),Iv=e=>V(K(jv,e)),Lv={"person-posts-crustdata-v1-crustdata":{allowManagedConnection:!0,credits:{default:2,level1:{credits:1,weight:1}},mode:`onSuccess`,note:`1.5 credits per post. Posts are fetched in increments of 5.`,provider:`crustdata`}},Rv=class extends U{pipeId=Pv;payload;payloadSchema=Fv;billableOperations=Lv;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`crustdata`]}estimateBillableOperations(){return[`person-posts-crustdata-v1-crustdata`]}getInputRequirement(){return Iv(this.payload.config)}getRawOutputFields(){return{[Mv.name]:this.catalogOutput(Mv),[Nv.name]:this.catalogOutput(Nv)}}getConnectionsRequirements(){return[{provider:`crustdata`,rateLimitRatio:1,rateLimitOperation:`crustdata_realtime_post_fetch`,allowManagedConnection:!0}]}},zv=Fv,Bv={pipeId:Pv,inputFieldMode:`static`,outputFieldMode:`static`,basePipe:W(Pv),label:`LinkedIn posts`,executionMode:`single`,categories:[`people_data`],lifecycle:null,description:`Find list of recent LinkedIn posts.`,tags:[B.LINKEDIN],docPath:G(Pv),billableOperations:Lv,allowedUserConnectionProviders:[`crustdata`],managedProviders:[`crustdata`],deprecatedProviders:[],defaultInputRequirement:Iv(null),defaultPayload:{pipe_id:Pv,connector:null,run_if:null,config:{limit:5,input_fields:{profile_url:{alias:``}},output_fields:{crustdata_post_list:{alias:``,enabled:!0},post_list_string:{alias:``,enabled:!0}}}}},Vv=`person:profile:waterfall@1`,Hv=_(`profile`),Uv=_(`profile_url`),Wv=[`prospeo`,`icypeas`,`amplemarket`],Gv=[{provider:`amplemarket`},{provider:`prospeo`},{provider:`icypeas`}],Kv=r.object({pipe_id:r.literal(Vv),run_if:S(),connector:w(),config:r.object({providers:D({sectionKey:`general`,availableProviders:Wv,defaultProviders:Gv}),input_fields:z(r.object({[Uv.name]:E({fieldName:Uv.name})})),output_fields:R(r.object({[Hv.name]:k({fieldName:Hv.name})}))}).optional()}),qv=e=>V(K(Uv,e)),Jv={"person-profile-waterfall-v1-icypeas":{provider:`icypeas`,credits:{default:1},mode:`onSuccess`,allowManagedConnection:!0},"person-profile-waterfall-v1-prospeo":{provider:`prospeo`,credits:{default:1},mode:`onSuccess`,allowManagedConnection:!0},"person-profile-waterfall-v1-amplemarket":{provider:`amplemarket`,credits:{default:1},mode:`onSuccess`,allowManagedConnection:!0}},Yv=class extends U{pipeId=Vv;payload;payloadSchema=Kv;billableOperations=Jv;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return this.payload.config?.providers.map(e=>e.provider)||[]}estimateBillableOperations(){return this.getProviderNames().map(e=>J(e,this.billableOperations).billableOperation)}getInputRequirement(){return qv(this.payload.config)}getRawOutputFields(){return{[Hv.name]:this.catalogOutput(Hv,{isPrimaryOutput:!0})}}getConnectionsRequirements(){let e={icypeas:`icypeas_scrape_profile`,prospeo:`prospeo_social_profile_lookup`,amplemarket:`amplemarket-person-reveal`};return(this.payload.config?.providers||[]).map((t,n)=>({provider:t.provider,rateLimitRatio:q(n),rateLimitOperation:e[t.provider],allowManagedConnection:!0}))}},Xv=Kv,Zv={pipeId:Vv,basePipe:W(Vv),label:`Full LinkedIn profile`,executionMode:`waterfall`,categories:[`people_data`],lifecycle:null,description:`Find a JSON representation of a LinkedIn profile.`,docPath:G(Vv),tags:[B.LINKEDIN,B.WATERFALL],managedProviders:Wv,deprecatedProviders:[],allowedUserConnectionProviders:Wv,inputFieldMode:`static`,outputFieldMode:`static`,billableOperations:Jv,defaultInputRequirement:qv(null),defaultPayload:{pipe_id:Vv,run_if:null,connector:null,config:{providers:Gv,input_fields:{profile_url:{alias:``}},output_fields:{profile:{alias:``,enabled:!0}}}}},Qv=_(`work_email`),$v=_(`crustdata_person_match`),ey=_(`crustdata_profile_match_score`),ty=`person:profile:workemail:crustdata@1`,ny=r.object({pipe_id:r.literal(ty),run_if:S(),connector:w(),config:r.object({input_fields:z(r.object({[Qv.name]:E({fieldName:Qv.name})})),output_fields:R(r.object({[$v.name]:k({fieldName:$v.name}),[ey.name]:k({fieldName:ey.name})}))}).optional()}),ry=e=>V(K(Qv,e)),iy={"person-profile-workemail-crustdata-v1-crustdata":{allowManagedConnection:!0,credits:{default:5},mode:`onSuccess`,provider:`crustdata`}},ay=class extends U{pipeId=ty;payload;payloadSchema=ny;billableOperations=iy;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`crustdata`]}estimateBillableOperations(){return[`person-profile-workemail-crustdata-v1-crustdata`]}getInputRequirement(){return ry(this.payload.config)}getRawOutputFields(){return{[$v.name]:this.catalogOutput($v),[ey.name]:this.catalogOutput(ey)}}getConnectionsRequirements(){return[{provider:`crustdata`,rateLimitRatio:1,rateLimitOperation:`crustdata_realtime_person_enrich`,allowManagedConnection:!0}]}},oy=ny,sy={pipeId:ty,inputFieldMode:`static`,outputFieldMode:`static`,basePipe:W(ty),label:`Profile from work email`,executionMode:`single`,categories:[`people_data`],lifecycle:null,description:`Find person profile by their work email address.`,tags:[B.EMAIL,B.PEOPLE_PROFILES],docPath:G(ty),billableOperations:iy,allowedUserConnectionProviders:[`crustdata`],managedProviders:[`crustdata`],deprecatedProviders:[],defaultInputRequirement:ry(null),defaultPayload:{pipe_id:ty,connector:null,run_if:null,config:{input_fields:{work_email:{alias:``}},output_fields:{crustdata_person_match:{alias:``,enabled:!0},crustdata_profile_match_score:{alias:``,enabled:!0}}}}},cy=`person:profileurl:email:waterfall@1`,ly=_(`email`),uy=_(`work_email`),dy=_(`profile_url`),fy=[`leadmagic`],py=[{provider:`leadmagic`}],my=r.object({pipe_id:r.literal(cy),run_if:S(),connector:w(),config:r.object({providers:D({sectionKey:`general`,defaultProviders:py,availableProviders:fy}),input_fields:z(r.object({[ly.name]:E({fieldName:ly.name}),[uy.name]:E({fieldName:uy.name})})),output_fields:R(r.object({[dy.name]:k({fieldName:dy.name})}))}).optional()}),hy=e=>H(K(ly,e),K(uy,e)),gy={"person-profileurl-email-waterfall-v1-leadmagic":{provider:`leadmagic`,allowManagedConnection:!0,credits:{default:3.5},mode:`onSuccess`}},_y=class extends U{pipeId=cy;payload;payloadSchema=my;billableOperations=gy;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return this.payload.config?.providers.map(e=>e.provider)||[]}estimateBillableOperations(){return this.getProviderNames().map(e=>J(e,this.billableOperations).billableOperation)}getInputRequirement(){return hy(this.payload.config)}getRawOutputFields(){return{[dy.name]:this.catalogOutput(dy,{isPrimaryOutput:!0})}}getConnectionsRequirements(){let e={leadmagic:`leadmagic_email_to_b2b_profile`};return(this.payload.config?.providers||[]).map((t,n)=>({provider:t.provider,rateLimitRatio:q(n),rateLimitOperation:e[t.provider],allowManagedConnection:!0}))}},vy=my,yy={pipeId:cy,basePipe:W(cy),managedProviders:fy,deprecatedProviders:[],allowedUserConnectionProviders:fy,label:`LinkedIn URL from email`,executionMode:`waterfall`,categories:[`people_data`],lifecycle:null,description:`Find the URL for a prospect's LinkedIn profile from their personal or professional email address.`,tags:[B.LINKEDIN],docPath:G(cy),billableOperations:gy,inputFieldMode:`static`,outputFieldMode:`static`,defaultInputRequirement:hy(null),defaultPayload:{pipe_id:cy,run_if:null,connector:null,config:{providers:py,input_fields:{email:{alias:``},work_email:{alias:``}},output_fields:{profile_url:{alias:``,enabled:!0}}}}},by=`person:profileurl:name@1`,xy=_(`name`),Sy=_(`company_name`),Cy=_(`location_hint`),wy=_(`profile_url`),Ty=r.object({pipe_id:r.literal(by),connector:T(),run_if:S(),config:r.object({input_fields:z(r.object({[xy.name]:E({fieldName:xy.name}),[Sy.name]:E({fieldName:Sy.name}),[Cy.name]:E({fieldName:Cy.name})})),output_fields:R(r.object({[wy.name]:k({fieldName:wy.name})}))}).optional()}),Ey=e=>Ea(V(K(xy,e)),V(K(Sy,e)),Da(K(Cy,e))),Dy={"person-profileurl-name-v1-pipe0":{provider:`pipe0`,allowManagedConnection:!0,credits:{default:.6},mode:`always`}},Oy=class extends U{pipeId=by;payload;payloadSchema=Ty;billableOperations=Dy;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[`person-profileurl-name-v1-pipe0`]}getInputRequirement(){return Ey(this.payload.config)}getRawOutputFields(){return{[wy.name]:this.catalogOutput(wy)}}getConnectionsRequirements(){return[{provider:`serper`,rateLimitRatio:1,rateLimitOperation:`serper_search`,allowManagedConnection:!0}]}},ky=Ty,Ay={pipeId:by,basePipe:W(by),label:`LinkedIn URL from name`,executionMode:`single`,categories:[`people_data`],lifecycle:null,allowedUserConnectionProviders:[],managedProviders:[`pipe0`],deprecatedProviders:[],description:`Find the LinkedIn profile URL by using the prospect's name as input.`,docPath:G(by),tags:[B.LINKEDIN],billableOperations:Dy,defaultInputRequirement:Ey(null),inputFieldMode:`static`,outputFieldMode:`static`,defaultPayload:{pipe_id:by,connector:void 0,run_if:null,config:{input_fields:{company_name:{alias:``},location_hint:{alias:``},name:{alias:``}},output_fields:{profile_url:{alias:``,enabled:!0}}}}},jy=`person:workemail:profileurl:waterfall@1`,My=_(`profile_url`),Ny=_(`work_email`),Py=_(`email_validation_status`),Fy=[`hunter`,`amplemarket`,`findymail`,`leadmagic`,`crustdata`],Iy=[{provider:`hunter`},{provider:`amplemarket`},{provider:`leadmagic`},{provider:`findymail`},{provider:`crustdata`}],Ly=r.object({pipe_id:r.literal(jy),connector:w(),run_if:S(),config:r.object({providers:D({availableProviders:Fy,defaultProviders:Iy,sectionKey:`general`}),allow_catch_all_emails:O({path:`config.allow_catch_all_emails`,defaultValue:!0,groupPath:`config.general`,sectionKey:`general`,info:``,label:`Allow catch-all emails`}),allow_risky_emails:O({path:`config.allow_risky_emails`,defaultValue:!0,groupPath:`config.general`,sectionKey:`general`,info:`Higher chance of bouncing or being marked as spam.`,label:`Allow risky emails`}),input_fields:z(r.object({[My.name]:E({fieldName:My.name})})),output_fields:R(r.object({[Ny.name]:k({fieldName:Ny.name}),[Py.name]:k({fieldName:Py.name})}))}).optional()}),Ry=e=>V(K(My,e)),zy={"person-workemail-profileurl-waterfall-v1-hunter":{provider:`hunter`,allowManagedConnection:!0,credits:{default:1},mode:`onSuccess`},"person-workemail-profileurl-waterfall-v1-leadmagic":{provider:`leadmagic`,allowManagedConnection:!0,credits:{default:2,level1:{credits:.7,weight:1}},mode:`onSuccess`},"person-workemail-profileurl-waterfall-v1-findymail":{provider:`findymail`,allowManagedConnection:!0,credits:{default:2,level1:{credits:1,weight:1}},mode:`onSuccess`},"person-workemail-profileurl-waterfall-v1-crustdata":{provider:`crustdata`,allowManagedConnection:!0,credits:{default:3,level1:{credits:2,weight:1}},mode:`onSuccess`},"person-workemail-profileurl-waterfall-v1-amplemarket":{provider:`amplemarket`,allowManagedConnection:!0,credits:{default:2.5,level1:{credits:1.5,weight:1}},mode:`onSuccess`}},By=class extends U{pipeId=jy;payload;payloadSchema=Ly;billableOperations=zy;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return this.payload.config?.providers.map(e=>e.provider)||[]}estimateBillableOperations(){return this.getProviderNames().map(e=>J(e,this.billableOperations).billableOperation)}getInputRequirement(){return Ry(this.payload.config)}getRawOutputFields(){return{[Ny.name]:this.catalogOutput(Ny,{isPrimaryOutput:!0}),[Py.name]:this.catalogOutput(Py,{isPrimaryOutput:!1})}}getConnectionsRequirements(){let e={leadmagic:`leadmagic_email_b2b_lookup`,hunter:`prospeo_email_lookup`,amplemarket:`amplemarket-person-reveal`,findymail:`findymail_email_b2b_lookup`,crustdata:`crustdata_realtime_person_enrich`};return(this.payload.config?.providers||[]).map((t,n)=>({provider:t.provider,rateLimitRatio:q(n),rateLimitOperation:e[t.provider],allowManagedConnection:!0}))}},Vy=Ly,Hy={pipeId:jy,basePipe:W(jy),label:`Work email from LinkedIn URL`,executionMode:`waterfall`,categories:[`people_data`],lifecycle:null,description:`Find work email addresses from B2B profile.`,tags:[B.EMAIL,B.WORK_EMAIL,B.WATERFALL],docPath:G(jy),managedProviders:Fy,allowedUserConnectionProviders:Fy,deprecatedProviders:[],inputFieldMode:`static`,outputFieldMode:`static`,billableOperations:zy,defaultInputRequirement:Ry(null),defaultPayload:{pipe_id:jy,connector:null,run_if:null,config:{providers:Iy,allow_catch_all_emails:!0,allow_risky_emails:!0,input_fields:{profile_url:{alias:``}},output_fields:{work_email:{alias:``,enabled:!0},email_validation_status:{alias:``,enabled:!1}}}}},Uy=`person:workemail:waterfall@1`,Wy=_(`name`),Gy=_(`company_domain`),Ky=_(`company_name`),qy=_(`work_email`),Jy=_(`email_validation_status`),Yy=[`leadmagic`,`prospeo`,`amplemarket`,`hunter`,`icypeas`,`findymail`],Xy=[{provider:`leadmagic`},{provider:`prospeo`},{provider:`amplemarket`},{provider:`hunter`},{provider:`icypeas`},{provider:`findymail`}],Zy={"person-workemail-waterfall-v1-leadmagic":{provider:`leadmagic`,allowManagedConnection:!0,credits:{default:.5,level1:{credits:.25,weight:1}},mode:`onSuccess`},"person-workemail-waterfall-v1-icypeas":{provider:`icypeas`,allowManagedConnection:!0,credits:{default:.5,level1:{credits:.25,weight:1}},mode:`onSuccess`},"person-workemail-waterfall-v1-prospeo":{provider:`prospeo`,allowManagedConnection:!0,credits:{default:1,level1:{credits:.5,weight:1}},mode:`onSuccess`},"person-workemail-waterfall-v1-findymail":{provider:`findymail`,allowManagedConnection:!0,credits:{default:1.5,level1:{credits:.75,weight:1}},mode:`onSuccess`},"person-workemail-waterfall-v1-hunter":{provider:`hunter`,allowManagedConnection:!0,credits:{default:1.3,level1:{credits:.75,weight:1}},mode:`onSuccess`},"person-workemail-waterfall-v1-amplemarket":{provider:`amplemarket`,allowManagedConnection:!0,credits:{default:3,level1:{credits:2,weight:1}},mode:`onSuccess`}},Qy=r.object({pipe_id:r.literal(Uy),connector:w(),run_if:S(),config:r.object({providers:D({availableProviders:Yy,defaultProviders:Xy,sectionKey:`general`,providerCredits:La(Zy,Yy)}),allow_catch_all_emails:O({path:`config.allow_catch_all_emails`,defaultValue:!0,groupPath:`config.general`,sectionKey:`general`,info:`Catch-alls appear valid but remain undeliverable-risk.`,label:`Allow catch-all emails`}),allow_risky_emails:O({path:`config.allow_risky_emails`,defaultValue:!0,groupPath:`config.general`,sectionKey:`general`,info:`DNS configuration and spam reputation may flag emails as high-risk.`,label:`Allow risky emails`}),input_fields:z(r.object({[Wy.name]:E({fieldName:Wy.name}),[Gy.name]:E({fieldName:Gy.name}),[Ky.name]:E({fieldName:Ky.name})})),output_fields:R(r.object({[qy.name]:k({fieldName:qy.name}),[Jy.name]:k({fieldName:Jy.name})}))}).optional()}),$y=e=>Ea(V(K(Wy,e)),H(K(Gy,e),K(Ky,e))),eb=class extends U{pipeId=Uy;payload;payloadSchema=Qy;billableOperations=Zy;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return this.payload.config?.providers.map(e=>e.provider)||[]}estimateBillableOperations(){return this.getProviderNames().map(e=>J(e,this.billableOperations).billableOperation)}getInputRequirement(){return $y(this.payload.config)}getRawOutputFields(){return{[qy.name]:this.catalogOutput(qy,{isPrimaryOutput:!0}),[Jy.name]:this.catalogOutput(Jy,{isPrimaryOutput:!0})}}getConnectionsRequirements(){let e={leadmagic:`leadmagic_email_lookup`,prospeo:`prospeo_email_lookup`,icypeas:`icypeas_email_lookup`,findymail:`findymail_email_lookup`,hunter:`hunter_email_finder`,amplemarket:`amplemarket-person-reveal`};return(this.payload.config?.providers||[]).map((t,n)=>({provider:t.provider,rateLimitRatio:q(n),rateLimitOperation:e[t.provider],allowManagedConnection:!0}))}},tb=Qy,nb={pipeId:Uy,basePipe:W(Uy),label:`Work email from name`,executionMode:`waterfall`,categories:[`people_data`],lifecycle:null,description:`Find work email addresses in a waterfall motion.`,tags:[B.EMAIL,B.WORK_EMAIL,B.WATERFALL],docPath:G(Uy),managedProviders:Yy,deprecatedProviders:[],allowedUserConnectionProviders:Yy,inputFieldMode:`static`,outputFieldMode:`static`,billableOperations:Zy,defaultInputRequirement:$y(null),defaultPayload:{pipe_id:Uy,connector:null,run_if:null,config:{providers:Xy,allow_catch_all_emails:!0,allow_risky_emails:!0,input_fields:{company_name:{alias:``},company_domain:{alias:``},name:{alias:``}},output_fields:{work_email:{alias:``,enabled:!0},email_validation_status:{alias:``,enabled:!1}}}}},rb=`prompt:run@1`,ib=`prompt-run-v1`,ab=ti(ib),ob=r.object({pipe_id:r.literal(rb),connector:w(),run_if:S(),config:r.object({prompt:Hi({sectionKey:`general`,path:`config.prompt`,placeholder:Z(`prompt`),groupPath:`config.prompt`,supportedTags:[`input`,`output`]}),model:oa({sectionKey:`general`,label:`Model`,path:`config.model`,groupPath:`config.prompt`,billableOperations:ab})})}),sb=class extends U{pipeId=rb;payload;payloadSchema=ob;billableOperations=ab;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return ri(this.payload.config.model)}estimateBillableOperations(){return[ni(this.payload.config.model,ib)]}getInputRequirement(){return Hm([this.payload.config.prompt.template])}getSecretRequirements(){return Y([this.payload.config.prompt.template])}getConstantRequirements(){return X([this.payload.config.prompt.template])}getRawOutputFields(){let e=this.payload.config.prompt.template,t=this.payload.config.prompt.json_schemas??{},n={},r;try{r=jr(e)}catch{return n}for(let e of r.outputs){let r=e.type;if(r===`json`){let i=e.schemaRef?t[e.schemaRef]:void 0;n[e.name]={enabled:!0,name:e.name,label:e.name,resolvedName:e.name,type:r,description:e.description,jsonMeta:{zodSchema:i,exampleValue:null},format:null,isCatalogFIeld:!1,isPrimaryOutput:!1}}else n[e.name]={enabled:!0,name:e.name,label:e.name,resolvedName:e.name,type:r,description:e.description,jsonMeta:null,format:e.format??null,isCatalogFIeld:!1,isPrimaryOutput:!1}}return n}getConnectionsRequirements(){return ii(this.payload.config.model)}},cb=ob,lb={pipeId:rb,inputFieldMode:`config`,outputFieldMode:`config`,basePipe:W(rb),label:`AI prompt`,executionMode:`single`,categories:[`actions`,`tools`],lifecycle:null,description:`Executes configurable AI prompts with structured output fields.`,detailed_description:`General-purpose AI prompt runner. Inputs and outputs are fully dynamic β€” defined by the tags in the prompt template.`,tags:[B.AI],docPath:G(rb),defaultInputRequirement:null,billableOperations:ab,allowedUserConnectionProviders:ai(),managedProviders:ai(),deprecatedProviders:[],defaultPayload:{pipe_id:rb,connector:null,run_if:null,config:{model:`openai-gpt-latest`,prompt:{template:``,json_schemas:{}}}}},ub=`sheet:row:append@1`,db=_(`sheet_record_id`),fb=_(`created_sheet`),pb=[{label:`Demo leads`,value:`demo-leads`},{label:`Demo companies`,value:`demo-companies`},{label:`Demo contacts`,value:`demo-contacts`}],mb=[{label:`Demo team`,value:`sandbox-team-1`},{label:`Demo workspace`,value:`sandbox-team-2`}],hb={requires:{connection:`pipe0`},enabledIf:ln(`pipe0`,`Select a pipe0 connection to see sheet suggestions`),options:async({query:e,client:t,environment:n})=>n===`sandbox`?pb:t?(await t.sheets.list({query:e})).map(e=>({label:e.name&&e.name!==e.slug?`${e.name} (${e.slug})`:e.slug,value:e.slug})):[],widgets:{provider_logo:{provider:`pipe0`}}},gb={requires:{connection:`pipe0`},enabledIf:ln(`pipe0`,`Select a pipe0 connection to see team suggestions`),options:async({query:e,client:t,environment:n})=>n===`sandbox`?mb:t?(await t.teams.list({query:e})).map(e=>({label:e.name,value:e.id})):[],widgets:{provider_logo:{provider:`pipe0`}}},_b=r.object({pipe_id:r.literal(ub),connector:Gi(),run_if:S(),config:r.object({sheet:C({label:`Destination sheet`,info:"Sheet identifier. Either a literal slug, or type `@` to insert a field reference / `$` to insert a secret reference.",groupPath:`config.general`,sectionKey:`general`,inputType:`text`,path:`config.sheet`,minLength:3,expectedTagType:`string`,expectedTagFormat:`text`,optionsDef:hb}),run:O({defaultValue:!0,groupPath:`config.advanced`,path:`config.run`,sectionKey:`general`,description:`Auto-run sheet row after append action.`,label:`Run after append`}),allow_field_creation:O({label:`Create unkown fields`,defaultValue:!0,groupPath:`config.advanced`,path:`config.allow_field_creation`,sectionKey:`general`,description:`Add unkown fields as new sheet columns.`}),allow_sheet_creation:O({label:`Create missing sheets`,description:`Create new sheet if none exists with the provided name`,defaultValue:!0,groupPath:`config.advanced`,path:`config.allow_sheet_creation`,sectionKey:`general`}),new_sheet_team_id:da({label:`Team`,info:`Optional hint for the team where the sheet should be created. Only used when a new sheet is created.`,placeholder:`Select a team…`,required:!1,groupPath:`config.advanced`,path:`config.new_sheet_team_id`,sectionKey:`general`,optionsDef:gb,enabledIf:e=>e.config?.allow_sheet_creation?{disabled:!1}:{disabled:!0,message:`Turn on β€œUpsert sheets” to specify a team.`}}),included_fields:qi({label:`Fields`,info:`All fields are written if empty.`,groupPath:`config.general`,path:`config.included_fields`,sectionKey:`general`,disableSearch:!0}),output_fields:R(r.object({[db.name]:k({fieldName:db.name}),[fb.name]:k({fieldName:fb.name})}))})}),vb={"sheet-row-append-v1-pipe0":{provider:`pipe0`,allowManagedConnection:!1,credits:null,mode:null}},yb=class extends U{pipeId=ub;payload;payloadSchema=_b;billableOperations=vb;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[`sheet-row-append-v1-pipe0`]}getInputRequirement(){let e=[Hm([this.payload.config.sheet],{expectedType:`string`,expectedFormat:`text`})];if(this.payload.config.included_fields?.length)for(let t of this.payload.config.included_fields)e.push(V({name:t.field_name,resolvedName:t.field_name,label:``,description:``,type:e=>{let n=Vm(e,t.field_name);if(!n)throw Error(`Unable to find field with name ${t.field_name}. But needed by prompt parser.`);return n.type||`unknown`},format:null}));return Ea(...e)}getSecretRequirements(){return Y([this.payload.config.sheet])}getConstantRequirements(){return X([this.payload.config.sheet])}getRawOutputFields(){return{[db.name]:this.catalogOutput(db),[fb.name]:this.catalogOutput(fb)}}getConnectionsRequirements(){return[{provider:`pipe0`,rateLimitRatio:1,rateLimitOperation:`pipe0-sheet-operation`,allowManagedConnection:!0}]}},bb=_b,xb={pipeId:ub,basePipe:W(ub),label:`Append row to sheet`,executionMode:`single`,categories:[`actions`,`tools`],lifecycle:null,allowedUserConnectionProviders:[`pipe0`],managedProviders:[],deprecatedProviders:[],description:"Add rows to a pipe0 sheet. The sheet identifier may be a literal slug or a `{{ field_name }}` tag.",docPath:G(ub),tags:[B.FIELDS],billableOperations:vb,defaultInputRequirement:null,inputFieldMode:`config`,outputFieldMode:`static`,defaultPayload:{pipe_id:ub,connector:{strategy:`first`,connections:[]},run_if:null,config:{sheet:``,run:!0,allow_field_creation:!0,allow_sheet_creation:!0,new_sheet_team_id:``,included_fields:[],output_fields:{sheet_record_id:{alias:``,enabled:!0},created_sheet:{alias:``,enabled:!0}}}}},Sb=`sheet:row:expandappend@1`,Cb=_(`sheet_record_ids`),wb=_(`input_objects`),Tb=r.object({pipe_id:r.literal(Sb),connector:Gi(),run_if:S(),config:r.object({sheet:ra({label:`Sheet name`,info:`Unique identifier for the sheet`,groupPath:`config.general`,sectionKey:`general`,inputType:`text`,path:`config.sheet`,minLength:3}),run:O({defaultValue:!0,groupPath:`config.general`,path:`config.run`,sectionKey:`general`,info:`Enrich record after write. Ignored if target sheet writes to other sheets.`,label:`Run`}),allow_field_creation:O({defaultValue:!0,groupPath:`config.general`,path:`config.allow_field_creation`,sectionKey:`general`,info:`Add unkown object fields to the sheet definition.`,label:`Allow field creation`}),input_fields:z(r.object({[wb.name]:E({fieldName:wb.name})})),output_fields:R(r.object({[Cb.name]:k({fieldName:Cb.name})}))})}),Eb={"sheet-row-expandappend-v1-pipe0":{provider:`pipe0`,allowManagedConnection:!1,credits:null,mode:null}},Db=e=>V(K(wb,e)),Ob=class extends U{pipeId=Sb;payload;payloadSchema=Tb;billableOperations=Eb;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[`sheet-row-expandappend-v1-pipe0`]}getInputRequirement(){return Db(this.payload.config)}getRawOutputFields(){return{[Cb.name]:this.catalogOutput(Cb)}}getConnectionsRequirements(){return[{provider:`pipe0`,rateLimitRatio:1,rateLimitOperation:`pipe0-sheet-operation`,allowManagedConnection:!0}]}},kb=Tb,Ab={pipeId:Sb,basePipe:W(Sb),label:`Object list to sheet rows`,executionMode:`single`,categories:[`actions`,`tools`],lifecycle:null,allowedUserConnectionProviders:[`pipe0`],managedProviders:[],deprecatedProviders:[],description:`Expand a list of nested objects into sheet rows.`,docPath:G(Sb),tags:[B.FIELDS],billableOperations:Eb,defaultInputRequirement:Db(null),inputFieldMode:`static`,outputFieldMode:`static`,defaultPayload:{pipe_id:Sb,connector:{strategy:`first`,connections:[]},run_if:null,config:{sheet:``,run:!0,allow_field_creation:!0,input_fields:{input_objects:{alias:``}},output_fields:{sheet_record_ids:{alias:``,enabled:!0}}}}},jb=`template:fill@1`,Mb=_(`template_output`),Nb=r.object({pipe_id:r.literal(jb),connector:w(),run_if:S(),config:r.object({template:Ui({sectionKey:`general`,path:`config.template`,label:`Template`,placeholder:Z(`template`),groupPath:`config.general`,required:!0}),output_fields:R(r.object({[Mb.name]:k({fieldName:Mb.name})}))})}),Pb={"template-fill-v1-pipe0":{credits:{default:0},allowManagedConnection:!0,provider:`pipe0`,mode:`always`}},Fb=class extends U{pipeId=jb;payload;payloadSchema=Nb;billableOperations=Pb;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[`template-fill-v1-pipe0`]}getInputRequirement(){return Hm([this.payload.config.template])}getSecretRequirements(){return Y([this.payload.config.template])}getConstantRequirements(){return X([this.payload.config.template])}getRawOutputFields(){return{[Mb.name]:this.catalogOutput(Mb)}}getConnectionsRequirements(){return[]}},Ib=Nb,Lb={pipeId:jb,inputFieldMode:`config`,outputFieldMode:`config`,basePipe:W(jb),label:`Fill a text template`,executionMode:`single`,categories:[`tools`],lifecycle:null,description:`Replaces template tags like {{ name }} with actual values.`,tags:[B.TEXT],docPath:G(jb),defaultInputRequirement:null,billableOperations:Pb,allowedUserConnectionProviders:[],managedProviders:[`pipe0`],deprecatedProviders:[],defaultPayload:{pipe_id:jb,connector:null,run_if:null,config:{template:``,output_fields:{template_output:{alias:``,enabled:!0}}}}},Rb=`website:extract:firecrawl@1`,zb=_(`website_url`),Bb=_(`firecrawl_extract_result`),Vb=r.object({pipe_id:r.literal(Rb),connector:w(),run_if:S(),config:r.object({json_schema:ua({sectionKey:`general`,groupPath:`config.extraction`,path:`config.json_schema`,label:`Output JSON schema`,info:`Specify the data you want to extract as a JSON schema.`,allowEmpty:!1,required:!0}),extraction_prompt:ia({sectionKey:`general`,groupPath:`config.extraction`,path:`config.extraction_prompt`,label:`Extraction Prompt`,info:`Prompt the scraper on what it should extract. Template tags are not supported.`,rows:5,minLength:10,placeholder:`E.g. Extract the company missing and latest news.`}),enable_full_domain_crawl:O({sectionKey:`general`,groupPath:`config.extraction`,defaultValue:!1,path:`config.enable_full_domain_crawl`,info:`If this option is enabled all URLs from this domain will be scraped.`,label:`Crawl full domain`}),enable_web_search:O({sectionKey:`general`,groupPath:`config.extraction`,label:`Enable web search`,path:`enable_web_search`,defaultValue:!1,info:`When 'true', the extraction will follow links outside the specified domain.`}),input_fields:z(r.object({[zb.name]:E({fieldName:zb.name})})),output_fields:R(r.object({[Bb.name]:k({fieldName:Bb.name})}))})}),Hb=e=>V(K(zb,e)),Ub={"website-extract-firecrawl-v1-firecrawl":{allowManagedConnection:!0,provider:`firecrawl`,credits:{default:2,level1:{credits:1,weight:1}},mode:`onSuccess`}},Wb=class extends U{pipeId=Rb;payload;payloadSchema=Vb;billableOperations=Ub;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`firecrawl`]}estimateBillableOperations(){return[`website-extract-firecrawl-v1-firecrawl`]}getInputRequirement(){return Hb(this.payload.config)}getRawOutputFields(){return{[Bb.name]:this.catalogOutput(Bb)}}getConnectionsRequirements(){return[{provider:`firecrawl`,rateLimitRatio:1,rateLimitOperation:`firecrawl_generic`,allowManagedConnection:!0}]}},Gb=Vb,Kb={pipeId:Rb,basePipe:W(Rb),label:`Extract`,executionMode:`single`,categories:[`tools`],lifecycle:null,description:`Perform advanced AI scraping to extract data from any website. Search all subdomains and combine scraped data with search results.`,tags:[B.SCRAPE],docPath:G(Rb),billableOperations:Ub,inputFieldMode:`static`,outputFieldMode:`static`,allowedUserConnectionProviders:[`firecrawl`],managedProviders:[`firecrawl`],deprecatedProviders:[],defaultInputRequirement:Hb(null),defaultPayload:{pipe_id:Rb,run_if:null,connector:null,config:{json_schema:{type:`object`},enable_full_domain_crawl:!1,enable_web_search:!1,extraction_prompt:``,input_fields:{website_url:{alias:``}},output_fields:{firecrawl_extract_result:{alias:``,enabled:!0}}}}},qb=`website:maplinks:firecrawl@1`,Jb={"website-maplinks-firecrawl-v1-firecrawl":{allowManagedConnection:!0,provider:`firecrawl`,credits:{default:1},mode:`onSuccess`}},Yb=_(`website_url`),Xb=_(`mapped_links`),Zb=r.object({pipe_id:r.literal(qb),connector:w(),run_if:S(),config:r.object({page_limit:ca({label:`Page limit`,info:`Number of pages searched`,groupPath:`config.general`,max:50,min:1,required:!1,path:`config.page_limit`,sectionKey:`general`}),sitemap:aa({label:`Sitemap`,info:`Include sitemap links`,sectionKey:`general`,groupPath:`config.general`,path:`config.sitemap`,defaultValue:`include`,required:!1,options:[{value:`include`,label:`Include`},{value:`skip`,label:`Skip`},{value:`only`,label:`Only`}]}),search:ra({sectionKey:`general`,label:`Search`,inputType:`text`,info:`Return matching urls`,groupPath:`config.general`,path:`config.search`}).default(``),input_fields:z(r.object({[Yb.name]:E({fieldName:Yb.name})})),output_fields:R(r.object({[Xb.name]:k({fieldName:Xb.name})}))}).optional()}),Qb=e=>V(K(Yb,e)),$b=class extends U{pipeId=qb;payload;payloadSchema=Zb;billableOperations=Jb;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`firecrawl`]}estimateBillableOperations(){return[`website-maplinks-firecrawl-v1-firecrawl`]}getInputRequirement(){return Qb(this.payload.config)}getRawOutputFields(){return{[Xb.name]:this.catalogOutput(Xb)}}getConnectionsRequirements(){return[{provider:`firecrawl`,rateLimitRatio:1,rateLimitOperation:`firecrawl_map_requests`,allowManagedConnection:!0}]}},ex=Zb,tx={pipeId:qb,basePipe:W(qb),label:`Map domain links`,executionMode:`single`,categories:[`tools`],lifecycle:null,description:`Input a website and get all internal URLs on the website. Results do not include links to external pages.`,tags:[B.SCRAPE],docPath:G(qb),billableOperations:Jb,inputFieldMode:`static`,outputFieldMode:`static`,allowedUserConnectionProviders:[`firecrawl`],managedProviders:[`firecrawl`],deprecatedProviders:[],defaultInputRequirement:Qb(null),defaultPayload:{pipe_id:qb,run_if:null,connector:null,config:{page_limit:25,sitemap:`include`,search:``,input_fields:{website_url:{alias:``}},output_fields:{mapped_links:{alias:``,enabled:!0}}}}},nx=`website:scrape:firecrawl@1`,rx=_(`website_url`),ix=_(`website_markdown`),ax=_(`website_html`),ox=_(`website_links`),sx=r.object({pipe_id:r.literal(nx),connector:w(),run_if:S(),config:r.object({scrape_main_only:O({defaultValue:!1,label:`Scrape main content only?`,info:`If selected, content like headers, footers, and sidebars are excluded from the scrape results.`,sectionKey:`general`,groupPath:`config.general`,path:`config.scrape_main_only`}),input_fields:z(r.object({[rx.name]:E({fieldName:rx.name})})),output_fields:R(r.object({[ix.name]:k({fieldName:ix.name}),[ax.name]:k({fieldName:ax.name}),[ox.name]:k({fieldName:ox.name})}))}).optional()}),cx=e=>V(K(rx,e)),lx={"website-scrape-firecrawl-v1-firecrawl":{allowManagedConnection:!0,provider:`firecrawl`,credits:{default:.1,level1:{credits:.05,weight:1}},mode:`onSuccess`}},ux=class extends U{pipeId=nx;payload;payloadSchema=sx;billableOperations=lx;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`firecrawl`]}estimateBillableOperations(){return[`website-scrape-firecrawl-v1-firecrawl`]}getInputRequirement(){return cx(this.payload.config)}getRawOutputFields(){return{[ix.name]:this.catalogOutput(ix),[ax.name]:this.catalogOutput(ax),[ox.name]:this.catalogOutput(ox)}}getConnectionsRequirements(){return[{provider:`firecrawl`,rateLimitRatio:1,rateLimitOperation:`firecrawl_generic`,allowManagedConnection:!0}]}},dx=sx,fx={pipeId:nx,basePipe:W(nx),label:`Scrape`,executionMode:`single`,categories:[`tools`],lifecycle:null,description:`Turn any URL into clean data.`,tags:[B.SCRAPE],docPath:G(nx),billableOperations:lx,inputFieldMode:`static`,outputFieldMode:`static`,allowedUserConnectionProviders:[`firecrawl`],managedProviders:[`firecrawl`],deprecatedProviders:[],defaultInputRequirement:cx(null),defaultPayload:{pipe_id:nx,run_if:null,connector:null,config:{scrape_main_only:!0,input_fields:{website_url:{alias:``}},output_fields:{website_markdown:{alias:``,enabled:!0},website_html:{alias:``,enabled:!1},website_links:{alias:``,enabled:!1}}}}},px=`website:scrapelist:firecrawl@1`,mx={"website-scrapelist-firecrawl-v1-firecrawl":{allowManagedConnection:!0,provider:`firecrawl`,credits:{default:.1,level1:{credits:.05,weight:1}},mode:`onSuccess`,note:`You are charged per url that is scraped.`}},hx=_(`urls`),gx=_(`scrape_list_response`),_x=r.object({pipe_id:r.literal(px),connector:w(),run_if:S(),config:r.object({scrape_main_only:O({label:`Scrape main content only?`,defaultValue:!1,info:`If selected headers, footers, and sidebars will be excluded from the results.`,sectionKey:`general`,groupPath:`config.general`,path:`config.scrape_main_only`}),formats:sa({options:[{label:`Markdown`,value:`markdown`},{label:`HTML`,value:`html`},{label:`Links`,value:`links`}],disableSearch:!0,info:`Choose what you want to scrape from the website`,required:!1,label:`Formats`,sectionKey:`general`,groupPath:`config.general`,path:`config.formats`}),input_fields:z(r.object({[hx.name]:E({fieldName:hx.name})})),output_fields:R(r.object({[gx.name]:k({fieldName:gx.name})}))}).optional()}),vx=e=>V(K(hx,e)),yx=class extends U{pipeId=px;payload;payloadSchema=_x;billableOperations=mx;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`firecrawl`]}estimateBillableOperations(){return[,,,,,].fill(`list-url-scrape-firecrawl`)}getInputRequirement(){return vx(this.payload.config)}getRawOutputFields(){return{[gx.name]:this.catalogOutput(gx)}}getConnectionsRequirements(){return[{provider:`firecrawl`,rateLimitRatio:1,rateLimitOperation:`firecrawl_generic`,allowManagedConnection:!0}]}},bx=_x,xx={pipeId:px,basePipe:W(px),label:`Scrape list`,executionMode:`single`,categories:[`tools`],lifecycle:null,description:`Turn a list of URLs into clean scraped data.`,tags:[B.SCRAPE],docPath:G(px),billableOperations:mx,inputFieldMode:`static`,outputFieldMode:`static`,allowedUserConnectionProviders:[`firecrawl`],managedProviders:[`firecrawl`],deprecatedProviders:[],defaultInputRequirement:vx(null),defaultPayload:{pipe_id:px,run_if:null,connector:null,config:{scrape_main_only:!0,formats:[`html`,`markdown`,`links`],input_fields:{urls:{alias:``}},output_fields:{scrape_list_response:{alias:``,enabled:!0}}}}},Sx=[`companies:profiles:crustdata@1`,`companies:profiles:crustdata@2`,`companies:profiles:amplemarket@1`,`companies:profiles:amplemarket@2`,`people:profiles:crustdata@1`,`people:profiles:crustdata@2`,`people:profiles:amplemarket@1`,`people:profiles:amplemarket@2`],Cx=r.enum(Sx);function wx(e){let t=!0,n=e=>{if(t!==!1&&typeof e==`object`&&e){Array.isArray(e)&&e.length>0&&(t=!1);for(let r of Object.values(e))typeof r!=`object`&&r!=null&&r!==``&&(t=!1),typeof r==`object`&&r&&n(r)}};return n(e),t}function Tx(e,t){let n={name:e,config:t};return Pa.hashObject(n)}var Ex=class{validatePayload(e){try{return this.schema.parse(e)}catch(e){throw e instanceof n?Error(JSON.stringify(r.prettifyError(e))):e}}catalogOutput(e){return{name:e.name,enabled:!!this.payload.config?.output_fields?.[e.name].enabled,type:e.type,format:e.format,resolvedName:this.payload.config?.output_fields?.[e.name]?.alias||e.name,description:e.description,jsonMeta:e.jsonMeta,label:e.label,isCatalogFIeld:!0}}getOutputFields(){let e={};for(let[t,n]of Object.entries(this.getRawOutputFields()))n.enabled&&(e[t]=n);return e}getHashKey(){return Tx(this.searchId,this.payload)}};function Dx(e){return e.split(`@`)[0]}function Ox(e){return`/docs/search-catalog/${Dx(e)}/${e.split(`@`)[1]}`}function kx(e,t=32){return`https://www.google.com/s2/favicons?sz=${t}&domain=${e.replace(/^(https?:\/\/)?(www\.)?/,``)}`}function Ax(e,t){return e==null?void 0:t(e)}function jx(){return Mx({companyWebsiteUrl:`linkedin.com`,entity:`LinkedIn`})}function Mx({companyWebsiteUrl:e,entity:t}){if(e)return{image_url:kx(e),entity:t||e}}function Nx(e,t){let n=JSON.parse(JSON.stringify({...e}));if(!t)return n;for(let e in t)!(e in n)&&t[e]!=null&&(n[e]=t[e]);return n}const Px=`companies:profiles:amplemarket@2`,Fx=_(`company_name`),Ix=_(`company_domain`),Lx=_(`company_description`),Rx=_(`company_profile_url`),zx=_(`amplemarket_company_match`),Bx=r.object({search_id:r.literal(Px),connector:v.nullable().optional(),config:r.object({limit:L({label:`Limit`,description:`Max number of search results`,path:`config.limit`,min:1,max:100,groupPath:`config.pagination`,required:!0,sectionKey:`pagination`}),page_number:L({path:`config.page_number`,groupPath:`config.pagination`,required:!1,label:`Page number`,min:1,sectionKey:`pagination`,description:``}),output_fields:R(r.object({[Fx.name]:N({fieldName:Fx.name}),[Ix.name]:N({fieldName:Ix.name}),[Lx.name]:N({fieldName:Lx.name}),[Rx.name]:N({fieldName:Rx.name}),[zx.name]:N({fieldName:zx.name})})),filters:r.object({hq_locations:I({path:`config.filters.hq_locations`,sectionKey:`config.filters`,label:`HQ locations`,description:``,placeholder:Z(`location`),groupPath:`config.filters.location`,optionsDef:g(`locations`)}),company_names:j({sectionKey:`config.filters`,path:`config.filters.company_names`,label:`Company names`,description:``,placeholder:Z(`company_name`),groupPath:`config.filters.categories`,suggestionsDef:g(`company_names`)}),company_domains:j({sectionKey:`config.filters`,path:`config.filters.company_domains`,label:`Company domains`,description:``,placeholder:Z(`company_domain`),groupPath:`config.filters.categories`,suggestionsDef:g(`company_domains`,{widgets:e=>({logo_url:{url:kx(e.value)}})})}),company_profile_urls:j({sectionKey:`config.filters`,path:`config.filters.company_profile_urls`,label:`Company LinkedIn URLs`,description:``,groupPath:`config.filters.categories`}),company_types:P({sectionKey:`config.filters`,path:`config.filters.company_types`,disableSearch:!1,label:`Company Type`,description:``,groupPath:`config.filters.categories`,options:m(`amplemarket.company_types`),required:!1}),investors:F({sectionKey:`config.filters`,path:`config.filters.investors`,label:`Investor names`,optionsDef:g(`company.crunchbase_investors.crustdata`),description:`A list of company investor names`,placeholder:Z(`investor`),groupPath:`config.filters.investors`,disableSearch:!1,required:!1}),company_industries:M({sectionKey:`config.filters`,path:`config.filters.company_industries`,optionsDef:h(`amplemarket.industries`),disableSearch:!1,label:`Industries`,description:``,placeholder:Z(`industry`),groupPath:`config.filters.industry`}),customer_types:P({sectionKey:`config.filters`,path:`config.filters.customer_types`,options:[{value:`b2b`,label:`B2B`},{value:`b2c`,label:`B2C`}],required:!1,disableSearch:!0,label:`Customer Types`,description:``,groupPath:`config.filters.industry`}),keywords:j({sectionKey:`config.filters`,path:`config.filters.keywords`,label:`Keywords`,description:``,groupPath:`config.filters.industry`}),revenue_groups:P({path:`config.filters.revenue_groups`,sectionKey:`config.filters`,label:`Revenue groups`,description:``,disableSearch:!0,options:m(`amplemarket.company_revenue`),required:!1,groupPath:`config.filters.financials`}),founded_year:pa({path:`config.filters.founded_year`,sectionKey:`config.filters`,label:`Founded year`,groupPath:`config.filters.general`,min:0,max:2040,required:!1,description:``}),open_position_titles:A({path:`config.filters.open_position_titles`,sectionKey:`config.filters`,label:`Job openings for titles`,groupPath:`config.filters.job_openings`,description:``,placeholder:Z(`title`),suggestionsDef:g(`titles`)}),headcount:P({sectionKey:`config.filters`,path:`config.filters.company_sizes`,disableSearch:!1,options:m(`amplemarket.company_size`),label:`Headcount groups`,required:!1,description:``,groupPath:`config.filters.company_size`}),headcount_growth_l6m_in_percent:pa({path:`config.filters.headcount_growth_l6m_in_percent`,sectionKey:`config.filters`,label:`Headcount growth over last 6 months (in %)`,groupPath:`config.filters.company_size`,description:``,max:1e4,min:0,required:!1})}).check(e=>{wx(e.value)&&e.issues.push({code:`custom`,message:`You must set at least one filter.`,input:e.value})})})}),Vx={default:{input:[{fields:[]}]}},Hx=class extends Ex{searchId=Px;schema=Bx;payload;constructor(e){super(),this.payload=this.validatePayload(e)}getRawOutputFields(){return{[Fx.name]:this.catalogOutput(Fx),[Ix.name]:this.catalogOutput(Ix),[Lx.name]:this.catalogOutput(Lx),[Rx.name]:this.catalogOutput(Rx),[zx.name]:this.catalogOutput(zx)}}getConnectionsRequirements(){return[{provider:`amplemarket`,rateLimitOperation:`amplemarket_company_search`,rateLimitRatio:1,allowManagedConnection:!0}]}getDedupConfig(){return Vx}},Ux=Bx,Wx={searchId:Px,billableOperation:`companies-profiles-amplemarket-v2`,baseSearch:Dx(`companies:profiles:amplemarket@2`),label:`Company search`,categories:[`companies`],paginationType:`page_number`,hasManagedConnection:!0,allowsUserConnection:!0,lifecycle:null,description:`Filter based company search.`,tags:[B.COMPANY_PROFILES],docPath:Ox(Px),cost:{mode:`per_page`,credits:{default:2}},provider:`amplemarket`,defaultPayload:{search_id:Px,connector:null,config:{limit:100,page_number:1,output_fields:{company_name:{enabled:!0,alias:``},company_domain:{enabled:!0,alias:``},company_description:{enabled:!0,alias:``},company_profile_url:{enabled:!0,alias:``},amplemarket_company_match:{enabled:!0,alias:``}},filters:{company_industries:{include:[],exclude:[]},company_names:{include:[],exclude:[]},company_profile_urls:{include:[],exclude:[]},company_types:[],company_domains:{include:[],exclude:[]},customer_types:[],headcount_growth_l6m_in_percent:{min:null,max:null},founded_year:{min:null,max:null},revenue_groups:[],investors:[],keywords:{include:[],exclude:[]},open_position_titles:[],headcount:[],hq_locations:{include:[],exclude:[]}}}}},Gx=`companies:profiles:crustdata@2`,Kx=_(`company_name`),qx=_(`company_domain`),Jx=_(`company_description`),Yx=_(`company_profile_url`),Xx=_(`crustdata_company_match`),Zx=r.object({search_id:r.literal(Gx),connector:v.nullable().optional(),config:r.object({limit:L({path:`config.limit`,min:1,max:100,groupPath:`config.pagination`,required:!0,sectionKey:`pagination`,label:`Limit`,description:`Max number of search results`}),cursor:ya({path:`config.cursor`,groupPath:`config.pagination`,inputType:`text`,label:`Cursor`,sectionKey:`pagination`,description:`Pagination cursor`}),output_fields:R(r.object({[Kx.name]:N({fieldName:Kx.name}),[qx.name]:N({fieldName:qx.name}),[Jx.name]:N({fieldName:Jx.name}),[Yx.name]:N({fieldName:Yx.name}),[Xx.name]:N({fieldName:Xx.name})})),filters:r.object({hq_locations:I({path:`config.filters.hq_locations`,sectionKey:`config.filters`,label:`HQ locations`,description:``,placeholder:Z(`location`),groupPath:`config.filters.location`,optionsDef:g(`locations`)}),crunchbase_categories:I({path:`config.filters.crunchbase_categories`,sectionKey:`config.filters`,label:`Crunchbase categories`,placeholder:Z(`crunchbase_category`),description:``,groupPath:`config.filters.categories`,optionsDef:g(`company.crunchbase_categories.crustdata`)}),crunchbase_investors:I({path:`config.filters.crunchbase_investors`,sectionKey:`config.filters`,label:`Investors to include (Crunchbase)`,description:``,placeholder:Z(`investor`),groupPath:`config.filters.investors`,optionsDef:g(`company.crunchbase_investors.crustdata`)}),tracxn_investors:I({path:`config.filters.tracxn_investors`,sectionKey:`config.filters`,label:`Investors to include (Tracxn)`,description:``,placeholder:Z(`investor`),groupPath:`config.filters.investors`,optionsDef:g(`company.tracxn_investors.crustdata`)}),company_types:M({sectionKey:`config.filters`,path:`config.filters.company_types`,optionsDef:{type:`static`,options:m(`crustdata.company_types`)},label:`Company types`,placeholder:`Public, Private, ...`,description:``,groupPath:`config.filters.categories`}),linkedin_industries:I({sectionKey:`config.filters`,path:`config.filters.linkedin_industries`,optionsDef:g(`linkedin_industries.crustdata`),label:`Industries`,description:``,placeholder:Z(`industry`),groupPath:`config.filters.industry`}),markets:I({sectionKey:`config.filters`,path:`config.filters.markets`,optionsDef:g(`company.markets.crustdata`),placeholder:`NYSE, TYO, ...`,label:`Markets`,description:``,groupPath:`config.filters.industry`}),linkedin_categories:I({sectionKey:`config.filters`,path:`config.filters.linkedin_categories`,optionsDef:g(`company.linkedin_categories.crustdata`),label:`LinkedIn category`,placeholder:`Marketing, Branding, ...`,description:``,groupPath:`config.filters.categories`}),headcount:M({path:`config.filters.headcount`,sectionKey:`config.filters`,label:`Headcount`,description:``,disableSearch:!0,placeholder:`1-10`,optionsDef:{type:`static`,options:m(`crustdata.company_size`)},groupPath:`config.filters.company_size`}),headcount_growth_l6m_in_percent:P({path:`config.filters.headcount_growth_l6m_in_percent`,sectionKey:`config.filters`,label:`Headcount growth over last 6 months in percent`,description:``,options:m(`crustdata.headcount_growth`),placeholder:`0-10%`,disableSearch:!0,required:!1,groupPath:`config.filters.company_size`}),revenue_in_usd:ha({path:`config.filters.revenue_in_usd`,sectionKey:`config.filters`,label:`Revenue (USD)`,description:``,legend:`1k - 10B`,min:1e3,max:1e10,groupPath:`config.filters.financials`}),last_funding_type:M({path:`config.filters.last_funding_type`,sectionKey:`config.filters`,label:`Last funding type`,placeholder:`Series A`,disableSearch:!0,optionsDef:{type:`static`,options:m(`crustdata.funding_rounds`)},description:``,groupPath:`config.filters.financials`}),last_funding_amount:ha({path:`config.filters.last_funding_amount`,sectionKey:`config.filters`,label:`Last funding amount`,legend:`1k - 10B`,min:1e3,max:1e10,description:``,groupPath:`config.filters.financials`}),number_of_followers:P({path:`config.filters.number_of_followers`,sectionKey:`config.filters`,label:`Number of LinkedIn followers`,placeholder:`1-500`,disableSearch:!0,description:``,required:!1,options:m(`crustdata.company_followers`),groupPath:`config.filters.web_presence`}),follower_growth_l6m_in_percent:P({path:`config.filters.follower_growth_l6m_in_percent`,sectionKey:`config.filters`,label:`LinkedIn follower growth within last 6 months`,required:!1,disableSearch:!0,placeholder:`0-10%`,description:``,options:m(`crustdata.follower_growth`),groupPath:`config.filters.web_presence`}),profile_summary_keywords:j({path:`config.filters.profile_summary_keywords`,sectionKey:`config.filters`,maxItems:50,label:`LinkedIn company description contains`,placeholder:Z(`company_profile_keyword`),description:``,groupPath:`config.filters.keywords`}),competitor_domains:j({path:`config.filters.competitor_domains`,sectionKey:`config.filters`,maxItems:50,label:`Competitor domain`,description:``,placeholder:Z(`company_domain`),groupPath:`config.filters.competitors`,suggestionsDef:g(`company_domains`,{widgets:e=>({logo_url:{url:kx(e.value)}})})})}).check(e=>{wx(e.value)&&e.issues.push({code:`custom`,message:`You must set at least one filter.`,input:e.value})})})}),Qx={default:{input:[{fields:[]}]}},$x=class extends Ex{searchId=Gx;schema=Zx;payload;constructor(e){super(),this.payload=this.validatePayload(e)}getRawOutputFields(){return{[Kx.name]:this.catalogOutput(Kx),[qx.name]:this.catalogOutput(qx),[Jx.name]:this.catalogOutput(Jx),[Yx.name]:this.catalogOutput(Yx),[Xx.name]:this.catalogOutput(Xx)}}getConnectionsRequirements(){return[{provider:`crustdata`,rateLimitOperation:`crustdata_company_db_search`,rateLimitRatio:1,allowManagedConnection:!0}]}getDedupConfig(){return Qx}},eS=Zx,tS={searchId:Gx,billableOperation:`companies-profiles-crustdata-v2`,baseSearch:Dx(`companies:profiles:crustdata@2`),label:`Company search`,categories:[`companies`],paginationType:`cursor`,hasManagedConnection:!0,allowsUserConnection:!0,lifecycle:null,description:`Filter based company search.`,tags:[B.COMPANY_PROFILES],docPath:Ox(Gx),cost:{mode:`per_page`,credits:{default:2}},provider:`crustdata`,defaultPayload:{search_id:Gx,connector:null,config:{limit:100,cursor:``,output_fields:{company_name:{enabled:!0,alias:``},company_domain:{enabled:!0,alias:``},company_description:{enabled:!0,alias:``},company_profile_url:{enabled:!0,alias:``},crustdata_company_match:{enabled:!0,alias:``}},filters:{company_types:{include:[],exclude:[]},headcount_growth_l6m_in_percent:[],last_funding_amount:{from:null,to:null},last_funding_type:{include:[],exclude:[]},linkedin_industries:{include:[],exclude:[]},linkedin_categories:{include:[],exclude:[]},crunchbase_categories:{include:[],exclude:[]},markets:{include:[],exclude:[]},revenue_in_usd:{from:null,to:null},crunchbase_investors:{include:[],exclude:[]},tracxn_investors:{include:[],exclude:[]},follower_growth_l6m_in_percent:[],headcount:{include:[],exclude:[]},hq_locations:{include:[],exclude:[]},number_of_followers:[],profile_summary_keywords:{include:[],exclude:[]},competitor_domains:{include:[],exclude:[]}}}}},nS=`companies:profiles:amplemarket@1`,rS=_(`company_name`),iS=_(`company_website_url`),aS=_(`company_description`),oS=_(`company_profile_url`),sS=_(`amplemarket_company_match`),cS=r.object({search_id:r.literal(nS),connector:v.nullable().optional(),config:r.object({limit:L({label:`Limit`,description:`Max number of search results`,path:`config.limit`,min:1,max:100,groupPath:`config.pagination`,required:!0,sectionKey:`pagination`}),page_number:L({path:`config.page_number`,groupPath:`config.pagination`,required:!1,label:`Page number`,min:1,sectionKey:`pagination`,description:``}),output_fields:R(r.object({[rS.name]:N({fieldName:rS.name}),[iS.name]:N({fieldName:iS.name}),[aS.name]:N({fieldName:aS.name}),[oS.name]:N({fieldName:oS.name}),[sS.name]:N({fieldName:sS.name})})),filters:r.object({hq_locations:I({path:`config.filters.hq_locations`,sectionKey:`config.filters`,label:`HQ locations`,description:``,placeholder:Z(`location`),groupPath:`config.filters.location`,optionsDef:g(`locations`)}),company_names:j({sectionKey:`config.filters`,path:`config.filters.company_names`,label:`Company names`,description:``,placeholder:Z(`company_name`),groupPath:`config.filters.categories`,suggestionsDef:g(`company_names`)}),company_website_urls:j({sectionKey:`config.filters`,path:`config.filters.company_website_urls`,label:`Company domains`,description:``,placeholder:Z(`company_domain`),groupPath:`config.filters.categories`,suggestionsDef:g(`company_domains`,{widgets:{emoji:{char:`🌐`}}})}),company_profile_urls:j({sectionKey:`config.filters`,path:`config.filters.company_profile_urls`,label:`Company LinkedIn URLs`,description:``,groupPath:`config.filters.categories`}),company_types:P({sectionKey:`config.filters`,path:`config.filters.company_types`,disableSearch:!1,label:`Company Type`,description:``,groupPath:`config.filters.categories`,options:m(`amplemarket.company_types`),required:!1}),investors:F({sectionKey:`config.filters`,path:`config.filters.investors`,label:`Investor names`,optionsDef:g(`company.crunchbase_investors.crustdata`),description:`A list of company investor names`,placeholder:Z(`investor`),groupPath:`config.filters.investors`,disableSearch:!1,required:!1}),company_industries:M({sectionKey:`config.filters`,path:`config.filters.company_industries`,optionsDef:h(`amplemarket.industries`),disableSearch:!1,label:`Industries`,description:``,placeholder:Z(`industry`),groupPath:`config.filters.industry`}),customer_types:P({sectionKey:`config.filters`,path:`config.filters.customer_types`,options:[{value:`b2b`,label:`B2B`},{value:`b2c`,label:`B2C`}],required:!1,disableSearch:!0,label:`Customer Types`,description:``,groupPath:`config.filters.industry`}),keywords:j({sectionKey:`config.filters`,path:`config.filters.keywords`,label:`Keywords`,description:``,groupPath:`config.filters.industry`}),revenue_groups:P({path:`config.filters.revenue_groups`,sectionKey:`config.filters`,label:`Revenue groups`,description:``,disableSearch:!0,options:m(`amplemarket.company_revenue`),required:!1,groupPath:`config.filters.financials`}),founded_year:pa({path:`config.filters.founded_year`,sectionKey:`config.filters`,label:`Founded year`,groupPath:`config.filters.general`,min:0,max:2040,required:!1,description:``}),open_positions_titles:A({path:`config.filters.open_positions_titles`,sectionKey:`config.filters`,label:`Job openings for titles`,groupPath:`config.filters.job_openings`,description:``,placeholder:Z(`title`),suggestionsDef:g(`titles`)}),headcount:P({sectionKey:`config.filters`,path:`config.filters.company_sizes`,disableSearch:!1,options:m(`amplemarket.company_size`),label:`Headcount groups`,required:!1,description:``,groupPath:`config.filters.company_size`}),headcount_growth_last_6_months_in_percent:pa({path:`config.filters.headcount_growth_last_6_months_in_percent`,sectionKey:`config.filters`,label:`Headcount growth over last 6 months (in %)`,groupPath:`config.filters.company_size`,description:``,max:1e4,min:0,required:!1})}).check(e=>{wx(e.value)&&e.issues.push({code:`custom`,message:`You must set at least one filter.`,input:e.value})})})}),lS={default:{input:[{fields:[]}]}},uS=class extends Ex{searchId=nS;schema=cS;payload;constructor(e){super(),this.payload=this.validatePayload(e)}getRawOutputFields(){return{[rS.name]:this.catalogOutput(rS),[iS.name]:this.catalogOutput(iS),[aS.name]:this.catalogOutput(aS),[oS.name]:this.catalogOutput(oS),[sS.name]:this.catalogOutput(sS)}}getConnectionsRequirements(){return[{provider:`amplemarket`,rateLimitOperation:`amplemarket_company_search`,rateLimitRatio:1,allowManagedConnection:!0}]}getDedupConfig(){return lS}},dS=cS,fS={searchId:nS,billableOperation:`companies-profiles-amplemarket-v1`,baseSearch:Dx(`companies:profiles:amplemarket@1`),label:`Company search`,categories:[`deprecated`],paginationType:`page_number`,hasManagedConnection:!0,allowsUserConnection:!0,lifecycle:{deprecatedOn:`2026-06-13`,replacedBy:`companies:profiles:amplemarket@2`},description:`Filter based company search.`,tags:[B.COMPANY_PROFILES],docPath:Ox(nS),cost:{mode:`per_page`,credits:{default:2}},provider:`amplemarket`,defaultPayload:{search_id:nS,connector:null,config:{limit:100,page_number:1,output_fields:{company_name:{enabled:!0,alias:``},company_website_url:{enabled:!0,alias:``},company_description:{enabled:!0,alias:``},company_profile_url:{enabled:!0,alias:``},amplemarket_company_match:{enabled:!0,alias:``}},filters:{company_industries:{include:[],exclude:[]},company_names:{include:[],exclude:[]},company_profile_urls:{include:[],exclude:[]},company_types:[],company_website_urls:{include:[],exclude:[]},customer_types:[],headcount_growth_last_6_months_in_percent:{min:null,max:null},founded_year:{min:null,max:null},revenue_groups:[],investors:[],keywords:{include:[],exclude:[]},open_positions_titles:[],headcount:[],hq_locations:{include:[],exclude:[]}}}}},pS=`companies:profiles:crustdata@1`,mS=_(`company_name`),hS=_(`company_website_url`),gS=_(`company_description`),_S=_(`company_profile_url`),vS=_(`crustdata_company_match`),yS=r.object({search_id:r.literal(pS),connector:v.nullable().optional(),config:r.object({limit:L({path:`config.limit`,min:1,max:100,groupPath:`config.pagination`,required:!0,sectionKey:`pagination`,label:`Limit`,description:`Max number of search results`}),cursor:ya({path:`config.cursor`,groupPath:`config.pagination`,inputType:`text`,label:`Cursor`,sectionKey:`pagination`,description:`Pagination cursor`}),output_fields:R(r.object({[mS.name]:N({fieldName:mS.name}),[hS.name]:N({fieldName:mS.name}),[gS.name]:N({fieldName:gS.name}),[_S.name]:N({fieldName:_S.name}),[vS.name]:N({fieldName:vS.name})})),filters:r.object({hq_locations:I({path:`config.filters.hq_locations`,sectionKey:`config.filters`,label:`HQ locations`,description:``,placeholder:Z(`location`),groupPath:`config.filters.location`,optionsDef:g(`locations`)}),crunchbase_categories:I({path:`config.filters.crunchbase_categories`,sectionKey:`config.filters`,label:`Crunchbase categories`,placeholder:Z(`crunchbase_category`),description:``,groupPath:`config.filters.categories`,optionsDef:g(`company.crunchbase_categories.crustdata`)}),crunchbase_investors:I({path:`config.filters.crunchbase_investors`,sectionKey:`config.filters`,label:`Investors to include (Crunchbase)`,description:``,placeholder:Z(`investor`),groupPath:`config.filters.investors`,optionsDef:g(`company.crunchbase_investors.crustdata`)}),tracxn_investors:I({path:`config.filters.tracxn_investors`,sectionKey:`config.filters`,label:`Investors to include (Tracxn)`,description:``,placeholder:Z(`investor`),groupPath:`config.filters.investors`,optionsDef:g(`company.tracxn_investors.crustdata`)}),company_types:M({sectionKey:`config.filters`,path:`config.filters.company_types`,optionsDef:{type:`static`,options:m(`crustdata.company_types`)},label:`Company types`,placeholder:`Public, Private, ...`,description:``,groupPath:`config.filters.categories`}),linkedin_industries:I({sectionKey:`config.filters`,path:`config.filters.linkedin_industries`,optionsDef:g(`linkedin_industries.crustdata`),label:`Industries`,description:``,placeholder:Z(`industry`),groupPath:`config.filters.industry`}),markets:I({sectionKey:`config.filters`,path:`config.filters.markets`,optionsDef:g(`company.markets.crustdata`),placeholder:`NYSE, TYO, ...`,label:`Markets`,description:``,groupPath:`config.filters.industry`}),linkedin_categories:I({sectionKey:`config.filters`,path:`config.filters.linkedin_categories`,optionsDef:g(`company.linkedin_categories.crustdata`),label:`LinkedIn category`,placeholder:`Marketing, Branding, ...`,description:``,groupPath:`config.filters.categories`}),headcount:M({path:`config.filters.headcount`,sectionKey:`config.filters`,label:`Headcount`,description:``,disableSearch:!0,placeholder:`1-10`,optionsDef:{type:`static`,options:m(`crustdata.company_size`)},groupPath:`config.filters.company_size`}),headcount_growth_last_6m_in_percent:P({path:`config.filters.headcount_growth_last_6m_in_percent`,sectionKey:`config.filters`,label:`Headcount growth over last 6 months in percent`,description:``,options:m(`crustdata.headcount_growth`),placeholder:`0-10%`,disableSearch:!0,required:!1,groupPath:`config.filters.company_size`}),revenue_in_usd:ha({path:`config.filters.revenue_in_usd`,sectionKey:`config.filters`,label:`Revenue (USD)`,description:``,legend:`1k - 10B`,min:1e3,max:1e10,groupPath:`config.filters.financials`}),last_funding_type:M({path:`config.filters.last_funding_type`,sectionKey:`config.filters`,label:`Last funding type`,placeholder:`Series A`,disableSearch:!0,optionsDef:{type:`static`,options:m(`crustdata.funding_rounds`)},description:``,groupPath:`config.filters.financials`}),last_funding_amount:ha({path:`config.filters.last_funding_amount`,sectionKey:`config.filters`,label:`Last funding amount`,legend:`1k - 10B`,min:1e3,max:1e10,description:``,groupPath:`config.filters.financials`}),number_of_followers:P({path:`config.filters.number_of_followers`,sectionKey:`config.filters`,label:`Number of LinkedIn followers`,placeholder:`1-500`,disableSearch:!0,description:``,required:!1,options:m(`crustdata.company_followers`),groupPath:`config.filters.web_presence`}),follower_growth_last_6m_in_percent:P({path:`config.filters.follower_growth_last_6m_in_percent`,sectionKey:`config.filters`,label:`LinkedIn follower growth within last 6 months`,required:!1,disableSearch:!0,placeholder:`0-10%`,description:``,options:m(`crustdata.follower_growth`),groupPath:`config.filters.web_presence`}),profile_summary_keywords:j({path:`config.filters.profile_summary_keywords`,sectionKey:`config.filters`,maxItems:50,label:`LinkedIn company description contains`,placeholder:Z(`company_profile_keyword`),description:``,groupPath:`config.filters.keywords`}),competitor_websites:j({path:`config.filters.competitor_websites`,sectionKey:`config.filters`,maxItems:50,label:`Competitor domains`,description:``,placeholder:Z(`company_domain`),groupPath:`config.filters.competitors`,suggestionsDef:g(`company_domains`,{widgets:{emoji:{char:`🌐`}}})})}).check(e=>{wx(e.value)&&e.issues.push({code:`custom`,message:`You must set at least one filter.`,input:e.value})})})}),bS={default:{input:[{fields:[]}]}},xS=class extends Ex{searchId=pS;schema=yS;payload;constructor(e){super(),this.payload=this.validatePayload(e)}getRawOutputFields(){return{[mS.name]:this.catalogOutput(mS),[hS.name]:this.catalogOutput(hS),[gS.name]:this.catalogOutput(gS),[_S.name]:this.catalogOutput(_S),[vS.name]:this.catalogOutput(vS)}}getConnectionsRequirements(){return[{provider:`crustdata`,rateLimitOperation:`crustdata_company_db_search`,rateLimitRatio:1,allowManagedConnection:!0}]}getDedupConfig(){return bS}},SS=yS,CS={searchId:pS,billableOperation:`companies-profiles-crustdata-v1`,baseSearch:Dx(`companies:profiles:crustdata@1`),label:`Company search`,categories:[`deprecated`],paginationType:`cursor`,hasManagedConnection:!0,allowsUserConnection:!0,lifecycle:{deprecatedOn:`2026-06-13`,replacedBy:`companies:profiles:crustdata@2`},description:`Filter based company search.`,tags:[B.COMPANY_PROFILES],docPath:Ox(pS),cost:{mode:`per_page`,credits:{default:2}},provider:`crustdata`,defaultPayload:{search_id:pS,connector:null,config:{limit:100,cursor:``,output_fields:{company_name:{enabled:!0,alias:``},company_website_url:{enabled:!0,alias:``},company_description:{enabled:!0,alias:``},company_profile_url:{enabled:!0,alias:``},crustdata_company_match:{enabled:!0,alias:``}},filters:{company_types:{include:[],exclude:[]},headcount_growth_last_6m_in_percent:[],last_funding_amount:{from:null,to:null},last_funding_type:{include:[],exclude:[]},linkedin_industries:{include:[],exclude:[]},linkedin_categories:{include:[],exclude:[]},crunchbase_categories:{include:[],exclude:[]},markets:{include:[],exclude:[]},revenue_in_usd:{from:null,to:null},crunchbase_investors:{include:[],exclude:[]},tracxn_investors:{include:[],exclude:[]},follower_growth_last_6m_in_percent:[],headcount:{include:[],exclude:[]},hq_locations:{include:[],exclude:[]},number_of_followers:[],profile_summary_keywords:{include:[],exclude:[]},competitor_websites:{include:[],exclude:[]}}}}},wS=`people:profiles:amplemarket@1`,TS=_(`name`),ES=_(`company_website_url`),DS=_(`profile_url`),OS=_(`job_title`),kS=_(`amplemarket_person_match`),AS=r.object({search_id:r.literal(wS),connector:v.nullable().optional(),config:r.object({limit:L({path:`config.limit`,min:1,max:100,groupPath:`config.pagination`,required:!0,label:`Limit`,sectionKey:`pagination`,description:`Max number of search results`}),page_number:L({path:`config.page_number`,groupPath:`config.pagination`,required:!1,label:`Page number`,min:1,sectionKey:`pagination`,description:``}),output_fields:R(r.object({[TS.name]:N({fieldName:TS.name}),[ES.name]:N({fieldName:ES.name}),[DS.name]:N({fieldName:DS.name}),[OS.name]:N({fieldName:OS.name}),[kS.name]:N({fieldName:kS.name})})),filters:r.object({person_names:A({label:`Full name`,path:`config.filters.person_names`,sectionKey:`config.filters`,groupPath:`config.filters.general`}),current_locations:I({path:`config.filters.current_locations`,sectionKey:`config.filters`,label:`Location`,optionsDef:g(`locations`),groupPath:`config.filters.general`}),current_job_titles:A({path:`config.filters.current_job_titles`,sectionKey:`config.filters`,label:`Title`,placeholder:Z(`title`),description:``,order:1,groupPath:`config.filters.current_employer`,suggestionsDef:g(`titles`)}),current_seniority_levels:P({path:`config.filters.current_seniority_levels`,sectionKey:`config.filters`,placeholder:Z(`seniority`),label:`Seniority`,required:!1,disableSearch:!1,options:m(`amplemarket.seniority_levels`),description:``,groupPath:`config.filters.current_employer`}),current_departments:P({path:`config.filters.current_departments`,sectionKey:`config.filters`,label:`Department`,placeholder:Z(`department`),disableSearch:!1,required:!1,options:m(`amplemarket.departments`),description:``,groupPath:`config.filters.current_employer`}),current_job_functions:P({path:`config.filters.current_job_functions`,sectionKey:`config.filters`,label:`Job function`,placeholder:Z(`job_function`),disableSearch:!1,required:!1,options:m(`amplemarket.job_functions`),description:``,groupPath:`config.filters.current_employer`}),current_employer_locations:I({path:`config.filters.current_employer_locations`,sectionKey:`config.filters`,label:`Headquarters`,optionsDef:g(`locations`),groupPath:`config.filters.current_company`,placeholder:Z(`location`)}),current_employer_names:j({path:`config.filters.current_employer_names`,sectionKey:`config.filters`,label:`Company name`,groupPath:`config.filters.current_company`,description:``,placeholder:Z(`company_name`),suggestionsDef:g(`company_names`)}),current_employer_website_urls:j({path:`config.filters.current_employer_website_urls`,sectionKey:`config.filters`,label:`Company domain`,description:``,maxItems:200,placeholder:Z(`company_domain`),groupPath:`config.filters.current_company`,suggestionsDef:g(`company_domains`,{widgets:{emoji:{char:`🌐`}}})}),current_employer_linkedin_industries:P({path:`config.filters.current_employer_linkedin_industries`,sectionKey:`config.filters`,label:`Industry`,disableSearch:!1,groupPath:`config.filters.current_company`,description:``,placeholder:Z(`industry`),required:!1,options:m(`linkedin.industries`)}),current_employer_estimated_revenue:P({path:`config.filters.current_employer_estimated_revenue`,sectionKey:`config.filters`,label:`Estimated revenue`,disableSearch:!1,required:!1,groupPath:`config.filters.current_company`,description:``,options:m(`amplemarket.company_revenue`)}),current_employer_founded_year:pa({path:`config.filters.current_employer_founded_year`,sectionKey:`config.filters`,label:`Founded year`,groupPath:`config.filters.current_company`,min:0,max:2040,required:!1,description:``}),current_employer_investors:A({path:`config.filters.current_employer_investors`,sectionKey:`config.filters`,label:`Employer investors`,groupPath:`config.filters.current_company`,placeholder:Z(`investor`),description:``}),current_employer_open_positions_titles:A({path:`config.filters.current_employer_open_positions_titles`,sectionKey:`config.filters`,label:`Open positions`,groupPath:`config.filters.current_company`,description:``,placeholder:Z(`title`),suggestionsDef:g(`titles`)}),school_names:I({path:`config.filters.school_names`,sectionKey:`config.filters`,label:`School names`,description:``,placeholder:Z(`school`),groupPath:`config.filters.education`,optionsDef:g(`schools`)})}).check(e=>{wx(e.value)&&e.issues.push({code:`custom`,message:`You must set at least one filter.`,input:e.value})})})}),jS={default:{input:[{fields:[]}]}},MS=class extends Ex{searchId=wS;schema=AS;payload;constructor(e){super(),this.payload=this.validatePayload(e)}getRawOutputFields(){return{[TS.name]:this.catalogOutput(TS),[ES.name]:this.catalogOutput(ES),[DS.name]:this.catalogOutput(DS),[OS.name]:this.catalogOutput(OS),[kS.name]:this.catalogOutput(kS)}}getConnectionsRequirements(){return[{provider:`amplemarket`,rateLimitOperation:`amplemarket_people_search`,rateLimitRatio:1,allowManagedConnection:!0}]}getDedupConfig(){return jS}},NS=AS,PS={searchId:wS,billableOperation:`people-profiles-amplemarket-v1`,baseSearch:Dx(`people:profiles:amplemarket@1`),paginationType:`page_number`,label:`People search`,categories:[`deprecated`],hasManagedConnection:!0,allowsUserConnection:!0,lifecycle:{deprecatedOn:`2026-06-13`,replacedBy:`people:profiles:amplemarket@2`},description:`Filter-based people search.`,tags:[B.PEOPLE_PROFILES],docPath:Ox(wS),cost:{mode:`per_page`,credits:{default:3},info:`1 page = 100 records; 200 results = 2 pages`},provider:`amplemarket`,defaultPayload:{search_id:wS,connector:null,config:{limit:50,page_number:1,output_fields:{name:{enabled:!0,alias:``},job_title:{enabled:!0,alias:``},profile_url:{enabled:!0,alias:``},company_website_url:{enabled:!0,alias:``},amplemarket_person_match:{enabled:!0,alias:``}},filters:{current_employer_names:{include:[],exclude:[]},current_departments:[],current_employer_locations:{include:[],exclude:[]},person_names:[],current_employer_founded_year:{min:null,max:null},current_employer_estimated_revenue:[],current_employer_investors:[],current_employer_open_positions_titles:[],current_job_functions:[],current_locations:{include:[],exclude:[]},current_employer_linkedin_industries:[],current_employer_website_urls:{include:[],exclude:[]},current_seniority_levels:[],school_names:{include:[],exclude:[]},current_job_titles:[]}}}},FS=`people:profiles:crustdata@1`,IS=_(`name`),LS=_(`company_website_url`),RS=_(`profile_url`),zS=_(`job_title`),BS=_(`crustdata_person_match`),VS=r.object({search_id:r.literal(FS),connector:v.nullable().optional(),config:r.object({limit:L({path:`config.limit`,min:1,max:100,groupPath:`config.pagination`,required:!0,sectionKey:`pagination`,label:`Limit`,description:`Max number of search results`}),cursor:ya({path:`config.cursor`,groupPath:`config.pagination`,inputType:`text`,label:`Cursor`,sectionKey:`pagination`,description:`Pagination cursor`}),output_fields:R(r.object({[IS.name]:N({fieldName:IS.name}),[LS.name]:N({fieldName:LS.name}),[RS.name]:N({fieldName:RS.name}),[zS.name]:N({fieldName:zS.name}),[BS.name]:N({fieldName:BS.name})})),filters:r.object({locations:I({path:`config.filters.locations`,sectionKey:`config.filters`,label:`Location`,placeholder:Z(`location`),optionsDef:g(`locations`),groupPath:`config.filters.general`}),current_job_titles:j({path:`config.filters.current_job_titles`,sectionKey:`config.filters`,label:`Title`,description:``,placeholder:Z(`title`),order:1,groupPath:`config.filters.current_employer`,suggestionsDef:g(`titles`)}),current_employers:j({path:`config.filters.current_employers`,sectionKey:`config.filters`,label:`Company name`,description:``,placeholder:Z(`company_name`),maxItems:200,groupPath:`config.filters.current_employer`,suggestionsDef:g(`company_names`,{widgets:{emoji:{char:`🏷️`}}})}),current_employers_website_urls:j({path:`config.filters.current_employers_website_urls`,sectionKey:`config.filters`,label:`Company domain`,placeholder:Z(`company_domain`),description:``,maxItems:200,groupPath:`config.filters.current_employer`,suggestionsDef:g(`company_domains`,{widgets:{emoji:{char:`🌐`}}})}),current_employers_linkedin_industries:I({path:`config.filters.current_employers_linkedin_industries`,sectionKey:`config.filters`,label:`Industry`,groupPath:`config.filters.current_employer`,placeholder:Z(`industry`),description:``,optionsDef:g(`linkedin_industries.crustdata`,{limit:300})}),years_at_current_company:P({path:`config.filters.years_at_current_company`,sectionKey:`config.filters`,label:`Years at current company`,placeholder:`1 to 2 years`,disableSearch:!1,required:!1,groupPath:`config.filters.current_employer`,description:``,options:m(`crustdata.years_of_experience`)}),previous_employers_website_urls:j({path:`config.filters.previous_employers_website_urls`,sectionKey:`config.filters`,label:`Previous employer domain`,description:``,placeholder:Z(`company_domain`),maxItems:200,groupPath:`config.filters.experience`,suggestionsDef:g(`company_domains`,{widgets:{emoji:{char:`🌐`}}})}),previous_seniority_levels:M({path:`config.filters.previous_seniority_levels`,sectionKey:`config.filters`,label:`Previous seniority`,placeholder:Z(`seniority`),disableSearch:!0,optionsDef:h(`crustdata.person_seniority`),description:``,groupPath:`config.filters.experience`}),previous_employers:j({path:`config.filters.previous_employers`,sectionKey:`config.filters`,label:`Previous employer`,description:``,placeholder:Z(`company_name`),maxItems:200,groupPath:`config.filters.experience`,suggestionsDef:g(`company_names`,{widgets:{emoji:{char:`🏷️`}}})}),previous_job_titles:j({path:`config.filters.previous_job_titles`,sectionKey:`config.filters`,label:`Previous title`,description:``,placeholder:Z(`title`),groupPath:`config.filters.experience`,suggestionsDef:g(`titles`)}),previous_employers_linkedin_industries:I({path:`config.filters.previous_employers_linkedin_industries`,sectionKey:`config.filters`,label:`Previous employer industries`,placeholder:Z(`industry`),groupPath:`config.filters.experience`,description:``,optionsDef:g(`linkedin_industries.crustdata`,{limit:300})}),profile_headline_keywords:j({path:`config.filters.profile_headline_keywords`,sectionKey:`config.filters`,label:`Headline contains keywords`,maxItems:100,groupPath:`config.filters.keywords`,placeholder:Z(`headline_keywords`)}),profile_summary_keywords:j({path:`config.filters.profile_summary_keywords`,sectionKey:`config.filters`,label:`Profile about section contains keywords`,maxItems:100,groupPath:`config.filters.keywords`,placeholder:Z(`profile_keywords`)}),profile_languages:M({path:`config.filters.profile_languages`,sectionKey:`config.filters`,label:`Profile language`,placeholder:Z(`languages`),optionsDef:h(`crustdata.person_profile_languages`),groupPath:`config.filters.general`}),languages:M({path:`config.filters.languages`,sectionKey:`config.filters`,label:`Spoken language`,placeholder:Z(`languages_1`),optionsDef:h(`crustdata.person_profile_languages`),groupPath:`config.filters.general`}),skills:I({path:`config.filters.skills`,sectionKey:`config.filters`,label:`Skills`,description:``,placeholder:Z(`skills`),groupPath:`config.filters.skills`,optionsDef:g(`skills`)}),years_of_experience:P({path:`config.filters.years_of_experience`,sectionKey:`config.filters`,label:`Years of experience`,placeholder:`1 to 2 years`,disableSearch:!0,description:``,required:!1,options:m(`crustdata.years_of_experience`),groupPath:`config.filters.experience`}),current_seniority_levels:M({path:`config.filters.current_seniority_levels`,sectionKey:`config.filters`,disableSearch:!0,label:`Seniority`,placeholder:Z(`seniority`),optionsDef:h(`crustdata.person_seniority`),description:``,groupPath:`config.filters.experience`}),certifications:j({path:`config.filters.certifications`,sectionKey:`config.filters`,label:`Certifications`,groupPath:`config.filters.certifications_honors`,placeholder:Z(`certification`),description:``}),honors:j({path:`config.filters.honors`,sectionKey:`config.filters`,label:`Honors`,groupPath:`config.filters.certifications_honors`,placeholder:Z(`honor`),description:``}),recently_changed_jobs:va({path:`config.filters.recently_changed_jobs`,sectionKey:`config.filters`,label:`Recently changed jobs`,description:``,defaultValue:null,groupPath:`config.filters.activities`}),fields_of_study:I({path:`config.filters.fields_of_study`,sectionKey:`config.filters`,label:`Fields of study`,placeholder:Z(`field_of_study`),description:``,groupPath:`config.filters.education`,optionsDef:g(`person.education_field_of_study.crustdata`)}),degree_names:I({path:`config.filters.degree_names`,sectionKey:`config.filters`,label:`Degree names`,placeholder:Z(`degree_name`),description:``,groupPath:`config.filters.education`,optionsDef:g(`person.education_degree.crustdata`)}),school_names:I({path:`config.filters.school_names`,sectionKey:`config.filters`,label:`School names`,description:``,placeholder:Z(`school`),groupPath:`config.filters.education`,optionsDef:g(`schools`)}),current_school_names:I({path:`config.filters.current_school_names`,sectionKey:`config.filters`,label:`Currently enrolled at`,description:``,placeholder:Z(`school`),groupPath:`config.filters.education`,optionsDef:g(`schools`)}),extracurricular_activities:j({path:`config.filters.extracurricular_activities`,sectionKey:`config.filters`,label:`Extracurricular activities`,description:``,placeholder:Z(`extracurricular`),groupPath:`config.filters.education`,suggestionsDef:g(`person.education_activities.crustdata`)})}).check(e=>{wx(e.value)&&e.issues.push({code:`custom`,message:`You must set at least one filter.`,input:e.value})})})}),HS={default:{input:[{fields:[]}]}},US=class extends Ex{searchId=FS;schema=VS;payload;constructor(e){super(),this.payload=this.validatePayload(e)}getRawOutputFields(){return{[IS.name]:this.catalogOutput(IS),[LS.name]:this.catalogOutput(LS),[RS.name]:this.catalogOutput(RS),[zS.name]:this.catalogOutput(zS),[BS.name]:this.catalogOutput(BS)}}getConnectionsRequirements(){return[{provider:`crustdata`,rateLimitOperation:`crustdata_people_db_search`,rateLimitRatio:1,allowManagedConnection:!0}]}getDedupConfig(){return HS}},WS=VS,GS={searchId:FS,billableOperation:`people-profiles-crustdata-v1`,baseSearch:Dx(`people:profiles:crustdata@1`),paginationType:`cursor`,label:`People search`,categories:[`deprecated`],hasManagedConnection:!0,allowsUserConnection:!0,lifecycle:{deprecatedOn:`2026-06-13`,replacedBy:`people:profiles:crustdata@2`},description:`Filter-based people search.`,tags:[B.PEOPLE_PROFILES],docPath:Ox(FS),cost:{mode:`per_page`,credits:{default:5},info:`1 page = 100 records; 200 results = 2 pages`},provider:`crustdata`,defaultPayload:{search_id:FS,connector:null,config:{limit:100,cursor:``,output_fields:{name:{enabled:!0,alias:``},job_title:{enabled:!0,alias:``},profile_url:{enabled:!0,alias:``},company_website_url:{enabled:!0,alias:``},crustdata_person_match:{enabled:!0,alias:``}},filters:{profile_headline_keywords:{include:[],exclude:[]},languages:{include:[],exclude:[]},profile_summary_keywords:{include:[],exclude:[]},previous_job_titles:{include:[],exclude:[]},current_employers:{include:[],exclude:[]},current_school_names:{include:[],exclude:[]},years_at_current_company:[],certifications:{include:[],exclude:[]},honors:{include:[],exclude:[]},current_employers_linkedin_industries:{include:[],exclude:[]},current_employers_website_urls:{include:[],exclude:[]},previous_employers_website_urls:{include:[],exclude:[]},current_seniority_levels:{include:[],exclude:[]},previous_seniority_levels:{include:[],exclude:[]},degree_names:{include:[],exclude:[]},locations:{include:[],exclude:[]},profile_languages:{include:[],exclude:[]},recently_changed_jobs:null,extracurricular_activities:{include:[],exclude:[]},school_names:{include:[],exclude:[]},fields_of_study:{include:[],exclude:[]},previous_employers:{include:[],exclude:[]},current_job_titles:{include:[],exclude:[]},skills:{include:[],exclude:[]},years_of_experience:[],previous_employers_linkedin_industries:{include:[],exclude:[]}}}}},KS=`people:profiles:amplemarket@2`,qS=_(`name`),JS=_(`company_domain`),YS=_(`profile_url`),XS=_(`job_title`),ZS=_(`amplemarket_person_match`),QS=r.object({search_id:r.literal(KS),connector:v.nullable().optional(),config:r.object({limit:L({path:`config.limit`,min:1,max:100,groupPath:`config.pagination`,required:!0,label:`Limit`,sectionKey:`pagination`,description:`Max number of search results`}),page_number:L({path:`config.page_number`,groupPath:`config.pagination`,required:!1,label:`Page number`,min:1,sectionKey:`pagination`,description:``}),output_fields:R(r.object({[qS.name]:N({fieldName:qS.name}),[JS.name]:N({fieldName:JS.name}),[YS.name]:N({fieldName:YS.name}),[XS.name]:N({fieldName:XS.name}),[ZS.name]:N({fieldName:ZS.name})})),filters:r.object({person_names:A({label:`Full name`,path:`config.filters.person_names`,sectionKey:`config.filters`,groupPath:`config.filters.general`}),current_locations:I({path:`config.filters.current_locations`,sectionKey:`config.filters`,label:`Location`,optionsDef:g(`locations`),groupPath:`config.filters.general`}),current_job_titles:A({path:`config.filters.current_job_titles`,sectionKey:`config.filters`,label:`Title`,placeholder:Z(`title`),description:``,order:1,groupPath:`config.filters.current_employer`,suggestionsDef:g(`titles`)}),current_seniority_levels:P({path:`config.filters.current_seniority_levels`,sectionKey:`config.filters`,placeholder:Z(`seniority`),label:`Seniority`,required:!1,disableSearch:!1,options:m(`amplemarket.seniority_levels`),description:``,groupPath:`config.filters.current_employer`}),current_departments:P({path:`config.filters.current_departments`,sectionKey:`config.filters`,label:`Department`,placeholder:Z(`department`),disableSearch:!1,required:!1,options:m(`amplemarket.departments`),description:``,groupPath:`config.filters.current_employer`}),current_job_functions:P({path:`config.filters.current_job_functions`,sectionKey:`config.filters`,label:`Job function`,placeholder:Z(`job_function`),disableSearch:!1,required:!1,options:m(`amplemarket.job_functions`),description:``,groupPath:`config.filters.current_employer`}),current_employer_locations:I({path:`config.filters.current_employer_locations`,sectionKey:`config.filters`,label:`Headquarters`,optionsDef:g(`locations`),groupPath:`config.filters.current_company`,placeholder:Z(`location`)}),current_employer_names:j({path:`config.filters.current_employer_names`,sectionKey:`config.filters`,label:`Company name`,groupPath:`config.filters.current_company`,description:``,placeholder:Z(`company_name`),suggestionsDef:g(`company_names`)}),current_employer_domains:j({path:`config.filters.current_employer_domains`,sectionKey:`config.filters`,label:`Company domain`,description:``,maxItems:200,placeholder:Z(`company_domain`),groupPath:`config.filters.current_company`,suggestionsDef:g(`company_domains`,{widgets:e=>({logo_url:{url:kx(e.value)}})})}),current_employer_linkedin_industries:P({path:`config.filters.current_employer_linkedin_industries`,sectionKey:`config.filters`,label:`Industry`,disableSearch:!1,groupPath:`config.filters.current_company`,description:``,placeholder:Z(`industry`),required:!1,options:m(`linkedin.industries`)}),current_employer_estimated_revenue:P({path:`config.filters.current_employer_estimated_revenue`,sectionKey:`config.filters`,label:`Estimated revenue`,disableSearch:!1,required:!1,groupPath:`config.filters.current_company`,description:``,options:m(`amplemarket.company_revenue`)}),current_employer_founded_year:pa({path:`config.filters.current_employer_founded_year`,sectionKey:`config.filters`,label:`Founded year`,groupPath:`config.filters.current_company`,min:0,max:2040,required:!1,description:``}),current_employer_investors:A({path:`config.filters.current_employer_investors`,sectionKey:`config.filters`,label:`Employer investors`,groupPath:`config.filters.current_company`,placeholder:Z(`investor`),description:``}),current_employer_open_position_titles:A({path:`config.filters.current_employer_open_position_titles`,sectionKey:`config.filters`,label:`Open positions`,groupPath:`config.filters.current_company`,description:``,placeholder:Z(`title`),suggestionsDef:g(`titles`)}),school_names:I({path:`config.filters.school_names`,sectionKey:`config.filters`,label:`School names`,description:``,placeholder:Z(`school`),groupPath:`config.filters.education`,optionsDef:g(`schools`)})}).check(e=>{wx(e.value)&&e.issues.push({code:`custom`,message:`You must set at least one filter.`,input:e.value})})})}),$S={default:{input:[{fields:[]}]}},eC=class extends Ex{searchId=KS;schema=QS;payload;constructor(e){super(),this.payload=this.validatePayload(e)}getRawOutputFields(){return{[qS.name]:this.catalogOutput(qS),[JS.name]:this.catalogOutput(JS),[YS.name]:this.catalogOutput(YS),[XS.name]:this.catalogOutput(XS),[ZS.name]:this.catalogOutput(ZS)}}getConnectionsRequirements(){return[{provider:`amplemarket`,rateLimitOperation:`amplemarket_people_search`,rateLimitRatio:1,allowManagedConnection:!0}]}getDedupConfig(){return $S}},tC=QS,nC={searchId:KS,billableOperation:`people-profiles-amplemarket-v2`,baseSearch:Dx(`people:profiles:amplemarket@2`),paginationType:`page_number`,label:`People search`,categories:[`people`],hasManagedConnection:!0,allowsUserConnection:!0,lifecycle:null,description:`Filter-based people search.`,tags:[B.PEOPLE_PROFILES],docPath:Ox(KS),cost:{mode:`per_page`,credits:{default:3},info:`1 page = 100 records; 200 results = 2 pages`},provider:`amplemarket`,defaultPayload:{search_id:KS,connector:null,config:{limit:50,page_number:1,output_fields:{name:{enabled:!0,alias:``},job_title:{enabled:!0,alias:``},profile_url:{enabled:!0,alias:``},company_domain:{enabled:!0,alias:``},amplemarket_person_match:{enabled:!0,alias:``}},filters:{current_employer_names:{include:[],exclude:[]},current_departments:[],current_employer_locations:{include:[],exclude:[]},person_names:[],current_employer_founded_year:{min:null,max:null},current_employer_estimated_revenue:[],current_employer_investors:[],current_employer_open_position_titles:[],current_job_functions:[],current_locations:{include:[],exclude:[]},current_employer_linkedin_industries:[],current_employer_domains:{include:[],exclude:[]},current_seniority_levels:[],school_names:{include:[],exclude:[]},current_job_titles:[]}}}},rC=`people:profiles:crustdata@2`,iC=_(`name`),aC=_(`company_domain`),oC=_(`profile_url`),sC=_(`job_title`),cC=_(`crustdata_person_match`),lC=r.object({search_id:r.literal(rC),connector:v.nullable().optional(),config:r.object({limit:L({path:`config.limit`,min:1,max:100,groupPath:`config.pagination`,required:!0,sectionKey:`pagination`,label:`Limit`,description:`Max number of search results`}),cursor:ya({path:`config.cursor`,groupPath:`config.pagination`,inputType:`text`,label:`Cursor`,sectionKey:`pagination`,description:`Pagination cursor`}),output_fields:R(r.object({[iC.name]:N({fieldName:iC.name}),[aC.name]:N({fieldName:aC.name}),[oC.name]:N({fieldName:oC.name}),[sC.name]:N({fieldName:sC.name}),[cC.name]:N({fieldName:cC.name})})),filters:r.object({locations:I({path:`config.filters.locations`,sectionKey:`config.filters`,label:`Location`,placeholder:Z(`location`),optionsDef:g(`locations`),groupPath:`config.filters.general`}),current_job_titles:j({path:`config.filters.current_job_titles`,sectionKey:`config.filters`,label:`Title`,description:``,placeholder:Z(`title`),order:1,groupPath:`config.filters.current_employer`,suggestionsDef:g(`titles`)}),current_employer_names:j({path:`config.filters.current_employer_names`,sectionKey:`config.filters`,label:`Company name`,description:``,placeholder:Z(`company_name`),maxItems:200,groupPath:`config.filters.current_employer`,suggestionsDef:g(`company_names`,{widgets:{emoji:{char:`🏷️`}}})}),current_employer_domains:j({path:`config.filters.current_employer_domains`,sectionKey:`config.filters`,label:`Company domain`,placeholder:Z(`company_domain`),description:``,maxItems:200,groupPath:`config.filters.current_employer`,suggestionsDef:g(`company_domains`,{widgets:e=>({logo_url:{url:kx(e.value)}})})}),current_employer_industries:I({path:`config.filters.current_employer_industries`,sectionKey:`config.filters`,label:`Industry`,groupPath:`config.filters.current_employer`,placeholder:Z(`industry`),description:``,optionsDef:g(`linkedin_industries.crustdata`,{limit:300})}),years_at_current_company:P({path:`config.filters.years_at_current_company`,sectionKey:`config.filters`,label:`Years at current company`,placeholder:`1 to 2 years`,disableSearch:!1,required:!1,groupPath:`config.filters.current_employer`,description:``,options:m(`crustdata.years_of_experience`)}),previous_employer_domains:j({path:`config.filters.previous_employer_domains`,sectionKey:`config.filters`,label:`Previous employer domain`,description:``,placeholder:Z(`company_domain`),maxItems:200,groupPath:`config.filters.experience`,suggestionsDef:g(`company_domains`,{widgets:e=>({logo_url:{url:kx(e.value)}})})}),previous_seniority_levels:M({path:`config.filters.previous_seniority_levels`,sectionKey:`config.filters`,label:`Previous seniority`,placeholder:Z(`seniority`),disableSearch:!0,optionsDef:h(`crustdata.person_seniority`),description:``,groupPath:`config.filters.experience`}),previous_employer_names:j({path:`config.filters.previous_employer_names`,sectionKey:`config.filters`,label:`Previous employer`,description:``,placeholder:Z(`company_name`),maxItems:200,groupPath:`config.filters.experience`,suggestionsDef:g(`company_names`,{widgets:{emoji:{char:`🏷️`}}})}),previous_job_titles:j({path:`config.filters.previous_job_titles`,sectionKey:`config.filters`,label:`Previous title`,description:``,placeholder:Z(`title`),groupPath:`config.filters.experience`,suggestionsDef:g(`titles`)}),previous_employer_industries:I({path:`config.filters.previous_employer_industries`,sectionKey:`config.filters`,label:`Previous employer industries`,placeholder:Z(`industry`),groupPath:`config.filters.experience`,description:``,optionsDef:g(`linkedin_industries.crustdata`,{limit:300})}),profile_headline_keywords:j({path:`config.filters.profile_headline_keywords`,sectionKey:`config.filters`,label:`Headline contains keywords`,maxItems:100,groupPath:`config.filters.keywords`,placeholder:Z(`headline_keywords`)}),profile_summary_keywords:j({path:`config.filters.profile_summary_keywords`,sectionKey:`config.filters`,label:`Profile about section contains keywords`,maxItems:100,groupPath:`config.filters.keywords`,placeholder:Z(`profile_keywords`)}),profile_languages:M({path:`config.filters.profile_languages`,sectionKey:`config.filters`,label:`Profile language`,placeholder:Z(`languages`),optionsDef:h(`crustdata.person_profile_languages`),groupPath:`config.filters.general`}),languages:M({path:`config.filters.languages`,sectionKey:`config.filters`,label:`Spoken language`,placeholder:Z(`languages_1`),optionsDef:h(`crustdata.person_profile_languages`),groupPath:`config.filters.general`}),skills:I({path:`config.filters.skills`,sectionKey:`config.filters`,label:`Skills`,description:``,placeholder:Z(`skills`),groupPath:`config.filters.skills`,optionsDef:g(`skills`)}),years_of_experience:P({path:`config.filters.years_of_experience`,sectionKey:`config.filters`,label:`Years of experience`,placeholder:`1 to 2 years`,disableSearch:!0,description:``,required:!1,options:m(`crustdata.years_of_experience`),groupPath:`config.filters.experience`}),current_seniority_levels:M({path:`config.filters.current_seniority_levels`,sectionKey:`config.filters`,disableSearch:!0,label:`Seniority`,placeholder:Z(`seniority`),optionsDef:h(`crustdata.person_seniority`),description:``,groupPath:`config.filters.experience`}),certifications:j({path:`config.filters.certifications`,sectionKey:`config.filters`,label:`Certifications`,groupPath:`config.filters.certifications_honors`,placeholder:Z(`certification`),description:``}),honors:j({path:`config.filters.honors`,sectionKey:`config.filters`,label:`Honors`,groupPath:`config.filters.certifications_honors`,placeholder:Z(`honor`),description:``}),recently_changed_jobs:va({path:`config.filters.recently_changed_jobs`,sectionKey:`config.filters`,label:`Recently changed jobs`,description:``,defaultValue:null,groupPath:`config.filters.activities`}),fields_of_study:I({path:`config.filters.fields_of_study`,sectionKey:`config.filters`,label:`Fields of study`,placeholder:Z(`field_of_study`),description:``,groupPath:`config.filters.education`,optionsDef:g(`person.education_field_of_study.crustdata`)}),degree_names:I({path:`config.filters.degree_names`,sectionKey:`config.filters`,label:`Degree names`,placeholder:Z(`degree_name`),description:``,groupPath:`config.filters.education`,optionsDef:g(`person.education_degree.crustdata`)}),school_names:I({path:`config.filters.school_names`,sectionKey:`config.filters`,label:`School names`,description:``,placeholder:Z(`school`),groupPath:`config.filters.education`,optionsDef:g(`schools`)}),current_school_names:I({path:`config.filters.current_school_names`,sectionKey:`config.filters`,label:`Currently enrolled at`,description:``,placeholder:Z(`school`),groupPath:`config.filters.education`,optionsDef:g(`schools`)}),extracurricular_activities:j({path:`config.filters.extracurricular_activities`,sectionKey:`config.filters`,label:`Extracurricular activities`,description:``,placeholder:Z(`extracurricular`),groupPath:`config.filters.education`,suggestionsDef:g(`person.education_activities.crustdata`)})}).check(e=>{wx(e.value)&&e.issues.push({code:`custom`,message:`You must set at least one filter.`,input:e.value})})})}),uC={default:{input:[{fields:[]}]}},dC=class extends Ex{searchId=rC;schema=lC;payload;constructor(e){super(),this.payload=this.validatePayload(e)}getRawOutputFields(){return{[iC.name]:this.catalogOutput(iC),[aC.name]:this.catalogOutput(aC),[oC.name]:this.catalogOutput(oC),[sC.name]:this.catalogOutput(sC),[cC.name]:this.catalogOutput(cC)}}getConnectionsRequirements(){return[{provider:`crustdata`,rateLimitOperation:`crustdata_people_db_search`,rateLimitRatio:1,allowManagedConnection:!0}]}getDedupConfig(){return uC}},fC=lC,pC={searchId:rC,billableOperation:`people-profiles-crustdata-v2`,baseSearch:Dx(`people:profiles:crustdata@2`),paginationType:`cursor`,label:`People search`,categories:[`people`],hasManagedConnection:!0,allowsUserConnection:!0,lifecycle:null,description:`Filter-based people search.`,tags:[B.PEOPLE_PROFILES],docPath:Ox(rC),cost:{mode:`per_page`,credits:{default:5},info:`1 page = 100 records; 200 results = 2 pages`},provider:`crustdata`,defaultPayload:{search_id:rC,connector:null,config:{limit:100,cursor:``,output_fields:{name:{enabled:!0,alias:``},job_title:{enabled:!0,alias:``},profile_url:{enabled:!0,alias:``},company_domain:{enabled:!0,alias:``},crustdata_person_match:{enabled:!0,alias:``}},filters:{profile_headline_keywords:{include:[],exclude:[]},languages:{include:[],exclude:[]},profile_summary_keywords:{include:[],exclude:[]},previous_job_titles:{include:[],exclude:[]},current_employer_names:{include:[],exclude:[]},current_school_names:{include:[],exclude:[]},years_at_current_company:[],certifications:{include:[],exclude:[]},honors:{include:[],exclude:[]},current_employer_industries:{include:[],exclude:[]},current_employer_domains:{include:[],exclude:[]},previous_employer_domains:{include:[],exclude:[]},current_seniority_levels:{include:[],exclude:[]},previous_seniority_levels:{include:[],exclude:[]},degree_names:{include:[],exclude:[]},locations:{include:[],exclude:[]},profile_languages:{include:[],exclude:[]},recently_changed_jobs:null,extracurricular_activities:{include:[],exclude:[]},school_names:{include:[],exclude:[]},fields_of_study:{include:[],exclude:[]},previous_employer_names:{include:[],exclude:[]},current_job_titles:{include:[],exclude:[]},skills:{include:[],exclude:[]},years_of_experience:[],previous_employer_industries:{include:[],exclude:[]}}}}},mC={"people:profiles:crustdata@1":US,"people:profiles:crustdata@2":dC,"companies:profiles:crustdata@1":xS,"companies:profiles:crustdata@2":$x,"people:profiles:amplemarket@1":MS,"people:profiles:amplemarket@2":eC,"companies:profiles:amplemarket@1":uS,"companies:profiles:amplemarket@2":Hx},hC={"people:profiles:crustdata@1":WS,"people:profiles:crustdata@2":fC,"companies:profiles:crustdata@1":SS,"companies:profiles:crustdata@2":eS,"people:profiles:amplemarket@1":NS,"people:profiles:amplemarket@2":tC,"companies:profiles:amplemarket@1":dS,"companies:profiles:amplemarket@2":Ux},gC={"people:profiles:crustdata@1":GS,"people:profiles:crustdata@2":pC,"companies:profiles:crustdata@1":CS,"companies:profiles:crustdata@2":tS,"people:profiles:amplemarket@1":PS,"people:profiles:amplemarket@2":nC,"companies:profiles:amplemarket@1":fS,"companies:profiles:amplemarket@2":Wx};function _C(e){return mC[e]}const vC=t.discriminatedUnion(`search_id`,Object.values(hC).map(e=>e)).openapi(`SearchPayloadSchema`);function yC(e,t){return Ca(t,gC[e].defaultPayload)}const bC=t.preprocess(e=>{if(!e||typeof e!=`object`||!(`search_id`in e))return e;let t=yC(e.search_id);return t?{...e,config:Ca(e?.config||{},t.config)}:e},vC),xC=t.object({config:t.object({environment:t.enum([`production`,`sandbox`]).default(`production`),widgets:t.object({enabled:t.boolean().default(!1)}).default({enabled:!1})}).default({environment:`production`,widgets:{enabled:!1}}),search:bC}).openapi(`SearchRequestSchema`),SC=In,CC=t.object({value:Cn,status:Sn,type:bn.optional(),format:zn.nullable().optional(),resolved_by:Gn.nullable().optional(),widgets:Fn.optional()}),wC=t.record(t.string(),CC.nullable());function TC(e){return hC[e]}const EC=t.enum([`cursor`,`page_number`]),DC=t.object({id:t.string(),status:t.enum([`completed`,`failed`,`pending`,`processing`]),search_id:Cx,errors:t.array(SC),results:t.array(wC),organization_id:t.string(),next_page:bC.nullable(),pagination_type:EC.nullable(),total_pages:t.int32().nullable()}).openapi(`SearchResponseSchema`);function OC(e){let t=e.split(`@`)[1];if(!t)throw Error(`No search version found`);return Number(t)}function kC(){let e={};for(let t of Object.values(gC)){let{baseSearch:n}=t;e[n]??=[],e[n].push(t)}return Object.entries(e).forEach(([t,n])=>{e[t]=n.sort((e,t)=>{let n=OC(e.searchId);return OC(t.searchId)-n})}),e}function AC(e){return gC[e]}const jC=kC();function MC(e){let t=[];for(let[n,r]of Object.entries(jC)){let i=r[0];if(!i)throw Error(`Found empty entry`);i.lifecycle?.deprecatedOn&&e!==`deprecated`||(e===null||i.categories.includes(e))&&t.push({...i,baseSearch:n,latestVersion:OC(i.searchId)})}return t}function NC(e){return Object.keys(gC[e].defaultPayload.config.output_fields)}function PC(e,t){let n=e.filter(e=>t===null?!0:e.categories.some(e=>e===t)),r={},i={},a={};for(let e of n){if(e.lifecycle&&e.lifecycle.deprecatedOn){i.Deprecated??=[],i.Deprecated.push(e.searchId);continue}a[e.provider]??=[],a[e.provider].push(e.searchId);for(let t of NC(e.searchId))r[t]??=[],r[t].push(e.searchId);for(let t of e.tags)i[t]??=[],i[t].push(e.searchId)}return{searchIdsByOutputField:r,searchIdsByTag:i,searchIdsByProvider:a,sortedTagEntries:Object.entries(i).sort((e,t)=>e[0].localeCompare(t[0])),sortedOutputFieldEntries:Object.entries(r).sort((e,t)=>e[0].localeCompare(t[0])),sortedProviderEntries:Object.entries(a).sort((e,t)=>e[0].localeCompare(t[0])),searchEntriesByBaseSearch:jC}}function FC(e){let t=AC(e);return{[t.provider]:t.cost.credits.default}}const IC={"prompt:run@1":sb,"company:newssummary:website@1":ml,"company:newssummary:domain@1":cs,"company:techstack:builtwith@1":nu,"company:techstack:builtwith@2":Fs,"company:websiteurl:email@1":du,"company:domain:workemail@1":Za,"company:funding:leadmagic@1":sc,"company:funding:leadmagic@2":fo,"people:workemail:waterfall@1":Em,"person:workemail:waterfall@1":eb,"people:email:iswork@1":bu,"email:iswork@1":Fm,"people:name:split@1":Yd,"person:name:split@1":gv,"people:validate:email:zerobounce@1":$p,"people:email:validate:zerobounce@2":zu,"email:validate:zerobounce@1":uh,"people:mobilenumber:workemail:waterfall@1":zd,"person:name:join@1":ov,"company:overview@1":kl,"company:overview@2":Gl,"company:overview@3":ws,"json:extract:multi@1":dg,"company:lookalikes:companyenrich@1":Rc,"company:lookalikes:companyenrich@2":Mo,"company:match:logodev@1":al,"company:match:logodev@2":$o,"person:posts:crustdata@1":Rv,"people:profile:workemail:crustdata@1":jp,"person:profile:workemail:crustdata@1":ay,"people:identity:email:waterfall@1":od,"person:identity:email:waterfall@1":c_,"person:identity:amplemarket@1":Kg,"email:send:resend@1":eh,"contact:create:resend@1":qs,"email:send:gmail@1":qm,"email:write@1":bh,"fields:merge@1":Xh,"field:slugify@1":Rh,"field:domainify@1":kh,"http:request@1":ag,"template:fill@1":Fb,"message:send:slack@1":yg,"message:write@1":Dg,"people:personalemail:profile:waterfall@1":cf,"person:personalemail:profileurl:waterfall@1":Ov,"website:scrape:firecrawl@1":ux,"website:scrapelist:firecrawl@1":yx,"website:extract:firecrawl@1":Wb,"website:maplinks:firecrawl@1":$b,"sheet:row:append@1":yb,"sheet:row:expandappend@1":Ob,"people:match:role:waterfall@1":_d,"person:match:role:waterfall@1":O_,"company:match:crustdata@1":qc,"company:match:crustdata@2":Vo,"person:match:amplemarket@1":__,"company:identity@2":kc,"company:identity@3":Co,"people:phone:profile:waterfall@1":yf,"person:mobile:profileurl:waterfall@1":z_,"people:phone:workemail:waterfall@1":Af,"person:mobile:workemail:waterfall@1":X_,"people:profile:waterfall@1":xp,"person:profile:waterfall@1":Yv,"people:profileurl:email:waterfall@1":Up,"person:profileurl:email:waterfall@1":_y,"person:profileurl:name@1":Oy,"people:email:validate:zerobounce@1":ku,"person:email:validate:millionverifier@1":Lg,"people:workemail:profileurl:waterfall@1":fm,"person:workemail:profileurl:waterfall@1":By,"company:identity@1":vc,"people:professionalprofile:waterfall@1":Vf,"people:professionalprofileurl:name@1":up,"people:professionalprofileurl:email:waterfall@1":$f,"people:mobilenumber:professionalprofile:waterfall@1":Od},LC={"prompt:run@1":cb,"company:newssummary:website@1":hl,"company:newssummary:domain@1":ls,"company:techstack:builtwith@1":ru,"company:techstack:builtwith@2":Is,"company:websiteurl:email@1":fu,"company:domain:workemail@1":Qa,"company:funding:leadmagic@1":cc,"company:funding:leadmagic@2":po,"people:workemail:waterfall@1":Dm,"person:workemail:waterfall@1":tb,"people:email:iswork@1":xu,"email:iswork@1":Im,"people:name:split@1":Xd,"person:name:split@1":_v,"people:validate:email:zerobounce@1":em,"people:email:validate:zerobounce@2":Bu,"email:validate:zerobounce@1":dh,"people:mobilenumber:workemail:waterfall@1":Bd,"person:name:join@1":sv,"company:overview@1":Al,"company:overview@2":Kl,"company:overview@3":Ts,"json:extract:multi@1":fg,"email:write@1":xh,"fields:merge@1":Zh,"field:slugify@1":zh,"field:domainify@1":Ah,"http:request@1":og,"email:send:resend@1":th,"contact:create:resend@1":Js,"company:lookalikes:companyenrich@1":zc,"company:lookalikes:companyenrich@2":No,"company:match:logodev@1":ol,"company:match:logodev@2":es,"person:posts:crustdata@1":zv,"people:profile:workemail:crustdata@1":Mp,"person:profile:workemail:crustdata@1":oy,"people:identity:email:waterfall@1":sd,"person:identity:email:waterfall@1":l_,"company:match:crustdata@1":Jc,"company:match:crustdata@2":Ho,"person:identity:amplemarket@1":qg,"message:send:slack@1":bg,"email:send:gmail@1":Jm,"message:write@1":Og,"template:fill@1":Ib,"website:scrape:firecrawl@1":dx,"website:scrapelist:firecrawl@1":bx,"website:extract:firecrawl@1":Gb,"website:maplinks:firecrawl@1":ex,"sheet:row:append@1":bb,"sheet:row:expandappend@1":kb,"people:match:role:waterfall@1":vd,"person:match:role:waterfall@1":k_,"company:identity@2":Ac,"company:identity@3":wo,"people:phone:profile:waterfall@1":bf,"person:mobile:profileurl:waterfall@1":B_,"people:personalemail:profile:waterfall@1":lf,"person:personalemail:profileurl:waterfall@1":kv,"people:profile:waterfall@1":Sp,"person:profile:waterfall@1":Xv,"people:profileurl:email:waterfall@1":Wp,"person:profileurl:email:waterfall@1":vy,"person:profileurl:name@1":ky,"people:email:validate:zerobounce@1":Au,"person:email:validate:millionverifier@1":Rg,"people:phone:workemail:waterfall@1":jf,"person:mobile:workemail:waterfall@1":Z_,"people:workemail:profileurl:waterfall@1":pm,"person:workemail:profileurl:waterfall@1":Vy,"person:match:amplemarket@1":v_,"company:identity@1":yc,"people:professionalprofile:waterfall@1":Hf,"people:professionalprofileurl:name@1":dp,"people:professionalprofileurl:email:waterfall@1":ep,"people:mobilenumber:professionalprofile:waterfall@1":kd},RC={"prompt:run@1":lb,"company:newssummary:website@1":gl,"company:newssummary:domain@1":us,"company:techstack:builtwith@1":iu,"company:techstack:builtwith@2":Ls,"company:websiteurl:email@1":pu,"company:domain:workemail@1":$a,"company:funding:leadmagic@1":lc,"company:funding:leadmagic@2":mo,"people:workemail:waterfall@1":Om,"person:workemail:waterfall@1":nb,"people:email:iswork@1":Su,"email:iswork@1":Lm,"people:name:split@1":Zd,"person:name:split@1":vv,"people:validate:email:zerobounce@1":tm,"people:mobilenumber:workemail:waterfall@1":Vd,"person:name:join@1":cv,"company:overview@1":jl,"company:overview@2":ql,"company:overview@3":Es,"json:extract:multi@1":pg,"email:send:resend@1":nh,"contact:create:resend@1":Ys,"email:send:gmail@1":Ym,"message:send:slack@1":xg,"message:write@1":kg,"email:write@1":Sh,"template:fill@1":Lb,"fields:merge@1":Qh,"field:slugify@1":Bh,"field:domainify@1":jh,"http:request@1":sg,"sheet:row:append@1":xb,"sheet:row:expandappend@1":Ab,"company:lookalikes:companyenrich@1":Bc,"company:lookalikes:companyenrich@2":Po,"people:match:role:waterfall@1":yd,"person:match:role:waterfall@1":A_,"company:match:logodev@1":sl,"company:match:logodev@2":ts,"person:posts:crustdata@1":Bv,"people:profile:workemail:crustdata@1":Np,"person:profile:workemail:crustdata@1":sy,"people:workemail:profileurl:waterfall@1":mm,"person:workemail:profileurl:waterfall@1":Hy,"people:identity:email:waterfall@1":cd,"person:identity:email:waterfall@1":u_,"company:match:crustdata@1":Yc,"company:match:crustdata@2":Uo,"person:identity:amplemarket@1":Jg,"email:validate:zerobounce@1":fh,"person:email:validate:millionverifier@1":zg,"people:personalemail:profile:waterfall@1":uf,"person:personalemail:profileurl:waterfall@1":Av,"people:email:validate:zerobounce@1":ju,"people:email:validate:zerobounce@2":Vu,"people:phone:workemail:waterfall@1":Mf,"person:mobile:workemail:waterfall@1":Q_,"website:scrape:firecrawl@1":fx,"website:scrapelist:firecrawl@1":xx,"website:extract:firecrawl@1":Kb,"website:maplinks:firecrawl@1":tx,"person:match:amplemarket@1":y_,"company:identity@2":jc,"company:identity@3":To,"people:phone:profile:waterfall@1":xf,"person:mobile:profileurl:waterfall@1":V_,"people:profile:waterfall@1":Cp,"person:profile:waterfall@1":Zv,"people:profileurl:email:waterfall@1":Gp,"person:profileurl:email:waterfall@1":yy,"person:profileurl:name@1":Ay,"company:identity@1":bc,"people:professionalprofile:waterfall@1":Uf,"people:professionalprofileurl:name@1":fp,"people:professionalprofileurl:email:waterfall@1":tp,"people:mobilenumber:professionalprofile:waterfall@1":Ad};function zC(e){return e.defaultPayload?.config?.output_fields?Object.keys(e.defaultPayload?.config?.output_fields||{}):[]}function BC(e){return IC[e]}function VC(e){return RC[e].defaultPayload}function HC(e){return LC[e]}const UC=r.discriminatedUnion(`pipe_id`,Object.values(LC)).openapi(`PipePayload`),WC=r.preprocess(e=>{if(!e||typeof e!=`object`||!(`pipe_id`in e))return e;try{let t=VC(vn.parse(e.pipe_id));return t?{...e,config:Ca(e?.config||{},t.config)}:e}catch{return e}},UC);function GC(e){return RC[e]}function KC(e,t){let n=GC(e);if(t in n.billableOperations)return n.billableOperations[t];throw Error(`Unable to find billable operation definition for pipeId '${e}' and operation '${t}'`)}function qC(e){let t=e.split(`@`)[1];if(!t)throw Error(`No pipe version found`);return Number(t)}function JC(){let e={};for(let t of Object.values(RC)){let{basePipe:n}=t;e[n]??=[],e[n].push(t)}return Object.entries(e).forEach(([t,n])=>{e[t]=n.sort((e,t)=>{let n=qC(e.pipeId);return qC(t.pipeId)-n})}),e}const YC=e=>{let t=GC(e),n=new Set(t.deprecatedProviders);return Array.from(new Set([...t.managedProviders,...t.allowedUserConnectionProviders])).filter(e=>!n.has(e))},XC=JC();function ZC(e,t){let n=new Map;for(let[t,r]of Object.entries(e))for(let e of Object.keys(r.billableOperations)){let r=n.get(e)??[];r.push(`pipe ${t}`),n.set(e,r)}for(let[e,r]of Object.entries(t)){let t=r.billableOperation,i=n.get(t)??[];i.push(`search ${e}`),n.set(t,i)}let r=[...n.entries()].filter(([,e])=>e.length>1);if(r.length>0){let e=r.map(([e,t])=>` "${e}" used by ${t.join(`, `)}`).join(`
74
74
  `);throw Error(`Catalog has ${r.length} duplicate billable-operation key(s):\n${e}`)}}ZC(RC,gC);function QC(e){let t=[];for(let[n,r]of Object.entries(XC)){let i=r[0];if(!i)throw Error(`Found empty entry`);let a=i.categories;i.lifecycle?.deprecatedOn&&e!==`deprecated`||(e===null||a.includes(e))&&t.push({...i,basePipe:n,latestVersion:qC(i.pipeId)})}return t}function $C(e,t){let n=e.filter(e=>t===null?!0:e.categories.some(e=>e===t)),r={},i={},a={},o={};for(let e of n){let t=YC(e.defaultPayload.pipe_id);for(let n of t)o[n]??=[],o[n].push(e.defaultPayload.pipe_id);for(let t of zC(e))i[t]??=[],i[t].push(e.defaultPayload.pipe_id);if(e.defaultInputRequirement)for(let{field:t}of ka(e.defaultInputRequirement))r[t.name]??=[],r[t.name]?.push(e.defaultPayload.pipe_id);for(let t of e.tags)a[t]??=[],a[t].push(e.defaultPayload.pipe_id)}return{pipeIdsByInputField:r,pipeIdsByOutputField:i,pipeIdsByTag:a,pipeIdsByProvider:o,sortedTagEntries:Object.entries(a).sort((e,t)=>e[0].localeCompare(t[0])),sortedInputFieldEntries:Object.entries(r).sort((e,t)=>e[0].localeCompare(t[0])),sortedOutputFieldEntries:Object.entries(i).sort((e,t)=>e[0].localeCompare(t[0])),sortedProviderEntries:Object.entries(o).sort((e,t)=>e[0].localeCompare(t[0])),pipeEntriesByBasePipe:XC}}const ew=r.object({id:r.string(),organization_id:r.string(),order:r.array(xn),field_definitions:Qn,errors:r.array(In),records:r.record(xn,Yn),status:r.enum([`completed`,`failed`,`pending`,`processing`])}).openapi(`PipesResponseSchema`),tw=r.object({environment:gn.default(`production`),widgets:r.object({enabled:r.boolean().default(!1)}).default({enabled:!1}),field_definitions:r.object({enabled:r.boolean()}).default({enabled:!1}),transform:r.object({include_fields:r.enum([`input`,`annotated`])}).default({include_fields:`input`})}).default({environment:`production`,transform:{include_fields:`input`},widgets:{enabled:!1},field_definitions:{enabled:!1}}).openapi(`PipesRequestConfig`),nw=r.object({config:tw.openapi(`PipesRequestConfig`),field_annotations:Vn.optional().openapi(`PipesFieldAnnotations`),pipes:r.array(UC),input:r.array(Jn.openapi(`PipesInputSchema`)),scopes:r.array(r.string()).optional()});function rw(e){let t=GC(e);return Object.values(t.billableOperations).reduce((e,t)=>{let n=t.allowManagedConnection?t.credits.default:0;return e[t.provider]??=n,e[t.provider]=Math.min(e[t.provider],n),e},{})}const iw={"config.prompt":{order:1,label:`Prompt`,iconKey:`sparkles`,defaultExpand:!0},"config.general":{order:0,label:`General`,iconKey:`mix`,defaultExpand:!0},"config.advanced":{order:0,label:`Advanced`,iconKey:`sliders`,defaultExpand:!0},"config.input_fields":{order:0,label:`Input config`,description:`Point pipe inputs to new fields.`,iconKey:`input`,defaultExpand:!1},connector:{order:100,label:`Custom connections`,iconKey:`plug`,defaultExpand:!1},"config.extraction":{order:0,label:`Extraction`,iconKey:`code`,defaultExpand:!0},run_if:{order:99,label:`Run IF`,iconKey:`workflow`,defaultExpand:!1},"config.email":{order:3,label:`Email`,iconKey:`mail`,defaultExpand:!0},"config.json_extraction":{order:1,label:`Extract fields`,iconKey:`braces`,defaultExpand:!0},"config.providers":{order:1,label:`Providers`,iconKey:`tags`,defaultExpand:!0},"config.output_fields":{order:10,label:`Output config`,description:`Toggle or rename output fields.`,iconKey:`output`,defaultExpand:!1}},aw={general:{type:`form_section`,path:`general`,label:`Behavior`,description:`How this pipe runs and selects providers.`},pagination:{type:`form_section`,path:`pagination`,label:`Behavior`},pipe_io:{type:`form_section`,path:``,label:`I/O & conditions`},"config.filters":{type:`form_section`,path:`config.filters`,label:`I/O & conditions`}},ow={general:1,pagination:2,"config.input_fields":10,"config.pipe_io":11,"config.output_fields":12,"config.extractions":13,"config.filters":14,conditions:15,connector:16};function sw(e){let t=HC(e),n=[];function i(e){let t=y.get(e);if(t&&typeof t!=`function`)(t.type===`context_select_input`||t.type===`tagged_text_input`)&&t.optionsDef&&n.push(t);else if(typeof t==`function`){let e=t.staticMeta;e&&e.type===`tagged_text_input`&&e.optionsDef&&n.push(e)}if(typeof e==`object`&&e&&`unwrap`in e&&typeof e.unwrap==`function`&&i(e.unwrap()),e instanceof r.ZodObject)for(let t of Object.values(e.shape))i(t)}return i(t),n}function cw({pipePayload:e,validationContext:t,sectionOrder:n=ow,store:r,groupPathMatch:i=iw,formResolvers:a}){let o=HC(e.pipe_id),s=Fa(e.pipe_id,e.config||{});return Bi({schema:o,groupPathMatch:i,extractFromSchema:n=>{let i=y.get(n);if(r.field_options??={},i)return i&&typeof i==`function`?i({validationContext:t,pipePayload:e,userConnections:`connections`in r.field_options?(r.field_options.connections.options||[]).map(e=>{let t=e.widgets?.provider_logo?.provider;if(!t)throw Error(`Option is missing provider type'`);return{public_id:e.value,provider:t}}):[],pipeEntry:GC(e.pipe_id),hash:s}):i},sectionOrder:n,sectionMap:aw,store:r,formResolvers:a})}const lw={"config.pagination":{order:0,label:`Pagination`,iconKey:`list`,defaultExpand:!0},"config.prompt":{order:1,label:`Prompt`,iconKey:`sparkles`,defaultExpand:!0},"config.general":{order:0,label:`General`,iconKey:`mix`,defaultExpand:!0},"config.advanced":{order:0,label:`Advanced`,iconKey:`sliders`,defaultExpand:!0},"config.continue_existing_search":{order:0,label:`Continue existing search`,iconKey:`history`,defaultExpand:!1},"config.output_fields":{order:10,label:`Outputs`,iconKey:`output`,defaultExpand:!1},"config.filters.query":{order:2,label:`Query`,iconKey:`text`,defaultExpand:!0},"config.filters.personal_information":{label:`Personal information`,order:6,iconKey:`user`,defaultExpand:!1},"config.filters.job_information":{label:`Job information`,order:6,iconKey:`job`,defaultExpand:!1},"config.filters.company_information":{order:1,label:`Company information`,iconKey:`office`,defaultExpand:!1},"config.filters.education":{label:`Education`,iconKey:`school`,defaultExpand:!1},"config.filters.geografic":{label:`Location`,iconKey:`location`,defaultExpand:!1},"config.filters.location":{label:`Location`,iconKey:`location`,defaultExpand:!1},"config.filters.general":{label:`General`,iconKey:`filter`,defaultExpand:!1,order:1},"config.filters.job_openings":{label:`Job openings`,iconKey:`calendar`,defaultExpand:!1},"config.filters.website":{label:`Website`,iconKey:`web`,defaultExpand:!1},"config.filters.web_presence":{label:`Web presence`,iconKey:`web`,defaultExpand:!1},"config.filters.keywords":{label:`Keywords`,iconKey:`tags`,defaultExpand:!1},"config.filters.competitors":{label:`Competitors`,iconKey:`cometition`,defaultExpand:!1},"config.filters.categories":{label:`Categories`,iconKey:`boxes`,defaultExpand:!1},"config.filters.investors":{label:`Investors`,iconKey:`handshake`,defaultExpand:!1},"config.filters.account_activities":{label:`Account Activities`,iconKey:`activity`,defaultExpand:!1},"config.filters.financials":{label:`Financials`,iconKey:`chart`,defaultExpand:!1},"config.filters.languages":{label:`Languages`,iconKey:`language`,defaultExpand:!1},"config.filters.company_size":{label:`Company size`,iconKey:`office`,defaultExpand:!1},"config.filters.linkedin":{label:`LinkedIn`,iconKey:`linkedin`,defaultExpand:!1},"config.filters.skills":{label:`Skills`,iconKey:`brain`,defaultExpand:!1},"config.filters.activities":{label:`Activities`,iconKey:`bolt`,defaultExpand:!1},"config.filters.certifications_honors":{label:`Certifications & honors`,iconKey:`award`,defaultExpand:!1},"config.filters.profile":{label:`Profile`,iconKey:`contact`,defaultExpand:!1},"config.filters.experience":{label:`Employment history`,iconKey:`history`,defaultExpand:!1},"config.filters.current_employer":{label:`Current job`,iconKey:`briefcase`,defaultExpand:!1},"config.filters.current_company":{label:`Current Company`,iconKey:`office`,defaultExpand:!1},"config.filters.industry":{label:`Industries`,iconKey:`factory`,defaultExpand:!1},"config.filters.general_search":{label:`General search`,iconKey:`search`,defaultExpand:!1}},uw={general:{type:`form_section`,path:`general`,label:`General`,description:`Search settings and pagination.`},pagination:{type:`form_section`,path:`pagination`,label:`General`},"config.filters":{type:`form_section`,path:`config.filters`,label:`Filters`,description:`Narrow the search results.`},pipe_io:{type:`form_section`,path:``,label:`Output fields`}},dw={general:1,pagination:2,"config.filters":10,"config.output_fields":20,"config.input_fields":21,"config.pipe_io":22,"config.extractions":23,conditions:90,connector:91};function fw({searchPayload:e,sectionOrder:t=dw,formContext:n,groupPathMatch:r=lw,formResolvers:i}){return Bi({schema:TC(e.search_id),groupPathMatch:r,extractFromSchema:e=>b.get(e),sectionOrder:t,sectionMap:uw,store:n,formResolvers:i})}const pw=new Proxy({},{get:(e,t)=>e=>e.type===t}),mw=`school.user.location.language.brain.book.web.plug.money.office.job.search.output.input.mix.bill.linkedin.text.workflow.letter.source.activity.boxes.cometition.bolt.star.scholar.briefcase.history.sparkles.list.sliders.factory.award.tags.handshake.contact.mail.calendar.chart.code.braces.filter`.split(`.`),hw=r.enum(mw),gw=r.object({provider_logo:r.object({provider:hn}).optional(),emoji:r.object({char:r.string()}).optional(),icon:r.object({key:hw}).optional(),logo_url:r.object({url:r.string(),alt:r.string().optional()}).optional(),pricing:r.object({credits:r.number()}).optional(),field_type:r.object({type:r.string(),format:r.string().optional()}).optional()}),_w=`providers_input.fields_select_input.json_extraction_input.pipes_run_if_input.connector_input.include_exclude_input.include_exclude_select_input.exact_range_input.range_input.date_range_input.boolean_input.nullable_boolean_input.text_input.template_input.output_field_input.textarea_input.prompt_input.select_input.context_select_input.multi_select_input.min_max_int_input.async_multi_select_input.async_include_exclude_select_input.multi_create_input.ordered_multi_create_input.tagged_ordered_multi_create_input.int_input.number_input.json_schema_input`.split(`.`);r.enum(_w);const vw=r.object({value:r.string(),label:r.string(),widgets:gw.optional()}),yw=r.object({field_options:r.record(r.string(),r.object({options:r.array(vw)}))}),bw=[{id:`people_data`,label:`People`,color:`#8B7DFF`,order:0},{id:`find_people`,label:`Find People`,color:`#A78BFA`,order:1},{id:`company_data`,label:`Company`,color:`#10B981`,order:2},{id:`find_comapnies`,label:`Find Companies`,color:`#34D399`,order:3},{id:`tools`,label:`Tools`,color:`#EAB308`,order:4},{id:`integrations`,label:`Integrations`,color:`#06B6D4`,order:5},{id:`actions`,label:`Actions`,color:`#F97316`,order:6},{id:`deprecated`,label:`Deprecated`,color:`#94A3B8`,order:7}],xw=new Map(bw.map(e=>[e.id,e]));function Sw(e){return xw.get(e)}function Cw(){return bw}const ww={"company:funding:leadmagic@1":[{config:{environment:`production`},pipes:[{pipe_id:`company:funding:leadmagic@1`}],input:[{id:`1`,company_website_url:`https://pipe0.com`}]}],"company:funding:leadmagic@2":[{config:{environment:`production`},pipes:[{pipe_id:`company:funding:leadmagic@2`}],input:[{id:`1`,company_domain:`pipe0.com`}]}],"company:identity@1":[{config:{environment:`production`},pipes:[{pipe_id:`company:identity@1`}],input:[{id:`1`,company_name:`Pipe0`}]}],"company:identity@2":[{config:{environment:`production`},pipes:[{pipe_id:`company:identity@2`,config:{}}],input:[{id:`1`,company_name:`Pipe0`}]}],"company:identity@3":[{config:{environment:`production`},pipes:[{pipe_id:`company:identity@3`,config:{}}],input:[{id:`1`,company_name:`Pipe0`}]}],"company:overview@1":[{config:{environment:`production`},pipes:[{pipe_id:`company:overview@1`}],input:[{id:`1`,company_website_url:`Pipe0`}]}],"people:phone:workemail:waterfall@1":[{config:{environment:`production`},pipes:[{pipe_id:`people:phone:workemail:waterfall@1`}],input:[{id:`1`,work_email:`jane@pipe0.com`}]}],"person:mobile:workemail:waterfall@1":[{config:{environment:`production`},pipes:[{pipe_id:`person:mobile:workemail:waterfall@1`}],input:[{id:`1`,work_email:`jane@pipe0.com`}]}],"people:workemail:waterfall@1":[{config:{environment:`production`},pipes:[{pipe_id:`people:workemail:waterfall@1`}],input:[{id:`1`,name:`John Doe`,company_website_url:`https://pipe0.com`}]}],"person:workemail:waterfall@1":[{config:{environment:`production`},pipes:[{pipe_id:`person:workemail:waterfall@1`}],input:[{id:`1`,name:`John Doe`,company_domain:`pipe0.com`}]}],"company:techstack:builtwith@1":[{config:{environment:`production`},pipes:[{pipe_id:`company:techstack:builtwith@1`}],input:[{id:`1`,company_website_url:`https://pipe0.com`}]}],"company:techstack:builtwith@2":[{config:{environment:`production`},pipes:[{pipe_id:`company:techstack:builtwith@2`}],input:[{id:`1`,company_domain:`pipe0.com`}]}],"prompt:run@1":[{config:{environment:`production`},pipes:[{pipe_id:`prompt:run@1`,config:{model:`openai-gpt-latest`,prompt:{template:`
75
75
  Tell me if {{ name }} fits the ICP criteria for my company <YOUR_COMPANY_NAME>.
76
76