@pipe0/base 0.1.7 โ†’ 0.1.8

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
@@ -36,7 +36,7 @@ Handled sales and operations across 4 cities with multiple direct reportees.
36
36
 
37
37
  Profitably exited by way of stake sale in 2014 but continued to act as advisor until 2017`,location:`Hyderabad Area, India`,start_date:`2011-07-01T00:00:00`,end_date:`2017-07-01T00:00:00`,employer_is_default:!1,seniority_level:`Owner / Partner`,function_category:``,years_at_company:`6 to 10 years`,years_at_company_raw:6,company_headquarters_country:`IND`,company_headcount_range:`51-200`,company_industries:[`Spectator Sports`],company_type:`Educational Institution`,company_headcount_latest:14,company_website:`http://schoolsportsprogram.com`,company_linkedin_profile_url:`https://www.linkedin.com/school/school-sports-program-pvt-ltd-/`},{name:`Mylan`,linkedin_id:`14264`,company_id:1136020,company_linkedin_id:`14264`,company_website_domain:`viatris.com`,position_id:761752838,title:`Manager - Legal`,description:`Oversaw a $ 1.6 billion integration of Agila Pharma. Worked across multiple departments at both companies in Hyderabad and Bangalore as well as external stakeholders such as consultants and lawyers.
38
38
 
39
- Led contract negotiations for $ 5 million EPC contract with a large German multinational`,location:``,start_date:`2014-01-01T00:00:00`,end_date:`2016-01-01T00:00:00`,employer_is_default:!1,seniority_level:`Entry Level Manager`,function_category:`Legal`,years_at_company:`1 to 2 years`,years_at_company_raw:2,company_headquarters_country:`USA`,company_headcount_range:`10001+`,company_industries:[`Pharmaceutical Manufacturing`],company_type:`Public Company`,company_headcount_latest:15226,company_website:`http://www.viatris.com`,company_linkedin_profile_url:`https://www.linkedin.com/company/mylan`}],updated_at:`2025-09-15T18:02:52`},ut=r.array(r.object({backend_urn:r.string(),actor_backend_urn:r.string().nullable(),share_urn:r.string(),share_url:r.string().url(),text:r.string(),actor_name:r.string(),hyperlinks:r.object({company_linkedin_urls:r.array(r.string().url()),person_linkedin_urls:r.array(r.string().url()),other_urls:r.array(r.string().url())}),date_posted:r.string().regex(/^\d{4}-\d{2}-\d{2}$/),total_reactions:r.number().int().min(0),total_comments:r.number().int().min(0),reactions_by_type:r.object({LIKE:r.number().int().min(0).optional(),EMPATHY:r.number().int().min(0).optional(),PRAISE:r.number().int().min(0).optional(),INTEREST:r.number().int().min(0).optional()}),num_shares:r.number().int().min(0),is_repost_without_thoughts:r.boolean(),reactors:r.array(r.unknown()).length(0)})),dt=[{backend_urn:`urn:li:activity:7236812027275419648`,actor_backend_urn:null,share_urn:`urn:li:share:7236812026038083584`,share_url:`https://www.linkedin.com/posts/crustdata_y-combinators-most-popular-startups-from-activity-7236812027275419648-4fyw?utm_source=combined_share_message&utm_medium=member_desktop`,text:`Y Combinator's most popular startups.
39
+ Led contract negotiations for $ 5 million EPC contract with a large German multinational`,location:``,start_date:`2014-01-01T00:00:00`,end_date:`2016-01-01T00:00:00`,employer_is_default:!1,seniority_level:`Entry Level Manager`,function_category:`Legal`,years_at_company:`1 to 2 years`,years_at_company_raw:2,company_headquarters_country:`USA`,company_headcount_range:`10001+`,company_industries:[`Pharmaceutical Manufacturing`],company_type:`Public Company`,company_headcount_latest:15226,company_website:`http://www.viatris.com`,company_linkedin_profile_url:`https://www.linkedin.com/company/mylan`}],updated_at:`2025-09-15T18:02:52`},ut=r.object({sector:r.string().nullable().optional(),subsector:r.string().nullable().optional(),country:r.string().nullable().optional(),state:r.string().nullable().optional(),city:r.string().nullable().optional(),founded_year:r.number().int().nonnegative().nullable().optional(),stage:r.string().nullable().optional(),special_flags:r.array(r.string()).nullable().optional()}),dt={sector:`Auto Tech`,subsector:`Auto IT`,country:`Germany`,state:`Baden-wurttemberg`,city:`Schwenningen`,founded_year:2018,stage:`Acquired`,special_flags:[`Tech`,`Enterprise`,`Software`]},ft=r.object({current_company:r.string().nullable().optional(),headline:r.string().nullable().optional(),connection_count:r.number().int().nonnegative().nullable().optional(),follower_count:r.number().int().nonnegative().nullable().optional(),experience_raw:r.string().nullable().optional()}),pt={current_company:`On`,headline:`Engineering leadership`,connection_count:2396,follower_count:2419,experience_raw:`On 2025-03-01 Head of Engineering Google 2019-04-01 2025-02-01 Staff Software Engineer`},mt=r.array(r.object({backend_urn:r.string(),actor_backend_urn:r.string().nullable(),share_urn:r.string(),share_url:r.string().url(),text:r.string(),actor_name:r.string(),hyperlinks:r.object({company_linkedin_urls:r.array(r.string().url()),person_linkedin_urls:r.array(r.string().url()),other_urls:r.array(r.string().url())}),date_posted:r.string().regex(/^\d{4}-\d{2}-\d{2}$/),total_reactions:r.number().int().min(0),total_comments:r.number().int().min(0),reactions_by_type:r.object({LIKE:r.number().int().min(0).optional(),EMPATHY:r.number().int().min(0).optional(),PRAISE:r.number().int().min(0).optional(),INTEREST:r.number().int().min(0).optional()}),num_shares:r.number().int().min(0),is_repost_without_thoughts:r.boolean(),reactors:r.array(r.unknown()).length(0)})),ht=[{backend_urn:`urn:li:activity:7236812027275419648`,actor_backend_urn:null,share_urn:`urn:li:share:7236812026038083584`,share_url:`https://www.linkedin.com/posts/crustdata_y-combinators-most-popular-startups-from-activity-7236812027275419648-4fyw?utm_source=combined_share_message&utm_medium=member_desktop`,text:`Y Combinator's most popular startups.
40
40
  From the current S24 batch.
41
41
 
42
42
  How do you gauge the buzz around these startups when most are pre-product?
@@ -58,20 +58,20 @@ Here are the most popular startups from YC S24:
58
58
 
59
59
  ๐Ÿค” Interested in reading more about the YC S24 batch?
60
60
 
61
- Read our full breakdown from the link in the comments ๐Ÿ‘‡`,actor_name:`Crustdata`,hyperlinks:{company_linkedin_urls:[],person_linkedin_urls:[`https://www.linkedin.com/in/ACoAAAKoldoBqSsiXY_DHsXdSk1slibabeTvDDY`],other_urls:[]},date_posted:`2024-09-03`,total_reactions:37,total_comments:7,reactions_by_type:{LIKE:28,EMPATHY:4,PRAISE:4,INTEREST:1},num_shares:5,is_repost_without_thoughts:!1,reactors:[]}],ft=r.object({criterion:r.string(),reasoning:r.string(),satisfied:r.enum([`yes`,`no`,`partial`]),references:r.array(r.object({title:r.string(),snippet:r.string(),url:r.url()}))}),pt={criterion:`Company is recognized as a leading AI research lab (e.g., through significant publications, awards, or industry recognition) and has a primary research focus on large language models`,reasoning:`MIT is recognized as a leading AI research lab, particularly through the MIT-IBM Watson AI Lab. They have significant publications and research focused on large language models, as evidenced by news articles and publications from the Media Lab. This satisfies the criterion.`,satisfied:`yes`,references:[{title:`How to build AI scaling laws for efficient LLM training and budget ...`,snippet:`MIT-IBM Watson AI Lab researchers have developed a universal guide for estimating how large language models will perform based on smaller models ...`,url:`https://news.mit.edu/2025/how-build-ai-scaling-laws-efficient-llm-training-budget-maximization-0916`},{title:`Can large language models figure out the real world? | MIT News`,snippet:`Researchers at MIT and Harvard University have devised a new approach to assessing how deeply predictive AI systems understand their subject ...`,url:`https://news.mit.edu/2025/can-large-language-models-figure-out-real-world-0825`},{title:`Like human brains, large language models reason about diverse ...`,snippet:`MIT researchers find large language models process diverse types of data, like different languages, audio inputs, images, etc., similarly to ...`,url:`https://news.mit.edu/2025/large-language-models-reason-about-diverse-data-general-way-0219`},{title:`MIT 6.S191 (Liquid AI): Large Language Models - YouTube`,snippet:`... lab materials: http://introtodeeplearning.comโ€‹โ€‹ Subscribe to stay up to date with new deep learning lectures at MIT, or follow us ...`,url:`https://www.youtube.com/watch?v=_HfdncCbMOE&pp=0gcJCfwAo7VqN5tD`},{title:`Latent Lab: Large Language Models for Knowledge Exploration`,snippet:`This paper investigates the potential of AI models, particularly large language models (LLMs), to support knowledge exploration and augment human creativity ...`,url:`https://www.media.mit.edu/publications/latent-lab-large-language-models-for-knowledge-exploration`},{title:`MIT | LinkedIn`,snippet:`MIT is a Higher Education company (Nonprofit) with 90 (10001+ category) employees, founded in 1861. The MIT community is driven by a shared purpose: to make a better world through education, research, and innovation. We are fun and quirky, elite but ...`,url:`https://www.linkedin.com/company/school-mit`},{title:`Massachusetts Institute of Technology (MIT)`,snippet:`MIT is a Higher Education company (Nonprofit) with 90 (10001+ category) employees, founded in 1861. The MIT community is driven by a shared purpose: to make a better world through education, research, and innovation. We are fun and quirky, elite but ...`,url:`https://mit.edu`}]},mt=r.array(r.object({round:r.string().nullable(),date:r.string().nullable(),amount:r.string().nullable(),investors:r.array(r.object({name:r.string()})).nullable()})),ht=[{round:`Series A`,date:`2021-05-01`,amount:`$250,000,000`,investors:[{name:`Franklin Templeton`},{name:`Coatue`},{name:`Sequoia`},{name:`Thrive Capital`},{name:`Tiger Global`}]},{round:`Series B`,date:`2023-05-01`,amount:`$250,000,000`,investors:[{name:`Franklin Templeton`},{name:`Coatue`},{name:`Sequoia`},{name:`Thrive Capital`},{name:`Tiger Global`}]}],gt=r.object({name:r.string().describe(`Company name`),lid:r.string().nullable().optional().describe(`LinkedIn ID`),urn:r.string().nullable().optional().describe(`Uniform Resource Name identifier`),type:r.string().nullable().optional().describe(`Type of company`),industry:r.string().nullable().optional().describe(`Industry sector`),location:r.string().nullable().optional().describe(`Company location`),numberOfEmployees:r.number().describe(`Number of employees`),website:r.string().nullable().optional().describe(`Company website URL`),url:r.string().nullable().optional().describe(`General company URL`),description:r.string().nullable().optional().describe(`Company description`),specialties:r.array(r.string()).describe(`List of company specialties`),employeeGrowth:r.array(r.unknown()).describe(`Employee growth data`)}),_t={name:`Acme Innovations Inc.`,lid:`12345`,urn:`urn:li:company:12345`,type:`Private`,industry:`Information Technology`,location:`Berlin, Germany`,numberOfEmployees:250,website:`https://www.acme-innovations.com`,url:`https://linkedin.com/company/acme-innovations`,description:`Acme Innovations is a leader in enterprise software solutions, specializing in cloud-based tools for modern businesses.`,specialties:[`Cloud Computing`,`Machine Learning`,`Cybersecurity`],employeeGrowth:[]},vt=r.object({firstname:r.string().nullable().optional().describe(`The person's first name.`),lastname:r.string().nullable().optional().describe(`The person's last name.`),headline:r.string().nullable().optional().describe(`A short professional headline.`),description:r.string().nullable().optional().describe(`A summary or description of the person.`),profileUrl:r.string().nullable().optional().describe(`URL to the person's profile.`),lastJobTitle:r.string().nullable().optional().describe(`Title of the most recent job.`),lastJobDescription:r.string().nullable().optional().describe(`Description of the most recent job.`),lastJobStartDate:r.string().nullable().optional().describe(`Start date of the most recent job.`),address:r.string().nullable().optional().describe(`The person's address.`),lastCompanyName:r.string().nullable().optional().describe(`Name of the most recent company.`),lastCompanyUrn:r.string().nullable().optional().describe(`URN (unique resource name) of the most recent company.`),lastCompanyUrl:r.string().nullable().optional().describe(`URL of the most recent company.`),lastCompanyWebsite:r.string().nullable().optional().describe(`Website of the most recent company.`),lastCompanyDescription:r.string().nullable().optional().describe(`Description of the most recent company.`),lastCompanySize:r.number().nullable().optional().describe(`Size of the most recent company.`),lastCompanyIndustry:r.string().nullable().optional().describe(`Industry of the most recent company.`),lastCompanyAddress:r.string().nullable().optional().describe(`Address of the most recent company.`)}),yt={firstname:`Jane`,lastname:`Doe`,headline:`Software Engineer at Sample`,description:`Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam, eaque ipsa quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt explicabo. Nemo enim ipsam voluptatem quia voluptas sit aspernatur aut odit aut fugit, sed quia consequuntur magni dolores eos qui ratione voluptatem sequi nesciunt. Neque porro quisquam est, qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit, sed quia non numquam eius modi tempora incidunt ut labore et dolore magnam aliquam quaerat voluptatem. Ut enim ad minima veniam, quis nostrum exercitationem ullam corporis suscipit laboriosam, nisi ut aliquid ex ea commodi consequatur?`,profileUrl:`https://www.linkedin.com/in/mayuri2307`,lastJobTitle:`Software Engineer`,lastJobDescription:``,lastJobStartDate:`06-2024`,address:``,lastCompanyName:`Google`,lastCompanyUrn:`urn:li:fs_xxxxCompany:1111`,lastCompanyUrl:`https://www.linkedin.com/company/sample/`,lastCompanyWebsite:`https://sample.com`,lastCompanyDescription:`Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.`,lastCompanySize:183446,lastCompanyIndustry:`Software Development`,lastCompanyAddress:`Mountain View, California, United States`},bt=r.array(r.object({company_name:r.string().nullable(),revenue:r.string().nullable(),headquarters_region:r.string().nullable(),company_website_url:r.url().nullable(),company_type:r.string().nullable()})),xt=[{company_name:`Chorus`,revenue:`$21M`,headquarters_region:`San Francisco, California, USA`,company_type:`private`,company_website_url:`https://www.chorus.ai`}],St=r.array(r.object({company_name:r.string().nullable(),date:r.string().nullable(),company_description:r.string(),source_url:r.url().nullable()})),Ct=[{company_name:`Vayo`,date:`2020-09-01`,company_description:`Vayo is a SaaS-based firm that analyzes, integrates and converts customer data into actionable insights for business`,source_url:`https://techcrunch.com/2020/09/01/fresh-off-200m-series-d-gong-acquires-early-stage-startup-vayo`}],wt=r.array(r.object({title:r.string().nullable(),outlet_name:r.string().nullable(),date:r.string().nullable()})),Tt=[{title:`Gong: Gong Named to the Forbes Cloud 100 for the Fifth Consecutive Year`,outlet_name:`Martech Cube`,date:`2024-08-07`}],Et=r.object({r:r.number().int().min(0).max(255),g:r.number().int().min(0).max(255),b:r.number().int().min(0).max(255),hex:r.string().regex(/^#[0-9a-f]{6}$/i)}),Dt=r.object({facebook:r.url().optional(),github:r.url().optional(),instagram:r.url().optional(),linkedin:r.url().optional(),pinterest:r.url().optional(),reddit:r.url().optional(),snapchat:r.url().optional(),telegram:r.url().optional(),tumblr:r.url().optional(),twitter:r.url().optional(),wechat:r.url().optional(),whatsapp:r.url().optional(),youtube:r.url().optional()}).optional(),Ot=r.object({name:r.string(),domain:r.string(),description:r.string(),indexed_at:r.iso.datetime(),socials:Dt,logo:r.url(),blurhash:r.string(),colors:r.array(Et)}),kt={name:`sweetgreen`,domain:`sweetgreen.com`,description:`Simple, seasonal, healthy salads and grain bowls made in-house from scratch, using whole produce delivered that morning.`,indexed_at:`2025-03-10T11:36:23.885238001Z`,socials:{facebook:`http://facebook.com/sweetgreen`,instagram:`https://www.instagram.com/sweetgreen/`,twitter:`https://x.com/sweetgreen`,linkedin:`https://linkedin.com/company/acmeinc`,pinterest:`https://pinterest.com/`,reddit:`https://reddit.com`},logo:`https://img.logo.dev/sweetgreen.com?token=YOUR_TOKEN_HERE`,blurhash:`UJPanPxr?Vj[oxazj@od_FWDDoodxrodagWD`,colors:[{r:228,g:255,b:85,hex:`#e4ff55`},{r:10,g:75,b:43,hex:`#0a4b2b`},{r:125,g:173,b:80,hex:`#7dad50`}]},At=r.object({email:r.string(),quality:r.enum([``,`good`,`bod`,`risky`]),result:r.enum([`ok`,`catch_all`,`unknown`,`error`,`disposable`,`invalid`]),resultcode:r.int(),subresult:r.string(),free:r.boolean(),role:r.boolean(),didyoumean:r.string(),error:r.string().nullable().optional()}),jt={email:`bademail@gmal.com`,quality:`good`,result:`invalid`,resultcode:6,subresult:`unknown`,free:!1,role:!1,didyoumean:`bademail@gmail.com`,error:``};function Mt(){return`https://i.pravatar.cc/300?u=${crypto.randomUUID()}`}function Nt(e,{isNullEmpty:t}={isNullEmpty:!1}){if(e===null)return!!t;if(e==null||typeof e==`string`&&e.trim()===``||Array.isArray(e)&&e.length===0)return!0;if(typeof e==`object`){for(let n in e)if(Object.hasOwn(e,n)&&!Nt(e[n],{isNullEmpty:t}))return!1;return!0}return!1}function Pt(e){return e.split(`@`)[0]}const Ft=r.object({object:r.literal(`linkedin_profile`).describe(`String representing the objectโ€™s type.`),name:r.string().nullable().describe(`The full name of the profile owner.`),headline:r.string().nullable().describe(`The current headline/tagline of the profile owner.`),profile_url:r.string().nullable().describe(`The URL of the LinkedIn profile.`),profile_picture_url:r.string().nullable().describe(`Url of profile picture`),languages:r.array(r.object({language:r.string().describe(`The name of the language`),level:r.string().nullable().describe(`Level of proficiency`)}).describe(`Language entry object`)).nullable().describe(`A list of languages spoken by the profile owner, with proficiency levels.`),skills:r.array(r.object({name:r.string().describe(`The name of the skill.`),level:r.enum([`beginner`,`intermediate`,`advanced`]).nullable().describe(`The proficiency level of the skill.`)}).describe(`Skill entry object`)).describe(`A list of skills listed on the profile, with optional proficiency levels.`),current_jobs:r.array(r.object({job_title:r.string().nullable().describe(`The title of the job.`),company_name:r.string().nullable().describe(`The name of the company.`),contract_type:r.string().nullable().describe(`The name of the company.`),company_website:r.string().nullable().describe(`The website URL of the company.`),company_social_url:r.string().nullable().describe(`LinkedIn URL of the company.`),job_description:r.string().nullable().describe(`Description of the role or responsibilities.`),start_date:r.string().nullable().describe(`The start date of the job (YYYY-MM-DD).`),end_date:r.string().nullable().describe(`The end date of the job (YYYY-MM-DD). Null if 'Present' or ongoing.`),headcount:r.string().nullable().describe(`The size of the company (e.g., '1001-5000', '1-10'). Null if not available.`),company_industry:r.string().nullable().describe(`The industry of the company. Null if not available.`),tenure_in_days:r.number().int().nullable().describe(`The total tenure for this job in days. Null if not calculable.`),tenure_in_years:r.number().nullable().describe(`The total tenure for this job in years, as a decimal. Null if not calculable.`),region:r.string().nullable().describe(`The specific location of this job (e.g., 'Seattle, Washington, United States'). Null if not available.`),country:r.string().nullable().describe(`The country where this job is located (ISO 3166-1 alpha-2 code). Null if not available.`)}).describe(`Job entry object`)).describe(`A list of the user's current primary jobs. Can be an empty array if no current jobs.`),connections_count:r.number().int().nullable().describe(`The number of connections the profile has. Null if not available or visible.`),country:r.string().nullable().describe(`The country of the profile owner's primary location.`),region:r.string().nullable().describe(`The specific region of the profile owner (e.g., 'Seattle, Washington, United States'). Null if not available.`),about:r.string().nullable().describe(`The 'About' section content from the profile. Null if empty.`),job_history:r.array(r.object({job_title:r.string().nullable().describe(`The title of the job.`),company_name:r.string().nullable().describe(`The name of the company.`),contract_type:r.string().nullable().describe(`The name of the company.`),company_website:r.string().nullable().describe(`The website URL of the company.`),company_social_url:r.string().nullable().describe(`LinkedIn URL of the company.`),job_description:r.string().nullable().describe(`Description of the role or responsibilities.`),start_date:r.string().nullable().describe(`The start date of the job (YYYY-MM-DD).`),end_date:r.string().nullable().describe(`The end date of the job (YYYY-MM-DD). Null if 'Present' or ongoing.`),headcount:r.string().nullable().describe(`The size of the company (e.g., '1001-5000', '1-10'). Null if not available.`),company_industry:r.string().nullable().describe(`The industry of the company. Null if not available.`),tenure_in_days:r.number().int().nullable().describe(`The total tenure for this job in days. Null if not calculable.`),tenure_in_years:r.number().nullable().describe(`The total tenure for this job in years, as a decimal. Null if not calculable.`),region:r.string().nullable().describe(`The specific location of this job (e.g., 'Seattle, Washington, United States'). Null if not available.`),country:r.string().nullable().describe(`The country where this job is located (ISO 3166-1 alpha-2 code). Null if not available.`)}).describe(`Job entry object`)).describe(`A list of past and current work experiences.`),current_educations:r.array(r.object({degree_name:r.string().nullable().describe(`The name of the degree (e.g., 'Bachelor of Science', 'MBA').`),field_of_study:r.string().nullable().describe(`The specific field of study (e.g., 'Computer Science', 'Business Administration').`),institution_name:r.string().describe(`The name of the educational institution.`),start_date:r.string().nullable().describe(`The start date of the education (YYYY-MM-DD).`),end_date:r.string().nullable().describe(`The end date of the education (YYYY-MM-DD). Null if 'Present' or ongoing.`),tenure_in_years:r.number().nullable().describe(`Duration at instituation in years. Null if not available.`),tenure_in_days:r.number().nullable().describe(`Duration at instituation in days. Null if not available.`),grade:r.string().nullable().describe(`The grade, GPA, or other academic achievement (e.g., '3.8/4.0', 'Distinction'). Null if not available.`),description:r.string().nullable().describe(`A description of the education, including relevant coursework or honors. Null if empty.`),activities_and_societies:r.string().nullable().describe(`A summary of activities and societies participated in. Null if empty.`)}).describe(`Education entry object`)).describe(`A list of the user's current primary educational enrollments. Can be an empty array if no current education.`),education_history:r.array(r.object({degree_name:r.string().nullable().describe(`The name of the degree (e.g., 'Bachelor of Science', 'MBA').`),field_of_study:r.string().nullable().describe(`The specific field of study (e.g., 'Computer Science', 'Business Administration').`),institution_name:r.string().describe(`The name of the educational institution.`),start_date:r.string().nullable().describe(`The start date of the education (YYYY-MM-DD).`),end_date:r.string().nullable().describe(`The end date of the education (YYYY-MM-DD). Null if 'Present' or ongoing.`),tenure_in_years:r.number().nullable().describe(`Duration at instituation in years. Null if not available.`),tenure_in_days:r.number().nullable().describe(`Duration at instituation in days. Null if not available.`),grade:r.string().nullable().describe(`The grade, GPA, or other academic achievement (e.g., '3.8/4.0', 'Distinction'). Null if not available.`),description:r.string().nullable().describe(`A description of the education, including relevant coursework or honors. Null if empty.`),activities_and_societies:r.string().nullable().describe(`A summary of activities and societies participated in. Null if empty.`)}).describe(`Education entry object`)).describe(`A list of past and current educational experiences.`)}),It={object:`linkedin_profile`,profile_url:`https://www.linkedin.com/in/janedoe/`,profile_picture_url:Mt(),languages:[{language:`English`,level:`Native`},{language:`Spanish`,level:`Conversational`}],name:`Jane Doe`,headline:`Senior Software Engineer at Tech Solutions | Cloud & AI Enthusiast`,skills:[{name:`JavaScript`,level:`advanced`},{name:`React`,level:`advanced`},{name:`Node.js`,level:`advanced`},{name:`AWS`,level:`intermediate`},{name:`Python`,level:`intermediate`},{name:`Machine Learning`,level:`beginner`}],current_jobs:[{job_title:`Senior Software Engineer`,company_name:`Tech Solutions`,company_website:`https://www.techsolutions.com`,job_description:`Developing and maintaining scalable web applications using React, Node.js, and AWS.`,contract_type:`Full-time`,start_date:`2023-01-15`,end_date:null,headcount:`1001-5000`,company_social_url:`https://www.linkedin.com/company/tech-solutions`,company_industry:`Information Technology & Services`,tenure_in_days:870,tenure_in_years:2.38,region:`Berlin, Berlin, Germany`,country:`DE`}],connections_count:850,country:`DE`,region:`Berlin, Berlin, Germany`,about:`Experienced Senior Software Engineer with a passion for building innovative and efficient software solutions. Proven ability to lead projects, mentor junior developers, and deliver high-quality code. Always eager to learn new technologies and contribute to challenging projects.`,job_history:[{job_title:`Senior Software Engineer`,company_name:`Tech Solutions`,company_website:`https://www.techsolutions.com`,job_description:`Developing and maintaining scalable web applications using React, Node.js, and AWS.`,contract_type:`Full-time`,start_date:`2023-01-15`,end_date:null,headcount:`1001-5000`,company_social_url:`https://www.linkedin.com/company/tech-solutions`,company_industry:`Information Technology & Services`,tenure_in_days:870,tenure_in_years:2.38,region:`Berlin, Berlin, Germany`,country:`DE`},{job_title:`Software Developer`,company_name:`Innovate Corp`,company_website:`https://www.innovatecorp.com`,job_description:`Contributed to the development of enterprise-level applications and collaborated with cross-functional teams.`,contract_type:`Full-time`,start_date:`2019-06-01`,end_date:`2022-12-31`,headcount:`501-1000`,company_social_url:`https://www.linkedin.com/company/innovate-corp`,company_industry:`Software Development`,tenure_in_days:1300,tenure_in_years:3.56,region:`Munich, Bavaria, Germany`,country:`DE`}],current_educations:[],education_history:[{degree_name:`Master of Science`,field_of_study:`Computer Science`,institution_name:`Technical University of Berlin`,start_date:`2017-10-01`,end_date:`2019-09-30`,tenure_in_days:730,tenure_in_years:2,grade:`1.3`,description:`Specialized in distributed systems and artificial intelligence.`,activities_and_societies:`AI Research Group, Student Mentorship Program`},{degree_name:`Bachelor of Science`,field_of_study:`Computer Engineering`,institution_name:`University of Applied Sciences Berlin`,start_date:`2014-09-01`,end_date:`2017-08-31`,tenure_in_days:1095,tenure_in_years:3,grade:`1.8`,description:`Focused on software design and embedded systems.`,activities_and_societies:`Robotics Club, Programming Competition Team`}]},Lt=r.object({name:r.string().nullable(),profile_url:r.string().nullable(),company_name:r.string().nullable(),company_website_url:r.string().nullable(),job_title:r.string().nullable()}),Rt={name:`John Doe`,profile_url:`https://linkedin.com/in/john-doe-123`,company_name:`Acme Inc.`,company_website_url:`https://acme.com`,job_title:`CEO`},zt=r.array(r.object({markdown:r.string().nullable(),html:r.string().nullable(),links:r.array(r.string()).nullable(),metadata:r.object({title:r.string().nullable(),description:r.string().nullable()}).nullable()})),Bt=[{markdown:`[Pipe Docs home page![light logo](...)!...`,html:`<!DOCTYPE html><html lang="en" class="js-focus-visible lg:[--scroll-mt:9.5rem]" data-js-focus-visible="">...`,links:[`https://pip0.com`],metadata:{title:`A framework for data enrichment`,description:`Learn how to use Firecrawl, Groq Llama 3, and Langchain to build a 'Chat with your website' bot.`}}],Vt=r.array(r.object({url:r.url(),title:r.string().nullable(),description:r.string().nullable()})),Ht=[{url:`https://pipe0.com/resources/documentation`,title:`Pipe0 | Docs`,description:`A modern data enrichment framework`},{url:`https://pipe0.com/resources/documentation/pipes`,title:`Pipe0 Docs | Pipe Docs`,description:`Documentation for pipe0 pipes.`}],Ut=r.union([r.literal(`valid`),r.literal(`invalid`),r.literal(`catch-all`),r.literal(`unknown`),r.literal(`spamtrap`),r.literal(`abuse`),r.literal(`do_not_mail`)]),Wt=r.union([r.literal(`alternate`),r.literal(`antispam_system`),r.literal(`greylisted`),r.literal(`mail_server_temporary_error`),r.literal(`forcible_disconnect`),r.literal(`mail_server_did_not_respond`),r.literal(`timeout_exceeded`),r.literal(`failed_smtp_connection`),r.literal(`mailbox_quota_exceeded`),r.literal(`exception_occurred`),r.literal(`possible_trap`),r.literal(`role_based`),r.literal(`global_suppression`),r.literal(`mailbox_not_found`),r.literal(`no_dns_entries`),r.literal(`failed_syntax_check`),r.literal(`possible_typo`),r.literal(`unroutable_ip_address`),r.literal(`leading_period_removed`),r.literal(`does_not_accept_mail`),r.literal(`alias_address`),r.literal(`role_based_catch_all`),r.literal(`disposable`),r.literal(`toxic`),r.literal(`accept_all`),r.literal(``)]),Gt=r.object({address:r.email(),status:Ut,sub_status:Wt,account:r.string(),domain:r.string(),did_you_mean:r.string().nullable(),domain_age_days:r.string().nullable().optional(),active_in_days:r.union([r.literal(`30`),r.literal(`60`),r.literal(`90`),r.literal(`180`),r.literal(`365`),r.literal(`365+`),r.literal(``)]).nullable().optional(),free_email:r.boolean(),mx_found:r.enum([`true`,`false`]).nullable(),mx_record:r.string(),smtp_provider:r.string().nullable(),firstname:r.string().nullable(),lastname:r.string().nullable(),gender:r.string().nullable(),city:r.string().nullable(),region:r.string().nullable(),zipcode:r.string().nullable(),country:r.string().nullable(),processed_at:r.string()}),Kt={address:`flowerjill@aol.com`,status:`valid`,sub_status:``,free_email:!0,did_you_mean:null,account:`flowerjill`,domain:`aol.com`,domain_age_days:`8426`,active_in_days:`365`,smtp_provider:`yahoo`,mx_record:`mx-aol.mail.gm0.yahoodns.net`,mx_found:`true`,firstname:`Jill`,lastname:`Stein`,gender:`female`,country:`United States`,region:`Florida`,city:`West Palm Beach`,zipcode:`33401`,processed_at:`2017-04-01 02:48:02.592`},qt=r.object({text:r.string(),url:r.url(),created_at:r.iso.datetime().nullable(),urn:r.string().nullable(),like_count:r.number().nullable(),comment_count:r.number().nullable()}),Jt={text:`Example post text`,url:`https://www.linkedin.com/feed/update/urn:li:activity:7276799456982007552/`,like_count:12,comment_count:3,created_at:new Date().toISOString(),urn:`7276733769981007542`},Yt={"united states":`๐Ÿ‡บ๐Ÿ‡ธ`,usa:`๐Ÿ‡บ๐Ÿ‡ธ`,us:`๐Ÿ‡บ๐Ÿ‡ธ`,america:`๐Ÿ‡บ๐Ÿ‡ธ`,"united kingdom":`๐Ÿ‡ฌ๐Ÿ‡ง`,uk:`๐Ÿ‡ฌ๐Ÿ‡ง`,britain:`๐Ÿ‡ฌ๐Ÿ‡ง`,england:`๐Ÿ‡ฌ๐Ÿ‡ง`,scotland:`๐Ÿด๓ ง๓ ข๓ ณ๓ ฃ๓ ด๓ ฟ`,wales:`๐Ÿด๓ ง๓ ข๓ ท๓ ฌ๓ ณ๓ ฟ`,canada:`๐Ÿ‡จ๐Ÿ‡ฆ`,australia:`๐Ÿ‡ฆ๐Ÿ‡บ`,germany:`๐Ÿ‡ฉ๐Ÿ‡ช`,france:`๐Ÿ‡ซ๐Ÿ‡ท`,italy:`๐Ÿ‡ฎ๐Ÿ‡น`,spain:`๐Ÿ‡ช๐Ÿ‡ธ`,japan:`๐Ÿ‡ฏ๐Ÿ‡ต`,china:`๐Ÿ‡จ๐Ÿ‡ณ`,india:`๐Ÿ‡ฎ๐Ÿ‡ณ`,brazil:`๐Ÿ‡ง๐Ÿ‡ท`,russia:`๐Ÿ‡ท๐Ÿ‡บ`,mexico:`๐Ÿ‡ฒ๐Ÿ‡ฝ`,netherlands:`๐Ÿ‡ณ๐Ÿ‡ฑ`,holland:`๐Ÿ‡ณ๐Ÿ‡ฑ`,belgium:`๐Ÿ‡ง๐Ÿ‡ช`,switzerland:`๐Ÿ‡จ๐Ÿ‡ญ`,austria:`๐Ÿ‡ฆ๐Ÿ‡น`,sweden:`๐Ÿ‡ธ๐Ÿ‡ช`,norway:`๐Ÿ‡ณ๐Ÿ‡ด`,denmark:`๐Ÿ‡ฉ๐Ÿ‡ฐ`,finland:`๐Ÿ‡ซ๐Ÿ‡ฎ`,poland:`๐Ÿ‡ต๐Ÿ‡ฑ`,portugal:`๐Ÿ‡ต๐Ÿ‡น`,greece:`๐Ÿ‡ฌ๐Ÿ‡ท`,turkey:`๐Ÿ‡น๐Ÿ‡ท`,"south korea":`๐Ÿ‡ฐ๐Ÿ‡ท`,"south africa":`๐Ÿ‡ฟ๐Ÿ‡ฆ`,argentina:`๐Ÿ‡ฆ๐Ÿ‡ท`,chile:`๐Ÿ‡จ๐Ÿ‡ฑ`,colombia:`๐Ÿ‡จ๐Ÿ‡ด`,peru:`๐Ÿ‡ต๐Ÿ‡ช`,venezuela:`๐Ÿ‡ป๐Ÿ‡ช`,egypt:`๐Ÿ‡ช๐Ÿ‡ฌ`,israel:`๐Ÿ‡ฎ๐Ÿ‡ฑ`,"saudi arabia":`๐Ÿ‡ธ๐Ÿ‡ฆ`,iran:`๐Ÿ‡ฎ๐Ÿ‡ท`,iraq:`๐Ÿ‡ฎ๐Ÿ‡ถ`,pakistan:`๐Ÿ‡ต๐Ÿ‡ฐ`,bangladesh:`๐Ÿ‡ง๐Ÿ‡ฉ`,thailand:`๐Ÿ‡น๐Ÿ‡ญ`,vietnam:`๐Ÿ‡ป๐Ÿ‡ณ`,philippines:`๐Ÿ‡ต๐Ÿ‡ญ`,indonesia:`๐Ÿ‡ฎ๐Ÿ‡ฉ`,malaysia:`๐Ÿ‡ฒ๐Ÿ‡พ`,singapore:`๐Ÿ‡ธ๐Ÿ‡ฌ`,"new zealand":`๐Ÿ‡ณ๐Ÿ‡ฟ`,ireland:`๐Ÿ‡ฎ๐Ÿ‡ช`,ukraine:`๐Ÿ‡บ๐Ÿ‡ฆ`,"czech republic":`๐Ÿ‡จ๐Ÿ‡ฟ`,hungary:`๐Ÿ‡ญ๐Ÿ‡บ`,romania:`๐Ÿ‡ท๐Ÿ‡ด`,bulgaria:`๐Ÿ‡ง๐Ÿ‡ฌ`,croatia:`๐Ÿ‡ญ๐Ÿ‡ท`,serbia:`๐Ÿ‡ท๐Ÿ‡ธ`,slovenia:`๐Ÿ‡ธ๐Ÿ‡ฎ`,slovakia:`๐Ÿ‡ธ๐Ÿ‡ฐ`,estonia:`๐Ÿ‡ช๐Ÿ‡ช`,latvia:`๐Ÿ‡ฑ๐Ÿ‡ป`,lithuania:`๐Ÿ‡ฑ๐Ÿ‡น`,iceland:`๐Ÿ‡ฎ๐Ÿ‡ธ`,luxembourg:`๐Ÿ‡ฑ๐Ÿ‡บ`,malta:`๐Ÿ‡ฒ๐Ÿ‡น`,cyprus:`๐Ÿ‡จ๐Ÿ‡พ`,albania:`๐Ÿ‡ฆ๐Ÿ‡ฑ`,"bosnia and herzegovina":`๐Ÿ‡ง๐Ÿ‡ฆ`,montenegro:`๐Ÿ‡ฒ๐Ÿ‡ช`,"north macedonia":`๐Ÿ‡ฒ๐Ÿ‡ฐ`,macedonia:`๐Ÿ‡ฒ๐Ÿ‡ฐ`,moldova:`๐Ÿ‡ฒ๐Ÿ‡ฉ`,belarus:`๐Ÿ‡ง๐Ÿ‡พ`,georgia:`๐Ÿ‡ฌ๐Ÿ‡ช`,armenia:`๐Ÿ‡ฆ๐Ÿ‡ฒ`,azerbaijan:`๐Ÿ‡ฆ๐Ÿ‡ฟ`,kazakhstan:`๐Ÿ‡ฐ๐Ÿ‡ฟ`,uzbekistan:`๐Ÿ‡บ๐Ÿ‡ฟ`,kyrgyzstan:`๐Ÿ‡ฐ๐Ÿ‡ฌ`,tajikistan:`๐Ÿ‡น๐Ÿ‡ฏ`,turkmenistan:`๐Ÿ‡น๐Ÿ‡ฒ`,afghanistan:`๐Ÿ‡ฆ๐Ÿ‡ซ`,mongolia:`๐Ÿ‡ฒ๐Ÿ‡ณ`,"north korea":`๐Ÿ‡ฐ๐Ÿ‡ต`,myanmar:`๐Ÿ‡ฒ๐Ÿ‡ฒ`,burma:`๐Ÿ‡ฒ๐Ÿ‡ฒ`,laos:`๐Ÿ‡ฑ๐Ÿ‡ฆ`,cambodia:`๐Ÿ‡ฐ๐Ÿ‡ญ`,brunei:`๐Ÿ‡ง๐Ÿ‡ณ`,"sri lanka":`๐Ÿ‡ฑ๐Ÿ‡ฐ`,maldives:`๐Ÿ‡ฒ๐Ÿ‡ป`,nepal:`๐Ÿ‡ณ๐Ÿ‡ต`,bhutan:`๐Ÿ‡ง๐Ÿ‡น`,oman:`๐Ÿ‡ด๐Ÿ‡ฒ`,uae:`๐Ÿ‡ฆ๐Ÿ‡ช`,"united arab emirates":`๐Ÿ‡ฆ๐Ÿ‡ช`,qatar:`๐Ÿ‡ถ๐Ÿ‡ฆ`,bahrain:`๐Ÿ‡ง๐Ÿ‡ญ`,kuwait:`๐Ÿ‡ฐ๐Ÿ‡ผ`,jordan:`๐Ÿ‡ฏ๐Ÿ‡ด`,lebanon:`๐Ÿ‡ฑ๐Ÿ‡ง`,syria:`๐Ÿ‡ธ๐Ÿ‡พ`,yemen:`๐Ÿ‡พ๐Ÿ‡ช`,libya:`๐Ÿ‡ฑ๐Ÿ‡พ`,tunisia:`๐Ÿ‡น๐Ÿ‡ณ`,algeria:`๐Ÿ‡ฉ๐Ÿ‡ฟ`,morocco:`๐Ÿ‡ฒ๐Ÿ‡ฆ`,sudan:`๐Ÿ‡ธ๐Ÿ‡ฉ`,ethiopia:`๐Ÿ‡ช๐Ÿ‡น`,kenya:`๐Ÿ‡ฐ๐Ÿ‡ช`,uganda:`๐Ÿ‡บ๐Ÿ‡ฌ`,tanzania:`๐Ÿ‡น๐Ÿ‡ฟ`,rwanda:`๐Ÿ‡ท๐Ÿ‡ผ`,burundi:`๐Ÿ‡ง๐Ÿ‡ฎ`,somalia:`๐Ÿ‡ธ๐Ÿ‡ด`,djibouti:`๐Ÿ‡ฉ๐Ÿ‡ฏ`,eritrea:`๐Ÿ‡ช๐Ÿ‡ท`,ghana:`๐Ÿ‡ฌ๐Ÿ‡ญ`,nigeria:`๐Ÿ‡ณ๐Ÿ‡ฌ`,senegal:`๐Ÿ‡ธ๐Ÿ‡ณ`,mali:`๐Ÿ‡ฒ๐Ÿ‡ฑ`,"burkina faso":`๐Ÿ‡ง๐Ÿ‡ซ`,niger:`๐Ÿ‡ณ๐Ÿ‡ช`,chad:`๐Ÿ‡น๐Ÿ‡ฉ`,cameroon:`๐Ÿ‡จ๐Ÿ‡ฒ`,"central african republic":`๐Ÿ‡จ๐Ÿ‡ซ`,"democratic republic of congo":`๐Ÿ‡จ๐Ÿ‡ฉ`,congo:`๐Ÿ‡จ๐Ÿ‡ฌ`,gabon:`๐Ÿ‡ฌ๐Ÿ‡ฆ`,"equatorial guinea":`๐Ÿ‡ฌ๐Ÿ‡ถ`,"sao tome and principe":`๐Ÿ‡ธ๐Ÿ‡น`,"cape verde":`๐Ÿ‡จ๐Ÿ‡ป`,guinea:`๐Ÿ‡ฌ๐Ÿ‡ณ`,"guinea-bissau":`๐Ÿ‡ฌ๐Ÿ‡ผ`,"sierra leone":`๐Ÿ‡ธ๐Ÿ‡ฑ`,liberia:`๐Ÿ‡ฑ๐Ÿ‡ท`,"ivory coast":`๐Ÿ‡จ๐Ÿ‡ฎ`,"cote d'ivoire":`๐Ÿ‡จ๐Ÿ‡ฎ`,togo:`๐Ÿ‡น๐Ÿ‡ฌ`,benin:`๐Ÿ‡ง๐Ÿ‡ฏ`,mauritania:`๐Ÿ‡ฒ๐Ÿ‡ท`,gambia:`๐Ÿ‡ฌ๐Ÿ‡ฒ`,botswana:`๐Ÿ‡ง๐Ÿ‡ผ`,namibia:`๐Ÿ‡ณ๐Ÿ‡ฆ`,zimbabwe:`๐Ÿ‡ฟ๐Ÿ‡ผ`,zambia:`๐Ÿ‡ฟ๐Ÿ‡ฒ`,malawi:`๐Ÿ‡ฒ๐Ÿ‡ผ`,mozambique:`๐Ÿ‡ฒ๐Ÿ‡ฟ`,madagascar:`๐Ÿ‡ฒ๐Ÿ‡ฌ`,mauritius:`๐Ÿ‡ฒ๐Ÿ‡บ`,seychelles:`๐Ÿ‡ธ๐Ÿ‡จ`,comoros:`๐Ÿ‡ฐ๐Ÿ‡ฒ`,lesotho:`๐Ÿ‡ฑ๐Ÿ‡ธ`,swaziland:`๐Ÿ‡ธ๐Ÿ‡ฟ`,eswatini:`๐Ÿ‡ธ๐Ÿ‡ฟ`,angola:`๐Ÿ‡ฆ๐Ÿ‡ด`,bermuda:`๐Ÿ‡ง๐Ÿ‡ฒ`,"cayman islands":`๐Ÿ‡ฐ๐Ÿ‡พ`,"british virgin islands":`๐Ÿ‡ป๐Ÿ‡ฌ`,"turks and caicos":`๐Ÿ‡น๐Ÿ‡จ`,anguilla:`๐Ÿ‡ฆ๐Ÿ‡ฎ`,montserrat:`๐Ÿ‡ฒ๐Ÿ‡ธ`,"falkland islands":`๐Ÿ‡ซ๐Ÿ‡ฐ`,gibraltar:`๐Ÿ‡ฌ๐Ÿ‡ฎ`,jersey:`๐Ÿ‡ฏ๐Ÿ‡ช`,guernsey:`๐Ÿ‡ฌ๐Ÿ‡ฌ`,"isle of man":`๐Ÿ‡ฎ๐Ÿ‡ฒ`,"faroe islands":`๐Ÿ‡ซ๐Ÿ‡ด`,greenland:`๐Ÿ‡ฌ๐Ÿ‡ฑ`,"french polynesia":`๐Ÿ‡ต๐Ÿ‡ซ`,"new caledonia":`๐Ÿ‡ณ๐Ÿ‡จ`,"wallis and futuna":`๐Ÿ‡ผ๐Ÿ‡ซ`,"french guiana":`๐Ÿ‡ฌ๐Ÿ‡ซ`,martinique:`๐Ÿ‡ฒ๐Ÿ‡ถ`,guadeloupe:`๐Ÿ‡ฌ๐Ÿ‡ต`,reunion:`๐Ÿ‡ท๐Ÿ‡ช`,mayotte:`๐Ÿ‡พ๐Ÿ‡น`,"saint pierre and miquelon":`๐Ÿ‡ต๐Ÿ‡ฒ`,"puerto rico":`๐Ÿ‡ต๐Ÿ‡ท`,"us virgin islands":`๐Ÿ‡ป๐Ÿ‡ฎ`,"american samoa":`๐Ÿ‡ฆ๐Ÿ‡ธ`,guam:`๐Ÿ‡ฌ๐Ÿ‡บ`,"northern mariana islands":`๐Ÿ‡ฒ๐Ÿ‡ต`,"united states minor outlying islands":`๐Ÿ‡บ๐Ÿ‡ฒ`,"cook islands":`๐Ÿ‡จ๐Ÿ‡ฐ`,niue:`๐Ÿ‡ณ๐Ÿ‡บ`,tokelau:`๐Ÿ‡น๐Ÿ‡ฐ`,"christmas island":`๐Ÿ‡จ๐Ÿ‡ฝ`,"cocos islands":`๐Ÿ‡จ๐Ÿ‡จ`,"norfolk island":`๐Ÿ‡ณ๐Ÿ‡ซ`,"hong kong":`๐Ÿ‡ญ๐Ÿ‡ฐ`,macau:`๐Ÿ‡ฒ๐Ÿ‡ด`,macao:`๐Ÿ‡ฒ๐Ÿ‡ด`,taiwan:`๐Ÿ‡น๐Ÿ‡ผ`,"san marino":`๐Ÿ‡ธ๐Ÿ‡ฒ`,vatican:`๐Ÿ‡ป๐Ÿ‡ฆ`,"vatican city":`๐Ÿ‡ป๐Ÿ‡ฆ`,liechtenstein:`๐Ÿ‡ฑ๐Ÿ‡ฎ`,monaco:`๐Ÿ‡ฒ๐Ÿ‡จ`,andorra:`๐Ÿ‡ฆ๐Ÿ‡ฉ`,jamaica:`๐Ÿ‡ฏ๐Ÿ‡ฒ`,cuba:`๐Ÿ‡จ๐Ÿ‡บ`,haiti:`๐Ÿ‡ญ๐Ÿ‡น`,"dominican republic":`๐Ÿ‡ฉ๐Ÿ‡ด`,bahamas:`๐Ÿ‡ง๐Ÿ‡ธ`,barbados:`๐Ÿ‡ง๐Ÿ‡ง`,"trinidad and tobago":`๐Ÿ‡น๐Ÿ‡น`,"saint lucia":`๐Ÿ‡ฑ๐Ÿ‡จ`,"saint vincent and the grenadines":`๐Ÿ‡ป๐Ÿ‡จ`,grenada:`๐Ÿ‡ฌ๐Ÿ‡ฉ`,dominica:`๐Ÿ‡ฉ๐Ÿ‡ฒ`,"antigua and barbuda":`๐Ÿ‡ฆ๐Ÿ‡ฌ`,"saint kitts and nevis":`๐Ÿ‡ฐ๐Ÿ‡ณ`,fiji:`๐Ÿ‡ซ๐Ÿ‡ฏ`,"papua new guinea":`๐Ÿ‡ต๐Ÿ‡ฌ`,"solomon islands":`๐Ÿ‡ธ๐Ÿ‡ง`,vanuatu:`๐Ÿ‡ป๐Ÿ‡บ`,samoa:`๐Ÿ‡ผ๐Ÿ‡ธ`,tonga:`๐Ÿ‡น๐Ÿ‡ด`,kiribati:`๐Ÿ‡ฐ๐Ÿ‡ฎ`,tuvalu:`๐Ÿ‡น๐Ÿ‡ป`,nauru:`๐Ÿ‡ณ๐Ÿ‡ท`,palau:`๐Ÿ‡ต๐Ÿ‡ผ`,"marshall islands":`๐Ÿ‡ฒ๐Ÿ‡ญ`,micronesia:`๐Ÿ‡ซ๐Ÿ‡ฒ`,uruguay:`๐Ÿ‡บ๐Ÿ‡พ`,paraguay:`๐Ÿ‡ต๐Ÿ‡พ`,bolivia:`๐Ÿ‡ง๐Ÿ‡ด`,ecuador:`๐Ÿ‡ช๐Ÿ‡จ`,guyana:`๐Ÿ‡ฌ๐Ÿ‡พ`,suriname:`๐Ÿ‡ธ๐Ÿ‡ท`,guatemala:`๐Ÿ‡ฌ๐Ÿ‡น`,belize:`๐Ÿ‡ง๐Ÿ‡ฟ`,honduras:`๐Ÿ‡ญ๐Ÿ‡ณ`,"el salvador":`๐Ÿ‡ธ๐Ÿ‡ป`,nicaragua:`๐Ÿ‡ณ๐Ÿ‡ฎ`,"costa rica":`๐Ÿ‡จ๐Ÿ‡ท`,panama:`๐Ÿ‡ต๐Ÿ‡ฆ`};function Xt(e,t){let n=[];for(let e=0;e<=t.length;e++)n[e]=[e];for(let t=0;t<=e.length;t++)n[0][t]=t;for(let r=1;r<=t.length;r++)for(let i=1;i<=e.length;i++)t.charAt(r-1)===e.charAt(i-1)?n[r][i]=n[r-1][i-1]:n[r][i]=Math.min(n[r-1][i-1]+1,n[r][i-1]+1,n[r-1][i]+1);return n[t.length][e.length]}function Zt(e){return e.toLowerCase().trim().replace(/[^\w\s]/g,` `).replace(/\s+/g,` `).trim()}function Qt(e){let t=Zt(e);if(Yt[t])return t;let n=null,r=1/0,i=Math.min(3,Math.floor(t.length*.3));for(let e of Object.keys(Yt)){let a=Xt(t,e),o=e.includes(t)||t.includes(e);(a<=i&&a<r||o&&a<r*1.5)&&(n=e,r=a)}return n}function $t(e){try{let t=e.split(`,`).map(e=>e.trim());return t.length===0?null:t[t.length-1]||null}catch{return null}}function en(e){try{if(!e||typeof e!=`string`||e.trim()===``)return null;let t=$t(e);return t?tn(t):null}catch{return null}}function tn(e){try{if(!e||typeof e!=`string`||e.trim()===``)return null;let t=Qt(e);return t&&Yt[t]||null}catch{return null}}function nn(e){try{let t=new URL(e);if(!t.hostname.includes(`linkedin.com`))return console.warn(`Provided URL is not a LinkedIn URL: ${e}`),``;let n=t.pathname;n.endsWith(`/`)&&(n=n.slice(0,-1));let r=n.split(`/`).filter(e=>e.length>0);return r.length>0&&r[r.length-1]||``}catch{return``}}const rn={company_description:{label:`Company description`,type:`string`,description:`A summary of the main business purpose and objectives.`,jsonMeta:null,format:`markdown`},cleaned_company_name:{label:`Cleaned company name`,type:`string`,description:`The standardized and cleaned version of the company name, ensuring consistency across different entries.`,jsonMeta:null,format:`text`},website_markdown:{label:`Scrape result - Markdown`,type:`string`,description:`Markdown-formatted scrape of a website.`,jsonMeta:null,format:`markdown`},mapped_links:{label:`Website internal links`,type:`json`,format:`json_list`,description:`A list of website links.`,jsonMeta:{zodSchema:Vt,exampleValue:Ht}},website_html:{label:`Scrape result - HTML`,type:`string`,description:`HTML-formatted scrape of a website.`,jsonMeta:null,format:null},website_url:{label:`Website URL`,type:`string`,description:`Generic URL of a website.`,jsonMeta:null,format:`url`},scrape_list_response:{label:`URLs`,type:`json`,description:`List of URLs`,jsonMeta:{zodSchema:zt,exampleValue:Bt},format:null},urls:{label:`URLs`,type:`json`,description:`List of URLs`,jsonMeta:{zodSchema:r.array(r.string()),exampleValue:[`https://pipe0.com`,`https://pipe0.com/resources/documentation`]},format:`json_list_string`},website_links:{label:`URLs`,type:`json`,description:`List of URLs scraped from a website`,jsonMeta:{zodSchema:r.array(r.string()),exampleValue:[`https://pipe0.com`,`https://pipe0.com/resources/documentation`]},format:`json_list_string`},clado_person_profile:{label:`Clado person profile`,type:`json`,description:`Fully enriched people profile`,jsonMeta:{zodSchema:ze,exampleValue:Be},format:`json_object`},company_industry:{label:`Company industry`,type:`string`,description:`The industry in which the company operates.`,jsonMeta:null,format:`text`},company_region:{label:`Company region`,type:`string`,description:`The region corresponding to the company's country.`,jsonMeta:null,format:`text`},location_hint:{label:`Location hint`,type:`string`,description:`An optional hint to help pinpoint a person's or company's location.`,jsonMeta:null,format:`text`},leadmagic_competitor_list:{label:`Competitor list`,type:`json`,description:`A list of the top competitors for a given company as provided by LeadMagic`,jsonMeta:{zodSchema:bt,exampleValue:xt},format:`json_list`},leadmagic_acquisition_history:{label:`Acquisition history`,type:`json`,description:`A list of acquisitions by a given company`,format:`json_list`,jsonMeta:{exampleValue:Ct,zodSchema:St}},leadmagic_company_news_list:{label:`Company news list`,type:`json`,description:`A list of company news`,format:`json_list`,jsonMeta:{exampleValue:Tt,zodSchema:wt}},estimated_revenue:{label:`Estimated Annual Revenue`,type:`string`,description:`The estimated annual revenue of the company.`,jsonMeta:null,format:`text`},funding_history:{label:`Funding history`,type:`json`,description:`List of corporate funding rounds.`,format:null,jsonMeta:{zodSchema:mt,exampleValue:ht}},funding_total_usd:{label:`Total funding (USD)`,type:`number`,description:`Amount of total known funding`,jsonMeta:null,format:`currency`},founded_year:{label:`Founding year`,type:`string`,description:`The year the company was founded.`,jsonMeta:null,format:`text`},technology_list:{type:`json`,label:`Technology list`,description:`A flat list of technologies used by a company`,jsonMeta:{zodSchema:Fe,exampleValue:Ie},format:`json_list`},spending_trend:{type:`number`,label:`Spending Trend`,description:`Technology spending trend over the last 2 years. Average deviation between measuring points in %.`,jsonMeta:null,format:`percent`},technology_match_builtwith:{type:`json`,label:`Builtwith technology response`,description:`A datastructure containing the technologies used by this company`,format:`json_object`,jsonMeta:{zodSchema:Le,exampleValue:Re}},number_of_social_followers:{label:`Follower count`,type:`number`,description:`Social followers (or zero if not found).`,jsonMeta:null,format:`int`},mobile:{label:`Mobile`,type:`string`,description:`Mobile telephone number of a person.`,jsonMeta:null,format:`phone`},phone:{label:`Phone`,type:`string`,description:`A generic field for phone numbers. Can be mobile or landline.`,jsonMeta:null,format:`phone`},landline:{label:`Landline`,type:`string`,description:`A landline phone number`,jsonMeta:null,format:`phone`},job_title:{label:`Job title`,type:`string`,description:`Current job title of a person`,jsonMeta:null,format:`text`},job_description:{label:`Job description`,type:`string`,description:`Description of current job`,jsonMeta:null,format:`text`},email:{label:`Email address`,type:`string`,description:`A union field that can contain both professional and personal email addresses.`,jsonMeta:null,format:`email`},personal_email:{label:`Personal email`,type:`string`,description:`The personal email address of a prospect.`,jsonMeta:null,format:`email`},alternate_personal_emails:{label:`Alternate personal email`,type:`json`,description:`The personal email addresses that are associated with a prospect but less likely to be the primary email address of a prospect.`,jsonMeta:{zodSchema:r.array(r.string()),exampleValue:[`john@pipe0.com`,`jane@pipe0.com`]},format:`json_list_string`},company_news_summary:{label:`Latest news`,type:`string`,description:`Latest company news.`,jsonMeta:null,format:`markdown`},work_email:{label:`Work email`,type:`string`,jsonMeta:null,description:`Email address of a person connection to their place of employment.`,format:`email`},headcount:{label:`Headcount`,type:`string`,jsonMeta:null,description:`Total number of people employed in a particular organization`,format:`text`},company_website_url:{label:`Company website URL`,type:`string`,description:`Website URL of a related company.`,jsonMeta:null,format:`website_url`},company_domain:{label:`Company domain`,type:`string`,description:`Bare domain of a related company. Example: stripe.com (no scheme, no path).`,jsonMeta:null,format:`text`},company_name:{label:`Company name`,type:`string`,description:`Name of a company.`,jsonMeta:null,format:`text`},clado_person_match:{label:`Clado person match`,description:`Object returned from a Clado people search.`,format:`json_object`,type:`json`,jsonMeta:{zodSchema:ze,exampleValue:Be}},clado_person_match_v2:{label:`Clado person match`,description:`Object returned from a Clado people search.`,format:`json_object`,type:`json`,jsonMeta:{zodSchema:Qe,exampleValue:$e}},icypeas_person_match:{label:`Icypeas person match`,description:`Object returned from a Icypeas people search`,format:`json_object`,type:`json`,jsonMeta:{zodSchema:vt,exampleValue:yt}},icypeas_company_match:{label:`Icypeas company match`,description:`Object returned from a Icypeas people search`,format:`json_object`,type:`json`,jsonMeta:{zodSchema:gt,exampleValue:_t}},first_name:{label:`First name`,type:`string`,description:`First name of a person.`,jsonMeta:null,format:`text`},addressee_name:{label:`Addressee name`,type:`string`,description:`Recipient name in the format required by postal services.`,jsonMeta:null,format:`text`},avatar_url:{label:`Avatar URL`,type:`string`,description:`URL for profile picture`,jsonMeta:null,format:`url`},address_line_1:{label:`Address line 1`,type:`string`,description:`First line of an address (e.g. street address)`,jsonMeta:null,format:`address_line_1`},address_line_2:{label:`Address line 2`,type:`string`,description:`The formatted address of a companyโ€™s headquarters.`,jsonMeta:null,format:`text`},address_city:{label:`Address city`,type:`string`,description:`Name of a city as needed for an address.`,jsonMeta:null,format:`text`},address_country:{label:`Address country`,type:`string`,description:`Name of a country as needed for an address.`,jsonMeta:null,format:`text`},address_state:{label:`State`,type:`string`,description:`Name of a state.`,jsonMeta:null,format:`text`},zip_code:{label:`Zip code`,type:`string`,description:`A postal zip code. Usually a combination of numbers and letters.`,jsonMeta:null,format:`zip_code`},last_name:{label:`Last name`,type:`string`,description:`Last name of a person.`,jsonMeta:null,format:`text`},estimated_salary:{label:`Estimated salary`,type:`string`,description:`Estimated total salary in USD.`,jsonMeta:null,format:`text`},skills:{label:`Skills`,type:`string`,description:`List of professional skills`,jsonMeta:null,format:`text`},is_work_email:{label:`Is work email result`,type:`boolean`,description:`Check if a given email is a work email.`,jsonMeta:null,format:null},name:{label:`Full name`,type:`string`,description:`The full name of a person. Usually a combination of first and last name.`,jsonMeta:null,format:`text`},ip_address:{label:`IP address`,type:`string`,description:`IP Address of a person`,jsonMeta:null,format:`text`},is_email_valid:{label:`Email validation`,type:`boolean`,description:`Check if an email address is valid and can receive emails.`,jsonMeta:null,format:null},profile:{label:`Professional profile`,type:`json`,description:`A standardized format for returning LinkedIn profile data.`,format:null,jsonMeta:{zodSchema:Ft,exampleValue:It}},profile_url:{label:`LinkedIn profile URL`,type:`string`,format:`profile_url`,description:`A person's LinkedIn profile URL.`,jsonMeta:null},developer_profile_url:{label:`Developer profile URL`,type:`string`,format:`profile_url`,description:`A person's primary developer profile URL (e.g. GitHub).`,jsonMeta:null},alternative_developer_profile_urls:{label:`Alternative developer profile URLs`,type:`json`,format:`json_list_string`,description:`Additional developer profile URLs (GitHub, GitLab, etc.) discovered for the person.`,jsonMeta:{zodSchema:r.array(r.string()),exampleValue:[`https://github.com/mxschmitt`]}},profile_posts:{label:`Recrent linkedIn posts`,type:`json`,description:`List of recent LinkedIn posts in JSON format.`,format:`json_list`,jsonMeta:{zodSchema:r.array(qt),exampleValue:Jt}},profile_headline:{label:`Profile headline`,type:`string`,format:`text`,description:`Professional profile headline`,jsonMeta:null},company_profile_url:{label:`Company LinkedIn profile URL`,type:`string`,format:`profile_url`,description:`Company LinkedIn URL.`,jsonMeta:null},resend_email_success:{label:`Resend mail success`,type:`boolean`,format:null,jsonMeta:null,description:`Result of email sending action using Resend`},resend_contact_id:{label:`Resend contact id`,type:`string`,format:`text`,description:`Id of a single resend contact`,jsonMeta:null},sheet:{label:`Sheet name`,type:`string`,format:`text`,description:`Name of a pipe0 sheet`,jsonMeta:null},string_input:{label:`String input`,type:`string`,format:`text`,description:`Input field of type string`,jsonMeta:null},domain:{label:`Domain`,type:`string`,format:`text`,description:`A domain field.`,jsonMeta:null},url_input:{label:`URL input`,type:`string`,format:`url`,description:`Input field of type string and URL format`,jsonMeta:null},slugified:{label:`Slugified value`,type:`string`,format:`text`,description:`A value that has been stripped of characters not found in slugs.`,jsonMeta:null},http_response_status:{label:`HTTP response status`,type:`number`,format:`int`,description:`HTTP status code returned by the upstream endpoint.`,jsonMeta:null},http_response_body:{label:`HTTP response body`,type:`json`,format:`json_object`,description:`Parsed JSON body returned by the upstream endpoint.`,jsonMeta:null},http_response_headers:{label:`HTTP response headers`,type:`json`,format:`json_object`,description:`Response headers returned by the upstream endpoint as a flat key-value map.`,jsonMeta:null},sheet_record_id:{label:`Record ID`,type:`string`,format:`text`,description:`ID of sheet record`,jsonMeta:null},sheet_record_ids:{label:`Record IDs`,type:`json`,format:`json_list_string`,description:`IDs sheet records`,jsonMeta:null},gmail_email_success:{label:`Gmail e-mail success`,type:`boolean`,format:null,jsonMeta:null,description:`Result of email sending action using Gmail`},slack_message_success:{label:`Slack message success`,type:`boolean`,format:null,jsonMeta:null,description:`Result of sending a message using Slack`},email_body:{label:`A markdown email`,type:`string`,format:`markdown`,jsonMeta:null,description:`The test of an email formatted as markdown`},message:{label:`Message`,type:`string`,format:`markdown`,jsonMeta:null,description:`A markdown message that be send to any chat app.`},email_subject:{label:`Subject Line`,type:`string`,format:`text`,jsonMeta:null,description:`Subject line for email`},template_output:{label:`Template Output`,type:`string`,format:`text`,jsonMeta:null,description:`Template value where the tags are replaces with real values`},email_validation_status:{label:`Validation status`,type:`string`,format:`text`,jsonMeta:null,description:`Email validation status. Allowed values are: 'valid', 'invalid', 'catch_all', 'unknown'`},million_validation_match:{label:`Million Verifier match`,type:`json`,format:`json_object`,description:`Email validation status. Allowed values are: 'valid', 'invalid', 'catch_all', 'unknown'`,jsonMeta:{zodSchema:At,exampleValue:jt}},zerobounce_validation_status:{label:`ZeroBounce Validation Status`,type:`string`,format:`text`,jsonMeta:null,description:`Validation status as returned from ZeroBounce single validation`},zerobounce_validation_match:{label:`ZeroBounce Validation Match`,type:`json`,format:`json_object`,description:`Full validation object as returned by ZeroBounce`,jsonMeta:{zodSchema:Gt,exampleValue:Kt}},input_objects:{label:`Input objects`,type:`json`,format:`json_list`,description:`List of unstructured input objects`,jsonMeta:null},created_sheet:{label:`Created sheet`,type:`string`,format:null,description:`Reference to a created sheet`,jsonMeta:null},merge_result:{label:`Merge Result`,type:`unknown`,format:null,description:`Full validation object as returned by ZeroBounce`,jsonMeta:null},firecrawl_extract_result:{label:`Extract Result`,type:`json`,format:null,description:`Result of a firecrawl extract operation`,jsonMeta:null},exa_match_evaluation:{label:`Exa Match Evaluation`,type:`json`,format:`json_object`,description:`Exa search result.`,jsonMeta:{zodSchema:ft,exampleValue:pt}},companyenrich_match:{label:`Company match`,type:`json`,format:`json_object`,description:`CompanyEnrich response object`,jsonMeta:{zodSchema:et,exampleValue:tt}},crustdata_person_match:{label:`Person match`,type:`json`,format:`json_object`,description:`Crustdata company match object`,jsonMeta:{zodSchema:ct,exampleValue:lt}},crustdata_profile_match_score:{label:`Match score`,type:`number`,format:`decimal`,description:`A number between 1 and 0 indicating the confidence that the profile belongs to the input email address.`,jsonMeta:null},crustdata_company_match:{label:`Company match`,type:`json`,format:`json_object`,description:`Crustdata company match object`,jsonMeta:{zodSchema:nt,exampleValue:rt}},crustdata_companyenrich_match:{label:`Company enrichment match`,type:`json`,format:`json_object`,description:`Crustdata company enrichment match.`,jsonMeta:{zodSchema:it,exampleValue:at}},crustdata_company_identity_matches:{label:`Company identity matches`,type:`json`,format:`json_list`,description:`List of Crustdata company candidates matched by name or domain.`,jsonMeta:{zodSchema:ot,exampleValue:st}},post_list_string:{label:`Post list`,type:`json`,format:`json_list_string`,description:`LinkedIn post list`,jsonMeta:{zodSchema:r.array(r.string()),exampleValue:[`Y Combinator's most popular startups.
61
+ Read our full breakdown from the link in the comments ๐Ÿ‘‡`,actor_name:`Crustdata`,hyperlinks:{company_linkedin_urls:[],person_linkedin_urls:[`https://www.linkedin.com/in/ACoAAAKoldoBqSsiXY_DHsXdSk1slibabeTvDDY`],other_urls:[]},date_posted:`2024-09-03`,total_reactions:37,total_comments:7,reactions_by_type:{LIKE:28,EMPATHY:4,PRAISE:4,INTEREST:1},num_shares:5,is_repost_without_thoughts:!1,reactors:[]}],gt=r.object({criterion:r.string(),reasoning:r.string(),satisfied:r.enum([`yes`,`no`,`partial`]),references:r.array(r.object({title:r.string(),snippet:r.string(),url:r.url()}))}),_t={criterion:`Company is recognized as a leading AI research lab (e.g., through significant publications, awards, or industry recognition) and has a primary research focus on large language models`,reasoning:`MIT is recognized as a leading AI research lab, particularly through the MIT-IBM Watson AI Lab. They have significant publications and research focused on large language models, as evidenced by news articles and publications from the Media Lab. This satisfies the criterion.`,satisfied:`yes`,references:[{title:`How to build AI scaling laws for efficient LLM training and budget ...`,snippet:`MIT-IBM Watson AI Lab researchers have developed a universal guide for estimating how large language models will perform based on smaller models ...`,url:`https://news.mit.edu/2025/how-build-ai-scaling-laws-efficient-llm-training-budget-maximization-0916`},{title:`Can large language models figure out the real world? | MIT News`,snippet:`Researchers at MIT and Harvard University have devised a new approach to assessing how deeply predictive AI systems understand their subject ...`,url:`https://news.mit.edu/2025/can-large-language-models-figure-out-real-world-0825`},{title:`Like human brains, large language models reason about diverse ...`,snippet:`MIT researchers find large language models process diverse types of data, like different languages, audio inputs, images, etc., similarly to ...`,url:`https://news.mit.edu/2025/large-language-models-reason-about-diverse-data-general-way-0219`},{title:`MIT 6.S191 (Liquid AI): Large Language Models - YouTube`,snippet:`... lab materials: http://introtodeeplearning.comโ€‹โ€‹ Subscribe to stay up to date with new deep learning lectures at MIT, or follow us ...`,url:`https://www.youtube.com/watch?v=_HfdncCbMOE&pp=0gcJCfwAo7VqN5tD`},{title:`Latent Lab: Large Language Models for Knowledge Exploration`,snippet:`This paper investigates the potential of AI models, particularly large language models (LLMs), to support knowledge exploration and augment human creativity ...`,url:`https://www.media.mit.edu/publications/latent-lab-large-language-models-for-knowledge-exploration`},{title:`MIT | LinkedIn`,snippet:`MIT is a Higher Education company (Nonprofit) with 90 (10001+ category) employees, founded in 1861. The MIT community is driven by a shared purpose: to make a better world through education, research, and innovation. We are fun and quirky, elite but ...`,url:`https://www.linkedin.com/company/school-mit`},{title:`Massachusetts Institute of Technology (MIT)`,snippet:`MIT is a Higher Education company (Nonprofit) with 90 (10001+ category) employees, founded in 1861. The MIT community is driven by a shared purpose: to make a better world through education, research, and innovation. We are fun and quirky, elite but ...`,url:`https://mit.edu`}]},vt=r.array(r.object({round:r.string().nullable(),date:r.string().nullable(),amount:r.string().nullable(),investors:r.array(r.object({name:r.string()})).nullable()})),yt=[{round:`Series A`,date:`2021-05-01`,amount:`$250,000,000`,investors:[{name:`Franklin Templeton`},{name:`Coatue`},{name:`Sequoia`},{name:`Thrive Capital`},{name:`Tiger Global`}]},{round:`Series B`,date:`2023-05-01`,amount:`$250,000,000`,investors:[{name:`Franklin Templeton`},{name:`Coatue`},{name:`Sequoia`},{name:`Thrive Capital`},{name:`Tiger Global`}]}],bt=r.object({name:r.string().describe(`Company name`),lid:r.string().nullable().optional().describe(`LinkedIn ID`),urn:r.string().nullable().optional().describe(`Uniform Resource Name identifier`),type:r.string().nullable().optional().describe(`Type of company`),industry:r.string().nullable().optional().describe(`Industry sector`),location:r.string().nullable().optional().describe(`Company location`),numberOfEmployees:r.number().describe(`Number of employees`),website:r.string().nullable().optional().describe(`Company website URL`),url:r.string().nullable().optional().describe(`General company URL`),description:r.string().nullable().optional().describe(`Company description`),specialties:r.array(r.string()).describe(`List of company specialties`),employeeGrowth:r.array(r.unknown()).describe(`Employee growth data`)}),xt={name:`Acme Innovations Inc.`,lid:`12345`,urn:`urn:li:company:12345`,type:`Private`,industry:`Information Technology`,location:`Berlin, Germany`,numberOfEmployees:250,website:`https://www.acme-innovations.com`,url:`https://linkedin.com/company/acme-innovations`,description:`Acme Innovations is a leader in enterprise software solutions, specializing in cloud-based tools for modern businesses.`,specialties:[`Cloud Computing`,`Machine Learning`,`Cybersecurity`],employeeGrowth:[]},St=r.object({firstname:r.string().nullable().optional().describe(`The person's first name.`),lastname:r.string().nullable().optional().describe(`The person's last name.`),headline:r.string().nullable().optional().describe(`A short professional headline.`),description:r.string().nullable().optional().describe(`A summary or description of the person.`),profileUrl:r.string().nullable().optional().describe(`URL to the person's profile.`),lastJobTitle:r.string().nullable().optional().describe(`Title of the most recent job.`),lastJobDescription:r.string().nullable().optional().describe(`Description of the most recent job.`),lastJobStartDate:r.string().nullable().optional().describe(`Start date of the most recent job.`),address:r.string().nullable().optional().describe(`The person's address.`),lastCompanyName:r.string().nullable().optional().describe(`Name of the most recent company.`),lastCompanyUrn:r.string().nullable().optional().describe(`URN (unique resource name) of the most recent company.`),lastCompanyUrl:r.string().nullable().optional().describe(`URL of the most recent company.`),lastCompanyWebsite:r.string().nullable().optional().describe(`Website of the most recent company.`),lastCompanyDescription:r.string().nullable().optional().describe(`Description of the most recent company.`),lastCompanySize:r.number().nullable().optional().describe(`Size of the most recent company.`),lastCompanyIndustry:r.string().nullable().optional().describe(`Industry of the most recent company.`),lastCompanyAddress:r.string().nullable().optional().describe(`Address of the most recent company.`)}),Ct={firstname:`Jane`,lastname:`Doe`,headline:`Software Engineer at Sample`,description:`Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam, eaque ipsa quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt explicabo. Nemo enim ipsam voluptatem quia voluptas sit aspernatur aut odit aut fugit, sed quia consequuntur magni dolores eos qui ratione voluptatem sequi nesciunt. Neque porro quisquam est, qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit, sed quia non numquam eius modi tempora incidunt ut labore et dolore magnam aliquam quaerat voluptatem. Ut enim ad minima veniam, quis nostrum exercitationem ullam corporis suscipit laboriosam, nisi ut aliquid ex ea commodi consequatur?`,profileUrl:`https://www.linkedin.com/in/mayuri2307`,lastJobTitle:`Software Engineer`,lastJobDescription:``,lastJobStartDate:`06-2024`,address:``,lastCompanyName:`Google`,lastCompanyUrn:`urn:li:fs_xxxxCompany:1111`,lastCompanyUrl:`https://www.linkedin.com/company/sample/`,lastCompanyWebsite:`https://sample.com`,lastCompanyDescription:`Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.`,lastCompanySize:183446,lastCompanyIndustry:`Software Development`,lastCompanyAddress:`Mountain View, California, United States`},wt=r.array(r.object({company_name:r.string().nullable(),revenue:r.string().nullable(),headquarters_region:r.string().nullable(),company_website_url:r.url().nullable(),company_type:r.string().nullable()})),Tt=[{company_name:`Chorus`,revenue:`$21M`,headquarters_region:`San Francisco, California, USA`,company_type:`private`,company_website_url:`https://www.chorus.ai`}],Et=r.array(r.object({company_name:r.string().nullable(),date:r.string().nullable(),company_description:r.string(),source_url:r.url().nullable()})),Dt=[{company_name:`Vayo`,date:`2020-09-01`,company_description:`Vayo is a SaaS-based firm that analyzes, integrates and converts customer data into actionable insights for business`,source_url:`https://techcrunch.com/2020/09/01/fresh-off-200m-series-d-gong-acquires-early-stage-startup-vayo`}],Ot=r.array(r.object({title:r.string().nullable(),outlet_name:r.string().nullable(),date:r.string().nullable()})),kt=[{title:`Gong: Gong Named to the Forbes Cloud 100 for the Fifth Consecutive Year`,outlet_name:`Martech Cube`,date:`2024-08-07`}],At=r.object({r:r.number().int().min(0).max(255),g:r.number().int().min(0).max(255),b:r.number().int().min(0).max(255),hex:r.string().regex(/^#[0-9a-f]{6}$/i)}),jt=r.object({facebook:r.url().optional(),github:r.url().optional(),instagram:r.url().optional(),linkedin:r.url().optional(),pinterest:r.url().optional(),reddit:r.url().optional(),snapchat:r.url().optional(),telegram:r.url().optional(),tumblr:r.url().optional(),twitter:r.url().optional(),wechat:r.url().optional(),whatsapp:r.url().optional(),youtube:r.url().optional()}).optional(),Mt=r.object({name:r.string(),domain:r.string(),description:r.string(),indexed_at:r.iso.datetime(),socials:jt,logo:r.url(),blurhash:r.string(),colors:r.array(At)}),Nt={name:`sweetgreen`,domain:`sweetgreen.com`,description:`Simple, seasonal, healthy salads and grain bowls made in-house from scratch, using whole produce delivered that morning.`,indexed_at:`2025-03-10T11:36:23.885238001Z`,socials:{facebook:`http://facebook.com/sweetgreen`,instagram:`https://www.instagram.com/sweetgreen/`,twitter:`https://x.com/sweetgreen`,linkedin:`https://linkedin.com/company/acmeinc`,pinterest:`https://pinterest.com/`,reddit:`https://reddit.com`},logo:`https://img.logo.dev/sweetgreen.com?token=YOUR_TOKEN_HERE`,blurhash:`UJPanPxr?Vj[oxazj@od_FWDDoodxrodagWD`,colors:[{r:228,g:255,b:85,hex:`#e4ff55`},{r:10,g:75,b:43,hex:`#0a4b2b`},{r:125,g:173,b:80,hex:`#7dad50`}]},Pt=r.object({email:r.string(),quality:r.enum([``,`good`,`bod`,`risky`]),result:r.enum([`ok`,`catch_all`,`unknown`,`error`,`disposable`,`invalid`]),resultcode:r.int(),subresult:r.string(),free:r.boolean(),role:r.boolean(),didyoumean:r.string(),error:r.string().nullable().optional()}),Ft={email:`bademail@gmal.com`,quality:`good`,result:`invalid`,resultcode:6,subresult:`unknown`,free:!1,role:!1,didyoumean:`bademail@gmail.com`,error:``};function It(){return`https://i.pravatar.cc/300?u=${crypto.randomUUID()}`}function Lt(e,{isNullEmpty:t}={isNullEmpty:!1}){if(e===null)return!!t;if(e==null||typeof e==`string`&&e.trim()===``||Array.isArray(e)&&e.length===0)return!0;if(typeof e==`object`){for(let n in e)if(Object.hasOwn(e,n)&&!Lt(e[n],{isNullEmpty:t}))return!1;return!0}return!1}function Rt(e){return e.split(`@`)[0]}const zt=r.object({object:r.literal(`linkedin_profile`).describe(`String representing the objectโ€™s type.`),name:r.string().nullable().describe(`The full name of the profile owner.`),headline:r.string().nullable().describe(`The current headline/tagline of the profile owner.`),profile_url:r.string().nullable().describe(`The URL of the LinkedIn profile.`),profile_picture_url:r.string().nullable().describe(`Url of profile picture`),languages:r.array(r.object({language:r.string().describe(`The name of the language`),level:r.string().nullable().describe(`Level of proficiency`)}).describe(`Language entry object`)).nullable().describe(`A list of languages spoken by the profile owner, with proficiency levels.`),skills:r.array(r.object({name:r.string().describe(`The name of the skill.`),level:r.enum([`beginner`,`intermediate`,`advanced`]).nullable().describe(`The proficiency level of the skill.`)}).describe(`Skill entry object`)).describe(`A list of skills listed on the profile, with optional proficiency levels.`),current_jobs:r.array(r.object({job_title:r.string().nullable().describe(`The title of the job.`),company_name:r.string().nullable().describe(`The name of the company.`),contract_type:r.string().nullable().describe(`The name of the company.`),company_website:r.string().nullable().describe(`The website URL of the company.`),company_social_url:r.string().nullable().describe(`LinkedIn URL of the company.`),job_description:r.string().nullable().describe(`Description of the role or responsibilities.`),start_date:r.string().nullable().describe(`The start date of the job (YYYY-MM-DD).`),end_date:r.string().nullable().describe(`The end date of the job (YYYY-MM-DD). Null if 'Present' or ongoing.`),headcount:r.string().nullable().describe(`The size of the company (e.g., '1001-5000', '1-10'). Null if not available.`),company_industry:r.string().nullable().describe(`The industry of the company. Null if not available.`),tenure_in_days:r.number().int().nullable().describe(`The total tenure for this job in days. Null if not calculable.`),tenure_in_years:r.number().nullable().describe(`The total tenure for this job in years, as a decimal. Null if not calculable.`),region:r.string().nullable().describe(`The specific location of this job (e.g., 'Seattle, Washington, United States'). Null if not available.`),country:r.string().nullable().describe(`The country where this job is located (ISO 3166-1 alpha-2 code). Null if not available.`)}).describe(`Job entry object`)).describe(`A list of the user's current primary jobs. Can be an empty array if no current jobs.`),connections_count:r.number().int().nullable().describe(`The number of connections the profile has. Null if not available or visible.`),country:r.string().nullable().describe(`The country of the profile owner's primary location.`),region:r.string().nullable().describe(`The specific region of the profile owner (e.g., 'Seattle, Washington, United States'). Null if not available.`),about:r.string().nullable().describe(`The 'About' section content from the profile. Null if empty.`),job_history:r.array(r.object({job_title:r.string().nullable().describe(`The title of the job.`),company_name:r.string().nullable().describe(`The name of the company.`),contract_type:r.string().nullable().describe(`The name of the company.`),company_website:r.string().nullable().describe(`The website URL of the company.`),company_social_url:r.string().nullable().describe(`LinkedIn URL of the company.`),job_description:r.string().nullable().describe(`Description of the role or responsibilities.`),start_date:r.string().nullable().describe(`The start date of the job (YYYY-MM-DD).`),end_date:r.string().nullable().describe(`The end date of the job (YYYY-MM-DD). Null if 'Present' or ongoing.`),headcount:r.string().nullable().describe(`The size of the company (e.g., '1001-5000', '1-10'). Null if not available.`),company_industry:r.string().nullable().describe(`The industry of the company. Null if not available.`),tenure_in_days:r.number().int().nullable().describe(`The total tenure for this job in days. Null if not calculable.`),tenure_in_years:r.number().nullable().describe(`The total tenure for this job in years, as a decimal. Null if not calculable.`),region:r.string().nullable().describe(`The specific location of this job (e.g., 'Seattle, Washington, United States'). Null if not available.`),country:r.string().nullable().describe(`The country where this job is located (ISO 3166-1 alpha-2 code). Null if not available.`)}).describe(`Job entry object`)).describe(`A list of past and current work experiences.`),current_educations:r.array(r.object({degree_name:r.string().nullable().describe(`The name of the degree (e.g., 'Bachelor of Science', 'MBA').`),field_of_study:r.string().nullable().describe(`The specific field of study (e.g., 'Computer Science', 'Business Administration').`),institution_name:r.string().describe(`The name of the educational institution.`),start_date:r.string().nullable().describe(`The start date of the education (YYYY-MM-DD).`),end_date:r.string().nullable().describe(`The end date of the education (YYYY-MM-DD). Null if 'Present' or ongoing.`),tenure_in_years:r.number().nullable().describe(`Duration at instituation in years. Null if not available.`),tenure_in_days:r.number().nullable().describe(`Duration at instituation in days. Null if not available.`),grade:r.string().nullable().describe(`The grade, GPA, or other academic achievement (e.g., '3.8/4.0', 'Distinction'). Null if not available.`),description:r.string().nullable().describe(`A description of the education, including relevant coursework or honors. Null if empty.`),activities_and_societies:r.string().nullable().describe(`A summary of activities and societies participated in. Null if empty.`)}).describe(`Education entry object`)).describe(`A list of the user's current primary educational enrollments. Can be an empty array if no current education.`),education_history:r.array(r.object({degree_name:r.string().nullable().describe(`The name of the degree (e.g., 'Bachelor of Science', 'MBA').`),field_of_study:r.string().nullable().describe(`The specific field of study (e.g., 'Computer Science', 'Business Administration').`),institution_name:r.string().describe(`The name of the educational institution.`),start_date:r.string().nullable().describe(`The start date of the education (YYYY-MM-DD).`),end_date:r.string().nullable().describe(`The end date of the education (YYYY-MM-DD). Null if 'Present' or ongoing.`),tenure_in_years:r.number().nullable().describe(`Duration at instituation in years. Null if not available.`),tenure_in_days:r.number().nullable().describe(`Duration at instituation in days. Null if not available.`),grade:r.string().nullable().describe(`The grade, GPA, or other academic achievement (e.g., '3.8/4.0', 'Distinction'). Null if not available.`),description:r.string().nullable().describe(`A description of the education, including relevant coursework or honors. Null if empty.`),activities_and_societies:r.string().nullable().describe(`A summary of activities and societies participated in. Null if empty.`)}).describe(`Education entry object`)).describe(`A list of past and current educational experiences.`)}),Bt={object:`linkedin_profile`,profile_url:`https://www.linkedin.com/in/janedoe/`,profile_picture_url:It(),languages:[{language:`English`,level:`Native`},{language:`Spanish`,level:`Conversational`}],name:`Jane Doe`,headline:`Senior Software Engineer at Tech Solutions | Cloud & AI Enthusiast`,skills:[{name:`JavaScript`,level:`advanced`},{name:`React`,level:`advanced`},{name:`Node.js`,level:`advanced`},{name:`AWS`,level:`intermediate`},{name:`Python`,level:`intermediate`},{name:`Machine Learning`,level:`beginner`}],current_jobs:[{job_title:`Senior Software Engineer`,company_name:`Tech Solutions`,company_website:`https://www.techsolutions.com`,job_description:`Developing and maintaining scalable web applications using React, Node.js, and AWS.`,contract_type:`Full-time`,start_date:`2023-01-15`,end_date:null,headcount:`1001-5000`,company_social_url:`https://www.linkedin.com/company/tech-solutions`,company_industry:`Information Technology & Services`,tenure_in_days:870,tenure_in_years:2.38,region:`Berlin, Berlin, Germany`,country:`DE`}],connections_count:850,country:`DE`,region:`Berlin, Berlin, Germany`,about:`Experienced Senior Software Engineer with a passion for building innovative and efficient software solutions. Proven ability to lead projects, mentor junior developers, and deliver high-quality code. Always eager to learn new technologies and contribute to challenging projects.`,job_history:[{job_title:`Senior Software Engineer`,company_name:`Tech Solutions`,company_website:`https://www.techsolutions.com`,job_description:`Developing and maintaining scalable web applications using React, Node.js, and AWS.`,contract_type:`Full-time`,start_date:`2023-01-15`,end_date:null,headcount:`1001-5000`,company_social_url:`https://www.linkedin.com/company/tech-solutions`,company_industry:`Information Technology & Services`,tenure_in_days:870,tenure_in_years:2.38,region:`Berlin, Berlin, Germany`,country:`DE`},{job_title:`Software Developer`,company_name:`Innovate Corp`,company_website:`https://www.innovatecorp.com`,job_description:`Contributed to the development of enterprise-level applications and collaborated with cross-functional teams.`,contract_type:`Full-time`,start_date:`2019-06-01`,end_date:`2022-12-31`,headcount:`501-1000`,company_social_url:`https://www.linkedin.com/company/innovate-corp`,company_industry:`Software Development`,tenure_in_days:1300,tenure_in_years:3.56,region:`Munich, Bavaria, Germany`,country:`DE`}],current_educations:[],education_history:[{degree_name:`Master of Science`,field_of_study:`Computer Science`,institution_name:`Technical University of Berlin`,start_date:`2017-10-01`,end_date:`2019-09-30`,tenure_in_days:730,tenure_in_years:2,grade:`1.3`,description:`Specialized in distributed systems and artificial intelligence.`,activities_and_societies:`AI Research Group, Student Mentorship Program`},{degree_name:`Bachelor of Science`,field_of_study:`Computer Engineering`,institution_name:`University of Applied Sciences Berlin`,start_date:`2014-09-01`,end_date:`2017-08-31`,tenure_in_days:1095,tenure_in_years:3,grade:`1.8`,description:`Focused on software design and embedded systems.`,activities_and_societies:`Robotics Club, Programming Competition Team`}]},Vt=r.object({name:r.string().nullable(),profile_url:r.string().nullable(),company_name:r.string().nullable(),company_website_url:r.string().nullable(),job_title:r.string().nullable()}),Ht={name:`John Doe`,profile_url:`https://linkedin.com/in/john-doe-123`,company_name:`Acme Inc.`,company_website_url:`https://acme.com`,job_title:`CEO`},Ut=r.array(r.object({markdown:r.string().nullable(),html:r.string().nullable(),links:r.array(r.string()).nullable(),metadata:r.object({title:r.string().nullable(),description:r.string().nullable()}).nullable()})),Wt=[{markdown:`[Pipe Docs home page![light logo](...)!...`,html:`<!DOCTYPE html><html lang="en" class="js-focus-visible lg:[--scroll-mt:9.5rem]" data-js-focus-visible="">...`,links:[`https://pip0.com`],metadata:{title:`A framework for data enrichment`,description:`Learn how to use Firecrawl, Groq Llama 3, and Langchain to build a 'Chat with your website' bot.`}}],Gt=r.array(r.object({url:r.url(),title:r.string().nullable(),description:r.string().nullable()})),Kt=[{url:`https://pipe0.com/resources/documentation`,title:`Pipe0 | Docs`,description:`A modern data enrichment framework`},{url:`https://pipe0.com/resources/documentation/pipes`,title:`Pipe0 Docs | Pipe Docs`,description:`Documentation for pipe0 pipes.`}],qt=r.union([r.literal(`valid`),r.literal(`invalid`),r.literal(`catch-all`),r.literal(`unknown`),r.literal(`spamtrap`),r.literal(`abuse`),r.literal(`do_not_mail`)]),Jt=r.union([r.literal(`alternate`),r.literal(`antispam_system`),r.literal(`greylisted`),r.literal(`mail_server_temporary_error`),r.literal(`forcible_disconnect`),r.literal(`mail_server_did_not_respond`),r.literal(`timeout_exceeded`),r.literal(`failed_smtp_connection`),r.literal(`mailbox_quota_exceeded`),r.literal(`exception_occurred`),r.literal(`possible_trap`),r.literal(`role_based`),r.literal(`global_suppression`),r.literal(`mailbox_not_found`),r.literal(`no_dns_entries`),r.literal(`failed_syntax_check`),r.literal(`possible_typo`),r.literal(`unroutable_ip_address`),r.literal(`leading_period_removed`),r.literal(`does_not_accept_mail`),r.literal(`alias_address`),r.literal(`role_based_catch_all`),r.literal(`disposable`),r.literal(`toxic`),r.literal(`accept_all`),r.literal(``)]),Yt=r.object({address:r.email(),status:qt,sub_status:Jt,account:r.string(),domain:r.string(),did_you_mean:r.string().nullable(),domain_age_days:r.string().nullable().optional(),active_in_days:r.union([r.literal(`30`),r.literal(`60`),r.literal(`90`),r.literal(`180`),r.literal(`365`),r.literal(`365+`),r.literal(``)]).nullable().optional(),free_email:r.boolean(),mx_found:r.enum([`true`,`false`]).nullable(),mx_record:r.string(),smtp_provider:r.string().nullable(),firstname:r.string().nullable(),lastname:r.string().nullable(),gender:r.string().nullable(),city:r.string().nullable(),region:r.string().nullable(),zipcode:r.string().nullable(),country:r.string().nullable(),processed_at:r.string()}),Xt={address:`flowerjill@aol.com`,status:`valid`,sub_status:``,free_email:!0,did_you_mean:null,account:`flowerjill`,domain:`aol.com`,domain_age_days:`8426`,active_in_days:`365`,smtp_provider:`yahoo`,mx_record:`mx-aol.mail.gm0.yahoodns.net`,mx_found:`true`,firstname:`Jill`,lastname:`Stein`,gender:`female`,country:`United States`,region:`Florida`,city:`West Palm Beach`,zipcode:`33401`,processed_at:`2017-04-01 02:48:02.592`},Zt=r.object({text:r.string(),url:r.url(),created_at:r.iso.datetime().nullable(),urn:r.string().nullable(),like_count:r.number().nullable(),comment_count:r.number().nullable()}),Qt={text:`Example post text`,url:`https://www.linkedin.com/feed/update/urn:li:activity:7276799456982007552/`,like_count:12,comment_count:3,created_at:new Date().toISOString(),urn:`7276733769981007542`},$t={"united states":`๐Ÿ‡บ๐Ÿ‡ธ`,usa:`๐Ÿ‡บ๐Ÿ‡ธ`,us:`๐Ÿ‡บ๐Ÿ‡ธ`,america:`๐Ÿ‡บ๐Ÿ‡ธ`,"united kingdom":`๐Ÿ‡ฌ๐Ÿ‡ง`,uk:`๐Ÿ‡ฌ๐Ÿ‡ง`,britain:`๐Ÿ‡ฌ๐Ÿ‡ง`,england:`๐Ÿ‡ฌ๐Ÿ‡ง`,scotland:`๐Ÿด๓ ง๓ ข๓ ณ๓ ฃ๓ ด๓ ฟ`,wales:`๐Ÿด๓ ง๓ ข๓ ท๓ ฌ๓ ณ๓ ฟ`,canada:`๐Ÿ‡จ๐Ÿ‡ฆ`,australia:`๐Ÿ‡ฆ๐Ÿ‡บ`,germany:`๐Ÿ‡ฉ๐Ÿ‡ช`,france:`๐Ÿ‡ซ๐Ÿ‡ท`,italy:`๐Ÿ‡ฎ๐Ÿ‡น`,spain:`๐Ÿ‡ช๐Ÿ‡ธ`,japan:`๐Ÿ‡ฏ๐Ÿ‡ต`,china:`๐Ÿ‡จ๐Ÿ‡ณ`,india:`๐Ÿ‡ฎ๐Ÿ‡ณ`,brazil:`๐Ÿ‡ง๐Ÿ‡ท`,russia:`๐Ÿ‡ท๐Ÿ‡บ`,mexico:`๐Ÿ‡ฒ๐Ÿ‡ฝ`,netherlands:`๐Ÿ‡ณ๐Ÿ‡ฑ`,holland:`๐Ÿ‡ณ๐Ÿ‡ฑ`,belgium:`๐Ÿ‡ง๐Ÿ‡ช`,switzerland:`๐Ÿ‡จ๐Ÿ‡ญ`,austria:`๐Ÿ‡ฆ๐Ÿ‡น`,sweden:`๐Ÿ‡ธ๐Ÿ‡ช`,norway:`๐Ÿ‡ณ๐Ÿ‡ด`,denmark:`๐Ÿ‡ฉ๐Ÿ‡ฐ`,finland:`๐Ÿ‡ซ๐Ÿ‡ฎ`,poland:`๐Ÿ‡ต๐Ÿ‡ฑ`,portugal:`๐Ÿ‡ต๐Ÿ‡น`,greece:`๐Ÿ‡ฌ๐Ÿ‡ท`,turkey:`๐Ÿ‡น๐Ÿ‡ท`,"south korea":`๐Ÿ‡ฐ๐Ÿ‡ท`,"south africa":`๐Ÿ‡ฟ๐Ÿ‡ฆ`,argentina:`๐Ÿ‡ฆ๐Ÿ‡ท`,chile:`๐Ÿ‡จ๐Ÿ‡ฑ`,colombia:`๐Ÿ‡จ๐Ÿ‡ด`,peru:`๐Ÿ‡ต๐Ÿ‡ช`,venezuela:`๐Ÿ‡ป๐Ÿ‡ช`,egypt:`๐Ÿ‡ช๐Ÿ‡ฌ`,israel:`๐Ÿ‡ฎ๐Ÿ‡ฑ`,"saudi arabia":`๐Ÿ‡ธ๐Ÿ‡ฆ`,iran:`๐Ÿ‡ฎ๐Ÿ‡ท`,iraq:`๐Ÿ‡ฎ๐Ÿ‡ถ`,pakistan:`๐Ÿ‡ต๐Ÿ‡ฐ`,bangladesh:`๐Ÿ‡ง๐Ÿ‡ฉ`,thailand:`๐Ÿ‡น๐Ÿ‡ญ`,vietnam:`๐Ÿ‡ป๐Ÿ‡ณ`,philippines:`๐Ÿ‡ต๐Ÿ‡ญ`,indonesia:`๐Ÿ‡ฎ๐Ÿ‡ฉ`,malaysia:`๐Ÿ‡ฒ๐Ÿ‡พ`,singapore:`๐Ÿ‡ธ๐Ÿ‡ฌ`,"new zealand":`๐Ÿ‡ณ๐Ÿ‡ฟ`,ireland:`๐Ÿ‡ฎ๐Ÿ‡ช`,ukraine:`๐Ÿ‡บ๐Ÿ‡ฆ`,"czech republic":`๐Ÿ‡จ๐Ÿ‡ฟ`,hungary:`๐Ÿ‡ญ๐Ÿ‡บ`,romania:`๐Ÿ‡ท๐Ÿ‡ด`,bulgaria:`๐Ÿ‡ง๐Ÿ‡ฌ`,croatia:`๐Ÿ‡ญ๐Ÿ‡ท`,serbia:`๐Ÿ‡ท๐Ÿ‡ธ`,slovenia:`๐Ÿ‡ธ๐Ÿ‡ฎ`,slovakia:`๐Ÿ‡ธ๐Ÿ‡ฐ`,estonia:`๐Ÿ‡ช๐Ÿ‡ช`,latvia:`๐Ÿ‡ฑ๐Ÿ‡ป`,lithuania:`๐Ÿ‡ฑ๐Ÿ‡น`,iceland:`๐Ÿ‡ฎ๐Ÿ‡ธ`,luxembourg:`๐Ÿ‡ฑ๐Ÿ‡บ`,malta:`๐Ÿ‡ฒ๐Ÿ‡น`,cyprus:`๐Ÿ‡จ๐Ÿ‡พ`,albania:`๐Ÿ‡ฆ๐Ÿ‡ฑ`,"bosnia and herzegovina":`๐Ÿ‡ง๐Ÿ‡ฆ`,montenegro:`๐Ÿ‡ฒ๐Ÿ‡ช`,"north macedonia":`๐Ÿ‡ฒ๐Ÿ‡ฐ`,macedonia:`๐Ÿ‡ฒ๐Ÿ‡ฐ`,moldova:`๐Ÿ‡ฒ๐Ÿ‡ฉ`,belarus:`๐Ÿ‡ง๐Ÿ‡พ`,georgia:`๐Ÿ‡ฌ๐Ÿ‡ช`,armenia:`๐Ÿ‡ฆ๐Ÿ‡ฒ`,azerbaijan:`๐Ÿ‡ฆ๐Ÿ‡ฟ`,kazakhstan:`๐Ÿ‡ฐ๐Ÿ‡ฟ`,uzbekistan:`๐Ÿ‡บ๐Ÿ‡ฟ`,kyrgyzstan:`๐Ÿ‡ฐ๐Ÿ‡ฌ`,tajikistan:`๐Ÿ‡น๐Ÿ‡ฏ`,turkmenistan:`๐Ÿ‡น๐Ÿ‡ฒ`,afghanistan:`๐Ÿ‡ฆ๐Ÿ‡ซ`,mongolia:`๐Ÿ‡ฒ๐Ÿ‡ณ`,"north korea":`๐Ÿ‡ฐ๐Ÿ‡ต`,myanmar:`๐Ÿ‡ฒ๐Ÿ‡ฒ`,burma:`๐Ÿ‡ฒ๐Ÿ‡ฒ`,laos:`๐Ÿ‡ฑ๐Ÿ‡ฆ`,cambodia:`๐Ÿ‡ฐ๐Ÿ‡ญ`,brunei:`๐Ÿ‡ง๐Ÿ‡ณ`,"sri lanka":`๐Ÿ‡ฑ๐Ÿ‡ฐ`,maldives:`๐Ÿ‡ฒ๐Ÿ‡ป`,nepal:`๐Ÿ‡ณ๐Ÿ‡ต`,bhutan:`๐Ÿ‡ง๐Ÿ‡น`,oman:`๐Ÿ‡ด๐Ÿ‡ฒ`,uae:`๐Ÿ‡ฆ๐Ÿ‡ช`,"united arab emirates":`๐Ÿ‡ฆ๐Ÿ‡ช`,qatar:`๐Ÿ‡ถ๐Ÿ‡ฆ`,bahrain:`๐Ÿ‡ง๐Ÿ‡ญ`,kuwait:`๐Ÿ‡ฐ๐Ÿ‡ผ`,jordan:`๐Ÿ‡ฏ๐Ÿ‡ด`,lebanon:`๐Ÿ‡ฑ๐Ÿ‡ง`,syria:`๐Ÿ‡ธ๐Ÿ‡พ`,yemen:`๐Ÿ‡พ๐Ÿ‡ช`,libya:`๐Ÿ‡ฑ๐Ÿ‡พ`,tunisia:`๐Ÿ‡น๐Ÿ‡ณ`,algeria:`๐Ÿ‡ฉ๐Ÿ‡ฟ`,morocco:`๐Ÿ‡ฒ๐Ÿ‡ฆ`,sudan:`๐Ÿ‡ธ๐Ÿ‡ฉ`,ethiopia:`๐Ÿ‡ช๐Ÿ‡น`,kenya:`๐Ÿ‡ฐ๐Ÿ‡ช`,uganda:`๐Ÿ‡บ๐Ÿ‡ฌ`,tanzania:`๐Ÿ‡น๐Ÿ‡ฟ`,rwanda:`๐Ÿ‡ท๐Ÿ‡ผ`,burundi:`๐Ÿ‡ง๐Ÿ‡ฎ`,somalia:`๐Ÿ‡ธ๐Ÿ‡ด`,djibouti:`๐Ÿ‡ฉ๐Ÿ‡ฏ`,eritrea:`๐Ÿ‡ช๐Ÿ‡ท`,ghana:`๐Ÿ‡ฌ๐Ÿ‡ญ`,nigeria:`๐Ÿ‡ณ๐Ÿ‡ฌ`,senegal:`๐Ÿ‡ธ๐Ÿ‡ณ`,mali:`๐Ÿ‡ฒ๐Ÿ‡ฑ`,"burkina faso":`๐Ÿ‡ง๐Ÿ‡ซ`,niger:`๐Ÿ‡ณ๐Ÿ‡ช`,chad:`๐Ÿ‡น๐Ÿ‡ฉ`,cameroon:`๐Ÿ‡จ๐Ÿ‡ฒ`,"central african republic":`๐Ÿ‡จ๐Ÿ‡ซ`,"democratic republic of congo":`๐Ÿ‡จ๐Ÿ‡ฉ`,congo:`๐Ÿ‡จ๐Ÿ‡ฌ`,gabon:`๐Ÿ‡ฌ๐Ÿ‡ฆ`,"equatorial guinea":`๐Ÿ‡ฌ๐Ÿ‡ถ`,"sao tome and principe":`๐Ÿ‡ธ๐Ÿ‡น`,"cape verde":`๐Ÿ‡จ๐Ÿ‡ป`,guinea:`๐Ÿ‡ฌ๐Ÿ‡ณ`,"guinea-bissau":`๐Ÿ‡ฌ๐Ÿ‡ผ`,"sierra leone":`๐Ÿ‡ธ๐Ÿ‡ฑ`,liberia:`๐Ÿ‡ฑ๐Ÿ‡ท`,"ivory coast":`๐Ÿ‡จ๐Ÿ‡ฎ`,"cote d'ivoire":`๐Ÿ‡จ๐Ÿ‡ฎ`,togo:`๐Ÿ‡น๐Ÿ‡ฌ`,benin:`๐Ÿ‡ง๐Ÿ‡ฏ`,mauritania:`๐Ÿ‡ฒ๐Ÿ‡ท`,gambia:`๐Ÿ‡ฌ๐Ÿ‡ฒ`,botswana:`๐Ÿ‡ง๐Ÿ‡ผ`,namibia:`๐Ÿ‡ณ๐Ÿ‡ฆ`,zimbabwe:`๐Ÿ‡ฟ๐Ÿ‡ผ`,zambia:`๐Ÿ‡ฟ๐Ÿ‡ฒ`,malawi:`๐Ÿ‡ฒ๐Ÿ‡ผ`,mozambique:`๐Ÿ‡ฒ๐Ÿ‡ฟ`,madagascar:`๐Ÿ‡ฒ๐Ÿ‡ฌ`,mauritius:`๐Ÿ‡ฒ๐Ÿ‡บ`,seychelles:`๐Ÿ‡ธ๐Ÿ‡จ`,comoros:`๐Ÿ‡ฐ๐Ÿ‡ฒ`,lesotho:`๐Ÿ‡ฑ๐Ÿ‡ธ`,swaziland:`๐Ÿ‡ธ๐Ÿ‡ฟ`,eswatini:`๐Ÿ‡ธ๐Ÿ‡ฟ`,angola:`๐Ÿ‡ฆ๐Ÿ‡ด`,bermuda:`๐Ÿ‡ง๐Ÿ‡ฒ`,"cayman islands":`๐Ÿ‡ฐ๐Ÿ‡พ`,"british virgin islands":`๐Ÿ‡ป๐Ÿ‡ฌ`,"turks and caicos":`๐Ÿ‡น๐Ÿ‡จ`,anguilla:`๐Ÿ‡ฆ๐Ÿ‡ฎ`,montserrat:`๐Ÿ‡ฒ๐Ÿ‡ธ`,"falkland islands":`๐Ÿ‡ซ๐Ÿ‡ฐ`,gibraltar:`๐Ÿ‡ฌ๐Ÿ‡ฎ`,jersey:`๐Ÿ‡ฏ๐Ÿ‡ช`,guernsey:`๐Ÿ‡ฌ๐Ÿ‡ฌ`,"isle of man":`๐Ÿ‡ฎ๐Ÿ‡ฒ`,"faroe islands":`๐Ÿ‡ซ๐Ÿ‡ด`,greenland:`๐Ÿ‡ฌ๐Ÿ‡ฑ`,"french polynesia":`๐Ÿ‡ต๐Ÿ‡ซ`,"new caledonia":`๐Ÿ‡ณ๐Ÿ‡จ`,"wallis and futuna":`๐Ÿ‡ผ๐Ÿ‡ซ`,"french guiana":`๐Ÿ‡ฌ๐Ÿ‡ซ`,martinique:`๐Ÿ‡ฒ๐Ÿ‡ถ`,guadeloupe:`๐Ÿ‡ฌ๐Ÿ‡ต`,reunion:`๐Ÿ‡ท๐Ÿ‡ช`,mayotte:`๐Ÿ‡พ๐Ÿ‡น`,"saint pierre and miquelon":`๐Ÿ‡ต๐Ÿ‡ฒ`,"puerto rico":`๐Ÿ‡ต๐Ÿ‡ท`,"us virgin islands":`๐Ÿ‡ป๐Ÿ‡ฎ`,"american samoa":`๐Ÿ‡ฆ๐Ÿ‡ธ`,guam:`๐Ÿ‡ฌ๐Ÿ‡บ`,"northern mariana islands":`๐Ÿ‡ฒ๐Ÿ‡ต`,"united states minor outlying islands":`๐Ÿ‡บ๐Ÿ‡ฒ`,"cook islands":`๐Ÿ‡จ๐Ÿ‡ฐ`,niue:`๐Ÿ‡ณ๐Ÿ‡บ`,tokelau:`๐Ÿ‡น๐Ÿ‡ฐ`,"christmas island":`๐Ÿ‡จ๐Ÿ‡ฝ`,"cocos islands":`๐Ÿ‡จ๐Ÿ‡จ`,"norfolk island":`๐Ÿ‡ณ๐Ÿ‡ซ`,"hong kong":`๐Ÿ‡ญ๐Ÿ‡ฐ`,macau:`๐Ÿ‡ฒ๐Ÿ‡ด`,macao:`๐Ÿ‡ฒ๐Ÿ‡ด`,taiwan:`๐Ÿ‡น๐Ÿ‡ผ`,"san marino":`๐Ÿ‡ธ๐Ÿ‡ฒ`,vatican:`๐Ÿ‡ป๐Ÿ‡ฆ`,"vatican city":`๐Ÿ‡ป๐Ÿ‡ฆ`,liechtenstein:`๐Ÿ‡ฑ๐Ÿ‡ฎ`,monaco:`๐Ÿ‡ฒ๐Ÿ‡จ`,andorra:`๐Ÿ‡ฆ๐Ÿ‡ฉ`,jamaica:`๐Ÿ‡ฏ๐Ÿ‡ฒ`,cuba:`๐Ÿ‡จ๐Ÿ‡บ`,haiti:`๐Ÿ‡ญ๐Ÿ‡น`,"dominican republic":`๐Ÿ‡ฉ๐Ÿ‡ด`,bahamas:`๐Ÿ‡ง๐Ÿ‡ธ`,barbados:`๐Ÿ‡ง๐Ÿ‡ง`,"trinidad and tobago":`๐Ÿ‡น๐Ÿ‡น`,"saint lucia":`๐Ÿ‡ฑ๐Ÿ‡จ`,"saint vincent and the grenadines":`๐Ÿ‡ป๐Ÿ‡จ`,grenada:`๐Ÿ‡ฌ๐Ÿ‡ฉ`,dominica:`๐Ÿ‡ฉ๐Ÿ‡ฒ`,"antigua and barbuda":`๐Ÿ‡ฆ๐Ÿ‡ฌ`,"saint kitts and nevis":`๐Ÿ‡ฐ๐Ÿ‡ณ`,fiji:`๐Ÿ‡ซ๐Ÿ‡ฏ`,"papua new guinea":`๐Ÿ‡ต๐Ÿ‡ฌ`,"solomon islands":`๐Ÿ‡ธ๐Ÿ‡ง`,vanuatu:`๐Ÿ‡ป๐Ÿ‡บ`,samoa:`๐Ÿ‡ผ๐Ÿ‡ธ`,tonga:`๐Ÿ‡น๐Ÿ‡ด`,kiribati:`๐Ÿ‡ฐ๐Ÿ‡ฎ`,tuvalu:`๐Ÿ‡น๐Ÿ‡ป`,nauru:`๐Ÿ‡ณ๐Ÿ‡ท`,palau:`๐Ÿ‡ต๐Ÿ‡ผ`,"marshall islands":`๐Ÿ‡ฒ๐Ÿ‡ญ`,micronesia:`๐Ÿ‡ซ๐Ÿ‡ฒ`,uruguay:`๐Ÿ‡บ๐Ÿ‡พ`,paraguay:`๐Ÿ‡ต๐Ÿ‡พ`,bolivia:`๐Ÿ‡ง๐Ÿ‡ด`,ecuador:`๐Ÿ‡ช๐Ÿ‡จ`,guyana:`๐Ÿ‡ฌ๐Ÿ‡พ`,suriname:`๐Ÿ‡ธ๐Ÿ‡ท`,guatemala:`๐Ÿ‡ฌ๐Ÿ‡น`,belize:`๐Ÿ‡ง๐Ÿ‡ฟ`,honduras:`๐Ÿ‡ญ๐Ÿ‡ณ`,"el salvador":`๐Ÿ‡ธ๐Ÿ‡ป`,nicaragua:`๐Ÿ‡ณ๐Ÿ‡ฎ`,"costa rica":`๐Ÿ‡จ๐Ÿ‡ท`,panama:`๐Ÿ‡ต๐Ÿ‡ฆ`};function en(e,t){let n=[];for(let e=0;e<=t.length;e++)n[e]=[e];for(let t=0;t<=e.length;t++)n[0][t]=t;for(let r=1;r<=t.length;r++)for(let i=1;i<=e.length;i++)t.charAt(r-1)===e.charAt(i-1)?n[r][i]=n[r-1][i-1]:n[r][i]=Math.min(n[r-1][i-1]+1,n[r][i-1]+1,n[r-1][i]+1);return n[t.length][e.length]}function tn(e){return e.toLowerCase().trim().replace(/[^\w\s]/g,` `).replace(/\s+/g,` `).trim()}function nn(e){let t=tn(e);if($t[t])return t;let n=null,r=1/0,i=Math.min(3,Math.floor(t.length*.3));for(let e of Object.keys($t)){let a=en(t,e),o=e.includes(t)||t.includes(e);(a<=i&&a<r||o&&a<r*1.5)&&(n=e,r=a)}return n}function rn(e){try{let t=e.split(`,`).map(e=>e.trim());return t.length===0?null:t[t.length-1]||null}catch{return null}}function an(e){try{if(!e||typeof e!=`string`||e.trim()===``)return null;let t=rn(e);return t?on(t):null}catch{return null}}function on(e){try{if(!e||typeof e!=`string`||e.trim()===``)return null;let t=nn(e);return t&&$t[t]||null}catch{return null}}function sn(e){try{let t=new URL(e);if(!t.hostname.includes(`linkedin.com`))return console.warn(`Provided URL is not a LinkedIn URL: ${e}`),``;let n=t.pathname;n.endsWith(`/`)&&(n=n.slice(0,-1));let r=n.split(`/`).filter(e=>e.length>0);return r.length>0&&r[r.length-1]||``}catch{return``}}const cn={company_description:{label:`Company description`,type:`string`,description:`A summary of the main business purpose and objectives.`,jsonMeta:null,format:`markdown`},cleaned_company_name:{label:`Cleaned company name`,type:`string`,description:`The standardized and cleaned version of the company name, ensuring consistency across different entries.`,jsonMeta:null,format:`text`},website_markdown:{label:`Scrape result - Markdown`,type:`string`,description:`Markdown-formatted scrape of a website.`,jsonMeta:null,format:`markdown`},mapped_links:{label:`Website internal links`,type:`json`,format:`json_list`,description:`A list of website links.`,jsonMeta:{zodSchema:Gt,exampleValue:Kt}},website_html:{label:`Scrape result - HTML`,type:`string`,description:`HTML-formatted scrape of a website.`,jsonMeta:null,format:null},website_url:{label:`Website URL`,type:`string`,description:`Generic URL of a website.`,jsonMeta:null,format:`url`},scrape_list_response:{label:`URLs`,type:`json`,description:`List of URLs`,jsonMeta:{zodSchema:Ut,exampleValue:Wt},format:null},urls:{label:`URLs`,type:`json`,description:`List of URLs`,jsonMeta:{zodSchema:r.array(r.string()),exampleValue:[`https://pipe0.com`,`https://pipe0.com/resources/documentation`]},format:`json_list_string`},website_links:{label:`URLs`,type:`json`,description:`List of URLs scraped from a website`,jsonMeta:{zodSchema:r.array(r.string()),exampleValue:[`https://pipe0.com`,`https://pipe0.com/resources/documentation`]},format:`json_list_string`},clado_person_profile:{label:`Clado person profile`,type:`json`,description:`Fully enriched people profile`,jsonMeta:{zodSchema:ze,exampleValue:Be},format:`json_object`},company_industry:{label:`Company industry`,type:`string`,description:`The industry in which the company operates.`,jsonMeta:null,format:`text`},company_region:{label:`Company region`,type:`string`,description:`The region corresponding to the company's country.`,jsonMeta:null,format:`text`},location_hint:{label:`Location hint`,type:`string`,description:`An optional hint to help pinpoint a person's or company's location.`,jsonMeta:null,format:`text`},leadmagic_competitor_list:{label:`Competitor list`,type:`json`,description:`A list of the top competitors for a given company as provided by LeadMagic`,jsonMeta:{zodSchema:wt,exampleValue:Tt},format:`json_list`},leadmagic_acquisition_history:{label:`Acquisition history`,type:`json`,description:`A list of acquisitions by a given company`,format:`json_list`,jsonMeta:{exampleValue:Dt,zodSchema:Et}},leadmagic_company_news_list:{label:`Company news list`,type:`json`,description:`A list of company news`,format:`json_list`,jsonMeta:{exampleValue:kt,zodSchema:Ot}},estimated_revenue:{label:`Estimated Annual Revenue`,type:`string`,description:`The estimated annual revenue of the company.`,jsonMeta:null,format:`text`},funding_history:{label:`Funding history`,type:`json`,description:`List of corporate funding rounds.`,format:null,jsonMeta:{zodSchema:vt,exampleValue:yt}},funding_total_usd:{label:`Total funding (USD)`,type:`number`,description:`Amount of total known funding`,jsonMeta:null,format:`currency`},founded_year:{label:`Founding year`,type:`string`,description:`The year the company was founded.`,jsonMeta:null,format:`text`},technology_list:{type:`json`,label:`Technology list`,description:`A flat list of technologies used by a company`,jsonMeta:{zodSchema:Fe,exampleValue:Ie},format:`json_list`},spending_trend:{type:`number`,label:`Spending Trend`,description:`Technology spending trend over the last 2 years. Average deviation between measuring points in %.`,jsonMeta:null,format:`percent`},technology_match_builtwith:{type:`json`,label:`Builtwith technology response`,description:`A datastructure containing the technologies used by this company`,format:`json_object`,jsonMeta:{zodSchema:Le,exampleValue:Re}},number_of_social_followers:{label:`Follower count`,type:`number`,description:`Social followers (or zero if not found).`,jsonMeta:null,format:`int`},mobile:{label:`Mobile`,type:`string`,description:`Mobile telephone number of a person.`,jsonMeta:null,format:`phone`},phone:{label:`Phone`,type:`string`,description:`A generic field for phone numbers. Can be mobile or landline.`,jsonMeta:null,format:`phone`},landline:{label:`Landline`,type:`string`,description:`A landline phone number`,jsonMeta:null,format:`phone`},job_title:{label:`Job title`,type:`string`,description:`Current job title of a person`,jsonMeta:null,format:`text`},job_description:{label:`Job description`,type:`string`,description:`Description of current job`,jsonMeta:null,format:`text`},email:{label:`Email address`,type:`string`,description:`A union field that can contain both professional and personal email addresses.`,jsonMeta:null,format:`email`},personal_email:{label:`Personal email`,type:`string`,description:`The personal email address of a prospect.`,jsonMeta:null,format:`email`},alternate_personal_emails:{label:`Alternate personal email`,type:`json`,description:`The personal email addresses that are associated with a prospect but less likely to be the primary email address of a prospect.`,jsonMeta:{zodSchema:r.array(r.string()),exampleValue:[`john@pipe0.com`,`jane@pipe0.com`]},format:`json_list_string`},company_news_summary:{label:`Latest news`,type:`string`,description:`Latest company news.`,jsonMeta:null,format:`markdown`},work_email:{label:`Work email`,type:`string`,jsonMeta:null,description:`Email address of a person connection to their place of employment.`,format:`email`},headcount:{label:`Headcount`,type:`string`,jsonMeta:null,description:`Total number of people employed in a particular organization`,format:`text`},company_website_url:{label:`Company website URL`,type:`string`,description:`Website URL of a related company.`,jsonMeta:null,format:`website_url`},company_domain:{label:`Company domain`,type:`string`,description:`Bare domain of a related company. Example: stripe.com (no scheme, no path).`,jsonMeta:null,format:`text`},company_name:{label:`Company name`,type:`string`,description:`Name of a company.`,jsonMeta:null,format:`text`},clado_person_match:{label:`Clado person match`,description:`Object returned from a Clado people search.`,format:`json_object`,type:`json`,jsonMeta:{zodSchema:ze,exampleValue:Be}},clado_person_match_v2:{label:`Clado person match`,description:`Object returned from a Clado people search.`,format:`json_object`,type:`json`,jsonMeta:{zodSchema:Qe,exampleValue:$e}},icypeas_person_match:{label:`Icypeas person match`,description:`Object returned from a Icypeas people search`,format:`json_object`,type:`json`,jsonMeta:{zodSchema:St,exampleValue:Ct}},icypeas_company_match:{label:`Icypeas company match`,description:`Object returned from a Icypeas people search`,format:`json_object`,type:`json`,jsonMeta:{zodSchema:bt,exampleValue:xt}},first_name:{label:`First name`,type:`string`,description:`First name of a person.`,jsonMeta:null,format:`text`},addressee_name:{label:`Addressee name`,type:`string`,description:`Recipient name in the format required by postal services.`,jsonMeta:null,format:`text`},avatar_url:{label:`Avatar URL`,type:`string`,description:`URL for profile picture`,jsonMeta:null,format:`url`},address_line_1:{label:`Address line 1`,type:`string`,description:`First line of an address (e.g. street address)`,jsonMeta:null,format:`address_line_1`},address_line_2:{label:`Address line 2`,type:`string`,description:`The formatted address of a companyโ€™s headquarters.`,jsonMeta:null,format:`text`},address_city:{label:`Address city`,type:`string`,description:`Name of a city as needed for an address.`,jsonMeta:null,format:`text`},address_country:{label:`Address country`,type:`string`,description:`Name of a country as needed for an address.`,jsonMeta:null,format:`text`},address_state:{label:`State`,type:`string`,description:`Name of a state.`,jsonMeta:null,format:`text`},zip_code:{label:`Zip code`,type:`string`,description:`A postal zip code. Usually a combination of numbers and letters.`,jsonMeta:null,format:`zip_code`},last_name:{label:`Last name`,type:`string`,description:`Last name of a person.`,jsonMeta:null,format:`text`},estimated_salary:{label:`Estimated salary`,type:`string`,description:`Estimated total salary in USD.`,jsonMeta:null,format:`text`},skills:{label:`Skills`,type:`string`,description:`List of professional skills`,jsonMeta:null,format:`text`},is_work_email:{label:`Is work email result`,type:`boolean`,description:`Check if a given email is a work email.`,jsonMeta:null,format:null},name:{label:`Full name`,type:`string`,description:`The full name of a person. Usually a combination of first and last name.`,jsonMeta:null,format:`text`},ip_address:{label:`IP address`,type:`string`,description:`IP Address of a person`,jsonMeta:null,format:`text`},is_email_valid:{label:`Email validation`,type:`boolean`,description:`Check if an email address is valid and can receive emails.`,jsonMeta:null,format:null},profile:{label:`Professional profile`,type:`json`,description:`A standardized format for returning LinkedIn profile data.`,format:null,jsonMeta:{zodSchema:zt,exampleValue:Bt}},profile_url:{label:`LinkedIn profile URL`,type:`string`,format:`profile_url`,description:`A person's LinkedIn profile URL.`,jsonMeta:null},developer_profile_url:{label:`Developer profile URL`,type:`string`,format:`profile_url`,description:`A person's primary developer profile URL (e.g. GitHub).`,jsonMeta:null},alternative_developer_profile_urls:{label:`Alternative developer profile URLs`,type:`json`,format:`json_list_string`,description:`Additional developer profile URLs (GitHub, GitLab, etc.) discovered for the person.`,jsonMeta:{zodSchema:r.array(r.string()),exampleValue:[`https://github.com/mxschmitt`]}},profile_posts:{label:`Recrent linkedIn posts`,type:`json`,description:`List of recent LinkedIn posts in JSON format.`,format:`json_list`,jsonMeta:{zodSchema:r.array(Zt),exampleValue:Qt}},profile_headline:{label:`Profile headline`,type:`string`,format:`text`,description:`Professional profile headline`,jsonMeta:null},company_profile_url:{label:`Company LinkedIn profile URL`,type:`string`,format:`profile_url`,description:`Company LinkedIn URL.`,jsonMeta:null},resend_email_success:{label:`Resend mail success`,type:`boolean`,format:null,jsonMeta:null,description:`Result of email sending action using Resend`},resend_contact_id:{label:`Resend contact id`,type:`string`,format:`text`,description:`Id of a single resend contact`,jsonMeta:null},sheet:{label:`Sheet name`,type:`string`,format:`text`,description:`Name of a pipe0 sheet`,jsonMeta:null},string_input:{label:`String input`,type:`string`,format:`text`,description:`Input field of type string`,jsonMeta:null},domain:{label:`Domain`,type:`string`,format:`text`,description:`A domain field.`,jsonMeta:null},url_input:{label:`URL input`,type:`string`,format:`url`,description:`Input field of type string and URL format`,jsonMeta:null},slugified:{label:`Slugified value`,type:`string`,format:`text`,description:`A value that has been stripped of characters not found in slugs.`,jsonMeta:null},http_response_status:{label:`HTTP response status`,type:`number`,format:`int`,description:`HTTP status code returned by the upstream endpoint.`,jsonMeta:null},http_response_body:{label:`HTTP response body`,type:`json`,format:`json_object`,description:`Parsed JSON body returned by the upstream endpoint.`,jsonMeta:null},http_response_headers:{label:`HTTP response headers`,type:`json`,format:`json_object`,description:`Response headers returned by the upstream endpoint as a flat key-value map.`,jsonMeta:null},sheet_record_id:{label:`Record ID`,type:`string`,format:`text`,description:`ID of sheet record`,jsonMeta:null},sheet_record_ids:{label:`Record IDs`,type:`json`,format:`json_list_string`,description:`IDs sheet records`,jsonMeta:null},gmail_email_success:{label:`Gmail e-mail success`,type:`boolean`,format:null,jsonMeta:null,description:`Result of email sending action using Gmail`},slack_message_success:{label:`Slack message success`,type:`boolean`,format:null,jsonMeta:null,description:`Result of sending a message using Slack`},email_body:{label:`A markdown email`,type:`string`,format:`markdown`,jsonMeta:null,description:`The test of an email formatted as markdown`},message:{label:`Message`,type:`string`,format:`markdown`,jsonMeta:null,description:`A markdown message that be send to any chat app.`},email_subject:{label:`Subject Line`,type:`string`,format:`text`,jsonMeta:null,description:`Subject line for email`},template_output:{label:`Template Output`,type:`string`,format:`text`,jsonMeta:null,description:`Template value where the tags are replaces with real values`},email_validation_status:{label:`Validation status`,type:`string`,format:`text`,jsonMeta:null,description:`Email validation status. Allowed values are: 'valid', 'invalid', 'catch_all', 'unknown'`},million_validation_match:{label:`Million Verifier match`,type:`json`,format:`json_object`,description:`Email validation status. Allowed values are: 'valid', 'invalid', 'catch_all', 'unknown'`,jsonMeta:{zodSchema:Pt,exampleValue:Ft}},zerobounce_validation_status:{label:`ZeroBounce Validation Status`,type:`string`,format:`text`,jsonMeta:null,description:`Validation status as returned from ZeroBounce single validation`},zerobounce_validation_match:{label:`ZeroBounce Validation Match`,type:`json`,format:`json_object`,description:`Full validation object as returned by ZeroBounce`,jsonMeta:{zodSchema:Yt,exampleValue:Xt}},input_objects:{label:`Input objects`,type:`json`,format:`json_list`,description:`List of unstructured input objects`,jsonMeta:null},created_sheet:{label:`Created sheet`,type:`string`,format:null,description:`Reference to a created sheet`,jsonMeta:null},merge_result:{label:`Merge Result`,type:`unknown`,format:null,description:`Full validation object as returned by ZeroBounce`,jsonMeta:null},firecrawl_extract_result:{label:`Extract Result`,type:`json`,format:null,description:`Result of a firecrawl extract operation`,jsonMeta:null},exa_match_evaluation:{label:`Exa Match Evaluation`,type:`json`,format:`json_object`,description:`Exa search result.`,jsonMeta:{zodSchema:gt,exampleValue:_t}},companyenrich_match:{label:`Company match`,type:`json`,format:`json_object`,description:`CompanyEnrich response object`,jsonMeta:{zodSchema:et,exampleValue:tt}},crustdata_person_match:{label:`Person match`,type:`json`,format:`json_object`,description:`Crustdata company match object`,jsonMeta:{zodSchema:ct,exampleValue:lt}},parallel_person_entity_match:{label:`Person match`,type:`json`,format:`json_object`,description:`Parallel person match object parsed from the entity description`,jsonMeta:{zodSchema:ft,exampleValue:pt}},parallel_company_entity_match:{label:`Company match`,type:`json`,format:`json_object`,description:`Parallel company match object parsed from the entity description`,jsonMeta:{zodSchema:ut,exampleValue:dt}},crustdata_profile_match_score:{label:`Match score`,type:`number`,format:`decimal`,description:`A number between 1 and 0 indicating the confidence that the profile belongs to the input email address.`,jsonMeta:null},crustdata_company_match:{label:`Company match`,type:`json`,format:`json_object`,description:`Crustdata company match object`,jsonMeta:{zodSchema:nt,exampleValue:rt}},crustdata_companyenrich_match:{label:`Company enrichment match`,type:`json`,format:`json_object`,description:`Crustdata company enrichment match.`,jsonMeta:{zodSchema:it,exampleValue:at}},crustdata_company_identity_matches:{label:`Company identity matches`,type:`json`,format:`json_list`,description:`List of Crustdata company candidates matched by name or domain.`,jsonMeta:{zodSchema:ot,exampleValue:st}},post_list_string:{label:`Post list`,type:`json`,format:`json_list_string`,description:`LinkedIn post list`,jsonMeta:{zodSchema:r.array(r.string()),exampleValue:[`Y Combinator's most popular startups.
62
62
  From the current S24 batch.
63
63
 
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:ut,exampleValue:dt}},role_finder_match:{label:`Role finder match`,type:`json`,format:`json_object`,description:`Result of a role finder operation`,jsonMeta:{zodSchema:Lt,exampleValue:Rt}},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:kt,zodSchema:Ot}},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:Ft,exampleValue:It},format:`json_object`},professional_profile_url:{label:`LinkedIn Profile URL`,type:`string`,format:`profile_url`,description:`A person's LinkedIn profile URL.`,jsonMeta:null}},an={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=en(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=nn(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=nn(e);return{display_value:t?{label:t}:void 0,icon:{key:`linkedin`}}}},company_profile_url:{getStaticWidgets(e){let t=nn(e);return{display_value:t?{label:t}:void 0,icon:{key:`linkedin`}}}},developer_profile_url:{},alternative_developer_profile_urls:{},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_company_identity_matches:{},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{...rn[e],name:e}}function on(e,t){if(cn(e,t))return an[e]}function sn(e){return e in rn}function cn(e,t){return e in rn?rn[e].format===t:!1}const ln={completed:`Completed`,failed:`Failed`,no_result:`No result`,pending:`Pending`,processing:`Processing`,queued:`Queued`,skipped:`Skipped`};function un(e){return ln[e]}const dn=(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},fn=(e,t)=>n=>{let r=e(n);return r!=null&&r!==``?{disabled:!1}:{disabled:!0,message:t}},pn=(...e)=>t=>{for(let n of e){let e=n(t);if(e.disabled)return e}return{disabled:!1}},mn=(...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 hn(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 gn=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.developer_profile_url.alternative_developer_profile_urls.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_company_identity_matches.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(`.`)),_n=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.parallel`.split(`.`)),vn=r.enum([`production`,`sandbox`]),yn=`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.company:identity:crustdata@1.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.person:devprofileurl:profileurl: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(`.`),bn=r.enum(yn),xn=[`string`,`number`,`boolean`,`json`,`unknown`],Sn=r.enum(xn),Cn=r.union([r.number(),r.string()]),wn=r.union([r.literal(`completed`),r.literal(`failed`),r.literal(`pending`),r.literal(`queued`),r.literal(`processing`),r.literal(`no_result`),r.literal(`skipped`)]),Tn=r.union([r.string().min(1),r.number(),r.boolean(),r.null(),r.record(r.string(),r.unknown()),r.array(r.unknown())]),En=r.object({example_value:r.any().nullable(),schema:r.any().nullable()}),Dn=r.object({}),On=Dn.extend({image_url:r.string().url().describe(`URL to the provider's logo image.`),entity:r.string().describe(`The name of the entity.`)}),kn=Dn.extend({emoji:r.string().describe(`Country flag emoji.`)}),An=Dn.extend({image_url:r.url().describe(`URL to the provider's logo image.`),name:r.string().describe(`The name of the avatar owner.`)}),jn=Dn.extend({attempted_providers:r.array(r.object({provider:_n})),available_providers:r.array(_n),successful_provider:_n.optional()}),Mn=r.enum([`linkedin`,`job`]),Nn=Dn.extend({key:Mn}).optional(),Pn=r.object({result_status:r.enum([`completed`,`failed`])}).optional(),Fn=r.object({list:r.array(r.object({source:r.string(),description:r.string().optional(),url:r.string()}))}).optional(),In=r.object({numeric:r.int().min(1).max(5)}).optional(),Ln=r.object({display_value:r.object({label:r.string().optional()}),entity_logo:On.optional(),location_indicator:kn.optional(),avatar:An.optional(),waterfall:jn.optional(),icon:Nn,action_summary:Pn,sources:Fn,confidence:In}).partial().describe(`A map of widgets associated with this field for UI display, keyed by widget type.`),Rn=r.object({code:r.string(),message:r.string(),path:r.string().optional()}),zn=r.object({code:r.string(),summary:r.string(),message:r.string()}),Bn=[`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`],Vn=r.enum(Bn);Vn.nullable();const Hn=r.object({type:Sn,label:r.string().nullable().optional(),format:Vn.nullable().optional(),json_metadata:En.nullable().optional()}),Un=r.record(r.string(),Hn),Wn=r.enum([...yn,`input`]).nullable(),Gn=r.enum([...yn,`input`,`system`]).nullable(),Kn=r.object({ref:Wn,config_hash:r.string().nullable()}),qn=r.object({ref:Gn,environment:vn.nullable(),config_hash:r.string().nullable(),input_hash:r.string().nullable()}),Jn=r.object({value:Tn,status:wn,type:Sn,reason:zn.nullable(),claimed_by:Kn,resolved_by:qn.nullable(),widgets:Ln.optional(),format:Vn.nullable()}),Yn=r.object({value:Tn,status:wn,reason:zn.nullable().optional(),type:Sn.optional(),format:Vn.nullable().optional(),claimed_by:Kn.optional(),resolved_by:qn.nullable().optional(),widgets:Ln.optional()}),Xn=r.record(r.string(),r.union([Tn,Yn])).openapi(`PipesInput`),Zn=r.object({id:Cn,fields:r.record(Cn,Jn)}),Qn=r.object({type:r.literal(`catalog`),fieldName:r.string().min(1)}),$n=r.object({type:Sn,label:r.string(),added_by:r.object({ref:r.union([bn,r.literal(`input`)]),config_hash:r.string().nullable(),pipe_index:r.number().nullable()}),format:Vn.nullable(),is_primary_output:r.boolean()}),er=r.record(r.string(),$n),tr=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:Vn.nullable().default(null),label:r.string().optional(),type:Sn})})).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)})})}),nr=r.enum([`eq`,`neq`,`gt`,`gte`,`lt`,`lte`,`contains`]),rr={eq:`equals`,neq:`not equals`,gt:`greater than`,gte:`greater than or equal`,lt:`less than`,lte:`less than or equal`,contains:`contains`},ir=[`eq`,`neq`,`gt`,`gte`,`lt`,`lte`,`contains`],ar=[`eq`,`neq`],or=r.object({type:r.literal(`vault`),connection:r.string()}),v=r.object({strategy:r.enum([`first`]).default(`first`),connections:r.array(or)}).nullable().optional(),sr=r.object({strategy:r.enum([`first`]).default(`first`),connections:r.array(or).min(1,{message:`Provide your own credentials to use this object.`})}),cr=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(),lr=r.enum(ir),ur=r.enum(ar),dr=r.enum([`failed`,`no_result`,`completed`,`skipped`]),fr=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:lr.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:ur.describe(`Status comparison operator: "eq" or "neq".`),value:dr.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" }] } }`),pr={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},parallel:{name:`parallel`,label:`Parallel`,description:`Agentic web search & research APIs purpose-built for AI agents.`,public:!0,hasManagedConnections:!0,allowsUserConnections:!0,url:`https://parallel.ai`,connectionType:`api_key`,logoUrl:`https://imagedelivery.net/3B3AWuP94-S3Ro5eEac6JA/adecf16b-4187-409b-d77f-16fc07fc6100/icon`,background:{light:`#E0E5FF`,dark:`#0F1A3D`},oAuthConfig:null}},mr=[`if`,`elsif`,`else`,`endif`,`unless`,`endunless`,`for`,`endfor`,`break`,`continue`,`output`],hr=[`json`,`escape`,`escape_once`,`default`,`upcase`,`downcase`,`size`,`join`,`first`,`last`,`replace`,`truncate`,`strip`,`newline_to_br`,`url_encode`],gr=/^[A-Z][A-Z0-9_]*$/,_r=/^[A-Z][A-Z0-9_]*$/,vr=/^[a-zA-Z_][a-zA-Z0-9_]*$/,yr=`SECRETS`,br=`CONSTANTS`,xr=new Set(mr),Sr=new Set(hr),Cr=e=>`{${e}}`;var wr=class extends i{constructor(e){super(),this.values=e}liquidMethodMissing(e){let t=String(e);if(!gr.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]}},Tr=class extends i{constructor(e){super(),this.values=e}liquidMethodMissing(e){let t=String(e);if(!_r.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 Er(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(!vr.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 Dr(){let e=new a({strictVariables:!1,strictFilters:!0,jsTruthy:!0,greedy:!1,catchAllErrors:!1,ownPropertyOnly:!0});e.registerTag(`output`,{parse(e,t){let n=Er(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(Cr(n.name))}});for(let t of Object.keys(e.tags))xr.has(t)||delete e.tags[t];for(let t of Object.keys(e.filters))Sr.has(t)||delete e.filters[t];return e}let Or=null;function kr(){return Or||=Dr(),Or}async function Ar(e,t,n={}){let r=kr(),i=n.renderLimitMs??250,a={...t.inputs??{},[yr]:new wr(t.secrets??{}),[br]:new Tr(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 jr(e,t,n={}){let r=kr(),i=n.renderLimitMs??250,a={...t.inputs??{},[yr]:new wr(t.secrets??{}),[br]:new Tr(t.constants??{})},o=r.parseAndRenderSync(e,a,{globals:{__outputAllowed:n.outputAllowed===!0},renderLimit:i});return String(o)}function Mr(e){return kr().parse(e)}function Nr(e){let t=kr().parse(e),n={scopeStack:[],guardStack:[],inputs:new Map,secrets:new Set,constants:new Set,outputs:[],forDepth:0};Pr(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 Pr(e,t){for(let n of e)Fr(n,t)}function Fr(e,t){let n=e;if(n.value&&typeof n.value==`object`&&`filters`in n.value&&`initial`in n.value){Br(n.value,t,!1);return}if(typeof n.name==`string`){Ir(n,t);return}}function Ir(e,t){switch(e.name){case`for`:Lr(e,t);return;case`if`:case`unless`:Rr(e,t);return;case`output`:zr(e,t);return;case`break`:case`continue`:return;default:throw Error(`Unhandled liquid tag in analyzer: ${e.name}`)}}function Lr(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&&Vr(e.collection,t,!1);let n=typeof e.variable==`string`?e.variable:null;n&&t.scopeStack.push(n),Pr(Array.isArray(e.templates)?e.templates:[],t),n&&t.scopeStack.pop(),Pr(Array.isArray(e.elseTemplates)?e.elseTemplates:[],t),--t.forDepth}function Rr(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=Wr(i.initial)),a&&t.guardStack.push(a),i&&typeof i==`object`&&Br(i,t,!1),Pr(r.templates,t),a&&t.guardStack.pop()}Pr(Array.isArray(e.elseTemplates)?e.elseTemplates:[],t)}function zr(e,t){let n=e.outputDecl;if(!n){let t=e.token?.args;typeof t==`string`&&(n=Er(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 Br(e,t,n){let r=e.filters.some(e=>e.name===`default`),i=n||r;for(let n of e.initial.postfix)Gr(n)&&Ur(n,t,i);for(let n of e.filters)for(let e of n.args)Hr(e,t)}function Vr(e,t,n){Gr(e)&&Ur(e,t,n)}function Hr(e,t){if(Array.isArray(e)){let n=e[1];n&&Vr(n,t,!1)}else Vr(e,t,!1)}function Ur(e,t,n){let r=e.props;if(r.length===0)return;let i=r[0];if(!i||!Kr(i))return;let a=i.content;if(t.scopeStack.includes(a))return;if(a===`SECRETS`){let e=r[1];if(!e||!Kr(e))throw Error(`Invalid SECRETS reference โ€” expected SECRETS.KEY (got ${Yr(r)}).`);let n=e.content;if(!gr.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||!Kr(e))throw Error(`Invalid CONSTANTS reference โ€” expected CONSTANTS.KEY (got ${Yr(r)}).`);let n=e.content;if(!_r.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 Wr(e){if(e.postfix.length===1){let t=e.postfix[0];if(t&&Gr(t)&&t.props.length===1){let e=t.props[0];if(e&&Kr(e))return e.content}}if(e.postfix.length===3){let[t,n,r]=e.postfix;if(t&&n&&r&&Gr(t)&&t.props.length===1){let e=t.props[0];if(e&&Kr(e)&&qr(n)&&Jr(r,[`==`,`!=`]))return e.content}}return null}function Gr(e){return e.kind===o.PropertyAccess}function Kr(e){return!!e&&typeof e==`object`&&e.kind===o.Word}function qr(e){if(e.kind!==o.Literal)return!1;let t=e.literal;return t===`nil`||t===`null`}function Jr(e,t){return e.kind===o.Operator?t.includes(e.operator):!1}function Yr(e){let t=[];for(let n of e)n&&Kr(n)?t.push(n.content):t.push(`?`);return t.join(`.`)}function Xr(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:_n.parse(n),id:r}}catch{throw Error(`Connection string ${e}: Failed to parse provider name.`)}}function Zr(e){return`${e.provider}_${e.id}`}const Qr=new s;function $r(e){return Qr.validateSchema(e)}function ei(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 ti=[`gemini-flash-latest`,`openai-gpt-latest`,`openai-gpt-mini-latest`],ni={"gemini-flash-latest":{provider:`gemini`,rateLimitOperation:`gemini_35_flash`,rateLimitRatio:1,allowManagedConnection:!0,defaultCredits:.2,billingMode:`always`},"openai-gpt-latest":{provider:`openai`,rateLimitOperation:`openai_gpt-5`,rateLimitRatio:1,allowManagedConnection:!0,defaultCredits:.5,billingMode:`always`},"openai-gpt-mini-latest":{provider:`openai`,rateLimitOperation:`openai_gpt-5-mini`,rateLimitRatio:1,allowManagedConnection:!0,defaultCredits:.3,billingMode:`always`}};function ri(e,t){let n={};for(let r of ti){let i=ni[r],a=`${e}-${r}`;n[a]={credits:{default:t?.[r]??i.defaultCredits},allowManagedConnection:!0,provider:i.provider,mode:i.billingMode}}return n}function ii(e,t){return`${t}-${e}`}function ai(e){let t=ni[e];if(!t)throw Error(`Unknown AI model: ${e}`);return[t.provider]}function oi(e){let t=ni[e];if(!t)throw Error(`Unknown AI model: ${e}`);return[{provider:t.provider,rateLimitRatio:t.rateLimitRatio,rateLimitOperation:t.rateLimitOperation,allowManagedConnection:t.allowManagedConnection}]}function si(){let e=new Set;for(let t of ti)e.add(ni[t].provider);return[...e]}function ci(e){if(!e?.requires)return;let t=[];e.requires.connection&&t.push(dn(e.requires.connection));for(let n of e.requires.fields??[])t.push(fn(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]:pn(...t)}function li(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=hn(e,n,t),s=sn(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().default(null),max:r.number().nullable().default(null)}),include_exclude_input:r.object({include:r.array(r.string()).default([]),exclude:r.array(r.string()).default([])}),include_exclude_select_input:r.object({include:r.array(r.string()).default([]),exclude:r.array(r.string()).default([])}),async_include_exclude_select_input:r.object({include:r.array(r.string()).default([]),exclude:r.array(r.string()).default([])}),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())])},ui=(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},di=(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},fi=/^\s*\{\{\s*[a-zA-Z_][a-zA-Z0-9_.]*(?:\s*\|\s*[^}]+)?\s*\}\}\s*$/,pi=/\{\{|\{%/,mi=(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=fi.test(e),i=pi.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},hi=(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)=>{Ui({value:e.key,issues:t.issues},!1,[n,`key`]),Ui({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},gi=(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)`})}),i=e.required?r:r.default({include:[],exclude:[]});return e.description&&i.describe(e.description),t.add(i,{type:`include_exclude_input`,...e}),i},_i=()=>{let e=tr;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}=li(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},vi=(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:pr[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},yi=(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)`})}),i=e.required?r:r.default({include:[],exclude:[]});return e.description&&i.describe(e.description),t.add(i,{type:`include_exclude_select_input`,...e}),i},bi=(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},xi=(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},Si=(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},Ci=(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},wi=(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},Ti=(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},Ei=(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},Di=(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})},Oi=(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},ki=(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},Ai=(e,t)=>{let n=x.json_schema_input,r=e.required?n:n.optional();return r.check(e=>{$r(e.value)||e.issues.push({code:`custom`,input:e.value,message:`JSON schema is invalid. Check your input.`})}),e.allowEmpty||(r=r.check(e=>{ei(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},ji=(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},Mi=({billableOperations:e,...t},n)=>{let i=r.enum(ti).default(t.defaultValue||`gemini-flash-latest`);return n.add(i,{type:`select_input`,options:ti.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:pr[ni[t].provider].logoUrl},pricing:{credits:n.credits.default}}}}),required:!0,description:``,label:`AI Models`,...t}),i},Ni=(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(`, `)}`})})}),o=e.required?a:a.default([]);return t.add(o,{type:`multi_select_input`,...e}),o},Pi=(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??ci(e.optionsDef);return t.add(r,{type:`context_select_input`,...e,enabledIf:i,options:[]}),r},Fi=(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}`})}}}),r=e.required?n:n.default({min:null,max:null});return t.add(r,{type:`min_max_int_input`,...e}),r},Ii=(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`})}),r=e.required?n:n.default([]);return t.add(r,{type:`async_multi_select_input`,...e}),r},Li=(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)`})}),i=e.required?r:r.default({include:[],exclude:[]});return t.add(i,{type:`async_include_exclude_select_input`,...e}),i};function Ri(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=fr.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},zi={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`}},Bi={general:1,pagination:2,"config.filters":3,pipe_io:10};function Vi({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 Hi=({schema:e,groupPathMatch:t,extractFromSchema:n,sectionOrder:i=Bi,sectionMap:a=zi,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=Vi({fieldMetadata:i,store:o,formResolvers:s});e&&n.fields.push(e)}else{let n=t[i.groupPath],r=Vi({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 Ui(e,t,n=[]){let r=e.value;if(!(typeof r!=`string`||!r))try{let i=Nr(r);!t&&i.outputs.length>0&&e.issues.push({code:`custom`,input:r,path:n,message:`{% output %} tags are not allowed in this field.`}),t&&i.outputs.length===0&&e.issues.push({code:`custom`,input:r,path:n,message:`At least one {% output %} tag is required, e.g. {% output result, type: "string", description: "..." %}`})}catch(t){e.issues.push({code:`custom`,input:r,path:n,message:t instanceof Error?t.message:String(t)})}}const Wi=e=>{let t=(e.supportedTags??[]).includes(`output`),n=r.object({template:r.string().min(10).check(e=>Ui(e,t,[])).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},Gi=e=>{let t=r.string();e.required&&(t=t.min(1));let n=t.check(e=>Ui(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=>Ui(e,!1,[])),n=n.describe(e.description||t);let i=e.optionsDef?{...e.optionsDef,enabledIf:e.optionsDef.enabledIf??ci(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 Ki(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:Zr({id:e.public_id,provider:e.provider})}))}})}const qi=()=>{let e=sr;return Ki(e,`required`),e},w=()=>{let e=v;return Ki(e,`optional`),e},T=()=>{let e=cr;return Ki(e,`disabled`),e};function Ji(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:Ji(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=>vi(e,y),Yi=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},Xi=e=>gi(e,y),Zi=e=>ui(e,y),Qi=e=>di(e,y),$i=e=>mi(e,y),ea=e=>hi(e,y),ta=e=>yi(e,y),na=e=>Li(e,y),ra=e=>bi(e,y),ia=e=>Si(e,y),O=e=>Ci(e,y),k=e=>Di(e,y),aa=e=>Ti(e,y),oa=e=>Ei(e,y),sa=e=>ji(e,y),ca=e=>Mi(e,y),la=e=>Ni(e,y),ua=e=>Oi(e,y),da=e=>ki(e,y),fa=e=>Ai(e,y),pa=e=>Pi(e,y),A=e=>ui(e,b),ma=e=>di(e,b),ha=e=>Fi(e,b),j=e=>gi(e,b),M=e=>yi(e,b),ga=e=>bi(e,b),_a=e=>xi(e,b),va=e=>Si(e,b),ya=e=>Ci(e,b),ba=e=>wi(e,b),N=e=>Di(e,b,`pipe_io`),xa=e=>Ti(e,b),Sa=e=>Ei(e,b),Ca=e=>ji(e,b),P=e=>Ni(e,b),F=e=>Ii(e,b),I=e=>Li(e,b),L=e=>Oi(e,b),wa=e=>ki(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 Ta(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]=Ta(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 โŒ`},Ea=e=>typeof e.kind==`string`,Da=e=>Ea(e)?e:{kind:`field`,field:e},V=e=>({kind:`field`,field:e}),Oa=(...e)=>({kind:`all`,of:e.map(Da)}),H=(...e)=>({kind:`any`,of:e.map(Da)}),ka=e=>({kind:`optional`,field:e});function Aa(e,t){switch(e.kind){case`optional`:return!0;case`field`:return t.has(e.field.resolvedName);case`all`:return e.of.every(e=>Aa(e,t));case`any`:return e.of.some(e=>Aa(e,t))}}function ja(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(ja)}}function Ma(e,t){let n=Na(e,t);return n.ok?{valid:!0,failedPipeInputField:null,failedRecordField:null}:{valid:!1,failedPipeInputField:n.field,failedRecordField:n.recordField}}function Na(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=Na(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=Na(i,t);if(r=!0,e.ok)return{ok:!0};n=e}catch{}return r?n:{ok:!0}}}}function Pa(e){if(typeof e!=`object`||!e)return e;if(Array.isArray(e))return e.map(Pa).filter(e=>!Nt(e));let t={};for(let[n,r]of Object.entries(e)){let e=Pa(r);Nt(e)||(t[n]=e)}return t}const Fa=await l();var Ia=class e{static hashObject(t){if(!Fa)throw Error(`HashAPI not initialized`);let{h64ToString:n}=Fa,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 La(e,t){let n={pipeId:e,config:Pa(t)};return Ia.hashObject(n)}function Ra(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:Ia.hashObject(Pa(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 ja(this.getInputRequirement()))e[t.name]=t;return e}getConfigHashKey(){return La(this.payload.pipe_id,this.payload.config||{})}getInputHashKey(e){return Ra(e,this.inputFields)}};function za(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 Ba(e){return ja(e).map(({field:e})=>e)}function Va({recordField:e,value:t,resolvedBy:n,widgets:r}){return e.value=t,e.status=`completed`,e.resolved_by=n,e.widgets=r,e}function Ha({recordField:e}){return e.status=`pending`,e.resolved_by=null,e.value=null,e}function Ua({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 Wa(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 Ga(e,t){return e.value=null,e.status=`skipped`,e.resolved_by=null,e.reason=t,e.widgets={},e}function Ka(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 qa=`company:domain:workemail@1`,Ja=_(`company_domain`),Ya=_(`work_email`),Xa=r.object({pipe_id:r.literal(qa),run_if:S(),connector:T(),config:r.object({input_fields:z(r.object({[Ya.name]:E({fieldName:Ya.name})})),output_fields:R(r.object({[Ja.name]:k({fieldName:Ja.name})}))}).optional()}),Za=e=>V(K(Ya,e)),Qa={"company-domain-workemail-v1-pipe0":{credits:{default:0},allowManagedConnection:!0,mode:`always`,provider:`pipe0`}},$a=class extends U{pipeId=qa;payload;payloadSchema=Xa;billableOperations=Qa;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[`company-domain-workemail-v1-pipe0`]}getInputRequirement(){return Za(this.payload.config)}getRawOutputFields(){return{[Ja.name]:this.catalogOutput(Ja)}}getConnectionsRequirements(){return[{provider:`pipe0`,rateLimitRatio:1,rateLimitOperation:`pipe0_logic`,allowManagedConnection:!0}]}},eo=Xa,to={pipeId:qa,basePipe:W(qa),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(qa),allowedUserConnectionProviders:[],managedProviders:[`pipe0`],deprecatedProviders:[],billableOperations:Qa,defaultInputRequirement:Za(null),defaultPayload:{pipe_id:qa,connector:null,run_if:null,config:{input_fields:{[Ya.name]:{alias:``}},output_fields:{[Ja.name]:{alias:``,enabled:!0}}}}},no=`company:funding:leadmagic@2`,ro=_(`company_name`),io=_(`company_domain`),ao=_(`funding_history`),oo=_(`funding_total_usd`),so=_(`leadmagic_competitor_list`),co=_(`leadmagic_acquisition_history`),lo=_(`leadmagic_company_news_list`),uo=r.object({pipe_id:r.literal(no),connector:w(),run_if:S(),config:r.object({input_fields:z(r.object({[ro.name]:E({fieldName:ro.name}),[io.name]:E({fieldName:io.name})})),output_fields:R(r.object({[ao.name]:k({fieldName:ao.name}),[oo.name]:k({fieldName:oo.name}),[so.name]:k({fieldName:so.name}),[co.name]:k({fieldName:co.name}),[lo.name]:k({fieldName:lo.name})}))}).optional()}),fo=e=>H(K(ro,e),K(io,e)),po={"company-funding-leadmagic-v2-leadmagic":{provider:`leadmagic`,allowManagedConnection:!0,credits:{default:2},mode:`onSuccess`}},mo=class extends U{pipeId=no;payload;payloadSchema=uo;billableOperations=po;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`leadmagic`]}estimateBillableOperations(){return[`company-funding-leadmagic-v2-leadmagic`]}getInputRequirement(){return fo(this.payload.config)}getRawOutputFields(){return{[ao.name]:this.catalogOutput(ao),[oo.name]:this.catalogOutput(oo),[co.name]:this.catalogOutput(co),[lo.name]:this.catalogOutput(lo),[so.name]:this.catalogOutput(so)}}getConnectionsRequirements(){return[{provider:`leadmagic`,rateLimitRatio:1,rateLimitOperation:`leadmagic_company_funding`,allowManagedConnection:!0}]}},ho=uo,go={pipeId:no,basePipe:W(no),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(no),billableOperations:po,inputFieldMode:`static`,outputFieldMode:`static`,allowedUserConnectionProviders:[`leadmagic`],managedProviders:[`leadmagic`],deprecatedProviders:[],defaultInputRequirement:fo(null),defaultPayload:{pipe_id:no,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:``}}}}},_o=_(`company_name`),vo=_(`company_profile_url`),yo=_(`company_domain`),bo=_(`cleaned_company_name`),xo=`company:identity@3`,So=r.object({pipe_id:r.literal(xo),run_if:S(),connector:T(),config:r.object({input_fields:z(r.object({[_o.name]:E({fieldName:_o.name})})),output_fields:R(r.object({[vo.name]:k({fieldName:vo.name}),[bo.name]:k({fieldName:bo.name}),[yo.name]:k({fieldName:yo.name})}))}).optional()}),Co=e=>V(K(_o,e)),wo={"company-identity-v3-pipe0":{allowManagedConnection:!0,credits:{default:.3,level1:{credits:.2,weight:1}},mode:`always`,provider:`pipe0`}},To=class extends U{pipeId=xo;payload;payloadSchema=So;billableOperations=wo;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[`company-identity-v3-pipe0`]}getInputRequirement(){return Co(this.payload.config)}getRawOutputFields(){return{[vo.name]:this.catalogOutput(vo),[yo.name]:this.catalogOutput(yo),[bo.name]:this.catalogOutput(bo)}}getConnectionsRequirements(){return[{provider:`gemini`,rateLimitRatio:1,rateLimitOperation:`gemini_35_flash`,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}]}},Eo=So,Do={pipeId:xo,inputFieldMode:`static`,outputFieldMode:`static`,basePipe:W(xo),label:`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(xo),billableOperations:wo,allowedUserConnectionProviders:[],managedProviders:[`pipe0`],deprecatedProviders:[],defaultInputRequirement:Co(null),defaultPayload:{pipe_id:xo,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}}}}},Oo=_(`company_domain`),ko=_(`company_name`),Ao=_(`crustdata_company_identity_matches`),jo=`company:identity:crustdata@1`,Mo=r.object({pipe_id:r.literal(jo),run_if:S(),connector:w(),config:r.object({input_fields:z(r.object({[Oo.name]:E({fieldName:Oo.name}),[ko.name]:E({fieldName:ko.name})})),output_fields:R(r.object({[Ao.name]:k({fieldName:Ao.name})}))}).optional()}),No=e=>H(K(Oo,e),K(ko,e)),Po={"company-identity-crustdata-v1-crustdata":{allowManagedConnection:!0,credits:{default:.001},mode:`onSuccess`,provider:`crustdata`}},Fo=class extends U{pipeId=jo;payload;payloadSchema=Mo;billableOperations=Po;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`crustdata`]}estimateBillableOperations(){return[`company-identity-crustdata-v1-crustdata`]}getInputRequirement(){return No(this.payload.config)}getRawOutputFields(){return{[Ao.name]:this.catalogOutput(Ao)}}getConnectionsRequirements(){return[{provider:`crustdata`,rateLimitRatio:1,rateLimitOperation:`crustdata_company_identify`,allowManagedConnection:!0}]}},Io=Mo,Lo={pipeId:jo,inputFieldMode:`static`,outputFieldMode:`static`,basePipe:W(jo),label:`Company identity`,executionMode:`single`,categories:[`company_data`],lifecycle:null,description:`Resolve a company to Crustdata's matching candidates by domain or name. Returns the full list of matches.`,tags:[B.WEBSITE,B.LINKEDIN],docPath:G(jo),billableOperations:Po,allowedUserConnectionProviders:[`crustdata`],managedProviders:[`crustdata`],deprecatedProviders:[],defaultInputRequirement:No(null),defaultPayload:{pipe_id:jo,connector:null,run_if:null,config:{input_fields:{company_domain:{alias:``},company_name:{alias:``}},output_fields:{crustdata_company_identity_matches:{alias:``,enabled:!0}}}}},Ro=_(`company_domain`),zo=_(`companyenrich_matches`),Bo=`company:lookalikes:companyenrich@2`,Vo=r.object({pipe_id:r.literal(Bo),run_if:S(),connector:w(),config:r.object({limit:ua({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({[Ro.name]:E({fieldName:Ro.name})})),output_fields:R(r.object({[zo.name]:k({fieldName:zo.name})}))}).optional()}),Ho=e=>V(K(Ro,e)),Uo={"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`}},Wo=class extends U{pipeId=Bo;payload;payloadSchema=Vo;billableOperations=Uo;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`companyenrich`]}estimateBillableOperations(){return[,,,,,].fill(`lookalikes-companyenrich`)}getInputRequirement(){return Ho(this.payload.config)}getRawOutputFields(){return{[zo.name]:this.catalogOutput(zo)}}getConnectionsRequirements(){return[{provider:`companyenrich`,rateLimitRatio:1,rateLimitOperation:`company_enrich_generic`,allowManagedConnection:!0}]}},Go=Vo,Ko={pipeId:Bo,inputFieldMode:`static`,outputFieldMode:`static`,basePipe:W(Bo),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(Bo),billableOperations:Uo,allowedUserConnectionProviders:[`companyenrich`],managedProviders:[`companyenrich`],deprecatedProviders:[],defaultInputRequirement:Ho(null),defaultPayload:{pipe_id:Bo,connector:null,run_if:null,config:{limit:20,input_fields:{company_domain:{alias:``}},output_fields:{companyenrich_matches:{alias:``,enabled:!0}}}}},qo=_(`company_domain`),Jo=_(`crustdata_companyenrich_match`),Yo=`company:match:crustdata@2`,Xo=r.object({pipe_id:r.literal(Yo),run_if:S(),connector:w(),config:r.object({input_fields:z(r.object({[qo.name]:E({fieldName:qo.name})})),output_fields:R(r.object({[Jo.name]:k({fieldName:Jo.name})}))}).optional()}),Zo=e=>V(K(qo,e)),Qo={"company-match-crustdata-v2-crustdata":{allowManagedConnection:!0,credits:{default:2.5,level1:{credits:1.2,weight:1}},mode:`onSuccess`,provider:`crustdata`}},$o=class extends U{pipeId=Yo;payload;payloadSchema=Xo;billableOperations=Qo;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{[Jo.name]:this.catalogOutput(Jo)}}getConnectionsRequirements(){return[{provider:`crustdata`,rateLimitRatio:1,rateLimitOperation:`crustdata_company_enrich`,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:`Company data like headcount distribution, LinkedIn URLs etc. via the Crustdata API.`,tags:[B.WEBSITE,B.LINKEDIN],docPath:G(Yo),billableOperations:Qo,allowedUserConnectionProviders:[`crustdata`],managedProviders:[`crustdata`],deprecatedProviders:[],defaultInputRequirement:Zo(null),defaultPayload:{pipe_id:Yo,connector:null,run_if:null,config:{input_fields:{company_domain:{alias:``}},output_fields:{crustdata_companyenrich_match:{alias:``,enabled:!0}}}}},ns=_(`company_domain`),rs=_(`company_name`),is=_(`company_profile_url`),as=_(`logodev_describe_match`),os=_(`logo_url`),ss=`company:match:logodev@2`,cs=r.object({pipe_id:r.literal(ss),run_if:S(),connector:w(),config:r.object({input_fields:z(r.object({[ns.name]:E({fieldName:ns.name})})),output_fields:R(r.object({[is.name]:k({fieldName:is.name}),[os.name]:k({fieldName:os.name}),[rs.name]:k({fieldName:rs.name}),[as.name]:k({fieldName:as.name})}))}).optional()}),ls=e=>V(K(ns,e)),us={"company-match-logodev-v2-logodev":{allowManagedConnection:!0,credits:{default:.1},mode:`onSuccess`,provider:`logodev`}},ds=class extends U{pipeId=ss;payload;payloadSchema=cs;billableOperations=us;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`logodev`]}estimateBillableOperations(){return[`company-match-logodev-v2-logodev`]}getInputRequirement(){return ls(this.payload.config)}getRawOutputFields(){return{[is.name]:this.catalogOutput(is),[rs.name]:this.catalogOutput(rs),[os.name]:this.catalogOutput(os),[as.name]:this.catalogOutput(as)}}getConnectionsRequirements(){return[{provider:`logodev`,rateLimitRatio:1,rateLimitOperation:`logodev_describe`,allowManagedConnection:!0}]}},fs=cs,ps={pipeId:ss,inputFieldMode:`static`,outputFieldMode:`static`,basePipe:W(ss),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(ss),billableOperations:us,allowedUserConnectionProviders:[`logodev`],managedProviders:[`logodev`],deprecatedProviders:[],defaultInputRequirement:ls(null),defaultPayload:{pipe_id:ss,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}}}}},ms=`company:newssummary:domain@1`,hs=_(`company_news_summary`),gs=_(`company_domain`),_s=r.object({pipe_id:r.literal(ms),run_if:S(),connector:w(),config:r.object({input_fields:z(r.object({[gs.name]:E({fieldName:gs.name})})),output_fields:R(r.object({[hs.name]:k({fieldName:hs.name})}))}).optional()}),vs=e=>V(K(gs,e)),ys={"company-newssummary-domain-v1-pipe0":{allowManagedConnection:!0,credits:{default:2},mode:`always`,provider:`pipe0`}},bs=class extends U{pipeId=ms;payloadSchema=_s;billableOperations=ys;payload;constructor(e){super(),this.payload=e}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[`company-newssummary-domain-v1-pipe0`]}getInputRequirement(){return vs(this.payload.config)}getRawOutputFields(){return{[hs.name]:this.catalogOutput(hs)}}getConnectionsRequirements(){return[{provider:`parallel`,rateLimitRatio:4,rateLimitOperation:`parallel_search_base`,allowManagedConnection:!0},{provider:`gemini`,rateLimitRatio:1,rateLimitOperation:`gemini_35_flash`,allowManagedConnection:!0}]}},xs=_s,Ss={pipeId:ms,basePipe:W(ms),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(ms),billableOperations:ys,allowedUserConnectionProviders:[],managedProviders:[`pipe0`],deprecatedProviders:[],defaultInputRequirement:vs(null),defaultPayload:{pipe_id:ms,run_if:null,connector:null,config:{input_fields:{company_domain:{alias:``}},output_fields:{company_news_summary:{alias:``,enabled:!0}}}}},Cs=_(`company_domain`),ws=_(`company_profile_url`),Ts=_(`company_description`),Es=_(`company_industry`),Ds=_(`company_region`),Os=_(`headcount`),ks=_(`estimated_revenue`),As=_(`founded_year`),js=_(`company_name`),Ms=`company:overview@3`,Ns=r.object({pipe_id:r.literal(Ms),run_if:S(),connector:T(),config:r.object({input_fields:z(r.object({[Cs.name]:E({fieldName:Cs.name}),[ws.name]:E({fieldName:ws.name})})),output_fields:R(r.object({[Ts.name]:k({fieldName:Ts.name}),[Es.name]:k({fieldName:Es.name}),[Ds.name]:k({fieldName:Ds.name}),[Os.name]:k({fieldName:Os.name}),[ks.name]:k({fieldName:ks.name}),[As.name]:k({fieldName:As.name}),[js.name]:k({fieldName:js.name})}))}).optional()}),Ps=e=>H(K(Cs,e),K(ws,e)),Fs={"company-overview-v3-pipe0":{provider:`pipe0`,allowManagedConnection:!0,credits:{default:1,level1:{credits:.5,weight:1}},mode:`always`}},Is=class extends U{pipeId=Ms;payloadSchema=Ns;billableOperations=Fs;payload;constructor(e){super(),this.payload=e}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[`company-overview-v3-pipe0`]}getInputRequirement(){return Ps(this.payload.config)}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),[As.name]:this.catalogOutput(As),[js.name]:this.catalogOutput(js)}}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}]}},Ls=Ns,Rs={pipeId:Ms,basePipe:W(Ms),inputFieldMode:`static`,outputFieldMode:`static`,label:`Company overview`,executionMode:`mix`,categories:[`company_data`],lifecycle:null,description:`Business description, industry, and financial information.`,docPath:G(Ms),tags:[B.WEBSITE,B.LINKEDIN,B.FINANCIAL_DATA],allowedUserConnectionProviders:[],managedProviders:[`pipe0`],deprecatedProviders:[],billableOperations:Fs,defaultInputRequirement:Ps(null),defaultPayload:{pipe_id:Ms,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}}}}},zs=_(`company_domain`),Bs=_(`technology_list`),Vs=_(`spending_trend`),Hs=_(`technology_match_builtwith`),Us=`company:techstack:builtwith@2`,Ws=r.object({pipe_id:r.literal(Us),connector:w(),run_if:S(),config:r.object({input_fields:z(r.object({[zs.name]:E({fieldName:zs.name})})),output_fields:R(r.object({[Bs.name]:k({fieldName:Bs.name}),[Hs.name]:k({fieldName:Hs.name}),[Vs.name]:k({fieldName:Vs.name})}))}).optional()}),Gs=e=>V(K(zs,e)),Ks={"company-techstack-builtwith-v2-builtwith":{provider:`builtwith`,allowManagedConnection:!0,credits:{default:2},mode:`always`}},qs=class extends U{pipeId=Us;payload;payloadSchema=Ws;billableOperations=Ks;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`builtwith`]}estimateBillableOperations(){return[`company-techstack-builtwith-v2-builtwith`]}getInputRequirement(){return Gs(this.payload.config)}getRawOutputFields(){return{[Bs.name]:this.catalogOutput(Bs),[Hs.name]:this.catalogOutput(Hs),[Vs.name]:this.catalogOutput(Vs)}}getConnectionsRequirements(){return[{provider:`builtwith`,rateLimitRatio:1,rateLimitOperation:`builtwith_generic`,allowManagedConnection:!0}]}},Js=Ws,Ys={pipeId:Us,basePipe:W(Us),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(Us),billableOperations:Ks,defaultInputRequirement:Gs(null),defaultPayload:{pipe_id:Us,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}}}}},Xs={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`,Qs={"contact-create-resend-v1-resend":{allowManagedConnection:!1,provider:`resend`,credits:null,mode:null}},$s=_(`email`),ec=_(`name`),tc=_(`resend_contact_id`),nc=[{label:`Demo subscribers`,value:`sandbox-segment-1`},{label:`Demo product updates`,value:`sandbox-segment-2`}],rc=r.object({pipe_id:r.literal(Zs),connector:qi(),run_if:S(),config:r.object({segment_id:pa({sectionKey:`general`,required:!0,label:`Segment`,groupPath:`config.general`,path:`config.segment_id`,info:``,enabledIf:dn(`resend`),optionsDef:{requires:{connection:`resend`},options:async({query:e,secret:t,environment:n})=>{if(n===`sandbox`)return nc;if(!t)throw new Xs.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 Xs.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({[ec.name]:E({fieldName:ec.name}),[$s.name]:E({fieldName:$s.name})})),output_fields:R(r.object({[tc.name]:k({fieldName:tc.name})}))})}),ic=e=>Oa(V(K($s,e)),V(K(ec,e))),ac=class extends U{pipeId=Zs;payload;payloadSchema=rc;billableOperations=Qs;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`resend`]}estimateBillableOperations(){return[`contact-create-resend-v1-resend`]}getInputRequirement(){return ic(this.payload.config)}getRawOutputFields(){return{[tc.name]:this.catalogOutput(tc)}}getConnectionsRequirements(){return[{provider:`resend`,rateLimitRatio:1,rateLimitOperation:`resend_generic`,allowManagedConnection:!1}]}},oc=rc,sc={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:Qs,inputFieldMode:`static`,outputFieldMode:`static`,allowedUserConnectionProviders:[`resend`],defaultInputRequirement:ic(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}}}}},cc=`company:funding:leadmagic@1`,lc=_(`company_name`),uc=_(`company_website_url`),dc=_(`funding_history`),fc=_(`funding_total_usd`),pc=_(`leadmagic_competitor_list`),mc=_(`leadmagic_acquisition_history`),hc=_(`leadmagic_company_news_list`),gc=r.object({pipe_id:r.literal(cc),connector:w(),run_if:S(),config:r.object({input_fields:z(r.object({[lc.name]:E({fieldName:lc.name}),[uc.name]:E({fieldName:uc.name})})),output_fields:R(r.object({[dc.name]:k({fieldName:dc.name}),[fc.name]:k({fieldName:fc.name}),[pc.name]:k({fieldName:pc.name}),[mc.name]:k({fieldName:mc.name}),[hc.name]:k({fieldName:hc.name})}))}).optional()}),_c=e=>H(K(lc,e),K(uc,e)),vc={"company-funding-leadmagic-v1-leadmagic":{provider:`leadmagic`,allowManagedConnection:!0,credits:{default:2},mode:`onSuccess`}},yc=class extends U{pipeId=cc;payload;payloadSchema=gc;billableOperations=vc;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`leadmagic`]}estimateBillableOperations(){return[`company-funding-leadmagic-v1-leadmagic`]}getInputRequirement(){return _c(this.payload.config)}getRawOutputFields(){return{[dc.name]:this.catalogOutput(dc),[fc.name]:this.catalogOutput(fc)}}getConnectionsRequirements(){return[{provider:`leadmagic`,rateLimitRatio:1,rateLimitOperation:`leadmagic_company_funding`,allowManagedConnection:!0}]}},bc=gc,xc={pipeId:cc,basePipe:W(cc),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(cc),billableOperations:vc,inputFieldMode:`static`,outputFieldMode:`static`,allowedUserConnectionProviders:[`leadmagic`],managedProviders:[`leadmagic`],deprecatedProviders:[],defaultInputRequirement:_c(null),defaultPayload:{pipe_id:cc,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:``}}}}},Sc=_(`company_name`),Cc=_(`company_social_url`),wc=_(`company_website_url`),Tc=_(`cleaned_company_name`),Ec=`company:identity@1`,Dc=r.object({pipe_id:r.literal(Ec),run_if:S(),connector:T(),config:r.object({input_fields:z(r.object({[Sc.name]:E({fieldName:Sc.name})})),output_fields:R(r.object({[Cc.name]:k({fieldName:Cc.name}),[Tc.name]:k({fieldName:Tc.name}),[wc.name]:k({fieldName:wc.name})}))}).optional()}),Oc=e=>V(K(Sc,e)),kc={"company-identity-v1-pipe0":{allowManagedConnection:!0,credits:{default:.3},mode:`always`,provider:`pipe0`}},Ac=class extends U{pipeId=Ec;payload;payloadSchema=Dc;billableOperations=kc;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[`company-identity-v1-pipe0`]}getInputRequirement(){return Oc(this.payload.config)}getRawOutputFields(){return{[Cc.name]:this.catalogOutput(Cc),[wc.name]:this.catalogOutput(wc),[Tc.name]:this.catalogOutput(Tc)}}getConnectionsRequirements(){return[{provider:`gemini`,rateLimitRatio:1,rateLimitOperation:`gemini_35_flash`,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}]}},jc=Dc,Mc={pipeId:Ec,inputFieldMode:`static`,outputFieldMode:`static`,basePipe:W(Ec),label:`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:kc,allowedUserConnectionProviders:[],managedProviders:[`pipe0`],deprecatedProviders:[],defaultInputRequirement:Oc(null),defaultPayload:{pipe_id:Ec,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}}}}},Nc=_(`company_name`),Pc=_(`company_profile_url`),Fc=_(`company_website_url`),Ic=_(`cleaned_company_name`),Lc=`company:identity@2`,Rc=r.object({pipe_id:r.literal(Lc),run_if:S(),connector:T(),config:r.object({input_fields:z(r.object({[Nc.name]:E({fieldName:Nc.name})})),output_fields:R(r.object({[Pc.name]:k({fieldName:Pc.name}),[Ic.name]:k({fieldName:Ic.name}),[Fc.name]:k({fieldName:Fc.name})}))}).optional()}),zc=e=>V(K(Nc,e)),Bc={"company-identity-v2-pipe0":{allowManagedConnection:!0,credits:{default:.3},mode:`always`,provider:`pipe0`}},Vc=class extends U{pipeId=Lc;payload;payloadSchema=Rc;billableOperations=Bc;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[`company-identity-v2-pipe0`]}getInputRequirement(){return zc(this.payload.config)}getRawOutputFields(){return{[Pc.name]:this.catalogOutput(Pc),[Fc.name]:this.catalogOutput(Fc),[Ic.name]:this.catalogOutput(Ic)}}getConnectionsRequirements(){return[{provider:`gemini`,rateLimitRatio:1,rateLimitOperation:`gemini_35_flash`,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}]}},Hc=Rc,Uc={pipeId:Lc,inputFieldMode:`static`,outputFieldMode:`static`,basePipe:W(Lc),label:`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(Lc),billableOperations:Bc,allowedUserConnectionProviders:[],managedProviders:[`pipe0`],deprecatedProviders:[],defaultInputRequirement:zc(null),defaultPayload:{pipe_id:Lc,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}}}}},Wc=_(`company_website_url`),Gc=_(`companyenrich_matches`),Kc=`company:lookalikes:companyenrich@1`,qc=r.object({pipe_id:r.literal(Kc),run_if:S(),connector:w(),config:r.object({limit:ua({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({[Wc.name]:E({fieldName:Wc.name})})),output_fields:R(r.object({[Gc.name]:k({fieldName:Gc.name})}))}).optional()}),Jc=e=>V(K(Wc,e)),Yc={"company-lookalikes-companyenrich-v1-companyenrich":{allowManagedConnection:!0,credits:{default:.2},mode:`onSuccess`,note:`One billing event per result.`,provider:`companyenrich`}},Xc=class extends U{pipeId=Kc;payload;payloadSchema=qc;billableOperations=Yc;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`companyenrich`]}estimateBillableOperations(){return[,,,,,].fill(`lookalikes-companyenrich`)}getInputRequirement(){return Jc(this.payload.config)}getRawOutputFields(){return{[Gc.name]:this.catalogOutput(Gc)}}getConnectionsRequirements(){return[{provider:`companyenrich`,rateLimitRatio:1,rateLimitOperation:`company_enrich_generic`,allowManagedConnection:!0}]}},Zc=qc,Qc={pipeId:Kc,inputFieldMode:`static`,outputFieldMode:`static`,basePipe:W(Kc),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(Kc),billableOperations:Yc,allowedUserConnectionProviders:[`companyenrich`],managedProviders:[`companyenrich`],deprecatedProviders:[],defaultInputRequirement:Jc(null),defaultPayload:{pipe_id:Kc,connector:null,run_if:null,config:{limit:20,input_fields:{company_website_url:{alias:``}},output_fields:{companyenrich_matches:{alias:``,enabled:!0}}}}},$c=_(`company_website_url`),el=_(`crustdata_companyenrich_match`),tl=`company:match:crustdata@1`,nl=r.object({pipe_id:r.literal(tl),run_if:S(),connector:w(),config:r.object({input_fields:z(r.object({[$c.name]:E({fieldName:$c.name})})),output_fields:R(r.object({[el.name]:k({fieldName:el.name})}))}).optional()}),rl=e=>V(K($c,e)),il={"company-match-crustdata-v1-crustdata":{allowManagedConnection:!0,credits:{default:2},mode:`onSuccess`,provider:`crustdata`}},al=class extends U{pipeId=tl;payload;payloadSchema=nl;billableOperations=il;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`crustdata`]}estimateBillableOperations(){return[`company-match-crustdata-v1-crustdata`]}getInputRequirement(){return rl(this.payload.config)}getRawOutputFields(){return{[el.name]:this.catalogOutput(el)}}getConnectionsRequirements(){return[{provider:`crustdata`,rateLimitRatio:1,rateLimitOperation:`crustdata_company_enrich`,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:crustdata@2`},description:`Company data like headcount distribution, LinkedIn URLs etc. via the Crustdata API.`,tags:[B.WEBSITE,B.LINKEDIN],docPath:G(tl),billableOperations:il,allowedUserConnectionProviders:[`crustdata`],managedProviders:[`crustdata`],deprecatedProviders:[],defaultInputRequirement:rl(null),defaultPayload:{pipe_id:tl,connector:null,run_if:null,config:{input_fields:{company_website_url:{alias:``}},output_fields:{crustdata_companyenrich_match:{alias:``,enabled:!0}}}}},cl=_(`company_website_url`),ll=_(`company_name`),ul=_(`company_profile_url`),dl=_(`logodev_describe_match`),fl=_(`logo_url`),pl=`company:match:logodev@1`,ml=r.object({pipe_id:r.literal(pl),run_if:S(),connector:w(),config:r.object({input_fields:z(r.object({[cl.name]:E({fieldName:cl.name})})),output_fields:R(r.object({[ul.name]:k({fieldName:ul.name}),[fl.name]:k({fieldName:fl.name}),[ll.name]:k({fieldName:ll.name}),[dl.name]:k({fieldName:dl.name})}))}).optional()}),hl=e=>V(K(cl,e)),gl={"company-match-logodev-v1-logodev":{allowManagedConnection:!0,credits:{default:.1},mode:`onSuccess`,provider:`logodev`}},_l=class extends U{pipeId=pl;payload;payloadSchema=ml;billableOperations=gl;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`logodev`]}estimateBillableOperations(){return[`company-match-logodev-v1-logodev`]}getInputRequirement(){return hl(this.payload.config)}getRawOutputFields(){return{[ul.name]:this.catalogOutput(ul),[ll.name]:this.catalogOutput(ll),[fl.name]:this.catalogOutput(fl),[dl.name]:this.catalogOutput(dl)}}getConnectionsRequirements(){return[{provider:`logodev`,rateLimitRatio:1,rateLimitOperation:`logodev_describe`,allowManagedConnection:!0}]}},vl=ml,yl={pipeId:pl,inputFieldMode:`static`,outputFieldMode:`static`,basePipe:W(pl),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(pl),billableOperations:gl,allowedUserConnectionProviders:[`logodev`],managedProviders:[`logodev`],deprecatedProviders:[],defaultInputRequirement:hl(null),defaultPayload:{pipe_id:pl,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}}}}},bl=`company:newssummary:website@1`,xl=_(`company_news_summary`),Sl=_(`company_website_url`),Cl=r.object({pipe_id:r.literal(bl),run_if:S(),connector:w(),config:r.object({input_fields:z(r.object({[Sl.name]:E({fieldName:Sl.name})})),output_fields:R(r.object({[xl.name]:k({fieldName:xl.name})}))}).optional()}),wl=e=>V(K(Sl,e)),Tl={"company-newssummary-website-v1-pipe0":{allowManagedConnection:!0,credits:{default:1},mode:`always`,provider:`pipe0`}},El=class extends U{pipeId=bl;payloadSchema=Cl;billableOperations=Tl;payload;constructor(e){super(),this.payload=e}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[`company-newssummary-website-v1-pipe0`]}getInputRequirement(){return wl(this.payload.config)}getRawOutputFields(){return{[xl.name]:this.catalogOutput(xl)}}getConnectionsRequirements(){return[{provider:`perplexity`,rateLimitRatio:1,rateLimitOperation:`perplexity_generic`,allowManagedConnection:!0}]}},Dl=Cl,Ol={pipeId:bl,basePipe:W(bl),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(bl),billableOperations:Tl,allowedUserConnectionProviders:[],managedProviders:[`pipe0`],deprecatedProviders:[],defaultInputRequirement:wl(null),defaultPayload:{pipe_id:bl,run_if:null,connector:null,config:{input_fields:{company_website_url:{alias:``}},output_fields:{company_news_summary:{alias:``,enabled:!0}}}}},kl=_(`company_website_url`),Al=_(`company_social_url`),jl=_(`company_description`),Ml=_(`company_industry`),Nl=_(`company_region`),Pl=_(`headcount`),Fl=_(`estimated_revenue`),Il=_(`founded_year`),Ll=`company:overview@1`,Rl=r.object({pipe_id:r.literal(Ll),run_if:S(),connector:T(),config:r.object({input_fields:z(r.object({[kl.name]:E({fieldName:kl.name}),[Al.name]:E({fieldName:Al.name})})),output_fields:R(r.object({[jl.name]:k({fieldName:jl.name}),[Ml.name]:k({fieldName:Ml.name}),[Nl.name]:k({fieldName:Nl.name}),[Pl.name]:k({fieldName:Pl.name}),[Fl.name]:k({fieldName:Fl.name}),[Il.name]:k({fieldName:Il.name})}))}).optional()}),zl=e=>H(K(kl,e),K(Al,e)),Bl={"company-overview-v1-pipe0":{provider:`pipe0`,allowManagedConnection:!0,credits:{default:1},mode:`always`}},Vl=class extends U{pipeId=Ll;payloadSchema=Rl;billableOperations=Bl;payload;constructor(e){super(),this.payload=e}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[`company-overview-v1-pipe0`]}getInputRequirement(){return zl(this.payload.config)}getRawOutputFields(){return{[jl.name]:this.catalogOutput(jl),[Ml.name]:this.catalogOutput(Ml),[Nl.name]:this.catalogOutput(Nl),[Pl.name]:this.catalogOutput(Pl),[Fl.name]:this.catalogOutput(Fl),[Il.name]:this.catalogOutput(Il)}}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}]}},Hl=Rl,Ul={pipeId:Ll,basePipe:W(Ll),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:Bl,defaultInputRequirement:zl(null),defaultPayload:{pipe_id:Ll,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}}}}},Wl=_(`company_website_url`),Gl=_(`company_profile_url`),Kl=_(`company_description`),ql=_(`company_industry`),Jl=_(`company_region`),Yl=_(`headcount`),Xl=_(`estimated_revenue`),Zl=_(`founded_year`),Ql=_(`company_name`),$l=`company:overview@2`,eu=r.object({pipe_id:r.literal($l),run_if:S(),connector:T(),config:r.object({input_fields:z(r.object({[Wl.name]:E({fieldName:Wl.name}),[Gl.name]:E({fieldName:Gl.name})})),output_fields:R(r.object({[Kl.name]:k({fieldName:Kl.name}),[ql.name]:k({fieldName:ql.name}),[Jl.name]:k({fieldName:Jl.name}),[Yl.name]:k({fieldName:Yl.name}),[Xl.name]:k({fieldName:Xl.name}),[Zl.name]:k({fieldName:Zl.name}),[Ql.name]:k({fieldName:Ql.name})}))}).optional()}),tu=e=>H(K(Wl,e),K(Gl,e)),nu={"company-overview-v2-pipe0":{provider:`pipe0`,allowManagedConnection:!0,credits:{default:1},mode:`always`}},ru=class extends U{pipeId=$l;payloadSchema=eu;billableOperations=nu;payload;constructor(e){super(),this.payload=e}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[`company-overview-v2-pipe0`]}getInputRequirement(){return tu(this.payload.config)}getRawOutputFields(){return{[Kl.name]:this.catalogOutput(Kl),[ql.name]:this.catalogOutput(ql),[Jl.name]:this.catalogOutput(Jl),[Yl.name]:this.catalogOutput(Yl),[Xl.name]:this.catalogOutput(Xl),[Zl.name]:this.catalogOutput(Zl),[Ql.name]:this.catalogOutput(Ql)}}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}]}},iu=eu,au={pipeId:$l,basePipe:W($l),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($l),tags:[B.WEBSITE,B.LINKEDIN,B.FINANCIAL_DATA],allowedUserConnectionProviders:[],managedProviders:[`pipe0`],deprecatedProviders:[],billableOperations:nu,defaultInputRequirement:tu(null),defaultPayload:{pipe_id:$l,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}}}}},ou=_(`company_website_url`),su=_(`technology_list`),cu=_(`spending_trend`),lu=_(`technology_match_builtwith`),uu=`company:techstack:builtwith@1`,du=r.object({pipe_id:r.literal(uu),connector:w(),run_if:S(),config:r.object({input_fields:z(r.object({[ou.name]:E({fieldName:ou.name})})),output_fields:R(r.object({[su.name]:k({fieldName:su.name}),[lu.name]:k({fieldName:lu.name}),[cu.name]:k({fieldName:cu.name})}))}).optional()}),fu=e=>V(K(ou,e)),pu={"company-techstack-builtwith-v1-builtwith":{provider:`builtwith`,allowManagedConnection:!0,credits:{default:2},mode:`always`}},mu=class extends U{pipeId=uu;payload;payloadSchema=du;billableOperations=pu;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`builtwith`]}estimateBillableOperations(){return[`company-techstack-builtwith-v1-builtwith`]}getInputRequirement(){return fu(this.payload.config)}getRawOutputFields(){return{[su.name]:this.catalogOutput(su),[lu.name]:this.catalogOutput(lu),[cu.name]:this.catalogOutput(cu)}}getConnectionsRequirements(){return[{provider:`builtwith`,rateLimitRatio:1,rateLimitOperation:`builtwith_generic`,allowManagedConnection:!0}]}},hu=du,gu={pipeId:uu,basePipe:W(uu),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(uu),billableOperations:pu,defaultInputRequirement:fu(null),defaultPayload:{pipe_id:uu,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}}}}},_u=`company:websiteurl:email@1`,vu=_(`company_website_url`),yu=_(`email`),bu=r.object({pipe_id:r.literal(_u),run_if:S(),connector:T(),config:r.object({input_fields:z(r.object({[yu.name]:E({fieldName:yu.name})})),output_fields:R(r.object({[vu.name]:k({fieldName:vu.name})}))}).optional()}),xu=e=>V(K(yu,e)),Su={"company-websiteurl-email-v1-pipe0":{credits:{default:0},allowManagedConnection:!0,mode:`always`,provider:`pipe0`}},Cu=class extends U{pipeId=_u;payload;payloadSchema=bu;billableOperations=Su;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[`company-websiteurl-email-v1-pipe0`]}getInputRequirement(){return xu(this.payload.config)}getRawOutputFields(){return{[vu.name]:this.catalogOutput(vu)}}getConnectionsRequirements(){return[{provider:`pipe0`,rateLimitRatio:1,rateLimitOperation:`pipe0_logic`,allowManagedConnection:!0}]}},wu=bu,Tu={pipeId:_u,basePipe:W(_u),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(_u),allowedUserConnectionProviders:[],managedProviders:[`pipe0`],deprecatedProviders:[],billableOperations:Su,defaultInputRequirement:xu(null),defaultPayload:{pipe_id:_u,connector:null,run_if:null,config:{input_fields:{email:{alias:``}},output_fields:{company_website_url:{alias:``,enabled:!0}}}}},Eu=`people:email:iswork@1`,Du=_(`is_work_email`),Ou=_(`email`),ku=r.object({pipe_id:r.literal(Eu),run_if:S(),connector:T(),config:r.object({input_fields:z(r.object({[Ou.name]:E({fieldName:Ou.name})})),output_fields:R(r.object({[Du.name]:k({fieldName:Du.name})}))}).optional()}),Au=e=>V(K(Ou,e)),ju={"people-email-iswork-v1-pipe0":{provider:`pipe0`,allowManagedConnection:!0,credits:{default:0},mode:`always`}},Mu=class extends U{pipeId=Eu;payload;payloadSchema=ku;billableOperations=ju;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[`people-email-iswork-v1-pipe0`]}getInputRequirement(){return Au(this.payload.config)}getRawOutputFields(){return{[Du.name]:this.catalogOutput(Du)}}getConnectionsRequirements(){return[{provider:`pipe0`,rateLimitRatio:1,rateLimitOperation:`pipe0_logic`,allowManagedConnection:!0}]}},Nu=ku,Pu={pipeId:Eu,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(Eu),billableOperations:ju,basePipe:W(Eu),allowedUserConnectionProviders:[],inputFieldMode:`static`,outputFieldMode:`static`,managedProviders:[`pipe0`],deprecatedProviders:[],defaultInputRequirement:Au(null),defaultPayload:{pipe_id:Eu,run_if:null,connector:null,config:{input_fields:{email:{alias:``}},output_fields:{is_work_email:{alias:``,enabled:!0}}}}},Fu=`people:email:validate:zerobounce@1`,Iu=_(`work_email`),Lu=_(`is_email_valid`),Ru=r.object({pipe_id:r.literal(Fu),connector:w(),run_if:S(),config:r.object({input_fields:z(r.object({[Iu.name]:E({fieldName:Iu.name})})),output_fields:R(r.object({[Lu.name]:k({fieldName:Lu.name})}))}).optional()}),zu=e=>V(K(Iu,e)),Bu={"people-email-validate-zerobounce-v1-zerobounce":{provider:`zerobounce`,allowManagedConnection:!0,credits:{default:.3},mode:`always`}},Vu=class extends U{pipeId=Fu;payload;payloadSchema=Ru;billableOperations=Bu;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`zerobounce`]}estimateBillableOperations(){return[`people-email-validate-zerobounce-v1-zerobounce`]}getInputRequirement(){return zu(this.payload.config)}getRawOutputFields(){return{[Lu.name]:this.catalogOutput(Lu)}}getConnectionsRequirements(){return[{provider:`zerobounce`,rateLimitRatio:1,rateLimitOperation:`zerobounce_generic`,allowManagedConnection:!0}]}},Hu=Ru,Uu={pipeId:Fu,basePipe:W(Fu),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:Bu,inputFieldMode:`static`,outputFieldMode:`static`,allowedUserConnectionProviders:[`zerobounce`],managedProviders:[`zerobounce`],deprecatedProviders:[],defaultInputRequirement:zu(null),defaultPayload:{pipe_id:Fu,connector:null,run_if:null,config:{input_fields:{work_email:{alias:``}},output_fields:{is_email_valid:{alias:``,enabled:!0}}}}},Wu=`people:email:validate:zerobounce@2`,Gu=_(`email`),Ku=_(`zerobounce_validation_status`),qu=_(`zerobounce_validation_match`),Ju=r.object({pipe_id:r.literal(Wu),connector:w(),run_if:S(),config:r.object({input_fields:z(r.object({[Gu.name]:E({fieldName:Gu.name})})),output_fields:R(r.object({[qu.name]:k({fieldName:qu.name}),[Ku.name]:k({fieldName:Ku.name})}))}).optional()}),Yu=e=>V(K(Gu,e)),Xu={"people-email-validate-zerobounce-v2-zerobounce":{provider:`zerobounce`,allowManagedConnection:!0,credits:{default:.3},mode:`always`}},Zu=class extends U{pipeId=Wu;payload;payloadSchema=Ju;billableOperations=Xu;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`zerobounce`]}estimateBillableOperations(){return[`people-email-validate-zerobounce-v2-zerobounce`]}getInputRequirement(){return Yu(this.payload.config)}getRawOutputFields(){return{[Ku.name]:this.catalogOutput(Ku),[qu.name]:this.catalogOutput(qu)}}getConnectionsRequirements(){return[{provider:`zerobounce`,rateLimitRatio:1,rateLimitOperation:`zerobounce_generic`,allowManagedConnection:!0}]}},Qu=Ju,$u={pipeId:Wu,basePipe:W(Wu),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(Wu),billableOperations:Xu,inputFieldMode:`static`,outputFieldMode:`static`,allowedUserConnectionProviders:[`zerobounce`],managedProviders:[`zerobounce`],deprecatedProviders:[],defaultInputRequirement:Yu(null),defaultPayload:{pipe_id:Wu,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 ed(e){return(e.widgets||{}).display_value?.label}function td(e){console.dir(e,{depth:100})}function nd(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 rd(e){if(typeof e!=`object`||!e||Array.isArray(e))return e;let t={};return Object.keys(e).sort().forEach(n=>{t[n]=rd(e[n])}),t}const id={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 ad=`people:identity:email:waterfall@1`,od=_(`email`),sd=_(`company_website_url`),cd=_(`name`),ld=_(`job_title`),ud=_(`profile_url`),dd=_(`company_profile_url`),fd=_(`company_name`),pd=[`findymail`,`hunter`,`crustdata`],md=[{provider:`findymail`},{provider:`hunter`},{provider:`crustdata`}],hd=r.object({pipe_id:r.literal(ad),connector:w(),run_if:S(),config:r.object({providers:D({availableProviders:pd,defaultProviders:md,sectionKey:`general`}),input_fields:z(r.object({[od.name]:E({fieldName:od.name})})),output_fields:R(r.object({[cd.name]:k({fieldName:cd.name}),[ud.name]:k({fieldName:ud.name}),[ld.name]:k({fieldName:ld.name}),[sd.name]:k({fieldName:sd.name}),[fd.name]:k({fieldName:fd.name}),[dd.name]:k({fieldName:dd.name})}))}).optional()}),gd=e=>V(K(od,e)),_d={"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`}},vd=class extends U{pipeId=ad;payload;payloadSchema=hd;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 gd(this.payload.config)}getRawOutputFields(){return{[cd.name]:this.catalogOutput(cd,{isPrimaryOutput:!0}),[ud.name]:this.catalogOutput(ud,{isPrimaryOutput:!0}),[ld.name]:this.catalogOutput(ld,{isPrimaryOutput:!0}),[fd.name]:this.catalogOutput(fd,{isPrimaryOutput:!0}),[dd.name]:this.catalogOutput(dd,{isPrimaryOutput:!0}),[sd.name]:this.catalogOutput(sd,{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}))}},yd=hd,bd={pipeId:ad,basePipe:W(ad),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(ad),managedProviders:pd,deprecatedProviders:[],allowedUserConnectionProviders:pd,inputFieldMode:`static`,outputFieldMode:`static`,billableOperations:_d,defaultInputRequirement:gd(null),defaultPayload:{pipe_id:ad,connector:null,run_if:null,config:{providers:md,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}}}}},xd=`people:match:role:waterfall@1`,Sd=_(`company_website_url`),Cd=_(`role_finder_match`),wd=[`leadmagic`],Td=[{provider:`leadmagic`}],Ed=r.object({pipe_id:r.literal(xd),run_if:S(),connector:w(),config:r.object({providers:D({sectionKey:`general`,defaultProviders:Td,availableProviders:wd}),roles:Qi({sectionKey:`general`,groupPath:`config.general`,label:`Roles`,path:`config.roles`,info:`Company roles to include`,maxItems:3,minItems:1}),input_fields:z(r.object({[Sd.name]:E({fieldName:Sd.name})})),output_fields:R(r.object({[Cd.name]:k({fieldName:Cd.name})}))})}),Dd=e=>H(K(Sd,e)),Od={"people-match-role-waterfall-v1-leadmagic":{provider:`leadmagic`,allowManagedConnection:!0,credits:{default:1},mode:`onSuccess`}},kd=class extends U{pipeId=xd;payload;payloadSchema=Ed;billableOperations=Od;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 Dd(this.payload.config)}getRawOutputFields(){return{[Cd.name]:this.catalogOutput(Cd,{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}))}},Ad=Ed,jd={pipeId:xd,basePipe:W(xd),managedProviders:wd,deprecatedProviders:[],allowedUserConnectionProviders:wd,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(xd),billableOperations:Od,inputFieldMode:`static`,outputFieldMode:`static`,defaultInputRequirement:Dd(null),defaultPayload:{pipe_id:xd,run_if:null,connector:null,config:{roles:[],providers:Td,input_fields:{company_website_url:{alias:``}},output_fields:{role_finder_match:{alias:``,enabled:!0}}}}},Md=`people:mobilenumber:professionalprofile:waterfall@1`,Nd=_(`professional_profile_url`),Pd=_(`mobile_number`),Fd=[`leadmagic`,`prospeo`],Id=[{provider:`leadmagic`},{provider:`prospeo`}],Ld=r.object({pipe_id:r.literal(Md),run_if:S(),connector:w(),config:r.object({providers:D({sectionKey:`general`,defaultProviders:Id,availableProviders:Fd}),input_fields:z(r.object({[Nd.name]:E({fieldName:Nd.name})})),output_fields:R(r.object({[Pd.name]:k({fieldName:Pd.name})}))}).optional()}),Rd=e=>V(K(Nd,e)),zd={"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`}},Bd=class extends U{pipeId=Md;payload;payloadSchema=Ld;billableOperations=zd;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 Rd(this.payload.config)}getRawOutputFields(){return{[Pd.name]:this.catalogOutput(Pd)}}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}))}},Vd=Ld,Hd={pipeId:Md,basePipe:W(Md),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:zd,defaultInputRequirement:Rd(null),inputFieldMode:`static`,outputFieldMode:`static`,managedProviders:Fd,deprecatedProviders:[],allowedUserConnectionProviders:Fd,defaultPayload:{pipe_id:Md,connector:null,run_if:null,config:{providers:Id,input_fields:{professional_profile_url:{alias:``}},output_fields:{mobile_number:{alias:``,enabled:!0}}}}},Ud=`people:mobilenumber:workemail:waterfall@1`,Wd=_(`work_email`),Gd=_(`mobile_number`),Kd=[`leadmagic`],qd=[{provider:`leadmagic`}],Jd=r.object({pipe_id:r.literal(Ud),run_if:S(),connector:w(),config:r.object({providers:D({sectionKey:`general`,availableProviders:Kd,defaultProviders:qd}),input_fields:z(r.object({[Wd.name]:E({fieldName:Wd.name})})),output_fields:R(r.object({[Gd.name]:k({fieldName:Gd.name})}))}).optional()}),Yd=e=>V(K(Wd,e)),Xd={"people-mobilenumber-workemail-waterfall-v1-leadmagic":{provider:`leadmagic`,allowManagedConnection:!0,credits:{default:2},mode:`onSuccess`}},Zd=class extends U{pipeId=Ud;payload;payloadSchema=Jd;billableOperations=Xd;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 Yd(this.payload.config)}getRawOutputFields(){return{[Gd.name]:this.catalogOutput(Gd)}}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}))}},Qd=Jd,$d={pipeId:Ud,basePipe:W(Ud),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:Xd,defaultInputRequirement:Yd(null),inputFieldMode:`static`,outputFieldMode:`static`,allowedUserConnectionProviders:Kd,managedProviders:Kd,deprecatedProviders:[],defaultPayload:{pipe_id:Ud,connector:null,run_if:null,config:{providers:qd,input_fields:{work_email:{alias:``}},output_fields:{mobile_number:{alias:``,enabled:!0}}}}},ef=`people:name:split@1`,tf=_(`name`),nf=_(`first_name`),rf=_(`last_name`),af=r.object({pipe_id:r.literal(ef),connector:T(),run_if:S(),config:r.object({input_fields:z(r.object({[tf.name]:E({fieldName:tf.name})})),output_fields:R(r.object({[nf.name]:k({fieldName:nf.name}),[rf.name]:k({fieldName:rf.name})}))}).optional()}),of=e=>V(K(tf,e)),sf={"people-name-split-v1-pipe0":{provider:`pipe0`,allowManagedConnection:!0,credits:{default:0},mode:`always`}},cf=class extends U{pipeId=ef;payload;payloadSchema=af;billableOperations=sf;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[`people-name-split-v1-pipe0`]}getInputRequirement(){return of(this.payload.config)}getRawOutputFields(){return{[nf.name]:this.catalogOutput(nf),[rf.name]:this.catalogOutput(rf)}}getConnectionsRequirements(){return[{provider:`pipe0`,rateLimitRatio:1,rateLimitOperation:`pipe0_logic`,allowManagedConnection:!0}]}},lf=af,uf={pipeId:ef,basePipe:W(ef),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(ef),billableOperations:sf,inputFieldMode:`static`,outputFieldMode:`static`,defaultInputRequirement:of(null),allowedUserConnectionProviders:[],managedProviders:[`pipe0`],deprecatedProviders:[],defaultPayload:{pipe_id:ef,run_if:null,connector:void 0,config:{input_fields:{name:{alias:``}},output_fields:{first_name:{alias:``,enabled:!0},last_name:{alias:``,enabled:!0}}}}},df=`people:personalemail:profile:waterfall@1`,ff=_(`profile_url`),pf=_(`personal_email`),mf=_(`alternate_personal_emails`),hf=[`clado`,`leadmagic`,`mixrank`],gf=[{provider:`leadmagic`},{provider:`mixrank`}],_f=r.object({pipe_id:r.literal(df),run_if:S(),connector:w(),config:r.object({providers:D({sectionKey:`general`,availableProviders:hf,defaultProviders:gf}),input_fields:z(r.object({[ff.name]:E({fieldName:ff.name})})),output_fields:R(r.object({[pf.name]:k({fieldName:pf.name}),[mf.name]:k({fieldName:mf.name})}))}).optional()}),vf=e=>V(K(ff,e)),yf={"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`}},bf=class extends U{pipeId=df;payload;payloadSchema=_f;billableOperations=yf;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 vf(this.payload.config)}getRawOutputFields(){return{[pf.name]:this.catalogOutput(pf,{isPrimaryOutput:!0}),[mf.name]:this.catalogOutput(mf)}}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}))}},xf=_f,Sf={pipeId:df,basePipe:W(df),allowedUserConnectionProviders:hf,managedProviders:hf,deprecatedProviders:[`clado`],label:`Personal email from LinkedIn`,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(df),billableOperations:yf,defaultInputRequirement:vf(null),inputFieldMode:`static`,outputFieldMode:`static`,defaultPayload:{pipe_id:df,connector:null,run_if:null,config:{providers:gf,input_fields:{profile_url:{alias:``}},output_fields:{personal_email:{alias:``,enabled:!0},alternate_personal_emails:{alias:``,enabled:!0}}}}},Cf=`people:phone:profile:waterfall@1`,wf=_(`profile_url`),Tf=_(`mobile`),Ef=[`leadmagic`,`prospeo`,`amplemarket`,`findymail`,`clado`],Df=[{provider:`leadmagic`},{provider:`prospeo`},{provider:`amplemarket`},{provider:`findymail`}],Of=r.object({pipe_id:r.literal(Cf),run_if:S(),connector:w(),config:r.object({providers:D({sectionKey:`general`,defaultProviders:Df,availableProviders:Ef}),input_fields:z(r.object({[wf.name]:E({fieldName:wf.name})})),output_fields:R(r.object({[Tf.name]:k({fieldName:Tf.name})}))}).optional()}),kf=e=>V(K(wf,e)),Af={"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`}},jf=class extends U{pipeId=Cf;payload;payloadSchema=Of;billableOperations=Af;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 kf(this.payload.config)}getRawOutputFields(){return{[Tf.name]:this.catalogOutput(Tf,{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}))}},Mf=Of,Nf={pipeId:Cf,basePipe:W(Cf),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(Cf),tags:[B.PHONE,B.WATERFALL],billableOperations:Af,defaultInputRequirement:kf(null),inputFieldMode:`static`,outputFieldMode:`static`,managedProviders:Ef,allowedUserConnectionProviders:Ef,deprecatedProviders:[`clado`],defaultPayload:{pipe_id:Cf,connector:null,run_if:null,config:{providers:Df,input_fields:{profile_url:{alias:``}},output_fields:{mobile:{alias:``,enabled:!0}}}}},Pf=`people:phone:workemail:waterfall@1`,Ff=_(`work_email`),If=_(`mobile`),Lf=[`leadmagic`,`amplemarket`],Rf=[{provider:`leadmagic`},{provider:`amplemarket`}],zf=r.object({pipe_id:r.literal(Pf),run_if:S(),connector:w(),config:r.object({providers:D({sectionKey:`general`,availableProviders:Lf,defaultProviders:Rf}),input_fields:z(r.object({[Ff.name]:E({fieldName:Ff.name})})),output_fields:R(r.object({[If.name]:k({fieldName:If.name})}))}).optional()}),Bf=e=>V(K(Ff,e)),Vf={"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`}},Hf=class extends U{pipeId=Pf;payload;payloadSchema=zf;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 Bf(this.payload.config)}getRawOutputFields(){return{[If.name]:this.catalogOutput(If,{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}))}},Uf=zf,Wf={pipeId:Pf,basePipe:W(Pf),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(Pf),billableOperations:Vf,defaultInputRequirement:Bf(null),inputFieldMode:`static`,outputFieldMode:`static`,allowedUserConnectionProviders:Lf,managedProviders:Lf,deprecatedProviders:[],defaultPayload:{pipe_id:Pf,connector:null,run_if:null,config:{providers:Rf,input_fields:{work_email:{alias:``}},output_fields:{mobile:{alias:``,enabled:!0}}}}},Gf=`people:professionalprofile:waterfall@1`,Kf=_(`professional_profile`),qf=_(`professional_profile_url`),Jf=[`prospeo`,`icypeas`],Yf=[{provider:`prospeo`},{provider:`icypeas`}],Xf=r.object({pipe_id:r.literal(Gf),run_if:S(),connector:w(),config:r.object({providers:D({sectionKey:`general`,availableProviders:Jf,defaultProviders:Yf}),input_fields:z(r.object({[qf.name]:E({fieldName:qf.name})})),output_fields:R(r.object({[Kf.name]:k({fieldName:Kf.name})}))}).optional()}),Zf=e=>V(K(qf,e)),Qf={"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}},$f=class extends U{pipeId=Gf;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{[Kf.name]:this.catalogOutput(Kf)}}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}))}},ep=Xf,tp={pipeId:Gf,basePipe:W(Gf),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:Jf,deprecatedProviders:[],allowedUserConnectionProviders:Jf,inputFieldMode:`static`,outputFieldMode:`static`,billableOperations:Qf,defaultInputRequirement:Zf(null),defaultPayload:{pipe_id:Gf,run_if:null,connector:null,config:{providers:Yf,input_fields:{professional_profile_url:{alias:``}},output_fields:{professional_profile:{alias:``,enabled:!0}}}}},np=`people:professionalprofileurl:email:waterfall@1`,rp=_(`email`),ip=_(`work_email`),ap=_(`professional_profile_url`),op=[`leadmagic`],sp=[{provider:`leadmagic`}],cp=r.object({pipe_id:r.literal(np),run_if:S(),connector:w(),config:r.object({providers:D({sectionKey:`general`,defaultProviders:sp,availableProviders:op}),input_fields:z(r.object({[rp.name]:E({fieldName:rp.name}),[ip.name]:E({fieldName:ip.name})})),output_fields:R(r.object({[ap.name]:k({fieldName:ap.name})}))}).optional()}),lp=e=>H(K(rp,e),K(ip,e)),up={"people-professionalprofileurl-email-waterfall-v1-leadmagic":{provider:`leadmagic`,allowManagedConnection:!0,credits:{default:3.5},mode:`onSuccess`}},dp=class extends U{pipeId=np;payload;payloadSchema=cp;billableOperations=up;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 lp(this.payload.config)}getRawOutputFields(){return{[ap.name]:this.catalogOutput(ap)}}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}))}},fp=cp,pp={pipeId:np,basePipe:W(np),managedProviders:op,deprecatedProviders:[],allowedUserConnectionProviders:op,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:up,inputFieldMode:`static`,outputFieldMode:`static`,defaultInputRequirement:lp(null),defaultPayload:{pipe_id:np,run_if:null,connector:null,config:{providers:sp,input_fields:{email:{alias:``},work_email:{alias:``}},output_fields:{professional_profile_url:{alias:``,enabled:!0}}}}},mp=`people:professionalprofileurl:name@1`,hp=_(`name`),gp=_(`company_name`),_p=_(`location_hint`),vp=_(`professional_profile_url`),yp=r.object({pipe_id:r.literal(mp),connector:T(),run_if:S(),config:r.object({input_fields:z(r.object({[hp.name]:E({fieldName:hp.name}),[gp.name]:E({fieldName:gp.name}),[_p.name]:E({fieldName:_p.name})})),output_fields:R(r.object({[vp.name]:k({fieldName:vp.name})}))}).optional()}),bp=e=>Oa(V(K(hp,e)),V(K(gp,e)),ka(K(_p,e))),xp={"people-professionalprofileurl-name-v1-pipe0":{provider:`pipe0`,allowManagedConnection:!0,credits:{default:.6},mode:`always`}},Sp=class extends U{pipeId=mp;payload;payloadSchema=yp;billableOperations=xp;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[`people-professionalprofileurl-name-v1-pipe0`]}getInputRequirement(){return bp(this.payload.config)}getRawOutputFields(){return{[vp.name]:this.catalogOutput(vp)}}getConnectionsRequirements(){return[{provider:`serper`,rateLimitRatio:1,rateLimitOperation:`serper_search`,allowManagedConnection:!0}]}},Cp=yp,wp={pipeId:mp,basePipe:W(mp),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:xp,defaultInputRequirement:bp(null),inputFieldMode:`static`,outputFieldMode:`static`,defaultPayload:{pipe_id:mp,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}}}}},Tp=`people:profile:waterfall@1`,Ep=_(`profile`),Dp=_(`profile_url`),Op=[`prospeo`,`icypeas`,`amplemarket`,`clado`],kp=[{provider:`amplemarket`},{provider:`prospeo`},{provider:`icypeas`}],Ap=r.object({pipe_id:r.literal(Tp),run_if:S(),connector:w(),config:r.object({providers:D({sectionKey:`general`,availableProviders:Op,defaultProviders:kp}),input_fields:z(r.object({[Dp.name]:E({fieldName:Dp.name})})),output_fields:R(r.object({[Ep.name]:k({fieldName:Ep.name})}))}).optional()}),jp=e=>V(K(Dp,e)),Mp={"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}},Np=class extends U{pipeId=Tp;payload;payloadSchema=Ap;billableOperations=Mp;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 jp(this.payload.config)}getRawOutputFields(){return{[Ep.name]:this.catalogOutput(Ep,{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}))}},Pp=Ap,Fp={pipeId:Tp,basePipe:W(Tp),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(Tp),tags:[B.LINKEDIN,B.WATERFALL],managedProviders:Op,deprecatedProviders:[`clado`],allowedUserConnectionProviders:Op,inputFieldMode:`static`,outputFieldMode:`static`,billableOperations:Mp,defaultInputRequirement:jp(null),defaultPayload:{pipe_id:Tp,run_if:null,connector:null,config:{providers:kp,input_fields:{profile_url:{alias:``}},output_fields:{profile:{alias:``,enabled:!0}}}}},Ip=_(`work_email`),Lp=_(`crustdata_person_match`),Rp=_(`crustdata_profile_match_score`),zp=`people:profile:workemail:crustdata@1`,Bp=r.object({pipe_id:r.literal(zp),run_if:S(),connector:w(),config:r.object({input_fields:z(r.object({[Ip.name]:E({fieldName:Ip.name})})),output_fields:R(r.object({[Lp.name]:k({fieldName:Lp.name}),[Rp.name]:k({fieldName:Rp.name})}))}).optional()}),Vp=e=>V(K(Ip,e)),Hp={"people-profile-workemail-crustdata-v1-crustdata":{allowManagedConnection:!0,credits:{default:5},mode:`onSuccess`,provider:`crustdata`}},Up=class extends U{pipeId=zp;payload;payloadSchema=Bp;billableOperations=Hp;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`crustdata`]}estimateBillableOperations(){return[`people-profile-workemail-crustdata-v1-crustdata`]}getInputRequirement(){return Vp(this.payload.config)}getRawOutputFields(){return{[Lp.name]:this.catalogOutput(Lp),[Rp.name]:this.catalogOutput(Rp)}}getConnectionsRequirements(){return[{provider:`crustdata`,rateLimitRatio:1,rateLimitOperation:`crustdata_realtime_person_enrich`,allowManagedConnection:!0}]}},Wp=Bp,Gp={pipeId:zp,inputFieldMode:`static`,outputFieldMode:`static`,basePipe:W(zp),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(zp),billableOperations:Hp,allowedUserConnectionProviders:[`crustdata`],managedProviders:[`crustdata`],deprecatedProviders:[],defaultInputRequirement:Vp(null),defaultPayload:{pipe_id:zp,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}}}}},Kp=`people:profileurl:email:waterfall@1`,qp=_(`email`),Jp=_(`work_email`),Yp=_(`profile_url`),Xp=[`leadmagic`],Zp=[{provider:`leadmagic`}],Qp=r.object({pipe_id:r.literal(Kp),run_if:S(),connector:w(),config:r.object({providers:D({sectionKey:`general`,defaultProviders:Zp,availableProviders:Xp}),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()}),$p=e=>H(K(qp,e),K(Jp,e)),em={"people-profileurl-email-waterfall-v1-leadmagic":{provider:`leadmagic`,allowManagedConnection:!0,credits:{default:3.5},mode:`onSuccess`}},tm=class extends U{pipeId=Kp;payload;payloadSchema=Qp;billableOperations=em;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 $p(this.payload.config)}getRawOutputFields(){return{[Yp.name]:this.catalogOutput(Yp,{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}))}},nm=Qp,rm={pipeId:Kp,basePipe:W(Kp),managedProviders:Xp,deprecatedProviders:[],allowedUserConnectionProviders:Xp,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(Kp),billableOperations:em,inputFieldMode:`static`,outputFieldMode:`static`,defaultInputRequirement:$p(null),defaultPayload:{pipe_id:Kp,run_if:null,connector:null,config:{providers:Zp,input_fields:{email:{alias:``},work_email:{alias:``}},output_fields:{profile_url:{alias:``,enabled:!0}}}}},im=`people:validate:email:zerobounce@1`,am=_(`work_email`),om=_(`ip_address`),sm=_(`is_email_valid`),cm=r.object({pipe_id:r.literal(im),connector:w(),run_if:S(),config:r.object({input_fields:z(r.object({[am.name]:E({fieldName:am.name}),[om.name]:E({fieldName:om.name})})),output_fields:R(r.object({[sm.name]:k({fieldName:sm.name})}))}).optional()}),lm=e=>Oa(V(K(am,e)),ka(K(om,e))),um={"people-validate-email-zerobounce-v1-zerobounce":{provider:`zerobounce`,allowManagedConnection:!0,credits:{default:.5},mode:`always`}},dm=class extends U{pipeId=im;payload;payloadSchema=cm;billableOperations=um;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`zerobounce`]}estimateBillableOperations(){return[`people-validate-email-zerobounce-v1-zerobounce`]}getInputRequirement(){return lm(this.payload.config)}getRawOutputFields(){return{[sm.name]:this.catalogOutput(sm)}}getConnectionsRequirements(){return[{provider:`zerobounce`,rateLimitRatio:1,rateLimitOperation:`zerobounce_generic`,allowManagedConnection:!0}]}},fm=cm,pm={pipeId:im,basePipe:W(im),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:um,inputFieldMode:`static`,outputFieldMode:`static`,allowedUserConnectionProviders:[`zerobounce`],managedProviders:[`zerobounce`],deprecatedProviders:[],defaultInputRequirement:lm(null),defaultPayload:{pipe_id:im,connector:null,run_if:null,config:{input_fields:{ip_address:{alias:``},work_email:{alias:``}},output_fields:{is_email_valid:{alias:``,enabled:!0}}}}},mm=`people:workemail:profileurl:waterfall@1`,hm=_(`profile_url`),gm=_(`work_email`),_m=_(`email_validation_status`),vm=[`hunter`,`amplemarket`,`findymail`,`leadmagic`,`crustdata`,`clado`],ym=[`clado`],bm=[{provider:`hunter`},{provider:`amplemarket`},{provider:`leadmagic`},{provider:`findymail`},{provider:`crustdata`}],xm=r.object({pipe_id:r.literal(mm),connector:w(),run_if:S(),config:r.object({providers:D({availableProviders:vm,defaultProviders:bm,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({[hm.name]:E({fieldName:hm.name})})),output_fields:R(r.object({[gm.name]:k({fieldName:gm.name}),[_m.name]:k({fieldName:_m.name})}))}).optional()}),Sm=e=>V(K(hm,e)),Cm={"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`}},wm=class extends U{pipeId=mm;payload;payloadSchema=xm;billableOperations=Cm;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 Sm(this.payload.config)}getRawOutputFields(){return{[gm.name]:this.catalogOutput(gm,{isPrimaryOutput:!0}),[_m.name]:this.catalogOutput(_m,{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}))}},Tm=xm,Em={pipeId:mm,basePipe:W(mm),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(mm),managedProviders:vm,allowedUserConnectionProviders:vm,deprecatedProviders:ym,inputFieldMode:`static`,outputFieldMode:`static`,billableOperations:Cm,defaultInputRequirement:Sm(null),defaultPayload:{pipe_id:mm,connector:null,run_if:null,config:{providers:bm,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}}}}},Dm=`people:workemail:waterfall@1`,Om=_(`name`),km=_(`company_website_url`),Am=_(`company_name`),jm=_(`work_email`),Mm=_(`email_validation_status`),Nm=[`leadmagic`,`prospeo`,`amplemarket`,`hunter`,`icypeas`,`findymail`],Pm=[{provider:`leadmagic`},{provider:`prospeo`},{provider:`amplemarket`},{provider:`hunter`},{provider:`icypeas`},{provider:`findymail`}],Fm=r.object({pipe_id:r.literal(Dm),connector:w(),run_if:S(),config:r.object({providers:D({availableProviders:Nm,defaultProviders:Pm,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({[Om.name]:E({fieldName:Om.name}),[km.name]:E({fieldName:km.name}),[Am.name]:E({fieldName:Am.name})})),output_fields:R(r.object({[jm.name]:k({fieldName:jm.name}),[Mm.name]:k({fieldName:Mm.name})}))}).optional()}),Im=e=>Oa(V(K(Om,e)),H(K(km,e),K(Am,e))),Lm={"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`}},Rm=class extends U{pipeId=Dm;payload;payloadSchema=Fm;billableOperations=Lm;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 Im(this.payload.config)}getRawOutputFields(){return{[jm.name]:this.catalogOutput(jm,{isPrimaryOutput:!0}),[Mm.name]:this.catalogOutput(Mm,{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}))}},zm=Fm,Bm={pipeId:Dm,basePipe:W(Dm),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(Dm),managedProviders:Nm,deprecatedProviders:[],allowedUserConnectionProviders:Nm,inputFieldMode:`static`,outputFieldMode:`static`,billableOperations:Lm,defaultInputRequirement:Im(null),defaultPayload:{pipe_id:Dm,connector:null,run_if:null,config:{providers:Pm,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}}}}},Vm=`email:iswork@1`,Hm=_(`is_work_email`),Um=_(`email`),Wm=r.object({pipe_id:r.literal(Vm),run_if:S(),connector:T(),config:r.object({input_fields:z(r.object({[Um.name]:E({fieldName:Um.name})})),output_fields:R(r.object({[Hm.name]:k({fieldName:Hm.name})}))}).optional()}),Gm=e=>V(K(Um,e)),Km={"email-iswork-v1-pipe0":{provider:`pipe0`,allowManagedConnection:!0,credits:{default:0},mode:`always`}},qm=class extends U{pipeId=Vm;payload;payloadSchema=Wm;billableOperations=Km;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[`email-iswork-v1-pipe0`]}getInputRequirement(){return Gm(this.payload.config)}getRawOutputFields(){return{[Hm.name]:this.catalogOutput(Hm)}}getConnectionsRequirements(){return[{provider:`pipe0`,rateLimitRatio:1,rateLimitOperation:`pipe0_logic`,allowManagedConnection:!0}]}},Jm=Wm,Ym={pipeId:Vm,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(Vm),billableOperations:Km,basePipe:W(Vm),allowedUserConnectionProviders:[],inputFieldMode:`static`,outputFieldMode:`static`,managedProviders:[`pipe0`],deprecatedProviders:[],defaultInputRequirement:Gm(null),defaultPayload:{pipe_id:Vm,run_if:null,connector:null,config:{input_fields:{email:{alias:``}},output_fields:{is_work_email:{alias:``,enabled:!0}}}}};function Xm(e,t){return typeof t==`string`?t:t(e)}function Zm(e,t){return typeof t==`string`||t===null?t:t(e)}function Qm(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:Xm(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 $m(e,t){for(let n of e.pipes){let r=n.getOutputFields();if(r[t])return{type:Xm(e,r[t].type),format:Zm(e,r[t].format)}}let n=e.derivedInputFields[t];if(n)return{type:n.type,format:null}}function eh(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=Nr(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=>$m(t,e)?.type||n,format:r};a.push(t.required?V(i):ka(i))}return Oa(...a)}function Y(e){let t=new Set;for(let n of e)if(n)try{let e=Nr(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=Nr(n);for(let n of e.constants)t.add(n)}catch{}return[...t]}const th=`email:send:gmail@1`,nh=_(`gmail_email_success`),rh=r.object({pipe_id:r.literal(th),connector:qi(),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:mt,exampleValue:ht}},role_finder_match:{label:`Role finder match`,type:`json`,format:`json_object`,description:`Result of a role finder operation`,jsonMeta:{zodSchema:Vt,exampleValue:Ht}},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:Nt,zodSchema:Mt}},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:zt,exampleValue:Bt},format:`json_object`},professional_profile_url:{label:`LinkedIn Profile URL`,type:`string`,format:`profile_url`,description:`A person's LinkedIn profile URL.`,jsonMeta:null}},ln={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=an(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=sn(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=sn(e);return{display_value:t?{label:t}:void 0,icon:{key:`linkedin`}}}},company_profile_url:{getStaticWidgets(e){let t=sn(e);return{display_value:t?{label:t}:void 0,icon:{key:`linkedin`}}}},developer_profile_url:{},alternative_developer_profile_urls:{},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_company_identity_matches:{},crustdata_person_match:{},parallel_person_entity_match:{},parallel_company_entity_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{...cn[e],name:e}}function un(e,t){if(fn(e,t))return ln[e]}function dn(e){return e in cn}function fn(e,t){return e in cn?cn[e].format===t:!1}const pn={completed:`Completed`,failed:`Failed`,no_result:`No result`,pending:`Pending`,processing:`Processing`,queued:`Queued`,skipped:`Skipped`};function mn(e){return pn[e]}const hn=(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},gn=(e,t)=>n=>{let r=e(n);return r!=null&&r!==``?{disabled:!1}:{disabled:!0,message:t}},_n=(...e)=>t=>{for(let n of e){let e=n(t);if(e.disabled)return e}return{disabled:!1}},vn=(...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 yn(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 bn=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.developer_profile_url.alternative_developer_profile_urls.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_company_identity_matches.crustdata_person_match.parallel_person_entity_match.parallel_company_entity_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(`.`)),xn=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.parallel`.split(`.`)),Sn=r.enum([`production`,`sandbox`]),Cn=`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.company:identity:crustdata@1.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.person:devprofileurl:profileurl: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(`.`),wn=r.enum(Cn),Tn=[`string`,`number`,`boolean`,`json`,`unknown`],En=r.enum(Tn),Dn=r.union([r.number(),r.string()]),On=r.union([r.literal(`completed`),r.literal(`failed`),r.literal(`pending`),r.literal(`queued`),r.literal(`processing`),r.literal(`no_result`),r.literal(`skipped`)]),kn=r.union([r.string().min(1),r.number(),r.boolean(),r.null(),r.record(r.string(),r.unknown()),r.array(r.unknown())]),An=r.object({example_value:r.any().nullable(),schema:r.any().nullable()}),jn=r.object({}),Mn=jn.extend({image_url:r.string().url().describe(`URL to the provider's logo image.`),entity:r.string().describe(`The name of the entity.`)}),Nn=jn.extend({emoji:r.string().describe(`Country flag emoji.`)}),Pn=jn.extend({image_url:r.url().describe(`URL to the provider's logo image.`),name:r.string().describe(`The name of the avatar owner.`)}),Fn=jn.extend({attempted_providers:r.array(r.object({provider:xn})),available_providers:r.array(xn),successful_provider:xn.optional()}),In=r.enum([`linkedin`,`job`]),Ln=jn.extend({key:In}).optional(),Rn=r.object({result_status:r.enum([`completed`,`failed`])}).optional(),zn=r.object({list:r.array(r.object({source:r.string(),description:r.string().optional(),url:r.string()}))}).optional(),Bn=r.object({numeric:r.int().min(1).max(5)}).optional(),Vn=r.object({display_value:r.object({label:r.string().optional()}),entity_logo:Mn.optional(),location_indicator:Nn.optional(),avatar:Pn.optional(),waterfall:Fn.optional(),icon:Ln,action_summary:Rn,sources:zn,confidence:Bn}).partial().describe(`A map of widgets associated with this field for UI display, keyed by widget type.`),Hn=r.object({code:r.string(),message:r.string(),path:r.string().optional()}),Un=r.object({code:r.string(),summary:r.string(),message:r.string()}),Wn=[`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`],Gn=r.enum(Wn);Gn.nullable();const Kn=r.object({type:En,label:r.string().nullable().optional(),format:Gn.nullable().optional(),json_metadata:An.nullable().optional()}),qn=r.record(r.string(),Kn),Jn=r.enum([...Cn,`input`]).nullable(),Yn=r.enum([...Cn,`input`,`system`]).nullable(),Xn=r.object({ref:Jn,config_hash:r.string().nullable()}),Zn=r.object({ref:Yn,environment:Sn.nullable(),config_hash:r.string().nullable(),input_hash:r.string().nullable()}),Qn=r.object({value:kn,status:On,type:En,reason:Un.nullable(),claimed_by:Xn,resolved_by:Zn.nullable(),widgets:Vn.optional(),format:Gn.nullable()}),$n=r.object({value:kn,status:On,reason:Un.nullable().optional(),type:En.optional(),format:Gn.nullable().optional(),claimed_by:Xn.optional(),resolved_by:Zn.nullable().optional(),widgets:Vn.optional()}),er=r.record(r.string(),r.union([kn,$n])).openapi(`PipesInput`),tr=r.object({id:Dn,fields:r.record(Dn,Qn)}),nr=r.object({type:r.literal(`catalog`),fieldName:r.string().min(1)}),rr=r.object({type:En,label:r.string(),added_by:r.object({ref:r.union([wn,r.literal(`input`)]),config_hash:r.string().nullable(),pipe_index:r.number().nullable()}),format:Gn.nullable(),is_primary_output:r.boolean()}),ir=r.record(r.string(),rr),ar=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:Gn.nullable().default(null),label:r.string().optional(),type:En})})).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)})})}),or=r.enum([`eq`,`neq`,`gt`,`gte`,`lt`,`lte`,`contains`]),sr={eq:`equals`,neq:`not equals`,gt:`greater than`,gte:`greater than or equal`,lt:`less than`,lte:`less than or equal`,contains:`contains`},cr=[`eq`,`neq`,`gt`,`gte`,`lt`,`lte`,`contains`],lr=[`eq`,`neq`],ur=r.object({type:r.literal(`vault`),connection:r.string()}),v=r.object({strategy:r.enum([`first`]).default(`first`),connections:r.array(ur)}).nullable().optional(),dr=r.object({strategy:r.enum([`first`]).default(`first`),connections:r.array(ur).min(1,{message:`Provide your own credentials to use this object.`})}),fr=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(),pr=r.enum(cr),mr=r.enum(lr),hr=r.enum([`failed`,`no_result`,`completed`,`skipped`]),gr=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:pr.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:mr.describe(`Status comparison operator: "eq" or "neq".`),value:hr.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" }] } }`),_r={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},parallel:{name:`parallel`,label:`Parallel`,description:`Agentic web search & research APIs purpose-built for AI agents.`,public:!0,hasManagedConnections:!0,allowsUserConnections:!0,url:`https://parallel.ai`,connectionType:`api_key`,logoUrl:`https://imagedelivery.net/3B3AWuP94-S3Ro5eEac6JA/13d4ae54-9400-4577-8fbf-c96021fb0000/icon`,background:{light:`#E0E5FF`,dark:`#0F1A3D`},oAuthConfig:null}},vr=[`if`,`elsif`,`else`,`endif`,`unless`,`endunless`,`for`,`endfor`,`break`,`continue`,`output`],yr=[`json`,`escape`,`escape_once`,`default`,`upcase`,`downcase`,`size`,`join`,`first`,`last`,`replace`,`truncate`,`strip`,`newline_to_br`,`url_encode`],br=/^[A-Z][A-Z0-9_]*$/,xr=/^[A-Z][A-Z0-9_]*$/,Sr=/^[a-zA-Z_][a-zA-Z0-9_]*$/,Cr=`SECRETS`,wr=`CONSTANTS`,Tr=new Set(vr),Er=new Set(yr),Dr=e=>`{${e}}`;var Or=class extends i{constructor(e){super(),this.values=e}liquidMethodMissing(e){let t=String(e);if(!br.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]}},kr=class extends i{constructor(e){super(),this.values=e}liquidMethodMissing(e){let t=String(e);if(!xr.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 Ar(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(!Sr.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 jr(){let e=new a({strictVariables:!1,strictFilters:!0,jsTruthy:!0,greedy:!1,catchAllErrors:!1,ownPropertyOnly:!0});e.registerTag(`output`,{parse(e,t){let n=Ar(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(Dr(n.name))}});for(let t of Object.keys(e.tags))Tr.has(t)||delete e.tags[t];for(let t of Object.keys(e.filters))Er.has(t)||delete e.filters[t];return e}let Mr=null;function Nr(){return Mr||=jr(),Mr}async function Pr(e,t,n={}){let r=Nr(),i=n.renderLimitMs??250,a={...t.inputs??{},[Cr]:new Or(t.secrets??{}),[wr]:new kr(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 Fr(e,t,n={}){let r=Nr(),i=n.renderLimitMs??250,a={...t.inputs??{},[Cr]:new Or(t.secrets??{}),[wr]:new kr(t.constants??{})},o=r.parseAndRenderSync(e,a,{globals:{__outputAllowed:n.outputAllowed===!0},renderLimit:i});return String(o)}function Ir(e){return Nr().parse(e)}function Lr(e){let t=Nr().parse(e),n={scopeStack:[],guardStack:[],inputs:new Map,secrets:new Set,constants:new Set,outputs:[],forDepth:0};Rr(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 Rr(e,t){for(let n of e)zr(n,t)}function zr(e,t){let n=e;if(n.value&&typeof n.value==`object`&&`filters`in n.value&&`initial`in n.value){Wr(n.value,t,!1);return}if(typeof n.name==`string`){Br(n,t);return}}function Br(e,t){switch(e.name){case`for`:Vr(e,t);return;case`if`:case`unless`:Hr(e,t);return;case`output`:Ur(e,t);return;case`break`:case`continue`:return;default:throw Error(`Unhandled liquid tag in analyzer: ${e.name}`)}}function Vr(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&&Gr(e.collection,t,!1);let n=typeof e.variable==`string`?e.variable:null;n&&t.scopeStack.push(n),Rr(Array.isArray(e.templates)?e.templates:[],t),n&&t.scopeStack.pop(),Rr(Array.isArray(e.elseTemplates)?e.elseTemplates:[],t),--t.forDepth}function Hr(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=Jr(i.initial)),a&&t.guardStack.push(a),i&&typeof i==`object`&&Wr(i,t,!1),Rr(r.templates,t),a&&t.guardStack.pop()}Rr(Array.isArray(e.elseTemplates)?e.elseTemplates:[],t)}function Ur(e,t){let n=e.outputDecl;if(!n){let t=e.token?.args;typeof t==`string`&&(n=Ar(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 Wr(e,t,n){let r=e.filters.some(e=>e.name===`default`),i=n||r;for(let n of e.initial.postfix)Yr(n)&&qr(n,t,i);for(let n of e.filters)for(let e of n.args)Kr(e,t)}function Gr(e,t,n){Yr(e)&&qr(e,t,n)}function Kr(e,t){if(Array.isArray(e)){let n=e[1];n&&Gr(n,t,!1)}else Gr(e,t,!1)}function qr(e,t,n){let r=e.props;if(r.length===0)return;let i=r[0];if(!i||!Xr(i))return;let a=i.content;if(t.scopeStack.includes(a))return;if(a===`SECRETS`){let e=r[1];if(!e||!Xr(e))throw Error(`Invalid SECRETS reference โ€” expected SECRETS.KEY (got ${$r(r)}).`);let n=e.content;if(!br.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||!Xr(e))throw Error(`Invalid CONSTANTS reference โ€” expected CONSTANTS.KEY (got ${$r(r)}).`);let n=e.content;if(!xr.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 Jr(e){if(e.postfix.length===1){let t=e.postfix[0];if(t&&Yr(t)&&t.props.length===1){let e=t.props[0];if(e&&Xr(e))return e.content}}if(e.postfix.length===3){let[t,n,r]=e.postfix;if(t&&n&&r&&Yr(t)&&t.props.length===1){let e=t.props[0];if(e&&Xr(e)&&Zr(n)&&Qr(r,[`==`,`!=`]))return e.content}}return null}function Yr(e){return e.kind===o.PropertyAccess}function Xr(e){return!!e&&typeof e==`object`&&e.kind===o.Word}function Zr(e){if(e.kind!==o.Literal)return!1;let t=e.literal;return t===`nil`||t===`null`}function Qr(e,t){return e.kind===o.Operator?t.includes(e.operator):!1}function $r(e){let t=[];for(let n of e)n&&Xr(n)?t.push(n.content):t.push(`?`);return t.join(`.`)}function ei(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:xn.parse(n),id:r}}catch{throw Error(`Connection string ${e}: Failed to parse provider name.`)}}function ti(e){return`${e.provider}_${e.id}`}const ni=new s;function ri(e){return ni.validateSchema(e)}function ii(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 ai=[`gemini-flash-latest`,`openai-gpt-latest`,`openai-gpt-mini-latest`],oi={"gemini-flash-latest":{provider:`gemini`,rateLimitOperation:`gemini_35_flash`,rateLimitRatio:1,allowManagedConnection:!0,defaultCredits:.2,billingMode:`always`},"openai-gpt-latest":{provider:`openai`,rateLimitOperation:`openai_gpt-5`,rateLimitRatio:1,allowManagedConnection:!0,defaultCredits:.5,billingMode:`always`},"openai-gpt-mini-latest":{provider:`openai`,rateLimitOperation:`openai_gpt-5-mini`,rateLimitRatio:1,allowManagedConnection:!0,defaultCredits:.3,billingMode:`always`}};function si(e,t){let n={};for(let r of ai){let i=oi[r],a=`${e}-${r}`;n[a]={credits:{default:t?.[r]??i.defaultCredits},allowManagedConnection:!0,provider:i.provider,mode:i.billingMode}}return n}function ci(e,t){return`${t}-${e}`}function li(e){let t=oi[e];if(!t)throw Error(`Unknown AI model: ${e}`);return[t.provider]}function ui(e){let t=oi[e];if(!t)throw Error(`Unknown AI model: ${e}`);return[{provider:t.provider,rateLimitRatio:t.rateLimitRatio,rateLimitOperation:t.rateLimitOperation,allowManagedConnection:t.allowManagedConnection}]}function di(){let e=new Set;for(let t of ai)e.add(oi[t].provider);return[...e]}function fi(e){if(!e?.requires)return;let t=[];e.requires.connection&&t.push(hn(e.requires.connection));for(let n of e.requires.fields??[])t.push(gn(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]:_n(...t)}function pi(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=yn(e,n,t),s=dn(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().default(null),max:r.number().nullable().default(null)}),include_exclude_input:r.object({include:r.array(r.string()).default([]),exclude:r.array(r.string()).default([])}),include_exclude_select_input:r.object({include:r.array(r.string()).default([]),exclude:r.array(r.string()).default([])}),async_include_exclude_select_input:r.object({include:r.array(r.string()).default([]),exclude:r.array(r.string()).default([])}),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())])},mi=(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},hi=(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},gi=/^\s*\{\{\s*[a-zA-Z_][a-zA-Z0-9_.]*(?:\s*\|\s*[^}]+)?\s*\}\}\s*$/,_i=/\{\{|\{%/,vi=(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=gi.test(e),i=_i.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},yi=(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)=>{qi({value:e.key,issues:t.issues},!1,[n,`key`]),qi({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},bi=(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)`})}),i=e.required?r:r.default({include:[],exclude:[]});return e.description&&i.describe(e.description),t.add(i,{type:`include_exclude_input`,...e}),i},xi=()=>{let e=ar;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}=pi(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},Si=(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:_r[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},Ci=(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)`})}),i=e.required?r:r.default({include:[],exclude:[]});return e.description&&i.describe(e.description),t.add(i,{type:`include_exclude_select_input`,...e}),i},wi=(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},Ti=(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},Ei=(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},Di=(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},Oi=(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},ki=(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},Ai=(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},ji=(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})},Mi=(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},Ni=(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},Pi=(e,t)=>{let n=x.json_schema_input,r=e.required?n:n.optional();return r.check(e=>{ri(e.value)||e.issues.push({code:`custom`,input:e.value,message:`JSON schema is invalid. Check your input.`})}),e.allowEmpty||(r=r.check(e=>{ii(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},Fi=(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},Ii=({billableOperations:e,...t},n)=>{let i=r.enum(ai).default(t.defaultValue||`gemini-flash-latest`);return n.add(i,{type:`select_input`,options:ai.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:_r[oi[t].provider].logoUrl},pricing:{credits:n.credits.default}}}}),required:!0,description:``,label:`AI Models`,...t}),i},Li=(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(`, `)}`})})}),o=e.required?a:a.default([]);return t.add(o,{type:`multi_select_input`,...e}),o},Ri=(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??fi(e.optionsDef);return t.add(r,{type:`context_select_input`,...e,enabledIf:i,options:[]}),r},zi=(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}`})}}}),r=e.required?n:n.default({min:null,max:null});return t.add(r,{type:`min_max_int_input`,...e}),r},Bi=(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`})}),r=e.required?n:n.default([]);return t.add(r,{type:`async_multi_select_input`,...e}),r},Vi=(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)`})}),i=e.required?r:r.default({include:[],exclude:[]});return t.add(i,{type:`async_include_exclude_select_input`,...e}),i};function Hi(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=gr.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},Ui={pipe_io:{type:`form_section`,label:`In- and outputs`,description:`Configure output fields and reassign inputs.`,path:`config.pipe_io`},pagination:{type:`form_section`,path:`pagination`},"config.filters":{type:`form_section`,label:`Filters`,path:`config.filters`,description:`Narrow down the search output`},general:{type:`form_section`,path:`general`,label:`Behavior`}},Wi={general:1,pagination:2,"config.filters":3,pipe_io:10};function Gi({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 Ki=({schema:e,groupPathMatch:t,extractFromSchema:n,sectionOrder:i=Wi,sectionMap:a=Ui,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=Gi({fieldMetadata:i,store:o,formResolvers:s});e&&n.fields.push(e)}else{let n=t[i.groupPath],r=Gi({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 qi(e,t,n=[]){let r=e.value;if(!(typeof r!=`string`||!r))try{let i=Lr(r);!t&&i.outputs.length>0&&e.issues.push({code:`custom`,input:r,path:n,message:`{% output %} tags are not allowed in this field.`}),t&&i.outputs.length===0&&e.issues.push({code:`custom`,input:r,path:n,message:`At least one {% output %} tag is required, e.g. {% output result, type: "string", description: "..." %}`})}catch(t){e.issues.push({code:`custom`,input:r,path:n,message:t instanceof Error?t.message:String(t)})}}const Ji=e=>{let t=(e.supportedTags??[]).includes(`output`),n=r.object({template:r.string().min(10).check(e=>qi(e,t,[])).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},Yi=e=>{let t=r.string();e.required&&(t=t.min(1));let n=t.check(e=>qi(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=>qi(e,!1,[])),n=n.describe(e.description||t);let i=e.optionsDef?{...e.optionsDef,enabledIf:e.optionsDef.enabledIf??fi(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 Xi(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:ti({id:e.public_id,provider:e.provider})}))}})}const Zi=()=>{let e=dr;return Xi(e,`required`),e},w=()=>{let e=v;return Xi(e,`optional`),e},T=()=>{let e=fr;return Xi(e,`disabled`),e};function Qi(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:Qi(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=>Si(e,y),$i=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},ea=e=>bi(e,y),ta=e=>mi(e,y),na=e=>hi(e,y),ra=e=>vi(e,y),ia=e=>yi(e,y),aa=e=>Ci(e,y),oa=e=>Vi(e,y),sa=e=>wi(e,y),ca=e=>Ei(e,y),O=e=>Di(e,y),k=e=>ji(e,y),la=e=>ki(e,y),ua=e=>Ai(e,y),da=e=>Fi(e,y),fa=e=>Ii(e,y),pa=e=>Li(e,y),ma=e=>Mi(e,y),ha=e=>Ni(e,y),ga=e=>Pi(e,y),_a=e=>Ri(e,y),A=e=>mi(e,b),va=e=>hi(e,b),ya=e=>zi(e,b),j=e=>bi(e,b),M=e=>Ci(e,b),ba=e=>wi(e,b),xa=e=>Ti(e,b),Sa=e=>Ei(e,b),Ca=e=>Di(e,b),wa=e=>Oi(e,b),N=e=>ji(e,b,`pipe_io`),Ta=e=>ki(e,b),Ea=e=>Ai(e,b),Da=e=>Fi(e,b),P=e=>Li(e,b),F=e=>Bi(e,b),I=e=>Vi(e,b),L=e=>Mi(e,b),Oa=e=>Ni(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 ka(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]=ka(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 โŒ`},Aa=e=>typeof e.kind==`string`,ja=e=>Aa(e)?e:{kind:`field`,field:e},V=e=>({kind:`field`,field:e}),Ma=(...e)=>({kind:`all`,of:e.map(ja)}),H=(...e)=>({kind:`any`,of:e.map(ja)}),Na=e=>({kind:`optional`,field:e});function Pa(e,t){switch(e.kind){case`optional`:return!0;case`field`:return t.has(e.field.resolvedName);case`all`:return e.of.every(e=>Pa(e,t));case`any`:return e.of.some(e=>Pa(e,t))}}function Fa(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(Fa)}}function Ia(e,t){let n=La(e,t);return n.ok?{valid:!0,failedPipeInputField:null,failedRecordField:null}:{valid:!1,failedPipeInputField:n.field,failedRecordField:n.recordField}}function La(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=La(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=La(i,t);if(r=!0,e.ok)return{ok:!0};n=e}catch{}return r?n:{ok:!0}}}}function Ra(e){if(typeof e!=`object`||!e)return e;if(Array.isArray(e))return e.map(Ra).filter(e=>!Lt(e));let t={};for(let[n,r]of Object.entries(e)){let e=Ra(r);Lt(e)||(t[n]=e)}return t}const za=await l();var Ba=class e{static hashObject(t){if(!za)throw Error(`HashAPI not initialized`);let{h64ToString:n}=za,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 Va(e,t){let n={pipeId:e,config:Ra(t)};return Ba.hashObject(n)}function Ha(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:Ba.hashObject(Ra(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 Fa(this.getInputRequirement()))e[t.name]=t;return e}getConfigHashKey(){return Va(this.payload.pipe_id,this.payload.config||{})}getInputHashKey(e){return Ha(e,this.inputFields)}};function Ua(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 Wa(e){return Fa(e).map(({field:e})=>e)}function Ga({recordField:e,value:t,resolvedBy:n,widgets:r}){return e.value=t,e.status=`completed`,e.resolved_by=n,e.widgets=r,e}function Ka({recordField:e}){return e.status=`pending`,e.resolved_by=null,e.value=null,e}function qa({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 Ja(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 Ya(e,t){return e.value=null,e.status=`skipped`,e.resolved_by=null,e.reason=t,e.widgets={},e}function Xa(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 Za=`company:domain:workemail@1`,Qa=_(`company_domain`),$a=_(`work_email`),eo=r.object({pipe_id:r.literal(Za),run_if:S(),connector:T(),config:r.object({input_fields:z(r.object({[$a.name]:E({fieldName:$a.name})})),output_fields:R(r.object({[Qa.name]:k({fieldName:Qa.name})}))}).optional()}),to=e=>V(K($a,e)),no={"company-domain-workemail-v1-pipe0":{credits:{default:0},allowManagedConnection:!0,mode:`always`,provider:`pipe0`}},ro=class extends U{pipeId=Za;payload;payloadSchema=eo;billableOperations=no;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[`company-domain-workemail-v1-pipe0`]}getInputRequirement(){return to(this.payload.config)}getRawOutputFields(){return{[Qa.name]:this.catalogOutput(Qa)}}getConnectionsRequirements(){return[{provider:`pipe0`,rateLimitRatio:1,rateLimitOperation:`pipe0_logic`,allowManagedConnection:!0}]}},io=eo,ao={pipeId:Za,basePipe:W(Za),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(Za),allowedUserConnectionProviders:[],managedProviders:[`pipe0`],deprecatedProviders:[],billableOperations:no,defaultInputRequirement:to(null),defaultPayload:{pipe_id:Za,connector:null,run_if:null,config:{input_fields:{[$a.name]:{alias:``}},output_fields:{[Qa.name]:{alias:``,enabled:!0}}}}},oo=`company:funding:leadmagic@2`,so=_(`company_name`),co=_(`company_domain`),lo=_(`funding_history`),uo=_(`funding_total_usd`),fo=_(`leadmagic_competitor_list`),po=_(`leadmagic_acquisition_history`),mo=_(`leadmagic_company_news_list`),ho=r.object({pipe_id:r.literal(oo),connector:w(),run_if:S(),config:r.object({input_fields:z(r.object({[so.name]:E({fieldName:so.name}),[co.name]:E({fieldName:co.name})})),output_fields:R(r.object({[lo.name]:k({fieldName:lo.name}),[uo.name]:k({fieldName:uo.name}),[fo.name]:k({fieldName:fo.name}),[po.name]:k({fieldName:po.name}),[mo.name]:k({fieldName:mo.name})}))}).optional()}),go=e=>H(K(so,e),K(co,e)),_o={"company-funding-leadmagic-v2-leadmagic":{provider:`leadmagic`,allowManagedConnection:!0,credits:{default:2},mode:`onSuccess`}},vo=class extends U{pipeId=oo;payload;payloadSchema=ho;billableOperations=_o;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`leadmagic`]}estimateBillableOperations(){return[`company-funding-leadmagic-v2-leadmagic`]}getInputRequirement(){return go(this.payload.config)}getRawOutputFields(){return{[lo.name]:this.catalogOutput(lo),[uo.name]:this.catalogOutput(uo),[po.name]:this.catalogOutput(po),[mo.name]:this.catalogOutput(mo),[fo.name]:this.catalogOutput(fo)}}getConnectionsRequirements(){return[{provider:`leadmagic`,rateLimitRatio:1,rateLimitOperation:`leadmagic_company_funding`,allowManagedConnection:!0}]}},yo=ho,bo={pipeId:oo,basePipe:W(oo),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(oo),billableOperations:_o,inputFieldMode:`static`,outputFieldMode:`static`,allowedUserConnectionProviders:[`leadmagic`],managedProviders:[`leadmagic`],deprecatedProviders:[],defaultInputRequirement:go(null),defaultPayload:{pipe_id:oo,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:``}}}}},xo=_(`company_name`),So=_(`company_profile_url`),Co=_(`company_domain`),wo=_(`cleaned_company_name`),To=`company:identity@3`,Eo=r.object({pipe_id:r.literal(To),run_if:S(),connector:T(),config:r.object({input_fields:z(r.object({[xo.name]:E({fieldName:xo.name})})),output_fields:R(r.object({[So.name]:k({fieldName:So.name}),[wo.name]:k({fieldName:wo.name}),[Co.name]:k({fieldName:Co.name})}))}).optional()}),Do=e=>V(K(xo,e)),Oo={"company-identity-v3-pipe0":{allowManagedConnection:!0,credits:{default:.3,level1:{credits:.2,weight:1}},mode:`always`,provider:`pipe0`}},ko=class extends U{pipeId=To;payload;payloadSchema=Eo;billableOperations=Oo;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[`company-identity-v3-pipe0`]}getInputRequirement(){return Do(this.payload.config)}getRawOutputFields(){return{[So.name]:this.catalogOutput(So),[Co.name]:this.catalogOutput(Co),[wo.name]:this.catalogOutput(wo)}}getConnectionsRequirements(){return[{provider:`gemini`,rateLimitRatio:1,rateLimitOperation:`gemini_35_flash`,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}]}},Ao=Eo,jo={pipeId:To,inputFieldMode:`static`,outputFieldMode:`static`,basePipe:W(To),label:`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(To),billableOperations:Oo,allowedUserConnectionProviders:[],managedProviders:[`pipe0`],deprecatedProviders:[],defaultInputRequirement:Do(null),defaultPayload:{pipe_id:To,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}}}}},Mo=_(`company_domain`),No=_(`company_name`),Po=_(`crustdata_company_identity_matches`),Fo=`company:identity:crustdata@1`,Io=r.object({pipe_id:r.literal(Fo),run_if:S(),connector:w(),config:r.object({input_fields:z(r.object({[Mo.name]:E({fieldName:Mo.name}),[No.name]:E({fieldName:No.name})})),output_fields:R(r.object({[Po.name]:k({fieldName:Po.name})}))}).optional()}),Lo=e=>H(K(Mo,e),K(No,e)),Ro={"company-identity-crustdata-v1-crustdata":{allowManagedConnection:!0,credits:{default:.001},mode:`onSuccess`,provider:`crustdata`}},zo=class extends U{pipeId=Fo;payload;payloadSchema=Io;billableOperations=Ro;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`crustdata`]}estimateBillableOperations(){return[`company-identity-crustdata-v1-crustdata`]}getInputRequirement(){return Lo(this.payload.config)}getRawOutputFields(){return{[Po.name]:this.catalogOutput(Po)}}getConnectionsRequirements(){return[{provider:`crustdata`,rateLimitRatio:1,rateLimitOperation:`crustdata_company_identify`,allowManagedConnection:!0}]}},Bo=Io,Vo={pipeId:Fo,inputFieldMode:`static`,outputFieldMode:`static`,basePipe:W(Fo),label:`Company identity`,executionMode:`single`,categories:[`company_data`],lifecycle:null,description:`Resolve a company to Crustdata's matching candidates by domain or name. Returns the full list of matches.`,tags:[B.WEBSITE,B.LINKEDIN],docPath:G(Fo),billableOperations:Ro,allowedUserConnectionProviders:[`crustdata`],managedProviders:[`crustdata`],deprecatedProviders:[],defaultInputRequirement:Lo(null),defaultPayload:{pipe_id:Fo,connector:null,run_if:null,config:{input_fields:{company_domain:{alias:``},company_name:{alias:``}},output_fields:{crustdata_company_identity_matches:{alias:``,enabled:!0}}}}},Ho=_(`company_domain`),Uo=_(`companyenrich_matches`),Wo=`company:lookalikes:companyenrich@2`,Go=r.object({pipe_id:r.literal(Wo),run_if:S(),connector:w(),config:r.object({limit:ma({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({[Ho.name]:E({fieldName:Ho.name})})),output_fields:R(r.object({[Uo.name]:k({fieldName:Uo.name})}))}).optional()}),Ko=e=>V(K(Ho,e)),qo={"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`}},Jo=class extends U{pipeId=Wo;payload;payloadSchema=Go;billableOperations=qo;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`companyenrich`]}estimateBillableOperations(){return[,,,,,].fill(`lookalikes-companyenrich`)}getInputRequirement(){return Ko(this.payload.config)}getRawOutputFields(){return{[Uo.name]:this.catalogOutput(Uo)}}getConnectionsRequirements(){return[{provider:`companyenrich`,rateLimitRatio:1,rateLimitOperation:`company_enrich_generic`,allowManagedConnection:!0}]}},Yo=Go,Xo={pipeId:Wo,inputFieldMode:`static`,outputFieldMode:`static`,basePipe:W(Wo),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(Wo),billableOperations:qo,allowedUserConnectionProviders:[`companyenrich`],managedProviders:[`companyenrich`],deprecatedProviders:[],defaultInputRequirement:Ko(null),defaultPayload:{pipe_id:Wo,connector:null,run_if:null,config:{limit:20,input_fields:{company_domain:{alias:``}},output_fields:{companyenrich_matches:{alias:``,enabled:!0}}}}},Zo=_(`company_domain`),Qo=_(`crustdata_companyenrich_match`),$o=`company:match:crustdata@2`,es=r.object({pipe_id:r.literal($o),run_if:S(),connector:w(),config:r.object({input_fields:z(r.object({[Zo.name]:E({fieldName:Zo.name})})),output_fields:R(r.object({[Qo.name]:k({fieldName:Qo.name})}))}).optional()}),ts=e=>V(K(Zo,e)),ns={"company-match-crustdata-v2-crustdata":{allowManagedConnection:!0,credits:{default:2.5,level1:{credits:1.2,weight:1}},mode:`onSuccess`,provider:`crustdata`}},rs=class extends U{pipeId=$o;payload;payloadSchema=es;billableOperations=ns;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`crustdata`]}estimateBillableOperations(){return[`company-match-crustdata-v2-crustdata`]}getInputRequirement(){return ts(this.payload.config)}getRawOutputFields(){return{[Qo.name]:this.catalogOutput(Qo)}}getConnectionsRequirements(){return[{provider:`crustdata`,rateLimitRatio:1,rateLimitOperation:`crustdata_company_enrich`,allowManagedConnection:!0}]}},is=es,as={pipeId:$o,inputFieldMode:`static`,outputFieldMode:`static`,basePipe:W($o),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($o),billableOperations:ns,allowedUserConnectionProviders:[`crustdata`],managedProviders:[`crustdata`],deprecatedProviders:[],defaultInputRequirement:ts(null),defaultPayload:{pipe_id:$o,connector:null,run_if:null,config:{input_fields:{company_domain:{alias:``}},output_fields:{crustdata_companyenrich_match:{alias:``,enabled:!0}}}}},os=_(`company_domain`),ss=_(`company_name`),cs=_(`company_profile_url`),ls=_(`logodev_describe_match`),us=_(`logo_url`),ds=`company:match:logodev@2`,fs=r.object({pipe_id:r.literal(ds),run_if:S(),connector:w(),config:r.object({input_fields:z(r.object({[os.name]:E({fieldName:os.name})})),output_fields:R(r.object({[cs.name]:k({fieldName:cs.name}),[us.name]:k({fieldName:us.name}),[ss.name]:k({fieldName:ss.name}),[ls.name]:k({fieldName:ls.name})}))}).optional()}),ps=e=>V(K(os,e)),ms={"company-match-logodev-v2-logodev":{allowManagedConnection:!0,credits:{default:.1},mode:`onSuccess`,provider:`logodev`}},hs=class extends U{pipeId=ds;payload;payloadSchema=fs;billableOperations=ms;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`logodev`]}estimateBillableOperations(){return[`company-match-logodev-v2-logodev`]}getInputRequirement(){return ps(this.payload.config)}getRawOutputFields(){return{[cs.name]:this.catalogOutput(cs),[ss.name]:this.catalogOutput(ss),[us.name]:this.catalogOutput(us),[ls.name]:this.catalogOutput(ls)}}getConnectionsRequirements(){return[{provider:`logodev`,rateLimitRatio:1,rateLimitOperation:`logodev_describe`,allowManagedConnection:!0}]}},gs=fs,_s={pipeId:ds,inputFieldMode:`static`,outputFieldMode:`static`,basePipe:W(ds),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(ds),billableOperations:ms,allowedUserConnectionProviders:[`logodev`],managedProviders:[`logodev`],deprecatedProviders:[],defaultInputRequirement:ps(null),defaultPayload:{pipe_id:ds,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}}}}},vs=`company:newssummary:domain@1`,ys=_(`company_news_summary`),bs=_(`company_domain`),xs=r.object({pipe_id:r.literal(vs),run_if:S(),connector:w(),config:r.object({input_fields:z(r.object({[bs.name]:E({fieldName:bs.name})})),output_fields:R(r.object({[ys.name]:k({fieldName:ys.name})}))}).optional()}),Ss=e=>V(K(bs,e)),Cs={"company-newssummary-domain-v1-pipe0":{allowManagedConnection:!0,credits:{default:2},mode:`always`,provider:`pipe0`}},ws=class extends U{pipeId=vs;payloadSchema=xs;billableOperations=Cs;payload;constructor(e){super(),this.payload=e}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[`company-newssummary-domain-v1-pipe0`]}getInputRequirement(){return Ss(this.payload.config)}getRawOutputFields(){return{[ys.name]:this.catalogOutput(ys)}}getConnectionsRequirements(){return[{provider:`parallel`,rateLimitRatio:4,rateLimitOperation:`parallel_search_base`,allowManagedConnection:!0},{provider:`gemini`,rateLimitRatio:1,rateLimitOperation:`gemini_35_flash`,allowManagedConnection:!0}]}},Ts=xs,Es={pipeId:vs,basePipe:W(vs),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(vs),billableOperations:Cs,allowedUserConnectionProviders:[],managedProviders:[`pipe0`],deprecatedProviders:[],defaultInputRequirement:Ss(null),defaultPayload:{pipe_id:vs,run_if:null,connector:null,config:{input_fields:{company_domain:{alias:``}},output_fields:{company_news_summary:{alias:``,enabled:!0}}}}},Ds=_(`company_domain`),Os=_(`company_profile_url`),ks=_(`company_description`),As=_(`company_industry`),js=_(`company_region`),Ms=_(`headcount`),Ns=_(`estimated_revenue`),Ps=_(`founded_year`),Fs=_(`company_name`),Is=`company:overview@3`,Ls=r.object({pipe_id:r.literal(Is),run_if:S(),connector:T(),config:r.object({input_fields:z(r.object({[Ds.name]:E({fieldName:Ds.name}),[Os.name]:E({fieldName:Os.name})})),output_fields:R(r.object({[ks.name]:k({fieldName:ks.name}),[As.name]:k({fieldName:As.name}),[js.name]:k({fieldName:js.name}),[Ms.name]:k({fieldName:Ms.name}),[Ns.name]:k({fieldName:Ns.name}),[Ps.name]:k({fieldName:Ps.name}),[Fs.name]:k({fieldName:Fs.name})}))}).optional()}),Rs=e=>H(K(Ds,e),K(Os,e)),zs={"company-overview-v3-pipe0":{provider:`pipe0`,allowManagedConnection:!0,credits:{default:1,level1:{credits:.5,weight:1}},mode:`always`}},Bs=class extends U{pipeId=Is;payloadSchema=Ls;billableOperations=zs;payload;constructor(e){super(),this.payload=e}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[`company-overview-v3-pipe0`]}getInputRequirement(){return Rs(this.payload.config)}getRawOutputFields(){return{[ks.name]:this.catalogOutput(ks),[As.name]:this.catalogOutput(As),[js.name]:this.catalogOutput(js),[Ms.name]:this.catalogOutput(Ms),[Ns.name]:this.catalogOutput(Ns),[Ps.name]:this.catalogOutput(Ps),[Fs.name]:this.catalogOutput(Fs)}}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}]}},Vs=Ls,Hs={pipeId:Is,basePipe:W(Is),inputFieldMode:`static`,outputFieldMode:`static`,label:`Company overview`,executionMode:`mix`,categories:[`company_data`],lifecycle:null,description:`Business description, industry, and financial information.`,docPath:G(Is),tags:[B.WEBSITE,B.LINKEDIN,B.FINANCIAL_DATA],allowedUserConnectionProviders:[],managedProviders:[`pipe0`],deprecatedProviders:[],billableOperations:zs,defaultInputRequirement:Rs(null),defaultPayload:{pipe_id:Is,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}}}}},Us=_(`company_domain`),Ws=_(`technology_list`),Gs=_(`spending_trend`),Ks=_(`technology_match_builtwith`),qs=`company:techstack:builtwith@2`,Js=r.object({pipe_id:r.literal(qs),connector:w(),run_if:S(),config:r.object({input_fields:z(r.object({[Us.name]:E({fieldName:Us.name})})),output_fields:R(r.object({[Ws.name]:k({fieldName:Ws.name}),[Ks.name]:k({fieldName:Ks.name}),[Gs.name]:k({fieldName:Gs.name})}))}).optional()}),Ys=e=>V(K(Us,e)),Xs={"company-techstack-builtwith-v2-builtwith":{provider:`builtwith`,allowManagedConnection:!0,credits:{default:2},mode:`always`}},Zs=class extends U{pipeId=qs;payload;payloadSchema=Js;billableOperations=Xs;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`builtwith`]}estimateBillableOperations(){return[`company-techstack-builtwith-v2-builtwith`]}getInputRequirement(){return Ys(this.payload.config)}getRawOutputFields(){return{[Ws.name]:this.catalogOutput(Ws),[Ks.name]:this.catalogOutput(Ks),[Gs.name]:this.catalogOutput(Gs)}}getConnectionsRequirements(){return[{provider:`builtwith`,rateLimitRatio:1,rateLimitOperation:`builtwith_generic`,allowManagedConnection:!0}]}},Qs=Js,$s={pipeId:qs,basePipe:W(qs),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(qs),billableOperations:Xs,defaultInputRequirement:Ys(null),defaultPayload:{pipe_id:qs,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}}}}},ec={MissingSecretError:class extends Error{constructor({providerName:e}){super(`Missing secret for ${e}`)}},HttpError:class extends Error{constructor({msg:e}){super(e)}}},tc=`contact:create:resend@1`,nc={"contact-create-resend-v1-resend":{allowManagedConnection:!1,provider:`resend`,credits:null,mode:null}},rc=_(`email`),ic=_(`name`),ac=_(`resend_contact_id`),oc=[{label:`Demo subscribers`,value:`sandbox-segment-1`},{label:`Demo product updates`,value:`sandbox-segment-2`}],sc=r.object({pipe_id:r.literal(tc),connector:Zi(),run_if:S(),config:r.object({segment_id:_a({sectionKey:`general`,required:!0,label:`Segment`,groupPath:`config.general`,path:`config.segment_id`,info:``,enabledIf:hn(`resend`),optionsDef:{requires:{connection:`resend`},options:async({query:e,secret:t,environment:n})=>{if(n===`sandbox`)return oc;if(!t)throw new ec.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 ec.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({[ic.name]:E({fieldName:ic.name}),[rc.name]:E({fieldName:rc.name})})),output_fields:R(r.object({[ac.name]:k({fieldName:ac.name})}))})}),cc=e=>Ma(V(K(rc,e)),V(K(ic,e))),lc=class extends U{pipeId=tc;payload;payloadSchema=sc;billableOperations=nc;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`resend`]}estimateBillableOperations(){return[`contact-create-resend-v1-resend`]}getInputRequirement(){return cc(this.payload.config)}getRawOutputFields(){return{[ac.name]:this.catalogOutput(ac)}}getConnectionsRequirements(){return[{provider:`resend`,rateLimitRatio:1,rateLimitOperation:`resend_generic`,allowManagedConnection:!1}]}},uc=sc,dc={pipeId:tc,basePipe:W(tc),label:`Create Contact`,executionMode:`single`,categories:[`actions`],lifecycle:null,description:`Create a contact inside a Resend audience.`,tags:[B.EMAIL],docPath:G(tc),billableOperations:nc,inputFieldMode:`static`,outputFieldMode:`static`,allowedUserConnectionProviders:[`resend`],defaultInputRequirement:cc(null),managedProviders:[],deprecatedProviders:[],defaultPayload:{pipe_id:tc,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}}}}},fc=`company:funding:leadmagic@1`,pc=_(`company_name`),mc=_(`company_website_url`),hc=_(`funding_history`),gc=_(`funding_total_usd`),_c=_(`leadmagic_competitor_list`),vc=_(`leadmagic_acquisition_history`),yc=_(`leadmagic_company_news_list`),bc=r.object({pipe_id:r.literal(fc),connector:w(),run_if:S(),config:r.object({input_fields:z(r.object({[pc.name]:E({fieldName:pc.name}),[mc.name]:E({fieldName:mc.name})})),output_fields:R(r.object({[hc.name]:k({fieldName:hc.name}),[gc.name]:k({fieldName:gc.name}),[_c.name]:k({fieldName:_c.name}),[vc.name]:k({fieldName:vc.name}),[yc.name]:k({fieldName:yc.name})}))}).optional()}),xc=e=>H(K(pc,e),K(mc,e)),Sc={"company-funding-leadmagic-v1-leadmagic":{provider:`leadmagic`,allowManagedConnection:!0,credits:{default:2},mode:`onSuccess`}},Cc=class extends U{pipeId=fc;payload;payloadSchema=bc;billableOperations=Sc;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`leadmagic`]}estimateBillableOperations(){return[`company-funding-leadmagic-v1-leadmagic`]}getInputRequirement(){return xc(this.payload.config)}getRawOutputFields(){return{[hc.name]:this.catalogOutput(hc),[gc.name]:this.catalogOutput(gc)}}getConnectionsRequirements(){return[{provider:`leadmagic`,rateLimitRatio:1,rateLimitOperation:`leadmagic_company_funding`,allowManagedConnection:!0}]}},wc=bc,Tc={pipeId:fc,basePipe:W(fc),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(fc),billableOperations:Sc,inputFieldMode:`static`,outputFieldMode:`static`,allowedUserConnectionProviders:[`leadmagic`],managedProviders:[`leadmagic`],deprecatedProviders:[],defaultInputRequirement:xc(null),defaultPayload:{pipe_id:fc,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:``}}}}},Ec=_(`company_name`),Dc=_(`company_social_url`),Oc=_(`company_website_url`),kc=_(`cleaned_company_name`),Ac=`company:identity@1`,jc=r.object({pipe_id:r.literal(Ac),run_if:S(),connector:T(),config:r.object({input_fields:z(r.object({[Ec.name]:E({fieldName:Ec.name})})),output_fields:R(r.object({[Dc.name]:k({fieldName:Dc.name}),[kc.name]:k({fieldName:kc.name}),[Oc.name]:k({fieldName:Oc.name})}))}).optional()}),Mc=e=>V(K(Ec,e)),Nc={"company-identity-v1-pipe0":{allowManagedConnection:!0,credits:{default:.3},mode:`always`,provider:`pipe0`}},Pc=class extends U{pipeId=Ac;payload;payloadSchema=jc;billableOperations=Nc;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[`company-identity-v1-pipe0`]}getInputRequirement(){return Mc(this.payload.config)}getRawOutputFields(){return{[Dc.name]:this.catalogOutput(Dc),[Oc.name]:this.catalogOutput(Oc),[kc.name]:this.catalogOutput(kc)}}getConnectionsRequirements(){return[{provider:`gemini`,rateLimitRatio:1,rateLimitOperation:`gemini_35_flash`,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}]}},Fc=jc,Ic={pipeId:Ac,inputFieldMode:`static`,outputFieldMode:`static`,basePipe:W(Ac),label:`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:Nc,allowedUserConnectionProviders:[],managedProviders:[`pipe0`],deprecatedProviders:[],defaultInputRequirement:Mc(null),defaultPayload:{pipe_id:Ac,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}}}}},Lc=_(`company_name`),Rc=_(`company_profile_url`),zc=_(`company_website_url`),Bc=_(`cleaned_company_name`),Vc=`company:identity@2`,Hc=r.object({pipe_id:r.literal(Vc),run_if:S(),connector:T(),config:r.object({input_fields:z(r.object({[Lc.name]:E({fieldName:Lc.name})})),output_fields:R(r.object({[Rc.name]:k({fieldName:Rc.name}),[Bc.name]:k({fieldName:Bc.name}),[zc.name]:k({fieldName:zc.name})}))}).optional()}),Uc=e=>V(K(Lc,e)),Wc={"company-identity-v2-pipe0":{allowManagedConnection:!0,credits:{default:.3},mode:`always`,provider:`pipe0`}},Gc=class extends U{pipeId=Vc;payload;payloadSchema=Hc;billableOperations=Wc;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[`company-identity-v2-pipe0`]}getInputRequirement(){return Uc(this.payload.config)}getRawOutputFields(){return{[Rc.name]:this.catalogOutput(Rc),[zc.name]:this.catalogOutput(zc),[Bc.name]:this.catalogOutput(Bc)}}getConnectionsRequirements(){return[{provider:`gemini`,rateLimitRatio:1,rateLimitOperation:`gemini_35_flash`,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}]}},Kc=Hc,qc={pipeId:Vc,inputFieldMode:`static`,outputFieldMode:`static`,basePipe:W(Vc),label:`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(Vc),billableOperations:Wc,allowedUserConnectionProviders:[],managedProviders:[`pipe0`],deprecatedProviders:[],defaultInputRequirement:Uc(null),defaultPayload:{pipe_id:Vc,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}}}}},Jc=_(`company_website_url`),Yc=_(`companyenrich_matches`),Xc=`company:lookalikes:companyenrich@1`,Zc=r.object({pipe_id:r.literal(Xc),run_if:S(),connector:w(),config:r.object({limit:ma({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({[Jc.name]:E({fieldName:Jc.name})})),output_fields:R(r.object({[Yc.name]:k({fieldName:Yc.name})}))}).optional()}),Qc=e=>V(K(Jc,e)),$c={"company-lookalikes-companyenrich-v1-companyenrich":{allowManagedConnection:!0,credits:{default:.2},mode:`onSuccess`,note:`One billing event per result.`,provider:`companyenrich`}},el=class extends U{pipeId=Xc;payload;payloadSchema=Zc;billableOperations=$c;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`companyenrich`]}estimateBillableOperations(){return[,,,,,].fill(`lookalikes-companyenrich`)}getInputRequirement(){return Qc(this.payload.config)}getRawOutputFields(){return{[Yc.name]:this.catalogOutput(Yc)}}getConnectionsRequirements(){return[{provider:`companyenrich`,rateLimitRatio:1,rateLimitOperation:`company_enrich_generic`,allowManagedConnection:!0}]}},tl=Zc,nl={pipeId:Xc,inputFieldMode:`static`,outputFieldMode:`static`,basePipe:W(Xc),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(Xc),billableOperations:$c,allowedUserConnectionProviders:[`companyenrich`],managedProviders:[`companyenrich`],deprecatedProviders:[],defaultInputRequirement:Qc(null),defaultPayload:{pipe_id:Xc,connector:null,run_if:null,config:{limit:20,input_fields:{company_website_url:{alias:``}},output_fields:{companyenrich_matches:{alias:``,enabled:!0}}}}},rl=_(`company_website_url`),il=_(`crustdata_companyenrich_match`),al=`company:match:crustdata@1`,ol=r.object({pipe_id:r.literal(al),run_if:S(),connector:w(),config:r.object({input_fields:z(r.object({[rl.name]:E({fieldName:rl.name})})),output_fields:R(r.object({[il.name]:k({fieldName:il.name})}))}).optional()}),sl=e=>V(K(rl,e)),cl={"company-match-crustdata-v1-crustdata":{allowManagedConnection:!0,credits:{default:2},mode:`onSuccess`,provider:`crustdata`}},ll=class extends U{pipeId=al;payload;payloadSchema=ol;billableOperations=cl;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`crustdata`]}estimateBillableOperations(){return[`company-match-crustdata-v1-crustdata`]}getInputRequirement(){return sl(this.payload.config)}getRawOutputFields(){return{[il.name]:this.catalogOutput(il)}}getConnectionsRequirements(){return[{provider:`crustdata`,rateLimitRatio:1,rateLimitOperation:`crustdata_company_enrich`,allowManagedConnection:!0}]}},ul=ol,dl={pipeId:al,inputFieldMode:`static`,outputFieldMode:`static`,basePipe:W(al),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(al),billableOperations:cl,allowedUserConnectionProviders:[`crustdata`],managedProviders:[`crustdata`],deprecatedProviders:[],defaultInputRequirement:sl(null),defaultPayload:{pipe_id:al,connector:null,run_if:null,config:{input_fields:{company_website_url:{alias:``}},output_fields:{crustdata_companyenrich_match:{alias:``,enabled:!0}}}}},fl=_(`company_website_url`),pl=_(`company_name`),ml=_(`company_profile_url`),hl=_(`logodev_describe_match`),gl=_(`logo_url`),_l=`company:match:logodev@1`,vl=r.object({pipe_id:r.literal(_l),run_if:S(),connector:w(),config:r.object({input_fields:z(r.object({[fl.name]:E({fieldName:fl.name})})),output_fields:R(r.object({[ml.name]:k({fieldName:ml.name}),[gl.name]:k({fieldName:gl.name}),[pl.name]:k({fieldName:pl.name}),[hl.name]:k({fieldName:hl.name})}))}).optional()}),yl=e=>V(K(fl,e)),bl={"company-match-logodev-v1-logodev":{allowManagedConnection:!0,credits:{default:.1},mode:`onSuccess`,provider:`logodev`}},xl=class extends U{pipeId=_l;payload;payloadSchema=vl;billableOperations=bl;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`logodev`]}estimateBillableOperations(){return[`company-match-logodev-v1-logodev`]}getInputRequirement(){return yl(this.payload.config)}getRawOutputFields(){return{[ml.name]:this.catalogOutput(ml),[pl.name]:this.catalogOutput(pl),[gl.name]:this.catalogOutput(gl),[hl.name]:this.catalogOutput(hl)}}getConnectionsRequirements(){return[{provider:`logodev`,rateLimitRatio:1,rateLimitOperation:`logodev_describe`,allowManagedConnection:!0}]}},Sl=vl,Cl={pipeId:_l,inputFieldMode:`static`,outputFieldMode:`static`,basePipe:W(_l),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(_l),billableOperations:bl,allowedUserConnectionProviders:[`logodev`],managedProviders:[`logodev`],deprecatedProviders:[],defaultInputRequirement:yl(null),defaultPayload:{pipe_id:_l,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}}}}},wl=`company:newssummary:website@1`,Tl=_(`company_news_summary`),El=_(`company_website_url`),Dl=r.object({pipe_id:r.literal(wl),run_if:S(),connector:w(),config:r.object({input_fields:z(r.object({[El.name]:E({fieldName:El.name})})),output_fields:R(r.object({[Tl.name]:k({fieldName:Tl.name})}))}).optional()}),Ol=e=>V(K(El,e)),kl={"company-newssummary-website-v1-pipe0":{allowManagedConnection:!0,credits:{default:1},mode:`always`,provider:`pipe0`}},Al=class extends U{pipeId=wl;payloadSchema=Dl;billableOperations=kl;payload;constructor(e){super(),this.payload=e}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[`company-newssummary-website-v1-pipe0`]}getInputRequirement(){return Ol(this.payload.config)}getRawOutputFields(){return{[Tl.name]:this.catalogOutput(Tl)}}getConnectionsRequirements(){return[{provider:`perplexity`,rateLimitRatio:1,rateLimitOperation:`perplexity_generic`,allowManagedConnection:!0}]}},jl=Dl,Ml={pipeId:wl,basePipe:W(wl),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(wl),billableOperations:kl,allowedUserConnectionProviders:[],managedProviders:[`pipe0`],deprecatedProviders:[],defaultInputRequirement:Ol(null),defaultPayload:{pipe_id:wl,run_if:null,connector:null,config:{input_fields:{company_website_url:{alias:``}},output_fields:{company_news_summary:{alias:``,enabled:!0}}}}},Nl=_(`company_website_url`),Pl=_(`company_social_url`),Fl=_(`company_description`),Il=_(`company_industry`),Ll=_(`company_region`),Rl=_(`headcount`),zl=_(`estimated_revenue`),Bl=_(`founded_year`),Vl=`company:overview@1`,Hl=r.object({pipe_id:r.literal(Vl),run_if:S(),connector:T(),config:r.object({input_fields:z(r.object({[Nl.name]:E({fieldName:Nl.name}),[Pl.name]:E({fieldName:Pl.name})})),output_fields:R(r.object({[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(Nl,e),K(Pl,e)),Wl={"company-overview-v1-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-v1-pipe0`]}getInputRequirement(){return Ul(this.payload.config)}getRawOutputFields(){return{[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: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:Wl,defaultInputRequirement:Ul(null),defaultPayload:{pipe_id:Vl,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}}}}},Jl=_(`company_website_url`),Yl=_(`company_profile_url`),Xl=_(`company_description`),Zl=_(`company_industry`),Ql=_(`company_region`),$l=_(`headcount`),eu=_(`estimated_revenue`),tu=_(`founded_year`),nu=_(`company_name`),ru=`company:overview@2`,iu=r.object({pipe_id:r.literal(ru),run_if:S(),connector:T(),config:r.object({input_fields:z(r.object({[Jl.name]:E({fieldName:Jl.name}),[Yl.name]:E({fieldName:Yl.name})})),output_fields:R(r.object({[Xl.name]:k({fieldName:Xl.name}),[Zl.name]:k({fieldName:Zl.name}),[Ql.name]:k({fieldName:Ql.name}),[$l.name]:k({fieldName:$l.name}),[eu.name]:k({fieldName:eu.name}),[tu.name]:k({fieldName:tu.name}),[nu.name]:k({fieldName:nu.name})}))}).optional()}),au=e=>H(K(Jl,e),K(Yl,e)),ou={"company-overview-v2-pipe0":{provider:`pipe0`,allowManagedConnection:!0,credits:{default:1},mode:`always`}},su=class extends U{pipeId=ru;payloadSchema=iu;billableOperations=ou;payload;constructor(e){super(),this.payload=e}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[`company-overview-v2-pipe0`]}getInputRequirement(){return au(this.payload.config)}getRawOutputFields(){return{[Xl.name]:this.catalogOutput(Xl),[Zl.name]:this.catalogOutput(Zl),[Ql.name]:this.catalogOutput(Ql),[$l.name]:this.catalogOutput($l),[eu.name]:this.catalogOutput(eu),[tu.name]:this.catalogOutput(tu),[nu.name]:this.catalogOutput(nu)}}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}]}},cu=iu,lu={pipeId:ru,basePipe:W(ru),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(ru),tags:[B.WEBSITE,B.LINKEDIN,B.FINANCIAL_DATA],allowedUserConnectionProviders:[],managedProviders:[`pipe0`],deprecatedProviders:[],billableOperations:ou,defaultInputRequirement:au(null),defaultPayload:{pipe_id:ru,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}}}}},uu=_(`company_website_url`),du=_(`technology_list`),fu=_(`spending_trend`),pu=_(`technology_match_builtwith`),mu=`company:techstack:builtwith@1`,hu=r.object({pipe_id:r.literal(mu),connector:w(),run_if:S(),config:r.object({input_fields:z(r.object({[uu.name]:E({fieldName:uu.name})})),output_fields:R(r.object({[du.name]:k({fieldName:du.name}),[pu.name]:k({fieldName:pu.name}),[fu.name]:k({fieldName:fu.name})}))}).optional()}),gu=e=>V(K(uu,e)),_u={"company-techstack-builtwith-v1-builtwith":{provider:`builtwith`,allowManagedConnection:!0,credits:{default:2},mode:`always`}},vu=class extends U{pipeId=mu;payload;payloadSchema=hu;billableOperations=_u;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`builtwith`]}estimateBillableOperations(){return[`company-techstack-builtwith-v1-builtwith`]}getInputRequirement(){return gu(this.payload.config)}getRawOutputFields(){return{[du.name]:this.catalogOutput(du),[pu.name]:this.catalogOutput(pu),[fu.name]:this.catalogOutput(fu)}}getConnectionsRequirements(){return[{provider:`builtwith`,rateLimitRatio:1,rateLimitOperation:`builtwith_generic`,allowManagedConnection:!0}]}},yu=hu,bu={pipeId:mu,basePipe:W(mu),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(mu),billableOperations:_u,defaultInputRequirement:gu(null),defaultPayload:{pipe_id:mu,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}}}}},xu=`company:websiteurl:email@1`,Su=_(`company_website_url`),Cu=_(`email`),wu=r.object({pipe_id:r.literal(xu),run_if:S(),connector:T(),config:r.object({input_fields:z(r.object({[Cu.name]:E({fieldName:Cu.name})})),output_fields:R(r.object({[Su.name]:k({fieldName:Su.name})}))}).optional()}),Tu=e=>V(K(Cu,e)),Eu={"company-websiteurl-email-v1-pipe0":{credits:{default:0},allowManagedConnection:!0,mode:`always`,provider:`pipe0`}},Du=class extends U{pipeId=xu;payload;payloadSchema=wu;billableOperations=Eu;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[`company-websiteurl-email-v1-pipe0`]}getInputRequirement(){return Tu(this.payload.config)}getRawOutputFields(){return{[Su.name]:this.catalogOutput(Su)}}getConnectionsRequirements(){return[{provider:`pipe0`,rateLimitRatio:1,rateLimitOperation:`pipe0_logic`,allowManagedConnection:!0}]}},Ou=wu,ku={pipeId:xu,basePipe:W(xu),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(xu),allowedUserConnectionProviders:[],managedProviders:[`pipe0`],deprecatedProviders:[],billableOperations:Eu,defaultInputRequirement:Tu(null),defaultPayload:{pipe_id:xu,connector:null,run_if:null,config:{input_fields:{email:{alias:``}},output_fields:{company_website_url:{alias:``,enabled:!0}}}}},Au=`people:email:iswork@1`,ju=_(`is_work_email`),Mu=_(`email`),Nu=r.object({pipe_id:r.literal(Au),run_if:S(),connector:T(),config:r.object({input_fields:z(r.object({[Mu.name]:E({fieldName:Mu.name})})),output_fields:R(r.object({[ju.name]:k({fieldName:ju.name})}))}).optional()}),Pu=e=>V(K(Mu,e)),Fu={"people-email-iswork-v1-pipe0":{provider:`pipe0`,allowManagedConnection:!0,credits:{default:0},mode:`always`}},Iu=class extends U{pipeId=Au;payload;payloadSchema=Nu;billableOperations=Fu;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[`people-email-iswork-v1-pipe0`]}getInputRequirement(){return Pu(this.payload.config)}getRawOutputFields(){return{[ju.name]:this.catalogOutput(ju)}}getConnectionsRequirements(){return[{provider:`pipe0`,rateLimitRatio:1,rateLimitOperation:`pipe0_logic`,allowManagedConnection:!0}]}},Lu=Nu,Ru={pipeId:Au,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(Au),billableOperations:Fu,basePipe:W(Au),allowedUserConnectionProviders:[],inputFieldMode:`static`,outputFieldMode:`static`,managedProviders:[`pipe0`],deprecatedProviders:[],defaultInputRequirement:Pu(null),defaultPayload:{pipe_id:Au,run_if:null,connector:null,config:{input_fields:{email:{alias:``}},output_fields:{is_work_email:{alias:``,enabled:!0}}}}},zu=`people:email:validate:zerobounce@1`,Bu=_(`work_email`),Vu=_(`is_email_valid`),Hu=r.object({pipe_id:r.literal(zu),connector:w(),run_if:S(),config:r.object({input_fields:z(r.object({[Bu.name]:E({fieldName:Bu.name})})),output_fields:R(r.object({[Vu.name]:k({fieldName:Vu.name})}))}).optional()}),Uu=e=>V(K(Bu,e)),Wu={"people-email-validate-zerobounce-v1-zerobounce":{provider:`zerobounce`,allowManagedConnection:!0,credits:{default:.3},mode:`always`}},Gu=class extends U{pipeId=zu;payload;payloadSchema=Hu;billableOperations=Wu;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`zerobounce`]}estimateBillableOperations(){return[`people-email-validate-zerobounce-v1-zerobounce`]}getInputRequirement(){return Uu(this.payload.config)}getRawOutputFields(){return{[Vu.name]:this.catalogOutput(Vu)}}getConnectionsRequirements(){return[{provider:`zerobounce`,rateLimitRatio:1,rateLimitOperation:`zerobounce_generic`,allowManagedConnection:!0}]}},Ku=Hu,qu={pipeId:zu,basePipe:W(zu),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:Wu,inputFieldMode:`static`,outputFieldMode:`static`,allowedUserConnectionProviders:[`zerobounce`],managedProviders:[`zerobounce`],deprecatedProviders:[],defaultInputRequirement:Uu(null),defaultPayload:{pipe_id:zu,connector:null,run_if:null,config:{input_fields:{work_email:{alias:``}},output_fields:{is_email_valid:{alias:``,enabled:!0}}}}},Ju=`people:email:validate:zerobounce@2`,Yu=_(`email`),Xu=_(`zerobounce_validation_status`),Zu=_(`zerobounce_validation_match`),Qu=r.object({pipe_id:r.literal(Ju),connector:w(),run_if:S(),config:r.object({input_fields:z(r.object({[Yu.name]:E({fieldName:Yu.name})})),output_fields:R(r.object({[Zu.name]:k({fieldName:Zu.name}),[Xu.name]:k({fieldName:Xu.name})}))}).optional()}),$u=e=>V(K(Yu,e)),ed={"people-email-validate-zerobounce-v2-zerobounce":{provider:`zerobounce`,allowManagedConnection:!0,credits:{default:.3},mode:`always`}},td=class extends U{pipeId=Ju;payload;payloadSchema=Qu;billableOperations=ed;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`zerobounce`]}estimateBillableOperations(){return[`people-email-validate-zerobounce-v2-zerobounce`]}getInputRequirement(){return $u(this.payload.config)}getRawOutputFields(){return{[Xu.name]:this.catalogOutput(Xu),[Zu.name]:this.catalogOutput(Zu)}}getConnectionsRequirements(){return[{provider:`zerobounce`,rateLimitRatio:1,rateLimitOperation:`zerobounce_generic`,allowManagedConnection:!0}]}},nd=Qu,rd={pipeId:Ju,basePipe:W(Ju),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(Ju),billableOperations:ed,inputFieldMode:`static`,outputFieldMode:`static`,allowedUserConnectionProviders:[`zerobounce`],managedProviders:[`zerobounce`],deprecatedProviders:[],defaultInputRequirement:$u(null),defaultPayload:{pipe_id:Ju,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 id(e){return(e.widgets||{}).display_value?.label}function ad(e){console.dir(e,{depth:100})}function od(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 sd(e){if(typeof e!=`object`||!e||Array.isArray(e))return e;let t={};return Object.keys(e).sort().forEach(n=>{t[n]=sd(e[n])}),t}const cd={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 ld=`people:identity:email:waterfall@1`,ud=_(`email`),dd=_(`company_website_url`),fd=_(`name`),pd=_(`job_title`),md=_(`profile_url`),hd=_(`company_profile_url`),gd=_(`company_name`),_d=[`findymail`,`hunter`,`crustdata`],vd=[{provider:`findymail`},{provider:`hunter`},{provider:`crustdata`}],yd=r.object({pipe_id:r.literal(ld),connector:w(),run_if:S(),config:r.object({providers:D({availableProviders:_d,defaultProviders:vd,sectionKey:`general`}),input_fields:z(r.object({[ud.name]:E({fieldName:ud.name})})),output_fields:R(r.object({[fd.name]:k({fieldName:fd.name}),[md.name]:k({fieldName:md.name}),[pd.name]:k({fieldName:pd.name}),[dd.name]:k({fieldName:dd.name}),[gd.name]:k({fieldName:gd.name}),[hd.name]:k({fieldName:hd.name})}))}).optional()}),bd=e=>V(K(ud,e)),xd={"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`}},Sd=class extends U{pipeId=ld;payload;payloadSchema=yd;billableOperations=xd;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 bd(this.payload.config)}getRawOutputFields(){return{[fd.name]:this.catalogOutput(fd,{isPrimaryOutput:!0}),[md.name]:this.catalogOutput(md,{isPrimaryOutput:!0}),[pd.name]:this.catalogOutput(pd,{isPrimaryOutput:!0}),[gd.name]:this.catalogOutput(gd,{isPrimaryOutput:!0}),[hd.name]:this.catalogOutput(hd,{isPrimaryOutput:!0}),[dd.name]:this.catalogOutput(dd,{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}))}},Cd=yd,wd={pipeId:ld,basePipe:W(ld),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(ld),managedProviders:_d,deprecatedProviders:[],allowedUserConnectionProviders:_d,inputFieldMode:`static`,outputFieldMode:`static`,billableOperations:xd,defaultInputRequirement:bd(null),defaultPayload:{pipe_id:ld,connector:null,run_if:null,config:{providers:vd,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}}}}},Td=`people:match:role:waterfall@1`,Ed=_(`company_website_url`),Dd=_(`role_finder_match`),Od=[`leadmagic`],kd=[{provider:`leadmagic`}],Ad=r.object({pipe_id:r.literal(Td),run_if:S(),connector:w(),config:r.object({providers:D({sectionKey:`general`,defaultProviders:kd,availableProviders:Od}),roles:na({sectionKey:`general`,groupPath:`config.general`,label:`Roles`,path:`config.roles`,info:`Company roles to include`,maxItems:3,minItems:1}),input_fields:z(r.object({[Ed.name]:E({fieldName:Ed.name})})),output_fields:R(r.object({[Dd.name]:k({fieldName:Dd.name})}))})}),jd=e=>H(K(Ed,e)),Md={"people-match-role-waterfall-v1-leadmagic":{provider:`leadmagic`,allowManagedConnection:!0,credits:{default:1},mode:`onSuccess`}},Nd=class extends U{pipeId=Td;payload;payloadSchema=Ad;billableOperations=Md;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 jd(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}))}},Pd=Ad,Fd={pipeId:Td,basePipe:W(Td),managedProviders:Od,deprecatedProviders:[],allowedUserConnectionProviders:Od,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(Td),billableOperations:Md,inputFieldMode:`static`,outputFieldMode:`static`,defaultInputRequirement:jd(null),defaultPayload:{pipe_id:Td,run_if:null,connector:null,config:{roles:[],providers:kd,input_fields:{company_website_url:{alias:``}},output_fields:{role_finder_match:{alias:``,enabled:!0}}}}},Id=`people:mobilenumber:professionalprofile:waterfall@1`,Ld=_(`professional_profile_url`),Rd=_(`mobile_number`),zd=[`leadmagic`,`prospeo`],Bd=[{provider:`leadmagic`},{provider:`prospeo`}],Vd=r.object({pipe_id:r.literal(Id),run_if:S(),connector:w(),config:r.object({providers:D({sectionKey:`general`,defaultProviders:Bd,availableProviders:zd}),input_fields:z(r.object({[Ld.name]:E({fieldName:Ld.name})})),output_fields:R(r.object({[Rd.name]:k({fieldName:Rd.name})}))}).optional()}),Hd=e=>V(K(Ld,e)),Ud={"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`}},Wd=class extends U{pipeId=Id;payload;payloadSchema=Vd;billableOperations=Ud;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{[Rd.name]:this.catalogOutput(Rd)}}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}))}},Gd=Vd,Kd={pipeId:Id,basePipe:W(Id),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:Ud,defaultInputRequirement:Hd(null),inputFieldMode:`static`,outputFieldMode:`static`,managedProviders:zd,deprecatedProviders:[],allowedUserConnectionProviders:zd,defaultPayload:{pipe_id:Id,connector:null,run_if:null,config:{providers:Bd,input_fields:{professional_profile_url:{alias:``}},output_fields:{mobile_number:{alias:``,enabled:!0}}}}},qd=`people:mobilenumber:workemail:waterfall@1`,Jd=_(`work_email`),Yd=_(`mobile_number`),Xd=[`leadmagic`],Zd=[{provider:`leadmagic`}],Qd=r.object({pipe_id:r.literal(qd),run_if:S(),connector:w(),config:r.object({providers:D({sectionKey:`general`,availableProviders:Xd,defaultProviders:Zd}),input_fields:z(r.object({[Jd.name]:E({fieldName:Jd.name})})),output_fields:R(r.object({[Yd.name]:k({fieldName:Yd.name})}))}).optional()}),$d=e=>V(K(Jd,e)),ef={"people-mobilenumber-workemail-waterfall-v1-leadmagic":{provider:`leadmagic`,allowManagedConnection:!0,credits:{default:2},mode:`onSuccess`}},tf=class extends U{pipeId=qd;payload;payloadSchema=Qd;billableOperations=ef;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 $d(this.payload.config)}getRawOutputFields(){return{[Yd.name]:this.catalogOutput(Yd)}}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}))}},nf=Qd,rf={pipeId:qd,basePipe:W(qd),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:ef,defaultInputRequirement:$d(null),inputFieldMode:`static`,outputFieldMode:`static`,allowedUserConnectionProviders:Xd,managedProviders:Xd,deprecatedProviders:[],defaultPayload:{pipe_id:qd,connector:null,run_if:null,config:{providers:Zd,input_fields:{work_email:{alias:``}},output_fields:{mobile_number:{alias:``,enabled:!0}}}}},af=`people:name:split@1`,of=_(`name`),sf=_(`first_name`),cf=_(`last_name`),lf=r.object({pipe_id:r.literal(af),connector:T(),run_if:S(),config:r.object({input_fields:z(r.object({[of.name]:E({fieldName:of.name})})),output_fields:R(r.object({[sf.name]:k({fieldName:sf.name}),[cf.name]:k({fieldName:cf.name})}))}).optional()}),uf=e=>V(K(of,e)),df={"people-name-split-v1-pipe0":{provider:`pipe0`,allowManagedConnection:!0,credits:{default:0},mode:`always`}},ff=class extends U{pipeId=af;payload;payloadSchema=lf;billableOperations=df;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[`people-name-split-v1-pipe0`]}getInputRequirement(){return uf(this.payload.config)}getRawOutputFields(){return{[sf.name]:this.catalogOutput(sf),[cf.name]:this.catalogOutput(cf)}}getConnectionsRequirements(){return[{provider:`pipe0`,rateLimitRatio:1,rateLimitOperation:`pipe0_logic`,allowManagedConnection:!0}]}},pf=lf,mf={pipeId:af,basePipe:W(af),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(af),billableOperations:df,inputFieldMode:`static`,outputFieldMode:`static`,defaultInputRequirement:uf(null),allowedUserConnectionProviders:[],managedProviders:[`pipe0`],deprecatedProviders:[],defaultPayload:{pipe_id:af,run_if:null,connector:void 0,config:{input_fields:{name:{alias:``}},output_fields:{first_name:{alias:``,enabled:!0},last_name:{alias:``,enabled:!0}}}}},hf=`people:personalemail:profile:waterfall@1`,gf=_(`profile_url`),_f=_(`personal_email`),vf=_(`alternate_personal_emails`),yf=[`clado`,`leadmagic`,`mixrank`],bf=[{provider:`leadmagic`},{provider:`mixrank`}],xf=r.object({pipe_id:r.literal(hf),run_if:S(),connector:w(),config:r.object({providers:D({sectionKey:`general`,availableProviders:yf,defaultProviders:bf}),input_fields:z(r.object({[gf.name]:E({fieldName:gf.name})})),output_fields:R(r.object({[_f.name]:k({fieldName:_f.name}),[vf.name]:k({fieldName:vf.name})}))}).optional()}),Sf=e=>V(K(gf,e)),Cf={"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`}},wf=class extends U{pipeId=hf;payload;payloadSchema=xf;billableOperations=Cf;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 Sf(this.payload.config)}getRawOutputFields(){return{[_f.name]:this.catalogOutput(_f,{isPrimaryOutput:!0}),[vf.name]:this.catalogOutput(vf)}}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}))}},Tf=xf,Ef={pipeId:hf,basePipe:W(hf),allowedUserConnectionProviders:yf,managedProviders:yf,deprecatedProviders:[`clado`],label:`Personal email from LinkedIn`,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(hf),billableOperations:Cf,defaultInputRequirement:Sf(null),inputFieldMode:`static`,outputFieldMode:`static`,defaultPayload:{pipe_id:hf,connector:null,run_if:null,config:{providers:bf,input_fields:{profile_url:{alias:``}},output_fields:{personal_email:{alias:``,enabled:!0},alternate_personal_emails:{alias:``,enabled:!0}}}}},Df=`people:phone:profile:waterfall@1`,Of=_(`profile_url`),kf=_(`mobile`),Af=[`leadmagic`,`prospeo`,`amplemarket`,`findymail`,`clado`],jf=[{provider:`leadmagic`},{provider:`prospeo`},{provider:`amplemarket`},{provider:`findymail`}],Mf=r.object({pipe_id:r.literal(Df),run_if:S(),connector:w(),config:r.object({providers:D({sectionKey:`general`,defaultProviders:jf,availableProviders:Af}),input_fields:z(r.object({[Of.name]:E({fieldName:Of.name})})),output_fields:R(r.object({[kf.name]:k({fieldName:kf.name})}))}).optional()}),Nf=e=>V(K(Of,e)),Pf={"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`}},Ff=class extends U{pipeId=Df;payload;payloadSchema=Mf;billableOperations=Pf;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 Nf(this.payload.config)}getRawOutputFields(){return{[kf.name]:this.catalogOutput(kf,{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}))}},If=Mf,Lf={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:Pf,defaultInputRequirement:Nf(null),inputFieldMode:`static`,outputFieldMode:`static`,managedProviders:Af,allowedUserConnectionProviders:Af,deprecatedProviders:[`clado`],defaultPayload:{pipe_id:Df,connector:null,run_if:null,config:{providers:jf,input_fields:{profile_url:{alias:``}},output_fields:{mobile:{alias:``,enabled:!0}}}}},Rf=`people:phone:workemail:waterfall@1`,zf=_(`work_email`),Bf=_(`mobile`),Vf=[`leadmagic`,`amplemarket`],Hf=[{provider:`leadmagic`},{provider:`amplemarket`}],Uf=r.object({pipe_id:r.literal(Rf),run_if:S(),connector:w(),config:r.object({providers:D({sectionKey:`general`,availableProviders:Vf,defaultProviders:Hf}),input_fields:z(r.object({[zf.name]:E({fieldName:zf.name})})),output_fields:R(r.object({[Bf.name]:k({fieldName:Bf.name})}))}).optional()}),Wf=e=>V(K(zf,e)),Gf={"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`}},Kf=class extends U{pipeId=Rf;payload;payloadSchema=Uf;billableOperations=Gf;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 Wf(this.payload.config)}getRawOutputFields(){return{[Bf.name]:this.catalogOutput(Bf,{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}))}},qf=Uf,Jf={pipeId:Rf,basePipe:W(Rf),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(Rf),billableOperations:Gf,defaultInputRequirement:Wf(null),inputFieldMode:`static`,outputFieldMode:`static`,allowedUserConnectionProviders:Vf,managedProviders:Vf,deprecatedProviders:[],defaultPayload:{pipe_id:Rf,connector:null,run_if:null,config:{providers:Hf,input_fields:{work_email:{alias:``}},output_fields:{mobile:{alias:``,enabled:!0}}}}},Yf=`people:professionalprofile:waterfall@1`,Xf=_(`professional_profile`),Zf=_(`professional_profile_url`),Qf=[`prospeo`,`icypeas`],$f=[{provider:`prospeo`},{provider:`icypeas`}],ep=r.object({pipe_id:r.literal(Yf),run_if:S(),connector:w(),config:r.object({providers:D({sectionKey:`general`,availableProviders:Qf,defaultProviders:$f}),input_fields:z(r.object({[Zf.name]:E({fieldName:Zf.name})})),output_fields:R(r.object({[Xf.name]:k({fieldName:Xf.name})}))}).optional()}),tp=e=>V(K(Zf,e)),np={"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}},rp=class extends U{pipeId=Yf;payload;payloadSchema=ep;billableOperations=np;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 tp(this.payload.config)}getRawOutputFields(){return{[Xf.name]:this.catalogOutput(Xf)}}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}))}},ip=ep,ap={pipeId:Yf,basePipe:W(Yf),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:Qf,deprecatedProviders:[],allowedUserConnectionProviders:Qf,inputFieldMode:`static`,outputFieldMode:`static`,billableOperations:np,defaultInputRequirement:tp(null),defaultPayload:{pipe_id:Yf,run_if:null,connector:null,config:{providers:$f,input_fields:{professional_profile_url:{alias:``}},output_fields:{professional_profile:{alias:``,enabled:!0}}}}},op=`people:professionalprofileurl:email:waterfall@1`,sp=_(`email`),cp=_(`work_email`),lp=_(`professional_profile_url`),up=[`leadmagic`],dp=[{provider:`leadmagic`}],fp=r.object({pipe_id:r.literal(op),run_if:S(),connector:w(),config:r.object({providers:D({sectionKey:`general`,defaultProviders:dp,availableProviders:up}),input_fields:z(r.object({[sp.name]:E({fieldName:sp.name}),[cp.name]:E({fieldName:cp.name})})),output_fields:R(r.object({[lp.name]:k({fieldName:lp.name})}))}).optional()}),pp=e=>H(K(sp,e),K(cp,e)),mp={"people-professionalprofileurl-email-waterfall-v1-leadmagic":{provider:`leadmagic`,allowManagedConnection:!0,credits:{default:3.5},mode:`onSuccess`}},hp=class extends U{pipeId=op;payload;payloadSchema=fp;billableOperations=mp;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 pp(this.payload.config)}getRawOutputFields(){return{[lp.name]:this.catalogOutput(lp)}}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}))}},gp=fp,_p={pipeId:op,basePipe:W(op),managedProviders:up,deprecatedProviders:[],allowedUserConnectionProviders:up,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:mp,inputFieldMode:`static`,outputFieldMode:`static`,defaultInputRequirement:pp(null),defaultPayload:{pipe_id:op,run_if:null,connector:null,config:{providers:dp,input_fields:{email:{alias:``},work_email:{alias:``}},output_fields:{professional_profile_url:{alias:``,enabled:!0}}}}},vp=`people:professionalprofileurl:name@1`,yp=_(`name`),bp=_(`company_name`),xp=_(`location_hint`),Sp=_(`professional_profile_url`),Cp=r.object({pipe_id:r.literal(vp),connector:T(),run_if:S(),config:r.object({input_fields:z(r.object({[yp.name]:E({fieldName:yp.name}),[bp.name]:E({fieldName:bp.name}),[xp.name]:E({fieldName:xp.name})})),output_fields:R(r.object({[Sp.name]:k({fieldName:Sp.name})}))}).optional()}),wp=e=>Ma(V(K(yp,e)),V(K(bp,e)),Na(K(xp,e))),Tp={"people-professionalprofileurl-name-v1-pipe0":{provider:`pipe0`,allowManagedConnection:!0,credits:{default:.6},mode:`always`}},Ep=class extends U{pipeId=vp;payload;payloadSchema=Cp;billableOperations=Tp;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[`people-professionalprofileurl-name-v1-pipe0`]}getInputRequirement(){return wp(this.payload.config)}getRawOutputFields(){return{[Sp.name]:this.catalogOutput(Sp)}}getConnectionsRequirements(){return[{provider:`serper`,rateLimitRatio:1,rateLimitOperation:`serper_search`,allowManagedConnection:!0}]}},Dp=Cp,Op={pipeId:vp,basePipe:W(vp),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:Tp,defaultInputRequirement:wp(null),inputFieldMode:`static`,outputFieldMode:`static`,defaultPayload:{pipe_id:vp,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}}}}},kp=`people:profile:waterfall@1`,Ap=_(`profile`),jp=_(`profile_url`),Mp=[`prospeo`,`icypeas`,`amplemarket`,`clado`],Np=[{provider:`amplemarket`},{provider:`prospeo`},{provider:`icypeas`}],Pp=r.object({pipe_id:r.literal(kp),run_if:S(),connector:w(),config:r.object({providers:D({sectionKey:`general`,availableProviders:Mp,defaultProviders:Np}),input_fields:z(r.object({[jp.name]:E({fieldName:jp.name})})),output_fields:R(r.object({[Ap.name]:k({fieldName:Ap.name})}))}).optional()}),Fp=e=>V(K(jp,e)),Ip={"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}},Lp=class extends U{pipeId=kp;payload;payloadSchema=Pp;billableOperations=Ip;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 Fp(this.payload.config)}getRawOutputFields(){return{[Ap.name]:this.catalogOutput(Ap,{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}))}},Rp=Pp,zp={pipeId:kp,basePipe:W(kp),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(kp),tags:[B.LINKEDIN,B.WATERFALL],managedProviders:Mp,deprecatedProviders:[`clado`],allowedUserConnectionProviders:Mp,inputFieldMode:`static`,outputFieldMode:`static`,billableOperations:Ip,defaultInputRequirement:Fp(null),defaultPayload:{pipe_id:kp,run_if:null,connector:null,config:{providers:Np,input_fields:{profile_url:{alias:``}},output_fields:{profile:{alias:``,enabled:!0}}}}},Bp=_(`work_email`),Vp=_(`crustdata_person_match`),Hp=_(`crustdata_profile_match_score`),Up=`people:profile:workemail:crustdata@1`,Wp=r.object({pipe_id:r.literal(Up),run_if:S(),connector:w(),config:r.object({input_fields:z(r.object({[Bp.name]:E({fieldName:Bp.name})})),output_fields:R(r.object({[Vp.name]:k({fieldName:Vp.name}),[Hp.name]:k({fieldName:Hp.name})}))}).optional()}),Gp=e=>V(K(Bp,e)),Kp={"people-profile-workemail-crustdata-v1-crustdata":{allowManagedConnection:!0,credits:{default:5},mode:`onSuccess`,provider:`crustdata`}},qp=class extends U{pipeId=Up;payload;payloadSchema=Wp;billableOperations=Kp;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`crustdata`]}estimateBillableOperations(){return[`people-profile-workemail-crustdata-v1-crustdata`]}getInputRequirement(){return Gp(this.payload.config)}getRawOutputFields(){return{[Vp.name]:this.catalogOutput(Vp),[Hp.name]:this.catalogOutput(Hp)}}getConnectionsRequirements(){return[{provider:`crustdata`,rateLimitRatio:1,rateLimitOperation:`crustdata_realtime_person_enrich`,allowManagedConnection:!0}]}},Jp=Wp,Yp={pipeId:Up,inputFieldMode:`static`,outputFieldMode:`static`,basePipe:W(Up),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(Up),billableOperations:Kp,allowedUserConnectionProviders:[`crustdata`],managedProviders:[`crustdata`],deprecatedProviders:[],defaultInputRequirement:Gp(null),defaultPayload:{pipe_id:Up,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}}}}},Xp=`people:profileurl:email:waterfall@1`,Zp=_(`email`),Qp=_(`work_email`),$p=_(`profile_url`),em=[`leadmagic`],tm=[{provider:`leadmagic`}],nm=r.object({pipe_id:r.literal(Xp),run_if:S(),connector:w(),config:r.object({providers:D({sectionKey:`general`,defaultProviders:tm,availableProviders:em}),input_fields:z(r.object({[Zp.name]:E({fieldName:Zp.name}),[Qp.name]:E({fieldName:Qp.name})})),output_fields:R(r.object({[$p.name]:k({fieldName:$p.name})}))}).optional()}),rm=e=>H(K(Zp,e),K(Qp,e)),im={"people-profileurl-email-waterfall-v1-leadmagic":{provider:`leadmagic`,allowManagedConnection:!0,credits:{default:3.5},mode:`onSuccess`}},am=class extends U{pipeId=Xp;payload;payloadSchema=nm;billableOperations=im;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 rm(this.payload.config)}getRawOutputFields(){return{[$p.name]:this.catalogOutput($p,{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}))}},om=nm,sm={pipeId:Xp,basePipe:W(Xp),managedProviders:em,deprecatedProviders:[],allowedUserConnectionProviders:em,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(Xp),billableOperations:im,inputFieldMode:`static`,outputFieldMode:`static`,defaultInputRequirement:rm(null),defaultPayload:{pipe_id:Xp,run_if:null,connector:null,config:{providers:tm,input_fields:{email:{alias:``},work_email:{alias:``}},output_fields:{profile_url:{alias:``,enabled:!0}}}}},cm=`people:validate:email:zerobounce@1`,lm=_(`work_email`),um=_(`ip_address`),dm=_(`is_email_valid`),fm=r.object({pipe_id:r.literal(cm),connector:w(),run_if:S(),config:r.object({input_fields:z(r.object({[lm.name]:E({fieldName:lm.name}),[um.name]:E({fieldName:um.name})})),output_fields:R(r.object({[dm.name]:k({fieldName:dm.name})}))}).optional()}),pm=e=>Ma(V(K(lm,e)),Na(K(um,e))),mm={"people-validate-email-zerobounce-v1-zerobounce":{provider:`zerobounce`,allowManagedConnection:!0,credits:{default:.5},mode:`always`}},hm=class extends U{pipeId=cm;payload;payloadSchema=fm;billableOperations=mm;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`zerobounce`]}estimateBillableOperations(){return[`people-validate-email-zerobounce-v1-zerobounce`]}getInputRequirement(){return pm(this.payload.config)}getRawOutputFields(){return{[dm.name]:this.catalogOutput(dm)}}getConnectionsRequirements(){return[{provider:`zerobounce`,rateLimitRatio:1,rateLimitOperation:`zerobounce_generic`,allowManagedConnection:!0}]}},gm=fm,_m={pipeId:cm,basePipe:W(cm),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:mm,inputFieldMode:`static`,outputFieldMode:`static`,allowedUserConnectionProviders:[`zerobounce`],managedProviders:[`zerobounce`],deprecatedProviders:[],defaultInputRequirement:pm(null),defaultPayload:{pipe_id:cm,connector:null,run_if:null,config:{input_fields:{ip_address:{alias:``},work_email:{alias:``}},output_fields:{is_email_valid:{alias:``,enabled:!0}}}}},vm=`people:workemail:profileurl:waterfall@1`,ym=_(`profile_url`),bm=_(`work_email`),xm=_(`email_validation_status`),Sm=[`hunter`,`amplemarket`,`findymail`,`leadmagic`,`crustdata`,`clado`],Cm=[`clado`],wm=[{provider:`hunter`},{provider:`amplemarket`},{provider:`leadmagic`},{provider:`findymail`},{provider:`crustdata`}],Tm=r.object({pipe_id:r.literal(vm),connector:w(),run_if:S(),config:r.object({providers:D({availableProviders:Sm,defaultProviders:wm,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({[ym.name]:E({fieldName:ym.name})})),output_fields:R(r.object({[bm.name]:k({fieldName:bm.name}),[xm.name]:k({fieldName:xm.name})}))}).optional()}),Em=e=>V(K(ym,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`}},Om=class extends U{pipeId=vm;payload;payloadSchema=Tm;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 Em(this.payload.config)}getRawOutputFields(){return{[bm.name]:this.catalogOutput(bm,{isPrimaryOutput:!0}),[xm.name]:this.catalogOutput(xm,{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}))}},km=Tm,Am={pipeId:vm,basePipe:W(vm),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(vm),managedProviders:Sm,allowedUserConnectionProviders:Sm,deprecatedProviders:Cm,inputFieldMode:`static`,outputFieldMode:`static`,billableOperations:Dm,defaultInputRequirement:Em(null),defaultPayload:{pipe_id:vm,connector:null,run_if:null,config:{providers:wm,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}}}}},jm=`people:workemail:waterfall@1`,Mm=_(`name`),Nm=_(`company_website_url`),Pm=_(`company_name`),Fm=_(`work_email`),Im=_(`email_validation_status`),Lm=[`leadmagic`,`prospeo`,`amplemarket`,`hunter`,`icypeas`,`findymail`],Rm=[{provider:`leadmagic`},{provider:`prospeo`},{provider:`amplemarket`},{provider:`hunter`},{provider:`icypeas`},{provider:`findymail`}],zm=r.object({pipe_id:r.literal(jm),connector:w(),run_if:S(),config:r.object({providers:D({availableProviders:Lm,defaultProviders:Rm,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({[Mm.name]:E({fieldName:Mm.name}),[Nm.name]:E({fieldName:Nm.name}),[Pm.name]:E({fieldName:Pm.name})})),output_fields:R(r.object({[Fm.name]:k({fieldName:Fm.name}),[Im.name]:k({fieldName:Im.name})}))}).optional()}),Bm=e=>Ma(V(K(Mm,e)),H(K(Nm,e),K(Pm,e))),Vm={"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`}},Hm=class extends U{pipeId=jm;payload;payloadSchema=zm;billableOperations=Vm;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 Bm(this.payload.config)}getRawOutputFields(){return{[Fm.name]:this.catalogOutput(Fm,{isPrimaryOutput:!0}),[Im.name]:this.catalogOutput(Im,{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}))}},Um=zm,Wm={pipeId:jm,basePipe:W(jm),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(jm),managedProviders:Lm,deprecatedProviders:[],allowedUserConnectionProviders:Lm,inputFieldMode:`static`,outputFieldMode:`static`,billableOperations:Vm,defaultInputRequirement:Bm(null),defaultPayload:{pipe_id:jm,connector:null,run_if:null,config:{providers:Rm,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}}}}},Gm=`email:iswork@1`,Km=_(`is_work_email`),qm=_(`email`),Jm=r.object({pipe_id:r.literal(Gm),run_if:S(),connector:T(),config:r.object({input_fields:z(r.object({[qm.name]:E({fieldName:qm.name})})),output_fields:R(r.object({[Km.name]:k({fieldName:Km.name})}))}).optional()}),Ym=e=>V(K(qm,e)),Xm={"email-iswork-v1-pipe0":{provider:`pipe0`,allowManagedConnection:!0,credits:{default:0},mode:`always`}},Zm=class extends U{pipeId=Gm;payload;payloadSchema=Jm;billableOperations=Xm;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[`email-iswork-v1-pipe0`]}getInputRequirement(){return Ym(this.payload.config)}getRawOutputFields(){return{[Km.name]:this.catalogOutput(Km)}}getConnectionsRequirements(){return[{provider:`pipe0`,rateLimitRatio:1,rateLimitOperation:`pipe0_logic`,allowManagedConnection:!0}]}},Qm=Jm,$m={pipeId:Gm,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(Gm),billableOperations:Xm,basePipe:W(Gm),allowedUserConnectionProviders:[],inputFieldMode:`static`,outputFieldMode:`static`,managedProviders:[`pipe0`],deprecatedProviders:[],defaultInputRequirement:Ym(null),defaultPayload:{pipe_id:Gm,run_if:null,connector:null,config:{input_fields:{email:{alias:``}},output_fields:{is_work_email:{alias:``,enabled:!0}}}}};function eh(e,t){return typeof t==`string`?t:t(e)}function th(e,t){return typeof t==`string`||t===null?t:t(e)}function nh(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:eh(e,a[r].type),format:th(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 rh(e,t){for(let n of e.pipes){let r=n.getOutputFields();if(r[t])return{type:eh(e,r[t].type),format:th(e,r[t].format)}}let n=e.derivedInputFields[t];if(n)return{type:n.type,format:null}}function ih(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=Lr(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=>rh(t,e)?.type||n,format:r};a.push(t.required?V(i):Na(i))}return Ma(...a)}function Y(e){let t=new Set;for(let n of e)if(n)try{let e=Lr(n);for(let n of e.secrets)t.add(n)}catch{}return[...t]}function ah(e){let t=new Set;for(let n of e)if(n)try{let e=Lr(n);for(let n of e.constants)t.add(n)}catch{}return[...t]}const oh=`email:send:gmail@1`,sh=_(`gmail_email_success`),ch=r.object({pipe_id:r.literal(oh),connector:Zi(),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
- โ€ฆ`,inputType:`text`,minLength:1,maxLength:1e6,expectedTagType:`string`,expectedTagFormat:`markdown`,multiline:!0}),output_fields:R(r.object({[nh.name]:k({fieldName:nh.name})}))})}),ih={"email-send-gmail-v1-gmail":{allowManagedConnection:!1,provider:`gmail`,credits:null,mode:null}},ah=class extends U{pipeId=th;payload;payloadSchema=rh;billableOperations=ih;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 eh(this.getTemplatedFields())}getSecretRequirements(){return Y(this.getTemplatedFields())}getConstantRequirements(){return X(this.getTemplatedFields())}getRawOutputFields(){return{[nh.name]:this.catalogOutput(nh)}}getConnectionsRequirements(){return[{provider:`gmail`,rateLimitRatio:1,rateLimitOperation:`gmail_send_email`,allowManagedConnection:!1}]}},oh=rh,sh={pipeId:th,basePipe:W(th),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(th),billableOperations:ih,inputFieldMode:`config`,outputFieldMode:`static`,allowedUserConnectionProviders:[`gmail`],defaultInputRequirement:null,managedProviders:[],deprecatedProviders:[],defaultPayload:{pipe_id:th,connector:{strategy:`first`,connections:[]},run_if:null,config:{to:``,reply_to:``,subject:``,body:``,output_fields:{gmail_email_success:{alias:``,enabled:!0}}}}},ch=`email:send:resend@1`,lh=_(`resend_email_success`),uh=r.object({pipe_id:r.literal(ch),connector:qi(),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 }},
69
+ โ€ฆ`,inputType:`text`,minLength:1,maxLength:1e6,expectedTagType:`string`,expectedTagFormat:`markdown`,multiline:!0}),output_fields:R(r.object({[sh.name]:k({fieldName:sh.name})}))})}),lh={"email-send-gmail-v1-gmail":{allowManagedConnection:!1,provider:`gmail`,credits:null,mode:null}},uh=class extends U{pipeId=oh;payload;payloadSchema=ch;billableOperations=lh;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 ih(this.getTemplatedFields())}getSecretRequirements(){return Y(this.getTemplatedFields())}getConstantRequirements(){return ah(this.getTemplatedFields())}getRawOutputFields(){return{[sh.name]:this.catalogOutput(sh)}}getConnectionsRequirements(){return[{provider:`gmail`,rateLimitRatio:1,rateLimitOperation:`gmail_send_email`,allowManagedConnection:!1}]}},dh=ch,fh={pipeId:oh,basePipe:W(oh),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(oh),billableOperations:lh,inputFieldMode:`config`,outputFieldMode:`static`,allowedUserConnectionProviders:[`gmail`],defaultInputRequirement:null,managedProviders:[],deprecatedProviders:[],defaultPayload:{pipe_id:oh,connector:{strategy:`first`,connections:[]},run_if:null,config:{to:``,reply_to:``,subject:``,body:``,output_fields:{gmail_email_success:{alias:``,enabled:!0}}}}},ph=`email:send:resend@1`,mh=_(`resend_email_success`),hh=r.object({pipe_id:r.literal(ph),connector:Zi(),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
- โ€ฆ`,inputType:`text`,minLength:1,maxLength:1e6,expectedTagType:`string`,expectedTagFormat:`markdown`,multiline:!0}),output_fields:R(r.object({[lh.name]:k({fieldName:lh.name})}))})}),dh={"email-send-resend-v1-resend":{allowManagedConnection:!1,provider:`resend`,credits:null,mode:null}},fh=class extends U{pipeId=ch;payload;payloadSchema=uh;billableOperations=dh;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 eh(this.getTemplatedFields())}getSecretRequirements(){return Y(this.getTemplatedFields())}getConstantRequirements(){return X(this.getTemplatedFields())}getRawOutputFields(){return{[lh.name]:this.catalogOutput(lh)}}getConnectionsRequirements(){return[{provider:`resend`,rateLimitRatio:1,rateLimitOperation:`resend_generic`,allowManagedConnection:!1}]}},ph=uh,mh={pipeId:ch,basePipe:W(ch),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(ch),billableOperations:dh,inputFieldMode:`config`,outputFieldMode:`static`,allowedUserConnectionProviders:[`resend`],defaultInputRequirement:null,managedProviders:[],deprecatedProviders:[],defaultPayload:{pipe_id:ch,connector:{strategy:`first`,connections:[]},run_if:null,config:{from:``,to:``,reply_to:``,subject:``,body:``,output_fields:{resend_email_success:{alias:``,enabled:!0}}}}},hh=`email:validate:zerobounce@1`,gh=_(`email`),_h=_(`zerobounce_validation_status`),vh=_(`zerobounce_validation_match`),yh=r.object({pipe_id:r.literal(hh),connector:w(),run_if:S(),config:r.object({input_fields:z(r.object({[gh.name]:E({fieldName:gh.name})})),output_fields:R(r.object({[vh.name]:k({fieldName:vh.name}),[_h.name]:k({fieldName:_h.name})}))}).optional()}),bh=e=>V(K(gh,e)),xh={"email-validate-zerobounce-v1-zerobounce":{provider:`zerobounce`,allowManagedConnection:!0,credits:{default:.4,level1:{credits:.3,weight:1},level2:{credits:.15,weight:6}},mode:`always`}},Sh=class extends U{pipeId=hh;payload;payloadSchema=yh;billableOperations=xh;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`zerobounce`]}estimateBillableOperations(){return[`email-validate-zerobounce-v1-zerobounce`]}getInputRequirement(){return bh(this.payload.config)}getRawOutputFields(){return{[_h.name]:this.catalogOutput(_h),[vh.name]:this.catalogOutput(vh)}}getConnectionsRequirements(){return[{provider:`zerobounce`,rateLimitRatio:1,rateLimitOperation:`zerobounce_generic`,allowManagedConnection:!0}]}},Ch=yh,wh={pipeId:hh,basePipe:W(hh),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(hh),billableOperations:xh,inputFieldMode:`static`,outputFieldMode:`static`,allowedUserConnectionProviders:[`zerobounce`],managedProviders:[`zerobounce`],deprecatedProviders:[],defaultInputRequirement:bh(null),defaultPayload:{pipe_id:hh,connector:null,run_if:null,config:{input_fields:{email:{alias:``}},output_fields:{zerobounce_validation_status:{alias:``,enabled:!0},zerobounce_validation_match:{alias:``,enabled:!0}}}}},Th={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 Th[e]}const Eh=`email:write@1`,Dh=`email-write-v1`,Oh=ri(Dh),kh=_(`email_subject`),Ah=_(`email_body`),jh=r.object({pipe_id:r.literal(Eh),connector:w(),run_if:S(),config:r.object({template:Gi({sectionKey:`general`,label:`Prompt`,path:`config.template`,placeholder:Z(`prompt`),groupPath:`config.prompt`,required:!0}),model:ca({sectionKey:`general`,label:`Model`,path:`config.model`,groupPath:`config.prompt`,billableOperations:Oh}),signature:oa({sectionKey:`general`,label:`Signature (Markdown)`,path:`config.signature`,groupPath:`config.email`,minLength:5,rows:10}),persona:sa({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({[kh.name]:k({fieldName:kh.name}),[Ah.name]:k({fieldName:Ah.name})}))})}),Mh=class extends U{pipeId=Eh;payload;payloadSchema=jh;billableOperations=Oh;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return ai(this.payload.config.model)}estimateBillableOperations(){return[ii(this.payload.config.model,Dh)]}getInputRequirement(){return eh([this.payload.config.template])}getSecretRequirements(){return Y([this.payload.config.template])}getConstantRequirements(){return X([this.payload.config.template])}getRawOutputFields(){return{[kh.name]:this.catalogOutput(kh),[Ah.name]:this.catalogOutput(Ah)}}getConnectionsRequirements(){return oi(this.payload.config.model)}},Nh=jh,Ph={pipeId:Eh,inputFieldMode:`config`,outputFieldMode:`static`,basePipe:W(Eh),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(Eh),defaultInputRequirement:null,billableOperations:Oh,allowedUserConnectionProviders:si(),managedProviders:si(),deprecatedProviders:[],defaultPayload:{pipe_id:Eh,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:``}}},Fh=`field:domainify@1`,Ih=_(`url_input`),Lh=_(`domain`),Rh=r.object({pipe_id:r.literal(Fh),run_if:S(),connector:T(),config:r.object({input_fields:z(r.object({[Ih.name]:E({fieldName:Ih.name})})),output_fields:R(r.object({[Lh.name]:k({fieldName:Lh.name})}))}).optional()}),zh=e=>V(K(Ih,e)),Bh={"field-domainify-v1-pipe0":{provider:`pipe0`,allowManagedConnection:!0,credits:{default:0},mode:`always`}},Vh=class extends U{pipeId=Fh;payload;payloadSchema=Rh;billableOperations=Bh;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[]}getInputRequirement(){return zh(this.payload.config)}getRawOutputFields(){return{[Lh.name]:this.catalogOutput(Lh)}}getConnectionsRequirements(){return[{provider:`pipe0`,rateLimitRatio:1,rateLimitOperation:`pipe0_logic`,allowManagedConnection:!0}]}},Hh=Rh,Uh={pipeId:Fh,basePipe:W(Fh),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(Fh),billableOperations:Bh,defaultInputRequirement:zh(null),inputFieldMode:`static`,outputFieldMode:`static`,allowedUserConnectionProviders:[],managedProviders:[`pipe0`],deprecatedProviders:[],defaultPayload:{pipe_id:Fh,run_if:null,connector:null,config:{input_fields:{url_input:{alias:``}},output_fields:{domain:{alias:``,enabled:!0}}}}},Wh=`field:slugify@1`,Gh=_(`string_input`),Kh=_(`slugified`),qh=r.object({pipe_id:r.literal(Wh),run_if:S(),connector:T(),config:r.object({input_fields:z(r.object({[Gh.name]:E({fieldName:Gh.name})})),output_fields:R(r.object({[Kh.name]:k({fieldName:Kh.name})}))}).optional()}),Jh=e=>V(K(Gh,e)),Yh={"field-slugify-v1-pipe0":{provider:`pipe0`,allowManagedConnection:!0,credits:{default:0},mode:`always`}},Xh=class extends U{pipeId=Wh;payload;payloadSchema=qh;billableOperations=Yh;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[]}getInputRequirement(){return Jh(this.payload.config)}getRawOutputFields(){return{[Kh.name]:this.catalogOutput(Kh)}}getConnectionsRequirements(){return[{provider:`pipe0`,rateLimitRatio:1,rateLimitOperation:`pipe0_logic`,allowManagedConnection:!0}]}},Zh=qh,Qh={pipeId:Wh,basePipe:W(Wh),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(Wh),billableOperations:Yh,defaultInputRequirement:Jh(null),inputFieldMode:`static`,outputFieldMode:`static`,allowedUserConnectionProviders:[],managedProviders:[`pipe0`],deprecatedProviders:[],defaultPayload:{pipe_id:Wh,run_if:null,connector:null,config:{input_fields:{string_input:{alias:``}},output_fields:{slugified:{alias:``,enabled:!0}}}}};function $h({name:e,resolvedName:t}){return e===t?`'${e}'`:`'${e}' (resolved to '${t}')`}function eg(e){switch(e.kind){case`field`:return $h(e.field);case`optional`:return`[optional ${$h(e.field)}]`;case`all`:return e.of.length===0?`(none)`:e.of.length===1?eg(e.of[0]):`(${e.of.map(eg).join(` AND `)})`;case`any`:return e.of.length===0?`(none)`:e.of.length===1?eg(e.of[0]):`(${e.of.map(eg).join(` OR `)})`}}function tg(e,t){return`Pipe input requirement is not satisfied${t?.pipeId!==void 0||t?.index!==void 0?` for pipe${t.index===void 0?``:` at index ${t.index}`}${t.pipeId===void 0?``:` (${t.pipeId})`}`:``}: ${eg(e)}. Map missing fields to existing ones, add a pipe that outputs them, or include them in your inputs.`}var ng=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,pipeId:t,index:n})=>({code:`RequirementUnmet`,message:tg(e,{pipeId:t,index:n})}),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 ${$h(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 rg=class extends Error{},$=class extends rg{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 ig=`fields:merge@1`,ag=_(`merge_result`),og=r.object({pipe_id:r.literal(ig),connector:T(),run_if:S(),config:r.object({sources:Yi({sectionKey:`general`,groupPath:`config.general`,path:`config.sources`,info:`Provide references to input fields`,minItems:2}),output_fields:R(r.object({[ag.name]:k({fieldName:ag.name})}))})}),sg={"fields-merge-v1-pipe0":{credits:{default:0},allowManagedConnection:!0,provider:`pipe0`,mode:`always`}},cg=class extends U{pipeId=ig;payload;payloadSchema=og;billableOperations=sg;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=Qm(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{[ag.name]:this.catalogOutput(ag,{resolveType:e=>{let t=Qm(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}]}},lg=og,ug={pipeId:ig,inputFieldMode:`config`,outputFieldMode:`static`,basePipe:W(ig),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(ig),defaultInputRequirement:null,billableOperations:sg,allowedUserConnectionProviders:[],managedProviders:[`pipe0`],deprecatedProviders:[],defaultPayload:{pipe_id:ig,connector:null,run_if:null,config:{sources:[],output_fields:{merge_result:{alias:``,enabled:!0}}}}},dg=`http:request@1`,fg=_(`http_response_status`),pg=_(`http_response_body`),mg=_(`http_response_headers`),hg=r.object({pipe_id:r.literal(dg),connector:T(),run_if:S(),config:r.object({method:sa({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:ea({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:`{
71
+ โ€ฆ`,inputType:`text`,minLength:1,maxLength:1e6,expectedTagType:`string`,expectedTagFormat:`markdown`,multiline:!0}),output_fields:R(r.object({[mh.name]:k({fieldName:mh.name})}))})}),gh={"email-send-resend-v1-resend":{allowManagedConnection:!1,provider:`resend`,credits:null,mode:null}},_h=class extends U{pipeId=ph;payload;payloadSchema=hh;billableOperations=gh;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 ih(this.getTemplatedFields())}getSecretRequirements(){return Y(this.getTemplatedFields())}getConstantRequirements(){return ah(this.getTemplatedFields())}getRawOutputFields(){return{[mh.name]:this.catalogOutput(mh)}}getConnectionsRequirements(){return[{provider:`resend`,rateLimitRatio:1,rateLimitOperation:`resend_generic`,allowManagedConnection:!1}]}},vh=hh,yh={pipeId:ph,basePipe:W(ph),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(ph),billableOperations:gh,inputFieldMode:`config`,outputFieldMode:`static`,allowedUserConnectionProviders:[`resend`],defaultInputRequirement:null,managedProviders:[],deprecatedProviders:[],defaultPayload:{pipe_id:ph,connector:{strategy:`first`,connections:[]},run_if:null,config:{from:``,to:``,reply_to:``,subject:``,body:``,output_fields:{resend_email_success:{alias:``,enabled:!0}}}}},bh=`email:validate:zerobounce@1`,xh=_(`email`),Sh=_(`zerobounce_validation_status`),Ch=_(`zerobounce_validation_match`),wh=r.object({pipe_id:r.literal(bh),connector:w(),run_if:S(),config:r.object({input_fields:z(r.object({[xh.name]:E({fieldName:xh.name})})),output_fields:R(r.object({[Ch.name]:k({fieldName:Ch.name}),[Sh.name]:k({fieldName:Sh.name})}))}).optional()}),Th=e=>V(K(xh,e)),Eh={"email-validate-zerobounce-v1-zerobounce":{provider:`zerobounce`,allowManagedConnection:!0,credits:{default:.4,level1:{credits:.3,weight:1},level2:{credits:.15,weight:6}},mode:`always`}},Dh=class extends U{pipeId=bh;payload;payloadSchema=wh;billableOperations=Eh;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`zerobounce`]}estimateBillableOperations(){return[`email-validate-zerobounce-v1-zerobounce`]}getInputRequirement(){return Th(this.payload.config)}getRawOutputFields(){return{[Sh.name]:this.catalogOutput(Sh),[Ch.name]:this.catalogOutput(Ch)}}getConnectionsRequirements(){return[{provider:`zerobounce`,rateLimitRatio:1,rateLimitOperation:`zerobounce_generic`,allowManagedConnection:!0}]}},Oh=wh,kh={pipeId:bh,basePipe:W(bh),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(bh),billableOperations:Eh,inputFieldMode:`static`,outputFieldMode:`static`,allowedUserConnectionProviders:[`zerobounce`],managedProviders:[`zerobounce`],deprecatedProviders:[],defaultInputRequirement:Th(null),defaultPayload:{pipe_id:bh,connector:null,run_if:null,config:{input_fields:{email:{alias:``}},output_fields:{zerobounce_validation_status:{alias:``,enabled:!0},zerobounce_validation_match:{alias:``,enabled:!0}}}}},Ah={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 X(e){return Ah[e]}const jh=`email:write@1`,Mh=`email-write-v1`,Nh=si(Mh),Ph=_(`email_subject`),Fh=_(`email_body`),Ih=r.object({pipe_id:r.literal(jh),connector:w(),run_if:S(),config:r.object({template:Yi({sectionKey:`general`,label:`Prompt`,path:`config.template`,placeholder:X(`prompt`),groupPath:`config.prompt`,required:!0}),model:fa({sectionKey:`general`,label:`Model`,path:`config.model`,groupPath:`config.prompt`,billableOperations:Nh}),signature:ua({sectionKey:`general`,label:`Signature (Markdown)`,path:`config.signature`,groupPath:`config.email`,minLength:5,rows:10}),persona:da({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({[Ph.name]:k({fieldName:Ph.name}),[Fh.name]:k({fieldName:Fh.name})}))})}),Lh=class extends U{pipeId=jh;payload;payloadSchema=Ih;billableOperations=Nh;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return li(this.payload.config.model)}estimateBillableOperations(){return[ci(this.payload.config.model,Mh)]}getInputRequirement(){return ih([this.payload.config.template])}getSecretRequirements(){return Y([this.payload.config.template])}getConstantRequirements(){return ah([this.payload.config.template])}getRawOutputFields(){return{[Ph.name]:this.catalogOutput(Ph),[Fh.name]:this.catalogOutput(Fh)}}getConnectionsRequirements(){return ui(this.payload.config.model)}},Rh=Ih,zh={pipeId:jh,inputFieldMode:`config`,outputFieldMode:`static`,basePipe:W(jh),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(jh),defaultInputRequirement:null,billableOperations:Nh,allowedUserConnectionProviders:di(),managedProviders:di(),deprecatedProviders:[],defaultPayload:{pipe_id:jh,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:``}}},Bh=`field:domainify@1`,Vh=_(`url_input`),Hh=_(`domain`),Uh=r.object({pipe_id:r.literal(Bh),run_if:S(),connector:T(),config:r.object({input_fields:z(r.object({[Vh.name]:E({fieldName:Vh.name})})),output_fields:R(r.object({[Hh.name]:k({fieldName:Hh.name})}))}).optional()}),Wh=e=>V(K(Vh,e)),Gh={"field-domainify-v1-pipe0":{provider:`pipe0`,allowManagedConnection:!0,credits:{default:0},mode:`always`}},Kh=class extends U{pipeId=Bh;payload;payloadSchema=Uh;billableOperations=Gh;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[]}getInputRequirement(){return Wh(this.payload.config)}getRawOutputFields(){return{[Hh.name]:this.catalogOutput(Hh)}}getConnectionsRequirements(){return[{provider:`pipe0`,rateLimitRatio:1,rateLimitOperation:`pipe0_logic`,allowManagedConnection:!0}]}},qh=Uh,Jh={pipeId:Bh,basePipe:W(Bh),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(Bh),billableOperations:Gh,defaultInputRequirement:Wh(null),inputFieldMode:`static`,outputFieldMode:`static`,allowedUserConnectionProviders:[],managedProviders:[`pipe0`],deprecatedProviders:[],defaultPayload:{pipe_id:Bh,run_if:null,connector:null,config:{input_fields:{url_input:{alias:``}},output_fields:{domain:{alias:``,enabled:!0}}}}},Yh=`field:slugify@1`,Xh=_(`string_input`),Zh=_(`slugified`),Qh=r.object({pipe_id:r.literal(Yh),run_if:S(),connector:T(),config:r.object({input_fields:z(r.object({[Xh.name]:E({fieldName:Xh.name})})),output_fields:R(r.object({[Zh.name]:k({fieldName:Zh.name})}))}).optional()}),$h=e=>V(K(Xh,e)),eg={"field-slugify-v1-pipe0":{provider:`pipe0`,allowManagedConnection:!0,credits:{default:0},mode:`always`}},tg=class extends U{pipeId=Yh;payload;payloadSchema=Qh;billableOperations=eg;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[]}getInputRequirement(){return $h(this.payload.config)}getRawOutputFields(){return{[Zh.name]:this.catalogOutput(Zh)}}getConnectionsRequirements(){return[{provider:`pipe0`,rateLimitRatio:1,rateLimitOperation:`pipe0_logic`,allowManagedConnection:!0}]}},ng=Qh,rg={pipeId:Yh,basePipe:W(Yh),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(Yh),billableOperations:eg,defaultInputRequirement:$h(null),inputFieldMode:`static`,outputFieldMode:`static`,allowedUserConnectionProviders:[],managedProviders:[`pipe0`],deprecatedProviders:[],defaultPayload:{pipe_id:Yh,run_if:null,connector:null,config:{input_fields:{string_input:{alias:``}},output_fields:{slugified:{alias:``,enabled:!0}}}}};function ig({name:e,resolvedName:t}){return e===t?`'${e}'`:`'${e}' (resolved to '${t}')`}function ag(e){switch(e.kind){case`field`:return ig(e.field);case`optional`:return`[optional ${ig(e.field)}]`;case`all`:return e.of.length===0?`(none)`:e.of.length===1?ag(e.of[0]):`(${e.of.map(ag).join(` AND `)})`;case`any`:return e.of.length===0?`(none)`:e.of.length===1?ag(e.of[0]):`(${e.of.map(ag).join(` OR `)})`}}function og(e,t){return`Pipe input requirement is not satisfied${t?.pipeId!==void 0||t?.index!==void 0?` for pipe${t.index===void 0?``:` at index ${t.index}`}${t.pipeId===void 0?``:` (${t.pipeId})`}`:``}: ${ag(e)}. Map missing fields to existing ones, add a pipe that outputs them, or include them in your inputs.`}var sg=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 Z={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,pipeId:t,index:n})=>({code:`RequirementUnmet`,message:og(e,{pipeId:t,index:n})}),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 ${ig(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 cg=class extends Error{},Q=class extends cg{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 lg=`fields:merge@1`,ug=_(`merge_result`),dg=r.object({pipe_id:r.literal(lg),connector:T(),run_if:S(),config:r.object({sources:$i({sectionKey:`general`,groupPath:`config.general`,path:`config.sources`,info:`Provide references to input fields`,minItems:2}),output_fields:R(r.object({[ug.name]:k({fieldName:ug.name})}))})}),fg={"fields-merge-v1-pipe0":{credits:{default:0},allowManagedConnection:!0,provider:`pipe0`,mode:`always`}},pg=class extends U{pipeId=lg;payload;payloadSchema=dg;billableOperations=fg;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=nh(r,e)[n.field_name],a=i?.type?i.type:`unknown`;if(a!==`unknown`){if(t&&t!==a)throw new Q([Z.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{[ug.name]:this.catalogOutput(ug,{resolveType:e=>{let t=nh(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}]}},mg=dg,hg={pipeId:lg,inputFieldMode:`config`,outputFieldMode:`static`,basePipe:W(lg),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(lg),defaultInputRequirement:null,billableOperations:fg,allowedUserConnectionProviders:[],managedProviders:[`pipe0`],deprecatedProviders:[],defaultPayload:{pipe_id:lg,connector:null,run_if:null,config:{sources:[],output_fields:{merge_result:{alias:``,enabled:!0}}}}},gg=`http:request@1`,_g=_(`http_response_status`),vg=_(`http_response_body`),yg=_(`http_response_headers`),bg=r.object({pipe_id:r.literal(gg),connector:T(),run_if:S(),config:r.object({method:da({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:ia({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:ea({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:fa({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({[fg.name]:k({fieldName:fg.name}),[pg.name]:k({fieldName:pg.name}),[mg.name]:k({fieldName:mg.name})}))})}),gg={"http-request-v1-pipe0":{provider:`pipe0`,allowManagedConnection:!0,credits:{default:.001},mode:`always`}},_g=class extends U{pipeId=dg;payload;payloadSchema=hg;billableOperations=gg;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 eh(this.getTemplatedFields(),{expectedType:`string`,expectedFormat:`text`})}getSecretRequirements(){return Y(this.getTemplatedFields())}getConstantRequirements(){return X(this.getTemplatedFields())}getRawOutputFields(){return{[fg.name]:this.catalogOutput(fg),[pg.name]:this.catalogOutput(pg),[mg.name]:this.catalogOutput(mg)}}getConnectionsRequirements(){return[{provider:`pipe0`,rateLimitRatio:1,rateLimitOperation:`pipe0_logic`,allowManagedConnection:!0}]}},vg=hg,yg={pipeId:dg,basePipe:W(dg),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(dg),billableOperations:gg,defaultInputRequirement:null,inputFieldMode:`config`,outputFieldMode:`static`,allowedUserConnectionProviders:[],managedProviders:[`pipe0`],deprecatedProviders:[],defaultPayload:{pipe_id:dg,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}}}}},bg=`json:extract:multi@1`,xg=r.object({pipe_id:r.literal(bg),run_if:S(),connector:T(),config:r.object({json_extraction:_i()})}),Sg={"json-extract-multi-v1-pipe0":{provider:`pipe0`,allowManagedConnection:!0,credits:{default:0},mode:`always`}},Cg=class extends U{pipeId=bg;payload;payloadSchema=xg;billableOperations=Sg;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[]}},wg=xg,Tg={pipeId:bg,basePipe:W(bg),inputFieldMode:`config`,outputFieldMode:`config`,label:`JSON extract`,executionMode:`single`,categories:[`tools`],lifecycle:null,description:`Extract nested JSON properties into new output fields.`,docPath:G(bg),tags:[B.JSON],managedProviders:[`pipe0`],deprecatedProviders:[],allowedUserConnectionProviders:[],billableOperations:Sg,defaultInputRequirement:null,defaultPayload:{pipe_id:bg,run_if:null,connector:null,config:{json_extraction:{field_name:``,extractions:[]}}}},Eg=`message:send:slack@1`,Dg=_(`slack_message_success`),Og=[{label:`#demo-general`,value:`C0SANDBOX001`},{label:`#demo-alerts`,value:`C0SANDBOX002`}],kg=r.object({pipe_id:r.literal(Eg),connector:qi(),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 Og;if(!t)throw new Xs.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 Xs.HttpError({msg:e})}let i=await r.json();if(!i.ok)throw new Xs.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({[Dg.name]:k({fieldName:Dg.name})}))})}),Ag={"message-send-slack-v1-slack":{allowManagedConnection:!1,provider:`slack`,credits:null,mode:null}},jg=class extends U{pipeId=Eg;payload;payloadSchema=kg;billableOperations=Ag;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 eh(this.getTemplatedFields())}getSecretRequirements(){return Y(this.getTemplatedFields())}getConstantRequirements(){return X(this.getTemplatedFields())}getRawOutputFields(){return{[Dg.name]:this.catalogOutput(Dg)}}getConnectionsRequirements(){return[{provider:`slack`,rateLimitRatio:1,rateLimitOperation:`slack_post_message`,allowManagedConnection:!1}]}},Mg=kg,Ng={pipeId:Eg,basePipe:W(Eg),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(Eg),billableOperations:Ag,inputFieldMode:`config`,outputFieldMode:`static`,allowedUserConnectionProviders:[`slack`],managedProviders:[],deprecatedProviders:[],defaultInputRequirement:null,defaultPayload:{pipe_id:Eg,connector:{strategy:`first`,connections:[]},run_if:null,config:{channel_id:``,message:``,output_fields:{slack_message_success:{alias:``,enabled:!0}}}}},Pg=`message:write@1`,Fg=_(`message`),Ig=`message-write-v1`,Lg=ri(Ig),Rg=r.object({pipe_id:r.literal(Pg),connector:w(),run_if:S(),config:r.object({template:Gi({sectionKey:`general`,label:`Template`,path:`config.template`,placeholder:Z(`prompt`),groupPath:`config.prompt`,required:!0}),model:ca({sectionKey:`general`,label:`Model`,path:`config.model`,groupPath:`config.prompt`,billableOperations:Lg}),output_fields:R(r.object({[Fg.name]:k({fieldName:Fg.name})}))})}),zg=class extends U{pipeId=Pg;payload;payloadSchema=Rg;billableOperations=Lg;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return ai(this.payload.config.model)}estimateBillableOperations(){return[ii(this.payload.config.model,Ig)]}getInputRequirement(){return eh([this.payload.config.template])}getSecretRequirements(){return Y([this.payload.config.template])}getConstantRequirements(){return X([this.payload.config.template])}getRawOutputFields(){return{[Fg.name]:this.catalogOutput(Fg)}}getConnectionsRequirements(){return oi(this.payload.config.model)}},Bg=Rg,Vg={pipeId:Pg,inputFieldMode:`config`,outputFieldMode:`static`,basePipe:W(Pg),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(Pg),defaultInputRequirement:null,billableOperations:Lg,allowedUserConnectionProviders:si(),managedProviders:si(),deprecatedProviders:[],defaultPayload:{pipe_id:Pg,connector:null,run_if:null,config:{model:`openai-gpt-latest`,template:``,output_fields:{message:{alias:``,enabled:!0}}}}},Hg=`person:devprofileurl:profileurl:waterfall@1`,Ug=_(`profile_url`),Wg=_(`developer_profile_url`),Gg=_(`alternative_developer_profile_urls`),Kg=[`crustdata`],qg=[{provider:`crustdata`}],Jg=r.object({pipe_id:r.literal(Hg),run_if:S(),connector:w(),config:r.object({providers:D({sectionKey:`general`,defaultProviders:qg,availableProviders:Kg}),input_fields:z(r.object({[Ug.name]:E({fieldName:Ug.name})})),output_fields:R(r.object({[Wg.name]:k({fieldName:Wg.name}),[Gg.name]:k({fieldName:Gg.name})}))}).optional()}),Yg=e=>V(K(Ug,e)),Xg={"person-devprofileurl-profileurl-waterfall-v1-crustdata":{provider:`crustdata`,allowManagedConnection:!0,credits:{default:2,level1:{credits:1.3,weight:1}},mode:`onSuccess`}},Zg=class extends U{pipeId=Hg;payload;payloadSchema=Jg;billableOperations=Xg;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 Yg(this.payload.config)}getRawOutputFields(){return{[Wg.name]:this.catalogOutput(Wg,{isPrimaryOutput:!0}),[Gg.name]:this.catalogOutput(Gg,{isPrimaryOutput:!1})}}getConnectionsRequirements(){let e={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}))}},Qg=Jg,$g={pipeId:Hg,basePipe:W(Hg),label:`GitHub profile from LinkedIn URL`,executionMode:`waterfall`,categories:[`people_data`],lifecycle:null,description:`Find a developer profile URL (e.g. GitHub) for any prospect using multiple data providers in a waterfall motion.`,docPath:G(Hg),tags:[B.LINKEDIN,B.WATERFALL,B.NEW],billableOperations:Xg,defaultInputRequirement:Yg(null),inputFieldMode:`static`,outputFieldMode:`static`,managedProviders:Kg,allowedUserConnectionProviders:Kg,deprecatedProviders:[],defaultPayload:{pipe_id:Hg,connector:null,run_if:null,config:{providers:qg,input_fields:{profile_url:{alias:``}},output_fields:{developer_profile_url:{alias:``,enabled:!0},alternative_developer_profile_urls:{alias:``,enabled:!1}}}}},e_=`person:email:validate:millionverifier@1`,t_=_(`email`),n_=_(`email_validation_status`),r_=_(`million_validation_match`),i_=r.object({pipe_id:r.literal(e_),connector:w(),run_if:S(),config:r.object({input_fields:z(r.object({[t_.name]:E({fieldName:t_.name})})),output_fields:R(r.object({[n_.name]:k({fieldName:n_.name}),[r_.name]:k({fieldName:r_.name})}))}).optional()}),a_=e=>V(K(t_,e)),o_={"person-email-validate-millionverifier-v1-millionverifier":{provider:`millionverifier`,allowManagedConnection:!0,credits:{default:.1,level1:{credits:.05,weight:1}},mode:`always`}},s_=class extends U{pipeId=e_;payload;payloadSchema=i_;billableOperations=o_;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`millionverifier`]}estimateBillableOperations(){return[`person-email-validate-millionverifier-v1-millionverifier`]}getInputRequirement(){return a_(this.payload.config)}getRawOutputFields(){return{[n_.name]:this.catalogOutput(n_),[r_.name]:this.catalogOutput(r_)}}getConnectionsRequirements(){return[{provider:`millionverifier`,rateLimitRatio:1,rateLimitOperation:`millionverifier_generic`,allowManagedConnection:!0}]}},c_=i_,l_={pipeId:e_,basePipe:W(e_),label:`Validate email`,executionMode:`single`,categories:[`people_data`],lifecycle:null,description:`Verify email addresses to ensure is deliverability.`,tags:[B.EMAIL],docPath:G(e_),billableOperations:o_,inputFieldMode:`static`,outputFieldMode:`static`,allowedUserConnectionProviders:[`millionverifier`],managedProviders:[`millionverifier`],deprecatedProviders:[],defaultInputRequirement:a_(null),defaultPayload:{pipe_id:e_,connector:null,run_if:null,config:{input_fields:{email:{alias:``}},output_fields:{email_validation_status:{alias:``,enabled:!0},million_validation_match:{alias:``,enabled:!0}}}}},u_=_(`email`),d_=_(`amplemarket_person_match`),f_=`person:identity:amplemarket@1`,p_=r.object({pipe_id:r.literal(f_),run_if:S(),connector:w(),config:r.object({input_fields:z(r.object({[u_.name]:E({fieldName:u_.name})})),output_fields:R(r.object({[d_.name]:k({fieldName:d_.name})}))}).optional()}),m_=e=>V(K(u_,e)),h_={"person-identity-amplemarket-v1-amplemarket":{allowManagedConnection:!1,credits:null,mode:null,provider:`amplemarket`}},g_=class extends U{pipeId=f_;payload;payloadSchema=p_;billableOperations=h_;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`amplemarket`]}estimateBillableOperations(){return[]}getInputRequirement(){return m_(this.payload.config)}getRawOutputFields(){return{[d_.name]:this.catalogOutput(d_)}}getConnectionsRequirements(){return[{provider:`amplemarket`,rateLimitRatio:1,rateLimitOperation:`amplemarket_generic`,allowManagedConnection:!1}]}},__=p_,v_={pipeId:f_,inputFieldMode:`static`,outputFieldMode:`static`,basePipe:W(f_),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(f_),billableOperations:h_,allowedUserConnectionProviders:[`amplemarket`],managedProviders:[],deprecatedProviders:[],defaultInputRequirement:m_(null),defaultPayload:{pipe_id:f_,connector:null,run_if:null,config:{input_fields:{email:{alias:``}},output_fields:{amplemarket_person_match:{alias:``,enabled:!0}}}}},y_=`person:identity:email:waterfall@1`,b_=_(`email`),x_=_(`company_domain`),S_=_(`name`),C_=_(`job_title`),w_=_(`profile_url`),T_=_(`company_profile_url`),E_=_(`company_name`),D_=[`findymail`,`hunter`,`crustdata`],O_=[{provider:`findymail`},{provider:`hunter`},{provider:`crustdata`}],k_=r.object({pipe_id:r.literal(y_),connector:w(),run_if:S(),config:r.object({providers:D({availableProviders:D_,defaultProviders:O_,sectionKey:`general`}),input_fields:z(r.object({[b_.name]:E({fieldName:b_.name})})),output_fields:R(r.object({[S_.name]:k({fieldName:S_.name}),[w_.name]:k({fieldName:w_.name}),[C_.name]:k({fieldName:C_.name}),[x_.name]:k({fieldName:x_.name}),[E_.name]:k({fieldName:E_.name}),[T_.name]:k({fieldName:T_.name})}))}).optional()}),A_=e=>V(K(b_,e)),j_={"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`}},M_=class extends U{pipeId=y_;payload;payloadSchema=k_;billableOperations=j_;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 A_(this.payload.config)}getRawOutputFields(){return{[S_.name]:this.catalogOutput(S_,{isPrimaryOutput:!0}),[w_.name]:this.catalogOutput(w_,{isPrimaryOutput:!0}),[C_.name]:this.catalogOutput(C_,{isPrimaryOutput:!0}),[E_.name]:this.catalogOutput(E_,{isPrimaryOutput:!0}),[T_.name]:this.catalogOutput(T_,{isPrimaryOutput:!0}),[x_.name]:this.catalogOutput(x_,{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}))}},N_=k_,P_={pipeId:y_,basePipe:W(y_),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(y_),managedProviders:D_,deprecatedProviders:[],allowedUserConnectionProviders:D_,inputFieldMode:`static`,outputFieldMode:`static`,billableOperations:j_,defaultInputRequirement:A_(null),defaultPayload:{pipe_id:y_,connector:null,run_if:null,config:{providers:O_,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}}}}},F_=_(`profile_url`),I_=_(`amplemarket_person_match`),L_=`person:match:amplemarket@1`,R_=r.object({pipe_id:r.literal(L_),run_if:S(),connector:w(),config:r.object({input_fields:z(r.object({[F_.name]:E({fieldName:F_.name})})),output_fields:R(r.object({[I_.name]:k({fieldName:I_.name})}))}).optional()}),z_=e=>V(K(F_,e)),B_={"person-match-amplemarket-v1-amplemarket":{allowManagedConnection:!1,credits:null,mode:null,provider:`amplemarket`}},V_=class extends U{pipeId=L_;payload;payloadSchema=R_;billableOperations=B_;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`amplemarket`]}estimateBillableOperations(){return[]}getInputRequirement(){return z_(this.payload.config)}getRawOutputFields(){return{[I_.name]:this.catalogOutput(I_)}}getConnectionsRequirements(){return[{provider:`amplemarket`,rateLimitRatio:1,rateLimitOperation:`amplemarket_generic`,allowManagedConnection:!1}]}},H_=R_,U_={pipeId:L_,inputFieldMode:`static`,outputFieldMode:`static`,basePipe:W(L_),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(L_),billableOperations:B_,allowedUserConnectionProviders:[`amplemarket`],managedProviders:[],deprecatedProviders:[],defaultInputRequirement:z_(null),defaultPayload:{pipe_id:L_,connector:null,run_if:null,config:{input_fields:{profile_url:{alias:``}},output_fields:{amplemarket_person_match:{alias:``,enabled:!0}}}}},W_=`person:match:role:waterfall@1`,G_=_(`company_domain`),K_=_(`role_finder_match`),q_=[`leadmagic`],J_=[{provider:`leadmagic`}],Y_=r.object({pipe_id:r.literal(W_),run_if:S(),connector:w(),config:r.object({providers:D({sectionKey:`general`,defaultProviders:J_,availableProviders:q_}),roles:$i({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({[G_.name]:E({fieldName:G_.name})})),output_fields:R(r.object({[K_.name]:k({fieldName:K_.name})}))})}),X_=e=>H(K(G_,e)),Z_={"person-match-role-waterfall-v1-leadmagic":{provider:`leadmagic`,allowManagedConnection:!0,credits:{default:1},mode:`onSuccess`}},Q_=class extends U{pipeId=W_;payload;payloadSchema=Y_;billableOperations=Z_;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 X_(this.payload.config)}getSecretRequirements(){return Y(this.payload.config?.roles??[])}getConstantRequirements(){return X(this.payload.config?.roles??[])}getRawOutputFields(){return{[K_.name]:this.catalogOutput(K_,{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}))}},$_=Y_,ev={pipeId:W_,basePipe:W(W_),managedProviders:q_,deprecatedProviders:[],allowedUserConnectionProviders:q_,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(W_),billableOperations:Z_,inputFieldMode:`static`,outputFieldMode:`static`,defaultInputRequirement:X_(null),defaultPayload:{pipe_id:W_,run_if:null,connector:null,config:{roles:[],providers:J_,input_fields:{company_domain:{alias:``}},output_fields:{role_finder_match:{alias:``,enabled:!0}}}}},tv=`person:mobile:profileurl:waterfall@1`,nv=_(`profile_url`),rv=_(`mobile`),iv=[`leadmagic`,`prospeo`,`amplemarket`,`findymail`],av=[{provider:`leadmagic`},{provider:`prospeo`},{provider:`amplemarket`},{provider:`findymail`}],ov=r.object({pipe_id:r.literal(tv),run_if:S(),connector:w(),config:r.object({providers:D({sectionKey:`general`,defaultProviders:av,availableProviders:iv}),input_fields:z(r.object({[nv.name]:E({fieldName:nv.name})})),output_fields:R(r.object({[rv.name]:k({fieldName:rv.name})}))}).optional()}),sv=e=>V(K(nv,e)),cv={"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`}},lv=class extends U{pipeId=tv;payload;payloadSchema=ov;billableOperations=cv;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 sv(this.payload.config)}getRawOutputFields(){return{[rv.name]:this.catalogOutput(rv,{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}))}},uv=ov,dv={pipeId:tv,basePipe:W(tv),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(tv),tags:[B.PHONE,B.WATERFALL],billableOperations:cv,defaultInputRequirement:sv(null),inputFieldMode:`static`,outputFieldMode:`static`,managedProviders:iv,allowedUserConnectionProviders:iv,deprecatedProviders:[],defaultPayload:{pipe_id:tv,connector:null,run_if:null,config:{providers:av,input_fields:{profile_url:{alias:``}},output_fields:{mobile:{alias:``,enabled:!0}}}}},fv=`person:mobile:workemail:waterfall@1`,pv=_(`work_email`),mv=_(`mobile`),hv=[`leadmagic`,`amplemarket`],gv=[{provider:`leadmagic`},{provider:`amplemarket`}],_v=r.object({pipe_id:r.literal(fv),run_if:S(),connector:w(),config:r.object({providers:D({sectionKey:`general`,availableProviders:hv,defaultProviders:gv}),input_fields:z(r.object({[pv.name]:E({fieldName:pv.name})})),output_fields:R(r.object({[mv.name]:k({fieldName:mv.name})}))}).optional()}),vv=e=>V(K(pv,e)),yv={"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`}},bv=class extends U{pipeId=fv;payload;payloadSchema=_v;billableOperations=yv;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 vv(this.payload.config)}getRawOutputFields(){return{[mv.name]:this.catalogOutput(mv,{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}))}},xv=_v,Sv={pipeId:fv,basePipe:W(fv),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(fv),billableOperations:yv,defaultInputRequirement:vv(null),inputFieldMode:`static`,outputFieldMode:`static`,allowedUserConnectionProviders:hv,managedProviders:hv,deprecatedProviders:[],defaultPayload:{pipe_id:fv,connector:null,run_if:null,config:{providers:gv,input_fields:{work_email:{alias:``}},output_fields:{mobile:{alias:``,enabled:!0}}}}},Cv=`person:name:join@1`,wv=_(`first_name`),Tv=_(`last_name`),Ev=_(`name`),Dv=r.object({pipe_id:r.literal(Cv),run_if:S(),connector:T(),config:r.object({input_fields:z(r.object({[wv.name]:E({fieldName:wv.name}),[Tv.name]:E({fieldName:Tv.name})})),output_fields:R(r.object({[Ev.name]:k({fieldName:Ev.name})}))}).optional()}),Ov=e=>Oa(K(wv,e),K(Tv,e)),kv={"person-name-join-v1-pipe0":{provider:`pipe0`,allowManagedConnection:!0,credits:{default:0},mode:`always`}},Av=class extends U{pipeId=Cv;payload;payloadSchema=Dv;billableOperations=kv;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[`person-name-join-v1-pipe0`]}getInputRequirement(){return Ov(this.payload.config)}getRawOutputFields(){return{[Ev.name]:this.catalogOutput(Ev)}}getConnectionsRequirements(){return[{provider:`pipe0`,rateLimitRatio:1,rateLimitOperation:`pipe0_logic`,allowManagedConnection:!0}]}},jv=Dv,Mv={pipeId:Cv,basePipe:W(Cv),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(Cv),billableOperations:kv,defaultInputRequirement:Ov(null),inputFieldMode:`static`,outputFieldMode:`static`,allowedUserConnectionProviders:[],managedProviders:[`pipe0`],deprecatedProviders:[],defaultPayload:{pipe_id:Cv,run_if:null,connector:null,config:{input_fields:{first_name:{alias:``},last_name:{alias:``}},output_fields:{name:{alias:``,enabled:!0}}}}},Nv=`person:name:split@1`,Pv=_(`name`),Fv=_(`first_name`),Iv=_(`last_name`),Lv=r.object({pipe_id:r.literal(Nv),connector:T(),run_if:S(),config:r.object({input_fields:z(r.object({[Pv.name]:E({fieldName:Pv.name})})),output_fields:R(r.object({[Fv.name]:k({fieldName:Fv.name}),[Iv.name]:k({fieldName:Iv.name})}))}).optional()}),Rv=e=>V(K(Pv,e)),zv={"person-name-split-v1-pipe0":{provider:`pipe0`,allowManagedConnection:!0,credits:{default:0},mode:`always`}},Bv=class extends U{pipeId=Nv;payload;payloadSchema=Lv;billableOperations=zv;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[`person-name-split-v1-pipe0`]}getInputRequirement(){return Rv(this.payload.config)}getRawOutputFields(){return{[Fv.name]:this.catalogOutput(Fv),[Iv.name]:this.catalogOutput(Iv)}}getConnectionsRequirements(){return[{provider:`pipe0`,rateLimitRatio:1,rateLimitOperation:`pipe0_logic`,allowManagedConnection:!0}]}},Vv=Lv,Hv={pipeId:Nv,basePipe:W(Nv),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(Nv),billableOperations:zv,inputFieldMode:`static`,outputFieldMode:`static`,defaultInputRequirement:Rv(null),allowedUserConnectionProviders:[],managedProviders:[`pipe0`],deprecatedProviders:[],defaultPayload:{pipe_id:Nv,run_if:null,connector:void 0,config:{input_fields:{name:{alias:``}},output_fields:{first_name:{alias:``,enabled:!0},last_name:{alias:``,enabled:!0}}}}},Uv=`person:personalemail:profileurl:waterfall@1`,Wv=_(`profile_url`),Gv=_(`personal_email`),Kv=_(`alternate_personal_emails`),qv=[`leadmagic`,`mixrank`],Jv=[{provider:`leadmagic`},{provider:`mixrank`}],Yv=r.object({pipe_id:r.literal(Uv),run_if:S(),connector:w(),config:r.object({providers:D({sectionKey:`general`,availableProviders:qv,defaultProviders:Jv}),input_fields:z(r.object({[Wv.name]:E({fieldName:Wv.name})})),output_fields:R(r.object({[Gv.name]:k({fieldName:Gv.name}),[Kv.name]:k({fieldName:Kv.name})}))}).optional()}),Xv=e=>V(K(Wv,e)),Zv={"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`}},Qv=class extends U{pipeId=Uv;payload;payloadSchema=Yv;billableOperations=Zv;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 Xv(this.payload.config)}getRawOutputFields(){return{[Gv.name]:this.catalogOutput(Gv,{isPrimaryOutput:!0}),[Kv.name]:this.catalogOutput(Kv)}}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}))}},$v=Yv,ey={pipeId:Uv,basePipe:W(Uv),allowedUserConnectionProviders:qv,managedProviders:qv,deprecatedProviders:[],label:`Personal email from LinkedIn`,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(Uv),billableOperations:Zv,defaultInputRequirement:Xv(null),inputFieldMode:`static`,outputFieldMode:`static`,defaultPayload:{pipe_id:Uv,connector:null,run_if:null,config:{providers:Jv,input_fields:{profile_url:{alias:``}},output_fields:{personal_email:{alias:``,enabled:!0},alternate_personal_emails:{alias:``,enabled:!1}}}}},ty=_(`profile_url`),ny=_(`post_list_string`),ry=_(`crustdata_post_list`),iy=`person:posts:crustdata@1`,ay=r.object({pipe_id:r.literal(iy),run_if:S(),connector:w(),config:r.object({limit:ua({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({[ty.name]:E({fieldName:ty.name})})),output_fields:R(r.object({[ny.name]:k({fieldName:ny.name}),[ry.name]:k({fieldName:ry.name})}))}).optional()}),oy=e=>V(K(ty,e)),sy={"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`}},cy=class extends U{pipeId=iy;payload;payloadSchema=ay;billableOperations=sy;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`crustdata`]}estimateBillableOperations(){return[`person-posts-crustdata-v1-crustdata`]}getInputRequirement(){return oy(this.payload.config)}getRawOutputFields(){return{[ny.name]:this.catalogOutput(ny),[ry.name]:this.catalogOutput(ry)}}getConnectionsRequirements(){return[{provider:`crustdata`,rateLimitRatio:1,rateLimitOperation:`crustdata_realtime_post_fetch`,allowManagedConnection:!0}]}},ly=ay,uy={pipeId:iy,inputFieldMode:`static`,outputFieldMode:`static`,basePipe:W(iy),label:`LinkedIn posts`,executionMode:`single`,categories:[`people_data`],lifecycle:null,description:`Find list of recent LinkedIn posts.`,tags:[B.LINKEDIN],docPath:G(iy),billableOperations:sy,allowedUserConnectionProviders:[`crustdata`],managedProviders:[`crustdata`],deprecatedProviders:[],defaultInputRequirement:oy(null),defaultPayload:{pipe_id:iy,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}}}}},dy=`person:profile:waterfall@1`,fy=_(`profile`),py=_(`profile_url`),my=[`prospeo`,`icypeas`,`amplemarket`],hy=[{provider:`amplemarket`},{provider:`prospeo`},{provider:`icypeas`}],gy=r.object({pipe_id:r.literal(dy),run_if:S(),connector:w(),config:r.object({providers:D({sectionKey:`general`,availableProviders:my,defaultProviders:hy}),input_fields:z(r.object({[py.name]:E({fieldName:py.name})})),output_fields:R(r.object({[fy.name]:k({fieldName:fy.name})}))}).optional()}),_y=e=>V(K(py,e)),vy={"person-profile-waterfall-v1-icypeas":{provider:`icypeas`,credits:{default:1,level1:{credits:.5,weight:1}},mode:`onSuccess`,allowManagedConnection:!0},"person-profile-waterfall-v1-prospeo":{provider:`prospeo`,credits:{default:1,level1:{credits:.5,weight:1}},mode:`onSuccess`,allowManagedConnection:!0},"person-profile-waterfall-v1-amplemarket":{provider:`amplemarket`,credits:{default:1,level1:{credits:.5,weight:1}},mode:`onSuccess`,allowManagedConnection:!0}},yy=class extends U{pipeId=dy;payload;payloadSchema=gy;billableOperations=vy;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{[fy.name]:this.catalogOutput(fy,{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}))}},by=gy,xy={pipeId:dy,basePipe:W(dy),label:`Full LinkedIn profile`,executionMode:`waterfall`,categories:[`people_data`],lifecycle:null,description:`Find a JSON representation of a LinkedIn profile.`,docPath:G(dy),tags:[B.LINKEDIN,B.WATERFALL],managedProviders:my,deprecatedProviders:[],allowedUserConnectionProviders:my,inputFieldMode:`static`,outputFieldMode:`static`,billableOperations:vy,defaultInputRequirement:_y(null),defaultPayload:{pipe_id:dy,run_if:null,connector:null,config:{providers:hy,input_fields:{profile_url:{alias:``}},output_fields:{profile:{alias:``,enabled:!0}}}}},Sy=_(`work_email`),Cy=_(`crustdata_person_match`),wy=_(`crustdata_profile_match_score`),Ty=`person:profile:workemail:crustdata@1`,Ey=r.object({pipe_id:r.literal(Ty),run_if:S(),connector:w(),config:r.object({input_fields:z(r.object({[Sy.name]:E({fieldName:Sy.name})})),output_fields:R(r.object({[Cy.name]:k({fieldName:Cy.name}),[wy.name]:k({fieldName:wy.name})}))}).optional()}),Dy=e=>V(K(Sy,e)),Oy={"person-profile-workemail-crustdata-v1-crustdata":{allowManagedConnection:!0,credits:{default:5},mode:`onSuccess`,provider:`crustdata`}},ky=class extends U{pipeId=Ty;payload;payloadSchema=Ey;billableOperations=Oy;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`crustdata`]}estimateBillableOperations(){return[`person-profile-workemail-crustdata-v1-crustdata`]}getInputRequirement(){return Dy(this.payload.config)}getRawOutputFields(){return{[Cy.name]:this.catalogOutput(Cy),[wy.name]:this.catalogOutput(wy)}}getConnectionsRequirements(){return[{provider:`crustdata`,rateLimitRatio:1,rateLimitOperation:`crustdata_realtime_person_enrich`,allowManagedConnection:!0}]}},Ay=Ey,jy={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:Oy,allowedUserConnectionProviders:[`crustdata`],managedProviders:[`crustdata`],deprecatedProviders:[],defaultInputRequirement:Dy(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}}}}},My=`person:profileurl:email:waterfall@1`,Ny=_(`email`),Py=_(`work_email`),Fy=_(`profile_url`),Iy=[`leadmagic`],Ly=[{provider:`leadmagic`}],Ry=r.object({pipe_id:r.literal(My),run_if:S(),connector:w(),config:r.object({providers:D({sectionKey:`general`,defaultProviders:Ly,availableProviders:Iy}),input_fields:z(r.object({[Ny.name]:E({fieldName:Ny.name}),[Py.name]:E({fieldName:Py.name})})),output_fields:R(r.object({[Fy.name]:k({fieldName:Fy.name})}))}).optional()}),zy=e=>H(K(Ny,e),K(Py,e)),By={"person-profileurl-email-waterfall-v1-leadmagic":{provider:`leadmagic`,allowManagedConnection:!0,credits:{default:3.5},mode:`onSuccess`}},Vy=class extends U{pipeId=My;payload;payloadSchema=Ry;billableOperations=By;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 zy(this.payload.config)}getRawOutputFields(){return{[Fy.name]:this.catalogOutput(Fy,{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}))}},Hy=Ry,Uy={pipeId:My,basePipe:W(My),managedProviders:Iy,deprecatedProviders:[],allowedUserConnectionProviders:Iy,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(My),billableOperations:By,inputFieldMode:`static`,outputFieldMode:`static`,defaultInputRequirement:zy(null),defaultPayload:{pipe_id:My,run_if:null,connector:null,config:{providers:Ly,input_fields:{email:{alias:``},work_email:{alias:``}},output_fields:{profile_url:{alias:``,enabled:!0}}}}},Wy=`person:profileurl:name@1`,Gy=_(`name`),Ky=_(`company_name`),qy=_(`location_hint`),Jy=_(`profile_url`),Yy=r.object({pipe_id:r.literal(Wy),connector:T(),run_if:S(),config:r.object({input_fields:z(r.object({[Gy.name]:E({fieldName:Gy.name}),[Ky.name]:E({fieldName:Ky.name}),[qy.name]:E({fieldName:qy.name})})),output_fields:R(r.object({[Jy.name]:k({fieldName:Jy.name})}))}).optional()}),Xy=e=>Oa(V(K(Gy,e)),V(K(Ky,e)),ka(K(qy,e))),Zy={"person-profileurl-name-v1-pipe0":{provider:`pipe0`,allowManagedConnection:!0,credits:{default:.6},mode:`always`}},Qy=class extends U{pipeId=Wy;payload;payloadSchema=Yy;billableOperations=Zy;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[`person-profileurl-name-v1-pipe0`]}getInputRequirement(){return Xy(this.payload.config)}getRawOutputFields(){return{[Jy.name]:this.catalogOutput(Jy)}}getConnectionsRequirements(){return[{provider:`serper`,rateLimitRatio:1,rateLimitOperation:`serper_search`,allowManagedConnection:!0}]}},$y=Yy,eb={pipeId:Wy,basePipe:W(Wy),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(Wy),tags:[B.LINKEDIN],billableOperations:Zy,defaultInputRequirement:Xy(null),inputFieldMode:`static`,outputFieldMode:`static`,defaultPayload:{pipe_id:Wy,connector:void 0,run_if:null,config:{input_fields:{company_name:{alias:``},location_hint:{alias:``},name:{alias:``}},output_fields:{profile_url:{alias:``,enabled:!0}}}}},tb=`person:workemail:profileurl:waterfall@1`,nb=_(`profile_url`),rb=_(`work_email`),ib=_(`email_validation_status`),ab=[`hunter`,`amplemarket`,`findymail`,`leadmagic`,`crustdata`],ob=[{provider:`hunter`},{provider:`amplemarket`},{provider:`leadmagic`},{provider:`findymail`},{provider:`crustdata`}],sb=r.object({pipe_id:r.literal(tb),connector:w(),run_if:S(),config:r.object({providers:D({availableProviders:ab,defaultProviders:ob,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({[nb.name]:E({fieldName:nb.name})})),output_fields:R(r.object({[rb.name]:k({fieldName:rb.name}),[ib.name]:k({fieldName:ib.name})}))}).optional()}),cb=e=>V(K(nb,e)),lb={"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`}},ub=class extends U{pipeId=tb;payload;payloadSchema=sb;billableOperations=lb;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 cb(this.payload.config)}getRawOutputFields(){return{[rb.name]:this.catalogOutput(rb,{isPrimaryOutput:!0}),[ib.name]:this.catalogOutput(ib,{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}))}},db=sb,fb={pipeId:tb,basePipe:W(tb),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(tb),managedProviders:ab,allowedUserConnectionProviders:ab,deprecatedProviders:[],inputFieldMode:`static`,outputFieldMode:`static`,billableOperations:lb,defaultInputRequirement:cb(null),defaultPayload:{pipe_id:tb,connector:null,run_if:null,config:{providers:ob,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}}}}},pb=`person:workemail:waterfall@1`,mb=_(`name`),hb=_(`company_domain`),gb=_(`company_name`),_b=_(`work_email`),vb=_(`email_validation_status`),yb=[`leadmagic`,`prospeo`,`amplemarket`,`hunter`,`icypeas`,`findymail`],bb=[{provider:`leadmagic`},{provider:`prospeo`},{provider:`amplemarket`},{provider:`hunter`},{provider:`icypeas`},{provider:`findymail`}],xb={"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`}},Sb=r.object({pipe_id:r.literal(pb),connector:w(),run_if:S(),config:r.object({providers:D({availableProviders:yb,defaultProviders:bb,sectionKey:`general`,providerCredits:za(xb,yb)}),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({[mb.name]:E({fieldName:mb.name}),[hb.name]:E({fieldName:hb.name}),[gb.name]:E({fieldName:gb.name})})),output_fields:R(r.object({[_b.name]:k({fieldName:_b.name}),[vb.name]:k({fieldName:vb.name})}))}).optional()}),Cb=e=>Oa(V(K(mb,e)),H(K(hb,e),K(gb,e))),wb=class extends U{pipeId=pb;payload;payloadSchema=Sb;billableOperations=xb;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 Cb(this.payload.config)}getRawOutputFields(){return{[_b.name]:this.catalogOutput(_b,{isPrimaryOutput:!0}),[vb.name]:this.catalogOutput(vb,{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=Sb,Eb={pipeId:pb,basePipe:W(pb),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(pb),managedProviders:yb,deprecatedProviders:[],allowedUserConnectionProviders:yb,inputFieldMode:`static`,outputFieldMode:`static`,billableOperations:xb,defaultInputRequirement:Cb(null),defaultPayload:{pipe_id:pb,connector:null,run_if:null,config:{providers:bb,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}}}}},Db=`prompt:run@1`,Ob=`prompt-run-v1`,kb=ri(Ob),Ab=r.object({pipe_id:r.literal(Db),connector:w(),run_if:S(),config:r.object({prompt:Wi({sectionKey:`general`,path:`config.prompt`,placeholder:Z(`prompt`),groupPath:`config.prompt`,supportedTags:[`input`,`output`]}),model:ca({sectionKey:`general`,label:`Model`,path:`config.model`,groupPath:`config.prompt`,billableOperations:kb})})}),jb=class extends U{pipeId=Db;payload;payloadSchema=Ab;billableOperations=kb;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return ai(this.payload.config.model)}estimateBillableOperations(){return[ii(this.payload.config.model,Ob)]}getInputRequirement(){return eh([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=Nr(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 oi(this.payload.config.model)}},Mb=Ab,Nb={pipeId:Db,inputFieldMode:`config`,outputFieldMode:`config`,basePipe:W(Db),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(Db),defaultInputRequirement:null,billableOperations:kb,allowedUserConnectionProviders:si(),managedProviders:si(),deprecatedProviders:[],defaultPayload:{pipe_id:Db,connector:null,run_if:null,config:{model:`openai-gpt-latest`,prompt:{template:``,json_schemas:{}}}}},Pb=`sheet:row:append@1`,Fb=_(`sheet_record_id`),Ib=_(`created_sheet`),Lb=[{label:`Demo leads`,value:`demo-leads`},{label:`Demo companies`,value:`demo-companies`},{label:`Demo contacts`,value:`demo-contacts`}],Rb=[{label:`Demo team`,value:`sandbox-team-1`},{label:`Demo workspace`,value:`sandbox-team-2`}],zb={requires:{connection:`pipe0`},enabledIf:dn(`pipe0`,`Select a pipe0 connection to see sheet suggestions`),options:async({query:e,client:t,environment:n})=>n===`sandbox`?Lb: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`}}},Bb={requires:{connection:`pipe0`},enabledIf:dn(`pipe0`,`Select a pipe0 connection to see team suggestions`),options:async({query:e,client:t,environment:n})=>n===`sandbox`?Rb:t?(await t.teams.list({query:e})).map(e=>({label:e.name,value:e.id})):[],widgets:{provider_logo:{provider:`pipe0`}}},Vb=r.object({pipe_id:r.literal(Pb),connector:qi(),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:zb}),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 unknown fields`,defaultValue:!0,groupPath:`config.advanced`,path:`config.allow_field_creation`,sectionKey:`general`,description:`Add unknown 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:pa({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:Bb,enabledIf:e=>e.config?.allow_sheet_creation?{disabled:!1}:{disabled:!0,message:`Turn on โ€œUpsert sheetsโ€ to specify a team.`}}),included_fields:Yi({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({[Fb.name]:k({fieldName:Fb.name}),[Ib.name]:k({fieldName:Ib.name})}))})}),Hb={"sheet-row-append-v1-pipe0":{provider:`pipe0`,allowManagedConnection:!1,credits:null,mode:null}},Ub=class extends U{pipeId=Pb;payload;payloadSchema=Vb;billableOperations=Hb;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[`sheet-row-append-v1-pipe0`]}getInputRequirement(){let e=[eh([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=$m(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 Oa(...e)}getSecretRequirements(){return Y([this.payload.config.sheet])}getConstantRequirements(){return X([this.payload.config.sheet])}getRawOutputFields(){return{[Fb.name]:this.catalogOutput(Fb),[Ib.name]:this.catalogOutput(Ib)}}getConnectionsRequirements(){return[{provider:`pipe0`,rateLimitRatio:1,rateLimitOperation:`pipe0-sheet-operation`,allowManagedConnection:!0}]}},Wb=Vb,Gb={pipeId:Pb,basePipe:W(Pb),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(Pb),tags:[B.FIELDS],billableOperations:Hb,defaultInputRequirement:null,inputFieldMode:`config`,outputFieldMode:`static`,defaultPayload:{pipe_id:Pb,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}}}}},Kb=`sheet:row:expandappend@1`,qb=_(`sheet_record_ids`),Jb=_(`input_objects`),Yb=r.object({pipe_id:r.literal(Kb),connector:qi(),run_if:S(),config:r.object({sheet:aa({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 unknown object fields to the sheet definition.`,label:`Allow field creation`}),input_fields:z(r.object({[Jb.name]:E({fieldName:Jb.name})})),output_fields:R(r.object({[qb.name]:k({fieldName:qb.name})}))})}),Xb={"sheet-row-expandappend-v1-pipe0":{provider:`pipe0`,allowManagedConnection:!1,credits:null,mode:null}},Zb=e=>V(K(Jb,e)),Qb=class extends U{pipeId=Kb;payload;payloadSchema=Yb;billableOperations=Xb;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[`sheet-row-expandappend-v1-pipe0`]}getInputRequirement(){return Zb(this.payload.config)}getRawOutputFields(){return{[qb.name]:this.catalogOutput(qb)}}getConnectionsRequirements(){return[{provider:`pipe0`,rateLimitRatio:1,rateLimitOperation:`pipe0-sheet-operation`,allowManagedConnection:!0}]}},$b=Yb,ex={pipeId:Kb,basePipe:W(Kb),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(Kb),tags:[B.FIELDS],billableOperations:Xb,defaultInputRequirement:Zb(null),inputFieldMode:`static`,outputFieldMode:`static`,defaultPayload:{pipe_id:Kb,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}}}}},tx=`template:fill@1`,nx=_(`template_output`),rx=r.object({pipe_id:r.literal(tx),connector:w(),run_if:S(),config:r.object({template:Gi({sectionKey:`general`,path:`config.template`,label:`Template`,placeholder:Z(`template`),groupPath:`config.general`,required:!0}),output_fields:R(r.object({[nx.name]:k({fieldName:nx.name})}))})}),ix={"template-fill-v1-pipe0":{credits:{default:0},allowManagedConnection:!0,provider:`pipe0`,mode:`always`}},ax=class extends U{pipeId=tx;payload;payloadSchema=rx;billableOperations=ix;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[`template-fill-v1-pipe0`]}getInputRequirement(){return eh([this.payload.config.template])}getSecretRequirements(){return Y([this.payload.config.template])}getConstantRequirements(){return X([this.payload.config.template])}getRawOutputFields(){return{[nx.name]:this.catalogOutput(nx)}}getConnectionsRequirements(){return[]}},ox=rx,sx={pipeId:tx,inputFieldMode:`config`,outputFieldMode:`config`,basePipe:W(tx),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(tx),defaultInputRequirement:null,billableOperations:ix,allowedUserConnectionProviders:[],managedProviders:[`pipe0`],deprecatedProviders:[],defaultPayload:{pipe_id:tx,connector:null,run_if:null,config:{template:``,output_fields:{template_output:{alias:``,enabled:!0}}}}},cx=`website:extract:firecrawl@1`,lx=_(`website_url`),ux=_(`firecrawl_extract_result`),dx=r.object({pipe_id:r.literal(cx),connector:w(),run_if:S(),config:r.object({json_schema:fa({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:oa({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({[lx.name]:E({fieldName:lx.name})})),output_fields:R(r.object({[ux.name]:k({fieldName:ux.name})}))})}),fx=e=>V(K(lx,e)),px={"website-extract-firecrawl-v1-firecrawl":{allowManagedConnection:!0,provider:`firecrawl`,credits:{default:2,level1:{credits:1,weight:1}},mode:`onSuccess`}},mx=class extends U{pipeId=cx;payload;payloadSchema=dx;billableOperations=px;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`firecrawl`]}estimateBillableOperations(){return[`website-extract-firecrawl-v1-firecrawl`]}getInputRequirement(){return fx(this.payload.config)}getRawOutputFields(){return{[ux.name]:this.catalogOutput(ux)}}getConnectionsRequirements(){return[{provider:`firecrawl`,rateLimitRatio:1,rateLimitOperation:`firecrawl_generic`,allowManagedConnection:!0}]}},hx=dx,gx={pipeId:cx,basePipe:W(cx),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(cx),billableOperations:px,inputFieldMode:`static`,outputFieldMode:`static`,allowedUserConnectionProviders:[`firecrawl`],managedProviders:[`firecrawl`],deprecatedProviders:[],defaultInputRequirement:fx(null),defaultPayload:{pipe_id:cx,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}}}}},_x=`website:maplinks:firecrawl@1`,vx={"website-maplinks-firecrawl-v1-firecrawl":{allowManagedConnection:!0,provider:`firecrawl`,credits:{default:1},mode:`onSuccess`}},yx=_(`website_url`),bx=_(`mapped_links`),xx=r.object({pipe_id:r.literal(_x),connector:w(),run_if:S(),config:r.object({page_limit:ua({label:`Page limit`,info:`Number of pages searched`,groupPath:`config.general`,max:50,min:1,required:!1,path:`config.page_limit`,sectionKey:`general`}),sitemap:sa({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:aa({sectionKey:`general`,label:`Search`,inputType:`text`,info:`Return matching urls`,groupPath:`config.general`,path:`config.search`}).default(``),input_fields:z(r.object({[yx.name]:E({fieldName:yx.name})})),output_fields:R(r.object({[bx.name]:k({fieldName:bx.name})}))}).optional()}),Sx=e=>V(K(yx,e)),Cx=class extends U{pipeId=_x;payload;payloadSchema=xx;billableOperations=vx;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`firecrawl`]}estimateBillableOperations(){return[`website-maplinks-firecrawl-v1-firecrawl`]}getInputRequirement(){return Sx(this.payload.config)}getRawOutputFields(){return{[bx.name]:this.catalogOutput(bx)}}getConnectionsRequirements(){return[{provider:`firecrawl`,rateLimitRatio:1,rateLimitOperation:`firecrawl_map_requests`,allowManagedConnection:!0}]}},wx=xx,Tx={pipeId:_x,basePipe:W(_x),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(_x),billableOperations:vx,inputFieldMode:`static`,outputFieldMode:`static`,allowedUserConnectionProviders:[`firecrawl`],managedProviders:[`firecrawl`],deprecatedProviders:[],defaultInputRequirement:Sx(null),defaultPayload:{pipe_id:_x,run_if:null,connector:null,config:{page_limit:25,sitemap:`include`,search:``,input_fields:{website_url:{alias:``}},output_fields:{mapped_links:{alias:``,enabled:!0}}}}},Ex=`website:scrape:firecrawl@1`,Dx=_(`website_url`),Ox=_(`website_markdown`),kx=_(`website_html`),Ax=_(`website_links`),jx=r.object({pipe_id:r.literal(Ex),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({[Dx.name]:E({fieldName:Dx.name})})),output_fields:R(r.object({[Ox.name]:k({fieldName:Ox.name}),[kx.name]:k({fieldName:kx.name}),[Ax.name]:k({fieldName:Ax.name})}))}).optional()}),Mx=e=>V(K(Dx,e)),Nx={"website-scrape-firecrawl-v1-firecrawl":{allowManagedConnection:!0,provider:`firecrawl`,credits:{default:.1,level1:{credits:.05,weight:1}},mode:`onSuccess`}},Px=class extends U{pipeId=Ex;payload;payloadSchema=jx;billableOperations=Nx;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`firecrawl`]}estimateBillableOperations(){return[`website-scrape-firecrawl-v1-firecrawl`]}getInputRequirement(){return Mx(this.payload.config)}getRawOutputFields(){return{[Ox.name]:this.catalogOutput(Ox),[kx.name]:this.catalogOutput(kx),[Ax.name]:this.catalogOutput(Ax)}}getConnectionsRequirements(){return[{provider:`firecrawl`,rateLimitRatio:1,rateLimitOperation:`firecrawl_generic`,allowManagedConnection:!0}]}},Fx=jx,Ix={pipeId:Ex,basePipe:W(Ex),label:`Scrape`,executionMode:`single`,categories:[`tools`],lifecycle:null,description:`Turn any URL into clean data.`,tags:[B.SCRAPE],docPath:G(Ex),billableOperations:Nx,inputFieldMode:`static`,outputFieldMode:`static`,allowedUserConnectionProviders:[`firecrawl`],managedProviders:[`firecrawl`],deprecatedProviders:[],defaultInputRequirement:Mx(null),defaultPayload:{pipe_id:Ex,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}}}}},Lx=`website:scrapelist:firecrawl@1`,Rx={"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.`}},zx=_(`urls`),Bx=_(`scrape_list_response`),Vx=r.object({pipe_id:r.literal(Lx),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:la({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({[zx.name]:E({fieldName:zx.name})})),output_fields:R(r.object({[Bx.name]:k({fieldName:Bx.name})}))}).optional()}),Hx=e=>V(K(zx,e)),Ux=class extends U{pipeId=Lx;payload;payloadSchema=Vx;billableOperations=Rx;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`firecrawl`]}estimateBillableOperations(){return[,,,,,].fill(`list-url-scrape-firecrawl`)}getInputRequirement(){return Hx(this.payload.config)}getRawOutputFields(){return{[Bx.name]:this.catalogOutput(Bx)}}getConnectionsRequirements(){return[{provider:`firecrawl`,rateLimitRatio:1,rateLimitOperation:`firecrawl_generic`,allowManagedConnection:!0}]}},Wx=Vx,Gx={pipeId:Lx,basePipe:W(Lx),label:`Scrape list`,executionMode:`single`,categories:[`tools`],lifecycle:null,description:`Turn a list of URLs into clean scraped data.`,tags:[B.SCRAPE],docPath:G(Lx),billableOperations:Rx,inputFieldMode:`static`,outputFieldMode:`static`,allowedUserConnectionProviders:[`firecrawl`],managedProviders:[`firecrawl`],deprecatedProviders:[],defaultInputRequirement:Hx(null),defaultPayload:{pipe_id:Lx,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}}}}},Kx=[`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`],qx=r.enum(Kx);function Jx(e,t=32){return`https://www.google.com/s2/favicons?sz=${t}&domain=${e.replace(/^(https?:\/\/)?(www\.)?/,``)}`}function Yx(e,t){return e==null?void 0:t(e)}function Xx(){return Zx({companyWebsiteUrl:`linkedin.com`,entity:`LinkedIn`})}function Zx({companyWebsiteUrl:e,entity:t}){if(e)return{image_url:Jx(e),entity:t||e}}function Qx(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}function $x(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 eS(e,t){let n={name:e,config:t};return Ia.hashObject(n)}var tS=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 eS(this.searchId,this.payload)}};function nS(e){return e.split(`@`)[0]}function rS(e){return`/docs/search-catalog/${nS(e)}/${e.split(`@`)[1]}`}const iS=`companies:profiles:amplemarket@2`,aS=_(`company_name`),oS=_(`company_domain`),sS=_(`company_description`),cS=_(`company_profile_url`),lS=_(`amplemarket_company_match`),uS=r.object({search_id:r.literal(iS),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`}).default(100),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({[aS.name]:N({fieldName:aS.name}),[oS.name]:N({fieldName:oS.name}),[sS.name]:N({fieldName:sS.name}),[cS.name]:N({fieldName:cS.name}),[lS.name]:N({fieldName:lS.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:Jx(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:ha({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.headcount`,disableSearch:!1,options:m(`amplemarket.company_size`),label:`Company sizes`,required:!1,description:``,groupPath:`config.filters.company_size`}),headcount_growth_l6m_in_percent:ha({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=>{$x(e.value)&&e.issues.push({code:`custom`,message:`You must set at least one filter.`,input:e.value})})})}),dS={default:{input:[{fields:[]}]}},fS=class extends tS{searchId=iS;schema=uS;payload;constructor(e){super(),this.payload=this.validatePayload(e)}getRawOutputFields(){return{[aS.name]:this.catalogOutput(aS),[oS.name]:this.catalogOutput(oS),[sS.name]:this.catalogOutput(sS),[cS.name]:this.catalogOutput(cS),[lS.name]:this.catalogOutput(lS)}}getConnectionsRequirements(){return[{provider:`amplemarket`,rateLimitOperation:`amplemarket_company_search`,rateLimitRatio:1,allowManagedConnection:!0}]}getDedupConfig(){return dS}},pS=uS,mS={searchId:iS,billableOperation:`companies-profiles-amplemarket-v2`,baseSearch:nS(`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:rS(iS),cost:{mode:`per_page`,credits:{default:2}},provider:`amplemarket`,defaultPayload:{search_id:iS,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:[]}}}}},hS=`companies:profiles:crustdata@2`,gS=_(`company_name`),_S=_(`company_domain`),vS=_(`company_description`),yS=_(`company_profile_url`),bS=_(`crustdata_company_match`),xS=r.object({search_id:r.literal(hS),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`}).default(100),cursor:xa({path:`config.cursor`,groupPath:`config.pagination`,inputType:`text`,label:`Cursor`,sectionKey:`pagination`,description:`Pagination cursor`}),output_fields:R(r.object({[gS.name]:N({fieldName:gS.name}),[_S.name]:N({fieldName:_S.name}),[vS.name]:N({fieldName:vS.name}),[yS.name]:N({fieldName:yS.name}),[bS.name]:N({fieldName:bS.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:_a({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:_a({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:Jx(e.value)}})})})}).check(e=>{$x(e.value)&&e.issues.push({code:`custom`,message:`You must set at least one filter.`,input:e.value})})})}),SS={default:{input:[{fields:[]}]}},CS=class extends tS{searchId=hS;schema=xS;payload;constructor(e){super(),this.payload=this.validatePayload(e)}getRawOutputFields(){return{[gS.name]:this.catalogOutput(gS),[_S.name]:this.catalogOutput(_S),[vS.name]:this.catalogOutput(vS),[yS.name]:this.catalogOutput(yS),[bS.name]:this.catalogOutput(bS)}}getConnectionsRequirements(){return[{provider:`crustdata`,rateLimitOperation:`crustdata_company_db_search`,rateLimitRatio:1,allowManagedConnection:!0}]}getDedupConfig(){return SS}},wS=xS,TS={searchId:hS,billableOperation:`companies-profiles-crustdata-v2`,baseSearch:nS(`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:rS(hS),cost:{mode:`per_page`,credits:{default:2}},provider:`crustdata`,defaultPayload:{search_id:hS,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:[]}}}}},ES=`companies:profiles:amplemarket@1`,DS=_(`company_name`),OS=_(`company_website_url`),kS=_(`company_description`),AS=_(`company_profile_url`),jS=_(`amplemarket_company_match`),MS=r.object({search_id:r.literal(ES),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({[DS.name]:N({fieldName:DS.name}),[OS.name]:N({fieldName:OS.name}),[kS.name]:N({fieldName:kS.name}),[AS.name]:N({fieldName:AS.name}),[jS.name]:N({fieldName:jS.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:ha({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:ha({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=>{$x(e.value)&&e.issues.push({code:`custom`,message:`You must set at least one filter.`,input:e.value})})})}),NS={default:{input:[{fields:[]}]}},PS=class extends tS{searchId=ES;schema=MS;payload;constructor(e){super(),this.payload=this.validatePayload(e)}getRawOutputFields(){return{[DS.name]:this.catalogOutput(DS),[OS.name]:this.catalogOutput(OS),[kS.name]:this.catalogOutput(kS),[AS.name]:this.catalogOutput(AS),[jS.name]:this.catalogOutput(jS)}}getConnectionsRequirements(){return[{provider:`amplemarket`,rateLimitOperation:`amplemarket_company_search`,rateLimitRatio:1,allowManagedConnection:!0}]}getDedupConfig(){return NS}},FS=MS,IS={searchId:ES,billableOperation:`companies-profiles-amplemarket-v1`,baseSearch:nS(`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:rS(ES),cost:{mode:`per_page`,credits:{default:2}},provider:`amplemarket`,defaultPayload:{search_id:ES,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:[]}}}}},LS=`companies:profiles:crustdata@1`,RS=_(`company_name`),zS=_(`company_website_url`),BS=_(`company_description`),VS=_(`company_profile_url`),HS=_(`crustdata_company_match`),US=r.object({search_id:r.literal(LS),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:xa({path:`config.cursor`,groupPath:`config.pagination`,inputType:`text`,label:`Cursor`,sectionKey:`pagination`,description:`Pagination cursor`}),output_fields:R(r.object({[RS.name]:N({fieldName:RS.name}),[zS.name]:N({fieldName:RS.name}),[BS.name]:N({fieldName:BS.name}),[VS.name]:N({fieldName:VS.name}),[HS.name]:N({fieldName:HS.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:_a({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:_a({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=>{$x(e.value)&&e.issues.push({code:`custom`,message:`You must set at least one filter.`,input:e.value})})})}),WS={default:{input:[{fields:[]}]}},GS=class extends tS{searchId=LS;schema=US;payload;constructor(e){super(),this.payload=this.validatePayload(e)}getRawOutputFields(){return{[RS.name]:this.catalogOutput(RS),[zS.name]:this.catalogOutput(zS),[BS.name]:this.catalogOutput(BS),[VS.name]:this.catalogOutput(VS),[HS.name]:this.catalogOutput(HS)}}getConnectionsRequirements(){return[{provider:`crustdata`,rateLimitOperation:`crustdata_company_db_search`,rateLimitRatio:1,allowManagedConnection:!0}]}getDedupConfig(){return WS}},KS=US,qS={searchId:LS,billableOperation:`companies-profiles-crustdata-v1`,baseSearch:nS(`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:rS(LS),cost:{mode:`per_page`,credits:{default:2}},provider:`crustdata`,defaultPayload:{search_id:LS,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:[]}}}}},JS=`people:profiles:amplemarket@1`,YS=_(`name`),XS=_(`company_website_url`),ZS=_(`profile_url`),QS=_(`job_title`),$S=_(`amplemarket_person_match`),eC=r.object({search_id:r.literal(JS),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({[YS.name]:N({fieldName:YS.name}),[XS.name]:N({fieldName:XS.name}),[ZS.name]:N({fieldName:ZS.name}),[QS.name]:N({fieldName:QS.name}),[$S.name]:N({fieldName:$S.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:ha({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=>{$x(e.value)&&e.issues.push({code:`custom`,message:`You must set at least one filter.`,input:e.value})})})}),tC={default:{input:[{fields:[]}]}},nC=class extends tS{searchId=JS;schema=eC;payload;constructor(e){super(),this.payload=this.validatePayload(e)}getRawOutputFields(){return{[YS.name]:this.catalogOutput(YS),[XS.name]:this.catalogOutput(XS),[ZS.name]:this.catalogOutput(ZS),[QS.name]:this.catalogOutput(QS),[$S.name]:this.catalogOutput($S)}}getConnectionsRequirements(){return[{provider:`amplemarket`,rateLimitOperation:`amplemarket_people_search`,rateLimitRatio:1,allowManagedConnection:!0}]}getDedupConfig(){return tC}},rC=eC,iC={searchId:JS,billableOperation:`people-profiles-amplemarket-v1`,baseSearch:nS(`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:rS(JS),cost:{mode:`per_page`,credits:{default:3},info:`1 page = 100 records; 200 results = 2 pages`},provider:`amplemarket`,defaultPayload:{search_id:JS,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:[]}}}},aC=`people:profiles:crustdata@1`,oC=_(`name`),sC=_(`company_website_url`),cC=_(`profile_url`),lC=_(`job_title`),uC=_(`crustdata_person_match`),dC=r.object({search_id:r.literal(aC),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:xa({path:`config.cursor`,groupPath:`config.pagination`,inputType:`text`,label:`Cursor`,sectionKey:`pagination`,description:`Pagination cursor`}),output_fields:R(r.object({[oC.name]:N({fieldName:oC.name}),[sC.name]:N({fieldName:sC.name}),[cC.name]:N({fieldName:cC.name}),[lC.name]:N({fieldName:lC.name}),[uC.name]:N({fieldName:uC.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:ba({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=>{$x(e.value)&&e.issues.push({code:`custom`,message:`You must set at least one filter.`,input:e.value})})})}),fC={default:{input:[{fields:[]}]}},pC=class extends tS{searchId=aC;schema=dC;payload;constructor(e){super(),this.payload=this.validatePayload(e)}getRawOutputFields(){return{[oC.name]:this.catalogOutput(oC),[sC.name]:this.catalogOutput(sC),[cC.name]:this.catalogOutput(cC),[lC.name]:this.catalogOutput(lC),[uC.name]:this.catalogOutput(uC)}}getConnectionsRequirements(){return[{provider:`crustdata`,rateLimitOperation:`crustdata_people_db_search`,rateLimitRatio:1,allowManagedConnection:!0}]}getDedupConfig(){return fC}},mC=dC,hC={searchId:aC,billableOperation:`people-profiles-crustdata-v1`,baseSearch:nS(`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:rS(aC),cost:{mode:`per_page`,credits:{default:5},info:`1 page = 100 records; 200 results = 2 pages`},provider:`crustdata`,defaultPayload:{search_id:aC,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:[]}}}}},gC=`people:profiles:amplemarket@2`,_C=_(`name`),vC=_(`company_domain`),yC=_(`profile_url`),bC=_(`job_title`),xC=_(`amplemarket_person_match`),SC=r.object({search_id:r.literal(gC),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`}).default(50),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({[_C.name]:N({fieldName:_C.name}),[vC.name]:N({fieldName:vC.name}),[yC.name]:N({fieldName:yC.name}),[bC.name]:N({fieldName:bC.name}),[xC.name]:N({fieldName:xC.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:Jx(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:ha({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=>{$x(e.value)&&e.issues.push({code:`custom`,message:`You must set at least one filter.`,input:e.value})})})}),CC={default:{input:[{fields:[]}]}},wC=class extends tS{searchId=gC;schema=SC;payload;constructor(e){super(),this.payload=this.validatePayload(e)}getRawOutputFields(){return{[_C.name]:this.catalogOutput(_C),[vC.name]:this.catalogOutput(vC),[yC.name]:this.catalogOutput(yC),[bC.name]:this.catalogOutput(bC),[xC.name]:this.catalogOutput(xC)}}getConnectionsRequirements(){return[{provider:`amplemarket`,rateLimitOperation:`amplemarket_people_search`,rateLimitRatio:1,allowManagedConnection:!0}]}getDedupConfig(){return CC}},TC=SC,EC={searchId:gC,billableOperation:`people-profiles-amplemarket-v2`,baseSearch:nS(`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:rS(gC),cost:{mode:`per_page`,credits:{default:3},info:`1 page = 100 records; 200 results = 2 pages`},provider:`amplemarket`,defaultPayload:{search_id:gC,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:[]}}}},DC=`people:profiles:crustdata@2`,OC=_(`name`),kC=_(`company_domain`),AC=_(`profile_url`),jC=_(`job_title`),MC=_(`crustdata_person_match`),NC=r.object({search_id:r.literal(DC),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`}).default(100),cursor:xa({path:`config.cursor`,groupPath:`config.pagination`,inputType:`text`,label:`Cursor`,sectionKey:`pagination`,description:`Pagination cursor`}),output_fields:R(r.object({[OC.name]:N({fieldName:OC.name}),[kC.name]:N({fieldName:kC.name}),[AC.name]:N({fieldName:AC.name}),[jC.name]:N({fieldName:jC.name}),[MC.name]:N({fieldName:MC.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:Jx(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:Jx(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:ba({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=>{$x(e.value)&&e.issues.push({code:`custom`,message:`You must set at least one filter.`,input:e.value})})})}),PC={default:{input:[{fields:[]}]}},FC=class extends tS{searchId=DC;schema=NC;payload;constructor(e){super(),this.payload=this.validatePayload(e)}getRawOutputFields(){return{[OC.name]:this.catalogOutput(OC),[kC.name]:this.catalogOutput(kC),[AC.name]:this.catalogOutput(AC),[jC.name]:this.catalogOutput(jC),[MC.name]:this.catalogOutput(MC)}}getConnectionsRequirements(){return[{provider:`crustdata`,rateLimitOperation:`crustdata_people_db_search`,rateLimitRatio:1,allowManagedConnection:!0}]}getDedupConfig(){return PC}},IC=NC,LC={searchId:DC,billableOperation:`people-profiles-crustdata-v2`,baseSearch:nS(`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:rS(DC),cost:{mode:`per_page`,credits:{default:5},info:`1 page = 100 records; 200 results = 2 pages`},provider:`crustdata`,defaultPayload:{search_id:DC,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:[]}}}}},RC={"people:profiles:crustdata@1":pC,"people:profiles:crustdata@2":FC,"companies:profiles:crustdata@1":GS,"companies:profiles:crustdata@2":CS,"people:profiles:amplemarket@1":nC,"people:profiles:amplemarket@2":wC,"companies:profiles:amplemarket@1":PS,"companies:profiles:amplemarket@2":fS},zC={"people:profiles:crustdata@1":mC,"people:profiles:crustdata@2":IC,"companies:profiles:crustdata@1":KS,"companies:profiles:crustdata@2":wS,"people:profiles:amplemarket@1":rC,"people:profiles:amplemarket@2":TC,"companies:profiles:amplemarket@1":FS,"companies:profiles:amplemarket@2":pS},BC={"people:profiles:crustdata@1":hC,"people:profiles:crustdata@2":LC,"companies:profiles:crustdata@1":qS,"companies:profiles:crustdata@2":TS,"people:profiles:amplemarket@1":iC,"people:profiles:amplemarket@2":EC,"companies:profiles:amplemarket@1":IS,"companies:profiles:amplemarket@2":mS};function VC(e){return RC[e]}const HC=t.discriminatedUnion(`search_id`,Object.values(zC).map(e=>e)).openapi(`SearchPayloadSchema`);function UC(e,t){return Ta(t,BC[e].defaultPayload)}const WC=t.preprocess(e=>{if(!e||typeof e!=`object`||!(`search_id`in e))return e;let t=UC(e.search_id);return t?{...e,config:Ta(e?.config||{},t.config)}:e},HC),GC=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:WC}).openapi(`SearchRequestSchema`),KC=Rn,qC=t.object({value:Tn,status:wn,type:Sn.optional(),format:Vn.nullable().optional(),resolved_by:qn.nullable().optional(),widgets:Ln.optional()}),JC=t.record(t.string(),qC.nullable());function YC(e){return zC[e]}const XC=t.enum([`cursor`,`page_number`]),ZC=t.object({id:t.string(),status:t.enum([`completed`,`failed`,`pending`,`processing`]),search_id:qx,errors:t.array(KC),results:t.array(JC),organization_id:t.string(),next_page:WC.nullable(),pagination_type:XC.nullable(),total_pages:t.int32().nullable()}).openapi(`SearchResponseSchema`);function QC(e){let t=e.split(`@`)[1];if(!t)throw Error(`No search version found`);return Number(t)}function $C(){let e={};for(let t of Object.values(BC)){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=QC(e.searchId);return QC(t.searchId)-n})}),e}function ew(e){return BC[e]}const tw=$C();function nw(e){let t=[];for(let[n,r]of Object.entries(tw)){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:QC(i.searchId)})}return t}function rw(e){return Object.keys(BC[e].defaultPayload.config.output_fields)}function iw(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 rw(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:tw}}function aw(e){let t=ew(e);return{[t.provider]:t.cost.credits.default}}const ow={"prompt:run@1":jb,"company:newssummary:website@1":El,"company:newssummary:domain@1":bs,"company:techstack:builtwith@1":mu,"company:techstack:builtwith@2":qs,"company:websiteurl:email@1":Cu,"company:domain:workemail@1":$a,"company:funding:leadmagic@1":yc,"company:funding:leadmagic@2":mo,"people:workemail:waterfall@1":Rm,"person:workemail:waterfall@1":wb,"people:email:iswork@1":Mu,"email:iswork@1":qm,"people:name:split@1":cf,"person:name:split@1":Bv,"people:validate:email:zerobounce@1":dm,"people:email:validate:zerobounce@2":Zu,"email:validate:zerobounce@1":Sh,"people:mobilenumber:workemail:waterfall@1":Zd,"person:name:join@1":Av,"company:overview@1":Vl,"company:overview@2":ru,"company:overview@3":Is,"json:extract:multi@1":Cg,"company:lookalikes:companyenrich@1":Xc,"company:lookalikes:companyenrich@2":Wo,"company:match:logodev@1":_l,"company:match:logodev@2":ds,"person:posts:crustdata@1":cy,"people:profile:workemail:crustdata@1":Up,"person:profile:workemail:crustdata@1":ky,"people:identity:email:waterfall@1":vd,"person:identity:email:waterfall@1":M_,"person:identity:amplemarket@1":g_,"email:send:resend@1":fh,"contact:create:resend@1":ac,"email:send:gmail@1":ah,"email:write@1":Mh,"fields:merge@1":cg,"field:slugify@1":Xh,"field:domainify@1":Vh,"http:request@1":_g,"template:fill@1":ax,"message:send:slack@1":jg,"message:write@1":zg,"people:personalemail:profile:waterfall@1":bf,"person:personalemail:profileurl:waterfall@1":Qv,"website:scrape:firecrawl@1":Px,"website:scrapelist:firecrawl@1":Ux,"website:extract:firecrawl@1":mx,"website:maplinks:firecrawl@1":Cx,"sheet:row:append@1":Ub,"sheet:row:expandappend@1":Qb,"people:match:role:waterfall@1":kd,"person:match:role:waterfall@1":Q_,"company:match:crustdata@1":al,"company:match:crustdata@2":$o,"person:match:amplemarket@1":V_,"company:identity@2":Vc,"company:identity@3":To,"company:identity:crustdata@1":Fo,"people:phone:profile:waterfall@1":jf,"person:mobile:profileurl:waterfall@1":lv,"person:devprofileurl:profileurl:waterfall@1":Zg,"people:phone:workemail:waterfall@1":Hf,"person:mobile:workemail:waterfall@1":bv,"people:profile:waterfall@1":Np,"person:profile:waterfall@1":yy,"people:profileurl:email:waterfall@1":tm,"person:profileurl:email:waterfall@1":Vy,"person:profileurl:name@1":Qy,"people:email:validate:zerobounce@1":Vu,"person:email:validate:millionverifier@1":s_,"people:workemail:profileurl:waterfall@1":wm,"person:workemail:profileurl:waterfall@1":ub,"company:identity@1":Ac,"people:professionalprofile:waterfall@1":$f,"people:professionalprofileurl:name@1":Sp,"people:professionalprofileurl:email:waterfall@1":dp,"people:mobilenumber:professionalprofile:waterfall@1":Bd},sw={"prompt:run@1":Mb,"company:newssummary:website@1":Dl,"company:newssummary:domain@1":xs,"company:techstack:builtwith@1":hu,"company:techstack:builtwith@2":Js,"company:websiteurl:email@1":wu,"company:domain:workemail@1":eo,"company:funding:leadmagic@1":bc,"company:funding:leadmagic@2":ho,"people:workemail:waterfall@1":zm,"person:workemail:waterfall@1":Tb,"people:email:iswork@1":Nu,"email:iswork@1":Jm,"people:name:split@1":lf,"person:name:split@1":Vv,"people:validate:email:zerobounce@1":fm,"people:email:validate:zerobounce@2":Qu,"email:validate:zerobounce@1":Ch,"people:mobilenumber:workemail:waterfall@1":Qd,"person:name:join@1":jv,"company:overview@1":Hl,"company:overview@2":iu,"company:overview@3":Ls,"json:extract:multi@1":wg,"email:write@1":Nh,"fields:merge@1":lg,"field:slugify@1":Zh,"field:domainify@1":Hh,"http:request@1":vg,"email:send:resend@1":ph,"contact:create:resend@1":oc,"company:lookalikes:companyenrich@1":Zc,"company:lookalikes:companyenrich@2":Go,"company:match:logodev@1":vl,"company:match:logodev@2":fs,"person:posts:crustdata@1":ly,"people:profile:workemail:crustdata@1":Wp,"person:profile:workemail:crustdata@1":Ay,"people:identity:email:waterfall@1":yd,"person:identity:email:waterfall@1":N_,"company:match:crustdata@1":ol,"company:match:crustdata@2":es,"person:identity:amplemarket@1":__,"message:send:slack@1":Mg,"email:send:gmail@1":oh,"message:write@1":Bg,"template:fill@1":ox,"website:scrape:firecrawl@1":Fx,"website:scrapelist:firecrawl@1":Wx,"website:extract:firecrawl@1":hx,"website:maplinks:firecrawl@1":wx,"sheet:row:append@1":Wb,"sheet:row:expandappend@1":$b,"people:match:role:waterfall@1":Ad,"person:match:role:waterfall@1":$_,"company:identity@2":Hc,"company:identity@3":Eo,"company:identity:crustdata@1":Io,"people:phone:profile:waterfall@1":Mf,"person:mobile:profileurl:waterfall@1":uv,"person:devprofileurl:profileurl:waterfall@1":Qg,"people:personalemail:profile:waterfall@1":xf,"person:personalemail:profileurl:waterfall@1":$v,"people:profile:waterfall@1":Pp,"person:profile:waterfall@1":by,"people:profileurl:email:waterfall@1":nm,"person:profileurl:email:waterfall@1":Hy,"person:profileurl:name@1":$y,"people:email:validate:zerobounce@1":Hu,"person:email:validate:millionverifier@1":c_,"people:phone:workemail:waterfall@1":Uf,"person:mobile:workemail:waterfall@1":xv,"people:workemail:profileurl:waterfall@1":Tm,"person:workemail:profileurl:waterfall@1":db,"person:match:amplemarket@1":H_,"company:identity@1":jc,"people:professionalprofile:waterfall@1":ep,"people:professionalprofileurl:name@1":Cp,"people:professionalprofileurl:email:waterfall@1":fp,"people:mobilenumber:professionalprofile:waterfall@1":Vd},cw={"prompt:run@1":Nb,"company:newssummary:website@1":Ol,"company:newssummary:domain@1":Ss,"company:techstack:builtwith@1":gu,"company:techstack:builtwith@2":Ys,"company:websiteurl:email@1":Tu,"company:domain:workemail@1":to,"company:funding:leadmagic@1":xc,"company:funding:leadmagic@2":go,"people:workemail:waterfall@1":Bm,"person:workemail:waterfall@1":Eb,"people:email:iswork@1":Pu,"email:iswork@1":Ym,"people:name:split@1":uf,"person:name:split@1":Hv,"people:validate:email:zerobounce@1":pm,"people:mobilenumber:workemail:waterfall@1":$d,"person:name:join@1":Mv,"company:overview@1":Ul,"company:overview@2":au,"company:overview@3":Rs,"json:extract:multi@1":Tg,"email:send:resend@1":mh,"contact:create:resend@1":sc,"email:send:gmail@1":sh,"message:send:slack@1":Ng,"message:write@1":Vg,"email:write@1":Ph,"template:fill@1":sx,"fields:merge@1":ug,"field:slugify@1":Qh,"field:domainify@1":Uh,"http:request@1":yg,"sheet:row:append@1":Gb,"sheet:row:expandappend@1":ex,"company:lookalikes:companyenrich@1":Qc,"company:lookalikes:companyenrich@2":Ko,"people:match:role:waterfall@1":jd,"person:match:role:waterfall@1":ev,"company:match:logodev@1":yl,"company:match:logodev@2":ps,"person:posts:crustdata@1":uy,"people:profile:workemail:crustdata@1":Gp,"person:profile:workemail:crustdata@1":jy,"people:workemail:profileurl:waterfall@1":Em,"person:workemail:profileurl:waterfall@1":fb,"people:identity:email:waterfall@1":bd,"person:identity:email:waterfall@1":P_,"company:match:crustdata@1":sl,"company:match:crustdata@2":ts,"person:identity:amplemarket@1":v_,"email:validate:zerobounce@1":wh,"person:email:validate:millionverifier@1":l_,"people:personalemail:profile:waterfall@1":Sf,"person:personalemail:profileurl:waterfall@1":ey,"people:email:validate:zerobounce@1":Uu,"people:email:validate:zerobounce@2":$u,"people:phone:workemail:waterfall@1":Wf,"person:mobile:workemail:waterfall@1":Sv,"website:scrape:firecrawl@1":Ix,"website:scrapelist:firecrawl@1":Gx,"website:extract:firecrawl@1":gx,"website:maplinks:firecrawl@1":Tx,"person:match:amplemarket@1":U_,"company:identity@2":Uc,"company:identity@3":Do,"company:identity:crustdata@1":Lo,"people:phone:profile:waterfall@1":Nf,"person:mobile:profileurl:waterfall@1":dv,"person:devprofileurl:profileurl:waterfall@1":$g,"people:profile:waterfall@1":Fp,"person:profile:waterfall@1":xy,"people:profileurl:email:waterfall@1":rm,"person:profileurl:email:waterfall@1":Uy,"person:profileurl:name@1":eb,"company:identity@1":Mc,"people:professionalprofile:waterfall@1":tp,"people:professionalprofileurl:name@1":wp,"people:professionalprofileurl:email:waterfall@1":pp,"people:mobilenumber:professionalprofile:waterfall@1":Hd};function lw(e){return e.defaultPayload?.config?.output_fields?Object.keys(e.defaultPayload?.config?.output_fields||{}):[]}function uw(e){return ow[e]}function dw(e){return cw[e].defaultPayload}function fw(e){return sw[e]}const pw=r.discriminatedUnion(`pipe_id`,Object.values(sw)).openapi(`PipePayload`),mw=r.preprocess(e=>{if(!e||typeof e!=`object`||!(`pipe_id`in e))return e;try{let t=dw(bn.parse(e.pipe_id));return t?{...e,config:Ta(e?.config||{},t.config)}:e}catch{return e}},pw);function hw(e){return cw[e]}function gw(e,t){let n=hw(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 _w(e){let t=e.split(`@`)[1];if(!t)throw Error(`No pipe version found`);return Number(t)}function vw(){let e={};for(let t of Object.values(cw)){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=_w(e.pipeId);return _w(t.pipeId)-n})}),e}const yw=e=>{let t=hw(e),n=new Set(t.deprecatedProviders);return Array.from(new Set([...t.managedProviders,...t.allowedUserConnectionProviders])).filter(e=>!n.has(e))},bw=vw();function xw(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
- `);throw Error(`Catalog has ${r.length} duplicate billable-operation key(s):\n${e}`)}}xw(cw,BC);function Sw(e){let t=[];for(let[n,r]of Object.entries(bw)){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:_w(i.pipeId)})}return t}function Cw(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=yw(e.defaultPayload.pipe_id);for(let n of t)o[n]??=[],o[n].push(e.defaultPayload.pipe_id);for(let t of lw(e))i[t]??=[],i[t].push(e.defaultPayload.pipe_id);if(e.defaultInputRequirement)for(let{field:t}of ja(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:bw}}const ww=r.object({id:r.string(),organization_id:r.string(),order:r.array(Cn),field_definitions:er,errors:r.array(Rn),records:r.record(Cn,Zn),status:r.enum([`completed`,`failed`,`pending`,`processing`])}).openapi(`PipesResponseSchema`),Tw=r.object({environment:vn.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`),Ew=r.object({config:Tw.openapi(`PipesRequestConfig`),field_annotations:Un.optional().openapi(`PipesFieldAnnotations`),pipes:r.array(pw),input:r.array(Xn.openapi(`PipesInputSchema`)),scopes:r.array(r.string()).optional()});function Dw(e){let t=hw(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 Ow={"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}},kw={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`}},Aw={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 jw(e){let t=fw(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 Mw({pipePayload:e,validationContext:t,sectionOrder:n=Aw,store:r,groupPathMatch:i=Ow,formResolvers:a}){let o=fw(e.pipe_id),s=La(e.pipe_id,e.config||{});return Hi({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:hw(e.pipe_id),hash:s}):i},sectionOrder:n,sectionMap:kw,store:r,formResolvers:a})}const Nw={"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}},Pw={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`}},Fw={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 Iw({searchPayload:e,sectionOrder:t=Fw,formContext:n,groupPathMatch:r=Nw,formResolvers:i}){return Hi({schema:YC(e.search_id),groupPathMatch:r,extractFromSchema:e=>b.get(e),sectionOrder:t,sectionMap:Pw,store:n,formResolvers:i})}const Lw=new Proxy({},{get:(e,t)=>e=>e.type===t}),Rw=`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(`.`),zw=r.enum(Rw),Bw=r.object({provider_logo:r.object({provider:_n}).optional(),emoji:r.object({char:r.string()}).optional(),icon:r.object({key:zw}).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()}),Vw=`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(Vw);const Hw=r.object({value:r.string(),label:r.string(),widgets:Bw.optional()}),Uw=r.object({field_options:r.record(r.string(),r.object({options:r.array(Hw)}))}),Ww=[{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}],Gw=new Map(Ww.map(e=>[e.id,e]));function Kw(e){return Gw.get(e)}function qw(){return Ww}const Jw={"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:`
73
+ }`,inputType:`text`,maxLength:1e6,expectedTagType:`string`,expectedTagFormat:`text`,multiline:!0}),headers:ia({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:ga({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({[_g.name]:k({fieldName:_g.name}),[vg.name]:k({fieldName:vg.name}),[yg.name]:k({fieldName:yg.name})}))})}),xg={"http-request-v1-pipe0":{provider:`pipe0`,allowManagedConnection:!0,credits:{default:.001},mode:`always`}},Sg=class extends U{pipeId=gg;payload;payloadSchema=bg;billableOperations=xg;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 ih(this.getTemplatedFields(),{expectedType:`string`,expectedFormat:`text`})}getSecretRequirements(){return Y(this.getTemplatedFields())}getConstantRequirements(){return ah(this.getTemplatedFields())}getRawOutputFields(){return{[_g.name]:this.catalogOutput(_g),[vg.name]:this.catalogOutput(vg),[yg.name]:this.catalogOutput(yg)}}getConnectionsRequirements(){return[{provider:`pipe0`,rateLimitRatio:1,rateLimitOperation:`pipe0_logic`,allowManagedConnection:!0}]}},Cg=bg,wg={pipeId:gg,basePipe:W(gg),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(gg),billableOperations:xg,defaultInputRequirement:null,inputFieldMode:`config`,outputFieldMode:`static`,allowedUserConnectionProviders:[],managedProviders:[`pipe0`],deprecatedProviders:[],defaultPayload:{pipe_id:gg,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}}}}},Tg=`json:extract:multi@1`,Eg=r.object({pipe_id:r.literal(Tg),run_if:S(),connector:T(),config:r.object({json_extraction:xi()})}),Dg={"json-extract-multi-v1-pipe0":{provider:`pipe0`,allowManagedConnection:!0,credits:{default:0},mode:`always`}},Og=class extends U{pipeId=Tg;payload;payloadSchema=Eg;billableOperations=Dg;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[]}},kg=Eg,Ag={pipeId:Tg,basePipe:W(Tg),inputFieldMode:`config`,outputFieldMode:`config`,label:`JSON extract`,executionMode:`single`,categories:[`tools`],lifecycle:null,description:`Extract nested JSON properties into new output fields.`,docPath:G(Tg),tags:[B.JSON],managedProviders:[`pipe0`],deprecatedProviders:[],allowedUserConnectionProviders:[],billableOperations:Dg,defaultInputRequirement:null,defaultPayload:{pipe_id:Tg,run_if:null,connector:null,config:{json_extraction:{field_name:``,extractions:[]}}}},jg=`message:send:slack@1`,Mg=_(`slack_message_success`),Ng=[{label:`#demo-general`,value:`C0SANDBOX001`},{label:`#demo-alerts`,value:`C0SANDBOX002`}],Pg=r.object({pipe_id:r.literal(jg),connector:Zi(),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 Ng;if(!t)throw new ec.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 ec.HttpError({msg:e})}let i=await r.json();if(!i.ok)throw new ec.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({[Mg.name]:k({fieldName:Mg.name})}))})}),Fg={"message-send-slack-v1-slack":{allowManagedConnection:!1,provider:`slack`,credits:null,mode:null}},Ig=class extends U{pipeId=jg;payload;payloadSchema=Pg;billableOperations=Fg;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 ih(this.getTemplatedFields())}getSecretRequirements(){return Y(this.getTemplatedFields())}getConstantRequirements(){return ah(this.getTemplatedFields())}getRawOutputFields(){return{[Mg.name]:this.catalogOutput(Mg)}}getConnectionsRequirements(){return[{provider:`slack`,rateLimitRatio:1,rateLimitOperation:`slack_post_message`,allowManagedConnection:!1}]}},Lg=Pg,Rg={pipeId:jg,basePipe:W(jg),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(jg),billableOperations:Fg,inputFieldMode:`config`,outputFieldMode:`static`,allowedUserConnectionProviders:[`slack`],managedProviders:[],deprecatedProviders:[],defaultInputRequirement:null,defaultPayload:{pipe_id:jg,connector:{strategy:`first`,connections:[]},run_if:null,config:{channel_id:``,message:``,output_fields:{slack_message_success:{alias:``,enabled:!0}}}}},zg=`message:write@1`,Bg=_(`message`),Vg=`message-write-v1`,Hg=si(Vg),Ug=r.object({pipe_id:r.literal(zg),connector:w(),run_if:S(),config:r.object({template:Yi({sectionKey:`general`,label:`Template`,path:`config.template`,placeholder:X(`prompt`),groupPath:`config.prompt`,required:!0}),model:fa({sectionKey:`general`,label:`Model`,path:`config.model`,groupPath:`config.prompt`,billableOperations:Hg}),output_fields:R(r.object({[Bg.name]:k({fieldName:Bg.name})}))})}),Wg=class extends U{pipeId=zg;payload;payloadSchema=Ug;billableOperations=Hg;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return li(this.payload.config.model)}estimateBillableOperations(){return[ci(this.payload.config.model,Vg)]}getInputRequirement(){return ih([this.payload.config.template])}getSecretRequirements(){return Y([this.payload.config.template])}getConstantRequirements(){return ah([this.payload.config.template])}getRawOutputFields(){return{[Bg.name]:this.catalogOutput(Bg)}}getConnectionsRequirements(){return ui(this.payload.config.model)}},Gg=Ug,Kg={pipeId:zg,inputFieldMode:`config`,outputFieldMode:`static`,basePipe:W(zg),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(zg),defaultInputRequirement:null,billableOperations:Hg,allowedUserConnectionProviders:di(),managedProviders:di(),deprecatedProviders:[],defaultPayload:{pipe_id:zg,connector:null,run_if:null,config:{model:`openai-gpt-latest`,template:``,output_fields:{message:{alias:``,enabled:!0}}}}},qg=`person:devprofileurl:profileurl:waterfall@1`,Jg=_(`profile_url`),Yg=_(`developer_profile_url`),Xg=_(`alternative_developer_profile_urls`),Zg=[`crustdata`],Qg=[{provider:`crustdata`}],$g=r.object({pipe_id:r.literal(qg),run_if:S(),connector:w(),config:r.object({providers:D({sectionKey:`general`,defaultProviders:Qg,availableProviders:Zg}),input_fields:z(r.object({[Jg.name]:E({fieldName:Jg.name})})),output_fields:R(r.object({[Yg.name]:k({fieldName:Yg.name}),[Xg.name]:k({fieldName:Xg.name})}))}).optional()}),e_=e=>V(K(Jg,e)),t_={"person-devprofileurl-profileurl-waterfall-v1-crustdata":{provider:`crustdata`,allowManagedConnection:!0,credits:{default:2,level1:{credits:1.3,weight:1}},mode:`onSuccess`}},n_=class extends U{pipeId=qg;payload;payloadSchema=$g;billableOperations=t_;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)}getRawOutputFields(){return{[Yg.name]:this.catalogOutput(Yg,{isPrimaryOutput:!0}),[Xg.name]:this.catalogOutput(Xg,{isPrimaryOutput:!1})}}getConnectionsRequirements(){let e={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}))}},r_=$g,i_={pipeId:qg,basePipe:W(qg),label:`GitHub profile from LinkedIn URL`,executionMode:`waterfall`,categories:[`people_data`],lifecycle:null,description:`Find a developer profile URL (e.g. GitHub) for any prospect using multiple data providers in a waterfall motion.`,docPath:G(qg),tags:[B.LINKEDIN,B.WATERFALL,B.NEW],billableOperations:t_,defaultInputRequirement:e_(null),inputFieldMode:`static`,outputFieldMode:`static`,managedProviders:Zg,allowedUserConnectionProviders:Zg,deprecatedProviders:[],defaultPayload:{pipe_id:qg,connector:null,run_if:null,config:{providers:Qg,input_fields:{profile_url:{alias:``}},output_fields:{developer_profile_url:{alias:``,enabled:!0},alternative_developer_profile_urls:{alias:``,enabled:!1}}}}},a_=`person:email:validate:millionverifier@1`,o_=_(`email`),s_=_(`email_validation_status`),c_=_(`million_validation_match`),l_=r.object({pipe_id:r.literal(a_),connector:w(),run_if:S(),config:r.object({input_fields:z(r.object({[o_.name]:E({fieldName:o_.name})})),output_fields:R(r.object({[s_.name]:k({fieldName:s_.name}),[c_.name]:k({fieldName:c_.name})}))}).optional()}),u_=e=>V(K(o_,e)),d_={"person-email-validate-millionverifier-v1-millionverifier":{provider:`millionverifier`,allowManagedConnection:!0,credits:{default:.1,level1:{credits:.05,weight:1}},mode:`always`}},f_=class extends U{pipeId=a_;payload;payloadSchema=l_;billableOperations=d_;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`millionverifier`]}estimateBillableOperations(){return[`person-email-validate-millionverifier-v1-millionverifier`]}getInputRequirement(){return u_(this.payload.config)}getRawOutputFields(){return{[s_.name]:this.catalogOutput(s_),[c_.name]:this.catalogOutput(c_)}}getConnectionsRequirements(){return[{provider:`millionverifier`,rateLimitRatio:1,rateLimitOperation:`millionverifier_generic`,allowManagedConnection:!0}]}},p_=l_,m_={pipeId:a_,basePipe:W(a_),label:`Validate email`,executionMode:`single`,categories:[`people_data`],lifecycle:null,description:`Verify email addresses to ensure is deliverability.`,tags:[B.EMAIL],docPath:G(a_),billableOperations:d_,inputFieldMode:`static`,outputFieldMode:`static`,allowedUserConnectionProviders:[`millionverifier`],managedProviders:[`millionverifier`],deprecatedProviders:[],defaultInputRequirement:u_(null),defaultPayload:{pipe_id:a_,connector:null,run_if:null,config:{input_fields:{email:{alias:``}},output_fields:{email_validation_status:{alias:``,enabled:!0},million_validation_match:{alias:``,enabled:!0}}}}},h_=_(`email`),g_=_(`amplemarket_person_match`),__=`person:identity:amplemarket@1`,v_=r.object({pipe_id:r.literal(__),run_if:S(),connector:w(),config:r.object({input_fields:z(r.object({[h_.name]:E({fieldName:h_.name})})),output_fields:R(r.object({[g_.name]:k({fieldName:g_.name})}))}).optional()}),y_=e=>V(K(h_,e)),b_={"person-identity-amplemarket-v1-amplemarket":{allowManagedConnection:!1,credits:null,mode:null,provider:`amplemarket`}},x_=class extends U{pipeId=__;payload;payloadSchema=v_;billableOperations=b_;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`amplemarket`]}estimateBillableOperations(){return[]}getInputRequirement(){return y_(this.payload.config)}getRawOutputFields(){return{[g_.name]:this.catalogOutput(g_)}}getConnectionsRequirements(){return[{provider:`amplemarket`,rateLimitRatio:1,rateLimitOperation:`amplemarket_generic`,allowManagedConnection:!1}]}},S_=v_,C_={pipeId:__,inputFieldMode:`static`,outputFieldMode:`static`,basePipe:W(__),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(__),billableOperations:b_,allowedUserConnectionProviders:[`amplemarket`],managedProviders:[],deprecatedProviders:[],defaultInputRequirement:y_(null),defaultPayload:{pipe_id:__,connector:null,run_if:null,config:{input_fields:{email:{alias:``}},output_fields:{amplemarket_person_match:{alias:``,enabled:!0}}}}},w_=`person:identity:email:waterfall@1`,T_=_(`email`),E_=_(`company_domain`),D_=_(`name`),O_=_(`job_title`),k_=_(`profile_url`),A_=_(`company_profile_url`),j_=_(`company_name`),M_=[`findymail`,`hunter`,`crustdata`],N_=[{provider:`findymail`},{provider:`hunter`},{provider:`crustdata`}],P_=r.object({pipe_id:r.literal(w_),connector:w(),run_if:S(),config:r.object({providers:D({availableProviders:M_,defaultProviders:N_,sectionKey:`general`}),input_fields:z(r.object({[T_.name]:E({fieldName:T_.name})})),output_fields:R(r.object({[D_.name]:k({fieldName:D_.name}),[k_.name]:k({fieldName:k_.name}),[O_.name]:k({fieldName:O_.name}),[E_.name]:k({fieldName:E_.name}),[j_.name]:k({fieldName:j_.name}),[A_.name]:k({fieldName:A_.name})}))}).optional()}),F_=e=>V(K(T_,e)),I_={"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`}},L_=class extends U{pipeId=w_;payload;payloadSchema=P_;billableOperations=I_;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{[D_.name]:this.catalogOutput(D_,{isPrimaryOutput:!0}),[k_.name]:this.catalogOutput(k_,{isPrimaryOutput:!0}),[O_.name]:this.catalogOutput(O_,{isPrimaryOutput:!0}),[j_.name]:this.catalogOutput(j_,{isPrimaryOutput:!0}),[A_.name]:this.catalogOutput(A_,{isPrimaryOutput:!0}),[E_.name]:this.catalogOutput(E_,{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}))}},R_=P_,z_={pipeId:w_,basePipe:W(w_),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(w_),managedProviders:M_,deprecatedProviders:[],allowedUserConnectionProviders:M_,inputFieldMode:`static`,outputFieldMode:`static`,billableOperations:I_,defaultInputRequirement:F_(null),defaultPayload:{pipe_id:w_,connector:null,run_if:null,config:{providers:N_,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}}}}},B_=_(`profile_url`),V_=_(`amplemarket_person_match`),H_=`person:match:amplemarket@1`,U_=r.object({pipe_id:r.literal(H_),run_if:S(),connector:w(),config:r.object({input_fields:z(r.object({[B_.name]:E({fieldName:B_.name})})),output_fields:R(r.object({[V_.name]:k({fieldName:V_.name})}))}).optional()}),W_=e=>V(K(B_,e)),G_={"person-match-amplemarket-v1-amplemarket":{allowManagedConnection:!1,credits:null,mode:null,provider:`amplemarket`}},K_=class extends U{pipeId=H_;payload;payloadSchema=U_;billableOperations=G_;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`amplemarket`]}estimateBillableOperations(){return[]}getInputRequirement(){return W_(this.payload.config)}getRawOutputFields(){return{[V_.name]:this.catalogOutput(V_)}}getConnectionsRequirements(){return[{provider:`amplemarket`,rateLimitRatio:1,rateLimitOperation:`amplemarket_generic`,allowManagedConnection:!1}]}},q_=U_,J_={pipeId:H_,inputFieldMode:`static`,outputFieldMode:`static`,basePipe:W(H_),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(H_),billableOperations:G_,allowedUserConnectionProviders:[`amplemarket`],managedProviders:[],deprecatedProviders:[],defaultInputRequirement:W_(null),defaultPayload:{pipe_id:H_,connector:null,run_if:null,config:{input_fields:{profile_url:{alias:``}},output_fields:{amplemarket_person_match:{alias:``,enabled:!0}}}}},Y_=`person:match:role:waterfall@1`,X_=_(`company_domain`),Z_=_(`role_finder_match`),Q_=[`leadmagic`],$_=[{provider:`leadmagic`}],ev=r.object({pipe_id:r.literal(Y_),run_if:S(),connector:w(),config:r.object({providers:D({sectionKey:`general`,defaultProviders:$_,availableProviders:Q_}),roles:ra({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({[Z_.name]:k({fieldName:Z_.name})}))})}),tv=e=>H(K(X_,e)),nv={"person-match-role-waterfall-v1-leadmagic":{provider:`leadmagic`,allowManagedConnection:!0,credits:{default:1},mode:`onSuccess`}},rv=class extends U{pipeId=Y_;payload;payloadSchema=ev;billableOperations=nv;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 tv(this.payload.config)}getSecretRequirements(){return Y(this.payload.config?.roles??[])}getConstantRequirements(){return ah(this.payload.config?.roles??[])}getRawOutputFields(){return{[Z_.name]:this.catalogOutput(Z_,{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}))}},iv=ev,av={pipeId:Y_,basePipe:W(Y_),managedProviders:Q_,deprecatedProviders:[],allowedUserConnectionProviders:Q_,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(Y_),billableOperations:nv,inputFieldMode:`static`,outputFieldMode:`static`,defaultInputRequirement:tv(null),defaultPayload:{pipe_id:Y_,run_if:null,connector:null,config:{roles:[],providers:$_,input_fields:{company_domain:{alias:``}},output_fields:{role_finder_match:{alias:``,enabled:!0}}}}},ov=`person:mobile:profileurl:waterfall@1`,sv=_(`profile_url`),cv=_(`mobile`),lv=[`leadmagic`,`prospeo`,`amplemarket`,`findymail`],uv=[{provider:`leadmagic`},{provider:`prospeo`},{provider:`amplemarket`},{provider:`findymail`}],dv=r.object({pipe_id:r.literal(ov),run_if:S(),connector:w(),config:r.object({providers:D({sectionKey:`general`,defaultProviders:uv,availableProviders:lv}),input_fields:z(r.object({[sv.name]:E({fieldName:sv.name})})),output_fields:R(r.object({[cv.name]:k({fieldName:cv.name})}))}).optional()}),fv=e=>V(K(sv,e)),pv={"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`}},mv=class extends U{pipeId=ov;payload;payloadSchema=dv;billableOperations=pv;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 fv(this.payload.config)}getRawOutputFields(){return{[cv.name]:this.catalogOutput(cv,{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}))}},hv=dv,gv={pipeId:ov,basePipe:W(ov),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(ov),tags:[B.PHONE,B.WATERFALL],billableOperations:pv,defaultInputRequirement:fv(null),inputFieldMode:`static`,outputFieldMode:`static`,managedProviders:lv,allowedUserConnectionProviders:lv,deprecatedProviders:[],defaultPayload:{pipe_id:ov,connector:null,run_if:null,config:{providers:uv,input_fields:{profile_url:{alias:``}},output_fields:{mobile:{alias:``,enabled:!0}}}}},_v=`person:mobile:workemail:waterfall@1`,vv=_(`work_email`),yv=_(`mobile`),bv=[`leadmagic`,`amplemarket`],xv=[{provider:`leadmagic`},{provider:`amplemarket`}],Sv=r.object({pipe_id:r.literal(_v),run_if:S(),connector:w(),config:r.object({providers:D({sectionKey:`general`,availableProviders:bv,defaultProviders:xv}),input_fields:z(r.object({[vv.name]:E({fieldName:vv.name})})),output_fields:R(r.object({[yv.name]:k({fieldName:yv.name})}))}).optional()}),Cv=e=>V(K(vv,e)),wv={"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`}},Tv=class extends U{pipeId=_v;payload;payloadSchema=Sv;billableOperations=wv;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 Cv(this.payload.config)}getRawOutputFields(){return{[yv.name]:this.catalogOutput(yv,{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}))}},Ev=Sv,Dv={pipeId:_v,basePipe:W(_v),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(_v),billableOperations:wv,defaultInputRequirement:Cv(null),inputFieldMode:`static`,outputFieldMode:`static`,allowedUserConnectionProviders:bv,managedProviders:bv,deprecatedProviders:[],defaultPayload:{pipe_id:_v,connector:null,run_if:null,config:{providers:xv,input_fields:{work_email:{alias:``}},output_fields:{mobile:{alias:``,enabled:!0}}}}},Ov=`person:name:join@1`,kv=_(`first_name`),Av=_(`last_name`),jv=_(`name`),Mv=r.object({pipe_id:r.literal(Ov),run_if:S(),connector:T(),config:r.object({input_fields:z(r.object({[kv.name]:E({fieldName:kv.name}),[Av.name]:E({fieldName:Av.name})})),output_fields:R(r.object({[jv.name]:k({fieldName:jv.name})}))}).optional()}),Nv=e=>Ma(K(kv,e),K(Av,e)),Pv={"person-name-join-v1-pipe0":{provider:`pipe0`,allowManagedConnection:!0,credits:{default:0},mode:`always`}},Fv=class extends U{pipeId=Ov;payload;payloadSchema=Mv;billableOperations=Pv;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[`person-name-join-v1-pipe0`]}getInputRequirement(){return Nv(this.payload.config)}getRawOutputFields(){return{[jv.name]:this.catalogOutput(jv)}}getConnectionsRequirements(){return[{provider:`pipe0`,rateLimitRatio:1,rateLimitOperation:`pipe0_logic`,allowManagedConnection:!0}]}},Iv=Mv,Lv={pipeId:Ov,basePipe:W(Ov),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(Ov),billableOperations:Pv,defaultInputRequirement:Nv(null),inputFieldMode:`static`,outputFieldMode:`static`,allowedUserConnectionProviders:[],managedProviders:[`pipe0`],deprecatedProviders:[],defaultPayload:{pipe_id:Ov,run_if:null,connector:null,config:{input_fields:{first_name:{alias:``},last_name:{alias:``}},output_fields:{name:{alias:``,enabled:!0}}}}},Rv=`person:name:split@1`,zv=_(`name`),Bv=_(`first_name`),Vv=_(`last_name`),Hv=r.object({pipe_id:r.literal(Rv),connector:T(),run_if:S(),config:r.object({input_fields:z(r.object({[zv.name]:E({fieldName:zv.name})})),output_fields:R(r.object({[Bv.name]:k({fieldName:Bv.name}),[Vv.name]:k({fieldName:Vv.name})}))}).optional()}),Uv=e=>V(K(zv,e)),Wv={"person-name-split-v1-pipe0":{provider:`pipe0`,allowManagedConnection:!0,credits:{default:0},mode:`always`}},Gv=class extends U{pipeId=Rv;payload;payloadSchema=Hv;billableOperations=Wv;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[`person-name-split-v1-pipe0`]}getInputRequirement(){return Uv(this.payload.config)}getRawOutputFields(){return{[Bv.name]:this.catalogOutput(Bv),[Vv.name]:this.catalogOutput(Vv)}}getConnectionsRequirements(){return[{provider:`pipe0`,rateLimitRatio:1,rateLimitOperation:`pipe0_logic`,allowManagedConnection:!0}]}},Kv=Hv,qv={pipeId:Rv,basePipe:W(Rv),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(Rv),billableOperations:Wv,inputFieldMode:`static`,outputFieldMode:`static`,defaultInputRequirement:Uv(null),allowedUserConnectionProviders:[],managedProviders:[`pipe0`],deprecatedProviders:[],defaultPayload:{pipe_id:Rv,run_if:null,connector:void 0,config:{input_fields:{name:{alias:``}},output_fields:{first_name:{alias:``,enabled:!0},last_name:{alias:``,enabled:!0}}}}},Jv=`person:personalemail:profileurl:waterfall@1`,Yv=_(`profile_url`),Xv=_(`personal_email`),Zv=_(`alternate_personal_emails`),Qv=[`leadmagic`,`mixrank`],$v=[{provider:`leadmagic`},{provider:`mixrank`}],ey=r.object({pipe_id:r.literal(Jv),run_if:S(),connector:w(),config:r.object({providers:D({sectionKey:`general`,availableProviders:Qv,defaultProviders:$v}),input_fields:z(r.object({[Yv.name]:E({fieldName:Yv.name})})),output_fields:R(r.object({[Xv.name]:k({fieldName:Xv.name}),[Zv.name]:k({fieldName:Zv.name})}))}).optional()}),ty=e=>V(K(Yv,e)),ny={"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`}},ry=class extends U{pipeId=Jv;payload;payloadSchema=ey;billableOperations=ny;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 ty(this.payload.config)}getRawOutputFields(){return{[Xv.name]:this.catalogOutput(Xv,{isPrimaryOutput:!0}),[Zv.name]:this.catalogOutput(Zv)}}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}))}},iy=ey,ay={pipeId:Jv,basePipe:W(Jv),allowedUserConnectionProviders:Qv,managedProviders:Qv,deprecatedProviders:[],label:`Personal email from LinkedIn`,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(Jv),billableOperations:ny,defaultInputRequirement:ty(null),inputFieldMode:`static`,outputFieldMode:`static`,defaultPayload:{pipe_id:Jv,connector:null,run_if:null,config:{providers:$v,input_fields:{profile_url:{alias:``}},output_fields:{personal_email:{alias:``,enabled:!0},alternate_personal_emails:{alias:``,enabled:!1}}}}},oy=_(`profile_url`),sy=_(`post_list_string`),cy=_(`crustdata_post_list`),ly=`person:posts:crustdata@1`,uy=r.object({pipe_id:r.literal(ly),run_if:S(),connector:w(),config:r.object({limit:ma({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({[oy.name]:E({fieldName:oy.name})})),output_fields:R(r.object({[sy.name]:k({fieldName:sy.name}),[cy.name]:k({fieldName:cy.name})}))}).optional()}),dy=e=>V(K(oy,e)),fy={"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`}},py=class extends U{pipeId=ly;payload;payloadSchema=uy;billableOperations=fy;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`crustdata`]}estimateBillableOperations(){return[`person-posts-crustdata-v1-crustdata`]}getInputRequirement(){return dy(this.payload.config)}getRawOutputFields(){return{[sy.name]:this.catalogOutput(sy),[cy.name]:this.catalogOutput(cy)}}getConnectionsRequirements(){return[{provider:`crustdata`,rateLimitRatio:1,rateLimitOperation:`crustdata_realtime_post_fetch`,allowManagedConnection:!0}]}},my=uy,hy={pipeId:ly,inputFieldMode:`static`,outputFieldMode:`static`,basePipe:W(ly),label:`LinkedIn posts`,executionMode:`single`,categories:[`people_data`],lifecycle:null,description:`Find list of recent LinkedIn posts.`,tags:[B.LINKEDIN],docPath:G(ly),billableOperations:fy,allowedUserConnectionProviders:[`crustdata`],managedProviders:[`crustdata`],deprecatedProviders:[],defaultInputRequirement:dy(null),defaultPayload:{pipe_id:ly,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}}}}},gy=`person:profile:waterfall@1`,_y=_(`profile`),vy=_(`profile_url`),yy=[`prospeo`,`icypeas`,`amplemarket`],by=[{provider:`amplemarket`},{provider:`prospeo`},{provider:`icypeas`}],xy=r.object({pipe_id:r.literal(gy),run_if:S(),connector:w(),config:r.object({providers:D({sectionKey:`general`,availableProviders:yy,defaultProviders:by}),input_fields:z(r.object({[vy.name]:E({fieldName:vy.name})})),output_fields:R(r.object({[_y.name]:k({fieldName:_y.name})}))}).optional()}),Sy=e=>V(K(vy,e)),Cy={"person-profile-waterfall-v1-icypeas":{provider:`icypeas`,credits:{default:1,level1:{credits:.5,weight:1}},mode:`onSuccess`,allowManagedConnection:!0},"person-profile-waterfall-v1-prospeo":{provider:`prospeo`,credits:{default:1,level1:{credits:.5,weight:1}},mode:`onSuccess`,allowManagedConnection:!0},"person-profile-waterfall-v1-amplemarket":{provider:`amplemarket`,credits:{default:1,level1:{credits:.5,weight:1}},mode:`onSuccess`,allowManagedConnection:!0}},wy=class extends U{pipeId=gy;payload;payloadSchema=xy;billableOperations=Cy;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 Sy(this.payload.config)}getRawOutputFields(){return{[_y.name]:this.catalogOutput(_y,{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}))}},Ty=xy,Ey={pipeId:gy,basePipe:W(gy),label:`Full LinkedIn profile`,executionMode:`waterfall`,categories:[`people_data`],lifecycle:null,description:`Find a JSON representation of a LinkedIn profile.`,docPath:G(gy),tags:[B.LINKEDIN,B.WATERFALL],managedProviders:yy,deprecatedProviders:[],allowedUserConnectionProviders:yy,inputFieldMode:`static`,outputFieldMode:`static`,billableOperations:Cy,defaultInputRequirement:Sy(null),defaultPayload:{pipe_id:gy,run_if:null,connector:null,config:{providers:by,input_fields:{profile_url:{alias:``}},output_fields:{profile:{alias:``,enabled:!0}}}}},Dy=_(`work_email`),Oy=_(`crustdata_person_match`),ky=_(`crustdata_profile_match_score`),Ay=`person:profile:workemail:crustdata@1`,jy=r.object({pipe_id:r.literal(Ay),run_if:S(),connector:w(),config:r.object({input_fields:z(r.object({[Dy.name]:E({fieldName:Dy.name})})),output_fields:R(r.object({[Oy.name]:k({fieldName:Oy.name}),[ky.name]:k({fieldName:ky.name})}))}).optional()}),My=e=>V(K(Dy,e)),Ny={"person-profile-workemail-crustdata-v1-crustdata":{allowManagedConnection:!0,credits:{default:5},mode:`onSuccess`,provider:`crustdata`}},Py=class extends U{pipeId=Ay;payload;payloadSchema=jy;billableOperations=Ny;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`crustdata`]}estimateBillableOperations(){return[`person-profile-workemail-crustdata-v1-crustdata`]}getInputRequirement(){return My(this.payload.config)}getRawOutputFields(){return{[Oy.name]:this.catalogOutput(Oy),[ky.name]:this.catalogOutput(ky)}}getConnectionsRequirements(){return[{provider:`crustdata`,rateLimitRatio:1,rateLimitOperation:`crustdata_realtime_person_enrich`,allowManagedConnection:!0}]}},Fy=jy,Iy={pipeId:Ay,inputFieldMode:`static`,outputFieldMode:`static`,basePipe:W(Ay),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(Ay),billableOperations:Ny,allowedUserConnectionProviders:[`crustdata`],managedProviders:[`crustdata`],deprecatedProviders:[],defaultInputRequirement:My(null),defaultPayload:{pipe_id:Ay,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}}}}},Ly=`person:profileurl:email:waterfall@1`,Ry=_(`email`),zy=_(`work_email`),By=_(`profile_url`),Vy=[`leadmagic`],Hy=[{provider:`leadmagic`}],Uy=r.object({pipe_id:r.literal(Ly),run_if:S(),connector:w(),config:r.object({providers:D({sectionKey:`general`,defaultProviders:Hy,availableProviders:Vy}),input_fields:z(r.object({[Ry.name]:E({fieldName:Ry.name}),[zy.name]:E({fieldName:zy.name})})),output_fields:R(r.object({[By.name]:k({fieldName:By.name})}))}).optional()}),Wy=e=>H(K(Ry,e),K(zy,e)),Gy={"person-profileurl-email-waterfall-v1-leadmagic":{provider:`leadmagic`,allowManagedConnection:!0,credits:{default:3.5},mode:`onSuccess`}},Ky=class extends U{pipeId=Ly;payload;payloadSchema=Uy;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 Wy(this.payload.config)}getRawOutputFields(){return{[By.name]:this.catalogOutput(By,{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}))}},qy=Uy,Jy={pipeId:Ly,basePipe:W(Ly),managedProviders:Vy,deprecatedProviders:[],allowedUserConnectionProviders:Vy,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(Ly),billableOperations:Gy,inputFieldMode:`static`,outputFieldMode:`static`,defaultInputRequirement:Wy(null),defaultPayload:{pipe_id:Ly,run_if:null,connector:null,config:{providers:Hy,input_fields:{email:{alias:``},work_email:{alias:``}},output_fields:{profile_url:{alias:``,enabled:!0}}}}},Yy=`person:profileurl:name@1`,Xy=_(`name`),Zy=_(`company_name`),Qy=_(`location_hint`),$y=_(`profile_url`),eb=r.object({pipe_id:r.literal(Yy),connector:T(),run_if:S(),config:r.object({input_fields:z(r.object({[Xy.name]:E({fieldName:Xy.name}),[Zy.name]:E({fieldName:Zy.name}),[Qy.name]:E({fieldName:Qy.name})})),output_fields:R(r.object({[$y.name]:k({fieldName:$y.name})}))}).optional()}),tb=e=>Ma(V(K(Xy,e)),V(K(Zy,e)),Na(K(Qy,e))),nb={"person-profileurl-name-v1-pipe0":{provider:`pipe0`,allowManagedConnection:!0,credits:{default:.6},mode:`always`}},rb=class extends U{pipeId=Yy;payload;payloadSchema=eb;billableOperations=nb;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[`person-profileurl-name-v1-pipe0`]}getInputRequirement(){return tb(this.payload.config)}getRawOutputFields(){return{[$y.name]:this.catalogOutput($y)}}getConnectionsRequirements(){return[{provider:`serper`,rateLimitRatio:1,rateLimitOperation:`serper_search`,allowManagedConnection:!0}]}},ib=eb,ab={pipeId:Yy,basePipe:W(Yy),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(Yy),tags:[B.LINKEDIN],billableOperations:nb,defaultInputRequirement:tb(null),inputFieldMode:`static`,outputFieldMode:`static`,defaultPayload:{pipe_id:Yy,connector:void 0,run_if:null,config:{input_fields:{company_name:{alias:``},location_hint:{alias:``},name:{alias:``}},output_fields:{profile_url:{alias:``,enabled:!0}}}}},ob=`person:workemail:profileurl:waterfall@1`,sb=_(`profile_url`),cb=_(`work_email`),lb=_(`email_validation_status`),ub=[`hunter`,`amplemarket`,`findymail`,`leadmagic`,`crustdata`],db=[{provider:`hunter`},{provider:`amplemarket`},{provider:`leadmagic`},{provider:`findymail`},{provider:`crustdata`}],fb=r.object({pipe_id:r.literal(ob),connector:w(),run_if:S(),config:r.object({providers:D({availableProviders:ub,defaultProviders:db,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({[sb.name]:E({fieldName:sb.name})})),output_fields:R(r.object({[cb.name]:k({fieldName:cb.name}),[lb.name]:k({fieldName:lb.name})}))}).optional()}),pb=e=>V(K(sb,e)),mb={"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`}},hb=class extends U{pipeId=ob;payload;payloadSchema=fb;billableOperations=mb;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 pb(this.payload.config)}getRawOutputFields(){return{[cb.name]:this.catalogOutput(cb,{isPrimaryOutput:!0}),[lb.name]:this.catalogOutput(lb,{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}))}},gb=fb,_b={pipeId:ob,basePipe:W(ob),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(ob),managedProviders:ub,allowedUserConnectionProviders:ub,deprecatedProviders:[],inputFieldMode:`static`,outputFieldMode:`static`,billableOperations:mb,defaultInputRequirement:pb(null),defaultPayload:{pipe_id:ob,connector:null,run_if:null,config:{providers:db,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}}}}},vb=`person:workemail:waterfall@1`,yb=_(`name`),bb=_(`company_domain`),xb=_(`company_name`),Sb=_(`work_email`),Cb=_(`email_validation_status`),wb=[`leadmagic`,`prospeo`,`amplemarket`,`hunter`,`icypeas`,`findymail`],Tb=[{provider:`leadmagic`},{provider:`prospeo`},{provider:`amplemarket`},{provider:`hunter`},{provider:`icypeas`},{provider:`findymail`}],Eb={"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`}},Db=r.object({pipe_id:r.literal(vb),connector:w(),run_if:S(),config:r.object({providers:D({availableProviders:wb,defaultProviders:Tb,sectionKey:`general`,providerCredits:Ua(Eb,wb)}),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({[yb.name]:E({fieldName:yb.name}),[bb.name]:E({fieldName:bb.name}),[xb.name]:E({fieldName:xb.name})})),output_fields:R(r.object({[Sb.name]:k({fieldName:Sb.name}),[Cb.name]:k({fieldName:Cb.name})}))}).optional()}),Ob=e=>Ma(V(K(yb,e)),H(K(bb,e),K(xb,e))),kb=class extends U{pipeId=vb;payload;payloadSchema=Db;billableOperations=Eb;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 Ob(this.payload.config)}getRawOutputFields(){return{[Sb.name]:this.catalogOutput(Sb,{isPrimaryOutput:!0}),[Cb.name]:this.catalogOutput(Cb,{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}))}},Ab=Db,jb={pipeId:vb,basePipe:W(vb),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(vb),managedProviders:wb,deprecatedProviders:[],allowedUserConnectionProviders:wb,inputFieldMode:`static`,outputFieldMode:`static`,billableOperations:Eb,defaultInputRequirement:Ob(null),defaultPayload:{pipe_id:vb,connector:null,run_if:null,config:{providers:Tb,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}}}}},Mb=`prompt:run@1`,Nb=`prompt-run-v1`,Pb=si(Nb),Fb=r.object({pipe_id:r.literal(Mb),connector:w(),run_if:S(),config:r.object({prompt:Ji({sectionKey:`general`,path:`config.prompt`,placeholder:X(`prompt`),groupPath:`config.prompt`,supportedTags:[`input`,`output`]}),model:fa({sectionKey:`general`,label:`Model`,path:`config.model`,groupPath:`config.prompt`,billableOperations:Pb})})}),Ib=class extends U{pipeId=Mb;payload;payloadSchema=Fb;billableOperations=Pb;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return li(this.payload.config.model)}estimateBillableOperations(){return[ci(this.payload.config.model,Nb)]}getInputRequirement(){return ih([this.payload.config.prompt.template])}getSecretRequirements(){return Y([this.payload.config.prompt.template])}getConstantRequirements(){return ah([this.payload.config.prompt.template])}getRawOutputFields(){let e=this.payload.config.prompt.template,t=this.payload.config.prompt.json_schemas??{},n={},r;try{r=Lr(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 ui(this.payload.config.model)}},Lb=Fb,Rb={pipeId:Mb,inputFieldMode:`config`,outputFieldMode:`config`,basePipe:W(Mb),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(Mb),defaultInputRequirement:null,billableOperations:Pb,allowedUserConnectionProviders:di(),managedProviders:di(),deprecatedProviders:[],defaultPayload:{pipe_id:Mb,connector:null,run_if:null,config:{model:`openai-gpt-latest`,prompt:{template:``,json_schemas:{}}}}},zb=`sheet:row:append@1`,Bb=_(`sheet_record_id`),Vb=_(`created_sheet`),Hb=[{label:`Demo leads`,value:`demo-leads`},{label:`Demo companies`,value:`demo-companies`},{label:`Demo contacts`,value:`demo-contacts`}],Ub=[{label:`Demo team`,value:`sandbox-team-1`},{label:`Demo workspace`,value:`sandbox-team-2`}],Wb={requires:{connection:`pipe0`},enabledIf:hn(`pipe0`,`Select a pipe0 connection to see sheet suggestions`),options:async({query:e,client:t,environment:n})=>n===`sandbox`?Hb: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:hn(`pipe0`,`Select a pipe0 connection to see team suggestions`),options:async({query:e,client:t,environment:n})=>n===`sandbox`?Ub:t?(await t.teams.list({query:e})).map(e=>({label:e.name,value:e.id})):[],widgets:{provider_logo:{provider:`pipe0`}}},Kb=r.object({pipe_id:r.literal(zb),connector:Zi(),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:Wb}),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 unknown fields`,defaultValue:!0,groupPath:`config.advanced`,path:`config.allow_field_creation`,sectionKey:`general`,description:`Add unknown 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:_a({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:$i({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({[Bb.name]:k({fieldName:Bb.name}),[Vb.name]:k({fieldName:Vb.name})}))})}),qb={"sheet-row-append-v1-pipe0":{provider:`pipe0`,allowManagedConnection:!1,credits:null,mode:null}},Jb=class extends U{pipeId=zb;payload;payloadSchema=Kb;billableOperations=qb;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[`sheet-row-append-v1-pipe0`]}getInputRequirement(){let e=[ih([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=rh(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 Ma(...e)}getSecretRequirements(){return Y([this.payload.config.sheet])}getConstantRequirements(){return ah([this.payload.config.sheet])}getRawOutputFields(){return{[Bb.name]:this.catalogOutput(Bb),[Vb.name]:this.catalogOutput(Vb)}}getConnectionsRequirements(){return[{provider:`pipe0`,rateLimitRatio:1,rateLimitOperation:`pipe0-sheet-operation`,allowManagedConnection:!0}]}},Yb=Kb,Xb={pipeId:zb,basePipe:W(zb),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(zb),tags:[B.FIELDS],billableOperations:qb,defaultInputRequirement:null,inputFieldMode:`config`,outputFieldMode:`static`,defaultPayload:{pipe_id:zb,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}}}}},Zb=`sheet:row:expandappend@1`,Qb=_(`sheet_record_ids`),$b=_(`input_objects`),ex=r.object({pipe_id:r.literal(Zb),connector:Zi(),run_if:S(),config:r.object({sheet:la({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 unknown object fields to the sheet definition.`,label:`Allow field creation`}),input_fields:z(r.object({[$b.name]:E({fieldName:$b.name})})),output_fields:R(r.object({[Qb.name]:k({fieldName:Qb.name})}))})}),tx={"sheet-row-expandappend-v1-pipe0":{provider:`pipe0`,allowManagedConnection:!1,credits:null,mode:null}},nx=e=>V(K($b,e)),rx=class extends U{pipeId=Zb;payload;payloadSchema=ex;billableOperations=tx;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[`sheet-row-expandappend-v1-pipe0`]}getInputRequirement(){return nx(this.payload.config)}getRawOutputFields(){return{[Qb.name]:this.catalogOutput(Qb)}}getConnectionsRequirements(){return[{provider:`pipe0`,rateLimitRatio:1,rateLimitOperation:`pipe0-sheet-operation`,allowManagedConnection:!0}]}},ix=ex,ax={pipeId:Zb,basePipe:W(Zb),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(Zb),tags:[B.FIELDS],billableOperations:tx,defaultInputRequirement:nx(null),inputFieldMode:`static`,outputFieldMode:`static`,defaultPayload:{pipe_id:Zb,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}}}}},ox=`template:fill@1`,sx=_(`template_output`),cx=r.object({pipe_id:r.literal(ox),connector:w(),run_if:S(),config:r.object({template:Yi({sectionKey:`general`,path:`config.template`,label:`Template`,placeholder:X(`template`),groupPath:`config.general`,required:!0}),output_fields:R(r.object({[sx.name]:k({fieldName:sx.name})}))})}),lx={"template-fill-v1-pipe0":{credits:{default:0},allowManagedConnection:!0,provider:`pipe0`,mode:`always`}},ux=class extends U{pipeId=ox;payload;payloadSchema=cx;billableOperations=lx;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[`template-fill-v1-pipe0`]}getInputRequirement(){return ih([this.payload.config.template])}getSecretRequirements(){return Y([this.payload.config.template])}getConstantRequirements(){return ah([this.payload.config.template])}getRawOutputFields(){return{[sx.name]:this.catalogOutput(sx)}}getConnectionsRequirements(){return[]}},dx=cx,fx={pipeId:ox,inputFieldMode:`config`,outputFieldMode:`config`,basePipe:W(ox),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(ox),defaultInputRequirement:null,billableOperations:lx,allowedUserConnectionProviders:[],managedProviders:[`pipe0`],deprecatedProviders:[],defaultPayload:{pipe_id:ox,connector:null,run_if:null,config:{template:``,output_fields:{template_output:{alias:``,enabled:!0}}}}},px=`website:extract:firecrawl@1`,mx=_(`website_url`),hx=_(`firecrawl_extract_result`),gx=r.object({pipe_id:r.literal(px),connector:w(),run_if:S(),config:r.object({json_schema:ga({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:ua({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({[mx.name]:E({fieldName:mx.name})})),output_fields:R(r.object({[hx.name]:k({fieldName:hx.name})}))})}),_x=e=>V(K(mx,e)),vx={"website-extract-firecrawl-v1-firecrawl":{allowManagedConnection:!0,provider:`firecrawl`,credits:{default:2,level1:{credits:1,weight:1}},mode:`onSuccess`}},yx=class extends U{pipeId=px;payload;payloadSchema=gx;billableOperations=vx;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`firecrawl`]}estimateBillableOperations(){return[`website-extract-firecrawl-v1-firecrawl`]}getInputRequirement(){return _x(this.payload.config)}getRawOutputFields(){return{[hx.name]:this.catalogOutput(hx)}}getConnectionsRequirements(){return[{provider:`firecrawl`,rateLimitRatio:1,rateLimitOperation:`firecrawl_generic`,allowManagedConnection:!0}]}},bx=gx,xx={pipeId:px,basePipe:W(px),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(px),billableOperations:vx,inputFieldMode:`static`,outputFieldMode:`static`,allowedUserConnectionProviders:[`firecrawl`],managedProviders:[`firecrawl`],deprecatedProviders:[],defaultInputRequirement:_x(null),defaultPayload:{pipe_id:px,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}}}}},Sx=`website:maplinks:firecrawl@1`,Cx={"website-maplinks-firecrawl-v1-firecrawl":{allowManagedConnection:!0,provider:`firecrawl`,credits:{default:1},mode:`onSuccess`}},wx=_(`website_url`),Tx=_(`mapped_links`),Ex=r.object({pipe_id:r.literal(Sx),connector:w(),run_if:S(),config:r.object({page_limit:ma({label:`Page limit`,info:`Number of pages searched`,groupPath:`config.general`,max:50,min:1,required:!1,path:`config.page_limit`,sectionKey:`general`}),sitemap:da({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:la({sectionKey:`general`,label:`Search`,inputType:`text`,info:`Return matching urls`,groupPath:`config.general`,path:`config.search`}).default(``),input_fields:z(r.object({[wx.name]:E({fieldName:wx.name})})),output_fields:R(r.object({[Tx.name]:k({fieldName:Tx.name})}))}).optional()}),Dx=e=>V(K(wx,e)),Ox=class extends U{pipeId=Sx;payload;payloadSchema=Ex;billableOperations=Cx;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`firecrawl`]}estimateBillableOperations(){return[`website-maplinks-firecrawl-v1-firecrawl`]}getInputRequirement(){return Dx(this.payload.config)}getRawOutputFields(){return{[Tx.name]:this.catalogOutput(Tx)}}getConnectionsRequirements(){return[{provider:`firecrawl`,rateLimitRatio:1,rateLimitOperation:`firecrawl_map_requests`,allowManagedConnection:!0}]}},kx=Ex,Ax={pipeId:Sx,basePipe:W(Sx),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(Sx),billableOperations:Cx,inputFieldMode:`static`,outputFieldMode:`static`,allowedUserConnectionProviders:[`firecrawl`],managedProviders:[`firecrawl`],deprecatedProviders:[],defaultInputRequirement:Dx(null),defaultPayload:{pipe_id:Sx,run_if:null,connector:null,config:{page_limit:25,sitemap:`include`,search:``,input_fields:{website_url:{alias:``}},output_fields:{mapped_links:{alias:``,enabled:!0}}}}},jx=`website:scrape:firecrawl@1`,Mx=_(`website_url`),Nx=_(`website_markdown`),Px=_(`website_html`),Fx=_(`website_links`),Ix=r.object({pipe_id:r.literal(jx),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({[Mx.name]:E({fieldName:Mx.name})})),output_fields:R(r.object({[Nx.name]:k({fieldName:Nx.name}),[Px.name]:k({fieldName:Px.name}),[Fx.name]:k({fieldName:Fx.name})}))}).optional()}),Lx=e=>V(K(Mx,e)),Rx={"website-scrape-firecrawl-v1-firecrawl":{allowManagedConnection:!0,provider:`firecrawl`,credits:{default:.1,level1:{credits:.05,weight:1}},mode:`onSuccess`}},zx=class extends U{pipeId=jx;payload;payloadSchema=Ix;billableOperations=Rx;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`firecrawl`]}estimateBillableOperations(){return[`website-scrape-firecrawl-v1-firecrawl`]}getInputRequirement(){return Lx(this.payload.config)}getRawOutputFields(){return{[Nx.name]:this.catalogOutput(Nx),[Px.name]:this.catalogOutput(Px),[Fx.name]:this.catalogOutput(Fx)}}getConnectionsRequirements(){return[{provider:`firecrawl`,rateLimitRatio:1,rateLimitOperation:`firecrawl_generic`,allowManagedConnection:!0}]}},Bx=Ix,Vx={pipeId:jx,basePipe:W(jx),label:`Scrape`,executionMode:`single`,categories:[`tools`],lifecycle:null,description:`Turn any URL into clean data.`,tags:[B.SCRAPE],docPath:G(jx),billableOperations:Rx,inputFieldMode:`static`,outputFieldMode:`static`,allowedUserConnectionProviders:[`firecrawl`],managedProviders:[`firecrawl`],deprecatedProviders:[],defaultInputRequirement:Lx(null),defaultPayload:{pipe_id:jx,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}}}}},Hx=`website:scrapelist:firecrawl@1`,Ux={"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.`}},Wx=_(`urls`),Gx=_(`scrape_list_response`),Kx=r.object({pipe_id:r.literal(Hx),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:pa({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({[Wx.name]:E({fieldName:Wx.name})})),output_fields:R(r.object({[Gx.name]:k({fieldName:Gx.name})}))}).optional()}),qx=e=>V(K(Wx,e)),Jx=class extends U{pipeId=Hx;payload;payloadSchema=Kx;billableOperations=Ux;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`firecrawl`]}estimateBillableOperations(){return[,,,,,].fill(`list-url-scrape-firecrawl`)}getInputRequirement(){return qx(this.payload.config)}getRawOutputFields(){return{[Gx.name]:this.catalogOutput(Gx)}}getConnectionsRequirements(){return[{provider:`firecrawl`,rateLimitRatio:1,rateLimitOperation:`firecrawl_generic`,allowManagedConnection:!0}]}},Yx=Kx,Xx={pipeId:Hx,basePipe:W(Hx),label:`Scrape list`,executionMode:`single`,categories:[`tools`],lifecycle:null,description:`Turn a list of URLs into clean scraped data.`,tags:[B.SCRAPE],docPath:G(Hx),billableOperations:Ux,inputFieldMode:`static`,outputFieldMode:`static`,allowedUserConnectionProviders:[`firecrawl`],managedProviders:[`firecrawl`],deprecatedProviders:[],defaultInputRequirement:qx(null),defaultPayload:{pipe_id:Hx,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}}}}},Zx=[`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`,`companies:entitysearch:parallel@1`,`people:entitysearch:parallel@1`],Qx=r.enum(Zx);function $x(e,t){let n={name:e,config:t};return Ba.hashObject(n)}var $=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 $x(this.searchId,this.payload)}};function eS(e){return e.split(`@`)[0]}function tS(e){return`/docs/search-catalog/${eS(e)}/${e.split(`@`)[1]}`}const nS=`companies:entitysearch:parallel@1`,rS=_(`company_name`),iS=_(`company_domain`),aS=_(`company_description`),oS=_(`company_profile_url`),sS=_(`parallel_company_entity_match`),cS=r.object({search_id:r.literal(nS),connector:v.nullable().optional(),config:r.object({objective:Ea({path:`config.objective`,sectionKey:`general`,groupPath:`config.general`,label:`Objective`,rows:4,minLength:10,placeholder:`AI startups in Europe that raised a Series A in 2024`,description:`Plain-text natural-language description of the companies to find.`}),limit:L({path:`config.limit`,min:5,max:1e3,groupPath:`config.pagination`,required:!0,sectionKey:`pagination`,label:`Limit`,description:`Max number of entities to return (5โ€“1000).`}).default(100),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})}))})}),lS={default:{input:[{fields:[]}]}},uS=class extends ${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:`parallel`,rateLimitOperation:`parallel_entity_search`,rateLimitRatio:1,allowManagedConnection:!0}]}getDedupConfig(){return lS}},dS=cS,fS={searchId:nS,billableOperation:`companies-entitysearch-parallel-v1`,baseSearch:eS(nS),label:`Company search (AI)`,categories:[`companies`],paginationType:`page_number`,hasManagedConnection:!0,allowsUserConnection:!0,lifecycle:null,description:`Natural-language company search powered by Parallel Entity Search.`,tags:[B.COMPANY_PROFILES],docPath:tS(nS),cost:{mode:`per_page`,credits:{default:.5},info:`1 page = 100 results; billed per 100 results returned (e.g. 100 results = 1 page, 1,000 results = 10 pages). A search returns up to your selected limit in a single request.`},provider:`parallel`,defaultPayload:{search_id:nS,connector:null,config:{objective:``,limit:100,output_fields:{company_name:{enabled:!0,alias:``},company_domain:{enabled:!0,alias:``},company_description:{enabled:!0,alias:``},company_profile_url:{enabled:!0,alias:``},parallel_company_entity_match:{enabled:!1,alias:``}}}}};function pS(e,t=32){return`https://www.google.com/s2/favicons?sz=${t}&domain=${e.replace(/^(https?:\/\/)?(www\.)?/,``)}`}function mS(e,t){return e==null?void 0:t(e)}function hS(){return gS({companyWebsiteUrl:`linkedin.com`,entity:`LinkedIn`})}function gS({companyWebsiteUrl:e,entity:t}){if(e)return{image_url:pS(e),entity:t||e}}function _S(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}function vS(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}const yS=`companies:profiles:amplemarket@2`,bS=_(`company_name`),xS=_(`company_domain`),SS=_(`company_description`),CS=_(`company_profile_url`),wS=_(`amplemarket_company_match`),TS=r.object({search_id:r.literal(yS),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`}).default(100),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({[bS.name]:N({fieldName:bS.name}),[xS.name]:N({fieldName:xS.name}),[SS.name]:N({fieldName:SS.name}),[CS.name]:N({fieldName:CS.name}),[wS.name]:N({fieldName:wS.name})})),filters:r.object({hq_locations:I({path:`config.filters.hq_locations`,sectionKey:`config.filters`,label:`HQ locations`,description:``,placeholder:X(`location`),groupPath:`config.filters.location`,optionsDef:g(`locations`)}),company_names:j({sectionKey:`config.filters`,path:`config.filters.company_names`,label:`Company names`,description:``,placeholder:X(`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:X(`company_domain`),groupPath:`config.filters.categories`,suggestionsDef:g(`company_domains`,{widgets:e=>({logo_url:{url:pS(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:X(`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:X(`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:ya({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:X(`title`),suggestionsDef:g(`titles`)}),headcount:P({sectionKey:`config.filters`,path:`config.filters.headcount`,disableSearch:!1,options:m(`amplemarket.company_size`),label:`Company sizes`,required:!1,description:``,groupPath:`config.filters.company_size`}),headcount_growth_l6m_in_percent:ya({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=>{vS(e.value)&&e.issues.push({code:`custom`,message:`You must set at least one filter.`,input:e.value})})})}),ES={default:{input:[{fields:[]}]}},DS=class extends ${searchId=yS;schema=TS;payload;constructor(e){super(),this.payload=this.validatePayload(e)}getRawOutputFields(){return{[bS.name]:this.catalogOutput(bS),[xS.name]:this.catalogOutput(xS),[SS.name]:this.catalogOutput(SS),[CS.name]:this.catalogOutput(CS),[wS.name]:this.catalogOutput(wS)}}getConnectionsRequirements(){return[{provider:`amplemarket`,rateLimitOperation:`amplemarket_company_search`,rateLimitRatio:1,allowManagedConnection:!0}]}getDedupConfig(){return ES}},OS=TS,kS={searchId:yS,billableOperation:`companies-profiles-amplemarket-v2`,baseSearch:eS(`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:tS(yS),cost:{mode:`per_page`,credits:{default:2}},provider:`amplemarket`,defaultPayload:{search_id:yS,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:[]}}}}},AS=`companies:profiles:crustdata@2`,jS=_(`company_name`),MS=_(`company_domain`),NS=_(`company_description`),PS=_(`company_profile_url`),FS=_(`crustdata_company_match`),IS=r.object({search_id:r.literal(AS),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`}).default(100),cursor:Ta({path:`config.cursor`,groupPath:`config.pagination`,inputType:`text`,label:`Cursor`,sectionKey:`pagination`,description:`Pagination cursor`}),output_fields:R(r.object({[jS.name]:N({fieldName:jS.name}),[MS.name]:N({fieldName:MS.name}),[NS.name]:N({fieldName:NS.name}),[PS.name]:N({fieldName:PS.name}),[FS.name]:N({fieldName:FS.name})})),filters:r.object({hq_locations:I({path:`config.filters.hq_locations`,sectionKey:`config.filters`,label:`HQ locations`,description:``,placeholder:X(`location`),groupPath:`config.filters.location`,optionsDef:g(`locations`)}),crunchbase_categories:I({path:`config.filters.crunchbase_categories`,sectionKey:`config.filters`,label:`Crunchbase categories`,placeholder:X(`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:X(`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:X(`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:X(`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:xa({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:xa({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:X(`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:X(`company_domain`),groupPath:`config.filters.competitors`,suggestionsDef:g(`company_domains`,{widgets:e=>({logo_url:{url:pS(e.value)}})})})}).check(e=>{vS(e.value)&&e.issues.push({code:`custom`,message:`You must set at least one filter.`,input:e.value})})})}),LS={default:{input:[{fields:[]}]}},RS=class extends ${searchId=AS;schema=IS;payload;constructor(e){super(),this.payload=this.validatePayload(e)}getRawOutputFields(){return{[jS.name]:this.catalogOutput(jS),[MS.name]:this.catalogOutput(MS),[NS.name]:this.catalogOutput(NS),[PS.name]:this.catalogOutput(PS),[FS.name]:this.catalogOutput(FS)}}getConnectionsRequirements(){return[{provider:`crustdata`,rateLimitOperation:`crustdata_company_db_search`,rateLimitRatio:1,allowManagedConnection:!0}]}getDedupConfig(){return LS}},zS=IS,BS={searchId:AS,billableOperation:`companies-profiles-crustdata-v2`,baseSearch:eS(`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:tS(AS),cost:{mode:`per_page`,credits:{default:2}},provider:`crustdata`,defaultPayload:{search_id:AS,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:[]}}}}},VS=`companies:profiles:amplemarket@1`,HS=_(`company_name`),US=_(`company_website_url`),WS=_(`company_description`),GS=_(`company_profile_url`),KS=_(`amplemarket_company_match`),qS=r.object({search_id:r.literal(VS),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({[HS.name]:N({fieldName:HS.name}),[US.name]:N({fieldName:US.name}),[WS.name]:N({fieldName:WS.name}),[GS.name]:N({fieldName:GS.name}),[KS.name]:N({fieldName:KS.name})})),filters:r.object({hq_locations:I({path:`config.filters.hq_locations`,sectionKey:`config.filters`,label:`HQ locations`,description:``,placeholder:X(`location`),groupPath:`config.filters.location`,optionsDef:g(`locations`)}),company_names:j({sectionKey:`config.filters`,path:`config.filters.company_names`,label:`Company names`,description:``,placeholder:X(`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:X(`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:X(`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:X(`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:ya({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:X(`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:ya({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=>{vS(e.value)&&e.issues.push({code:`custom`,message:`You must set at least one filter.`,input:e.value})})})}),JS={default:{input:[{fields:[]}]}},YS=class extends ${searchId=VS;schema=qS;payload;constructor(e){super(),this.payload=this.validatePayload(e)}getRawOutputFields(){return{[HS.name]:this.catalogOutput(HS),[US.name]:this.catalogOutput(US),[WS.name]:this.catalogOutput(WS),[GS.name]:this.catalogOutput(GS),[KS.name]:this.catalogOutput(KS)}}getConnectionsRequirements(){return[{provider:`amplemarket`,rateLimitOperation:`amplemarket_company_search`,rateLimitRatio:1,allowManagedConnection:!0}]}getDedupConfig(){return JS}},XS=qS,ZS={searchId:VS,billableOperation:`companies-profiles-amplemarket-v1`,baseSearch:eS(`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:tS(VS),cost:{mode:`per_page`,credits:{default:2}},provider:`amplemarket`,defaultPayload:{search_id:VS,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:[]}}}}},QS=`companies:profiles:crustdata@1`,$S=_(`company_name`),eC=_(`company_website_url`),tC=_(`company_description`),nC=_(`company_profile_url`),rC=_(`crustdata_company_match`),iC=r.object({search_id:r.literal(QS),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:Ta({path:`config.cursor`,groupPath:`config.pagination`,inputType:`text`,label:`Cursor`,sectionKey:`pagination`,description:`Pagination cursor`}),output_fields:R(r.object({[$S.name]:N({fieldName:$S.name}),[eC.name]:N({fieldName:$S.name}),[tC.name]:N({fieldName:tC.name}),[nC.name]:N({fieldName:nC.name}),[rC.name]:N({fieldName:rC.name})})),filters:r.object({hq_locations:I({path:`config.filters.hq_locations`,sectionKey:`config.filters`,label:`HQ locations`,description:``,placeholder:X(`location`),groupPath:`config.filters.location`,optionsDef:g(`locations`)}),crunchbase_categories:I({path:`config.filters.crunchbase_categories`,sectionKey:`config.filters`,label:`Crunchbase categories`,placeholder:X(`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:X(`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:X(`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:X(`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:xa({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:xa({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:X(`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:X(`company_domain`),groupPath:`config.filters.competitors`,suggestionsDef:g(`company_domains`,{widgets:{emoji:{char:`๐ŸŒ`}}})})}).check(e=>{vS(e.value)&&e.issues.push({code:`custom`,message:`You must set at least one filter.`,input:e.value})})})}),aC={default:{input:[{fields:[]}]}},oC=class extends ${searchId=QS;schema=iC;payload;constructor(e){super(),this.payload=this.validatePayload(e)}getRawOutputFields(){return{[$S.name]:this.catalogOutput($S),[eC.name]:this.catalogOutput(eC),[tC.name]:this.catalogOutput(tC),[nC.name]:this.catalogOutput(nC),[rC.name]:this.catalogOutput(rC)}}getConnectionsRequirements(){return[{provider:`crustdata`,rateLimitOperation:`crustdata_company_db_search`,rateLimitRatio:1,allowManagedConnection:!0}]}getDedupConfig(){return aC}},sC=iC,cC={searchId:QS,billableOperation:`companies-profiles-crustdata-v1`,baseSearch:eS(`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:tS(QS),cost:{mode:`per_page`,credits:{default:2}},provider:`crustdata`,defaultPayload:{search_id:QS,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:[]}}}}},lC=`people:profiles:amplemarket@1`,uC=_(`name`),dC=_(`company_website_url`),fC=_(`profile_url`),pC=_(`job_title`),mC=_(`amplemarket_person_match`),hC=r.object({search_id:r.literal(lC),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({[uC.name]:N({fieldName:uC.name}),[dC.name]:N({fieldName:dC.name}),[fC.name]:N({fieldName:fC.name}),[pC.name]:N({fieldName:pC.name}),[mC.name]:N({fieldName:mC.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:X(`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:X(`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:X(`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:X(`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:X(`location`)}),current_employer_names:j({path:`config.filters.current_employer_names`,sectionKey:`config.filters`,label:`Company name`,groupPath:`config.filters.current_company`,description:``,placeholder:X(`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:X(`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:X(`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:ya({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:X(`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:X(`title`),suggestionsDef:g(`titles`)}),school_names:I({path:`config.filters.school_names`,sectionKey:`config.filters`,label:`School names`,description:``,placeholder:X(`school`),groupPath:`config.filters.education`,optionsDef:g(`schools`)})}).check(e=>{vS(e.value)&&e.issues.push({code:`custom`,message:`You must set at least one filter.`,input:e.value})})})}),gC={default:{input:[{fields:[]}]}},_C=class extends ${searchId=lC;schema=hC;payload;constructor(e){super(),this.payload=this.validatePayload(e)}getRawOutputFields(){return{[uC.name]:this.catalogOutput(uC),[dC.name]:this.catalogOutput(dC),[fC.name]:this.catalogOutput(fC),[pC.name]:this.catalogOutput(pC),[mC.name]:this.catalogOutput(mC)}}getConnectionsRequirements(){return[{provider:`amplemarket`,rateLimitOperation:`amplemarket_people_search`,rateLimitRatio:1,allowManagedConnection:!0}]}getDedupConfig(){return gC}},vC=hC,yC={searchId:lC,billableOperation:`people-profiles-amplemarket-v1`,baseSearch:eS(`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:tS(lC),cost:{mode:`per_page`,credits:{default:3},info:`1 page = 100 records; 200 results = 2 pages`},provider:`amplemarket`,defaultPayload:{search_id:lC,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:[]}}}},bC=`people:profiles:crustdata@1`,xC=_(`name`),SC=_(`company_website_url`),CC=_(`profile_url`),wC=_(`job_title`),TC=_(`crustdata_person_match`),EC=r.object({search_id:r.literal(bC),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:Ta({path:`config.cursor`,groupPath:`config.pagination`,inputType:`text`,label:`Cursor`,sectionKey:`pagination`,description:`Pagination cursor`}),output_fields:R(r.object({[xC.name]:N({fieldName:xC.name}),[SC.name]:N({fieldName:SC.name}),[CC.name]:N({fieldName:CC.name}),[wC.name]:N({fieldName:wC.name}),[TC.name]:N({fieldName:TC.name})})),filters:r.object({locations:I({path:`config.filters.locations`,sectionKey:`config.filters`,label:`Location`,placeholder:X(`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:X(`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:X(`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:X(`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:X(`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:X(`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:X(`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:X(`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:X(`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:X(`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:X(`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:X(`profile_keywords`)}),profile_languages:M({path:`config.filters.profile_languages`,sectionKey:`config.filters`,label:`Profile language`,placeholder:X(`languages`),optionsDef:h(`crustdata.person_profile_languages`),groupPath:`config.filters.general`}),languages:M({path:`config.filters.languages`,sectionKey:`config.filters`,label:`Spoken language`,placeholder:X(`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:X(`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:X(`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:X(`certification`),description:``}),honors:j({path:`config.filters.honors`,sectionKey:`config.filters`,label:`Honors`,groupPath:`config.filters.certifications_honors`,placeholder:X(`honor`),description:``}),recently_changed_jobs:wa({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:X(`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:X(`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:X(`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:X(`school`),groupPath:`config.filters.education`,optionsDef:g(`schools`)}),extracurricular_activities:j({path:`config.filters.extracurricular_activities`,sectionKey:`config.filters`,label:`Extracurricular activities`,description:``,placeholder:X(`extracurricular`),groupPath:`config.filters.education`,suggestionsDef:g(`person.education_activities.crustdata`)})}).check(e=>{vS(e.value)&&e.issues.push({code:`custom`,message:`You must set at least one filter.`,input:e.value})})})}),DC={default:{input:[{fields:[]}]}},OC=class extends ${searchId=bC;schema=EC;payload;constructor(e){super(),this.payload=this.validatePayload(e)}getRawOutputFields(){return{[xC.name]:this.catalogOutput(xC),[SC.name]:this.catalogOutput(SC),[CC.name]:this.catalogOutput(CC),[wC.name]:this.catalogOutput(wC),[TC.name]:this.catalogOutput(TC)}}getConnectionsRequirements(){return[{provider:`crustdata`,rateLimitOperation:`crustdata_people_db_search`,rateLimitRatio:1,allowManagedConnection:!0}]}getDedupConfig(){return DC}},kC=EC,AC={searchId:bC,billableOperation:`people-profiles-crustdata-v1`,baseSearch:eS(`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:tS(bC),cost:{mode:`per_page`,credits:{default:5},info:`1 page = 100 records; 200 results = 2 pages`},provider:`crustdata`,defaultPayload:{search_id:bC,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:[]}}}}},jC=`people:entitysearch:parallel@1`,MC=_(`name`),NC=_(`job_title`),PC=_(`profile_url`),FC=_(`parallel_person_entity_match`),IC=r.object({search_id:r.literal(jC),connector:v.nullable().optional(),config:r.object({objective:Ea({path:`config.objective`,sectionKey:`general`,groupPath:`config.general`,label:`Objective`,rows:4,minLength:10,placeholder:`Heads of Engineering at Series B fintech companies in the US`,description:`Plain-text natural-language description of the people to find.`}),limit:L({path:`config.limit`,min:5,max:1e3,groupPath:`config.pagination`,required:!0,sectionKey:`pagination`,label:`Limit`,description:`Max number of entities to return (5โ€“1000).`}).default(100),output_fields:R(r.object({[MC.name]:N({fieldName:MC.name}),[NC.name]:N({fieldName:NC.name}),[PC.name]:N({fieldName:PC.name}),[FC.name]:N({fieldName:FC.name})}))})}),LC={default:{input:[{fields:[]}]}},RC=class extends ${searchId=jC;schema=IC;payload;constructor(e){super(),this.payload=this.validatePayload(e)}getRawOutputFields(){return{[MC.name]:this.catalogOutput(MC),[NC.name]:this.catalogOutput(NC),[PC.name]:this.catalogOutput(PC),[FC.name]:this.catalogOutput(FC)}}getConnectionsRequirements(){return[{provider:`parallel`,rateLimitOperation:`parallel_entity_search`,rateLimitRatio:1,allowManagedConnection:!0}]}getDedupConfig(){return LC}},zC=IC,BC={searchId:jC,billableOperation:`people-entitysearch-parallel-v1`,baseSearch:eS(jC),label:`People search (AI)`,categories:[`people`],paginationType:`page_number`,hasManagedConnection:!0,allowsUserConnection:!0,lifecycle:null,description:`Natural-language people search powered by Parallel Entity Search.`,tags:[B.PEOPLE_PROFILES],docPath:tS(jC),cost:{mode:`per_page`,credits:{default:.5},info:`1 page = 100 results; billed per 100 results returned (e.g. 100 results = 1 page, 1,000 results = 10 pages). A search returns up to your selected limit in a single request.`},provider:`parallel`,defaultPayload:{search_id:jC,connector:null,config:{objective:``,limit:100,output_fields:{name:{enabled:!0,alias:``},job_title:{enabled:!0,alias:``},profile_url:{enabled:!0,alias:``},parallel_person_entity_match:{enabled:!1,alias:``}}}}},VC=`people:profiles:amplemarket@2`,HC=_(`name`),UC=_(`company_domain`),WC=_(`profile_url`),GC=_(`job_title`),KC=_(`amplemarket_person_match`),qC=r.object({search_id:r.literal(VC),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`}).default(50),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({[HC.name]:N({fieldName:HC.name}),[UC.name]:N({fieldName:UC.name}),[WC.name]:N({fieldName:WC.name}),[GC.name]:N({fieldName:GC.name}),[KC.name]:N({fieldName:KC.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:X(`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:X(`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:X(`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:X(`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:X(`location`)}),current_employer_names:j({path:`config.filters.current_employer_names`,sectionKey:`config.filters`,label:`Company name`,groupPath:`config.filters.current_company`,description:``,placeholder:X(`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:X(`company_domain`),groupPath:`config.filters.current_company`,suggestionsDef:g(`company_domains`,{widgets:e=>({logo_url:{url:pS(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:X(`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:ya({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:X(`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:X(`title`),suggestionsDef:g(`titles`)}),school_names:I({path:`config.filters.school_names`,sectionKey:`config.filters`,label:`School names`,description:``,placeholder:X(`school`),groupPath:`config.filters.education`,optionsDef:g(`schools`)})}).check(e=>{vS(e.value)&&e.issues.push({code:`custom`,message:`You must set at least one filter.`,input:e.value})})})}),JC={default:{input:[{fields:[]}]}},YC=class extends ${searchId=VC;schema=qC;payload;constructor(e){super(),this.payload=this.validatePayload(e)}getRawOutputFields(){return{[HC.name]:this.catalogOutput(HC),[UC.name]:this.catalogOutput(UC),[WC.name]:this.catalogOutput(WC),[GC.name]:this.catalogOutput(GC),[KC.name]:this.catalogOutput(KC)}}getConnectionsRequirements(){return[{provider:`amplemarket`,rateLimitOperation:`amplemarket_people_search`,rateLimitRatio:1,allowManagedConnection:!0}]}getDedupConfig(){return JC}},XC=qC,ZC={searchId:VC,billableOperation:`people-profiles-amplemarket-v2`,baseSearch:eS(`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:tS(VC),cost:{mode:`per_page`,credits:{default:3},info:`1 page = 100 records; 200 results = 2 pages`},provider:`amplemarket`,defaultPayload:{search_id:VC,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:[]}}}},QC=`people:profiles:crustdata@2`,$C=_(`name`),ew=_(`company_domain`),tw=_(`profile_url`),nw=_(`job_title`),rw=_(`crustdata_person_match`),iw=r.object({search_id:r.literal(QC),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`}).default(100),cursor:Ta({path:`config.cursor`,groupPath:`config.pagination`,inputType:`text`,label:`Cursor`,sectionKey:`pagination`,description:`Pagination cursor`}),output_fields:R(r.object({[$C.name]:N({fieldName:$C.name}),[ew.name]:N({fieldName:ew.name}),[tw.name]:N({fieldName:tw.name}),[nw.name]:N({fieldName:nw.name}),[rw.name]:N({fieldName:rw.name})})),filters:r.object({locations:I({path:`config.filters.locations`,sectionKey:`config.filters`,label:`Location`,placeholder:X(`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:X(`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:X(`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:X(`company_domain`),description:``,maxItems:200,groupPath:`config.filters.current_employer`,suggestionsDef:g(`company_domains`,{widgets:e=>({logo_url:{url:pS(e.value)}})})}),current_employer_industries:I({path:`config.filters.current_employer_industries`,sectionKey:`config.filters`,label:`Industry`,groupPath:`config.filters.current_employer`,placeholder:X(`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:X(`company_domain`),maxItems:200,groupPath:`config.filters.experience`,suggestionsDef:g(`company_domains`,{widgets:e=>({logo_url:{url:pS(e.value)}})})}),previous_seniority_levels:M({path:`config.filters.previous_seniority_levels`,sectionKey:`config.filters`,label:`Previous seniority`,placeholder:X(`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:X(`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:X(`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:X(`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:X(`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:X(`profile_keywords`)}),profile_languages:M({path:`config.filters.profile_languages`,sectionKey:`config.filters`,label:`Profile language`,placeholder:X(`languages`),optionsDef:h(`crustdata.person_profile_languages`),groupPath:`config.filters.general`}),languages:M({path:`config.filters.languages`,sectionKey:`config.filters`,label:`Spoken language`,placeholder:X(`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:X(`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:X(`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:X(`certification`),description:``}),honors:j({path:`config.filters.honors`,sectionKey:`config.filters`,label:`Honors`,groupPath:`config.filters.certifications_honors`,placeholder:X(`honor`),description:``}),recently_changed_jobs:wa({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:X(`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:X(`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:X(`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:X(`school`),groupPath:`config.filters.education`,optionsDef:g(`schools`)}),extracurricular_activities:j({path:`config.filters.extracurricular_activities`,sectionKey:`config.filters`,label:`Extracurricular activities`,description:``,placeholder:X(`extracurricular`),groupPath:`config.filters.education`,suggestionsDef:g(`person.education_activities.crustdata`)})}).check(e=>{vS(e.value)&&e.issues.push({code:`custom`,message:`You must set at least one filter.`,input:e.value})})})}),aw={default:{input:[{fields:[]}]}},ow=class extends ${searchId=QC;schema=iw;payload;constructor(e){super(),this.payload=this.validatePayload(e)}getRawOutputFields(){return{[$C.name]:this.catalogOutput($C),[ew.name]:this.catalogOutput(ew),[tw.name]:this.catalogOutput(tw),[nw.name]:this.catalogOutput(nw),[rw.name]:this.catalogOutput(rw)}}getConnectionsRequirements(){return[{provider:`crustdata`,rateLimitOperation:`crustdata_people_db_search`,rateLimitRatio:1,allowManagedConnection:!0}]}getDedupConfig(){return aw}},sw=iw,cw={searchId:QC,billableOperation:`people-profiles-crustdata-v2`,baseSearch:eS(`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:tS(QC),cost:{mode:`per_page`,credits:{default:5},info:`1 page = 100 records; 200 results = 2 pages`},provider:`crustdata`,defaultPayload:{search_id:QC,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:[]}}}}},lw={"people:profiles:crustdata@1":OC,"people:profiles:crustdata@2":ow,"companies:profiles:crustdata@1":oC,"companies:profiles:crustdata@2":RS,"people:profiles:amplemarket@1":_C,"people:profiles:amplemarket@2":YC,"companies:profiles:amplemarket@1":YS,"companies:profiles:amplemarket@2":DS,"companies:entitysearch:parallel@1":uS,"people:entitysearch:parallel@1":RC},uw={"people:profiles:crustdata@1":kC,"people:profiles:crustdata@2":sw,"companies:profiles:crustdata@1":sC,"companies:profiles:crustdata@2":zS,"people:profiles:amplemarket@1":vC,"people:profiles:amplemarket@2":XC,"companies:profiles:amplemarket@1":XS,"companies:profiles:amplemarket@2":OS,"companies:entitysearch:parallel@1":dS,"people:entitysearch:parallel@1":zC},dw={"people:profiles:crustdata@1":AC,"people:profiles:crustdata@2":cw,"companies:profiles:crustdata@1":cC,"companies:profiles:crustdata@2":BS,"people:profiles:amplemarket@1":yC,"people:profiles:amplemarket@2":ZC,"companies:profiles:amplemarket@1":ZS,"companies:profiles:amplemarket@2":kS,"companies:entitysearch:parallel@1":fS,"people:entitysearch:parallel@1":BC};function fw(e){return lw[e]}const pw=t.discriminatedUnion(`search_id`,Object.values(uw).map(e=>e)).openapi(`SearchPayloadSchema`);function mw(e,t){return ka(t,dw[e].defaultPayload)}const hw=t.preprocess(e=>{if(!e||typeof e!=`object`||!(`search_id`in e))return e;let t=mw(e.search_id);return t?{...e,config:ka(e?.config||{},t.config)}:e},pw),gw=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:hw}).openapi(`SearchRequestSchema`),_w=Hn,vw=t.object({value:kn,status:On,type:En.optional(),format:Gn.nullable().optional(),resolved_by:Zn.nullable().optional(),widgets:Vn.optional()}),yw=t.record(t.string(),vw.nullable());function bw(e){return uw[e]}const xw=t.enum([`cursor`,`page_number`]),Sw=t.object({id:t.string(),status:t.enum([`completed`,`failed`,`pending`,`processing`]),search_id:Qx,errors:t.array(_w),results:t.array(yw),organization_id:t.string(),next_page:hw.nullable(),pagination_type:xw.nullable(),total_pages:t.int32().nullable()}).openapi(`SearchResponseSchema`);function Cw(e){let t=e.split(`@`)[1];if(!t)throw Error(`No search version found`);return Number(t)}function ww(){let e={};for(let t of Object.values(dw)){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=Cw(e.searchId);return Cw(t.searchId)-n})}),e}function Tw(e){return dw[e]}const Ew=ww();function Dw(e){let t=[];for(let[n,r]of Object.entries(Ew)){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:Cw(i.searchId)})}return t}function Ow(e){return Object.keys(dw[e].defaultPayload.config.output_fields)}function kw(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 Ow(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:Ew}}function Aw(e){let t=Tw(e);return{[t.provider]:t.cost.credits.default}}const jw={"prompt:run@1":Ib,"company:newssummary:website@1":Al,"company:newssummary:domain@1":ws,"company:techstack:builtwith@1":vu,"company:techstack:builtwith@2":Zs,"company:websiteurl:email@1":Du,"company:domain:workemail@1":ro,"company:funding:leadmagic@1":Cc,"company:funding:leadmagic@2":vo,"people:workemail:waterfall@1":Hm,"person:workemail:waterfall@1":kb,"people:email:iswork@1":Iu,"email:iswork@1":Zm,"people:name:split@1":ff,"person:name:split@1":Gv,"people:validate:email:zerobounce@1":hm,"people:email:validate:zerobounce@2":td,"email:validate:zerobounce@1":Dh,"people:mobilenumber:workemail:waterfall@1":tf,"person:name:join@1":Fv,"company:overview@1":Gl,"company:overview@2":su,"company:overview@3":Bs,"json:extract:multi@1":Og,"company:lookalikes:companyenrich@1":el,"company:lookalikes:companyenrich@2":Jo,"company:match:logodev@1":xl,"company:match:logodev@2":hs,"person:posts:crustdata@1":py,"people:profile:workemail:crustdata@1":qp,"person:profile:workemail:crustdata@1":Py,"people:identity:email:waterfall@1":Sd,"person:identity:email:waterfall@1":L_,"person:identity:amplemarket@1":x_,"email:send:resend@1":_h,"contact:create:resend@1":lc,"email:send:gmail@1":uh,"email:write@1":Lh,"fields:merge@1":pg,"field:slugify@1":tg,"field:domainify@1":Kh,"http:request@1":Sg,"template:fill@1":ux,"message:send:slack@1":Ig,"message:write@1":Wg,"people:personalemail:profile:waterfall@1":wf,"person:personalemail:profileurl:waterfall@1":ry,"website:scrape:firecrawl@1":zx,"website:scrapelist:firecrawl@1":Jx,"website:extract:firecrawl@1":yx,"website:maplinks:firecrawl@1":Ox,"sheet:row:append@1":Jb,"sheet:row:expandappend@1":rx,"people:match:role:waterfall@1":Nd,"person:match:role:waterfall@1":rv,"company:match:crustdata@1":ll,"company:match:crustdata@2":rs,"person:match:amplemarket@1":K_,"company:identity@2":Gc,"company:identity@3":ko,"company:identity:crustdata@1":zo,"people:phone:profile:waterfall@1":Ff,"person:mobile:profileurl:waterfall@1":mv,"person:devprofileurl:profileurl:waterfall@1":n_,"people:phone:workemail:waterfall@1":Kf,"person:mobile:workemail:waterfall@1":Tv,"people:profile:waterfall@1":Lp,"person:profile:waterfall@1":wy,"people:profileurl:email:waterfall@1":am,"person:profileurl:email:waterfall@1":Ky,"person:profileurl:name@1":rb,"people:email:validate:zerobounce@1":Gu,"person:email:validate:millionverifier@1":f_,"people:workemail:profileurl:waterfall@1":Om,"person:workemail:profileurl:waterfall@1":hb,"company:identity@1":Pc,"people:professionalprofile:waterfall@1":rp,"people:professionalprofileurl:name@1":Ep,"people:professionalprofileurl:email:waterfall@1":hp,"people:mobilenumber:professionalprofile:waterfall@1":Wd},Mw={"prompt:run@1":Lb,"company:newssummary:website@1":jl,"company:newssummary:domain@1":Ts,"company:techstack:builtwith@1":yu,"company:techstack:builtwith@2":Qs,"company:websiteurl:email@1":Ou,"company:domain:workemail@1":io,"company:funding:leadmagic@1":wc,"company:funding:leadmagic@2":yo,"people:workemail:waterfall@1":Um,"person:workemail:waterfall@1":Ab,"people:email:iswork@1":Lu,"email:iswork@1":Qm,"people:name:split@1":pf,"person:name:split@1":Kv,"people:validate:email:zerobounce@1":gm,"people:email:validate:zerobounce@2":nd,"email:validate:zerobounce@1":Oh,"people:mobilenumber:workemail:waterfall@1":nf,"person:name:join@1":Iv,"company:overview@1":Kl,"company:overview@2":cu,"company:overview@3":Vs,"json:extract:multi@1":kg,"email:write@1":Rh,"fields:merge@1":mg,"field:slugify@1":ng,"field:domainify@1":qh,"http:request@1":Cg,"email:send:resend@1":vh,"contact:create:resend@1":uc,"company:lookalikes:companyenrich@1":tl,"company:lookalikes:companyenrich@2":Yo,"company:match:logodev@1":Sl,"company:match:logodev@2":gs,"person:posts:crustdata@1":my,"people:profile:workemail:crustdata@1":Jp,"person:profile:workemail:crustdata@1":Fy,"people:identity:email:waterfall@1":Cd,"person:identity:email:waterfall@1":R_,"company:match:crustdata@1":ul,"company:match:crustdata@2":is,"person:identity:amplemarket@1":S_,"message:send:slack@1":Lg,"email:send:gmail@1":dh,"message:write@1":Gg,"template:fill@1":dx,"website:scrape:firecrawl@1":Bx,"website:scrapelist:firecrawl@1":Yx,"website:extract:firecrawl@1":bx,"website:maplinks:firecrawl@1":kx,"sheet:row:append@1":Yb,"sheet:row:expandappend@1":ix,"people:match:role:waterfall@1":Pd,"person:match:role:waterfall@1":iv,"company:identity@2":Kc,"company:identity@3":Ao,"company:identity:crustdata@1":Bo,"people:phone:profile:waterfall@1":If,"person:mobile:profileurl:waterfall@1":hv,"person:devprofileurl:profileurl:waterfall@1":r_,"people:personalemail:profile:waterfall@1":Tf,"person:personalemail:profileurl:waterfall@1":iy,"people:profile:waterfall@1":Rp,"person:profile:waterfall@1":Ty,"people:profileurl:email:waterfall@1":om,"person:profileurl:email:waterfall@1":qy,"person:profileurl:name@1":ib,"people:email:validate:zerobounce@1":Ku,"person:email:validate:millionverifier@1":p_,"people:phone:workemail:waterfall@1":qf,"person:mobile:workemail:waterfall@1":Ev,"people:workemail:profileurl:waterfall@1":km,"person:workemail:profileurl:waterfall@1":gb,"person:match:amplemarket@1":q_,"company:identity@1":Fc,"people:professionalprofile:waterfall@1":ip,"people:professionalprofileurl:name@1":Dp,"people:professionalprofileurl:email:waterfall@1":gp,"people:mobilenumber:professionalprofile:waterfall@1":Gd},Nw={"prompt:run@1":Rb,"company:newssummary:website@1":Ml,"company:newssummary:domain@1":Es,"company:techstack:builtwith@1":bu,"company:techstack:builtwith@2":$s,"company:websiteurl:email@1":ku,"company:domain:workemail@1":ao,"company:funding:leadmagic@1":Tc,"company:funding:leadmagic@2":bo,"people:workemail:waterfall@1":Wm,"person:workemail:waterfall@1":jb,"people:email:iswork@1":Ru,"email:iswork@1":$m,"people:name:split@1":mf,"person:name:split@1":qv,"people:validate:email:zerobounce@1":_m,"people:mobilenumber:workemail:waterfall@1":rf,"person:name:join@1":Lv,"company:overview@1":ql,"company:overview@2":lu,"company:overview@3":Hs,"json:extract:multi@1":Ag,"email:send:resend@1":yh,"contact:create:resend@1":dc,"email:send:gmail@1":fh,"message:send:slack@1":Rg,"message:write@1":Kg,"email:write@1":zh,"template:fill@1":fx,"fields:merge@1":hg,"field:slugify@1":rg,"field:domainify@1":Jh,"http:request@1":wg,"sheet:row:append@1":Xb,"sheet:row:expandappend@1":ax,"company:lookalikes:companyenrich@1":nl,"company:lookalikes:companyenrich@2":Xo,"people:match:role:waterfall@1":Fd,"person:match:role:waterfall@1":av,"company:match:logodev@1":Cl,"company:match:logodev@2":_s,"person:posts:crustdata@1":hy,"people:profile:workemail:crustdata@1":Yp,"person:profile:workemail:crustdata@1":Iy,"people:workemail:profileurl:waterfall@1":Am,"person:workemail:profileurl:waterfall@1":_b,"people:identity:email:waterfall@1":wd,"person:identity:email:waterfall@1":z_,"company:match:crustdata@1":dl,"company:match:crustdata@2":as,"person:identity:amplemarket@1":C_,"email:validate:zerobounce@1":kh,"person:email:validate:millionverifier@1":m_,"people:personalemail:profile:waterfall@1":Ef,"person:personalemail:profileurl:waterfall@1":ay,"people:email:validate:zerobounce@1":qu,"people:email:validate:zerobounce@2":rd,"people:phone:workemail:waterfall@1":Jf,"person:mobile:workemail:waterfall@1":Dv,"website:scrape:firecrawl@1":Vx,"website:scrapelist:firecrawl@1":Xx,"website:extract:firecrawl@1":xx,"website:maplinks:firecrawl@1":Ax,"person:match:amplemarket@1":J_,"company:identity@2":qc,"company:identity@3":jo,"company:identity:crustdata@1":Vo,"people:phone:profile:waterfall@1":Lf,"person:mobile:profileurl:waterfall@1":gv,"person:devprofileurl:profileurl:waterfall@1":i_,"people:profile:waterfall@1":zp,"person:profile:waterfall@1":Ey,"people:profileurl:email:waterfall@1":sm,"person:profileurl:email:waterfall@1":Jy,"person:profileurl:name@1":ab,"company:identity@1":Ic,"people:professionalprofile:waterfall@1":ap,"people:professionalprofileurl:name@1":Op,"people:professionalprofileurl:email:waterfall@1":_p,"people:mobilenumber:professionalprofile:waterfall@1":Kd};function Pw(e){return e.defaultPayload?.config?.output_fields?Object.keys(e.defaultPayload?.config?.output_fields||{}):[]}function Fw(e){return jw[e]}function Iw(e){return Nw[e].defaultPayload}function Lw(e){return Mw[e]}const Rw=r.discriminatedUnion(`pipe_id`,Object.values(Mw)).openapi(`PipePayload`),zw=r.preprocess(e=>{if(!e||typeof e!=`object`||!(`pipe_id`in e))return e;try{let t=Iw(wn.parse(e.pipe_id));return t?{...e,config:ka(e?.config||{},t.config)}:e}catch{return e}},Rw);function Bw(e){return Nw[e]}function Vw(e,t){let n=Bw(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 Hw(e){let t=e.split(`@`)[1];if(!t)throw Error(`No pipe version found`);return Number(t)}function Uw(){let e={};for(let t of Object.values(Nw)){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=Hw(e.pipeId);return Hw(t.pipeId)-n})}),e}const Ww=e=>{let t=Bw(e),n=new Set(t.deprecatedProviders);return Array.from(new Set([...t.managedProviders,...t.allowedUserConnectionProviders])).filter(e=>!n.has(e))},Gw=Uw();function Kw(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
+ `);throw Error(`Catalog has ${r.length} duplicate billable-operation key(s):\n${e}`)}}Kw(Nw,dw);function qw(e){let t=[];for(let[n,r]of Object.entries(Gw)){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:Hw(i.pipeId)})}return t}function Jw(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=Ww(e.defaultPayload.pipe_id);for(let n of t)o[n]??=[],o[n].push(e.defaultPayload.pipe_id);for(let t of Pw(e))i[t]??=[],i[t].push(e.defaultPayload.pipe_id);if(e.defaultInputRequirement)for(let{field:t}of Fa(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:Gw}}const Yw=r.object({id:r.string(),organization_id:r.string(),order:r.array(Dn),field_definitions:ir,errors:r.array(Hn),records:r.record(Dn,tr),status:r.enum([`completed`,`failed`,`pending`,`processing`])}).openapi(`PipesResponseSchema`),Xw=r.object({environment:Sn.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`),Zw=r.object({config:Xw.openapi(`PipesRequestConfig`),field_annotations:qn.optional().openapi(`PipesFieldAnnotations`),pipes:r.array(Rw),input:r.array(er.openapi(`PipesInputSchema`)),scopes:r.array(r.string()).optional()});function Qw(e){let t=Bw(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 $w={"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}},eT={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`}},tT={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 nT(e){let t=Lw(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 rT({pipePayload:e,validationContext:t,sectionOrder:n=tT,store:r,groupPathMatch:i=$w,formResolvers:a}){let o=Lw(e.pipe_id),s=Va(e.pipe_id,e.config||{});return Ki({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:Bw(e.pipe_id),hash:s}):i},sectionOrder:n,sectionMap:eT,store:r,formResolvers:a})}const iT={"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}},aT={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`}},oT={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 sT({searchPayload:e,sectionOrder:t=oT,formContext:n,groupPathMatch:r=iT,formResolvers:i}){return Ki({schema:bw(e.search_id),groupPathMatch:r,extractFromSchema:e=>b.get(e),sectionOrder:t,sectionMap:aT,store:n,formResolvers:i})}const cT=new Proxy({},{get:(e,t)=>e=>e.type===t}),lT=`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(`.`),uT=r.enum(lT),dT=r.object({provider_logo:r.object({provider:xn}).optional(),emoji:r.object({char:r.string()}).optional(),icon:r.object({key:uT}).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()}),fT=`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(fT);const pT=r.object({value:r.string(),label:r.string(),widgets:dT.optional()}),mT=r.object({field_options:r.record(r.string(),r.object({options:r.array(pT)}))}),hT=[{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}],gT=new Map(hT.map(e=>[e.id,e]));function _T(e){return gT.get(e)}function vT(){return hT}const yT={"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
 
77
77
  My company, <YOUR_COMPANY_NAME>, can be described as follows: <ADD_COMPANY_DESCRIPTION>.
@@ -116,4 +116,4 @@ Customize the message using the name of the user: {{ name }}.
116
116
  `}}],input:[{id:`1`,job_title:`GTM Engineer`,name:`Pipe Piper`}]}],"person:profileurl:name@1":[{config:{environment:`production`},pipes:[{pipe_id:`person:profileurl:name@1`}],input:[{id:`1`,name:`John`,company_name:`Pipe0`}]}],"template:fill@1":[{config:{environment:`production`},pipes:[{pipe_id:`template:fill@1`,config:{template:`Hey team: A new user has just signed up. Here's the info:
117
117
  **Name**: {{ name }}
118
118
  **Email**: {{ email }}
119
- `}}],input:[{id:`1`,name:`John`,email:`john@pipe0.com`}]}],"email:send:resend@1":[{config:{environment:`production`},pipes:[{connector:{strategy:`first`,connections:[{connection:`resend_123`,type:`vault`}]},pipe_id:`email:send:resend@1`,config:{from:`<FROM_EMAIL_ADDRESS>`,to:`{{ email }}`,reply_to:`<REPLY_TO_EMAIL_ADDRESS>`,subject:`{{ email_subject }}`,body:`{{ email_body }}`}}],input:[{id:`1`,email:`<EMAIL_ADDRESS>`,email_body:`<EMAIL_TEXT>`,email_subject:`<EMAIL_SUBJECT_LINE>`}]}],"email:send:gmail@1":[{config:{environment:`production`},pipes:[{connector:{strategy:`first`,connections:[{connection:`gmail_123`,type:`vault`}]},pipe_id:`email:send:gmail@1`,config:{to:`{{ email }}`,reply_to:`<REPLY_TO_EMAIL_ADDRESS>`,subject:`{{ email_subject }}`,body:`{{ email_body }}`}}],input:[{id:`1`,email:`<EMAIL_ADDRESS>`,email_body:`<EMAIL_TEXT>`,email_subject:`<EMAIL_SUBJECT_LINE>`}]}],"message:send:slack@1":[{config:{environment:`production`},pipes:[{connector:{strategy:`first`,connections:[{connection:`slack_123`,type:`vault`}]},pipe_id:`message:send:slack@1`,config:{channel_id:`<SLACK_CHANNEL_ID>`,message:`{{ message }}`}}],input:[{id:`1`,message:`<MESSAGE_TEXT>`}]}],"people:profileurl:email:waterfall@1":[{config:{environment:`production`},pipes:[{pipe_id:`people:profileurl:email:waterfall@1`}],input:[{id:`1`,email:`<MESSAGE_TEXT>`}]}],"person:profileurl:email:waterfall@1":[{config:{environment:`production`},pipes:[{pipe_id:`person:profileurl:email:waterfall@1`}],input:[{id:`1`,email:`<MESSAGE_TEXT>`}]}],"people:validate:email:zerobounce@1":[{config:{environment:`production`},pipes:[{pipe_id:`people:validate:email:zerobounce@1`}],input:[{id:`1`,work_email:`john@pipe0.com`}]}],"people:mobilenumber:workemail:waterfall@1":[{config:{environment:`production`},pipes:[{pipe_id:`people:mobilenumber:workemail:waterfall@1`}],input:[{id:`1`,work_email:`john@pipe0.com`}]}],"people:professionalprofile:waterfall@1":[{config:{environment:`production`},pipes:[{pipe_id:`people:professionalprofile:waterfall@1`}],input:[{id:`1`,professional_profile_url:`john@pipe0.com`}]}],"people:professionalprofileurl:name@1":[{config:{environment:`production`},pipes:[{pipe_id:`people:professionalprofileurl:name@1`}],input:[{id:`1`,name:`John`,company_name:`Pipe0`,location_int:`Berlin`}]}],"people:professionalprofileurl:email:waterfall@1":[{config:{environment:`production`},pipes:[{pipe_id:`people:professionalprofileurl:email:waterfall@1`}],input:[{id:`1`,email:`john@pipe0.com`}]}],"people:mobilenumber:professionalprofile:waterfall@1":[{config:{environment:`production`},pipes:[{pipe_id:`people:mobilenumber:professionalprofile:waterfall@1`}],input:[{id:`1`,professional_profile_url:`https://linkedin.com/li/john`}]}],"company:overview@2":[{config:{environment:`production`},pipes:[{pipe_id:`company:overview@2`,config:{}}],input:[{id:`1`,company_website_url:`Pipe0`}]}],"company:overview@3":[{config:{environment:`production`},pipes:[{pipe_id:`company:overview@3`,config:{}}],input:[{id:`1`,company_domain:`pipe0.com`}]}],"fields:merge@1":[{config:{environment:`production`},pipes:[{pipe_id:`fields:merge@1`,config:{sources:[{field_name:`field_1`},{field_name:`field_2`}]}}],input:[{id:`1`,company_website_url:`Pipe0`}]}],"website:scrape:firecrawl@1":[{config:{environment:`production`},pipes:[{pipe_id:`website:scrape:firecrawl@1`,config:{scrape_main_only:!0,input_fields:{website_url:{alias:``}}}}],input:[{id:`1`,company_website_url:`Pipe0`}]}],"website:extract:firecrawl@1":[{config:{environment:`production`},pipes:[{pipe_id:`website:extract:firecrawl@1`,config:{extraction_prompt:`Extract the company mission as well as the latest news.`,enable_full_domain_crawl:!0,enable_web_search:!0,json_schema:{type:`object`,required:[`company_mission`,`latest_news`],properties:{company_mission:{type:`string`},latest_news:{type:`string`}}}}}],input:[{id:`1`,company_website_url:`Pipe0`}]}],"person:email:validate:millionverifier@1":[{config:{environment:`production`},pipes:[{pipe_id:`person:email:validate:millionverifier@1`}],input:[{id:`1`,email:`john@pipe0.com`}]}],"website:scrapelist:firecrawl@1":[{config:{environment:`production`},pipes:[{pipe_id:`website:scrapelist:firecrawl@1`,config:{scrape_main_only:!0,formats:[`markdown`,`links`]}}],input:[{id:`1`,urls:[`https://pipe0.com`,`https://pipe0.com/docs`]}]}],"website:maplinks:firecrawl@1":[{config:{environment:`production`},pipes:[{pipe_id:`website:maplinks:firecrawl@1`,config:{sitemap:`include`,page_limit:20,search:``}}],input:[{id:`1`,urls:[`https://pipe0.com`,`https://pipe0.com/docs`]}]}],"contact:create:resend@1":[{config:{environment:`production`},pipes:[{pipe_id:`contact:create:resend@1`,connector:{strategy:`first`,connections:[{type:`vault`,connection:`resend_123`}]},config:{segment_id:`segment_id_12xeeb12`,add_as_subscribed:!0}}],input:[{id:`1`,email:`test@pipe0.com`,name:`John Dorr`}]}],"sheet:row:append@1":[{config:{environment:`production`},pipes:[{pipe_id:`sheet:row:append@1`,connector:{strategy:`first`,connections:[{type:`vault`,connection:`pipe0_123`}]},config:{sheet:`sheet_id`,run:!0,allow_field_creation:!0,allow_sheet_creation:!0,new_sheet_team_id:``,included_fields:[{field_name:`field_name`}]}}],input:[{id:`1`,email:`test@pipe0.com`,name:`John Dorr`}]}],"sheet:row:expandappend@1":[{config:{environment:`production`},pipes:[{pipe_id:`sheet:row:expandappend@1`,connector:{strategy:`first`,connections:[{type:`vault`,connection:`pipe0_123`}]},config:{sheet:`sheet_id`,run:!0,allow_field_creation:!0}}],input:[{id:`1`,email:`test@pipe0.com`,name:`John Dorr`}]}],"people:match:role:waterfall@1":[{config:{environment:`production`},pipes:[{pipe_id:`people:match:role:waterfall@1`,config:{providers:[{provider:`leadmagic`}],roles:[`CEO`]}}],input:[{id:`1`,company_website_url:`https://acme.com`}]}],"person:match:role:waterfall@1":[{config:{environment:`production`},pipes:[{pipe_id:`person:match:role:waterfall@1`,config:{providers:[{provider:`leadmagic`}],roles:[`CEO`]}}],input:[{id:`1`,company_domain:`acme.com`}]}],"company:match:logodev@1":[{config:{environment:`production`},pipes:[{pipe_id:`company:match:logodev@1`}],input:[{id:`1`,company_website_url:`https://acme.com`}]}],"company:match:logodev@2":[{config:{environment:`production`},pipes:[{pipe_id:`company:match:logodev@2`}],input:[{id:`1`,company_domain:`acme.com`}]}],"company:lookalikes:companyenrich@1":[{config:{environment:`production`},pipes:[{pipe_id:`company:lookalikes:companyenrich@1`}],input:[{id:`1`,company_website_url:`https://acme.com`}]}],"company:lookalikes:companyenrich@2":[{config:{environment:`production`},pipes:[{pipe_id:`company:lookalikes:companyenrich@2`}],input:[{id:`1`,company_domain:`acme.com`}]}],"person:posts:crustdata@1":[{config:{environment:`production`},pipes:[{pipe_id:`person:posts:crustdata@1`}],input:[{id:`1`,profile_url:`https://linkedin.com/li/john-doe-3445`}]}],"people:identity:email:waterfall@1":[{config:{environment:`production`},pipes:[{pipe_id:`people:identity:email:waterfall@1`}],input:[{id:`1`,work_email:`john@pipe0.com`}]}],"person:identity:email:waterfall@1":[{config:{environment:`production`},pipes:[{pipe_id:`person:identity:email:waterfall@1`}],input:[{id:`1`,work_email:`john@pipe0.com`}]}],"people:profile:workemail:crustdata@1":[{config:{environment:`production`},pipes:[{pipe_id:`people:profile:workemail:crustdata@1`}],input:[{id:`1`,work_email:`john@pipe0.com`}]}],"person:profile:workemail:crustdata@1":[{config:{environment:`production`},pipes:[{pipe_id:`person:profile:workemail:crustdata@1`}],input:[{id:`1`,work_email:`john@pipe0.com`}]}],"people:workemail:profileurl:waterfall@1":[{config:{environment:`production`},pipes:[{pipe_id:`people:workemail:profileurl:waterfall@1`}],input:[{id:`1`,profile_url:`https://linkedin.com/li/john-123abc`}]}],"person:workemail:profileurl:waterfall@1":[{config:{environment:`production`},pipes:[{pipe_id:`person:workemail:profileurl:waterfall@1`}],input:[{id:`1`,profile_url:`https://linkedin.com/li/john-123abc`}]}],"company:match:crustdata@1":[{config:{environment:`production`},pipes:[{pipe_id:`company:match:crustdata@1`}],input:[{id:`1`,company_website_url:`https://microsoft.com`}]}],"company:match:crustdata@2":[{config:{environment:`production`},pipes:[{pipe_id:`company:match:crustdata@2`}],input:[{id:`1`,company_domain:`microsoft.com`}]}],"company:identity:crustdata@1":[{config:{environment:`production`},pipes:[{pipe_id:`company:identity:crustdata@1`}],input:[{id:`1`,company_domain:`samsung.com`},{id:`2`,company_name:`Samsung`}]}],"person:identity:amplemarket@1":[{pipes:[{pipe_id:`person:identity:amplemarket@1`,connector:{strategy:`first`,connections:[{type:`vault`,connection:`amplemarket_123`}]}}],input:[{id:`1`,email:`hallp@pipe0.com`}]}],"person:match:amplemarket@1":[{pipes:[{pipe_id:`person:match:amplemarket@1`,connector:{strategy:`first`,connections:[{type:`vault`,connection:`amplemarket_123`}]}}],input:[{id:`1`,profile_url:`https://linkedin.com/li/johndoe`}]}],"field:domainify@1":[{pipes:[{pipe_id:`field:domainify@1`}],input:[{id:`1`,url_input:`https://google.com`}]}],"field:slugify@1":[{pipes:[{pipe_id:`field:slugify@1`}],input:[{id:`1`,string_input:`input value`}]}],"http:request@1":[{pipes:[{pipe_id:`http:request@1`,config:{method:`GET`,url:`https://api.example.com/v1/companies/{{ company_name }}`,query_params:[{key:`limit`,value:`10`}],body:``,headers:[{key:`Authorization`,value:`Bearer SECRET`}],expected_response_schema:{},output_fields:{http_response_status:{alias:``,enabled:!0},http_response_body:{alias:``,enabled:!0},http_response_headers:{alias:``,enabled:!1}}}}],input:[{id:`1`,company_name:`Acme`}]}]};function Yw(e){let t=[];for(let n of e){if(n instanceof U){t.push(n);continue}let e=mw.parse(n);if(!hw(n.pipe_id))throw Error(`Unknown pipe: ${n.pipe_id}`);let r=new(uw(n.pipe_id))(e);t.push(r)}return t}function Xw(e,t){let n=Yw(e),r=new Set;return n.forEach(e=>Object.entries(e.inputFields).forEach(([n,i])=>{i.resolvedName===t&&r.add(e.pipeId)})),Array.from(r)}function Zw(e,t){let n=e.dependencyGraph,r=new Set;return n.forEach((e,n)=>e.forEach(e=>{e.index===t&&r.add(n)})),Array.from(r).map(t=>{let n=e.orderedPipeInstances[t];if(!n)throw Error(`Internal: Pipe with index ${t} not found.`);return n.pipeId})}const Qw=.1,$w=[`level1`,`level2`,`level3`];function eT(e,t){let n=$w[t-1];if(n)return e[n]}function tT(e,t){for(let n=t;n>=1;n--){let t=eT(e,n);if(t)return{level:n,tier:t}}}function nT(e){let t=[];for(let n=1;n<=3;n++){let r=eT(e,n);r&&t.push({level:n,credits:r.credits,weight:r.weight})}return t}function rT(e){if(e.default<.1)return!1;let t=nT(e);if(t.length===0)return!1;for(let e=0;e<t.length;e++)if(t[e].level!==e+1)return!1;let n=e.default,r=0;for(let e of t){if(!(e.credits<n)||!Number.isInteger(e.weight)||e.weight<=r)return!1;n=e.credits,r=e.weight}return!0}function iT(){let e=new Map;for(let t of Object.values(cw))for(let[n,r]of Object.entries(t.billableOperations)){let i=r;if(!i?.allowManagedConnection||!rT(i.credits))continue;let a=n,o={kind:`pipe`,id:t.pipeId,label:t.label,categories:[...t.categories]},s=e.get(a);if(s){s.standardCredits=Math.min(s.standardCredits,i.credits.default),s.usedBy.push(o);continue}e.set(a,{billableOperation:a,provider:i.provider,kind:`pipe`,standardCredits:i.credits.default,tiers:nT(i.credits),usedBy:[o]})}for(let t of Object.values(BC)){let{cost:n}=t;if(!rT(n.credits))continue;let r=t.billableOperation,i={kind:`search`,id:t.searchId,label:t.label,categories:[...t.categories]},a=e.get(r);if(a){a.standardCredits=Math.min(a.standardCredits,n.credits.default),a.usedBy.push(i);continue}e.set(r,{billableOperation:r,provider:t.provider,kind:`search`,standardCredits:n.credits.default,tiers:nT(n.credits),usedBy:[i]})}return[...e.values()].sort((e,t)=>e.billableOperation.localeCompare(t.billableOperation))}function aT(e){return e===`localhost`?!0:/^[a-zA-Z0-9]([a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(\.[a-zA-Z0-9]([a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/.test(e)&&e.includes(`.`)}function oT(e){return/^(\d{1,3})\.(\d{1,3})\.(\d{1,3})\.(\d{1,3})$/.test(e)?e.split(`.`).every(e=>{let t=parseInt(e,10);return t>=0&&t<=255}):/:/.test(e)}function sT(e){if(!e||typeof e!=`string`)return``;let t=e.trim();t.match(/^[a-zA-Z]+:\/\//)||(t=`https://${t}`);try{let e=new URL(t).hostname;if(oT(e))return`https://${e}`;if(!aT(e))throw Error(`Invalid domain`);return`https://${e}`}catch{let t=e.match(/([a-zA-Z0-9]([a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,}/i);return t?`https://${t[0]}`:``}}function cT(e){if(!e||typeof e!=`string`)return``;let t=e.trim();t.match(/^[a-zA-Z]+:\/\//)||(t=`https://${t}`);try{let e=new URL(t),n=e.hostname;if(oT(n))return`${e.protocol===`http:`?`http:`:`https:`}//${e.host}${e.pathname}${e.search}${e.hash}`;if(!aT(n))throw Error(`Invalid domain`);return`${e.protocol===`http:`?`http:`:`https:`}//${e.host}${e.pathname}${e.search}${e.hash}`}catch{let t=e.match(/^(https?:\/\/)?([^/\s]+)(\/.*)?$/i);if(t){let[,e,n,r=``]=t,i=n?.split(`:`)[0]||``;if(aT(i)||oT(i))return`${e?.toLowerCase()===`http://`?`http:`:`https:`}//${n}${r}`}return``}}function lT(e){try{return sT(e)}catch{console.warn(`Invalid URL: ${e}`);return}}function uT(e,t){if(t)switch(e){case`website_url`:return lT(t);default:return}}function dT(e){let t;if(fT(e))return dT(e.value);let n=typeof e;return t=n===`string`||n===`number`||n===`boolean`?n:e===null?`unknown`:`json`,t}function fT(e,t=0){if(typeof e==`object`&&e&&`value`in e&&`status`in e&&wn.safeParse(e.status).success){if(t>1||typeof e.value==`object`&&fT(e.value,t++))throw new $([Q.RecursiveExpandedValue()]);return!0}return!1}function pT(e){let t=fT(e),n;return n=t?e.value:e,t?{isExpanded:!0,resolvedInputValue:n,expandedValue:e}:{isExpanded:!1,resolvedInputValue:n,expandedValue:null}}function mT(e){return fT(e)?mT(e.value):e}function hT(e,t,n){if([`processing`,`completed`].includes(n.status)===!1||t==null)return{};try{let r=on(e,n.format)?.getStaticWidgets?.(t),i=uT(n.format,t);return Qx(r||{},{display_value:i?{label:i}:void 0})}catch(e){return console.warn(`Failed to generate UI props: ${e}`),{}}}function gT(e,t,n){if(t==null)return{};try{let r=on(e,n)?.getStaticWidgets?.(t),i=uT(n,t);return Qx(r||{},{display_value:i?{label:i}:void 0})}catch(e){return console.warn(`Failed to generate UI props: ${e}`),{}}}function _T(e,t){for(let[n,r]of Object.entries(t)){let i=n;i===`type`&&e.type===`unknown`&&t.type!==`unknown`&&(e.type=t.type),i!==`type`&&i!==`json_metadata`&&(e[i]===void 0||e[i]===null||e[i]===``)&&t[i]&&(e[i]=r),i===`json_metadata`&&e.type===`json`&&!e.json_metadata&&t.json_metadata&&(e.json_metadata=t.json_metadata)}return e}var vT=class e{annotations;constructor(e){this.annotations=e||{}}getAnnotation(e){return this.annotations[e]}static fromInput(t,{probeCount:n=1e5,inferCatalogFields:i=!0}={probeCount:1e5,inferCatalogFields:!0}){let a={},o=0;for(let e of t){if(o++,o>n)break;for(let[t,n]of Object.entries(e)){if(t===``||t==null)continue;let{resolvedInputValue:e,expandedValue:o,isExpanded:s}=pT(n),c;c=s&&o.type?o.type:dT(e);let l;sn(t)&&(l=_(t));let u=l&&(l.type===c||c===`unknown`);(!a[t]||a[t].type===`unknown`&&c!==`unknown`)&&(a[t]={type:c===`unknown`&&u&&i&&l?.type?l.type:c,format:u&&i&&l?.format||null,label:l&&i?l.label:null,json_metadata:u&&i&&l?.jsonMeta?{schema:l.jsonMeta.zodSchema?r.toJSONSchema(l.jsonMeta.zodSchema):null,example_value:l.jsonMeta.exampleValue||null}:null})}}return a.id||={format:null,type:`string`,json_metadata:null,label:null},new e(a)}merge(t,n=!1){let r=structuredClone(this.annotations),i=t instanceof e?t.annotations:t;for(let[e,t]of Object.entries(i))if(r[e]===void 0||n)r[e]=t;else{let n=r[e];r[e]=_T(n,t)}return new e(r)}deleteKey(t){let n=structuredClone(this.annotations);return delete n[t],new e(n)}};function yT(e){let t={};for(let n=0;n<e.length;n++){let r=e[n];Object.values(r.getOutputFields()).forEach(e=>{if(t[e.resolvedName])throw new $([Q.AmbiguousDependency({fieldName:e.resolvedName})]);t[e.resolvedName]=n})}return t}function bT(e){let t=yT(e),n=[];for(let[r,i]of e.entries()){let e=[];for(let{field:n,required:a}of ja(i.getInputRequirement())){let o=t[n.resolvedName];if(r===o)throw new $([{code:`SelfReference`,message:`Pipe '${i.pipeId} has an input requirement that points to a field that is produced by itself.'`}]);if(o==null)continue;let s=e.find(e=>e.index===o);s?(s.reason??=[],s.reason=Array.from(new Set([...s.reason,`input`])),s.required=a||s.required):e.push({index:o,required:a,reason:[`input`]})}if(i.payload.run_if){let n=i.payload.run_if.when.conditions.map(e=>e.field_name);for(let r of n){let n=t[r];if(n==null)continue;let i=e.find(e=>e.index===n);i?(i.reason??=[],i.reason=Array.from(new Set([...i.reason,`input`])),i.required=!0):e.push({index:n,required:!0,reason:[`input`]})}}n.push(e)}return n}function xT({config:e,pipes:t,input:n,field_annotations:r}){try{let i=TT({config:e,pipes:t,input:n,fieldAnnotations:r});return ST(i),i}catch(e){throw e instanceof $?e:new $([Q.ValidationFailed({error:e})])}}function ST(e){for(let t of e.orderedPipeInstances)for(let{field:n}of ja(t.getInputRequirement()))Xm({pipes:e.orderedPipeInstances,derivedInputFields:e.derivedInputFields},n.type),Zm({pipes:e.orderedPipeInstances,derivedInputFields:e.derivedInputFields},n.format)}function CT(e,t){if(!e&&!t)throw new $([Q.MustDefineAnnotations()]);return new vT(t||{}).merge(vT.fromInput(e||[]))}function wT(e,t){let n={...t};return e.pipes.forEach((t,r)=>{for(let[i,a]of Object.entries(t.getOutputFields())){let i=n[a.resolvedName];if(i&&i.added_by.ref!==`input`)throw new $([Q.DuplicatePipeOutput({pipeId:t.pipeId,outputField:a})]);n[a.resolvedName]={type:Xm(e,a.type),added_by:{ref:t.pipeId,config_hash:t.getConfigHashKey(),pipe_index:r},label:i?.label||a.label,format:Zm(e,a.format),is_primary_output:a.isPrimaryOutput}}}),n}function TT(e){let t=Yw(e.pipes),n=CT(e.input,e.fieldAnnotations),r={},i=new Set;t.forEach((e,t)=>{Object.entries(e.getOutputFields()).forEach(([e,t])=>{r[t.resolvedName]=e,i.add(t.resolvedName)}),OT(e,t)});let a={},o={};for(let[e,t]of Object.entries(n.annotations))o[e]={type:t.type,added_by:{ref:`input`,config_hash:null,pipe_index:null},label:t.label||``,format:t.format?t.format:null,is_primary_output:!1},!i.has(e)&&(a[e]={addedBy:`input`,required:!1,type:t.type,label:t.label||e});let[s,c,l]=ET(t,n),u=wT({pipes:c,derivedInputFields:a},o);for(let e in u){let t=u[e];r[e]&&(n=n.merge({[e]:{type:t.type,format:t.format,json_metadata:null,label:n.annotations[e]?.label?n.annotations[e]?.label:null}},!0))}return{environment:e.config.environment,dependencyGraph:l,derivedInputFields:a,fieldAnnotations:n,orderedPipePayloads:s,orderedPipeInstances:c,resolvedFieldNames:r,fieldDefinitions:u}}function ET(e,t){let n=bT(e),r=DT(n,e,t),i=[],a=[];return r.forEach(t=>{let n=e[t];if(!n)throw new $([Q.FaultyEnrichmentOrder()]);i.push(n.payload),a.push(n)}),[i,a,n]}function DT(e,t,n){let r=t.length,i=[],a=new Set,o=new Set,s=[],c=e=>{let n=t[e];return n?ja(n.getInputRequirement()).length>0:!1},l=(n,r=[])=>{if(o.has(n)){let e=n,i=r[r.length-1]||0,a={idx:i,pipe_id:t[i]?.pipeId},o={idx:e,pipeId:t[e]?.pipeId};throw new $([Q.CircularDependency({currentPipe:a,circularPipe:o})])}if(a.has(n))return;o.add(n),r.push(n);let s=e[n]||[];for(let e of s)l(e.index,r);r.pop(),o.delete(n),a.add(n),i.push(n)};function u(t){if(a.has(t))return;o.add(t);let n=e[t]||[];for(let e of n){if(!a.has(e.index)&&e.required)throw new $([Q.UnresolvableDependency({index:t,dependencyIndex:e.index})]);!o.has(e.index)&&!e.required&&u(e.index)}o.delete(t),a.add(t),i.push(t)}for(let e=0;e<r;e++)c(e)&&l(e);for(let e=0;e<r;e++)c(e)||l(e);for(let e=0;e<r;e++)u(e);let ee=new Set(Object.keys(n.annotations));for(let e of i){let n=t[e];if(!n)throw Error(`Pipe not defined`);Object.values(n.getOutputFields()).forEach(e=>{ee.add(e.resolvedName)})}for(let[n,r]of t.entries()){let a=r.getInputRequirement();Aa(a,ee)||s.push(Q.RequirementUnmet({requirement:a,pipeId:r.pipeId,index:n}));let o=e[n]||[],c=i.indexOf(n);for(let e of o){let r=i.indexOf(e.index);e.required&&r>c&&s.push(e.reason.includes(`input`)?Q.HardInputDependencyViolation({dependencyIndex:e.index,dependencyIndexPipeId:t[e.index]?.pipeId,index:n,indexPipeId:t[n]?.pipeId}):Q.HardConditionDependencyViolation({dependencyIndex:e.index,dependencyIndexPipeId:t[e.index]?.pipeId,index:n,indexPipeId:t[n]?.pipeId}))}r.payload.run_if&&r.payload.run_if.when.conditions.map(e=>e.field_name).forEach(e=>{if(!ee.has(e))throw new $([Q.ConditionTargetFieldNotFound({fieldName:e,pipeId:r.pipeId,pipeIdx:n})])})}if(s.length>0)throw new $(s);return i}function OT(e,t){let n=new Set(e.getConnectionsRequirements().filter(e=>e.allowManagedConnection===!1).map(e=>e.provider));if(n.size>0){let r=e.payload.connector;if(!r||(r.connections.map(e=>{if(e.type===`vault`)return Xr(e.connection).provider;e.type}).forEach(e=>{e&&n.delete(e)}),n.size>0))throw new $([Q.MissingCustomConnections({index:t,pipeId:e.pipeId,missingProviders:Array.from(n)})])}}const kT=[`yyyy-MM-dd`,`yyyy/MM/dd`,`yyyy-MM-dd HH:mm:ss`,`MM/dd/yyyy`,`MM/dd/yyyy HH:mm:ss`,`MM-dd-yyyy`,`MM-dd-yyyy HH:mm:ss`,`yyyyMMdd`],AT=[`yyyy-MM-dd`,`yyyy/MM/dd`,`MM/dd/yyyy`,`MM-dd-yyyy`,`yyyyMMdd`,`dd-MM-yyyy`,`dd/MM/yyyy`],jT=r.string().trim().transform(e=>{if(!/\./.test(e)&&!/^[a-zA-Z0-9_-]*$/.test(e))throw Error(`Invalid URL format`);let t=String(e).trim();if(/^https?:\/\//i.test(t)||(t=`https://${t}`),t=t.replace(/^http:\/\//i,`https://`),t=t.replace(/^https:\/\/[w]{4,}\./i,`https://www.`),t=t.endsWith(`/`)?t.slice(0,-1):t,!t.includes(`.`))throw Error(`Invalid URL format - no TLD`);return t}).check(e=>{r.url(e.value).safeParse(e.value).success||e.issues.push({code:`custom`,message:`Invalid URL`,input:e.value})}),MT=r.coerce.string().trim().toLowerCase().transform(e=>{let t=e.replace(/^mailto:/i,``),[n,r]=t.split(`@`);return!r||!n?t:`${n.replace(/[^a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]/g,``)}@${r.replace(/\s+/g,``)}`}).check(e=>{r.email().safeParse(e.value).success||e.issues.push({code:`custom`,input:e.value,message:`Invalid email format`})});function NT(e){return!isNaN(e.getTime())}const PT=r.coerce.string().trim().transform(e=>{let t=e.replace(/[^0-9T:.\-/ ]/g,``).trim();for(let e of kT){let n=ee(t,e,new Date(0));if(NT(n))return u(n,`yyyy-MM-dd'T'HH:mm:ss`)}throw Error(`Invalid date format: ${e}`)}),FT=r.coerce.string().trim().transform(e=>{for(let t of AT){let n=ee(e,t,new Date(0));if(NT(n))return u(n,`yyyy-MM-dd`)}throw Error(`Invalid date format: ${e}`)}),IT=r.union([r.number(),r.string().transform(e=>{let t=e.replace(/[^0-9.]/g,``),n=parseFloat(t);if(isNaN(n))throw Error(`Invalid decimal format`);return n})]).refine(e=>!isNaN(e),{message:`Value must be a valid number`}),LT=r.union([r.number().transform(e=>Math.trunc(e)),r.string().transform(e=>{let t=e.replace(/[^0-9]/g,``),n=parseInt(t,10);if(isNaN(n))throw Error(`Invalid integer format`);return n})]).check(r.int()),RT=r.coerce.string().trim().min(1,{message:`Value cannot be empty for this format`});function zT(e,t){if(t===null)return e===``||e==null?null:e;if(e==null)return null;try{switch(t){case`url`:return jT.parse(e);case`email`:return MT.parse(e);case`datetime`:return PT.parse(e);case`date`:return FT.parse(e);case`decimal`:return IT.parse(e);case`int`:return LT.parse(e);case`currency`:return r.number().parse(e);case`percent`:return r.number().parse(e);case`address_line_1`:return RT.parse(e);case`website_url`:return jT.parse(e);case`profile_url`:return jT.parse(e);case`zip_code`:return RT.parse(e);case`markdown`:case`phone`:case`text`:return RT.parse(e);case`json_object`:return r.record(r.any(),r.any()).parse(e);case`json_list`:return r.array(r.any()).parse(e);case`json_list_string`:return r.array(r.string()).parse(e);default:throw Error(`Unknown format: ${t}`)}}catch(r){throw r instanceof n?Error(`Unable to parse value ${nd(e)} into format ${t}: ${r.message}`):r}}function BT(e,t,n){let r={};for(let[i,a]of Object.entries(e.derivedInputFields)){let e=t.field_definitions[i]?.format||null,o=n[i]??null;if(fT(o))o.resolved_by?.ref===`input`?r[i]={value:o.value,type:a.type,claimed_by:{ref:`input`,config_hash:null},resolved_by:o.value==null?null:{ref:`input`,config_hash:null,input_hash:null,environment:o.resolved_by.environment||null},reason:null,status:o.value===null?`pending`:`completed`,widgets:o.widgets||{},format:o.format||e}:r[i]={value:o.value,type:a.type,claimed_by:o.claimed_by||{ref:`input`,config_hash:null},resolved_by:o.resolved_by?o.resolved_by:o.value==null?null:{ref:`input`,config_hash:null,input_hash:null,environment:null},reason:o.reason||null,status:o.status,widgets:o.widgets||{},format:o.format||e};else if(o!=null)try{r[i]={value:zT(o,e),type:a.type,claimed_by:{ref:`input`,config_hash:null},resolved_by:{ref:`input`,config_hash:null,input_hash:null,environment:null},reason:null,status:`completed`,widgets:{},format:e}}catch{r[i]={value:o,type:a.type,claimed_by:{ref:`input`,config_hash:null},resolved_by:{ref:`input`,config_hash:null,input_hash:null,environment:null},reason:{code:`InvalidValue`,summary:`Invalid`,message:`This field expects a value of format ${e}.`},status:`failed`,widgets:{},format:e}}else r[i]={type:a.type,value:o,claimed_by:{ref:`input`,config_hash:null},resolved_by:{ref:null,config_hash:null,input_hash:null,environment:null},reason:null,status:`pending`,widgets:{},format:e}}return r}function VT(e,t,n){for(let r=0;r<t.length;r++){let i=t[r];i.id||=crypto.randomUUID();let{id:a}=i;if(typeof a!=`string`&&typeof a!=`number`){n.errors.push(Q.InvalidId());continue}if(n.records[a]){n.errors.push(Q.IDConflict({index:r,id:a}));continue}n.order.push(a),n.records[a]={id:a,fields:BT(e,n,i)}}}function HT({context:e,input:t,config:n={}}){let r={field_definitions:e.fieldDefinitions,order:[],errors:[],records:{},queued_record_ids:new Set,adopted_record_ids:new Set};try{VT(e,t,r);let{queuedRecordIdSet:i,adoptedRecordIdSet:a}=UT(e,t,r,n);if(r.queued_record_ids=i,r.adopted_record_ids=a,WT(e,r,n?.queue?.enabled),XT(e,r),r.errors.length>0)throw new $(r.errors);return r}catch(e){throw e instanceof $?e:new $([Q.ResponseGenerationFailed({error:e})])}}function UT(e,t,n,r){let i=[],a=[];for(let o=0;o<e.orderedPipePayloads.length;o++){let s=e.orderedPipePayloads[o],c=e.orderedPipeInstances[o];if(!c){n.errors.push(Q.UnknownResolver({pipeId:s.pipe_id,index:o}));continue}let{queuedRecordIds:l,adoptedRecordIds:u}=YT(e,t,c,n,r);i=i.concat(l),a=a.concat(u)}return{queuedRecordIdSet:new Set(i),adoptedRecordIdSet:new Set(a)}}function WT(e,t,n){if(!n)return;let r=(t,n,r,i)=>{Object.values(t.getOutputFields()).forEach(a=>{let o=i.fields[a.resolvedName];if(!o)throw Error(`Internal: Output field ${$h(a)} not found`);o.status===`queued`&&(o.status=`skipped`,o.resolved_by={ref:`system`,environment:e.environment,config_hash:t.getConfigHashKey(),input_hash:t.getInputHashKey(i)},o.value=null,o.reason={code:`InputError`,message:`Field ${$h(n)} is missing but required (${r.value?`the value is`:`it has status`}: '${r.value?r.value:r.status}').`,summary:`Missing input`})})};for(let n=0;n<e.orderedPipePayloads.length;n++){let i=e.orderedPipePayloads[n],a=e.orderedPipeInstances[n];if(!a){t.errors.push(Q.UnknownResolver({pipeId:i.pipe_id,index:n}));continue}Object.values(t.records).forEach(e=>{let{valid:t,failedPipeInputField:n,failedRecordField:i}=Ma(a.getInputRequirement(),e);t===!1&&r(a,n,i,e)})}}function GT({inputHashKey:e,configHashKey:t,config:n,expandedValue:r}){return!!(n.queue?.triggers?.configHashMismatch&&n.queue.enabled&&r.resolved_by?.config_hash&&t&&r.resolved_by.config_hash!==t||n.queue?.triggers?.inputHashMismatch&&n.queue.enabled&&r.resolved_by?.input_hash&&e&&r.resolved_by.input_hash!==e)}function KT({status:e,config:t}){return t.queue?.enabled?!!(e===`failed`&&t.queue?.triggers?.fieldIsFailed||e===`no_result`&&t.queue?.triggers?.fieldIsNoResult):!1}function qT({inputHashKey:e,configHashKey:t,expandedValue:n,config:r}){return GT({inputHashKey:e,configHashKey:t,expandedValue:n,config:r})||KT({status:n.status,config:r})}function JT({inputHashKey:e,configHashKey:t,expandedValue:n}){let r=!1;return n.resolved_by?.config_hash&&t&&n.resolved_by.config_hash!==t&&(n.resolved_by.config_hash=t,r=!0),n.resolved_by?.input_hash&&e&&n.resolved_by.input_hash!==e&&(n.resolved_by.input_hash=e,r=!0),{didAdopt:r}}function YT(e,t,n,r,i){let a=Object.entries(r.records),o=[],s=[];for(let c=0;c<a.length;c++){let[l,u]=a[c];for(let a of Object.values(n.getOutputFields())){let{resolvedName:l,type:ee}=a,te=Xm({pipes:e.orderedPipeInstances,derivedInputFields:e.derivedInputFields},ee),ne=Zm({pipes:e.orderedPipeInstances,derivedInputFields:e.derivedInputFields},a.format),{resolvedInputValue:d,isExpanded:re,expandedValue:f}=pT(t[c]?.[l]??null),ie=u.fields[l],p=n.getConfigHashKey(),ae=n.getInputHashKey(u),oe={type:te,format:ne,claimed_by:{ref:n.pipeId,config_hash:p}};if(r.errors.length>0&&d===null){u.fields[l]={...oe,value:null,status:`failed`,reason:{summary:`Validation error`,...r.errors[0]},claimed_by:{ref:d===void 0?n.pipeId:`input`,config_hash:d===void 0?p:null},resolved_by:{ref:`system`,environment:e.environment,config_hash:null,input_hash:null},widgets:{}};continue}let se=dT(d);if(se!==`unknown`&&se!==te){let t=i.queue?.triggers?.outputFieldTypeError&&i.queue.enabled;u.fields[l]={...oe,value:t?null:d,status:t?`queued`:`completed`,reason:null,resolved_by:t?{environment:e.environment,ref:`system`,config_hash:p,input_hash:ae}:{environment:e.environment,ref:`input`,config_hash:null,input_hash:null},widgets:t?{}:f?.widgets||ie?.widgets||{},format:t?ne:f?.format||ne};continue}if(d==null){let t=re&&i.queue?.enabled&&(f.status===`pending`||f.status===`skipped`),n=re&&!t;if(re&&i.adopt?.enabled===!0){let{didAdopt:e}=JT({inputHashKey:ae,configHashKey:p,expandedValue:f});e&&s.push(u.id)}if(re&&f.status!==`pending`&&qT({inputHashKey:ae,configHashKey:p,config:i,expandedValue:f})&&i.queue?.enabled)o.push(u.id),u.fields[l]={...oe,value:null,status:`queued`,reason:null,resolved_by:{environment:e.environment,ref:`system`,config_hash:p,input_hash:ae},widgets:{}};else if(n)u.fields[l]={...oe,value:null,status:f.status,type:f.type||te,reason:f.reason||null,resolved_by:f.resolved_by||null,widgets:f.widgets||{},format:f.format||ne};else{let t=i.queue?.enabled?`queued`:`pending`;t===`queued`&&o.push(u.id),u.fields[l]={...oe,value:null,status:t,reason:null,resolved_by:t===`queued`?{environment:e.environment,ref:`system`,config_hash:p,input_hash:ae}:null,widgets:{}}}continue}if(re){if(re&&i.adopt?.enabled===!0){let{didAdopt:e}=JT({inputHashKey:ae,configHashKey:p,expandedValue:f});e&&s.push(u.id)}qT({inputHashKey:ae,configHashKey:p,expandedValue:f,config:i})&&r.errors.length===0?(o.push(u.id),u.fields[l]={...oe,value:null,status:`queued`,reason:null,resolved_by:{environment:e.environment,ref:`system`,config_hash:null,input_hash:null},widgets:{}}):u.fields[l]={...oe,value:d,status:`completed`,type:f.type||te,reason:f.reason||null,resolved_by:f.resolved_by||{ref:`input`,config_hash:null,input_hash:null,environment:null},widgets:f.widgets||ie?.widgets||{},format:f.format||ne}}else try{let e=zT(d,ne);u.fields[l]={...oe,value:e,status:`completed`,reason:null,resolved_by:{ref:`input`,config_hash:null,input_hash:null,environment:null},widgets:ie?.widgets||{}}}catch{let t=i.queue?.enabled?`queued`:`failed`;t===`queued`&&o.push(u.id),u.fields[l]={...oe,value:d,status:t,reason:{code:`InvalidFormat`,message:`Field is of invalid format. Expected: ${a.format}`,summary:`Invalid Format`},resolved_by:{ref:`system`,environment:e.environment,config_hash:p,input_hash:ae},widgets:{}}}}}return{queuedRecordIds:o,adoptedRecordIds:s}}function XT(e,t){Object.values(t.records).forEach(n=>{Object.entries(n.fields).forEach(([n,r])=>{let i=e.resolvedFieldNames[n]||n;if(r.status===`completed`){let e=hT(i,r.value,r);r.widgets=Qx(r.widgets||{},e)}t.errors.length>0&&(r.status===`pending`||r.status===`queued`)&&(r.status=`failed`)})})}function ZT(e,t){let{expandAllStatuses:n=!1,expandStatuses:r=[]}=t||{},i={};for(let[t,a]of Object.entries(e))(r.includes(a.status)||n)&&t!==`id`?i[t]={...a}:i[t]=a.value;return i}function QT(e,t={}){return Object.values(e).map(e=>ZT(e.fields,t))}function $T(e,t={}){return e.map(e=>ZT(e.fields,t))}function eE(e,t={}){return ZT(e.fields,t)}function tE(e,t){return e.map(e=>{let n={};return Object.entries(e).forEach(([e,r])=>{let{isExpanded:i,expandedValue:a,resolvedInputValue:o}=pT(r);i===!0&&a.status!=null&&t.unexpandStatuses.includes(a.status)?n[e]=o:n[e]=r}),n})}function nE(e){let t=pr[e];if(!t)throw Error(`Provider name '${e}' invalid`);return{...t,provider:e}}const rE=[`people:profiles:icypeas@1`,`companies:profiles:icypeas@1`,`people:profiles:clado@1`,`people:profiles:clado@2`,`people:employees:leadmagic@1`,`companies:profiles:exa@1`,`people:profiles:exa@1`,`companies:profiles:crustdata@1`,`people:profiles:crustdata@1`],iE=r.enum(rE);function aE(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 oE(e,t){let n={name:e,config:t};return Ia.hashObject(n)}var sE=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 oE(this.searchId,this.payload)}};function cE(e){return e.split(`@`)[0]}function lE(e){return`/docs/search-catalog/${cE(e)}/${e.split(`@`)[1]}`}const uE=`companies:profiles:crustdata@1`,dE=_(`company_name`),fE=_(`company_website_url`),pE=_(`company_description`),mE=_(`company_profile_url`),hE=_(`crustdata_company_match`),gE=r.object({search_id:r.literal(uE),connector:v.nullable().optional(),config:r.object({limit:L({sectionKey:`general`,required:!0,path:`config.limit`,max:1e3,min:1,groupPath:`config.general`,description:``,label:`Limit number of search results`}).default(100),cursor:xa({sectionKey:`general`,path:`config.cursor`,groupPath:`config.general`,inputType:`text`,description:``,label:`Continue previous search from cursor`}),output_fields:R(r.object({[dE.name]:N({fieldName:dE.name}),[fE.name]:N({fieldName:dE.name}),[pE.name]:N({fieldName:pE.name}),[mE.name]:N({fieldName:mE.name}),[hE.name]:N({fieldName:hE.name})})),filters:r.object({hq_locations:F({path:`config.filters.hq_locations`,sectionKey:`config.filters`,label:`HQ locations`,description:``,disableSearch:!1,required:!1,groupPath:`config.filters.location`,optionsDef:g(`locations`)}),crunchbase_categories:F({path:`config.filters.crunchbase_categories`,sectionKey:`config.filters`,label:`Crunchbase categories`,description:``,disableSearch:!1,required:!1,groupPath:`config.filters.categories`,optionsDef:g(`company.crunchbase_categories.crustdata`)}),crunchbase_investors:F({path:`config.filters.crunchbase_investors`,sectionKey:`config.filters`,label:`Investors to include (Crunchbase)`,description:``,disableSearch:!1,required:!1,groupPath:`config.filters.investors`,optionsDef:g(`company.crunchbase_investors.crustdata`)}),tracxn_investors:F({path:`config.filters.tracxn_investors`,sectionKey:`config.filters`,label:`Investors to include (Tracxn)`,description:``,required:!1,groupPath:`config.filters.investors`,disableSearch:!1,optionsDef:g(`company.tracxn_investors.crustdata`)}),company_types:P({sectionKey:`config.filters`,path:`config.filters.company_types`,options:m(`crustdata.company_types`),label:`Company types`,description:``,required:!1,disableSearch:!0,groupPath:`config.filters.categories`}),linkedin_industries:F({sectionKey:`config.filters`,path:`config.filters.linkedin_industries`,optionsDef:g(`linkedin_industries.crustdata`),label:`Industries`,disableSearch:!1,required:!1,description:``,groupPath:`config.filters.industry`}),markets:F({sectionKey:`config.filters`,path:`config.filters.markets`,optionsDef:g(`company.markets.crustdata`),label:`Markets`,disableSearch:!1,required:!1,description:``,groupPath:`config.filters.industry`}),linkedin_categories:F({sectionKey:`config.filters`,path:`config.filters.linkedin_categories`,optionsDef:g(`company.linkedin_categories.crustdata`),label:`Company types`,description:``,required:!1,disableSearch:!0,groupPath:`config.filters.categories`}),headcount:P({path:`config.filters.headcount`,sectionKey:`config.filters`,label:`Headcount`,description:``,disableSearch:!0,required:!1,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`),disableSearch:!0,required:!1,groupPath:`config.filters.company_size`}),revenue_in_usd:_a({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:P({path:`config.filters.last_funding_type`,sectionKey:`config.filters`,label:`Last funding type`,disableSearch:!0,required:!1,options:m(`crustdata.funding_rounds`),description:``,groupPath:`config.filters.financials`}),last_funding_amount:_a({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`,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`,disableSearch:!0,description:``,required:!1,options:m(`crustdata.follower_growth`),groupPath:`config.filters.web_presence`}),profile_summary_keywords:A({path:`config.filters.profile_summary_keywords`,sectionKey:`config.filters`,maxItems:50,label:`LinkedIn company description contains`,description:``,groupPath:`config.filters.keywords`}),competitor_websites:A({path:`config.filters.competitor_websites`,sectionKey:`config.filters`,maxItems:50,label:`Competitor domains`,description:`Ex. 'google.com'`,groupPath:`config.filters.competitors`})}).check(e=>{aE(e.value)&&e.issues.push({code:`custom`,message:`You must set at least one filter.`,input:e.value})})})}),_E={default:{input:[{fields:[]}]}},vE=class extends sE{searchId=uE;schema=gE;payload;constructor(e){super(),this.payload=this.validatePayload(e)}getRawOutputFields(){return{[dE.name]:this.catalogOutput(dE),[fE.name]:this.catalogOutput(fE),[pE.name]:this.catalogOutput(pE),[mE.name]:this.catalogOutput(mE),[hE.name]:this.catalogOutput(hE)}}getConnectionsRequirements(){return[{provider:`crustdata`,rateLimitOperation:`crustdata_company_db_search`,rateLimitRatio:1,allowManagedConnection:!0}]}getDedupConfig(){return _E}},yE=gE,bE={searchId:uE,billableOperation:`companies-profiles-crustdata`,baseSearch:cE(`companies:profiles:crustdata@1`),label:`Company search`,categories:[`companies`],hasManagedConnection:!0,allowsUserConnection:!0,lifecycle:null,description:`Filter based company search.`,tags:[B.COMPANY_PROFILES],docPath:lE(uE),cost:{mode:`per_page`,creditsPerPage:2},provider:`crustdata`,defaultPayload:{search_id:uE,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:[],headcount_growth_last_6m_in_percent:[],last_funding_amount:{from:null,to:null},last_funding_type:[],linkedin_industries:[],linkedin_categories:[],crunchbase_categories:[],markets:[],revenue_in_usd:{from:null,to:null},crunchbase_investors:[],tracxn_investors:[],follower_growth_last_6m_in_percent:[],headcount:[],hq_locations:[],number_of_followers:[],profile_summary_keywords:[],competitor_websites:[]}}}},xE=`companies:profiles:exa@1`,SE=_(`company_name`),CE=_(`company_website_url`),wE=_(`company_description`),TE=_(`company_industry`),EE=_(`headcount`),DE=_(`exa_match_evaluation`),OE=r.object({search_id:r.literal(xE),connector:v.nullable().optional(),config:r.object({limit:L({sectionKey:`general`,required:!0,path:`config.limit`,max:100,min:1,groupPath:`config.general`,description:``,label:`Limit number of search results`}).default(10),output_fields:R(r.object({[SE.name]:N({fieldName:SE.name}),[CE.name]:N({fieldName:SE.name}),[wE.name]:N({fieldName:wE.name}),[TE.name]:N({fieldName:TE.name}),[EE.name]:N({fieldName:EE.name}),[DE.name]:N({fieldName:DE.name})})),filters:r.object({query:Sa({sectionKey:`config.filters`,path:`config.filters.query`,placeholder:`e.g. Top AI research labs focusing on large language models`,groupPath:`config.filters.query`,rows:5,label:`Search description in natural language`,minLength:10,maxLength:2e4})})})}),kE={default:{input:[{fields:[]}]}},AE=class extends sE{searchId=xE;schema=OE;payload;constructor(e){super(),this.payload=this.validatePayload(e)}getRawOutputFields(){return{[SE.name]:this.catalogOutput(SE),[CE.name]:this.catalogOutput(CE),[wE.name]:this.catalogOutput(wE),[TE.name]:this.catalogOutput(TE),[EE.name]:this.catalogOutput(EE),[DE.name]:this.catalogOutput(DE)}}getConnectionsRequirements(){return[{provider:`exa`,rateLimitOperation:`exa_websets`,rateLimitRatio:1,allowManagedConnection:!0}]}getDedupConfig(){return kE}},jE=OE,ME={searchId:xE,billableOperation:`companies-profiles-exa`,baseSearch:cE(`companies:profiles:exa@1`),label:`Company finder (websets)`,categories:[`companies`],hasManagedConnection:!0,allowsUserConnection:!0,lifecycle:null,description:`Semantic AI search to find company profiles. This search can take several minutes.`,tags:[B.COMPANY_PROFILES],docPath:lE(xE),cost:{mode:`per_result`,creditsPerResult:2},provider:`exa`,defaultPayload:{search_id:xE,connector:null,config:{limit:10,output_fields:{company_name:{enabled:!0,alias:``},company_website_url:{enabled:!0,alias:``},company_industry:{enabled:!0,alias:``},company_description:{enabled:!0,alias:``},headcount:{enabled:!0,alias:``},exa_match_evaluation:{enabled:!1,alias:``}},filters:{query:``}}}},NE=`companies:profiles:icypeas@1`,PE=_(`company_industry`),FE=_(`company_name`),IE=_(`company_description`),LE=_(`company_website_url`),RE=_(`headcount`),zE=_(`company_region`),BE=_(`company_profile_url`),VE=_(`icypeas_company_match`),HE=r.object({search_id:r.literal(NE),connector:v.nullable().optional(),config:r.object({limit:L({sectionKey:`general`,max:5e4,min:1,path:`config.limit`,required:!0,groupPath:`config.general`,description:``,label:`Limit number of search results`}).default(100),output_fields:R(r.object({company_name:N({fieldName:FE.name}),company_industry:N({fieldName:PE.name}),company_description:N({fieldName:IE.name}),company_website_url:N({fieldName:LE.name}),headcount:N({fieldName:RE.name}),company_region:N({fieldName:zE.name}),company_profile_url:N({fieldName:BE.name}),icypeas_company_match:N({fieldName:VE.name})})),filters:r.object({name:j({path:`config.filters.name`,sectionKey:`config.filters`,includeLabel:`Company names to include`,excludeLabel:`Company names to exclude`,description:``,placeholder:``,groupPath:`config.filters.company_information`,maxItems:100}).optional(),type:M({path:`config.filters.type`,sectionKey:`config.filters`,label:``,description:``,placeholder:``,includeLabel:`Company types to include`,excludeLabel:`Company types to exclude`,optionsDef:{type:`static`,options:[{value:`Privately Held`,label:`Privately Held`},{value:`Public Company`,label:`Public Company`},{value:`Sole Proprietorship`,label:`Sole Proprietorship`},{value:`Self-Employed`,label:`Self-Employed`},{value:`Partnership`,label:`Partnership`},{value:`Nonprofit`,label:`Nonprofit`},{value:`Educational Institution`,label:`Educational Institution`},{value:`Government Agency`,label:`Government Agency`}]},groupPath:`config.filters.company_information`}).optional(),industry:M({path:`config.filters.industry`,sectionKey:`config.filters`,optionsDef:h(`linkedin.industries`),includeLabel:`Industries to include`,excludeLabel:`Industries to exclude`,description:``,placeholder:``,groupPath:`config.filters.industry`,maxItems:50}).optional(),location:j({path:`config.filters.location`,sectionKey:`config.filters`,includeLabel:`Locations to include`,excludeLabel:`Locations to exclude`,description:``,placeholder:`US, FR, New York`,groupPath:`config.filters.geografic`,maxItems:20}).optional(),headcount:_a({path:`config.filters.headcount`,sectionKey:`config.filters`,legend:`1-1M`,label:`Headcount`,description:``,min:1,max:1e6,unit:`employees`,groupPath:`config.filters.company_size`}).optional(),urn:j({path:`config.filters.urn`,sectionKey:`config.filters`,label:``,description:``,groupPath:`config.filters.linkedin`,excludeLabel:`URNs to exclude`,includeLabel:`URNs to include`,maxItems:200}).optional(),lid:j({path:`config.filters.lid`,sectionKey:`config.filters`,label:``,description:``,groupPath:`config.filters.linkedin`,includeLabel:`LinkedIn IDs to include`,excludeLabel:`LinkedIn IDs to exclude`,maxItems:200}).optional()}).check(e=>{aE(e.value)&&e.issues.push({code:`custom`,message:`You must set at least one filter.`,input:e.value})})})}),UE={default:{input:[{fields:[{outputField:`company_profile_url`}]}]}},WE=class extends sE{searchId=NE;schema=HE;payload;constructor(e){super(),this.payload=this.validatePayload(e)}getRawOutputFields(){return{[FE.name]:this.catalogOutput(FE),[PE.name]:this.catalogOutput(PE),[BE.name]:this.catalogOutput(BE),[LE.name]:this.catalogOutput(LE),[IE.name]:this.catalogOutput(IE),[RE.name]:this.catalogOutput(RE),[zE.name]:this.catalogOutput(zE),[VE.name]:this.catalogOutput(VE)}}getConnectionsRequirements(){return[{provider:`icypeas`,rateLimitOperation:`icypeas_company_database`,rateLimitRatio:1,allowManagedConnection:!0}]}getDedupConfig(){return UE}},GE=HE,KE={searchId:NE,billableOperation:`companies-profiles-icypeas`,baseSearch:cE(`companies:profiles:icypeas@1`),label:`Find company profiles`,categories:[`companies`],hasManagedConnection:!0,allowsUserConnection:!0,lifecycle:null,description:`Search a filter-based, general-purpose company database.`,tags:[B.COMPANY_PROFILES],docPath:lE(NE),cost:{mode:`per_result`,creditsPerResult:.4},provider:`icypeas`,defaultPayload:{search_id:NE,connector:null,config:{limit:100,output_fields:{company_name:{alias:``,enabled:!0},icypeas_company_match:{alias:``,enabled:!0},company_website_url:{alias:``,enabled:!0},company_description:{alias:``,enabled:!0},company_industry:{alias:``,enabled:!0},company_profile_url:{alias:``,enabled:!0},headcount:{alias:``,enabled:!0},company_region:{alias:``,enabled:!0}},filters:{name:{include:[],exclude:[]},type:{include:[],exclude:[]},industry:{include:[],exclude:[]},location:{include:[],exclude:[]},headcount:{},urn:{include:[],exclude:[]},lid:{include:[],exclude:[]}}}}},qE=`people:profiles:clado@1`,JE=_(`name`),YE=_(`job_title`),XE=_(`company_name`),ZE=_(`company_profile_url`),QE=_(`profile_url`),$E=_(`clado_person_match`),eD=r.object({search_id:r.literal(qE),connector:v.nullable().optional(),config:r.object({limit:L({sectionKey:`general`,path:`config.limit`,required:!0,max:100,min:1,groupPath:`config.general`,description:``,label:`Limit number of search results`}).default(20),output_fields:R(r.object({[JE.name]:N({fieldName:JE.name}),[YE.name]:N({fieldName:YE.name}),[ZE.name]:N({fieldName:ZE.name}),[XE.name]:N({fieldName:XE.name}),[QE.name]:N({fieldName:QE.name}),[$E.name]:N({fieldName:$E.name})})),filters:r.object({query:Sa({path:`config.filters.query`,sectionKey:`config.filters`,placeholder:`e.g. Software engineers in San Francisco`,groupPath:`config.filters.query`,rows:5,label:`Search description in natural language`,minLength:10,maxLength:2e4})})})}),tD={default:{input:[{fields:[{outputField:`profile_url`}]}]}},nD=class extends sE{searchId=qE;schema=eD;payload;constructor(e){super(),this.payload=this.validatePayload(e)}getRawOutputFields(){return{[JE.name]:this.catalogOutput(JE),[YE.name]:this.catalogOutput(YE),[XE.name]:this.catalogOutput(XE),[QE.name]:this.catalogOutput(QE),[ZE.name]:this.catalogOutput(ZE),[$E.name]:this.catalogOutput($E)}}getConnectionsRequirements(){return[{provider:`clado`,rateLimitOperation:`clado_search_people`,rateLimitRatio:1,allowManagedConnection:!0}]}getDedupConfig(){return tD}},rD=eD,iD={searchId:qE,billableOperation:`people-profiles-clado`,baseSearch:Pt(`people:profiles:clado@1`),label:`Find people profiles with Clado`,categories:[`people`],hasManagedConnection:!0,allowsUserConnection:!0,lifecycle:{deprecatedOn:`2026-06-13`,replacedBy:`people:profiles:clado@2`},description:`Search through millions of LinkedIn profiles using natural language queries. This endpoint provides fast searching with AI-powered relevance matching.`,tags:[B.PEOPLE_PROFILES],docPath:`/resources/search-catalog/people:profiles:clado/1`,cost:{mode:`per_search`,creditsPerSearch:3},provider:`clado`,defaultPayload:{search_id:qE,connector:null,config:{limit:20,output_fields:{company_name:{enabled:!0,alias:``},company_profile_url:{enabled:!0,alias:``},job_title:{enabled:!0,alias:``},name:{enabled:!0,alias:``},profile_url:{enabled:!0,alias:``},clado_person_match:{enabled:!0,alias:``}},filters:{query:``}}}},aD=`people:profiles:clado@2`,oD=_(`name`),sD=_(`job_title`),cD=_(`company_name`),lD=_(`company_profile_url`),uD=_(`profile_url`),dD=_(`clado_person_match_v2`),fD=r.object({search_id:r.literal(aD),connector:v.nullable().optional(),config:r.object({limit:L({sectionKey:`general`,path:`config.limit`,required:!0,max:1e4,min:1,groupPath:`config.general`,description:``,label:`Limit number of search results`}).default(100),search_id:xa({sectionKey:`general`,path:`config.search_id`,inputType:`text`,groupPath:`config.continue_existing_search`,label:`Search id`,description:`The id of the search you want to continue`}).default(``),offset:L({sectionKey:`general`,path:`config.offset`,required:!1,groupPath:`config.continue_existing_search`,label:`Offset`,max:1e5,min:1,description:`To continue the previous search, provide both the search_id and the last offset.`}),output_fields:R(r.object({[oD.name]:N({fieldName:oD.name}),[sD.name]:N({fieldName:sD.name}),[lD.name]:N({fieldName:lD.name}),[cD.name]:N({fieldName:cD.name}),[uD.name]:N({fieldName:uD.name}),[dD.name]:N({fieldName:dD.name})})),filters:r.object({query:Sa({path:`config.filters.query`,sectionKey:`config.filters`,placeholder:`e.g. Software engineers in San Francisco`,groupPath:`config.filters.query`,rows:5,label:`Search description in natural language`,minLength:0,maxLength:2e4}).default(``)}).optional()})}).check(e=>{let t=!!e.value.config.filters?.query,n=!!e.value.config.search_id&&!!e.value.config.offset;!t&&!n&&e.issues.push({code:`custom`,input:``,message:`Must define either 'query' or both 'searchId' AND 'offset'.`,path:[`config.filters.query`]})}),pD={default:{input:[{fields:[{outputField:`profile_url`}]}]}},mD=class extends sE{searchId=aD;schema=fD;payload;constructor(e){super(),this.payload=this.validatePayload(e)}getRawOutputFields(){return{[oD.name]:this.catalogOutput(oD),[sD.name]:this.catalogOutput(sD),[cD.name]:this.catalogOutput(cD),[uD.name]:this.catalogOutput(uD),[lD.name]:this.catalogOutput(lD),[dD.name]:this.catalogOutput(dD)}}getConnectionsRequirements(){return[{provider:`clado`,rateLimitOperation:`clado_search_people`,rateLimitRatio:1,allowManagedConnection:!0}]}getDedupConfig(){return pD}},hD=fD,gD={searchId:aD,billableOperation:`people-profiles-clado`,baseSearch:Pt(`people:profiles:clado@2`),label:`Find people profiles`,categories:[`deprecated`],hasManagedConnection:!0,allowsUserConnection:!0,lifecycle:{deprecatedOn:`2026-06-13`,replacedBy:`people:profiles:clado@2`},description:`Search a growing dataset with semantic queries.`,tags:[],docPath:`/resources/search-catalog/people:profiles:clado/1`,cost:{mode:`per_page`,creditsPerPage:3},provider:`clado`,defaultPayload:{search_id:aD,connector:null,config:{limit:100,search_id:``,offset:void 0,output_fields:{company_name:{enabled:!0,alias:``},company_profile_url:{enabled:!0,alias:``},job_title:{enabled:!0,alias:``},name:{enabled:!0,alias:``},profile_url:{enabled:!0,alias:``},clado_person_match_v2:{enabled:!0,alias:``}},filters:{query:``}}}},_D=`people:employees:leadmagic@1`,vD=_(`name`),yD=_(`job_title`),bD=_(`company_website_url`),xD=_(`company_name`),SD=r.object({search_id:r.literal(_D),connector:v.nullable().optional(),config:r.object({limit:L({sectionKey:`general`,max:500,min:1,required:!0,path:`config.limit`,groupPath:`config.general`,description:``,label:`Limit number of search results`}).default(50),output_fields:R(r.object({[vD.name]:N({fieldName:vD.name}),[xD.name]:N({fieldName:xD.name}),[bD.name]:N({fieldName:bD.name}),[yD.name]:N({fieldName:yD.name})})),filters:r.object({company_website_url:xa({path:`config.filters.company_website_url`,sectionKey:`config.filters`,groupPath:`config.filters.website`,inputType:`text`,description:`URL of the employer company.`,label:`Company Website URL`})})})}),CD={default:{input:[{fields:[{outputField:bD.name}]}]}},wD=class extends sE{searchId=_D;schema=SD;payload;constructor(e){super(),this.payload=this.validatePayload(e)}getRawOutputFields(){return{[vD.name]:this.catalogOutput(vD),[yD.name]:this.catalogOutput(yD),[bD.name]:this.catalogOutput(bD),[xD.name]:this.catalogOutput(xD)}}getConnectionsRequirements(){return[{provider:`leadmagic`,rateLimitOperation:`leadmagic_employee_finder`,rateLimitRatio:1,allowManagedConnection:!0}]}getDedupConfig(){return CD}},TD=SD,ED={searchId:_D,billableOperation:`people-employees-leadmagic`,baseSearch:cE(`people:employees:leadmagic@1`),label:`Employee finder`,categories:[`people`],hasManagedConnection:!0,allowsUserConnection:!0,lifecycle:null,description:`Search for employees of a company.`,tags:[B.PEOPLE_PROFILES],docPath:lE(_D),cost:{mode:`per_result`,creditsPerResult:.05},provider:`leadmagic`,defaultPayload:{search_id:_D,connector:null,config:{limit:50,output_fields:{name:{alias:``,enabled:!0},job_title:{alias:``,enabled:!0},company_website_url:{alias:``,enabled:!0},company_name:{alias:``,enabled:!0}},filters:{company_website_url:``}}}},DD=`people:profiles:crustdata@1`,OD=_(`name`),kD=_(`company_website_url`),AD=_(`profile_url`),jD=_(`job_title`),MD=_(`crustdata_person_match`),ND=r.object({search_id:r.literal(DD),connector:v.nullable().optional(),config:r.object({limit:L({sectionKey:`general`,required:!0,path:`config.limit`,max:1e3,min:1,groupPath:`config.general`,description:``,label:`Limit number of results`}).default(100),cursor:xa({sectionKey:`general`,path:`config.cursor`,groupPath:`config.general`,inputType:`text`,description:``,label:`Continue previous search from cursor`}),output_fields:R(r.object({[OD.name]:N({fieldName:OD.name}),[kD.name]:N({fieldName:kD.name}),[AD.name]:N({fieldName:AD.name}),[jD.name]:N({fieldName:jD.name}),[MD.name]:N({fieldName:MD.name})})),filters:r.object({locations:F({path:`config.filters.locations`,sectionKey:`config.filters`,label:`Locations`,disableSearch:!1,required:!1,optionsDef:g(`locations`),groupPath:`config.filters.general`}),profile_headline_keywords:ma({path:`config.filters.profile_headline_keywords`,sectionKey:`config.filters`,label:`Headline contains keywords`,maxItems:100,groupPath:`config.filters.keywords`}),profile_summary_keywords:ma({path:`config.filters.profile_summary_keywords`,sectionKey:`config.filters`,label:`Profile about section contains keywords`,maxItems:100,groupPath:`config.filters.keywords`}),profile_languages:P({path:`config.filters.profile_languages`,sectionKey:`config.filters`,label:`Profile languages`,disableSearch:!1,required:!1,options:m(`crustdata.person_profile_languages`),groupPath:`config.filters.profile`}),languages:P({path:`config.filters.languages`,sectionKey:`config.filters`,label:`Spoken languages`,disableSearch:!1,required:!1,options:m(`crustdata.person_profile_languages`),groupPath:`config.filters.profile`}),skills:F({path:`config.filters.skills`,sectionKey:`config.filters`,label:`Skills`,placeholder:`.NET, PMO, ...`,disableSearch:!1,required:!1,description:``,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`,optionsDef:h(`crustdata.person_seniority`),description:``,groupPath:`config.filters.experience`}),current_employers:A({path:`config.filters.current_employers`,sectionKey:`config.filters`,label:`Current employers`,description:``,maxItems:200,groupPath:`config.filters.experience`,suggestionsDef:g(`person.current_employer_names.crustdata`)}),current_employers_website_urls:A({path:`config.filters.current_employers_website_urls`,sectionKey:`config.filters`,label:`Current employer domains`,description:``,maxItems:200,groupPath:`config.filters.experience`}),current_job_titles:A({path:`config.filters.current_job_titles`,sectionKey:`config.filters`,label:`Current job titles`,description:``,order:1,groupPath:`config.filters.experience`,suggestionsDef:g(`titles`)}),current_employers_linkedin_industries:F({path:`config.filters.current_employers_linkedin_industries`,sectionKey:`config.filters`,label:`Current employers industries`,disableSearch:!1,required:!1,groupPath:`config.filters.experience`,description:``,optionsDef:g(`linkedin_industries.crustdata`)}),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.experience`,description:``,options:m(`crustdata.years_of_experience`)}),previous_employers_website_urls:A({path:`config.filters.previous_employers_website_urls`,sectionKey:`config.filters`,label:`Previous employer domains`,description:``,maxItems:200,groupPath:`config.filters.experience`}),previous_seniority_levels:M({path:`config.filters.previous_seniority_levels`,sectionKey:`config.filters`,label:`Previous seniority`,disableSearch:!0,optionsDef:h(`crustdata.person_seniority`),description:``,groupPath:`config.filters.experience`}),previous_employers:A({path:`config.filters.previous_employers`,sectionKey:`config.filters`,label:`Previous employer name`,description:``,maxItems:200,groupPath:`config.filters.experience`,suggestionsDef:g(`person.past_employer_names.crustdata`)}),previous_job_titles:A({path:`config.filters.previous_job_titles`,sectionKey:`config.filters`,label:`Current job titles`,description:``,groupPath:`config.filters.experience`,suggestionsDef:g(`titles`)}),previous_employers_linkedin_industries:F({path:`config.filters.previous_employers_linkedin_industries`,sectionKey:`config.filters`,label:`Previous employer industry`,disableSearch:!1,required:!1,groupPath:`config.filters.experience`,description:``,optionsDef:g(`linkedin_industries.crustdata`)}),certifications:A({path:`config.filters.certifications`,sectionKey:`config.filters`,label:`Certifications`,groupPath:`config.filters.certifications_honors`,description:``}),honors:A({path:`config.filters.honors`,sectionKey:`config.filters`,label:`Honors`,groupPath:`config.filters.certifications_honors`,description:``}),recently_changed_jobs:ba({path:`config.filters.recently_changed_jobs`,sectionKey:`config.filters`,label:`Recently changed jobs`,description:``,defaultValue:null,groupPath:`config.filters.activities`}),fields_of_study:F({path:`config.filters.fields_of_study`,sectionKey:`config.filters`,label:`Fields of study`,description:``,disableSearch:!1,required:!1,groupPath:`config.filters.education`,optionsDef:g(`person.education_field_of_study.crustdata`)}),degree_names:F({path:`config.filters.degree_names`,sectionKey:`config.filters`,label:`Degree names`,description:``,disableSearch:!1,required:!1,groupPath:`config.filters.education`,optionsDef:g(`person.education_degree.crustdata`)}),school_names:F({path:`config.filters.school_names`,sectionKey:`config.filters`,label:`School names`,description:``,disableSearch:!1,required:!1,groupPath:`config.filters.education`,optionsDef:g(`schools`)}),current_school_names:F({path:`config.filters.current_school_names`,sectionKey:`config.filters`,label:`Currently enrolled at`,description:``,disableSearch:!1,required:!1,groupPath:`config.filters.education`,optionsDef:g(`schools`)}),extracurricular_activities:A({path:`config.filters.extracurricular_activities`,sectionKey:`config.filters`,label:`Extracurricular activities`,description:``,groupPath:`config.filters.education`,suggestionsDef:g(`person.education_activities.crustdata`)})}).check(e=>{aE(e.value)&&e.issues.push({code:`custom`,message:`You must set at least one filter.`,input:e.value})})})}),PD={default:{input:[{fields:[]}]}},FD=class extends sE{searchId=DD;schema=ND;payload;constructor(e){super(),this.payload=this.validatePayload(e)}getRawOutputFields(){return{[OD.name]:this.catalogOutput(OD),[kD.name]:this.catalogOutput(kD),[AD.name]:this.catalogOutput(AD),[jD.name]:this.catalogOutput(jD),[MD.name]:this.catalogOutput(MD)}}getConnectionsRequirements(){return[{provider:`crustdata`,rateLimitOperation:`crustdata_people_db_search`,rateLimitRatio:1,allowManagedConnection:!0}]}getDedupConfig(){return PD}},ID=ND,LD={searchId:DD,billableOperation:`people-profiles-crustdata`,baseSearch:cE(`people:profiles:crustdata@1`),label:`People search`,categories:[`people`],hasManagedConnection:!0,allowsUserConnection:!0,lifecycle:null,description:`Filter-based people search.`,tags:[B.PEOPLE_PROFILES],docPath:lE(DD),cost:{mode:`per_page`,creditsPerPage:5},provider:`crustdata`,defaultPayload:{search_id:DD,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:[],languages:[],profile_summary_keywords:[],previous_job_titles:[],current_employers:[],current_school_names:[],years_at_current_company:[],certifications:[],honors:[],current_employers_linkedin_industries:[],current_employers_website_urls:[],previous_employers_website_urls:[],current_seniority_levels:{include:[],exclude:[]},previous_seniority_levels:{include:[],exclude:[]},degree_names:[],locations:[],profile_languages:[],recently_changed_jobs:null,extracurricular_activities:[],school_names:[],fields_of_study:[],previous_employers:[],current_job_titles:[],skills:[],years_of_experience:[],previous_employers_linkedin_industries:[]}}}},RD=`people:profiles:exa@1`,zD=_(`name`),BD=_(`profile_url`),VD=_(`job_title`),HD=_(`company_name`),UD=_(`company_region`),WD=_(`exa_match_evaluation`),GD=r.object({search_id:r.literal(RD),connector:v.nullable().optional(),config:r.object({limit:L({path:`config.limit`,sectionKey:`general`,required:!0,max:100,min:1,groupPath:`config.general`,description:``,label:`Limit number of search results`}).default(10),output_fields:R(r.object({[zD.name]:N({fieldName:zD.name}),[BD.name]:N({fieldName:BD.name}),[VD.name]:N({fieldName:VD.name}),[HD.name]:N({fieldName:HD.name}),[UD.name]:N({fieldName:UD.name}),[WD.name]:N({fieldName:WD.name})})),filters:r.object({query:Sa({path:`config.filters.query`,sectionKey:`config.filters`,placeholder:`e.g. Software engineers in San Francisco`,groupPath:`config.filters.query`,rows:5,label:`Search description in natural language`,minLength:10,maxLength:2e4})})})}),KD={default:{input:[{fields:[]}]}},qD=class extends sE{searchId=RD;schema=GD;payload;constructor(e){super(),this.payload=this.validatePayload(e)}getRawOutputFields(){return{[zD.name]:this.catalogOutput(zD),[BD.name]:this.catalogOutput(BD),[VD.name]:this.catalogOutput(VD),[HD.name]:this.catalogOutput(HD),[UD.name]:this.catalogOutput(UD),[WD.name]:this.catalogOutput(WD)}}getConnectionsRequirements(){return[{provider:`exa`,rateLimitOperation:`exa_websets`,rateLimitRatio:1,allowManagedConnection:!0}]}getDedupConfig(){return KD}},JD=GD,YD={searchId:RD,billableOperation:`people-profiles-exa`,baseSearch:cE(`people:profiles:exa@1`),label:`People finder (websets)`,categories:[`people`],hasManagedConnection:!0,allowsUserConnection:!0,lifecycle:null,description:`Semantic AI search for people profiles. This search can take several minutes.`,tags:[B.COMPANY_PROFILES],docPath:lE(RD),cost:{mode:`per_result`,creditsPerResult:2},provider:`exa`,defaultPayload:{search_id:RD,connector:null,config:{limit:10,output_fields:{name:{enabled:!0,alias:``},profile_url:{enabled:!0,alias:``},job_title:{enabled:!0,alias:``},company_name:{enabled:!0,alias:``},company_region:{enabled:!0,alias:``},exa_match_evaluation:{enabled:!1,alias:``}},filters:{query:``}}}},XD=`people:profiles:icypeas@1`,ZD=_(`name`),QD=_(`job_title`),$D=_(`profile_headline`),eO=_(`company_website_url`),tO=_(`company_profile_url`),nO=_(`profile_url`),rO=_(`icypeas_person_match`),iO=r.object({search_id:r.literal(XD),connector:v.nullable().optional(),config:r.object({limit:L({path:`config.limit`,sectionKey:`general`,required:!0,max:5e4,min:1,groupPath:`config.general`,description:``,label:`Limit number of search results`}).default(100),output_fields:R(r.object({[ZD.name]:N({fieldName:ZD.name}),[QD.name]:N({fieldName:QD.name}),[$D.name]:N({fieldName:$D.name}),[eO.name]:N({fieldName:eO.name}),[tO.name]:N({fieldName:tO.name}),[nO.name]:N({fieldName:nO.name}),[rO.name]:N({fieldName:rO.name})})),filters:r.object({firstname:j({path:`config.filters.firstname`,sectionKey:`config.filters`,includeLabel:`First names to include`,excludeLabel:`First names to exclude`,description:``,placeholder:``,groupPath:`config.filters.personal_information`,maxItems:200}).optional(),lastname:j({path:`config.filters.lastname`,sectionKey:`config.filters`,includeLabel:`Last names to include`,excludeLabel:`Last names to exclude`,description:``,placeholder:``,groupPath:`config.filters.personal_information`,maxItems:200}).optional(),currentJobTitle:j({path:`config.filters.currentJobTitle`,sectionKey:`config.filters`,includeLabel:`Current job titles to include`,excludeLabel:`Current job titles to exclude`,description:``,placeholder:``,groupPath:`config.filters.job_information`,maxItems:200}).optional(),currentEmployersWebsiteUrls:j({groupPath:`config.filters.job_information`,path:`config.filters.currentEmployersWebsiteUrls`,sectionKey:`config.filters`,description:``,includeLabel:`Include current employer domains`,excludeLabel:`Exclude current employer domains`,maxItems:100}).optional(),pastEmployersWebsiteUrls:j({groupPath:`config.filters.job_information`,path:`config.filters.pastEmployersWebsiteUrls`,sectionKey:`config.filters`,description:``,includeLabel:`Past employers website URLs to include`,excludeLabel:`Past employers website URLs to exclude`,maxItems:100}).optional(),pastJobTitle:j({path:`config.filters.pastJobTitle`,sectionKey:`config.filters`,includeLabel:`Past job titles to include`,excludeLabel:`Past job titles to exclude`,description:``,placeholder:``,groupPath:`config.filters.job_information`,maxItems:200}).optional(),currentCompanyName:j({path:`config.filters.currentCompanyName`,sectionKey:`config.filters`,includeLabel:`Companies to include`,excludeLabel:`Companies to exclude`,description:``,placeholder:``,groupPath:`config.filters.company_information`,maxItems:200}).optional(),pastCompanyName:j({path:`config.filters.pastCompanyName`,sectionKey:`config.filters`,includeLabel:`Past employers to include`,excludeLabel:`Past employers to exclude`,description:``,placeholder:``,groupPath:`config.filters.company_information`,maxItems:200}).optional(),school:j({path:`config.filters.school`,sectionKey:`config.filters`,includeLabel:`Schools to include`,excludeLabel:`Schools to exclude`,label:``,description:``,placeholder:``,groupPath:`config.filters.education`,maxItems:200}).optional(),location:j({path:`config.filters.location`,sectionKey:`config.filters`,includeLabel:`Locations to include`,excludeLabel:`Locations to exclude`,description:`Filter by location`,placeholder:`e.g., US, FR, New York`,groupPath:`config.filters.geografic`,maxItems:200}).optional(),languages:j({path:`config.filters.languages`,sectionKey:`config.filters`,includeLabel:`Languages to include`,excludeLabel:`Languages to exclude`,description:`ex. EN, ES`,groupPath:`config.filters.languages`,maxItems:200}).optional(),skills:j({path:`config.filters.skills`,sectionKey:`config.filters`,includeLabel:`Skills to include`,excludeLabel:`Skills to exclude`,description:``,placeholder:``,groupPath:`config.filters.skills`,maxItems:200}).optional(),keyword:j({path:`config.filters.keyword`,sectionKey:`config.filters`,includeLabel:`Keywords to include`,excludeLabel:`Keywords to exclude`,description:``,placeholder:`CEO, Sales, Scrum`,groupPath:`config.filters.general_search`,maxItems:200}).optional()}).check(e=>{aE(e.value)&&e.issues.push({code:`custom`,message:`The filters object cannot be empty. You must set at least one filter.`,input:e.value})})})}),aO={default:{input:[{fields:[{outputField:`profile_url`}]}]}},oO=class extends sE{searchId=XD;schema=iO;payload;constructor(e){super(),this.payload=this.validatePayload(e)}getRawOutputFields(){return{[ZD.name]:this.catalogOutput(ZD),[QD.name]:this.catalogOutput(QD),[$D.name]:this.catalogOutput($D),[eO.name]:this.catalogOutput(eO),[tO.name]:this.catalogOutput(tO),[nO.name]:this.catalogOutput(nO),[rO.name]:this.catalogOutput(rO)}}getConnectionsRequirements(){return[{provider:`icypeas`,rateLimitOperation:`icypeas_lead_database`,rateLimitRatio:1,allowManagedConnection:!0}]}getDedupConfig(){return aO}},sO=iO,cO={searchId:XD,billableOperation:`people-profiles-icypeas`,provider:`icypeas`,baseSearch:cE(XD),label:`Find people profiles`,categories:[`people`],hasManagedConnection:!0,allowsUserConnection:!0,lifecycle:null,description:`Search a filter-based, general-purpose lead database with people profiles.`,tags:[B.PEOPLE_PROFILES],docPath:lE(XD),cost:{mode:`per_result`,creditsPerResult:.4},defaultPayload:{search_id:XD,connector:null,config:{limit:100,output_fields:{company_profile_url:{enabled:!0,alias:``},company_website_url:{enabled:!0,alias:``},job_title:{enabled:!0,alias:``},name:{enabled:!0,alias:``},profile_headline:{enabled:!0,alias:``},profile_url:{enabled:!0,alias:``},icypeas_person_match:{enabled:!0,alias:``}},filters:{currentCompanyName:{include:[],exclude:[]},currentEmployersWebsiteUrls:{include:[],exclude:[]},pastEmployersWebsiteUrls:{include:[],exclude:[]},currentJobTitle:{include:[],exclude:[]},firstname:{include:[],exclude:[]},keyword:{include:[],exclude:[]},languages:{include:[],exclude:[]},lastname:{include:[],exclude:[]},location:{include:[],exclude:[]},pastCompanyName:{include:[],exclude:[]},pastJobTitle:{include:[],exclude:[]},school:{include:[],exclude:[]},skills:{include:[],exclude:[]}}}}},lO={"people:profiles:crustdata@1":FD,"companies:profiles:crustdata@1":vE,"companies:profiles:exa@1":AE,"people:profiles:exa@1":qD,"people:profiles:icypeas@1":oO,"companies:profiles:icypeas@1":WE,"people:employees:leadmagic@1":wD,"people:profiles:clado@1":nD,"people:profiles:clado@2":mD},uO={"people:profiles:crustdata@1":ID,"companies:profiles:crustdata@1":yE,"companies:profiles:exa@1":jE,"people:profiles:exa@1":JD,"people:profiles:icypeas@1":sO,"companies:profiles:icypeas@1":GE,"people:employees:leadmagic@1":TD,"people:profiles:clado@1":rD,"people:profiles:clado@2":hD},dO={"people:profiles:crustdata@1":LD,"companies:profiles:crustdata@1":bE,"companies:profiles:exa@1":ME,"people:profiles:exa@1":YD,"people:profiles:icypeas@1":cO,"companies:profiles:icypeas@1":KE,"people:employees:leadmagic@1":ED,"people:profiles:clado@1":iD,"people:profiles:clado@2":gD};function fO(e){return lO[e]}function pO(e){return uO[e]}function mO(e){return dO[e].defaultPayload}const hO=t.discriminatedUnion(`search_id`,Object.values(uO).map(e=>e)),gO=t.preprocess(e=>{if(!e||typeof e!=`object`||!(`search_id`in e))return e;let t=mO(e.search_id);return t?{...e,config:Ta(e?.config||{},t.config)}:e},hO);function _O(e){return Object.keys(dO[e].defaultPayload.config.output_fields)}const vO=Rn,yO=t.object({value:Tn,status:wn,type:Sn.optional(),format:Vn.nullable().optional(),resolved_by:qn.nullable().optional(),widgets:Ln.optional()}),bO=t.record(t.string(),yO.nullable()),xO=t.object({search:t.object({ref:iE}),status:t.enum([`pending`,`processing`,`failed`,`completed`]),errors:t.array(vO),meta:t.object({providers:t.object({clado:t.object({pagination:t.object({search_id:t.string().optional(),offset:t.number().optional()})}).optional(),crustdata:t.object({pagination:t.object({cursor:t.string().nullable()})}).optional()}).optional()})}),SO=t.object({id:t.string(),status:t.enum([`completed`,`failed`,`pending`,`processing`]),results:t.array(bO),search_statuses:t.array(xO),organizationId:t.string()}).openapi(`SearchesResponseSchema`),CO=t.object({environment:t.enum([`production`,`sandbox`]).default(`production`),widgets:t.object({enabled:t.boolean().default(!1)}).default({enabled:!1})}),wO=CO.extend({dedup:t.object({strategy:t.enum([`default`]).nullable()}).default({strategy:null})}),TO=t.object({config:wO.default({dedup:{strategy:`default`},environment:`production`,widgets:{enabled:!1}}),searches:t.array(gO)}).openapi(`SearchesRequestSchema`);function EO(e){let t=e.split(`@`)[1];if(!t)throw Error(`No search version found`);return Number(t)}function DO(){let e={};for(let t of Object.values(dO)){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=EO(e.searchId);return EO(t.searchId)-n})}),e}const OO=DO();function kO(e){let t=[];for(let[n,r]of Object.entries(OO)){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:EO(i.searchId)})}return t}function AO(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 _O(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:OO}}function jO(e){return dO[e]}function MO(e){let t=jO(e);return{[t.provider]:t.cost.mode===`per_result`?t.cost.creditsPerResult:t.cost.mode===`per_search`?t.cost.creditsPerSearch:t.cost.creditsPerPage}}function NO(e){return e.map(e=>({public_id:`sandbox-${e}`,provider:e}))}function PO(e){return NO(hw(e).allowedUserConnectionProviders)}function FO(e){return NO([ew(e).provider])}function IO(e){return NO([jO(e).provider])}const LO=[{id:`people`,label:`People`,color:`#8B7DFF`,order:0},{id:`companies`,label:`Companies`,color:`#10B981`,order:1},{id:`deprecated`,label:`Deprecated`,color:`#94A3B8`,order:2}],RO=new Map(LO.map(e=>[e.id,e]));function zO(e){return RO.get(e)}function BO(){return LO}const VO={"people:profiles:amplemarket@1":[{search_id:`people:profiles:amplemarket@1`,config:{page_number:1,limit:50,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:[`Berlin`],exclude:[]},current_employer_linkedin_industries:[],current_employer_domains:{include:[],exclude:[]},current_seniority_levels:[],school_names:{include:[],exclude:[]},current_job_titles:[]}}}],"companies:profiles:amplemarket@1":[{search_id:`companies:profiles:amplemarket@1`,config:{page_number:1,limit:50,filters:{company_industries:{include:[],exclude:[]},company_names:{include:[`Microsoft`],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:[]}}}}],"people:profiles:crustdata@1":[{search_id:`people:profiles:crustdata@1`,config:{cursor:``,limit:10,filters:{locations:{include:[`Berlin`,`Germany`],exclude:[]},profile_headline_keywords:{include:[`Marketing`],exclude:[]},profile_summary_keywords:{include:[],exclude:[]},profile_languages:{include:[`English`],exclude:[]},languages:{include:[],exclude:[]},skills:{include:[`Python`,`Data Analysis`],exclude:[]},years_of_experience:[`1 to 2 years`],current_seniority_levels:{include:[`Senior`],exclude:[]},current_employers:{include:[],exclude:[]},current_employers_website_urls:{include:[],exclude:[]},current_job_titles:{include:[`Software Engineer`],exclude:[]},current_employers_linkedin_industries:{include:[],exclude:[]},years_at_current_company:[`1 to 2 years`],previous_seniority_levels:{include:[],exclude:[]},previous_employers:{include:[],exclude:[]},previous_employers_website_urls:{include:[],exclude:[]},previous_employers_linkedin_industries:{include:[],exclude:[]},previous_job_titles:{include:[],exclude:[]},certifications:{include:[],exclude:[]},honors:{include:[],exclude:[]},recently_changed_jobs:!1,fields_of_study:{include:[],exclude:[]},degree_names:{include:[],exclude:[]},school_names:{include:[],exclude:[]},current_school_names:{include:[],exclude:[]},extracurricular_activities:{include:[],exclude:[]}}}}],"companies:profiles:crustdata@1":[{search_id:`companies:profiles:crustdata@1`,config:{cursor:``,limit:10,filters:{hq_locations:{include:[`San Francisco, CA`],exclude:[]},crunchbase_categories:{include:[`Artificial Intelligence`],exclude:[]},crunchbase_investors:{include:[],exclude:[]},tracxn_investors:{include:[],exclude:[]},company_types:{include:[],exclude:[]},linkedin_industries:{include:[`Technology`],exclude:[]},markets:{include:[],exclude:[]},linkedin_categories:{include:[],exclude:[]},headcount:{include:[],exclude:[]},headcount_growth_l6m_in_percent:[],revenue_in_usd:{from:1e4,to:1e6},last_funding_type:{include:[],exclude:[]},last_funding_amount:{from:null,to:null},number_of_followers:[],follower_growth_l6m_in_percent:[],profile_summary_keywords:{include:[],exclude:[]},competitor_domains:{include:[`google.com`],exclude:[]}}}}],"people:profiles:amplemarket@2":[{search_id:`people:profiles:amplemarket@2`,config:{page_number:1,limit:50,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:[`Berlin`],exclude:[]},current_employer_linkedin_industries:[],current_employer_domains:{include:[],exclude:[]},current_seniority_levels:[],school_names:{include:[],exclude:[]},current_job_titles:[]}}}],"companies:profiles:amplemarket@2":[{search_id:`companies:profiles:amplemarket@2`,config:{page_number:1,limit:50,filters:{company_industries:{include:[],exclude:[]},company_names:{include:[`Microsoft`],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:[]}}}}],"people:profiles:crustdata@2":[{search_id:`people:profiles:crustdata@2`,config:{cursor:``,limit:10,filters:{locations:{include:[`Berlin`,`Germany`],exclude:[]},profile_headline_keywords:{include:[`Marketing`],exclude:[]},profile_summary_keywords:{include:[],exclude:[]},profile_languages:{include:[`English`],exclude:[]},languages:{include:[],exclude:[]},skills:{include:[`Python`,`Data Analysis`],exclude:[]},years_of_experience:[`1 to 2 years`],current_seniority_levels:{include:[`Senior`],exclude:[]},current_employer_names:{include:[],exclude:[]},current_employer_domains:{include:[],exclude:[]},current_job_titles:{include:[`Software Engineer`],exclude:[]},current_employer_industries:{include:[],exclude:[]},years_at_current_company:[`1 to 2 years`],previous_seniority_levels:{include:[],exclude:[]},previous_employer_names:{include:[],exclude:[]},previous_employer_domains:{include:[],exclude:[]},previous_employer_industries:{include:[],exclude:[]},previous_job_titles:{include:[],exclude:[]},certifications:{include:[],exclude:[]},honors:{include:[],exclude:[]},recently_changed_jobs:!1,fields_of_study:{include:[],exclude:[]},degree_names:{include:[],exclude:[]},school_names:{include:[],exclude:[]},current_school_names:{include:[],exclude:[]},extracurricular_activities:{include:[],exclude:[]}}}}],"companies:profiles:crustdata@2":[{search_id:`companies:profiles:crustdata@2`,config:{cursor:``,limit:10,filters:{hq_locations:{include:[`San Francisco, CA`],exclude:[]},crunchbase_categories:{include:[`Artificial Intelligence`],exclude:[]},crunchbase_investors:{include:[],exclude:[]},tracxn_investors:{include:[],exclude:[]},company_types:{include:[],exclude:[]},linkedin_industries:{include:[`Technology`],exclude:[]},markets:{include:[],exclude:[]},linkedin_categories:{include:[],exclude:[]},headcount:{include:[],exclude:[]},headcount_growth_l6m_in_percent:[],revenue_in_usd:{from:1e4,to:1e6},last_funding_type:{include:[],exclude:[]},last_funding_amount:{from:null,to:null},number_of_followers:[],follower_growth_l6m_in_percent:[],profile_summary_keywords:{include:[],exclude:[]},competitor_domains:{include:[`google.com`],exclude:[]}}}}]};function HO(e,t,n){if(t==null)return{};try{let r=on(e,n)?.getStaticWidgets?.(t),i=uT(n,t);return Qx(r||{},{display_value:i?{label:i}:void 0})}catch(e){return console.warn(`Failed to generate UI props: ${e}`),{}}}function UO(e){if(e instanceof tS)return e;let t=e.search_id,n=VC(t);if(!n)throw Error(`Unknown pipe: ${e.search_id}`);return new n(WC.parse(e))}var WO=class extends rg{constructor(e){super(e.map(e=>e.message).join(`, `)||`Unknown`),this.errors=e}};function GO(e){let t=[];for(let n of e){if(n instanceof sE){t.push(n);continue}let e=n.search_id,r=fO(e);if(!r)throw Error(`Unknown pipe: ${n.search_id}`);let i=new r(gO.parse(n));t.push(i)}return t}function KO(e){try{return GO(e.searches)}catch(e){throw e instanceof WO?e:new $([Q.ValidationFailed({error:e})])}}const qO=/[\\^$.+()|[\]{}]/g,JO=new Map;function YO(e){let t=JO.get(e);if(t)return t;let n=``;for(let t=0;t<e.length;t++){let r=e[t];r===`*`?n+=`.*`:r===`?`?n+=`.`:n+=r.replace(qO,`\\$&`)}let r=RegExp(`^${n}$`);return JO.set(e,r),r}function XO(e,t){return YO(t).test(e)}function ZO(e,t){if(!t||t.length===0)return!1;for(let n of t)if(XO(e,n))return!0;return!1}function QO(e,t){if(!t)return!0;let{includes:n,excludes:r}=t;return!(n&&n.length>0&&!ZO(e,n)||r&&r.length>0&&ZO(e,r))}function $O(e,t){return QO(e,t?.providers)}function ek(e,t){if(!t)return!0;if(!QO(e,t.pipes))return!1;if(t.providers){let n=yw(e);if(n.length===0)return!0;if(!n.some(e=>$O(e,t)))return!1}return!0}function tk(e,t,n){return t?!(!QO(e,t.searches)||n!==void 0&&!$O(n,t)):!0}function nk(e,t,n){return t?!(!QO(e,t.searchesMulti)||n!==void 0&&!$O(n,t)):!0}function rk(e,t){return t?e.filter(e=>ek(e.pipeId,t)):e.slice()}function ik(e,t){return t?e.filter(e=>tk(e.searchId,t,e.provider)):e.slice()}function ak(e,t){return t?e.filter(e=>nk(e.searchId,t,e.provider)):e.slice()}function ok(e){let t=Object.values(e.billableOperations).map(e=>e.allowManagedConnection?e.credits.default:0);return Math.min(...t)}function sk(e){return Math.min(e.cost.mode===`per_result`?e.cost.creditsPerResult:e.cost.mode===`per_search`?e.cost.creditsPerSearch:e.cost.creditsPerPage)}function ck(e){return e.cost.credits.default}function lk(e){let t=cT(e);return te(t)||new URL(t).hostname}const uk=[`http://`,`https://`,`mailto:`],dk=new Set([`*`,`_`,`~`,"`",`[`,`]`,`(`,`)`,`\\`]);function fk(e){return e?pk(e):[]}function pk(e){let t=[],n=``,r=0,i=()=>{n&&=(t.push({type:`text`,value:n}),``)};for(;r<e.length;){let a=e[r],o=e[r+1];if(a===`\\`&&o!==void 0&&dk.has(o)){n+=o,r+=2;continue}if(a==="`"){let n=mk(e,r+1,"`");if(n>-1){i(),t.push({type:`code`,value:e.slice(r+1,n)}),r=n+1;continue}}if(a===`*`&&o===`*`){let n=mk(e,r+2,`**`);if(n>r+2){i(),t.push({type:`strong`,children:pk(e.slice(r+2,n))}),r=n+2;continue}}if(a===`~`&&o===`~`){let n=mk(e,r+2,`~~`);if(n>r+2){i(),t.push({type:`del`,children:pk(e.slice(r+2,n))}),r=n+2;continue}}if(a===`*`&&o!==`*`){let n=mk(e,r+1,`*`);if(n>r+1){i(),t.push({type:`em`,children:pk(e.slice(r+1,n))}),r=n+1;continue}}if(a===`[`){let n=mk(e,r+1,`]`);if(n>-1&&e[n+1]===`(`){let a=mk(e,n+2,`)`);if(a>-1){let o=e.slice(n+2,a);if(uk.some(e=>o.startsWith(e))){i(),t.push({type:`link`,href:o,children:pk(e.slice(r+1,n))}),r=a+1;continue}}}}n+=a,r+=1}return i(),t}function mk(e,t,n){let r=t;for(;r<e.length;){if(e[r]===`\\`&&r+1<e.length){r+=2;continue}if(hk(e,r,n))return r;r+=1}return-1}function hk(e,t,n){if(t+n.length>e.length)return!1;for(let r=0;r<n.length;r++)if(e[t+r]!==n[r])return!1;return!0}export{ti as AI_MODELS,ni as AI_MODEL_CATALOG,Qn as CatalogSchemaRefSchema,nr as ConditionOperatorsSchema,Yn as ExpandedFieldValueSchema,Th as FIELD_PLACEHOLDERS,Hn as FieldAnnotationSchema,vT as FieldAnnotations,Un as FieldAnnotationsSchema,gn as FieldNameSchema,zn as FieldReasonSchema,Tn as FieldValueSchema,Uw as FormStoreSchema,Qw as HIGH_VOLUME_PRICING_MIN_CREDITS,tr as JSONExtractSchema,En as JSONMetaSchema,cr as NoConnectorSchema,v as OptionalConnectorSchema,yn as PIPE_IDS,XC as PaginationTypeSchema,Eb as PersonWorkemailWaterfall1Entry,Tb as PersonWorkemailWaterfall1PayloadSchema,wb as PersonWorkemailWaterfall1PipeClass,U as Pipe,rg as Pipe0Error,bn as PipeIdSchema,pw as PipePayloadSchema,fr as PipeRunIfSchema,$ as PipelineValidationError,vn as PipesEnvironmentSchema,Rn as PipesErrorSchema,$n as PipesFieldDefinitionSchema,er as PipesFieldDefinitionsSchema,Xn as PipesInputSchema,Tw as PipesRequestConfigSchema,Ew as PipesRequestSchema,ww as PipesResponseSchema,mw as ProcessedPipePayloadSchema,WC as ProcessedSearchPayloadSchema,gO as ProcessedSearchesPayloadSchema,_n as ProviderNameSchema,Bn as RECORD_FIELD_FORMATS,xn as RECORD_FIELD_TYPES,rr as RUN_IF_OPERATOR_LABELS,ar as RUN_IF_STATUS_OPERATORS,ir as RUN_IF_VALUE_OPERATORS,Kn as RecordClaimedBySchema,Vn as RecordFieldFormatSchema,Jn as RecordFieldSchema,wn as RecordFieldStatusSchema,Sn as RecordFieldTypeSchema,Cn as RecordIdSchema,qn as RecordResolvedBySchema,Zn as RecordSchema,ng as RequestValidationError,sr as RequiredConnectorSchema,ur as RunIfStatusOperatorsSchema,dr as RunIfStatusValueSchema,lr as RunIfValueOperatorsSchema,rE as SEARCHES_IDS,Kx as SEARCH_IDS,tS as Search,KC as SearchErrorSchema,qx as SearchIdSchema,HC as SearchPayloadSchema,GC as SearchRequestSchema,ZC as SearchResponseSchema,qC as SearchResultFieldSchema,JC as SearchResultSchema,vO as SearchesErrorSchema,iE as SearchesIdSchema,hO as SearchesPayloadSchema,CO as SearchesRequestBaseConfigSchema,TO as SearchesRequestSchema,SO as SearchesResponseSchema,yO as SearchesResultFieldSchema,bO as SearchesResultSchema,sE as SearchesSearch,xO as SearchesStatusSchema,id as TYPES_TO_FORMATS,Bw as WidgetsByKindSchema,Ln as WidgetsSchema,Oa as all,Nr as analyzeLiquidTemplate,pn as and,H as any,xw as assertUniqueBillableOperations,g as autocomplete,ri as buildAiModelBillableOperations,bT as buildDependencyGraph,eh as buildInputRequirementFromTemplates,K as catalogInput,Pa as cleanObject,cT as cleanUrl,sT as cleanWebsiteUrl,X as collectConstantReferencesFromTemplates,jw as collectPipeContextSelectFields,ja as collectRequirementFields,Y as collectSecretReferencesFromTemplates,YO as compilePattern,Ta as configDefaults,Ri as convertIntermediateFieldsIntoGroups,zi as defaultSectionMap,eg as describeRequirement,Zx as entityLogoFavicon,Xx as entityLogoProfessionalProfileUrl,Hi as extractFormMetadata,V as field,an as fieldBehaviorCatalog,rn as fieldCatalog,$h as fieldNameStr,dT as fieldTypeFromValue,ZT as fieldsToObject,rk as filterPipeEntries,ik as filterSearchEntries,ak as filterSearchesEntries,ii as getAiModelBillingKey,oi as getAiModelConnectionRequirements,ai as getAiModelProviders,si as getAllAiModelProviders,W as getBasePipeName,lw as getDefaultOutputFields,yw as getDefaultPipeProviders,rw as getDefaultSearchOutputFields,_O as getDefaultSearchesOutputFields,Xw as getDependentPipeNamesForInputProperty,Zw as getDependentPipeNamesForPipe,lk as getDomain,pT as getExpansionState,Jx as getFaviconUrlGoogle,_ as getField,on as getFieldBehavior,ed as getFieldDisplayLabel,hT as getFieldWidgets,nw as getInitialSearchTableData,kO as getInitialSearchesTableData,Sw as getInitialTableData,Ra as getInputHash,li as getJsonMetaForFieldDef,ck as getLoweestSearchCreditAmount,sk as getLoweestSearchesCreditAmount,ok as getLowestPipeCreditAmount,hn as getOutputFieldInfoFromDef,gw as getPipeBillableOperationDef,qw as getPipeCategoryEntries,Kw as getPipeCategoryEntry,uw as getPipeClass,La as getPipeConfigHash,dw as getPipeDefaultPayload,G as getPipeDocsURI,hw as getPipeEntry,Yw as getPipeInstances,Mw as getPipePayloadFormConfig,fw as getPipePayloadSchema,_w as getPipeVersion,J as getProviderBillableOperation,za as getProviderCreditsFromBillableOperations,nE as getProviderEntry,un as getReadableFieldStatus,NO as getSandboxConnections,PO as getSandboxConnectionsForPipe,FO as getSandboxConnectionsForSearch,IO as getSandboxConnectionsForSearches,BO as getSearchCategoryEntries,zO as getSearchCategoryEntry,VC as getSearchClass,UC as getSearchDefaultPayload,ew as getSearchEntry,HO as getSearchFieldWidgets,UO as getSearchInstance,Iw as getSearchPayloadFormConfig,YC as getSearchPayloadSchema,iw as getSearchTableDataAggregates,QC as getSearchVersion,fO as getSearchesClass,mO as getSearchesDefaultPayload,jO as getSearchesEntry,gT as getSearchesFieldWidgets,GO as getSearchesInstances,pO as getSearchesPayloadSchema,AO as getSearchesTableDataAggregates,EO as getSearchesVersion,Dw as getStartingCostPerPipesProvider,aw as getStartingCostPerSearchProvider,MO as getStartingCostPerSearchesProvider,Cw as getTableDataAggregates,eT as getTier,mT as getUnexpandedValue,Yx as ifDefined,z as inputFields,eE as inputFromRecord,$T as inputFromRecordArr,QT as inputFromRecords,Lw as inputGuards,cn as isCatalogField,Nt as isEmptyValue,sn as isFieldName,rT as isHighVolumeEligible,ek as isPipeAllowed,$O as isProviderAllowed,Aa as isRequirementMet,Ma as isRequirementSatisfiedByRecord,tk as isSearchAllowed,nk as isSearchesAllowed,Zr as joinConnectionString,iT as listHighVolumeEligibleOperations,nT as listTiers,Va as markRecordFieldAsComplete,Wa as markRecordFieldAsFailed,Ua as markRecordFieldAsNoResult,Ha as markRecordFieldAsPending,Ka as markRecordFieldAsProcessing,Ga as markRecordFieldAsSkipped,ZO as matchesAny,XO as matchesPattern,Qx as mergeWidgets,T as noConnectorInput,ka as optional,w as optionalConnectorInput,mn as or,R as outputFields,Mr as parseLiquidTemplate,Er as parseOutputTagArgs,zT as parseRecordValueOrError,fk as parseRichText,cw as pipeCatalog,Ww as pipeCategoryCatalog,ow as pipeClassCatalog,sw as pipePayloadSchemaCatalog,na as pipesAsyncIncludeExcludeSelectInput,pa as pipesContextSelectInput,ia as pipesDateRangeInput,Yi as pipesFieldsSelectInput,Xi as pipesIncludeExcludeInput,ta as pipesIncludeExcludeSelectInput,E as pipesInputField,ua as pipesIntInput,_i as pipesJsonExtractionInput,fa as pipesJsonSchemaField,ea as pipesKeyValueListInput,ca as pipesLLMSelectInput,Zi as pipesMultiCreateInput,la as pipesMultiSelectInput,da as pipesNumberInput,O as pipesOptionalBooleanInput,Qi as pipesOrderedMultiCreateInput,k as pipesOutputField,y as pipesPayloadRegistry,Wi as pipesPromptInput,D as pipesProviderInput,ra as pipesRangeInput,S as pipesRunIfInput,sa as pipesSelectInput,Jw as pipesSnippetCatalog,$i as pipesTaggedOrderedMultiCreateInput,C as pipesTaggedTextInput,Gi as pipesTemplateInput,aa as pipesTextInput,oa as pipesTextareaInput,Z as placeholder,tE as processInputObjects,pr as providerCatalog,q as rateLimitRatioFallingProgression,Ar as renderLiquidTemplate,jr as renderLiquidTemplateSync,qi as requiredConnectorInput,Ba as requirementToInputFields,tg as requirementUnmetMessage,dn as requiresConnection,fn as requiresField,BC as searchCatalog,LO as searchCategoryCatalog,RC as searchClassCatalog,zC as searchPayloadSchemaCatalog,VO as searchSnippetCatalog,I as searchesAsyncIncludeExcludeSelectInput,F as searchesAsyncMultiSelectInput,dO as searchesCatalog,lO as searchesClassCatalog,va as searchesDateRangeInput,ga as searchesExactRangeInput,j as searchesIncludeExcludeInput,M as searchesIncludeExcludeSelectInput,L as searchesIntInput,ha as searchesMinMaxIntInput,A as searchesMultiCreateInput,P as searchesMultiSelectInput,wa as searchesNumberField,ya as searchesOptionalBooleanInput,ba as searchesOptionalNullableBooleanInput,ma as searchesOrderedMultiCreateInput,N as searchesOutputField,b as searchesPayloadRegistry,uO as searchesPayloadSchemaCatalog,_a as searchesRangeInput,Ca as searchesSelectInput,xa as searchesTextInput,Sa as searchesTextareaField,rd as sortObjectKeys,vw as sortPipeCatalogByBasePipe,$C as sortSearchCatalogByBaseSearch,DO as sortSearchesCatalogByBaseSearch,Xr as splitConnectionString,h as staticAutocomplete,m as staticOptions,nd as stringify,td as testPrint,tT as tierAtOrBelow,HT as transformIntoResponse,xT as validatePipesOrError,KO as validateSearches,Q as validationErrorMessages};
119
+ `}}],input:[{id:`1`,name:`John`,email:`john@pipe0.com`}]}],"email:send:resend@1":[{config:{environment:`production`},pipes:[{connector:{strategy:`first`,connections:[{connection:`resend_123`,type:`vault`}]},pipe_id:`email:send:resend@1`,config:{from:`<FROM_EMAIL_ADDRESS>`,to:`{{ email }}`,reply_to:`<REPLY_TO_EMAIL_ADDRESS>`,subject:`{{ email_subject }}`,body:`{{ email_body }}`}}],input:[{id:`1`,email:`<EMAIL_ADDRESS>`,email_body:`<EMAIL_TEXT>`,email_subject:`<EMAIL_SUBJECT_LINE>`}]}],"email:send:gmail@1":[{config:{environment:`production`},pipes:[{connector:{strategy:`first`,connections:[{connection:`gmail_123`,type:`vault`}]},pipe_id:`email:send:gmail@1`,config:{to:`{{ email }}`,reply_to:`<REPLY_TO_EMAIL_ADDRESS>`,subject:`{{ email_subject }}`,body:`{{ email_body }}`}}],input:[{id:`1`,email:`<EMAIL_ADDRESS>`,email_body:`<EMAIL_TEXT>`,email_subject:`<EMAIL_SUBJECT_LINE>`}]}],"message:send:slack@1":[{config:{environment:`production`},pipes:[{connector:{strategy:`first`,connections:[{connection:`slack_123`,type:`vault`}]},pipe_id:`message:send:slack@1`,config:{channel_id:`<SLACK_CHANNEL_ID>`,message:`{{ message }}`}}],input:[{id:`1`,message:`<MESSAGE_TEXT>`}]}],"people:profileurl:email:waterfall@1":[{config:{environment:`production`},pipes:[{pipe_id:`people:profileurl:email:waterfall@1`}],input:[{id:`1`,email:`<MESSAGE_TEXT>`}]}],"person:profileurl:email:waterfall@1":[{config:{environment:`production`},pipes:[{pipe_id:`person:profileurl:email:waterfall@1`}],input:[{id:`1`,email:`<MESSAGE_TEXT>`}]}],"people:validate:email:zerobounce@1":[{config:{environment:`production`},pipes:[{pipe_id:`people:validate:email:zerobounce@1`}],input:[{id:`1`,work_email:`john@pipe0.com`}]}],"people:mobilenumber:workemail:waterfall@1":[{config:{environment:`production`},pipes:[{pipe_id:`people:mobilenumber:workemail:waterfall@1`}],input:[{id:`1`,work_email:`john@pipe0.com`}]}],"people:professionalprofile:waterfall@1":[{config:{environment:`production`},pipes:[{pipe_id:`people:professionalprofile:waterfall@1`}],input:[{id:`1`,professional_profile_url:`john@pipe0.com`}]}],"people:professionalprofileurl:name@1":[{config:{environment:`production`},pipes:[{pipe_id:`people:professionalprofileurl:name@1`}],input:[{id:`1`,name:`John`,company_name:`Pipe0`,location_int:`Berlin`}]}],"people:professionalprofileurl:email:waterfall@1":[{config:{environment:`production`},pipes:[{pipe_id:`people:professionalprofileurl:email:waterfall@1`}],input:[{id:`1`,email:`john@pipe0.com`}]}],"people:mobilenumber:professionalprofile:waterfall@1":[{config:{environment:`production`},pipes:[{pipe_id:`people:mobilenumber:professionalprofile:waterfall@1`}],input:[{id:`1`,professional_profile_url:`https://linkedin.com/li/john`}]}],"company:overview@2":[{config:{environment:`production`},pipes:[{pipe_id:`company:overview@2`,config:{}}],input:[{id:`1`,company_website_url:`Pipe0`}]}],"company:overview@3":[{config:{environment:`production`},pipes:[{pipe_id:`company:overview@3`,config:{}}],input:[{id:`1`,company_domain:`pipe0.com`}]}],"fields:merge@1":[{config:{environment:`production`},pipes:[{pipe_id:`fields:merge@1`,config:{sources:[{field_name:`field_1`},{field_name:`field_2`}]}}],input:[{id:`1`,company_website_url:`Pipe0`}]}],"website:scrape:firecrawl@1":[{config:{environment:`production`},pipes:[{pipe_id:`website:scrape:firecrawl@1`,config:{scrape_main_only:!0,input_fields:{website_url:{alias:``}}}}],input:[{id:`1`,company_website_url:`Pipe0`}]}],"website:extract:firecrawl@1":[{config:{environment:`production`},pipes:[{pipe_id:`website:extract:firecrawl@1`,config:{extraction_prompt:`Extract the company mission as well as the latest news.`,enable_full_domain_crawl:!0,enable_web_search:!0,json_schema:{type:`object`,required:[`company_mission`,`latest_news`],properties:{company_mission:{type:`string`},latest_news:{type:`string`}}}}}],input:[{id:`1`,company_website_url:`Pipe0`}]}],"person:email:validate:millionverifier@1":[{config:{environment:`production`},pipes:[{pipe_id:`person:email:validate:millionverifier@1`}],input:[{id:`1`,email:`john@pipe0.com`}]}],"website:scrapelist:firecrawl@1":[{config:{environment:`production`},pipes:[{pipe_id:`website:scrapelist:firecrawl@1`,config:{scrape_main_only:!0,formats:[`markdown`,`links`]}}],input:[{id:`1`,urls:[`https://pipe0.com`,`https://pipe0.com/docs`]}]}],"website:maplinks:firecrawl@1":[{config:{environment:`production`},pipes:[{pipe_id:`website:maplinks:firecrawl@1`,config:{sitemap:`include`,page_limit:20,search:``}}],input:[{id:`1`,urls:[`https://pipe0.com`,`https://pipe0.com/docs`]}]}],"contact:create:resend@1":[{config:{environment:`production`},pipes:[{pipe_id:`contact:create:resend@1`,connector:{strategy:`first`,connections:[{type:`vault`,connection:`resend_123`}]},config:{segment_id:`segment_id_12xeeb12`,add_as_subscribed:!0}}],input:[{id:`1`,email:`test@pipe0.com`,name:`John Dorr`}]}],"sheet:row:append@1":[{config:{environment:`production`},pipes:[{pipe_id:`sheet:row:append@1`,connector:{strategy:`first`,connections:[{type:`vault`,connection:`pipe0_123`}]},config:{sheet:`sheet_id`,run:!0,allow_field_creation:!0,allow_sheet_creation:!0,new_sheet_team_id:``,included_fields:[{field_name:`field_name`}]}}],input:[{id:`1`,email:`test@pipe0.com`,name:`John Dorr`}]}],"sheet:row:expandappend@1":[{config:{environment:`production`},pipes:[{pipe_id:`sheet:row:expandappend@1`,connector:{strategy:`first`,connections:[{type:`vault`,connection:`pipe0_123`}]},config:{sheet:`sheet_id`,run:!0,allow_field_creation:!0}}],input:[{id:`1`,email:`test@pipe0.com`,name:`John Dorr`}]}],"people:match:role:waterfall@1":[{config:{environment:`production`},pipes:[{pipe_id:`people:match:role:waterfall@1`,config:{providers:[{provider:`leadmagic`}],roles:[`CEO`]}}],input:[{id:`1`,company_website_url:`https://acme.com`}]}],"person:match:role:waterfall@1":[{config:{environment:`production`},pipes:[{pipe_id:`person:match:role:waterfall@1`,config:{providers:[{provider:`leadmagic`}],roles:[`CEO`]}}],input:[{id:`1`,company_domain:`acme.com`}]}],"company:match:logodev@1":[{config:{environment:`production`},pipes:[{pipe_id:`company:match:logodev@1`}],input:[{id:`1`,company_website_url:`https://acme.com`}]}],"company:match:logodev@2":[{config:{environment:`production`},pipes:[{pipe_id:`company:match:logodev@2`}],input:[{id:`1`,company_domain:`acme.com`}]}],"company:lookalikes:companyenrich@1":[{config:{environment:`production`},pipes:[{pipe_id:`company:lookalikes:companyenrich@1`}],input:[{id:`1`,company_website_url:`https://acme.com`}]}],"company:lookalikes:companyenrich@2":[{config:{environment:`production`},pipes:[{pipe_id:`company:lookalikes:companyenrich@2`}],input:[{id:`1`,company_domain:`acme.com`}]}],"person:posts:crustdata@1":[{config:{environment:`production`},pipes:[{pipe_id:`person:posts:crustdata@1`}],input:[{id:`1`,profile_url:`https://linkedin.com/li/john-doe-3445`}]}],"people:identity:email:waterfall@1":[{config:{environment:`production`},pipes:[{pipe_id:`people:identity:email:waterfall@1`}],input:[{id:`1`,work_email:`john@pipe0.com`}]}],"person:identity:email:waterfall@1":[{config:{environment:`production`},pipes:[{pipe_id:`person:identity:email:waterfall@1`}],input:[{id:`1`,work_email:`john@pipe0.com`}]}],"people:profile:workemail:crustdata@1":[{config:{environment:`production`},pipes:[{pipe_id:`people:profile:workemail:crustdata@1`}],input:[{id:`1`,work_email:`john@pipe0.com`}]}],"person:profile:workemail:crustdata@1":[{config:{environment:`production`},pipes:[{pipe_id:`person:profile:workemail:crustdata@1`}],input:[{id:`1`,work_email:`john@pipe0.com`}]}],"people:workemail:profileurl:waterfall@1":[{config:{environment:`production`},pipes:[{pipe_id:`people:workemail:profileurl:waterfall@1`}],input:[{id:`1`,profile_url:`https://linkedin.com/li/john-123abc`}]}],"person:workemail:profileurl:waterfall@1":[{config:{environment:`production`},pipes:[{pipe_id:`person:workemail:profileurl:waterfall@1`}],input:[{id:`1`,profile_url:`https://linkedin.com/li/john-123abc`}]}],"company:match:crustdata@1":[{config:{environment:`production`},pipes:[{pipe_id:`company:match:crustdata@1`}],input:[{id:`1`,company_website_url:`https://microsoft.com`}]}],"company:match:crustdata@2":[{config:{environment:`production`},pipes:[{pipe_id:`company:match:crustdata@2`}],input:[{id:`1`,company_domain:`microsoft.com`}]}],"company:identity:crustdata@1":[{config:{environment:`production`},pipes:[{pipe_id:`company:identity:crustdata@1`}],input:[{id:`1`,company_domain:`samsung.com`},{id:`2`,company_name:`Samsung`}]}],"person:identity:amplemarket@1":[{pipes:[{pipe_id:`person:identity:amplemarket@1`,connector:{strategy:`first`,connections:[{type:`vault`,connection:`amplemarket_123`}]}}],input:[{id:`1`,email:`hallp@pipe0.com`}]}],"person:match:amplemarket@1":[{pipes:[{pipe_id:`person:match:amplemarket@1`,connector:{strategy:`first`,connections:[{type:`vault`,connection:`amplemarket_123`}]}}],input:[{id:`1`,profile_url:`https://linkedin.com/li/johndoe`}]}],"field:domainify@1":[{pipes:[{pipe_id:`field:domainify@1`}],input:[{id:`1`,url_input:`https://google.com`}]}],"field:slugify@1":[{pipes:[{pipe_id:`field:slugify@1`}],input:[{id:`1`,string_input:`input value`}]}],"http:request@1":[{pipes:[{pipe_id:`http:request@1`,config:{method:`GET`,url:`https://api.example.com/v1/companies/{{ company_name }}`,query_params:[{key:`limit`,value:`10`}],body:``,headers:[{key:`Authorization`,value:`Bearer SECRET`}],expected_response_schema:{},output_fields:{http_response_status:{alias:``,enabled:!0},http_response_body:{alias:``,enabled:!0},http_response_headers:{alias:``,enabled:!1}}}}],input:[{id:`1`,company_name:`Acme`}]}]};function bT(e){let t=[];for(let n of e){if(n instanceof U){t.push(n);continue}let e=zw.parse(n);if(!Bw(n.pipe_id))throw Error(`Unknown pipe: ${n.pipe_id}`);let r=new(Fw(n.pipe_id))(e);t.push(r)}return t}function xT(e,t){let n=bT(e),r=new Set;return n.forEach(e=>Object.entries(e.inputFields).forEach(([n,i])=>{i.resolvedName===t&&r.add(e.pipeId)})),Array.from(r)}function ST(e,t){let n=e.dependencyGraph,r=new Set;return n.forEach((e,n)=>e.forEach(e=>{e.index===t&&r.add(n)})),Array.from(r).map(t=>{let n=e.orderedPipeInstances[t];if(!n)throw Error(`Internal: Pipe with index ${t} not found.`);return n.pipeId})}const CT=.1,wT=[`level1`,`level2`,`level3`];function TT(e,t){let n=wT[t-1];if(n)return e[n]}function ET(e,t){for(let n=t;n>=1;n--){let t=TT(e,n);if(t)return{level:n,tier:t}}}function DT(e){let t=[];for(let n=1;n<=3;n++){let r=TT(e,n);r&&t.push({level:n,credits:r.credits,weight:r.weight})}return t}function OT(e){if(e.default<.1)return!1;let t=DT(e);if(t.length===0)return!1;for(let e=0;e<t.length;e++)if(t[e].level!==e+1)return!1;let n=e.default,r=0;for(let e of t){if(!(e.credits<n)||!Number.isInteger(e.weight)||e.weight<=r)return!1;n=e.credits,r=e.weight}return!0}function kT(){let e=new Map;for(let t of Object.values(Nw))for(let[n,r]of Object.entries(t.billableOperations)){let i=r;if(!i?.allowManagedConnection||!OT(i.credits))continue;let a=n,o={kind:`pipe`,id:t.pipeId,label:t.label,categories:[...t.categories]},s=e.get(a);if(s){s.standardCredits=Math.min(s.standardCredits,i.credits.default),s.usedBy.push(o);continue}e.set(a,{billableOperation:a,provider:i.provider,kind:`pipe`,standardCredits:i.credits.default,tiers:DT(i.credits),usedBy:[o]})}for(let t of Object.values(dw)){let{cost:n}=t;if(!OT(n.credits))continue;let r=t.billableOperation,i={kind:`search`,id:t.searchId,label:t.label,categories:[...t.categories]},a=e.get(r);if(a){a.standardCredits=Math.min(a.standardCredits,n.credits.default),a.usedBy.push(i);continue}e.set(r,{billableOperation:r,provider:t.provider,kind:`search`,standardCredits:n.credits.default,tiers:DT(n.credits),usedBy:[i]})}return[...e.values()].sort((e,t)=>e.billableOperation.localeCompare(t.billableOperation))}function AT(e){return e===`localhost`?!0:/^[a-zA-Z0-9]([a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(\.[a-zA-Z0-9]([a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/.test(e)&&e.includes(`.`)}function jT(e){return/^(\d{1,3})\.(\d{1,3})\.(\d{1,3})\.(\d{1,3})$/.test(e)?e.split(`.`).every(e=>{let t=parseInt(e,10);return t>=0&&t<=255}):/:/.test(e)}function MT(e){if(!e||typeof e!=`string`)return``;let t=e.trim();t.match(/^[a-zA-Z]+:\/\//)||(t=`https://${t}`);try{let e=new URL(t).hostname;if(jT(e))return`https://${e}`;if(!AT(e))throw Error(`Invalid domain`);return`https://${e}`}catch{let t=e.match(/([a-zA-Z0-9]([a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,}/i);return t?`https://${t[0]}`:``}}function NT(e){if(!e||typeof e!=`string`)return``;let t=e.trim();t.match(/^[a-zA-Z]+:\/\//)||(t=`https://${t}`);try{let e=new URL(t),n=e.hostname;if(jT(n))return`${e.protocol===`http:`?`http:`:`https:`}//${e.host}${e.pathname}${e.search}${e.hash}`;if(!AT(n))throw Error(`Invalid domain`);return`${e.protocol===`http:`?`http:`:`https:`}//${e.host}${e.pathname}${e.search}${e.hash}`}catch{let t=e.match(/^(https?:\/\/)?([^/\s]+)(\/.*)?$/i);if(t){let[,e,n,r=``]=t,i=n?.split(`:`)[0]||``;if(AT(i)||jT(i))return`${e?.toLowerCase()===`http://`?`http:`:`https:`}//${n}${r}`}return``}}function PT(e){try{return MT(e)}catch{console.warn(`Invalid URL: ${e}`);return}}function FT(e,t){if(t)switch(e){case`website_url`:return PT(t);default:return}}function IT(e){let t;if(LT(e))return IT(e.value);let n=typeof e;return t=n===`string`||n===`number`||n===`boolean`?n:e===null?`unknown`:`json`,t}function LT(e,t=0){if(typeof e==`object`&&e&&`value`in e&&`status`in e&&On.safeParse(e.status).success){if(t>1||typeof e.value==`object`&&LT(e.value,t++))throw new Q([Z.RecursiveExpandedValue()]);return!0}return!1}function RT(e){let t=LT(e),n;return n=t?e.value:e,t?{isExpanded:!0,resolvedInputValue:n,expandedValue:e}:{isExpanded:!1,resolvedInputValue:n,expandedValue:null}}function zT(e){return LT(e)?zT(e.value):e}function BT(e,t,n){if([`processing`,`completed`].includes(n.status)===!1||t==null)return{};try{let r=un(e,n.format)?.getStaticWidgets?.(t),i=FT(n.format,t);return _S(r||{},{display_value:i?{label:i}:void 0})}catch(e){return console.warn(`Failed to generate UI props: ${e}`),{}}}function VT(e,t,n){if(t==null)return{};try{let r=un(e,n)?.getStaticWidgets?.(t),i=FT(n,t);return _S(r||{},{display_value:i?{label:i}:void 0})}catch(e){return console.warn(`Failed to generate UI props: ${e}`),{}}}function HT(e,t){for(let[n,r]of Object.entries(t)){let i=n;i===`type`&&e.type===`unknown`&&t.type!==`unknown`&&(e.type=t.type),i!==`type`&&i!==`json_metadata`&&(e[i]===void 0||e[i]===null||e[i]===``)&&t[i]&&(e[i]=r),i===`json_metadata`&&e.type===`json`&&!e.json_metadata&&t.json_metadata&&(e.json_metadata=t.json_metadata)}return e}var UT=class e{annotations;constructor(e){this.annotations=e||{}}getAnnotation(e){return this.annotations[e]}static fromInput(t,{probeCount:n=1e5,inferCatalogFields:i=!0}={probeCount:1e5,inferCatalogFields:!0}){let a={},o=0;for(let e of t){if(o++,o>n)break;for(let[t,n]of Object.entries(e)){if(t===``||t==null)continue;let{resolvedInputValue:e,expandedValue:o,isExpanded:s}=RT(n),c;c=s&&o.type?o.type:IT(e);let l;dn(t)&&(l=_(t));let u=l&&(l.type===c||c===`unknown`);(!a[t]||a[t].type===`unknown`&&c!==`unknown`)&&(a[t]={type:c===`unknown`&&u&&i&&l?.type?l.type:c,format:u&&i&&l?.format||null,label:l&&i?l.label:null,json_metadata:u&&i&&l?.jsonMeta?{schema:l.jsonMeta.zodSchema?r.toJSONSchema(l.jsonMeta.zodSchema):null,example_value:l.jsonMeta.exampleValue||null}:null})}}return a.id||={format:null,type:`string`,json_metadata:null,label:null},new e(a)}merge(t,n=!1){let r=structuredClone(this.annotations),i=t instanceof e?t.annotations:t;for(let[e,t]of Object.entries(i))if(r[e]===void 0||n)r[e]=t;else{let n=r[e];r[e]=HT(n,t)}return new e(r)}deleteKey(t){let n=structuredClone(this.annotations);return delete n[t],new e(n)}};function WT(e){let t={};for(let n=0;n<e.length;n++){let r=e[n];Object.values(r.getOutputFields()).forEach(e=>{if(t[e.resolvedName])throw new Q([Z.AmbiguousDependency({fieldName:e.resolvedName})]);t[e.resolvedName]=n})}return t}function GT(e){let t=WT(e),n=[];for(let[r,i]of e.entries()){let e=[];for(let{field:n,required:a}of Fa(i.getInputRequirement())){let o=t[n.resolvedName];if(r===o)throw new Q([{code:`SelfReference`,message:`Pipe '${i.pipeId} has an input requirement that points to a field that is produced by itself.'`}]);if(o==null)continue;let s=e.find(e=>e.index===o);s?(s.reason??=[],s.reason=Array.from(new Set([...s.reason,`input`])),s.required=a||s.required):e.push({index:o,required:a,reason:[`input`]})}if(i.payload.run_if){let n=i.payload.run_if.when.conditions.map(e=>e.field_name);for(let r of n){let n=t[r];if(n==null)continue;let i=e.find(e=>e.index===n);i?(i.reason??=[],i.reason=Array.from(new Set([...i.reason,`input`])),i.required=!0):e.push({index:n,required:!0,reason:[`input`]})}}n.push(e)}return n}function KT({config:e,pipes:t,input:n,field_annotations:r}){try{let i=XT({config:e,pipes:t,input:n,fieldAnnotations:r});return qT(i),i}catch(e){throw e instanceof Q?e:new Q([Z.ValidationFailed({error:e})])}}function qT(e){for(let t of e.orderedPipeInstances)for(let{field:n}of Fa(t.getInputRequirement()))eh({pipes:e.orderedPipeInstances,derivedInputFields:e.derivedInputFields},n.type),th({pipes:e.orderedPipeInstances,derivedInputFields:e.derivedInputFields},n.format)}function JT(e,t){if(!e&&!t)throw new Q([Z.MustDefineAnnotations()]);return new UT(t||{}).merge(UT.fromInput(e||[]))}function YT(e,t){let n={...t};return e.pipes.forEach((t,r)=>{for(let[i,a]of Object.entries(t.getOutputFields())){let i=n[a.resolvedName];if(i&&i.added_by.ref!==`input`)throw new Q([Z.DuplicatePipeOutput({pipeId:t.pipeId,outputField:a})]);n[a.resolvedName]={type:eh(e,a.type),added_by:{ref:t.pipeId,config_hash:t.getConfigHashKey(),pipe_index:r},label:i?.label||a.label,format:th(e,a.format),is_primary_output:a.isPrimaryOutput}}}),n}function XT(e){let t=bT(e.pipes),n=JT(e.input,e.fieldAnnotations),r={},i=new Set;t.forEach((e,t)=>{Object.entries(e.getOutputFields()).forEach(([e,t])=>{r[t.resolvedName]=e,i.add(t.resolvedName)}),$T(e,t)});let a={},o={};for(let[e,t]of Object.entries(n.annotations))o[e]={type:t.type,added_by:{ref:`input`,config_hash:null,pipe_index:null},label:t.label||``,format:t.format?t.format:null,is_primary_output:!1},!i.has(e)&&(a[e]={addedBy:`input`,required:!1,type:t.type,label:t.label||e});let[s,c,l]=ZT(t,n),u=YT({pipes:c,derivedInputFields:a},o);for(let e in u){let t=u[e];r[e]&&(n=n.merge({[e]:{type:t.type,format:t.format,json_metadata:null,label:n.annotations[e]?.label?n.annotations[e]?.label:null}},!0))}return{environment:e.config.environment,dependencyGraph:l,derivedInputFields:a,fieldAnnotations:n,orderedPipePayloads:s,orderedPipeInstances:c,resolvedFieldNames:r,fieldDefinitions:u}}function ZT(e,t){let n=GT(e),r=QT(n,e,t),i=[],a=[];return r.forEach(t=>{let n=e[t];if(!n)throw new Q([Z.FaultyEnrichmentOrder()]);i.push(n.payload),a.push(n)}),[i,a,n]}function QT(e,t,n){let r=t.length,i=[],a=new Set,o=new Set,s=[],c=e=>{let n=t[e];return n?Fa(n.getInputRequirement()).length>0:!1},l=(n,r=[])=>{if(o.has(n)){let e=n,i=r[r.length-1]||0,a={idx:i,pipe_id:t[i]?.pipeId},o={idx:e,pipeId:t[e]?.pipeId};throw new Q([Z.CircularDependency({currentPipe:a,circularPipe:o})])}if(a.has(n))return;o.add(n),r.push(n);let s=e[n]||[];for(let e of s)l(e.index,r);r.pop(),o.delete(n),a.add(n),i.push(n)};function u(t){if(a.has(t))return;o.add(t);let n=e[t]||[];for(let e of n){if(!a.has(e.index)&&e.required)throw new Q([Z.UnresolvableDependency({index:t,dependencyIndex:e.index})]);!o.has(e.index)&&!e.required&&u(e.index)}o.delete(t),a.add(t),i.push(t)}for(let e=0;e<r;e++)c(e)&&l(e);for(let e=0;e<r;e++)c(e)||l(e);for(let e=0;e<r;e++)u(e);let ee=new Set(Object.keys(n.annotations));for(let e of i){let n=t[e];if(!n)throw Error(`Pipe not defined`);Object.values(n.getOutputFields()).forEach(e=>{ee.add(e.resolvedName)})}for(let[n,r]of t.entries()){let a=r.getInputRequirement();Pa(a,ee)||s.push(Z.RequirementUnmet({requirement:a,pipeId:r.pipeId,index:n}));let o=e[n]||[],c=i.indexOf(n);for(let e of o){let r=i.indexOf(e.index);e.required&&r>c&&s.push(e.reason.includes(`input`)?Z.HardInputDependencyViolation({dependencyIndex:e.index,dependencyIndexPipeId:t[e.index]?.pipeId,index:n,indexPipeId:t[n]?.pipeId}):Z.HardConditionDependencyViolation({dependencyIndex:e.index,dependencyIndexPipeId:t[e.index]?.pipeId,index:n,indexPipeId:t[n]?.pipeId}))}r.payload.run_if&&r.payload.run_if.when.conditions.map(e=>e.field_name).forEach(e=>{if(!ee.has(e))throw new Q([Z.ConditionTargetFieldNotFound({fieldName:e,pipeId:r.pipeId,pipeIdx:n})])})}if(s.length>0)throw new Q(s);return i}function $T(e,t){let n=new Set(e.getConnectionsRequirements().filter(e=>e.allowManagedConnection===!1).map(e=>e.provider));if(n.size>0){let r=e.payload.connector;if(!r||(r.connections.map(e=>{if(e.type===`vault`)return ei(e.connection).provider;e.type}).forEach(e=>{e&&n.delete(e)}),n.size>0))throw new Q([Z.MissingCustomConnections({index:t,pipeId:e.pipeId,missingProviders:Array.from(n)})])}}const eE=[`yyyy-MM-dd`,`yyyy/MM/dd`,`yyyy-MM-dd HH:mm:ss`,`MM/dd/yyyy`,`MM/dd/yyyy HH:mm:ss`,`MM-dd-yyyy`,`MM-dd-yyyy HH:mm:ss`,`yyyyMMdd`],tE=[`yyyy-MM-dd`,`yyyy/MM/dd`,`MM/dd/yyyy`,`MM-dd-yyyy`,`yyyyMMdd`,`dd-MM-yyyy`,`dd/MM/yyyy`],nE=r.string().trim().transform(e=>{if(!/\./.test(e)&&!/^[a-zA-Z0-9_-]*$/.test(e))throw Error(`Invalid URL format`);let t=String(e).trim();if(/^https?:\/\//i.test(t)||(t=`https://${t}`),t=t.replace(/^http:\/\//i,`https://`),t=t.replace(/^https:\/\/[w]{4,}\./i,`https://www.`),t=t.endsWith(`/`)?t.slice(0,-1):t,!t.includes(`.`))throw Error(`Invalid URL format - no TLD`);return t}).check(e=>{r.url(e.value).safeParse(e.value).success||e.issues.push({code:`custom`,message:`Invalid URL`,input:e.value})}),rE=r.coerce.string().trim().toLowerCase().transform(e=>{let t=e.replace(/^mailto:/i,``),[n,r]=t.split(`@`);return!r||!n?t:`${n.replace(/[^a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]/g,``)}@${r.replace(/\s+/g,``)}`}).check(e=>{r.email().safeParse(e.value).success||e.issues.push({code:`custom`,input:e.value,message:`Invalid email format`})});function iE(e){return!isNaN(e.getTime())}const aE=r.coerce.string().trim().transform(e=>{let t=e.replace(/[^0-9T:.\-/ ]/g,``).trim();for(let e of eE){let n=ee(t,e,new Date(0));if(iE(n))return u(n,`yyyy-MM-dd'T'HH:mm:ss`)}throw Error(`Invalid date format: ${e}`)}),oE=r.coerce.string().trim().transform(e=>{for(let t of tE){let n=ee(e,t,new Date(0));if(iE(n))return u(n,`yyyy-MM-dd`)}throw Error(`Invalid date format: ${e}`)}),sE=r.union([r.number(),r.string().transform(e=>{let t=e.replace(/[^0-9.]/g,``),n=parseFloat(t);if(isNaN(n))throw Error(`Invalid decimal format`);return n})]).refine(e=>!isNaN(e),{message:`Value must be a valid number`}),cE=r.union([r.number().transform(e=>Math.trunc(e)),r.string().transform(e=>{let t=e.replace(/[^0-9]/g,``),n=parseInt(t,10);if(isNaN(n))throw Error(`Invalid integer format`);return n})]).check(r.int()),lE=r.coerce.string().trim().min(1,{message:`Value cannot be empty for this format`});function uE(e,t){if(t===null)return e===``||e==null?null:e;if(e==null)return null;try{switch(t){case`url`:return nE.parse(e);case`email`:return rE.parse(e);case`datetime`:return aE.parse(e);case`date`:return oE.parse(e);case`decimal`:return sE.parse(e);case`int`:return cE.parse(e);case`currency`:return r.number().parse(e);case`percent`:return r.number().parse(e);case`address_line_1`:return lE.parse(e);case`website_url`:return nE.parse(e);case`profile_url`:return nE.parse(e);case`zip_code`:return lE.parse(e);case`markdown`:case`phone`:case`text`:return lE.parse(e);case`json_object`:return r.record(r.any(),r.any()).parse(e);case`json_list`:return r.array(r.any()).parse(e);case`json_list_string`:return r.array(r.string()).parse(e);default:throw Error(`Unknown format: ${t}`)}}catch(r){throw r instanceof n?Error(`Unable to parse value ${od(e)} into format ${t}: ${r.message}`):r}}function dE(e,t,n){let r={};for(let[i,a]of Object.entries(e.derivedInputFields)){let e=t.field_definitions[i]?.format||null,o=n[i]??null;if(LT(o))o.resolved_by?.ref===`input`?r[i]={value:o.value,type:a.type,claimed_by:{ref:`input`,config_hash:null},resolved_by:o.value==null?null:{ref:`input`,config_hash:null,input_hash:null,environment:o.resolved_by.environment||null},reason:null,status:o.value===null?`pending`:`completed`,widgets:o.widgets||{},format:o.format||e}:r[i]={value:o.value,type:a.type,claimed_by:o.claimed_by||{ref:`input`,config_hash:null},resolved_by:o.resolved_by?o.resolved_by:o.value==null?null:{ref:`input`,config_hash:null,input_hash:null,environment:null},reason:o.reason||null,status:o.status,widgets:o.widgets||{},format:o.format||e};else if(o!=null)try{r[i]={value:uE(o,e),type:a.type,claimed_by:{ref:`input`,config_hash:null},resolved_by:{ref:`input`,config_hash:null,input_hash:null,environment:null},reason:null,status:`completed`,widgets:{},format:e}}catch{r[i]={value:o,type:a.type,claimed_by:{ref:`input`,config_hash:null},resolved_by:{ref:`input`,config_hash:null,input_hash:null,environment:null},reason:{code:`InvalidValue`,summary:`Invalid`,message:`This field expects a value of format ${e}.`},status:`failed`,widgets:{},format:e}}else r[i]={type:a.type,value:o,claimed_by:{ref:`input`,config_hash:null},resolved_by:{ref:null,config_hash:null,input_hash:null,environment:null},reason:null,status:`pending`,widgets:{},format:e}}return r}function fE(e,t,n){for(let r=0;r<t.length;r++){let i=t[r];i.id||=crypto.randomUUID();let{id:a}=i;if(typeof a!=`string`&&typeof a!=`number`){n.errors.push(Z.InvalidId());continue}if(n.records[a]){n.errors.push(Z.IDConflict({index:r,id:a}));continue}n.order.push(a),n.records[a]={id:a,fields:dE(e,n,i)}}}function pE({context:e,input:t,config:n={}}){let r={field_definitions:e.fieldDefinitions,order:[],errors:[],records:{},queued_record_ids:new Set,adopted_record_ids:new Set};try{fE(e,t,r);let{queuedRecordIdSet:i,adoptedRecordIdSet:a}=mE(e,t,r,n);if(r.queued_record_ids=i,r.adopted_record_ids=a,hE(e,r,n?.queue?.enabled),xE(e,r),r.errors.length>0)throw new Q(r.errors);return r}catch(e){throw e instanceof Q?e:new Q([Z.ResponseGenerationFailed({error:e})])}}function mE(e,t,n,r){let i=[],a=[];for(let o=0;o<e.orderedPipePayloads.length;o++){let s=e.orderedPipePayloads[o],c=e.orderedPipeInstances[o];if(!c){n.errors.push(Z.UnknownResolver({pipeId:s.pipe_id,index:o}));continue}let{queuedRecordIds:l,adoptedRecordIds:u}=bE(e,t,c,n,r);i=i.concat(l),a=a.concat(u)}return{queuedRecordIdSet:new Set(i),adoptedRecordIdSet:new Set(a)}}function hE(e,t,n){if(!n)return;let r=(t,n,r,i)=>{Object.values(t.getOutputFields()).forEach(a=>{let o=i.fields[a.resolvedName];if(!o)throw Error(`Internal: Output field ${ig(a)} not found`);o.status===`queued`&&(o.status=`skipped`,o.resolved_by={ref:`system`,environment:e.environment,config_hash:t.getConfigHashKey(),input_hash:t.getInputHashKey(i)},o.value=null,o.reason={code:`InputError`,message:`Field ${ig(n)} is missing but required (${r.value?`the value is`:`it has status`}: '${r.value?r.value:r.status}').`,summary:`Missing input`})})};for(let n=0;n<e.orderedPipePayloads.length;n++){let i=e.orderedPipePayloads[n],a=e.orderedPipeInstances[n];if(!a){t.errors.push(Z.UnknownResolver({pipeId:i.pipe_id,index:n}));continue}Object.values(t.records).forEach(e=>{let{valid:t,failedPipeInputField:n,failedRecordField:i}=Ia(a.getInputRequirement(),e);t===!1&&r(a,n,i,e)})}}function gE({inputHashKey:e,configHashKey:t,config:n,expandedValue:r}){return!!(n.queue?.triggers?.configHashMismatch&&n.queue.enabled&&r.resolved_by?.config_hash&&t&&r.resolved_by.config_hash!==t||n.queue?.triggers?.inputHashMismatch&&n.queue.enabled&&r.resolved_by?.input_hash&&e&&r.resolved_by.input_hash!==e)}function _E({status:e,config:t}){return t.queue?.enabled?!!(e===`failed`&&t.queue?.triggers?.fieldIsFailed||e===`no_result`&&t.queue?.triggers?.fieldIsNoResult):!1}function vE({inputHashKey:e,configHashKey:t,expandedValue:n,config:r}){return gE({inputHashKey:e,configHashKey:t,expandedValue:n,config:r})||_E({status:n.status,config:r})}function yE({inputHashKey:e,configHashKey:t,expandedValue:n}){let r=!1;return n.resolved_by?.config_hash&&t&&n.resolved_by.config_hash!==t&&(n.resolved_by.config_hash=t,r=!0),n.resolved_by?.input_hash&&e&&n.resolved_by.input_hash!==e&&(n.resolved_by.input_hash=e,r=!0),{didAdopt:r}}function bE(e,t,n,r,i){let a=Object.entries(r.records),o=[],s=[];for(let c=0;c<a.length;c++){let[l,u]=a[c];for(let a of Object.values(n.getOutputFields())){let{resolvedName:l,type:ee}=a,te=eh({pipes:e.orderedPipeInstances,derivedInputFields:e.derivedInputFields},ee),ne=th({pipes:e.orderedPipeInstances,derivedInputFields:e.derivedInputFields},a.format),{resolvedInputValue:d,isExpanded:re,expandedValue:f}=RT(t[c]?.[l]??null),ie=u.fields[l],p=n.getConfigHashKey(),ae=n.getInputHashKey(u),oe={type:te,format:ne,claimed_by:{ref:n.pipeId,config_hash:p}};if(r.errors.length>0&&d===null){u.fields[l]={...oe,value:null,status:`failed`,reason:{summary:`Validation error`,...r.errors[0]},claimed_by:{ref:d===void 0?n.pipeId:`input`,config_hash:d===void 0?p:null},resolved_by:{ref:`system`,environment:e.environment,config_hash:null,input_hash:null},widgets:{}};continue}let se=IT(d);if(se!==`unknown`&&se!==te){let t=i.queue?.triggers?.outputFieldTypeError&&i.queue.enabled;u.fields[l]={...oe,value:t?null:d,status:t?`queued`:`completed`,reason:null,resolved_by:t?{environment:e.environment,ref:`system`,config_hash:p,input_hash:ae}:{environment:e.environment,ref:`input`,config_hash:null,input_hash:null},widgets:t?{}:f?.widgets||ie?.widgets||{},format:t?ne:f?.format||ne};continue}if(d==null){let t=re&&i.queue?.enabled&&(f.status===`pending`||f.status===`skipped`),n=re&&!t;if(re&&i.adopt?.enabled===!0){let{didAdopt:e}=yE({inputHashKey:ae,configHashKey:p,expandedValue:f});e&&s.push(u.id)}if(re&&f.status!==`pending`&&vE({inputHashKey:ae,configHashKey:p,config:i,expandedValue:f})&&i.queue?.enabled)o.push(u.id),u.fields[l]={...oe,value:null,status:`queued`,reason:null,resolved_by:{environment:e.environment,ref:`system`,config_hash:p,input_hash:ae},widgets:{}};else if(n)u.fields[l]={...oe,value:null,status:f.status,type:f.type||te,reason:f.reason||null,resolved_by:f.resolved_by||null,widgets:f.widgets||{},format:f.format||ne};else{let t=i.queue?.enabled?`queued`:`pending`;t===`queued`&&o.push(u.id),u.fields[l]={...oe,value:null,status:t,reason:null,resolved_by:t===`queued`?{environment:e.environment,ref:`system`,config_hash:p,input_hash:ae}:null,widgets:{}}}continue}if(re){if(re&&i.adopt?.enabled===!0){let{didAdopt:e}=yE({inputHashKey:ae,configHashKey:p,expandedValue:f});e&&s.push(u.id)}vE({inputHashKey:ae,configHashKey:p,expandedValue:f,config:i})&&r.errors.length===0?(o.push(u.id),u.fields[l]={...oe,value:null,status:`queued`,reason:null,resolved_by:{environment:e.environment,ref:`system`,config_hash:null,input_hash:null},widgets:{}}):u.fields[l]={...oe,value:d,status:`completed`,type:f.type||te,reason:f.reason||null,resolved_by:f.resolved_by||{ref:`input`,config_hash:null,input_hash:null,environment:null},widgets:f.widgets||ie?.widgets||{},format:f.format||ne}}else try{let e=uE(d,ne);u.fields[l]={...oe,value:e,status:`completed`,reason:null,resolved_by:{ref:`input`,config_hash:null,input_hash:null,environment:null},widgets:ie?.widgets||{}}}catch{let t=i.queue?.enabled?`queued`:`failed`;t===`queued`&&o.push(u.id),u.fields[l]={...oe,value:d,status:t,reason:{code:`InvalidFormat`,message:`Field is of invalid format. Expected: ${a.format}`,summary:`Invalid Format`},resolved_by:{ref:`system`,environment:e.environment,config_hash:p,input_hash:ae},widgets:{}}}}}return{queuedRecordIds:o,adoptedRecordIds:s}}function xE(e,t){Object.values(t.records).forEach(n=>{Object.entries(n.fields).forEach(([n,r])=>{let i=e.resolvedFieldNames[n]||n;if(r.status===`completed`){let e=BT(i,r.value,r);r.widgets=_S(r.widgets||{},e)}t.errors.length>0&&(r.status===`pending`||r.status===`queued`)&&(r.status=`failed`)})})}function SE(e,t){let{expandAllStatuses:n=!1,expandStatuses:r=[]}=t||{},i={};for(let[t,a]of Object.entries(e))(r.includes(a.status)||n)&&t!==`id`?i[t]={...a}:i[t]=a.value;return i}function CE(e,t={}){return Object.values(e).map(e=>SE(e.fields,t))}function wE(e,t={}){return e.map(e=>SE(e.fields,t))}function TE(e,t={}){return SE(e.fields,t)}function EE(e,t){return e.map(e=>{let n={};return Object.entries(e).forEach(([e,r])=>{let{isExpanded:i,expandedValue:a,resolvedInputValue:o}=RT(r);i===!0&&a.status!=null&&t.unexpandStatuses.includes(a.status)?n[e]=o:n[e]=r}),n})}function DE(e){let t=_r[e];if(!t)throw Error(`Provider name '${e}' invalid`);return{...t,provider:e}}const OE=[`people:profiles:icypeas@1`,`companies:profiles:icypeas@1`,`people:profiles:clado@1`,`people:profiles:clado@2`,`people:employees:leadmagic@1`,`companies:profiles:exa@1`,`people:profiles:exa@1`,`companies:profiles:crustdata@1`,`people:profiles:crustdata@1`],kE=r.enum(OE);function AE(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 jE(e,t){let n={name:e,config:t};return Ba.hashObject(n)}var ME=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 jE(this.searchId,this.payload)}};function NE(e){return e.split(`@`)[0]}function PE(e){return`/docs/search-catalog/${NE(e)}/${e.split(`@`)[1]}`}const FE=`companies:profiles:crustdata@1`,IE=_(`company_name`),LE=_(`company_website_url`),RE=_(`company_description`),zE=_(`company_profile_url`),BE=_(`crustdata_company_match`),VE=r.object({search_id:r.literal(FE),connector:v.nullable().optional(),config:r.object({limit:L({sectionKey:`general`,required:!0,path:`config.limit`,max:1e3,min:1,groupPath:`config.general`,description:``,label:`Limit number of search results`}).default(100),cursor:Ta({sectionKey:`general`,path:`config.cursor`,groupPath:`config.general`,inputType:`text`,description:``,label:`Continue previous search from cursor`}),output_fields:R(r.object({[IE.name]:N({fieldName:IE.name}),[LE.name]:N({fieldName:IE.name}),[RE.name]:N({fieldName:RE.name}),[zE.name]:N({fieldName:zE.name}),[BE.name]:N({fieldName:BE.name})})),filters:r.object({hq_locations:F({path:`config.filters.hq_locations`,sectionKey:`config.filters`,label:`HQ locations`,description:``,disableSearch:!1,required:!1,groupPath:`config.filters.location`,optionsDef:g(`locations`)}),crunchbase_categories:F({path:`config.filters.crunchbase_categories`,sectionKey:`config.filters`,label:`Crunchbase categories`,description:``,disableSearch:!1,required:!1,groupPath:`config.filters.categories`,optionsDef:g(`company.crunchbase_categories.crustdata`)}),crunchbase_investors:F({path:`config.filters.crunchbase_investors`,sectionKey:`config.filters`,label:`Investors to include (Crunchbase)`,description:``,disableSearch:!1,required:!1,groupPath:`config.filters.investors`,optionsDef:g(`company.crunchbase_investors.crustdata`)}),tracxn_investors:F({path:`config.filters.tracxn_investors`,sectionKey:`config.filters`,label:`Investors to include (Tracxn)`,description:``,required:!1,groupPath:`config.filters.investors`,disableSearch:!1,optionsDef:g(`company.tracxn_investors.crustdata`)}),company_types:P({sectionKey:`config.filters`,path:`config.filters.company_types`,options:m(`crustdata.company_types`),label:`Company types`,description:``,required:!1,disableSearch:!0,groupPath:`config.filters.categories`}),linkedin_industries:F({sectionKey:`config.filters`,path:`config.filters.linkedin_industries`,optionsDef:g(`linkedin_industries.crustdata`),label:`Industries`,disableSearch:!1,required:!1,description:``,groupPath:`config.filters.industry`}),markets:F({sectionKey:`config.filters`,path:`config.filters.markets`,optionsDef:g(`company.markets.crustdata`),label:`Markets`,disableSearch:!1,required:!1,description:``,groupPath:`config.filters.industry`}),linkedin_categories:F({sectionKey:`config.filters`,path:`config.filters.linkedin_categories`,optionsDef:g(`company.linkedin_categories.crustdata`),label:`Company types`,description:``,required:!1,disableSearch:!0,groupPath:`config.filters.categories`}),headcount:P({path:`config.filters.headcount`,sectionKey:`config.filters`,label:`Headcount`,description:``,disableSearch:!0,required:!1,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`),disableSearch:!0,required:!1,groupPath:`config.filters.company_size`}),revenue_in_usd:xa({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:P({path:`config.filters.last_funding_type`,sectionKey:`config.filters`,label:`Last funding type`,disableSearch:!0,required:!1,options:m(`crustdata.funding_rounds`),description:``,groupPath:`config.filters.financials`}),last_funding_amount:xa({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`,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`,disableSearch:!0,description:``,required:!1,options:m(`crustdata.follower_growth`),groupPath:`config.filters.web_presence`}),profile_summary_keywords:A({path:`config.filters.profile_summary_keywords`,sectionKey:`config.filters`,maxItems:50,label:`LinkedIn company description contains`,description:``,groupPath:`config.filters.keywords`}),competitor_websites:A({path:`config.filters.competitor_websites`,sectionKey:`config.filters`,maxItems:50,label:`Competitor domains`,description:`Ex. 'google.com'`,groupPath:`config.filters.competitors`})}).check(e=>{AE(e.value)&&e.issues.push({code:`custom`,message:`You must set at least one filter.`,input:e.value})})})}),HE={default:{input:[{fields:[]}]}},UE=class extends ME{searchId=FE;schema=VE;payload;constructor(e){super(),this.payload=this.validatePayload(e)}getRawOutputFields(){return{[IE.name]:this.catalogOutput(IE),[LE.name]:this.catalogOutput(LE),[RE.name]:this.catalogOutput(RE),[zE.name]:this.catalogOutput(zE),[BE.name]:this.catalogOutput(BE)}}getConnectionsRequirements(){return[{provider:`crustdata`,rateLimitOperation:`crustdata_company_db_search`,rateLimitRatio:1,allowManagedConnection:!0}]}getDedupConfig(){return HE}},WE=VE,GE={searchId:FE,billableOperation:`companies-profiles-crustdata`,baseSearch:NE(`companies:profiles:crustdata@1`),label:`Company search`,categories:[`companies`],hasManagedConnection:!0,allowsUserConnection:!0,lifecycle:null,description:`Filter based company search.`,tags:[B.COMPANY_PROFILES],docPath:PE(FE),cost:{mode:`per_page`,creditsPerPage:2},provider:`crustdata`,defaultPayload:{search_id:FE,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:[],headcount_growth_last_6m_in_percent:[],last_funding_amount:{from:null,to:null},last_funding_type:[],linkedin_industries:[],linkedin_categories:[],crunchbase_categories:[],markets:[],revenue_in_usd:{from:null,to:null},crunchbase_investors:[],tracxn_investors:[],follower_growth_last_6m_in_percent:[],headcount:[],hq_locations:[],number_of_followers:[],profile_summary_keywords:[],competitor_websites:[]}}}},KE=`companies:profiles:exa@1`,qE=_(`company_name`),JE=_(`company_website_url`),YE=_(`company_description`),XE=_(`company_industry`),ZE=_(`headcount`),QE=_(`exa_match_evaluation`),$E=r.object({search_id:r.literal(KE),connector:v.nullable().optional(),config:r.object({limit:L({sectionKey:`general`,required:!0,path:`config.limit`,max:100,min:1,groupPath:`config.general`,description:``,label:`Limit number of search results`}).default(10),output_fields:R(r.object({[qE.name]:N({fieldName:qE.name}),[JE.name]:N({fieldName:qE.name}),[YE.name]:N({fieldName:YE.name}),[XE.name]:N({fieldName:XE.name}),[ZE.name]:N({fieldName:ZE.name}),[QE.name]:N({fieldName:QE.name})})),filters:r.object({query:Ea({sectionKey:`config.filters`,path:`config.filters.query`,placeholder:`e.g. Top AI research labs focusing on large language models`,groupPath:`config.filters.query`,rows:5,label:`Search description in natural language`,minLength:10,maxLength:2e4})})})}),eD={default:{input:[{fields:[]}]}},tD=class extends ME{searchId=KE;schema=$E;payload;constructor(e){super(),this.payload=this.validatePayload(e)}getRawOutputFields(){return{[qE.name]:this.catalogOutput(qE),[JE.name]:this.catalogOutput(JE),[YE.name]:this.catalogOutput(YE),[XE.name]:this.catalogOutput(XE),[ZE.name]:this.catalogOutput(ZE),[QE.name]:this.catalogOutput(QE)}}getConnectionsRequirements(){return[{provider:`exa`,rateLimitOperation:`exa_websets`,rateLimitRatio:1,allowManagedConnection:!0}]}getDedupConfig(){return eD}},nD=$E,rD={searchId:KE,billableOperation:`companies-profiles-exa`,baseSearch:NE(`companies:profiles:exa@1`),label:`Company finder (websets)`,categories:[`companies`],hasManagedConnection:!0,allowsUserConnection:!0,lifecycle:null,description:`Semantic AI search to find company profiles. This search can take several minutes.`,tags:[B.COMPANY_PROFILES],docPath:PE(KE),cost:{mode:`per_result`,creditsPerResult:2},provider:`exa`,defaultPayload:{search_id:KE,connector:null,config:{limit:10,output_fields:{company_name:{enabled:!0,alias:``},company_website_url:{enabled:!0,alias:``},company_industry:{enabled:!0,alias:``},company_description:{enabled:!0,alias:``},headcount:{enabled:!0,alias:``},exa_match_evaluation:{enabled:!1,alias:``}},filters:{query:``}}}},iD=`companies:profiles:icypeas@1`,aD=_(`company_industry`),oD=_(`company_name`),sD=_(`company_description`),cD=_(`company_website_url`),lD=_(`headcount`),uD=_(`company_region`),dD=_(`company_profile_url`),fD=_(`icypeas_company_match`),pD=r.object({search_id:r.literal(iD),connector:v.nullable().optional(),config:r.object({limit:L({sectionKey:`general`,max:5e4,min:1,path:`config.limit`,required:!0,groupPath:`config.general`,description:``,label:`Limit number of search results`}).default(100),output_fields:R(r.object({company_name:N({fieldName:oD.name}),company_industry:N({fieldName:aD.name}),company_description:N({fieldName:sD.name}),company_website_url:N({fieldName:cD.name}),headcount:N({fieldName:lD.name}),company_region:N({fieldName:uD.name}),company_profile_url:N({fieldName:dD.name}),icypeas_company_match:N({fieldName:fD.name})})),filters:r.object({name:j({path:`config.filters.name`,sectionKey:`config.filters`,includeLabel:`Company names to include`,excludeLabel:`Company names to exclude`,description:``,placeholder:``,groupPath:`config.filters.company_information`,maxItems:100}).optional(),type:M({path:`config.filters.type`,sectionKey:`config.filters`,label:``,description:``,placeholder:``,includeLabel:`Company types to include`,excludeLabel:`Company types to exclude`,optionsDef:{type:`static`,options:[{value:`Privately Held`,label:`Privately Held`},{value:`Public Company`,label:`Public Company`},{value:`Sole Proprietorship`,label:`Sole Proprietorship`},{value:`Self-Employed`,label:`Self-Employed`},{value:`Partnership`,label:`Partnership`},{value:`Nonprofit`,label:`Nonprofit`},{value:`Educational Institution`,label:`Educational Institution`},{value:`Government Agency`,label:`Government Agency`}]},groupPath:`config.filters.company_information`}).optional(),industry:M({path:`config.filters.industry`,sectionKey:`config.filters`,optionsDef:h(`linkedin.industries`),includeLabel:`Industries to include`,excludeLabel:`Industries to exclude`,description:``,placeholder:``,groupPath:`config.filters.industry`,maxItems:50}).optional(),location:j({path:`config.filters.location`,sectionKey:`config.filters`,includeLabel:`Locations to include`,excludeLabel:`Locations to exclude`,description:``,placeholder:`US, FR, New York`,groupPath:`config.filters.geografic`,maxItems:20}).optional(),headcount:xa({path:`config.filters.headcount`,sectionKey:`config.filters`,legend:`1-1M`,label:`Headcount`,description:``,min:1,max:1e6,unit:`employees`,groupPath:`config.filters.company_size`}).optional(),urn:j({path:`config.filters.urn`,sectionKey:`config.filters`,label:``,description:``,groupPath:`config.filters.linkedin`,excludeLabel:`URNs to exclude`,includeLabel:`URNs to include`,maxItems:200}).optional(),lid:j({path:`config.filters.lid`,sectionKey:`config.filters`,label:``,description:``,groupPath:`config.filters.linkedin`,includeLabel:`LinkedIn IDs to include`,excludeLabel:`LinkedIn IDs to exclude`,maxItems:200}).optional()}).check(e=>{AE(e.value)&&e.issues.push({code:`custom`,message:`You must set at least one filter.`,input:e.value})})})}),mD={default:{input:[{fields:[{outputField:`company_profile_url`}]}]}},hD=class extends ME{searchId=iD;schema=pD;payload;constructor(e){super(),this.payload=this.validatePayload(e)}getRawOutputFields(){return{[oD.name]:this.catalogOutput(oD),[aD.name]:this.catalogOutput(aD),[dD.name]:this.catalogOutput(dD),[cD.name]:this.catalogOutput(cD),[sD.name]:this.catalogOutput(sD),[lD.name]:this.catalogOutput(lD),[uD.name]:this.catalogOutput(uD),[fD.name]:this.catalogOutput(fD)}}getConnectionsRequirements(){return[{provider:`icypeas`,rateLimitOperation:`icypeas_company_database`,rateLimitRatio:1,allowManagedConnection:!0}]}getDedupConfig(){return mD}},gD=pD,_D={searchId:iD,billableOperation:`companies-profiles-icypeas`,baseSearch:NE(`companies:profiles:icypeas@1`),label:`Find company profiles`,categories:[`companies`],hasManagedConnection:!0,allowsUserConnection:!0,lifecycle:null,description:`Search a filter-based, general-purpose company database.`,tags:[B.COMPANY_PROFILES],docPath:PE(iD),cost:{mode:`per_result`,creditsPerResult:.4},provider:`icypeas`,defaultPayload:{search_id:iD,connector:null,config:{limit:100,output_fields:{company_name:{alias:``,enabled:!0},icypeas_company_match:{alias:``,enabled:!0},company_website_url:{alias:``,enabled:!0},company_description:{alias:``,enabled:!0},company_industry:{alias:``,enabled:!0},company_profile_url:{alias:``,enabled:!0},headcount:{alias:``,enabled:!0},company_region:{alias:``,enabled:!0}},filters:{name:{include:[],exclude:[]},type:{include:[],exclude:[]},industry:{include:[],exclude:[]},location:{include:[],exclude:[]},headcount:{},urn:{include:[],exclude:[]},lid:{include:[],exclude:[]}}}}},vD=`people:profiles:clado@1`,yD=_(`name`),bD=_(`job_title`),xD=_(`company_name`),SD=_(`company_profile_url`),CD=_(`profile_url`),wD=_(`clado_person_match`),TD=r.object({search_id:r.literal(vD),connector:v.nullable().optional(),config:r.object({limit:L({sectionKey:`general`,path:`config.limit`,required:!0,max:100,min:1,groupPath:`config.general`,description:``,label:`Limit number of search results`}).default(20),output_fields:R(r.object({[yD.name]:N({fieldName:yD.name}),[bD.name]:N({fieldName:bD.name}),[SD.name]:N({fieldName:SD.name}),[xD.name]:N({fieldName:xD.name}),[CD.name]:N({fieldName:CD.name}),[wD.name]:N({fieldName:wD.name})})),filters:r.object({query:Ea({path:`config.filters.query`,sectionKey:`config.filters`,placeholder:`e.g. Software engineers in San Francisco`,groupPath:`config.filters.query`,rows:5,label:`Search description in natural language`,minLength:10,maxLength:2e4})})})}),ED={default:{input:[{fields:[{outputField:`profile_url`}]}]}},DD=class extends ME{searchId=vD;schema=TD;payload;constructor(e){super(),this.payload=this.validatePayload(e)}getRawOutputFields(){return{[yD.name]:this.catalogOutput(yD),[bD.name]:this.catalogOutput(bD),[xD.name]:this.catalogOutput(xD),[CD.name]:this.catalogOutput(CD),[SD.name]:this.catalogOutput(SD),[wD.name]:this.catalogOutput(wD)}}getConnectionsRequirements(){return[{provider:`clado`,rateLimitOperation:`clado_search_people`,rateLimitRatio:1,allowManagedConnection:!0}]}getDedupConfig(){return ED}},OD=TD,kD={searchId:vD,billableOperation:`people-profiles-clado`,baseSearch:Rt(`people:profiles:clado@1`),label:`Find people profiles with Clado`,categories:[`people`],hasManagedConnection:!0,allowsUserConnection:!0,lifecycle:{deprecatedOn:`2026-06-13`,replacedBy:`people:profiles:clado@2`},description:`Search through millions of LinkedIn profiles using natural language queries. This endpoint provides fast searching with AI-powered relevance matching.`,tags:[B.PEOPLE_PROFILES],docPath:`/resources/search-catalog/people:profiles:clado/1`,cost:{mode:`per_search`,creditsPerSearch:3},provider:`clado`,defaultPayload:{search_id:vD,connector:null,config:{limit:20,output_fields:{company_name:{enabled:!0,alias:``},company_profile_url:{enabled:!0,alias:``},job_title:{enabled:!0,alias:``},name:{enabled:!0,alias:``},profile_url:{enabled:!0,alias:``},clado_person_match:{enabled:!0,alias:``}},filters:{query:``}}}},AD=`people:profiles:clado@2`,jD=_(`name`),MD=_(`job_title`),ND=_(`company_name`),PD=_(`company_profile_url`),FD=_(`profile_url`),ID=_(`clado_person_match_v2`),LD=r.object({search_id:r.literal(AD),connector:v.nullable().optional(),config:r.object({limit:L({sectionKey:`general`,path:`config.limit`,required:!0,max:1e4,min:1,groupPath:`config.general`,description:``,label:`Limit number of search results`}).default(100),search_id:Ta({sectionKey:`general`,path:`config.search_id`,inputType:`text`,groupPath:`config.continue_existing_search`,label:`Search id`,description:`The id of the search you want to continue`}).default(``),offset:L({sectionKey:`general`,path:`config.offset`,required:!1,groupPath:`config.continue_existing_search`,label:`Offset`,max:1e5,min:1,description:`To continue the previous search, provide both the search_id and the last offset.`}),output_fields:R(r.object({[jD.name]:N({fieldName:jD.name}),[MD.name]:N({fieldName:MD.name}),[PD.name]:N({fieldName:PD.name}),[ND.name]:N({fieldName:ND.name}),[FD.name]:N({fieldName:FD.name}),[ID.name]:N({fieldName:ID.name})})),filters:r.object({query:Ea({path:`config.filters.query`,sectionKey:`config.filters`,placeholder:`e.g. Software engineers in San Francisco`,groupPath:`config.filters.query`,rows:5,label:`Search description in natural language`,minLength:0,maxLength:2e4}).default(``)}).optional()})}).check(e=>{let t=!!e.value.config.filters?.query,n=!!e.value.config.search_id&&!!e.value.config.offset;!t&&!n&&e.issues.push({code:`custom`,input:``,message:`Must define either 'query' or both 'searchId' AND 'offset'.`,path:[`config.filters.query`]})}),RD={default:{input:[{fields:[{outputField:`profile_url`}]}]}},zD=class extends ME{searchId=AD;schema=LD;payload;constructor(e){super(),this.payload=this.validatePayload(e)}getRawOutputFields(){return{[jD.name]:this.catalogOutput(jD),[MD.name]:this.catalogOutput(MD),[ND.name]:this.catalogOutput(ND),[FD.name]:this.catalogOutput(FD),[PD.name]:this.catalogOutput(PD),[ID.name]:this.catalogOutput(ID)}}getConnectionsRequirements(){return[{provider:`clado`,rateLimitOperation:`clado_search_people`,rateLimitRatio:1,allowManagedConnection:!0}]}getDedupConfig(){return RD}},BD=LD,VD={searchId:AD,billableOperation:`people-profiles-clado`,baseSearch:Rt(`people:profiles:clado@2`),label:`Find people profiles`,categories:[`deprecated`],hasManagedConnection:!0,allowsUserConnection:!0,lifecycle:{deprecatedOn:`2026-06-13`,replacedBy:`people:profiles:clado@2`},description:`Search a growing dataset with semantic queries.`,tags:[],docPath:`/resources/search-catalog/people:profiles:clado/1`,cost:{mode:`per_page`,creditsPerPage:3},provider:`clado`,defaultPayload:{search_id:AD,connector:null,config:{limit:100,search_id:``,offset:void 0,output_fields:{company_name:{enabled:!0,alias:``},company_profile_url:{enabled:!0,alias:``},job_title:{enabled:!0,alias:``},name:{enabled:!0,alias:``},profile_url:{enabled:!0,alias:``},clado_person_match_v2:{enabled:!0,alias:``}},filters:{query:``}}}},HD=`people:employees:leadmagic@1`,UD=_(`name`),WD=_(`job_title`),GD=_(`company_website_url`),KD=_(`company_name`),qD=r.object({search_id:r.literal(HD),connector:v.nullable().optional(),config:r.object({limit:L({sectionKey:`general`,max:500,min:1,required:!0,path:`config.limit`,groupPath:`config.general`,description:``,label:`Limit number of search results`}).default(50),output_fields:R(r.object({[UD.name]:N({fieldName:UD.name}),[KD.name]:N({fieldName:KD.name}),[GD.name]:N({fieldName:GD.name}),[WD.name]:N({fieldName:WD.name})})),filters:r.object({company_website_url:Ta({path:`config.filters.company_website_url`,sectionKey:`config.filters`,groupPath:`config.filters.website`,inputType:`text`,description:`URL of the employer company.`,label:`Company Website URL`})})})}),JD={default:{input:[{fields:[{outputField:GD.name}]}]}},YD=class extends ME{searchId=HD;schema=qD;payload;constructor(e){super(),this.payload=this.validatePayload(e)}getRawOutputFields(){return{[UD.name]:this.catalogOutput(UD),[WD.name]:this.catalogOutput(WD),[GD.name]:this.catalogOutput(GD),[KD.name]:this.catalogOutput(KD)}}getConnectionsRequirements(){return[{provider:`leadmagic`,rateLimitOperation:`leadmagic_employee_finder`,rateLimitRatio:1,allowManagedConnection:!0}]}getDedupConfig(){return JD}},XD=qD,ZD={searchId:HD,billableOperation:`people-employees-leadmagic`,baseSearch:NE(`people:employees:leadmagic@1`),label:`Employee finder`,categories:[`people`],hasManagedConnection:!0,allowsUserConnection:!0,lifecycle:null,description:`Search for employees of a company.`,tags:[B.PEOPLE_PROFILES],docPath:PE(HD),cost:{mode:`per_result`,creditsPerResult:.05},provider:`leadmagic`,defaultPayload:{search_id:HD,connector:null,config:{limit:50,output_fields:{name:{alias:``,enabled:!0},job_title:{alias:``,enabled:!0},company_website_url:{alias:``,enabled:!0},company_name:{alias:``,enabled:!0}},filters:{company_website_url:``}}}},QD=`people:profiles:crustdata@1`,$D=_(`name`),eO=_(`company_website_url`),tO=_(`profile_url`),nO=_(`job_title`),rO=_(`crustdata_person_match`),iO=r.object({search_id:r.literal(QD),connector:v.nullable().optional(),config:r.object({limit:L({sectionKey:`general`,required:!0,path:`config.limit`,max:1e3,min:1,groupPath:`config.general`,description:``,label:`Limit number of results`}).default(100),cursor:Ta({sectionKey:`general`,path:`config.cursor`,groupPath:`config.general`,inputType:`text`,description:``,label:`Continue previous search from cursor`}),output_fields:R(r.object({[$D.name]:N({fieldName:$D.name}),[eO.name]:N({fieldName:eO.name}),[tO.name]:N({fieldName:tO.name}),[nO.name]:N({fieldName:nO.name}),[rO.name]:N({fieldName:rO.name})})),filters:r.object({locations:F({path:`config.filters.locations`,sectionKey:`config.filters`,label:`Locations`,disableSearch:!1,required:!1,optionsDef:g(`locations`),groupPath:`config.filters.general`}),profile_headline_keywords:va({path:`config.filters.profile_headline_keywords`,sectionKey:`config.filters`,label:`Headline contains keywords`,maxItems:100,groupPath:`config.filters.keywords`}),profile_summary_keywords:va({path:`config.filters.profile_summary_keywords`,sectionKey:`config.filters`,label:`Profile about section contains keywords`,maxItems:100,groupPath:`config.filters.keywords`}),profile_languages:P({path:`config.filters.profile_languages`,sectionKey:`config.filters`,label:`Profile languages`,disableSearch:!1,required:!1,options:m(`crustdata.person_profile_languages`),groupPath:`config.filters.profile`}),languages:P({path:`config.filters.languages`,sectionKey:`config.filters`,label:`Spoken languages`,disableSearch:!1,required:!1,options:m(`crustdata.person_profile_languages`),groupPath:`config.filters.profile`}),skills:F({path:`config.filters.skills`,sectionKey:`config.filters`,label:`Skills`,placeholder:`.NET, PMO, ...`,disableSearch:!1,required:!1,description:``,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`,optionsDef:h(`crustdata.person_seniority`),description:``,groupPath:`config.filters.experience`}),current_employers:A({path:`config.filters.current_employers`,sectionKey:`config.filters`,label:`Current employers`,description:``,maxItems:200,groupPath:`config.filters.experience`,suggestionsDef:g(`person.current_employer_names.crustdata`)}),current_employers_website_urls:A({path:`config.filters.current_employers_website_urls`,sectionKey:`config.filters`,label:`Current employer domains`,description:``,maxItems:200,groupPath:`config.filters.experience`}),current_job_titles:A({path:`config.filters.current_job_titles`,sectionKey:`config.filters`,label:`Current job titles`,description:``,order:1,groupPath:`config.filters.experience`,suggestionsDef:g(`titles`)}),current_employers_linkedin_industries:F({path:`config.filters.current_employers_linkedin_industries`,sectionKey:`config.filters`,label:`Current employers industries`,disableSearch:!1,required:!1,groupPath:`config.filters.experience`,description:``,optionsDef:g(`linkedin_industries.crustdata`)}),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.experience`,description:``,options:m(`crustdata.years_of_experience`)}),previous_employers_website_urls:A({path:`config.filters.previous_employers_website_urls`,sectionKey:`config.filters`,label:`Previous employer domains`,description:``,maxItems:200,groupPath:`config.filters.experience`}),previous_seniority_levels:M({path:`config.filters.previous_seniority_levels`,sectionKey:`config.filters`,label:`Previous seniority`,disableSearch:!0,optionsDef:h(`crustdata.person_seniority`),description:``,groupPath:`config.filters.experience`}),previous_employers:A({path:`config.filters.previous_employers`,sectionKey:`config.filters`,label:`Previous employer name`,description:``,maxItems:200,groupPath:`config.filters.experience`,suggestionsDef:g(`person.past_employer_names.crustdata`)}),previous_job_titles:A({path:`config.filters.previous_job_titles`,sectionKey:`config.filters`,label:`Current job titles`,description:``,groupPath:`config.filters.experience`,suggestionsDef:g(`titles`)}),previous_employers_linkedin_industries:F({path:`config.filters.previous_employers_linkedin_industries`,sectionKey:`config.filters`,label:`Previous employer industry`,disableSearch:!1,required:!1,groupPath:`config.filters.experience`,description:``,optionsDef:g(`linkedin_industries.crustdata`)}),certifications:A({path:`config.filters.certifications`,sectionKey:`config.filters`,label:`Certifications`,groupPath:`config.filters.certifications_honors`,description:``}),honors:A({path:`config.filters.honors`,sectionKey:`config.filters`,label:`Honors`,groupPath:`config.filters.certifications_honors`,description:``}),recently_changed_jobs:wa({path:`config.filters.recently_changed_jobs`,sectionKey:`config.filters`,label:`Recently changed jobs`,description:``,defaultValue:null,groupPath:`config.filters.activities`}),fields_of_study:F({path:`config.filters.fields_of_study`,sectionKey:`config.filters`,label:`Fields of study`,description:``,disableSearch:!1,required:!1,groupPath:`config.filters.education`,optionsDef:g(`person.education_field_of_study.crustdata`)}),degree_names:F({path:`config.filters.degree_names`,sectionKey:`config.filters`,label:`Degree names`,description:``,disableSearch:!1,required:!1,groupPath:`config.filters.education`,optionsDef:g(`person.education_degree.crustdata`)}),school_names:F({path:`config.filters.school_names`,sectionKey:`config.filters`,label:`School names`,description:``,disableSearch:!1,required:!1,groupPath:`config.filters.education`,optionsDef:g(`schools`)}),current_school_names:F({path:`config.filters.current_school_names`,sectionKey:`config.filters`,label:`Currently enrolled at`,description:``,disableSearch:!1,required:!1,groupPath:`config.filters.education`,optionsDef:g(`schools`)}),extracurricular_activities:A({path:`config.filters.extracurricular_activities`,sectionKey:`config.filters`,label:`Extracurricular activities`,description:``,groupPath:`config.filters.education`,suggestionsDef:g(`person.education_activities.crustdata`)})}).check(e=>{AE(e.value)&&e.issues.push({code:`custom`,message:`You must set at least one filter.`,input:e.value})})})}),aO={default:{input:[{fields:[]}]}},oO=class extends ME{searchId=QD;schema=iO;payload;constructor(e){super(),this.payload=this.validatePayload(e)}getRawOutputFields(){return{[$D.name]:this.catalogOutput($D),[eO.name]:this.catalogOutput(eO),[tO.name]:this.catalogOutput(tO),[nO.name]:this.catalogOutput(nO),[rO.name]:this.catalogOutput(rO)}}getConnectionsRequirements(){return[{provider:`crustdata`,rateLimitOperation:`crustdata_people_db_search`,rateLimitRatio:1,allowManagedConnection:!0}]}getDedupConfig(){return aO}},sO=iO,cO={searchId:QD,billableOperation:`people-profiles-crustdata`,baseSearch:NE(`people:profiles:crustdata@1`),label:`People search`,categories:[`people`],hasManagedConnection:!0,allowsUserConnection:!0,lifecycle:null,description:`Filter-based people search.`,tags:[B.PEOPLE_PROFILES],docPath:PE(QD),cost:{mode:`per_page`,creditsPerPage:5},provider:`crustdata`,defaultPayload:{search_id:QD,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:[],languages:[],profile_summary_keywords:[],previous_job_titles:[],current_employers:[],current_school_names:[],years_at_current_company:[],certifications:[],honors:[],current_employers_linkedin_industries:[],current_employers_website_urls:[],previous_employers_website_urls:[],current_seniority_levels:{include:[],exclude:[]},previous_seniority_levels:{include:[],exclude:[]},degree_names:[],locations:[],profile_languages:[],recently_changed_jobs:null,extracurricular_activities:[],school_names:[],fields_of_study:[],previous_employers:[],current_job_titles:[],skills:[],years_of_experience:[],previous_employers_linkedin_industries:[]}}}},lO=`people:profiles:exa@1`,uO=_(`name`),dO=_(`profile_url`),fO=_(`job_title`),pO=_(`company_name`),mO=_(`company_region`),hO=_(`exa_match_evaluation`),gO=r.object({search_id:r.literal(lO),connector:v.nullable().optional(),config:r.object({limit:L({path:`config.limit`,sectionKey:`general`,required:!0,max:100,min:1,groupPath:`config.general`,description:``,label:`Limit number of search results`}).default(10),output_fields:R(r.object({[uO.name]:N({fieldName:uO.name}),[dO.name]:N({fieldName:dO.name}),[fO.name]:N({fieldName:fO.name}),[pO.name]:N({fieldName:pO.name}),[mO.name]:N({fieldName:mO.name}),[hO.name]:N({fieldName:hO.name})})),filters:r.object({query:Ea({path:`config.filters.query`,sectionKey:`config.filters`,placeholder:`e.g. Software engineers in San Francisco`,groupPath:`config.filters.query`,rows:5,label:`Search description in natural language`,minLength:10,maxLength:2e4})})})}),_O={default:{input:[{fields:[]}]}},vO=class extends ME{searchId=lO;schema=gO;payload;constructor(e){super(),this.payload=this.validatePayload(e)}getRawOutputFields(){return{[uO.name]:this.catalogOutput(uO),[dO.name]:this.catalogOutput(dO),[fO.name]:this.catalogOutput(fO),[pO.name]:this.catalogOutput(pO),[mO.name]:this.catalogOutput(mO),[hO.name]:this.catalogOutput(hO)}}getConnectionsRequirements(){return[{provider:`exa`,rateLimitOperation:`exa_websets`,rateLimitRatio:1,allowManagedConnection:!0}]}getDedupConfig(){return _O}},yO=gO,bO={searchId:lO,billableOperation:`people-profiles-exa`,baseSearch:NE(`people:profiles:exa@1`),label:`People finder (websets)`,categories:[`people`],hasManagedConnection:!0,allowsUserConnection:!0,lifecycle:null,description:`Semantic AI search for people profiles. This search can take several minutes.`,tags:[B.COMPANY_PROFILES],docPath:PE(lO),cost:{mode:`per_result`,creditsPerResult:2},provider:`exa`,defaultPayload:{search_id:lO,connector:null,config:{limit:10,output_fields:{name:{enabled:!0,alias:``},profile_url:{enabled:!0,alias:``},job_title:{enabled:!0,alias:``},company_name:{enabled:!0,alias:``},company_region:{enabled:!0,alias:``},exa_match_evaluation:{enabled:!1,alias:``}},filters:{query:``}}}},xO=`people:profiles:icypeas@1`,SO=_(`name`),CO=_(`job_title`),wO=_(`profile_headline`),TO=_(`company_website_url`),EO=_(`company_profile_url`),DO=_(`profile_url`),OO=_(`icypeas_person_match`),kO=r.object({search_id:r.literal(xO),connector:v.nullable().optional(),config:r.object({limit:L({path:`config.limit`,sectionKey:`general`,required:!0,max:5e4,min:1,groupPath:`config.general`,description:``,label:`Limit number of search results`}).default(100),output_fields:R(r.object({[SO.name]:N({fieldName:SO.name}),[CO.name]:N({fieldName:CO.name}),[wO.name]:N({fieldName:wO.name}),[TO.name]:N({fieldName:TO.name}),[EO.name]:N({fieldName:EO.name}),[DO.name]:N({fieldName:DO.name}),[OO.name]:N({fieldName:OO.name})})),filters:r.object({firstname:j({path:`config.filters.firstname`,sectionKey:`config.filters`,includeLabel:`First names to include`,excludeLabel:`First names to exclude`,description:``,placeholder:``,groupPath:`config.filters.personal_information`,maxItems:200}).optional(),lastname:j({path:`config.filters.lastname`,sectionKey:`config.filters`,includeLabel:`Last names to include`,excludeLabel:`Last names to exclude`,description:``,placeholder:``,groupPath:`config.filters.personal_information`,maxItems:200}).optional(),currentJobTitle:j({path:`config.filters.currentJobTitle`,sectionKey:`config.filters`,includeLabel:`Current job titles to include`,excludeLabel:`Current job titles to exclude`,description:``,placeholder:``,groupPath:`config.filters.job_information`,maxItems:200}).optional(),currentEmployersWebsiteUrls:j({groupPath:`config.filters.job_information`,path:`config.filters.currentEmployersWebsiteUrls`,sectionKey:`config.filters`,description:``,includeLabel:`Include current employer domains`,excludeLabel:`Exclude current employer domains`,maxItems:100}).optional(),pastEmployersWebsiteUrls:j({groupPath:`config.filters.job_information`,path:`config.filters.pastEmployersWebsiteUrls`,sectionKey:`config.filters`,description:``,includeLabel:`Past employers website URLs to include`,excludeLabel:`Past employers website URLs to exclude`,maxItems:100}).optional(),pastJobTitle:j({path:`config.filters.pastJobTitle`,sectionKey:`config.filters`,includeLabel:`Past job titles to include`,excludeLabel:`Past job titles to exclude`,description:``,placeholder:``,groupPath:`config.filters.job_information`,maxItems:200}).optional(),currentCompanyName:j({path:`config.filters.currentCompanyName`,sectionKey:`config.filters`,includeLabel:`Companies to include`,excludeLabel:`Companies to exclude`,description:``,placeholder:``,groupPath:`config.filters.company_information`,maxItems:200}).optional(),pastCompanyName:j({path:`config.filters.pastCompanyName`,sectionKey:`config.filters`,includeLabel:`Past employers to include`,excludeLabel:`Past employers to exclude`,description:``,placeholder:``,groupPath:`config.filters.company_information`,maxItems:200}).optional(),school:j({path:`config.filters.school`,sectionKey:`config.filters`,includeLabel:`Schools to include`,excludeLabel:`Schools to exclude`,label:``,description:``,placeholder:``,groupPath:`config.filters.education`,maxItems:200}).optional(),location:j({path:`config.filters.location`,sectionKey:`config.filters`,includeLabel:`Locations to include`,excludeLabel:`Locations to exclude`,description:`Filter by location`,placeholder:`e.g., US, FR, New York`,groupPath:`config.filters.geografic`,maxItems:200}).optional(),languages:j({path:`config.filters.languages`,sectionKey:`config.filters`,includeLabel:`Languages to include`,excludeLabel:`Languages to exclude`,description:`ex. EN, ES`,groupPath:`config.filters.languages`,maxItems:200}).optional(),skills:j({path:`config.filters.skills`,sectionKey:`config.filters`,includeLabel:`Skills to include`,excludeLabel:`Skills to exclude`,description:``,placeholder:``,groupPath:`config.filters.skills`,maxItems:200}).optional(),keyword:j({path:`config.filters.keyword`,sectionKey:`config.filters`,includeLabel:`Keywords to include`,excludeLabel:`Keywords to exclude`,description:``,placeholder:`CEO, Sales, Scrum`,groupPath:`config.filters.general_search`,maxItems:200}).optional()}).check(e=>{AE(e.value)&&e.issues.push({code:`custom`,message:`The filters object cannot be empty. You must set at least one filter.`,input:e.value})})})}),AO={default:{input:[{fields:[{outputField:`profile_url`}]}]}},jO=class extends ME{searchId=xO;schema=kO;payload;constructor(e){super(),this.payload=this.validatePayload(e)}getRawOutputFields(){return{[SO.name]:this.catalogOutput(SO),[CO.name]:this.catalogOutput(CO),[wO.name]:this.catalogOutput(wO),[TO.name]:this.catalogOutput(TO),[EO.name]:this.catalogOutput(EO),[DO.name]:this.catalogOutput(DO),[OO.name]:this.catalogOutput(OO)}}getConnectionsRequirements(){return[{provider:`icypeas`,rateLimitOperation:`icypeas_lead_database`,rateLimitRatio:1,allowManagedConnection:!0}]}getDedupConfig(){return AO}},MO=kO,NO={searchId:xO,billableOperation:`people-profiles-icypeas`,provider:`icypeas`,baseSearch:NE(xO),label:`Find people profiles`,categories:[`people`],hasManagedConnection:!0,allowsUserConnection:!0,lifecycle:null,description:`Search a filter-based, general-purpose lead database with people profiles.`,tags:[B.PEOPLE_PROFILES],docPath:PE(xO),cost:{mode:`per_result`,creditsPerResult:.4},defaultPayload:{search_id:xO,connector:null,config:{limit:100,output_fields:{company_profile_url:{enabled:!0,alias:``},company_website_url:{enabled:!0,alias:``},job_title:{enabled:!0,alias:``},name:{enabled:!0,alias:``},profile_headline:{enabled:!0,alias:``},profile_url:{enabled:!0,alias:``},icypeas_person_match:{enabled:!0,alias:``}},filters:{currentCompanyName:{include:[],exclude:[]},currentEmployersWebsiteUrls:{include:[],exclude:[]},pastEmployersWebsiteUrls:{include:[],exclude:[]},currentJobTitle:{include:[],exclude:[]},firstname:{include:[],exclude:[]},keyword:{include:[],exclude:[]},languages:{include:[],exclude:[]},lastname:{include:[],exclude:[]},location:{include:[],exclude:[]},pastCompanyName:{include:[],exclude:[]},pastJobTitle:{include:[],exclude:[]},school:{include:[],exclude:[]},skills:{include:[],exclude:[]}}}}},PO={"people:profiles:crustdata@1":oO,"companies:profiles:crustdata@1":UE,"companies:profiles:exa@1":tD,"people:profiles:exa@1":vO,"people:profiles:icypeas@1":jO,"companies:profiles:icypeas@1":hD,"people:employees:leadmagic@1":YD,"people:profiles:clado@1":DD,"people:profiles:clado@2":zD},FO={"people:profiles:crustdata@1":sO,"companies:profiles:crustdata@1":WE,"companies:profiles:exa@1":nD,"people:profiles:exa@1":yO,"people:profiles:icypeas@1":MO,"companies:profiles:icypeas@1":gD,"people:employees:leadmagic@1":XD,"people:profiles:clado@1":OD,"people:profiles:clado@2":BD},IO={"people:profiles:crustdata@1":cO,"companies:profiles:crustdata@1":GE,"companies:profiles:exa@1":rD,"people:profiles:exa@1":bO,"people:profiles:icypeas@1":NO,"companies:profiles:icypeas@1":_D,"people:employees:leadmagic@1":ZD,"people:profiles:clado@1":kD,"people:profiles:clado@2":VD};function LO(e){return PO[e]}function RO(e){return FO[e]}function zO(e){return IO[e].defaultPayload}const BO=t.discriminatedUnion(`search_id`,Object.values(FO).map(e=>e)),VO=t.preprocess(e=>{if(!e||typeof e!=`object`||!(`search_id`in e))return e;let t=zO(e.search_id);return t?{...e,config:ka(e?.config||{},t.config)}:e},BO);function HO(e){return Object.keys(IO[e].defaultPayload.config.output_fields)}const UO=Hn,WO=t.object({value:kn,status:On,type:En.optional(),format:Gn.nullable().optional(),resolved_by:Zn.nullable().optional(),widgets:Vn.optional()}),GO=t.record(t.string(),WO.nullable()),KO=t.object({search:t.object({ref:kE}),status:t.enum([`pending`,`processing`,`failed`,`completed`]),errors:t.array(UO),meta:t.object({providers:t.object({clado:t.object({pagination:t.object({search_id:t.string().optional(),offset:t.number().optional()})}).optional(),crustdata:t.object({pagination:t.object({cursor:t.string().nullable()})}).optional()}).optional()})}),qO=t.object({id:t.string(),status:t.enum([`completed`,`failed`,`pending`,`processing`]),results:t.array(GO),search_statuses:t.array(KO),organizationId:t.string()}).openapi(`SearchesResponseSchema`),JO=t.object({environment:t.enum([`production`,`sandbox`]).default(`production`),widgets:t.object({enabled:t.boolean().default(!1)}).default({enabled:!1})}),YO=JO.extend({dedup:t.object({strategy:t.enum([`default`]).nullable()}).default({strategy:null})}),XO=t.object({config:YO.default({dedup:{strategy:`default`},environment:`production`,widgets:{enabled:!1}}),searches:t.array(VO)}).openapi(`SearchesRequestSchema`);function ZO(e){let t=e.split(`@`)[1];if(!t)throw Error(`No search version found`);return Number(t)}function QO(){let e={};for(let t of Object.values(IO)){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=ZO(e.searchId);return ZO(t.searchId)-n})}),e}const $O=QO();function ek(e){let t=[];for(let[n,r]of Object.entries($O)){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:ZO(i.searchId)})}return t}function tk(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 HO(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:$O}}function nk(e){return IO[e]}function rk(e){let t=nk(e);return{[t.provider]:t.cost.mode===`per_result`?t.cost.creditsPerResult:t.cost.mode===`per_search`?t.cost.creditsPerSearch:t.cost.creditsPerPage}}function ik(e){return e.map(e=>({public_id:`sandbox-${e}`,provider:e}))}function ak(e){return ik(Bw(e).allowedUserConnectionProviders)}function ok(e){return ik([Tw(e).provider])}function sk(e){return ik([nk(e).provider])}const ck=[{id:`people`,label:`People`,color:`#8B7DFF`,order:0},{id:`companies`,label:`Companies`,color:`#10B981`,order:1},{id:`deprecated`,label:`Deprecated`,color:`#94A3B8`,order:2}],lk=new Map(ck.map(e=>[e.id,e]));function uk(e){return lk.get(e)}function dk(){return ck}const fk={"people:profiles:amplemarket@1":[{search_id:`people:profiles:amplemarket@1`,config:{page_number:1,limit:50,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:[`Berlin`],exclude:[]},current_employer_linkedin_industries:[],current_employer_domains:{include:[],exclude:[]},current_seniority_levels:[],school_names:{include:[],exclude:[]},current_job_titles:[]}}}],"companies:profiles:amplemarket@1":[{search_id:`companies:profiles:amplemarket@1`,config:{page_number:1,limit:50,filters:{company_industries:{include:[],exclude:[]},company_names:{include:[`Microsoft`],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:[]}}}}],"people:profiles:crustdata@1":[{search_id:`people:profiles:crustdata@1`,config:{cursor:``,limit:10,filters:{locations:{include:[`Berlin`,`Germany`],exclude:[]},profile_headline_keywords:{include:[`Marketing`],exclude:[]},profile_summary_keywords:{include:[],exclude:[]},profile_languages:{include:[`English`],exclude:[]},languages:{include:[],exclude:[]},skills:{include:[`Python`,`Data Analysis`],exclude:[]},years_of_experience:[`1 to 2 years`],current_seniority_levels:{include:[`Senior`],exclude:[]},current_employers:{include:[],exclude:[]},current_employers_website_urls:{include:[],exclude:[]},current_job_titles:{include:[`Software Engineer`],exclude:[]},current_employers_linkedin_industries:{include:[],exclude:[]},years_at_current_company:[`1 to 2 years`],previous_seniority_levels:{include:[],exclude:[]},previous_employers:{include:[],exclude:[]},previous_employers_website_urls:{include:[],exclude:[]},previous_employers_linkedin_industries:{include:[],exclude:[]},previous_job_titles:{include:[],exclude:[]},certifications:{include:[],exclude:[]},honors:{include:[],exclude:[]},recently_changed_jobs:!1,fields_of_study:{include:[],exclude:[]},degree_names:{include:[],exclude:[]},school_names:{include:[],exclude:[]},current_school_names:{include:[],exclude:[]},extracurricular_activities:{include:[],exclude:[]}}}}],"companies:profiles:crustdata@1":[{search_id:`companies:profiles:crustdata@1`,config:{cursor:``,limit:10,filters:{hq_locations:{include:[`San Francisco, CA`],exclude:[]},crunchbase_categories:{include:[`Artificial Intelligence`],exclude:[]},crunchbase_investors:{include:[],exclude:[]},tracxn_investors:{include:[],exclude:[]},company_types:{include:[],exclude:[]},linkedin_industries:{include:[`Technology`],exclude:[]},markets:{include:[],exclude:[]},linkedin_categories:{include:[],exclude:[]},headcount:{include:[],exclude:[]},headcount_growth_l6m_in_percent:[],revenue_in_usd:{from:1e4,to:1e6},last_funding_type:{include:[],exclude:[]},last_funding_amount:{from:null,to:null},number_of_followers:[],follower_growth_l6m_in_percent:[],profile_summary_keywords:{include:[],exclude:[]},competitor_domains:{include:[`google.com`],exclude:[]}}}}],"people:profiles:amplemarket@2":[{search_id:`people:profiles:amplemarket@2`,config:{page_number:1,limit:50,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:[`Berlin`],exclude:[]},current_employer_linkedin_industries:[],current_employer_domains:{include:[],exclude:[]},current_seniority_levels:[],school_names:{include:[],exclude:[]},current_job_titles:[]}}}],"companies:profiles:amplemarket@2":[{search_id:`companies:profiles:amplemarket@2`,config:{page_number:1,limit:50,filters:{company_industries:{include:[],exclude:[]},company_names:{include:[`Microsoft`],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:[]}}}}],"people:profiles:crustdata@2":[{search_id:`people:profiles:crustdata@2`,config:{cursor:``,limit:10,filters:{locations:{include:[`Berlin`,`Germany`],exclude:[]},profile_headline_keywords:{include:[`Marketing`],exclude:[]},profile_summary_keywords:{include:[],exclude:[]},profile_languages:{include:[`English`],exclude:[]},languages:{include:[],exclude:[]},skills:{include:[`Python`,`Data Analysis`],exclude:[]},years_of_experience:[`1 to 2 years`],current_seniority_levels:{include:[`Senior`],exclude:[]},current_employer_names:{include:[],exclude:[]},current_employer_domains:{include:[],exclude:[]},current_job_titles:{include:[`Software Engineer`],exclude:[]},current_employer_industries:{include:[],exclude:[]},years_at_current_company:[`1 to 2 years`],previous_seniority_levels:{include:[],exclude:[]},previous_employer_names:{include:[],exclude:[]},previous_employer_domains:{include:[],exclude:[]},previous_employer_industries:{include:[],exclude:[]},previous_job_titles:{include:[],exclude:[]},certifications:{include:[],exclude:[]},honors:{include:[],exclude:[]},recently_changed_jobs:!1,fields_of_study:{include:[],exclude:[]},degree_names:{include:[],exclude:[]},school_names:{include:[],exclude:[]},current_school_names:{include:[],exclude:[]},extracurricular_activities:{include:[],exclude:[]}}}}],"companies:profiles:crustdata@2":[{search_id:`companies:profiles:crustdata@2`,config:{cursor:``,limit:10,filters:{hq_locations:{include:[`San Francisco, CA`],exclude:[]},crunchbase_categories:{include:[`Artificial Intelligence`],exclude:[]},crunchbase_investors:{include:[],exclude:[]},tracxn_investors:{include:[],exclude:[]},company_types:{include:[],exclude:[]},linkedin_industries:{include:[`Technology`],exclude:[]},markets:{include:[],exclude:[]},linkedin_categories:{include:[],exclude:[]},headcount:{include:[],exclude:[]},headcount_growth_l6m_in_percent:[],revenue_in_usd:{from:1e4,to:1e6},last_funding_type:{include:[],exclude:[]},last_funding_amount:{from:null,to:null},number_of_followers:[],follower_growth_l6m_in_percent:[],profile_summary_keywords:{include:[],exclude:[]},competitor_domains:{include:[`google.com`],exclude:[]}}}}],"companies:entitysearch:parallel@1":[{search_id:`companies:entitysearch:parallel@1`,config:{objective:`AI startups in Europe that raised a Series A in 2024`,limit:100}}],"people:entitysearch:parallel@1":[{search_id:`people:entitysearch:parallel@1`,config:{objective:`Heads of Engineering at Series B fintech companies in the US`,limit:100}}]};function pk(e,t,n){if(t==null)return{};try{let r=un(e,n)?.getStaticWidgets?.(t),i=FT(n,t);return _S(r||{},{display_value:i?{label:i}:void 0})}catch(e){return console.warn(`Failed to generate UI props: ${e}`),{}}}function mk(e){if(e instanceof $)return e;let t=e.search_id,n=fw(t);if(!n)throw Error(`Unknown pipe: ${e.search_id}`);return new n(hw.parse(e))}var hk=class extends cg{constructor(e){super(e.map(e=>e.message).join(`, `)||`Unknown`),this.errors=e}};function gk(e){let t=[];for(let n of e){if(n instanceof ME){t.push(n);continue}let e=n.search_id,r=LO(e);if(!r)throw Error(`Unknown pipe: ${n.search_id}`);let i=new r(VO.parse(n));t.push(i)}return t}function _k(e){try{return gk(e.searches)}catch(e){throw e instanceof hk?e:new Q([Z.ValidationFailed({error:e})])}}const vk=/[\\^$.+()|[\]{}]/g,yk=new Map;function bk(e){let t=yk.get(e);if(t)return t;let n=``;for(let t=0;t<e.length;t++){let r=e[t];r===`*`?n+=`.*`:r===`?`?n+=`.`:n+=r.replace(vk,`\\$&`)}let r=RegExp(`^${n}$`);return yk.set(e,r),r}function xk(e,t){return bk(t).test(e)}function Sk(e,t){if(!t||t.length===0)return!1;for(let n of t)if(xk(e,n))return!0;return!1}function Ck(e,t){if(!t)return!0;let{includes:n,excludes:r}=t;return!(n&&n.length>0&&!Sk(e,n)||r&&r.length>0&&Sk(e,r))}function wk(e,t){return Ck(e,t?.providers)}function Tk(e,t){if(!t)return!0;if(!Ck(e,t.pipes))return!1;if(t.providers){let n=Ww(e);if(n.length===0)return!0;if(!n.some(e=>wk(e,t)))return!1}return!0}function Ek(e,t,n){return t?!(!Ck(e,t.searches)||n!==void 0&&!wk(n,t)):!0}function Dk(e,t,n){return t?!(!Ck(e,t.searchesMulti)||n!==void 0&&!wk(n,t)):!0}function Ok(e,t){return t?e.filter(e=>Tk(e.pipeId,t)):e.slice()}function kk(e,t){return t?e.filter(e=>Ek(e.searchId,t,e.provider)):e.slice()}function Ak(e,t){return t?e.filter(e=>Dk(e.searchId,t,e.provider)):e.slice()}function jk(e){let t=Object.values(e.billableOperations).map(e=>e.allowManagedConnection?e.credits.default:0);return Math.min(...t)}function Mk(e){return Math.min(e.cost.mode===`per_result`?e.cost.creditsPerResult:e.cost.mode===`per_search`?e.cost.creditsPerSearch:e.cost.creditsPerPage)}function Nk(e){return e.cost.credits.default}function Pk(e){let t=NT(e);if(!t)return``;try{return te(t)||new URL(t).hostname}catch{return``}}const Fk=[`http://`,`https://`,`mailto:`],Ik=new Set([`*`,`_`,`~`,"`",`[`,`]`,`(`,`)`,`\\`]);function Lk(e){return e?Rk(e):[]}function Rk(e){let t=[],n=``,r=0,i=()=>{n&&=(t.push({type:`text`,value:n}),``)};for(;r<e.length;){let a=e[r],o=e[r+1];if(a===`\\`&&o!==void 0&&Ik.has(o)){n+=o,r+=2;continue}if(a==="`"){let n=zk(e,r+1,"`");if(n>-1){i(),t.push({type:`code`,value:e.slice(r+1,n)}),r=n+1;continue}}if(a===`*`&&o===`*`){let n=zk(e,r+2,`**`);if(n>r+2){i(),t.push({type:`strong`,children:Rk(e.slice(r+2,n))}),r=n+2;continue}}if(a===`~`&&o===`~`){let n=zk(e,r+2,`~~`);if(n>r+2){i(),t.push({type:`del`,children:Rk(e.slice(r+2,n))}),r=n+2;continue}}if(a===`*`&&o!==`*`){let n=zk(e,r+1,`*`);if(n>r+1){i(),t.push({type:`em`,children:Rk(e.slice(r+1,n))}),r=n+1;continue}}if(a===`[`){let n=zk(e,r+1,`]`);if(n>-1&&e[n+1]===`(`){let a=zk(e,n+2,`)`);if(a>-1){let o=e.slice(n+2,a);if(Fk.some(e=>o.startsWith(e))){i(),t.push({type:`link`,href:o,children:Rk(e.slice(r+1,n))}),r=a+1;continue}}}}n+=a,r+=1}return i(),t}function zk(e,t,n){let r=t;for(;r<e.length;){if(e[r]===`\\`&&r+1<e.length){r+=2;continue}if(Bk(e,r,n))return r;r+=1}return-1}function Bk(e,t,n){if(t+n.length>e.length)return!1;for(let r=0;r<n.length;r++)if(e[t+r]!==n[r])return!1;return!0}export{ai as AI_MODELS,oi as AI_MODEL_CATALOG,nr as CatalogSchemaRefSchema,or as ConditionOperatorsSchema,$n as ExpandedFieldValueSchema,Ah as FIELD_PLACEHOLDERS,Kn as FieldAnnotationSchema,UT as FieldAnnotations,qn as FieldAnnotationsSchema,bn as FieldNameSchema,Un as FieldReasonSchema,kn as FieldValueSchema,mT as FormStoreSchema,CT as HIGH_VOLUME_PRICING_MIN_CREDITS,ar as JSONExtractSchema,An as JSONMetaSchema,fr as NoConnectorSchema,v as OptionalConnectorSchema,Cn as PIPE_IDS,xw as PaginationTypeSchema,jb as PersonWorkemailWaterfall1Entry,Ab as PersonWorkemailWaterfall1PayloadSchema,kb as PersonWorkemailWaterfall1PipeClass,U as Pipe,cg as Pipe0Error,wn as PipeIdSchema,Rw as PipePayloadSchema,gr as PipeRunIfSchema,Q as PipelineValidationError,Sn as PipesEnvironmentSchema,Hn as PipesErrorSchema,rr as PipesFieldDefinitionSchema,ir as PipesFieldDefinitionsSchema,er as PipesInputSchema,Xw as PipesRequestConfigSchema,Zw as PipesRequestSchema,Yw as PipesResponseSchema,zw as ProcessedPipePayloadSchema,hw as ProcessedSearchPayloadSchema,VO as ProcessedSearchesPayloadSchema,xn as ProviderNameSchema,Wn as RECORD_FIELD_FORMATS,Tn as RECORD_FIELD_TYPES,sr as RUN_IF_OPERATOR_LABELS,lr as RUN_IF_STATUS_OPERATORS,cr as RUN_IF_VALUE_OPERATORS,Xn as RecordClaimedBySchema,Gn as RecordFieldFormatSchema,Qn as RecordFieldSchema,On as RecordFieldStatusSchema,En as RecordFieldTypeSchema,Dn as RecordIdSchema,Zn as RecordResolvedBySchema,tr as RecordSchema,sg as RequestValidationError,dr as RequiredConnectorSchema,mr as RunIfStatusOperatorsSchema,hr as RunIfStatusValueSchema,pr as RunIfValueOperatorsSchema,OE as SEARCHES_IDS,Zx as SEARCH_IDS,$ as Search,_w as SearchErrorSchema,Qx as SearchIdSchema,pw as SearchPayloadSchema,gw as SearchRequestSchema,Sw as SearchResponseSchema,vw as SearchResultFieldSchema,yw as SearchResultSchema,UO as SearchesErrorSchema,kE as SearchesIdSchema,BO as SearchesPayloadSchema,JO as SearchesRequestBaseConfigSchema,XO as SearchesRequestSchema,qO as SearchesResponseSchema,WO as SearchesResultFieldSchema,GO as SearchesResultSchema,ME as SearchesSearch,KO as SearchesStatusSchema,cd as TYPES_TO_FORMATS,dT as WidgetsByKindSchema,Vn as WidgetsSchema,Ma as all,Lr as analyzeLiquidTemplate,_n as and,H as any,Kw as assertUniqueBillableOperations,g as autocomplete,si as buildAiModelBillableOperations,GT as buildDependencyGraph,ih as buildInputRequirementFromTemplates,K as catalogInput,Ra as cleanObject,NT as cleanUrl,MT as cleanWebsiteUrl,ah as collectConstantReferencesFromTemplates,nT as collectPipeContextSelectFields,Fa as collectRequirementFields,Y as collectSecretReferencesFromTemplates,bk as compilePattern,ka as configDefaults,Hi as convertIntermediateFieldsIntoGroups,Ui as defaultSectionMap,ag as describeRequirement,gS as entityLogoFavicon,hS as entityLogoProfessionalProfileUrl,Ki as extractFormMetadata,V as field,ln as fieldBehaviorCatalog,cn as fieldCatalog,ig as fieldNameStr,IT as fieldTypeFromValue,SE as fieldsToObject,Ok as filterPipeEntries,kk as filterSearchEntries,Ak as filterSearchesEntries,ci as getAiModelBillingKey,ui as getAiModelConnectionRequirements,li as getAiModelProviders,di as getAllAiModelProviders,W as getBasePipeName,Pw as getDefaultOutputFields,Ww as getDefaultPipeProviders,Ow as getDefaultSearchOutputFields,HO as getDefaultSearchesOutputFields,xT as getDependentPipeNamesForInputProperty,ST as getDependentPipeNamesForPipe,Pk as getDomain,RT as getExpansionState,pS as getFaviconUrlGoogle,_ as getField,un as getFieldBehavior,id as getFieldDisplayLabel,BT as getFieldWidgets,Dw as getInitialSearchTableData,ek as getInitialSearchesTableData,qw as getInitialTableData,Ha as getInputHash,pi as getJsonMetaForFieldDef,Nk as getLoweestSearchCreditAmount,Mk as getLoweestSearchesCreditAmount,jk as getLowestPipeCreditAmount,yn as getOutputFieldInfoFromDef,Vw as getPipeBillableOperationDef,vT as getPipeCategoryEntries,_T as getPipeCategoryEntry,Fw as getPipeClass,Va as getPipeConfigHash,Iw as getPipeDefaultPayload,G as getPipeDocsURI,Bw as getPipeEntry,bT as getPipeInstances,rT as getPipePayloadFormConfig,Lw as getPipePayloadSchema,Hw as getPipeVersion,J as getProviderBillableOperation,Ua as getProviderCreditsFromBillableOperations,DE as getProviderEntry,mn as getReadableFieldStatus,ik as getSandboxConnections,ak as getSandboxConnectionsForPipe,ok as getSandboxConnectionsForSearch,sk as getSandboxConnectionsForSearches,dk as getSearchCategoryEntries,uk as getSearchCategoryEntry,fw as getSearchClass,mw as getSearchDefaultPayload,Tw as getSearchEntry,pk as getSearchFieldWidgets,mk as getSearchInstance,sT as getSearchPayloadFormConfig,bw as getSearchPayloadSchema,kw as getSearchTableDataAggregates,Cw as getSearchVersion,LO as getSearchesClass,zO as getSearchesDefaultPayload,nk as getSearchesEntry,VT as getSearchesFieldWidgets,gk as getSearchesInstances,RO as getSearchesPayloadSchema,tk as getSearchesTableDataAggregates,ZO as getSearchesVersion,Qw as getStartingCostPerPipesProvider,Aw as getStartingCostPerSearchProvider,rk as getStartingCostPerSearchesProvider,Jw as getTableDataAggregates,TT as getTier,zT as getUnexpandedValue,mS as ifDefined,z as inputFields,TE as inputFromRecord,wE as inputFromRecordArr,CE as inputFromRecords,cT as inputGuards,fn as isCatalogField,Lt as isEmptyValue,dn as isFieldName,OT as isHighVolumeEligible,Tk as isPipeAllowed,wk as isProviderAllowed,Pa as isRequirementMet,Ia as isRequirementSatisfiedByRecord,Ek as isSearchAllowed,Dk as isSearchesAllowed,ti as joinConnectionString,kT as listHighVolumeEligibleOperations,DT as listTiers,Ga as markRecordFieldAsComplete,Ja as markRecordFieldAsFailed,qa as markRecordFieldAsNoResult,Ka as markRecordFieldAsPending,Xa as markRecordFieldAsProcessing,Ya as markRecordFieldAsSkipped,Sk as matchesAny,xk as matchesPattern,_S as mergeWidgets,T as noConnectorInput,Na as optional,w as optionalConnectorInput,vn as or,R as outputFields,Ir as parseLiquidTemplate,Ar as parseOutputTagArgs,uE as parseRecordValueOrError,Lk as parseRichText,Nw as pipeCatalog,hT as pipeCategoryCatalog,jw as pipeClassCatalog,Mw as pipePayloadSchemaCatalog,oa as pipesAsyncIncludeExcludeSelectInput,_a as pipesContextSelectInput,ca as pipesDateRangeInput,$i as pipesFieldsSelectInput,ea as pipesIncludeExcludeInput,aa as pipesIncludeExcludeSelectInput,E as pipesInputField,ma as pipesIntInput,xi as pipesJsonExtractionInput,ga as pipesJsonSchemaField,ia as pipesKeyValueListInput,fa as pipesLLMSelectInput,ta as pipesMultiCreateInput,pa as pipesMultiSelectInput,ha as pipesNumberInput,O as pipesOptionalBooleanInput,na as pipesOrderedMultiCreateInput,k as pipesOutputField,y as pipesPayloadRegistry,Ji as pipesPromptInput,D as pipesProviderInput,sa as pipesRangeInput,S as pipesRunIfInput,da as pipesSelectInput,yT as pipesSnippetCatalog,ra as pipesTaggedOrderedMultiCreateInput,C as pipesTaggedTextInput,Yi as pipesTemplateInput,la as pipesTextInput,ua as pipesTextareaInput,X as placeholder,EE as processInputObjects,_r as providerCatalog,q as rateLimitRatioFallingProgression,Pr as renderLiquidTemplate,Fr as renderLiquidTemplateSync,Zi as requiredConnectorInput,Wa as requirementToInputFields,og as requirementUnmetMessage,hn as requiresConnection,gn as requiresField,dw as searchCatalog,ck as searchCategoryCatalog,lw as searchClassCatalog,uw as searchPayloadSchemaCatalog,fk as searchSnippetCatalog,I as searchesAsyncIncludeExcludeSelectInput,F as searchesAsyncMultiSelectInput,IO as searchesCatalog,PO as searchesClassCatalog,Sa as searchesDateRangeInput,ba as searchesExactRangeInput,j as searchesIncludeExcludeInput,M as searchesIncludeExcludeSelectInput,L as searchesIntInput,ya as searchesMinMaxIntInput,A as searchesMultiCreateInput,P as searchesMultiSelectInput,Oa as searchesNumberField,Ca as searchesOptionalBooleanInput,wa as searchesOptionalNullableBooleanInput,va as searchesOrderedMultiCreateInput,N as searchesOutputField,b as searchesPayloadRegistry,FO as searchesPayloadSchemaCatalog,xa as searchesRangeInput,Da as searchesSelectInput,Ta as searchesTextInput,Ea as searchesTextareaField,sd as sortObjectKeys,Uw as sortPipeCatalogByBasePipe,ww as sortSearchCatalogByBaseSearch,QO as sortSearchesCatalogByBaseSearch,ei as splitConnectionString,h as staticAutocomplete,m as staticOptions,od as stringify,ad as testPrint,ET as tierAtOrBelow,pE as transformIntoResponse,KT as validatePipesOrError,_k as validateSearches,Z as validationErrorMessages};