@pipe0/base 0.5.3 β 0.5.4
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 +8 -0
- package/dist/index.mjs +1 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
package/dist/index.mjs
CHANGED
|
@@ -65,7 +65,7 @@ How do you...`,`Y Combinator's most popular startups.
|
|
|
65
65
|
From the current S24 batch.
|
|
66
66
|
|
|
67
67
|
How do you...`]}},crustdata_post_list:{label:`Crustdata Post list`,type:`json`,format:`json_list_string`,description:`Rich JSON post list`,jsonMeta:{zodSchema:Gt,exampleValue:Kt}},role_finder_match:{label:`Role finder match`,type:`json`,format:`json_object`,description:`Result of a role finder operation`,jsonMeta:{zodSchema:sr,exampleValue:cr}},post_text:{label:`Post text`,description:`Raw text content of a social media post`,format:`text`,type:`string`,jsonMeta:null},post_id:{label:`Post ID`,description:`Stable identifier of the post (its LinkedIn share URN)`,format:`text`,type:`string`,jsonMeta:null},amplemarket_person_match:{label:`Person match`,type:`json`,format:`json_object`,description:`Person match object as returned by Amplemarket`,jsonMeta:{zodSchema:mt,exampleValue:ht}},amplemarket_company_match:{label:`Company match`,type:`json`,format:`json_object`,description:`Company match object as returned by Amplemarket`,jsonMeta:{zodSchema:ft,exampleValue:pt}},companyenrich_matches:{label:`CompanyEnrich matches`,type:`json`,format:`json_object`,description:`CompanyEnrich response list.`,jsonMeta:{zodSchema:r.array(Ft),exampleValue:[It]}},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:hn,zodSchema:mn}},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:ar,exampleValue:or},format:`json_object`},professional_profile_url:{label:`LinkedIn Profile URL`,type:`string`,format:`profile_url`,description:`A person's LinkedIn profile URL.`,jsonMeta:null}},Ar={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`}}:{}}},person_profile_match:{},company_region:{getStaticWidgets:e=>{let t={},n=Er(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:{getStaticWidgets(e){return typeof e==`string`?{entity_logo:{entity:e,image_url:at(e)}}:{}}},company_name:{},first_name:{},addressee_name:{},address_line_1:{},address_line_2:{},job_title:{getStaticWidgets(e){return typeof e==`string`?{emoji:{value:er(e)}}:{}}},job_description:{},profile_headline:{},address_city:{},address_country:{},address_state:{},zip_code:{},last_name:{},is_work_email:{},name:{getStaticWidgets(e){return typeof e==`string`?{avatar:{image_url:``,name:e}}:{}}},ip_address:{},skills:{},avatar_url:{},string_input:{},domain:{},url_input:{},slugified:{},http_response_status:{},http_response_body:{},http_response_headers:{},luma_id:{},registered_at:{},luma_event_guest_match:{getStaticWidgets(){return{display_value:{label:`Guest`}}}},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=Or(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=Or(e);return{display_value:t?{label:t}:void 0,icon:{key:`linkedin`}}}},company_profile_url:{getStaticWidgets(e){let t=Or(e);return{display_value:t?{label:t}:void 0,icon:{key:`linkedin`}}}},developer_profile_url:{},alternative_developer_profile_urls:{},profile_posts:{getStaticWidgets(){return{display_value:{label:`LinkedIn posts`}}}},profile:{getStaticWidgets(e){return e?{display_value:{label:`${e.name||`Person`} LinkedIn profile`}}:{}}},clado_person_profile:{getStaticWidgets(e){return e?{display_value:{label:`${e.profile?.name||`Person`} match`}}:{}}},email_subject:{},message:{},slack_message_success:{getStaticWidgets(e){return{display_value:{label:e?`β
Sent`:`β Not sent`}}}},resend_email_success:{getStaticWidgets(e){return{display_value:{label:e?`β
Sent`:`β Not sent`}}}},email_body:{},mobile:{},landline:{},phone:{},funding_history:{},funding_total_usd:{},leadmagic_competitor_list:{getStaticWidgets(e){return e?{display_value:{label:e.map(e=>e.company_name).slice(0,4).join(`, `)}}:{}}},leadmagic_acquisition_history:{getStaticWidgets(e){return e?{display_value:{label:e.map(e=>e.company_name).slice(0,4).join(`, `)}}:{}}},leadmagic_company_news_list:{getStaticWidgets(e){return e?{display_value:{label:`${e.length} news sources`}}:{}}},merge_result:{},website_markdown:{getStaticWidgets(e){return e?{display_value:{label:`π Markdown result`}}:{}}},urls:{},website_html:{},website_url:{},website_links:{},mapped_links:{},firecrawl_extract_result:{getStaticWidgets(){return{display_value:{label:`Extract result`}}}},parallel_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:it.linkedin}}}},crustdata_post_list:{getStaticWidgets(e){return{entity_logo:{entity:`LinkedIn`,image_url:it.linkedin}}}},crustdata_company_match:{},crustdata_company_identity_matches:{},crustdata_person_match:{},parallel_person_entity_match:{},parallel_company_entity_match:{},resend_contact_id:{},lemlist_lead_id:{},lemlist_enrollment_result:{getStaticWidgets(e){return e?{display_value:{label:`Enrolled`}}:{}}},sheet_record_id:{},sheet_record_ids:{},sheet_rows_found_count:{},sheet_found_rows:{getStaticWidgets(e){if(!e)return{};let t=e;return{display_value:{label:`${t.length} row${t.length===1?``:`s`}`}}}},sheet_found_row_ids:{},db_rows_found_count:{},db_found_rows:{getStaticWidgets(e){if(!e)return{};let t=e;return{display_value:{label:`${t.length} row${t.length===1?``:`s`}`}}}},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`}}}},post_match:{},post_text:{},post_id:{},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 g(e){return{...kr[e],name:e}}function jr(e,t){if(Nr(e,t))return Ar[e]}function Mr(e){return e in kr}function Nr(e,t){return e in kr?kr[e].format===t:!1}function Pr(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 Fr=r.enum(`company_description.cleaned_company_name.company_industry.company_region.location_hint.estimated_revenue.founded_year.technology_list.spending_trend.technology_match_builtwith.number_of_social_followers.email.personal_email.alternate_personal_emails.company_news_summary.work_email.headcount.company_website_url.company_domain.company_name.first_name.addressee_name.address_line_1.address_line_2.job_title.job_description.profile_headline.address_city.address_country.address_state.zip_code.last_name.is_work_email.companyenrich_match.companyenrich_matches.name.ip_address.skills.avatar_url.estimated_salary.is_email_valid.profile_url.developer_profile_url.alternative_developer_profile_urls.company_profile_url.profile_posts.clado_person_match.clado_person_match_v2.icypeas_person_match.icypeas_company_match.clado_person_profile.resend_email_success.email_body.email_subject.profile.mobile.landline.phone.message.slack_message_success.funding_history.funding_total_usd.template_output.gmail_email_success.zerobounce_validation_status.zerobounce_validation_match.leadmagic_competitor_list.leadmagic_acquisition_history.leadmagic_company_news_list.merge_result.mapped_links.website_markdown.website_html.website_url.urls.website_links.firecrawl_extract_result.parallel_extract_result.exa_match_evaluation.email_validation_status.million_validation_match.scrape_list_response.resend_contact_id.sheet_record_id.sheet_record_ids.sheet_rows_found_count.sheet_found_rows.sheet_found_row_ids.db_rows_found_count.db_found_rows.input_objects.role_finder_match.logodev_describe_match.logo_url.crustdata_company_match.crustdata_companyenrich_match.crustdata_company_identity_matches.crustdata_person_match.person_profile_match.parallel_person_entity_match.parallel_company_entity_match.post_list_string.crustdata_post_list.crustdata_profile_match_score.amplemarket_person_match.amplemarket_company_match.created_sheet.sheet.string_input.domain.url_input.slugified.http_response_status.http_response_body.http_response_headers.luma_id.registered_at.luma_event_guest_match.post_match.post_text.post_id.lemlist_lead_id.lemlist_enrollment_result.professional_profile_url.professional_profile.company_social_url.mobile_number`.split(`.`)),Ir=r.enum(`pipe0.findymail.crustdata.hunter.zerobounce.millionverifier.googlemaps.gemini.anthropic.leadmagic.mixrank.builtwith.perplexity.serper.icypeas.prospeo.clado.resend.slack.gmail.firecrawl.exa.openai.companyenrich.logodev.amplemarket.parallel.luma.postgres.databricks.lemlist`.split(`.`)),Lr=r.enum([`production`,`sandbox`]),Rr=`prompt:run@1.agent: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.lead:enroll:lemlist@1.people:match:role:waterfall@1.person:match:role:waterfall@1.person:identity:amplemarket@1.company:identity@2.company:identity@3.company:identity:crustdata@1.person:match:amplemarket@1.people:phone:profile:waterfall@1.person:mobile:profileurl:waterfall@1.people:personalemail:profile:waterfall@1.person:personalemail:profileurl:waterfall@1.people:profile:waterfall@1.person:profile:waterfall@1.people:profileurl:email:waterfall@1.person:profileurl:email:waterfall@1.person:profileurl:name@1.people:email:validate:zerobounce@1.person:email:validate:millionverifier@1.people:phone:workemail:waterfall@1.person:mobile:workemail:waterfall@1.fields:merge@1.field:slugify@1.field:domainify@1.website:scrape:firecrawl@1.website:scrapelist:firecrawl@1.website:extract:firecrawl@1.website:extract:parallel@1.website:maplinks:firecrawl@1.row:append:sheet@1.row:expandappend:sheet@1.rows:find:sheet@1.rows:find:postgres@1.rows:find:databricks@1.company:lookalikes:companyenrich@1.company:lookalikes:companyenrich@2.company:match:logodev@1.company:match:logodev@2.person:posts:content:crustdata@1.company:match:crustdata@1.company:match:crustdata@2.people:profile:workemail:crustdata@1.person:profile:workemail:crustdata@1.people:workemail:profileurl:waterfall@1.person:workemail:profileurl:waterfall@1.people:identity:email:waterfall@1.person:identity:email:waterfall@1.person:devprofileurl:profileurl:waterfall@1.http:request@1.company:identity@1.people:professionalprofile:waterfall@1.people:professionalprofileurl:name@1.people:professionalprofileurl:email:waterfall@1.people:mobilenumber:professionalprofile:waterfall@1`.split(`.`),zr=r.enum(Rr),Br=[`string`,`number`,`boolean`,`json`,`unknown`],Vr=r.enum(Br),Hr=r.union([r.number(),r.string()]),Ur=r.union([r.literal(`completed`),r.literal(`failed`),r.literal(`pending`),r.literal(`queued`),r.literal(`processing`),r.literal(`no_result`),r.literal(`skipped`)]),Wr=r.union([r.string().min(1),r.number(),r.boolean(),r.null(),r.record(r.string(),r.unknown()),r.array(r.unknown())]),Gr=r.object({example_value:r.any().nullable(),schema:r.any().nullable()}),Kr=r.object({type:r.literal(`static`).optional()}),qr=Kr.extend({image_url:r.url().describe(`URL to the provider's logo image.`),entity:r.string().describe(`The name of the entity.`)}),Jr=Kr.extend({emoji:r.string().describe(`Country flag emoji.`)}),Yr=Kr.extend({image_url:r.url().describe(`URL to the provider's logo image.`),name:r.string().describe(`The name of the avatar owner.`)}),Xr=Kr.extend({attempted_providers:r.array(r.object({provider:Ir})),available_providers:r.array(Ir),successful_provider:Ir.optional()}),Zr=r.enum([`linkedin`,`job`]),Qr=Kr.extend({key:Zr}).optional(),$r=Kr.extend({result_status:r.enum([`completed`,`failed`])}).optional(),ei=Kr.extend({list:r.array(r.object({source:r.string(),description:r.string().optional(),url:r.string()}))}).optional(),ti=Kr.extend({numeric:r.int().min(1).max(5)}).optional(),ni=Kr.extend({value:r.string().min(1)}).optional(),ri=r.object({display_value:Kr.extend({label:r.string().optional()}),entity_logo:qr.optional(),location_indicator:Jr.optional(),avatar:Yr.optional(),waterfall:Xr.optional(),icon:Qr,action_summary:$r,sources:ei,confidence:ti,emoji:ni}).partial().describe(`A map of widgets associated with this field for UI display, keyed by widget type.`),ii=r.object({code:r.string(),message:r.string(),path:r.string().optional()}),ai=r.object({code:r.string(),summary:r.string(),message:r.string()}),oi=[`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`],si=r.enum(oi);si.nullable();const ci=r.object({type:Vr,label:r.string().nullable().optional(),format:si.nullable().optional(),json_metadata:Gr.nullable().optional()}),li=r.record(r.string(),ci),ui=r.enum([...Rr,`input`]).nullable(),di=r.enum([...Rr,`input`,`system`]).nullable(),fi=r.object({ref:ui,config_hash:r.string().nullable()}),pi=r.object({ref:di,environment:Lr.nullable(),config_hash:r.string().nullable(),input_hash:r.string().nullable()}),mi=r.object({value:Wr,status:Ur,type:Vr,reason:ai.nullable(),claimed_by:fi,resolved_by:pi.nullable(),widgets:ri.optional(),format:si.nullable()}),hi=r.object({value:Wr,status:Ur,reason:ai.nullable().optional(),type:Vr.optional(),format:si.nullable().optional(),claimed_by:fi.optional(),resolved_by:pi.nullable().optional(),widgets:ri.optional()}),gi=r.record(r.string(),r.union([Wr,hi])).openapi(`PipesInput`),_i=r.object({id:Hr,fields:r.record(Hr,mi)}),vi=r.object({type:r.literal(`catalog`),fieldName:r.string().min(1)}),yi=r.object({type:Vr,label:r.string(),added_by:r.object({ref:r.union([zr,r.literal(`input`)]),config_hash:r.string().nullable(),pipe_index:r.number().nullable()}),format:si.nullable(),is_primary_output:r.boolean()}),bi=r.record(r.string(),yi),xi=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:si.nullable().default(null),label:r.string().optional(),type:Vr})})).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)})})}),Si=r.enum([`eq`,`neq`,`gt`,`gte`,`lt`,`lte`,`contains`,`matches`]),Ci={eq:`equals`,neq:`not equals`,gt:`greater than`,gte:`greater than or equal`,lt:`less than`,lte:`less than or equal`,contains:`contains`,matches:`matches regex`},wi=[`eq`,`neq`,`gt`,`gte`,`lt`,`lte`,`contains`,`matches`],Ti=[`eq`,`neq`],Ei=r.object({type:r.literal(`vault`),connection:r.string().refine(e=>{let t=e.split(`_`)[0];return t!=null&&Ir.safeParse(t).success},{message:`Invalid vault connection string: expected the full provider-prefixed value (e.g. "slack_my-workspace") where the segment before the first "_" is a known provider name. Copy the string exactly as the vault lists it β never strip the prefix.`})}),Di=r.object({strategy:r.enum([`first`]).default(`first`),connections:r.array(Ei)}).nullable().optional(),Oi=r.object({strategy:r.enum([`first`]).default(`first`),connections:r.array(Ei).min(1,{message:`Provide your own credentials to use this object.`})},{error:`Provide your own credentials to use this object.`}),ki=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(),Ai=r.enum(wi),ji=r.enum(Ti),Mi=r.enum([`failed`,`no_result`,`completed`,`skipped`]),Ni=r.object({property:r.literal(`value`).describe(`Compare the actual field value. Use operators: eq, neq, gt, gte, lt, lte, contains, matches.`),field_name:r.string().min(1,{message:`Provide a target field for the condition.`}).describe(`Name of a field from input data or produced by an earlier pipe in the workflow.`),operator:Ai.describe(`Comparison operator: "eq", "neq", "gt", "gte", "lt", "lte", "contains", "matches" (regex).`),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.`})})}),Pi=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:ji.describe(`Status comparison operator: "eq" or "neq".`),value:Mi.describe(`Field status to compare against: "completed", "no_result", "failed", or "skipped".`)}),Fi=r.object({logic:r.enum([`and`,`or`]).describe(`"and" = all conditions must match. "or" = any condition matches.`),conditions:r.array(r.discriminatedUnion(`property`,[Ni,Pi])).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).`),Ii=r.object({logic:r.enum([`and`,`or`]).describe(`"and" = all conditions must match. "or" = any condition matches.`),conditions:r.array(Ni).min(1).describe(`Array of value conditions to evaluate.`)}).describe(`Condition block. All conditions are combined with the chosen logic (and/or).`),Li=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:Fi}).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" }] } }`),Ri={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/a612ed1c-d5cf-421a-23c5-3cf74f506100/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/95032a9f-932b-4898-ff0d-45d49390d100/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},anthropic:{name:`anthropic`,label:`Anthropic`,description:`Anthropic's Claude AI models`,url:`https://www.anthropic.com`,public:!0,hasManagedConnections:!0,allowsUserConnections:!0,connectionType:`api_key`,logoUrl:`https://imagedelivery.net/3B3AWuP94-S3Ro5eEac6JA/8f2b7ff3-12a6-4c55-31fd-460b9f461300/icon`,background:{light:`#F0EEE6`,dark:`#2B2A26`},oAuthConfig:null},slack:{name:`slack`,label:`Slack`,description:`A modern business chat application.`,url:`https://slack.com`,public:!0,hasManagedConnections:!1,allowsUserConnections:!0,connectionType:`oauth_token`,logoUrl:`https://imagedelivery.net/3B3AWuP94-S3Ro5eEac6JA/676e823c-c926-4b0b-465c-121b9d1c3300/icon`,background:{light:`#F1E0FF`,dark:`#2A0E44`},oAuthConfig:{}},companyenrich:{name:`companyenrich`,label:`CompanyEnrich`,description:`A company enrichment service.`,url:`https://companyenrich.com`,public:!0,hasManagedConnections:!0,allowsUserConnections:!0,connectionType:`api_key`,logoUrl:`https://imagedelivery.net/3B3AWuP94-S3Ro5eEac6JA/e80b3a16-7b36-4733-bcbe-46f471d33100/icon`,background:{light:`#DCEEFF`,dark:`#0E2C4A`},oAuthConfig:{}},mixrank:{name:`mixrank`,label:`MixRank`,description:`Ultra-high-frequency technographic and people data for your data teams.`,url:`https://mixrank.com/`,hasManagedConnections:!0,allowsUserConnections:!1,connectionType:`api_key`,oAuthConfig:{},public:!0,logoUrl:`https://imagedelivery.net/3B3AWuP94-S3Ro5eEac6JA/a29f3095-b3f9-4b12-d21b-1c506ccd7200/icon`,background:{light:`#FFE5D4`,dark:`#3A1D08`}},clado:{name:`clado`,label:`Clado`,description:`A data provider deploying 10^5 AI agents to find contact information.`,public:!0,hasManagedConnections:!0,allowsUserConnections:!0,connectionType:`api_key`,url:`https://clado.ai`,logoUrl:`https://imagedelivery.net/3B3AWuP94-S3Ro5eEac6JA/fdf3d2d0-70be-45c3-2fe5-a8c5cac55a00/icon`,background:{light:`#E8E8EC`,dark:`#1A1A1F`},oAuthConfig:null},gmail:{name:`gmail`,label:`Gmail`,description:`Google's email service`,public:!0,hasManagedConnections:!1,allowsUserConnections:!0,connectionType:`oauth_token_bundle`,url:`https://mail.google.com`,logoUrl:`https://imagedelivery.net/3B3AWuP94-S3Ro5eEac6JA/8da8ab6b-7f7e-4c42-6abf-212ea537db00/icon`,background:{light:`#FFD8D8`,dark:`#45100F`},oAuthConfig:{}},resend:{name:`resend`,label:`Resend`,description:`An email platform built for developers.`,public:!0,hasManagedConnections:!1,allowsUserConnections:!0,url:`https://clado.ai`,connectionType:`api_key`,logoUrl:`https://imagedelivery.net/3B3AWuP94-S3Ro5eEac6JA/7c88f71b-8472-40f4-4bec-0e77eac30400/icon`,background:{light:`#EDEDEE`,dark:`#1A1A1C`},oAuthConfig:null},firecrawl:{name:`firecrawl`,label:`Firecrawl`,description:`Firecrawl is an API service that takes a URL, crawls it, and converts it into clean markdown. Firecrawl crawls all accessible subpages and gives you clean markdown for each. No sitemap required.`,public:!0,hasManagedConnections:!0,allowsUserConnections:!0,url:`https://www.firecrawl.dev`,connectionType:`api_key`,logoUrl:`https://imagedelivery.net/3B3AWuP94-S3Ro5eEac6JA/5c318569-7bf4-4276-a3f2-1f25530f7f00/icon`,background:{light:`#FFE5CC`,dark:`#3A1A05`},oAuthConfig:null},exa:{name:`exa`,label:`Exa`,description:`Exa is a search engine built for AI.`,public:!0,hasManagedConnections:!0,allowsUserConnections:!0,url:`https://exa.ai/`,connectionType:`api_key`,logoUrl:`https://imagedelivery.net/3B3AWuP94-S3Ro5eEac6JA/8ae69780-4506-4952-a90e-02e70b06af00/icon`,background:{light:`#D8DCFF`,dark:`#14154A`},oAuthConfig:null},openai:{name:`openai`,label:`OpenAI`,description:`Foundational AI company based out of San Francisco.`,public:!0,hasManagedConnections:!0,allowsUserConnections:!0,url:`https://openai.com/`,connectionType:`api_key`,logoUrl:`https://imagedelivery.net/3B3AWuP94-S3Ro5eEac6JA/7ac79c3a-bccb-4ed4-d6e5-7b300b2fd300/icon`,background:{light:`#D8EFE4`,dark:`#0C2A1C`},oAuthConfig:null},millionverifier:{name:`millionverifier`,label:`MillionVerifier`,description:`E-Mail validation service.`,public:!0,hasManagedConnections:!0,allowsUserConnections:!0,url:`https://www.millionverifier.com/`,connectionType:`api_key`,logoUrl:`https://imagedelivery.net/3B3AWuP94-S3Ro5eEac6JA/7a8bd9cb-efeb-492e-3f4c-311c9492b800/icon`,background:{light:`#D8F0DB`,dark:`#0E3215`},oAuthConfig:null},logodev:{name:`logodev`,label:`Logo.dev`,description:`Every company logo, one simple API.`,public:!0,hasManagedConnections:!0,allowsUserConnections:!0,url:`https://www.logo.dev/`,connectionType:`api_key`,logoUrl:`https://imagedelivery.net/3B3AWuP94-S3Ro5eEac6JA/1defa51b-5c01-4034-1030-60f68aa46400/icon`,background:{light:`#F4ECD4`,dark:`#2C2406`},oAuthConfig:null},crustdata:{name:`crustdata`,label:`Crustdata`,description:`Real-time company & people data`,public:!0,hasManagedConnections:!0,allowsUserConnections:!0,url:`https://crustdata.com/`,connectionType:`api_key`,logoUrl:`https://imagedelivery.net/3B3AWuP94-S3Ro5eEac6JA/fa05be24-d174-40f0-69c2-4fdb43c6be00/icon`,background:{light:`#FFE2D2`,dark:`#3C1A08`},oAuthConfig:null},amplemarket:{name:`amplemarket`,label:`Amplemarket`,description:`Sales data platform`,public:!0,hasManagedConnections:!0,allowsUserConnections:!0,url:`https://www.amplemarket.com`,connectionType:`api_key`,logoUrl:`https://imagedelivery.net/3B3AWuP94-S3Ro5eEac6JA/adecf16b-4187-409b-d77f-16fc07fc6100/icon`,background:{light:`#FFD8E1`,dark:`#45102A`},oAuthConfig:null},parallel:{name:`parallel`,label:`Parallel`,description:`Agentic web search & research APIs purpose-built for AI agents.`,public:!0,hasManagedConnections:!0,allowsUserConnections:!0,url:`https://parallel.ai`,connectionType:`api_key`,logoUrl:`https://imagedelivery.net/3B3AWuP94-S3Ro5eEac6JA/13d4ae54-9400-4577-8fbf-c96021fb0000/icon`,background:{light:`#E0E5FF`,dark:`#0F1A3D`},oAuthConfig:null},luma:{name:`luma`,label:`Luma`,description:`Delightful events, calendars, and ticketing for communities.`,public:!0,hasManagedConnections:!1,allowsUserConnections:!0,url:`https://lu.ma`,connectionType:`api_key`,logoUrl:`https://imagedelivery.net/3B3AWuP94-S3Ro5eEac6JA/ed6cf16b-e69e-4f90-7718-85e4600fff00/icon`,background:{light:`#FFF0E6`,dark:`#3A1F0F`},oAuthConfig:null},postgres:{name:`postgres`,label:`PostgreSQL`,description:`Connect your own PostgreSQL database and query it read-only.`,url:`https://www.postgresql.org`,public:!0,hasManagedConnections:!1,allowsUserConnections:!0,connectionType:`connection_string`,logoUrl:`https://imagedelivery.net/3B3AWuP94-S3Ro5eEac6JA/eb8b2802-8280-45c3-ee08-a24aad6a0a00/icon`,background:{light:`#DCE9F5`,dark:`#0B2A45`},oAuthConfig:null},databricks:{name:`databricks`,label:`Databricks`,description:`Query your Databricks SQL warehouse read-only via a service principal.`,url:`https://www.databricks.com`,public:!0,hasManagedConnections:!1,allowsUserConnections:!0,connectionType:`databricks`,logoUrl:`https://imagedelivery.net/3B3AWuP94-S3Ro5eEac6JA/07b73e49-e1fa-445b-865e-2b7dc2641700/icon`,background:{light:`#F5E6DC`,dark:`#3A1B0B`},oAuthConfig:null},lemlist:{name:`lemlist`,label:`lemlist`,description:`Sales engagement & cold outreach platform.`,url:`https://lemlist.com`,public:!0,hasManagedConnections:!1,allowsUserConnections:!0,connectionType:`api_key`,logoUrl:`https://imagedelivery.net/3B3AWuP94-S3Ro5eEac6JA/5d2b25c5-86a7-4eea-9416-fcca77cc7000/icon`,background:{light:`#E6F0FF`,dark:`#0E1F3D`},oAuthConfig:null}},zi=[`if`,`elsif`,`else`,`endif`,`unless`,`endunless`,`for`,`endfor`,`break`,`continue`,`output`],Bi=[`json`,`escape`,`escape_once`,`default`,`upcase`,`downcase`,`size`,`join`,`first`,`last`,`replace`,`truncate`,`strip`,`newline_to_br`,`url_encode`],Vi=/^[A-Z][A-Z0-9_]*$/,Hi=/^[A-Z][A-Z0-9_]*$/,Ui=/^[a-zA-Z_][a-zA-Z0-9_]*$/,Wi=`SECRETS`,Gi=`CONSTANTS`,Ki=new Set(zi),qi=new Set(Bi),Ji=e=>`{${e}}`;var Yi=class extends i{constructor(e){super(),this.values=e}liquidMethodMissing(e){let t=String(e);if(!Vi.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]}},Xi=class extends i{constructor(e){super(),this.values=e}liquidMethodMissing(e){let t=String(e);if(!Hi.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 Zi(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(!Ui.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 Qi(){let e=new a({strictVariables:!1,strictFilters:!0,jsTruthy:!0,greedy:!1,catchAllErrors:!1,ownPropertyOnly:!0});e.registerTag(`output`,{parse(e,t){let n=Zi(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(Ji(n.name))}});for(let t of Object.keys(e.tags))Ki.has(t)||delete e.tags[t];for(let t of Object.keys(e.filters))qi.has(t)||delete e.filters[t];return e}let $i=null;function ea(){return $i||=Qi(),$i}async function ta(e,t,n={}){let r=ea(),i=n.renderLimitMs??250,a={...t.inputs??{},[Wi]:new Yi(t.secrets??{}),[Gi]:new Xi(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 na(e,t,n={}){let r=ea(),i=n.renderLimitMs??250,a={...t.inputs??{},[Wi]:new Yi(t.secrets??{}),[Gi]:new Xi(t.constants??{})},o=r.parseAndRenderSync(e,a,{globals:{__outputAllowed:n.outputAllowed===!0},renderLimit:i});return String(o)}function ra(e){return ea().parse(e)}function ia(e){let t=ea().parse(e),n={scopeStack:[],guardStack:[],inputs:new Map,secrets:new Set,constants:new Set,outputs:[],forDepth:0};aa(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 aa(e,t){for(let n of e)oa(n,t)}function oa(e,t){let n=e;if(n.value&&typeof n.value==`object`&&`filters`in n.value&&`initial`in n.value){da(n.value,t,!1);return}if(typeof n.name==`string`){sa(n,t);return}}function sa(e,t){switch(e.name){case`for`:ca(e,t);return;case`if`:case`unless`:la(e,t);return;case`output`:ua(e,t);return;case`break`:case`continue`:return;default:throw Error(`Unhandled liquid tag in analyzer: ${e.name}`)}}function ca(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&&fa(e.collection,t,!1);let n=typeof e.variable==`string`?e.variable:null;n&&t.scopeStack.push(n),aa(Array.isArray(e.templates)?e.templates:[],t),n&&t.scopeStack.pop(),aa(Array.isArray(e.elseTemplates)?e.elseTemplates:[],t),--t.forDepth}function la(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=ha(i.initial)),a&&t.guardStack.push(a),i&&typeof i==`object`&&da(i,t,!1),aa(r.templates,t),a&&t.guardStack.pop()}aa(Array.isArray(e.elseTemplates)?e.elseTemplates:[],t)}function ua(e,t){let n=e.outputDecl;if(!n){let t=e.token?.args;typeof t==`string`&&(n=Zi(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 da(e,t,n){let r=e.filters.some(e=>e.name===`default`),i=n||r;for(let n of e.initial.postfix)ga(n)&&ma(n,t,i);for(let n of e.filters)for(let e of n.args)pa(e,t)}function fa(e,t,n){ga(e)&&ma(e,t,n)}function pa(e,t){if(Array.isArray(e)){let n=e[1];n&&fa(n,t,!1)}else fa(e,t,!1)}function ma(e,t,n){let r=e.props;if(r.length===0)return;let i=r[0];if(!i||!_a(i))return;let a=i.content;if(t.scopeStack.includes(a))return;if(a===`SECRETS`){let e=r[1];if(!e||!_a(e))throw Error(`Invalid SECRETS reference β expected SECRETS.KEY (got ${ba(r)}).`);let n=e.content;if(!Vi.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||!_a(e))throw Error(`Invalid CONSTANTS reference β expected CONSTANTS.KEY (got ${ba(r)}).`);let n=e.content;if(!Hi.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 ha(e){if(e.postfix.length===1){let t=e.postfix[0];if(t&&ga(t)&&t.props.length===1){let e=t.props[0];if(e&&_a(e))return e.content}}if(e.postfix.length===3){let[t,n,r]=e.postfix;if(t&&n&&r&&ga(t)&&t.props.length===1){let e=t.props[0];if(e&&_a(e)&&va(n)&&ya(r,[`==`,`!=`]))return e.content}}return null}function ga(e){return e.kind===o.PropertyAccess}function _a(e){return!!e&&typeof e==`object`&&e.kind===o.Word}function va(e){if(e.kind!==o.Literal)return!1;let t=e.literal;return t===`nil`||t===`null`}function ya(e,t){return e.kind===o.Operator?t.includes(e.operator):!1}function ba(e){let t=[];for(let n of e)n&&_a(n)?t.push(n.content):t.push(`?`);return t.join(`.`)}function xa(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:Ir.parse(n),id:r}}catch{throw Error(`Connection string ${e}: Failed to parse provider name.`)}}function Sa(e){return`${e.provider}_${e.id}`}const Ca=new s;function wa(e){return Ca.validateSchema(e)}function Ta(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}function Ea(e){try{return JSON.parse(e)}catch{}return JSON.parse(ja(e))}function Da(e){try{return Ea(e)}catch{return}}const Oa=/[A-Za-z_$]/,ka=/[\w$]/,Aa=/\s/;function ja(e){let t=``,n=0,r=e.length;for(;n<r;){let i=e[n];if(i===`"`||i===`'`){let a=i,o=``;for(n++;n<r&&e[n]!==a;){if(e[n]===`\\`){o+=`\\${e[n+1]??``}`,n+=2;continue}o+=e[n],n++}n++,t+=JSON.stringify(Ma(o));continue}if(Oa.test(i)){let i=n;for(;i<r&&ka.test(e[i]);)i++;let a=e.slice(n,i),o=i;for(;o<r&&Aa.test(e[o]);)o++;t+=e[o]===`:`?JSON.stringify(a):a,n=i;continue}if(i===`,`){let t=n+1;for(;t<r&&Aa.test(e[t]);)t++;if(e[t]===`}`||e[t]===`]`){n++;continue}}t+=i,n++}return t}function Ma(e){let t=``;for(let n=0;n<e.length;n++){if(e[n]!==`\\`){t+=e[n];continue}let r=e[++n];switch(r){case`n`:t+=`
|
|
68
|
-
`;break;case`t`:t+=` `;break;case`r`:t+=`\r`;break;case`b`:t+=`\b`;break;case`f`:t+=`\f`;break;case`v`:t+=`\v`;break;case`0`:t+=`\0`;break;case`u`:{let r=e.slice(n+1,n+5);/^[0-9a-fA-F]{4}$/.test(r)?(t+=String.fromCharCode(Number.parseInt(r,16)),n+=4):t+=`u`;break}default:t+=r??``;break}}return t}const Na=(e,t=`Add a ${e} connection to enable this field`)=>n=>(n.connector?.connections??[]).some(t=>t?.connection?.startsWith(`${e}_`))?{disabled:!1}:{disabled:!0,message:t},Pa=(e,t)=>n=>{let r=e(n);return r!=null&&r!==``?{disabled:!1}:{disabled:!0,message:t}},Fa=(...e)=>t=>{for(let n of e){let e=n(t);if(e.disabled)return e}return{disabled:!1}},Ia=(...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},La=[`google-low`,`openai-high`,`anthropic-high`],Ra={"google-low":{label:`Gemini 3.5 Flash`,provider:`gemini`,rateLimitOperation:`gemini_35_flash`,rateLimitRatio:1,allowManagedConnection:!0,billingMode:`always`},"openai-high":{label:`GPT-5.5`,provider:`openai`,rateLimitOperation:`openai_gpt-5`,rateLimitRatio:1,allowManagedConnection:!0,billingMode:`always`},"anthropic-high":{label:`Claude Opus 4.8`,provider:`anthropic`,rateLimitOperation:`anthropic_opus`,rateLimitRatio:1,allowManagedConnection:!0,billingMode:`always`}},za=.03,Ba=.3,Va=100,Ha=100,Ua={"google-low":{inputPer1M:1.5,outputPer1M:9},"openai-high":{inputPer1M:5,outputPer1M:30},"anthropic-high":{inputPer1M:5,outputPer1M:25}};function Wa(e){let t=Ra[e];if(!t)throw Error(`Unknown AI model: ${e}`);return[t.provider]}function Ga(e){let t=Ra[e];if(!t)throw Error(`Unknown AI model: ${e}`);return[{provider:t.provider,rateLimitRatio:t.rateLimitRatio,rateLimitOperation:t.rateLimitOperation,allowManagedConnection:t.allowManagedConnection}]}function Ka(){let e=new Set;for(let t of La)e.add(Ra[t].provider);return[...e]}function qa(e){return Object.keys(e).some(e=>La.some(t=>e.endsWith(`-in-${t}`)||e.endsWith(`-out-${t}`)))}function Ja(e,t){return e/1e6*(1+Ba)/za*t}function Ya(e){let t=Ua[e];if(!t)throw Error(`Unknown AI model: ${e}`);return{in:Ja(t.inputPer1M,100),out:Ja(t.outputPer1M,100)}}function Xa(e,t){let n=Math.round(Ba*100);return`Billed per 100 ${e} tokens at ${Number(t.toPrecision(4))} credits/block (managed keys include a ${n}% margin over provider cost).`}function Za(e){let t={};for(let n of La){let r=Ra[n],i=Ya(n);t[`${e}-in-${n}`]={credits:{default:i.in},allowManagedConnection:!0,provider:r.provider,mode:r.billingMode,note:Xa(`input`,i.in)},t[`${e}-out-${n}`]={credits:{default:i.out},allowManagedConnection:!0,provider:r.provider,mode:r.billingMode,note:Xa(`output`,i.out)}}return t}function Qa(e,t){return{input:`${t}-in-${e}`,output:`${t}-out-${e}`}}function $a(e,t){let n=Qa(t.model,t.prefix);return[{billableOperation:n.input,quantity:e.count*Math.ceil(t.inputTokens/100)},{billableOperation:n.output,quantity:e.count*Math.ceil(t.outputTokens/100)}]}var eo=class{carriedInput=0;carriedOutput=0;addUsage(e){this.carriedInput+=Math.max(0,e.inputTokens),this.carriedOutput+=Math.max(0,e.outputTokens)}drainBlocks(){let e=Math.floor(this.carriedInput/100),t=Math.floor(this.carriedOutput/100);return this.carriedInput-=e*100,this.carriedOutput-=t*100,{inBlocks:e,outBlocks:t}}flush(){let e=+(this.carriedInput>0),t=+(this.carriedOutput>0);return this.carriedInput=0,this.carriedOutput=0,{inBlocks:e,outBlocks:t}}};function to(e){if(!e?.requires)return;let t=[];e.requires.connection&&t.push(Na(e.requires.connection));for(let n of e.requires.fields??[])t.push(Pa(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]:Fa(...t)}function no(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=Pr(e,n,t),s=Mr(o.fieldName)?g(o.fieldName):null;return s?.jsonMeta?{jsonSchema:s.jsonMeta.zodSchema?r.toJSONSchema(s.jsonMeta.zodSchema):null,exampleValue:s.jsonMeta.exampleValue||null}:i}const _=r.registry();{let e=_._map,t=_.get.bind(_);_.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 v=r.registry();{let e=v._map,t=v.get.bind(v);v.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 y=r.registry();{let e=y._map,t=y.get.bind(y);y.get=n=>{let r=n;for(;r;){let t=e.get(r);if(typeof t==`function`)return t;r=r?._zod?.parent}return t(n)}}const ro=e=>e,b={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(),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(),number_input:r.coerce.number(),min_max_int_input:r.object({min:r.number().nullable().default(null),max:r.number().nullable().default(null)}),include_exclude_input:r.object({include:r.array(r.string()).default([]),exclude:r.array(r.string()).default([])}),include_exclude_select_input:r.object({include:r.array(r.string()).default([]),exclude:r.array(r.string()).default([])}),async_include_exclude_select_input:r.object({include:r.array(r.string()).default([]),exclude:r.array(r.string()).default([])}),exact_range_input:r.record(r.string(),r.number().nullable()),range_input:r.object({from:r.number().nullable(),to:r.number().nullable()}),date_range_input:r.record(r.string(),r.string()),multi_create_input:r.array(r.string()),ordered_multi_create_input:r.array(r.string()),tagged_ordered_multi_create_input:r.array(r.string()),loose_object_input:r.record(r.string(),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(),condition_block_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())]),search_payload_input:r.looseObject({search_id:r.string()})},io=(e,t,n)=>{let r=[t.description||n,t.guide].filter(Boolean).join(` `);return r?e.describe(r):e},ao=(e,t)=>{let n=b.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},oo=(e,t)=>{let n=b.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},so=/^\s*\{\{\s*[a-zA-Z_][a-zA-Z0-9_.]*(?:\s*\|\s*[^}]+)?\s*\}\}\s*$/,co=/\{\{|\{%/,lo=(e,t)=>{let n=b.tagged_ordered_multi_create_input;e.maxItems&&(n=n.max(e.maxItems)),n=n.check(e=>{let t=e;(t.value??[]).forEach((e,n)=>{let r=so.test(e),i=co.test(e);!r&&i&&t.issues.push({code:`custom`,input:e,path:[n],message:`Each entry must be either plain text or a single field reference β not mixed.`})})}),n=e.minItems?n.min(e.minItems):n.default([]);let r={type:`tagged_ordered_multi_create_input`,...e};if(t===_){let i=t=>{let n=t.validationContext,i=n?Object.entries(n.fieldDefinitions).filter(([e,n])=>n.added_by.config_hash!==t.hash).filter(([t,n])=>!e.expectedTagType||n.type===e.expectedTagType).map(([e,t])=>({...t,resolvedName:e})):[];return{...r,inputFields:i}};return i.staticMeta={...r,inputFields:[]},t.add(n,i),n}return t.add(n,r),n},uo=(e,t)=>{let n=b.loose_object_input;n=n.check(t=>{let n=t,r=Object.entries(n.value??{});e.minKeys!=null&&r.length<e.minKeys&&n.issues.push({code:`custom`,input:n.value,message:`Add at least ${e.minKeys} ${e.keyLabel?.toLowerCase()??`entr`}${e.keyLabel?`s`:`ies`}.`}),e.maxKeys!=null&&r.length>e.maxKeys&&n.issues.push({code:`custom`,input:n.value,message:`Use at most ${e.maxKeys} ${e.keyLabel?.toLowerCase()??`entr`}${e.keyLabel?`s`:`ies`}.`}),r.forEach(([e,t])=>{Vo({value:t,issues:n.issues},!1,[e])})}),n=n.default({});let r={type:`loose_object_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},fo=(e,t)=>{let n=e.maxItems||200,r=io(b.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)`})}),e);return t.add(r,{type:`include_exclude_input`,...e}),r},po=()=>{let e=xi;return _.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}=no(e,t,n)||{};return{fieldName:e,fieldLabel:n.label,schema:r||null,exampleValue:i||null}}),path:`config.json_extraction`,groupPath:`config.json_extraction`,sectionKey:`general`}}),e},mo=(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:Ri[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},ho=(e,t)=>{let n=e.maxItems||200,r=io(b.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)`})}),e);return t.add(r,{type:`include_exclude_select_input`,...e}),r},go=(e,t)=>{let n=io(b.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`}`})}),e);return t.add(n,{type:`exact_range_input`,...e}),n},_o=(e,t)=>{let n=r.object({from:r.number().optional().nullable(),to:r.number().optional().nullable()}).default({from:null,to:null}),i=n;(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.`})}));let a=io(i,e);return t.add(a,{type:`range_input`,...e}),a},vo=(e,t)=>{let n=io(b.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`})}),e);return t.add(n,{type:`date_range_input`,...e}),n},yo=(e,t)=>{let n=io(b.boolean_input.default(e.defaultValue),e);return t.add(n,{...e,required:!1,type:`boolean_input`}),n},bo=(e,t)=>{let n=io(b.nullable_boolean_input.default(e.defaultValue),e);return t.add(n,{...e,required:!1,type:`nullable_boolean_input`,defaultValue:e.defaultValue}),n},xo=(e,t)=>{let n=b.text_input;e.minLength&&(n=n.min(e.minLength)),e.maxLength&&(n=n.max(e.maxLength)),e.pattern&&(n=n.regex(new RegExp(e.pattern)));let r=io(n,e);return t.add(r,{type:`text_input`,...e}),r},So=(e,t)=>{let n=b.textarea_input;e.minLength&&(n=n.min(e.minLength)),e.maxLength&&(n=n.max(e.maxLength));let r=io(n,e);return t.add(r,{type:`textarea_input`,...e}),r},Co=(e,t,n=`pipe_io`)=>{let i=r.object({alias:r.string().default(``).describe(`Rename this output field. Leave empty to use default name.`),enabled:r.boolean().default(!0).describe(`Whether to include this field in the output.`)}).describe(`Output field '${e.fieldName}'`);return t.add(i,{type:`output_field_input`,label:`Rename *${e.fieldName}*`,placeholder:e.fieldName,path:`config.output_fields.${e.fieldName}`,description:void 0,groupPath:`config.output_fields`,sectionKey:n}),i.default({alias:``,enabled:!0})},wo=(e,t)=>r.unknown().check(e=>{t(e.value)&&e.issues.push({code:`custom`,input:e.value,message:`Required`})}).pipe(e),To=(e,t)=>{let n=io(wo(b.int_input.check(t=>{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}`})}),e=>e==null),e);return t.add(n,{...e,type:`int_input`}),n},Eo=(e,t)=>{let n=io(wo(b.number_input.check(t=>{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}`})}),e=>e===void 0),e);return t.add(n,{...e,type:`number_input`}),n},Do=(e,t)=>{let n=b.json_schema_input;return n.check(e=>{wa(e.value)||e.issues.push({code:`custom`,input:e.value,message:`JSON schema is invalid. Check your input.`})}),e.allowEmpty||(n=n.check(e=>{Ta(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(n,{...e,type:`json_schema_input`}),n},Oo=(e,t)=>{let n=e.options.map(e=>e.value),r=new Set([...n,``]),i=b.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=io(e.defaultValue?i.default(e.defaultValue):i,e);return t.add(a,{type:`select_input`,...e}),a},ko=(e,t,n)=>{let r=io(b.search_payload_input.check(e=>{if(!e.value?.search_id){e.issues.push({code:`custom`,input:e.value,message:`Required`});return}let t=n?.safeParse(e.value);if(t&&!t.success)for(let n of t.error.issues)e.issues.push({code:`custom`,input:e.value,message:n.message,path:n.path})}),e);return t.add(r,{...e,type:`search_payload_input`,required:!0}),r},Ao=({billableOperations:e,...t},n)=>{let i=r.enum(La).default(t.defaultValue||`google-low`);return n.add(i,{type:`select_input`,options:La.map(t=>{let n=Object.keys(e).find(e=>e.endsWith(`-in-${t}`)),r=Object.keys(e).find(e=>e.endsWith(`-out-${t}`)),i=n?e[n]:void 0,a=r?e[r]:void 0;if(!i||!a)throw Error(`Unable to find token billing info for model ${t}`);return{label:Ra[t].label,value:t,widgets:{logo:{url:Ri[Ra[t].provider].logoUrl},token_pricing:{inputPerBlock:i.credits.default,outputPerBlock:a.credits.default,blockSize:100}}}}),required:!0,description:``,label:`AI Models`,...t}),i},jo=(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`});let r=new Set;t.value.forEach((e,a)=>{i.has(e)?r.has(e)?t.issues.push({code:`custom`,input:e,path:[a],message:`Duplicate option: ${e}`}):r.add(e):t.issues.push({code:`custom`,input:e,path:[a],message:`Must be one of: ${n.join(`, `)}`})})});return t.add(a,{type:`multi_select_input`,...e}),a},Mo=(e,t)=>{let n=e.required?b.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`})}):b.context_select_input,r=e.defaultValue?n.default(e.defaultValue):n,i=e.enabledIf??to(e.optionsDef);return t.add(r,{type:`context_select_input`,...e,enabledIf:i,options:[]}),r},No=(e,t)=>{let n=b.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},Po=(e,t)=>{let n=b.async_multi_select_input.check(t=>{e.required&&t.value.length===0&&t.issues.push({code:`custom`,input:t.value,message:`Required`})});return e.maxItems&&(n=n.max(e.maxItems)),t.add(n,{type:`async_multi_select_input`,...e}),n},Fo=(e,t)=>{let n=e.maxItems||200,r=b.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)`})});return t.add(r,{type:`async_include_exclude_select_input`,...e}),r},x=()=>{let e=Li.nullish();return _.add(e,e=>{let t=e.validationContext;return{label:``,description:``,type:`pipes_run_if_input`,groupPath:`run_if`,path:`run_if`,sectionKey:`pipe_io`,fields:Object.entries(t.fieldDefinitions).filter(([e,t])=>t.type!==`json`&&e.toLowerCase()!==`id`).map(([e,t])=>({fieldName:e,fieldLabel:t.label,format:t.format,type:t.type}))}}),e},Io=e=>{let t=Fi.nullish();return y.add(t,t=>{let n=t.validationContext;return{type:`condition_block_input`,...e,fields:Object.entries(n.fieldDefinitions).filter(([e,t])=>t.type!==`json`&&e.toLowerCase()!==`id`).map(([e,t])=>({fieldName:e,fieldLabel:t.label,format:t.format,type:t.type}))}}),t},Lo=e=>{let t=io(Ii.nullable().check(e=>{let t=e;if(t.value===null){t.issues.push({code:`custom`,input:t.value,message:`Add at least one condition.`});return}(t.value?.conditions??[]).forEach((e,n)=>{typeof e.value==`string`&&Vo({value:e.value,issues:t.issues},!1,[`conditions`,n,`value`])})}),e,"Condition block over the target sheet's columns. `field_name` is a LITERAL column name of the looked-up sheet (never templated); string `value`s may contain `{{ field }}` / `{{ SECRETS.KEY }}` / `{{ CONSTANTS.KEY }}` Liquid references resolved per row.");return _.add(t,t=>{let n=t.validationContext;return{type:`condition_block_input`,fields:[],fieldNameMode:`text`,properties:[`value`],inputFields:Object.entries(n.fieldDefinitions).filter(([e,n])=>n.added_by.config_hash!==t.hash).map(([e,t])=>({...t,resolvedName:e})),...e}}),t};function Ro(e,t){if(!t)return e;let n={...e};for(let[r,i]of Object.entries(t))n[r]=i===null?null:{...e[r]??{},...i};return n}function zo({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 Bo=({schema:e,extractFromSchema:t,store:n,formResolvers:i,sectionMap:a,groupMap:o,pathMap:s})=>{let c={};function l(e){let t=e?._zod?.def?.type;return!(t===`optional`||t===`nullable`||t===`default`)}function u(e,d){let f=t(e),ee=f?.required,te=f&&ee===void 0&&d!==void 0?{...f,required:d}:f;if(te){let{sectionKey:e,groupPath:t,path:r}=te,l=a?.[e],u=o?.[t],d=s?.[r];if(!(l===null||u===null||d===null)){let r=d?{...te,label:d.label??te.label,description:d.description??te.description}:te;c[e]??={type:`section`,groups:[],metadata:{type:`form_section`,path:l?.path??e,label:l?.label,description:l?.description}};let a=c[e];if(!a)throw Error(`Section not defined`);let o=a.groups.find(e=>e.groupPath===t);if(o){let e=zo({fieldMetadata:r,store:n,formResolvers:i});e&&o.fields.push(e)}else{let e=zo({fieldMetadata:r,store:n,formResolvers:i});e&&a.groups.push({groupPath:t,fields:[e],type:`group`,label:u?.label,defaultExpand:!!u?.defaultExpand,description:u?.description,iconKey:u?.iconKey,order:u?.order})}}}if(typeof e==`object`&&`unwrap`in e&&typeof e.unwrap==`function`&&u(e.unwrap(),d),e instanceof r.ZodObject)for(let t of Object.values(e.shape))u(t,l(t))}u(e);for(let e of Object.values(c))e.groups=e.groups.filter(e=>e.fields.length!==0),e.groups.sort((e,t)=>(e.order??99)-(t.order??99));return Object.entries(c).filter(([,e])=>e.groups.length!==0).sort(([e],[t])=>(a?.[e]?.order??99)-(a?.[t]?.order??99)).map(([,e])=>e)};function Vo(e,t,n=[]){let r=e.value;if(!(typeof r!=`string`||!r))try{let i=ia(r);!t&&i.outputs.length>0&&e.issues.push({code:`custom`,input:r,path:n,message:`{% output %} tags are not allowed in this field.`}),t&&i.outputs.length===0&&e.issues.push({code:`custom`,input:r,path:n,message:`At least one {% output %} tag is required, e.g. {% output result, type: "string", description: "..." %}`})}catch(t){e.issues.push({code:`custom`,input:r,path:n,message:t instanceof Error?t.message:String(t)})}}const Ho=e=>{let t=(e.supportedTags??[]).includes(`output`),n=r.object({template:io(r.string().min(10).check(e=>Vo(e,t,[])),e,'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 _.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},Uo=e=>{let t=r.string();e.required&&(t=t.min(1)),e.maxLength&&(t=t.max(e.maxLength));let n=io(t.check(e=>Vo(e,!1,[])),e,'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 _.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},S=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))),n=n.check(e=>Vo(e,!1,[])),n=io(n,e,t);let i=e.optionsDef?{...e.optionsDef,enabledIf:e.optionsDef.enabledIf??to(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:[]},_.add(n,o),n};function Wo(e,t){_.add(e,({userConnections:e,pipeEntry:n})=>{let r=new Set(n.allowedUserConnectionProviders),i=e.filter(e=>r.has(e.provider));return{label:t===`required`?`Custom connection`:``,description:``,required:t===`required`,groupPath:`connector`,path:`connector`,connectorMode:t,type:`connector_input`,sectionKey:`pipe_io`,supportsUserConnections:r.size>0,filteredConnections:i.map(e=>({provider:e.provider,connection:Sa({id:e.public_id,provider:e.provider})}))}})}const Go=()=>{let e=Oi;return Wo(e,`required`),e},C=()=>{let e=Di;return Wo(e,`optional`),e},w=()=>{let e=ki;return Wo(e,`disabled`),e};function Ko(e,t){v.add(e,({userConnections:e,searchEntry:n})=>{let r=n.allowsUserConnection?[n.provider]:[],i=new Set(r),a=e.filter(e=>i.has(e.provider));return{label:t===`required`?`Custom connection`:``,description:``,required:t===`required`,groupPath:`connector`,path:`connector`,connectorMode:t,type:`connector_input`,sectionKey:`pipe_io`,supportsUserConnections:i.size>0,filteredConnections:a.map(e=>({provider:e.provider,connection:Sa({id:e.public_id,provider:e.provider})}))}})}const qo=()=>{let e=Oi;return Ko(e,`required`),e},Jo=()=>{let e=Di;return Ko(e,`optional`),e};function Yo(e,t){y.add(e,({userConnections:e,effectEntry:n})=>{let r=new Set(n.allowedUserConnectionProviders),i=e.filter(e=>r.has(e.provider));return{label:t===`required`?`Custom connection`:``,description:``,required:t===`required`,groupPath:`connector`,path:`connector`,connectorMode:t,type:`connector_input`,sectionKey:`pipe_io`,supportsUserConnections:r.size>0,filteredConnections:i.map(e=>({provider:e.provider,connection:Sa({id:e.public_id,provider:e.provider})}))}})}const Xo=()=>{let e=Oi;return Yo(e,`required`),e},Zo=()=>{let e=Di;return Yo(e,`optional`),e},T=()=>{let e=ki;return Yo(e,`disabled`),e};function Qo(e,t){return Object.entries(t.fieldDefinitions).filter(([t,n])=>n.added_by.config_hash!==e&&t.toLowerCase()!==`id`).map(([e,t])=>({label:e,value:e,type:t.type,format:t.format}))}const E=e=>{let t=r.object({alias:r.string().describe(`Override field name mapping. Leave empty to use default.`)});return _.add(t,t=>{let n=t.validationContext;return{type:`select_input`,required:!1,sectionKey:`pipe_io`,defaultValue:void 0,placeholder:e.fieldName,options:Qo(t.hash,n),path:`config.input_fields.${e.fieldName}.alias`,label:`Assign *${e.fieldName}* to:`,description:``,groupPath:`config.input_fields`,multiple:!1}}),t.default({alias:``})},D=e=>mo(e,_),$o=e=>{let t=b.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([]),_.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},es=e=>{let t=b.fields_select_input.check(e=>{e.value.forEach((t,n)=>{t.field_name.length<1&&e.issues.push({code:`custom`,input:t.field_name,path:[n,`field_name`],message:`field_name must not be empty`})})});return t=e.minItems?t.min(e.minItems):t.default([]),y.add(t,t=>{let n=t.validationContext;return{type:`fields_select_input`,options:Object.entries(n.fieldDefinitions).filter(([e])=>e.toLowerCase()!==`id`).map(([e,t])=>({fieldName:e,fieldLabel:e,type:t.type})).map(e=>({value:e.fieldName,label:e.fieldLabel,widgets:{field_type:{type:e.type}}})),...e}}),t},ts=(e,t)=>{let n=t===`selection`?et:t===`sheet`?tt:rt,i={label:`All rows`,value:{type:`all`}},a={label:`Specific rows by ID`,value:{type:`rows`,record_ids:[]}},o=t===`selection`?[a]:t===`sheet`?[i]:[i,a,{label:`Window of 10 rows`,value:{type:`window`,count:10}}],s=r.preprocess(e=>{if(typeof e!=`string`)return e;let t=e.trim();if(t===``)return;let n=Da(t);return n===void 0?e:n},n).optional();return y.add(s,{type:`textarea_input`,rows:3,language:`json`,quickOptions:o,...e}),s},ns=e=>fo(e,_),rs=e=>ao(e,_),is=e=>oo(e,_),as=e=>lo(e,_),os=e=>uo(e,_),ss=e=>ho(e,_),cs=e=>Fo(e,_),ls=e=>go(e,_),us=e=>vo(e,_),ds=e=>yo(e,_),O=e=>Co(e,_),fs=e=>{let{groupPath:t,sectionKey:n=`pipe_io`,defaultName:r,nameInfo:i}=e;return{destination_field_name:ps({label:`Field name`,description:`Destination field name`,info:i??`Name of the field written to the destination sheet.`,placeholder:r,inputType:`text`,path:`config.destination_field_name`,groupPath:t,sectionKey:n}).nullable().default(``),destination_field_type:hs({label:`Type`,info:`Field data type. Leave unset to infer it from the data.`,path:`config.destination_field_type`,groupPath:t,sectionKey:n,required:!1,options:Br.filter(e=>e!==`unknown`).map(e=>({value:e,label:e}))}).default(``),destination_field_format:hs({label:`Format`,info:`Optional display format for the field.`,path:`config.destination_field_format`,groupPath:t,sectionKey:n,required:!1,options:oi.map(e=>({value:e,label:e}))}).default(``),destination_field_label:ps({label:`Label`,description:`Destination field label`,info:`Human-friendly column header. Defaults to the field name.`,inputType:`text`,path:`config.destination_field_label`,groupPath:t,sectionKey:n}).nullable().default(``)}},ps=e=>xo(e,_),ms=e=>So(e,_),hs=e=>Oo(e,_),gs=e=>Ao(e,_),_s=e=>jo(e,_),vs=e=>To(e,_),ys=e=>Eo(e,_),bs=e=>Do(e,_),xs=e=>Mo(e,_),k=e=>ao(e,v),Ss=e=>oo(e,v),Cs=e=>No(e,v),A=e=>fo(e,v),j=e=>ho(e,v),ws=e=>go(e,v),Ts=e=>_o(e,v),Es=e=>vo(e,v),Ds=e=>yo(e,v),Os=e=>bo(e,v),M=e=>Co(e,v,`pipe_io`),ks=e=>xo(e,v),As=e=>So(e,v),js=e=>Oo(e,v),Ms=e=>Mo(e,v),N=e=>jo(e,v),P=e=>Po(e,v),F=e=>Fo(e,v),I=e=>To(e,v),Ns=e=>Eo(e,v),Ps=e=>xo(e,ro(y)),Fs=e=>So(e,ro(y)),Is=e=>Oo(e,ro(y)),Ls=e=>jo(e,ro(y)),Rs=e=>To(e,ro(y)),zs=e=>To(e,ro(y)).nullish(),Bs=e=>yo(e,ro(y)),Vs=e=>Mo(e,ro(y)),Hs=e=>Ao(e,ro(y)),Us=(e,t)=>ko(e,ro(y),t),L=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()),R=e=>e.optional();function Ws(e){if(typeof e!=`object`||!e)return e;if(Array.isArray(e))return e.map(Ws).filter(e=>!kn(e));let t={};for(let[n,r]of Object.entries(e)){let e=Ws(r);kn(e)||(t[n]=e)}return t}const Gs=await l();var Ks=class e{static hashObject(t){if(!Gs)throw Error(`HashAPI not initialized`);let{h64ToString:n}=Gs,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 z(e){return e.split(`@`)[0]}function qs(e,t){let n={effectId:e,config:Ws(t)};return Ks.hashObject(n)}var B=class{validatePayload(e){try{return this.schema.parse(e)}catch(e){throw e instanceof n?Error(JSON.stringify(r.prettifyError(e))):e}}getSecretRequirements(){return[]}getConstantRequirements(){return[]}getConfigHashKey(){return qs(this.payload.effect_id,this.payload.config||{})}producesDynamicFields(){return!1}evolveSchema(e){return{next:e}}getRecordQueueConfig(e){return null}};const Js=`env:change@1`,Ys={},Xs=r.object({effect_id:r.literal(Js),connector:T(),config:r.object({environment:Lr})}),Zs=class extends B{effectId=Js;schema=Xs;payload;billableOperations=Ys;constructor(e){super(),this.payload=this.validatePayload(e)}getConnectionsRequirements(){return[]}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[]}getFieldReferences(){return[]}},Qs=Xs,$s={effectId:Js,baseEffect:z(Js),label:`Change environment`,description:`Switch the sheet between production and sandbox.`,categories:[`internal`],tags:[],lifecycle:null,billableOperations:Ys,allowedUserConnectionProviders:[],managedProviders:[`pipe0`],selectionMode:`sheet`,lockingMode:`exclusive`,lockScope:`sheet`,catalogVisibility:`hidden`,defaultPayload:{effect_id:Js,connector:null,config:{environment:`production`}}},ec=`fields:add@1`,tc={},nc=r.object({effect_id:r.literal(ec),connector:T(),config:r.object({})}),rc=class extends B{effectId=ec;schema=nc;payload;billableOperations=tc;constructor(e){super(),this.payload=this.validatePayload(e)}getConnectionsRequirements(){return[]}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[]}getFieldReferences(){return[]}},ic=nc,ac={effectId:ec,baseEffect:z(ec),label:`Add field`,description:`Add a new empty field to the sheet.`,categories:[`internal`],tags:[],lifecycle:null,billableOperations:tc,allowedUserConnectionProviders:[],managedProviders:[`pipe0`],selectionMode:`sheet`,lockingMode:`exclusive`,lockScope:`sheet`,catalogVisibility:`hidden`,defaultPayload:{effect_id:ec,connector:null,config:{}}},oc=[`id`],sc=e=>oc.includes(e.trim().toLowerCase()),cc=e=>typeof e.kind==`string`,lc=e=>cc(e)?e:{kind:`field`,field:e},V=e=>({kind:`field`,field:e}),uc=(...e)=>({kind:`all`,of:e.map(lc)}),dc=(...e)=>({kind:`any`,of:e.map(lc)}),fc=e=>({kind:`optional`,field:e});function pc(e,t){switch(e.kind){case`optional`:return!0;case`field`:return t.has(e.field.resolvedName);case`all`:return e.of.every(e=>pc(e,t));case`any`:return e.of.some(e=>pc(e,t))}}function mc(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(mc)}}function hc(e,t){let n=gc(e,t);return n.ok?{valid:!0,failedPipeInputField:null,failedRecordField:null}:{valid:!1,failedPipeInputField:n.field,failedRecordField:n.recordField}}function gc(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=gc(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=gc(i,t);if(r=!0,e.ok)return{ok:!0};n=e}catch{}return r?n:{ok:!0}}}}function _c(e,t){let n={pipeId:e,config:Ws(t)};return Ks.hashObject(n)}function vc(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:Ks.hashObject(Ws(n))}var H=class{validatePayload(e){try{return this.payloadSchema.parse(e)}catch(e){throw e instanceof n?Error(r.prettifyError(e)):e}}getSecretRequirements(){return[]}getConstantRequirements(){return[]}async getAgentContext(e){return null}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 mc(this.getInputRequirement()))e[t.name]=t;return e}getConfigHashKey(){return _c(this.payload.pipe_id,this.payload.config||{})}getInputHashKey(e){return vc(e,this.inputFields)}};const yc={title:`Software Engineer, CEO, ...`,seniority:`C-Suite, Senior, ...`,department:`Consulting, Finance, ...`,certification:`CISSP, AWS, ...`,crunchbase_category:`3D Printing, Big Date, ...`,honor:`Cum Laude, 40 Under 40, ...`,field_of_study:`Engineering, Computer Science, ...`,degree_name:`Bachelor of Science, ...`,extracurricular:`Athelete, Debate Team, ...`,job_function:`Accounting, Advertising, ...`,location:`United States, Germany, France, ...`,company_name:`Google, Anthropic, ...`,company_domain:`google.com, openai.com, ...`,company_profile_keyword:`B2B, Software, ...`,headline_keywords:`Founder, JavaScript, ...`,profile_keywords:`Coach, Scrum, ...`,languages:`German, English, ...`,languages_1:`Spanish, Italian, ...`,skills:`TypeScript, Playwright, ...`,industry:`IT, Agriculture, ...`,investor:`a16z, Inside Partners, ...`,school:`MIT, Harvard, ...`,prompt:`Enter prompt here...`,template:`Enter template here...`};function U(e){return yc[e]}function bc(e,t){return typeof t==`string`?t:t(e)}function xc(e,t){return typeof t==`string`||t===null?t:t(e)}function Sc(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:bc(e,a[r].type),format:xc(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 Cc(e,t){for(let n of e.pipes){let r=n.getOutputFields();if(r[t])return{type:bc(e,r[t].type),format:xc(e,r[t].format)}}let n=e.derivedInputFields[t];if(n)return{type:n.type,format:null}}function wc(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=ia(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=>Cc(t,e)?.type||n,format:r};a.push(t.required?V(i):fc(i))}return uc(...a)}function Tc(e){let t=new Set;for(let n of e)if(n)try{let e=ia(n);for(let n of e.secrets)t.add(n)}catch{}return[...t]}function Ec(e){let t=new Set;for(let n of e)if(n)try{let e=ia(n);for(let n of e.constants)t.add(n)}catch{}return[...t]}const W={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`,EVENTS:`Events`,JSON:`Json`,FIELDS:`Fields`,LOGIC:`Logic`,DEPRECATED:`Deprecated β`};function Dc(e,t){let n={};for(let r of t)for(let t of Object.values(e))if(t&&t.provider===r&&t.allowManagedConnection){n[r]=t.credits.default;break}return n}function Oc(e){return mc(e).map(({field:e})=>e)}function kc({recordField:e,value:t,resolvedBy:n,widgets:r}){return e.value=t,e.status=`completed`,e.resolved_by=n,e.widgets=r,e}function Ac({recordField:e}){return e.status=`pending`,e.resolved_by=null,e.value=null,e}function jc({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 Mc(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 Nc(e,t){return e.value=null,e.status=`skipped`,e.resolved_by=null,e.reason=t,e.widgets={},e}function Pc(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/pipe-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 Fc=`agent:run@1`,Ic=`agent-run-v1`,Lc=[{value:`web_researcher`,label:`Web researcher`,widgets:{emoji:{char:`π`}}}],Rc={...Za(Ic),"agent-run-v1-search-parallel":{allowManagedConnection:!0,provider:`parallel`,credits:{default:.2},mode:`always`,note:`Billed per web search the agent performs.`},"agent-run-v1-extract-parallel":{allowManagedConnection:!0,provider:`parallel`,credits:{default:.1},mode:`always`,note:`Billed per URL-extraction call the agent performs.`}},zc=r.object({pipe_id:r.literal(Fc),connector:C(),run_if:x(),config:r.object({agent_type:hs({sectionKey:`general`,groupPath:`config.prompt`,path:`config.agent_type`,label:`Agent type`,defaultValue:`web_researcher`,options:[...Lc],required:!0}),prompt:Ho({sectionKey:`general`,path:`config.prompt`,placeholder:U(`prompt`),groupPath:`config.prompt`,supportedTags:[`input`,`output`]}),model:gs({sectionKey:`general`,label:`Model`,path:`config.model`,groupPath:`config.prompt`,billableOperations:Rc})})}),Bc=class extends H{pipeId=Fc;payload;payloadSchema=zc;billableOperations=Rc;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[...Wa(this.payload.config.model),`parallel`]}estimateBillableOperations(e){return[...$a(e,{model:this.payload.config.model,prefix:Ic,inputTokens:8e3,outputTokens:2e3}),{billableOperation:`agent-run-v1-search-parallel`,quantity:e.count*5},{billableOperation:`agent-run-v1-extract-parallel`,quantity:e.count*2}]}getInputRequirement(){return wc([this.payload.config.prompt.template])}getSecretRequirements(){return Tc([this.payload.config.prompt.template])}getConstantRequirements(){return Ec([this.payload.config.prompt.template])}getRawOutputFields(){let e=this.payload.config.prompt.template,t=this.payload.config.prompt.json_schemas??{},n={},r;try{r=ia(e)}catch{return n}for(let e of r.outputs){let r=e.type;if(r===`json`){let i=e.schemaRef?t[e.schemaRef]:void 0;n[e.name]={enabled:!0,name:e.name,label:e.name,resolvedName:e.name,type:r,description:e.description,jsonMeta:{zodSchema:i,exampleValue:null},format:null,isCatalogFIeld:!1,isPrimaryOutput:!1}}else n[e.name]={enabled:!0,name:e.name,label:e.name,resolvedName:e.name,type:r,description:e.description,jsonMeta:null,format:e.format??null,isCatalogFIeld:!1,isPrimaryOutput:!1}}return n}getConnectionsRequirements(){return[...Ga(this.payload.config.model),{provider:`parallel`,rateLimitRatio:4,rateLimitOperation:`parallel_search_base`,allowManagedConnection:!0},{provider:`parallel`,rateLimitRatio:1,rateLimitOperation:`parallel_extract`,allowManagedConnection:!0}]}},Vc=zc,Hc={pipeId:Fc,inputFieldMode:`config`,outputFieldMode:`config`,basePipe:G(Fc),label:`AI agent`,executionMode:`single`,categories:[`actions`,`tools`],lifecycle:null,description:`Runs an AI research agent with web tools and structured output fields.`,guide:`AI agent with tools. Like prompt:run@1, inputs and outputs are fully dynamic β defined by the tags in the prompt template β but the agent can call tools before answering. The agent type decides the toolset: web_researcher gets web search and URL extraction, for questions model knowledge alone can't answer ('has {{ company_name }} ever raised money?', 'find the general counsel of {{ company_name }}'). Every tool call is billed on top of tokens, so when no live research is needed, use prompt:run@1 instead. Fields the agent cannot ground in evidence come back as no_result, not a guess.`,tags:[W.AI],docPath:K(Fc),defaultInputRequirement:null,billableOperations:Rc,allowedUserConnectionProviders:[...Ka(),`parallel`],managedProviders:[...Ka(),`parallel`],deprecatedProviders:[],defaultPayload:{pipe_id:Fc,connector:null,run_if:null,config:{agent_type:`web_researcher`,model:`google-low`,prompt:{template:``,json_schemas:{}}}}};function J(e,...t){return t.map(t=>({billableOperation:t,quantity:e.count}))}function Uc(e,t){return n=>{let r=e[n];if(!r)throw Error(`Missing billableOperation def for "${n}"`);return!r.allowManagedConnection||t?.(r.provider)?0:r.credits.default}}function Wc(e,t,n=`sum`){let r=e.map(e=>e.quantity*t(e.billableOperation));return r.length===0?0:n===`max`?Math.max(...r):r.reduce((e,t)=>e+t,0)}const Gc=`company:domain:workemail@1`,Kc=g(`company_domain`),qc=g(`work_email`),Jc=r.object({pipe_id:r.literal(Gc),run_if:x(),connector:w(),config:r.object({input_fields:R(r.object({[qc.name]:E({fieldName:qc.name})})),output_fields:L(r.object({[Kc.name]:O({fieldName:Kc.name})}))}).optional()}),Yc=e=>V(q(qc,e)),Xc={"company-domain-workemail-v1-pipe0":{credits:{default:0},allowManagedConnection:!0,mode:`always`,provider:`pipe0`}},Zc=class extends H{pipeId=Gc;payload;payloadSchema=Jc;billableOperations=Xc;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(e){return J(e,`company-domain-workemail-v1-pipe0`)}getInputRequirement(){return Yc(this.payload.config)}getRawOutputFields(){return{[Kc.name]:this.catalogOutput(Kc)}}getConnectionsRequirements(){return[{provider:`pipe0`,rateLimitRatio:1,rateLimitOperation:`pipe0_logic`,allowManagedConnection:!0}]}},Qc=Jc,$c={pipeId:Gc,basePipe:G(Gc),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:[W.EMAIL,W.WORK_EMAIL,W.WEBSITE],docPath:K(Gc),allowedUserConnectionProviders:[],managedProviders:[`pipe0`],deprecatedProviders:[],billableOperations:Xc,defaultInputRequirement:Yc(null),defaultPayload:{pipe_id:Gc,connector:null,run_if:null,config:{input_fields:{[qc.name]:{alias:``}},output_fields:{[Kc.name]:{alias:``,enabled:!0}}}}},el=`company:funding:leadmagic@2`,tl=g(`company_name`),nl=g(`company_domain`),rl=g(`funding_history`),il=g(`funding_total_usd`),al=g(`leadmagic_competitor_list`),ol=g(`leadmagic_acquisition_history`),sl=g(`leadmagic_company_news_list`),cl=r.object({pipe_id:r.literal(el),connector:C(),run_if:x(),config:r.object({input_fields:R(r.object({[tl.name]:E({fieldName:tl.name}),[nl.name]:E({fieldName:nl.name})})),output_fields:L(r.object({[rl.name]:O({fieldName:rl.name}),[il.name]:O({fieldName:il.name}),[al.name]:O({fieldName:al.name}),[ol.name]:O({fieldName:ol.name}),[sl.name]:O({fieldName:sl.name})}))}).optional()}),ll=e=>dc(q(tl,e),q(nl,e)),ul={"company-funding-leadmagic-v2-leadmagic":{provider:`leadmagic`,allowManagedConnection:!0,credits:{default:2},mode:`onSuccess`}},dl=class extends H{pipeId=el;payload;payloadSchema=cl;billableOperations=ul;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`leadmagic`]}estimateBillableOperations(e){return J(e,`company-funding-leadmagic-v2-leadmagic`)}getInputRequirement(){return ll(this.payload.config)}getRawOutputFields(){return{[rl.name]:this.catalogOutput(rl),[il.name]:this.catalogOutput(il),[ol.name]:this.catalogOutput(ol),[sl.name]:this.catalogOutput(sl),[al.name]:this.catalogOutput(al)}}getConnectionsRequirements(){return[{provider:`leadmagic`,rateLimitRatio:1,rateLimitOperation:`leadmagic_company_funding`,allowManagedConnection:!0}]}},fl=cl,pl={pipeId:el,basePipe:G(el),label:`Funding history`,executionMode:`single`,categories:[`company_data`],lifecycle:null,description:`Information on funding rounds, acquisition, competitors, and investors.`,tags:[W.FINANCIAL_DATA],docPath:K(el),billableOperations:ul,inputFieldMode:`static`,outputFieldMode:`static`,allowedUserConnectionProviders:[`leadmagic`],managedProviders:[`leadmagic`],deprecatedProviders:[],defaultInputRequirement:ll(null),defaultPayload:{pipe_id:el,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:``}}}}},ml=g(`company_name`),hl=g(`company_profile_url`),gl=g(`company_domain`),_l=g(`cleaned_company_name`),vl=`company:identity@3`,yl=r.object({pipe_id:r.literal(vl),run_if:x(),connector:w(),config:r.object({input_fields:R(r.object({[ml.name]:E({fieldName:ml.name})})),output_fields:L(r.object({[hl.name]:O({fieldName:hl.name}),[_l.name]:O({fieldName:_l.name}),[gl.name]:O({fieldName:gl.name})}))}).optional()}),bl=e=>V(q(ml,e)),xl={"company-identity-v3-pipe0":{allowManagedConnection:!0,credits:{default:.3,level1:{credits:.2,weight:1}},mode:`always`,provider:`pipe0`}},Sl=class extends H{pipeId=vl;payload;payloadSchema=yl;billableOperations=xl;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(e){return J(e,`company-identity-v3-pipe0`)}getInputRequirement(){return bl(this.payload.config)}getRawOutputFields(){return{[hl.name]:this.catalogOutput(hl),[gl.name]:this.catalogOutput(gl),[_l.name]:this.catalogOutput(_l)}}getConnectionsRequirements(){return[{provider:`gemini`,rateLimitRatio:1,rateLimitOperation:`gemini_35_flash`,allowManagedConnection:!0},{provider:`serper`,rateLimitRatio:2,rateLimitOperation:`serper_search`,allowManagedConnection:!0},{provider:`leadmagic`,rateLimitRatio:.2,rateLimitOperation:`leadmagic_company_search`,allowManagedConnection:!0},{provider:`perplexity`,rateLimitRatio:.2,rateLimitOperation:`perplexity_generic`,allowManagedConnection:!0},{provider:`pipe0`,rateLimitRatio:.02,rateLimitOperation:`pipe0_scraper`,allowManagedConnection:!0}]}},Cl=yl,wl={pipeId:vl,inputFieldMode:`static`,outputFieldMode:`static`,basePipe:G(vl),label:`Company identity`,executionMode:`mix`,categories:[`company_data`],lifecycle:null,description:`Find any company's website URL, LinkedIn profile URL, and cleaned name.`,tags:[W.WEBSITE,W.LINKEDIN],docPath:K(vl),billableOperations:xl,allowedUserConnectionProviders:[],managedProviders:[`pipe0`],deprecatedProviders:[],defaultInputRequirement:bl(null),defaultPayload:{pipe_id:vl,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}}}}},Tl=g(`company_domain`),El=g(`company_name`),Dl=g(`crustdata_company_identity_matches`),Ol=`company:identity:crustdata@1`,kl=r.object({pipe_id:r.literal(Ol),run_if:x(),connector:C(),config:r.object({input_fields:R(r.object({[Tl.name]:E({fieldName:Tl.name}),[El.name]:E({fieldName:El.name})})),output_fields:L(r.object({[Dl.name]:O({fieldName:Dl.name})}))}).optional()}),Al=e=>dc(q(Tl,e),q(El,e)),jl={"company-identity-crustdata-v1-crustdata":{allowManagedConnection:!0,credits:{default:.001},mode:`onSuccess`,provider:`crustdata`}},Ml=class extends H{pipeId=Ol;payload;payloadSchema=kl;billableOperations=jl;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`crustdata`]}estimateBillableOperations(e){return J(e,`company-identity-crustdata-v1-crustdata`)}getInputRequirement(){return Al(this.payload.config)}getRawOutputFields(){return{[Dl.name]:this.catalogOutput(Dl)}}getConnectionsRequirements(){return[{provider:`crustdata`,rateLimitRatio:1,rateLimitOperation:`crustdata_company_identify`,allowManagedConnection:!0}]}},Nl=kl,Pl={pipeId:Ol,inputFieldMode:`static`,outputFieldMode:`static`,basePipe:G(Ol),label:`Company identity`,executionMode:`single`,categories:[`company_data`],lifecycle:null,description:`Resolve a company to Crustdata's matching candidates by domain or name. Returns the full list of matches.`,tags:[W.WEBSITE,W.LINKEDIN],docPath:K(Ol),billableOperations:jl,allowedUserConnectionProviders:[`crustdata`],managedProviders:[`crustdata`],deprecatedProviders:[],defaultInputRequirement:Al(null),defaultPayload:{pipe_id:Ol,connector:null,run_if:null,config:{input_fields:{company_domain:{alias:``},company_name:{alias:``}},output_fields:{crustdata_company_identity_matches:{alias:``,enabled:!0}}}}},Fl=g(`company_domain`),Il=g(`companyenrich_matches`),Ll=`company:lookalikes:companyenrich@2`,Rl=r.object({pipe_id:r.literal(Ll),run_if:x(),connector:C(),config:r.object({limit:vs({groupPath:`config.general`,max:50,min:1,path:`config.limit`,sectionKey:`general`,info:`Define how many lookalikes you want to find.`,label:`Limit`}),input_fields:R(r.object({[Fl.name]:E({fieldName:Fl.name})})),output_fields:L(r.object({[Il.name]:O({fieldName:Il.name})}))}).optional()}),zl=e=>V(q(Fl,e)),Bl={"company-lookalikes-companyenrich-v2-companyenrich":{allowManagedConnection:!0,credits:{default:.2,level1:{credits:.1,weight:1}},mode:`onSuccess`,note:`One billing event per result.`,provider:`companyenrich`}},Vl=class extends H{pipeId=Ll;payload;payloadSchema=Rl;billableOperations=Bl;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`companyenrich`]}estimateBillableOperations(e){return[{billableOperation:`company-lookalikes-companyenrich-v2-companyenrich`,quantity:e.count*5}]}getInputRequirement(){return zl(this.payload.config)}getRawOutputFields(){return{[Il.name]:this.catalogOutput(Il)}}getConnectionsRequirements(){return[{provider:`companyenrich`,rateLimitRatio:1,rateLimitOperation:`company_enrich_generic`,allowManagedConnection:!0}]}},Hl=Rl,Ul={pipeId:Ll,inputFieldMode:`static`,outputFieldMode:`static`,basePipe:G(Ll),label:`Find company lookalikes`,executionMode:`single`,categories:[`company_data`],lifecycle:null,description:`Find companies similar to the company you provide as input.`,tags:[W.COMPANY_PROFILES],docPath:K(Ll),billableOperations:Bl,allowedUserConnectionProviders:[`companyenrich`],managedProviders:[`companyenrich`],deprecatedProviders:[],defaultInputRequirement:zl(null),defaultPayload:{pipe_id:Ll,connector:null,run_if:null,config:{limit:20,input_fields:{company_domain:{alias:``}},output_fields:{companyenrich_matches:{alias:``,enabled:!0}}}}},Wl=g(`company_domain`),Gl=g(`crustdata_companyenrich_match`),Kl=`company:match:crustdata@2`,ql=r.object({pipe_id:r.literal(Kl),run_if:x(),connector:C(),config:r.object({input_fields:R(r.object({[Wl.name]:E({fieldName:Wl.name})})),output_fields:L(r.object({[Gl.name]:O({fieldName:Gl.name})}))}).optional()}),Jl=e=>V(q(Wl,e)),Yl={"company-match-crustdata-v2-crustdata":{allowManagedConnection:!0,credits:{default:2.5,level1:{credits:1.2,weight:1}},mode:`onSuccess`,provider:`crustdata`}},Xl=class extends H{pipeId=Kl;payload;payloadSchema=ql;billableOperations=Yl;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`crustdata`]}estimateBillableOperations(e){return J(e,`company-match-crustdata-v2-crustdata`)}getInputRequirement(){return Jl(this.payload.config)}getRawOutputFields(){return{[Gl.name]:this.catalogOutput(Gl)}}getConnectionsRequirements(){return[{provider:`crustdata`,rateLimitRatio:1,rateLimitOperation:`crustdata_company_enrich`,allowManagedConnection:!0}]}},Zl=ql,Ql={pipeId:Kl,inputFieldMode:`static`,outputFieldMode:`static`,basePipe:G(Kl),label:`Company match`,executionMode:`single`,categories:[`company_data`],lifecycle:null,description:`Company data like headcount distribution, LinkedIn URLs etc. via the Crustdata API.`,tags:[W.WEBSITE,W.LINKEDIN],docPath:K(Kl),billableOperations:Yl,allowedUserConnectionProviders:[`crustdata`],managedProviders:[`crustdata`],deprecatedProviders:[],defaultInputRequirement:Jl(null),defaultPayload:{pipe_id:Kl,connector:null,run_if:null,config:{input_fields:{company_domain:{alias:``}},output_fields:{crustdata_companyenrich_match:{alias:``,enabled:!0}}}}},$l=g(`company_domain`),eu=g(`company_name`),tu=g(`company_profile_url`),nu=g(`logodev_describe_match`),ru=g(`logo_url`),iu=`company:match:logodev@2`,au=r.object({pipe_id:r.literal(iu),run_if:x(),connector:C(),config:r.object({input_fields:R(r.object({[$l.name]:E({fieldName:$l.name})})),output_fields:L(r.object({[tu.name]:O({fieldName:tu.name}),[ru.name]:O({fieldName:ru.name}),[eu.name]:O({fieldName:eu.name}),[nu.name]:O({fieldName:nu.name})}))}).optional()}),ou=e=>V(q($l,e)),su={"company-match-logodev-v2-logodev":{allowManagedConnection:!0,credits:{default:.1},mode:`onSuccess`,provider:`logodev`}},cu=class extends H{pipeId=iu;payload;payloadSchema=au;billableOperations=su;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`logodev`]}estimateBillableOperations(e){return J(e,`company-match-logodev-v2-logodev`)}getInputRequirement(){return ou(this.payload.config)}getRawOutputFields(){return{[tu.name]:this.catalogOutput(tu),[eu.name]:this.catalogOutput(eu),[ru.name]:this.catalogOutput(ru),[nu.name]:this.catalogOutput(nu)}}getConnectionsRequirements(){return[{provider:`logodev`,rateLimitRatio:1,rateLimitOperation:`logodev_describe`,allowManagedConnection:!0}]}},lu=au,uu={pipeId:iu,inputFieldMode:`static`,outputFieldMode:`static`,basePipe:G(iu),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:[W.WEBSITE,W.LINKEDIN],docPath:K(iu),billableOperations:su,allowedUserConnectionProviders:[`logodev`],managedProviders:[`logodev`],deprecatedProviders:[],defaultInputRequirement:ou(null),defaultPayload:{pipe_id:iu,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}}}}},du=`company:newssummary:domain@1`,fu=g(`company_news_summary`),pu=g(`company_domain`),mu=r.object({pipe_id:r.literal(du),run_if:x(),connector:C(),config:r.object({input_fields:R(r.object({[pu.name]:E({fieldName:pu.name})})),output_fields:L(r.object({[fu.name]:O({fieldName:fu.name})}))}).optional()}),hu=e=>V(q(pu,e)),gu={"company-newssummary-domain-v1-pipe0":{allowManagedConnection:!0,credits:{default:2},mode:`always`,provider:`pipe0`}},_u=class extends H{pipeId=du;payloadSchema=mu;billableOperations=gu;payload;constructor(e){super(),this.payload=e}getProviderNames(){return[`pipe0`]}estimateBillableOperations(e){return J(e,`company-newssummary-domain-v1-pipe0`)}getInputRequirement(){return hu(this.payload.config)}getRawOutputFields(){return{[fu.name]:this.catalogOutput(fu)}}getConnectionsRequirements(){return[{provider:`parallel`,rateLimitRatio:4,rateLimitOperation:`parallel_search_base`,allowManagedConnection:!0},{provider:`gemini`,rateLimitRatio:1,rateLimitOperation:`gemini_35_flash`,allowManagedConnection:!0}]}},vu=mu,yu={pipeId:du,basePipe:G(du),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:[W.NEWS],docPath:K(du),billableOperations:gu,allowedUserConnectionProviders:[],managedProviders:[`pipe0`],deprecatedProviders:[],defaultInputRequirement:hu(null),defaultPayload:{pipe_id:du,run_if:null,connector:null,config:{input_fields:{company_domain:{alias:``}},output_fields:{company_news_summary:{alias:``,enabled:!0}}}}},bu=g(`company_domain`),xu=g(`company_profile_url`),Su=g(`company_description`),Cu=g(`company_industry`),wu=g(`company_region`),Tu=g(`headcount`),Eu=g(`estimated_revenue`),Du=g(`founded_year`),Ou=g(`company_name`),ku=`company:overview@3`,Au=r.object({pipe_id:r.literal(ku),run_if:x(),connector:w(),config:r.object({input_fields:R(r.object({[bu.name]:E({fieldName:bu.name}),[xu.name]:E({fieldName:xu.name})})),output_fields:L(r.object({[Su.name]:O({fieldName:Su.name}),[Cu.name]:O({fieldName:Cu.name}),[wu.name]:O({fieldName:wu.name}),[Tu.name]:O({fieldName:Tu.name}),[Eu.name]:O({fieldName:Eu.name}),[Du.name]:O({fieldName:Du.name}),[Ou.name]:O({fieldName:Ou.name})}))}).optional()}),ju=e=>dc(q(bu,e),q(xu,e)),Mu={"company-overview-v3-pipe0":{provider:`pipe0`,allowManagedConnection:!0,credits:{default:1,level1:{credits:.5,weight:1}},mode:`always`}},Nu=class extends H{pipeId=ku;payloadSchema=Au;billableOperations=Mu;payload;constructor(e){super(),this.payload=e}getProviderNames(){return[`pipe0`]}estimateBillableOperations(e){return J(e,`company-overview-v3-pipe0`)}getInputRequirement(){return ju(this.payload.config)}getRawOutputFields(){return{[Su.name]:this.catalogOutput(Su),[Cu.name]:this.catalogOutput(Cu),[wu.name]:this.catalogOutput(wu),[Tu.name]:this.catalogOutput(Tu),[Eu.name]:this.catalogOutput(Eu),[Du.name]:this.catalogOutput(Du),[Ou.name]:this.catalogOutput(Ou)}}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}]}},Pu=Au,Fu={pipeId:ku,basePipe:G(ku),inputFieldMode:`static`,outputFieldMode:`static`,label:`Company overview`,executionMode:`mix`,categories:[`company_data`],lifecycle:null,description:`Business description, industry, and financial information.`,docPath:K(ku),tags:[W.WEBSITE,W.LINKEDIN,W.FINANCIAL_DATA],allowedUserConnectionProviders:[],managedProviders:[`pipe0`],deprecatedProviders:[],billableOperations:Mu,defaultInputRequirement:ju(null),defaultPayload:{pipe_id:ku,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}}}}},Iu=g(`company_domain`),Lu=g(`technology_list`),Ru=g(`spending_trend`),zu=g(`technology_match_builtwith`),Bu=`company:techstack:builtwith@2`,Vu=r.object({pipe_id:r.literal(Bu),connector:C(),run_if:x(),config:r.object({input_fields:R(r.object({[Iu.name]:E({fieldName:Iu.name})})),output_fields:L(r.object({[Lu.name]:O({fieldName:Lu.name}),[zu.name]:O({fieldName:zu.name}),[Ru.name]:O({fieldName:Ru.name})}))}).optional()}),Hu=e=>V(q(Iu,e)),Uu={"company-techstack-builtwith-v2-builtwith":{provider:`builtwith`,allowManagedConnection:!0,credits:{default:2},mode:`always`}},Wu=class extends H{pipeId=Bu;payload;payloadSchema=Vu;billableOperations=Uu;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`builtwith`]}estimateBillableOperations(e){return J(e,`company-techstack-builtwith-v2-builtwith`)}getInputRequirement(){return Hu(this.payload.config)}getRawOutputFields(){return{[Lu.name]:this.catalogOutput(Lu),[zu.name]:this.catalogOutput(zu),[Ru.name]:this.catalogOutput(Ru)}}getConnectionsRequirements(){return[{provider:`builtwith`,rateLimitRatio:1,rateLimitOperation:`builtwith_generic`,allowManagedConnection:!0}]}},Gu=Vu,Ku={pipeId:Bu,basePipe:G(Bu),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:[W.WEBSITE],inputFieldMode:`static`,outputFieldMode:`static`,docPath:K(Bu),billableOperations:Uu,defaultInputRequirement:Hu(null),defaultPayload:{pipe_id:Bu,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}}}}},qu={MissingSecretError:class extends Error{constructor({providerName:e}){super(`Missing secret for ${e}`)}},HttpError:class extends Error{constructor({msg:e}){super(e)}}},Ju=`contact:create:resend@1`,Yu={"contact-create-resend-v1-resend":{allowManagedConnection:!1,provider:`resend`,credits:null,mode:null}},Xu=g(`email`),Zu=g(`name`),Qu=g(`resend_contact_id`),$u=[{label:`Demo subscribers`,value:`sandbox-segment-1`},{label:`Demo product updates`,value:`sandbox-segment-2`}],ed=r.object({pipe_id:r.literal(Ju),connector:Go(),run_if:x(),config:r.object({segment_id:xs({sectionKey:`general`,required:!0,label:`Segment`,groupPath:`config.general`,path:`config.segment_id`,info:``,enabledIf:Na(`resend`),optionsDef:{requires:{connection:`resend`},options:async({query:e,secret:t,environment:n})=>{if(n===`sandbox`)return $u;if(!t)throw new qu.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 qu.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:ds({sectionKey:`general`,defaultValue:!0,label:`Add as subscribed`,groupPath:`config.general`,path:`config.add_as_subscribed`,info:``}),input_fields:R(r.object({[Zu.name]:E({fieldName:Zu.name}),[Xu.name]:E({fieldName:Xu.name})})),output_fields:L(r.object({[Qu.name]:O({fieldName:Qu.name})}))})}),td=e=>uc(V(q(Xu,e)),V(q(Zu,e))),nd=class extends H{pipeId=Ju;payload;payloadSchema=ed;billableOperations=Yu;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`resend`]}estimateBillableOperations(e){return J(e,`contact-create-resend-v1-resend`)}getInputRequirement(){return td(this.payload.config)}getRawOutputFields(){return{[Qu.name]:this.catalogOutput(Qu)}}getConnectionsRequirements(){return[{provider:`resend`,rateLimitRatio:1,rateLimitOperation:`resend_generic`,allowManagedConnection:!1}]}},rd=ed,id={pipeId:Ju,basePipe:G(Ju),label:`Create Contact`,executionMode:`single`,categories:[`actions`],lifecycle:null,description:`Create a contact inside a Resend audience.`,tags:[W.EMAIL],docPath:K(Ju),billableOperations:Yu,inputFieldMode:`static`,outputFieldMode:`static`,allowedUserConnectionProviders:[`resend`],defaultInputRequirement:td(null),managedProviders:[],deprecatedProviders:[],defaultPayload:{pipe_id:Ju,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}}}}},ad=`company:funding:leadmagic@1`,od=g(`company_name`),sd=g(`company_website_url`),cd=g(`funding_history`),ld=g(`funding_total_usd`),ud=g(`leadmagic_competitor_list`),dd=g(`leadmagic_acquisition_history`),fd=g(`leadmagic_company_news_list`),pd=r.object({pipe_id:r.literal(ad),connector:C(),run_if:x(),config:r.object({input_fields:R(r.object({[od.name]:E({fieldName:od.name}),[sd.name]:E({fieldName:sd.name})})),output_fields:L(r.object({[cd.name]:O({fieldName:cd.name}),[ld.name]:O({fieldName:ld.name}),[ud.name]:O({fieldName:ud.name}),[dd.name]:O({fieldName:dd.name}),[fd.name]:O({fieldName:fd.name})}))}).optional()}),md=e=>dc(q(od,e),q(sd,e)),hd={"company-funding-leadmagic-v1-leadmagic":{provider:`leadmagic`,allowManagedConnection:!0,credits:{default:2},mode:`onSuccess`}},gd=class extends H{pipeId=ad;payload;payloadSchema=pd;billableOperations=hd;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`leadmagic`]}estimateBillableOperations(e){return J(e,`company-funding-leadmagic-v1-leadmagic`)}getInputRequirement(){return md(this.payload.config)}getRawOutputFields(){return{[cd.name]:this.catalogOutput(cd),[ld.name]:this.catalogOutput(ld)}}getConnectionsRequirements(){return[{provider:`leadmagic`,rateLimitRatio:1,rateLimitOperation:`leadmagic_company_funding`,allowManagedConnection:!0}]}},_d=pd,vd={pipeId:ad,basePipe:G(ad),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:[W.FINANCIAL_DATA],docPath:K(ad),billableOperations:hd,inputFieldMode:`static`,outputFieldMode:`static`,allowedUserConnectionProviders:[`leadmagic`],managedProviders:[`leadmagic`],deprecatedProviders:[],defaultInputRequirement:md(null),defaultPayload:{pipe_id:ad,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:``}}}}},yd=g(`company_name`),bd=g(`company_social_url`),xd=g(`company_website_url`),Sd=g(`cleaned_company_name`),Cd=`company:identity@1`,wd=r.object({pipe_id:r.literal(Cd),run_if:x(),connector:w(),config:r.object({input_fields:R(r.object({[yd.name]:E({fieldName:yd.name})})),output_fields:L(r.object({[bd.name]:O({fieldName:bd.name}),[Sd.name]:O({fieldName:Sd.name}),[xd.name]:O({fieldName:xd.name})}))}).optional()}),Td=e=>V(q(yd,e)),Ed={"company-identity-v1-pipe0":{allowManagedConnection:!0,credits:{default:.3},mode:`always`,provider:`pipe0`}},Dd=class extends H{pipeId=Cd;payload;payloadSchema=wd;billableOperations=Ed;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(e){return J(e,`company-identity-v1-pipe0`)}getInputRequirement(){return Td(this.payload.config)}getRawOutputFields(){return{[bd.name]:this.catalogOutput(bd),[xd.name]:this.catalogOutput(xd),[Sd.name]:this.catalogOutput(Sd)}}getConnectionsRequirements(){return[{provider:`gemini`,rateLimitRatio:1,rateLimitOperation:`gemini_35_flash`,allowManagedConnection:!0},{provider:`serper`,rateLimitRatio:2,rateLimitOperation:`serper_search`,allowManagedConnection:!0},{provider:`leadmagic`,rateLimitRatio:.2,rateLimitOperation:`leadmagic_company_search`,allowManagedConnection:!0},{provider:`perplexity`,rateLimitRatio:.2,rateLimitOperation:`perplexity_generic`,allowManagedConnection:!0},{provider:`pipe0`,rateLimitRatio:.02,rateLimitOperation:`pipe0_scraper`,allowManagedConnection:!0}]}},Od=wd,kd={pipeId:Cd,inputFieldMode:`static`,outputFieldMode:`static`,basePipe:G(Cd),label:`Company identity`,executionMode:`mix`,categories:[`deprecated`],lifecycle:{deprecatedOn:`2026-06-13`,replacedBy:`company:identity@2`},description:`Find any company's website URL, LinkedIn profile URL, and cleaned name.`,tags:[W.WEBSITE,W.LINKEDIN],docPath:`/resources/pipe-catalog/company:identity/1`,billableOperations:Ed,allowedUserConnectionProviders:[],managedProviders:[`pipe0`],deprecatedProviders:[],defaultInputRequirement:Td(null),defaultPayload:{pipe_id:Cd,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}}}}},Ad=g(`company_name`),jd=g(`company_profile_url`),Md=g(`company_website_url`),Nd=g(`cleaned_company_name`),Pd=`company:identity@2`,Fd=r.object({pipe_id:r.literal(Pd),run_if:x(),connector:w(),config:r.object({input_fields:R(r.object({[Ad.name]:E({fieldName:Ad.name})})),output_fields:L(r.object({[jd.name]:O({fieldName:jd.name}),[Nd.name]:O({fieldName:Nd.name}),[Md.name]:O({fieldName:Md.name})}))}).optional()}),Id=e=>V(q(Ad,e)),Ld={"company-identity-v2-pipe0":{allowManagedConnection:!0,credits:{default:.3},mode:`always`,provider:`pipe0`}},Rd=class extends H{pipeId=Pd;payload;payloadSchema=Fd;billableOperations=Ld;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(e){return J(e,`company-identity-v2-pipe0`)}getInputRequirement(){return Id(this.payload.config)}getRawOutputFields(){return{[jd.name]:this.catalogOutput(jd),[Md.name]:this.catalogOutput(Md),[Nd.name]:this.catalogOutput(Nd)}}getConnectionsRequirements(){return[{provider:`gemini`,rateLimitRatio:1,rateLimitOperation:`gemini_35_flash`,allowManagedConnection:!0},{provider:`serper`,rateLimitRatio:2,rateLimitOperation:`serper_search`,allowManagedConnection:!0},{provider:`leadmagic`,rateLimitRatio:.2,rateLimitOperation:`leadmagic_company_search`,allowManagedConnection:!0},{provider:`perplexity`,rateLimitRatio:.2,rateLimitOperation:`perplexity_generic`,allowManagedConnection:!0},{provider:`pipe0`,rateLimitRatio:.02,rateLimitOperation:`pipe0_scraper`,allowManagedConnection:!0}]}},zd=Fd,Bd={pipeId:Pd,inputFieldMode:`static`,outputFieldMode:`static`,basePipe:G(Pd),label:`Company identity`,executionMode:`mix`,categories:[`deprecated`],lifecycle:{deprecatedOn:`2026-06-13`,replacedBy:`company:identity@3`},description:`Find any company's website URL, LinkedIn profile URL, and cleaned name.`,tags:[W.WEBSITE,W.LINKEDIN],docPath:K(Pd),billableOperations:Ld,allowedUserConnectionProviders:[],managedProviders:[`pipe0`],deprecatedProviders:[],defaultInputRequirement:Id(null),defaultPayload:{pipe_id:Pd,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}}}}},Vd=g(`company_website_url`),Hd=g(`companyenrich_matches`),Ud=`company:lookalikes:companyenrich@1`,Wd=r.object({pipe_id:r.literal(Ud),run_if:x(),connector:C(),config:r.object({limit:vs({groupPath:`config.general`,max:50,min:1,path:`config.limit`,sectionKey:`general`,info:`Define how many lookalikes you want to find.`,label:`Limit`}),input_fields:R(r.object({[Vd.name]:E({fieldName:Vd.name})})),output_fields:L(r.object({[Hd.name]:O({fieldName:Hd.name})}))}).optional()}),Gd=e=>V(q(Vd,e)),Kd={"company-lookalikes-companyenrich-v1-companyenrich":{allowManagedConnection:!0,credits:{default:.2},mode:`onSuccess`,note:`One billing event per result.`,provider:`companyenrich`}},qd=class extends H{pipeId=Ud;payload;payloadSchema=Wd;billableOperations=Kd;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`companyenrich`]}estimateBillableOperations(e){return[{billableOperation:`company-lookalikes-companyenrich-v1-companyenrich`,quantity:e.count*5}]}getInputRequirement(){return Gd(this.payload.config)}getRawOutputFields(){return{[Hd.name]:this.catalogOutput(Hd)}}getConnectionsRequirements(){return[{provider:`companyenrich`,rateLimitRatio:1,rateLimitOperation:`company_enrich_generic`,allowManagedConnection:!0}]}},Jd=Wd,Yd={pipeId:Ud,inputFieldMode:`static`,outputFieldMode:`static`,basePipe:G(Ud),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:[W.COMPANY_PROFILES],docPath:K(Ud),billableOperations:Kd,allowedUserConnectionProviders:[`companyenrich`],managedProviders:[`companyenrich`],deprecatedProviders:[],defaultInputRequirement:Gd(null),defaultPayload:{pipe_id:Ud,connector:null,run_if:null,config:{limit:20,input_fields:{company_website_url:{alias:``}},output_fields:{companyenrich_matches:{alias:``,enabled:!0}}}}},Xd=g(`company_website_url`),Zd=g(`crustdata_companyenrich_match`),Qd=`company:match:crustdata@1`,$d=r.object({pipe_id:r.literal(Qd),run_if:x(),connector:C(),config:r.object({input_fields:R(r.object({[Xd.name]:E({fieldName:Xd.name})})),output_fields:L(r.object({[Zd.name]:O({fieldName:Zd.name})}))}).optional()}),ef=e=>V(q(Xd,e)),tf={"company-match-crustdata-v1-crustdata":{allowManagedConnection:!0,credits:{default:2},mode:`onSuccess`,provider:`crustdata`}},nf=class extends H{pipeId=Qd;payload;payloadSchema=$d;billableOperations=tf;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`crustdata`]}estimateBillableOperations(e){return J(e,`company-match-crustdata-v1-crustdata`)}getInputRequirement(){return ef(this.payload.config)}getRawOutputFields(){return{[Zd.name]:this.catalogOutput(Zd)}}getConnectionsRequirements(){return[{provider:`crustdata`,rateLimitRatio:1,rateLimitOperation:`crustdata_company_enrich`,allowManagedConnection:!0}]}},rf=$d,af={pipeId:Qd,inputFieldMode:`static`,outputFieldMode:`static`,basePipe:G(Qd),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:[W.WEBSITE,W.LINKEDIN],docPath:K(Qd),billableOperations:tf,allowedUserConnectionProviders:[`crustdata`],managedProviders:[`crustdata`],deprecatedProviders:[],defaultInputRequirement:ef(null),defaultPayload:{pipe_id:Qd,connector:null,run_if:null,config:{input_fields:{company_website_url:{alias:``}},output_fields:{crustdata_companyenrich_match:{alias:``,enabled:!0}}}}},of=g(`company_website_url`),sf=g(`company_name`),cf=g(`company_profile_url`),lf=g(`logodev_describe_match`),uf=g(`logo_url`),df=`company:match:logodev@1`,ff=r.object({pipe_id:r.literal(df),run_if:x(),connector:C(),config:r.object({input_fields:R(r.object({[of.name]:E({fieldName:of.name})})),output_fields:L(r.object({[cf.name]:O({fieldName:cf.name}),[uf.name]:O({fieldName:uf.name}),[sf.name]:O({fieldName:sf.name}),[lf.name]:O({fieldName:lf.name})}))}).optional()}),pf=e=>V(q(of,e)),mf={"company-match-logodev-v1-logodev":{allowManagedConnection:!0,credits:{default:.1},mode:`onSuccess`,provider:`logodev`}},hf=class extends H{pipeId=df;payload;payloadSchema=ff;billableOperations=mf;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`logodev`]}estimateBillableOperations(e){return J(e,`company-match-logodev-v1-logodev`)}getInputRequirement(){return pf(this.payload.config)}getRawOutputFields(){return{[cf.name]:this.catalogOutput(cf),[sf.name]:this.catalogOutput(sf),[uf.name]:this.catalogOutput(uf),[lf.name]:this.catalogOutput(lf)}}getConnectionsRequirements(){return[{provider:`logodev`,rateLimitRatio:1,rateLimitOperation:`logodev_describe`,allowManagedConnection:!0}]}},gf=ff,_f={pipeId:df,inputFieldMode:`static`,outputFieldMode:`static`,basePipe:G(df),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:[W.WEBSITE,W.LINKEDIN],docPath:K(df),billableOperations:mf,allowedUserConnectionProviders:[`logodev`],managedProviders:[`logodev`],deprecatedProviders:[],defaultInputRequirement:pf(null),defaultPayload:{pipe_id:df,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}}}}},vf=`company:newssummary:website@1`,yf=g(`company_news_summary`),bf=g(`company_website_url`),xf=r.object({pipe_id:r.literal(vf),run_if:x(),connector:C(),config:r.object({input_fields:R(r.object({[bf.name]:E({fieldName:bf.name})})),output_fields:L(r.object({[yf.name]:O({fieldName:yf.name})}))}).optional()}),Sf=e=>V(q(bf,e)),Cf={"company-newssummary-website-v1-pipe0":{allowManagedConnection:!0,credits:{default:1},mode:`always`,provider:`pipe0`}},wf=class extends H{pipeId=vf;payloadSchema=xf;billableOperations=Cf;payload;constructor(e){super(),this.payload=e}getProviderNames(){return[`pipe0`]}estimateBillableOperations(e){return J(e,`company-newssummary-website-v1-pipe0`)}getInputRequirement(){return Sf(this.payload.config)}getRawOutputFields(){return{[yf.name]:this.catalogOutput(yf)}}getConnectionsRequirements(){return[{provider:`perplexity`,rateLimitRatio:1,rateLimitOperation:`perplexity_generic`,allowManagedConnection:!0}]}},Tf=xf,Ef={pipeId:vf,basePipe:G(vf),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:[W.NEWS],docPath:K(vf),billableOperations:Cf,allowedUserConnectionProviders:[],managedProviders:[`pipe0`],deprecatedProviders:[],defaultInputRequirement:Sf(null),defaultPayload:{pipe_id:vf,run_if:null,connector:null,config:{input_fields:{company_website_url:{alias:``}},output_fields:{company_news_summary:{alias:``,enabled:!0}}}}},Df=g(`company_website_url`),Of=g(`company_social_url`),kf=g(`company_description`),Af=g(`company_industry`),jf=g(`company_region`),Mf=g(`headcount`),Nf=g(`estimated_revenue`),Pf=g(`founded_year`),Ff=`company:overview@1`,If=r.object({pipe_id:r.literal(Ff),run_if:x(),connector:w(),config:r.object({input_fields:R(r.object({[Df.name]:E({fieldName:Df.name}),[Of.name]:E({fieldName:Of.name})})),output_fields:L(r.object({[kf.name]:O({fieldName:kf.name}),[Af.name]:O({fieldName:Af.name}),[jf.name]:O({fieldName:jf.name}),[Mf.name]:O({fieldName:Mf.name}),[Nf.name]:O({fieldName:Nf.name}),[Pf.name]:O({fieldName:Pf.name})}))}).optional()}),Lf=e=>dc(q(Df,e),q(Of,e)),Rf={"company-overview-v1-pipe0":{provider:`pipe0`,allowManagedConnection:!0,credits:{default:1},mode:`always`}},zf=class extends H{pipeId=Ff;payloadSchema=If;billableOperations=Rf;payload;constructor(e){super(),this.payload=e}getProviderNames(){return[`pipe0`]}estimateBillableOperations(e){return J(e,`company-overview-v1-pipe0`)}getInputRequirement(){return Lf(this.payload.config)}getRawOutputFields(){return{[kf.name]:this.catalogOutput(kf),[Af.name]:this.catalogOutput(Af),[jf.name]:this.catalogOutput(jf),[Mf.name]:this.catalogOutput(Mf),[Nf.name]:this.catalogOutput(Nf),[Pf.name]:this.catalogOutput(Pf)}}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}]}},Bf=If,Vf={pipeId:Ff,basePipe:G(Ff),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:[W.WEBSITE,W.LINKEDIN,W.FINANCIAL_DATA,W.DEPRECATED],allowedUserConnectionProviders:[],managedProviders:[`pipe0`],deprecatedProviders:[],billableOperations:Rf,defaultInputRequirement:Lf(null),defaultPayload:{pipe_id:Ff,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}}}}},Hf=g(`company_website_url`),Uf=g(`company_profile_url`),Wf=g(`company_description`),Gf=g(`company_industry`),Kf=g(`company_region`),qf=g(`headcount`),Jf=g(`estimated_revenue`),Yf=g(`founded_year`),Xf=g(`company_name`),Zf=`company:overview@2`,Qf=r.object({pipe_id:r.literal(Zf),run_if:x(),connector:w(),config:r.object({input_fields:R(r.object({[Hf.name]:E({fieldName:Hf.name}),[Uf.name]:E({fieldName:Uf.name})})),output_fields:L(r.object({[Wf.name]:O({fieldName:Wf.name}),[Gf.name]:O({fieldName:Gf.name}),[Kf.name]:O({fieldName:Kf.name}),[qf.name]:O({fieldName:qf.name}),[Jf.name]:O({fieldName:Jf.name}),[Yf.name]:O({fieldName:Yf.name}),[Xf.name]:O({fieldName:Xf.name})}))}).optional()}),$f=e=>dc(q(Hf,e),q(Uf,e)),ep={"company-overview-v2-pipe0":{provider:`pipe0`,allowManagedConnection:!0,credits:{default:1},mode:`always`}},tp=class extends H{pipeId=Zf;payloadSchema=Qf;billableOperations=ep;payload;constructor(e){super(),this.payload=e}getProviderNames(){return[`pipe0`]}estimateBillableOperations(e){return J(e,`company-overview-v2-pipe0`)}getInputRequirement(){return $f(this.payload.config)}getRawOutputFields(){return{[Wf.name]:this.catalogOutput(Wf),[Gf.name]:this.catalogOutput(Gf),[Kf.name]:this.catalogOutput(Kf),[qf.name]:this.catalogOutput(qf),[Jf.name]:this.catalogOutput(Jf),[Yf.name]:this.catalogOutput(Yf),[Xf.name]:this.catalogOutput(Xf)}}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}]}},np=Qf,rp={pipeId:Zf,basePipe:G(Zf),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(Zf),tags:[W.WEBSITE,W.LINKEDIN,W.FINANCIAL_DATA],allowedUserConnectionProviders:[],managedProviders:[`pipe0`],deprecatedProviders:[],billableOperations:ep,defaultInputRequirement:$f(null),defaultPayload:{pipe_id:Zf,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}}}}},ip=g(`company_website_url`),ap=g(`technology_list`),op=g(`spending_trend`),sp=g(`technology_match_builtwith`),cp=`company:techstack:builtwith@1`,lp=r.object({pipe_id:r.literal(cp),connector:C(),run_if:x(),config:r.object({input_fields:R(r.object({[ip.name]:E({fieldName:ip.name})})),output_fields:L(r.object({[ap.name]:O({fieldName:ap.name}),[sp.name]:O({fieldName:sp.name}),[op.name]:O({fieldName:op.name})}))}).optional()}),up=e=>V(q(ip,e)),dp={"company-techstack-builtwith-v1-builtwith":{provider:`builtwith`,allowManagedConnection:!0,credits:{default:2},mode:`always`}},fp=class extends H{pipeId=cp;payload;payloadSchema=lp;billableOperations=dp;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`builtwith`]}estimateBillableOperations(e){return J(e,`company-techstack-builtwith-v1-builtwith`)}getInputRequirement(){return up(this.payload.config)}getRawOutputFields(){return{[ap.name]:this.catalogOutput(ap),[sp.name]:this.catalogOutput(sp),[op.name]:this.catalogOutput(op)}}getConnectionsRequirements(){return[{provider:`builtwith`,rateLimitRatio:1,rateLimitOperation:`builtwith_generic`,allowManagedConnection:!0}]}},pp=lp,mp={pipeId:cp,basePipe:G(cp),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:[W.WEBSITE],inputFieldMode:`static`,outputFieldMode:`static`,docPath:K(cp),billableOperations:dp,defaultInputRequirement:up(null),defaultPayload:{pipe_id:cp,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}}}}},hp=`company:websiteurl:email@1`,gp=g(`company_website_url`),_p=g(`email`),vp=r.object({pipe_id:r.literal(hp),run_if:x(),connector:w(),config:r.object({input_fields:R(r.object({[_p.name]:E({fieldName:_p.name})})),output_fields:L(r.object({[gp.name]:O({fieldName:gp.name})}))}).optional()}),yp=e=>V(q(_p,e)),bp={"company-websiteurl-email-v1-pipe0":{credits:{default:0},allowManagedConnection:!0,mode:`always`,provider:`pipe0`}},xp=class extends H{pipeId=hp;payload;payloadSchema=vp;billableOperations=bp;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(e){return J(e,`company-websiteurl-email-v1-pipe0`)}getInputRequirement(){return yp(this.payload.config)}getRawOutputFields(){return{[gp.name]:this.catalogOutput(gp)}}getConnectionsRequirements(){return[{provider:`pipe0`,rateLimitRatio:1,rateLimitOperation:`pipe0_logic`,allowManagedConnection:!0}]}},Sp=vp,Cp={pipeId:hp,basePipe:G(hp),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:[W.EMAIL,W.WORK_EMAIL,W.WEBSITE],docPath:K(hp),allowedUserConnectionProviders:[],managedProviders:[`pipe0`],deprecatedProviders:[],billableOperations:bp,defaultInputRequirement:yp(null),defaultPayload:{pipe_id:hp,connector:null,run_if:null,config:{input_fields:{email:{alias:``}},output_fields:{company_website_url:{alias:``,enabled:!0}}}}},wp=`people:email:iswork@1`,Tp=g(`is_work_email`),Ep=g(`email`),Dp=r.object({pipe_id:r.literal(wp),run_if:x(),connector:w(),config:r.object({input_fields:R(r.object({[Ep.name]:E({fieldName:Ep.name})})),output_fields:L(r.object({[Tp.name]:O({fieldName:Tp.name})}))}).optional()}),Op=e=>V(q(Ep,e)),kp={"people-email-iswork-v1-pipe0":{provider:`pipe0`,allowManagedConnection:!0,credits:{default:0},mode:`always`}},Ap=class extends H{pipeId=wp;payload;payloadSchema=Dp;billableOperations=kp;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(e){return J(e,`people-email-iswork-v1-pipe0`)}getInputRequirement(){return Op(this.payload.config)}getRawOutputFields(){return{[Tp.name]:this.catalogOutput(Tp)}}getConnectionsRequirements(){return[{provider:`pipe0`,rateLimitRatio:1,rateLimitOperation:`pipe0_logic`,allowManagedConnection:!0}]}},jp=Dp,Mp={pipeId:wp,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:[W.EMAIL,W.WORK_EMAIL],docPath:K(wp),billableOperations:kp,basePipe:G(wp),allowedUserConnectionProviders:[],inputFieldMode:`static`,outputFieldMode:`static`,managedProviders:[`pipe0`],deprecatedProviders:[],defaultInputRequirement:Op(null),defaultPayload:{pipe_id:wp,run_if:null,connector:null,config:{input_fields:{email:{alias:``}},output_fields:{is_work_email:{alias:``,enabled:!0}}}}},Np=`people:email:validate:zerobounce@1`,Pp=g(`work_email`),Fp=g(`is_email_valid`),Ip=r.object({pipe_id:r.literal(Np),connector:C(),run_if:x(),config:r.object({input_fields:R(r.object({[Pp.name]:E({fieldName:Pp.name})})),output_fields:L(r.object({[Fp.name]:O({fieldName:Fp.name})}))}).optional()}),Lp=e=>V(q(Pp,e)),Rp={"people-email-validate-zerobounce-v1-zerobounce":{provider:`zerobounce`,allowManagedConnection:!0,credits:{default:.3},mode:`always`}},zp=class extends H{pipeId=Np;payload;payloadSchema=Ip;billableOperations=Rp;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`zerobounce`]}estimateBillableOperations(e){return J(e,`people-email-validate-zerobounce-v1-zerobounce`)}getInputRequirement(){return Lp(this.payload.config)}getRawOutputFields(){return{[Fp.name]:this.catalogOutput(Fp)}}getConnectionsRequirements(){return[{provider:`zerobounce`,rateLimitRatio:1,rateLimitOperation:`zerobounce_generic`,allowManagedConnection:!0}]}},Bp=Ip,Vp={pipeId:Np,basePipe:G(Np),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:[W.EMAIL],docPath:`/resources/pipe-catalog/people:email:validate:zerobounce/1`,billableOperations:Rp,inputFieldMode:`static`,outputFieldMode:`static`,allowedUserConnectionProviders:[`zerobounce`],managedProviders:[`zerobounce`],deprecatedProviders:[],defaultInputRequirement:Lp(null),defaultPayload:{pipe_id:Np,connector:null,run_if:null,config:{input_fields:{work_email:{alias:``}},output_fields:{is_email_valid:{alias:``,enabled:!0}}}}},Hp=`people:email:validate:zerobounce@2`,Up=g(`email`),Wp=g(`zerobounce_validation_status`),Gp=g(`zerobounce_validation_match`),Kp=r.object({pipe_id:r.literal(Hp),connector:C(),run_if:x(),config:r.object({input_fields:R(r.object({[Up.name]:E({fieldName:Up.name})})),output_fields:L(r.object({[Gp.name]:O({fieldName:Gp.name}),[Wp.name]:O({fieldName:Wp.name})}))}).optional()}),qp=e=>V(q(Up,e)),Jp={"people-email-validate-zerobounce-v2-zerobounce":{provider:`zerobounce`,allowManagedConnection:!0,credits:{default:.3},mode:`always`}},Yp=class extends H{pipeId=Hp;payload;payloadSchema=Kp;billableOperations=Jp;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`zerobounce`]}estimateBillableOperations(e){return J(e,`people-email-validate-zerobounce-v2-zerobounce`)}getInputRequirement(){return qp(this.payload.config)}getRawOutputFields(){return{[Wp.name]:this.catalogOutput(Wp),[Gp.name]:this.catalogOutput(Gp)}}getConnectionsRequirements(){return[{provider:`zerobounce`,rateLimitRatio:1,rateLimitOperation:`zerobounce_generic`,allowManagedConnection:!0}]}},Xp=Kp,Zp={pipeId:Hp,basePipe:G(Hp),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:[W.EMAIL],docPath:K(Hp),billableOperations:Jp,inputFieldMode:`static`,outputFieldMode:`static`,allowedUserConnectionProviders:[`zerobounce`],managedProviders:[`zerobounce`],deprecatedProviders:[],defaultInputRequirement:qp(null),defaultPayload:{pipe_id:Hp,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 Qp(e){return(e.widgets||{}).display_value?.label}function $p(e){console.dir(e,{depth:100})}function em(e){return typeof e==`object`&&e?JSON.stringify(e):e}function Y(e){return e===0?1:e===1?.3:e===2?.2:.1}function tm(e){if(typeof e!=`object`||!e||Array.isArray(e))return e;let t={};return Object.keys(e).sort().forEach(n=>{t[n]=tm(e[n])}),t}const nm={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 X(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 rm=`people:identity:email:waterfall@1`,im=g(`email`),am=g(`company_website_url`),om=g(`name`),sm=g(`job_title`),cm=g(`profile_url`),lm=g(`company_profile_url`),um=g(`company_name`),dm=[`findymail`,`hunter`,`crustdata`],fm=[{provider:`findymail`},{provider:`hunter`},{provider:`crustdata`}],pm=r.object({pipe_id:r.literal(rm),connector:C(),run_if:x(),config:r.object({providers:D({availableProviders:dm,defaultProviders:fm,sectionKey:`general`}),input_fields:R(r.object({[im.name]:E({fieldName:im.name})})),output_fields:L(r.object({[om.name]:O({fieldName:om.name}),[cm.name]:O({fieldName:cm.name}),[sm.name]:O({fieldName:sm.name}),[am.name]:O({fieldName:am.name}),[um.name]:O({fieldName:um.name}),[lm.name]:O({fieldName:lm.name})}))}).optional()}),mm=e=>V(q(im,e)),hm={"people-identity-email-waterfall-v1-hunter":{provider:`hunter`,allowManagedConnection:!0,credits:{default:2},mode:`onSuccess`},"people-identity-email-waterfall-v1-findymail":{provider:`findymail`,allowManagedConnection:!0,credits:{default:2},mode:`onSuccess`},"people-identity-email-waterfall-v1-crustdata":{provider:`crustdata`,allowManagedConnection:!0,credits:{default:5},mode:`onSuccess`}},gm=class extends H{pipeId=rm;payload;payloadSchema=pm;billableOperations=hm;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return this.payload.config?.providers.map(e=>e.provider)||[]}estimateBillableOperations(e){return J(e,...this.getProviderNames().map(e=>X(e,this.billableOperations).billableOperation))}getInputRequirement(){return mm(this.payload.config)}getRawOutputFields(){return{[om.name]:this.catalogOutput(om,{isPrimaryOutput:!0}),[cm.name]:this.catalogOutput(cm,{isPrimaryOutput:!0}),[sm.name]:this.catalogOutput(sm,{isPrimaryOutput:!0}),[um.name]:this.catalogOutput(um,{isPrimaryOutput:!0}),[lm.name]:this.catalogOutput(lm,{isPrimaryOutput:!0}),[am.name]:this.catalogOutput(am,{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:Y(n),rateLimitOperation:e[t.provider],allowManagedConnection:!0}))}},_m=pm,vm={pipeId:rm,basePipe:G(rm),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:[W.EMAIL,W.PEOPLE_PROFILES],docPath:K(rm),managedProviders:dm,deprecatedProviders:[],allowedUserConnectionProviders:dm,inputFieldMode:`static`,outputFieldMode:`static`,billableOperations:hm,defaultInputRequirement:mm(null),defaultPayload:{pipe_id:rm,connector:null,run_if:null,config:{providers:fm,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}}}}},ym=`people:match:role:waterfall@1`,bm=g(`company_website_url`),xm=g(`role_finder_match`),Sm=[`leadmagic`],Cm=[{provider:`leadmagic`}],wm=r.object({pipe_id:r.literal(ym),run_if:x(),connector:C(),config:r.object({providers:D({sectionKey:`general`,defaultProviders:Cm,availableProviders:Sm}),roles:is({sectionKey:`general`,groupPath:`config.general`,label:`Roles`,path:`config.roles`,info:`Company roles to include`,maxItems:3,minItems:1}),input_fields:R(r.object({[bm.name]:E({fieldName:bm.name})})),output_fields:L(r.object({[xm.name]:O({fieldName:xm.name})}))})}),Tm=e=>dc(q(bm,e)),Em={"people-match-role-waterfall-v1-leadmagic":{provider:`leadmagic`,allowManagedConnection:!0,credits:{default:1},mode:`onSuccess`}},Dm=class extends H{pipeId=ym;payload;payloadSchema=wm;billableOperations=Em;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return this.payload.config?.providers.map(e=>e.provider)||[]}estimateBillableOperations(e){return J(e,...this.getProviderNames().map(e=>X(e,this.billableOperations).billableOperation))}getInputRequirement(){return Tm(this.payload.config)}getRawOutputFields(){return{[xm.name]:this.catalogOutput(xm,{isPrimaryOutput:!0})}}getConnectionsRequirements(){let e={leadmagic:`leadmagic_role_finder`};return(this.payload.config?.providers||[]).map((t,n)=>({provider:t.provider,rateLimitRatio:Y(n),rateLimitOperation:e[t.provider],allowManagedConnection:!0}))}},Om=wm,km={pipeId:ym,basePipe:G(ym),managedProviders:Sm,deprecatedProviders:[],allowedUserConnectionProviders:Sm,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:[W.PEOPLE_PROFILES],docPath:K(ym),billableOperations:Em,inputFieldMode:`static`,outputFieldMode:`static`,defaultInputRequirement:Tm(null),defaultPayload:{pipe_id:ym,run_if:null,connector:null,config:{roles:[],providers:Cm,input_fields:{company_website_url:{alias:``}},output_fields:{role_finder_match:{alias:``,enabled:!0}}}}},Am=`people:mobilenumber:professionalprofile:waterfall@1`,jm=g(`professional_profile_url`),Mm=g(`mobile_number`),Nm=[`leadmagic`,`prospeo`],Pm=[{provider:`leadmagic`},{provider:`prospeo`}],Fm=r.object({pipe_id:r.literal(Am),run_if:x(),connector:C(),config:r.object({providers:D({sectionKey:`general`,defaultProviders:Pm,availableProviders:Nm}),input_fields:R(r.object({[jm.name]:E({fieldName:jm.name})})),output_fields:L(r.object({[Mm.name]:O({fieldName:Mm.name})}))}).optional()}),Im=e=>V(q(jm,e)),Lm={"people-mobilenumber-professionalprofile-waterfall-v1-leadmagic":{provider:`leadmagic`,allowManagedConnection:!0,credits:{default:2},mode:`onSuccess`},"people-mobilenumber-professionalprofile-waterfall-v1-prospeo":{provider:`prospeo`,allowManagedConnection:!0,credits:{default:5},mode:`onSuccess`}},Rm=class extends H{pipeId=Am;payload;payloadSchema=Fm;billableOperations=Lm;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return this.payload.config?.providers.map(e=>e.provider)||[]}estimateBillableOperations(e){return J(e,...this.getProviderNames().map(e=>X(e,this.billableOperations).billableOperation))}getInputRequirement(){return Im(this.payload.config)}getRawOutputFields(){return{[Mm.name]:this.catalogOutput(Mm)}}getConnectionsRequirements(){let e={leadmagic:`leadmagic_email_lookup`,prospeo:`prospeo_phone_number_lookup`};return(this.payload.config?.providers||[]).map((t,n)=>({provider:t.provider,rateLimitRatio:Y(n),rateLimitOperation:e[t.provider],allowManagedConnection:!0}))}},zm=Fm,Bm={pipeId:Am,basePipe:G(Am),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:[W.PHONE,W.WATERFALL],billableOperations:Lm,defaultInputRequirement:Im(null),inputFieldMode:`static`,outputFieldMode:`static`,managedProviders:Nm,deprecatedProviders:[],allowedUserConnectionProviders:Nm,defaultPayload:{pipe_id:Am,connector:null,run_if:null,config:{providers:Pm,input_fields:{professional_profile_url:{alias:``}},output_fields:{mobile_number:{alias:``,enabled:!0}}}}},Vm=`people:mobilenumber:workemail:waterfall@1`,Hm=g(`work_email`),Um=g(`mobile_number`),Wm=[`leadmagic`],Gm=[{provider:`leadmagic`}],Km=r.object({pipe_id:r.literal(Vm),run_if:x(),connector:C(),config:r.object({providers:D({sectionKey:`general`,availableProviders:Wm,defaultProviders:Gm}),input_fields:R(r.object({[Hm.name]:E({fieldName:Hm.name})})),output_fields:L(r.object({[Um.name]:O({fieldName:Um.name})}))}).optional()}),qm=e=>V(q(Hm,e)),Jm={"people-mobilenumber-workemail-waterfall-v1-leadmagic":{provider:`leadmagic`,allowManagedConnection:!0,credits:{default:2},mode:`onSuccess`}},Ym=class extends H{pipeId=Vm;payload;payloadSchema=Km;billableOperations=Jm;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return this.payload.config?.providers?.map(e=>e.provider)||[]}estimateBillableOperations(e){return J(e,...this.getProviderNames().map(e=>X(e,this.billableOperations).billableOperation))}getInputRequirement(){return qm(this.payload.config)}getRawOutputFields(){return{[Um.name]:this.catalogOutput(Um)}}getConnectionsRequirements(){let e={leadmagic:`leadmagic_email_lookup`};return(this.payload.config?.providers||[]).map((t,n)=>({provider:t.provider,rateLimitRatio:Y(n),rateLimitOperation:e[t.provider],allowManagedConnection:!0}))}},Xm=Km,Zm={pipeId:Vm,basePipe:G(Vm),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:[W.PHONE,W.WATERFALL],docPath:`/resources/pipe-catalog/people:mobilenumber:workemail:waterfall/1`,billableOperations:Jm,defaultInputRequirement:qm(null),inputFieldMode:`static`,outputFieldMode:`static`,allowedUserConnectionProviders:Wm,managedProviders:Wm,deprecatedProviders:[],defaultPayload:{pipe_id:Vm,connector:null,run_if:null,config:{providers:Gm,input_fields:{work_email:{alias:``}},output_fields:{mobile_number:{alias:``,enabled:!0}}}}},Qm=`people:name:split@1`,$m=g(`name`),eh=g(`first_name`),th=g(`last_name`),nh=r.object({pipe_id:r.literal(Qm),connector:w(),run_if:x(),config:r.object({input_fields:R(r.object({[$m.name]:E({fieldName:$m.name})})),output_fields:L(r.object({[eh.name]:O({fieldName:eh.name}),[th.name]:O({fieldName:th.name})}))}).optional()}),rh=e=>V(q($m,e)),ih={"people-name-split-v1-pipe0":{provider:`pipe0`,allowManagedConnection:!0,credits:{default:0},mode:`always`}},ah=class extends H{pipeId=Qm;payload;payloadSchema=nh;billableOperations=ih;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(e){return J(e,`people-name-split-v1-pipe0`)}getInputRequirement(){return rh(this.payload.config)}getRawOutputFields(){return{[eh.name]:this.catalogOutput(eh),[th.name]:this.catalogOutput(th)}}getConnectionsRequirements(){return[{provider:`pipe0`,rateLimitRatio:1,rateLimitOperation:`pipe0_logic`,allowManagedConnection:!0}]}},oh=nh,sh={pipeId:Qm,basePipe:G(Qm),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:[W.NAMES],docPath:K(Qm),billableOperations:ih,inputFieldMode:`static`,outputFieldMode:`static`,defaultInputRequirement:rh(null),allowedUserConnectionProviders:[],managedProviders:[`pipe0`],deprecatedProviders:[],defaultPayload:{pipe_id:Qm,run_if:null,connector:void 0,config:{input_fields:{name:{alias:``}},output_fields:{first_name:{alias:``,enabled:!0},last_name:{alias:``,enabled:!0}}}}},ch=`people:personalemail:profile:waterfall@1`,lh=g(`profile_url`),uh=g(`personal_email`),dh=g(`alternate_personal_emails`),fh=[`clado`,`leadmagic`,`mixrank`],ph=[{provider:`leadmagic`},{provider:`mixrank`}],mh=r.object({pipe_id:r.literal(ch),run_if:x(),connector:C(),config:r.object({providers:D({sectionKey:`general`,availableProviders:fh,defaultProviders:ph}),input_fields:R(r.object({[lh.name]:E({fieldName:lh.name})})),output_fields:L(r.object({[uh.name]:O({fieldName:uh.name}),[dh.name]:O({fieldName:dh.name})}))}).optional()}),hh=e=>V(q(lh,e)),gh={"people-personalemail-profile-waterfall-v1-clado":{provider:`clado`,allowManagedConnection:!0,credits:{default:2},mode:`always`},"people-personalemail-profile-waterfall-v1-leadmagic":{provider:`leadmagic`,allowManagedConnection:!0,credits:{default:1},mode:`onSuccess`},"people-personalemail-profile-waterfall-v1-mixrank":{provider:`mixrank`,allowManagedConnection:!0,credits:{default:1},mode:`onSuccess`}},_h=class extends H{pipeId=ch;payload;payloadSchema=mh;billableOperations=gh;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return this.payload.config?.providers.map(e=>e.provider)||[]}estimateBillableOperations(e){return J(e,...this.getProviderNames().map(e=>X(e,this.billableOperations).billableOperation))}getInputRequirement(){return hh(this.payload.config)}getRawOutputFields(){return{[uh.name]:this.catalogOutput(uh,{isPrimaryOutput:!0}),[dh.name]:this.catalogOutput(dh)}}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:Y(n),rateLimitOperation:e[t.provider],allowManagedConnection:!0}))}},vh=mh,yh={pipeId:ch,basePipe:G(ch),allowedUserConnectionProviders:fh,managedProviders:fh,deprecatedProviders:[`clado`],label:`Personal email from LinkedIn`,executionMode:`waterfall`,categories:[`deprecated`],lifecycle:{deprecatedOn:`2026-06-13`,replacedBy:`person:personalemail:profileurl:waterfall@1`},description:`Find the personal email address of a prospect by using a professional profile URL as input.`,tags:[W.EMAIL,W.PERSONAL_EMAIL],docPath:K(ch),billableOperations:gh,defaultInputRequirement:hh(null),inputFieldMode:`static`,outputFieldMode:`static`,defaultPayload:{pipe_id:ch,connector:null,run_if:null,config:{providers:ph,input_fields:{profile_url:{alias:``}},output_fields:{personal_email:{alias:``,enabled:!0},alternate_personal_emails:{alias:``,enabled:!0}}}}},bh=`people:phone:profile:waterfall@1`,xh=g(`profile_url`),Sh=g(`mobile`),Ch=[`leadmagic`,`prospeo`,`amplemarket`,`findymail`,`clado`],wh=[{provider:`leadmagic`},{provider:`prospeo`},{provider:`amplemarket`},{provider:`findymail`}],Th=r.object({pipe_id:r.literal(bh),run_if:x(),connector:C(),config:r.object({providers:D({sectionKey:`general`,defaultProviders:wh,availableProviders:Ch}),input_fields:R(r.object({[xh.name]:E({fieldName:xh.name})})),output_fields:L(r.object({[Sh.name]:O({fieldName:Sh.name})}))}).optional()}),Eh=e=>V(q(xh,e)),Dh={"people-phone-profile-waterfall-v1-leadmagic":{provider:`leadmagic`,allowManagedConnection:!0,credits:{default:2},mode:`onSuccess`},"people-phone-profile-waterfall-v1-clado":{provider:`clado`,allowManagedConnection:!0,credits:{default:5},mode:`onSuccess`},"people-phone-profile-waterfall-v1-prospeo":{provider:`prospeo`,allowManagedConnection:!0,credits:{default:5},mode:`onSuccess`},"people-phone-profile-waterfall-v1-findymail":{provider:`findymail`,allowManagedConnection:!0,credits:{default:6},mode:`onSuccess`},"people-phone-profile-waterfall-v1-amplemarket":{provider:`amplemarket`,allowManagedConnection:!0,credits:{default:4},mode:`onSuccess`}},Oh=class extends H{pipeId=bh;payload;payloadSchema=Th;billableOperations=Dh;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return this.payload.config?.providers.map(e=>e.provider)||[]}estimateBillableOperations(e){return J(e,...this.getProviderNames().map(e=>X(e,this.billableOperations).billableOperation))}getInputRequirement(){return Eh(this.payload.config)}getRawOutputFields(){return{[Sh.name]:this.catalogOutput(Sh,{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:Y(n),rateLimitOperation:e[t.provider],allowManagedConnection:!0}))}},kh=Th,Ah={pipeId:bh,basePipe:G(bh),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(bh),tags:[W.PHONE,W.WATERFALL],billableOperations:Dh,defaultInputRequirement:Eh(null),inputFieldMode:`static`,outputFieldMode:`static`,managedProviders:Ch,allowedUserConnectionProviders:Ch,deprecatedProviders:[`clado`],defaultPayload:{pipe_id:bh,connector:null,run_if:null,config:{providers:wh,input_fields:{profile_url:{alias:``}},output_fields:{mobile:{alias:``,enabled:!0}}}}},jh=`people:phone:workemail:waterfall@1`,Mh=g(`work_email`),Nh=g(`mobile`),Ph=[`leadmagic`,`amplemarket`],Fh=[{provider:`leadmagic`},{provider:`amplemarket`}],Ih=r.object({pipe_id:r.literal(jh),run_if:x(),connector:C(),config:r.object({providers:D({sectionKey:`general`,availableProviders:Ph,defaultProviders:Fh}),input_fields:R(r.object({[Mh.name]:E({fieldName:Mh.name})})),output_fields:L(r.object({[Nh.name]:O({fieldName:Nh.name})}))}).optional()}),Lh=e=>V(q(Mh,e)),Rh={"people-phone-workemail-waterfall-v1-leadmagic":{provider:`leadmagic`,allowManagedConnection:!0,credits:{default:2},mode:`onSuccess`},"people-phone-workemail-waterfall-v1-amplemarket":{provider:`amplemarket`,allowManagedConnection:!0,credits:{default:4},mode:`onSuccess`}},zh=class extends H{pipeId=jh;payload;payloadSchema=Ih;billableOperations=Rh;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return this.payload.config?.providers.map(e=>e.provider)||[]}estimateBillableOperations(e){return J(e,...this.getProviderNames().map(e=>X(e,this.billableOperations).billableOperation))}getInputRequirement(){return Lh(this.payload.config)}getRawOutputFields(){return{[Nh.name]:this.catalogOutput(Nh,{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:Y(n),rateLimitOperation:e[t.provider],allowManagedConnection:!0}))}},Bh=Ih,Vh={pipeId:jh,basePipe:G(jh),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:[W.PHONE,W.WATERFALL],docPath:K(jh),billableOperations:Rh,defaultInputRequirement:Lh(null),inputFieldMode:`static`,outputFieldMode:`static`,allowedUserConnectionProviders:Ph,managedProviders:Ph,deprecatedProviders:[],defaultPayload:{pipe_id:jh,connector:null,run_if:null,config:{providers:Fh,input_fields:{work_email:{alias:``}},output_fields:{mobile:{alias:``,enabled:!0}}}}},Hh=`people:professionalprofile:waterfall@1`,Uh=g(`professional_profile`),Wh=g(`professional_profile_url`),Gh=[`prospeo`,`icypeas`],Kh=[{provider:`prospeo`},{provider:`icypeas`}],qh=r.object({pipe_id:r.literal(Hh),run_if:x(),connector:C(),config:r.object({providers:D({sectionKey:`general`,availableProviders:Gh,defaultProviders:Kh}),input_fields:R(r.object({[Wh.name]:E({fieldName:Wh.name})})),output_fields:L(r.object({[Uh.name]:O({fieldName:Uh.name})}))}).optional()}),Jh=e=>V(q(Wh,e)),Yh={"people-professionalprofile-waterfall-v1-icypeas":{provider:`icypeas`,credits:{default:1},mode:`onSuccess`,allowManagedConnection:!0},"people-professionalprofile-waterfall-v1-prospeo":{provider:`prospeo`,credits:{default:1},mode:`onSuccess`,allowManagedConnection:!0}},Xh=class extends H{pipeId=Hh;payload;payloadSchema=qh;billableOperations=Yh;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return this.payload.config?.providers.map(e=>e.provider)||[]}estimateBillableOperations(e){return J(e,...this.getProviderNames().map(e=>X(e,this.billableOperations).billableOperation))}getInputRequirement(){return Jh(this.payload.config)}getRawOutputFields(){return{[Uh.name]:this.catalogOutput(Uh)}}getConnectionsRequirements(){let e={icypeas:`icypeas_scrape_profile`,prospeo:`prospeo_social_profile_lookup`};return(this.payload.config?.providers||[]).map((t,n)=>({provider:t.provider,rateLimitRatio:Y(n),rateLimitOperation:e[t.provider],allowManagedConnection:!0}))}},Zh=qh,Qh={pipeId:Hh,basePipe:G(Hh),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:[W.LINKEDIN,W.WATERFALL],managedProviders:Gh,deprecatedProviders:[],allowedUserConnectionProviders:Gh,inputFieldMode:`static`,outputFieldMode:`static`,billableOperations:Yh,defaultInputRequirement:Jh(null),defaultPayload:{pipe_id:Hh,run_if:null,connector:null,config:{providers:Kh,input_fields:{professional_profile_url:{alias:``}},output_fields:{professional_profile:{alias:``,enabled:!0}}}}},$h=`people:professionalprofileurl:email:waterfall@1`,eg=g(`email`),tg=g(`work_email`),ng=g(`professional_profile_url`),rg=[`leadmagic`],ig=[{provider:`leadmagic`}],ag=r.object({pipe_id:r.literal($h),run_if:x(),connector:C(),config:r.object({providers:D({sectionKey:`general`,defaultProviders:ig,availableProviders:rg}),input_fields:R(r.object({[eg.name]:E({fieldName:eg.name}),[tg.name]:E({fieldName:tg.name})})),output_fields:L(r.object({[ng.name]:O({fieldName:ng.name})}))}).optional()}),og=e=>dc(q(eg,e),q(tg,e)),sg={"people-professionalprofileurl-email-waterfall-v1-leadmagic":{provider:`leadmagic`,allowManagedConnection:!0,credits:{default:3.5},mode:`onSuccess`}},cg=class extends H{pipeId=$h;payload;payloadSchema=ag;billableOperations=sg;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return this.payload.config?.providers.map(e=>e.provider)||[]}estimateBillableOperations(e){return J(e,...this.getProviderNames().map(e=>X(e,this.billableOperations).billableOperation))}getInputRequirement(){return og(this.payload.config)}getRawOutputFields(){return{[ng.name]:this.catalogOutput(ng)}}getConnectionsRequirements(){let e={leadmagic:`leadmagic_email_to_b2b_profile`};return(this.payload.config?.providers||[]).map((t,n)=>({provider:t.provider,rateLimitRatio:Y(n),rateLimitOperation:e[t.provider],allowManagedConnection:!0}))}},lg=ag,ug={pipeId:$h,basePipe:G($h),managedProviders:rg,deprecatedProviders:[],allowedUserConnectionProviders:rg,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:[W.LINKEDIN],docPath:`/resources/pipe-catalog/people:professionalprofileurl:email:waterfall/1`,billableOperations:sg,inputFieldMode:`static`,outputFieldMode:`static`,defaultInputRequirement:og(null),defaultPayload:{pipe_id:$h,run_if:null,connector:null,config:{providers:ig,input_fields:{email:{alias:``},work_email:{alias:``}},output_fields:{professional_profile_url:{alias:``,enabled:!0}}}}},dg=`people:professionalprofileurl:name@1`,fg=g(`name`),pg=g(`company_name`),mg=g(`location_hint`),hg=g(`professional_profile_url`),gg=r.object({pipe_id:r.literal(dg),connector:w(),run_if:x(),config:r.object({input_fields:R(r.object({[fg.name]:E({fieldName:fg.name}),[pg.name]:E({fieldName:pg.name}),[mg.name]:E({fieldName:mg.name})})),output_fields:L(r.object({[hg.name]:O({fieldName:hg.name})}))}).optional()}),_g=e=>uc(V(q(fg,e)),V(q(pg,e)),fc(q(mg,e))),vg={"people-professionalprofileurl-name-v1-pipe0":{provider:`pipe0`,allowManagedConnection:!0,credits:{default:.6},mode:`always`}},yg=class extends H{pipeId=dg;payload;payloadSchema=gg;billableOperations=vg;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(e){return J(e,`people-professionalprofileurl-name-v1-pipe0`)}getInputRequirement(){return _g(this.payload.config)}getRawOutputFields(){return{[hg.name]:this.catalogOutput(hg)}}getConnectionsRequirements(){return[{provider:`serper`,rateLimitRatio:1,rateLimitOperation:`serper_search`,allowManagedConnection:!0}]}},bg=gg,xg={pipeId:dg,basePipe:G(dg),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:[W.LINKEDIN],billableOperations:vg,defaultInputRequirement:_g(null),inputFieldMode:`static`,outputFieldMode:`static`,defaultPayload:{pipe_id:dg,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}}}}},Sg=`people:profile:waterfall@1`,Cg=g(`profile`),wg=g(`profile_url`),Tg=[`prospeo`,`icypeas`,`amplemarket`,`clado`],Eg=[{provider:`amplemarket`},{provider:`prospeo`},{provider:`icypeas`}],Dg=r.object({pipe_id:r.literal(Sg),run_if:x(),connector:C(),config:r.object({providers:D({sectionKey:`general`,availableProviders:Tg,defaultProviders:Eg}),input_fields:R(r.object({[wg.name]:E({fieldName:wg.name})})),output_fields:L(r.object({[Cg.name]:O({fieldName:Cg.name})}))}).optional()}),Og=e=>V(q(wg,e)),kg={"people-profile-waterfall-v1-icypeas":{provider:`icypeas`,credits:{default:1},mode:`onSuccess`,allowManagedConnection:!0},"people-profile-waterfall-v1-prospeo":{provider:`prospeo`,credits:{default:1},mode:`onSuccess`,allowManagedConnection:!0},"people-profile-waterfall-v1-clado":{provider:`clado`,credits:{default:1},mode:`onSuccess`,allowManagedConnection:!0},"people-profile-waterfall-v1-amplemarket":{provider:`amplemarket`,credits:{default:1},mode:`onSuccess`,allowManagedConnection:!0}},Ag=class extends H{pipeId=Sg;payload;payloadSchema=Dg;billableOperations=kg;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return this.payload.config?.providers.map(e=>e.provider)||[]}estimateBillableOperations(e){return J(e,...this.getProviderNames().map(e=>X(e,this.billableOperations).billableOperation))}getInputRequirement(){return Og(this.payload.config)}getRawOutputFields(){return{[Cg.name]:this.catalogOutput(Cg,{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:Y(n),rateLimitOperation:e[t.provider],allowManagedConnection:!0}))}},jg=Dg,Mg={pipeId:Sg,basePipe:G(Sg),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(Sg),tags:[W.LINKEDIN,W.WATERFALL],managedProviders:Tg,deprecatedProviders:[`clado`],allowedUserConnectionProviders:Tg,inputFieldMode:`static`,outputFieldMode:`static`,billableOperations:kg,defaultInputRequirement:Og(null),defaultPayload:{pipe_id:Sg,run_if:null,connector:null,config:{providers:Eg,input_fields:{profile_url:{alias:``}},output_fields:{profile:{alias:``,enabled:!0}}}}},Ng=g(`work_email`),Pg=g(`crustdata_person_match`),Fg=g(`crustdata_profile_match_score`),Ig=`people:profile:workemail:crustdata@1`,Lg=r.object({pipe_id:r.literal(Ig),run_if:x(),connector:C(),config:r.object({input_fields:R(r.object({[Ng.name]:E({fieldName:Ng.name})})),output_fields:L(r.object({[Pg.name]:O({fieldName:Pg.name}),[Fg.name]:O({fieldName:Fg.name})}))}).optional()}),Rg=e=>V(q(Ng,e)),zg={"people-profile-workemail-crustdata-v1-crustdata":{allowManagedConnection:!0,credits:{default:5},mode:`onSuccess`,provider:`crustdata`}},Bg=class extends H{pipeId=Ig;payload;payloadSchema=Lg;billableOperations=zg;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`crustdata`]}estimateBillableOperations(e){return J(e,`people-profile-workemail-crustdata-v1-crustdata`)}getInputRequirement(){return Rg(this.payload.config)}getRawOutputFields(){return{[Pg.name]:this.catalogOutput(Pg),[Fg.name]:this.catalogOutput(Fg)}}getConnectionsRequirements(){return[{provider:`crustdata`,rateLimitRatio:1,rateLimitOperation:`crustdata_realtime_person_enrich`,allowManagedConnection:!0}]}},Vg=Lg,Hg={pipeId:Ig,inputFieldMode:`static`,outputFieldMode:`static`,basePipe:G(Ig),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:[W.EMAIL,W.PEOPLE_PROFILES],docPath:K(Ig),billableOperations:zg,allowedUserConnectionProviders:[`crustdata`],managedProviders:[`crustdata`],deprecatedProviders:[],defaultInputRequirement:Rg(null),defaultPayload:{pipe_id:Ig,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}}}}},Ug=`people:profileurl:email:waterfall@1`,Wg=g(`email`),Gg=g(`work_email`),Kg=g(`profile_url`),qg=[`leadmagic`],Jg=[{provider:`leadmagic`}],Yg=r.object({pipe_id:r.literal(Ug),run_if:x(),connector:C(),config:r.object({providers:D({sectionKey:`general`,defaultProviders:Jg,availableProviders:qg}),input_fields:R(r.object({[Wg.name]:E({fieldName:Wg.name}),[Gg.name]:E({fieldName:Gg.name})})),output_fields:L(r.object({[Kg.name]:O({fieldName:Kg.name})}))}).optional()}),Xg=e=>dc(q(Wg,e),q(Gg,e)),Zg={"people-profileurl-email-waterfall-v1-leadmagic":{provider:`leadmagic`,allowManagedConnection:!0,credits:{default:3.5},mode:`onSuccess`}},Qg=class extends H{pipeId=Ug;payload;payloadSchema=Yg;billableOperations=Zg;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return this.payload.config?.providers.map(e=>e.provider)||[]}estimateBillableOperations(e){return J(e,...this.getProviderNames().map(e=>X(e,this.billableOperations).billableOperation))}getInputRequirement(){return Xg(this.payload.config)}getRawOutputFields(){return{[Kg.name]:this.catalogOutput(Kg,{isPrimaryOutput:!0})}}getConnectionsRequirements(){let e={leadmagic:`leadmagic_email_to_b2b_profile`};return(this.payload.config?.providers||[]).map((t,n)=>({provider:t.provider,rateLimitRatio:Y(n),rateLimitOperation:e[t.provider],allowManagedConnection:!0}))}},$g=Yg,e_={pipeId:Ug,basePipe:G(Ug),managedProviders:qg,deprecatedProviders:[],allowedUserConnectionProviders:qg,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:[W.LINKEDIN],docPath:K(Ug),billableOperations:Zg,inputFieldMode:`static`,outputFieldMode:`static`,defaultInputRequirement:Xg(null),defaultPayload:{pipe_id:Ug,run_if:null,connector:null,config:{providers:Jg,input_fields:{email:{alias:``},work_email:{alias:``}},output_fields:{profile_url:{alias:``,enabled:!0}}}}},t_=`people:validate:email:zerobounce@1`,n_=g(`work_email`),r_=g(`ip_address`),i_=g(`is_email_valid`),a_=r.object({pipe_id:r.literal(t_),connector:C(),run_if:x(),config:r.object({input_fields:R(r.object({[n_.name]:E({fieldName:n_.name}),[r_.name]:E({fieldName:r_.name})})),output_fields:L(r.object({[i_.name]:O({fieldName:i_.name})}))}).optional()}),o_=e=>uc(V(q(n_,e)),fc(q(r_,e))),s_={"people-validate-email-zerobounce-v1-zerobounce":{provider:`zerobounce`,allowManagedConnection:!0,credits:{default:.5},mode:`always`}},c_=class extends H{pipeId=t_;payload;payloadSchema=a_;billableOperations=s_;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`zerobounce`]}estimateBillableOperations(e){return J(e,`people-validate-email-zerobounce-v1-zerobounce`)}getInputRequirement(){return o_(this.payload.config)}getRawOutputFields(){return{[i_.name]:this.catalogOutput(i_)}}getConnectionsRequirements(){return[{provider:`zerobounce`,rateLimitRatio:1,rateLimitOperation:`zerobounce_generic`,allowManagedConnection:!0}]}},l_=a_,u_={pipeId:t_,basePipe:G(t_),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:[W.EMAIL],docPath:`/resources/pipe-catalog/people:validate:email:zerobounce/1`,billableOperations:s_,inputFieldMode:`static`,outputFieldMode:`static`,allowedUserConnectionProviders:[`zerobounce`],managedProviders:[`zerobounce`],deprecatedProviders:[],defaultInputRequirement:o_(null),defaultPayload:{pipe_id:t_,connector:null,run_if:null,config:{input_fields:{ip_address:{alias:``},work_email:{alias:``}},output_fields:{is_email_valid:{alias:``,enabled:!0}}}}},d_=`people:workemail:profileurl:waterfall@1`,f_=g(`profile_url`),p_=g(`work_email`),m_=g(`email_validation_status`),h_=[`hunter`,`amplemarket`,`findymail`,`leadmagic`,`crustdata`,`clado`],g_=[`clado`],__=[{provider:`hunter`},{provider:`amplemarket`},{provider:`leadmagic`},{provider:`findymail`},{provider:`crustdata`}],v_=r.object({pipe_id:r.literal(d_),connector:C(),run_if:x(),config:r.object({providers:D({availableProviders:h_,defaultProviders:__,sectionKey:`general`}),allow_catch_all_emails:ds({path:`config.allow_catch_all_emails`,defaultValue:!0,groupPath:`config.general`,sectionKey:`general`,info:``,label:`Allow catch-all emails`}),allow_risky_emails:ds({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:R(r.object({[f_.name]:E({fieldName:f_.name})})),output_fields:L(r.object({[p_.name]:O({fieldName:p_.name}),[m_.name]:O({fieldName:m_.name})}))}).optional()}),y_=e=>V(q(f_,e)),b_={"people-workemail-profileurl-waterfall-v1-hunter":{provider:`hunter`,allowManagedConnection:!0,credits:{default:1},mode:`onSuccess`},"people-workemail-profileurl-waterfall-v1-leadmagic":{provider:`leadmagic`,allowManagedConnection:!0,credits:{default:2},mode:`onSuccess`},"people-workemail-profileurl-waterfall-v1-findymail":{provider:`findymail`,allowManagedConnection:!0,credits:{default:2},mode:`onSuccess`},"people-workemail-profileurl-waterfall-v1-crustdata":{provider:`crustdata`,allowManagedConnection:!0,credits:{default:3},mode:`onSuccess`},"people-workemail-profileurl-waterfall-v1-clado":{provider:`clado`,allowManagedConnection:!0,credits:{default:3.5},mode:`onSuccess`},"people-workemail-profileurl-waterfall-v1-amplemarket":{provider:`amplemarket`,allowManagedConnection:!0,credits:{default:2.5},mode:`onSuccess`}},x_=class extends H{pipeId=d_;payload;payloadSchema=v_;billableOperations=b_;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return this.payload.config?.providers.map(e=>e.provider)||[]}estimateBillableOperations(e){return J(e,...this.getProviderNames().map(e=>X(e,this.billableOperations).billableOperation))}getInputRequirement(){return y_(this.payload.config)}getRawOutputFields(){return{[p_.name]:this.catalogOutput(p_,{isPrimaryOutput:!0}),[m_.name]:this.catalogOutput(m_,{isPrimaryOutput:!1})}}getConnectionsRequirements(){let e={leadmagic:`leadmagic_email_b2b_lookup`,hunter:`prospeo_email_lookup`,amplemarket:`amplemarket-person-reveal`,findymail:`findymail_email_b2b_lookup`,crustdata:`crustdata_realtime_person_enrich`,clado:`clado_contact_information`};return(this.payload.config?.providers||[]).map((t,n)=>({provider:t.provider,rateLimitRatio:Y(n),rateLimitOperation:e[t.provider],allowManagedConnection:!0}))}},S_=v_,C_={pipeId:d_,basePipe:G(d_),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:[W.EMAIL,W.WORK_EMAIL,W.WATERFALL],docPath:K(d_),managedProviders:h_,allowedUserConnectionProviders:h_,deprecatedProviders:g_,inputFieldMode:`static`,outputFieldMode:`static`,billableOperations:b_,defaultInputRequirement:y_(null),defaultPayload:{pipe_id:d_,connector:null,run_if:null,config:{providers:__,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}}}}},w_=`people:workemail:waterfall@1`,T_=g(`name`),E_=g(`company_website_url`),D_=g(`company_name`),O_=g(`work_email`),k_=g(`email_validation_status`),A_=[`leadmagic`,`prospeo`,`amplemarket`,`hunter`,`icypeas`,`findymail`],j_=[{provider:`leadmagic`},{provider:`prospeo`},{provider:`amplemarket`},{provider:`hunter`},{provider:`icypeas`},{provider:`findymail`}],M_=r.object({pipe_id:r.literal(w_),connector:C(),run_if:x(),config:r.object({providers:D({availableProviders:A_,defaultProviders:j_,sectionKey:`general`}),allow_catch_all_emails:ds({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:ds({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:R(r.object({[T_.name]:E({fieldName:T_.name}),[E_.name]:E({fieldName:E_.name}),[D_.name]:E({fieldName:D_.name})})),output_fields:L(r.object({[O_.name]:O({fieldName:O_.name}),[k_.name]:O({fieldName:k_.name})}))}).optional()}),N_=e=>uc(V(q(T_,e)),dc(q(E_,e),q(D_,e))),P_={"people-workemail-waterfall-v1-leadmagic":{provider:`leadmagic`,allowManagedConnection:!0,credits:{default:.5},mode:`onSuccess`},"people-workemail-waterfall-v1-icypeas":{provider:`icypeas`,allowManagedConnection:!0,credits:{default:.5},mode:`onSuccess`},"people-workemail-waterfall-v1-prospeo":{provider:`prospeo`,allowManagedConnection:!0,credits:{default:1,level1:{credits:.5,weight:1}},mode:`onSuccess`},"people-workemail-waterfall-v1-findymail":{provider:`findymail`,allowManagedConnection:!0,credits:{default:1},mode:`onSuccess`},"people-workemail-waterfall-v1-hunter":{provider:`hunter`,allowManagedConnection:!0,credits:{default:1},mode:`onSuccess`},"people-workemail-waterfall-v1-amplemarket":{provider:`amplemarket`,allowManagedConnection:!0,credits:{default:2.5},mode:`onSuccess`}},F_=class extends H{pipeId=w_;payload;payloadSchema=M_;billableOperations=P_;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return this.payload.config?.providers.map(e=>e.provider)||[]}estimateBillableOperations(e){return J(e,...this.getProviderNames().map(e=>X(e,this.billableOperations).billableOperation))}getInputRequirement(){return N_(this.payload.config)}getRawOutputFields(){return{[O_.name]:this.catalogOutput(O_,{isPrimaryOutput:!0}),[k_.name]:this.catalogOutput(k_,{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:Y(n),rateLimitOperation:e[t.provider],allowManagedConnection:!0}))}},I_=M_,L_={pipeId:w_,basePipe:G(w_),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:[W.EMAIL,W.WORK_EMAIL,W.WATERFALL],docPath:K(w_),managedProviders:A_,deprecatedProviders:[],allowedUserConnectionProviders:A_,inputFieldMode:`static`,outputFieldMode:`static`,billableOperations:P_,defaultInputRequirement:N_(null),defaultPayload:{pipe_id:w_,connector:null,run_if:null,config:{providers:j_,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}}}}},R_=`email:iswork@1`,z_=g(`is_work_email`),B_=g(`email`),V_=r.object({pipe_id:r.literal(R_),run_if:x(),connector:w(),config:r.object({input_fields:R(r.object({[B_.name]:E({fieldName:B_.name})})),output_fields:L(r.object({[z_.name]:O({fieldName:z_.name})}))}).optional()}),H_=e=>V(q(B_,e)),U_={"email-iswork-v1-pipe0":{provider:`pipe0`,allowManagedConnection:!0,credits:{default:0},mode:`always`}},W_=class extends H{pipeId=R_;payload;payloadSchema=V_;billableOperations=U_;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(e){return J(e,`email-iswork-v1-pipe0`)}getInputRequirement(){return H_(this.payload.config)}getRawOutputFields(){return{[z_.name]:this.catalogOutput(z_)}}getConnectionsRequirements(){return[{provider:`pipe0`,rateLimitRatio:1,rateLimitOperation:`pipe0_logic`,allowManagedConnection:!0}]}},G_=V_,K_={pipeId:R_,label:`Work email checker`,executionMode:`single`,categories:[`people_data`],lifecycle:null,description:`Check if a given email address is personal or professional.`,tags:[W.EMAIL,W.WORK_EMAIL],docPath:K(R_),billableOperations:U_,basePipe:G(R_),allowedUserConnectionProviders:[],inputFieldMode:`static`,outputFieldMode:`static`,managedProviders:[`pipe0`],deprecatedProviders:[],defaultInputRequirement:H_(null),defaultPayload:{pipe_id:R_,run_if:null,connector:null,config:{input_fields:{email:{alias:``}},output_fields:{is_work_email:{alias:``,enabled:!0}}}}},q_=`email:send:gmail@1`,J_=g(`gmail_email_success`),Y_=r.object({pipe_id:r.literal(q_),connector:Go(),run_if:x(),config:r.object({to:S({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:S({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`}).nullable(),subject:S({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:S({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
|
+
`;break;case`t`:t+=` `;break;case`r`:t+=`\r`;break;case`b`:t+=`\b`;break;case`f`:t+=`\f`;break;case`v`:t+=`\v`;break;case`0`:t+=`\0`;break;case`u`:{let r=e.slice(n+1,n+5);/^[0-9a-fA-F]{4}$/.test(r)?(t+=String.fromCharCode(Number.parseInt(r,16)),n+=4):t+=`u`;break}default:t+=r??``;break}}return t}const Na=(e,t=`Add a ${e} connection to enable this field`)=>n=>(n.connector?.connections??[]).some(t=>t?.connection?.startsWith(`${e}_`))?{disabled:!1}:{disabled:!0,message:t},Pa=(e,t)=>n=>{let r=e(n);return r!=null&&r!==``?{disabled:!1}:{disabled:!0,message:t}},Fa=(...e)=>t=>{for(let n of e){let e=n(t);if(e.disabled)return e}return{disabled:!1}},Ia=(...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},La=[`google-low`,`openai-high`,`anthropic-high`],Ra={"google-low":{label:`Gemini 3.5 Flash`,provider:`gemini`,rateLimitOperation:`gemini_35_flash`,rateLimitRatio:1,allowManagedConnection:!0,billingMode:`always`},"openai-high":{label:`GPT-5.5`,provider:`openai`,rateLimitOperation:`openai_gpt-5`,rateLimitRatio:1,allowManagedConnection:!0,billingMode:`always`},"anthropic-high":{label:`Claude Opus 4.8`,provider:`anthropic`,rateLimitOperation:`anthropic_opus`,rateLimitRatio:1,allowManagedConnection:!0,billingMode:`always`}},za=.03,Ba=.3,Va=100,Ha=100,Ua={"google-low":{inputPer1M:1.5,outputPer1M:9},"openai-high":{inputPer1M:5,outputPer1M:30},"anthropic-high":{inputPer1M:5,outputPer1M:25}};function Wa(e){let t=Ra[e];if(!t)throw Error(`Unknown AI model: ${e}`);return[t.provider]}function Ga(e){let t=Ra[e];if(!t)throw Error(`Unknown AI model: ${e}`);return[{provider:t.provider,rateLimitRatio:t.rateLimitRatio,rateLimitOperation:t.rateLimitOperation,allowManagedConnection:t.allowManagedConnection}]}function Ka(){let e=new Set;for(let t of La)e.add(Ra[t].provider);return[...e]}function qa(e){return Object.keys(e).some(e=>La.some(t=>e.endsWith(`-in-${t}`)||e.endsWith(`-out-${t}`)))}function Ja(e,t){return e/1e6*(1+Ba)/za*t}function Ya(e){let t=Ua[e];if(!t)throw Error(`Unknown AI model: ${e}`);return{in:Ja(t.inputPer1M,100),out:Ja(t.outputPer1M,100)}}function Xa(e,t){let n=Math.round(Ba*100);return`Billed per 100 ${e} tokens at ${Number(t.toPrecision(4))} credits/block (managed keys include a ${n}% margin over provider cost).`}function Za(e){let t={};for(let n of La){let r=Ra[n],i=Ya(n);t[`${e}-in-${n}`]={credits:{default:i.in},allowManagedConnection:!0,provider:r.provider,mode:r.billingMode,note:Xa(`input`,i.in)},t[`${e}-out-${n}`]={credits:{default:i.out},allowManagedConnection:!0,provider:r.provider,mode:r.billingMode,note:Xa(`output`,i.out)}}return t}function Qa(e,t){return{input:`${t}-in-${e}`,output:`${t}-out-${e}`}}function $a(e,t){let n=Qa(t.model,t.prefix);return[{billableOperation:n.input,quantity:e.count*Math.ceil(t.inputTokens/100)},{billableOperation:n.output,quantity:e.count*Math.ceil(t.outputTokens/100)}]}var eo=class{carriedInput=0;carriedOutput=0;addUsage(e){this.carriedInput+=Math.max(0,e.inputTokens),this.carriedOutput+=Math.max(0,e.outputTokens)}drainBlocks(){let e=Math.floor(this.carriedInput/100),t=Math.floor(this.carriedOutput/100);return this.carriedInput-=e*100,this.carriedOutput-=t*100,{inBlocks:e,outBlocks:t}}flush(){let e=+(this.carriedInput>0),t=+(this.carriedOutput>0);return this.carriedInput=0,this.carriedOutput=0,{inBlocks:e,outBlocks:t}}};function to(e){if(!e?.requires)return;let t=[];e.requires.connection&&t.push(Na(e.requires.connection));for(let n of e.requires.fields??[])t.push(Pa(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]:Fa(...t)}function no(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=Pr(e,n,t),s=Mr(o.fieldName)?g(o.fieldName):null;return s?.jsonMeta?{jsonSchema:s.jsonMeta.zodSchema?r.toJSONSchema(s.jsonMeta.zodSchema):null,exampleValue:s.jsonMeta.exampleValue||null}:i}const _=r.registry();{let e=_._map,t=_.get.bind(_);_.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 v=r.registry();{let e=v._map,t=v.get.bind(v);v.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 y=r.registry();{let e=y._map,t=y.get.bind(y);y.get=n=>{let r=n;for(;r;){let t=e.get(r);if(typeof t==`function`)return t;r=r?._zod?.parent}return t(n)}}const ro=e=>e,b={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(),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(),number_input:r.coerce.number(),min_max_int_input:r.object({min:r.number().nullable().default(null),max:r.number().nullable().default(null)}),include_exclude_input:r.object({include:r.array(r.string()).default([]),exclude:r.array(r.string()).default([])}),include_exclude_select_input:r.object({include:r.array(r.string()).default([]),exclude:r.array(r.string()).default([])}),async_include_exclude_select_input:r.object({include:r.array(r.string()).default([]),exclude:r.array(r.string()).default([])}),exact_range_input:r.record(r.string(),r.number().nullable()),range_input:r.object({from:r.number().nullable(),to:r.number().nullable()}),date_range_input:r.record(r.string(),r.string()),multi_create_input:r.array(r.string()),ordered_multi_create_input:r.array(r.string()),tagged_ordered_multi_create_input:r.array(r.string()),loose_object_input:r.record(r.string(),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(),condition_block_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())]),search_payload_input:r.looseObject({search_id:r.string()})},io=(e,t,n)=>{let r=[t.description||n,t.guide].filter(Boolean).join(` `);return r?e.describe(r):e},ao=(e,t)=>{let n=b.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},oo=(e,t)=>{let n=b.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},so=/^\s*\{\{\s*[a-zA-Z_][a-zA-Z0-9_.]*(?:\s*\|\s*[^}]+)?\s*\}\}\s*$/,co=/\{\{|\{%/,lo=(e,t)=>{let n=b.tagged_ordered_multi_create_input;e.maxItems&&(n=n.max(e.maxItems)),n=n.check(e=>{let t=e;(t.value??[]).forEach((e,n)=>{let r=so.test(e),i=co.test(e);!r&&i&&t.issues.push({code:`custom`,input:e,path:[n],message:`Each entry must be either plain text or a single field reference β not mixed.`})})}),n=e.minItems?n.min(e.minItems):n.default([]);let r={type:`tagged_ordered_multi_create_input`,...e};if(t===_){let i=t=>{let n=t.validationContext,i=n?Object.entries(n.fieldDefinitions).filter(([e,n])=>n.added_by.config_hash!==t.hash).filter(([t,n])=>!e.expectedTagType||n.type===e.expectedTagType).map(([e,t])=>({...t,resolvedName:e})):[];return{...r,inputFields:i}};return i.staticMeta={...r,inputFields:[]},t.add(n,i),n}return t.add(n,r),n},uo=(e,t)=>{let n=b.loose_object_input;n=n.check(t=>{let n=t,r=Object.entries(n.value??{});e.minKeys!=null&&r.length<e.minKeys&&n.issues.push({code:`custom`,input:n.value,message:`Add at least ${e.minKeys} ${e.keyLabel?.toLowerCase()??`entr`}${e.keyLabel?`s`:`ies`}.`}),e.maxKeys!=null&&r.length>e.maxKeys&&n.issues.push({code:`custom`,input:n.value,message:`Use at most ${e.maxKeys} ${e.keyLabel?.toLowerCase()??`entr`}${e.keyLabel?`s`:`ies`}.`}),r.forEach(([e,t])=>{Vo({value:t,issues:n.issues},!1,[e])})}),n=n.default({});let r={type:`loose_object_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},fo=(e,t)=>{let n=e.maxItems||200,r=io(b.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)`})}),e);return t.add(r,{type:`include_exclude_input`,...e}),r},po=()=>{let e=xi;return _.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}=no(e,t,n)||{};return{fieldName:e,fieldLabel:n.label,schema:r||null,exampleValue:i||null}}),path:`config.json_extraction`,groupPath:`config.json_extraction`,sectionKey:`general`}}),e},mo=(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:Ri[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},ho=(e,t)=>{let n=e.maxItems||200,r=io(b.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)`})}),e);return t.add(r,{type:`include_exclude_select_input`,...e}),r},go=(e,t)=>{let n=io(b.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`}`})}),e);return t.add(n,{type:`exact_range_input`,...e}),n},_o=(e,t)=>{let n=r.object({from:r.number().optional().nullable(),to:r.number().optional().nullable()}).default({from:null,to:null}),i=n;(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.`})}));let a=io(i,e);return t.add(a,{type:`range_input`,...e}),a},vo=(e,t)=>{let n=io(b.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`})}),e);return t.add(n,{type:`date_range_input`,...e}),n},yo=(e,t)=>{let n=io(b.boolean_input.default(e.defaultValue),e);return t.add(n,{...e,required:!1,type:`boolean_input`}),n},bo=(e,t)=>{let n=io(b.nullable_boolean_input.default(e.defaultValue),e);return t.add(n,{...e,required:!1,type:`nullable_boolean_input`,defaultValue:e.defaultValue}),n},xo=(e,t)=>{let n=b.text_input;e.minLength&&(n=n.min(e.minLength)),e.maxLength&&(n=n.max(e.maxLength)),e.pattern&&(n=n.regex(new RegExp(e.pattern)));let r=io(n,e);return t.add(r,{type:`text_input`,...e}),r},So=(e,t)=>{let n=b.textarea_input;e.minLength&&(n=n.min(e.minLength)),e.maxLength&&(n=n.max(e.maxLength));let r=io(n,e);return t.add(r,{type:`textarea_input`,...e}),r},Co=(e,t,n=`pipe_io`)=>{let i=r.object({alias:r.string().default(``).describe(`Rename this output field. Leave empty to use default name.`),enabled:r.boolean().default(!0).describe(`Whether to include this field in the output.`)}).describe(`Output field '${e.fieldName}'`);return t.add(i,{type:`output_field_input`,label:`Rename *${e.fieldName}*`,placeholder:e.fieldName,path:`config.output_fields.${e.fieldName}`,description:void 0,groupPath:`config.output_fields`,sectionKey:n}),i.default({alias:``,enabled:!0})},wo=(e,t)=>r.unknown().check(e=>{t(e.value)&&e.issues.push({code:`custom`,input:e.value,message:`Required`})}).pipe(e),To=(e,t)=>{let n=io(wo(b.int_input.check(t=>{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}`})}),e=>e==null),e);return t.add(n,{...e,type:`int_input`}),n},Eo=(e,t)=>{let n=io(wo(b.number_input.check(t=>{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}`})}),e=>e===void 0),e);return t.add(n,{...e,type:`number_input`}),n},Do=(e,t)=>{let n=b.json_schema_input;return n.check(e=>{wa(e.value)||e.issues.push({code:`custom`,input:e.value,message:`JSON schema is invalid. Check your input.`})}),e.allowEmpty||(n=n.check(e=>{Ta(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(n,{...e,type:`json_schema_input`}),n},Oo=(e,t)=>{let n=e.options.map(e=>e.value),r=new Set([...n,``]),i=b.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=io(e.defaultValue?i.default(e.defaultValue):i,e);return t.add(a,{type:`select_input`,...e}),a},ko=(e,t,n)=>{let r=io(b.search_payload_input.check(e=>{if(!e.value?.search_id){e.issues.push({code:`custom`,input:e.value,message:`Required`});return}let t=n?.safeParse(e.value);if(t&&!t.success)for(let n of t.error.issues)e.issues.push({code:`custom`,input:e.value,message:n.message,path:n.path})}),e);return t.add(r,{...e,type:`search_payload_input`,required:!0}),r},Ao=({billableOperations:e,...t},n)=>{let i=r.enum(La).default(t.defaultValue||`google-low`);return n.add(i,{type:`select_input`,options:La.map(t=>{let n=Object.keys(e).find(e=>e.endsWith(`-in-${t}`)),r=Object.keys(e).find(e=>e.endsWith(`-out-${t}`)),i=n?e[n]:void 0,a=r?e[r]:void 0;if(!i||!a)throw Error(`Unable to find token billing info for model ${t}`);return{label:Ra[t].label,value:t,widgets:{logo:{url:Ri[Ra[t].provider].logoUrl},token_pricing:{inputPerBlock:i.credits.default,outputPerBlock:a.credits.default,blockSize:100}}}}),required:!0,description:``,label:`AI Models`,...t}),i},jo=(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`});let r=new Set;t.value.forEach((e,a)=>{i.has(e)?r.has(e)?t.issues.push({code:`custom`,input:e,path:[a],message:`Duplicate option: ${e}`}):r.add(e):t.issues.push({code:`custom`,input:e,path:[a],message:`Must be one of: ${n.join(`, `)}`})})});return t.add(a,{type:`multi_select_input`,...e}),a},Mo=(e,t)=>{let n=e.required?b.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`})}):b.context_select_input,r=e.defaultValue?n.default(e.defaultValue):n,i=e.enabledIf??to(e.optionsDef);return t.add(r,{type:`context_select_input`,...e,enabledIf:i,options:[]}),r},No=(e,t)=>{let n=b.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},Po=(e,t)=>{let n=b.async_multi_select_input.check(t=>{e.required&&t.value.length===0&&t.issues.push({code:`custom`,input:t.value,message:`Required`})});return e.maxItems&&(n=n.max(e.maxItems)),t.add(n,{type:`async_multi_select_input`,...e}),n},Fo=(e,t)=>{let n=e.maxItems||200,r=b.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)`})});return t.add(r,{type:`async_include_exclude_select_input`,...e}),r},x=()=>{let e=Li.nullish();return _.add(e,e=>{let t=e.validationContext;return{label:``,description:``,type:`pipes_run_if_input`,groupPath:`run_if`,path:`run_if`,sectionKey:`pipe_io`,fields:Object.entries(t.fieldDefinitions).filter(([e,t])=>t.type!==`json`&&e.toLowerCase()!==`id`).map(([e,t])=>({fieldName:e,fieldLabel:t.label,format:t.format,type:t.type}))}}),e},Io=e=>{let t=Fi.nullish();return y.add(t,t=>{let n=t.validationContext;return{type:`condition_block_input`,...e,fields:Object.entries(n.fieldDefinitions).filter(([e,t])=>t.type!==`json`&&e.toLowerCase()!==`id`).map(([e,t])=>({fieldName:e,fieldLabel:t.label,format:t.format,type:t.type}))}}),t},Lo=e=>{let t=io(Ii.nullable().check(e=>{let t=e;if(t.value===null){t.issues.push({code:`custom`,input:t.value,message:`Add at least one condition.`});return}(t.value?.conditions??[]).forEach((e,n)=>{typeof e.value==`string`&&Vo({value:e.value,issues:t.issues},!1,[`conditions`,n,`value`])})}),e,"Condition block over the target sheet's columns. `field_name` is a LITERAL column name of the looked-up sheet (never templated); string `value`s may contain `{{ field }}` / `{{ SECRETS.KEY }}` / `{{ CONSTANTS.KEY }}` Liquid references resolved per row.");return _.add(t,t=>{let n=t.validationContext;return{type:`condition_block_input`,fields:[],fieldNameMode:`text`,properties:[`value`],inputFields:Object.entries(n.fieldDefinitions).filter(([e,n])=>n.added_by.config_hash!==t.hash).map(([e,t])=>({...t,resolvedName:e})),...e}}),t};function Ro(e,t){if(!t)return e;let n={...e};for(let[r,i]of Object.entries(t))n[r]=i===null?null:{...e[r]??{},...i};return n}function zo({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 Bo=({schema:e,extractFromSchema:t,store:n,formResolvers:i,sectionMap:a,groupMap:o,pathMap:s})=>{let c={};function l(e){let t=e?._zod?.def?.type;return!(t===`optional`||t===`nullable`||t===`default`)}function u(e,d){let f=t(e),ee=f?.required,te=f&&ee===void 0&&d!==void 0?{...f,required:d}:f;if(te){let{sectionKey:e,groupPath:t,path:r}=te,l=a?.[e],u=o?.[t],d=s?.[r];if(!(l===null||u===null||d===null)){let r=d?{...te,label:d.label??te.label,description:d.description??te.description}:te;c[e]??={type:`section`,groups:[],metadata:{type:`form_section`,path:l?.path??e,label:l?.label,description:l?.description}};let a=c[e];if(!a)throw Error(`Section not defined`);let o=a.groups.find(e=>e.groupPath===t);if(o){let e=zo({fieldMetadata:r,store:n,formResolvers:i});e&&o.fields.push(e)}else{let e=zo({fieldMetadata:r,store:n,formResolvers:i});e&&a.groups.push({groupPath:t,fields:[e],type:`group`,label:u?.label,defaultExpand:!!u?.defaultExpand,description:u?.description,iconKey:u?.iconKey,order:u?.order})}}}if(typeof e==`object`&&`unwrap`in e&&typeof e.unwrap==`function`&&u(e.unwrap(),d),e instanceof r.ZodObject)for(let t of Object.values(e.shape))u(t,l(t))}u(e);for(let e of Object.values(c))e.groups=e.groups.filter(e=>e.fields.length!==0),e.groups.sort((e,t)=>(e.order??99)-(t.order??99));return Object.entries(c).filter(([,e])=>e.groups.length!==0).sort(([e],[t])=>(a?.[e]?.order??99)-(a?.[t]?.order??99)).map(([,e])=>e)};function Vo(e,t,n=[]){let r=e.value;if(!(typeof r!=`string`||!r))try{let i=ia(r);!t&&i.outputs.length>0&&e.issues.push({code:`custom`,input:r,path:n,message:`{% output %} tags are not allowed in this field.`}),t&&i.outputs.length===0&&e.issues.push({code:`custom`,input:r,path:n,message:`At least one {% output %} tag is required, e.g. {% output result, type: "string", description: "..." %}`})}catch(t){e.issues.push({code:`custom`,input:r,path:n,message:t instanceof Error?t.message:String(t)})}}const Ho=e=>{let t=(e.supportedTags??[]).includes(`output`),n=r.object({template:io(r.string().min(10).check(e=>Vo(e,t,[])),e,'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 _.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},Uo=e=>{let t=r.string();e.required&&(t=t.min(1)),e.maxLength&&(t=t.max(e.maxLength));let n=io(t.check(e=>Vo(e,!1,[])),e,'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 _.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},S=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))),n=n.check(e=>Vo(e,!1,[])),n=io(n,e,t);let i=e.optionsDef?{...e.optionsDef,enabledIf:e.optionsDef.enabledIf??to(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:[]},_.add(n,o),n};function Wo(e,t){_.add(e,({userConnections:e,pipeEntry:n})=>{let r=new Set(n.allowedUserConnectionProviders),i=e.filter(e=>r.has(e.provider));return{label:t===`required`?`Custom connection`:``,description:``,required:t===`required`,groupPath:`connector`,path:`connector`,connectorMode:t,type:`connector_input`,sectionKey:`pipe_io`,supportsUserConnections:r.size>0,filteredConnections:i.map(e=>({provider:e.provider,connection:Sa({id:e.public_id,provider:e.provider})}))}})}const Go=()=>{let e=Oi;return Wo(e,`required`),e},C=()=>{let e=Di;return Wo(e,`optional`),e},w=()=>{let e=ki;return Wo(e,`disabled`),e};function Ko(e,t){v.add(e,({userConnections:e,searchEntry:n})=>{let r=n.allowsUserConnection?[n.provider]:[],i=new Set(r),a=e.filter(e=>i.has(e.provider));return{label:t===`required`?`Custom connection`:``,description:``,required:t===`required`,groupPath:`connector`,path:`connector`,connectorMode:t,type:`connector_input`,sectionKey:`pipe_io`,supportsUserConnections:i.size>0,filteredConnections:a.map(e=>({provider:e.provider,connection:Sa({id:e.public_id,provider:e.provider})}))}})}const qo=()=>{let e=Oi;return Ko(e,`required`),e},Jo=()=>{let e=Di;return Ko(e,`optional`),e};function Yo(e,t){y.add(e,({userConnections:e,effectEntry:n})=>{let r=new Set(n.allowedUserConnectionProviders),i=e.filter(e=>r.has(e.provider));return{label:t===`required`?`Custom connection`:``,description:``,required:t===`required`,groupPath:`connector`,path:`connector`,connectorMode:t,type:`connector_input`,sectionKey:`pipe_io`,supportsUserConnections:r.size>0,filteredConnections:i.map(e=>({provider:e.provider,connection:Sa({id:e.public_id,provider:e.provider})}))}})}const Xo=()=>{let e=Oi;return Yo(e,`required`),e},Zo=()=>{let e=Di;return Yo(e,`optional`),e},T=()=>{let e=ki;return Yo(e,`disabled`),e};function Qo(e,t){return Object.entries(t.fieldDefinitions).filter(([t,n])=>n.added_by.config_hash!==e&&t.toLowerCase()!==`id`).map(([e,t])=>({label:e,value:e,type:t.type,format:t.format}))}const E=e=>{let t=r.object({alias:r.string().describe(`Override field name mapping. Leave empty to use default.`)});return _.add(t,t=>{let n=t.validationContext;return{type:`select_input`,required:!1,sectionKey:`pipe_io`,defaultValue:void 0,placeholder:e.fieldName,options:Qo(t.hash,n),path:`config.input_fields.${e.fieldName}.alias`,label:`Assign *${e.fieldName}* to:`,description:``,groupPath:`config.input_fields`,multiple:!1}}),t.default({alias:``})},D=e=>mo(e,_),$o=e=>{let t=b.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([]),_.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},es=e=>{let t=b.fields_select_input.check(e=>{e.value.forEach((t,n)=>{t.field_name.length<1&&e.issues.push({code:`custom`,input:t.field_name,path:[n,`field_name`],message:`field_name must not be empty`})})});return t=e.minItems?t.min(e.minItems):t.default([]),y.add(t,t=>{let n=t.validationContext;return{type:`fields_select_input`,options:Object.entries(n.fieldDefinitions).filter(([e])=>e.toLowerCase()!==`id`).map(([e,t])=>({fieldName:e,fieldLabel:e,type:t.type})).map(e=>({value:e.fieldName,label:e.fieldLabel,widgets:{field_type:{type:e.type}}})),...e}}),t},ts=(e,t)=>{let n=t===`selection`?et:t===`sheet`?tt:rt,i={label:`All rows`,value:{type:`all`}},a={label:`Specific rows by ID`,value:{type:`rows`,record_ids:[]}},o=t===`selection`?[a]:t===`sheet`?[i]:[i,a,{label:`Window of 10 rows`,value:{type:`window`,count:10}}],s=r.preprocess(e=>{if(typeof e!=`string`)return e;let t=e.trim();if(t===``)return;let n=Da(t);return n===void 0?e:n},n).optional();return y.add(s,{type:`textarea_input`,rows:3,language:`json`,quickOptions:o,...e}),s},ns=e=>fo(e,_),rs=e=>ao(e,_),is=e=>oo(e,_),as=e=>lo(e,_),os=e=>uo(e,_),ss=e=>ho(e,_),cs=e=>Fo(e,_),ls=e=>go(e,_),us=e=>vo(e,_),ds=e=>yo(e,_),O=e=>Co(e,_),fs=e=>{let{groupPath:t,sectionKey:n=`pipe_io`,defaultName:r,nameInfo:i}=e;return{destination_field_name:ps({label:`Field name`,description:`Destination field name`,info:i??`Name of the field written to the destination sheet.`,placeholder:r,inputType:`text`,path:`config.destination_field_name`,groupPath:t,sectionKey:n}).nullable().default(``),destination_field_type:hs({label:`Type`,info:`Field data type. Leave unset to infer it from the data.`,path:`config.destination_field_type`,groupPath:t,sectionKey:n,required:!1,options:Br.filter(e=>e!==`unknown`).map(e=>({value:e,label:e}))}).default(``),destination_field_format:hs({label:`Format`,info:`Optional display format for the field.`,path:`config.destination_field_format`,groupPath:t,sectionKey:n,required:!1,options:oi.map(e=>({value:e,label:e}))}).default(``),destination_field_label:ps({label:`Label`,description:`Destination field label`,info:`Human-friendly column header. Defaults to the field name.`,inputType:`text`,path:`config.destination_field_label`,groupPath:t,sectionKey:n}).nullable().default(``)}},ps=e=>xo(e,_),ms=e=>So(e,_),hs=e=>Oo(e,_),gs=e=>Ao(e,_),_s=e=>jo(e,_),vs=e=>To(e,_),ys=e=>Eo(e,_),bs=e=>Do(e,_),xs=e=>Mo(e,_),k=e=>ao(e,v),Ss=e=>oo(e,v),Cs=e=>No(e,v),A=e=>fo(e,v),j=e=>ho(e,v),ws=e=>go(e,v),Ts=e=>_o(e,v),Es=e=>vo(e,v),Ds=e=>yo(e,v),Os=e=>bo(e,v),M=e=>Co(e,v,`pipe_io`),ks=e=>xo(e,v),As=e=>So(e,v),js=e=>Oo(e,v),Ms=e=>Mo(e,v),N=e=>jo(e,v),P=e=>Po(e,v),F=e=>Fo(e,v),I=e=>To(e,v),Ns=e=>Eo(e,v),Ps=e=>xo(e,ro(y)),Fs=e=>So(e,ro(y)),Is=e=>Oo(e,ro(y)),Ls=e=>jo(e,ro(y)),Rs=e=>To(e,ro(y)),zs=e=>To(e,ro(y)).nullish(),Bs=e=>yo(e,ro(y)),Vs=e=>Mo(e,ro(y)),Hs=e=>Ao(e,ro(y)),Us=(e,t)=>ko(e,ro(y),t),L=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()),R=e=>e.optional();function Ws(e){if(typeof e!=`object`||!e)return e;if(Array.isArray(e))return e.map(Ws).filter(e=>!kn(e));let t={};for(let[n,r]of Object.entries(e)){let e=Ws(r);kn(e)||(t[n]=e)}return t}const Gs=await l();var Ks=class e{static hashObject(t){if(!Gs)throw Error(`HashAPI not initialized`);let{h64ToString:n}=Gs,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 z(e){return e.split(`@`)[0]}function qs(e,t){let n={effectId:e,config:Ws(t)};return Ks.hashObject(n)}var B=class{validatePayload(e){try{return this.schema.parse(e)}catch(e){throw e instanceof n?Error(JSON.stringify(r.prettifyError(e))):e}}getSecretRequirements(){return[]}getConstantRequirements(){return[]}getConfigHashKey(){return qs(this.payload.effect_id,this.payload.config||{})}producesDynamicFields(){return!1}evolveSchema(e){return{next:e}}getRecordQueueConfig(e){return null}};const Js=`env:change@1`,Ys={},Xs=r.object({effect_id:r.literal(Js),connector:T(),config:r.object({environment:Lr})}),Zs=class extends B{effectId=Js;schema=Xs;payload;billableOperations=Ys;constructor(e){super(),this.payload=this.validatePayload(e)}getConnectionsRequirements(){return[]}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[]}getFieldReferences(){return[]}},Qs=Xs,$s={effectId:Js,baseEffect:z(Js),label:`Change environment`,description:`Switch the sheet between production and sandbox.`,categories:[`internal`],tags:[],lifecycle:null,billableOperations:Ys,allowedUserConnectionProviders:[],managedProviders:[`pipe0`],selectionMode:`sheet`,lockingMode:`exclusive`,lockScope:`sheet`,catalogVisibility:`hidden`,defaultPayload:{effect_id:Js,connector:null,config:{environment:`production`}}},ec=`fields:add@1`,tc={},nc=r.object({effect_id:r.literal(ec),connector:T(),config:r.object({})}),rc=class extends B{effectId=ec;schema=nc;payload;billableOperations=tc;constructor(e){super(),this.payload=this.validatePayload(e)}getConnectionsRequirements(){return[]}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[]}getFieldReferences(){return[]}},ic=nc,ac={effectId:ec,baseEffect:z(ec),label:`Add field`,description:`Add a new empty field to the sheet.`,categories:[`internal`],tags:[],lifecycle:null,billableOperations:tc,allowedUserConnectionProviders:[],managedProviders:[`pipe0`],selectionMode:`sheet`,lockingMode:`exclusive`,lockScope:`sheet`,catalogVisibility:`hidden`,defaultPayload:{effect_id:ec,connector:null,config:{}}},oc=[`id`],sc=e=>oc.includes(e.trim().toLowerCase()),cc=e=>typeof e.kind==`string`,lc=e=>cc(e)?e:{kind:`field`,field:e},V=e=>({kind:`field`,field:e}),uc=(...e)=>({kind:`all`,of:e.map(lc)}),dc=(...e)=>({kind:`any`,of:e.map(lc)}),fc=e=>({kind:`optional`,field:e});function pc(e,t){switch(e.kind){case`optional`:return!0;case`field`:return t.has(e.field.resolvedName);case`all`:return e.of.every(e=>pc(e,t));case`any`:return e.of.some(e=>pc(e,t))}}function mc(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(mc)}}function hc(e,t){let n=gc(e,t);return n.ok?{valid:!0,failedPipeInputField:null,failedRecordField:null}:{valid:!1,failedPipeInputField:n.field,failedRecordField:n.recordField}}function gc(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=gc(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=gc(i,t);if(r=!0,e.ok)return{ok:!0};n=e}catch{}return r?n:{ok:!0}}}}function _c(e,t){let n={pipeId:e,config:Ws(t)};return Ks.hashObject(n)}function vc(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:Ks.hashObject(Ws(n))}var H=class{validatePayload(e){try{return this.payloadSchema.parse(e)}catch(e){throw e instanceof n?Error(r.prettifyError(e)):e}}getSecretRequirements(){return[]}getConstantRequirements(){return[]}async getAgentContext(e){return null}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 mc(this.getInputRequirement()))e[t.name]=t;return e}getConfigHashKey(){return _c(this.payload.pipe_id,this.payload.config||{})}getInputHashKey(e){return vc(e,this.inputFields)}};const yc={title:`Software Engineer, CEO, ...`,seniority:`C-Suite, Senior, ...`,department:`Consulting, Finance, ...`,certification:`CISSP, AWS, ...`,crunchbase_category:`3D Printing, Big Date, ...`,honor:`Cum Laude, 40 Under 40, ...`,field_of_study:`Engineering, Computer Science, ...`,degree_name:`Bachelor of Science, ...`,extracurricular:`Athelete, Debate Team, ...`,job_function:`Accounting, Advertising, ...`,location:`United States, Germany, France, ...`,company_name:`Google, Anthropic, ...`,company_domain:`google.com, openai.com, ...`,company_profile_keyword:`B2B, Software, ...`,headline_keywords:`Founder, JavaScript, ...`,profile_keywords:`Coach, Scrum, ...`,languages:`German, English, ...`,languages_1:`Spanish, Italian, ...`,skills:`TypeScript, Playwright, ...`,industry:`IT, Agriculture, ...`,investor:`a16z, Inside Partners, ...`,school:`MIT, Harvard, ...`,prompt:`Enter prompt here...`,template:`Enter template here...`};function U(e){return yc[e]}function bc(e,t){return typeof t==`string`?t:t(e)}function xc(e,t){return typeof t==`string`||t===null?t:t(e)}function Sc(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:bc(e,a[r].type),format:xc(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 Cc(e,t){for(let n of e.pipes){let r=n.getOutputFields();if(r[t])return{type:bc(e,r[t].type),format:xc(e,r[t].format)}}let n=e.derivedInputFields[t];if(n)return{type:n.type,format:null}}function wc(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=ia(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=>Cc(t,e)?.type||n,format:r};a.push(t.required?V(i):fc(i))}return uc(...a)}function Tc(e){let t=new Set;for(let n of e)if(n)try{let e=ia(n);for(let n of e.secrets)t.add(n)}catch{}return[...t]}function Ec(e){let t=new Set;for(let n of e)if(n)try{let e=ia(n);for(let n of e.constants)t.add(n)}catch{}return[...t]}const W={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`,EVENTS:`Events`,JSON:`Json`,FIELDS:`Fields`,LOGIC:`Logic`,DEPRECATED:`Deprecated β`};function Dc(e,t){let n={};for(let r of t)for(let t of Object.values(e))if(t&&t.provider===r&&t.allowManagedConnection){n[r]=t.credits.default;break}return n}function Oc(e){return mc(e).map(({field:e})=>e)}function kc({recordField:e,value:t,resolvedBy:n,widgets:r}){return e.value=t,e.status=`completed`,e.resolved_by=n,e.widgets=r,e}function Ac({recordField:e}){return e.status=`pending`,e.resolved_by=null,e.value=null,e}function jc({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 Mc(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 Nc(e,t){return e.value=null,e.status=`skipped`,e.resolved_by=null,e.reason=t,e.widgets={},e}function Pc(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/pipe-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 Fc=`agent:run@1`,Ic=`agent-run-v1`,Lc=[{value:`web_researcher`,label:`Web researcher`,widgets:{emoji:{char:`π`}}}],Rc={...Za(Ic),"agent-run-v1-search-parallel":{allowManagedConnection:!0,provider:`parallel`,credits:{default:.2},mode:`always`,note:`Billed per web search the agent performs.`},"agent-run-v1-extract-parallel":{allowManagedConnection:!0,provider:`parallel`,credits:{default:.1},mode:`always`,note:`Billed per URL-extraction call the agent performs.`}},zc=r.object({pipe_id:r.literal(Fc),connector:C(),run_if:x(),config:r.object({agent_type:hs({sectionKey:`general`,groupPath:`config.prompt`,path:`config.agent_type`,label:`Agent type`,defaultValue:`web_researcher`,options:[...Lc],required:!0}),prompt:Ho({sectionKey:`general`,path:`config.prompt`,placeholder:U(`prompt`),groupPath:`config.prompt`,supportedTags:[`input`,`output`]}),model:gs({sectionKey:`general`,label:`Model`,path:`config.model`,groupPath:`config.prompt`,billableOperations:Rc})})}),Bc=class extends H{pipeId=Fc;payload;payloadSchema=zc;billableOperations=Rc;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[...Wa(this.payload.config.model),`parallel`]}estimateBillableOperations(e){return[...$a(e,{model:this.payload.config.model,prefix:Ic,inputTokens:2e4,outputTokens:1500}),{billableOperation:`agent-run-v1-search-parallel`,quantity:e.count*4},{billableOperation:`agent-run-v1-extract-parallel`,quantity:e.count*1}]}getInputRequirement(){return wc([this.payload.config.prompt.template])}getSecretRequirements(){return Tc([this.payload.config.prompt.template])}getConstantRequirements(){return Ec([this.payload.config.prompt.template])}getRawOutputFields(){let e=this.payload.config.prompt.template,t=this.payload.config.prompt.json_schemas??{},n={},r;try{r=ia(e)}catch{return n}for(let e of r.outputs){let r=e.type;if(r===`json`){let i=e.schemaRef?t[e.schemaRef]:void 0;n[e.name]={enabled:!0,name:e.name,label:e.name,resolvedName:e.name,type:r,description:e.description,jsonMeta:{zodSchema:i,exampleValue:null},format:null,isCatalogFIeld:!1,isPrimaryOutput:!1}}else n[e.name]={enabled:!0,name:e.name,label:e.name,resolvedName:e.name,type:r,description:e.description,jsonMeta:null,format:e.format??null,isCatalogFIeld:!1,isPrimaryOutput:!1}}return n}getConnectionsRequirements(){return[...Ga(this.payload.config.model),{provider:`parallel`,rateLimitRatio:4,rateLimitOperation:`parallel_search_base`,allowManagedConnection:!0},{provider:`parallel`,rateLimitRatio:1,rateLimitOperation:`parallel_extract`,allowManagedConnection:!0}]}},Vc=zc,Hc={pipeId:Fc,inputFieldMode:`config`,outputFieldMode:`config`,basePipe:G(Fc),label:`AI agent`,executionMode:`single`,categories:[`actions`,`tools`],lifecycle:null,description:`Runs an AI research agent with web tools and structured output fields.`,guide:`AI agent with tools. Like prompt:run@1, inputs and outputs are fully dynamic β defined by the tags in the prompt template β but the agent can call tools before answering. The agent type decides the toolset: web_researcher gets web search and URL extraction, for questions model knowledge alone can't answer ('has {{ company_name }} ever raised money?', 'find the general counsel of {{ company_name }}'). Every tool call is billed on top of tokens, so when no live research is needed, use prompt:run@1 instead. Fields the agent cannot ground in evidence come back as no_result, not a guess.`,tags:[W.AI],docPath:K(Fc),defaultInputRequirement:null,billableOperations:Rc,allowedUserConnectionProviders:[...Ka(),`parallel`],managedProviders:[...Ka(),`parallel`],deprecatedProviders:[],defaultPayload:{pipe_id:Fc,connector:null,run_if:null,config:{agent_type:`web_researcher`,model:`google-low`,prompt:{template:``,json_schemas:{}}}}};function J(e,...t){return t.map(t=>({billableOperation:t,quantity:e.count}))}function Uc(e,t){return n=>{let r=e[n];if(!r)throw Error(`Missing billableOperation def for "${n}"`);return!r.allowManagedConnection||t?.(r.provider)?0:r.credits.default}}function Wc(e,t,n=`sum`){let r=e.map(e=>e.quantity*t(e.billableOperation));return r.length===0?0:n===`max`?Math.max(...r):r.reduce((e,t)=>e+t,0)}const Gc=`company:domain:workemail@1`,Kc=g(`company_domain`),qc=g(`work_email`),Jc=r.object({pipe_id:r.literal(Gc),run_if:x(),connector:w(),config:r.object({input_fields:R(r.object({[qc.name]:E({fieldName:qc.name})})),output_fields:L(r.object({[Kc.name]:O({fieldName:Kc.name})}))}).optional()}),Yc=e=>V(q(qc,e)),Xc={"company-domain-workemail-v1-pipe0":{credits:{default:0},allowManagedConnection:!0,mode:`always`,provider:`pipe0`}},Zc=class extends H{pipeId=Gc;payload;payloadSchema=Jc;billableOperations=Xc;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(e){return J(e,`company-domain-workemail-v1-pipe0`)}getInputRequirement(){return Yc(this.payload.config)}getRawOutputFields(){return{[Kc.name]:this.catalogOutput(Kc)}}getConnectionsRequirements(){return[{provider:`pipe0`,rateLimitRatio:1,rateLimitOperation:`pipe0_logic`,allowManagedConnection:!0}]}},Qc=Jc,$c={pipeId:Gc,basePipe:G(Gc),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:[W.EMAIL,W.WORK_EMAIL,W.WEBSITE],docPath:K(Gc),allowedUserConnectionProviders:[],managedProviders:[`pipe0`],deprecatedProviders:[],billableOperations:Xc,defaultInputRequirement:Yc(null),defaultPayload:{pipe_id:Gc,connector:null,run_if:null,config:{input_fields:{[qc.name]:{alias:``}},output_fields:{[Kc.name]:{alias:``,enabled:!0}}}}},el=`company:funding:leadmagic@2`,tl=g(`company_name`),nl=g(`company_domain`),rl=g(`funding_history`),il=g(`funding_total_usd`),al=g(`leadmagic_competitor_list`),ol=g(`leadmagic_acquisition_history`),sl=g(`leadmagic_company_news_list`),cl=r.object({pipe_id:r.literal(el),connector:C(),run_if:x(),config:r.object({input_fields:R(r.object({[tl.name]:E({fieldName:tl.name}),[nl.name]:E({fieldName:nl.name})})),output_fields:L(r.object({[rl.name]:O({fieldName:rl.name}),[il.name]:O({fieldName:il.name}),[al.name]:O({fieldName:al.name}),[ol.name]:O({fieldName:ol.name}),[sl.name]:O({fieldName:sl.name})}))}).optional()}),ll=e=>dc(q(tl,e),q(nl,e)),ul={"company-funding-leadmagic-v2-leadmagic":{provider:`leadmagic`,allowManagedConnection:!0,credits:{default:2},mode:`onSuccess`}},dl=class extends H{pipeId=el;payload;payloadSchema=cl;billableOperations=ul;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`leadmagic`]}estimateBillableOperations(e){return J(e,`company-funding-leadmagic-v2-leadmagic`)}getInputRequirement(){return ll(this.payload.config)}getRawOutputFields(){return{[rl.name]:this.catalogOutput(rl),[il.name]:this.catalogOutput(il),[ol.name]:this.catalogOutput(ol),[sl.name]:this.catalogOutput(sl),[al.name]:this.catalogOutput(al)}}getConnectionsRequirements(){return[{provider:`leadmagic`,rateLimitRatio:1,rateLimitOperation:`leadmagic_company_funding`,allowManagedConnection:!0}]}},fl=cl,pl={pipeId:el,basePipe:G(el),label:`Funding history`,executionMode:`single`,categories:[`company_data`],lifecycle:null,description:`Information on funding rounds, acquisition, competitors, and investors.`,tags:[W.FINANCIAL_DATA],docPath:K(el),billableOperations:ul,inputFieldMode:`static`,outputFieldMode:`static`,allowedUserConnectionProviders:[`leadmagic`],managedProviders:[`leadmagic`],deprecatedProviders:[],defaultInputRequirement:ll(null),defaultPayload:{pipe_id:el,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:``}}}}},ml=g(`company_name`),hl=g(`company_profile_url`),gl=g(`company_domain`),_l=g(`cleaned_company_name`),vl=`company:identity@3`,yl=r.object({pipe_id:r.literal(vl),run_if:x(),connector:w(),config:r.object({input_fields:R(r.object({[ml.name]:E({fieldName:ml.name})})),output_fields:L(r.object({[hl.name]:O({fieldName:hl.name}),[_l.name]:O({fieldName:_l.name}),[gl.name]:O({fieldName:gl.name})}))}).optional()}),bl=e=>V(q(ml,e)),xl={"company-identity-v3-pipe0":{allowManagedConnection:!0,credits:{default:.3,level1:{credits:.2,weight:1}},mode:`always`,provider:`pipe0`}},Sl=class extends H{pipeId=vl;payload;payloadSchema=yl;billableOperations=xl;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(e){return J(e,`company-identity-v3-pipe0`)}getInputRequirement(){return bl(this.payload.config)}getRawOutputFields(){return{[hl.name]:this.catalogOutput(hl),[gl.name]:this.catalogOutput(gl),[_l.name]:this.catalogOutput(_l)}}getConnectionsRequirements(){return[{provider:`gemini`,rateLimitRatio:1,rateLimitOperation:`gemini_35_flash`,allowManagedConnection:!0},{provider:`serper`,rateLimitRatio:2,rateLimitOperation:`serper_search`,allowManagedConnection:!0},{provider:`leadmagic`,rateLimitRatio:.2,rateLimitOperation:`leadmagic_company_search`,allowManagedConnection:!0},{provider:`perplexity`,rateLimitRatio:.2,rateLimitOperation:`perplexity_generic`,allowManagedConnection:!0},{provider:`pipe0`,rateLimitRatio:.02,rateLimitOperation:`pipe0_scraper`,allowManagedConnection:!0}]}},Cl=yl,wl={pipeId:vl,inputFieldMode:`static`,outputFieldMode:`static`,basePipe:G(vl),label:`Company identity`,executionMode:`mix`,categories:[`company_data`],lifecycle:null,description:`Find any company's website URL, LinkedIn profile URL, and cleaned name.`,tags:[W.WEBSITE,W.LINKEDIN],docPath:K(vl),billableOperations:xl,allowedUserConnectionProviders:[],managedProviders:[`pipe0`],deprecatedProviders:[],defaultInputRequirement:bl(null),defaultPayload:{pipe_id:vl,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}}}}},Tl=g(`company_domain`),El=g(`company_name`),Dl=g(`crustdata_company_identity_matches`),Ol=`company:identity:crustdata@1`,kl=r.object({pipe_id:r.literal(Ol),run_if:x(),connector:C(),config:r.object({input_fields:R(r.object({[Tl.name]:E({fieldName:Tl.name}),[El.name]:E({fieldName:El.name})})),output_fields:L(r.object({[Dl.name]:O({fieldName:Dl.name})}))}).optional()}),Al=e=>dc(q(Tl,e),q(El,e)),jl={"company-identity-crustdata-v1-crustdata":{allowManagedConnection:!0,credits:{default:.001},mode:`onSuccess`,provider:`crustdata`}},Ml=class extends H{pipeId=Ol;payload;payloadSchema=kl;billableOperations=jl;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`crustdata`]}estimateBillableOperations(e){return J(e,`company-identity-crustdata-v1-crustdata`)}getInputRequirement(){return Al(this.payload.config)}getRawOutputFields(){return{[Dl.name]:this.catalogOutput(Dl)}}getConnectionsRequirements(){return[{provider:`crustdata`,rateLimitRatio:1,rateLimitOperation:`crustdata_company_identify`,allowManagedConnection:!0}]}},Nl=kl,Pl={pipeId:Ol,inputFieldMode:`static`,outputFieldMode:`static`,basePipe:G(Ol),label:`Company identity`,executionMode:`single`,categories:[`company_data`],lifecycle:null,description:`Resolve a company to Crustdata's matching candidates by domain or name. Returns the full list of matches.`,tags:[W.WEBSITE,W.LINKEDIN],docPath:K(Ol),billableOperations:jl,allowedUserConnectionProviders:[`crustdata`],managedProviders:[`crustdata`],deprecatedProviders:[],defaultInputRequirement:Al(null),defaultPayload:{pipe_id:Ol,connector:null,run_if:null,config:{input_fields:{company_domain:{alias:``},company_name:{alias:``}},output_fields:{crustdata_company_identity_matches:{alias:``,enabled:!0}}}}},Fl=g(`company_domain`),Il=g(`companyenrich_matches`),Ll=`company:lookalikes:companyenrich@2`,Rl=r.object({pipe_id:r.literal(Ll),run_if:x(),connector:C(),config:r.object({limit:vs({groupPath:`config.general`,max:50,min:1,path:`config.limit`,sectionKey:`general`,info:`Define how many lookalikes you want to find.`,label:`Limit`}),input_fields:R(r.object({[Fl.name]:E({fieldName:Fl.name})})),output_fields:L(r.object({[Il.name]:O({fieldName:Il.name})}))}).optional()}),zl=e=>V(q(Fl,e)),Bl={"company-lookalikes-companyenrich-v2-companyenrich":{allowManagedConnection:!0,credits:{default:.2,level1:{credits:.1,weight:1}},mode:`onSuccess`,note:`One billing event per result.`,provider:`companyenrich`}},Vl=class extends H{pipeId=Ll;payload;payloadSchema=Rl;billableOperations=Bl;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`companyenrich`]}estimateBillableOperations(e){return[{billableOperation:`company-lookalikes-companyenrich-v2-companyenrich`,quantity:e.count*5}]}getInputRequirement(){return zl(this.payload.config)}getRawOutputFields(){return{[Il.name]:this.catalogOutput(Il)}}getConnectionsRequirements(){return[{provider:`companyenrich`,rateLimitRatio:1,rateLimitOperation:`company_enrich_generic`,allowManagedConnection:!0}]}},Hl=Rl,Ul={pipeId:Ll,inputFieldMode:`static`,outputFieldMode:`static`,basePipe:G(Ll),label:`Find company lookalikes`,executionMode:`single`,categories:[`company_data`],lifecycle:null,description:`Find companies similar to the company you provide as input.`,tags:[W.COMPANY_PROFILES],docPath:K(Ll),billableOperations:Bl,allowedUserConnectionProviders:[`companyenrich`],managedProviders:[`companyenrich`],deprecatedProviders:[],defaultInputRequirement:zl(null),defaultPayload:{pipe_id:Ll,connector:null,run_if:null,config:{limit:20,input_fields:{company_domain:{alias:``}},output_fields:{companyenrich_matches:{alias:``,enabled:!0}}}}},Wl=g(`company_domain`),Gl=g(`crustdata_companyenrich_match`),Kl=`company:match:crustdata@2`,ql=r.object({pipe_id:r.literal(Kl),run_if:x(),connector:C(),config:r.object({input_fields:R(r.object({[Wl.name]:E({fieldName:Wl.name})})),output_fields:L(r.object({[Gl.name]:O({fieldName:Gl.name})}))}).optional()}),Jl=e=>V(q(Wl,e)),Yl={"company-match-crustdata-v2-crustdata":{allowManagedConnection:!0,credits:{default:2.5,level1:{credits:1.2,weight:1}},mode:`onSuccess`,provider:`crustdata`}},Xl=class extends H{pipeId=Kl;payload;payloadSchema=ql;billableOperations=Yl;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`crustdata`]}estimateBillableOperations(e){return J(e,`company-match-crustdata-v2-crustdata`)}getInputRequirement(){return Jl(this.payload.config)}getRawOutputFields(){return{[Gl.name]:this.catalogOutput(Gl)}}getConnectionsRequirements(){return[{provider:`crustdata`,rateLimitRatio:1,rateLimitOperation:`crustdata_company_enrich`,allowManagedConnection:!0}]}},Zl=ql,Ql={pipeId:Kl,inputFieldMode:`static`,outputFieldMode:`static`,basePipe:G(Kl),label:`Company match`,executionMode:`single`,categories:[`company_data`],lifecycle:null,description:`Company data like headcount distribution, LinkedIn URLs etc. via the Crustdata API.`,tags:[W.WEBSITE,W.LINKEDIN],docPath:K(Kl),billableOperations:Yl,allowedUserConnectionProviders:[`crustdata`],managedProviders:[`crustdata`],deprecatedProviders:[],defaultInputRequirement:Jl(null),defaultPayload:{pipe_id:Kl,connector:null,run_if:null,config:{input_fields:{company_domain:{alias:``}},output_fields:{crustdata_companyenrich_match:{alias:``,enabled:!0}}}}},$l=g(`company_domain`),eu=g(`company_name`),tu=g(`company_profile_url`),nu=g(`logodev_describe_match`),ru=g(`logo_url`),iu=`company:match:logodev@2`,au=r.object({pipe_id:r.literal(iu),run_if:x(),connector:C(),config:r.object({input_fields:R(r.object({[$l.name]:E({fieldName:$l.name})})),output_fields:L(r.object({[tu.name]:O({fieldName:tu.name}),[ru.name]:O({fieldName:ru.name}),[eu.name]:O({fieldName:eu.name}),[nu.name]:O({fieldName:nu.name})}))}).optional()}),ou=e=>V(q($l,e)),su={"company-match-logodev-v2-logodev":{allowManagedConnection:!0,credits:{default:.1},mode:`onSuccess`,provider:`logodev`}},cu=class extends H{pipeId=iu;payload;payloadSchema=au;billableOperations=su;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`logodev`]}estimateBillableOperations(e){return J(e,`company-match-logodev-v2-logodev`)}getInputRequirement(){return ou(this.payload.config)}getRawOutputFields(){return{[tu.name]:this.catalogOutput(tu),[eu.name]:this.catalogOutput(eu),[ru.name]:this.catalogOutput(ru),[nu.name]:this.catalogOutput(nu)}}getConnectionsRequirements(){return[{provider:`logodev`,rateLimitRatio:1,rateLimitOperation:`logodev_describe`,allowManagedConnection:!0}]}},lu=au,uu={pipeId:iu,inputFieldMode:`static`,outputFieldMode:`static`,basePipe:G(iu),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:[W.WEBSITE,W.LINKEDIN],docPath:K(iu),billableOperations:su,allowedUserConnectionProviders:[`logodev`],managedProviders:[`logodev`],deprecatedProviders:[],defaultInputRequirement:ou(null),defaultPayload:{pipe_id:iu,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}}}}},du=`company:newssummary:domain@1`,fu=g(`company_news_summary`),pu=g(`company_domain`),mu=r.object({pipe_id:r.literal(du),run_if:x(),connector:C(),config:r.object({input_fields:R(r.object({[pu.name]:E({fieldName:pu.name})})),output_fields:L(r.object({[fu.name]:O({fieldName:fu.name})}))}).optional()}),hu=e=>V(q(pu,e)),gu={"company-newssummary-domain-v1-pipe0":{allowManagedConnection:!0,credits:{default:2},mode:`always`,provider:`pipe0`}},_u=class extends H{pipeId=du;payloadSchema=mu;billableOperations=gu;payload;constructor(e){super(),this.payload=e}getProviderNames(){return[`pipe0`]}estimateBillableOperations(e){return J(e,`company-newssummary-domain-v1-pipe0`)}getInputRequirement(){return hu(this.payload.config)}getRawOutputFields(){return{[fu.name]:this.catalogOutput(fu)}}getConnectionsRequirements(){return[{provider:`parallel`,rateLimitRatio:4,rateLimitOperation:`parallel_search_base`,allowManagedConnection:!0},{provider:`gemini`,rateLimitRatio:1,rateLimitOperation:`gemini_35_flash`,allowManagedConnection:!0}]}},vu=mu,yu={pipeId:du,basePipe:G(du),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:[W.NEWS],docPath:K(du),billableOperations:gu,allowedUserConnectionProviders:[],managedProviders:[`pipe0`],deprecatedProviders:[],defaultInputRequirement:hu(null),defaultPayload:{pipe_id:du,run_if:null,connector:null,config:{input_fields:{company_domain:{alias:``}},output_fields:{company_news_summary:{alias:``,enabled:!0}}}}},bu=g(`company_domain`),xu=g(`company_profile_url`),Su=g(`company_description`),Cu=g(`company_industry`),wu=g(`company_region`),Tu=g(`headcount`),Eu=g(`estimated_revenue`),Du=g(`founded_year`),Ou=g(`company_name`),ku=`company:overview@3`,Au=r.object({pipe_id:r.literal(ku),run_if:x(),connector:w(),config:r.object({input_fields:R(r.object({[bu.name]:E({fieldName:bu.name}),[xu.name]:E({fieldName:xu.name})})),output_fields:L(r.object({[Su.name]:O({fieldName:Su.name}),[Cu.name]:O({fieldName:Cu.name}),[wu.name]:O({fieldName:wu.name}),[Tu.name]:O({fieldName:Tu.name}),[Eu.name]:O({fieldName:Eu.name}),[Du.name]:O({fieldName:Du.name}),[Ou.name]:O({fieldName:Ou.name})}))}).optional()}),ju=e=>dc(q(bu,e),q(xu,e)),Mu={"company-overview-v3-pipe0":{provider:`pipe0`,allowManagedConnection:!0,credits:{default:1,level1:{credits:.5,weight:1}},mode:`always`}},Nu=class extends H{pipeId=ku;payloadSchema=Au;billableOperations=Mu;payload;constructor(e){super(),this.payload=e}getProviderNames(){return[`pipe0`]}estimateBillableOperations(e){return J(e,`company-overview-v3-pipe0`)}getInputRequirement(){return ju(this.payload.config)}getRawOutputFields(){return{[Su.name]:this.catalogOutput(Su),[Cu.name]:this.catalogOutput(Cu),[wu.name]:this.catalogOutput(wu),[Tu.name]:this.catalogOutput(Tu),[Eu.name]:this.catalogOutput(Eu),[Du.name]:this.catalogOutput(Du),[Ou.name]:this.catalogOutput(Ou)}}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}]}},Pu=Au,Fu={pipeId:ku,basePipe:G(ku),inputFieldMode:`static`,outputFieldMode:`static`,label:`Company overview`,executionMode:`mix`,categories:[`company_data`],lifecycle:null,description:`Business description, industry, and financial information.`,docPath:K(ku),tags:[W.WEBSITE,W.LINKEDIN,W.FINANCIAL_DATA],allowedUserConnectionProviders:[],managedProviders:[`pipe0`],deprecatedProviders:[],billableOperations:Mu,defaultInputRequirement:ju(null),defaultPayload:{pipe_id:ku,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}}}}},Iu=g(`company_domain`),Lu=g(`technology_list`),Ru=g(`spending_trend`),zu=g(`technology_match_builtwith`),Bu=`company:techstack:builtwith@2`,Vu=r.object({pipe_id:r.literal(Bu),connector:C(),run_if:x(),config:r.object({input_fields:R(r.object({[Iu.name]:E({fieldName:Iu.name})})),output_fields:L(r.object({[Lu.name]:O({fieldName:Lu.name}),[zu.name]:O({fieldName:zu.name}),[Ru.name]:O({fieldName:Ru.name})}))}).optional()}),Hu=e=>V(q(Iu,e)),Uu={"company-techstack-builtwith-v2-builtwith":{provider:`builtwith`,allowManagedConnection:!0,credits:{default:2},mode:`always`}},Wu=class extends H{pipeId=Bu;payload;payloadSchema=Vu;billableOperations=Uu;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`builtwith`]}estimateBillableOperations(e){return J(e,`company-techstack-builtwith-v2-builtwith`)}getInputRequirement(){return Hu(this.payload.config)}getRawOutputFields(){return{[Lu.name]:this.catalogOutput(Lu),[zu.name]:this.catalogOutput(zu),[Ru.name]:this.catalogOutput(Ru)}}getConnectionsRequirements(){return[{provider:`builtwith`,rateLimitRatio:1,rateLimitOperation:`builtwith_generic`,allowManagedConnection:!0}]}},Gu=Vu,Ku={pipeId:Bu,basePipe:G(Bu),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:[W.WEBSITE],inputFieldMode:`static`,outputFieldMode:`static`,docPath:K(Bu),billableOperations:Uu,defaultInputRequirement:Hu(null),defaultPayload:{pipe_id:Bu,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}}}}},qu={MissingSecretError:class extends Error{constructor({providerName:e}){super(`Missing secret for ${e}`)}},HttpError:class extends Error{constructor({msg:e}){super(e)}}},Ju=`contact:create:resend@1`,Yu={"contact-create-resend-v1-resend":{allowManagedConnection:!1,provider:`resend`,credits:null,mode:null}},Xu=g(`email`),Zu=g(`name`),Qu=g(`resend_contact_id`),$u=[{label:`Demo subscribers`,value:`sandbox-segment-1`},{label:`Demo product updates`,value:`sandbox-segment-2`}],ed=r.object({pipe_id:r.literal(Ju),connector:Go(),run_if:x(),config:r.object({segment_id:xs({sectionKey:`general`,required:!0,label:`Segment`,groupPath:`config.general`,path:`config.segment_id`,info:``,enabledIf:Na(`resend`),optionsDef:{requires:{connection:`resend`},options:async({query:e,secret:t,environment:n})=>{if(n===`sandbox`)return $u;if(!t)throw new qu.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 qu.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:ds({sectionKey:`general`,defaultValue:!0,label:`Add as subscribed`,groupPath:`config.general`,path:`config.add_as_subscribed`,info:``}),input_fields:R(r.object({[Zu.name]:E({fieldName:Zu.name}),[Xu.name]:E({fieldName:Xu.name})})),output_fields:L(r.object({[Qu.name]:O({fieldName:Qu.name})}))})}),td=e=>uc(V(q(Xu,e)),V(q(Zu,e))),nd=class extends H{pipeId=Ju;payload;payloadSchema=ed;billableOperations=Yu;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`resend`]}estimateBillableOperations(e){return J(e,`contact-create-resend-v1-resend`)}getInputRequirement(){return td(this.payload.config)}getRawOutputFields(){return{[Qu.name]:this.catalogOutput(Qu)}}getConnectionsRequirements(){return[{provider:`resend`,rateLimitRatio:1,rateLimitOperation:`resend_generic`,allowManagedConnection:!1}]}},rd=ed,id={pipeId:Ju,basePipe:G(Ju),label:`Create Contact`,executionMode:`single`,categories:[`actions`],lifecycle:null,description:`Create a contact inside a Resend audience.`,tags:[W.EMAIL],docPath:K(Ju),billableOperations:Yu,inputFieldMode:`static`,outputFieldMode:`static`,allowedUserConnectionProviders:[`resend`],defaultInputRequirement:td(null),managedProviders:[],deprecatedProviders:[],defaultPayload:{pipe_id:Ju,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}}}}},ad=`company:funding:leadmagic@1`,od=g(`company_name`),sd=g(`company_website_url`),cd=g(`funding_history`),ld=g(`funding_total_usd`),ud=g(`leadmagic_competitor_list`),dd=g(`leadmagic_acquisition_history`),fd=g(`leadmagic_company_news_list`),pd=r.object({pipe_id:r.literal(ad),connector:C(),run_if:x(),config:r.object({input_fields:R(r.object({[od.name]:E({fieldName:od.name}),[sd.name]:E({fieldName:sd.name})})),output_fields:L(r.object({[cd.name]:O({fieldName:cd.name}),[ld.name]:O({fieldName:ld.name}),[ud.name]:O({fieldName:ud.name}),[dd.name]:O({fieldName:dd.name}),[fd.name]:O({fieldName:fd.name})}))}).optional()}),md=e=>dc(q(od,e),q(sd,e)),hd={"company-funding-leadmagic-v1-leadmagic":{provider:`leadmagic`,allowManagedConnection:!0,credits:{default:2},mode:`onSuccess`}},gd=class extends H{pipeId=ad;payload;payloadSchema=pd;billableOperations=hd;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`leadmagic`]}estimateBillableOperations(e){return J(e,`company-funding-leadmagic-v1-leadmagic`)}getInputRequirement(){return md(this.payload.config)}getRawOutputFields(){return{[cd.name]:this.catalogOutput(cd),[ld.name]:this.catalogOutput(ld)}}getConnectionsRequirements(){return[{provider:`leadmagic`,rateLimitRatio:1,rateLimitOperation:`leadmagic_company_funding`,allowManagedConnection:!0}]}},_d=pd,vd={pipeId:ad,basePipe:G(ad),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:[W.FINANCIAL_DATA],docPath:K(ad),billableOperations:hd,inputFieldMode:`static`,outputFieldMode:`static`,allowedUserConnectionProviders:[`leadmagic`],managedProviders:[`leadmagic`],deprecatedProviders:[],defaultInputRequirement:md(null),defaultPayload:{pipe_id:ad,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:``}}}}},yd=g(`company_name`),bd=g(`company_social_url`),xd=g(`company_website_url`),Sd=g(`cleaned_company_name`),Cd=`company:identity@1`,wd=r.object({pipe_id:r.literal(Cd),run_if:x(),connector:w(),config:r.object({input_fields:R(r.object({[yd.name]:E({fieldName:yd.name})})),output_fields:L(r.object({[bd.name]:O({fieldName:bd.name}),[Sd.name]:O({fieldName:Sd.name}),[xd.name]:O({fieldName:xd.name})}))}).optional()}),Td=e=>V(q(yd,e)),Ed={"company-identity-v1-pipe0":{allowManagedConnection:!0,credits:{default:.3},mode:`always`,provider:`pipe0`}},Dd=class extends H{pipeId=Cd;payload;payloadSchema=wd;billableOperations=Ed;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(e){return J(e,`company-identity-v1-pipe0`)}getInputRequirement(){return Td(this.payload.config)}getRawOutputFields(){return{[bd.name]:this.catalogOutput(bd),[xd.name]:this.catalogOutput(xd),[Sd.name]:this.catalogOutput(Sd)}}getConnectionsRequirements(){return[{provider:`gemini`,rateLimitRatio:1,rateLimitOperation:`gemini_35_flash`,allowManagedConnection:!0},{provider:`serper`,rateLimitRatio:2,rateLimitOperation:`serper_search`,allowManagedConnection:!0},{provider:`leadmagic`,rateLimitRatio:.2,rateLimitOperation:`leadmagic_company_search`,allowManagedConnection:!0},{provider:`perplexity`,rateLimitRatio:.2,rateLimitOperation:`perplexity_generic`,allowManagedConnection:!0},{provider:`pipe0`,rateLimitRatio:.02,rateLimitOperation:`pipe0_scraper`,allowManagedConnection:!0}]}},Od=wd,kd={pipeId:Cd,inputFieldMode:`static`,outputFieldMode:`static`,basePipe:G(Cd),label:`Company identity`,executionMode:`mix`,categories:[`deprecated`],lifecycle:{deprecatedOn:`2026-06-13`,replacedBy:`company:identity@2`},description:`Find any company's website URL, LinkedIn profile URL, and cleaned name.`,tags:[W.WEBSITE,W.LINKEDIN],docPath:`/resources/pipe-catalog/company:identity/1`,billableOperations:Ed,allowedUserConnectionProviders:[],managedProviders:[`pipe0`],deprecatedProviders:[],defaultInputRequirement:Td(null),defaultPayload:{pipe_id:Cd,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}}}}},Ad=g(`company_name`),jd=g(`company_profile_url`),Md=g(`company_website_url`),Nd=g(`cleaned_company_name`),Pd=`company:identity@2`,Fd=r.object({pipe_id:r.literal(Pd),run_if:x(),connector:w(),config:r.object({input_fields:R(r.object({[Ad.name]:E({fieldName:Ad.name})})),output_fields:L(r.object({[jd.name]:O({fieldName:jd.name}),[Nd.name]:O({fieldName:Nd.name}),[Md.name]:O({fieldName:Md.name})}))}).optional()}),Id=e=>V(q(Ad,e)),Ld={"company-identity-v2-pipe0":{allowManagedConnection:!0,credits:{default:.3},mode:`always`,provider:`pipe0`}},Rd=class extends H{pipeId=Pd;payload;payloadSchema=Fd;billableOperations=Ld;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(e){return J(e,`company-identity-v2-pipe0`)}getInputRequirement(){return Id(this.payload.config)}getRawOutputFields(){return{[jd.name]:this.catalogOutput(jd),[Md.name]:this.catalogOutput(Md),[Nd.name]:this.catalogOutput(Nd)}}getConnectionsRequirements(){return[{provider:`gemini`,rateLimitRatio:1,rateLimitOperation:`gemini_35_flash`,allowManagedConnection:!0},{provider:`serper`,rateLimitRatio:2,rateLimitOperation:`serper_search`,allowManagedConnection:!0},{provider:`leadmagic`,rateLimitRatio:.2,rateLimitOperation:`leadmagic_company_search`,allowManagedConnection:!0},{provider:`perplexity`,rateLimitRatio:.2,rateLimitOperation:`perplexity_generic`,allowManagedConnection:!0},{provider:`pipe0`,rateLimitRatio:.02,rateLimitOperation:`pipe0_scraper`,allowManagedConnection:!0}]}},zd=Fd,Bd={pipeId:Pd,inputFieldMode:`static`,outputFieldMode:`static`,basePipe:G(Pd),label:`Company identity`,executionMode:`mix`,categories:[`deprecated`],lifecycle:{deprecatedOn:`2026-06-13`,replacedBy:`company:identity@3`},description:`Find any company's website URL, LinkedIn profile URL, and cleaned name.`,tags:[W.WEBSITE,W.LINKEDIN],docPath:K(Pd),billableOperations:Ld,allowedUserConnectionProviders:[],managedProviders:[`pipe0`],deprecatedProviders:[],defaultInputRequirement:Id(null),defaultPayload:{pipe_id:Pd,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}}}}},Vd=g(`company_website_url`),Hd=g(`companyenrich_matches`),Ud=`company:lookalikes:companyenrich@1`,Wd=r.object({pipe_id:r.literal(Ud),run_if:x(),connector:C(),config:r.object({limit:vs({groupPath:`config.general`,max:50,min:1,path:`config.limit`,sectionKey:`general`,info:`Define how many lookalikes you want to find.`,label:`Limit`}),input_fields:R(r.object({[Vd.name]:E({fieldName:Vd.name})})),output_fields:L(r.object({[Hd.name]:O({fieldName:Hd.name})}))}).optional()}),Gd=e=>V(q(Vd,e)),Kd={"company-lookalikes-companyenrich-v1-companyenrich":{allowManagedConnection:!0,credits:{default:.2},mode:`onSuccess`,note:`One billing event per result.`,provider:`companyenrich`}},qd=class extends H{pipeId=Ud;payload;payloadSchema=Wd;billableOperations=Kd;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`companyenrich`]}estimateBillableOperations(e){return[{billableOperation:`company-lookalikes-companyenrich-v1-companyenrich`,quantity:e.count*5}]}getInputRequirement(){return Gd(this.payload.config)}getRawOutputFields(){return{[Hd.name]:this.catalogOutput(Hd)}}getConnectionsRequirements(){return[{provider:`companyenrich`,rateLimitRatio:1,rateLimitOperation:`company_enrich_generic`,allowManagedConnection:!0}]}},Jd=Wd,Yd={pipeId:Ud,inputFieldMode:`static`,outputFieldMode:`static`,basePipe:G(Ud),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:[W.COMPANY_PROFILES],docPath:K(Ud),billableOperations:Kd,allowedUserConnectionProviders:[`companyenrich`],managedProviders:[`companyenrich`],deprecatedProviders:[],defaultInputRequirement:Gd(null),defaultPayload:{pipe_id:Ud,connector:null,run_if:null,config:{limit:20,input_fields:{company_website_url:{alias:``}},output_fields:{companyenrich_matches:{alias:``,enabled:!0}}}}},Xd=g(`company_website_url`),Zd=g(`crustdata_companyenrich_match`),Qd=`company:match:crustdata@1`,$d=r.object({pipe_id:r.literal(Qd),run_if:x(),connector:C(),config:r.object({input_fields:R(r.object({[Xd.name]:E({fieldName:Xd.name})})),output_fields:L(r.object({[Zd.name]:O({fieldName:Zd.name})}))}).optional()}),ef=e=>V(q(Xd,e)),tf={"company-match-crustdata-v1-crustdata":{allowManagedConnection:!0,credits:{default:2},mode:`onSuccess`,provider:`crustdata`}},nf=class extends H{pipeId=Qd;payload;payloadSchema=$d;billableOperations=tf;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`crustdata`]}estimateBillableOperations(e){return J(e,`company-match-crustdata-v1-crustdata`)}getInputRequirement(){return ef(this.payload.config)}getRawOutputFields(){return{[Zd.name]:this.catalogOutput(Zd)}}getConnectionsRequirements(){return[{provider:`crustdata`,rateLimitRatio:1,rateLimitOperation:`crustdata_company_enrich`,allowManagedConnection:!0}]}},rf=$d,af={pipeId:Qd,inputFieldMode:`static`,outputFieldMode:`static`,basePipe:G(Qd),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:[W.WEBSITE,W.LINKEDIN],docPath:K(Qd),billableOperations:tf,allowedUserConnectionProviders:[`crustdata`],managedProviders:[`crustdata`],deprecatedProviders:[],defaultInputRequirement:ef(null),defaultPayload:{pipe_id:Qd,connector:null,run_if:null,config:{input_fields:{company_website_url:{alias:``}},output_fields:{crustdata_companyenrich_match:{alias:``,enabled:!0}}}}},of=g(`company_website_url`),sf=g(`company_name`),cf=g(`company_profile_url`),lf=g(`logodev_describe_match`),uf=g(`logo_url`),df=`company:match:logodev@1`,ff=r.object({pipe_id:r.literal(df),run_if:x(),connector:C(),config:r.object({input_fields:R(r.object({[of.name]:E({fieldName:of.name})})),output_fields:L(r.object({[cf.name]:O({fieldName:cf.name}),[uf.name]:O({fieldName:uf.name}),[sf.name]:O({fieldName:sf.name}),[lf.name]:O({fieldName:lf.name})}))}).optional()}),pf=e=>V(q(of,e)),mf={"company-match-logodev-v1-logodev":{allowManagedConnection:!0,credits:{default:.1},mode:`onSuccess`,provider:`logodev`}},hf=class extends H{pipeId=df;payload;payloadSchema=ff;billableOperations=mf;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`logodev`]}estimateBillableOperations(e){return J(e,`company-match-logodev-v1-logodev`)}getInputRequirement(){return pf(this.payload.config)}getRawOutputFields(){return{[cf.name]:this.catalogOutput(cf),[sf.name]:this.catalogOutput(sf),[uf.name]:this.catalogOutput(uf),[lf.name]:this.catalogOutput(lf)}}getConnectionsRequirements(){return[{provider:`logodev`,rateLimitRatio:1,rateLimitOperation:`logodev_describe`,allowManagedConnection:!0}]}},gf=ff,_f={pipeId:df,inputFieldMode:`static`,outputFieldMode:`static`,basePipe:G(df),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:[W.WEBSITE,W.LINKEDIN],docPath:K(df),billableOperations:mf,allowedUserConnectionProviders:[`logodev`],managedProviders:[`logodev`],deprecatedProviders:[],defaultInputRequirement:pf(null),defaultPayload:{pipe_id:df,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}}}}},vf=`company:newssummary:website@1`,yf=g(`company_news_summary`),bf=g(`company_website_url`),xf=r.object({pipe_id:r.literal(vf),run_if:x(),connector:C(),config:r.object({input_fields:R(r.object({[bf.name]:E({fieldName:bf.name})})),output_fields:L(r.object({[yf.name]:O({fieldName:yf.name})}))}).optional()}),Sf=e=>V(q(bf,e)),Cf={"company-newssummary-website-v1-pipe0":{allowManagedConnection:!0,credits:{default:1},mode:`always`,provider:`pipe0`}},wf=class extends H{pipeId=vf;payloadSchema=xf;billableOperations=Cf;payload;constructor(e){super(),this.payload=e}getProviderNames(){return[`pipe0`]}estimateBillableOperations(e){return J(e,`company-newssummary-website-v1-pipe0`)}getInputRequirement(){return Sf(this.payload.config)}getRawOutputFields(){return{[yf.name]:this.catalogOutput(yf)}}getConnectionsRequirements(){return[{provider:`perplexity`,rateLimitRatio:1,rateLimitOperation:`perplexity_generic`,allowManagedConnection:!0}]}},Tf=xf,Ef={pipeId:vf,basePipe:G(vf),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:[W.NEWS],docPath:K(vf),billableOperations:Cf,allowedUserConnectionProviders:[],managedProviders:[`pipe0`],deprecatedProviders:[],defaultInputRequirement:Sf(null),defaultPayload:{pipe_id:vf,run_if:null,connector:null,config:{input_fields:{company_website_url:{alias:``}},output_fields:{company_news_summary:{alias:``,enabled:!0}}}}},Df=g(`company_website_url`),Of=g(`company_social_url`),kf=g(`company_description`),Af=g(`company_industry`),jf=g(`company_region`),Mf=g(`headcount`),Nf=g(`estimated_revenue`),Pf=g(`founded_year`),Ff=`company:overview@1`,If=r.object({pipe_id:r.literal(Ff),run_if:x(),connector:w(),config:r.object({input_fields:R(r.object({[Df.name]:E({fieldName:Df.name}),[Of.name]:E({fieldName:Of.name})})),output_fields:L(r.object({[kf.name]:O({fieldName:kf.name}),[Af.name]:O({fieldName:Af.name}),[jf.name]:O({fieldName:jf.name}),[Mf.name]:O({fieldName:Mf.name}),[Nf.name]:O({fieldName:Nf.name}),[Pf.name]:O({fieldName:Pf.name})}))}).optional()}),Lf=e=>dc(q(Df,e),q(Of,e)),Rf={"company-overview-v1-pipe0":{provider:`pipe0`,allowManagedConnection:!0,credits:{default:1},mode:`always`}},zf=class extends H{pipeId=Ff;payloadSchema=If;billableOperations=Rf;payload;constructor(e){super(),this.payload=e}getProviderNames(){return[`pipe0`]}estimateBillableOperations(e){return J(e,`company-overview-v1-pipe0`)}getInputRequirement(){return Lf(this.payload.config)}getRawOutputFields(){return{[kf.name]:this.catalogOutput(kf),[Af.name]:this.catalogOutput(Af),[jf.name]:this.catalogOutput(jf),[Mf.name]:this.catalogOutput(Mf),[Nf.name]:this.catalogOutput(Nf),[Pf.name]:this.catalogOutput(Pf)}}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}]}},Bf=If,Vf={pipeId:Ff,basePipe:G(Ff),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:[W.WEBSITE,W.LINKEDIN,W.FINANCIAL_DATA,W.DEPRECATED],allowedUserConnectionProviders:[],managedProviders:[`pipe0`],deprecatedProviders:[],billableOperations:Rf,defaultInputRequirement:Lf(null),defaultPayload:{pipe_id:Ff,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}}}}},Hf=g(`company_website_url`),Uf=g(`company_profile_url`),Wf=g(`company_description`),Gf=g(`company_industry`),Kf=g(`company_region`),qf=g(`headcount`),Jf=g(`estimated_revenue`),Yf=g(`founded_year`),Xf=g(`company_name`),Zf=`company:overview@2`,Qf=r.object({pipe_id:r.literal(Zf),run_if:x(),connector:w(),config:r.object({input_fields:R(r.object({[Hf.name]:E({fieldName:Hf.name}),[Uf.name]:E({fieldName:Uf.name})})),output_fields:L(r.object({[Wf.name]:O({fieldName:Wf.name}),[Gf.name]:O({fieldName:Gf.name}),[Kf.name]:O({fieldName:Kf.name}),[qf.name]:O({fieldName:qf.name}),[Jf.name]:O({fieldName:Jf.name}),[Yf.name]:O({fieldName:Yf.name}),[Xf.name]:O({fieldName:Xf.name})}))}).optional()}),$f=e=>dc(q(Hf,e),q(Uf,e)),ep={"company-overview-v2-pipe0":{provider:`pipe0`,allowManagedConnection:!0,credits:{default:1},mode:`always`}},tp=class extends H{pipeId=Zf;payloadSchema=Qf;billableOperations=ep;payload;constructor(e){super(),this.payload=e}getProviderNames(){return[`pipe0`]}estimateBillableOperations(e){return J(e,`company-overview-v2-pipe0`)}getInputRequirement(){return $f(this.payload.config)}getRawOutputFields(){return{[Wf.name]:this.catalogOutput(Wf),[Gf.name]:this.catalogOutput(Gf),[Kf.name]:this.catalogOutput(Kf),[qf.name]:this.catalogOutput(qf),[Jf.name]:this.catalogOutput(Jf),[Yf.name]:this.catalogOutput(Yf),[Xf.name]:this.catalogOutput(Xf)}}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}]}},np=Qf,rp={pipeId:Zf,basePipe:G(Zf),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(Zf),tags:[W.WEBSITE,W.LINKEDIN,W.FINANCIAL_DATA],allowedUserConnectionProviders:[],managedProviders:[`pipe0`],deprecatedProviders:[],billableOperations:ep,defaultInputRequirement:$f(null),defaultPayload:{pipe_id:Zf,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}}}}},ip=g(`company_website_url`),ap=g(`technology_list`),op=g(`spending_trend`),sp=g(`technology_match_builtwith`),cp=`company:techstack:builtwith@1`,lp=r.object({pipe_id:r.literal(cp),connector:C(),run_if:x(),config:r.object({input_fields:R(r.object({[ip.name]:E({fieldName:ip.name})})),output_fields:L(r.object({[ap.name]:O({fieldName:ap.name}),[sp.name]:O({fieldName:sp.name}),[op.name]:O({fieldName:op.name})}))}).optional()}),up=e=>V(q(ip,e)),dp={"company-techstack-builtwith-v1-builtwith":{provider:`builtwith`,allowManagedConnection:!0,credits:{default:2},mode:`always`}},fp=class extends H{pipeId=cp;payload;payloadSchema=lp;billableOperations=dp;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`builtwith`]}estimateBillableOperations(e){return J(e,`company-techstack-builtwith-v1-builtwith`)}getInputRequirement(){return up(this.payload.config)}getRawOutputFields(){return{[ap.name]:this.catalogOutput(ap),[sp.name]:this.catalogOutput(sp),[op.name]:this.catalogOutput(op)}}getConnectionsRequirements(){return[{provider:`builtwith`,rateLimitRatio:1,rateLimitOperation:`builtwith_generic`,allowManagedConnection:!0}]}},pp=lp,mp={pipeId:cp,basePipe:G(cp),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:[W.WEBSITE],inputFieldMode:`static`,outputFieldMode:`static`,docPath:K(cp),billableOperations:dp,defaultInputRequirement:up(null),defaultPayload:{pipe_id:cp,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}}}}},hp=`company:websiteurl:email@1`,gp=g(`company_website_url`),_p=g(`email`),vp=r.object({pipe_id:r.literal(hp),run_if:x(),connector:w(),config:r.object({input_fields:R(r.object({[_p.name]:E({fieldName:_p.name})})),output_fields:L(r.object({[gp.name]:O({fieldName:gp.name})}))}).optional()}),yp=e=>V(q(_p,e)),bp={"company-websiteurl-email-v1-pipe0":{credits:{default:0},allowManagedConnection:!0,mode:`always`,provider:`pipe0`}},xp=class extends H{pipeId=hp;payload;payloadSchema=vp;billableOperations=bp;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(e){return J(e,`company-websiteurl-email-v1-pipe0`)}getInputRequirement(){return yp(this.payload.config)}getRawOutputFields(){return{[gp.name]:this.catalogOutput(gp)}}getConnectionsRequirements(){return[{provider:`pipe0`,rateLimitRatio:1,rateLimitOperation:`pipe0_logic`,allowManagedConnection:!0}]}},Sp=vp,Cp={pipeId:hp,basePipe:G(hp),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:[W.EMAIL,W.WORK_EMAIL,W.WEBSITE],docPath:K(hp),allowedUserConnectionProviders:[],managedProviders:[`pipe0`],deprecatedProviders:[],billableOperations:bp,defaultInputRequirement:yp(null),defaultPayload:{pipe_id:hp,connector:null,run_if:null,config:{input_fields:{email:{alias:``}},output_fields:{company_website_url:{alias:``,enabled:!0}}}}},wp=`people:email:iswork@1`,Tp=g(`is_work_email`),Ep=g(`email`),Dp=r.object({pipe_id:r.literal(wp),run_if:x(),connector:w(),config:r.object({input_fields:R(r.object({[Ep.name]:E({fieldName:Ep.name})})),output_fields:L(r.object({[Tp.name]:O({fieldName:Tp.name})}))}).optional()}),Op=e=>V(q(Ep,e)),kp={"people-email-iswork-v1-pipe0":{provider:`pipe0`,allowManagedConnection:!0,credits:{default:0},mode:`always`}},Ap=class extends H{pipeId=wp;payload;payloadSchema=Dp;billableOperations=kp;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(e){return J(e,`people-email-iswork-v1-pipe0`)}getInputRequirement(){return Op(this.payload.config)}getRawOutputFields(){return{[Tp.name]:this.catalogOutput(Tp)}}getConnectionsRequirements(){return[{provider:`pipe0`,rateLimitRatio:1,rateLimitOperation:`pipe0_logic`,allowManagedConnection:!0}]}},jp=Dp,Mp={pipeId:wp,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:[W.EMAIL,W.WORK_EMAIL],docPath:K(wp),billableOperations:kp,basePipe:G(wp),allowedUserConnectionProviders:[],inputFieldMode:`static`,outputFieldMode:`static`,managedProviders:[`pipe0`],deprecatedProviders:[],defaultInputRequirement:Op(null),defaultPayload:{pipe_id:wp,run_if:null,connector:null,config:{input_fields:{email:{alias:``}},output_fields:{is_work_email:{alias:``,enabled:!0}}}}},Np=`people:email:validate:zerobounce@1`,Pp=g(`work_email`),Fp=g(`is_email_valid`),Ip=r.object({pipe_id:r.literal(Np),connector:C(),run_if:x(),config:r.object({input_fields:R(r.object({[Pp.name]:E({fieldName:Pp.name})})),output_fields:L(r.object({[Fp.name]:O({fieldName:Fp.name})}))}).optional()}),Lp=e=>V(q(Pp,e)),Rp={"people-email-validate-zerobounce-v1-zerobounce":{provider:`zerobounce`,allowManagedConnection:!0,credits:{default:.3},mode:`always`}},zp=class extends H{pipeId=Np;payload;payloadSchema=Ip;billableOperations=Rp;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`zerobounce`]}estimateBillableOperations(e){return J(e,`people-email-validate-zerobounce-v1-zerobounce`)}getInputRequirement(){return Lp(this.payload.config)}getRawOutputFields(){return{[Fp.name]:this.catalogOutput(Fp)}}getConnectionsRequirements(){return[{provider:`zerobounce`,rateLimitRatio:1,rateLimitOperation:`zerobounce_generic`,allowManagedConnection:!0}]}},Bp=Ip,Vp={pipeId:Np,basePipe:G(Np),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:[W.EMAIL],docPath:`/resources/pipe-catalog/people:email:validate:zerobounce/1`,billableOperations:Rp,inputFieldMode:`static`,outputFieldMode:`static`,allowedUserConnectionProviders:[`zerobounce`],managedProviders:[`zerobounce`],deprecatedProviders:[],defaultInputRequirement:Lp(null),defaultPayload:{pipe_id:Np,connector:null,run_if:null,config:{input_fields:{work_email:{alias:``}},output_fields:{is_email_valid:{alias:``,enabled:!0}}}}},Hp=`people:email:validate:zerobounce@2`,Up=g(`email`),Wp=g(`zerobounce_validation_status`),Gp=g(`zerobounce_validation_match`),Kp=r.object({pipe_id:r.literal(Hp),connector:C(),run_if:x(),config:r.object({input_fields:R(r.object({[Up.name]:E({fieldName:Up.name})})),output_fields:L(r.object({[Gp.name]:O({fieldName:Gp.name}),[Wp.name]:O({fieldName:Wp.name})}))}).optional()}),qp=e=>V(q(Up,e)),Jp={"people-email-validate-zerobounce-v2-zerobounce":{provider:`zerobounce`,allowManagedConnection:!0,credits:{default:.3},mode:`always`}},Yp=class extends H{pipeId=Hp;payload;payloadSchema=Kp;billableOperations=Jp;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`zerobounce`]}estimateBillableOperations(e){return J(e,`people-email-validate-zerobounce-v2-zerobounce`)}getInputRequirement(){return qp(this.payload.config)}getRawOutputFields(){return{[Wp.name]:this.catalogOutput(Wp),[Gp.name]:this.catalogOutput(Gp)}}getConnectionsRequirements(){return[{provider:`zerobounce`,rateLimitRatio:1,rateLimitOperation:`zerobounce_generic`,allowManagedConnection:!0}]}},Xp=Kp,Zp={pipeId:Hp,basePipe:G(Hp),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:[W.EMAIL],docPath:K(Hp),billableOperations:Jp,inputFieldMode:`static`,outputFieldMode:`static`,allowedUserConnectionProviders:[`zerobounce`],managedProviders:[`zerobounce`],deprecatedProviders:[],defaultInputRequirement:qp(null),defaultPayload:{pipe_id:Hp,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 Qp(e){return(e.widgets||{}).display_value?.label}function $p(e){console.dir(e,{depth:100})}function em(e){return typeof e==`object`&&e?JSON.stringify(e):e}function Y(e){return e===0?1:e===1?.3:e===2?.2:.1}function tm(e){if(typeof e!=`object`||!e||Array.isArray(e))return e;let t={};return Object.keys(e).sort().forEach(n=>{t[n]=tm(e[n])}),t}const nm={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 X(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 rm=`people:identity:email:waterfall@1`,im=g(`email`),am=g(`company_website_url`),om=g(`name`),sm=g(`job_title`),cm=g(`profile_url`),lm=g(`company_profile_url`),um=g(`company_name`),dm=[`findymail`,`hunter`,`crustdata`],fm=[{provider:`findymail`},{provider:`hunter`},{provider:`crustdata`}],pm=r.object({pipe_id:r.literal(rm),connector:C(),run_if:x(),config:r.object({providers:D({availableProviders:dm,defaultProviders:fm,sectionKey:`general`}),input_fields:R(r.object({[im.name]:E({fieldName:im.name})})),output_fields:L(r.object({[om.name]:O({fieldName:om.name}),[cm.name]:O({fieldName:cm.name}),[sm.name]:O({fieldName:sm.name}),[am.name]:O({fieldName:am.name}),[um.name]:O({fieldName:um.name}),[lm.name]:O({fieldName:lm.name})}))}).optional()}),mm=e=>V(q(im,e)),hm={"people-identity-email-waterfall-v1-hunter":{provider:`hunter`,allowManagedConnection:!0,credits:{default:2},mode:`onSuccess`},"people-identity-email-waterfall-v1-findymail":{provider:`findymail`,allowManagedConnection:!0,credits:{default:2},mode:`onSuccess`},"people-identity-email-waterfall-v1-crustdata":{provider:`crustdata`,allowManagedConnection:!0,credits:{default:5},mode:`onSuccess`}},gm=class extends H{pipeId=rm;payload;payloadSchema=pm;billableOperations=hm;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return this.payload.config?.providers.map(e=>e.provider)||[]}estimateBillableOperations(e){return J(e,...this.getProviderNames().map(e=>X(e,this.billableOperations).billableOperation))}getInputRequirement(){return mm(this.payload.config)}getRawOutputFields(){return{[om.name]:this.catalogOutput(om,{isPrimaryOutput:!0}),[cm.name]:this.catalogOutput(cm,{isPrimaryOutput:!0}),[sm.name]:this.catalogOutput(sm,{isPrimaryOutput:!0}),[um.name]:this.catalogOutput(um,{isPrimaryOutput:!0}),[lm.name]:this.catalogOutput(lm,{isPrimaryOutput:!0}),[am.name]:this.catalogOutput(am,{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:Y(n),rateLimitOperation:e[t.provider],allowManagedConnection:!0}))}},_m=pm,vm={pipeId:rm,basePipe:G(rm),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:[W.EMAIL,W.PEOPLE_PROFILES],docPath:K(rm),managedProviders:dm,deprecatedProviders:[],allowedUserConnectionProviders:dm,inputFieldMode:`static`,outputFieldMode:`static`,billableOperations:hm,defaultInputRequirement:mm(null),defaultPayload:{pipe_id:rm,connector:null,run_if:null,config:{providers:fm,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}}}}},ym=`people:match:role:waterfall@1`,bm=g(`company_website_url`),xm=g(`role_finder_match`),Sm=[`leadmagic`],Cm=[{provider:`leadmagic`}],wm=r.object({pipe_id:r.literal(ym),run_if:x(),connector:C(),config:r.object({providers:D({sectionKey:`general`,defaultProviders:Cm,availableProviders:Sm}),roles:is({sectionKey:`general`,groupPath:`config.general`,label:`Roles`,path:`config.roles`,info:`Company roles to include`,maxItems:3,minItems:1}),input_fields:R(r.object({[bm.name]:E({fieldName:bm.name})})),output_fields:L(r.object({[xm.name]:O({fieldName:xm.name})}))})}),Tm=e=>dc(q(bm,e)),Em={"people-match-role-waterfall-v1-leadmagic":{provider:`leadmagic`,allowManagedConnection:!0,credits:{default:1},mode:`onSuccess`}},Dm=class extends H{pipeId=ym;payload;payloadSchema=wm;billableOperations=Em;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return this.payload.config?.providers.map(e=>e.provider)||[]}estimateBillableOperations(e){return J(e,...this.getProviderNames().map(e=>X(e,this.billableOperations).billableOperation))}getInputRequirement(){return Tm(this.payload.config)}getRawOutputFields(){return{[xm.name]:this.catalogOutput(xm,{isPrimaryOutput:!0})}}getConnectionsRequirements(){let e={leadmagic:`leadmagic_role_finder`};return(this.payload.config?.providers||[]).map((t,n)=>({provider:t.provider,rateLimitRatio:Y(n),rateLimitOperation:e[t.provider],allowManagedConnection:!0}))}},Om=wm,km={pipeId:ym,basePipe:G(ym),managedProviders:Sm,deprecatedProviders:[],allowedUserConnectionProviders:Sm,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:[W.PEOPLE_PROFILES],docPath:K(ym),billableOperations:Em,inputFieldMode:`static`,outputFieldMode:`static`,defaultInputRequirement:Tm(null),defaultPayload:{pipe_id:ym,run_if:null,connector:null,config:{roles:[],providers:Cm,input_fields:{company_website_url:{alias:``}},output_fields:{role_finder_match:{alias:``,enabled:!0}}}}},Am=`people:mobilenumber:professionalprofile:waterfall@1`,jm=g(`professional_profile_url`),Mm=g(`mobile_number`),Nm=[`leadmagic`,`prospeo`],Pm=[{provider:`leadmagic`},{provider:`prospeo`}],Fm=r.object({pipe_id:r.literal(Am),run_if:x(),connector:C(),config:r.object({providers:D({sectionKey:`general`,defaultProviders:Pm,availableProviders:Nm}),input_fields:R(r.object({[jm.name]:E({fieldName:jm.name})})),output_fields:L(r.object({[Mm.name]:O({fieldName:Mm.name})}))}).optional()}),Im=e=>V(q(jm,e)),Lm={"people-mobilenumber-professionalprofile-waterfall-v1-leadmagic":{provider:`leadmagic`,allowManagedConnection:!0,credits:{default:2},mode:`onSuccess`},"people-mobilenumber-professionalprofile-waterfall-v1-prospeo":{provider:`prospeo`,allowManagedConnection:!0,credits:{default:5},mode:`onSuccess`}},Rm=class extends H{pipeId=Am;payload;payloadSchema=Fm;billableOperations=Lm;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return this.payload.config?.providers.map(e=>e.provider)||[]}estimateBillableOperations(e){return J(e,...this.getProviderNames().map(e=>X(e,this.billableOperations).billableOperation))}getInputRequirement(){return Im(this.payload.config)}getRawOutputFields(){return{[Mm.name]:this.catalogOutput(Mm)}}getConnectionsRequirements(){let e={leadmagic:`leadmagic_email_lookup`,prospeo:`prospeo_phone_number_lookup`};return(this.payload.config?.providers||[]).map((t,n)=>({provider:t.provider,rateLimitRatio:Y(n),rateLimitOperation:e[t.provider],allowManagedConnection:!0}))}},zm=Fm,Bm={pipeId:Am,basePipe:G(Am),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:[W.PHONE,W.WATERFALL],billableOperations:Lm,defaultInputRequirement:Im(null),inputFieldMode:`static`,outputFieldMode:`static`,managedProviders:Nm,deprecatedProviders:[],allowedUserConnectionProviders:Nm,defaultPayload:{pipe_id:Am,connector:null,run_if:null,config:{providers:Pm,input_fields:{professional_profile_url:{alias:``}},output_fields:{mobile_number:{alias:``,enabled:!0}}}}},Vm=`people:mobilenumber:workemail:waterfall@1`,Hm=g(`work_email`),Um=g(`mobile_number`),Wm=[`leadmagic`],Gm=[{provider:`leadmagic`}],Km=r.object({pipe_id:r.literal(Vm),run_if:x(),connector:C(),config:r.object({providers:D({sectionKey:`general`,availableProviders:Wm,defaultProviders:Gm}),input_fields:R(r.object({[Hm.name]:E({fieldName:Hm.name})})),output_fields:L(r.object({[Um.name]:O({fieldName:Um.name})}))}).optional()}),qm=e=>V(q(Hm,e)),Jm={"people-mobilenumber-workemail-waterfall-v1-leadmagic":{provider:`leadmagic`,allowManagedConnection:!0,credits:{default:2},mode:`onSuccess`}},Ym=class extends H{pipeId=Vm;payload;payloadSchema=Km;billableOperations=Jm;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return this.payload.config?.providers?.map(e=>e.provider)||[]}estimateBillableOperations(e){return J(e,...this.getProviderNames().map(e=>X(e,this.billableOperations).billableOperation))}getInputRequirement(){return qm(this.payload.config)}getRawOutputFields(){return{[Um.name]:this.catalogOutput(Um)}}getConnectionsRequirements(){let e={leadmagic:`leadmagic_email_lookup`};return(this.payload.config?.providers||[]).map((t,n)=>({provider:t.provider,rateLimitRatio:Y(n),rateLimitOperation:e[t.provider],allowManagedConnection:!0}))}},Xm=Km,Zm={pipeId:Vm,basePipe:G(Vm),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:[W.PHONE,W.WATERFALL],docPath:`/resources/pipe-catalog/people:mobilenumber:workemail:waterfall/1`,billableOperations:Jm,defaultInputRequirement:qm(null),inputFieldMode:`static`,outputFieldMode:`static`,allowedUserConnectionProviders:Wm,managedProviders:Wm,deprecatedProviders:[],defaultPayload:{pipe_id:Vm,connector:null,run_if:null,config:{providers:Gm,input_fields:{work_email:{alias:``}},output_fields:{mobile_number:{alias:``,enabled:!0}}}}},Qm=`people:name:split@1`,$m=g(`name`),eh=g(`first_name`),th=g(`last_name`),nh=r.object({pipe_id:r.literal(Qm),connector:w(),run_if:x(),config:r.object({input_fields:R(r.object({[$m.name]:E({fieldName:$m.name})})),output_fields:L(r.object({[eh.name]:O({fieldName:eh.name}),[th.name]:O({fieldName:th.name})}))}).optional()}),rh=e=>V(q($m,e)),ih={"people-name-split-v1-pipe0":{provider:`pipe0`,allowManagedConnection:!0,credits:{default:0},mode:`always`}},ah=class extends H{pipeId=Qm;payload;payloadSchema=nh;billableOperations=ih;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(e){return J(e,`people-name-split-v1-pipe0`)}getInputRequirement(){return rh(this.payload.config)}getRawOutputFields(){return{[eh.name]:this.catalogOutput(eh),[th.name]:this.catalogOutput(th)}}getConnectionsRequirements(){return[{provider:`pipe0`,rateLimitRatio:1,rateLimitOperation:`pipe0_logic`,allowManagedConnection:!0}]}},oh=nh,sh={pipeId:Qm,basePipe:G(Qm),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:[W.NAMES],docPath:K(Qm),billableOperations:ih,inputFieldMode:`static`,outputFieldMode:`static`,defaultInputRequirement:rh(null),allowedUserConnectionProviders:[],managedProviders:[`pipe0`],deprecatedProviders:[],defaultPayload:{pipe_id:Qm,run_if:null,connector:void 0,config:{input_fields:{name:{alias:``}},output_fields:{first_name:{alias:``,enabled:!0},last_name:{alias:``,enabled:!0}}}}},ch=`people:personalemail:profile:waterfall@1`,lh=g(`profile_url`),uh=g(`personal_email`),dh=g(`alternate_personal_emails`),fh=[`clado`,`leadmagic`,`mixrank`],ph=[{provider:`leadmagic`},{provider:`mixrank`}],mh=r.object({pipe_id:r.literal(ch),run_if:x(),connector:C(),config:r.object({providers:D({sectionKey:`general`,availableProviders:fh,defaultProviders:ph}),input_fields:R(r.object({[lh.name]:E({fieldName:lh.name})})),output_fields:L(r.object({[uh.name]:O({fieldName:uh.name}),[dh.name]:O({fieldName:dh.name})}))}).optional()}),hh=e=>V(q(lh,e)),gh={"people-personalemail-profile-waterfall-v1-clado":{provider:`clado`,allowManagedConnection:!0,credits:{default:2},mode:`always`},"people-personalemail-profile-waterfall-v1-leadmagic":{provider:`leadmagic`,allowManagedConnection:!0,credits:{default:1},mode:`onSuccess`},"people-personalemail-profile-waterfall-v1-mixrank":{provider:`mixrank`,allowManagedConnection:!0,credits:{default:1},mode:`onSuccess`}},_h=class extends H{pipeId=ch;payload;payloadSchema=mh;billableOperations=gh;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return this.payload.config?.providers.map(e=>e.provider)||[]}estimateBillableOperations(e){return J(e,...this.getProviderNames().map(e=>X(e,this.billableOperations).billableOperation))}getInputRequirement(){return hh(this.payload.config)}getRawOutputFields(){return{[uh.name]:this.catalogOutput(uh,{isPrimaryOutput:!0}),[dh.name]:this.catalogOutput(dh)}}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:Y(n),rateLimitOperation:e[t.provider],allowManagedConnection:!0}))}},vh=mh,yh={pipeId:ch,basePipe:G(ch),allowedUserConnectionProviders:fh,managedProviders:fh,deprecatedProviders:[`clado`],label:`Personal email from LinkedIn`,executionMode:`waterfall`,categories:[`deprecated`],lifecycle:{deprecatedOn:`2026-06-13`,replacedBy:`person:personalemail:profileurl:waterfall@1`},description:`Find the personal email address of a prospect by using a professional profile URL as input.`,tags:[W.EMAIL,W.PERSONAL_EMAIL],docPath:K(ch),billableOperations:gh,defaultInputRequirement:hh(null),inputFieldMode:`static`,outputFieldMode:`static`,defaultPayload:{pipe_id:ch,connector:null,run_if:null,config:{providers:ph,input_fields:{profile_url:{alias:``}},output_fields:{personal_email:{alias:``,enabled:!0},alternate_personal_emails:{alias:``,enabled:!0}}}}},bh=`people:phone:profile:waterfall@1`,xh=g(`profile_url`),Sh=g(`mobile`),Ch=[`leadmagic`,`prospeo`,`amplemarket`,`findymail`,`clado`],wh=[{provider:`leadmagic`},{provider:`prospeo`},{provider:`amplemarket`},{provider:`findymail`}],Th=r.object({pipe_id:r.literal(bh),run_if:x(),connector:C(),config:r.object({providers:D({sectionKey:`general`,defaultProviders:wh,availableProviders:Ch}),input_fields:R(r.object({[xh.name]:E({fieldName:xh.name})})),output_fields:L(r.object({[Sh.name]:O({fieldName:Sh.name})}))}).optional()}),Eh=e=>V(q(xh,e)),Dh={"people-phone-profile-waterfall-v1-leadmagic":{provider:`leadmagic`,allowManagedConnection:!0,credits:{default:2},mode:`onSuccess`},"people-phone-profile-waterfall-v1-clado":{provider:`clado`,allowManagedConnection:!0,credits:{default:5},mode:`onSuccess`},"people-phone-profile-waterfall-v1-prospeo":{provider:`prospeo`,allowManagedConnection:!0,credits:{default:5},mode:`onSuccess`},"people-phone-profile-waterfall-v1-findymail":{provider:`findymail`,allowManagedConnection:!0,credits:{default:6},mode:`onSuccess`},"people-phone-profile-waterfall-v1-amplemarket":{provider:`amplemarket`,allowManagedConnection:!0,credits:{default:4},mode:`onSuccess`}},Oh=class extends H{pipeId=bh;payload;payloadSchema=Th;billableOperations=Dh;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return this.payload.config?.providers.map(e=>e.provider)||[]}estimateBillableOperations(e){return J(e,...this.getProviderNames().map(e=>X(e,this.billableOperations).billableOperation))}getInputRequirement(){return Eh(this.payload.config)}getRawOutputFields(){return{[Sh.name]:this.catalogOutput(Sh,{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:Y(n),rateLimitOperation:e[t.provider],allowManagedConnection:!0}))}},kh=Th,Ah={pipeId:bh,basePipe:G(bh),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(bh),tags:[W.PHONE,W.WATERFALL],billableOperations:Dh,defaultInputRequirement:Eh(null),inputFieldMode:`static`,outputFieldMode:`static`,managedProviders:Ch,allowedUserConnectionProviders:Ch,deprecatedProviders:[`clado`],defaultPayload:{pipe_id:bh,connector:null,run_if:null,config:{providers:wh,input_fields:{profile_url:{alias:``}},output_fields:{mobile:{alias:``,enabled:!0}}}}},jh=`people:phone:workemail:waterfall@1`,Mh=g(`work_email`),Nh=g(`mobile`),Ph=[`leadmagic`,`amplemarket`],Fh=[{provider:`leadmagic`},{provider:`amplemarket`}],Ih=r.object({pipe_id:r.literal(jh),run_if:x(),connector:C(),config:r.object({providers:D({sectionKey:`general`,availableProviders:Ph,defaultProviders:Fh}),input_fields:R(r.object({[Mh.name]:E({fieldName:Mh.name})})),output_fields:L(r.object({[Nh.name]:O({fieldName:Nh.name})}))}).optional()}),Lh=e=>V(q(Mh,e)),Rh={"people-phone-workemail-waterfall-v1-leadmagic":{provider:`leadmagic`,allowManagedConnection:!0,credits:{default:2},mode:`onSuccess`},"people-phone-workemail-waterfall-v1-amplemarket":{provider:`amplemarket`,allowManagedConnection:!0,credits:{default:4},mode:`onSuccess`}},zh=class extends H{pipeId=jh;payload;payloadSchema=Ih;billableOperations=Rh;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return this.payload.config?.providers.map(e=>e.provider)||[]}estimateBillableOperations(e){return J(e,...this.getProviderNames().map(e=>X(e,this.billableOperations).billableOperation))}getInputRequirement(){return Lh(this.payload.config)}getRawOutputFields(){return{[Nh.name]:this.catalogOutput(Nh,{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:Y(n),rateLimitOperation:e[t.provider],allowManagedConnection:!0}))}},Bh=Ih,Vh={pipeId:jh,basePipe:G(jh),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:[W.PHONE,W.WATERFALL],docPath:K(jh),billableOperations:Rh,defaultInputRequirement:Lh(null),inputFieldMode:`static`,outputFieldMode:`static`,allowedUserConnectionProviders:Ph,managedProviders:Ph,deprecatedProviders:[],defaultPayload:{pipe_id:jh,connector:null,run_if:null,config:{providers:Fh,input_fields:{work_email:{alias:``}},output_fields:{mobile:{alias:``,enabled:!0}}}}},Hh=`people:professionalprofile:waterfall@1`,Uh=g(`professional_profile`),Wh=g(`professional_profile_url`),Gh=[`prospeo`,`icypeas`],Kh=[{provider:`prospeo`},{provider:`icypeas`}],qh=r.object({pipe_id:r.literal(Hh),run_if:x(),connector:C(),config:r.object({providers:D({sectionKey:`general`,availableProviders:Gh,defaultProviders:Kh}),input_fields:R(r.object({[Wh.name]:E({fieldName:Wh.name})})),output_fields:L(r.object({[Uh.name]:O({fieldName:Uh.name})}))}).optional()}),Jh=e=>V(q(Wh,e)),Yh={"people-professionalprofile-waterfall-v1-icypeas":{provider:`icypeas`,credits:{default:1},mode:`onSuccess`,allowManagedConnection:!0},"people-professionalprofile-waterfall-v1-prospeo":{provider:`prospeo`,credits:{default:1},mode:`onSuccess`,allowManagedConnection:!0}},Xh=class extends H{pipeId=Hh;payload;payloadSchema=qh;billableOperations=Yh;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return this.payload.config?.providers.map(e=>e.provider)||[]}estimateBillableOperations(e){return J(e,...this.getProviderNames().map(e=>X(e,this.billableOperations).billableOperation))}getInputRequirement(){return Jh(this.payload.config)}getRawOutputFields(){return{[Uh.name]:this.catalogOutput(Uh)}}getConnectionsRequirements(){let e={icypeas:`icypeas_scrape_profile`,prospeo:`prospeo_social_profile_lookup`};return(this.payload.config?.providers||[]).map((t,n)=>({provider:t.provider,rateLimitRatio:Y(n),rateLimitOperation:e[t.provider],allowManagedConnection:!0}))}},Zh=qh,Qh={pipeId:Hh,basePipe:G(Hh),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:[W.LINKEDIN,W.WATERFALL],managedProviders:Gh,deprecatedProviders:[],allowedUserConnectionProviders:Gh,inputFieldMode:`static`,outputFieldMode:`static`,billableOperations:Yh,defaultInputRequirement:Jh(null),defaultPayload:{pipe_id:Hh,run_if:null,connector:null,config:{providers:Kh,input_fields:{professional_profile_url:{alias:``}},output_fields:{professional_profile:{alias:``,enabled:!0}}}}},$h=`people:professionalprofileurl:email:waterfall@1`,eg=g(`email`),tg=g(`work_email`),ng=g(`professional_profile_url`),rg=[`leadmagic`],ig=[{provider:`leadmagic`}],ag=r.object({pipe_id:r.literal($h),run_if:x(),connector:C(),config:r.object({providers:D({sectionKey:`general`,defaultProviders:ig,availableProviders:rg}),input_fields:R(r.object({[eg.name]:E({fieldName:eg.name}),[tg.name]:E({fieldName:tg.name})})),output_fields:L(r.object({[ng.name]:O({fieldName:ng.name})}))}).optional()}),og=e=>dc(q(eg,e),q(tg,e)),sg={"people-professionalprofileurl-email-waterfall-v1-leadmagic":{provider:`leadmagic`,allowManagedConnection:!0,credits:{default:3.5},mode:`onSuccess`}},cg=class extends H{pipeId=$h;payload;payloadSchema=ag;billableOperations=sg;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return this.payload.config?.providers.map(e=>e.provider)||[]}estimateBillableOperations(e){return J(e,...this.getProviderNames().map(e=>X(e,this.billableOperations).billableOperation))}getInputRequirement(){return og(this.payload.config)}getRawOutputFields(){return{[ng.name]:this.catalogOutput(ng)}}getConnectionsRequirements(){let e={leadmagic:`leadmagic_email_to_b2b_profile`};return(this.payload.config?.providers||[]).map((t,n)=>({provider:t.provider,rateLimitRatio:Y(n),rateLimitOperation:e[t.provider],allowManagedConnection:!0}))}},lg=ag,ug={pipeId:$h,basePipe:G($h),managedProviders:rg,deprecatedProviders:[],allowedUserConnectionProviders:rg,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:[W.LINKEDIN],docPath:`/resources/pipe-catalog/people:professionalprofileurl:email:waterfall/1`,billableOperations:sg,inputFieldMode:`static`,outputFieldMode:`static`,defaultInputRequirement:og(null),defaultPayload:{pipe_id:$h,run_if:null,connector:null,config:{providers:ig,input_fields:{email:{alias:``},work_email:{alias:``}},output_fields:{professional_profile_url:{alias:``,enabled:!0}}}}},dg=`people:professionalprofileurl:name@1`,fg=g(`name`),pg=g(`company_name`),mg=g(`location_hint`),hg=g(`professional_profile_url`),gg=r.object({pipe_id:r.literal(dg),connector:w(),run_if:x(),config:r.object({input_fields:R(r.object({[fg.name]:E({fieldName:fg.name}),[pg.name]:E({fieldName:pg.name}),[mg.name]:E({fieldName:mg.name})})),output_fields:L(r.object({[hg.name]:O({fieldName:hg.name})}))}).optional()}),_g=e=>uc(V(q(fg,e)),V(q(pg,e)),fc(q(mg,e))),vg={"people-professionalprofileurl-name-v1-pipe0":{provider:`pipe0`,allowManagedConnection:!0,credits:{default:.6},mode:`always`}},yg=class extends H{pipeId=dg;payload;payloadSchema=gg;billableOperations=vg;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(e){return J(e,`people-professionalprofileurl-name-v1-pipe0`)}getInputRequirement(){return _g(this.payload.config)}getRawOutputFields(){return{[hg.name]:this.catalogOutput(hg)}}getConnectionsRequirements(){return[{provider:`serper`,rateLimitRatio:1,rateLimitOperation:`serper_search`,allowManagedConnection:!0}]}},bg=gg,xg={pipeId:dg,basePipe:G(dg),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:[W.LINKEDIN],billableOperations:vg,defaultInputRequirement:_g(null),inputFieldMode:`static`,outputFieldMode:`static`,defaultPayload:{pipe_id:dg,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}}}}},Sg=`people:profile:waterfall@1`,Cg=g(`profile`),wg=g(`profile_url`),Tg=[`prospeo`,`icypeas`,`amplemarket`,`clado`],Eg=[{provider:`amplemarket`},{provider:`prospeo`},{provider:`icypeas`}],Dg=r.object({pipe_id:r.literal(Sg),run_if:x(),connector:C(),config:r.object({providers:D({sectionKey:`general`,availableProviders:Tg,defaultProviders:Eg}),input_fields:R(r.object({[wg.name]:E({fieldName:wg.name})})),output_fields:L(r.object({[Cg.name]:O({fieldName:Cg.name})}))}).optional()}),Og=e=>V(q(wg,e)),kg={"people-profile-waterfall-v1-icypeas":{provider:`icypeas`,credits:{default:1},mode:`onSuccess`,allowManagedConnection:!0},"people-profile-waterfall-v1-prospeo":{provider:`prospeo`,credits:{default:1},mode:`onSuccess`,allowManagedConnection:!0},"people-profile-waterfall-v1-clado":{provider:`clado`,credits:{default:1},mode:`onSuccess`,allowManagedConnection:!0},"people-profile-waterfall-v1-amplemarket":{provider:`amplemarket`,credits:{default:1},mode:`onSuccess`,allowManagedConnection:!0}},Ag=class extends H{pipeId=Sg;payload;payloadSchema=Dg;billableOperations=kg;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return this.payload.config?.providers.map(e=>e.provider)||[]}estimateBillableOperations(e){return J(e,...this.getProviderNames().map(e=>X(e,this.billableOperations).billableOperation))}getInputRequirement(){return Og(this.payload.config)}getRawOutputFields(){return{[Cg.name]:this.catalogOutput(Cg,{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:Y(n),rateLimitOperation:e[t.provider],allowManagedConnection:!0}))}},jg=Dg,Mg={pipeId:Sg,basePipe:G(Sg),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(Sg),tags:[W.LINKEDIN,W.WATERFALL],managedProviders:Tg,deprecatedProviders:[`clado`],allowedUserConnectionProviders:Tg,inputFieldMode:`static`,outputFieldMode:`static`,billableOperations:kg,defaultInputRequirement:Og(null),defaultPayload:{pipe_id:Sg,run_if:null,connector:null,config:{providers:Eg,input_fields:{profile_url:{alias:``}},output_fields:{profile:{alias:``,enabled:!0}}}}},Ng=g(`work_email`),Pg=g(`crustdata_person_match`),Fg=g(`crustdata_profile_match_score`),Ig=`people:profile:workemail:crustdata@1`,Lg=r.object({pipe_id:r.literal(Ig),run_if:x(),connector:C(),config:r.object({input_fields:R(r.object({[Ng.name]:E({fieldName:Ng.name})})),output_fields:L(r.object({[Pg.name]:O({fieldName:Pg.name}),[Fg.name]:O({fieldName:Fg.name})}))}).optional()}),Rg=e=>V(q(Ng,e)),zg={"people-profile-workemail-crustdata-v1-crustdata":{allowManagedConnection:!0,credits:{default:5},mode:`onSuccess`,provider:`crustdata`}},Bg=class extends H{pipeId=Ig;payload;payloadSchema=Lg;billableOperations=zg;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`crustdata`]}estimateBillableOperations(e){return J(e,`people-profile-workemail-crustdata-v1-crustdata`)}getInputRequirement(){return Rg(this.payload.config)}getRawOutputFields(){return{[Pg.name]:this.catalogOutput(Pg),[Fg.name]:this.catalogOutput(Fg)}}getConnectionsRequirements(){return[{provider:`crustdata`,rateLimitRatio:1,rateLimitOperation:`crustdata_realtime_person_enrich`,allowManagedConnection:!0}]}},Vg=Lg,Hg={pipeId:Ig,inputFieldMode:`static`,outputFieldMode:`static`,basePipe:G(Ig),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:[W.EMAIL,W.PEOPLE_PROFILES],docPath:K(Ig),billableOperations:zg,allowedUserConnectionProviders:[`crustdata`],managedProviders:[`crustdata`],deprecatedProviders:[],defaultInputRequirement:Rg(null),defaultPayload:{pipe_id:Ig,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}}}}},Ug=`people:profileurl:email:waterfall@1`,Wg=g(`email`),Gg=g(`work_email`),Kg=g(`profile_url`),qg=[`leadmagic`],Jg=[{provider:`leadmagic`}],Yg=r.object({pipe_id:r.literal(Ug),run_if:x(),connector:C(),config:r.object({providers:D({sectionKey:`general`,defaultProviders:Jg,availableProviders:qg}),input_fields:R(r.object({[Wg.name]:E({fieldName:Wg.name}),[Gg.name]:E({fieldName:Gg.name})})),output_fields:L(r.object({[Kg.name]:O({fieldName:Kg.name})}))}).optional()}),Xg=e=>dc(q(Wg,e),q(Gg,e)),Zg={"people-profileurl-email-waterfall-v1-leadmagic":{provider:`leadmagic`,allowManagedConnection:!0,credits:{default:3.5},mode:`onSuccess`}},Qg=class extends H{pipeId=Ug;payload;payloadSchema=Yg;billableOperations=Zg;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return this.payload.config?.providers.map(e=>e.provider)||[]}estimateBillableOperations(e){return J(e,...this.getProviderNames().map(e=>X(e,this.billableOperations).billableOperation))}getInputRequirement(){return Xg(this.payload.config)}getRawOutputFields(){return{[Kg.name]:this.catalogOutput(Kg,{isPrimaryOutput:!0})}}getConnectionsRequirements(){let e={leadmagic:`leadmagic_email_to_b2b_profile`};return(this.payload.config?.providers||[]).map((t,n)=>({provider:t.provider,rateLimitRatio:Y(n),rateLimitOperation:e[t.provider],allowManagedConnection:!0}))}},$g=Yg,e_={pipeId:Ug,basePipe:G(Ug),managedProviders:qg,deprecatedProviders:[],allowedUserConnectionProviders:qg,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:[W.LINKEDIN],docPath:K(Ug),billableOperations:Zg,inputFieldMode:`static`,outputFieldMode:`static`,defaultInputRequirement:Xg(null),defaultPayload:{pipe_id:Ug,run_if:null,connector:null,config:{providers:Jg,input_fields:{email:{alias:``},work_email:{alias:``}},output_fields:{profile_url:{alias:``,enabled:!0}}}}},t_=`people:validate:email:zerobounce@1`,n_=g(`work_email`),r_=g(`ip_address`),i_=g(`is_email_valid`),a_=r.object({pipe_id:r.literal(t_),connector:C(),run_if:x(),config:r.object({input_fields:R(r.object({[n_.name]:E({fieldName:n_.name}),[r_.name]:E({fieldName:r_.name})})),output_fields:L(r.object({[i_.name]:O({fieldName:i_.name})}))}).optional()}),o_=e=>uc(V(q(n_,e)),fc(q(r_,e))),s_={"people-validate-email-zerobounce-v1-zerobounce":{provider:`zerobounce`,allowManagedConnection:!0,credits:{default:.5},mode:`always`}},c_=class extends H{pipeId=t_;payload;payloadSchema=a_;billableOperations=s_;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`zerobounce`]}estimateBillableOperations(e){return J(e,`people-validate-email-zerobounce-v1-zerobounce`)}getInputRequirement(){return o_(this.payload.config)}getRawOutputFields(){return{[i_.name]:this.catalogOutput(i_)}}getConnectionsRequirements(){return[{provider:`zerobounce`,rateLimitRatio:1,rateLimitOperation:`zerobounce_generic`,allowManagedConnection:!0}]}},l_=a_,u_={pipeId:t_,basePipe:G(t_),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:[W.EMAIL],docPath:`/resources/pipe-catalog/people:validate:email:zerobounce/1`,billableOperations:s_,inputFieldMode:`static`,outputFieldMode:`static`,allowedUserConnectionProviders:[`zerobounce`],managedProviders:[`zerobounce`],deprecatedProviders:[],defaultInputRequirement:o_(null),defaultPayload:{pipe_id:t_,connector:null,run_if:null,config:{input_fields:{ip_address:{alias:``},work_email:{alias:``}},output_fields:{is_email_valid:{alias:``,enabled:!0}}}}},d_=`people:workemail:profileurl:waterfall@1`,f_=g(`profile_url`),p_=g(`work_email`),m_=g(`email_validation_status`),h_=[`hunter`,`amplemarket`,`findymail`,`leadmagic`,`crustdata`,`clado`],g_=[`clado`],__=[{provider:`hunter`},{provider:`amplemarket`},{provider:`leadmagic`},{provider:`findymail`},{provider:`crustdata`}],v_=r.object({pipe_id:r.literal(d_),connector:C(),run_if:x(),config:r.object({providers:D({availableProviders:h_,defaultProviders:__,sectionKey:`general`}),allow_catch_all_emails:ds({path:`config.allow_catch_all_emails`,defaultValue:!0,groupPath:`config.general`,sectionKey:`general`,info:``,label:`Allow catch-all emails`}),allow_risky_emails:ds({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:R(r.object({[f_.name]:E({fieldName:f_.name})})),output_fields:L(r.object({[p_.name]:O({fieldName:p_.name}),[m_.name]:O({fieldName:m_.name})}))}).optional()}),y_=e=>V(q(f_,e)),b_={"people-workemail-profileurl-waterfall-v1-hunter":{provider:`hunter`,allowManagedConnection:!0,credits:{default:1},mode:`onSuccess`},"people-workemail-profileurl-waterfall-v1-leadmagic":{provider:`leadmagic`,allowManagedConnection:!0,credits:{default:2},mode:`onSuccess`},"people-workemail-profileurl-waterfall-v1-findymail":{provider:`findymail`,allowManagedConnection:!0,credits:{default:2},mode:`onSuccess`},"people-workemail-profileurl-waterfall-v1-crustdata":{provider:`crustdata`,allowManagedConnection:!0,credits:{default:3},mode:`onSuccess`},"people-workemail-profileurl-waterfall-v1-clado":{provider:`clado`,allowManagedConnection:!0,credits:{default:3.5},mode:`onSuccess`},"people-workemail-profileurl-waterfall-v1-amplemarket":{provider:`amplemarket`,allowManagedConnection:!0,credits:{default:2.5},mode:`onSuccess`}},x_=class extends H{pipeId=d_;payload;payloadSchema=v_;billableOperations=b_;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return this.payload.config?.providers.map(e=>e.provider)||[]}estimateBillableOperations(e){return J(e,...this.getProviderNames().map(e=>X(e,this.billableOperations).billableOperation))}getInputRequirement(){return y_(this.payload.config)}getRawOutputFields(){return{[p_.name]:this.catalogOutput(p_,{isPrimaryOutput:!0}),[m_.name]:this.catalogOutput(m_,{isPrimaryOutput:!1})}}getConnectionsRequirements(){let e={leadmagic:`leadmagic_email_b2b_lookup`,hunter:`prospeo_email_lookup`,amplemarket:`amplemarket-person-reveal`,findymail:`findymail_email_b2b_lookup`,crustdata:`crustdata_realtime_person_enrich`,clado:`clado_contact_information`};return(this.payload.config?.providers||[]).map((t,n)=>({provider:t.provider,rateLimitRatio:Y(n),rateLimitOperation:e[t.provider],allowManagedConnection:!0}))}},S_=v_,C_={pipeId:d_,basePipe:G(d_),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:[W.EMAIL,W.WORK_EMAIL,W.WATERFALL],docPath:K(d_),managedProviders:h_,allowedUserConnectionProviders:h_,deprecatedProviders:g_,inputFieldMode:`static`,outputFieldMode:`static`,billableOperations:b_,defaultInputRequirement:y_(null),defaultPayload:{pipe_id:d_,connector:null,run_if:null,config:{providers:__,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}}}}},w_=`people:workemail:waterfall@1`,T_=g(`name`),E_=g(`company_website_url`),D_=g(`company_name`),O_=g(`work_email`),k_=g(`email_validation_status`),A_=[`leadmagic`,`prospeo`,`amplemarket`,`hunter`,`icypeas`,`findymail`],j_=[{provider:`leadmagic`},{provider:`prospeo`},{provider:`amplemarket`},{provider:`hunter`},{provider:`icypeas`},{provider:`findymail`}],M_=r.object({pipe_id:r.literal(w_),connector:C(),run_if:x(),config:r.object({providers:D({availableProviders:A_,defaultProviders:j_,sectionKey:`general`}),allow_catch_all_emails:ds({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:ds({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:R(r.object({[T_.name]:E({fieldName:T_.name}),[E_.name]:E({fieldName:E_.name}),[D_.name]:E({fieldName:D_.name})})),output_fields:L(r.object({[O_.name]:O({fieldName:O_.name}),[k_.name]:O({fieldName:k_.name})}))}).optional()}),N_=e=>uc(V(q(T_,e)),dc(q(E_,e),q(D_,e))),P_={"people-workemail-waterfall-v1-leadmagic":{provider:`leadmagic`,allowManagedConnection:!0,credits:{default:.5},mode:`onSuccess`},"people-workemail-waterfall-v1-icypeas":{provider:`icypeas`,allowManagedConnection:!0,credits:{default:.5},mode:`onSuccess`},"people-workemail-waterfall-v1-prospeo":{provider:`prospeo`,allowManagedConnection:!0,credits:{default:1,level1:{credits:.5,weight:1}},mode:`onSuccess`},"people-workemail-waterfall-v1-findymail":{provider:`findymail`,allowManagedConnection:!0,credits:{default:1},mode:`onSuccess`},"people-workemail-waterfall-v1-hunter":{provider:`hunter`,allowManagedConnection:!0,credits:{default:1},mode:`onSuccess`},"people-workemail-waterfall-v1-amplemarket":{provider:`amplemarket`,allowManagedConnection:!0,credits:{default:2.5},mode:`onSuccess`}},F_=class extends H{pipeId=w_;payload;payloadSchema=M_;billableOperations=P_;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return this.payload.config?.providers.map(e=>e.provider)||[]}estimateBillableOperations(e){return J(e,...this.getProviderNames().map(e=>X(e,this.billableOperations).billableOperation))}getInputRequirement(){return N_(this.payload.config)}getRawOutputFields(){return{[O_.name]:this.catalogOutput(O_,{isPrimaryOutput:!0}),[k_.name]:this.catalogOutput(k_,{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:Y(n),rateLimitOperation:e[t.provider],allowManagedConnection:!0}))}},I_=M_,L_={pipeId:w_,basePipe:G(w_),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:[W.EMAIL,W.WORK_EMAIL,W.WATERFALL],docPath:K(w_),managedProviders:A_,deprecatedProviders:[],allowedUserConnectionProviders:A_,inputFieldMode:`static`,outputFieldMode:`static`,billableOperations:P_,defaultInputRequirement:N_(null),defaultPayload:{pipe_id:w_,connector:null,run_if:null,config:{providers:j_,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}}}}},R_=`email:iswork@1`,z_=g(`is_work_email`),B_=g(`email`),V_=r.object({pipe_id:r.literal(R_),run_if:x(),connector:w(),config:r.object({input_fields:R(r.object({[B_.name]:E({fieldName:B_.name})})),output_fields:L(r.object({[z_.name]:O({fieldName:z_.name})}))}).optional()}),H_=e=>V(q(B_,e)),U_={"email-iswork-v1-pipe0":{provider:`pipe0`,allowManagedConnection:!0,credits:{default:0},mode:`always`}},W_=class extends H{pipeId=R_;payload;payloadSchema=V_;billableOperations=U_;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(e){return J(e,`email-iswork-v1-pipe0`)}getInputRequirement(){return H_(this.payload.config)}getRawOutputFields(){return{[z_.name]:this.catalogOutput(z_)}}getConnectionsRequirements(){return[{provider:`pipe0`,rateLimitRatio:1,rateLimitOperation:`pipe0_logic`,allowManagedConnection:!0}]}},G_=V_,K_={pipeId:R_,label:`Work email checker`,executionMode:`single`,categories:[`people_data`],lifecycle:null,description:`Check if a given email address is personal or professional.`,tags:[W.EMAIL,W.WORK_EMAIL],docPath:K(R_),billableOperations:U_,basePipe:G(R_),allowedUserConnectionProviders:[],inputFieldMode:`static`,outputFieldMode:`static`,managedProviders:[`pipe0`],deprecatedProviders:[],defaultInputRequirement:H_(null),defaultPayload:{pipe_id:R_,run_if:null,connector:null,config:{input_fields:{email:{alias:``}},output_fields:{is_work_email:{alias:``,enabled:!0}}}}},q_=`email:send:gmail@1`,J_=g(`gmail_email_success`),Y_=r.object({pipe_id:r.literal(q_),connector:Go(),run_if:x(),config:r.object({to:S({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:S({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`}).nullable(),subject:S({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:S({sectionKey:`general`,groupPath:`config.general`,path:`config.body`,label:`Body`,info:"Email body in markdown. Type `@` to insert a field reference or `$` to insert a secret reference.",placeholder:`Hi {{ first_name }},
|
|
69
69
|
|
|
70
70
|
β¦`,inputType:`text`,minLength:1,maxLength:1e6,expectedTagType:`string`,expectedTagFormat:`markdown`,multiline:!0}),output_fields:L(r.object({[J_.name]:O({fieldName:J_.name})}))})}),X_={"email-send-gmail-v1-gmail":{allowManagedConnection:!1,provider:`gmail`,credits:null,mode:null}},Z_=class extends H{pipeId=q_;payload;payloadSchema=Y_;billableOperations=X_;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`gmail`]}estimateBillableOperations(e){return J(e,`email-send-gmail-v1-gmail`)}getTemplatedFields(){return[this.payload.config.to,this.payload.config.reply_to,this.payload.config.subject,this.payload.config.body]}getInputRequirement(){return wc(this.getTemplatedFields())}getSecretRequirements(){return Tc(this.getTemplatedFields())}getConstantRequirements(){return Ec(this.getTemplatedFields())}getRawOutputFields(){return{[J_.name]:this.catalogOutput(J_)}}getConnectionsRequirements(){return[{provider:`gmail`,rateLimitRatio:1,rateLimitOperation:`gmail_send_email`,allowManagedConnection:!1}]}},Q_=Y_,$_={pipeId:q_,basePipe:G(q_),label:`Send email`,executionMode:`single`,categories:[`actions`],lifecycle:null,description:`Send an email with Gmail.`,guide:"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:[W.EMAIL],docPath:K(q_),billableOperations:X_,inputFieldMode:`config`,outputFieldMode:`static`,allowedUserConnectionProviders:[`gmail`],defaultInputRequirement:null,managedProviders:[],deprecatedProviders:[],defaultPayload:{pipe_id:q_,connector:{strategy:`first`,connections:[]},run_if:null,config:{to:``,reply_to:``,subject:``,body:``,output_fields:{gmail_email_success:{alias:``,enabled:!0}}}}},ev=`email:send:resend@1`,tv=g(`resend_email_success`),nv=r.object({pipe_id:r.literal(ev),connector:Go(),run_if:x(),config:r.object({from:S({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:S({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:S({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`}).nullable(),subject:S({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:S({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 }},
|
|
71
71
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pipe0/base",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.4",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "",
|
|
6
6
|
"type": "module",
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
"openapi-fetch": "^0.15.0",
|
|
47
47
|
"tldts": "^7.0.19",
|
|
48
48
|
"xxhash-wasm": "^1.1.0",
|
|
49
|
-
"@pipe0/client": "0.1.
|
|
49
|
+
"@pipe0/client": "0.1.11"
|
|
50
50
|
},
|
|
51
51
|
"devDependencies": {
|
|
52
52
|
"@types/json-schema": "^7.0.15",
|