@pipe0/base 0.1.1 โ 0.1.3
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/CHANGELOG.md +18 -0
- package/dist/index.d.mts +4080 -2005
- package/dist/index.mjs +7 -7
- package/package.json +2 -2
package/dist/index.mjs
CHANGED
|
@@ -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:[]}],ut=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()}))}),dt={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`}]},ft=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()})),pt=[{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`}]}],mt=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`)}),ht={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:[]},gt=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.`)}),_t={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`},vt=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()})),yt=[{company_name:`Chorus`,revenue:`$21M`,headquarters_region:`San Francisco, California, USA`,company_type:`private`,company_website_url:`https://www.chorus.ai`}],bt=r.array(r.object({company_name:r.string().nullable(),date:r.string().nullable(),company_description:r.string(),source_url:r.url().nullable()})),xt=[{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`}],St=r.array(r.object({title:r.string().nullable(),outlet_name:r.string().nullable(),date:r.string().nullable()})),Ct=[{title:`Gong: Gong Named to the Forbes Cloud 100 for the Fifth Consecutive Year`,outlet_name:`Martech Cube`,date:`2024-08-07`}],wt=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)}),Tt=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(),Et=r.object({name:r.string(),domain:r.string(),description:r.string(),indexed_at:r.iso.datetime(),socials:Tt,logo:r.url(),blurhash:r.string(),colors:r.array(wt)}),Dt={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`}]},Ot=r.object({email:r.string(),quality:r.enum([``,`good`,`bod`,`risky`]),result:r.enum([`ok`,`catch_all`,`unkown`,`error`,`disposable`,`invalid`]),resultcode:r.int(),subresult:r.string(),free:r.boolean(),role:r.boolean(),didyoumean:r.string(),error:r.string().nullable().optional()}),kt={email:`bademail@gmal.com`,quality:`good`,result:`invalid`,resultcode:6,subresult:`unknown`,free:!1,role:!1,didyoumean:`bademail@gmail.com`,error:``};function At(){return`https://i.pravatar.cc/300?u=${crypto.randomUUID()}`}function jt(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)&&!jt(e[n],{isNullEmpty:t}))return!1;return!0}return!1}function Mt(e){return e.split(`@`)[0]}const Nt=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.`)}),Pt={object:`linkedin_profile`,profile_url:`https://www.linkedin.com/in/janedoe/`,profile_picture_url:At(),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`}]},Ft=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()}),It={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`},Lt=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()})),Rt=[{markdown:`[Pipe Docs home page!...`,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.`}}],zt=r.array(r.object({url:r.url(),title:r.string().nullable(),description:r.string().nullable()})),Bt=[{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.`}],Vt=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`)]),Ht=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(``)]),Ut=r.object({address:r.email(),status:Vt,sub_status:Ht,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()}),Wt={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`},Gt=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()}),Kt={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`},qt={"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 Jt(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 Yt(e){return e.toLowerCase().trim().replace(/[^\w\s]/g,` `).replace(/\s+/g,` `).trim()}function Xt(e){let t=Yt(e);if(qt[t])return t;let n=null,r=1/0,i=Math.min(3,Math.floor(t.length*.3));for(let e of Object.keys(qt)){let a=Jt(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 Zt(e){try{let t=e.split(`,`).map(e=>e.trim());return t.length===0?null:t[t.length-1]||null}catch{return null}}function Qt(e){try{if(!e||typeof e!=`string`||e.trim()===``)return null;let t=Zt(e);return t?$t(t):null}catch{return null}}function $t(e){try{if(!e||typeof e!=`string`||e.trim()===``)return null;let t=Xt(e);return t&&qt[t]||null}catch{return null}}function en(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 tn={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:zt,exampleValue:Bt}},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:Lt,exampleValue:Rt},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:vt,exampleValue:yt},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:xt,zodSchema:bt}},leadmagic_company_news_list:{label:`Company news list`,type:`json`,description:`A list of company news`,format:`json_list`,jsonMeta:{exampleValue:Ct,zodSchema:St}},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:ft,exampleValue:pt}},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:gt,exampleValue:_t}},icypeas_company_match:{label:`Icypeas company match`,description:`Object returned from a Icypeas people search`,format:`json_object`,type:`json`,jsonMeta:{zodSchema:mt,exampleValue:ht}},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:Nt,exampleValue:Pt}},profile_url:{label:`LinkedIn profile URL`,type:`string`,format:`profile_url`,description:`A person's LinkedIn profile URL.`,jsonMeta:null},profile_posts:{label:`Recrent linkedIn posts`,type:`json`,description:`List of recent LinkedIn posts in JSON format.`,format:`json_list`,jsonMeta:{zodSchema:r.array(Gt),exampleValue:Kt}},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', 'unkown'`},million_validation_match:{label:`Million Verifier match`,type:`json`,format:`json_object`,description:`Email validation status. Allowed values are: 'valid', 'invalid', 'catch_all', 'unkown'`,jsonMeta:{zodSchema:Ot,exampleValue:kt}},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:Ut,exampleValue:Wt}},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:ut,exampleValue:dt}},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:ot,exampleValue:st}},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}},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:[]}],ut=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()}))}),dt={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`}]},ft=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()})),pt=[{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`}]}],mt=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`)}),ht={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:[]},gt=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.`)}),_t={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`},vt=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()})),yt=[{company_name:`Chorus`,revenue:`$21M`,headquarters_region:`San Francisco, California, USA`,company_type:`private`,company_website_url:`https://www.chorus.ai`}],bt=r.array(r.object({company_name:r.string().nullable(),date:r.string().nullable(),company_description:r.string(),source_url:r.url().nullable()})),xt=[{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`}],St=r.array(r.object({title:r.string().nullable(),outlet_name:r.string().nullable(),date:r.string().nullable()})),Ct=[{title:`Gong: Gong Named to the Forbes Cloud 100 for the Fifth Consecutive Year`,outlet_name:`Martech Cube`,date:`2024-08-07`}],wt=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)}),Tt=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(),Et=r.object({name:r.string(),domain:r.string(),description:r.string(),indexed_at:r.iso.datetime(),socials:Tt,logo:r.url(),blurhash:r.string(),colors:r.array(wt)}),Dt={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`}]},Ot=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()}),kt={email:`bademail@gmal.com`,quality:`good`,result:`invalid`,resultcode:6,subresult:`unknown`,free:!1,role:!1,didyoumean:`bademail@gmail.com`,error:``};function At(){return`https://i.pravatar.cc/300?u=${crypto.randomUUID()}`}function jt(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)&&!jt(e[n],{isNullEmpty:t}))return!1;return!0}return!1}function Mt(e){return e.split(`@`)[0]}const Nt=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.`)}),Pt={object:`linkedin_profile`,profile_url:`https://www.linkedin.com/in/janedoe/`,profile_picture_url:At(),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`}]},Ft=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()}),It={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`},Lt=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()})),Rt=[{markdown:`[Pipe Docs home page!...`,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.`}}],zt=r.array(r.object({url:r.url(),title:r.string().nullable(),description:r.string().nullable()})),Bt=[{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.`}],Vt=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`)]),Ht=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(``)]),Ut=r.object({address:r.email(),status:Vt,sub_status:Ht,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()}),Wt={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`},Gt=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()}),Kt={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`},qt={"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 Jt(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 Yt(e){return e.toLowerCase().trim().replace(/[^\w\s]/g,` `).replace(/\s+/g,` `).trim()}function Xt(e){let t=Yt(e);if(qt[t])return t;let n=null,r=1/0,i=Math.min(3,Math.floor(t.length*.3));for(let e of Object.keys(qt)){let a=Jt(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 Zt(e){try{let t=e.split(`,`).map(e=>e.trim());return t.length===0?null:t[t.length-1]||null}catch{return null}}function Qt(e){try{if(!e||typeof e!=`string`||e.trim()===``)return null;let t=Zt(e);return t?$t(t):null}catch{return null}}function $t(e){try{if(!e||typeof e!=`string`||e.trim()===``)return null;let t=Xt(e);return t&&qt[t]||null}catch{return null}}function en(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 tn={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:zt,exampleValue:Bt}},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:Lt,exampleValue:Rt},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:vt,exampleValue:yt},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:xt,zodSchema:bt}},leadmagic_company_news_list:{label:`Company news list`,type:`json`,description:`A list of company news`,format:`json_list`,jsonMeta:{exampleValue:Ct,zodSchema:St}},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:ft,exampleValue:pt}},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:gt,exampleValue:_t}},icypeas_company_match:{label:`Icypeas company match`,description:`Object returned from a Icypeas people search`,format:`json_object`,type:`json`,jsonMeta:{zodSchema:mt,exampleValue:ht}},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:Nt,exampleValue:Pt}},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(Gt),exampleValue:Kt}},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:Ot,exampleValue:kt}},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:Ut,exampleValue:Wt}},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:ut,exampleValue:dt}},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:ot,exampleValue:st}},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}},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:ct,exampleValue:lt}},role_finder_match:{label:`Role finder match`,type:`json`,format:`json_object`,description:`Result of a role finder operation`,jsonMeta:{zodSchema:Ft,exampleValue:It}},amplemarket_person_match:{label:`Person match`,type:`json`,format:`json_object`,description:`Person match object as returned by Amplemarket`,jsonMeta:{zodSchema:Ne,exampleValue:Pe}},amplemarket_company_match:{label:`Company match`,type:`json`,format:`json_object`,description:`Company match object as returned by Amplemarket`,jsonMeta:{zodSchema:je,exampleValue:Me}},companyenrich_matches:{label:`CompanyEnrich matches`,type:`json`,format:`json_object`,description:`CompanyEnrich response list.`,jsonMeta:{zodSchema:r.array(et),exampleValue:[tt]}},logo_url:{label:`Logo URL`,type:`string`,format:`text`,description:`Company or organization logo`,jsonMeta:null},logodev_describe_match:{label:`Company match`,type:`json`,format:`json_object`,description:`Get company logos & brand data`,jsonMeta:{exampleValue:Dt,zodSchema:Et}},mobile_number:{label:`Mobile`,type:`string`,description:`Mobile telephone number of a person.`,jsonMeta:null,format:`phone`},company_social_url:{label:`Company Social URL`,type:`string`,description:`Social Media URL for a given company (e.g. LinkedIn profile URL).`,jsonMeta:null,format:`profile_url`},professional_profile:{label:`Professional profile (LinkedIn)`,type:`json`,description:`A standardized format for returning LinkedIn profile data.`,jsonMeta:{zodSchema:Nt,exampleValue:Pt},format:`json_object`},professional_profile_url:{label:`LinkedIn Profile URL`,type:`string`,format:`profile_url`,description:`A person's LinkedIn profile URL.`,jsonMeta:null}},nn={company_description:{},cleaned_company_name:{},company_industry:{},icypeas_person_match:{getStaticWidgets(e){if(!e)return{};let t=e;return{display_value:{label:`${t.firstname} ${t.lastname} profile`}}}},icypeas_company_match:{getStaticWidgets(e){return e?{display_value:{label:`${e.name} profile`}}:{}}},company_region:{getStaticWidgets:e=>{let t={},n=Qt(e);return n&&(t.location_indicator={emoji:n}),t}},location_hint:{},estimated_revenue:{},founded_year:{},technology_list:{},spending_trend:{getStaticWidgets(e){let t=e;return{display_value:{label:`${t>3?`๐ผ๐ผ๐ผ`:t>1?`๐ผ๐ผ`:t>0?`๐ผ`:t<-3?`๐ฝ๐ฝ๐ฝ`:t<-1?`๐ฝ๐ฝ`:t<0?`๐ฝ`:``} ${Math.round(t*100)}%`}}}},technology_match_builtwith:{getStaticWidgets(e){return{display_value:{label:`Technology profile`}}}},number_of_social_followers:{},email:{},personal_email:{},alternate_personal_emails:{},company_news_summary:{},work_email:{},headcount:{},company_website_url:{},company_domain:{},company_name:{},first_name:{},addressee_name:{},address_line_1:{},address_line_2:{},job_title:{getStaticWidgets(){return{icon:{key:`job`}}}},job_description:{},profile_headline:{},address_city:{},address_country:{},address_state:{},zip_code:{},last_name:{},is_work_email:{},name:{},ip_address:{},skills:{},avatar_url:{},string_input:{},domain:{},url_input:{},slugified:{},http_response_status:{},http_response_body:{},http_response_headers:{},estimated_salary:{},scrape_list_response:{},clado_person_match:{getStaticWidgets(e){return e?{display_value:{label:`${e.profile?.name||`Person`} profile`}}:{}}},clado_person_match_v2:{getStaticWidgets(e){return e?{display_value:{label:`${e.profile?.name||`Person`} profile`}}:{}}},company_social_url:{getStaticWidgets(e){let t=en(e);return{display_value:t?{label:t}:void 0}}},crustdata_profile_match_score:{},is_email_valid:{},amplemarket_person_match:{getStaticWidgets(){return{display_value:{label:`Person match`}}}},amplemarket_company_match:{getStaticWidgets(){return{display_value:{label:`Company match`}}}},profile_url:{getStaticWidgets(e){let t=en(e);return{display_value:t?{label:t}:void 0,icon:{key:`linkedin`}}}},company_profile_url:{getStaticWidgets(e){let t=en(e);return{display_value:t?{label:t}:void 0,icon:{key:`linkedin`}}}},profile_posts:{getStaticWidgets(){return{display_value:{label:`LinkedIn posts`}}}},profile:{getStaticWidgets(e){return e?{display_value:{label:`${e.name||`Person`} LinkedIn profile`}}:{}}},clado_person_profile:{getStaticWidgets(e){return e?{display_value:{label:`${e.profile?.name||`Person`} match`}}:{}}},email_subject:{},message:{},slack_message_success:{getStaticWidgets(e){return{display_value:{label:e?`โ
Sent`:`โ Not sent`}}}},resend_email_success:{getStaticWidgets(e){return{display_value:{label:e?`โ
Sent`:`โ Not sent`}}}},email_body:{},mobile:{},landline:{},phone:{},funding_history:{},funding_total_usd:{},leadmagic_competitor_list:{getStaticWidgets(e){return e?{display_value:{label:e.map(e=>e.company_name).slice(0,4).join(`, `)}}:{}}},leadmagic_acquisition_history:{getStaticWidgets(e){return e?{display_value:{label:e.map(e=>e.company_name).slice(0,4).join(`, `)}}:{}}},leadmagic_company_news_list:{getStaticWidgets(e){return e?{display_value:{label:`${e.length} news sources`}}:{}}},merge_result:{},website_markdown:{getStaticWidgets(e){return e?{display_value:{label:`๐ Markdown result`}}:{}}},urls:{},website_html:{},website_url:{},website_links:{},mapped_links:{},firecrawl_extract_result:{getStaticWidgets(){return{display_value:{label:`Extract result`}}}},exa_match_evaluation:{getStaticWidgets(){return{display_value:{label:`Exa match`}}}},email_validation_status:{},million_validation_match:{getStaticWidgets(){return{display_value:{label:`Validation result`}}}},post_list_string:{getStaticWidgets(e){return{entity_logo:{entity:`LinkedIn`,image_url:Ae.linkedin}}}},crustdata_post_list:{getStaticWidgets(e){return{entity_logo:{entity:`LinkedIn`,image_url:Ae.linkedin}}}},crustdata_company_match:{},crustdata_person_match:{},resend_contact_id:{},sheet_record_id:{},sheet_record_ids:{},companyenrich_match:{},companyenrich_matches:{},input_objects:{},role_finder_match:{},sheet:{},logodev_describe_match:{getStaticWidgets(){return{display_value:{label:`Match`}}}},logo_url:{getStaticWidgets(){return{display_value:{label:`Logo URL`}}}},mobile_number:{},created_sheet:{},professional_profile:{},professional_profile_url:{},crustdata_companyenrich_match:{},template_output:{},zerobounce_validation_match:{},zerobounce_validation_status:{getStaticWidgets(e){return{display_value:{label:e===`valid`?`โ
Valid`:e===`invalid`?`โ Invalid`:e===`catch-all`?`โพ๏ธ Catch All`:e===`abuse`?`โ ๏ธ Abuse`:e===`do_not_mail`?`โโ Do not mail`:e===`spamtrap`?`โโโ Spam Trap`:e}}}},gmail_email_success:{getStaticWidgets(e){return{display_value:{label:e?`โ
Sent`:`โ Not sent`}}}}};function _(e){return{...tn[e],name:e}}function rn(e,t){if(on(e,t))return nn[e]}function an(e){return e in tn}function on(e,t){return e in tn?tn[e].format===t:!1}const sn={completed:`Completed`,failed:`Failed`,no_result:`No result`,pending:`Pending`,processing:`Processing`,queued:`Queued`,skipped:`Skipped`};function cn(e){return sn[e]}const ln=(e,t=`Set a ${e} connection to enable this`)=>n=>(n.connector?.connections??[]).some(t=>t?.connection?.startsWith(`${e}_`))?{disabled:!1}:{disabled:!0,message:t},un=(e,t)=>n=>{let r=e(n);return r!=null&&r!==``?{disabled:!1}:{disabled:!0,message:t}},dn=(...e)=>t=>{for(let n of e){let e=n(t);if(e.disabled)return e}return{disabled:!1}},fn=(...e)=>t=>{let n={disabled:!0,message:`No condition matched`};for(let r of e){let e=r(t);if(!e.disabled)return e;n=e}return n};function pn(e,t,n){if(!t.added_by||t.added_by.ref===`input`||t.added_by.pipe_index==null)throw Error(`Tried to find output field info for field not generated by pipe: ${e}, added_by: ${t.added_by}`);let r=n.orderedPipeInstances[t.added_by.pipe_index];if(!r)throw Error(`Unable to find pipe instance at index ${t.added_by.pipe_index} for resolved field ${e}`);let i=Object.entries(r.getOutputFields()).find(([t,n])=>n.resolvedName===e);if(!i)throw Error(`Resolved pipe output field '${e}' not found for pipe ${t.added_by.ref}`);let[a,o]=i;return{fieldName:a,...o}}const mn=r.enum(`company_description.cleaned_company_name.company_industry.company_region.location_hint.estimated_revenue.founded_year.technology_list.spending_trend.technology_match_builtwith.number_of_social_followers.email.personal_email.alternate_personal_emails.company_news_summary.work_email.headcount.company_website_url.company_domain.company_name.first_name.addressee_name.address_line_1.address_line_2.job_title.job_description.profile_headline.address_city.address_country.address_state.zip_code.last_name.is_work_email.companyenrich_match.companyenrich_matches.name.ip_address.skills.avatar_url.estimated_salary.is_email_valid.profile_url.company_profile_url.profile_posts.clado_person_match.clado_person_match_v2.icypeas_person_match.icypeas_company_match.clado_person_profile.resend_email_success.email_body.email_subject.profile.mobile.landline.phone.message.slack_message_success.funding_history.funding_total_usd.template_output.gmail_email_success.zerobounce_validation_status.zerobounce_validation_match.leadmagic_competitor_list.leadmagic_acquisition_history.leadmagic_company_news_list.merge_result.mapped_links.website_markdown.website_html.website_url.urls.website_links.firecrawl_extract_result.exa_match_evaluation.email_validation_status.million_validation_match.scrape_list_response.resend_contact_id.sheet_record_id.sheet_record_ids.input_objects.role_finder_match.logodev_describe_match.logo_url.crustdata_company_match.crustdata_companyenrich_match.crustdata_person_match.post_list_string.crustdata_post_list.crustdata_profile_match_score.amplemarket_person_match.amplemarket_company_match.created_sheet.sheet.string_input.domain.url_input.slugified.http_response_status.http_response_body.http_response_headers.professional_profile_url.professional_profile.company_social_url.mobile_number`.split(`.`)),hn=r.enum([`pipe0`,`findymail`,`crustdata`,`hunter`,`zerobounce`,`millionverifier`,`googlemaps`,`gemini`,`leadmagic`,`mixrank`,`builtwith`,`perplexity`,`serper`,`icypeas`,`prospeo`,`clado`,`resend`,`slack`,`gmail`,`firecrawl`,`exa`,`openai`,`companyenrich`,`logodev`,`amplemarket`]),gn=r.enum([`production`,`sandbox`]),_n=`prompt:run@1.company:newssummary:website@1.company:newssummary:domain@1.company:techstack:builtwith@1.company:techstack:builtwith@2.company:websiteurl:email@1.company:domain:workemail@1.company:funding:leadmagic@1.company:funding:leadmagic@2.people:workemail:waterfall@1.person:workemail:waterfall@1.people:email:iswork@1.email:iswork@1.people:name:split@1.person:name:split@1.person:name:join@1.people:validate:email:zerobounce@1.people:email:validate:zerobounce@2.email:validate:zerobounce@1.people:mobilenumber:workemail:waterfall@1.company:overview@1.company:overview@2.company:overview@3.json:extract:multi@1.email:write@1.message:write@1.email:send:resend@1.email:send:gmail@1.message:send:slack@1.template:fill@1.contact:create:resend@1.people:match:role:waterfall@1.person:match:role:waterfall@1.person:identity:amplemarket@1.company:identity@2.company:identity@3.person:match:amplemarket@1.people:phone:profile:waterfall@1.person:mobile:profileurl:waterfall@1.people:personalemail:profile:waterfall@1.person:personalemail:profileurl:waterfall@1.people:profile:waterfall@1.person:profile:waterfall@1.people:profileurl:email:waterfall@1.person:profileurl:email:waterfall@1.person:profileurl:name@1.people:email:validate:zerobounce@1.person:email:validate:millionverifier@1.people:phone:workemail:waterfall@1.person:mobile:workemail:waterfall@1.fields:merge@1.field:slugify@1.field:domainify@1.website:scrape:firecrawl@1.website:scrapelist:firecrawl@1.website:extract:firecrawl@1.website:maplinks:firecrawl@1.sheet:row:append@1.sheet:row:expandappend@1.company:lookalikes:companyenrich@1.company:lookalikes:companyenrich@2.company:match:logodev@1.company:match:logodev@2.person:posts:crustdata@1.company:match:crustdata@1.company:match:crustdata@2.people:profile:workemail:crustdata@1.person:profile:workemail:crustdata@1.people:workemail:profileurl:waterfall@1.person:workemail:profileurl:waterfall@1.people:identity:email:waterfall@1.person:identity:email:waterfall@1.http:request@1.company:identity@1.people:professionalprofile:waterfall@1.people:professionalprofileurl:name@1.people:professionalprofileurl:email:waterfall@1.people:mobilenumber:professionalprofile:waterfall@1`.split(`.`),vn=r.enum(_n),yn=[`string`,`number`,`boolean`,`json`,`unknown`],bn=r.enum(yn),xn=r.union([r.number(),r.string()]),Sn=r.union([r.literal(`completed`),r.literal(`failed`),r.literal(`pending`),r.literal(`queued`),r.literal(`processing`),r.literal(`no_result`),r.literal(`skipped`)]),Cn=r.union([r.string().min(1),r.number(),r.boolean(),r.null(),r.record(r.string(),r.unknown()),r.array(r.unknown())]),wn=r.object({example_value:r.any().nullable(),schema:r.any().nullable()}),Tn=r.object({}),En=Tn.extend({image_url:r.string().url().describe(`URL to the provider's logo image.`),entity:r.string().describe(`The name of the entity.`)}),Dn=Tn.extend({emoji:r.string().describe(`Country flag emoji.`)}),On=Tn.extend({image_url:r.url().describe(`URL to the provider's logo image.`),name:r.string().describe(`The name of the avatar owner.`)}),kn=Tn.extend({attempted_providers:r.array(r.object({provider:hn})),available_providers:r.array(hn),successful_provider:hn.optional()}),An=r.enum([`linkedin`,`job`]),jn=Tn.extend({key:An}).optional(),Mn=r.object({result_status:r.enum([`completed`,`failed`])}).optional(),Nn=r.object({list:r.array(r.object({source:r.string(),description:r.string().optional(),url:r.string()}))}).optional(),Pn=r.object({numeric:r.int().min(1).max(5)}).optional(),Fn=r.object({display_value:r.object({label:r.string().optional()}),entity_logo:En.optional(),location_indicator:Dn.optional(),avatar:On.optional(),waterfall:kn.optional(),icon:jn,action_summary:Mn,sources:Nn,confidence:Pn}).partial().describe(`A map of widgets associated with this field for UI display, keyed by widget type.`),In=r.object({code:r.string(),message:r.string(),path:r.string().optional()}),Ln=r.object({code:r.string(),summary:r.string(),message:r.string()}),Rn=[`json_object`,`json_list`,`json_list_string`,`url`,`website_url`,`profile_url`,`email`,`datetime`,`currency`,`date`,`phone`,`markdown`,`text`,`int`,`decimal`,`address_line_1`,`zip_code`,`percent`],zn=r.enum(Rn);zn.nullable();const Bn=r.object({type:bn,label:r.string().nullable().optional(),format:zn.nullable().optional(),json_metadata:wn.nullable().optional()}),Vn=r.record(r.string(),Bn),Hn=r.enum([..._n,`input`]).nullable(),Un=r.enum([..._n,`input`,`system`]).nullable(),Wn=r.object({ref:Hn,config_hash:r.string().nullable()}),Gn=r.object({ref:Un,environment:gn.nullable(),config_hash:r.string().nullable(),input_hash:r.string().nullable()}),Kn=r.object({value:Cn,status:Sn,type:bn,reason:Ln.nullable(),claimed_by:Wn,resolved_by:Gn.nullable(),widgets:Fn.optional(),format:zn.nullable()}),qn=r.object({value:Cn,status:Sn,reason:Ln.nullable().optional(),type:bn.optional(),format:zn.nullable().optional(),claimed_by:Wn.optional(),resolved_by:Gn.nullable().optional(),widgets:Fn.optional()}),Jn=r.record(r.string(),r.union([Cn,qn])).openapi(`PipesInput`),Yn=r.object({id:xn,fields:r.record(xn,Kn)}),Xn=r.object({type:r.literal(`catalog`),fieldName:r.string().min(1)}),Zn=r.object({type:bn,label:r.string(),added_by:r.object({ref:r.union([vn,r.literal(`input`)]),config_hash:r.string().nullable(),pipe_index:r.number().nullable()}),format:zn.nullable(),is_primary_output:r.boolean()}),Qn=r.record(r.string(),Zn),$n=r.object({field_name:r.string().min(1),extractions:r.array(r.object({path:r.string().min(1),output_field:r.object({name:r.string().min(1),format:zn.nullable().default(null),label:r.string().optional(),type:bn})})).min(1).check(e=>{let t=new Set;Object.values(e.value).forEach(n=>{t.has(n.output_field.name)?e.issues.push({code:`custom`,message:`Output field names must be unique. The name ${n.output_field.name} exists more than once in your config.`,input:e.value}):t.add(n.output_field.name)})})}),er=r.enum([`eq`,`neq`,`gt`,`gte`,`lt`,`lte`,`contains`]),tr={eq:`equals`,neq:`not equals`,gt:`greater than`,gte:`greater than or equal`,lt:`less than`,lte:`less than or equal`,contains:`contains`},nr=[`eq`,`neq`,`gt`,`gte`,`lt`,`lte`,`contains`],rr=[`eq`,`neq`],ir=r.object({type:r.literal(`vault`),connection:r.string()}),v=r.object({strategy:r.enum([`first`]).default(`first`),connections:r.array(ir)}).nullable().optional(),ar=r.object({strategy:r.enum([`first`]).default(`first`),connections:r.array(ir).min(1,{message:`Provide your own credentials to use this object.`})}),or=r.object({strategy:r.enum([`first`]).default(`first`),connections:r.array(r.object({type:r.literal(`vault`),connection:r.string()})).max(0,{message:`This pipe does not support custom connectors.`})}).optional().nullable(),sr=r.enum(nr),cr=r.enum(rr),lr=r.enum([`failed`,`no_result`,`completed`,`skipped`]),ur=r.object({action:r.enum([`run`]).default(`run`).describe(`What to do when conditions match. Defaults to "run" (run the pipe only on matching records). Reserved for future extension.`),when:r.object({logic:r.enum([`and`,`or`]).describe(`"and" = all conditions must match. "or" = any condition matches.`),conditions:r.array(r.discriminatedUnion(`property`,[r.object({property:r.literal(`value`).describe(`Compare the actual field value. Use operators: eq, neq, gt, gte, lt, lte, contains.`),field_name:r.string().min(1,{message:`Select a target field for the condition.`}).describe(`Name of a field from input data or produced by an earlier pipe in the workflow.`),operator:sr.describe(`Comparison operator: "eq", "neq", "gt", "gte", "lt", "lte", "contains".`),value:r.union([r.number(),r.string(),r.boolean(),r.null()]).describe(`The value to compare the field against. Must be a primitive (string, number, boolean, or null).`).check(e=>{(e.value===void 0||e.value===``)&&e.issues.push({code:`custom`,input:e.value,message:`Provide a value to compare against.`}),typeof e.value==`object`&&e.value!==null&&e.issues.push({code:`custom`,input:e.value,message:`Conditions can only be defined on primitive fields. To apply a condition on a JSON value, expand it into an object first.`})})}),r.object({property:r.literal(`status`).describe(`Compare the field resolution status instead of its value. Use operators: eq, neq.`),field_name:r.string().min(1).describe(`Name of a field from input data or produced by an earlier pipe in the workflow.`),operator:cr.describe(`Status comparison operator: "eq" or "neq".`),value:lr.describe(`Field status to compare against: "completed", "no_result", "failed", or "skipped".`)})])).min(1).describe(`Array of conditions to evaluate. Each condition checks either a field value or its resolution status.`)}).describe(`Condition block. All conditions are combined with the chosen logic (and/or).`)}).describe(`Run-if gate for a pipe. When set, the pipe only runs on records matching the conditions. Example: { "when": { "logic": "and", "conditions": [{ "property": "status", "field_name": "work_email", "operator": "neq", "value": "no_result" }] } }`),dr={pipe0:{name:`pipe0`,label:`pipe0`,description:`A framework for lead and company data enrichment.`,url:`https://pipe0.com`,public:!0,hasManagedConnections:!0,allowsUserConnections:!1,connectionType:`api_key`,logoUrl:`https://imagedelivery.net/3B3AWuP94-S3Ro5eEac6JA/52f2d955-d9f3-4139-2c13-63cfd568ed00/icon`,background:{light:`#F4F4F5`,dark:`#1F1F23`},oAuthConfig:null},findymail:{name:`findymail`,label:`FindyMail`,description:`Find verified emails.`,url:`https://findymail.com`,public:!1,hasManagedConnections:!0,allowsUserConnections:!0,connectionType:`api_key`,oAuthConfig:null,logoUrl:`https://imagedelivery.net/3B3AWuP94-S3Ro5eEac6JA/9e8ce38d-a49d-42a3-4317-506f7fbec900/icon`,background:{light:`#D4F4DD`,dark:`#143822`}},hunter:{name:`hunter`,label:`HunterMail`,description:`Find email addresses and send cold emails`,url:`https://hunter.io`,public:!1,hasManagedConnections:!0,allowsUserConnections:!0,oAuthConfig:null,connectionType:`api_key`,logoUrl:`https://imagedelivery.net/3B3AWuP94-S3Ro5eEac6JA/fc66b052-6b1e-4c91-a239-6bbce08f1b00/icon`,background:{light:`#FFE4D4`,dark:`#3D1F0C`}},zerobounce:{name:`zerobounce`,label:`ZeroBounce`,description:`Email validation tools and email list cleaning`,url:`https://www.zerobounce.net`,public:!0,hasManagedConnections:!0,allowsUserConnections:!0,connectionType:`api_key`,logoUrl:`https://imagedelivery.net/3B3AWuP94-S3Ro5eEac6JA/db8e9e41-0bda-4f2c-de42-cf8ce61ee500/icon`,background:{light:`#D6F5E5`,dark:`#0E3823`},oAuthConfig:null},googlemaps:{name:`googlemaps`,label:`Google Maps`,description:`A map service by Google`,url:`https://www.google.com/maps`,public:!1,hasManagedConnections:!0,allowsUserConnections:!0,connectionType:`api_key`,logoUrl:`https://imagedelivery.net/3B3AWuP94-S3Ro5eEac6JA/1796d3c1-dfb0-4555-b2bf-0ca4930e8f00/icon`,background:{light:`#D8E8FF`,dark:`#0E2447`},oAuthConfig:null},leadmagic:{name:`leadmagic`,label:`LeadMagic`,description:`Enrichment provider`,url:`https://leadmagic.io`,public:!0,hasManagedConnections:!0,allowsUserConnections:!0,connectionType:`api_key`,logoUrl:`https://imagedelivery.net/3B3AWuP94-S3Ro5eEac6JA/508cb23a-47d4-40ee-1645-b5a8bf994c00/icon`,background:{light:`#EBD8FF`,dark:`#2A1247`},oAuthConfig:null},builtwith:{name:`builtwith`,label:`BuiltWith`,description:`BuiltWith tracks over 2500 eCommerce technologies across over 26 million eCommerce websites.`,url:`https://builtwith.com`,public:!0,hasManagedConnections:!0,allowsUserConnections:!0,connectionType:`api_key`,logoUrl:`https://imagedelivery.net/3B3AWuP94-S3Ro5eEac6JA/e675cb72-6dc2-43c8-972e-0fc9c3b73c00/icon`,background:{light:`#FFF0D4`,dark:`#3D2806`},oAuthConfig:null},perplexity:{name:`perplexity`,label:`Perplexity`,description:`AI search company`,public:!1,url:`https://perplexity.com`,hasManagedConnections:!0,allowsUserConnections:!0,connectionType:`api_key`,logoUrl:`https://imagedelivery.net/3B3AWuP94-S3Ro5eEac6JA/d17d3ba0-5c9e-43d8-17ee-3e4a70404e00/icon`,background:{light:`#D3F1EE`,dark:`#0E3633`},oAuthConfig:null},serper:{name:`serper`,label:`Serper`,description:`The World's Fastest & Cheapest Google Search API`,url:`https://serper.dev/`,public:!1,hasManagedConnections:!0,allowsUserConnections:!0,connectionType:`api_key`,logoUrl:`https://imagedelivery.net/3B3AWuP94-S3Ro5eEac6JA/04e720cd-56ea-44d3-3a31-cfc516c6f800/icon`,background:{light:`#D8E6FF`,dark:`#0C2554`},oAuthConfig:null},icypeas:{name:`icypeas`,label:`Icypeas`,description:`A popular data catalog`,url:`https://www.icypeas.com/`,public:!0,hasManagedConnections:!0,allowsUserConnections:!0,connectionType:`api_key`,logoUrl:`https://imagedelivery.net/3B3AWuP94-S3Ro5eEac6JA/d635119e-08ae-40cb-78bc-34161d422400/icon`,background:{light:`#D8EFFF`,dark:`#0C2A4A`},oAuthConfig:null},prospeo:{name:`prospeo`,label:`Prospeo`,description:`Find anyoneโs contact data.`,url:`https://prospeo.io/`,public:!0,hasManagedConnections:!0,allowsUserConnections:!0,connectionType:`api_key`,logoUrl:`https://imagedelivery.net/3B3AWuP94-S3Ro5eEac6JA/9446f572-d08c-4d48-a5a5-04747fe66000/icon`,background:{light:`#D6E2FF`,dark:`#0C2052`},oAuthConfig:null},gemini:{name:`gemini`,label:`Gemini`,description:`Google's AI service`,url:`https://gemini.google.com`,public:!0,hasManagedConnections:!0,allowsUserConnections:!0,connectionType:`api_key`,logoUrl:`https://imagedelivery.net/3B3AWuP94-S3Ro5eEac6JA/417de5dd-a8a8-4210-d7dc-6f40e54ece00/icon`,background:{light:`#DDE7FF`,dark:`#1A2C5C`},oAuthConfig:null},slack:{name:`slack`,label:`Slack`,description:`A modern business chat application.`,url:`https://slack.com`,public:!0,hasManagedConnections:!1,allowsUserConnections:!0,connectionType:`oauth_token`,logoUrl:`https://imagedelivery.net/3B3AWuP94-S3Ro5eEac6JA/676e823c-c926-4b0b-465c-121b9d1c3300/icon`,background:{light:`#F1E0FF`,dark:`#2A0E44`},oAuthConfig:{}},companyenrich:{name:`companyenrich`,label:`CompanyEnrich`,description:`A company enrichment service.`,url:`https://companyenrich.com`,public:!0,hasManagedConnections:!0,allowsUserConnections:!0,connectionType:`api_key`,logoUrl:`https://imagedelivery.net/3B3AWuP94-S3Ro5eEac6JA/e80b3a16-7b36-4733-bcbe-46f471d33100/icon`,background:{light:`#DCEEFF`,dark:`#0E2C4A`},oAuthConfig:{}},mixrank:{name:`mixrank`,label:`MixRank`,description:`Ultra-high-frequency technographic and people data for your data teams.`,url:`https://mixrank.com/`,hasManagedConnections:!0,allowsUserConnections:!1,connectionType:`api_key`,oAuthConfig:{},public:!0,logoUrl:`https://imagedelivery.net/3B3AWuP94-S3Ro5eEac6JA/a29f3095-b3f9-4b12-d21b-1c506ccd7200/icon`,background:{light:`#FFE5D4`,dark:`#3A1D08`}},clado:{name:`clado`,label:`Clado`,description:`A data provider deploying 10^5 AI agents to find contact information.`,public:!0,hasManagedConnections:!0,allowsUserConnections:!0,connectionType:`api_key`,url:`https://clado.ai`,logoUrl:`https://imagedelivery.net/3B3AWuP94-S3Ro5eEac6JA/fdf3d2d0-70be-45c3-2fe5-a8c5cac55a00/icon`,background:{light:`#E8E8EC`,dark:`#1A1A1F`},oAuthConfig:null},gmail:{name:`gmail`,label:`Gmail`,description:`Google's email service`,public:!0,hasManagedConnections:!1,allowsUserConnections:!0,connectionType:`oauth_token_bundle`,url:`https://mail.google.com`,logoUrl:`https://imagedelivery.net/3B3AWuP94-S3Ro5eEac6JA/8da8ab6b-7f7e-4c42-6abf-212ea537db00/icon`,background:{light:`#FFD8D8`,dark:`#45100F`},oAuthConfig:{}},resend:{name:`resend`,label:`Resend`,description:`An email platform built for developers.`,public:!0,hasManagedConnections:!1,allowsUserConnections:!0,url:`https://clado.ai`,connectionType:`api_key`,logoUrl:`https://imagedelivery.net/3B3AWuP94-S3Ro5eEac6JA/7c88f71b-8472-40f4-4bec-0e77eac30400/icon`,background:{light:`#EDEDEE`,dark:`#1A1A1C`},oAuthConfig:null},firecrawl:{name:`firecrawl`,label:`Firecrawl`,description:`Firecrawl is an API service that takes a URL, crawls it, and converts it into clean markdown. Firecrawl crawls all accessible subpages and gives you clean markdown for each. No sitemap required.`,public:!0,hasManagedConnections:!0,allowsUserConnections:!0,url:`https://www.firecrawl.dev`,connectionType:`api_key`,logoUrl:`https://imagedelivery.net/3B3AWuP94-S3Ro5eEac6JA/5c318569-7bf4-4276-a3f2-1f25530f7f00/icon`,background:{light:`#FFE5CC`,dark:`#3A1A05`},oAuthConfig:null},exa:{name:`exa`,label:`Exa`,description:`Exa is a search engine built for AI.`,public:!0,hasManagedConnections:!0,allowsUserConnections:!0,url:`https://exa.ai/`,connectionType:`api_key`,logoUrl:`https://imagedelivery.net/3B3AWuP94-S3Ro5eEac6JA/8ae69780-4506-4952-a90e-02e70b06af00/icon`,background:{light:`#D8DCFF`,dark:`#14154A`},oAuthConfig:null},openai:{name:`openai`,label:`OpenAI`,description:`Foundational AI company based out of San Francisco.`,public:!0,hasManagedConnections:!0,allowsUserConnections:!0,url:`https://openai.com/`,connectionType:`api_key`,logoUrl:`https://imagedelivery.net/3B3AWuP94-S3Ro5eEac6JA/7ac79c3a-bccb-4ed4-d6e5-7b300b2fd300/icon`,background:{light:`#D8EFE4`,dark:`#0C2A1C`},oAuthConfig:null},millionverifier:{name:`millionverifier`,label:`MillionVerifier`,description:`E-Mail validation service.`,public:!0,hasManagedConnections:!0,allowsUserConnections:!0,url:`https://www.millionverifier.com/`,connectionType:`api_key`,logoUrl:`https://imagedelivery.net/3B3AWuP94-S3Ro5eEac6JA/7a8bd9cb-efeb-492e-3f4c-311c9492b800/icon`,background:{light:`#D8F0DB`,dark:`#0E3215`},oAuthConfig:null},logodev:{name:`logodev`,label:`Logo.dev`,description:`Every company logo, one simple API.`,public:!0,hasManagedConnections:!0,allowsUserConnections:!0,url:`https://www.logo.dev/`,connectionType:`api_key`,logoUrl:`https://imagedelivery.net/3B3AWuP94-S3Ro5eEac6JA/1defa51b-5c01-4034-1030-60f68aa46400/icon`,background:{light:`#F4ECD4`,dark:`#2C2406`},oAuthConfig:null},crustdata:{name:`crustdata`,label:`Crustdata`,description:`Real-time company & people data`,public:!0,hasManagedConnections:!0,allowsUserConnections:!0,url:`https://crustdata.com/`,connectionType:`api_key`,logoUrl:`https://imagedelivery.net/3B3AWuP94-S3Ro5eEac6JA/fa05be24-d174-40f0-69c2-4fdb43c6be00/icon`,background:{light:`#FFE2D2`,dark:`#3C1A08`},oAuthConfig:null},amplemarket:{name:`amplemarket`,label:`Amplemarket`,description:`Sales data platform`,public:!0,hasManagedConnections:!0,allowsUserConnections:!0,url:`https://www.amplemarket.com`,connectionType:`api_key`,logoUrl:`https://imagedelivery.net/3B3AWuP94-S3Ro5eEac6JA/adecf16b-4187-409b-d77f-16fc07fc6100/icon`,background:{light:`#FFD8E1`,dark:`#45102A`},oAuthConfig:null}},fr=[`if`,`elsif`,`else`,`endif`,`unless`,`endunless`,`for`,`endfor`,`break`,`continue`,`output`],pr=[`json`,`escape`,`escape_once`,`default`,`upcase`,`downcase`,`size`,`join`,`first`,`last`,`replace`,`truncate`,`strip`,`newline_to_br`,`url_encode`],mr=/^[A-Z][A-Z0-9_]*$/,hr=/^[A-Z][A-Z0-9_]*$/,gr=/^[a-zA-Z_][a-zA-Z0-9_]*$/,_r=`SECRETS`,vr=`CONSTANTS`,yr=new Set(fr),br=new Set(pr),xr=e=>`{${e}}`;var Sr=class extends i{constructor(e){super(),this.values=e}liquidMethodMissing(e){let t=String(e);if(!mr.test(t))throw Error(`Secret key "${t}" must be uppercase letters, digits, and underscores (e.g. SECRETS.API_KEY).`);if(!(t in this.values))throw Error(`Missing secret: SECRETS.${t}`);return this.values[t]}},Cr=class extends i{constructor(e){super(),this.values=e}liquidMethodMissing(e){let t=String(e);if(!hr.test(t))throw Error(`Constant key "${t}" must be uppercase letters, digits, and underscores (e.g. CONSTANTS.PROMO).`);if(!(t in this.values))throw Error(`Missing constant: CONSTANTS.${t}`);return this.values[t]}};function wr(e){let t=e.trim();if(!t)throw Error(`Empty {% output %} tag โ expected at least a name (e.g. {% output rec, type: "string", description: "..." %}).`);let n=t.match(/^([a-zA-Z_][a-zA-Z0-9_]*)\s*(?:,|$)/);if(!n||!n[1])throw Error(`Invalid {% output %} tag โ expected a name as the first argument, got: ${t}`);let r=n[1];if(!gr.test(r))throw Error(`Invalid {% output %} tag name "${r}" โ must start with a letter or underscore and contain only letters, digits, and underscores.`);let i=t.slice(n[0].length).trim(),a={},o=/([a-zA-Z_][a-zA-Z0-9_]*)\s*:\s*(?:"((?:\\.|[^"\\])*)"|'((?:\\.|[^'\\])*)'|(true|false))\s*(?:,|$)/g,s=0,c;for(;(c=o.exec(i))!==null;){s=c.index+c[0].length;let e=c[1],t=c[2]??c[3]??c[4];c[4]===void 0?a[e]=t:a[e]=t===`true`}if(i&&s<i.length)throw Error(`Invalid {% output %} tag โ could not parse arguments after "${i.slice(s)}". Expected key: "value" pairs.`);let l=a.type;if(typeof l!=`string`||!l)throw Error(`{% output ${r} %} tag is missing required "type" argument (e.g. type: "string").`);let u=a.description;if(typeof u!=`string`||!u)throw Error(`{% output ${r} %} tag is missing required "description" argument (e.g. description: "What this means.").`);return{name:r,type:l,description:u,required:typeof a.required==`boolean`?a.required:!0,format:typeof a.format==`string`?a.format:null,schemaRef:typeof a.schema==`string`?a.schema:null}}function Tr(){let e=new a({strictVariables:!1,strictFilters:!0,jsTruthy:!0,greedy:!1,catchAllErrors:!1,ownPropertyOnly:!0});e.registerTag(`output`,{parse(e,t){let n=wr(e.args);this.outputDecl=n},render(e,t){let n=this.outputDecl;if(!(e.globals&&e.globals.__outputAllowed))throw Error(`{% output %} is not allowed in this template (referenced output "${n.name}").`);t.write(xr(n.name))}});for(let t of Object.keys(e.tags))yr.has(t)||delete e.tags[t];for(let t of Object.keys(e.filters))br.has(t)||delete e.filters[t];return e}let Er=null;function Dr(){return Er||=Tr(),Er}async function Or(e,t,n={}){let r=Dr(),i=n.renderLimitMs??250,a={...t.inputs??{},[_r]:new Sr(t.secrets??{}),[vr]:new Cr(t.constants??{})},o={globals:{__outputAllowed:n.outputAllowed===!0},renderLimit:i},s=await Promise.race([r.parseAndRender(e,a,o),new Promise((e,t)=>setTimeout(()=>t(Error(`Liquid render exceeded ${i}ms.`)),i))]);return String(s)}function kr(e,t,n={}){let r=Dr(),i=n.renderLimitMs??250,a={...t.inputs??{},[_r]:new Sr(t.secrets??{}),[vr]:new Cr(t.constants??{})},o=r.parseAndRenderSync(e,a,{globals:{__outputAllowed:n.outputAllowed===!0},renderLimit:i});return String(o)}function Ar(e){return Dr().parse(e)}function jr(e){let t=Dr().parse(e),n={scopeStack:[],guardStack:[],inputs:new Map,secrets:new Set,constants:new Set,outputs:[],forDepth:0};Mr(t,n);let r={};for(let[e,t]of n.inputs)r[e]={required:t.unguardedRefs>0};return{inputs:r,secrets:[...n.secrets],constants:[...n.constants],outputs:n.outputs}}function Mr(e,t){for(let n of e)Nr(n,t)}function Nr(e,t){let n=e;if(n.value&&typeof n.value==`object`&&`filters`in n.value&&`initial`in n.value){Rr(n.value,t,!1);return}if(typeof n.name==`string`){Pr(n,t);return}}function Pr(e,t){switch(e.name){case`for`:Fr(e,t);return;case`if`:case`unless`:Ir(e,t);return;case`output`:Lr(e,t);return;case`break`:case`continue`:return;default:throw Error(`Unhandled liquid tag in analyzer: ${e.name}`)}}function Fr(e,t){if(t.forDepth+=1,t.forDepth>3)throw Error(`Liquid template exceeds maximum nested {% for %} depth of 3.`);e.collection!==void 0&&e.collection!==null&&zr(e.collection,t,!1);let n=typeof e.variable==`string`?e.variable:null;n&&t.scopeStack.push(n),Mr(Array.isArray(e.templates)?e.templates:[],t),n&&t.scopeStack.pop(),Mr(Array.isArray(e.elseTemplates)?e.elseTemplates:[],t),--t.forDepth}function Ir(e,t){let n=Array.isArray(e.branches)?e.branches:[];e.name;for(let e=0;e<n.length;e++){let r=n[e],i=r.value,a=null;e===0&&i&&typeof i==`object`&&(a=Hr(i.initial)),a&&t.guardStack.push(a),i&&typeof i==`object`&&Rr(i,t,!1),Mr(r.templates,t),a&&t.guardStack.pop()}Mr(Array.isArray(e.elseTemplates)?e.elseTemplates:[],t)}function Lr(e,t){let n=e.outputDecl;if(!n){let t=e.token?.args;typeof t==`string`&&(n=wr(t))}if(!n)throw Error(`Internal: {% output %} tag missing parsed declaration.`);t.outputs.push({name:n.name,type:n.type,description:n.description,required:n.required,format:n.format,schemaRef:n.schemaRef??void 0})}function Rr(e,t,n){let r=e.filters.some(e=>e.name===`default`),i=n||r;for(let n of e.initial.postfix)Ur(n)&&Vr(n,t,i);for(let n of e.filters)for(let e of n.args)Br(e,t)}function zr(e,t,n){Ur(e)&&Vr(e,t,n)}function Br(e,t){if(Array.isArray(e)){let n=e[1];n&&zr(n,t,!1)}else zr(e,t,!1)}function Vr(e,t,n){let r=e.props;if(r.length===0)return;let i=r[0];if(!i||!Wr(i))return;let a=i.content;if(t.scopeStack.includes(a))return;if(a===`SECRETS`){let e=r[1];if(!e||!Wr(e))throw Error(`Invalid SECRETS reference โ expected SECRETS.KEY (got ${qr(r)}).`);let n=e.content;if(!mr.test(n))throw Error(`Invalid SECRETS key "${n}" โ must be uppercase letters, digits, and underscores (e.g. SECRETS.API_KEY).`);t.secrets.add(n);return}if(a===`CONSTANTS`){let e=r[1];if(!e||!Wr(e))throw Error(`Invalid CONSTANTS reference โ expected CONSTANTS.KEY (got ${qr(r)}).`);let n=e.content;if(!hr.test(n))throw Error(`Invalid CONSTANTS key "${n}" โ must be uppercase letters, digits, and underscores (e.g. CONSTANTS.PROMO).`);t.constants.add(n);return}let o=n||t.guardStack.includes(a),s=t.inputs.get(a)??{unguardedRefs:0,guardedRefs:0};o?s.guardedRefs+=1:s.unguardedRefs+=1,t.inputs.set(a,s)}function Hr(e){if(e.postfix.length===1){let t=e.postfix[0];if(t&&Ur(t)&&t.props.length===1){let e=t.props[0];if(e&&Wr(e))return e.content}}if(e.postfix.length===3){let[t,n,r]=e.postfix;if(t&&n&&r&&Ur(t)&&t.props.length===1){let e=t.props[0];if(e&&Wr(e)&&Gr(n)&&Kr(r,[`==`,`!=`]))return e.content}}return null}function Ur(e){return e.kind===o.PropertyAccess}function Wr(e){return!!e&&typeof e==`object`&&e.kind===o.Word}function Gr(e){if(e.kind!==o.Literal)return!1;let t=e.literal;return t===`nil`||t===`null`}function Kr(e,t){return e.kind===o.Operator?t.includes(e.operator):!1}function qr(e){let t=[];for(let n of e)n&&Wr(n)?t.push(n.content):t.push(`?`);return t.join(`.`)}function Jr(e){let t=e.split(`_`),n=t[0],r=t.slice(1).join(`_`);if(!n)throw Error(`connection string of invalid format`);try{return{provider:hn.parse(n),id:r}}catch{throw Error(`Connection string ${e}: Failed to parse provider name.`)}}function Yr(e){return`${e.provider}_${e.id}`}const Xr=new s;function Zr(e){return Xr.validateSchema(e)}function Qr(e){let t=!1;return c(e,{},e=>{e.type&&[`string`,`number`,`boolean`,`integer`,`null`].includes(e.type)&&(t=!0),e.type===`object`&&e.properties&&Object.keys(e.properties).length>0&&(t=!0),e.type===`array`&&e.items&&(t=!0)}),!t}const $r=[`gemini-flash-latest`,`openai-gpt-latest`,`openai-gpt-mini-latest`],ei={"gemini-flash-latest":{provider:`gemini`,rateLimitOperation:`gemini_25_flash_preview`,rateLimitRatio:1,allowManagedConnection:!0,defaultCredits:.5,billingMode:`always`},"openai-gpt-latest":{provider:`openai`,rateLimitOperation:`openai_gpt-5`,rateLimitRatio:1,allowManagedConnection:!0,defaultCredits:1,billingMode:`always`},"openai-gpt-mini-latest":{provider:`openai`,rateLimitOperation:`openai_gpt-5-mini`,rateLimitRatio:1,allowManagedConnection:!0,defaultCredits:.5,billingMode:`always`}};function ti(e,t){let n={};for(let r of $r){let i=ei[r],a=`${e}-${r}`;n[a]={credits:{default:t?.[r]??i.defaultCredits},allowManagedConnection:!0,provider:i.provider,mode:i.billingMode}}return n}function ni(e,t){return`${t}-${e}`}function ri(e){let t=ei[e];if(!t)throw Error(`Unknown AI model: ${e}`);return[t.provider]}function ii(e){let t=ei[e];if(!t)throw Error(`Unknown AI model: ${e}`);return[{provider:t.provider,rateLimitRatio:t.rateLimitRatio,rateLimitOperation:t.rateLimitOperation,allowManagedConnection:t.allowManagedConnection}]}function ai(){let e=new Set;for(let t of $r)e.add(ei[t].provider);return[...e]}function oi(e){if(!e?.requires)return;let t=[];e.requires.connection&&t.push(ln(e.requires.connection));for(let n of e.requires.fields??[])t.push(un(e=>n.split(`.`).reduce((e,t)=>e==null?e:e[t],e),`Set ${n} first`));if(t.length!==0)return t.length===1?t[0]:dn(...t)}function si(e,t,n){let i={exampleValue:null,jsonSchema:null},a=t.fieldAnnotations.annotations[e];if(a?.json_metadata?.example_value&&(i.exampleValue=a.json_metadata.example_value||null),a?.json_metadata?.schema&&(i.jsonSchema=a.json_metadata.schema||null),i.exampleValue&&i.jsonSchema||!t.resolvedFieldNames[e])return i;let o=pn(e,n,t),s=an(o.fieldName)?_(o.fieldName):null;return s?.jsonMeta?{jsonSchema:s.jsonMeta.zodSchema?r.toJSONSchema(s.jsonMeta.zodSchema):null,exampleValue:s.jsonMeta.exampleValue||null}:i}const y=r.registry();{let e=y._map,t=y.get.bind(y);y.get=n=>{let r=n;for(;r;){let t=e.get(r);if(typeof t==`function`)return t;r=r?._zod?.parent}return t(n)}}const b=r.registry(),x={text_input:r.coerce.string(),textarea_input:r.string(),prompt_input:r.object({template:r.string(),json_schemas:r.record(r.string(),r.record(r.string(),r.unknown()))}),template_input:r.string(),tagged_text_input:r.coerce.string().nullable(),boolean_input:r.boolean(),nullable_boolean_input:r.boolean().nullable(),select_input:r.string(),multi_select_input:r.array(r.string()),async_multi_select_input:r.array(r.string()),int_input:r.coerce.number().int().nullable(),number_input:r.coerce.number().optional(),min_max_int_input:r.object({min:r.number().nullable(),max:r.number().nullable()}),include_exclude_input:r.object({include:r.array(r.string()),exclude:r.array(r.string())}),include_exclude_select_input:r.object({include:r.array(r.string()),exclude:r.array(r.string())}),async_include_exclude_select_input:r.object({include:r.array(r.string()),exclude:r.array(r.string())}),exact_range_input:r.record(r.string(),r.number().nullable()),range_input:r.object({from:r.number().nullable(),to:r.number().nullable()}),date_range_input:r.record(r.string(),r.string()),multi_create_input:r.array(r.string()),ordered_multi_create_input:r.array(r.string()),tagged_ordered_multi_create_input:r.array(r.string()),key_value_list_input:r.array(r.object({key:r.string(),value:r.string()})),connector_input:r.object({connections:r.array(r.object({type:r.string(),connection:r.string()}))}).nullable(),providers_input:r.array(r.object({provider:r.string()})),json_extraction_input:r.record(r.string(),r.unknown()),pipes_run_if_input:r.record(r.string(),r.unknown()).nullable(),fields_select_input:r.array(r.object({field_name:r.string()})),output_field_input:r.object({alias:r.string(),enabled:r.boolean()}),json_schema_input:r.record(r.string(),r.unknown()),cursor_pagination_metadata:r.object({limit:r.number()}),context_select_input:r.union([r.string(),r.array(r.string())])},ci=(e,t)=>{let n=x.multi_create_input;return e.maxItems&&(n=n.max(e.maxItems)),n=e.minItems?n.min(e.minItems):n.default([]),t.add(n,{type:`multi_create_input`,...e}),n},li=(e,t)=>{let n=x.ordered_multi_create_input;return e.maxItems&&(n=n.max(e.maxItems)),n=e.minItems?n.min(e.minItems):n.default([]),t.add(n,{type:`ordered_multi_create_input`,...e}),n},ui=/^\s*\{\{\s*[a-zA-Z_][a-zA-Z0-9_.]*(?:\s*\|\s*[^}]+)?\s*\}\}\s*$/,di=/\{\{|\{%/,fi=(e,t)=>{let n=x.tagged_ordered_multi_create_input;e.maxItems&&(n=n.max(e.maxItems)),n=n.check(e=>{let t=e;(t.value??[]).forEach((e,n)=>{let r=ui.test(e),i=di.test(e);!r&&i&&t.issues.push({code:`custom`,input:e,path:[n],message:`Each entry must be either plain text or a single field reference โ not mixed.`})})}),n=e.minItems?n.min(e.minItems):n.default([]);let r={type:`tagged_ordered_multi_create_input`,...e};if(t===y){let i=t=>{let n=t.validationContext,i=n?Object.entries(n.fieldDefinitions).filter(([e,n])=>n.added_by.config_hash!==t.hash).filter(([t,n])=>!e.expectedTagType||n.type===e.expectedTagType).map(([e,t])=>({...t,resolvedName:e})):[];return{...r,inputFields:i}};return i.staticMeta={...r,inputFields:[]},t.add(n,i),n}return t.add(n,r),n},pi=(e,t)=>{let n=x.key_value_list_input;e.maxItems&&(n=n.max(e.maxItems)),n=n.check(e=>{let t=e;(t.value??[]).forEach((e,n)=>{Vi({value:e.key,issues:t.issues},!1,[n,`key`]),Vi({value:e.value,issues:t.issues},!1,[n,`value`])})}),n=n.default([]);let r={type:`key_value_list_input`,...e},i=e=>{let t=e.validationContext,n=t?Object.entries(t.fieldDefinitions).filter(([t,n])=>n.added_by.config_hash!==e.hash).map(([e,t])=>({...t,resolvedName:e})):[];return{...r,inputFields:n}};return i.staticMeta={...r,inputFields:[]},t.add(n,i),n},mi=(e,t)=>{let n=e.maxItems||200,r=x.include_exclude_input.check(e=>{e.value.include.length>n&&e.issues.push({code:`custom`,input:e.value.include,path:[`include`],message:`Array must contain at most ${n} element(s)`}),e.value.exclude.length>n&&e.issues.push({code:`custom`,input:e.value.exclude,path:[`exclude`],message:`Array must contain at most ${n} element(s)`})}).default({include:[],exclude:[]});return e.description&&r.describe(e.description),t.add(r,{type:`include_exclude_input`,...e}),r},hi=()=>{let e=$n;return y.add(e,e=>{let t=e.validationContext;return{label:``,description:``,type:`json_extraction_input`,fields:Object.entries(t.fieldDefinitions).filter(([e,t])=>e.toLowerCase()!==`id`&&t.type===`json`).map(([e,n])=>{let{jsonSchema:r,exampleValue:i}=si(e,t,n)||{};return{fieldName:e,fieldLabel:n.label,schema:r||null,exampleValue:i||null}}),path:`config.json_extraction`,groupPath:`config.json_extraction`,sectionKey:`general`}}),e},gi=(e,t)=>{let n=r.array(r.object({provider:r.enum(e.availableProviders)})).max(e.maxItems||99).min(1).default(e.defaultProviders),i=e.availableProviders.map(t=>{let n=e.providerCredits?.[t];return{value:t,label:dr[t].label,widgets:{provider_logo:{provider:t},...typeof n==`number`?{pricing:{credits:n}}:{}}}});return t.add(n,{label:`Provider sequence`,description:``,path:`config.providers`,groupPath:`config.providers`,type:`providers_input`,options:i,defaultProviders:e.defaultProviders,maxItems:e.maxItems,sectionKey:e.sectionKey}),n},_i=(e,t)=>{let n=e.maxItems||200,r=x.include_exclude_select_input.check(e=>{e.value.include.length>n&&e.issues.push({code:`custom`,input:e.value.include,path:[`include`],message:`Array must contain at most ${n} element(s)`}),e.value.exclude.length>n&&e.issues.push({code:`custom`,input:e.value.exclude,path:[`exclude`],message:`Array must contain at most ${n} element(s)`})}).default({include:[],exclude:[]});return e.description&&r.describe(e.description),t.add(r,{type:`include_exclude_select_input`,...e}),r},vi=(e,t)=>{let n=x.exact_range_input.check(t=>{e.min===void 0&&e.max===void 0||Object.values(t.value).filter(e=>e!==null).some(t=>e.min!=null&&t<e.min||e.max!=null&&t>e.max)&&t.issues.push({code:`custom`,input:t.value,message:`Values must be between ${e.min??`any`} and ${e.max??`any`}`})});return e.description&&n.describe(e.description),t.add(n,{type:`exact_range_input`,...e}),n},yi=(e,t)=>{let n=r.object({from:r.number().optional().nullable(),to:r.number().optional().nullable()}).default({from:null,to:null}),i=n;return(e.min!==void 0||e.max!==void 0)&&(i=n.check(t=>{Object.values(t.value).filter(e=>e!=null).every(t=>(e?.min==null||t>=e.min)&&(e.max==null||t<=e.max))||t.issues.push({code:`custom`,input:t.value,message:`Values must be between ${e.min??`any`} and ${e.max??`any`}`}),t.value.from&&t.value.to&&t.value.from>t.value.to&&t.issues.push({code:`custom`,input:t.value,message:`'From' value must be smaller than 'to' value.`})})),e.description&&i.describe(e.description),t.add(i,{type:`range_input`,...e}),i},bi=(e,t)=>{let n=x.date_range_input.check(e=>{let t=/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}/;for(let[n,r]of Object.entries(e.value))r&&!t.test(r)&&e.issues.push({code:`custom`,input:r,path:[n],message:`Must be an ISO datetime string`})});return e.description&&n.describe(e.description),t.add(n,{type:`date_range_input`,...e}),n},xi=(e,t)=>{let n=x.boolean_input.default(e.defaultValue);return e.description&&n.describe(e.description),t.add(n,{...e,required:!1,type:`boolean_input`}),n},Si=(e,t)=>{let n=x.nullable_boolean_input.default(e.defaultValue);return e.description&&n.describe(e.description),t.add(n,{...e,required:!1,type:`nullable_boolean_input`,defaultValue:e.defaultValue}),n},Ci=(e,t)=>{let n=x.text_input;return e.minLength&&(n=n.min(e.minLength)),e.maxLength&&(n=n.max(e.maxLength)),e.pattern&&(n=n.regex(new RegExp(e.pattern))),e.minLength||(n=n.nullable()),e.description&&n.describe(e.description),t.add(n,{type:`text_input`,...e}),n},wi=(e,t)=>{let n=x.textarea_input;return e.minLength&&(n=n.min(e.minLength)),e.maxLength&&(n=n.max(e.maxLength)),e.description&&n.describe(e.description),t.add(n,{type:`textarea_input`,...e}),n},Ti=(e,t,n=`pipe_io`)=>{let i=r.object({alias:r.string().default(``).describe(`Rename this output field. Leave empty to use default name.`),enabled:r.boolean().default(!0).describe(`Whether to include this field in the output.`)}).describe(`Output field '${e.fieldName}'`);return t.add(i,{type:`output_field_input`,label:`Rename *${e.fieldName}*`,placeholder:e.fieldName,path:`config.output_fields.${e.fieldName}`,description:void 0,groupPath:`config.output_fields`,sectionKey:n}),i.default({alias:``,enabled:!0})},Ei=(e,t)=>{let n=x.int_input.optional().check(t=>{if(t.value==null){e.required!==!1&&t.issues.push({code:`custom`,input:t.value,message:`Required`});return}e.min!=null&&t.value<e.min&&t.issues.push({code:`custom`,input:t.value,message:`Value must be at least ${e.min}`}),e.max!=null&&t.value>e.max&&t.issues.push({code:`custom`,input:t.value,message:`Value must be at most ${e.max}`})});return e.description&&n.describe(e.description),t.add(n,{...e,type:`int_input`}),n},Di=(e,t)=>{let n=x.number_input.check(t=>{if(t.value===void 0){e.required&&t.issues.push({code:`custom`,input:t.value,message:`Required`});return}e.min!=null&&t.value<e.min&&t.issues.push({code:`custom`,input:t.value,message:`Value must be at least ${e.min}`}),e.max!=null&&t.value>e.max&&t.issues.push({code:`custom`,input:t.value,message:`Value must be at most ${e.max}`})});return e.description&&n.describe(e.description),t.add(n,{...e,type:`number_input`}),n},Oi=(e,t)=>{let n=x.json_schema_input,r=e.required?n:n.optional();return r.check(e=>{Zr(e.value)||e.issues.push({code:`custom`,input:e.value,message:`JSON schema is invalid. Check your input.`})}),e.allowEmpty||(r=r.check(e=>{Qr(e.value)&&e.issues.push({code:`custom`,message:`JSON Schema must define a meaningful value. Can not be an empty object or array.`,input:e.value})})),t.add(r,{...e,type:`json_schema_input`}),r},ki=(e,t)=>{let n=e.options.map(e=>e.value),r=new Set([...n,``]),i=x.select_input.check(t=>{if(t.value===``){e.required&&t.issues.push({code:`custom`,input:t.value,message:`Required`});return}r.has(t.value)||t.issues.push({code:`custom`,input:t.value,message:`Must be one of: ${[...r].filter(e=>e).join(`, `)}`})}),a=e.defaultValue?i.default(e.defaultValue):i;return e.description&&a.describe(e.description),t.add(a,{type:`select_input`,...e}),a},Ai=({billableOperations:e,...t},n)=>{let i=r.enum($r).default(t.defaultValue||`gemini-flash-latest`);return n.add(i,{type:`select_input`,options:$r.map(t=>{let n=e[Object.keys(e).find(e=>e.endsWith(`-${t}`))];if(!n)throw Error(`Unable to find billing info for model ${t}`);return{label:t,value:t,widgets:{logo:{url:dr[ei[t].provider].logoUrl},pricing:{credits:n.credits.default}}}}),required:!0,description:``,label:`AI Models`,...t}),i},ji=(e,t)=>{let n=e.options.map(e=>e.value),i=new Set(n),a=r.array(r.enum(Array.from(i))).check(t=>{e.required&&t.value.length===0&&t.issues.push({code:`custom`,input:t.value,message:`Required`}),t.value.forEach((e,r)=>{i.has(e)||t.issues.push({code:`custom`,input:e,path:[r],message:`Must be one of: ${n.join(`, `)}`})})});return t.add(a,{type:`multi_select_input`,...e}),a},Mi=(e,t)=>{let n=e.required?x.context_select_input.check(e=>{(e.value===``||Array.isArray(e.value)&&e.value.length===0)&&e.issues.push({code:`custom`,input:e.value,message:`Required`})}):x.context_select_input,r=e.defaultValue?n.default(e.defaultValue):n,i=e.enabledIf??oi(e.optionsDef);return t.add(r,{type:`context_select_input`,...e,enabledIf:i,options:[]}),r},Ni=(e,t)=>{let n=x.min_max_int_input.check(t=>{for(let n of[`min`,`max`]){let r=t.value[n];if(r!=null){if(!Number.isInteger(r)){t.issues.push({code:`custom`,input:r,path:[n],message:`Must be an integer`});continue}(r<e.min||r>e.max)&&t.issues.push({code:`custom`,input:r,path:[n],message:`Must be between ${e.min} and ${e.max}`})}}});return t.add(n,{type:`min_max_int_input`,...e}),n},Pi=(e,t)=>{let n=x.async_multi_select_input.check(t=>{e.required&&t.value.length===0&&t.issues.push({code:`custom`,input:t.value,message:`Required`})});return t.add(n,{type:`async_multi_select_input`,...e}),n},Fi=(e,t)=>{let n=e.maxItems||200,r=x.async_include_exclude_select_input.check(e=>{e.value.include.length>n&&e.issues.push({code:`custom`,input:e.value.include,path:[`include`],message:`Array must contain at most ${n} element(s)`}),e.value.exclude.length>n&&e.issues.push({code:`custom`,input:e.value.exclude,path:[`exclude`],message:`Array must contain at most ${n} element(s)`})}).default({include:[],exclude:[]});return t.add(r,{type:`async_include_exclude_select_input`,...e}),r};function Ii(e,t){let n=e.reduce((e,t)=>{let n=t.groupPath||``;return e[n]??=[],e[n].push(t),e},{});return Object.entries(n).map(([e,n])=>({type:`group`,groupPath:e,description:t[e]?.description,label:t[e]?.label,iconKey:t[e]?.iconKey,defaultExpand:!!t[e]?.defaultExpand,order:t[e]?.order??99,fields:n.sort((e,t)=>(e.order||0)-(t.order||0))})).sort((e,t)=>e.order-t.order)}const S=()=>{let e=ur.nullish();return y.add(e,e=>{let t=e.validationContext;return{label:``,description:``,type:`pipes_run_if_input`,groupPath:`run_if`,path:`run_if`,sectionKey:`pipe_io`,fields:Object.entries(t.fieldDefinitions).filter(([e,t])=>t.type!==`json`&&e.toLowerCase()!==`id`).map(([e,t])=>({fieldName:e,fieldLabel:t.label,format:t.format,type:t.type}))}}),e},Li={pipe_io:{type:`form_section`,label:`In- and outputs`,description:`Configure output fields and reassign inputs.`,path:`config.pipe_io`},"config.filters":{type:`form_section`,label:`Filters`,path:`config.filters`,description:`Narrow down the search output`},general:{type:`form_section`,path:`general`,label:`Behavior`},pagination:{type:`form_section`,path:`pagination`}},Ri={general:1,pagination:2,"config.filters":3,pipe_io:10};function zi({fieldMetadata:e,store:t}){if(e.type===`context_select_input`||e.type===`tagged_text_input`){t.field_options??={};let n=t.field_options[e.path]?.options||[],r=e.optionsDef?.widgets;e.options=r?n.map(e=>({...e,widgets:{...r,...e.widgets??{}}})):n}return e}const Bi=({schema:e,groupPathMatch:t,extractFromSchema:n,sectionOrder:i=Ri,sectionMap:a=Li,store:o,formResolvers:s})=>{let c={};function l(e){let i=n(e);if(i){c[i.sectionKey]??={type:`section`,groups:[],metadata:a[i.sectionKey]};let e=c[i.sectionKey],n=e?.groups.find(e=>e.groupPath===i.groupPath);if(n){let e=zi({fieldMetadata:i,store:o,formResolvers:s});e&&n.fields.push(e)}else{let n=t[i.groupPath],r=zi({fieldMetadata:i,store:o,formResolvers:s});r&&e.groups.push({groupPath:i.groupPath,fields:[r],type:`group`,label:n?.label,defaultExpand:!!n?.defaultExpand,description:n?.description,iconKey:n?.iconKey,order:n?.order})}}if(typeof e==`object`&&`unwrap`in e&&typeof e.unwrap==`function`&&l(e.unwrap()),e instanceof r.ZodObject)for(let t of Object.values(e.shape))l(t)}l(e);let u=Object.values(c);return u.forEach(e=>{e.groups.sort((e,t)=>(e.order??99)-(t.order??99))}),[...u].filter(e=>e.groups.length!==0).sort((e,t)=>(i?.[e.metadata?.path||``]??99)-(i?.[t.metadata?.path||``]??99))};function Vi(e,t,n=[]){let r=e.value;if(!(typeof r!=`string`||!r))try{let i=jr(r);!t&&i.outputs.length>0&&e.issues.push({code:`custom`,input:r,path:n,message:`{% output %} tags are not allowed in this field.`})}catch(t){e.issues.push({code:`custom`,input:r,path:n,message:t instanceof Error?t.message:String(t)})}}const Hi=e=>{let t=(e.supportedTags??[]).includes(`output`),n=r.object({template:r.string().min(10).check(e=>Vi(e,t,[`template`])).describe(e.description||'Liquid prompt with `{{ field }}` input refs, `{{ field | default: "" }}` for optional refs, `{{ SECRETS.KEY }}` for secrets, `{{ CONSTANTS.KEY }}` for plaintext constants, and `{% output name, type: "string", description: "..." %}` to declare model outputs. Supports `{% if %}` / `{% for %}` control flow. Example: "Summarize {{ name }}. {% output summary, type: \\"string\\", description: \\"One-line summary\\" %}"'),json_schemas:r.record(r.string().min(1,`Schema name cannot be empty`),r.record(r.string(),r.any())).optional().describe(`JSON schemas for output fields with type="json". Keys are referenced via schema="<name>" in output tags.`)});return y.add(n,t=>{let n=t.validationContext;return{type:`prompt_input`,inputFields:Object.entries(n.fieldDefinitions).filter(([e,n])=>n.added_by.config_hash!==t.hash).map(([e,t])=>({...t,resolvedName:e})),...e}}),n},Ui=e=>{let t=r.string();e.required&&(t=t.min(1));let n=t.check(e=>Vi(e,!1,[])).describe(e.description||'Liquid template with `{{ field }}` input refs, `{{ field | default: "" }}` for optional refs, `{{ SECRETS.KEY }}` for secrets, `{{ CONSTANTS.KEY }}` for plaintext constants, and `{% if %}` / `{% for %}` control flow. Example: "Write to {{ name }} about {{ topic | default: \\"the project\\" }}."');return y.add(n,t=>{let n=t.validationContext;return{type:`template_input`,inputFields:Object.entries(n.fieldDefinitions).filter(([e,n])=>n.added_by.config_hash!==t.hash).map(([e,t])=>({...t,resolvedName:e})),rows:e.rows||10,...e}}),n},C=e=>{let t=`${e.multiline?`Multi-line`:`Single-line`} ${e.expectedTagType} value, optionally containing \`{{ field }}\` Liquid input refs (use \`| default: ""\` for optional refs), \`{{ SECRETS.KEY }}\` for encrypted secrets, and \`{{ CONSTANTS.KEY }}\` for plaintext constants.`,n=r.coerce.string();e.minLength&&(n=n.min(e.minLength)),e.maxLength&&(n=n.max(e.maxLength)),e.pattern&&(n=n.regex(new RegExp(e.pattern))),e.minLength||(n=n.nullable()),n=n.check(e=>Vi(e,!1,[])),n=n.describe(e.description||t);let i=e.optionsDef?{...e.optionsDef,enabledIf:e.optionsDef.enabledIf??oi(e.optionsDef)}:void 0,a={type:`tagged_text_input`,...e,optionsDef:i,options:[]},o=t=>{let n=t.validationContext,r=Object.entries(n.fieldDefinitions).filter(([e,n])=>n.added_by.config_hash!==t.hash).filter(([t,n])=>n.type===e.expectedTagType).map(([e,t])=>({...t,resolvedName:e}));return{...a,inputFields:r}};return o.staticMeta={...a,inputFields:[]},y.add(n,o),n};function Wi(e,t){y.add(e,({userConnections:e,pipeEntry:n})=>{let r=new Set(n.allowedUserConnectionProviders),i=e.filter(e=>r.has(e.provider));return{label:``,description:``,groupPath:`connector`,path:`connector`,connectorMode:t,type:`connector_input`,sectionKey:`pipe_io`,supportsUserConnections:r.size>0,filteredConnections:i.map(e=>({provider:e.provider,connection:Yr({id:e.public_id,provider:e.provider})}))}})}const Gi=()=>{let e=ar;return Wi(e,`required`),e},w=()=>{let e=v;return Wi(e,`optional`),e},T=()=>{let e=or;return Wi(e,`disabled`),e};function Ki(e,t){return Object.entries(t.fieldDefinitions).filter(([t,n])=>n.added_by.config_hash!==e&&t.toLowerCase()!==`id`).map(([e,t])=>({label:e,value:e,type:t.type,format:t.format}))}const E=e=>{let t=r.object({alias:r.string().describe(`Override field name mapping. Leave empty to use default.`)});return y.add(t,t=>{let n=t.validationContext;return{type:`select_input`,required:!1,sectionKey:`pipe_io`,defaultValue:void 0,placeholder:e.fieldName,options:Ki(t.hash,n),path:`config.input_fields.${e.fieldName}.alias`,label:`Assign *${e.fieldName}* to:`,description:``,groupPath:`config.input_fields`,multiple:!1}}),t.default({alias:``})},D=e=>gi(e,y),qi=e=>{let t=x.fields_select_input.check(e=>{e.value.forEach((t,n)=>{t.field_name.length<1&&e.issues.push({code:`custom`,input:t.field_name,path:[n,`field_name`],message:`field_name must not be empty`})})});return t=e.minItems?t.min(e.minItems):t.default([]),y.add(t,t=>{let n=t.validationContext;return{type:`fields_select_input`,options:Object.entries(n.fieldDefinitions).filter(([e])=>e.toLowerCase()!==`id`).map(([e,t])=>({fieldName:e,fieldLabel:e,type:t.type})).map(e=>({value:e.fieldName,label:e.fieldLabel,widgets:{field_type:{type:e.type}}})),...e}}),t},Ji=e=>mi(e,y),Yi=e=>ci(e,y),Xi=e=>li(e,y),Zi=e=>fi(e,y),Qi=e=>pi(e,y),$i=e=>_i(e,y),ea=e=>Fi(e,y),ta=e=>vi(e,y),na=e=>bi(e,y),O=e=>xi(e,y),k=e=>Ti(e,y),ra=e=>Ci(e,y),ia=e=>wi(e,y),aa=e=>ki(e,y),oa=e=>Ai(e,y),sa=e=>ji(e,y),ca=e=>Ei(e,y),la=e=>Di(e,y),ua=e=>Oi(e,y),da=e=>Mi(e,y),A=e=>ci(e,b),fa=e=>li(e,b),pa=e=>Ni(e,b),j=e=>mi(e,b),M=e=>_i(e,b),ma=e=>vi(e,b),ha=e=>yi(e,b),ga=e=>bi(e,b),_a=e=>xi(e,b),va=e=>Si(e,b),N=e=>Ti(e,b,`pipe_io`),ya=e=>Ci(e,b),ba=e=>wi(e,b),xa=e=>ki(e,b),P=e=>ji(e,b),F=e=>Pi(e,b),I=e=>Fi(e,b),L=e=>Ei(e,b),Sa=e=>Di(e,b),R=e=>(e=e.check(e=>{let t=e.value,n=!1;for(let e in t)if(t[e]?.enabled){n=!0;break}n||e.issues.push({code:`custom`,input:e.value,message:`All output fields are disabled. Enable at least one output.`})}),e.optional()),z=e=>e.optional();function Ca(e,t){if(!e)return t;let n={...e};for(let[e,r]of Object.entries(t))n[e]===void 0?n[e]=r:n[e]!==null&&typeof n[e]==`object`&&!Array.isArray(n[e])&&typeof r==`object`&&r&&!Array.isArray(r)&&(n[e]=Ca(n[e],r));return n}const B={EMAIL:`Email`,TEXT:`Text`,CHAT:`Chat`,PERSONAL_EMAIL:`Personal Email`,NAMES:`Names`,WORK_EMAIL:`Work Email`,WATERFALL:`Waterfall`,WEBSITE:`Website`,SCRAPE:`Scrape`,ADDRESS:`Address`,NEWS:`News`,LINKEDIN:`LinkedIn`,FINANCIAL_DATA:`Financial Data`,AI:`AI`,PHONE:`Phone Number`,NEW:`New`,BETA:`Beta`,PEOPLE_PROFILES:`People Profiles`,COMPANY_PROFILES:`Company Profiles`,JSON:`Json`,FIELDS:`Fields`,LOGIC:`Logic`,DEPRECATED:`Deprecated โ`},wa=e=>typeof e.kind==`string`,Ta=e=>wa(e)?e:{kind:`field`,field:e},V=e=>({kind:`field`,field:e}),Ea=(...e)=>({kind:`all`,of:e.map(Ta)}),H=(...e)=>({kind:`any`,of:e.map(Ta)}),Da=e=>({kind:`optional`,field:e});function Oa(e,t){switch(e.kind){case`optional`:return!0;case`field`:return t.has(e.field.resolvedName);case`all`:return e.of.every(e=>Oa(e,t));case`any`:return e.of.some(e=>Oa(e,t))}}function ka(e){switch(e.kind){case`field`:return[{field:e.field,required:!0}];case`optional`:return[{field:e.field,required:!1}];case`all`:case`any`:return e.of.flatMap(ka)}}function Aa(e,t){let n=ja(e,t);return n.ok?{valid:!0,failedPipeInputField:null,failedRecordField:null}:{valid:!1,failedPipeInputField:n.field,failedRecordField:n.recordField}}function ja(e,t){switch(e.kind){case`optional`:return{ok:!0};case`field`:{let n=t.fields[e.field.resolvedName];if(!n)throw Error(`Record field does not exist ${e.field.name} for requirement.`);return n.status===`completed`||n.status===`queued`?{ok:!0}:{ok:!1,field:e.field,recordField:n}}case`all`:for(let n of e.of){let e=ja(n,t);if(!e.ok)return e}return{ok:!0};case`any`:{let n=null,r=!1;for(let i of e.of)try{let e=ja(i,t);if(r=!0,e.ok)return{ok:!0};n=e}catch{}return r?n:{ok:!0}}}}function Ma(e){if(typeof e!=`object`||!e)return e;if(Array.isArray(e))return e.map(Ma).filter(e=>!jt(e));let t={};for(let[n,r]of Object.entries(e)){let e=Ma(r);jt(e)||(t[n]=e)}return t}const Na=await l();var Pa=class e{static hashObject(t){if(!Na)throw Error(`HashAPI not initialized`);let{h64ToString:n}=Na,r=e.normalizeObject(t);return n(JSON.stringify(r))}static normalizeObject(t){if(typeof t!=`object`||!t)return t;if(Array.isArray(t))return t.map(t=>e.normalizeObject(t));let n={},r=Object.keys(t).sort();for(let i of r)n[i]=e.normalizeObject(t[i]);return n}};function Fa(e,t){let n={pipeId:e,config:Ma(t)};return Pa.hashObject(n)}function Ia(e,t){let n={};return Object.values(t).forEach(t=>{let r=t,i=e.fields[r.resolvedName];i?.value!=null&&(n[r.resolvedName]=i.value)}),Object.keys(n).length===0?null:Pa.hashObject(Ma(n))}var U=class{validatePayload(e){try{return this.payloadSchema.parse(e)}catch(e){throw e instanceof n?Error(r.prettifyError(e)):e}}getSecretRequirements(){return[]}getConstantRequirements(){return[]}catalogOutput(e,{isPrimaryOutput:t=!1,resolveFormat:n,resolveType:r}={resolveType:void 0,resolveFormat:void 0,isPrimaryOutput:!1}){return{name:e.name,enabled:!!this.payload.config?.output_fields?.[e.name].enabled,type:r||e.type,format:n||e.format,resolvedName:this.payload.config?.output_fields?.[e.name]?.alias||e.name,description:e.description,jsonMeta:e.jsonMeta,label:e.label,isCatalogFIeld:!0,isPrimaryOutput:t}}getOutputFields(){let e={};for(let[t,n]of Object.entries(this.getRawOutputFields()))n.enabled&&(e[t]=n);return e}get inputFields(){let e={};for(let{field:t}of ka(this.getInputRequirement()))e[t.name]=t;return e}getConfigHashKey(){return Fa(this.payload.pipe_id,this.payload.config||{})}getInputHashKey(e){return Ia(e,this.inputFields)}};function La(e,t){let n={};for(let r of t)for(let t of Object.values(e))if(t&&t.provider===r&&t.allowManagedConnection){n[r]=t.credits.default;break}return n}function Ra(e){return ka(e).map(({field:e})=>e)}function za({recordField:e,value:t,resolvedBy:n,widgets:r}){return e.value=t,e.status=`completed`,e.resolved_by=n,e.widgets=r,e}function Ba({recordField:e}){return e.status=`pending`,e.resolved_by=null,e.value=null,e}function Va({recordField:e,reason:t,resolvedBy:n,widgets:r={}}){return e.value=null,e.status=`no_result`,e.resolved_by=n,e.reason=t,e.widgets=r,e}function Ha(e,t,n){return e.value=null,e.status=`failed`,e.resolved_by=null,e.reason=t,e.resolved_by=n,e.widgets={},e}function Ua(e,t){return e.value=null,e.status=`skipped`,e.resolved_by=null,e.reason=t,e.widgets={},e}function Wa(e){return e.value=null,e.status=`processing`,e.resolved_by=null,e.widgets={},e}function W(e){return e.split(`@`)[0]}function G(e){return`/docs/pipe-catalog/${W(e)}/${e.split(`@`)[1]}`}function K(e,t){return{name:e.name,description:e.description,resolvedName:t?.input_fields?.[e.name]?.alias||e.name,type:e.type,label:e.label,format:e.format}}const Ga=`company:domain:workemail@1`,Ka=_(`company_domain`),qa=_(`work_email`),Ja=r.object({pipe_id:r.literal(Ga),run_if:S(),connector:T(),config:r.object({input_fields:z(r.object({[qa.name]:E({fieldName:qa.name})})),output_fields:R(r.object({[Ka.name]:k({fieldName:Ka.name})}))}).optional()}),Ya=e=>V(K(qa,e)),Xa={"company-domain-workemail-v1-pipe0":{credits:{default:0},allowManagedConnection:!0,mode:`always`,provider:`pipe0`}},Za=class extends U{pipeId=Ga;payload;payloadSchema=Ja;billableOperations=Xa;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[`company-domain-workemail-v1-pipe0`]}getInputRequirement(){return Ya(this.payload.config)}getRawOutputFields(){return{[Ka.name]:this.catalogOutput(Ka)}}getConnectionsRequirements(){return[{provider:`pipe0`,rateLimitRatio:1,rateLimitOperation:`pipe0_logic`,allowManagedConnection:!0}]}},Qa=Ja,$a={pipeId:Ga,basePipe:W(Ga),inputFieldMode:`static`,outputFieldMode:`static`,label:`Website from email`,executionMode:`single`,categories:[`company_data`],lifecycle:null,description:`Extract the company website URL from a work email address.`,tags:[B.EMAIL,B.WORK_EMAIL,B.WEBSITE],docPath:G(Ga),allowedUserConnectionProviders:[],managedProviders:[`pipe0`],deprecatedProviders:[],billableOperations:Xa,defaultInputRequirement:Ya(null),defaultPayload:{pipe_id:Ga,connector:null,run_if:null,config:{input_fields:{[qa.name]:{alias:``}},output_fields:{[Ka.name]:{alias:``,enabled:!0}}}}},eo=`company:funding:leadmagic@2`,to=_(`company_name`),no=_(`company_domain`),ro=_(`funding_history`),io=_(`funding_total_usd`),ao=_(`leadmagic_competitor_list`),oo=_(`leadmagic_acquisition_history`),so=_(`leadmagic_company_news_list`),co=r.object({pipe_id:r.literal(eo),connector:w(),run_if:S(),config:r.object({input_fields:z(r.object({[to.name]:E({fieldName:to.name}),[no.name]:E({fieldName:no.name})})),output_fields:R(r.object({[ro.name]:k({fieldName:ro.name}),[io.name]:k({fieldName:io.name}),[ao.name]:k({fieldName:ao.name}),[oo.name]:k({fieldName:oo.name}),[so.name]:k({fieldName:so.name})}))}).optional()}),lo=e=>H(K(to,e),K(no,e)),uo={"company-funding-leadmagic-v2-leadmagic":{provider:`leadmagic`,allowManagedConnection:!0,credits:{default:2},mode:`onSuccess`}},fo=class extends U{pipeId=eo;payload;payloadSchema=co;billableOperations=uo;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`leadmagic`]}estimateBillableOperations(){return[`company-funding-leadmagic-v2-leadmagic`]}getInputRequirement(){return lo(this.payload.config)}getRawOutputFields(){return{[ro.name]:this.catalogOutput(ro),[io.name]:this.catalogOutput(io),[oo.name]:this.catalogOutput(oo),[so.name]:this.catalogOutput(so),[ao.name]:this.catalogOutput(ao)}}getConnectionsRequirements(){return[{provider:`leadmagic`,rateLimitRatio:1,rateLimitOperation:`leadmagic_company_funding`,allowManagedConnection:!0}]}},po=co,mo={pipeId:eo,basePipe:W(eo),label:`Funding history`,executionMode:`single`,categories:[`company_data`],lifecycle:null,description:`Information on funding rounds, acquisition, competitors, and investors.`,tags:[B.FINANCIAL_DATA],docPath:G(eo),billableOperations:uo,inputFieldMode:`static`,outputFieldMode:`static`,allowedUserConnectionProviders:[`leadmagic`],managedProviders:[`leadmagic`],deprecatedProviders:[],defaultInputRequirement:lo(null),defaultPayload:{pipe_id:eo,connector:null,run_if:null,config:{input_fields:{company_name:{alias:``},company_domain:{alias:``}},output_fields:{funding_history:{enabled:!0,alias:``},funding_total_usd:{enabled:!0,alias:``},leadmagic_acquisition_history:{enabled:!1,alias:``},leadmagic_company_news_list:{enabled:!1,alias:``},leadmagic_competitor_list:{enabled:!1,alias:``}}}}},ho=_(`company_name`),go=_(`company_profile_url`),_o=_(`company_domain`),vo=_(`cleaned_company_name`),yo=`company:identity@3`,bo=r.object({pipe_id:r.literal(yo),run_if:S(),connector:T(),config:r.object({input_fields:z(r.object({[ho.name]:E({fieldName:ho.name})})),output_fields:R(r.object({[go.name]:k({fieldName:go.name}),[vo.name]:k({fieldName:vo.name}),[_o.name]:k({fieldName:_o.name})}))}).optional()}),xo=e=>V(K(ho,e)),So={"company-identity-v3-pipe0":{allowManagedConnection:!0,credits:{default:.3,level1:{credits:.2,weight:1}},mode:`always`,provider:`pipe0`}},Co=class extends U{pipeId=yo;payload;payloadSchema=bo;billableOperations=So;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[`company-identity-v3-pipe0`]}getInputRequirement(){return xo(this.payload.config)}getRawOutputFields(){return{[go.name]:this.catalogOutput(go),[_o.name]:this.catalogOutput(_o),[vo.name]:this.catalogOutput(vo)}}getConnectionsRequirements(){return[{provider:`gemini`,rateLimitRatio:1,rateLimitOperation:`gemini_25_flash_preview`,allowManagedConnection:!0},{provider:`serper`,rateLimitRatio:2,rateLimitOperation:`serper_search`,allowManagedConnection:!0},{provider:`leadmagic`,rateLimitRatio:.2,rateLimitOperation:`leadmagic_company_search`,allowManagedConnection:!0},{provider:`perplexity`,rateLimitRatio:.2,rateLimitOperation:`perplexity_generic`,allowManagedConnection:!0},{provider:`pipe0`,rateLimitRatio:.02,rateLimitOperation:`pipe0_scraper`,allowManagedConnection:!0}]}},wo=bo,To={pipeId:yo,inputFieldMode:`static`,outputFieldMode:`static`,basePipe:W(yo),label:`Find company identity`,executionMode:`mix`,categories:[`company_data`],lifecycle:null,description:`Find any company's website URL, LinkedIn profile URL, and cleaned name.`,tags:[B.WEBSITE,B.LINKEDIN],docPath:G(yo),billableOperations:So,allowedUserConnectionProviders:[],managedProviders:[`pipe0`],deprecatedProviders:[],defaultInputRequirement:xo(null),defaultPayload:{pipe_id:yo,connector:null,run_if:null,config:{input_fields:{company_name:{alias:``}},output_fields:{cleaned_company_name:{alias:``,enabled:!0},company_profile_url:{alias:``,enabled:!0},company_domain:{alias:``,enabled:!0}}}}},Eo=_(`company_domain`),Do=_(`companyenrich_matches`),Oo=`company:lookalikes:companyenrich@2`,ko=r.object({pipe_id:r.literal(Oo),run_if:S(),connector:w(),config:r.object({limit:ca({groupPath:`config.general`,max:50,min:1,path:`config.limit`,required:!0,sectionKey:`general`,info:`Define how many lookalikes you want to find.`,label:`Limit`}),input_fields:z(r.object({[Eo.name]:E({fieldName:Eo.name})})),output_fields:R(r.object({[Do.name]:k({fieldName:Do.name})}))}).optional()}),Ao=e=>V(K(Eo,e)),jo={"company-lookalikes-companyenrich-v2-companyenrich":{allowManagedConnection:!0,credits:{default:.2,level1:{credits:.1,weight:1}},mode:`onSuccess`,note:`One billing event per result.`,provider:`companyenrich`}},Mo=class extends U{pipeId=Oo;payload;payloadSchema=ko;billableOperations=jo;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`companyenrich`]}estimateBillableOperations(){return[,,,,,].fill(`lookalikes-companyenrich`)}getInputRequirement(){return Ao(this.payload.config)}getRawOutputFields(){return{[Do.name]:this.catalogOutput(Do)}}getConnectionsRequirements(){return[{provider:`companyenrich`,rateLimitRatio:1,rateLimitOperation:`company_enrich_generic`,allowManagedConnection:!0}]}},No=ko,Po={pipeId:Oo,inputFieldMode:`static`,outputFieldMode:`static`,basePipe:W(Oo),label:`Find company lookalikes`,executionMode:`single`,categories:[`company_data`],lifecycle:null,description:`Find companies similar to the company you provide as input.`,tags:[B.COMPANY_PROFILES],docPath:G(Oo),billableOperations:jo,allowedUserConnectionProviders:[`companyenrich`],managedProviders:[`companyenrich`],deprecatedProviders:[],defaultInputRequirement:Ao(null),defaultPayload:{pipe_id:Oo,connector:null,run_if:null,config:{limit:20,input_fields:{company_domain:{alias:``}},output_fields:{companyenrich_matches:{alias:``,enabled:!0}}}}},Fo=_(`company_domain`),Io=_(`crustdata_companyenrich_match`),Lo=`company:match:crustdata@2`,Ro=r.object({pipe_id:r.literal(Lo),run_if:S(),connector:w(),config:r.object({input_fields:z(r.object({[Fo.name]:E({fieldName:Fo.name})})),output_fields:R(r.object({[Io.name]:k({fieldName:Io.name})}))}).optional()}),zo=e=>V(K(Fo,e)),Bo={"company-match-crustdata-v2-crustdata":{allowManagedConnection:!0,credits:{default:2.5,level1:{credits:1.2,weight:1}},mode:`onSuccess`,provider:`crustdata`}},Vo=class extends U{pipeId=Lo;payload;payloadSchema=Ro;billableOperations=Bo;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`crustdata`]}estimateBillableOperations(){return[`company-match-crustdata-v2-crustdata`]}getInputRequirement(){return zo(this.payload.config)}getRawOutputFields(){return{[Io.name]:this.catalogOutput(Io)}}getConnectionsRequirements(){return[{provider:`crustdata`,rateLimitRatio:1,rateLimitOperation:`crustdata_company_enrich`,allowManagedConnection:!0}]}},Ho=Ro,Uo={pipeId:Lo,inputFieldMode:`static`,outputFieldMode:`static`,basePipe:W(Lo),label:`Company match`,executionMode:`single`,categories:[`company_data`],lifecycle:null,description:`Company data like headcount distribution, LinkedIn URLs etc. via the Crustdata API.`,tags:[B.WEBSITE,B.LINKEDIN],docPath:G(Lo),billableOperations:Bo,allowedUserConnectionProviders:[`crustdata`],managedProviders:[`crustdata`],deprecatedProviders:[],defaultInputRequirement:zo(null),defaultPayload:{pipe_id:Lo,connector:null,run_if:null,config:{input_fields:{company_domain:{alias:``}},output_fields:{crustdata_companyenrich_match:{alias:``,enabled:!0}}}}},Wo=_(`company_domain`),Go=_(`company_name`),Ko=_(`company_profile_url`),qo=_(`logodev_describe_match`),Jo=_(`logo_url`),Yo=`company:match:logodev@2`,Xo=r.object({pipe_id:r.literal(Yo),run_if:S(),connector:w(),config:r.object({input_fields:z(r.object({[Wo.name]:E({fieldName:Wo.name})})),output_fields:R(r.object({[Ko.name]:k({fieldName:Ko.name}),[Jo.name]:k({fieldName:Jo.name}),[Go.name]:k({fieldName:Go.name}),[qo.name]:k({fieldName:qo.name})}))}).optional()}),Zo=e=>V(K(Wo,e)),Qo={"company-match-logodev-v2-logodev":{allowManagedConnection:!0,credits:{default:.1},mode:`onSuccess`,provider:`logodev`}},$o=class extends U{pipeId=Yo;payload;payloadSchema=Xo;billableOperations=Qo;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`logodev`]}estimateBillableOperations(){return[`company-match-logodev-v2-logodev`]}getInputRequirement(){return Zo(this.payload.config)}getRawOutputFields(){return{[Ko.name]:this.catalogOutput(Ko),[Go.name]:this.catalogOutput(Go),[Jo.name]:this.catalogOutput(Jo),[qo.name]:this.catalogOutput(qo)}}getConnectionsRequirements(){return[{provider:`logodev`,rateLimitRatio:1,rateLimitOperation:`logodev_describe`,allowManagedConnection:!0}]}},es=Xo,ts={pipeId:Yo,inputFieldMode:`static`,outputFieldMode:`static`,basePipe:W(Yo),label:`Company match`,executionMode:`single`,categories:[`company_data`],lifecycle:null,description:`Find brand data like logos, colors, and social links via the Logo.dev API.`,tags:[B.WEBSITE,B.LINKEDIN],docPath:G(Yo),billableOperations:Qo,allowedUserConnectionProviders:[`logodev`],managedProviders:[`logodev`],deprecatedProviders:[],defaultInputRequirement:Zo(null),defaultPayload:{pipe_id:Yo,connector:null,run_if:null,config:{input_fields:{company_domain:{alias:``}},output_fields:{company_profile_url:{alias:``,enabled:!0},logo_url:{alias:``,enabled:!0},logodev_describe_match:{alias:``,enabled:!0},company_name:{alias:``,enabled:!1}}}}},ns=`company:newssummary:domain@1`,rs=_(`company_news_summary`),is=_(`company_domain`),as=r.object({pipe_id:r.literal(ns),run_if:S(),connector:w(),config:r.object({input_fields:z(r.object({[is.name]:E({fieldName:is.name})})),output_fields:R(r.object({[rs.name]:k({fieldName:rs.name})}))}).optional()}),os=e=>V(K(is,e)),ss={"company-newssummary-domain-v1-pipe0":{allowManagedConnection:!0,credits:{default:1},mode:`always`,provider:`pipe0`}},cs=class extends U{pipeId=ns;payloadSchema=as;billableOperations=ss;payload;constructor(e){super(),this.payload=e}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[`company-newssummary-domain-v1-pipe0`]}getInputRequirement(){return os(this.payload.config)}getRawOutputFields(){return{[rs.name]:this.catalogOutput(rs)}}getConnectionsRequirements(){return[{provider:`perplexity`,rateLimitRatio:1,rateLimitOperation:`perplexity_generic`,allowManagedConnection:!0}]}},ls=as,us={pipeId:ns,basePipe:W(ns),inputFieldMode:`static`,outputFieldMode:`static`,label:`Company news`,executionMode:`single`,categories:[`company_data`],lifecycle:null,description:`Find recent company news by performing a search and scrape.`,tags:[B.NEWS],docPath:G(ns),billableOperations:ss,allowedUserConnectionProviders:[],managedProviders:[`pipe0`],deprecatedProviders:[],defaultInputRequirement:os(null),defaultPayload:{pipe_id:ns,run_if:null,connector:null,config:{input_fields:{company_domain:{alias:``}},output_fields:{company_news_summary:{alias:``,enabled:!0}}}}},ds=_(`company_domain`),fs=_(`company_profile_url`),ps=_(`company_description`),ms=_(`company_industry`),hs=_(`company_region`),gs=_(`headcount`),_s=_(`estimated_revenue`),vs=_(`founded_year`),ys=_(`company_name`),bs=`company:overview@3`,xs=r.object({pipe_id:r.literal(bs),run_if:S(),connector:T(),config:r.object({input_fields:z(r.object({[ds.name]:E({fieldName:ds.name}),[fs.name]:E({fieldName:fs.name})})),output_fields:R(r.object({[ps.name]:k({fieldName:ps.name}),[ms.name]:k({fieldName:ms.name}),[hs.name]:k({fieldName:hs.name}),[gs.name]:k({fieldName:gs.name}),[_s.name]:k({fieldName:_s.name}),[vs.name]:k({fieldName:vs.name}),[ys.name]:k({fieldName:ys.name})}))}).optional()}),Ss=e=>H(K(ds,e),K(fs,e)),Cs={"company-overview-v3-pipe0":{provider:`pipe0`,allowManagedConnection:!0,credits:{default:1,level1:{credits:.5,weight:1}},mode:`always`}},ws=class extends U{pipeId=bs;payloadSchema=xs;billableOperations=Cs;payload;constructor(e){super(),this.payload=e}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[`company-overview-v3-pipe0`]}getInputRequirement(){return Ss(this.payload.config)}getRawOutputFields(){return{[ps.name]:this.catalogOutput(ps),[ms.name]:this.catalogOutput(ms),[hs.name]:this.catalogOutput(hs),[gs.name]:this.catalogOutput(gs),[_s.name]:this.catalogOutput(_s),[vs.name]:this.catalogOutput(vs),[ys.name]:this.catalogOutput(ys)}}getConnectionsRequirements(){return[{provider:`perplexity`,rateLimitRatio:1,rateLimitOperation:`perplexity_generic`,allowManagedConnection:!0},{provider:`leadmagic`,rateLimitRatio:.2,rateLimitOperation:`leadmagic_email_lookup`,allowManagedConnection:!0},{provider:`gemini`,rateLimitOperation:`gemini_20_flash`,rateLimitRatio:.1,allowManagedConnection:!0}]}},Ts=xs,Es={pipeId:bs,basePipe:W(bs),inputFieldMode:`static`,outputFieldMode:`static`,label:`Company overview`,executionMode:`mix`,categories:[`company_data`],lifecycle:null,description:`Business description, industry, and financial information.`,docPath:G(bs),tags:[B.WEBSITE,B.LINKEDIN,B.FINANCIAL_DATA],allowedUserConnectionProviders:[],managedProviders:[`pipe0`],deprecatedProviders:[],billableOperations:Cs,defaultInputRequirement:Ss(null),defaultPayload:{pipe_id:bs,run_if:null,connector:void 0,config:{input_fields:{company_profile_url:{alias:``},company_domain:{alias:``}},output_fields:{company_description:{alias:``,enabled:!0},company_industry:{alias:``,enabled:!0},company_region:{alias:``,enabled:!0},estimated_revenue:{alias:``,enabled:!0},founded_year:{alias:``,enabled:!0},headcount:{alias:``,enabled:!0},company_name:{alias:``,enabled:!1}}}}},Ds=_(`company_domain`),Os=_(`technology_list`),ks=_(`spending_trend`),As=_(`technology_match_builtwith`),js=`company:techstack:builtwith@2`,Ms=r.object({pipe_id:r.literal(js),connector:w(),run_if:S(),config:r.object({input_fields:z(r.object({[Ds.name]:E({fieldName:Ds.name})})),output_fields:R(r.object({[Os.name]:k({fieldName:Os.name}),[As.name]:k({fieldName:As.name}),[ks.name]:k({fieldName:ks.name})}))}).optional()}),Ns=e=>V(K(Ds,e)),Ps={"company-techstack-builtwith-v2-builtwith":{provider:`builtwith`,allowManagedConnection:!0,credits:{default:2},mode:`always`}},Fs=class extends U{pipeId=js;payload;payloadSchema=Ms;billableOperations=Ps;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`builtwith`]}estimateBillableOperations(){return[`company-techstack-builtwith-v2-builtwith`]}getInputRequirement(){return Ns(this.payload.config)}getRawOutputFields(){return{[Os.name]:this.catalogOutput(Os),[As.name]:this.catalogOutput(As),[ks.name]:this.catalogOutput(ks)}}getConnectionsRequirements(){return[{provider:`builtwith`,rateLimitRatio:1,rateLimitOperation:`builtwith_generic`,allowManagedConnection:!0}]}},Is=Ms,Ls={pipeId:js,basePipe:W(js),managedProviders:[`builtwith`],deprecatedProviders:[],allowedUserConnectionProviders:[`builtwith`],label:`Tech stack`,executionMode:`single`,categories:[`company_data`],lifecycle:null,description:`All technologies and frameworks powering a given website.`,tags:[B.WEBSITE],inputFieldMode:`static`,outputFieldMode:`static`,docPath:G(js),billableOperations:Ps,defaultInputRequirement:Ns(null),defaultPayload:{pipe_id:js,connector:null,run_if:null,config:{input_fields:{company_domain:{alias:``}},output_fields:{technology_list:{alias:``,enabled:!0},technology_match_builtwith:{alias:``,enabled:!0},spending_trend:{alias:``,enabled:!0}}}}},Rs={MissingSecretError:class extends Error{constructor({providerName:e}){super(`Missing secret for ${e}`)}},HttpError:class extends Error{constructor({msg:e}){super(e)}}},zs=`contact:create:resend@1`,Bs={"contact-create-resend-v1-resend":{allowManagedConnection:!1,provider:`resend`,credits:null,mode:null}},Vs=_(`email`),Hs=_(`name`),Us=_(`resend_contact_id`),Ws=[{label:`Demo subscribers`,value:`sandbox-segment-1`},{label:`Demo product updates`,value:`sandbox-segment-2`}],Gs=r.object({pipe_id:r.literal(zs),connector:Gi(),run_if:S(),config:r.object({segment_id:da({sectionKey:`general`,required:!0,label:`Segment`,groupPath:`config.general`,path:`config.segment_id`,info:``,enabledIf:ln(`resend`),optionsDef:{requires:{connection:`resend`},options:async({query:e,secret:t,environment:n})=>{if(n===`sandbox`)return Ws;if(!t)throw new Rs.MissingSecretError({providerName:`resend`});let r=await fetch(`https://api.resend.com/segments?limit=100`,{headers:{Authorization:`Bearer ${t}`}});if(!r.ok){let e=await r.text();throw new Rs.HttpError({msg:e})}let i=(await r.json()).data.map(e=>({label:e.name,value:e.id}));return e?i.filter(t=>t.label.toLowerCase().includes(e.toLowerCase())):i}}}),add_as_subscribed:O({sectionKey:`general`,defaultValue:!0,label:`Add as subscribed`,groupPath:`config.general`,path:`config.add_as_subscribed`,info:``}),input_fields:z(r.object({[Hs.name]:E({fieldName:Hs.name}),[Vs.name]:E({fieldName:Vs.name})})),output_fields:R(r.object({[Us.name]:k({fieldName:Us.name})}))})}),Ks=e=>Ea(V(K(Vs,e)),V(K(Hs,e))),qs=class extends U{pipeId=zs;payload;payloadSchema=Gs;billableOperations=Bs;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`resend`]}estimateBillableOperations(){return[`contact-create-resend-v1-resend`]}getInputRequirement(){return Ks(this.payload.config)}getRawOutputFields(){return{[Us.name]:this.catalogOutput(Us)}}getConnectionsRequirements(){return[{provider:`resend`,rateLimitRatio:1,rateLimitOperation:`resend_generic`,allowManagedConnection:!1}]}},Js=Gs,Ys={pipeId:zs,basePipe:W(zs),label:`Create Contact`,executionMode:`single`,categories:[`actions`],lifecycle:null,description:`Create a contact inside a Resend audience.`,tags:[B.EMAIL],docPath:G(zs),billableOperations:Bs,inputFieldMode:`static`,outputFieldMode:`static`,allowedUserConnectionProviders:[`resend`],defaultInputRequirement:Ks(null),managedProviders:[],deprecatedProviders:[],defaultPayload:{pipe_id:zs,connector:{strategy:`first`,connections:[]},run_if:null,config:{segment_id:``,add_as_subscribed:!0,input_fields:{name:{alias:``},email:{alias:``}},output_fields:{resend_contact_id:{alias:``,enabled:!0}}}}},Xs=`company:funding:leadmagic@1`,Zs=_(`company_name`),Qs=_(`company_website_url`),$s=_(`funding_history`),ec=_(`funding_total_usd`),tc=_(`leadmagic_competitor_list`),nc=_(`leadmagic_acquisition_history`),rc=_(`leadmagic_company_news_list`),ic=r.object({pipe_id:r.literal(Xs),connector:w(),run_if:S(),config:r.object({input_fields:z(r.object({[Zs.name]:E({fieldName:Zs.name}),[Qs.name]:E({fieldName:Qs.name})})),output_fields:R(r.object({[$s.name]:k({fieldName:$s.name}),[ec.name]:k({fieldName:ec.name}),[tc.name]:k({fieldName:tc.name}),[nc.name]:k({fieldName:nc.name}),[rc.name]:k({fieldName:rc.name})}))}).optional()}),ac=e=>H(K(Zs,e),K(Qs,e)),oc={"company-funding-leadmagic-v1-leadmagic":{provider:`leadmagic`,allowManagedConnection:!0,credits:{default:2},mode:`onSuccess`}},sc=class extends U{pipeId=Xs;payload;payloadSchema=ic;billableOperations=oc;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`leadmagic`]}estimateBillableOperations(){return[`company-funding-leadmagic-v1-leadmagic`]}getInputRequirement(){return ac(this.payload.config)}getRawOutputFields(){return{[$s.name]:this.catalogOutput($s),[ec.name]:this.catalogOutput(ec)}}getConnectionsRequirements(){return[{provider:`leadmagic`,rateLimitRatio:1,rateLimitOperation:`leadmagic_company_funding`,allowManagedConnection:!0}]}},cc=ic,lc={pipeId:Xs,basePipe:W(Xs),label:`Funding history`,executionMode:`single`,categories:[`deprecated`],lifecycle:{deprecatedOn:`2026-06-13`,replacedBy:`company:funding:leadmagic@2`},description:`Information on funding rounds, acquisition, competitors, and investors.`,tags:[B.FINANCIAL_DATA],docPath:G(Xs),billableOperations:oc,inputFieldMode:`static`,outputFieldMode:`static`,allowedUserConnectionProviders:[`leadmagic`],managedProviders:[`leadmagic`],deprecatedProviders:[],defaultInputRequirement:ac(null),defaultPayload:{pipe_id:Xs,connector:null,run_if:null,config:{input_fields:{company_name:{alias:``},company_website_url:{alias:``}},output_fields:{funding_history:{enabled:!0,alias:``},funding_total_usd:{enabled:!0,alias:``},leadmagic_acquisition_history:{enabled:!1,alias:``},leadmagic_company_news_list:{enabled:!1,alias:``},leadmagic_competitor_list:{enabled:!1,alias:``}}}}},uc=_(`company_name`),dc=_(`company_social_url`),fc=_(`company_website_url`),pc=_(`cleaned_company_name`),mc=`company:identity@1`,hc=r.object({pipe_id:r.literal(mc),run_if:S(),connector:T(),config:r.object({input_fields:z(r.object({[uc.name]:E({fieldName:uc.name})})),output_fields:R(r.object({[dc.name]:k({fieldName:dc.name}),[pc.name]:k({fieldName:pc.name}),[fc.name]:k({fieldName:fc.name})}))}).optional()}),gc=e=>V(K(uc,e)),_c={"company-identity-v1-pipe0":{allowManagedConnection:!0,credits:{default:.3},mode:`always`,provider:`pipe0`}},vc=class extends U{pipeId=mc;payload;payloadSchema=hc;billableOperations=_c;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[`company-identity-v1-pipe0`]}getInputRequirement(){return gc(this.payload.config)}getRawOutputFields(){return{[dc.name]:this.catalogOutput(dc),[fc.name]:this.catalogOutput(fc),[pc.name]:this.catalogOutput(pc)}}getConnectionsRequirements(){return[{provider:`gemini`,rateLimitRatio:1,rateLimitOperation:`gemini_25_flash_preview`,allowManagedConnection:!0},{provider:`serper`,rateLimitRatio:2,rateLimitOperation:`serper_search`,allowManagedConnection:!0},{provider:`leadmagic`,rateLimitRatio:.2,rateLimitOperation:`leadmagic_company_search`,allowManagedConnection:!0},{provider:`perplexity`,rateLimitRatio:.2,rateLimitOperation:`perplexity_generic`,allowManagedConnection:!0},{provider:`pipe0`,rateLimitRatio:.02,rateLimitOperation:`pipe0_scraper`,allowManagedConnection:!0}]}},yc=hc,bc={pipeId:mc,inputFieldMode:`static`,outputFieldMode:`static`,basePipe:W(mc),label:`Find company identity`,executionMode:`mix`,categories:[`deprecated`],lifecycle:{deprecatedOn:`2026-06-13`,replacedBy:`company:identity@2`},description:`Find any company's website URL, LinkedIn profile URL, and cleaned name.`,tags:[B.WEBSITE,B.LINKEDIN],docPath:`/resources/pipe-catalog/company:identity/1`,billableOperations:_c,allowedUserConnectionProviders:[],managedProviders:[`pipe0`],deprecatedProviders:[],defaultInputRequirement:gc(null),defaultPayload:{pipe_id:mc,connector:null,run_if:null,config:{input_fields:{company_name:{alias:``}},output_fields:{cleaned_company_name:{alias:``,enabled:!0},company_social_url:{alias:``,enabled:!0},company_website_url:{alias:``,enabled:!0}}}}},xc=_(`company_name`),Sc=_(`company_profile_url`),Cc=_(`company_website_url`),wc=_(`cleaned_company_name`),Tc=`company:identity@2`,Ec=r.object({pipe_id:r.literal(Tc),run_if:S(),connector:T(),config:r.object({input_fields:z(r.object({[xc.name]:E({fieldName:xc.name})})),output_fields:R(r.object({[Sc.name]:k({fieldName:Sc.name}),[wc.name]:k({fieldName:wc.name}),[Cc.name]:k({fieldName:Cc.name})}))}).optional()}),Dc=e=>V(K(xc,e)),Oc={"company-identity-v2-pipe0":{allowManagedConnection:!0,credits:{default:.3},mode:`always`,provider:`pipe0`}},kc=class extends U{pipeId=Tc;payload;payloadSchema=Ec;billableOperations=Oc;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[`company-identity-v2-pipe0`]}getInputRequirement(){return Dc(this.payload.config)}getRawOutputFields(){return{[Sc.name]:this.catalogOutput(Sc),[Cc.name]:this.catalogOutput(Cc),[wc.name]:this.catalogOutput(wc)}}getConnectionsRequirements(){return[{provider:`gemini`,rateLimitRatio:1,rateLimitOperation:`gemini_25_flash_preview`,allowManagedConnection:!0},{provider:`serper`,rateLimitRatio:2,rateLimitOperation:`serper_search`,allowManagedConnection:!0},{provider:`leadmagic`,rateLimitRatio:.2,rateLimitOperation:`leadmagic_company_search`,allowManagedConnection:!0},{provider:`perplexity`,rateLimitRatio:.2,rateLimitOperation:`perplexity_generic`,allowManagedConnection:!0},{provider:`pipe0`,rateLimitRatio:.02,rateLimitOperation:`pipe0_scraper`,allowManagedConnection:!0}]}},Ac=Ec,jc={pipeId:Tc,inputFieldMode:`static`,outputFieldMode:`static`,basePipe:W(Tc),label:`Find company identity`,executionMode:`mix`,categories:[`deprecated`],lifecycle:{deprecatedOn:`2026-06-13`,replacedBy:`company:identity@3`},description:`Find any company's website URL, LinkedIn profile URL, and cleaned name.`,tags:[B.WEBSITE,B.LINKEDIN],docPath:G(Tc),billableOperations:Oc,allowedUserConnectionProviders:[],managedProviders:[`pipe0`],deprecatedProviders:[],defaultInputRequirement:Dc(null),defaultPayload:{pipe_id:Tc,connector:null,run_if:null,config:{input_fields:{company_name:{alias:``}},output_fields:{cleaned_company_name:{alias:``,enabled:!0},company_profile_url:{alias:``,enabled:!0},company_website_url:{alias:``,enabled:!0}}}}},Mc=_(`company_website_url`),Nc=_(`companyenrich_matches`),Pc=`company:lookalikes:companyenrich@1`,Fc=r.object({pipe_id:r.literal(Pc),run_if:S(),connector:w(),config:r.object({limit:ca({groupPath:`config.general`,max:50,min:1,path:`config.limit`,required:!0,sectionKey:`general`,info:`Define how many lookalikes you want to find.`,label:`Limit`}),input_fields:z(r.object({[Mc.name]:E({fieldName:Mc.name})})),output_fields:R(r.object({[Nc.name]:k({fieldName:Nc.name})}))}).optional()}),Ic=e=>V(K(Mc,e)),Lc={"company-lookalikes-companyenrich-v1-companyenrich":{allowManagedConnection:!0,credits:{default:.2},mode:`onSuccess`,note:`One billing event per result.`,provider:`companyenrich`}},Rc=class extends U{pipeId=Pc;payload;payloadSchema=Fc;billableOperations=Lc;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`companyenrich`]}estimateBillableOperations(){return[,,,,,].fill(`lookalikes-companyenrich`)}getInputRequirement(){return Ic(this.payload.config)}getRawOutputFields(){return{[Nc.name]:this.catalogOutput(Nc)}}getConnectionsRequirements(){return[{provider:`companyenrich`,rateLimitRatio:1,rateLimitOperation:`company_enrich_generic`,allowManagedConnection:!0}]}},zc=Fc,Bc={pipeId:Pc,inputFieldMode:`static`,outputFieldMode:`static`,basePipe:W(Pc),label:`Find company lookalikes`,executionMode:`single`,categories:[`deprecated`],lifecycle:{deprecatedOn:`2026-06-13`,replacedBy:`company:lookalikes:companyenrich@2`},description:`Find companies similar to the company you provide as input.`,tags:[B.COMPANY_PROFILES],docPath:G(Pc),billableOperations:Lc,allowedUserConnectionProviders:[`companyenrich`],managedProviders:[`companyenrich`],deprecatedProviders:[],defaultInputRequirement:Ic(null),defaultPayload:{pipe_id:Pc,connector:null,run_if:null,config:{limit:20,input_fields:{company_website_url:{alias:``}},output_fields:{companyenrich_matches:{alias:``,enabled:!0}}}}},Vc=_(`company_website_url`),Hc=_(`crustdata_companyenrich_match`),Uc=`company:match:crustdata@1`,Wc=r.object({pipe_id:r.literal(Uc),run_if:S(),connector:w(),config:r.object({input_fields:z(r.object({[Vc.name]:E({fieldName:Vc.name})})),output_fields:R(r.object({[Hc.name]:k({fieldName:Hc.name})}))}).optional()}),Gc=e=>V(K(Vc,e)),Kc={"company-match-crustdata-v1-crustdata":{allowManagedConnection:!0,credits:{default:2},mode:`onSuccess`,provider:`crustdata`}},qc=class extends U{pipeId=Uc;payload;payloadSchema=Wc;billableOperations=Kc;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`crustdata`]}estimateBillableOperations(){return[`company-match-crustdata-v1-crustdata`]}getInputRequirement(){return Gc(this.payload.config)}getRawOutputFields(){return{[Hc.name]:this.catalogOutput(Hc)}}getConnectionsRequirements(){return[{provider:`crustdata`,rateLimitRatio:1,rateLimitOperation:`crustdata_company_enrich`,allowManagedConnection:!0}]}},Jc=Wc,Yc={pipeId:Uc,inputFieldMode:`static`,outputFieldMode:`static`,basePipe:W(Uc),label:`Company match`,executionMode:`single`,categories:[`deprecated`],lifecycle:{deprecatedOn:`2026-06-13`,replacedBy:`company:match:crustdata@2`},description:`Company data like headcount distribution, LinkedIn URLs etc. via the Crustdata API.`,tags:[B.WEBSITE,B.LINKEDIN],docPath:G(Uc),billableOperations:Kc,allowedUserConnectionProviders:[`crustdata`],managedProviders:[`crustdata`],deprecatedProviders:[],defaultInputRequirement:Gc(null),defaultPayload:{pipe_id:Uc,connector:null,run_if:null,config:{input_fields:{company_website_url:{alias:``}},output_fields:{crustdata_companyenrich_match:{alias:``,enabled:!0}}}}},Xc=_(`company_website_url`),Zc=_(`company_name`),Qc=_(`company_profile_url`),$c=_(`logodev_describe_match`),el=_(`logo_url`),tl=`company:match:logodev@1`,nl=r.object({pipe_id:r.literal(tl),run_if:S(),connector:w(),config:r.object({input_fields:z(r.object({[Xc.name]:E({fieldName:Xc.name})})),output_fields:R(r.object({[Qc.name]:k({fieldName:Qc.name}),[el.name]:k({fieldName:el.name}),[Zc.name]:k({fieldName:Zc.name}),[$c.name]:k({fieldName:$c.name})}))}).optional()}),rl=e=>V(K(Xc,e)),il={"company-match-logodev-v1-logodev":{allowManagedConnection:!0,credits:{default:.1},mode:`onSuccess`,provider:`logodev`}},al=class extends U{pipeId=tl;payload;payloadSchema=nl;billableOperations=il;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`logodev`]}estimateBillableOperations(){return[`company-match-logodev-v1-logodev`]}getInputRequirement(){return rl(this.payload.config)}getRawOutputFields(){return{[Qc.name]:this.catalogOutput(Qc),[Zc.name]:this.catalogOutput(Zc),[el.name]:this.catalogOutput(el),[$c.name]:this.catalogOutput($c)}}getConnectionsRequirements(){return[{provider:`logodev`,rateLimitRatio:1,rateLimitOperation:`logodev_describe`,allowManagedConnection:!0}]}},ol=nl,sl={pipeId:tl,inputFieldMode:`static`,outputFieldMode:`static`,basePipe:W(tl),label:`Company match`,executionMode:`single`,categories:[`deprecated`],lifecycle:{deprecatedOn:`2026-06-13`,replacedBy:`company:match:logodev@2`},description:`Find brand data like logos, colors, and social links via the Logo.dev API.`,tags:[B.WEBSITE,B.LINKEDIN],docPath:G(tl),billableOperations:il,allowedUserConnectionProviders:[`logodev`],managedProviders:[`logodev`],deprecatedProviders:[],defaultInputRequirement:rl(null),defaultPayload:{pipe_id:tl,connector:null,run_if:null,config:{input_fields:{company_website_url:{alias:``}},output_fields:{company_profile_url:{alias:``,enabled:!0},logo_url:{alias:``,enabled:!0},logodev_describe_match:{alias:``,enabled:!0},company_name:{alias:``,enabled:!1}}}}},cl=`company:newssummary:website@1`,ll=_(`company_news_summary`),ul=_(`company_website_url`),dl=r.object({pipe_id:r.literal(cl),run_if:S(),connector:w(),config:r.object({input_fields:z(r.object({[ul.name]:E({fieldName:ul.name})})),output_fields:R(r.object({[ll.name]:k({fieldName:ll.name})}))}).optional()}),fl=e=>V(K(ul,e)),pl={"company-newssummary-website-v1-pipe0":{allowManagedConnection:!0,credits:{default:1},mode:`always`,provider:`pipe0`}},ml=class extends U{pipeId=cl;payloadSchema=dl;billableOperations=pl;payload;constructor(e){super(),this.payload=e}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[`company-newssummary-website-v1-pipe0`]}getInputRequirement(){return fl(this.payload.config)}getRawOutputFields(){return{[ll.name]:this.catalogOutput(ll)}}getConnectionsRequirements(){return[{provider:`perplexity`,rateLimitRatio:1,rateLimitOperation:`perplexity_generic`,allowManagedConnection:!0}]}},hl=dl,gl={pipeId:cl,basePipe:W(cl),inputFieldMode:`static`,outputFieldMode:`static`,label:`Company news`,executionMode:`single`,categories:[`deprecated`],lifecycle:{deprecatedOn:`2026-06-13`,replacedBy:`company:newssummary:domain@1`},description:`Find recent company news by performing a search and scrape.`,tags:[B.NEWS],docPath:G(cl),billableOperations:pl,allowedUserConnectionProviders:[],managedProviders:[`pipe0`],deprecatedProviders:[],defaultInputRequirement:fl(null),defaultPayload:{pipe_id:cl,run_if:null,connector:null,config:{input_fields:{company_website_url:{alias:``}},output_fields:{company_news_summary:{alias:``,enabled:!0}}}}},_l=_(`company_website_url`),vl=_(`company_social_url`),yl=_(`company_description`),bl=_(`company_industry`),xl=_(`company_region`),Sl=_(`headcount`),Cl=_(`estimated_revenue`),wl=_(`founded_year`),Tl=`company:overview@1`,El=r.object({pipe_id:r.literal(Tl),run_if:S(),connector:T(),config:r.object({input_fields:z(r.object({[_l.name]:E({fieldName:_l.name}),[vl.name]:E({fieldName:vl.name})})),output_fields:R(r.object({[yl.name]:k({fieldName:yl.name}),[bl.name]:k({fieldName:bl.name}),[xl.name]:k({fieldName:xl.name}),[Sl.name]:k({fieldName:Sl.name}),[Cl.name]:k({fieldName:Cl.name}),[wl.name]:k({fieldName:wl.name})}))}).optional()}),Dl=e=>H(K(_l,e),K(vl,e)),Ol={"company-overview-v1-pipe0":{provider:`pipe0`,allowManagedConnection:!0,credits:{default:1},mode:`always`}},kl=class extends U{pipeId=Tl;payloadSchema=El;billableOperations=Ol;payload;constructor(e){super(),this.payload=e}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[`company-overview-v1-pipe0`]}getInputRequirement(){return Dl(this.payload.config)}getRawOutputFields(){return{[yl.name]:this.catalogOutput(yl),[bl.name]:this.catalogOutput(bl),[xl.name]:this.catalogOutput(xl),[Sl.name]:this.catalogOutput(Sl),[Cl.name]:this.catalogOutput(Cl),[wl.name]:this.catalogOutput(wl)}}getConnectionsRequirements(){return[{provider:`perplexity`,rateLimitRatio:1,rateLimitOperation:`perplexity_generic`,allowManagedConnection:!0},{provider:`leadmagic`,rateLimitRatio:.2,rateLimitOperation:`leadmagic_email_lookup`,allowManagedConnection:!0},{provider:`gemini`,rateLimitOperation:`gemini_20_flash`,rateLimitRatio:.1,allowManagedConnection:!0}]}},Al=El,jl={pipeId:Tl,basePipe:W(Tl),inputFieldMode:`static`,outputFieldMode:`static`,label:`Company overview`,executionMode:`mix`,categories:[`deprecated`],lifecycle:{deprecatedOn:`2026-06-13`,replacedBy:`company:identity@2`},description:`Find high-level business and financial information like company description, estimated revenue, and headcount.`,docPath:`/resources/pipe-catalog/company:overview/1`,tags:[B.WEBSITE,B.LINKEDIN,B.FINANCIAL_DATA,B.DEPRECATED],allowedUserConnectionProviders:[],managedProviders:[`pipe0`],deprecatedProviders:[],billableOperations:Ol,defaultInputRequirement:Dl(null),defaultPayload:{pipe_id:Tl,run_if:null,connector:void 0,config:{input_fields:{company_social_url:{alias:``},company_website_url:{alias:``}},output_fields:{company_description:{alias:``,enabled:!0},company_industry:{alias:``,enabled:!0},company_region:{alias:``,enabled:!0},estimated_revenue:{alias:``,enabled:!0},founded_year:{alias:``,enabled:!0},headcount:{alias:``,enabled:!0}}}}},Ml=_(`company_website_url`),Nl=_(`company_profile_url`),Pl=_(`company_description`),Fl=_(`company_industry`),Il=_(`company_region`),Ll=_(`headcount`),Rl=_(`estimated_revenue`),zl=_(`founded_year`),Bl=_(`company_name`),Vl=`company:overview@2`,Hl=r.object({pipe_id:r.literal(Vl),run_if:S(),connector:T(),config:r.object({input_fields:z(r.object({[Ml.name]:E({fieldName:Ml.name}),[Nl.name]:E({fieldName:Nl.name})})),output_fields:R(r.object({[Pl.name]:k({fieldName:Pl.name}),[Fl.name]:k({fieldName:Fl.name}),[Il.name]:k({fieldName:Il.name}),[Ll.name]:k({fieldName:Ll.name}),[Rl.name]:k({fieldName:Rl.name}),[zl.name]:k({fieldName:zl.name}),[Bl.name]:k({fieldName:Bl.name})}))}).optional()}),Ul=e=>H(K(Ml,e),K(Nl,e)),Wl={"company-overview-v2-pipe0":{provider:`pipe0`,allowManagedConnection:!0,credits:{default:1},mode:`always`}},Gl=class extends U{pipeId=Vl;payloadSchema=Hl;billableOperations=Wl;payload;constructor(e){super(),this.payload=e}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[`company-overview-v2-pipe0`]}getInputRequirement(){return Ul(this.payload.config)}getRawOutputFields(){return{[Pl.name]:this.catalogOutput(Pl),[Fl.name]:this.catalogOutput(Fl),[Il.name]:this.catalogOutput(Il),[Ll.name]:this.catalogOutput(Ll),[Rl.name]:this.catalogOutput(Rl),[zl.name]:this.catalogOutput(zl),[Bl.name]:this.catalogOutput(Bl)}}getConnectionsRequirements(){return[{provider:`perplexity`,rateLimitRatio:1,rateLimitOperation:`perplexity_generic`,allowManagedConnection:!0},{provider:`leadmagic`,rateLimitRatio:.2,rateLimitOperation:`leadmagic_email_lookup`,allowManagedConnection:!0},{provider:`gemini`,rateLimitOperation:`gemini_20_flash`,rateLimitRatio:.1,allowManagedConnection:!0}]}},Kl=Hl,ql={pipeId:Vl,basePipe:W(Vl),inputFieldMode:`static`,outputFieldMode:`static`,label:`Company overview`,executionMode:`mix`,categories:[`deprecated`],lifecycle:{deprecatedOn:`2026-06-13`,replacedBy:`company:overview@3`},description:`Business description, industry, and financial information.`,docPath:G(Vl),tags:[B.WEBSITE,B.LINKEDIN,B.FINANCIAL_DATA],allowedUserConnectionProviders:[],managedProviders:[`pipe0`],deprecatedProviders:[],billableOperations:Wl,defaultInputRequirement:Ul(null),defaultPayload:{pipe_id:Vl,run_if:null,connector:void 0,config:{input_fields:{company_profile_url:{alias:``},company_website_url:{alias:``}},output_fields:{company_description:{alias:``,enabled:!0},company_industry:{alias:``,enabled:!0},company_region:{alias:``,enabled:!0},estimated_revenue:{alias:``,enabled:!0},founded_year:{alias:``,enabled:!0},headcount:{alias:``,enabled:!0},company_name:{alias:``,enabled:!1}}}}},Jl=_(`company_website_url`),Yl=_(`technology_list`),Xl=_(`spending_trend`),Zl=_(`technology_match_builtwith`),Ql=`company:techstack:builtwith@1`,$l=r.object({pipe_id:r.literal(Ql),connector:w(),run_if:S(),config:r.object({input_fields:z(r.object({[Jl.name]:E({fieldName:Jl.name})})),output_fields:R(r.object({[Yl.name]:k({fieldName:Yl.name}),[Zl.name]:k({fieldName:Zl.name}),[Xl.name]:k({fieldName:Xl.name})}))}).optional()}),eu=e=>V(K(Jl,e)),tu={"company-techstack-builtwith-v1-builtwith":{provider:`builtwith`,allowManagedConnection:!0,credits:{default:2},mode:`always`}},nu=class extends U{pipeId=Ql;payload;payloadSchema=$l;billableOperations=tu;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`builtwith`]}estimateBillableOperations(){return[`company-techstack-builtwith-v1-builtwith`]}getInputRequirement(){return eu(this.payload.config)}getRawOutputFields(){return{[Yl.name]:this.catalogOutput(Yl),[Zl.name]:this.catalogOutput(Zl),[Xl.name]:this.catalogOutput(Xl)}}getConnectionsRequirements(){return[{provider:`builtwith`,rateLimitRatio:1,rateLimitOperation:`builtwith_generic`,allowManagedConnection:!0}]}},ru=$l,iu={pipeId:Ql,basePipe:W(Ql),managedProviders:[`builtwith`],deprecatedProviders:[],allowedUserConnectionProviders:[`builtwith`],label:`Tech stack`,executionMode:`single`,categories:[`deprecated`],lifecycle:{deprecatedOn:`2026-06-13`,replacedBy:`company:techstack:builtwith@2`},description:`All technologies and frameworks powering a given website.`,tags:[B.WEBSITE],inputFieldMode:`static`,outputFieldMode:`static`,docPath:G(Ql),billableOperations:tu,defaultInputRequirement:eu(null),defaultPayload:{pipe_id:Ql,connector:null,run_if:null,config:{input_fields:{company_website_url:{alias:``}},output_fields:{technology_list:{alias:``,enabled:!0},technology_match_builtwith:{alias:``,enabled:!0},spending_trend:{alias:``,enabled:!0}}}}},au=`company:websiteurl:email@1`,ou=_(`company_website_url`),su=_(`email`),cu=r.object({pipe_id:r.literal(au),run_if:S(),connector:T(),config:r.object({input_fields:z(r.object({[su.name]:E({fieldName:su.name})})),output_fields:R(r.object({[ou.name]:k({fieldName:ou.name})}))}).optional()}),lu=e=>V(K(su,e)),uu={"company-websiteurl-email-v1-pipe0":{credits:{default:0},allowManagedConnection:!0,mode:`always`,provider:`pipe0`}},du=class extends U{pipeId=au;payload;payloadSchema=cu;billableOperations=uu;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[`company-websiteurl-email-v1-pipe0`]}getInputRequirement(){return lu(this.payload.config)}getRawOutputFields(){return{[ou.name]:this.catalogOutput(ou)}}getConnectionsRequirements(){return[{provider:`pipe0`,rateLimitRatio:1,rateLimitOperation:`pipe0_logic`,allowManagedConnection:!0}]}},fu=cu,pu={pipeId:au,basePipe:W(au),inputFieldMode:`static`,outputFieldMode:`static`,label:`Website from email`,executionMode:`single`,categories:[`deprecated`],lifecycle:{deprecatedOn:`2026-06-13`,replacedBy:`company:domain:workemail@1`},description:`Extract the company website URL from a work email address.`,tags:[B.EMAIL,B.WORK_EMAIL,B.WEBSITE],docPath:G(au),allowedUserConnectionProviders:[],managedProviders:[`pipe0`],deprecatedProviders:[],billableOperations:uu,defaultInputRequirement:lu(null),defaultPayload:{pipe_id:au,connector:null,run_if:null,config:{input_fields:{email:{alias:``}},output_fields:{company_website_url:{alias:``,enabled:!0}}}}},mu=`people:email:iswork@1`,hu=_(`is_work_email`),gu=_(`email`),_u=r.object({pipe_id:r.literal(mu),run_if:S(),connector:T(),config:r.object({input_fields:z(r.object({[gu.name]:E({fieldName:gu.name})})),output_fields:R(r.object({[hu.name]:k({fieldName:hu.name})}))}).optional()}),vu=e=>V(K(gu,e)),yu={"people-email-iswork-v1-pipe0":{provider:`pipe0`,allowManagedConnection:!0,credits:{default:0},mode:`always`}},bu=class extends U{pipeId=mu;payload;payloadSchema=_u;billableOperations=yu;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[`people-email-iswork-v1-pipe0`]}getInputRequirement(){return vu(this.payload.config)}getRawOutputFields(){return{[hu.name]:this.catalogOutput(hu)}}getConnectionsRequirements(){return[{provider:`pipe0`,rateLimitRatio:1,rateLimitOperation:`pipe0_logic`,allowManagedConnection:!0}]}},xu=_u,Su={pipeId:mu,label:`Work email checker`,executionMode:`single`,categories:[`deprecated`],lifecycle:{deprecatedOn:`2026-06-13`,replacedBy:`email:iswork@1`},description:`Check if a given email address is personal or professional.`,tags:[B.EMAIL,B.WORK_EMAIL],docPath:G(mu),billableOperations:yu,basePipe:W(mu),allowedUserConnectionProviders:[],inputFieldMode:`static`,outputFieldMode:`static`,managedProviders:[`pipe0`],deprecatedProviders:[],defaultInputRequirement:vu(null),defaultPayload:{pipe_id:mu,run_if:null,connector:null,config:{input_fields:{email:{alias:``}},output_fields:{is_work_email:{alias:``,enabled:!0}}}}},Cu=`people:email:validate:zerobounce@1`,wu=_(`work_email`),Tu=_(`is_email_valid`),Eu=r.object({pipe_id:r.literal(Cu),connector:w(),run_if:S(),config:r.object({input_fields:z(r.object({[wu.name]:E({fieldName:wu.name})})),output_fields:R(r.object({[Tu.name]:k({fieldName:Tu.name})}))}).optional()}),Du=e=>V(K(wu,e)),Ou={"people-email-validate-zerobounce-v1-zerobounce":{provider:`zerobounce`,allowManagedConnection:!0,credits:{default:.3},mode:`always`}},ku=class extends U{pipeId=Cu;payload;payloadSchema=Eu;billableOperations=Ou;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`zerobounce`]}estimateBillableOperations(){return[`people-email-validate-zerobounce-v1-zerobounce`]}getInputRequirement(){return Du(this.payload.config)}getRawOutputFields(){return{[Tu.name]:this.catalogOutput(Tu)}}getConnectionsRequirements(){return[{provider:`zerobounce`,rateLimitRatio:1,rateLimitOperation:`zerobounce_generic`,allowManagedConnection:!0}]}},Au=Eu,ju={pipeId:Cu,basePipe:W(Cu),label:`Validate email`,executionMode:`single`,categories:[`people_data`],lifecycle:{deprecatedOn:`2026-06-13`,replacedBy:`people:email:validate:zerobounce@2`},description:`Verify email address against various factors, including syntax, domain, and server existence, to ensure it is deliverable and active.`,tags:[B.EMAIL],docPath:`/resources/pipe-catalog/people:email:validate:zerobounce/1`,billableOperations:Ou,inputFieldMode:`static`,outputFieldMode:`static`,allowedUserConnectionProviders:[`zerobounce`],managedProviders:[`zerobounce`],deprecatedProviders:[],defaultInputRequirement:Du(null),defaultPayload:{pipe_id:Cu,connector:null,run_if:null,config:{input_fields:{work_email:{alias:``}},output_fields:{is_email_valid:{alias:``,enabled:!0}}}}},Mu=`people:email:validate:zerobounce@2`,Nu=_(`email`),Pu=_(`zerobounce_validation_status`),Fu=_(`zerobounce_validation_match`),Iu=r.object({pipe_id:r.literal(Mu),connector:w(),run_if:S(),config:r.object({input_fields:z(r.object({[Nu.name]:E({fieldName:Nu.name})})),output_fields:R(r.object({[Fu.name]:k({fieldName:Fu.name}),[Pu.name]:k({fieldName:Pu.name})}))}).optional()}),Lu=e=>V(K(Nu,e)),Ru={"people-email-validate-zerobounce-v2-zerobounce":{provider:`zerobounce`,allowManagedConnection:!0,credits:{default:.3},mode:`always`}},zu=class extends U{pipeId=Mu;payload;payloadSchema=Iu;billableOperations=Ru;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`zerobounce`]}estimateBillableOperations(){return[`people-email-validate-zerobounce-v2-zerobounce`]}getInputRequirement(){return Lu(this.payload.config)}getRawOutputFields(){return{[Pu.name]:this.catalogOutput(Pu),[Fu.name]:this.catalogOutput(Fu)}}getConnectionsRequirements(){return[{provider:`zerobounce`,rateLimitRatio:1,rateLimitOperation:`zerobounce_generic`,allowManagedConnection:!0}]}},Bu=Iu,Vu={pipeId:Mu,basePipe:W(Mu),label:`Validate email`,executionMode:`single`,categories:[`deprecated`],lifecycle:{deprecatedOn:`2026-06-13`,replacedBy:`email:validate:zerobounce@1`},description:`Verify email address against various factors, including syntax, domain, and server existence, to ensure it is deliverable and active.`,tags:[B.EMAIL],docPath:G(Mu),billableOperations:Ru,inputFieldMode:`static`,outputFieldMode:`static`,allowedUserConnectionProviders:[`zerobounce`],managedProviders:[`zerobounce`],deprecatedProviders:[],defaultInputRequirement:Lu(null),defaultPayload:{pipe_id:Mu,connector:null,run_if:null,config:{input_fields:{email:{alias:``}},output_fields:{zerobounce_validation_status:{alias:``,enabled:!0},zerobounce_validation_match:{alias:``,enabled:!0}}}}};function Hu(e){return(e.widgets||{}).display_value?.label}function Uu(e){console.dir(e,{depth:100})}function Wu(e){return typeof e==`object`&&e?JSON.stringify(e):e}function q(e){return e===0?1:e===1?.3:e===2?.2:.1}function Gu(e){if(typeof e!=`object`||!e||Array.isArray(e))return e;let t={};return Object.keys(e).sort().forEach(n=>{t[n]=Gu(e[n])}),t}const Ku={string:[`address_line_1`,`email`,`url`,`website_url`,`markdown`,`zip_code`,`date`,`datetime`,`phone`,`text`,`profile_url`],json:[`json_object`,`json_list`],number:[`int`,`decimal`],boolean:[],unknown:[]};function J(e,t){let n=Object.entries(t).filter(([t,n])=>n.provider===e);if(n.length!==1)throw Error(`Found ${n.length} billing operations for provider ${e}. This is not allowed. There must be exactly 1 billing operation per provider.`);let[r,i]=n[0];return{billableOperation:r,billableOperationDef:i}}const qu=`people:identity:email:waterfall@1`,Ju=_(`email`),Yu=_(`company_website_url`),Xu=_(`name`),Zu=_(`job_title`),Qu=_(`profile_url`),$u=_(`company_profile_url`),ed=_(`company_name`),td=[`findymail`,`hunter`,`crustdata`],nd=[{provider:`findymail`},{provider:`hunter`},{provider:`crustdata`}],rd=r.object({pipe_id:r.literal(qu),connector:w(),run_if:S(),config:r.object({providers:D({availableProviders:td,defaultProviders:nd,sectionKey:`general`}),input_fields:z(r.object({[Ju.name]:E({fieldName:Ju.name})})),output_fields:R(r.object({[Xu.name]:k({fieldName:Xu.name}),[Qu.name]:k({fieldName:Qu.name}),[Zu.name]:k({fieldName:Zu.name}),[Yu.name]:k({fieldName:Yu.name}),[ed.name]:k({fieldName:ed.name}),[$u.name]:k({fieldName:$u.name})}))}).optional()}),id=e=>V(K(Ju,e)),ad={"people-identity-email-waterfall-v1-hunter":{provider:`hunter`,allowManagedConnection:!0,credits:{default:2},mode:`onSuccess`},"people-identity-email-waterfall-v1-findymail":{provider:`findymail`,allowManagedConnection:!0,credits:{default:2},mode:`onSuccess`},"people-identity-email-waterfall-v1-crustdata":{provider:`crustdata`,allowManagedConnection:!0,credits:{default:5},mode:`onSuccess`}},od=class extends U{pipeId=qu;payload;payloadSchema=rd;billableOperations=ad;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return this.payload.config?.providers.map(e=>e.provider)||[]}estimateBillableOperations(){return this.getProviderNames().map(e=>J(e,this.billableOperations).billableOperation)}getInputRequirement(){return id(this.payload.config)}getRawOutputFields(){return{[Xu.name]:this.catalogOutput(Xu,{isPrimaryOutput:!0}),[Qu.name]:this.catalogOutput(Qu,{isPrimaryOutput:!0}),[Zu.name]:this.catalogOutput(Zu,{isPrimaryOutput:!0}),[ed.name]:this.catalogOutput(ed,{isPrimaryOutput:!0}),[$u.name]:this.catalogOutput($u,{isPrimaryOutput:!0}),[Yu.name]:this.catalogOutput(Yu,{isPrimaryOutput:!0})}}getConnectionsRequirements(){let e={hunter:`prospeo_email_lookup`,findymail:`findymail_email_b2b_lookup`,crustdata:`crustdata_realtime_person_enrich`};return(this.payload.config?.providers||[]).map((t,n)=>({provider:t.provider,rateLimitRatio:q(n),rateLimitOperation:e[t.provider],allowManagedConnection:!0}))}},sd=rd,cd={pipeId:qu,basePipe:W(qu),label:`Person identity from email`,executionMode:`waterfall`,categories:[`deprecated`],lifecycle:{deprecatedOn:`2026-06-13`,replacedBy:`person:identity:email:waterfall@1`},description:`Find identity of a person from their email address.`,tags:[B.EMAIL,B.PEOPLE_PROFILES],docPath:G(qu),managedProviders:td,deprecatedProviders:[],allowedUserConnectionProviders:td,inputFieldMode:`static`,outputFieldMode:`static`,billableOperations:ad,defaultInputRequirement:id(null),defaultPayload:{pipe_id:qu,connector:null,run_if:null,config:{providers:nd,input_fields:{email:{alias:``}},output_fields:{name:{alias:``,enabled:!0},profile_url:{alias:``,enabled:!0},job_title:{alias:``,enabled:!0},company_name:{alias:``,enabled:!0},company_profile_url:{alias:``,enabled:!0},company_website_url:{alias:``,enabled:!0}}}}},ld=`people:match:role:waterfall@1`,ud=_(`company_website_url`),dd=_(`role_finder_match`),fd=[`leadmagic`],pd=[{provider:`leadmagic`}],md=r.object({pipe_id:r.literal(ld),run_if:S(),connector:w(),config:r.object({providers:D({sectionKey:`general`,defaultProviders:pd,availableProviders:fd}),roles:Xi({sectionKey:`general`,groupPath:`config.general`,label:`Roles`,path:`config.roles`,info:`Company roles to include`,maxItems:3,minItems:1}),input_fields:z(r.object({[ud.name]:E({fieldName:ud.name})})),output_fields:R(r.object({[dd.name]:k({fieldName:dd.name})}))})}),hd=e=>H(K(ud,e)),gd={"people-match-role-waterfall-v1-leadmagic":{provider:`leadmagic`,allowManagedConnection:!0,credits:{default:1},mode:`onSuccess`}},_d=class extends U{pipeId=ld;payload;payloadSchema=md;billableOperations=gd;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return this.payload.config?.providers.map(e=>e.provider)||[]}estimateBillableOperations(){return this.getProviderNames().map(e=>J(e,this.billableOperations).billableOperation)}getInputRequirement(){return hd(this.payload.config)}getRawOutputFields(){return{[dd.name]:this.catalogOutput(dd,{isPrimaryOutput:!0})}}getConnectionsRequirements(){let e={leadmagic:`leadmagic_role_finder`};return(this.payload.config?.providers||[]).map((t,n)=>({provider:t.provider,rateLimitRatio:q(n),rateLimitOperation:e[t.provider],allowManagedConnection:!0}))}},vd=md,yd={pipeId:ld,basePipe:W(ld),managedProviders:fd,deprecatedProviders:[],allowedUserConnectionProviders:fd,label:`Role finder`,executionMode:`waterfall`,categories:[`deprecated`],lifecycle:{deprecatedOn:`2026-06-13`,replacedBy:`person:match:role:waterfall@1`},description:`Find role matches for a given companies like "CEO" or "CFO".`,tags:[B.PEOPLE_PROFILES],docPath:G(ld),billableOperations:gd,inputFieldMode:`static`,outputFieldMode:`static`,defaultInputRequirement:hd(null),defaultPayload:{pipe_id:ld,run_if:null,connector:null,config:{roles:[],providers:pd,input_fields:{company_website_url:{alias:``}},output_fields:{role_finder_match:{alias:``,enabled:!0}}}}},bd=`people:mobilenumber:professionalprofile:waterfall@1`,xd=_(`professional_profile_url`),Sd=_(`mobile_number`),Cd=[`leadmagic`,`prospeo`],wd=[{provider:`leadmagic`},{provider:`prospeo`}],Td=r.object({pipe_id:r.literal(bd),run_if:S(),connector:w(),config:r.object({providers:D({sectionKey:`general`,defaultProviders:wd,availableProviders:Cd}),input_fields:z(r.object({[xd.name]:E({fieldName:xd.name})})),output_fields:R(r.object({[Sd.name]:k({fieldName:Sd.name})}))}).optional()}),Ed=e=>V(K(xd,e)),Dd={"people-mobilenumber-professionalprofile-waterfall-v1-leadmagic":{provider:`leadmagic`,allowManagedConnection:!0,credits:{default:2},mode:`onSuccess`},"people-mobilenumber-professionalprofile-waterfall-v1-prospeo":{provider:`prospeo`,allowManagedConnection:!0,credits:{default:5},mode:`onSuccess`}},Od=class extends U{pipeId=bd;payload;payloadSchema=Td;billableOperations=Dd;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return this.payload.config?.providers.map(e=>e.provider)||[]}estimateBillableOperations(){return this.getProviderNames().map(e=>J(e,this.billableOperations).billableOperation)}getInputRequirement(){return Ed(this.payload.config)}getRawOutputFields(){return{[Sd.name]:this.catalogOutput(Sd)}}getConnectionsRequirements(){let e={leadmagic:`leadmagic_email_lookup`,prospeo:`prospeo_phone_number_lookup`};return(this.payload.config?.providers||[]).map((t,n)=>({provider:t.provider,rateLimitRatio:q(n),rateLimitOperation:e[t.provider],allowManagedConnection:!0}))}},kd=Td,Ad={pipeId:bd,basePipe:W(bd),label:`Mobile number from LinkedIn profile`,executionMode:`waterfall`,categories:[`deprecated`],lifecycle:{deprecatedOn:`2026-06-13`,replacedBy:`people:phone:profile:waterfall@1`},description:`Find a mobile phone number for any prospect using multiple data providers in a waterfall motion.`,docPath:`/resources/pipe-catalog/people:mobilenumber:professionalprofile:waterfall/1`,tags:[B.PHONE,B.WATERFALL],billableOperations:Dd,defaultInputRequirement:Ed(null),inputFieldMode:`static`,outputFieldMode:`static`,managedProviders:Cd,deprecatedProviders:[],allowedUserConnectionProviders:Cd,defaultPayload:{pipe_id:bd,connector:null,run_if:null,config:{providers:wd,input_fields:{professional_profile_url:{alias:``}},output_fields:{mobile_number:{alias:``,enabled:!0}}}}},jd=`people:mobilenumber:workemail:waterfall@1`,Md=_(`work_email`),Nd=_(`mobile_number`),Pd=[`leadmagic`],Fd=[{provider:`leadmagic`}],Id=r.object({pipe_id:r.literal(jd),run_if:S(),connector:w(),config:r.object({providers:D({sectionKey:`general`,availableProviders:Pd,defaultProviders:Fd}),input_fields:z(r.object({[Md.name]:E({fieldName:Md.name})})),output_fields:R(r.object({[Nd.name]:k({fieldName:Nd.name})}))}).optional()}),Ld=e=>V(K(Md,e)),Rd={"people-mobilenumber-workemail-waterfall-v1-leadmagic":{provider:`leadmagic`,allowManagedConnection:!0,credits:{default:2},mode:`onSuccess`}},zd=class extends U{pipeId=jd;payload;payloadSchema=Id;billableOperations=Rd;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return this.payload.config?.providers?.map(e=>e.provider)||[]}estimateBillableOperations(){return this.getProviderNames().map(e=>J(e,this.billableOperations).billableOperation)}getInputRequirement(){return Ld(this.payload.config)}getRawOutputFields(){return{[Nd.name]:this.catalogOutput(Nd)}}getConnectionsRequirements(){let e={leadmagic:`leadmagic_email_lookup`};return(this.payload.config?.providers||[]).map((t,n)=>({provider:t.provider,rateLimitRatio:q(n),rateLimitOperation:e[t.provider],allowManagedConnection:!0}))}},Bd=Id,Vd={pipeId:jd,basePipe:W(jd),label:`Mobile number from email`,executionMode:`waterfall`,categories:[`deprecated`],lifecycle:{deprecatedOn:`2026-06-13`,replacedBy:`people:phone:workemail:waterfall@1`},description:`Find a mobile phone number for a prospect.`,tags:[B.PHONE,B.WATERFALL],docPath:`/resources/pipe-catalog/people:mobilenumber:workemail:waterfall/1`,billableOperations:Rd,defaultInputRequirement:Ld(null),inputFieldMode:`static`,outputFieldMode:`static`,allowedUserConnectionProviders:Pd,managedProviders:Pd,deprecatedProviders:[],defaultPayload:{pipe_id:jd,connector:null,run_if:null,config:{providers:Fd,input_fields:{work_email:{alias:``}},output_fields:{mobile_number:{alias:``,enabled:!0}}}}},Hd=`people:name:split@1`,Ud=_(`name`),Wd=_(`first_name`),Gd=_(`last_name`),Kd=r.object({pipe_id:r.literal(Hd),connector:T(),run_if:S(),config:r.object({input_fields:z(r.object({[Ud.name]:E({fieldName:Ud.name})})),output_fields:R(r.object({[Wd.name]:k({fieldName:Wd.name}),[Gd.name]:k({fieldName:Gd.name})}))}).optional()}),qd=e=>V(K(Ud,e)),Jd={"people-name-split-v1-pipe0":{provider:`pipe0`,allowManagedConnection:!0,credits:{default:0},mode:`always`}},Yd=class extends U{pipeId=Hd;payload;payloadSchema=Kd;billableOperations=Jd;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[`people-name-split-v1-pipe0`]}getInputRequirement(){return qd(this.payload.config)}getRawOutputFields(){return{[Wd.name]:this.catalogOutput(Wd),[Gd.name]:this.catalogOutput(Gd)}}getConnectionsRequirements(){return[{provider:`pipe0`,rateLimitRatio:1,rateLimitOperation:`pipe0_logic`,allowManagedConnection:!0}]}},Xd=Kd,Zd={pipeId:Hd,basePipe:W(Hd),label:`Split name`,executionMode:`single`,categories:[`deprecated`],lifecycle:{deprecatedOn:`2026-06-13`,replacedBy:`person:name:split@1`},description:`Split a full name into first and last name.`,tags:[B.NAMES],docPath:G(Hd),billableOperations:Jd,inputFieldMode:`static`,outputFieldMode:`static`,defaultInputRequirement:qd(null),allowedUserConnectionProviders:[],managedProviders:[`pipe0`],deprecatedProviders:[],defaultPayload:{pipe_id:Hd,run_if:null,connector:void 0,config:{input_fields:{name:{alias:``}},output_fields:{first_name:{alias:``,enabled:!0},last_name:{alias:``,enabled:!0}}}}},Qd=`people:personalemail:profile:waterfall@1`,$d=_(`profile_url`),ef=_(`personal_email`),tf=_(`alternate_personal_emails`),nf=[`clado`,`leadmagic`,`mixrank`],rf=[{provider:`leadmagic`},{provider:`mixrank`}],af=r.object({pipe_id:r.literal(Qd),run_if:S(),connector:w(),config:r.object({providers:D({sectionKey:`general`,availableProviders:nf,defaultProviders:rf}),input_fields:z(r.object({[$d.name]:E({fieldName:$d.name})})),output_fields:R(r.object({[ef.name]:k({fieldName:ef.name}),[tf.name]:k({fieldName:tf.name})}))}).optional()}),of=e=>V(K($d,e)),sf={"people-personalemail-profile-waterfall-v1-clado":{provider:`clado`,allowManagedConnection:!0,credits:{default:2},mode:`always`},"people-personalemail-profile-waterfall-v1-leadmagic":{provider:`leadmagic`,allowManagedConnection:!0,credits:{default:1},mode:`onSuccess`},"people-personalemail-profile-waterfall-v1-mixrank":{provider:`mixrank`,allowManagedConnection:!0,credits:{default:1},mode:`onSuccess`}},cf=class extends U{pipeId=Qd;payload;payloadSchema=af;billableOperations=sf;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return this.payload.config?.providers.map(e=>e.provider)||[]}estimateBillableOperations(){return this.getProviderNames().map(e=>J(e,this.billableOperations).billableOperation)}getInputRequirement(){return of(this.payload.config)}getRawOutputFields(){return{[ef.name]:this.catalogOutput(ef,{isPrimaryOutput:!0}),[tf.name]:this.catalogOutput(tf)}}getConnectionsRequirements(){let e={leadmagic:`leadmagic_personal_email_finder`,clado:`clado_contact_information`,mixrank:`mixrank-person-match`};return(this.payload.config?.providers||[]).map((t,n)=>({provider:t.provider,rateLimitRatio:q(n),rateLimitOperation:e[t.provider],allowManagedConnection:!0}))}},lf=af,uf={pipeId:Qd,basePipe:W(Qd),allowedUserConnectionProviders:nf,managedProviders:nf,deprecatedProviders:[`clado`],label:`Find personal email`,executionMode:`waterfall`,categories:[`deprecated`],lifecycle:{deprecatedOn:`2026-06-13`,replacedBy:`person:personalemail:profileurl:waterfall@1`},description:`Find the personal email address of a prospect by using a professional profile URL as input.`,tags:[B.EMAIL,B.PERSONAL_EMAIL],docPath:G(Qd),billableOperations:sf,defaultInputRequirement:of(null),inputFieldMode:`static`,outputFieldMode:`static`,defaultPayload:{pipe_id:Qd,connector:null,run_if:null,config:{providers:rf,input_fields:{profile_url:{alias:``}},output_fields:{personal_email:{alias:``,enabled:!0},alternate_personal_emails:{alias:``,enabled:!0}}}}},df=`people:phone:profile:waterfall@1`,ff=_(`profile_url`),pf=_(`mobile`),mf=[`leadmagic`,`prospeo`,`amplemarket`,`findymail`,`clado`],hf=[{provider:`leadmagic`},{provider:`prospeo`},{provider:`amplemarket`},{provider:`findymail`}],gf=r.object({pipe_id:r.literal(df),run_if:S(),connector:w(),config:r.object({providers:D({sectionKey:`general`,defaultProviders:hf,availableProviders:mf}),input_fields:z(r.object({[ff.name]:E({fieldName:ff.name})})),output_fields:R(r.object({[pf.name]:k({fieldName:pf.name})}))}).optional()}),_f=e=>V(K(ff,e)),vf={"people-phone-profile-waterfall-v1-leadmagic":{provider:`leadmagic`,allowManagedConnection:!0,credits:{default:2},mode:`onSuccess`},"people-phone-profile-waterfall-v1-clado":{provider:`clado`,allowManagedConnection:!0,credits:{default:5},mode:`onSuccess`},"people-phone-profile-waterfall-v1-prospeo":{provider:`prospeo`,allowManagedConnection:!0,credits:{default:5},mode:`onSuccess`},"people-phone-profile-waterfall-v1-findymail":{provider:`findymail`,allowManagedConnection:!0,credits:{default:6},mode:`onSuccess`},"people-phone-profile-waterfall-v1-amplemarket":{provider:`amplemarket`,allowManagedConnection:!0,credits:{default:4},mode:`onSuccess`}},yf=class extends U{pipeId=df;payload;payloadSchema=gf;billableOperations=vf;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return this.payload.config?.providers.map(e=>e.provider)||[]}estimateBillableOperations(){return this.getProviderNames().map(e=>J(e,this.billableOperations).billableOperation)}getInputRequirement(){return _f(this.payload.config)}getRawOutputFields(){return{[pf.name]:this.catalogOutput(pf,{isPrimaryOutput:!0})}}getConnectionsRequirements(){let e={leadmagic:`leadmagic_email_lookup`,prospeo:`prospeo_phone_number_lookup`,findymail:`findymail_phone_lookup`,clado:`clado_contact_information`,amplemarket:`amplemarket-person-reveal`};return(this.payload.config?.providers||[]).map((t,n)=>({provider:t.provider,rateLimitRatio:q(n),rateLimitOperation:e[t.provider],allowManagedConnection:!0}))}},bf=gf,xf={pipeId:df,basePipe:W(df),label:`Mobile number from LinkedIn profile`,executionMode:`waterfall`,categories:[`deprecated`],lifecycle:{deprecatedOn:`2026-06-13`,replacedBy:`person:mobile:profileurl:waterfall@1`},description:`Find a mobile phone number for any prospect using multiple data providers in a waterfall motion.`,docPath:G(df),tags:[B.PHONE,B.WATERFALL],billableOperations:vf,defaultInputRequirement:_f(null),inputFieldMode:`static`,outputFieldMode:`static`,managedProviders:mf,allowedUserConnectionProviders:mf,deprecatedProviders:[`clado`],defaultPayload:{pipe_id:df,connector:null,run_if:null,config:{providers:hf,input_fields:{profile_url:{alias:``}},output_fields:{mobile:{alias:``,enabled:!0}}}}},Sf=`people:phone:workemail:waterfall@1`,Cf=_(`work_email`),wf=_(`mobile`),Tf=[`leadmagic`,`amplemarket`],Ef=[{provider:`leadmagic`},{provider:`amplemarket`}],Df=r.object({pipe_id:r.literal(Sf),run_if:S(),connector:w(),config:r.object({providers:D({sectionKey:`general`,availableProviders:Tf,defaultProviders:Ef}),input_fields:z(r.object({[Cf.name]:E({fieldName:Cf.name})})),output_fields:R(r.object({[wf.name]:k({fieldName:wf.name})}))}).optional()}),Of=e=>V(K(Cf,e)),kf={"people-phone-workemail-waterfall-v1-leadmagic":{provider:`leadmagic`,allowManagedConnection:!0,credits:{default:2},mode:`onSuccess`},"people-phone-workemail-waterfall-v1-amplemarket":{provider:`amplemarket`,allowManagedConnection:!0,credits:{default:4},mode:`onSuccess`}},Af=class extends U{pipeId=Sf;payload;payloadSchema=Df;billableOperations=kf;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return this.payload.config?.providers.map(e=>e.provider)||[]}estimateBillableOperations(){return this.getProviderNames().map(e=>J(e,this.billableOperations).billableOperation)}getInputRequirement(){return Of(this.payload.config)}getRawOutputFields(){return{[wf.name]:this.catalogOutput(wf,{isPrimaryOutput:!0})}}getConnectionsRequirements(){let e={leadmagic:`leadmagic_email_lookup`,amplemarket:`amplemarket-person-reveal`};return(this.payload.config?.providers||[]).map((t,n)=>({provider:t.provider,rateLimitRatio:q(n),rateLimitOperation:e[t.provider],allowManagedConnection:!0}))}},jf=Df,Mf={pipeId:Sf,basePipe:W(Sf),label:`Mobile number from email`,executionMode:`waterfall`,categories:[`deprecated`],lifecycle:{deprecatedOn:`2026-06-13`,replacedBy:`person:mobile:workemail:waterfall@1`},description:`Find a mobile phone number for a prospect.`,tags:[B.PHONE,B.WATERFALL],docPath:G(Sf),billableOperations:kf,defaultInputRequirement:Of(null),inputFieldMode:`static`,outputFieldMode:`static`,allowedUserConnectionProviders:Tf,managedProviders:Tf,deprecatedProviders:[],defaultPayload:{pipe_id:Sf,connector:null,run_if:null,config:{providers:Ef,input_fields:{work_email:{alias:``}},output_fields:{mobile:{alias:``,enabled:!0}}}}},Nf=`people:professionalprofile:waterfall@1`,Pf=_(`professional_profile`),Ff=_(`professional_profile_url`),If=[`prospeo`,`icypeas`],Lf=[{provider:`prospeo`},{provider:`icypeas`}],Rf=r.object({pipe_id:r.literal(Nf),run_if:S(),connector:w(),config:r.object({providers:D({sectionKey:`general`,availableProviders:If,defaultProviders:Lf}),input_fields:z(r.object({[Ff.name]:E({fieldName:Ff.name})})),output_fields:R(r.object({[Pf.name]:k({fieldName:Pf.name})}))}).optional()}),zf=e=>V(K(Ff,e)),Bf={"people-professionalprofile-waterfall-v1-icypeas":{provider:`icypeas`,credits:{default:1},mode:`onSuccess`,allowManagedConnection:!0},"people-professionalprofile-waterfall-v1-prospeo":{provider:`prospeo`,credits:{default:1},mode:`onSuccess`,allowManagedConnection:!0}},Vf=class extends U{pipeId=Nf;payload;payloadSchema=Rf;billableOperations=Bf;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return this.payload.config?.providers.map(e=>e.provider)||[]}estimateBillableOperations(){return this.getProviderNames().map(e=>J(e,this.billableOperations).billableOperation)}getInputRequirement(){return zf(this.payload.config)}getRawOutputFields(){return{[Pf.name]:this.catalogOutput(Pf)}}getConnectionsRequirements(){let e={icypeas:`icypeas_scrape_profile`,prospeo:`prospeo_social_profile_lookup`};return(this.payload.config?.providers||[]).map((t,n)=>({provider:t.provider,rateLimitRatio:q(n),rateLimitOperation:e[t.provider],allowManagedConnection:!0}))}},Hf=Rf,Uf={pipeId:Nf,basePipe:W(Nf),label:`Full LinkedIn profile`,executionMode:`waterfall`,categories:[`deprecated`],lifecycle:{deprecatedOn:`2026-06-13`,replacedBy:`people:profile:waterfall@1`},description:`Find a JSON representation of a LinkedIn profile.`,docPath:`/resources/pipe-catalog/people:professionalprofile:waterfall/1`,tags:[B.LINKEDIN,B.WATERFALL],managedProviders:If,deprecatedProviders:[],allowedUserConnectionProviders:If,inputFieldMode:`static`,outputFieldMode:`static`,billableOperations:Bf,defaultInputRequirement:zf(null),defaultPayload:{pipe_id:Nf,run_if:null,connector:null,config:{providers:Lf,input_fields:{professional_profile_url:{alias:``}},output_fields:{professional_profile:{alias:``,enabled:!0}}}}},Wf=`people:professionalprofileurl:email:waterfall@1`,Gf=_(`email`),Kf=_(`work_email`),qf=_(`professional_profile_url`),Jf=[`leadmagic`],Yf=[{provider:`leadmagic`}],Xf=r.object({pipe_id:r.literal(Wf),run_if:S(),connector:w(),config:r.object({providers:D({sectionKey:`general`,defaultProviders:Yf,availableProviders:Jf}),input_fields:z(r.object({[Gf.name]:E({fieldName:Gf.name}),[Kf.name]:E({fieldName:Kf.name})})),output_fields:R(r.object({[qf.name]:k({fieldName:qf.name})}))}).optional()}),Zf=e=>H(K(Gf,e),K(Kf,e)),Qf={"people-professionalprofileurl-email-waterfall-v1-leadmagic":{provider:`leadmagic`,allowManagedConnection:!0,credits:{default:3.5},mode:`onSuccess`}},$f=class extends U{pipeId=Wf;payload;payloadSchema=Xf;billableOperations=Qf;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return this.payload.config?.providers.map(e=>e.provider)||[]}estimateBillableOperations(){return this.getProviderNames().map(e=>J(e,this.billableOperations).billableOperation)}getInputRequirement(){return Zf(this.payload.config)}getRawOutputFields(){return{[qf.name]:this.catalogOutput(qf)}}getConnectionsRequirements(){let e={leadmagic:`leadmagic_email_to_b2b_profile`};return(this.payload.config?.providers||[]).map((t,n)=>({provider:t.provider,rateLimitRatio:q(n),rateLimitOperation:e[t.provider],allowManagedConnection:!0}))}},ep=Xf,tp={pipeId:Wf,basePipe:W(Wf),managedProviders:Jf,deprecatedProviders:[],allowedUserConnectionProviders:Jf,label:`LinkedIn URL from email`,executionMode:`waterfall`,categories:[`deprecated`],lifecycle:{deprecatedOn:`2026-06-13`,replacedBy:`people:profileurl:email:waterfall@1`},description:`Find the URL for a prospect's LinkedIn profile from their personal or professional email address.`,tags:[B.LINKEDIN],docPath:`/resources/pipe-catalog/people:professionalprofileurl:email:waterfall/1`,billableOperations:Qf,inputFieldMode:`static`,outputFieldMode:`static`,defaultInputRequirement:Zf(null),defaultPayload:{pipe_id:Wf,run_if:null,connector:null,config:{providers:Yf,input_fields:{email:{alias:``},work_email:{alias:``}},output_fields:{professional_profile_url:{alias:``,enabled:!0}}}}},np=`people:professionalprofileurl:name@1`,rp=_(`name`),ip=_(`company_name`),ap=_(`location_hint`),op=_(`professional_profile_url`),sp=r.object({pipe_id:r.literal(np),connector:T(),run_if:S(),config:r.object({input_fields:z(r.object({[rp.name]:E({fieldName:rp.name}),[ip.name]:E({fieldName:ip.name}),[ap.name]:E({fieldName:ap.name})})),output_fields:R(r.object({[op.name]:k({fieldName:op.name})}))}).optional()}),cp=e=>Ea(V(K(rp,e)),V(K(ip,e)),Da(K(ap,e))),lp={"people-professionalprofileurl-name-v1-pipe0":{provider:`pipe0`,allowManagedConnection:!0,credits:{default:.6},mode:`always`}},up=class extends U{pipeId=np;payload;payloadSchema=sp;billableOperations=lp;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[`people-professionalprofileurl-name-v1-pipe0`]}getInputRequirement(){return cp(this.payload.config)}getRawOutputFields(){return{[op.name]:this.catalogOutput(op)}}getConnectionsRequirements(){return[{provider:`serper`,rateLimitRatio:1,rateLimitOperation:`serper_search`,allowManagedConnection:!0}]}},dp=sp,fp={pipeId:np,basePipe:W(np),label:`LinkedIn URL from name`,executionMode:`single`,categories:[`deprecated`],lifecycle:{deprecatedOn:`2026-06-13`,replacedBy:`person:profileurl:name@1`},allowedUserConnectionProviders:[],managedProviders:[`pipe0`],deprecatedProviders:[],description:`Find the LinkedIn profile URL by using the prospect's name as input.`,docPath:`/resources/pipe-catalog/people:professionalprofileurl:name/1`,tags:[B.LINKEDIN],billableOperations:lp,defaultInputRequirement:cp(null),inputFieldMode:`static`,outputFieldMode:`static`,defaultPayload:{pipe_id:np,connector:void 0,run_if:null,config:{input_fields:{company_name:{alias:``},location_hint:{alias:``},name:{alias:``}},output_fields:{professional_profile_url:{alias:``,enabled:!0}}}}},pp=`people:profile:waterfall@1`,mp=_(`profile`),hp=_(`profile_url`),gp=[`prospeo`,`icypeas`,`amplemarket`,`clado`],_p=[{provider:`amplemarket`},{provider:`prospeo`},{provider:`icypeas`}],vp=r.object({pipe_id:r.literal(pp),run_if:S(),connector:w(),config:r.object({providers:D({sectionKey:`general`,availableProviders:gp,defaultProviders:_p}),input_fields:z(r.object({[hp.name]:E({fieldName:hp.name})})),output_fields:R(r.object({[mp.name]:k({fieldName:mp.name})}))}).optional()}),yp=e=>V(K(hp,e)),bp={"people-profile-waterfall-v1-icypeas":{provider:`icypeas`,credits:{default:1},mode:`onSuccess`,allowManagedConnection:!0},"people-profile-waterfall-v1-prospeo":{provider:`prospeo`,credits:{default:1},mode:`onSuccess`,allowManagedConnection:!0},"people-profile-waterfall-v1-clado":{provider:`clado`,credits:{default:1},mode:`onSuccess`,allowManagedConnection:!0},"people-profile-waterfall-v1-amplemarket":{provider:`amplemarket`,credits:{default:1},mode:`onSuccess`,allowManagedConnection:!0}},xp=class extends U{pipeId=pp;payload;payloadSchema=vp;billableOperations=bp;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return this.payload.config?.providers.map(e=>e.provider)||[]}estimateBillableOperations(){return this.getProviderNames().map(e=>J(e,this.billableOperations).billableOperation)}getInputRequirement(){return yp(this.payload.config)}getRawOutputFields(){return{[mp.name]:this.catalogOutput(mp,{isPrimaryOutput:!0})}}getConnectionsRequirements(){let e={icypeas:`icypeas_scrape_profile`,prospeo:`prospeo_social_profile_lookup`,clado:`clado_social_profile_lookup`,amplemarket:`amplemarket-person-reveal`};return(this.payload.config?.providers||[]).map((t,n)=>({provider:t.provider,rateLimitRatio:q(n),rateLimitOperation:e[t.provider],allowManagedConnection:!0}))}},Sp=vp,Cp={pipeId:pp,basePipe:W(pp),label:`Full LinkedIn profile`,executionMode:`waterfall`,categories:[`deprecated`],lifecycle:{deprecatedOn:`2026-06-13`,replacedBy:`person:profile:waterfall@1`},description:`Find a JSON representation of a LinkedIn profile.`,docPath:G(pp),tags:[B.LINKEDIN,B.WATERFALL],managedProviders:gp,deprecatedProviders:[`clado`],allowedUserConnectionProviders:gp,inputFieldMode:`static`,outputFieldMode:`static`,billableOperations:bp,defaultInputRequirement:yp(null),defaultPayload:{pipe_id:pp,run_if:null,connector:null,config:{providers:_p,input_fields:{profile_url:{alias:``}},output_fields:{profile:{alias:``,enabled:!0}}}}},wp=_(`work_email`),Tp=_(`crustdata_person_match`),Ep=_(`crustdata_profile_match_score`),Dp=`people:profile:workemail:crustdata@1`,Op=r.object({pipe_id:r.literal(Dp),run_if:S(),connector:w(),config:r.object({input_fields:z(r.object({[wp.name]:E({fieldName:wp.name})})),output_fields:R(r.object({[Tp.name]:k({fieldName:Tp.name}),[Ep.name]:k({fieldName:Ep.name})}))}).optional()}),kp=e=>V(K(wp,e)),Ap={"people-profile-workemail-crustdata-v1-crustdata":{allowManagedConnection:!0,credits:{default:5},mode:`onSuccess`,provider:`crustdata`}},jp=class extends U{pipeId=Dp;payload;payloadSchema=Op;billableOperations=Ap;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`crustdata`]}estimateBillableOperations(){return[`people-profile-workemail-crustdata-v1-crustdata`]}getInputRequirement(){return kp(this.payload.config)}getRawOutputFields(){return{[Tp.name]:this.catalogOutput(Tp),[Ep.name]:this.catalogOutput(Ep)}}getConnectionsRequirements(){return[{provider:`crustdata`,rateLimitRatio:1,rateLimitOperation:`crustdata_realtime_person_enrich`,allowManagedConnection:!0}]}},Mp=Op,Np={pipeId:Dp,inputFieldMode:`static`,outputFieldMode:`static`,basePipe:W(Dp),label:`Profile from work email`,executionMode:`single`,categories:[`deprecated`],lifecycle:{deprecatedOn:`2026-06-13`,replacedBy:`person:profile:workemail:crustdata@1`},description:`Find person profile by their work email address.`,tags:[B.EMAIL,B.PEOPLE_PROFILES],docPath:G(Dp),billableOperations:Ap,allowedUserConnectionProviders:[`crustdata`],managedProviders:[`crustdata`],deprecatedProviders:[],defaultInputRequirement:kp(null),defaultPayload:{pipe_id:Dp,connector:null,run_if:null,config:{input_fields:{work_email:{alias:``}},output_fields:{crustdata_person_match:{alias:``,enabled:!0},crustdata_profile_match_score:{alias:``,enabled:!0}}}}},Pp=`people:profileurl:email:waterfall@1`,Fp=_(`email`),Ip=_(`work_email`),Lp=_(`profile_url`),Rp=[`leadmagic`],zp=[{provider:`leadmagic`}],Bp=r.object({pipe_id:r.literal(Pp),run_if:S(),connector:w(),config:r.object({providers:D({sectionKey:`general`,defaultProviders:zp,availableProviders:Rp}),input_fields:z(r.object({[Fp.name]:E({fieldName:Fp.name}),[Ip.name]:E({fieldName:Ip.name})})),output_fields:R(r.object({[Lp.name]:k({fieldName:Lp.name})}))}).optional()}),Vp=e=>H(K(Fp,e),K(Ip,e)),Hp={"people-profileurl-email-waterfall-v1-leadmagic":{provider:`leadmagic`,allowManagedConnection:!0,credits:{default:3.5},mode:`onSuccess`}},Up=class extends U{pipeId=Pp;payload;payloadSchema=Bp;billableOperations=Hp;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return this.payload.config?.providers.map(e=>e.provider)||[]}estimateBillableOperations(){return this.getProviderNames().map(e=>J(e,this.billableOperations).billableOperation)}getInputRequirement(){return Vp(this.payload.config)}getRawOutputFields(){return{[Lp.name]:this.catalogOutput(Lp,{isPrimaryOutput:!0})}}getConnectionsRequirements(){let e={leadmagic:`leadmagic_email_to_b2b_profile`};return(this.payload.config?.providers||[]).map((t,n)=>({provider:t.provider,rateLimitRatio:q(n),rateLimitOperation:e[t.provider],allowManagedConnection:!0}))}},Wp=Bp,Gp={pipeId:Pp,basePipe:W(Pp),managedProviders:Rp,deprecatedProviders:[],allowedUserConnectionProviders:Rp,label:`LinkedIn URL from email`,executionMode:`waterfall`,categories:[`deprecated`],lifecycle:{deprecatedOn:`2026-06-13`,replacedBy:`person:profileurl:email:waterfall@1`},description:`Find the URL for a prospect's LinkedIn profile from their personal or professional email address.`,tags:[B.LINKEDIN],docPath:G(Pp),billableOperations:Hp,inputFieldMode:`static`,outputFieldMode:`static`,defaultInputRequirement:Vp(null),defaultPayload:{pipe_id:Pp,run_if:null,connector:null,config:{providers:zp,input_fields:{email:{alias:``},work_email:{alias:``}},output_fields:{profile_url:{alias:``,enabled:!0}}}}},Kp=`people:validate:email:zerobounce@1`,qp=_(`work_email`),Jp=_(`ip_address`),Yp=_(`is_email_valid`),Xp=r.object({pipe_id:r.literal(Kp),connector:w(),run_if:S(),config:r.object({input_fields:z(r.object({[qp.name]:E({fieldName:qp.name}),[Jp.name]:E({fieldName:Jp.name})})),output_fields:R(r.object({[Yp.name]:k({fieldName:Yp.name})}))}).optional()}),Zp=e=>Ea(V(K(qp,e)),Da(K(Jp,e))),Qp={"people-validate-email-zerobounce-v1-zerobounce":{provider:`zerobounce`,allowManagedConnection:!0,credits:{default:.5},mode:`always`}},$p=class extends U{pipeId=Kp;payload;payloadSchema=Xp;billableOperations=Qp;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`zerobounce`]}estimateBillableOperations(){return[`people-validate-email-zerobounce-v1-zerobounce`]}getInputRequirement(){return Zp(this.payload.config)}getRawOutputFields(){return{[Yp.name]:this.catalogOutput(Yp)}}getConnectionsRequirements(){return[{provider:`zerobounce`,rateLimitRatio:1,rateLimitOperation:`zerobounce_generic`,allowManagedConnection:!0}]}},em=Xp,tm={pipeId:Kp,basePipe:W(Kp),label:`Validate email`,executionMode:`single`,categories:[`deprecated`],lifecycle:{deprecatedOn:`2026-06-13`,replacedBy:`people:email:validate:zerobounce@1`},description:`Verify email address against various factors, including syntax, domain, and server existence, to ensure it is deliverable and active.`,tags:[B.EMAIL],docPath:`/resources/pipe-catalog/people:validate:email:zerobounce/1`,billableOperations:Qp,inputFieldMode:`static`,outputFieldMode:`static`,allowedUserConnectionProviders:[`zerobounce`],managedProviders:[`zerobounce`],deprecatedProviders:[],defaultInputRequirement:Zp(null),defaultPayload:{pipe_id:Kp,connector:null,run_if:null,config:{input_fields:{ip_address:{alias:``},work_email:{alias:``}},output_fields:{is_email_valid:{alias:``,enabled:!0}}}}},nm=`people:workemail:profileurl:waterfall@1`,rm=_(`profile_url`),im=_(`work_email`),am=_(`email_validation_status`),om=[`hunter`,`amplemarket`,`findymail`,`leadmagic`,`crustdata`,`clado`],sm=[`clado`],cm=[{provider:`hunter`},{provider:`amplemarket`},{provider:`leadmagic`},{provider:`findymail`},{provider:`crustdata`}],lm=r.object({pipe_id:r.literal(nm),connector:w(),run_if:S(),config:r.object({providers:D({availableProviders:om,defaultProviders:cm,sectionKey:`general`}),allow_catch_all_emails:O({path:`config.allow_catch_all_emails`,defaultValue:!0,groupPath:`config.general`,sectionKey:`general`,info:``,label:`Allow catch-all emails`}),allow_risky_emails:O({path:`config.allow_risky_emails`,defaultValue:!0,groupPath:`config.general`,sectionKey:`general`,info:`Higher chance of bouncing or being marked as spam.`,label:`Allow risky emails`}),input_fields:z(r.object({[rm.name]:E({fieldName:rm.name})})),output_fields:R(r.object({[im.name]:k({fieldName:im.name}),[am.name]:k({fieldName:am.name})}))}).optional()}),um=e=>V(K(rm,e)),dm={"people-workemail-profileurl-waterfall-v1-hunter":{provider:`hunter`,allowManagedConnection:!0,credits:{default:1},mode:`onSuccess`},"people-workemail-profileurl-waterfall-v1-leadmagic":{provider:`leadmagic`,allowManagedConnection:!0,credits:{default:2},mode:`onSuccess`},"people-workemail-profileurl-waterfall-v1-findymail":{provider:`findymail`,allowManagedConnection:!0,credits:{default:2},mode:`onSuccess`},"people-workemail-profileurl-waterfall-v1-crustdata":{provider:`crustdata`,allowManagedConnection:!0,credits:{default:3},mode:`onSuccess`},"people-workemail-profileurl-waterfall-v1-clado":{provider:`clado`,allowManagedConnection:!0,credits:{default:3.5},mode:`onSuccess`},"people-workemail-profileurl-waterfall-v1-amplemarket":{provider:`amplemarket`,allowManagedConnection:!0,credits:{default:2.5},mode:`onSuccess`}},fm=class extends U{pipeId=nm;payload;payloadSchema=lm;billableOperations=dm;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return this.payload.config?.providers.map(e=>e.provider)||[]}estimateBillableOperations(){return this.getProviderNames().map(e=>J(e,this.billableOperations).billableOperation)}getInputRequirement(){return um(this.payload.config)}getRawOutputFields(){return{[im.name]:this.catalogOutput(im,{isPrimaryOutput:!0}),[am.name]:this.catalogOutput(am,{isPrimaryOutput:!1})}}getConnectionsRequirements(){let e={leadmagic:`leadmagic_email_b2b_lookup`,hunter:`prospeo_email_lookup`,amplemarket:`amplemarket-person-reveal`,findymail:`findymail_email_b2b_lookup`,crustdata:`crustdata_realtime_person_enrich`,clado:`clado_contact_information`};return(this.payload.config?.providers||[]).map((t,n)=>({provider:t.provider,rateLimitRatio:q(n),rateLimitOperation:e[t.provider],allowManagedConnection:!0}))}},pm=lm,mm={pipeId:nm,basePipe:W(nm),label:`Work email from LinkedIn URL`,executionMode:`waterfall`,categories:[`deprecated`],lifecycle:{deprecatedOn:`2026-06-13`,replacedBy:`person:workemail:profileurl:waterfall@1`},description:`Find work email addresses from B2B profile.`,tags:[B.EMAIL,B.WORK_EMAIL,B.WATERFALL],docPath:G(nm),managedProviders:om,allowedUserConnectionProviders:om,deprecatedProviders:sm,inputFieldMode:`static`,outputFieldMode:`static`,billableOperations:dm,defaultInputRequirement:um(null),defaultPayload:{pipe_id:nm,connector:null,run_if:null,config:{providers:cm,allow_catch_all_emails:!0,allow_risky_emails:!0,input_fields:{profile_url:{alias:``}},output_fields:{work_email:{alias:``,enabled:!0},email_validation_status:{alias:``,enabled:!0}}}}},hm=`people:workemail:waterfall@1`,gm=_(`name`),_m=_(`company_website_url`),vm=_(`company_name`),ym=_(`work_email`),bm=_(`email_validation_status`),xm=[`leadmagic`,`prospeo`,`amplemarket`,`hunter`,`icypeas`,`findymail`],Sm=[{provider:`leadmagic`},{provider:`prospeo`},{provider:`amplemarket`},{provider:`hunter`},{provider:`icypeas`},{provider:`findymail`}],Cm=r.object({pipe_id:r.literal(hm),connector:w(),run_if:S(),config:r.object({providers:D({availableProviders:xm,defaultProviders:Sm,sectionKey:`general`}),allow_catch_all_emails:O({path:`config.allow_catch_all_emails`,defaultValue:!0,groupPath:`config.general`,sectionKey:`general`,description:`Catch-alls appear valid but remain undeliverable-risk.`,label:`Allow catch-all emails`}),allow_risky_emails:O({path:`config.allow_risky_emails`,defaultValue:!0,groupPath:`config.general`,sectionKey:`general`,description:`DNS configuration and spam reputation may flag emails as high-risk.`,label:`Allow risky emails`}),input_fields:z(r.object({[gm.name]:E({fieldName:gm.name}),[_m.name]:E({fieldName:_m.name}),[vm.name]:E({fieldName:vm.name})})),output_fields:R(r.object({[ym.name]:k({fieldName:ym.name}),[bm.name]:k({fieldName:bm.name})}))}).optional()}),wm=e=>Ea(V(K(gm,e)),H(K(_m,e),K(vm,e))),Tm={"people-workemail-waterfall-v1-leadmagic":{provider:`leadmagic`,allowManagedConnection:!0,credits:{default:.5},mode:`onSuccess`},"people-workemail-waterfall-v1-icypeas":{provider:`icypeas`,allowManagedConnection:!0,credits:{default:.5},mode:`onSuccess`},"people-workemail-waterfall-v1-prospeo":{provider:`prospeo`,allowManagedConnection:!0,credits:{default:1,level1:{credits:.5,weight:1}},mode:`onSuccess`},"people-workemail-waterfall-v1-findymail":{provider:`findymail`,allowManagedConnection:!0,credits:{default:1},mode:`onSuccess`},"people-workemail-waterfall-v1-hunter":{provider:`hunter`,allowManagedConnection:!0,credits:{default:1},mode:`onSuccess`},"people-workemail-waterfall-v1-amplemarket":{provider:`amplemarket`,allowManagedConnection:!0,credits:{default:2.5},mode:`onSuccess`}},Em=class extends U{pipeId=hm;payload;payloadSchema=Cm;billableOperations=Tm;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return this.payload.config?.providers.map(e=>e.provider)||[]}estimateBillableOperations(){return this.getProviderNames().map(e=>J(e,this.billableOperations).billableOperation)}getInputRequirement(){return wm(this.payload.config)}getRawOutputFields(){return{[ym.name]:this.catalogOutput(ym,{isPrimaryOutput:!0}),[bm.name]:this.catalogOutput(bm,{isPrimaryOutput:!0})}}getConnectionsRequirements(){let e={leadmagic:`leadmagic_email_lookup`,prospeo:`prospeo_email_lookup`,icypeas:`icypeas_email_lookup`,findymail:`findymail_email_lookup`,hunter:`hunter_email_finder`,amplemarket:`amplemarket-person-reveal`};return(this.payload.config?.providers||[]).map((t,n)=>({provider:t.provider,rateLimitRatio:q(n),rateLimitOperation:e[t.provider],allowManagedConnection:!0}))}},Dm=Cm,Om={pipeId:hm,basePipe:W(hm),label:`Work email from name`,executionMode:`waterfall`,categories:[`deprecated`],lifecycle:{deprecatedOn:`2026-06-13`,replacedBy:`person:workemail:waterfall@1`},description:`Find work email addresses in a waterfall motion.`,tags:[B.EMAIL,B.WORK_EMAIL,B.WATERFALL],docPath:G(hm),managedProviders:xm,deprecatedProviders:[],allowedUserConnectionProviders:xm,inputFieldMode:`static`,outputFieldMode:`static`,billableOperations:Tm,defaultInputRequirement:wm(null),defaultPayload:{pipe_id:hm,connector:null,run_if:null,config:{providers:Sm,allow_catch_all_emails:!0,allow_risky_emails:!0,input_fields:{company_name:{alias:``},company_website_url:{alias:``},name:{alias:``}},output_fields:{work_email:{alias:``,enabled:!0},email_validation_status:{alias:``,enabled:!1}}}}},km=`email:iswork@1`,Am=_(`is_work_email`),jm=_(`email`),Mm=r.object({pipe_id:r.literal(km),run_if:S(),connector:T(),config:r.object({input_fields:z(r.object({[jm.name]:E({fieldName:jm.name})})),output_fields:R(r.object({[Am.name]:k({fieldName:Am.name})}))}).optional()}),Nm=e=>V(K(jm,e)),Pm={"email-iswork-v1-pipe0":{provider:`pipe0`,allowManagedConnection:!0,credits:{default:0},mode:`always`}},Fm=class extends U{pipeId=km;payload;payloadSchema=Mm;billableOperations=Pm;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[`email-iswork-v1-pipe0`]}getInputRequirement(){return Nm(this.payload.config)}getRawOutputFields(){return{[Am.name]:this.catalogOutput(Am)}}getConnectionsRequirements(){return[{provider:`pipe0`,rateLimitRatio:1,rateLimitOperation:`pipe0_logic`,allowManagedConnection:!0}]}},Im=Mm,Lm={pipeId:km,label:`Work email checker`,executionMode:`single`,categories:[`people_data`],lifecycle:null,description:`Check if a given email address is personal or professional.`,tags:[B.EMAIL,B.WORK_EMAIL],docPath:G(km),billableOperations:Pm,basePipe:W(km),allowedUserConnectionProviders:[],inputFieldMode:`static`,outputFieldMode:`static`,managedProviders:[`pipe0`],deprecatedProviders:[],defaultInputRequirement:Nm(null),defaultPayload:{pipe_id:km,run_if:null,connector:null,config:{input_fields:{email:{alias:``}},output_fields:{is_work_email:{alias:``,enabled:!0}}}}};function Rm(e,t){return typeof t==`string`?t:t(e)}function zm(e,t){return typeof t==`string`||t===null?t:t(e)}function Bm(e,t){let n={};for(let r of t){let t=!1;for(let i of e.pipes){let a=i.getOutputFields();if(a[r]){n[r]??={type:Rm(e,a[r].type),format:zm(e,a[r].format)},t=!0;break}}if(t)continue;let i=e.derivedInputFields[r];i&&(n[r]??={type:i.type,format:null})}return n}function Vm(e,t){for(let n of e.pipes){let r=n.getOutputFields();if(r[t])return{type:Rm(e,r[t].type),format:zm(e,r[t].format)}}let n=e.derivedInputFields[t];if(n)return{type:n.type,format:null}}function Hm(e,t={}){let n=t.expectedType??`string`,r=t.expectedFormat??`text`,i=new Map;for(let t of e){if(!t)continue;let e;try{e=jr(t)}catch{continue}for(let[t,n]of Object.entries(e.inputs)){let e=i.get(t);i.set(t,{required:e&&e.required||n.required})}}let a=[];for(let[e,t]of i){let i={name:e,resolvedName:e,label:e,description:``,type:t=>Vm(t,e)?.type||n,format:r};a.push(t.required?V(i):Da(i))}return Ea(...a)}function Y(e){let t=new Set;for(let n of e)if(n)try{let e=jr(n);for(let n of e.secrets)t.add(n)}catch{}return[...t]}function X(e){let t=new Set;for(let n of e)if(n)try{let e=jr(n);for(let n of e.constants)t.add(n)}catch{}return[...t]}const Um=`email:send:gmail@1`,Wm=_(`gmail_email_success`),Gm=r.object({pipe_id:r.literal(Um),connector:Gi(),run_if:S(),config:r.object({to:C({sectionKey:`general`,groupPath:`config.general`,path:`config.to`,label:`To`,info:"Recipient address. Type `@` to insert a field reference or `$` to insert a secret reference.",placeholder:`{{ email }}`,inputType:`email`,minLength:1,maxLength:320,expectedTagType:`string`,expectedTagFormat:`email`}),reply_to:C({sectionKey:`general`,groupPath:`config.general`,path:`config.reply_to`,label:`Reply-To`,info:"Optional address recipients can reply to. Type `@` to insert a field reference or `$` to insert a secret reference.",placeholder:`support@example.com`,inputType:`email`,maxLength:320,expectedTagType:`string`,expectedTagFormat:`email`}),subject:C({sectionKey:`general`,groupPath:`config.general`,path:`config.subject`,label:`Subject`,info:"Email subject line. Type `@` to insert a field reference or `$` to insert a secret reference.",placeholder:`Hi {{ first_name }}`,inputType:`text`,minLength:1,maxLength:998,expectedTagType:`string`,expectedTagFormat:`text`}),body:C({sectionKey:`general`,groupPath:`config.general`,path:`config.body`,label:`Body`,info:"Email body in markdown. Type `@` to insert a field reference or `$` to insert a secret reference.",placeholder:`Hi {{ first_name }},
|
|
67
|
+
How do you...`]}},crustdata_post_list:{label:`Crustdata Post list`,type:`json`,format:`json_list_string`,description:`Rich JSON post list`,jsonMeta:{zodSchema:ct,exampleValue:lt}},role_finder_match:{label:`Role finder match`,type:`json`,format:`json_object`,description:`Result of a role finder operation`,jsonMeta:{zodSchema:Ft,exampleValue:It}},amplemarket_person_match:{label:`Person match`,type:`json`,format:`json_object`,description:`Person match object as returned by Amplemarket`,jsonMeta:{zodSchema:Ne,exampleValue:Pe}},amplemarket_company_match:{label:`Company match`,type:`json`,format:`json_object`,description:`Company match object as returned by Amplemarket`,jsonMeta:{zodSchema:je,exampleValue:Me}},companyenrich_matches:{label:`CompanyEnrich matches`,type:`json`,format:`json_object`,description:`CompanyEnrich response list.`,jsonMeta:{zodSchema:r.array(et),exampleValue:[tt]}},logo_url:{label:`Logo URL`,type:`string`,format:`text`,description:`Company or organization logo`,jsonMeta:null},logodev_describe_match:{label:`Company match`,type:`json`,format:`json_object`,description:`Get company logos & brand data`,jsonMeta:{exampleValue:Dt,zodSchema:Et}},mobile_number:{label:`Mobile`,type:`string`,description:`Mobile telephone number of a person.`,jsonMeta:null,format:`phone`},company_social_url:{label:`Company Social URL`,type:`string`,description:`Social Media URL for a given company (e.g. LinkedIn profile URL).`,jsonMeta:null,format:`profile_url`},professional_profile:{label:`Professional profile (LinkedIn)`,type:`json`,description:`A standardized format for returning LinkedIn profile data.`,jsonMeta:{zodSchema:Nt,exampleValue:Pt},format:`json_object`},professional_profile_url:{label:`LinkedIn Profile URL`,type:`string`,format:`profile_url`,description:`A person's LinkedIn profile URL.`,jsonMeta:null}},nn={company_description:{},cleaned_company_name:{},company_industry:{},icypeas_person_match:{getStaticWidgets(e){if(!e)return{};let t=e;return{display_value:{label:`${t.firstname} ${t.lastname} profile`}}}},icypeas_company_match:{getStaticWidgets(e){return e?{display_value:{label:`${e.name} profile`}}:{}}},company_region:{getStaticWidgets:e=>{let t={},n=Qt(e);return n&&(t.location_indicator={emoji:n}),t}},location_hint:{},estimated_revenue:{},founded_year:{},technology_list:{},spending_trend:{getStaticWidgets(e){let t=e;return{display_value:{label:`${t>3?`๐ผ๐ผ๐ผ`:t>1?`๐ผ๐ผ`:t>0?`๐ผ`:t<-3?`๐ฝ๐ฝ๐ฝ`:t<-1?`๐ฝ๐ฝ`:t<0?`๐ฝ`:``} ${Math.round(t*100)}%`}}}},technology_match_builtwith:{getStaticWidgets(e){return{display_value:{label:`Technology profile`}}}},number_of_social_followers:{},email:{},personal_email:{},alternate_personal_emails:{},company_news_summary:{},work_email:{},headcount:{},company_website_url:{},company_domain:{},company_name:{},first_name:{},addressee_name:{},address_line_1:{},address_line_2:{},job_title:{getStaticWidgets(){return{icon:{key:`job`}}}},job_description:{},profile_headline:{},address_city:{},address_country:{},address_state:{},zip_code:{},last_name:{},is_work_email:{},name:{},ip_address:{},skills:{},avatar_url:{},string_input:{},domain:{},url_input:{},slugified:{},http_response_status:{},http_response_body:{},http_response_headers:{},estimated_salary:{},scrape_list_response:{},clado_person_match:{getStaticWidgets(e){return e?{display_value:{label:`${e.profile?.name||`Person`} profile`}}:{}}},clado_person_match_v2:{getStaticWidgets(e){return e?{display_value:{label:`${e.profile?.name||`Person`} profile`}}:{}}},company_social_url:{getStaticWidgets(e){let t=en(e);return{display_value:t?{label:t}:void 0}}},crustdata_profile_match_score:{},is_email_valid:{},amplemarket_person_match:{getStaticWidgets(){return{display_value:{label:`Person match`}}}},amplemarket_company_match:{getStaticWidgets(){return{display_value:{label:`Company match`}}}},profile_url:{getStaticWidgets(e){let t=en(e);return{display_value:t?{label:t}:void 0,icon:{key:`linkedin`}}}},company_profile_url:{getStaticWidgets(e){let t=en(e);return{display_value:t?{label:t}:void 0,icon:{key:`linkedin`}}}},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_person_match:{},resend_contact_id:{},sheet_record_id:{},sheet_record_ids:{},companyenrich_match:{},companyenrich_matches:{},input_objects:{},role_finder_match:{},sheet:{},logodev_describe_match:{getStaticWidgets(){return{display_value:{label:`Match`}}}},logo_url:{getStaticWidgets(){return{display_value:{label:`Logo URL`}}}},mobile_number:{},created_sheet:{},professional_profile:{},professional_profile_url:{},crustdata_companyenrich_match:{},template_output:{},zerobounce_validation_match:{},zerobounce_validation_status:{getStaticWidgets(e){return{display_value:{label:e===`valid`?`โ
Valid`:e===`invalid`?`โ Invalid`:e===`catch-all`?`โพ๏ธ Catch All`:e===`abuse`?`โ ๏ธ Abuse`:e===`do_not_mail`?`โโ Do not mail`:e===`spamtrap`?`โโโ Spam Trap`:e}}}},gmail_email_success:{getStaticWidgets(e){return{display_value:{label:e?`โ
Sent`:`โ Not sent`}}}}};function _(e){return{...tn[e],name:e}}function rn(e,t){if(on(e,t))return nn[e]}function an(e){return e in tn}function on(e,t){return e in tn?tn[e].format===t:!1}const sn={completed:`Completed`,failed:`Failed`,no_result:`No result`,pending:`Pending`,processing:`Processing`,queued:`Queued`,skipped:`Skipped`};function cn(e){return sn[e]}const ln=(e,t=`Set a ${e} connection to enable this`)=>n=>(n.connector?.connections??[]).some(t=>t?.connection?.startsWith(`${e}_`))?{disabled:!1}:{disabled:!0,message:t},un=(e,t)=>n=>{let r=e(n);return r!=null&&r!==``?{disabled:!1}:{disabled:!0,message:t}},dn=(...e)=>t=>{for(let n of e){let e=n(t);if(e.disabled)return e}return{disabled:!1}},fn=(...e)=>t=>{let n={disabled:!0,message:`No condition matched`};for(let r of e){let e=r(t);if(!e.disabled)return e;n=e}return n};function pn(e,t,n){if(!t.added_by||t.added_by.ref===`input`||t.added_by.pipe_index==null)throw Error(`Tried to find output field info for field not generated by pipe: ${e}, added_by: ${t.added_by}`);let r=n.orderedPipeInstances[t.added_by.pipe_index];if(!r)throw Error(`Unable to find pipe instance at index ${t.added_by.pipe_index} for resolved field ${e}`);let i=Object.entries(r.getOutputFields()).find(([t,n])=>n.resolvedName===e);if(!i)throw Error(`Resolved pipe output field '${e}' not found for pipe ${t.added_by.ref}`);let[a,o]=i;return{fieldName:a,...o}}const mn=r.enum(`company_description.cleaned_company_name.company_industry.company_region.location_hint.estimated_revenue.founded_year.technology_list.spending_trend.technology_match_builtwith.number_of_social_followers.email.personal_email.alternate_personal_emails.company_news_summary.work_email.headcount.company_website_url.company_domain.company_name.first_name.addressee_name.address_line_1.address_line_2.job_title.job_description.profile_headline.address_city.address_country.address_state.zip_code.last_name.is_work_email.companyenrich_match.companyenrich_matches.name.ip_address.skills.avatar_url.estimated_salary.is_email_valid.profile_url.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_person_match.post_list_string.crustdata_post_list.crustdata_profile_match_score.amplemarket_person_match.amplemarket_company_match.created_sheet.sheet.string_input.domain.url_input.slugified.http_response_status.http_response_body.http_response_headers.professional_profile_url.professional_profile.company_social_url.mobile_number`.split(`.`)),hn=r.enum(`pipe0.findymail.crustdata.hunter.zerobounce.millionverifier.googlemaps.gemini.leadmagic.mixrank.builtwith.perplexity.serper.icypeas.prospeo.clado.resend.slack.gmail.firecrawl.exa.openai.companyenrich.logodev.amplemarket.parallel`.split(`.`)),gn=r.enum([`production`,`sandbox`]),_n=`prompt:run@1.company:newssummary:website@1.company:newssummary:domain@1.company:techstack:builtwith@1.company:techstack:builtwith@2.company:websiteurl:email@1.company:domain:workemail@1.company:funding:leadmagic@1.company:funding:leadmagic@2.people:workemail:waterfall@1.person:workemail:waterfall@1.people:email:iswork@1.email:iswork@1.people:name:split@1.person:name:split@1.person:name:join@1.people:validate:email:zerobounce@1.people:email:validate:zerobounce@2.email:validate:zerobounce@1.people:mobilenumber:workemail:waterfall@1.company:overview@1.company:overview@2.company:overview@3.json:extract:multi@1.email:write@1.message:write@1.email:send:resend@1.email:send:gmail@1.message:send:slack@1.template:fill@1.contact:create:resend@1.people:match:role:waterfall@1.person:match:role:waterfall@1.person:identity:amplemarket@1.company:identity@2.company:identity@3.person:match:amplemarket@1.people:phone:profile:waterfall@1.person:mobile:profileurl:waterfall@1.people:personalemail:profile:waterfall@1.person:personalemail:profileurl:waterfall@1.people:profile:waterfall@1.person:profile:waterfall@1.people:profileurl:email:waterfall@1.person:profileurl:email:waterfall@1.person:profileurl:name@1.people:email:validate:zerobounce@1.person:email:validate:millionverifier@1.people:phone:workemail:waterfall@1.person:mobile:workemail:waterfall@1.fields:merge@1.field:slugify@1.field:domainify@1.website:scrape:firecrawl@1.website:scrapelist:firecrawl@1.website:extract:firecrawl@1.website:maplinks:firecrawl@1.sheet:row:append@1.sheet:row:expandappend@1.company:lookalikes:companyenrich@1.company:lookalikes:companyenrich@2.company:match:logodev@1.company:match:logodev@2.person:posts:crustdata@1.company:match:crustdata@1.company:match:crustdata@2.people:profile:workemail:crustdata@1.person:profile:workemail:crustdata@1.people:workemail:profileurl:waterfall@1.person:workemail:profileurl:waterfall@1.people:identity:email:waterfall@1.person:identity:email:waterfall@1.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(`.`),vn=r.enum(_n),yn=[`string`,`number`,`boolean`,`json`,`unknown`],bn=r.enum(yn),xn=r.union([r.number(),r.string()]),Sn=r.union([r.literal(`completed`),r.literal(`failed`),r.literal(`pending`),r.literal(`queued`),r.literal(`processing`),r.literal(`no_result`),r.literal(`skipped`)]),Cn=r.union([r.string().min(1),r.number(),r.boolean(),r.null(),r.record(r.string(),r.unknown()),r.array(r.unknown())]),wn=r.object({example_value:r.any().nullable(),schema:r.any().nullable()}),Tn=r.object({}),En=Tn.extend({image_url:r.string().url().describe(`URL to the provider's logo image.`),entity:r.string().describe(`The name of the entity.`)}),Dn=Tn.extend({emoji:r.string().describe(`Country flag emoji.`)}),On=Tn.extend({image_url:r.url().describe(`URL to the provider's logo image.`),name:r.string().describe(`The name of the avatar owner.`)}),kn=Tn.extend({attempted_providers:r.array(r.object({provider:hn})),available_providers:r.array(hn),successful_provider:hn.optional()}),An=r.enum([`linkedin`,`job`]),jn=Tn.extend({key:An}).optional(),Mn=r.object({result_status:r.enum([`completed`,`failed`])}).optional(),Nn=r.object({list:r.array(r.object({source:r.string(),description:r.string().optional(),url:r.string()}))}).optional(),Pn=r.object({numeric:r.int().min(1).max(5)}).optional(),Fn=r.object({display_value:r.object({label:r.string().optional()}),entity_logo:En.optional(),location_indicator:Dn.optional(),avatar:On.optional(),waterfall:kn.optional(),icon:jn,action_summary:Mn,sources:Nn,confidence:Pn}).partial().describe(`A map of widgets associated with this field for UI display, keyed by widget type.`),In=r.object({code:r.string(),message:r.string(),path:r.string().optional()}),Ln=r.object({code:r.string(),summary:r.string(),message:r.string()}),Rn=[`json_object`,`json_list`,`json_list_string`,`url`,`website_url`,`profile_url`,`email`,`datetime`,`currency`,`date`,`phone`,`markdown`,`text`,`int`,`decimal`,`address_line_1`,`zip_code`,`percent`],zn=r.enum(Rn);zn.nullable();const Bn=r.object({type:bn,label:r.string().nullable().optional(),format:zn.nullable().optional(),json_metadata:wn.nullable().optional()}),Vn=r.record(r.string(),Bn),Hn=r.enum([..._n,`input`]).nullable(),Un=r.enum([..._n,`input`,`system`]).nullable(),Wn=r.object({ref:Hn,config_hash:r.string().nullable()}),Gn=r.object({ref:Un,environment:gn.nullable(),config_hash:r.string().nullable(),input_hash:r.string().nullable()}),Kn=r.object({value:Cn,status:Sn,type:bn,reason:Ln.nullable(),claimed_by:Wn,resolved_by:Gn.nullable(),widgets:Fn.optional(),format:zn.nullable()}),qn=r.object({value:Cn,status:Sn,reason:Ln.nullable().optional(),type:bn.optional(),format:zn.nullable().optional(),claimed_by:Wn.optional(),resolved_by:Gn.nullable().optional(),widgets:Fn.optional()}),Jn=r.record(r.string(),r.union([Cn,qn])).openapi(`PipesInput`),Yn=r.object({id:xn,fields:r.record(xn,Kn)}),Xn=r.object({type:r.literal(`catalog`),fieldName:r.string().min(1)}),Zn=r.object({type:bn,label:r.string(),added_by:r.object({ref:r.union([vn,r.literal(`input`)]),config_hash:r.string().nullable(),pipe_index:r.number().nullable()}),format:zn.nullable(),is_primary_output:r.boolean()}),Qn=r.record(r.string(),Zn),$n=r.object({field_name:r.string().min(1),extractions:r.array(r.object({path:r.string().min(1),output_field:r.object({name:r.string().min(1),format:zn.nullable().default(null),label:r.string().optional(),type:bn})})).min(1).check(e=>{let t=new Set;Object.values(e.value).forEach(n=>{t.has(n.output_field.name)?e.issues.push({code:`custom`,message:`Output field names must be unique. The name ${n.output_field.name} exists more than once in your config.`,input:e.value}):t.add(n.output_field.name)})})}),er=r.enum([`eq`,`neq`,`gt`,`gte`,`lt`,`lte`,`contains`]),tr={eq:`equals`,neq:`not equals`,gt:`greater than`,gte:`greater than or equal`,lt:`less than`,lte:`less than or equal`,contains:`contains`},nr=[`eq`,`neq`,`gt`,`gte`,`lt`,`lte`,`contains`],rr=[`eq`,`neq`],ir=r.object({type:r.literal(`vault`),connection:r.string()}),v=r.object({strategy:r.enum([`first`]).default(`first`),connections:r.array(ir)}).nullable().optional(),ar=r.object({strategy:r.enum([`first`]).default(`first`),connections:r.array(ir).min(1,{message:`Provide your own credentials to use this object.`})}),or=r.object({strategy:r.enum([`first`]).default(`first`),connections:r.array(r.object({type:r.literal(`vault`),connection:r.string()})).max(0,{message:`This pipe does not support custom connectors.`})}).optional().nullable(),sr=r.enum(nr),cr=r.enum(rr),lr=r.enum([`failed`,`no_result`,`completed`,`skipped`]),ur=r.object({action:r.enum([`run`]).default(`run`).describe(`What to do when conditions match. Defaults to "run" (run the pipe only on matching records). Reserved for future extension.`),when:r.object({logic:r.enum([`and`,`or`]).describe(`"and" = all conditions must match. "or" = any condition matches.`),conditions:r.array(r.discriminatedUnion(`property`,[r.object({property:r.literal(`value`).describe(`Compare the actual field value. Use operators: eq, neq, gt, gte, lt, lte, contains.`),field_name:r.string().min(1,{message:`Select a target field for the condition.`}).describe(`Name of a field from input data or produced by an earlier pipe in the workflow.`),operator:sr.describe(`Comparison operator: "eq", "neq", "gt", "gte", "lt", "lte", "contains".`),value:r.union([r.number(),r.string(),r.boolean(),r.null()]).describe(`The value to compare the field against. Must be a primitive (string, number, boolean, or null).`).check(e=>{(e.value===void 0||e.value===``)&&e.issues.push({code:`custom`,input:e.value,message:`Provide a value to compare against.`}),typeof e.value==`object`&&e.value!==null&&e.issues.push({code:`custom`,input:e.value,message:`Conditions can only be defined on primitive fields. To apply a condition on a JSON value, expand it into an object first.`})})}),r.object({property:r.literal(`status`).describe(`Compare the field resolution status instead of its value. Use operators: eq, neq.`),field_name:r.string().min(1).describe(`Name of a field from input data or produced by an earlier pipe in the workflow.`),operator:cr.describe(`Status comparison operator: "eq" or "neq".`),value:lr.describe(`Field status to compare against: "completed", "no_result", "failed", or "skipped".`)})])).min(1).describe(`Array of conditions to evaluate. Each condition checks either a field value or its resolution status.`)}).describe(`Condition block. All conditions are combined with the chosen logic (and/or).`)}).describe(`Run-if gate for a pipe. When set, the pipe only runs on records matching the conditions. Example: { "when": { "logic": "and", "conditions": [{ "property": "status", "field_name": "work_email", "operator": "neq", "value": "no_result" }] } }`),dr={pipe0:{name:`pipe0`,label:`pipe0`,description:`A framework for lead and company data enrichment.`,url:`https://pipe0.com`,public:!0,hasManagedConnections:!0,allowsUserConnections:!1,connectionType:`api_key`,logoUrl:`https://imagedelivery.net/3B3AWuP94-S3Ro5eEac6JA/52f2d955-d9f3-4139-2c13-63cfd568ed00/icon`,background:{light:`#F4F4F5`,dark:`#1F1F23`},oAuthConfig:null},findymail:{name:`findymail`,label:`FindyMail`,description:`Find verified emails.`,url:`https://findymail.com`,public:!1,hasManagedConnections:!0,allowsUserConnections:!0,connectionType:`api_key`,oAuthConfig:null,logoUrl:`https://imagedelivery.net/3B3AWuP94-S3Ro5eEac6JA/9e8ce38d-a49d-42a3-4317-506f7fbec900/icon`,background:{light:`#D4F4DD`,dark:`#143822`}},hunter:{name:`hunter`,label:`HunterMail`,description:`Find email addresses and send cold emails`,url:`https://hunter.io`,public:!1,hasManagedConnections:!0,allowsUserConnections:!0,oAuthConfig:null,connectionType:`api_key`,logoUrl:`https://imagedelivery.net/3B3AWuP94-S3Ro5eEac6JA/fc66b052-6b1e-4c91-a239-6bbce08f1b00/icon`,background:{light:`#FFE4D4`,dark:`#3D1F0C`}},zerobounce:{name:`zerobounce`,label:`ZeroBounce`,description:`Email validation tools and email list cleaning`,url:`https://www.zerobounce.net`,public:!0,hasManagedConnections:!0,allowsUserConnections:!0,connectionType:`api_key`,logoUrl:`https://imagedelivery.net/3B3AWuP94-S3Ro5eEac6JA/db8e9e41-0bda-4f2c-de42-cf8ce61ee500/icon`,background:{light:`#D6F5E5`,dark:`#0E3823`},oAuthConfig:null},googlemaps:{name:`googlemaps`,label:`Google Maps`,description:`A map service by Google`,url:`https://www.google.com/maps`,public:!1,hasManagedConnections:!0,allowsUserConnections:!0,connectionType:`api_key`,logoUrl:`https://imagedelivery.net/3B3AWuP94-S3Ro5eEac6JA/1796d3c1-dfb0-4555-b2bf-0ca4930e8f00/icon`,background:{light:`#D8E8FF`,dark:`#0E2447`},oAuthConfig:null},leadmagic:{name:`leadmagic`,label:`LeadMagic`,description:`Enrichment provider`,url:`https://leadmagic.io`,public:!0,hasManagedConnections:!0,allowsUserConnections:!0,connectionType:`api_key`,logoUrl:`https://imagedelivery.net/3B3AWuP94-S3Ro5eEac6JA/508cb23a-47d4-40ee-1645-b5a8bf994c00/icon`,background:{light:`#EBD8FF`,dark:`#2A1247`},oAuthConfig:null},builtwith:{name:`builtwith`,label:`BuiltWith`,description:`BuiltWith tracks over 2500 eCommerce technologies across over 26 million eCommerce websites.`,url:`https://builtwith.com`,public:!0,hasManagedConnections:!0,allowsUserConnections:!0,connectionType:`api_key`,logoUrl:`https://imagedelivery.net/3B3AWuP94-S3Ro5eEac6JA/e675cb72-6dc2-43c8-972e-0fc9c3b73c00/icon`,background:{light:`#FFF0D4`,dark:`#3D2806`},oAuthConfig:null},perplexity:{name:`perplexity`,label:`Perplexity`,description:`AI search company`,public:!1,url:`https://perplexity.com`,hasManagedConnections:!0,allowsUserConnections:!0,connectionType:`api_key`,logoUrl:`https://imagedelivery.net/3B3AWuP94-S3Ro5eEac6JA/d17d3ba0-5c9e-43d8-17ee-3e4a70404e00/icon`,background:{light:`#D3F1EE`,dark:`#0E3633`},oAuthConfig:null},serper:{name:`serper`,label:`Serper`,description:`The World's Fastest & Cheapest Google Search API`,url:`https://serper.dev/`,public:!1,hasManagedConnections:!0,allowsUserConnections:!0,connectionType:`api_key`,logoUrl:`https://imagedelivery.net/3B3AWuP94-S3Ro5eEac6JA/04e720cd-56ea-44d3-3a31-cfc516c6f800/icon`,background:{light:`#D8E6FF`,dark:`#0C2554`},oAuthConfig:null},icypeas:{name:`icypeas`,label:`Icypeas`,description:`A popular data catalog`,url:`https://www.icypeas.com/`,public:!0,hasManagedConnections:!0,allowsUserConnections:!0,connectionType:`api_key`,logoUrl:`https://imagedelivery.net/3B3AWuP94-S3Ro5eEac6JA/d635119e-08ae-40cb-78bc-34161d422400/icon`,background:{light:`#D8EFFF`,dark:`#0C2A4A`},oAuthConfig:null},prospeo:{name:`prospeo`,label:`Prospeo`,description:`Find anyoneโs contact data.`,url:`https://prospeo.io/`,public:!0,hasManagedConnections:!0,allowsUserConnections:!0,connectionType:`api_key`,logoUrl:`https://imagedelivery.net/3B3AWuP94-S3Ro5eEac6JA/9446f572-d08c-4d48-a5a5-04747fe66000/icon`,background:{light:`#D6E2FF`,dark:`#0C2052`},oAuthConfig:null},gemini:{name:`gemini`,label:`Gemini`,description:`Google's AI service`,url:`https://gemini.google.com`,public:!0,hasManagedConnections:!0,allowsUserConnections:!0,connectionType:`api_key`,logoUrl:`https://imagedelivery.net/3B3AWuP94-S3Ro5eEac6JA/417de5dd-a8a8-4210-d7dc-6f40e54ece00/icon`,background:{light:`#DDE7FF`,dark:`#1A2C5C`},oAuthConfig:null},slack:{name:`slack`,label:`Slack`,description:`A modern business chat application.`,url:`https://slack.com`,public:!0,hasManagedConnections:!1,allowsUserConnections:!0,connectionType:`oauth_token`,logoUrl:`https://imagedelivery.net/3B3AWuP94-S3Ro5eEac6JA/676e823c-c926-4b0b-465c-121b9d1c3300/icon`,background:{light:`#F1E0FF`,dark:`#2A0E44`},oAuthConfig:{}},companyenrich:{name:`companyenrich`,label:`CompanyEnrich`,description:`A company enrichment service.`,url:`https://companyenrich.com`,public:!0,hasManagedConnections:!0,allowsUserConnections:!0,connectionType:`api_key`,logoUrl:`https://imagedelivery.net/3B3AWuP94-S3Ro5eEac6JA/e80b3a16-7b36-4733-bcbe-46f471d33100/icon`,background:{light:`#DCEEFF`,dark:`#0E2C4A`},oAuthConfig:{}},mixrank:{name:`mixrank`,label:`MixRank`,description:`Ultra-high-frequency technographic and people data for your data teams.`,url:`https://mixrank.com/`,hasManagedConnections:!0,allowsUserConnections:!1,connectionType:`api_key`,oAuthConfig:{},public:!0,logoUrl:`https://imagedelivery.net/3B3AWuP94-S3Ro5eEac6JA/a29f3095-b3f9-4b12-d21b-1c506ccd7200/icon`,background:{light:`#FFE5D4`,dark:`#3A1D08`}},clado:{name:`clado`,label:`Clado`,description:`A data provider deploying 10^5 AI agents to find contact information.`,public:!0,hasManagedConnections:!0,allowsUserConnections:!0,connectionType:`api_key`,url:`https://clado.ai`,logoUrl:`https://imagedelivery.net/3B3AWuP94-S3Ro5eEac6JA/fdf3d2d0-70be-45c3-2fe5-a8c5cac55a00/icon`,background:{light:`#E8E8EC`,dark:`#1A1A1F`},oAuthConfig:null},gmail:{name:`gmail`,label:`Gmail`,description:`Google's email service`,public:!0,hasManagedConnections:!1,allowsUserConnections:!0,connectionType:`oauth_token_bundle`,url:`https://mail.google.com`,logoUrl:`https://imagedelivery.net/3B3AWuP94-S3Ro5eEac6JA/8da8ab6b-7f7e-4c42-6abf-212ea537db00/icon`,background:{light:`#FFD8D8`,dark:`#45100F`},oAuthConfig:{}},resend:{name:`resend`,label:`Resend`,description:`An email platform built for developers.`,public:!0,hasManagedConnections:!1,allowsUserConnections:!0,url:`https://clado.ai`,connectionType:`api_key`,logoUrl:`https://imagedelivery.net/3B3AWuP94-S3Ro5eEac6JA/7c88f71b-8472-40f4-4bec-0e77eac30400/icon`,background:{light:`#EDEDEE`,dark:`#1A1A1C`},oAuthConfig:null},firecrawl:{name:`firecrawl`,label:`Firecrawl`,description:`Firecrawl is an API service that takes a URL, crawls it, and converts it into clean markdown. Firecrawl crawls all accessible subpages and gives you clean markdown for each. No sitemap required.`,public:!0,hasManagedConnections:!0,allowsUserConnections:!0,url:`https://www.firecrawl.dev`,connectionType:`api_key`,logoUrl:`https://imagedelivery.net/3B3AWuP94-S3Ro5eEac6JA/5c318569-7bf4-4276-a3f2-1f25530f7f00/icon`,background:{light:`#FFE5CC`,dark:`#3A1A05`},oAuthConfig:null},exa:{name:`exa`,label:`Exa`,description:`Exa is a search engine built for AI.`,public:!0,hasManagedConnections:!0,allowsUserConnections:!0,url:`https://exa.ai/`,connectionType:`api_key`,logoUrl:`https://imagedelivery.net/3B3AWuP94-S3Ro5eEac6JA/8ae69780-4506-4952-a90e-02e70b06af00/icon`,background:{light:`#D8DCFF`,dark:`#14154A`},oAuthConfig:null},openai:{name:`openai`,label:`OpenAI`,description:`Foundational AI company based out of San Francisco.`,public:!0,hasManagedConnections:!0,allowsUserConnections:!0,url:`https://openai.com/`,connectionType:`api_key`,logoUrl:`https://imagedelivery.net/3B3AWuP94-S3Ro5eEac6JA/7ac79c3a-bccb-4ed4-d6e5-7b300b2fd300/icon`,background:{light:`#D8EFE4`,dark:`#0C2A1C`},oAuthConfig:null},millionverifier:{name:`millionverifier`,label:`MillionVerifier`,description:`E-Mail validation service.`,public:!0,hasManagedConnections:!0,allowsUserConnections:!0,url:`https://www.millionverifier.com/`,connectionType:`api_key`,logoUrl:`https://imagedelivery.net/3B3AWuP94-S3Ro5eEac6JA/7a8bd9cb-efeb-492e-3f4c-311c9492b800/icon`,background:{light:`#D8F0DB`,dark:`#0E3215`},oAuthConfig:null},logodev:{name:`logodev`,label:`Logo.dev`,description:`Every company logo, one simple API.`,public:!0,hasManagedConnections:!0,allowsUserConnections:!0,url:`https://www.logo.dev/`,connectionType:`api_key`,logoUrl:`https://imagedelivery.net/3B3AWuP94-S3Ro5eEac6JA/1defa51b-5c01-4034-1030-60f68aa46400/icon`,background:{light:`#F4ECD4`,dark:`#2C2406`},oAuthConfig:null},crustdata:{name:`crustdata`,label:`Crustdata`,description:`Real-time company & people data`,public:!0,hasManagedConnections:!0,allowsUserConnections:!0,url:`https://crustdata.com/`,connectionType:`api_key`,logoUrl:`https://imagedelivery.net/3B3AWuP94-S3Ro5eEac6JA/fa05be24-d174-40f0-69c2-4fdb43c6be00/icon`,background:{light:`#FFE2D2`,dark:`#3C1A08`},oAuthConfig:null},amplemarket:{name:`amplemarket`,label:`Amplemarket`,description:`Sales data platform`,public:!0,hasManagedConnections:!0,allowsUserConnections:!0,url:`https://www.amplemarket.com`,connectionType:`api_key`,logoUrl:`https://imagedelivery.net/3B3AWuP94-S3Ro5eEac6JA/adecf16b-4187-409b-d77f-16fc07fc6100/icon`,background:{light:`#FFD8E1`,dark:`#45102A`},oAuthConfig:null},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}},fr=[`if`,`elsif`,`else`,`endif`,`unless`,`endunless`,`for`,`endfor`,`break`,`continue`,`output`],pr=[`json`,`escape`,`escape_once`,`default`,`upcase`,`downcase`,`size`,`join`,`first`,`last`,`replace`,`truncate`,`strip`,`newline_to_br`,`url_encode`],mr=/^[A-Z][A-Z0-9_]*$/,hr=/^[A-Z][A-Z0-9_]*$/,gr=/^[a-zA-Z_][a-zA-Z0-9_]*$/,_r=`SECRETS`,vr=`CONSTANTS`,yr=new Set(fr),br=new Set(pr),xr=e=>`{${e}}`;var Sr=class extends i{constructor(e){super(),this.values=e}liquidMethodMissing(e){let t=String(e);if(!mr.test(t))throw Error(`Secret key "${t}" must be uppercase letters, digits, and underscores (e.g. SECRETS.API_KEY).`);if(!(t in this.values))throw Error(`Missing secret: SECRETS.${t}`);return this.values[t]}},Cr=class extends i{constructor(e){super(),this.values=e}liquidMethodMissing(e){let t=String(e);if(!hr.test(t))throw Error(`Constant key "${t}" must be uppercase letters, digits, and underscores (e.g. CONSTANTS.PROMO).`);if(!(t in this.values))throw Error(`Missing constant: CONSTANTS.${t}`);return this.values[t]}};function wr(e){let t=e.trim();if(!t)throw Error(`Empty {% output %} tag โ expected at least a name (e.g. {% output rec, type: "string", description: "..." %}).`);let n=t.match(/^([a-zA-Z_][a-zA-Z0-9_]*)\s*(?:,|$)/);if(!n||!n[1])throw Error(`Invalid {% output %} tag โ expected a name as the first argument, got: ${t}`);let r=n[1];if(!gr.test(r))throw Error(`Invalid {% output %} tag name "${r}" โ must start with a letter or underscore and contain only letters, digits, and underscores.`);let i=t.slice(n[0].length).trim(),a={},o=/([a-zA-Z_][a-zA-Z0-9_]*)\s*:\s*(?:"((?:\\.|[^"\\])*)"|'((?:\\.|[^'\\])*)'|(true|false))\s*(?:,|$)/g,s=0,c;for(;(c=o.exec(i))!==null;){s=c.index+c[0].length;let e=c[1],t=c[2]??c[3]??c[4];c[4]===void 0?a[e]=t:a[e]=t===`true`}if(i&&s<i.length)throw Error(`Invalid {% output %} tag โ could not parse arguments after "${i.slice(s)}". Expected key: "value" pairs.`);let l=a.type;if(typeof l!=`string`||!l)throw Error(`{% output ${r} %} tag is missing required "type" argument (e.g. type: "string").`);let u=a.description;if(typeof u!=`string`||!u)throw Error(`{% output ${r} %} tag is missing required "description" argument (e.g. description: "What this means.").`);return{name:r,type:l,description:u,required:typeof a.required==`boolean`?a.required:!0,format:typeof a.format==`string`?a.format:null,schemaRef:typeof a.schema==`string`?a.schema:null}}function Tr(){let e=new a({strictVariables:!1,strictFilters:!0,jsTruthy:!0,greedy:!1,catchAllErrors:!1,ownPropertyOnly:!0});e.registerTag(`output`,{parse(e,t){let n=wr(e.args);this.outputDecl=n},render(e,t){let n=this.outputDecl;if(!(e.globals&&e.globals.__outputAllowed))throw Error(`{% output %} is not allowed in this template (referenced output "${n.name}").`);t.write(xr(n.name))}});for(let t of Object.keys(e.tags))yr.has(t)||delete e.tags[t];for(let t of Object.keys(e.filters))br.has(t)||delete e.filters[t];return e}let Er=null;function Dr(){return Er||=Tr(),Er}async function Or(e,t,n={}){let r=Dr(),i=n.renderLimitMs??250,a={...t.inputs??{},[_r]:new Sr(t.secrets??{}),[vr]:new Cr(t.constants??{})},o={globals:{__outputAllowed:n.outputAllowed===!0},renderLimit:i},s=await Promise.race([r.parseAndRender(e,a,o),new Promise((e,t)=>setTimeout(()=>t(Error(`Liquid render exceeded ${i}ms.`)),i))]);return String(s)}function kr(e,t,n={}){let r=Dr(),i=n.renderLimitMs??250,a={...t.inputs??{},[_r]:new Sr(t.secrets??{}),[vr]:new Cr(t.constants??{})},o=r.parseAndRenderSync(e,a,{globals:{__outputAllowed:n.outputAllowed===!0},renderLimit:i});return String(o)}function Ar(e){return Dr().parse(e)}function jr(e){let t=Dr().parse(e),n={scopeStack:[],guardStack:[],inputs:new Map,secrets:new Set,constants:new Set,outputs:[],forDepth:0};Mr(t,n);let r={};for(let[e,t]of n.inputs)r[e]={required:t.unguardedRefs>0};return{inputs:r,secrets:[...n.secrets],constants:[...n.constants],outputs:n.outputs}}function Mr(e,t){for(let n of e)Nr(n,t)}function Nr(e,t){let n=e;if(n.value&&typeof n.value==`object`&&`filters`in n.value&&`initial`in n.value){Rr(n.value,t,!1);return}if(typeof n.name==`string`){Pr(n,t);return}}function Pr(e,t){switch(e.name){case`for`:Fr(e,t);return;case`if`:case`unless`:Ir(e,t);return;case`output`:Lr(e,t);return;case`break`:case`continue`:return;default:throw Error(`Unhandled liquid tag in analyzer: ${e.name}`)}}function Fr(e,t){if(t.forDepth+=1,t.forDepth>3)throw Error(`Liquid template exceeds maximum nested {% for %} depth of 3.`);e.collection!==void 0&&e.collection!==null&&zr(e.collection,t,!1);let n=typeof e.variable==`string`?e.variable:null;n&&t.scopeStack.push(n),Mr(Array.isArray(e.templates)?e.templates:[],t),n&&t.scopeStack.pop(),Mr(Array.isArray(e.elseTemplates)?e.elseTemplates:[],t),--t.forDepth}function Ir(e,t){let n=Array.isArray(e.branches)?e.branches:[];e.name;for(let e=0;e<n.length;e++){let r=n[e],i=r.value,a=null;e===0&&i&&typeof i==`object`&&(a=Hr(i.initial)),a&&t.guardStack.push(a),i&&typeof i==`object`&&Rr(i,t,!1),Mr(r.templates,t),a&&t.guardStack.pop()}Mr(Array.isArray(e.elseTemplates)?e.elseTemplates:[],t)}function Lr(e,t){let n=e.outputDecl;if(!n){let t=e.token?.args;typeof t==`string`&&(n=wr(t))}if(!n)throw Error(`Internal: {% output %} tag missing parsed declaration.`);t.outputs.push({name:n.name,type:n.type,description:n.description,required:n.required,format:n.format,schemaRef:n.schemaRef??void 0})}function Rr(e,t,n){let r=e.filters.some(e=>e.name===`default`),i=n||r;for(let n of e.initial.postfix)Ur(n)&&Vr(n,t,i);for(let n of e.filters)for(let e of n.args)Br(e,t)}function zr(e,t,n){Ur(e)&&Vr(e,t,n)}function Br(e,t){if(Array.isArray(e)){let n=e[1];n&&zr(n,t,!1)}else zr(e,t,!1)}function Vr(e,t,n){let r=e.props;if(r.length===0)return;let i=r[0];if(!i||!Wr(i))return;let a=i.content;if(t.scopeStack.includes(a))return;if(a===`SECRETS`){let e=r[1];if(!e||!Wr(e))throw Error(`Invalid SECRETS reference โ expected SECRETS.KEY (got ${qr(r)}).`);let n=e.content;if(!mr.test(n))throw Error(`Invalid SECRETS key "${n}" โ must be uppercase letters, digits, and underscores (e.g. SECRETS.API_KEY).`);t.secrets.add(n);return}if(a===`CONSTANTS`){let e=r[1];if(!e||!Wr(e))throw Error(`Invalid CONSTANTS reference โ expected CONSTANTS.KEY (got ${qr(r)}).`);let n=e.content;if(!hr.test(n))throw Error(`Invalid CONSTANTS key "${n}" โ must be uppercase letters, digits, and underscores (e.g. CONSTANTS.PROMO).`);t.constants.add(n);return}let o=n||t.guardStack.includes(a),s=t.inputs.get(a)??{unguardedRefs:0,guardedRefs:0};o?s.guardedRefs+=1:s.unguardedRefs+=1,t.inputs.set(a,s)}function Hr(e){if(e.postfix.length===1){let t=e.postfix[0];if(t&&Ur(t)&&t.props.length===1){let e=t.props[0];if(e&&Wr(e))return e.content}}if(e.postfix.length===3){let[t,n,r]=e.postfix;if(t&&n&&r&&Ur(t)&&t.props.length===1){let e=t.props[0];if(e&&Wr(e)&&Gr(n)&&Kr(r,[`==`,`!=`]))return e.content}}return null}function Ur(e){return e.kind===o.PropertyAccess}function Wr(e){return!!e&&typeof e==`object`&&e.kind===o.Word}function Gr(e){if(e.kind!==o.Literal)return!1;let t=e.literal;return t===`nil`||t===`null`}function Kr(e,t){return e.kind===o.Operator?t.includes(e.operator):!1}function qr(e){let t=[];for(let n of e)n&&Wr(n)?t.push(n.content):t.push(`?`);return t.join(`.`)}function Jr(e){let t=e.split(`_`),n=t[0],r=t.slice(1).join(`_`);if(!n)throw Error(`connection string of invalid format`);try{return{provider:hn.parse(n),id:r}}catch{throw Error(`Connection string ${e}: Failed to parse provider name.`)}}function Yr(e){return`${e.provider}_${e.id}`}const Xr=new s;function Zr(e){return Xr.validateSchema(e)}function Qr(e){let t=!1;return c(e,{},e=>{e.type&&[`string`,`number`,`boolean`,`integer`,`null`].includes(e.type)&&(t=!0),e.type===`object`&&e.properties&&Object.keys(e.properties).length>0&&(t=!0),e.type===`array`&&e.items&&(t=!0)}),!t}const $r=[`gemini-flash-latest`,`openai-gpt-latest`,`openai-gpt-mini-latest`],ei={"gemini-flash-latest":{provider:`gemini`,rateLimitOperation:`gemini_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 ti(e,t){let n={};for(let r of $r){let i=ei[r],a=`${e}-${r}`;n[a]={credits:{default:t?.[r]??i.defaultCredits},allowManagedConnection:!0,provider:i.provider,mode:i.billingMode}}return n}function ni(e,t){return`${t}-${e}`}function ri(e){let t=ei[e];if(!t)throw Error(`Unknown AI model: ${e}`);return[t.provider]}function ii(e){let t=ei[e];if(!t)throw Error(`Unknown AI model: ${e}`);return[{provider:t.provider,rateLimitRatio:t.rateLimitRatio,rateLimitOperation:t.rateLimitOperation,allowManagedConnection:t.allowManagedConnection}]}function ai(){let e=new Set;for(let t of $r)e.add(ei[t].provider);return[...e]}function oi(e){if(!e?.requires)return;let t=[];e.requires.connection&&t.push(ln(e.requires.connection));for(let n of e.requires.fields??[])t.push(un(e=>n.split(`.`).reduce((e,t)=>e==null?e:e[t],e),`Set ${n} first`));if(t.length!==0)return t.length===1?t[0]:dn(...t)}function si(e,t,n){let i={exampleValue:null,jsonSchema:null},a=t.fieldAnnotations.annotations[e];if(a?.json_metadata?.example_value&&(i.exampleValue=a.json_metadata.example_value||null),a?.json_metadata?.schema&&(i.jsonSchema=a.json_metadata.schema||null),i.exampleValue&&i.jsonSchema||!t.resolvedFieldNames[e])return i;let o=pn(e,n,t),s=an(o.fieldName)?_(o.fieldName):null;return s?.jsonMeta?{jsonSchema:s.jsonMeta.zodSchema?r.toJSONSchema(s.jsonMeta.zodSchema):null,exampleValue:s.jsonMeta.exampleValue||null}:i}const y=r.registry();{let e=y._map,t=y.get.bind(y);y.get=n=>{let r=n;for(;r;){let t=e.get(r);if(typeof t==`function`)return t;r=r?._zod?.parent}return t(n)}}const b=r.registry(),x={text_input:r.coerce.string(),textarea_input:r.string(),prompt_input:r.object({template:r.string(),json_schemas:r.record(r.string(),r.record(r.string(),r.unknown()))}),template_input:r.string(),tagged_text_input:r.coerce.string().nullable(),boolean_input:r.boolean(),nullable_boolean_input:r.boolean().nullable(),select_input:r.string(),multi_select_input:r.array(r.string()),async_multi_select_input:r.array(r.string()),int_input:r.coerce.number().int().nullable(),number_input:r.coerce.number().optional(),min_max_int_input:r.object({min:r.number().nullable().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())])},ci=(e,t)=>{let n=x.multi_create_input;return e.maxItems&&(n=n.max(e.maxItems)),n=e.minItems?n.min(e.minItems):n.default([]),t.add(n,{type:`multi_create_input`,...e}),n},li=(e,t)=>{let n=x.ordered_multi_create_input;return e.maxItems&&(n=n.max(e.maxItems)),n=e.minItems?n.min(e.minItems):n.default([]),t.add(n,{type:`ordered_multi_create_input`,...e}),n},ui=/^\s*\{\{\s*[a-zA-Z_][a-zA-Z0-9_.]*(?:\s*\|\s*[^}]+)?\s*\}\}\s*$/,di=/\{\{|\{%/,fi=(e,t)=>{let n=x.tagged_ordered_multi_create_input;e.maxItems&&(n=n.max(e.maxItems)),n=n.check(e=>{let t=e;(t.value??[]).forEach((e,n)=>{let r=ui.test(e),i=di.test(e);!r&&i&&t.issues.push({code:`custom`,input:e,path:[n],message:`Each entry must be either plain text or a single field reference โ not mixed.`})})}),n=e.minItems?n.min(e.minItems):n.default([]);let r={type:`tagged_ordered_multi_create_input`,...e};if(t===y){let i=t=>{let n=t.validationContext,i=n?Object.entries(n.fieldDefinitions).filter(([e,n])=>n.added_by.config_hash!==t.hash).filter(([t,n])=>!e.expectedTagType||n.type===e.expectedTagType).map(([e,t])=>({...t,resolvedName:e})):[];return{...r,inputFields:i}};return i.staticMeta={...r,inputFields:[]},t.add(n,i),n}return t.add(n,r),n},pi=(e,t)=>{let n=x.key_value_list_input;e.maxItems&&(n=n.max(e.maxItems)),n=n.check(e=>{let t=e;(t.value??[]).forEach((e,n)=>{Vi({value:e.key,issues:t.issues},!1,[n,`key`]),Vi({value:e.value,issues:t.issues},!1,[n,`value`])})}),n=n.default([]);let r={type:`key_value_list_input`,...e},i=e=>{let t=e.validationContext,n=t?Object.entries(t.fieldDefinitions).filter(([t,n])=>n.added_by.config_hash!==e.hash).map(([e,t])=>({...t,resolvedName:e})):[];return{...r,inputFields:n}};return i.staticMeta={...r,inputFields:[]},t.add(n,i),n},mi=(e,t)=>{let n=e.maxItems||200,r=x.include_exclude_input.check(e=>{e.value.include.length>n&&e.issues.push({code:`custom`,input:e.value.include,path:[`include`],message:`Array must contain at most ${n} element(s)`}),e.value.exclude.length>n&&e.issues.push({code:`custom`,input:e.value.exclude,path:[`exclude`],message:`Array must contain at most ${n} element(s)`})}),i=e.required?r:r.default({include:[],exclude:[]});return e.description&&i.describe(e.description),t.add(i,{type:`include_exclude_input`,...e}),i},hi=()=>{let e=$n;return y.add(e,e=>{let t=e.validationContext;return{label:``,description:``,type:`json_extraction_input`,fields:Object.entries(t.fieldDefinitions).filter(([e,t])=>e.toLowerCase()!==`id`&&t.type===`json`).map(([e,n])=>{let{jsonSchema:r,exampleValue:i}=si(e,t,n)||{};return{fieldName:e,fieldLabel:n.label,schema:r||null,exampleValue:i||null}}),path:`config.json_extraction`,groupPath:`config.json_extraction`,sectionKey:`general`}}),e},gi=(e,t)=>{let n=r.array(r.object({provider:r.enum(e.availableProviders)})).max(e.maxItems||99).min(1).default(e.defaultProviders),i=e.availableProviders.map(t=>{let n=e.providerCredits?.[t];return{value:t,label:dr[t].label,widgets:{provider_logo:{provider:t},...typeof n==`number`?{pricing:{credits:n}}:{}}}});return t.add(n,{label:`Provider sequence`,description:``,path:`config.providers`,groupPath:`config.providers`,type:`providers_input`,options:i,defaultProviders:e.defaultProviders,maxItems:e.maxItems,sectionKey:e.sectionKey}),n},_i=(e,t)=>{let n=e.maxItems||200,r=x.include_exclude_select_input.check(e=>{e.value.include.length>n&&e.issues.push({code:`custom`,input:e.value.include,path:[`include`],message:`Array must contain at most ${n} element(s)`}),e.value.exclude.length>n&&e.issues.push({code:`custom`,input:e.value.exclude,path:[`exclude`],message:`Array must contain at most ${n} element(s)`})}),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},vi=(e,t)=>{let n=x.exact_range_input.check(t=>{e.min===void 0&&e.max===void 0||Object.values(t.value).filter(e=>e!==null).some(t=>e.min!=null&&t<e.min||e.max!=null&&t>e.max)&&t.issues.push({code:`custom`,input:t.value,message:`Values must be between ${e.min??`any`} and ${e.max??`any`}`})});return e.description&&n.describe(e.description),t.add(n,{type:`exact_range_input`,...e}),n},yi=(e,t)=>{let n=r.object({from:r.number().optional().nullable(),to:r.number().optional().nullable()}).default({from:null,to:null}),i=n;return(e.min!==void 0||e.max!==void 0)&&(i=n.check(t=>{Object.values(t.value).filter(e=>e!=null).every(t=>(e?.min==null||t>=e.min)&&(e.max==null||t<=e.max))||t.issues.push({code:`custom`,input:t.value,message:`Values must be between ${e.min??`any`} and ${e.max??`any`}`}),t.value.from&&t.value.to&&t.value.from>t.value.to&&t.issues.push({code:`custom`,input:t.value,message:`'From' value must be smaller than 'to' value.`})})),e.description&&i.describe(e.description),t.add(i,{type:`range_input`,...e}),i},bi=(e,t)=>{let n=x.date_range_input.check(e=>{let t=/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}/;for(let[n,r]of Object.entries(e.value))r&&!t.test(r)&&e.issues.push({code:`custom`,input:r,path:[n],message:`Must be an ISO datetime string`})});return e.description&&n.describe(e.description),t.add(n,{type:`date_range_input`,...e}),n},xi=(e,t)=>{let n=x.boolean_input.default(e.defaultValue);return e.description&&n.describe(e.description),t.add(n,{...e,required:!1,type:`boolean_input`}),n},Si=(e,t)=>{let n=x.nullable_boolean_input.default(e.defaultValue);return e.description&&n.describe(e.description),t.add(n,{...e,required:!1,type:`nullable_boolean_input`,defaultValue:e.defaultValue}),n},Ci=(e,t)=>{let n=x.text_input;return e.minLength&&(n=n.min(e.minLength)),e.maxLength&&(n=n.max(e.maxLength)),e.pattern&&(n=n.regex(new RegExp(e.pattern))),e.minLength||(n=n.nullable()),e.description&&n.describe(e.description),t.add(n,{type:`text_input`,...e}),n},wi=(e,t)=>{let n=x.textarea_input;return e.minLength&&(n=n.min(e.minLength)),e.maxLength&&(n=n.max(e.maxLength)),e.description&&n.describe(e.description),t.add(n,{type:`textarea_input`,...e}),n},Ti=(e,t,n=`pipe_io`)=>{let i=r.object({alias:r.string().default(``).describe(`Rename this output field. Leave empty to use default name.`),enabled:r.boolean().default(!0).describe(`Whether to include this field in the output.`)}).describe(`Output field '${e.fieldName}'`);return t.add(i,{type:`output_field_input`,label:`Rename *${e.fieldName}*`,placeholder:e.fieldName,path:`config.output_fields.${e.fieldName}`,description:void 0,groupPath:`config.output_fields`,sectionKey:n}),i.default({alias:``,enabled:!0})},Ei=(e,t)=>{let n=x.int_input.optional().check(t=>{if(t.value==null){e.required!==!1&&t.issues.push({code:`custom`,input:t.value,message:`Required`});return}e.min!=null&&t.value<e.min&&t.issues.push({code:`custom`,input:t.value,message:`Value must be at least ${e.min}`}),e.max!=null&&t.value>e.max&&t.issues.push({code:`custom`,input:t.value,message:`Value must be at most ${e.max}`})});return e.description&&n.describe(e.description),t.add(n,{...e,type:`int_input`}),n},Di=(e,t)=>{let n=x.number_input.check(t=>{if(t.value===void 0){e.required&&t.issues.push({code:`custom`,input:t.value,message:`Required`});return}e.min!=null&&t.value<e.min&&t.issues.push({code:`custom`,input:t.value,message:`Value must be at least ${e.min}`}),e.max!=null&&t.value>e.max&&t.issues.push({code:`custom`,input:t.value,message:`Value must be at most ${e.max}`})});return e.description&&n.describe(e.description),t.add(n,{...e,type:`number_input`}),n},Oi=(e,t)=>{let n=x.json_schema_input,r=e.required?n:n.optional();return r.check(e=>{Zr(e.value)||e.issues.push({code:`custom`,input:e.value,message:`JSON schema is invalid. Check your input.`})}),e.allowEmpty||(r=r.check(e=>{Qr(e.value)&&e.issues.push({code:`custom`,message:`JSON Schema must define a meaningful value. Can not be an empty object or array.`,input:e.value})})),t.add(r,{...e,type:`json_schema_input`}),r},ki=(e,t)=>{let n=e.options.map(e=>e.value),r=new Set([...n,``]),i=x.select_input.check(t=>{if(t.value===``){e.required&&t.issues.push({code:`custom`,input:t.value,message:`Required`});return}r.has(t.value)||t.issues.push({code:`custom`,input:t.value,message:`Must be one of: ${[...r].filter(e=>e).join(`, `)}`})}),a=e.defaultValue?i.default(e.defaultValue):i;return e.description&&a.describe(e.description),t.add(a,{type:`select_input`,...e}),a},Ai=({billableOperations:e,...t},n)=>{let i=r.enum($r).default(t.defaultValue||`gemini-flash-latest`);return n.add(i,{type:`select_input`,options:$r.map(t=>{let n=e[Object.keys(e).find(e=>e.endsWith(`-${t}`))];if(!n)throw Error(`Unable to find billing info for model ${t}`);return{label:t,value:t,widgets:{logo:{url:dr[ei[t].provider].logoUrl},pricing:{credits:n.credits.default}}}}),required:!0,description:``,label:`AI Models`,...t}),i},ji=(e,t)=>{let n=e.options.map(e=>e.value),i=new Set(n),a=r.array(r.enum(Array.from(i))).check(t=>{e.required&&t.value.length===0&&t.issues.push({code:`custom`,input:t.value,message:`Required`}),t.value.forEach((e,r)=>{i.has(e)||t.issues.push({code:`custom`,input:e,path:[r],message:`Must be one of: ${n.join(`, `)}`})})}),o=e.required?a:a.default([]);return t.add(o,{type:`multi_select_input`,...e}),o},Mi=(e,t)=>{let n=e.required?x.context_select_input.check(e=>{(e.value===``||Array.isArray(e.value)&&e.value.length===0)&&e.issues.push({code:`custom`,input:e.value,message:`Required`})}):x.context_select_input,r=e.defaultValue?n.default(e.defaultValue):n,i=e.enabledIf??oi(e.optionsDef);return t.add(r,{type:`context_select_input`,...e,enabledIf:i,options:[]}),r},Ni=(e,t)=>{let n=x.min_max_int_input.check(t=>{for(let n of[`min`,`max`]){let r=t.value[n];if(r!=null){if(!Number.isInteger(r)){t.issues.push({code:`custom`,input:r,path:[n],message:`Must be an integer`});continue}(r<e.min||r>e.max)&&t.issues.push({code:`custom`,input:r,path:[n],message:`Must be between ${e.min} and ${e.max}`})}}}),r=e.required?n:n.default({min:null,max:null});return t.add(r,{type:`min_max_int_input`,...e}),r},Pi=(e,t)=>{let n=x.async_multi_select_input.check(t=>{e.required&&t.value.length===0&&t.issues.push({code:`custom`,input:t.value,message:`Required`})}),r=e.required?n:n.default([]);return t.add(r,{type:`async_multi_select_input`,...e}),r},Fi=(e,t)=>{let n=e.maxItems||200,r=x.async_include_exclude_select_input.check(e=>{e.value.include.length>n&&e.issues.push({code:`custom`,input:e.value.include,path:[`include`],message:`Array must contain at most ${n} element(s)`}),e.value.exclude.length>n&&e.issues.push({code:`custom`,input:e.value.exclude,path:[`exclude`],message:`Array must contain at most ${n} element(s)`})}),i=e.required?r:r.default({include:[],exclude:[]});return t.add(i,{type:`async_include_exclude_select_input`,...e}),i};function Ii(e,t){let n=e.reduce((e,t)=>{let n=t.groupPath||``;return e[n]??=[],e[n].push(t),e},{});return Object.entries(n).map(([e,n])=>({type:`group`,groupPath:e,description:t[e]?.description,label:t[e]?.label,iconKey:t[e]?.iconKey,defaultExpand:!!t[e]?.defaultExpand,order:t[e]?.order??99,fields:n.sort((e,t)=>(e.order||0)-(t.order||0))})).sort((e,t)=>e.order-t.order)}const S=()=>{let e=ur.nullish();return y.add(e,e=>{let t=e.validationContext;return{label:``,description:``,type:`pipes_run_if_input`,groupPath:`run_if`,path:`run_if`,sectionKey:`pipe_io`,fields:Object.entries(t.fieldDefinitions).filter(([e,t])=>t.type!==`json`&&e.toLowerCase()!==`id`).map(([e,t])=>({fieldName:e,fieldLabel:t.label,format:t.format,type:t.type}))}}),e},Li={pipe_io:{type:`form_section`,label:`In- and outputs`,description:`Configure output fields and reassign inputs.`,path:`config.pipe_io`},"config.filters":{type:`form_section`,label:`Filters`,path:`config.filters`,description:`Narrow down the search output`},general:{type:`form_section`,path:`general`,label:`Behavior`},pagination:{type:`form_section`,path:`pagination`}},Ri={general:1,pagination:2,"config.filters":3,pipe_io:10};function zi({fieldMetadata:e,store:t}){if(e.type===`context_select_input`||e.type===`tagged_text_input`){t.field_options??={};let n=t.field_options[e.path]?.options||[],r=e.optionsDef?.widgets;e.options=r?n.map(e=>({...e,widgets:{...r,...e.widgets??{}}})):n}return e}const Bi=({schema:e,groupPathMatch:t,extractFromSchema:n,sectionOrder:i=Ri,sectionMap:a=Li,store:o,formResolvers:s})=>{let c={};function l(e){let i=n(e);if(i){c[i.sectionKey]??={type:`section`,groups:[],metadata:a[i.sectionKey]};let e=c[i.sectionKey],n=e?.groups.find(e=>e.groupPath===i.groupPath);if(n){let e=zi({fieldMetadata:i,store:o,formResolvers:s});e&&n.fields.push(e)}else{let n=t[i.groupPath],r=zi({fieldMetadata:i,store:o,formResolvers:s});r&&e.groups.push({groupPath:i.groupPath,fields:[r],type:`group`,label:n?.label,defaultExpand:!!n?.defaultExpand,description:n?.description,iconKey:n?.iconKey,order:n?.order})}}if(typeof e==`object`&&`unwrap`in e&&typeof e.unwrap==`function`&&l(e.unwrap()),e instanceof r.ZodObject)for(let t of Object.values(e.shape))l(t)}l(e);let u=Object.values(c);return u.forEach(e=>{e.groups.sort((e,t)=>(e.order??99)-(t.order??99))}),[...u].filter(e=>e.groups.length!==0).sort((e,t)=>(i?.[e.metadata?.path||``]??99)-(i?.[t.metadata?.path||``]??99))};function Vi(e,t,n=[]){let r=e.value;if(!(typeof r!=`string`||!r))try{let i=jr(r);!t&&i.outputs.length>0&&e.issues.push({code:`custom`,input:r,path:n,message:`{% output %} tags are not allowed in this field.`}),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 Hi=e=>{let t=(e.supportedTags??[]).includes(`output`),n=r.object({template:r.string().min(10).check(e=>Vi(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},Ui=e=>{let t=r.string();e.required&&(t=t.min(1));let n=t.check(e=>Vi(e,!1,[])).describe(e.description||'Liquid template with `{{ field }}` input refs, `{{ field | default: "" }}` for optional refs, `{{ SECRETS.KEY }}` for secrets, `{{ CONSTANTS.KEY }}` for plaintext constants, and `{% if %}` / `{% for %}` control flow. Example: "Write to {{ name }} about {{ topic | default: \\"the project\\" }}."');return y.add(n,t=>{let n=t.validationContext;return{type:`template_input`,inputFields:Object.entries(n.fieldDefinitions).filter(([e,n])=>n.added_by.config_hash!==t.hash).map(([e,t])=>({...t,resolvedName:e})),rows:e.rows||10,...e}}),n},C=e=>{let t=`${e.multiline?`Multi-line`:`Single-line`} ${e.expectedTagType} value, optionally containing \`{{ field }}\` Liquid input refs (use \`| default: ""\` for optional refs), \`{{ SECRETS.KEY }}\` for encrypted secrets, and \`{{ CONSTANTS.KEY }}\` for plaintext constants.`,n=r.coerce.string();e.minLength&&(n=n.min(e.minLength)),e.maxLength&&(n=n.max(e.maxLength)),e.pattern&&(n=n.regex(new RegExp(e.pattern))),e.minLength||(n=n.nullable()),n=n.check(e=>Vi(e,!1,[])),n=n.describe(e.description||t);let i=e.optionsDef?{...e.optionsDef,enabledIf:e.optionsDef.enabledIf??oi(e.optionsDef)}:void 0,a={type:`tagged_text_input`,...e,optionsDef:i,options:[]},o=t=>{let n=t.validationContext,r=Object.entries(n.fieldDefinitions).filter(([e,n])=>n.added_by.config_hash!==t.hash).filter(([t,n])=>n.type===e.expectedTagType).map(([e,t])=>({...t,resolvedName:e}));return{...a,inputFields:r}};return o.staticMeta={...a,inputFields:[]},y.add(n,o),n};function Wi(e,t){y.add(e,({userConnections:e,pipeEntry:n})=>{let r=new Set(n.allowedUserConnectionProviders),i=e.filter(e=>r.has(e.provider));return{label:``,description:``,groupPath:`connector`,path:`connector`,connectorMode:t,type:`connector_input`,sectionKey:`pipe_io`,supportsUserConnections:r.size>0,filteredConnections:i.map(e=>({provider:e.provider,connection:Yr({id:e.public_id,provider:e.provider})}))}})}const Gi=()=>{let e=ar;return Wi(e,`required`),e},w=()=>{let e=v;return Wi(e,`optional`),e},T=()=>{let e=or;return Wi(e,`disabled`),e};function Ki(e,t){return Object.entries(t.fieldDefinitions).filter(([t,n])=>n.added_by.config_hash!==e&&t.toLowerCase()!==`id`).map(([e,t])=>({label:e,value:e,type:t.type,format:t.format}))}const E=e=>{let t=r.object({alias:r.string().describe(`Override field name mapping. Leave empty to use default.`)});return y.add(t,t=>{let n=t.validationContext;return{type:`select_input`,required:!1,sectionKey:`pipe_io`,defaultValue:void 0,placeholder:e.fieldName,options:Ki(t.hash,n),path:`config.input_fields.${e.fieldName}.alias`,label:`Assign *${e.fieldName}* to:`,description:``,groupPath:`config.input_fields`,multiple:!1}}),t.default({alias:``})},D=e=>gi(e,y),qi=e=>{let t=x.fields_select_input.check(e=>{e.value.forEach((t,n)=>{t.field_name.length<1&&e.issues.push({code:`custom`,input:t.field_name,path:[n,`field_name`],message:`field_name must not be empty`})})});return t=e.minItems?t.min(e.minItems):t.default([]),y.add(t,t=>{let n=t.validationContext;return{type:`fields_select_input`,options:Object.entries(n.fieldDefinitions).filter(([e])=>e.toLowerCase()!==`id`).map(([e,t])=>({fieldName:e,fieldLabel:e,type:t.type})).map(e=>({value:e.fieldName,label:e.fieldLabel,widgets:{field_type:{type:e.type}}})),...e}}),t},Ji=e=>mi(e,y),Yi=e=>ci(e,y),Xi=e=>li(e,y),Zi=e=>fi(e,y),Qi=e=>pi(e,y),$i=e=>_i(e,y),ea=e=>Fi(e,y),ta=e=>vi(e,y),na=e=>bi(e,y),O=e=>xi(e,y),k=e=>Ti(e,y),ra=e=>Ci(e,y),ia=e=>wi(e,y),aa=e=>ki(e,y),oa=e=>Ai(e,y),sa=e=>ji(e,y),ca=e=>Ei(e,y),la=e=>Di(e,y),ua=e=>Oi(e,y),da=e=>Mi(e,y),A=e=>ci(e,b),fa=e=>li(e,b),pa=e=>Ni(e,b),j=e=>mi(e,b),M=e=>_i(e,b),ma=e=>vi(e,b),ha=e=>yi(e,b),ga=e=>bi(e,b),_a=e=>xi(e,b),va=e=>Si(e,b),N=e=>Ti(e,b,`pipe_io`),ya=e=>Ci(e,b),ba=e=>wi(e,b),xa=e=>ki(e,b),P=e=>ji(e,b),F=e=>Pi(e,b),I=e=>Fi(e,b),L=e=>Ei(e,b),Sa=e=>Di(e,b),R=e=>(e=e.check(e=>{let t=e.value,n=!1;for(let e in t)if(t[e]?.enabled){n=!0;break}n||e.issues.push({code:`custom`,input:e.value,message:`All output fields are disabled. Enable at least one output.`})}),e.optional()),z=e=>e.optional();function Ca(e,t){if(!e)return t;let n={...e};for(let[e,r]of Object.entries(t))n[e]===void 0?n[e]=r:n[e]!==null&&typeof n[e]==`object`&&!Array.isArray(n[e])&&typeof r==`object`&&r&&!Array.isArray(r)&&(n[e]=Ca(n[e],r));return n}const B={EMAIL:`Email`,TEXT:`Text`,CHAT:`Chat`,PERSONAL_EMAIL:`Personal Email`,NAMES:`Names`,WORK_EMAIL:`Work Email`,WATERFALL:`Waterfall`,WEBSITE:`Website`,SCRAPE:`Scrape`,ADDRESS:`Address`,NEWS:`News`,LINKEDIN:`LinkedIn`,FINANCIAL_DATA:`Financial Data`,AI:`AI`,PHONE:`Phone Number`,NEW:`New`,BETA:`Beta`,PEOPLE_PROFILES:`People Profiles`,COMPANY_PROFILES:`Company Profiles`,JSON:`Json`,FIELDS:`Fields`,LOGIC:`Logic`,DEPRECATED:`Deprecated โ`},wa=e=>typeof e.kind==`string`,Ta=e=>wa(e)?e:{kind:`field`,field:e},V=e=>({kind:`field`,field:e}),Ea=(...e)=>({kind:`all`,of:e.map(Ta)}),H=(...e)=>({kind:`any`,of:e.map(Ta)}),Da=e=>({kind:`optional`,field:e});function Oa(e,t){switch(e.kind){case`optional`:return!0;case`field`:return t.has(e.field.resolvedName);case`all`:return e.of.every(e=>Oa(e,t));case`any`:return e.of.some(e=>Oa(e,t))}}function ka(e){switch(e.kind){case`field`:return[{field:e.field,required:!0}];case`optional`:return[{field:e.field,required:!1}];case`all`:case`any`:return e.of.flatMap(ka)}}function Aa(e,t){let n=ja(e,t);return n.ok?{valid:!0,failedPipeInputField:null,failedRecordField:null}:{valid:!1,failedPipeInputField:n.field,failedRecordField:n.recordField}}function ja(e,t){switch(e.kind){case`optional`:return{ok:!0};case`field`:{let n=t.fields[e.field.resolvedName];if(!n)throw Error(`Record field does not exist ${e.field.name} for requirement.`);return n.status===`completed`||n.status===`queued`?{ok:!0}:{ok:!1,field:e.field,recordField:n}}case`all`:for(let n of e.of){let e=ja(n,t);if(!e.ok)return e}return{ok:!0};case`any`:{let n=null,r=!1;for(let i of e.of)try{let e=ja(i,t);if(r=!0,e.ok)return{ok:!0};n=e}catch{}return r?n:{ok:!0}}}}function Ma(e){if(typeof e!=`object`||!e)return e;if(Array.isArray(e))return e.map(Ma).filter(e=>!jt(e));let t={};for(let[n,r]of Object.entries(e)){let e=Ma(r);jt(e)||(t[n]=e)}return t}const Na=await l();var Pa=class e{static hashObject(t){if(!Na)throw Error(`HashAPI not initialized`);let{h64ToString:n}=Na,r=e.normalizeObject(t);return n(JSON.stringify(r))}static normalizeObject(t){if(typeof t!=`object`||!t)return t;if(Array.isArray(t))return t.map(t=>e.normalizeObject(t));let n={},r=Object.keys(t).sort();for(let i of r)n[i]=e.normalizeObject(t[i]);return n}};function Fa(e,t){let n={pipeId:e,config:Ma(t)};return Pa.hashObject(n)}function Ia(e,t){let n={};return Object.values(t).forEach(t=>{let r=t,i=e.fields[r.resolvedName];i?.value!=null&&(n[r.resolvedName]=i.value)}),Object.keys(n).length===0?null:Pa.hashObject(Ma(n))}var U=class{validatePayload(e){try{return this.payloadSchema.parse(e)}catch(e){throw e instanceof n?Error(r.prettifyError(e)):e}}getSecretRequirements(){return[]}getConstantRequirements(){return[]}catalogOutput(e,{isPrimaryOutput:t=!1,resolveFormat:n,resolveType:r}={resolveType:void 0,resolveFormat:void 0,isPrimaryOutput:!1}){return{name:e.name,enabled:!!this.payload.config?.output_fields?.[e.name].enabled,type:r||e.type,format:n||e.format,resolvedName:this.payload.config?.output_fields?.[e.name]?.alias||e.name,description:e.description,jsonMeta:e.jsonMeta,label:e.label,isCatalogFIeld:!0,isPrimaryOutput:t}}getOutputFields(){let e={};for(let[t,n]of Object.entries(this.getRawOutputFields()))n.enabled&&(e[t]=n);return e}get inputFields(){let e={};for(let{field:t}of ka(this.getInputRequirement()))e[t.name]=t;return e}getConfigHashKey(){return Fa(this.payload.pipe_id,this.payload.config||{})}getInputHashKey(e){return Ia(e,this.inputFields)}};function La(e,t){let n={};for(let r of t)for(let t of Object.values(e))if(t&&t.provider===r&&t.allowManagedConnection){n[r]=t.credits.default;break}return n}function Ra(e){return ka(e).map(({field:e})=>e)}function za({recordField:e,value:t,resolvedBy:n,widgets:r}){return e.value=t,e.status=`completed`,e.resolved_by=n,e.widgets=r,e}function Ba({recordField:e}){return e.status=`pending`,e.resolved_by=null,e.value=null,e}function Va({recordField:e,reason:t,resolvedBy:n,widgets:r={}}){return e.value=null,e.status=`no_result`,e.resolved_by=n,e.reason=t,e.widgets=r,e}function Ha(e,t,n){return e.value=null,e.status=`failed`,e.resolved_by=null,e.reason=t,e.resolved_by=n,e.widgets={},e}function Ua(e,t){return e.value=null,e.status=`skipped`,e.resolved_by=null,e.reason=t,e.widgets={},e}function Wa(e){return e.value=null,e.status=`processing`,e.resolved_by=null,e.widgets={},e}function W(e){return e.split(`@`)[0]}function G(e){return`/docs/pipe-catalog/${W(e)}/${e.split(`@`)[1]}`}function K(e,t){return{name:e.name,description:e.description,resolvedName:t?.input_fields?.[e.name]?.alias||e.name,type:e.type,label:e.label,format:e.format}}const Ga=`company:domain:workemail@1`,Ka=_(`company_domain`),qa=_(`work_email`),Ja=r.object({pipe_id:r.literal(Ga),run_if:S(),connector:T(),config:r.object({input_fields:z(r.object({[qa.name]:E({fieldName:qa.name})})),output_fields:R(r.object({[Ka.name]:k({fieldName:Ka.name})}))}).optional()}),Ya=e=>V(K(qa,e)),Xa={"company-domain-workemail-v1-pipe0":{credits:{default:0},allowManagedConnection:!0,mode:`always`,provider:`pipe0`}},Za=class extends U{pipeId=Ga;payload;payloadSchema=Ja;billableOperations=Xa;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[`company-domain-workemail-v1-pipe0`]}getInputRequirement(){return Ya(this.payload.config)}getRawOutputFields(){return{[Ka.name]:this.catalogOutput(Ka)}}getConnectionsRequirements(){return[{provider:`pipe0`,rateLimitRatio:1,rateLimitOperation:`pipe0_logic`,allowManagedConnection:!0}]}},Qa=Ja,$a={pipeId:Ga,basePipe:W(Ga),inputFieldMode:`static`,outputFieldMode:`static`,label:`Website from email`,executionMode:`single`,categories:[`company_data`],lifecycle:null,description:`Extract the company website URL from a work email address.`,tags:[B.EMAIL,B.WORK_EMAIL,B.WEBSITE],docPath:G(Ga),allowedUserConnectionProviders:[],managedProviders:[`pipe0`],deprecatedProviders:[],billableOperations:Xa,defaultInputRequirement:Ya(null),defaultPayload:{pipe_id:Ga,connector:null,run_if:null,config:{input_fields:{[qa.name]:{alias:``}},output_fields:{[Ka.name]:{alias:``,enabled:!0}}}}},eo=`company:funding:leadmagic@2`,to=_(`company_name`),no=_(`company_domain`),ro=_(`funding_history`),io=_(`funding_total_usd`),ao=_(`leadmagic_competitor_list`),oo=_(`leadmagic_acquisition_history`),so=_(`leadmagic_company_news_list`),co=r.object({pipe_id:r.literal(eo),connector:w(),run_if:S(),config:r.object({input_fields:z(r.object({[to.name]:E({fieldName:to.name}),[no.name]:E({fieldName:no.name})})),output_fields:R(r.object({[ro.name]:k({fieldName:ro.name}),[io.name]:k({fieldName:io.name}),[ao.name]:k({fieldName:ao.name}),[oo.name]:k({fieldName:oo.name}),[so.name]:k({fieldName:so.name})}))}).optional()}),lo=e=>H(K(to,e),K(no,e)),uo={"company-funding-leadmagic-v2-leadmagic":{provider:`leadmagic`,allowManagedConnection:!0,credits:{default:2},mode:`onSuccess`}},fo=class extends U{pipeId=eo;payload;payloadSchema=co;billableOperations=uo;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`leadmagic`]}estimateBillableOperations(){return[`company-funding-leadmagic-v2-leadmagic`]}getInputRequirement(){return lo(this.payload.config)}getRawOutputFields(){return{[ro.name]:this.catalogOutput(ro),[io.name]:this.catalogOutput(io),[oo.name]:this.catalogOutput(oo),[so.name]:this.catalogOutput(so),[ao.name]:this.catalogOutput(ao)}}getConnectionsRequirements(){return[{provider:`leadmagic`,rateLimitRatio:1,rateLimitOperation:`leadmagic_company_funding`,allowManagedConnection:!0}]}},po=co,mo={pipeId:eo,basePipe:W(eo),label:`Funding history`,executionMode:`single`,categories:[`company_data`],lifecycle:null,description:`Information on funding rounds, acquisition, competitors, and investors.`,tags:[B.FINANCIAL_DATA],docPath:G(eo),billableOperations:uo,inputFieldMode:`static`,outputFieldMode:`static`,allowedUserConnectionProviders:[`leadmagic`],managedProviders:[`leadmagic`],deprecatedProviders:[],defaultInputRequirement:lo(null),defaultPayload:{pipe_id:eo,connector:null,run_if:null,config:{input_fields:{company_name:{alias:``},company_domain:{alias:``}},output_fields:{funding_history:{enabled:!0,alias:``},funding_total_usd:{enabled:!0,alias:``},leadmagic_acquisition_history:{enabled:!1,alias:``},leadmagic_company_news_list:{enabled:!1,alias:``},leadmagic_competitor_list:{enabled:!1,alias:``}}}}},ho=_(`company_name`),go=_(`company_profile_url`),_o=_(`company_domain`),vo=_(`cleaned_company_name`),yo=`company:identity@3`,bo=r.object({pipe_id:r.literal(yo),run_if:S(),connector:T(),config:r.object({input_fields:z(r.object({[ho.name]:E({fieldName:ho.name})})),output_fields:R(r.object({[go.name]:k({fieldName:go.name}),[vo.name]:k({fieldName:vo.name}),[_o.name]:k({fieldName:_o.name})}))}).optional()}),xo=e=>V(K(ho,e)),So={"company-identity-v3-pipe0":{allowManagedConnection:!0,credits:{default:.3,level1:{credits:.2,weight:1}},mode:`always`,provider:`pipe0`}},Co=class extends U{pipeId=yo;payload;payloadSchema=bo;billableOperations=So;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[`company-identity-v3-pipe0`]}getInputRequirement(){return xo(this.payload.config)}getRawOutputFields(){return{[go.name]:this.catalogOutput(go),[_o.name]:this.catalogOutput(_o),[vo.name]:this.catalogOutput(vo)}}getConnectionsRequirements(){return[{provider:`gemini`,rateLimitRatio:1,rateLimitOperation:`gemini_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}]}},wo=bo,To={pipeId:yo,inputFieldMode:`static`,outputFieldMode:`static`,basePipe:W(yo),label:`Find company identity`,executionMode:`mix`,categories:[`company_data`],lifecycle:null,description:`Find any company's website URL, LinkedIn profile URL, and cleaned name.`,tags:[B.WEBSITE,B.LINKEDIN],docPath:G(yo),billableOperations:So,allowedUserConnectionProviders:[],managedProviders:[`pipe0`],deprecatedProviders:[],defaultInputRequirement:xo(null),defaultPayload:{pipe_id:yo,connector:null,run_if:null,config:{input_fields:{company_name:{alias:``}},output_fields:{cleaned_company_name:{alias:``,enabled:!0},company_profile_url:{alias:``,enabled:!0},company_domain:{alias:``,enabled:!0}}}}},Eo=_(`company_domain`),Do=_(`companyenrich_matches`),Oo=`company:lookalikes:companyenrich@2`,ko=r.object({pipe_id:r.literal(Oo),run_if:S(),connector:w(),config:r.object({limit:ca({groupPath:`config.general`,max:50,min:1,path:`config.limit`,required:!0,sectionKey:`general`,info:`Define how many lookalikes you want to find.`,label:`Limit`}),input_fields:z(r.object({[Eo.name]:E({fieldName:Eo.name})})),output_fields:R(r.object({[Do.name]:k({fieldName:Do.name})}))}).optional()}),Ao=e=>V(K(Eo,e)),jo={"company-lookalikes-companyenrich-v2-companyenrich":{allowManagedConnection:!0,credits:{default:.2,level1:{credits:.1,weight:1}},mode:`onSuccess`,note:`One billing event per result.`,provider:`companyenrich`}},Mo=class extends U{pipeId=Oo;payload;payloadSchema=ko;billableOperations=jo;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`companyenrich`]}estimateBillableOperations(){return[,,,,,].fill(`lookalikes-companyenrich`)}getInputRequirement(){return Ao(this.payload.config)}getRawOutputFields(){return{[Do.name]:this.catalogOutput(Do)}}getConnectionsRequirements(){return[{provider:`companyenrich`,rateLimitRatio:1,rateLimitOperation:`company_enrich_generic`,allowManagedConnection:!0}]}},No=ko,Po={pipeId:Oo,inputFieldMode:`static`,outputFieldMode:`static`,basePipe:W(Oo),label:`Find company lookalikes`,executionMode:`single`,categories:[`company_data`],lifecycle:null,description:`Find companies similar to the company you provide as input.`,tags:[B.COMPANY_PROFILES],docPath:G(Oo),billableOperations:jo,allowedUserConnectionProviders:[`companyenrich`],managedProviders:[`companyenrich`],deprecatedProviders:[],defaultInputRequirement:Ao(null),defaultPayload:{pipe_id:Oo,connector:null,run_if:null,config:{limit:20,input_fields:{company_domain:{alias:``}},output_fields:{companyenrich_matches:{alias:``,enabled:!0}}}}},Fo=_(`company_domain`),Io=_(`crustdata_companyenrich_match`),Lo=`company:match:crustdata@2`,Ro=r.object({pipe_id:r.literal(Lo),run_if:S(),connector:w(),config:r.object({input_fields:z(r.object({[Fo.name]:E({fieldName:Fo.name})})),output_fields:R(r.object({[Io.name]:k({fieldName:Io.name})}))}).optional()}),zo=e=>V(K(Fo,e)),Bo={"company-match-crustdata-v2-crustdata":{allowManagedConnection:!0,credits:{default:2.5,level1:{credits:1.2,weight:1}},mode:`onSuccess`,provider:`crustdata`}},Vo=class extends U{pipeId=Lo;payload;payloadSchema=Ro;billableOperations=Bo;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`crustdata`]}estimateBillableOperations(){return[`company-match-crustdata-v2-crustdata`]}getInputRequirement(){return zo(this.payload.config)}getRawOutputFields(){return{[Io.name]:this.catalogOutput(Io)}}getConnectionsRequirements(){return[{provider:`crustdata`,rateLimitRatio:1,rateLimitOperation:`crustdata_company_enrich`,allowManagedConnection:!0}]}},Ho=Ro,Uo={pipeId:Lo,inputFieldMode:`static`,outputFieldMode:`static`,basePipe:W(Lo),label:`Company match`,executionMode:`single`,categories:[`company_data`],lifecycle:null,description:`Company data like headcount distribution, LinkedIn URLs etc. via the Crustdata API.`,tags:[B.WEBSITE,B.LINKEDIN],docPath:G(Lo),billableOperations:Bo,allowedUserConnectionProviders:[`crustdata`],managedProviders:[`crustdata`],deprecatedProviders:[],defaultInputRequirement:zo(null),defaultPayload:{pipe_id:Lo,connector:null,run_if:null,config:{input_fields:{company_domain:{alias:``}},output_fields:{crustdata_companyenrich_match:{alias:``,enabled:!0}}}}},Wo=_(`company_domain`),Go=_(`company_name`),Ko=_(`company_profile_url`),qo=_(`logodev_describe_match`),Jo=_(`logo_url`),Yo=`company:match:logodev@2`,Xo=r.object({pipe_id:r.literal(Yo),run_if:S(),connector:w(),config:r.object({input_fields:z(r.object({[Wo.name]:E({fieldName:Wo.name})})),output_fields:R(r.object({[Ko.name]:k({fieldName:Ko.name}),[Jo.name]:k({fieldName:Jo.name}),[Go.name]:k({fieldName:Go.name}),[qo.name]:k({fieldName:qo.name})}))}).optional()}),Zo=e=>V(K(Wo,e)),Qo={"company-match-logodev-v2-logodev":{allowManagedConnection:!0,credits:{default:.1},mode:`onSuccess`,provider:`logodev`}},$o=class extends U{pipeId=Yo;payload;payloadSchema=Xo;billableOperations=Qo;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`logodev`]}estimateBillableOperations(){return[`company-match-logodev-v2-logodev`]}getInputRequirement(){return Zo(this.payload.config)}getRawOutputFields(){return{[Ko.name]:this.catalogOutput(Ko),[Go.name]:this.catalogOutput(Go),[Jo.name]:this.catalogOutput(Jo),[qo.name]:this.catalogOutput(qo)}}getConnectionsRequirements(){return[{provider:`logodev`,rateLimitRatio:1,rateLimitOperation:`logodev_describe`,allowManagedConnection:!0}]}},es=Xo,ts={pipeId:Yo,inputFieldMode:`static`,outputFieldMode:`static`,basePipe:W(Yo),label:`Company match`,executionMode:`single`,categories:[`company_data`],lifecycle:null,description:`Find brand data like logos, colors, and social links via the Logo.dev API.`,tags:[B.WEBSITE,B.LINKEDIN],docPath:G(Yo),billableOperations:Qo,allowedUserConnectionProviders:[`logodev`],managedProviders:[`logodev`],deprecatedProviders:[],defaultInputRequirement:Zo(null),defaultPayload:{pipe_id:Yo,connector:null,run_if:null,config:{input_fields:{company_domain:{alias:``}},output_fields:{company_profile_url:{alias:``,enabled:!0},logo_url:{alias:``,enabled:!0},logodev_describe_match:{alias:``,enabled:!0},company_name:{alias:``,enabled:!1}}}}},ns=`company:newssummary:domain@1`,rs=_(`company_news_summary`),is=_(`company_domain`),as=r.object({pipe_id:r.literal(ns),run_if:S(),connector:w(),config:r.object({input_fields:z(r.object({[is.name]:E({fieldName:is.name})})),output_fields:R(r.object({[rs.name]:k({fieldName:rs.name})}))}).optional()}),os=e=>V(K(is,e)),ss={"company-newssummary-domain-v1-pipe0":{allowManagedConnection:!0,credits:{default:2},mode:`always`,provider:`pipe0`}},cs=class extends U{pipeId=ns;payloadSchema=as;billableOperations=ss;payload;constructor(e){super(),this.payload=e}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[`company-newssummary-domain-v1-pipe0`]}getInputRequirement(){return os(this.payload.config)}getRawOutputFields(){return{[rs.name]:this.catalogOutput(rs)}}getConnectionsRequirements(){return[{provider:`parallel`,rateLimitRatio:4,rateLimitOperation:`parallel_search_base`,allowManagedConnection:!0},{provider:`gemini`,rateLimitRatio:1,rateLimitOperation:`gemini_35_flash`,allowManagedConnection:!0}]}},ls=as,us={pipeId:ns,basePipe:W(ns),inputFieldMode:`static`,outputFieldMode:`static`,label:`Company news`,executionMode:`single`,categories:[`company_data`],lifecycle:null,description:`Find recent company news by performing a search and scrape.`,tags:[B.NEWS],docPath:G(ns),billableOperations:ss,allowedUserConnectionProviders:[],managedProviders:[`pipe0`],deprecatedProviders:[],defaultInputRequirement:os(null),defaultPayload:{pipe_id:ns,run_if:null,connector:null,config:{input_fields:{company_domain:{alias:``}},output_fields:{company_news_summary:{alias:``,enabled:!0}}}}},ds=_(`company_domain`),fs=_(`company_profile_url`),ps=_(`company_description`),ms=_(`company_industry`),hs=_(`company_region`),gs=_(`headcount`),_s=_(`estimated_revenue`),vs=_(`founded_year`),ys=_(`company_name`),bs=`company:overview@3`,xs=r.object({pipe_id:r.literal(bs),run_if:S(),connector:T(),config:r.object({input_fields:z(r.object({[ds.name]:E({fieldName:ds.name}),[fs.name]:E({fieldName:fs.name})})),output_fields:R(r.object({[ps.name]:k({fieldName:ps.name}),[ms.name]:k({fieldName:ms.name}),[hs.name]:k({fieldName:hs.name}),[gs.name]:k({fieldName:gs.name}),[_s.name]:k({fieldName:_s.name}),[vs.name]:k({fieldName:vs.name}),[ys.name]:k({fieldName:ys.name})}))}).optional()}),Ss=e=>H(K(ds,e),K(fs,e)),Cs={"company-overview-v3-pipe0":{provider:`pipe0`,allowManagedConnection:!0,credits:{default:1,level1:{credits:.5,weight:1}},mode:`always`}},ws=class extends U{pipeId=bs;payloadSchema=xs;billableOperations=Cs;payload;constructor(e){super(),this.payload=e}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[`company-overview-v3-pipe0`]}getInputRequirement(){return Ss(this.payload.config)}getRawOutputFields(){return{[ps.name]:this.catalogOutput(ps),[ms.name]:this.catalogOutput(ms),[hs.name]:this.catalogOutput(hs),[gs.name]:this.catalogOutput(gs),[_s.name]:this.catalogOutput(_s),[vs.name]:this.catalogOutput(vs),[ys.name]:this.catalogOutput(ys)}}getConnectionsRequirements(){return[{provider:`perplexity`,rateLimitRatio:1,rateLimitOperation:`perplexity_generic`,allowManagedConnection:!0},{provider:`leadmagic`,rateLimitRatio:.2,rateLimitOperation:`leadmagic_email_lookup`,allowManagedConnection:!0},{provider:`gemini`,rateLimitOperation:`gemini_20_flash`,rateLimitRatio:.1,allowManagedConnection:!0}]}},Ts=xs,Es={pipeId:bs,basePipe:W(bs),inputFieldMode:`static`,outputFieldMode:`static`,label:`Company overview`,executionMode:`mix`,categories:[`company_data`],lifecycle:null,description:`Business description, industry, and financial information.`,docPath:G(bs),tags:[B.WEBSITE,B.LINKEDIN,B.FINANCIAL_DATA],allowedUserConnectionProviders:[],managedProviders:[`pipe0`],deprecatedProviders:[],billableOperations:Cs,defaultInputRequirement:Ss(null),defaultPayload:{pipe_id:bs,run_if:null,connector:void 0,config:{input_fields:{company_profile_url:{alias:``},company_domain:{alias:``}},output_fields:{company_description:{alias:``,enabled:!0},company_industry:{alias:``,enabled:!0},company_region:{alias:``,enabled:!0},estimated_revenue:{alias:``,enabled:!0},founded_year:{alias:``,enabled:!0},headcount:{alias:``,enabled:!0},company_name:{alias:``,enabled:!1}}}}},Ds=_(`company_domain`),Os=_(`technology_list`),ks=_(`spending_trend`),As=_(`technology_match_builtwith`),js=`company:techstack:builtwith@2`,Ms=r.object({pipe_id:r.literal(js),connector:w(),run_if:S(),config:r.object({input_fields:z(r.object({[Ds.name]:E({fieldName:Ds.name})})),output_fields:R(r.object({[Os.name]:k({fieldName:Os.name}),[As.name]:k({fieldName:As.name}),[ks.name]:k({fieldName:ks.name})}))}).optional()}),Ns=e=>V(K(Ds,e)),Ps={"company-techstack-builtwith-v2-builtwith":{provider:`builtwith`,allowManagedConnection:!0,credits:{default:2},mode:`always`}},Fs=class extends U{pipeId=js;payload;payloadSchema=Ms;billableOperations=Ps;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`builtwith`]}estimateBillableOperations(){return[`company-techstack-builtwith-v2-builtwith`]}getInputRequirement(){return Ns(this.payload.config)}getRawOutputFields(){return{[Os.name]:this.catalogOutput(Os),[As.name]:this.catalogOutput(As),[ks.name]:this.catalogOutput(ks)}}getConnectionsRequirements(){return[{provider:`builtwith`,rateLimitRatio:1,rateLimitOperation:`builtwith_generic`,allowManagedConnection:!0}]}},Is=Ms,Ls={pipeId:js,basePipe:W(js),managedProviders:[`builtwith`],deprecatedProviders:[],allowedUserConnectionProviders:[`builtwith`],label:`Tech stack`,executionMode:`single`,categories:[`company_data`],lifecycle:null,description:`All technologies and frameworks powering a given website.`,tags:[B.WEBSITE],inputFieldMode:`static`,outputFieldMode:`static`,docPath:G(js),billableOperations:Ps,defaultInputRequirement:Ns(null),defaultPayload:{pipe_id:js,connector:null,run_if:null,config:{input_fields:{company_domain:{alias:``}},output_fields:{technology_list:{alias:``,enabled:!0},technology_match_builtwith:{alias:``,enabled:!0},spending_trend:{alias:``,enabled:!0}}}}},Rs={MissingSecretError:class extends Error{constructor({providerName:e}){super(`Missing secret for ${e}`)}},HttpError:class extends Error{constructor({msg:e}){super(e)}}},zs=`contact:create:resend@1`,Bs={"contact-create-resend-v1-resend":{allowManagedConnection:!1,provider:`resend`,credits:null,mode:null}},Vs=_(`email`),Hs=_(`name`),Us=_(`resend_contact_id`),Ws=[{label:`Demo subscribers`,value:`sandbox-segment-1`},{label:`Demo product updates`,value:`sandbox-segment-2`}],Gs=r.object({pipe_id:r.literal(zs),connector:Gi(),run_if:S(),config:r.object({segment_id:da({sectionKey:`general`,required:!0,label:`Segment`,groupPath:`config.general`,path:`config.segment_id`,info:``,enabledIf:ln(`resend`),optionsDef:{requires:{connection:`resend`},options:async({query:e,secret:t,environment:n})=>{if(n===`sandbox`)return Ws;if(!t)throw new Rs.MissingSecretError({providerName:`resend`});let r=await fetch(`https://api.resend.com/segments?limit=100`,{headers:{Authorization:`Bearer ${t}`}});if(!r.ok){let e=await r.text();throw new Rs.HttpError({msg:e})}let i=(await r.json()).data.map(e=>({label:e.name,value:e.id}));return e?i.filter(t=>t.label.toLowerCase().includes(e.toLowerCase())):i}}}),add_as_subscribed:O({sectionKey:`general`,defaultValue:!0,label:`Add as subscribed`,groupPath:`config.general`,path:`config.add_as_subscribed`,info:``}),input_fields:z(r.object({[Hs.name]:E({fieldName:Hs.name}),[Vs.name]:E({fieldName:Vs.name})})),output_fields:R(r.object({[Us.name]:k({fieldName:Us.name})}))})}),Ks=e=>Ea(V(K(Vs,e)),V(K(Hs,e))),qs=class extends U{pipeId=zs;payload;payloadSchema=Gs;billableOperations=Bs;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`resend`]}estimateBillableOperations(){return[`contact-create-resend-v1-resend`]}getInputRequirement(){return Ks(this.payload.config)}getRawOutputFields(){return{[Us.name]:this.catalogOutput(Us)}}getConnectionsRequirements(){return[{provider:`resend`,rateLimitRatio:1,rateLimitOperation:`resend_generic`,allowManagedConnection:!1}]}},Js=Gs,Ys={pipeId:zs,basePipe:W(zs),label:`Create Contact`,executionMode:`single`,categories:[`actions`],lifecycle:null,description:`Create a contact inside a Resend audience.`,tags:[B.EMAIL],docPath:G(zs),billableOperations:Bs,inputFieldMode:`static`,outputFieldMode:`static`,allowedUserConnectionProviders:[`resend`],defaultInputRequirement:Ks(null),managedProviders:[],deprecatedProviders:[],defaultPayload:{pipe_id:zs,connector:{strategy:`first`,connections:[]},run_if:null,config:{segment_id:``,add_as_subscribed:!0,input_fields:{name:{alias:``},email:{alias:``}},output_fields:{resend_contact_id:{alias:``,enabled:!0}}}}},Xs=`company:funding:leadmagic@1`,Zs=_(`company_name`),Qs=_(`company_website_url`),$s=_(`funding_history`),ec=_(`funding_total_usd`),tc=_(`leadmagic_competitor_list`),nc=_(`leadmagic_acquisition_history`),rc=_(`leadmagic_company_news_list`),ic=r.object({pipe_id:r.literal(Xs),connector:w(),run_if:S(),config:r.object({input_fields:z(r.object({[Zs.name]:E({fieldName:Zs.name}),[Qs.name]:E({fieldName:Qs.name})})),output_fields:R(r.object({[$s.name]:k({fieldName:$s.name}),[ec.name]:k({fieldName:ec.name}),[tc.name]:k({fieldName:tc.name}),[nc.name]:k({fieldName:nc.name}),[rc.name]:k({fieldName:rc.name})}))}).optional()}),ac=e=>H(K(Zs,e),K(Qs,e)),oc={"company-funding-leadmagic-v1-leadmagic":{provider:`leadmagic`,allowManagedConnection:!0,credits:{default:2},mode:`onSuccess`}},sc=class extends U{pipeId=Xs;payload;payloadSchema=ic;billableOperations=oc;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`leadmagic`]}estimateBillableOperations(){return[`company-funding-leadmagic-v1-leadmagic`]}getInputRequirement(){return ac(this.payload.config)}getRawOutputFields(){return{[$s.name]:this.catalogOutput($s),[ec.name]:this.catalogOutput(ec)}}getConnectionsRequirements(){return[{provider:`leadmagic`,rateLimitRatio:1,rateLimitOperation:`leadmagic_company_funding`,allowManagedConnection:!0}]}},cc=ic,lc={pipeId:Xs,basePipe:W(Xs),label:`Funding history`,executionMode:`single`,categories:[`deprecated`],lifecycle:{deprecatedOn:`2026-06-13`,replacedBy:`company:funding:leadmagic@2`},description:`Information on funding rounds, acquisition, competitors, and investors.`,tags:[B.FINANCIAL_DATA],docPath:G(Xs),billableOperations:oc,inputFieldMode:`static`,outputFieldMode:`static`,allowedUserConnectionProviders:[`leadmagic`],managedProviders:[`leadmagic`],deprecatedProviders:[],defaultInputRequirement:ac(null),defaultPayload:{pipe_id:Xs,connector:null,run_if:null,config:{input_fields:{company_name:{alias:``},company_website_url:{alias:``}},output_fields:{funding_history:{enabled:!0,alias:``},funding_total_usd:{enabled:!0,alias:``},leadmagic_acquisition_history:{enabled:!1,alias:``},leadmagic_company_news_list:{enabled:!1,alias:``},leadmagic_competitor_list:{enabled:!1,alias:``}}}}},uc=_(`company_name`),dc=_(`company_social_url`),fc=_(`company_website_url`),pc=_(`cleaned_company_name`),mc=`company:identity@1`,hc=r.object({pipe_id:r.literal(mc),run_if:S(),connector:T(),config:r.object({input_fields:z(r.object({[uc.name]:E({fieldName:uc.name})})),output_fields:R(r.object({[dc.name]:k({fieldName:dc.name}),[pc.name]:k({fieldName:pc.name}),[fc.name]:k({fieldName:fc.name})}))}).optional()}),gc=e=>V(K(uc,e)),_c={"company-identity-v1-pipe0":{allowManagedConnection:!0,credits:{default:.3},mode:`always`,provider:`pipe0`}},vc=class extends U{pipeId=mc;payload;payloadSchema=hc;billableOperations=_c;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[`company-identity-v1-pipe0`]}getInputRequirement(){return gc(this.payload.config)}getRawOutputFields(){return{[dc.name]:this.catalogOutput(dc),[fc.name]:this.catalogOutput(fc),[pc.name]:this.catalogOutput(pc)}}getConnectionsRequirements(){return[{provider:`gemini`,rateLimitRatio:1,rateLimitOperation:`gemini_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}]}},yc=hc,bc={pipeId:mc,inputFieldMode:`static`,outputFieldMode:`static`,basePipe:W(mc),label:`Find company identity`,executionMode:`mix`,categories:[`deprecated`],lifecycle:{deprecatedOn:`2026-06-13`,replacedBy:`company:identity@2`},description:`Find any company's website URL, LinkedIn profile URL, and cleaned name.`,tags:[B.WEBSITE,B.LINKEDIN],docPath:`/resources/pipe-catalog/company:identity/1`,billableOperations:_c,allowedUserConnectionProviders:[],managedProviders:[`pipe0`],deprecatedProviders:[],defaultInputRequirement:gc(null),defaultPayload:{pipe_id:mc,connector:null,run_if:null,config:{input_fields:{company_name:{alias:``}},output_fields:{cleaned_company_name:{alias:``,enabled:!0},company_social_url:{alias:``,enabled:!0},company_website_url:{alias:``,enabled:!0}}}}},xc=_(`company_name`),Sc=_(`company_profile_url`),Cc=_(`company_website_url`),wc=_(`cleaned_company_name`),Tc=`company:identity@2`,Ec=r.object({pipe_id:r.literal(Tc),run_if:S(),connector:T(),config:r.object({input_fields:z(r.object({[xc.name]:E({fieldName:xc.name})})),output_fields:R(r.object({[Sc.name]:k({fieldName:Sc.name}),[wc.name]:k({fieldName:wc.name}),[Cc.name]:k({fieldName:Cc.name})}))}).optional()}),Dc=e=>V(K(xc,e)),Oc={"company-identity-v2-pipe0":{allowManagedConnection:!0,credits:{default:.3},mode:`always`,provider:`pipe0`}},kc=class extends U{pipeId=Tc;payload;payloadSchema=Ec;billableOperations=Oc;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[`company-identity-v2-pipe0`]}getInputRequirement(){return Dc(this.payload.config)}getRawOutputFields(){return{[Sc.name]:this.catalogOutput(Sc),[Cc.name]:this.catalogOutput(Cc),[wc.name]:this.catalogOutput(wc)}}getConnectionsRequirements(){return[{provider:`gemini`,rateLimitRatio:1,rateLimitOperation:`gemini_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}]}},Ac=Ec,jc={pipeId:Tc,inputFieldMode:`static`,outputFieldMode:`static`,basePipe:W(Tc),label:`Find company identity`,executionMode:`mix`,categories:[`deprecated`],lifecycle:{deprecatedOn:`2026-06-13`,replacedBy:`company:identity@3`},description:`Find any company's website URL, LinkedIn profile URL, and cleaned name.`,tags:[B.WEBSITE,B.LINKEDIN],docPath:G(Tc),billableOperations:Oc,allowedUserConnectionProviders:[],managedProviders:[`pipe0`],deprecatedProviders:[],defaultInputRequirement:Dc(null),defaultPayload:{pipe_id:Tc,connector:null,run_if:null,config:{input_fields:{company_name:{alias:``}},output_fields:{cleaned_company_name:{alias:``,enabled:!0},company_profile_url:{alias:``,enabled:!0},company_website_url:{alias:``,enabled:!0}}}}},Mc=_(`company_website_url`),Nc=_(`companyenrich_matches`),Pc=`company:lookalikes:companyenrich@1`,Fc=r.object({pipe_id:r.literal(Pc),run_if:S(),connector:w(),config:r.object({limit:ca({groupPath:`config.general`,max:50,min:1,path:`config.limit`,required:!0,sectionKey:`general`,info:`Define how many lookalikes you want to find.`,label:`Limit`}),input_fields:z(r.object({[Mc.name]:E({fieldName:Mc.name})})),output_fields:R(r.object({[Nc.name]:k({fieldName:Nc.name})}))}).optional()}),Ic=e=>V(K(Mc,e)),Lc={"company-lookalikes-companyenrich-v1-companyenrich":{allowManagedConnection:!0,credits:{default:.2},mode:`onSuccess`,note:`One billing event per result.`,provider:`companyenrich`}},Rc=class extends U{pipeId=Pc;payload;payloadSchema=Fc;billableOperations=Lc;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`companyenrich`]}estimateBillableOperations(){return[,,,,,].fill(`lookalikes-companyenrich`)}getInputRequirement(){return Ic(this.payload.config)}getRawOutputFields(){return{[Nc.name]:this.catalogOutput(Nc)}}getConnectionsRequirements(){return[{provider:`companyenrich`,rateLimitRatio:1,rateLimitOperation:`company_enrich_generic`,allowManagedConnection:!0}]}},zc=Fc,Bc={pipeId:Pc,inputFieldMode:`static`,outputFieldMode:`static`,basePipe:W(Pc),label:`Find company lookalikes`,executionMode:`single`,categories:[`deprecated`],lifecycle:{deprecatedOn:`2026-06-13`,replacedBy:`company:lookalikes:companyenrich@2`},description:`Find companies similar to the company you provide as input.`,tags:[B.COMPANY_PROFILES],docPath:G(Pc),billableOperations:Lc,allowedUserConnectionProviders:[`companyenrich`],managedProviders:[`companyenrich`],deprecatedProviders:[],defaultInputRequirement:Ic(null),defaultPayload:{pipe_id:Pc,connector:null,run_if:null,config:{limit:20,input_fields:{company_website_url:{alias:``}},output_fields:{companyenrich_matches:{alias:``,enabled:!0}}}}},Vc=_(`company_website_url`),Hc=_(`crustdata_companyenrich_match`),Uc=`company:match:crustdata@1`,Wc=r.object({pipe_id:r.literal(Uc),run_if:S(),connector:w(),config:r.object({input_fields:z(r.object({[Vc.name]:E({fieldName:Vc.name})})),output_fields:R(r.object({[Hc.name]:k({fieldName:Hc.name})}))}).optional()}),Gc=e=>V(K(Vc,e)),Kc={"company-match-crustdata-v1-crustdata":{allowManagedConnection:!0,credits:{default:2},mode:`onSuccess`,provider:`crustdata`}},qc=class extends U{pipeId=Uc;payload;payloadSchema=Wc;billableOperations=Kc;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`crustdata`]}estimateBillableOperations(){return[`company-match-crustdata-v1-crustdata`]}getInputRequirement(){return Gc(this.payload.config)}getRawOutputFields(){return{[Hc.name]:this.catalogOutput(Hc)}}getConnectionsRequirements(){return[{provider:`crustdata`,rateLimitRatio:1,rateLimitOperation:`crustdata_company_enrich`,allowManagedConnection:!0}]}},Jc=Wc,Yc={pipeId:Uc,inputFieldMode:`static`,outputFieldMode:`static`,basePipe:W(Uc),label:`Company match`,executionMode:`single`,categories:[`deprecated`],lifecycle:{deprecatedOn:`2026-06-13`,replacedBy:`company:match:crustdata@2`},description:`Company data like headcount distribution, LinkedIn URLs etc. via the Crustdata API.`,tags:[B.WEBSITE,B.LINKEDIN],docPath:G(Uc),billableOperations:Kc,allowedUserConnectionProviders:[`crustdata`],managedProviders:[`crustdata`],deprecatedProviders:[],defaultInputRequirement:Gc(null),defaultPayload:{pipe_id:Uc,connector:null,run_if:null,config:{input_fields:{company_website_url:{alias:``}},output_fields:{crustdata_companyenrich_match:{alias:``,enabled:!0}}}}},Xc=_(`company_website_url`),Zc=_(`company_name`),Qc=_(`company_profile_url`),$c=_(`logodev_describe_match`),el=_(`logo_url`),tl=`company:match:logodev@1`,nl=r.object({pipe_id:r.literal(tl),run_if:S(),connector:w(),config:r.object({input_fields:z(r.object({[Xc.name]:E({fieldName:Xc.name})})),output_fields:R(r.object({[Qc.name]:k({fieldName:Qc.name}),[el.name]:k({fieldName:el.name}),[Zc.name]:k({fieldName:Zc.name}),[$c.name]:k({fieldName:$c.name})}))}).optional()}),rl=e=>V(K(Xc,e)),il={"company-match-logodev-v1-logodev":{allowManagedConnection:!0,credits:{default:.1},mode:`onSuccess`,provider:`logodev`}},al=class extends U{pipeId=tl;payload;payloadSchema=nl;billableOperations=il;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`logodev`]}estimateBillableOperations(){return[`company-match-logodev-v1-logodev`]}getInputRequirement(){return rl(this.payload.config)}getRawOutputFields(){return{[Qc.name]:this.catalogOutput(Qc),[Zc.name]:this.catalogOutput(Zc),[el.name]:this.catalogOutput(el),[$c.name]:this.catalogOutput($c)}}getConnectionsRequirements(){return[{provider:`logodev`,rateLimitRatio:1,rateLimitOperation:`logodev_describe`,allowManagedConnection:!0}]}},ol=nl,sl={pipeId:tl,inputFieldMode:`static`,outputFieldMode:`static`,basePipe:W(tl),label:`Company match`,executionMode:`single`,categories:[`deprecated`],lifecycle:{deprecatedOn:`2026-06-13`,replacedBy:`company:match:logodev@2`},description:`Find brand data like logos, colors, and social links via the Logo.dev API.`,tags:[B.WEBSITE,B.LINKEDIN],docPath:G(tl),billableOperations:il,allowedUserConnectionProviders:[`logodev`],managedProviders:[`logodev`],deprecatedProviders:[],defaultInputRequirement:rl(null),defaultPayload:{pipe_id:tl,connector:null,run_if:null,config:{input_fields:{company_website_url:{alias:``}},output_fields:{company_profile_url:{alias:``,enabled:!0},logo_url:{alias:``,enabled:!0},logodev_describe_match:{alias:``,enabled:!0},company_name:{alias:``,enabled:!1}}}}},cl=`company:newssummary:website@1`,ll=_(`company_news_summary`),ul=_(`company_website_url`),dl=r.object({pipe_id:r.literal(cl),run_if:S(),connector:w(),config:r.object({input_fields:z(r.object({[ul.name]:E({fieldName:ul.name})})),output_fields:R(r.object({[ll.name]:k({fieldName:ll.name})}))}).optional()}),fl=e=>V(K(ul,e)),pl={"company-newssummary-website-v1-pipe0":{allowManagedConnection:!0,credits:{default:1},mode:`always`,provider:`pipe0`}},ml=class extends U{pipeId=cl;payloadSchema=dl;billableOperations=pl;payload;constructor(e){super(),this.payload=e}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[`company-newssummary-website-v1-pipe0`]}getInputRequirement(){return fl(this.payload.config)}getRawOutputFields(){return{[ll.name]:this.catalogOutput(ll)}}getConnectionsRequirements(){return[{provider:`perplexity`,rateLimitRatio:1,rateLimitOperation:`perplexity_generic`,allowManagedConnection:!0}]}},hl=dl,gl={pipeId:cl,basePipe:W(cl),inputFieldMode:`static`,outputFieldMode:`static`,label:`Company news`,executionMode:`single`,categories:[`deprecated`],lifecycle:{deprecatedOn:`2026-06-13`,replacedBy:`company:newssummary:domain@1`},description:`Find recent company news by performing a search and scrape.`,tags:[B.NEWS],docPath:G(cl),billableOperations:pl,allowedUserConnectionProviders:[],managedProviders:[`pipe0`],deprecatedProviders:[],defaultInputRequirement:fl(null),defaultPayload:{pipe_id:cl,run_if:null,connector:null,config:{input_fields:{company_website_url:{alias:``}},output_fields:{company_news_summary:{alias:``,enabled:!0}}}}},_l=_(`company_website_url`),vl=_(`company_social_url`),yl=_(`company_description`),bl=_(`company_industry`),xl=_(`company_region`),Sl=_(`headcount`),Cl=_(`estimated_revenue`),wl=_(`founded_year`),Tl=`company:overview@1`,El=r.object({pipe_id:r.literal(Tl),run_if:S(),connector:T(),config:r.object({input_fields:z(r.object({[_l.name]:E({fieldName:_l.name}),[vl.name]:E({fieldName:vl.name})})),output_fields:R(r.object({[yl.name]:k({fieldName:yl.name}),[bl.name]:k({fieldName:bl.name}),[xl.name]:k({fieldName:xl.name}),[Sl.name]:k({fieldName:Sl.name}),[Cl.name]:k({fieldName:Cl.name}),[wl.name]:k({fieldName:wl.name})}))}).optional()}),Dl=e=>H(K(_l,e),K(vl,e)),Ol={"company-overview-v1-pipe0":{provider:`pipe0`,allowManagedConnection:!0,credits:{default:1},mode:`always`}},kl=class extends U{pipeId=Tl;payloadSchema=El;billableOperations=Ol;payload;constructor(e){super(),this.payload=e}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[`company-overview-v1-pipe0`]}getInputRequirement(){return Dl(this.payload.config)}getRawOutputFields(){return{[yl.name]:this.catalogOutput(yl),[bl.name]:this.catalogOutput(bl),[xl.name]:this.catalogOutput(xl),[Sl.name]:this.catalogOutput(Sl),[Cl.name]:this.catalogOutput(Cl),[wl.name]:this.catalogOutput(wl)}}getConnectionsRequirements(){return[{provider:`perplexity`,rateLimitRatio:1,rateLimitOperation:`perplexity_generic`,allowManagedConnection:!0},{provider:`leadmagic`,rateLimitRatio:.2,rateLimitOperation:`leadmagic_email_lookup`,allowManagedConnection:!0},{provider:`gemini`,rateLimitOperation:`gemini_20_flash`,rateLimitRatio:.1,allowManagedConnection:!0}]}},Al=El,jl={pipeId:Tl,basePipe:W(Tl),inputFieldMode:`static`,outputFieldMode:`static`,label:`Company overview`,executionMode:`mix`,categories:[`deprecated`],lifecycle:{deprecatedOn:`2026-06-13`,replacedBy:`company:identity@2`},description:`Find high-level business and financial information like company description, estimated revenue, and headcount.`,docPath:`/resources/pipe-catalog/company:overview/1`,tags:[B.WEBSITE,B.LINKEDIN,B.FINANCIAL_DATA,B.DEPRECATED],allowedUserConnectionProviders:[],managedProviders:[`pipe0`],deprecatedProviders:[],billableOperations:Ol,defaultInputRequirement:Dl(null),defaultPayload:{pipe_id:Tl,run_if:null,connector:void 0,config:{input_fields:{company_social_url:{alias:``},company_website_url:{alias:``}},output_fields:{company_description:{alias:``,enabled:!0},company_industry:{alias:``,enabled:!0},company_region:{alias:``,enabled:!0},estimated_revenue:{alias:``,enabled:!0},founded_year:{alias:``,enabled:!0},headcount:{alias:``,enabled:!0}}}}},Ml=_(`company_website_url`),Nl=_(`company_profile_url`),Pl=_(`company_description`),Fl=_(`company_industry`),Il=_(`company_region`),Ll=_(`headcount`),Rl=_(`estimated_revenue`),zl=_(`founded_year`),Bl=_(`company_name`),Vl=`company:overview@2`,Hl=r.object({pipe_id:r.literal(Vl),run_if:S(),connector:T(),config:r.object({input_fields:z(r.object({[Ml.name]:E({fieldName:Ml.name}),[Nl.name]:E({fieldName:Nl.name})})),output_fields:R(r.object({[Pl.name]:k({fieldName:Pl.name}),[Fl.name]:k({fieldName:Fl.name}),[Il.name]:k({fieldName:Il.name}),[Ll.name]:k({fieldName:Ll.name}),[Rl.name]:k({fieldName:Rl.name}),[zl.name]:k({fieldName:zl.name}),[Bl.name]:k({fieldName:Bl.name})}))}).optional()}),Ul=e=>H(K(Ml,e),K(Nl,e)),Wl={"company-overview-v2-pipe0":{provider:`pipe0`,allowManagedConnection:!0,credits:{default:1},mode:`always`}},Gl=class extends U{pipeId=Vl;payloadSchema=Hl;billableOperations=Wl;payload;constructor(e){super(),this.payload=e}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[`company-overview-v2-pipe0`]}getInputRequirement(){return Ul(this.payload.config)}getRawOutputFields(){return{[Pl.name]:this.catalogOutput(Pl),[Fl.name]:this.catalogOutput(Fl),[Il.name]:this.catalogOutput(Il),[Ll.name]:this.catalogOutput(Ll),[Rl.name]:this.catalogOutput(Rl),[zl.name]:this.catalogOutput(zl),[Bl.name]:this.catalogOutput(Bl)}}getConnectionsRequirements(){return[{provider:`perplexity`,rateLimitRatio:1,rateLimitOperation:`perplexity_generic`,allowManagedConnection:!0},{provider:`leadmagic`,rateLimitRatio:.2,rateLimitOperation:`leadmagic_email_lookup`,allowManagedConnection:!0},{provider:`gemini`,rateLimitOperation:`gemini_20_flash`,rateLimitRatio:.1,allowManagedConnection:!0}]}},Kl=Hl,ql={pipeId:Vl,basePipe:W(Vl),inputFieldMode:`static`,outputFieldMode:`static`,label:`Company overview`,executionMode:`mix`,categories:[`deprecated`],lifecycle:{deprecatedOn:`2026-06-13`,replacedBy:`company:overview@3`},description:`Business description, industry, and financial information.`,docPath:G(Vl),tags:[B.WEBSITE,B.LINKEDIN,B.FINANCIAL_DATA],allowedUserConnectionProviders:[],managedProviders:[`pipe0`],deprecatedProviders:[],billableOperations:Wl,defaultInputRequirement:Ul(null),defaultPayload:{pipe_id:Vl,run_if:null,connector:void 0,config:{input_fields:{company_profile_url:{alias:``},company_website_url:{alias:``}},output_fields:{company_description:{alias:``,enabled:!0},company_industry:{alias:``,enabled:!0},company_region:{alias:``,enabled:!0},estimated_revenue:{alias:``,enabled:!0},founded_year:{alias:``,enabled:!0},headcount:{alias:``,enabled:!0},company_name:{alias:``,enabled:!1}}}}},Jl=_(`company_website_url`),Yl=_(`technology_list`),Xl=_(`spending_trend`),Zl=_(`technology_match_builtwith`),Ql=`company:techstack:builtwith@1`,$l=r.object({pipe_id:r.literal(Ql),connector:w(),run_if:S(),config:r.object({input_fields:z(r.object({[Jl.name]:E({fieldName:Jl.name})})),output_fields:R(r.object({[Yl.name]:k({fieldName:Yl.name}),[Zl.name]:k({fieldName:Zl.name}),[Xl.name]:k({fieldName:Xl.name})}))}).optional()}),eu=e=>V(K(Jl,e)),tu={"company-techstack-builtwith-v1-builtwith":{provider:`builtwith`,allowManagedConnection:!0,credits:{default:2},mode:`always`}},nu=class extends U{pipeId=Ql;payload;payloadSchema=$l;billableOperations=tu;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`builtwith`]}estimateBillableOperations(){return[`company-techstack-builtwith-v1-builtwith`]}getInputRequirement(){return eu(this.payload.config)}getRawOutputFields(){return{[Yl.name]:this.catalogOutput(Yl),[Zl.name]:this.catalogOutput(Zl),[Xl.name]:this.catalogOutput(Xl)}}getConnectionsRequirements(){return[{provider:`builtwith`,rateLimitRatio:1,rateLimitOperation:`builtwith_generic`,allowManagedConnection:!0}]}},ru=$l,iu={pipeId:Ql,basePipe:W(Ql),managedProviders:[`builtwith`],deprecatedProviders:[],allowedUserConnectionProviders:[`builtwith`],label:`Tech stack`,executionMode:`single`,categories:[`deprecated`],lifecycle:{deprecatedOn:`2026-06-13`,replacedBy:`company:techstack:builtwith@2`},description:`All technologies and frameworks powering a given website.`,tags:[B.WEBSITE],inputFieldMode:`static`,outputFieldMode:`static`,docPath:G(Ql),billableOperations:tu,defaultInputRequirement:eu(null),defaultPayload:{pipe_id:Ql,connector:null,run_if:null,config:{input_fields:{company_website_url:{alias:``}},output_fields:{technology_list:{alias:``,enabled:!0},technology_match_builtwith:{alias:``,enabled:!0},spending_trend:{alias:``,enabled:!0}}}}},au=`company:websiteurl:email@1`,ou=_(`company_website_url`),su=_(`email`),cu=r.object({pipe_id:r.literal(au),run_if:S(),connector:T(),config:r.object({input_fields:z(r.object({[su.name]:E({fieldName:su.name})})),output_fields:R(r.object({[ou.name]:k({fieldName:ou.name})}))}).optional()}),lu=e=>V(K(su,e)),uu={"company-websiteurl-email-v1-pipe0":{credits:{default:0},allowManagedConnection:!0,mode:`always`,provider:`pipe0`}},du=class extends U{pipeId=au;payload;payloadSchema=cu;billableOperations=uu;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[`company-websiteurl-email-v1-pipe0`]}getInputRequirement(){return lu(this.payload.config)}getRawOutputFields(){return{[ou.name]:this.catalogOutput(ou)}}getConnectionsRequirements(){return[{provider:`pipe0`,rateLimitRatio:1,rateLimitOperation:`pipe0_logic`,allowManagedConnection:!0}]}},fu=cu,pu={pipeId:au,basePipe:W(au),inputFieldMode:`static`,outputFieldMode:`static`,label:`Website from email`,executionMode:`single`,categories:[`deprecated`],lifecycle:{deprecatedOn:`2026-06-13`,replacedBy:`company:domain:workemail@1`},description:`Extract the company website URL from a work email address.`,tags:[B.EMAIL,B.WORK_EMAIL,B.WEBSITE],docPath:G(au),allowedUserConnectionProviders:[],managedProviders:[`pipe0`],deprecatedProviders:[],billableOperations:uu,defaultInputRequirement:lu(null),defaultPayload:{pipe_id:au,connector:null,run_if:null,config:{input_fields:{email:{alias:``}},output_fields:{company_website_url:{alias:``,enabled:!0}}}}},mu=`people:email:iswork@1`,hu=_(`is_work_email`),gu=_(`email`),_u=r.object({pipe_id:r.literal(mu),run_if:S(),connector:T(),config:r.object({input_fields:z(r.object({[gu.name]:E({fieldName:gu.name})})),output_fields:R(r.object({[hu.name]:k({fieldName:hu.name})}))}).optional()}),vu=e=>V(K(gu,e)),yu={"people-email-iswork-v1-pipe0":{provider:`pipe0`,allowManagedConnection:!0,credits:{default:0},mode:`always`}},bu=class extends U{pipeId=mu;payload;payloadSchema=_u;billableOperations=yu;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[`people-email-iswork-v1-pipe0`]}getInputRequirement(){return vu(this.payload.config)}getRawOutputFields(){return{[hu.name]:this.catalogOutput(hu)}}getConnectionsRequirements(){return[{provider:`pipe0`,rateLimitRatio:1,rateLimitOperation:`pipe0_logic`,allowManagedConnection:!0}]}},xu=_u,Su={pipeId:mu,label:`Work email checker`,executionMode:`single`,categories:[`deprecated`],lifecycle:{deprecatedOn:`2026-06-13`,replacedBy:`email:iswork@1`},description:`Check if a given email address is personal or professional.`,tags:[B.EMAIL,B.WORK_EMAIL],docPath:G(mu),billableOperations:yu,basePipe:W(mu),allowedUserConnectionProviders:[],inputFieldMode:`static`,outputFieldMode:`static`,managedProviders:[`pipe0`],deprecatedProviders:[],defaultInputRequirement:vu(null),defaultPayload:{pipe_id:mu,run_if:null,connector:null,config:{input_fields:{email:{alias:``}},output_fields:{is_work_email:{alias:``,enabled:!0}}}}},Cu=`people:email:validate:zerobounce@1`,wu=_(`work_email`),Tu=_(`is_email_valid`),Eu=r.object({pipe_id:r.literal(Cu),connector:w(),run_if:S(),config:r.object({input_fields:z(r.object({[wu.name]:E({fieldName:wu.name})})),output_fields:R(r.object({[Tu.name]:k({fieldName:Tu.name})}))}).optional()}),Du=e=>V(K(wu,e)),Ou={"people-email-validate-zerobounce-v1-zerobounce":{provider:`zerobounce`,allowManagedConnection:!0,credits:{default:.3},mode:`always`}},ku=class extends U{pipeId=Cu;payload;payloadSchema=Eu;billableOperations=Ou;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`zerobounce`]}estimateBillableOperations(){return[`people-email-validate-zerobounce-v1-zerobounce`]}getInputRequirement(){return Du(this.payload.config)}getRawOutputFields(){return{[Tu.name]:this.catalogOutput(Tu)}}getConnectionsRequirements(){return[{provider:`zerobounce`,rateLimitRatio:1,rateLimitOperation:`zerobounce_generic`,allowManagedConnection:!0}]}},Au=Eu,ju={pipeId:Cu,basePipe:W(Cu),label:`Validate email`,executionMode:`single`,categories:[`people_data`],lifecycle:{deprecatedOn:`2026-06-13`,replacedBy:`people:email:validate:zerobounce@2`},description:`Verify email address against various factors, including syntax, domain, and server existence, to ensure it is deliverable and active.`,tags:[B.EMAIL],docPath:`/resources/pipe-catalog/people:email:validate:zerobounce/1`,billableOperations:Ou,inputFieldMode:`static`,outputFieldMode:`static`,allowedUserConnectionProviders:[`zerobounce`],managedProviders:[`zerobounce`],deprecatedProviders:[],defaultInputRequirement:Du(null),defaultPayload:{pipe_id:Cu,connector:null,run_if:null,config:{input_fields:{work_email:{alias:``}},output_fields:{is_email_valid:{alias:``,enabled:!0}}}}},Mu=`people:email:validate:zerobounce@2`,Nu=_(`email`),Pu=_(`zerobounce_validation_status`),Fu=_(`zerobounce_validation_match`),Iu=r.object({pipe_id:r.literal(Mu),connector:w(),run_if:S(),config:r.object({input_fields:z(r.object({[Nu.name]:E({fieldName:Nu.name})})),output_fields:R(r.object({[Fu.name]:k({fieldName:Fu.name}),[Pu.name]:k({fieldName:Pu.name})}))}).optional()}),Lu=e=>V(K(Nu,e)),Ru={"people-email-validate-zerobounce-v2-zerobounce":{provider:`zerobounce`,allowManagedConnection:!0,credits:{default:.3},mode:`always`}},zu=class extends U{pipeId=Mu;payload;payloadSchema=Iu;billableOperations=Ru;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`zerobounce`]}estimateBillableOperations(){return[`people-email-validate-zerobounce-v2-zerobounce`]}getInputRequirement(){return Lu(this.payload.config)}getRawOutputFields(){return{[Pu.name]:this.catalogOutput(Pu),[Fu.name]:this.catalogOutput(Fu)}}getConnectionsRequirements(){return[{provider:`zerobounce`,rateLimitRatio:1,rateLimitOperation:`zerobounce_generic`,allowManagedConnection:!0}]}},Bu=Iu,Vu={pipeId:Mu,basePipe:W(Mu),label:`Validate email`,executionMode:`single`,categories:[`deprecated`],lifecycle:{deprecatedOn:`2026-06-13`,replacedBy:`email:validate:zerobounce@1`},description:`Verify email address against various factors, including syntax, domain, and server existence, to ensure it is deliverable and active.`,tags:[B.EMAIL],docPath:G(Mu),billableOperations:Ru,inputFieldMode:`static`,outputFieldMode:`static`,allowedUserConnectionProviders:[`zerobounce`],managedProviders:[`zerobounce`],deprecatedProviders:[],defaultInputRequirement:Lu(null),defaultPayload:{pipe_id:Mu,connector:null,run_if:null,config:{input_fields:{email:{alias:``}},output_fields:{zerobounce_validation_status:{alias:``,enabled:!0},zerobounce_validation_match:{alias:``,enabled:!0}}}}};function Hu(e){return(e.widgets||{}).display_value?.label}function Uu(e){console.dir(e,{depth:100})}function Wu(e){return typeof e==`object`&&e?JSON.stringify(e):e}function q(e){return e===0?1:e===1?.3:e===2?.2:.1}function Gu(e){if(typeof e!=`object`||!e||Array.isArray(e))return e;let t={};return Object.keys(e).sort().forEach(n=>{t[n]=Gu(e[n])}),t}const Ku={string:[`address_line_1`,`email`,`url`,`website_url`,`markdown`,`zip_code`,`date`,`datetime`,`phone`,`text`,`profile_url`],json:[`json_object`,`json_list`],number:[`int`,`decimal`],boolean:[],unknown:[]};function J(e,t){let n=Object.entries(t).filter(([t,n])=>n.provider===e);if(n.length!==1)throw Error(`Found ${n.length} billing operations for provider ${e}. This is not allowed. There must be exactly 1 billing operation per provider.`);let[r,i]=n[0];return{billableOperation:r,billableOperationDef:i}}const qu=`people:identity:email:waterfall@1`,Ju=_(`email`),Yu=_(`company_website_url`),Xu=_(`name`),Zu=_(`job_title`),Qu=_(`profile_url`),$u=_(`company_profile_url`),ed=_(`company_name`),td=[`findymail`,`hunter`,`crustdata`],nd=[{provider:`findymail`},{provider:`hunter`},{provider:`crustdata`}],rd=r.object({pipe_id:r.literal(qu),connector:w(),run_if:S(),config:r.object({providers:D({availableProviders:td,defaultProviders:nd,sectionKey:`general`}),input_fields:z(r.object({[Ju.name]:E({fieldName:Ju.name})})),output_fields:R(r.object({[Xu.name]:k({fieldName:Xu.name}),[Qu.name]:k({fieldName:Qu.name}),[Zu.name]:k({fieldName:Zu.name}),[Yu.name]:k({fieldName:Yu.name}),[ed.name]:k({fieldName:ed.name}),[$u.name]:k({fieldName:$u.name})}))}).optional()}),id=e=>V(K(Ju,e)),ad={"people-identity-email-waterfall-v1-hunter":{provider:`hunter`,allowManagedConnection:!0,credits:{default:2},mode:`onSuccess`},"people-identity-email-waterfall-v1-findymail":{provider:`findymail`,allowManagedConnection:!0,credits:{default:2},mode:`onSuccess`},"people-identity-email-waterfall-v1-crustdata":{provider:`crustdata`,allowManagedConnection:!0,credits:{default:5},mode:`onSuccess`}},od=class extends U{pipeId=qu;payload;payloadSchema=rd;billableOperations=ad;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return this.payload.config?.providers.map(e=>e.provider)||[]}estimateBillableOperations(){return this.getProviderNames().map(e=>J(e,this.billableOperations).billableOperation)}getInputRequirement(){return id(this.payload.config)}getRawOutputFields(){return{[Xu.name]:this.catalogOutput(Xu,{isPrimaryOutput:!0}),[Qu.name]:this.catalogOutput(Qu,{isPrimaryOutput:!0}),[Zu.name]:this.catalogOutput(Zu,{isPrimaryOutput:!0}),[ed.name]:this.catalogOutput(ed,{isPrimaryOutput:!0}),[$u.name]:this.catalogOutput($u,{isPrimaryOutput:!0}),[Yu.name]:this.catalogOutput(Yu,{isPrimaryOutput:!0})}}getConnectionsRequirements(){let e={hunter:`prospeo_email_lookup`,findymail:`findymail_email_b2b_lookup`,crustdata:`crustdata_realtime_person_enrich`};return(this.payload.config?.providers||[]).map((t,n)=>({provider:t.provider,rateLimitRatio:q(n),rateLimitOperation:e[t.provider],allowManagedConnection:!0}))}},sd=rd,cd={pipeId:qu,basePipe:W(qu),label:`Person identity from email`,executionMode:`waterfall`,categories:[`deprecated`],lifecycle:{deprecatedOn:`2026-06-13`,replacedBy:`person:identity:email:waterfall@1`},description:`Find identity of a person from their email address.`,tags:[B.EMAIL,B.PEOPLE_PROFILES],docPath:G(qu),managedProviders:td,deprecatedProviders:[],allowedUserConnectionProviders:td,inputFieldMode:`static`,outputFieldMode:`static`,billableOperations:ad,defaultInputRequirement:id(null),defaultPayload:{pipe_id:qu,connector:null,run_if:null,config:{providers:nd,input_fields:{email:{alias:``}},output_fields:{name:{alias:``,enabled:!0},profile_url:{alias:``,enabled:!0},job_title:{alias:``,enabled:!0},company_name:{alias:``,enabled:!0},company_profile_url:{alias:``,enabled:!0},company_website_url:{alias:``,enabled:!0}}}}},ld=`people:match:role:waterfall@1`,ud=_(`company_website_url`),dd=_(`role_finder_match`),fd=[`leadmagic`],pd=[{provider:`leadmagic`}],md=r.object({pipe_id:r.literal(ld),run_if:S(),connector:w(),config:r.object({providers:D({sectionKey:`general`,defaultProviders:pd,availableProviders:fd}),roles:Xi({sectionKey:`general`,groupPath:`config.general`,label:`Roles`,path:`config.roles`,info:`Company roles to include`,maxItems:3,minItems:1}),input_fields:z(r.object({[ud.name]:E({fieldName:ud.name})})),output_fields:R(r.object({[dd.name]:k({fieldName:dd.name})}))})}),hd=e=>H(K(ud,e)),gd={"people-match-role-waterfall-v1-leadmagic":{provider:`leadmagic`,allowManagedConnection:!0,credits:{default:1},mode:`onSuccess`}},_d=class extends U{pipeId=ld;payload;payloadSchema=md;billableOperations=gd;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return this.payload.config?.providers.map(e=>e.provider)||[]}estimateBillableOperations(){return this.getProviderNames().map(e=>J(e,this.billableOperations).billableOperation)}getInputRequirement(){return hd(this.payload.config)}getRawOutputFields(){return{[dd.name]:this.catalogOutput(dd,{isPrimaryOutput:!0})}}getConnectionsRequirements(){let e={leadmagic:`leadmagic_role_finder`};return(this.payload.config?.providers||[]).map((t,n)=>({provider:t.provider,rateLimitRatio:q(n),rateLimitOperation:e[t.provider],allowManagedConnection:!0}))}},vd=md,yd={pipeId:ld,basePipe:W(ld),managedProviders:fd,deprecatedProviders:[],allowedUserConnectionProviders:fd,label:`Role finder`,executionMode:`waterfall`,categories:[`deprecated`],lifecycle:{deprecatedOn:`2026-06-13`,replacedBy:`person:match:role:waterfall@1`},description:`Find role matches for a given companies like "CEO" or "CFO".`,tags:[B.PEOPLE_PROFILES],docPath:G(ld),billableOperations:gd,inputFieldMode:`static`,outputFieldMode:`static`,defaultInputRequirement:hd(null),defaultPayload:{pipe_id:ld,run_if:null,connector:null,config:{roles:[],providers:pd,input_fields:{company_website_url:{alias:``}},output_fields:{role_finder_match:{alias:``,enabled:!0}}}}},bd=`people:mobilenumber:professionalprofile:waterfall@1`,xd=_(`professional_profile_url`),Sd=_(`mobile_number`),Cd=[`leadmagic`,`prospeo`],wd=[{provider:`leadmagic`},{provider:`prospeo`}],Td=r.object({pipe_id:r.literal(bd),run_if:S(),connector:w(),config:r.object({providers:D({sectionKey:`general`,defaultProviders:wd,availableProviders:Cd}),input_fields:z(r.object({[xd.name]:E({fieldName:xd.name})})),output_fields:R(r.object({[Sd.name]:k({fieldName:Sd.name})}))}).optional()}),Ed=e=>V(K(xd,e)),Dd={"people-mobilenumber-professionalprofile-waterfall-v1-leadmagic":{provider:`leadmagic`,allowManagedConnection:!0,credits:{default:2},mode:`onSuccess`},"people-mobilenumber-professionalprofile-waterfall-v1-prospeo":{provider:`prospeo`,allowManagedConnection:!0,credits:{default:5},mode:`onSuccess`}},Od=class extends U{pipeId=bd;payload;payloadSchema=Td;billableOperations=Dd;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return this.payload.config?.providers.map(e=>e.provider)||[]}estimateBillableOperations(){return this.getProviderNames().map(e=>J(e,this.billableOperations).billableOperation)}getInputRequirement(){return Ed(this.payload.config)}getRawOutputFields(){return{[Sd.name]:this.catalogOutput(Sd)}}getConnectionsRequirements(){let e={leadmagic:`leadmagic_email_lookup`,prospeo:`prospeo_phone_number_lookup`};return(this.payload.config?.providers||[]).map((t,n)=>({provider:t.provider,rateLimitRatio:q(n),rateLimitOperation:e[t.provider],allowManagedConnection:!0}))}},kd=Td,Ad={pipeId:bd,basePipe:W(bd),label:`Mobile number from LinkedIn profile`,executionMode:`waterfall`,categories:[`deprecated`],lifecycle:{deprecatedOn:`2026-06-13`,replacedBy:`people:phone:profile:waterfall@1`},description:`Find a mobile phone number for any prospect using multiple data providers in a waterfall motion.`,docPath:`/resources/pipe-catalog/people:mobilenumber:professionalprofile:waterfall/1`,tags:[B.PHONE,B.WATERFALL],billableOperations:Dd,defaultInputRequirement:Ed(null),inputFieldMode:`static`,outputFieldMode:`static`,managedProviders:Cd,deprecatedProviders:[],allowedUserConnectionProviders:Cd,defaultPayload:{pipe_id:bd,connector:null,run_if:null,config:{providers:wd,input_fields:{professional_profile_url:{alias:``}},output_fields:{mobile_number:{alias:``,enabled:!0}}}}},jd=`people:mobilenumber:workemail:waterfall@1`,Md=_(`work_email`),Nd=_(`mobile_number`),Pd=[`leadmagic`],Fd=[{provider:`leadmagic`}],Id=r.object({pipe_id:r.literal(jd),run_if:S(),connector:w(),config:r.object({providers:D({sectionKey:`general`,availableProviders:Pd,defaultProviders:Fd}),input_fields:z(r.object({[Md.name]:E({fieldName:Md.name})})),output_fields:R(r.object({[Nd.name]:k({fieldName:Nd.name})}))}).optional()}),Ld=e=>V(K(Md,e)),Rd={"people-mobilenumber-workemail-waterfall-v1-leadmagic":{provider:`leadmagic`,allowManagedConnection:!0,credits:{default:2},mode:`onSuccess`}},zd=class extends U{pipeId=jd;payload;payloadSchema=Id;billableOperations=Rd;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return this.payload.config?.providers?.map(e=>e.provider)||[]}estimateBillableOperations(){return this.getProviderNames().map(e=>J(e,this.billableOperations).billableOperation)}getInputRequirement(){return Ld(this.payload.config)}getRawOutputFields(){return{[Nd.name]:this.catalogOutput(Nd)}}getConnectionsRequirements(){let e={leadmagic:`leadmagic_email_lookup`};return(this.payload.config?.providers||[]).map((t,n)=>({provider:t.provider,rateLimitRatio:q(n),rateLimitOperation:e[t.provider],allowManagedConnection:!0}))}},Bd=Id,Vd={pipeId:jd,basePipe:W(jd),label:`Mobile number from email`,executionMode:`waterfall`,categories:[`deprecated`],lifecycle:{deprecatedOn:`2026-06-13`,replacedBy:`people:phone:workemail:waterfall@1`},description:`Find a mobile phone number for a prospect.`,tags:[B.PHONE,B.WATERFALL],docPath:`/resources/pipe-catalog/people:mobilenumber:workemail:waterfall/1`,billableOperations:Rd,defaultInputRequirement:Ld(null),inputFieldMode:`static`,outputFieldMode:`static`,allowedUserConnectionProviders:Pd,managedProviders:Pd,deprecatedProviders:[],defaultPayload:{pipe_id:jd,connector:null,run_if:null,config:{providers:Fd,input_fields:{work_email:{alias:``}},output_fields:{mobile_number:{alias:``,enabled:!0}}}}},Hd=`people:name:split@1`,Ud=_(`name`),Wd=_(`first_name`),Gd=_(`last_name`),Kd=r.object({pipe_id:r.literal(Hd),connector:T(),run_if:S(),config:r.object({input_fields:z(r.object({[Ud.name]:E({fieldName:Ud.name})})),output_fields:R(r.object({[Wd.name]:k({fieldName:Wd.name}),[Gd.name]:k({fieldName:Gd.name})}))}).optional()}),qd=e=>V(K(Ud,e)),Jd={"people-name-split-v1-pipe0":{provider:`pipe0`,allowManagedConnection:!0,credits:{default:0},mode:`always`}},Yd=class extends U{pipeId=Hd;payload;payloadSchema=Kd;billableOperations=Jd;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[`people-name-split-v1-pipe0`]}getInputRequirement(){return qd(this.payload.config)}getRawOutputFields(){return{[Wd.name]:this.catalogOutput(Wd),[Gd.name]:this.catalogOutput(Gd)}}getConnectionsRequirements(){return[{provider:`pipe0`,rateLimitRatio:1,rateLimitOperation:`pipe0_logic`,allowManagedConnection:!0}]}},Xd=Kd,Zd={pipeId:Hd,basePipe:W(Hd),label:`Split name`,executionMode:`single`,categories:[`deprecated`],lifecycle:{deprecatedOn:`2026-06-13`,replacedBy:`person:name:split@1`},description:`Split a full name into first and last name.`,tags:[B.NAMES],docPath:G(Hd),billableOperations:Jd,inputFieldMode:`static`,outputFieldMode:`static`,defaultInputRequirement:qd(null),allowedUserConnectionProviders:[],managedProviders:[`pipe0`],deprecatedProviders:[],defaultPayload:{pipe_id:Hd,run_if:null,connector:void 0,config:{input_fields:{name:{alias:``}},output_fields:{first_name:{alias:``,enabled:!0},last_name:{alias:``,enabled:!0}}}}},Qd=`people:personalemail:profile:waterfall@1`,$d=_(`profile_url`),ef=_(`personal_email`),tf=_(`alternate_personal_emails`),nf=[`clado`,`leadmagic`,`mixrank`],rf=[{provider:`leadmagic`},{provider:`mixrank`}],af=r.object({pipe_id:r.literal(Qd),run_if:S(),connector:w(),config:r.object({providers:D({sectionKey:`general`,availableProviders:nf,defaultProviders:rf}),input_fields:z(r.object({[$d.name]:E({fieldName:$d.name})})),output_fields:R(r.object({[ef.name]:k({fieldName:ef.name}),[tf.name]:k({fieldName:tf.name})}))}).optional()}),of=e=>V(K($d,e)),sf={"people-personalemail-profile-waterfall-v1-clado":{provider:`clado`,allowManagedConnection:!0,credits:{default:2},mode:`always`},"people-personalemail-profile-waterfall-v1-leadmagic":{provider:`leadmagic`,allowManagedConnection:!0,credits:{default:1},mode:`onSuccess`},"people-personalemail-profile-waterfall-v1-mixrank":{provider:`mixrank`,allowManagedConnection:!0,credits:{default:1},mode:`onSuccess`}},cf=class extends U{pipeId=Qd;payload;payloadSchema=af;billableOperations=sf;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return this.payload.config?.providers.map(e=>e.provider)||[]}estimateBillableOperations(){return this.getProviderNames().map(e=>J(e,this.billableOperations).billableOperation)}getInputRequirement(){return of(this.payload.config)}getRawOutputFields(){return{[ef.name]:this.catalogOutput(ef,{isPrimaryOutput:!0}),[tf.name]:this.catalogOutput(tf)}}getConnectionsRequirements(){let e={leadmagic:`leadmagic_personal_email_finder`,clado:`clado_contact_information`,mixrank:`mixrank-person-match`};return(this.payload.config?.providers||[]).map((t,n)=>({provider:t.provider,rateLimitRatio:q(n),rateLimitOperation:e[t.provider],allowManagedConnection:!0}))}},lf=af,uf={pipeId:Qd,basePipe:W(Qd),allowedUserConnectionProviders:nf,managedProviders:nf,deprecatedProviders:[`clado`],label:`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(Qd),billableOperations:sf,defaultInputRequirement:of(null),inputFieldMode:`static`,outputFieldMode:`static`,defaultPayload:{pipe_id:Qd,connector:null,run_if:null,config:{providers:rf,input_fields:{profile_url:{alias:``}},output_fields:{personal_email:{alias:``,enabled:!0},alternate_personal_emails:{alias:``,enabled:!0}}}}},df=`people:phone:profile:waterfall@1`,ff=_(`profile_url`),pf=_(`mobile`),mf=[`leadmagic`,`prospeo`,`amplemarket`,`findymail`,`clado`],hf=[{provider:`leadmagic`},{provider:`prospeo`},{provider:`amplemarket`},{provider:`findymail`}],gf=r.object({pipe_id:r.literal(df),run_if:S(),connector:w(),config:r.object({providers:D({sectionKey:`general`,defaultProviders:hf,availableProviders:mf}),input_fields:z(r.object({[ff.name]:E({fieldName:ff.name})})),output_fields:R(r.object({[pf.name]:k({fieldName:pf.name})}))}).optional()}),_f=e=>V(K(ff,e)),vf={"people-phone-profile-waterfall-v1-leadmagic":{provider:`leadmagic`,allowManagedConnection:!0,credits:{default:2},mode:`onSuccess`},"people-phone-profile-waterfall-v1-clado":{provider:`clado`,allowManagedConnection:!0,credits:{default:5},mode:`onSuccess`},"people-phone-profile-waterfall-v1-prospeo":{provider:`prospeo`,allowManagedConnection:!0,credits:{default:5},mode:`onSuccess`},"people-phone-profile-waterfall-v1-findymail":{provider:`findymail`,allowManagedConnection:!0,credits:{default:6},mode:`onSuccess`},"people-phone-profile-waterfall-v1-amplemarket":{provider:`amplemarket`,allowManagedConnection:!0,credits:{default:4},mode:`onSuccess`}},yf=class extends U{pipeId=df;payload;payloadSchema=gf;billableOperations=vf;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return this.payload.config?.providers.map(e=>e.provider)||[]}estimateBillableOperations(){return this.getProviderNames().map(e=>J(e,this.billableOperations).billableOperation)}getInputRequirement(){return _f(this.payload.config)}getRawOutputFields(){return{[pf.name]:this.catalogOutput(pf,{isPrimaryOutput:!0})}}getConnectionsRequirements(){let e={leadmagic:`leadmagic_email_lookup`,prospeo:`prospeo_phone_number_lookup`,findymail:`findymail_phone_lookup`,clado:`clado_contact_information`,amplemarket:`amplemarket-person-reveal`};return(this.payload.config?.providers||[]).map((t,n)=>({provider:t.provider,rateLimitRatio:q(n),rateLimitOperation:e[t.provider],allowManagedConnection:!0}))}},bf=gf,xf={pipeId:df,basePipe:W(df),label:`Mobile number from LinkedIn profile`,executionMode:`waterfall`,categories:[`deprecated`],lifecycle:{deprecatedOn:`2026-06-13`,replacedBy:`person:mobile:profileurl:waterfall@1`},description:`Find a mobile phone number for any prospect using multiple data providers in a waterfall motion.`,docPath:G(df),tags:[B.PHONE,B.WATERFALL],billableOperations:vf,defaultInputRequirement:_f(null),inputFieldMode:`static`,outputFieldMode:`static`,managedProviders:mf,allowedUserConnectionProviders:mf,deprecatedProviders:[`clado`],defaultPayload:{pipe_id:df,connector:null,run_if:null,config:{providers:hf,input_fields:{profile_url:{alias:``}},output_fields:{mobile:{alias:``,enabled:!0}}}}},Sf=`people:phone:workemail:waterfall@1`,Cf=_(`work_email`),wf=_(`mobile`),Tf=[`leadmagic`,`amplemarket`],Ef=[{provider:`leadmagic`},{provider:`amplemarket`}],Df=r.object({pipe_id:r.literal(Sf),run_if:S(),connector:w(),config:r.object({providers:D({sectionKey:`general`,availableProviders:Tf,defaultProviders:Ef}),input_fields:z(r.object({[Cf.name]:E({fieldName:Cf.name})})),output_fields:R(r.object({[wf.name]:k({fieldName:wf.name})}))}).optional()}),Of=e=>V(K(Cf,e)),kf={"people-phone-workemail-waterfall-v1-leadmagic":{provider:`leadmagic`,allowManagedConnection:!0,credits:{default:2},mode:`onSuccess`},"people-phone-workemail-waterfall-v1-amplemarket":{provider:`amplemarket`,allowManagedConnection:!0,credits:{default:4},mode:`onSuccess`}},Af=class extends U{pipeId=Sf;payload;payloadSchema=Df;billableOperations=kf;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return this.payload.config?.providers.map(e=>e.provider)||[]}estimateBillableOperations(){return this.getProviderNames().map(e=>J(e,this.billableOperations).billableOperation)}getInputRequirement(){return Of(this.payload.config)}getRawOutputFields(){return{[wf.name]:this.catalogOutput(wf,{isPrimaryOutput:!0})}}getConnectionsRequirements(){let e={leadmagic:`leadmagic_email_lookup`,amplemarket:`amplemarket-person-reveal`};return(this.payload.config?.providers||[]).map((t,n)=>({provider:t.provider,rateLimitRatio:q(n),rateLimitOperation:e[t.provider],allowManagedConnection:!0}))}},jf=Df,Mf={pipeId:Sf,basePipe:W(Sf),label:`Mobile number from email`,executionMode:`waterfall`,categories:[`deprecated`],lifecycle:{deprecatedOn:`2026-06-13`,replacedBy:`person:mobile:workemail:waterfall@1`},description:`Find a mobile phone number for a prospect.`,tags:[B.PHONE,B.WATERFALL],docPath:G(Sf),billableOperations:kf,defaultInputRequirement:Of(null),inputFieldMode:`static`,outputFieldMode:`static`,allowedUserConnectionProviders:Tf,managedProviders:Tf,deprecatedProviders:[],defaultPayload:{pipe_id:Sf,connector:null,run_if:null,config:{providers:Ef,input_fields:{work_email:{alias:``}},output_fields:{mobile:{alias:``,enabled:!0}}}}},Nf=`people:professionalprofile:waterfall@1`,Pf=_(`professional_profile`),Ff=_(`professional_profile_url`),If=[`prospeo`,`icypeas`],Lf=[{provider:`prospeo`},{provider:`icypeas`}],Rf=r.object({pipe_id:r.literal(Nf),run_if:S(),connector:w(),config:r.object({providers:D({sectionKey:`general`,availableProviders:If,defaultProviders:Lf}),input_fields:z(r.object({[Ff.name]:E({fieldName:Ff.name})})),output_fields:R(r.object({[Pf.name]:k({fieldName:Pf.name})}))}).optional()}),zf=e=>V(K(Ff,e)),Bf={"people-professionalprofile-waterfall-v1-icypeas":{provider:`icypeas`,credits:{default:1},mode:`onSuccess`,allowManagedConnection:!0},"people-professionalprofile-waterfall-v1-prospeo":{provider:`prospeo`,credits:{default:1},mode:`onSuccess`,allowManagedConnection:!0}},Vf=class extends U{pipeId=Nf;payload;payloadSchema=Rf;billableOperations=Bf;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return this.payload.config?.providers.map(e=>e.provider)||[]}estimateBillableOperations(){return this.getProviderNames().map(e=>J(e,this.billableOperations).billableOperation)}getInputRequirement(){return zf(this.payload.config)}getRawOutputFields(){return{[Pf.name]:this.catalogOutput(Pf)}}getConnectionsRequirements(){let e={icypeas:`icypeas_scrape_profile`,prospeo:`prospeo_social_profile_lookup`};return(this.payload.config?.providers||[]).map((t,n)=>({provider:t.provider,rateLimitRatio:q(n),rateLimitOperation:e[t.provider],allowManagedConnection:!0}))}},Hf=Rf,Uf={pipeId:Nf,basePipe:W(Nf),label:`Full LinkedIn profile`,executionMode:`waterfall`,categories:[`deprecated`],lifecycle:{deprecatedOn:`2026-06-13`,replacedBy:`people:profile:waterfall@1`},description:`Find a JSON representation of a LinkedIn profile.`,docPath:`/resources/pipe-catalog/people:professionalprofile:waterfall/1`,tags:[B.LINKEDIN,B.WATERFALL],managedProviders:If,deprecatedProviders:[],allowedUserConnectionProviders:If,inputFieldMode:`static`,outputFieldMode:`static`,billableOperations:Bf,defaultInputRequirement:zf(null),defaultPayload:{pipe_id:Nf,run_if:null,connector:null,config:{providers:Lf,input_fields:{professional_profile_url:{alias:``}},output_fields:{professional_profile:{alias:``,enabled:!0}}}}},Wf=`people:professionalprofileurl:email:waterfall@1`,Gf=_(`email`),Kf=_(`work_email`),qf=_(`professional_profile_url`),Jf=[`leadmagic`],Yf=[{provider:`leadmagic`}],Xf=r.object({pipe_id:r.literal(Wf),run_if:S(),connector:w(),config:r.object({providers:D({sectionKey:`general`,defaultProviders:Yf,availableProviders:Jf}),input_fields:z(r.object({[Gf.name]:E({fieldName:Gf.name}),[Kf.name]:E({fieldName:Kf.name})})),output_fields:R(r.object({[qf.name]:k({fieldName:qf.name})}))}).optional()}),Zf=e=>H(K(Gf,e),K(Kf,e)),Qf={"people-professionalprofileurl-email-waterfall-v1-leadmagic":{provider:`leadmagic`,allowManagedConnection:!0,credits:{default:3.5},mode:`onSuccess`}},$f=class extends U{pipeId=Wf;payload;payloadSchema=Xf;billableOperations=Qf;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return this.payload.config?.providers.map(e=>e.provider)||[]}estimateBillableOperations(){return this.getProviderNames().map(e=>J(e,this.billableOperations).billableOperation)}getInputRequirement(){return Zf(this.payload.config)}getRawOutputFields(){return{[qf.name]:this.catalogOutput(qf)}}getConnectionsRequirements(){let e={leadmagic:`leadmagic_email_to_b2b_profile`};return(this.payload.config?.providers||[]).map((t,n)=>({provider:t.provider,rateLimitRatio:q(n),rateLimitOperation:e[t.provider],allowManagedConnection:!0}))}},ep=Xf,tp={pipeId:Wf,basePipe:W(Wf),managedProviders:Jf,deprecatedProviders:[],allowedUserConnectionProviders:Jf,label:`LinkedIn URL from email`,executionMode:`waterfall`,categories:[`deprecated`],lifecycle:{deprecatedOn:`2026-06-13`,replacedBy:`people:profileurl:email:waterfall@1`},description:`Find the URL for a prospect's LinkedIn profile from their personal or professional email address.`,tags:[B.LINKEDIN],docPath:`/resources/pipe-catalog/people:professionalprofileurl:email:waterfall/1`,billableOperations:Qf,inputFieldMode:`static`,outputFieldMode:`static`,defaultInputRequirement:Zf(null),defaultPayload:{pipe_id:Wf,run_if:null,connector:null,config:{providers:Yf,input_fields:{email:{alias:``},work_email:{alias:``}},output_fields:{professional_profile_url:{alias:``,enabled:!0}}}}},np=`people:professionalprofileurl:name@1`,rp=_(`name`),ip=_(`company_name`),ap=_(`location_hint`),op=_(`professional_profile_url`),sp=r.object({pipe_id:r.literal(np),connector:T(),run_if:S(),config:r.object({input_fields:z(r.object({[rp.name]:E({fieldName:rp.name}),[ip.name]:E({fieldName:ip.name}),[ap.name]:E({fieldName:ap.name})})),output_fields:R(r.object({[op.name]:k({fieldName:op.name})}))}).optional()}),cp=e=>Ea(V(K(rp,e)),V(K(ip,e)),Da(K(ap,e))),lp={"people-professionalprofileurl-name-v1-pipe0":{provider:`pipe0`,allowManagedConnection:!0,credits:{default:.6},mode:`always`}},up=class extends U{pipeId=np;payload;payloadSchema=sp;billableOperations=lp;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[`people-professionalprofileurl-name-v1-pipe0`]}getInputRequirement(){return cp(this.payload.config)}getRawOutputFields(){return{[op.name]:this.catalogOutput(op)}}getConnectionsRequirements(){return[{provider:`serper`,rateLimitRatio:1,rateLimitOperation:`serper_search`,allowManagedConnection:!0}]}},dp=sp,fp={pipeId:np,basePipe:W(np),label:`LinkedIn URL from name`,executionMode:`single`,categories:[`deprecated`],lifecycle:{deprecatedOn:`2026-06-13`,replacedBy:`person:profileurl:name@1`},allowedUserConnectionProviders:[],managedProviders:[`pipe0`],deprecatedProviders:[],description:`Find the LinkedIn profile URL by using the prospect's name as input.`,docPath:`/resources/pipe-catalog/people:professionalprofileurl:name/1`,tags:[B.LINKEDIN],billableOperations:lp,defaultInputRequirement:cp(null),inputFieldMode:`static`,outputFieldMode:`static`,defaultPayload:{pipe_id:np,connector:void 0,run_if:null,config:{input_fields:{company_name:{alias:``},location_hint:{alias:``},name:{alias:``}},output_fields:{professional_profile_url:{alias:``,enabled:!0}}}}},pp=`people:profile:waterfall@1`,mp=_(`profile`),hp=_(`profile_url`),gp=[`prospeo`,`icypeas`,`amplemarket`,`clado`],_p=[{provider:`amplemarket`},{provider:`prospeo`},{provider:`icypeas`}],vp=r.object({pipe_id:r.literal(pp),run_if:S(),connector:w(),config:r.object({providers:D({sectionKey:`general`,availableProviders:gp,defaultProviders:_p}),input_fields:z(r.object({[hp.name]:E({fieldName:hp.name})})),output_fields:R(r.object({[mp.name]:k({fieldName:mp.name})}))}).optional()}),yp=e=>V(K(hp,e)),bp={"people-profile-waterfall-v1-icypeas":{provider:`icypeas`,credits:{default:1},mode:`onSuccess`,allowManagedConnection:!0},"people-profile-waterfall-v1-prospeo":{provider:`prospeo`,credits:{default:1},mode:`onSuccess`,allowManagedConnection:!0},"people-profile-waterfall-v1-clado":{provider:`clado`,credits:{default:1},mode:`onSuccess`,allowManagedConnection:!0},"people-profile-waterfall-v1-amplemarket":{provider:`amplemarket`,credits:{default:1},mode:`onSuccess`,allowManagedConnection:!0}},xp=class extends U{pipeId=pp;payload;payloadSchema=vp;billableOperations=bp;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return this.payload.config?.providers.map(e=>e.provider)||[]}estimateBillableOperations(){return this.getProviderNames().map(e=>J(e,this.billableOperations).billableOperation)}getInputRequirement(){return yp(this.payload.config)}getRawOutputFields(){return{[mp.name]:this.catalogOutput(mp,{isPrimaryOutput:!0})}}getConnectionsRequirements(){let e={icypeas:`icypeas_scrape_profile`,prospeo:`prospeo_social_profile_lookup`,clado:`clado_social_profile_lookup`,amplemarket:`amplemarket-person-reveal`};return(this.payload.config?.providers||[]).map((t,n)=>({provider:t.provider,rateLimitRatio:q(n),rateLimitOperation:e[t.provider],allowManagedConnection:!0}))}},Sp=vp,Cp={pipeId:pp,basePipe:W(pp),label:`Full LinkedIn profile`,executionMode:`waterfall`,categories:[`deprecated`],lifecycle:{deprecatedOn:`2026-06-13`,replacedBy:`person:profile:waterfall@1`},description:`Find a JSON representation of a LinkedIn profile.`,docPath:G(pp),tags:[B.LINKEDIN,B.WATERFALL],managedProviders:gp,deprecatedProviders:[`clado`],allowedUserConnectionProviders:gp,inputFieldMode:`static`,outputFieldMode:`static`,billableOperations:bp,defaultInputRequirement:yp(null),defaultPayload:{pipe_id:pp,run_if:null,connector:null,config:{providers:_p,input_fields:{profile_url:{alias:``}},output_fields:{profile:{alias:``,enabled:!0}}}}},wp=_(`work_email`),Tp=_(`crustdata_person_match`),Ep=_(`crustdata_profile_match_score`),Dp=`people:profile:workemail:crustdata@1`,Op=r.object({pipe_id:r.literal(Dp),run_if:S(),connector:w(),config:r.object({input_fields:z(r.object({[wp.name]:E({fieldName:wp.name})})),output_fields:R(r.object({[Tp.name]:k({fieldName:Tp.name}),[Ep.name]:k({fieldName:Ep.name})}))}).optional()}),kp=e=>V(K(wp,e)),Ap={"people-profile-workemail-crustdata-v1-crustdata":{allowManagedConnection:!0,credits:{default:5},mode:`onSuccess`,provider:`crustdata`}},jp=class extends U{pipeId=Dp;payload;payloadSchema=Op;billableOperations=Ap;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`crustdata`]}estimateBillableOperations(){return[`people-profile-workemail-crustdata-v1-crustdata`]}getInputRequirement(){return kp(this.payload.config)}getRawOutputFields(){return{[Tp.name]:this.catalogOutput(Tp),[Ep.name]:this.catalogOutput(Ep)}}getConnectionsRequirements(){return[{provider:`crustdata`,rateLimitRatio:1,rateLimitOperation:`crustdata_realtime_person_enrich`,allowManagedConnection:!0}]}},Mp=Op,Np={pipeId:Dp,inputFieldMode:`static`,outputFieldMode:`static`,basePipe:W(Dp),label:`Profile from work email`,executionMode:`single`,categories:[`deprecated`],lifecycle:{deprecatedOn:`2026-06-13`,replacedBy:`person:profile:workemail:crustdata@1`},description:`Find person profile by their work email address.`,tags:[B.EMAIL,B.PEOPLE_PROFILES],docPath:G(Dp),billableOperations:Ap,allowedUserConnectionProviders:[`crustdata`],managedProviders:[`crustdata`],deprecatedProviders:[],defaultInputRequirement:kp(null),defaultPayload:{pipe_id:Dp,connector:null,run_if:null,config:{input_fields:{work_email:{alias:``}},output_fields:{crustdata_person_match:{alias:``,enabled:!0},crustdata_profile_match_score:{alias:``,enabled:!0}}}}},Pp=`people:profileurl:email:waterfall@1`,Fp=_(`email`),Ip=_(`work_email`),Lp=_(`profile_url`),Rp=[`leadmagic`],zp=[{provider:`leadmagic`}],Bp=r.object({pipe_id:r.literal(Pp),run_if:S(),connector:w(),config:r.object({providers:D({sectionKey:`general`,defaultProviders:zp,availableProviders:Rp}),input_fields:z(r.object({[Fp.name]:E({fieldName:Fp.name}),[Ip.name]:E({fieldName:Ip.name})})),output_fields:R(r.object({[Lp.name]:k({fieldName:Lp.name})}))}).optional()}),Vp=e=>H(K(Fp,e),K(Ip,e)),Hp={"people-profileurl-email-waterfall-v1-leadmagic":{provider:`leadmagic`,allowManagedConnection:!0,credits:{default:3.5},mode:`onSuccess`}},Up=class extends U{pipeId=Pp;payload;payloadSchema=Bp;billableOperations=Hp;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return this.payload.config?.providers.map(e=>e.provider)||[]}estimateBillableOperations(){return this.getProviderNames().map(e=>J(e,this.billableOperations).billableOperation)}getInputRequirement(){return Vp(this.payload.config)}getRawOutputFields(){return{[Lp.name]:this.catalogOutput(Lp,{isPrimaryOutput:!0})}}getConnectionsRequirements(){let e={leadmagic:`leadmagic_email_to_b2b_profile`};return(this.payload.config?.providers||[]).map((t,n)=>({provider:t.provider,rateLimitRatio:q(n),rateLimitOperation:e[t.provider],allowManagedConnection:!0}))}},Wp=Bp,Gp={pipeId:Pp,basePipe:W(Pp),managedProviders:Rp,deprecatedProviders:[],allowedUserConnectionProviders:Rp,label:`LinkedIn URL from email`,executionMode:`waterfall`,categories:[`deprecated`],lifecycle:{deprecatedOn:`2026-06-13`,replacedBy:`person:profileurl:email:waterfall@1`},description:`Find the URL for a prospect's LinkedIn profile from their personal or professional email address.`,tags:[B.LINKEDIN],docPath:G(Pp),billableOperations:Hp,inputFieldMode:`static`,outputFieldMode:`static`,defaultInputRequirement:Vp(null),defaultPayload:{pipe_id:Pp,run_if:null,connector:null,config:{providers:zp,input_fields:{email:{alias:``},work_email:{alias:``}},output_fields:{profile_url:{alias:``,enabled:!0}}}}},Kp=`people:validate:email:zerobounce@1`,qp=_(`work_email`),Jp=_(`ip_address`),Yp=_(`is_email_valid`),Xp=r.object({pipe_id:r.literal(Kp),connector:w(),run_if:S(),config:r.object({input_fields:z(r.object({[qp.name]:E({fieldName:qp.name}),[Jp.name]:E({fieldName:Jp.name})})),output_fields:R(r.object({[Yp.name]:k({fieldName:Yp.name})}))}).optional()}),Zp=e=>Ea(V(K(qp,e)),Da(K(Jp,e))),Qp={"people-validate-email-zerobounce-v1-zerobounce":{provider:`zerobounce`,allowManagedConnection:!0,credits:{default:.5},mode:`always`}},$p=class extends U{pipeId=Kp;payload;payloadSchema=Xp;billableOperations=Qp;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`zerobounce`]}estimateBillableOperations(){return[`people-validate-email-zerobounce-v1-zerobounce`]}getInputRequirement(){return Zp(this.payload.config)}getRawOutputFields(){return{[Yp.name]:this.catalogOutput(Yp)}}getConnectionsRequirements(){return[{provider:`zerobounce`,rateLimitRatio:1,rateLimitOperation:`zerobounce_generic`,allowManagedConnection:!0}]}},em=Xp,tm={pipeId:Kp,basePipe:W(Kp),label:`Validate email`,executionMode:`single`,categories:[`deprecated`],lifecycle:{deprecatedOn:`2026-06-13`,replacedBy:`people:email:validate:zerobounce@1`},description:`Verify email address against various factors, including syntax, domain, and server existence, to ensure it is deliverable and active.`,tags:[B.EMAIL],docPath:`/resources/pipe-catalog/people:validate:email:zerobounce/1`,billableOperations:Qp,inputFieldMode:`static`,outputFieldMode:`static`,allowedUserConnectionProviders:[`zerobounce`],managedProviders:[`zerobounce`],deprecatedProviders:[],defaultInputRequirement:Zp(null),defaultPayload:{pipe_id:Kp,connector:null,run_if:null,config:{input_fields:{ip_address:{alias:``},work_email:{alias:``}},output_fields:{is_email_valid:{alias:``,enabled:!0}}}}},nm=`people:workemail:profileurl:waterfall@1`,rm=_(`profile_url`),im=_(`work_email`),am=_(`email_validation_status`),om=[`hunter`,`amplemarket`,`findymail`,`leadmagic`,`crustdata`,`clado`],sm=[`clado`],cm=[{provider:`hunter`},{provider:`amplemarket`},{provider:`leadmagic`},{provider:`findymail`},{provider:`crustdata`}],lm=r.object({pipe_id:r.literal(nm),connector:w(),run_if:S(),config:r.object({providers:D({availableProviders:om,defaultProviders:cm,sectionKey:`general`}),allow_catch_all_emails:O({path:`config.allow_catch_all_emails`,defaultValue:!0,groupPath:`config.general`,sectionKey:`general`,info:``,label:`Allow catch-all emails`}),allow_risky_emails:O({path:`config.allow_risky_emails`,defaultValue:!0,groupPath:`config.general`,sectionKey:`general`,info:`Higher chance of bouncing or being marked as spam.`,label:`Allow risky emails`}),input_fields:z(r.object({[rm.name]:E({fieldName:rm.name})})),output_fields:R(r.object({[im.name]:k({fieldName:im.name}),[am.name]:k({fieldName:am.name})}))}).optional()}),um=e=>V(K(rm,e)),dm={"people-workemail-profileurl-waterfall-v1-hunter":{provider:`hunter`,allowManagedConnection:!0,credits:{default:1},mode:`onSuccess`},"people-workemail-profileurl-waterfall-v1-leadmagic":{provider:`leadmagic`,allowManagedConnection:!0,credits:{default:2},mode:`onSuccess`},"people-workemail-profileurl-waterfall-v1-findymail":{provider:`findymail`,allowManagedConnection:!0,credits:{default:2},mode:`onSuccess`},"people-workemail-profileurl-waterfall-v1-crustdata":{provider:`crustdata`,allowManagedConnection:!0,credits:{default:3},mode:`onSuccess`},"people-workemail-profileurl-waterfall-v1-clado":{provider:`clado`,allowManagedConnection:!0,credits:{default:3.5},mode:`onSuccess`},"people-workemail-profileurl-waterfall-v1-amplemarket":{provider:`amplemarket`,allowManagedConnection:!0,credits:{default:2.5},mode:`onSuccess`}},fm=class extends U{pipeId=nm;payload;payloadSchema=lm;billableOperations=dm;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return this.payload.config?.providers.map(e=>e.provider)||[]}estimateBillableOperations(){return this.getProviderNames().map(e=>J(e,this.billableOperations).billableOperation)}getInputRequirement(){return um(this.payload.config)}getRawOutputFields(){return{[im.name]:this.catalogOutput(im,{isPrimaryOutput:!0}),[am.name]:this.catalogOutput(am,{isPrimaryOutput:!1})}}getConnectionsRequirements(){let e={leadmagic:`leadmagic_email_b2b_lookup`,hunter:`prospeo_email_lookup`,amplemarket:`amplemarket-person-reveal`,findymail:`findymail_email_b2b_lookup`,crustdata:`crustdata_realtime_person_enrich`,clado:`clado_contact_information`};return(this.payload.config?.providers||[]).map((t,n)=>({provider:t.provider,rateLimitRatio:q(n),rateLimitOperation:e[t.provider],allowManagedConnection:!0}))}},pm=lm,mm={pipeId:nm,basePipe:W(nm),label:`Work email from LinkedIn URL`,executionMode:`waterfall`,categories:[`deprecated`],lifecycle:{deprecatedOn:`2026-06-13`,replacedBy:`person:workemail:profileurl:waterfall@1`},description:`Find work email addresses from B2B profile.`,tags:[B.EMAIL,B.WORK_EMAIL,B.WATERFALL],docPath:G(nm),managedProviders:om,allowedUserConnectionProviders:om,deprecatedProviders:sm,inputFieldMode:`static`,outputFieldMode:`static`,billableOperations:dm,defaultInputRequirement:um(null),defaultPayload:{pipe_id:nm,connector:null,run_if:null,config:{providers:cm,allow_catch_all_emails:!0,allow_risky_emails:!0,input_fields:{profile_url:{alias:``}},output_fields:{work_email:{alias:``,enabled:!0},email_validation_status:{alias:``,enabled:!0}}}}},hm=`people:workemail:waterfall@1`,gm=_(`name`),_m=_(`company_website_url`),vm=_(`company_name`),ym=_(`work_email`),bm=_(`email_validation_status`),xm=[`leadmagic`,`prospeo`,`amplemarket`,`hunter`,`icypeas`,`findymail`],Sm=[{provider:`leadmagic`},{provider:`prospeo`},{provider:`amplemarket`},{provider:`hunter`},{provider:`icypeas`},{provider:`findymail`}],Cm=r.object({pipe_id:r.literal(hm),connector:w(),run_if:S(),config:r.object({providers:D({availableProviders:xm,defaultProviders:Sm,sectionKey:`general`}),allow_catch_all_emails:O({path:`config.allow_catch_all_emails`,defaultValue:!0,groupPath:`config.general`,sectionKey:`general`,description:`Catch-alls appear valid but remain undeliverable-risk.`,label:`Allow catch-all emails`}),allow_risky_emails:O({path:`config.allow_risky_emails`,defaultValue:!0,groupPath:`config.general`,sectionKey:`general`,description:`DNS configuration and spam reputation may flag emails as high-risk.`,label:`Allow risky emails`}),input_fields:z(r.object({[gm.name]:E({fieldName:gm.name}),[_m.name]:E({fieldName:_m.name}),[vm.name]:E({fieldName:vm.name})})),output_fields:R(r.object({[ym.name]:k({fieldName:ym.name}),[bm.name]:k({fieldName:bm.name})}))}).optional()}),wm=e=>Ea(V(K(gm,e)),H(K(_m,e),K(vm,e))),Tm={"people-workemail-waterfall-v1-leadmagic":{provider:`leadmagic`,allowManagedConnection:!0,credits:{default:.5},mode:`onSuccess`},"people-workemail-waterfall-v1-icypeas":{provider:`icypeas`,allowManagedConnection:!0,credits:{default:.5},mode:`onSuccess`},"people-workemail-waterfall-v1-prospeo":{provider:`prospeo`,allowManagedConnection:!0,credits:{default:1,level1:{credits:.5,weight:1}},mode:`onSuccess`},"people-workemail-waterfall-v1-findymail":{provider:`findymail`,allowManagedConnection:!0,credits:{default:1},mode:`onSuccess`},"people-workemail-waterfall-v1-hunter":{provider:`hunter`,allowManagedConnection:!0,credits:{default:1},mode:`onSuccess`},"people-workemail-waterfall-v1-amplemarket":{provider:`amplemarket`,allowManagedConnection:!0,credits:{default:2.5},mode:`onSuccess`}},Em=class extends U{pipeId=hm;payload;payloadSchema=Cm;billableOperations=Tm;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return this.payload.config?.providers.map(e=>e.provider)||[]}estimateBillableOperations(){return this.getProviderNames().map(e=>J(e,this.billableOperations).billableOperation)}getInputRequirement(){return wm(this.payload.config)}getRawOutputFields(){return{[ym.name]:this.catalogOutput(ym,{isPrimaryOutput:!0}),[bm.name]:this.catalogOutput(bm,{isPrimaryOutput:!0})}}getConnectionsRequirements(){let e={leadmagic:`leadmagic_email_lookup`,prospeo:`prospeo_email_lookup`,icypeas:`icypeas_email_lookup`,findymail:`findymail_email_lookup`,hunter:`hunter_email_finder`,amplemarket:`amplemarket-person-reveal`};return(this.payload.config?.providers||[]).map((t,n)=>({provider:t.provider,rateLimitRatio:q(n),rateLimitOperation:e[t.provider],allowManagedConnection:!0}))}},Dm=Cm,Om={pipeId:hm,basePipe:W(hm),label:`Work email from name`,executionMode:`waterfall`,categories:[`deprecated`],lifecycle:{deprecatedOn:`2026-06-13`,replacedBy:`person:workemail:waterfall@1`},description:`Find work email addresses in a waterfall motion.`,tags:[B.EMAIL,B.WORK_EMAIL,B.WATERFALL],docPath:G(hm),managedProviders:xm,deprecatedProviders:[],allowedUserConnectionProviders:xm,inputFieldMode:`static`,outputFieldMode:`static`,billableOperations:Tm,defaultInputRequirement:wm(null),defaultPayload:{pipe_id:hm,connector:null,run_if:null,config:{providers:Sm,allow_catch_all_emails:!0,allow_risky_emails:!0,input_fields:{company_name:{alias:``},company_website_url:{alias:``},name:{alias:``}},output_fields:{work_email:{alias:``,enabled:!0},email_validation_status:{alias:``,enabled:!1}}}}},km=`email:iswork@1`,Am=_(`is_work_email`),jm=_(`email`),Mm=r.object({pipe_id:r.literal(km),run_if:S(),connector:T(),config:r.object({input_fields:z(r.object({[jm.name]:E({fieldName:jm.name})})),output_fields:R(r.object({[Am.name]:k({fieldName:Am.name})}))}).optional()}),Nm=e=>V(K(jm,e)),Pm={"email-iswork-v1-pipe0":{provider:`pipe0`,allowManagedConnection:!0,credits:{default:0},mode:`always`}},Fm=class extends U{pipeId=km;payload;payloadSchema=Mm;billableOperations=Pm;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[`email-iswork-v1-pipe0`]}getInputRequirement(){return Nm(this.payload.config)}getRawOutputFields(){return{[Am.name]:this.catalogOutput(Am)}}getConnectionsRequirements(){return[{provider:`pipe0`,rateLimitRatio:1,rateLimitOperation:`pipe0_logic`,allowManagedConnection:!0}]}},Im=Mm,Lm={pipeId:km,label:`Work email checker`,executionMode:`single`,categories:[`people_data`],lifecycle:null,description:`Check if a given email address is personal or professional.`,tags:[B.EMAIL,B.WORK_EMAIL],docPath:G(km),billableOperations:Pm,basePipe:W(km),allowedUserConnectionProviders:[],inputFieldMode:`static`,outputFieldMode:`static`,managedProviders:[`pipe0`],deprecatedProviders:[],defaultInputRequirement:Nm(null),defaultPayload:{pipe_id:km,run_if:null,connector:null,config:{input_fields:{email:{alias:``}},output_fields:{is_work_email:{alias:``,enabled:!0}}}}};function Rm(e,t){return typeof t==`string`?t:t(e)}function zm(e,t){return typeof t==`string`||t===null?t:t(e)}function Bm(e,t){let n={};for(let r of t){let t=!1;for(let i of e.pipes){let a=i.getOutputFields();if(a[r]){n[r]??={type:Rm(e,a[r].type),format:zm(e,a[r].format)},t=!0;break}}if(t)continue;let i=e.derivedInputFields[r];i&&(n[r]??={type:i.type,format:null})}return n}function Vm(e,t){for(let n of e.pipes){let r=n.getOutputFields();if(r[t])return{type:Rm(e,r[t].type),format:zm(e,r[t].format)}}let n=e.derivedInputFields[t];if(n)return{type:n.type,format:null}}function Hm(e,t={}){let n=t.expectedType??`string`,r=t.expectedFormat??`text`,i=new Map;for(let t of e){if(!t)continue;let e;try{e=jr(t)}catch{continue}for(let[t,n]of Object.entries(e.inputs)){let e=i.get(t);i.set(t,{required:e&&e.required||n.required})}}let a=[];for(let[e,t]of i){let i={name:e,resolvedName:e,label:e,description:``,type:t=>Vm(t,e)?.type||n,format:r};a.push(t.required?V(i):Da(i))}return Ea(...a)}function Y(e){let t=new Set;for(let n of e)if(n)try{let e=jr(n);for(let n of e.secrets)t.add(n)}catch{}return[...t]}function X(e){let t=new Set;for(let n of e)if(n)try{let e=jr(n);for(let n of e.constants)t.add(n)}catch{}return[...t]}const Um=`email:send:gmail@1`,Wm=_(`gmail_email_success`),Gm=r.object({pipe_id:r.literal(Um),connector:Gi(),run_if:S(),config:r.object({to:C({sectionKey:`general`,groupPath:`config.general`,path:`config.to`,label:`To`,info:"Recipient address. Type `@` to insert a field reference or `$` to insert a secret reference.",placeholder:`{{ email }}`,inputType:`email`,minLength:1,maxLength:320,expectedTagType:`string`,expectedTagFormat:`email`}),reply_to:C({sectionKey:`general`,groupPath:`config.general`,path:`config.reply_to`,label:`Reply-To`,info:"Optional address recipients can reply to. Type `@` to insert a field reference or `$` to insert a secret reference.",placeholder:`support@example.com`,inputType:`email`,maxLength:320,expectedTagType:`string`,expectedTagFormat:`email`}),subject:C({sectionKey:`general`,groupPath:`config.general`,path:`config.subject`,label:`Subject`,info:"Email subject line. Type `@` to insert a field reference or `$` to insert a secret reference.",placeholder:`Hi {{ first_name }}`,inputType:`text`,minLength:1,maxLength:998,expectedTagType:`string`,expectedTagFormat:`text`}),body:C({sectionKey:`general`,groupPath:`config.general`,path:`config.body`,label:`Body`,info:"Email body in markdown. Type `@` to insert a field reference or `$` to insert a secret reference.",placeholder:`Hi {{ first_name }},
|
|
68
68
|
|
|
69
69
|
โฆ`,inputType:`text`,minLength:1,maxLength:1e6,expectedTagType:`string`,expectedTagFormat:`markdown`,multiline:!0}),output_fields:R(r.object({[Wm.name]:k({fieldName:Wm.name})}))})}),Km={"email-send-gmail-v1-gmail":{allowManagedConnection:!1,provider:`gmail`,credits:null,mode:null}},qm=class extends U{pipeId=Um;payload;payloadSchema=Gm;billableOperations=Km;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`gmail`]}estimateBillableOperations(){return[`email-send-gmail-v1-gmail`]}getTemplatedFields(){return[this.payload.config.to,this.payload.config.reply_to,this.payload.config.subject,this.payload.config.body]}getInputRequirement(){return Hm(this.getTemplatedFields())}getSecretRequirements(){return Y(this.getTemplatedFields())}getConstantRequirements(){return X(this.getTemplatedFields())}getRawOutputFields(){return{[Wm.name]:this.catalogOutput(Wm)}}getConnectionsRequirements(){return[{provider:`gmail`,rateLimitRatio:1,rateLimitOperation:`gmail_send_email`,allowManagedConnection:!1}]}},Jm=Gm,Ym={pipeId:Um,basePipe:W(Um),label:`Send email`,executionMode:`single`,categories:[`actions`],lifecycle:null,description:`Send an email with Gmail.`,detailed_description:"Send an email via Gmail. To, Reply-To, Subject and Body are templated config fields โ reference upstream fields with `{{ field_name }}` and stored secrets with `{{ SECRETS.KEY }}`. Requires a Gmail vault connection (call list_connections to find one).",tags:[B.EMAIL],docPath:G(Um),billableOperations:Km,inputFieldMode:`config`,outputFieldMode:`static`,allowedUserConnectionProviders:[`gmail`],defaultInputRequirement:null,managedProviders:[],deprecatedProviders:[],defaultPayload:{pipe_id:Um,connector:{strategy:`first`,connections:[]},run_if:null,config:{to:``,reply_to:``,subject:``,body:``,output_fields:{gmail_email_success:{alias:``,enabled:!0}}}}},Xm=`email:send:resend@1`,Zm=_(`resend_email_success`),Qm=r.object({pipe_id:r.literal(Xm),connector:Gi(),run_if:S(),config:r.object({from:C({sectionKey:`general`,groupPath:`config.general`,path:`config.from`,label:`From`,info:"Sender address. Type `@` to insert a field reference or `$` to insert a secret reference.",placeholder:`noreply@example.com`,inputType:`email`,minLength:3,maxLength:320,expectedTagType:`string`,expectedTagFormat:`email`}),to:C({sectionKey:`general`,groupPath:`config.general`,path:`config.to`,label:`To`,info:"Recipient address. Type `@` to insert a field reference or `$` to insert a secret reference.",placeholder:`{{ email }}`,inputType:`email`,minLength:1,maxLength:320,expectedTagType:`string`,expectedTagFormat:`email`}),reply_to:C({sectionKey:`general`,groupPath:`config.general`,path:`config.reply_to`,label:`Reply-To`,info:"Optional address recipients can reply to. Type `@` to insert a field reference or `$` to insert a secret reference.",placeholder:`support@example.com`,inputType:`email`,maxLength:320,expectedTagType:`string`,expectedTagFormat:`email`}),subject:C({sectionKey:`general`,groupPath:`config.general`,path:`config.subject`,label:`Subject`,info:"Email subject line. Type `@` to insert a field reference or `$` to insert a secret reference.",placeholder:`Hi {{ first_name }}`,inputType:`text`,minLength:1,maxLength:998,expectedTagType:`string`,expectedTagFormat:`text`}),body:C({sectionKey:`general`,groupPath:`config.general`,path:`config.body`,label:`Body`,info:"Email body in markdown. Type `@` to insert a field reference or `$` to insert a secret reference.",placeholder:`Hi {{ first_name }},
|
|
70
70
|
|
|
71
|
-
โฆ`,inputType:`text`,minLength:1,maxLength:1e6,expectedTagType:`string`,expectedTagFormat:`markdown`,multiline:!0}),output_fields:R(r.object({[Zm.name]:k({fieldName:Zm.name})}))})}),$m={"email-send-resend-v1-resend":{allowManagedConnection:!1,provider:`resend`,credits:null,mode:null}},eh=class extends U{pipeId=Xm;payload;payloadSchema=Qm;billableOperations=$m;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`resend`]}estimateBillableOperations(){return[`email-send-resend-v1-resend`]}getTemplatedFields(){return[this.payload.config.from,this.payload.config.to,this.payload.config.reply_to,this.payload.config.subject,this.payload.config.body]}getInputRequirement(){return Hm(this.getTemplatedFields())}getSecretRequirements(){return Y(this.getTemplatedFields())}getConstantRequirements(){return X(this.getTemplatedFields())}getRawOutputFields(){return{[Zm.name]:this.catalogOutput(Zm)}}getConnectionsRequirements(){return[{provider:`resend`,rateLimitRatio:1,rateLimitOperation:`resend_generic`,allowManagedConnection:!1}]}},th=Qm,nh={pipeId:Xm,basePipe:W(Xm),label:`Send email with Resend`,executionMode:`single`,categories:[`actions`],lifecycle:null,description:`Send an email with Resend.`,detailed_description:"Send an email via Resend. From, To, Reply-To, Subject and Body are templated config fields โ reference upstream fields with `{{ field_name }}` and stored secrets with `{{ SECRETS.KEY }}`. Requires a Resend vault connection (call list_connections to find one).",tags:[B.EMAIL],docPath:G(Xm),billableOperations:$m,inputFieldMode:`config`,outputFieldMode:`static`,allowedUserConnectionProviders:[`resend`],defaultInputRequirement:null,managedProviders:[],deprecatedProviders:[],defaultPayload:{pipe_id:Xm,connector:{strategy:`first`,connections:[]},run_if:null,config:{from:``,to:``,reply_to:``,subject:``,body:``,output_fields:{resend_email_success:{alias:``,enabled:!0}}}}},rh=`email:validate:zerobounce@1`,ih=_(`email`),ah=_(`zerobounce_validation_status`),oh=_(`zerobounce_validation_match`),sh=r.object({pipe_id:r.literal(rh),connector:w(),run_if:S(),config:r.object({input_fields:z(r.object({[ih.name]:E({fieldName:ih.name})})),output_fields:R(r.object({[oh.name]:k({fieldName:oh.name}),[ah.name]:k({fieldName:ah.name})}))}).optional()}),ch=e=>V(K(ih,e)),lh={"email-validate-zerobounce-v1-zerobounce":{provider:`zerobounce`,allowManagedConnection:!0,credits:{default:.4,level1:{credits:.3,weight:1},level2:{credits:.15,weight:2}},mode:`always`}},uh=class extends U{pipeId=rh;payload;payloadSchema=sh;billableOperations=lh;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`zerobounce`]}estimateBillableOperations(){return[`email-validate-zerobounce-v1-zerobounce`]}getInputRequirement(){return ch(this.payload.config)}getRawOutputFields(){return{[ah.name]:this.catalogOutput(ah),[oh.name]:this.catalogOutput(oh)}}getConnectionsRequirements(){return[{provider:`zerobounce`,rateLimitRatio:1,rateLimitOperation:`zerobounce_generic`,allowManagedConnection:!0}]}},dh=sh,fh={pipeId:rh,basePipe:W(rh),label:`Validate email`,executionMode:`single`,categories:[`people_data`],lifecycle:null,description:`Verify email address against various factors, including syntax, domain, and server existence, to ensure it is deliverable and active.`,tags:[B.EMAIL],docPath:G(rh),billableOperations:lh,inputFieldMode:`static`,outputFieldMode:`static`,allowedUserConnectionProviders:[`zerobounce`],managedProviders:[`zerobounce`],deprecatedProviders:[],defaultInputRequirement:ch(null),defaultPayload:{pipe_id:rh,connector:null,run_if:null,config:{input_fields:{email:{alias:``}},output_fields:{zerobounce_validation_status:{alias:``,enabled:!0},zerobounce_validation_match:{alias:``,enabled:!0}}}}},ph={title:`Software Engineer, CEO, ...`,seniority:`C-Suite, Senior, ...`,department:`Consulting, Finance, ...`,certification:`CISSP, AWS, ...`,crunchbase_category:`3D Printing, Big Date, ...`,honor:`Cum Laude, 40 Under 40, ...`,field_of_study:`Engineering, Computer Science, ...`,degree_name:`Bachelor of Science, ...`,extracurricular:`Athelete, Debate Team, ...`,job_function:`Accounting, Advertising, ...`,location:`USA, Germany, France, ...`,company_name:`Google, Anthropic, ...`,company_domain:`google.com, openai.com, ...`,company_profile_keyword:`B2B, Software, ...`,headline_keywords:`Founder, JavaScript, ...`,profile_keywords:`Coach, Scrum, ...`,languages:`German, English, ...`,languages_1:`Spanish, Italian, ...`,skills:`TypeScript, Playwright, ...`,industry:`IT, Agriculture, ...`,investor:`a16z, Inside Partners, ...`,school:`MIT, Harvard, ...`,prompt:`Enter prompt here...`,template:`Enter template here...`};function Z(e){return ph[e]}const mh=`email:write@1`,hh=`email-write-v1`,gh=ti(hh),_h=_(`email_subject`),vh=_(`email_body`),yh=r.object({pipe_id:r.literal(mh),connector:w(),run_if:S(),config:r.object({template:Ui({sectionKey:`general`,label:`Prompt`,path:`config.template`,placeholder:Z(`prompt`),groupPath:`config.prompt`,required:!0}),model:oa({sectionKey:`general`,label:`Model`,path:`config.model`,groupPath:`config.prompt`,billableOperations:gh}),signature:ia({sectionKey:`general`,label:`Signature (Markdown)`,path:`config.signature`,groupPath:`config.email`,minLength:5,rows:10}),persona:aa({sectionKey:`general`,label:`Persona`,info:`Define the unique tone of your email`,path:`config.persona`,groupPath:`config.prompt`,required:!1,options:[{label:`Sales`,value:`sales`},{label:`Human Resources`,value:`human_resources`},{label:`Customer Success`,value:`customer_success`}]}),output_fields:R(r.object({[_h.name]:k({fieldName:_h.name}),[vh.name]:k({fieldName:vh.name})}))})}),bh=class extends U{pipeId=mh;payload;payloadSchema=yh;billableOperations=gh;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return ri(this.payload.config.model)}estimateBillableOperations(){return[ni(this.payload.config.model,hh)]}getInputRequirement(){return Hm([this.payload.config.template])}getSecretRequirements(){return Y([this.payload.config.template])}getConstantRequirements(){return X([this.payload.config.template])}getRawOutputFields(){return{[_h.name]:this.catalogOutput(_h),[vh.name]:this.catalogOutput(vh)}}getConnectionsRequirements(){return ii(this.payload.config.model)}},xh=yh,Sh={pipeId:mh,inputFieldMode:`config`,outputFieldMode:`static`,basePipe:W(mh),label:`Email writer`,executionMode:`single`,categories:[`tools`],lifecycle:null,description:`An AI agent specialized in composing emails.`,detailed_description:`AI email composer. Outputs: email_subject, email_body. Pair with email:send:gmail@1 or email:send:resend@1 to send the composed email. Requires 'email' field in input records for the sender pipe.`,tags:[B.AI],docPath:G(mh),defaultInputRequirement:null,billableOperations:gh,allowedUserConnectionProviders:ai(),managedProviders:ai(),deprecatedProviders:[],defaultPayload:{pipe_id:mh,connector:null,run_if:null,config:{template:``,output_fields:{email_body:{alias:``,enabled:!0},email_subject:{alias:``,enabled:!0}},persona:`sales`,model:`openai-gpt-latest`,signature:``}}},Ch=`field:domainify@1`,wh=_(`url_input`),Th=_(`domain`),Eh=r.object({pipe_id:r.literal(Ch),run_if:S(),connector:T(),config:r.object({input_fields:z(r.object({[wh.name]:E({fieldName:wh.name})})),output_fields:R(r.object({[Th.name]:k({fieldName:Th.name})}))}).optional()}),Dh=e=>V(K(wh,e)),Oh={"field-domainify-v1-pipe0":{provider:`pipe0`,allowManagedConnection:!0,credits:{default:0},mode:`always`}},kh=class extends U{pipeId=Ch;payload;payloadSchema=Eh;billableOperations=Oh;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[]}getInputRequirement(){return Dh(this.payload.config)}getRawOutputFields(){return{[Th.name]:this.catalogOutput(Th)}}getConnectionsRequirements(){return[{provider:`pipe0`,rateLimitRatio:1,rateLimitOperation:`pipe0_logic`,allowManagedConnection:!0}]}},Ah=Eh,jh={pipeId:Ch,basePipe:W(Ch),label:`Extract domain`,executionMode:`single`,categories:[`tools`],lifecycle:null,description:`Transform URL input into a domain. Example: 'https://go.com' to 'go.com'.`,tags:[B.LOGIC,B.FIELDS],docPath:G(Ch),billableOperations:Oh,defaultInputRequirement:Dh(null),inputFieldMode:`static`,outputFieldMode:`static`,allowedUserConnectionProviders:[],managedProviders:[`pipe0`],deprecatedProviders:[],defaultPayload:{pipe_id:Ch,run_if:null,connector:null,config:{input_fields:{url_input:{alias:``}},output_fields:{domain:{alias:``,enabled:!0}}}}},Mh=`field:slugify@1`,Nh=_(`string_input`),Ph=_(`slugified`),Fh=r.object({pipe_id:r.literal(Mh),run_if:S(),connector:T(),config:r.object({input_fields:z(r.object({[Nh.name]:E({fieldName:Nh.name})})),output_fields:R(r.object({[Ph.name]:k({fieldName:Ph.name})}))}).optional()}),Ih=e=>V(K(Nh,e)),Lh={"field-slugify-v1-pipe0":{provider:`pipe0`,allowManagedConnection:!0,credits:{default:0},mode:`always`}},Rh=class extends U{pipeId=Mh;payload;payloadSchema=Fh;billableOperations=Lh;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[]}getInputRequirement(){return Ih(this.payload.config)}getRawOutputFields(){return{[Ph.name]:this.catalogOutput(Ph)}}getConnectionsRequirements(){return[{provider:`pipe0`,rateLimitRatio:1,rateLimitOperation:`pipe0_logic`,allowManagedConnection:!0}]}},zh=Fh,Bh={pipeId:Mh,basePipe:W(Mh),label:`Slugify field`,executionMode:`single`,categories:[`tools`],lifecycle:null,description:`Strip a field value of characters not commonly found in slugs.`,tags:[B.LOGIC,B.FIELDS],docPath:G(Mh),billableOperations:Lh,defaultInputRequirement:Ih(null),inputFieldMode:`static`,outputFieldMode:`static`,allowedUserConnectionProviders:[],managedProviders:[`pipe0`],deprecatedProviders:[],defaultPayload:{pipe_id:Mh,run_if:null,connector:null,config:{input_fields:{string_input:{alias:``}},output_fields:{slugified:{alias:``,enabled:!0}}}}};function Vh({name:e,resolvedName:t}){return e===t?`'${e}'`:`'${e}' (resolved to '${t}')`}function Hh(e){switch(e.kind){case`field`:return Vh(e.field);case`optional`:return`[optional ${Vh(e.field)}]`;case`all`:return e.of.length===0?`(none)`:e.of.length===1?Hh(e.of[0]):`(${e.of.map(Hh).join(` AND `)})`;case`any`:return e.of.length===0?`(none)`:e.of.length===1?Hh(e.of[0]):`(${e.of.map(Hh).join(` OR `)})`}}function Uh(e){return`Pipe input requirement is not satisfied: ${Hh(e)}. Map missing fields to existing ones, add a pipe that outputs them, or include them in your inputs.`}var Wh=class extends Error{constructor(e){super(`Request validation failed (${e.length} errors): ${e.join(`, `)}`),this.errors=e,this.name=`RequestValidationError`,Object.setPrototypeOf(this,new.target.prototype)}};const Q={ConditionTargetFieldNotFound:({fieldName:e,pipeId:t,pipeIdx:n})=>({code:`ConditionTargetFieldNotFound`,message:`${t} (idx: ${n}) has an invalid condition. Field '${e}' not found.`}),FaultyEnrichmentOrder:()=>({code:`FaultyEnrichmentOrder`,message:`Enrichment not found while ordering. Was the request invalid?`}),MustDefineAnnotations:()=>({code:`MustDefineAnnotations`,message:`Must define either input or field annoations to validate pipes payload.`}),CircularDependency:({currentPipe:e,circularPipe:t})=>({code:`CircularDependency`,message:`'${e.pipe_id}' (${e.idx}) and '${t.pipeId}' (${t.idx}) create a dependency loop. They both need the other's output to complete. Neither can complete. You can map the pipe outputs or input to fields with different names if you want the pipes to be independent or each other.`}),ValidationFailed:({error:e})=>({code:`ValidationFailed`,message:`Failed to validate task request: ${e instanceof Error?e.message:String(e)}`}),MissingCustomConnections:({pipeId:e,index:t,missingProviders:n})=>({code:`MissingCustomConnections`,message:`Pipe ${e} (index ${t}) requires you to specify custom connections for the providers ${n.join(`, `)}. Create the custom connections in the dashbard and reference them in your request.`}),ResponseGenerationFailed:({error:e})=>({code:`ResponseGenerationFailed`,message:`Failed to generate response: ${e instanceof Error?e.message:String(e)}`}),InputValuesMustHaveSameType:({pipeId:e,fieldNames:t})=>({code:`InputValuesMustHaveSameType`,message:`Pipe ${e} requires all input values to have the same type. But values ${t.join(`, `)} have different types.`}),NotValidated:()=>({code:`NotValidated`,message:`PipelineRequest must be validated before accessing results`}),MissingIdInInput:()=>({code:`MissingIdInInput`,message:`Inputs missing 'id' property.`}),InputDataTypeMismatch:({key:e,derivedInputFieldType:t,fieldType:n})=>({code:`InputDataTypeMismatch`,message:`Input data has values with matching keys '${e}' but different types. Expected type: '${t}'. Actual: '${n}'.`}),UnresolvableDependency:({index:e,dependencyIndex:t})=>({code:`UnresolvableDependency`,message:`Unresolvable dependency at index ${e} to ${t}`}),RequirementUnmet:({requirement:e})=>({code:`RequirementUnmet`,message:Uh(e)}),HardInputDependencyViolation:({index:e,indexPipeId:t,dependencyIndex:n,dependencyIndexPipeId:r})=>({code:`HardInputDependencyViolation`,message:`Dependency violation: pipe at idx: ${e} (${t}) must come after pipe at idx: ${n} (${r})`}),HardConditionDependencyViolation:({index:e,indexPipeId:t,dependencyIndex:n,dependencyIndexPipeId:r})=>({code:`HardConditionDependencyViolation`,message:`Dependency violation: pipe at idx: ${e} (${t}) has a condition that points to pipe at idx: ${n} (${r}). But pipe index: ${e} (${t}) is always must be processed after pipe at index ${n} (${r}). This is due to input requirements or other conditions.`}),DuplicateInitialField:({name:e})=>({code:`DuplicateInitialField`,message:`Duplicate initial field '${e}' detected. Each field must be defined only once.`}),MissingInputId:({index:e})=>({code:`MissingInputId`,message:`Input record at index ${e} is missing a required ID field.`}),InvalidId:()=>({code:`InvalidId`,message:`Cell IDs must be numbers or strings`}),IDConflict:({index:e,id:t})=>({code:`IDConflict`,message:`Input data at index ${e} has Id conflict. Id '${t}' is not unique.`}),UnknownResolver:({pipeId:e,index:t})=>({code:`UnknownResolver`,message:`Unknown pipe '${e}' specified at position ${t}.`}),DuplicatePipeOutput:({pipeId:e,outputField:t})=>({code:`DuplicateEnrichmentOutput`,message:`Field conflict for '${e}'. Cannot add output field ${Vh(t)} to pipeline because it already exists. Try renaming it.`}),InputDataDoesNotMatchOutputField:({index:e,resolvedName:t,type:n,inputValueType:r})=>({code:`InputDataDoesNotMatchOutputField`,message:`Input at position ${e} provided data for field '${t}' that did not match expected type. Expected: '${n}', Actual: '${r}'.`}),AmbiguousDependency:({fieldName:e})=>({code:`AmbiguousDependency`,message:`Found more than one pipe that produces field: ${e}. Rename or disable the field to add it.`}),EmptyObjectProperty:()=>({code:`EmptyObjectProperty`,message:`Input data contains empty object property "". This is not allowed.`}),JSONSchemaMissing:({schemaRef:e,outputName:t})=>({code:`JSONSchemaMissing`,message:`Missing jsonSchema '${e}' for output with name '${t}'.`}),InvalidJSONSchema:({schemaRef:e})=>({code:`InvalidJSONSchema`,message:`JSON Schema (ref: ${e}) is invalid.`}),MissingOutputFieldDescription:({outputName:e})=>({code:`MissingOutputFieldDescription`,message:`The output field ${e} is missing a "description" property. Define it {{ ${e} description="Foo bar" }}`}),InvalidFormatTag:({outputName:e,format:t})=>({code:`InvalidFormatTag`,message:`The output field ${e} has an invalid format tag ${t}.`}),RecursiveExpandedValue:()=>({code:`RecursiveExpandedValue`,message:`Your input values contain a recursive expanded valuetype `})};var Gh=class extends Error{},$=class extends Gh{codes;appErrors;constructor(e){super(e.map(e=>e.message).join(`, `)||`Unknown`),this.errors=e,this.codes=e.map(e=>e.code),this.appErrors=e}};const Kh=`fields:merge@1`,qh=_(`merge_result`),Jh=r.object({pipe_id:r.literal(Kh),connector:T(),run_if:S(),config:r.object({sources:qi({sectionKey:`general`,groupPath:`config.general`,path:`config.sources`,info:`Provide references to input fields`,minItems:2}),output_fields:R(r.object({[qh.name]:k({fieldName:qh.name})}))})}),Yh={"fields-merge-v1-pipe0":{credits:{default:0},allowManagedConnection:!0,provider:`pipe0`,mode:`always`}},Xh=class extends U{pipeId=Kh;payload;payloadSchema=Jh;billableOperations=Yh;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[`fields-merge-v1-pipe0`]}getInputRequirement(){let e=this.payload.config.sources.map(e=>e.field_name),t;return H(...this.payload.config.sources.map(n=>V({format:null,type:r=>{let i=Bm(r,e)[n.field_name],a=i?.type?i.type:`unknown`;if(a!==`unknown`){if(t&&t!==a)throw new $([Q.InputValuesMustHaveSameType({pipeId:this.pipeId,fieldNames:e})]);t=a}return i?.type?i.type:`unknown`},label:``,description:``,name:n.field_name,resolvedName:n.field_name})))}getRawOutputFields(){return{[qh.name]:this.catalogOutput(qh,{resolveType:e=>{let t=Bm(e,this.payload.config.sources.map(e=>e.field_name));return Object.values(t).find(e=>!!e.type)?.type||`string`}})}}getConnectionsRequirements(){return[{provider:`pipe0`,rateLimitRatio:1,rateLimitOperation:`pipe0_logic`,allowManagedConnection:!0}]}},Zh=Jh,Qh={pipeId:Kh,inputFieldMode:`config`,outputFieldMode:`static`,basePipe:W(Kh),label:`Merge fields`,executionMode:`single`,categories:[`tools`],lifecycle:null,description:`Join multiple fields into one field. The final result will be the first defined field.`,tags:[B.FIELDS,B.LOGIC],docPath:G(Kh),defaultInputRequirement:null,billableOperations:Yh,allowedUserConnectionProviders:[],managedProviders:[`pipe0`],deprecatedProviders:[],defaultPayload:{pipe_id:Kh,connector:null,run_if:null,config:{sources:[],output_fields:{merge_result:{alias:``,enabled:!0}}}}},$h=`http:request@1`,eg=_(`http_response_status`),tg=_(`http_response_body`),ng=_(`http_response_headers`),rg=r.object({pipe_id:r.literal($h),connector:T(),run_if:S(),config:r.object({method:aa({sectionKey:`general`,groupPath:`config.general`,path:`config.method`,label:`Method`,defaultValue:`GET`,options:[...[{value:`GET`,label:`GET`},{value:`POST`,label:`POST`},{value:`PUT`,label:`PUT`},{value:`PATCH`,label:`PATCH`},{value:`DELETE`,label:`DELETE`}]],required:!0}),url:C({sectionKey:`general`,groupPath:`config.general`,path:`config.url`,label:`Endpoint`,info:"Target URL. Only http/https. Type `@` to insert a field reference or `$` to insert a secret reference.",placeholder:`https://api.example.com/v1/things`,inputType:`text`,minLength:1,maxLength:2048,expectedTagType:`string`,expectedTagFormat:`text`}),query_params:Qi({sectionKey:`general`,groupPath:`config.general`,path:`config.query_params`,label:`Query parameters`,info:"Appended to the URL. Type `@` to insert a field reference or `$` to insert a secret reference in either column.",keyLabel:`Key`,valueLabel:`Value`,keyPlaceholder:`page`,valuePlaceholder:`1`,maxItems:50}),body:C({sectionKey:`general`,groupPath:`config.general`,path:`config.body`,label:`Body`,info:"Sent verbatim as the request body. Type `@` to insert a field reference or `$` to insert a secret reference. Set Content-Type via Headers.",placeholder:`{
|
|
71
|
+
โฆ`,inputType:`text`,minLength:1,maxLength:1e6,expectedTagType:`string`,expectedTagFormat:`markdown`,multiline:!0}),output_fields:R(r.object({[Zm.name]:k({fieldName:Zm.name})}))})}),$m={"email-send-resend-v1-resend":{allowManagedConnection:!1,provider:`resend`,credits:null,mode:null}},eh=class extends U{pipeId=Xm;payload;payloadSchema=Qm;billableOperations=$m;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`resend`]}estimateBillableOperations(){return[`email-send-resend-v1-resend`]}getTemplatedFields(){return[this.payload.config.from,this.payload.config.to,this.payload.config.reply_to,this.payload.config.subject,this.payload.config.body]}getInputRequirement(){return Hm(this.getTemplatedFields())}getSecretRequirements(){return Y(this.getTemplatedFields())}getConstantRequirements(){return X(this.getTemplatedFields())}getRawOutputFields(){return{[Zm.name]:this.catalogOutput(Zm)}}getConnectionsRequirements(){return[{provider:`resend`,rateLimitRatio:1,rateLimitOperation:`resend_generic`,allowManagedConnection:!1}]}},th=Qm,nh={pipeId:Xm,basePipe:W(Xm),label:`Send email with Resend`,executionMode:`single`,categories:[`actions`],lifecycle:null,description:`Send an email with Resend.`,detailed_description:"Send an email via Resend. From, To, Reply-To, Subject and Body are templated config fields โ reference upstream fields with `{{ field_name }}` and stored secrets with `{{ SECRETS.KEY }}`. Requires a Resend vault connection (call list_connections to find one).",tags:[B.EMAIL],docPath:G(Xm),billableOperations:$m,inputFieldMode:`config`,outputFieldMode:`static`,allowedUserConnectionProviders:[`resend`],defaultInputRequirement:null,managedProviders:[],deprecatedProviders:[],defaultPayload:{pipe_id:Xm,connector:{strategy:`first`,connections:[]},run_if:null,config:{from:``,to:``,reply_to:``,subject:``,body:``,output_fields:{resend_email_success:{alias:``,enabled:!0}}}}},rh=`email:validate:zerobounce@1`,ih=_(`email`),ah=_(`zerobounce_validation_status`),oh=_(`zerobounce_validation_match`),sh=r.object({pipe_id:r.literal(rh),connector:w(),run_if:S(),config:r.object({input_fields:z(r.object({[ih.name]:E({fieldName:ih.name})})),output_fields:R(r.object({[oh.name]:k({fieldName:oh.name}),[ah.name]:k({fieldName:ah.name})}))}).optional()}),ch=e=>V(K(ih,e)),lh={"email-validate-zerobounce-v1-zerobounce":{provider:`zerobounce`,allowManagedConnection:!0,credits:{default:.4,level1:{credits:.3,weight:1},level2:{credits:.15,weight:6}},mode:`always`}},uh=class extends U{pipeId=rh;payload;payloadSchema=sh;billableOperations=lh;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`zerobounce`]}estimateBillableOperations(){return[`email-validate-zerobounce-v1-zerobounce`]}getInputRequirement(){return ch(this.payload.config)}getRawOutputFields(){return{[ah.name]:this.catalogOutput(ah),[oh.name]:this.catalogOutput(oh)}}getConnectionsRequirements(){return[{provider:`zerobounce`,rateLimitRatio:1,rateLimitOperation:`zerobounce_generic`,allowManagedConnection:!0}]}},dh=sh,fh={pipeId:rh,basePipe:W(rh),label:`Validate email`,executionMode:`single`,categories:[`people_data`],lifecycle:null,description:`Verify email address against various factors, including syntax, domain, and server existence, to ensure it is deliverable and active.`,tags:[B.EMAIL],docPath:G(rh),billableOperations:lh,inputFieldMode:`static`,outputFieldMode:`static`,allowedUserConnectionProviders:[`zerobounce`],managedProviders:[`zerobounce`],deprecatedProviders:[],defaultInputRequirement:ch(null),defaultPayload:{pipe_id:rh,connector:null,run_if:null,config:{input_fields:{email:{alias:``}},output_fields:{zerobounce_validation_status:{alias:``,enabled:!0},zerobounce_validation_match:{alias:``,enabled:!0}}}}},ph={title:`Software Engineer, CEO, ...`,seniority:`C-Suite, Senior, ...`,department:`Consulting, Finance, ...`,certification:`CISSP, AWS, ...`,crunchbase_category:`3D Printing, Big Date, ...`,honor:`Cum Laude, 40 Under 40, ...`,field_of_study:`Engineering, Computer Science, ...`,degree_name:`Bachelor of Science, ...`,extracurricular:`Athelete, Debate Team, ...`,job_function:`Accounting, Advertising, ...`,location:`USA, Germany, France, ...`,company_name:`Google, Anthropic, ...`,company_domain:`google.com, openai.com, ...`,company_profile_keyword:`B2B, Software, ...`,headline_keywords:`Founder, JavaScript, ...`,profile_keywords:`Coach, Scrum, ...`,languages:`German, English, ...`,languages_1:`Spanish, Italian, ...`,skills:`TypeScript, Playwright, ...`,industry:`IT, Agriculture, ...`,investor:`a16z, Inside Partners, ...`,school:`MIT, Harvard, ...`,prompt:`Enter prompt here...`,template:`Enter template here...`};function Z(e){return ph[e]}const mh=`email:write@1`,hh=`email-write-v1`,gh=ti(hh),_h=_(`email_subject`),vh=_(`email_body`),yh=r.object({pipe_id:r.literal(mh),connector:w(),run_if:S(),config:r.object({template:Ui({sectionKey:`general`,label:`Prompt`,path:`config.template`,placeholder:Z(`prompt`),groupPath:`config.prompt`,required:!0}),model:oa({sectionKey:`general`,label:`Model`,path:`config.model`,groupPath:`config.prompt`,billableOperations:gh}),signature:ia({sectionKey:`general`,label:`Signature (Markdown)`,path:`config.signature`,groupPath:`config.email`,minLength:5,rows:10}),persona:aa({sectionKey:`general`,label:`Persona`,info:`Define the unique tone of your email`,path:`config.persona`,groupPath:`config.prompt`,required:!1,options:[{label:`Sales`,value:`sales`},{label:`Human Resources`,value:`human_resources`},{label:`Customer Success`,value:`customer_success`}]}),output_fields:R(r.object({[_h.name]:k({fieldName:_h.name}),[vh.name]:k({fieldName:vh.name})}))})}),bh=class extends U{pipeId=mh;payload;payloadSchema=yh;billableOperations=gh;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return ri(this.payload.config.model)}estimateBillableOperations(){return[ni(this.payload.config.model,hh)]}getInputRequirement(){return Hm([this.payload.config.template])}getSecretRequirements(){return Y([this.payload.config.template])}getConstantRequirements(){return X([this.payload.config.template])}getRawOutputFields(){return{[_h.name]:this.catalogOutput(_h),[vh.name]:this.catalogOutput(vh)}}getConnectionsRequirements(){return ii(this.payload.config.model)}},xh=yh,Sh={pipeId:mh,inputFieldMode:`config`,outputFieldMode:`static`,basePipe:W(mh),label:`Email writer`,executionMode:`single`,categories:[`tools`],lifecycle:null,description:`An AI agent specialized in composing emails.`,detailed_description:`AI email composer. Outputs: email_subject, email_body. Pair with email:send:gmail@1 or email:send:resend@1 to send the composed email. Requires 'email' field in input records for the sender pipe.`,tags:[B.AI],docPath:G(mh),defaultInputRequirement:null,billableOperations:gh,allowedUserConnectionProviders:ai(),managedProviders:ai(),deprecatedProviders:[],defaultPayload:{pipe_id:mh,connector:null,run_if:null,config:{template:``,output_fields:{email_body:{alias:``,enabled:!0},email_subject:{alias:``,enabled:!0}},persona:`sales`,model:`openai-gpt-latest`,signature:``}}},Ch=`field:domainify@1`,wh=_(`url_input`),Th=_(`domain`),Eh=r.object({pipe_id:r.literal(Ch),run_if:S(),connector:T(),config:r.object({input_fields:z(r.object({[wh.name]:E({fieldName:wh.name})})),output_fields:R(r.object({[Th.name]:k({fieldName:Th.name})}))}).optional()}),Dh=e=>V(K(wh,e)),Oh={"field-domainify-v1-pipe0":{provider:`pipe0`,allowManagedConnection:!0,credits:{default:0},mode:`always`}},kh=class extends U{pipeId=Ch;payload;payloadSchema=Eh;billableOperations=Oh;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[]}getInputRequirement(){return Dh(this.payload.config)}getRawOutputFields(){return{[Th.name]:this.catalogOutput(Th)}}getConnectionsRequirements(){return[{provider:`pipe0`,rateLimitRatio:1,rateLimitOperation:`pipe0_logic`,allowManagedConnection:!0}]}},Ah=Eh,jh={pipeId:Ch,basePipe:W(Ch),label:`Extract domain`,executionMode:`single`,categories:[`tools`],lifecycle:null,description:`Transform URL input into a domain. Example: 'https://go.com' to 'go.com'.`,tags:[B.LOGIC,B.FIELDS],docPath:G(Ch),billableOperations:Oh,defaultInputRequirement:Dh(null),inputFieldMode:`static`,outputFieldMode:`static`,allowedUserConnectionProviders:[],managedProviders:[`pipe0`],deprecatedProviders:[],defaultPayload:{pipe_id:Ch,run_if:null,connector:null,config:{input_fields:{url_input:{alias:``}},output_fields:{domain:{alias:``,enabled:!0}}}}},Mh=`field:slugify@1`,Nh=_(`string_input`),Ph=_(`slugified`),Fh=r.object({pipe_id:r.literal(Mh),run_if:S(),connector:T(),config:r.object({input_fields:z(r.object({[Nh.name]:E({fieldName:Nh.name})})),output_fields:R(r.object({[Ph.name]:k({fieldName:Ph.name})}))}).optional()}),Ih=e=>V(K(Nh,e)),Lh={"field-slugify-v1-pipe0":{provider:`pipe0`,allowManagedConnection:!0,credits:{default:0},mode:`always`}},Rh=class extends U{pipeId=Mh;payload;payloadSchema=Fh;billableOperations=Lh;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[]}getInputRequirement(){return Ih(this.payload.config)}getRawOutputFields(){return{[Ph.name]:this.catalogOutput(Ph)}}getConnectionsRequirements(){return[{provider:`pipe0`,rateLimitRatio:1,rateLimitOperation:`pipe0_logic`,allowManagedConnection:!0}]}},zh=Fh,Bh={pipeId:Mh,basePipe:W(Mh),label:`Slugify field`,executionMode:`single`,categories:[`tools`],lifecycle:null,description:`Strip a field value of characters not commonly found in slugs.`,tags:[B.LOGIC,B.FIELDS],docPath:G(Mh),billableOperations:Lh,defaultInputRequirement:Ih(null),inputFieldMode:`static`,outputFieldMode:`static`,allowedUserConnectionProviders:[],managedProviders:[`pipe0`],deprecatedProviders:[],defaultPayload:{pipe_id:Mh,run_if:null,connector:null,config:{input_fields:{string_input:{alias:``}},output_fields:{slugified:{alias:``,enabled:!0}}}}};function Vh({name:e,resolvedName:t}){return e===t?`'${e}'`:`'${e}' (resolved to '${t}')`}function Hh(e){switch(e.kind){case`field`:return Vh(e.field);case`optional`:return`[optional ${Vh(e.field)}]`;case`all`:return e.of.length===0?`(none)`:e.of.length===1?Hh(e.of[0]):`(${e.of.map(Hh).join(` AND `)})`;case`any`:return e.of.length===0?`(none)`:e.of.length===1?Hh(e.of[0]):`(${e.of.map(Hh).join(` OR `)})`}}function Uh(e){return`Pipe input requirement is not satisfied: ${Hh(e)}. Map missing fields to existing ones, add a pipe that outputs them, or include them in your inputs.`}var Wh=class extends Error{constructor(e){super(`Request validation failed (${e.length} errors): ${e.join(`, `)}`),this.errors=e,this.name=`RequestValidationError`,Object.setPrototypeOf(this,new.target.prototype)}};const Q={ConditionTargetFieldNotFound:({fieldName:e,pipeId:t,pipeIdx:n})=>({code:`ConditionTargetFieldNotFound`,message:`${t} (idx: ${n}) has an invalid condition. Field '${e}' not found.`}),FaultyEnrichmentOrder:()=>({code:`FaultyEnrichmentOrder`,message:`Enrichment not found while ordering. Was the request invalid?`}),MustDefineAnnotations:()=>({code:`MustDefineAnnotations`,message:`Must define either input or field annoations to validate pipes payload.`}),CircularDependency:({currentPipe:e,circularPipe:t})=>({code:`CircularDependency`,message:`'${e.pipe_id}' (${e.idx}) and '${t.pipeId}' (${t.idx}) create a dependency loop. They both need the other's output to complete. Neither can complete. You can map the pipe outputs or input to fields with different names if you want the pipes to be independent or each other.`}),ValidationFailed:({error:e})=>({code:`ValidationFailed`,message:`Failed to validate task request: ${e instanceof Error?e.message:String(e)}`}),MissingCustomConnections:({pipeId:e,index:t,missingProviders:n})=>({code:`MissingCustomConnections`,message:`Pipe ${e} (index ${t}) requires you to specify custom connections for the providers ${n.join(`, `)}. Create the custom connections in the dashbard and reference them in your request.`}),ResponseGenerationFailed:({error:e})=>({code:`ResponseGenerationFailed`,message:`Failed to generate response: ${e instanceof Error?e.message:String(e)}`}),InputValuesMustHaveSameType:({pipeId:e,fieldNames:t})=>({code:`InputValuesMustHaveSameType`,message:`Pipe ${e} requires all input values to have the same type. But values ${t.join(`, `)} have different types.`}),NotValidated:()=>({code:`NotValidated`,message:`PipelineRequest must be validated before accessing results`}),MissingIdInInput:()=>({code:`MissingIdInInput`,message:`Inputs missing 'id' property.`}),InputDataTypeMismatch:({key:e,derivedInputFieldType:t,fieldType:n})=>({code:`InputDataTypeMismatch`,message:`Input data has values with matching keys '${e}' but different types. Expected type: '${t}'. Actual: '${n}'.`}),UnresolvableDependency:({index:e,dependencyIndex:t})=>({code:`UnresolvableDependency`,message:`Unresolvable dependency at index ${e} to ${t}`}),RequirementUnmet:({requirement:e})=>({code:`RequirementUnmet`,message:Uh(e)}),HardInputDependencyViolation:({index:e,indexPipeId:t,dependencyIndex:n,dependencyIndexPipeId:r})=>({code:`HardInputDependencyViolation`,message:`Dependency violation: pipe at idx: ${e} (${t}) must come after pipe at idx: ${n} (${r})`}),HardConditionDependencyViolation:({index:e,indexPipeId:t,dependencyIndex:n,dependencyIndexPipeId:r})=>({code:`HardConditionDependencyViolation`,message:`Dependency violation: pipe at idx: ${e} (${t}) has a condition that points to pipe at idx: ${n} (${r}). But pipe index: ${e} (${t}) is always must be processed after pipe at index ${n} (${r}). This is due to input requirements or other conditions.`}),DuplicateInitialField:({name:e})=>({code:`DuplicateInitialField`,message:`Duplicate initial field '${e}' detected. Each field must be defined only once.`}),MissingInputId:({index:e})=>({code:`MissingInputId`,message:`Input record at index ${e} is missing a required ID field.`}),InvalidId:()=>({code:`InvalidId`,message:`Cell IDs must be numbers or strings`}),IDConflict:({index:e,id:t})=>({code:`IDConflict`,message:`Input data at index ${e} has Id conflict. Id '${t}' is not unique.`}),UnknownResolver:({pipeId:e,index:t})=>({code:`UnknownResolver`,message:`Unknown pipe '${e}' specified at position ${t}.`}),DuplicatePipeOutput:({pipeId:e,outputField:t})=>({code:`DuplicateEnrichmentOutput`,message:`Field conflict for '${e}'. Cannot add output field ${Vh(t)} to pipeline because it already exists. Try renaming it.`}),InputDataDoesNotMatchOutputField:({index:e,resolvedName:t,type:n,inputValueType:r})=>({code:`InputDataDoesNotMatchOutputField`,message:`Input at position ${e} provided data for field '${t}' that did not match expected type. Expected: '${n}', Actual: '${r}'.`}),AmbiguousDependency:({fieldName:e})=>({code:`AmbiguousDependency`,message:`Found more than one pipe that produces field: ${e}. Rename or disable the field to add it.`}),EmptyObjectProperty:()=>({code:`EmptyObjectProperty`,message:`Input data contains empty object property "". This is not allowed.`}),JSONSchemaMissing:({schemaRef:e,outputName:t})=>({code:`JSONSchemaMissing`,message:`Missing jsonSchema '${e}' for output with name '${t}'.`}),InvalidJSONSchema:({schemaRef:e})=>({code:`InvalidJSONSchema`,message:`JSON Schema (ref: ${e}) is invalid.`}),MissingOutputFieldDescription:({outputName:e})=>({code:`MissingOutputFieldDescription`,message:`The output field ${e} is missing a "description" property. Define it {{ ${e} description="Foo bar" }}`}),InvalidFormatTag:({outputName:e,format:t})=>({code:`InvalidFormatTag`,message:`The output field ${e} has an invalid format tag ${t}.`}),RecursiveExpandedValue:()=>({code:`RecursiveExpandedValue`,message:`Your input values contain a recursive expanded valuetype `})};var Gh=class extends Error{},$=class extends Gh{codes;appErrors;constructor(e){super(e.map(e=>e.message).join(`, `)||`Unknown`),this.errors=e,this.codes=e.map(e=>e.code),this.appErrors=e}};const Kh=`fields:merge@1`,qh=_(`merge_result`),Jh=r.object({pipe_id:r.literal(Kh),connector:T(),run_if:S(),config:r.object({sources:qi({sectionKey:`general`,groupPath:`config.general`,path:`config.sources`,info:`Provide references to input fields`,minItems:2}),output_fields:R(r.object({[qh.name]:k({fieldName:qh.name})}))})}),Yh={"fields-merge-v1-pipe0":{credits:{default:0},allowManagedConnection:!0,provider:`pipe0`,mode:`always`}},Xh=class extends U{pipeId=Kh;payload;payloadSchema=Jh;billableOperations=Yh;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[`fields-merge-v1-pipe0`]}getInputRequirement(){let e=this.payload.config.sources.map(e=>e.field_name),t;return H(...this.payload.config.sources.map(n=>V({format:null,type:r=>{let i=Bm(r,e)[n.field_name],a=i?.type?i.type:`unknown`;if(a!==`unknown`){if(t&&t!==a)throw new $([Q.InputValuesMustHaveSameType({pipeId:this.pipeId,fieldNames:e})]);t=a}return i?.type?i.type:`unknown`},label:``,description:``,name:n.field_name,resolvedName:n.field_name})))}getRawOutputFields(){return{[qh.name]:this.catalogOutput(qh,{resolveType:e=>{let t=Bm(e,this.payload.config.sources.map(e=>e.field_name));return Object.values(t).find(e=>!!e.type)?.type||`string`}})}}getConnectionsRequirements(){return[{provider:`pipe0`,rateLimitRatio:1,rateLimitOperation:`pipe0_logic`,allowManagedConnection:!0}]}},Zh=Jh,Qh={pipeId:Kh,inputFieldMode:`config`,outputFieldMode:`static`,basePipe:W(Kh),label:`Merge fields`,executionMode:`single`,categories:[`tools`],lifecycle:null,description:`Join multiple fields into one field. The final result will be the first defined field.`,tags:[B.FIELDS,B.LOGIC],docPath:G(Kh),defaultInputRequirement:null,billableOperations:Yh,allowedUserConnectionProviders:[],managedProviders:[`pipe0`],deprecatedProviders:[],defaultPayload:{pipe_id:Kh,connector:null,run_if:null,config:{sources:[],output_fields:{merge_result:{alias:``,enabled:!0}}}}},$h=`http:request@1`,eg=_(`http_response_status`),tg=_(`http_response_body`),ng=_(`http_response_headers`),rg=r.object({pipe_id:r.literal($h),connector:T(),run_if:S(),config:r.object({method:aa({sectionKey:`general`,groupPath:`config.general`,path:`config.method`,label:`Method`,defaultValue:`GET`,options:[...[{value:`GET`,label:`GET`},{value:`POST`,label:`POST`},{value:`PUT`,label:`PUT`},{value:`PATCH`,label:`PATCH`},{value:`DELETE`,label:`DELETE`}]],required:!0}),url:C({sectionKey:`general`,groupPath:`config.general`,path:`config.url`,label:`Endpoint`,info:"Target URL. Only http/https. Type `@` to insert a field reference or `$` to insert a secret reference.",placeholder:`https://api.example.com/v1/things`,inputType:`text`,minLength:1,maxLength:2048,expectedTagType:`string`,expectedTagFormat:`text`}),query_params:Qi({sectionKey:`general`,groupPath:`config.general`,path:`config.query_params`,label:`Query parameters`,info:"Appended to the URL. Type `@` to insert a field reference or `$` to insert a secret reference in either column.",keyLabel:`Key`,valueLabel:`Value`,keyPlaceholder:`page`,valuePlaceholder:`1`,maxItems:50}),body:C({sectionKey:`general`,groupPath:`config.general`,path:`config.body`,label:`Body`,info:"Sent verbatim as the request body. Type `@` to insert a field reference or `$` to insert a secret reference. Set Content-Type via Headers.",placeholder:`{
|
|
72
72
|
"key": "value"
|
|
73
|
-
}`,inputType:`text`,maxLength:1e6,expectedTagType:`string`,expectedTagFormat:`text`,multiline:!0}),headers:Qi({sectionKey:`general`,groupPath:`config.general`,path:`config.headers`,label:`Headers`,info:"Type `@` to insert a field reference or `$` to insert a secret reference in either column (e.g. `Bearer $token`).",keyLabel:`Header`,valueLabel:`Value`,keyPlaceholder:`Authorization`,valuePlaceholder:`Bearer {{ secret โฆ }}`,maxItems:50}),expected_response_schema:ua({sectionKey:`general`,groupPath:`config.advanced`,path:`config.expected_response_schema`,label:`Expected response shape`,description:`Optional JSON Schema. Successful responses that don't satisfy it are marked failed. Extra properties are always tolerated (whitelist).`,required:!1,allowEmpty:!0}),output_fields:R(r.object({[eg.name]:k({fieldName:eg.name}),[tg.name]:k({fieldName:tg.name}),[ng.name]:k({fieldName:ng.name})}))})}),ig={"http-request-v1-pipe0":{provider:`pipe0`,allowManagedConnection:!0,credits:{default:.001},mode:`always`}},ag=class extends U{pipeId=$h;payload;payloadSchema=rg;billableOperations=ig;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[`http-request-v1-pipe0`]}getTemplatedFields(){let e=[this.payload.config.url,this.payload.config.body];for(let t of this.payload.config.query_params??[])e.push(t.key,t.value);for(let t of this.payload.config.headers??[])e.push(t.key,t.value);return e}getInputRequirement(){return Hm(this.getTemplatedFields(),{expectedType:`string`,expectedFormat:`text`})}getSecretRequirements(){return Y(this.getTemplatedFields())}getConstantRequirements(){return X(this.getTemplatedFields())}getRawOutputFields(){return{[eg.name]:this.catalogOutput(eg),[tg.name]:this.catalogOutput(tg),[ng.name]:this.catalogOutput(ng)}}getConnectionsRequirements(){return[{provider:`pipe0`,rateLimitRatio:1,rateLimitOperation:`pipe0_logic`,allowManagedConnection:!0}]}},og=rg,sg={pipeId:$h,basePipe:W($h),label:`HTTP request`,executionMode:`single`,categories:[`tools`],lifecycle:null,description:`Make a generic GET/POST/PUT/PATCH/DELETE HTTP request and capture the JSON response. Optionally validate the response against a JSON schema.`,tags:[B.LOGIC,B.JSON,B.NEW],docPath:G($h),billableOperations:ig,defaultInputRequirement:null,inputFieldMode:`config`,outputFieldMode:`static`,allowedUserConnectionProviders:[],managedProviders:[`pipe0`],deprecatedProviders:[],defaultPayload:{pipe_id:$h,run_if:null,connector:null,config:{method:`GET`,url:``,query_params:[],body:``,headers:[],expected_response_schema:{},output_fields:{http_response_status:{alias:``,enabled:!0},http_response_body:{alias:``,enabled:!0},http_response_headers:{alias:``,enabled:!1}}}}},cg=`json:extract:multi@1`,lg=r.object({pipe_id:r.literal(cg),run_if:S(),connector:T(),config:r.object({json_extraction:hi()})}),ug={"json-extract-multi-v1-pipe0":{provider:`pipe0`,allowManagedConnection:!0,credits:{default:0},mode:`always`}},dg=class extends U{pipeId=cg;payload;payloadSchema=lg;billableOperations=ug;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[`json-extract-multi-v1-pipe0`]}getInputRequirement(){return V({description:``,name:this.payload.config.json_extraction.field_name,format:null,label:``,type:`json`,resolvedName:this.payload.config.json_extraction.field_name})}getRawOutputFields(){let e={};for(let t of this.payload.config.json_extraction.extractions)e[t.output_field.name||t.output_field.name]={description:`Extracted value from JSON input field ${this.payload.config.json_extraction.field_name}.`,enabled:!0,format:t.output_field.format||null,label:t.output_field.label||`Extract JSON`,name:t.output_field.name,resolvedName:t.output_field.name,jsonMeta:null,type:t.output_field.type,isCatalogFIeld:!1,isPrimaryOutput:!1};return e}getConnectionsRequirements(){return[]}},fg=lg,pg={pipeId:cg,basePipe:W(cg),inputFieldMode:`config`,outputFieldMode:`config`,label:`JSON extract`,executionMode:`single`,categories:[`tools`],lifecycle:null,description:`Extract nested JSON properties into new output fields.`,docPath:G(cg),tags:[B.JSON],managedProviders:[`pipe0`],deprecatedProviders:[],allowedUserConnectionProviders:[],billableOperations:ug,defaultInputRequirement:null,defaultPayload:{pipe_id:cg,run_if:null,connector:null,config:{json_extraction:{field_name:``,extractions:[]}}}},mg=`message:send:slack@1`,hg=_(`slack_message_success`),gg=[{label:`#demo-general`,value:`C0SANDBOX001`},{label:`#demo-alerts`,value:`C0SANDBOX002`}],_g=r.object({pipe_id:r.literal(mg),connector:Gi(),run_if:S(),config:r.object({channel_id:C({sectionKey:`general`,groupPath:`config.general`,path:`config.channel_id`,label:`Channel ID`,info:"Your connection must be authorized to post to this channel. Type `@` to insert a field reference or `$` to insert a secret reference.",placeholder:`C0123456789`,inputType:`text`,minLength:3,expectedTagType:`string`,expectedTagFormat:`text`,optionsDef:{requires:{connection:`slack`},options:async({query:e,secret:t,environment:n})=>{if(n===`sandbox`)return gg;if(!t)throw new Rs.MissingSecretError({providerName:`slack`});let r=await fetch(`https://slack.com/api/conversations.list?limit=200&exclude_archived=true&types=public_channel,private_channel`,{headers:{Authorization:`Bearer ${t}`}});if(!r.ok){let e=await r.text();throw new Rs.HttpError({msg:e})}let i=await r.json();if(!i.ok)throw new Rs.HttpError({msg:i.error??`slack_error`});let a=(i.channels??[]).map(e=>({label:`#${e.name}`,value:e.id}));return e?a.filter(t=>t.label.toLowerCase().includes(e.toLowerCase())):a},widgets:{provider_logo:{provider:`slack`}}}}),message:C({sectionKey:`general`,groupPath:`config.general`,path:`config.message`,label:`Message`,info:"The message body. Type `@` to insert a field reference or `$` to insert a secret reference.",placeholder:`Hi {{ name }}, โฆ`,inputType:`text`,minLength:1,maxLength:4e4,expectedTagType:`string`,expectedTagFormat:`markdown`,multiline:!0}),output_fields:R(r.object({[hg.name]:k({fieldName:hg.name})}))})}),vg={"message-send-slack-v1-slack":{allowManagedConnection:!1,provider:`slack`,credits:null,mode:null}},yg=class extends U{pipeId=mg;payload;payloadSchema=_g;billableOperations=vg;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`slack`]}estimateBillableOperations(){return[`message-send-slack-v1-slack`]}getTemplatedFields(){return[this.payload.config.channel_id,this.payload.config.message]}getInputRequirement(){return Hm(this.getTemplatedFields())}getSecretRequirements(){return Y(this.getTemplatedFields())}getConstantRequirements(){return X(this.getTemplatedFields())}getRawOutputFields(){return{[hg.name]:this.catalogOutput(hg)}}getConnectionsRequirements(){return[{provider:`slack`,rateLimitRatio:1,rateLimitOperation:`slack_post_message`,allowManagedConnection:!1}]}},bg=_g,xg={pipeId:mg,basePipe:W(mg),label:`Send message into channel`,executionMode:`single`,categories:[`actions`],lifecycle:null,description:`Send a Slack message to a channel.`,detailed_description:"Send a Slack message. The channel ID and message body are templated config fields โ reference upstream fields with `{{ field_name }}` and stored secrets with `{{ SECRETS.KEY }}`. Requires a Slack vault connection (call list_connections to find one).",tags:[B.CHAT],docPath:G(mg),billableOperations:vg,inputFieldMode:`config`,outputFieldMode:`static`,allowedUserConnectionProviders:[`slack`],managedProviders:[],deprecatedProviders:[],defaultInputRequirement:null,defaultPayload:{pipe_id:mg,connector:{strategy:`first`,connections:[]},run_if:null,config:{channel_id:``,message:``,output_fields:{slack_message_success:{alias:``,enabled:!0}}}}},Sg=`message:write@1`,Cg=_(`message`),wg=`message-write-v1`,Tg=ti(wg),Eg=r.object({pipe_id:r.literal(Sg),connector:w(),run_if:S(),config:r.object({template:Ui({sectionKey:`general`,label:`Template`,path:`config.template`,placeholder:Z(`prompt`),groupPath:`config.prompt`,required:!0}),model:oa({sectionKey:`general`,label:`Model`,path:`config.model`,groupPath:`config.prompt`,billableOperations:Tg}),output_fields:R(r.object({[Cg.name]:k({fieldName:Cg.name})}))})}),Dg=class extends U{pipeId=Sg;payload;payloadSchema=Eg;billableOperations=Tg;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return ri(this.payload.config.model)}estimateBillableOperations(){return[ni(this.payload.config.model,wg)]}getInputRequirement(){return Hm([this.payload.config.template])}getSecretRequirements(){return Y([this.payload.config.template])}getConstantRequirements(){return X([this.payload.config.template])}getRawOutputFields(){return{[Cg.name]:this.catalogOutput(Cg)}}getConnectionsRequirements(){return ii(this.payload.config.model)}},Og=Eg,kg={pipeId:Sg,inputFieldMode:`config`,outputFieldMode:`static`,basePipe:W(Sg),label:`Message writer`,executionMode:`single`,categories:[`tools`],lifecycle:null,description:`An AI agent specialized in composing messages for modern workplace communication platforms (Slack, Teams, Discord, etc.)`,detailed_description:`AI message composer for Slack/Teams/Discord. Outputs: message. Pair with message:send:slack@1 to send.`,tags:[B.AI],docPath:G(Sg),defaultInputRequirement:null,billableOperations:Tg,allowedUserConnectionProviders:ai(),managedProviders:ai(),deprecatedProviders:[],defaultPayload:{pipe_id:Sg,connector:null,run_if:null,config:{model:`openai-gpt-latest`,template:``,output_fields:{message:{alias:``,enabled:!0}}}}},Ag=`person:email:validate:millionverifier@1`,jg=_(`email`),Mg=_(`email_validation_status`),Ng=_(`million_validation_match`),Pg=r.object({pipe_id:r.literal(Ag),connector:w(),run_if:S(),config:r.object({input_fields:z(r.object({[jg.name]:E({fieldName:jg.name})})),output_fields:R(r.object({[Mg.name]:k({fieldName:Mg.name}),[Ng.name]:k({fieldName:Ng.name})}))}).optional()}),Fg=e=>V(K(jg,e)),Ig={"person-email-validate-millionverifier-v1-millionverifier":{provider:`millionverifier`,allowManagedConnection:!0,credits:{default:.1,level1:{credits:.05,weight:1}},mode:`always`}},Lg=class extends U{pipeId=Ag;payload;payloadSchema=Pg;billableOperations=Ig;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`millionverifier`]}estimateBillableOperations(){return[`person-email-validate-millionverifier-v1-millionverifier`]}getInputRequirement(){return Fg(this.payload.config)}getRawOutputFields(){return{[Mg.name]:this.catalogOutput(Mg),[Ng.name]:this.catalogOutput(Ng)}}getConnectionsRequirements(){return[{provider:`millionverifier`,rateLimitRatio:1,rateLimitOperation:`millionverifier_generic`,allowManagedConnection:!0}]}},Rg=Pg,zg={pipeId:Ag,basePipe:W(Ag),label:`Validate email`,executionMode:`single`,categories:[`people_data`],lifecycle:null,description:`Verify email addresses to ensure is deliverability.`,tags:[B.EMAIL],docPath:G(Ag),billableOperations:Ig,inputFieldMode:`static`,outputFieldMode:`static`,allowedUserConnectionProviders:[`millionverifier`],managedProviders:[`millionverifier`],deprecatedProviders:[],defaultInputRequirement:Fg(null),defaultPayload:{pipe_id:Ag,connector:null,run_if:null,config:{input_fields:{email:{alias:``}},output_fields:{email_validation_status:{alias:``,enabled:!0},million_validation_match:{alias:``,enabled:!0}}}}},Bg=_(`email`),Vg=_(`amplemarket_person_match`),Hg=`person:identity:amplemarket@1`,Ug=r.object({pipe_id:r.literal(Hg),run_if:S(),connector:w(),config:r.object({input_fields:z(r.object({[Bg.name]:E({fieldName:Bg.name})})),output_fields:R(r.object({[Vg.name]:k({fieldName:Vg.name})}))}).optional()}),Wg=e=>V(K(Bg,e)),Gg={"person-identity-amplemarket-v1-amplemarket":{allowManagedConnection:!1,credits:null,mode:null,provider:`amplemarket`}},Kg=class extends U{pipeId=Hg;payload;payloadSchema=Ug;billableOperations=Gg;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`amplemarket`]}estimateBillableOperations(){return[]}getInputRequirement(){return Wg(this.payload.config)}getRawOutputFields(){return{[Vg.name]:this.catalogOutput(Vg)}}getConnectionsRequirements(){return[{provider:`amplemarket`,rateLimitRatio:1,rateLimitOperation:`amplemarket_generic`,allowManagedConnection:!1}]}},qg=Ug,Jg={pipeId:Hg,inputFieldMode:`static`,outputFieldMode:`static`,basePipe:W(Hg),label:`Person identity`,executionMode:`single`,categories:[`people_data`],lifecycle:null,description:`Find information on a person based on their email`,tags:[B.PEOPLE_PROFILES],docPath:G(Hg),billableOperations:Gg,allowedUserConnectionProviders:[`amplemarket`],managedProviders:[],deprecatedProviders:[],defaultInputRequirement:Wg(null),defaultPayload:{pipe_id:Hg,connector:null,run_if:null,config:{input_fields:{email:{alias:``}},output_fields:{amplemarket_person_match:{alias:``,enabled:!0}}}}},Yg=`person:identity:email:waterfall@1`,Xg=_(`email`),Zg=_(`company_domain`),Qg=_(`name`),$g=_(`job_title`),e_=_(`profile_url`),t_=_(`company_profile_url`),n_=_(`company_name`),r_=[`findymail`,`hunter`,`crustdata`],i_=[{provider:`findymail`},{provider:`hunter`},{provider:`crustdata`}],a_=r.object({pipe_id:r.literal(Yg),connector:w(),run_if:S(),config:r.object({providers:D({availableProviders:r_,defaultProviders:i_,sectionKey:`general`}),input_fields:z(r.object({[Xg.name]:E({fieldName:Xg.name})})),output_fields:R(r.object({[Qg.name]:k({fieldName:Qg.name}),[e_.name]:k({fieldName:e_.name}),[$g.name]:k({fieldName:$g.name}),[Zg.name]:k({fieldName:Zg.name}),[n_.name]:k({fieldName:n_.name}),[t_.name]:k({fieldName:t_.name})}))}).optional()}),o_=e=>V(K(Xg,e)),s_={"person-identity-email-waterfall-v1-hunter":{provider:`hunter`,allowManagedConnection:!0,credits:{default:2},mode:`onSuccess`},"person-identity-email-waterfall-v1-findymail":{provider:`findymail`,allowManagedConnection:!0,credits:{default:2},mode:`onSuccess`},"person-identity-email-waterfall-v1-crustdata":{provider:`crustdata`,allowManagedConnection:!0,credits:{default:5},mode:`onSuccess`}},c_=class extends U{pipeId=Yg;payload;payloadSchema=a_;billableOperations=s_;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return this.payload.config?.providers.map(e=>e.provider)||[]}estimateBillableOperations(){return this.getProviderNames().map(e=>J(e,this.billableOperations).billableOperation)}getInputRequirement(){return o_(this.payload.config)}getRawOutputFields(){return{[Qg.name]:this.catalogOutput(Qg,{isPrimaryOutput:!0}),[e_.name]:this.catalogOutput(e_,{isPrimaryOutput:!0}),[$g.name]:this.catalogOutput($g,{isPrimaryOutput:!0}),[n_.name]:this.catalogOutput(n_,{isPrimaryOutput:!0}),[t_.name]:this.catalogOutput(t_,{isPrimaryOutput:!0}),[Zg.name]:this.catalogOutput(Zg,{isPrimaryOutput:!0})}}getConnectionsRequirements(){let e={hunter:`prospeo_email_lookup`,findymail:`findymail_email_b2b_lookup`,crustdata:`crustdata_realtime_person_enrich`};return(this.payload.config?.providers||[]).map((t,n)=>({provider:t.provider,rateLimitRatio:q(n),rateLimitOperation:e[t.provider],allowManagedConnection:!0}))}},l_=a_,u_={pipeId:Yg,basePipe:W(Yg),label:`Person identity from email`,executionMode:`waterfall`,categories:[`people_data`],lifecycle:null,description:`Find identity of a person from their email address.`,tags:[B.EMAIL,B.PEOPLE_PROFILES],docPath:G(Yg),managedProviders:r_,deprecatedProviders:[],allowedUserConnectionProviders:r_,inputFieldMode:`static`,outputFieldMode:`static`,billableOperations:s_,defaultInputRequirement:o_(null),defaultPayload:{pipe_id:Yg,connector:null,run_if:null,config:{providers:i_,input_fields:{email:{alias:``}},output_fields:{name:{alias:``,enabled:!0},profile_url:{alias:``,enabled:!0},job_title:{alias:``,enabled:!0},company_name:{alias:``,enabled:!0},company_profile_url:{alias:``,enabled:!0},company_domain:{alias:``,enabled:!0}}}}},d_=_(`profile_url`),f_=_(`amplemarket_person_match`),p_=`person:match:amplemarket@1`,m_=r.object({pipe_id:r.literal(p_),run_if:S(),connector:w(),config:r.object({input_fields:z(r.object({[d_.name]:E({fieldName:d_.name})})),output_fields:R(r.object({[f_.name]:k({fieldName:f_.name})}))}).optional()}),h_=e=>V(K(d_,e)),g_={"person-match-amplemarket-v1-amplemarket":{allowManagedConnection:!1,credits:null,mode:null,provider:`amplemarket`}},__=class extends U{pipeId=p_;payload;payloadSchema=m_;billableOperations=g_;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`amplemarket`]}estimateBillableOperations(){return[]}getInputRequirement(){return h_(this.payload.config)}getRawOutputFields(){return{[f_.name]:this.catalogOutput(f_)}}getConnectionsRequirements(){return[{provider:`amplemarket`,rateLimitRatio:1,rateLimitOperation:`amplemarket_generic`,allowManagedConnection:!1}]}},v_=m_,y_={pipeId:p_,inputFieldMode:`static`,outputFieldMode:`static`,basePipe:W(p_),label:`Person match`,executionMode:`single`,categories:[`people_data`],lifecycle:null,description:`Find information on a person based on their LinkedIn profile URL.`,tags:[B.PEOPLE_PROFILES],docPath:G(p_),billableOperations:g_,allowedUserConnectionProviders:[`amplemarket`],managedProviders:[],deprecatedProviders:[],defaultInputRequirement:h_(null),defaultPayload:{pipe_id:p_,connector:null,run_if:null,config:{input_fields:{profile_url:{alias:``}},output_fields:{amplemarket_person_match:{alias:``,enabled:!0}}}}},b_=`person:match:role:waterfall@1`,x_=_(`company_domain`),S_=_(`role_finder_match`),C_=[`leadmagic`],w_=[{provider:`leadmagic`}],T_=r.object({pipe_id:r.literal(b_),run_if:S(),connector:w(),config:r.object({providers:D({sectionKey:`general`,defaultProviders:w_,availableProviders:C_}),roles:Zi({sectionKey:`general`,groupPath:`config.general`,label:`Roles`,path:`config.roles`,info:`Company roles to include`,maxItems:3,minItems:1,suggestionsDef:g(`titles`),expectedTagType:`string`}),input_fields:z(r.object({[x_.name]:E({fieldName:x_.name})})),output_fields:R(r.object({[S_.name]:k({fieldName:S_.name})}))})}),E_=e=>H(K(x_,e)),D_={"person-match-role-waterfall-v1-leadmagic":{provider:`leadmagic`,allowManagedConnection:!0,credits:{default:1},mode:`onSuccess`}},O_=class extends U{pipeId=b_;payload;payloadSchema=T_;billableOperations=D_;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return this.payload.config?.providers.map(e=>e.provider)||[]}estimateBillableOperations(){return this.getProviderNames().map(e=>J(e,this.billableOperations).billableOperation)}getInputRequirement(){return E_(this.payload.config)}getSecretRequirements(){return Y(this.payload.config?.roles??[])}getConstantRequirements(){return X(this.payload.config?.roles??[])}getRawOutputFields(){return{[S_.name]:this.catalogOutput(S_,{isPrimaryOutput:!0})}}getConnectionsRequirements(){let e={leadmagic:`leadmagic_role_finder`};return(this.payload.config?.providers||[]).map((t,n)=>({provider:t.provider,rateLimitRatio:q(n),rateLimitOperation:e[t.provider],allowManagedConnection:!0}))}},k_=T_,A_={pipeId:b_,basePipe:W(b_),managedProviders:C_,deprecatedProviders:[],allowedUserConnectionProviders:C_,label:`Role finder`,executionMode:`waterfall`,categories:[`people_data`],lifecycle:null,description:`Find role matches for a given companies like "CEO" or "CFO".`,tags:[B.PEOPLE_PROFILES],docPath:G(b_),billableOperations:D_,inputFieldMode:`static`,outputFieldMode:`static`,defaultInputRequirement:E_(null),defaultPayload:{pipe_id:b_,run_if:null,connector:null,config:{roles:[],providers:w_,input_fields:{company_domain:{alias:``}},output_fields:{role_finder_match:{alias:``,enabled:!0}}}}},j_=`person:mobile:profileurl:waterfall@1`,M_=_(`profile_url`),N_=_(`mobile`),P_=[`leadmagic`,`prospeo`,`amplemarket`,`findymail`],F_=[{provider:`leadmagic`},{provider:`prospeo`},{provider:`amplemarket`},{provider:`findymail`}],I_=r.object({pipe_id:r.literal(j_),run_if:S(),connector:w(),config:r.object({providers:D({sectionKey:`general`,defaultProviders:F_,availableProviders:P_}),input_fields:z(r.object({[M_.name]:E({fieldName:M_.name})})),output_fields:R(r.object({[N_.name]:k({fieldName:N_.name})}))}).optional()}),L_=e=>V(K(M_,e)),R_={"person-mobile-profileurl-waterfall-v1-leadmagic":{provider:`leadmagic`,allowManagedConnection:!0,credits:{default:3,level1:{credits:2,weight:1}},mode:`onSuccess`},"person-mobile-profileurl-waterfall-v1-prospeo":{provider:`prospeo`,allowManagedConnection:!0,credits:{default:5,level1:{credits:3,weight:1}},mode:`onSuccess`},"person-mobile-profileurl-waterfall-v1-findymail":{provider:`findymail`,allowManagedConnection:!0,credits:{default:6,level1:{credits:4,weight:1}},mode:`onSuccess`},"person-mobile-profileurl-waterfall-v1-amplemarket":{provider:`amplemarket`,allowManagedConnection:!0,credits:{default:4,level1:{credits:3,weight:1}},mode:`onSuccess`}},z_=class extends U{pipeId=j_;payload;payloadSchema=I_;billableOperations=R_;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return this.payload.config?.providers.map(e=>e.provider)||[]}estimateBillableOperations(){return this.getProviderNames().map(e=>J(e,this.billableOperations).billableOperation)}getInputRequirement(){return L_(this.payload.config)}getRawOutputFields(){return{[N_.name]:this.catalogOutput(N_,{isPrimaryOutput:!0})}}getConnectionsRequirements(){let e={leadmagic:`leadmagic_email_lookup`,prospeo:`prospeo_phone_number_lookup`,findymail:`findymail_phone_lookup`,amplemarket:`amplemarket-person-reveal`};return(this.payload.config?.providers||[]).map((t,n)=>({provider:t.provider,rateLimitRatio:q(n),rateLimitOperation:e[t.provider],allowManagedConnection:!0}))}},B_=I_,V_={pipeId:j_,basePipe:W(j_),label:`Mobile number from LinkedIn profile`,executionMode:`waterfall`,categories:[`people_data`],lifecycle:null,description:`Find a mobile phone number for any prospect using multiple data providers in a waterfall motion.`,docPath:G(j_),tags:[B.PHONE,B.WATERFALL],billableOperations:R_,defaultInputRequirement:L_(null),inputFieldMode:`static`,outputFieldMode:`static`,managedProviders:P_,allowedUserConnectionProviders:P_,deprecatedProviders:[],defaultPayload:{pipe_id:j_,connector:null,run_if:null,config:{providers:F_,input_fields:{profile_url:{alias:``}},output_fields:{mobile:{alias:``,enabled:!0}}}}},H_=`person:mobile:workemail:waterfall@1`,U_=_(`work_email`),W_=_(`mobile`),G_=[`leadmagic`,`amplemarket`],K_=[{provider:`leadmagic`},{provider:`amplemarket`}],q_=r.object({pipe_id:r.literal(H_),run_if:S(),connector:w(),config:r.object({providers:D({sectionKey:`general`,availableProviders:G_,defaultProviders:K_}),input_fields:z(r.object({[U_.name]:E({fieldName:U_.name})})),output_fields:R(r.object({[W_.name]:k({fieldName:W_.name})}))}).optional()}),J_=e=>V(K(U_,e)),Y_={"person-mobile-workemail-waterfall-v1-leadmagic":{provider:`leadmagic`,allowManagedConnection:!0,credits:{default:3,level1:{credits:2,weight:1}},mode:`onSuccess`},"person-mobile-workemail-waterfall-v1-amplemarket":{provider:`amplemarket`,allowManagedConnection:!0,credits:{default:5,level1:{credits:4,weight:1}},mode:`onSuccess`}},X_=class extends U{pipeId=H_;payload;payloadSchema=q_;billableOperations=Y_;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return this.payload.config?.providers.map(e=>e.provider)||[]}estimateBillableOperations(){return this.getProviderNames().map(e=>J(e,this.billableOperations).billableOperation)}getInputRequirement(){return J_(this.payload.config)}getRawOutputFields(){return{[W_.name]:this.catalogOutput(W_,{isPrimaryOutput:!0})}}getConnectionsRequirements(){let e={leadmagic:`leadmagic_email_lookup`,amplemarket:`amplemarket-person-reveal`};return(this.payload.config?.providers||[]).map((t,n)=>({provider:t.provider,rateLimitRatio:q(n),rateLimitOperation:e[t.provider],allowManagedConnection:!0}))}},Z_=q_,Q_={pipeId:H_,basePipe:W(H_),label:`Mobile number from email`,executionMode:`waterfall`,categories:[`people_data`],lifecycle:null,description:`Find a mobile phone number for a prospect.`,tags:[B.PHONE,B.WATERFALL],docPath:G(H_),billableOperations:Y_,defaultInputRequirement:J_(null),inputFieldMode:`static`,outputFieldMode:`static`,allowedUserConnectionProviders:G_,managedProviders:G_,deprecatedProviders:[],defaultPayload:{pipe_id:H_,connector:null,run_if:null,config:{providers:K_,input_fields:{work_email:{alias:``}},output_fields:{mobile:{alias:``,enabled:!0}}}}},$_=`person:name:join@1`,ev=_(`first_name`),tv=_(`last_name`),nv=_(`name`),rv=r.object({pipe_id:r.literal($_),run_if:S(),connector:T(),config:r.object({input_fields:z(r.object({[ev.name]:E({fieldName:ev.name}),[tv.name]:E({fieldName:tv.name})})),output_fields:R(r.object({[nv.name]:k({fieldName:nv.name})}))}).optional()}),iv=e=>Ea(K(ev,e),K(tv,e)),av={"person-name-join-v1-pipe0":{provider:`pipe0`,allowManagedConnection:!0,credits:{default:0},mode:`always`}},ov=class extends U{pipeId=$_;payload;payloadSchema=rv;billableOperations=av;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[`person-name-join-v1-pipe0`]}getInputRequirement(){return iv(this.payload.config)}getRawOutputFields(){return{[nv.name]:this.catalogOutput(nv)}}getConnectionsRequirements(){return[{provider:`pipe0`,rateLimitRatio:1,rateLimitOperation:`pipe0_logic`,allowManagedConnection:!0}]}},sv=rv,cv={pipeId:$_,basePipe:W($_),label:`Join name`,executionMode:`single`,categories:[`people_data`],lifecycle:null,description:`Combine the first and last names of a prospect into a full name field.`,tags:[B.NAMES],docPath:G($_),billableOperations:av,defaultInputRequirement:iv(null),inputFieldMode:`static`,outputFieldMode:`static`,allowedUserConnectionProviders:[],managedProviders:[`pipe0`],deprecatedProviders:[],defaultPayload:{pipe_id:$_,run_if:null,connector:null,config:{input_fields:{first_name:{alias:``},last_name:{alias:``}},output_fields:{name:{alias:``,enabled:!0}}}}},lv=`person:name:split@1`,uv=_(`name`),dv=_(`first_name`),fv=_(`last_name`),pv=r.object({pipe_id:r.literal(lv),connector:T(),run_if:S(),config:r.object({input_fields:z(r.object({[uv.name]:E({fieldName:uv.name})})),output_fields:R(r.object({[dv.name]:k({fieldName:dv.name}),[fv.name]:k({fieldName:fv.name})}))}).optional()}),mv=e=>V(K(uv,e)),hv={"person-name-split-v1-pipe0":{provider:`pipe0`,allowManagedConnection:!0,credits:{default:0},mode:`always`}},gv=class extends U{pipeId=lv;payload;payloadSchema=pv;billableOperations=hv;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[`person-name-split-v1-pipe0`]}getInputRequirement(){return mv(this.payload.config)}getRawOutputFields(){return{[dv.name]:this.catalogOutput(dv),[fv.name]:this.catalogOutput(fv)}}getConnectionsRequirements(){return[{provider:`pipe0`,rateLimitRatio:1,rateLimitOperation:`pipe0_logic`,allowManagedConnection:!0}]}},_v=pv,vv={pipeId:lv,basePipe:W(lv),label:`Split name`,executionMode:`single`,categories:[`people_data`],lifecycle:null,description:`Split a full name into first and last name.`,tags:[B.NAMES],docPath:G(lv),billableOperations:hv,inputFieldMode:`static`,outputFieldMode:`static`,defaultInputRequirement:mv(null),allowedUserConnectionProviders:[],managedProviders:[`pipe0`],deprecatedProviders:[],defaultPayload:{pipe_id:lv,run_if:null,connector:void 0,config:{input_fields:{name:{alias:``}},output_fields:{first_name:{alias:``,enabled:!0},last_name:{alias:``,enabled:!0}}}}},yv=`person:personalemail:profileurl:waterfall@1`,bv=_(`profile_url`),xv=_(`personal_email`),Sv=_(`alternate_personal_emails`),Cv=[`leadmagic`,`mixrank`],wv=[{provider:`leadmagic`},{provider:`mixrank`}],Tv=r.object({pipe_id:r.literal(yv),run_if:S(),connector:w(),config:r.object({providers:D({sectionKey:`general`,availableProviders:Cv,defaultProviders:wv}),input_fields:z(r.object({[bv.name]:E({fieldName:bv.name})})),output_fields:R(r.object({[xv.name]:k({fieldName:xv.name}),[Sv.name]:k({fieldName:Sv.name})}))}).optional()}),Ev=e=>V(K(bv,e)),Dv={"person-personalemail-profileurl-waterfall-v1-leadmagic":{provider:`leadmagic`,allowManagedConnection:!0,credits:{default:1},mode:`onSuccess`},"person-personalemail-profileurl-waterfall-v1-mixrank":{provider:`mixrank`,allowManagedConnection:!0,credits:{default:1},mode:`onSuccess`}},Ov=class extends U{pipeId=yv;payload;payloadSchema=Tv;billableOperations=Dv;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return this.payload.config?.providers.map(e=>e.provider)||[]}estimateBillableOperations(){return this.getProviderNames().map(e=>J(e,this.billableOperations).billableOperation)}getInputRequirement(){return Ev(this.payload.config)}getRawOutputFields(){return{[xv.name]:this.catalogOutput(xv,{isPrimaryOutput:!0}),[Sv.name]:this.catalogOutput(Sv)}}getConnectionsRequirements(){let e={leadmagic:`leadmagic_personal_email_finder`,mixrank:`mixrank-person-match`};return(this.payload.config?.providers||[]).map((t,n)=>({provider:t.provider,rateLimitRatio:q(n),rateLimitOperation:e[t.provider],allowManagedConnection:!0}))}},kv=Tv,Av={pipeId:yv,basePipe:W(yv),allowedUserConnectionProviders:Cv,managedProviders:Cv,deprecatedProviders:[],label:`Find personal email`,executionMode:`waterfall`,categories:[`people_data`],lifecycle:null,description:`Find the personal email address of a prospect by using a professional profile URL as input.`,tags:[B.EMAIL,B.PERSONAL_EMAIL],docPath:G(yv),billableOperations:Dv,defaultInputRequirement:Ev(null),inputFieldMode:`static`,outputFieldMode:`static`,defaultPayload:{pipe_id:yv,connector:null,run_if:null,config:{providers:wv,input_fields:{profile_url:{alias:``}},output_fields:{personal_email:{alias:``,enabled:!0},alternate_personal_emails:{alias:``,enabled:!1}}}}},jv=_(`profile_url`),Mv=_(`post_list_string`),Nv=_(`crustdata_post_list`),Pv=`person:posts:crustdata@1`,Fv=r.object({pipe_id:r.literal(Pv),run_if:S(),connector:w(),config:r.object({limit:ca({path:`config.limit`,groupPath:`config.general`,max:100,min:1,required:!0,sectionKey:`general`,info:``,label:`Limit`,legend:`Max. 100`}),input_fields:z(r.object({[jv.name]:E({fieldName:jv.name})})),output_fields:R(r.object({[Mv.name]:k({fieldName:Mv.name}),[Nv.name]:k({fieldName:Nv.name})}))}).optional()}),Iv=e=>V(K(jv,e)),Lv={"person-posts-crustdata-v1-crustdata":{allowManagedConnection:!0,credits:{default:2,level1:{credits:1,weight:1}},mode:`onSuccess`,note:`1.5 credits per post. Posts are fetched in increments of 5.`,provider:`crustdata`}},Rv=class extends U{pipeId=Pv;payload;payloadSchema=Fv;billableOperations=Lv;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`crustdata`]}estimateBillableOperations(){return[`person-posts-crustdata-v1-crustdata`]}getInputRequirement(){return Iv(this.payload.config)}getRawOutputFields(){return{[Mv.name]:this.catalogOutput(Mv),[Nv.name]:this.catalogOutput(Nv)}}getConnectionsRequirements(){return[{provider:`crustdata`,rateLimitRatio:1,rateLimitOperation:`crustdata_realtime_post_fetch`,allowManagedConnection:!0}]}},zv=Fv,Bv={pipeId:Pv,inputFieldMode:`static`,outputFieldMode:`static`,basePipe:W(Pv),label:`LinkedIn posts`,executionMode:`single`,categories:[`people_data`],lifecycle:null,description:`Find list of recent LinkedIn posts.`,tags:[B.LINKEDIN],docPath:G(Pv),billableOperations:Lv,allowedUserConnectionProviders:[`crustdata`],managedProviders:[`crustdata`],deprecatedProviders:[],defaultInputRequirement:Iv(null),defaultPayload:{pipe_id:Pv,connector:null,run_if:null,config:{limit:5,input_fields:{profile_url:{alias:``}},output_fields:{crustdata_post_list:{alias:``,enabled:!0},post_list_string:{alias:``,enabled:!0}}}}},Vv=`person:profile:waterfall@1`,Hv=_(`profile`),Uv=_(`profile_url`),Wv=[`prospeo`,`icypeas`,`amplemarket`],Gv=[{provider:`amplemarket`},{provider:`prospeo`},{provider:`icypeas`}],Kv=r.object({pipe_id:r.literal(Vv),run_if:S(),connector:w(),config:r.object({providers:D({sectionKey:`general`,availableProviders:Wv,defaultProviders:Gv}),input_fields:z(r.object({[Uv.name]:E({fieldName:Uv.name})})),output_fields:R(r.object({[Hv.name]:k({fieldName:Hv.name})}))}).optional()}),qv=e=>V(K(Uv,e)),Jv={"person-profile-waterfall-v1-icypeas":{provider:`icypeas`,credits:{default:1},mode:`onSuccess`,allowManagedConnection:!0},"person-profile-waterfall-v1-prospeo":{provider:`prospeo`,credits:{default:1},mode:`onSuccess`,allowManagedConnection:!0},"person-profile-waterfall-v1-amplemarket":{provider:`amplemarket`,credits:{default:1},mode:`onSuccess`,allowManagedConnection:!0}},Yv=class extends U{pipeId=Vv;payload;payloadSchema=Kv;billableOperations=Jv;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return this.payload.config?.providers.map(e=>e.provider)||[]}estimateBillableOperations(){return this.getProviderNames().map(e=>J(e,this.billableOperations).billableOperation)}getInputRequirement(){return qv(this.payload.config)}getRawOutputFields(){return{[Hv.name]:this.catalogOutput(Hv,{isPrimaryOutput:!0})}}getConnectionsRequirements(){let e={icypeas:`icypeas_scrape_profile`,prospeo:`prospeo_social_profile_lookup`,amplemarket:`amplemarket-person-reveal`};return(this.payload.config?.providers||[]).map((t,n)=>({provider:t.provider,rateLimitRatio:q(n),rateLimitOperation:e[t.provider],allowManagedConnection:!0}))}},Xv=Kv,Zv={pipeId:Vv,basePipe:W(Vv),label:`Full LinkedIn profile`,executionMode:`waterfall`,categories:[`people_data`],lifecycle:null,description:`Find a JSON representation of a LinkedIn profile.`,docPath:G(Vv),tags:[B.LINKEDIN,B.WATERFALL],managedProviders:Wv,deprecatedProviders:[],allowedUserConnectionProviders:Wv,inputFieldMode:`static`,outputFieldMode:`static`,billableOperations:Jv,defaultInputRequirement:qv(null),defaultPayload:{pipe_id:Vv,run_if:null,connector:null,config:{providers:Gv,input_fields:{profile_url:{alias:``}},output_fields:{profile:{alias:``,enabled:!0}}}}},Qv=_(`work_email`),$v=_(`crustdata_person_match`),ey=_(`crustdata_profile_match_score`),ty=`person:profile:workemail:crustdata@1`,ny=r.object({pipe_id:r.literal(ty),run_if:S(),connector:w(),config:r.object({input_fields:z(r.object({[Qv.name]:E({fieldName:Qv.name})})),output_fields:R(r.object({[$v.name]:k({fieldName:$v.name}),[ey.name]:k({fieldName:ey.name})}))}).optional()}),ry=e=>V(K(Qv,e)),iy={"person-profile-workemail-crustdata-v1-crustdata":{allowManagedConnection:!0,credits:{default:5},mode:`onSuccess`,provider:`crustdata`}},ay=class extends U{pipeId=ty;payload;payloadSchema=ny;billableOperations=iy;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`crustdata`]}estimateBillableOperations(){return[`person-profile-workemail-crustdata-v1-crustdata`]}getInputRequirement(){return ry(this.payload.config)}getRawOutputFields(){return{[$v.name]:this.catalogOutput($v),[ey.name]:this.catalogOutput(ey)}}getConnectionsRequirements(){return[{provider:`crustdata`,rateLimitRatio:1,rateLimitOperation:`crustdata_realtime_person_enrich`,allowManagedConnection:!0}]}},oy=ny,sy={pipeId:ty,inputFieldMode:`static`,outputFieldMode:`static`,basePipe:W(ty),label:`Profile from work email`,executionMode:`single`,categories:[`people_data`],lifecycle:null,description:`Find person profile by their work email address.`,tags:[B.EMAIL,B.PEOPLE_PROFILES],docPath:G(ty),billableOperations:iy,allowedUserConnectionProviders:[`crustdata`],managedProviders:[`crustdata`],deprecatedProviders:[],defaultInputRequirement:ry(null),defaultPayload:{pipe_id:ty,connector:null,run_if:null,config:{input_fields:{work_email:{alias:``}},output_fields:{crustdata_person_match:{alias:``,enabled:!0},crustdata_profile_match_score:{alias:``,enabled:!0}}}}},cy=`person:profileurl:email:waterfall@1`,ly=_(`email`),uy=_(`work_email`),dy=_(`profile_url`),fy=[`leadmagic`],py=[{provider:`leadmagic`}],my=r.object({pipe_id:r.literal(cy),run_if:S(),connector:w(),config:r.object({providers:D({sectionKey:`general`,defaultProviders:py,availableProviders:fy}),input_fields:z(r.object({[ly.name]:E({fieldName:ly.name}),[uy.name]:E({fieldName:uy.name})})),output_fields:R(r.object({[dy.name]:k({fieldName:dy.name})}))}).optional()}),hy=e=>H(K(ly,e),K(uy,e)),gy={"person-profileurl-email-waterfall-v1-leadmagic":{provider:`leadmagic`,allowManagedConnection:!0,credits:{default:3.5},mode:`onSuccess`}},_y=class extends U{pipeId=cy;payload;payloadSchema=my;billableOperations=gy;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return this.payload.config?.providers.map(e=>e.provider)||[]}estimateBillableOperations(){return this.getProviderNames().map(e=>J(e,this.billableOperations).billableOperation)}getInputRequirement(){return hy(this.payload.config)}getRawOutputFields(){return{[dy.name]:this.catalogOutput(dy,{isPrimaryOutput:!0})}}getConnectionsRequirements(){let e={leadmagic:`leadmagic_email_to_b2b_profile`};return(this.payload.config?.providers||[]).map((t,n)=>({provider:t.provider,rateLimitRatio:q(n),rateLimitOperation:e[t.provider],allowManagedConnection:!0}))}},vy=my,yy={pipeId:cy,basePipe:W(cy),managedProviders:fy,deprecatedProviders:[],allowedUserConnectionProviders:fy,label:`LinkedIn URL from email`,executionMode:`waterfall`,categories:[`people_data`],lifecycle:null,description:`Find the URL for a prospect's LinkedIn profile from their personal or professional email address.`,tags:[B.LINKEDIN],docPath:G(cy),billableOperations:gy,inputFieldMode:`static`,outputFieldMode:`static`,defaultInputRequirement:hy(null),defaultPayload:{pipe_id:cy,run_if:null,connector:null,config:{providers:py,input_fields:{email:{alias:``},work_email:{alias:``}},output_fields:{profile_url:{alias:``,enabled:!0}}}}},by=`person:profileurl:name@1`,xy=_(`name`),Sy=_(`company_name`),Cy=_(`location_hint`),wy=_(`profile_url`),Ty=r.object({pipe_id:r.literal(by),connector:T(),run_if:S(),config:r.object({input_fields:z(r.object({[xy.name]:E({fieldName:xy.name}),[Sy.name]:E({fieldName:Sy.name}),[Cy.name]:E({fieldName:Cy.name})})),output_fields:R(r.object({[wy.name]:k({fieldName:wy.name})}))}).optional()}),Ey=e=>Ea(V(K(xy,e)),V(K(Sy,e)),Da(K(Cy,e))),Dy={"person-profileurl-name-v1-pipe0":{provider:`pipe0`,allowManagedConnection:!0,credits:{default:.6},mode:`always`}},Oy=class extends U{pipeId=by;payload;payloadSchema=Ty;billableOperations=Dy;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[`person-profileurl-name-v1-pipe0`]}getInputRequirement(){return Ey(this.payload.config)}getRawOutputFields(){return{[wy.name]:this.catalogOutput(wy)}}getConnectionsRequirements(){return[{provider:`serper`,rateLimitRatio:1,rateLimitOperation:`serper_search`,allowManagedConnection:!0}]}},ky=Ty,Ay={pipeId:by,basePipe:W(by),label:`LinkedIn URL from name`,executionMode:`single`,categories:[`people_data`],lifecycle:null,allowedUserConnectionProviders:[],managedProviders:[`pipe0`],deprecatedProviders:[],description:`Find the LinkedIn profile URL by using the prospect's name as input.`,docPath:G(by),tags:[B.LINKEDIN],billableOperations:Dy,defaultInputRequirement:Ey(null),inputFieldMode:`static`,outputFieldMode:`static`,defaultPayload:{pipe_id:by,connector:void 0,run_if:null,config:{input_fields:{company_name:{alias:``},location_hint:{alias:``},name:{alias:``}},output_fields:{profile_url:{alias:``,enabled:!0}}}}},jy=`person:workemail:profileurl:waterfall@1`,My=_(`profile_url`),Ny=_(`work_email`),Py=_(`email_validation_status`),Fy=[`hunter`,`amplemarket`,`findymail`,`leadmagic`,`crustdata`],Iy=[{provider:`hunter`},{provider:`amplemarket`},{provider:`leadmagic`},{provider:`findymail`},{provider:`crustdata`}],Ly=r.object({pipe_id:r.literal(jy),connector:w(),run_if:S(),config:r.object({providers:D({availableProviders:Fy,defaultProviders:Iy,sectionKey:`general`}),allow_catch_all_emails:O({path:`config.allow_catch_all_emails`,defaultValue:!0,groupPath:`config.general`,sectionKey:`general`,info:``,label:`Allow catch-all emails`}),allow_risky_emails:O({path:`config.allow_risky_emails`,defaultValue:!0,groupPath:`config.general`,sectionKey:`general`,info:`Higher chance of bouncing or being marked as spam.`,label:`Allow risky emails`}),input_fields:z(r.object({[My.name]:E({fieldName:My.name})})),output_fields:R(r.object({[Ny.name]:k({fieldName:Ny.name}),[Py.name]:k({fieldName:Py.name})}))}).optional()}),Ry=e=>V(K(My,e)),zy={"person-workemail-profileurl-waterfall-v1-hunter":{provider:`hunter`,allowManagedConnection:!0,credits:{default:1},mode:`onSuccess`},"person-workemail-profileurl-waterfall-v1-leadmagic":{provider:`leadmagic`,allowManagedConnection:!0,credits:{default:2,level1:{credits:.7,weight:1}},mode:`onSuccess`},"person-workemail-profileurl-waterfall-v1-findymail":{provider:`findymail`,allowManagedConnection:!0,credits:{default:2,level1:{credits:1,weight:1}},mode:`onSuccess`},"person-workemail-profileurl-waterfall-v1-crustdata":{provider:`crustdata`,allowManagedConnection:!0,credits:{default:3,level1:{credits:2,weight:1}},mode:`onSuccess`},"person-workemail-profileurl-waterfall-v1-amplemarket":{provider:`amplemarket`,allowManagedConnection:!0,credits:{default:2.5,level1:{credits:1.5,weight:1}},mode:`onSuccess`}},By=class extends U{pipeId=jy;payload;payloadSchema=Ly;billableOperations=zy;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return this.payload.config?.providers.map(e=>e.provider)||[]}estimateBillableOperations(){return this.getProviderNames().map(e=>J(e,this.billableOperations).billableOperation)}getInputRequirement(){return Ry(this.payload.config)}getRawOutputFields(){return{[Ny.name]:this.catalogOutput(Ny,{isPrimaryOutput:!0}),[Py.name]:this.catalogOutput(Py,{isPrimaryOutput:!1})}}getConnectionsRequirements(){let e={leadmagic:`leadmagic_email_b2b_lookup`,hunter:`prospeo_email_lookup`,amplemarket:`amplemarket-person-reveal`,findymail:`findymail_email_b2b_lookup`,crustdata:`crustdata_realtime_person_enrich`};return(this.payload.config?.providers||[]).map((t,n)=>({provider:t.provider,rateLimitRatio:q(n),rateLimitOperation:e[t.provider],allowManagedConnection:!0}))}},Vy=Ly,Hy={pipeId:jy,basePipe:W(jy),label:`Work email from LinkedIn URL`,executionMode:`waterfall`,categories:[`people_data`],lifecycle:null,description:`Find work email addresses from B2B profile.`,tags:[B.EMAIL,B.WORK_EMAIL,B.WATERFALL],docPath:G(jy),managedProviders:Fy,allowedUserConnectionProviders:Fy,deprecatedProviders:[],inputFieldMode:`static`,outputFieldMode:`static`,billableOperations:zy,defaultInputRequirement:Ry(null),defaultPayload:{pipe_id:jy,connector:null,run_if:null,config:{providers:Iy,allow_catch_all_emails:!0,allow_risky_emails:!0,input_fields:{profile_url:{alias:``}},output_fields:{work_email:{alias:``,enabled:!0},email_validation_status:{alias:``,enabled:!1}}}}},Uy=`person:workemail:waterfall@1`,Wy=_(`name`),Gy=_(`company_domain`),Ky=_(`company_name`),qy=_(`work_email`),Jy=_(`email_validation_status`),Yy=[`leadmagic`,`prospeo`,`amplemarket`,`hunter`,`icypeas`,`findymail`],Xy=[{provider:`leadmagic`},{provider:`prospeo`},{provider:`amplemarket`},{provider:`hunter`},{provider:`icypeas`},{provider:`findymail`}],Zy={"person-workemail-waterfall-v1-leadmagic":{provider:`leadmagic`,allowManagedConnection:!0,credits:{default:.5,level1:{credits:.25,weight:1}},mode:`onSuccess`},"person-workemail-waterfall-v1-icypeas":{provider:`icypeas`,allowManagedConnection:!0,credits:{default:.5,level1:{credits:.25,weight:1}},mode:`onSuccess`},"person-workemail-waterfall-v1-prospeo":{provider:`prospeo`,allowManagedConnection:!0,credits:{default:1,level1:{credits:.5,weight:1}},mode:`onSuccess`},"person-workemail-waterfall-v1-findymail":{provider:`findymail`,allowManagedConnection:!0,credits:{default:1.5,level1:{credits:.75,weight:1}},mode:`onSuccess`},"person-workemail-waterfall-v1-hunter":{provider:`hunter`,allowManagedConnection:!0,credits:{default:1.3,level1:{credits:.75,weight:1}},mode:`onSuccess`},"person-workemail-waterfall-v1-amplemarket":{provider:`amplemarket`,allowManagedConnection:!0,credits:{default:3,level1:{credits:2,weight:1}},mode:`onSuccess`}},Qy=r.object({pipe_id:r.literal(Uy),connector:w(),run_if:S(),config:r.object({providers:D({availableProviders:Yy,defaultProviders:Xy,sectionKey:`general`,providerCredits:La(Zy,Yy)}),allow_catch_all_emails:O({path:`config.allow_catch_all_emails`,defaultValue:!0,groupPath:`config.general`,sectionKey:`general`,info:`Catch-alls appear valid but remain undeliverable-risk.`,label:`Allow catch-all emails`}),allow_risky_emails:O({path:`config.allow_risky_emails`,defaultValue:!0,groupPath:`config.general`,sectionKey:`general`,info:`DNS configuration and spam reputation may flag emails as high-risk.`,label:`Allow risky emails`}),input_fields:z(r.object({[Wy.name]:E({fieldName:Wy.name}),[Gy.name]:E({fieldName:Gy.name}),[Ky.name]:E({fieldName:Ky.name})})),output_fields:R(r.object({[qy.name]:k({fieldName:qy.name}),[Jy.name]:k({fieldName:Jy.name})}))}).optional()}),$y=e=>Ea(V(K(Wy,e)),H(K(Gy,e),K(Ky,e))),eb=class extends U{pipeId=Uy;payload;payloadSchema=Qy;billableOperations=Zy;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return this.payload.config?.providers.map(e=>e.provider)||[]}estimateBillableOperations(){return this.getProviderNames().map(e=>J(e,this.billableOperations).billableOperation)}getInputRequirement(){return $y(this.payload.config)}getRawOutputFields(){return{[qy.name]:this.catalogOutput(qy,{isPrimaryOutput:!0}),[Jy.name]:this.catalogOutput(Jy,{isPrimaryOutput:!0})}}getConnectionsRequirements(){let e={leadmagic:`leadmagic_email_lookup`,prospeo:`prospeo_email_lookup`,icypeas:`icypeas_email_lookup`,findymail:`findymail_email_lookup`,hunter:`hunter_email_finder`,amplemarket:`amplemarket-person-reveal`};return(this.payload.config?.providers||[]).map((t,n)=>({provider:t.provider,rateLimitRatio:q(n),rateLimitOperation:e[t.provider],allowManagedConnection:!0}))}},tb=Qy,nb={pipeId:Uy,basePipe:W(Uy),label:`Work email from name`,executionMode:`waterfall`,categories:[`people_data`],lifecycle:null,description:`Find work email addresses in a waterfall motion.`,tags:[B.EMAIL,B.WORK_EMAIL,B.WATERFALL],docPath:G(Uy),managedProviders:Yy,deprecatedProviders:[],allowedUserConnectionProviders:Yy,inputFieldMode:`static`,outputFieldMode:`static`,billableOperations:Zy,defaultInputRequirement:$y(null),defaultPayload:{pipe_id:Uy,connector:null,run_if:null,config:{providers:Xy,allow_catch_all_emails:!0,allow_risky_emails:!0,input_fields:{company_name:{alias:``},company_domain:{alias:``},name:{alias:``}},output_fields:{work_email:{alias:``,enabled:!0},email_validation_status:{alias:``,enabled:!1}}}}},rb=`prompt:run@1`,ib=`prompt-run-v1`,ab=ti(ib),ob=r.object({pipe_id:r.literal(rb),connector:w(),run_if:S(),config:r.object({prompt:Hi({sectionKey:`general`,path:`config.prompt`,placeholder:Z(`prompt`),groupPath:`config.prompt`,supportedTags:[`input`,`output`]}),model:oa({sectionKey:`general`,label:`Model`,path:`config.model`,groupPath:`config.prompt`,billableOperations:ab})})}),sb=class extends U{pipeId=rb;payload;payloadSchema=ob;billableOperations=ab;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return ri(this.payload.config.model)}estimateBillableOperations(){return[ni(this.payload.config.model,ib)]}getInputRequirement(){return Hm([this.payload.config.prompt.template])}getSecretRequirements(){return Y([this.payload.config.prompt.template])}getConstantRequirements(){return X([this.payload.config.prompt.template])}getRawOutputFields(){let e=this.payload.config.prompt.template,t=this.payload.config.prompt.json_schemas??{},n={},r;try{r=jr(e)}catch{return n}for(let e of r.outputs){let r=e.type;if(r===`json`){let i=e.schemaRef?t[e.schemaRef]:void 0;n[e.name]={enabled:!0,name:e.name,label:e.name,resolvedName:e.name,type:r,description:e.description,jsonMeta:{zodSchema:i,exampleValue:null},format:null,isCatalogFIeld:!1,isPrimaryOutput:!1}}else n[e.name]={enabled:!0,name:e.name,label:e.name,resolvedName:e.name,type:r,description:e.description,jsonMeta:null,format:e.format??null,isCatalogFIeld:!1,isPrimaryOutput:!1}}return n}getConnectionsRequirements(){return ii(this.payload.config.model)}},cb=ob,lb={pipeId:rb,inputFieldMode:`config`,outputFieldMode:`config`,basePipe:W(rb),label:`AI prompt`,executionMode:`single`,categories:[`actions`,`tools`],lifecycle:null,description:`Executes configurable AI prompts with structured output fields.`,detailed_description:`General-purpose AI prompt runner. Inputs and outputs are fully dynamic โ defined by the tags in the prompt template.`,tags:[B.AI],docPath:G(rb),defaultInputRequirement:null,billableOperations:ab,allowedUserConnectionProviders:ai(),managedProviders:ai(),deprecatedProviders:[],defaultPayload:{pipe_id:rb,connector:null,run_if:null,config:{model:`openai-gpt-latest`,prompt:{template:``,json_schemas:{}}}}},ub=`sheet:row:append@1`,db=_(`sheet_record_id`),fb=_(`created_sheet`),pb=[{label:`Demo leads`,value:`demo-leads`},{label:`Demo companies`,value:`demo-companies`},{label:`Demo contacts`,value:`demo-contacts`}],mb=[{label:`Demo team`,value:`sandbox-team-1`},{label:`Demo workspace`,value:`sandbox-team-2`}],hb={requires:{connection:`pipe0`},enabledIf:ln(`pipe0`,`Select a pipe0 connection to see sheet suggestions`),options:async({query:e,client:t,environment:n})=>n===`sandbox`?pb:t?(await t.sheets.list({query:e})).map(e=>({label:e.name&&e.name!==e.slug?`${e.name} (${e.slug})`:e.slug,value:e.slug})):[],widgets:{provider_logo:{provider:`pipe0`}}},gb={requires:{connection:`pipe0`},enabledIf:ln(`pipe0`,`Select a pipe0 connection to see team suggestions`),options:async({query:e,client:t,environment:n})=>n===`sandbox`?mb:t?(await t.teams.list({query:e})).map(e=>({label:e.name,value:e.id})):[],widgets:{provider_logo:{provider:`pipe0`}}},_b=r.object({pipe_id:r.literal(ub),connector:Gi(),run_if:S(),config:r.object({sheet:C({label:`Destination sheet`,info:"Sheet identifier. Either a literal slug, or type `@` to insert a field reference / `$` to insert a secret reference.",groupPath:`config.general`,sectionKey:`general`,inputType:`text`,path:`config.sheet`,minLength:3,expectedTagType:`string`,expectedTagFormat:`text`,optionsDef:hb}),run:O({defaultValue:!0,groupPath:`config.advanced`,path:`config.run`,sectionKey:`general`,description:`Auto-run sheet row after append action.`,label:`Run after append`}),allow_field_creation:O({label:`Create unkown fields`,defaultValue:!0,groupPath:`config.advanced`,path:`config.allow_field_creation`,sectionKey:`general`,description:`Add unkown fields as new sheet columns.`}),allow_sheet_creation:O({label:`Create missing sheets`,description:`Create new sheet if none exists with the provided name`,defaultValue:!0,groupPath:`config.advanced`,path:`config.allow_sheet_creation`,sectionKey:`general`}),new_sheet_team_id:da({label:`Team`,info:`Optional hint for the team where the sheet should be created. Only used when a new sheet is created.`,placeholder:`Select a teamโฆ`,required:!1,groupPath:`config.advanced`,path:`config.new_sheet_team_id`,sectionKey:`general`,optionsDef:gb,enabledIf:e=>e.config?.allow_sheet_creation?{disabled:!1}:{disabled:!0,message:`Turn on โUpsert sheetsโ to specify a team.`}}),included_fields:qi({label:`Fields`,info:`All fields are written if empty.`,groupPath:`config.general`,path:`config.included_fields`,sectionKey:`general`,disableSearch:!0}),output_fields:R(r.object({[db.name]:k({fieldName:db.name}),[fb.name]:k({fieldName:fb.name})}))})}),vb={"sheet-row-append-v1-pipe0":{provider:`pipe0`,allowManagedConnection:!1,credits:null,mode:null}},yb=class extends U{pipeId=ub;payload;payloadSchema=_b;billableOperations=vb;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[`sheet-row-append-v1-pipe0`]}getInputRequirement(){let e=[Hm([this.payload.config.sheet],{expectedType:`string`,expectedFormat:`text`})];if(this.payload.config.included_fields?.length)for(let t of this.payload.config.included_fields)e.push(V({name:t.field_name,resolvedName:t.field_name,label:``,description:``,type:e=>{let n=Vm(e,t.field_name);if(!n)throw Error(`Unable to find field with name ${t.field_name}. But needed by prompt parser.`);return n.type||`unknown`},format:null}));return Ea(...e)}getSecretRequirements(){return Y([this.payload.config.sheet])}getConstantRequirements(){return X([this.payload.config.sheet])}getRawOutputFields(){return{[db.name]:this.catalogOutput(db),[fb.name]:this.catalogOutput(fb)}}getConnectionsRequirements(){return[{provider:`pipe0`,rateLimitRatio:1,rateLimitOperation:`pipe0-sheet-operation`,allowManagedConnection:!0}]}},bb=_b,xb={pipeId:ub,basePipe:W(ub),label:`Append row to sheet`,executionMode:`single`,categories:[`actions`,`tools`],lifecycle:null,allowedUserConnectionProviders:[`pipe0`],managedProviders:[],deprecatedProviders:[],description:"Add rows to a pipe0 sheet. The sheet identifier may be a literal slug or a `{{ field_name }}` tag.",docPath:G(ub),tags:[B.FIELDS],billableOperations:vb,defaultInputRequirement:null,inputFieldMode:`config`,outputFieldMode:`static`,defaultPayload:{pipe_id:ub,connector:{strategy:`first`,connections:[]},run_if:null,config:{sheet:``,run:!0,allow_field_creation:!0,allow_sheet_creation:!0,new_sheet_team_id:``,included_fields:[],output_fields:{sheet_record_id:{alias:``,enabled:!0},created_sheet:{alias:``,enabled:!0}}}}},Sb=`sheet:row:expandappend@1`,Cb=_(`sheet_record_ids`),wb=_(`input_objects`),Tb=r.object({pipe_id:r.literal(Sb),connector:Gi(),run_if:S(),config:r.object({sheet:ra({label:`Sheet name`,info:`Unique identifier for the sheet`,groupPath:`config.general`,sectionKey:`general`,inputType:`text`,path:`config.sheet`,minLength:3}),run:O({defaultValue:!0,groupPath:`config.general`,path:`config.run`,sectionKey:`general`,info:`Enrich record after write. Ignored if target sheet writes to other sheets.`,label:`Run`}),allow_field_creation:O({defaultValue:!0,groupPath:`config.general`,path:`config.allow_field_creation`,sectionKey:`general`,info:`Add unkown object fields to the sheet definition.`,label:`Allow field creation`}),input_fields:z(r.object({[wb.name]:E({fieldName:wb.name})})),output_fields:R(r.object({[Cb.name]:k({fieldName:Cb.name})}))})}),Eb={"sheet-row-expandappend-v1-pipe0":{provider:`pipe0`,allowManagedConnection:!1,credits:null,mode:null}},Db=e=>V(K(wb,e)),Ob=class extends U{pipeId=Sb;payload;payloadSchema=Tb;billableOperations=Eb;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[`sheet-row-expandappend-v1-pipe0`]}getInputRequirement(){return Db(this.payload.config)}getRawOutputFields(){return{[Cb.name]:this.catalogOutput(Cb)}}getConnectionsRequirements(){return[{provider:`pipe0`,rateLimitRatio:1,rateLimitOperation:`pipe0-sheet-operation`,allowManagedConnection:!0}]}},kb=Tb,Ab={pipeId:Sb,basePipe:W(Sb),label:`Object list to sheet rows`,executionMode:`single`,categories:[`actions`,`tools`],lifecycle:null,allowedUserConnectionProviders:[`pipe0`],managedProviders:[],deprecatedProviders:[],description:`Expand a list of nested objects into sheet rows.`,docPath:G(Sb),tags:[B.FIELDS],billableOperations:Eb,defaultInputRequirement:Db(null),inputFieldMode:`static`,outputFieldMode:`static`,defaultPayload:{pipe_id:Sb,connector:{strategy:`first`,connections:[]},run_if:null,config:{sheet:``,run:!0,allow_field_creation:!0,input_fields:{input_objects:{alias:``}},output_fields:{sheet_record_ids:{alias:``,enabled:!0}}}}},jb=`template:fill@1`,Mb=_(`template_output`),Nb=r.object({pipe_id:r.literal(jb),connector:w(),run_if:S(),config:r.object({template:Ui({sectionKey:`general`,path:`config.template`,label:`Template`,placeholder:Z(`template`),groupPath:`config.general`,required:!0}),output_fields:R(r.object({[Mb.name]:k({fieldName:Mb.name})}))})}),Pb={"template-fill-v1-pipe0":{credits:{default:0},allowManagedConnection:!0,provider:`pipe0`,mode:`always`}},Fb=class extends U{pipeId=jb;payload;payloadSchema=Nb;billableOperations=Pb;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[`template-fill-v1-pipe0`]}getInputRequirement(){return Hm([this.payload.config.template])}getSecretRequirements(){return Y([this.payload.config.template])}getConstantRequirements(){return X([this.payload.config.template])}getRawOutputFields(){return{[Mb.name]:this.catalogOutput(Mb)}}getConnectionsRequirements(){return[]}},Ib=Nb,Lb={pipeId:jb,inputFieldMode:`config`,outputFieldMode:`config`,basePipe:W(jb),label:`Fill a text template`,executionMode:`single`,categories:[`tools`],lifecycle:null,description:`Replaces template tags like {{ name }} with actual values.`,tags:[B.TEXT],docPath:G(jb),defaultInputRequirement:null,billableOperations:Pb,allowedUserConnectionProviders:[],managedProviders:[`pipe0`],deprecatedProviders:[],defaultPayload:{pipe_id:jb,connector:null,run_if:null,config:{template:``,output_fields:{template_output:{alias:``,enabled:!0}}}}},Rb=`website:extract:firecrawl@1`,zb=_(`website_url`),Bb=_(`firecrawl_extract_result`),Vb=r.object({pipe_id:r.literal(Rb),connector:w(),run_if:S(),config:r.object({json_schema:ua({sectionKey:`general`,groupPath:`config.extraction`,path:`config.json_schema`,label:`Output JSON schema`,info:`Specify the data you want to extract as a JSON schema.`,allowEmpty:!1,required:!0}),extraction_prompt:ia({sectionKey:`general`,groupPath:`config.extraction`,path:`config.extraction_prompt`,label:`Extraction Prompt`,info:`Prompt the scraper on what it should extract. Template tags are not supported.`,rows:5,minLength:10,placeholder:`E.g. Extract the company missing and latest news.`}),enable_full_domain_crawl:O({sectionKey:`general`,groupPath:`config.extraction`,defaultValue:!1,path:`config.enable_full_domain_crawl`,info:`If this option is enabled all URLs from this domain will be scraped.`,label:`Crawl full domain`}),enable_web_search:O({sectionKey:`general`,groupPath:`config.extraction`,label:`Enable web search`,path:`enable_web_search`,defaultValue:!1,info:`When 'true', the extraction will follow links outside the specified domain.`}),input_fields:z(r.object({[zb.name]:E({fieldName:zb.name})})),output_fields:R(r.object({[Bb.name]:k({fieldName:Bb.name})}))})}),Hb=e=>V(K(zb,e)),Ub={"website-extract-firecrawl-v1-firecrawl":{allowManagedConnection:!0,provider:`firecrawl`,credits:{default:2,level1:{credits:1,weight:1}},mode:`onSuccess`}},Wb=class extends U{pipeId=Rb;payload;payloadSchema=Vb;billableOperations=Ub;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`firecrawl`]}estimateBillableOperations(){return[`website-extract-firecrawl-v1-firecrawl`]}getInputRequirement(){return Hb(this.payload.config)}getRawOutputFields(){return{[Bb.name]:this.catalogOutput(Bb)}}getConnectionsRequirements(){return[{provider:`firecrawl`,rateLimitRatio:1,rateLimitOperation:`firecrawl_generic`,allowManagedConnection:!0}]}},Gb=Vb,Kb={pipeId:Rb,basePipe:W(Rb),label:`Extract`,executionMode:`single`,categories:[`tools`],lifecycle:null,description:`Perform advanced AI scraping to extract data from any website. Search all subdomains and combine scraped data with search results.`,tags:[B.SCRAPE],docPath:G(Rb),billableOperations:Ub,inputFieldMode:`static`,outputFieldMode:`static`,allowedUserConnectionProviders:[`firecrawl`],managedProviders:[`firecrawl`],deprecatedProviders:[],defaultInputRequirement:Hb(null),defaultPayload:{pipe_id:Rb,run_if:null,connector:null,config:{json_schema:{type:`object`},enable_full_domain_crawl:!1,enable_web_search:!1,extraction_prompt:``,input_fields:{website_url:{alias:``}},output_fields:{firecrawl_extract_result:{alias:``,enabled:!0}}}}},qb=`website:maplinks:firecrawl@1`,Jb={"website-maplinks-firecrawl-v1-firecrawl":{allowManagedConnection:!0,provider:`firecrawl`,credits:{default:1},mode:`onSuccess`}},Yb=_(`website_url`),Xb=_(`mapped_links`),Zb=r.object({pipe_id:r.literal(qb),connector:w(),run_if:S(),config:r.object({page_limit:ca({label:`Page limit`,info:`Number of pages searched`,groupPath:`config.general`,max:50,min:1,required:!1,path:`config.page_limit`,sectionKey:`general`}),sitemap:aa({label:`Sitemap`,info:`Include sitemap links`,sectionKey:`general`,groupPath:`config.general`,path:`config.sitemap`,defaultValue:`include`,required:!1,options:[{value:`include`,label:`Include`},{value:`skip`,label:`Skip`},{value:`only`,label:`Only`}]}),search:ra({sectionKey:`general`,label:`Search`,inputType:`text`,info:`Return matching urls`,groupPath:`config.general`,path:`config.search`}).default(``),input_fields:z(r.object({[Yb.name]:E({fieldName:Yb.name})})),output_fields:R(r.object({[Xb.name]:k({fieldName:Xb.name})}))}).optional()}),Qb=e=>V(K(Yb,e)),$b=class extends U{pipeId=qb;payload;payloadSchema=Zb;billableOperations=Jb;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`firecrawl`]}estimateBillableOperations(){return[`website-maplinks-firecrawl-v1-firecrawl`]}getInputRequirement(){return Qb(this.payload.config)}getRawOutputFields(){return{[Xb.name]:this.catalogOutput(Xb)}}getConnectionsRequirements(){return[{provider:`firecrawl`,rateLimitRatio:1,rateLimitOperation:`firecrawl_map_requests`,allowManagedConnection:!0}]}},ex=Zb,tx={pipeId:qb,basePipe:W(qb),label:`Map domain links`,executionMode:`single`,categories:[`tools`],lifecycle:null,description:`Input a website and get all internal URLs on the website. Results do not include links to external pages.`,tags:[B.SCRAPE],docPath:G(qb),billableOperations:Jb,inputFieldMode:`static`,outputFieldMode:`static`,allowedUserConnectionProviders:[`firecrawl`],managedProviders:[`firecrawl`],deprecatedProviders:[],defaultInputRequirement:Qb(null),defaultPayload:{pipe_id:qb,run_if:null,connector:null,config:{page_limit:25,sitemap:`include`,search:``,input_fields:{website_url:{alias:``}},output_fields:{mapped_links:{alias:``,enabled:!0}}}}},nx=`website:scrape:firecrawl@1`,rx=_(`website_url`),ix=_(`website_markdown`),ax=_(`website_html`),ox=_(`website_links`),sx=r.object({pipe_id:r.literal(nx),connector:w(),run_if:S(),config:r.object({scrape_main_only:O({defaultValue:!1,label:`Scrape main content only?`,info:`If selected, content like headers, footers, and sidebars are excluded from the scrape results.`,sectionKey:`general`,groupPath:`config.general`,path:`config.scrape_main_only`}),input_fields:z(r.object({[rx.name]:E({fieldName:rx.name})})),output_fields:R(r.object({[ix.name]:k({fieldName:ix.name}),[ax.name]:k({fieldName:ax.name}),[ox.name]:k({fieldName:ox.name})}))}).optional()}),cx=e=>V(K(rx,e)),lx={"website-scrape-firecrawl-v1-firecrawl":{allowManagedConnection:!0,provider:`firecrawl`,credits:{default:.1,level1:{credits:.05,weight:1}},mode:`onSuccess`}},ux=class extends U{pipeId=nx;payload;payloadSchema=sx;billableOperations=lx;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`firecrawl`]}estimateBillableOperations(){return[`website-scrape-firecrawl-v1-firecrawl`]}getInputRequirement(){return cx(this.payload.config)}getRawOutputFields(){return{[ix.name]:this.catalogOutput(ix),[ax.name]:this.catalogOutput(ax),[ox.name]:this.catalogOutput(ox)}}getConnectionsRequirements(){return[{provider:`firecrawl`,rateLimitRatio:1,rateLimitOperation:`firecrawl_generic`,allowManagedConnection:!0}]}},dx=sx,fx={pipeId:nx,basePipe:W(nx),label:`Scrape`,executionMode:`single`,categories:[`tools`],lifecycle:null,description:`Turn any URL into clean data.`,tags:[B.SCRAPE],docPath:G(nx),billableOperations:lx,inputFieldMode:`static`,outputFieldMode:`static`,allowedUserConnectionProviders:[`firecrawl`],managedProviders:[`firecrawl`],deprecatedProviders:[],defaultInputRequirement:cx(null),defaultPayload:{pipe_id:nx,run_if:null,connector:null,config:{scrape_main_only:!0,input_fields:{website_url:{alias:``}},output_fields:{website_markdown:{alias:``,enabled:!0},website_html:{alias:``,enabled:!1},website_links:{alias:``,enabled:!1}}}}},px=`website:scrapelist:firecrawl@1`,mx={"website-scrapelist-firecrawl-v1-firecrawl":{allowManagedConnection:!0,provider:`firecrawl`,credits:{default:.1,level1:{credits:.05,weight:1}},mode:`onSuccess`,note:`You are charged per url that is scraped.`}},hx=_(`urls`),gx=_(`scrape_list_response`),_x=r.object({pipe_id:r.literal(px),connector:w(),run_if:S(),config:r.object({scrape_main_only:O({label:`Scrape main content only?`,defaultValue:!1,info:`If selected headers, footers, and sidebars will be excluded from the results.`,sectionKey:`general`,groupPath:`config.general`,path:`config.scrape_main_only`}),formats:sa({options:[{label:`Markdown`,value:`markdown`},{label:`HTML`,value:`html`},{label:`Links`,value:`links`}],disableSearch:!0,info:`Choose what you want to scrape from the website`,required:!1,label:`Formats`,sectionKey:`general`,groupPath:`config.general`,path:`config.formats`}),input_fields:z(r.object({[hx.name]:E({fieldName:hx.name})})),output_fields:R(r.object({[gx.name]:k({fieldName:gx.name})}))}).optional()}),vx=e=>V(K(hx,e)),yx=class extends U{pipeId=px;payload;payloadSchema=_x;billableOperations=mx;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`firecrawl`]}estimateBillableOperations(){return[,,,,,].fill(`list-url-scrape-firecrawl`)}getInputRequirement(){return vx(this.payload.config)}getRawOutputFields(){return{[gx.name]:this.catalogOutput(gx)}}getConnectionsRequirements(){return[{provider:`firecrawl`,rateLimitRatio:1,rateLimitOperation:`firecrawl_generic`,allowManagedConnection:!0}]}},bx=_x,xx={pipeId:px,basePipe:W(px),label:`Scrape list`,executionMode:`single`,categories:[`tools`],lifecycle:null,description:`Turn a list of URLs into clean scraped data.`,tags:[B.SCRAPE],docPath:G(px),billableOperations:mx,inputFieldMode:`static`,outputFieldMode:`static`,allowedUserConnectionProviders:[`firecrawl`],managedProviders:[`firecrawl`],deprecatedProviders:[],defaultInputRequirement:vx(null),defaultPayload:{pipe_id:px,run_if:null,connector:null,config:{scrape_main_only:!0,formats:[`html`,`markdown`,`links`],input_fields:{urls:{alias:``}},output_fields:{scrape_list_response:{alias:``,enabled:!0}}}}},Sx=[`companies:profiles:crustdata@1`,`companies:profiles:crustdata@2`,`companies:profiles:amplemarket@1`,`companies:profiles:amplemarket@2`,`people:profiles:crustdata@1`,`people:profiles:crustdata@2`,`people:profiles:amplemarket@1`,`people:profiles:amplemarket@2`],Cx=r.enum(Sx);function wx(e){let t=!0,n=e=>{if(t!==!1&&typeof e==`object`&&e){Array.isArray(e)&&e.length>0&&(t=!1);for(let r of Object.values(e))typeof r!=`object`&&r!=null&&r!==``&&(t=!1),typeof r==`object`&&r&&n(r)}};return n(e),t}function Tx(e,t){let n={name:e,config:t};return Pa.hashObject(n)}var Ex=class{validatePayload(e){try{return this.schema.parse(e)}catch(e){throw e instanceof n?Error(JSON.stringify(r.prettifyError(e))):e}}catalogOutput(e){return{name:e.name,enabled:!!this.payload.config?.output_fields?.[e.name].enabled,type:e.type,format:e.format,resolvedName:this.payload.config?.output_fields?.[e.name]?.alias||e.name,description:e.description,jsonMeta:e.jsonMeta,label:e.label,isCatalogFIeld:!0}}getOutputFields(){let e={};for(let[t,n]of Object.entries(this.getRawOutputFields()))n.enabled&&(e[t]=n);return e}getHashKey(){return Tx(this.searchId,this.payload)}};function Dx(e){return e.split(`@`)[0]}function Ox(e){return`/docs/search-catalog/${Dx(e)}/${e.split(`@`)[1]}`}function kx(e,t=32){return`https://www.google.com/s2/favicons?sz=${t}&domain=${e.replace(/^(https?:\/\/)?(www\.)?/,``)}`}function Ax(e,t){return e==null?void 0:t(e)}function jx(){return Mx({companyWebsiteUrl:`linkedin.com`,entity:`LinkedIn`})}function Mx({companyWebsiteUrl:e,entity:t}){if(e)return{image_url:kx(e),entity:t||e}}function Nx(e,t){let n=JSON.parse(JSON.stringify({...e}));if(!t)return n;for(let e in t)!(e in n)&&t[e]!=null&&(n[e]=t[e]);return n}const Px=`companies:profiles:amplemarket@2`,Fx=_(`company_name`),Ix=_(`company_domain`),Lx=_(`company_description`),Rx=_(`company_profile_url`),zx=_(`amplemarket_company_match`),Bx=r.object({search_id:r.literal(Px),connector:v.nullable().optional(),config:r.object({limit:L({label:`Limit`,description:`Max number of search results`,path:`config.limit`,min:1,max:100,groupPath:`config.pagination`,required:!0,sectionKey:`pagination`}),page_number:L({path:`config.page_number`,groupPath:`config.pagination`,required:!1,label:`Page number`,min:1,sectionKey:`pagination`,description:``}),output_fields:R(r.object({[Fx.name]:N({fieldName:Fx.name}),[Ix.name]:N({fieldName:Ix.name}),[Lx.name]:N({fieldName:Lx.name}),[Rx.name]:N({fieldName:Rx.name}),[zx.name]:N({fieldName:zx.name})})),filters:r.object({hq_locations:I({path:`config.filters.hq_locations`,sectionKey:`config.filters`,label:`HQ locations`,description:``,placeholder:Z(`location`),groupPath:`config.filters.location`,optionsDef:g(`locations`)}),company_names:j({sectionKey:`config.filters`,path:`config.filters.company_names`,label:`Company names`,description:``,placeholder:Z(`company_name`),groupPath:`config.filters.categories`,suggestionsDef:g(`company_names`)}),company_domains:j({sectionKey:`config.filters`,path:`config.filters.company_domains`,label:`Company domains`,description:``,placeholder:Z(`company_domain`),groupPath:`config.filters.categories`,suggestionsDef:g(`company_domains`,{widgets:e=>({logo_url:{url:kx(e.value)}})})}),company_profile_urls:j({sectionKey:`config.filters`,path:`config.filters.company_profile_urls`,label:`Company LinkedIn URLs`,description:``,groupPath:`config.filters.categories`}),company_types:P({sectionKey:`config.filters`,path:`config.filters.company_types`,disableSearch:!1,label:`Company Type`,description:``,groupPath:`config.filters.categories`,options:m(`amplemarket.company_types`),required:!1}),investors:F({sectionKey:`config.filters`,path:`config.filters.investors`,label:`Investor names`,optionsDef:g(`company.crunchbase_investors.crustdata`),description:`A list of company investor names`,placeholder:Z(`investor`),groupPath:`config.filters.investors`,disableSearch:!1,required:!1}),company_industries:M({sectionKey:`config.filters`,path:`config.filters.company_industries`,optionsDef:h(`amplemarket.industries`),disableSearch:!1,label:`Industries`,description:``,placeholder:Z(`industry`),groupPath:`config.filters.industry`}),customer_types:P({sectionKey:`config.filters`,path:`config.filters.customer_types`,options:[{value:`b2b`,label:`B2B`},{value:`b2c`,label:`B2C`}],required:!1,disableSearch:!0,label:`Customer Types`,description:``,groupPath:`config.filters.industry`}),keywords:j({sectionKey:`config.filters`,path:`config.filters.keywords`,label:`Keywords`,description:``,groupPath:`config.filters.industry`}),revenue_groups:P({path:`config.filters.revenue_groups`,sectionKey:`config.filters`,label:`Revenue groups`,description:``,disableSearch:!0,options:m(`amplemarket.company_revenue`),required:!1,groupPath:`config.filters.financials`}),founded_year:pa({path:`config.filters.founded_year`,sectionKey:`config.filters`,label:`Founded year`,groupPath:`config.filters.general`,min:0,max:2040,required:!1,description:``}),open_position_titles:A({path:`config.filters.open_position_titles`,sectionKey:`config.filters`,label:`Job openings for titles`,groupPath:`config.filters.job_openings`,description:``,placeholder:Z(`title`),suggestionsDef:g(`titles`)}),headcount:P({sectionKey:`config.filters`,path:`config.filters.company_sizes`,disableSearch:!1,options:m(`amplemarket.company_size`),label:`Headcount groups`,required:!1,description:``,groupPath:`config.filters.company_size`}),headcount_growth_l6m_in_percent:pa({path:`config.filters.headcount_growth_l6m_in_percent`,sectionKey:`config.filters`,label:`Headcount growth over last 6 months (in %)`,groupPath:`config.filters.company_size`,description:``,max:1e4,min:0,required:!1})}).check(e=>{wx(e.value)&&e.issues.push({code:`custom`,message:`You must set at least one filter.`,input:e.value})})})}),Vx={default:{input:[{fields:[]}]}},Hx=class extends Ex{searchId=Px;schema=Bx;payload;constructor(e){super(),this.payload=this.validatePayload(e)}getRawOutputFields(){return{[Fx.name]:this.catalogOutput(Fx),[Ix.name]:this.catalogOutput(Ix),[Lx.name]:this.catalogOutput(Lx),[Rx.name]:this.catalogOutput(Rx),[zx.name]:this.catalogOutput(zx)}}getConnectionsRequirements(){return[{provider:`amplemarket`,rateLimitOperation:`amplemarket_company_search`,rateLimitRatio:1,allowManagedConnection:!0}]}getDedupConfig(){return Vx}},Ux=Bx,Wx={searchId:Px,billableOperation:`companies-profiles-amplemarket-v2`,baseSearch:Dx(`companies:profiles:amplemarket@2`),label:`Company search`,categories:[`companies`],paginationType:`page_number`,hasManagedConnection:!0,allowsUserConnection:!0,lifecycle:null,description:`Filter based company search.`,tags:[B.COMPANY_PROFILES],docPath:Ox(Px),cost:{mode:`per_page`,credits:{default:2}},provider:`amplemarket`,defaultPayload:{search_id:Px,connector:null,config:{limit:100,page_number:1,output_fields:{company_name:{enabled:!0,alias:``},company_domain:{enabled:!0,alias:``},company_description:{enabled:!0,alias:``},company_profile_url:{enabled:!0,alias:``},amplemarket_company_match:{enabled:!0,alias:``}},filters:{company_industries:{include:[],exclude:[]},company_names:{include:[],exclude:[]},company_profile_urls:{include:[],exclude:[]},company_types:[],company_domains:{include:[],exclude:[]},customer_types:[],headcount_growth_l6m_in_percent:{min:null,max:null},founded_year:{min:null,max:null},revenue_groups:[],investors:[],keywords:{include:[],exclude:[]},open_position_titles:[],headcount:[],hq_locations:{include:[],exclude:[]}}}}},Gx=`companies:profiles:crustdata@2`,Kx=_(`company_name`),qx=_(`company_domain`),Jx=_(`company_description`),Yx=_(`company_profile_url`),Xx=_(`crustdata_company_match`),Zx=r.object({search_id:r.literal(Gx),connector:v.nullable().optional(),config:r.object({limit:L({path:`config.limit`,min:1,max:100,groupPath:`config.pagination`,required:!0,sectionKey:`pagination`,label:`Limit`,description:`Max number of search results`}),cursor:ya({path:`config.cursor`,groupPath:`config.pagination`,inputType:`text`,label:`Cursor`,sectionKey:`pagination`,description:`Pagination cursor`}),output_fields:R(r.object({[Kx.name]:N({fieldName:Kx.name}),[qx.name]:N({fieldName:qx.name}),[Jx.name]:N({fieldName:Jx.name}),[Yx.name]:N({fieldName:Yx.name}),[Xx.name]:N({fieldName:Xx.name})})),filters:r.object({hq_locations:I({path:`config.filters.hq_locations`,sectionKey:`config.filters`,label:`HQ locations`,description:``,placeholder:Z(`location`),groupPath:`config.filters.location`,optionsDef:g(`locations`)}),crunchbase_categories:I({path:`config.filters.crunchbase_categories`,sectionKey:`config.filters`,label:`Crunchbase categories`,placeholder:Z(`crunchbase_category`),description:``,groupPath:`config.filters.categories`,optionsDef:g(`company.crunchbase_categories.crustdata`)}),crunchbase_investors:I({path:`config.filters.crunchbase_investors`,sectionKey:`config.filters`,label:`Investors to include (Crunchbase)`,description:``,placeholder:Z(`investor`),groupPath:`config.filters.investors`,optionsDef:g(`company.crunchbase_investors.crustdata`)}),tracxn_investors:I({path:`config.filters.tracxn_investors`,sectionKey:`config.filters`,label:`Investors to include (Tracxn)`,description:``,placeholder:Z(`investor`),groupPath:`config.filters.investors`,optionsDef:g(`company.tracxn_investors.crustdata`)}),company_types:M({sectionKey:`config.filters`,path:`config.filters.company_types`,optionsDef:{type:`static`,options:m(`crustdata.company_types`)},label:`Company types`,placeholder:`Public, Private, ...`,description:``,groupPath:`config.filters.categories`}),linkedin_industries:I({sectionKey:`config.filters`,path:`config.filters.linkedin_industries`,optionsDef:g(`linkedin_industries.crustdata`),label:`Industries`,description:``,placeholder:Z(`industry`),groupPath:`config.filters.industry`}),markets:I({sectionKey:`config.filters`,path:`config.filters.markets`,optionsDef:g(`company.markets.crustdata`),placeholder:`NYSE, TYO, ...`,label:`Markets`,description:``,groupPath:`config.filters.industry`}),linkedin_categories:I({sectionKey:`config.filters`,path:`config.filters.linkedin_categories`,optionsDef:g(`company.linkedin_categories.crustdata`),label:`LinkedIn category`,placeholder:`Marketing, Branding, ...`,description:``,groupPath:`config.filters.categories`}),headcount:M({path:`config.filters.headcount`,sectionKey:`config.filters`,label:`Headcount`,description:``,disableSearch:!0,placeholder:`1-10`,optionsDef:{type:`static`,options:m(`crustdata.company_size`)},groupPath:`config.filters.company_size`}),headcount_growth_l6m_in_percent:P({path:`config.filters.headcount_growth_l6m_in_percent`,sectionKey:`config.filters`,label:`Headcount growth over last 6 months in percent`,description:``,options:m(`crustdata.headcount_growth`),placeholder:`0-10%`,disableSearch:!0,required:!1,groupPath:`config.filters.company_size`}),revenue_in_usd:ha({path:`config.filters.revenue_in_usd`,sectionKey:`config.filters`,label:`Revenue (USD)`,description:``,legend:`1k - 10B`,min:1e3,max:1e10,groupPath:`config.filters.financials`}),last_funding_type:M({path:`config.filters.last_funding_type`,sectionKey:`config.filters`,label:`Last funding type`,placeholder:`Series A`,disableSearch:!0,optionsDef:{type:`static`,options:m(`crustdata.funding_rounds`)},description:``,groupPath:`config.filters.financials`}),last_funding_amount:ha({path:`config.filters.last_funding_amount`,sectionKey:`config.filters`,label:`Last funding amount`,legend:`1k - 10B`,min:1e3,max:1e10,description:``,groupPath:`config.filters.financials`}),number_of_followers:P({path:`config.filters.number_of_followers`,sectionKey:`config.filters`,label:`Number of LinkedIn followers`,placeholder:`1-500`,disableSearch:!0,description:``,required:!1,options:m(`crustdata.company_followers`),groupPath:`config.filters.web_presence`}),follower_growth_l6m_in_percent:P({path:`config.filters.follower_growth_l6m_in_percent`,sectionKey:`config.filters`,label:`LinkedIn follower growth within last 6 months`,required:!1,disableSearch:!0,placeholder:`0-10%`,description:``,options:m(`crustdata.follower_growth`),groupPath:`config.filters.web_presence`}),profile_summary_keywords:j({path:`config.filters.profile_summary_keywords`,sectionKey:`config.filters`,maxItems:50,label:`LinkedIn company description contains`,placeholder:Z(`company_profile_keyword`),description:``,groupPath:`config.filters.keywords`}),competitor_domains:j({path:`config.filters.competitor_domains`,sectionKey:`config.filters`,maxItems:50,label:`Competitor domain`,description:``,placeholder:Z(`company_domain`),groupPath:`config.filters.competitors`,suggestionsDef:g(`company_domains`,{widgets:e=>({logo_url:{url:kx(e.value)}})})})}).check(e=>{wx(e.value)&&e.issues.push({code:`custom`,message:`You must set at least one filter.`,input:e.value})})})}),Qx={default:{input:[{fields:[]}]}},$x=class extends Ex{searchId=Gx;schema=Zx;payload;constructor(e){super(),this.payload=this.validatePayload(e)}getRawOutputFields(){return{[Kx.name]:this.catalogOutput(Kx),[qx.name]:this.catalogOutput(qx),[Jx.name]:this.catalogOutput(Jx),[Yx.name]:this.catalogOutput(Yx),[Xx.name]:this.catalogOutput(Xx)}}getConnectionsRequirements(){return[{provider:`crustdata`,rateLimitOperation:`crustdata_company_db_search`,rateLimitRatio:1,allowManagedConnection:!0}]}getDedupConfig(){return Qx}},eS=Zx,tS={searchId:Gx,billableOperation:`companies-profiles-crustdata-v2`,baseSearch:Dx(`companies:profiles:crustdata@2`),label:`Company search`,categories:[`companies`],paginationType:`cursor`,hasManagedConnection:!0,allowsUserConnection:!0,lifecycle:null,description:`Filter based company search.`,tags:[B.COMPANY_PROFILES],docPath:Ox(Gx),cost:{mode:`per_page`,credits:{default:2}},provider:`crustdata`,defaultPayload:{search_id:Gx,connector:null,config:{limit:100,cursor:``,output_fields:{company_name:{enabled:!0,alias:``},company_domain:{enabled:!0,alias:``},company_description:{enabled:!0,alias:``},company_profile_url:{enabled:!0,alias:``},crustdata_company_match:{enabled:!0,alias:``}},filters:{company_types:{include:[],exclude:[]},headcount_growth_l6m_in_percent:[],last_funding_amount:{from:null,to:null},last_funding_type:{include:[],exclude:[]},linkedin_industries:{include:[],exclude:[]},linkedin_categories:{include:[],exclude:[]},crunchbase_categories:{include:[],exclude:[]},markets:{include:[],exclude:[]},revenue_in_usd:{from:null,to:null},crunchbase_investors:{include:[],exclude:[]},tracxn_investors:{include:[],exclude:[]},follower_growth_l6m_in_percent:[],headcount:{include:[],exclude:[]},hq_locations:{include:[],exclude:[]},number_of_followers:[],profile_summary_keywords:{include:[],exclude:[]},competitor_domains:{include:[],exclude:[]}}}}},nS=`companies:profiles:amplemarket@1`,rS=_(`company_name`),iS=_(`company_website_url`),aS=_(`company_description`),oS=_(`company_profile_url`),sS=_(`amplemarket_company_match`),cS=r.object({search_id:r.literal(nS),connector:v.nullable().optional(),config:r.object({limit:L({label:`Limit`,description:`Max number of search results`,path:`config.limit`,min:1,max:100,groupPath:`config.pagination`,required:!0,sectionKey:`pagination`}),page_number:L({path:`config.page_number`,groupPath:`config.pagination`,required:!1,label:`Page number`,min:1,sectionKey:`pagination`,description:``}),output_fields:R(r.object({[rS.name]:N({fieldName:rS.name}),[iS.name]:N({fieldName:iS.name}),[aS.name]:N({fieldName:aS.name}),[oS.name]:N({fieldName:oS.name}),[sS.name]:N({fieldName:sS.name})})),filters:r.object({hq_locations:I({path:`config.filters.hq_locations`,sectionKey:`config.filters`,label:`HQ locations`,description:``,placeholder:Z(`location`),groupPath:`config.filters.location`,optionsDef:g(`locations`)}),company_names:j({sectionKey:`config.filters`,path:`config.filters.company_names`,label:`Company names`,description:``,placeholder:Z(`company_name`),groupPath:`config.filters.categories`,suggestionsDef:g(`company_names`)}),company_website_urls:j({sectionKey:`config.filters`,path:`config.filters.company_website_urls`,label:`Company domains`,description:``,placeholder:Z(`company_domain`),groupPath:`config.filters.categories`,suggestionsDef:g(`company_domains`,{widgets:{emoji:{char:`๐`}}})}),company_profile_urls:j({sectionKey:`config.filters`,path:`config.filters.company_profile_urls`,label:`Company LinkedIn URLs`,description:``,groupPath:`config.filters.categories`}),company_types:P({sectionKey:`config.filters`,path:`config.filters.company_types`,disableSearch:!1,label:`Company Type`,description:``,groupPath:`config.filters.categories`,options:m(`amplemarket.company_types`),required:!1}),investors:F({sectionKey:`config.filters`,path:`config.filters.investors`,label:`Investor names`,optionsDef:g(`company.crunchbase_investors.crustdata`),description:`A list of company investor names`,placeholder:Z(`investor`),groupPath:`config.filters.investors`,disableSearch:!1,required:!1}),company_industries:M({sectionKey:`config.filters`,path:`config.filters.company_industries`,optionsDef:h(`amplemarket.industries`),disableSearch:!1,label:`Industries`,description:``,placeholder:Z(`industry`),groupPath:`config.filters.industry`}),customer_types:P({sectionKey:`config.filters`,path:`config.filters.customer_types`,options:[{value:`b2b`,label:`B2B`},{value:`b2c`,label:`B2C`}],required:!1,disableSearch:!0,label:`Customer Types`,description:``,groupPath:`config.filters.industry`}),keywords:j({sectionKey:`config.filters`,path:`config.filters.keywords`,label:`Keywords`,description:``,groupPath:`config.filters.industry`}),revenue_groups:P({path:`config.filters.revenue_groups`,sectionKey:`config.filters`,label:`Revenue groups`,description:``,disableSearch:!0,options:m(`amplemarket.company_revenue`),required:!1,groupPath:`config.filters.financials`}),founded_year:pa({path:`config.filters.founded_year`,sectionKey:`config.filters`,label:`Founded year`,groupPath:`config.filters.general`,min:0,max:2040,required:!1,description:``}),open_positions_titles:A({path:`config.filters.open_positions_titles`,sectionKey:`config.filters`,label:`Job openings for titles`,groupPath:`config.filters.job_openings`,description:``,placeholder:Z(`title`),suggestionsDef:g(`titles`)}),headcount:P({sectionKey:`config.filters`,path:`config.filters.company_sizes`,disableSearch:!1,options:m(`amplemarket.company_size`),label:`Headcount groups`,required:!1,description:``,groupPath:`config.filters.company_size`}),headcount_growth_last_6_months_in_percent:pa({path:`config.filters.headcount_growth_last_6_months_in_percent`,sectionKey:`config.filters`,label:`Headcount growth over last 6 months (in %)`,groupPath:`config.filters.company_size`,description:``,max:1e4,min:0,required:!1})}).check(e=>{wx(e.value)&&e.issues.push({code:`custom`,message:`You must set at least one filter.`,input:e.value})})})}),lS={default:{input:[{fields:[]}]}},uS=class extends Ex{searchId=nS;schema=cS;payload;constructor(e){super(),this.payload=this.validatePayload(e)}getRawOutputFields(){return{[rS.name]:this.catalogOutput(rS),[iS.name]:this.catalogOutput(iS),[aS.name]:this.catalogOutput(aS),[oS.name]:this.catalogOutput(oS),[sS.name]:this.catalogOutput(sS)}}getConnectionsRequirements(){return[{provider:`amplemarket`,rateLimitOperation:`amplemarket_company_search`,rateLimitRatio:1,allowManagedConnection:!0}]}getDedupConfig(){return lS}},dS=cS,fS={searchId:nS,billableOperation:`companies-profiles-amplemarket-v1`,baseSearch:Dx(`companies:profiles:amplemarket@1`),label:`Company search`,categories:[`deprecated`],paginationType:`page_number`,hasManagedConnection:!0,allowsUserConnection:!0,lifecycle:{deprecatedOn:`2026-06-13`,replacedBy:`companies:profiles:amplemarket@2`},description:`Filter based company search.`,tags:[B.COMPANY_PROFILES],docPath:Ox(nS),cost:{mode:`per_page`,credits:{default:2}},provider:`amplemarket`,defaultPayload:{search_id:nS,connector:null,config:{limit:100,page_number:1,output_fields:{company_name:{enabled:!0,alias:``},company_website_url:{enabled:!0,alias:``},company_description:{enabled:!0,alias:``},company_profile_url:{enabled:!0,alias:``},amplemarket_company_match:{enabled:!0,alias:``}},filters:{company_industries:{include:[],exclude:[]},company_names:{include:[],exclude:[]},company_profile_urls:{include:[],exclude:[]},company_types:[],company_website_urls:{include:[],exclude:[]},customer_types:[],headcount_growth_last_6_months_in_percent:{min:null,max:null},founded_year:{min:null,max:null},revenue_groups:[],investors:[],keywords:{include:[],exclude:[]},open_positions_titles:[],headcount:[],hq_locations:{include:[],exclude:[]}}}}},pS=`companies:profiles:crustdata@1`,mS=_(`company_name`),hS=_(`company_website_url`),gS=_(`company_description`),_S=_(`company_profile_url`),vS=_(`crustdata_company_match`),yS=r.object({search_id:r.literal(pS),connector:v.nullable().optional(),config:r.object({limit:L({path:`config.limit`,min:1,max:100,groupPath:`config.pagination`,required:!0,sectionKey:`pagination`,label:`Limit`,description:`Max number of search results`}),cursor:ya({path:`config.cursor`,groupPath:`config.pagination`,inputType:`text`,label:`Cursor`,sectionKey:`pagination`,description:`Pagination cursor`}),output_fields:R(r.object({[mS.name]:N({fieldName:mS.name}),[hS.name]:N({fieldName:mS.name}),[gS.name]:N({fieldName:gS.name}),[_S.name]:N({fieldName:_S.name}),[vS.name]:N({fieldName:vS.name})})),filters:r.object({hq_locations:I({path:`config.filters.hq_locations`,sectionKey:`config.filters`,label:`HQ locations`,description:``,placeholder:Z(`location`),groupPath:`config.filters.location`,optionsDef:g(`locations`)}),crunchbase_categories:I({path:`config.filters.crunchbase_categories`,sectionKey:`config.filters`,label:`Crunchbase categories`,placeholder:Z(`crunchbase_category`),description:``,groupPath:`config.filters.categories`,optionsDef:g(`company.crunchbase_categories.crustdata`)}),crunchbase_investors:I({path:`config.filters.crunchbase_investors`,sectionKey:`config.filters`,label:`Investors to include (Crunchbase)`,description:``,placeholder:Z(`investor`),groupPath:`config.filters.investors`,optionsDef:g(`company.crunchbase_investors.crustdata`)}),tracxn_investors:I({path:`config.filters.tracxn_investors`,sectionKey:`config.filters`,label:`Investors to include (Tracxn)`,description:``,placeholder:Z(`investor`),groupPath:`config.filters.investors`,optionsDef:g(`company.tracxn_investors.crustdata`)}),company_types:M({sectionKey:`config.filters`,path:`config.filters.company_types`,optionsDef:{type:`static`,options:m(`crustdata.company_types`)},label:`Company types`,placeholder:`Public, Private, ...`,description:``,groupPath:`config.filters.categories`}),linkedin_industries:I({sectionKey:`config.filters`,path:`config.filters.linkedin_industries`,optionsDef:g(`linkedin_industries.crustdata`),label:`Industries`,description:``,placeholder:Z(`industry`),groupPath:`config.filters.industry`}),markets:I({sectionKey:`config.filters`,path:`config.filters.markets`,optionsDef:g(`company.markets.crustdata`),placeholder:`NYSE, TYO, ...`,label:`Markets`,description:``,groupPath:`config.filters.industry`}),linkedin_categories:I({sectionKey:`config.filters`,path:`config.filters.linkedin_categories`,optionsDef:g(`company.linkedin_categories.crustdata`),label:`LinkedIn category`,placeholder:`Marketing, Branding, ...`,description:``,groupPath:`config.filters.categories`}),headcount:M({path:`config.filters.headcount`,sectionKey:`config.filters`,label:`Headcount`,description:``,disableSearch:!0,placeholder:`1-10`,optionsDef:{type:`static`,options:m(`crustdata.company_size`)},groupPath:`config.filters.company_size`}),headcount_growth_last_6m_in_percent:P({path:`config.filters.headcount_growth_last_6m_in_percent`,sectionKey:`config.filters`,label:`Headcount growth over last 6 months in percent`,description:``,options:m(`crustdata.headcount_growth`),placeholder:`0-10%`,disableSearch:!0,required:!1,groupPath:`config.filters.company_size`}),revenue_in_usd:ha({path:`config.filters.revenue_in_usd`,sectionKey:`config.filters`,label:`Revenue (USD)`,description:``,legend:`1k - 10B`,min:1e3,max:1e10,groupPath:`config.filters.financials`}),last_funding_type:M({path:`config.filters.last_funding_type`,sectionKey:`config.filters`,label:`Last funding type`,placeholder:`Series A`,disableSearch:!0,optionsDef:{type:`static`,options:m(`crustdata.funding_rounds`)},description:``,groupPath:`config.filters.financials`}),last_funding_amount:ha({path:`config.filters.last_funding_amount`,sectionKey:`config.filters`,label:`Last funding amount`,legend:`1k - 10B`,min:1e3,max:1e10,description:``,groupPath:`config.filters.financials`}),number_of_followers:P({path:`config.filters.number_of_followers`,sectionKey:`config.filters`,label:`Number of LinkedIn followers`,placeholder:`1-500`,disableSearch:!0,description:``,required:!1,options:m(`crustdata.company_followers`),groupPath:`config.filters.web_presence`}),follower_growth_last_6m_in_percent:P({path:`config.filters.follower_growth_last_6m_in_percent`,sectionKey:`config.filters`,label:`LinkedIn follower growth within last 6 months`,required:!1,disableSearch:!0,placeholder:`0-10%`,description:``,options:m(`crustdata.follower_growth`),groupPath:`config.filters.web_presence`}),profile_summary_keywords:j({path:`config.filters.profile_summary_keywords`,sectionKey:`config.filters`,maxItems:50,label:`LinkedIn company description contains`,placeholder:Z(`company_profile_keyword`),description:``,groupPath:`config.filters.keywords`}),competitor_websites:j({path:`config.filters.competitor_websites`,sectionKey:`config.filters`,maxItems:50,label:`Competitor domains`,description:``,placeholder:Z(`company_domain`),groupPath:`config.filters.competitors`,suggestionsDef:g(`company_domains`,{widgets:{emoji:{char:`๐`}}})})}).check(e=>{wx(e.value)&&e.issues.push({code:`custom`,message:`You must set at least one filter.`,input:e.value})})})}),bS={default:{input:[{fields:[]}]}},xS=class extends Ex{searchId=pS;schema=yS;payload;constructor(e){super(),this.payload=this.validatePayload(e)}getRawOutputFields(){return{[mS.name]:this.catalogOutput(mS),[hS.name]:this.catalogOutput(hS),[gS.name]:this.catalogOutput(gS),[_S.name]:this.catalogOutput(_S),[vS.name]:this.catalogOutput(vS)}}getConnectionsRequirements(){return[{provider:`crustdata`,rateLimitOperation:`crustdata_company_db_search`,rateLimitRatio:1,allowManagedConnection:!0}]}getDedupConfig(){return bS}},SS=yS,CS={searchId:pS,billableOperation:`companies-profiles-crustdata-v1`,baseSearch:Dx(`companies:profiles:crustdata@1`),label:`Company search`,categories:[`deprecated`],paginationType:`cursor`,hasManagedConnection:!0,allowsUserConnection:!0,lifecycle:{deprecatedOn:`2026-06-13`,replacedBy:`companies:profiles:crustdata@2`},description:`Filter based company search.`,tags:[B.COMPANY_PROFILES],docPath:Ox(pS),cost:{mode:`per_page`,credits:{default:2}},provider:`crustdata`,defaultPayload:{search_id:pS,connector:null,config:{limit:100,cursor:``,output_fields:{company_name:{enabled:!0,alias:``},company_website_url:{enabled:!0,alias:``},company_description:{enabled:!0,alias:``},company_profile_url:{enabled:!0,alias:``},crustdata_company_match:{enabled:!0,alias:``}},filters:{company_types:{include:[],exclude:[]},headcount_growth_last_6m_in_percent:[],last_funding_amount:{from:null,to:null},last_funding_type:{include:[],exclude:[]},linkedin_industries:{include:[],exclude:[]},linkedin_categories:{include:[],exclude:[]},crunchbase_categories:{include:[],exclude:[]},markets:{include:[],exclude:[]},revenue_in_usd:{from:null,to:null},crunchbase_investors:{include:[],exclude:[]},tracxn_investors:{include:[],exclude:[]},follower_growth_last_6m_in_percent:[],headcount:{include:[],exclude:[]},hq_locations:{include:[],exclude:[]},number_of_followers:[],profile_summary_keywords:{include:[],exclude:[]},competitor_websites:{include:[],exclude:[]}}}}},wS=`people:profiles:amplemarket@1`,TS=_(`name`),ES=_(`company_website_url`),DS=_(`profile_url`),OS=_(`job_title`),kS=_(`amplemarket_person_match`),AS=r.object({search_id:r.literal(wS),connector:v.nullable().optional(),config:r.object({limit:L({path:`config.limit`,min:1,max:100,groupPath:`config.pagination`,required:!0,label:`Limit`,sectionKey:`pagination`,description:`Max number of search results`}),page_number:L({path:`config.page_number`,groupPath:`config.pagination`,required:!1,label:`Page number`,min:1,sectionKey:`pagination`,description:``}),output_fields:R(r.object({[TS.name]:N({fieldName:TS.name}),[ES.name]:N({fieldName:ES.name}),[DS.name]:N({fieldName:DS.name}),[OS.name]:N({fieldName:OS.name}),[kS.name]:N({fieldName:kS.name})})),filters:r.object({person_names:A({label:`Full name`,path:`config.filters.person_names`,sectionKey:`config.filters`,groupPath:`config.filters.general`}),current_locations:I({path:`config.filters.current_locations`,sectionKey:`config.filters`,label:`Location`,optionsDef:g(`locations`),groupPath:`config.filters.general`}),current_job_titles:A({path:`config.filters.current_job_titles`,sectionKey:`config.filters`,label:`Title`,placeholder:Z(`title`),description:``,order:1,groupPath:`config.filters.current_employer`,suggestionsDef:g(`titles`)}),current_seniority_levels:P({path:`config.filters.current_seniority_levels`,sectionKey:`config.filters`,placeholder:Z(`seniority`),label:`Seniority`,required:!1,disableSearch:!1,options:m(`amplemarket.seniority_levels`),description:``,groupPath:`config.filters.current_employer`}),current_departments:P({path:`config.filters.current_departments`,sectionKey:`config.filters`,label:`Department`,placeholder:Z(`department`),disableSearch:!1,required:!1,options:m(`amplemarket.departments`),description:``,groupPath:`config.filters.current_employer`}),current_job_functions:P({path:`config.filters.current_job_functions`,sectionKey:`config.filters`,label:`Job function`,placeholder:Z(`job_function`),disableSearch:!1,required:!1,options:m(`amplemarket.job_functions`),description:``,groupPath:`config.filters.current_employer`}),current_employer_locations:I({path:`config.filters.current_employer_locations`,sectionKey:`config.filters`,label:`Headquarters`,optionsDef:g(`locations`),groupPath:`config.filters.current_company`,placeholder:Z(`location`)}),current_employer_names:j({path:`config.filters.current_employer_names`,sectionKey:`config.filters`,label:`Company name`,groupPath:`config.filters.current_company`,description:``,placeholder:Z(`company_name`),suggestionsDef:g(`company_names`)}),current_employer_website_urls:j({path:`config.filters.current_employer_website_urls`,sectionKey:`config.filters`,label:`Company domain`,description:``,maxItems:200,placeholder:Z(`company_domain`),groupPath:`config.filters.current_company`,suggestionsDef:g(`company_domains`,{widgets:{emoji:{char:`๐`}}})}),current_employer_linkedin_industries:P({path:`config.filters.current_employer_linkedin_industries`,sectionKey:`config.filters`,label:`Industry`,disableSearch:!1,groupPath:`config.filters.current_company`,description:``,placeholder:Z(`industry`),required:!1,options:m(`linkedin.industries`)}),current_employer_estimated_revenue:P({path:`config.filters.current_employer_estimated_revenue`,sectionKey:`config.filters`,label:`Estimated revenue`,disableSearch:!1,required:!1,groupPath:`config.filters.current_company`,description:``,options:m(`amplemarket.company_revenue`)}),current_employer_founded_year:pa({path:`config.filters.current_employer_founded_year`,sectionKey:`config.filters`,label:`Founded year`,groupPath:`config.filters.current_company`,min:0,max:2040,required:!1,description:``}),current_employer_investors:A({path:`config.filters.current_employer_investors`,sectionKey:`config.filters`,label:`Employer investors`,groupPath:`config.filters.current_company`,placeholder:Z(`investor`),description:``}),current_employer_open_positions_titles:A({path:`config.filters.current_employer_open_positions_titles`,sectionKey:`config.filters`,label:`Open positions`,groupPath:`config.filters.current_company`,description:``,placeholder:Z(`title`),suggestionsDef:g(`titles`)}),school_names:I({path:`config.filters.school_names`,sectionKey:`config.filters`,label:`School names`,description:``,placeholder:Z(`school`),groupPath:`config.filters.education`,optionsDef:g(`schools`)})}).check(e=>{wx(e.value)&&e.issues.push({code:`custom`,message:`You must set at least one filter.`,input:e.value})})})}),jS={default:{input:[{fields:[]}]}},MS=class extends Ex{searchId=wS;schema=AS;payload;constructor(e){super(),this.payload=this.validatePayload(e)}getRawOutputFields(){return{[TS.name]:this.catalogOutput(TS),[ES.name]:this.catalogOutput(ES),[DS.name]:this.catalogOutput(DS),[OS.name]:this.catalogOutput(OS),[kS.name]:this.catalogOutput(kS)}}getConnectionsRequirements(){return[{provider:`amplemarket`,rateLimitOperation:`amplemarket_people_search`,rateLimitRatio:1,allowManagedConnection:!0}]}getDedupConfig(){return jS}},NS=AS,PS={searchId:wS,billableOperation:`people-profiles-amplemarket-v1`,baseSearch:Dx(`people:profiles:amplemarket@1`),paginationType:`page_number`,label:`People search`,categories:[`deprecated`],hasManagedConnection:!0,allowsUserConnection:!0,lifecycle:{deprecatedOn:`2026-06-13`,replacedBy:`people:profiles:amplemarket@2`},description:`Filter-based people search.`,tags:[B.PEOPLE_PROFILES],docPath:Ox(wS),cost:{mode:`per_page`,credits:{default:3},info:`1 page = 100 records; 200 results = 2 pages`},provider:`amplemarket`,defaultPayload:{search_id:wS,connector:null,config:{limit:50,page_number:1,output_fields:{name:{enabled:!0,alias:``},job_title:{enabled:!0,alias:``},profile_url:{enabled:!0,alias:``},company_website_url:{enabled:!0,alias:``},amplemarket_person_match:{enabled:!0,alias:``}},filters:{current_employer_names:{include:[],exclude:[]},current_departments:[],current_employer_locations:{include:[],exclude:[]},person_names:[],current_employer_founded_year:{min:null,max:null},current_employer_estimated_revenue:[],current_employer_investors:[],current_employer_open_positions_titles:[],current_job_functions:[],current_locations:{include:[],exclude:[]},current_employer_linkedin_industries:[],current_employer_website_urls:{include:[],exclude:[]},current_seniority_levels:[],school_names:{include:[],exclude:[]},current_job_titles:[]}}}},FS=`people:profiles:crustdata@1`,IS=_(`name`),LS=_(`company_website_url`),RS=_(`profile_url`),zS=_(`job_title`),BS=_(`crustdata_person_match`),VS=r.object({search_id:r.literal(FS),connector:v.nullable().optional(),config:r.object({limit:L({path:`config.limit`,min:1,max:100,groupPath:`config.pagination`,required:!0,sectionKey:`pagination`,label:`Limit`,description:`Max number of search results`}),cursor:ya({path:`config.cursor`,groupPath:`config.pagination`,inputType:`text`,label:`Cursor`,sectionKey:`pagination`,description:`Pagination cursor`}),output_fields:R(r.object({[IS.name]:N({fieldName:IS.name}),[LS.name]:N({fieldName:LS.name}),[RS.name]:N({fieldName:RS.name}),[zS.name]:N({fieldName:zS.name}),[BS.name]:N({fieldName:BS.name})})),filters:r.object({locations:I({path:`config.filters.locations`,sectionKey:`config.filters`,label:`Location`,placeholder:Z(`location`),optionsDef:g(`locations`),groupPath:`config.filters.general`}),current_job_titles:j({path:`config.filters.current_job_titles`,sectionKey:`config.filters`,label:`Title`,description:``,placeholder:Z(`title`),order:1,groupPath:`config.filters.current_employer`,suggestionsDef:g(`titles`)}),current_employers:j({path:`config.filters.current_employers`,sectionKey:`config.filters`,label:`Company name`,description:``,placeholder:Z(`company_name`),maxItems:200,groupPath:`config.filters.current_employer`,suggestionsDef:g(`company_names`,{widgets:{emoji:{char:`๐ท๏ธ`}}})}),current_employers_website_urls:j({path:`config.filters.current_employers_website_urls`,sectionKey:`config.filters`,label:`Company domain`,placeholder:Z(`company_domain`),description:``,maxItems:200,groupPath:`config.filters.current_employer`,suggestionsDef:g(`company_domains`,{widgets:{emoji:{char:`๐`}}})}),current_employers_linkedin_industries:I({path:`config.filters.current_employers_linkedin_industries`,sectionKey:`config.filters`,label:`Industry`,groupPath:`config.filters.current_employer`,placeholder:Z(`industry`),description:``,optionsDef:g(`linkedin_industries.crustdata`,{limit:300})}),years_at_current_company:P({path:`config.filters.years_at_current_company`,sectionKey:`config.filters`,label:`Years at current company`,placeholder:`1 to 2 years`,disableSearch:!1,required:!1,groupPath:`config.filters.current_employer`,description:``,options:m(`crustdata.years_of_experience`)}),previous_employers_website_urls:j({path:`config.filters.previous_employers_website_urls`,sectionKey:`config.filters`,label:`Previous employer domain`,description:``,placeholder:Z(`company_domain`),maxItems:200,groupPath:`config.filters.experience`,suggestionsDef:g(`company_domains`,{widgets:{emoji:{char:`๐`}}})}),previous_seniority_levels:M({path:`config.filters.previous_seniority_levels`,sectionKey:`config.filters`,label:`Previous seniority`,placeholder:Z(`seniority`),disableSearch:!0,optionsDef:h(`crustdata.person_seniority`),description:``,groupPath:`config.filters.experience`}),previous_employers:j({path:`config.filters.previous_employers`,sectionKey:`config.filters`,label:`Previous employer`,description:``,placeholder:Z(`company_name`),maxItems:200,groupPath:`config.filters.experience`,suggestionsDef:g(`company_names`,{widgets:{emoji:{char:`๐ท๏ธ`}}})}),previous_job_titles:j({path:`config.filters.previous_job_titles`,sectionKey:`config.filters`,label:`Previous title`,description:``,placeholder:Z(`title`),groupPath:`config.filters.experience`,suggestionsDef:g(`titles`)}),previous_employers_linkedin_industries:I({path:`config.filters.previous_employers_linkedin_industries`,sectionKey:`config.filters`,label:`Previous employer industries`,placeholder:Z(`industry`),groupPath:`config.filters.experience`,description:``,optionsDef:g(`linkedin_industries.crustdata`,{limit:300})}),profile_headline_keywords:j({path:`config.filters.profile_headline_keywords`,sectionKey:`config.filters`,label:`Headline contains keywords`,maxItems:100,groupPath:`config.filters.keywords`,placeholder:Z(`headline_keywords`)}),profile_summary_keywords:j({path:`config.filters.profile_summary_keywords`,sectionKey:`config.filters`,label:`Profile about section contains keywords`,maxItems:100,groupPath:`config.filters.keywords`,placeholder:Z(`profile_keywords`)}),profile_languages:M({path:`config.filters.profile_languages`,sectionKey:`config.filters`,label:`Profile language`,placeholder:Z(`languages`),optionsDef:h(`crustdata.person_profile_languages`),groupPath:`config.filters.general`}),languages:M({path:`config.filters.languages`,sectionKey:`config.filters`,label:`Spoken language`,placeholder:Z(`languages_1`),optionsDef:h(`crustdata.person_profile_languages`),groupPath:`config.filters.general`}),skills:I({path:`config.filters.skills`,sectionKey:`config.filters`,label:`Skills`,description:``,placeholder:Z(`skills`),groupPath:`config.filters.skills`,optionsDef:g(`skills`)}),years_of_experience:P({path:`config.filters.years_of_experience`,sectionKey:`config.filters`,label:`Years of experience`,placeholder:`1 to 2 years`,disableSearch:!0,description:``,required:!1,options:m(`crustdata.years_of_experience`),groupPath:`config.filters.experience`}),current_seniority_levels:M({path:`config.filters.current_seniority_levels`,sectionKey:`config.filters`,disableSearch:!0,label:`Seniority`,placeholder:Z(`seniority`),optionsDef:h(`crustdata.person_seniority`),description:``,groupPath:`config.filters.experience`}),certifications:j({path:`config.filters.certifications`,sectionKey:`config.filters`,label:`Certifications`,groupPath:`config.filters.certifications_honors`,placeholder:Z(`certification`),description:``}),honors:j({path:`config.filters.honors`,sectionKey:`config.filters`,label:`Honors`,groupPath:`config.filters.certifications_honors`,placeholder:Z(`honor`),description:``}),recently_changed_jobs:va({path:`config.filters.recently_changed_jobs`,sectionKey:`config.filters`,label:`Recently changed jobs`,description:``,defaultValue:null,groupPath:`config.filters.activities`}),fields_of_study:I({path:`config.filters.fields_of_study`,sectionKey:`config.filters`,label:`Fields of study`,placeholder:Z(`field_of_study`),description:``,groupPath:`config.filters.education`,optionsDef:g(`person.education_field_of_study.crustdata`)}),degree_names:I({path:`config.filters.degree_names`,sectionKey:`config.filters`,label:`Degree names`,placeholder:Z(`degree_name`),description:``,groupPath:`config.filters.education`,optionsDef:g(`person.education_degree.crustdata`)}),school_names:I({path:`config.filters.school_names`,sectionKey:`config.filters`,label:`School names`,description:``,placeholder:Z(`school`),groupPath:`config.filters.education`,optionsDef:g(`schools`)}),current_school_names:I({path:`config.filters.current_school_names`,sectionKey:`config.filters`,label:`Currently enrolled at`,description:``,placeholder:Z(`school`),groupPath:`config.filters.education`,optionsDef:g(`schools`)}),extracurricular_activities:j({path:`config.filters.extracurricular_activities`,sectionKey:`config.filters`,label:`Extracurricular activities`,description:``,placeholder:Z(`extracurricular`),groupPath:`config.filters.education`,suggestionsDef:g(`person.education_activities.crustdata`)})}).check(e=>{wx(e.value)&&e.issues.push({code:`custom`,message:`You must set at least one filter.`,input:e.value})})})}),HS={default:{input:[{fields:[]}]}},US=class extends Ex{searchId=FS;schema=VS;payload;constructor(e){super(),this.payload=this.validatePayload(e)}getRawOutputFields(){return{[IS.name]:this.catalogOutput(IS),[LS.name]:this.catalogOutput(LS),[RS.name]:this.catalogOutput(RS),[zS.name]:this.catalogOutput(zS),[BS.name]:this.catalogOutput(BS)}}getConnectionsRequirements(){return[{provider:`crustdata`,rateLimitOperation:`crustdata_people_db_search`,rateLimitRatio:1,allowManagedConnection:!0}]}getDedupConfig(){return HS}},WS=VS,GS={searchId:FS,billableOperation:`people-profiles-crustdata-v1`,baseSearch:Dx(`people:profiles:crustdata@1`),paginationType:`cursor`,label:`People search`,categories:[`deprecated`],hasManagedConnection:!0,allowsUserConnection:!0,lifecycle:{deprecatedOn:`2026-06-13`,replacedBy:`people:profiles:crustdata@2`},description:`Filter-based people search.`,tags:[B.PEOPLE_PROFILES],docPath:Ox(FS),cost:{mode:`per_page`,credits:{default:5},info:`1 page = 100 records; 200 results = 2 pages`},provider:`crustdata`,defaultPayload:{search_id:FS,connector:null,config:{limit:100,cursor:``,output_fields:{name:{enabled:!0,alias:``},job_title:{enabled:!0,alias:``},profile_url:{enabled:!0,alias:``},company_website_url:{enabled:!0,alias:``},crustdata_person_match:{enabled:!0,alias:``}},filters:{profile_headline_keywords:{include:[],exclude:[]},languages:{include:[],exclude:[]},profile_summary_keywords:{include:[],exclude:[]},previous_job_titles:{include:[],exclude:[]},current_employers:{include:[],exclude:[]},current_school_names:{include:[],exclude:[]},years_at_current_company:[],certifications:{include:[],exclude:[]},honors:{include:[],exclude:[]},current_employers_linkedin_industries:{include:[],exclude:[]},current_employers_website_urls:{include:[],exclude:[]},previous_employers_website_urls:{include:[],exclude:[]},current_seniority_levels:{include:[],exclude:[]},previous_seniority_levels:{include:[],exclude:[]},degree_names:{include:[],exclude:[]},locations:{include:[],exclude:[]},profile_languages:{include:[],exclude:[]},recently_changed_jobs:null,extracurricular_activities:{include:[],exclude:[]},school_names:{include:[],exclude:[]},fields_of_study:{include:[],exclude:[]},previous_employers:{include:[],exclude:[]},current_job_titles:{include:[],exclude:[]},skills:{include:[],exclude:[]},years_of_experience:[],previous_employers_linkedin_industries:{include:[],exclude:[]}}}}},KS=`people:profiles:amplemarket@2`,qS=_(`name`),JS=_(`company_domain`),YS=_(`profile_url`),XS=_(`job_title`),ZS=_(`amplemarket_person_match`),QS=r.object({search_id:r.literal(KS),connector:v.nullable().optional(),config:r.object({limit:L({path:`config.limit`,min:1,max:100,groupPath:`config.pagination`,required:!0,label:`Limit`,sectionKey:`pagination`,description:`Max number of search results`}),page_number:L({path:`config.page_number`,groupPath:`config.pagination`,required:!1,label:`Page number`,min:1,sectionKey:`pagination`,description:``}),output_fields:R(r.object({[qS.name]:N({fieldName:qS.name}),[JS.name]:N({fieldName:JS.name}),[YS.name]:N({fieldName:YS.name}),[XS.name]:N({fieldName:XS.name}),[ZS.name]:N({fieldName:ZS.name})})),filters:r.object({person_names:A({label:`Full name`,path:`config.filters.person_names`,sectionKey:`config.filters`,groupPath:`config.filters.general`}),current_locations:I({path:`config.filters.current_locations`,sectionKey:`config.filters`,label:`Location`,optionsDef:g(`locations`),groupPath:`config.filters.general`}),current_job_titles:A({path:`config.filters.current_job_titles`,sectionKey:`config.filters`,label:`Title`,placeholder:Z(`title`),description:``,order:1,groupPath:`config.filters.current_employer`,suggestionsDef:g(`titles`)}),current_seniority_levels:P({path:`config.filters.current_seniority_levels`,sectionKey:`config.filters`,placeholder:Z(`seniority`),label:`Seniority`,required:!1,disableSearch:!1,options:m(`amplemarket.seniority_levels`),description:``,groupPath:`config.filters.current_employer`}),current_departments:P({path:`config.filters.current_departments`,sectionKey:`config.filters`,label:`Department`,placeholder:Z(`department`),disableSearch:!1,required:!1,options:m(`amplemarket.departments`),description:``,groupPath:`config.filters.current_employer`}),current_job_functions:P({path:`config.filters.current_job_functions`,sectionKey:`config.filters`,label:`Job function`,placeholder:Z(`job_function`),disableSearch:!1,required:!1,options:m(`amplemarket.job_functions`),description:``,groupPath:`config.filters.current_employer`}),current_employer_locations:I({path:`config.filters.current_employer_locations`,sectionKey:`config.filters`,label:`Headquarters`,optionsDef:g(`locations`),groupPath:`config.filters.current_company`,placeholder:Z(`location`)}),current_employer_names:j({path:`config.filters.current_employer_names`,sectionKey:`config.filters`,label:`Company name`,groupPath:`config.filters.current_company`,description:``,placeholder:Z(`company_name`),suggestionsDef:g(`company_names`)}),current_employer_domains:j({path:`config.filters.current_employer_domains`,sectionKey:`config.filters`,label:`Company domain`,description:``,maxItems:200,placeholder:Z(`company_domain`),groupPath:`config.filters.current_company`,suggestionsDef:g(`company_domains`,{widgets:e=>({logo_url:{url:kx(e.value)}})})}),current_employer_linkedin_industries:P({path:`config.filters.current_employer_linkedin_industries`,sectionKey:`config.filters`,label:`Industry`,disableSearch:!1,groupPath:`config.filters.current_company`,description:``,placeholder:Z(`industry`),required:!1,options:m(`linkedin.industries`)}),current_employer_estimated_revenue:P({path:`config.filters.current_employer_estimated_revenue`,sectionKey:`config.filters`,label:`Estimated revenue`,disableSearch:!1,required:!1,groupPath:`config.filters.current_company`,description:``,options:m(`amplemarket.company_revenue`)}),current_employer_founded_year:pa({path:`config.filters.current_employer_founded_year`,sectionKey:`config.filters`,label:`Founded year`,groupPath:`config.filters.current_company`,min:0,max:2040,required:!1,description:``}),current_employer_investors:A({path:`config.filters.current_employer_investors`,sectionKey:`config.filters`,label:`Employer investors`,groupPath:`config.filters.current_company`,placeholder:Z(`investor`),description:``}),current_employer_open_position_titles:A({path:`config.filters.current_employer_open_position_titles`,sectionKey:`config.filters`,label:`Open positions`,groupPath:`config.filters.current_company`,description:``,placeholder:Z(`title`),suggestionsDef:g(`titles`)}),school_names:I({path:`config.filters.school_names`,sectionKey:`config.filters`,label:`School names`,description:``,placeholder:Z(`school`),groupPath:`config.filters.education`,optionsDef:g(`schools`)})}).check(e=>{wx(e.value)&&e.issues.push({code:`custom`,message:`You must set at least one filter.`,input:e.value})})})}),$S={default:{input:[{fields:[]}]}},eC=class extends Ex{searchId=KS;schema=QS;payload;constructor(e){super(),this.payload=this.validatePayload(e)}getRawOutputFields(){return{[qS.name]:this.catalogOutput(qS),[JS.name]:this.catalogOutput(JS),[YS.name]:this.catalogOutput(YS),[XS.name]:this.catalogOutput(XS),[ZS.name]:this.catalogOutput(ZS)}}getConnectionsRequirements(){return[{provider:`amplemarket`,rateLimitOperation:`amplemarket_people_search`,rateLimitRatio:1,allowManagedConnection:!0}]}getDedupConfig(){return $S}},tC=QS,nC={searchId:KS,billableOperation:`people-profiles-amplemarket-v2`,baseSearch:Dx(`people:profiles:amplemarket@2`),paginationType:`page_number`,label:`People search`,categories:[`people`],hasManagedConnection:!0,allowsUserConnection:!0,lifecycle:null,description:`Filter-based people search.`,tags:[B.PEOPLE_PROFILES],docPath:Ox(KS),cost:{mode:`per_page`,credits:{default:3},info:`1 page = 100 records; 200 results = 2 pages`},provider:`amplemarket`,defaultPayload:{search_id:KS,connector:null,config:{limit:50,page_number:1,output_fields:{name:{enabled:!0,alias:``},job_title:{enabled:!0,alias:``},profile_url:{enabled:!0,alias:``},company_domain:{enabled:!0,alias:``},amplemarket_person_match:{enabled:!0,alias:``}},filters:{current_employer_names:{include:[],exclude:[]},current_departments:[],current_employer_locations:{include:[],exclude:[]},person_names:[],current_employer_founded_year:{min:null,max:null},current_employer_estimated_revenue:[],current_employer_investors:[],current_employer_open_position_titles:[],current_job_functions:[],current_locations:{include:[],exclude:[]},current_employer_linkedin_industries:[],current_employer_domains:{include:[],exclude:[]},current_seniority_levels:[],school_names:{include:[],exclude:[]},current_job_titles:[]}}}},rC=`people:profiles:crustdata@2`,iC=_(`name`),aC=_(`company_domain`),oC=_(`profile_url`),sC=_(`job_title`),cC=_(`crustdata_person_match`),lC=r.object({search_id:r.literal(rC),connector:v.nullable().optional(),config:r.object({limit:L({path:`config.limit`,min:1,max:100,groupPath:`config.pagination`,required:!0,sectionKey:`pagination`,label:`Limit`,description:`Max number of search results`}),cursor:ya({path:`config.cursor`,groupPath:`config.pagination`,inputType:`text`,label:`Cursor`,sectionKey:`pagination`,description:`Pagination cursor`}),output_fields:R(r.object({[iC.name]:N({fieldName:iC.name}),[aC.name]:N({fieldName:aC.name}),[oC.name]:N({fieldName:oC.name}),[sC.name]:N({fieldName:sC.name}),[cC.name]:N({fieldName:cC.name})})),filters:r.object({locations:I({path:`config.filters.locations`,sectionKey:`config.filters`,label:`Location`,placeholder:Z(`location`),optionsDef:g(`locations`),groupPath:`config.filters.general`}),current_job_titles:j({path:`config.filters.current_job_titles`,sectionKey:`config.filters`,label:`Title`,description:``,placeholder:Z(`title`),order:1,groupPath:`config.filters.current_employer`,suggestionsDef:g(`titles`)}),current_employer_names:j({path:`config.filters.current_employer_names`,sectionKey:`config.filters`,label:`Company name`,description:``,placeholder:Z(`company_name`),maxItems:200,groupPath:`config.filters.current_employer`,suggestionsDef:g(`company_names`,{widgets:{emoji:{char:`๐ท๏ธ`}}})}),current_employer_domains:j({path:`config.filters.current_employer_domains`,sectionKey:`config.filters`,label:`Company domain`,placeholder:Z(`company_domain`),description:``,maxItems:200,groupPath:`config.filters.current_employer`,suggestionsDef:g(`company_domains`,{widgets:e=>({logo_url:{url:kx(e.value)}})})}),current_employer_industries:I({path:`config.filters.current_employer_industries`,sectionKey:`config.filters`,label:`Industry`,groupPath:`config.filters.current_employer`,placeholder:Z(`industry`),description:``,optionsDef:g(`linkedin_industries.crustdata`,{limit:300})}),years_at_current_company:P({path:`config.filters.years_at_current_company`,sectionKey:`config.filters`,label:`Years at current company`,placeholder:`1 to 2 years`,disableSearch:!1,required:!1,groupPath:`config.filters.current_employer`,description:``,options:m(`crustdata.years_of_experience`)}),previous_employer_domains:j({path:`config.filters.previous_employer_domains`,sectionKey:`config.filters`,label:`Previous employer domain`,description:``,placeholder:Z(`company_domain`),maxItems:200,groupPath:`config.filters.experience`,suggestionsDef:g(`company_domains`,{widgets:e=>({logo_url:{url:kx(e.value)}})})}),previous_seniority_levels:M({path:`config.filters.previous_seniority_levels`,sectionKey:`config.filters`,label:`Previous seniority`,placeholder:Z(`seniority`),disableSearch:!0,optionsDef:h(`crustdata.person_seniority`),description:``,groupPath:`config.filters.experience`}),previous_employer_names:j({path:`config.filters.previous_employer_names`,sectionKey:`config.filters`,label:`Previous employer`,description:``,placeholder:Z(`company_name`),maxItems:200,groupPath:`config.filters.experience`,suggestionsDef:g(`company_names`,{widgets:{emoji:{char:`๐ท๏ธ`}}})}),previous_job_titles:j({path:`config.filters.previous_job_titles`,sectionKey:`config.filters`,label:`Previous title`,description:``,placeholder:Z(`title`),groupPath:`config.filters.experience`,suggestionsDef:g(`titles`)}),previous_employer_industries:I({path:`config.filters.previous_employer_industries`,sectionKey:`config.filters`,label:`Previous employer industries`,placeholder:Z(`industry`),groupPath:`config.filters.experience`,description:``,optionsDef:g(`linkedin_industries.crustdata`,{limit:300})}),profile_headline_keywords:j({path:`config.filters.profile_headline_keywords`,sectionKey:`config.filters`,label:`Headline contains keywords`,maxItems:100,groupPath:`config.filters.keywords`,placeholder:Z(`headline_keywords`)}),profile_summary_keywords:j({path:`config.filters.profile_summary_keywords`,sectionKey:`config.filters`,label:`Profile about section contains keywords`,maxItems:100,groupPath:`config.filters.keywords`,placeholder:Z(`profile_keywords`)}),profile_languages:M({path:`config.filters.profile_languages`,sectionKey:`config.filters`,label:`Profile language`,placeholder:Z(`languages`),optionsDef:h(`crustdata.person_profile_languages`),groupPath:`config.filters.general`}),languages:M({path:`config.filters.languages`,sectionKey:`config.filters`,label:`Spoken language`,placeholder:Z(`languages_1`),optionsDef:h(`crustdata.person_profile_languages`),groupPath:`config.filters.general`}),skills:I({path:`config.filters.skills`,sectionKey:`config.filters`,label:`Skills`,description:``,placeholder:Z(`skills`),groupPath:`config.filters.skills`,optionsDef:g(`skills`)}),years_of_experience:P({path:`config.filters.years_of_experience`,sectionKey:`config.filters`,label:`Years of experience`,placeholder:`1 to 2 years`,disableSearch:!0,description:``,required:!1,options:m(`crustdata.years_of_experience`),groupPath:`config.filters.experience`}),current_seniority_levels:M({path:`config.filters.current_seniority_levels`,sectionKey:`config.filters`,disableSearch:!0,label:`Seniority`,placeholder:Z(`seniority`),optionsDef:h(`crustdata.person_seniority`),description:``,groupPath:`config.filters.experience`}),certifications:j({path:`config.filters.certifications`,sectionKey:`config.filters`,label:`Certifications`,groupPath:`config.filters.certifications_honors`,placeholder:Z(`certification`),description:``}),honors:j({path:`config.filters.honors`,sectionKey:`config.filters`,label:`Honors`,groupPath:`config.filters.certifications_honors`,placeholder:Z(`honor`),description:``}),recently_changed_jobs:va({path:`config.filters.recently_changed_jobs`,sectionKey:`config.filters`,label:`Recently changed jobs`,description:``,defaultValue:null,groupPath:`config.filters.activities`}),fields_of_study:I({path:`config.filters.fields_of_study`,sectionKey:`config.filters`,label:`Fields of study`,placeholder:Z(`field_of_study`),description:``,groupPath:`config.filters.education`,optionsDef:g(`person.education_field_of_study.crustdata`)}),degree_names:I({path:`config.filters.degree_names`,sectionKey:`config.filters`,label:`Degree names`,placeholder:Z(`degree_name`),description:``,groupPath:`config.filters.education`,optionsDef:g(`person.education_degree.crustdata`)}),school_names:I({path:`config.filters.school_names`,sectionKey:`config.filters`,label:`School names`,description:``,placeholder:Z(`school`),groupPath:`config.filters.education`,optionsDef:g(`schools`)}),current_school_names:I({path:`config.filters.current_school_names`,sectionKey:`config.filters`,label:`Currently enrolled at`,description:``,placeholder:Z(`school`),groupPath:`config.filters.education`,optionsDef:g(`schools`)}),extracurricular_activities:j({path:`config.filters.extracurricular_activities`,sectionKey:`config.filters`,label:`Extracurricular activities`,description:``,placeholder:Z(`extracurricular`),groupPath:`config.filters.education`,suggestionsDef:g(`person.education_activities.crustdata`)})}).check(e=>{wx(e.value)&&e.issues.push({code:`custom`,message:`You must set at least one filter.`,input:e.value})})})}),uC={default:{input:[{fields:[]}]}},dC=class extends Ex{searchId=rC;schema=lC;payload;constructor(e){super(),this.payload=this.validatePayload(e)}getRawOutputFields(){return{[iC.name]:this.catalogOutput(iC),[aC.name]:this.catalogOutput(aC),[oC.name]:this.catalogOutput(oC),[sC.name]:this.catalogOutput(sC),[cC.name]:this.catalogOutput(cC)}}getConnectionsRequirements(){return[{provider:`crustdata`,rateLimitOperation:`crustdata_people_db_search`,rateLimitRatio:1,allowManagedConnection:!0}]}getDedupConfig(){return uC}},fC=lC,pC={searchId:rC,billableOperation:`people-profiles-crustdata-v2`,baseSearch:Dx(`people:profiles:crustdata@2`),paginationType:`cursor`,label:`People search`,categories:[`people`],hasManagedConnection:!0,allowsUserConnection:!0,lifecycle:null,description:`Filter-based people search.`,tags:[B.PEOPLE_PROFILES],docPath:Ox(rC),cost:{mode:`per_page`,credits:{default:5},info:`1 page = 100 records; 200 results = 2 pages`},provider:`crustdata`,defaultPayload:{search_id:rC,connector:null,config:{limit:100,cursor:``,output_fields:{name:{enabled:!0,alias:``},job_title:{enabled:!0,alias:``},profile_url:{enabled:!0,alias:``},company_domain:{enabled:!0,alias:``},crustdata_person_match:{enabled:!0,alias:``}},filters:{profile_headline_keywords:{include:[],exclude:[]},languages:{include:[],exclude:[]},profile_summary_keywords:{include:[],exclude:[]},previous_job_titles:{include:[],exclude:[]},current_employer_names:{include:[],exclude:[]},current_school_names:{include:[],exclude:[]},years_at_current_company:[],certifications:{include:[],exclude:[]},honors:{include:[],exclude:[]},current_employer_industries:{include:[],exclude:[]},current_employer_domains:{include:[],exclude:[]},previous_employer_domains:{include:[],exclude:[]},current_seniority_levels:{include:[],exclude:[]},previous_seniority_levels:{include:[],exclude:[]},degree_names:{include:[],exclude:[]},locations:{include:[],exclude:[]},profile_languages:{include:[],exclude:[]},recently_changed_jobs:null,extracurricular_activities:{include:[],exclude:[]},school_names:{include:[],exclude:[]},fields_of_study:{include:[],exclude:[]},previous_employer_names:{include:[],exclude:[]},current_job_titles:{include:[],exclude:[]},skills:{include:[],exclude:[]},years_of_experience:[],previous_employer_industries:{include:[],exclude:[]}}}}},mC={"people:profiles:crustdata@1":US,"people:profiles:crustdata@2":dC,"companies:profiles:crustdata@1":xS,"companies:profiles:crustdata@2":$x,"people:profiles:amplemarket@1":MS,"people:profiles:amplemarket@2":eC,"companies:profiles:amplemarket@1":uS,"companies:profiles:amplemarket@2":Hx},hC={"people:profiles:crustdata@1":WS,"people:profiles:crustdata@2":fC,"companies:profiles:crustdata@1":SS,"companies:profiles:crustdata@2":eS,"people:profiles:amplemarket@1":NS,"people:profiles:amplemarket@2":tC,"companies:profiles:amplemarket@1":dS,"companies:profiles:amplemarket@2":Ux},gC={"people:profiles:crustdata@1":GS,"people:profiles:crustdata@2":pC,"companies:profiles:crustdata@1":CS,"companies:profiles:crustdata@2":tS,"people:profiles:amplemarket@1":PS,"people:profiles:amplemarket@2":nC,"companies:profiles:amplemarket@1":fS,"companies:profiles:amplemarket@2":Wx};function _C(e){return mC[e]}const vC=t.discriminatedUnion(`search_id`,Object.values(hC).map(e=>e)).openapi(`SearchPayloadSchema`);function yC(e,t){return Ca(t,gC[e].defaultPayload)}const bC=t.preprocess(e=>{if(!e||typeof e!=`object`||!(`search_id`in e))return e;let t=yC(e.search_id);return t?{...e,config:Ca(e?.config||{},t.config)}:e},vC),xC=t.object({config:t.object({environment:t.enum([`production`,`sandbox`]).default(`production`),widgets:t.object({enabled:t.boolean().default(!1)}).default({enabled:!1})}).default({environment:`production`,widgets:{enabled:!1}}),search:bC}).openapi(`SearchRequestSchema`),SC=In,CC=t.object({value:Cn,status:Sn,type:bn.optional(),format:zn.nullable().optional(),resolved_by:Gn.nullable().optional(),widgets:Fn.optional()}),wC=t.record(t.string(),CC.nullable());function TC(e){return hC[e]}const EC=t.enum([`cursor`,`page_number`]),DC=t.object({id:t.string(),status:t.enum([`completed`,`failed`,`pending`,`processing`]),search_id:Cx,errors:t.array(SC),results:t.array(wC),organization_id:t.string(),next_page:bC.nullable(),pagination_type:EC.nullable(),total_pages:t.int32().nullable()}).openapi(`SearchResponseSchema`);function OC(e){let t=e.split(`@`)[1];if(!t)throw Error(`No search version found`);return Number(t)}function kC(){let e={};for(let t of Object.values(gC)){let{baseSearch:n}=t;e[n]??=[],e[n].push(t)}return Object.entries(e).forEach(([t,n])=>{e[t]=n.sort((e,t)=>{let n=OC(e.searchId);return OC(t.searchId)-n})}),e}function AC(e){return gC[e]}const jC=kC();function MC(e){let t=[];for(let[n,r]of Object.entries(jC)){let i=r[0];if(!i)throw Error(`Found empty entry`);i.lifecycle?.deprecatedOn&&e!==`deprecated`||(e===null||i.categories.includes(e))&&t.push({...i,baseSearch:n,latestVersion:OC(i.searchId)})}return t}function NC(e){return Object.keys(gC[e].defaultPayload.config.output_fields)}function PC(e,t){let n=e.filter(e=>t===null?!0:e.categories.some(e=>e===t)),r={},i={},a={};for(let e of n){if(e.lifecycle&&e.lifecycle.deprecatedOn){i.Deprecated??=[],i.Deprecated.push(e.searchId);continue}a[e.provider]??=[],a[e.provider].push(e.searchId);for(let t of NC(e.searchId))r[t]??=[],r[t].push(e.searchId);for(let t of e.tags)i[t]??=[],i[t].push(e.searchId)}return{searchIdsByOutputField:r,searchIdsByTag:i,searchIdsByProvider:a,sortedTagEntries:Object.entries(i).sort((e,t)=>e[0].localeCompare(t[0])),sortedOutputFieldEntries:Object.entries(r).sort((e,t)=>e[0].localeCompare(t[0])),sortedProviderEntries:Object.entries(a).sort((e,t)=>e[0].localeCompare(t[0])),searchEntriesByBaseSearch:jC}}function FC(e){let t=AC(e);return{[t.provider]:t.cost.credits.default}}const IC={"prompt:run@1":sb,"company:newssummary:website@1":ml,"company:newssummary:domain@1":cs,"company:techstack:builtwith@1":nu,"company:techstack:builtwith@2":Fs,"company:websiteurl:email@1":du,"company:domain:workemail@1":Za,"company:funding:leadmagic@1":sc,"company:funding:leadmagic@2":fo,"people:workemail:waterfall@1":Em,"person:workemail:waterfall@1":eb,"people:email:iswork@1":bu,"email:iswork@1":Fm,"people:name:split@1":Yd,"person:name:split@1":gv,"people:validate:email:zerobounce@1":$p,"people:email:validate:zerobounce@2":zu,"email:validate:zerobounce@1":uh,"people:mobilenumber:workemail:waterfall@1":zd,"person:name:join@1":ov,"company:overview@1":kl,"company:overview@2":Gl,"company:overview@3":ws,"json:extract:multi@1":dg,"company:lookalikes:companyenrich@1":Rc,"company:lookalikes:companyenrich@2":Mo,"company:match:logodev@1":al,"company:match:logodev@2":$o,"person:posts:crustdata@1":Rv,"people:profile:workemail:crustdata@1":jp,"person:profile:workemail:crustdata@1":ay,"people:identity:email:waterfall@1":od,"person:identity:email:waterfall@1":c_,"person:identity:amplemarket@1":Kg,"email:send:resend@1":eh,"contact:create:resend@1":qs,"email:send:gmail@1":qm,"email:write@1":bh,"fields:merge@1":Xh,"field:slugify@1":Rh,"field:domainify@1":kh,"http:request@1":ag,"template:fill@1":Fb,"message:send:slack@1":yg,"message:write@1":Dg,"people:personalemail:profile:waterfall@1":cf,"person:personalemail:profileurl:waterfall@1":Ov,"website:scrape:firecrawl@1":ux,"website:scrapelist:firecrawl@1":yx,"website:extract:firecrawl@1":Wb,"website:maplinks:firecrawl@1":$b,"sheet:row:append@1":yb,"sheet:row:expandappend@1":Ob,"people:match:role:waterfall@1":_d,"person:match:role:waterfall@1":O_,"company:match:crustdata@1":qc,"company:match:crustdata@2":Vo,"person:match:amplemarket@1":__,"company:identity@2":kc,"company:identity@3":Co,"people:phone:profile:waterfall@1":yf,"person:mobile:profileurl:waterfall@1":z_,"people:phone:workemail:waterfall@1":Af,"person:mobile:workemail:waterfall@1":X_,"people:profile:waterfall@1":xp,"person:profile:waterfall@1":Yv,"people:profileurl:email:waterfall@1":Up,"person:profileurl:email:waterfall@1":_y,"person:profileurl:name@1":Oy,"people:email:validate:zerobounce@1":ku,"person:email:validate:millionverifier@1":Lg,"people:workemail:profileurl:waterfall@1":fm,"person:workemail:profileurl:waterfall@1":By,"company:identity@1":vc,"people:professionalprofile:waterfall@1":Vf,"people:professionalprofileurl:name@1":up,"people:professionalprofileurl:email:waterfall@1":$f,"people:mobilenumber:professionalprofile:waterfall@1":Od},LC={"prompt:run@1":cb,"company:newssummary:website@1":hl,"company:newssummary:domain@1":ls,"company:techstack:builtwith@1":ru,"company:techstack:builtwith@2":Is,"company:websiteurl:email@1":fu,"company:domain:workemail@1":Qa,"company:funding:leadmagic@1":cc,"company:funding:leadmagic@2":po,"people:workemail:waterfall@1":Dm,"person:workemail:waterfall@1":tb,"people:email:iswork@1":xu,"email:iswork@1":Im,"people:name:split@1":Xd,"person:name:split@1":_v,"people:validate:email:zerobounce@1":em,"people:email:validate:zerobounce@2":Bu,"email:validate:zerobounce@1":dh,"people:mobilenumber:workemail:waterfall@1":Bd,"person:name:join@1":sv,"company:overview@1":Al,"company:overview@2":Kl,"company:overview@3":Ts,"json:extract:multi@1":fg,"email:write@1":xh,"fields:merge@1":Zh,"field:slugify@1":zh,"field:domainify@1":Ah,"http:request@1":og,"email:send:resend@1":th,"contact:create:resend@1":Js,"company:lookalikes:companyenrich@1":zc,"company:lookalikes:companyenrich@2":No,"company:match:logodev@1":ol,"company:match:logodev@2":es,"person:posts:crustdata@1":zv,"people:profile:workemail:crustdata@1":Mp,"person:profile:workemail:crustdata@1":oy,"people:identity:email:waterfall@1":sd,"person:identity:email:waterfall@1":l_,"company:match:crustdata@1":Jc,"company:match:crustdata@2":Ho,"person:identity:amplemarket@1":qg,"message:send:slack@1":bg,"email:send:gmail@1":Jm,"message:write@1":Og,"template:fill@1":Ib,"website:scrape:firecrawl@1":dx,"website:scrapelist:firecrawl@1":bx,"website:extract:firecrawl@1":Gb,"website:maplinks:firecrawl@1":ex,"sheet:row:append@1":bb,"sheet:row:expandappend@1":kb,"people:match:role:waterfall@1":vd,"person:match:role:waterfall@1":k_,"company:identity@2":Ac,"company:identity@3":wo,"people:phone:profile:waterfall@1":bf,"person:mobile:profileurl:waterfall@1":B_,"people:personalemail:profile:waterfall@1":lf,"person:personalemail:profileurl:waterfall@1":kv,"people:profile:waterfall@1":Sp,"person:profile:waterfall@1":Xv,"people:profileurl:email:waterfall@1":Wp,"person:profileurl:email:waterfall@1":vy,"person:profileurl:name@1":ky,"people:email:validate:zerobounce@1":Au,"person:email:validate:millionverifier@1":Rg,"people:phone:workemail:waterfall@1":jf,"person:mobile:workemail:waterfall@1":Z_,"people:workemail:profileurl:waterfall@1":pm,"person:workemail:profileurl:waterfall@1":Vy,"person:match:amplemarket@1":v_,"company:identity@1":yc,"people:professionalprofile:waterfall@1":Hf,"people:professionalprofileurl:name@1":dp,"people:professionalprofileurl:email:waterfall@1":ep,"people:mobilenumber:professionalprofile:waterfall@1":kd},RC={"prompt:run@1":lb,"company:newssummary:website@1":gl,"company:newssummary:domain@1":us,"company:techstack:builtwith@1":iu,"company:techstack:builtwith@2":Ls,"company:websiteurl:email@1":pu,"company:domain:workemail@1":$a,"company:funding:leadmagic@1":lc,"company:funding:leadmagic@2":mo,"people:workemail:waterfall@1":Om,"person:workemail:waterfall@1":nb,"people:email:iswork@1":Su,"email:iswork@1":Lm,"people:name:split@1":Zd,"person:name:split@1":vv,"people:validate:email:zerobounce@1":tm,"people:mobilenumber:workemail:waterfall@1":Vd,"person:name:join@1":cv,"company:overview@1":jl,"company:overview@2":ql,"company:overview@3":Es,"json:extract:multi@1":pg,"email:send:resend@1":nh,"contact:create:resend@1":Ys,"email:send:gmail@1":Ym,"message:send:slack@1":xg,"message:write@1":kg,"email:write@1":Sh,"template:fill@1":Lb,"fields:merge@1":Qh,"field:slugify@1":Bh,"field:domainify@1":jh,"http:request@1":sg,"sheet:row:append@1":xb,"sheet:row:expandappend@1":Ab,"company:lookalikes:companyenrich@1":Bc,"company:lookalikes:companyenrich@2":Po,"people:match:role:waterfall@1":yd,"person:match:role:waterfall@1":A_,"company:match:logodev@1":sl,"company:match:logodev@2":ts,"person:posts:crustdata@1":Bv,"people:profile:workemail:crustdata@1":Np,"person:profile:workemail:crustdata@1":sy,"people:workemail:profileurl:waterfall@1":mm,"person:workemail:profileurl:waterfall@1":Hy,"people:identity:email:waterfall@1":cd,"person:identity:email:waterfall@1":u_,"company:match:crustdata@1":Yc,"company:match:crustdata@2":Uo,"person:identity:amplemarket@1":Jg,"email:validate:zerobounce@1":fh,"person:email:validate:millionverifier@1":zg,"people:personalemail:profile:waterfall@1":uf,"person:personalemail:profileurl:waterfall@1":Av,"people:email:validate:zerobounce@1":ju,"people:email:validate:zerobounce@2":Vu,"people:phone:workemail:waterfall@1":Mf,"person:mobile:workemail:waterfall@1":Q_,"website:scrape:firecrawl@1":fx,"website:scrapelist:firecrawl@1":xx,"website:extract:firecrawl@1":Kb,"website:maplinks:firecrawl@1":tx,"person:match:amplemarket@1":y_,"company:identity@2":jc,"company:identity@3":To,"people:phone:profile:waterfall@1":xf,"person:mobile:profileurl:waterfall@1":V_,"people:profile:waterfall@1":Cp,"person:profile:waterfall@1":Zv,"people:profileurl:email:waterfall@1":Gp,"person:profileurl:email:waterfall@1":yy,"person:profileurl:name@1":Ay,"company:identity@1":bc,"people:professionalprofile:waterfall@1":Uf,"people:professionalprofileurl:name@1":fp,"people:professionalprofileurl:email:waterfall@1":tp,"people:mobilenumber:professionalprofile:waterfall@1":Ad};function zC(e){return e.defaultPayload?.config?.output_fields?Object.keys(e.defaultPayload?.config?.output_fields||{}):[]}function BC(e){return IC[e]}function VC(e){return RC[e].defaultPayload}function HC(e){return LC[e]}const UC=r.discriminatedUnion(`pipe_id`,Object.values(LC)).openapi(`PipePayload`),WC=r.preprocess(e=>{if(!e||typeof e!=`object`||!(`pipe_id`in e))return e;try{let t=VC(vn.parse(e.pipe_id));return t?{...e,config:Ca(e?.config||{},t.config)}:e}catch{return e}},UC);function GC(e){return RC[e]}function KC(e,t){let n=GC(e);if(t in n.billableOperations)return n.billableOperations[t];throw Error(`Unable to find billable operation definition for pipeId '${e}' and operation '${t}'`)}function qC(e){let t=e.split(`@`)[1];if(!t)throw Error(`No pipe version found`);return Number(t)}function JC(){let e={};for(let t of Object.values(RC)){let{basePipe:n}=t;e[n]??=[],e[n].push(t)}return Object.entries(e).forEach(([t,n])=>{e[t]=n.sort((e,t)=>{let n=qC(e.pipeId);return qC(t.pipeId)-n})}),e}const YC=e=>{let t=GC(e),n=new Set(t.deprecatedProviders);return Array.from(new Set([...t.managedProviders,...t.allowedUserConnectionProviders])).filter(e=>!n.has(e))},XC=JC();function ZC(e,t){let n=new Map;for(let[t,r]of Object.entries(e))for(let e of Object.keys(r.billableOperations)){let r=n.get(e)??[];r.push(`pipe ${t}`),n.set(e,r)}for(let[e,r]of Object.entries(t)){let t=r.billableOperation,i=n.get(t)??[];i.push(`search ${e}`),n.set(t,i)}let r=[...n.entries()].filter(([,e])=>e.length>1);if(r.length>0){let e=r.map(([e,t])=>` "${e}" used by ${t.join(`, `)}`).join(`
|
|
74
|
-
`);throw Error(`Catalog has ${r.length} duplicate billable-operation key(s):\n${e}`)}}ZC(RC,gC);function QC(e){let t=[];for(let[n,r]of Object.entries(XC)){let i=r[0];if(!i)throw Error(`Found empty entry`);let a=i.categories;i.lifecycle?.deprecatedOn&&e!==`deprecated`||(e===null||a.includes(e))&&t.push({...i,basePipe:n,latestVersion:qC(i.pipeId)})}return t}function $C(e,t){let n=e.filter(e=>t===null?!0:e.categories.some(e=>e===t)),r={},i={},a={},o={};for(let e of n){let t=YC(e.defaultPayload.pipe_id);for(let n of t)o[n]??=[],o[n].push(e.defaultPayload.pipe_id);for(let t of zC(e))i[t]??=[],i[t].push(e.defaultPayload.pipe_id);if(e.defaultInputRequirement)for(let{field:t}of ka(e.defaultInputRequirement))r[t.name]??=[],r[t.name]?.push(e.defaultPayload.pipe_id);for(let t of e.tags)a[t]??=[],a[t].push(e.defaultPayload.pipe_id)}return{pipeIdsByInputField:r,pipeIdsByOutputField:i,pipeIdsByTag:a,pipeIdsByProvider:o,sortedTagEntries:Object.entries(a).sort((e,t)=>e[0].localeCompare(t[0])),sortedInputFieldEntries:Object.entries(r).sort((e,t)=>e[0].localeCompare(t[0])),sortedOutputFieldEntries:Object.entries(i).sort((e,t)=>e[0].localeCompare(t[0])),sortedProviderEntries:Object.entries(o).sort((e,t)=>e[0].localeCompare(t[0])),pipeEntriesByBasePipe:XC}}const ew=r.object({id:r.string(),organization_id:r.string(),order:r.array(xn),field_definitions:Qn,errors:r.array(In),records:r.record(xn,Yn),status:r.enum([`completed`,`failed`,`pending`,`processing`])}).openapi(`PipesResponseSchema`),tw=r.object({environment:gn.default(`production`),widgets:r.object({enabled:r.boolean().default(!1)}).default({enabled:!1}),field_definitions:r.object({enabled:r.boolean()}).default({enabled:!1}),transform:r.object({include_fields:r.enum([`input`,`annotated`])}).default({include_fields:`input`})}).default({environment:`production`,transform:{include_fields:`input`},widgets:{enabled:!1},field_definitions:{enabled:!1}}).openapi(`PipesRequestConfig`),nw=r.object({config:tw.openapi(`PipesRequestConfig`),field_annotations:Vn.optional().openapi(`PipesFieldAnnotations`),pipes:r.array(UC),input:r.array(Jn.openapi(`PipesInputSchema`)),scopes:r.array(r.string()).optional()});function rw(e){let t=GC(e);return Object.values(t.billableOperations).reduce((e,t)=>{let n=t.allowManagedConnection?t.credits.default:0;return e[t.provider]??=n,e[t.provider]=Math.min(e[t.provider],n),e},{})}const iw={"config.prompt":{order:1,label:`Prompt`,iconKey:`sparkles`,defaultExpand:!0},"config.general":{order:0,label:`General`,iconKey:`mix`,defaultExpand:!0},"config.advanced":{order:0,label:`Advanced`,iconKey:`sliders`,defaultExpand:!0},"config.input_fields":{order:0,label:`Input config`,description:`Point pipe inputs to new fields.`,iconKey:`input`,defaultExpand:!1},connector:{order:100,label:`Custom connections`,iconKey:`plug`,defaultExpand:!1},"config.extraction":{order:0,label:`Extraction`,iconKey:`code`,defaultExpand:!0},run_if:{order:99,label:`Run IF`,iconKey:`workflow`,defaultExpand:!1},"config.email":{order:3,label:`Email`,iconKey:`mail`,defaultExpand:!0},"config.json_extraction":{order:1,label:`Extract fields`,iconKey:`braces`,defaultExpand:!0},"config.providers":{order:1,label:`Providers`,iconKey:`tags`,defaultExpand:!0},"config.output_fields":{order:10,label:`Output config`,description:`Toggle or rename output fields.`,iconKey:`output`,defaultExpand:!1}},aw={general:{type:`form_section`,path:`general`,label:`Behavior`,description:`How this pipe runs and selects providers.`},pagination:{type:`form_section`,path:`pagination`,label:`Behavior`},pipe_io:{type:`form_section`,path:``,label:`I/O & conditions`},"config.filters":{type:`form_section`,path:`config.filters`,label:`I/O & conditions`}},ow={general:1,pagination:2,"config.input_fields":10,"config.pipe_io":11,"config.output_fields":12,"config.extractions":13,"config.filters":14,conditions:15,connector:16};function sw(e){let t=HC(e),n=[];function i(e){let t=y.get(e);if(t&&typeof t!=`function`)(t.type===`context_select_input`||t.type===`tagged_text_input`)&&t.optionsDef&&n.push(t);else if(typeof t==`function`){let e=t.staticMeta;e&&e.type===`tagged_text_input`&&e.optionsDef&&n.push(e)}if(typeof e==`object`&&e&&`unwrap`in e&&typeof e.unwrap==`function`&&i(e.unwrap()),e instanceof r.ZodObject)for(let t of Object.values(e.shape))i(t)}return i(t),n}function cw({pipePayload:e,validationContext:t,sectionOrder:n=ow,store:r,groupPathMatch:i=iw,formResolvers:a}){let o=HC(e.pipe_id),s=Fa(e.pipe_id,e.config||{});return Bi({schema:o,groupPathMatch:i,extractFromSchema:n=>{let i=y.get(n);if(r.field_options??={},i)return i&&typeof i==`function`?i({validationContext:t,pipePayload:e,userConnections:`connections`in r.field_options?(r.field_options.connections.options||[]).map(e=>{let t=e.widgets?.provider_logo?.provider;if(!t)throw Error(`Option is missing provider type'`);return{public_id:e.value,provider:t}}):[],pipeEntry:GC(e.pipe_id),hash:s}):i},sectionOrder:n,sectionMap:aw,store:r,formResolvers:a})}const lw={"config.pagination":{order:0,label:`Pagination`,iconKey:`list`,defaultExpand:!0},"config.prompt":{order:1,label:`Prompt`,iconKey:`sparkles`,defaultExpand:!0},"config.general":{order:0,label:`General`,iconKey:`mix`,defaultExpand:!0},"config.advanced":{order:0,label:`Advanced`,iconKey:`sliders`,defaultExpand:!0},"config.continue_existing_search":{order:0,label:`Continue existing search`,iconKey:`history`,defaultExpand:!1},"config.output_fields":{order:10,label:`Outputs`,iconKey:`output`,defaultExpand:!1},"config.filters.query":{order:2,label:`Query`,iconKey:`text`,defaultExpand:!0},"config.filters.personal_information":{label:`Personal information`,order:6,iconKey:`user`,defaultExpand:!1},"config.filters.job_information":{label:`Job information`,order:6,iconKey:`job`,defaultExpand:!1},"config.filters.company_information":{order:1,label:`Company information`,iconKey:`office`,defaultExpand:!1},"config.filters.education":{label:`Education`,iconKey:`school`,defaultExpand:!1},"config.filters.geografic":{label:`Location`,iconKey:`location`,defaultExpand:!1},"config.filters.location":{label:`Location`,iconKey:`location`,defaultExpand:!1},"config.filters.general":{label:`General`,iconKey:`filter`,defaultExpand:!1,order:1},"config.filters.job_openings":{label:`Job openings`,iconKey:`calendar`,defaultExpand:!1},"config.filters.website":{label:`Website`,iconKey:`web`,defaultExpand:!1},"config.filters.web_presence":{label:`Web presence`,iconKey:`web`,defaultExpand:!1},"config.filters.keywords":{label:`Keywords`,iconKey:`tags`,defaultExpand:!1},"config.filters.competitors":{label:`Competitors`,iconKey:`cometition`,defaultExpand:!1},"config.filters.categories":{label:`Categories`,iconKey:`boxes`,defaultExpand:!1},"config.filters.investors":{label:`Investors`,iconKey:`handshake`,defaultExpand:!1},"config.filters.account_activities":{label:`Account Activities`,iconKey:`activity`,defaultExpand:!1},"config.filters.financials":{label:`Financials`,iconKey:`chart`,defaultExpand:!1},"config.filters.languages":{label:`Languages`,iconKey:`language`,defaultExpand:!1},"config.filters.company_size":{label:`Company size`,iconKey:`office`,defaultExpand:!1},"config.filters.linkedin":{label:`LinkedIn`,iconKey:`linkedin`,defaultExpand:!1},"config.filters.skills":{label:`Skills`,iconKey:`brain`,defaultExpand:!1},"config.filters.activities":{label:`Activities`,iconKey:`bolt`,defaultExpand:!1},"config.filters.certifications_honors":{label:`Certifications & honors`,iconKey:`award`,defaultExpand:!1},"config.filters.profile":{label:`Profile`,iconKey:`contact`,defaultExpand:!1},"config.filters.experience":{label:`Employment history`,iconKey:`history`,defaultExpand:!1},"config.filters.current_employer":{label:`Current job`,iconKey:`briefcase`,defaultExpand:!1},"config.filters.current_company":{label:`Current Company`,iconKey:`office`,defaultExpand:!1},"config.filters.industry":{label:`Industries`,iconKey:`factory`,defaultExpand:!1},"config.filters.general_search":{label:`General search`,iconKey:`search`,defaultExpand:!1}},uw={general:{type:`form_section`,path:`general`,label:`General`,description:`Search settings and pagination.`},pagination:{type:`form_section`,path:`pagination`,label:`General`},"config.filters":{type:`form_section`,path:`config.filters`,label:`Filters`,description:`Narrow the search results.`},pipe_io:{type:`form_section`,path:``,label:`Output fields`}},dw={general:1,pagination:2,"config.filters":10,"config.output_fields":20,"config.input_fields":21,"config.pipe_io":22,"config.extractions":23,conditions:90,connector:91};function fw({searchPayload:e,sectionOrder:t=dw,formContext:n,groupPathMatch:r=lw,formResolvers:i}){return Bi({schema:TC(e.search_id),groupPathMatch:r,extractFromSchema:e=>b.get(e),sectionOrder:t,sectionMap:uw,store:n,formResolvers:i})}const pw=new Proxy({},{get:(e,t)=>e=>e.type===t}),mw=`school.user.location.language.brain.book.web.plug.money.office.job.search.output.input.mix.bill.linkedin.text.workflow.letter.source.activity.boxes.cometition.bolt.star.scholar.briefcase.history.sparkles.list.sliders.factory.award.tags.handshake.contact.mail.calendar.chart.code.braces.filter`.split(`.`),hw=r.enum(mw),gw=r.object({provider_logo:r.object({provider:hn}).optional(),emoji:r.object({char:r.string()}).optional(),icon:r.object({key:hw}).optional(),logo_url:r.object({url:r.string(),alt:r.string().optional()}).optional(),pricing:r.object({credits:r.number()}).optional(),field_type:r.object({type:r.string(),format:r.string().optional()}).optional()}),_w=`providers_input.fields_select_input.json_extraction_input.pipes_run_if_input.connector_input.include_exclude_input.include_exclude_select_input.exact_range_input.range_input.date_range_input.boolean_input.nullable_boolean_input.text_input.template_input.output_field_input.textarea_input.prompt_input.select_input.context_select_input.multi_select_input.min_max_int_input.async_multi_select_input.async_include_exclude_select_input.multi_create_input.ordered_multi_create_input.tagged_ordered_multi_create_input.int_input.number_input.json_schema_input`.split(`.`);r.enum(_w);const vw=r.object({value:r.string(),label:r.string(),widgets:gw.optional()}),yw=r.object({field_options:r.record(r.string(),r.object({options:r.array(vw)}))}),bw=[{id:`people_data`,label:`People`,color:`#8B7DFF`,order:0},{id:`find_people`,label:`Find People`,color:`#A78BFA`,order:1},{id:`company_data`,label:`Company`,color:`#10B981`,order:2},{id:`find_comapnies`,label:`Find Companies`,color:`#34D399`,order:3},{id:`tools`,label:`Tools`,color:`#EAB308`,order:4},{id:`integrations`,label:`Integrations`,color:`#06B6D4`,order:5},{id:`actions`,label:`Actions`,color:`#F97316`,order:6},{id:`deprecated`,label:`Deprecated`,color:`#94A3B8`,order:7}],xw=new Map(bw.map(e=>[e.id,e]));function Sw(e){return xw.get(e)}function Cw(){return bw}const ww={"company:funding:leadmagic@1":[{config:{environment:`production`},pipes:[{pipe_id:`company:funding:leadmagic@1`}],input:[{id:`1`,company_website_url:`https://pipe0.com`}]}],"company:funding:leadmagic@2":[{config:{environment:`production`},pipes:[{pipe_id:`company:funding:leadmagic@2`}],input:[{id:`1`,company_domain:`pipe0.com`}]}],"company:identity@1":[{config:{environment:`production`},pipes:[{pipe_id:`company:identity@1`}],input:[{id:`1`,company_name:`Pipe0`}]}],"company:identity@2":[{config:{environment:`production`},pipes:[{pipe_id:`company:identity@2`,config:{}}],input:[{id:`1`,company_name:`Pipe0`}]}],"company:identity@3":[{config:{environment:`production`},pipes:[{pipe_id:`company:identity@3`,config:{}}],input:[{id:`1`,company_name:`Pipe0`}]}],"company:overview@1":[{config:{environment:`production`},pipes:[{pipe_id:`company:overview@1`}],input:[{id:`1`,company_website_url:`Pipe0`}]}],"people:phone:workemail:waterfall@1":[{config:{environment:`production`},pipes:[{pipe_id:`people:phone:workemail:waterfall@1`}],input:[{id:`1`,work_email:`jane@pipe0.com`}]}],"person:mobile:workemail:waterfall@1":[{config:{environment:`production`},pipes:[{pipe_id:`person:mobile:workemail:waterfall@1`}],input:[{id:`1`,work_email:`jane@pipe0.com`}]}],"people:workemail:waterfall@1":[{config:{environment:`production`},pipes:[{pipe_id:`people:workemail:waterfall@1`}],input:[{id:`1`,name:`John Doe`,company_website_url:`https://pipe0.com`}]}],"person:workemail:waterfall@1":[{config:{environment:`production`},pipes:[{pipe_id:`person:workemail:waterfall@1`}],input:[{id:`1`,name:`John Doe`,company_domain:`pipe0.com`}]}],"company:techstack:builtwith@1":[{config:{environment:`production`},pipes:[{pipe_id:`company:techstack:builtwith@1`}],input:[{id:`1`,company_website_url:`https://pipe0.com`}]}],"company:techstack:builtwith@2":[{config:{environment:`production`},pipes:[{pipe_id:`company:techstack:builtwith@2`}],input:[{id:`1`,company_domain:`pipe0.com`}]}],"prompt:run@1":[{config:{environment:`production`},pipes:[{pipe_id:`prompt:run@1`,config:{model:`openai-gpt-latest`,prompt:{template:`
|
|
73
|
+
}`,inputType:`text`,maxLength:1e6,expectedTagType:`string`,expectedTagFormat:`text`,multiline:!0}),headers:Qi({sectionKey:`general`,groupPath:`config.general`,path:`config.headers`,label:`Headers`,info:"Type `@` to insert a field reference or `$` to insert a secret reference in either column (e.g. `Bearer $token`).",keyLabel:`Header`,valueLabel:`Value`,keyPlaceholder:`Authorization`,valuePlaceholder:`Bearer {{ secret โฆ }}`,maxItems:50}),expected_response_schema:ua({sectionKey:`general`,groupPath:`config.advanced`,path:`config.expected_response_schema`,label:`Expected response shape`,description:`Optional JSON Schema. Successful responses that don't satisfy it are marked failed. Extra properties are always tolerated (whitelist).`,required:!1,allowEmpty:!0}),output_fields:R(r.object({[eg.name]:k({fieldName:eg.name}),[tg.name]:k({fieldName:tg.name}),[ng.name]:k({fieldName:ng.name})}))})}),ig={"http-request-v1-pipe0":{provider:`pipe0`,allowManagedConnection:!0,credits:{default:.001},mode:`always`}},ag=class extends U{pipeId=$h;payload;payloadSchema=rg;billableOperations=ig;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[`http-request-v1-pipe0`]}getTemplatedFields(){let e=[this.payload.config.url,this.payload.config.body];for(let t of this.payload.config.query_params??[])e.push(t.key,t.value);for(let t of this.payload.config.headers??[])e.push(t.key,t.value);return e}getInputRequirement(){return Hm(this.getTemplatedFields(),{expectedType:`string`,expectedFormat:`text`})}getSecretRequirements(){return Y(this.getTemplatedFields())}getConstantRequirements(){return X(this.getTemplatedFields())}getRawOutputFields(){return{[eg.name]:this.catalogOutput(eg),[tg.name]:this.catalogOutput(tg),[ng.name]:this.catalogOutput(ng)}}getConnectionsRequirements(){return[{provider:`pipe0`,rateLimitRatio:1,rateLimitOperation:`pipe0_logic`,allowManagedConnection:!0}]}},og=rg,sg={pipeId:$h,basePipe:W($h),label:`HTTP request`,executionMode:`single`,categories:[`tools`],lifecycle:null,description:`Make a generic GET/POST/PUT/PATCH/DELETE HTTP request and capture the JSON response. Optionally validate the response against a JSON schema.`,tags:[B.LOGIC,B.JSON,B.NEW],docPath:G($h),billableOperations:ig,defaultInputRequirement:null,inputFieldMode:`config`,outputFieldMode:`static`,allowedUserConnectionProviders:[],managedProviders:[`pipe0`],deprecatedProviders:[],defaultPayload:{pipe_id:$h,run_if:null,connector:null,config:{method:`GET`,url:``,query_params:[],body:``,headers:[],expected_response_schema:{},output_fields:{http_response_status:{alias:``,enabled:!0},http_response_body:{alias:``,enabled:!0},http_response_headers:{alias:``,enabled:!1}}}}},cg=`json:extract:multi@1`,lg=r.object({pipe_id:r.literal(cg),run_if:S(),connector:T(),config:r.object({json_extraction:hi()})}),ug={"json-extract-multi-v1-pipe0":{provider:`pipe0`,allowManagedConnection:!0,credits:{default:0},mode:`always`}},dg=class extends U{pipeId=cg;payload;payloadSchema=lg;billableOperations=ug;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[`json-extract-multi-v1-pipe0`]}getInputRequirement(){return V({description:``,name:this.payload.config.json_extraction.field_name,format:null,label:``,type:`json`,resolvedName:this.payload.config.json_extraction.field_name})}getRawOutputFields(){let e={};for(let t of this.payload.config.json_extraction.extractions)e[t.output_field.name||t.output_field.name]={description:`Extracted value from JSON input field ${this.payload.config.json_extraction.field_name}.`,enabled:!0,format:t.output_field.format||null,label:t.output_field.label||`Extract JSON`,name:t.output_field.name,resolvedName:t.output_field.name,jsonMeta:null,type:t.output_field.type,isCatalogFIeld:!1,isPrimaryOutput:!1};return e}getConnectionsRequirements(){return[]}},fg=lg,pg={pipeId:cg,basePipe:W(cg),inputFieldMode:`config`,outputFieldMode:`config`,label:`JSON extract`,executionMode:`single`,categories:[`tools`],lifecycle:null,description:`Extract nested JSON properties into new output fields.`,docPath:G(cg),tags:[B.JSON],managedProviders:[`pipe0`],deprecatedProviders:[],allowedUserConnectionProviders:[],billableOperations:ug,defaultInputRequirement:null,defaultPayload:{pipe_id:cg,run_if:null,connector:null,config:{json_extraction:{field_name:``,extractions:[]}}}},mg=`message:send:slack@1`,hg=_(`slack_message_success`),gg=[{label:`#demo-general`,value:`C0SANDBOX001`},{label:`#demo-alerts`,value:`C0SANDBOX002`}],_g=r.object({pipe_id:r.literal(mg),connector:Gi(),run_if:S(),config:r.object({channel_id:C({sectionKey:`general`,groupPath:`config.general`,path:`config.channel_id`,label:`Channel ID`,info:"Your connection must be authorized to post to this channel. Type `@` to insert a field reference or `$` to insert a secret reference.",placeholder:`C0123456789`,inputType:`text`,minLength:3,expectedTagType:`string`,expectedTagFormat:`text`,optionsDef:{requires:{connection:`slack`},options:async({query:e,secret:t,environment:n})=>{if(n===`sandbox`)return gg;if(!t)throw new Rs.MissingSecretError({providerName:`slack`});let r=await fetch(`https://slack.com/api/conversations.list?limit=200&exclude_archived=true&types=public_channel,private_channel`,{headers:{Authorization:`Bearer ${t}`}});if(!r.ok){let e=await r.text();throw new Rs.HttpError({msg:e})}let i=await r.json();if(!i.ok)throw new Rs.HttpError({msg:i.error??`slack_error`});let a=(i.channels??[]).map(e=>({label:`#${e.name}`,value:e.id}));return e?a.filter(t=>t.label.toLowerCase().includes(e.toLowerCase())):a},widgets:{provider_logo:{provider:`slack`}}}}),message:C({sectionKey:`general`,groupPath:`config.general`,path:`config.message`,label:`Message`,info:"The message body. Type `@` to insert a field reference or `$` to insert a secret reference.",placeholder:`Hi {{ name }}, โฆ`,inputType:`text`,minLength:1,maxLength:4e4,expectedTagType:`string`,expectedTagFormat:`markdown`,multiline:!0}),output_fields:R(r.object({[hg.name]:k({fieldName:hg.name})}))})}),vg={"message-send-slack-v1-slack":{allowManagedConnection:!1,provider:`slack`,credits:null,mode:null}},yg=class extends U{pipeId=mg;payload;payloadSchema=_g;billableOperations=vg;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`slack`]}estimateBillableOperations(){return[`message-send-slack-v1-slack`]}getTemplatedFields(){return[this.payload.config.channel_id,this.payload.config.message]}getInputRequirement(){return Hm(this.getTemplatedFields())}getSecretRequirements(){return Y(this.getTemplatedFields())}getConstantRequirements(){return X(this.getTemplatedFields())}getRawOutputFields(){return{[hg.name]:this.catalogOutput(hg)}}getConnectionsRequirements(){return[{provider:`slack`,rateLimitRatio:1,rateLimitOperation:`slack_post_message`,allowManagedConnection:!1}]}},bg=_g,xg={pipeId:mg,basePipe:W(mg),label:`Send message into channel`,executionMode:`single`,categories:[`actions`],lifecycle:null,description:`Send a Slack message to a channel.`,detailed_description:"Send a Slack message. The channel ID and message body are templated config fields โ reference upstream fields with `{{ field_name }}` and stored secrets with `{{ SECRETS.KEY }}`. Requires a Slack vault connection (call list_connections to find one).",tags:[B.CHAT],docPath:G(mg),billableOperations:vg,inputFieldMode:`config`,outputFieldMode:`static`,allowedUserConnectionProviders:[`slack`],managedProviders:[],deprecatedProviders:[],defaultInputRequirement:null,defaultPayload:{pipe_id:mg,connector:{strategy:`first`,connections:[]},run_if:null,config:{channel_id:``,message:``,output_fields:{slack_message_success:{alias:``,enabled:!0}}}}},Sg=`message:write@1`,Cg=_(`message`),wg=`message-write-v1`,Tg=ti(wg),Eg=r.object({pipe_id:r.literal(Sg),connector:w(),run_if:S(),config:r.object({template:Ui({sectionKey:`general`,label:`Template`,path:`config.template`,placeholder:Z(`prompt`),groupPath:`config.prompt`,required:!0}),model:oa({sectionKey:`general`,label:`Model`,path:`config.model`,groupPath:`config.prompt`,billableOperations:Tg}),output_fields:R(r.object({[Cg.name]:k({fieldName:Cg.name})}))})}),Dg=class extends U{pipeId=Sg;payload;payloadSchema=Eg;billableOperations=Tg;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return ri(this.payload.config.model)}estimateBillableOperations(){return[ni(this.payload.config.model,wg)]}getInputRequirement(){return Hm([this.payload.config.template])}getSecretRequirements(){return Y([this.payload.config.template])}getConstantRequirements(){return X([this.payload.config.template])}getRawOutputFields(){return{[Cg.name]:this.catalogOutput(Cg)}}getConnectionsRequirements(){return ii(this.payload.config.model)}},Og=Eg,kg={pipeId:Sg,inputFieldMode:`config`,outputFieldMode:`static`,basePipe:W(Sg),label:`Message writer`,executionMode:`single`,categories:[`tools`],lifecycle:null,description:`An AI agent specialized in composing messages for modern workplace communication platforms (Slack, Teams, Discord, etc.)`,detailed_description:`AI message composer for Slack/Teams/Discord. Outputs: message. Pair with message:send:slack@1 to send.`,tags:[B.AI],docPath:G(Sg),defaultInputRequirement:null,billableOperations:Tg,allowedUserConnectionProviders:ai(),managedProviders:ai(),deprecatedProviders:[],defaultPayload:{pipe_id:Sg,connector:null,run_if:null,config:{model:`openai-gpt-latest`,template:``,output_fields:{message:{alias:``,enabled:!0}}}}},Ag=`person:devprofileurl:profileurl:waterfall@1`,jg=_(`profile_url`),Mg=_(`developer_profile_url`),Ng=_(`alternative_developer_profile_urls`),Pg=[`crustdata`],Fg=[{provider:`crustdata`}],Ig=r.object({pipe_id:r.literal(Ag),run_if:S(),connector:w(),config:r.object({providers:D({sectionKey:`general`,defaultProviders:Fg,availableProviders:Pg}),input_fields:z(r.object({[jg.name]:E({fieldName:jg.name})})),output_fields:R(r.object({[Mg.name]:k({fieldName:Mg.name}),[Ng.name]:k({fieldName:Ng.name})}))}).optional()}),Lg=e=>V(K(jg,e)),Rg={"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=Ag;payload;payloadSchema=Ig;billableOperations=Rg;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 Lg(this.payload.config)}getRawOutputFields(){return{[Mg.name]:this.catalogOutput(Mg,{isPrimaryOutput:!0}),[Ng.name]:this.catalogOutput(Ng,{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}))}},Bg=Ig,Vg={pipeId:Ag,basePipe:W(Ag),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(Ag),tags:[B.LINKEDIN,B.WATERFALL,B.NEW],billableOperations:Rg,defaultInputRequirement:Lg(null),inputFieldMode:`static`,outputFieldMode:`static`,managedProviders:Pg,allowedUserConnectionProviders:Pg,deprecatedProviders:[],defaultPayload:{pipe_id:Ag,connector:null,run_if:null,config:{providers:Fg,input_fields:{profile_url:{alias:``}},output_fields:{developer_profile_url:{alias:``,enabled:!0},alternative_developer_profile_urls:{alias:``,enabled:!1}}}}},Hg=`person:email:validate:millionverifier@1`,Ug=_(`email`),Wg=_(`email_validation_status`),Gg=_(`million_validation_match`),Kg=r.object({pipe_id:r.literal(Hg),connector:w(),run_if:S(),config:r.object({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()}),qg=e=>V(K(Ug,e)),Jg={"person-email-validate-millionverifier-v1-millionverifier":{provider:`millionverifier`,allowManagedConnection:!0,credits:{default:.1,level1:{credits:.05,weight:1}},mode:`always`}},Yg=class extends U{pipeId=Hg;payload;payloadSchema=Kg;billableOperations=Jg;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`millionverifier`]}estimateBillableOperations(){return[`person-email-validate-millionverifier-v1-millionverifier`]}getInputRequirement(){return qg(this.payload.config)}getRawOutputFields(){return{[Wg.name]:this.catalogOutput(Wg),[Gg.name]:this.catalogOutput(Gg)}}getConnectionsRequirements(){return[{provider:`millionverifier`,rateLimitRatio:1,rateLimitOperation:`millionverifier_generic`,allowManagedConnection:!0}]}},Xg=Kg,Zg={pipeId:Hg,basePipe:W(Hg),label:`Validate email`,executionMode:`single`,categories:[`people_data`],lifecycle:null,description:`Verify email addresses to ensure is deliverability.`,tags:[B.EMAIL],docPath:G(Hg),billableOperations:Jg,inputFieldMode:`static`,outputFieldMode:`static`,allowedUserConnectionProviders:[`millionverifier`],managedProviders:[`millionverifier`],deprecatedProviders:[],defaultInputRequirement:qg(null),defaultPayload:{pipe_id:Hg,connector:null,run_if:null,config:{input_fields:{email:{alias:``}},output_fields:{email_validation_status:{alias:``,enabled:!0},million_validation_match:{alias:``,enabled:!0}}}}},Qg=_(`email`),$g=_(`amplemarket_person_match`),e_=`person:identity:amplemarket@1`,t_=r.object({pipe_id:r.literal(e_),run_if:S(),connector:w(),config:r.object({input_fields:z(r.object({[Qg.name]:E({fieldName:Qg.name})})),output_fields:R(r.object({[$g.name]:k({fieldName:$g.name})}))}).optional()}),n_=e=>V(K(Qg,e)),r_={"person-identity-amplemarket-v1-amplemarket":{allowManagedConnection:!1,credits:null,mode:null,provider:`amplemarket`}},i_=class extends U{pipeId=e_;payload;payloadSchema=t_;billableOperations=r_;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`amplemarket`]}estimateBillableOperations(){return[]}getInputRequirement(){return n_(this.payload.config)}getRawOutputFields(){return{[$g.name]:this.catalogOutput($g)}}getConnectionsRequirements(){return[{provider:`amplemarket`,rateLimitRatio:1,rateLimitOperation:`amplemarket_generic`,allowManagedConnection:!1}]}},a_=t_,o_={pipeId:e_,inputFieldMode:`static`,outputFieldMode:`static`,basePipe:W(e_),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(e_),billableOperations:r_,allowedUserConnectionProviders:[`amplemarket`],managedProviders:[],deprecatedProviders:[],defaultInputRequirement:n_(null),defaultPayload:{pipe_id:e_,connector:null,run_if:null,config:{input_fields:{email:{alias:``}},output_fields:{amplemarket_person_match:{alias:``,enabled:!0}}}}},s_=`person:identity:email:waterfall@1`,c_=_(`email`),l_=_(`company_domain`),u_=_(`name`),d_=_(`job_title`),f_=_(`profile_url`),p_=_(`company_profile_url`),m_=_(`company_name`),h_=[`findymail`,`hunter`,`crustdata`],g_=[{provider:`findymail`},{provider:`hunter`},{provider:`crustdata`}],__=r.object({pipe_id:r.literal(s_),connector:w(),run_if:S(),config:r.object({providers:D({availableProviders:h_,defaultProviders:g_,sectionKey:`general`}),input_fields:z(r.object({[c_.name]:E({fieldName:c_.name})})),output_fields:R(r.object({[u_.name]:k({fieldName:u_.name}),[f_.name]:k({fieldName:f_.name}),[d_.name]:k({fieldName:d_.name}),[l_.name]:k({fieldName:l_.name}),[m_.name]:k({fieldName:m_.name}),[p_.name]:k({fieldName:p_.name})}))}).optional()}),v_=e=>V(K(c_,e)),y_={"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`}},b_=class extends U{pipeId=s_;payload;payloadSchema=__;billableOperations=y_;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return this.payload.config?.providers.map(e=>e.provider)||[]}estimateBillableOperations(){return this.getProviderNames().map(e=>J(e,this.billableOperations).billableOperation)}getInputRequirement(){return v_(this.payload.config)}getRawOutputFields(){return{[u_.name]:this.catalogOutput(u_,{isPrimaryOutput:!0}),[f_.name]:this.catalogOutput(f_,{isPrimaryOutput:!0}),[d_.name]:this.catalogOutput(d_,{isPrimaryOutput:!0}),[m_.name]:this.catalogOutput(m_,{isPrimaryOutput:!0}),[p_.name]:this.catalogOutput(p_,{isPrimaryOutput:!0}),[l_.name]:this.catalogOutput(l_,{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}))}},x_=__,S_={pipeId:s_,basePipe:W(s_),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(s_),managedProviders:h_,deprecatedProviders:[],allowedUserConnectionProviders:h_,inputFieldMode:`static`,outputFieldMode:`static`,billableOperations:y_,defaultInputRequirement:v_(null),defaultPayload:{pipe_id:s_,connector:null,run_if:null,config:{providers:g_,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}}}}},C_=_(`profile_url`),w_=_(`amplemarket_person_match`),T_=`person:match:amplemarket@1`,E_=r.object({pipe_id:r.literal(T_),run_if:S(),connector:w(),config:r.object({input_fields:z(r.object({[C_.name]:E({fieldName:C_.name})})),output_fields:R(r.object({[w_.name]:k({fieldName:w_.name})}))}).optional()}),D_=e=>V(K(C_,e)),O_={"person-match-amplemarket-v1-amplemarket":{allowManagedConnection:!1,credits:null,mode:null,provider:`amplemarket`}},k_=class extends U{pipeId=T_;payload;payloadSchema=E_;billableOperations=O_;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`amplemarket`]}estimateBillableOperations(){return[]}getInputRequirement(){return D_(this.payload.config)}getRawOutputFields(){return{[w_.name]:this.catalogOutput(w_)}}getConnectionsRequirements(){return[{provider:`amplemarket`,rateLimitRatio:1,rateLimitOperation:`amplemarket_generic`,allowManagedConnection:!1}]}},A_=E_,j_={pipeId:T_,inputFieldMode:`static`,outputFieldMode:`static`,basePipe:W(T_),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(T_),billableOperations:O_,allowedUserConnectionProviders:[`amplemarket`],managedProviders:[],deprecatedProviders:[],defaultInputRequirement:D_(null),defaultPayload:{pipe_id:T_,connector:null,run_if:null,config:{input_fields:{profile_url:{alias:``}},output_fields:{amplemarket_person_match:{alias:``,enabled:!0}}}}},M_=`person:match:role:waterfall@1`,N_=_(`company_domain`),P_=_(`role_finder_match`),F_=[`leadmagic`],I_=[{provider:`leadmagic`}],L_=r.object({pipe_id:r.literal(M_),run_if:S(),connector:w(),config:r.object({providers:D({sectionKey:`general`,defaultProviders:I_,availableProviders:F_}),roles:Zi({sectionKey:`general`,groupPath:`config.general`,label:`Roles`,path:`config.roles`,info:`Company roles to include`,maxItems:3,minItems:1,suggestionsDef:g(`titles`),expectedTagType:`string`}),input_fields:z(r.object({[N_.name]:E({fieldName:N_.name})})),output_fields:R(r.object({[P_.name]:k({fieldName:P_.name})}))})}),R_=e=>H(K(N_,e)),z_={"person-match-role-waterfall-v1-leadmagic":{provider:`leadmagic`,allowManagedConnection:!0,credits:{default:1},mode:`onSuccess`}},B_=class extends U{pipeId=M_;payload;payloadSchema=L_;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 R_(this.payload.config)}getSecretRequirements(){return Y(this.payload.config?.roles??[])}getConstantRequirements(){return X(this.payload.config?.roles??[])}getRawOutputFields(){return{[P_.name]:this.catalogOutput(P_,{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}))}},V_=L_,H_={pipeId:M_,basePipe:W(M_),managedProviders:F_,deprecatedProviders:[],allowedUserConnectionProviders:F_,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(M_),billableOperations:z_,inputFieldMode:`static`,outputFieldMode:`static`,defaultInputRequirement:R_(null),defaultPayload:{pipe_id:M_,run_if:null,connector:null,config:{roles:[],providers:I_,input_fields:{company_domain:{alias:``}},output_fields:{role_finder_match:{alias:``,enabled:!0}}}}},U_=`person:mobile:profileurl:waterfall@1`,W_=_(`profile_url`),G_=_(`mobile`),K_=[`leadmagic`,`prospeo`,`amplemarket`,`findymail`],q_=[{provider:`leadmagic`},{provider:`prospeo`},{provider:`amplemarket`},{provider:`findymail`}],J_=r.object({pipe_id:r.literal(U_),run_if:S(),connector:w(),config:r.object({providers:D({sectionKey:`general`,defaultProviders:q_,availableProviders:K_}),input_fields:z(r.object({[W_.name]:E({fieldName:W_.name})})),output_fields:R(r.object({[G_.name]:k({fieldName:G_.name})}))}).optional()}),Y_=e=>V(K(W_,e)),X_={"person-mobile-profileurl-waterfall-v1-leadmagic":{provider:`leadmagic`,allowManagedConnection:!0,credits:{default:3,level1:{credits:2,weight:1}},mode:`onSuccess`},"person-mobile-profileurl-waterfall-v1-prospeo":{provider:`prospeo`,allowManagedConnection:!0,credits:{default:5,level1:{credits:3,weight:1}},mode:`onSuccess`},"person-mobile-profileurl-waterfall-v1-findymail":{provider:`findymail`,allowManagedConnection:!0,credits:{default:6,level1:{credits:4,weight:1}},mode:`onSuccess`},"person-mobile-profileurl-waterfall-v1-amplemarket":{provider:`amplemarket`,allowManagedConnection:!0,credits:{default:4,level1:{credits:3,weight:1}},mode:`onSuccess`}},Z_=class extends U{pipeId=U_;payload;payloadSchema=J_;billableOperations=X_;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{[G_.name]:this.catalogOutput(G_,{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}))}},Q_=J_,$_={pipeId:U_,basePipe:W(U_),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(U_),tags:[B.PHONE,B.WATERFALL],billableOperations:X_,defaultInputRequirement:Y_(null),inputFieldMode:`static`,outputFieldMode:`static`,managedProviders:K_,allowedUserConnectionProviders:K_,deprecatedProviders:[],defaultPayload:{pipe_id:U_,connector:null,run_if:null,config:{providers:q_,input_fields:{profile_url:{alias:``}},output_fields:{mobile:{alias:``,enabled:!0}}}}},ev=`person:mobile:workemail:waterfall@1`,tv=_(`work_email`),nv=_(`mobile`),rv=[`leadmagic`,`amplemarket`],iv=[{provider:`leadmagic`},{provider:`amplemarket`}],av=r.object({pipe_id:r.literal(ev),run_if:S(),connector:w(),config:r.object({providers:D({sectionKey:`general`,availableProviders:rv,defaultProviders:iv}),input_fields:z(r.object({[tv.name]:E({fieldName:tv.name})})),output_fields:R(r.object({[nv.name]:k({fieldName:nv.name})}))}).optional()}),ov=e=>V(K(tv,e)),sv={"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`}},cv=class extends U{pipeId=ev;payload;payloadSchema=av;billableOperations=sv;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 ov(this.payload.config)}getRawOutputFields(){return{[nv.name]:this.catalogOutput(nv,{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}))}},lv=av,uv={pipeId:ev,basePipe:W(ev),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(ev),billableOperations:sv,defaultInputRequirement:ov(null),inputFieldMode:`static`,outputFieldMode:`static`,allowedUserConnectionProviders:rv,managedProviders:rv,deprecatedProviders:[],defaultPayload:{pipe_id:ev,connector:null,run_if:null,config:{providers:iv,input_fields:{work_email:{alias:``}},output_fields:{mobile:{alias:``,enabled:!0}}}}},dv=`person:name:join@1`,fv=_(`first_name`),pv=_(`last_name`),mv=_(`name`),hv=r.object({pipe_id:r.literal(dv),run_if:S(),connector:T(),config:r.object({input_fields:z(r.object({[fv.name]:E({fieldName:fv.name}),[pv.name]:E({fieldName:pv.name})})),output_fields:R(r.object({[mv.name]:k({fieldName:mv.name})}))}).optional()}),gv=e=>Ea(K(fv,e),K(pv,e)),_v={"person-name-join-v1-pipe0":{provider:`pipe0`,allowManagedConnection:!0,credits:{default:0},mode:`always`}},vv=class extends U{pipeId=dv;payload;payloadSchema=hv;billableOperations=_v;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[`person-name-join-v1-pipe0`]}getInputRequirement(){return gv(this.payload.config)}getRawOutputFields(){return{[mv.name]:this.catalogOutput(mv)}}getConnectionsRequirements(){return[{provider:`pipe0`,rateLimitRatio:1,rateLimitOperation:`pipe0_logic`,allowManagedConnection:!0}]}},yv=hv,bv={pipeId:dv,basePipe:W(dv),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(dv),billableOperations:_v,defaultInputRequirement:gv(null),inputFieldMode:`static`,outputFieldMode:`static`,allowedUserConnectionProviders:[],managedProviders:[`pipe0`],deprecatedProviders:[],defaultPayload:{pipe_id:dv,run_if:null,connector:null,config:{input_fields:{first_name:{alias:``},last_name:{alias:``}},output_fields:{name:{alias:``,enabled:!0}}}}},xv=`person:name:split@1`,Sv=_(`name`),Cv=_(`first_name`),wv=_(`last_name`),Tv=r.object({pipe_id:r.literal(xv),connector:T(),run_if:S(),config:r.object({input_fields:z(r.object({[Sv.name]:E({fieldName:Sv.name})})),output_fields:R(r.object({[Cv.name]:k({fieldName:Cv.name}),[wv.name]:k({fieldName:wv.name})}))}).optional()}),Ev=e=>V(K(Sv,e)),Dv={"person-name-split-v1-pipe0":{provider:`pipe0`,allowManagedConnection:!0,credits:{default:0},mode:`always`}},Ov=class extends U{pipeId=xv;payload;payloadSchema=Tv;billableOperations=Dv;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[`person-name-split-v1-pipe0`]}getInputRequirement(){return Ev(this.payload.config)}getRawOutputFields(){return{[Cv.name]:this.catalogOutput(Cv),[wv.name]:this.catalogOutput(wv)}}getConnectionsRequirements(){return[{provider:`pipe0`,rateLimitRatio:1,rateLimitOperation:`pipe0_logic`,allowManagedConnection:!0}]}},kv=Tv,Av={pipeId:xv,basePipe:W(xv),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(xv),billableOperations:Dv,inputFieldMode:`static`,outputFieldMode:`static`,defaultInputRequirement:Ev(null),allowedUserConnectionProviders:[],managedProviders:[`pipe0`],deprecatedProviders:[],defaultPayload:{pipe_id:xv,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`,Mv=_(`profile_url`),Nv=_(`personal_email`),Pv=_(`alternate_personal_emails`),Fv=[`leadmagic`,`mixrank`],Iv=[{provider:`leadmagic`},{provider:`mixrank`}],Lv=r.object({pipe_id:r.literal(jv),run_if:S(),connector:w(),config:r.object({providers:D({sectionKey:`general`,availableProviders:Fv,defaultProviders:Iv}),input_fields:z(r.object({[Mv.name]:E({fieldName:Mv.name})})),output_fields:R(r.object({[Nv.name]:k({fieldName:Nv.name}),[Pv.name]:k({fieldName:Pv.name})}))}).optional()}),Rv=e=>V(K(Mv,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`}},Bv=class extends U{pipeId=jv;payload;payloadSchema=Lv;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 Rv(this.payload.config)}getRawOutputFields(){return{[Nv.name]:this.catalogOutput(Nv,{isPrimaryOutput:!0}),[Pv.name]:this.catalogOutput(Pv)}}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}))}},Vv=Lv,Hv={pipeId:jv,basePipe:W(jv),allowedUserConnectionProviders:Fv,managedProviders:Fv,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:zv,defaultInputRequirement:Rv(null),inputFieldMode:`static`,outputFieldMode:`static`,defaultPayload:{pipe_id:jv,connector:null,run_if:null,config:{providers:Iv,input_fields:{profile_url:{alias:``}},output_fields:{personal_email:{alias:``,enabled:!0},alternate_personal_emails:{alias:``,enabled:!1}}}}},Uv=_(`profile_url`),Wv=_(`post_list_string`),Gv=_(`crustdata_post_list`),Kv=`person:posts:crustdata@1`,qv=r.object({pipe_id:r.literal(Kv),run_if:S(),connector:w(),config:r.object({limit:ca({path:`config.limit`,groupPath:`config.general`,max:100,min:1,required:!0,sectionKey:`general`,info:``,label:`Limit`,legend:`Max. 100`}),input_fields:z(r.object({[Uv.name]:E({fieldName:Uv.name})})),output_fields:R(r.object({[Wv.name]:k({fieldName:Wv.name}),[Gv.name]:k({fieldName:Gv.name})}))}).optional()}),Jv=e=>V(K(Uv,e)),Yv={"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`}},Xv=class extends U{pipeId=Kv;payload;payloadSchema=qv;billableOperations=Yv;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`crustdata`]}estimateBillableOperations(){return[`person-posts-crustdata-v1-crustdata`]}getInputRequirement(){return Jv(this.payload.config)}getRawOutputFields(){return{[Wv.name]:this.catalogOutput(Wv),[Gv.name]:this.catalogOutput(Gv)}}getConnectionsRequirements(){return[{provider:`crustdata`,rateLimitRatio:1,rateLimitOperation:`crustdata_realtime_post_fetch`,allowManagedConnection:!0}]}},Zv=qv,Qv={pipeId:Kv,inputFieldMode:`static`,outputFieldMode:`static`,basePipe:W(Kv),label:`LinkedIn posts`,executionMode:`single`,categories:[`people_data`],lifecycle:null,description:`Find list of recent LinkedIn posts.`,tags:[B.LINKEDIN],docPath:G(Kv),billableOperations:Yv,allowedUserConnectionProviders:[`crustdata`],managedProviders:[`crustdata`],deprecatedProviders:[],defaultInputRequirement:Jv(null),defaultPayload:{pipe_id:Kv,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}}}}},$v=`person:profile:waterfall@1`,ey=_(`profile`),ty=_(`profile_url`),ny=[`prospeo`,`icypeas`,`amplemarket`],ry=[{provider:`amplemarket`},{provider:`prospeo`},{provider:`icypeas`}],iy=r.object({pipe_id:r.literal($v),run_if:S(),connector:w(),config:r.object({providers:D({sectionKey:`general`,availableProviders:ny,defaultProviders:ry}),input_fields:z(r.object({[ty.name]:E({fieldName:ty.name})})),output_fields:R(r.object({[ey.name]:k({fieldName:ey.name})}))}).optional()}),ay=e=>V(K(ty,e)),oy={"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}},sy=class extends U{pipeId=$v;payload;payloadSchema=iy;billableOperations=oy;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 ay(this.payload.config)}getRawOutputFields(){return{[ey.name]:this.catalogOutput(ey,{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}))}},cy=iy,ly={pipeId:$v,basePipe:W($v),label:`Full LinkedIn profile`,executionMode:`waterfall`,categories:[`people_data`],lifecycle:null,description:`Find a JSON representation of a LinkedIn profile.`,docPath:G($v),tags:[B.LINKEDIN,B.WATERFALL],managedProviders:ny,deprecatedProviders:[],allowedUserConnectionProviders:ny,inputFieldMode:`static`,outputFieldMode:`static`,billableOperations:oy,defaultInputRequirement:ay(null),defaultPayload:{pipe_id:$v,run_if:null,connector:null,config:{providers:ry,input_fields:{profile_url:{alias:``}},output_fields:{profile:{alias:``,enabled:!0}}}}},uy=_(`work_email`),dy=_(`crustdata_person_match`),fy=_(`crustdata_profile_match_score`),py=`person:profile:workemail:crustdata@1`,my=r.object({pipe_id:r.literal(py),run_if:S(),connector:w(),config:r.object({input_fields:z(r.object({[uy.name]:E({fieldName:uy.name})})),output_fields:R(r.object({[dy.name]:k({fieldName:dy.name}),[fy.name]:k({fieldName:fy.name})}))}).optional()}),hy=e=>V(K(uy,e)),gy={"person-profile-workemail-crustdata-v1-crustdata":{allowManagedConnection:!0,credits:{default:5},mode:`onSuccess`,provider:`crustdata`}},_y=class extends U{pipeId=py;payload;payloadSchema=my;billableOperations=gy;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`crustdata`]}estimateBillableOperations(){return[`person-profile-workemail-crustdata-v1-crustdata`]}getInputRequirement(){return hy(this.payload.config)}getRawOutputFields(){return{[dy.name]:this.catalogOutput(dy),[fy.name]:this.catalogOutput(fy)}}getConnectionsRequirements(){return[{provider:`crustdata`,rateLimitRatio:1,rateLimitOperation:`crustdata_realtime_person_enrich`,allowManagedConnection:!0}]}},vy=my,yy={pipeId:py,inputFieldMode:`static`,outputFieldMode:`static`,basePipe:W(py),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(py),billableOperations:gy,allowedUserConnectionProviders:[`crustdata`],managedProviders:[`crustdata`],deprecatedProviders:[],defaultInputRequirement:hy(null),defaultPayload:{pipe_id:py,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}}}}},by=`person:profileurl:email:waterfall@1`,xy=_(`email`),Sy=_(`work_email`),Cy=_(`profile_url`),wy=[`leadmagic`],Ty=[{provider:`leadmagic`}],Ey=r.object({pipe_id:r.literal(by),run_if:S(),connector:w(),config:r.object({providers:D({sectionKey:`general`,defaultProviders:Ty,availableProviders:wy}),input_fields:z(r.object({[xy.name]:E({fieldName:xy.name}),[Sy.name]:E({fieldName:Sy.name})})),output_fields:R(r.object({[Cy.name]:k({fieldName:Cy.name})}))}).optional()}),Dy=e=>H(K(xy,e),K(Sy,e)),Oy={"person-profileurl-email-waterfall-v1-leadmagic":{provider:`leadmagic`,allowManagedConnection:!0,credits:{default:3.5},mode:`onSuccess`}},ky=class extends U{pipeId=by;payload;payloadSchema=Ey;billableOperations=Oy;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 Dy(this.payload.config)}getRawOutputFields(){return{[Cy.name]:this.catalogOutput(Cy,{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}))}},Ay=Ey,jy={pipeId:by,basePipe:W(by),managedProviders:wy,deprecatedProviders:[],allowedUserConnectionProviders:wy,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(by),billableOperations:Oy,inputFieldMode:`static`,outputFieldMode:`static`,defaultInputRequirement:Dy(null),defaultPayload:{pipe_id:by,run_if:null,connector:null,config:{providers:Ty,input_fields:{email:{alias:``},work_email:{alias:``}},output_fields:{profile_url:{alias:``,enabled:!0}}}}},My=`person:profileurl:name@1`,Ny=_(`name`),Py=_(`company_name`),Fy=_(`location_hint`),Iy=_(`profile_url`),Ly=r.object({pipe_id:r.literal(My),connector:T(),run_if:S(),config:r.object({input_fields:z(r.object({[Ny.name]:E({fieldName:Ny.name}),[Py.name]:E({fieldName:Py.name}),[Fy.name]:E({fieldName:Fy.name})})),output_fields:R(r.object({[Iy.name]:k({fieldName:Iy.name})}))}).optional()}),Ry=e=>Ea(V(K(Ny,e)),V(K(Py,e)),Da(K(Fy,e))),zy={"person-profileurl-name-v1-pipe0":{provider:`pipe0`,allowManagedConnection:!0,credits:{default:.6},mode:`always`}},By=class extends U{pipeId=My;payload;payloadSchema=Ly;billableOperations=zy;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[`person-profileurl-name-v1-pipe0`]}getInputRequirement(){return Ry(this.payload.config)}getRawOutputFields(){return{[Iy.name]:this.catalogOutput(Iy)}}getConnectionsRequirements(){return[{provider:`serper`,rateLimitRatio:1,rateLimitOperation:`serper_search`,allowManagedConnection:!0}]}},Vy=Ly,Hy={pipeId:My,basePipe:W(My),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(My),tags:[B.LINKEDIN],billableOperations:zy,defaultInputRequirement:Ry(null),inputFieldMode:`static`,outputFieldMode:`static`,defaultPayload:{pipe_id:My,connector:void 0,run_if:null,config:{input_fields:{company_name:{alias:``},location_hint:{alias:``},name:{alias:``}},output_fields:{profile_url:{alias:``,enabled:!0}}}}},Uy=`person:workemail:profileurl:waterfall@1`,Wy=_(`profile_url`),Gy=_(`work_email`),Ky=_(`email_validation_status`),qy=[`hunter`,`amplemarket`,`findymail`,`leadmagic`,`crustdata`],Jy=[{provider:`hunter`},{provider:`amplemarket`},{provider:`leadmagic`},{provider:`findymail`},{provider:`crustdata`}],Yy=r.object({pipe_id:r.literal(Uy),connector:w(),run_if:S(),config:r.object({providers:D({availableProviders:qy,defaultProviders:Jy,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({[Wy.name]:E({fieldName:Wy.name})})),output_fields:R(r.object({[Gy.name]:k({fieldName:Gy.name}),[Ky.name]:k({fieldName:Ky.name})}))}).optional()}),Xy=e=>V(K(Wy,e)),Zy={"person-workemail-profileurl-waterfall-v1-hunter":{provider:`hunter`,allowManagedConnection:!0,credits:{default:1},mode:`onSuccess`},"person-workemail-profileurl-waterfall-v1-leadmagic":{provider:`leadmagic`,allowManagedConnection:!0,credits:{default:2,level1:{credits:.7,weight:1}},mode:`onSuccess`},"person-workemail-profileurl-waterfall-v1-findymail":{provider:`findymail`,allowManagedConnection:!0,credits:{default:2,level1:{credits:1,weight:1}},mode:`onSuccess`},"person-workemail-profileurl-waterfall-v1-crustdata":{provider:`crustdata`,allowManagedConnection:!0,credits:{default:3,level1:{credits:2,weight:1}},mode:`onSuccess`},"person-workemail-profileurl-waterfall-v1-amplemarket":{provider:`amplemarket`,allowManagedConnection:!0,credits:{default:2.5,level1:{credits:1.5,weight:1}},mode:`onSuccess`}},Qy=class extends U{pipeId=Uy;payload;payloadSchema=Yy;billableOperations=Zy;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return this.payload.config?.providers.map(e=>e.provider)||[]}estimateBillableOperations(){return this.getProviderNames().map(e=>J(e,this.billableOperations).billableOperation)}getInputRequirement(){return Xy(this.payload.config)}getRawOutputFields(){return{[Gy.name]:this.catalogOutput(Gy,{isPrimaryOutput:!0}),[Ky.name]:this.catalogOutput(Ky,{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}))}},$y=Yy,eb={pipeId:Uy,basePipe:W(Uy),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(Uy),managedProviders:qy,allowedUserConnectionProviders:qy,deprecatedProviders:[],inputFieldMode:`static`,outputFieldMode:`static`,billableOperations:Zy,defaultInputRequirement:Xy(null),defaultPayload:{pipe_id:Uy,connector:null,run_if:null,config:{providers:Jy,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}}}}},tb=`person:workemail:waterfall@1`,nb=_(`name`),rb=_(`company_domain`),ib=_(`company_name`),ab=_(`work_email`),ob=_(`email_validation_status`),sb=[`leadmagic`,`prospeo`,`amplemarket`,`hunter`,`icypeas`,`findymail`],cb=[{provider:`leadmagic`},{provider:`prospeo`},{provider:`amplemarket`},{provider:`hunter`},{provider:`icypeas`},{provider:`findymail`}],lb={"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`}},ub=r.object({pipe_id:r.literal(tb),connector:w(),run_if:S(),config:r.object({providers:D({availableProviders:sb,defaultProviders:cb,sectionKey:`general`,providerCredits:La(lb,sb)}),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({[nb.name]:E({fieldName:nb.name}),[rb.name]:E({fieldName:rb.name}),[ib.name]:E({fieldName:ib.name})})),output_fields:R(r.object({[ab.name]:k({fieldName:ab.name}),[ob.name]:k({fieldName:ob.name})}))}).optional()}),db=e=>Ea(V(K(nb,e)),H(K(rb,e),K(ib,e))),fb=class extends U{pipeId=tb;payload;payloadSchema=ub;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 db(this.payload.config)}getRawOutputFields(){return{[ab.name]:this.catalogOutput(ab,{isPrimaryOutput:!0}),[ob.name]:this.catalogOutput(ob,{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}))}},pb=ub,mb={pipeId:tb,basePipe:W(tb),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(tb),managedProviders:sb,deprecatedProviders:[],allowedUserConnectionProviders:sb,inputFieldMode:`static`,outputFieldMode:`static`,billableOperations:lb,defaultInputRequirement:db(null),defaultPayload:{pipe_id:tb,connector:null,run_if:null,config:{providers:cb,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}}}}},hb=`prompt:run@1`,gb=`prompt-run-v1`,_b=ti(gb),vb=r.object({pipe_id:r.literal(hb),connector:w(),run_if:S(),config:r.object({prompt:Hi({sectionKey:`general`,path:`config.prompt`,placeholder:Z(`prompt`),groupPath:`config.prompt`,supportedTags:[`input`,`output`]}),model:oa({sectionKey:`general`,label:`Model`,path:`config.model`,groupPath:`config.prompt`,billableOperations:_b})})}),yb=class extends U{pipeId=hb;payload;payloadSchema=vb;billableOperations=_b;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return ri(this.payload.config.model)}estimateBillableOperations(){return[ni(this.payload.config.model,gb)]}getInputRequirement(){return Hm([this.payload.config.prompt.template])}getSecretRequirements(){return Y([this.payload.config.prompt.template])}getConstantRequirements(){return X([this.payload.config.prompt.template])}getRawOutputFields(){let e=this.payload.config.prompt.template,t=this.payload.config.prompt.json_schemas??{},n={},r;try{r=jr(e)}catch{return n}for(let e of r.outputs){let r=e.type;if(r===`json`){let i=e.schemaRef?t[e.schemaRef]:void 0;n[e.name]={enabled:!0,name:e.name,label:e.name,resolvedName:e.name,type:r,description:e.description,jsonMeta:{zodSchema:i,exampleValue:null},format:null,isCatalogFIeld:!1,isPrimaryOutput:!1}}else n[e.name]={enabled:!0,name:e.name,label:e.name,resolvedName:e.name,type:r,description:e.description,jsonMeta:null,format:e.format??null,isCatalogFIeld:!1,isPrimaryOutput:!1}}return n}getConnectionsRequirements(){return ii(this.payload.config.model)}},bb=vb,xb={pipeId:hb,inputFieldMode:`config`,outputFieldMode:`config`,basePipe:W(hb),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(hb),defaultInputRequirement:null,billableOperations:_b,allowedUserConnectionProviders:ai(),managedProviders:ai(),deprecatedProviders:[],defaultPayload:{pipe_id:hb,connector:null,run_if:null,config:{model:`openai-gpt-latest`,prompt:{template:``,json_schemas:{}}}}},Sb=`sheet:row:append@1`,Cb=_(`sheet_record_id`),wb=_(`created_sheet`),Tb=[{label:`Demo leads`,value:`demo-leads`},{label:`Demo companies`,value:`demo-companies`},{label:`Demo contacts`,value:`demo-contacts`}],Eb=[{label:`Demo team`,value:`sandbox-team-1`},{label:`Demo workspace`,value:`sandbox-team-2`}],Db={requires:{connection:`pipe0`},enabledIf:ln(`pipe0`,`Select a pipe0 connection to see sheet suggestions`),options:async({query:e,client:t,environment:n})=>n===`sandbox`?Tb: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`}}},Ob={requires:{connection:`pipe0`},enabledIf:ln(`pipe0`,`Select a pipe0 connection to see team suggestions`),options:async({query:e,client:t,environment:n})=>n===`sandbox`?Eb: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(Sb),connector:Gi(),run_if:S(),config:r.object({sheet:C({label:`Destination sheet`,info:"Sheet identifier. Either a literal slug, or type `@` to insert a field reference / `$` to insert a secret reference.",groupPath:`config.general`,sectionKey:`general`,inputType:`text`,path:`config.sheet`,minLength:3,expectedTagType:`string`,expectedTagFormat:`text`,optionsDef:Db}),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:da({label:`Team`,info:`Optional hint for the team where the sheet should be created. Only used when a new sheet is created.`,placeholder:`Select a teamโฆ`,required:!1,groupPath:`config.advanced`,path:`config.new_sheet_team_id`,sectionKey:`general`,optionsDef:Ob,enabledIf:e=>e.config?.allow_sheet_creation?{disabled:!1}:{disabled:!0,message:`Turn on โUpsert sheetsโ to specify a team.`}}),included_fields:qi({label:`Fields`,info:`All fields are written if empty.`,groupPath:`config.general`,path:`config.included_fields`,sectionKey:`general`,disableSearch:!0}),output_fields:R(r.object({[Cb.name]:k({fieldName:Cb.name}),[wb.name]:k({fieldName:wb.name})}))})}),Ab={"sheet-row-append-v1-pipe0":{provider:`pipe0`,allowManagedConnection:!1,credits:null,mode:null}},jb=class extends U{pipeId=Sb;payload;payloadSchema=kb;billableOperations=Ab;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[`sheet-row-append-v1-pipe0`]}getInputRequirement(){let e=[Hm([this.payload.config.sheet],{expectedType:`string`,expectedFormat:`text`})];if(this.payload.config.included_fields?.length)for(let t of this.payload.config.included_fields)e.push(V({name:t.field_name,resolvedName:t.field_name,label:``,description:``,type:e=>{let n=Vm(e,t.field_name);if(!n)throw Error(`Unable to find field with name ${t.field_name}. But needed by prompt parser.`);return n.type||`unknown`},format:null}));return Ea(...e)}getSecretRequirements(){return Y([this.payload.config.sheet])}getConstantRequirements(){return X([this.payload.config.sheet])}getRawOutputFields(){return{[Cb.name]:this.catalogOutput(Cb),[wb.name]:this.catalogOutput(wb)}}getConnectionsRequirements(){return[{provider:`pipe0`,rateLimitRatio:1,rateLimitOperation:`pipe0-sheet-operation`,allowManagedConnection:!0}]}},Mb=kb,Nb={pipeId:Sb,basePipe:W(Sb),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(Sb),tags:[B.FIELDS],billableOperations:Ab,defaultInputRequirement:null,inputFieldMode:`config`,outputFieldMode:`static`,defaultPayload:{pipe_id:Sb,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}}}}},Pb=`sheet:row:expandappend@1`,Fb=_(`sheet_record_ids`),Ib=_(`input_objects`),Lb=r.object({pipe_id:r.literal(Pb),connector:Gi(),run_if:S(),config:r.object({sheet:ra({label:`Sheet name`,info:`Unique identifier for the sheet`,groupPath:`config.general`,sectionKey:`general`,inputType:`text`,path:`config.sheet`,minLength:3}),run:O({defaultValue:!0,groupPath:`config.general`,path:`config.run`,sectionKey:`general`,info:`Enrich record after write. Ignored if target sheet writes to other sheets.`,label:`Run`}),allow_field_creation:O({defaultValue:!0,groupPath:`config.general`,path:`config.allow_field_creation`,sectionKey:`general`,info:`Add unknown object fields to the sheet definition.`,label:`Allow field creation`}),input_fields:z(r.object({[Ib.name]:E({fieldName:Ib.name})})),output_fields:R(r.object({[Fb.name]:k({fieldName:Fb.name})}))})}),Rb={"sheet-row-expandappend-v1-pipe0":{provider:`pipe0`,allowManagedConnection:!1,credits:null,mode:null}},zb=e=>V(K(Ib,e)),Bb=class extends U{pipeId=Pb;payload;payloadSchema=Lb;billableOperations=Rb;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{[Fb.name]:this.catalogOutput(Fb)}}getConnectionsRequirements(){return[{provider:`pipe0`,rateLimitRatio:1,rateLimitOperation:`pipe0-sheet-operation`,allowManagedConnection:!0}]}},Vb=Lb,Hb={pipeId:Pb,basePipe:W(Pb),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(Pb),tags:[B.FIELDS],billableOperations:Rb,defaultInputRequirement:zb(null),inputFieldMode:`static`,outputFieldMode:`static`,defaultPayload:{pipe_id:Pb,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}}}}},Ub=`template:fill@1`,Wb=_(`template_output`),Gb=r.object({pipe_id:r.literal(Ub),connector:w(),run_if:S(),config:r.object({template:Ui({sectionKey:`general`,path:`config.template`,label:`Template`,placeholder:Z(`template`),groupPath:`config.general`,required:!0}),output_fields:R(r.object({[Wb.name]:k({fieldName:Wb.name})}))})}),Kb={"template-fill-v1-pipe0":{credits:{default:0},allowManagedConnection:!0,provider:`pipe0`,mode:`always`}},qb=class extends U{pipeId=Ub;payload;payloadSchema=Gb;billableOperations=Kb;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[`template-fill-v1-pipe0`]}getInputRequirement(){return Hm([this.payload.config.template])}getSecretRequirements(){return Y([this.payload.config.template])}getConstantRequirements(){return X([this.payload.config.template])}getRawOutputFields(){return{[Wb.name]:this.catalogOutput(Wb)}}getConnectionsRequirements(){return[]}},Jb=Gb,Yb={pipeId:Ub,inputFieldMode:`config`,outputFieldMode:`config`,basePipe:W(Ub),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(Ub),defaultInputRequirement:null,billableOperations:Kb,allowedUserConnectionProviders:[],managedProviders:[`pipe0`],deprecatedProviders:[],defaultPayload:{pipe_id:Ub,connector:null,run_if:null,config:{template:``,output_fields:{template_output:{alias:``,enabled:!0}}}}},Xb=`website:extract:firecrawl@1`,Zb=_(`website_url`),Qb=_(`firecrawl_extract_result`),$b=r.object({pipe_id:r.literal(Xb),connector:w(),run_if:S(),config:r.object({json_schema:ua({sectionKey:`general`,groupPath:`config.extraction`,path:`config.json_schema`,label:`Output JSON schema`,info:`Specify the data you want to extract as a JSON schema.`,allowEmpty:!1,required:!0}),extraction_prompt:ia({sectionKey:`general`,groupPath:`config.extraction`,path:`config.extraction_prompt`,label:`Extraction Prompt`,info:`Prompt the scraper on what it should extract. Template tags are not supported.`,rows:5,minLength:10,placeholder:`E.g. Extract the company missing and latest news.`}),enable_full_domain_crawl:O({sectionKey:`general`,groupPath:`config.extraction`,defaultValue:!1,path:`config.enable_full_domain_crawl`,info:`If this option is enabled all URLs from this domain will be scraped.`,label:`Crawl full domain`}),enable_web_search:O({sectionKey:`general`,groupPath:`config.extraction`,label:`Enable web search`,path:`enable_web_search`,defaultValue:!1,info:`When 'true', the extraction will follow links outside the specified domain.`}),input_fields:z(r.object({[Zb.name]:E({fieldName:Zb.name})})),output_fields:R(r.object({[Qb.name]:k({fieldName:Qb.name})}))})}),ex=e=>V(K(Zb,e)),tx={"website-extract-firecrawl-v1-firecrawl":{allowManagedConnection:!0,provider:`firecrawl`,credits:{default:2,level1:{credits:1,weight:1}},mode:`onSuccess`}},nx=class extends U{pipeId=Xb;payload;payloadSchema=$b;billableOperations=tx;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`firecrawl`]}estimateBillableOperations(){return[`website-extract-firecrawl-v1-firecrawl`]}getInputRequirement(){return ex(this.payload.config)}getRawOutputFields(){return{[Qb.name]:this.catalogOutput(Qb)}}getConnectionsRequirements(){return[{provider:`firecrawl`,rateLimitRatio:1,rateLimitOperation:`firecrawl_generic`,allowManagedConnection:!0}]}},rx=$b,ix={pipeId:Xb,basePipe:W(Xb),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(Xb),billableOperations:tx,inputFieldMode:`static`,outputFieldMode:`static`,allowedUserConnectionProviders:[`firecrawl`],managedProviders:[`firecrawl`],deprecatedProviders:[],defaultInputRequirement:ex(null),defaultPayload:{pipe_id:Xb,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}}}}},ax=`website:maplinks:firecrawl@1`,ox={"website-maplinks-firecrawl-v1-firecrawl":{allowManagedConnection:!0,provider:`firecrawl`,credits:{default:1},mode:`onSuccess`}},sx=_(`website_url`),cx=_(`mapped_links`),lx=r.object({pipe_id:r.literal(ax),connector:w(),run_if:S(),config:r.object({page_limit:ca({label:`Page limit`,info:`Number of pages searched`,groupPath:`config.general`,max:50,min:1,required:!1,path:`config.page_limit`,sectionKey:`general`}),sitemap:aa({label:`Sitemap`,info:`Include sitemap links`,sectionKey:`general`,groupPath:`config.general`,path:`config.sitemap`,defaultValue:`include`,required:!1,options:[{value:`include`,label:`Include`},{value:`skip`,label:`Skip`},{value:`only`,label:`Only`}]}),search:ra({sectionKey:`general`,label:`Search`,inputType:`text`,info:`Return matching urls`,groupPath:`config.general`,path:`config.search`}).default(``),input_fields:z(r.object({[sx.name]:E({fieldName:sx.name})})),output_fields:R(r.object({[cx.name]:k({fieldName:cx.name})}))}).optional()}),ux=e=>V(K(sx,e)),dx=class extends U{pipeId=ax;payload;payloadSchema=lx;billableOperations=ox;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`firecrawl`]}estimateBillableOperations(){return[`website-maplinks-firecrawl-v1-firecrawl`]}getInputRequirement(){return ux(this.payload.config)}getRawOutputFields(){return{[cx.name]:this.catalogOutput(cx)}}getConnectionsRequirements(){return[{provider:`firecrawl`,rateLimitRatio:1,rateLimitOperation:`firecrawl_map_requests`,allowManagedConnection:!0}]}},fx=lx,px={pipeId:ax,basePipe:W(ax),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(ax),billableOperations:ox,inputFieldMode:`static`,outputFieldMode:`static`,allowedUserConnectionProviders:[`firecrawl`],managedProviders:[`firecrawl`],deprecatedProviders:[],defaultInputRequirement:ux(null),defaultPayload:{pipe_id:ax,run_if:null,connector:null,config:{page_limit:25,sitemap:`include`,search:``,input_fields:{website_url:{alias:``}},output_fields:{mapped_links:{alias:``,enabled:!0}}}}},mx=`website:scrape:firecrawl@1`,hx=_(`website_url`),gx=_(`website_markdown`),_x=_(`website_html`),vx=_(`website_links`),yx=r.object({pipe_id:r.literal(mx),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({[hx.name]:E({fieldName:hx.name})})),output_fields:R(r.object({[gx.name]:k({fieldName:gx.name}),[_x.name]:k({fieldName:_x.name}),[vx.name]:k({fieldName:vx.name})}))}).optional()}),bx=e=>V(K(hx,e)),xx={"website-scrape-firecrawl-v1-firecrawl":{allowManagedConnection:!0,provider:`firecrawl`,credits:{default:.1,level1:{credits:.05,weight:1}},mode:`onSuccess`}},Sx=class extends U{pipeId=mx;payload;payloadSchema=yx;billableOperations=xx;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`firecrawl`]}estimateBillableOperations(){return[`website-scrape-firecrawl-v1-firecrawl`]}getInputRequirement(){return bx(this.payload.config)}getRawOutputFields(){return{[gx.name]:this.catalogOutput(gx),[_x.name]:this.catalogOutput(_x),[vx.name]:this.catalogOutput(vx)}}getConnectionsRequirements(){return[{provider:`firecrawl`,rateLimitRatio:1,rateLimitOperation:`firecrawl_generic`,allowManagedConnection:!0}]}},Cx=yx,wx={pipeId:mx,basePipe:W(mx),label:`Scrape`,executionMode:`single`,categories:[`tools`],lifecycle:null,description:`Turn any URL into clean data.`,tags:[B.SCRAPE],docPath:G(mx),billableOperations:xx,inputFieldMode:`static`,outputFieldMode:`static`,allowedUserConnectionProviders:[`firecrawl`],managedProviders:[`firecrawl`],deprecatedProviders:[],defaultInputRequirement:bx(null),defaultPayload:{pipe_id:mx,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}}}}},Tx=`website:scrapelist:firecrawl@1`,Ex={"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.`}},Dx=_(`urls`),Ox=_(`scrape_list_response`),kx=r.object({pipe_id:r.literal(Tx),connector:w(),run_if:S(),config:r.object({scrape_main_only:O({label:`Scrape main content only?`,defaultValue:!1,info:`If selected headers, footers, and sidebars will be excluded from the results.`,sectionKey:`general`,groupPath:`config.general`,path:`config.scrape_main_only`}),formats:sa({options:[{label:`Markdown`,value:`markdown`},{label:`HTML`,value:`html`},{label:`Links`,value:`links`}],disableSearch:!0,info:`Choose what you want to scrape from the website`,required:!1,label:`Formats`,sectionKey:`general`,groupPath:`config.general`,path:`config.formats`}),input_fields:z(r.object({[Dx.name]:E({fieldName:Dx.name})})),output_fields:R(r.object({[Ox.name]:k({fieldName:Ox.name})}))}).optional()}),Ax=e=>V(K(Dx,e)),jx=class extends U{pipeId=Tx;payload;payloadSchema=kx;billableOperations=Ex;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`firecrawl`]}estimateBillableOperations(){return[,,,,,].fill(`list-url-scrape-firecrawl`)}getInputRequirement(){return Ax(this.payload.config)}getRawOutputFields(){return{[Ox.name]:this.catalogOutput(Ox)}}getConnectionsRequirements(){return[{provider:`firecrawl`,rateLimitRatio:1,rateLimitOperation:`firecrawl_generic`,allowManagedConnection:!0}]}},Mx=kx,Nx={pipeId:Tx,basePipe:W(Tx),label:`Scrape list`,executionMode:`single`,categories:[`tools`],lifecycle:null,description:`Turn a list of URLs into clean scraped data.`,tags:[B.SCRAPE],docPath:G(Tx),billableOperations:Ex,inputFieldMode:`static`,outputFieldMode:`static`,allowedUserConnectionProviders:[`firecrawl`],managedProviders:[`firecrawl`],deprecatedProviders:[],defaultInputRequirement:Ax(null),defaultPayload:{pipe_id:Tx,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}}}}},Px=[`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`],Fx=r.enum(Px);function Ix(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 Lx(e,t){let n={name:e,config:t};return Pa.hashObject(n)}var Rx=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 Lx(this.searchId,this.payload)}};function zx(e){return e.split(`@`)[0]}function Bx(e){return`/docs/search-catalog/${zx(e)}/${e.split(`@`)[1]}`}function Vx(e,t=32){return`https://www.google.com/s2/favicons?sz=${t}&domain=${e.replace(/^(https?:\/\/)?(www\.)?/,``)}`}function Hx(e,t){return e==null?void 0:t(e)}function Ux(){return Wx({companyWebsiteUrl:`linkedin.com`,entity:`LinkedIn`})}function Wx({companyWebsiteUrl:e,entity:t}){if(e)return{image_url:Vx(e),entity:t||e}}function Gx(e,t){let n=JSON.parse(JSON.stringify({...e}));if(!t)return n;for(let e in t)!(e in n)&&t[e]!=null&&(n[e]=t[e]);return n}const Kx=`companies:profiles:amplemarket@2`,qx=_(`company_name`),Jx=_(`company_domain`),Yx=_(`company_description`),Xx=_(`company_profile_url`),Zx=_(`amplemarket_company_match`),Qx=r.object({search_id:r.literal(Kx),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({[qx.name]:N({fieldName:qx.name}),[Jx.name]:N({fieldName:Jx.name}),[Yx.name]:N({fieldName:Yx.name}),[Xx.name]:N({fieldName:Xx.name}),[Zx.name]:N({fieldName:Zx.name})})),filters:r.object({hq_locations:I({path:`config.filters.hq_locations`,sectionKey:`config.filters`,label:`HQ locations`,description:``,placeholder:Z(`location`),groupPath:`config.filters.location`,optionsDef:g(`locations`)}),company_names:j({sectionKey:`config.filters`,path:`config.filters.company_names`,label:`Company names`,description:``,placeholder:Z(`company_name`),groupPath:`config.filters.categories`,suggestionsDef:g(`company_names`)}),company_domains:j({sectionKey:`config.filters`,path:`config.filters.company_domains`,label:`Company domains`,description:``,placeholder:Z(`company_domain`),groupPath:`config.filters.categories`,suggestionsDef:g(`company_domains`,{widgets:e=>({logo_url:{url:Vx(e.value)}})})}),company_profile_urls:j({sectionKey:`config.filters`,path:`config.filters.company_profile_urls`,label:`Company LinkedIn URLs`,description:``,groupPath:`config.filters.categories`}),company_types:P({sectionKey:`config.filters`,path:`config.filters.company_types`,disableSearch:!1,label:`Company Type`,description:``,groupPath:`config.filters.categories`,options:m(`amplemarket.company_types`),required:!1}),investors:F({sectionKey:`config.filters`,path:`config.filters.investors`,label:`Investor names`,optionsDef:g(`company.crunchbase_investors.crustdata`),description:`A list of company investor names`,placeholder:Z(`investor`),groupPath:`config.filters.investors`,disableSearch:!1,required:!1}),company_industries:M({sectionKey:`config.filters`,path:`config.filters.company_industries`,optionsDef:h(`amplemarket.industries`),disableSearch:!1,label:`Industries`,description:``,placeholder:Z(`industry`),groupPath:`config.filters.industry`}),customer_types:P({sectionKey:`config.filters`,path:`config.filters.customer_types`,options:[{value:`b2b`,label:`B2B`},{value:`b2c`,label:`B2C`}],required:!1,disableSearch:!0,label:`Customer Types`,description:``,groupPath:`config.filters.industry`}),keywords:j({sectionKey:`config.filters`,path:`config.filters.keywords`,label:`Keywords`,description:``,groupPath:`config.filters.industry`}),revenue_groups:P({path:`config.filters.revenue_groups`,sectionKey:`config.filters`,label:`Revenue groups`,description:``,disableSearch:!0,options:m(`amplemarket.company_revenue`),required:!1,groupPath:`config.filters.financials`}),founded_year:pa({path:`config.filters.founded_year`,sectionKey:`config.filters`,label:`Founded year`,groupPath:`config.filters.general`,min:0,max:2040,required:!1,description:``}),open_position_titles:A({path:`config.filters.open_position_titles`,sectionKey:`config.filters`,label:`Job openings for titles`,groupPath:`config.filters.job_openings`,description:``,placeholder:Z(`title`),suggestionsDef:g(`titles`)}),headcount:P({sectionKey:`config.filters`,path:`config.filters.company_sizes`,disableSearch:!1,options:m(`amplemarket.company_size`),label:`Headcount groups`,required:!1,description:``,groupPath:`config.filters.company_size`}),headcount_growth_l6m_in_percent:pa({path:`config.filters.headcount_growth_l6m_in_percent`,sectionKey:`config.filters`,label:`Headcount growth over last 6 months (in %)`,groupPath:`config.filters.company_size`,description:``,max:1e4,min:0,required:!1})}).check(e=>{Ix(e.value)&&e.issues.push({code:`custom`,message:`You must set at least one filter.`,input:e.value})})})}),$x={default:{input:[{fields:[]}]}},eS=class extends Rx{searchId=Kx;schema=Qx;payload;constructor(e){super(),this.payload=this.validatePayload(e)}getRawOutputFields(){return{[qx.name]:this.catalogOutput(qx),[Jx.name]:this.catalogOutput(Jx),[Yx.name]:this.catalogOutput(Yx),[Xx.name]:this.catalogOutput(Xx),[Zx.name]:this.catalogOutput(Zx)}}getConnectionsRequirements(){return[{provider:`amplemarket`,rateLimitOperation:`amplemarket_company_search`,rateLimitRatio:1,allowManagedConnection:!0}]}getDedupConfig(){return $x}},tS=Qx,nS={searchId:Kx,billableOperation:`companies-profiles-amplemarket-v2`,baseSearch:zx(`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:Bx(Kx),cost:{mode:`per_page`,credits:{default:2}},provider:`amplemarket`,defaultPayload:{search_id:Kx,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:[]}}}}},rS=`companies:profiles:crustdata@2`,iS=_(`company_name`),aS=_(`company_domain`),oS=_(`company_description`),sS=_(`company_profile_url`),cS=_(`crustdata_company_match`),lS=r.object({search_id:r.literal(rS),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:ya({path:`config.cursor`,groupPath:`config.pagination`,inputType:`text`,label:`Cursor`,sectionKey:`pagination`,description:`Pagination cursor`}),output_fields:R(r.object({[iS.name]:N({fieldName:iS.name}),[aS.name]:N({fieldName:aS.name}),[oS.name]:N({fieldName:oS.name}),[sS.name]:N({fieldName:sS.name}),[cS.name]:N({fieldName:cS.name})})),filters:r.object({hq_locations:I({path:`config.filters.hq_locations`,sectionKey:`config.filters`,label:`HQ locations`,description:``,placeholder:Z(`location`),groupPath:`config.filters.location`,optionsDef:g(`locations`)}),crunchbase_categories:I({path:`config.filters.crunchbase_categories`,sectionKey:`config.filters`,label:`Crunchbase categories`,placeholder:Z(`crunchbase_category`),description:``,groupPath:`config.filters.categories`,optionsDef:g(`company.crunchbase_categories.crustdata`)}),crunchbase_investors:I({path:`config.filters.crunchbase_investors`,sectionKey:`config.filters`,label:`Investors to include (Crunchbase)`,description:``,placeholder:Z(`investor`),groupPath:`config.filters.investors`,optionsDef:g(`company.crunchbase_investors.crustdata`)}),tracxn_investors:I({path:`config.filters.tracxn_investors`,sectionKey:`config.filters`,label:`Investors to include (Tracxn)`,description:``,placeholder:Z(`investor`),groupPath:`config.filters.investors`,optionsDef:g(`company.tracxn_investors.crustdata`)}),company_types:M({sectionKey:`config.filters`,path:`config.filters.company_types`,optionsDef:{type:`static`,options:m(`crustdata.company_types`)},label:`Company types`,placeholder:`Public, Private, ...`,description:``,groupPath:`config.filters.categories`}),linkedin_industries:I({sectionKey:`config.filters`,path:`config.filters.linkedin_industries`,optionsDef:g(`linkedin_industries.crustdata`),label:`Industries`,description:``,placeholder:Z(`industry`),groupPath:`config.filters.industry`}),markets:I({sectionKey:`config.filters`,path:`config.filters.markets`,optionsDef:g(`company.markets.crustdata`),placeholder:`NYSE, TYO, ...`,label:`Markets`,description:``,groupPath:`config.filters.industry`}),linkedin_categories:I({sectionKey:`config.filters`,path:`config.filters.linkedin_categories`,optionsDef:g(`company.linkedin_categories.crustdata`),label:`LinkedIn category`,placeholder:`Marketing, Branding, ...`,description:``,groupPath:`config.filters.categories`}),headcount:M({path:`config.filters.headcount`,sectionKey:`config.filters`,label:`Headcount`,description:``,disableSearch:!0,placeholder:`1-10`,optionsDef:{type:`static`,options:m(`crustdata.company_size`)},groupPath:`config.filters.company_size`}),headcount_growth_l6m_in_percent:P({path:`config.filters.headcount_growth_l6m_in_percent`,sectionKey:`config.filters`,label:`Headcount growth over last 6 months in percent`,description:``,options:m(`crustdata.headcount_growth`),placeholder:`0-10%`,disableSearch:!0,required:!1,groupPath:`config.filters.company_size`}),revenue_in_usd:ha({path:`config.filters.revenue_in_usd`,sectionKey:`config.filters`,label:`Revenue (USD)`,description:``,legend:`1k - 10B`,min:1e3,max:1e10,groupPath:`config.filters.financials`}),last_funding_type:M({path:`config.filters.last_funding_type`,sectionKey:`config.filters`,label:`Last funding type`,placeholder:`Series A`,disableSearch:!0,optionsDef:{type:`static`,options:m(`crustdata.funding_rounds`)},description:``,groupPath:`config.filters.financials`}),last_funding_amount:ha({path:`config.filters.last_funding_amount`,sectionKey:`config.filters`,label:`Last funding amount`,legend:`1k - 10B`,min:1e3,max:1e10,description:``,groupPath:`config.filters.financials`}),number_of_followers:P({path:`config.filters.number_of_followers`,sectionKey:`config.filters`,label:`Number of LinkedIn followers`,placeholder:`1-500`,disableSearch:!0,description:``,required:!1,options:m(`crustdata.company_followers`),groupPath:`config.filters.web_presence`}),follower_growth_l6m_in_percent:P({path:`config.filters.follower_growth_l6m_in_percent`,sectionKey:`config.filters`,label:`LinkedIn follower growth within last 6 months`,required:!1,disableSearch:!0,placeholder:`0-10%`,description:``,options:m(`crustdata.follower_growth`),groupPath:`config.filters.web_presence`}),profile_summary_keywords:j({path:`config.filters.profile_summary_keywords`,sectionKey:`config.filters`,maxItems:50,label:`LinkedIn company description contains`,placeholder:Z(`company_profile_keyword`),description:``,groupPath:`config.filters.keywords`}),competitor_domains:j({path:`config.filters.competitor_domains`,sectionKey:`config.filters`,maxItems:50,label:`Competitor domain`,description:``,placeholder:Z(`company_domain`),groupPath:`config.filters.competitors`,suggestionsDef:g(`company_domains`,{widgets:e=>({logo_url:{url:Vx(e.value)}})})})}).check(e=>{Ix(e.value)&&e.issues.push({code:`custom`,message:`You must set at least one filter.`,input:e.value})})})}),uS={default:{input:[{fields:[]}]}},dS=class extends Rx{searchId=rS;schema=lS;payload;constructor(e){super(),this.payload=this.validatePayload(e)}getRawOutputFields(){return{[iS.name]:this.catalogOutput(iS),[aS.name]:this.catalogOutput(aS),[oS.name]:this.catalogOutput(oS),[sS.name]:this.catalogOutput(sS),[cS.name]:this.catalogOutput(cS)}}getConnectionsRequirements(){return[{provider:`crustdata`,rateLimitOperation:`crustdata_company_db_search`,rateLimitRatio:1,allowManagedConnection:!0}]}getDedupConfig(){return uS}},fS=lS,pS={searchId:rS,billableOperation:`companies-profiles-crustdata-v2`,baseSearch:zx(`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:Bx(rS),cost:{mode:`per_page`,credits:{default:2}},provider:`crustdata`,defaultPayload:{search_id:rS,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:[]}}}}},mS=`companies:profiles:amplemarket@1`,hS=_(`company_name`),gS=_(`company_website_url`),_S=_(`company_description`),vS=_(`company_profile_url`),yS=_(`amplemarket_company_match`),bS=r.object({search_id:r.literal(mS),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}),[gS.name]:N({fieldName:gS.name}),[_S.name]:N({fieldName:_S.name}),[vS.name]:N({fieldName:vS.name}),[yS.name]:N({fieldName:yS.name})})),filters:r.object({hq_locations:I({path:`config.filters.hq_locations`,sectionKey:`config.filters`,label:`HQ locations`,description:``,placeholder:Z(`location`),groupPath:`config.filters.location`,optionsDef:g(`locations`)}),company_names:j({sectionKey:`config.filters`,path:`config.filters.company_names`,label:`Company names`,description:``,placeholder:Z(`company_name`),groupPath:`config.filters.categories`,suggestionsDef:g(`company_names`)}),company_website_urls:j({sectionKey:`config.filters`,path:`config.filters.company_website_urls`,label:`Company domains`,description:``,placeholder:Z(`company_domain`),groupPath:`config.filters.categories`,suggestionsDef:g(`company_domains`,{widgets:{emoji:{char:`๐`}}})}),company_profile_urls:j({sectionKey:`config.filters`,path:`config.filters.company_profile_urls`,label:`Company LinkedIn URLs`,description:``,groupPath:`config.filters.categories`}),company_types:P({sectionKey:`config.filters`,path:`config.filters.company_types`,disableSearch:!1,label:`Company Type`,description:``,groupPath:`config.filters.categories`,options:m(`amplemarket.company_types`),required:!1}),investors:F({sectionKey:`config.filters`,path:`config.filters.investors`,label:`Investor names`,optionsDef:g(`company.crunchbase_investors.crustdata`),description:`A list of company investor names`,placeholder:Z(`investor`),groupPath:`config.filters.investors`,disableSearch:!1,required:!1}),company_industries:M({sectionKey:`config.filters`,path:`config.filters.company_industries`,optionsDef:h(`amplemarket.industries`),disableSearch:!1,label:`Industries`,description:``,placeholder:Z(`industry`),groupPath:`config.filters.industry`}),customer_types:P({sectionKey:`config.filters`,path:`config.filters.customer_types`,options:[{value:`b2b`,label:`B2B`},{value:`b2c`,label:`B2C`}],required:!1,disableSearch:!0,label:`Customer Types`,description:``,groupPath:`config.filters.industry`}),keywords:j({sectionKey:`config.filters`,path:`config.filters.keywords`,label:`Keywords`,description:``,groupPath:`config.filters.industry`}),revenue_groups:P({path:`config.filters.revenue_groups`,sectionKey:`config.filters`,label:`Revenue groups`,description:``,disableSearch:!0,options:m(`amplemarket.company_revenue`),required:!1,groupPath:`config.filters.financials`}),founded_year:pa({path:`config.filters.founded_year`,sectionKey:`config.filters`,label:`Founded year`,groupPath:`config.filters.general`,min:0,max:2040,required:!1,description:``}),open_positions_titles:A({path:`config.filters.open_positions_titles`,sectionKey:`config.filters`,label:`Job openings for titles`,groupPath:`config.filters.job_openings`,description:``,placeholder:Z(`title`),suggestionsDef:g(`titles`)}),headcount:P({sectionKey:`config.filters`,path:`config.filters.company_sizes`,disableSearch:!1,options:m(`amplemarket.company_size`),label:`Headcount groups`,required:!1,description:``,groupPath:`config.filters.company_size`}),headcount_growth_last_6_months_in_percent:pa({path:`config.filters.headcount_growth_last_6_months_in_percent`,sectionKey:`config.filters`,label:`Headcount growth over last 6 months (in %)`,groupPath:`config.filters.company_size`,description:``,max:1e4,min:0,required:!1})}).check(e=>{Ix(e.value)&&e.issues.push({code:`custom`,message:`You must set at least one filter.`,input:e.value})})})}),xS={default:{input:[{fields:[]}]}},SS=class extends Rx{searchId=mS;schema=bS;payload;constructor(e){super(),this.payload=this.validatePayload(e)}getRawOutputFields(){return{[hS.name]:this.catalogOutput(hS),[gS.name]:this.catalogOutput(gS),[_S.name]:this.catalogOutput(_S),[vS.name]:this.catalogOutput(vS),[yS.name]:this.catalogOutput(yS)}}getConnectionsRequirements(){return[{provider:`amplemarket`,rateLimitOperation:`amplemarket_company_search`,rateLimitRatio:1,allowManagedConnection:!0}]}getDedupConfig(){return xS}},CS=bS,wS={searchId:mS,billableOperation:`companies-profiles-amplemarket-v1`,baseSearch:zx(`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:Bx(mS),cost:{mode:`per_page`,credits:{default:2}},provider:`amplemarket`,defaultPayload:{search_id:mS,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:[]}}}}},TS=`companies:profiles:crustdata@1`,ES=_(`company_name`),DS=_(`company_website_url`),OS=_(`company_description`),kS=_(`company_profile_url`),AS=_(`crustdata_company_match`),jS=r.object({search_id:r.literal(TS),connector:v.nullable().optional(),config:r.object({limit:L({path:`config.limit`,min:1,max:100,groupPath:`config.pagination`,required:!0,sectionKey:`pagination`,label:`Limit`,description:`Max number of search results`}),cursor:ya({path:`config.cursor`,groupPath:`config.pagination`,inputType:`text`,label:`Cursor`,sectionKey:`pagination`,description:`Pagination cursor`}),output_fields:R(r.object({[ES.name]:N({fieldName:ES.name}),[DS.name]:N({fieldName:ES.name}),[OS.name]:N({fieldName:OS.name}),[kS.name]:N({fieldName:kS.name}),[AS.name]:N({fieldName:AS.name})})),filters:r.object({hq_locations:I({path:`config.filters.hq_locations`,sectionKey:`config.filters`,label:`HQ locations`,description:``,placeholder:Z(`location`),groupPath:`config.filters.location`,optionsDef:g(`locations`)}),crunchbase_categories:I({path:`config.filters.crunchbase_categories`,sectionKey:`config.filters`,label:`Crunchbase categories`,placeholder:Z(`crunchbase_category`),description:``,groupPath:`config.filters.categories`,optionsDef:g(`company.crunchbase_categories.crustdata`)}),crunchbase_investors:I({path:`config.filters.crunchbase_investors`,sectionKey:`config.filters`,label:`Investors to include (Crunchbase)`,description:``,placeholder:Z(`investor`),groupPath:`config.filters.investors`,optionsDef:g(`company.crunchbase_investors.crustdata`)}),tracxn_investors:I({path:`config.filters.tracxn_investors`,sectionKey:`config.filters`,label:`Investors to include (Tracxn)`,description:``,placeholder:Z(`investor`),groupPath:`config.filters.investors`,optionsDef:g(`company.tracxn_investors.crustdata`)}),company_types:M({sectionKey:`config.filters`,path:`config.filters.company_types`,optionsDef:{type:`static`,options:m(`crustdata.company_types`)},label:`Company types`,placeholder:`Public, Private, ...`,description:``,groupPath:`config.filters.categories`}),linkedin_industries:I({sectionKey:`config.filters`,path:`config.filters.linkedin_industries`,optionsDef:g(`linkedin_industries.crustdata`),label:`Industries`,description:``,placeholder:Z(`industry`),groupPath:`config.filters.industry`}),markets:I({sectionKey:`config.filters`,path:`config.filters.markets`,optionsDef:g(`company.markets.crustdata`),placeholder:`NYSE, TYO, ...`,label:`Markets`,description:``,groupPath:`config.filters.industry`}),linkedin_categories:I({sectionKey:`config.filters`,path:`config.filters.linkedin_categories`,optionsDef:g(`company.linkedin_categories.crustdata`),label:`LinkedIn category`,placeholder:`Marketing, Branding, ...`,description:``,groupPath:`config.filters.categories`}),headcount:M({path:`config.filters.headcount`,sectionKey:`config.filters`,label:`Headcount`,description:``,disableSearch:!0,placeholder:`1-10`,optionsDef:{type:`static`,options:m(`crustdata.company_size`)},groupPath:`config.filters.company_size`}),headcount_growth_last_6m_in_percent:P({path:`config.filters.headcount_growth_last_6m_in_percent`,sectionKey:`config.filters`,label:`Headcount growth over last 6 months in percent`,description:``,options:m(`crustdata.headcount_growth`),placeholder:`0-10%`,disableSearch:!0,required:!1,groupPath:`config.filters.company_size`}),revenue_in_usd:ha({path:`config.filters.revenue_in_usd`,sectionKey:`config.filters`,label:`Revenue (USD)`,description:``,legend:`1k - 10B`,min:1e3,max:1e10,groupPath:`config.filters.financials`}),last_funding_type:M({path:`config.filters.last_funding_type`,sectionKey:`config.filters`,label:`Last funding type`,placeholder:`Series A`,disableSearch:!0,optionsDef:{type:`static`,options:m(`crustdata.funding_rounds`)},description:``,groupPath:`config.filters.financials`}),last_funding_amount:ha({path:`config.filters.last_funding_amount`,sectionKey:`config.filters`,label:`Last funding amount`,legend:`1k - 10B`,min:1e3,max:1e10,description:``,groupPath:`config.filters.financials`}),number_of_followers:P({path:`config.filters.number_of_followers`,sectionKey:`config.filters`,label:`Number of LinkedIn followers`,placeholder:`1-500`,disableSearch:!0,description:``,required:!1,options:m(`crustdata.company_followers`),groupPath:`config.filters.web_presence`}),follower_growth_last_6m_in_percent:P({path:`config.filters.follower_growth_last_6m_in_percent`,sectionKey:`config.filters`,label:`LinkedIn follower growth within last 6 months`,required:!1,disableSearch:!0,placeholder:`0-10%`,description:``,options:m(`crustdata.follower_growth`),groupPath:`config.filters.web_presence`}),profile_summary_keywords:j({path:`config.filters.profile_summary_keywords`,sectionKey:`config.filters`,maxItems:50,label:`LinkedIn company description contains`,placeholder:Z(`company_profile_keyword`),description:``,groupPath:`config.filters.keywords`}),competitor_websites:j({path:`config.filters.competitor_websites`,sectionKey:`config.filters`,maxItems:50,label:`Competitor domains`,description:``,placeholder:Z(`company_domain`),groupPath:`config.filters.competitors`,suggestionsDef:g(`company_domains`,{widgets:{emoji:{char:`๐`}}})})}).check(e=>{Ix(e.value)&&e.issues.push({code:`custom`,message:`You must set at least one filter.`,input:e.value})})})}),MS={default:{input:[{fields:[]}]}},NS=class extends Rx{searchId=TS;schema=jS;payload;constructor(e){super(),this.payload=this.validatePayload(e)}getRawOutputFields(){return{[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)}}getConnectionsRequirements(){return[{provider:`crustdata`,rateLimitOperation:`crustdata_company_db_search`,rateLimitRatio:1,allowManagedConnection:!0}]}getDedupConfig(){return MS}},PS=jS,FS={searchId:TS,billableOperation:`companies-profiles-crustdata-v1`,baseSearch:zx(`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:Bx(TS),cost:{mode:`per_page`,credits:{default:2}},provider:`crustdata`,defaultPayload:{search_id:TS,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:[]}}}}},IS=`people:profiles:amplemarket@1`,LS=_(`name`),RS=_(`company_website_url`),zS=_(`profile_url`),BS=_(`job_title`),VS=_(`amplemarket_person_match`),HS=r.object({search_id:r.literal(IS),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({[LS.name]:N({fieldName:LS.name}),[RS.name]:N({fieldName:RS.name}),[zS.name]:N({fieldName:zS.name}),[BS.name]:N({fieldName:BS.name}),[VS.name]:N({fieldName:VS.name})})),filters:r.object({person_names:A({label:`Full name`,path:`config.filters.person_names`,sectionKey:`config.filters`,groupPath:`config.filters.general`}),current_locations:I({path:`config.filters.current_locations`,sectionKey:`config.filters`,label:`Location`,optionsDef:g(`locations`),groupPath:`config.filters.general`}),current_job_titles:A({path:`config.filters.current_job_titles`,sectionKey:`config.filters`,label:`Title`,placeholder:Z(`title`),description:``,order:1,groupPath:`config.filters.current_employer`,suggestionsDef:g(`titles`)}),current_seniority_levels:P({path:`config.filters.current_seniority_levels`,sectionKey:`config.filters`,placeholder:Z(`seniority`),label:`Seniority`,required:!1,disableSearch:!1,options:m(`amplemarket.seniority_levels`),description:``,groupPath:`config.filters.current_employer`}),current_departments:P({path:`config.filters.current_departments`,sectionKey:`config.filters`,label:`Department`,placeholder:Z(`department`),disableSearch:!1,required:!1,options:m(`amplemarket.departments`),description:``,groupPath:`config.filters.current_employer`}),current_job_functions:P({path:`config.filters.current_job_functions`,sectionKey:`config.filters`,label:`Job function`,placeholder:Z(`job_function`),disableSearch:!1,required:!1,options:m(`amplemarket.job_functions`),description:``,groupPath:`config.filters.current_employer`}),current_employer_locations:I({path:`config.filters.current_employer_locations`,sectionKey:`config.filters`,label:`Headquarters`,optionsDef:g(`locations`),groupPath:`config.filters.current_company`,placeholder:Z(`location`)}),current_employer_names:j({path:`config.filters.current_employer_names`,sectionKey:`config.filters`,label:`Company name`,groupPath:`config.filters.current_company`,description:``,placeholder:Z(`company_name`),suggestionsDef:g(`company_names`)}),current_employer_website_urls:j({path:`config.filters.current_employer_website_urls`,sectionKey:`config.filters`,label:`Company domain`,description:``,maxItems:200,placeholder:Z(`company_domain`),groupPath:`config.filters.current_company`,suggestionsDef:g(`company_domains`,{widgets:{emoji:{char:`๐`}}})}),current_employer_linkedin_industries:P({path:`config.filters.current_employer_linkedin_industries`,sectionKey:`config.filters`,label:`Industry`,disableSearch:!1,groupPath:`config.filters.current_company`,description:``,placeholder:Z(`industry`),required:!1,options:m(`linkedin.industries`)}),current_employer_estimated_revenue:P({path:`config.filters.current_employer_estimated_revenue`,sectionKey:`config.filters`,label:`Estimated revenue`,disableSearch:!1,required:!1,groupPath:`config.filters.current_company`,description:``,options:m(`amplemarket.company_revenue`)}),current_employer_founded_year:pa({path:`config.filters.current_employer_founded_year`,sectionKey:`config.filters`,label:`Founded year`,groupPath:`config.filters.current_company`,min:0,max:2040,required:!1,description:``}),current_employer_investors:A({path:`config.filters.current_employer_investors`,sectionKey:`config.filters`,label:`Employer investors`,groupPath:`config.filters.current_company`,placeholder:Z(`investor`),description:``}),current_employer_open_positions_titles:A({path:`config.filters.current_employer_open_positions_titles`,sectionKey:`config.filters`,label:`Open positions`,groupPath:`config.filters.current_company`,description:``,placeholder:Z(`title`),suggestionsDef:g(`titles`)}),school_names:I({path:`config.filters.school_names`,sectionKey:`config.filters`,label:`School names`,description:``,placeholder:Z(`school`),groupPath:`config.filters.education`,optionsDef:g(`schools`)})}).check(e=>{Ix(e.value)&&e.issues.push({code:`custom`,message:`You must set at least one filter.`,input:e.value})})})}),US={default:{input:[{fields:[]}]}},WS=class extends Rx{searchId=IS;schema=HS;payload;constructor(e){super(),this.payload=this.validatePayload(e)}getRawOutputFields(){return{[LS.name]:this.catalogOutput(LS),[RS.name]:this.catalogOutput(RS),[zS.name]:this.catalogOutput(zS),[BS.name]:this.catalogOutput(BS),[VS.name]:this.catalogOutput(VS)}}getConnectionsRequirements(){return[{provider:`amplemarket`,rateLimitOperation:`amplemarket_people_search`,rateLimitRatio:1,allowManagedConnection:!0}]}getDedupConfig(){return US}},GS=HS,KS={searchId:IS,billableOperation:`people-profiles-amplemarket-v1`,baseSearch:zx(`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:Bx(IS),cost:{mode:`per_page`,credits:{default:3},info:`1 page = 100 records; 200 results = 2 pages`},provider:`amplemarket`,defaultPayload:{search_id:IS,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:[]}}}},qS=`people:profiles:crustdata@1`,JS=_(`name`),YS=_(`company_website_url`),XS=_(`profile_url`),ZS=_(`job_title`),QS=_(`crustdata_person_match`),$S=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:ya({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}),[YS.name]:N({fieldName:YS.name}),[XS.name]:N({fieldName:XS.name}),[ZS.name]:N({fieldName:ZS.name}),[QS.name]:N({fieldName:QS.name})})),filters:r.object({locations:I({path:`config.filters.locations`,sectionKey:`config.filters`,label:`Location`,placeholder:Z(`location`),optionsDef:g(`locations`),groupPath:`config.filters.general`}),current_job_titles:j({path:`config.filters.current_job_titles`,sectionKey:`config.filters`,label:`Title`,description:``,placeholder:Z(`title`),order:1,groupPath:`config.filters.current_employer`,suggestionsDef:g(`titles`)}),current_employers:j({path:`config.filters.current_employers`,sectionKey:`config.filters`,label:`Company name`,description:``,placeholder:Z(`company_name`),maxItems:200,groupPath:`config.filters.current_employer`,suggestionsDef:g(`company_names`,{widgets:{emoji:{char:`๐ท๏ธ`}}})}),current_employers_website_urls:j({path:`config.filters.current_employers_website_urls`,sectionKey:`config.filters`,label:`Company domain`,placeholder:Z(`company_domain`),description:``,maxItems:200,groupPath:`config.filters.current_employer`,suggestionsDef:g(`company_domains`,{widgets:{emoji:{char:`๐`}}})}),current_employers_linkedin_industries:I({path:`config.filters.current_employers_linkedin_industries`,sectionKey:`config.filters`,label:`Industry`,groupPath:`config.filters.current_employer`,placeholder:Z(`industry`),description:``,optionsDef:g(`linkedin_industries.crustdata`,{limit:300})}),years_at_current_company:P({path:`config.filters.years_at_current_company`,sectionKey:`config.filters`,label:`Years at current company`,placeholder:`1 to 2 years`,disableSearch:!1,required:!1,groupPath:`config.filters.current_employer`,description:``,options:m(`crustdata.years_of_experience`)}),previous_employers_website_urls:j({path:`config.filters.previous_employers_website_urls`,sectionKey:`config.filters`,label:`Previous employer domain`,description:``,placeholder:Z(`company_domain`),maxItems:200,groupPath:`config.filters.experience`,suggestionsDef:g(`company_domains`,{widgets:{emoji:{char:`๐`}}})}),previous_seniority_levels:M({path:`config.filters.previous_seniority_levels`,sectionKey:`config.filters`,label:`Previous seniority`,placeholder:Z(`seniority`),disableSearch:!0,optionsDef:h(`crustdata.person_seniority`),description:``,groupPath:`config.filters.experience`}),previous_employers:j({path:`config.filters.previous_employers`,sectionKey:`config.filters`,label:`Previous employer`,description:``,placeholder:Z(`company_name`),maxItems:200,groupPath:`config.filters.experience`,suggestionsDef:g(`company_names`,{widgets:{emoji:{char:`๐ท๏ธ`}}})}),previous_job_titles:j({path:`config.filters.previous_job_titles`,sectionKey:`config.filters`,label:`Previous title`,description:``,placeholder:Z(`title`),groupPath:`config.filters.experience`,suggestionsDef:g(`titles`)}),previous_employers_linkedin_industries:I({path:`config.filters.previous_employers_linkedin_industries`,sectionKey:`config.filters`,label:`Previous employer industries`,placeholder:Z(`industry`),groupPath:`config.filters.experience`,description:``,optionsDef:g(`linkedin_industries.crustdata`,{limit:300})}),profile_headline_keywords:j({path:`config.filters.profile_headline_keywords`,sectionKey:`config.filters`,label:`Headline contains keywords`,maxItems:100,groupPath:`config.filters.keywords`,placeholder:Z(`headline_keywords`)}),profile_summary_keywords:j({path:`config.filters.profile_summary_keywords`,sectionKey:`config.filters`,label:`Profile about section contains keywords`,maxItems:100,groupPath:`config.filters.keywords`,placeholder:Z(`profile_keywords`)}),profile_languages:M({path:`config.filters.profile_languages`,sectionKey:`config.filters`,label:`Profile language`,placeholder:Z(`languages`),optionsDef:h(`crustdata.person_profile_languages`),groupPath:`config.filters.general`}),languages:M({path:`config.filters.languages`,sectionKey:`config.filters`,label:`Spoken language`,placeholder:Z(`languages_1`),optionsDef:h(`crustdata.person_profile_languages`),groupPath:`config.filters.general`}),skills:I({path:`config.filters.skills`,sectionKey:`config.filters`,label:`Skills`,description:``,placeholder:Z(`skills`),groupPath:`config.filters.skills`,optionsDef:g(`skills`)}),years_of_experience:P({path:`config.filters.years_of_experience`,sectionKey:`config.filters`,label:`Years of experience`,placeholder:`1 to 2 years`,disableSearch:!0,description:``,required:!1,options:m(`crustdata.years_of_experience`),groupPath:`config.filters.experience`}),current_seniority_levels:M({path:`config.filters.current_seniority_levels`,sectionKey:`config.filters`,disableSearch:!0,label:`Seniority`,placeholder:Z(`seniority`),optionsDef:h(`crustdata.person_seniority`),description:``,groupPath:`config.filters.experience`}),certifications:j({path:`config.filters.certifications`,sectionKey:`config.filters`,label:`Certifications`,groupPath:`config.filters.certifications_honors`,placeholder:Z(`certification`),description:``}),honors:j({path:`config.filters.honors`,sectionKey:`config.filters`,label:`Honors`,groupPath:`config.filters.certifications_honors`,placeholder:Z(`honor`),description:``}),recently_changed_jobs:va({path:`config.filters.recently_changed_jobs`,sectionKey:`config.filters`,label:`Recently changed jobs`,description:``,defaultValue:null,groupPath:`config.filters.activities`}),fields_of_study:I({path:`config.filters.fields_of_study`,sectionKey:`config.filters`,label:`Fields of study`,placeholder:Z(`field_of_study`),description:``,groupPath:`config.filters.education`,optionsDef:g(`person.education_field_of_study.crustdata`)}),degree_names:I({path:`config.filters.degree_names`,sectionKey:`config.filters`,label:`Degree names`,placeholder:Z(`degree_name`),description:``,groupPath:`config.filters.education`,optionsDef:g(`person.education_degree.crustdata`)}),school_names:I({path:`config.filters.school_names`,sectionKey:`config.filters`,label:`School names`,description:``,placeholder:Z(`school`),groupPath:`config.filters.education`,optionsDef:g(`schools`)}),current_school_names:I({path:`config.filters.current_school_names`,sectionKey:`config.filters`,label:`Currently enrolled at`,description:``,placeholder:Z(`school`),groupPath:`config.filters.education`,optionsDef:g(`schools`)}),extracurricular_activities:j({path:`config.filters.extracurricular_activities`,sectionKey:`config.filters`,label:`Extracurricular activities`,description:``,placeholder:Z(`extracurricular`),groupPath:`config.filters.education`,suggestionsDef:g(`person.education_activities.crustdata`)})}).check(e=>{Ix(e.value)&&e.issues.push({code:`custom`,message:`You must set at least one filter.`,input:e.value})})})}),eC={default:{input:[{fields:[]}]}},tC=class extends Rx{searchId=qS;schema=$S;payload;constructor(e){super(),this.payload=this.validatePayload(e)}getRawOutputFields(){return{[JS.name]:this.catalogOutput(JS),[YS.name]:this.catalogOutput(YS),[XS.name]:this.catalogOutput(XS),[ZS.name]:this.catalogOutput(ZS),[QS.name]:this.catalogOutput(QS)}}getConnectionsRequirements(){return[{provider:`crustdata`,rateLimitOperation:`crustdata_people_db_search`,rateLimitRatio:1,allowManagedConnection:!0}]}getDedupConfig(){return eC}},nC=$S,rC={searchId:qS,billableOperation:`people-profiles-crustdata-v1`,baseSearch:zx(`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:Bx(qS),cost:{mode:`per_page`,credits:{default:5},info:`1 page = 100 records; 200 results = 2 pages`},provider:`crustdata`,defaultPayload:{search_id:qS,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:[]}}}}},iC=`people:profiles:amplemarket@2`,aC=_(`name`),oC=_(`company_domain`),sC=_(`profile_url`),cC=_(`job_title`),lC=_(`amplemarket_person_match`),uC=r.object({search_id:r.literal(iC),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({[aC.name]:N({fieldName:aC.name}),[oC.name]:N({fieldName:oC.name}),[sC.name]:N({fieldName:sC.name}),[cC.name]:N({fieldName:cC.name}),[lC.name]:N({fieldName:lC.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:Vx(e.value)}})})}),current_employer_linkedin_industries:P({path:`config.filters.current_employer_linkedin_industries`,sectionKey:`config.filters`,label:`Industry`,disableSearch:!1,groupPath:`config.filters.current_company`,description:``,placeholder:Z(`industry`),required:!1,options:m(`linkedin.industries`)}),current_employer_estimated_revenue:P({path:`config.filters.current_employer_estimated_revenue`,sectionKey:`config.filters`,label:`Estimated revenue`,disableSearch:!1,required:!1,groupPath:`config.filters.current_company`,description:``,options:m(`amplemarket.company_revenue`)}),current_employer_founded_year:pa({path:`config.filters.current_employer_founded_year`,sectionKey:`config.filters`,label:`Founded year`,groupPath:`config.filters.current_company`,min:0,max:2040,required:!1,description:``}),current_employer_investors:A({path:`config.filters.current_employer_investors`,sectionKey:`config.filters`,label:`Employer investors`,groupPath:`config.filters.current_company`,placeholder:Z(`investor`),description:``}),current_employer_open_position_titles:A({path:`config.filters.current_employer_open_position_titles`,sectionKey:`config.filters`,label:`Open positions`,groupPath:`config.filters.current_company`,description:``,placeholder:Z(`title`),suggestionsDef:g(`titles`)}),school_names:I({path:`config.filters.school_names`,sectionKey:`config.filters`,label:`School names`,description:``,placeholder:Z(`school`),groupPath:`config.filters.education`,optionsDef:g(`schools`)})}).check(e=>{Ix(e.value)&&e.issues.push({code:`custom`,message:`You must set at least one filter.`,input:e.value})})})}),dC={default:{input:[{fields:[]}]}},fC=class extends Rx{searchId=iC;schema=uC;payload;constructor(e){super(),this.payload=this.validatePayload(e)}getRawOutputFields(){return{[aC.name]:this.catalogOutput(aC),[oC.name]:this.catalogOutput(oC),[sC.name]:this.catalogOutput(sC),[cC.name]:this.catalogOutput(cC),[lC.name]:this.catalogOutput(lC)}}getConnectionsRequirements(){return[{provider:`amplemarket`,rateLimitOperation:`amplemarket_people_search`,rateLimitRatio:1,allowManagedConnection:!0}]}getDedupConfig(){return dC}},pC=uC,mC={searchId:iC,billableOperation:`people-profiles-amplemarket-v2`,baseSearch:zx(`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:Bx(iC),cost:{mode:`per_page`,credits:{default:3},info:`1 page = 100 records; 200 results = 2 pages`},provider:`amplemarket`,defaultPayload:{search_id:iC,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:[]}}}},hC=`people:profiles:crustdata@2`,gC=_(`name`),_C=_(`company_domain`),vC=_(`profile_url`),yC=_(`job_title`),bC=_(`crustdata_person_match`),xC=r.object({search_id:r.literal(hC),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:ya({path:`config.cursor`,groupPath:`config.pagination`,inputType:`text`,label:`Cursor`,sectionKey:`pagination`,description:`Pagination cursor`}),output_fields:R(r.object({[gC.name]:N({fieldName:gC.name}),[_C.name]:N({fieldName:_C.name}),[vC.name]:N({fieldName:vC.name}),[yC.name]:N({fieldName:yC.name}),[bC.name]:N({fieldName:bC.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:Vx(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:Vx(e.value)}})})}),previous_seniority_levels:M({path:`config.filters.previous_seniority_levels`,sectionKey:`config.filters`,label:`Previous seniority`,placeholder:Z(`seniority`),disableSearch:!0,optionsDef:h(`crustdata.person_seniority`),description:``,groupPath:`config.filters.experience`}),previous_employer_names:j({path:`config.filters.previous_employer_names`,sectionKey:`config.filters`,label:`Previous employer`,description:``,placeholder:Z(`company_name`),maxItems:200,groupPath:`config.filters.experience`,suggestionsDef:g(`company_names`,{widgets:{emoji:{char:`๐ท๏ธ`}}})}),previous_job_titles:j({path:`config.filters.previous_job_titles`,sectionKey:`config.filters`,label:`Previous title`,description:``,placeholder:Z(`title`),groupPath:`config.filters.experience`,suggestionsDef:g(`titles`)}),previous_employer_industries:I({path:`config.filters.previous_employer_industries`,sectionKey:`config.filters`,label:`Previous employer industries`,placeholder:Z(`industry`),groupPath:`config.filters.experience`,description:``,optionsDef:g(`linkedin_industries.crustdata`,{limit:300})}),profile_headline_keywords:j({path:`config.filters.profile_headline_keywords`,sectionKey:`config.filters`,label:`Headline contains keywords`,maxItems:100,groupPath:`config.filters.keywords`,placeholder:Z(`headline_keywords`)}),profile_summary_keywords:j({path:`config.filters.profile_summary_keywords`,sectionKey:`config.filters`,label:`Profile about section contains keywords`,maxItems:100,groupPath:`config.filters.keywords`,placeholder:Z(`profile_keywords`)}),profile_languages:M({path:`config.filters.profile_languages`,sectionKey:`config.filters`,label:`Profile language`,placeholder:Z(`languages`),optionsDef:h(`crustdata.person_profile_languages`),groupPath:`config.filters.general`}),languages:M({path:`config.filters.languages`,sectionKey:`config.filters`,label:`Spoken language`,placeholder:Z(`languages_1`),optionsDef:h(`crustdata.person_profile_languages`),groupPath:`config.filters.general`}),skills:I({path:`config.filters.skills`,sectionKey:`config.filters`,label:`Skills`,description:``,placeholder:Z(`skills`),groupPath:`config.filters.skills`,optionsDef:g(`skills`)}),years_of_experience:P({path:`config.filters.years_of_experience`,sectionKey:`config.filters`,label:`Years of experience`,placeholder:`1 to 2 years`,disableSearch:!0,description:``,required:!1,options:m(`crustdata.years_of_experience`),groupPath:`config.filters.experience`}),current_seniority_levels:M({path:`config.filters.current_seniority_levels`,sectionKey:`config.filters`,disableSearch:!0,label:`Seniority`,placeholder:Z(`seniority`),optionsDef:h(`crustdata.person_seniority`),description:``,groupPath:`config.filters.experience`}),certifications:j({path:`config.filters.certifications`,sectionKey:`config.filters`,label:`Certifications`,groupPath:`config.filters.certifications_honors`,placeholder:Z(`certification`),description:``}),honors:j({path:`config.filters.honors`,sectionKey:`config.filters`,label:`Honors`,groupPath:`config.filters.certifications_honors`,placeholder:Z(`honor`),description:``}),recently_changed_jobs:va({path:`config.filters.recently_changed_jobs`,sectionKey:`config.filters`,label:`Recently changed jobs`,description:``,defaultValue:null,groupPath:`config.filters.activities`}),fields_of_study:I({path:`config.filters.fields_of_study`,sectionKey:`config.filters`,label:`Fields of study`,placeholder:Z(`field_of_study`),description:``,groupPath:`config.filters.education`,optionsDef:g(`person.education_field_of_study.crustdata`)}),degree_names:I({path:`config.filters.degree_names`,sectionKey:`config.filters`,label:`Degree names`,placeholder:Z(`degree_name`),description:``,groupPath:`config.filters.education`,optionsDef:g(`person.education_degree.crustdata`)}),school_names:I({path:`config.filters.school_names`,sectionKey:`config.filters`,label:`School names`,description:``,placeholder:Z(`school`),groupPath:`config.filters.education`,optionsDef:g(`schools`)}),current_school_names:I({path:`config.filters.current_school_names`,sectionKey:`config.filters`,label:`Currently enrolled at`,description:``,placeholder:Z(`school`),groupPath:`config.filters.education`,optionsDef:g(`schools`)}),extracurricular_activities:j({path:`config.filters.extracurricular_activities`,sectionKey:`config.filters`,label:`Extracurricular activities`,description:``,placeholder:Z(`extracurricular`),groupPath:`config.filters.education`,suggestionsDef:g(`person.education_activities.crustdata`)})}).check(e=>{Ix(e.value)&&e.issues.push({code:`custom`,message:`You must set at least one filter.`,input:e.value})})})}),SC={default:{input:[{fields:[]}]}},CC=class extends Rx{searchId=hC;schema=xC;payload;constructor(e){super(),this.payload=this.validatePayload(e)}getRawOutputFields(){return{[gC.name]:this.catalogOutput(gC),[_C.name]:this.catalogOutput(_C),[vC.name]:this.catalogOutput(vC),[yC.name]:this.catalogOutput(yC),[bC.name]:this.catalogOutput(bC)}}getConnectionsRequirements(){return[{provider:`crustdata`,rateLimitOperation:`crustdata_people_db_search`,rateLimitRatio:1,allowManagedConnection:!0}]}getDedupConfig(){return SC}},wC=xC,TC={searchId:hC,billableOperation:`people-profiles-crustdata-v2`,baseSearch:zx(`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:Bx(hC),cost:{mode:`per_page`,credits:{default:5},info:`1 page = 100 records; 200 results = 2 pages`},provider:`crustdata`,defaultPayload:{search_id:hC,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:[]}}}}},EC={"people:profiles:crustdata@1":tC,"people:profiles:crustdata@2":CC,"companies:profiles:crustdata@1":NS,"companies:profiles:crustdata@2":dS,"people:profiles:amplemarket@1":WS,"people:profiles:amplemarket@2":fC,"companies:profiles:amplemarket@1":SS,"companies:profiles:amplemarket@2":eS},DC={"people:profiles:crustdata@1":nC,"people:profiles:crustdata@2":wC,"companies:profiles:crustdata@1":PS,"companies:profiles:crustdata@2":fS,"people:profiles:amplemarket@1":GS,"people:profiles:amplemarket@2":pC,"companies:profiles:amplemarket@1":CS,"companies:profiles:amplemarket@2":tS},OC={"people:profiles:crustdata@1":rC,"people:profiles:crustdata@2":TC,"companies:profiles:crustdata@1":FS,"companies:profiles:crustdata@2":pS,"people:profiles:amplemarket@1":KS,"people:profiles:amplemarket@2":mC,"companies:profiles:amplemarket@1":wS,"companies:profiles:amplemarket@2":nS};function kC(e){return EC[e]}const AC=t.discriminatedUnion(`search_id`,Object.values(DC).map(e=>e)).openapi(`SearchPayloadSchema`);function jC(e,t){return Ca(t,OC[e].defaultPayload)}const MC=t.preprocess(e=>{if(!e||typeof e!=`object`||!(`search_id`in e))return e;let t=jC(e.search_id);return t?{...e,config:Ca(e?.config||{},t.config)}:e},AC),NC=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:MC}).openapi(`SearchRequestSchema`),PC=In,FC=t.object({value:Cn,status:Sn,type:bn.optional(),format:zn.nullable().optional(),resolved_by:Gn.nullable().optional(),widgets:Fn.optional()}),IC=t.record(t.string(),FC.nullable());function LC(e){return DC[e]}const RC=t.enum([`cursor`,`page_number`]),zC=t.object({id:t.string(),status:t.enum([`completed`,`failed`,`pending`,`processing`]),search_id:Fx,errors:t.array(PC),results:t.array(IC),organization_id:t.string(),next_page:MC.nullable(),pagination_type:RC.nullable(),total_pages:t.int32().nullable()}).openapi(`SearchResponseSchema`);function BC(e){let t=e.split(`@`)[1];if(!t)throw Error(`No search version found`);return Number(t)}function VC(){let e={};for(let t of Object.values(OC)){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=BC(e.searchId);return BC(t.searchId)-n})}),e}function HC(e){return OC[e]}const UC=VC();function WC(e){let t=[];for(let[n,r]of Object.entries(UC)){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:BC(i.searchId)})}return t}function GC(e){return Object.keys(OC[e].defaultPayload.config.output_fields)}function KC(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 GC(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:UC}}function qC(e){let t=HC(e);return{[t.provider]:t.cost.credits.default}}const JC={"prompt:run@1":yb,"company:newssummary:website@1":ml,"company:newssummary:domain@1":cs,"company:techstack:builtwith@1":nu,"company:techstack:builtwith@2":Fs,"company:websiteurl:email@1":du,"company:domain:workemail@1":Za,"company:funding:leadmagic@1":sc,"company:funding:leadmagic@2":fo,"people:workemail:waterfall@1":Em,"person:workemail:waterfall@1":fb,"people:email:iswork@1":bu,"email:iswork@1":Fm,"people:name:split@1":Yd,"person:name:split@1":Ov,"people:validate:email:zerobounce@1":$p,"people:email:validate:zerobounce@2":zu,"email:validate:zerobounce@1":uh,"people:mobilenumber:workemail:waterfall@1":zd,"person:name:join@1":vv,"company:overview@1":kl,"company:overview@2":Gl,"company:overview@3":ws,"json:extract:multi@1":dg,"company:lookalikes:companyenrich@1":Rc,"company:lookalikes:companyenrich@2":Mo,"company:match:logodev@1":al,"company:match:logodev@2":$o,"person:posts:crustdata@1":Xv,"people:profile:workemail:crustdata@1":jp,"person:profile:workemail:crustdata@1":_y,"people:identity:email:waterfall@1":od,"person:identity:email:waterfall@1":b_,"person:identity:amplemarket@1":i_,"email:send:resend@1":eh,"contact:create:resend@1":qs,"email:send:gmail@1":qm,"email:write@1":bh,"fields:merge@1":Xh,"field:slugify@1":Rh,"field:domainify@1":kh,"http:request@1":ag,"template:fill@1":qb,"message:send:slack@1":yg,"message:write@1":Dg,"people:personalemail:profile:waterfall@1":cf,"person:personalemail:profileurl:waterfall@1":Bv,"website:scrape:firecrawl@1":Sx,"website:scrapelist:firecrawl@1":jx,"website:extract:firecrawl@1":nx,"website:maplinks:firecrawl@1":dx,"sheet:row:append@1":jb,"sheet:row:expandappend@1":Bb,"people:match:role:waterfall@1":_d,"person:match:role:waterfall@1":B_,"company:match:crustdata@1":qc,"company:match:crustdata@2":Vo,"person:match:amplemarket@1":k_,"company:identity@2":kc,"company:identity@3":Co,"people:phone:profile:waterfall@1":yf,"person:mobile:profileurl:waterfall@1":Z_,"person:devprofileurl:profileurl:waterfall@1":zg,"people:phone:workemail:waterfall@1":Af,"person:mobile:workemail:waterfall@1":cv,"people:profile:waterfall@1":xp,"person:profile:waterfall@1":sy,"people:profileurl:email:waterfall@1":Up,"person:profileurl:email:waterfall@1":ky,"person:profileurl:name@1":By,"people:email:validate:zerobounce@1":ku,"person:email:validate:millionverifier@1":Yg,"people:workemail:profileurl:waterfall@1":fm,"person:workemail:profileurl:waterfall@1":Qy,"company:identity@1":vc,"people:professionalprofile:waterfall@1":Vf,"people:professionalprofileurl:name@1":up,"people:professionalprofileurl:email:waterfall@1":$f,"people:mobilenumber:professionalprofile:waterfall@1":Od},YC={"prompt:run@1":bb,"company:newssummary:website@1":hl,"company:newssummary:domain@1":ls,"company:techstack:builtwith@1":ru,"company:techstack:builtwith@2":Is,"company:websiteurl:email@1":fu,"company:domain:workemail@1":Qa,"company:funding:leadmagic@1":cc,"company:funding:leadmagic@2":po,"people:workemail:waterfall@1":Dm,"person:workemail:waterfall@1":pb,"people:email:iswork@1":xu,"email:iswork@1":Im,"people:name:split@1":Xd,"person:name:split@1":kv,"people:validate:email:zerobounce@1":em,"people:email:validate:zerobounce@2":Bu,"email:validate:zerobounce@1":dh,"people:mobilenumber:workemail:waterfall@1":Bd,"person:name:join@1":yv,"company:overview@1":Al,"company:overview@2":Kl,"company:overview@3":Ts,"json:extract:multi@1":fg,"email:write@1":xh,"fields:merge@1":Zh,"field:slugify@1":zh,"field:domainify@1":Ah,"http:request@1":og,"email:send:resend@1":th,"contact:create:resend@1":Js,"company:lookalikes:companyenrich@1":zc,"company:lookalikes:companyenrich@2":No,"company:match:logodev@1":ol,"company:match:logodev@2":es,"person:posts:crustdata@1":Zv,"people:profile:workemail:crustdata@1":Mp,"person:profile:workemail:crustdata@1":vy,"people:identity:email:waterfall@1":sd,"person:identity:email:waterfall@1":x_,"company:match:crustdata@1":Jc,"company:match:crustdata@2":Ho,"person:identity:amplemarket@1":a_,"message:send:slack@1":bg,"email:send:gmail@1":Jm,"message:write@1":Og,"template:fill@1":Jb,"website:scrape:firecrawl@1":Cx,"website:scrapelist:firecrawl@1":Mx,"website:extract:firecrawl@1":rx,"website:maplinks:firecrawl@1":fx,"sheet:row:append@1":Mb,"sheet:row:expandappend@1":Vb,"people:match:role:waterfall@1":vd,"person:match:role:waterfall@1":V_,"company:identity@2":Ac,"company:identity@3":wo,"people:phone:profile:waterfall@1":bf,"person:mobile:profileurl:waterfall@1":Q_,"person:devprofileurl:profileurl:waterfall@1":Bg,"people:personalemail:profile:waterfall@1":lf,"person:personalemail:profileurl:waterfall@1":Vv,"people:profile:waterfall@1":Sp,"person:profile:waterfall@1":cy,"people:profileurl:email:waterfall@1":Wp,"person:profileurl:email:waterfall@1":Ay,"person:profileurl:name@1":Vy,"people:email:validate:zerobounce@1":Au,"person:email:validate:millionverifier@1":Xg,"people:phone:workemail:waterfall@1":jf,"person:mobile:workemail:waterfall@1":lv,"people:workemail:profileurl:waterfall@1":pm,"person:workemail:profileurl:waterfall@1":$y,"person:match:amplemarket@1":A_,"company:identity@1":yc,"people:professionalprofile:waterfall@1":Hf,"people:professionalprofileurl:name@1":dp,"people:professionalprofileurl:email:waterfall@1":ep,"people:mobilenumber:professionalprofile:waterfall@1":kd},XC={"prompt:run@1":xb,"company:newssummary:website@1":gl,"company:newssummary:domain@1":us,"company:techstack:builtwith@1":iu,"company:techstack:builtwith@2":Ls,"company:websiteurl:email@1":pu,"company:domain:workemail@1":$a,"company:funding:leadmagic@1":lc,"company:funding:leadmagic@2":mo,"people:workemail:waterfall@1":Om,"person:workemail:waterfall@1":mb,"people:email:iswork@1":Su,"email:iswork@1":Lm,"people:name:split@1":Zd,"person:name:split@1":Av,"people:validate:email:zerobounce@1":tm,"people:mobilenumber:workemail:waterfall@1":Vd,"person:name:join@1":bv,"company:overview@1":jl,"company:overview@2":ql,"company:overview@3":Es,"json:extract:multi@1":pg,"email:send:resend@1":nh,"contact:create:resend@1":Ys,"email:send:gmail@1":Ym,"message:send:slack@1":xg,"message:write@1":kg,"email:write@1":Sh,"template:fill@1":Yb,"fields:merge@1":Qh,"field:slugify@1":Bh,"field:domainify@1":jh,"http:request@1":sg,"sheet:row:append@1":Nb,"sheet:row:expandappend@1":Hb,"company:lookalikes:companyenrich@1":Bc,"company:lookalikes:companyenrich@2":Po,"people:match:role:waterfall@1":yd,"person:match:role:waterfall@1":H_,"company:match:logodev@1":sl,"company:match:logodev@2":ts,"person:posts:crustdata@1":Qv,"people:profile:workemail:crustdata@1":Np,"person:profile:workemail:crustdata@1":yy,"people:workemail:profileurl:waterfall@1":mm,"person:workemail:profileurl:waterfall@1":eb,"people:identity:email:waterfall@1":cd,"person:identity:email:waterfall@1":S_,"company:match:crustdata@1":Yc,"company:match:crustdata@2":Uo,"person:identity:amplemarket@1":o_,"email:validate:zerobounce@1":fh,"person:email:validate:millionverifier@1":Zg,"people:personalemail:profile:waterfall@1":uf,"person:personalemail:profileurl:waterfall@1":Hv,"people:email:validate:zerobounce@1":ju,"people:email:validate:zerobounce@2":Vu,"people:phone:workemail:waterfall@1":Mf,"person:mobile:workemail:waterfall@1":uv,"website:scrape:firecrawl@1":wx,"website:scrapelist:firecrawl@1":Nx,"website:extract:firecrawl@1":ix,"website:maplinks:firecrawl@1":px,"person:match:amplemarket@1":j_,"company:identity@2":jc,"company:identity@3":To,"people:phone:profile:waterfall@1":xf,"person:mobile:profileurl:waterfall@1":$_,"person:devprofileurl:profileurl:waterfall@1":Vg,"people:profile:waterfall@1":Cp,"person:profile:waterfall@1":ly,"people:profileurl:email:waterfall@1":Gp,"person:profileurl:email:waterfall@1":jy,"person:profileurl:name@1":Hy,"company:identity@1":bc,"people:professionalprofile:waterfall@1":Uf,"people:professionalprofileurl:name@1":fp,"people:professionalprofileurl:email:waterfall@1":tp,"people:mobilenumber:professionalprofile:waterfall@1":Ad};function ZC(e){return e.defaultPayload?.config?.output_fields?Object.keys(e.defaultPayload?.config?.output_fields||{}):[]}function QC(e){return JC[e]}function $C(e){return XC[e].defaultPayload}function ew(e){return YC[e]}const tw=r.discriminatedUnion(`pipe_id`,Object.values(YC)).openapi(`PipePayload`),nw=r.preprocess(e=>{if(!e||typeof e!=`object`||!(`pipe_id`in e))return e;try{let t=$C(vn.parse(e.pipe_id));return t?{...e,config:Ca(e?.config||{},t.config)}:e}catch{return e}},tw);function rw(e){return XC[e]}function iw(e,t){let n=rw(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 aw(e){let t=e.split(`@`)[1];if(!t)throw Error(`No pipe version found`);return Number(t)}function ow(){let e={};for(let t of Object.values(XC)){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=aw(e.pipeId);return aw(t.pipeId)-n})}),e}const sw=e=>{let t=rw(e),n=new Set(t.deprecatedProviders);return Array.from(new Set([...t.managedProviders,...t.allowedUserConnectionProviders])).filter(e=>!n.has(e))},cw=ow();function lw(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}`)}}lw(XC,OC);function uw(e){let t=[];for(let[n,r]of Object.entries(cw)){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:aw(i.pipeId)})}return t}function dw(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=sw(e.defaultPayload.pipe_id);for(let n of t)o[n]??=[],o[n].push(e.defaultPayload.pipe_id);for(let t of ZC(e))i[t]??=[],i[t].push(e.defaultPayload.pipe_id);if(e.defaultInputRequirement)for(let{field:t}of ka(e.defaultInputRequirement))r[t.name]??=[],r[t.name]?.push(e.defaultPayload.pipe_id);for(let t of e.tags)a[t]??=[],a[t].push(e.defaultPayload.pipe_id)}return{pipeIdsByInputField:r,pipeIdsByOutputField:i,pipeIdsByTag:a,pipeIdsByProvider:o,sortedTagEntries:Object.entries(a).sort((e,t)=>e[0].localeCompare(t[0])),sortedInputFieldEntries:Object.entries(r).sort((e,t)=>e[0].localeCompare(t[0])),sortedOutputFieldEntries:Object.entries(i).sort((e,t)=>e[0].localeCompare(t[0])),sortedProviderEntries:Object.entries(o).sort((e,t)=>e[0].localeCompare(t[0])),pipeEntriesByBasePipe:cw}}const fw=r.object({id:r.string(),organization_id:r.string(),order:r.array(xn),field_definitions:Qn,errors:r.array(In),records:r.record(xn,Yn),status:r.enum([`completed`,`failed`,`pending`,`processing`])}).openapi(`PipesResponseSchema`),pw=r.object({environment:gn.default(`production`),widgets:r.object({enabled:r.boolean().default(!1)}).default({enabled:!1}),field_definitions:r.object({enabled:r.boolean()}).default({enabled:!1}),transform:r.object({include_fields:r.enum([`input`,`annotated`])}).default({include_fields:`input`})}).default({environment:`production`,transform:{include_fields:`input`},widgets:{enabled:!1},field_definitions:{enabled:!1}}).openapi(`PipesRequestConfig`),mw=r.object({config:pw.openapi(`PipesRequestConfig`),field_annotations:Vn.optional().openapi(`PipesFieldAnnotations`),pipes:r.array(tw),input:r.array(Jn.openapi(`PipesInputSchema`)),scopes:r.array(r.string()).optional()});function hw(e){let t=rw(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 gw={"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}},_w={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`}},vw={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 yw(e){let t=ew(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 bw({pipePayload:e,validationContext:t,sectionOrder:n=vw,store:r,groupPathMatch:i=gw,formResolvers:a}){let o=ew(e.pipe_id),s=Fa(e.pipe_id,e.config||{});return Bi({schema:o,groupPathMatch:i,extractFromSchema:n=>{let i=y.get(n);if(r.field_options??={},i)return i&&typeof i==`function`?i({validationContext:t,pipePayload:e,userConnections:`connections`in r.field_options?(r.field_options.connections.options||[]).map(e=>{let t=e.widgets?.provider_logo?.provider;if(!t)throw Error(`Option is missing provider type'`);return{public_id:e.value,provider:t}}):[],pipeEntry:rw(e.pipe_id),hash:s}):i},sectionOrder:n,sectionMap:_w,store:r,formResolvers:a})}const xw={"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}},Sw={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`}},Cw={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 ww({searchPayload:e,sectionOrder:t=Cw,formContext:n,groupPathMatch:r=xw,formResolvers:i}){return Bi({schema:LC(e.search_id),groupPathMatch:r,extractFromSchema:e=>b.get(e),sectionOrder:t,sectionMap:Sw,store:n,formResolvers:i})}const Tw=new Proxy({},{get:(e,t)=>e=>e.type===t}),Ew=`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(`.`),Dw=r.enum(Ew),Ow=r.object({provider_logo:r.object({provider:hn}).optional(),emoji:r.object({char:r.string()}).optional(),icon:r.object({key:Dw}).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()}),kw=`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(kw);const Aw=r.object({value:r.string(),label:r.string(),widgets:Ow.optional()}),jw=r.object({field_options:r.record(r.string(),r.object({options:r.array(Aw)}))}),Mw=[{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}],Nw=new Map(Mw.map(e=>[e.id,e]));function Pw(e){return Nw.get(e)}function Fw(){return Mw}const Iw={"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>.
|
|
@@ -89,7 +89,7 @@ How do you...`]}},crustdata_post_list:{label:`Crustdata Post list`,type:`json`,f
|
|
|
89
89
|
{% output reason, type: "string", description: "A text explanation of your decision process" %}
|
|
90
90
|
|
|
91
91
|
{% output json_summary, type: "json", schema: "summary", description: "A JSON object that combines both fields" %}
|
|
92
|
-
`,json_schemas:{summary:{type:`object`,properties:{is_icp_fit:{type:`boolean`,description:`A boolean flag indicating if the user is a good ICP fit for us`},reason:{type:`string`,description:`A text explanation of the decision process`}},required:[`is_icp_fit`,`reason`]}}}}}],input:[{id:`1`,name:`John Doe`,job_title:`Founder`},{id:`2`,name:`Jane Doe`,job_title:`CTO`,profile_headline:`CTO for a big tech company.`}]}],"people:email:iswork@1":[{config:{environment:`production`},pipes:[{pipe_id:`people:email:iswork@1`}],input:[{id:`1`,email:`john@pipe0.com`}]}],"email:iswork@1":[{config:{environment:`production`},pipes:[{pipe_id:`email:iswork@1`}],input:[{id:`1`,email:`john@pipe0.com`}]}],"people:name:split@1":[{config:{environment:`production`},pipes:[{pipe_id:`people:name:split@1`}],input:[{id:`1`,name:`John Doe`}]}],"person:name:split@1":[{config:{environment:`production`},pipes:[{pipe_id:`person:name:split@1`}],input:[{id:`1`,name:`John Doe`}]}],"person:name:join@1":[{config:{environment:`production`},pipes:[{pipe_id:`person:name:join@1`}],input:[{id:`1`,first_name:`John`,last_name:`Doe`}]}],"people:personalemail:profile:waterfall@1":[{config:{environment:`production`},pipes:[{pipe_id:`people:personalemail:profile:waterfall@1`}],input:[{id:`1`,profile_url:`https://linkedin.com/in/jane-doe-uth6-dk`}]}],"person:personalemail:profileurl:waterfall@1":[{config:{environment:`production`},pipes:[{pipe_id:`person:personalemail:profileurl:waterfall@1`}],input:[{id:`1`,profile_url:`https://linkedin.com/in/jane-doe-uth6-dk`}]}],"people:email:validate:zerobounce@1":[{config:{environment:`production`},pipes:[{pipe_id:`people:email:validate:zerobounce@1`}],input:[{id:`1`,work_email:`jane@pipe0.com`}]}],"people:email:validate:zerobounce@2":[{config:{environment:`production`},pipes:[{pipe_id:`people:email:validate:zerobounce@2`}],input:[{id:`1`,email:`jane@pipe0.com`}]}],"email:validate:zerobounce@1":[{config:{environment:`production`},pipes:[{pipe_id:`email:validate:zerobounce@1`}],input:[{id:`1`,email:`jane@pipe0.com`}]}],"people:phone:profile:waterfall@1":[{config:{environment:`production`},pipes:[{pipe_id:`people:phone:profile:waterfall@1`}],input:[{id:`1`,profile_url:`https://linkedin.com/li/jane-doe-456j`}]}],"person:mobile:profileurl:waterfall@1":[{config:{environment:`production`},pipes:[{pipe_id:`person:mobile:profileurl:waterfall@1`}],input:[{id:`1`,profile_url:`https://linkedin.com/li/jane-doe-456j`}]}],"people:profile:waterfall@1":[{config:{environment:`production`},pipes:[{pipe_id:`people:profile:waterfall@1`}],input:[{id:`1`,profile_url:`https://linkedin.com/li/jane-doe-456j`}]}],"person:profile:waterfall@1":[{config:{environment:`production`},pipes:[{pipe_id:`person:profile:waterfall@1`}],input:[{id:`1`,profile_url:`https://linkedin.com/li/jane-doe-456j`}]}],"company:newssummary:website@1":[{config:{environment:`production`},pipes:[{pipe_id:`company:newssummary:website@1`,config:{}}],input:[{id:`1`,company_website_url:`https://pipe0.com`}]}],"company:newssummary:domain@1":[{config:{environment:`production`},pipes:[{pipe_id:`company:newssummary:domain@1`,config:{}}],input:[{id:`1`,company_domain:`pipe0.com`}]}],"company:websiteurl:email@1":[{config:{environment:`production`},pipes:[{pipe_id:`company:websiteurl:email@1`}],input:[{id:`1`,email:`https://pipe0.com`}]}],"company:domain:workemail@1":[{config:{environment:`production`},pipes:[{pipe_id:`company:domain:workemail@1`}],input:[{id:`1`,email:`john@pipe0.com`}]}],"json:extract:multi@1":[{config:{environment:`production`},pipes:[{pipe_id:`json:extract:multi@1`,config:{json_extraction:{field_name:`example_json`,extractions:[{path:`name`,output_field:{format:null,name:`extracted_name`,label:`Simple Example Using Jsonata Path`,type:`string`}},{path:`{ "fullName": name, "count": $count(nested) }`,output_field:{format:null,name:`reshaped_object`,label:`Complex Transformation Using Jasonata`,type:`json`}}]}}}],input:[{id:`1`,example_json:{name:`John Doe`,nested:[1,2,3]}}]}],"message:write@1":[{config:{environment:`production`},pipes:[{pipe_id:`message:write@1`,config:{model:`openai-gpt-latest`,template:`
|
|
92
|
+
`,json_schemas:{summary:{type:`object`,properties:{is_icp_fit:{type:`boolean`,description:`A boolean flag indicating if the user is a good ICP fit for us`},reason:{type:`string`,description:`A text explanation of the decision process`}},required:[`is_icp_fit`,`reason`]}}}}}],input:[{id:`1`,name:`John Doe`,job_title:`Founder`},{id:`2`,name:`Jane Doe`,job_title:`CTO`,profile_headline:`CTO for a big tech company.`}]}],"people:email:iswork@1":[{config:{environment:`production`},pipes:[{pipe_id:`people:email:iswork@1`}],input:[{id:`1`,email:`john@pipe0.com`}]}],"email:iswork@1":[{config:{environment:`production`},pipes:[{pipe_id:`email:iswork@1`}],input:[{id:`1`,email:`john@pipe0.com`}]}],"people:name:split@1":[{config:{environment:`production`},pipes:[{pipe_id:`people:name:split@1`}],input:[{id:`1`,name:`John Doe`}]}],"person:name:split@1":[{config:{environment:`production`},pipes:[{pipe_id:`person:name:split@1`}],input:[{id:`1`,name:`John Doe`}]}],"person:name:join@1":[{config:{environment:`production`},pipes:[{pipe_id:`person:name:join@1`}],input:[{id:`1`,first_name:`John`,last_name:`Doe`}]}],"people:personalemail:profile:waterfall@1":[{config:{environment:`production`},pipes:[{pipe_id:`people:personalemail:profile:waterfall@1`}],input:[{id:`1`,profile_url:`https://linkedin.com/in/jane-doe-uth6-dk`}]}],"person:personalemail:profileurl:waterfall@1":[{config:{environment:`production`},pipes:[{pipe_id:`person:personalemail:profileurl:waterfall@1`}],input:[{id:`1`,profile_url:`https://linkedin.com/in/jane-doe-uth6-dk`}]}],"people:email:validate:zerobounce@1":[{config:{environment:`production`},pipes:[{pipe_id:`people:email:validate:zerobounce@1`}],input:[{id:`1`,work_email:`jane@pipe0.com`}]}],"people:email:validate:zerobounce@2":[{config:{environment:`production`},pipes:[{pipe_id:`people:email:validate:zerobounce@2`}],input:[{id:`1`,email:`jane@pipe0.com`}]}],"email:validate:zerobounce@1":[{config:{environment:`production`},pipes:[{pipe_id:`email:validate:zerobounce@1`}],input:[{id:`1`,email:`jane@pipe0.com`}]}],"people:phone:profile:waterfall@1":[{config:{environment:`production`},pipes:[{pipe_id:`people:phone:profile:waterfall@1`}],input:[{id:`1`,profile_url:`https://linkedin.com/li/jane-doe-456j`}]}],"person:mobile:profileurl:waterfall@1":[{config:{environment:`production`},pipes:[{pipe_id:`person:mobile:profileurl:waterfall@1`}],input:[{id:`1`,profile_url:`https://linkedin.com/li/jane-doe-456j`}]}],"person:devprofileurl:profileurl:waterfall@1":[{config:{environment:`production`},pipes:[{pipe_id:`person:devprofileurl:profileurl:waterfall@1`}],input:[{id:`1`,profile_url:`https://linkedin.com/li/jane-doe-456j`}]}],"people:profile:waterfall@1":[{config:{environment:`production`},pipes:[{pipe_id:`people:profile:waterfall@1`}],input:[{id:`1`,profile_url:`https://linkedin.com/li/jane-doe-456j`}]}],"person:profile:waterfall@1":[{config:{environment:`production`},pipes:[{pipe_id:`person:profile:waterfall@1`}],input:[{id:`1`,profile_url:`https://linkedin.com/li/jane-doe-456j`}]}],"company:newssummary:website@1":[{config:{environment:`production`},pipes:[{pipe_id:`company:newssummary:website@1`,config:{}}],input:[{id:`1`,company_website_url:`https://pipe0.com`}]}],"company:newssummary:domain@1":[{config:{environment:`production`},pipes:[{pipe_id:`company:newssummary:domain@1`,config:{}}],input:[{id:`1`,company_domain:`pipe0.com`}]}],"company:websiteurl:email@1":[{config:{environment:`production`},pipes:[{pipe_id:`company:websiteurl:email@1`}],input:[{id:`1`,email:`https://pipe0.com`}]}],"company:domain:workemail@1":[{config:{environment:`production`},pipes:[{pipe_id:`company:domain:workemail@1`}],input:[{id:`1`,email:`john@pipe0.com`}]}],"json:extract:multi@1":[{config:{environment:`production`},pipes:[{pipe_id:`json:extract:multi@1`,config:{json_extraction:{field_name:`example_json`,extractions:[{path:`name`,output_field:{format:null,name:`extracted_name`,label:`Simple Example Using Jsonata Path`,type:`string`}},{path:`{ "fullName": name, "count": $count(nested) }`,output_field:{format:null,name:`reshaped_object`,label:`Complex Transformation Using Jasonata`,type:`json`}}]}}}],input:[{id:`1`,example_json:{name:`John Doe`,nested:[1,2,3]}}]}],"message:write@1":[{config:{environment:`production`},pipes:[{pipe_id:`message:write@1`,config:{model:`openai-gpt-latest`,template:`
|
|
93
93
|
Write an internal slack message that notifies the team about a high value signup
|
|
94
94
|
that customer success should reach out to personally.
|
|
95
95
|
|
|
@@ -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`}]}],"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 Tw(e){let t=[];for(let n of e){if(n instanceof U){t.push(n);continue}let e=WC.parse(n);if(!GC(n.pipe_id))throw Error(`Unknown pipe: ${n.pipe_id}`);let r=new(BC(n.pipe_id))(e);t.push(r)}return t}function Ew(e,t){let n=Tw(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 Dw(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 Ow=.1,kw=[`level1`,`level2`,`level3`];function Aw(e,t){let n=kw[t-1];if(n)return e[n]}function jw(e,t){for(let n=t;n>=1;n--){let t=Aw(e,n);if(t)return{level:n,tier:t}}}function Mw(e){let t=[];for(let n=1;n<=3;n++){let r=Aw(e,n);r&&t.push({level:n,credits:r.credits,weight:r.weight})}return t}function Nw(e){if(e.default<.1)return!1;let t=Mw(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 Pw(){let e=new Map;for(let t of Object.values(RC))for(let[n,r]of Object.entries(t.billableOperations)){let i=r;if(!i?.allowManagedConnection||!Nw(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:Mw(i.credits),usedBy:[o]})}for(let t of Object.values(gC)){let{cost:n}=t;if(!Nw(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:Mw(n.credits),usedBy:[i]})}return[...e.values()].sort((e,t)=>e.billableOperation.localeCompare(t.billableOperation))}function Fw(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 Iw(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 Lw(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(Iw(e))return`https://${e}`;if(!Fw(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 Rw(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(Iw(n))return`${e.protocol===`http:`?`http:`:`https:`}//${e.host}${e.pathname}${e.search}${e.hash}`;if(!Fw(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(Fw(i)||Iw(i))return`${e?.toLowerCase()===`http://`?`http:`:`https:`}//${n}${r}`}return``}}function zw(e){try{return Lw(e)}catch{console.warn(`Invalid URL: ${e}`);return}}function Bw(e,t){if(t)switch(e){case`website_url`:return zw(t);default:return}}function Vw(e){let t;if(Hw(e))return Vw(e.value);let n=typeof e;return t=n===`string`||n===`number`||n===`boolean`?n:e===null?`unknown`:`json`,t}function Hw(e,t=0){if(typeof e==`object`&&e&&`value`in e&&`status`in e&&Sn.safeParse(e.status).success){if(t>1||typeof e.value==`object`&&Hw(e.value,t++))throw new $([Q.RecursiveExpandedValue()]);return!0}return!1}function Uw(e){let t=Hw(e),n;return n=t?e.value:e,t?{isExpanded:!0,resolvedInputValue:n,expandedValue:e}:{isExpanded:!1,resolvedInputValue:n,expandedValue:null}}function Ww(e){return Hw(e)?Ww(e.value):e}function Gw(e,t,n){if([`processing`,`completed`].includes(n.status)===!1||t==null)return{};try{let r=rn(e,n.format)?.getStaticWidgets?.(t),i=Bw(n.format,t);return Nx(r||{},{display_value:i?{label:i}:void 0})}catch(e){return console.warn(`Failed to generate UI props: ${e}`),{}}}function Kw(e,t,n){if(t==null)return{};try{let r=rn(e,n)?.getStaticWidgets?.(t),i=Bw(n,t);return Nx(r||{},{display_value:i?{label:i}:void 0})}catch(e){return console.warn(`Failed to generate UI props: ${e}`),{}}}function qw(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 Jw=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}=Uw(n),c;c=s&&o.type?o.type:Vw(e);let l;an(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]=qw(n,t)}return new e(r)}deleteKey(t){let n=structuredClone(this.annotations);return delete n[t],new e(n)}};function Yw(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 Xw(e){let t=Yw(e),n=[];for(let[r,i]of e.entries()){let e=[];for(let{field:n,required:a}of ka(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 Zw({config:e,pipes:t,input:n,field_annotations:r}){try{let i=tT({config:e,pipes:t,input:n,fieldAnnotations:r});return Qw(i),i}catch(e){throw e instanceof $?e:new $([Q.ValidationFailed({error:e})])}}function Qw(e){for(let t of e.orderedPipeInstances)for(let{field:n}of ka(t.getInputRequirement()))Rm({pipes:e.orderedPipeInstances,derivedInputFields:e.derivedInputFields},n.type),zm({pipes:e.orderedPipeInstances,derivedInputFields:e.derivedInputFields},n.format)}function $w(e,t){if(!e&&!t)throw new $([Q.MustDefineAnnotations()]);return new Jw(t||{}).merge(Jw.fromInput(e||[]))}function eT(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:Rm(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=Tw(e.pipes),n=$w(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)}),iT(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]=nT(t,n),u=eT({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 nT(e,t){let n=Xw(e),r=rT(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 rT(e,t,n){let r=t.length,i=[],a=new Set,o=new Set,s=[],c=e=>{let n=t[e];return n?ka(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();Oa(a,ee)||s.push(Q.RequirementUnmet({requirement:a}));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 iT(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 Jr(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 aT=[`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`],oT=[`yyyy-MM-dd`,`yyyy/MM/dd`,`MM/dd/yyyy`,`MM-dd-yyyy`,`yyyyMMdd`,`dd-MM-yyyy`,`dd/MM/yyyy`],sT=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})}),cT=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 lT(e){return!isNaN(e.getTime())}const uT=r.coerce.string().trim().transform(e=>{let t=e.replace(/[^0-9T:.\-/ ]/g,``).trim();for(let e of aT){let n=ee(t,e,new Date(0));if(lT(n))return u(n,`yyyy-MM-dd'T'HH:mm:ss`)}throw Error(`Invalid date format: ${e}`)}),dT=r.coerce.string().trim().transform(e=>{for(let t of oT){let n=ee(e,t,new Date(0));if(lT(n))return u(n,`yyyy-MM-dd`)}throw Error(`Invalid date format: ${e}`)}),fT=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`}),pT=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()),mT=r.coerce.string().trim().min(1,{message:`Value cannot be empty for this format`});function hT(e,t){if(t===null)return e===``||e==null?null:e;if(e==null)return null;try{switch(t){case`url`:return sT.parse(e);case`email`:return cT.parse(e);case`datetime`:return uT.parse(e);case`date`:return dT.parse(e);case`decimal`:return fT.parse(e);case`int`:return pT.parse(e);case`currency`:return r.number().parse(e);case`percent`:return r.number().parse(e);case`address_line_1`:return mT.parse(e);case`website_url`:return sT.parse(e);case`profile_url`:return sT.parse(e);case`zip_code`:return mT.parse(e);case`markdown`:case`phone`:case`text`:return mT.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 ${Wu(e)} into format ${t}: ${r.message}`):r}}function gT(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(Hw(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:hT(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 _T(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:gT(e,n,i)}}}function vT({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{_T(e,t,r);let{queuedRecordIdSet:i,adoptedRecordIdSet:a}=yT(e,t,r,n);if(r.queued_record_ids=i,r.adopted_record_ids=a,bT(e,r,n?.queue?.enabled),ET(e,r),r.errors.length>0)throw new $(r.errors);return r}catch(e){throw e instanceof $?e:new $([Q.ResponseGenerationFailed({error:e})])}}function yT(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}=TT(e,t,c,n,r);i=i.concat(l),a=a.concat(u)}return{queuedRecordIdSet:new Set(i),adoptedRecordIdSet:new Set(a)}}function bT(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 ${Vh(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 ${Vh(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}=Aa(a.getInputRequirement(),e);t===!1&&r(a,n,i,e)})}}function xT({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 ST({status:e,config:t}){return t.queue?.enabled?!!(e===`failed`&&t.queue?.triggers?.fieldIsFailed||e===`no_result`&&t.queue?.triggers?.fieldIsNoResult):!1}function CT({inputHashKey:e,configHashKey:t,expandedValue:n,config:r}){return xT({inputHashKey:e,configHashKey:t,expandedValue:n,config:r})||ST({status:n.status,config:r})}function wT({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 TT(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=Rm({pipes:e.orderedPipeInstances,derivedInputFields:e.derivedInputFields},ee),ne=zm({pipes:e.orderedPipeInstances,derivedInputFields:e.derivedInputFields},a.format),{resolvedInputValue:d,isExpanded:re,expandedValue:f}=Uw(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=Vw(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}=wT({inputHashKey:ae,configHashKey:p,expandedValue:f});e&&s.push(u.id)}if(re&&f.status!==`pending`&&CT({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}=wT({inputHashKey:ae,configHashKey:p,expandedValue:f});e&&s.push(u.id)}CT({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=hT(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 ET(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=Gw(i,r.value,r);r.widgets=Nx(r.widgets||{},e)}t.errors.length>0&&(r.status===`pending`||r.status===`queued`)&&(r.status=`failed`)})})}function DT(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 OT(e,t={}){return Object.values(e).map(e=>DT(e.fields,t))}function kT(e,t={}){return e.map(e=>DT(e.fields,t))}function AT(e,t={}){return DT(e.fields,t)}function jT(e,t){return e.map(e=>{let n={};return Object.entries(e).forEach(([e,r])=>{let{isExpanded:i,expandedValue:a,resolvedInputValue:o}=Uw(r);i===!0&&a.status!=null&&t.unexpandStatuses.includes(a.status)?n[e]=o:n[e]=r}),n})}function MT(e){let t=dr[e];if(!t)throw Error(`Provider name '${e}' invalid`);return{...t,provider:e}}const NT=[`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`],PT=r.enum(NT);function FT(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 IT(e,t){let n={name:e,config:t};return Pa.hashObject(n)}var LT=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 IT(this.searchId,this.payload)}};function RT(e){return e.split(`@`)[0]}function zT(e){return`/docs/search-catalog/${RT(e)}/${e.split(`@`)[1]}`}const BT=`companies:profiles:crustdata@1`,VT=_(`company_name`),HT=_(`company_website_url`),UT=_(`company_description`),WT=_(`company_profile_url`),GT=_(`crustdata_company_match`),KT=r.object({search_id:r.literal(BT),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:ya({sectionKey:`general`,path:`config.cursor`,groupPath:`config.general`,inputType:`text`,description:``,label:`Continue previous search from cursor`}),output_fields:R(r.object({[VT.name]:N({fieldName:VT.name}),[HT.name]:N({fieldName:VT.name}),[UT.name]:N({fieldName:UT.name}),[WT.name]:N({fieldName:WT.name}),[GT.name]:N({fieldName:GT.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:ha({path:`config.filters.revenue_in_usd`,sectionKey:`config.filters`,label:`Revenue (USD)`,description:``,legend:`1k - 10B`,min:1e3,max:1e10,groupPath:`config.filters.financials`}),last_funding_type: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:ha({path:`config.filters.last_funding_amount`,sectionKey:`config.filters`,label:`Last funding amount`,legend:`1k - 10B`,min:1e3,max:1e10,description:``,groupPath:`config.filters.financials`}),number_of_followers:P({path:`config.filters.number_of_followers`,sectionKey:`config.filters`,label:`Number of LinkedIn followers`,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=>{FT(e.value)&&e.issues.push({code:`custom`,message:`You must set at least one filter.`,input:e.value})})})}),qT={default:{input:[{fields:[]}]}},JT=class extends LT{searchId=BT;schema=KT;payload;constructor(e){super(),this.payload=this.validatePayload(e)}getRawOutputFields(){return{[VT.name]:this.catalogOutput(VT),[HT.name]:this.catalogOutput(HT),[UT.name]:this.catalogOutput(UT),[WT.name]:this.catalogOutput(WT),[GT.name]:this.catalogOutput(GT)}}getConnectionsRequirements(){return[{provider:`crustdata`,rateLimitOperation:`crustdata_company_db_search`,rateLimitRatio:1,allowManagedConnection:!0}]}getDedupConfig(){return qT}},YT=KT,XT={searchId:BT,billableOperation:`companies-profiles-crustdata`,baseSearch:RT(`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:zT(BT),cost:{mode:`per_page`,creditsPerPage:2},provider:`crustdata`,defaultPayload:{search_id:BT,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:[]}}}},ZT=`companies:profiles:exa@1`,QT=_(`company_name`),$T=_(`company_website_url`),eE=_(`company_description`),tE=_(`company_industry`),nE=_(`headcount`),rE=_(`exa_match_evaluation`),iE=r.object({search_id:r.literal(ZT),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({[QT.name]:N({fieldName:QT.name}),[$T.name]:N({fieldName:QT.name}),[eE.name]:N({fieldName:eE.name}),[tE.name]:N({fieldName:tE.name}),[nE.name]:N({fieldName:nE.name}),[rE.name]:N({fieldName:rE.name})})),filters:r.object({query:ba({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})})})}),aE={default:{input:[{fields:[]}]}},oE=class extends LT{searchId=ZT;schema=iE;payload;constructor(e){super(),this.payload=this.validatePayload(e)}getRawOutputFields(){return{[QT.name]:this.catalogOutput(QT),[$T.name]:this.catalogOutput($T),[eE.name]:this.catalogOutput(eE),[tE.name]:this.catalogOutput(tE),[nE.name]:this.catalogOutput(nE),[rE.name]:this.catalogOutput(rE)}}getConnectionsRequirements(){return[{provider:`exa`,rateLimitOperation:`exa_websets`,rateLimitRatio:1,allowManagedConnection:!0}]}getDedupConfig(){return aE}},sE=iE,cE={searchId:ZT,billableOperation:`companies-profiles-exa`,baseSearch:RT(`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:zT(ZT),cost:{mode:`per_result`,creditsPerResult:2},provider:`exa`,defaultPayload:{search_id:ZT,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:``}}}},lE=`companies:profiles:icypeas@1`,uE=_(`company_industry`),dE=_(`company_name`),fE=_(`company_description`),pE=_(`company_website_url`),mE=_(`headcount`),hE=_(`company_region`),gE=_(`company_profile_url`),_E=_(`icypeas_company_match`),vE=r.object({search_id:r.literal(lE),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:dE.name}),company_industry:N({fieldName:uE.name}),company_description:N({fieldName:fE.name}),company_website_url:N({fieldName:pE.name}),headcount:N({fieldName:mE.name}),company_region:N({fieldName:hE.name}),company_profile_url:N({fieldName:gE.name}),icypeas_company_match:N({fieldName:_E.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:ha({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=>{FT(e.value)&&e.issues.push({code:`custom`,message:`You must set at least one filter.`,input:e.value})})})}),yE={default:{input:[{fields:[{outputField:`company_profile_url`}]}]}},bE=class extends LT{searchId=lE;schema=vE;payload;constructor(e){super(),this.payload=this.validatePayload(e)}getRawOutputFields(){return{[dE.name]:this.catalogOutput(dE),[uE.name]:this.catalogOutput(uE),[gE.name]:this.catalogOutput(gE),[pE.name]:this.catalogOutput(pE),[fE.name]:this.catalogOutput(fE),[mE.name]:this.catalogOutput(mE),[hE.name]:this.catalogOutput(hE),[_E.name]:this.catalogOutput(_E)}}getConnectionsRequirements(){return[{provider:`icypeas`,rateLimitOperation:`icypeas_company_database`,rateLimitRatio:1,allowManagedConnection:!0}]}getDedupConfig(){return yE}},xE=vE,SE={searchId:lE,billableOperation:`companies-profiles-icypeas`,baseSearch:RT(`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:zT(lE),cost:{mode:`per_result`,creditsPerResult:.4},provider:`icypeas`,defaultPayload:{search_id:lE,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:[]}}}}},CE=`people:profiles:clado@1`,wE=_(`name`),TE=_(`job_title`),EE=_(`company_name`),DE=_(`company_profile_url`),OE=_(`profile_url`),kE=_(`clado_person_match`),AE=r.object({search_id:r.literal(CE),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({[wE.name]:N({fieldName:wE.name}),[TE.name]:N({fieldName:TE.name}),[DE.name]:N({fieldName:DE.name}),[EE.name]:N({fieldName:EE.name}),[OE.name]:N({fieldName:OE.name}),[kE.name]:N({fieldName:kE.name})})),filters:r.object({query:ba({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})})})}),jE={default:{input:[{fields:[{outputField:`profile_url`}]}]}},ME=class extends LT{searchId=CE;schema=AE;payload;constructor(e){super(),this.payload=this.validatePayload(e)}getRawOutputFields(){return{[wE.name]:this.catalogOutput(wE),[TE.name]:this.catalogOutput(TE),[EE.name]:this.catalogOutput(EE),[OE.name]:this.catalogOutput(OE),[DE.name]:this.catalogOutput(DE),[kE.name]:this.catalogOutput(kE)}}getConnectionsRequirements(){return[{provider:`clado`,rateLimitOperation:`clado_search_people`,rateLimitRatio:1,allowManagedConnection:!0}]}getDedupConfig(){return jE}},NE=AE,PE={searchId:CE,billableOperation:`people-profiles-clado`,baseSearch:Mt(`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:CE,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:``}}}},FE=`people:profiles:clado@2`,IE=_(`name`),LE=_(`job_title`),RE=_(`company_name`),zE=_(`company_profile_url`),BE=_(`profile_url`),VE=_(`clado_person_match_v2`),HE=r.object({search_id:r.literal(FE),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:ya({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({[IE.name]:N({fieldName:IE.name}),[LE.name]:N({fieldName:LE.name}),[zE.name]:N({fieldName:zE.name}),[RE.name]:N({fieldName:RE.name}),[BE.name]:N({fieldName:BE.name}),[VE.name]:N({fieldName:VE.name})})),filters:r.object({query:ba({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`]})}),UE={default:{input:[{fields:[{outputField:`profile_url`}]}]}},WE=class extends LT{searchId=FE;schema=HE;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),[BE.name]:this.catalogOutput(BE),[zE.name]:this.catalogOutput(zE),[VE.name]:this.catalogOutput(VE)}}getConnectionsRequirements(){return[{provider:`clado`,rateLimitOperation:`clado_search_people`,rateLimitRatio:1,allowManagedConnection:!0}]}getDedupConfig(){return UE}},GE=HE,KE={searchId:FE,billableOperation:`people-profiles-clado`,baseSearch:Mt(`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:FE,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:``}}}},qE=`people:employees:leadmagic@1`,JE=_(`name`),YE=_(`job_title`),XE=_(`company_website_url`),ZE=_(`company_name`),QE=r.object({search_id:r.literal(qE),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({[JE.name]:N({fieldName:JE.name}),[ZE.name]:N({fieldName:ZE.name}),[XE.name]:N({fieldName:XE.name}),[YE.name]:N({fieldName:YE.name})})),filters:r.object({company_website_url:ya({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`})})})}),$E={default:{input:[{fields:[{outputField:XE.name}]}]}},eD=class extends LT{searchId=qE;schema=QE;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),[ZE.name]:this.catalogOutput(ZE)}}getConnectionsRequirements(){return[{provider:`leadmagic`,rateLimitOperation:`leadmagic_employee_finder`,rateLimitRatio:1,allowManagedConnection:!0}]}getDedupConfig(){return $E}},tD=QE,nD={searchId:qE,billableOperation:`people-employees-leadmagic`,baseSearch:RT(`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:zT(qE),cost:{mode:`per_result`,creditsPerResult:.05},provider:`leadmagic`,defaultPayload:{search_id:qE,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:``}}}},rD=`people:profiles:crustdata@1`,iD=_(`name`),aD=_(`company_website_url`),oD=_(`profile_url`),sD=_(`job_title`),cD=_(`crustdata_person_match`),lD=r.object({search_id:r.literal(rD),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:ya({sectionKey:`general`,path:`config.cursor`,groupPath:`config.general`,inputType:`text`,description:``,label:`Continue previous search from cursor`}),output_fields:R(r.object({[iD.name]:N({fieldName:iD.name}),[aD.name]:N({fieldName:aD.name}),[oD.name]:N({fieldName:oD.name}),[sD.name]:N({fieldName:sD.name}),[cD.name]:N({fieldName:cD.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:fa({path:`config.filters.profile_headline_keywords`,sectionKey:`config.filters`,label:`Headline contains keywords`,maxItems:100,groupPath:`config.filters.keywords`}),profile_summary_keywords:fa({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:va({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=>{FT(e.value)&&e.issues.push({code:`custom`,message:`You must set at least one filter.`,input:e.value})})})}),uD={default:{input:[{fields:[]}]}},dD=class extends LT{searchId=rD;schema=lD;payload;constructor(e){super(),this.payload=this.validatePayload(e)}getRawOutputFields(){return{[iD.name]:this.catalogOutput(iD),[aD.name]:this.catalogOutput(aD),[oD.name]:this.catalogOutput(oD),[sD.name]:this.catalogOutput(sD),[cD.name]:this.catalogOutput(cD)}}getConnectionsRequirements(){return[{provider:`crustdata`,rateLimitOperation:`crustdata_people_db_search`,rateLimitRatio:1,allowManagedConnection:!0}]}getDedupConfig(){return uD}},fD=lD,pD={searchId:rD,billableOperation:`people-profiles-crustdata`,baseSearch:RT(`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:zT(rD),cost:{mode:`per_page`,creditsPerPage:5},provider:`crustdata`,defaultPayload:{search_id:rD,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:[]}}}},mD=`people:profiles:exa@1`,hD=_(`name`),gD=_(`profile_url`),_D=_(`job_title`),vD=_(`company_name`),yD=_(`company_region`),bD=_(`exa_match_evaluation`),xD=r.object({search_id:r.literal(mD),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({[hD.name]:N({fieldName:hD.name}),[gD.name]:N({fieldName:gD.name}),[_D.name]:N({fieldName:_D.name}),[vD.name]:N({fieldName:vD.name}),[yD.name]:N({fieldName:yD.name}),[bD.name]:N({fieldName:bD.name})})),filters:r.object({query:ba({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})})})}),SD={default:{input:[{fields:[]}]}},CD=class extends LT{searchId=mD;schema=xD;payload;constructor(e){super(),this.payload=this.validatePayload(e)}getRawOutputFields(){return{[hD.name]:this.catalogOutput(hD),[gD.name]:this.catalogOutput(gD),[_D.name]:this.catalogOutput(_D),[vD.name]:this.catalogOutput(vD),[yD.name]:this.catalogOutput(yD),[bD.name]:this.catalogOutput(bD)}}getConnectionsRequirements(){return[{provider:`exa`,rateLimitOperation:`exa_websets`,rateLimitRatio:1,allowManagedConnection:!0}]}getDedupConfig(){return SD}},wD=xD,TD={searchId:mD,billableOperation:`people-profiles-exa`,baseSearch:RT(`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:zT(mD),cost:{mode:`per_result`,creditsPerResult:2},provider:`exa`,defaultPayload:{search_id:mD,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:``}}}},ED=`people:profiles:icypeas@1`,DD=_(`name`),OD=_(`job_title`),kD=_(`profile_headline`),AD=_(`company_website_url`),jD=_(`company_profile_url`),MD=_(`profile_url`),ND=_(`icypeas_person_match`),PD=r.object({search_id:r.literal(ED),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({[DD.name]:N({fieldName:DD.name}),[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}),[ND.name]:N({fieldName:ND.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=>{FT(e.value)&&e.issues.push({code:`custom`,message:`The filters object cannot be empty. You must set at least one filter.`,input:e.value})})})}),FD={default:{input:[{fields:[{outputField:`profile_url`}]}]}},ID=class extends LT{searchId=ED;schema=PD;payload;constructor(e){super(),this.payload=this.validatePayload(e)}getRawOutputFields(){return{[DD.name]:this.catalogOutput(DD),[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),[ND.name]:this.catalogOutput(ND)}}getConnectionsRequirements(){return[{provider:`icypeas`,rateLimitOperation:`icypeas_lead_database`,rateLimitRatio:1,allowManagedConnection:!0}]}getDedupConfig(){return FD}},LD=PD,RD={searchId:ED,billableOperation:`people-profiles-icypeas`,provider:`icypeas`,baseSearch:RT(ED),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:zT(ED),cost:{mode:`per_result`,creditsPerResult:.4},defaultPayload:{search_id:ED,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:[]}}}}},zD={"people:profiles:crustdata@1":dD,"companies:profiles:crustdata@1":JT,"companies:profiles:exa@1":oE,"people:profiles:exa@1":CD,"people:profiles:icypeas@1":ID,"companies:profiles:icypeas@1":bE,"people:employees:leadmagic@1":eD,"people:profiles:clado@1":ME,"people:profiles:clado@2":WE},BD={"people:profiles:crustdata@1":fD,"companies:profiles:crustdata@1":YT,"companies:profiles:exa@1":sE,"people:profiles:exa@1":wD,"people:profiles:icypeas@1":LD,"companies:profiles:icypeas@1":xE,"people:employees:leadmagic@1":tD,"people:profiles:clado@1":NE,"people:profiles:clado@2":GE},VD={"people:profiles:crustdata@1":pD,"companies:profiles:crustdata@1":XT,"companies:profiles:exa@1":cE,"people:profiles:exa@1":TD,"people:profiles:icypeas@1":RD,"companies:profiles:icypeas@1":SE,"people:employees:leadmagic@1":nD,"people:profiles:clado@1":PE,"people:profiles:clado@2":KE};function HD(e){return zD[e]}function UD(e){return BD[e]}function WD(e){return VD[e].defaultPayload}const GD=t.discriminatedUnion(`search_id`,Object.values(BD).map(e=>e)),KD=t.preprocess(e=>{if(!e||typeof e!=`object`||!(`search_id`in e))return e;let t=WD(e.search_id);return t?{...e,config:Ca(e?.config||{},t.config)}:e},GD);function qD(e){return Object.keys(VD[e].defaultPayload.config.output_fields)}const JD=In,YD=t.object({value:Cn,status:Sn,type:bn.optional(),format:zn.nullable().optional(),resolved_by:Gn.nullable().optional(),widgets:Fn.optional()}),XD=t.record(t.string(),YD.nullable()),ZD=t.object({search:t.object({ref:PT}),status:t.enum([`pending`,`processing`,`failed`,`completed`]),errors:t.array(JD),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()})}),QD=t.object({id:t.string(),status:t.enum([`completed`,`failed`,`pending`,`processing`]),results:t.array(XD),search_statuses:t.array(ZD),organizationId:t.string()}).openapi(`SearchesResponseSchema`),$D=t.object({environment:t.enum([`production`,`sandbox`]).default(`production`),widgets:t.object({enabled:t.boolean().default(!1)}).default({enabled:!1})}),eO=$D.extend({dedup:t.object({strategy:t.enum([`default`]).nullable()}).default({strategy:null})}),tO=t.object({config:eO.default({dedup:{strategy:`default`},environment:`production`,widgets:{enabled:!1}}),searches:t.array(KD)}).openapi(`SearchesRequestSchema`);function nO(e){let t=e.split(`@`)[1];if(!t)throw Error(`No search version found`);return Number(t)}function rO(){let e={};for(let t of Object.values(VD)){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=nO(e.searchId);return nO(t.searchId)-n})}),e}const iO=rO();function aO(e){let t=[];for(let[n,r]of Object.entries(iO)){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:nO(i.searchId)})}return t}function oO(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 qD(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:iO}}function sO(e){return VD[e]}function cO(e){let t=sO(e);return{[t.provider]:t.cost.mode===`per_result`?t.cost.creditsPerResult:t.cost.mode===`per_search`?t.cost.creditsPerSearch:t.cost.creditsPerPage}}function lO(e){return e.map(e=>({public_id:`sandbox-${e}`,provider:e}))}function uO(e){return lO(GC(e).allowedUserConnectionProviders)}function dO(e){return lO([AC(e).provider])}function fO(e){return lO([sO(e).provider])}const pO=[{id:`people`,label:`People`,color:`#8B7DFF`,order:0},{id:`companies`,label:`Companies`,color:`#10B981`,order:1},{id:`deprecated`,label:`Deprecated`,color:`#94A3B8`,order:2}],mO=new Map(pO.map(e=>[e.id,e]));function hO(e){return mO.get(e)}function gO(){return pO}const _O={"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 vO(e,t,n){if(t==null)return{};try{let r=rn(e,n)?.getStaticWidgets?.(t),i=Bw(n,t);return Nx(r||{},{display_value:i?{label:i}:void 0})}catch(e){return console.warn(`Failed to generate UI props: ${e}`),{}}}function yO(e){if(e instanceof Ex)return e;let t=e.search_id,n=_C(t);if(!n)throw Error(`Unknown pipe: ${e.search_id}`);return new n(bC.parse(e))}var bO=class extends Gh{constructor(e){super(e.map(e=>e.message).join(`, `)||`Unknown`),this.errors=e}};function xO(e){let t=[];for(let n of e){if(n instanceof LT){t.push(n);continue}let e=n.search_id,r=HD(e);if(!r)throw Error(`Unknown pipe: ${n.search_id}`);let i=new r(KD.parse(n));t.push(i)}return t}function SO(e){try{return xO(e.searches)}catch(e){throw e instanceof bO?e:new $([Q.ValidationFailed({error:e})])}}const CO=/[\\^$.+()|[\]{}]/g,wO=new Map;function TO(e){let t=wO.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(CO,`\\$&`)}let r=RegExp(`^${n}$`);return wO.set(e,r),r}function EO(e,t){return TO(t).test(e)}function DO(e,t){if(!t||t.length===0)return!1;for(let n of t)if(EO(e,n))return!0;return!1}function OO(e,t){if(!t)return!0;let{includes:n,excludes:r}=t;return!(n&&n.length>0&&!DO(e,n)||r&&r.length>0&&DO(e,r))}function kO(e,t){return OO(e,t?.providers)}function AO(e,t){if(!t)return!0;if(!OO(e,t.pipes))return!1;if(t.providers){let n=YC(e);if(n.length===0)return!0;if(!n.some(e=>kO(e,t)))return!1}return!0}function jO(e,t,n){return t?!(!OO(e,t.searches)||n!==void 0&&!kO(n,t)):!0}function MO(e,t,n){return t?!(!OO(e,t.searchesMulti)||n!==void 0&&!kO(n,t)):!0}function NO(e,t){return t?e.filter(e=>AO(e.pipeId,t)):e.slice()}function PO(e,t){return t?e.filter(e=>jO(e.searchId,t,e.provider)):e.slice()}function FO(e,t){return t?e.filter(e=>MO(e.searchId,t,e.provider)):e.slice()}function IO(e){let t=Object.values(e.billableOperations).map(e=>e.allowManagedConnection?e.credits.default:0);return Math.min(...t)}function LO(e){return Math.min(e.cost.mode===`per_result`?e.cost.creditsPerResult:e.cost.mode===`per_search`?e.cost.creditsPerSearch:e.cost.creditsPerPage)}function RO(e){return e.cost.credits.default}function zO(e){let t=Rw(e);return te(t)||new URL(t).hostname}const BO=[`http://`,`https://`,`mailto:`],VO=new Set([`*`,`_`,`~`,"`",`[`,`]`,`(`,`)`,`\\`]);function HO(e){return e?UO(e):[]}function UO(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&&VO.has(o)){n+=o,r+=2;continue}if(a==="`"){let n=WO(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=WO(e,r+2,`**`);if(n>r+2){i(),t.push({type:`strong`,children:UO(e.slice(r+2,n))}),r=n+2;continue}}if(a===`~`&&o===`~`){let n=WO(e,r+2,`~~`);if(n>r+2){i(),t.push({type:`del`,children:UO(e.slice(r+2,n))}),r=n+2;continue}}if(a===`*`&&o!==`*`){let n=WO(e,r+1,`*`);if(n>r+1){i(),t.push({type:`em`,children:UO(e.slice(r+1,n))}),r=n+1;continue}}if(a===`[`){let n=WO(e,r+1,`]`);if(n>-1&&e[n+1]===`(`){let a=WO(e,n+2,`)`);if(a>-1){let o=e.slice(n+2,a);if(BO.some(e=>o.startsWith(e))){i(),t.push({type:`link`,href:o,children:UO(e.slice(r+1,n))}),r=a+1;continue}}}}n+=a,r+=1}return i(),t}function WO(e,t,n){let r=t;for(;r<e.length;){if(e[r]===`\\`&&r+1<e.length){r+=2;continue}if(GO(e,r,n))return r;r+=1}return-1}function GO(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{$r as AI_MODELS,ei as AI_MODEL_CATALOG,Xn as CatalogSchemaRefSchema,er as ConditionOperatorsSchema,qn as ExpandedFieldValueSchema,ph as FIELD_PLACEHOLDERS,Bn as FieldAnnotationSchema,Jw as FieldAnnotations,Vn as FieldAnnotationsSchema,mn as FieldNameSchema,Ln as FieldReasonSchema,Cn as FieldValueSchema,yw as FormStoreSchema,Ow as HIGH_VOLUME_PRICING_MIN_CREDITS,$n as JSONExtractSchema,wn as JSONMetaSchema,or as NoConnectorSchema,v as OptionalConnectorSchema,_n as PIPE_IDS,EC as PaginationTypeSchema,nb as PersonWorkemailWaterfall1Entry,tb as PersonWorkemailWaterfall1PayloadSchema,eb as PersonWorkemailWaterfall1PipeClass,U as Pipe,Gh as Pipe0Error,vn as PipeIdSchema,UC as PipePayloadSchema,ur as PipeRunIfSchema,$ as PipelineValidationError,gn as PipesEnvironmentSchema,In as PipesErrorSchema,Zn as PipesFieldDefinitionSchema,Qn as PipesFieldDefinitionsSchema,Jn as PipesInputSchema,tw as PipesRequestConfigSchema,nw as PipesRequestSchema,ew as PipesResponseSchema,WC as ProcessedPipePayloadSchema,bC as ProcessedSearchPayloadSchema,KD as ProcessedSearchesPayloadSchema,hn as ProviderNameSchema,Rn as RECORD_FIELD_FORMATS,yn as RECORD_FIELD_TYPES,tr as RUN_IF_OPERATOR_LABELS,rr as RUN_IF_STATUS_OPERATORS,nr as RUN_IF_VALUE_OPERATORS,Wn as RecordClaimedBySchema,zn as RecordFieldFormatSchema,Kn as RecordFieldSchema,Sn as RecordFieldStatusSchema,bn as RecordFieldTypeSchema,xn as RecordIdSchema,Gn as RecordResolvedBySchema,Yn as RecordSchema,Wh as RequestValidationError,ar as RequiredConnectorSchema,cr as RunIfStatusOperatorsSchema,lr as RunIfStatusValueSchema,sr as RunIfValueOperatorsSchema,NT as SEARCHES_IDS,Sx as SEARCH_IDS,Ex as Search,SC as SearchErrorSchema,Cx as SearchIdSchema,vC as SearchPayloadSchema,xC as SearchRequestSchema,DC as SearchResponseSchema,CC as SearchResultFieldSchema,wC as SearchResultSchema,JD as SearchesErrorSchema,PT as SearchesIdSchema,GD as SearchesPayloadSchema,$D as SearchesRequestBaseConfigSchema,tO as SearchesRequestSchema,QD as SearchesResponseSchema,YD as SearchesResultFieldSchema,XD as SearchesResultSchema,LT as SearchesSearch,ZD as SearchesStatusSchema,Ku as TYPES_TO_FORMATS,gw as WidgetsByKindSchema,Fn as WidgetsSchema,Ea as all,jr as analyzeLiquidTemplate,dn as and,H as any,ZC as assertUniqueBillableOperations,g as autocomplete,ti as buildAiModelBillableOperations,Xw as buildDependencyGraph,Hm as buildInputRequirementFromTemplates,K as catalogInput,Ma as cleanObject,Rw as cleanUrl,Lw as cleanWebsiteUrl,X as collectConstantReferencesFromTemplates,sw as collectPipeContextSelectFields,ka as collectRequirementFields,Y as collectSecretReferencesFromTemplates,TO as compilePattern,Ca as configDefaults,Ii as convertIntermediateFieldsIntoGroups,Li as defaultSectionMap,Hh as describeRequirement,Mx as entityLogoFavicon,jx as entityLogoProfessionalProfileUrl,Bi as extractFormMetadata,V as field,nn as fieldBehaviorCatalog,tn as fieldCatalog,Vh as fieldNameStr,Vw as fieldTypeFromValue,DT as fieldsToObject,NO as filterPipeEntries,PO as filterSearchEntries,FO as filterSearchesEntries,ni as getAiModelBillingKey,ii as getAiModelConnectionRequirements,ri as getAiModelProviders,ai as getAllAiModelProviders,W as getBasePipeName,zC as getDefaultOutputFields,YC as getDefaultPipeProviders,NC as getDefaultSearchOutputFields,qD as getDefaultSearchesOutputFields,Ew as getDependentPipeNamesForInputProperty,Dw as getDependentPipeNamesForPipe,zO as getDomain,Uw as getExpansionState,kx as getFaviconUrlGoogle,_ as getField,rn as getFieldBehavior,Hu as getFieldDisplayLabel,Gw as getFieldWidgets,MC as getInitialSearchTableData,aO as getInitialSearchesTableData,QC as getInitialTableData,Ia as getInputHash,si as getJsonMetaForFieldDef,RO as getLoweestSearchCreditAmount,LO as getLoweestSearchesCreditAmount,IO as getLowestPipeCreditAmount,pn as getOutputFieldInfoFromDef,KC as getPipeBillableOperationDef,Cw as getPipeCategoryEntries,Sw as getPipeCategoryEntry,BC as getPipeClass,Fa as getPipeConfigHash,VC as getPipeDefaultPayload,G as getPipeDocsURI,GC as getPipeEntry,Tw as getPipeInstances,cw as getPipePayloadFormConfig,HC as getPipePayloadSchema,qC as getPipeVersion,J as getProviderBillableOperation,La as getProviderCreditsFromBillableOperations,MT as getProviderEntry,cn as getReadableFieldStatus,lO as getSandboxConnections,uO as getSandboxConnectionsForPipe,dO as getSandboxConnectionsForSearch,fO as getSandboxConnectionsForSearches,gO as getSearchCategoryEntries,hO as getSearchCategoryEntry,_C as getSearchClass,yC as getSearchDefaultPayload,AC as getSearchEntry,vO as getSearchFieldWidgets,yO as getSearchInstance,fw as getSearchPayloadFormConfig,TC as getSearchPayloadSchema,PC as getSearchTableDataAggregates,OC as getSearchVersion,HD as getSearchesClass,WD as getSearchesDefaultPayload,sO as getSearchesEntry,Kw as getSearchesFieldWidgets,xO as getSearchesInstances,UD as getSearchesPayloadSchema,oO as getSearchesTableDataAggregates,nO as getSearchesVersion,rw as getStartingCostPerPipesProvider,FC as getStartingCostPerSearchProvider,cO as getStartingCostPerSearchesProvider,$C as getTableDataAggregates,Aw as getTier,Ww as getUnexpandedValue,Ax as ifDefined,z as inputFields,AT as inputFromRecord,kT as inputFromRecordArr,OT as inputFromRecords,pw as inputGuards,on as isCatalogField,jt as isEmptyValue,an as isFieldName,Nw as isHighVolumeEligible,AO as isPipeAllowed,kO as isProviderAllowed,Oa as isRequirementMet,Aa as isRequirementSatisfiedByRecord,jO as isSearchAllowed,MO as isSearchesAllowed,Yr as joinConnectionString,Pw as listHighVolumeEligibleOperations,Mw as listTiers,za as markRecordFieldAsComplete,Ha as markRecordFieldAsFailed,Va as markRecordFieldAsNoResult,Ba as markRecordFieldAsPending,Wa as markRecordFieldAsProcessing,Ua as markRecordFieldAsSkipped,DO as matchesAny,EO as matchesPattern,Nx as mergeWidgets,T as noConnectorInput,Da as optional,w as optionalConnectorInput,fn as or,R as outputFields,Ar as parseLiquidTemplate,wr as parseOutputTagArgs,hT as parseRecordValueOrError,HO as parseRichText,RC as pipeCatalog,bw as pipeCategoryCatalog,IC as pipeClassCatalog,LC as pipePayloadSchemaCatalog,ea as pipesAsyncIncludeExcludeSelectInput,da as pipesContextSelectInput,na as pipesDateRangeInput,qi as pipesFieldsSelectInput,Ji as pipesIncludeExcludeInput,$i as pipesIncludeExcludeSelectInput,E as pipesInputField,ca as pipesIntInput,hi as pipesJsonExtractionInput,ua as pipesJsonSchemaField,Qi as pipesKeyValueListInput,oa as pipesLLMSelectInput,Yi as pipesMultiCreateInput,sa as pipesMultiSelectInput,la as pipesNumberInput,O as pipesOptionalBooleanInput,Xi as pipesOrderedMultiCreateInput,k as pipesOutputField,y as pipesPayloadRegistry,Hi as pipesPromptInput,D as pipesProviderInput,ta as pipesRangeInput,S as pipesRunIfInput,aa as pipesSelectInput,ww as pipesSnippetCatalog,Zi as pipesTaggedOrderedMultiCreateInput,C as pipesTaggedTextInput,Ui as pipesTemplateInput,ra as pipesTextInput,ia as pipesTextareaInput,Z as placeholder,jT as processInputObjects,dr as providerCatalog,q as rateLimitRatioFallingProgression,Or as renderLiquidTemplate,kr as renderLiquidTemplateSync,Gi as requiredConnectorInput,Ra as requirementToInputFields,Uh as requirementUnmetMessage,ln as requiresConnection,un as requiresField,gC as searchCatalog,pO as searchCategoryCatalog,mC as searchClassCatalog,hC as searchPayloadSchemaCatalog,_O as searchSnippetCatalog,I as searchesAsyncIncludeExcludeSelectInput,F as searchesAsyncMultiSelectInput,VD as searchesCatalog,zD as searchesClassCatalog,ga as searchesDateRangeInput,ma as searchesExactRangeInput,j as searchesIncludeExcludeInput,M as searchesIncludeExcludeSelectInput,L as searchesIntInput,pa as searchesMinMaxIntInput,A as searchesMultiCreateInput,P as searchesMultiSelectInput,Sa as searchesNumberField,_a as searchesOptionalBooleanInput,va as searchesOptionalNullableBooleanInput,fa as searchesOrderedMultiCreateInput,N as searchesOutputField,b as searchesPayloadRegistry,BD as searchesPayloadSchemaCatalog,ha as searchesRangeInput,xa as searchesSelectInput,ya as searchesTextInput,ba as searchesTextareaField,Gu as sortObjectKeys,JC as sortPipeCatalogByBasePipe,kC as sortSearchCatalogByBaseSearch,rO as sortSearchesCatalogByBaseSearch,Jr as splitConnectionString,h as staticAutocomplete,m as staticOptions,Wu as stringify,Uu as testPrint,jw as tierAtOrBelow,vT as transformIntoResponse,Zw as validatePipesOrError,SO 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`}]}],"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 Lw(e){let t=[];for(let n of e){if(n instanceof U){t.push(n);continue}let e=nw.parse(n);if(!rw(n.pipe_id))throw Error(`Unknown pipe: ${n.pipe_id}`);let r=new(QC(n.pipe_id))(e);t.push(r)}return t}function Rw(e,t){let n=Lw(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 Bw=.1,Vw=[`level1`,`level2`,`level3`];function Hw(e,t){let n=Vw[t-1];if(n)return e[n]}function Uw(e,t){for(let n=t;n>=1;n--){let t=Hw(e,n);if(t)return{level:n,tier:t}}}function Ww(e){let t=[];for(let n=1;n<=3;n++){let r=Hw(e,n);r&&t.push({level:n,credits:r.credits,weight:r.weight})}return t}function Gw(e){if(e.default<.1)return!1;let t=Ww(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 Kw(){let e=new Map;for(let t of Object.values(XC))for(let[n,r]of Object.entries(t.billableOperations)){let i=r;if(!i?.allowManagedConnection||!Gw(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:Ww(i.credits),usedBy:[o]})}for(let t of Object.values(OC)){let{cost:n}=t;if(!Gw(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:Ww(n.credits),usedBy:[i]})}return[...e.values()].sort((e,t)=>e.billableOperation.localeCompare(t.billableOperation))}function qw(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 Jw(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 Yw(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(Jw(e))return`https://${e}`;if(!qw(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 Xw(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(Jw(n))return`${e.protocol===`http:`?`http:`:`https:`}//${e.host}${e.pathname}${e.search}${e.hash}`;if(!qw(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(qw(i)||Jw(i))return`${e?.toLowerCase()===`http://`?`http:`:`https:`}//${n}${r}`}return``}}function Zw(e){try{return Yw(e)}catch{console.warn(`Invalid URL: ${e}`);return}}function Qw(e,t){if(t)switch(e){case`website_url`:return Zw(t);default:return}}function $w(e){let t;if(eT(e))return $w(e.value);let n=typeof e;return t=n===`string`||n===`number`||n===`boolean`?n:e===null?`unknown`:`json`,t}function eT(e,t=0){if(typeof e==`object`&&e&&`value`in e&&`status`in e&&Sn.safeParse(e.status).success){if(t>1||typeof e.value==`object`&&eT(e.value,t++))throw new $([Q.RecursiveExpandedValue()]);return!0}return!1}function tT(e){let t=eT(e),n;return n=t?e.value:e,t?{isExpanded:!0,resolvedInputValue:n,expandedValue:e}:{isExpanded:!1,resolvedInputValue:n,expandedValue:null}}function nT(e){return eT(e)?nT(e.value):e}function rT(e,t,n){if([`processing`,`completed`].includes(n.status)===!1||t==null)return{};try{let r=rn(e,n.format)?.getStaticWidgets?.(t),i=Qw(n.format,t);return Gx(r||{},{display_value:i?{label:i}:void 0})}catch(e){return console.warn(`Failed to generate UI props: ${e}`),{}}}function iT(e,t,n){if(t==null)return{};try{let r=rn(e,n)?.getStaticWidgets?.(t),i=Qw(n,t);return Gx(r||{},{display_value:i?{label:i}:void 0})}catch(e){return console.warn(`Failed to generate UI props: ${e}`),{}}}function aT(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 oT=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}=tT(n),c;c=s&&o.type?o.type:$w(e);let l;an(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]=aT(n,t)}return new e(r)}deleteKey(t){let n=structuredClone(this.annotations);return delete n[t],new e(n)}};function sT(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 cT(e){let t=sT(e),n=[];for(let[r,i]of e.entries()){let e=[];for(let{field:n,required:a}of ka(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 lT({config:e,pipes:t,input:n,field_annotations:r}){try{let i=pT({config:e,pipes:t,input:n,fieldAnnotations:r});return uT(i),i}catch(e){throw e instanceof $?e:new $([Q.ValidationFailed({error:e})])}}function uT(e){for(let t of e.orderedPipeInstances)for(let{field:n}of ka(t.getInputRequirement()))Rm({pipes:e.orderedPipeInstances,derivedInputFields:e.derivedInputFields},n.type),zm({pipes:e.orderedPipeInstances,derivedInputFields:e.derivedInputFields},n.format)}function dT(e,t){if(!e&&!t)throw new $([Q.MustDefineAnnotations()]);return new oT(t||{}).merge(oT.fromInput(e||[]))}function fT(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:Rm(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 pT(e){let t=Lw(e.pipes),n=dT(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)}),gT(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]=mT(t,n),u=fT({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 mT(e,t){let n=cT(e),r=hT(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 hT(e,t,n){let r=t.length,i=[],a=new Set,o=new Set,s=[],c=e=>{let n=t[e];return n?ka(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();Oa(a,ee)||s.push(Q.RequirementUnmet({requirement:a}));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 gT(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 Jr(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 _T=[`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`],vT=[`yyyy-MM-dd`,`yyyy/MM/dd`,`MM/dd/yyyy`,`MM-dd-yyyy`,`yyyyMMdd`,`dd-MM-yyyy`,`dd/MM/yyyy`],yT=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})}),bT=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 xT(e){return!isNaN(e.getTime())}const ST=r.coerce.string().trim().transform(e=>{let t=e.replace(/[^0-9T:.\-/ ]/g,``).trim();for(let e of _T){let n=ee(t,e,new Date(0));if(xT(n))return u(n,`yyyy-MM-dd'T'HH:mm:ss`)}throw Error(`Invalid date format: ${e}`)}),CT=r.coerce.string().trim().transform(e=>{for(let t of vT){let n=ee(e,t,new Date(0));if(xT(n))return u(n,`yyyy-MM-dd`)}throw Error(`Invalid date format: ${e}`)}),wT=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`}),TT=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()),ET=r.coerce.string().trim().min(1,{message:`Value cannot be empty for this format`});function DT(e,t){if(t===null)return e===``||e==null?null:e;if(e==null)return null;try{switch(t){case`url`:return yT.parse(e);case`email`:return bT.parse(e);case`datetime`:return ST.parse(e);case`date`:return CT.parse(e);case`decimal`:return wT.parse(e);case`int`:return TT.parse(e);case`currency`:return r.number().parse(e);case`percent`:return r.number().parse(e);case`address_line_1`:return ET.parse(e);case`website_url`:return yT.parse(e);case`profile_url`:return yT.parse(e);case`zip_code`:return ET.parse(e);case`markdown`:case`phone`:case`text`:return ET.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 ${Wu(e)} into format ${t}: ${r.message}`):r}}function OT(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(eT(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:DT(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 kT(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:OT(e,n,i)}}}function AT({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{kT(e,t,r);let{queuedRecordIdSet:i,adoptedRecordIdSet:a}=jT(e,t,r,n);if(r.queued_record_ids=i,r.adopted_record_ids=a,MT(e,r,n?.queue?.enabled),RT(e,r),r.errors.length>0)throw new $(r.errors);return r}catch(e){throw e instanceof $?e:new $([Q.ResponseGenerationFailed({error:e})])}}function jT(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}=LT(e,t,c,n,r);i=i.concat(l),a=a.concat(u)}return{queuedRecordIdSet:new Set(i),adoptedRecordIdSet:new Set(a)}}function MT(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 ${Vh(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 ${Vh(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}=Aa(a.getInputRequirement(),e);t===!1&&r(a,n,i,e)})}}function NT({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 PT({status:e,config:t}){return t.queue?.enabled?!!(e===`failed`&&t.queue?.triggers?.fieldIsFailed||e===`no_result`&&t.queue?.triggers?.fieldIsNoResult):!1}function FT({inputHashKey:e,configHashKey:t,expandedValue:n,config:r}){return NT({inputHashKey:e,configHashKey:t,expandedValue:n,config:r})||PT({status:n.status,config:r})}function IT({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 LT(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=Rm({pipes:e.orderedPipeInstances,derivedInputFields:e.derivedInputFields},ee),ne=zm({pipes:e.orderedPipeInstances,derivedInputFields:e.derivedInputFields},a.format),{resolvedInputValue:d,isExpanded:re,expandedValue:f}=tT(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=$w(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}=IT({inputHashKey:ae,configHashKey:p,expandedValue:f});e&&s.push(u.id)}if(re&&f.status!==`pending`&&FT({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}=IT({inputHashKey:ae,configHashKey:p,expandedValue:f});e&&s.push(u.id)}FT({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=DT(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 RT(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=rT(i,r.value,r);r.widgets=Gx(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 BT(e,t={}){return Object.values(e).map(e=>zT(e.fields,t))}function VT(e,t={}){return e.map(e=>zT(e.fields,t))}function HT(e,t={}){return zT(e.fields,t)}function UT(e,t){return e.map(e=>{let n={};return Object.entries(e).forEach(([e,r])=>{let{isExpanded:i,expandedValue:a,resolvedInputValue:o}=tT(r);i===!0&&a.status!=null&&t.unexpandStatuses.includes(a.status)?n[e]=o:n[e]=r}),n})}function WT(e){let t=dr[e];if(!t)throw Error(`Provider name '${e}' invalid`);return{...t,provider:e}}const GT=[`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`],KT=r.enum(GT);function qT(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 JT(e,t){let n={name:e,config:t};return Pa.hashObject(n)}var YT=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 JT(this.searchId,this.payload)}};function XT(e){return e.split(`@`)[0]}function ZT(e){return`/docs/search-catalog/${XT(e)}/${e.split(`@`)[1]}`}const QT=`companies:profiles:crustdata@1`,$T=_(`company_name`),eE=_(`company_website_url`),tE=_(`company_description`),nE=_(`company_profile_url`),rE=_(`crustdata_company_match`),iE=r.object({search_id:r.literal(QT),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:ya({sectionKey:`general`,path:`config.cursor`,groupPath:`config.general`,inputType:`text`,description:``,label:`Continue previous search from cursor`}),output_fields:R(r.object({[$T.name]:N({fieldName:$T.name}),[eE.name]:N({fieldName:$T.name}),[tE.name]:N({fieldName:tE.name}),[nE.name]:N({fieldName:nE.name}),[rE.name]:N({fieldName:rE.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:ha({path:`config.filters.revenue_in_usd`,sectionKey:`config.filters`,label:`Revenue (USD)`,description:``,legend:`1k - 10B`,min:1e3,max:1e10,groupPath:`config.filters.financials`}),last_funding_type: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:ha({path:`config.filters.last_funding_amount`,sectionKey:`config.filters`,label:`Last funding amount`,legend:`1k - 10B`,min:1e3,max:1e10,description:``,groupPath:`config.filters.financials`}),number_of_followers:P({path:`config.filters.number_of_followers`,sectionKey:`config.filters`,label:`Number of LinkedIn followers`,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=>{qT(e.value)&&e.issues.push({code:`custom`,message:`You must set at least one filter.`,input:e.value})})})}),aE={default:{input:[{fields:[]}]}},oE=class extends YT{searchId=QT;schema=iE;payload;constructor(e){super(),this.payload=this.validatePayload(e)}getRawOutputFields(){return{[$T.name]:this.catalogOutput($T),[eE.name]:this.catalogOutput(eE),[tE.name]:this.catalogOutput(tE),[nE.name]:this.catalogOutput(nE),[rE.name]:this.catalogOutput(rE)}}getConnectionsRequirements(){return[{provider:`crustdata`,rateLimitOperation:`crustdata_company_db_search`,rateLimitRatio:1,allowManagedConnection:!0}]}getDedupConfig(){return aE}},sE=iE,cE={searchId:QT,billableOperation:`companies-profiles-crustdata`,baseSearch:XT(`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:ZT(QT),cost:{mode:`per_page`,creditsPerPage:2},provider:`crustdata`,defaultPayload:{search_id:QT,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:[]}}}},lE=`companies:profiles:exa@1`,uE=_(`company_name`),dE=_(`company_website_url`),fE=_(`company_description`),pE=_(`company_industry`),mE=_(`headcount`),hE=_(`exa_match_evaluation`),gE=r.object({search_id:r.literal(lE),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({[uE.name]:N({fieldName:uE.name}),[dE.name]:N({fieldName:uE.name}),[fE.name]:N({fieldName:fE.name}),[pE.name]:N({fieldName:pE.name}),[mE.name]:N({fieldName:mE.name}),[hE.name]:N({fieldName:hE.name})})),filters:r.object({query:ba({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})})})}),_E={default:{input:[{fields:[]}]}},vE=class extends YT{searchId=lE;schema=gE;payload;constructor(e){super(),this.payload=this.validatePayload(e)}getRawOutputFields(){return{[uE.name]:this.catalogOutput(uE),[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:`exa`,rateLimitOperation:`exa_websets`,rateLimitRatio:1,allowManagedConnection:!0}]}getDedupConfig(){return _E}},yE=gE,bE={searchId:lE,billableOperation:`companies-profiles-exa`,baseSearch:XT(`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:ZT(lE),cost:{mode:`per_result`,creditsPerResult:2},provider:`exa`,defaultPayload:{search_id:lE,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:``}}}},xE=`companies:profiles:icypeas@1`,SE=_(`company_industry`),CE=_(`company_name`),wE=_(`company_description`),TE=_(`company_website_url`),EE=_(`headcount`),DE=_(`company_region`),OE=_(`company_profile_url`),kE=_(`icypeas_company_match`),AE=r.object({search_id:r.literal(xE),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:CE.name}),company_industry:N({fieldName:SE.name}),company_description:N({fieldName:wE.name}),company_website_url:N({fieldName:TE.name}),headcount:N({fieldName:EE.name}),company_region:N({fieldName:DE.name}),company_profile_url:N({fieldName:OE.name}),icypeas_company_match:N({fieldName:kE.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:ha({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=>{qT(e.value)&&e.issues.push({code:`custom`,message:`You must set at least one filter.`,input:e.value})})})}),jE={default:{input:[{fields:[{outputField:`company_profile_url`}]}]}},ME=class extends YT{searchId=xE;schema=AE;payload;constructor(e){super(),this.payload=this.validatePayload(e)}getRawOutputFields(){return{[CE.name]:this.catalogOutput(CE),[SE.name]:this.catalogOutput(SE),[OE.name]:this.catalogOutput(OE),[TE.name]:this.catalogOutput(TE),[wE.name]:this.catalogOutput(wE),[EE.name]:this.catalogOutput(EE),[DE.name]:this.catalogOutput(DE),[kE.name]:this.catalogOutput(kE)}}getConnectionsRequirements(){return[{provider:`icypeas`,rateLimitOperation:`icypeas_company_database`,rateLimitRatio:1,allowManagedConnection:!0}]}getDedupConfig(){return jE}},NE=AE,PE={searchId:xE,billableOperation:`companies-profiles-icypeas`,baseSearch:XT(`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:ZT(xE),cost:{mode:`per_result`,creditsPerResult:.4},provider:`icypeas`,defaultPayload:{search_id:xE,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:[]}}}}},FE=`people:profiles:clado@1`,IE=_(`name`),LE=_(`job_title`),RE=_(`company_name`),zE=_(`company_profile_url`),BE=_(`profile_url`),VE=_(`clado_person_match`),HE=r.object({search_id:r.literal(FE),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({[IE.name]:N({fieldName:IE.name}),[LE.name]:N({fieldName:LE.name}),[zE.name]:N({fieldName:zE.name}),[RE.name]:N({fieldName:RE.name}),[BE.name]:N({fieldName:BE.name}),[VE.name]:N({fieldName:VE.name})})),filters:r.object({query:ba({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})})})}),UE={default:{input:[{fields:[{outputField:`profile_url`}]}]}},WE=class extends YT{searchId=FE;schema=HE;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),[BE.name]:this.catalogOutput(BE),[zE.name]:this.catalogOutput(zE),[VE.name]:this.catalogOutput(VE)}}getConnectionsRequirements(){return[{provider:`clado`,rateLimitOperation:`clado_search_people`,rateLimitRatio:1,allowManagedConnection:!0}]}getDedupConfig(){return UE}},GE=HE,KE={searchId:FE,billableOperation:`people-profiles-clado`,baseSearch:Mt(`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:FE,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:``}}}},qE=`people:profiles:clado@2`,JE=_(`name`),YE=_(`job_title`),XE=_(`company_name`),ZE=_(`company_profile_url`),QE=_(`profile_url`),$E=_(`clado_person_match_v2`),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:1e4,min:1,groupPath:`config.general`,description:``,label:`Limit number of search results`}).default(100),search_id:ya({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({[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:ba({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`]})}),tD={default:{input:[{fields:[{outputField:`profile_url`}]}]}},nD=class extends YT{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:Mt(`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:qE,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:``}}}},aD=`people:employees:leadmagic@1`,oD=_(`name`),sD=_(`job_title`),cD=_(`company_website_url`),lD=_(`company_name`),uD=r.object({search_id:r.literal(aD),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({[oD.name]:N({fieldName:oD.name}),[lD.name]:N({fieldName:lD.name}),[cD.name]:N({fieldName:cD.name}),[sD.name]:N({fieldName:sD.name})})),filters:r.object({company_website_url:ya({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`})})})}),dD={default:{input:[{fields:[{outputField:cD.name}]}]}},fD=class extends YT{searchId=aD;schema=uD;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),[lD.name]:this.catalogOutput(lD)}}getConnectionsRequirements(){return[{provider:`leadmagic`,rateLimitOperation:`leadmagic_employee_finder`,rateLimitRatio:1,allowManagedConnection:!0}]}getDedupConfig(){return dD}},pD=uD,mD={searchId:aD,billableOperation:`people-employees-leadmagic`,baseSearch:XT(`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:ZT(aD),cost:{mode:`per_result`,creditsPerResult:.05},provider:`leadmagic`,defaultPayload:{search_id:aD,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:``}}}},hD=`people:profiles:crustdata@1`,gD=_(`name`),_D=_(`company_website_url`),vD=_(`profile_url`),yD=_(`job_title`),bD=_(`crustdata_person_match`),xD=r.object({search_id:r.literal(hD),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:ya({sectionKey:`general`,path:`config.cursor`,groupPath:`config.general`,inputType:`text`,description:``,label:`Continue previous search from cursor`}),output_fields:R(r.object({[gD.name]:N({fieldName:gD.name}),[_D.name]:N({fieldName:_D.name}),[vD.name]:N({fieldName:vD.name}),[yD.name]:N({fieldName:yD.name}),[bD.name]:N({fieldName:bD.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:fa({path:`config.filters.profile_headline_keywords`,sectionKey:`config.filters`,label:`Headline contains keywords`,maxItems:100,groupPath:`config.filters.keywords`}),profile_summary_keywords:fa({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:va({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=>{qT(e.value)&&e.issues.push({code:`custom`,message:`You must set at least one filter.`,input:e.value})})})}),SD={default:{input:[{fields:[]}]}},CD=class extends YT{searchId=hD;schema=xD;payload;constructor(e){super(),this.payload=this.validatePayload(e)}getRawOutputFields(){return{[gD.name]:this.catalogOutput(gD),[_D.name]:this.catalogOutput(_D),[vD.name]:this.catalogOutput(vD),[yD.name]:this.catalogOutput(yD),[bD.name]:this.catalogOutput(bD)}}getConnectionsRequirements(){return[{provider:`crustdata`,rateLimitOperation:`crustdata_people_db_search`,rateLimitRatio:1,allowManagedConnection:!0}]}getDedupConfig(){return SD}},wD=xD,TD={searchId:hD,billableOperation:`people-profiles-crustdata`,baseSearch:XT(`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:ZT(hD),cost:{mode:`per_page`,creditsPerPage:5},provider:`crustdata`,defaultPayload:{search_id:hD,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:[]}}}},ED=`people:profiles:exa@1`,DD=_(`name`),OD=_(`profile_url`),kD=_(`job_title`),AD=_(`company_name`),jD=_(`company_region`),MD=_(`exa_match_evaluation`),ND=r.object({search_id:r.literal(ED),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({[DD.name]:N({fieldName:DD.name}),[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({query:ba({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})})})}),PD={default:{input:[{fields:[]}]}},FD=class extends YT{searchId=ED;schema=ND;payload;constructor(e){super(),this.payload=this.validatePayload(e)}getRawOutputFields(){return{[DD.name]:this.catalogOutput(DD),[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:`exa`,rateLimitOperation:`exa_websets`,rateLimitRatio:1,allowManagedConnection:!0}]}getDedupConfig(){return PD}},ID=ND,LD={searchId:ED,billableOperation:`people-profiles-exa`,baseSearch:XT(`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:ZT(ED),cost:{mode:`per_result`,creditsPerResult:2},provider:`exa`,defaultPayload:{search_id:ED,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:``}}}},RD=`people:profiles:icypeas@1`,zD=_(`name`),BD=_(`job_title`),VD=_(`profile_headline`),HD=_(`company_website_url`),UD=_(`company_profile_url`),WD=_(`profile_url`),GD=_(`icypeas_person_match`),KD=r.object({search_id:r.literal(RD),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}),[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}),[GD.name]:N({fieldName:GD.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=>{qT(e.value)&&e.issues.push({code:`custom`,message:`The filters object cannot be empty. You must set at least one filter.`,input:e.value})})})}),qD={default:{input:[{fields:[{outputField:`profile_url`}]}]}},JD=class extends YT{searchId=RD;schema=KD;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),[GD.name]:this.catalogOutput(GD)}}getConnectionsRequirements(){return[{provider:`icypeas`,rateLimitOperation:`icypeas_lead_database`,rateLimitRatio:1,allowManagedConnection:!0}]}getDedupConfig(){return qD}},YD=KD,XD={searchId:RD,billableOperation:`people-profiles-icypeas`,provider:`icypeas`,baseSearch:XT(RD),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:ZT(RD),cost:{mode:`per_result`,creditsPerResult:.4},defaultPayload:{search_id:RD,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:[]}}}}},ZD={"people:profiles:crustdata@1":CD,"companies:profiles:crustdata@1":oE,"companies:profiles:exa@1":vE,"people:profiles:exa@1":FD,"people:profiles:icypeas@1":JD,"companies:profiles:icypeas@1":ME,"people:employees:leadmagic@1":fD,"people:profiles:clado@1":WE,"people:profiles:clado@2":nD},QD={"people:profiles:crustdata@1":wD,"companies:profiles:crustdata@1":sE,"companies:profiles:exa@1":yE,"people:profiles:exa@1":ID,"people:profiles:icypeas@1":YD,"companies:profiles:icypeas@1":NE,"people:employees:leadmagic@1":pD,"people:profiles:clado@1":GE,"people:profiles:clado@2":rD},$D={"people:profiles:crustdata@1":TD,"companies:profiles:crustdata@1":cE,"companies:profiles:exa@1":bE,"people:profiles:exa@1":LD,"people:profiles:icypeas@1":XD,"companies:profiles:icypeas@1":PE,"people:employees:leadmagic@1":mD,"people:profiles:clado@1":KE,"people:profiles:clado@2":iD};function eO(e){return ZD[e]}function tO(e){return QD[e]}function nO(e){return $D[e].defaultPayload}const rO=t.discriminatedUnion(`search_id`,Object.values(QD).map(e=>e)),iO=t.preprocess(e=>{if(!e||typeof e!=`object`||!(`search_id`in e))return e;let t=nO(e.search_id);return t?{...e,config:Ca(e?.config||{},t.config)}:e},rO);function aO(e){return Object.keys($D[e].defaultPayload.config.output_fields)}const oO=In,sO=t.object({value:Cn,status:Sn,type:bn.optional(),format:zn.nullable().optional(),resolved_by:Gn.nullable().optional(),widgets:Fn.optional()}),cO=t.record(t.string(),sO.nullable()),lO=t.object({search:t.object({ref:KT}),status:t.enum([`pending`,`processing`,`failed`,`completed`]),errors:t.array(oO),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()})}),uO=t.object({id:t.string(),status:t.enum([`completed`,`failed`,`pending`,`processing`]),results:t.array(cO),search_statuses:t.array(lO),organizationId:t.string()}).openapi(`SearchesResponseSchema`),dO=t.object({environment:t.enum([`production`,`sandbox`]).default(`production`),widgets:t.object({enabled:t.boolean().default(!1)}).default({enabled:!1})}),fO=dO.extend({dedup:t.object({strategy:t.enum([`default`]).nullable()}).default({strategy:null})}),pO=t.object({config:fO.default({dedup:{strategy:`default`},environment:`production`,widgets:{enabled:!1}}),searches:t.array(iO)}).openapi(`SearchesRequestSchema`);function mO(e){let t=e.split(`@`)[1];if(!t)throw Error(`No search version found`);return Number(t)}function hO(){let e={};for(let t of Object.values($D)){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=mO(e.searchId);return mO(t.searchId)-n})}),e}const gO=hO();function _O(e){let t=[];for(let[n,r]of Object.entries(gO)){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:mO(i.searchId)})}return t}function vO(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 aO(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:gO}}function yO(e){return $D[e]}function bO(e){let t=yO(e);return{[t.provider]:t.cost.mode===`per_result`?t.cost.creditsPerResult:t.cost.mode===`per_search`?t.cost.creditsPerSearch:t.cost.creditsPerPage}}function xO(e){return e.map(e=>({public_id:`sandbox-${e}`,provider:e}))}function SO(e){return xO(rw(e).allowedUserConnectionProviders)}function CO(e){return xO([HC(e).provider])}function wO(e){return xO([yO(e).provider])}const TO=[{id:`people`,label:`People`,color:`#8B7DFF`,order:0},{id:`companies`,label:`Companies`,color:`#10B981`,order:1},{id:`deprecated`,label:`Deprecated`,color:`#94A3B8`,order:2}],EO=new Map(TO.map(e=>[e.id,e]));function DO(e){return EO.get(e)}function OO(){return TO}const kO={"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 AO(e,t,n){if(t==null)return{};try{let r=rn(e,n)?.getStaticWidgets?.(t),i=Qw(n,t);return Gx(r||{},{display_value:i?{label:i}:void 0})}catch(e){return console.warn(`Failed to generate UI props: ${e}`),{}}}function jO(e){if(e instanceof Rx)return e;let t=e.search_id,n=kC(t);if(!n)throw Error(`Unknown pipe: ${e.search_id}`);return new n(MC.parse(e))}var MO=class extends Gh{constructor(e){super(e.map(e=>e.message).join(`, `)||`Unknown`),this.errors=e}};function NO(e){let t=[];for(let n of e){if(n instanceof YT){t.push(n);continue}let e=n.search_id,r=eO(e);if(!r)throw Error(`Unknown pipe: ${n.search_id}`);let i=new r(iO.parse(n));t.push(i)}return t}function PO(e){try{return NO(e.searches)}catch(e){throw e instanceof MO?e:new $([Q.ValidationFailed({error:e})])}}const FO=/[\\^$.+()|[\]{}]/g,IO=new Map;function LO(e){let t=IO.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(FO,`\\$&`)}let r=RegExp(`^${n}$`);return IO.set(e,r),r}function RO(e,t){return LO(t).test(e)}function zO(e,t){if(!t||t.length===0)return!1;for(let n of t)if(RO(e,n))return!0;return!1}function BO(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 VO(e,t){return BO(e,t?.providers)}function HO(e,t){if(!t)return!0;if(!BO(e,t.pipes))return!1;if(t.providers){let n=sw(e);if(n.length===0)return!0;if(!n.some(e=>VO(e,t)))return!1}return!0}function UO(e,t,n){return t?!(!BO(e,t.searches)||n!==void 0&&!VO(n,t)):!0}function WO(e,t,n){return t?!(!BO(e,t.searchesMulti)||n!==void 0&&!VO(n,t)):!0}function GO(e,t){return t?e.filter(e=>HO(e.pipeId,t)):e.slice()}function KO(e,t){return t?e.filter(e=>UO(e.searchId,t,e.provider)):e.slice()}function qO(e,t){return t?e.filter(e=>WO(e.searchId,t,e.provider)):e.slice()}function JO(e){let t=Object.values(e.billableOperations).map(e=>e.allowManagedConnection?e.credits.default:0);return Math.min(...t)}function YO(e){return Math.min(e.cost.mode===`per_result`?e.cost.creditsPerResult:e.cost.mode===`per_search`?e.cost.creditsPerSearch:e.cost.creditsPerPage)}function XO(e){return e.cost.credits.default}function ZO(e){let t=Xw(e);return te(t)||new URL(t).hostname}const QO=[`http://`,`https://`,`mailto:`],$O=new Set([`*`,`_`,`~`,"`",`[`,`]`,`(`,`)`,`\\`]);function ek(e){return e?tk(e):[]}function tk(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&&$O.has(o)){n+=o,r+=2;continue}if(a==="`"){let n=nk(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=nk(e,r+2,`**`);if(n>r+2){i(),t.push({type:`strong`,children:tk(e.slice(r+2,n))}),r=n+2;continue}}if(a===`~`&&o===`~`){let n=nk(e,r+2,`~~`);if(n>r+2){i(),t.push({type:`del`,children:tk(e.slice(r+2,n))}),r=n+2;continue}}if(a===`*`&&o!==`*`){let n=nk(e,r+1,`*`);if(n>r+1){i(),t.push({type:`em`,children:tk(e.slice(r+1,n))}),r=n+1;continue}}if(a===`[`){let n=nk(e,r+1,`]`);if(n>-1&&e[n+1]===`(`){let a=nk(e,n+2,`)`);if(a>-1){let o=e.slice(n+2,a);if(QO.some(e=>o.startsWith(e))){i(),t.push({type:`link`,href:o,children:tk(e.slice(r+1,n))}),r=a+1;continue}}}}n+=a,r+=1}return i(),t}function nk(e,t,n){let r=t;for(;r<e.length;){if(e[r]===`\\`&&r+1<e.length){r+=2;continue}if(rk(e,r,n))return r;r+=1}return-1}function rk(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{$r as AI_MODELS,ei as AI_MODEL_CATALOG,Xn as CatalogSchemaRefSchema,er as ConditionOperatorsSchema,qn as ExpandedFieldValueSchema,ph as FIELD_PLACEHOLDERS,Bn as FieldAnnotationSchema,oT as FieldAnnotations,Vn as FieldAnnotationsSchema,mn as FieldNameSchema,Ln as FieldReasonSchema,Cn as FieldValueSchema,jw as FormStoreSchema,Bw as HIGH_VOLUME_PRICING_MIN_CREDITS,$n as JSONExtractSchema,wn as JSONMetaSchema,or as NoConnectorSchema,v as OptionalConnectorSchema,_n as PIPE_IDS,RC as PaginationTypeSchema,mb as PersonWorkemailWaterfall1Entry,pb as PersonWorkemailWaterfall1PayloadSchema,fb as PersonWorkemailWaterfall1PipeClass,U as Pipe,Gh as Pipe0Error,vn as PipeIdSchema,tw as PipePayloadSchema,ur as PipeRunIfSchema,$ as PipelineValidationError,gn as PipesEnvironmentSchema,In as PipesErrorSchema,Zn as PipesFieldDefinitionSchema,Qn as PipesFieldDefinitionsSchema,Jn as PipesInputSchema,pw as PipesRequestConfigSchema,mw as PipesRequestSchema,fw as PipesResponseSchema,nw as ProcessedPipePayloadSchema,MC as ProcessedSearchPayloadSchema,iO as ProcessedSearchesPayloadSchema,hn as ProviderNameSchema,Rn as RECORD_FIELD_FORMATS,yn as RECORD_FIELD_TYPES,tr as RUN_IF_OPERATOR_LABELS,rr as RUN_IF_STATUS_OPERATORS,nr as RUN_IF_VALUE_OPERATORS,Wn as RecordClaimedBySchema,zn as RecordFieldFormatSchema,Kn as RecordFieldSchema,Sn as RecordFieldStatusSchema,bn as RecordFieldTypeSchema,xn as RecordIdSchema,Gn as RecordResolvedBySchema,Yn as RecordSchema,Wh as RequestValidationError,ar as RequiredConnectorSchema,cr as RunIfStatusOperatorsSchema,lr as RunIfStatusValueSchema,sr as RunIfValueOperatorsSchema,GT as SEARCHES_IDS,Px as SEARCH_IDS,Rx as Search,PC as SearchErrorSchema,Fx as SearchIdSchema,AC as SearchPayloadSchema,NC as SearchRequestSchema,zC as SearchResponseSchema,FC as SearchResultFieldSchema,IC as SearchResultSchema,oO as SearchesErrorSchema,KT as SearchesIdSchema,rO as SearchesPayloadSchema,dO as SearchesRequestBaseConfigSchema,pO as SearchesRequestSchema,uO as SearchesResponseSchema,sO as SearchesResultFieldSchema,cO as SearchesResultSchema,YT as SearchesSearch,lO as SearchesStatusSchema,Ku as TYPES_TO_FORMATS,Ow as WidgetsByKindSchema,Fn as WidgetsSchema,Ea as all,jr as analyzeLiquidTemplate,dn as and,H as any,lw as assertUniqueBillableOperations,g as autocomplete,ti as buildAiModelBillableOperations,cT as buildDependencyGraph,Hm as buildInputRequirementFromTemplates,K as catalogInput,Ma as cleanObject,Xw as cleanUrl,Yw as cleanWebsiteUrl,X as collectConstantReferencesFromTemplates,yw as collectPipeContextSelectFields,ka as collectRequirementFields,Y as collectSecretReferencesFromTemplates,LO as compilePattern,Ca as configDefaults,Ii as convertIntermediateFieldsIntoGroups,Li as defaultSectionMap,Hh as describeRequirement,Wx as entityLogoFavicon,Ux as entityLogoProfessionalProfileUrl,Bi as extractFormMetadata,V as field,nn as fieldBehaviorCatalog,tn as fieldCatalog,Vh as fieldNameStr,$w as fieldTypeFromValue,zT as fieldsToObject,GO as filterPipeEntries,KO as filterSearchEntries,qO as filterSearchesEntries,ni as getAiModelBillingKey,ii as getAiModelConnectionRequirements,ri as getAiModelProviders,ai as getAllAiModelProviders,W as getBasePipeName,ZC as getDefaultOutputFields,sw as getDefaultPipeProviders,GC as getDefaultSearchOutputFields,aO as getDefaultSearchesOutputFields,Rw as getDependentPipeNamesForInputProperty,zw as getDependentPipeNamesForPipe,ZO as getDomain,tT as getExpansionState,Vx as getFaviconUrlGoogle,_ as getField,rn as getFieldBehavior,Hu as getFieldDisplayLabel,rT as getFieldWidgets,WC as getInitialSearchTableData,_O as getInitialSearchesTableData,uw as getInitialTableData,Ia as getInputHash,si as getJsonMetaForFieldDef,XO as getLoweestSearchCreditAmount,YO as getLoweestSearchesCreditAmount,JO as getLowestPipeCreditAmount,pn as getOutputFieldInfoFromDef,iw as getPipeBillableOperationDef,Fw as getPipeCategoryEntries,Pw as getPipeCategoryEntry,QC as getPipeClass,Fa as getPipeConfigHash,$C as getPipeDefaultPayload,G as getPipeDocsURI,rw as getPipeEntry,Lw as getPipeInstances,bw as getPipePayloadFormConfig,ew as getPipePayloadSchema,aw as getPipeVersion,J as getProviderBillableOperation,La as getProviderCreditsFromBillableOperations,WT as getProviderEntry,cn as getReadableFieldStatus,xO as getSandboxConnections,SO as getSandboxConnectionsForPipe,CO as getSandboxConnectionsForSearch,wO as getSandboxConnectionsForSearches,OO as getSearchCategoryEntries,DO as getSearchCategoryEntry,kC as getSearchClass,jC as getSearchDefaultPayload,HC as getSearchEntry,AO as getSearchFieldWidgets,jO as getSearchInstance,ww as getSearchPayloadFormConfig,LC as getSearchPayloadSchema,KC as getSearchTableDataAggregates,BC as getSearchVersion,eO as getSearchesClass,nO as getSearchesDefaultPayload,yO as getSearchesEntry,iT as getSearchesFieldWidgets,NO as getSearchesInstances,tO as getSearchesPayloadSchema,vO as getSearchesTableDataAggregates,mO as getSearchesVersion,hw as getStartingCostPerPipesProvider,qC as getStartingCostPerSearchProvider,bO as getStartingCostPerSearchesProvider,dw as getTableDataAggregates,Hw as getTier,nT as getUnexpandedValue,Hx as ifDefined,z as inputFields,HT as inputFromRecord,VT as inputFromRecordArr,BT as inputFromRecords,Tw as inputGuards,on as isCatalogField,jt as isEmptyValue,an as isFieldName,Gw as isHighVolumeEligible,HO as isPipeAllowed,VO as isProviderAllowed,Oa as isRequirementMet,Aa as isRequirementSatisfiedByRecord,UO as isSearchAllowed,WO as isSearchesAllowed,Yr as joinConnectionString,Kw as listHighVolumeEligibleOperations,Ww as listTiers,za as markRecordFieldAsComplete,Ha as markRecordFieldAsFailed,Va as markRecordFieldAsNoResult,Ba as markRecordFieldAsPending,Wa as markRecordFieldAsProcessing,Ua as markRecordFieldAsSkipped,zO as matchesAny,RO as matchesPattern,Gx as mergeWidgets,T as noConnectorInput,Da as optional,w as optionalConnectorInput,fn as or,R as outputFields,Ar as parseLiquidTemplate,wr as parseOutputTagArgs,DT as parseRecordValueOrError,ek as parseRichText,XC as pipeCatalog,Mw as pipeCategoryCatalog,JC as pipeClassCatalog,YC as pipePayloadSchemaCatalog,ea as pipesAsyncIncludeExcludeSelectInput,da as pipesContextSelectInput,na as pipesDateRangeInput,qi as pipesFieldsSelectInput,Ji as pipesIncludeExcludeInput,$i as pipesIncludeExcludeSelectInput,E as pipesInputField,ca as pipesIntInput,hi as pipesJsonExtractionInput,ua as pipesJsonSchemaField,Qi as pipesKeyValueListInput,oa as pipesLLMSelectInput,Yi as pipesMultiCreateInput,sa as pipesMultiSelectInput,la as pipesNumberInput,O as pipesOptionalBooleanInput,Xi as pipesOrderedMultiCreateInput,k as pipesOutputField,y as pipesPayloadRegistry,Hi as pipesPromptInput,D as pipesProviderInput,ta as pipesRangeInput,S as pipesRunIfInput,aa as pipesSelectInput,Iw as pipesSnippetCatalog,Zi as pipesTaggedOrderedMultiCreateInput,C as pipesTaggedTextInput,Ui as pipesTemplateInput,ra as pipesTextInput,ia as pipesTextareaInput,Z as placeholder,UT as processInputObjects,dr as providerCatalog,q as rateLimitRatioFallingProgression,Or as renderLiquidTemplate,kr as renderLiquidTemplateSync,Gi as requiredConnectorInput,Ra as requirementToInputFields,Uh as requirementUnmetMessage,ln as requiresConnection,un as requiresField,OC as searchCatalog,TO as searchCategoryCatalog,EC as searchClassCatalog,DC as searchPayloadSchemaCatalog,kO as searchSnippetCatalog,I as searchesAsyncIncludeExcludeSelectInput,F as searchesAsyncMultiSelectInput,$D as searchesCatalog,ZD as searchesClassCatalog,ga as searchesDateRangeInput,ma as searchesExactRangeInput,j as searchesIncludeExcludeInput,M as searchesIncludeExcludeSelectInput,L as searchesIntInput,pa as searchesMinMaxIntInput,A as searchesMultiCreateInput,P as searchesMultiSelectInput,Sa as searchesNumberField,_a as searchesOptionalBooleanInput,va as searchesOptionalNullableBooleanInput,fa as searchesOrderedMultiCreateInput,N as searchesOutputField,b as searchesPayloadRegistry,QD as searchesPayloadSchemaCatalog,ha as searchesRangeInput,xa as searchesSelectInput,ya as searchesTextInput,ba as searchesTextareaField,Gu as sortObjectKeys,ow as sortPipeCatalogByBasePipe,VC as sortSearchCatalogByBaseSearch,hO as sortSearchesCatalogByBaseSearch,Jr as splitConnectionString,h as staticAutocomplete,m as staticOptions,Wu as stringify,Uu as testPrint,Uw as tierAtOrBelow,AT as transformIntoResponse,lT as validatePipesOrError,PO as validateSearches,Q as validationErrorMessages};
|