@pipe0/base 0.0.7 β†’ 0.0.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.mjs CHANGED
@@ -64,13 +64,13 @@ From the current S24 batch.
64
64
  How do you...`,`Y Combinator's most popular startups.
65
65
  From the current S24 batch.
66
66
 
67
- How do you...`]}},crustdata_post_list:{label:`Crustdata Post list`,type:`json`,format:`json_list_string`,description:`Rich JSON post list`,jsonMeta:{zodSchema:st,exampleValue:ct}},role_finder_match:{label:`Role finder match`,type:`json`,format:`json_object`,description:`Result of a role finder operation`,jsonMeta:{zodSchema:Pt,exampleValue:Ft}},amplemarket_person_match:{label:`Person match`,type:`json`,format:`json_object`,description:`Person match object as returned by Amplemarket`,jsonMeta:{zodSchema:Me,exampleValue:Ne}},amplemarket_company_match:{label:`Company match`,type:`json`,format:`json_object`,description:`Company match object as returned by Amplemarket`,jsonMeta:{zodSchema:Ae,exampleValue:je}},companyenrich_matches:{label:`CompanyEnrich matches`,type:`json`,format:`json_object`,description:`CompanyEnrich response list.`,jsonMeta:{zodSchema:r.array($e),exampleValue:[et]}},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:Et,zodSchema:Tt}},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:Mt,exampleValue:Nt},format:`json_object`},professional_profile_url:{label:`LinkedIn Profile URL`,type:`string`,format:`profile_url`,description:`A person's LinkedIn profile URL.`,jsonMeta:null}},tn={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=Zt(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=$t(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=$t(e);return{display_value:t?{label:t}:void 0,icon:{key:`linkedin`}}}},company_profile_url:{getStaticWidgets(e){let t=$t(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:ke.linkedin}}}},crustdata_post_list:{getStaticWidgets(e){return{entity_logo:{entity:`LinkedIn`,image_url:ke.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 v(e){return{...en[e],name:e}}function nn(e,t){if(an(e,t))return tn[e]}function rn(e){return e in en}function an(e,t){return e in en?en[e].format===t:!1}const on={completed:`Completed`,failed:`Failed`,no_result:`No result`,pending:`Pending`,processing:`Processing`,queued:`Queued`,skipped:`Skipped`};function sn(e){return on[e]}const cn=(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},ln=(e,t)=>n=>{let r=e(n);return r!=null&&r!==``?{disabled:!1}:{disabled:!0,message:t}},un=(...e)=>t=>{for(let n of e){let e=n(t);if(e.disabled)return e}return{disabled:!1}},dn=(...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 fn(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 pn=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(`.`)),mn=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`]),hn=r.enum([`production`,`sandbox`]),gn=`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(`.`),_n=r.enum(gn),vn=[`string`,`number`,`boolean`,`json`,`unknown`],yn=r.enum(vn),bn=r.union([r.number(),r.string()]),xn=r.union([r.literal(`completed`),r.literal(`failed`),r.literal(`pending`),r.literal(`queued`),r.literal(`processing`),r.literal(`no_result`),r.literal(`skipped`)]),Sn=r.union([r.string().min(1),r.number(),r.boolean(),r.null(),r.record(r.string(),r.unknown()),r.array(r.unknown())]),Cn=r.object({example_value:r.any().nullable(),schema:r.any().nullable()}),wn=r.object({}),Tn=wn.extend({image_url:r.string().url().describe(`URL to the provider's logo image.`),entity:r.string().describe(`The name of the entity.`)}),En=wn.extend({emoji:r.string().describe(`Country flag emoji.`)}),Dn=wn.extend({image_url:r.url().describe(`URL to the provider's logo image.`),name:r.string().describe(`The name of the avatar owner.`)}),On=wn.extend({attempted_providers:r.array(r.object({provider:mn})),available_providers:r.array(mn),successful_provider:mn.optional()}),kn=r.enum([`linkedin`,`job`]),An=wn.extend({key:kn}).optional(),jn=r.object({result_status:r.enum([`completed`,`failed`])}).optional(),Mn=r.object({list:r.array(r.object({source:r.string(),description:r.string().optional(),url:r.string()}))}).optional(),Nn=r.object({numeric:r.int().min(1).max(5)}).optional(),Pn=r.object({display_value:r.object({label:r.string().optional()}),entity_logo:Tn.optional(),location_indicator:En.optional(),avatar:Dn.optional(),waterfall:On.optional(),icon:An,action_summary:jn,sources:Mn,confidence:Nn}).partial().describe(`A map of widgets associated with this field for UI display, keyed by widget type.`),Fn=r.object({code:r.string(),message:r.string(),path:r.string().optional()}),In=r.object({code:r.string(),summary:r.string(),message:r.string()}),Ln=[`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`],Rn=r.enum(Ln);Rn.nullable();const zn=r.object({type:yn,label:r.string().nullable().optional(),format:Rn.nullable().optional(),json_metadata:Cn.nullable().optional()}),Bn=r.record(r.string(),zn),Vn=r.enum([...gn,`input`]).nullable(),Hn=r.enum([...gn,`input`,`system`]).nullable(),Un=r.object({ref:Vn,config_hash:r.string().nullable()}),Wn=r.object({ref:Hn,environment:hn.nullable(),config_hash:r.string().nullable(),input_hash:r.string().nullable()}),Gn=r.object({value:Sn,status:xn,type:yn,reason:In.nullable(),claimed_by:Un,resolved_by:Wn.nullable(),widgets:Pn.optional(),format:Rn.nullable()}),Kn=r.object({value:Sn,status:xn,reason:In.nullable().optional(),type:yn.optional(),format:Rn.nullable().optional(),claimed_by:Un.optional(),resolved_by:Wn.nullable().optional(),widgets:Pn.optional()}),qn=r.record(r.string(),r.union([Sn,Kn])).openapi(`PipesInput`),Jn=r.object({id:bn,fields:r.record(bn,Gn)}),Yn=r.object({type:r.literal(`catalog`),fieldName:r.string().min(1)}),Xn=r.object({type:yn,label:r.string(),added_by:r.object({ref:r.union([_n,r.literal(`input`)]),config_hash:r.string().nullable(),pipe_index:r.number().nullable()}),format:Rn.nullable(),is_primary_output:r.boolean()}),Zn=r.record(r.string(),Xn),Qn=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:Rn.nullable().default(null),label:r.string().optional(),type:yn})})).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)})})}),$n=r.enum([`eq`,`neq`,`gt`,`gte`,`lt`,`lte`,`contains`]),er={eq:`equals`,neq:`not equals`,gt:`greater than`,gte:`greater than or equal`,lt:`less than`,lte:`less than or equal`,contains:`contains`},tr=[`eq`,`neq`,`gt`,`gte`,`lt`,`lte`,`contains`],nr=[`eq`,`neq`],rr=r.object({type:r.literal(`vault`),connection:r.string()}),y=r.object({strategy:r.enum([`first`]).default(`first`),connections:r.array(rr)}).nullable().optional(),ir=r.object({strategy:r.enum([`first`]).default(`first`),connections:r.array(rr).min(1,{message:`Provide your own credentials to use this object.`})}),ar=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(),or=r.enum(tr),sr=r.enum(nr),cr=r.enum([`failed`,`no_result`,`completed`,`skipped`]),lr=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:or.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:sr.describe(`Status comparison operator: "eq" or "neq".`),value:cr.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" }] } }`),ur={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}},dr=[`if`,`elsif`,`else`,`endif`,`unless`,`endunless`,`for`,`endfor`,`break`,`continue`,`output`],fr=[`json`,`escape`,`escape_once`,`default`,`upcase`,`downcase`,`size`,`join`,`first`,`last`,`replace`,`truncate`,`strip`,`newline_to_br`,`url_encode`],pr=/^[A-Z][A-Z0-9_]*$/,mr=/^[A-Z][A-Z0-9_]*$/,hr=/^[a-zA-Z_][a-zA-Z0-9_]*$/,gr=`SECRETS`,_r=`CONSTANTS`,vr=new Set(dr),yr=new Set(fr),br=e=>`{${e}}`;var xr=class extends i{constructor(e){super(),this.values=e}liquidMethodMissing(e){let t=String(e);if(!pr.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]}},Sr=class extends i{constructor(e){super(),this.values=e}liquidMethodMissing(e){let t=String(e);if(!mr.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 Cr(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(!hr.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 wr(){let e=new a({strictVariables:!1,strictFilters:!0,jsTruthy:!0,greedy:!1,catchAllErrors:!1,ownPropertyOnly:!0});e.registerTag(`output`,{parse(e,t){let n=Cr(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(br(n.name))}});for(let t of Object.keys(e.tags))vr.has(t)||delete e.tags[t];for(let t of Object.keys(e.filters))yr.has(t)||delete e.filters[t];return e}let Tr=null;function Er(){return Tr||=wr(),Tr}async function Dr(e,t,n={}){let r=Er(),i=n.renderLimitMs??250,a={...t.inputs??{},[gr]:new xr(t.secrets??{}),[_r]:new Sr(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 Or(e,t,n={}){let r=Er(),i=n.renderLimitMs??250,a={...t.inputs??{},[gr]:new xr(t.secrets??{}),[_r]:new Sr(t.constants??{})},o=r.parseAndRenderSync(e,a,{globals:{__outputAllowed:n.outputAllowed===!0},renderLimit:i});return String(o)}function kr(e){return Er().parse(e)}function Ar(e){let t=Er().parse(e),n={scopeStack:[],guardStack:[],inputs:new Map,secrets:new Set,constants:new Set,outputs:[],forDepth:0};jr(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 jr(e,t){for(let n of e)Mr(n,t)}function Mr(e,t){let n=e;if(n.value&&typeof n.value==`object`&&`filters`in n.value&&`initial`in n.value){Lr(n.value,t,!1);return}if(typeof n.name==`string`){Nr(n,t);return}}function Nr(e,t){switch(e.name){case`for`:Pr(e,t);return;case`if`:case`unless`:Fr(e,t);return;case`output`:Ir(e,t);return;case`break`:case`continue`:return;default:throw Error(`Unhandled liquid tag in analyzer: ${e.name}`)}}function Pr(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&&Rr(e.collection,t,!1);let n=typeof e.variable==`string`?e.variable:null;n&&t.scopeStack.push(n),jr(Array.isArray(e.templates)?e.templates:[],t),n&&t.scopeStack.pop(),jr(Array.isArray(e.elseTemplates)?e.elseTemplates:[],t),--t.forDepth}function Fr(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=Vr(i.initial)),a&&t.guardStack.push(a),i&&typeof i==`object`&&Lr(i,t,!1),jr(r.templates,t),a&&t.guardStack.pop()}jr(Array.isArray(e.elseTemplates)?e.elseTemplates:[],t)}function Ir(e,t){let n=e.outputDecl;if(!n){let t=e.token?.args;typeof t==`string`&&(n=Cr(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 Lr(e,t,n){let r=e.filters.some(e=>e.name===`default`),i=n||r;for(let n of e.initial.postfix)Hr(n)&&Br(n,t,i);for(let n of e.filters)for(let e of n.args)zr(e,t)}function Rr(e,t,n){Hr(e)&&Br(e,t,n)}function zr(e,t){if(Array.isArray(e)){let n=e[1];n&&Rr(n,t,!1)}else Rr(e,t,!1)}function Br(e,t,n){let r=e.props;if(r.length===0)return;let i=r[0];if(!i||!Ur(i))return;let a=i.content;if(t.scopeStack.includes(a))return;if(a===`SECRETS`){let e=r[1];if(!e||!Ur(e))throw Error(`Invalid SECRETS reference β€” expected SECRETS.KEY (got ${Kr(r)}).`);let n=e.content;if(!pr.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||!Ur(e))throw Error(`Invalid CONSTANTS reference β€” expected CONSTANTS.KEY (got ${Kr(r)}).`);let n=e.content;if(!mr.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 Vr(e){if(e.postfix.length===1){let t=e.postfix[0];if(t&&Hr(t)&&t.props.length===1){let e=t.props[0];if(e&&Ur(e))return e.content}}if(e.postfix.length===3){let[t,n,r]=e.postfix;if(t&&n&&r&&Hr(t)&&t.props.length===1){let e=t.props[0];if(e&&Ur(e)&&Wr(n)&&Gr(r,[`==`,`!=`]))return e.content}}return null}function Hr(e){return e.kind===o.PropertyAccess}function Ur(e){return!!e&&typeof e==`object`&&e.kind===o.Word}function Wr(e){if(e.kind!==o.Literal)return!1;let t=e.literal;return t===`nil`||t===`null`}function Gr(e,t){return e.kind===o.Operator?t.includes(e.operator):!1}function Kr(e){let t=[];for(let n of e)n&&Ur(n)?t.push(n.content):t.push(`?`);return t.join(`.`)}function qr(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:mn.parse(n),id:r}}catch{throw Error(`Connection string ${e}: Failed to parse provider name.`)}}function Jr(e){return`${e.provider}_${e.id}`}const Yr=new s;function Xr(e){return Yr.validateSchema(e)}function Zr(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 Qr=[`gemini-flash-latest`,`openai-gpt-latest`,`openai-gpt-mini-latest`],$r={"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 ei(e,t){let n={};for(let r of Qr){let i=$r[r],a=`${r}-${e}`;n[a]={credits:t?.[r]??i.defaultCredits,allowManagedConnection:!0,provider:i.provider,mode:i.billingMode}}return n}function ti(e){let t=$r[e];if(!t)throw Error(`Unknown AI model: ${e}`);return[t.provider]}function ni(e,t){return`${e}-${t}`}function ri(e){let t=$r[e];if(!t)throw Error(`Unknown AI model: ${e}`);return[{provider:t.provider,rateLimitRatio:t.rateLimitRatio,rateLimitOperation:t.rateLimitOperation,allowManagedConnection:t.allowManagedConnection}]}function ii(){let e=new Set;for(let t of Qr)e.add($r[t].provider);return[...e]}function ai(e){if(!e?.requires)return;let t=[];e.requires.connection&&t.push(cn(e.requires.connection));for(let n of e.requires.fields??[])t.push(ln(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]:un(...t)}function oi(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=fn(e,n,t),s=rn(o.fieldName)?v(o.fieldName):null;return s?.jsonMeta?{jsonSchema:s.jsonMeta.zodSchema?r.toJSONSchema(s.jsonMeta.zodSchema):null,exampleValue:s.jsonMeta.exampleValue||null}:i}const b=r.registry();{let e=b._map,t=b.get.bind(b);b.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 x=r.registry(),S={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()),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())])},si=(e,t)=>{let n=S.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},ci=(e,t)=>{let n=S.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},li=(e,t)=>{let n=S.key_value_list_input;e.maxItems&&(n=n.max(e.maxItems)),n=n.check(e=>{let t=e;(t.value??[]).forEach((e,n)=>{Li({value:e.key,issues:t.issues},!1,[n,`key`]),Li({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},ui=(e,t)=>{let n=e.maxItems||200,r=S.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},di=()=>{let e=Qn;return b.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}=oi(e,t,n)||{};return{fieldName:e,fieldLabel:n.label,schema:r||null,exampleValue:i||null}}),path:`config.json_extraction`,groupPath:`config.json_extraction`,sectionKey:`config.extractions`}}),e},fi=(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:ur[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},pi=(e,t)=>{let n=e.maxItems||200,r=S.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},mi=(e,t)=>{let n=S.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},hi=(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},gi=(e,t)=>{let n=S.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},_i=(e,t)=>{let n=S.boolean_input.default(e.defaultValue);return e.description&&n.describe(e.description),t.add(n,{...e,required:!1,type:`boolean_input`}),n},vi=(e,t)=>{let n=S.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},yi=(e,t)=>{let n=S.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},bi=(e,t)=>{let n=S.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},xi=(e,t,n=`config.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})},Si=(e,t)=>{let n=S.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},Ci=(e,t)=>{let n=S.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},wi=(e,t)=>{let n=S.json_schema_input,r=e.required?n:n.optional();return r.check(e=>{Xr(e.value)||e.issues.push({code:`custom`,input:e.value,message:`JSON schema is invalid. Check your input.`})}),e.allowEmpty||(r=r.check(e=>{Zr(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},Ti=(e,t)=>{let n=e.options.map(e=>e.value),r=new Set([...n,``]),i=S.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},Ei=({billableOperations:e,...t},n)=>{let i=r.enum(Qr).default(t.defaultValue||`gemini-flash-latest`);return n.add(i,{type:`select_input`,options:Qr.map(t=>{let n=e[Object.keys(e).find(e=>e.startsWith(t))];if(!n)throw Error(`Unable to find billig info for model ${t}`);return{label:t,value:t,widgets:{logo:{url:ur[$r[t].provider].logoUrl},pricing:{credits:n.credits}}}}),required:!0,description:``,label:`AI Models`,...t}),i},Di=(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},Oi=(e,t)=>{let n=e.required?S.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`})}):S.context_select_input,r=e.defaultValue?n.default(e.defaultValue):n,i=e.enabledIf??ai(e.optionsDef);return t.add(r,{type:`context_select_input`,...e,enabledIf:i,options:[]}),r},ki=(e,t)=>{let n=S.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},Ai=(e,t)=>{let n=S.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},ji=(e,t)=>{let n=e.maxItems||200,r=S.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 Mi(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 C=()=>{let e=lr.nullish();return b.add(e,e=>{let t=e.validationContext;return{label:``,description:``,type:`pipes_run_if_input`,groupPath:`run_if`,path:`run_if`,sectionKey:`conditions`,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},Ni={"config.pipe_io":{type:`form_section`,label:`In- and outputs`,description:`Configure output fields and reassign inputs.`,path:`config.pipe_io`},"config.input_fields":{type:`form_section`,label:`Input fields`,description:`Reassign pipe inputs.`,path:`config.input_fields`},"config.output_fields":{type:`form_section`,label:`Output fields`,description:`Rename or toggle outputs.`,path:`config.output_fields`},"config.extractions":{type:`form_section`,label:`Extractions`,description:`Use Jsonata syntax to extract nested JSON values.`,path:`config.json_extraction`},conditions:{type:`form_section`,path:`run_if`,label:`Conditions`,description:`Execute pipes when conditions are met.`,mode:`dynamic`},connector:{type:`form_section`,path:`connector`,label:`Connector`,description:`Provide your own credentials for external providers.`,mode:`dynamic`},"config.filters":{type:`form_section`,label:`Filters`,path:`config.filters`,description:`Narrow down the search output`},general:{type:`form_section`,path:`general`},pagination:{type:`form_section`,path:`pagination`}},Pi={general:1,pagination:2,conditions:999,connector:998,"config.filters":3,"config.input_fields":10,"config.output_fields":11,"config.pipe_io":10,"config.extractions":1};function Fi({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 Ii=({schema:e,groupPathMatch:t,extractFromSchema:n,sectionOrder:i=Pi,sectionMap:a=Ni,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=Fi({fieldMetadata:i,store:o,formResolvers:s});e&&n.fields.push(e)}else{let n=t[i.groupPath],r=Fi({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 Li(e,t,n=[]){let r=e.value;if(!(typeof r!=`string`||!r))try{let i=Ar(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 Ri=e=>{let t=(e.supportedTags??[]).includes(`output`),n=r.object({template:r.string().min(10).check(e=>Li(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 b.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},zi=e=>{let t=r.string();e.required&&(t=t.min(1));let n=t.check(e=>Li(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 b.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},w=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=>Li(e,!1,[])),n=n.describe(e.description||t);let i=e.optionsDef?{...e.optionsDef,enabledIf:e.optionsDef.enabledIf??ai(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:[]},b.add(n,o),n};function Bi(e,t){b.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:`connector`,supportsUserConnections:r.size>0,filteredConnections:i.map(e=>({provider:e.provider,connection:Jr({id:e.public_id,provider:e.provider})}))}})}const Vi=()=>{let e=ir;return Bi(e,`required`),e},T=()=>{let e=y;return Bi(e,`optional`),e},E=()=>{let e=ar;return Bi(e,`disabled`),e};function Hi(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 D=e=>{let t=r.object({alias:r.string().describe(`Override field name mapping. Leave empty to use default.`)});return b.add(t,t=>{let n=t.validationContext;return{type:`select_input`,required:!1,sectionKey:`config.pipe_io`,defaultValue:void 0,placeholder:e.fieldName,options:Hi(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:``})},O=e=>fi(e,b),Ui=e=>{let t=S.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([]),b.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},Wi=e=>ui(e,b),Gi=e=>si(e,b),Ki=e=>ci(e,b),qi=e=>li(e,b),Ji=e=>pi(e,b),Yi=e=>ji(e,b),Xi=e=>mi(e,b),Zi=e=>gi(e,b),k=e=>_i(e,b),A=e=>xi(e,b),Qi=e=>yi(e,b),$i=e=>bi(e,b),ea=e=>Ti(e,b),ta=e=>Ei(e,b),na=e=>Di(e,b),ra=e=>Si(e,b),ia=e=>Ci(e,b),aa=e=>wi(e,b),oa=e=>Oi(e,b),j=e=>si(e,x),sa=e=>ci(e,x),ca=e=>ki(e,x),M=e=>ui(e,x),N=e=>pi(e,x),la=e=>mi(e,x),ua=e=>hi(e,x),da=e=>gi(e,x),fa=e=>_i(e,x),pa=e=>vi(e,x),P=e=>xi(e,x,`config.output_fields`),ma=e=>yi(e,x),ha=e=>bi(e,x),ga=e=>Ti(e,x),F=e=>Di(e,x),I=e=>Ai(e,x),L=e=>ji(e,x),R=e=>Si(e,x),_a=e=>Ci(e,x),z=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()),B=e=>e.optional();function va(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]=va(n[e],r));return n}const V={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 ❌`},ya=e=>typeof e.kind==`string`,ba=e=>ya(e)?e:{kind:`field`,field:e},H=e=>({kind:`field`,field:e}),xa=(...e)=>({kind:`all`,of:e.map(ba)}),U=(...e)=>({kind:`any`,of:e.map(ba)}),Sa=e=>({kind:`optional`,field:e});function Ca(e,t){switch(e.kind){case`optional`:return!0;case`field`:return t.has(e.field.resolvedName);case`all`:return e.of.every(e=>Ca(e,t));case`any`:return e.of.some(e=>Ca(e,t))}}function wa(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(wa)}}function Ta(e,t){let n=Ea(e,t);return n.ok?{valid:!0,failedPipeInputField:null,failedRecordField:null}:{valid:!1,failedPipeInputField:n.field,failedRecordField:n.recordField}}function Ea(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=Ea(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=Ea(i,t);if(r=!0,e.ok)return{ok:!0};n=e}catch{}return r?n:{ok:!0}}}}function Da(e){if(typeof e!=`object`||!e)return e;if(Array.isArray(e))return e.map(Da).filter(e=>!At(e));let t={};for(let[n,r]of Object.entries(e)){let e=Da(r);At(e)||(t[n]=e)}return t}const Oa=await l();var ka=class e{static hashObject(t){if(!Oa)throw Error(`HashAPI not initialized`);let{h64ToString:n}=Oa,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 Aa(e,t){let n={pipeId:e,config:Da(t)};return ka.hashObject(n)}function ja(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:ka.hashObject(Da(n))}var W=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 wa(this.getInputRequirement()))e[t.name]=t;return e}getConfigHashKey(){return Aa(this.payload.pipe_id,this.payload.config||{})}getInputHashKey(e){return ja(e,this.inputFields)}};function Ma(e,t){let n={};for(let r of t)for(let t of Object.values(e))if(t&&t.provider===r&&t.credits!=null){n[r]=t.credits;break}return n}function Na(e){return wa(e).map(({field:e})=>e)}function Pa({recordField:e,value:t,resolvedBy:n,widgets:r}){return e.value=t,e.status=`completed`,e.resolved_by=n,e.widgets=r,e}function Fa({recordField:e}){return e.status=`pending`,e.resolved_by=null,e.value=null,e}function Ia({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 La(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 Ra(e,t){return e.value=null,e.status=`skipped`,e.resolved_by=null,e.reason=t,e.widgets={},e}function za(e){return e.value=null,e.status=`processing`,e.resolved_by=null,e.widgets={},e}function G(e){return e.split(`@`)[0]}function K(e){return`/docs/pipes/pipes-catalog/${G(e)}/${e.split(`@`)[1]}`}function q(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 Ba=`company:domain:workemail@1`,Va=v(`company_domain`),Ha=v(`work_email`),Ua=r.object({pipe_id:r.literal(Ba),run_if:C(),connector:E(),config:r.object({input_fields:B(r.object({[Ha.name]:D({fieldName:Ha.name})})),output_fields:z(r.object({[Va.name]:A({fieldName:Va.name})}))}).optional()}),Wa=e=>H(q(Ha,e)),Ga={"pipe0-company-domain-from-work-email":{credits:0,allowManagedConnection:!0,mode:`always`,provider:`pipe0`}},Ka=class extends W{pipeId=Ba;payload;payloadSchema=Ua;billableOperations=Ga;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[`pipe0-company-domain-from-work-email`]}getInputRequirement(){return Wa(this.payload.config)}getRawOutputFields(){return{[Va.name]:this.catalogOutput(Va)}}getConnectionsRequirements(){return[{provider:`pipe0`,rateLimitRatio:1,rateLimitOperation:`pipe0_logic`,allowManagedConnection:!0}]}},qa=Ua,Ja={pipeId:Ba,basePipe:G(Ba),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:[V.EMAIL,V.WORK_EMAIL,V.WEBSITE],docPath:K(Ba),allowedUserConnectionProviders:[],managedProviders:[`pipe0`],deprecatedProviders:[],billableOperations:Ga,defaultInputRequirement:Wa(null),defaultPayload:{pipe_id:Ba,connector:null,run_if:null,config:{input_fields:{[Ha.name]:{alias:``}},output_fields:{[Va.name]:{alias:``,enabled:!0}}}}},Ya=`company:funding:leadmagic@2`,Xa=v(`company_name`),Za=v(`company_domain`),Qa=v(`funding_history`),$a=v(`funding_total_usd`),eo=v(`leadmagic_competitor_list`),to=v(`leadmagic_acquisition_history`),no=v(`leadmagic_company_news_list`),ro=r.object({pipe_id:r.literal(Ya),connector:T(),run_if:C(),config:r.object({input_fields:B(r.object({[Xa.name]:D({fieldName:Xa.name}),[Za.name]:D({fieldName:Za.name})})),output_fields:z(r.object({[Qa.name]:A({fieldName:Qa.name}),[$a.name]:A({fieldName:$a.name}),[eo.name]:A({fieldName:eo.name}),[to.name]:A({fieldName:to.name}),[no.name]:A({fieldName:no.name})}))}).optional()}),io=e=>U(q(Xa,e),q(Za,e)),ao={"get-company-funding-leadmagic":{provider:`leadmagic`,allowManagedConnection:!0,credits:2,mode:`onSuccess`}},oo=class extends W{pipeId=Ya;payload;payloadSchema=ro;billableOperations=ao;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`leadmagic`]}estimateBillableOperations(){return[`get-company-funding-leadmagic`]}getInputRequirement(){return io(this.payload.config)}getRawOutputFields(){return{[Qa.name]:this.catalogOutput(Qa),[$a.name]:this.catalogOutput($a),[to.name]:this.catalogOutput(to),[no.name]:this.catalogOutput(no),[eo.name]:this.catalogOutput(eo)}}getConnectionsRequirements(){return[{provider:`leadmagic`,rateLimitRatio:1,rateLimitOperation:`leadmagic_company_funding`,allowManagedConnection:!0}]}},so=ro,co={pipeId:Ya,basePipe:G(Ya),label:`Funding history`,executionMode:`single`,categories:[`company_data`],lifecycle:null,description:`Information on funding rounds, acquisition, competitors, and investors.`,tags:[V.FINANCIAL_DATA],docPath:K(Ya),billableOperations:ao,inputFieldMode:`static`,outputFieldMode:`static`,allowedUserConnectionProviders:[`leadmagic`],managedProviders:[`leadmagic`],deprecatedProviders:[],defaultInputRequirement:io(null),defaultPayload:{pipe_id:Ya,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:``}}}}},lo=v(`company_name`),uo=v(`company_profile_url`),fo=v(`company_domain`),po=v(`cleaned_company_name`),mo=`company:identity@3`,ho=r.object({pipe_id:r.literal(mo),run_if:C(),connector:E(),config:r.object({input_fields:B(r.object({[lo.name]:D({fieldName:lo.name})})),output_fields:z(r.object({[uo.name]:A({fieldName:uo.name}),[po.name]:A({fieldName:po.name}),[fo.name]:A({fieldName:fo.name})}))}).optional()}),go=e=>H(q(lo,e)),_o={"pipe0-get-company-identity":{allowManagedConnection:!0,credits:.3,mode:`always`,provider:`pipe0`}},vo=class extends W{pipeId=mo;payload;payloadSchema=ho;billableOperations=_o;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[`pipe0-get-company-identity`]}getInputRequirement(){return go(this.payload.config)}getRawOutputFields(){return{[uo.name]:this.catalogOutput(uo),[fo.name]:this.catalogOutput(fo),[po.name]:this.catalogOutput(po)}}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}]}},yo=ho,bo={pipeId:mo,inputFieldMode:`static`,outputFieldMode:`static`,basePipe:G(mo),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:[V.WEBSITE,V.LINKEDIN],docPath:K(mo),billableOperations:_o,allowedUserConnectionProviders:[],managedProviders:[`pipe0`],deprecatedProviders:[],defaultInputRequirement:go(null),defaultPayload:{pipe_id:mo,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}}}}},xo=v(`company_domain`),So=v(`companyenrich_matches`),Co=`company:lookalikes:companyenrich@2`,wo=r.object({pipe_id:r.literal(Co),run_if:C(),connector:T(),config:r.object({limit:ra({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:B(r.object({[xo.name]:D({fieldName:xo.name})})),output_fields:z(r.object({[So.name]:A({fieldName:So.name})}))}).optional()}),To=e=>H(q(xo,e)),Eo={companyenrich_lookalike_result:{allowManagedConnection:!0,credits:.2,mode:`onSuccess`,note:`One billing event per result.`,provider:`companyenrich`}},Do=class extends W{pipeId=Co;payload;payloadSchema=wo;billableOperations=Eo;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`companyenrich`]}estimateBillableOperations(){return[,,,,,].fill(`companyenrich_lookalike_result`)}getInputRequirement(){return To(this.payload.config)}getRawOutputFields(){return{[So.name]:this.catalogOutput(So)}}getConnectionsRequirements(){return[{provider:`companyenrich`,rateLimitRatio:1,rateLimitOperation:`company_enrich_generic`,allowManagedConnection:!0}]}},Oo=wo,ko={pipeId:Co,inputFieldMode:`static`,outputFieldMode:`static`,basePipe:G(Co),label:`Find company lookalikes`,executionMode:`single`,categories:[`company_data`],lifecycle:null,description:`Find companies similar to the company you provide as input.`,tags:[V.COMPANY_PROFILES],docPath:K(Co),billableOperations:Eo,allowedUserConnectionProviders:[`companyenrich`],managedProviders:[`companyenrich`],deprecatedProviders:[],defaultInputRequirement:To(null),defaultPayload:{pipe_id:Co,connector:null,run_if:null,config:{limit:20,input_fields:{company_domain:{alias:``}},output_fields:{companyenrich_matches:{alias:``,enabled:!0}}}}},Ao=v(`company_domain`),jo=v(`crustdata_companyenrich_match`),Mo=`company:match:crustdata@2`,No=r.object({pipe_id:r.literal(Mo),run_if:C(),connector:T(),config:r.object({input_fields:B(r.object({[Ao.name]:D({fieldName:Ao.name})})),output_fields:z(r.object({[jo.name]:A({fieldName:jo.name})}))}).optional()}),Po=e=>H(q(Ao,e)),Fo={crustdata_company_enrich:{allowManagedConnection:!0,credits:2,mode:`onSuccess`,provider:`crustdata`}},Io=class extends W{pipeId=Mo;payload;payloadSchema=No;billableOperations=Fo;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`crustdata`]}estimateBillableOperations(){return[`crustdata_company_enrich`]}getInputRequirement(){return Po(this.payload.config)}getRawOutputFields(){return{[jo.name]:this.catalogOutput(jo)}}getConnectionsRequirements(){return[{provider:`crustdata`,rateLimitRatio:1,rateLimitOperation:`crustdata_company_enrich`,allowManagedConnection:!0}]}},Lo=No,Ro={pipeId:Mo,inputFieldMode:`static`,outputFieldMode:`static`,basePipe:G(Mo),label:`Company match`,executionMode:`single`,categories:[`company_data`],lifecycle:null,description:`Company data like headcount distribution, LinkedIn URLs etc. via the Crustdata API.`,tags:[V.WEBSITE,V.LINKEDIN],docPath:K(Mo),billableOperations:Fo,allowedUserConnectionProviders:[`crustdata`],managedProviders:[`crustdata`],deprecatedProviders:[],defaultInputRequirement:Po(null),defaultPayload:{pipe_id:Mo,connector:null,run_if:null,config:{input_fields:{company_domain:{alias:``}},output_fields:{crustdata_companyenrich_match:{alias:``,enabled:!0}}}}},zo=v(`company_domain`),Bo=v(`company_name`),Vo=v(`company_profile_url`),Ho=v(`logodev_describe_match`),Uo=v(`logo_url`),Wo=`company:match:logodev@2`,Go=r.object({pipe_id:r.literal(Wo),run_if:C(),connector:T(),config:r.object({input_fields:B(r.object({[zo.name]:D({fieldName:zo.name})})),output_fields:z(r.object({[Vo.name]:A({fieldName:Vo.name}),[Uo.name]:A({fieldName:Uo.name}),[Bo.name]:A({fieldName:Bo.name}),[Ho.name]:A({fieldName:Ho.name})}))}).optional()}),Ko=e=>H(q(zo,e)),qo={"logodev-company-describe":{allowManagedConnection:!0,credits:.1,mode:`onSuccess`,provider:`logodev`}},Jo=class extends W{pipeId=Wo;payload;payloadSchema=Go;billableOperations=qo;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`logodev`]}estimateBillableOperations(){return[`logodev-company-describe`]}getInputRequirement(){return Ko(this.payload.config)}getRawOutputFields(){return{[Vo.name]:this.catalogOutput(Vo),[Bo.name]:this.catalogOutput(Bo),[Uo.name]:this.catalogOutput(Uo),[Ho.name]:this.catalogOutput(Ho)}}getConnectionsRequirements(){return[{provider:`logodev`,rateLimitRatio:1,rateLimitOperation:`logodev_describe`,allowManagedConnection:!0}]}},Yo=Go,Xo={pipeId:Wo,inputFieldMode:`static`,outputFieldMode:`static`,basePipe:G(Wo),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:[V.WEBSITE,V.LINKEDIN],docPath:K(Wo),billableOperations:qo,allowedUserConnectionProviders:[`logodev`],managedProviders:[`logodev`],deprecatedProviders:[],defaultInputRequirement:Ko(null),defaultPayload:{pipe_id:Wo,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}}}}},Zo=`company:newssummary:domain@1`,Qo=v(`company_news_summary`),$o=v(`company_domain`),es=r.object({pipe_id:r.literal(Zo),run_if:C(),connector:T(),config:r.object({input_fields:B(r.object({[$o.name]:D({fieldName:$o.name})})),output_fields:z(r.object({[Qo.name]:A({fieldName:Qo.name})}))}).optional()}),ts=e=>H(q($o,e)),ns={"pipe0-get-company-news-summary":{allowManagedConnection:!0,credits:1,mode:`always`,provider:`pipe0`}},rs=class extends W{pipeId=Zo;payloadSchema=es;billableOperations=ns;payload;constructor(e){super(),this.payload=e}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[`pipe0-get-company-news-summary`]}getInputRequirement(){return ts(this.payload.config)}getRawOutputFields(){return{[Qo.name]:this.catalogOutput(Qo)}}getConnectionsRequirements(){return[{provider:`perplexity`,rateLimitRatio:1,rateLimitOperation:`perplexity_generic`,allowManagedConnection:!0}]}},is=es,as={pipeId:Zo,basePipe:G(Zo),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:[V.NEWS],docPath:K(Zo),billableOperations:ns,allowedUserConnectionProviders:[],managedProviders:[`pipe0`],deprecatedProviders:[],defaultInputRequirement:ts(null),defaultPayload:{pipe_id:Zo,run_if:null,connector:null,config:{input_fields:{company_domain:{alias:``}},output_fields:{company_news_summary:{alias:``,enabled:!0}}}}},os=v(`company_domain`),ss=v(`company_profile_url`),cs=v(`company_description`),ls=v(`company_industry`),us=v(`company_region`),ds=v(`headcount`),fs=v(`estimated_revenue`),ps=v(`founded_year`),ms=v(`company_name`),hs=`company:overview@3`,gs=r.object({pipe_id:r.literal(hs),run_if:C(),connector:E(),config:r.object({input_fields:B(r.object({[os.name]:D({fieldName:os.name}),[ss.name]:D({fieldName:ss.name})})),output_fields:z(r.object({[cs.name]:A({fieldName:cs.name}),[ls.name]:A({fieldName:ls.name}),[us.name]:A({fieldName:us.name}),[ds.name]:A({fieldName:ds.name}),[fs.name]:A({fieldName:fs.name}),[ps.name]:A({fieldName:ps.name}),[ms.name]:A({fieldName:ms.name})}))}).optional()}),_s=e=>U(q(os,e),q(ss,e)),vs={"pipe0-get-company-overview":{provider:`pipe0`,allowManagedConnection:!0,credits:1,mode:`always`}},ys=class extends W{pipeId=hs;payloadSchema=gs;billableOperations=vs;payload;constructor(e){super(),this.payload=e}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[`pipe0-get-company-overview`]}getInputRequirement(){return _s(this.payload.config)}getRawOutputFields(){return{[cs.name]:this.catalogOutput(cs),[ls.name]:this.catalogOutput(ls),[us.name]:this.catalogOutput(us),[ds.name]:this.catalogOutput(ds),[fs.name]:this.catalogOutput(fs),[ps.name]:this.catalogOutput(ps),[ms.name]:this.catalogOutput(ms)}}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}]}},bs=gs,xs={pipeId:hs,basePipe:G(hs),inputFieldMode:`static`,outputFieldMode:`static`,label:`Company overview`,executionMode:`mix`,categories:[`company_data`],lifecycle:null,description:`Business description, industry, and financial information.`,docPath:K(hs),tags:[V.WEBSITE,V.LINKEDIN,V.FINANCIAL_DATA],allowedUserConnectionProviders:[],managedProviders:[`pipe0`],deprecatedProviders:[],billableOperations:vs,defaultInputRequirement:_s(null),defaultPayload:{pipe_id:hs,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}}}}},Ss=v(`company_domain`),Cs=v(`technology_list`),ws=v(`spending_trend`),Ts=v(`technology_match_builtwith`),Es=`company:techstack:builtwith@2`,Ds=r.object({pipe_id:r.literal(Es),connector:T(),run_if:C(),config:r.object({input_fields:B(r.object({[Ss.name]:D({fieldName:Ss.name})})),output_fields:z(r.object({[Cs.name]:A({fieldName:Cs.name}),[Ts.name]:A({fieldName:Ts.name}),[ws.name]:A({fieldName:ws.name})}))}).optional()}),Os=e=>H(q(Ss,e)),ks={"builtwith-get-technology-stack":{provider:`builtwith`,allowManagedConnection:!0,credits:2,mode:`always`}},As=class extends W{pipeId=Es;payload;payloadSchema=Ds;billableOperations=ks;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`builtwith`]}estimateBillableOperations(){return[`builtwith-get-technology-stack`]}getInputRequirement(){return Os(this.payload.config)}getRawOutputFields(){return{[Cs.name]:this.catalogOutput(Cs),[Ts.name]:this.catalogOutput(Ts),[ws.name]:this.catalogOutput(ws)}}getConnectionsRequirements(){return[{provider:`builtwith`,rateLimitRatio:1,rateLimitOperation:`builtwith_generic`,allowManagedConnection:!0}]}},js=Ds,Ms={pipeId:Es,basePipe:G(Es),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:[V.WEBSITE],inputFieldMode:`static`,outputFieldMode:`static`,docPath:K(Es),billableOperations:ks,defaultInputRequirement:Os(null),defaultPayload:{pipe_id:Es,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}}}}},Ns={MissingSecretError:class extends Error{constructor({providerName:e}){super(`Missing secret for ${e}`)}},HttpError:class extends Error{constructor({msg:e}){super(e)}}},Ps=`contact:create:resend@1`,Fs={"contact-create-resend":{allowManagedConnection:!1,provider:`resend`,credits:null,mode:null}},Is=v(`email`),Ls=v(`name`),Rs=v(`resend_contact_id`),zs=[{label:`Demo subscribers`,value:`sandbox-segment-1`},{label:`Demo product updates`,value:`sandbox-segment-2`}],Bs=r.object({pipe_id:r.literal(Ps),connector:Vi(),run_if:C(),config:r.object({segment_id:oa({sectionKey:`general`,required:!0,label:`Segment`,groupPath:`config.general`,path:`config.segment_id`,info:``,enabledIf:cn(`resend`),optionsDef:{requires:{connection:`resend`},options:async({query:e,secret:t,environment:n})=>{if(n===`sandbox`)return zs;if(!t)throw new Ns.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 Ns.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:k({sectionKey:`general`,defaultValue:!0,label:`Add as subscribed`,groupPath:`config.general`,path:`config.add_as_subscribed`,info:``}),input_fields:B(r.object({[Ls.name]:D({fieldName:Ls.name}),[Is.name]:D({fieldName:Is.name})})),output_fields:z(r.object({[Rs.name]:A({fieldName:Rs.name})}))})}),Vs=e=>xa(H(q(Is,e)),H(q(Ls,e))),Hs=class extends W{pipeId=Ps;payload;payloadSchema=Bs;billableOperations=Fs;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`resend`]}estimateBillableOperations(){return[`contact-create-resend`]}getInputRequirement(){return Vs(this.payload.config)}getRawOutputFields(){return{[Rs.name]:this.catalogOutput(Rs)}}getConnectionsRequirements(){return[{provider:`resend`,rateLimitRatio:1,rateLimitOperation:`resend_generic`,allowManagedConnection:!1}]}},Us=Bs,Ws={pipeId:Ps,basePipe:G(Ps),label:`Create Contact`,executionMode:`single`,categories:[`actions`],lifecycle:null,description:`Create a contact inside a Resend audience.`,tags:[V.EMAIL],docPath:K(Ps),billableOperations:Fs,inputFieldMode:`static`,outputFieldMode:`static`,allowedUserConnectionProviders:[`resend`],defaultInputRequirement:Vs(null),managedProviders:[],deprecatedProviders:[],defaultPayload:{pipe_id:Ps,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}}}}},Gs=`company:funding:leadmagic@1`,Ks=v(`company_name`),qs=v(`company_website_url`),Js=v(`funding_history`),Ys=v(`funding_total_usd`),Xs=v(`leadmagic_competitor_list`),Zs=v(`leadmagic_acquisition_history`),Qs=v(`leadmagic_company_news_list`),$s=r.object({pipe_id:r.literal(Gs),connector:T(),run_if:C(),config:r.object({input_fields:B(r.object({[Ks.name]:D({fieldName:Ks.name}),[qs.name]:D({fieldName:qs.name})})),output_fields:z(r.object({[Js.name]:A({fieldName:Js.name}),[Ys.name]:A({fieldName:Ys.name}),[Xs.name]:A({fieldName:Xs.name}),[Zs.name]:A({fieldName:Zs.name}),[Qs.name]:A({fieldName:Qs.name})}))}).optional()}),ec=e=>U(q(Ks,e),q(qs,e)),tc={"get-company-funding-leadmagic":{provider:`leadmagic`,allowManagedConnection:!0,credits:2,mode:`onSuccess`}},nc=class extends W{pipeId=Gs;payload;payloadSchema=$s;billableOperations=tc;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`leadmagic`]}estimateBillableOperations(){return[`get-company-funding-leadmagic`]}getInputRequirement(){return ec(this.payload.config)}getRawOutputFields(){return{[Js.name]:this.catalogOutput(Js),[Ys.name]:this.catalogOutput(Ys)}}getConnectionsRequirements(){return[{provider:`leadmagic`,rateLimitRatio:1,rateLimitOperation:`leadmagic_company_funding`,allowManagedConnection:!0}]}},rc=$s,ic={pipeId:Gs,basePipe:G(Gs),label:`Funding history`,executionMode:`single`,categories:[`deprecated`],lifecycle:{deprecatedOn:`2026-06-30`,replacedBy:`company:funding:leadmagic@2`},description:`Information on funding rounds, acquisition, competitors, and investors.`,tags:[V.FINANCIAL_DATA],docPath:K(Gs),billableOperations:tc,inputFieldMode:`static`,outputFieldMode:`static`,allowedUserConnectionProviders:[`leadmagic`],managedProviders:[`leadmagic`],deprecatedProviders:[],defaultInputRequirement:ec(null),defaultPayload:{pipe_id:Gs,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:``}}}}},ac=v(`company_name`),oc=v(`company_social_url`),sc=v(`company_website_url`),cc=v(`cleaned_company_name`),lc=`company:identity@1`,uc=r.object({pipe_id:r.literal(lc),run_if:C(),connector:E(),config:r.object({input_fields:B(r.object({[ac.name]:D({fieldName:ac.name})})),output_fields:z(r.object({[oc.name]:A({fieldName:oc.name}),[cc.name]:A({fieldName:cc.name}),[sc.name]:A({fieldName:sc.name})}))}).optional()}),dc=e=>H(q(ac,e)),fc={"pipe0-get-company-identity":{allowManagedConnection:!0,credits:.3,mode:`always`,provider:`pipe0`}},pc=class extends W{pipeId=lc;payload;payloadSchema=uc;billableOperations=fc;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[`pipe0-get-company-identity`]}getInputRequirement(){return dc(this.payload.config)}getRawOutputFields(){return{[oc.name]:this.catalogOutput(oc),[sc.name]:this.catalogOutput(sc),[cc.name]:this.catalogOutput(cc)}}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}]}},mc=uc,hc={pipeId:lc,inputFieldMode:`static`,outputFieldMode:`static`,basePipe:G(lc),label:`Find company identity`,executionMode:`mix`,categories:[`deprecated`],lifecycle:{deprecatedOn:`2025-11-01`,replacedBy:`company:identity@2`},description:`Find any company's website URL, LinkedIn profile URL, and cleaned name.`,tags:[V.WEBSITE,V.LINKEDIN],docPath:`/resources/pipe-catalog/company:identity/1`,billableOperations:fc,allowedUserConnectionProviders:[],managedProviders:[`pipe0`],deprecatedProviders:[],defaultInputRequirement:dc(null),defaultPayload:{pipe_id:lc,connector:null,run_if:null,config:{input_fields:{company_name:{alias:``}},output_fields:{cleaned_company_name:{alias:``,enabled:!0},company_social_url:{alias:``,enabled:!0},company_website_url:{alias:``,enabled:!0}}}}},gc=v(`company_name`),_c=v(`company_profile_url`),vc=v(`company_website_url`),yc=v(`cleaned_company_name`),bc=`company:identity@2`,xc=r.object({pipe_id:r.literal(bc),run_if:C(),connector:E(),config:r.object({input_fields:B(r.object({[gc.name]:D({fieldName:gc.name})})),output_fields:z(r.object({[_c.name]:A({fieldName:_c.name}),[yc.name]:A({fieldName:yc.name}),[vc.name]:A({fieldName:vc.name})}))}).optional()}),Sc=e=>H(q(gc,e)),Cc={"pipe0-get-company-identity":{allowManagedConnection:!0,credits:.3,mode:`always`,provider:`pipe0`}},wc=class extends W{pipeId=bc;payload;payloadSchema=xc;billableOperations=Cc;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[`pipe0-get-company-identity`]}getInputRequirement(){return Sc(this.payload.config)}getRawOutputFields(){return{[_c.name]:this.catalogOutput(_c),[vc.name]:this.catalogOutput(vc),[yc.name]:this.catalogOutput(yc)}}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}]}},Tc=xc,Ec={pipeId:bc,inputFieldMode:`static`,outputFieldMode:`static`,basePipe:G(bc),label:`Find company identity`,executionMode:`mix`,categories:[`deprecated`],lifecycle:{deprecatedOn:`2026-06-30`,replacedBy:`company:identity@3`},description:`Find any company's website URL, LinkedIn profile URL, and cleaned name.`,tags:[V.WEBSITE,V.LINKEDIN],docPath:K(bc),billableOperations:Cc,allowedUserConnectionProviders:[],managedProviders:[`pipe0`],deprecatedProviders:[],defaultInputRequirement:Sc(null),defaultPayload:{pipe_id:bc,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}}}}},Dc=v(`company_website_url`),Oc=v(`companyenrich_matches`),kc=`company:lookalikes:companyenrich@1`,Ac=r.object({pipe_id:r.literal(kc),run_if:C(),connector:T(),config:r.object({limit:ra({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:B(r.object({[Dc.name]:D({fieldName:Dc.name})})),output_fields:z(r.object({[Oc.name]:A({fieldName:Oc.name})}))}).optional()}),jc=e=>H(q(Dc,e)),Mc={companyenrich_lookalike_result:{allowManagedConnection:!0,credits:.2,mode:`onSuccess`,note:`One billing event per result.`,provider:`companyenrich`}},Nc=class extends W{pipeId=kc;payload;payloadSchema=Ac;billableOperations=Mc;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`companyenrich`]}estimateBillableOperations(){return[,,,,,].fill(`companyenrich_lookalike_result`)}getInputRequirement(){return jc(this.payload.config)}getRawOutputFields(){return{[Oc.name]:this.catalogOutput(Oc)}}getConnectionsRequirements(){return[{provider:`companyenrich`,rateLimitRatio:1,rateLimitOperation:`company_enrich_generic`,allowManagedConnection:!0}]}},Pc=Ac,Fc={pipeId:kc,inputFieldMode:`static`,outputFieldMode:`static`,basePipe:G(kc),label:`Find company lookalikes`,executionMode:`single`,categories:[`deprecated`],lifecycle:{deprecatedOn:`2026-06-30`,replacedBy:`company:lookalikes:companyenrich@2`},description:`Find companies similar to the company you provide as input.`,tags:[V.COMPANY_PROFILES],docPath:K(kc),billableOperations:Mc,allowedUserConnectionProviders:[`companyenrich`],managedProviders:[`companyenrich`],deprecatedProviders:[],defaultInputRequirement:jc(null),defaultPayload:{pipe_id:kc,connector:null,run_if:null,config:{limit:20,input_fields:{company_website_url:{alias:``}},output_fields:{companyenrich_matches:{alias:``,enabled:!0}}}}},Ic=v(`company_website_url`),Lc=v(`crustdata_companyenrich_match`),Rc=`company:match:crustdata@1`,zc=r.object({pipe_id:r.literal(Rc),run_if:C(),connector:T(),config:r.object({input_fields:B(r.object({[Ic.name]:D({fieldName:Ic.name})})),output_fields:z(r.object({[Lc.name]:A({fieldName:Lc.name})}))}).optional()}),Bc=e=>H(q(Ic,e)),Vc={crustdata_company_enrich:{allowManagedConnection:!0,credits:2,mode:`onSuccess`,provider:`crustdata`}},Hc=class extends W{pipeId=Rc;payload;payloadSchema=zc;billableOperations=Vc;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`crustdata`]}estimateBillableOperations(){return[`crustdata_company_enrich`]}getInputRequirement(){return Bc(this.payload.config)}getRawOutputFields(){return{[Lc.name]:this.catalogOutput(Lc)}}getConnectionsRequirements(){return[{provider:`crustdata`,rateLimitRatio:1,rateLimitOperation:`crustdata_company_enrich`,allowManagedConnection:!0}]}},Uc=zc,Wc={pipeId:Rc,inputFieldMode:`static`,outputFieldMode:`static`,basePipe:G(Rc),label:`Company match`,executionMode:`single`,categories:[`deprecated`],lifecycle:{deprecatedOn:`2026-06-30`,replacedBy:`company:match:crustdata@2`},description:`Company data like headcount distribution, LinkedIn URLs etc. via the Crustdata API.`,tags:[V.WEBSITE,V.LINKEDIN],docPath:K(Rc),billableOperations:Vc,allowedUserConnectionProviders:[`crustdata`],managedProviders:[`crustdata`],deprecatedProviders:[],defaultInputRequirement:Bc(null),defaultPayload:{pipe_id:Rc,connector:null,run_if:null,config:{input_fields:{company_website_url:{alias:``}},output_fields:{crustdata_companyenrich_match:{alias:``,enabled:!0}}}}},Gc=v(`company_website_url`),Kc=v(`company_name`),qc=v(`company_profile_url`),Jc=v(`logodev_describe_match`),Yc=v(`logo_url`),Xc=`company:match:logodev@1`,Zc=r.object({pipe_id:r.literal(Xc),run_if:C(),connector:T(),config:r.object({input_fields:B(r.object({[Gc.name]:D({fieldName:Gc.name})})),output_fields:z(r.object({[qc.name]:A({fieldName:qc.name}),[Yc.name]:A({fieldName:Yc.name}),[Kc.name]:A({fieldName:Kc.name}),[Jc.name]:A({fieldName:Jc.name})}))}).optional()}),Qc=e=>H(q(Gc,e)),$c={"logodev-company-describe":{allowManagedConnection:!0,credits:.1,mode:`onSuccess`,provider:`logodev`}},el=class extends W{pipeId=Xc;payload;payloadSchema=Zc;billableOperations=$c;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`logodev`]}estimateBillableOperations(){return[`logodev-company-describe`]}getInputRequirement(){return Qc(this.payload.config)}getRawOutputFields(){return{[qc.name]:this.catalogOutput(qc),[Kc.name]:this.catalogOutput(Kc),[Yc.name]:this.catalogOutput(Yc),[Jc.name]:this.catalogOutput(Jc)}}getConnectionsRequirements(){return[{provider:`logodev`,rateLimitRatio:1,rateLimitOperation:`logodev_describe`,allowManagedConnection:!0}]}},tl=Zc,nl={pipeId:Xc,inputFieldMode:`static`,outputFieldMode:`static`,basePipe:G(Xc),label:`Company match`,executionMode:`single`,categories:[`deprecated`],lifecycle:{deprecatedOn:`2026-06-30`,replacedBy:`company:match:logodev@2`},description:`Find brand data like logos, colors, and social links via the Logo.dev API.`,tags:[V.WEBSITE,V.LINKEDIN],docPath:K(Xc),billableOperations:$c,allowedUserConnectionProviders:[`logodev`],managedProviders:[`logodev`],deprecatedProviders:[],defaultInputRequirement:Qc(null),defaultPayload:{pipe_id:Xc,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}}}}},rl=`company:newssummary:website@1`,il=v(`company_news_summary`),al=v(`company_website_url`),ol=r.object({pipe_id:r.literal(rl),run_if:C(),connector:T(),config:r.object({input_fields:B(r.object({[al.name]:D({fieldName:al.name})})),output_fields:z(r.object({[il.name]:A({fieldName:il.name})}))}).optional()}),sl=e=>H(q(al,e)),cl={"pipe0-get-company-news-summary":{allowManagedConnection:!0,credits:1,mode:`always`,provider:`pipe0`}},ll=class extends W{pipeId=rl;payloadSchema=ol;billableOperations=cl;payload;constructor(e){super(),this.payload=e}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[`pipe0-get-company-news-summary`]}getInputRequirement(){return sl(this.payload.config)}getRawOutputFields(){return{[il.name]:this.catalogOutput(il)}}getConnectionsRequirements(){return[{provider:`perplexity`,rateLimitRatio:1,rateLimitOperation:`perplexity_generic`,allowManagedConnection:!0}]}},ul=ol,dl={pipeId:rl,basePipe:G(rl),inputFieldMode:`static`,outputFieldMode:`static`,label:`Company news`,executionMode:`single`,categories:[`deprecated`],lifecycle:{deprecatedOn:`2026-06-30`,replacedBy:`company:newssummary:domain@1`},description:`Find recent company news by performing a search and scrape.`,tags:[V.NEWS],docPath:K(rl),billableOperations:cl,allowedUserConnectionProviders:[],managedProviders:[`pipe0`],deprecatedProviders:[],defaultInputRequirement:sl(null),defaultPayload:{pipe_id:rl,run_if:null,connector:null,config:{input_fields:{company_website_url:{alias:``}},output_fields:{company_news_summary:{alias:``,enabled:!0}}}}},fl=v(`company_website_url`),pl=v(`company_social_url`),ml=v(`company_description`),hl=v(`company_industry`),gl=v(`company_region`),_l=v(`headcount`),vl=v(`estimated_revenue`),yl=v(`founded_year`),bl=`company:overview@1`,xl=r.object({pipe_id:r.literal(bl),run_if:C(),connector:E(),config:r.object({input_fields:B(r.object({[fl.name]:D({fieldName:fl.name}),[pl.name]:D({fieldName:pl.name})})),output_fields:z(r.object({[ml.name]:A({fieldName:ml.name}),[hl.name]:A({fieldName:hl.name}),[gl.name]:A({fieldName:gl.name}),[_l.name]:A({fieldName:_l.name}),[vl.name]:A({fieldName:vl.name}),[yl.name]:A({fieldName:yl.name})}))}).optional()}),Sl=e=>U(q(fl,e),q(pl,e)),Cl={"pipe0-get-company-overview":{provider:`pipe0`,allowManagedConnection:!0,credits:1,mode:`always`}},wl=class extends W{pipeId=bl;payloadSchema=xl;billableOperations=Cl;payload;constructor(e){super(),this.payload=e}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[`pipe0-get-company-overview`]}getInputRequirement(){return Sl(this.payload.config)}getRawOutputFields(){return{[ml.name]:this.catalogOutput(ml),[hl.name]:this.catalogOutput(hl),[gl.name]:this.catalogOutput(gl),[_l.name]:this.catalogOutput(_l),[vl.name]:this.catalogOutput(vl),[yl.name]:this.catalogOutput(yl)}}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}]}},Tl=xl,El={pipeId:bl,basePipe:G(bl),inputFieldMode:`static`,outputFieldMode:`static`,label:`Company overview`,executionMode:`mix`,categories:[`deprecated`],lifecycle:{deprecatedOn:`2025-11-01`,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:[V.WEBSITE,V.LINKEDIN,V.FINANCIAL_DATA,V.DEPRECATED],allowedUserConnectionProviders:[],managedProviders:[`pipe0`],deprecatedProviders:[],billableOperations:Cl,defaultInputRequirement:Sl(null),defaultPayload:{pipe_id:bl,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}}}}},Dl=v(`company_website_url`),Ol=v(`company_profile_url`),kl=v(`company_description`),Al=v(`company_industry`),jl=v(`company_region`),Ml=v(`headcount`),Nl=v(`estimated_revenue`),Pl=v(`founded_year`),Fl=v(`company_name`),Il=`company:overview@2`,Ll=r.object({pipe_id:r.literal(Il),run_if:C(),connector:E(),config:r.object({input_fields:B(r.object({[Dl.name]:D({fieldName:Dl.name}),[Ol.name]:D({fieldName:Ol.name})})),output_fields:z(r.object({[kl.name]:A({fieldName:kl.name}),[Al.name]:A({fieldName:Al.name}),[jl.name]:A({fieldName:jl.name}),[Ml.name]:A({fieldName:Ml.name}),[Nl.name]:A({fieldName:Nl.name}),[Pl.name]:A({fieldName:Pl.name}),[Fl.name]:A({fieldName:Fl.name})}))}).optional()}),Rl=e=>U(q(Dl,e),q(Ol,e)),zl={"pipe0-get-company-overview":{provider:`pipe0`,allowManagedConnection:!0,credits:1,mode:`always`}},Bl=class extends W{pipeId=Il;payloadSchema=Ll;billableOperations=zl;payload;constructor(e){super(),this.payload=e}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[`pipe0-get-company-overview`]}getInputRequirement(){return Rl(this.payload.config)}getRawOutputFields(){return{[kl.name]:this.catalogOutput(kl),[Al.name]:this.catalogOutput(Al),[jl.name]:this.catalogOutput(jl),[Ml.name]:this.catalogOutput(Ml),[Nl.name]:this.catalogOutput(Nl),[Pl.name]:this.catalogOutput(Pl),[Fl.name]:this.catalogOutput(Fl)}}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}]}},Vl=Ll,Hl={pipeId:Il,basePipe:G(Il),inputFieldMode:`static`,outputFieldMode:`static`,label:`Company overview`,executionMode:`mix`,categories:[`deprecated`],lifecycle:{deprecatedOn:`2026-06-30`,replacedBy:`company:overview@3`},description:`Business description, industry, and financial information.`,docPath:K(Il),tags:[V.WEBSITE,V.LINKEDIN,V.FINANCIAL_DATA],allowedUserConnectionProviders:[],managedProviders:[`pipe0`],deprecatedProviders:[],billableOperations:zl,defaultInputRequirement:Rl(null),defaultPayload:{pipe_id:Il,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}}}}},Ul=v(`company_website_url`),Wl=v(`technology_list`),Gl=v(`spending_trend`),Kl=v(`technology_match_builtwith`),ql=`company:techstack:builtwith@1`,Jl=r.object({pipe_id:r.literal(ql),connector:T(),run_if:C(),config:r.object({input_fields:B(r.object({[Ul.name]:D({fieldName:Ul.name})})),output_fields:z(r.object({[Wl.name]:A({fieldName:Wl.name}),[Kl.name]:A({fieldName:Kl.name}),[Gl.name]:A({fieldName:Gl.name})}))}).optional()}),Yl=e=>H(q(Ul,e)),Xl={"builtwith-get-technology-stack":{provider:`builtwith`,allowManagedConnection:!0,credits:2,mode:`always`}},Zl=class extends W{pipeId=ql;payload;payloadSchema=Jl;billableOperations=Xl;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`builtwith`]}estimateBillableOperations(){return[`builtwith-get-technology-stack`]}getInputRequirement(){return Yl(this.payload.config)}getRawOutputFields(){return{[Wl.name]:this.catalogOutput(Wl),[Kl.name]:this.catalogOutput(Kl),[Gl.name]:this.catalogOutput(Gl)}}getConnectionsRequirements(){return[{provider:`builtwith`,rateLimitRatio:1,rateLimitOperation:`builtwith_generic`,allowManagedConnection:!0}]}},Ql=Jl,$l={pipeId:ql,basePipe:G(ql),managedProviders:[`builtwith`],deprecatedProviders:[],allowedUserConnectionProviders:[`builtwith`],label:`Tech stack`,executionMode:`single`,categories:[`deprecated`],lifecycle:{deprecatedOn:`2026-06-30`,replacedBy:`company:techstack:builtwith@2`},description:`All technologies and frameworks powering a given website.`,tags:[V.WEBSITE],inputFieldMode:`static`,outputFieldMode:`static`,docPath:K(ql),billableOperations:Xl,defaultInputRequirement:Yl(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}}}}},eu=`company:websiteurl:email@1`,tu=v(`company_website_url`),nu=v(`email`),ru=r.object({pipe_id:r.literal(eu),run_if:C(),connector:E(),config:r.object({input_fields:B(r.object({[nu.name]:D({fieldName:nu.name})})),output_fields:z(r.object({[tu.name]:A({fieldName:tu.name})}))}).optional()}),iu=e=>H(q(nu,e)),au={"pipe0-company-domain-from-work-email":{credits:0,allowManagedConnection:!0,mode:`always`,provider:`pipe0`}},ou=class extends W{pipeId=eu;payload;payloadSchema=ru;billableOperations=au;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[`pipe0-company-domain-from-work-email`]}getInputRequirement(){return iu(this.payload.config)}getRawOutputFields(){return{[tu.name]:this.catalogOutput(tu)}}getConnectionsRequirements(){return[{provider:`pipe0`,rateLimitRatio:1,rateLimitOperation:`pipe0_logic`,allowManagedConnection:!0}]}},su=ru,cu={pipeId:eu,basePipe:G(eu),inputFieldMode:`static`,outputFieldMode:`static`,label:`Website from email`,executionMode:`single`,categories:[`deprecated`],lifecycle:{deprecatedOn:`2026-06-30`,replacedBy:`company:domain:workemail@1`},description:`Extract the company website URL from a work email address.`,tags:[V.EMAIL,V.WORK_EMAIL,V.WEBSITE],docPath:K(eu),allowedUserConnectionProviders:[],managedProviders:[`pipe0`],deprecatedProviders:[],billableOperations:au,defaultInputRequirement:iu(null),defaultPayload:{pipe_id:eu,connector:null,run_if:null,config:{input_fields:{email:{alias:``}},output_fields:{company_website_url:{alias:``,enabled:!0}}}}},lu=`people:email:iswork@1`,uu=v(`is_work_email`),du=v(`email`),fu=r.object({pipe_id:r.literal(lu),run_if:C(),connector:E(),config:r.object({input_fields:B(r.object({[du.name]:D({fieldName:du.name})})),output_fields:z(r.object({[uu.name]:A({fieldName:uu.name})}))}).optional()}),pu=e=>H(q(du,e)),mu={"pipe0-is-workemail-check":{provider:`pipe0`,allowManagedConnection:!0,credits:0,mode:`always`}},hu=class extends W{pipeId=lu;payload;payloadSchema=fu;billableOperations=mu;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[`pipe0-is-workemail-check`]}getInputRequirement(){return pu(this.payload.config)}getRawOutputFields(){return{[uu.name]:this.catalogOutput(uu)}}getConnectionsRequirements(){return[{provider:`pipe0`,rateLimitRatio:1,rateLimitOperation:`pipe0_logic`,allowManagedConnection:!0}]}},gu=fu,_u={pipeId:lu,label:`Work email checker`,executionMode:`single`,categories:[`deprecated`],lifecycle:{deprecatedOn:`2026-06-30`,replacedBy:`email:iswork@1`},description:`Check if a given email address is personal or professional.`,tags:[V.EMAIL,V.WORK_EMAIL],docPath:K(lu),billableOperations:mu,basePipe:G(lu),allowedUserConnectionProviders:[],inputFieldMode:`static`,outputFieldMode:`static`,managedProviders:[`pipe0`],deprecatedProviders:[],defaultInputRequirement:pu(null),defaultPayload:{pipe_id:lu,run_if:null,connector:null,config:{input_fields:{email:{alias:``}},output_fields:{is_work_email:{alias:``,enabled:!0}}}}},vu=`people:email:validate:zerobounce@1`,yu=v(`work_email`),bu=v(`is_email_valid`),xu=r.object({pipe_id:r.literal(vu),connector:T(),run_if:C(),config:r.object({input_fields:B(r.object({[yu.name]:D({fieldName:yu.name})})),output_fields:z(r.object({[bu.name]:A({fieldName:bu.name})}))}).optional()}),Su=e=>H(q(yu,e)),Cu={"zerobounce-validate-email":{provider:`zerobounce`,allowManagedConnection:!0,credits:.3,mode:`always`}},wu=class extends W{pipeId=vu;payload;payloadSchema=xu;billableOperations=Cu;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`zerobounce`]}estimateBillableOperations(){return[`zerobounce-validate-email`]}getInputRequirement(){return Su(this.payload.config)}getRawOutputFields(){return{[bu.name]:this.catalogOutput(bu)}}getConnectionsRequirements(){return[{provider:`zerobounce`,rateLimitRatio:1,rateLimitOperation:`zerobounce_generic`,allowManagedConnection:!0}]}},Tu=xu,Eu={pipeId:vu,basePipe:G(vu),label:`Validate email`,executionMode:`single`,categories:[`people_data`],lifecycle:{deprecatedOn:`2025-11-01`,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:[V.EMAIL],docPath:`/resources/pipe-catalog/people:email:validate:zerobounce/1`,billableOperations:Cu,inputFieldMode:`static`,outputFieldMode:`static`,allowedUserConnectionProviders:[`zerobounce`],managedProviders:[`zerobounce`],deprecatedProviders:[],defaultInputRequirement:Su(null),defaultPayload:{pipe_id:vu,connector:null,run_if:null,config:{input_fields:{work_email:{alias:``}},output_fields:{is_email_valid:{alias:``,enabled:!0}}}}},Du=`people:email:validate:zerobounce@2`,Ou=v(`email`),ku=v(`zerobounce_validation_status`),Au=v(`zerobounce_validation_match`),ju=r.object({pipe_id:r.literal(Du),connector:T(),run_if:C(),config:r.object({input_fields:B(r.object({[Ou.name]:D({fieldName:Ou.name})})),output_fields:z(r.object({[Au.name]:A({fieldName:Au.name}),[ku.name]:A({fieldName:ku.name})}))}).optional()}),Mu=e=>H(q(Ou,e)),Nu={"zerobounce-validate-email":{provider:`zerobounce`,allowManagedConnection:!0,credits:.3,mode:`always`}},Pu=class extends W{pipeId=Du;payload;payloadSchema=ju;billableOperations=Nu;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`zerobounce`]}estimateBillableOperations(){return[`zerobounce-validate-email`]}getInputRequirement(){return Mu(this.payload.config)}getRawOutputFields(){return{[ku.name]:this.catalogOutput(ku),[Au.name]:this.catalogOutput(Au)}}getConnectionsRequirements(){return[{provider:`zerobounce`,rateLimitRatio:1,rateLimitOperation:`zerobounce_generic`,allowManagedConnection:!0}]}},Fu=ju,Iu={pipeId:Du,basePipe:G(Du),label:`Validate email`,executionMode:`single`,categories:[`deprecated`],lifecycle:{deprecatedOn:`2026-06-30`,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:[V.EMAIL],docPath:K(Du),billableOperations:Nu,inputFieldMode:`static`,outputFieldMode:`static`,allowedUserConnectionProviders:[`zerobounce`],managedProviders:[`zerobounce`],deprecatedProviders:[],defaultInputRequirement:Mu(null),defaultPayload:{pipe_id:Du,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 Lu(e){return(e.widgets||{}).display_value?.label}function Ru(e){console.dir(e,{depth:100})}function zu(e){return typeof e==`object`&&e?JSON.stringify(e):e}function J(e){return e===0?1:e===1?.3:e===2?.2:.1}function Bu(e){if(typeof e!=`object`||!e||Array.isArray(e))return e;let t={};return Object.keys(e).sort().forEach(n=>{t[n]=Bu(e[n])}),t}const Vu={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 Y(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 Hu=`people:identity:email:waterfall@1`,Uu=v(`email`),Wu=v(`company_website_url`),Gu=v(`name`),Ku=v(`job_title`),qu=v(`profile_url`),Ju=v(`company_profile_url`),Yu=v(`company_name`),Xu=[`findymail`,`hunter`,`crustdata`],Zu=[{provider:`findymail`},{provider:`hunter`},{provider:`crustdata`}],Qu=r.object({pipe_id:r.literal(Hu),connector:T(),run_if:C(),config:r.object({providers:O({availableProviders:Xu,defaultProviders:Zu,sectionKey:`general`}),input_fields:B(r.object({[Uu.name]:D({fieldName:Uu.name})})),output_fields:z(r.object({[Gu.name]:A({fieldName:Gu.name}),[qu.name]:A({fieldName:qu.name}),[Ku.name]:A({fieldName:Ku.name}),[Wu.name]:A({fieldName:Wu.name}),[Yu.name]:A({fieldName:Yu.name}),[Ju.name]:A({fieldName:Ju.name})}))}).optional()}),$u=e=>H(q(Uu,e)),ed={"hunter-reverse-email-lookup":{provider:`hunter`,allowManagedConnection:!0,credits:2,mode:`onSuccess`},"findymail-reverse-email-lookup":{provider:`findymail`,allowManagedConnection:!0,credits:2,mode:`onSuccess`},"crustdata-reverse-email-lookup":{provider:`crustdata`,allowManagedConnection:!0,credits:5,mode:`onSuccess`}},td=class extends W{pipeId=Hu;payload;payloadSchema=Qu;billableOperations=ed;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return this.payload.config?.providers.map(e=>e.provider)||[]}estimateBillableOperations(){return this.getProviderNames().map(e=>Y(e,this.billableOperations).billableOperation)}getInputRequirement(){return $u(this.payload.config)}getRawOutputFields(){return{[Gu.name]:this.catalogOutput(Gu,{isPrimaryOutput:!0}),[qu.name]:this.catalogOutput(qu,{isPrimaryOutput:!0}),[Ku.name]:this.catalogOutput(Ku,{isPrimaryOutput:!0}),[Yu.name]:this.catalogOutput(Yu,{isPrimaryOutput:!0}),[Ju.name]:this.catalogOutput(Ju,{isPrimaryOutput:!0}),[Wu.name]:this.catalogOutput(Wu,{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:J(n),rateLimitOperation:e[t.provider],allowManagedConnection:!0}))}},nd=Qu,rd={pipeId:Hu,basePipe:G(Hu),label:`Person identity from email`,executionMode:`waterfall`,categories:[`deprecated`],lifecycle:{deprecatedOn:`2026-06-30`,replacedBy:`person:identity:email:waterfall@1`},description:`Find identity of a person from their email address.`,tags:[V.EMAIL,V.PEOPLE_PROFILES],docPath:K(Hu),managedProviders:Xu,deprecatedProviders:[],allowedUserConnectionProviders:Xu,inputFieldMode:`static`,outputFieldMode:`static`,billableOperations:ed,defaultInputRequirement:$u(null),defaultPayload:{pipe_id:Hu,connector:null,run_if:null,config:{providers:Zu,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}}}}},id=`people:match:role:waterfall@1`,ad=v(`company_website_url`),od=v(`role_finder_match`),sd=[`leadmagic`],cd=[{provider:`leadmagic`}],ld=r.object({pipe_id:r.literal(id),run_if:C(),connector:T(),config:r.object({providers:O({sectionKey:`general`,defaultProviders:cd,availableProviders:sd}),roles:Ki({sectionKey:`general`,groupPath:`config.general`,label:`Roles`,path:`config.roles`,info:`Company roles to include`,maxItems:3,minItems:1}),input_fields:B(r.object({[ad.name]:D({fieldName:ad.name})})),output_fields:z(r.object({[od.name]:A({fieldName:od.name})}))})}),ud=e=>U(q(ad,e)),dd={"leadmagic-find-role":{provider:`leadmagic`,allowManagedConnection:!0,credits:1,mode:`onSuccess`}},fd=class extends W{pipeId=id;payload;payloadSchema=ld;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=>Y(e,this.billableOperations).billableOperation)}getInputRequirement(){return ud(this.payload.config)}getRawOutputFields(){return{[od.name]:this.catalogOutput(od,{isPrimaryOutput:!0})}}getConnectionsRequirements(){let e={leadmagic:`leadmagic_role_finder`};return(this.payload.config?.providers||[]).map((t,n)=>({provider:t.provider,rateLimitRatio:J(n),rateLimitOperation:e[t.provider],allowManagedConnection:!0}))}},pd=ld,md={pipeId:id,basePipe:G(id),managedProviders:sd,deprecatedProviders:[],allowedUserConnectionProviders:sd,label:`Role finder`,executionMode:`waterfall`,categories:[`deprecated`],lifecycle:{deprecatedOn:`2026-06-30`,replacedBy:`person:match:role:waterfall@1`},description:`Find role matches for a given companies like "CEO" or "CFO".`,tags:[V.PEOPLE_PROFILES],docPath:K(id),billableOperations:dd,inputFieldMode:`static`,outputFieldMode:`static`,defaultInputRequirement:ud(null),defaultPayload:{pipe_id:id,run_if:null,connector:null,config:{roles:[],providers:cd,input_fields:{company_website_url:{alias:``}},output_fields:{role_finder_match:{alias:``,enabled:!0}}}}},hd=`people:mobilenumber:professionalprofile:waterfall@1`,gd=v(`professional_profile_url`),_d=v(`mobile_number`),vd=[`leadmagic`,`prospeo`],yd=[{provider:`leadmagic`},{provider:`prospeo`}],bd=r.object({pipe_id:r.literal(hd),run_if:C(),connector:T(),config:r.object({providers:O({sectionKey:`general`,defaultProviders:yd,availableProviders:vd}),input_fields:B(r.object({[gd.name]:D({fieldName:gd.name})})),output_fields:z(r.object({[_d.name]:A({fieldName:_d.name})}))}).optional()}),xd=e=>H(q(gd,e)),Sd={"leadmagic-mobile-from-profile":{provider:`leadmagic`,allowManagedConnection:!0,credits:2,mode:`onSuccess`},"prospeo-mobile-from-profile":{provider:`prospeo`,allowManagedConnection:!0,credits:5,mode:`onSuccess`}},Cd=class extends W{pipeId=hd;payload;payloadSchema=bd;billableOperations=Sd;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return this.payload.config?.providers.map(e=>e.provider)||[]}estimateBillableOperations(){return this.getProviderNames().map(e=>Y(e,this.billableOperations).billableOperation)}getInputRequirement(){return xd(this.payload.config)}getRawOutputFields(){return{[_d.name]:this.catalogOutput(_d)}}getConnectionsRequirements(){let e={leadmagic:`leadmagic_email_lookup`,prospeo:`prospeo_phone_number_lookup`};return(this.payload.config?.providers||[]).map((t,n)=>({provider:t.provider,rateLimitRatio:J(n),rateLimitOperation:e[t.provider],allowManagedConnection:!0}))}},wd=bd,Td={pipeId:hd,basePipe:G(hd),label:`Mobile number from LinkedIn profile`,executionMode:`waterfall`,categories:[`deprecated`],lifecycle:{deprecatedOn:`2025-11-01`,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:[V.PHONE,V.WATERFALL],billableOperations:Sd,defaultInputRequirement:xd(null),inputFieldMode:`static`,outputFieldMode:`static`,managedProviders:vd,deprecatedProviders:[],allowedUserConnectionProviders:vd,defaultPayload:{pipe_id:hd,connector:null,run_if:null,config:{providers:yd,input_fields:{professional_profile_url:{alias:``}},output_fields:{mobile_number:{alias:``,enabled:!0}}}}},Ed=`people:mobilenumber:workemail:waterfall@1`,Dd=v(`work_email`),Od=v(`mobile_number`),kd=[`leadmagic`],Ad=[{provider:`leadmagic`}],jd=r.object({pipe_id:r.literal(Ed),run_if:C(),connector:T(),config:r.object({providers:O({sectionKey:`general`,availableProviders:kd,defaultProviders:Ad}),input_fields:B(r.object({[Dd.name]:D({fieldName:Dd.name})})),output_fields:z(r.object({[Od.name]:A({fieldName:Od.name})}))}).optional()}),Md=e=>H(q(Dd,e)),Nd={"leadmagic-mobile-from-workemail":{provider:`leadmagic`,allowManagedConnection:!0,credits:2,mode:`onSuccess`}},Pd=class extends W{pipeId=Ed;payload;payloadSchema=jd;billableOperations=Nd;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return this.payload.config?.providers?.map(e=>e.provider)||[]}estimateBillableOperations(){return this.getProviderNames().map(e=>Y(e,this.billableOperations).billableOperation)}getInputRequirement(){return Md(this.payload.config)}getRawOutputFields(){return{[Od.name]:this.catalogOutput(Od)}}getConnectionsRequirements(){let e={leadmagic:`leadmagic_email_lookup`};return(this.payload.config?.providers||[]).map((t,n)=>({provider:t.provider,rateLimitRatio:J(n),rateLimitOperation:e[t.provider],allowManagedConnection:!0}))}},Fd=jd,Id={pipeId:Ed,basePipe:G(Ed),label:`Mobile number from email`,executionMode:`waterfall`,categories:[`deprecated`],lifecycle:{deprecatedOn:`2025-11-01`,replacedBy:`people:phone:workemail:waterfall@1`},description:`Find a mobile phone number for a prospect.`,tags:[V.PHONE,V.WATERFALL],docPath:`/resources/pipe-catalog/people:mobilenumber:workemail:waterfall/1`,billableOperations:Nd,defaultInputRequirement:Md(null),inputFieldMode:`static`,outputFieldMode:`static`,allowedUserConnectionProviders:kd,managedProviders:kd,deprecatedProviders:[],defaultPayload:{pipe_id:Ed,connector:null,run_if:null,config:{providers:Ad,input_fields:{work_email:{alias:``}},output_fields:{mobile_number:{alias:``,enabled:!0}}}}},Ld=`people:name:split@1`,Rd=v(`name`),zd=v(`first_name`),Bd=v(`last_name`),Vd=r.object({pipe_id:r.literal(Ld),connector:E(),run_if:C(),config:r.object({input_fields:B(r.object({[Rd.name]:D({fieldName:Rd.name})})),output_fields:z(r.object({[zd.name]:A({fieldName:zd.name}),[Bd.name]:A({fieldName:Bd.name})}))}).optional()}),Hd=e=>H(q(Rd,e)),Ud={"pipe0-split-name":{provider:`pipe0`,allowManagedConnection:!0,credits:0,mode:`always`}},Wd=class extends W{pipeId=Ld;payload;payloadSchema=Vd;billableOperations=Ud;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[`pipe0-split-name`]}getInputRequirement(){return Hd(this.payload.config)}getRawOutputFields(){return{[zd.name]:this.catalogOutput(zd),[Bd.name]:this.catalogOutput(Bd)}}getConnectionsRequirements(){return[{provider:`pipe0`,rateLimitRatio:1,rateLimitOperation:`pipe0_logic`,allowManagedConnection:!0}]}},Gd=Vd,Kd={pipeId:Ld,basePipe:G(Ld),label:`Split name`,executionMode:`single`,categories:[`deprecated`],lifecycle:{deprecatedOn:`2026-06-30`,replacedBy:`person:name:split@1`},description:`Split a full name into first and last name.`,tags:[V.NAMES],docPath:K(Ld),billableOperations:Ud,inputFieldMode:`static`,outputFieldMode:`static`,defaultInputRequirement:Hd(null),allowedUserConnectionProviders:[],managedProviders:[`pipe0`],deprecatedProviders:[],defaultPayload:{pipe_id:Ld,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`,Jd=v(`profile_url`),Yd=v(`personal_email`),Xd=v(`alternate_personal_emails`),Zd=[`clado`,`leadmagic`,`mixrank`],Qd=[{provider:`leadmagic`},{provider:`mixrank`}],$d=r.object({pipe_id:r.literal(qd),run_if:C(),connector:T(),config:r.object({providers:O({sectionKey:`general`,availableProviders:Zd,defaultProviders:Qd}),input_fields:B(r.object({[Jd.name]:D({fieldName:Jd.name})})),output_fields:z(r.object({[Yd.name]:A({fieldName:Yd.name}),[Xd.name]:A({fieldName:Xd.name})}))}).optional()}),ef=e=>H(q(Jd,e)),tf={"clado-personal-email-from-profile":{provider:`clado`,allowManagedConnection:!0,credits:2,mode:`always`},"leadmagic-personal-email-from-profile":{provider:`leadmagic`,allowManagedConnection:!0,credits:1,mode:`onSuccess`},"mixrank-personal-email-reveal":{provider:`mixrank`,allowManagedConnection:!0,credits:1,mode:`onSuccess`}},nf=class extends W{pipeId=qd;payload;payloadSchema=$d;billableOperations=tf;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return this.payload.config?.providers.map(e=>e.provider)||[]}estimateBillableOperations(){return this.getProviderNames().map(e=>Y(e,this.billableOperations).billableOperation)}getInputRequirement(){return ef(this.payload.config)}getRawOutputFields(){return{[Yd.name]:this.catalogOutput(Yd,{isPrimaryOutput:!0}),[Xd.name]:this.catalogOutput(Xd)}}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:J(n),rateLimitOperation:e[t.provider],allowManagedConnection:!0}))}},rf=$d,af={pipeId:qd,basePipe:G(qd),allowedUserConnectionProviders:Zd,managedProviders:Zd,deprecatedProviders:[`clado`],label:`Find personal email`,executionMode:`waterfall`,categories:[`deprecated`],lifecycle:{deprecatedOn:`2026-06-30`,replacedBy:`person:personalemail:profileurl:waterfall@1`},description:`Find the personal email address of a prospect by using a professional profile URL as input.`,tags:[V.EMAIL,V.PERSONAL_EMAIL],docPath:K(qd),billableOperations:tf,defaultInputRequirement:ef(null),inputFieldMode:`static`,outputFieldMode:`static`,defaultPayload:{pipe_id:qd,connector:null,run_if:null,config:{providers:Qd,input_fields:{profile_url:{alias:``}},output_fields:{personal_email:{alias:``,enabled:!0},alternate_personal_emails:{alias:``,enabled:!0}}}}},of=`people:phone:profile:waterfall@1`,sf=v(`profile_url`),cf=v(`mobile`),lf=[`leadmagic`,`prospeo`,`amplemarket`,`findymail`,`clado`],uf=[{provider:`leadmagic`},{provider:`prospeo`},{provider:`amplemarket`},{provider:`findymail`}],df=r.object({pipe_id:r.literal(of),run_if:C(),connector:T(),config:r.object({providers:O({sectionKey:`general`,defaultProviders:uf,availableProviders:lf}),input_fields:B(r.object({[sf.name]:D({fieldName:sf.name})})),output_fields:z(r.object({[cf.name]:A({fieldName:cf.name})}))}).optional()}),ff=e=>H(q(sf,e)),pf={"leadmagic-mobile-from-profile":{provider:`leadmagic`,allowManagedConnection:!0,credits:2,mode:`onSuccess`},"clado-mobile-from-profile":{provider:`clado`,allowManagedConnection:!0,credits:5,mode:`onSuccess`},"prospeo-mobile-from-profile":{provider:`prospeo`,allowManagedConnection:!0,credits:5,mode:`onSuccess`},"findymail-mobile-from-profile":{provider:`findymail`,allowManagedConnection:!0,credits:6,mode:`onSuccess`},"amplemarket-phone-lookup":{provider:`amplemarket`,allowManagedConnection:!0,credits:4,mode:`onSuccess`}},mf=class extends W{pipeId=of;payload;payloadSchema=df;billableOperations=pf;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return this.payload.config?.providers.map(e=>e.provider)||[]}estimateBillableOperations(){return this.getProviderNames().map(e=>Y(e,this.billableOperations).billableOperation)}getInputRequirement(){return ff(this.payload.config)}getRawOutputFields(){return{[cf.name]:this.catalogOutput(cf,{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:J(n),rateLimitOperation:e[t.provider],allowManagedConnection:!0}))}},hf=df,gf={pipeId:of,basePipe:G(of),label:`Mobile number from LinkedIn profile`,executionMode:`waterfall`,categories:[`deprecated`],lifecycle:{deprecatedOn:`2026-06-30`,replacedBy:`person:mobile:profileurl:waterfall@1`},description:`Find a mobile phone number for any prospect using multiple data providers in a waterfall motion.`,docPath:K(of),tags:[V.PHONE,V.WATERFALL],billableOperations:pf,defaultInputRequirement:ff(null),inputFieldMode:`static`,outputFieldMode:`static`,managedProviders:lf,allowedUserConnectionProviders:lf,deprecatedProviders:[`clado`],defaultPayload:{pipe_id:of,connector:null,run_if:null,config:{providers:uf,input_fields:{profile_url:{alias:``}},output_fields:{mobile:{alias:``,enabled:!0}}}}},_f=`people:phone:workemail:waterfall@1`,vf=v(`work_email`),yf=v(`mobile`),bf=[`leadmagic`,`amplemarket`],xf=[{provider:`leadmagic`},{provider:`amplemarket`}],Sf=r.object({pipe_id:r.literal(_f),run_if:C(),connector:T(),config:r.object({providers:O({sectionKey:`general`,availableProviders:bf,defaultProviders:xf}),input_fields:B(r.object({[vf.name]:D({fieldName:vf.name})})),output_fields:z(r.object({[yf.name]:A({fieldName:yf.name})}))}).optional()}),Cf=e=>H(q(vf,e)),wf={"leadmagic-mobile-from-workemail":{provider:`leadmagic`,allowManagedConnection:!0,credits:2,mode:`onSuccess`},"amplemarket-email-lookup":{provider:`amplemarket`,allowManagedConnection:!0,credits:4,mode:`onSuccess`}},Tf=class extends W{pipeId=_f;payload;payloadSchema=Sf;billableOperations=wf;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return this.payload.config?.providers.map(e=>e.provider)||[]}estimateBillableOperations(){return this.getProviderNames().map(e=>Y(e,this.billableOperations).billableOperation)}getInputRequirement(){return Cf(this.payload.config)}getRawOutputFields(){return{[yf.name]:this.catalogOutput(yf,{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:J(n),rateLimitOperation:e[t.provider],allowManagedConnection:!0}))}},Ef=Sf,Df={pipeId:_f,basePipe:G(_f),label:`Mobile number from email`,executionMode:`waterfall`,categories:[`deprecated`],lifecycle:{deprecatedOn:`2026-06-30`,replacedBy:`person:mobile:workemail:waterfall@1`},description:`Find a mobile phone number for a prospect.`,tags:[V.PHONE,V.WATERFALL],docPath:K(_f),billableOperations:wf,defaultInputRequirement:Cf(null),inputFieldMode:`static`,outputFieldMode:`static`,allowedUserConnectionProviders:bf,managedProviders:bf,deprecatedProviders:[],defaultPayload:{pipe_id:_f,connector:null,run_if:null,config:{providers:xf,input_fields:{work_email:{alias:``}},output_fields:{mobile:{alias:``,enabled:!0}}}}},Of=`people:professionalprofile:waterfall@1`,kf=v(`professional_profile`),Af=v(`professional_profile_url`),jf=[`prospeo`,`icypeas`],Mf=[{provider:`prospeo`},{provider:`icypeas`}],Nf=r.object({pipe_id:r.literal(Of),run_if:C(),connector:T(),config:r.object({providers:O({sectionKey:`general`,availableProviders:jf,defaultProviders:Mf}),input_fields:B(r.object({[Af.name]:D({fieldName:Af.name})})),output_fields:z(r.object({[kf.name]:A({fieldName:kf.name})}))}).optional()}),Pf=e=>H(q(Af,e)),Ff={"icypeas-get-professional-profile":{provider:`icypeas`,credits:1,mode:`onSuccess`,allowManagedConnection:!0},"prospeo-get-professional-profile":{provider:`prospeo`,credits:1,mode:`onSuccess`,allowManagedConnection:!0}},If=class extends W{pipeId=Of;payload;payloadSchema=Nf;billableOperations=Ff;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return this.payload.config?.providers.map(e=>e.provider)||[]}estimateBillableOperations(){return this.getProviderNames().map(e=>Y(e,this.billableOperations).billableOperation)}getInputRequirement(){return Pf(this.payload.config)}getRawOutputFields(){return{[kf.name]:this.catalogOutput(kf)}}getConnectionsRequirements(){let e={icypeas:`icypeas_scrape_profile`,prospeo:`prospeo_social_profile_lookup`};return(this.payload.config?.providers||[]).map((t,n)=>({provider:t.provider,rateLimitRatio:J(n),rateLimitOperation:e[t.provider],allowManagedConnection:!0}))}},Lf=Nf,Rf={pipeId:Of,basePipe:G(Of),label:`Full LinkedIn profile`,executionMode:`waterfall`,categories:[`deprecated`],lifecycle:{deprecatedOn:`2025-11-01`,replacedBy:`people:profile:waterfall@1`},description:`Find a JSON representation of a LinkedIn profile.`,docPath:`/resources/pipe-catalog/people:professionalprofile:waterfall/1`,tags:[V.LINKEDIN,V.WATERFALL],managedProviders:jf,deprecatedProviders:[],allowedUserConnectionProviders:jf,inputFieldMode:`static`,outputFieldMode:`static`,billableOperations:Ff,defaultInputRequirement:Pf(null),defaultPayload:{pipe_id:Of,run_if:null,connector:null,config:{providers:Mf,input_fields:{professional_profile_url:{alias:``}},output_fields:{professional_profile:{alias:``,enabled:!0}}}}},zf=`people:professionalprofileurl:email:waterfall@1`,Bf=v(`email`),Vf=v(`work_email`),Hf=v(`professional_profile_url`),Uf=[`leadmagic`],Wf=[{provider:`leadmagic`}],Gf=r.object({pipe_id:r.literal(zf),run_if:C(),connector:T(),config:r.object({providers:O({sectionKey:`general`,defaultProviders:Wf,availableProviders:Uf}),input_fields:B(r.object({[Bf.name]:D({fieldName:Bf.name}),[Vf.name]:D({fieldName:Vf.name})})),output_fields:z(r.object({[Hf.name]:A({fieldName:Hf.name})}))}).optional()}),Kf=e=>U(q(Bf,e),q(Vf,e)),qf={"leadmagic-profile-url-from-email":{provider:`leadmagic`,allowManagedConnection:!0,credits:3.5,mode:`onSuccess`}},Jf=class extends W{pipeId=zf;payload;payloadSchema=Gf;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=>Y(e,this.billableOperations).billableOperation)}getInputRequirement(){return Kf(this.payload.config)}getRawOutputFields(){return{[Hf.name]:this.catalogOutput(Hf)}}getConnectionsRequirements(){let e={leadmagic:`leadmagic_email_to_b2b_profile`};return(this.payload.config?.providers||[]).map((t,n)=>({provider:t.provider,rateLimitRatio:J(n),rateLimitOperation:e[t.provider],allowManagedConnection:!0}))}},Yf=Gf,Xf={pipeId:zf,basePipe:G(zf),managedProviders:Uf,deprecatedProviders:[],allowedUserConnectionProviders:Uf,label:`LinkedIn URL from email`,executionMode:`waterfall`,categories:[`deprecated`],lifecycle:{deprecatedOn:`2025-11-01`,replacedBy:`people:profileurl:email:waterfall@1`},description:`Find the URL for a prospect's LinkedIn profile from their personal or professional email address.`,tags:[V.LINKEDIN],docPath:`/resources/pipe-catalog/people:professionalprofileurl:email:waterfall/1`,billableOperations:qf,inputFieldMode:`static`,outputFieldMode:`static`,defaultInputRequirement:Kf(null),defaultPayload:{pipe_id:zf,run_if:null,connector:null,config:{providers:Wf,input_fields:{email:{alias:``},work_email:{alias:``}},output_fields:{professional_profile_url:{alias:``,enabled:!0}}}}},Zf=`people:professionalprofileurl:name@1`,Qf=v(`name`),$f=v(`company_name`),ep=v(`location_hint`),tp=v(`professional_profile_url`),np=r.object({pipe_id:r.literal(Zf),connector:E(),run_if:C(),config:r.object({input_fields:B(r.object({[Qf.name]:D({fieldName:Qf.name}),[$f.name]:D({fieldName:$f.name}),[ep.name]:D({fieldName:ep.name})})),output_fields:z(r.object({[tp.name]:A({fieldName:tp.name})}))}).optional()}),rp=e=>xa(H(q(Qf,e)),H(q($f,e)),Sa(q(ep,e))),ip={"pipe0-get-profileurl-from-name":{provider:`pipe0`,allowManagedConnection:!0,credits:.6,mode:`always`}},ap=class extends W{pipeId=Zf;payload;payloadSchema=np;billableOperations=ip;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[`pipe0-get-profileurl-from-name`]}getInputRequirement(){return rp(this.payload.config)}getRawOutputFields(){return{[tp.name]:this.catalogOutput(tp)}}getConnectionsRequirements(){return[{provider:`serper`,rateLimitRatio:1,rateLimitOperation:`serper_search`,allowManagedConnection:!0}]}},op=np,sp={pipeId:Zf,basePipe:G(Zf),label:`LinkedIn URL from name`,executionMode:`single`,categories:[`deprecated`],lifecycle:{deprecatedOn:`2025-11-01`,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:[V.LINKEDIN],billableOperations:ip,defaultInputRequirement:rp(null),inputFieldMode:`static`,outputFieldMode:`static`,defaultPayload:{pipe_id:Zf,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}}}}},cp=`people:profile:waterfall@1`,lp=v(`profile`),up=v(`profile_url`),dp=[`prospeo`,`icypeas`,`amplemarket`,`clado`],fp=[{provider:`amplemarket`},{provider:`prospeo`},{provider:`icypeas`}],pp=r.object({pipe_id:r.literal(cp),run_if:C(),connector:T(),config:r.object({providers:O({sectionKey:`general`,availableProviders:dp,defaultProviders:fp}),input_fields:B(r.object({[up.name]:D({fieldName:up.name})})),output_fields:z(r.object({[lp.name]:A({fieldName:lp.name})}))}).optional()}),mp=e=>H(q(up,e)),hp={"icypeas-get-professional-profile":{provider:`icypeas`,credits:1,mode:`onSuccess`,allowManagedConnection:!0},"prospeo-get-professional-profile":{provider:`prospeo`,credits:1,mode:`onSuccess`,allowManagedConnection:!0},"clado-get-professional-profile":{provider:`clado`,credits:1,mode:`onSuccess`,allowManagedConnection:!0},"amplemarket-person-match":{provider:`amplemarket`,credits:1,mode:`onSuccess`,allowManagedConnection:!0}},gp=class extends W{pipeId=cp;payload;payloadSchema=pp;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=>Y(e,this.billableOperations).billableOperation)}getInputRequirement(){return mp(this.payload.config)}getRawOutputFields(){return{[lp.name]:this.catalogOutput(lp,{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:J(n),rateLimitOperation:e[t.provider],allowManagedConnection:!0}))}},_p=pp,vp={pipeId:cp,basePipe:G(cp),label:`Full LinkedIn profile`,executionMode:`waterfall`,categories:[`deprecated`],lifecycle:{deprecatedOn:`2026-06-30`,replacedBy:`person:profile:waterfall@1`},description:`Find a JSON representation of a LinkedIn profile.`,docPath:K(cp),tags:[V.LINKEDIN,V.WATERFALL],managedProviders:dp,deprecatedProviders:[`clado`],allowedUserConnectionProviders:dp,inputFieldMode:`static`,outputFieldMode:`static`,billableOperations:hp,defaultInputRequirement:mp(null),defaultPayload:{pipe_id:cp,run_if:null,connector:null,config:{providers:fp,input_fields:{profile_url:{alias:``}},output_fields:{profile:{alias:``,enabled:!0}}}}},yp=v(`work_email`),bp=v(`crustdata_person_match`),xp=v(`crustdata_profile_match_score`),Sp=`people:profile:workemail:crustdata@1`,Cp=r.object({pipe_id:r.literal(Sp),run_if:C(),connector:T(),config:r.object({input_fields:B(r.object({[yp.name]:D({fieldName:yp.name})})),output_fields:z(r.object({[bp.name]:A({fieldName:bp.name}),[xp.name]:A({fieldName:xp.name})}))}).optional()}),wp=e=>H(q(yp,e)),Tp={"crustdata-profile-from-workemail":{allowManagedConnection:!0,credits:5,mode:`onSuccess`,provider:`crustdata`}},Ep=class extends W{pipeId=Sp;payload;payloadSchema=Cp;billableOperations=Tp;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`crustdata`]}estimateBillableOperations(){return[`crustdata-profile-from-workemail`]}getInputRequirement(){return wp(this.payload.config)}getRawOutputFields(){return{[bp.name]:this.catalogOutput(bp),[xp.name]:this.catalogOutput(xp)}}getConnectionsRequirements(){return[{provider:`crustdata`,rateLimitRatio:1,rateLimitOperation:`crustdata_realtime_person_enrich`,allowManagedConnection:!0}]}},Dp=Cp,Op={pipeId:Sp,inputFieldMode:`static`,outputFieldMode:`static`,basePipe:G(Sp),label:`Profile from work email`,executionMode:`single`,categories:[`deprecated`],lifecycle:{deprecatedOn:`2026-06-30`,replacedBy:`person:profile:workemail:crustdata@1`},description:`Find person profile by their work email address.`,tags:[V.EMAIL,V.PEOPLE_PROFILES],docPath:K(Sp),billableOperations:Tp,allowedUserConnectionProviders:[`crustdata`],managedProviders:[`crustdata`],deprecatedProviders:[],defaultInputRequirement:wp(null),defaultPayload:{pipe_id:Sp,connector:null,run_if:null,config:{input_fields:{work_email:{alias:``}},output_fields:{crustdata_person_match:{alias:``,enabled:!0},crustdata_profile_match_score:{alias:``,enabled:!0}}}}},kp=`people:profileurl:email:waterfall@1`,Ap=v(`email`),jp=v(`work_email`),Mp=v(`profile_url`),Np=[`leadmagic`],Pp=[{provider:`leadmagic`}],Fp=r.object({pipe_id:r.literal(kp),run_if:C(),connector:T(),config:r.object({providers:O({sectionKey:`general`,defaultProviders:Pp,availableProviders:Np}),input_fields:B(r.object({[Ap.name]:D({fieldName:Ap.name}),[jp.name]:D({fieldName:jp.name})})),output_fields:z(r.object({[Mp.name]:A({fieldName:Mp.name})}))}).optional()}),Ip=e=>U(q(Ap,e),q(jp,e)),Lp={"leadmagic-profile-url-from-email":{provider:`leadmagic`,allowManagedConnection:!0,credits:3.5,mode:`onSuccess`}},Rp=class extends W{pipeId=kp;payload;payloadSchema=Fp;billableOperations=Lp;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return this.payload.config?.providers.map(e=>e.provider)||[]}estimateBillableOperations(){return this.getProviderNames().map(e=>Y(e,this.billableOperations).billableOperation)}getInputRequirement(){return Ip(this.payload.config)}getRawOutputFields(){return{[Mp.name]:this.catalogOutput(Mp,{isPrimaryOutput:!0})}}getConnectionsRequirements(){let e={leadmagic:`leadmagic_email_to_b2b_profile`};return(this.payload.config?.providers||[]).map((t,n)=>({provider:t.provider,rateLimitRatio:J(n),rateLimitOperation:e[t.provider],allowManagedConnection:!0}))}},zp=Fp,Bp={pipeId:kp,basePipe:G(kp),managedProviders:Np,deprecatedProviders:[],allowedUserConnectionProviders:Np,label:`LinkedIn URL from email`,executionMode:`waterfall`,categories:[`deprecated`],lifecycle:{deprecatedOn:`2026-06-30`,replacedBy:`person:profileurl:email:waterfall@1`},description:`Find the URL for a prospect's LinkedIn profile from their personal or professional email address.`,tags:[V.LINKEDIN],docPath:K(kp),billableOperations:Lp,inputFieldMode:`static`,outputFieldMode:`static`,defaultInputRequirement:Ip(null),defaultPayload:{pipe_id:kp,run_if:null,connector:null,config:{providers:Pp,input_fields:{email:{alias:``},work_email:{alias:``}},output_fields:{profile_url:{alias:``,enabled:!0}}}}},Vp=`people:validate:email:zerobounce@1`,Hp=v(`work_email`),Up=v(`ip_address`),Wp=v(`is_email_valid`),Gp=r.object({pipe_id:r.literal(Vp),connector:T(),run_if:C(),config:r.object({input_fields:B(r.object({[Hp.name]:D({fieldName:Hp.name}),[Up.name]:D({fieldName:Up.name})})),output_fields:z(r.object({[Wp.name]:A({fieldName:Wp.name})}))}).optional()}),Kp=e=>xa(H(q(Hp,e)),Sa(q(Up,e))),qp={"zerobounce-validate-email":{provider:`zerobounce`,allowManagedConnection:!0,credits:.3,mode:`always`}},Jp=class extends W{pipeId=Vp;payload;payloadSchema=Gp;billableOperations=qp;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`zerobounce`]}estimateBillableOperations(){return[`zerobounce-validate-email`]}getInputRequirement(){return Kp(this.payload.config)}getRawOutputFields(){return{[Wp.name]:this.catalogOutput(Wp)}}getConnectionsRequirements(){return[{provider:`zerobounce`,rateLimitRatio:1,rateLimitOperation:`zerobounce_generic`,allowManagedConnection:!0}]}},Yp=Gp,Xp={pipeId:Vp,basePipe:G(Vp),label:`Validate email`,executionMode:`single`,categories:[`deprecated`],lifecycle:{deprecatedOn:`2025-11-01`,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:[V.EMAIL],docPath:`/resources/pipe-catalog/people:validate:email:zerobounce/1`,billableOperations:qp,inputFieldMode:`static`,outputFieldMode:`static`,allowedUserConnectionProviders:[`zerobounce`],managedProviders:[`zerobounce`],deprecatedProviders:[],defaultInputRequirement:Kp(null),defaultPayload:{pipe_id:Vp,connector:null,run_if:null,config:{input_fields:{ip_address:{alias:``},work_email:{alias:``}},output_fields:{is_email_valid:{alias:``,enabled:!0}}}}},Zp=`people:workemail:profileurl:waterfall@1`,Qp=v(`profile_url`),$p=v(`work_email`),em=v(`email_validation_status`),tm=[`hunter`,`amplemarket`,`findymail`,`leadmagic`,`crustdata`,`clado`],nm=[`clado`],rm=[{provider:`hunter`},{provider:`amplemarket`},{provider:`leadmagic`},{provider:`findymail`},{provider:`crustdata`}],im=r.object({pipe_id:r.literal(Zp),connector:T(),run_if:C(),config:r.object({providers:O({availableProviders:tm,defaultProviders:rm,sectionKey:`general`}),allow_catch_all_emails:k({path:`config.allow_catch_all_emails`,defaultValue:!0,groupPath:`config.general`,sectionKey:`general`,info:``,label:`Allow catch-all emails`}),allow_risky_emails:k({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:B(r.object({[Qp.name]:D({fieldName:Qp.name})})),output_fields:z(r.object({[$p.name]:A({fieldName:$p.name}),[em.name]:A({fieldName:em.name})}))}).optional()}),am=e=>H(q(Qp,e)),om={"hunter-workemail-profileurl":{provider:`hunter`,allowManagedConnection:!0,credits:1,mode:`onSuccess`},"leadmagic-workemail-profileurl":{provider:`leadmagic`,allowManagedConnection:!0,credits:2,mode:`onSuccess`},"findymail-workemail-profileurl":{provider:`findymail`,allowManagedConnection:!0,credits:2,mode:`onSuccess`},"crustdata-workemail-profileurl":{provider:`crustdata`,allowManagedConnection:!0,credits:3,mode:`onSuccess`},"clado-workemail-profileurl":{provider:`clado`,allowManagedConnection:!0,credits:3.5,mode:`onSuccess`},"amplemarket-email-lookup":{provider:`amplemarket`,allowManagedConnection:!0,credits:2.5,mode:`onSuccess`}},sm=class extends W{pipeId=Zp;payload;payloadSchema=im;billableOperations=om;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return this.payload.config?.providers.map(e=>e.provider)||[]}estimateBillableOperations(){return this.getProviderNames().map(e=>Y(e,this.billableOperations).billableOperation)}getInputRequirement(){return am(this.payload.config)}getRawOutputFields(){return{[$p.name]:this.catalogOutput($p,{isPrimaryOutput:!0}),[em.name]:this.catalogOutput(em,{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:J(n),rateLimitOperation:e[t.provider],allowManagedConnection:!0}))}},cm=im,lm={pipeId:Zp,basePipe:G(Zp),label:`Work email from LinkedIn URL`,executionMode:`waterfall`,categories:[`deprecated`],lifecycle:{deprecatedOn:`2026-06-30`,replacedBy:`person:workemail:profileurl:waterfall@1`},description:`Find work email addresses from B2B profile.`,tags:[V.EMAIL,V.WORK_EMAIL,V.WATERFALL],docPath:K(Zp),managedProviders:tm,allowedUserConnectionProviders:tm,deprecatedProviders:nm,inputFieldMode:`static`,outputFieldMode:`static`,billableOperations:om,defaultInputRequirement:am(null),defaultPayload:{pipe_id:Zp,connector:null,run_if:null,config:{providers:rm,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}}}}},um=`people:workemail:waterfall@1`,dm=v(`name`),fm=v(`company_website_url`),pm=v(`company_name`),mm=v(`work_email`),hm=v(`email_validation_status`),gm=[`leadmagic`,`prospeo`,`amplemarket`,`hunter`,`icypeas`,`findymail`],_m=[{provider:`leadmagic`},{provider:`prospeo`},{provider:`amplemarket`},{provider:`hunter`},{provider:`icypeas`},{provider:`findymail`}],vm=r.object({pipe_id:r.literal(um),connector:T(),run_if:C(),config:r.object({providers:O({availableProviders:gm,defaultProviders:_m,sectionKey:`general`}),allow_catch_all_emails:k({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:k({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:B(r.object({[dm.name]:D({fieldName:dm.name}),[fm.name]:D({fieldName:fm.name}),[pm.name]:D({fieldName:pm.name})})),output_fields:z(r.object({[mm.name]:A({fieldName:mm.name}),[hm.name]:A({fieldName:hm.name})}))}).optional()}),ym=e=>xa(H(q(dm,e)),U(q(fm,e),q(pm,e))),bm={"leadmagic-get-work-email":{provider:`leadmagic`,allowManagedConnection:!0,credits:.5,mode:`onSuccess`},"icypeas-get-work-email":{provider:`icypeas`,allowManagedConnection:!0,credits:.5,mode:`onSuccess`},"prospeo-get-work-email":{provider:`prospeo`,allowManagedConnection:!0,credits:1,mode:`onSuccess`},"findymail-get-work-email":{provider:`findymail`,allowManagedConnection:!0,credits:1,mode:`onSuccess`},"hunter-get-work-email":{provider:`hunter`,allowManagedConnection:!0,credits:1,mode:`onSuccess`},"amplemarket-email-lookup":{provider:`amplemarket`,allowManagedConnection:!0,credits:2.5,mode:`onSuccess`}},xm=class extends W{pipeId=um;payload;payloadSchema=vm;billableOperations=bm;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return this.payload.config?.providers.map(e=>e.provider)||[]}estimateBillableOperations(){return this.getProviderNames().map(e=>Y(e,this.billableOperations).billableOperation)}getInputRequirement(){return ym(this.payload.config)}getRawOutputFields(){return{[mm.name]:this.catalogOutput(mm,{isPrimaryOutput:!0}),[hm.name]:this.catalogOutput(hm,{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:J(n),rateLimitOperation:e[t.provider],allowManagedConnection:!0}))}},Sm=vm,Cm={pipeId:um,basePipe:G(um),label:`Work email from name`,executionMode:`waterfall`,categories:[`deprecated`],lifecycle:{deprecatedOn:`2026-06-30`,replacedBy:`person:workemail:waterfall@1`},description:`Find work email addresses in a waterfall motion.`,tags:[V.EMAIL,V.WORK_EMAIL,V.WATERFALL],docPath:K(um),managedProviders:gm,deprecatedProviders:[],allowedUserConnectionProviders:gm,inputFieldMode:`static`,outputFieldMode:`static`,billableOperations:bm,defaultInputRequirement:ym(null),defaultPayload:{pipe_id:um,connector:null,run_if:null,config:{providers:_m,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}}}}},wm=`email:iswork@1`,Tm=v(`is_work_email`),Em=v(`email`),Dm=r.object({pipe_id:r.literal(wm),run_if:C(),connector:E(),config:r.object({input_fields:B(r.object({[Em.name]:D({fieldName:Em.name})})),output_fields:z(r.object({[Tm.name]:A({fieldName:Tm.name})}))}).optional()}),Om=e=>H(q(Em,e)),km={"pipe0-is-workemail-check":{provider:`pipe0`,allowManagedConnection:!0,credits:0,mode:`always`}},Am=class extends W{pipeId=wm;payload;payloadSchema=Dm;billableOperations=km;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[`pipe0-is-workemail-check`]}getInputRequirement(){return Om(this.payload.config)}getRawOutputFields(){return{[Tm.name]:this.catalogOutput(Tm)}}getConnectionsRequirements(){return[{provider:`pipe0`,rateLimitRatio:1,rateLimitOperation:`pipe0_logic`,allowManagedConnection:!0}]}},jm=Dm,Mm={pipeId:wm,label:`Work email checker`,executionMode:`single`,categories:[`people_data`],lifecycle:null,description:`Check if a given email address is personal or professional.`,tags:[V.EMAIL,V.WORK_EMAIL],docPath:K(wm),billableOperations:km,basePipe:G(wm),allowedUserConnectionProviders:[],inputFieldMode:`static`,outputFieldMode:`static`,managedProviders:[`pipe0`],deprecatedProviders:[],defaultInputRequirement:Om(null),defaultPayload:{pipe_id:wm,run_if:null,connector:null,config:{input_fields:{email:{alias:``}},output_fields:{is_work_email:{alias:``,enabled:!0}}}}};function Nm(e,t){return typeof t==`string`?t:t(e)}function Pm(e,t){return typeof t==`string`||t===null?t:t(e)}function Fm(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:Nm(e,a[r].type),format:Pm(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 Im(e,t){for(let n of e.pipes){let r=n.getOutputFields();if(r[t])return{type:Nm(e,r[t].type),format:Pm(e,r[t].format)}}let n=e.derivedInputFields[t];if(n)return{type:n.type,format:null}}function Lm(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=Ar(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=>Im(t,e)?.type||n,format:r};a.push(t.required?H(i):Sa(i))}return xa(...a)}function Rm(e){let t=new Set;for(let n of e)if(n)try{let e=Ar(n);for(let n of e.secrets)t.add(n)}catch{}return[...t]}function zm(e){let t=new Set;for(let n of e)if(n)try{let e=Ar(n);for(let n of e.constants)t.add(n)}catch{}return[...t]}const Bm=`email:send:gmail@1`,Vm=v(`gmail_email_success`),Hm=r.object({pipe_id:r.literal(Bm),connector:Vi(),run_if:C(),config:r.object({to:w({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:w({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:w({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:w({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:st,exampleValue:ct}},role_finder_match:{label:`Role finder match`,type:`json`,format:`json_object`,description:`Result of a role finder operation`,jsonMeta:{zodSchema:Pt,exampleValue:Ft}},amplemarket_person_match:{label:`Person match`,type:`json`,format:`json_object`,description:`Person match object as returned by Amplemarket`,jsonMeta:{zodSchema:Me,exampleValue:Ne}},amplemarket_company_match:{label:`Company match`,type:`json`,format:`json_object`,description:`Company match object as returned by Amplemarket`,jsonMeta:{zodSchema:Ae,exampleValue:je}},companyenrich_matches:{label:`CompanyEnrich matches`,type:`json`,format:`json_object`,description:`CompanyEnrich response list.`,jsonMeta:{zodSchema:r.array($e),exampleValue:[et]}},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:Et,zodSchema:Tt}},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:Mt,exampleValue:Nt},format:`json_object`},professional_profile_url:{label:`LinkedIn Profile URL`,type:`string`,format:`profile_url`,description:`A person's LinkedIn profile URL.`,jsonMeta:null}},tn={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=Zt(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=$t(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=$t(e);return{display_value:t?{label:t}:void 0,icon:{key:`linkedin`}}}},company_profile_url:{getStaticWidgets(e){let t=$t(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:ke.linkedin}}}},crustdata_post_list:{getStaticWidgets(e){return{entity_logo:{entity:`LinkedIn`,image_url:ke.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 v(e){return{...en[e],name:e}}function nn(e,t){if(an(e,t))return tn[e]}function rn(e){return e in en}function an(e,t){return e in en?en[e].format===t:!1}const on={completed:`Completed`,failed:`Failed`,no_result:`No result`,pending:`Pending`,processing:`Processing`,queued:`Queued`,skipped:`Skipped`};function sn(e){return on[e]}const cn=(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},ln=(e,t)=>n=>{let r=e(n);return r!=null&&r!==``?{disabled:!1}:{disabled:!0,message:t}},un=(...e)=>t=>{for(let n of e){let e=n(t);if(e.disabled)return e}return{disabled:!1}},dn=(...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 fn(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 pn=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(`.`)),mn=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`]),hn=r.enum([`production`,`sandbox`]),gn=`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(`.`),_n=r.enum(gn),vn=[`string`,`number`,`boolean`,`json`,`unknown`],yn=r.enum(vn),bn=r.union([r.number(),r.string()]),xn=r.union([r.literal(`completed`),r.literal(`failed`),r.literal(`pending`),r.literal(`queued`),r.literal(`processing`),r.literal(`no_result`),r.literal(`skipped`)]),Sn=r.union([r.string().min(1),r.number(),r.boolean(),r.null(),r.record(r.string(),r.unknown()),r.array(r.unknown())]),Cn=r.object({example_value:r.any().nullable(),schema:r.any().nullable()}),wn=r.object({}),Tn=wn.extend({image_url:r.string().url().describe(`URL to the provider's logo image.`),entity:r.string().describe(`The name of the entity.`)}),En=wn.extend({emoji:r.string().describe(`Country flag emoji.`)}),Dn=wn.extend({image_url:r.url().describe(`URL to the provider's logo image.`),name:r.string().describe(`The name of the avatar owner.`)}),On=wn.extend({attempted_providers:r.array(r.object({provider:mn})),available_providers:r.array(mn),successful_provider:mn.optional()}),kn=r.enum([`linkedin`,`job`]),An=wn.extend({key:kn}).optional(),jn=r.object({result_status:r.enum([`completed`,`failed`])}).optional(),Mn=r.object({list:r.array(r.object({source:r.string(),description:r.string().optional(),url:r.string()}))}).optional(),Nn=r.object({numeric:r.int().min(1).max(5)}).optional(),Pn=r.object({display_value:r.object({label:r.string().optional()}),entity_logo:Tn.optional(),location_indicator:En.optional(),avatar:Dn.optional(),waterfall:On.optional(),icon:An,action_summary:jn,sources:Mn,confidence:Nn}).partial().describe(`A map of widgets associated with this field for UI display, keyed by widget type.`),Fn=r.object({code:r.string(),message:r.string(),path:r.string().optional()}),In=r.object({code:r.string(),summary:r.string(),message:r.string()}),Ln=[`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`],Rn=r.enum(Ln);Rn.nullable();const zn=r.object({type:yn,label:r.string().nullable().optional(),format:Rn.nullable().optional(),json_metadata:Cn.nullable().optional()}),Bn=r.record(r.string(),zn),Vn=r.enum([...gn,`input`]).nullable(),Hn=r.enum([...gn,`input`,`system`]).nullable(),Un=r.object({ref:Vn,config_hash:r.string().nullable()}),Wn=r.object({ref:Hn,environment:hn.nullable(),config_hash:r.string().nullable(),input_hash:r.string().nullable()}),Gn=r.object({value:Sn,status:xn,type:yn,reason:In.nullable(),claimed_by:Un,resolved_by:Wn.nullable(),widgets:Pn.optional(),format:Rn.nullable()}),Kn=r.object({value:Sn,status:xn,reason:In.nullable().optional(),type:yn.optional(),format:Rn.nullable().optional(),claimed_by:Un.optional(),resolved_by:Wn.nullable().optional(),widgets:Pn.optional()}),qn=r.record(r.string(),r.union([Sn,Kn])).openapi(`PipesInput`),Jn=r.object({id:bn,fields:r.record(bn,Gn)}),Yn=r.object({type:r.literal(`catalog`),fieldName:r.string().min(1)}),Xn=r.object({type:yn,label:r.string(),added_by:r.object({ref:r.union([_n,r.literal(`input`)]),config_hash:r.string().nullable(),pipe_index:r.number().nullable()}),format:Rn.nullable(),is_primary_output:r.boolean()}),Zn=r.record(r.string(),Xn),Qn=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:Rn.nullable().default(null),label:r.string().optional(),type:yn})})).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)})})}),$n=r.enum([`eq`,`neq`,`gt`,`gte`,`lt`,`lte`,`contains`]),er={eq:`equals`,neq:`not equals`,gt:`greater than`,gte:`greater than or equal`,lt:`less than`,lte:`less than or equal`,contains:`contains`},tr=[`eq`,`neq`,`gt`,`gte`,`lt`,`lte`,`contains`],nr=[`eq`,`neq`],rr=r.object({type:r.literal(`vault`),connection:r.string()}),y=r.object({strategy:r.enum([`first`]).default(`first`),connections:r.array(rr)}).nullable().optional(),ir=r.object({strategy:r.enum([`first`]).default(`first`),connections:r.array(rr).min(1,{message:`Provide your own credentials to use this object.`})}),ar=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(),or=r.enum(tr),sr=r.enum(nr),cr=r.enum([`failed`,`no_result`,`completed`,`skipped`]),lr=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:or.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:sr.describe(`Status comparison operator: "eq" or "neq".`),value:cr.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" }] } }`),ur={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}},dr=[`if`,`elsif`,`else`,`endif`,`unless`,`endunless`,`for`,`endfor`,`break`,`continue`,`output`],fr=[`json`,`escape`,`escape_once`,`default`,`upcase`,`downcase`,`size`,`join`,`first`,`last`,`replace`,`truncate`,`strip`,`newline_to_br`,`url_encode`],pr=/^[A-Z][A-Z0-9_]*$/,mr=/^[A-Z][A-Z0-9_]*$/,hr=/^[a-zA-Z_][a-zA-Z0-9_]*$/,gr=`SECRETS`,_r=`CONSTANTS`,vr=new Set(dr),yr=new Set(fr),br=e=>`{${e}}`;var xr=class extends i{constructor(e){super(),this.values=e}liquidMethodMissing(e){let t=String(e);if(!pr.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]}},Sr=class extends i{constructor(e){super(),this.values=e}liquidMethodMissing(e){let t=String(e);if(!mr.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 Cr(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(!hr.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 wr(){let e=new a({strictVariables:!1,strictFilters:!0,jsTruthy:!0,greedy:!1,catchAllErrors:!1,ownPropertyOnly:!0});e.registerTag(`output`,{parse(e,t){let n=Cr(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(br(n.name))}});for(let t of Object.keys(e.tags))vr.has(t)||delete e.tags[t];for(let t of Object.keys(e.filters))yr.has(t)||delete e.filters[t];return e}let Tr=null;function Er(){return Tr||=wr(),Tr}async function Dr(e,t,n={}){let r=Er(),i=n.renderLimitMs??250,a={...t.inputs??{},[gr]:new xr(t.secrets??{}),[_r]:new Sr(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 Or(e,t,n={}){let r=Er(),i=n.renderLimitMs??250,a={...t.inputs??{},[gr]:new xr(t.secrets??{}),[_r]:new Sr(t.constants??{})},o=r.parseAndRenderSync(e,a,{globals:{__outputAllowed:n.outputAllowed===!0},renderLimit:i});return String(o)}function kr(e){return Er().parse(e)}function Ar(e){let t=Er().parse(e),n={scopeStack:[],guardStack:[],inputs:new Map,secrets:new Set,constants:new Set,outputs:[],forDepth:0};jr(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 jr(e,t){for(let n of e)Mr(n,t)}function Mr(e,t){let n=e;if(n.value&&typeof n.value==`object`&&`filters`in n.value&&`initial`in n.value){Lr(n.value,t,!1);return}if(typeof n.name==`string`){Nr(n,t);return}}function Nr(e,t){switch(e.name){case`for`:Pr(e,t);return;case`if`:case`unless`:Fr(e,t);return;case`output`:Ir(e,t);return;case`break`:case`continue`:return;default:throw Error(`Unhandled liquid tag in analyzer: ${e.name}`)}}function Pr(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&&Rr(e.collection,t,!1);let n=typeof e.variable==`string`?e.variable:null;n&&t.scopeStack.push(n),jr(Array.isArray(e.templates)?e.templates:[],t),n&&t.scopeStack.pop(),jr(Array.isArray(e.elseTemplates)?e.elseTemplates:[],t),--t.forDepth}function Fr(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=Vr(i.initial)),a&&t.guardStack.push(a),i&&typeof i==`object`&&Lr(i,t,!1),jr(r.templates,t),a&&t.guardStack.pop()}jr(Array.isArray(e.elseTemplates)?e.elseTemplates:[],t)}function Ir(e,t){let n=e.outputDecl;if(!n){let t=e.token?.args;typeof t==`string`&&(n=Cr(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 Lr(e,t,n){let r=e.filters.some(e=>e.name===`default`),i=n||r;for(let n of e.initial.postfix)Hr(n)&&Br(n,t,i);for(let n of e.filters)for(let e of n.args)zr(e,t)}function Rr(e,t,n){Hr(e)&&Br(e,t,n)}function zr(e,t){if(Array.isArray(e)){let n=e[1];n&&Rr(n,t,!1)}else Rr(e,t,!1)}function Br(e,t,n){let r=e.props;if(r.length===0)return;let i=r[0];if(!i||!Ur(i))return;let a=i.content;if(t.scopeStack.includes(a))return;if(a===`SECRETS`){let e=r[1];if(!e||!Ur(e))throw Error(`Invalid SECRETS reference β€” expected SECRETS.KEY (got ${Kr(r)}).`);let n=e.content;if(!pr.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||!Ur(e))throw Error(`Invalid CONSTANTS reference β€” expected CONSTANTS.KEY (got ${Kr(r)}).`);let n=e.content;if(!mr.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 Vr(e){if(e.postfix.length===1){let t=e.postfix[0];if(t&&Hr(t)&&t.props.length===1){let e=t.props[0];if(e&&Ur(e))return e.content}}if(e.postfix.length===3){let[t,n,r]=e.postfix;if(t&&n&&r&&Hr(t)&&t.props.length===1){let e=t.props[0];if(e&&Ur(e)&&Wr(n)&&Gr(r,[`==`,`!=`]))return e.content}}return null}function Hr(e){return e.kind===o.PropertyAccess}function Ur(e){return!!e&&typeof e==`object`&&e.kind===o.Word}function Wr(e){if(e.kind!==o.Literal)return!1;let t=e.literal;return t===`nil`||t===`null`}function Gr(e,t){return e.kind===o.Operator?t.includes(e.operator):!1}function Kr(e){let t=[];for(let n of e)n&&Ur(n)?t.push(n.content):t.push(`?`);return t.join(`.`)}function qr(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:mn.parse(n),id:r}}catch{throw Error(`Connection string ${e}: Failed to parse provider name.`)}}function Jr(e){return`${e.provider}_${e.id}`}const Yr=new s;function Xr(e){return Yr.validateSchema(e)}function Zr(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 Qr=[`gemini-flash-latest`,`openai-gpt-latest`,`openai-gpt-mini-latest`],$r={"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 ei(e,t){let n={};for(let r of Qr){let i=$r[r],a=`${e}-${r}`;n[a]={credits:t?.[r]??i.defaultCredits,allowManagedConnection:!0,provider:i.provider,mode:i.billingMode}}return n}function ti(e){let t=$r[e];if(!t)throw Error(`Unknown AI model: ${e}`);return[t.provider]}function ni(e,t){return`${t}-${e}`}function ri(e){let t=$r[e];if(!t)throw Error(`Unknown AI model: ${e}`);return[{provider:t.provider,rateLimitRatio:t.rateLimitRatio,rateLimitOperation:t.rateLimitOperation,allowManagedConnection:t.allowManagedConnection}]}function ii(){let e=new Set;for(let t of Qr)e.add($r[t].provider);return[...e]}function ai(e){if(!e?.requires)return;let t=[];e.requires.connection&&t.push(cn(e.requires.connection));for(let n of e.requires.fields??[])t.push(ln(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]:un(...t)}function oi(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=fn(e,n,t),s=rn(o.fieldName)?v(o.fieldName):null;return s?.jsonMeta?{jsonSchema:s.jsonMeta.zodSchema?r.toJSONSchema(s.jsonMeta.zodSchema):null,exampleValue:s.jsonMeta.exampleValue||null}:i}const b=r.registry();{let e=b._map,t=b.get.bind(b);b.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 x=r.registry(),S={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()),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())])},si=(e,t)=>{let n=S.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},ci=(e,t)=>{let n=S.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},li=(e,t)=>{let n=S.key_value_list_input;e.maxItems&&(n=n.max(e.maxItems)),n=n.check(e=>{let t=e;(t.value??[]).forEach((e,n)=>{Li({value:e.key,issues:t.issues},!1,[n,`key`]),Li({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},ui=(e,t)=>{let n=e.maxItems||200,r=S.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},di=()=>{let e=Qn;return b.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}=oi(e,t,n)||{};return{fieldName:e,fieldLabel:n.label,schema:r||null,exampleValue:i||null}}),path:`config.json_extraction`,groupPath:`config.json_extraction`,sectionKey:`config.extractions`}}),e},fi=(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:ur[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},pi=(e,t)=>{let n=e.maxItems||200,r=S.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},mi=(e,t)=>{let n=S.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},hi=(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},gi=(e,t)=>{let n=S.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},_i=(e,t)=>{let n=S.boolean_input.default(e.defaultValue);return e.description&&n.describe(e.description),t.add(n,{...e,required:!1,type:`boolean_input`}),n},vi=(e,t)=>{let n=S.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},yi=(e,t)=>{let n=S.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},bi=(e,t)=>{let n=S.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},xi=(e,t,n=`config.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})},Si=(e,t)=>{let n=S.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},Ci=(e,t)=>{let n=S.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},wi=(e,t)=>{let n=S.json_schema_input,r=e.required?n:n.optional();return r.check(e=>{Xr(e.value)||e.issues.push({code:`custom`,input:e.value,message:`JSON schema is invalid. Check your input.`})}),e.allowEmpty||(r=r.check(e=>{Zr(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},Ti=(e,t)=>{let n=e.options.map(e=>e.value),r=new Set([...n,``]),i=S.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},Ei=({billableOperations:e,...t},n)=>{let i=r.enum(Qr).default(t.defaultValue||`gemini-flash-latest`);return n.add(i,{type:`select_input`,options:Qr.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:ur[$r[t].provider].logoUrl},pricing:{credits:n.credits}}}}),required:!0,description:``,label:`AI Models`,...t}),i},Di=(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},Oi=(e,t)=>{let n=e.required?S.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`})}):S.context_select_input,r=e.defaultValue?n.default(e.defaultValue):n,i=e.enabledIf??ai(e.optionsDef);return t.add(r,{type:`context_select_input`,...e,enabledIf:i,options:[]}),r},ki=(e,t)=>{let n=S.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},Ai=(e,t)=>{let n=S.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},ji=(e,t)=>{let n=e.maxItems||200,r=S.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 Mi(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 C=()=>{let e=lr.nullish();return b.add(e,e=>{let t=e.validationContext;return{label:``,description:``,type:`pipes_run_if_input`,groupPath:`run_if`,path:`run_if`,sectionKey:`conditions`,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},Ni={"config.pipe_io":{type:`form_section`,label:`In- and outputs`,description:`Configure output fields and reassign inputs.`,path:`config.pipe_io`},"config.input_fields":{type:`form_section`,label:`Input fields`,description:`Reassign pipe inputs.`,path:`config.input_fields`},"config.output_fields":{type:`form_section`,label:`Output fields`,description:`Rename or toggle outputs.`,path:`config.output_fields`},"config.extractions":{type:`form_section`,label:`Extractions`,description:`Use Jsonata syntax to extract nested JSON values.`,path:`config.json_extraction`},conditions:{type:`form_section`,path:`run_if`,label:`Conditions`,description:`Execute pipes when conditions are met.`,mode:`dynamic`},connector:{type:`form_section`,path:`connector`,label:`Connector`,description:`Provide your own credentials for external providers.`,mode:`dynamic`},"config.filters":{type:`form_section`,label:`Filters`,path:`config.filters`,description:`Narrow down the search output`},general:{type:`form_section`,path:`general`},pagination:{type:`form_section`,path:`pagination`}},Pi={general:1,pagination:2,conditions:999,connector:998,"config.filters":3,"config.input_fields":10,"config.output_fields":11,"config.pipe_io":10,"config.extractions":1};function Fi({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 Ii=({schema:e,groupPathMatch:t,extractFromSchema:n,sectionOrder:i=Pi,sectionMap:a=Ni,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=Fi({fieldMetadata:i,store:o,formResolvers:s});e&&n.fields.push(e)}else{let n=t[i.groupPath],r=Fi({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 Li(e,t,n=[]){let r=e.value;if(!(typeof r!=`string`||!r))try{let i=Ar(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 Ri=e=>{let t=(e.supportedTags??[]).includes(`output`),n=r.object({template:r.string().min(10).check(e=>Li(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 b.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},zi=e=>{let t=r.string();e.required&&(t=t.min(1));let n=t.check(e=>Li(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 b.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},w=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=>Li(e,!1,[])),n=n.describe(e.description||t);let i=e.optionsDef?{...e.optionsDef,enabledIf:e.optionsDef.enabledIf??ai(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:[]},b.add(n,o),n};function Bi(e,t){b.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:`connector`,supportsUserConnections:r.size>0,filteredConnections:i.map(e=>({provider:e.provider,connection:Jr({id:e.public_id,provider:e.provider})}))}})}const Vi=()=>{let e=ir;return Bi(e,`required`),e},T=()=>{let e=y;return Bi(e,`optional`),e},E=()=>{let e=ar;return Bi(e,`disabled`),e};function Hi(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 D=e=>{let t=r.object({alias:r.string().describe(`Override field name mapping. Leave empty to use default.`)});return b.add(t,t=>{let n=t.validationContext;return{type:`select_input`,required:!1,sectionKey:`config.pipe_io`,defaultValue:void 0,placeholder:e.fieldName,options:Hi(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:``})},O=e=>fi(e,b),Ui=e=>{let t=S.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([]),b.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},Wi=e=>ui(e,b),Gi=e=>si(e,b),Ki=e=>ci(e,b),qi=e=>li(e,b),Ji=e=>pi(e,b),Yi=e=>ji(e,b),Xi=e=>mi(e,b),Zi=e=>gi(e,b),k=e=>_i(e,b),A=e=>xi(e,b),Qi=e=>yi(e,b),$i=e=>bi(e,b),ea=e=>Ti(e,b),ta=e=>Ei(e,b),na=e=>Di(e,b),ra=e=>Si(e,b),ia=e=>Ci(e,b),aa=e=>wi(e,b),oa=e=>Oi(e,b),j=e=>si(e,x),sa=e=>ci(e,x),ca=e=>ki(e,x),M=e=>ui(e,x),N=e=>pi(e,x),la=e=>mi(e,x),ua=e=>hi(e,x),da=e=>gi(e,x),fa=e=>_i(e,x),pa=e=>vi(e,x),P=e=>xi(e,x,`config.output_fields`),ma=e=>yi(e,x),ha=e=>bi(e,x),ga=e=>Ti(e,x),F=e=>Di(e,x),I=e=>Ai(e,x),L=e=>ji(e,x),R=e=>Si(e,x),_a=e=>Ci(e,x),z=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()),B=e=>e.optional();function va(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]=va(n[e],r));return n}const V={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 ❌`},ya=e=>typeof e.kind==`string`,ba=e=>ya(e)?e:{kind:`field`,field:e},H=e=>({kind:`field`,field:e}),xa=(...e)=>({kind:`all`,of:e.map(ba)}),U=(...e)=>({kind:`any`,of:e.map(ba)}),Sa=e=>({kind:`optional`,field:e});function Ca(e,t){switch(e.kind){case`optional`:return!0;case`field`:return t.has(e.field.resolvedName);case`all`:return e.of.every(e=>Ca(e,t));case`any`:return e.of.some(e=>Ca(e,t))}}function wa(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(wa)}}function Ta(e,t){let n=Ea(e,t);return n.ok?{valid:!0,failedPipeInputField:null,failedRecordField:null}:{valid:!1,failedPipeInputField:n.field,failedRecordField:n.recordField}}function Ea(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=Ea(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=Ea(i,t);if(r=!0,e.ok)return{ok:!0};n=e}catch{}return r?n:{ok:!0}}}}function Da(e){if(typeof e!=`object`||!e)return e;if(Array.isArray(e))return e.map(Da).filter(e=>!At(e));let t={};for(let[n,r]of Object.entries(e)){let e=Da(r);At(e)||(t[n]=e)}return t}const Oa=await l();var ka=class e{static hashObject(t){if(!Oa)throw Error(`HashAPI not initialized`);let{h64ToString:n}=Oa,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 Aa(e,t){let n={pipeId:e,config:Da(t)};return ka.hashObject(n)}function ja(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:ka.hashObject(Da(n))}var W=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 wa(this.getInputRequirement()))e[t.name]=t;return e}getConfigHashKey(){return Aa(this.payload.pipe_id,this.payload.config||{})}getInputHashKey(e){return ja(e,this.inputFields)}};function Ma(e,t){let n={};for(let r of t)for(let t of Object.values(e))if(t&&t.provider===r&&t.credits!=null){n[r]=t.credits;break}return n}function Na(e){return wa(e).map(({field:e})=>e)}function Pa({recordField:e,value:t,resolvedBy:n,widgets:r}){return e.value=t,e.status=`completed`,e.resolved_by=n,e.widgets=r,e}function Fa({recordField:e}){return e.status=`pending`,e.resolved_by=null,e.value=null,e}function Ia({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 La(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 Ra(e,t){return e.value=null,e.status=`skipped`,e.resolved_by=null,e.reason=t,e.widgets={},e}function za(e){return e.value=null,e.status=`processing`,e.resolved_by=null,e.widgets={},e}function G(e){return e.split(`@`)[0]}function K(e){return`/docs/pipes/pipes-catalog/${G(e)}/${e.split(`@`)[1]}`}function q(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 Ba=`company:domain:workemail@1`,Va=v(`company_domain`),Ha=v(`work_email`),Ua=r.object({pipe_id:r.literal(Ba),run_if:C(),connector:E(),config:r.object({input_fields:B(r.object({[Ha.name]:D({fieldName:Ha.name})})),output_fields:z(r.object({[Va.name]:A({fieldName:Va.name})}))}).optional()}),Wa=e=>H(q(Ha,e)),Ga={"company-domain-from-workemail-pipe0":{credits:0,allowManagedConnection:!0,mode:`always`,provider:`pipe0`}},Ka=class extends W{pipeId=Ba;payload;payloadSchema=Ua;billableOperations=Ga;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[`company-domain-from-workemail-pipe0`]}getInputRequirement(){return Wa(this.payload.config)}getRawOutputFields(){return{[Va.name]:this.catalogOutput(Va)}}getConnectionsRequirements(){return[{provider:`pipe0`,rateLimitRatio:1,rateLimitOperation:`pipe0_logic`,allowManagedConnection:!0}]}},qa=Ua,Ja={pipeId:Ba,basePipe:G(Ba),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:[V.EMAIL,V.WORK_EMAIL,V.WEBSITE],docPath:K(Ba),allowedUserConnectionProviders:[],managedProviders:[`pipe0`],deprecatedProviders:[],billableOperations:Ga,defaultInputRequirement:Wa(null),defaultPayload:{pipe_id:Ba,connector:null,run_if:null,config:{input_fields:{[Ha.name]:{alias:``}},output_fields:{[Va.name]:{alias:``,enabled:!0}}}}},Ya=`company:funding:leadmagic@2`,Xa=v(`company_name`),Za=v(`company_domain`),Qa=v(`funding_history`),$a=v(`funding_total_usd`),eo=v(`leadmagic_competitor_list`),to=v(`leadmagic_acquisition_history`),no=v(`leadmagic_company_news_list`),ro=r.object({pipe_id:r.literal(Ya),connector:T(),run_if:C(),config:r.object({input_fields:B(r.object({[Xa.name]:D({fieldName:Xa.name}),[Za.name]:D({fieldName:Za.name})})),output_fields:z(r.object({[Qa.name]:A({fieldName:Qa.name}),[$a.name]:A({fieldName:$a.name}),[eo.name]:A({fieldName:eo.name}),[to.name]:A({fieldName:to.name}),[no.name]:A({fieldName:no.name})}))}).optional()}),io=e=>U(q(Xa,e),q(Za,e)),ao={"company-funding-leadmagic":{provider:`leadmagic`,allowManagedConnection:!0,credits:2,mode:`onSuccess`}},oo=class extends W{pipeId=Ya;payload;payloadSchema=ro;billableOperations=ao;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`leadmagic`]}estimateBillableOperations(){return[`company-funding-leadmagic`]}getInputRequirement(){return io(this.payload.config)}getRawOutputFields(){return{[Qa.name]:this.catalogOutput(Qa),[$a.name]:this.catalogOutput($a),[to.name]:this.catalogOutput(to),[no.name]:this.catalogOutput(no),[eo.name]:this.catalogOutput(eo)}}getConnectionsRequirements(){return[{provider:`leadmagic`,rateLimitRatio:1,rateLimitOperation:`leadmagic_company_funding`,allowManagedConnection:!0}]}},so=ro,co={pipeId:Ya,basePipe:G(Ya),label:`Funding history`,executionMode:`single`,categories:[`company_data`],lifecycle:null,description:`Information on funding rounds, acquisition, competitors, and investors.`,tags:[V.FINANCIAL_DATA],docPath:K(Ya),billableOperations:ao,inputFieldMode:`static`,outputFieldMode:`static`,allowedUserConnectionProviders:[`leadmagic`],managedProviders:[`leadmagic`],deprecatedProviders:[],defaultInputRequirement:io(null),defaultPayload:{pipe_id:Ya,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:``}}}}},lo=v(`company_name`),uo=v(`company_profile_url`),fo=v(`company_domain`),po=v(`cleaned_company_name`),mo=`company:identity@3`,ho=r.object({pipe_id:r.literal(mo),run_if:C(),connector:E(),config:r.object({input_fields:B(r.object({[lo.name]:D({fieldName:lo.name})})),output_fields:z(r.object({[uo.name]:A({fieldName:uo.name}),[po.name]:A({fieldName:po.name}),[fo.name]:A({fieldName:fo.name})}))}).optional()}),go=e=>H(q(lo,e)),_o={"company-identity-pipe0":{allowManagedConnection:!0,credits:.3,mode:`always`,provider:`pipe0`}},vo=class extends W{pipeId=mo;payload;payloadSchema=ho;billableOperations=_o;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[`company-identity-pipe0`]}getInputRequirement(){return go(this.payload.config)}getRawOutputFields(){return{[uo.name]:this.catalogOutput(uo),[fo.name]:this.catalogOutput(fo),[po.name]:this.catalogOutput(po)}}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}]}},yo=ho,bo={pipeId:mo,inputFieldMode:`static`,outputFieldMode:`static`,basePipe:G(mo),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:[V.WEBSITE,V.LINKEDIN],docPath:K(mo),billableOperations:_o,allowedUserConnectionProviders:[],managedProviders:[`pipe0`],deprecatedProviders:[],defaultInputRequirement:go(null),defaultPayload:{pipe_id:mo,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}}}}},xo=v(`company_domain`),So=v(`companyenrich_matches`),Co=`company:lookalikes:companyenrich@2`,wo=r.object({pipe_id:r.literal(Co),run_if:C(),connector:T(),config:r.object({limit:ra({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:B(r.object({[xo.name]:D({fieldName:xo.name})})),output_fields:z(r.object({[So.name]:A({fieldName:So.name})}))}).optional()}),To=e=>H(q(xo,e)),Eo={"lookalikes-companyenrich":{allowManagedConnection:!0,credits:.2,mode:`onSuccess`,note:`One billing event per result.`,provider:`companyenrich`}},Do=class extends W{pipeId=Co;payload;payloadSchema=wo;billableOperations=Eo;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`companyenrich`]}estimateBillableOperations(){return[,,,,,].fill(`lookalikes-companyenrich`)}getInputRequirement(){return To(this.payload.config)}getRawOutputFields(){return{[So.name]:this.catalogOutput(So)}}getConnectionsRequirements(){return[{provider:`companyenrich`,rateLimitRatio:1,rateLimitOperation:`company_enrich_generic`,allowManagedConnection:!0}]}},Oo=wo,ko={pipeId:Co,inputFieldMode:`static`,outputFieldMode:`static`,basePipe:G(Co),label:`Find company lookalikes`,executionMode:`single`,categories:[`company_data`],lifecycle:null,description:`Find companies similar to the company you provide as input.`,tags:[V.COMPANY_PROFILES],docPath:K(Co),billableOperations:Eo,allowedUserConnectionProviders:[`companyenrich`],managedProviders:[`companyenrich`],deprecatedProviders:[],defaultInputRequirement:To(null),defaultPayload:{pipe_id:Co,connector:null,run_if:null,config:{limit:20,input_fields:{company_domain:{alias:``}},output_fields:{companyenrich_matches:{alias:``,enabled:!0}}}}},Ao=v(`company_domain`),jo=v(`crustdata_companyenrich_match`),Mo=`company:match:crustdata@2`,No=r.object({pipe_id:r.literal(Mo),run_if:C(),connector:T(),config:r.object({input_fields:B(r.object({[Ao.name]:D({fieldName:Ao.name})})),output_fields:z(r.object({[jo.name]:A({fieldName:jo.name})}))}).optional()}),Po=e=>H(q(Ao,e)),Fo={"company-enrich-crustdata":{allowManagedConnection:!0,credits:2,mode:`onSuccess`,provider:`crustdata`}},Io=class extends W{pipeId=Mo;payload;payloadSchema=No;billableOperations=Fo;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`crustdata`]}estimateBillableOperations(){return[`company-enrich-crustdata`]}getInputRequirement(){return Po(this.payload.config)}getRawOutputFields(){return{[jo.name]:this.catalogOutput(jo)}}getConnectionsRequirements(){return[{provider:`crustdata`,rateLimitRatio:1,rateLimitOperation:`crustdata_company_enrich`,allowManagedConnection:!0}]}},Lo=No,Ro={pipeId:Mo,inputFieldMode:`static`,outputFieldMode:`static`,basePipe:G(Mo),label:`Company match`,executionMode:`single`,categories:[`company_data`],lifecycle:null,description:`Company data like headcount distribution, LinkedIn URLs etc. via the Crustdata API.`,tags:[V.WEBSITE,V.LINKEDIN],docPath:K(Mo),billableOperations:Fo,allowedUserConnectionProviders:[`crustdata`],managedProviders:[`crustdata`],deprecatedProviders:[],defaultInputRequirement:Po(null),defaultPayload:{pipe_id:Mo,connector:null,run_if:null,config:{input_fields:{company_domain:{alias:``}},output_fields:{crustdata_companyenrich_match:{alias:``,enabled:!0}}}}},zo=v(`company_domain`),Bo=v(`company_name`),Vo=v(`company_profile_url`),Ho=v(`logodev_describe_match`),Uo=v(`logo_url`),Wo=`company:match:logodev@2`,Go=r.object({pipe_id:r.literal(Wo),run_if:C(),connector:T(),config:r.object({input_fields:B(r.object({[zo.name]:D({fieldName:zo.name})})),output_fields:z(r.object({[Vo.name]:A({fieldName:Vo.name}),[Uo.name]:A({fieldName:Uo.name}),[Bo.name]:A({fieldName:Bo.name}),[Ho.name]:A({fieldName:Ho.name})}))}).optional()}),Ko=e=>H(q(zo,e)),qo={"company-describe-logodev":{allowManagedConnection:!0,credits:.1,mode:`onSuccess`,provider:`logodev`}},Jo=class extends W{pipeId=Wo;payload;payloadSchema=Go;billableOperations=qo;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`logodev`]}estimateBillableOperations(){return[`company-describe-logodev`]}getInputRequirement(){return Ko(this.payload.config)}getRawOutputFields(){return{[Vo.name]:this.catalogOutput(Vo),[Bo.name]:this.catalogOutput(Bo),[Uo.name]:this.catalogOutput(Uo),[Ho.name]:this.catalogOutput(Ho)}}getConnectionsRequirements(){return[{provider:`logodev`,rateLimitRatio:1,rateLimitOperation:`logodev_describe`,allowManagedConnection:!0}]}},Yo=Go,Xo={pipeId:Wo,inputFieldMode:`static`,outputFieldMode:`static`,basePipe:G(Wo),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:[V.WEBSITE,V.LINKEDIN],docPath:K(Wo),billableOperations:qo,allowedUserConnectionProviders:[`logodev`],managedProviders:[`logodev`],deprecatedProviders:[],defaultInputRequirement:Ko(null),defaultPayload:{pipe_id:Wo,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}}}}},Zo=`company:newssummary:domain@1`,Qo=v(`company_news_summary`),$o=v(`company_domain`),es=r.object({pipe_id:r.literal(Zo),run_if:C(),connector:T(),config:r.object({input_fields:B(r.object({[$o.name]:D({fieldName:$o.name})})),output_fields:z(r.object({[Qo.name]:A({fieldName:Qo.name})}))}).optional()}),ts=e=>H(q($o,e)),ns={"company-news-summary-pipe0":{allowManagedConnection:!0,credits:1,mode:`always`,provider:`pipe0`}},rs=class extends W{pipeId=Zo;payloadSchema=es;billableOperations=ns;payload;constructor(e){super(),this.payload=e}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[`company-news-summary-pipe0`]}getInputRequirement(){return ts(this.payload.config)}getRawOutputFields(){return{[Qo.name]:this.catalogOutput(Qo)}}getConnectionsRequirements(){return[{provider:`perplexity`,rateLimitRatio:1,rateLimitOperation:`perplexity_generic`,allowManagedConnection:!0}]}},is=es,as={pipeId:Zo,basePipe:G(Zo),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:[V.NEWS],docPath:K(Zo),billableOperations:ns,allowedUserConnectionProviders:[],managedProviders:[`pipe0`],deprecatedProviders:[],defaultInputRequirement:ts(null),defaultPayload:{pipe_id:Zo,run_if:null,connector:null,config:{input_fields:{company_domain:{alias:``}},output_fields:{company_news_summary:{alias:``,enabled:!0}}}}},os=v(`company_domain`),ss=v(`company_profile_url`),cs=v(`company_description`),ls=v(`company_industry`),us=v(`company_region`),ds=v(`headcount`),fs=v(`estimated_revenue`),ps=v(`founded_year`),ms=v(`company_name`),hs=`company:overview@3`,gs=r.object({pipe_id:r.literal(hs),run_if:C(),connector:E(),config:r.object({input_fields:B(r.object({[os.name]:D({fieldName:os.name}),[ss.name]:D({fieldName:ss.name})})),output_fields:z(r.object({[cs.name]:A({fieldName:cs.name}),[ls.name]:A({fieldName:ls.name}),[us.name]:A({fieldName:us.name}),[ds.name]:A({fieldName:ds.name}),[fs.name]:A({fieldName:fs.name}),[ps.name]:A({fieldName:ps.name}),[ms.name]:A({fieldName:ms.name})}))}).optional()}),_s=e=>U(q(os,e),q(ss,e)),vs={"company-overview-pipe0":{provider:`pipe0`,allowManagedConnection:!0,credits:1,mode:`always`}},ys=class extends W{pipeId=hs;payloadSchema=gs;billableOperations=vs;payload;constructor(e){super(),this.payload=e}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[`company-overview-pipe0`]}getInputRequirement(){return _s(this.payload.config)}getRawOutputFields(){return{[cs.name]:this.catalogOutput(cs),[ls.name]:this.catalogOutput(ls),[us.name]:this.catalogOutput(us),[ds.name]:this.catalogOutput(ds),[fs.name]:this.catalogOutput(fs),[ps.name]:this.catalogOutput(ps),[ms.name]:this.catalogOutput(ms)}}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}]}},bs=gs,xs={pipeId:hs,basePipe:G(hs),inputFieldMode:`static`,outputFieldMode:`static`,label:`Company overview`,executionMode:`mix`,categories:[`company_data`],lifecycle:null,description:`Business description, industry, and financial information.`,docPath:K(hs),tags:[V.WEBSITE,V.LINKEDIN,V.FINANCIAL_DATA],allowedUserConnectionProviders:[],managedProviders:[`pipe0`],deprecatedProviders:[],billableOperations:vs,defaultInputRequirement:_s(null),defaultPayload:{pipe_id:hs,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}}}}},Ss=v(`company_domain`),Cs=v(`technology_list`),ws=v(`spending_trend`),Ts=v(`technology_match_builtwith`),Es=`company:techstack:builtwith@2`,Ds=r.object({pipe_id:r.literal(Es),connector:T(),run_if:C(),config:r.object({input_fields:B(r.object({[Ss.name]:D({fieldName:Ss.name})})),output_fields:z(r.object({[Cs.name]:A({fieldName:Cs.name}),[Ts.name]:A({fieldName:Ts.name}),[ws.name]:A({fieldName:ws.name})}))}).optional()}),Os=e=>H(q(Ss,e)),ks={"technology-stack-builtwith":{provider:`builtwith`,allowManagedConnection:!0,credits:2,mode:`always`}},As=class extends W{pipeId=Es;payload;payloadSchema=Ds;billableOperations=ks;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`builtwith`]}estimateBillableOperations(){return[`technology-stack-builtwith`]}getInputRequirement(){return Os(this.payload.config)}getRawOutputFields(){return{[Cs.name]:this.catalogOutput(Cs),[Ts.name]:this.catalogOutput(Ts),[ws.name]:this.catalogOutput(ws)}}getConnectionsRequirements(){return[{provider:`builtwith`,rateLimitRatio:1,rateLimitOperation:`builtwith_generic`,allowManagedConnection:!0}]}},js=Ds,Ms={pipeId:Es,basePipe:G(Es),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:[V.WEBSITE],inputFieldMode:`static`,outputFieldMode:`static`,docPath:K(Es),billableOperations:ks,defaultInputRequirement:Os(null),defaultPayload:{pipe_id:Es,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}}}}},Ns={MissingSecretError:class extends Error{constructor({providerName:e}){super(`Missing secret for ${e}`)}},HttpError:class extends Error{constructor({msg:e}){super(e)}}},Ps=`contact:create:resend@1`,Fs={"contact-create-resend":{allowManagedConnection:!1,provider:`resend`,credits:null,mode:null}},Is=v(`email`),Ls=v(`name`),Rs=v(`resend_contact_id`),zs=[{label:`Demo subscribers`,value:`sandbox-segment-1`},{label:`Demo product updates`,value:`sandbox-segment-2`}],Bs=r.object({pipe_id:r.literal(Ps),connector:Vi(),run_if:C(),config:r.object({segment_id:oa({sectionKey:`general`,required:!0,label:`Segment`,groupPath:`config.general`,path:`config.segment_id`,info:``,enabledIf:cn(`resend`),optionsDef:{requires:{connection:`resend`},options:async({query:e,secret:t,environment:n})=>{if(n===`sandbox`)return zs;if(!t)throw new Ns.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 Ns.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:k({sectionKey:`general`,defaultValue:!0,label:`Add as subscribed`,groupPath:`config.general`,path:`config.add_as_subscribed`,info:``}),input_fields:B(r.object({[Ls.name]:D({fieldName:Ls.name}),[Is.name]:D({fieldName:Is.name})})),output_fields:z(r.object({[Rs.name]:A({fieldName:Rs.name})}))})}),Vs=e=>xa(H(q(Is,e)),H(q(Ls,e))),Hs=class extends W{pipeId=Ps;payload;payloadSchema=Bs;billableOperations=Fs;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`resend`]}estimateBillableOperations(){return[`contact-create-resend`]}getInputRequirement(){return Vs(this.payload.config)}getRawOutputFields(){return{[Rs.name]:this.catalogOutput(Rs)}}getConnectionsRequirements(){return[{provider:`resend`,rateLimitRatio:1,rateLimitOperation:`resend_generic`,allowManagedConnection:!1}]}},Us=Bs,Ws={pipeId:Ps,basePipe:G(Ps),label:`Create Contact`,executionMode:`single`,categories:[`actions`],lifecycle:null,description:`Create a contact inside a Resend audience.`,tags:[V.EMAIL],docPath:K(Ps),billableOperations:Fs,inputFieldMode:`static`,outputFieldMode:`static`,allowedUserConnectionProviders:[`resend`],defaultInputRequirement:Vs(null),managedProviders:[],deprecatedProviders:[],defaultPayload:{pipe_id:Ps,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}}}}},Gs=`company:funding:leadmagic@1`,Ks=v(`company_name`),qs=v(`company_website_url`),Js=v(`funding_history`),Ys=v(`funding_total_usd`),Xs=v(`leadmagic_competitor_list`),Zs=v(`leadmagic_acquisition_history`),Qs=v(`leadmagic_company_news_list`),$s=r.object({pipe_id:r.literal(Gs),connector:T(),run_if:C(),config:r.object({input_fields:B(r.object({[Ks.name]:D({fieldName:Ks.name}),[qs.name]:D({fieldName:qs.name})})),output_fields:z(r.object({[Js.name]:A({fieldName:Js.name}),[Ys.name]:A({fieldName:Ys.name}),[Xs.name]:A({fieldName:Xs.name}),[Zs.name]:A({fieldName:Zs.name}),[Qs.name]:A({fieldName:Qs.name})}))}).optional()}),ec=e=>U(q(Ks,e),q(qs,e)),tc={"company-funding-leadmagic":{provider:`leadmagic`,allowManagedConnection:!0,credits:2,mode:`onSuccess`}},nc=class extends W{pipeId=Gs;payload;payloadSchema=$s;billableOperations=tc;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`leadmagic`]}estimateBillableOperations(){return[`company-funding-leadmagic`]}getInputRequirement(){return ec(this.payload.config)}getRawOutputFields(){return{[Js.name]:this.catalogOutput(Js),[Ys.name]:this.catalogOutput(Ys)}}getConnectionsRequirements(){return[{provider:`leadmagic`,rateLimitRatio:1,rateLimitOperation:`leadmagic_company_funding`,allowManagedConnection:!0}]}},rc=$s,ic={pipeId:Gs,basePipe:G(Gs),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:[V.FINANCIAL_DATA],docPath:K(Gs),billableOperations:tc,inputFieldMode:`static`,outputFieldMode:`static`,allowedUserConnectionProviders:[`leadmagic`],managedProviders:[`leadmagic`],deprecatedProviders:[],defaultInputRequirement:ec(null),defaultPayload:{pipe_id:Gs,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:``}}}}},ac=v(`company_name`),oc=v(`company_social_url`),sc=v(`company_website_url`),cc=v(`cleaned_company_name`),lc=`company:identity@1`,uc=r.object({pipe_id:r.literal(lc),run_if:C(),connector:E(),config:r.object({input_fields:B(r.object({[ac.name]:D({fieldName:ac.name})})),output_fields:z(r.object({[oc.name]:A({fieldName:oc.name}),[cc.name]:A({fieldName:cc.name}),[sc.name]:A({fieldName:sc.name})}))}).optional()}),dc=e=>H(q(ac,e)),fc={"company-identity-pipe0":{allowManagedConnection:!0,credits:.3,mode:`always`,provider:`pipe0`}},pc=class extends W{pipeId=lc;payload;payloadSchema=uc;billableOperations=fc;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[`company-identity-pipe0`]}getInputRequirement(){return dc(this.payload.config)}getRawOutputFields(){return{[oc.name]:this.catalogOutput(oc),[sc.name]:this.catalogOutput(sc),[cc.name]:this.catalogOutput(cc)}}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}]}},mc=uc,hc={pipeId:lc,inputFieldMode:`static`,outputFieldMode:`static`,basePipe:G(lc),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:[V.WEBSITE,V.LINKEDIN],docPath:`/resources/pipe-catalog/company:identity/1`,billableOperations:fc,allowedUserConnectionProviders:[],managedProviders:[`pipe0`],deprecatedProviders:[],defaultInputRequirement:dc(null),defaultPayload:{pipe_id:lc,connector:null,run_if:null,config:{input_fields:{company_name:{alias:``}},output_fields:{cleaned_company_name:{alias:``,enabled:!0},company_social_url:{alias:``,enabled:!0},company_website_url:{alias:``,enabled:!0}}}}},gc=v(`company_name`),_c=v(`company_profile_url`),vc=v(`company_website_url`),yc=v(`cleaned_company_name`),bc=`company:identity@2`,xc=r.object({pipe_id:r.literal(bc),run_if:C(),connector:E(),config:r.object({input_fields:B(r.object({[gc.name]:D({fieldName:gc.name})})),output_fields:z(r.object({[_c.name]:A({fieldName:_c.name}),[yc.name]:A({fieldName:yc.name}),[vc.name]:A({fieldName:vc.name})}))}).optional()}),Sc=e=>H(q(gc,e)),Cc={"company-identity-pipe0":{allowManagedConnection:!0,credits:.3,mode:`always`,provider:`pipe0`}},wc=class extends W{pipeId=bc;payload;payloadSchema=xc;billableOperations=Cc;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[`company-identity-pipe0`]}getInputRequirement(){return Sc(this.payload.config)}getRawOutputFields(){return{[_c.name]:this.catalogOutput(_c),[vc.name]:this.catalogOutput(vc),[yc.name]:this.catalogOutput(yc)}}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}]}},Tc=xc,Ec={pipeId:bc,inputFieldMode:`static`,outputFieldMode:`static`,basePipe:G(bc),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:[V.WEBSITE,V.LINKEDIN],docPath:K(bc),billableOperations:Cc,allowedUserConnectionProviders:[],managedProviders:[`pipe0`],deprecatedProviders:[],defaultInputRequirement:Sc(null),defaultPayload:{pipe_id:bc,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}}}}},Dc=v(`company_website_url`),Oc=v(`companyenrich_matches`),kc=`company:lookalikes:companyenrich@1`,Ac=r.object({pipe_id:r.literal(kc),run_if:C(),connector:T(),config:r.object({limit:ra({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:B(r.object({[Dc.name]:D({fieldName:Dc.name})})),output_fields:z(r.object({[Oc.name]:A({fieldName:Oc.name})}))}).optional()}),jc=e=>H(q(Dc,e)),Mc={"lookalikes-companyenrich":{allowManagedConnection:!0,credits:.2,mode:`onSuccess`,note:`One billing event per result.`,provider:`companyenrich`}},Nc=class extends W{pipeId=kc;payload;payloadSchema=Ac;billableOperations=Mc;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`companyenrich`]}estimateBillableOperations(){return[,,,,,].fill(`lookalikes-companyenrich`)}getInputRequirement(){return jc(this.payload.config)}getRawOutputFields(){return{[Oc.name]:this.catalogOutput(Oc)}}getConnectionsRequirements(){return[{provider:`companyenrich`,rateLimitRatio:1,rateLimitOperation:`company_enrich_generic`,allowManagedConnection:!0}]}},Pc=Ac,Fc={pipeId:kc,inputFieldMode:`static`,outputFieldMode:`static`,basePipe:G(kc),label:`Find company lookalikes`,executionMode:`single`,categories:[`deprecated`],lifecycle:{deprecatedOn:`2026-06-13`,replacedBy:`company:lookalikes:companyenrich@2`},description:`Find companies similar to the company you provide as input.`,tags:[V.COMPANY_PROFILES],docPath:K(kc),billableOperations:Mc,allowedUserConnectionProviders:[`companyenrich`],managedProviders:[`companyenrich`],deprecatedProviders:[],defaultInputRequirement:jc(null),defaultPayload:{pipe_id:kc,connector:null,run_if:null,config:{limit:20,input_fields:{company_website_url:{alias:``}},output_fields:{companyenrich_matches:{alias:``,enabled:!0}}}}},Ic=v(`company_website_url`),Lc=v(`crustdata_companyenrich_match`),Rc=`company:match:crustdata@1`,zc=r.object({pipe_id:r.literal(Rc),run_if:C(),connector:T(),config:r.object({input_fields:B(r.object({[Ic.name]:D({fieldName:Ic.name})})),output_fields:z(r.object({[Lc.name]:A({fieldName:Lc.name})}))}).optional()}),Bc=e=>H(q(Ic,e)),Vc={"company-enrich-crustdata":{allowManagedConnection:!0,credits:2,mode:`onSuccess`,provider:`crustdata`}},Hc=class extends W{pipeId=Rc;payload;payloadSchema=zc;billableOperations=Vc;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`crustdata`]}estimateBillableOperations(){return[`company-enrich-crustdata`]}getInputRequirement(){return Bc(this.payload.config)}getRawOutputFields(){return{[Lc.name]:this.catalogOutput(Lc)}}getConnectionsRequirements(){return[{provider:`crustdata`,rateLimitRatio:1,rateLimitOperation:`crustdata_company_enrich`,allowManagedConnection:!0}]}},Uc=zc,Wc={pipeId:Rc,inputFieldMode:`static`,outputFieldMode:`static`,basePipe:G(Rc),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:[V.WEBSITE,V.LINKEDIN],docPath:K(Rc),billableOperations:Vc,allowedUserConnectionProviders:[`crustdata`],managedProviders:[`crustdata`],deprecatedProviders:[],defaultInputRequirement:Bc(null),defaultPayload:{pipe_id:Rc,connector:null,run_if:null,config:{input_fields:{company_website_url:{alias:``}},output_fields:{crustdata_companyenrich_match:{alias:``,enabled:!0}}}}},Gc=v(`company_website_url`),Kc=v(`company_name`),qc=v(`company_profile_url`),Jc=v(`logodev_describe_match`),Yc=v(`logo_url`),Xc=`company:match:logodev@1`,Zc=r.object({pipe_id:r.literal(Xc),run_if:C(),connector:T(),config:r.object({input_fields:B(r.object({[Gc.name]:D({fieldName:Gc.name})})),output_fields:z(r.object({[qc.name]:A({fieldName:qc.name}),[Yc.name]:A({fieldName:Yc.name}),[Kc.name]:A({fieldName:Kc.name}),[Jc.name]:A({fieldName:Jc.name})}))}).optional()}),Qc=e=>H(q(Gc,e)),$c={"company-describe-logodev":{allowManagedConnection:!0,credits:.1,mode:`onSuccess`,provider:`logodev`}},el=class extends W{pipeId=Xc;payload;payloadSchema=Zc;billableOperations=$c;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`logodev`]}estimateBillableOperations(){return[`company-describe-logodev`]}getInputRequirement(){return Qc(this.payload.config)}getRawOutputFields(){return{[qc.name]:this.catalogOutput(qc),[Kc.name]:this.catalogOutput(Kc),[Yc.name]:this.catalogOutput(Yc),[Jc.name]:this.catalogOutput(Jc)}}getConnectionsRequirements(){return[{provider:`logodev`,rateLimitRatio:1,rateLimitOperation:`logodev_describe`,allowManagedConnection:!0}]}},tl=Zc,nl={pipeId:Xc,inputFieldMode:`static`,outputFieldMode:`static`,basePipe:G(Xc),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:[V.WEBSITE,V.LINKEDIN],docPath:K(Xc),billableOperations:$c,allowedUserConnectionProviders:[`logodev`],managedProviders:[`logodev`],deprecatedProviders:[],defaultInputRequirement:Qc(null),defaultPayload:{pipe_id:Xc,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}}}}},rl=`company:newssummary:website@1`,il=v(`company_news_summary`),al=v(`company_website_url`),ol=r.object({pipe_id:r.literal(rl),run_if:C(),connector:T(),config:r.object({input_fields:B(r.object({[al.name]:D({fieldName:al.name})})),output_fields:z(r.object({[il.name]:A({fieldName:il.name})}))}).optional()}),sl=e=>H(q(al,e)),cl={"company-news-summary-pipe0":{allowManagedConnection:!0,credits:1,mode:`always`,provider:`pipe0`}},ll=class extends W{pipeId=rl;payloadSchema=ol;billableOperations=cl;payload;constructor(e){super(),this.payload=e}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[`company-news-summary-pipe0`]}getInputRequirement(){return sl(this.payload.config)}getRawOutputFields(){return{[il.name]:this.catalogOutput(il)}}getConnectionsRequirements(){return[{provider:`perplexity`,rateLimitRatio:1,rateLimitOperation:`perplexity_generic`,allowManagedConnection:!0}]}},ul=ol,dl={pipeId:rl,basePipe:G(rl),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:[V.NEWS],docPath:K(rl),billableOperations:cl,allowedUserConnectionProviders:[],managedProviders:[`pipe0`],deprecatedProviders:[],defaultInputRequirement:sl(null),defaultPayload:{pipe_id:rl,run_if:null,connector:null,config:{input_fields:{company_website_url:{alias:``}},output_fields:{company_news_summary:{alias:``,enabled:!0}}}}},fl=v(`company_website_url`),pl=v(`company_social_url`),ml=v(`company_description`),hl=v(`company_industry`),gl=v(`company_region`),_l=v(`headcount`),vl=v(`estimated_revenue`),yl=v(`founded_year`),bl=`company:overview@1`,xl=r.object({pipe_id:r.literal(bl),run_if:C(),connector:E(),config:r.object({input_fields:B(r.object({[fl.name]:D({fieldName:fl.name}),[pl.name]:D({fieldName:pl.name})})),output_fields:z(r.object({[ml.name]:A({fieldName:ml.name}),[hl.name]:A({fieldName:hl.name}),[gl.name]:A({fieldName:gl.name}),[_l.name]:A({fieldName:_l.name}),[vl.name]:A({fieldName:vl.name}),[yl.name]:A({fieldName:yl.name})}))}).optional()}),Sl=e=>U(q(fl,e),q(pl,e)),Cl={"company-overview-pipe0":{provider:`pipe0`,allowManagedConnection:!0,credits:1,mode:`always`}},wl=class extends W{pipeId=bl;payloadSchema=xl;billableOperations=Cl;payload;constructor(e){super(),this.payload=e}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[`company-overview-pipe0`]}getInputRequirement(){return Sl(this.payload.config)}getRawOutputFields(){return{[ml.name]:this.catalogOutput(ml),[hl.name]:this.catalogOutput(hl),[gl.name]:this.catalogOutput(gl),[_l.name]:this.catalogOutput(_l),[vl.name]:this.catalogOutput(vl),[yl.name]:this.catalogOutput(yl)}}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}]}},Tl=xl,El={pipeId:bl,basePipe:G(bl),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:[V.WEBSITE,V.LINKEDIN,V.FINANCIAL_DATA,V.DEPRECATED],allowedUserConnectionProviders:[],managedProviders:[`pipe0`],deprecatedProviders:[],billableOperations:Cl,defaultInputRequirement:Sl(null),defaultPayload:{pipe_id:bl,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}}}}},Dl=v(`company_website_url`),Ol=v(`company_profile_url`),kl=v(`company_description`),Al=v(`company_industry`),jl=v(`company_region`),Ml=v(`headcount`),Nl=v(`estimated_revenue`),Pl=v(`founded_year`),Fl=v(`company_name`),Il=`company:overview@2`,Ll=r.object({pipe_id:r.literal(Il),run_if:C(),connector:E(),config:r.object({input_fields:B(r.object({[Dl.name]:D({fieldName:Dl.name}),[Ol.name]:D({fieldName:Ol.name})})),output_fields:z(r.object({[kl.name]:A({fieldName:kl.name}),[Al.name]:A({fieldName:Al.name}),[jl.name]:A({fieldName:jl.name}),[Ml.name]:A({fieldName:Ml.name}),[Nl.name]:A({fieldName:Nl.name}),[Pl.name]:A({fieldName:Pl.name}),[Fl.name]:A({fieldName:Fl.name})}))}).optional()}),Rl=e=>U(q(Dl,e),q(Ol,e)),zl={"company-overview-pipe0":{provider:`pipe0`,allowManagedConnection:!0,credits:1,mode:`always`}},Bl=class extends W{pipeId=Il;payloadSchema=Ll;billableOperations=zl;payload;constructor(e){super(),this.payload=e}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[`company-overview-pipe0`]}getInputRequirement(){return Rl(this.payload.config)}getRawOutputFields(){return{[kl.name]:this.catalogOutput(kl),[Al.name]:this.catalogOutput(Al),[jl.name]:this.catalogOutput(jl),[Ml.name]:this.catalogOutput(Ml),[Nl.name]:this.catalogOutput(Nl),[Pl.name]:this.catalogOutput(Pl),[Fl.name]:this.catalogOutput(Fl)}}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}]}},Vl=Ll,Hl={pipeId:Il,basePipe:G(Il),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:K(Il),tags:[V.WEBSITE,V.LINKEDIN,V.FINANCIAL_DATA],allowedUserConnectionProviders:[],managedProviders:[`pipe0`],deprecatedProviders:[],billableOperations:zl,defaultInputRequirement:Rl(null),defaultPayload:{pipe_id:Il,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}}}}},Ul=v(`company_website_url`),Wl=v(`technology_list`),Gl=v(`spending_trend`),Kl=v(`technology_match_builtwith`),ql=`company:techstack:builtwith@1`,Jl=r.object({pipe_id:r.literal(ql),connector:T(),run_if:C(),config:r.object({input_fields:B(r.object({[Ul.name]:D({fieldName:Ul.name})})),output_fields:z(r.object({[Wl.name]:A({fieldName:Wl.name}),[Kl.name]:A({fieldName:Kl.name}),[Gl.name]:A({fieldName:Gl.name})}))}).optional()}),Yl=e=>H(q(Ul,e)),Xl={"technology-stack-builtwith":{provider:`builtwith`,allowManagedConnection:!0,credits:2,mode:`always`}},Zl=class extends W{pipeId=ql;payload;payloadSchema=Jl;billableOperations=Xl;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`builtwith`]}estimateBillableOperations(){return[`technology-stack-builtwith`]}getInputRequirement(){return Yl(this.payload.config)}getRawOutputFields(){return{[Wl.name]:this.catalogOutput(Wl),[Kl.name]:this.catalogOutput(Kl),[Gl.name]:this.catalogOutput(Gl)}}getConnectionsRequirements(){return[{provider:`builtwith`,rateLimitRatio:1,rateLimitOperation:`builtwith_generic`,allowManagedConnection:!0}]}},Ql=Jl,$l={pipeId:ql,basePipe:G(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:[V.WEBSITE],inputFieldMode:`static`,outputFieldMode:`static`,docPath:K(ql),billableOperations:Xl,defaultInputRequirement:Yl(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}}}}},eu=`company:websiteurl:email@1`,tu=v(`company_website_url`),nu=v(`email`),ru=r.object({pipe_id:r.literal(eu),run_if:C(),connector:E(),config:r.object({input_fields:B(r.object({[nu.name]:D({fieldName:nu.name})})),output_fields:z(r.object({[tu.name]:A({fieldName:tu.name})}))}).optional()}),iu=e=>H(q(nu,e)),au={"company-domain-from-workemail-pipe0":{credits:0,allowManagedConnection:!0,mode:`always`,provider:`pipe0`}},ou=class extends W{pipeId=eu;payload;payloadSchema=ru;billableOperations=au;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[`company-domain-from-workemail-pipe0`]}getInputRequirement(){return iu(this.payload.config)}getRawOutputFields(){return{[tu.name]:this.catalogOutput(tu)}}getConnectionsRequirements(){return[{provider:`pipe0`,rateLimitRatio:1,rateLimitOperation:`pipe0_logic`,allowManagedConnection:!0}]}},su=ru,cu={pipeId:eu,basePipe:G(eu),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:[V.EMAIL,V.WORK_EMAIL,V.WEBSITE],docPath:K(eu),allowedUserConnectionProviders:[],managedProviders:[`pipe0`],deprecatedProviders:[],billableOperations:au,defaultInputRequirement:iu(null),defaultPayload:{pipe_id:eu,connector:null,run_if:null,config:{input_fields:{email:{alias:``}},output_fields:{company_website_url:{alias:``,enabled:!0}}}}},lu=`people:email:iswork@1`,uu=v(`is_work_email`),du=v(`email`),fu=r.object({pipe_id:r.literal(lu),run_if:C(),connector:E(),config:r.object({input_fields:B(r.object({[du.name]:D({fieldName:du.name})})),output_fields:z(r.object({[uu.name]:A({fieldName:uu.name})}))}).optional()}),pu=e=>H(q(du,e)),mu={"is-workemail-pipe0":{provider:`pipe0`,allowManagedConnection:!0,credits:0,mode:`always`}},hu=class extends W{pipeId=lu;payload;payloadSchema=fu;billableOperations=mu;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[`is-workemail-pipe0`]}getInputRequirement(){return pu(this.payload.config)}getRawOutputFields(){return{[uu.name]:this.catalogOutput(uu)}}getConnectionsRequirements(){return[{provider:`pipe0`,rateLimitRatio:1,rateLimitOperation:`pipe0_logic`,allowManagedConnection:!0}]}},gu=fu,_u={pipeId:lu,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:[V.EMAIL,V.WORK_EMAIL],docPath:K(lu),billableOperations:mu,basePipe:G(lu),allowedUserConnectionProviders:[],inputFieldMode:`static`,outputFieldMode:`static`,managedProviders:[`pipe0`],deprecatedProviders:[],defaultInputRequirement:pu(null),defaultPayload:{pipe_id:lu,run_if:null,connector:null,config:{input_fields:{email:{alias:``}},output_fields:{is_work_email:{alias:``,enabled:!0}}}}},vu=`people:email:validate:zerobounce@1`,yu=v(`work_email`),bu=v(`is_email_valid`),xu=r.object({pipe_id:r.literal(vu),connector:T(),run_if:C(),config:r.object({input_fields:B(r.object({[yu.name]:D({fieldName:yu.name})})),output_fields:z(r.object({[bu.name]:A({fieldName:bu.name})}))}).optional()}),Su=e=>H(q(yu,e)),Cu={"validate-email-zerobounce":{provider:`zerobounce`,allowManagedConnection:!0,credits:.3,mode:`always`}},wu=class extends W{pipeId=vu;payload;payloadSchema=xu;billableOperations=Cu;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`zerobounce`]}estimateBillableOperations(){return[`validate-email-zerobounce`]}getInputRequirement(){return Su(this.payload.config)}getRawOutputFields(){return{[bu.name]:this.catalogOutput(bu)}}getConnectionsRequirements(){return[{provider:`zerobounce`,rateLimitRatio:1,rateLimitOperation:`zerobounce_generic`,allowManagedConnection:!0}]}},Tu=xu,Eu={pipeId:vu,basePipe:G(vu),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:[V.EMAIL],docPath:`/resources/pipe-catalog/people:email:validate:zerobounce/1`,billableOperations:Cu,inputFieldMode:`static`,outputFieldMode:`static`,allowedUserConnectionProviders:[`zerobounce`],managedProviders:[`zerobounce`],deprecatedProviders:[],defaultInputRequirement:Su(null),defaultPayload:{pipe_id:vu,connector:null,run_if:null,config:{input_fields:{work_email:{alias:``}},output_fields:{is_email_valid:{alias:``,enabled:!0}}}}},Du=`people:email:validate:zerobounce@2`,Ou=v(`email`),ku=v(`zerobounce_validation_status`),Au=v(`zerobounce_validation_match`),ju=r.object({pipe_id:r.literal(Du),connector:T(),run_if:C(),config:r.object({input_fields:B(r.object({[Ou.name]:D({fieldName:Ou.name})})),output_fields:z(r.object({[Au.name]:A({fieldName:Au.name}),[ku.name]:A({fieldName:ku.name})}))}).optional()}),Mu=e=>H(q(Ou,e)),Nu={"validate-email-zerobounce":{provider:`zerobounce`,allowManagedConnection:!0,credits:.3,mode:`always`}},Pu=class extends W{pipeId=Du;payload;payloadSchema=ju;billableOperations=Nu;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`zerobounce`]}estimateBillableOperations(){return[`validate-email-zerobounce`]}getInputRequirement(){return Mu(this.payload.config)}getRawOutputFields(){return{[ku.name]:this.catalogOutput(ku),[Au.name]:this.catalogOutput(Au)}}getConnectionsRequirements(){return[{provider:`zerobounce`,rateLimitRatio:1,rateLimitOperation:`zerobounce_generic`,allowManagedConnection:!0}]}},Fu=ju,Iu={pipeId:Du,basePipe:G(Du),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:[V.EMAIL],docPath:K(Du),billableOperations:Nu,inputFieldMode:`static`,outputFieldMode:`static`,allowedUserConnectionProviders:[`zerobounce`],managedProviders:[`zerobounce`],deprecatedProviders:[],defaultInputRequirement:Mu(null),defaultPayload:{pipe_id:Du,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 Lu(e){return(e.widgets||{}).display_value?.label}function Ru(e){console.dir(e,{depth:100})}function zu(e){return typeof e==`object`&&e?JSON.stringify(e):e}function J(e){return e===0?1:e===1?.3:e===2?.2:.1}function Bu(e){if(typeof e!=`object`||!e||Array.isArray(e))return e;let t={};return Object.keys(e).sort().forEach(n=>{t[n]=Bu(e[n])}),t}const Vu={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 Y(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 Hu=`people:identity:email:waterfall@1`,Uu=v(`email`),Wu=v(`company_website_url`),Gu=v(`name`),Ku=v(`job_title`),qu=v(`profile_url`),Ju=v(`company_profile_url`),Yu=v(`company_name`),Xu=[`findymail`,`hunter`,`crustdata`],Zu=[{provider:`findymail`},{provider:`hunter`},{provider:`crustdata`}],Qu=r.object({pipe_id:r.literal(Hu),connector:T(),run_if:C(),config:r.object({providers:O({availableProviders:Xu,defaultProviders:Zu,sectionKey:`general`}),input_fields:B(r.object({[Uu.name]:D({fieldName:Uu.name})})),output_fields:z(r.object({[Gu.name]:A({fieldName:Gu.name}),[qu.name]:A({fieldName:qu.name}),[Ku.name]:A({fieldName:Ku.name}),[Wu.name]:A({fieldName:Wu.name}),[Yu.name]:A({fieldName:Yu.name}),[Ju.name]:A({fieldName:Ju.name})}))}).optional()}),$u=e=>H(q(Uu,e)),ed={"reverse-email-lookup-hunter":{provider:`hunter`,allowManagedConnection:!0,credits:2,mode:`onSuccess`},"reverse-email-lookup-findymail":{provider:`findymail`,allowManagedConnection:!0,credits:2,mode:`onSuccess`},"reverse-email-lookup-crustdata":{provider:`crustdata`,allowManagedConnection:!0,credits:5,mode:`onSuccess`}},td=class extends W{pipeId=Hu;payload;payloadSchema=Qu;billableOperations=ed;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return this.payload.config?.providers.map(e=>e.provider)||[]}estimateBillableOperations(){return this.getProviderNames().map(e=>Y(e,this.billableOperations).billableOperation)}getInputRequirement(){return $u(this.payload.config)}getRawOutputFields(){return{[Gu.name]:this.catalogOutput(Gu,{isPrimaryOutput:!0}),[qu.name]:this.catalogOutput(qu,{isPrimaryOutput:!0}),[Ku.name]:this.catalogOutput(Ku,{isPrimaryOutput:!0}),[Yu.name]:this.catalogOutput(Yu,{isPrimaryOutput:!0}),[Ju.name]:this.catalogOutput(Ju,{isPrimaryOutput:!0}),[Wu.name]:this.catalogOutput(Wu,{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:J(n),rateLimitOperation:e[t.provider],allowManagedConnection:!0}))}},nd=Qu,rd={pipeId:Hu,basePipe:G(Hu),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:[V.EMAIL,V.PEOPLE_PROFILES],docPath:K(Hu),managedProviders:Xu,deprecatedProviders:[],allowedUserConnectionProviders:Xu,inputFieldMode:`static`,outputFieldMode:`static`,billableOperations:ed,defaultInputRequirement:$u(null),defaultPayload:{pipe_id:Hu,connector:null,run_if:null,config:{providers:Zu,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}}}}},id=`people:match:role:waterfall@1`,ad=v(`company_website_url`),od=v(`role_finder_match`),sd=[`leadmagic`],cd=[{provider:`leadmagic`}],ld=r.object({pipe_id:r.literal(id),run_if:C(),connector:T(),config:r.object({providers:O({sectionKey:`general`,defaultProviders:cd,availableProviders:sd}),roles:Ki({sectionKey:`general`,groupPath:`config.general`,label:`Roles`,path:`config.roles`,info:`Company roles to include`,maxItems:3,minItems:1}),input_fields:B(r.object({[ad.name]:D({fieldName:ad.name})})),output_fields:z(r.object({[od.name]:A({fieldName:od.name})}))})}),ud=e=>U(q(ad,e)),dd={"find-role-leadmagic":{provider:`leadmagic`,allowManagedConnection:!0,credits:1,mode:`onSuccess`}},fd=class extends W{pipeId=id;payload;payloadSchema=ld;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=>Y(e,this.billableOperations).billableOperation)}getInputRequirement(){return ud(this.payload.config)}getRawOutputFields(){return{[od.name]:this.catalogOutput(od,{isPrimaryOutput:!0})}}getConnectionsRequirements(){let e={leadmagic:`leadmagic_role_finder`};return(this.payload.config?.providers||[]).map((t,n)=>({provider:t.provider,rateLimitRatio:J(n),rateLimitOperation:e[t.provider],allowManagedConnection:!0}))}},pd=ld,md={pipeId:id,basePipe:G(id),managedProviders:sd,deprecatedProviders:[],allowedUserConnectionProviders:sd,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:[V.PEOPLE_PROFILES],docPath:K(id),billableOperations:dd,inputFieldMode:`static`,outputFieldMode:`static`,defaultInputRequirement:ud(null),defaultPayload:{pipe_id:id,run_if:null,connector:null,config:{roles:[],providers:cd,input_fields:{company_website_url:{alias:``}},output_fields:{role_finder_match:{alias:``,enabled:!0}}}}},hd=`people:mobilenumber:professionalprofile:waterfall@1`,gd=v(`professional_profile_url`),_d=v(`mobile_number`),vd=[`leadmagic`,`prospeo`],yd=[{provider:`leadmagic`},{provider:`prospeo`}],bd=r.object({pipe_id:r.literal(hd),run_if:C(),connector:T(),config:r.object({providers:O({sectionKey:`general`,defaultProviders:yd,availableProviders:vd}),input_fields:B(r.object({[gd.name]:D({fieldName:gd.name})})),output_fields:z(r.object({[_d.name]:A({fieldName:_d.name})}))}).optional()}),xd=e=>H(q(gd,e)),Sd={"mobile-from-profile-leadmagic":{provider:`leadmagic`,allowManagedConnection:!0,credits:2,mode:`onSuccess`},"mobile-from-profile-prospeo":{provider:`prospeo`,allowManagedConnection:!0,credits:5,mode:`onSuccess`}},Cd=class extends W{pipeId=hd;payload;payloadSchema=bd;billableOperations=Sd;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return this.payload.config?.providers.map(e=>e.provider)||[]}estimateBillableOperations(){return this.getProviderNames().map(e=>Y(e,this.billableOperations).billableOperation)}getInputRequirement(){return xd(this.payload.config)}getRawOutputFields(){return{[_d.name]:this.catalogOutput(_d)}}getConnectionsRequirements(){let e={leadmagic:`leadmagic_email_lookup`,prospeo:`prospeo_phone_number_lookup`};return(this.payload.config?.providers||[]).map((t,n)=>({provider:t.provider,rateLimitRatio:J(n),rateLimitOperation:e[t.provider],allowManagedConnection:!0}))}},wd=bd,Td={pipeId:hd,basePipe:G(hd),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:[V.PHONE,V.WATERFALL],billableOperations:Sd,defaultInputRequirement:xd(null),inputFieldMode:`static`,outputFieldMode:`static`,managedProviders:vd,deprecatedProviders:[],allowedUserConnectionProviders:vd,defaultPayload:{pipe_id:hd,connector:null,run_if:null,config:{providers:yd,input_fields:{professional_profile_url:{alias:``}},output_fields:{mobile_number:{alias:``,enabled:!0}}}}},Ed=`people:mobilenumber:workemail:waterfall@1`,Dd=v(`work_email`),Od=v(`mobile_number`),kd=[`leadmagic`],Ad=[{provider:`leadmagic`}],jd=r.object({pipe_id:r.literal(Ed),run_if:C(),connector:T(),config:r.object({providers:O({sectionKey:`general`,availableProviders:kd,defaultProviders:Ad}),input_fields:B(r.object({[Dd.name]:D({fieldName:Dd.name})})),output_fields:z(r.object({[Od.name]:A({fieldName:Od.name})}))}).optional()}),Md=e=>H(q(Dd,e)),Nd={"mobile-from-workemail-leadmagic":{provider:`leadmagic`,allowManagedConnection:!0,credits:2,mode:`onSuccess`}},Pd=class extends W{pipeId=Ed;payload;payloadSchema=jd;billableOperations=Nd;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return this.payload.config?.providers?.map(e=>e.provider)||[]}estimateBillableOperations(){return this.getProviderNames().map(e=>Y(e,this.billableOperations).billableOperation)}getInputRequirement(){return Md(this.payload.config)}getRawOutputFields(){return{[Od.name]:this.catalogOutput(Od)}}getConnectionsRequirements(){let e={leadmagic:`leadmagic_email_lookup`};return(this.payload.config?.providers||[]).map((t,n)=>({provider:t.provider,rateLimitRatio:J(n),rateLimitOperation:e[t.provider],allowManagedConnection:!0}))}},Fd=jd,Id={pipeId:Ed,basePipe:G(Ed),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:[V.PHONE,V.WATERFALL],docPath:`/resources/pipe-catalog/people:mobilenumber:workemail:waterfall/1`,billableOperations:Nd,defaultInputRequirement:Md(null),inputFieldMode:`static`,outputFieldMode:`static`,allowedUserConnectionProviders:kd,managedProviders:kd,deprecatedProviders:[],defaultPayload:{pipe_id:Ed,connector:null,run_if:null,config:{providers:Ad,input_fields:{work_email:{alias:``}},output_fields:{mobile_number:{alias:``,enabled:!0}}}}},Ld=`people:name:split@1`,Rd=v(`name`),zd=v(`first_name`),Bd=v(`last_name`),Vd=r.object({pipe_id:r.literal(Ld),connector:E(),run_if:C(),config:r.object({input_fields:B(r.object({[Rd.name]:D({fieldName:Rd.name})})),output_fields:z(r.object({[zd.name]:A({fieldName:zd.name}),[Bd.name]:A({fieldName:Bd.name})}))}).optional()}),Hd=e=>H(q(Rd,e)),Ud={"split-name-pipe0":{provider:`pipe0`,allowManagedConnection:!0,credits:0,mode:`always`}},Wd=class extends W{pipeId=Ld;payload;payloadSchema=Vd;billableOperations=Ud;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[`split-name-pipe0`]}getInputRequirement(){return Hd(this.payload.config)}getRawOutputFields(){return{[zd.name]:this.catalogOutput(zd),[Bd.name]:this.catalogOutput(Bd)}}getConnectionsRequirements(){return[{provider:`pipe0`,rateLimitRatio:1,rateLimitOperation:`pipe0_logic`,allowManagedConnection:!0}]}},Gd=Vd,Kd={pipeId:Ld,basePipe:G(Ld),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:[V.NAMES],docPath:K(Ld),billableOperations:Ud,inputFieldMode:`static`,outputFieldMode:`static`,defaultInputRequirement:Hd(null),allowedUserConnectionProviders:[],managedProviders:[`pipe0`],deprecatedProviders:[],defaultPayload:{pipe_id:Ld,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`,Jd=v(`profile_url`),Yd=v(`personal_email`),Xd=v(`alternate_personal_emails`),Zd=[`clado`,`leadmagic`,`mixrank`],Qd=[{provider:`leadmagic`},{provider:`mixrank`}],$d=r.object({pipe_id:r.literal(qd),run_if:C(),connector:T(),config:r.object({providers:O({sectionKey:`general`,availableProviders:Zd,defaultProviders:Qd}),input_fields:B(r.object({[Jd.name]:D({fieldName:Jd.name})})),output_fields:z(r.object({[Yd.name]:A({fieldName:Yd.name}),[Xd.name]:A({fieldName:Xd.name})}))}).optional()}),ef=e=>H(q(Jd,e)),tf={"personal-email-from-profile-clado":{provider:`clado`,allowManagedConnection:!0,credits:2,mode:`always`},"personal-email-from-profile-leadmagic":{provider:`leadmagic`,allowManagedConnection:!0,credits:1,mode:`onSuccess`},"personal-email-reveal-mixrank":{provider:`mixrank`,allowManagedConnection:!0,credits:1,mode:`onSuccess`}},nf=class extends W{pipeId=qd;payload;payloadSchema=$d;billableOperations=tf;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return this.payload.config?.providers.map(e=>e.provider)||[]}estimateBillableOperations(){return this.getProviderNames().map(e=>Y(e,this.billableOperations).billableOperation)}getInputRequirement(){return ef(this.payload.config)}getRawOutputFields(){return{[Yd.name]:this.catalogOutput(Yd,{isPrimaryOutput:!0}),[Xd.name]:this.catalogOutput(Xd)}}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:J(n),rateLimitOperation:e[t.provider],allowManagedConnection:!0}))}},rf=$d,af={pipeId:qd,basePipe:G(qd),allowedUserConnectionProviders:Zd,managedProviders:Zd,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:[V.EMAIL,V.PERSONAL_EMAIL],docPath:K(qd),billableOperations:tf,defaultInputRequirement:ef(null),inputFieldMode:`static`,outputFieldMode:`static`,defaultPayload:{pipe_id:qd,connector:null,run_if:null,config:{providers:Qd,input_fields:{profile_url:{alias:``}},output_fields:{personal_email:{alias:``,enabled:!0},alternate_personal_emails:{alias:``,enabled:!0}}}}},of=`people:phone:profile:waterfall@1`,sf=v(`profile_url`),cf=v(`mobile`),lf=[`leadmagic`,`prospeo`,`amplemarket`,`findymail`,`clado`],uf=[{provider:`leadmagic`},{provider:`prospeo`},{provider:`amplemarket`},{provider:`findymail`}],df=r.object({pipe_id:r.literal(of),run_if:C(),connector:T(),config:r.object({providers:O({sectionKey:`general`,defaultProviders:uf,availableProviders:lf}),input_fields:B(r.object({[sf.name]:D({fieldName:sf.name})})),output_fields:z(r.object({[cf.name]:A({fieldName:cf.name})}))}).optional()}),ff=e=>H(q(sf,e)),pf={"mobile-from-profile-leadmagic":{provider:`leadmagic`,allowManagedConnection:!0,credits:2,mode:`onSuccess`},"mobile-from-profile-clado":{provider:`clado`,allowManagedConnection:!0,credits:5,mode:`onSuccess`},"mobile-from-profile-prospeo":{provider:`prospeo`,allowManagedConnection:!0,credits:5,mode:`onSuccess`},"mobile-from-profile-findymail":{provider:`findymail`,allowManagedConnection:!0,credits:6,mode:`onSuccess`},"phone-lookup-amplemarket":{provider:`amplemarket`,allowManagedConnection:!0,credits:4,mode:`onSuccess`}},mf=class extends W{pipeId=of;payload;payloadSchema=df;billableOperations=pf;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return this.payload.config?.providers.map(e=>e.provider)||[]}estimateBillableOperations(){return this.getProviderNames().map(e=>Y(e,this.billableOperations).billableOperation)}getInputRequirement(){return ff(this.payload.config)}getRawOutputFields(){return{[cf.name]:this.catalogOutput(cf,{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:J(n),rateLimitOperation:e[t.provider],allowManagedConnection:!0}))}},hf=df,gf={pipeId:of,basePipe:G(of),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:K(of),tags:[V.PHONE,V.WATERFALL],billableOperations:pf,defaultInputRequirement:ff(null),inputFieldMode:`static`,outputFieldMode:`static`,managedProviders:lf,allowedUserConnectionProviders:lf,deprecatedProviders:[`clado`],defaultPayload:{pipe_id:of,connector:null,run_if:null,config:{providers:uf,input_fields:{profile_url:{alias:``}},output_fields:{mobile:{alias:``,enabled:!0}}}}},_f=`people:phone:workemail:waterfall@1`,vf=v(`work_email`),yf=v(`mobile`),bf=[`leadmagic`,`amplemarket`],xf=[{provider:`leadmagic`},{provider:`amplemarket`}],Sf=r.object({pipe_id:r.literal(_f),run_if:C(),connector:T(),config:r.object({providers:O({sectionKey:`general`,availableProviders:bf,defaultProviders:xf}),input_fields:B(r.object({[vf.name]:D({fieldName:vf.name})})),output_fields:z(r.object({[yf.name]:A({fieldName:yf.name})}))}).optional()}),Cf=e=>H(q(vf,e)),wf={"mobile-from-workemail-leadmagic":{provider:`leadmagic`,allowManagedConnection:!0,credits:2,mode:`onSuccess`},"email-lookup-amplemarket":{provider:`amplemarket`,allowManagedConnection:!0,credits:4,mode:`onSuccess`}},Tf=class extends W{pipeId=_f;payload;payloadSchema=Sf;billableOperations=wf;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return this.payload.config?.providers.map(e=>e.provider)||[]}estimateBillableOperations(){return this.getProviderNames().map(e=>Y(e,this.billableOperations).billableOperation)}getInputRequirement(){return Cf(this.payload.config)}getRawOutputFields(){return{[yf.name]:this.catalogOutput(yf,{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:J(n),rateLimitOperation:e[t.provider],allowManagedConnection:!0}))}},Ef=Sf,Df={pipeId:_f,basePipe:G(_f),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:[V.PHONE,V.WATERFALL],docPath:K(_f),billableOperations:wf,defaultInputRequirement:Cf(null),inputFieldMode:`static`,outputFieldMode:`static`,allowedUserConnectionProviders:bf,managedProviders:bf,deprecatedProviders:[],defaultPayload:{pipe_id:_f,connector:null,run_if:null,config:{providers:xf,input_fields:{work_email:{alias:``}},output_fields:{mobile:{alias:``,enabled:!0}}}}},Of=`people:professionalprofile:waterfall@1`,kf=v(`professional_profile`),Af=v(`professional_profile_url`),jf=[`prospeo`,`icypeas`],Mf=[{provider:`prospeo`},{provider:`icypeas`}],Nf=r.object({pipe_id:r.literal(Of),run_if:C(),connector:T(),config:r.object({providers:O({sectionKey:`general`,availableProviders:jf,defaultProviders:Mf}),input_fields:B(r.object({[Af.name]:D({fieldName:Af.name})})),output_fields:z(r.object({[kf.name]:A({fieldName:kf.name})}))}).optional()}),Pf=e=>H(q(Af,e)),Ff={"professional-profile-icypeas":{provider:`icypeas`,credits:1,mode:`onSuccess`,allowManagedConnection:!0},"professional-profile-prospeo":{provider:`prospeo`,credits:1,mode:`onSuccess`,allowManagedConnection:!0}},If=class extends W{pipeId=Of;payload;payloadSchema=Nf;billableOperations=Ff;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return this.payload.config?.providers.map(e=>e.provider)||[]}estimateBillableOperations(){return this.getProviderNames().map(e=>Y(e,this.billableOperations).billableOperation)}getInputRequirement(){return Pf(this.payload.config)}getRawOutputFields(){return{[kf.name]:this.catalogOutput(kf)}}getConnectionsRequirements(){let e={icypeas:`icypeas_scrape_profile`,prospeo:`prospeo_social_profile_lookup`};return(this.payload.config?.providers||[]).map((t,n)=>({provider:t.provider,rateLimitRatio:J(n),rateLimitOperation:e[t.provider],allowManagedConnection:!0}))}},Lf=Nf,Rf={pipeId:Of,basePipe:G(Of),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:[V.LINKEDIN,V.WATERFALL],managedProviders:jf,deprecatedProviders:[],allowedUserConnectionProviders:jf,inputFieldMode:`static`,outputFieldMode:`static`,billableOperations:Ff,defaultInputRequirement:Pf(null),defaultPayload:{pipe_id:Of,run_if:null,connector:null,config:{providers:Mf,input_fields:{professional_profile_url:{alias:``}},output_fields:{professional_profile:{alias:``,enabled:!0}}}}},zf=`people:professionalprofileurl:email:waterfall@1`,Bf=v(`email`),Vf=v(`work_email`),Hf=v(`professional_profile_url`),Uf=[`leadmagic`],Wf=[{provider:`leadmagic`}],Gf=r.object({pipe_id:r.literal(zf),run_if:C(),connector:T(),config:r.object({providers:O({sectionKey:`general`,defaultProviders:Wf,availableProviders:Uf}),input_fields:B(r.object({[Bf.name]:D({fieldName:Bf.name}),[Vf.name]:D({fieldName:Vf.name})})),output_fields:z(r.object({[Hf.name]:A({fieldName:Hf.name})}))}).optional()}),Kf=e=>U(q(Bf,e),q(Vf,e)),qf={"profileurl-from-email-leadmagic":{provider:`leadmagic`,allowManagedConnection:!0,credits:3.5,mode:`onSuccess`}},Jf=class extends W{pipeId=zf;payload;payloadSchema=Gf;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=>Y(e,this.billableOperations).billableOperation)}getInputRequirement(){return Kf(this.payload.config)}getRawOutputFields(){return{[Hf.name]:this.catalogOutput(Hf)}}getConnectionsRequirements(){let e={leadmagic:`leadmagic_email_to_b2b_profile`};return(this.payload.config?.providers||[]).map((t,n)=>({provider:t.provider,rateLimitRatio:J(n),rateLimitOperation:e[t.provider],allowManagedConnection:!0}))}},Yf=Gf,Xf={pipeId:zf,basePipe:G(zf),managedProviders:Uf,deprecatedProviders:[],allowedUserConnectionProviders:Uf,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:[V.LINKEDIN],docPath:`/resources/pipe-catalog/people:professionalprofileurl:email:waterfall/1`,billableOperations:qf,inputFieldMode:`static`,outputFieldMode:`static`,defaultInputRequirement:Kf(null),defaultPayload:{pipe_id:zf,run_if:null,connector:null,config:{providers:Wf,input_fields:{email:{alias:``},work_email:{alias:``}},output_fields:{professional_profile_url:{alias:``,enabled:!0}}}}},Zf=`people:professionalprofileurl:name@1`,Qf=v(`name`),$f=v(`company_name`),ep=v(`location_hint`),tp=v(`professional_profile_url`),np=r.object({pipe_id:r.literal(Zf),connector:E(),run_if:C(),config:r.object({input_fields:B(r.object({[Qf.name]:D({fieldName:Qf.name}),[$f.name]:D({fieldName:$f.name}),[ep.name]:D({fieldName:ep.name})})),output_fields:z(r.object({[tp.name]:A({fieldName:tp.name})}))}).optional()}),rp=e=>xa(H(q(Qf,e)),H(q($f,e)),Sa(q(ep,e))),ip={"profileurl-from-name-pipe0":{provider:`pipe0`,allowManagedConnection:!0,credits:.6,mode:`always`}},ap=class extends W{pipeId=Zf;payload;payloadSchema=np;billableOperations=ip;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[`profileurl-from-name-pipe0`]}getInputRequirement(){return rp(this.payload.config)}getRawOutputFields(){return{[tp.name]:this.catalogOutput(tp)}}getConnectionsRequirements(){return[{provider:`serper`,rateLimitRatio:1,rateLimitOperation:`serper_search`,allowManagedConnection:!0}]}},op=np,sp={pipeId:Zf,basePipe:G(Zf),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:[V.LINKEDIN],billableOperations:ip,defaultInputRequirement:rp(null),inputFieldMode:`static`,outputFieldMode:`static`,defaultPayload:{pipe_id:Zf,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}}}}},cp=`people:profile:waterfall@1`,lp=v(`profile`),up=v(`profile_url`),dp=[`prospeo`,`icypeas`,`amplemarket`,`clado`],fp=[{provider:`amplemarket`},{provider:`prospeo`},{provider:`icypeas`}],pp=r.object({pipe_id:r.literal(cp),run_if:C(),connector:T(),config:r.object({providers:O({sectionKey:`general`,availableProviders:dp,defaultProviders:fp}),input_fields:B(r.object({[up.name]:D({fieldName:up.name})})),output_fields:z(r.object({[lp.name]:A({fieldName:lp.name})}))}).optional()}),mp=e=>H(q(up,e)),hp={"professional-profile-icypeas":{provider:`icypeas`,credits:1,mode:`onSuccess`,allowManagedConnection:!0},"professional-profile-prospeo":{provider:`prospeo`,credits:1,mode:`onSuccess`,allowManagedConnection:!0},"professional-profile-clado":{provider:`clado`,credits:1,mode:`onSuccess`,allowManagedConnection:!0},"person-match-amplemarket":{provider:`amplemarket`,credits:1,mode:`onSuccess`,allowManagedConnection:!0}},gp=class extends W{pipeId=cp;payload;payloadSchema=pp;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=>Y(e,this.billableOperations).billableOperation)}getInputRequirement(){return mp(this.payload.config)}getRawOutputFields(){return{[lp.name]:this.catalogOutput(lp,{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:J(n),rateLimitOperation:e[t.provider],allowManagedConnection:!0}))}},_p=pp,vp={pipeId:cp,basePipe:G(cp),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:K(cp),tags:[V.LINKEDIN,V.WATERFALL],managedProviders:dp,deprecatedProviders:[`clado`],allowedUserConnectionProviders:dp,inputFieldMode:`static`,outputFieldMode:`static`,billableOperations:hp,defaultInputRequirement:mp(null),defaultPayload:{pipe_id:cp,run_if:null,connector:null,config:{providers:fp,input_fields:{profile_url:{alias:``}},output_fields:{profile:{alias:``,enabled:!0}}}}},yp=v(`work_email`),bp=v(`crustdata_person_match`),xp=v(`crustdata_profile_match_score`),Sp=`people:profile:workemail:crustdata@1`,Cp=r.object({pipe_id:r.literal(Sp),run_if:C(),connector:T(),config:r.object({input_fields:B(r.object({[yp.name]:D({fieldName:yp.name})})),output_fields:z(r.object({[bp.name]:A({fieldName:bp.name}),[xp.name]:A({fieldName:xp.name})}))}).optional()}),wp=e=>H(q(yp,e)),Tp={"profile-from-workemail-crustdata":{allowManagedConnection:!0,credits:5,mode:`onSuccess`,provider:`crustdata`}},Ep=class extends W{pipeId=Sp;payload;payloadSchema=Cp;billableOperations=Tp;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`crustdata`]}estimateBillableOperations(){return[`profile-from-workemail-crustdata`]}getInputRequirement(){return wp(this.payload.config)}getRawOutputFields(){return{[bp.name]:this.catalogOutput(bp),[xp.name]:this.catalogOutput(xp)}}getConnectionsRequirements(){return[{provider:`crustdata`,rateLimitRatio:1,rateLimitOperation:`crustdata_realtime_person_enrich`,allowManagedConnection:!0}]}},Dp=Cp,Op={pipeId:Sp,inputFieldMode:`static`,outputFieldMode:`static`,basePipe:G(Sp),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:[V.EMAIL,V.PEOPLE_PROFILES],docPath:K(Sp),billableOperations:Tp,allowedUserConnectionProviders:[`crustdata`],managedProviders:[`crustdata`],deprecatedProviders:[],defaultInputRequirement:wp(null),defaultPayload:{pipe_id:Sp,connector:null,run_if:null,config:{input_fields:{work_email:{alias:``}},output_fields:{crustdata_person_match:{alias:``,enabled:!0},crustdata_profile_match_score:{alias:``,enabled:!0}}}}},kp=`people:profileurl:email:waterfall@1`,Ap=v(`email`),jp=v(`work_email`),Mp=v(`profile_url`),Np=[`leadmagic`],Pp=[{provider:`leadmagic`}],Fp=r.object({pipe_id:r.literal(kp),run_if:C(),connector:T(),config:r.object({providers:O({sectionKey:`general`,defaultProviders:Pp,availableProviders:Np}),input_fields:B(r.object({[Ap.name]:D({fieldName:Ap.name}),[jp.name]:D({fieldName:jp.name})})),output_fields:z(r.object({[Mp.name]:A({fieldName:Mp.name})}))}).optional()}),Ip=e=>U(q(Ap,e),q(jp,e)),Lp={"profileurl-from-email-leadmagic":{provider:`leadmagic`,allowManagedConnection:!0,credits:3.5,mode:`onSuccess`}},Rp=class extends W{pipeId=kp;payload;payloadSchema=Fp;billableOperations=Lp;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return this.payload.config?.providers.map(e=>e.provider)||[]}estimateBillableOperations(){return this.getProviderNames().map(e=>Y(e,this.billableOperations).billableOperation)}getInputRequirement(){return Ip(this.payload.config)}getRawOutputFields(){return{[Mp.name]:this.catalogOutput(Mp,{isPrimaryOutput:!0})}}getConnectionsRequirements(){let e={leadmagic:`leadmagic_email_to_b2b_profile`};return(this.payload.config?.providers||[]).map((t,n)=>({provider:t.provider,rateLimitRatio:J(n),rateLimitOperation:e[t.provider],allowManagedConnection:!0}))}},zp=Fp,Bp={pipeId:kp,basePipe:G(kp),managedProviders:Np,deprecatedProviders:[],allowedUserConnectionProviders:Np,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:[V.LINKEDIN],docPath:K(kp),billableOperations:Lp,inputFieldMode:`static`,outputFieldMode:`static`,defaultInputRequirement:Ip(null),defaultPayload:{pipe_id:kp,run_if:null,connector:null,config:{providers:Pp,input_fields:{email:{alias:``},work_email:{alias:``}},output_fields:{profile_url:{alias:``,enabled:!0}}}}},Vp=`people:validate:email:zerobounce@1`,Hp=v(`work_email`),Up=v(`ip_address`),Wp=v(`is_email_valid`),Gp=r.object({pipe_id:r.literal(Vp),connector:T(),run_if:C(),config:r.object({input_fields:B(r.object({[Hp.name]:D({fieldName:Hp.name}),[Up.name]:D({fieldName:Up.name})})),output_fields:z(r.object({[Wp.name]:A({fieldName:Wp.name})}))}).optional()}),Kp=e=>xa(H(q(Hp,e)),Sa(q(Up,e))),qp={"validate-email-zerobounce":{provider:`zerobounce`,allowManagedConnection:!0,credits:.3,mode:`always`}},Jp=class extends W{pipeId=Vp;payload;payloadSchema=Gp;billableOperations=qp;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`zerobounce`]}estimateBillableOperations(){return[`validate-email-zerobounce`]}getInputRequirement(){return Kp(this.payload.config)}getRawOutputFields(){return{[Wp.name]:this.catalogOutput(Wp)}}getConnectionsRequirements(){return[{provider:`zerobounce`,rateLimitRatio:1,rateLimitOperation:`zerobounce_generic`,allowManagedConnection:!0}]}},Yp=Gp,Xp={pipeId:Vp,basePipe:G(Vp),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:[V.EMAIL],docPath:`/resources/pipe-catalog/people:validate:email:zerobounce/1`,billableOperations:qp,inputFieldMode:`static`,outputFieldMode:`static`,allowedUserConnectionProviders:[`zerobounce`],managedProviders:[`zerobounce`],deprecatedProviders:[],defaultInputRequirement:Kp(null),defaultPayload:{pipe_id:Vp,connector:null,run_if:null,config:{input_fields:{ip_address:{alias:``},work_email:{alias:``}},output_fields:{is_email_valid:{alias:``,enabled:!0}}}}},Zp=`people:workemail:profileurl:waterfall@1`,Qp=v(`profile_url`),$p=v(`work_email`),em=v(`email_validation_status`),tm=[`hunter`,`amplemarket`,`findymail`,`leadmagic`,`crustdata`,`clado`],nm=[`clado`],rm=[{provider:`hunter`},{provider:`amplemarket`},{provider:`leadmagic`},{provider:`findymail`},{provider:`crustdata`}],im=r.object({pipe_id:r.literal(Zp),connector:T(),run_if:C(),config:r.object({providers:O({availableProviders:tm,defaultProviders:rm,sectionKey:`general`}),allow_catch_all_emails:k({path:`config.allow_catch_all_emails`,defaultValue:!0,groupPath:`config.general`,sectionKey:`general`,info:``,label:`Allow catch-all emails`}),allow_risky_emails:k({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:B(r.object({[Qp.name]:D({fieldName:Qp.name})})),output_fields:z(r.object({[$p.name]:A({fieldName:$p.name}),[em.name]:A({fieldName:em.name})}))}).optional()}),am=e=>H(q(Qp,e)),om={"workemail-from-profileurl-hunter":{provider:`hunter`,allowManagedConnection:!0,credits:1,mode:`onSuccess`},"workemail-from-profileurl-leadmagic":{provider:`leadmagic`,allowManagedConnection:!0,credits:2,mode:`onSuccess`},"workemail-from-profileurl-findymail":{provider:`findymail`,allowManagedConnection:!0,credits:2,mode:`onSuccess`},"workemail-from-profileurl-crustdata":{provider:`crustdata`,allowManagedConnection:!0,credits:3,mode:`onSuccess`},"workemail-from-profileurl-clado":{provider:`clado`,allowManagedConnection:!0,credits:3.5,mode:`onSuccess`},"email-lookup-amplemarket":{provider:`amplemarket`,allowManagedConnection:!0,credits:2.5,mode:`onSuccess`}},sm=class extends W{pipeId=Zp;payload;payloadSchema=im;billableOperations=om;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return this.payload.config?.providers.map(e=>e.provider)||[]}estimateBillableOperations(){return this.getProviderNames().map(e=>Y(e,this.billableOperations).billableOperation)}getInputRequirement(){return am(this.payload.config)}getRawOutputFields(){return{[$p.name]:this.catalogOutput($p,{isPrimaryOutput:!0}),[em.name]:this.catalogOutput(em,{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:J(n),rateLimitOperation:e[t.provider],allowManagedConnection:!0}))}},cm=im,lm={pipeId:Zp,basePipe:G(Zp),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:[V.EMAIL,V.WORK_EMAIL,V.WATERFALL],docPath:K(Zp),managedProviders:tm,allowedUserConnectionProviders:tm,deprecatedProviders:nm,inputFieldMode:`static`,outputFieldMode:`static`,billableOperations:om,defaultInputRequirement:am(null),defaultPayload:{pipe_id:Zp,connector:null,run_if:null,config:{providers:rm,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}}}}},um=`people:workemail:waterfall@1`,dm=v(`name`),fm=v(`company_website_url`),pm=v(`company_name`),mm=v(`work_email`),hm=v(`email_validation_status`),gm=[`leadmagic`,`prospeo`,`amplemarket`,`hunter`,`icypeas`,`findymail`],_m=[{provider:`leadmagic`},{provider:`prospeo`},{provider:`amplemarket`},{provider:`hunter`},{provider:`icypeas`},{provider:`findymail`}],vm=r.object({pipe_id:r.literal(um),connector:T(),run_if:C(),config:r.object({providers:O({availableProviders:gm,defaultProviders:_m,sectionKey:`general`}),allow_catch_all_emails:k({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:k({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:B(r.object({[dm.name]:D({fieldName:dm.name}),[fm.name]:D({fieldName:fm.name}),[pm.name]:D({fieldName:pm.name})})),output_fields:z(r.object({[mm.name]:A({fieldName:mm.name}),[hm.name]:A({fieldName:hm.name})}))}).optional()}),ym=e=>xa(H(q(dm,e)),U(q(fm,e),q(pm,e))),bm={"work-email-leadmagic":{provider:`leadmagic`,allowManagedConnection:!0,credits:.5,mode:`onSuccess`},"work-email-icypeas":{provider:`icypeas`,allowManagedConnection:!0,credits:.5,mode:`onSuccess`},"work-email-prospeo":{provider:`prospeo`,allowManagedConnection:!0,credits:1,mode:`onSuccess`},"work-email-findymail":{provider:`findymail`,allowManagedConnection:!0,credits:1,mode:`onSuccess`},"work-email-hunter":{provider:`hunter`,allowManagedConnection:!0,credits:1,mode:`onSuccess`},"email-lookup-amplemarket":{provider:`amplemarket`,allowManagedConnection:!0,credits:2.5,mode:`onSuccess`}},xm=class extends W{pipeId=um;payload;payloadSchema=vm;billableOperations=bm;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return this.payload.config?.providers.map(e=>e.provider)||[]}estimateBillableOperations(){return this.getProviderNames().map(e=>Y(e,this.billableOperations).billableOperation)}getInputRequirement(){return ym(this.payload.config)}getRawOutputFields(){return{[mm.name]:this.catalogOutput(mm,{isPrimaryOutput:!0}),[hm.name]:this.catalogOutput(hm,{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:J(n),rateLimitOperation:e[t.provider],allowManagedConnection:!0}))}},Sm=vm,Cm={pipeId:um,basePipe:G(um),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:[V.EMAIL,V.WORK_EMAIL,V.WATERFALL],docPath:K(um),managedProviders:gm,deprecatedProviders:[],allowedUserConnectionProviders:gm,inputFieldMode:`static`,outputFieldMode:`static`,billableOperations:bm,defaultInputRequirement:ym(null),defaultPayload:{pipe_id:um,connector:null,run_if:null,config:{providers:_m,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}}}}},wm=`email:iswork@1`,Tm=v(`is_work_email`),Em=v(`email`),Dm=r.object({pipe_id:r.literal(wm),run_if:C(),connector:E(),config:r.object({input_fields:B(r.object({[Em.name]:D({fieldName:Em.name})})),output_fields:z(r.object({[Tm.name]:A({fieldName:Tm.name})}))}).optional()}),Om=e=>H(q(Em,e)),km={"is-workemail-pipe0":{provider:`pipe0`,allowManagedConnection:!0,credits:0,mode:`always`}},Am=class extends W{pipeId=wm;payload;payloadSchema=Dm;billableOperations=km;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[`is-workemail-pipe0`]}getInputRequirement(){return Om(this.payload.config)}getRawOutputFields(){return{[Tm.name]:this.catalogOutput(Tm)}}getConnectionsRequirements(){return[{provider:`pipe0`,rateLimitRatio:1,rateLimitOperation:`pipe0_logic`,allowManagedConnection:!0}]}},jm=Dm,Mm={pipeId:wm,label:`Work email checker`,executionMode:`single`,categories:[`people_data`],lifecycle:null,description:`Check if a given email address is personal or professional.`,tags:[V.EMAIL,V.WORK_EMAIL],docPath:K(wm),billableOperations:km,basePipe:G(wm),allowedUserConnectionProviders:[],inputFieldMode:`static`,outputFieldMode:`static`,managedProviders:[`pipe0`],deprecatedProviders:[],defaultInputRequirement:Om(null),defaultPayload:{pipe_id:wm,run_if:null,connector:null,config:{input_fields:{email:{alias:``}},output_fields:{is_work_email:{alias:``,enabled:!0}}}}};function Nm(e,t){return typeof t==`string`?t:t(e)}function Pm(e,t){return typeof t==`string`||t===null?t:t(e)}function Fm(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:Nm(e,a[r].type),format:Pm(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 Im(e,t){for(let n of e.pipes){let r=n.getOutputFields();if(r[t])return{type:Nm(e,r[t].type),format:Pm(e,r[t].format)}}let n=e.derivedInputFields[t];if(n)return{type:n.type,format:null}}function Lm(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=Ar(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=>Im(t,e)?.type||n,format:r};a.push(t.required?H(i):Sa(i))}return xa(...a)}function Rm(e){let t=new Set;for(let n of e)if(n)try{let e=Ar(n);for(let n of e.secrets)t.add(n)}catch{}return[...t]}function zm(e){let t=new Set;for(let n of e)if(n)try{let e=Ar(n);for(let n of e.constants)t.add(n)}catch{}return[...t]}const Bm=`email:send:gmail@1`,Vm=v(`gmail_email_success`),Hm=r.object({pipe_id:r.literal(Bm),connector:Vi(),run_if:C(),config:r.object({to:w({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:w({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:w({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:w({sectionKey:`general`,groupPath:`config.general`,path:`config.body`,label:`Body`,info:"Email body in markdown. Type `@` to insert a field reference or `$` to insert a secret reference.",placeholder:`Hi {{ first_name }},
68
68
 
69
- …`,inputType:`text`,minLength:1,maxLength:1e6,expectedTagType:`string`,expectedTagFormat:`markdown`,multiline:!0}),output_fields:z(r.object({[Vm.name]:A({fieldName:Vm.name})}))})}),Um={"send-email-gmail":{allowManagedConnection:!1,provider:`gmail`,credits:null,mode:null}},Wm=class extends W{pipeId=Bm;payload;payloadSchema=Hm;billableOperations=Um;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`gmail`]}estimateBillableOperations(){return[`send-email-gmail`]}getTemplatedFields(){return[this.payload.config.to,this.payload.config.reply_to,this.payload.config.subject,this.payload.config.body]}getInputRequirement(){return Lm(this.getTemplatedFields())}getSecretRequirements(){return Rm(this.getTemplatedFields())}getConstantRequirements(){return zm(this.getTemplatedFields())}getRawOutputFields(){return{[Vm.name]:this.catalogOutput(Vm)}}getConnectionsRequirements(){return[{provider:`gmail`,rateLimitRatio:1,rateLimitOperation:`gmail_send_email`,allowManagedConnection:!1}]}},Gm=Hm,Km={pipeId:Bm,basePipe:G(Bm),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:[V.EMAIL],docPath:K(Bm),billableOperations:Um,inputFieldMode:`config`,outputFieldMode:`static`,allowedUserConnectionProviders:[`gmail`],defaultInputRequirement:null,managedProviders:[],deprecatedProviders:[],defaultPayload:{pipe_id:Bm,connector:{strategy:`first`,connections:[]},run_if:null,config:{to:``,reply_to:``,subject:``,body:``,output_fields:{gmail_email_success:{alias:``,enabled:!0}}}}},qm=`email:send:resend@1`,Jm=v(`resend_email_success`),Ym=r.object({pipe_id:r.literal(qm),connector:Vi(),run_if:C(),config:r.object({from:w({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:w({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:w({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:w({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:w({sectionKey:`general`,groupPath:`config.general`,path:`config.body`,label:`Body`,info:"Email body in markdown. Type `@` to insert a field reference or `$` to insert a secret reference.",placeholder:`Hi {{ first_name }},
69
+ …`,inputType:`text`,minLength:1,maxLength:1e6,expectedTagType:`string`,expectedTagFormat:`markdown`,multiline:!0}),output_fields:z(r.object({[Vm.name]:A({fieldName:Vm.name})}))})}),Um={"email-send-gmail":{allowManagedConnection:!1,provider:`gmail`,credits:null,mode:null}},Wm=class extends W{pipeId=Bm;payload;payloadSchema=Hm;billableOperations=Um;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`gmail`]}estimateBillableOperations(){return[`email-send-gmail`]}getTemplatedFields(){return[this.payload.config.to,this.payload.config.reply_to,this.payload.config.subject,this.payload.config.body]}getInputRequirement(){return Lm(this.getTemplatedFields())}getSecretRequirements(){return Rm(this.getTemplatedFields())}getConstantRequirements(){return zm(this.getTemplatedFields())}getRawOutputFields(){return{[Vm.name]:this.catalogOutput(Vm)}}getConnectionsRequirements(){return[{provider:`gmail`,rateLimitRatio:1,rateLimitOperation:`gmail_send_email`,allowManagedConnection:!1}]}},Gm=Hm,Km={pipeId:Bm,basePipe:G(Bm),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:[V.EMAIL],docPath:K(Bm),billableOperations:Um,inputFieldMode:`config`,outputFieldMode:`static`,allowedUserConnectionProviders:[`gmail`],defaultInputRequirement:null,managedProviders:[],deprecatedProviders:[],defaultPayload:{pipe_id:Bm,connector:{strategy:`first`,connections:[]},run_if:null,config:{to:``,reply_to:``,subject:``,body:``,output_fields:{gmail_email_success:{alias:``,enabled:!0}}}}},qm=`email:send:resend@1`,Jm=v(`resend_email_success`),Ym=r.object({pipe_id:r.literal(qm),connector:Vi(),run_if:C(),config:r.object({from:w({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:w({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:w({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:w({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:w({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:z(r.object({[Jm.name]:A({fieldName:Jm.name})}))})}),Xm={"send-email-resend":{allowManagedConnection:!1,provider:`resend`,credits:null,mode:null}},Zm=class extends W{pipeId=qm;payload;payloadSchema=Ym;billableOperations=Xm;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`resend`]}estimateBillableOperations(){return[`send-email-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 Lm(this.getTemplatedFields())}getSecretRequirements(){return Rm(this.getTemplatedFields())}getConstantRequirements(){return zm(this.getTemplatedFields())}getRawOutputFields(){return{[Jm.name]:this.catalogOutput(Jm)}}getConnectionsRequirements(){return[{provider:`resend`,rateLimitRatio:1,rateLimitOperation:`resend_generic`,allowManagedConnection:!1}]}},Qm=Ym,$m={pipeId:qm,basePipe:G(qm),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:[V.EMAIL],docPath:K(qm),billableOperations:Xm,inputFieldMode:`config`,outputFieldMode:`static`,allowedUserConnectionProviders:[`resend`],defaultInputRequirement:null,managedProviders:[],deprecatedProviders:[],defaultPayload:{pipe_id:qm,connector:{strategy:`first`,connections:[]},run_if:null,config:{from:``,to:``,reply_to:``,subject:``,body:``,output_fields:{resend_email_success:{alias:``,enabled:!0}}}}},eh=`email:validate:zerobounce@1`,th=v(`email`),nh=v(`zerobounce_validation_status`),rh=v(`zerobounce_validation_match`),ih=r.object({pipe_id:r.literal(eh),connector:T(),run_if:C(),config:r.object({input_fields:B(r.object({[th.name]:D({fieldName:th.name})})),output_fields:z(r.object({[rh.name]:A({fieldName:rh.name}),[nh.name]:A({fieldName:nh.name})}))}).optional()}),ah=e=>H(q(th,e)),oh={"zerobounce-validate-email":{provider:`zerobounce`,allowManagedConnection:!0,credits:.3,mode:`always`}},sh=class extends W{pipeId=eh;payload;payloadSchema=ih;billableOperations=oh;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`zerobounce`]}estimateBillableOperations(){return[`zerobounce-validate-email`]}getInputRequirement(){return ah(this.payload.config)}getRawOutputFields(){return{[nh.name]:this.catalogOutput(nh),[rh.name]:this.catalogOutput(rh)}}getConnectionsRequirements(){return[{provider:`zerobounce`,rateLimitRatio:1,rateLimitOperation:`zerobounce_generic`,allowManagedConnection:!0}]}},ch=ih,lh={pipeId:eh,basePipe:G(eh),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:[V.EMAIL],docPath:K(eh),billableOperations:oh,inputFieldMode:`static`,outputFieldMode:`static`,allowedUserConnectionProviders:[`zerobounce`],managedProviders:[`zerobounce`],deprecatedProviders:[],defaultInputRequirement:ah(null),defaultPayload:{pipe_id:eh,connector:null,run_if:null,config:{input_fields:{email:{alias:``}},output_fields:{zerobounce_validation_status:{alias:``,enabled:!0},zerobounce_validation_match:{alias:``,enabled:!0}}}}},uh={title:`Software Engineer, CEO, ...`,seniority:`C-Suite, Senior, ...`,department:`Consulting, Finance, ...`,certification:`CISSP, AWS, ...`,crunchbase_category:`3D Printing, Big Date, ...`,honor:`Cum Laude, 40 Under 40, ...`,field_of_study:`Engineering, Computer Science, ...`,degree_name:`Bachelor of Science, ...`,extracurricular:`Athelete, Debate Team, ...`,job_function:`Accounting, Advertising, ...`,location:`USA, Germany, France, ...`,company_name:`Google, Anthropic, ...`,company_domain:`google.com, openai.com, ...`,company_profile_keyword:`B2B, Software, ...`,headline_keywords:`Founder, JavaScript, ...`,profile_keywords:`Coach, Scrum, ...`,languages:`German, English, ...`,languages_1:`Spanish, Italian, ...`,skills:`TypeScript, Playwright, ...`,industry:`IT, Agriculture, ...`,investor:`a16z, Inside Partners, ...`,school:`MIT, Harvard, ...`,prompt:`Enter prompt here...`,template:`Enter template here...`};function X(e){return uh[e]}const dh=`email:write@1`,fh=ei(`write-email`),ph=v(`email_subject`),mh=v(`email_body`),hh=r.object({pipe_id:r.literal(dh),connector:T(),run_if:C(),config:r.object({template:zi({sectionKey:`general`,label:`Prompt`,path:`config.template`,placeholder:X(`prompt`),groupPath:`config.prompt`,required:!0}),model:ta({sectionKey:`general`,label:`Model`,path:`config.model`,groupPath:`config.prompt`,billableOperations:fh}),signature:$i({sectionKey:`general`,label:`Signature (Markdown)`,path:`config.signature`,groupPath:`config.email`,minLength:5,rows:10}),persona:ea({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:z(r.object({[ph.name]:A({fieldName:ph.name}),[mh.name]:A({fieldName:mh.name})}))})}),gh=class extends W{pipeId=dh;payload;payloadSchema=hh;billableOperations=fh;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return ti(this.payload.config.model)}estimateBillableOperations(){return[ni(this.payload.config.model,`write-email`)]}getInputRequirement(){return Lm([this.payload.config.template])}getSecretRequirements(){return Rm([this.payload.config.template])}getConstantRequirements(){return zm([this.payload.config.template])}getRawOutputFields(){return{[ph.name]:this.catalogOutput(ph),[mh.name]:this.catalogOutput(mh)}}getConnectionsRequirements(){return ri(this.payload.config.model)}},_h=hh,vh={pipeId:dh,inputFieldMode:`config`,outputFieldMode:`static`,basePipe:G(dh),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:[V.AI],docPath:K(dh),defaultInputRequirement:null,billableOperations:fh,allowedUserConnectionProviders:ii(),managedProviders:ii(),deprecatedProviders:[],defaultPayload:{pipe_id:dh,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:``}}},yh=`field:domainify@1`,bh=v(`url_input`),xh=v(`domain`),Sh=r.object({pipe_id:r.literal(yh),run_if:C(),connector:E(),config:r.object({input_fields:B(r.object({[bh.name]:D({fieldName:bh.name})})),output_fields:z(r.object({[xh.name]:A({fieldName:xh.name})}))}).optional()}),Ch=e=>H(q(bh,e)),wh={"pipe0-platform-operation":{provider:`pipe0`,allowManagedConnection:!0,credits:0,mode:`always`}},Th=class extends W{pipeId=yh;payload;payloadSchema=Sh;billableOperations=wh;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[]}getInputRequirement(){return Ch(this.payload.config)}getRawOutputFields(){return{[xh.name]:this.catalogOutput(xh)}}getConnectionsRequirements(){return[{provider:`pipe0`,rateLimitRatio:1,rateLimitOperation:`pipe0_logic`,allowManagedConnection:!0}]}},Eh=Sh,Dh={pipeId:yh,basePipe:G(yh),label:`Extract domain`,executionMode:`single`,categories:[`tools`],lifecycle:null,description:`Transform URL input into a domain. Example: 'https://go.com' to 'go.com'.`,tags:[V.LOGIC,V.FIELDS],docPath:K(yh),billableOperations:wh,defaultInputRequirement:Ch(null),inputFieldMode:`static`,outputFieldMode:`static`,allowedUserConnectionProviders:[],managedProviders:[`pipe0`],deprecatedProviders:[],defaultPayload:{pipe_id:yh,run_if:null,connector:null,config:{input_fields:{url_input:{alias:``}},output_fields:{domain:{alias:``,enabled:!0}}}}},Oh=`field:slugify@1`,kh=v(`string_input`),Ah=v(`slugified`),jh=r.object({pipe_id:r.literal(Oh),run_if:C(),connector:E(),config:r.object({input_fields:B(r.object({[kh.name]:D({fieldName:kh.name})})),output_fields:z(r.object({[Ah.name]:A({fieldName:Ah.name})}))}).optional()}),Mh=e=>H(q(kh,e)),Nh={"pipe0-platform-operation":{provider:`pipe0`,allowManagedConnection:!0,credits:0,mode:`always`}},Ph=class extends W{pipeId=Oh;payload;payloadSchema=jh;billableOperations=Nh;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[]}getInputRequirement(){return Mh(this.payload.config)}getRawOutputFields(){return{[Ah.name]:this.catalogOutput(Ah)}}getConnectionsRequirements(){return[{provider:`pipe0`,rateLimitRatio:1,rateLimitOperation:`pipe0_logic`,allowManagedConnection:!0}]}},Fh=jh,Ih={pipeId:Oh,basePipe:G(Oh),label:`Slugify field`,executionMode:`single`,categories:[`tools`],lifecycle:null,description:`Strip a field value of characters not commonly found in slugs.`,tags:[V.LOGIC,V.FIELDS],docPath:K(Oh),billableOperations:Nh,defaultInputRequirement:Mh(null),inputFieldMode:`static`,outputFieldMode:`static`,allowedUserConnectionProviders:[],managedProviders:[`pipe0`],deprecatedProviders:[],defaultPayload:{pipe_id:Oh,run_if:null,connector:null,config:{input_fields:{string_input:{alias:``}},output_fields:{slugified:{alias:``,enabled:!0}}}}};function Lh({name:e,resolvedName:t}){return e===t?`'${e}'`:`'${e}' (resolved to '${t}')`}function Rh(e){switch(e.kind){case`field`:return Lh(e.field);case`optional`:return`[optional ${Lh(e.field)}]`;case`all`:return e.of.length===0?`(none)`:e.of.length===1?Rh(e.of[0]):`(${e.of.map(Rh).join(` AND `)})`;case`any`:return e.of.length===0?`(none)`:e.of.length===1?Rh(e.of[0]):`(${e.of.map(Rh).join(` OR `)})`}}function zh(e){return`Pipe input requirement is not satisfied: ${Rh(e)}. Map missing fields to existing ones, add a pipe that outputs them, or include them in your inputs.`}var Bh=class extends Error{constructor(e){super(`Request validation failed (${e.length} errors): ${e.join(`, `)}`),this.errors=e,this.name=`RequestValidationError`,Object.setPrototypeOf(this,new.target.prototype)}};const Z={ConditionTargetFieldNotFound:({fieldName:e,pipeId:t,pipeIdx:n})=>({code:`ConditionTargetFieldNotFound`,message:`${t} (idx: ${n}) has an invalid condition. Field '${e}' not found.`}),FaultyEnrichmentOrder:()=>({code:`FaultyEnrichmentOrder`,message:`Enrichment not found while ordering. Was the request invalid?`}),MustDefineAnnotations:()=>({code:`MustDefineAnnotations`,message:`Must define either input or field annoations to validate pipes payload.`}),CircularDependency:({currentPipe:e,circularPipe:t})=>({code:`CircularDependency`,message:`'${e.pipe_id}' (${e.idx}) and '${t.pipeId}' (${t.idx}) create a dependency loop. They both need the other's output to complete. Neither can complete. You can map the pipe outputs or input to fields with different names if you want the pipes to be independent or each other.`}),ValidationFailed:({error:e})=>({code:`ValidationFailed`,message:`Failed to validate task request: ${e instanceof Error?e.message:String(e)}`}),MissingCustomConnections:({pipeId:e,index:t,missingProviders:n})=>({code:`MissingCustomConnections`,message:`Pipe ${e} (index ${t}) requires you to specify custom connections for the providers ${n.join(`, `)}. Create the custom connections in the dashbard and reference them in your request.`}),ResponseGenerationFailed:({error:e})=>({code:`ResponseGenerationFailed`,message:`Failed to generate response: ${e instanceof Error?e.message:String(e)}`}),InputValuesMustHaveSameType:({pipeId:e,fieldNames:t})=>({code:`InputValuesMustHaveSameType`,message:`Pipe ${e} requires all input values to have the same type. But values ${t.join(`, `)} have different types.`}),NotValidated:()=>({code:`NotValidated`,message:`PipelineRequest must be validated before accessing results`}),MissingIdInInput:()=>({code:`MissingIdInInput`,message:`Inputs missing 'id' property.`}),InputDataTypeMismatch:({key:e,derivedInputFieldType:t,fieldType:n})=>({code:`InputDataTypeMismatch`,message:`Input data has values with matching keys '${e}' but different types. Expected type: '${t}'. Actual: '${n}'.`}),UnresolvableDependency:({index:e,dependencyIndex:t})=>({code:`UnresolvableDependency`,message:`Unresolvable dependency at index ${e} to ${t}`}),RequirementUnmet:({requirement:e})=>({code:`RequirementUnmet`,message:zh(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 ${Lh(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 Vh=class extends Error{},Q=class extends Vh{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 Hh=`fields:merge@1`,Uh=v(`merge_result`),Wh=r.object({pipe_id:r.literal(Hh),connector:E(),run_if:C(),config:r.object({sources:Ui({sectionKey:`general`,groupPath:`config.general`,path:`config.sources`,info:`Provide references to input fields`,minItems:2}),output_fields:z(r.object({[Uh.name]:A({fieldName:Uh.name})}))})}),Gh={"pipe0-field-or":{credits:0,allowManagedConnection:!0,provider:`pipe0`,mode:`always`}},Kh=class extends W{pipeId=Hh;payload;payloadSchema=Wh;billableOperations=Gh;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[`pipe0-field-or`]}getInputRequirement(){let e=this.payload.config.sources.map(e=>e.field_name),t;return U(...this.payload.config.sources.map(n=>H({format:null,type:r=>{let i=Fm(r,e)[n.field_name],a=i?.type?i.type:`unknown`;if(a!==`unknown`){if(t&&t!==a)throw new Q([Z.InputValuesMustHaveSameType({pipeId:this.pipeId,fieldNames:e})]);t=a}return i?.type?i.type:`unknown`},label:``,description:``,name:n.field_name,resolvedName:n.field_name})))}getRawOutputFields(){return{[Uh.name]:this.catalogOutput(Uh,{resolveType:e=>{let t=Fm(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}]}},qh=Wh,Jh={pipeId:Hh,inputFieldMode:`config`,outputFieldMode:`static`,basePipe:G(Hh),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:[V.FIELDS,V.LOGIC],docPath:K(Hh),defaultInputRequirement:null,billableOperations:Gh,allowedUserConnectionProviders:[],managedProviders:[`pipe0`],deprecatedProviders:[],defaultPayload:{pipe_id:Hh,connector:null,run_if:null,config:{sources:[],output_fields:{merge_result:{alias:``,enabled:!0}}}}},Yh=`http:request@1`,Xh=v(`http_response_status`),Zh=v(`http_response_body`),Qh=v(`http_response_headers`),$h=r.object({pipe_id:r.literal(Yh),connector:E(),run_if:C(),config:r.object({method:ea({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:w({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:w({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:z(r.object({[Jm.name]:A({fieldName:Jm.name})}))})}),Xm={"email-send-resend":{allowManagedConnection:!1,provider:`resend`,credits:null,mode:null}},Zm=class extends W{pipeId=qm;payload;payloadSchema=Ym;billableOperations=Xm;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`resend`]}estimateBillableOperations(){return[`email-send-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 Lm(this.getTemplatedFields())}getSecretRequirements(){return Rm(this.getTemplatedFields())}getConstantRequirements(){return zm(this.getTemplatedFields())}getRawOutputFields(){return{[Jm.name]:this.catalogOutput(Jm)}}getConnectionsRequirements(){return[{provider:`resend`,rateLimitRatio:1,rateLimitOperation:`resend_generic`,allowManagedConnection:!1}]}},Qm=Ym,$m={pipeId:qm,basePipe:G(qm),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:[V.EMAIL],docPath:K(qm),billableOperations:Xm,inputFieldMode:`config`,outputFieldMode:`static`,allowedUserConnectionProviders:[`resend`],defaultInputRequirement:null,managedProviders:[],deprecatedProviders:[],defaultPayload:{pipe_id:qm,connector:{strategy:`first`,connections:[]},run_if:null,config:{from:``,to:``,reply_to:``,subject:``,body:``,output_fields:{resend_email_success:{alias:``,enabled:!0}}}}},eh=`email:validate:zerobounce@1`,th=v(`email`),nh=v(`zerobounce_validation_status`),rh=v(`zerobounce_validation_match`),ih=r.object({pipe_id:r.literal(eh),connector:T(),run_if:C(),config:r.object({input_fields:B(r.object({[th.name]:D({fieldName:th.name})})),output_fields:z(r.object({[rh.name]:A({fieldName:rh.name}),[nh.name]:A({fieldName:nh.name})}))}).optional()}),ah=e=>H(q(th,e)),oh={"validate-email-zerobounce":{provider:`zerobounce`,allowManagedConnection:!0,credits:.3,mode:`always`}},sh=class extends W{pipeId=eh;payload;payloadSchema=ih;billableOperations=oh;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`zerobounce`]}estimateBillableOperations(){return[`validate-email-zerobounce`]}getInputRequirement(){return ah(this.payload.config)}getRawOutputFields(){return{[nh.name]:this.catalogOutput(nh),[rh.name]:this.catalogOutput(rh)}}getConnectionsRequirements(){return[{provider:`zerobounce`,rateLimitRatio:1,rateLimitOperation:`zerobounce_generic`,allowManagedConnection:!0}]}},ch=ih,lh={pipeId:eh,basePipe:G(eh),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:[V.EMAIL],docPath:K(eh),billableOperations:oh,inputFieldMode:`static`,outputFieldMode:`static`,allowedUserConnectionProviders:[`zerobounce`],managedProviders:[`zerobounce`],deprecatedProviders:[],defaultInputRequirement:ah(null),defaultPayload:{pipe_id:eh,connector:null,run_if:null,config:{input_fields:{email:{alias:``}},output_fields:{zerobounce_validation_status:{alias:``,enabled:!0},zerobounce_validation_match:{alias:``,enabled:!0}}}}},uh={title:`Software Engineer, CEO, ...`,seniority:`C-Suite, Senior, ...`,department:`Consulting, Finance, ...`,certification:`CISSP, AWS, ...`,crunchbase_category:`3D Printing, Big Date, ...`,honor:`Cum Laude, 40 Under 40, ...`,field_of_study:`Engineering, Computer Science, ...`,degree_name:`Bachelor of Science, ...`,extracurricular:`Athelete, Debate Team, ...`,job_function:`Accounting, Advertising, ...`,location:`USA, Germany, France, ...`,company_name:`Google, Anthropic, ...`,company_domain:`google.com, openai.com, ...`,company_profile_keyword:`B2B, Software, ...`,headline_keywords:`Founder, JavaScript, ...`,profile_keywords:`Coach, Scrum, ...`,languages:`German, English, ...`,languages_1:`Spanish, Italian, ...`,skills:`TypeScript, Playwright, ...`,industry:`IT, Agriculture, ...`,investor:`a16z, Inside Partners, ...`,school:`MIT, Harvard, ...`,prompt:`Enter prompt here...`,template:`Enter template here...`};function X(e){return uh[e]}const dh=`email:write@1`,fh=ei(`write-email`),ph=v(`email_subject`),mh=v(`email_body`),hh=r.object({pipe_id:r.literal(dh),connector:T(),run_if:C(),config:r.object({template:zi({sectionKey:`general`,label:`Prompt`,path:`config.template`,placeholder:X(`prompt`),groupPath:`config.prompt`,required:!0}),model:ta({sectionKey:`general`,label:`Model`,path:`config.model`,groupPath:`config.prompt`,billableOperations:fh}),signature:$i({sectionKey:`general`,label:`Signature (Markdown)`,path:`config.signature`,groupPath:`config.email`,minLength:5,rows:10}),persona:ea({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:z(r.object({[ph.name]:A({fieldName:ph.name}),[mh.name]:A({fieldName:mh.name})}))})}),gh=class extends W{pipeId=dh;payload;payloadSchema=hh;billableOperations=fh;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return ti(this.payload.config.model)}estimateBillableOperations(){return[ni(this.payload.config.model,`write-email`)]}getInputRequirement(){return Lm([this.payload.config.template])}getSecretRequirements(){return Rm([this.payload.config.template])}getConstantRequirements(){return zm([this.payload.config.template])}getRawOutputFields(){return{[ph.name]:this.catalogOutput(ph),[mh.name]:this.catalogOutput(mh)}}getConnectionsRequirements(){return ri(this.payload.config.model)}},_h=hh,vh={pipeId:dh,inputFieldMode:`config`,outputFieldMode:`static`,basePipe:G(dh),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:[V.AI],docPath:K(dh),defaultInputRequirement:null,billableOperations:fh,allowedUserConnectionProviders:ii(),managedProviders:ii(),deprecatedProviders:[],defaultPayload:{pipe_id:dh,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:``}}},yh=`field:domainify@1`,bh=v(`url_input`),xh=v(`domain`),Sh=r.object({pipe_id:r.literal(yh),run_if:C(),connector:E(),config:r.object({input_fields:B(r.object({[bh.name]:D({fieldName:bh.name})})),output_fields:z(r.object({[xh.name]:A({fieldName:xh.name})}))}).optional()}),Ch=e=>H(q(bh,e)),wh={"field-domainify-pipe0":{provider:`pipe0`,allowManagedConnection:!0,credits:0,mode:`always`}},Th=class extends W{pipeId=yh;payload;payloadSchema=Sh;billableOperations=wh;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[]}getInputRequirement(){return Ch(this.payload.config)}getRawOutputFields(){return{[xh.name]:this.catalogOutput(xh)}}getConnectionsRequirements(){return[{provider:`pipe0`,rateLimitRatio:1,rateLimitOperation:`pipe0_logic`,allowManagedConnection:!0}]}},Eh=Sh,Dh={pipeId:yh,basePipe:G(yh),label:`Extract domain`,executionMode:`single`,categories:[`tools`],lifecycle:null,description:`Transform URL input into a domain. Example: 'https://go.com' to 'go.com'.`,tags:[V.LOGIC,V.FIELDS],docPath:K(yh),billableOperations:wh,defaultInputRequirement:Ch(null),inputFieldMode:`static`,outputFieldMode:`static`,allowedUserConnectionProviders:[],managedProviders:[`pipe0`],deprecatedProviders:[],defaultPayload:{pipe_id:yh,run_if:null,connector:null,config:{input_fields:{url_input:{alias:``}},output_fields:{domain:{alias:``,enabled:!0}}}}},Oh=`field:slugify@1`,kh=v(`string_input`),Ah=v(`slugified`),jh=r.object({pipe_id:r.literal(Oh),run_if:C(),connector:E(),config:r.object({input_fields:B(r.object({[kh.name]:D({fieldName:kh.name})})),output_fields:z(r.object({[Ah.name]:A({fieldName:Ah.name})}))}).optional()}),Mh=e=>H(q(kh,e)),Nh={"field-slugify-pipe0":{provider:`pipe0`,allowManagedConnection:!0,credits:0,mode:`always`}},Ph=class extends W{pipeId=Oh;payload;payloadSchema=jh;billableOperations=Nh;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[]}getInputRequirement(){return Mh(this.payload.config)}getRawOutputFields(){return{[Ah.name]:this.catalogOutput(Ah)}}getConnectionsRequirements(){return[{provider:`pipe0`,rateLimitRatio:1,rateLimitOperation:`pipe0_logic`,allowManagedConnection:!0}]}},Fh=jh,Ih={pipeId:Oh,basePipe:G(Oh),label:`Slugify field`,executionMode:`single`,categories:[`tools`],lifecycle:null,description:`Strip a field value of characters not commonly found in slugs.`,tags:[V.LOGIC,V.FIELDS],docPath:K(Oh),billableOperations:Nh,defaultInputRequirement:Mh(null),inputFieldMode:`static`,outputFieldMode:`static`,allowedUserConnectionProviders:[],managedProviders:[`pipe0`],deprecatedProviders:[],defaultPayload:{pipe_id:Oh,run_if:null,connector:null,config:{input_fields:{string_input:{alias:``}},output_fields:{slugified:{alias:``,enabled:!0}}}}};function Lh({name:e,resolvedName:t}){return e===t?`'${e}'`:`'${e}' (resolved to '${t}')`}function Rh(e){switch(e.kind){case`field`:return Lh(e.field);case`optional`:return`[optional ${Lh(e.field)}]`;case`all`:return e.of.length===0?`(none)`:e.of.length===1?Rh(e.of[0]):`(${e.of.map(Rh).join(` AND `)})`;case`any`:return e.of.length===0?`(none)`:e.of.length===1?Rh(e.of[0]):`(${e.of.map(Rh).join(` OR `)})`}}function zh(e){return`Pipe input requirement is not satisfied: ${Rh(e)}. Map missing fields to existing ones, add a pipe that outputs them, or include them in your inputs.`}var Bh=class extends Error{constructor(e){super(`Request validation failed (${e.length} errors): ${e.join(`, `)}`),this.errors=e,this.name=`RequestValidationError`,Object.setPrototypeOf(this,new.target.prototype)}};const Z={ConditionTargetFieldNotFound:({fieldName:e,pipeId:t,pipeIdx:n})=>({code:`ConditionTargetFieldNotFound`,message:`${t} (idx: ${n}) has an invalid condition. Field '${e}' not found.`}),FaultyEnrichmentOrder:()=>({code:`FaultyEnrichmentOrder`,message:`Enrichment not found while ordering. Was the request invalid?`}),MustDefineAnnotations:()=>({code:`MustDefineAnnotations`,message:`Must define either input or field annoations to validate pipes payload.`}),CircularDependency:({currentPipe:e,circularPipe:t})=>({code:`CircularDependency`,message:`'${e.pipe_id}' (${e.idx}) and '${t.pipeId}' (${t.idx}) create a dependency loop. They both need the other's output to complete. Neither can complete. You can map the pipe outputs or input to fields with different names if you want the pipes to be independent or each other.`}),ValidationFailed:({error:e})=>({code:`ValidationFailed`,message:`Failed to validate task request: ${e instanceof Error?e.message:String(e)}`}),MissingCustomConnections:({pipeId:e,index:t,missingProviders:n})=>({code:`MissingCustomConnections`,message:`Pipe ${e} (index ${t}) requires you to specify custom connections for the providers ${n.join(`, `)}. Create the custom connections in the dashbard and reference them in your request.`}),ResponseGenerationFailed:({error:e})=>({code:`ResponseGenerationFailed`,message:`Failed to generate response: ${e instanceof Error?e.message:String(e)}`}),InputValuesMustHaveSameType:({pipeId:e,fieldNames:t})=>({code:`InputValuesMustHaveSameType`,message:`Pipe ${e} requires all input values to have the same type. But values ${t.join(`, `)} have different types.`}),NotValidated:()=>({code:`NotValidated`,message:`PipelineRequest must be validated before accessing results`}),MissingIdInInput:()=>({code:`MissingIdInInput`,message:`Inputs missing 'id' property.`}),InputDataTypeMismatch:({key:e,derivedInputFieldType:t,fieldType:n})=>({code:`InputDataTypeMismatch`,message:`Input data has values with matching keys '${e}' but different types. Expected type: '${t}'. Actual: '${n}'.`}),UnresolvableDependency:({index:e,dependencyIndex:t})=>({code:`UnresolvableDependency`,message:`Unresolvable dependency at index ${e} to ${t}`}),RequirementUnmet:({requirement:e})=>({code:`RequirementUnmet`,message:zh(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 ${Lh(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 Vh=class extends Error{},Q=class extends Vh{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 Hh=`fields:merge@1`,Uh=v(`merge_result`),Wh=r.object({pipe_id:r.literal(Hh),connector:E(),run_if:C(),config:r.object({sources:Ui({sectionKey:`general`,groupPath:`config.general`,path:`config.sources`,info:`Provide references to input fields`,minItems:2}),output_fields:z(r.object({[Uh.name]:A({fieldName:Uh.name})}))})}),Gh={"field-or-pipe0":{credits:0,allowManagedConnection:!0,provider:`pipe0`,mode:`always`}},Kh=class extends W{pipeId=Hh;payload;payloadSchema=Wh;billableOperations=Gh;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[`field-or-pipe0`]}getInputRequirement(){let e=this.payload.config.sources.map(e=>e.field_name),t;return U(...this.payload.config.sources.map(n=>H({format:null,type:r=>{let i=Fm(r,e)[n.field_name],a=i?.type?i.type:`unknown`;if(a!==`unknown`){if(t&&t!==a)throw new Q([Z.InputValuesMustHaveSameType({pipeId:this.pipeId,fieldNames:e})]);t=a}return i?.type?i.type:`unknown`},label:``,description:``,name:n.field_name,resolvedName:n.field_name})))}getRawOutputFields(){return{[Uh.name]:this.catalogOutput(Uh,{resolveType:e=>{let t=Fm(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}]}},qh=Wh,Jh={pipeId:Hh,inputFieldMode:`config`,outputFieldMode:`static`,basePipe:G(Hh),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:[V.FIELDS,V.LOGIC],docPath:K(Hh),defaultInputRequirement:null,billableOperations:Gh,allowedUserConnectionProviders:[],managedProviders:[`pipe0`],deprecatedProviders:[],defaultPayload:{pipe_id:Hh,connector:null,run_if:null,config:{sources:[],output_fields:{merge_result:{alias:``,enabled:!0}}}}},Yh=`http:request@1`,Xh=v(`http_response_status`),Zh=v(`http_response_body`),Qh=v(`http_response_headers`),$h=r.object({pipe_id:r.literal(Yh),connector:E(),run_if:C(),config:r.object({method:ea({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:w({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:w({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:aa({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:z(r.object({[Xh.name]:A({fieldName:Xh.name}),[Zh.name]:A({fieldName:Zh.name}),[Qh.name]:A({fieldName:Qh.name})}))})}),eg={"pipe0-http-request":{provider:`pipe0`,allowManagedConnection:!0,credits:.001,mode:`always`}},tg=class extends W{pipeId=Yh;payload;payloadSchema=$h;billableOperations=eg;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[`pipe0-http-request`]}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 Lm(this.getTemplatedFields(),{expectedType:`string`,expectedFormat:`text`})}getSecretRequirements(){return Rm(this.getTemplatedFields())}getConstantRequirements(){return zm(this.getTemplatedFields())}getRawOutputFields(){return{[Xh.name]:this.catalogOutput(Xh),[Zh.name]:this.catalogOutput(Zh),[Qh.name]:this.catalogOutput(Qh)}}getConnectionsRequirements(){return[{provider:`pipe0`,rateLimitRatio:1,rateLimitOperation:`pipe0_logic`,allowManagedConnection:!0}]}},ng=$h,rg={pipeId:Yh,basePipe:G(Yh),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:[V.LOGIC,V.JSON,V.NEW],docPath:K(Yh),billableOperations:eg,defaultInputRequirement:null,inputFieldMode:`config`,outputFieldMode:`static`,allowedUserConnectionProviders:[],managedProviders:[`pipe0`],deprecatedProviders:[],defaultPayload:{pipe_id:Yh,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}}}}},ig=`json:extract:multi@1`,ag=r.object({pipe_id:r.literal(ig),run_if:C(),connector:E(),config:r.object({json_extraction:di()})}),og={"pipe0-extract-json":{provider:`pipe0`,allowManagedConnection:!0,credits:0,mode:`always`}},sg=class extends W{pipeId=ig;payload;payloadSchema=ag;billableOperations=og;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[`pipe0-extract-json`]}getInputRequirement(){return H({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[]}},cg=ag,lg={pipeId:ig,basePipe:G(ig),inputFieldMode:`config`,outputFieldMode:`config`,label:`JSON extract`,executionMode:`single`,categories:[`tools`],lifecycle:null,description:`Extract nested JSON properties into new output fields.`,docPath:K(ig),tags:[V.JSON],managedProviders:[`pipe0`],deprecatedProviders:[],allowedUserConnectionProviders:[],billableOperations:og,defaultInputRequirement:null,defaultPayload:{pipe_id:ig,run_if:null,connector:null,config:{json_extraction:{field_name:``,extractions:[]}}}},ug=`message:send:slack@1`,dg=v(`slack_message_success`),fg=[{label:`#demo-general`,value:`C0SANDBOX001`},{label:`#demo-alerts`,value:`C0SANDBOX002`}],pg=r.object({pipe_id:r.literal(ug),connector:Vi(),run_if:C(),config:r.object({channel_id:w({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 fg;if(!t)throw new Ns.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 Ns.HttpError({msg:e})}let i=await r.json();if(!i.ok)throw new Ns.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:w({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:z(r.object({[dg.name]:A({fieldName:dg.name})}))})}),mg={"send-message-slack":{allowManagedConnection:!1,provider:`slack`,credits:null,mode:null}},hg=class extends W{pipeId=ug;payload;payloadSchema=pg;billableOperations=mg;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`slack`]}estimateBillableOperations(){return[`send-message-slack`]}getTemplatedFields(){return[this.payload.config.channel_id,this.payload.config.message]}getInputRequirement(){return Lm(this.getTemplatedFields())}getSecretRequirements(){return Rm(this.getTemplatedFields())}getConstantRequirements(){return zm(this.getTemplatedFields())}getRawOutputFields(){return{[dg.name]:this.catalogOutput(dg)}}getConnectionsRequirements(){return[{provider:`slack`,rateLimitRatio:1,rateLimitOperation:`slack_post_message`,allowManagedConnection:!1}]}},gg=pg,_g={pipeId:ug,basePipe:G(ug),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:[V.CHAT],docPath:K(ug),billableOperations:mg,inputFieldMode:`config`,outputFieldMode:`static`,allowedUserConnectionProviders:[`slack`],managedProviders:[],deprecatedProviders:[],defaultInputRequirement:null,defaultPayload:{pipe_id:ug,connector:{strategy:`first`,connections:[]},run_if:null,config:{channel_id:``,message:``,output_fields:{slack_message_success:{alias:``,enabled:!0}}}}},vg=`message:write@1`,yg=v(`message`),bg=ei(`write-message`),xg=r.object({pipe_id:r.literal(vg),connector:T(),run_if:C(),config:r.object({template:zi({sectionKey:`general`,label:`Template`,path:`config.template`,placeholder:X(`prompt`),groupPath:`config.prompt`,required:!0}),model:ta({sectionKey:`general`,label:`Model`,path:`config.model`,groupPath:`config.prompt`,billableOperations:bg}),output_fields:z(r.object({[yg.name]:A({fieldName:yg.name})}))})}),Sg=class extends W{pipeId=vg;payload;payloadSchema=xg;billableOperations=bg;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return ti(this.payload.config.model)}estimateBillableOperations(){return[ni(this.payload.config.model,`write-message`)]}getInputRequirement(){return Lm([this.payload.config.template])}getSecretRequirements(){return Rm([this.payload.config.template])}getConstantRequirements(){return zm([this.payload.config.template])}getRawOutputFields(){return{[yg.name]:this.catalogOutput(yg)}}getConnectionsRequirements(){return ri(this.payload.config.model)}},Cg=xg,wg={pipeId:vg,inputFieldMode:`config`,outputFieldMode:`static`,basePipe:G(vg),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:[V.AI],docPath:K(vg),defaultInputRequirement:null,billableOperations:bg,allowedUserConnectionProviders:ii(),managedProviders:ii(),deprecatedProviders:[],defaultPayload:{pipe_id:vg,connector:null,run_if:null,config:{model:`openai-gpt-latest`,template:``,output_fields:{message:{alias:``,enabled:!0}}}}},Tg=`person:email:validate:millionverifier@1`,Eg=v(`email`),Dg=v(`email_validation_status`),Og=v(`million_validation_match`),kg=r.object({pipe_id:r.literal(Tg),connector:T(),run_if:C(),config:r.object({input_fields:B(r.object({[Eg.name]:D({fieldName:Eg.name})})),output_fields:z(r.object({[Dg.name]:A({fieldName:Dg.name}),[Og.name]:A({fieldName:Og.name})}))}).optional()}),Ag=e=>H(q(Eg,e)),jg={"millionverifier-validate-email":{provider:`millionverifier`,allowManagedConnection:!0,credits:.1,mode:`always`}},Mg=class extends W{pipeId=Tg;payload;payloadSchema=kg;billableOperations=jg;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`millionverifier`]}estimateBillableOperations(){return[`millionverifier-validate-email`]}getInputRequirement(){return Ag(this.payload.config)}getRawOutputFields(){return{[Dg.name]:this.catalogOutput(Dg),[Og.name]:this.catalogOutput(Og)}}getConnectionsRequirements(){return[{provider:`millionverifier`,rateLimitRatio:1,rateLimitOperation:`millionverifier_generic`,allowManagedConnection:!0}]}},Ng=kg,Pg={pipeId:Tg,basePipe:G(Tg),label:`Validate email`,executionMode:`single`,categories:[`people_data`],lifecycle:null,description:`Verify email addresses to ensure is deliverability.`,tags:[V.EMAIL],docPath:K(Tg),billableOperations:jg,inputFieldMode:`static`,outputFieldMode:`static`,allowedUserConnectionProviders:[`millionverifier`],managedProviders:[`millionverifier`],deprecatedProviders:[],defaultInputRequirement:Ag(null),defaultPayload:{pipe_id:Tg,connector:null,run_if:null,config:{input_fields:{email:{alias:``}},output_fields:{email_validation_status:{alias:``,enabled:!0},million_validation_match:{alias:``,enabled:!0}}}}},Fg=v(`email`),Ig=v(`amplemarket_person_match`),Lg=`person:identity:amplemarket@1`,Rg=r.object({pipe_id:r.literal(Lg),run_if:C(),connector:T(),config:r.object({input_fields:B(r.object({[Fg.name]:D({fieldName:Fg.name})})),output_fields:z(r.object({[Ig.name]:A({fieldName:Ig.name})}))}).optional()}),zg=e=>H(q(Fg,e)),Bg={"amplemarket-person-identity":{allowManagedConnection:!1,credits:null,mode:null,provider:`amplemarket`}},Vg=class extends W{pipeId=Lg;payload;payloadSchema=Rg;billableOperations=Bg;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`amplemarket`]}estimateBillableOperations(){return[]}getInputRequirement(){return zg(this.payload.config)}getRawOutputFields(){return{[Ig.name]:this.catalogOutput(Ig)}}getConnectionsRequirements(){return[{provider:`amplemarket`,rateLimitRatio:1,rateLimitOperation:`amplemarket_generic`,allowManagedConnection:!1}]}},Hg=Rg,Ug={pipeId:Lg,inputFieldMode:`static`,outputFieldMode:`static`,basePipe:G(Lg),label:`Person identity`,executionMode:`single`,categories:[`people_data`],lifecycle:null,description:`Find information on a person based on their email`,tags:[V.PEOPLE_PROFILES],docPath:K(Lg),billableOperations:Bg,allowedUserConnectionProviders:[`amplemarket`],managedProviders:[],deprecatedProviders:[],defaultInputRequirement:zg(null),defaultPayload:{pipe_id:Lg,connector:null,run_if:null,config:{input_fields:{email:{alias:``}},output_fields:{amplemarket_person_match:{alias:``,enabled:!0}}}}},Wg=`person:identity:email:waterfall@1`,Gg=v(`email`),Kg=v(`company_domain`),qg=v(`name`),Jg=v(`job_title`),Yg=v(`profile_url`),Xg=v(`company_profile_url`),Zg=v(`company_name`),Qg=[`findymail`,`hunter`,`crustdata`],$g=[{provider:`findymail`},{provider:`hunter`},{provider:`crustdata`}],e_=r.object({pipe_id:r.literal(Wg),connector:T(),run_if:C(),config:r.object({providers:O({availableProviders:Qg,defaultProviders:$g,sectionKey:`general`}),input_fields:B(r.object({[Gg.name]:D({fieldName:Gg.name})})),output_fields:z(r.object({[qg.name]:A({fieldName:qg.name}),[Yg.name]:A({fieldName:Yg.name}),[Jg.name]:A({fieldName:Jg.name}),[Kg.name]:A({fieldName:Kg.name}),[Zg.name]:A({fieldName:Zg.name}),[Xg.name]:A({fieldName:Xg.name})}))}).optional()}),t_=e=>H(q(Gg,e)),n_={"hunter-reverse-email-lookup":{provider:`hunter`,allowManagedConnection:!0,credits:2,mode:`onSuccess`},"findymail-reverse-email-lookup":{provider:`findymail`,allowManagedConnection:!0,credits:2,mode:`onSuccess`},"crustdata-reverse-email-lookup":{provider:`crustdata`,allowManagedConnection:!0,credits:5,mode:`onSuccess`}},r_=class extends W{pipeId=Wg;payload;payloadSchema=e_;billableOperations=n_;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return this.payload.config?.providers.map(e=>e.provider)||[]}estimateBillableOperations(){return this.getProviderNames().map(e=>Y(e,this.billableOperations).billableOperation)}getInputRequirement(){return t_(this.payload.config)}getRawOutputFields(){return{[qg.name]:this.catalogOutput(qg,{isPrimaryOutput:!0}),[Yg.name]:this.catalogOutput(Yg,{isPrimaryOutput:!0}),[Jg.name]:this.catalogOutput(Jg,{isPrimaryOutput:!0}),[Zg.name]:this.catalogOutput(Zg,{isPrimaryOutput:!0}),[Xg.name]:this.catalogOutput(Xg,{isPrimaryOutput:!0}),[Kg.name]:this.catalogOutput(Kg,{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:J(n),rateLimitOperation:e[t.provider],allowManagedConnection:!0}))}},i_=e_,a_={pipeId:Wg,basePipe:G(Wg),label:`Person identity from email`,executionMode:`waterfall`,categories:[`people_data`],lifecycle:null,description:`Find identity of a person from their email address.`,tags:[V.EMAIL,V.PEOPLE_PROFILES],docPath:K(Wg),managedProviders:Qg,deprecatedProviders:[],allowedUserConnectionProviders:Qg,inputFieldMode:`static`,outputFieldMode:`static`,billableOperations:n_,defaultInputRequirement:t_(null),defaultPayload:{pipe_id:Wg,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}}}}},o_=v(`profile_url`),s_=v(`amplemarket_person_match`),c_=`person:match:amplemarket@1`,l_=r.object({pipe_id:r.literal(c_),run_if:C(),connector:T(),config:r.object({input_fields:B(r.object({[o_.name]:D({fieldName:o_.name})})),output_fields:z(r.object({[s_.name]:A({fieldName:s_.name})}))}).optional()}),u_=e=>H(q(o_,e)),d_={"amplemarket-person-match":{allowManagedConnection:!1,credits:null,mode:null,provider:`amplemarket`}},f_=class extends W{pipeId=c_;payload;payloadSchema=l_;billableOperations=d_;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`amplemarket`]}estimateBillableOperations(){return[]}getInputRequirement(){return u_(this.payload.config)}getRawOutputFields(){return{[s_.name]:this.catalogOutput(s_)}}getConnectionsRequirements(){return[{provider:`amplemarket`,rateLimitRatio:1,rateLimitOperation:`amplemarket_generic`,allowManagedConnection:!1}]}},p_=l_,m_={pipeId:c_,inputFieldMode:`static`,outputFieldMode:`static`,basePipe:G(c_),label:`Person match`,executionMode:`single`,categories:[`people_data`],lifecycle:null,description:`Find information on a person based on their LinkedIn profile URL.`,tags:[V.PEOPLE_PROFILES],docPath:K(c_),billableOperations:d_,allowedUserConnectionProviders:[`amplemarket`],managedProviders:[],deprecatedProviders:[],defaultInputRequirement:u_(null),defaultPayload:{pipe_id:c_,connector:null,run_if:null,config:{input_fields:{profile_url:{alias:``}},output_fields:{amplemarket_person_match:{alias:``,enabled:!0}}}}},h_=`person:match:role:waterfall@1`,g_=v(`company_domain`),__=v(`role_finder_match`),v_=[`leadmagic`],y_=[{provider:`leadmagic`}],b_=r.object({pipe_id:r.literal(h_),run_if:C(),connector:T(),config:r.object({providers:O({sectionKey:`general`,defaultProviders:y_,availableProviders:v_}),roles:Ki({sectionKey:`general`,groupPath:`config.general`,label:`Roles`,path:`config.roles`,info:`Company roles to include`,maxItems:3,minItems:1}),input_fields:B(r.object({[g_.name]:D({fieldName:g_.name})})),output_fields:z(r.object({[__.name]:A({fieldName:__.name})}))})}),x_=e=>U(q(g_,e)),S_={"leadmagic-find-role":{provider:`leadmagic`,allowManagedConnection:!0,credits:1,mode:`onSuccess`}},C_=class extends W{pipeId=h_;payload;payloadSchema=b_;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=>Y(e,this.billableOperations).billableOperation)}getInputRequirement(){return x_(this.payload.config)}getRawOutputFields(){return{[__.name]:this.catalogOutput(__,{isPrimaryOutput:!0})}}getConnectionsRequirements(){let e={leadmagic:`leadmagic_role_finder`};return(this.payload.config?.providers||[]).map((t,n)=>({provider:t.provider,rateLimitRatio:J(n),rateLimitOperation:e[t.provider],allowManagedConnection:!0}))}},w_=b_,T_={pipeId:h_,basePipe:G(h_),managedProviders:v_,deprecatedProviders:[],allowedUserConnectionProviders:v_,label:`Role finder`,executionMode:`waterfall`,categories:[`people_data`],lifecycle:null,description:`Find role matches for a given companies like "CEO" or "CFO".`,tags:[V.PEOPLE_PROFILES],docPath:K(h_),billableOperations:S_,inputFieldMode:`static`,outputFieldMode:`static`,defaultInputRequirement:x_(null),defaultPayload:{pipe_id:h_,run_if:null,connector:null,config:{roles:[],providers:y_,input_fields:{company_domain:{alias:``}},output_fields:{role_finder_match:{alias:``,enabled:!0}}}}},E_=`person:mobile:profileurl:waterfall@1`,D_=v(`profile_url`),O_=v(`mobile`),k_=[`leadmagic`,`prospeo`,`amplemarket`,`findymail`,`clado`],A_=[{provider:`leadmagic`},{provider:`prospeo`},{provider:`amplemarket`},{provider:`findymail`}],j_=r.object({pipe_id:r.literal(E_),run_if:C(),connector:T(),config:r.object({providers:O({sectionKey:`general`,defaultProviders:A_,availableProviders:k_}),input_fields:B(r.object({[D_.name]:D({fieldName:D_.name})})),output_fields:z(r.object({[O_.name]:A({fieldName:O_.name})}))}).optional()}),M_=e=>H(q(D_,e)),N_={"leadmagic-mobile-from-profile":{provider:`leadmagic`,allowManagedConnection:!0,credits:2,mode:`onSuccess`},"clado-mobile-from-profile":{provider:`clado`,allowManagedConnection:!0,credits:5,mode:`onSuccess`},"prospeo-mobile-from-profile":{provider:`prospeo`,allowManagedConnection:!0,credits:5,mode:`onSuccess`},"findymail-mobile-from-profile":{provider:`findymail`,allowManagedConnection:!0,credits:6,mode:`onSuccess`},"amplemarket-phone-lookup":{provider:`amplemarket`,allowManagedConnection:!0,credits:4,mode:`onSuccess`}},P_=class extends W{pipeId=E_;payload;payloadSchema=j_;billableOperations=N_;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return this.payload.config?.providers.map(e=>e.provider)||[]}estimateBillableOperations(){return this.getProviderNames().map(e=>Y(e,this.billableOperations).billableOperation)}getInputRequirement(){return M_(this.payload.config)}getRawOutputFields(){return{[O_.name]:this.catalogOutput(O_,{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:J(n),rateLimitOperation:e[t.provider],allowManagedConnection:!0}))}},F_=j_,I_={pipeId:E_,basePipe:G(E_),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:K(E_),tags:[V.PHONE,V.WATERFALL],billableOperations:N_,defaultInputRequirement:M_(null),inputFieldMode:`static`,outputFieldMode:`static`,managedProviders:k_,allowedUserConnectionProviders:k_,deprecatedProviders:[`clado`],defaultPayload:{pipe_id:E_,connector:null,run_if:null,config:{providers:A_,input_fields:{profile_url:{alias:``}},output_fields:{mobile:{alias:``,enabled:!0}}}}},L_=`person:mobile:workemail:waterfall@1`,R_=v(`work_email`),z_=v(`mobile`),B_=[`leadmagic`,`amplemarket`],V_=[{provider:`leadmagic`},{provider:`amplemarket`}],H_=r.object({pipe_id:r.literal(L_),run_if:C(),connector:T(),config:r.object({providers:O({sectionKey:`general`,availableProviders:B_,defaultProviders:V_}),input_fields:B(r.object({[R_.name]:D({fieldName:R_.name})})),output_fields:z(r.object({[z_.name]:A({fieldName:z_.name})}))}).optional()}),U_=e=>H(q(R_,e)),W_={"leadmagic-mobile-from-workemail":{provider:`leadmagic`,allowManagedConnection:!0,credits:2,mode:`onSuccess`},"amplemarket-email-lookup":{provider:`amplemarket`,allowManagedConnection:!0,credits:4,mode:`onSuccess`}},G_=class extends W{pipeId=L_;payload;payloadSchema=H_;billableOperations=W_;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return this.payload.config?.providers.map(e=>e.provider)||[]}estimateBillableOperations(){return this.getProviderNames().map(e=>Y(e,this.billableOperations).billableOperation)}getInputRequirement(){return U_(this.payload.config)}getRawOutputFields(){return{[z_.name]:this.catalogOutput(z_,{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:J(n),rateLimitOperation:e[t.provider],allowManagedConnection:!0}))}},K_=H_,q_={pipeId:L_,basePipe:G(L_),label:`Mobile number from email`,executionMode:`waterfall`,categories:[`people_data`],lifecycle:null,description:`Find a mobile phone number for a prospect.`,tags:[V.PHONE,V.WATERFALL],docPath:K(L_),billableOperations:W_,defaultInputRequirement:U_(null),inputFieldMode:`static`,outputFieldMode:`static`,allowedUserConnectionProviders:B_,managedProviders:B_,deprecatedProviders:[],defaultPayload:{pipe_id:L_,connector:null,run_if:null,config:{providers:V_,input_fields:{work_email:{alias:``}},output_fields:{mobile:{alias:``,enabled:!0}}}}},J_=`person:name:join@1`,Y_=v(`first_name`),X_=v(`last_name`),Z_=v(`name`),Q_=r.object({pipe_id:r.literal(J_),run_if:C(),connector:E(),config:r.object({input_fields:B(r.object({[Y_.name]:D({fieldName:Y_.name}),[X_.name]:D({fieldName:X_.name})})),output_fields:z(r.object({[Z_.name]:A({fieldName:Z_.name})}))}).optional()}),$_=e=>xa(q(Y_,e),q(X_,e)),ev={"pipe0-join-name":{provider:`pipe0`,allowManagedConnection:!0,credits:0,mode:`always`}},tv=class extends W{pipeId=J_;payload;payloadSchema=Q_;billableOperations=ev;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[`pipe0-join-name`]}getInputRequirement(){return $_(this.payload.config)}getRawOutputFields(){return{[Z_.name]:this.catalogOutput(Z_)}}getConnectionsRequirements(){return[{provider:`pipe0`,rateLimitRatio:1,rateLimitOperation:`pipe0_logic`,allowManagedConnection:!0}]}},nv=Q_,rv={pipeId:J_,basePipe:G(J_),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:[V.NAMES],docPath:K(J_),billableOperations:ev,defaultInputRequirement:$_(null),inputFieldMode:`static`,outputFieldMode:`static`,allowedUserConnectionProviders:[],managedProviders:[`pipe0`],deprecatedProviders:[],defaultPayload:{pipe_id:J_,run_if:null,connector:null,config:{input_fields:{first_name:{alias:``},last_name:{alias:``}},output_fields:{name:{alias:``,enabled:!0}}}}},iv=`person:name:split@1`,av=v(`name`),ov=v(`first_name`),sv=v(`last_name`),cv=r.object({pipe_id:r.literal(iv),connector:E(),run_if:C(),config:r.object({input_fields:B(r.object({[av.name]:D({fieldName:av.name})})),output_fields:z(r.object({[ov.name]:A({fieldName:ov.name}),[sv.name]:A({fieldName:sv.name})}))}).optional()}),lv=e=>H(q(av,e)),uv={"pipe0-split-name":{provider:`pipe0`,allowManagedConnection:!0,credits:0,mode:`always`}},dv=class extends W{pipeId=iv;payload;payloadSchema=cv;billableOperations=uv;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[`pipe0-split-name`]}getInputRequirement(){return lv(this.payload.config)}getRawOutputFields(){return{[ov.name]:this.catalogOutput(ov),[sv.name]:this.catalogOutput(sv)}}getConnectionsRequirements(){return[{provider:`pipe0`,rateLimitRatio:1,rateLimitOperation:`pipe0_logic`,allowManagedConnection:!0}]}},fv=cv,pv={pipeId:iv,basePipe:G(iv),label:`Split name`,executionMode:`single`,categories:[`people_data`],lifecycle:null,description:`Split a full name into first and last name.`,tags:[V.NAMES],docPath:K(iv),billableOperations:uv,inputFieldMode:`static`,outputFieldMode:`static`,defaultInputRequirement:lv(null),allowedUserConnectionProviders:[],managedProviders:[`pipe0`],deprecatedProviders:[],defaultPayload:{pipe_id:iv,run_if:null,connector:void 0,config:{input_fields:{name:{alias:``}},output_fields:{first_name:{alias:``,enabled:!0},last_name:{alias:``,enabled:!0}}}}},mv=`person:personalemail:profileurl:waterfall@1`,hv=v(`profile_url`),gv=v(`personal_email`),_v=v(`alternate_personal_emails`),vv=[`clado`,`leadmagic`,`mixrank`],yv=[{provider:`leadmagic`},{provider:`mixrank`}],bv=r.object({pipe_id:r.literal(mv),run_if:C(),connector:T(),config:r.object({providers:O({sectionKey:`general`,availableProviders:vv,defaultProviders:yv}),input_fields:B(r.object({[hv.name]:D({fieldName:hv.name})})),output_fields:z(r.object({[gv.name]:A({fieldName:gv.name}),[_v.name]:A({fieldName:_v.name})}))}).optional()}),xv=e=>H(q(hv,e)),Sv={"clado-personal-email-from-profile":{provider:`clado`,allowManagedConnection:!0,credits:2,mode:`always`},"leadmagic-personal-email-from-profile":{provider:`leadmagic`,allowManagedConnection:!0,credits:1,mode:`onSuccess`},"mixrank-personal-email-reveal":{provider:`mixrank`,allowManagedConnection:!0,credits:1,mode:`onSuccess`}},Cv=class extends W{pipeId=mv;payload;payloadSchema=bv;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=>Y(e,this.billableOperations).billableOperation)}getInputRequirement(){return xv(this.payload.config)}getRawOutputFields(){return{[gv.name]:this.catalogOutput(gv,{isPrimaryOutput:!0}),[_v.name]:this.catalogOutput(_v)}}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:J(n),rateLimitOperation:e[t.provider],allowManagedConnection:!0}))}},wv=bv,Tv={pipeId:mv,basePipe:G(mv),allowedUserConnectionProviders:vv,managedProviders:vv,deprecatedProviders:[`clado`],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:[V.EMAIL,V.PERSONAL_EMAIL],docPath:K(mv),billableOperations:Sv,defaultInputRequirement:xv(null),inputFieldMode:`static`,outputFieldMode:`static`,defaultPayload:{pipe_id:mv,connector:null,run_if:null,config:{providers:yv,input_fields:{profile_url:{alias:``}},output_fields:{personal_email:{alias:``,enabled:!0},alternate_personal_emails:{alias:``,enabled:!1}}}}},Ev=v(`profile_url`),Dv=v(`post_list_string`),Ov=v(`crustdata_post_list`),kv=`person:posts:crustdata@1`,Av=r.object({pipe_id:r.literal(kv),run_if:C(),connector:T(),config:r.object({limit:ra({path:`config.limit`,groupPath:`config.general`,max:100,min:1,required:!0,sectionKey:`general`,info:``,label:`Limit`,legend:`Max. 100`}),input_fields:B(r.object({[Ev.name]:D({fieldName:Ev.name})})),output_fields:z(r.object({[Dv.name]:A({fieldName:Dv.name}),[Ov.name]:A({fieldName:Ov.name})}))}).optional()}),jv=e=>H(q(Ev,e)),Mv={"crustdata-single-post-fetch":{allowManagedConnection:!0,credits:1.5,mode:`onSuccess`,note:`1.5 credits per post. Posts are fetched in increments of 5.`,provider:`crustdata`}},Nv=class extends W{pipeId=kv;payload;payloadSchema=Av;billableOperations=Mv;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`crustdata`]}estimateBillableOperations(){return[`crustdata-single-post-fetch`]}getInputRequirement(){return jv(this.payload.config)}getRawOutputFields(){return{[Dv.name]:this.catalogOutput(Dv),[Ov.name]:this.catalogOutput(Ov)}}getConnectionsRequirements(){return[{provider:`crustdata`,rateLimitRatio:1,rateLimitOperation:`crustdata_realtime_post_fetch`,allowManagedConnection:!0}]}},Pv=Av,Fv={pipeId:kv,inputFieldMode:`static`,outputFieldMode:`static`,basePipe:G(kv),label:`LinkedIn posts`,executionMode:`single`,categories:[`people_data`],lifecycle:null,description:`Find list of recent LinkedIn posts.`,tags:[V.LINKEDIN],docPath:K(kv),billableOperations:Mv,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}}}}},Iv=`person:profile:waterfall@1`,Lv=v(`profile`),Rv=v(`profile_url`),zv=[`prospeo`,`icypeas`,`amplemarket`,`clado`],Bv=[{provider:`amplemarket`},{provider:`prospeo`},{provider:`icypeas`}],Vv=r.object({pipe_id:r.literal(Iv),run_if:C(),connector:T(),config:r.object({providers:O({sectionKey:`general`,availableProviders:zv,defaultProviders:Bv}),input_fields:B(r.object({[Rv.name]:D({fieldName:Rv.name})})),output_fields:z(r.object({[Lv.name]:A({fieldName:Lv.name})}))}).optional()}),Hv=e=>H(q(Rv,e)),Uv={"icypeas-get-professional-profile":{provider:`icypeas`,credits:1,mode:`onSuccess`,allowManagedConnection:!0},"prospeo-get-professional-profile":{provider:`prospeo`,credits:1,mode:`onSuccess`,allowManagedConnection:!0},"clado-get-professional-profile":{provider:`clado`,credits:1,mode:`onSuccess`,allowManagedConnection:!0},"amplemarket-person-match":{provider:`amplemarket`,credits:1,mode:`onSuccess`,allowManagedConnection:!0}},Wv=class extends W{pipeId=Iv;payload;payloadSchema=Vv;billableOperations=Uv;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return this.payload.config?.providers.map(e=>e.provider)||[]}estimateBillableOperations(){return this.getProviderNames().map(e=>Y(e,this.billableOperations).billableOperation)}getInputRequirement(){return Hv(this.payload.config)}getRawOutputFields(){return{[Lv.name]:this.catalogOutput(Lv,{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:J(n),rateLimitOperation:e[t.provider],allowManagedConnection:!0}))}},Gv=Vv,Kv={pipeId:Iv,basePipe:G(Iv),label:`Full LinkedIn profile`,executionMode:`waterfall`,categories:[`people_data`],lifecycle:null,description:`Find a JSON representation of a LinkedIn profile.`,docPath:K(Iv),tags:[V.LINKEDIN,V.WATERFALL],managedProviders:zv,deprecatedProviders:[`clado`],allowedUserConnectionProviders:zv,inputFieldMode:`static`,outputFieldMode:`static`,billableOperations:Uv,defaultInputRequirement:Hv(null),defaultPayload:{pipe_id:Iv,run_if:null,connector:null,config:{providers:Bv,input_fields:{profile_url:{alias:``}},output_fields:{profile:{alias:``,enabled:!0}}}}},qv=v(`work_email`),Jv=v(`crustdata_person_match`),Yv=v(`crustdata_profile_match_score`),Xv=`person:profile:workemail:crustdata@1`,Zv=r.object({pipe_id:r.literal(Xv),run_if:C(),connector:T(),config:r.object({input_fields:B(r.object({[qv.name]:D({fieldName:qv.name})})),output_fields:z(r.object({[Jv.name]:A({fieldName:Jv.name}),[Yv.name]:A({fieldName:Yv.name})}))}).optional()}),Qv=e=>H(q(qv,e)),$v={"crustdata-profile-from-workemail":{allowManagedConnection:!0,credits:5,mode:`onSuccess`,provider:`crustdata`}},ey=class extends W{pipeId=Xv;payload;payloadSchema=Zv;billableOperations=$v;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`crustdata`]}estimateBillableOperations(){return[`crustdata-profile-from-workemail`]}getInputRequirement(){return Qv(this.payload.config)}getRawOutputFields(){return{[Jv.name]:this.catalogOutput(Jv),[Yv.name]:this.catalogOutput(Yv)}}getConnectionsRequirements(){return[{provider:`crustdata`,rateLimitRatio:1,rateLimitOperation:`crustdata_realtime_person_enrich`,allowManagedConnection:!0}]}},ty=Zv,ny={pipeId:Xv,inputFieldMode:`static`,outputFieldMode:`static`,basePipe:G(Xv),label:`Profile from work email`,executionMode:`single`,categories:[`people_data`],lifecycle:null,description:`Find person profile by their work email address.`,tags:[V.EMAIL,V.PEOPLE_PROFILES],docPath:K(Xv),billableOperations:$v,allowedUserConnectionProviders:[`crustdata`],managedProviders:[`crustdata`],deprecatedProviders:[],defaultInputRequirement:Qv(null),defaultPayload:{pipe_id:Xv,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}}}}},ry=`person:profileurl:email:waterfall@1`,iy=v(`email`),ay=v(`work_email`),oy=v(`profile_url`),sy=[`leadmagic`],cy=[{provider:`leadmagic`}],ly=r.object({pipe_id:r.literal(ry),run_if:C(),connector:T(),config:r.object({providers:O({sectionKey:`general`,defaultProviders:cy,availableProviders:sy}),input_fields:B(r.object({[iy.name]:D({fieldName:iy.name}),[ay.name]:D({fieldName:ay.name})})),output_fields:z(r.object({[oy.name]:A({fieldName:oy.name})}))}).optional()}),uy=e=>U(q(iy,e),q(ay,e)),dy={"leadmagic-profile-url-from-email":{provider:`leadmagic`,allowManagedConnection:!0,credits:3.5,mode:`onSuccess`}},fy=class extends W{pipeId=ry;payload;payloadSchema=ly;billableOperations=dy;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return this.payload.config?.providers.map(e=>e.provider)||[]}estimateBillableOperations(){return this.getProviderNames().map(e=>Y(e,this.billableOperations).billableOperation)}getInputRequirement(){return uy(this.payload.config)}getRawOutputFields(){return{[oy.name]:this.catalogOutput(oy,{isPrimaryOutput:!0})}}getConnectionsRequirements(){let e={leadmagic:`leadmagic_email_to_b2b_profile`};return(this.payload.config?.providers||[]).map((t,n)=>({provider:t.provider,rateLimitRatio:J(n),rateLimitOperation:e[t.provider],allowManagedConnection:!0}))}},py=ly,my={pipeId:ry,basePipe:G(ry),managedProviders:sy,deprecatedProviders:[],allowedUserConnectionProviders:sy,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:[V.LINKEDIN],docPath:K(ry),billableOperations:dy,inputFieldMode:`static`,outputFieldMode:`static`,defaultInputRequirement:uy(null),defaultPayload:{pipe_id:ry,run_if:null,connector:null,config:{providers:cy,input_fields:{email:{alias:``},work_email:{alias:``}},output_fields:{profile_url:{alias:``,enabled:!0}}}}},hy=`person:profileurl:name@1`,gy=v(`name`),_y=v(`company_name`),vy=v(`location_hint`),yy=v(`profile_url`),by=r.object({pipe_id:r.literal(hy),connector:E(),run_if:C(),config:r.object({input_fields:B(r.object({[gy.name]:D({fieldName:gy.name}),[_y.name]:D({fieldName:_y.name}),[vy.name]:D({fieldName:vy.name})})),output_fields:z(r.object({[yy.name]:A({fieldName:yy.name})}))}).optional()}),xy=e=>xa(H(q(gy,e)),H(q(_y,e)),Sa(q(vy,e))),Sy={"pipe0-get-profileurl-from-name":{provider:`pipe0`,allowManagedConnection:!0,credits:.6,mode:`always`}},Cy=class extends W{pipeId=hy;payload;payloadSchema=by;billableOperations=Sy;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[`pipe0-get-profileurl-from-name`]}getInputRequirement(){return xy(this.payload.config)}getRawOutputFields(){return{[yy.name]:this.catalogOutput(yy)}}getConnectionsRequirements(){return[{provider:`serper`,rateLimitRatio:1,rateLimitOperation:`serper_search`,allowManagedConnection:!0}]}},wy=by,Ty={pipeId:hy,basePipe:G(hy),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:K(hy),tags:[V.LINKEDIN],billableOperations:Sy,defaultInputRequirement:xy(null),inputFieldMode:`static`,outputFieldMode:`static`,defaultPayload:{pipe_id:hy,connector:void 0,run_if:null,config:{input_fields:{company_name:{alias:``},location_hint:{alias:``},name:{alias:``}},output_fields:{profile_url:{alias:``,enabled:!0}}}}},Ey=`person:workemail:profileurl:waterfall@1`,Dy=v(`profile_url`),Oy=v(`work_email`),ky=v(`email_validation_status`),Ay=[`hunter`,`amplemarket`,`findymail`,`leadmagic`,`crustdata`,`clado`],jy=[`clado`],My=[{provider:`hunter`},{provider:`amplemarket`},{provider:`leadmagic`},{provider:`findymail`},{provider:`crustdata`}],Ny=r.object({pipe_id:r.literal(Ey),connector:T(),run_if:C(),config:r.object({providers:O({availableProviders:Ay,defaultProviders:My,sectionKey:`general`}),allow_catch_all_emails:k({path:`config.allow_catch_all_emails`,defaultValue:!0,groupPath:`config.general`,sectionKey:`general`,info:``,label:`Allow catch-all emails`}),allow_risky_emails:k({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:B(r.object({[Dy.name]:D({fieldName:Dy.name})})),output_fields:z(r.object({[Oy.name]:A({fieldName:Oy.name}),[ky.name]:A({fieldName:ky.name})}))}).optional()}),Py=e=>H(q(Dy,e)),Fy={"hunter-workemail-profileurl":{provider:`hunter`,allowManagedConnection:!0,credits:1,mode:`onSuccess`},"leadmagic-workemail-profileurl":{provider:`leadmagic`,allowManagedConnection:!0,credits:2,mode:`onSuccess`},"findymail-workemail-profileurl":{provider:`findymail`,allowManagedConnection:!0,credits:2,mode:`onSuccess`},"crustdata-workemail-profileurl":{provider:`crustdata`,allowManagedConnection:!0,credits:3,mode:`onSuccess`},"clado-workemail-profileurl":{provider:`clado`,allowManagedConnection:!0,credits:3.5,mode:`onSuccess`},"amplemarket-email-lookup":{provider:`amplemarket`,allowManagedConnection:!0,credits:2.5,mode:`onSuccess`}},Iy=class extends W{pipeId=Ey;payload;payloadSchema=Ny;billableOperations=Fy;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return this.payload.config?.providers.map(e=>e.provider)||[]}estimateBillableOperations(){return this.getProviderNames().map(e=>Y(e,this.billableOperations).billableOperation)}getInputRequirement(){return Py(this.payload.config)}getRawOutputFields(){return{[Oy.name]:this.catalogOutput(Oy,{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`,clado:`clado_contact_information`};return(this.payload.config?.providers||[]).map((t,n)=>({provider:t.provider,rateLimitRatio:J(n),rateLimitOperation:e[t.provider],allowManagedConnection:!0}))}},Ly=Ny,Ry={pipeId:Ey,basePipe:G(Ey),label:`Work email from LinkedIn URL`,executionMode:`waterfall`,categories:[`people_data`],lifecycle:null,description:`Find work email addresses from B2B profile.`,tags:[V.EMAIL,V.WORK_EMAIL,V.WATERFALL],docPath:K(Ey),managedProviders:Ay,allowedUserConnectionProviders:Ay,deprecatedProviders:jy,inputFieldMode:`static`,outputFieldMode:`static`,billableOperations:Fy,defaultInputRequirement:Py(null),defaultPayload:{pipe_id:Ey,connector:null,run_if:null,config:{providers:My,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}}}}},zy=`person:workemail:waterfall@1`,By=v(`name`),Vy=v(`company_domain`),Hy=v(`company_name`),Uy=v(`work_email`),Wy=v(`email_validation_status`),Gy=[`leadmagic`,`prospeo`,`amplemarket`,`hunter`,`icypeas`,`findymail`],Ky=[{provider:`leadmagic`},{provider:`prospeo`},{provider:`amplemarket`},{provider:`hunter`},{provider:`icypeas`},{provider:`findymail`}],qy={"leadmagic-get-work-email":{provider:`leadmagic`,allowManagedConnection:!0,credits:.5,mode:`onSuccess`},"icypeas-get-work-email":{provider:`icypeas`,allowManagedConnection:!0,credits:.5,mode:`onSuccess`},"prospeo-get-work-email":{provider:`prospeo`,allowManagedConnection:!0,credits:1,mode:`onSuccess`},"findymail-get-work-email":{provider:`findymail`,allowManagedConnection:!0,credits:1,mode:`onSuccess`},"hunter-get-work-email":{provider:`hunter`,allowManagedConnection:!0,credits:1,mode:`onSuccess`},"amplemarket-email-lookup":{provider:`amplemarket`,allowManagedConnection:!0,credits:2.5,mode:`onSuccess`}},Jy=r.object({pipe_id:r.literal(zy),connector:T(),run_if:C(),config:r.object({providers:O({availableProviders:Gy,defaultProviders:Ky,sectionKey:`general`,providerCredits:Ma(qy,Gy)}),allow_catch_all_emails:k({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:k({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:B(r.object({[By.name]:D({fieldName:By.name}),[Vy.name]:D({fieldName:Vy.name}),[Hy.name]:D({fieldName:Hy.name})})),output_fields:z(r.object({[Uy.name]:A({fieldName:Uy.name}),[Wy.name]:A({fieldName:Wy.name})}))}).optional()}),Yy=e=>xa(H(q(By,e)),U(q(Vy,e),q(Hy,e))),Xy=class extends W{pipeId=zy;payload;payloadSchema=Jy;billableOperations=qy;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return this.payload.config?.providers.map(e=>e.provider)||[]}estimateBillableOperations(){return this.getProviderNames().map(e=>Y(e,this.billableOperations).billableOperation)}getInputRequirement(){return Yy(this.payload.config)}getRawOutputFields(){return{[Uy.name]:this.catalogOutput(Uy,{isPrimaryOutput:!0}),[Wy.name]:this.catalogOutput(Wy,{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:J(n),rateLimitOperation:e[t.provider],allowManagedConnection:!0}))}},Zy=Jy,Qy={pipeId:zy,basePipe:G(zy),label:`Work email from name`,executionMode:`waterfall`,categories:[`people_data`],lifecycle:null,description:`Find work email addresses in a waterfall motion.`,tags:[V.EMAIL,V.WORK_EMAIL,V.WATERFALL],docPath:K(zy),managedProviders:Gy,deprecatedProviders:[],allowedUserConnectionProviders:Gy,inputFieldMode:`static`,outputFieldMode:`static`,billableOperations:qy,defaultInputRequirement:Yy(null),defaultPayload:{pipe_id:zy,connector:null,run_if:null,config:{providers:Ky,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}}}}},$y=`prompt:run@1`,eb=ei(`prompt`),tb=r.object({pipe_id:r.literal($y),connector:T(),run_if:C(),config:r.object({prompt:Ri({sectionKey:`general`,path:`config.prompt`,placeholder:X(`prompt`),groupPath:`config.prompt`,supportedTags:[`input`,`output`]}),model:ta({sectionKey:`general`,label:`Model`,path:`config.model`,groupPath:`config.prompt`,billableOperations:eb})})}),nb=class extends W{pipeId=$y;payload;payloadSchema=tb;billableOperations=eb;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return ti(this.payload.config.model)}estimateBillableOperations(){return[ni(this.payload.config.model,`prompt`)]}getInputRequirement(){return Lm([this.payload.config.prompt.template])}getSecretRequirements(){return Rm([this.payload.config.prompt.template])}getConstantRequirements(){return zm([this.payload.config.prompt.template])}getRawOutputFields(){let e=this.payload.config.prompt.template,t=this.payload.config.prompt.json_schemas??{},n={},r;try{r=Ar(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 ri(this.payload.config.model)}},rb=tb,ib={pipeId:$y,inputFieldMode:`config`,outputFieldMode:`config`,basePipe:G($y),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:[V.AI],docPath:K($y),defaultInputRequirement:null,billableOperations:eb,allowedUserConnectionProviders:ii(),managedProviders:ii(),deprecatedProviders:[],defaultPayload:{pipe_id:$y,connector:null,run_if:null,config:{model:`openai-gpt-latest`,prompt:{template:``,json_schemas:{}}}}},ab=`sheet:row:append@1`,ob=v(`sheet_record_id`),sb=v(`created_sheet`),cb=[{label:`Demo leads`,value:`demo-leads`},{label:`Demo companies`,value:`demo-companies`},{label:`Demo contacts`,value:`demo-contacts`}],lb=[{label:`Demo team`,value:`sandbox-team-1`},{label:`Demo workspace`,value:`sandbox-team-2`}],ub={requires:{connection:`pipe0`},enabledIf:cn(`pipe0`,`Select a pipe0 connection to see sheet suggestions`),options:async({query:e,client:t,environment:n})=>n===`sandbox`?cb: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`}}},db={requires:{connection:`pipe0`},enabledIf:cn(`pipe0`,`Select a pipe0 connection to see team suggestions`),options:async({query:e,client:t,environment:n})=>n===`sandbox`?lb:t?(await t.teams.list({query:e})).map(e=>({label:e.name,value:e.id})):[],widgets:{provider_logo:{provider:`pipe0`}}},fb=r.object({pipe_id:r.literal(ab),connector:Vi(),run_if:C(),config:r.object({sheet:w({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:ub}),run:k({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:k({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:k({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:oa({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:db,enabledIf:e=>e.config?.allow_sheet_creation?{disabled:!1}:{disabled:!0,message:`Turn on β€œUpsert sheets” to specify a team.`}}),included_fields:Ui({label:`Fields`,info:`All fields are written if empty.`,groupPath:`config.general`,path:`config.included_fields`,sectionKey:`general`,disableSearch:!0}),output_fields:z(r.object({[ob.name]:A({fieldName:ob.name}),[sb.name]:A({fieldName:sb.name})}))})}),pb={"sheets-append-pipe0":{provider:`pipe0`,allowManagedConnection:!1,credits:null,mode:null}},mb=class extends W{pipeId=ab;payload;payloadSchema=fb;billableOperations=pb;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[`sheets-append-pipe0`]}getInputRequirement(){let e=[Lm([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(H({name:t.field_name,resolvedName:t.field_name,label:``,description:``,type:e=>{let n=Im(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 xa(...e)}getSecretRequirements(){return Rm([this.payload.config.sheet])}getConstantRequirements(){return zm([this.payload.config.sheet])}getRawOutputFields(){return{[ob.name]:this.catalogOutput(ob),[sb.name]:this.catalogOutput(sb)}}getConnectionsRequirements(){return[{provider:`pipe0`,rateLimitRatio:1,rateLimitOperation:`pipe0-sheet-operation`,allowManagedConnection:!0}]}},hb=fb,gb={pipeId:ab,basePipe:G(ab),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:K(ab),tags:[V.FIELDS],billableOperations:pb,defaultInputRequirement:null,inputFieldMode:`config`,outputFieldMode:`static`,defaultPayload:{pipe_id:ab,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}}}}},_b=`sheet:row:expandappend@1`,vb=v(`sheet_record_ids`),yb=v(`input_objects`),bb=r.object({pipe_id:r.literal(_b),connector:Vi(),run_if:C(),config:r.object({sheet:Qi({label:`Sheet name`,info:`Unique identifier for the sheet`,groupPath:`config.general`,sectionKey:`general`,inputType:`text`,path:`config.sheet`,minLength:3}),run:k({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:k({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:B(r.object({[yb.name]:D({fieldName:yb.name})})),output_fields:z(r.object({[vb.name]:A({fieldName:vb.name})}))})}),xb={"sheets-appendexpand-pipe0":{provider:`pipe0`,allowManagedConnection:!1,credits:null,mode:null}},Sb=e=>H(q(yb,e)),Cb=class extends W{pipeId=_b;payload;payloadSchema=bb;billableOperations=xb;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[`sheets-appendexpand-pipe0`]}getInputRequirement(){return Sb(this.payload.config)}getRawOutputFields(){return{[vb.name]:this.catalogOutput(vb)}}getConnectionsRequirements(){return[{provider:`pipe0`,rateLimitRatio:1,rateLimitOperation:`pipe0-sheet-operation`,allowManagedConnection:!0}]}},wb=bb,Tb={pipeId:_b,basePipe:G(_b),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:K(_b),tags:[V.FIELDS],billableOperations:xb,defaultInputRequirement:Sb(null),inputFieldMode:`static`,outputFieldMode:`static`,defaultPayload:{pipe_id:_b,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}}}}},Eb=`template:fill@1`,Db=v(`template_output`),Ob=r.object({pipe_id:r.literal(Eb),connector:T(),run_if:C(),config:r.object({template:zi({sectionKey:`general`,path:`config.template`,label:`Template`,placeholder:X(`template`),groupPath:`config.general`,required:!0}),output_fields:z(r.object({[Db.name]:A({fieldName:Db.name})}))})}),kb={"template-fill":{credits:0,allowManagedConnection:!0,provider:`pipe0`,mode:`always`}},Ab=class extends W{pipeId=Eb;payload;payloadSchema=Ob;billableOperations=kb;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[`template-fill`]}getInputRequirement(){return Lm([this.payload.config.template])}getSecretRequirements(){return Rm([this.payload.config.template])}getConstantRequirements(){return zm([this.payload.config.template])}getRawOutputFields(){return{[Db.name]:this.catalogOutput(Db)}}getConnectionsRequirements(){return[]}},jb=Ob,Mb={pipeId:Eb,inputFieldMode:`config`,outputFieldMode:`config`,basePipe:G(Eb),label:`Fill a text template`,executionMode:`single`,categories:[`tools`],lifecycle:null,description:`Replaces template tags like {{ input name type="string" }} with actual values.`,tags:[V.TEXT],docPath:K(Eb),defaultInputRequirement:null,billableOperations:kb,allowedUserConnectionProviders:[],managedProviders:[`pipe0`],deprecatedProviders:[],defaultPayload:{pipe_id:Eb,connector:null,run_if:null,config:{template:``,output_fields:{template_output:{alias:``,enabled:!0}}}}},Nb=`website:extract:firecrawl@1`,Pb=v(`website_url`),Fb=v(`firecrawl_extract_result`),Ib=r.object({pipe_id:r.literal(Nb),connector:T(),run_if:C(),config:r.object({json_schema:aa({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:$i({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:k({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:k({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:B(r.object({[Pb.name]:D({fieldName:Pb.name})})),output_fields:z(r.object({[Fb.name]:A({fieldName:Fb.name})}))})}),Lb=e=>H(q(Pb,e)),Rb={"firecrawl-website-extract":{allowManagedConnection:!0,provider:`firecrawl`,credits:2,mode:`onSuccess`}},zb=class extends W{pipeId=Nb;payload;payloadSchema=Ib;billableOperations=Rb;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`firecrawl`]}estimateBillableOperations(){return[`firecrawl-website-extract`]}getInputRequirement(){return Lb(this.payload.config)}getRawOutputFields(){return{[Fb.name]:this.catalogOutput(Fb)}}getConnectionsRequirements(){return[{provider:`firecrawl`,rateLimitRatio:1,rateLimitOperation:`firecrawl_generic`,allowManagedConnection:!0}]}},Bb=Ib,Vb={pipeId:Nb,basePipe:G(Nb),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:[V.SCRAPE],docPath:K(Nb),billableOperations:Rb,inputFieldMode:`static`,outputFieldMode:`static`,allowedUserConnectionProviders:[`firecrawl`],managedProviders:[`firecrawl`],deprecatedProviders:[],defaultInputRequirement:Lb(null),defaultPayload:{pipe_id:Nb,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}}}}},Hb=`website:maplinks:firecrawl@1`,Ub={"firecrawl-website-maplinks":{allowManagedConnection:!0,provider:`firecrawl`,credits:1,mode:`onSuccess`}},Wb=v(`website_url`),Gb=v(`mapped_links`),Kb=r.object({pipe_id:r.literal(Hb),connector:T(),run_if:C(),config:r.object({page_limit:ra({label:`Page limit`,info:`Number of pages searched`,groupPath:`config.general`,max:50,min:1,required:!1,path:`config.page_limit`,sectionKey:`general`}),sitemap:ea({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:Qi({sectionKey:`general`,label:`Search`,inputType:`text`,info:`Return matching urls`,groupPath:`config.general`,path:`config.search`}).default(``),input_fields:B(r.object({[Wb.name]:D({fieldName:Wb.name})})),output_fields:z(r.object({[Gb.name]:A({fieldName:Gb.name})}))}).optional()}),qb=e=>H(q(Wb,e)),Jb=class extends W{pipeId=Hb;payload;payloadSchema=Kb;billableOperations=Ub;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`firecrawl`]}estimateBillableOperations(){return[`firecrawl-website-maplinks`]}getInputRequirement(){return qb(this.payload.config)}getRawOutputFields(){return{[Gb.name]:this.catalogOutput(Gb)}}getConnectionsRequirements(){return[{provider:`firecrawl`,rateLimitRatio:1,rateLimitOperation:`firecrawl_map_requests`,allowManagedConnection:!0}]}},Yb=Kb,Xb={pipeId:Hb,basePipe:G(Hb),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:[V.SCRAPE],docPath:K(Hb),billableOperations:Ub,inputFieldMode:`static`,outputFieldMode:`static`,allowedUserConnectionProviders:[`firecrawl`],managedProviders:[`firecrawl`],deprecatedProviders:[],defaultInputRequirement:qb(null),defaultPayload:{pipe_id:Hb,run_if:null,connector:null,config:{page_limit:25,sitemap:`include`,search:``,input_fields:{website_url:{alias:``}},output_fields:{mapped_links:{alias:``,enabled:!0}}}}},Zb=`website:scrape:firecrawl@1`,Qb=v(`website_url`),$b=v(`website_markdown`),ex=v(`website_html`),tx=v(`website_links`),nx=r.object({pipe_id:r.literal(Zb),connector:T(),run_if:C(),config:r.object({scrape_main_only:k({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:B(r.object({[Qb.name]:D({fieldName:Qb.name})})),output_fields:z(r.object({[$b.name]:A({fieldName:$b.name}),[ex.name]:A({fieldName:ex.name}),[tx.name]:A({fieldName:tx.name})}))}).optional()}),rx=e=>H(q(Qb,e)),ix={"firecrawl-website-scrape":{allowManagedConnection:!0,provider:`firecrawl`,credits:.1,mode:`onSuccess`}},ax=class extends W{pipeId=Zb;payload;payloadSchema=nx;billableOperations=ix;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`firecrawl`]}estimateBillableOperations(){return[`firecrawl-website-scrape`]}getInputRequirement(){return rx(this.payload.config)}getRawOutputFields(){return{[$b.name]:this.catalogOutput($b),[ex.name]:this.catalogOutput(ex),[tx.name]:this.catalogOutput(tx)}}getConnectionsRequirements(){return[{provider:`firecrawl`,rateLimitRatio:1,rateLimitOperation:`firecrawl_generic`,allowManagedConnection:!0}]}},ox=nx,sx={pipeId:Zb,basePipe:G(Zb),label:`Scrape`,executionMode:`single`,categories:[`tools`],lifecycle:null,description:`Turn any URL into clean data.`,tags:[V.SCRAPE],docPath:K(Zb),billableOperations:ix,inputFieldMode:`static`,outputFieldMode:`static`,allowedUserConnectionProviders:[`firecrawl`],managedProviders:[`firecrawl`],deprecatedProviders:[],defaultInputRequirement:rx(null),defaultPayload:{pipe_id:Zb,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}}}}},cx=`website:scrapelist:firecrawl@1`,lx={"firecrawl-list-url-scrape":{allowManagedConnection:!0,provider:`firecrawl`,credits:.1,mode:`onSuccess`,note:`You are charged per url that is scraped.`}},ux=v(`urls`),dx=v(`scrape_list_response`),fx=r.object({pipe_id:r.literal(cx),connector:T(),run_if:C(),config:r.object({scrape_main_only:k({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:na({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:B(r.object({[ux.name]:D({fieldName:ux.name})})),output_fields:z(r.object({[dx.name]:A({fieldName:dx.name})}))}).optional()}),px=e=>H(q(ux,e)),mx=class extends W{pipeId=cx;payload;payloadSchema=fx;billableOperations=lx;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`firecrawl`]}estimateBillableOperations(){return[,,,,,].fill(`firecrawl-list-url-scrape`)}getInputRequirement(){return px(this.payload.config)}getRawOutputFields(){return{[dx.name]:this.catalogOutput(dx)}}getConnectionsRequirements(){return[{provider:`firecrawl`,rateLimitRatio:1,rateLimitOperation:`firecrawl_generic`,allowManagedConnection:!0}]}},hx=fx,gx={pipeId:cx,basePipe:G(cx),label:`Scrape list`,executionMode:`single`,categories:[`tools`],lifecycle:null,description:`Turn a list of URLs into clean scraped data.`,tags:[V.SCRAPE],docPath:K(cx),billableOperations:lx,inputFieldMode:`static`,outputFieldMode:`static`,allowedUserConnectionProviders:[`firecrawl`],managedProviders:[`firecrawl`],deprecatedProviders:[],defaultInputRequirement:px(null),defaultPayload:{pipe_id:cx,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}}}}},_x={"prompt:run@1":nb,"company:newssummary:website@1":ll,"company:newssummary:domain@1":rs,"company:techstack:builtwith@1":Zl,"company:techstack:builtwith@2":As,"company:websiteurl:email@1":ou,"company:domain:workemail@1":Ka,"company:funding:leadmagic@1":nc,"company:funding:leadmagic@2":oo,"people:workemail:waterfall@1":xm,"person:workemail:waterfall@1":Xy,"people:email:iswork@1":hu,"email:iswork@1":Am,"people:name:split@1":Wd,"person:name:split@1":dv,"people:validate:email:zerobounce@1":Jp,"people:email:validate:zerobounce@2":Pu,"email:validate:zerobounce@1":sh,"people:mobilenumber:workemail:waterfall@1":Pd,"person:name:join@1":tv,"company:overview@1":wl,"company:overview@2":Bl,"company:overview@3":ys,"json:extract:multi@1":sg,"company:lookalikes:companyenrich@1":Nc,"company:lookalikes:companyenrich@2":Do,"company:match:logodev@1":el,"company:match:logodev@2":Jo,"person:posts:crustdata@1":Nv,"people:profile:workemail:crustdata@1":Ep,"person:profile:workemail:crustdata@1":ey,"people:identity:email:waterfall@1":td,"person:identity:email:waterfall@1":r_,"person:identity:amplemarket@1":Vg,"email:send:resend@1":Zm,"contact:create:resend@1":Hs,"email:send:gmail@1":Wm,"email:write@1":gh,"fields:merge@1":Kh,"field:slugify@1":Ph,"field:domainify@1":Th,"http:request@1":tg,"template:fill@1":Ab,"message:send:slack@1":hg,"message:write@1":Sg,"people:personalemail:profile:waterfall@1":nf,"person:personalemail:profileurl:waterfall@1":Cv,"website:scrape:firecrawl@1":ax,"website:scrapelist:firecrawl@1":mx,"website:extract:firecrawl@1":zb,"website:maplinks:firecrawl@1":Jb,"sheet:row:append@1":mb,"sheet:row:expandappend@1":Cb,"people:match:role:waterfall@1":fd,"person:match:role:waterfall@1":C_,"company:match:crustdata@1":Hc,"company:match:crustdata@2":Io,"person:match:amplemarket@1":f_,"company:identity@2":wc,"company:identity@3":vo,"people:phone:profile:waterfall@1":mf,"person:mobile:profileurl:waterfall@1":P_,"people:phone:workemail:waterfall@1":Tf,"person:mobile:workemail:waterfall@1":G_,"people:profile:waterfall@1":gp,"person:profile:waterfall@1":Wv,"people:profileurl:email:waterfall@1":Rp,"person:profileurl:email:waterfall@1":fy,"person:profileurl:name@1":Cy,"people:email:validate:zerobounce@1":wu,"person:email:validate:millionverifier@1":Mg,"people:workemail:profileurl:waterfall@1":sm,"person:workemail:profileurl:waterfall@1":Iy,"company:identity@1":pc,"people:professionalprofile:waterfall@1":If,"people:professionalprofileurl:name@1":ap,"people:professionalprofileurl:email:waterfall@1":Jf,"people:mobilenumber:professionalprofile:waterfall@1":Cd},vx={"prompt:run@1":rb,"company:newssummary:website@1":ul,"company:newssummary:domain@1":is,"company:techstack:builtwith@1":Ql,"company:techstack:builtwith@2":js,"company:websiteurl:email@1":su,"company:domain:workemail@1":qa,"company:funding:leadmagic@1":rc,"company:funding:leadmagic@2":so,"people:workemail:waterfall@1":Sm,"person:workemail:waterfall@1":Zy,"people:email:iswork@1":gu,"email:iswork@1":jm,"people:name:split@1":Gd,"person:name:split@1":fv,"people:validate:email:zerobounce@1":Yp,"people:email:validate:zerobounce@2":Fu,"email:validate:zerobounce@1":ch,"people:mobilenumber:workemail:waterfall@1":Fd,"person:name:join@1":nv,"company:overview@1":Tl,"company:overview@2":Vl,"company:overview@3":bs,"json:extract:multi@1":cg,"email:write@1":_h,"fields:merge@1":qh,"field:slugify@1":Fh,"field:domainify@1":Eh,"http:request@1":ng,"email:send:resend@1":Qm,"contact:create:resend@1":Us,"company:lookalikes:companyenrich@1":Pc,"company:lookalikes:companyenrich@2":Oo,"company:match:logodev@1":tl,"company:match:logodev@2":Yo,"person:posts:crustdata@1":Pv,"people:profile:workemail:crustdata@1":Dp,"person:profile:workemail:crustdata@1":ty,"people:identity:email:waterfall@1":nd,"person:identity:email:waterfall@1":i_,"company:match:crustdata@1":Uc,"company:match:crustdata@2":Lo,"person:identity:amplemarket@1":Hg,"message:send:slack@1":gg,"email:send:gmail@1":Gm,"message:write@1":Cg,"template:fill@1":jb,"website:scrape:firecrawl@1":ox,"website:scrapelist:firecrawl@1":hx,"website:extract:firecrawl@1":Bb,"website:maplinks:firecrawl@1":Yb,"sheet:row:append@1":hb,"sheet:row:expandappend@1":wb,"people:match:role:waterfall@1":pd,"person:match:role:waterfall@1":w_,"company:identity@2":Tc,"company:identity@3":yo,"people:phone:profile:waterfall@1":hf,"person:mobile:profileurl:waterfall@1":F_,"people:personalemail:profile:waterfall@1":rf,"person:personalemail:profileurl:waterfall@1":wv,"people:profile:waterfall@1":_p,"person:profile:waterfall@1":Gv,"people:profileurl:email:waterfall@1":zp,"person:profileurl:email:waterfall@1":py,"person:profileurl:name@1":wy,"people:email:validate:zerobounce@1":Tu,"person:email:validate:millionverifier@1":Ng,"people:phone:workemail:waterfall@1":Ef,"person:mobile:workemail:waterfall@1":K_,"people:workemail:profileurl:waterfall@1":cm,"person:workemail:profileurl:waterfall@1":Ly,"person:match:amplemarket@1":p_,"company:identity@1":mc,"people:professionalprofile:waterfall@1":Lf,"people:professionalprofileurl:name@1":op,"people:professionalprofileurl:email:waterfall@1":Yf,"people:mobilenumber:professionalprofile:waterfall@1":wd},yx={"prompt:run@1":ib,"company:newssummary:website@1":dl,"company:newssummary:domain@1":as,"company:techstack:builtwith@1":$l,"company:techstack:builtwith@2":Ms,"company:websiteurl:email@1":cu,"company:domain:workemail@1":Ja,"company:funding:leadmagic@1":ic,"company:funding:leadmagic@2":co,"people:workemail:waterfall@1":Cm,"person:workemail:waterfall@1":Qy,"people:email:iswork@1":_u,"email:iswork@1":Mm,"people:name:split@1":Kd,"person:name:split@1":pv,"people:validate:email:zerobounce@1":Xp,"people:mobilenumber:workemail:waterfall@1":Id,"person:name:join@1":rv,"company:overview@1":El,"company:overview@2":Hl,"company:overview@3":xs,"json:extract:multi@1":lg,"email:send:resend@1":$m,"contact:create:resend@1":Ws,"email:send:gmail@1":Km,"message:send:slack@1":_g,"message:write@1":wg,"email:write@1":vh,"template:fill@1":Mb,"fields:merge@1":Jh,"field:slugify@1":Ih,"field:domainify@1":Dh,"http:request@1":rg,"sheet:row:append@1":gb,"sheet:row:expandappend@1":Tb,"company:lookalikes:companyenrich@1":Fc,"company:lookalikes:companyenrich@2":ko,"people:match:role:waterfall@1":md,"person:match:role:waterfall@1":T_,"company:match:logodev@1":nl,"company:match:logodev@2":Xo,"person:posts:crustdata@1":Fv,"people:profile:workemail:crustdata@1":Op,"person:profile:workemail:crustdata@1":ny,"people:workemail:profileurl:waterfall@1":lm,"person:workemail:profileurl:waterfall@1":Ry,"people:identity:email:waterfall@1":rd,"person:identity:email:waterfall@1":a_,"company:match:crustdata@1":Wc,"company:match:crustdata@2":Ro,"person:identity:amplemarket@1":Ug,"people:personalemail:profile:waterfall@1":af,"person:personalemail:profileurl:waterfall@1":Tv,"people:email:validate:zerobounce@1":Eu,"people:email:validate:zerobounce@2":Iu,"email:validate:zerobounce@1":lh,"person:email:validate:millionverifier@1":Pg,"people:phone:workemail:waterfall@1":Df,"person:mobile:workemail:waterfall@1":q_,"website:scrape:firecrawl@1":sx,"website:scrapelist:firecrawl@1":gx,"website:extract:firecrawl@1":Vb,"website:maplinks:firecrawl@1":Xb,"person:match:amplemarket@1":m_,"company:identity@2":Ec,"company:identity@3":bo,"people:phone:profile:waterfall@1":gf,"person:mobile:profileurl:waterfall@1":I_,"people:profile:waterfall@1":vp,"person:profile:waterfall@1":Kv,"people:profileurl:email:waterfall@1":Bp,"person:profileurl:email:waterfall@1":my,"person:profileurl:name@1":Ty,"company:identity@1":hc,"people:professionalprofile:waterfall@1":Rf,"people:professionalprofileurl:name@1":sp,"people:professionalprofileurl:email:waterfall@1":Xf,"people:mobilenumber:professionalprofile:waterfall@1":Td};function bx(e){return e.defaultPayload?.config?.output_fields?Object.keys(e.defaultPayload?.config?.output_fields||{}):[]}function xx(e){return _x[e]}function Sx(e){return yx[e].defaultPayload}function Cx(e){return vx[e]}const wx=r.discriminatedUnion(`pipe_id`,Object.values(vx)).openapi(`PipePayload`),Tx=r.preprocess(e=>{if(!e||typeof e!=`object`||!(`pipe_id`in e))return e;try{let t=Sx(_n.parse(e.pipe_id));return t?{...e,config:va(e?.config||{},t.config)}:e}catch{return e}},wx);function Ex(e){return yx[e]}function Dx(e,t){let n=Ex(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 Ox(e){let t=e.split(`@`)[1];if(!t)throw Error(`No pipe version found`);return Number(t)}function kx(){let e={};for(let t of Object.values(yx)){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=Ox(e.pipeId);return Ox(t.pipeId)-n})}),e}const Ax=e=>{let t=Ex(e),n=new Set(t.deprecatedProviders);return Array.from(new Set([...t.managedProviders,...t.allowedUserConnectionProviders])).filter(e=>!n.has(e))},jx=kx();function Mx(e){let t=[];for(let[n,r]of Object.entries(jx)){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:Ox(i.pipeId)})}return t}function Nx(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=Ax(e.defaultPayload.pipe_id);for(let n of t)o[n]??=[],o[n].push(e.defaultPayload.pipe_id);for(let t of bx(e))i[t]??=[],i[t].push(e.defaultPayload.pipe_id);if(e.defaultInputRequirement)for(let{field:t}of wa(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:jx}}const Px=r.object({id:r.string(),organization_id:r.string(),order:r.array(bn),field_definitions:Zn,errors:r.array(Fn),records:r.record(bn,Jn),status:r.enum([`completed`,`failed`,`pending`,`processing`])}).openapi(`PipesResponseSchema`),Fx=r.object({environment:hn.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`),Ix=r.object({config:Fx.openapi(`PipesRequestConfig`),field_annotations:Bn.optional().openapi(`PipesFieldAnnotations`),pipes:r.array(wx),input:r.array(qn.openapi(`PipesInputSchema`)),scopes:r.array(r.string()).optional()});function Lx(e){let t=Ex(e);return Object.values(t.billableOperations).reduce((e,t)=>{let n=t.credits||0;return e[t.provider]??=n,e[t.provider]=Math.min(e[t.provider],n),e},{})}const Rx={"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:99,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}},zx={general:{type:`form_section`,path:`general`,label:`Behavior`,description:`How this pipe runs and selects providers.`},pagination:{type:`form_section`,path:`pagination`,label:`Behavior`},"config.input_fields":{type:`form_section`,path:`config.input_fields`,label:`I/O & conditions`,description:`Wire inputs, outputs, and run-time conditions.`},"config.output_fields":{type:`form_section`,path:`config.output_fields`,label:`I/O & conditions`},"config.pipe_io":{type:`form_section`,path:`config.pipe_io`,label:`I/O & conditions`},"config.extractions":{type:`form_section`,path:`config.json_extraction`,label:`I/O & conditions`},conditions:{type:`form_section`,path:`run_if`,label:`I/O & conditions`,mode:`dynamic`},connector:{type:`form_section`,path:`connector`,label:`I/O & conditions`,mode:`dynamic`},"config.filters":{type:`form_section`,path:`config.filters`,label:`I/O & conditions`}},Bx={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 Vx(e){let t=Cx(e),n=[];function i(e){let t=b.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 Hx({pipePayload:e,validationContext:t,sectionOrder:n=Bx,store:r,groupPathMatch:i=Rx,formResolvers:a}){let o=Cx(e.pipe_id),s=Aa(e.pipe_id,e.config||{});return Ii({schema:o,groupPathMatch:i,extractFromSchema:n=>{let i=b.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:Ex(e.pipe_id),hash:s}):i},sectionOrder:n,sectionMap:zx,store:r,formResolvers:a})}const Ux=[`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`],Wx=r.enum(Ux);function Gx(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 Kx(e,t){let n={name:e,config:t};return ka.hashObject(n)}var qx=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 Kx(this.searchId,this.payload)}};function Jx(e){return e.split(`@`)[0]}function Yx(e){return`/docs/searches/searches-catalog/${Jx(e)}/${e.split(`@`)[1]}`}function Xx(e,t=32){return`https://www.google.com/s2/favicons?sz=${t}&domain=${e.replace(/^(https?:\/\/)?(www\.)?/,``)}`}function Zx(e,t){return e==null?void 0:t(e)}function Qx(){return $x({companyWebsiteUrl:`linkedin.com`,entity:`LinkedIn`})}function $x({companyWebsiteUrl:e,entity:t}){if(e)return{image_url:Xx(e),entity:t||e}}function eS(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 tS=`companies:profiles:amplemarket@2`,nS=v(`company_name`),rS=v(`company_domain`),iS=v(`company_description`),aS=v(`company_profile_url`),oS=v(`amplemarket_company_match`),sS=r.object({search_id:r.literal(tS),connector:y.nullable().optional(),config:r.object({limit:R({label:`Limit`,description:`Max number of search results`,path:`config.limit`,min:1,max:100,groupPath:`config.pagination`,required:!0,sectionKey:`pagination`}),page_number:R({path:`config.page_number`,groupPath:`config.pagination`,required:!1,label:`Page number`,min:1,sectionKey:`pagination`,description:``}),output_fields:z(r.object({[nS.name]:P({fieldName:nS.name}),[rS.name]:P({fieldName:rS.name}),[iS.name]:P({fieldName:iS.name}),[aS.name]:P({fieldName:aS.name}),[oS.name]:P({fieldName:oS.name})})),filters:r.object({hq_locations:L({path:`config.filters.hq_locations`,sectionKey:`config.filters`,label:`HQ locations`,description:``,placeholder:X(`location`),groupPath:`config.filters.location`,optionsDef:_(`locations`)}),company_names:M({sectionKey:`config.filters`,path:`config.filters.company_names`,label:`Company names`,description:``,placeholder:X(`company_name`),groupPath:`config.filters.categories`,suggestionsDef:_(`company_names`)}),company_domains:M({sectionKey:`config.filters`,path:`config.filters.company_domains`,label:`Company domains`,description:``,placeholder:X(`company_domain`),groupPath:`config.filters.categories`,suggestionsDef:_(`company_domains`,{widgets:e=>({logo_url:{url:Xx(e.value)}})})}),company_profile_urls:M({sectionKey:`config.filters`,path:`config.filters.company_profile_urls`,label:`Company LinkedIn URLs`,description:``,groupPath:`config.filters.categories`}),company_types:F({sectionKey:`config.filters`,path:`config.filters.company_types`,disableSearch:!1,label:`Company Type`,description:``,groupPath:`config.filters.categories`,options:h(`amplemarket.company_types`),required:!1}),investors:I({sectionKey:`config.filters`,path:`config.filters.investors`,label:`Investor names`,optionsDef:_(`company.crunchbase_investors.crustdata`),description:`A list of company investor names`,placeholder:X(`investor`),groupPath:`config.filters.investors`,disableSearch:!1,required:!1}),company_industries:N({sectionKey:`config.filters`,path:`config.filters.company_industries`,optionsDef:g(`amplemarket.industries`),disableSearch:!1,label:`Industries`,description:``,placeholder:X(`industry`),groupPath:`config.filters.industry`}),customer_types:F({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:M({sectionKey:`config.filters`,path:`config.filters.keywords`,label:`Keywords`,description:``,groupPath:`config.filters.industry`}),revenue_groups:F({path:`config.filters.revenue_groups`,sectionKey:`config.filters`,label:`Revenue groups`,description:``,disableSearch:!0,options:h(`amplemarket.company_revenue`),required:!1,groupPath:`config.filters.financials`}),founded_year:ca({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:j({path:`config.filters.open_position_titles`,sectionKey:`config.filters`,label:`Job openings for titles`,groupPath:`config.filters.job_openings`,description:``,placeholder:X(`title`),suggestionsDef:_(`titles`)}),headcount:F({sectionKey:`config.filters`,path:`config.filters.company_sizes`,disableSearch:!1,options:h(`amplemarket.company_size`),label:`Headcount groups`,required:!1,description:``,groupPath:`config.filters.company_size`}),headcount_growth_l6m_in_percent:ca({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=>{Gx(e.value)&&e.issues.push({code:`custom`,message:`You must set at least one filter.`,input:e.value})})})}),cS={default:{input:[{fields:[]}]}},lS=class extends qx{searchId=tS;schema=sS;payload;constructor(e){super(),this.payload=this.validatePayload(e)}getRawOutputFields(){return{[nS.name]:this.catalogOutput(nS),[rS.name]:this.catalogOutput(rS),[iS.name]:this.catalogOutput(iS),[aS.name]:this.catalogOutput(aS),[oS.name]:this.catalogOutput(oS)}}getConnectionsRequirements(){return[{provider:`amplemarket`,rateLimitOperation:`amplemarket_company_search`,rateLimitRatio:1,allowManagedConnection:!0}]}getDedupConfig(){return cS}},uS=sS,dS={searchId:tS,baseSearch:Jx(`companies:profiles:amplemarket@2`),label:`Company search`,categories:[`companies`],paginationType:`page_number`,hasManagedConnection:!0,allowsUserConnection:!0,lifecycle:null,description:`Filter based company search.`,tags:[V.COMPANY_PROFILES],docPath:Yx(tS),cost:{mode:`per_page`,creditsPerPage:2},provider:`amplemarket`,defaultPayload:{search_id:tS,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:[]}}}}},fS=`companies:profiles:crustdata@2`,pS=v(`company_name`),mS=v(`company_domain`),hS=v(`company_description`),gS=v(`company_profile_url`),_S=v(`crustdata_company_match`),vS=r.object({search_id:r.literal(fS),connector:y.nullable().optional(),config:r.object({limit:R({path:`config.limit`,min:1,max:100,groupPath:`config.pagination`,required:!0,sectionKey:`pagination`,label:`Limit`,description:`Max number of search results`}),cursor:ma({path:`config.cursor`,groupPath:`config.pagination`,inputType:`text`,label:`Cursor`,sectionKey:`pagination`,description:`Pagination cursor`}),output_fields:z(r.object({[pS.name]:P({fieldName:pS.name}),[mS.name]:P({fieldName:mS.name}),[hS.name]:P({fieldName:hS.name}),[gS.name]:P({fieldName:gS.name}),[_S.name]:P({fieldName:_S.name})})),filters:r.object({hq_locations:L({path:`config.filters.hq_locations`,sectionKey:`config.filters`,label:`HQ locations`,description:``,placeholder:X(`location`),groupPath:`config.filters.location`,optionsDef:_(`locations`)}),crunchbase_categories:L({path:`config.filters.crunchbase_categories`,sectionKey:`config.filters`,label:`Crunchbase categories`,placeholder:X(`crunchbase_category`),description:``,groupPath:`config.filters.categories`,optionsDef:_(`company.crunchbase_categories.crustdata`)}),crunchbase_investors:L({path:`config.filters.crunchbase_investors`,sectionKey:`config.filters`,label:`Investors to include (Crunchbase)`,description:``,placeholder:X(`investor`),groupPath:`config.filters.investors`,optionsDef:_(`company.crunchbase_investors.crustdata`)}),tracxn_investors:L({path:`config.filters.tracxn_investors`,sectionKey:`config.filters`,label:`Investors to include (Tracxn)`,description:``,placeholder:X(`investor`),groupPath:`config.filters.investors`,optionsDef:_(`company.tracxn_investors.crustdata`)}),company_types:N({sectionKey:`config.filters`,path:`config.filters.company_types`,optionsDef:{type:`static`,options:h(`crustdata.company_types`)},label:`Company types`,placeholder:`Public, Private, ...`,description:``,groupPath:`config.filters.categories`}),linkedin_industries:L({sectionKey:`config.filters`,path:`config.filters.linkedin_industries`,optionsDef:_(`linkedin_industries.crustdata`),label:`Industries`,description:``,placeholder:X(`industry`),groupPath:`config.filters.industry`}),markets:L({sectionKey:`config.filters`,path:`config.filters.markets`,optionsDef:_(`company.markets.crustdata`),placeholder:`NYSE, TYO, ...`,label:`Markets`,description:``,groupPath:`config.filters.industry`}),linkedin_categories:L({sectionKey:`config.filters`,path:`config.filters.linkedin_categories`,optionsDef:_(`company.linkedin_categories.crustdata`),label:`LinkedIn category`,placeholder:`Marketing, Branding, ...`,description:``,groupPath:`config.filters.categories`}),headcount:N({path:`config.filters.headcount`,sectionKey:`config.filters`,label:`Headcount`,description:``,disableSearch:!0,placeholder:`1-10`,optionsDef:{type:`static`,options:h(`crustdata.company_size`)},groupPath:`config.filters.company_size`}),headcount_growth_l6m_in_percent:F({path:`config.filters.headcount_growth_l6m_in_percent`,sectionKey:`config.filters`,label:`Headcount growth over last 6 months in percent`,description:``,options:h(`crustdata.headcount_growth`),placeholder:`0-10%`,disableSearch:!0,required:!1,groupPath:`config.filters.company_size`}),revenue_in_usd:ua({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:N({path:`config.filters.last_funding_type`,sectionKey:`config.filters`,label:`Last funding type`,placeholder:`Series A`,disableSearch:!0,optionsDef:{type:`static`,options:h(`crustdata.funding_rounds`)},description:``,groupPath:`config.filters.financials`}),last_funding_amount:ua({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:F({path:`config.filters.number_of_followers`,sectionKey:`config.filters`,label:`Number of LinkedIn followers`,placeholder:`1-500`,disableSearch:!0,description:``,required:!1,options:h(`crustdata.company_followers`),groupPath:`config.filters.web_presence`}),follower_growth_l6m_in_percent:F({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:h(`crustdata.follower_growth`),groupPath:`config.filters.web_presence`}),profile_summary_keywords:M({path:`config.filters.profile_summary_keywords`,sectionKey:`config.filters`,maxItems:50,label:`LinkedIn company description contains`,placeholder:X(`company_profile_keyword`),description:``,groupPath:`config.filters.keywords`}),competitor_domains:M({path:`config.filters.competitor_domains`,sectionKey:`config.filters`,maxItems:50,label:`Competitor domain`,description:``,placeholder:X(`company_domain`),groupPath:`config.filters.competitors`,suggestionsDef:_(`company_domains`,{widgets:e=>({logo_url:{url:Xx(e.value)}})})})}).check(e=>{Gx(e.value)&&e.issues.push({code:`custom`,message:`You must set at least one filter.`,input:e.value})})})}),yS={default:{input:[{fields:[]}]}},bS=class extends qx{searchId=fS;schema=vS;payload;constructor(e){super(),this.payload=this.validatePayload(e)}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)}}getConnectionsRequirements(){return[{provider:`crustdata`,rateLimitOperation:`crustdata_company_db_search`,rateLimitRatio:1,allowManagedConnection:!0}]}getDedupConfig(){return yS}},xS=vS,SS={searchId:fS,baseSearch:Jx(`companies:profiles:crustdata@2`),label:`Company search`,categories:[`companies`],paginationType:`cursor`,hasManagedConnection:!0,allowsUserConnection:!0,lifecycle:null,description:`Filter based company search.`,tags:[V.COMPANY_PROFILES],docPath:Yx(fS),cost:{mode:`per_page`,creditsPerPage:2},provider:`crustdata`,defaultPayload:{search_id:fS,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:[]}}}}},CS=`companies:profiles:amplemarket@1`,wS=v(`company_name`),TS=v(`company_website_url`),ES=v(`company_description`),DS=v(`company_profile_url`),OS=v(`amplemarket_company_match`),kS=r.object({search_id:r.literal(CS),connector:y.nullable().optional(),config:r.object({limit:R({label:`Limit`,description:`Max number of search results`,path:`config.limit`,min:1,max:100,groupPath:`config.pagination`,required:!0,sectionKey:`pagination`}),page_number:R({path:`config.page_number`,groupPath:`config.pagination`,required:!1,label:`Page number`,min:1,sectionKey:`pagination`,description:``}),output_fields:z(r.object({[wS.name]:P({fieldName:wS.name}),[TS.name]:P({fieldName:TS.name}),[ES.name]:P({fieldName:ES.name}),[DS.name]:P({fieldName:DS.name}),[OS.name]:P({fieldName:OS.name})})),filters:r.object({hq_locations:L({path:`config.filters.hq_locations`,sectionKey:`config.filters`,label:`HQ locations`,description:``,placeholder:X(`location`),groupPath:`config.filters.location`,optionsDef:_(`locations`)}),company_names:M({sectionKey:`config.filters`,path:`config.filters.company_names`,label:`Company names`,description:``,placeholder:X(`company_name`),groupPath:`config.filters.categories`,suggestionsDef:_(`company_names`)}),company_website_urls:M({sectionKey:`config.filters`,path:`config.filters.company_website_urls`,label:`Company domains`,description:``,placeholder:X(`company_domain`),groupPath:`config.filters.categories`,suggestionsDef:_(`company_domains`,{widgets:{emoji:{char:`🌐`}}})}),company_profile_urls:M({sectionKey:`config.filters`,path:`config.filters.company_profile_urls`,label:`Company LinkedIn URLs`,description:``,groupPath:`config.filters.categories`}),company_types:F({sectionKey:`config.filters`,path:`config.filters.company_types`,disableSearch:!1,label:`Company Type`,description:``,groupPath:`config.filters.categories`,options:h(`amplemarket.company_types`),required:!1}),investors:I({sectionKey:`config.filters`,path:`config.filters.investors`,label:`Investor names`,optionsDef:_(`company.crunchbase_investors.crustdata`),description:`A list of company investor names`,placeholder:X(`investor`),groupPath:`config.filters.investors`,disableSearch:!1,required:!1}),company_industries:N({sectionKey:`config.filters`,path:`config.filters.company_industries`,optionsDef:g(`amplemarket.industries`),disableSearch:!1,label:`Industries`,description:``,placeholder:X(`industry`),groupPath:`config.filters.industry`}),customer_types:F({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:M({sectionKey:`config.filters`,path:`config.filters.keywords`,label:`Keywords`,description:``,groupPath:`config.filters.industry`}),revenue_groups:F({path:`config.filters.revenue_groups`,sectionKey:`config.filters`,label:`Revenue groups`,description:``,disableSearch:!0,options:h(`amplemarket.company_revenue`),required:!1,groupPath:`config.filters.financials`}),founded_year:ca({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:j({path:`config.filters.open_positions_titles`,sectionKey:`config.filters`,label:`Job openings for titles`,groupPath:`config.filters.job_openings`,description:``,placeholder:X(`title`),suggestionsDef:_(`titles`)}),headcount:F({sectionKey:`config.filters`,path:`config.filters.company_sizes`,disableSearch:!1,options:h(`amplemarket.company_size`),label:`Headcount groups`,required:!1,description:``,groupPath:`config.filters.company_size`}),headcount_growth_last_6_months_in_percent:ca({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=>{Gx(e.value)&&e.issues.push({code:`custom`,message:`You must set at least one filter.`,input:e.value})})})}),AS={default:{input:[{fields:[]}]}},jS=class extends qx{searchId=CS;schema=kS;payload;constructor(e){super(),this.payload=this.validatePayload(e)}getRawOutputFields(){return{[wS.name]:this.catalogOutput(wS),[TS.name]:this.catalogOutput(TS),[ES.name]:this.catalogOutput(ES),[DS.name]:this.catalogOutput(DS),[OS.name]:this.catalogOutput(OS)}}getConnectionsRequirements(){return[{provider:`amplemarket`,rateLimitOperation:`amplemarket_company_search`,rateLimitRatio:1,allowManagedConnection:!0}]}getDedupConfig(){return AS}},MS=kS,NS={searchId:CS,baseSearch:Jx(`companies:profiles:amplemarket@1`),label:`Company search`,categories:[`deprecated`],paginationType:`page_number`,hasManagedConnection:!0,allowsUserConnection:!0,lifecycle:{deprecatedOn:`2026-06-30`,replacedBy:`companies:profiles:amplemarket@2`},description:`Filter based company search.`,tags:[V.COMPANY_PROFILES],docPath:Yx(CS),cost:{mode:`per_page`,creditsPerPage:2},provider:`amplemarket`,defaultPayload:{search_id:CS,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`,FS=v(`company_name`),IS=v(`company_website_url`),LS=v(`company_description`),RS=v(`company_profile_url`),zS=v(`crustdata_company_match`),BS=r.object({search_id:r.literal(PS),connector:y.nullable().optional(),config:r.object({limit:R({path:`config.limit`,min:1,max:100,groupPath:`config.pagination`,required:!0,sectionKey:`pagination`,label:`Limit`,description:`Max number of search results`}),cursor:ma({path:`config.cursor`,groupPath:`config.pagination`,inputType:`text`,label:`Cursor`,sectionKey:`pagination`,description:`Pagination cursor`}),output_fields:z(r.object({[FS.name]:P({fieldName:FS.name}),[IS.name]:P({fieldName:FS.name}),[LS.name]:P({fieldName:LS.name}),[RS.name]:P({fieldName:RS.name}),[zS.name]:P({fieldName:zS.name})})),filters:r.object({hq_locations:L({path:`config.filters.hq_locations`,sectionKey:`config.filters`,label:`HQ locations`,description:``,placeholder:X(`location`),groupPath:`config.filters.location`,optionsDef:_(`locations`)}),crunchbase_categories:L({path:`config.filters.crunchbase_categories`,sectionKey:`config.filters`,label:`Crunchbase categories`,placeholder:X(`crunchbase_category`),description:``,groupPath:`config.filters.categories`,optionsDef:_(`company.crunchbase_categories.crustdata`)}),crunchbase_investors:L({path:`config.filters.crunchbase_investors`,sectionKey:`config.filters`,label:`Investors to include (Crunchbase)`,description:``,placeholder:X(`investor`),groupPath:`config.filters.investors`,optionsDef:_(`company.crunchbase_investors.crustdata`)}),tracxn_investors:L({path:`config.filters.tracxn_investors`,sectionKey:`config.filters`,label:`Investors to include (Tracxn)`,description:``,placeholder:X(`investor`),groupPath:`config.filters.investors`,optionsDef:_(`company.tracxn_investors.crustdata`)}),company_types:N({sectionKey:`config.filters`,path:`config.filters.company_types`,optionsDef:{type:`static`,options:h(`crustdata.company_types`)},label:`Company types`,placeholder:`Public, Private, ...`,description:``,groupPath:`config.filters.categories`}),linkedin_industries:L({sectionKey:`config.filters`,path:`config.filters.linkedin_industries`,optionsDef:_(`linkedin_industries.crustdata`),label:`Industries`,description:``,placeholder:X(`industry`),groupPath:`config.filters.industry`}),markets:L({sectionKey:`config.filters`,path:`config.filters.markets`,optionsDef:_(`company.markets.crustdata`),placeholder:`NYSE, TYO, ...`,label:`Markets`,description:``,groupPath:`config.filters.industry`}),linkedin_categories:L({sectionKey:`config.filters`,path:`config.filters.linkedin_categories`,optionsDef:_(`company.linkedin_categories.crustdata`),label:`LinkedIn category`,placeholder:`Marketing, Branding, ...`,description:``,groupPath:`config.filters.categories`}),headcount:N({path:`config.filters.headcount`,sectionKey:`config.filters`,label:`Headcount`,description:``,disableSearch:!0,placeholder:`1-10`,optionsDef:{type:`static`,options:h(`crustdata.company_size`)},groupPath:`config.filters.company_size`}),headcount_growth_last_6m_in_percent:F({path:`config.filters.headcount_growth_last_6m_in_percent`,sectionKey:`config.filters`,label:`Headcount growth over last 6 months in percent`,description:``,options:h(`crustdata.headcount_growth`),placeholder:`0-10%`,disableSearch:!0,required:!1,groupPath:`config.filters.company_size`}),revenue_in_usd:ua({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:N({path:`config.filters.last_funding_type`,sectionKey:`config.filters`,label:`Last funding type`,placeholder:`Series A`,disableSearch:!0,optionsDef:{type:`static`,options:h(`crustdata.funding_rounds`)},description:``,groupPath:`config.filters.financials`}),last_funding_amount:ua({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:F({path:`config.filters.number_of_followers`,sectionKey:`config.filters`,label:`Number of LinkedIn followers`,placeholder:`1-500`,disableSearch:!0,description:``,required:!1,options:h(`crustdata.company_followers`),groupPath:`config.filters.web_presence`}),follower_growth_last_6m_in_percent:F({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:h(`crustdata.follower_growth`),groupPath:`config.filters.web_presence`}),profile_summary_keywords:M({path:`config.filters.profile_summary_keywords`,sectionKey:`config.filters`,maxItems:50,label:`LinkedIn company description contains`,placeholder:X(`company_profile_keyword`),description:``,groupPath:`config.filters.keywords`}),competitor_websites:M({path:`config.filters.competitor_websites`,sectionKey:`config.filters`,maxItems:50,label:`Competitor domains`,description:``,placeholder:X(`company_domain`),groupPath:`config.filters.competitors`,suggestionsDef:_(`company_domains`,{widgets:{emoji:{char:`🌐`}}})})}).check(e=>{Gx(e.value)&&e.issues.push({code:`custom`,message:`You must set at least one filter.`,input:e.value})})})}),VS={default:{input:[{fields:[]}]}},HS=class extends qx{searchId=PS;schema=BS;payload;constructor(e){super(),this.payload=this.validatePayload(e)}getRawOutputFields(){return{[FS.name]:this.catalogOutput(FS),[IS.name]:this.catalogOutput(IS),[LS.name]:this.catalogOutput(LS),[RS.name]:this.catalogOutput(RS),[zS.name]:this.catalogOutput(zS)}}getConnectionsRequirements(){return[{provider:`crustdata`,rateLimitOperation:`crustdata_company_db_search`,rateLimitRatio:1,allowManagedConnection:!0}]}getDedupConfig(){return VS}},US=BS,WS={searchId:PS,baseSearch:Jx(`companies:profiles:crustdata@1`),label:`Company search`,categories:[`deprecated`],paginationType:`cursor`,hasManagedConnection:!0,allowsUserConnection:!0,lifecycle:{deprecatedOn:`2026-06-30`,replacedBy:`companies:profiles:crustdata@2`},description:`Filter based company search.`,tags:[V.COMPANY_PROFILES],docPath:Yx(PS),cost:{mode:`per_page`,creditsPerPage: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:[]}}}}},GS=`people:profiles:amplemarket@1`,KS=v(`name`),qS=v(`company_website_url`),JS=v(`profile_url`),YS=v(`job_title`),XS=v(`amplemarket_person_match`),ZS=r.object({search_id:r.literal(GS),connector:y.nullable().optional(),config:r.object({limit:R({path:`config.limit`,min:1,max:100,groupPath:`config.pagination`,required:!0,label:`Limit`,sectionKey:`pagination`,description:`Max number of search results`}),page_number:R({path:`config.page_number`,groupPath:`config.pagination`,required:!1,label:`Page number`,min:1,sectionKey:`pagination`,description:``}),output_fields:z(r.object({[KS.name]:P({fieldName:KS.name}),[qS.name]:P({fieldName:qS.name}),[JS.name]:P({fieldName:JS.name}),[YS.name]:P({fieldName:YS.name}),[XS.name]:P({fieldName:XS.name})})),filters:r.object({person_names:j({label:`Full name`,path:`config.filters.person_names`,sectionKey:`config.filters`,groupPath:`config.filters.general`}),current_locations:L({path:`config.filters.current_locations`,sectionKey:`config.filters`,label:`Location`,optionsDef:_(`locations`),groupPath:`config.filters.general`}),current_job_titles:j({path:`config.filters.current_job_titles`,sectionKey:`config.filters`,label:`Title`,placeholder:X(`title`),description:``,order:1,groupPath:`config.filters.current_employer`,suggestionsDef:_(`titles`)}),current_seniority_levels:F({path:`config.filters.current_seniority_levels`,sectionKey:`config.filters`,placeholder:X(`seniority`),label:`Seniority`,required:!1,disableSearch:!1,options:h(`amplemarket.seniority_levels`),description:``,groupPath:`config.filters.current_employer`}),current_departments:F({path:`config.filters.current_departments`,sectionKey:`config.filters`,label:`Department`,placeholder:X(`department`),disableSearch:!1,required:!1,options:h(`amplemarket.departments`),description:``,groupPath:`config.filters.current_employer`}),current_job_functions:F({path:`config.filters.current_job_functions`,sectionKey:`config.filters`,label:`Job function`,placeholder:X(`job_function`),disableSearch:!1,required:!1,options:h(`amplemarket.job_functions`),description:``,groupPath:`config.filters.current_employer`}),current_employer_locations:L({path:`config.filters.current_employer_locations`,sectionKey:`config.filters`,label:`Headquarters`,optionsDef:_(`locations`),groupPath:`config.filters.current_company`,placeholder:X(`location`)}),current_employer_names:M({path:`config.filters.current_employer_names`,sectionKey:`config.filters`,label:`Company name`,groupPath:`config.filters.current_company`,description:``,placeholder:X(`company_name`),suggestionsDef:_(`company_names`)}),current_employer_website_urls:M({path:`config.filters.current_employer_website_urls`,sectionKey:`config.filters`,label:`Company domain`,description:``,maxItems:200,placeholder:X(`company_domain`),groupPath:`config.filters.current_company`,suggestionsDef:_(`company_domains`,{widgets:{emoji:{char:`🌐`}}})}),current_employer_linkedin_industries:F({path:`config.filters.current_employer_linkedin_industries`,sectionKey:`config.filters`,label:`Industry`,disableSearch:!1,groupPath:`config.filters.current_company`,description:``,placeholder:X(`industry`),required:!1,options:h(`linkedin.industries`)}),current_employer_estimated_revenue:F({path:`config.filters.current_employer_estimated_revenue`,sectionKey:`config.filters`,label:`Estimated revenue`,disableSearch:!1,required:!1,groupPath:`config.filters.current_company`,description:``,options:h(`amplemarket.company_revenue`)}),current_employer_founded_year:ca({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:j({path:`config.filters.current_employer_investors`,sectionKey:`config.filters`,label:`Employer investors`,groupPath:`config.filters.current_company`,placeholder:X(`investor`),description:``}),current_employer_open_positions_titles:j({path:`config.filters.current_employer_open_positions_titles`,sectionKey:`config.filters`,label:`Open positions`,groupPath:`config.filters.current_company`,description:``,placeholder:X(`title`),suggestionsDef:_(`titles`)}),school_names:L({path:`config.filters.school_names`,sectionKey:`config.filters`,label:`School names`,description:``,placeholder:X(`school`),groupPath:`config.filters.education`,optionsDef:_(`schools`)})}).check(e=>{Gx(e.value)&&e.issues.push({code:`custom`,message:`You must set at least one filter.`,input:e.value})})})}),QS={default:{input:[{fields:[]}]}},$S=class extends qx{searchId=GS;schema=ZS;payload;constructor(e){super(),this.payload=this.validatePayload(e)}getRawOutputFields(){return{[KS.name]:this.catalogOutput(KS),[qS.name]:this.catalogOutput(qS),[JS.name]:this.catalogOutput(JS),[YS.name]:this.catalogOutput(YS),[XS.name]:this.catalogOutput(XS)}}getConnectionsRequirements(){return[{provider:`amplemarket`,rateLimitOperation:`amplemarket_people_search`,rateLimitRatio:1,allowManagedConnection:!0}]}getDedupConfig(){return QS}},eC=ZS,tC={searchId:GS,baseSearch:Jx(`people:profiles:amplemarket@1`),paginationType:`page_number`,label:`People search`,categories:[`deprecated`],hasManagedConnection:!0,allowsUserConnection:!0,lifecycle:{deprecatedOn:`2026-06-30`,replacedBy:`people:profiles:amplemarket@2`},description:`Filter-based people search.`,tags:[V.PEOPLE_PROFILES],docPath:Yx(GS),cost:{mode:`per_page`,creditsPerPage:3,info:`1 page = 100 records; 200 results = 2 pages`},provider:`amplemarket`,defaultPayload:{search_id:GS,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:[]}}}},nC=`people:profiles:crustdata@1`,rC=v(`name`),iC=v(`company_website_url`),aC=v(`profile_url`),oC=v(`job_title`),sC=v(`crustdata_person_match`),cC=r.object({search_id:r.literal(nC),connector:y.nullable().optional(),config:r.object({limit:R({path:`config.limit`,min:1,max:100,groupPath:`config.pagination`,required:!0,sectionKey:`pagination`,label:`Limit`,description:`Max number of search results`}),cursor:ma({path:`config.cursor`,groupPath:`config.pagination`,inputType:`text`,label:`Cursor`,sectionKey:`pagination`,description:`Pagination cursor`}),output_fields:z(r.object({[rC.name]:P({fieldName:rC.name}),[iC.name]:P({fieldName:iC.name}),[aC.name]:P({fieldName:aC.name}),[oC.name]:P({fieldName:oC.name}),[sC.name]:P({fieldName:sC.name})})),filters:r.object({locations:L({path:`config.filters.locations`,sectionKey:`config.filters`,label:`Location`,placeholder:X(`location`),optionsDef:_(`locations`),groupPath:`config.filters.general`}),current_job_titles:M({path:`config.filters.current_job_titles`,sectionKey:`config.filters`,label:`Title`,description:``,placeholder:X(`title`),order:1,groupPath:`config.filters.current_employer`,suggestionsDef:_(`titles`)}),current_employers:M({path:`config.filters.current_employers`,sectionKey:`config.filters`,label:`Company name`,description:``,placeholder:X(`company_name`),maxItems:200,groupPath:`config.filters.current_employer`,suggestionsDef:_(`company_names`,{widgets:{emoji:{char:`🏷️`}}})}),current_employers_website_urls:M({path:`config.filters.current_employers_website_urls`,sectionKey:`config.filters`,label:`Company domain`,placeholder:X(`company_domain`),description:``,maxItems:200,groupPath:`config.filters.current_employer`,suggestionsDef:_(`company_domains`,{widgets:{emoji:{char:`🌐`}}})}),current_employers_linkedin_industries:L({path:`config.filters.current_employers_linkedin_industries`,sectionKey:`config.filters`,label:`Industry`,groupPath:`config.filters.current_employer`,placeholder:X(`industry`),description:``,optionsDef:_(`linkedin_industries.crustdata`,{limit:300})}),years_at_current_company:F({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:h(`crustdata.years_of_experience`)}),previous_employers_website_urls:M({path:`config.filters.previous_employers_website_urls`,sectionKey:`config.filters`,label:`Previous employer domain`,description:``,placeholder:X(`company_domain`),maxItems:200,groupPath:`config.filters.experience`,suggestionsDef:_(`company_domains`,{widgets:{emoji:{char:`🌐`}}})}),previous_seniority_levels:N({path:`config.filters.previous_seniority_levels`,sectionKey:`config.filters`,label:`Previous seniority`,placeholder:X(`seniority`),disableSearch:!0,optionsDef:g(`crustdata.person_seniority`),description:``,groupPath:`config.filters.experience`}),previous_employers:M({path:`config.filters.previous_employers`,sectionKey:`config.filters`,label:`Previous employer`,description:``,placeholder:X(`company_name`),maxItems:200,groupPath:`config.filters.experience`,suggestionsDef:_(`company_names`,{widgets:{emoji:{char:`🏷️`}}})}),previous_job_titles:M({path:`config.filters.previous_job_titles`,sectionKey:`config.filters`,label:`Previous title`,description:``,placeholder:X(`title`),groupPath:`config.filters.experience`,suggestionsDef:_(`titles`)}),previous_employers_linkedin_industries:L({path:`config.filters.previous_employers_linkedin_industries`,sectionKey:`config.filters`,label:`Previous employer industries`,placeholder:X(`industry`),groupPath:`config.filters.experience`,description:``,optionsDef:_(`linkedin_industries.crustdata`,{limit:300})}),profile_headline_keywords:M({path:`config.filters.profile_headline_keywords`,sectionKey:`config.filters`,label:`Headline contains keywords`,maxItems:100,groupPath:`config.filters.keywords`,placeholder:X(`headline_keywords`)}),profile_summary_keywords:M({path:`config.filters.profile_summary_keywords`,sectionKey:`config.filters`,label:`Profile about section contains keywords`,maxItems:100,groupPath:`config.filters.keywords`,placeholder:X(`profile_keywords`)}),profile_languages:N({path:`config.filters.profile_languages`,sectionKey:`config.filters`,label:`Profile language`,placeholder:X(`languages`),optionsDef:g(`crustdata.person_profile_languages`),groupPath:`config.filters.general`}),languages:N({path:`config.filters.languages`,sectionKey:`config.filters`,label:`Spoken language`,placeholder:X(`languages_1`),optionsDef:g(`crustdata.person_profile_languages`),groupPath:`config.filters.general`}),skills:L({path:`config.filters.skills`,sectionKey:`config.filters`,label:`Skills`,description:``,placeholder:X(`skills`),groupPath:`config.filters.skills`,optionsDef:_(`skills`)}),years_of_experience:F({path:`config.filters.years_of_experience`,sectionKey:`config.filters`,label:`Years of experience`,placeholder:`1 to 2 years`,disableSearch:!0,description:``,required:!1,options:h(`crustdata.years_of_experience`),groupPath:`config.filters.experience`}),current_seniority_levels:N({path:`config.filters.current_seniority_levels`,sectionKey:`config.filters`,disableSearch:!0,label:`Seniority`,placeholder:X(`seniority`),optionsDef:g(`crustdata.person_seniority`),description:``,groupPath:`config.filters.experience`}),certifications:M({path:`config.filters.certifications`,sectionKey:`config.filters`,label:`Certifications`,groupPath:`config.filters.certifications_honors`,placeholder:X(`certification`),description:``}),honors:M({path:`config.filters.honors`,sectionKey:`config.filters`,label:`Honors`,groupPath:`config.filters.certifications_honors`,placeholder:X(`honor`),description:``}),recently_changed_jobs:pa({path:`config.filters.recently_changed_jobs`,sectionKey:`config.filters`,label:`Recently changed jobs`,description:``,defaultValue:null,groupPath:`config.filters.activities`}),fields_of_study:L({path:`config.filters.fields_of_study`,sectionKey:`config.filters`,label:`Fields of study`,placeholder:X(`field_of_study`),description:``,groupPath:`config.filters.education`,optionsDef:_(`person.education_field_of_study.crustdata`)}),degree_names:L({path:`config.filters.degree_names`,sectionKey:`config.filters`,label:`Degree names`,placeholder:X(`degree_name`),description:``,groupPath:`config.filters.education`,optionsDef:_(`person.education_degree.crustdata`)}),school_names:L({path:`config.filters.school_names`,sectionKey:`config.filters`,label:`School names`,description:``,placeholder:X(`school`),groupPath:`config.filters.education`,optionsDef:_(`schools`)}),current_school_names:L({path:`config.filters.current_school_names`,sectionKey:`config.filters`,label:`Currently enrolled at`,description:``,placeholder:X(`school`),groupPath:`config.filters.education`,optionsDef:_(`schools`)}),extracurricular_activities:M({path:`config.filters.extracurricular_activities`,sectionKey:`config.filters`,label:`Extracurricular activities`,description:``,placeholder:X(`extracurricular`),groupPath:`config.filters.education`,suggestionsDef:_(`person.education_activities.crustdata`)})}).check(e=>{Gx(e.value)&&e.issues.push({code:`custom`,message:`You must set at least one filter.`,input:e.value})})})}),lC={default:{input:[{fields:[]}]}},uC=class extends qx{searchId=nC;schema=cC;payload;constructor(e){super(),this.payload=this.validatePayload(e)}getRawOutputFields(){return{[rC.name]:this.catalogOutput(rC),[iC.name]:this.catalogOutput(iC),[aC.name]:this.catalogOutput(aC),[oC.name]:this.catalogOutput(oC),[sC.name]:this.catalogOutput(sC)}}getConnectionsRequirements(){return[{provider:`crustdata`,rateLimitOperation:`crustdata_people_db_search`,rateLimitRatio:1,allowManagedConnection:!0}]}getDedupConfig(){return lC}},dC=cC,fC={searchId:nC,baseSearch:Jx(`people:profiles:crustdata@1`),paginationType:`cursor`,label:`People search`,categories:[`deprecated`],hasManagedConnection:!0,allowsUserConnection:!0,lifecycle:{deprecatedOn:`2026-06-30`,replacedBy:`people:profiles:crustdata@2`},description:`Filter-based people search.`,tags:[V.PEOPLE_PROFILES],docPath:Yx(nC),cost:{mode:`per_page`,creditsPerPage:5,info:`1 page = 100 records; 200 results = 2 pages`},provider:`crustdata`,defaultPayload:{search_id:nC,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:[]}}}}},pC=`people:profiles:amplemarket@2`,mC=v(`name`),hC=v(`company_domain`),gC=v(`profile_url`),_C=v(`job_title`),vC=v(`amplemarket_person_match`),yC=r.object({search_id:r.literal(pC),connector:y.nullable().optional(),config:r.object({limit:R({path:`config.limit`,min:1,max:100,groupPath:`config.pagination`,required:!0,label:`Limit`,sectionKey:`pagination`,description:`Max number of search results`}),page_number:R({path:`config.page_number`,groupPath:`config.pagination`,required:!1,label:`Page number`,min:1,sectionKey:`pagination`,description:``}),output_fields:z(r.object({[mC.name]:P({fieldName:mC.name}),[hC.name]:P({fieldName:hC.name}),[gC.name]:P({fieldName:gC.name}),[_C.name]:P({fieldName:_C.name}),[vC.name]:P({fieldName:vC.name})})),filters:r.object({person_names:j({label:`Full name`,path:`config.filters.person_names`,sectionKey:`config.filters`,groupPath:`config.filters.general`}),current_locations:L({path:`config.filters.current_locations`,sectionKey:`config.filters`,label:`Location`,optionsDef:_(`locations`),groupPath:`config.filters.general`}),current_job_titles:j({path:`config.filters.current_job_titles`,sectionKey:`config.filters`,label:`Title`,placeholder:X(`title`),description:``,order:1,groupPath:`config.filters.current_employer`,suggestionsDef:_(`titles`)}),current_seniority_levels:F({path:`config.filters.current_seniority_levels`,sectionKey:`config.filters`,placeholder:X(`seniority`),label:`Seniority`,required:!1,disableSearch:!1,options:h(`amplemarket.seniority_levels`),description:``,groupPath:`config.filters.current_employer`}),current_departments:F({path:`config.filters.current_departments`,sectionKey:`config.filters`,label:`Department`,placeholder:X(`department`),disableSearch:!1,required:!1,options:h(`amplemarket.departments`),description:``,groupPath:`config.filters.current_employer`}),current_job_functions:F({path:`config.filters.current_job_functions`,sectionKey:`config.filters`,label:`Job function`,placeholder:X(`job_function`),disableSearch:!1,required:!1,options:h(`amplemarket.job_functions`),description:``,groupPath:`config.filters.current_employer`}),current_employer_locations:L({path:`config.filters.current_employer_locations`,sectionKey:`config.filters`,label:`Headquarters`,optionsDef:_(`locations`),groupPath:`config.filters.current_company`,placeholder:X(`location`)}),current_employer_names:M({path:`config.filters.current_employer_names`,sectionKey:`config.filters`,label:`Company name`,groupPath:`config.filters.current_company`,description:``,placeholder:X(`company_name`),suggestionsDef:_(`company_names`)}),current_employer_domains:M({path:`config.filters.current_employer_domains`,sectionKey:`config.filters`,label:`Company domain`,description:``,maxItems:200,placeholder:X(`company_domain`),groupPath:`config.filters.current_company`,suggestionsDef:_(`company_domains`,{widgets:e=>({logo_url:{url:Xx(e.value)}})})}),current_employer_linkedin_industries:F({path:`config.filters.current_employer_linkedin_industries`,sectionKey:`config.filters`,label:`Industry`,disableSearch:!1,groupPath:`config.filters.current_company`,description:``,placeholder:X(`industry`),required:!1,options:h(`linkedin.industries`)}),current_employer_estimated_revenue:F({path:`config.filters.current_employer_estimated_revenue`,sectionKey:`config.filters`,label:`Estimated revenue`,disableSearch:!1,required:!1,groupPath:`config.filters.current_company`,description:``,options:h(`amplemarket.company_revenue`)}),current_employer_founded_year:ca({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:j({path:`config.filters.current_employer_investors`,sectionKey:`config.filters`,label:`Employer investors`,groupPath:`config.filters.current_company`,placeholder:X(`investor`),description:``}),current_employer_open_position_titles:j({path:`config.filters.current_employer_open_position_titles`,sectionKey:`config.filters`,label:`Open positions`,groupPath:`config.filters.current_company`,description:``,placeholder:X(`title`),suggestionsDef:_(`titles`)}),school_names:L({path:`config.filters.school_names`,sectionKey:`config.filters`,label:`School names`,description:``,placeholder:X(`school`),groupPath:`config.filters.education`,optionsDef:_(`schools`)})}).check(e=>{Gx(e.value)&&e.issues.push({code:`custom`,message:`You must set at least one filter.`,input:e.value})})})}),bC={default:{input:[{fields:[]}]}},xC=class extends qx{searchId=pC;schema=yC;payload;constructor(e){super(),this.payload=this.validatePayload(e)}getRawOutputFields(){return{[mC.name]:this.catalogOutput(mC),[hC.name]:this.catalogOutput(hC),[gC.name]:this.catalogOutput(gC),[_C.name]:this.catalogOutput(_C),[vC.name]:this.catalogOutput(vC)}}getConnectionsRequirements(){return[{provider:`amplemarket`,rateLimitOperation:`amplemarket_people_search`,rateLimitRatio:1,allowManagedConnection:!0}]}getDedupConfig(){return bC}},SC=yC,CC={searchId:pC,baseSearch:Jx(`people:profiles:amplemarket@2`),paginationType:`page_number`,label:`People search`,categories:[`people`],hasManagedConnection:!0,allowsUserConnection:!0,lifecycle:null,description:`Filter-based people search.`,tags:[V.PEOPLE_PROFILES],docPath:Yx(pC),cost:{mode:`per_page`,creditsPerPage:3,info:`1 page = 100 records; 200 results = 2 pages`},provider:`amplemarket`,defaultPayload:{search_id:pC,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:[]}}}},wC=`people:profiles:crustdata@2`,TC=v(`name`),EC=v(`company_domain`),DC=v(`profile_url`),OC=v(`job_title`),kC=v(`crustdata_person_match`),AC=r.object({search_id:r.literal(wC),connector:y.nullable().optional(),config:r.object({limit:R({path:`config.limit`,min:1,max:100,groupPath:`config.pagination`,required:!0,sectionKey:`pagination`,label:`Limit`,description:`Max number of search results`}),cursor:ma({path:`config.cursor`,groupPath:`config.pagination`,inputType:`text`,label:`Cursor`,sectionKey:`pagination`,description:`Pagination cursor`}),output_fields:z(r.object({[TC.name]:P({fieldName:TC.name}),[EC.name]:P({fieldName:EC.name}),[DC.name]:P({fieldName:DC.name}),[OC.name]:P({fieldName:OC.name}),[kC.name]:P({fieldName:kC.name})})),filters:r.object({locations:L({path:`config.filters.locations`,sectionKey:`config.filters`,label:`Location`,placeholder:X(`location`),optionsDef:_(`locations`),groupPath:`config.filters.general`}),current_job_titles:M({path:`config.filters.current_job_titles`,sectionKey:`config.filters`,label:`Title`,description:``,placeholder:X(`title`),order:1,groupPath:`config.filters.current_employer`,suggestionsDef:_(`titles`)}),current_employer_names:M({path:`config.filters.current_employer_names`,sectionKey:`config.filters`,label:`Company name`,description:``,placeholder:X(`company_name`),maxItems:200,groupPath:`config.filters.current_employer`,suggestionsDef:_(`company_names`,{widgets:{emoji:{char:`🏷️`}}})}),current_employer_domains:M({path:`config.filters.current_employer_domains`,sectionKey:`config.filters`,label:`Company domain`,placeholder:X(`company_domain`),description:``,maxItems:200,groupPath:`config.filters.current_employer`,suggestionsDef:_(`company_domains`,{widgets:e=>({logo_url:{url:Xx(e.value)}})})}),current_employer_industries:L({path:`config.filters.current_employer_industries`,sectionKey:`config.filters`,label:`Industry`,groupPath:`config.filters.current_employer`,placeholder:X(`industry`),description:``,optionsDef:_(`linkedin_industries.crustdata`,{limit:300})}),years_at_current_company:F({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:h(`crustdata.years_of_experience`)}),previous_employer_domains:M({path:`config.filters.previous_employer_domains`,sectionKey:`config.filters`,label:`Previous employer domain`,description:``,placeholder:X(`company_domain`),maxItems:200,groupPath:`config.filters.experience`,suggestionsDef:_(`company_domains`,{widgets:e=>({logo_url:{url:Xx(e.value)}})})}),previous_seniority_levels:N({path:`config.filters.previous_seniority_levels`,sectionKey:`config.filters`,label:`Previous seniority`,placeholder:X(`seniority`),disableSearch:!0,optionsDef:g(`crustdata.person_seniority`),description:``,groupPath:`config.filters.experience`}),previous_employer_names:M({path:`config.filters.previous_employer_names`,sectionKey:`config.filters`,label:`Previous employer`,description:``,placeholder:X(`company_name`),maxItems:200,groupPath:`config.filters.experience`,suggestionsDef:_(`company_names`,{widgets:{emoji:{char:`🏷️`}}})}),previous_job_titles:M({path:`config.filters.previous_job_titles`,sectionKey:`config.filters`,label:`Previous title`,description:``,placeholder:X(`title`),groupPath:`config.filters.experience`,suggestionsDef:_(`titles`)}),previous_employer_industries:L({path:`config.filters.previous_employer_industries`,sectionKey:`config.filters`,label:`Previous employer industries`,placeholder:X(`industry`),groupPath:`config.filters.experience`,description:``,optionsDef:_(`linkedin_industries.crustdata`,{limit:300})}),profile_headline_keywords:M({path:`config.filters.profile_headline_keywords`,sectionKey:`config.filters`,label:`Headline contains keywords`,maxItems:100,groupPath:`config.filters.keywords`,placeholder:X(`headline_keywords`)}),profile_summary_keywords:M({path:`config.filters.profile_summary_keywords`,sectionKey:`config.filters`,label:`Profile about section contains keywords`,maxItems:100,groupPath:`config.filters.keywords`,placeholder:X(`profile_keywords`)}),profile_languages:N({path:`config.filters.profile_languages`,sectionKey:`config.filters`,label:`Profile language`,placeholder:X(`languages`),optionsDef:g(`crustdata.person_profile_languages`),groupPath:`config.filters.general`}),languages:N({path:`config.filters.languages`,sectionKey:`config.filters`,label:`Spoken language`,placeholder:X(`languages_1`),optionsDef:g(`crustdata.person_profile_languages`),groupPath:`config.filters.general`}),skills:L({path:`config.filters.skills`,sectionKey:`config.filters`,label:`Skills`,description:``,placeholder:X(`skills`),groupPath:`config.filters.skills`,optionsDef:_(`skills`)}),years_of_experience:F({path:`config.filters.years_of_experience`,sectionKey:`config.filters`,label:`Years of experience`,placeholder:`1 to 2 years`,disableSearch:!0,description:``,required:!1,options:h(`crustdata.years_of_experience`),groupPath:`config.filters.experience`}),current_seniority_levels:N({path:`config.filters.current_seniority_levels`,sectionKey:`config.filters`,disableSearch:!0,label:`Seniority`,placeholder:X(`seniority`),optionsDef:g(`crustdata.person_seniority`),description:``,groupPath:`config.filters.experience`}),certifications:M({path:`config.filters.certifications`,sectionKey:`config.filters`,label:`Certifications`,groupPath:`config.filters.certifications_honors`,placeholder:X(`certification`),description:``}),honors:M({path:`config.filters.honors`,sectionKey:`config.filters`,label:`Honors`,groupPath:`config.filters.certifications_honors`,placeholder:X(`honor`),description:``}),recently_changed_jobs:pa({path:`config.filters.recently_changed_jobs`,sectionKey:`config.filters`,label:`Recently changed jobs`,description:``,defaultValue:null,groupPath:`config.filters.activities`}),fields_of_study:L({path:`config.filters.fields_of_study`,sectionKey:`config.filters`,label:`Fields of study`,placeholder:X(`field_of_study`),description:``,groupPath:`config.filters.education`,optionsDef:_(`person.education_field_of_study.crustdata`)}),degree_names:L({path:`config.filters.degree_names`,sectionKey:`config.filters`,label:`Degree names`,placeholder:X(`degree_name`),description:``,groupPath:`config.filters.education`,optionsDef:_(`person.education_degree.crustdata`)}),school_names:L({path:`config.filters.school_names`,sectionKey:`config.filters`,label:`School names`,description:``,placeholder:X(`school`),groupPath:`config.filters.education`,optionsDef:_(`schools`)}),current_school_names:L({path:`config.filters.current_school_names`,sectionKey:`config.filters`,label:`Currently enrolled at`,description:``,placeholder:X(`school`),groupPath:`config.filters.education`,optionsDef:_(`schools`)}),extracurricular_activities:M({path:`config.filters.extracurricular_activities`,sectionKey:`config.filters`,label:`Extracurricular activities`,description:``,placeholder:X(`extracurricular`),groupPath:`config.filters.education`,suggestionsDef:_(`person.education_activities.crustdata`)})}).check(e=>{Gx(e.value)&&e.issues.push({code:`custom`,message:`You must set at least one filter.`,input:e.value})})})}),jC={default:{input:[{fields:[]}]}},MC=class extends qx{searchId=wC;schema=AC;payload;constructor(e){super(),this.payload=this.validatePayload(e)}getRawOutputFields(){return{[TC.name]:this.catalogOutput(TC),[EC.name]:this.catalogOutput(EC),[DC.name]:this.catalogOutput(DC),[OC.name]:this.catalogOutput(OC),[kC.name]:this.catalogOutput(kC)}}getConnectionsRequirements(){return[{provider:`crustdata`,rateLimitOperation:`crustdata_people_db_search`,rateLimitRatio:1,allowManagedConnection:!0}]}getDedupConfig(){return jC}},NC=AC,PC={searchId:wC,baseSearch:Jx(`people:profiles:crustdata@2`),paginationType:`cursor`,label:`People search`,categories:[`people`],hasManagedConnection:!0,allowsUserConnection:!0,lifecycle:null,description:`Filter-based people search.`,tags:[V.PEOPLE_PROFILES],docPath:Yx(wC),cost:{mode:`per_page`,creditsPerPage:5,info:`1 page = 100 records; 200 results = 2 pages`},provider:`crustdata`,defaultPayload:{search_id:wC,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:[]}}}}},FC={"people:profiles:crustdata@1":uC,"people:profiles:crustdata@2":MC,"companies:profiles:crustdata@1":HS,"companies:profiles:crustdata@2":bS,"people:profiles:amplemarket@1":$S,"people:profiles:amplemarket@2":xC,"companies:profiles:amplemarket@1":jS,"companies:profiles:amplemarket@2":lS},IC={"people:profiles:crustdata@1":dC,"people:profiles:crustdata@2":NC,"companies:profiles:crustdata@1":US,"companies:profiles:crustdata@2":xS,"people:profiles:amplemarket@1":eC,"people:profiles:amplemarket@2":SC,"companies:profiles:amplemarket@1":MS,"companies:profiles:amplemarket@2":uS},LC={"people:profiles:crustdata@1":fC,"people:profiles:crustdata@2":PC,"companies:profiles:crustdata@1":WS,"companies:profiles:crustdata@2":SS,"people:profiles:amplemarket@1":tC,"people:profiles:amplemarket@2":CC,"companies:profiles:amplemarket@1":NS,"companies:profiles:amplemarket@2":dS};function RC(e){return FC[e]}const zC=t.discriminatedUnion(`search_id`,Object.values(IC).map(e=>e)).openapi(`SearchPayloadSchema`);function BC(e,t){return va(t,LC[e].defaultPayload)}const VC=t.preprocess(e=>{if(!e||typeof e!=`object`||!(`search_id`in e))return e;let t=BC(e.search_id);return t?{...e,config:va(e?.config||{},t.config)}:e},zC),HC=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:VC}).openapi(`SearchRequestSchema`),UC=Fn,WC=t.object({value:Sn,status:xn,type:yn.optional(),format:Rn.nullable().optional(),resolved_by:Wn.nullable().optional(),widgets:Pn.optional()}),GC=t.record(t.string(),WC.nullable());function KC(e){return IC[e]}const qC=t.enum([`cursor`,`page_number`]),JC=t.object({id:t.string(),status:t.enum([`completed`,`failed`,`pending`,`processing`]),search_id:Wx,errors:t.array(UC),results:t.array(GC),organization_id:t.string(),next_page:VC.nullable(),pagination_type:qC.nullable(),total_pages:t.int32().nullable()}).openapi(`SearchResponseSchema`);function YC(e){let t=e.split(`@`)[1];if(!t)throw Error(`No search version found`);return Number(t)}function XC(){let e={};for(let t of Object.values(LC)){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=YC(e.searchId);return YC(t.searchId)-n})}),e}function ZC(e){return LC[e]}const QC=XC();function $C(e){let t=[];for(let[n,r]of Object.entries(QC)){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:YC(i.searchId)})}return t}function ew(e){return Object.keys(LC[e].defaultPayload.config.output_fields)}function tw(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 ew(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:QC}}function nw(e){let t=ZC(e);return{[t.provider]:t.cost.mode===`per_result`?t.cost.creditsPerResult:t.cost.mode===`per_search`?t.cost.creditsPerSearch:t.cost.creditsPerPage}}const rw={"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}},iw={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.`},"config.output_fields":{type:`form_section`,path:`config.output_fields`,label:`Outputs`,description:`Pick and rename the fields the search returns.`},"config.input_fields":{type:`form_section`,path:`config.input_fields`,label:`Inputs`},"config.pipe_io":{type:`form_section`,path:`config.pipe_io`,label:`I/O`},"config.extractions":{type:`form_section`,path:`config.json_extraction`,label:`Extractions`},conditions:{type:`form_section`,path:`run_if`,label:`Conditions`},connector:{type:`form_section`,path:`connector`,label:`Connector`}},aw={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 ow({searchPayload:e,sectionOrder:t=aw,formContext:n,groupPathMatch:r=rw,formResolvers:i}){return Ii({schema:KC(e.search_id),groupPathMatch:r,extractFromSchema:e=>x.get(e),sectionOrder:t,sectionMap:iw,store:n,formResolvers:i})}const sw=new Proxy({},{get:(e,t)=>e=>e.type===t}),cw=`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(`.`),lw=r.enum(cw),uw=r.object({provider_logo:r.object({provider:mn}).optional(),emoji:r.object({char:r.string()}).optional(),icon:r.object({key:lw}).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()}),dw=`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.int_input.number_input.json_schema_input`.split(`.`);r.enum(dw);const fw=r.object({value:r.string(),label:r.string(),widgets:uw.optional()}),pw=r.object({field_options:r.record(r.string(),r.object({options:r.array(fw)}))}),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}],hw=new Map(mw.map(e=>[e.id,e]));function gw(e){return hw.get(e)}function _w(){return mw}const vw={"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:aa({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:z(r.object({[Xh.name]:A({fieldName:Xh.name}),[Zh.name]:A({fieldName:Zh.name}),[Qh.name]:A({fieldName:Qh.name})}))})}),eg={"http-request-pipe0":{provider:`pipe0`,allowManagedConnection:!0,credits:.001,mode:`always`}},tg=class extends W{pipeId=Yh;payload;payloadSchema=$h;billableOperations=eg;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[`http-request-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 Lm(this.getTemplatedFields(),{expectedType:`string`,expectedFormat:`text`})}getSecretRequirements(){return Rm(this.getTemplatedFields())}getConstantRequirements(){return zm(this.getTemplatedFields())}getRawOutputFields(){return{[Xh.name]:this.catalogOutput(Xh),[Zh.name]:this.catalogOutput(Zh),[Qh.name]:this.catalogOutput(Qh)}}getConnectionsRequirements(){return[{provider:`pipe0`,rateLimitRatio:1,rateLimitOperation:`pipe0_logic`,allowManagedConnection:!0}]}},ng=$h,rg={pipeId:Yh,basePipe:G(Yh),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:[V.LOGIC,V.JSON,V.NEW],docPath:K(Yh),billableOperations:eg,defaultInputRequirement:null,inputFieldMode:`config`,outputFieldMode:`static`,allowedUserConnectionProviders:[],managedProviders:[`pipe0`],deprecatedProviders:[],defaultPayload:{pipe_id:Yh,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}}}}},ig=`json:extract:multi@1`,ag=r.object({pipe_id:r.literal(ig),run_if:C(),connector:E(),config:r.object({json_extraction:di()})}),og={"extract-json-pipe0":{provider:`pipe0`,allowManagedConnection:!0,credits:0,mode:`always`}},sg=class extends W{pipeId=ig;payload;payloadSchema=ag;billableOperations=og;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[`extract-json-pipe0`]}getInputRequirement(){return H({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[]}},cg=ag,lg={pipeId:ig,basePipe:G(ig),inputFieldMode:`config`,outputFieldMode:`config`,label:`JSON extract`,executionMode:`single`,categories:[`tools`],lifecycle:null,description:`Extract nested JSON properties into new output fields.`,docPath:K(ig),tags:[V.JSON],managedProviders:[`pipe0`],deprecatedProviders:[],allowedUserConnectionProviders:[],billableOperations:og,defaultInputRequirement:null,defaultPayload:{pipe_id:ig,run_if:null,connector:null,config:{json_extraction:{field_name:``,extractions:[]}}}},ug=`message:send:slack@1`,dg=v(`slack_message_success`),fg=[{label:`#demo-general`,value:`C0SANDBOX001`},{label:`#demo-alerts`,value:`C0SANDBOX002`}],pg=r.object({pipe_id:r.literal(ug),connector:Vi(),run_if:C(),config:r.object({channel_id:w({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 fg;if(!t)throw new Ns.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 Ns.HttpError({msg:e})}let i=await r.json();if(!i.ok)throw new Ns.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:w({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:z(r.object({[dg.name]:A({fieldName:dg.name})}))})}),mg={"message-send-slack":{allowManagedConnection:!1,provider:`slack`,credits:null,mode:null}},hg=class extends W{pipeId=ug;payload;payloadSchema=pg;billableOperations=mg;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`slack`]}estimateBillableOperations(){return[`message-send-slack`]}getTemplatedFields(){return[this.payload.config.channel_id,this.payload.config.message]}getInputRequirement(){return Lm(this.getTemplatedFields())}getSecretRequirements(){return Rm(this.getTemplatedFields())}getConstantRequirements(){return zm(this.getTemplatedFields())}getRawOutputFields(){return{[dg.name]:this.catalogOutput(dg)}}getConnectionsRequirements(){return[{provider:`slack`,rateLimitRatio:1,rateLimitOperation:`slack_post_message`,allowManagedConnection:!1}]}},gg=pg,_g={pipeId:ug,basePipe:G(ug),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:[V.CHAT],docPath:K(ug),billableOperations:mg,inputFieldMode:`config`,outputFieldMode:`static`,allowedUserConnectionProviders:[`slack`],managedProviders:[],deprecatedProviders:[],defaultInputRequirement:null,defaultPayload:{pipe_id:ug,connector:{strategy:`first`,connections:[]},run_if:null,config:{channel_id:``,message:``,output_fields:{slack_message_success:{alias:``,enabled:!0}}}}},vg=`message:write@1`,yg=v(`message`),bg=ei(`write-message`),xg=r.object({pipe_id:r.literal(vg),connector:T(),run_if:C(),config:r.object({template:zi({sectionKey:`general`,label:`Template`,path:`config.template`,placeholder:X(`prompt`),groupPath:`config.prompt`,required:!0}),model:ta({sectionKey:`general`,label:`Model`,path:`config.model`,groupPath:`config.prompt`,billableOperations:bg}),output_fields:z(r.object({[yg.name]:A({fieldName:yg.name})}))})}),Sg=class extends W{pipeId=vg;payload;payloadSchema=xg;billableOperations=bg;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return ti(this.payload.config.model)}estimateBillableOperations(){return[ni(this.payload.config.model,`write-message`)]}getInputRequirement(){return Lm([this.payload.config.template])}getSecretRequirements(){return Rm([this.payload.config.template])}getConstantRequirements(){return zm([this.payload.config.template])}getRawOutputFields(){return{[yg.name]:this.catalogOutput(yg)}}getConnectionsRequirements(){return ri(this.payload.config.model)}},Cg=xg,wg={pipeId:vg,inputFieldMode:`config`,outputFieldMode:`static`,basePipe:G(vg),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:[V.AI],docPath:K(vg),defaultInputRequirement:null,billableOperations:bg,allowedUserConnectionProviders:ii(),managedProviders:ii(),deprecatedProviders:[],defaultPayload:{pipe_id:vg,connector:null,run_if:null,config:{model:`openai-gpt-latest`,template:``,output_fields:{message:{alias:``,enabled:!0}}}}},Tg=`person:email:validate:millionverifier@1`,Eg=v(`email`),Dg=v(`email_validation_status`),Og=v(`million_validation_match`),kg=r.object({pipe_id:r.literal(Tg),connector:T(),run_if:C(),config:r.object({input_fields:B(r.object({[Eg.name]:D({fieldName:Eg.name})})),output_fields:z(r.object({[Dg.name]:A({fieldName:Dg.name}),[Og.name]:A({fieldName:Og.name})}))}).optional()}),Ag=e=>H(q(Eg,e)),jg={"validate-email-millionverifier":{provider:`millionverifier`,allowManagedConnection:!0,credits:.1,mode:`always`}},Mg=class extends W{pipeId=Tg;payload;payloadSchema=kg;billableOperations=jg;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`millionverifier`]}estimateBillableOperations(){return[`validate-email-millionverifier`]}getInputRequirement(){return Ag(this.payload.config)}getRawOutputFields(){return{[Dg.name]:this.catalogOutput(Dg),[Og.name]:this.catalogOutput(Og)}}getConnectionsRequirements(){return[{provider:`millionverifier`,rateLimitRatio:1,rateLimitOperation:`millionverifier_generic`,allowManagedConnection:!0}]}},Ng=kg,Pg={pipeId:Tg,basePipe:G(Tg),label:`Validate email`,executionMode:`single`,categories:[`people_data`],lifecycle:null,description:`Verify email addresses to ensure is deliverability.`,tags:[V.EMAIL],docPath:K(Tg),billableOperations:jg,inputFieldMode:`static`,outputFieldMode:`static`,allowedUserConnectionProviders:[`millionverifier`],managedProviders:[`millionverifier`],deprecatedProviders:[],defaultInputRequirement:Ag(null),defaultPayload:{pipe_id:Tg,connector:null,run_if:null,config:{input_fields:{email:{alias:``}},output_fields:{email_validation_status:{alias:``,enabled:!0},million_validation_match:{alias:``,enabled:!0}}}}},Fg=v(`email`),Ig=v(`amplemarket_person_match`),Lg=`person:identity:amplemarket@1`,Rg=r.object({pipe_id:r.literal(Lg),run_if:C(),connector:T(),config:r.object({input_fields:B(r.object({[Fg.name]:D({fieldName:Fg.name})})),output_fields:z(r.object({[Ig.name]:A({fieldName:Ig.name})}))}).optional()}),zg=e=>H(q(Fg,e)),Bg={"person-identity-amplemarket":{allowManagedConnection:!1,credits:null,mode:null,provider:`amplemarket`}},Vg=class extends W{pipeId=Lg;payload;payloadSchema=Rg;billableOperations=Bg;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`amplemarket`]}estimateBillableOperations(){return[]}getInputRequirement(){return zg(this.payload.config)}getRawOutputFields(){return{[Ig.name]:this.catalogOutput(Ig)}}getConnectionsRequirements(){return[{provider:`amplemarket`,rateLimitRatio:1,rateLimitOperation:`amplemarket_generic`,allowManagedConnection:!1}]}},Hg=Rg,Ug={pipeId:Lg,inputFieldMode:`static`,outputFieldMode:`static`,basePipe:G(Lg),label:`Person identity`,executionMode:`single`,categories:[`people_data`],lifecycle:null,description:`Find information on a person based on their email`,tags:[V.PEOPLE_PROFILES],docPath:K(Lg),billableOperations:Bg,allowedUserConnectionProviders:[`amplemarket`],managedProviders:[],deprecatedProviders:[],defaultInputRequirement:zg(null),defaultPayload:{pipe_id:Lg,connector:null,run_if:null,config:{input_fields:{email:{alias:``}},output_fields:{amplemarket_person_match:{alias:``,enabled:!0}}}}},Wg=`person:identity:email:waterfall@1`,Gg=v(`email`),Kg=v(`company_domain`),qg=v(`name`),Jg=v(`job_title`),Yg=v(`profile_url`),Xg=v(`company_profile_url`),Zg=v(`company_name`),Qg=[`findymail`,`hunter`,`crustdata`],$g=[{provider:`findymail`},{provider:`hunter`},{provider:`crustdata`}],e_=r.object({pipe_id:r.literal(Wg),connector:T(),run_if:C(),config:r.object({providers:O({availableProviders:Qg,defaultProviders:$g,sectionKey:`general`}),input_fields:B(r.object({[Gg.name]:D({fieldName:Gg.name})})),output_fields:z(r.object({[qg.name]:A({fieldName:qg.name}),[Yg.name]:A({fieldName:Yg.name}),[Jg.name]:A({fieldName:Jg.name}),[Kg.name]:A({fieldName:Kg.name}),[Zg.name]:A({fieldName:Zg.name}),[Xg.name]:A({fieldName:Xg.name})}))}).optional()}),t_=e=>H(q(Gg,e)),n_={"reverse-email-lookup-hunter":{provider:`hunter`,allowManagedConnection:!0,credits:2,mode:`onSuccess`},"reverse-email-lookup-findymail":{provider:`findymail`,allowManagedConnection:!0,credits:2,mode:`onSuccess`},"reverse-email-lookup-crustdata":{provider:`crustdata`,allowManagedConnection:!0,credits:5,mode:`onSuccess`}},r_=class extends W{pipeId=Wg;payload;payloadSchema=e_;billableOperations=n_;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return this.payload.config?.providers.map(e=>e.provider)||[]}estimateBillableOperations(){return this.getProviderNames().map(e=>Y(e,this.billableOperations).billableOperation)}getInputRequirement(){return t_(this.payload.config)}getRawOutputFields(){return{[qg.name]:this.catalogOutput(qg,{isPrimaryOutput:!0}),[Yg.name]:this.catalogOutput(Yg,{isPrimaryOutput:!0}),[Jg.name]:this.catalogOutput(Jg,{isPrimaryOutput:!0}),[Zg.name]:this.catalogOutput(Zg,{isPrimaryOutput:!0}),[Xg.name]:this.catalogOutput(Xg,{isPrimaryOutput:!0}),[Kg.name]:this.catalogOutput(Kg,{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:J(n),rateLimitOperation:e[t.provider],allowManagedConnection:!0}))}},i_=e_,a_={pipeId:Wg,basePipe:G(Wg),label:`Person identity from email`,executionMode:`waterfall`,categories:[`people_data`],lifecycle:null,description:`Find identity of a person from their email address.`,tags:[V.EMAIL,V.PEOPLE_PROFILES],docPath:K(Wg),managedProviders:Qg,deprecatedProviders:[],allowedUserConnectionProviders:Qg,inputFieldMode:`static`,outputFieldMode:`static`,billableOperations:n_,defaultInputRequirement:t_(null),defaultPayload:{pipe_id:Wg,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}}}}},o_=v(`profile_url`),s_=v(`amplemarket_person_match`),c_=`person:match:amplemarket@1`,l_=r.object({pipe_id:r.literal(c_),run_if:C(),connector:T(),config:r.object({input_fields:B(r.object({[o_.name]:D({fieldName:o_.name})})),output_fields:z(r.object({[s_.name]:A({fieldName:s_.name})}))}).optional()}),u_=e=>H(q(o_,e)),d_={"person-match-amplemarket":{allowManagedConnection:!1,credits:null,mode:null,provider:`amplemarket`}},f_=class extends W{pipeId=c_;payload;payloadSchema=l_;billableOperations=d_;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`amplemarket`]}estimateBillableOperations(){return[]}getInputRequirement(){return u_(this.payload.config)}getRawOutputFields(){return{[s_.name]:this.catalogOutput(s_)}}getConnectionsRequirements(){return[{provider:`amplemarket`,rateLimitRatio:1,rateLimitOperation:`amplemarket_generic`,allowManagedConnection:!1}]}},p_=l_,m_={pipeId:c_,inputFieldMode:`static`,outputFieldMode:`static`,basePipe:G(c_),label:`Person match`,executionMode:`single`,categories:[`people_data`],lifecycle:null,description:`Find information on a person based on their LinkedIn profile URL.`,tags:[V.PEOPLE_PROFILES],docPath:K(c_),billableOperations:d_,allowedUserConnectionProviders:[`amplemarket`],managedProviders:[],deprecatedProviders:[],defaultInputRequirement:u_(null),defaultPayload:{pipe_id:c_,connector:null,run_if:null,config:{input_fields:{profile_url:{alias:``}},output_fields:{amplemarket_person_match:{alias:``,enabled:!0}}}}},h_=`person:match:role:waterfall@1`,g_=v(`company_domain`),__=v(`role_finder_match`),v_=[`leadmagic`],y_=[{provider:`leadmagic`}],b_=r.object({pipe_id:r.literal(h_),run_if:C(),connector:T(),config:r.object({providers:O({sectionKey:`general`,defaultProviders:y_,availableProviders:v_}),roles:Ki({sectionKey:`general`,groupPath:`config.general`,label:`Roles`,path:`config.roles`,info:`Company roles to include`,maxItems:3,minItems:1}),input_fields:B(r.object({[g_.name]:D({fieldName:g_.name})})),output_fields:z(r.object({[__.name]:A({fieldName:__.name})}))})}),x_=e=>U(q(g_,e)),S_={"find-role-leadmagic":{provider:`leadmagic`,allowManagedConnection:!0,credits:1,mode:`onSuccess`}},C_=class extends W{pipeId=h_;payload;payloadSchema=b_;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=>Y(e,this.billableOperations).billableOperation)}getInputRequirement(){return x_(this.payload.config)}getRawOutputFields(){return{[__.name]:this.catalogOutput(__,{isPrimaryOutput:!0})}}getConnectionsRequirements(){let e={leadmagic:`leadmagic_role_finder`};return(this.payload.config?.providers||[]).map((t,n)=>({provider:t.provider,rateLimitRatio:J(n),rateLimitOperation:e[t.provider],allowManagedConnection:!0}))}},w_=b_,T_={pipeId:h_,basePipe:G(h_),managedProviders:v_,deprecatedProviders:[],allowedUserConnectionProviders:v_,label:`Role finder`,executionMode:`waterfall`,categories:[`people_data`],lifecycle:null,description:`Find role matches for a given companies like "CEO" or "CFO".`,tags:[V.PEOPLE_PROFILES],docPath:K(h_),billableOperations:S_,inputFieldMode:`static`,outputFieldMode:`static`,defaultInputRequirement:x_(null),defaultPayload:{pipe_id:h_,run_if:null,connector:null,config:{roles:[],providers:y_,input_fields:{company_domain:{alias:``}},output_fields:{role_finder_match:{alias:``,enabled:!0}}}}},E_=`person:mobile:profileurl:waterfall@1`,D_=v(`profile_url`),O_=v(`mobile`),k_=[`leadmagic`,`prospeo`,`amplemarket`,`findymail`,`clado`],A_=[{provider:`leadmagic`},{provider:`prospeo`},{provider:`amplemarket`},{provider:`findymail`}],j_=r.object({pipe_id:r.literal(E_),run_if:C(),connector:T(),config:r.object({providers:O({sectionKey:`general`,defaultProviders:A_,availableProviders:k_}),input_fields:B(r.object({[D_.name]:D({fieldName:D_.name})})),output_fields:z(r.object({[O_.name]:A({fieldName:O_.name})}))}).optional()}),M_=e=>H(q(D_,e)),N_={"mobile-from-profile-leadmagic":{provider:`leadmagic`,allowManagedConnection:!0,credits:2,mode:`onSuccess`},"mobile-from-profile-clado":{provider:`clado`,allowManagedConnection:!0,credits:5,mode:`onSuccess`},"mobile-from-profile-prospeo":{provider:`prospeo`,allowManagedConnection:!0,credits:5,mode:`onSuccess`},"mobile-from-profile-findymail":{provider:`findymail`,allowManagedConnection:!0,credits:6,mode:`onSuccess`},"phone-lookup-amplemarket":{provider:`amplemarket`,allowManagedConnection:!0,credits:4,mode:`onSuccess`}},P_=class extends W{pipeId=E_;payload;payloadSchema=j_;billableOperations=N_;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return this.payload.config?.providers.map(e=>e.provider)||[]}estimateBillableOperations(){return this.getProviderNames().map(e=>Y(e,this.billableOperations).billableOperation)}getInputRequirement(){return M_(this.payload.config)}getRawOutputFields(){return{[O_.name]:this.catalogOutput(O_,{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:J(n),rateLimitOperation:e[t.provider],allowManagedConnection:!0}))}},F_=j_,I_={pipeId:E_,basePipe:G(E_),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:K(E_),tags:[V.PHONE,V.WATERFALL],billableOperations:N_,defaultInputRequirement:M_(null),inputFieldMode:`static`,outputFieldMode:`static`,managedProviders:k_,allowedUserConnectionProviders:k_,deprecatedProviders:[`clado`],defaultPayload:{pipe_id:E_,connector:null,run_if:null,config:{providers:A_,input_fields:{profile_url:{alias:``}},output_fields:{mobile:{alias:``,enabled:!0}}}}},L_=`person:mobile:workemail:waterfall@1`,R_=v(`work_email`),z_=v(`mobile`),B_=[`leadmagic`,`amplemarket`],V_=[{provider:`leadmagic`},{provider:`amplemarket`}],H_=r.object({pipe_id:r.literal(L_),run_if:C(),connector:T(),config:r.object({providers:O({sectionKey:`general`,availableProviders:B_,defaultProviders:V_}),input_fields:B(r.object({[R_.name]:D({fieldName:R_.name})})),output_fields:z(r.object({[z_.name]:A({fieldName:z_.name})}))}).optional()}),U_=e=>H(q(R_,e)),W_={"mobile-from-workemail-leadmagic":{provider:`leadmagic`,allowManagedConnection:!0,credits:2,mode:`onSuccess`},"email-lookup-amplemarket":{provider:`amplemarket`,allowManagedConnection:!0,credits:4,mode:`onSuccess`}},G_=class extends W{pipeId=L_;payload;payloadSchema=H_;billableOperations=W_;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return this.payload.config?.providers.map(e=>e.provider)||[]}estimateBillableOperations(){return this.getProviderNames().map(e=>Y(e,this.billableOperations).billableOperation)}getInputRequirement(){return U_(this.payload.config)}getRawOutputFields(){return{[z_.name]:this.catalogOutput(z_,{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:J(n),rateLimitOperation:e[t.provider],allowManagedConnection:!0}))}},K_=H_,q_={pipeId:L_,basePipe:G(L_),label:`Mobile number from email`,executionMode:`waterfall`,categories:[`people_data`],lifecycle:null,description:`Find a mobile phone number for a prospect.`,tags:[V.PHONE,V.WATERFALL],docPath:K(L_),billableOperations:W_,defaultInputRequirement:U_(null),inputFieldMode:`static`,outputFieldMode:`static`,allowedUserConnectionProviders:B_,managedProviders:B_,deprecatedProviders:[],defaultPayload:{pipe_id:L_,connector:null,run_if:null,config:{providers:V_,input_fields:{work_email:{alias:``}},output_fields:{mobile:{alias:``,enabled:!0}}}}},J_=`person:name:join@1`,Y_=v(`first_name`),X_=v(`last_name`),Z_=v(`name`),Q_=r.object({pipe_id:r.literal(J_),run_if:C(),connector:E(),config:r.object({input_fields:B(r.object({[Y_.name]:D({fieldName:Y_.name}),[X_.name]:D({fieldName:X_.name})})),output_fields:z(r.object({[Z_.name]:A({fieldName:Z_.name})}))}).optional()}),$_=e=>xa(q(Y_,e),q(X_,e)),ev={"join-name-pipe0":{provider:`pipe0`,allowManagedConnection:!0,credits:0,mode:`always`}},tv=class extends W{pipeId=J_;payload;payloadSchema=Q_;billableOperations=ev;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[`join-name-pipe0`]}getInputRequirement(){return $_(this.payload.config)}getRawOutputFields(){return{[Z_.name]:this.catalogOutput(Z_)}}getConnectionsRequirements(){return[{provider:`pipe0`,rateLimitRatio:1,rateLimitOperation:`pipe0_logic`,allowManagedConnection:!0}]}},nv=Q_,rv={pipeId:J_,basePipe:G(J_),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:[V.NAMES],docPath:K(J_),billableOperations:ev,defaultInputRequirement:$_(null),inputFieldMode:`static`,outputFieldMode:`static`,allowedUserConnectionProviders:[],managedProviders:[`pipe0`],deprecatedProviders:[],defaultPayload:{pipe_id:J_,run_if:null,connector:null,config:{input_fields:{first_name:{alias:``},last_name:{alias:``}},output_fields:{name:{alias:``,enabled:!0}}}}},iv=`person:name:split@1`,av=v(`name`),ov=v(`first_name`),sv=v(`last_name`),cv=r.object({pipe_id:r.literal(iv),connector:E(),run_if:C(),config:r.object({input_fields:B(r.object({[av.name]:D({fieldName:av.name})})),output_fields:z(r.object({[ov.name]:A({fieldName:ov.name}),[sv.name]:A({fieldName:sv.name})}))}).optional()}),lv=e=>H(q(av,e)),uv={"split-name-pipe0":{provider:`pipe0`,allowManagedConnection:!0,credits:0,mode:`always`}},dv=class extends W{pipeId=iv;payload;payloadSchema=cv;billableOperations=uv;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[`split-name-pipe0`]}getInputRequirement(){return lv(this.payload.config)}getRawOutputFields(){return{[ov.name]:this.catalogOutput(ov),[sv.name]:this.catalogOutput(sv)}}getConnectionsRequirements(){return[{provider:`pipe0`,rateLimitRatio:1,rateLimitOperation:`pipe0_logic`,allowManagedConnection:!0}]}},fv=cv,pv={pipeId:iv,basePipe:G(iv),label:`Split name`,executionMode:`single`,categories:[`people_data`],lifecycle:null,description:`Split a full name into first and last name.`,tags:[V.NAMES],docPath:K(iv),billableOperations:uv,inputFieldMode:`static`,outputFieldMode:`static`,defaultInputRequirement:lv(null),allowedUserConnectionProviders:[],managedProviders:[`pipe0`],deprecatedProviders:[],defaultPayload:{pipe_id:iv,run_if:null,connector:void 0,config:{input_fields:{name:{alias:``}},output_fields:{first_name:{alias:``,enabled:!0},last_name:{alias:``,enabled:!0}}}}},mv=`person:personalemail:profileurl:waterfall@1`,hv=v(`profile_url`),gv=v(`personal_email`),_v=v(`alternate_personal_emails`),vv=[`clado`,`leadmagic`,`mixrank`],yv=[{provider:`leadmagic`},{provider:`mixrank`}],bv=r.object({pipe_id:r.literal(mv),run_if:C(),connector:T(),config:r.object({providers:O({sectionKey:`general`,availableProviders:vv,defaultProviders:yv}),input_fields:B(r.object({[hv.name]:D({fieldName:hv.name})})),output_fields:z(r.object({[gv.name]:A({fieldName:gv.name}),[_v.name]:A({fieldName:_v.name})}))}).optional()}),xv=e=>H(q(hv,e)),Sv={"personal-email-from-profile-clado":{provider:`clado`,allowManagedConnection:!0,credits:2,mode:`always`},"personal-email-from-profile-leadmagic":{provider:`leadmagic`,allowManagedConnection:!0,credits:1,mode:`onSuccess`},"personal-email-reveal-mixrank":{provider:`mixrank`,allowManagedConnection:!0,credits:1,mode:`onSuccess`}},Cv=class extends W{pipeId=mv;payload;payloadSchema=bv;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=>Y(e,this.billableOperations).billableOperation)}getInputRequirement(){return xv(this.payload.config)}getRawOutputFields(){return{[gv.name]:this.catalogOutput(gv,{isPrimaryOutput:!0}),[_v.name]:this.catalogOutput(_v)}}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:J(n),rateLimitOperation:e[t.provider],allowManagedConnection:!0}))}},wv=bv,Tv={pipeId:mv,basePipe:G(mv),allowedUserConnectionProviders:vv,managedProviders:vv,deprecatedProviders:[`clado`],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:[V.EMAIL,V.PERSONAL_EMAIL],docPath:K(mv),billableOperations:Sv,defaultInputRequirement:xv(null),inputFieldMode:`static`,outputFieldMode:`static`,defaultPayload:{pipe_id:mv,connector:null,run_if:null,config:{providers:yv,input_fields:{profile_url:{alias:``}},output_fields:{personal_email:{alias:``,enabled:!0},alternate_personal_emails:{alias:``,enabled:!1}}}}},Ev=v(`profile_url`),Dv=v(`post_list_string`),Ov=v(`crustdata_post_list`),kv=`person:posts:crustdata@1`,Av=r.object({pipe_id:r.literal(kv),run_if:C(),connector:T(),config:r.object({limit:ra({path:`config.limit`,groupPath:`config.general`,max:100,min:1,required:!0,sectionKey:`general`,info:``,label:`Limit`,legend:`Max. 100`}),input_fields:B(r.object({[Ev.name]:D({fieldName:Ev.name})})),output_fields:z(r.object({[Dv.name]:A({fieldName:Dv.name}),[Ov.name]:A({fieldName:Ov.name})}))}).optional()}),jv=e=>H(q(Ev,e)),Mv={"single-post-fetch-crustdata":{allowManagedConnection:!0,credits:1.5,mode:`onSuccess`,note:`1.5 credits per post. Posts are fetched in increments of 5.`,provider:`crustdata`}},Nv=class extends W{pipeId=kv;payload;payloadSchema=Av;billableOperations=Mv;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`crustdata`]}estimateBillableOperations(){return[`single-post-fetch-crustdata`]}getInputRequirement(){return jv(this.payload.config)}getRawOutputFields(){return{[Dv.name]:this.catalogOutput(Dv),[Ov.name]:this.catalogOutput(Ov)}}getConnectionsRequirements(){return[{provider:`crustdata`,rateLimitRatio:1,rateLimitOperation:`crustdata_realtime_post_fetch`,allowManagedConnection:!0}]}},Pv=Av,Fv={pipeId:kv,inputFieldMode:`static`,outputFieldMode:`static`,basePipe:G(kv),label:`LinkedIn posts`,executionMode:`single`,categories:[`people_data`],lifecycle:null,description:`Find list of recent LinkedIn posts.`,tags:[V.LINKEDIN],docPath:K(kv),billableOperations:Mv,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}}}}},Iv=`person:profile:waterfall@1`,Lv=v(`profile`),Rv=v(`profile_url`),zv=[`prospeo`,`icypeas`,`amplemarket`,`clado`],Bv=[{provider:`amplemarket`},{provider:`prospeo`},{provider:`icypeas`}],Vv=r.object({pipe_id:r.literal(Iv),run_if:C(),connector:T(),config:r.object({providers:O({sectionKey:`general`,availableProviders:zv,defaultProviders:Bv}),input_fields:B(r.object({[Rv.name]:D({fieldName:Rv.name})})),output_fields:z(r.object({[Lv.name]:A({fieldName:Lv.name})}))}).optional()}),Hv=e=>H(q(Rv,e)),Uv={"professional-profile-icypeas":{provider:`icypeas`,credits:1,mode:`onSuccess`,allowManagedConnection:!0},"professional-profile-prospeo":{provider:`prospeo`,credits:1,mode:`onSuccess`,allowManagedConnection:!0},"professional-profile-clado":{provider:`clado`,credits:1,mode:`onSuccess`,allowManagedConnection:!0},"person-match-amplemarket":{provider:`amplemarket`,credits:1,mode:`onSuccess`,allowManagedConnection:!0}},Wv=class extends W{pipeId=Iv;payload;payloadSchema=Vv;billableOperations=Uv;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return this.payload.config?.providers.map(e=>e.provider)||[]}estimateBillableOperations(){return this.getProviderNames().map(e=>Y(e,this.billableOperations).billableOperation)}getInputRequirement(){return Hv(this.payload.config)}getRawOutputFields(){return{[Lv.name]:this.catalogOutput(Lv,{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:J(n),rateLimitOperation:e[t.provider],allowManagedConnection:!0}))}},Gv=Vv,Kv={pipeId:Iv,basePipe:G(Iv),label:`Full LinkedIn profile`,executionMode:`waterfall`,categories:[`people_data`],lifecycle:null,description:`Find a JSON representation of a LinkedIn profile.`,docPath:K(Iv),tags:[V.LINKEDIN,V.WATERFALL],managedProviders:zv,deprecatedProviders:[`clado`],allowedUserConnectionProviders:zv,inputFieldMode:`static`,outputFieldMode:`static`,billableOperations:Uv,defaultInputRequirement:Hv(null),defaultPayload:{pipe_id:Iv,run_if:null,connector:null,config:{providers:Bv,input_fields:{profile_url:{alias:``}},output_fields:{profile:{alias:``,enabled:!0}}}}},qv=v(`work_email`),Jv=v(`crustdata_person_match`),Yv=v(`crustdata_profile_match_score`),Xv=`person:profile:workemail:crustdata@1`,Zv=r.object({pipe_id:r.literal(Xv),run_if:C(),connector:T(),config:r.object({input_fields:B(r.object({[qv.name]:D({fieldName:qv.name})})),output_fields:z(r.object({[Jv.name]:A({fieldName:Jv.name}),[Yv.name]:A({fieldName:Yv.name})}))}).optional()}),Qv=e=>H(q(qv,e)),$v={"profile-from-workemail-crustdata":{allowManagedConnection:!0,credits:5,mode:`onSuccess`,provider:`crustdata`}},ey=class extends W{pipeId=Xv;payload;payloadSchema=Zv;billableOperations=$v;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`crustdata`]}estimateBillableOperations(){return[`profile-from-workemail-crustdata`]}getInputRequirement(){return Qv(this.payload.config)}getRawOutputFields(){return{[Jv.name]:this.catalogOutput(Jv),[Yv.name]:this.catalogOutput(Yv)}}getConnectionsRequirements(){return[{provider:`crustdata`,rateLimitRatio:1,rateLimitOperation:`crustdata_realtime_person_enrich`,allowManagedConnection:!0}]}},ty=Zv,ny={pipeId:Xv,inputFieldMode:`static`,outputFieldMode:`static`,basePipe:G(Xv),label:`Profile from work email`,executionMode:`single`,categories:[`people_data`],lifecycle:null,description:`Find person profile by their work email address.`,tags:[V.EMAIL,V.PEOPLE_PROFILES],docPath:K(Xv),billableOperations:$v,allowedUserConnectionProviders:[`crustdata`],managedProviders:[`crustdata`],deprecatedProviders:[],defaultInputRequirement:Qv(null),defaultPayload:{pipe_id:Xv,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}}}}},ry=`person:profileurl:email:waterfall@1`,iy=v(`email`),ay=v(`work_email`),oy=v(`profile_url`),sy=[`leadmagic`],cy=[{provider:`leadmagic`}],ly=r.object({pipe_id:r.literal(ry),run_if:C(),connector:T(),config:r.object({providers:O({sectionKey:`general`,defaultProviders:cy,availableProviders:sy}),input_fields:B(r.object({[iy.name]:D({fieldName:iy.name}),[ay.name]:D({fieldName:ay.name})})),output_fields:z(r.object({[oy.name]:A({fieldName:oy.name})}))}).optional()}),uy=e=>U(q(iy,e),q(ay,e)),dy={"profileurl-from-email-leadmagic":{provider:`leadmagic`,allowManagedConnection:!0,credits:3.5,mode:`onSuccess`}},fy=class extends W{pipeId=ry;payload;payloadSchema=ly;billableOperations=dy;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return this.payload.config?.providers.map(e=>e.provider)||[]}estimateBillableOperations(){return this.getProviderNames().map(e=>Y(e,this.billableOperations).billableOperation)}getInputRequirement(){return uy(this.payload.config)}getRawOutputFields(){return{[oy.name]:this.catalogOutput(oy,{isPrimaryOutput:!0})}}getConnectionsRequirements(){let e={leadmagic:`leadmagic_email_to_b2b_profile`};return(this.payload.config?.providers||[]).map((t,n)=>({provider:t.provider,rateLimitRatio:J(n),rateLimitOperation:e[t.provider],allowManagedConnection:!0}))}},py=ly,my={pipeId:ry,basePipe:G(ry),managedProviders:sy,deprecatedProviders:[],allowedUserConnectionProviders:sy,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:[V.LINKEDIN],docPath:K(ry),billableOperations:dy,inputFieldMode:`static`,outputFieldMode:`static`,defaultInputRequirement:uy(null),defaultPayload:{pipe_id:ry,run_if:null,connector:null,config:{providers:cy,input_fields:{email:{alias:``},work_email:{alias:``}},output_fields:{profile_url:{alias:``,enabled:!0}}}}},hy=`person:profileurl:name@1`,gy=v(`name`),_y=v(`company_name`),vy=v(`location_hint`),yy=v(`profile_url`),by=r.object({pipe_id:r.literal(hy),connector:E(),run_if:C(),config:r.object({input_fields:B(r.object({[gy.name]:D({fieldName:gy.name}),[_y.name]:D({fieldName:_y.name}),[vy.name]:D({fieldName:vy.name})})),output_fields:z(r.object({[yy.name]:A({fieldName:yy.name})}))}).optional()}),xy=e=>xa(H(q(gy,e)),H(q(_y,e)),Sa(q(vy,e))),Sy={"profileurl-from-name-pipe0":{provider:`pipe0`,allowManagedConnection:!0,credits:.6,mode:`always`}},Cy=class extends W{pipeId=hy;payload;payloadSchema=by;billableOperations=Sy;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[`profileurl-from-name-pipe0`]}getInputRequirement(){return xy(this.payload.config)}getRawOutputFields(){return{[yy.name]:this.catalogOutput(yy)}}getConnectionsRequirements(){return[{provider:`serper`,rateLimitRatio:1,rateLimitOperation:`serper_search`,allowManagedConnection:!0}]}},wy=by,Ty={pipeId:hy,basePipe:G(hy),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:K(hy),tags:[V.LINKEDIN],billableOperations:Sy,defaultInputRequirement:xy(null),inputFieldMode:`static`,outputFieldMode:`static`,defaultPayload:{pipe_id:hy,connector:void 0,run_if:null,config:{input_fields:{company_name:{alias:``},location_hint:{alias:``},name:{alias:``}},output_fields:{profile_url:{alias:``,enabled:!0}}}}},Ey=`person:workemail:profileurl:waterfall@1`,Dy=v(`profile_url`),Oy=v(`work_email`),ky=v(`email_validation_status`),Ay=[`hunter`,`amplemarket`,`findymail`,`leadmagic`,`crustdata`,`clado`],jy=[`clado`],My=[{provider:`hunter`},{provider:`amplemarket`},{provider:`leadmagic`},{provider:`findymail`},{provider:`crustdata`}],Ny=r.object({pipe_id:r.literal(Ey),connector:T(),run_if:C(),config:r.object({providers:O({availableProviders:Ay,defaultProviders:My,sectionKey:`general`}),allow_catch_all_emails:k({path:`config.allow_catch_all_emails`,defaultValue:!0,groupPath:`config.general`,sectionKey:`general`,info:``,label:`Allow catch-all emails`}),allow_risky_emails:k({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:B(r.object({[Dy.name]:D({fieldName:Dy.name})})),output_fields:z(r.object({[Oy.name]:A({fieldName:Oy.name}),[ky.name]:A({fieldName:ky.name})}))}).optional()}),Py=e=>H(q(Dy,e)),Fy={"workemail-from-profileurl-hunter":{provider:`hunter`,allowManagedConnection:!0,credits:1,mode:`onSuccess`},"workemail-from-profileurl-leadmagic":{provider:`leadmagic`,allowManagedConnection:!0,credits:2,mode:`onSuccess`},"workemail-from-profileurl-findymail":{provider:`findymail`,allowManagedConnection:!0,credits:2,mode:`onSuccess`},"workemail-from-profileurl-crustdata":{provider:`crustdata`,allowManagedConnection:!0,credits:3,mode:`onSuccess`},"workemail-from-profileurl-clado":{provider:`clado`,allowManagedConnection:!0,credits:3.5,mode:`onSuccess`},"email-lookup-amplemarket":{provider:`amplemarket`,allowManagedConnection:!0,credits:2.5,mode:`onSuccess`}},Iy=class extends W{pipeId=Ey;payload;payloadSchema=Ny;billableOperations=Fy;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return this.payload.config?.providers.map(e=>e.provider)||[]}estimateBillableOperations(){return this.getProviderNames().map(e=>Y(e,this.billableOperations).billableOperation)}getInputRequirement(){return Py(this.payload.config)}getRawOutputFields(){return{[Oy.name]:this.catalogOutput(Oy,{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`,clado:`clado_contact_information`};return(this.payload.config?.providers||[]).map((t,n)=>({provider:t.provider,rateLimitRatio:J(n),rateLimitOperation:e[t.provider],allowManagedConnection:!0}))}},Ly=Ny,Ry={pipeId:Ey,basePipe:G(Ey),label:`Work email from LinkedIn URL`,executionMode:`waterfall`,categories:[`people_data`],lifecycle:null,description:`Find work email addresses from B2B profile.`,tags:[V.EMAIL,V.WORK_EMAIL,V.WATERFALL],docPath:K(Ey),managedProviders:Ay,allowedUserConnectionProviders:Ay,deprecatedProviders:jy,inputFieldMode:`static`,outputFieldMode:`static`,billableOperations:Fy,defaultInputRequirement:Py(null),defaultPayload:{pipe_id:Ey,connector:null,run_if:null,config:{providers:My,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}}}}},zy=`person:workemail:waterfall@1`,By=v(`name`),Vy=v(`company_domain`),Hy=v(`company_name`),Uy=v(`work_email`),Wy=v(`email_validation_status`),Gy=[`leadmagic`,`prospeo`,`amplemarket`,`hunter`,`icypeas`,`findymail`],Ky=[{provider:`leadmagic`},{provider:`prospeo`},{provider:`amplemarket`},{provider:`hunter`},{provider:`icypeas`},{provider:`findymail`}],qy={"work-email-leadmagic":{provider:`leadmagic`,allowManagedConnection:!0,credits:.5,mode:`onSuccess`},"work-email-icypeas":{provider:`icypeas`,allowManagedConnection:!0,credits:.5,mode:`onSuccess`},"work-email-prospeo":{provider:`prospeo`,allowManagedConnection:!0,credits:1,mode:`onSuccess`},"work-email-findymail":{provider:`findymail`,allowManagedConnection:!0,credits:1,mode:`onSuccess`},"work-email-hunter":{provider:`hunter`,allowManagedConnection:!0,credits:1,mode:`onSuccess`},"email-lookup-amplemarket":{provider:`amplemarket`,allowManagedConnection:!0,credits:2.5,mode:`onSuccess`}},Jy=r.object({pipe_id:r.literal(zy),connector:T(),run_if:C(),config:r.object({providers:O({availableProviders:Gy,defaultProviders:Ky,sectionKey:`general`,providerCredits:Ma(qy,Gy)}),allow_catch_all_emails:k({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:k({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:B(r.object({[By.name]:D({fieldName:By.name}),[Vy.name]:D({fieldName:Vy.name}),[Hy.name]:D({fieldName:Hy.name})})),output_fields:z(r.object({[Uy.name]:A({fieldName:Uy.name}),[Wy.name]:A({fieldName:Wy.name})}))}).optional()}),Yy=e=>xa(H(q(By,e)),U(q(Vy,e),q(Hy,e))),Xy=class extends W{pipeId=zy;payload;payloadSchema=Jy;billableOperations=qy;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return this.payload.config?.providers.map(e=>e.provider)||[]}estimateBillableOperations(){return this.getProviderNames().map(e=>Y(e,this.billableOperations).billableOperation)}getInputRequirement(){return Yy(this.payload.config)}getRawOutputFields(){return{[Uy.name]:this.catalogOutput(Uy,{isPrimaryOutput:!0}),[Wy.name]:this.catalogOutput(Wy,{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:J(n),rateLimitOperation:e[t.provider],allowManagedConnection:!0}))}},Zy=Jy,Qy={pipeId:zy,basePipe:G(zy),label:`Work email from name`,executionMode:`waterfall`,categories:[`people_data`],lifecycle:null,description:`Find work email addresses in a waterfall motion.`,tags:[V.EMAIL,V.WORK_EMAIL,V.WATERFALL],docPath:K(zy),managedProviders:Gy,deprecatedProviders:[],allowedUserConnectionProviders:Gy,inputFieldMode:`static`,outputFieldMode:`static`,billableOperations:qy,defaultInputRequirement:Yy(null),defaultPayload:{pipe_id:zy,connector:null,run_if:null,config:{providers:Ky,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}}}}},$y=`prompt:run@1`,eb=ei(`prompt`),tb=r.object({pipe_id:r.literal($y),connector:T(),run_if:C(),config:r.object({prompt:Ri({sectionKey:`general`,path:`config.prompt`,placeholder:X(`prompt`),groupPath:`config.prompt`,supportedTags:[`input`,`output`]}),model:ta({sectionKey:`general`,label:`Model`,path:`config.model`,groupPath:`config.prompt`,billableOperations:eb})})}),nb=class extends W{pipeId=$y;payload;payloadSchema=tb;billableOperations=eb;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return ti(this.payload.config.model)}estimateBillableOperations(){return[ni(this.payload.config.model,`prompt`)]}getInputRequirement(){return Lm([this.payload.config.prompt.template])}getSecretRequirements(){return Rm([this.payload.config.prompt.template])}getConstantRequirements(){return zm([this.payload.config.prompt.template])}getRawOutputFields(){let e=this.payload.config.prompt.template,t=this.payload.config.prompt.json_schemas??{},n={},r;try{r=Ar(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 ri(this.payload.config.model)}},rb=tb,ib={pipeId:$y,inputFieldMode:`config`,outputFieldMode:`config`,basePipe:G($y),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:[V.AI],docPath:K($y),defaultInputRequirement:null,billableOperations:eb,allowedUserConnectionProviders:ii(),managedProviders:ii(),deprecatedProviders:[],defaultPayload:{pipe_id:$y,connector:null,run_if:null,config:{model:`openai-gpt-latest`,prompt:{template:``,json_schemas:{}}}}},ab=`sheet:row:append@1`,ob=v(`sheet_record_id`),sb=v(`created_sheet`),cb=[{label:`Demo leads`,value:`demo-leads`},{label:`Demo companies`,value:`demo-companies`},{label:`Demo contacts`,value:`demo-contacts`}],lb=[{label:`Demo team`,value:`sandbox-team-1`},{label:`Demo workspace`,value:`sandbox-team-2`}],ub={requires:{connection:`pipe0`},enabledIf:cn(`pipe0`,`Select a pipe0 connection to see sheet suggestions`),options:async({query:e,client:t,environment:n})=>n===`sandbox`?cb: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`}}},db={requires:{connection:`pipe0`},enabledIf:cn(`pipe0`,`Select a pipe0 connection to see team suggestions`),options:async({query:e,client:t,environment:n})=>n===`sandbox`?lb:t?(await t.teams.list({query:e})).map(e=>({label:e.name,value:e.id})):[],widgets:{provider_logo:{provider:`pipe0`}}},fb=r.object({pipe_id:r.literal(ab),connector:Vi(),run_if:C(),config:r.object({sheet:w({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:ub}),run:k({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:k({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:k({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:oa({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:db,enabledIf:e=>e.config?.allow_sheet_creation?{disabled:!1}:{disabled:!0,message:`Turn on β€œUpsert sheets” to specify a team.`}}),included_fields:Ui({label:`Fields`,info:`All fields are written if empty.`,groupPath:`config.general`,path:`config.included_fields`,sectionKey:`general`,disableSearch:!0}),output_fields:z(r.object({[ob.name]:A({fieldName:ob.name}),[sb.name]:A({fieldName:sb.name})}))})}),pb={"sheet-row-append-pipe0":{provider:`pipe0`,allowManagedConnection:!1,credits:null,mode:null}},mb=class extends W{pipeId=ab;payload;payloadSchema=fb;billableOperations=pb;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[`sheet-row-append-pipe0`]}getInputRequirement(){let e=[Lm([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(H({name:t.field_name,resolvedName:t.field_name,label:``,description:``,type:e=>{let n=Im(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 xa(...e)}getSecretRequirements(){return Rm([this.payload.config.sheet])}getConstantRequirements(){return zm([this.payload.config.sheet])}getRawOutputFields(){return{[ob.name]:this.catalogOutput(ob),[sb.name]:this.catalogOutput(sb)}}getConnectionsRequirements(){return[{provider:`pipe0`,rateLimitRatio:1,rateLimitOperation:`pipe0-sheet-operation`,allowManagedConnection:!0}]}},hb=fb,gb={pipeId:ab,basePipe:G(ab),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:K(ab),tags:[V.FIELDS],billableOperations:pb,defaultInputRequirement:null,inputFieldMode:`config`,outputFieldMode:`static`,defaultPayload:{pipe_id:ab,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}}}}},_b=`sheet:row:expandappend@1`,vb=v(`sheet_record_ids`),yb=v(`input_objects`),bb=r.object({pipe_id:r.literal(_b),connector:Vi(),run_if:C(),config:r.object({sheet:Qi({label:`Sheet name`,info:`Unique identifier for the sheet`,groupPath:`config.general`,sectionKey:`general`,inputType:`text`,path:`config.sheet`,minLength:3}),run:k({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:k({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:B(r.object({[yb.name]:D({fieldName:yb.name})})),output_fields:z(r.object({[vb.name]:A({fieldName:vb.name})}))})}),xb={"sheet-row-appendexpand-pipe0":{provider:`pipe0`,allowManagedConnection:!1,credits:null,mode:null}},Sb=e=>H(q(yb,e)),Cb=class extends W{pipeId=_b;payload;payloadSchema=bb;billableOperations=xb;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[`sheet-row-appendexpand-pipe0`]}getInputRequirement(){return Sb(this.payload.config)}getRawOutputFields(){return{[vb.name]:this.catalogOutput(vb)}}getConnectionsRequirements(){return[{provider:`pipe0`,rateLimitRatio:1,rateLimitOperation:`pipe0-sheet-operation`,allowManagedConnection:!0}]}},wb=bb,Tb={pipeId:_b,basePipe:G(_b),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:K(_b),tags:[V.FIELDS],billableOperations:xb,defaultInputRequirement:Sb(null),inputFieldMode:`static`,outputFieldMode:`static`,defaultPayload:{pipe_id:_b,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}}}}},Eb=`template:fill@1`,Db=v(`template_output`),Ob=r.object({pipe_id:r.literal(Eb),connector:T(),run_if:C(),config:r.object({template:zi({sectionKey:`general`,path:`config.template`,label:`Template`,placeholder:X(`template`),groupPath:`config.general`,required:!0}),output_fields:z(r.object({[Db.name]:A({fieldName:Db.name})}))})}),kb={"template-fill-pipe0":{credits:0,allowManagedConnection:!0,provider:`pipe0`,mode:`always`}},Ab=class extends W{pipeId=Eb;payload;payloadSchema=Ob;billableOperations=kb;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[`template-fill-pipe0`]}getInputRequirement(){return Lm([this.payload.config.template])}getSecretRequirements(){return Rm([this.payload.config.template])}getConstantRequirements(){return zm([this.payload.config.template])}getRawOutputFields(){return{[Db.name]:this.catalogOutput(Db)}}getConnectionsRequirements(){return[]}},jb=Ob,Mb={pipeId:Eb,inputFieldMode:`config`,outputFieldMode:`config`,basePipe:G(Eb),label:`Fill a text template`,executionMode:`single`,categories:[`tools`],lifecycle:null,description:`Replaces template tags like {{ input name type="string" }} with actual values.`,tags:[V.TEXT],docPath:K(Eb),defaultInputRequirement:null,billableOperations:kb,allowedUserConnectionProviders:[],managedProviders:[`pipe0`],deprecatedProviders:[],defaultPayload:{pipe_id:Eb,connector:null,run_if:null,config:{template:``,output_fields:{template_output:{alias:``,enabled:!0}}}}},Nb=`website:extract:firecrawl@1`,Pb=v(`website_url`),Fb=v(`firecrawl_extract_result`),Ib=r.object({pipe_id:r.literal(Nb),connector:T(),run_if:C(),config:r.object({json_schema:aa({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:$i({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:k({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:k({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:B(r.object({[Pb.name]:D({fieldName:Pb.name})})),output_fields:z(r.object({[Fb.name]:A({fieldName:Fb.name})}))})}),Lb=e=>H(q(Pb,e)),Rb={"website-extract-firecrawl":{allowManagedConnection:!0,provider:`firecrawl`,credits:2,mode:`onSuccess`}},zb=class extends W{pipeId=Nb;payload;payloadSchema=Ib;billableOperations=Rb;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`firecrawl`]}estimateBillableOperations(){return[`website-extract-firecrawl`]}getInputRequirement(){return Lb(this.payload.config)}getRawOutputFields(){return{[Fb.name]:this.catalogOutput(Fb)}}getConnectionsRequirements(){return[{provider:`firecrawl`,rateLimitRatio:1,rateLimitOperation:`firecrawl_generic`,allowManagedConnection:!0}]}},Bb=Ib,Vb={pipeId:Nb,basePipe:G(Nb),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:[V.SCRAPE],docPath:K(Nb),billableOperations:Rb,inputFieldMode:`static`,outputFieldMode:`static`,allowedUserConnectionProviders:[`firecrawl`],managedProviders:[`firecrawl`],deprecatedProviders:[],defaultInputRequirement:Lb(null),defaultPayload:{pipe_id:Nb,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}}}}},Hb=`website:maplinks:firecrawl@1`,Ub={"website-maplinks-firecrawl":{allowManagedConnection:!0,provider:`firecrawl`,credits:1,mode:`onSuccess`}},Wb=v(`website_url`),Gb=v(`mapped_links`),Kb=r.object({pipe_id:r.literal(Hb),connector:T(),run_if:C(),config:r.object({page_limit:ra({label:`Page limit`,info:`Number of pages searched`,groupPath:`config.general`,max:50,min:1,required:!1,path:`config.page_limit`,sectionKey:`general`}),sitemap:ea({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:Qi({sectionKey:`general`,label:`Search`,inputType:`text`,info:`Return matching urls`,groupPath:`config.general`,path:`config.search`}).default(``),input_fields:B(r.object({[Wb.name]:D({fieldName:Wb.name})})),output_fields:z(r.object({[Gb.name]:A({fieldName:Gb.name})}))}).optional()}),qb=e=>H(q(Wb,e)),Jb=class extends W{pipeId=Hb;payload;payloadSchema=Kb;billableOperations=Ub;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`firecrawl`]}estimateBillableOperations(){return[`website-maplinks-firecrawl`]}getInputRequirement(){return qb(this.payload.config)}getRawOutputFields(){return{[Gb.name]:this.catalogOutput(Gb)}}getConnectionsRequirements(){return[{provider:`firecrawl`,rateLimitRatio:1,rateLimitOperation:`firecrawl_map_requests`,allowManagedConnection:!0}]}},Yb=Kb,Xb={pipeId:Hb,basePipe:G(Hb),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:[V.SCRAPE],docPath:K(Hb),billableOperations:Ub,inputFieldMode:`static`,outputFieldMode:`static`,allowedUserConnectionProviders:[`firecrawl`],managedProviders:[`firecrawl`],deprecatedProviders:[],defaultInputRequirement:qb(null),defaultPayload:{pipe_id:Hb,run_if:null,connector:null,config:{page_limit:25,sitemap:`include`,search:``,input_fields:{website_url:{alias:``}},output_fields:{mapped_links:{alias:``,enabled:!0}}}}},Zb=`website:scrape:firecrawl@1`,Qb=v(`website_url`),$b=v(`website_markdown`),ex=v(`website_html`),tx=v(`website_links`),nx=r.object({pipe_id:r.literal(Zb),connector:T(),run_if:C(),config:r.object({scrape_main_only:k({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:B(r.object({[Qb.name]:D({fieldName:Qb.name})})),output_fields:z(r.object({[$b.name]:A({fieldName:$b.name}),[ex.name]:A({fieldName:ex.name}),[tx.name]:A({fieldName:tx.name})}))}).optional()}),rx=e=>H(q(Qb,e)),ix={"website-scrape-firecrawl":{allowManagedConnection:!0,provider:`firecrawl`,credits:.1,mode:`onSuccess`}},ax=class extends W{pipeId=Zb;payload;payloadSchema=nx;billableOperations=ix;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`firecrawl`]}estimateBillableOperations(){return[`website-scrape-firecrawl`]}getInputRequirement(){return rx(this.payload.config)}getRawOutputFields(){return{[$b.name]:this.catalogOutput($b),[ex.name]:this.catalogOutput(ex),[tx.name]:this.catalogOutput(tx)}}getConnectionsRequirements(){return[{provider:`firecrawl`,rateLimitRatio:1,rateLimitOperation:`firecrawl_generic`,allowManagedConnection:!0}]}},ox=nx,sx={pipeId:Zb,basePipe:G(Zb),label:`Scrape`,executionMode:`single`,categories:[`tools`],lifecycle:null,description:`Turn any URL into clean data.`,tags:[V.SCRAPE],docPath:K(Zb),billableOperations:ix,inputFieldMode:`static`,outputFieldMode:`static`,allowedUserConnectionProviders:[`firecrawl`],managedProviders:[`firecrawl`],deprecatedProviders:[],defaultInputRequirement:rx(null),defaultPayload:{pipe_id:Zb,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}}}}},cx=`website:scrapelist:firecrawl@1`,lx={"list-url-scrape-firecrawl":{allowManagedConnection:!0,provider:`firecrawl`,credits:.1,mode:`onSuccess`,note:`You are charged per url that is scraped.`}},ux=v(`urls`),dx=v(`scrape_list_response`),fx=r.object({pipe_id:r.literal(cx),connector:T(),run_if:C(),config:r.object({scrape_main_only:k({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:na({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:B(r.object({[ux.name]:D({fieldName:ux.name})})),output_fields:z(r.object({[dx.name]:A({fieldName:dx.name})}))}).optional()}),px=e=>H(q(ux,e)),mx=class extends W{pipeId=cx;payload;payloadSchema=fx;billableOperations=lx;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`firecrawl`]}estimateBillableOperations(){return[,,,,,].fill(`list-url-scrape-firecrawl`)}getInputRequirement(){return px(this.payload.config)}getRawOutputFields(){return{[dx.name]:this.catalogOutput(dx)}}getConnectionsRequirements(){return[{provider:`firecrawl`,rateLimitRatio:1,rateLimitOperation:`firecrawl_generic`,allowManagedConnection:!0}]}},hx=fx,gx={pipeId:cx,basePipe:G(cx),label:`Scrape list`,executionMode:`single`,categories:[`tools`],lifecycle:null,description:`Turn a list of URLs into clean scraped data.`,tags:[V.SCRAPE],docPath:K(cx),billableOperations:lx,inputFieldMode:`static`,outputFieldMode:`static`,allowedUserConnectionProviders:[`firecrawl`],managedProviders:[`firecrawl`],deprecatedProviders:[],defaultInputRequirement:px(null),defaultPayload:{pipe_id:cx,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}}}}},_x={"prompt:run@1":nb,"company:newssummary:website@1":ll,"company:newssummary:domain@1":rs,"company:techstack:builtwith@1":Zl,"company:techstack:builtwith@2":As,"company:websiteurl:email@1":ou,"company:domain:workemail@1":Ka,"company:funding:leadmagic@1":nc,"company:funding:leadmagic@2":oo,"people:workemail:waterfall@1":xm,"person:workemail:waterfall@1":Xy,"people:email:iswork@1":hu,"email:iswork@1":Am,"people:name:split@1":Wd,"person:name:split@1":dv,"people:validate:email:zerobounce@1":Jp,"people:email:validate:zerobounce@2":Pu,"email:validate:zerobounce@1":sh,"people:mobilenumber:workemail:waterfall@1":Pd,"person:name:join@1":tv,"company:overview@1":wl,"company:overview@2":Bl,"company:overview@3":ys,"json:extract:multi@1":sg,"company:lookalikes:companyenrich@1":Nc,"company:lookalikes:companyenrich@2":Do,"company:match:logodev@1":el,"company:match:logodev@2":Jo,"person:posts:crustdata@1":Nv,"people:profile:workemail:crustdata@1":Ep,"person:profile:workemail:crustdata@1":ey,"people:identity:email:waterfall@1":td,"person:identity:email:waterfall@1":r_,"person:identity:amplemarket@1":Vg,"email:send:resend@1":Zm,"contact:create:resend@1":Hs,"email:send:gmail@1":Wm,"email:write@1":gh,"fields:merge@1":Kh,"field:slugify@1":Ph,"field:domainify@1":Th,"http:request@1":tg,"template:fill@1":Ab,"message:send:slack@1":hg,"message:write@1":Sg,"people:personalemail:profile:waterfall@1":nf,"person:personalemail:profileurl:waterfall@1":Cv,"website:scrape:firecrawl@1":ax,"website:scrapelist:firecrawl@1":mx,"website:extract:firecrawl@1":zb,"website:maplinks:firecrawl@1":Jb,"sheet:row:append@1":mb,"sheet:row:expandappend@1":Cb,"people:match:role:waterfall@1":fd,"person:match:role:waterfall@1":C_,"company:match:crustdata@1":Hc,"company:match:crustdata@2":Io,"person:match:amplemarket@1":f_,"company:identity@2":wc,"company:identity@3":vo,"people:phone:profile:waterfall@1":mf,"person:mobile:profileurl:waterfall@1":P_,"people:phone:workemail:waterfall@1":Tf,"person:mobile:workemail:waterfall@1":G_,"people:profile:waterfall@1":gp,"person:profile:waterfall@1":Wv,"people:profileurl:email:waterfall@1":Rp,"person:profileurl:email:waterfall@1":fy,"person:profileurl:name@1":Cy,"people:email:validate:zerobounce@1":wu,"person:email:validate:millionverifier@1":Mg,"people:workemail:profileurl:waterfall@1":sm,"person:workemail:profileurl:waterfall@1":Iy,"company:identity@1":pc,"people:professionalprofile:waterfall@1":If,"people:professionalprofileurl:name@1":ap,"people:professionalprofileurl:email:waterfall@1":Jf,"people:mobilenumber:professionalprofile:waterfall@1":Cd},vx={"prompt:run@1":rb,"company:newssummary:website@1":ul,"company:newssummary:domain@1":is,"company:techstack:builtwith@1":Ql,"company:techstack:builtwith@2":js,"company:websiteurl:email@1":su,"company:domain:workemail@1":qa,"company:funding:leadmagic@1":rc,"company:funding:leadmagic@2":so,"people:workemail:waterfall@1":Sm,"person:workemail:waterfall@1":Zy,"people:email:iswork@1":gu,"email:iswork@1":jm,"people:name:split@1":Gd,"person:name:split@1":fv,"people:validate:email:zerobounce@1":Yp,"people:email:validate:zerobounce@2":Fu,"email:validate:zerobounce@1":ch,"people:mobilenumber:workemail:waterfall@1":Fd,"person:name:join@1":nv,"company:overview@1":Tl,"company:overview@2":Vl,"company:overview@3":bs,"json:extract:multi@1":cg,"email:write@1":_h,"fields:merge@1":qh,"field:slugify@1":Fh,"field:domainify@1":Eh,"http:request@1":ng,"email:send:resend@1":Qm,"contact:create:resend@1":Us,"company:lookalikes:companyenrich@1":Pc,"company:lookalikes:companyenrich@2":Oo,"company:match:logodev@1":tl,"company:match:logodev@2":Yo,"person:posts:crustdata@1":Pv,"people:profile:workemail:crustdata@1":Dp,"person:profile:workemail:crustdata@1":ty,"people:identity:email:waterfall@1":nd,"person:identity:email:waterfall@1":i_,"company:match:crustdata@1":Uc,"company:match:crustdata@2":Lo,"person:identity:amplemarket@1":Hg,"message:send:slack@1":gg,"email:send:gmail@1":Gm,"message:write@1":Cg,"template:fill@1":jb,"website:scrape:firecrawl@1":ox,"website:scrapelist:firecrawl@1":hx,"website:extract:firecrawl@1":Bb,"website:maplinks:firecrawl@1":Yb,"sheet:row:append@1":hb,"sheet:row:expandappend@1":wb,"people:match:role:waterfall@1":pd,"person:match:role:waterfall@1":w_,"company:identity@2":Tc,"company:identity@3":yo,"people:phone:profile:waterfall@1":hf,"person:mobile:profileurl:waterfall@1":F_,"people:personalemail:profile:waterfall@1":rf,"person:personalemail:profileurl:waterfall@1":wv,"people:profile:waterfall@1":_p,"person:profile:waterfall@1":Gv,"people:profileurl:email:waterfall@1":zp,"person:profileurl:email:waterfall@1":py,"person:profileurl:name@1":wy,"people:email:validate:zerobounce@1":Tu,"person:email:validate:millionverifier@1":Ng,"people:phone:workemail:waterfall@1":Ef,"person:mobile:workemail:waterfall@1":K_,"people:workemail:profileurl:waterfall@1":cm,"person:workemail:profileurl:waterfall@1":Ly,"person:match:amplemarket@1":p_,"company:identity@1":mc,"people:professionalprofile:waterfall@1":Lf,"people:professionalprofileurl:name@1":op,"people:professionalprofileurl:email:waterfall@1":Yf,"people:mobilenumber:professionalprofile:waterfall@1":wd},yx={"prompt:run@1":ib,"company:newssummary:website@1":dl,"company:newssummary:domain@1":as,"company:techstack:builtwith@1":$l,"company:techstack:builtwith@2":Ms,"company:websiteurl:email@1":cu,"company:domain:workemail@1":Ja,"company:funding:leadmagic@1":ic,"company:funding:leadmagic@2":co,"people:workemail:waterfall@1":Cm,"person:workemail:waterfall@1":Qy,"people:email:iswork@1":_u,"email:iswork@1":Mm,"people:name:split@1":Kd,"person:name:split@1":pv,"people:validate:email:zerobounce@1":Xp,"people:mobilenumber:workemail:waterfall@1":Id,"person:name:join@1":rv,"company:overview@1":El,"company:overview@2":Hl,"company:overview@3":xs,"json:extract:multi@1":lg,"email:send:resend@1":$m,"contact:create:resend@1":Ws,"email:send:gmail@1":Km,"message:send:slack@1":_g,"message:write@1":wg,"email:write@1":vh,"template:fill@1":Mb,"fields:merge@1":Jh,"field:slugify@1":Ih,"field:domainify@1":Dh,"http:request@1":rg,"sheet:row:append@1":gb,"sheet:row:expandappend@1":Tb,"company:lookalikes:companyenrich@1":Fc,"company:lookalikes:companyenrich@2":ko,"people:match:role:waterfall@1":md,"person:match:role:waterfall@1":T_,"company:match:logodev@1":nl,"company:match:logodev@2":Xo,"person:posts:crustdata@1":Fv,"people:profile:workemail:crustdata@1":Op,"person:profile:workemail:crustdata@1":ny,"people:workemail:profileurl:waterfall@1":lm,"person:workemail:profileurl:waterfall@1":Ry,"people:identity:email:waterfall@1":rd,"person:identity:email:waterfall@1":a_,"company:match:crustdata@1":Wc,"company:match:crustdata@2":Ro,"person:identity:amplemarket@1":Ug,"people:personalemail:profile:waterfall@1":af,"person:personalemail:profileurl:waterfall@1":Tv,"people:email:validate:zerobounce@1":Eu,"people:email:validate:zerobounce@2":Iu,"email:validate:zerobounce@1":lh,"person:email:validate:millionverifier@1":Pg,"people:phone:workemail:waterfall@1":Df,"person:mobile:workemail:waterfall@1":q_,"website:scrape:firecrawl@1":sx,"website:scrapelist:firecrawl@1":gx,"website:extract:firecrawl@1":Vb,"website:maplinks:firecrawl@1":Xb,"person:match:amplemarket@1":m_,"company:identity@2":Ec,"company:identity@3":bo,"people:phone:profile:waterfall@1":gf,"person:mobile:profileurl:waterfall@1":I_,"people:profile:waterfall@1":vp,"person:profile:waterfall@1":Kv,"people:profileurl:email:waterfall@1":Bp,"person:profileurl:email:waterfall@1":my,"person:profileurl:name@1":Ty,"company:identity@1":hc,"people:professionalprofile:waterfall@1":Rf,"people:professionalprofileurl:name@1":sp,"people:professionalprofileurl:email:waterfall@1":Xf,"people:mobilenumber:professionalprofile:waterfall@1":Td};function bx(e){return e.defaultPayload?.config?.output_fields?Object.keys(e.defaultPayload?.config?.output_fields||{}):[]}function xx(e){return _x[e]}function Sx(e){return yx[e].defaultPayload}function Cx(e){return vx[e]}const wx=r.discriminatedUnion(`pipe_id`,Object.values(vx)).openapi(`PipePayload`),Tx=r.preprocess(e=>{if(!e||typeof e!=`object`||!(`pipe_id`in e))return e;try{let t=Sx(_n.parse(e.pipe_id));return t?{...e,config:va(e?.config||{},t.config)}:e}catch{return e}},wx);function Ex(e){return yx[e]}function Dx(e,t){let n=Ex(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 Ox(e){let t=e.split(`@`)[1];if(!t)throw Error(`No pipe version found`);return Number(t)}function kx(){let e={};for(let t of Object.values(yx)){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=Ox(e.pipeId);return Ox(t.pipeId)-n})}),e}const Ax=e=>{let t=Ex(e),n=new Set(t.deprecatedProviders);return Array.from(new Set([...t.managedProviders,...t.allowedUserConnectionProviders])).filter(e=>!n.has(e))},jx=kx();function Mx(e){let t=[];for(let[n,r]of Object.entries(jx)){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:Ox(i.pipeId)})}return t}function Nx(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=Ax(e.defaultPayload.pipe_id);for(let n of t)o[n]??=[],o[n].push(e.defaultPayload.pipe_id);for(let t of bx(e))i[t]??=[],i[t].push(e.defaultPayload.pipe_id);if(e.defaultInputRequirement)for(let{field:t}of wa(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:jx}}const Px=r.object({id:r.string(),organization_id:r.string(),order:r.array(bn),field_definitions:Zn,errors:r.array(Fn),records:r.record(bn,Jn),status:r.enum([`completed`,`failed`,`pending`,`processing`])}).openapi(`PipesResponseSchema`),Fx=r.object({environment:hn.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`),Ix=r.object({config:Fx.openapi(`PipesRequestConfig`),field_annotations:Bn.optional().openapi(`PipesFieldAnnotations`),pipes:r.array(wx),input:r.array(qn.openapi(`PipesInputSchema`)),scopes:r.array(r.string()).optional()});function Lx(e){let t=Ex(e);return Object.values(t.billableOperations).reduce((e,t)=>{let n=t.credits||0;return e[t.provider]??=n,e[t.provider]=Math.min(e[t.provider],n),e},{})}const Rx={"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:99,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}},zx={general:{type:`form_section`,path:`general`,label:`Behavior`,description:`How this pipe runs and selects providers.`},pagination:{type:`form_section`,path:`pagination`,label:`Behavior`},"config.input_fields":{type:`form_section`,path:`config.input_fields`,label:`I/O & conditions`,description:`Wire inputs, outputs, and run-time conditions.`},"config.output_fields":{type:`form_section`,path:`config.output_fields`,label:`I/O & conditions`},"config.pipe_io":{type:`form_section`,path:`config.pipe_io`,label:`I/O & conditions`},"config.extractions":{type:`form_section`,path:`config.json_extraction`,label:`I/O & conditions`},conditions:{type:`form_section`,path:`run_if`,label:`I/O & conditions`,mode:`dynamic`},connector:{type:`form_section`,path:`connector`,label:`I/O & conditions`,mode:`dynamic`},"config.filters":{type:`form_section`,path:`config.filters`,label:`I/O & conditions`}},Bx={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 Vx(e){let t=Cx(e),n=[];function i(e){let t=b.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 Hx({pipePayload:e,validationContext:t,sectionOrder:n=Bx,store:r,groupPathMatch:i=Rx,formResolvers:a}){let o=Cx(e.pipe_id),s=Aa(e.pipe_id,e.config||{});return Ii({schema:o,groupPathMatch:i,extractFromSchema:n=>{let i=b.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:Ex(e.pipe_id),hash:s}):i},sectionOrder:n,sectionMap:zx,store:r,formResolvers:a})}const Ux=[`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`],Wx=r.enum(Ux);function Gx(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 Kx(e,t){let n={name:e,config:t};return ka.hashObject(n)}var qx=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 Kx(this.searchId,this.payload)}};function Jx(e){return e.split(`@`)[0]}function Yx(e){return`/docs/searches/searches-catalog/${Jx(e)}/${e.split(`@`)[1]}`}function Xx(e,t=32){return`https://www.google.com/s2/favicons?sz=${t}&domain=${e.replace(/^(https?:\/\/)?(www\.)?/,``)}`}function Zx(e,t){return e==null?void 0:t(e)}function Qx(){return $x({companyWebsiteUrl:`linkedin.com`,entity:`LinkedIn`})}function $x({companyWebsiteUrl:e,entity:t}){if(e)return{image_url:Xx(e),entity:t||e}}function eS(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 tS=`companies:profiles:amplemarket@2`,nS=v(`company_name`),rS=v(`company_domain`),iS=v(`company_description`),aS=v(`company_profile_url`),oS=v(`amplemarket_company_match`),sS=r.object({search_id:r.literal(tS),connector:y.nullable().optional(),config:r.object({limit:R({label:`Limit`,description:`Max number of search results`,path:`config.limit`,min:1,max:100,groupPath:`config.pagination`,required:!0,sectionKey:`pagination`}),page_number:R({path:`config.page_number`,groupPath:`config.pagination`,required:!1,label:`Page number`,min:1,sectionKey:`pagination`,description:``}),output_fields:z(r.object({[nS.name]:P({fieldName:nS.name}),[rS.name]:P({fieldName:rS.name}),[iS.name]:P({fieldName:iS.name}),[aS.name]:P({fieldName:aS.name}),[oS.name]:P({fieldName:oS.name})})),filters:r.object({hq_locations:L({path:`config.filters.hq_locations`,sectionKey:`config.filters`,label:`HQ locations`,description:``,placeholder:X(`location`),groupPath:`config.filters.location`,optionsDef:_(`locations`)}),company_names:M({sectionKey:`config.filters`,path:`config.filters.company_names`,label:`Company names`,description:``,placeholder:X(`company_name`),groupPath:`config.filters.categories`,suggestionsDef:_(`company_names`)}),company_domains:M({sectionKey:`config.filters`,path:`config.filters.company_domains`,label:`Company domains`,description:``,placeholder:X(`company_domain`),groupPath:`config.filters.categories`,suggestionsDef:_(`company_domains`,{widgets:e=>({logo_url:{url:Xx(e.value)}})})}),company_profile_urls:M({sectionKey:`config.filters`,path:`config.filters.company_profile_urls`,label:`Company LinkedIn URLs`,description:``,groupPath:`config.filters.categories`}),company_types:F({sectionKey:`config.filters`,path:`config.filters.company_types`,disableSearch:!1,label:`Company Type`,description:``,groupPath:`config.filters.categories`,options:h(`amplemarket.company_types`),required:!1}),investors:I({sectionKey:`config.filters`,path:`config.filters.investors`,label:`Investor names`,optionsDef:_(`company.crunchbase_investors.crustdata`),description:`A list of company investor names`,placeholder:X(`investor`),groupPath:`config.filters.investors`,disableSearch:!1,required:!1}),company_industries:N({sectionKey:`config.filters`,path:`config.filters.company_industries`,optionsDef:g(`amplemarket.industries`),disableSearch:!1,label:`Industries`,description:``,placeholder:X(`industry`),groupPath:`config.filters.industry`}),customer_types:F({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:M({sectionKey:`config.filters`,path:`config.filters.keywords`,label:`Keywords`,description:``,groupPath:`config.filters.industry`}),revenue_groups:F({path:`config.filters.revenue_groups`,sectionKey:`config.filters`,label:`Revenue groups`,description:``,disableSearch:!0,options:h(`amplemarket.company_revenue`),required:!1,groupPath:`config.filters.financials`}),founded_year:ca({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:j({path:`config.filters.open_position_titles`,sectionKey:`config.filters`,label:`Job openings for titles`,groupPath:`config.filters.job_openings`,description:``,placeholder:X(`title`),suggestionsDef:_(`titles`)}),headcount:F({sectionKey:`config.filters`,path:`config.filters.company_sizes`,disableSearch:!1,options:h(`amplemarket.company_size`),label:`Headcount groups`,required:!1,description:``,groupPath:`config.filters.company_size`}),headcount_growth_l6m_in_percent:ca({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=>{Gx(e.value)&&e.issues.push({code:`custom`,message:`You must set at least one filter.`,input:e.value})})})}),cS={default:{input:[{fields:[]}]}},lS=class extends qx{searchId=tS;schema=sS;payload;constructor(e){super(),this.payload=this.validatePayload(e)}getRawOutputFields(){return{[nS.name]:this.catalogOutput(nS),[rS.name]:this.catalogOutput(rS),[iS.name]:this.catalogOutput(iS),[aS.name]:this.catalogOutput(aS),[oS.name]:this.catalogOutput(oS)}}getConnectionsRequirements(){return[{provider:`amplemarket`,rateLimitOperation:`amplemarket_company_search`,rateLimitRatio:1,allowManagedConnection:!0}]}getDedupConfig(){return cS}},uS=sS,dS={searchId:tS,billableOperation:`companies-profiles-amplemarket`,baseSearch:Jx(`companies:profiles:amplemarket@2`),label:`Company search`,categories:[`companies`],paginationType:`page_number`,hasManagedConnection:!0,allowsUserConnection:!0,lifecycle:null,description:`Filter based company search.`,tags:[V.COMPANY_PROFILES],docPath:Yx(tS),cost:{mode:`per_page`,creditsPerPage:2},provider:`amplemarket`,defaultPayload:{search_id:tS,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:[]}}}}},fS=`companies:profiles:crustdata@2`,pS=v(`company_name`),mS=v(`company_domain`),hS=v(`company_description`),gS=v(`company_profile_url`),_S=v(`crustdata_company_match`),vS=r.object({search_id:r.literal(fS),connector:y.nullable().optional(),config:r.object({limit:R({path:`config.limit`,min:1,max:100,groupPath:`config.pagination`,required:!0,sectionKey:`pagination`,label:`Limit`,description:`Max number of search results`}),cursor:ma({path:`config.cursor`,groupPath:`config.pagination`,inputType:`text`,label:`Cursor`,sectionKey:`pagination`,description:`Pagination cursor`}),output_fields:z(r.object({[pS.name]:P({fieldName:pS.name}),[mS.name]:P({fieldName:mS.name}),[hS.name]:P({fieldName:hS.name}),[gS.name]:P({fieldName:gS.name}),[_S.name]:P({fieldName:_S.name})})),filters:r.object({hq_locations:L({path:`config.filters.hq_locations`,sectionKey:`config.filters`,label:`HQ locations`,description:``,placeholder:X(`location`),groupPath:`config.filters.location`,optionsDef:_(`locations`)}),crunchbase_categories:L({path:`config.filters.crunchbase_categories`,sectionKey:`config.filters`,label:`Crunchbase categories`,placeholder:X(`crunchbase_category`),description:``,groupPath:`config.filters.categories`,optionsDef:_(`company.crunchbase_categories.crustdata`)}),crunchbase_investors:L({path:`config.filters.crunchbase_investors`,sectionKey:`config.filters`,label:`Investors to include (Crunchbase)`,description:``,placeholder:X(`investor`),groupPath:`config.filters.investors`,optionsDef:_(`company.crunchbase_investors.crustdata`)}),tracxn_investors:L({path:`config.filters.tracxn_investors`,sectionKey:`config.filters`,label:`Investors to include (Tracxn)`,description:``,placeholder:X(`investor`),groupPath:`config.filters.investors`,optionsDef:_(`company.tracxn_investors.crustdata`)}),company_types:N({sectionKey:`config.filters`,path:`config.filters.company_types`,optionsDef:{type:`static`,options:h(`crustdata.company_types`)},label:`Company types`,placeholder:`Public, Private, ...`,description:``,groupPath:`config.filters.categories`}),linkedin_industries:L({sectionKey:`config.filters`,path:`config.filters.linkedin_industries`,optionsDef:_(`linkedin_industries.crustdata`),label:`Industries`,description:``,placeholder:X(`industry`),groupPath:`config.filters.industry`}),markets:L({sectionKey:`config.filters`,path:`config.filters.markets`,optionsDef:_(`company.markets.crustdata`),placeholder:`NYSE, TYO, ...`,label:`Markets`,description:``,groupPath:`config.filters.industry`}),linkedin_categories:L({sectionKey:`config.filters`,path:`config.filters.linkedin_categories`,optionsDef:_(`company.linkedin_categories.crustdata`),label:`LinkedIn category`,placeholder:`Marketing, Branding, ...`,description:``,groupPath:`config.filters.categories`}),headcount:N({path:`config.filters.headcount`,sectionKey:`config.filters`,label:`Headcount`,description:``,disableSearch:!0,placeholder:`1-10`,optionsDef:{type:`static`,options:h(`crustdata.company_size`)},groupPath:`config.filters.company_size`}),headcount_growth_l6m_in_percent:F({path:`config.filters.headcount_growth_l6m_in_percent`,sectionKey:`config.filters`,label:`Headcount growth over last 6 months in percent`,description:``,options:h(`crustdata.headcount_growth`),placeholder:`0-10%`,disableSearch:!0,required:!1,groupPath:`config.filters.company_size`}),revenue_in_usd:ua({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:N({path:`config.filters.last_funding_type`,sectionKey:`config.filters`,label:`Last funding type`,placeholder:`Series A`,disableSearch:!0,optionsDef:{type:`static`,options:h(`crustdata.funding_rounds`)},description:``,groupPath:`config.filters.financials`}),last_funding_amount:ua({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:F({path:`config.filters.number_of_followers`,sectionKey:`config.filters`,label:`Number of LinkedIn followers`,placeholder:`1-500`,disableSearch:!0,description:``,required:!1,options:h(`crustdata.company_followers`),groupPath:`config.filters.web_presence`}),follower_growth_l6m_in_percent:F({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:h(`crustdata.follower_growth`),groupPath:`config.filters.web_presence`}),profile_summary_keywords:M({path:`config.filters.profile_summary_keywords`,sectionKey:`config.filters`,maxItems:50,label:`LinkedIn company description contains`,placeholder:X(`company_profile_keyword`),description:``,groupPath:`config.filters.keywords`}),competitor_domains:M({path:`config.filters.competitor_domains`,sectionKey:`config.filters`,maxItems:50,label:`Competitor domain`,description:``,placeholder:X(`company_domain`),groupPath:`config.filters.competitors`,suggestionsDef:_(`company_domains`,{widgets:e=>({logo_url:{url:Xx(e.value)}})})})}).check(e=>{Gx(e.value)&&e.issues.push({code:`custom`,message:`You must set at least one filter.`,input:e.value})})})}),yS={default:{input:[{fields:[]}]}},bS=class extends qx{searchId=fS;schema=vS;payload;constructor(e){super(),this.payload=this.validatePayload(e)}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)}}getConnectionsRequirements(){return[{provider:`crustdata`,rateLimitOperation:`crustdata_company_db_search`,rateLimitRatio:1,allowManagedConnection:!0}]}getDedupConfig(){return yS}},xS=vS,SS={searchId:fS,billableOperation:`companies-profiles-crustdata`,baseSearch:Jx(`companies:profiles:crustdata@2`),label:`Company search`,categories:[`companies`],paginationType:`cursor`,hasManagedConnection:!0,allowsUserConnection:!0,lifecycle:null,description:`Filter based company search.`,tags:[V.COMPANY_PROFILES],docPath:Yx(fS),cost:{mode:`per_page`,creditsPerPage:2},provider:`crustdata`,defaultPayload:{search_id:fS,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:[]}}}}},CS=`companies:profiles:amplemarket@1`,wS=v(`company_name`),TS=v(`company_website_url`),ES=v(`company_description`),DS=v(`company_profile_url`),OS=v(`amplemarket_company_match`),kS=r.object({search_id:r.literal(CS),connector:y.nullable().optional(),config:r.object({limit:R({label:`Limit`,description:`Max number of search results`,path:`config.limit`,min:1,max:100,groupPath:`config.pagination`,required:!0,sectionKey:`pagination`}),page_number:R({path:`config.page_number`,groupPath:`config.pagination`,required:!1,label:`Page number`,min:1,sectionKey:`pagination`,description:``}),output_fields:z(r.object({[wS.name]:P({fieldName:wS.name}),[TS.name]:P({fieldName:TS.name}),[ES.name]:P({fieldName:ES.name}),[DS.name]:P({fieldName:DS.name}),[OS.name]:P({fieldName:OS.name})})),filters:r.object({hq_locations:L({path:`config.filters.hq_locations`,sectionKey:`config.filters`,label:`HQ locations`,description:``,placeholder:X(`location`),groupPath:`config.filters.location`,optionsDef:_(`locations`)}),company_names:M({sectionKey:`config.filters`,path:`config.filters.company_names`,label:`Company names`,description:``,placeholder:X(`company_name`),groupPath:`config.filters.categories`,suggestionsDef:_(`company_names`)}),company_website_urls:M({sectionKey:`config.filters`,path:`config.filters.company_website_urls`,label:`Company domains`,description:``,placeholder:X(`company_domain`),groupPath:`config.filters.categories`,suggestionsDef:_(`company_domains`,{widgets:{emoji:{char:`🌐`}}})}),company_profile_urls:M({sectionKey:`config.filters`,path:`config.filters.company_profile_urls`,label:`Company LinkedIn URLs`,description:``,groupPath:`config.filters.categories`}),company_types:F({sectionKey:`config.filters`,path:`config.filters.company_types`,disableSearch:!1,label:`Company Type`,description:``,groupPath:`config.filters.categories`,options:h(`amplemarket.company_types`),required:!1}),investors:I({sectionKey:`config.filters`,path:`config.filters.investors`,label:`Investor names`,optionsDef:_(`company.crunchbase_investors.crustdata`),description:`A list of company investor names`,placeholder:X(`investor`),groupPath:`config.filters.investors`,disableSearch:!1,required:!1}),company_industries:N({sectionKey:`config.filters`,path:`config.filters.company_industries`,optionsDef:g(`amplemarket.industries`),disableSearch:!1,label:`Industries`,description:``,placeholder:X(`industry`),groupPath:`config.filters.industry`}),customer_types:F({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:M({sectionKey:`config.filters`,path:`config.filters.keywords`,label:`Keywords`,description:``,groupPath:`config.filters.industry`}),revenue_groups:F({path:`config.filters.revenue_groups`,sectionKey:`config.filters`,label:`Revenue groups`,description:``,disableSearch:!0,options:h(`amplemarket.company_revenue`),required:!1,groupPath:`config.filters.financials`}),founded_year:ca({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:j({path:`config.filters.open_positions_titles`,sectionKey:`config.filters`,label:`Job openings for titles`,groupPath:`config.filters.job_openings`,description:``,placeholder:X(`title`),suggestionsDef:_(`titles`)}),headcount:F({sectionKey:`config.filters`,path:`config.filters.company_sizes`,disableSearch:!1,options:h(`amplemarket.company_size`),label:`Headcount groups`,required:!1,description:``,groupPath:`config.filters.company_size`}),headcount_growth_last_6_months_in_percent:ca({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=>{Gx(e.value)&&e.issues.push({code:`custom`,message:`You must set at least one filter.`,input:e.value})})})}),AS={default:{input:[{fields:[]}]}},jS=class extends qx{searchId=CS;schema=kS;payload;constructor(e){super(),this.payload=this.validatePayload(e)}getRawOutputFields(){return{[wS.name]:this.catalogOutput(wS),[TS.name]:this.catalogOutput(TS),[ES.name]:this.catalogOutput(ES),[DS.name]:this.catalogOutput(DS),[OS.name]:this.catalogOutput(OS)}}getConnectionsRequirements(){return[{provider:`amplemarket`,rateLimitOperation:`amplemarket_company_search`,rateLimitRatio:1,allowManagedConnection:!0}]}getDedupConfig(){return AS}},MS=kS,NS={searchId:CS,billableOperation:`companies-profiles-amplemarket`,baseSearch:Jx(`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:[V.COMPANY_PROFILES],docPath:Yx(CS),cost:{mode:`per_page`,creditsPerPage:2},provider:`amplemarket`,defaultPayload:{search_id:CS,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`,FS=v(`company_name`),IS=v(`company_website_url`),LS=v(`company_description`),RS=v(`company_profile_url`),zS=v(`crustdata_company_match`),BS=r.object({search_id:r.literal(PS),connector:y.nullable().optional(),config:r.object({limit:R({path:`config.limit`,min:1,max:100,groupPath:`config.pagination`,required:!0,sectionKey:`pagination`,label:`Limit`,description:`Max number of search results`}),cursor:ma({path:`config.cursor`,groupPath:`config.pagination`,inputType:`text`,label:`Cursor`,sectionKey:`pagination`,description:`Pagination cursor`}),output_fields:z(r.object({[FS.name]:P({fieldName:FS.name}),[IS.name]:P({fieldName:FS.name}),[LS.name]:P({fieldName:LS.name}),[RS.name]:P({fieldName:RS.name}),[zS.name]:P({fieldName:zS.name})})),filters:r.object({hq_locations:L({path:`config.filters.hq_locations`,sectionKey:`config.filters`,label:`HQ locations`,description:``,placeholder:X(`location`),groupPath:`config.filters.location`,optionsDef:_(`locations`)}),crunchbase_categories:L({path:`config.filters.crunchbase_categories`,sectionKey:`config.filters`,label:`Crunchbase categories`,placeholder:X(`crunchbase_category`),description:``,groupPath:`config.filters.categories`,optionsDef:_(`company.crunchbase_categories.crustdata`)}),crunchbase_investors:L({path:`config.filters.crunchbase_investors`,sectionKey:`config.filters`,label:`Investors to include (Crunchbase)`,description:``,placeholder:X(`investor`),groupPath:`config.filters.investors`,optionsDef:_(`company.crunchbase_investors.crustdata`)}),tracxn_investors:L({path:`config.filters.tracxn_investors`,sectionKey:`config.filters`,label:`Investors to include (Tracxn)`,description:``,placeholder:X(`investor`),groupPath:`config.filters.investors`,optionsDef:_(`company.tracxn_investors.crustdata`)}),company_types:N({sectionKey:`config.filters`,path:`config.filters.company_types`,optionsDef:{type:`static`,options:h(`crustdata.company_types`)},label:`Company types`,placeholder:`Public, Private, ...`,description:``,groupPath:`config.filters.categories`}),linkedin_industries:L({sectionKey:`config.filters`,path:`config.filters.linkedin_industries`,optionsDef:_(`linkedin_industries.crustdata`),label:`Industries`,description:``,placeholder:X(`industry`),groupPath:`config.filters.industry`}),markets:L({sectionKey:`config.filters`,path:`config.filters.markets`,optionsDef:_(`company.markets.crustdata`),placeholder:`NYSE, TYO, ...`,label:`Markets`,description:``,groupPath:`config.filters.industry`}),linkedin_categories:L({sectionKey:`config.filters`,path:`config.filters.linkedin_categories`,optionsDef:_(`company.linkedin_categories.crustdata`),label:`LinkedIn category`,placeholder:`Marketing, Branding, ...`,description:``,groupPath:`config.filters.categories`}),headcount:N({path:`config.filters.headcount`,sectionKey:`config.filters`,label:`Headcount`,description:``,disableSearch:!0,placeholder:`1-10`,optionsDef:{type:`static`,options:h(`crustdata.company_size`)},groupPath:`config.filters.company_size`}),headcount_growth_last_6m_in_percent:F({path:`config.filters.headcount_growth_last_6m_in_percent`,sectionKey:`config.filters`,label:`Headcount growth over last 6 months in percent`,description:``,options:h(`crustdata.headcount_growth`),placeholder:`0-10%`,disableSearch:!0,required:!1,groupPath:`config.filters.company_size`}),revenue_in_usd:ua({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:N({path:`config.filters.last_funding_type`,sectionKey:`config.filters`,label:`Last funding type`,placeholder:`Series A`,disableSearch:!0,optionsDef:{type:`static`,options:h(`crustdata.funding_rounds`)},description:``,groupPath:`config.filters.financials`}),last_funding_amount:ua({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:F({path:`config.filters.number_of_followers`,sectionKey:`config.filters`,label:`Number of LinkedIn followers`,placeholder:`1-500`,disableSearch:!0,description:``,required:!1,options:h(`crustdata.company_followers`),groupPath:`config.filters.web_presence`}),follower_growth_last_6m_in_percent:F({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:h(`crustdata.follower_growth`),groupPath:`config.filters.web_presence`}),profile_summary_keywords:M({path:`config.filters.profile_summary_keywords`,sectionKey:`config.filters`,maxItems:50,label:`LinkedIn company description contains`,placeholder:X(`company_profile_keyword`),description:``,groupPath:`config.filters.keywords`}),competitor_websites:M({path:`config.filters.competitor_websites`,sectionKey:`config.filters`,maxItems:50,label:`Competitor domains`,description:``,placeholder:X(`company_domain`),groupPath:`config.filters.competitors`,suggestionsDef:_(`company_domains`,{widgets:{emoji:{char:`🌐`}}})})}).check(e=>{Gx(e.value)&&e.issues.push({code:`custom`,message:`You must set at least one filter.`,input:e.value})})})}),VS={default:{input:[{fields:[]}]}},HS=class extends qx{searchId=PS;schema=BS;payload;constructor(e){super(),this.payload=this.validatePayload(e)}getRawOutputFields(){return{[FS.name]:this.catalogOutput(FS),[IS.name]:this.catalogOutput(IS),[LS.name]:this.catalogOutput(LS),[RS.name]:this.catalogOutput(RS),[zS.name]:this.catalogOutput(zS)}}getConnectionsRequirements(){return[{provider:`crustdata`,rateLimitOperation:`crustdata_company_db_search`,rateLimitRatio:1,allowManagedConnection:!0}]}getDedupConfig(){return VS}},US=BS,WS={searchId:PS,billableOperation:`companies-profiles-crustdata`,baseSearch:Jx(`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:[V.COMPANY_PROFILES],docPath:Yx(PS),cost:{mode:`per_page`,creditsPerPage: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:[]}}}}},GS=`people:profiles:amplemarket@1`,KS=v(`name`),qS=v(`company_website_url`),JS=v(`profile_url`),YS=v(`job_title`),XS=v(`amplemarket_person_match`),ZS=r.object({search_id:r.literal(GS),connector:y.nullable().optional(),config:r.object({limit:R({path:`config.limit`,min:1,max:100,groupPath:`config.pagination`,required:!0,label:`Limit`,sectionKey:`pagination`,description:`Max number of search results`}),page_number:R({path:`config.page_number`,groupPath:`config.pagination`,required:!1,label:`Page number`,min:1,sectionKey:`pagination`,description:``}),output_fields:z(r.object({[KS.name]:P({fieldName:KS.name}),[qS.name]:P({fieldName:qS.name}),[JS.name]:P({fieldName:JS.name}),[YS.name]:P({fieldName:YS.name}),[XS.name]:P({fieldName:XS.name})})),filters:r.object({person_names:j({label:`Full name`,path:`config.filters.person_names`,sectionKey:`config.filters`,groupPath:`config.filters.general`}),current_locations:L({path:`config.filters.current_locations`,sectionKey:`config.filters`,label:`Location`,optionsDef:_(`locations`),groupPath:`config.filters.general`}),current_job_titles:j({path:`config.filters.current_job_titles`,sectionKey:`config.filters`,label:`Title`,placeholder:X(`title`),description:``,order:1,groupPath:`config.filters.current_employer`,suggestionsDef:_(`titles`)}),current_seniority_levels:F({path:`config.filters.current_seniority_levels`,sectionKey:`config.filters`,placeholder:X(`seniority`),label:`Seniority`,required:!1,disableSearch:!1,options:h(`amplemarket.seniority_levels`),description:``,groupPath:`config.filters.current_employer`}),current_departments:F({path:`config.filters.current_departments`,sectionKey:`config.filters`,label:`Department`,placeholder:X(`department`),disableSearch:!1,required:!1,options:h(`amplemarket.departments`),description:``,groupPath:`config.filters.current_employer`}),current_job_functions:F({path:`config.filters.current_job_functions`,sectionKey:`config.filters`,label:`Job function`,placeholder:X(`job_function`),disableSearch:!1,required:!1,options:h(`amplemarket.job_functions`),description:``,groupPath:`config.filters.current_employer`}),current_employer_locations:L({path:`config.filters.current_employer_locations`,sectionKey:`config.filters`,label:`Headquarters`,optionsDef:_(`locations`),groupPath:`config.filters.current_company`,placeholder:X(`location`)}),current_employer_names:M({path:`config.filters.current_employer_names`,sectionKey:`config.filters`,label:`Company name`,groupPath:`config.filters.current_company`,description:``,placeholder:X(`company_name`),suggestionsDef:_(`company_names`)}),current_employer_website_urls:M({path:`config.filters.current_employer_website_urls`,sectionKey:`config.filters`,label:`Company domain`,description:``,maxItems:200,placeholder:X(`company_domain`),groupPath:`config.filters.current_company`,suggestionsDef:_(`company_domains`,{widgets:{emoji:{char:`🌐`}}})}),current_employer_linkedin_industries:F({path:`config.filters.current_employer_linkedin_industries`,sectionKey:`config.filters`,label:`Industry`,disableSearch:!1,groupPath:`config.filters.current_company`,description:``,placeholder:X(`industry`),required:!1,options:h(`linkedin.industries`)}),current_employer_estimated_revenue:F({path:`config.filters.current_employer_estimated_revenue`,sectionKey:`config.filters`,label:`Estimated revenue`,disableSearch:!1,required:!1,groupPath:`config.filters.current_company`,description:``,options:h(`amplemarket.company_revenue`)}),current_employer_founded_year:ca({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:j({path:`config.filters.current_employer_investors`,sectionKey:`config.filters`,label:`Employer investors`,groupPath:`config.filters.current_company`,placeholder:X(`investor`),description:``}),current_employer_open_positions_titles:j({path:`config.filters.current_employer_open_positions_titles`,sectionKey:`config.filters`,label:`Open positions`,groupPath:`config.filters.current_company`,description:``,placeholder:X(`title`),suggestionsDef:_(`titles`)}),school_names:L({path:`config.filters.school_names`,sectionKey:`config.filters`,label:`School names`,description:``,placeholder:X(`school`),groupPath:`config.filters.education`,optionsDef:_(`schools`)})}).check(e=>{Gx(e.value)&&e.issues.push({code:`custom`,message:`You must set at least one filter.`,input:e.value})})})}),QS={default:{input:[{fields:[]}]}},$S=class extends qx{searchId=GS;schema=ZS;payload;constructor(e){super(),this.payload=this.validatePayload(e)}getRawOutputFields(){return{[KS.name]:this.catalogOutput(KS),[qS.name]:this.catalogOutput(qS),[JS.name]:this.catalogOutput(JS),[YS.name]:this.catalogOutput(YS),[XS.name]:this.catalogOutput(XS)}}getConnectionsRequirements(){return[{provider:`amplemarket`,rateLimitOperation:`amplemarket_people_search`,rateLimitRatio:1,allowManagedConnection:!0}]}getDedupConfig(){return QS}},eC=ZS,tC={searchId:GS,billableOperation:`people-profiles-amplemarket`,baseSearch:Jx(`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:[V.PEOPLE_PROFILES],docPath:Yx(GS),cost:{mode:`per_page`,creditsPerPage:3,info:`1 page = 100 records; 200 results = 2 pages`},provider:`amplemarket`,defaultPayload:{search_id:GS,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:[]}}}},nC=`people:profiles:crustdata@1`,rC=v(`name`),iC=v(`company_website_url`),aC=v(`profile_url`),oC=v(`job_title`),sC=v(`crustdata_person_match`),cC=r.object({search_id:r.literal(nC),connector:y.nullable().optional(),config:r.object({limit:R({path:`config.limit`,min:1,max:100,groupPath:`config.pagination`,required:!0,sectionKey:`pagination`,label:`Limit`,description:`Max number of search results`}),cursor:ma({path:`config.cursor`,groupPath:`config.pagination`,inputType:`text`,label:`Cursor`,sectionKey:`pagination`,description:`Pagination cursor`}),output_fields:z(r.object({[rC.name]:P({fieldName:rC.name}),[iC.name]:P({fieldName:iC.name}),[aC.name]:P({fieldName:aC.name}),[oC.name]:P({fieldName:oC.name}),[sC.name]:P({fieldName:sC.name})})),filters:r.object({locations:L({path:`config.filters.locations`,sectionKey:`config.filters`,label:`Location`,placeholder:X(`location`),optionsDef:_(`locations`),groupPath:`config.filters.general`}),current_job_titles:M({path:`config.filters.current_job_titles`,sectionKey:`config.filters`,label:`Title`,description:``,placeholder:X(`title`),order:1,groupPath:`config.filters.current_employer`,suggestionsDef:_(`titles`)}),current_employers:M({path:`config.filters.current_employers`,sectionKey:`config.filters`,label:`Company name`,description:``,placeholder:X(`company_name`),maxItems:200,groupPath:`config.filters.current_employer`,suggestionsDef:_(`company_names`,{widgets:{emoji:{char:`🏷️`}}})}),current_employers_website_urls:M({path:`config.filters.current_employers_website_urls`,sectionKey:`config.filters`,label:`Company domain`,placeholder:X(`company_domain`),description:``,maxItems:200,groupPath:`config.filters.current_employer`,suggestionsDef:_(`company_domains`,{widgets:{emoji:{char:`🌐`}}})}),current_employers_linkedin_industries:L({path:`config.filters.current_employers_linkedin_industries`,sectionKey:`config.filters`,label:`Industry`,groupPath:`config.filters.current_employer`,placeholder:X(`industry`),description:``,optionsDef:_(`linkedin_industries.crustdata`,{limit:300})}),years_at_current_company:F({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:h(`crustdata.years_of_experience`)}),previous_employers_website_urls:M({path:`config.filters.previous_employers_website_urls`,sectionKey:`config.filters`,label:`Previous employer domain`,description:``,placeholder:X(`company_domain`),maxItems:200,groupPath:`config.filters.experience`,suggestionsDef:_(`company_domains`,{widgets:{emoji:{char:`🌐`}}})}),previous_seniority_levels:N({path:`config.filters.previous_seniority_levels`,sectionKey:`config.filters`,label:`Previous seniority`,placeholder:X(`seniority`),disableSearch:!0,optionsDef:g(`crustdata.person_seniority`),description:``,groupPath:`config.filters.experience`}),previous_employers:M({path:`config.filters.previous_employers`,sectionKey:`config.filters`,label:`Previous employer`,description:``,placeholder:X(`company_name`),maxItems:200,groupPath:`config.filters.experience`,suggestionsDef:_(`company_names`,{widgets:{emoji:{char:`🏷️`}}})}),previous_job_titles:M({path:`config.filters.previous_job_titles`,sectionKey:`config.filters`,label:`Previous title`,description:``,placeholder:X(`title`),groupPath:`config.filters.experience`,suggestionsDef:_(`titles`)}),previous_employers_linkedin_industries:L({path:`config.filters.previous_employers_linkedin_industries`,sectionKey:`config.filters`,label:`Previous employer industries`,placeholder:X(`industry`),groupPath:`config.filters.experience`,description:``,optionsDef:_(`linkedin_industries.crustdata`,{limit:300})}),profile_headline_keywords:M({path:`config.filters.profile_headline_keywords`,sectionKey:`config.filters`,label:`Headline contains keywords`,maxItems:100,groupPath:`config.filters.keywords`,placeholder:X(`headline_keywords`)}),profile_summary_keywords:M({path:`config.filters.profile_summary_keywords`,sectionKey:`config.filters`,label:`Profile about section contains keywords`,maxItems:100,groupPath:`config.filters.keywords`,placeholder:X(`profile_keywords`)}),profile_languages:N({path:`config.filters.profile_languages`,sectionKey:`config.filters`,label:`Profile language`,placeholder:X(`languages`),optionsDef:g(`crustdata.person_profile_languages`),groupPath:`config.filters.general`}),languages:N({path:`config.filters.languages`,sectionKey:`config.filters`,label:`Spoken language`,placeholder:X(`languages_1`),optionsDef:g(`crustdata.person_profile_languages`),groupPath:`config.filters.general`}),skills:L({path:`config.filters.skills`,sectionKey:`config.filters`,label:`Skills`,description:``,placeholder:X(`skills`),groupPath:`config.filters.skills`,optionsDef:_(`skills`)}),years_of_experience:F({path:`config.filters.years_of_experience`,sectionKey:`config.filters`,label:`Years of experience`,placeholder:`1 to 2 years`,disableSearch:!0,description:``,required:!1,options:h(`crustdata.years_of_experience`),groupPath:`config.filters.experience`}),current_seniority_levels:N({path:`config.filters.current_seniority_levels`,sectionKey:`config.filters`,disableSearch:!0,label:`Seniority`,placeholder:X(`seniority`),optionsDef:g(`crustdata.person_seniority`),description:``,groupPath:`config.filters.experience`}),certifications:M({path:`config.filters.certifications`,sectionKey:`config.filters`,label:`Certifications`,groupPath:`config.filters.certifications_honors`,placeholder:X(`certification`),description:``}),honors:M({path:`config.filters.honors`,sectionKey:`config.filters`,label:`Honors`,groupPath:`config.filters.certifications_honors`,placeholder:X(`honor`),description:``}),recently_changed_jobs:pa({path:`config.filters.recently_changed_jobs`,sectionKey:`config.filters`,label:`Recently changed jobs`,description:``,defaultValue:null,groupPath:`config.filters.activities`}),fields_of_study:L({path:`config.filters.fields_of_study`,sectionKey:`config.filters`,label:`Fields of study`,placeholder:X(`field_of_study`),description:``,groupPath:`config.filters.education`,optionsDef:_(`person.education_field_of_study.crustdata`)}),degree_names:L({path:`config.filters.degree_names`,sectionKey:`config.filters`,label:`Degree names`,placeholder:X(`degree_name`),description:``,groupPath:`config.filters.education`,optionsDef:_(`person.education_degree.crustdata`)}),school_names:L({path:`config.filters.school_names`,sectionKey:`config.filters`,label:`School names`,description:``,placeholder:X(`school`),groupPath:`config.filters.education`,optionsDef:_(`schools`)}),current_school_names:L({path:`config.filters.current_school_names`,sectionKey:`config.filters`,label:`Currently enrolled at`,description:``,placeholder:X(`school`),groupPath:`config.filters.education`,optionsDef:_(`schools`)}),extracurricular_activities:M({path:`config.filters.extracurricular_activities`,sectionKey:`config.filters`,label:`Extracurricular activities`,description:``,placeholder:X(`extracurricular`),groupPath:`config.filters.education`,suggestionsDef:_(`person.education_activities.crustdata`)})}).check(e=>{Gx(e.value)&&e.issues.push({code:`custom`,message:`You must set at least one filter.`,input:e.value})})})}),lC={default:{input:[{fields:[]}]}},uC=class extends qx{searchId=nC;schema=cC;payload;constructor(e){super(),this.payload=this.validatePayload(e)}getRawOutputFields(){return{[rC.name]:this.catalogOutput(rC),[iC.name]:this.catalogOutput(iC),[aC.name]:this.catalogOutput(aC),[oC.name]:this.catalogOutput(oC),[sC.name]:this.catalogOutput(sC)}}getConnectionsRequirements(){return[{provider:`crustdata`,rateLimitOperation:`crustdata_people_db_search`,rateLimitRatio:1,allowManagedConnection:!0}]}getDedupConfig(){return lC}},dC=cC,fC={searchId:nC,billableOperation:`people-profiles-crustdata`,baseSearch:Jx(`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:[V.PEOPLE_PROFILES],docPath:Yx(nC),cost:{mode:`per_page`,creditsPerPage:5,info:`1 page = 100 records; 200 results = 2 pages`},provider:`crustdata`,defaultPayload:{search_id:nC,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:[]}}}}},pC=`people:profiles:amplemarket@2`,mC=v(`name`),hC=v(`company_domain`),gC=v(`profile_url`),_C=v(`job_title`),vC=v(`amplemarket_person_match`),yC=r.object({search_id:r.literal(pC),connector:y.nullable().optional(),config:r.object({limit:R({path:`config.limit`,min:1,max:100,groupPath:`config.pagination`,required:!0,label:`Limit`,sectionKey:`pagination`,description:`Max number of search results`}),page_number:R({path:`config.page_number`,groupPath:`config.pagination`,required:!1,label:`Page number`,min:1,sectionKey:`pagination`,description:``}),output_fields:z(r.object({[mC.name]:P({fieldName:mC.name}),[hC.name]:P({fieldName:hC.name}),[gC.name]:P({fieldName:gC.name}),[_C.name]:P({fieldName:_C.name}),[vC.name]:P({fieldName:vC.name})})),filters:r.object({person_names:j({label:`Full name`,path:`config.filters.person_names`,sectionKey:`config.filters`,groupPath:`config.filters.general`}),current_locations:L({path:`config.filters.current_locations`,sectionKey:`config.filters`,label:`Location`,optionsDef:_(`locations`),groupPath:`config.filters.general`}),current_job_titles:j({path:`config.filters.current_job_titles`,sectionKey:`config.filters`,label:`Title`,placeholder:X(`title`),description:``,order:1,groupPath:`config.filters.current_employer`,suggestionsDef:_(`titles`)}),current_seniority_levels:F({path:`config.filters.current_seniority_levels`,sectionKey:`config.filters`,placeholder:X(`seniority`),label:`Seniority`,required:!1,disableSearch:!1,options:h(`amplemarket.seniority_levels`),description:``,groupPath:`config.filters.current_employer`}),current_departments:F({path:`config.filters.current_departments`,sectionKey:`config.filters`,label:`Department`,placeholder:X(`department`),disableSearch:!1,required:!1,options:h(`amplemarket.departments`),description:``,groupPath:`config.filters.current_employer`}),current_job_functions:F({path:`config.filters.current_job_functions`,sectionKey:`config.filters`,label:`Job function`,placeholder:X(`job_function`),disableSearch:!1,required:!1,options:h(`amplemarket.job_functions`),description:``,groupPath:`config.filters.current_employer`}),current_employer_locations:L({path:`config.filters.current_employer_locations`,sectionKey:`config.filters`,label:`Headquarters`,optionsDef:_(`locations`),groupPath:`config.filters.current_company`,placeholder:X(`location`)}),current_employer_names:M({path:`config.filters.current_employer_names`,sectionKey:`config.filters`,label:`Company name`,groupPath:`config.filters.current_company`,description:``,placeholder:X(`company_name`),suggestionsDef:_(`company_names`)}),current_employer_domains:M({path:`config.filters.current_employer_domains`,sectionKey:`config.filters`,label:`Company domain`,description:``,maxItems:200,placeholder:X(`company_domain`),groupPath:`config.filters.current_company`,suggestionsDef:_(`company_domains`,{widgets:e=>({logo_url:{url:Xx(e.value)}})})}),current_employer_linkedin_industries:F({path:`config.filters.current_employer_linkedin_industries`,sectionKey:`config.filters`,label:`Industry`,disableSearch:!1,groupPath:`config.filters.current_company`,description:``,placeholder:X(`industry`),required:!1,options:h(`linkedin.industries`)}),current_employer_estimated_revenue:F({path:`config.filters.current_employer_estimated_revenue`,sectionKey:`config.filters`,label:`Estimated revenue`,disableSearch:!1,required:!1,groupPath:`config.filters.current_company`,description:``,options:h(`amplemarket.company_revenue`)}),current_employer_founded_year:ca({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:j({path:`config.filters.current_employer_investors`,sectionKey:`config.filters`,label:`Employer investors`,groupPath:`config.filters.current_company`,placeholder:X(`investor`),description:``}),current_employer_open_position_titles:j({path:`config.filters.current_employer_open_position_titles`,sectionKey:`config.filters`,label:`Open positions`,groupPath:`config.filters.current_company`,description:``,placeholder:X(`title`),suggestionsDef:_(`titles`)}),school_names:L({path:`config.filters.school_names`,sectionKey:`config.filters`,label:`School names`,description:``,placeholder:X(`school`),groupPath:`config.filters.education`,optionsDef:_(`schools`)})}).check(e=>{Gx(e.value)&&e.issues.push({code:`custom`,message:`You must set at least one filter.`,input:e.value})})})}),bC={default:{input:[{fields:[]}]}},xC=class extends qx{searchId=pC;schema=yC;payload;constructor(e){super(),this.payload=this.validatePayload(e)}getRawOutputFields(){return{[mC.name]:this.catalogOutput(mC),[hC.name]:this.catalogOutput(hC),[gC.name]:this.catalogOutput(gC),[_C.name]:this.catalogOutput(_C),[vC.name]:this.catalogOutput(vC)}}getConnectionsRequirements(){return[{provider:`amplemarket`,rateLimitOperation:`amplemarket_people_search`,rateLimitRatio:1,allowManagedConnection:!0}]}getDedupConfig(){return bC}},SC=yC,CC={searchId:pC,billableOperation:`people-profiles-amplemarket`,baseSearch:Jx(`people:profiles:amplemarket@2`),paginationType:`page_number`,label:`People search`,categories:[`people`],hasManagedConnection:!0,allowsUserConnection:!0,lifecycle:null,description:`Filter-based people search.`,tags:[V.PEOPLE_PROFILES],docPath:Yx(pC),cost:{mode:`per_page`,creditsPerPage:3,info:`1 page = 100 records; 200 results = 2 pages`},provider:`amplemarket`,defaultPayload:{search_id:pC,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:[]}}}},wC=`people:profiles:crustdata@2`,TC=v(`name`),EC=v(`company_domain`),DC=v(`profile_url`),OC=v(`job_title`),kC=v(`crustdata_person_match`),AC=r.object({search_id:r.literal(wC),connector:y.nullable().optional(),config:r.object({limit:R({path:`config.limit`,min:1,max:100,groupPath:`config.pagination`,required:!0,sectionKey:`pagination`,label:`Limit`,description:`Max number of search results`}),cursor:ma({path:`config.cursor`,groupPath:`config.pagination`,inputType:`text`,label:`Cursor`,sectionKey:`pagination`,description:`Pagination cursor`}),output_fields:z(r.object({[TC.name]:P({fieldName:TC.name}),[EC.name]:P({fieldName:EC.name}),[DC.name]:P({fieldName:DC.name}),[OC.name]:P({fieldName:OC.name}),[kC.name]:P({fieldName:kC.name})})),filters:r.object({locations:L({path:`config.filters.locations`,sectionKey:`config.filters`,label:`Location`,placeholder:X(`location`),optionsDef:_(`locations`),groupPath:`config.filters.general`}),current_job_titles:M({path:`config.filters.current_job_titles`,sectionKey:`config.filters`,label:`Title`,description:``,placeholder:X(`title`),order:1,groupPath:`config.filters.current_employer`,suggestionsDef:_(`titles`)}),current_employer_names:M({path:`config.filters.current_employer_names`,sectionKey:`config.filters`,label:`Company name`,description:``,placeholder:X(`company_name`),maxItems:200,groupPath:`config.filters.current_employer`,suggestionsDef:_(`company_names`,{widgets:{emoji:{char:`🏷️`}}})}),current_employer_domains:M({path:`config.filters.current_employer_domains`,sectionKey:`config.filters`,label:`Company domain`,placeholder:X(`company_domain`),description:``,maxItems:200,groupPath:`config.filters.current_employer`,suggestionsDef:_(`company_domains`,{widgets:e=>({logo_url:{url:Xx(e.value)}})})}),current_employer_industries:L({path:`config.filters.current_employer_industries`,sectionKey:`config.filters`,label:`Industry`,groupPath:`config.filters.current_employer`,placeholder:X(`industry`),description:``,optionsDef:_(`linkedin_industries.crustdata`,{limit:300})}),years_at_current_company:F({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:h(`crustdata.years_of_experience`)}),previous_employer_domains:M({path:`config.filters.previous_employer_domains`,sectionKey:`config.filters`,label:`Previous employer domain`,description:``,placeholder:X(`company_domain`),maxItems:200,groupPath:`config.filters.experience`,suggestionsDef:_(`company_domains`,{widgets:e=>({logo_url:{url:Xx(e.value)}})})}),previous_seniority_levels:N({path:`config.filters.previous_seniority_levels`,sectionKey:`config.filters`,label:`Previous seniority`,placeholder:X(`seniority`),disableSearch:!0,optionsDef:g(`crustdata.person_seniority`),description:``,groupPath:`config.filters.experience`}),previous_employer_names:M({path:`config.filters.previous_employer_names`,sectionKey:`config.filters`,label:`Previous employer`,description:``,placeholder:X(`company_name`),maxItems:200,groupPath:`config.filters.experience`,suggestionsDef:_(`company_names`,{widgets:{emoji:{char:`🏷️`}}})}),previous_job_titles:M({path:`config.filters.previous_job_titles`,sectionKey:`config.filters`,label:`Previous title`,description:``,placeholder:X(`title`),groupPath:`config.filters.experience`,suggestionsDef:_(`titles`)}),previous_employer_industries:L({path:`config.filters.previous_employer_industries`,sectionKey:`config.filters`,label:`Previous employer industries`,placeholder:X(`industry`),groupPath:`config.filters.experience`,description:``,optionsDef:_(`linkedin_industries.crustdata`,{limit:300})}),profile_headline_keywords:M({path:`config.filters.profile_headline_keywords`,sectionKey:`config.filters`,label:`Headline contains keywords`,maxItems:100,groupPath:`config.filters.keywords`,placeholder:X(`headline_keywords`)}),profile_summary_keywords:M({path:`config.filters.profile_summary_keywords`,sectionKey:`config.filters`,label:`Profile about section contains keywords`,maxItems:100,groupPath:`config.filters.keywords`,placeholder:X(`profile_keywords`)}),profile_languages:N({path:`config.filters.profile_languages`,sectionKey:`config.filters`,label:`Profile language`,placeholder:X(`languages`),optionsDef:g(`crustdata.person_profile_languages`),groupPath:`config.filters.general`}),languages:N({path:`config.filters.languages`,sectionKey:`config.filters`,label:`Spoken language`,placeholder:X(`languages_1`),optionsDef:g(`crustdata.person_profile_languages`),groupPath:`config.filters.general`}),skills:L({path:`config.filters.skills`,sectionKey:`config.filters`,label:`Skills`,description:``,placeholder:X(`skills`),groupPath:`config.filters.skills`,optionsDef:_(`skills`)}),years_of_experience:F({path:`config.filters.years_of_experience`,sectionKey:`config.filters`,label:`Years of experience`,placeholder:`1 to 2 years`,disableSearch:!0,description:``,required:!1,options:h(`crustdata.years_of_experience`),groupPath:`config.filters.experience`}),current_seniority_levels:N({path:`config.filters.current_seniority_levels`,sectionKey:`config.filters`,disableSearch:!0,label:`Seniority`,placeholder:X(`seniority`),optionsDef:g(`crustdata.person_seniority`),description:``,groupPath:`config.filters.experience`}),certifications:M({path:`config.filters.certifications`,sectionKey:`config.filters`,label:`Certifications`,groupPath:`config.filters.certifications_honors`,placeholder:X(`certification`),description:``}),honors:M({path:`config.filters.honors`,sectionKey:`config.filters`,label:`Honors`,groupPath:`config.filters.certifications_honors`,placeholder:X(`honor`),description:``}),recently_changed_jobs:pa({path:`config.filters.recently_changed_jobs`,sectionKey:`config.filters`,label:`Recently changed jobs`,description:``,defaultValue:null,groupPath:`config.filters.activities`}),fields_of_study:L({path:`config.filters.fields_of_study`,sectionKey:`config.filters`,label:`Fields of study`,placeholder:X(`field_of_study`),description:``,groupPath:`config.filters.education`,optionsDef:_(`person.education_field_of_study.crustdata`)}),degree_names:L({path:`config.filters.degree_names`,sectionKey:`config.filters`,label:`Degree names`,placeholder:X(`degree_name`),description:``,groupPath:`config.filters.education`,optionsDef:_(`person.education_degree.crustdata`)}),school_names:L({path:`config.filters.school_names`,sectionKey:`config.filters`,label:`School names`,description:``,placeholder:X(`school`),groupPath:`config.filters.education`,optionsDef:_(`schools`)}),current_school_names:L({path:`config.filters.current_school_names`,sectionKey:`config.filters`,label:`Currently enrolled at`,description:``,placeholder:X(`school`),groupPath:`config.filters.education`,optionsDef:_(`schools`)}),extracurricular_activities:M({path:`config.filters.extracurricular_activities`,sectionKey:`config.filters`,label:`Extracurricular activities`,description:``,placeholder:X(`extracurricular`),groupPath:`config.filters.education`,suggestionsDef:_(`person.education_activities.crustdata`)})}).check(e=>{Gx(e.value)&&e.issues.push({code:`custom`,message:`You must set at least one filter.`,input:e.value})})})}),jC={default:{input:[{fields:[]}]}},MC=class extends qx{searchId=wC;schema=AC;payload;constructor(e){super(),this.payload=this.validatePayload(e)}getRawOutputFields(){return{[TC.name]:this.catalogOutput(TC),[EC.name]:this.catalogOutput(EC),[DC.name]:this.catalogOutput(DC),[OC.name]:this.catalogOutput(OC),[kC.name]:this.catalogOutput(kC)}}getConnectionsRequirements(){return[{provider:`crustdata`,rateLimitOperation:`crustdata_people_db_search`,rateLimitRatio:1,allowManagedConnection:!0}]}getDedupConfig(){return jC}},NC=AC,PC={searchId:wC,billableOperation:`people-profiles-crustdata`,baseSearch:Jx(`people:profiles:crustdata@2`),paginationType:`cursor`,label:`People search`,categories:[`people`],hasManagedConnection:!0,allowsUserConnection:!0,lifecycle:null,description:`Filter-based people search.`,tags:[V.PEOPLE_PROFILES],docPath:Yx(wC),cost:{mode:`per_page`,creditsPerPage:5,info:`1 page = 100 records; 200 results = 2 pages`},provider:`crustdata`,defaultPayload:{search_id:wC,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:[]}}}}},FC={"people:profiles:crustdata@1":uC,"people:profiles:crustdata@2":MC,"companies:profiles:crustdata@1":HS,"companies:profiles:crustdata@2":bS,"people:profiles:amplemarket@1":$S,"people:profiles:amplemarket@2":xC,"companies:profiles:amplemarket@1":jS,"companies:profiles:amplemarket@2":lS},IC={"people:profiles:crustdata@1":dC,"people:profiles:crustdata@2":NC,"companies:profiles:crustdata@1":US,"companies:profiles:crustdata@2":xS,"people:profiles:amplemarket@1":eC,"people:profiles:amplemarket@2":SC,"companies:profiles:amplemarket@1":MS,"companies:profiles:amplemarket@2":uS},LC={"people:profiles:crustdata@1":fC,"people:profiles:crustdata@2":PC,"companies:profiles:crustdata@1":WS,"companies:profiles:crustdata@2":SS,"people:profiles:amplemarket@1":tC,"people:profiles:amplemarket@2":CC,"companies:profiles:amplemarket@1":NS,"companies:profiles:amplemarket@2":dS};function RC(e){return FC[e]}const zC=t.discriminatedUnion(`search_id`,Object.values(IC).map(e=>e)).openapi(`SearchPayloadSchema`);function BC(e,t){return va(t,LC[e].defaultPayload)}const VC=t.preprocess(e=>{if(!e||typeof e!=`object`||!(`search_id`in e))return e;let t=BC(e.search_id);return t?{...e,config:va(e?.config||{},t.config)}:e},zC),HC=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:VC}).openapi(`SearchRequestSchema`),UC=Fn,WC=t.object({value:Sn,status:xn,type:yn.optional(),format:Rn.nullable().optional(),resolved_by:Wn.nullable().optional(),widgets:Pn.optional()}),GC=t.record(t.string(),WC.nullable());function KC(e){return IC[e]}const qC=t.enum([`cursor`,`page_number`]),JC=t.object({id:t.string(),status:t.enum([`completed`,`failed`,`pending`,`processing`]),search_id:Wx,errors:t.array(UC),results:t.array(GC),organization_id:t.string(),next_page:VC.nullable(),pagination_type:qC.nullable(),total_pages:t.int32().nullable()}).openapi(`SearchResponseSchema`);function YC(e){let t=e.split(`@`)[1];if(!t)throw Error(`No search version found`);return Number(t)}function XC(){let e={};for(let t of Object.values(LC)){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=YC(e.searchId);return YC(t.searchId)-n})}),e}function ZC(e){return LC[e]}const QC=XC();function $C(e){let t=[];for(let[n,r]of Object.entries(QC)){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:YC(i.searchId)})}return t}function ew(e){return Object.keys(LC[e].defaultPayload.config.output_fields)}function tw(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 ew(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:QC}}function nw(e){let t=ZC(e);return{[t.provider]:t.cost.mode===`per_result`?t.cost.creditsPerResult:t.cost.mode===`per_search`?t.cost.creditsPerSearch:t.cost.creditsPerPage}}const rw={"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}},iw={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.`},"config.output_fields":{type:`form_section`,path:`config.output_fields`,label:`Outputs`,description:`Pick and rename the fields the search returns.`},"config.input_fields":{type:`form_section`,path:`config.input_fields`,label:`Inputs`},"config.pipe_io":{type:`form_section`,path:`config.pipe_io`,label:`I/O`},"config.extractions":{type:`form_section`,path:`config.json_extraction`,label:`Extractions`},conditions:{type:`form_section`,path:`run_if`,label:`Conditions`},connector:{type:`form_section`,path:`connector`,label:`Connector`}},aw={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 ow({searchPayload:e,sectionOrder:t=aw,formContext:n,groupPathMatch:r=rw,formResolvers:i}){return Ii({schema:KC(e.search_id),groupPathMatch:r,extractFromSchema:e=>x.get(e),sectionOrder:t,sectionMap:iw,store:n,formResolvers:i})}const sw=new Proxy({},{get:(e,t)=>e=>e.type===t}),cw=`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(`.`),lw=r.enum(cw),uw=r.object({provider_logo:r.object({provider:mn}).optional(),emoji:r.object({char:r.string()}).optional(),icon:r.object({key:lw}).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()}),dw=`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.int_input.number_input.json_schema_input`.split(`.`);r.enum(dw);const fw=r.object({value:r.string(),label:r.string(),widgets:uw.optional()}),pw=r.object({field_options:r.record(r.string(),r.object({options:r.array(fw)}))}),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}],hw=new Map(mw.map(e=>[e.id,e]));function gw(e){return hw.get(e)}function _w(){return mw}const vw={"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:`
74
74
  Tell me if {{ input name required="true" type="string" }} fits the ICP criteria for my company <YOUR_COMPANY_NAME>.
75
75
 
76
76
  My company, <YOUR_COMPANY_NAME>, can be described as follows: <ADD_COMPANY_DESCRIPTION>.
@@ -115,4 +115,4 @@ Customize the message using the name of the user: {{ input name type="string" re
115
115
  `}}],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:
116
116
  **Name**: {{ input name type="string" }}
117
117
  **Email**: {{ input email type="string" }}
118
- `}}],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 yw(e){let t=[];for(let n of e){if(n instanceof W){t.push(n);continue}let e=Tx.parse(n);if(!Ex(n.pipe_id))throw Error(`Unknown pipe: ${n.pipe_id}`);let r=new(xx(n.pipe_id))(e);t.push(r)}return t}function bw(e,t){let n=yw(e),r=new Set;return n.forEach(e=>Object.entries(e.inputFields).forEach(([n,i])=>{i.resolvedName===t&&r.add(e.pipeId)})),Array.from(r)}function xw(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})}function Sw(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 Cw(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 ww(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(Cw(e))return`https://${e}`;if(!Sw(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 Tw(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(Cw(n))return`${e.protocol===`http:`?`http:`:`https:`}//${e.host}${e.pathname}${e.search}${e.hash}`;if(!Sw(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(Sw(i)||Cw(i))return`${e?.toLowerCase()===`http://`?`http:`:`https:`}//${n}${r}`}return``}}function Ew(e){try{return ww(e)}catch{console.warn(`Invalid URL: ${e}`);return}}function Dw(e,t){if(t)switch(e){case`website_url`:return Ew(t);default:return}}function Ow(e){let t;if(kw(e))return Ow(e.value);let n=typeof e;return t=n===`string`||n===`number`||n===`boolean`?n:e===null?`unknown`:`json`,t}function kw(e,t=0){if(typeof e==`object`&&e&&`value`in e&&`status`in e&&xn.safeParse(e.status).success){if(t>1||typeof e.value==`object`&&kw(e.value,t++))throw new Q([Z.RecursiveExpandedValue()]);return!0}return!1}function Aw(e){let t=kw(e),n;return n=t?e.value:e,t?{isExpanded:!0,resolvedInputValue:n,expandedValue:e}:{isExpanded:!1,resolvedInputValue:n,expandedValue:null}}function jw(e){return kw(e)?jw(e.value):e}function Mw(e,t,n){if([`processing`,`completed`].includes(n.status)===!1||t==null)return{};try{let r=nn(e,n.format)?.getStaticWidgets?.(t),i=Dw(n.format,t);return eS(r||{},{display_value:i?{label:i}:void 0})}catch(e){return console.warn(`Failed to generate UI props: ${e}`),{}}}function Nw(e,t,n){if(t==null)return{};try{let r=nn(e,n)?.getStaticWidgets?.(t),i=Dw(n,t);return eS(r||{},{display_value:i?{label:i}:void 0})}catch(e){return console.warn(`Failed to generate UI props: ${e}`),{}}}function Pw(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 Fw=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}=Aw(n),c;c=s&&o.type?o.type:Ow(e);let l;rn(t)&&(l=v(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]=Pw(n,t)}return new e(r)}deleteKey(t){let n=structuredClone(this.annotations);return delete n[t],new e(n)}};function Iw(e){let t={};for(let n=0;n<e.length;n++){let r=e[n];Object.values(r.getOutputFields()).forEach(e=>{if(t[e.resolvedName])throw new Q([Z.AmbiguousDependency({fieldName:e.resolvedName})]);t[e.resolvedName]=n})}return t}function Lw(e){let t=Iw(e),n=[];for(let[r,i]of e.entries()){let e=[];for(let{field:n,required:a}of wa(i.getInputRequirement())){let o=t[n.resolvedName];if(r===o)throw new Q([{code:`SelfReference`,message:`Pipe '${i.pipeId} has an input requirement that points to a field that is produced by itself.'`}]);if(o==null)continue;let s=e.find(e=>e.index===o);s?(s.reason??=[],s.reason=Array.from(new Set([...s.reason,`input`])),s.required=a||s.required):e.push({index:o,required:a,reason:[`input`]})}if(i.payload.run_if){let n=i.payload.run_if.when.conditions.map(e=>e.field_name);for(let r of n){let n=t[r];if(n==null)continue;let i=e.find(e=>e.index===n);i?(i.reason??=[],i.reason=Array.from(new Set([...i.reason,`input`])),i.required=!0):e.push({index:n,required:!0,reason:[`input`]})}}n.push(e)}return n}function Rw({config:e,pipes:t,input:n,field_annotations:r}){try{let i=Hw({config:e,pipes:t,input:n,fieldAnnotations:r});return zw(i),i}catch(e){throw e instanceof Q?e:new Q([Z.ValidationFailed({error:e})])}}function zw(e){for(let t of e.orderedPipeInstances)for(let{field:n}of wa(t.getInputRequirement()))Nm({pipes:e.orderedPipeInstances,derivedInputFields:e.derivedInputFields},n.type),Pm({pipes:e.orderedPipeInstances,derivedInputFields:e.derivedInputFields},n.format)}function Bw(e,t){if(!e&&!t)throw new Q([Z.MustDefineAnnotations()]);return new Fw(t||{}).merge(Fw.fromInput(e||[]))}function Vw(e,t){let n={...t};return e.pipes.forEach((t,r)=>{for(let[i,a]of Object.entries(t.getOutputFields())){let i=n[a.resolvedName];if(i&&i.added_by.ref!==`input`)throw new Q([Z.DuplicatePipeOutput({pipeId:t.pipeId,outputField:a})]);n[a.resolvedName]={type:Nm(e,a.type),added_by:{ref:t.pipeId,config_hash:t.getConfigHashKey(),pipe_index:r},label:i?.label||a.label,format:Pm(e,a.format),is_primary_output:a.isPrimaryOutput}}}),n}function Hw(e){let t=yw(e.pipes),n=Bw(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)}),Gw(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]=Uw(t,n),u=Vw({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 Uw(e,t){let n=Lw(e),r=Ww(n,e,t),i=[],a=[];return r.forEach(t=>{let n=e[t];if(!n)throw new Q([Z.FaultyEnrichmentOrder()]);i.push(n.payload),a.push(n)}),[i,a,n]}function Ww(e,t,n){let r=t.length,i=[],a=new Set,o=new Set,s=[],c=e=>{let n=t[e];return n?wa(n.getInputRequirement()).length>0:!1},l=(n,r=[])=>{if(o.has(n)){let e=n,i=r[r.length-1]||0,a={idx:i,pipe_id:t[i]?.pipeId},o={idx:e,pipeId:t[e]?.pipeId};throw new Q([Z.CircularDependency({currentPipe:a,circularPipe:o})])}if(a.has(n))return;o.add(n),r.push(n);let s=e[n]||[];for(let e of s)l(e.index,r);r.pop(),o.delete(n),a.add(n),i.push(n)};function u(t){if(a.has(t))return;o.add(t);let n=e[t]||[];for(let e of n){if(!a.has(e.index)&&e.required)throw new Q([Z.UnresolvableDependency({index:t,dependencyIndex:e.index})]);!o.has(e.index)&&!e.required&&u(e.index)}o.delete(t),a.add(t),i.push(t)}for(let e=0;e<r;e++)c(e)&&l(e);for(let e=0;e<r;e++)c(e)||l(e);for(let e=0;e<r;e++)u(e);let ee=new Set(Object.keys(n.annotations));for(let e of i){let n=t[e];if(!n)throw Error(`Pipe not defined`);Object.values(n.getOutputFields()).forEach(e=>{ee.add(e.resolvedName)})}for(let[n,r]of t.entries()){let a=r.getInputRequirement();Ca(a,ee)||s.push(Z.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`)?Z.HardInputDependencyViolation({dependencyIndex:e.index,dependencyIndexPipeId:t[e.index]?.pipeId,index:n,indexPipeId:t[n]?.pipeId}):Z.HardConditionDependencyViolation({dependencyIndex:e.index,dependencyIndexPipeId:t[e.index]?.pipeId,index:n,indexPipeId:t[n]?.pipeId}))}r.payload.run_if&&r.payload.run_if.when.conditions.map(e=>e.field_name).forEach(e=>{if(!ee.has(e))throw new Q([Z.ConditionTargetFieldNotFound({fieldName:e,pipeId:r.pipeId,pipeIdx:n})])})}if(s.length>0)throw new Q(s);return i}function Gw(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 qr(e.connection).provider;e.type}).forEach(e=>{e&&n.delete(e)}),n.size>0))throw new Q([Z.MissingCustomConnections({index:t,pipeId:e.pipeId,missingProviders:Array.from(n)})])}}const Kw=[`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`],qw=[`yyyy-MM-dd`,`yyyy/MM/dd`,`MM/dd/yyyy`,`MM-dd-yyyy`,`yyyyMMdd`,`dd-MM-yyyy`,`dd/MM/yyyy`],Jw=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})}),Yw=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 Xw(e){return!isNaN(e.getTime())}const Zw=r.coerce.string().trim().transform(e=>{let t=e.replace(/[^0-9T:.\-/ ]/g,``).trim();for(let e of Kw){let n=ee(t,e,new Date(0));if(Xw(n))return u(n,`yyyy-MM-dd'T'HH:mm:ss`)}throw Error(`Invalid date format: ${e}`)}),Qw=r.coerce.string().trim().transform(e=>{for(let t of qw){let n=ee(e,t,new Date(0));if(Xw(n))return u(n,`yyyy-MM-dd`)}throw Error(`Invalid date format: ${e}`)}),$w=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`}),eT=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()),tT=r.coerce.string().trim().min(1,{message:`Value cannot be empty for this format`});function nT(e,t){if(t===null)return e===``||e==null?null:e;if(e==null)return null;try{switch(t){case`url`:return Jw.parse(e);case`email`:return Yw.parse(e);case`datetime`:return Zw.parse(e);case`date`:return Qw.parse(e);case`decimal`:return $w.parse(e);case`int`:return eT.parse(e);case`currency`:return r.number().parse(e);case`percent`:return r.number().parse(e);case`address_line_1`:return tT.parse(e);case`website_url`:return Jw.parse(e);case`profile_url`:return Jw.parse(e);case`zip_code`:return tT.parse(e);case`markdown`:case`phone`:case`text`:return tT.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 ${zu(e)} into format ${t}: ${r.message}`):r}}function rT(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(kw(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:nT(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 iT(e,t,n){for(let r=0;r<t.length;r++){let i=t[r];i.id||=crypto.randomUUID();let{id:a}=i;if(typeof a!=`string`&&typeof a!=`number`){n.errors.push(Z.InvalidId());continue}if(n.records[a]){n.errors.push(Z.IDConflict({index:r,id:a}));continue}n.order.push(a),n.records[a]={id:a,fields:rT(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{iT(e,t,r);let{queuedRecordIdSet:i,adoptedRecordIdSet:a}=oT(e,t,r,n);if(r.queued_record_ids=i,r.adopted_record_ids=a,sT(e,r,n?.queue?.enabled),pT(e,r),r.errors.length>0)throw new Q(r.errors);return r}catch(e){throw e instanceof Q?e:new Q([Z.ResponseGenerationFailed({error:e})])}}function oT(e,t,n,r){let i=[],a=[];for(let o=0;o<e.orderedPipePayloads.length;o++){let s=e.orderedPipePayloads[o],c=e.orderedPipeInstances[o];if(!c){n.errors.push(Z.UnknownResolver({pipeId:s.pipe_id,index:o}));continue}let{queuedRecordIds:l,adoptedRecordIds:u}=fT(e,t,c,n,r);i=i.concat(l),a=a.concat(u)}return{queuedRecordIdSet:new Set(i),adoptedRecordIdSet:new Set(a)}}function sT(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 ${Lh(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 ${Lh(n)} is missing but required (${r.value?`the value is`:`it has status`}: '${r.value?r.value:r.status}').`,summary:`Missing input`})})};for(let n=0;n<e.orderedPipePayloads.length;n++){let i=e.orderedPipePayloads[n],a=e.orderedPipeInstances[n];if(!a){t.errors.push(Z.UnknownResolver({pipeId:i.pipe_id,index:n}));continue}Object.values(t.records).forEach(e=>{let{valid:t,failedPipeInputField:n,failedRecordField:i}=Ta(a.getInputRequirement(),e);t===!1&&r(a,n,i,e)})}}function cT({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 lT({status:e,config:t}){return t.queue?.enabled?!!(e===`failed`&&t.queue?.triggers?.fieldIsFailed||e===`no_result`&&t.queue?.triggers?.fieldIsNoResult):!1}function uT({inputHashKey:e,configHashKey:t,expandedValue:n,config:r}){return cT({inputHashKey:e,configHashKey:t,expandedValue:n,config:r})||lT({status:n.status,config:r})}function dT({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 fT(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=Nm({pipes:e.orderedPipeInstances,derivedInputFields:e.derivedInputFields},ee),ne=Pm({pipes:e.orderedPipeInstances,derivedInputFields:e.derivedInputFields},a.format),{resolvedInputValue:d,isExpanded:re,expandedValue:f}=Aw(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=Ow(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}=dT({inputHashKey:ae,configHashKey:p,expandedValue:f});e&&s.push(u.id)}if(re&&f.status!==`pending`&&uT({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}=dT({inputHashKey:ae,configHashKey:p,expandedValue:f});e&&s.push(u.id)}uT({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=nT(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 pT(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=Mw(i,r.value,r);r.widgets=eS(r.widgets||{},e)}t.errors.length>0&&(r.status===`pending`||r.status===`queued`)&&(r.status=`failed`)})})}function mT(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 hT(e,t={}){return Object.values(e).map(e=>mT(e.fields,t))}function gT(e,t={}){return e.map(e=>mT(e.fields,t))}function _T(e,t={}){return mT(e.fields,t)}function vT(e,t){return e.map(e=>{let n={};return Object.entries(e).forEach(([e,r])=>{let{isExpanded:i,expandedValue:a,resolvedInputValue:o}=Aw(r);i===!0&&a.status!=null&&t.unexpandStatuses.includes(a.status)?n[e]=o:n[e]=r}),n})}function yT(e){let t=ur[e];if(!t)throw Error(`Provider name '${e}' invalid`);return{...t,provider:e}}const bT=[`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`],xT=r.enum(bT);function ST(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 CT(e,t){let n={name:e,config:t};return ka.hashObject(n)}var $=class{validatePayload(e){try{return this.schema.parse(e)}catch(e){throw e instanceof n?Error(JSON.stringify(r.prettifyError(e))):e}}catalogOutput(e){return{name:e.name,enabled:!!this.payload.config?.output_fields?.[e.name].enabled,type:e.type,format:e.format,resolvedName:this.payload.config?.output_fields?.[e.name]?.alias||e.name,description:e.description,jsonMeta:e.jsonMeta,label:e.label,isCatalogFIeld:!0}}getOutputFields(){let e={};for(let[t,n]of Object.entries(this.getRawOutputFields()))n.enabled&&(e[t]=n);return e}getHashKey(){return CT(this.searchId,this.payload)}};function wT(e){return e.split(`@`)[0]}function TT(e){return`/docs/searches/searches-catalog/${wT(e)}/${e.split(`@`)[1]}`}const ET=`companies:profiles:crustdata@1`,DT=v(`company_name`),OT=v(`company_website_url`),kT=v(`company_description`),AT=v(`company_profile_url`),jT=v(`crustdata_company_match`),MT=r.object({search_id:r.literal(ET),connector:y.nullable().optional(),config:r.object({limit:R({sectionKey:`general`,required:!0,path:`config.limit`,max:1e3,min:1,groupPath:`config.general`,description:``,label:`Limit number of search results`}).default(100),cursor:ma({sectionKey:`general`,path:`config.cursor`,groupPath:`config.general`,inputType:`text`,description:``,label:`Continue previous search from cursor`}),output_fields:z(r.object({[DT.name]:P({fieldName:DT.name}),[OT.name]:P({fieldName:DT.name}),[kT.name]:P({fieldName:kT.name}),[AT.name]:P({fieldName:AT.name}),[jT.name]:P({fieldName:jT.name})})),filters:r.object({hq_locations:I({path:`config.filters.hq_locations`,sectionKey:`config.filters`,label:`HQ locations`,description:``,disableSearch:!1,required:!1,groupPath:`config.filters.location`,optionsDef:_(`locations`)}),crunchbase_categories:I({path:`config.filters.crunchbase_categories`,sectionKey:`config.filters`,label:`Crunchbase categories`,description:``,disableSearch:!1,required:!1,groupPath:`config.filters.categories`,optionsDef:_(`company.crunchbase_categories.crustdata`)}),crunchbase_investors:I({path:`config.filters.crunchbase_investors`,sectionKey:`config.filters`,label:`Investors to include (Crunchbase)`,description:``,disableSearch:!1,required:!1,groupPath:`config.filters.investors`,optionsDef:_(`company.crunchbase_investors.crustdata`)}),tracxn_investors:I({path:`config.filters.tracxn_investors`,sectionKey:`config.filters`,label:`Investors to include (Tracxn)`,description:``,required:!1,groupPath:`config.filters.investors`,disableSearch:!1,optionsDef:_(`company.tracxn_investors.crustdata`)}),company_types:F({sectionKey:`config.filters`,path:`config.filters.company_types`,options:h(`crustdata.company_types`),label:`Company types`,description:``,required:!1,disableSearch:!0,groupPath:`config.filters.categories`}),linkedin_industries:I({sectionKey:`config.filters`,path:`config.filters.linkedin_industries`,optionsDef:_(`linkedin_industries.crustdata`),label:`Industries`,disableSearch:!1,required:!1,description:``,groupPath:`config.filters.industry`}),markets:I({sectionKey:`config.filters`,path:`config.filters.markets`,optionsDef:_(`company.markets.crustdata`),label:`Markets`,disableSearch:!1,required:!1,description:``,groupPath:`config.filters.industry`}),linkedin_categories:I({sectionKey:`config.filters`,path:`config.filters.linkedin_categories`,optionsDef:_(`company.linkedin_categories.crustdata`),label:`Company types`,description:``,required:!1,disableSearch:!0,groupPath:`config.filters.categories`}),headcount:F({path:`config.filters.headcount`,sectionKey:`config.filters`,label:`Headcount`,description:``,disableSearch:!0,required:!1,options:h(`crustdata.company_size`),groupPath:`config.filters.company_size`}),headcount_growth_last_6m_in_percent:F({path:`config.filters.headcount_growth_last_6m_in_percent`,sectionKey:`config.filters`,label:`Headcount growth over last 6 months in percent`,description:``,options:h(`crustdata.headcount_growth`),disableSearch:!0,required:!1,groupPath:`config.filters.company_size`}),revenue_in_usd:ua({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:F({path:`config.filters.last_funding_type`,sectionKey:`config.filters`,label:`Last funding type`,disableSearch:!0,required:!1,options:h(`crustdata.funding_rounds`),description:``,groupPath:`config.filters.financials`}),last_funding_amount:ua({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:F({path:`config.filters.number_of_followers`,sectionKey:`config.filters`,label:`Number of LinkedIn followers`,disableSearch:!0,description:``,required:!1,options:h(`crustdata.company_followers`),groupPath:`config.filters.web_presence`}),follower_growth_last_6m_in_percent:F({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:h(`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`,description:``,groupPath:`config.filters.keywords`}),competitor_websites:j({path:`config.filters.competitor_websites`,sectionKey:`config.filters`,maxItems:50,label:`Competitor domains`,description:`Ex. 'google.com'`,groupPath:`config.filters.competitors`})}).check(e=>{ST(e.value)&&e.issues.push({code:`custom`,message:`You must set at least one filter.`,input:e.value})})})}),NT={default:{input:[{fields:[]}]}},PT=class extends ${searchId=ET;schema=MT;payload;constructor(e){super(),this.payload=this.validatePayload(e)}getRawOutputFields(){return{[DT.name]:this.catalogOutput(DT),[OT.name]:this.catalogOutput(OT),[kT.name]:this.catalogOutput(kT),[AT.name]:this.catalogOutput(AT),[jT.name]:this.catalogOutput(jT)}}getConnectionsRequirements(){return[{provider:`crustdata`,rateLimitOperation:`crustdata_company_db_search`,rateLimitRatio:1,allowManagedConnection:!0}]}getDedupConfig(){return NT}},FT=MT,IT={searchId:ET,baseSearch:wT(`companies:profiles:crustdata@1`),label:`Company search`,categories:[`companies`],hasManagedConnection:!0,allowsUserConnection:!0,lifecycle:null,description:`Filter based company search.`,tags:[V.COMPANY_PROFILES],docPath:TT(ET),cost:{mode:`per_page`,creditsPerPage:2},provider:`crustdata`,defaultPayload:{search_id:ET,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:[]}}}},LT=`companies:profiles:exa@1`,RT=v(`company_name`),zT=v(`company_website_url`),BT=v(`company_description`),VT=v(`company_industry`),HT=v(`headcount`),UT=v(`exa_match_evaluation`),WT=r.object({search_id:r.literal(LT),connector:y.nullable().optional(),config:r.object({limit:R({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:z(r.object({[RT.name]:P({fieldName:RT.name}),[zT.name]:P({fieldName:RT.name}),[BT.name]:P({fieldName:BT.name}),[VT.name]:P({fieldName:VT.name}),[HT.name]:P({fieldName:HT.name}),[UT.name]:P({fieldName:UT.name})})),filters:r.object({query:ha({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})})})}),GT={default:{input:[{fields:[]}]}},KT=class extends ${searchId=LT;schema=WT;payload;constructor(e){super(),this.payload=this.validatePayload(e)}getRawOutputFields(){return{[RT.name]:this.catalogOutput(RT),[zT.name]:this.catalogOutput(zT),[BT.name]:this.catalogOutput(BT),[VT.name]:this.catalogOutput(VT),[HT.name]:this.catalogOutput(HT),[UT.name]:this.catalogOutput(UT)}}getConnectionsRequirements(){return[{provider:`exa`,rateLimitOperation:`exa_websets`,rateLimitRatio:1,allowManagedConnection:!0}]}getDedupConfig(){return GT}},qT=WT,JT={searchId:LT,baseSearch:wT(`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:[V.COMPANY_PROFILES],docPath:TT(LT),cost:{mode:`per_result`,creditsPerResult:2},provider:`exa`,defaultPayload:{search_id:LT,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:``}}}},YT=`companies:profiles:icypeas@1`,XT=v(`company_industry`),ZT=v(`company_name`),QT=v(`company_description`),$T=v(`company_website_url`),eE=v(`headcount`),tE=v(`company_region`),nE=v(`company_profile_url`),rE=v(`icypeas_company_match`),iE=r.object({search_id:r.literal(YT),connector:y.nullable().optional(),config:r.object({limit:R({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:z(r.object({company_name:P({fieldName:ZT.name}),company_industry:P({fieldName:XT.name}),company_description:P({fieldName:QT.name}),company_website_url:P({fieldName:$T.name}),headcount:P({fieldName:eE.name}),company_region:P({fieldName:tE.name}),company_profile_url:P({fieldName:nE.name}),icypeas_company_match:P({fieldName:rE.name})})),filters:r.object({name:M({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:N({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:N({path:`config.filters.industry`,sectionKey:`config.filters`,optionsDef:g(`linkedin.industries`),includeLabel:`Industries to include`,excludeLabel:`Industries to exclude`,description:``,placeholder:``,groupPath:`config.filters.industry`,maxItems:50}).optional(),location:M({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:ua({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:M({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:M({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=>{ST(e.value)&&e.issues.push({code:`custom`,message:`You must set at least one filter.`,input:e.value})})})}),aE={default:{input:[{fields:[{outputField:`company_profile_url`}]}]}},oE=class extends ${searchId=YT;schema=iE;payload;constructor(e){super(),this.payload=this.validatePayload(e)}getRawOutputFields(){return{[ZT.name]:this.catalogOutput(ZT),[XT.name]:this.catalogOutput(XT),[nE.name]:this.catalogOutput(nE),[$T.name]:this.catalogOutput($T),[QT.name]:this.catalogOutput(QT),[eE.name]:this.catalogOutput(eE),[tE.name]:this.catalogOutput(tE),[rE.name]:this.catalogOutput(rE)}}getConnectionsRequirements(){return[{provider:`icypeas`,rateLimitOperation:`icypeas_company_database`,rateLimitRatio:1,allowManagedConnection:!0}]}getDedupConfig(){return aE}},sE=iE,cE={searchId:YT,baseSearch:wT(`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:[V.COMPANY_PROFILES],docPath:TT(YT),cost:{mode:`per_result`,creditsPerResult:.4},provider:`icypeas`,defaultPayload:{search_id:YT,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:[]}}}}},lE=`people:profiles:clado@1`,uE=v(`name`),dE=v(`job_title`),fE=v(`company_name`),pE=v(`company_profile_url`),mE=v(`profile_url`),hE=v(`clado_person_match`),gE=r.object({search_id:r.literal(lE),connector:y.nullable().optional(),config:r.object({limit:R({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:z(r.object({[uE.name]:P({fieldName:uE.name}),[dE.name]:P({fieldName:dE.name}),[pE.name]:P({fieldName:pE.name}),[fE.name]:P({fieldName:fE.name}),[mE.name]:P({fieldName:mE.name}),[hE.name]:P({fieldName:hE.name})})),filters:r.object({query:ha({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})})})}),_E={default:{input:[{fields:[{outputField:`profile_url`}]}]}},vE=class extends ${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),[mE.name]:this.catalogOutput(mE),[pE.name]:this.catalogOutput(pE),[hE.name]:this.catalogOutput(hE)}}getConnectionsRequirements(){return[{provider:`clado`,rateLimitOperation:`clado_search_people`,rateLimitRatio:1,allowManagedConnection:!0}]}getDedupConfig(){return _E}},yE=gE,bE={searchId:lE,baseSearch:jt(`people:profiles:clado@1`),label:`Find people profiles with Clado`,categories:[`people`],hasManagedConnection:!0,allowsUserConnection:!0,lifecycle:{deprecatedOn:`2025-11-01`,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:[V.PEOPLE_PROFILES],docPath:`/resources/search-catalog/people:profiles:clado/1`,cost:{mode:`per_search`,creditsPerSearch:3},provider:`clado`,defaultPayload:{search_id:lE,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:``}}}},xE=`people:profiles:clado@2`,SE=v(`name`),CE=v(`job_title`),wE=v(`company_name`),TE=v(`company_profile_url`),EE=v(`profile_url`),DE=v(`clado_person_match_v2`),OE=r.object({search_id:r.literal(xE),connector:y.nullable().optional(),config:r.object({limit:R({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:ma({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:R({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:z(r.object({[SE.name]:P({fieldName:SE.name}),[CE.name]:P({fieldName:CE.name}),[TE.name]:P({fieldName:TE.name}),[wE.name]:P({fieldName:wE.name}),[EE.name]:P({fieldName:EE.name}),[DE.name]:P({fieldName:DE.name})})),filters:r.object({query:ha({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`]})}),kE={default:{input:[{fields:[{outputField:`profile_url`}]}]}},AE=class extends ${searchId=xE;schema=OE;payload;constructor(e){super(),this.payload=this.validatePayload(e)}getRawOutputFields(){return{[SE.name]:this.catalogOutput(SE),[CE.name]:this.catalogOutput(CE),[wE.name]:this.catalogOutput(wE),[EE.name]:this.catalogOutput(EE),[TE.name]:this.catalogOutput(TE),[DE.name]:this.catalogOutput(DE)}}getConnectionsRequirements(){return[{provider:`clado`,rateLimitOperation:`clado_search_people`,rateLimitRatio:1,allowManagedConnection:!0}]}getDedupConfig(){return kE}},jE=OE,ME={searchId:xE,baseSearch:jt(`people:profiles:clado@2`),label:`Find people profiles`,categories:[`deprecated`],hasManagedConnection:!0,allowsUserConnection:!0,lifecycle:{deprecatedOn:`2025-12-15`,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:xE,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:``}}}},NE=`people:employees:leadmagic@1`,PE=v(`name`),FE=v(`job_title`),IE=v(`company_website_url`),LE=v(`company_name`),RE=r.object({search_id:r.literal(NE),connector:y.nullable().optional(),config:r.object({limit:R({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:z(r.object({[PE.name]:P({fieldName:PE.name}),[LE.name]:P({fieldName:LE.name}),[IE.name]:P({fieldName:IE.name}),[FE.name]:P({fieldName:FE.name})})),filters:r.object({company_website_url:ma({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`})})})}),zE={default:{input:[{fields:[{outputField:IE.name}]}]}},BE=class extends ${searchId=NE;schema=RE;payload;constructor(e){super(),this.payload=this.validatePayload(e)}getRawOutputFields(){return{[PE.name]:this.catalogOutput(PE),[FE.name]:this.catalogOutput(FE),[IE.name]:this.catalogOutput(IE),[LE.name]:this.catalogOutput(LE)}}getConnectionsRequirements(){return[{provider:`leadmagic`,rateLimitOperation:`leadmagic_employee_finder`,rateLimitRatio:1,allowManagedConnection:!0}]}getDedupConfig(){return zE}},VE=RE,HE={searchId:NE,baseSearch:wT(`people:employees:leadmagic@1`),label:`Employee finder`,categories:[`people`],hasManagedConnection:!0,allowsUserConnection:!0,lifecycle:null,description:`Search for employees of a company.`,tags:[V.PEOPLE_PROFILES],docPath:TT(NE),cost:{mode:`per_result`,creditsPerResult:.05},provider:`leadmagic`,defaultPayload:{search_id:NE,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:``}}}},UE=`people:profiles:crustdata@1`,WE=v(`name`),GE=v(`company_website_url`),KE=v(`profile_url`),qE=v(`job_title`),JE=v(`crustdata_person_match`),YE=r.object({search_id:r.literal(UE),connector:y.nullable().optional(),config:r.object({limit:R({sectionKey:`general`,required:!0,path:`config.limit`,max:1e3,min:1,groupPath:`config.general`,description:``,label:`Limit number of results`}).default(100),cursor:ma({sectionKey:`general`,path:`config.cursor`,groupPath:`config.general`,inputType:`text`,description:``,label:`Continue previous search from cursor`}),output_fields:z(r.object({[WE.name]:P({fieldName:WE.name}),[GE.name]:P({fieldName:GE.name}),[KE.name]:P({fieldName:KE.name}),[qE.name]:P({fieldName:qE.name}),[JE.name]:P({fieldName:JE.name})})),filters:r.object({locations:I({path:`config.filters.locations`,sectionKey:`config.filters`,label:`Locations`,disableSearch:!1,required:!1,optionsDef:_(`locations`),groupPath:`config.filters.general`}),profile_headline_keywords:sa({path:`config.filters.profile_headline_keywords`,sectionKey:`config.filters`,label:`Headline contains keywords`,maxItems:100,groupPath:`config.filters.keywords`}),profile_summary_keywords:sa({path:`config.filters.profile_summary_keywords`,sectionKey:`config.filters`,label:`Profile about section contains keywords`,maxItems:100,groupPath:`config.filters.keywords`}),profile_languages:F({path:`config.filters.profile_languages`,sectionKey:`config.filters`,label:`Profile languages`,disableSearch:!1,required:!1,options:h(`crustdata.person_profile_languages`),groupPath:`config.filters.profile`}),languages:F({path:`config.filters.languages`,sectionKey:`config.filters`,label:`Spoken languages`,disableSearch:!1,required:!1,options:h(`crustdata.person_profile_languages`),groupPath:`config.filters.profile`}),skills:I({path:`config.filters.skills`,sectionKey:`config.filters`,label:`Skills`,placeholder:`.NET, PMO, ...`,disableSearch:!1,required:!1,description:``,groupPath:`config.filters.skills`,optionsDef:_(`skills`)}),years_of_experience:F({path:`config.filters.years_of_experience`,sectionKey:`config.filters`,label:`Years of experience`,placeholder:`1 to 2 years`,disableSearch:!0,description:``,required:!1,options:h(`crustdata.years_of_experience`),groupPath:`config.filters.experience`}),current_seniority_levels:N({path:`config.filters.current_seniority_levels`,sectionKey:`config.filters`,disableSearch:!0,label:`Seniority`,optionsDef:g(`crustdata.person_seniority`),description:``,groupPath:`config.filters.experience`}),current_employers:j({path:`config.filters.current_employers`,sectionKey:`config.filters`,label:`Current employers`,description:``,maxItems:200,groupPath:`config.filters.experience`,suggestionsDef:_(`person.current_employer_names.crustdata`)}),current_employers_website_urls:j({path:`config.filters.current_employers_website_urls`,sectionKey:`config.filters`,label:`Current employer domains`,description:``,maxItems:200,groupPath:`config.filters.experience`}),current_job_titles:j({path:`config.filters.current_job_titles`,sectionKey:`config.filters`,label:`Current job titles`,description:``,order:1,groupPath:`config.filters.experience`,suggestionsDef:_(`titles`)}),current_employers_linkedin_industries:I({path:`config.filters.current_employers_linkedin_industries`,sectionKey:`config.filters`,label:`Current employers industries`,disableSearch:!1,required:!1,groupPath:`config.filters.experience`,description:``,optionsDef:_(`linkedin_industries.crustdata`)}),years_at_current_company:F({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:h(`crustdata.years_of_experience`)}),previous_employers_website_urls:j({path:`config.filters.previous_employers_website_urls`,sectionKey:`config.filters`,label:`Previous employer domains`,description:``,maxItems:200,groupPath:`config.filters.experience`}),previous_seniority_levels:N({path:`config.filters.previous_seniority_levels`,sectionKey:`config.filters`,label:`Previous seniority`,disableSearch:!0,optionsDef:g(`crustdata.person_seniority`),description:``,groupPath:`config.filters.experience`}),previous_employers:j({path:`config.filters.previous_employers`,sectionKey:`config.filters`,label:`Previous employer name`,description:``,maxItems:200,groupPath:`config.filters.experience`,suggestionsDef:_(`person.past_employer_names.crustdata`)}),previous_job_titles:j({path:`config.filters.previous_job_titles`,sectionKey:`config.filters`,label:`Current job titles`,description:``,groupPath:`config.filters.experience`,suggestionsDef:_(`titles`)}),previous_employers_linkedin_industries:I({path:`config.filters.previous_employers_linkedin_industries`,sectionKey:`config.filters`,label:`Previous employer industry`,disableSearch:!1,required:!1,groupPath:`config.filters.experience`,description:``,optionsDef:_(`linkedin_industries.crustdata`)}),certifications:j({path:`config.filters.certifications`,sectionKey:`config.filters`,label:`Certifications`,groupPath:`config.filters.certifications_honors`,description:``}),honors:j({path:`config.filters.honors`,sectionKey:`config.filters`,label:`Honors`,groupPath:`config.filters.certifications_honors`,description:``}),recently_changed_jobs:pa({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`,description:``,disableSearch:!1,required:!1,groupPath:`config.filters.education`,optionsDef:_(`person.education_field_of_study.crustdata`)}),degree_names:I({path:`config.filters.degree_names`,sectionKey:`config.filters`,label:`Degree names`,description:``,disableSearch:!1,required:!1,groupPath:`config.filters.education`,optionsDef:_(`person.education_degree.crustdata`)}),school_names:I({path:`config.filters.school_names`,sectionKey:`config.filters`,label:`School names`,description:``,disableSearch:!1,required:!1,groupPath:`config.filters.education`,optionsDef:_(`schools`)}),current_school_names:I({path:`config.filters.current_school_names`,sectionKey:`config.filters`,label:`Currently enrolled at`,description:``,disableSearch:!1,required:!1,groupPath:`config.filters.education`,optionsDef:_(`schools`)}),extracurricular_activities:j({path:`config.filters.extracurricular_activities`,sectionKey:`config.filters`,label:`Extracurricular activities`,description:``,groupPath:`config.filters.education`,suggestionsDef:_(`person.education_activities.crustdata`)})}).check(e=>{ST(e.value)&&e.issues.push({code:`custom`,message:`You must set at least one filter.`,input:e.value})})})}),XE={default:{input:[{fields:[]}]}},ZE=class extends ${searchId=UE;schema=YE;payload;constructor(e){super(),this.payload=this.validatePayload(e)}getRawOutputFields(){return{[WE.name]:this.catalogOutput(WE),[GE.name]:this.catalogOutput(GE),[KE.name]:this.catalogOutput(KE),[qE.name]:this.catalogOutput(qE),[JE.name]:this.catalogOutput(JE)}}getConnectionsRequirements(){return[{provider:`crustdata`,rateLimitOperation:`crustdata_people_db_search`,rateLimitRatio:1,allowManagedConnection:!0}]}getDedupConfig(){return XE}},QE=YE,$E={searchId:UE,baseSearch:wT(`people:profiles:crustdata@1`),label:`People search`,categories:[`people`],hasManagedConnection:!0,allowsUserConnection:!0,lifecycle:null,description:`Filter-based people search.`,tags:[V.PEOPLE_PROFILES],docPath:TT(UE),cost:{mode:`per_page`,creditsPerPage:5},provider:`crustdata`,defaultPayload:{search_id:UE,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`,tD=v(`name`),nD=v(`profile_url`),rD=v(`job_title`),iD=v(`company_name`),aD=v(`company_region`),oD=v(`exa_match_evaluation`),sD=r.object({search_id:r.literal(eD),connector:y.nullable().optional(),config:r.object({limit:R({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:z(r.object({[tD.name]:P({fieldName:tD.name}),[nD.name]:P({fieldName:nD.name}),[rD.name]:P({fieldName:rD.name}),[iD.name]:P({fieldName:iD.name}),[aD.name]:P({fieldName:aD.name}),[oD.name]:P({fieldName:oD.name})})),filters:r.object({query:ha({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})})})}),cD={default:{input:[{fields:[]}]}},lD=class extends ${searchId=eD;schema=sD;payload;constructor(e){super(),this.payload=this.validatePayload(e)}getRawOutputFields(){return{[tD.name]:this.catalogOutput(tD),[nD.name]:this.catalogOutput(nD),[rD.name]:this.catalogOutput(rD),[iD.name]:this.catalogOutput(iD),[aD.name]:this.catalogOutput(aD),[oD.name]:this.catalogOutput(oD)}}getConnectionsRequirements(){return[{provider:`exa`,rateLimitOperation:`exa_websets`,rateLimitRatio:1,allowManagedConnection:!0}]}getDedupConfig(){return cD}},uD=sD,dD={searchId:eD,baseSearch:wT(`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:[V.COMPANY_PROFILES],docPath:TT(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:``}}}},fD=`people:profiles:icypeas@1`,pD=v(`name`),mD=v(`job_title`),hD=v(`profile_headline`),gD=v(`company_website_url`),_D=v(`company_profile_url`),vD=v(`profile_url`),yD=v(`icypeas_person_match`),bD=r.object({search_id:r.literal(fD),connector:y.nullable().optional(),config:r.object({limit:R({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:z(r.object({[pD.name]:P({fieldName:pD.name}),[mD.name]:P({fieldName:mD.name}),[hD.name]:P({fieldName:hD.name}),[gD.name]:P({fieldName:gD.name}),[_D.name]:P({fieldName:_D.name}),[vD.name]:P({fieldName:vD.name}),[yD.name]:P({fieldName:yD.name})})),filters:r.object({firstname:M({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:M({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:M({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:M({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:M({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:M({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:M({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:M({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:M({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:M({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:M({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:M({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:M({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=>{ST(e.value)&&e.issues.push({code:`custom`,message:`The filters object cannot be empty. You must set at least one filter.`,input:e.value})})})}),xD={default:{input:[{fields:[{outputField:`profile_url`}]}]}},SD=class extends ${searchId=fD;schema=bD;payload;constructor(e){super(),this.payload=this.validatePayload(e)}getRawOutputFields(){return{[pD.name]:this.catalogOutput(pD),[mD.name]:this.catalogOutput(mD),[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)}}getConnectionsRequirements(){return[{provider:`icypeas`,rateLimitOperation:`icypeas_lead_database`,rateLimitRatio:1,allowManagedConnection:!0}]}getDedupConfig(){return xD}},CD=bD,wD={searchId:fD,provider:`icypeas`,baseSearch:wT(fD),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:[V.PEOPLE_PROFILES],docPath:TT(fD),cost:{mode:`per_result`,creditsPerResult:.4},defaultPayload:{search_id:fD,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:[]}}}}},TD={"people:profiles:crustdata@1":ZE,"companies:profiles:crustdata@1":PT,"companies:profiles:exa@1":KT,"people:profiles:exa@1":lD,"people:profiles:icypeas@1":SD,"companies:profiles:icypeas@1":oE,"people:employees:leadmagic@1":BE,"people:profiles:clado@1":vE,"people:profiles:clado@2":AE},ED={"people:profiles:crustdata@1":QE,"companies:profiles:crustdata@1":FT,"companies:profiles:exa@1":qT,"people:profiles:exa@1":uD,"people:profiles:icypeas@1":CD,"companies:profiles:icypeas@1":sE,"people:employees:leadmagic@1":VE,"people:profiles:clado@1":yE,"people:profiles:clado@2":jE},DD={"people:profiles:crustdata@1":$E,"companies:profiles:crustdata@1":IT,"companies:profiles:exa@1":JT,"people:profiles:exa@1":dD,"people:profiles:icypeas@1":wD,"companies:profiles:icypeas@1":cE,"people:employees:leadmagic@1":HE,"people:profiles:clado@1":bE,"people:profiles:clado@2":ME};function OD(e){return TD[e]}function kD(e){return ED[e]}function AD(e){return DD[e].defaultPayload}const jD=t.discriminatedUnion(`search_id`,Object.values(ED).map(e=>e)),MD=t.preprocess(e=>{if(!e||typeof e!=`object`||!(`search_id`in e))return e;let t=AD(e.search_id);return t?{...e,config:va(e?.config||{},t.config)}:e},jD);function ND(e){return Object.keys(DD[e].defaultPayload.config.output_fields)}const PD=Fn,FD=t.object({value:Sn,status:xn,type:yn.optional(),format:Rn.nullable().optional(),resolved_by:Wn.nullable().optional(),widgets:Pn.optional()}),ID=t.record(t.string(),FD.nullable()),LD=t.object({search:t.object({ref:xT}),status:t.enum([`pending`,`processing`,`failed`,`completed`]),errors:t.array(PD),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()})}),RD=t.object({id:t.string(),status:t.enum([`completed`,`failed`,`pending`,`processing`]),results:t.array(ID),search_statuses:t.array(LD),organizationId:t.string()}).openapi(`SearchesResponseSchema`),zD=t.object({environment:t.enum([`production`,`sandbox`]).default(`production`),widgets:t.object({enabled:t.boolean().default(!1)}).default({enabled:!1})}),BD=zD.extend({dedup:t.object({strategy:t.enum([`default`]).nullable()}).default({strategy:null})}),VD=t.object({config:BD.default({dedup:{strategy:`default`},environment:`production`,widgets:{enabled:!1}}),searches:t.array(MD)}).openapi(`SearchesRequestSchema`);function HD(e){let t=e.split(`@`)[1];if(!t)throw Error(`No search version found`);return Number(t)}function UD(){let e={};for(let t of Object.values(DD)){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=HD(e.searchId);return HD(t.searchId)-n})}),e}const WD=UD();function GD(e){let t=[];for(let[n,r]of Object.entries(WD)){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:HD(i.searchId)})}return t}function KD(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 ND(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:WD}}function qD(e){return DD[e]}function JD(e){let t=qD(e);return{[t.provider]:t.cost.mode===`per_result`?t.cost.creditsPerResult:t.cost.mode===`per_search`?t.cost.creditsPerSearch:t.cost.creditsPerPage}}function YD(e){return e.map(e=>({public_id:`sandbox-${e}`,provider:e}))}function XD(e){return YD(Ex(e).allowedUserConnectionProviders)}function ZD(e){return YD([ZC(e).provider])}function QD(e){return YD([qD(e).provider])}const $D=[{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($D.map(e=>[e.id,e]));function tO(e){return eO.get(e)}function nO(){return $D}const rO={"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 iO(e,t,n){if(t==null)return{};try{let r=nn(e,n)?.getStaticWidgets?.(t),i=Dw(n,t);return eS(r||{},{display_value:i?{label:i}:void 0})}catch(e){return console.warn(`Failed to generate UI props: ${e}`),{}}}function aO(e){if(e instanceof qx)return e;let t=e.search_id,n=RC(t);if(!n)throw Error(`Unknown pipe: ${e.search_id}`);return new n(VC.parse(e))}var oO=class extends Vh{constructor(e){super(e.map(e=>e.message).join(`, `)||`Unknown`),this.errors=e}};function sO(e){let t=[];for(let n of e){if(n instanceof $){t.push(n);continue}let e=n.search_id,r=OD(e);if(!r)throw Error(`Unknown pipe: ${n.search_id}`);let i=new r(MD.parse(n));t.push(i)}return t}function cO(e){try{return sO(e.searches)}catch(e){throw e instanceof oO?e:new Q([Z.ValidationFailed({error:e})])}}const lO=/[\\^$.+()|[\]{}]/g,uO=new Map;function dO(e){let t=uO.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(lO,`\\$&`)}let r=RegExp(`^${n}$`);return uO.set(e,r),r}function fO(e,t){return dO(t).test(e)}function pO(e,t){if(!t||t.length===0)return!1;for(let n of t)if(fO(e,n))return!0;return!1}function mO(e,t){if(!t)return!0;let{includes:n,excludes:r}=t;return!(n&&n.length>0&&!pO(e,n)||r&&r.length>0&&pO(e,r))}function hO(e,t){return mO(e,t?.providers)}function gO(e,t){if(!t)return!0;if(!mO(e,t.pipes))return!1;if(t.providers){let n=Ax(e);if(n.length===0)return!0;if(!n.some(e=>hO(e,t)))return!1}return!0}function _O(e,t,n){return t?!(!mO(e,t.searches)||n!==void 0&&!hO(n,t)):!0}function vO(e,t,n){return t?!(!mO(e,t.searchesMulti)||n!==void 0&&!hO(n,t)):!0}function yO(e,t){return t?e.filter(e=>gO(e.pipeId,t)):e.slice()}function bO(e,t){return t?e.filter(e=>_O(e.searchId,t,e.provider)):e.slice()}function xO(e,t){return t?e.filter(e=>vO(e.searchId,t,e.provider)):e.slice()}function SO(e){let t=Object.values(e.billableOperations).map(e=>e.credits||0);return Math.min(...t)}function CO(e){return Math.min(e.cost.mode===`per_result`?e.cost.creditsPerResult:e.cost.mode===`per_search`?e.cost.creditsPerSearch:e.cost.creditsPerPage)}function wO(e){let t=e.cost;return Math.min(t.mode===`per_result`?t.creditsPerResult:t.mode===`per_search`?t.creditsPerSearch:t.creditsPerPage)}function TO(e){let t=Tw(e);return te(t)||new URL(t).hostname}const EO=[`http://`,`https://`,`mailto:`],DO=new Set([`*`,`_`,`~`,"`",`[`,`]`,`(`,`)`,`\\`]);function OO(e){return e?kO(e):[]}function kO(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&&DO.has(o)){n+=o,r+=2;continue}if(a==="`"){let n=AO(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=AO(e,r+2,`**`);if(n>r+2){i(),t.push({type:`strong`,children:kO(e.slice(r+2,n))}),r=n+2;continue}}if(a===`~`&&o===`~`){let n=AO(e,r+2,`~~`);if(n>r+2){i(),t.push({type:`del`,children:kO(e.slice(r+2,n))}),r=n+2;continue}}if(a===`*`&&o!==`*`){let n=AO(e,r+1,`*`);if(n>r+1){i(),t.push({type:`em`,children:kO(e.slice(r+1,n))}),r=n+1;continue}}if(a===`[`){let n=AO(e,r+1,`]`);if(n>-1&&e[n+1]===`(`){let a=AO(e,n+2,`)`);if(a>-1){let o=e.slice(n+2,a);if(EO.some(e=>o.startsWith(e))){i(),t.push({type:`link`,href:o,children:kO(e.slice(r+1,n))}),r=a+1;continue}}}}n+=a,r+=1}return i(),t}function AO(e,t,n){let r=t;for(;r<e.length;){if(e[r]===`\\`&&r+1<e.length){r+=2;continue}if(jO(e,r,n))return r;r+=1}return-1}function jO(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{Qr as AI_MODELS,$r as AI_MODEL_CATALOG,Yn as CatalogSchemaRefSchema,$n as ConditionOperatorsSchema,Kn as ExpandedFieldValueSchema,uh as FIELD_PLACEHOLDERS,zn as FieldAnnotationSchema,Fw as FieldAnnotations,Bn as FieldAnnotationsSchema,pn as FieldNameSchema,In as FieldReasonSchema,Sn as FieldValueSchema,pw as FormStoreSchema,Qn as JSONExtractSchema,Cn as JSONMetaSchema,ar as NoConnectorSchema,y as OptionalConnectorSchema,gn as PIPE_IDS,qC as PaginationTypeSchema,Qy as PersonWorkemailWaterfall1Entry,Zy as PersonWorkemailWaterfall1PayloadSchema,Xy as PersonWorkemailWaterfall1PipeClass,W as Pipe,Vh as Pipe0Error,_n as PipeIdSchema,wx as PipePayloadSchema,lr as PipeRunIfSchema,Q as PipelineValidationError,hn as PipesEnvironmentSchema,Fn as PipesErrorSchema,Xn as PipesFieldDefinitionSchema,Zn as PipesFieldDefinitionsSchema,qn as PipesInputSchema,Fx as PipesRequestConfigSchema,Ix as PipesRequestSchema,Px as PipesResponseSchema,Tx as ProcessedPipePayloadSchema,VC as ProcessedSearchPayloadSchema,MD as ProcessedSearchesPayloadSchema,mn as ProviderNameSchema,Ln as RECORD_FIELD_FORMATS,vn as RECORD_FIELD_TYPES,er as RUN_IF_OPERATOR_LABELS,nr as RUN_IF_STATUS_OPERATORS,tr as RUN_IF_VALUE_OPERATORS,Un as RecordClaimedBySchema,Rn as RecordFieldFormatSchema,Gn as RecordFieldSchema,xn as RecordFieldStatusSchema,yn as RecordFieldTypeSchema,bn as RecordIdSchema,Wn as RecordResolvedBySchema,Jn as RecordSchema,Bh as RequestValidationError,ir as RequiredConnectorSchema,sr as RunIfStatusOperatorsSchema,cr as RunIfStatusValueSchema,or as RunIfValueOperatorsSchema,bT as SEARCHES_IDS,Ux as SEARCH_IDS,qx as Search,UC as SearchErrorSchema,Wx as SearchIdSchema,zC as SearchPayloadSchema,HC as SearchRequestSchema,JC as SearchResponseSchema,WC as SearchResultFieldSchema,GC as SearchResultSchema,PD as SearchesErrorSchema,xT as SearchesIdSchema,jD as SearchesPayloadSchema,zD as SearchesRequestBaseConfigSchema,VD as SearchesRequestSchema,RD as SearchesResponseSchema,FD as SearchesResultFieldSchema,ID as SearchesResultSchema,$ as SearchesSearch,LD as SearchesStatusSchema,Vu as TYPES_TO_FORMATS,uw as WidgetsByKindSchema,Pn as WidgetsSchema,xa as all,Ar as analyzeLiquidTemplate,un as and,U as any,_ as autocomplete,ei as buildAiModelBillableOperations,Lw as buildDependencyGraph,Lm as buildInputRequirementFromTemplates,q as catalogInput,Da as cleanObject,Tw as cleanUrl,ww as cleanWebsiteUrl,zm as collectConstantReferencesFromTemplates,Vx as collectPipeContextSelectFields,wa as collectRequirementFields,Rm as collectSecretReferencesFromTemplates,dO as compilePattern,va as configDefaults,Mi as convertIntermediateFieldsIntoGroups,Ni as defaultSectionMap,Rh as describeRequirement,$x as entityLogoFavicon,Qx as entityLogoProfessionalProfileUrl,Ii as extractFormMetadata,H as field,tn as fieldBehaviorCatalog,en as fieldCatalog,Lh as fieldNameStr,Ow as fieldTypeFromValue,mT as fieldsToObject,yO as filterPipeEntries,bO as filterSearchEntries,xO as filterSearchesEntries,ni as getAiModelBillingKey,ri as getAiModelConnectionRequirements,ti as getAiModelProviders,ii as getAllAiModelProviders,G as getBasePipeName,bx as getDefaultOutputFields,Ax as getDefaultPipeProviders,ew as getDefaultSearchOutputFields,ND as getDefaultSearchesOutputFields,bw as getDependentPipeNamesForInputProperty,xw as getDependentPipeNamesForPipe,TO as getDomain,Aw as getExpansionState,Xx as getFaviconUrlGoogle,v as getField,nn as getFieldBehavior,Lu as getFieldDisplayLabel,Mw as getFieldWidgets,$C as getInitialSearchTableData,GD as getInitialSearchesTableData,Mx as getInitialTableData,ja as getInputHash,oi as getJsonMetaForFieldDef,wO as getLoweestSearchCreditAmount,CO as getLoweestSearchesCreditAmount,SO as getLowestPipeCreditAmount,fn as getOutputFieldInfoFromDef,Dx as getPipeBillableOperationDef,_w as getPipeCategoryEntries,gw as getPipeCategoryEntry,xx as getPipeClass,Aa as getPipeConfigHash,Sx as getPipeDefaultPayload,K as getPipeDocsURI,Ex as getPipeEntry,yw as getPipeInstances,Hx as getPipePayloadFormConfig,Cx as getPipePayloadSchema,Ox as getPipeVersion,Y as getProviderBillableOperation,Ma as getProviderCreditsFromBillableOperations,yT as getProviderEntry,sn as getReadableFieldStatus,YD as getSandboxConnections,XD as getSandboxConnectionsForPipe,ZD as getSandboxConnectionsForSearch,QD as getSandboxConnectionsForSearches,nO as getSearchCategoryEntries,tO as getSearchCategoryEntry,RC as getSearchClass,BC as getSearchDefaultPayload,ZC as getSearchEntry,iO as getSearchFieldWidgets,aO as getSearchInstance,ow as getSearchPayloadFormConfig,KC as getSearchPayloadSchema,tw as getSearchTableDataAggregates,YC as getSearchVersion,OD as getSearchesClass,AD as getSearchesDefaultPayload,qD as getSearchesEntry,Nw as getSearchesFieldWidgets,sO as getSearchesInstances,kD as getSearchesPayloadSchema,KD as getSearchesTableDataAggregates,HD as getSearchesVersion,Lx as getStartingCostPerPipesProvider,nw as getStartingCostPerSearchProvider,JD as getStartingCostPerSearchesProvider,Nx as getTableDataAggregates,jw as getUnexpandedValue,Zx as ifDefined,B as inputFields,_T as inputFromRecord,gT as inputFromRecordArr,hT as inputFromRecords,sw as inputGuards,an as isCatalogField,At as isEmptyValue,rn as isFieldName,gO as isPipeAllowed,hO as isProviderAllowed,Ca as isRequirementMet,Ta as isRequirementSatisfiedByRecord,_O as isSearchAllowed,vO as isSearchesAllowed,Jr as joinConnectionString,Pa as markRecordFieldAsComplete,La as markRecordFieldAsFailed,Ia as markRecordFieldAsNoResult,Fa as markRecordFieldAsPending,za as markRecordFieldAsProcessing,Ra as markRecordFieldAsSkipped,pO as matchesAny,fO as matchesPattern,eS as mergeWidgets,E as noConnectorInput,Sa as optional,T as optionalConnectorInput,dn as or,z as outputFields,kr as parseLiquidTemplate,Cr as parseOutputTagArgs,nT as parseRecordValueOrError,OO as parseRichText,yx as pipeCatalog,mw as pipeCategoryCatalog,_x as pipeClassCatalog,vx as pipePayloadSchemaCatalog,Yi as pipesAsyncIncludeExcludeSelectInput,oa as pipesContextSelectInput,Zi as pipesDateRangeInput,Ui as pipesFieldsSelectInput,Wi as pipesIncludeExcludeInput,Ji as pipesIncludeExcludeSelectInput,D as pipesInputField,ra as pipesIntInput,di as pipesJsonExtractionInput,aa as pipesJsonSchemaField,qi as pipesKeyValueListInput,ta as pipesLLMSelectInput,Gi as pipesMultiCreateInput,na as pipesMultiSelectInput,ia as pipesNumberInput,k as pipesOptionalBooleanInput,Ki as pipesOrderedMultiCreateInput,A as pipesOutputField,b as pipesPayloadRegistry,Ri as pipesPromptInput,O as pipesProviderInput,Xi as pipesRangeInput,C as pipesRunIfInput,ea as pipesSelectInput,vw as pipesSnippetCatalog,w as pipesTaggedTextInput,zi as pipesTemplateInput,Qi as pipesTextInput,$i as pipesTextareaInput,X as placeholder,vT as processInputObjects,ur as providerCatalog,J as rateLimitRatioFallingProgression,Dr as renderLiquidTemplate,Or as renderLiquidTemplateSync,Vi as requiredConnectorInput,Na as requirementToInputFields,zh as requirementUnmetMessage,cn as requiresConnection,ln as requiresField,LC as searchCatalog,$D as searchCategoryCatalog,FC as searchClassCatalog,IC as searchPayloadSchemaCatalog,rO as searchSnippetCatalog,L as searchesAsyncIncludeExcludeSelectInput,I as searchesAsyncMultiSelectInput,DD as searchesCatalog,TD as searchesClassCatalog,da as searchesDateRangeInput,la as searchesExactRangeInput,M as searchesIncludeExcludeInput,N as searchesIncludeExcludeSelectInput,R as searchesIntInput,ca as searchesMinMaxIntInput,j as searchesMultiCreateInput,F as searchesMultiSelectInput,_a as searchesNumberField,fa as searchesOptionalBooleanInput,pa as searchesOptionalNullableBooleanInput,sa as searchesOrderedMultiCreateInput,P as searchesOutputField,x as searchesPayloadRegistry,ED as searchesPayloadSchemaCatalog,ua as searchesRangeInput,ga as searchesSelectInput,ma as searchesTextInput,ha as searchesTextareaField,Bu as sortObjectKeys,kx as sortPipeCatalogByBasePipe,XC as sortSearchCatalogByBaseSearch,UD as sortSearchesCatalogByBaseSearch,qr as splitConnectionString,g as staticAutocomplete,h as staticOptions,zu as stringify,Ru as testPrint,aT as transformIntoResponse,Rw as validatePipesOrError,cO as validateSearches,Z as validationErrorMessages};
118
+ `}}],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 yw(e){let t=[];for(let n of e){if(n instanceof W){t.push(n);continue}let e=Tx.parse(n);if(!Ex(n.pipe_id))throw Error(`Unknown pipe: ${n.pipe_id}`);let r=new(xx(n.pipe_id))(e);t.push(r)}return t}function bw(e,t){let n=yw(e),r=new Set;return n.forEach(e=>Object.entries(e.inputFields).forEach(([n,i])=>{i.resolvedName===t&&r.add(e.pipeId)})),Array.from(r)}function xw(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})}function Sw(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 Cw(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 ww(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(Cw(e))return`https://${e}`;if(!Sw(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 Tw(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(Cw(n))return`${e.protocol===`http:`?`http:`:`https:`}//${e.host}${e.pathname}${e.search}${e.hash}`;if(!Sw(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(Sw(i)||Cw(i))return`${e?.toLowerCase()===`http://`?`http:`:`https:`}//${n}${r}`}return``}}function Ew(e){try{return ww(e)}catch{console.warn(`Invalid URL: ${e}`);return}}function Dw(e,t){if(t)switch(e){case`website_url`:return Ew(t);default:return}}function Ow(e){let t;if(kw(e))return Ow(e.value);let n=typeof e;return t=n===`string`||n===`number`||n===`boolean`?n:e===null?`unknown`:`json`,t}function kw(e,t=0){if(typeof e==`object`&&e&&`value`in e&&`status`in e&&xn.safeParse(e.status).success){if(t>1||typeof e.value==`object`&&kw(e.value,t++))throw new Q([Z.RecursiveExpandedValue()]);return!0}return!1}function Aw(e){let t=kw(e),n;return n=t?e.value:e,t?{isExpanded:!0,resolvedInputValue:n,expandedValue:e}:{isExpanded:!1,resolvedInputValue:n,expandedValue:null}}function jw(e){return kw(e)?jw(e.value):e}function Mw(e,t,n){if([`processing`,`completed`].includes(n.status)===!1||t==null)return{};try{let r=nn(e,n.format)?.getStaticWidgets?.(t),i=Dw(n.format,t);return eS(r||{},{display_value:i?{label:i}:void 0})}catch(e){return console.warn(`Failed to generate UI props: ${e}`),{}}}function Nw(e,t,n){if(t==null)return{};try{let r=nn(e,n)?.getStaticWidgets?.(t),i=Dw(n,t);return eS(r||{},{display_value:i?{label:i}:void 0})}catch(e){return console.warn(`Failed to generate UI props: ${e}`),{}}}function Pw(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 Fw=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}=Aw(n),c;c=s&&o.type?o.type:Ow(e);let l;rn(t)&&(l=v(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]=Pw(n,t)}return new e(r)}deleteKey(t){let n=structuredClone(this.annotations);return delete n[t],new e(n)}};function Iw(e){let t={};for(let n=0;n<e.length;n++){let r=e[n];Object.values(r.getOutputFields()).forEach(e=>{if(t[e.resolvedName])throw new Q([Z.AmbiguousDependency({fieldName:e.resolvedName})]);t[e.resolvedName]=n})}return t}function Lw(e){let t=Iw(e),n=[];for(let[r,i]of e.entries()){let e=[];for(let{field:n,required:a}of wa(i.getInputRequirement())){let o=t[n.resolvedName];if(r===o)throw new Q([{code:`SelfReference`,message:`Pipe '${i.pipeId} has an input requirement that points to a field that is produced by itself.'`}]);if(o==null)continue;let s=e.find(e=>e.index===o);s?(s.reason??=[],s.reason=Array.from(new Set([...s.reason,`input`])),s.required=a||s.required):e.push({index:o,required:a,reason:[`input`]})}if(i.payload.run_if){let n=i.payload.run_if.when.conditions.map(e=>e.field_name);for(let r of n){let n=t[r];if(n==null)continue;let i=e.find(e=>e.index===n);i?(i.reason??=[],i.reason=Array.from(new Set([...i.reason,`input`])),i.required=!0):e.push({index:n,required:!0,reason:[`input`]})}}n.push(e)}return n}function Rw({config:e,pipes:t,input:n,field_annotations:r}){try{let i=Hw({config:e,pipes:t,input:n,fieldAnnotations:r});return zw(i),i}catch(e){throw e instanceof Q?e:new Q([Z.ValidationFailed({error:e})])}}function zw(e){for(let t of e.orderedPipeInstances)for(let{field:n}of wa(t.getInputRequirement()))Nm({pipes:e.orderedPipeInstances,derivedInputFields:e.derivedInputFields},n.type),Pm({pipes:e.orderedPipeInstances,derivedInputFields:e.derivedInputFields},n.format)}function Bw(e,t){if(!e&&!t)throw new Q([Z.MustDefineAnnotations()]);return new Fw(t||{}).merge(Fw.fromInput(e||[]))}function Vw(e,t){let n={...t};return e.pipes.forEach((t,r)=>{for(let[i,a]of Object.entries(t.getOutputFields())){let i=n[a.resolvedName];if(i&&i.added_by.ref!==`input`)throw new Q([Z.DuplicatePipeOutput({pipeId:t.pipeId,outputField:a})]);n[a.resolvedName]={type:Nm(e,a.type),added_by:{ref:t.pipeId,config_hash:t.getConfigHashKey(),pipe_index:r},label:i?.label||a.label,format:Pm(e,a.format),is_primary_output:a.isPrimaryOutput}}}),n}function Hw(e){let t=yw(e.pipes),n=Bw(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)}),Gw(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]=Uw(t,n),u=Vw({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 Uw(e,t){let n=Lw(e),r=Ww(n,e,t),i=[],a=[];return r.forEach(t=>{let n=e[t];if(!n)throw new Q([Z.FaultyEnrichmentOrder()]);i.push(n.payload),a.push(n)}),[i,a,n]}function Ww(e,t,n){let r=t.length,i=[],a=new Set,o=new Set,s=[],c=e=>{let n=t[e];return n?wa(n.getInputRequirement()).length>0:!1},l=(n,r=[])=>{if(o.has(n)){let e=n,i=r[r.length-1]||0,a={idx:i,pipe_id:t[i]?.pipeId},o={idx:e,pipeId:t[e]?.pipeId};throw new Q([Z.CircularDependency({currentPipe:a,circularPipe:o})])}if(a.has(n))return;o.add(n),r.push(n);let s=e[n]||[];for(let e of s)l(e.index,r);r.pop(),o.delete(n),a.add(n),i.push(n)};function u(t){if(a.has(t))return;o.add(t);let n=e[t]||[];for(let e of n){if(!a.has(e.index)&&e.required)throw new Q([Z.UnresolvableDependency({index:t,dependencyIndex:e.index})]);!o.has(e.index)&&!e.required&&u(e.index)}o.delete(t),a.add(t),i.push(t)}for(let e=0;e<r;e++)c(e)&&l(e);for(let e=0;e<r;e++)c(e)||l(e);for(let e=0;e<r;e++)u(e);let ee=new Set(Object.keys(n.annotations));for(let e of i){let n=t[e];if(!n)throw Error(`Pipe not defined`);Object.values(n.getOutputFields()).forEach(e=>{ee.add(e.resolvedName)})}for(let[n,r]of t.entries()){let a=r.getInputRequirement();Ca(a,ee)||s.push(Z.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`)?Z.HardInputDependencyViolation({dependencyIndex:e.index,dependencyIndexPipeId:t[e.index]?.pipeId,index:n,indexPipeId:t[n]?.pipeId}):Z.HardConditionDependencyViolation({dependencyIndex:e.index,dependencyIndexPipeId:t[e.index]?.pipeId,index:n,indexPipeId:t[n]?.pipeId}))}r.payload.run_if&&r.payload.run_if.when.conditions.map(e=>e.field_name).forEach(e=>{if(!ee.has(e))throw new Q([Z.ConditionTargetFieldNotFound({fieldName:e,pipeId:r.pipeId,pipeIdx:n})])})}if(s.length>0)throw new Q(s);return i}function Gw(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 qr(e.connection).provider;e.type}).forEach(e=>{e&&n.delete(e)}),n.size>0))throw new Q([Z.MissingCustomConnections({index:t,pipeId:e.pipeId,missingProviders:Array.from(n)})])}}const Kw=[`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`],qw=[`yyyy-MM-dd`,`yyyy/MM/dd`,`MM/dd/yyyy`,`MM-dd-yyyy`,`yyyyMMdd`,`dd-MM-yyyy`,`dd/MM/yyyy`],Jw=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})}),Yw=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 Xw(e){return!isNaN(e.getTime())}const Zw=r.coerce.string().trim().transform(e=>{let t=e.replace(/[^0-9T:.\-/ ]/g,``).trim();for(let e of Kw){let n=ee(t,e,new Date(0));if(Xw(n))return u(n,`yyyy-MM-dd'T'HH:mm:ss`)}throw Error(`Invalid date format: ${e}`)}),Qw=r.coerce.string().trim().transform(e=>{for(let t of qw){let n=ee(e,t,new Date(0));if(Xw(n))return u(n,`yyyy-MM-dd`)}throw Error(`Invalid date format: ${e}`)}),$w=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`}),eT=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()),tT=r.coerce.string().trim().min(1,{message:`Value cannot be empty for this format`});function nT(e,t){if(t===null)return e===``||e==null?null:e;if(e==null)return null;try{switch(t){case`url`:return Jw.parse(e);case`email`:return Yw.parse(e);case`datetime`:return Zw.parse(e);case`date`:return Qw.parse(e);case`decimal`:return $w.parse(e);case`int`:return eT.parse(e);case`currency`:return r.number().parse(e);case`percent`:return r.number().parse(e);case`address_line_1`:return tT.parse(e);case`website_url`:return Jw.parse(e);case`profile_url`:return Jw.parse(e);case`zip_code`:return tT.parse(e);case`markdown`:case`phone`:case`text`:return tT.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 ${zu(e)} into format ${t}: ${r.message}`):r}}function rT(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(kw(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:nT(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 iT(e,t,n){for(let r=0;r<t.length;r++){let i=t[r];i.id||=crypto.randomUUID();let{id:a}=i;if(typeof a!=`string`&&typeof a!=`number`){n.errors.push(Z.InvalidId());continue}if(n.records[a]){n.errors.push(Z.IDConflict({index:r,id:a}));continue}n.order.push(a),n.records[a]={id:a,fields:rT(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{iT(e,t,r);let{queuedRecordIdSet:i,adoptedRecordIdSet:a}=oT(e,t,r,n);if(r.queued_record_ids=i,r.adopted_record_ids=a,sT(e,r,n?.queue?.enabled),pT(e,r),r.errors.length>0)throw new Q(r.errors);return r}catch(e){throw e instanceof Q?e:new Q([Z.ResponseGenerationFailed({error:e})])}}function oT(e,t,n,r){let i=[],a=[];for(let o=0;o<e.orderedPipePayloads.length;o++){let s=e.orderedPipePayloads[o],c=e.orderedPipeInstances[o];if(!c){n.errors.push(Z.UnknownResolver({pipeId:s.pipe_id,index:o}));continue}let{queuedRecordIds:l,adoptedRecordIds:u}=fT(e,t,c,n,r);i=i.concat(l),a=a.concat(u)}return{queuedRecordIdSet:new Set(i),adoptedRecordIdSet:new Set(a)}}function sT(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 ${Lh(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 ${Lh(n)} is missing but required (${r.value?`the value is`:`it has status`}: '${r.value?r.value:r.status}').`,summary:`Missing input`})})};for(let n=0;n<e.orderedPipePayloads.length;n++){let i=e.orderedPipePayloads[n],a=e.orderedPipeInstances[n];if(!a){t.errors.push(Z.UnknownResolver({pipeId:i.pipe_id,index:n}));continue}Object.values(t.records).forEach(e=>{let{valid:t,failedPipeInputField:n,failedRecordField:i}=Ta(a.getInputRequirement(),e);t===!1&&r(a,n,i,e)})}}function cT({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 lT({status:e,config:t}){return t.queue?.enabled?!!(e===`failed`&&t.queue?.triggers?.fieldIsFailed||e===`no_result`&&t.queue?.triggers?.fieldIsNoResult):!1}function uT({inputHashKey:e,configHashKey:t,expandedValue:n,config:r}){return cT({inputHashKey:e,configHashKey:t,expandedValue:n,config:r})||lT({status:n.status,config:r})}function dT({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 fT(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=Nm({pipes:e.orderedPipeInstances,derivedInputFields:e.derivedInputFields},ee),ne=Pm({pipes:e.orderedPipeInstances,derivedInputFields:e.derivedInputFields},a.format),{resolvedInputValue:d,isExpanded:re,expandedValue:f}=Aw(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=Ow(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}=dT({inputHashKey:ae,configHashKey:p,expandedValue:f});e&&s.push(u.id)}if(re&&f.status!==`pending`&&uT({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}=dT({inputHashKey:ae,configHashKey:p,expandedValue:f});e&&s.push(u.id)}uT({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=nT(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 pT(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=Mw(i,r.value,r);r.widgets=eS(r.widgets||{},e)}t.errors.length>0&&(r.status===`pending`||r.status===`queued`)&&(r.status=`failed`)})})}function mT(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 hT(e,t={}){return Object.values(e).map(e=>mT(e.fields,t))}function gT(e,t={}){return e.map(e=>mT(e.fields,t))}function _T(e,t={}){return mT(e.fields,t)}function vT(e,t){return e.map(e=>{let n={};return Object.entries(e).forEach(([e,r])=>{let{isExpanded:i,expandedValue:a,resolvedInputValue:o}=Aw(r);i===!0&&a.status!=null&&t.unexpandStatuses.includes(a.status)?n[e]=o:n[e]=r}),n})}function yT(e){let t=ur[e];if(!t)throw Error(`Provider name '${e}' invalid`);return{...t,provider:e}}const bT=[`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`],xT=r.enum(bT);function ST(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 CT(e,t){let n={name:e,config:t};return ka.hashObject(n)}var $=class{validatePayload(e){try{return this.schema.parse(e)}catch(e){throw e instanceof n?Error(JSON.stringify(r.prettifyError(e))):e}}catalogOutput(e){return{name:e.name,enabled:!!this.payload.config?.output_fields?.[e.name].enabled,type:e.type,format:e.format,resolvedName:this.payload.config?.output_fields?.[e.name]?.alias||e.name,description:e.description,jsonMeta:e.jsonMeta,label:e.label,isCatalogFIeld:!0}}getOutputFields(){let e={};for(let[t,n]of Object.entries(this.getRawOutputFields()))n.enabled&&(e[t]=n);return e}getHashKey(){return CT(this.searchId,this.payload)}};function wT(e){return e.split(`@`)[0]}function TT(e){return`/docs/searches/searches-catalog/${wT(e)}/${e.split(`@`)[1]}`}const ET=`companies:profiles:crustdata@1`,DT=v(`company_name`),OT=v(`company_website_url`),kT=v(`company_description`),AT=v(`company_profile_url`),jT=v(`crustdata_company_match`),MT=r.object({search_id:r.literal(ET),connector:y.nullable().optional(),config:r.object({limit:R({sectionKey:`general`,required:!0,path:`config.limit`,max:1e3,min:1,groupPath:`config.general`,description:``,label:`Limit number of search results`}).default(100),cursor:ma({sectionKey:`general`,path:`config.cursor`,groupPath:`config.general`,inputType:`text`,description:``,label:`Continue previous search from cursor`}),output_fields:z(r.object({[DT.name]:P({fieldName:DT.name}),[OT.name]:P({fieldName:DT.name}),[kT.name]:P({fieldName:kT.name}),[AT.name]:P({fieldName:AT.name}),[jT.name]:P({fieldName:jT.name})})),filters:r.object({hq_locations:I({path:`config.filters.hq_locations`,sectionKey:`config.filters`,label:`HQ locations`,description:``,disableSearch:!1,required:!1,groupPath:`config.filters.location`,optionsDef:_(`locations`)}),crunchbase_categories:I({path:`config.filters.crunchbase_categories`,sectionKey:`config.filters`,label:`Crunchbase categories`,description:``,disableSearch:!1,required:!1,groupPath:`config.filters.categories`,optionsDef:_(`company.crunchbase_categories.crustdata`)}),crunchbase_investors:I({path:`config.filters.crunchbase_investors`,sectionKey:`config.filters`,label:`Investors to include (Crunchbase)`,description:``,disableSearch:!1,required:!1,groupPath:`config.filters.investors`,optionsDef:_(`company.crunchbase_investors.crustdata`)}),tracxn_investors:I({path:`config.filters.tracxn_investors`,sectionKey:`config.filters`,label:`Investors to include (Tracxn)`,description:``,required:!1,groupPath:`config.filters.investors`,disableSearch:!1,optionsDef:_(`company.tracxn_investors.crustdata`)}),company_types:F({sectionKey:`config.filters`,path:`config.filters.company_types`,options:h(`crustdata.company_types`),label:`Company types`,description:``,required:!1,disableSearch:!0,groupPath:`config.filters.categories`}),linkedin_industries:I({sectionKey:`config.filters`,path:`config.filters.linkedin_industries`,optionsDef:_(`linkedin_industries.crustdata`),label:`Industries`,disableSearch:!1,required:!1,description:``,groupPath:`config.filters.industry`}),markets:I({sectionKey:`config.filters`,path:`config.filters.markets`,optionsDef:_(`company.markets.crustdata`),label:`Markets`,disableSearch:!1,required:!1,description:``,groupPath:`config.filters.industry`}),linkedin_categories:I({sectionKey:`config.filters`,path:`config.filters.linkedin_categories`,optionsDef:_(`company.linkedin_categories.crustdata`),label:`Company types`,description:``,required:!1,disableSearch:!0,groupPath:`config.filters.categories`}),headcount:F({path:`config.filters.headcount`,sectionKey:`config.filters`,label:`Headcount`,description:``,disableSearch:!0,required:!1,options:h(`crustdata.company_size`),groupPath:`config.filters.company_size`}),headcount_growth_last_6m_in_percent:F({path:`config.filters.headcount_growth_last_6m_in_percent`,sectionKey:`config.filters`,label:`Headcount growth over last 6 months in percent`,description:``,options:h(`crustdata.headcount_growth`),disableSearch:!0,required:!1,groupPath:`config.filters.company_size`}),revenue_in_usd:ua({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:F({path:`config.filters.last_funding_type`,sectionKey:`config.filters`,label:`Last funding type`,disableSearch:!0,required:!1,options:h(`crustdata.funding_rounds`),description:``,groupPath:`config.filters.financials`}),last_funding_amount:ua({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:F({path:`config.filters.number_of_followers`,sectionKey:`config.filters`,label:`Number of LinkedIn followers`,disableSearch:!0,description:``,required:!1,options:h(`crustdata.company_followers`),groupPath:`config.filters.web_presence`}),follower_growth_last_6m_in_percent:F({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:h(`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`,description:``,groupPath:`config.filters.keywords`}),competitor_websites:j({path:`config.filters.competitor_websites`,sectionKey:`config.filters`,maxItems:50,label:`Competitor domains`,description:`Ex. 'google.com'`,groupPath:`config.filters.competitors`})}).check(e=>{ST(e.value)&&e.issues.push({code:`custom`,message:`You must set at least one filter.`,input:e.value})})})}),NT={default:{input:[{fields:[]}]}},PT=class extends ${searchId=ET;schema=MT;payload;constructor(e){super(),this.payload=this.validatePayload(e)}getRawOutputFields(){return{[DT.name]:this.catalogOutput(DT),[OT.name]:this.catalogOutput(OT),[kT.name]:this.catalogOutput(kT),[AT.name]:this.catalogOutput(AT),[jT.name]:this.catalogOutput(jT)}}getConnectionsRequirements(){return[{provider:`crustdata`,rateLimitOperation:`crustdata_company_db_search`,rateLimitRatio:1,allowManagedConnection:!0}]}getDedupConfig(){return NT}},FT=MT,IT={searchId:ET,billableOperation:`companies-profiles-crustdata`,baseSearch:wT(`companies:profiles:crustdata@1`),label:`Company search`,categories:[`companies`],hasManagedConnection:!0,allowsUserConnection:!0,lifecycle:null,description:`Filter based company search.`,tags:[V.COMPANY_PROFILES],docPath:TT(ET),cost:{mode:`per_page`,creditsPerPage:2},provider:`crustdata`,defaultPayload:{search_id:ET,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:[]}}}},LT=`companies:profiles:exa@1`,RT=v(`company_name`),zT=v(`company_website_url`),BT=v(`company_description`),VT=v(`company_industry`),HT=v(`headcount`),UT=v(`exa_match_evaluation`),WT=r.object({search_id:r.literal(LT),connector:y.nullable().optional(),config:r.object({limit:R({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:z(r.object({[RT.name]:P({fieldName:RT.name}),[zT.name]:P({fieldName:RT.name}),[BT.name]:P({fieldName:BT.name}),[VT.name]:P({fieldName:VT.name}),[HT.name]:P({fieldName:HT.name}),[UT.name]:P({fieldName:UT.name})})),filters:r.object({query:ha({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})})})}),GT={default:{input:[{fields:[]}]}},KT=class extends ${searchId=LT;schema=WT;payload;constructor(e){super(),this.payload=this.validatePayload(e)}getRawOutputFields(){return{[RT.name]:this.catalogOutput(RT),[zT.name]:this.catalogOutput(zT),[BT.name]:this.catalogOutput(BT),[VT.name]:this.catalogOutput(VT),[HT.name]:this.catalogOutput(HT),[UT.name]:this.catalogOutput(UT)}}getConnectionsRequirements(){return[{provider:`exa`,rateLimitOperation:`exa_websets`,rateLimitRatio:1,allowManagedConnection:!0}]}getDedupConfig(){return GT}},qT=WT,JT={searchId:LT,billableOperation:`companies-profiles-exa`,baseSearch:wT(`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:[V.COMPANY_PROFILES],docPath:TT(LT),cost:{mode:`per_result`,creditsPerResult:2},provider:`exa`,defaultPayload:{search_id:LT,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:``}}}},YT=`companies:profiles:icypeas@1`,XT=v(`company_industry`),ZT=v(`company_name`),QT=v(`company_description`),$T=v(`company_website_url`),eE=v(`headcount`),tE=v(`company_region`),nE=v(`company_profile_url`),rE=v(`icypeas_company_match`),iE=r.object({search_id:r.literal(YT),connector:y.nullable().optional(),config:r.object({limit:R({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:z(r.object({company_name:P({fieldName:ZT.name}),company_industry:P({fieldName:XT.name}),company_description:P({fieldName:QT.name}),company_website_url:P({fieldName:$T.name}),headcount:P({fieldName:eE.name}),company_region:P({fieldName:tE.name}),company_profile_url:P({fieldName:nE.name}),icypeas_company_match:P({fieldName:rE.name})})),filters:r.object({name:M({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:N({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:N({path:`config.filters.industry`,sectionKey:`config.filters`,optionsDef:g(`linkedin.industries`),includeLabel:`Industries to include`,excludeLabel:`Industries to exclude`,description:``,placeholder:``,groupPath:`config.filters.industry`,maxItems:50}).optional(),location:M({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:ua({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:M({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:M({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=>{ST(e.value)&&e.issues.push({code:`custom`,message:`You must set at least one filter.`,input:e.value})})})}),aE={default:{input:[{fields:[{outputField:`company_profile_url`}]}]}},oE=class extends ${searchId=YT;schema=iE;payload;constructor(e){super(),this.payload=this.validatePayload(e)}getRawOutputFields(){return{[ZT.name]:this.catalogOutput(ZT),[XT.name]:this.catalogOutput(XT),[nE.name]:this.catalogOutput(nE),[$T.name]:this.catalogOutput($T),[QT.name]:this.catalogOutput(QT),[eE.name]:this.catalogOutput(eE),[tE.name]:this.catalogOutput(tE),[rE.name]:this.catalogOutput(rE)}}getConnectionsRequirements(){return[{provider:`icypeas`,rateLimitOperation:`icypeas_company_database`,rateLimitRatio:1,allowManagedConnection:!0}]}getDedupConfig(){return aE}},sE=iE,cE={searchId:YT,billableOperation:`companies-profiles-icypeas`,baseSearch:wT(`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:[V.COMPANY_PROFILES],docPath:TT(YT),cost:{mode:`per_result`,creditsPerResult:.4},provider:`icypeas`,defaultPayload:{search_id:YT,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:[]}}}}},lE=`people:profiles:clado@1`,uE=v(`name`),dE=v(`job_title`),fE=v(`company_name`),pE=v(`company_profile_url`),mE=v(`profile_url`),hE=v(`clado_person_match`),gE=r.object({search_id:r.literal(lE),connector:y.nullable().optional(),config:r.object({limit:R({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:z(r.object({[uE.name]:P({fieldName:uE.name}),[dE.name]:P({fieldName:dE.name}),[pE.name]:P({fieldName:pE.name}),[fE.name]:P({fieldName:fE.name}),[mE.name]:P({fieldName:mE.name}),[hE.name]:P({fieldName:hE.name})})),filters:r.object({query:ha({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})})})}),_E={default:{input:[{fields:[{outputField:`profile_url`}]}]}},vE=class extends ${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),[mE.name]:this.catalogOutput(mE),[pE.name]:this.catalogOutput(pE),[hE.name]:this.catalogOutput(hE)}}getConnectionsRequirements(){return[{provider:`clado`,rateLimitOperation:`clado_search_people`,rateLimitRatio:1,allowManagedConnection:!0}]}getDedupConfig(){return _E}},yE=gE,bE={searchId:lE,billableOperation:`people-profiles-clado`,baseSearch:jt(`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:[V.PEOPLE_PROFILES],docPath:`/resources/search-catalog/people:profiles:clado/1`,cost:{mode:`per_search`,creditsPerSearch:3},provider:`clado`,defaultPayload:{search_id:lE,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:``}}}},xE=`people:profiles:clado@2`,SE=v(`name`),CE=v(`job_title`),wE=v(`company_name`),TE=v(`company_profile_url`),EE=v(`profile_url`),DE=v(`clado_person_match_v2`),OE=r.object({search_id:r.literal(xE),connector:y.nullable().optional(),config:r.object({limit:R({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:ma({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:R({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:z(r.object({[SE.name]:P({fieldName:SE.name}),[CE.name]:P({fieldName:CE.name}),[TE.name]:P({fieldName:TE.name}),[wE.name]:P({fieldName:wE.name}),[EE.name]:P({fieldName:EE.name}),[DE.name]:P({fieldName:DE.name})})),filters:r.object({query:ha({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`]})}),kE={default:{input:[{fields:[{outputField:`profile_url`}]}]}},AE=class extends ${searchId=xE;schema=OE;payload;constructor(e){super(),this.payload=this.validatePayload(e)}getRawOutputFields(){return{[SE.name]:this.catalogOutput(SE),[CE.name]:this.catalogOutput(CE),[wE.name]:this.catalogOutput(wE),[EE.name]:this.catalogOutput(EE),[TE.name]:this.catalogOutput(TE),[DE.name]:this.catalogOutput(DE)}}getConnectionsRequirements(){return[{provider:`clado`,rateLimitOperation:`clado_search_people`,rateLimitRatio:1,allowManagedConnection:!0}]}getDedupConfig(){return kE}},jE=OE,ME={searchId:xE,billableOperation:`people-profiles-clado`,baseSearch:jt(`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:xE,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:``}}}},NE=`people:employees:leadmagic@1`,PE=v(`name`),FE=v(`job_title`),IE=v(`company_website_url`),LE=v(`company_name`),RE=r.object({search_id:r.literal(NE),connector:y.nullable().optional(),config:r.object({limit:R({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:z(r.object({[PE.name]:P({fieldName:PE.name}),[LE.name]:P({fieldName:LE.name}),[IE.name]:P({fieldName:IE.name}),[FE.name]:P({fieldName:FE.name})})),filters:r.object({company_website_url:ma({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`})})})}),zE={default:{input:[{fields:[{outputField:IE.name}]}]}},BE=class extends ${searchId=NE;schema=RE;payload;constructor(e){super(),this.payload=this.validatePayload(e)}getRawOutputFields(){return{[PE.name]:this.catalogOutput(PE),[FE.name]:this.catalogOutput(FE),[IE.name]:this.catalogOutput(IE),[LE.name]:this.catalogOutput(LE)}}getConnectionsRequirements(){return[{provider:`leadmagic`,rateLimitOperation:`leadmagic_employee_finder`,rateLimitRatio:1,allowManagedConnection:!0}]}getDedupConfig(){return zE}},VE=RE,HE={searchId:NE,billableOperation:`people-employees-leadmagic`,baseSearch:wT(`people:employees:leadmagic@1`),label:`Employee finder`,categories:[`people`],hasManagedConnection:!0,allowsUserConnection:!0,lifecycle:null,description:`Search for employees of a company.`,tags:[V.PEOPLE_PROFILES],docPath:TT(NE),cost:{mode:`per_result`,creditsPerResult:.05},provider:`leadmagic`,defaultPayload:{search_id:NE,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:``}}}},UE=`people:profiles:crustdata@1`,WE=v(`name`),GE=v(`company_website_url`),KE=v(`profile_url`),qE=v(`job_title`),JE=v(`crustdata_person_match`),YE=r.object({search_id:r.literal(UE),connector:y.nullable().optional(),config:r.object({limit:R({sectionKey:`general`,required:!0,path:`config.limit`,max:1e3,min:1,groupPath:`config.general`,description:``,label:`Limit number of results`}).default(100),cursor:ma({sectionKey:`general`,path:`config.cursor`,groupPath:`config.general`,inputType:`text`,description:``,label:`Continue previous search from cursor`}),output_fields:z(r.object({[WE.name]:P({fieldName:WE.name}),[GE.name]:P({fieldName:GE.name}),[KE.name]:P({fieldName:KE.name}),[qE.name]:P({fieldName:qE.name}),[JE.name]:P({fieldName:JE.name})})),filters:r.object({locations:I({path:`config.filters.locations`,sectionKey:`config.filters`,label:`Locations`,disableSearch:!1,required:!1,optionsDef:_(`locations`),groupPath:`config.filters.general`}),profile_headline_keywords:sa({path:`config.filters.profile_headline_keywords`,sectionKey:`config.filters`,label:`Headline contains keywords`,maxItems:100,groupPath:`config.filters.keywords`}),profile_summary_keywords:sa({path:`config.filters.profile_summary_keywords`,sectionKey:`config.filters`,label:`Profile about section contains keywords`,maxItems:100,groupPath:`config.filters.keywords`}),profile_languages:F({path:`config.filters.profile_languages`,sectionKey:`config.filters`,label:`Profile languages`,disableSearch:!1,required:!1,options:h(`crustdata.person_profile_languages`),groupPath:`config.filters.profile`}),languages:F({path:`config.filters.languages`,sectionKey:`config.filters`,label:`Spoken languages`,disableSearch:!1,required:!1,options:h(`crustdata.person_profile_languages`),groupPath:`config.filters.profile`}),skills:I({path:`config.filters.skills`,sectionKey:`config.filters`,label:`Skills`,placeholder:`.NET, PMO, ...`,disableSearch:!1,required:!1,description:``,groupPath:`config.filters.skills`,optionsDef:_(`skills`)}),years_of_experience:F({path:`config.filters.years_of_experience`,sectionKey:`config.filters`,label:`Years of experience`,placeholder:`1 to 2 years`,disableSearch:!0,description:``,required:!1,options:h(`crustdata.years_of_experience`),groupPath:`config.filters.experience`}),current_seniority_levels:N({path:`config.filters.current_seniority_levels`,sectionKey:`config.filters`,disableSearch:!0,label:`Seniority`,optionsDef:g(`crustdata.person_seniority`),description:``,groupPath:`config.filters.experience`}),current_employers:j({path:`config.filters.current_employers`,sectionKey:`config.filters`,label:`Current employers`,description:``,maxItems:200,groupPath:`config.filters.experience`,suggestionsDef:_(`person.current_employer_names.crustdata`)}),current_employers_website_urls:j({path:`config.filters.current_employers_website_urls`,sectionKey:`config.filters`,label:`Current employer domains`,description:``,maxItems:200,groupPath:`config.filters.experience`}),current_job_titles:j({path:`config.filters.current_job_titles`,sectionKey:`config.filters`,label:`Current job titles`,description:``,order:1,groupPath:`config.filters.experience`,suggestionsDef:_(`titles`)}),current_employers_linkedin_industries:I({path:`config.filters.current_employers_linkedin_industries`,sectionKey:`config.filters`,label:`Current employers industries`,disableSearch:!1,required:!1,groupPath:`config.filters.experience`,description:``,optionsDef:_(`linkedin_industries.crustdata`)}),years_at_current_company:F({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:h(`crustdata.years_of_experience`)}),previous_employers_website_urls:j({path:`config.filters.previous_employers_website_urls`,sectionKey:`config.filters`,label:`Previous employer domains`,description:``,maxItems:200,groupPath:`config.filters.experience`}),previous_seniority_levels:N({path:`config.filters.previous_seniority_levels`,sectionKey:`config.filters`,label:`Previous seniority`,disableSearch:!0,optionsDef:g(`crustdata.person_seniority`),description:``,groupPath:`config.filters.experience`}),previous_employers:j({path:`config.filters.previous_employers`,sectionKey:`config.filters`,label:`Previous employer name`,description:``,maxItems:200,groupPath:`config.filters.experience`,suggestionsDef:_(`person.past_employer_names.crustdata`)}),previous_job_titles:j({path:`config.filters.previous_job_titles`,sectionKey:`config.filters`,label:`Current job titles`,description:``,groupPath:`config.filters.experience`,suggestionsDef:_(`titles`)}),previous_employers_linkedin_industries:I({path:`config.filters.previous_employers_linkedin_industries`,sectionKey:`config.filters`,label:`Previous employer industry`,disableSearch:!1,required:!1,groupPath:`config.filters.experience`,description:``,optionsDef:_(`linkedin_industries.crustdata`)}),certifications:j({path:`config.filters.certifications`,sectionKey:`config.filters`,label:`Certifications`,groupPath:`config.filters.certifications_honors`,description:``}),honors:j({path:`config.filters.honors`,sectionKey:`config.filters`,label:`Honors`,groupPath:`config.filters.certifications_honors`,description:``}),recently_changed_jobs:pa({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`,description:``,disableSearch:!1,required:!1,groupPath:`config.filters.education`,optionsDef:_(`person.education_field_of_study.crustdata`)}),degree_names:I({path:`config.filters.degree_names`,sectionKey:`config.filters`,label:`Degree names`,description:``,disableSearch:!1,required:!1,groupPath:`config.filters.education`,optionsDef:_(`person.education_degree.crustdata`)}),school_names:I({path:`config.filters.school_names`,sectionKey:`config.filters`,label:`School names`,description:``,disableSearch:!1,required:!1,groupPath:`config.filters.education`,optionsDef:_(`schools`)}),current_school_names:I({path:`config.filters.current_school_names`,sectionKey:`config.filters`,label:`Currently enrolled at`,description:``,disableSearch:!1,required:!1,groupPath:`config.filters.education`,optionsDef:_(`schools`)}),extracurricular_activities:j({path:`config.filters.extracurricular_activities`,sectionKey:`config.filters`,label:`Extracurricular activities`,description:``,groupPath:`config.filters.education`,suggestionsDef:_(`person.education_activities.crustdata`)})}).check(e=>{ST(e.value)&&e.issues.push({code:`custom`,message:`You must set at least one filter.`,input:e.value})})})}),XE={default:{input:[{fields:[]}]}},ZE=class extends ${searchId=UE;schema=YE;payload;constructor(e){super(),this.payload=this.validatePayload(e)}getRawOutputFields(){return{[WE.name]:this.catalogOutput(WE),[GE.name]:this.catalogOutput(GE),[KE.name]:this.catalogOutput(KE),[qE.name]:this.catalogOutput(qE),[JE.name]:this.catalogOutput(JE)}}getConnectionsRequirements(){return[{provider:`crustdata`,rateLimitOperation:`crustdata_people_db_search`,rateLimitRatio:1,allowManagedConnection:!0}]}getDedupConfig(){return XE}},QE=YE,$E={searchId:UE,billableOperation:`people-profiles-crustdata`,baseSearch:wT(`people:profiles:crustdata@1`),label:`People search`,categories:[`people`],hasManagedConnection:!0,allowsUserConnection:!0,lifecycle:null,description:`Filter-based people search.`,tags:[V.PEOPLE_PROFILES],docPath:TT(UE),cost:{mode:`per_page`,creditsPerPage:5},provider:`crustdata`,defaultPayload:{search_id:UE,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`,tD=v(`name`),nD=v(`profile_url`),rD=v(`job_title`),iD=v(`company_name`),aD=v(`company_region`),oD=v(`exa_match_evaluation`),sD=r.object({search_id:r.literal(eD),connector:y.nullable().optional(),config:r.object({limit:R({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:z(r.object({[tD.name]:P({fieldName:tD.name}),[nD.name]:P({fieldName:nD.name}),[rD.name]:P({fieldName:rD.name}),[iD.name]:P({fieldName:iD.name}),[aD.name]:P({fieldName:aD.name}),[oD.name]:P({fieldName:oD.name})})),filters:r.object({query:ha({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})})})}),cD={default:{input:[{fields:[]}]}},lD=class extends ${searchId=eD;schema=sD;payload;constructor(e){super(),this.payload=this.validatePayload(e)}getRawOutputFields(){return{[tD.name]:this.catalogOutput(tD),[nD.name]:this.catalogOutput(nD),[rD.name]:this.catalogOutput(rD),[iD.name]:this.catalogOutput(iD),[aD.name]:this.catalogOutput(aD),[oD.name]:this.catalogOutput(oD)}}getConnectionsRequirements(){return[{provider:`exa`,rateLimitOperation:`exa_websets`,rateLimitRatio:1,allowManagedConnection:!0}]}getDedupConfig(){return cD}},uD=sD,dD={searchId:eD,billableOperation:`people-profiles-exa`,baseSearch:wT(`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:[V.COMPANY_PROFILES],docPath:TT(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:``}}}},fD=`people:profiles:icypeas@1`,pD=v(`name`),mD=v(`job_title`),hD=v(`profile_headline`),gD=v(`company_website_url`),_D=v(`company_profile_url`),vD=v(`profile_url`),yD=v(`icypeas_person_match`),bD=r.object({search_id:r.literal(fD),connector:y.nullable().optional(),config:r.object({limit:R({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:z(r.object({[pD.name]:P({fieldName:pD.name}),[mD.name]:P({fieldName:mD.name}),[hD.name]:P({fieldName:hD.name}),[gD.name]:P({fieldName:gD.name}),[_D.name]:P({fieldName:_D.name}),[vD.name]:P({fieldName:vD.name}),[yD.name]:P({fieldName:yD.name})})),filters:r.object({firstname:M({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:M({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:M({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:M({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:M({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:M({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:M({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:M({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:M({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:M({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:M({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:M({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:M({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=>{ST(e.value)&&e.issues.push({code:`custom`,message:`The filters object cannot be empty. You must set at least one filter.`,input:e.value})})})}),xD={default:{input:[{fields:[{outputField:`profile_url`}]}]}},SD=class extends ${searchId=fD;schema=bD;payload;constructor(e){super(),this.payload=this.validatePayload(e)}getRawOutputFields(){return{[pD.name]:this.catalogOutput(pD),[mD.name]:this.catalogOutput(mD),[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)}}getConnectionsRequirements(){return[{provider:`icypeas`,rateLimitOperation:`icypeas_lead_database`,rateLimitRatio:1,allowManagedConnection:!0}]}getDedupConfig(){return xD}},CD=bD,wD={searchId:fD,billableOperation:`people-profiles-icypeas`,provider:`icypeas`,baseSearch:wT(fD),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:[V.PEOPLE_PROFILES],docPath:TT(fD),cost:{mode:`per_result`,creditsPerResult:.4},defaultPayload:{search_id:fD,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:[]}}}}},TD={"people:profiles:crustdata@1":ZE,"companies:profiles:crustdata@1":PT,"companies:profiles:exa@1":KT,"people:profiles:exa@1":lD,"people:profiles:icypeas@1":SD,"companies:profiles:icypeas@1":oE,"people:employees:leadmagic@1":BE,"people:profiles:clado@1":vE,"people:profiles:clado@2":AE},ED={"people:profiles:crustdata@1":QE,"companies:profiles:crustdata@1":FT,"companies:profiles:exa@1":qT,"people:profiles:exa@1":uD,"people:profiles:icypeas@1":CD,"companies:profiles:icypeas@1":sE,"people:employees:leadmagic@1":VE,"people:profiles:clado@1":yE,"people:profiles:clado@2":jE},DD={"people:profiles:crustdata@1":$E,"companies:profiles:crustdata@1":IT,"companies:profiles:exa@1":JT,"people:profiles:exa@1":dD,"people:profiles:icypeas@1":wD,"companies:profiles:icypeas@1":cE,"people:employees:leadmagic@1":HE,"people:profiles:clado@1":bE,"people:profiles:clado@2":ME};function OD(e){return TD[e]}function kD(e){return ED[e]}function AD(e){return DD[e].defaultPayload}const jD=t.discriminatedUnion(`search_id`,Object.values(ED).map(e=>e)),MD=t.preprocess(e=>{if(!e||typeof e!=`object`||!(`search_id`in e))return e;let t=AD(e.search_id);return t?{...e,config:va(e?.config||{},t.config)}:e},jD);function ND(e){return Object.keys(DD[e].defaultPayload.config.output_fields)}const PD=Fn,FD=t.object({value:Sn,status:xn,type:yn.optional(),format:Rn.nullable().optional(),resolved_by:Wn.nullable().optional(),widgets:Pn.optional()}),ID=t.record(t.string(),FD.nullable()),LD=t.object({search:t.object({ref:xT}),status:t.enum([`pending`,`processing`,`failed`,`completed`]),errors:t.array(PD),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()})}),RD=t.object({id:t.string(),status:t.enum([`completed`,`failed`,`pending`,`processing`]),results:t.array(ID),search_statuses:t.array(LD),organizationId:t.string()}).openapi(`SearchesResponseSchema`),zD=t.object({environment:t.enum([`production`,`sandbox`]).default(`production`),widgets:t.object({enabled:t.boolean().default(!1)}).default({enabled:!1})}),BD=zD.extend({dedup:t.object({strategy:t.enum([`default`]).nullable()}).default({strategy:null})}),VD=t.object({config:BD.default({dedup:{strategy:`default`},environment:`production`,widgets:{enabled:!1}}),searches:t.array(MD)}).openapi(`SearchesRequestSchema`);function HD(e){let t=e.split(`@`)[1];if(!t)throw Error(`No search version found`);return Number(t)}function UD(){let e={};for(let t of Object.values(DD)){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=HD(e.searchId);return HD(t.searchId)-n})}),e}const WD=UD();function GD(e){let t=[];for(let[n,r]of Object.entries(WD)){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:HD(i.searchId)})}return t}function KD(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 ND(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:WD}}function qD(e){return DD[e]}function JD(e){let t=qD(e);return{[t.provider]:t.cost.mode===`per_result`?t.cost.creditsPerResult:t.cost.mode===`per_search`?t.cost.creditsPerSearch:t.cost.creditsPerPage}}function YD(e){return e.map(e=>({public_id:`sandbox-${e}`,provider:e}))}function XD(e){return YD(Ex(e).allowedUserConnectionProviders)}function ZD(e){return YD([ZC(e).provider])}function QD(e){return YD([qD(e).provider])}const $D=[{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($D.map(e=>[e.id,e]));function tO(e){return eO.get(e)}function nO(){return $D}const rO={"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 iO(e,t,n){if(t==null)return{};try{let r=nn(e,n)?.getStaticWidgets?.(t),i=Dw(n,t);return eS(r||{},{display_value:i?{label:i}:void 0})}catch(e){return console.warn(`Failed to generate UI props: ${e}`),{}}}function aO(e){if(e instanceof qx)return e;let t=e.search_id,n=RC(t);if(!n)throw Error(`Unknown pipe: ${e.search_id}`);return new n(VC.parse(e))}var oO=class extends Vh{constructor(e){super(e.map(e=>e.message).join(`, `)||`Unknown`),this.errors=e}};function sO(e){let t=[];for(let n of e){if(n instanceof $){t.push(n);continue}let e=n.search_id,r=OD(e);if(!r)throw Error(`Unknown pipe: ${n.search_id}`);let i=new r(MD.parse(n));t.push(i)}return t}function cO(e){try{return sO(e.searches)}catch(e){throw e instanceof oO?e:new Q([Z.ValidationFailed({error:e})])}}const lO=/[\\^$.+()|[\]{}]/g,uO=new Map;function dO(e){let t=uO.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(lO,`\\$&`)}let r=RegExp(`^${n}$`);return uO.set(e,r),r}function fO(e,t){return dO(t).test(e)}function pO(e,t){if(!t||t.length===0)return!1;for(let n of t)if(fO(e,n))return!0;return!1}function mO(e,t){if(!t)return!0;let{includes:n,excludes:r}=t;return!(n&&n.length>0&&!pO(e,n)||r&&r.length>0&&pO(e,r))}function hO(e,t){return mO(e,t?.providers)}function gO(e,t){if(!t)return!0;if(!mO(e,t.pipes))return!1;if(t.providers){let n=Ax(e);if(n.length===0)return!0;if(!n.some(e=>hO(e,t)))return!1}return!0}function _O(e,t,n){return t?!(!mO(e,t.searches)||n!==void 0&&!hO(n,t)):!0}function vO(e,t,n){return t?!(!mO(e,t.searchesMulti)||n!==void 0&&!hO(n,t)):!0}function yO(e,t){return t?e.filter(e=>gO(e.pipeId,t)):e.slice()}function bO(e,t){return t?e.filter(e=>_O(e.searchId,t,e.provider)):e.slice()}function xO(e,t){return t?e.filter(e=>vO(e.searchId,t,e.provider)):e.slice()}function SO(e){let t=Object.values(e.billableOperations).map(e=>e.credits||0);return Math.min(...t)}function CO(e){return Math.min(e.cost.mode===`per_result`?e.cost.creditsPerResult:e.cost.mode===`per_search`?e.cost.creditsPerSearch:e.cost.creditsPerPage)}function wO(e){let t=e.cost;return Math.min(t.mode===`per_result`?t.creditsPerResult:t.mode===`per_search`?t.creditsPerSearch:t.creditsPerPage)}function TO(e){let t=Tw(e);return te(t)||new URL(t).hostname}const EO=[`http://`,`https://`,`mailto:`],DO=new Set([`*`,`_`,`~`,"`",`[`,`]`,`(`,`)`,`\\`]);function OO(e){return e?kO(e):[]}function kO(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&&DO.has(o)){n+=o,r+=2;continue}if(a==="`"){let n=AO(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=AO(e,r+2,`**`);if(n>r+2){i(),t.push({type:`strong`,children:kO(e.slice(r+2,n))}),r=n+2;continue}}if(a===`~`&&o===`~`){let n=AO(e,r+2,`~~`);if(n>r+2){i(),t.push({type:`del`,children:kO(e.slice(r+2,n))}),r=n+2;continue}}if(a===`*`&&o!==`*`){let n=AO(e,r+1,`*`);if(n>r+1){i(),t.push({type:`em`,children:kO(e.slice(r+1,n))}),r=n+1;continue}}if(a===`[`){let n=AO(e,r+1,`]`);if(n>-1&&e[n+1]===`(`){let a=AO(e,n+2,`)`);if(a>-1){let o=e.slice(n+2,a);if(EO.some(e=>o.startsWith(e))){i(),t.push({type:`link`,href:o,children:kO(e.slice(r+1,n))}),r=a+1;continue}}}}n+=a,r+=1}return i(),t}function AO(e,t,n){let r=t;for(;r<e.length;){if(e[r]===`\\`&&r+1<e.length){r+=2;continue}if(jO(e,r,n))return r;r+=1}return-1}function jO(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{Qr as AI_MODELS,$r as AI_MODEL_CATALOG,Yn as CatalogSchemaRefSchema,$n as ConditionOperatorsSchema,Kn as ExpandedFieldValueSchema,uh as FIELD_PLACEHOLDERS,zn as FieldAnnotationSchema,Fw as FieldAnnotations,Bn as FieldAnnotationsSchema,pn as FieldNameSchema,In as FieldReasonSchema,Sn as FieldValueSchema,pw as FormStoreSchema,Qn as JSONExtractSchema,Cn as JSONMetaSchema,ar as NoConnectorSchema,y as OptionalConnectorSchema,gn as PIPE_IDS,qC as PaginationTypeSchema,Qy as PersonWorkemailWaterfall1Entry,Zy as PersonWorkemailWaterfall1PayloadSchema,Xy as PersonWorkemailWaterfall1PipeClass,W as Pipe,Vh as Pipe0Error,_n as PipeIdSchema,wx as PipePayloadSchema,lr as PipeRunIfSchema,Q as PipelineValidationError,hn as PipesEnvironmentSchema,Fn as PipesErrorSchema,Xn as PipesFieldDefinitionSchema,Zn as PipesFieldDefinitionsSchema,qn as PipesInputSchema,Fx as PipesRequestConfigSchema,Ix as PipesRequestSchema,Px as PipesResponseSchema,Tx as ProcessedPipePayloadSchema,VC as ProcessedSearchPayloadSchema,MD as ProcessedSearchesPayloadSchema,mn as ProviderNameSchema,Ln as RECORD_FIELD_FORMATS,vn as RECORD_FIELD_TYPES,er as RUN_IF_OPERATOR_LABELS,nr as RUN_IF_STATUS_OPERATORS,tr as RUN_IF_VALUE_OPERATORS,Un as RecordClaimedBySchema,Rn as RecordFieldFormatSchema,Gn as RecordFieldSchema,xn as RecordFieldStatusSchema,yn as RecordFieldTypeSchema,bn as RecordIdSchema,Wn as RecordResolvedBySchema,Jn as RecordSchema,Bh as RequestValidationError,ir as RequiredConnectorSchema,sr as RunIfStatusOperatorsSchema,cr as RunIfStatusValueSchema,or as RunIfValueOperatorsSchema,bT as SEARCHES_IDS,Ux as SEARCH_IDS,qx as Search,UC as SearchErrorSchema,Wx as SearchIdSchema,zC as SearchPayloadSchema,HC as SearchRequestSchema,JC as SearchResponseSchema,WC as SearchResultFieldSchema,GC as SearchResultSchema,PD as SearchesErrorSchema,xT as SearchesIdSchema,jD as SearchesPayloadSchema,zD as SearchesRequestBaseConfigSchema,VD as SearchesRequestSchema,RD as SearchesResponseSchema,FD as SearchesResultFieldSchema,ID as SearchesResultSchema,$ as SearchesSearch,LD as SearchesStatusSchema,Vu as TYPES_TO_FORMATS,uw as WidgetsByKindSchema,Pn as WidgetsSchema,xa as all,Ar as analyzeLiquidTemplate,un as and,U as any,_ as autocomplete,ei as buildAiModelBillableOperations,Lw as buildDependencyGraph,Lm as buildInputRequirementFromTemplates,q as catalogInput,Da as cleanObject,Tw as cleanUrl,ww as cleanWebsiteUrl,zm as collectConstantReferencesFromTemplates,Vx as collectPipeContextSelectFields,wa as collectRequirementFields,Rm as collectSecretReferencesFromTemplates,dO as compilePattern,va as configDefaults,Mi as convertIntermediateFieldsIntoGroups,Ni as defaultSectionMap,Rh as describeRequirement,$x as entityLogoFavicon,Qx as entityLogoProfessionalProfileUrl,Ii as extractFormMetadata,H as field,tn as fieldBehaviorCatalog,en as fieldCatalog,Lh as fieldNameStr,Ow as fieldTypeFromValue,mT as fieldsToObject,yO as filterPipeEntries,bO as filterSearchEntries,xO as filterSearchesEntries,ni as getAiModelBillingKey,ri as getAiModelConnectionRequirements,ti as getAiModelProviders,ii as getAllAiModelProviders,G as getBasePipeName,bx as getDefaultOutputFields,Ax as getDefaultPipeProviders,ew as getDefaultSearchOutputFields,ND as getDefaultSearchesOutputFields,bw as getDependentPipeNamesForInputProperty,xw as getDependentPipeNamesForPipe,TO as getDomain,Aw as getExpansionState,Xx as getFaviconUrlGoogle,v as getField,nn as getFieldBehavior,Lu as getFieldDisplayLabel,Mw as getFieldWidgets,$C as getInitialSearchTableData,GD as getInitialSearchesTableData,Mx as getInitialTableData,ja as getInputHash,oi as getJsonMetaForFieldDef,wO as getLoweestSearchCreditAmount,CO as getLoweestSearchesCreditAmount,SO as getLowestPipeCreditAmount,fn as getOutputFieldInfoFromDef,Dx as getPipeBillableOperationDef,_w as getPipeCategoryEntries,gw as getPipeCategoryEntry,xx as getPipeClass,Aa as getPipeConfigHash,Sx as getPipeDefaultPayload,K as getPipeDocsURI,Ex as getPipeEntry,yw as getPipeInstances,Hx as getPipePayloadFormConfig,Cx as getPipePayloadSchema,Ox as getPipeVersion,Y as getProviderBillableOperation,Ma as getProviderCreditsFromBillableOperations,yT as getProviderEntry,sn as getReadableFieldStatus,YD as getSandboxConnections,XD as getSandboxConnectionsForPipe,ZD as getSandboxConnectionsForSearch,QD as getSandboxConnectionsForSearches,nO as getSearchCategoryEntries,tO as getSearchCategoryEntry,RC as getSearchClass,BC as getSearchDefaultPayload,ZC as getSearchEntry,iO as getSearchFieldWidgets,aO as getSearchInstance,ow as getSearchPayloadFormConfig,KC as getSearchPayloadSchema,tw as getSearchTableDataAggregates,YC as getSearchVersion,OD as getSearchesClass,AD as getSearchesDefaultPayload,qD as getSearchesEntry,Nw as getSearchesFieldWidgets,sO as getSearchesInstances,kD as getSearchesPayloadSchema,KD as getSearchesTableDataAggregates,HD as getSearchesVersion,Lx as getStartingCostPerPipesProvider,nw as getStartingCostPerSearchProvider,JD as getStartingCostPerSearchesProvider,Nx as getTableDataAggregates,jw as getUnexpandedValue,Zx as ifDefined,B as inputFields,_T as inputFromRecord,gT as inputFromRecordArr,hT as inputFromRecords,sw as inputGuards,an as isCatalogField,At as isEmptyValue,rn as isFieldName,gO as isPipeAllowed,hO as isProviderAllowed,Ca as isRequirementMet,Ta as isRequirementSatisfiedByRecord,_O as isSearchAllowed,vO as isSearchesAllowed,Jr as joinConnectionString,Pa as markRecordFieldAsComplete,La as markRecordFieldAsFailed,Ia as markRecordFieldAsNoResult,Fa as markRecordFieldAsPending,za as markRecordFieldAsProcessing,Ra as markRecordFieldAsSkipped,pO as matchesAny,fO as matchesPattern,eS as mergeWidgets,E as noConnectorInput,Sa as optional,T as optionalConnectorInput,dn as or,z as outputFields,kr as parseLiquidTemplate,Cr as parseOutputTagArgs,nT as parseRecordValueOrError,OO as parseRichText,yx as pipeCatalog,mw as pipeCategoryCatalog,_x as pipeClassCatalog,vx as pipePayloadSchemaCatalog,Yi as pipesAsyncIncludeExcludeSelectInput,oa as pipesContextSelectInput,Zi as pipesDateRangeInput,Ui as pipesFieldsSelectInput,Wi as pipesIncludeExcludeInput,Ji as pipesIncludeExcludeSelectInput,D as pipesInputField,ra as pipesIntInput,di as pipesJsonExtractionInput,aa as pipesJsonSchemaField,qi as pipesKeyValueListInput,ta as pipesLLMSelectInput,Gi as pipesMultiCreateInput,na as pipesMultiSelectInput,ia as pipesNumberInput,k as pipesOptionalBooleanInput,Ki as pipesOrderedMultiCreateInput,A as pipesOutputField,b as pipesPayloadRegistry,Ri as pipesPromptInput,O as pipesProviderInput,Xi as pipesRangeInput,C as pipesRunIfInput,ea as pipesSelectInput,vw as pipesSnippetCatalog,w as pipesTaggedTextInput,zi as pipesTemplateInput,Qi as pipesTextInput,$i as pipesTextareaInput,X as placeholder,vT as processInputObjects,ur as providerCatalog,J as rateLimitRatioFallingProgression,Dr as renderLiquidTemplate,Or as renderLiquidTemplateSync,Vi as requiredConnectorInput,Na as requirementToInputFields,zh as requirementUnmetMessage,cn as requiresConnection,ln as requiresField,LC as searchCatalog,$D as searchCategoryCatalog,FC as searchClassCatalog,IC as searchPayloadSchemaCatalog,rO as searchSnippetCatalog,L as searchesAsyncIncludeExcludeSelectInput,I as searchesAsyncMultiSelectInput,DD as searchesCatalog,TD as searchesClassCatalog,da as searchesDateRangeInput,la as searchesExactRangeInput,M as searchesIncludeExcludeInput,N as searchesIncludeExcludeSelectInput,R as searchesIntInput,ca as searchesMinMaxIntInput,j as searchesMultiCreateInput,F as searchesMultiSelectInput,_a as searchesNumberField,fa as searchesOptionalBooleanInput,pa as searchesOptionalNullableBooleanInput,sa as searchesOrderedMultiCreateInput,P as searchesOutputField,x as searchesPayloadRegistry,ED as searchesPayloadSchemaCatalog,ua as searchesRangeInput,ga as searchesSelectInput,ma as searchesTextInput,ha as searchesTextareaField,Bu as sortObjectKeys,kx as sortPipeCatalogByBasePipe,XC as sortSearchCatalogByBaseSearch,UD as sortSearchesCatalogByBaseSearch,qr as splitConnectionString,g as staticAutocomplete,h as staticOptions,zu as stringify,Ru as testPrint,aT as transformIntoResponse,Rw as validatePipesOrError,cO as validateSearches,Z as validationErrorMessages};