@pipe0/base 0.0.8 β†’ 0.0.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,19 @@
1
1
  # @pipe0/ops
2
2
 
3
+ ## 0.0.10
4
+
5
+ ### Patch Changes
6
+
7
+ - Fix unprefixed classes
8
+
9
+ ## 0.0.9
10
+
11
+ ### Patch Changes
12
+
13
+ - v1 preparations
14
+ - Updated dependencies
15
+ - @pipe0/client@0.0.34
16
+
3
17
  ## 0.0.8
4
18
 
5
19
  ### Patch Changes
package/dist/index.mjs CHANGED
@@ -64,7 +64,7 @@ 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=`${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.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={"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 }},
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
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
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pipe0/base",
3
- "version": "0.0.8",
3
+ "version": "0.0.10",
4
4
  "private": false,
5
5
  "description": "",
6
6
  "type": "module",
@@ -44,7 +44,7 @@
44
44
  "tldts": "^7.0.19",
45
45
  "xxhash-wasm": "^1.1.0",
46
46
  "zod": "4.1.12",
47
- "@pipe0/client": "0.0.33"
47
+ "@pipe0/client": "0.0.34"
48
48
  },
49
49
  "devDependencies": {
50
50
  "@types/json-schema": "^7.0.15",