@pipe0/base 0.4.0 β†’ 0.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.mjs CHANGED
@@ -64,14 +64,14 @@ From the current S24 batch.
64
64
  How do you...`,`Y Combinator's most popular startups.
65
65
  From the current S24 batch.
66
66
 
67
- How do you...`]}},crustdata_post_list:{label:`Crustdata Post list`,type:`json`,format:`json_list_string`,description:`Rich JSON post list`,jsonMeta:{zodSchema:dt,exampleValue:ft}},role_finder_match:{label:`Role finder match`,type:`json`,format:`json_object`,description:`Result of a role finder operation`,jsonMeta:{zodSchema:Jt,exampleValue:Yt}},amplemarket_person_match:{label:`Person match`,type:`json`,format:`json_object`,description:`Person match object as returned by Amplemarket`,jsonMeta:{zodSchema:Pe,exampleValue:Fe}},amplemarket_company_match:{label:`Company match`,type:`json`,format:`json_object`,description:`Company match object as returned by Amplemarket`,jsonMeta:{zodSchema:Me,exampleValue:Ne}},companyenrich_matches:{label:`CompanyEnrich matches`,type:`json`,format:`json_object`,description:`CompanyEnrich response list.`,jsonMeta:{zodSchema:r.array(tt),exampleValue:[nt]}},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:At,zodSchema:kt}},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:Kt,exampleValue:qt},format:`json_object`},professional_profile_url:{label:`LinkedIn Profile URL`,type:`string`,format:`profile_url`,description:`A person's LinkedIn profile URL.`,jsonMeta:null}},gn={company_description:{},cleaned_company_name:{},company_industry:{},icypeas_person_match:{getStaticWidgets(e){if(!e)return{};let t=e;return{display_value:{label:`${t.firstname} ${t.lastname} profile`}}}},icypeas_company_match:{getStaticWidgets(e){return e?{display_value:{label:`${e.name} profile`}}:{}}},company_region:{getStaticWidgets:e=>{let t={},n=fn(e);return n&&(t.location_indicator={emoji:n}),t}},location_hint:{},estimated_revenue:{},founded_year:{},technology_list:{},spending_trend:{getStaticWidgets(e){let t=e;return{display_value:{label:`${t>3?`πŸ”ΌπŸ”ΌπŸ”Ό`:t>1?`πŸ”ΌπŸ”Ό`:t>0?`πŸ”Ό`:t<-3?`πŸ”½πŸ”½πŸ”½`:t<-1?`πŸ”½πŸ”½`:t<0?`πŸ”½`:``} ${Math.round(t*100)}%`}}}},technology_match_builtwith:{getStaticWidgets(e){return{display_value:{label:`Technology profile`}}}},number_of_social_followers:{},email:{},personal_email:{},alternate_personal_emails:{},company_news_summary:{},work_email:{},headcount:{},company_website_url:{},company_domain:{},company_name:{},first_name:{},addressee_name:{},address_line_1:{},address_line_2:{},job_title:{getStaticWidgets(){return{icon:{key:`job`}}}},job_description:{},profile_headline:{},address_city:{},address_country:{},address_state:{},zip_code:{},last_name:{},is_work_email:{},name:{},ip_address:{},skills:{},avatar_url:{},string_input:{},domain:{},url_input:{},slugified:{},http_response_status:{},http_response_body:{},http_response_headers:{},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=mn(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=mn(e);return{display_value:t?{label:t}:void 0,icon:{key:`linkedin`}}}},company_profile_url:{getStaticWidgets(e){let t=mn(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:je.linkedin}}}},crustdata_post_list:{getStaticWidgets(e){return{entity_logo:{entity:`LinkedIn`,image_url:je.linkedin}}}},crustdata_company_match:{},crustdata_company_identity_matches:{},crustdata_person_match:{},parallel_person_entity_match:{},parallel_company_entity_match:{},resend_contact_id:{},sheet_record_id:{},sheet_record_ids:{},companyenrich_match:{},companyenrich_matches:{},input_objects:{},role_finder_match:{},sheet:{},logodev_describe_match:{getStaticWidgets(){return{display_value:{label:`Match`}}}},logo_url:{getStaticWidgets(){return{display_value:{label:`Logo URL`}}}},mobile_number:{},created_sheet:{},professional_profile:{},professional_profile_url:{},crustdata_companyenrich_match:{},template_output:{},zerobounce_validation_match:{},zerobounce_validation_status:{getStaticWidgets(e){return{display_value:{label:e===`valid`?`βœ… Valid`:e===`invalid`?`❌ Invalid`:e===`catch-all`?`⚾️ Catch All`:e===`abuse`?`⚠️ Abuse`:e===`do_not_mail`?`❌❌ Do not mail`:e===`spamtrap`?`❌❌❌ Spam Trap`:e}}}},gmail_email_success:{getStaticWidgets(e){return{display_value:{label:e?`βœ… Sent`:`❌ Not sent`}}}}};function g(e){return{...hn[e],name:e}}function _n(e,t){if(yn(e,t))return gn[e]}function vn(e){return e in hn}function yn(e,t){return e in hn?hn[e].format===t:!1}const bn={completed:`Completed`,failed:`Failed`,no_result:`No result`,pending:`Pending`,processing:`Processing`,queued:`Queued`,skipped:`Skipped`};function xn(e){return bn[e]}const Sn=(e,t=`Set a ${e} connection to enable this`)=>n=>(n.connector?.connections??[]).some(t=>t?.connection?.startsWith(`${e}_`))?{disabled:!1}:{disabled:!0,message:t},Cn=(e,t)=>n=>{let r=e(n);return r!=null&&r!==``?{disabled:!1}:{disabled:!0,message:t}},wn=(...e)=>t=>{for(let n of e){let e=n(t);if(e.disabled)return e}return{disabled:!1}},Tn=(...e)=>t=>{let n={disabled:!0,message:`No condition matched`};for(let r of e){let e=r(t);if(!e.disabled)return e;n=e}return n};function En(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 Dn=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.input_objects.role_finder_match.logodev_describe_match.logo_url.crustdata_company_match.crustdata_companyenrich_match.crustdata_company_identity_matches.crustdata_person_match.parallel_person_entity_match.parallel_company_entity_match.post_list_string.crustdata_post_list.crustdata_profile_match_score.amplemarket_person_match.amplemarket_company_match.created_sheet.sheet.string_input.domain.url_input.slugified.http_response_status.http_response_body.http_response_headers.luma_id.registered_at.luma_event_guest_match.professional_profile_url.professional_profile.company_social_url.mobile_number`.split(`.`)),On=r.enum(`pipe0.findymail.crustdata.hunter.zerobounce.millionverifier.googlemaps.gemini.leadmagic.mixrank.builtwith.perplexity.serper.icypeas.prospeo.clado.resend.slack.gmail.firecrawl.exa.openai.companyenrich.logodev.amplemarket.parallel.luma`.split(`.`)),kn=r.enum([`production`,`sandbox`]),An=`prompt:run@1.company:newssummary:website@1.company:newssummary:domain@1.company:techstack:builtwith@1.company:techstack:builtwith@2.company:websiteurl:email@1.company:domain:workemail@1.company:funding:leadmagic@1.company:funding:leadmagic@2.people:workemail:waterfall@1.person:workemail:waterfall@1.people:email:iswork@1.email:iswork@1.people:name:split@1.person:name:split@1.person:name:join@1.people:validate:email:zerobounce@1.people:email:validate:zerobounce@2.email:validate:zerobounce@1.people:mobilenumber:workemail:waterfall@1.company:overview@1.company:overview@2.company:overview@3.json:extract:multi@1.email:write@1.message:write@1.email:send:resend@1.email:send:gmail@1.message:send:slack@1.template:fill@1.contact:create:resend@1.people:match:role:waterfall@1.person:match:role:waterfall@1.person:identity:amplemarket@1.company:identity@2.company:identity@3.company:identity:crustdata@1.person:match:amplemarket@1.people:phone:profile:waterfall@1.person:mobile:profileurl:waterfall@1.people:personalemail:profile:waterfall@1.person:personalemail:profileurl:waterfall@1.people:profile:waterfall@1.person:profile:waterfall@1.people:profileurl:email:waterfall@1.person:profileurl:email:waterfall@1.person:profileurl:name@1.people:email:validate:zerobounce@1.person:email:validate:millionverifier@1.people:phone:workemail:waterfall@1.person:mobile:workemail:waterfall@1.fields:merge@1.field:slugify@1.field:domainify@1.website:scrape:firecrawl@1.website:scrapelist:firecrawl@1.website:extract:firecrawl@1.website:extract:parallel@1.website:maplinks:firecrawl@1.sheet:row:append@1.sheet:row:expandappend@1.company:lookalikes:companyenrich@1.company:lookalikes:companyenrich@2.company:match:logodev@1.company:match:logodev@2.person:posts:crustdata@1.company:match:crustdata@1.company:match:crustdata@2.people:profile:workemail:crustdata@1.person:profile:workemail:crustdata@1.people:workemail:profileurl:waterfall@1.person:workemail:profileurl:waterfall@1.people:identity:email:waterfall@1.person:identity:email:waterfall@1.person:devprofileurl:profileurl:waterfall@1.http:request@1.company:identity@1.people:professionalprofile:waterfall@1.people:professionalprofileurl:name@1.people:professionalprofileurl:email:waterfall@1.people:mobilenumber:professionalprofile:waterfall@1`.split(`.`),jn=r.enum(An),Mn=[`string`,`number`,`boolean`,`json`,`unknown`],Nn=r.enum(Mn),Pn=r.union([r.number(),r.string()]),Fn=r.union([r.literal(`completed`),r.literal(`failed`),r.literal(`pending`),r.literal(`queued`),r.literal(`processing`),r.literal(`no_result`),r.literal(`skipped`)]),In=r.union([r.string().min(1),r.number(),r.boolean(),r.null(),r.record(r.string(),r.unknown()),r.array(r.unknown())]),Ln=r.object({example_value:r.any().nullable(),schema:r.any().nullable()}),Rn=r.object({}),zn=Rn.extend({image_url:r.string().url().describe(`URL to the provider's logo image.`),entity:r.string().describe(`The name of the entity.`)}),Bn=Rn.extend({emoji:r.string().describe(`Country flag emoji.`)}),Vn=Rn.extend({image_url:r.url().describe(`URL to the provider's logo image.`),name:r.string().describe(`The name of the avatar owner.`)}),Hn=Rn.extend({attempted_providers:r.array(r.object({provider:On})),available_providers:r.array(On),successful_provider:On.optional()}),Un=r.enum([`linkedin`,`job`]),Wn=Rn.extend({key:Un}).optional(),Gn=r.object({result_status:r.enum([`completed`,`failed`])}).optional(),Kn=r.object({list:r.array(r.object({source:r.string(),description:r.string().optional(),url:r.string()}))}).optional(),qn=r.object({numeric:r.int().min(1).max(5)}).optional(),Jn=r.object({display_value:r.object({label:r.string().optional()}),entity_logo:zn.optional(),location_indicator:Bn.optional(),avatar:Vn.optional(),waterfall:Hn.optional(),icon:Wn,action_summary:Gn,sources:Kn,confidence:qn}).partial().describe(`A map of widgets associated with this field for UI display, keyed by widget type.`),Yn=r.object({code:r.string(),message:r.string(),path:r.string().optional()}),Xn=r.object({code:r.string(),summary:r.string(),message:r.string()}),Zn=[`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`],Qn=r.enum(Zn);Qn.nullable();const $n=r.object({type:Nn,label:r.string().nullable().optional(),format:Qn.nullable().optional(),json_metadata:Ln.nullable().optional()}),er=r.record(r.string(),$n),tr=r.enum([...An,`input`]).nullable(),nr=r.enum([...An,`input`,`system`]).nullable(),rr=r.object({ref:tr,config_hash:r.string().nullable()}),ir=r.object({ref:nr,environment:kn.nullable(),config_hash:r.string().nullable(),input_hash:r.string().nullable()}),ar=r.object({value:In,status:Fn,type:Nn,reason:Xn.nullable(),claimed_by:rr,resolved_by:ir.nullable(),widgets:Jn.optional(),format:Qn.nullable()}),or=r.object({value:In,status:Fn,reason:Xn.nullable().optional(),type:Nn.optional(),format:Qn.nullable().optional(),claimed_by:rr.optional(),resolved_by:ir.nullable().optional(),widgets:Jn.optional()}),sr=r.record(r.string(),r.union([In,or])).openapi(`PipesInput`),cr=r.object({id:Pn,fields:r.record(Pn,ar)}),lr=r.object({type:r.literal(`catalog`),fieldName:r.string().min(1)}),ur=r.object({type:Nn,label:r.string(),added_by:r.object({ref:r.union([jn,r.literal(`input`)]),config_hash:r.string().nullable(),pipe_index:r.number().nullable()}),format:Qn.nullable(),is_primary_output:r.boolean()}),dr=r.record(r.string(),ur),fr=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:Qn.nullable().default(null),label:r.string().optional(),type:Nn})})).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)})})}),pr=r.enum([`eq`,`neq`,`gt`,`gte`,`lt`,`lte`,`contains`]),mr={eq:`equals`,neq:`not equals`,gt:`greater than`,gte:`greater than or equal`,lt:`less than`,lte:`less than or equal`,contains:`contains`},hr=[`eq`,`neq`,`gt`,`gte`,`lt`,`lte`,`contains`],gr=[`eq`,`neq`],_r=r.object({type:r.literal(`vault`),connection:r.string()}),_=r.object({strategy:r.enum([`first`]).default(`first`),connections:r.array(_r)}).nullable().optional(),vr=r.object({strategy:r.enum([`first`]).default(`first`),connections:r.array(_r).min(1,{message:`Provide your own credentials to use this object.`})}),yr=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(),br=r.enum(hr),xr=r.enum(gr),Sr=r.enum([`failed`,`no_result`,`completed`,`skipped`]),Cr=r.object({action:r.enum([`run`]).default(`run`).describe(`What to do when conditions match. Defaults to "run" (run the pipe only on matching records). Reserved for future extension.`),when:r.object({logic:r.enum([`and`,`or`]).describe(`"and" = all conditions must match. "or" = any condition matches.`),conditions:r.array(r.discriminatedUnion(`property`,[r.object({property:r.literal(`value`).describe(`Compare the actual field value. Use operators: eq, neq, gt, gte, lt, lte, contains.`),field_name:r.string().min(1,{message:`Select a target field for the condition.`}).describe(`Name of a field from input data or produced by an earlier pipe in the workflow.`),operator:br.describe(`Comparison operator: "eq", "neq", "gt", "gte", "lt", "lte", "contains".`),value:r.union([r.number(),r.string(),r.boolean(),r.null()]).describe(`The value to compare the field against. Must be a primitive (string, number, boolean, or null).`).check(e=>{(e.value===void 0||e.value===``)&&e.issues.push({code:`custom`,input:e.value,message:`Provide a value to compare against.`}),typeof e.value==`object`&&e.value!==null&&e.issues.push({code:`custom`,input:e.value,message:`Conditions can only be defined on primitive fields. To apply a condition on a JSON value, expand it into an object first.`})})}),r.object({property:r.literal(`status`).describe(`Compare the field resolution status instead of its value. Use operators: eq, neq.`),field_name:r.string().min(1).describe(`Name of a field from input data or produced by an earlier pipe in the workflow.`),operator:xr.describe(`Status comparison operator: "eq" or "neq".`),value:Sr.describe(`Field status to compare against: "completed", "no_result", "failed", or "skipped".`)})])).min(1).describe(`Array of conditions to evaluate. Each condition checks either a field value or its resolution status.`)}).describe(`Condition block. All conditions are combined with the chosen logic (and/or).`)}).describe(`Run-if gate for a pipe. When set, the pipe only runs on records matching the conditions. Example: { "when": { "logic": "and", "conditions": [{ "property": "status", "field_name": "work_email", "operator": "neq", "value": "no_result" }] } }`),wr={pipe0:{name:`pipe0`,label:`pipe0`,description:`A framework for lead and company data enrichment.`,url:`https://pipe0.com`,public:!0,hasManagedConnections:!0,allowsUserConnections:!1,connectionType:`api_key`,logoUrl:`https://imagedelivery.net/3B3AWuP94-S3Ro5eEac6JA/52f2d955-d9f3-4139-2c13-63cfd568ed00/icon`,background:{light:`#F4F4F5`,dark:`#1F1F23`},oAuthConfig:null},findymail:{name:`findymail`,label:`FindyMail`,description:`Find verified emails.`,url:`https://findymail.com`,public:!1,hasManagedConnections:!0,allowsUserConnections:!0,connectionType:`api_key`,oAuthConfig:null,logoUrl:`https://imagedelivery.net/3B3AWuP94-S3Ro5eEac6JA/9e8ce38d-a49d-42a3-4317-506f7fbec900/icon`,background:{light:`#D4F4DD`,dark:`#143822`}},hunter:{name:`hunter`,label:`HunterMail`,description:`Find email addresses and send cold emails`,url:`https://hunter.io`,public:!1,hasManagedConnections:!0,allowsUserConnections:!0,oAuthConfig:null,connectionType:`api_key`,logoUrl:`https://imagedelivery.net/3B3AWuP94-S3Ro5eEac6JA/fc66b052-6b1e-4c91-a239-6bbce08f1b00/icon`,background:{light:`#FFE4D4`,dark:`#3D1F0C`}},zerobounce:{name:`zerobounce`,label:`ZeroBounce`,description:`Email validation tools and email list cleaning`,url:`https://www.zerobounce.net`,public:!0,hasManagedConnections:!0,allowsUserConnections:!0,connectionType:`api_key`,logoUrl:`https://imagedelivery.net/3B3AWuP94-S3Ro5eEac6JA/db8e9e41-0bda-4f2c-de42-cf8ce61ee500/icon`,background:{light:`#D6F5E5`,dark:`#0E3823`},oAuthConfig:null},googlemaps:{name:`googlemaps`,label:`Google Maps`,description:`A map service by Google`,url:`https://www.google.com/maps`,public:!1,hasManagedConnections:!0,allowsUserConnections:!0,connectionType:`api_key`,logoUrl:`https://imagedelivery.net/3B3AWuP94-S3Ro5eEac6JA/1796d3c1-dfb0-4555-b2bf-0ca4930e8f00/icon`,background:{light:`#D8E8FF`,dark:`#0E2447`},oAuthConfig:null},leadmagic:{name:`leadmagic`,label:`LeadMagic`,description:`Enrichment provider`,url:`https://leadmagic.io`,public:!0,hasManagedConnections:!0,allowsUserConnections:!0,connectionType:`api_key`,logoUrl:`https://imagedelivery.net/3B3AWuP94-S3Ro5eEac6JA/508cb23a-47d4-40ee-1645-b5a8bf994c00/icon`,background:{light:`#EBD8FF`,dark:`#2A1247`},oAuthConfig:null},builtwith:{name:`builtwith`,label:`BuiltWith`,description:`BuiltWith tracks over 2500 eCommerce technologies across over 26 million eCommerce websites.`,url:`https://builtwith.com`,public:!0,hasManagedConnections:!0,allowsUserConnections:!0,connectionType:`api_key`,logoUrl:`https://imagedelivery.net/3B3AWuP94-S3Ro5eEac6JA/e675cb72-6dc2-43c8-972e-0fc9c3b73c00/icon`,background:{light:`#FFF0D4`,dark:`#3D2806`},oAuthConfig:null},perplexity:{name:`perplexity`,label:`Perplexity`,description:`AI search company`,public:!1,url:`https://perplexity.com`,hasManagedConnections:!0,allowsUserConnections:!0,connectionType:`api_key`,logoUrl:`https://imagedelivery.net/3B3AWuP94-S3Ro5eEac6JA/d17d3ba0-5c9e-43d8-17ee-3e4a70404e00/icon`,background:{light:`#D3F1EE`,dark:`#0E3633`},oAuthConfig:null},serper:{name:`serper`,label:`Serper`,description:`The World's Fastest & Cheapest Google Search API`,url:`https://serper.dev/`,public:!1,hasManagedConnections:!0,allowsUserConnections:!0,connectionType:`api_key`,logoUrl:`https://imagedelivery.net/3B3AWuP94-S3Ro5eEac6JA/04e720cd-56ea-44d3-3a31-cfc516c6f800/icon`,background:{light:`#D8E6FF`,dark:`#0C2554`},oAuthConfig:null},icypeas:{name:`icypeas`,label:`Icypeas`,description:`A popular data catalog`,url:`https://www.icypeas.com/`,public:!0,hasManagedConnections:!0,allowsUserConnections:!0,connectionType:`api_key`,logoUrl:`https://imagedelivery.net/3B3AWuP94-S3Ro5eEac6JA/d635119e-08ae-40cb-78bc-34161d422400/icon`,background:{light:`#D8EFFF`,dark:`#0C2A4A`},oAuthConfig:null},prospeo:{name:`prospeo`,label:`Prospeo`,description:`Find anyone’s contact data.`,url:`https://prospeo.io/`,public:!0,hasManagedConnections:!0,allowsUserConnections:!0,connectionType:`api_key`,logoUrl:`https://imagedelivery.net/3B3AWuP94-S3Ro5eEac6JA/9446f572-d08c-4d48-a5a5-04747fe66000/icon`,background:{light:`#D6E2FF`,dark:`#0C2052`},oAuthConfig:null},gemini:{name:`gemini`,label:`Gemini`,description:`Google's AI service`,url:`https://gemini.google.com`,public:!0,hasManagedConnections:!0,allowsUserConnections:!0,connectionType:`api_key`,logoUrl:`https://imagedelivery.net/3B3AWuP94-S3Ro5eEac6JA/417de5dd-a8a8-4210-d7dc-6f40e54ece00/icon`,background:{light:`#DDE7FF`,dark:`#1A2C5C`},oAuthConfig:null},slack:{name:`slack`,label:`Slack`,description:`A modern business chat application.`,url:`https://slack.com`,public:!0,hasManagedConnections:!1,allowsUserConnections:!0,connectionType:`oauth_token`,logoUrl:`https://imagedelivery.net/3B3AWuP94-S3Ro5eEac6JA/676e823c-c926-4b0b-465c-121b9d1c3300/icon`,background:{light:`#F1E0FF`,dark:`#2A0E44`},oAuthConfig:{}},companyenrich:{name:`companyenrich`,label:`CompanyEnrich`,description:`A company enrichment service.`,url:`https://companyenrich.com`,public:!0,hasManagedConnections:!0,allowsUserConnections:!0,connectionType:`api_key`,logoUrl:`https://imagedelivery.net/3B3AWuP94-S3Ro5eEac6JA/e80b3a16-7b36-4733-bcbe-46f471d33100/icon`,background:{light:`#DCEEFF`,dark:`#0E2C4A`},oAuthConfig:{}},mixrank:{name:`mixrank`,label:`MixRank`,description:`Ultra-high-frequency technographic and people data for your data teams.`,url:`https://mixrank.com/`,hasManagedConnections:!0,allowsUserConnections:!1,connectionType:`api_key`,oAuthConfig:{},public:!0,logoUrl:`https://imagedelivery.net/3B3AWuP94-S3Ro5eEac6JA/a29f3095-b3f9-4b12-d21b-1c506ccd7200/icon`,background:{light:`#FFE5D4`,dark:`#3A1D08`}},clado:{name:`clado`,label:`Clado`,description:`A data provider deploying 10^5 AI agents to find contact information.`,public:!0,hasManagedConnections:!0,allowsUserConnections:!0,connectionType:`api_key`,url:`https://clado.ai`,logoUrl:`https://imagedelivery.net/3B3AWuP94-S3Ro5eEac6JA/fdf3d2d0-70be-45c3-2fe5-a8c5cac55a00/icon`,background:{light:`#E8E8EC`,dark:`#1A1A1F`},oAuthConfig:null},gmail:{name:`gmail`,label:`Gmail`,description:`Google's email service`,public:!0,hasManagedConnections:!1,allowsUserConnections:!0,connectionType:`oauth_token_bundle`,url:`https://mail.google.com`,logoUrl:`https://imagedelivery.net/3B3AWuP94-S3Ro5eEac6JA/8da8ab6b-7f7e-4c42-6abf-212ea537db00/icon`,background:{light:`#FFD8D8`,dark:`#45100F`},oAuthConfig:{}},resend:{name:`resend`,label:`Resend`,description:`An email platform built for developers.`,public:!0,hasManagedConnections:!1,allowsUserConnections:!0,url:`https://clado.ai`,connectionType:`api_key`,logoUrl:`https://imagedelivery.net/3B3AWuP94-S3Ro5eEac6JA/7c88f71b-8472-40f4-4bec-0e77eac30400/icon`,background:{light:`#EDEDEE`,dark:`#1A1A1C`},oAuthConfig:null},firecrawl:{name:`firecrawl`,label:`Firecrawl`,description:`Firecrawl is an API service that takes a URL, crawls it, and converts it into clean markdown. Firecrawl crawls all accessible subpages and gives you clean markdown for each. No sitemap required.`,public:!0,hasManagedConnections:!0,allowsUserConnections:!0,url:`https://www.firecrawl.dev`,connectionType:`api_key`,logoUrl:`https://imagedelivery.net/3B3AWuP94-S3Ro5eEac6JA/5c318569-7bf4-4276-a3f2-1f25530f7f00/icon`,background:{light:`#FFE5CC`,dark:`#3A1A05`},oAuthConfig:null},exa:{name:`exa`,label:`Exa`,description:`Exa is a search engine built for AI.`,public:!0,hasManagedConnections:!0,allowsUserConnections:!0,url:`https://exa.ai/`,connectionType:`api_key`,logoUrl:`https://imagedelivery.net/3B3AWuP94-S3Ro5eEac6JA/8ae69780-4506-4952-a90e-02e70b06af00/icon`,background:{light:`#D8DCFF`,dark:`#14154A`},oAuthConfig:null},openai:{name:`openai`,label:`OpenAI`,description:`Foundational AI company based out of San Francisco.`,public:!0,hasManagedConnections:!0,allowsUserConnections:!0,url:`https://openai.com/`,connectionType:`api_key`,logoUrl:`https://imagedelivery.net/3B3AWuP94-S3Ro5eEac6JA/7ac79c3a-bccb-4ed4-d6e5-7b300b2fd300/icon`,background:{light:`#D8EFE4`,dark:`#0C2A1C`},oAuthConfig:null},millionverifier:{name:`millionverifier`,label:`MillionVerifier`,description:`E-Mail validation service.`,public:!0,hasManagedConnections:!0,allowsUserConnections:!0,url:`https://www.millionverifier.com/`,connectionType:`api_key`,logoUrl:`https://imagedelivery.net/3B3AWuP94-S3Ro5eEac6JA/7a8bd9cb-efeb-492e-3f4c-311c9492b800/icon`,background:{light:`#D8F0DB`,dark:`#0E3215`},oAuthConfig:null},logodev:{name:`logodev`,label:`Logo.dev`,description:`Every company logo, one simple API.`,public:!0,hasManagedConnections:!0,allowsUserConnections:!0,url:`https://www.logo.dev/`,connectionType:`api_key`,logoUrl:`https://imagedelivery.net/3B3AWuP94-S3Ro5eEac6JA/1defa51b-5c01-4034-1030-60f68aa46400/icon`,background:{light:`#F4ECD4`,dark:`#2C2406`},oAuthConfig:null},crustdata:{name:`crustdata`,label:`Crustdata`,description:`Real-time company & people data`,public:!0,hasManagedConnections:!0,allowsUserConnections:!0,url:`https://crustdata.com/`,connectionType:`api_key`,logoUrl:`https://imagedelivery.net/3B3AWuP94-S3Ro5eEac6JA/fa05be24-d174-40f0-69c2-4fdb43c6be00/icon`,background:{light:`#FFE2D2`,dark:`#3C1A08`},oAuthConfig:null},amplemarket:{name:`amplemarket`,label:`Amplemarket`,description:`Sales data platform`,public:!0,hasManagedConnections:!0,allowsUserConnections:!0,url:`https://www.amplemarket.com`,connectionType:`api_key`,logoUrl:`https://imagedelivery.net/3B3AWuP94-S3Ro5eEac6JA/adecf16b-4187-409b-d77f-16fc07fc6100/icon`,background:{light:`#FFD8E1`,dark:`#45102A`},oAuthConfig:null},parallel:{name:`parallel`,label:`Parallel`,description:`Agentic web search & research APIs purpose-built for AI agents.`,public:!0,hasManagedConnections:!0,allowsUserConnections:!0,url:`https://parallel.ai`,connectionType:`api_key`,logoUrl:`https://imagedelivery.net/3B3AWuP94-S3Ro5eEac6JA/13d4ae54-9400-4577-8fbf-c96021fb0000/icon`,background:{light:`#E0E5FF`,dark:`#0F1A3D`},oAuthConfig:null},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}},Tr=[`if`,`elsif`,`else`,`endif`,`unless`,`endunless`,`for`,`endfor`,`break`,`continue`,`output`],Er=[`json`,`escape`,`escape_once`,`default`,`upcase`,`downcase`,`size`,`join`,`first`,`last`,`replace`,`truncate`,`strip`,`newline_to_br`,`url_encode`],Dr=/^[A-Z][A-Z0-9_]*$/,Or=/^[A-Z][A-Z0-9_]*$/,kr=/^[a-zA-Z_][a-zA-Z0-9_]*$/,Ar=`SECRETS`,jr=`CONSTANTS`,Mr=new Set(Tr),Nr=new Set(Er),Pr=e=>`{${e}}`;var Fr=class extends i{constructor(e){super(),this.values=e}liquidMethodMissing(e){let t=String(e);if(!Dr.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]}},Ir=class extends i{constructor(e){super(),this.values=e}liquidMethodMissing(e){let t=String(e);if(!Or.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 Lr(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(!kr.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 Rr(){let e=new a({strictVariables:!1,strictFilters:!0,jsTruthy:!0,greedy:!1,catchAllErrors:!1,ownPropertyOnly:!0});e.registerTag(`output`,{parse(e,t){let n=Lr(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(Pr(n.name))}});for(let t of Object.keys(e.tags))Mr.has(t)||delete e.tags[t];for(let t of Object.keys(e.filters))Nr.has(t)||delete e.filters[t];return e}let zr=null;function Br(){return zr||=Rr(),zr}async function Vr(e,t,n={}){let r=Br(),i=n.renderLimitMs??250,a={...t.inputs??{},[Ar]:new Fr(t.secrets??{}),[jr]:new Ir(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 Hr(e,t,n={}){let r=Br(),i=n.renderLimitMs??250,a={...t.inputs??{},[Ar]:new Fr(t.secrets??{}),[jr]:new Ir(t.constants??{})},o=r.parseAndRenderSync(e,a,{globals:{__outputAllowed:n.outputAllowed===!0},renderLimit:i});return String(o)}function Ur(e){return Br().parse(e)}function Wr(e){let t=Br().parse(e),n={scopeStack:[],guardStack:[],inputs:new Map,secrets:new Set,constants:new Set,outputs:[],forDepth:0};Gr(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 Gr(e,t){for(let n of e)Kr(n,t)}function Kr(e,t){let n=e;if(n.value&&typeof n.value==`object`&&`filters`in n.value&&`initial`in n.value){Zr(n.value,t,!1);return}if(typeof n.name==`string`){qr(n,t);return}}function qr(e,t){switch(e.name){case`for`:Jr(e,t);return;case`if`:case`unless`:Yr(e,t);return;case`output`:Xr(e,t);return;case`break`:case`continue`:return;default:throw Error(`Unhandled liquid tag in analyzer: ${e.name}`)}}function Jr(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&&Qr(e.collection,t,!1);let n=typeof e.variable==`string`?e.variable:null;n&&t.scopeStack.push(n),Gr(Array.isArray(e.templates)?e.templates:[],t),n&&t.scopeStack.pop(),Gr(Array.isArray(e.elseTemplates)?e.elseTemplates:[],t),--t.forDepth}function Yr(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=ti(i.initial)),a&&t.guardStack.push(a),i&&typeof i==`object`&&Zr(i,t,!1),Gr(r.templates,t),a&&t.guardStack.pop()}Gr(Array.isArray(e.elseTemplates)?e.elseTemplates:[],t)}function Xr(e,t){let n=e.outputDecl;if(!n){let t=e.token?.args;typeof t==`string`&&(n=Lr(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 Zr(e,t,n){let r=e.filters.some(e=>e.name===`default`),i=n||r;for(let n of e.initial.postfix)ni(n)&&ei(n,t,i);for(let n of e.filters)for(let e of n.args)$r(e,t)}function Qr(e,t,n){ni(e)&&ei(e,t,n)}function $r(e,t){if(Array.isArray(e)){let n=e[1];n&&Qr(n,t,!1)}else Qr(e,t,!1)}function ei(e,t,n){let r=e.props;if(r.length===0)return;let i=r[0];if(!i||!ri(i))return;let a=i.content;if(t.scopeStack.includes(a))return;if(a===`SECRETS`){let e=r[1];if(!e||!ri(e))throw Error(`Invalid SECRETS reference β€” expected SECRETS.KEY (got ${oi(r)}).`);let n=e.content;if(!Dr.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||!ri(e))throw Error(`Invalid CONSTANTS reference β€” expected CONSTANTS.KEY (got ${oi(r)}).`);let n=e.content;if(!Or.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 ti(e){if(e.postfix.length===1){let t=e.postfix[0];if(t&&ni(t)&&t.props.length===1){let e=t.props[0];if(e&&ri(e))return e.content}}if(e.postfix.length===3){let[t,n,r]=e.postfix;if(t&&n&&r&&ni(t)&&t.props.length===1){let e=t.props[0];if(e&&ri(e)&&ii(n)&&ai(r,[`==`,`!=`]))return e.content}}return null}function ni(e){return e.kind===o.PropertyAccess}function ri(e){return!!e&&typeof e==`object`&&e.kind===o.Word}function ii(e){if(e.kind!==o.Literal)return!1;let t=e.literal;return t===`nil`||t===`null`}function ai(e,t){return e.kind===o.Operator?t.includes(e.operator):!1}function oi(e){let t=[];for(let n of e)n&&ri(n)?t.push(n.content):t.push(`?`);return t.join(`.`)}function si(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:On.parse(n),id:r}}catch{throw Error(`Connection string ${e}: Failed to parse provider name.`)}}function ci(e){return`${e.provider}_${e.id}`}const li=new s;function ui(e){return li.validateSchema(e)}function di(e){let t=!1;return c(e,{},e=>{e.type&&[`string`,`number`,`boolean`,`integer`,`null`].includes(e.type)&&(t=!0),e.type===`object`&&e.properties&&Object.keys(e.properties).length>0&&(t=!0),e.type===`array`&&e.items&&(t=!0)}),!t}const fi=[`gemini-flash-latest`,`openai-gpt-latest`,`openai-gpt-mini-latest`],pi={"gemini-flash-latest":{provider:`gemini`,rateLimitOperation:`gemini_35_flash`,rateLimitRatio:1,allowManagedConnection:!0,defaultCredits:.2,billingMode:`always`},"openai-gpt-latest":{provider:`openai`,rateLimitOperation:`openai_gpt-5`,rateLimitRatio:1,allowManagedConnection:!0,defaultCredits:.5,billingMode:`always`},"openai-gpt-mini-latest":{provider:`openai`,rateLimitOperation:`openai_gpt-5-mini`,rateLimitRatio:1,allowManagedConnection:!0,defaultCredits:.3,billingMode:`always`}};function mi(e,t){let n={};for(let r of fi){let i=pi[r],a=`${e}-${r}`;n[a]={credits:{default:t?.[r]??i.defaultCredits},allowManagedConnection:!0,provider:i.provider,mode:i.billingMode}}return n}function hi(e,t){return`${t}-${e}`}function gi(e){let t=pi[e];if(!t)throw Error(`Unknown AI model: ${e}`);return[t.provider]}function _i(e){let t=pi[e];if(!t)throw Error(`Unknown AI model: ${e}`);return[{provider:t.provider,rateLimitRatio:t.rateLimitRatio,rateLimitOperation:t.rateLimitOperation,allowManagedConnection:t.allowManagedConnection}]}function vi(){let e=new Set;for(let t of fi)e.add(pi[t].provider);return[...e]}function yi(e){if(!e?.requires)return;let t=[];e.requires.connection&&t.push(Sn(e.requires.connection));for(let n of e.requires.fields??[])t.push(Cn(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]:wn(...t)}function bi(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=En(e,n,t),s=vn(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 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 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().nullable(),boolean_input:r.boolean(),nullable_boolean_input:r.boolean().nullable(),select_input:r.string(),multi_select_input:r.array(r.string()),async_multi_select_input:r.array(r.string()),int_input:r.coerce.number().int().nullable(),number_input:r.coerce.number().optional(),min_max_int_input:r.object({min:r.number().nullable().default(null),max:r.number().nullable().default(null)}),include_exclude_input:r.object({include:r.array(r.string()).default([]),exclude:r.array(r.string()).default([])}),include_exclude_select_input:r.object({include:r.array(r.string()).default([]),exclude:r.array(r.string()).default([])}),async_include_exclude_select_input:r.object({include:r.array(r.string()).default([]),exclude:r.array(r.string()).default([])}),exact_range_input:r.record(r.string(),r.number().nullable()),range_input:r.object({from:r.number().nullable(),to:r.number().nullable()}),date_range_input:r.record(r.string(),r.string()),multi_create_input:r.array(r.string()),ordered_multi_create_input:r.array(r.string()),tagged_ordered_multi_create_input:r.array(r.string()),key_value_list_input:r.array(r.object({key:r.string(),value:r.string()})),connector_input:r.object({connections:r.array(r.object({type:r.string(),connection:r.string()}))}).nullable(),providers_input:r.array(r.object({provider:r.string()})),json_extraction_input:r.record(r.string(),r.unknown()),pipes_run_if_input:r.record(r.string(),r.unknown()).nullable(),fields_select_input:r.array(r.object({field_name:r.string()})),output_field_input:r.object({alias:r.string(),enabled:r.boolean()}),json_schema_input:r.record(r.string(),r.unknown()),cursor_pagination_metadata:r.object({limit:r.number()}),context_select_input:r.union([r.string(),r.array(r.string())])},xi=(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},Si=(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},Ci=/^\s*\{\{\s*[a-zA-Z_][a-zA-Z0-9_.]*(?:\s*\|\s*[^}]+)?\s*\}\}\s*$/,wi=/\{\{|\{%/,Ti=(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=Ci.test(e),i=wi.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===v){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},Ei=(e,t)=>{let n=b.key_value_list_input;e.maxItems&&(n=n.max(e.maxItems)),n=n.check(e=>{let t=e;(t.value??[]).forEach((e,n)=>{ea({value:e.key,issues:t.issues},!1,[n,`key`]),ea({value:e.value,issues:t.issues},!1,[n,`value`])})}),n=n.default([]);let r={type:`key_value_list_input`,...e},i=e=>{let t=e.validationContext,n=t?Object.entries(t.fieldDefinitions).filter(([t,n])=>n.added_by.config_hash!==e.hash).map(([e,t])=>({...t,resolvedName:e})):[];return{...r,inputFields:n}};return i.staticMeta={...r,inputFields:[]},t.add(n,i),n},Di=(e,t)=>{let n=e.maxItems||200,r=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)`})}),i=e.required?r:r.default({include:[],exclude:[]});return e.description&&i.describe(e.description),t.add(i,{type:`include_exclude_input`,...e}),i},Oi=()=>{let e=fr;return v.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}=bi(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},ki=(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:wr[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},Ai=(e,t)=>{let n=e.maxItems||200,r=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)`})}),i=e.required?r:r.default({include:[],exclude:[]});return e.description&&i.describe(e.description),t.add(i,{type:`include_exclude_select_input`,...e}),i},ji=(e,t)=>{let n=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`}`})});return e.description&&n.describe(e.description),t.add(n,{type:`exact_range_input`,...e}),n},Mi=(e,t)=>{let n=r.object({from:r.number().optional().nullable(),to:r.number().optional().nullable()}).default({from:null,to:null}),i=n;return(e.min!==void 0||e.max!==void 0)&&(i=n.check(t=>{Object.values(t.value).filter(e=>e!=null).every(t=>(e?.min==null||t>=e.min)&&(e.max==null||t<=e.max))||t.issues.push({code:`custom`,input:t.value,message:`Values must be between ${e.min??`any`} and ${e.max??`any`}`}),t.value.from&&t.value.to&&t.value.from>t.value.to&&t.issues.push({code:`custom`,input:t.value,message:`'From' value must be smaller than 'to' value.`})})),e.description&&i.describe(e.description),t.add(i,{type:`range_input`,...e}),i},Ni=(e,t)=>{let n=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`})});return e.description&&n.describe(e.description),t.add(n,{type:`date_range_input`,...e}),n},Pi=(e,t)=>{let n=b.boolean_input.default(e.defaultValue);return e.description&&n.describe(e.description),t.add(n,{...e,required:!1,type:`boolean_input`}),n},Fi=(e,t)=>{let n=b.nullable_boolean_input.default(e.defaultValue);return e.description&&n.describe(e.description),t.add(n,{...e,required:!1,type:`nullable_boolean_input`,defaultValue:e.defaultValue}),n},Ii=(e,t)=>{let n=b.text_input;return e.minLength&&(n=n.min(e.minLength)),e.maxLength&&(n=n.max(e.maxLength)),e.pattern&&(n=n.regex(new RegExp(e.pattern))),e.minLength||(n=n.nullable()),e.description&&n.describe(e.description),t.add(n,{type:`text_input`,...e}),n},Li=(e,t)=>{let n=b.textarea_input;return e.minLength&&(n=n.min(e.minLength)),e.maxLength&&(n=n.max(e.maxLength)),e.description&&n.describe(e.description),t.add(n,{type:`textarea_input`,...e}),n},Ri=(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})},zi=(e,t)=>{let n=b.int_input.optional().check(t=>{if(t.value==null){e.required!==!1&&t.issues.push({code:`custom`,input:t.value,message:`Required`});return}e.min!=null&&t.value<e.min&&t.issues.push({code:`custom`,input:t.value,message:`Value must be at least ${e.min}`}),e.max!=null&&t.value>e.max&&t.issues.push({code:`custom`,input:t.value,message:`Value must be at most ${e.max}`})});return e.description&&n.describe(e.description),t.add(n,{...e,type:`int_input`}),n},Bi=(e,t)=>{let n=b.number_input.check(t=>{if(t.value===void 0){e.required&&t.issues.push({code:`custom`,input:t.value,message:`Required`});return}e.min!=null&&t.value<e.min&&t.issues.push({code:`custom`,input:t.value,message:`Value must be at least ${e.min}`}),e.max!=null&&t.value>e.max&&t.issues.push({code:`custom`,input:t.value,message:`Value must be at most ${e.max}`})});return e.description&&n.describe(e.description),t.add(n,{...e,type:`number_input`}),n},Vi=(e,t)=>{let n=b.json_schema_input,r=e.required?n:n.optional();return r.check(e=>{ui(e.value)||e.issues.push({code:`custom`,input:e.value,message:`JSON schema is invalid. Check your input.`})}),e.allowEmpty||(r=r.check(e=>{di(e.value)&&e.issues.push({code:`custom`,message:`JSON Schema must define a meaningful value. Can not be an empty object or array.`,input:e.value})})),t.add(r,{...e,type:`json_schema_input`}),r},Hi=(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=e.defaultValue?i.default(e.defaultValue):i;return e.description&&a.describe(e.description),t.add(a,{type:`select_input`,...e}),a},Ui=({billableOperations:e,...t},n)=>{let i=r.enum(fi).default(t.defaultValue||`gemini-flash-latest`);return n.add(i,{type:`select_input`,options:fi.map(t=>{let n=e[Object.keys(e).find(e=>e.endsWith(`-${t}`))];if(!n)throw Error(`Unable to find billing info for model ${t}`);return{label:t,value:t,widgets:{logo:{url:wr[pi[t].provider].logoUrl},pricing:{credits:n.credits.default}}}}),required:!0,description:``,label:`AI Models`,...t}),i},Wi=(e,t)=>{let n=e.options.map(e=>e.value),i=new Set(n),a=r.array(r.enum(Array.from(i))).check(t=>{e.required&&t.value.length===0&&t.issues.push({code:`custom`,input:t.value,message:`Required`}),t.value.forEach((e,r)=>{i.has(e)||t.issues.push({code:`custom`,input:e,path:[r],message:`Must be one of: ${n.join(`, `)}`})})}),o=e.required?a:a.default([]);return t.add(o,{type:`multi_select_input`,...e}),o},Gi=(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??yi(e.optionsDef);return t.add(r,{type:`context_select_input`,...e,enabledIf:i,options:[]}),r},Ki=(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}`})}}}),r=e.required?n:n.default({min:null,max:null});return t.add(r,{type:`min_max_int_input`,...e}),r},qi=(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`})}),r=e.required?n:n.default([]);return t.add(r,{type:`async_multi_select_input`,...e}),r},Ji=(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)`})}),i=e.required?r:r.default({include:[],exclude:[]});return t.add(i,{type:`async_include_exclude_select_input`,...e}),i};function Yi(e,t){let n=e.reduce((e,t)=>{let n=t.groupPath||``;return e[n]??=[],e[n].push(t),e},{});return Object.entries(n).map(([e,n])=>({type:`group`,groupPath:e,description:t[e]?.description,label:t[e]?.label,iconKey:t[e]?.iconKey,defaultExpand:!!t[e]?.defaultExpand,order:t[e]?.order??99,fields:n.sort((e,t)=>(e.order||0)-(t.order||0))})).sort((e,t)=>e.order-t.order)}const x=()=>{let e=Cr.nullish();return v.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},Xi={pipe_io:{type:`form_section`,label:`In- and outputs`,description:`Configure output fields and reassign inputs.`,path:`config.pipe_io`},pagination:{type:`form_section`,path:`pagination`},"config.filters":{type:`form_section`,label:`Filters`,path:`config.filters`,description:`Narrow down the search output`},general:{type:`form_section`,path:`general`,label:`Behavior`}},Zi={general:1,pagination:2,"config.filters":3,pipe_io:10};function Qi({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 $i=({schema:e,groupPathMatch:t,extractFromSchema:n,sectionOrder:i=Zi,sectionMap:a=Xi,store:o,formResolvers:s})=>{let c={};function l(e){let i=n(e);if(i){c[i.sectionKey]??={type:`section`,groups:[],metadata:a[i.sectionKey]};let e=c[i.sectionKey],n=e?.groups.find(e=>e.groupPath===i.groupPath);if(n){let e=Qi({fieldMetadata:i,store:o,formResolvers:s});e&&n.fields.push(e)}else{let n=t[i.groupPath],r=Qi({fieldMetadata:i,store:o,formResolvers:s});r&&e.groups.push({groupPath:i.groupPath,fields:[r],type:`group`,label:n?.label,defaultExpand:!!n?.defaultExpand,description:n?.description,iconKey:n?.iconKey,order:n?.order})}}if(typeof e==`object`&&`unwrap`in e&&typeof e.unwrap==`function`&&l(e.unwrap()),e instanceof r.ZodObject)for(let t of Object.values(e.shape))l(t)}l(e);let u=Object.values(c);return u.forEach(e=>{e.groups.sort((e,t)=>(e.order??99)-(t.order??99))}),[...u].filter(e=>e.groups.length!==0).sort((e,t)=>(i?.[e.metadata?.path||``]??99)-(i?.[t.metadata?.path||``]??99))};function ea(e,t,n=[]){let r=e.value;if(!(typeof r!=`string`||!r))try{let i=Wr(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 ta=e=>{let t=(e.supportedTags??[]).includes(`output`),n=r.object({template:r.string().min(10).check(e=>ea(e,t,[])).describe(e.description||'Liquid prompt with `{{ field }}` input refs, `{{ field | default: "" }}` for optional refs, `{{ SECRETS.KEY }}` for secrets, `{{ CONSTANTS.KEY }}` for plaintext constants, and `{% output name, type: "string", description: "..." %}` to declare model outputs. Supports `{% if %}` / `{% for %}` control flow. Example: "Summarize {{ name }}. {% output summary, type: \\"string\\", description: \\"One-line summary\\" %}"'),json_schemas:r.record(r.string().min(1,`Schema name cannot be empty`),r.record(r.string(),r.any())).optional().describe(`JSON schemas for output fields with type="json". Keys are referenced via schema="<name>" in output tags.`)});return v.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},na=e=>{let t=r.string();e.required&&(t=t.min(1));let n=t.check(e=>ea(e,!1,[])).describe(e.description||'Liquid template with `{{ field }}` input refs, `{{ field | default: "" }}` for optional refs, `{{ SECRETS.KEY }}` for secrets, `{{ CONSTANTS.KEY }}` for plaintext constants, and `{% if %}` / `{% for %}` control flow. Example: "Write to {{ name }} about {{ topic | default: \\"the project\\" }}."');return v.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))),e.minLength||(n=n.nullable()),n=n.check(e=>ea(e,!1,[])),n=n.describe(e.description||t);let i=e.optionsDef?{...e.optionsDef,enabledIf:e.optionsDef.enabledIf??yi(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:[]},v.add(n,o),n};function ra(e,t){v.add(e,({userConnections:e,pipeEntry:n})=>{let r=new Set(n.allowedUserConnectionProviders),i=e.filter(e=>r.has(e.provider));return{label:``,description:``,groupPath:`connector`,path:`connector`,connectorMode:t,type:`connector_input`,sectionKey:`pipe_io`,supportsUserConnections:r.size>0,filteredConnections:i.map(e=>({provider:e.provider,connection:ci({id:e.public_id,provider:e.provider})}))}})}const ia=()=>{let e=vr;return ra(e,`required`),e},C=()=>{let e=_;return ra(e,`optional`),e},w=()=>{let e=yr;return ra(e,`disabled`),e};function aa(e,t){y.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:``,description:``,groupPath:`connector`,path:`connector`,connectorMode:t,type:`connector_input`,sectionKey:`pipe_io`,supportsUserConnections:i.size>0,filteredConnections:a.map(e=>({provider:e.provider,connection:ci({id:e.public_id,provider:e.provider})}))}})}const oa=()=>{let e=vr;return aa(e,`required`),e},sa=()=>{let e=_;return aa(e,`optional`),e};function ca(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 T=e=>{let t=r.object({alias:r.string().describe(`Override field name mapping. Leave empty to use default.`)});return v.add(t,t=>{let n=t.validationContext;return{type:`select_input`,required:!1,sectionKey:`pipe_io`,defaultValue:void 0,placeholder:e.fieldName,options:ca(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:``})},E=e=>ki(e,v),la=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([]),v.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},ua=e=>Di(e,v),da=e=>xi(e,v),fa=e=>Si(e,v),pa=e=>Ti(e,v),ma=e=>Ei(e,v),ha=e=>Ai(e,v),ga=e=>Ji(e,v),_a=e=>ji(e,v),va=e=>Ni(e,v),D=e=>Pi(e,v),O=e=>Ri(e,v),ya=e=>Ii(e,v),ba=e=>Li(e,v),xa=e=>Hi(e,v),Sa=e=>Ui(e,v),Ca=e=>Wi(e,v),wa=e=>zi(e,v),Ta=e=>Bi(e,v),Ea=e=>Vi(e,v),Da=e=>Gi(e,v),k=e=>xi(e,y),Oa=e=>Si(e,y),ka=e=>Ki(e,y),A=e=>Di(e,y),j=e=>Ai(e,y),Aa=e=>ji(e,y),ja=e=>Mi(e,y),Ma=e=>Ni(e,y),Na=e=>Pi(e,y),Pa=e=>Fi(e,y),M=e=>Ri(e,y,`pipe_io`),Fa=e=>Ii(e,y),Ia=e=>Li(e,y),La=e=>Hi(e,y),Ra=e=>Gi(e,y),N=e=>Wi(e,y),P=e=>qi(e,y),F=e=>Ji(e,y),I=e=>zi(e,y),za=e=>Bi(e,y),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 Ba(e,t){if(!e)return t;let n={...e};for(let[e,r]of Object.entries(t))n[e]===void 0?n[e]=r:n[e]!==null&&typeof n[e]==`object`&&!Array.isArray(n[e])&&typeof r==`object`&&r&&!Array.isArray(r)&&(n[e]=Ba(n[e],r));return n}const z={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 ❌`},Va=e=>typeof e.kind==`string`,Ha=e=>Va(e)?e:{kind:`field`,field:e},B=e=>({kind:`field`,field:e}),Ua=(...e)=>({kind:`all`,of:e.map(Ha)}),V=(...e)=>({kind:`any`,of:e.map(Ha)}),Wa=e=>({kind:`optional`,field:e});function Ga(e,t){switch(e.kind){case`optional`:return!0;case`field`:return t.has(e.field.resolvedName);case`all`:return e.of.every(e=>Ga(e,t));case`any`:return e.of.some(e=>Ga(e,t))}}function Ka(e){switch(e.kind){case`field`:return[{field:e.field,required:!0}];case`optional`:return[{field:e.field,required:!1}];case`all`:case`any`:return e.of.flatMap(Ka)}}function qa(e,t){let n=Ja(e,t);return n.ok?{valid:!0,failedPipeInputField:null,failedRecordField:null}:{valid:!1,failedPipeInputField:n.field,failedRecordField:n.recordField}}function Ja(e,t){switch(e.kind){case`optional`:return{ok:!0};case`field`:{let n=t.fields[e.field.resolvedName];if(!n)throw Error(`Record field does not exist ${e.field.name} for requirement.`);return n.status===`completed`||n.status===`queued`?{ok:!0}:{ok:!1,field:e.field,recordField:n}}case`all`:for(let n of e.of){let e=Ja(n,t);if(!e.ok)return e}return{ok:!0};case`any`:{let n=null,r=!1;for(let i of e.of)try{let e=Ja(i,t);if(r=!0,e.ok)return{ok:!0};n=e}catch{}return r?n:{ok:!0}}}}function Ya(e){if(typeof e!=`object`||!e)return e;if(Array.isArray(e))return e.map(Ya).filter(e=>!Wt(e));let t={};for(let[n,r]of Object.entries(e)){let e=Ya(r);Wt(e)||(t[n]=e)}return t}const Xa=await l();var Za=class e{static hashObject(t){if(!Xa)throw Error(`HashAPI not initialized`);let{h64ToString:n}=Xa,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 Qa(e,t){let n={pipeId:e,config:Ya(t)};return Za.hashObject(n)}function $a(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:Za.hashObject(Ya(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[]}catalogOutput(e,{isPrimaryOutput:t=!1,resolveFormat:n,resolveType:r}={resolveType:void 0,resolveFormat:void 0,isPrimaryOutput:!1}){return{name:e.name,enabled:!!this.payload.config?.output_fields?.[e.name].enabled,type:r||e.type,format:n||e.format,resolvedName:this.payload.config?.output_fields?.[e.name]?.alias||e.name,description:e.description,jsonMeta:e.jsonMeta,label:e.label,isCatalogFIeld:!0,isPrimaryOutput:t}}getOutputFields(){let e={};for(let[t,n]of Object.entries(this.getRawOutputFields()))n.enabled&&(e[t]=n);return e}get inputFields(){let e={};for(let{field:t}of Ka(this.getInputRequirement()))e[t.name]=t;return e}getConfigHashKey(){return Qa(this.payload.pipe_id,this.payload.config||{})}getInputHashKey(e){return $a(e,this.inputFields)}};function eo(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 to(e){return Ka(e).map(({field:e})=>e)}function no({recordField:e,value:t,resolvedBy:n,widgets:r}){return e.value=t,e.status=`completed`,e.resolved_by=n,e.widgets=r,e}function ro({recordField:e}){return e.status=`pending`,e.resolved_by=null,e.value=null,e}function io({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 ao(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 oo(e,t){return e.value=null,e.status=`skipped`,e.resolved_by=null,e.reason=t,e.widgets={},e}function so(e){return e.value=null,e.status=`processing`,e.resolved_by=null,e.widgets={},e}function U(e){return e.split(`@`)[0]}function W(e){return`/docs/pipe-catalog/${U(e)}/${e.split(`@`)[1]}`}function G(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 co=`company:domain:workemail@1`,lo=g(`company_domain`),uo=g(`work_email`),fo=r.object({pipe_id:r.literal(co),run_if:x(),connector:w(),config:r.object({input_fields:R(r.object({[uo.name]:T({fieldName:uo.name})})),output_fields:L(r.object({[lo.name]:O({fieldName:lo.name})}))}).optional()}),po=e=>B(G(uo,e)),mo={"company-domain-workemail-v1-pipe0":{credits:{default:0},allowManagedConnection:!0,mode:`always`,provider:`pipe0`}},ho=class extends H{pipeId=co;payload;payloadSchema=fo;billableOperations=mo;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[`company-domain-workemail-v1-pipe0`]}getInputRequirement(){return po(this.payload.config)}getRawOutputFields(){return{[lo.name]:this.catalogOutput(lo)}}getConnectionsRequirements(){return[{provider:`pipe0`,rateLimitRatio:1,rateLimitOperation:`pipe0_logic`,allowManagedConnection:!0}]}},go=fo,_o={pipeId:co,basePipe:U(co),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:[z.EMAIL,z.WORK_EMAIL,z.WEBSITE],docPath:W(co),allowedUserConnectionProviders:[],managedProviders:[`pipe0`],deprecatedProviders:[],billableOperations:mo,defaultInputRequirement:po(null),defaultPayload:{pipe_id:co,connector:null,run_if:null,config:{input_fields:{[uo.name]:{alias:``}},output_fields:{[lo.name]:{alias:``,enabled:!0}}}}},vo=`company:funding:leadmagic@2`,yo=g(`company_name`),bo=g(`company_domain`),xo=g(`funding_history`),So=g(`funding_total_usd`),Co=g(`leadmagic_competitor_list`),wo=g(`leadmagic_acquisition_history`),To=g(`leadmagic_company_news_list`),Eo=r.object({pipe_id:r.literal(vo),connector:C(),run_if:x(),config:r.object({input_fields:R(r.object({[yo.name]:T({fieldName:yo.name}),[bo.name]:T({fieldName:bo.name})})),output_fields:L(r.object({[xo.name]:O({fieldName:xo.name}),[So.name]:O({fieldName:So.name}),[Co.name]:O({fieldName:Co.name}),[wo.name]:O({fieldName:wo.name}),[To.name]:O({fieldName:To.name})}))}).optional()}),Do=e=>V(G(yo,e),G(bo,e)),Oo={"company-funding-leadmagic-v2-leadmagic":{provider:`leadmagic`,allowManagedConnection:!0,credits:{default:2},mode:`onSuccess`}},ko=class extends H{pipeId=vo;payload;payloadSchema=Eo;billableOperations=Oo;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`leadmagic`]}estimateBillableOperations(){return[`company-funding-leadmagic-v2-leadmagic`]}getInputRequirement(){return Do(this.payload.config)}getRawOutputFields(){return{[xo.name]:this.catalogOutput(xo),[So.name]:this.catalogOutput(So),[wo.name]:this.catalogOutput(wo),[To.name]:this.catalogOutput(To),[Co.name]:this.catalogOutput(Co)}}getConnectionsRequirements(){return[{provider:`leadmagic`,rateLimitRatio:1,rateLimitOperation:`leadmagic_company_funding`,allowManagedConnection:!0}]}},Ao=Eo,jo={pipeId:vo,basePipe:U(vo),label:`Funding history`,executionMode:`single`,categories:[`company_data`],lifecycle:null,description:`Information on funding rounds, acquisition, competitors, and investors.`,tags:[z.FINANCIAL_DATA],docPath:W(vo),billableOperations:Oo,inputFieldMode:`static`,outputFieldMode:`static`,allowedUserConnectionProviders:[`leadmagic`],managedProviders:[`leadmagic`],deprecatedProviders:[],defaultInputRequirement:Do(null),defaultPayload:{pipe_id:vo,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:``}}}}},Mo=g(`company_name`),No=g(`company_profile_url`),Po=g(`company_domain`),Fo=g(`cleaned_company_name`),Io=`company:identity@3`,Lo=r.object({pipe_id:r.literal(Io),run_if:x(),connector:w(),config:r.object({input_fields:R(r.object({[Mo.name]:T({fieldName:Mo.name})})),output_fields:L(r.object({[No.name]:O({fieldName:No.name}),[Fo.name]:O({fieldName:Fo.name}),[Po.name]:O({fieldName:Po.name})}))}).optional()}),Ro=e=>B(G(Mo,e)),zo={"company-identity-v3-pipe0":{allowManagedConnection:!0,credits:{default:.3,level1:{credits:.2,weight:1}},mode:`always`,provider:`pipe0`}},Bo=class extends H{pipeId=Io;payload;payloadSchema=Lo;billableOperations=zo;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[`company-identity-v3-pipe0`]}getInputRequirement(){return Ro(this.payload.config)}getRawOutputFields(){return{[No.name]:this.catalogOutput(No),[Po.name]:this.catalogOutput(Po),[Fo.name]:this.catalogOutput(Fo)}}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}]}},Vo=Lo,Ho={pipeId:Io,inputFieldMode:`static`,outputFieldMode:`static`,basePipe:U(Io),label:`Company identity`,executionMode:`mix`,categories:[`company_data`],lifecycle:null,description:`Find any company's website URL, LinkedIn profile URL, and cleaned name.`,tags:[z.WEBSITE,z.LINKEDIN],docPath:W(Io),billableOperations:zo,allowedUserConnectionProviders:[],managedProviders:[`pipe0`],deprecatedProviders:[],defaultInputRequirement:Ro(null),defaultPayload:{pipe_id:Io,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}}}}},Uo=g(`company_domain`),Wo=g(`company_name`),Go=g(`crustdata_company_identity_matches`),Ko=`company:identity:crustdata@1`,qo=r.object({pipe_id:r.literal(Ko),run_if:x(),connector:C(),config:r.object({input_fields:R(r.object({[Uo.name]:T({fieldName:Uo.name}),[Wo.name]:T({fieldName:Wo.name})})),output_fields:L(r.object({[Go.name]:O({fieldName:Go.name})}))}).optional()}),Jo=e=>V(G(Uo,e),G(Wo,e)),Yo={"company-identity-crustdata-v1-crustdata":{allowManagedConnection:!0,credits:{default:.001},mode:`onSuccess`,provider:`crustdata`}},Xo=class extends H{pipeId=Ko;payload;payloadSchema=qo;billableOperations=Yo;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`crustdata`]}estimateBillableOperations(){return[`company-identity-crustdata-v1-crustdata`]}getInputRequirement(){return Jo(this.payload.config)}getRawOutputFields(){return{[Go.name]:this.catalogOutput(Go)}}getConnectionsRequirements(){return[{provider:`crustdata`,rateLimitRatio:1,rateLimitOperation:`crustdata_company_identify`,allowManagedConnection:!0}]}},Zo=qo,Qo={pipeId:Ko,inputFieldMode:`static`,outputFieldMode:`static`,basePipe:U(Ko),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:[z.WEBSITE,z.LINKEDIN],docPath:W(Ko),billableOperations:Yo,allowedUserConnectionProviders:[`crustdata`],managedProviders:[`crustdata`],deprecatedProviders:[],defaultInputRequirement:Jo(null),defaultPayload:{pipe_id:Ko,connector:null,run_if:null,config:{input_fields:{company_domain:{alias:``},company_name:{alias:``}},output_fields:{crustdata_company_identity_matches:{alias:``,enabled:!0}}}}},$o=g(`company_domain`),es=g(`companyenrich_matches`),ts=`company:lookalikes:companyenrich@2`,ns=r.object({pipe_id:r.literal(ts),run_if:x(),connector:C(),config:r.object({limit:wa({groupPath:`config.general`,max:50,min:1,path:`config.limit`,required:!0,sectionKey:`general`,info:`Define how many lookalikes you want to find.`,label:`Limit`}),input_fields:R(r.object({[$o.name]:T({fieldName:$o.name})})),output_fields:L(r.object({[es.name]:O({fieldName:es.name})}))}).optional()}),rs=e=>B(G($o,e)),is={"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`}},as=class extends H{pipeId=ts;payload;payloadSchema=ns;billableOperations=is;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`companyenrich`]}estimateBillableOperations(){return[,,,,,].fill(`lookalikes-companyenrich`)}getInputRequirement(){return rs(this.payload.config)}getRawOutputFields(){return{[es.name]:this.catalogOutput(es)}}getConnectionsRequirements(){return[{provider:`companyenrich`,rateLimitRatio:1,rateLimitOperation:`company_enrich_generic`,allowManagedConnection:!0}]}},os=ns,ss={pipeId:ts,inputFieldMode:`static`,outputFieldMode:`static`,basePipe:U(ts),label:`Find company lookalikes`,executionMode:`single`,categories:[`company_data`],lifecycle:null,description:`Find companies similar to the company you provide as input.`,tags:[z.COMPANY_PROFILES],docPath:W(ts),billableOperations:is,allowedUserConnectionProviders:[`companyenrich`],managedProviders:[`companyenrich`],deprecatedProviders:[],defaultInputRequirement:rs(null),defaultPayload:{pipe_id:ts,connector:null,run_if:null,config:{limit:20,input_fields:{company_domain:{alias:``}},output_fields:{companyenrich_matches:{alias:``,enabled:!0}}}}},cs=g(`company_domain`),ls=g(`crustdata_companyenrich_match`),us=`company:match:crustdata@2`,ds=r.object({pipe_id:r.literal(us),run_if:x(),connector:C(),config:r.object({input_fields:R(r.object({[cs.name]:T({fieldName:cs.name})})),output_fields:L(r.object({[ls.name]:O({fieldName:ls.name})}))}).optional()}),fs=e=>B(G(cs,e)),ps={"company-match-crustdata-v2-crustdata":{allowManagedConnection:!0,credits:{default:2.5,level1:{credits:1.2,weight:1}},mode:`onSuccess`,provider:`crustdata`}},ms=class extends H{pipeId=us;payload;payloadSchema=ds;billableOperations=ps;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`crustdata`]}estimateBillableOperations(){return[`company-match-crustdata-v2-crustdata`]}getInputRequirement(){return fs(this.payload.config)}getRawOutputFields(){return{[ls.name]:this.catalogOutput(ls)}}getConnectionsRequirements(){return[{provider:`crustdata`,rateLimitRatio:1,rateLimitOperation:`crustdata_company_enrich`,allowManagedConnection:!0}]}},hs=ds,gs={pipeId:us,inputFieldMode:`static`,outputFieldMode:`static`,basePipe:U(us),label:`Company match`,executionMode:`single`,categories:[`company_data`],lifecycle:null,description:`Company data like headcount distribution, LinkedIn URLs etc. via the Crustdata API.`,tags:[z.WEBSITE,z.LINKEDIN],docPath:W(us),billableOperations:ps,allowedUserConnectionProviders:[`crustdata`],managedProviders:[`crustdata`],deprecatedProviders:[],defaultInputRequirement:fs(null),defaultPayload:{pipe_id:us,connector:null,run_if:null,config:{input_fields:{company_domain:{alias:``}},output_fields:{crustdata_companyenrich_match:{alias:``,enabled:!0}}}}},_s=g(`company_domain`),vs=g(`company_name`),ys=g(`company_profile_url`),bs=g(`logodev_describe_match`),xs=g(`logo_url`),Ss=`company:match:logodev@2`,Cs=r.object({pipe_id:r.literal(Ss),run_if:x(),connector:C(),config:r.object({input_fields:R(r.object({[_s.name]:T({fieldName:_s.name})})),output_fields:L(r.object({[ys.name]:O({fieldName:ys.name}),[xs.name]:O({fieldName:xs.name}),[vs.name]:O({fieldName:vs.name}),[bs.name]:O({fieldName:bs.name})}))}).optional()}),ws=e=>B(G(_s,e)),Ts={"company-match-logodev-v2-logodev":{allowManagedConnection:!0,credits:{default:.1},mode:`onSuccess`,provider:`logodev`}},Es=class extends H{pipeId=Ss;payload;payloadSchema=Cs;billableOperations=Ts;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`logodev`]}estimateBillableOperations(){return[`company-match-logodev-v2-logodev`]}getInputRequirement(){return ws(this.payload.config)}getRawOutputFields(){return{[ys.name]:this.catalogOutput(ys),[vs.name]:this.catalogOutput(vs),[xs.name]:this.catalogOutput(xs),[bs.name]:this.catalogOutput(bs)}}getConnectionsRequirements(){return[{provider:`logodev`,rateLimitRatio:1,rateLimitOperation:`logodev_describe`,allowManagedConnection:!0}]}},Ds=Cs,Os={pipeId:Ss,inputFieldMode:`static`,outputFieldMode:`static`,basePipe:U(Ss),label:`Company match`,executionMode:`single`,categories:[`company_data`],lifecycle:null,description:`Find brand data like logos, colors, and social links via the Logo.dev API.`,tags:[z.WEBSITE,z.LINKEDIN],docPath:W(Ss),billableOperations:Ts,allowedUserConnectionProviders:[`logodev`],managedProviders:[`logodev`],deprecatedProviders:[],defaultInputRequirement:ws(null),defaultPayload:{pipe_id:Ss,connector:null,run_if:null,config:{input_fields:{company_domain:{alias:``}},output_fields:{company_profile_url:{alias:``,enabled:!0},logo_url:{alias:``,enabled:!0},logodev_describe_match:{alias:``,enabled:!0},company_name:{alias:``,enabled:!1}}}}},ks=`company:newssummary:domain@1`,As=g(`company_news_summary`),js=g(`company_domain`),Ms=r.object({pipe_id:r.literal(ks),run_if:x(),connector:C(),config:r.object({input_fields:R(r.object({[js.name]:T({fieldName:js.name})})),output_fields:L(r.object({[As.name]:O({fieldName:As.name})}))}).optional()}),Ns=e=>B(G(js,e)),Ps={"company-newssummary-domain-v1-pipe0":{allowManagedConnection:!0,credits:{default:2},mode:`always`,provider:`pipe0`}},Fs=class extends H{pipeId=ks;payloadSchema=Ms;billableOperations=Ps;payload;constructor(e){super(),this.payload=e}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[`company-newssummary-domain-v1-pipe0`]}getInputRequirement(){return Ns(this.payload.config)}getRawOutputFields(){return{[As.name]:this.catalogOutput(As)}}getConnectionsRequirements(){return[{provider:`parallel`,rateLimitRatio:4,rateLimitOperation:`parallel_search_base`,allowManagedConnection:!0},{provider:`gemini`,rateLimitRatio:1,rateLimitOperation:`gemini_35_flash`,allowManagedConnection:!0}]}},Is=Ms,Ls={pipeId:ks,basePipe:U(ks),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:[z.NEWS],docPath:W(ks),billableOperations:Ps,allowedUserConnectionProviders:[],managedProviders:[`pipe0`],deprecatedProviders:[],defaultInputRequirement:Ns(null),defaultPayload:{pipe_id:ks,run_if:null,connector:null,config:{input_fields:{company_domain:{alias:``}},output_fields:{company_news_summary:{alias:``,enabled:!0}}}}},Rs=g(`company_domain`),zs=g(`company_profile_url`),Bs=g(`company_description`),Vs=g(`company_industry`),Hs=g(`company_region`),Us=g(`headcount`),Ws=g(`estimated_revenue`),Gs=g(`founded_year`),Ks=g(`company_name`),qs=`company:overview@3`,Js=r.object({pipe_id:r.literal(qs),run_if:x(),connector:w(),config:r.object({input_fields:R(r.object({[Rs.name]:T({fieldName:Rs.name}),[zs.name]:T({fieldName:zs.name})})),output_fields:L(r.object({[Bs.name]:O({fieldName:Bs.name}),[Vs.name]:O({fieldName:Vs.name}),[Hs.name]:O({fieldName:Hs.name}),[Us.name]:O({fieldName:Us.name}),[Ws.name]:O({fieldName:Ws.name}),[Gs.name]:O({fieldName:Gs.name}),[Ks.name]:O({fieldName:Ks.name})}))}).optional()}),Ys=e=>V(G(Rs,e),G(zs,e)),Xs={"company-overview-v3-pipe0":{provider:`pipe0`,allowManagedConnection:!0,credits:{default:1,level1:{credits:.5,weight:1}},mode:`always`}},Zs=class extends H{pipeId=qs;payloadSchema=Js;billableOperations=Xs;payload;constructor(e){super(),this.payload=e}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[`company-overview-v3-pipe0`]}getInputRequirement(){return Ys(this.payload.config)}getRawOutputFields(){return{[Bs.name]:this.catalogOutput(Bs),[Vs.name]:this.catalogOutput(Vs),[Hs.name]:this.catalogOutput(Hs),[Us.name]:this.catalogOutput(Us),[Ws.name]:this.catalogOutput(Ws),[Gs.name]:this.catalogOutput(Gs),[Ks.name]:this.catalogOutput(Ks)}}getConnectionsRequirements(){return[{provider:`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}]}},Qs=Js,$s={pipeId:qs,basePipe:U(qs),inputFieldMode:`static`,outputFieldMode:`static`,label:`Company overview`,executionMode:`mix`,categories:[`company_data`],lifecycle:null,description:`Business description, industry, and financial information.`,docPath:W(qs),tags:[z.WEBSITE,z.LINKEDIN,z.FINANCIAL_DATA],allowedUserConnectionProviders:[],managedProviders:[`pipe0`],deprecatedProviders:[],billableOperations:Xs,defaultInputRequirement:Ys(null),defaultPayload:{pipe_id:qs,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}}}}},ec=g(`company_domain`),tc=g(`technology_list`),nc=g(`spending_trend`),rc=g(`technology_match_builtwith`),ic=`company:techstack:builtwith@2`,ac=r.object({pipe_id:r.literal(ic),connector:C(),run_if:x(),config:r.object({input_fields:R(r.object({[ec.name]:T({fieldName:ec.name})})),output_fields:L(r.object({[tc.name]:O({fieldName:tc.name}),[rc.name]:O({fieldName:rc.name}),[nc.name]:O({fieldName:nc.name})}))}).optional()}),oc=e=>B(G(ec,e)),sc={"company-techstack-builtwith-v2-builtwith":{provider:`builtwith`,allowManagedConnection:!0,credits:{default:2},mode:`always`}},cc=class extends H{pipeId=ic;payload;payloadSchema=ac;billableOperations=sc;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`builtwith`]}estimateBillableOperations(){return[`company-techstack-builtwith-v2-builtwith`]}getInputRequirement(){return oc(this.payload.config)}getRawOutputFields(){return{[tc.name]:this.catalogOutput(tc),[rc.name]:this.catalogOutput(rc),[nc.name]:this.catalogOutput(nc)}}getConnectionsRequirements(){return[{provider:`builtwith`,rateLimitRatio:1,rateLimitOperation:`builtwith_generic`,allowManagedConnection:!0}]}},lc=ac,uc={pipeId:ic,basePipe:U(ic),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:[z.WEBSITE],inputFieldMode:`static`,outputFieldMode:`static`,docPath:W(ic),billableOperations:sc,defaultInputRequirement:oc(null),defaultPayload:{pipe_id:ic,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}}}}},dc={MissingSecretError:class extends Error{constructor({providerName:e}){super(`Missing secret for ${e}`)}},HttpError:class extends Error{constructor({msg:e}){super(e)}}},fc=`contact:create:resend@1`,pc={"contact-create-resend-v1-resend":{allowManagedConnection:!1,provider:`resend`,credits:null,mode:null}},mc=g(`email`),hc=g(`name`),gc=g(`resend_contact_id`),_c=[{label:`Demo subscribers`,value:`sandbox-segment-1`},{label:`Demo product updates`,value:`sandbox-segment-2`}],vc=r.object({pipe_id:r.literal(fc),connector:ia(),run_if:x(),config:r.object({segment_id:Da({sectionKey:`general`,required:!0,label:`Segment`,groupPath:`config.general`,path:`config.segment_id`,info:``,enabledIf:Sn(`resend`),optionsDef:{requires:{connection:`resend`},options:async({query:e,secret:t,environment:n})=>{if(n===`sandbox`)return _c;if(!t)throw new dc.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 dc.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:D({sectionKey:`general`,defaultValue:!0,label:`Add as subscribed`,groupPath:`config.general`,path:`config.add_as_subscribed`,info:``}),input_fields:R(r.object({[hc.name]:T({fieldName:hc.name}),[mc.name]:T({fieldName:mc.name})})),output_fields:L(r.object({[gc.name]:O({fieldName:gc.name})}))})}),yc=e=>Ua(B(G(mc,e)),B(G(hc,e))),bc=class extends H{pipeId=fc;payload;payloadSchema=vc;billableOperations=pc;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`resend`]}estimateBillableOperations(){return[`contact-create-resend-v1-resend`]}getInputRequirement(){return yc(this.payload.config)}getRawOutputFields(){return{[gc.name]:this.catalogOutput(gc)}}getConnectionsRequirements(){return[{provider:`resend`,rateLimitRatio:1,rateLimitOperation:`resend_generic`,allowManagedConnection:!1}]}},xc=vc,Sc={pipeId:fc,basePipe:U(fc),label:`Create Contact`,executionMode:`single`,categories:[`actions`],lifecycle:null,description:`Create a contact inside a Resend audience.`,tags:[z.EMAIL],docPath:W(fc),billableOperations:pc,inputFieldMode:`static`,outputFieldMode:`static`,allowedUserConnectionProviders:[`resend`],defaultInputRequirement:yc(null),managedProviders:[],deprecatedProviders:[],defaultPayload:{pipe_id:fc,connector:{strategy:`first`,connections:[]},run_if:null,config:{segment_id:``,add_as_subscribed:!0,input_fields:{name:{alias:``},email:{alias:``}},output_fields:{resend_contact_id:{alias:``,enabled:!0}}}}},Cc=`company:funding:leadmagic@1`,wc=g(`company_name`),Tc=g(`company_website_url`),Ec=g(`funding_history`),Dc=g(`funding_total_usd`),Oc=g(`leadmagic_competitor_list`),kc=g(`leadmagic_acquisition_history`),Ac=g(`leadmagic_company_news_list`),jc=r.object({pipe_id:r.literal(Cc),connector:C(),run_if:x(),config:r.object({input_fields:R(r.object({[wc.name]:T({fieldName:wc.name}),[Tc.name]:T({fieldName:Tc.name})})),output_fields:L(r.object({[Ec.name]:O({fieldName:Ec.name}),[Dc.name]:O({fieldName:Dc.name}),[Oc.name]:O({fieldName:Oc.name}),[kc.name]:O({fieldName:kc.name}),[Ac.name]:O({fieldName:Ac.name})}))}).optional()}),Mc=e=>V(G(wc,e),G(Tc,e)),Nc={"company-funding-leadmagic-v1-leadmagic":{provider:`leadmagic`,allowManagedConnection:!0,credits:{default:2},mode:`onSuccess`}},Pc=class extends H{pipeId=Cc;payload;payloadSchema=jc;billableOperations=Nc;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`leadmagic`]}estimateBillableOperations(){return[`company-funding-leadmagic-v1-leadmagic`]}getInputRequirement(){return Mc(this.payload.config)}getRawOutputFields(){return{[Ec.name]:this.catalogOutput(Ec),[Dc.name]:this.catalogOutput(Dc)}}getConnectionsRequirements(){return[{provider:`leadmagic`,rateLimitRatio:1,rateLimitOperation:`leadmagic_company_funding`,allowManagedConnection:!0}]}},Fc=jc,Ic={pipeId:Cc,basePipe:U(Cc),label:`Funding history`,executionMode:`single`,categories:[`deprecated`],lifecycle:{deprecatedOn:`2026-06-13`,replacedBy:`company:funding:leadmagic@2`},description:`Information on funding rounds, acquisition, competitors, and investors.`,tags:[z.FINANCIAL_DATA],docPath:W(Cc),billableOperations:Nc,inputFieldMode:`static`,outputFieldMode:`static`,allowedUserConnectionProviders:[`leadmagic`],managedProviders:[`leadmagic`],deprecatedProviders:[],defaultInputRequirement:Mc(null),defaultPayload:{pipe_id:Cc,connector:null,run_if:null,config:{input_fields:{company_name:{alias:``},company_website_url:{alias:``}},output_fields:{funding_history:{enabled:!0,alias:``},funding_total_usd:{enabled:!0,alias:``},leadmagic_acquisition_history:{enabled:!1,alias:``},leadmagic_company_news_list:{enabled:!1,alias:``},leadmagic_competitor_list:{enabled:!1,alias:``}}}}},Lc=g(`company_name`),Rc=g(`company_social_url`),zc=g(`company_website_url`),Bc=g(`cleaned_company_name`),Vc=`company:identity@1`,Hc=r.object({pipe_id:r.literal(Vc),run_if:x(),connector:w(),config:r.object({input_fields:R(r.object({[Lc.name]:T({fieldName:Lc.name})})),output_fields:L(r.object({[Rc.name]:O({fieldName:Rc.name}),[Bc.name]:O({fieldName:Bc.name}),[zc.name]:O({fieldName:zc.name})}))}).optional()}),Uc=e=>B(G(Lc,e)),Wc={"company-identity-v1-pipe0":{allowManagedConnection:!0,credits:{default:.3},mode:`always`,provider:`pipe0`}},Gc=class extends H{pipeId=Vc;payload;payloadSchema=Hc;billableOperations=Wc;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[`company-identity-v1-pipe0`]}getInputRequirement(){return Uc(this.payload.config)}getRawOutputFields(){return{[Rc.name]:this.catalogOutput(Rc),[zc.name]:this.catalogOutput(zc),[Bc.name]:this.catalogOutput(Bc)}}getConnectionsRequirements(){return[{provider:`gemini`,rateLimitRatio:1,rateLimitOperation:`gemini_35_flash`,allowManagedConnection:!0},{provider:`serper`,rateLimitRatio:2,rateLimitOperation:`serper_search`,allowManagedConnection:!0},{provider:`leadmagic`,rateLimitRatio:.2,rateLimitOperation:`leadmagic_company_search`,allowManagedConnection:!0},{provider:`perplexity`,rateLimitRatio:.2,rateLimitOperation:`perplexity_generic`,allowManagedConnection:!0},{provider:`pipe0`,rateLimitRatio:.02,rateLimitOperation:`pipe0_scraper`,allowManagedConnection:!0}]}},Kc=Hc,qc={pipeId:Vc,inputFieldMode:`static`,outputFieldMode:`static`,basePipe:U(Vc),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:[z.WEBSITE,z.LINKEDIN],docPath:`/resources/pipe-catalog/company:identity/1`,billableOperations:Wc,allowedUserConnectionProviders:[],managedProviders:[`pipe0`],deprecatedProviders:[],defaultInputRequirement:Uc(null),defaultPayload:{pipe_id:Vc,connector:null,run_if:null,config:{input_fields:{company_name:{alias:``}},output_fields:{cleaned_company_name:{alias:``,enabled:!0},company_social_url:{alias:``,enabled:!0},company_website_url:{alias:``,enabled:!0}}}}},Jc=g(`company_name`),Yc=g(`company_profile_url`),Xc=g(`company_website_url`),Zc=g(`cleaned_company_name`),Qc=`company:identity@2`,$c=r.object({pipe_id:r.literal(Qc),run_if:x(),connector:w(),config:r.object({input_fields:R(r.object({[Jc.name]:T({fieldName:Jc.name})})),output_fields:L(r.object({[Yc.name]:O({fieldName:Yc.name}),[Zc.name]:O({fieldName:Zc.name}),[Xc.name]:O({fieldName:Xc.name})}))}).optional()}),el=e=>B(G(Jc,e)),tl={"company-identity-v2-pipe0":{allowManagedConnection:!0,credits:{default:.3},mode:`always`,provider:`pipe0`}},nl=class extends H{pipeId=Qc;payload;payloadSchema=$c;billableOperations=tl;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[`company-identity-v2-pipe0`]}getInputRequirement(){return el(this.payload.config)}getRawOutputFields(){return{[Yc.name]:this.catalogOutput(Yc),[Xc.name]:this.catalogOutput(Xc),[Zc.name]:this.catalogOutput(Zc)}}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}]}},rl=$c,il={pipeId:Qc,inputFieldMode:`static`,outputFieldMode:`static`,basePipe:U(Qc),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:[z.WEBSITE,z.LINKEDIN],docPath:W(Qc),billableOperations:tl,allowedUserConnectionProviders:[],managedProviders:[`pipe0`],deprecatedProviders:[],defaultInputRequirement:el(null),defaultPayload:{pipe_id:Qc,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}}}}},al=g(`company_website_url`),ol=g(`companyenrich_matches`),sl=`company:lookalikes:companyenrich@1`,cl=r.object({pipe_id:r.literal(sl),run_if:x(),connector:C(),config:r.object({limit:wa({groupPath:`config.general`,max:50,min:1,path:`config.limit`,required:!0,sectionKey:`general`,info:`Define how many lookalikes you want to find.`,label:`Limit`}),input_fields:R(r.object({[al.name]:T({fieldName:al.name})})),output_fields:L(r.object({[ol.name]:O({fieldName:ol.name})}))}).optional()}),ll=e=>B(G(al,e)),ul={"company-lookalikes-companyenrich-v1-companyenrich":{allowManagedConnection:!0,credits:{default:.2},mode:`onSuccess`,note:`One billing event per result.`,provider:`companyenrich`}},dl=class extends H{pipeId=sl;payload;payloadSchema=cl;billableOperations=ul;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`companyenrich`]}estimateBillableOperations(){return[,,,,,].fill(`lookalikes-companyenrich`)}getInputRequirement(){return ll(this.payload.config)}getRawOutputFields(){return{[ol.name]:this.catalogOutput(ol)}}getConnectionsRequirements(){return[{provider:`companyenrich`,rateLimitRatio:1,rateLimitOperation:`company_enrich_generic`,allowManagedConnection:!0}]}},fl=cl,pl={pipeId:sl,inputFieldMode:`static`,outputFieldMode:`static`,basePipe:U(sl),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:[z.COMPANY_PROFILES],docPath:W(sl),billableOperations:ul,allowedUserConnectionProviders:[`companyenrich`],managedProviders:[`companyenrich`],deprecatedProviders:[],defaultInputRequirement:ll(null),defaultPayload:{pipe_id:sl,connector:null,run_if:null,config:{limit:20,input_fields:{company_website_url:{alias:``}},output_fields:{companyenrich_matches:{alias:``,enabled:!0}}}}},ml=g(`company_website_url`),hl=g(`crustdata_companyenrich_match`),gl=`company:match:crustdata@1`,_l=r.object({pipe_id:r.literal(gl),run_if:x(),connector:C(),config:r.object({input_fields:R(r.object({[ml.name]:T({fieldName:ml.name})})),output_fields:L(r.object({[hl.name]:O({fieldName:hl.name})}))}).optional()}),vl=e=>B(G(ml,e)),yl={"company-match-crustdata-v1-crustdata":{allowManagedConnection:!0,credits:{default:2},mode:`onSuccess`,provider:`crustdata`}},bl=class extends H{pipeId=gl;payload;payloadSchema=_l;billableOperations=yl;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`crustdata`]}estimateBillableOperations(){return[`company-match-crustdata-v1-crustdata`]}getInputRequirement(){return vl(this.payload.config)}getRawOutputFields(){return{[hl.name]:this.catalogOutput(hl)}}getConnectionsRequirements(){return[{provider:`crustdata`,rateLimitRatio:1,rateLimitOperation:`crustdata_company_enrich`,allowManagedConnection:!0}]}},xl=_l,Sl={pipeId:gl,inputFieldMode:`static`,outputFieldMode:`static`,basePipe:U(gl),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:[z.WEBSITE,z.LINKEDIN],docPath:W(gl),billableOperations:yl,allowedUserConnectionProviders:[`crustdata`],managedProviders:[`crustdata`],deprecatedProviders:[],defaultInputRequirement:vl(null),defaultPayload:{pipe_id:gl,connector:null,run_if:null,config:{input_fields:{company_website_url:{alias:``}},output_fields:{crustdata_companyenrich_match:{alias:``,enabled:!0}}}}},Cl=g(`company_website_url`),wl=g(`company_name`),Tl=g(`company_profile_url`),El=g(`logodev_describe_match`),Dl=g(`logo_url`),Ol=`company:match:logodev@1`,kl=r.object({pipe_id:r.literal(Ol),run_if:x(),connector:C(),config:r.object({input_fields:R(r.object({[Cl.name]:T({fieldName:Cl.name})})),output_fields:L(r.object({[Tl.name]:O({fieldName:Tl.name}),[Dl.name]:O({fieldName:Dl.name}),[wl.name]:O({fieldName:wl.name}),[El.name]:O({fieldName:El.name})}))}).optional()}),Al=e=>B(G(Cl,e)),jl={"company-match-logodev-v1-logodev":{allowManagedConnection:!0,credits:{default:.1},mode:`onSuccess`,provider:`logodev`}},Ml=class extends H{pipeId=Ol;payload;payloadSchema=kl;billableOperations=jl;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`logodev`]}estimateBillableOperations(){return[`company-match-logodev-v1-logodev`]}getInputRequirement(){return Al(this.payload.config)}getRawOutputFields(){return{[Tl.name]:this.catalogOutput(Tl),[wl.name]:this.catalogOutput(wl),[Dl.name]:this.catalogOutput(Dl),[El.name]:this.catalogOutput(El)}}getConnectionsRequirements(){return[{provider:`logodev`,rateLimitRatio:1,rateLimitOperation:`logodev_describe`,allowManagedConnection:!0}]}},Nl=kl,Pl={pipeId:Ol,inputFieldMode:`static`,outputFieldMode:`static`,basePipe:U(Ol),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:[z.WEBSITE,z.LINKEDIN],docPath:W(Ol),billableOperations:jl,allowedUserConnectionProviders:[`logodev`],managedProviders:[`logodev`],deprecatedProviders:[],defaultInputRequirement:Al(null),defaultPayload:{pipe_id:Ol,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}}}}},Fl=`company:newssummary:website@1`,Il=g(`company_news_summary`),Ll=g(`company_website_url`),Rl=r.object({pipe_id:r.literal(Fl),run_if:x(),connector:C(),config:r.object({input_fields:R(r.object({[Ll.name]:T({fieldName:Ll.name})})),output_fields:L(r.object({[Il.name]:O({fieldName:Il.name})}))}).optional()}),zl=e=>B(G(Ll,e)),Bl={"company-newssummary-website-v1-pipe0":{allowManagedConnection:!0,credits:{default:1},mode:`always`,provider:`pipe0`}},Vl=class extends H{pipeId=Fl;payloadSchema=Rl;billableOperations=Bl;payload;constructor(e){super(),this.payload=e}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[`company-newssummary-website-v1-pipe0`]}getInputRequirement(){return zl(this.payload.config)}getRawOutputFields(){return{[Il.name]:this.catalogOutput(Il)}}getConnectionsRequirements(){return[{provider:`perplexity`,rateLimitRatio:1,rateLimitOperation:`perplexity_generic`,allowManagedConnection:!0}]}},Hl=Rl,Ul={pipeId:Fl,basePipe:U(Fl),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:[z.NEWS],docPath:W(Fl),billableOperations:Bl,allowedUserConnectionProviders:[],managedProviders:[`pipe0`],deprecatedProviders:[],defaultInputRequirement:zl(null),defaultPayload:{pipe_id:Fl,run_if:null,connector:null,config:{input_fields:{company_website_url:{alias:``}},output_fields:{company_news_summary:{alias:``,enabled:!0}}}}},Wl=g(`company_website_url`),Gl=g(`company_social_url`),Kl=g(`company_description`),ql=g(`company_industry`),Jl=g(`company_region`),Yl=g(`headcount`),Xl=g(`estimated_revenue`),Zl=g(`founded_year`),Ql=`company:overview@1`,$l=r.object({pipe_id:r.literal(Ql),run_if:x(),connector:w(),config:r.object({input_fields:R(r.object({[Wl.name]:T({fieldName:Wl.name}),[Gl.name]:T({fieldName:Gl.name})})),output_fields:L(r.object({[Kl.name]:O({fieldName:Kl.name}),[ql.name]:O({fieldName:ql.name}),[Jl.name]:O({fieldName:Jl.name}),[Yl.name]:O({fieldName:Yl.name}),[Xl.name]:O({fieldName:Xl.name}),[Zl.name]:O({fieldName:Zl.name})}))}).optional()}),eu=e=>V(G(Wl,e),G(Gl,e)),tu={"company-overview-v1-pipe0":{provider:`pipe0`,allowManagedConnection:!0,credits:{default:1},mode:`always`}},nu=class extends H{pipeId=Ql;payloadSchema=$l;billableOperations=tu;payload;constructor(e){super(),this.payload=e}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[`company-overview-v1-pipe0`]}getInputRequirement(){return eu(this.payload.config)}getRawOutputFields(){return{[Kl.name]:this.catalogOutput(Kl),[ql.name]:this.catalogOutput(ql),[Jl.name]:this.catalogOutput(Jl),[Yl.name]:this.catalogOutput(Yl),[Xl.name]:this.catalogOutput(Xl),[Zl.name]:this.catalogOutput(Zl)}}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}]}},ru=$l,iu={pipeId:Ql,basePipe:U(Ql),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:[z.WEBSITE,z.LINKEDIN,z.FINANCIAL_DATA,z.DEPRECATED],allowedUserConnectionProviders:[],managedProviders:[`pipe0`],deprecatedProviders:[],billableOperations:tu,defaultInputRequirement:eu(null),defaultPayload:{pipe_id:Ql,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}}}}},au=g(`company_website_url`),ou=g(`company_profile_url`),su=g(`company_description`),cu=g(`company_industry`),lu=g(`company_region`),uu=g(`headcount`),du=g(`estimated_revenue`),fu=g(`founded_year`),pu=g(`company_name`),mu=`company:overview@2`,hu=r.object({pipe_id:r.literal(mu),run_if:x(),connector:w(),config:r.object({input_fields:R(r.object({[au.name]:T({fieldName:au.name}),[ou.name]:T({fieldName:ou.name})})),output_fields:L(r.object({[su.name]:O({fieldName:su.name}),[cu.name]:O({fieldName:cu.name}),[lu.name]:O({fieldName:lu.name}),[uu.name]:O({fieldName:uu.name}),[du.name]:O({fieldName:du.name}),[fu.name]:O({fieldName:fu.name}),[pu.name]:O({fieldName:pu.name})}))}).optional()}),gu=e=>V(G(au,e),G(ou,e)),_u={"company-overview-v2-pipe0":{provider:`pipe0`,allowManagedConnection:!0,credits:{default:1},mode:`always`}},vu=class extends H{pipeId=mu;payloadSchema=hu;billableOperations=_u;payload;constructor(e){super(),this.payload=e}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[`company-overview-v2-pipe0`]}getInputRequirement(){return gu(this.payload.config)}getRawOutputFields(){return{[su.name]:this.catalogOutput(su),[cu.name]:this.catalogOutput(cu),[lu.name]:this.catalogOutput(lu),[uu.name]:this.catalogOutput(uu),[du.name]:this.catalogOutput(du),[fu.name]:this.catalogOutput(fu),[pu.name]:this.catalogOutput(pu)}}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}]}},yu=hu,bu={pipeId:mu,basePipe:U(mu),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:W(mu),tags:[z.WEBSITE,z.LINKEDIN,z.FINANCIAL_DATA],allowedUserConnectionProviders:[],managedProviders:[`pipe0`],deprecatedProviders:[],billableOperations:_u,defaultInputRequirement:gu(null),defaultPayload:{pipe_id:mu,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}}}}},xu=g(`company_website_url`),Su=g(`technology_list`),Cu=g(`spending_trend`),wu=g(`technology_match_builtwith`),Tu=`company:techstack:builtwith@1`,Eu=r.object({pipe_id:r.literal(Tu),connector:C(),run_if:x(),config:r.object({input_fields:R(r.object({[xu.name]:T({fieldName:xu.name})})),output_fields:L(r.object({[Su.name]:O({fieldName:Su.name}),[wu.name]:O({fieldName:wu.name}),[Cu.name]:O({fieldName:Cu.name})}))}).optional()}),Du=e=>B(G(xu,e)),Ou={"company-techstack-builtwith-v1-builtwith":{provider:`builtwith`,allowManagedConnection:!0,credits:{default:2},mode:`always`}},ku=class extends H{pipeId=Tu;payload;payloadSchema=Eu;billableOperations=Ou;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`builtwith`]}estimateBillableOperations(){return[`company-techstack-builtwith-v1-builtwith`]}getInputRequirement(){return Du(this.payload.config)}getRawOutputFields(){return{[Su.name]:this.catalogOutput(Su),[wu.name]:this.catalogOutput(wu),[Cu.name]:this.catalogOutput(Cu)}}getConnectionsRequirements(){return[{provider:`builtwith`,rateLimitRatio:1,rateLimitOperation:`builtwith_generic`,allowManagedConnection:!0}]}},Au=Eu,ju={pipeId:Tu,basePipe:U(Tu),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:[z.WEBSITE],inputFieldMode:`static`,outputFieldMode:`static`,docPath:W(Tu),billableOperations:Ou,defaultInputRequirement:Du(null),defaultPayload:{pipe_id:Tu,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}}}}},Mu=`company:websiteurl:email@1`,Nu=g(`company_website_url`),Pu=g(`email`),Fu=r.object({pipe_id:r.literal(Mu),run_if:x(),connector:w(),config:r.object({input_fields:R(r.object({[Pu.name]:T({fieldName:Pu.name})})),output_fields:L(r.object({[Nu.name]:O({fieldName:Nu.name})}))}).optional()}),Iu=e=>B(G(Pu,e)),Lu={"company-websiteurl-email-v1-pipe0":{credits:{default:0},allowManagedConnection:!0,mode:`always`,provider:`pipe0`}},Ru=class extends H{pipeId=Mu;payload;payloadSchema=Fu;billableOperations=Lu;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[`company-websiteurl-email-v1-pipe0`]}getInputRequirement(){return Iu(this.payload.config)}getRawOutputFields(){return{[Nu.name]:this.catalogOutput(Nu)}}getConnectionsRequirements(){return[{provider:`pipe0`,rateLimitRatio:1,rateLimitOperation:`pipe0_logic`,allowManagedConnection:!0}]}},zu=Fu,Bu={pipeId:Mu,basePipe:U(Mu),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:[z.EMAIL,z.WORK_EMAIL,z.WEBSITE],docPath:W(Mu),allowedUserConnectionProviders:[],managedProviders:[`pipe0`],deprecatedProviders:[],billableOperations:Lu,defaultInputRequirement:Iu(null),defaultPayload:{pipe_id:Mu,connector:null,run_if:null,config:{input_fields:{email:{alias:``}},output_fields:{company_website_url:{alias:``,enabled:!0}}}}},Vu=`people:email:iswork@1`,Hu=g(`is_work_email`),Uu=g(`email`),Wu=r.object({pipe_id:r.literal(Vu),run_if:x(),connector:w(),config:r.object({input_fields:R(r.object({[Uu.name]:T({fieldName:Uu.name})})),output_fields:L(r.object({[Hu.name]:O({fieldName:Hu.name})}))}).optional()}),Gu=e=>B(G(Uu,e)),Ku={"people-email-iswork-v1-pipe0":{provider:`pipe0`,allowManagedConnection:!0,credits:{default:0},mode:`always`}},qu=class extends H{pipeId=Vu;payload;payloadSchema=Wu;billableOperations=Ku;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[`people-email-iswork-v1-pipe0`]}getInputRequirement(){return Gu(this.payload.config)}getRawOutputFields(){return{[Hu.name]:this.catalogOutput(Hu)}}getConnectionsRequirements(){return[{provider:`pipe0`,rateLimitRatio:1,rateLimitOperation:`pipe0_logic`,allowManagedConnection:!0}]}},Ju=Wu,Yu={pipeId:Vu,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:[z.EMAIL,z.WORK_EMAIL],docPath:W(Vu),billableOperations:Ku,basePipe:U(Vu),allowedUserConnectionProviders:[],inputFieldMode:`static`,outputFieldMode:`static`,managedProviders:[`pipe0`],deprecatedProviders:[],defaultInputRequirement:Gu(null),defaultPayload:{pipe_id:Vu,run_if:null,connector:null,config:{input_fields:{email:{alias:``}},output_fields:{is_work_email:{alias:``,enabled:!0}}}}},Xu=`people:email:validate:zerobounce@1`,Zu=g(`work_email`),Qu=g(`is_email_valid`),$u=r.object({pipe_id:r.literal(Xu),connector:C(),run_if:x(),config:r.object({input_fields:R(r.object({[Zu.name]:T({fieldName:Zu.name})})),output_fields:L(r.object({[Qu.name]:O({fieldName:Qu.name})}))}).optional()}),ed=e=>B(G(Zu,e)),td={"people-email-validate-zerobounce-v1-zerobounce":{provider:`zerobounce`,allowManagedConnection:!0,credits:{default:.3},mode:`always`}},nd=class extends H{pipeId=Xu;payload;payloadSchema=$u;billableOperations=td;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`zerobounce`]}estimateBillableOperations(){return[`people-email-validate-zerobounce-v1-zerobounce`]}getInputRequirement(){return ed(this.payload.config)}getRawOutputFields(){return{[Qu.name]:this.catalogOutput(Qu)}}getConnectionsRequirements(){return[{provider:`zerobounce`,rateLimitRatio:1,rateLimitOperation:`zerobounce_generic`,allowManagedConnection:!0}]}},rd=$u,id={pipeId:Xu,basePipe:U(Xu),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:[z.EMAIL],docPath:`/resources/pipe-catalog/people:email:validate:zerobounce/1`,billableOperations:td,inputFieldMode:`static`,outputFieldMode:`static`,allowedUserConnectionProviders:[`zerobounce`],managedProviders:[`zerobounce`],deprecatedProviders:[],defaultInputRequirement:ed(null),defaultPayload:{pipe_id:Xu,connector:null,run_if:null,config:{input_fields:{work_email:{alias:``}},output_fields:{is_email_valid:{alias:``,enabled:!0}}}}},ad=`people:email:validate:zerobounce@2`,od=g(`email`),sd=g(`zerobounce_validation_status`),cd=g(`zerobounce_validation_match`),ld=r.object({pipe_id:r.literal(ad),connector:C(),run_if:x(),config:r.object({input_fields:R(r.object({[od.name]:T({fieldName:od.name})})),output_fields:L(r.object({[cd.name]:O({fieldName:cd.name}),[sd.name]:O({fieldName:sd.name})}))}).optional()}),ud=e=>B(G(od,e)),dd={"people-email-validate-zerobounce-v2-zerobounce":{provider:`zerobounce`,allowManagedConnection:!0,credits:{default:.3},mode:`always`}},fd=class extends H{pipeId=ad;payload;payloadSchema=ld;billableOperations=dd;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`zerobounce`]}estimateBillableOperations(){return[`people-email-validate-zerobounce-v2-zerobounce`]}getInputRequirement(){return ud(this.payload.config)}getRawOutputFields(){return{[sd.name]:this.catalogOutput(sd),[cd.name]:this.catalogOutput(cd)}}getConnectionsRequirements(){return[{provider:`zerobounce`,rateLimitRatio:1,rateLimitOperation:`zerobounce_generic`,allowManagedConnection:!0}]}},pd=ld,md={pipeId:ad,basePipe:U(ad),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:[z.EMAIL],docPath:W(ad),billableOperations:dd,inputFieldMode:`static`,outputFieldMode:`static`,allowedUserConnectionProviders:[`zerobounce`],managedProviders:[`zerobounce`],deprecatedProviders:[],defaultInputRequirement:ud(null),defaultPayload:{pipe_id:ad,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 hd(e){return(e.widgets||{}).display_value?.label}function gd(e){console.dir(e,{depth:100})}function _d(e){return typeof e==`object`&&e?JSON.stringify(e):e}function K(e){return e===0?1:e===1?.3:e===2?.2:.1}function vd(e){if(typeof e!=`object`||!e||Array.isArray(e))return e;let t={};return Object.keys(e).sort().forEach(n=>{t[n]=vd(e[n])}),t}const yd={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 q(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 bd=`people:identity:email:waterfall@1`,xd=g(`email`),Sd=g(`company_website_url`),Cd=g(`name`),wd=g(`job_title`),Td=g(`profile_url`),Ed=g(`company_profile_url`),Dd=g(`company_name`),Od=[`findymail`,`hunter`,`crustdata`],kd=[{provider:`findymail`},{provider:`hunter`},{provider:`crustdata`}],Ad=r.object({pipe_id:r.literal(bd),connector:C(),run_if:x(),config:r.object({providers:E({availableProviders:Od,defaultProviders:kd,sectionKey:`general`}),input_fields:R(r.object({[xd.name]:T({fieldName:xd.name})})),output_fields:L(r.object({[Cd.name]:O({fieldName:Cd.name}),[Td.name]:O({fieldName:Td.name}),[wd.name]:O({fieldName:wd.name}),[Sd.name]:O({fieldName:Sd.name}),[Dd.name]:O({fieldName:Dd.name}),[Ed.name]:O({fieldName:Ed.name})}))}).optional()}),jd=e=>B(G(xd,e)),Md={"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`}},Nd=class extends H{pipeId=bd;payload;payloadSchema=Ad;billableOperations=Md;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return this.payload.config?.providers.map(e=>e.provider)||[]}estimateBillableOperations(){return this.getProviderNames().map(e=>q(e,this.billableOperations).billableOperation)}getInputRequirement(){return jd(this.payload.config)}getRawOutputFields(){return{[Cd.name]:this.catalogOutput(Cd,{isPrimaryOutput:!0}),[Td.name]:this.catalogOutput(Td,{isPrimaryOutput:!0}),[wd.name]:this.catalogOutput(wd,{isPrimaryOutput:!0}),[Dd.name]:this.catalogOutput(Dd,{isPrimaryOutput:!0}),[Ed.name]:this.catalogOutput(Ed,{isPrimaryOutput:!0}),[Sd.name]:this.catalogOutput(Sd,{isPrimaryOutput:!0})}}getConnectionsRequirements(){let e={hunter:`prospeo_email_lookup`,findymail:`findymail_email_b2b_lookup`,crustdata:`crustdata_realtime_person_enrich`};return(this.payload.config?.providers||[]).map((t,n)=>({provider:t.provider,rateLimitRatio:K(n),rateLimitOperation:e[t.provider],allowManagedConnection:!0}))}},Pd=Ad,Fd={pipeId:bd,basePipe:U(bd),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:[z.EMAIL,z.PEOPLE_PROFILES],docPath:W(bd),managedProviders:Od,deprecatedProviders:[],allowedUserConnectionProviders:Od,inputFieldMode:`static`,outputFieldMode:`static`,billableOperations:Md,defaultInputRequirement:jd(null),defaultPayload:{pipe_id:bd,connector:null,run_if:null,config:{providers:kd,input_fields:{email:{alias:``}},output_fields:{name:{alias:``,enabled:!0},profile_url:{alias:``,enabled:!0},job_title:{alias:``,enabled:!0},company_name:{alias:``,enabled:!0},company_profile_url:{alias:``,enabled:!0},company_website_url:{alias:``,enabled:!0}}}}},Id=`people:match:role:waterfall@1`,Ld=g(`company_website_url`),Rd=g(`role_finder_match`),zd=[`leadmagic`],Bd=[{provider:`leadmagic`}],Vd=r.object({pipe_id:r.literal(Id),run_if:x(),connector:C(),config:r.object({providers:E({sectionKey:`general`,defaultProviders:Bd,availableProviders:zd}),roles:fa({sectionKey:`general`,groupPath:`config.general`,label:`Roles`,path:`config.roles`,info:`Company roles to include`,maxItems:3,minItems:1}),input_fields:R(r.object({[Ld.name]:T({fieldName:Ld.name})})),output_fields:L(r.object({[Rd.name]:O({fieldName:Rd.name})}))})}),Hd=e=>V(G(Ld,e)),Ud={"people-match-role-waterfall-v1-leadmagic":{provider:`leadmagic`,allowManagedConnection:!0,credits:{default:1},mode:`onSuccess`}},Wd=class extends H{pipeId=Id;payload;payloadSchema=Vd;billableOperations=Ud;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return this.payload.config?.providers.map(e=>e.provider)||[]}estimateBillableOperations(){return this.getProviderNames().map(e=>q(e,this.billableOperations).billableOperation)}getInputRequirement(){return Hd(this.payload.config)}getRawOutputFields(){return{[Rd.name]:this.catalogOutput(Rd,{isPrimaryOutput:!0})}}getConnectionsRequirements(){let e={leadmagic:`leadmagic_role_finder`};return(this.payload.config?.providers||[]).map((t,n)=>({provider:t.provider,rateLimitRatio:K(n),rateLimitOperation:e[t.provider],allowManagedConnection:!0}))}},Gd=Vd,Kd={pipeId:Id,basePipe:U(Id),managedProviders:zd,deprecatedProviders:[],allowedUserConnectionProviders:zd,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:[z.PEOPLE_PROFILES],docPath:W(Id),billableOperations:Ud,inputFieldMode:`static`,outputFieldMode:`static`,defaultInputRequirement:Hd(null),defaultPayload:{pipe_id:Id,run_if:null,connector:null,config:{roles:[],providers:Bd,input_fields:{company_website_url:{alias:``}},output_fields:{role_finder_match:{alias:``,enabled:!0}}}}},qd=`people:mobilenumber:professionalprofile:waterfall@1`,Jd=g(`professional_profile_url`),Yd=g(`mobile_number`),Xd=[`leadmagic`,`prospeo`],Zd=[{provider:`leadmagic`},{provider:`prospeo`}],Qd=r.object({pipe_id:r.literal(qd),run_if:x(),connector:C(),config:r.object({providers:E({sectionKey:`general`,defaultProviders:Zd,availableProviders:Xd}),input_fields:R(r.object({[Jd.name]:T({fieldName:Jd.name})})),output_fields:L(r.object({[Yd.name]:O({fieldName:Yd.name})}))}).optional()}),$d=e=>B(G(Jd,e)),ef={"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`}},tf=class extends H{pipeId=qd;payload;payloadSchema=Qd;billableOperations=ef;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return this.payload.config?.providers.map(e=>e.provider)||[]}estimateBillableOperations(){return this.getProviderNames().map(e=>q(e,this.billableOperations).billableOperation)}getInputRequirement(){return $d(this.payload.config)}getRawOutputFields(){return{[Yd.name]:this.catalogOutput(Yd)}}getConnectionsRequirements(){let e={leadmagic:`leadmagic_email_lookup`,prospeo:`prospeo_phone_number_lookup`};return(this.payload.config?.providers||[]).map((t,n)=>({provider:t.provider,rateLimitRatio:K(n),rateLimitOperation:e[t.provider],allowManagedConnection:!0}))}},nf=Qd,rf={pipeId:qd,basePipe:U(qd),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:[z.PHONE,z.WATERFALL],billableOperations:ef,defaultInputRequirement:$d(null),inputFieldMode:`static`,outputFieldMode:`static`,managedProviders:Xd,deprecatedProviders:[],allowedUserConnectionProviders:Xd,defaultPayload:{pipe_id:qd,connector:null,run_if:null,config:{providers:Zd,input_fields:{professional_profile_url:{alias:``}},output_fields:{mobile_number:{alias:``,enabled:!0}}}}},af=`people:mobilenumber:workemail:waterfall@1`,of=g(`work_email`),sf=g(`mobile_number`),cf=[`leadmagic`],lf=[{provider:`leadmagic`}],uf=r.object({pipe_id:r.literal(af),run_if:x(),connector:C(),config:r.object({providers:E({sectionKey:`general`,availableProviders:cf,defaultProviders:lf}),input_fields:R(r.object({[of.name]:T({fieldName:of.name})})),output_fields:L(r.object({[sf.name]:O({fieldName:sf.name})}))}).optional()}),df=e=>B(G(of,e)),ff={"people-mobilenumber-workemail-waterfall-v1-leadmagic":{provider:`leadmagic`,allowManagedConnection:!0,credits:{default:2},mode:`onSuccess`}},pf=class extends H{pipeId=af;payload;payloadSchema=uf;billableOperations=ff;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return this.payload.config?.providers?.map(e=>e.provider)||[]}estimateBillableOperations(){return this.getProviderNames().map(e=>q(e,this.billableOperations).billableOperation)}getInputRequirement(){return df(this.payload.config)}getRawOutputFields(){return{[sf.name]:this.catalogOutput(sf)}}getConnectionsRequirements(){let e={leadmagic:`leadmagic_email_lookup`};return(this.payload.config?.providers||[]).map((t,n)=>({provider:t.provider,rateLimitRatio:K(n),rateLimitOperation:e[t.provider],allowManagedConnection:!0}))}},mf=uf,hf={pipeId:af,basePipe:U(af),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:[z.PHONE,z.WATERFALL],docPath:`/resources/pipe-catalog/people:mobilenumber:workemail:waterfall/1`,billableOperations:ff,defaultInputRequirement:df(null),inputFieldMode:`static`,outputFieldMode:`static`,allowedUserConnectionProviders:cf,managedProviders:cf,deprecatedProviders:[],defaultPayload:{pipe_id:af,connector:null,run_if:null,config:{providers:lf,input_fields:{work_email:{alias:``}},output_fields:{mobile_number:{alias:``,enabled:!0}}}}},gf=`people:name:split@1`,_f=g(`name`),vf=g(`first_name`),yf=g(`last_name`),bf=r.object({pipe_id:r.literal(gf),connector:w(),run_if:x(),config:r.object({input_fields:R(r.object({[_f.name]:T({fieldName:_f.name})})),output_fields:L(r.object({[vf.name]:O({fieldName:vf.name}),[yf.name]:O({fieldName:yf.name})}))}).optional()}),xf=e=>B(G(_f,e)),Sf={"people-name-split-v1-pipe0":{provider:`pipe0`,allowManagedConnection:!0,credits:{default:0},mode:`always`}},Cf=class extends H{pipeId=gf;payload;payloadSchema=bf;billableOperations=Sf;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[`people-name-split-v1-pipe0`]}getInputRequirement(){return xf(this.payload.config)}getRawOutputFields(){return{[vf.name]:this.catalogOutput(vf),[yf.name]:this.catalogOutput(yf)}}getConnectionsRequirements(){return[{provider:`pipe0`,rateLimitRatio:1,rateLimitOperation:`pipe0_logic`,allowManagedConnection:!0}]}},wf=bf,Tf={pipeId:gf,basePipe:U(gf),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:[z.NAMES],docPath:W(gf),billableOperations:Sf,inputFieldMode:`static`,outputFieldMode:`static`,defaultInputRequirement:xf(null),allowedUserConnectionProviders:[],managedProviders:[`pipe0`],deprecatedProviders:[],defaultPayload:{pipe_id:gf,run_if:null,connector:void 0,config:{input_fields:{name:{alias:``}},output_fields:{first_name:{alias:``,enabled:!0},last_name:{alias:``,enabled:!0}}}}},Ef=`people:personalemail:profile:waterfall@1`,Df=g(`profile_url`),Of=g(`personal_email`),kf=g(`alternate_personal_emails`),Af=[`clado`,`leadmagic`,`mixrank`],jf=[{provider:`leadmagic`},{provider:`mixrank`}],Mf=r.object({pipe_id:r.literal(Ef),run_if:x(),connector:C(),config:r.object({providers:E({sectionKey:`general`,availableProviders:Af,defaultProviders:jf}),input_fields:R(r.object({[Df.name]:T({fieldName:Df.name})})),output_fields:L(r.object({[Of.name]:O({fieldName:Of.name}),[kf.name]:O({fieldName:kf.name})}))}).optional()}),Nf=e=>B(G(Df,e)),Pf={"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`}},Ff=class extends H{pipeId=Ef;payload;payloadSchema=Mf;billableOperations=Pf;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return this.payload.config?.providers.map(e=>e.provider)||[]}estimateBillableOperations(){return this.getProviderNames().map(e=>q(e,this.billableOperations).billableOperation)}getInputRequirement(){return Nf(this.payload.config)}getRawOutputFields(){return{[Of.name]:this.catalogOutput(Of,{isPrimaryOutput:!0}),[kf.name]:this.catalogOutput(kf)}}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:K(n),rateLimitOperation:e[t.provider],allowManagedConnection:!0}))}},If=Mf,Lf={pipeId:Ef,basePipe:U(Ef),allowedUserConnectionProviders:Af,managedProviders:Af,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:[z.EMAIL,z.PERSONAL_EMAIL],docPath:W(Ef),billableOperations:Pf,defaultInputRequirement:Nf(null),inputFieldMode:`static`,outputFieldMode:`static`,defaultPayload:{pipe_id:Ef,connector:null,run_if:null,config:{providers:jf,input_fields:{profile_url:{alias:``}},output_fields:{personal_email:{alias:``,enabled:!0},alternate_personal_emails:{alias:``,enabled:!0}}}}},Rf=`people:phone:profile:waterfall@1`,zf=g(`profile_url`),Bf=g(`mobile`),Vf=[`leadmagic`,`prospeo`,`amplemarket`,`findymail`,`clado`],Hf=[{provider:`leadmagic`},{provider:`prospeo`},{provider:`amplemarket`},{provider:`findymail`}],Uf=r.object({pipe_id:r.literal(Rf),run_if:x(),connector:C(),config:r.object({providers:E({sectionKey:`general`,defaultProviders:Hf,availableProviders:Vf}),input_fields:R(r.object({[zf.name]:T({fieldName:zf.name})})),output_fields:L(r.object({[Bf.name]:O({fieldName:Bf.name})}))}).optional()}),Wf=e=>B(G(zf,e)),Gf={"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`}},Kf=class extends H{pipeId=Rf;payload;payloadSchema=Uf;billableOperations=Gf;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return this.payload.config?.providers.map(e=>e.provider)||[]}estimateBillableOperations(){return this.getProviderNames().map(e=>q(e,this.billableOperations).billableOperation)}getInputRequirement(){return Wf(this.payload.config)}getRawOutputFields(){return{[Bf.name]:this.catalogOutput(Bf,{isPrimaryOutput:!0})}}getConnectionsRequirements(){let e={leadmagic:`leadmagic_email_lookup`,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:K(n),rateLimitOperation:e[t.provider],allowManagedConnection:!0}))}},qf=Uf,Jf={pipeId:Rf,basePipe:U(Rf),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:W(Rf),tags:[z.PHONE,z.WATERFALL],billableOperations:Gf,defaultInputRequirement:Wf(null),inputFieldMode:`static`,outputFieldMode:`static`,managedProviders:Vf,allowedUserConnectionProviders:Vf,deprecatedProviders:[`clado`],defaultPayload:{pipe_id:Rf,connector:null,run_if:null,config:{providers:Hf,input_fields:{profile_url:{alias:``}},output_fields:{mobile:{alias:``,enabled:!0}}}}},Yf=`people:phone:workemail:waterfall@1`,Xf=g(`work_email`),Zf=g(`mobile`),Qf=[`leadmagic`,`amplemarket`],$f=[{provider:`leadmagic`},{provider:`amplemarket`}],ep=r.object({pipe_id:r.literal(Yf),run_if:x(),connector:C(),config:r.object({providers:E({sectionKey:`general`,availableProviders:Qf,defaultProviders:$f}),input_fields:R(r.object({[Xf.name]:T({fieldName:Xf.name})})),output_fields:L(r.object({[Zf.name]:O({fieldName:Zf.name})}))}).optional()}),tp=e=>B(G(Xf,e)),np={"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`}},rp=class extends H{pipeId=Yf;payload;payloadSchema=ep;billableOperations=np;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return this.payload.config?.providers.map(e=>e.provider)||[]}estimateBillableOperations(){return this.getProviderNames().map(e=>q(e,this.billableOperations).billableOperation)}getInputRequirement(){return tp(this.payload.config)}getRawOutputFields(){return{[Zf.name]:this.catalogOutput(Zf,{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:K(n),rateLimitOperation:e[t.provider],allowManagedConnection:!0}))}},ip=ep,ap={pipeId:Yf,basePipe:U(Yf),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:[z.PHONE,z.WATERFALL],docPath:W(Yf),billableOperations:np,defaultInputRequirement:tp(null),inputFieldMode:`static`,outputFieldMode:`static`,allowedUserConnectionProviders:Qf,managedProviders:Qf,deprecatedProviders:[],defaultPayload:{pipe_id:Yf,connector:null,run_if:null,config:{providers:$f,input_fields:{work_email:{alias:``}},output_fields:{mobile:{alias:``,enabled:!0}}}}},op=`people:professionalprofile:waterfall@1`,sp=g(`professional_profile`),cp=g(`professional_profile_url`),lp=[`prospeo`,`icypeas`],up=[{provider:`prospeo`},{provider:`icypeas`}],dp=r.object({pipe_id:r.literal(op),run_if:x(),connector:C(),config:r.object({providers:E({sectionKey:`general`,availableProviders:lp,defaultProviders:up}),input_fields:R(r.object({[cp.name]:T({fieldName:cp.name})})),output_fields:L(r.object({[sp.name]:O({fieldName:sp.name})}))}).optional()}),fp=e=>B(G(cp,e)),pp={"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}},mp=class extends H{pipeId=op;payload;payloadSchema=dp;billableOperations=pp;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return this.payload.config?.providers.map(e=>e.provider)||[]}estimateBillableOperations(){return this.getProviderNames().map(e=>q(e,this.billableOperations).billableOperation)}getInputRequirement(){return fp(this.payload.config)}getRawOutputFields(){return{[sp.name]:this.catalogOutput(sp)}}getConnectionsRequirements(){let e={icypeas:`icypeas_scrape_profile`,prospeo:`prospeo_social_profile_lookup`};return(this.payload.config?.providers||[]).map((t,n)=>({provider:t.provider,rateLimitRatio:K(n),rateLimitOperation:e[t.provider],allowManagedConnection:!0}))}},hp=dp,gp={pipeId:op,basePipe:U(op),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:[z.LINKEDIN,z.WATERFALL],managedProviders:lp,deprecatedProviders:[],allowedUserConnectionProviders:lp,inputFieldMode:`static`,outputFieldMode:`static`,billableOperations:pp,defaultInputRequirement:fp(null),defaultPayload:{pipe_id:op,run_if:null,connector:null,config:{providers:up,input_fields:{professional_profile_url:{alias:``}},output_fields:{professional_profile:{alias:``,enabled:!0}}}}},_p=`people:professionalprofileurl:email:waterfall@1`,vp=g(`email`),yp=g(`work_email`),bp=g(`professional_profile_url`),xp=[`leadmagic`],Sp=[{provider:`leadmagic`}],Cp=r.object({pipe_id:r.literal(_p),run_if:x(),connector:C(),config:r.object({providers:E({sectionKey:`general`,defaultProviders:Sp,availableProviders:xp}),input_fields:R(r.object({[vp.name]:T({fieldName:vp.name}),[yp.name]:T({fieldName:yp.name})})),output_fields:L(r.object({[bp.name]:O({fieldName:bp.name})}))}).optional()}),wp=e=>V(G(vp,e),G(yp,e)),Tp={"people-professionalprofileurl-email-waterfall-v1-leadmagic":{provider:`leadmagic`,allowManagedConnection:!0,credits:{default:3.5},mode:`onSuccess`}},Ep=class extends H{pipeId=_p;payload;payloadSchema=Cp;billableOperations=Tp;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return this.payload.config?.providers.map(e=>e.provider)||[]}estimateBillableOperations(){return this.getProviderNames().map(e=>q(e,this.billableOperations).billableOperation)}getInputRequirement(){return wp(this.payload.config)}getRawOutputFields(){return{[bp.name]:this.catalogOutput(bp)}}getConnectionsRequirements(){let e={leadmagic:`leadmagic_email_to_b2b_profile`};return(this.payload.config?.providers||[]).map((t,n)=>({provider:t.provider,rateLimitRatio:K(n),rateLimitOperation:e[t.provider],allowManagedConnection:!0}))}},Dp=Cp,Op={pipeId:_p,basePipe:U(_p),managedProviders:xp,deprecatedProviders:[],allowedUserConnectionProviders:xp,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:[z.LINKEDIN],docPath:`/resources/pipe-catalog/people:professionalprofileurl:email:waterfall/1`,billableOperations:Tp,inputFieldMode:`static`,outputFieldMode:`static`,defaultInputRequirement:wp(null),defaultPayload:{pipe_id:_p,run_if:null,connector:null,config:{providers:Sp,input_fields:{email:{alias:``},work_email:{alias:``}},output_fields:{professional_profile_url:{alias:``,enabled:!0}}}}},kp=`people:professionalprofileurl:name@1`,Ap=g(`name`),jp=g(`company_name`),Mp=g(`location_hint`),Np=g(`professional_profile_url`),Pp=r.object({pipe_id:r.literal(kp),connector:w(),run_if:x(),config:r.object({input_fields:R(r.object({[Ap.name]:T({fieldName:Ap.name}),[jp.name]:T({fieldName:jp.name}),[Mp.name]:T({fieldName:Mp.name})})),output_fields:L(r.object({[Np.name]:O({fieldName:Np.name})}))}).optional()}),Fp=e=>Ua(B(G(Ap,e)),B(G(jp,e)),Wa(G(Mp,e))),Ip={"people-professionalprofileurl-name-v1-pipe0":{provider:`pipe0`,allowManagedConnection:!0,credits:{default:.6},mode:`always`}},Lp=class extends H{pipeId=kp;payload;payloadSchema=Pp;billableOperations=Ip;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[`people-professionalprofileurl-name-v1-pipe0`]}getInputRequirement(){return Fp(this.payload.config)}getRawOutputFields(){return{[Np.name]:this.catalogOutput(Np)}}getConnectionsRequirements(){return[{provider:`serper`,rateLimitRatio:1,rateLimitOperation:`serper_search`,allowManagedConnection:!0}]}},Rp=Pp,zp={pipeId:kp,basePipe:U(kp),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:[z.LINKEDIN],billableOperations:Ip,defaultInputRequirement:Fp(null),inputFieldMode:`static`,outputFieldMode:`static`,defaultPayload:{pipe_id:kp,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}}}}},Bp=`people:profile:waterfall@1`,Vp=g(`profile`),Hp=g(`profile_url`),Up=[`prospeo`,`icypeas`,`amplemarket`,`clado`],Wp=[{provider:`amplemarket`},{provider:`prospeo`},{provider:`icypeas`}],Gp=r.object({pipe_id:r.literal(Bp),run_if:x(),connector:C(),config:r.object({providers:E({sectionKey:`general`,availableProviders:Up,defaultProviders:Wp}),input_fields:R(r.object({[Hp.name]:T({fieldName:Hp.name})})),output_fields:L(r.object({[Vp.name]:O({fieldName:Vp.name})}))}).optional()}),Kp=e=>B(G(Hp,e)),qp={"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}},Jp=class extends H{pipeId=Bp;payload;payloadSchema=Gp;billableOperations=qp;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return this.payload.config?.providers.map(e=>e.provider)||[]}estimateBillableOperations(){return this.getProviderNames().map(e=>q(e,this.billableOperations).billableOperation)}getInputRequirement(){return Kp(this.payload.config)}getRawOutputFields(){return{[Vp.name]:this.catalogOutput(Vp,{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:K(n),rateLimitOperation:e[t.provider],allowManagedConnection:!0}))}},Yp=Gp,Xp={pipeId:Bp,basePipe:U(Bp),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:W(Bp),tags:[z.LINKEDIN,z.WATERFALL],managedProviders:Up,deprecatedProviders:[`clado`],allowedUserConnectionProviders:Up,inputFieldMode:`static`,outputFieldMode:`static`,billableOperations:qp,defaultInputRequirement:Kp(null),defaultPayload:{pipe_id:Bp,run_if:null,connector:null,config:{providers:Wp,input_fields:{profile_url:{alias:``}},output_fields:{profile:{alias:``,enabled:!0}}}}},Zp=g(`work_email`),Qp=g(`crustdata_person_match`),$p=g(`crustdata_profile_match_score`),em=`people:profile:workemail:crustdata@1`,tm=r.object({pipe_id:r.literal(em),run_if:x(),connector:C(),config:r.object({input_fields:R(r.object({[Zp.name]:T({fieldName:Zp.name})})),output_fields:L(r.object({[Qp.name]:O({fieldName:Qp.name}),[$p.name]:O({fieldName:$p.name})}))}).optional()}),nm=e=>B(G(Zp,e)),rm={"people-profile-workemail-crustdata-v1-crustdata":{allowManagedConnection:!0,credits:{default:5},mode:`onSuccess`,provider:`crustdata`}},im=class extends H{pipeId=em;payload;payloadSchema=tm;billableOperations=rm;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`crustdata`]}estimateBillableOperations(){return[`people-profile-workemail-crustdata-v1-crustdata`]}getInputRequirement(){return nm(this.payload.config)}getRawOutputFields(){return{[Qp.name]:this.catalogOutput(Qp),[$p.name]:this.catalogOutput($p)}}getConnectionsRequirements(){return[{provider:`crustdata`,rateLimitRatio:1,rateLimitOperation:`crustdata_realtime_person_enrich`,allowManagedConnection:!0}]}},am=tm,om={pipeId:em,inputFieldMode:`static`,outputFieldMode:`static`,basePipe:U(em),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:[z.EMAIL,z.PEOPLE_PROFILES],docPath:W(em),billableOperations:rm,allowedUserConnectionProviders:[`crustdata`],managedProviders:[`crustdata`],deprecatedProviders:[],defaultInputRequirement:nm(null),defaultPayload:{pipe_id:em,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}}}}},sm=`people:profileurl:email:waterfall@1`,cm=g(`email`),lm=g(`work_email`),um=g(`profile_url`),dm=[`leadmagic`],fm=[{provider:`leadmagic`}],pm=r.object({pipe_id:r.literal(sm),run_if:x(),connector:C(),config:r.object({providers:E({sectionKey:`general`,defaultProviders:fm,availableProviders:dm}),input_fields:R(r.object({[cm.name]:T({fieldName:cm.name}),[lm.name]:T({fieldName:lm.name})})),output_fields:L(r.object({[um.name]:O({fieldName:um.name})}))}).optional()}),mm=e=>V(G(cm,e),G(lm,e)),hm={"people-profileurl-email-waterfall-v1-leadmagic":{provider:`leadmagic`,allowManagedConnection:!0,credits:{default:3.5},mode:`onSuccess`}},gm=class extends H{pipeId=sm;payload;payloadSchema=pm;billableOperations=hm;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return this.payload.config?.providers.map(e=>e.provider)||[]}estimateBillableOperations(){return this.getProviderNames().map(e=>q(e,this.billableOperations).billableOperation)}getInputRequirement(){return mm(this.payload.config)}getRawOutputFields(){return{[um.name]:this.catalogOutput(um,{isPrimaryOutput:!0})}}getConnectionsRequirements(){let e={leadmagic:`leadmagic_email_to_b2b_profile`};return(this.payload.config?.providers||[]).map((t,n)=>({provider:t.provider,rateLimitRatio:K(n),rateLimitOperation:e[t.provider],allowManagedConnection:!0}))}},_m=pm,vm={pipeId:sm,basePipe:U(sm),managedProviders:dm,deprecatedProviders:[],allowedUserConnectionProviders:dm,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:[z.LINKEDIN],docPath:W(sm),billableOperations:hm,inputFieldMode:`static`,outputFieldMode:`static`,defaultInputRequirement:mm(null),defaultPayload:{pipe_id:sm,run_if:null,connector:null,config:{providers:fm,input_fields:{email:{alias:``},work_email:{alias:``}},output_fields:{profile_url:{alias:``,enabled:!0}}}}},ym=`people:validate:email:zerobounce@1`,bm=g(`work_email`),xm=g(`ip_address`),Sm=g(`is_email_valid`),Cm=r.object({pipe_id:r.literal(ym),connector:C(),run_if:x(),config:r.object({input_fields:R(r.object({[bm.name]:T({fieldName:bm.name}),[xm.name]:T({fieldName:xm.name})})),output_fields:L(r.object({[Sm.name]:O({fieldName:Sm.name})}))}).optional()}),wm=e=>Ua(B(G(bm,e)),Wa(G(xm,e))),Tm={"people-validate-email-zerobounce-v1-zerobounce":{provider:`zerobounce`,allowManagedConnection:!0,credits:{default:.5},mode:`always`}},Em=class extends H{pipeId=ym;payload;payloadSchema=Cm;billableOperations=Tm;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`zerobounce`]}estimateBillableOperations(){return[`people-validate-email-zerobounce-v1-zerobounce`]}getInputRequirement(){return wm(this.payload.config)}getRawOutputFields(){return{[Sm.name]:this.catalogOutput(Sm)}}getConnectionsRequirements(){return[{provider:`zerobounce`,rateLimitRatio:1,rateLimitOperation:`zerobounce_generic`,allowManagedConnection:!0}]}},Dm=Cm,Om={pipeId:ym,basePipe:U(ym),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:[z.EMAIL],docPath:`/resources/pipe-catalog/people:validate:email:zerobounce/1`,billableOperations:Tm,inputFieldMode:`static`,outputFieldMode:`static`,allowedUserConnectionProviders:[`zerobounce`],managedProviders:[`zerobounce`],deprecatedProviders:[],defaultInputRequirement:wm(null),defaultPayload:{pipe_id:ym,connector:null,run_if:null,config:{input_fields:{ip_address:{alias:``},work_email:{alias:``}},output_fields:{is_email_valid:{alias:``,enabled:!0}}}}},km=`people:workemail:profileurl:waterfall@1`,Am=g(`profile_url`),jm=g(`work_email`),Mm=g(`email_validation_status`),Nm=[`hunter`,`amplemarket`,`findymail`,`leadmagic`,`crustdata`,`clado`],Pm=[`clado`],Fm=[{provider:`hunter`},{provider:`amplemarket`},{provider:`leadmagic`},{provider:`findymail`},{provider:`crustdata`}],Im=r.object({pipe_id:r.literal(km),connector:C(),run_if:x(),config:r.object({providers:E({availableProviders:Nm,defaultProviders:Fm,sectionKey:`general`}),allow_catch_all_emails:D({path:`config.allow_catch_all_emails`,defaultValue:!0,groupPath:`config.general`,sectionKey:`general`,info:``,label:`Allow catch-all emails`}),allow_risky_emails:D({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({[Am.name]:T({fieldName:Am.name})})),output_fields:L(r.object({[jm.name]:O({fieldName:jm.name}),[Mm.name]:O({fieldName:Mm.name})}))}).optional()}),Lm=e=>B(G(Am,e)),Rm={"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`}},zm=class extends H{pipeId=km;payload;payloadSchema=Im;billableOperations=Rm;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return this.payload.config?.providers.map(e=>e.provider)||[]}estimateBillableOperations(){return this.getProviderNames().map(e=>q(e,this.billableOperations).billableOperation)}getInputRequirement(){return Lm(this.payload.config)}getRawOutputFields(){return{[jm.name]:this.catalogOutput(jm,{isPrimaryOutput:!0}),[Mm.name]:this.catalogOutput(Mm,{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:K(n),rateLimitOperation:e[t.provider],allowManagedConnection:!0}))}},Bm=Im,Vm={pipeId:km,basePipe:U(km),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:[z.EMAIL,z.WORK_EMAIL,z.WATERFALL],docPath:W(km),managedProviders:Nm,allowedUserConnectionProviders:Nm,deprecatedProviders:Pm,inputFieldMode:`static`,outputFieldMode:`static`,billableOperations:Rm,defaultInputRequirement:Lm(null),defaultPayload:{pipe_id:km,connector:null,run_if:null,config:{providers:Fm,allow_catch_all_emails:!0,allow_risky_emails:!0,input_fields:{profile_url:{alias:``}},output_fields:{work_email:{alias:``,enabled:!0},email_validation_status:{alias:``,enabled:!0}}}}},Hm=`people:workemail:waterfall@1`,Um=g(`name`),Wm=g(`company_website_url`),Gm=g(`company_name`),Km=g(`work_email`),qm=g(`email_validation_status`),Jm=[`leadmagic`,`prospeo`,`amplemarket`,`hunter`,`icypeas`,`findymail`],Ym=[{provider:`leadmagic`},{provider:`prospeo`},{provider:`amplemarket`},{provider:`hunter`},{provider:`icypeas`},{provider:`findymail`}],Xm=r.object({pipe_id:r.literal(Hm),connector:C(),run_if:x(),config:r.object({providers:E({availableProviders:Jm,defaultProviders:Ym,sectionKey:`general`}),allow_catch_all_emails:D({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:D({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({[Um.name]:T({fieldName:Um.name}),[Wm.name]:T({fieldName:Wm.name}),[Gm.name]:T({fieldName:Gm.name})})),output_fields:L(r.object({[Km.name]:O({fieldName:Km.name}),[qm.name]:O({fieldName:qm.name})}))}).optional()}),Zm=e=>Ua(B(G(Um,e)),V(G(Wm,e),G(Gm,e))),Qm={"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`}},$m=class extends H{pipeId=Hm;payload;payloadSchema=Xm;billableOperations=Qm;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return this.payload.config?.providers.map(e=>e.provider)||[]}estimateBillableOperations(){return this.getProviderNames().map(e=>q(e,this.billableOperations).billableOperation)}getInputRequirement(){return Zm(this.payload.config)}getRawOutputFields(){return{[Km.name]:this.catalogOutput(Km,{isPrimaryOutput:!0}),[qm.name]:this.catalogOutput(qm,{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:K(n),rateLimitOperation:e[t.provider],allowManagedConnection:!0}))}},eh=Xm,th={pipeId:Hm,basePipe:U(Hm),label:`Work email from name`,executionMode:`waterfall`,categories:[`deprecated`],lifecycle:{deprecatedOn:`2026-06-13`,replacedBy:`person:workemail:waterfall@1`},description:`Find work email addresses in a waterfall motion.`,tags:[z.EMAIL,z.WORK_EMAIL,z.WATERFALL],docPath:W(Hm),managedProviders:Jm,deprecatedProviders:[],allowedUserConnectionProviders:Jm,inputFieldMode:`static`,outputFieldMode:`static`,billableOperations:Qm,defaultInputRequirement:Zm(null),defaultPayload:{pipe_id:Hm,connector:null,run_if:null,config:{providers:Ym,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}}}}},nh=`email:iswork@1`,rh=g(`is_work_email`),ih=g(`email`),ah=r.object({pipe_id:r.literal(nh),run_if:x(),connector:w(),config:r.object({input_fields:R(r.object({[ih.name]:T({fieldName:ih.name})})),output_fields:L(r.object({[rh.name]:O({fieldName:rh.name})}))}).optional()}),oh=e=>B(G(ih,e)),sh={"email-iswork-v1-pipe0":{provider:`pipe0`,allowManagedConnection:!0,credits:{default:0},mode:`always`}},ch=class extends H{pipeId=nh;payload;payloadSchema=ah;billableOperations=sh;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[`email-iswork-v1-pipe0`]}getInputRequirement(){return oh(this.payload.config)}getRawOutputFields(){return{[rh.name]:this.catalogOutput(rh)}}getConnectionsRequirements(){return[{provider:`pipe0`,rateLimitRatio:1,rateLimitOperation:`pipe0_logic`,allowManagedConnection:!0}]}},lh=ah,uh={pipeId:nh,label:`Work email checker`,executionMode:`single`,categories:[`people_data`],lifecycle:null,description:`Check if a given email address is personal or professional.`,tags:[z.EMAIL,z.WORK_EMAIL],docPath:W(nh),billableOperations:sh,basePipe:U(nh),allowedUserConnectionProviders:[],inputFieldMode:`static`,outputFieldMode:`static`,managedProviders:[`pipe0`],deprecatedProviders:[],defaultInputRequirement:oh(null),defaultPayload:{pipe_id:nh,run_if:null,connector:null,config:{input_fields:{email:{alias:``}},output_fields:{is_work_email:{alias:``,enabled:!0}}}}};function dh(e,t){return typeof t==`string`?t:t(e)}function fh(e,t){return typeof t==`string`||t===null?t:t(e)}function ph(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:dh(e,a[r].type),format:fh(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 mh(e,t){for(let n of e.pipes){let r=n.getOutputFields();if(r[t])return{type:dh(e,r[t].type),format:fh(e,r[t].format)}}let n=e.derivedInputFields[t];if(n)return{type:n.type,format:null}}function hh(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=Wr(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=>mh(t,e)?.type||n,format:r};a.push(t.required?B(i):Wa(i))}return Ua(...a)}function J(e){let t=new Set;for(let n of e)if(n)try{let e=Wr(n);for(let n of e.secrets)t.add(n)}catch{}return[...t]}function gh(e){let t=new Set;for(let n of e)if(n)try{let e=Wr(n);for(let n of e.constants)t.add(n)}catch{}return[...t]}const _h=`email:send:gmail@1`,vh=g(`gmail_email_success`),yh=r.object({pipe_id:r.literal(_h),connector:ia(),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`}),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 }},
67
+ How do you...`]}},crustdata_post_list:{label:`Crustdata Post list`,type:`json`,format:`json_list_string`,description:`Rich JSON post list`,jsonMeta:{zodSchema:dt,exampleValue:ft}},role_finder_match:{label:`Role finder match`,type:`json`,format:`json_object`,description:`Result of a role finder operation`,jsonMeta:{zodSchema:Jt,exampleValue:Yt}},amplemarket_person_match:{label:`Person match`,type:`json`,format:`json_object`,description:`Person match object as returned by Amplemarket`,jsonMeta:{zodSchema:Pe,exampleValue:Fe}},amplemarket_company_match:{label:`Company match`,type:`json`,format:`json_object`,description:`Company match object as returned by Amplemarket`,jsonMeta:{zodSchema:Me,exampleValue:Ne}},companyenrich_matches:{label:`CompanyEnrich matches`,type:`json`,format:`json_object`,description:`CompanyEnrich response list.`,jsonMeta:{zodSchema:r.array(tt),exampleValue:[nt]}},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:At,zodSchema:kt}},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:Kt,exampleValue:qt},format:`json_object`},professional_profile_url:{label:`LinkedIn Profile URL`,type:`string`,format:`profile_url`,description:`A person's LinkedIn profile URL.`,jsonMeta:null}},gn={company_description:{},cleaned_company_name:{},company_industry:{},icypeas_person_match:{getStaticWidgets(e){if(!e)return{};let t=e;return{display_value:{label:`${t.firstname} ${t.lastname} profile`}}}},icypeas_company_match:{getStaticWidgets(e){return e?{display_value:{label:`${e.name} profile`}}:{}}},company_region:{getStaticWidgets:e=>{let t={},n=fn(e);return n&&(t.location_indicator={emoji:n}),t}},location_hint:{},estimated_revenue:{},founded_year:{},technology_list:{},spending_trend:{getStaticWidgets(e){let t=e;return{display_value:{label:`${t>3?`πŸ”ΌπŸ”ΌπŸ”Ό`:t>1?`πŸ”ΌπŸ”Ό`:t>0?`πŸ”Ό`:t<-3?`πŸ”½πŸ”½πŸ”½`:t<-1?`πŸ”½πŸ”½`:t<0?`πŸ”½`:``} ${Math.round(t*100)}%`}}}},technology_match_builtwith:{getStaticWidgets(e){return{display_value:{label:`Technology profile`}}}},number_of_social_followers:{},email:{},personal_email:{},alternate_personal_emails:{},company_news_summary:{},work_email:{},headcount:{},company_website_url:{},company_domain:{},company_name:{},first_name:{},addressee_name:{},address_line_1:{},address_line_2:{},job_title:{getStaticWidgets(){return{icon:{key:`job`}}}},job_description:{},profile_headline:{},address_city:{},address_country:{},address_state:{},zip_code:{},last_name:{},is_work_email:{},name:{},ip_address:{},skills:{},avatar_url:{},string_input:{},domain:{},url_input:{},slugified:{},http_response_status:{},http_response_body:{},http_response_headers:{},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=mn(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=mn(e);return{display_value:t?{label:t}:void 0,icon:{key:`linkedin`}}}},company_profile_url:{getStaticWidgets(e){let t=mn(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:je.linkedin}}}},crustdata_post_list:{getStaticWidgets(e){return{entity_logo:{entity:`LinkedIn`,image_url:je.linkedin}}}},crustdata_company_match:{},crustdata_company_identity_matches:{},crustdata_person_match:{},parallel_person_entity_match:{},parallel_company_entity_match:{},resend_contact_id:{},sheet_record_id:{},sheet_record_ids:{},companyenrich_match:{},companyenrich_matches:{},input_objects:{},role_finder_match:{},sheet:{},logodev_describe_match:{getStaticWidgets(){return{display_value:{label:`Match`}}}},logo_url:{getStaticWidgets(){return{display_value:{label:`Logo URL`}}}},mobile_number:{},created_sheet:{},professional_profile:{},professional_profile_url:{},crustdata_companyenrich_match:{},template_output:{},zerobounce_validation_match:{},zerobounce_validation_status:{getStaticWidgets(e){return{display_value:{label:e===`valid`?`βœ… Valid`:e===`invalid`?`❌ Invalid`:e===`catch-all`?`⚾️ Catch All`:e===`abuse`?`⚠️ Abuse`:e===`do_not_mail`?`❌❌ Do not mail`:e===`spamtrap`?`❌❌❌ Spam Trap`:e}}}},gmail_email_success:{getStaticWidgets(e){return{display_value:{label:e?`βœ… Sent`:`❌ Not sent`}}}}};function g(e){return{...hn[e],name:e}}function _n(e,t){if(yn(e,t))return gn[e]}function vn(e){return e in hn}function yn(e,t){return e in hn?hn[e].format===t:!1}const bn={completed:`Completed`,failed:`Failed`,no_result:`No result`,pending:`Pending`,processing:`Processing`,queued:`Queued`,skipped:`Skipped`};function xn(e){return bn[e]}const Sn=(e,t=`Set a ${e} connection to enable this`)=>n=>(n.connector?.connections??[]).some(t=>t?.connection?.startsWith(`${e}_`))?{disabled:!1}:{disabled:!0,message:t},Cn=(e,t)=>n=>{let r=e(n);return r!=null&&r!==``?{disabled:!1}:{disabled:!0,message:t}},wn=(...e)=>t=>{for(let n of e){let e=n(t);if(e.disabled)return e}return{disabled:!1}},Tn=(...e)=>t=>{let n={disabled:!0,message:`No condition matched`};for(let r of e){let e=r(t);if(!e.disabled)return e;n=e}return n};function En(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 Dn=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.input_objects.role_finder_match.logodev_describe_match.logo_url.crustdata_company_match.crustdata_companyenrich_match.crustdata_company_identity_matches.crustdata_person_match.parallel_person_entity_match.parallel_company_entity_match.post_list_string.crustdata_post_list.crustdata_profile_match_score.amplemarket_person_match.amplemarket_company_match.created_sheet.sheet.string_input.domain.url_input.slugified.http_response_status.http_response_body.http_response_headers.luma_id.registered_at.luma_event_guest_match.professional_profile_url.professional_profile.company_social_url.mobile_number`.split(`.`)),On=r.enum(`pipe0.findymail.crustdata.hunter.zerobounce.millionverifier.googlemaps.gemini.leadmagic.mixrank.builtwith.perplexity.serper.icypeas.prospeo.clado.resend.slack.gmail.firecrawl.exa.openai.companyenrich.logodev.amplemarket.parallel.luma`.split(`.`)),kn=r.enum([`production`,`sandbox`]),An=`prompt:run@1.company:newssummary:website@1.company:newssummary:domain@1.company:techstack:builtwith@1.company:techstack:builtwith@2.company:websiteurl:email@1.company:domain:workemail@1.company:funding:leadmagic@1.company:funding:leadmagic@2.people:workemail:waterfall@1.person:workemail:waterfall@1.people:email:iswork@1.email:iswork@1.people:name:split@1.person:name:split@1.person:name:join@1.people:validate:email:zerobounce@1.people:email:validate:zerobounce@2.email:validate:zerobounce@1.people:mobilenumber:workemail:waterfall@1.company:overview@1.company:overview@2.company:overview@3.json:extract:multi@1.email:write@1.message:write@1.email:send:resend@1.email:send:gmail@1.message:send:slack@1.template:fill@1.contact:create:resend@1.people:match:role:waterfall@1.person:match:role:waterfall@1.person:identity:amplemarket@1.company:identity@2.company:identity@3.company:identity:crustdata@1.person:match:amplemarket@1.people:phone:profile:waterfall@1.person:mobile:profileurl:waterfall@1.people:personalemail:profile:waterfall@1.person:personalemail:profileurl:waterfall@1.people:profile:waterfall@1.person:profile:waterfall@1.people:profileurl:email:waterfall@1.person:profileurl:email:waterfall@1.person:profileurl:name@1.people:email:validate:zerobounce@1.person:email:validate:millionverifier@1.people:phone:workemail:waterfall@1.person:mobile:workemail:waterfall@1.fields:merge@1.field:slugify@1.field:domainify@1.website:scrape:firecrawl@1.website:scrapelist:firecrawl@1.website:extract:firecrawl@1.website:extract:parallel@1.website:maplinks:firecrawl@1.sheet:row:append@1.sheet:row:expandappend@1.company:lookalikes:companyenrich@1.company:lookalikes:companyenrich@2.company:match:logodev@1.company:match:logodev@2.person:posts:crustdata@1.company:match:crustdata@1.company:match:crustdata@2.people:profile:workemail:crustdata@1.person:profile:workemail:crustdata@1.people:workemail:profileurl:waterfall@1.person:workemail:profileurl:waterfall@1.people:identity:email:waterfall@1.person:identity:email:waterfall@1.person:devprofileurl:profileurl:waterfall@1.http:request@1.company:identity@1.people:professionalprofile:waterfall@1.people:professionalprofileurl:name@1.people:professionalprofileurl:email:waterfall@1.people:mobilenumber:professionalprofile:waterfall@1`.split(`.`),jn=r.enum(An),Mn=[`string`,`number`,`boolean`,`json`,`unknown`],Nn=r.enum(Mn),Pn=r.union([r.number(),r.string()]),Fn=r.union([r.literal(`completed`),r.literal(`failed`),r.literal(`pending`),r.literal(`queued`),r.literal(`processing`),r.literal(`no_result`),r.literal(`skipped`)]),In=r.union([r.string().min(1),r.number(),r.boolean(),r.null(),r.record(r.string(),r.unknown()),r.array(r.unknown())]),Ln=r.object({example_value:r.any().nullable(),schema:r.any().nullable()}),Rn=r.object({}),zn=Rn.extend({image_url:r.string().url().describe(`URL to the provider's logo image.`),entity:r.string().describe(`The name of the entity.`)}),Bn=Rn.extend({emoji:r.string().describe(`Country flag emoji.`)}),Vn=Rn.extend({image_url:r.url().describe(`URL to the provider's logo image.`),name:r.string().describe(`The name of the avatar owner.`)}),Hn=Rn.extend({attempted_providers:r.array(r.object({provider:On})),available_providers:r.array(On),successful_provider:On.optional()}),Un=r.enum([`linkedin`,`job`]),Wn=Rn.extend({key:Un}).optional(),Gn=r.object({result_status:r.enum([`completed`,`failed`])}).optional(),Kn=r.object({list:r.array(r.object({source:r.string(),description:r.string().optional(),url:r.string()}))}).optional(),qn=r.object({numeric:r.int().min(1).max(5)}).optional(),Jn=r.object({display_value:r.object({label:r.string().optional()}),entity_logo:zn.optional(),location_indicator:Bn.optional(),avatar:Vn.optional(),waterfall:Hn.optional(),icon:Wn,action_summary:Gn,sources:Kn,confidence:qn}).partial().describe(`A map of widgets associated with this field for UI display, keyed by widget type.`),Yn=r.object({code:r.string(),message:r.string(),path:r.string().optional()}),Xn=r.object({code:r.string(),summary:r.string(),message:r.string()}),Zn=[`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`],Qn=r.enum(Zn);Qn.nullable();const $n=r.object({type:Nn,label:r.string().nullable().optional(),format:Qn.nullable().optional(),json_metadata:Ln.nullable().optional()}),er=r.record(r.string(),$n),tr=r.enum([...An,`input`]).nullable(),nr=r.enum([...An,`input`,`system`]).nullable(),rr=r.object({ref:tr,config_hash:r.string().nullable()}),ir=r.object({ref:nr,environment:kn.nullable(),config_hash:r.string().nullable(),input_hash:r.string().nullable()}),ar=r.object({value:In,status:Fn,type:Nn,reason:Xn.nullable(),claimed_by:rr,resolved_by:ir.nullable(),widgets:Jn.optional(),format:Qn.nullable()}),or=r.object({value:In,status:Fn,reason:Xn.nullable().optional(),type:Nn.optional(),format:Qn.nullable().optional(),claimed_by:rr.optional(),resolved_by:ir.nullable().optional(),widgets:Jn.optional()}),sr=r.record(r.string(),r.union([In,or])).openapi(`PipesInput`),cr=r.object({id:Pn,fields:r.record(Pn,ar)}),lr=r.object({type:r.literal(`catalog`),fieldName:r.string().min(1)}),ur=r.object({type:Nn,label:r.string(),added_by:r.object({ref:r.union([jn,r.literal(`input`)]),config_hash:r.string().nullable(),pipe_index:r.number().nullable()}),format:Qn.nullable(),is_primary_output:r.boolean()}),dr=r.record(r.string(),ur),fr=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:Qn.nullable().default(null),label:r.string().optional(),type:Nn})})).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)})})}),pr=r.enum([`eq`,`neq`,`gt`,`gte`,`lt`,`lte`,`contains`]),mr={eq:`equals`,neq:`not equals`,gt:`greater than`,gte:`greater than or equal`,lt:`less than`,lte:`less than or equal`,contains:`contains`},hr=[`eq`,`neq`,`gt`,`gte`,`lt`,`lte`,`contains`],gr=[`eq`,`neq`],_r=r.object({type:r.literal(`vault`),connection:r.string()}),_=r.object({strategy:r.enum([`first`]).default(`first`),connections:r.array(_r)}).nullable().optional(),vr=r.object({strategy:r.enum([`first`]).default(`first`),connections:r.array(_r).min(1,{message:`Provide your own credentials to use this object.`})},{error:`Provide your own credentials to use this object.`}),yr=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(),br=r.enum(hr),xr=r.enum(gr),Sr=r.enum([`failed`,`no_result`,`completed`,`skipped`]),Cr=r.object({action:r.enum([`run`]).default(`run`).describe(`What to do when conditions match. Defaults to "run" (run the pipe only on matching records). Reserved for future extension.`),when:r.object({logic:r.enum([`and`,`or`]).describe(`"and" = all conditions must match. "or" = any condition matches.`),conditions:r.array(r.discriminatedUnion(`property`,[r.object({property:r.literal(`value`).describe(`Compare the actual field value. Use operators: eq, neq, gt, gte, lt, lte, contains.`),field_name:r.string().min(1,{message:`Select a target field for the condition.`}).describe(`Name of a field from input data or produced by an earlier pipe in the workflow.`),operator:br.describe(`Comparison operator: "eq", "neq", "gt", "gte", "lt", "lte", "contains".`),value:r.union([r.number(),r.string(),r.boolean(),r.null()]).describe(`The value to compare the field against. Must be a primitive (string, number, boolean, or null).`).check(e=>{(e.value===void 0||e.value===``)&&e.issues.push({code:`custom`,input:e.value,message:`Provide a value to compare against.`}),typeof e.value==`object`&&e.value!==null&&e.issues.push({code:`custom`,input:e.value,message:`Conditions can only be defined on primitive fields. To apply a condition on a JSON value, expand it into an object first.`})})}),r.object({property:r.literal(`status`).describe(`Compare the field resolution status instead of its value. Use operators: eq, neq.`),field_name:r.string().min(1).describe(`Name of a field from input data or produced by an earlier pipe in the workflow.`),operator:xr.describe(`Status comparison operator: "eq" or "neq".`),value:Sr.describe(`Field status to compare against: "completed", "no_result", "failed", or "skipped".`)})])).min(1).describe(`Array of conditions to evaluate. Each condition checks either a field value or its resolution status.`)}).describe(`Condition block. All conditions are combined with the chosen logic (and/or).`)}).describe(`Run-if gate for a pipe. When set, the pipe only runs on records matching the conditions. Example: { "when": { "logic": "and", "conditions": [{ "property": "status", "field_name": "work_email", "operator": "neq", "value": "no_result" }] } }`),wr={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/9446f572-d08c-4d48-a5a5-04747fe66000/icon`,background:{light:`#D6E2FF`,dark:`#0C2052`},oAuthConfig:null},gemini:{name:`gemini`,label:`Gemini`,description:`Google's AI service`,url:`https://gemini.google.com`,public:!0,hasManagedConnections:!0,allowsUserConnections:!0,connectionType:`api_key`,logoUrl:`https://imagedelivery.net/3B3AWuP94-S3Ro5eEac6JA/417de5dd-a8a8-4210-d7dc-6f40e54ece00/icon`,background:{light:`#DDE7FF`,dark:`#1A2C5C`},oAuthConfig:null},slack:{name:`slack`,label:`Slack`,description:`A modern business chat application.`,url:`https://slack.com`,public:!0,hasManagedConnections:!1,allowsUserConnections:!0,connectionType:`oauth_token`,logoUrl:`https://imagedelivery.net/3B3AWuP94-S3Ro5eEac6JA/676e823c-c926-4b0b-465c-121b9d1c3300/icon`,background:{light:`#F1E0FF`,dark:`#2A0E44`},oAuthConfig:{}},companyenrich:{name:`companyenrich`,label:`CompanyEnrich`,description:`A company enrichment service.`,url:`https://companyenrich.com`,public:!0,hasManagedConnections:!0,allowsUserConnections:!0,connectionType:`api_key`,logoUrl:`https://imagedelivery.net/3B3AWuP94-S3Ro5eEac6JA/e80b3a16-7b36-4733-bcbe-46f471d33100/icon`,background:{light:`#DCEEFF`,dark:`#0E2C4A`},oAuthConfig:{}},mixrank:{name:`mixrank`,label:`MixRank`,description:`Ultra-high-frequency technographic and people data for your data teams.`,url:`https://mixrank.com/`,hasManagedConnections:!0,allowsUserConnections:!1,connectionType:`api_key`,oAuthConfig:{},public:!0,logoUrl:`https://imagedelivery.net/3B3AWuP94-S3Ro5eEac6JA/a29f3095-b3f9-4b12-d21b-1c506ccd7200/icon`,background:{light:`#FFE5D4`,dark:`#3A1D08`}},clado:{name:`clado`,label:`Clado`,description:`A data provider deploying 10^5 AI agents to find contact information.`,public:!0,hasManagedConnections:!0,allowsUserConnections:!0,connectionType:`api_key`,url:`https://clado.ai`,logoUrl:`https://imagedelivery.net/3B3AWuP94-S3Ro5eEac6JA/fdf3d2d0-70be-45c3-2fe5-a8c5cac55a00/icon`,background:{light:`#E8E8EC`,dark:`#1A1A1F`},oAuthConfig:null},gmail:{name:`gmail`,label:`Gmail`,description:`Google's email service`,public:!0,hasManagedConnections:!1,allowsUserConnections:!0,connectionType:`oauth_token_bundle`,url:`https://mail.google.com`,logoUrl:`https://imagedelivery.net/3B3AWuP94-S3Ro5eEac6JA/8da8ab6b-7f7e-4c42-6abf-212ea537db00/icon`,background:{light:`#FFD8D8`,dark:`#45100F`},oAuthConfig:{}},resend:{name:`resend`,label:`Resend`,description:`An email platform built for developers.`,public:!0,hasManagedConnections:!1,allowsUserConnections:!0,url:`https://clado.ai`,connectionType:`api_key`,logoUrl:`https://imagedelivery.net/3B3AWuP94-S3Ro5eEac6JA/7c88f71b-8472-40f4-4bec-0e77eac30400/icon`,background:{light:`#EDEDEE`,dark:`#1A1A1C`},oAuthConfig:null},firecrawl:{name:`firecrawl`,label:`Firecrawl`,description:`Firecrawl is an API service that takes a URL, crawls it, and converts it into clean markdown. Firecrawl crawls all accessible subpages and gives you clean markdown for each. No sitemap required.`,public:!0,hasManagedConnections:!0,allowsUserConnections:!0,url:`https://www.firecrawl.dev`,connectionType:`api_key`,logoUrl:`https://imagedelivery.net/3B3AWuP94-S3Ro5eEac6JA/5c318569-7bf4-4276-a3f2-1f25530f7f00/icon`,background:{light:`#FFE5CC`,dark:`#3A1A05`},oAuthConfig:null},exa:{name:`exa`,label:`Exa`,description:`Exa is a search engine built for AI.`,public:!0,hasManagedConnections:!0,allowsUserConnections:!0,url:`https://exa.ai/`,connectionType:`api_key`,logoUrl:`https://imagedelivery.net/3B3AWuP94-S3Ro5eEac6JA/8ae69780-4506-4952-a90e-02e70b06af00/icon`,background:{light:`#D8DCFF`,dark:`#14154A`},oAuthConfig:null},openai:{name:`openai`,label:`OpenAI`,description:`Foundational AI company based out of San Francisco.`,public:!0,hasManagedConnections:!0,allowsUserConnections:!0,url:`https://openai.com/`,connectionType:`api_key`,logoUrl:`https://imagedelivery.net/3B3AWuP94-S3Ro5eEac6JA/7ac79c3a-bccb-4ed4-d6e5-7b300b2fd300/icon`,background:{light:`#D8EFE4`,dark:`#0C2A1C`},oAuthConfig:null},millionverifier:{name:`millionverifier`,label:`MillionVerifier`,description:`E-Mail validation service.`,public:!0,hasManagedConnections:!0,allowsUserConnections:!0,url:`https://www.millionverifier.com/`,connectionType:`api_key`,logoUrl:`https://imagedelivery.net/3B3AWuP94-S3Ro5eEac6JA/7a8bd9cb-efeb-492e-3f4c-311c9492b800/icon`,background:{light:`#D8F0DB`,dark:`#0E3215`},oAuthConfig:null},logodev:{name:`logodev`,label:`Logo.dev`,description:`Every company logo, one simple API.`,public:!0,hasManagedConnections:!0,allowsUserConnections:!0,url:`https://www.logo.dev/`,connectionType:`api_key`,logoUrl:`https://imagedelivery.net/3B3AWuP94-S3Ro5eEac6JA/1defa51b-5c01-4034-1030-60f68aa46400/icon`,background:{light:`#F4ECD4`,dark:`#2C2406`},oAuthConfig:null},crustdata:{name:`crustdata`,label:`Crustdata`,description:`Real-time company & people data`,public:!0,hasManagedConnections:!0,allowsUserConnections:!0,url:`https://crustdata.com/`,connectionType:`api_key`,logoUrl:`https://imagedelivery.net/3B3AWuP94-S3Ro5eEac6JA/fa05be24-d174-40f0-69c2-4fdb43c6be00/icon`,background:{light:`#FFE2D2`,dark:`#3C1A08`},oAuthConfig:null},amplemarket:{name:`amplemarket`,label:`Amplemarket`,description:`Sales data platform`,public:!0,hasManagedConnections:!0,allowsUserConnections:!0,url:`https://www.amplemarket.com`,connectionType:`api_key`,logoUrl:`https://imagedelivery.net/3B3AWuP94-S3Ro5eEac6JA/adecf16b-4187-409b-d77f-16fc07fc6100/icon`,background:{light:`#FFD8E1`,dark:`#45102A`},oAuthConfig:null},parallel:{name:`parallel`,label:`Parallel`,description:`Agentic web search & research APIs purpose-built for AI agents.`,public:!0,hasManagedConnections:!0,allowsUserConnections:!0,url:`https://parallel.ai`,connectionType:`api_key`,logoUrl:`https://imagedelivery.net/3B3AWuP94-S3Ro5eEac6JA/13d4ae54-9400-4577-8fbf-c96021fb0000/icon`,background:{light:`#E0E5FF`,dark:`#0F1A3D`},oAuthConfig:null},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}},Tr=[`if`,`elsif`,`else`,`endif`,`unless`,`endunless`,`for`,`endfor`,`break`,`continue`,`output`],Er=[`json`,`escape`,`escape_once`,`default`,`upcase`,`downcase`,`size`,`join`,`first`,`last`,`replace`,`truncate`,`strip`,`newline_to_br`,`url_encode`],Dr=/^[A-Z][A-Z0-9_]*$/,Or=/^[A-Z][A-Z0-9_]*$/,kr=/^[a-zA-Z_][a-zA-Z0-9_]*$/,Ar=`SECRETS`,jr=`CONSTANTS`,Mr=new Set(Tr),Nr=new Set(Er),Pr=e=>`{${e}}`;var Fr=class extends i{constructor(e){super(),this.values=e}liquidMethodMissing(e){let t=String(e);if(!Dr.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]}},Ir=class extends i{constructor(e){super(),this.values=e}liquidMethodMissing(e){let t=String(e);if(!Or.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 Lr(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(!kr.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 Rr(){let e=new a({strictVariables:!1,strictFilters:!0,jsTruthy:!0,greedy:!1,catchAllErrors:!1,ownPropertyOnly:!0});e.registerTag(`output`,{parse(e,t){let n=Lr(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(Pr(n.name))}});for(let t of Object.keys(e.tags))Mr.has(t)||delete e.tags[t];for(let t of Object.keys(e.filters))Nr.has(t)||delete e.filters[t];return e}let zr=null;function Br(){return zr||=Rr(),zr}async function Vr(e,t,n={}){let r=Br(),i=n.renderLimitMs??250,a={...t.inputs??{},[Ar]:new Fr(t.secrets??{}),[jr]:new Ir(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 Hr(e,t,n={}){let r=Br(),i=n.renderLimitMs??250,a={...t.inputs??{},[Ar]:new Fr(t.secrets??{}),[jr]:new Ir(t.constants??{})},o=r.parseAndRenderSync(e,a,{globals:{__outputAllowed:n.outputAllowed===!0},renderLimit:i});return String(o)}function Ur(e){return Br().parse(e)}function Wr(e){let t=Br().parse(e),n={scopeStack:[],guardStack:[],inputs:new Map,secrets:new Set,constants:new Set,outputs:[],forDepth:0};Gr(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 Gr(e,t){for(let n of e)Kr(n,t)}function Kr(e,t){let n=e;if(n.value&&typeof n.value==`object`&&`filters`in n.value&&`initial`in n.value){Zr(n.value,t,!1);return}if(typeof n.name==`string`){qr(n,t);return}}function qr(e,t){switch(e.name){case`for`:Jr(e,t);return;case`if`:case`unless`:Yr(e,t);return;case`output`:Xr(e,t);return;case`break`:case`continue`:return;default:throw Error(`Unhandled liquid tag in analyzer: ${e.name}`)}}function Jr(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&&Qr(e.collection,t,!1);let n=typeof e.variable==`string`?e.variable:null;n&&t.scopeStack.push(n),Gr(Array.isArray(e.templates)?e.templates:[],t),n&&t.scopeStack.pop(),Gr(Array.isArray(e.elseTemplates)?e.elseTemplates:[],t),--t.forDepth}function Yr(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=ti(i.initial)),a&&t.guardStack.push(a),i&&typeof i==`object`&&Zr(i,t,!1),Gr(r.templates,t),a&&t.guardStack.pop()}Gr(Array.isArray(e.elseTemplates)?e.elseTemplates:[],t)}function Xr(e,t){let n=e.outputDecl;if(!n){let t=e.token?.args;typeof t==`string`&&(n=Lr(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 Zr(e,t,n){let r=e.filters.some(e=>e.name===`default`),i=n||r;for(let n of e.initial.postfix)ni(n)&&ei(n,t,i);for(let n of e.filters)for(let e of n.args)$r(e,t)}function Qr(e,t,n){ni(e)&&ei(e,t,n)}function $r(e,t){if(Array.isArray(e)){let n=e[1];n&&Qr(n,t,!1)}else Qr(e,t,!1)}function ei(e,t,n){let r=e.props;if(r.length===0)return;let i=r[0];if(!i||!ri(i))return;let a=i.content;if(t.scopeStack.includes(a))return;if(a===`SECRETS`){let e=r[1];if(!e||!ri(e))throw Error(`Invalid SECRETS reference β€” expected SECRETS.KEY (got ${oi(r)}).`);let n=e.content;if(!Dr.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||!ri(e))throw Error(`Invalid CONSTANTS reference β€” expected CONSTANTS.KEY (got ${oi(r)}).`);let n=e.content;if(!Or.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 ti(e){if(e.postfix.length===1){let t=e.postfix[0];if(t&&ni(t)&&t.props.length===1){let e=t.props[0];if(e&&ri(e))return e.content}}if(e.postfix.length===3){let[t,n,r]=e.postfix;if(t&&n&&r&&ni(t)&&t.props.length===1){let e=t.props[0];if(e&&ri(e)&&ii(n)&&ai(r,[`==`,`!=`]))return e.content}}return null}function ni(e){return e.kind===o.PropertyAccess}function ri(e){return!!e&&typeof e==`object`&&e.kind===o.Word}function ii(e){if(e.kind!==o.Literal)return!1;let t=e.literal;return t===`nil`||t===`null`}function ai(e,t){return e.kind===o.Operator?t.includes(e.operator):!1}function oi(e){let t=[];for(let n of e)n&&ri(n)?t.push(n.content):t.push(`?`);return t.join(`.`)}function si(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:On.parse(n),id:r}}catch{throw Error(`Connection string ${e}: Failed to parse provider name.`)}}function ci(e){return`${e.provider}_${e.id}`}const li=new s;function ui(e){return li.validateSchema(e)}function di(e){let t=!1;return c(e,{},e=>{e.type&&[`string`,`number`,`boolean`,`integer`,`null`].includes(e.type)&&(t=!0),e.type===`object`&&e.properties&&Object.keys(e.properties).length>0&&(t=!0),e.type===`array`&&e.items&&(t=!0)}),!t}const fi=[`gemini-flash-latest`,`openai-gpt-latest`,`openai-gpt-mini-latest`],pi={"gemini-flash-latest":{provider:`gemini`,rateLimitOperation:`gemini_35_flash`,rateLimitRatio:1,allowManagedConnection:!0,defaultCredits:.2,billingMode:`always`},"openai-gpt-latest":{provider:`openai`,rateLimitOperation:`openai_gpt-5`,rateLimitRatio:1,allowManagedConnection:!0,defaultCredits:.5,billingMode:`always`},"openai-gpt-mini-latest":{provider:`openai`,rateLimitOperation:`openai_gpt-5-mini`,rateLimitRatio:1,allowManagedConnection:!0,defaultCredits:.3,billingMode:`always`}};function mi(e,t){let n={};for(let r of fi){let i=pi[r],a=`${e}-${r}`;n[a]={credits:{default:t?.[r]??i.defaultCredits},allowManagedConnection:!0,provider:i.provider,mode:i.billingMode}}return n}function hi(e,t){return`${t}-${e}`}function gi(e){let t=pi[e];if(!t)throw Error(`Unknown AI model: ${e}`);return[t.provider]}function _i(e){let t=pi[e];if(!t)throw Error(`Unknown AI model: ${e}`);return[{provider:t.provider,rateLimitRatio:t.rateLimitRatio,rateLimitOperation:t.rateLimitOperation,allowManagedConnection:t.allowManagedConnection}]}function vi(){let e=new Set;for(let t of fi)e.add(pi[t].provider);return[...e]}function yi(e){if(!e?.requires)return;let t=[];e.requires.connection&&t.push(Sn(e.requires.connection));for(let n of e.requires.fields??[])t.push(Cn(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]:wn(...t)}function bi(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=En(e,n,t),s=vn(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 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 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().nullable(),boolean_input:r.boolean(),nullable_boolean_input:r.boolean().nullable(),select_input:r.string(),multi_select_input:r.array(r.string()),async_multi_select_input:r.array(r.string()),int_input:r.coerce.number().int().nullable(),number_input:r.coerce.number().optional(),min_max_int_input:r.object({min:r.number().nullable().default(null),max:r.number().nullable().default(null)}),include_exclude_input:r.object({include:r.array(r.string()).default([]),exclude:r.array(r.string()).default([])}),include_exclude_select_input:r.object({include:r.array(r.string()).default([]),exclude:r.array(r.string()).default([])}),async_include_exclude_select_input:r.object({include:r.array(r.string()).default([]),exclude:r.array(r.string()).default([])}),exact_range_input:r.record(r.string(),r.number().nullable()),range_input:r.object({from:r.number().nullable(),to:r.number().nullable()}),date_range_input:r.record(r.string(),r.string()),multi_create_input:r.array(r.string()),ordered_multi_create_input:r.array(r.string()),tagged_ordered_multi_create_input:r.array(r.string()),key_value_list_input:r.array(r.object({key:r.string(),value:r.string()})),connector_input:r.object({connections:r.array(r.object({type:r.string(),connection:r.string()}))}).nullable(),providers_input:r.array(r.object({provider:r.string()})),json_extraction_input:r.record(r.string(),r.unknown()),pipes_run_if_input:r.record(r.string(),r.unknown()).nullable(),fields_select_input:r.array(r.object({field_name:r.string()})),output_field_input:r.object({alias:r.string(),enabled:r.boolean()}),json_schema_input:r.record(r.string(),r.unknown()),cursor_pagination_metadata:r.object({limit:r.number()}),context_select_input:r.union([r.string(),r.array(r.string())])},xi=(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},Si=(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},Ci=/^\s*\{\{\s*[a-zA-Z_][a-zA-Z0-9_.]*(?:\s*\|\s*[^}]+)?\s*\}\}\s*$/,wi=/\{\{|\{%/,Ti=(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=Ci.test(e),i=wi.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===v){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},Ei=(e,t)=>{let n=b.key_value_list_input;e.maxItems&&(n=n.max(e.maxItems)),n=n.check(e=>{let t=e;(t.value??[]).forEach((e,n)=>{ea({value:e.key,issues:t.issues},!1,[n,`key`]),ea({value:e.value,issues:t.issues},!1,[n,`value`])})}),n=n.default([]);let r={type:`key_value_list_input`,...e},i=e=>{let t=e.validationContext,n=t?Object.entries(t.fieldDefinitions).filter(([t,n])=>n.added_by.config_hash!==e.hash).map(([e,t])=>({...t,resolvedName:e})):[];return{...r,inputFields:n}};return i.staticMeta={...r,inputFields:[]},t.add(n,i),n},Di=(e,t)=>{let n=e.maxItems||200,r=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)`})}),i=e.required?r:r.default({include:[],exclude:[]});return e.description&&i.describe(e.description),t.add(i,{type:`include_exclude_input`,...e}),i},Oi=()=>{let e=fr;return v.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}=bi(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},ki=(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:wr[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},Ai=(e,t)=>{let n=e.maxItems||200,r=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)`})}),i=e.required?r:r.default({include:[],exclude:[]});return e.description&&i.describe(e.description),t.add(i,{type:`include_exclude_select_input`,...e}),i},ji=(e,t)=>{let n=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`}`})});return e.description&&n.describe(e.description),t.add(n,{type:`exact_range_input`,...e}),n},Mi=(e,t)=>{let n=r.object({from:r.number().optional().nullable(),to:r.number().optional().nullable()}).default({from:null,to:null}),i=n;return(e.min!==void 0||e.max!==void 0)&&(i=n.check(t=>{Object.values(t.value).filter(e=>e!=null).every(t=>(e?.min==null||t>=e.min)&&(e.max==null||t<=e.max))||t.issues.push({code:`custom`,input:t.value,message:`Values must be between ${e.min??`any`} and ${e.max??`any`}`}),t.value.from&&t.value.to&&t.value.from>t.value.to&&t.issues.push({code:`custom`,input:t.value,message:`'From' value must be smaller than 'to' value.`})})),e.description&&i.describe(e.description),t.add(i,{type:`range_input`,...e}),i},Ni=(e,t)=>{let n=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`})});return e.description&&n.describe(e.description),t.add(n,{type:`date_range_input`,...e}),n},Pi=(e,t)=>{let n=b.boolean_input.default(e.defaultValue);return e.description&&n.describe(e.description),t.add(n,{...e,required:!1,type:`boolean_input`}),n},Fi=(e,t)=>{let n=b.nullable_boolean_input.default(e.defaultValue);return e.description&&n.describe(e.description),t.add(n,{...e,required:!1,type:`nullable_boolean_input`,defaultValue:e.defaultValue}),n},Ii=(e,t)=>{let n=b.text_input;return e.minLength&&(n=n.min(e.minLength)),e.maxLength&&(n=n.max(e.maxLength)),e.pattern&&(n=n.regex(new RegExp(e.pattern))),e.minLength||(n=n.nullable()),e.description&&n.describe(e.description),t.add(n,{type:`text_input`,...e}),n},Li=(e,t)=>{let n=b.textarea_input;return e.minLength&&(n=n.min(e.minLength)),e.maxLength&&(n=n.max(e.maxLength)),e.description&&n.describe(e.description),t.add(n,{type:`textarea_input`,...e}),n},Ri=(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})},zi=(e,t)=>{let n=b.int_input.optional().check(t=>{if(t.value==null){e.required!==!1&&t.issues.push({code:`custom`,input:t.value,message:`Required`});return}e.min!=null&&t.value<e.min&&t.issues.push({code:`custom`,input:t.value,message:`Value must be at least ${e.min}`}),e.max!=null&&t.value>e.max&&t.issues.push({code:`custom`,input:t.value,message:`Value must be at most ${e.max}`})});return e.description&&n.describe(e.description),t.add(n,{...e,type:`int_input`}),n},Bi=(e,t)=>{let n=b.number_input.check(t=>{if(t.value===void 0){e.required&&t.issues.push({code:`custom`,input:t.value,message:`Required`});return}e.min!=null&&t.value<e.min&&t.issues.push({code:`custom`,input:t.value,message:`Value must be at least ${e.min}`}),e.max!=null&&t.value>e.max&&t.issues.push({code:`custom`,input:t.value,message:`Value must be at most ${e.max}`})});return e.description&&n.describe(e.description),t.add(n,{...e,type:`number_input`}),n},Vi=(e,t)=>{let n=b.json_schema_input,r=e.required?n:n.optional();return r.check(e=>{ui(e.value)||e.issues.push({code:`custom`,input:e.value,message:`JSON schema is invalid. Check your input.`})}),e.allowEmpty||(r=r.check(e=>{di(e.value)&&e.issues.push({code:`custom`,message:`JSON Schema must define a meaningful value. Can not be an empty object or array.`,input:e.value})})),t.add(r,{...e,type:`json_schema_input`}),r},Hi=(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=e.defaultValue?i.default(e.defaultValue):i;return e.description&&a.describe(e.description),t.add(a,{type:`select_input`,...e}),a},Ui=({billableOperations:e,...t},n)=>{let i=r.enum(fi).default(t.defaultValue||`gemini-flash-latest`);return n.add(i,{type:`select_input`,options:fi.map(t=>{let n=e[Object.keys(e).find(e=>e.endsWith(`-${t}`))];if(!n)throw Error(`Unable to find billing info for model ${t}`);return{label:t,value:t,widgets:{logo:{url:wr[pi[t].provider].logoUrl},pricing:{credits:n.credits.default}}}}),required:!0,description:``,label:`AI Models`,...t}),i},Wi=(e,t)=>{let n=e.options.map(e=>e.value),i=new Set(n),a=r.array(r.enum(Array.from(i))).check(t=>{e.required&&t.value.length===0&&t.issues.push({code:`custom`,input:t.value,message:`Required`}),t.value.forEach((e,r)=>{i.has(e)||t.issues.push({code:`custom`,input:e,path:[r],message:`Must be one of: ${n.join(`, `)}`})})}),o=e.required?a:a.default([]);return t.add(o,{type:`multi_select_input`,...e}),o},Gi=(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??yi(e.optionsDef);return t.add(r,{type:`context_select_input`,...e,enabledIf:i,options:[]}),r},Ki=(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}`})}}}),r=e.required?n:n.default({min:null,max:null});return t.add(r,{type:`min_max_int_input`,...e}),r},qi=(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`})}),r=e.required?n:n.default([]);return t.add(r,{type:`async_multi_select_input`,...e}),r},Ji=(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)`})}),i=e.required?r:r.default({include:[],exclude:[]});return t.add(i,{type:`async_include_exclude_select_input`,...e}),i};function Yi(e,t){let n=e.reduce((e,t)=>{let n=t.groupPath||``;return e[n]??=[],e[n].push(t),e},{});return Object.entries(n).map(([e,n])=>({type:`group`,groupPath:e,description:t[e]?.description,label:t[e]?.label,iconKey:t[e]?.iconKey,defaultExpand:!!t[e]?.defaultExpand,order:t[e]?.order??99,fields:n.sort((e,t)=>(e.order||0)-(t.order||0))})).sort((e,t)=>e.order-t.order)}const x=()=>{let e=Cr.nullish();return v.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},Xi={pipe_io:{type:`form_section`,label:`In- and outputs`,description:`Configure output fields and reassign inputs.`,path:`config.pipe_io`},pagination:{type:`form_section`,path:`pagination`},"config.filters":{type:`form_section`,label:`Filters`,path:`config.filters`,description:`Narrow down the search output`},general:{type:`form_section`,path:`general`,label:`Behavior`}},Zi={general:1,pagination:2,"config.filters":3,pipe_io:10};function Qi({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 $i=({schema:e,groupPathMatch:t,extractFromSchema:n,sectionOrder:i=Zi,sectionMap:a=Xi,store:o,formResolvers:s})=>{let c={};function l(e){let i=n(e);if(i){c[i.sectionKey]??={type:`section`,groups:[],metadata:a[i.sectionKey]};let e=c[i.sectionKey],n=e?.groups.find(e=>e.groupPath===i.groupPath);if(n){let e=Qi({fieldMetadata:i,store:o,formResolvers:s});e&&n.fields.push(e)}else{let n=t[i.groupPath],r=Qi({fieldMetadata:i,store:o,formResolvers:s});r&&e.groups.push({groupPath:i.groupPath,fields:[r],type:`group`,label:n?.label,defaultExpand:!!n?.defaultExpand,description:n?.description,iconKey:n?.iconKey,order:n?.order})}}if(typeof e==`object`&&`unwrap`in e&&typeof e.unwrap==`function`&&l(e.unwrap()),e instanceof r.ZodObject)for(let t of Object.values(e.shape))l(t)}l(e);let u=Object.values(c);return u.forEach(e=>{e.groups.sort((e,t)=>(e.order??99)-(t.order??99))}),[...u].filter(e=>e.groups.length!==0).sort((e,t)=>(i?.[e.metadata?.path||``]??99)-(i?.[t.metadata?.path||``]??99))};function ea(e,t,n=[]){let r=e.value;if(!(typeof r!=`string`||!r))try{let i=Wr(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 ta=e=>{let t=(e.supportedTags??[]).includes(`output`),n=r.object({template:r.string().min(10).check(e=>ea(e,t,[])).describe(e.description||'Liquid prompt with `{{ field }}` input refs, `{{ field | default: "" }}` for optional refs, `{{ SECRETS.KEY }}` for secrets, `{{ CONSTANTS.KEY }}` for plaintext constants, and `{% output name, type: "string", description: "..." %}` to declare model outputs. Supports `{% if %}` / `{% for %}` control flow. Example: "Summarize {{ name }}. {% output summary, type: \\"string\\", description: \\"One-line summary\\" %}"'),json_schemas:r.record(r.string().min(1,`Schema name cannot be empty`),r.record(r.string(),r.any())).optional().describe(`JSON schemas for output fields with type="json". Keys are referenced via schema="<name>" in output tags.`)});return v.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},na=e=>{let t=r.string();e.required&&(t=t.min(1));let n=t.check(e=>ea(e,!1,[])).describe(e.description||'Liquid template with `{{ field }}` input refs, `{{ field | default: "" }}` for optional refs, `{{ SECRETS.KEY }}` for secrets, `{{ CONSTANTS.KEY }}` for plaintext constants, and `{% if %}` / `{% for %}` control flow. Example: "Write to {{ name }} about {{ topic | default: \\"the project\\" }}."');return v.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))),e.minLength||(n=n.nullable()),n=n.check(e=>ea(e,!1,[])),n=n.describe(e.description||t);let i=e.optionsDef?{...e.optionsDef,enabledIf:e.optionsDef.enabledIf??yi(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:[]},v.add(n,o),n};function ra(e,t){v.add(e,({userConnections:e,pipeEntry:n})=>{let r=new Set(n.allowedUserConnectionProviders),i=e.filter(e=>r.has(e.provider));return{label:``,description:``,groupPath:`connector`,path:`connector`,connectorMode:t,type:`connector_input`,sectionKey:`pipe_io`,supportsUserConnections:r.size>0,filteredConnections:i.map(e=>({provider:e.provider,connection:ci({id:e.public_id,provider:e.provider})}))}})}const ia=()=>{let e=vr;return ra(e,`required`),e},C=()=>{let e=_;return ra(e,`optional`),e},w=()=>{let e=yr;return ra(e,`disabled`),e};function aa(e,t){y.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:``,description:``,groupPath:`connector`,path:`connector`,connectorMode:t,type:`connector_input`,sectionKey:`pipe_io`,supportsUserConnections:i.size>0,filteredConnections:a.map(e=>({provider:e.provider,connection:ci({id:e.public_id,provider:e.provider})}))}})}const oa=()=>{let e=vr;return aa(e,`required`),e},sa=()=>{let e=_;return aa(e,`optional`),e};function ca(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 T=e=>{let t=r.object({alias:r.string().describe(`Override field name mapping. Leave empty to use default.`)});return v.add(t,t=>{let n=t.validationContext;return{type:`select_input`,required:!1,sectionKey:`pipe_io`,defaultValue:void 0,placeholder:e.fieldName,options:ca(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:``})},E=e=>ki(e,v),la=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([]),v.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},ua=e=>Di(e,v),da=e=>xi(e,v),fa=e=>Si(e,v),pa=e=>Ti(e,v),ma=e=>Ei(e,v),ha=e=>Ai(e,v),ga=e=>Ji(e,v),_a=e=>ji(e,v),va=e=>Ni(e,v),D=e=>Pi(e,v),O=e=>Ri(e,v),ya=e=>Ii(e,v),ba=e=>Li(e,v),xa=e=>Hi(e,v),Sa=e=>Ui(e,v),Ca=e=>Wi(e,v),wa=e=>zi(e,v),Ta=e=>Bi(e,v),Ea=e=>Vi(e,v),Da=e=>Gi(e,v),k=e=>xi(e,y),Oa=e=>Si(e,y),ka=e=>Ki(e,y),A=e=>Di(e,y),j=e=>Ai(e,y),Aa=e=>ji(e,y),ja=e=>Mi(e,y),Ma=e=>Ni(e,y),Na=e=>Pi(e,y),Pa=e=>Fi(e,y),M=e=>Ri(e,y,`pipe_io`),Fa=e=>Ii(e,y),Ia=e=>Li(e,y),La=e=>Hi(e,y),Ra=e=>Gi(e,y),N=e=>Wi(e,y),P=e=>qi(e,y),F=e=>Ji(e,y),I=e=>zi(e,y),za=e=>Bi(e,y),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 Ba(e,t){if(!e)return t;let n={...e};for(let[e,r]of Object.entries(t))n[e]===void 0?n[e]=r:n[e]!==null&&typeof n[e]==`object`&&!Array.isArray(n[e])&&typeof r==`object`&&r&&!Array.isArray(r)&&(n[e]=Ba(n[e],r));return n}const z={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 ❌`},Va=e=>typeof e.kind==`string`,Ha=e=>Va(e)?e:{kind:`field`,field:e},B=e=>({kind:`field`,field:e}),Ua=(...e)=>({kind:`all`,of:e.map(Ha)}),V=(...e)=>({kind:`any`,of:e.map(Ha)}),Wa=e=>({kind:`optional`,field:e});function Ga(e,t){switch(e.kind){case`optional`:return!0;case`field`:return t.has(e.field.resolvedName);case`all`:return e.of.every(e=>Ga(e,t));case`any`:return e.of.some(e=>Ga(e,t))}}function Ka(e){switch(e.kind){case`field`:return[{field:e.field,required:!0}];case`optional`:return[{field:e.field,required:!1}];case`all`:case`any`:return e.of.flatMap(Ka)}}function qa(e,t){let n=Ja(e,t);return n.ok?{valid:!0,failedPipeInputField:null,failedRecordField:null}:{valid:!1,failedPipeInputField:n.field,failedRecordField:n.recordField}}function Ja(e,t){switch(e.kind){case`optional`:return{ok:!0};case`field`:{let n=t.fields[e.field.resolvedName];if(!n)throw Error(`Record field does not exist ${e.field.name} for requirement.`);return n.status===`completed`||n.status===`queued`?{ok:!0}:{ok:!1,field:e.field,recordField:n}}case`all`:for(let n of e.of){let e=Ja(n,t);if(!e.ok)return e}return{ok:!0};case`any`:{let n=null,r=!1;for(let i of e.of)try{let e=Ja(i,t);if(r=!0,e.ok)return{ok:!0};n=e}catch{}return r?n:{ok:!0}}}}function Ya(e){if(typeof e!=`object`||!e)return e;if(Array.isArray(e))return e.map(Ya).filter(e=>!Wt(e));let t={};for(let[n,r]of Object.entries(e)){let e=Ya(r);Wt(e)||(t[n]=e)}return t}const Xa=await l();var Za=class e{static hashObject(t){if(!Xa)throw Error(`HashAPI not initialized`);let{h64ToString:n}=Xa,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 Qa(e,t){let n={pipeId:e,config:Ya(t)};return Za.hashObject(n)}function $a(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:Za.hashObject(Ya(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[]}catalogOutput(e,{isPrimaryOutput:t=!1,resolveFormat:n,resolveType:r}={resolveType:void 0,resolveFormat:void 0,isPrimaryOutput:!1}){return{name:e.name,enabled:!!this.payload.config?.output_fields?.[e.name].enabled,type:r||e.type,format:n||e.format,resolvedName:this.payload.config?.output_fields?.[e.name]?.alias||e.name,description:e.description,jsonMeta:e.jsonMeta,label:e.label,isCatalogFIeld:!0,isPrimaryOutput:t}}getOutputFields(){let e={};for(let[t,n]of Object.entries(this.getRawOutputFields()))n.enabled&&(e[t]=n);return e}get inputFields(){let e={};for(let{field:t}of Ka(this.getInputRequirement()))e[t.name]=t;return e}getConfigHashKey(){return Qa(this.payload.pipe_id,this.payload.config||{})}getInputHashKey(e){return $a(e,this.inputFields)}};function eo(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 to(e){return Ka(e).map(({field:e})=>e)}function no({recordField:e,value:t,resolvedBy:n,widgets:r}){return e.value=t,e.status=`completed`,e.resolved_by=n,e.widgets=r,e}function ro({recordField:e}){return e.status=`pending`,e.resolved_by=null,e.value=null,e}function io({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 ao(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 oo(e,t){return e.value=null,e.status=`skipped`,e.resolved_by=null,e.reason=t,e.widgets={},e}function so(e){return e.value=null,e.status=`processing`,e.resolved_by=null,e.widgets={},e}function U(e){return e.split(`@`)[0]}function W(e){return`/docs/pipe-catalog/${U(e)}/${e.split(`@`)[1]}`}function G(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 co=`company:domain:workemail@1`,lo=g(`company_domain`),uo=g(`work_email`),fo=r.object({pipe_id:r.literal(co),run_if:x(),connector:w(),config:r.object({input_fields:R(r.object({[uo.name]:T({fieldName:uo.name})})),output_fields:L(r.object({[lo.name]:O({fieldName:lo.name})}))}).optional()}),po=e=>B(G(uo,e)),mo={"company-domain-workemail-v1-pipe0":{credits:{default:0},allowManagedConnection:!0,mode:`always`,provider:`pipe0`}},ho=class extends H{pipeId=co;payload;payloadSchema=fo;billableOperations=mo;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[`company-domain-workemail-v1-pipe0`]}getInputRequirement(){return po(this.payload.config)}getRawOutputFields(){return{[lo.name]:this.catalogOutput(lo)}}getConnectionsRequirements(){return[{provider:`pipe0`,rateLimitRatio:1,rateLimitOperation:`pipe0_logic`,allowManagedConnection:!0}]}},go=fo,_o={pipeId:co,basePipe:U(co),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:[z.EMAIL,z.WORK_EMAIL,z.WEBSITE],docPath:W(co),allowedUserConnectionProviders:[],managedProviders:[`pipe0`],deprecatedProviders:[],billableOperations:mo,defaultInputRequirement:po(null),defaultPayload:{pipe_id:co,connector:null,run_if:null,config:{input_fields:{[uo.name]:{alias:``}},output_fields:{[lo.name]:{alias:``,enabled:!0}}}}},vo=`company:funding:leadmagic@2`,yo=g(`company_name`),bo=g(`company_domain`),xo=g(`funding_history`),So=g(`funding_total_usd`),Co=g(`leadmagic_competitor_list`),wo=g(`leadmagic_acquisition_history`),To=g(`leadmagic_company_news_list`),Eo=r.object({pipe_id:r.literal(vo),connector:C(),run_if:x(),config:r.object({input_fields:R(r.object({[yo.name]:T({fieldName:yo.name}),[bo.name]:T({fieldName:bo.name})})),output_fields:L(r.object({[xo.name]:O({fieldName:xo.name}),[So.name]:O({fieldName:So.name}),[Co.name]:O({fieldName:Co.name}),[wo.name]:O({fieldName:wo.name}),[To.name]:O({fieldName:To.name})}))}).optional()}),Do=e=>V(G(yo,e),G(bo,e)),Oo={"company-funding-leadmagic-v2-leadmagic":{provider:`leadmagic`,allowManagedConnection:!0,credits:{default:2},mode:`onSuccess`}},ko=class extends H{pipeId=vo;payload;payloadSchema=Eo;billableOperations=Oo;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`leadmagic`]}estimateBillableOperations(){return[`company-funding-leadmagic-v2-leadmagic`]}getInputRequirement(){return Do(this.payload.config)}getRawOutputFields(){return{[xo.name]:this.catalogOutput(xo),[So.name]:this.catalogOutput(So),[wo.name]:this.catalogOutput(wo),[To.name]:this.catalogOutput(To),[Co.name]:this.catalogOutput(Co)}}getConnectionsRequirements(){return[{provider:`leadmagic`,rateLimitRatio:1,rateLimitOperation:`leadmagic_company_funding`,allowManagedConnection:!0}]}},Ao=Eo,jo={pipeId:vo,basePipe:U(vo),label:`Funding history`,executionMode:`single`,categories:[`company_data`],lifecycle:null,description:`Information on funding rounds, acquisition, competitors, and investors.`,tags:[z.FINANCIAL_DATA],docPath:W(vo),billableOperations:Oo,inputFieldMode:`static`,outputFieldMode:`static`,allowedUserConnectionProviders:[`leadmagic`],managedProviders:[`leadmagic`],deprecatedProviders:[],defaultInputRequirement:Do(null),defaultPayload:{pipe_id:vo,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:``}}}}},Mo=g(`company_name`),No=g(`company_profile_url`),Po=g(`company_domain`),Fo=g(`cleaned_company_name`),Io=`company:identity@3`,Lo=r.object({pipe_id:r.literal(Io),run_if:x(),connector:w(),config:r.object({input_fields:R(r.object({[Mo.name]:T({fieldName:Mo.name})})),output_fields:L(r.object({[No.name]:O({fieldName:No.name}),[Fo.name]:O({fieldName:Fo.name}),[Po.name]:O({fieldName:Po.name})}))}).optional()}),Ro=e=>B(G(Mo,e)),zo={"company-identity-v3-pipe0":{allowManagedConnection:!0,credits:{default:.3,level1:{credits:.2,weight:1}},mode:`always`,provider:`pipe0`}},Bo=class extends H{pipeId=Io;payload;payloadSchema=Lo;billableOperations=zo;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[`company-identity-v3-pipe0`]}getInputRequirement(){return Ro(this.payload.config)}getRawOutputFields(){return{[No.name]:this.catalogOutput(No),[Po.name]:this.catalogOutput(Po),[Fo.name]:this.catalogOutput(Fo)}}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}]}},Vo=Lo,Ho={pipeId:Io,inputFieldMode:`static`,outputFieldMode:`static`,basePipe:U(Io),label:`Company identity`,executionMode:`mix`,categories:[`company_data`],lifecycle:null,description:`Find any company's website URL, LinkedIn profile URL, and cleaned name.`,tags:[z.WEBSITE,z.LINKEDIN],docPath:W(Io),billableOperations:zo,allowedUserConnectionProviders:[],managedProviders:[`pipe0`],deprecatedProviders:[],defaultInputRequirement:Ro(null),defaultPayload:{pipe_id:Io,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}}}}},Uo=g(`company_domain`),Wo=g(`company_name`),Go=g(`crustdata_company_identity_matches`),Ko=`company:identity:crustdata@1`,qo=r.object({pipe_id:r.literal(Ko),run_if:x(),connector:C(),config:r.object({input_fields:R(r.object({[Uo.name]:T({fieldName:Uo.name}),[Wo.name]:T({fieldName:Wo.name})})),output_fields:L(r.object({[Go.name]:O({fieldName:Go.name})}))}).optional()}),Jo=e=>V(G(Uo,e),G(Wo,e)),Yo={"company-identity-crustdata-v1-crustdata":{allowManagedConnection:!0,credits:{default:.001},mode:`onSuccess`,provider:`crustdata`}},Xo=class extends H{pipeId=Ko;payload;payloadSchema=qo;billableOperations=Yo;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`crustdata`]}estimateBillableOperations(){return[`company-identity-crustdata-v1-crustdata`]}getInputRequirement(){return Jo(this.payload.config)}getRawOutputFields(){return{[Go.name]:this.catalogOutput(Go)}}getConnectionsRequirements(){return[{provider:`crustdata`,rateLimitRatio:1,rateLimitOperation:`crustdata_company_identify`,allowManagedConnection:!0}]}},Zo=qo,Qo={pipeId:Ko,inputFieldMode:`static`,outputFieldMode:`static`,basePipe:U(Ko),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:[z.WEBSITE,z.LINKEDIN],docPath:W(Ko),billableOperations:Yo,allowedUserConnectionProviders:[`crustdata`],managedProviders:[`crustdata`],deprecatedProviders:[],defaultInputRequirement:Jo(null),defaultPayload:{pipe_id:Ko,connector:null,run_if:null,config:{input_fields:{company_domain:{alias:``},company_name:{alias:``}},output_fields:{crustdata_company_identity_matches:{alias:``,enabled:!0}}}}},$o=g(`company_domain`),es=g(`companyenrich_matches`),ts=`company:lookalikes:companyenrich@2`,ns=r.object({pipe_id:r.literal(ts),run_if:x(),connector:C(),config:r.object({limit:wa({groupPath:`config.general`,max:50,min:1,path:`config.limit`,required:!0,sectionKey:`general`,info:`Define how many lookalikes you want to find.`,label:`Limit`}),input_fields:R(r.object({[$o.name]:T({fieldName:$o.name})})),output_fields:L(r.object({[es.name]:O({fieldName:es.name})}))}).optional()}),rs=e=>B(G($o,e)),is={"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`}},as=class extends H{pipeId=ts;payload;payloadSchema=ns;billableOperations=is;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`companyenrich`]}estimateBillableOperations(){return[,,,,,].fill(`lookalikes-companyenrich`)}getInputRequirement(){return rs(this.payload.config)}getRawOutputFields(){return{[es.name]:this.catalogOutput(es)}}getConnectionsRequirements(){return[{provider:`companyenrich`,rateLimitRatio:1,rateLimitOperation:`company_enrich_generic`,allowManagedConnection:!0}]}},os=ns,ss={pipeId:ts,inputFieldMode:`static`,outputFieldMode:`static`,basePipe:U(ts),label:`Find company lookalikes`,executionMode:`single`,categories:[`company_data`],lifecycle:null,description:`Find companies similar to the company you provide as input.`,tags:[z.COMPANY_PROFILES],docPath:W(ts),billableOperations:is,allowedUserConnectionProviders:[`companyenrich`],managedProviders:[`companyenrich`],deprecatedProviders:[],defaultInputRequirement:rs(null),defaultPayload:{pipe_id:ts,connector:null,run_if:null,config:{limit:20,input_fields:{company_domain:{alias:``}},output_fields:{companyenrich_matches:{alias:``,enabled:!0}}}}},cs=g(`company_domain`),ls=g(`crustdata_companyenrich_match`),us=`company:match:crustdata@2`,ds=r.object({pipe_id:r.literal(us),run_if:x(),connector:C(),config:r.object({input_fields:R(r.object({[cs.name]:T({fieldName:cs.name})})),output_fields:L(r.object({[ls.name]:O({fieldName:ls.name})}))}).optional()}),fs=e=>B(G(cs,e)),ps={"company-match-crustdata-v2-crustdata":{allowManagedConnection:!0,credits:{default:2.5,level1:{credits:1.2,weight:1}},mode:`onSuccess`,provider:`crustdata`}},ms=class extends H{pipeId=us;payload;payloadSchema=ds;billableOperations=ps;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`crustdata`]}estimateBillableOperations(){return[`company-match-crustdata-v2-crustdata`]}getInputRequirement(){return fs(this.payload.config)}getRawOutputFields(){return{[ls.name]:this.catalogOutput(ls)}}getConnectionsRequirements(){return[{provider:`crustdata`,rateLimitRatio:1,rateLimitOperation:`crustdata_company_enrich`,allowManagedConnection:!0}]}},hs=ds,gs={pipeId:us,inputFieldMode:`static`,outputFieldMode:`static`,basePipe:U(us),label:`Company match`,executionMode:`single`,categories:[`company_data`],lifecycle:null,description:`Company data like headcount distribution, LinkedIn URLs etc. via the Crustdata API.`,tags:[z.WEBSITE,z.LINKEDIN],docPath:W(us),billableOperations:ps,allowedUserConnectionProviders:[`crustdata`],managedProviders:[`crustdata`],deprecatedProviders:[],defaultInputRequirement:fs(null),defaultPayload:{pipe_id:us,connector:null,run_if:null,config:{input_fields:{company_domain:{alias:``}},output_fields:{crustdata_companyenrich_match:{alias:``,enabled:!0}}}}},_s=g(`company_domain`),vs=g(`company_name`),ys=g(`company_profile_url`),bs=g(`logodev_describe_match`),xs=g(`logo_url`),Ss=`company:match:logodev@2`,Cs=r.object({pipe_id:r.literal(Ss),run_if:x(),connector:C(),config:r.object({input_fields:R(r.object({[_s.name]:T({fieldName:_s.name})})),output_fields:L(r.object({[ys.name]:O({fieldName:ys.name}),[xs.name]:O({fieldName:xs.name}),[vs.name]:O({fieldName:vs.name}),[bs.name]:O({fieldName:bs.name})}))}).optional()}),ws=e=>B(G(_s,e)),Ts={"company-match-logodev-v2-logodev":{allowManagedConnection:!0,credits:{default:.1},mode:`onSuccess`,provider:`logodev`}},Es=class extends H{pipeId=Ss;payload;payloadSchema=Cs;billableOperations=Ts;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`logodev`]}estimateBillableOperations(){return[`company-match-logodev-v2-logodev`]}getInputRequirement(){return ws(this.payload.config)}getRawOutputFields(){return{[ys.name]:this.catalogOutput(ys),[vs.name]:this.catalogOutput(vs),[xs.name]:this.catalogOutput(xs),[bs.name]:this.catalogOutput(bs)}}getConnectionsRequirements(){return[{provider:`logodev`,rateLimitRatio:1,rateLimitOperation:`logodev_describe`,allowManagedConnection:!0}]}},Ds=Cs,Os={pipeId:Ss,inputFieldMode:`static`,outputFieldMode:`static`,basePipe:U(Ss),label:`Company match`,executionMode:`single`,categories:[`company_data`],lifecycle:null,description:`Find brand data like logos, colors, and social links via the Logo.dev API.`,tags:[z.WEBSITE,z.LINKEDIN],docPath:W(Ss),billableOperations:Ts,allowedUserConnectionProviders:[`logodev`],managedProviders:[`logodev`],deprecatedProviders:[],defaultInputRequirement:ws(null),defaultPayload:{pipe_id:Ss,connector:null,run_if:null,config:{input_fields:{company_domain:{alias:``}},output_fields:{company_profile_url:{alias:``,enabled:!0},logo_url:{alias:``,enabled:!0},logodev_describe_match:{alias:``,enabled:!0},company_name:{alias:``,enabled:!1}}}}},ks=`company:newssummary:domain@1`,As=g(`company_news_summary`),js=g(`company_domain`),Ms=r.object({pipe_id:r.literal(ks),run_if:x(),connector:C(),config:r.object({input_fields:R(r.object({[js.name]:T({fieldName:js.name})})),output_fields:L(r.object({[As.name]:O({fieldName:As.name})}))}).optional()}),Ns=e=>B(G(js,e)),Ps={"company-newssummary-domain-v1-pipe0":{allowManagedConnection:!0,credits:{default:2},mode:`always`,provider:`pipe0`}},Fs=class extends H{pipeId=ks;payloadSchema=Ms;billableOperations=Ps;payload;constructor(e){super(),this.payload=e}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[`company-newssummary-domain-v1-pipe0`]}getInputRequirement(){return Ns(this.payload.config)}getRawOutputFields(){return{[As.name]:this.catalogOutput(As)}}getConnectionsRequirements(){return[{provider:`parallel`,rateLimitRatio:4,rateLimitOperation:`parallel_search_base`,allowManagedConnection:!0},{provider:`gemini`,rateLimitRatio:1,rateLimitOperation:`gemini_35_flash`,allowManagedConnection:!0}]}},Is=Ms,Ls={pipeId:ks,basePipe:U(ks),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:[z.NEWS],docPath:W(ks),billableOperations:Ps,allowedUserConnectionProviders:[],managedProviders:[`pipe0`],deprecatedProviders:[],defaultInputRequirement:Ns(null),defaultPayload:{pipe_id:ks,run_if:null,connector:null,config:{input_fields:{company_domain:{alias:``}},output_fields:{company_news_summary:{alias:``,enabled:!0}}}}},Rs=g(`company_domain`),zs=g(`company_profile_url`),Bs=g(`company_description`),Vs=g(`company_industry`),Hs=g(`company_region`),Us=g(`headcount`),Ws=g(`estimated_revenue`),Gs=g(`founded_year`),Ks=g(`company_name`),qs=`company:overview@3`,Js=r.object({pipe_id:r.literal(qs),run_if:x(),connector:w(),config:r.object({input_fields:R(r.object({[Rs.name]:T({fieldName:Rs.name}),[zs.name]:T({fieldName:zs.name})})),output_fields:L(r.object({[Bs.name]:O({fieldName:Bs.name}),[Vs.name]:O({fieldName:Vs.name}),[Hs.name]:O({fieldName:Hs.name}),[Us.name]:O({fieldName:Us.name}),[Ws.name]:O({fieldName:Ws.name}),[Gs.name]:O({fieldName:Gs.name}),[Ks.name]:O({fieldName:Ks.name})}))}).optional()}),Ys=e=>V(G(Rs,e),G(zs,e)),Xs={"company-overview-v3-pipe0":{provider:`pipe0`,allowManagedConnection:!0,credits:{default:1,level1:{credits:.5,weight:1}},mode:`always`}},Zs=class extends H{pipeId=qs;payloadSchema=Js;billableOperations=Xs;payload;constructor(e){super(),this.payload=e}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[`company-overview-v3-pipe0`]}getInputRequirement(){return Ys(this.payload.config)}getRawOutputFields(){return{[Bs.name]:this.catalogOutput(Bs),[Vs.name]:this.catalogOutput(Vs),[Hs.name]:this.catalogOutput(Hs),[Us.name]:this.catalogOutput(Us),[Ws.name]:this.catalogOutput(Ws),[Gs.name]:this.catalogOutput(Gs),[Ks.name]:this.catalogOutput(Ks)}}getConnectionsRequirements(){return[{provider:`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}]}},Qs=Js,$s={pipeId:qs,basePipe:U(qs),inputFieldMode:`static`,outputFieldMode:`static`,label:`Company overview`,executionMode:`mix`,categories:[`company_data`],lifecycle:null,description:`Business description, industry, and financial information.`,docPath:W(qs),tags:[z.WEBSITE,z.LINKEDIN,z.FINANCIAL_DATA],allowedUserConnectionProviders:[],managedProviders:[`pipe0`],deprecatedProviders:[],billableOperations:Xs,defaultInputRequirement:Ys(null),defaultPayload:{pipe_id:qs,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}}}}},ec=g(`company_domain`),tc=g(`technology_list`),nc=g(`spending_trend`),rc=g(`technology_match_builtwith`),ic=`company:techstack:builtwith@2`,ac=r.object({pipe_id:r.literal(ic),connector:C(),run_if:x(),config:r.object({input_fields:R(r.object({[ec.name]:T({fieldName:ec.name})})),output_fields:L(r.object({[tc.name]:O({fieldName:tc.name}),[rc.name]:O({fieldName:rc.name}),[nc.name]:O({fieldName:nc.name})}))}).optional()}),oc=e=>B(G(ec,e)),sc={"company-techstack-builtwith-v2-builtwith":{provider:`builtwith`,allowManagedConnection:!0,credits:{default:2},mode:`always`}},cc=class extends H{pipeId=ic;payload;payloadSchema=ac;billableOperations=sc;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`builtwith`]}estimateBillableOperations(){return[`company-techstack-builtwith-v2-builtwith`]}getInputRequirement(){return oc(this.payload.config)}getRawOutputFields(){return{[tc.name]:this.catalogOutput(tc),[rc.name]:this.catalogOutput(rc),[nc.name]:this.catalogOutput(nc)}}getConnectionsRequirements(){return[{provider:`builtwith`,rateLimitRatio:1,rateLimitOperation:`builtwith_generic`,allowManagedConnection:!0}]}},lc=ac,uc={pipeId:ic,basePipe:U(ic),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:[z.WEBSITE],inputFieldMode:`static`,outputFieldMode:`static`,docPath:W(ic),billableOperations:sc,defaultInputRequirement:oc(null),defaultPayload:{pipe_id:ic,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}}}}},dc={MissingSecretError:class extends Error{constructor({providerName:e}){super(`Missing secret for ${e}`)}},HttpError:class extends Error{constructor({msg:e}){super(e)}}},fc=`contact:create:resend@1`,pc={"contact-create-resend-v1-resend":{allowManagedConnection:!1,provider:`resend`,credits:null,mode:null}},mc=g(`email`),hc=g(`name`),gc=g(`resend_contact_id`),_c=[{label:`Demo subscribers`,value:`sandbox-segment-1`},{label:`Demo product updates`,value:`sandbox-segment-2`}],vc=r.object({pipe_id:r.literal(fc),connector:ia(),run_if:x(),config:r.object({segment_id:Da({sectionKey:`general`,required:!0,label:`Segment`,groupPath:`config.general`,path:`config.segment_id`,info:``,enabledIf:Sn(`resend`),optionsDef:{requires:{connection:`resend`},options:async({query:e,secret:t,environment:n})=>{if(n===`sandbox`)return _c;if(!t)throw new dc.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 dc.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:D({sectionKey:`general`,defaultValue:!0,label:`Add as subscribed`,groupPath:`config.general`,path:`config.add_as_subscribed`,info:``}),input_fields:R(r.object({[hc.name]:T({fieldName:hc.name}),[mc.name]:T({fieldName:mc.name})})),output_fields:L(r.object({[gc.name]:O({fieldName:gc.name})}))})}),yc=e=>Ua(B(G(mc,e)),B(G(hc,e))),bc=class extends H{pipeId=fc;payload;payloadSchema=vc;billableOperations=pc;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`resend`]}estimateBillableOperations(){return[`contact-create-resend-v1-resend`]}getInputRequirement(){return yc(this.payload.config)}getRawOutputFields(){return{[gc.name]:this.catalogOutput(gc)}}getConnectionsRequirements(){return[{provider:`resend`,rateLimitRatio:1,rateLimitOperation:`resend_generic`,allowManagedConnection:!1}]}},xc=vc,Sc={pipeId:fc,basePipe:U(fc),label:`Create Contact`,executionMode:`single`,categories:[`actions`],lifecycle:null,description:`Create a contact inside a Resend audience.`,tags:[z.EMAIL],docPath:W(fc),billableOperations:pc,inputFieldMode:`static`,outputFieldMode:`static`,allowedUserConnectionProviders:[`resend`],defaultInputRequirement:yc(null),managedProviders:[],deprecatedProviders:[],defaultPayload:{pipe_id:fc,connector:{strategy:`first`,connections:[]},run_if:null,config:{segment_id:``,add_as_subscribed:!0,input_fields:{name:{alias:``},email:{alias:``}},output_fields:{resend_contact_id:{alias:``,enabled:!0}}}}},Cc=`company:funding:leadmagic@1`,wc=g(`company_name`),Tc=g(`company_website_url`),Ec=g(`funding_history`),Dc=g(`funding_total_usd`),Oc=g(`leadmagic_competitor_list`),kc=g(`leadmagic_acquisition_history`),Ac=g(`leadmagic_company_news_list`),jc=r.object({pipe_id:r.literal(Cc),connector:C(),run_if:x(),config:r.object({input_fields:R(r.object({[wc.name]:T({fieldName:wc.name}),[Tc.name]:T({fieldName:Tc.name})})),output_fields:L(r.object({[Ec.name]:O({fieldName:Ec.name}),[Dc.name]:O({fieldName:Dc.name}),[Oc.name]:O({fieldName:Oc.name}),[kc.name]:O({fieldName:kc.name}),[Ac.name]:O({fieldName:Ac.name})}))}).optional()}),Mc=e=>V(G(wc,e),G(Tc,e)),Nc={"company-funding-leadmagic-v1-leadmagic":{provider:`leadmagic`,allowManagedConnection:!0,credits:{default:2},mode:`onSuccess`}},Pc=class extends H{pipeId=Cc;payload;payloadSchema=jc;billableOperations=Nc;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`leadmagic`]}estimateBillableOperations(){return[`company-funding-leadmagic-v1-leadmagic`]}getInputRequirement(){return Mc(this.payload.config)}getRawOutputFields(){return{[Ec.name]:this.catalogOutput(Ec),[Dc.name]:this.catalogOutput(Dc)}}getConnectionsRequirements(){return[{provider:`leadmagic`,rateLimitRatio:1,rateLimitOperation:`leadmagic_company_funding`,allowManagedConnection:!0}]}},Fc=jc,Ic={pipeId:Cc,basePipe:U(Cc),label:`Funding history`,executionMode:`single`,categories:[`deprecated`],lifecycle:{deprecatedOn:`2026-06-13`,replacedBy:`company:funding:leadmagic@2`},description:`Information on funding rounds, acquisition, competitors, and investors.`,tags:[z.FINANCIAL_DATA],docPath:W(Cc),billableOperations:Nc,inputFieldMode:`static`,outputFieldMode:`static`,allowedUserConnectionProviders:[`leadmagic`],managedProviders:[`leadmagic`],deprecatedProviders:[],defaultInputRequirement:Mc(null),defaultPayload:{pipe_id:Cc,connector:null,run_if:null,config:{input_fields:{company_name:{alias:``},company_website_url:{alias:``}},output_fields:{funding_history:{enabled:!0,alias:``},funding_total_usd:{enabled:!0,alias:``},leadmagic_acquisition_history:{enabled:!1,alias:``},leadmagic_company_news_list:{enabled:!1,alias:``},leadmagic_competitor_list:{enabled:!1,alias:``}}}}},Lc=g(`company_name`),Rc=g(`company_social_url`),zc=g(`company_website_url`),Bc=g(`cleaned_company_name`),Vc=`company:identity@1`,Hc=r.object({pipe_id:r.literal(Vc),run_if:x(),connector:w(),config:r.object({input_fields:R(r.object({[Lc.name]:T({fieldName:Lc.name})})),output_fields:L(r.object({[Rc.name]:O({fieldName:Rc.name}),[Bc.name]:O({fieldName:Bc.name}),[zc.name]:O({fieldName:zc.name})}))}).optional()}),Uc=e=>B(G(Lc,e)),Wc={"company-identity-v1-pipe0":{allowManagedConnection:!0,credits:{default:.3},mode:`always`,provider:`pipe0`}},Gc=class extends H{pipeId=Vc;payload;payloadSchema=Hc;billableOperations=Wc;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[`company-identity-v1-pipe0`]}getInputRequirement(){return Uc(this.payload.config)}getRawOutputFields(){return{[Rc.name]:this.catalogOutput(Rc),[zc.name]:this.catalogOutput(zc),[Bc.name]:this.catalogOutput(Bc)}}getConnectionsRequirements(){return[{provider:`gemini`,rateLimitRatio:1,rateLimitOperation:`gemini_35_flash`,allowManagedConnection:!0},{provider:`serper`,rateLimitRatio:2,rateLimitOperation:`serper_search`,allowManagedConnection:!0},{provider:`leadmagic`,rateLimitRatio:.2,rateLimitOperation:`leadmagic_company_search`,allowManagedConnection:!0},{provider:`perplexity`,rateLimitRatio:.2,rateLimitOperation:`perplexity_generic`,allowManagedConnection:!0},{provider:`pipe0`,rateLimitRatio:.02,rateLimitOperation:`pipe0_scraper`,allowManagedConnection:!0}]}},Kc=Hc,qc={pipeId:Vc,inputFieldMode:`static`,outputFieldMode:`static`,basePipe:U(Vc),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:[z.WEBSITE,z.LINKEDIN],docPath:`/resources/pipe-catalog/company:identity/1`,billableOperations:Wc,allowedUserConnectionProviders:[],managedProviders:[`pipe0`],deprecatedProviders:[],defaultInputRequirement:Uc(null),defaultPayload:{pipe_id:Vc,connector:null,run_if:null,config:{input_fields:{company_name:{alias:``}},output_fields:{cleaned_company_name:{alias:``,enabled:!0},company_social_url:{alias:``,enabled:!0},company_website_url:{alias:``,enabled:!0}}}}},Jc=g(`company_name`),Yc=g(`company_profile_url`),Xc=g(`company_website_url`),Zc=g(`cleaned_company_name`),Qc=`company:identity@2`,$c=r.object({pipe_id:r.literal(Qc),run_if:x(),connector:w(),config:r.object({input_fields:R(r.object({[Jc.name]:T({fieldName:Jc.name})})),output_fields:L(r.object({[Yc.name]:O({fieldName:Yc.name}),[Zc.name]:O({fieldName:Zc.name}),[Xc.name]:O({fieldName:Xc.name})}))}).optional()}),el=e=>B(G(Jc,e)),tl={"company-identity-v2-pipe0":{allowManagedConnection:!0,credits:{default:.3},mode:`always`,provider:`pipe0`}},nl=class extends H{pipeId=Qc;payload;payloadSchema=$c;billableOperations=tl;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[`company-identity-v2-pipe0`]}getInputRequirement(){return el(this.payload.config)}getRawOutputFields(){return{[Yc.name]:this.catalogOutput(Yc),[Xc.name]:this.catalogOutput(Xc),[Zc.name]:this.catalogOutput(Zc)}}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}]}},rl=$c,il={pipeId:Qc,inputFieldMode:`static`,outputFieldMode:`static`,basePipe:U(Qc),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:[z.WEBSITE,z.LINKEDIN],docPath:W(Qc),billableOperations:tl,allowedUserConnectionProviders:[],managedProviders:[`pipe0`],deprecatedProviders:[],defaultInputRequirement:el(null),defaultPayload:{pipe_id:Qc,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}}}}},al=g(`company_website_url`),ol=g(`companyenrich_matches`),sl=`company:lookalikes:companyenrich@1`,cl=r.object({pipe_id:r.literal(sl),run_if:x(),connector:C(),config:r.object({limit:wa({groupPath:`config.general`,max:50,min:1,path:`config.limit`,required:!0,sectionKey:`general`,info:`Define how many lookalikes you want to find.`,label:`Limit`}),input_fields:R(r.object({[al.name]:T({fieldName:al.name})})),output_fields:L(r.object({[ol.name]:O({fieldName:ol.name})}))}).optional()}),ll=e=>B(G(al,e)),ul={"company-lookalikes-companyenrich-v1-companyenrich":{allowManagedConnection:!0,credits:{default:.2},mode:`onSuccess`,note:`One billing event per result.`,provider:`companyenrich`}},dl=class extends H{pipeId=sl;payload;payloadSchema=cl;billableOperations=ul;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`companyenrich`]}estimateBillableOperations(){return[,,,,,].fill(`lookalikes-companyenrich`)}getInputRequirement(){return ll(this.payload.config)}getRawOutputFields(){return{[ol.name]:this.catalogOutput(ol)}}getConnectionsRequirements(){return[{provider:`companyenrich`,rateLimitRatio:1,rateLimitOperation:`company_enrich_generic`,allowManagedConnection:!0}]}},fl=cl,pl={pipeId:sl,inputFieldMode:`static`,outputFieldMode:`static`,basePipe:U(sl),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:[z.COMPANY_PROFILES],docPath:W(sl),billableOperations:ul,allowedUserConnectionProviders:[`companyenrich`],managedProviders:[`companyenrich`],deprecatedProviders:[],defaultInputRequirement:ll(null),defaultPayload:{pipe_id:sl,connector:null,run_if:null,config:{limit:20,input_fields:{company_website_url:{alias:``}},output_fields:{companyenrich_matches:{alias:``,enabled:!0}}}}},ml=g(`company_website_url`),hl=g(`crustdata_companyenrich_match`),gl=`company:match:crustdata@1`,_l=r.object({pipe_id:r.literal(gl),run_if:x(),connector:C(),config:r.object({input_fields:R(r.object({[ml.name]:T({fieldName:ml.name})})),output_fields:L(r.object({[hl.name]:O({fieldName:hl.name})}))}).optional()}),vl=e=>B(G(ml,e)),yl={"company-match-crustdata-v1-crustdata":{allowManagedConnection:!0,credits:{default:2},mode:`onSuccess`,provider:`crustdata`}},bl=class extends H{pipeId=gl;payload;payloadSchema=_l;billableOperations=yl;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`crustdata`]}estimateBillableOperations(){return[`company-match-crustdata-v1-crustdata`]}getInputRequirement(){return vl(this.payload.config)}getRawOutputFields(){return{[hl.name]:this.catalogOutput(hl)}}getConnectionsRequirements(){return[{provider:`crustdata`,rateLimitRatio:1,rateLimitOperation:`crustdata_company_enrich`,allowManagedConnection:!0}]}},xl=_l,Sl={pipeId:gl,inputFieldMode:`static`,outputFieldMode:`static`,basePipe:U(gl),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:[z.WEBSITE,z.LINKEDIN],docPath:W(gl),billableOperations:yl,allowedUserConnectionProviders:[`crustdata`],managedProviders:[`crustdata`],deprecatedProviders:[],defaultInputRequirement:vl(null),defaultPayload:{pipe_id:gl,connector:null,run_if:null,config:{input_fields:{company_website_url:{alias:``}},output_fields:{crustdata_companyenrich_match:{alias:``,enabled:!0}}}}},Cl=g(`company_website_url`),wl=g(`company_name`),Tl=g(`company_profile_url`),El=g(`logodev_describe_match`),Dl=g(`logo_url`),Ol=`company:match:logodev@1`,kl=r.object({pipe_id:r.literal(Ol),run_if:x(),connector:C(),config:r.object({input_fields:R(r.object({[Cl.name]:T({fieldName:Cl.name})})),output_fields:L(r.object({[Tl.name]:O({fieldName:Tl.name}),[Dl.name]:O({fieldName:Dl.name}),[wl.name]:O({fieldName:wl.name}),[El.name]:O({fieldName:El.name})}))}).optional()}),Al=e=>B(G(Cl,e)),jl={"company-match-logodev-v1-logodev":{allowManagedConnection:!0,credits:{default:.1},mode:`onSuccess`,provider:`logodev`}},Ml=class extends H{pipeId=Ol;payload;payloadSchema=kl;billableOperations=jl;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`logodev`]}estimateBillableOperations(){return[`company-match-logodev-v1-logodev`]}getInputRequirement(){return Al(this.payload.config)}getRawOutputFields(){return{[Tl.name]:this.catalogOutput(Tl),[wl.name]:this.catalogOutput(wl),[Dl.name]:this.catalogOutput(Dl),[El.name]:this.catalogOutput(El)}}getConnectionsRequirements(){return[{provider:`logodev`,rateLimitRatio:1,rateLimitOperation:`logodev_describe`,allowManagedConnection:!0}]}},Nl=kl,Pl={pipeId:Ol,inputFieldMode:`static`,outputFieldMode:`static`,basePipe:U(Ol),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:[z.WEBSITE,z.LINKEDIN],docPath:W(Ol),billableOperations:jl,allowedUserConnectionProviders:[`logodev`],managedProviders:[`logodev`],deprecatedProviders:[],defaultInputRequirement:Al(null),defaultPayload:{pipe_id:Ol,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}}}}},Fl=`company:newssummary:website@1`,Il=g(`company_news_summary`),Ll=g(`company_website_url`),Rl=r.object({pipe_id:r.literal(Fl),run_if:x(),connector:C(),config:r.object({input_fields:R(r.object({[Ll.name]:T({fieldName:Ll.name})})),output_fields:L(r.object({[Il.name]:O({fieldName:Il.name})}))}).optional()}),zl=e=>B(G(Ll,e)),Bl={"company-newssummary-website-v1-pipe0":{allowManagedConnection:!0,credits:{default:1},mode:`always`,provider:`pipe0`}},Vl=class extends H{pipeId=Fl;payloadSchema=Rl;billableOperations=Bl;payload;constructor(e){super(),this.payload=e}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[`company-newssummary-website-v1-pipe0`]}getInputRequirement(){return zl(this.payload.config)}getRawOutputFields(){return{[Il.name]:this.catalogOutput(Il)}}getConnectionsRequirements(){return[{provider:`perplexity`,rateLimitRatio:1,rateLimitOperation:`perplexity_generic`,allowManagedConnection:!0}]}},Hl=Rl,Ul={pipeId:Fl,basePipe:U(Fl),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:[z.NEWS],docPath:W(Fl),billableOperations:Bl,allowedUserConnectionProviders:[],managedProviders:[`pipe0`],deprecatedProviders:[],defaultInputRequirement:zl(null),defaultPayload:{pipe_id:Fl,run_if:null,connector:null,config:{input_fields:{company_website_url:{alias:``}},output_fields:{company_news_summary:{alias:``,enabled:!0}}}}},Wl=g(`company_website_url`),Gl=g(`company_social_url`),Kl=g(`company_description`),ql=g(`company_industry`),Jl=g(`company_region`),Yl=g(`headcount`),Xl=g(`estimated_revenue`),Zl=g(`founded_year`),Ql=`company:overview@1`,$l=r.object({pipe_id:r.literal(Ql),run_if:x(),connector:w(),config:r.object({input_fields:R(r.object({[Wl.name]:T({fieldName:Wl.name}),[Gl.name]:T({fieldName:Gl.name})})),output_fields:L(r.object({[Kl.name]:O({fieldName:Kl.name}),[ql.name]:O({fieldName:ql.name}),[Jl.name]:O({fieldName:Jl.name}),[Yl.name]:O({fieldName:Yl.name}),[Xl.name]:O({fieldName:Xl.name}),[Zl.name]:O({fieldName:Zl.name})}))}).optional()}),eu=e=>V(G(Wl,e),G(Gl,e)),tu={"company-overview-v1-pipe0":{provider:`pipe0`,allowManagedConnection:!0,credits:{default:1},mode:`always`}},nu=class extends H{pipeId=Ql;payloadSchema=$l;billableOperations=tu;payload;constructor(e){super(),this.payload=e}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[`company-overview-v1-pipe0`]}getInputRequirement(){return eu(this.payload.config)}getRawOutputFields(){return{[Kl.name]:this.catalogOutput(Kl),[ql.name]:this.catalogOutput(ql),[Jl.name]:this.catalogOutput(Jl),[Yl.name]:this.catalogOutput(Yl),[Xl.name]:this.catalogOutput(Xl),[Zl.name]:this.catalogOutput(Zl)}}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}]}},ru=$l,iu={pipeId:Ql,basePipe:U(Ql),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:[z.WEBSITE,z.LINKEDIN,z.FINANCIAL_DATA,z.DEPRECATED],allowedUserConnectionProviders:[],managedProviders:[`pipe0`],deprecatedProviders:[],billableOperations:tu,defaultInputRequirement:eu(null),defaultPayload:{pipe_id:Ql,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}}}}},au=g(`company_website_url`),ou=g(`company_profile_url`),su=g(`company_description`),cu=g(`company_industry`),lu=g(`company_region`),uu=g(`headcount`),du=g(`estimated_revenue`),fu=g(`founded_year`),pu=g(`company_name`),mu=`company:overview@2`,hu=r.object({pipe_id:r.literal(mu),run_if:x(),connector:w(),config:r.object({input_fields:R(r.object({[au.name]:T({fieldName:au.name}),[ou.name]:T({fieldName:ou.name})})),output_fields:L(r.object({[su.name]:O({fieldName:su.name}),[cu.name]:O({fieldName:cu.name}),[lu.name]:O({fieldName:lu.name}),[uu.name]:O({fieldName:uu.name}),[du.name]:O({fieldName:du.name}),[fu.name]:O({fieldName:fu.name}),[pu.name]:O({fieldName:pu.name})}))}).optional()}),gu=e=>V(G(au,e),G(ou,e)),_u={"company-overview-v2-pipe0":{provider:`pipe0`,allowManagedConnection:!0,credits:{default:1},mode:`always`}},vu=class extends H{pipeId=mu;payloadSchema=hu;billableOperations=_u;payload;constructor(e){super(),this.payload=e}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[`company-overview-v2-pipe0`]}getInputRequirement(){return gu(this.payload.config)}getRawOutputFields(){return{[su.name]:this.catalogOutput(su),[cu.name]:this.catalogOutput(cu),[lu.name]:this.catalogOutput(lu),[uu.name]:this.catalogOutput(uu),[du.name]:this.catalogOutput(du),[fu.name]:this.catalogOutput(fu),[pu.name]:this.catalogOutput(pu)}}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}]}},yu=hu,bu={pipeId:mu,basePipe:U(mu),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:W(mu),tags:[z.WEBSITE,z.LINKEDIN,z.FINANCIAL_DATA],allowedUserConnectionProviders:[],managedProviders:[`pipe0`],deprecatedProviders:[],billableOperations:_u,defaultInputRequirement:gu(null),defaultPayload:{pipe_id:mu,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}}}}},xu=g(`company_website_url`),Su=g(`technology_list`),Cu=g(`spending_trend`),wu=g(`technology_match_builtwith`),Tu=`company:techstack:builtwith@1`,Eu=r.object({pipe_id:r.literal(Tu),connector:C(),run_if:x(),config:r.object({input_fields:R(r.object({[xu.name]:T({fieldName:xu.name})})),output_fields:L(r.object({[Su.name]:O({fieldName:Su.name}),[wu.name]:O({fieldName:wu.name}),[Cu.name]:O({fieldName:Cu.name})}))}).optional()}),Du=e=>B(G(xu,e)),Ou={"company-techstack-builtwith-v1-builtwith":{provider:`builtwith`,allowManagedConnection:!0,credits:{default:2},mode:`always`}},ku=class extends H{pipeId=Tu;payload;payloadSchema=Eu;billableOperations=Ou;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`builtwith`]}estimateBillableOperations(){return[`company-techstack-builtwith-v1-builtwith`]}getInputRequirement(){return Du(this.payload.config)}getRawOutputFields(){return{[Su.name]:this.catalogOutput(Su),[wu.name]:this.catalogOutput(wu),[Cu.name]:this.catalogOutput(Cu)}}getConnectionsRequirements(){return[{provider:`builtwith`,rateLimitRatio:1,rateLimitOperation:`builtwith_generic`,allowManagedConnection:!0}]}},Au=Eu,ju={pipeId:Tu,basePipe:U(Tu),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:[z.WEBSITE],inputFieldMode:`static`,outputFieldMode:`static`,docPath:W(Tu),billableOperations:Ou,defaultInputRequirement:Du(null),defaultPayload:{pipe_id:Tu,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}}}}},Mu=`company:websiteurl:email@1`,Nu=g(`company_website_url`),Pu=g(`email`),Fu=r.object({pipe_id:r.literal(Mu),run_if:x(),connector:w(),config:r.object({input_fields:R(r.object({[Pu.name]:T({fieldName:Pu.name})})),output_fields:L(r.object({[Nu.name]:O({fieldName:Nu.name})}))}).optional()}),Iu=e=>B(G(Pu,e)),Lu={"company-websiteurl-email-v1-pipe0":{credits:{default:0},allowManagedConnection:!0,mode:`always`,provider:`pipe0`}},Ru=class extends H{pipeId=Mu;payload;payloadSchema=Fu;billableOperations=Lu;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[`company-websiteurl-email-v1-pipe0`]}getInputRequirement(){return Iu(this.payload.config)}getRawOutputFields(){return{[Nu.name]:this.catalogOutput(Nu)}}getConnectionsRequirements(){return[{provider:`pipe0`,rateLimitRatio:1,rateLimitOperation:`pipe0_logic`,allowManagedConnection:!0}]}},zu=Fu,Bu={pipeId:Mu,basePipe:U(Mu),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:[z.EMAIL,z.WORK_EMAIL,z.WEBSITE],docPath:W(Mu),allowedUserConnectionProviders:[],managedProviders:[`pipe0`],deprecatedProviders:[],billableOperations:Lu,defaultInputRequirement:Iu(null),defaultPayload:{pipe_id:Mu,connector:null,run_if:null,config:{input_fields:{email:{alias:``}},output_fields:{company_website_url:{alias:``,enabled:!0}}}}},Vu=`people:email:iswork@1`,Hu=g(`is_work_email`),Uu=g(`email`),Wu=r.object({pipe_id:r.literal(Vu),run_if:x(),connector:w(),config:r.object({input_fields:R(r.object({[Uu.name]:T({fieldName:Uu.name})})),output_fields:L(r.object({[Hu.name]:O({fieldName:Hu.name})}))}).optional()}),Gu=e=>B(G(Uu,e)),Ku={"people-email-iswork-v1-pipe0":{provider:`pipe0`,allowManagedConnection:!0,credits:{default:0},mode:`always`}},qu=class extends H{pipeId=Vu;payload;payloadSchema=Wu;billableOperations=Ku;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[`people-email-iswork-v1-pipe0`]}getInputRequirement(){return Gu(this.payload.config)}getRawOutputFields(){return{[Hu.name]:this.catalogOutput(Hu)}}getConnectionsRequirements(){return[{provider:`pipe0`,rateLimitRatio:1,rateLimitOperation:`pipe0_logic`,allowManagedConnection:!0}]}},Ju=Wu,Yu={pipeId:Vu,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:[z.EMAIL,z.WORK_EMAIL],docPath:W(Vu),billableOperations:Ku,basePipe:U(Vu),allowedUserConnectionProviders:[],inputFieldMode:`static`,outputFieldMode:`static`,managedProviders:[`pipe0`],deprecatedProviders:[],defaultInputRequirement:Gu(null),defaultPayload:{pipe_id:Vu,run_if:null,connector:null,config:{input_fields:{email:{alias:``}},output_fields:{is_work_email:{alias:``,enabled:!0}}}}},Xu=`people:email:validate:zerobounce@1`,Zu=g(`work_email`),Qu=g(`is_email_valid`),$u=r.object({pipe_id:r.literal(Xu),connector:C(),run_if:x(),config:r.object({input_fields:R(r.object({[Zu.name]:T({fieldName:Zu.name})})),output_fields:L(r.object({[Qu.name]:O({fieldName:Qu.name})}))}).optional()}),ed=e=>B(G(Zu,e)),td={"people-email-validate-zerobounce-v1-zerobounce":{provider:`zerobounce`,allowManagedConnection:!0,credits:{default:.3},mode:`always`}},nd=class extends H{pipeId=Xu;payload;payloadSchema=$u;billableOperations=td;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`zerobounce`]}estimateBillableOperations(){return[`people-email-validate-zerobounce-v1-zerobounce`]}getInputRequirement(){return ed(this.payload.config)}getRawOutputFields(){return{[Qu.name]:this.catalogOutput(Qu)}}getConnectionsRequirements(){return[{provider:`zerobounce`,rateLimitRatio:1,rateLimitOperation:`zerobounce_generic`,allowManagedConnection:!0}]}},rd=$u,id={pipeId:Xu,basePipe:U(Xu),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:[z.EMAIL],docPath:`/resources/pipe-catalog/people:email:validate:zerobounce/1`,billableOperations:td,inputFieldMode:`static`,outputFieldMode:`static`,allowedUserConnectionProviders:[`zerobounce`],managedProviders:[`zerobounce`],deprecatedProviders:[],defaultInputRequirement:ed(null),defaultPayload:{pipe_id:Xu,connector:null,run_if:null,config:{input_fields:{work_email:{alias:``}},output_fields:{is_email_valid:{alias:``,enabled:!0}}}}},ad=`people:email:validate:zerobounce@2`,od=g(`email`),sd=g(`zerobounce_validation_status`),cd=g(`zerobounce_validation_match`),ld=r.object({pipe_id:r.literal(ad),connector:C(),run_if:x(),config:r.object({input_fields:R(r.object({[od.name]:T({fieldName:od.name})})),output_fields:L(r.object({[cd.name]:O({fieldName:cd.name}),[sd.name]:O({fieldName:sd.name})}))}).optional()}),ud=e=>B(G(od,e)),dd={"people-email-validate-zerobounce-v2-zerobounce":{provider:`zerobounce`,allowManagedConnection:!0,credits:{default:.3},mode:`always`}},fd=class extends H{pipeId=ad;payload;payloadSchema=ld;billableOperations=dd;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`zerobounce`]}estimateBillableOperations(){return[`people-email-validate-zerobounce-v2-zerobounce`]}getInputRequirement(){return ud(this.payload.config)}getRawOutputFields(){return{[sd.name]:this.catalogOutput(sd),[cd.name]:this.catalogOutput(cd)}}getConnectionsRequirements(){return[{provider:`zerobounce`,rateLimitRatio:1,rateLimitOperation:`zerobounce_generic`,allowManagedConnection:!0}]}},pd=ld,md={pipeId:ad,basePipe:U(ad),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:[z.EMAIL],docPath:W(ad),billableOperations:dd,inputFieldMode:`static`,outputFieldMode:`static`,allowedUserConnectionProviders:[`zerobounce`],managedProviders:[`zerobounce`],deprecatedProviders:[],defaultInputRequirement:ud(null),defaultPayload:{pipe_id:ad,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 hd(e){return(e.widgets||{}).display_value?.label}function gd(e){console.dir(e,{depth:100})}function _d(e){return typeof e==`object`&&e?JSON.stringify(e):e}function K(e){return e===0?1:e===1?.3:e===2?.2:.1}function vd(e){if(typeof e!=`object`||!e||Array.isArray(e))return e;let t={};return Object.keys(e).sort().forEach(n=>{t[n]=vd(e[n])}),t}const yd={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 q(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 bd=`people:identity:email:waterfall@1`,xd=g(`email`),Sd=g(`company_website_url`),Cd=g(`name`),wd=g(`job_title`),Td=g(`profile_url`),Ed=g(`company_profile_url`),Dd=g(`company_name`),Od=[`findymail`,`hunter`,`crustdata`],kd=[{provider:`findymail`},{provider:`hunter`},{provider:`crustdata`}],Ad=r.object({pipe_id:r.literal(bd),connector:C(),run_if:x(),config:r.object({providers:E({availableProviders:Od,defaultProviders:kd,sectionKey:`general`}),input_fields:R(r.object({[xd.name]:T({fieldName:xd.name})})),output_fields:L(r.object({[Cd.name]:O({fieldName:Cd.name}),[Td.name]:O({fieldName:Td.name}),[wd.name]:O({fieldName:wd.name}),[Sd.name]:O({fieldName:Sd.name}),[Dd.name]:O({fieldName:Dd.name}),[Ed.name]:O({fieldName:Ed.name})}))}).optional()}),jd=e=>B(G(xd,e)),Md={"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`}},Nd=class extends H{pipeId=bd;payload;payloadSchema=Ad;billableOperations=Md;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return this.payload.config?.providers.map(e=>e.provider)||[]}estimateBillableOperations(){return this.getProviderNames().map(e=>q(e,this.billableOperations).billableOperation)}getInputRequirement(){return jd(this.payload.config)}getRawOutputFields(){return{[Cd.name]:this.catalogOutput(Cd,{isPrimaryOutput:!0}),[Td.name]:this.catalogOutput(Td,{isPrimaryOutput:!0}),[wd.name]:this.catalogOutput(wd,{isPrimaryOutput:!0}),[Dd.name]:this.catalogOutput(Dd,{isPrimaryOutput:!0}),[Ed.name]:this.catalogOutput(Ed,{isPrimaryOutput:!0}),[Sd.name]:this.catalogOutput(Sd,{isPrimaryOutput:!0})}}getConnectionsRequirements(){let e={hunter:`prospeo_email_lookup`,findymail:`findymail_email_b2b_lookup`,crustdata:`crustdata_realtime_person_enrich`};return(this.payload.config?.providers||[]).map((t,n)=>({provider:t.provider,rateLimitRatio:K(n),rateLimitOperation:e[t.provider],allowManagedConnection:!0}))}},Pd=Ad,Fd={pipeId:bd,basePipe:U(bd),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:[z.EMAIL,z.PEOPLE_PROFILES],docPath:W(bd),managedProviders:Od,deprecatedProviders:[],allowedUserConnectionProviders:Od,inputFieldMode:`static`,outputFieldMode:`static`,billableOperations:Md,defaultInputRequirement:jd(null),defaultPayload:{pipe_id:bd,connector:null,run_if:null,config:{providers:kd,input_fields:{email:{alias:``}},output_fields:{name:{alias:``,enabled:!0},profile_url:{alias:``,enabled:!0},job_title:{alias:``,enabled:!0},company_name:{alias:``,enabled:!0},company_profile_url:{alias:``,enabled:!0},company_website_url:{alias:``,enabled:!0}}}}},Id=`people:match:role:waterfall@1`,Ld=g(`company_website_url`),Rd=g(`role_finder_match`),zd=[`leadmagic`],Bd=[{provider:`leadmagic`}],Vd=r.object({pipe_id:r.literal(Id),run_if:x(),connector:C(),config:r.object({providers:E({sectionKey:`general`,defaultProviders:Bd,availableProviders:zd}),roles:fa({sectionKey:`general`,groupPath:`config.general`,label:`Roles`,path:`config.roles`,info:`Company roles to include`,maxItems:3,minItems:1}),input_fields:R(r.object({[Ld.name]:T({fieldName:Ld.name})})),output_fields:L(r.object({[Rd.name]:O({fieldName:Rd.name})}))})}),Hd=e=>V(G(Ld,e)),Ud={"people-match-role-waterfall-v1-leadmagic":{provider:`leadmagic`,allowManagedConnection:!0,credits:{default:1},mode:`onSuccess`}},Wd=class extends H{pipeId=Id;payload;payloadSchema=Vd;billableOperations=Ud;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return this.payload.config?.providers.map(e=>e.provider)||[]}estimateBillableOperations(){return this.getProviderNames().map(e=>q(e,this.billableOperations).billableOperation)}getInputRequirement(){return Hd(this.payload.config)}getRawOutputFields(){return{[Rd.name]:this.catalogOutput(Rd,{isPrimaryOutput:!0})}}getConnectionsRequirements(){let e={leadmagic:`leadmagic_role_finder`};return(this.payload.config?.providers||[]).map((t,n)=>({provider:t.provider,rateLimitRatio:K(n),rateLimitOperation:e[t.provider],allowManagedConnection:!0}))}},Gd=Vd,Kd={pipeId:Id,basePipe:U(Id),managedProviders:zd,deprecatedProviders:[],allowedUserConnectionProviders:zd,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:[z.PEOPLE_PROFILES],docPath:W(Id),billableOperations:Ud,inputFieldMode:`static`,outputFieldMode:`static`,defaultInputRequirement:Hd(null),defaultPayload:{pipe_id:Id,run_if:null,connector:null,config:{roles:[],providers:Bd,input_fields:{company_website_url:{alias:``}},output_fields:{role_finder_match:{alias:``,enabled:!0}}}}},qd=`people:mobilenumber:professionalprofile:waterfall@1`,Jd=g(`professional_profile_url`),Yd=g(`mobile_number`),Xd=[`leadmagic`,`prospeo`],Zd=[{provider:`leadmagic`},{provider:`prospeo`}],Qd=r.object({pipe_id:r.literal(qd),run_if:x(),connector:C(),config:r.object({providers:E({sectionKey:`general`,defaultProviders:Zd,availableProviders:Xd}),input_fields:R(r.object({[Jd.name]:T({fieldName:Jd.name})})),output_fields:L(r.object({[Yd.name]:O({fieldName:Yd.name})}))}).optional()}),$d=e=>B(G(Jd,e)),ef={"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`}},tf=class extends H{pipeId=qd;payload;payloadSchema=Qd;billableOperations=ef;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return this.payload.config?.providers.map(e=>e.provider)||[]}estimateBillableOperations(){return this.getProviderNames().map(e=>q(e,this.billableOperations).billableOperation)}getInputRequirement(){return $d(this.payload.config)}getRawOutputFields(){return{[Yd.name]:this.catalogOutput(Yd)}}getConnectionsRequirements(){let e={leadmagic:`leadmagic_email_lookup`,prospeo:`prospeo_phone_number_lookup`};return(this.payload.config?.providers||[]).map((t,n)=>({provider:t.provider,rateLimitRatio:K(n),rateLimitOperation:e[t.provider],allowManagedConnection:!0}))}},nf=Qd,rf={pipeId:qd,basePipe:U(qd),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:[z.PHONE,z.WATERFALL],billableOperations:ef,defaultInputRequirement:$d(null),inputFieldMode:`static`,outputFieldMode:`static`,managedProviders:Xd,deprecatedProviders:[],allowedUserConnectionProviders:Xd,defaultPayload:{pipe_id:qd,connector:null,run_if:null,config:{providers:Zd,input_fields:{professional_profile_url:{alias:``}},output_fields:{mobile_number:{alias:``,enabled:!0}}}}},af=`people:mobilenumber:workemail:waterfall@1`,of=g(`work_email`),sf=g(`mobile_number`),cf=[`leadmagic`],lf=[{provider:`leadmagic`}],uf=r.object({pipe_id:r.literal(af),run_if:x(),connector:C(),config:r.object({providers:E({sectionKey:`general`,availableProviders:cf,defaultProviders:lf}),input_fields:R(r.object({[of.name]:T({fieldName:of.name})})),output_fields:L(r.object({[sf.name]:O({fieldName:sf.name})}))}).optional()}),df=e=>B(G(of,e)),ff={"people-mobilenumber-workemail-waterfall-v1-leadmagic":{provider:`leadmagic`,allowManagedConnection:!0,credits:{default:2},mode:`onSuccess`}},pf=class extends H{pipeId=af;payload;payloadSchema=uf;billableOperations=ff;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return this.payload.config?.providers?.map(e=>e.provider)||[]}estimateBillableOperations(){return this.getProviderNames().map(e=>q(e,this.billableOperations).billableOperation)}getInputRequirement(){return df(this.payload.config)}getRawOutputFields(){return{[sf.name]:this.catalogOutput(sf)}}getConnectionsRequirements(){let e={leadmagic:`leadmagic_email_lookup`};return(this.payload.config?.providers||[]).map((t,n)=>({provider:t.provider,rateLimitRatio:K(n),rateLimitOperation:e[t.provider],allowManagedConnection:!0}))}},mf=uf,hf={pipeId:af,basePipe:U(af),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:[z.PHONE,z.WATERFALL],docPath:`/resources/pipe-catalog/people:mobilenumber:workemail:waterfall/1`,billableOperations:ff,defaultInputRequirement:df(null),inputFieldMode:`static`,outputFieldMode:`static`,allowedUserConnectionProviders:cf,managedProviders:cf,deprecatedProviders:[],defaultPayload:{pipe_id:af,connector:null,run_if:null,config:{providers:lf,input_fields:{work_email:{alias:``}},output_fields:{mobile_number:{alias:``,enabled:!0}}}}},gf=`people:name:split@1`,_f=g(`name`),vf=g(`first_name`),yf=g(`last_name`),bf=r.object({pipe_id:r.literal(gf),connector:w(),run_if:x(),config:r.object({input_fields:R(r.object({[_f.name]:T({fieldName:_f.name})})),output_fields:L(r.object({[vf.name]:O({fieldName:vf.name}),[yf.name]:O({fieldName:yf.name})}))}).optional()}),xf=e=>B(G(_f,e)),Sf={"people-name-split-v1-pipe0":{provider:`pipe0`,allowManagedConnection:!0,credits:{default:0},mode:`always`}},Cf=class extends H{pipeId=gf;payload;payloadSchema=bf;billableOperations=Sf;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[`people-name-split-v1-pipe0`]}getInputRequirement(){return xf(this.payload.config)}getRawOutputFields(){return{[vf.name]:this.catalogOutput(vf),[yf.name]:this.catalogOutput(yf)}}getConnectionsRequirements(){return[{provider:`pipe0`,rateLimitRatio:1,rateLimitOperation:`pipe0_logic`,allowManagedConnection:!0}]}},wf=bf,Tf={pipeId:gf,basePipe:U(gf),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:[z.NAMES],docPath:W(gf),billableOperations:Sf,inputFieldMode:`static`,outputFieldMode:`static`,defaultInputRequirement:xf(null),allowedUserConnectionProviders:[],managedProviders:[`pipe0`],deprecatedProviders:[],defaultPayload:{pipe_id:gf,run_if:null,connector:void 0,config:{input_fields:{name:{alias:``}},output_fields:{first_name:{alias:``,enabled:!0},last_name:{alias:``,enabled:!0}}}}},Ef=`people:personalemail:profile:waterfall@1`,Df=g(`profile_url`),Of=g(`personal_email`),kf=g(`alternate_personal_emails`),Af=[`clado`,`leadmagic`,`mixrank`],jf=[{provider:`leadmagic`},{provider:`mixrank`}],Mf=r.object({pipe_id:r.literal(Ef),run_if:x(),connector:C(),config:r.object({providers:E({sectionKey:`general`,availableProviders:Af,defaultProviders:jf}),input_fields:R(r.object({[Df.name]:T({fieldName:Df.name})})),output_fields:L(r.object({[Of.name]:O({fieldName:Of.name}),[kf.name]:O({fieldName:kf.name})}))}).optional()}),Nf=e=>B(G(Df,e)),Pf={"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`}},Ff=class extends H{pipeId=Ef;payload;payloadSchema=Mf;billableOperations=Pf;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return this.payload.config?.providers.map(e=>e.provider)||[]}estimateBillableOperations(){return this.getProviderNames().map(e=>q(e,this.billableOperations).billableOperation)}getInputRequirement(){return Nf(this.payload.config)}getRawOutputFields(){return{[Of.name]:this.catalogOutput(Of,{isPrimaryOutput:!0}),[kf.name]:this.catalogOutput(kf)}}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:K(n),rateLimitOperation:e[t.provider],allowManagedConnection:!0}))}},If=Mf,Lf={pipeId:Ef,basePipe:U(Ef),allowedUserConnectionProviders:Af,managedProviders:Af,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:[z.EMAIL,z.PERSONAL_EMAIL],docPath:W(Ef),billableOperations:Pf,defaultInputRequirement:Nf(null),inputFieldMode:`static`,outputFieldMode:`static`,defaultPayload:{pipe_id:Ef,connector:null,run_if:null,config:{providers:jf,input_fields:{profile_url:{alias:``}},output_fields:{personal_email:{alias:``,enabled:!0},alternate_personal_emails:{alias:``,enabled:!0}}}}},Rf=`people:phone:profile:waterfall@1`,zf=g(`profile_url`),Bf=g(`mobile`),Vf=[`leadmagic`,`prospeo`,`amplemarket`,`findymail`,`clado`],Hf=[{provider:`leadmagic`},{provider:`prospeo`},{provider:`amplemarket`},{provider:`findymail`}],Uf=r.object({pipe_id:r.literal(Rf),run_if:x(),connector:C(),config:r.object({providers:E({sectionKey:`general`,defaultProviders:Hf,availableProviders:Vf}),input_fields:R(r.object({[zf.name]:T({fieldName:zf.name})})),output_fields:L(r.object({[Bf.name]:O({fieldName:Bf.name})}))}).optional()}),Wf=e=>B(G(zf,e)),Gf={"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`}},Kf=class extends H{pipeId=Rf;payload;payloadSchema=Uf;billableOperations=Gf;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return this.payload.config?.providers.map(e=>e.provider)||[]}estimateBillableOperations(){return this.getProviderNames().map(e=>q(e,this.billableOperations).billableOperation)}getInputRequirement(){return Wf(this.payload.config)}getRawOutputFields(){return{[Bf.name]:this.catalogOutput(Bf,{isPrimaryOutput:!0})}}getConnectionsRequirements(){let e={leadmagic:`leadmagic_email_lookup`,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:K(n),rateLimitOperation:e[t.provider],allowManagedConnection:!0}))}},qf=Uf,Jf={pipeId:Rf,basePipe:U(Rf),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:W(Rf),tags:[z.PHONE,z.WATERFALL],billableOperations:Gf,defaultInputRequirement:Wf(null),inputFieldMode:`static`,outputFieldMode:`static`,managedProviders:Vf,allowedUserConnectionProviders:Vf,deprecatedProviders:[`clado`],defaultPayload:{pipe_id:Rf,connector:null,run_if:null,config:{providers:Hf,input_fields:{profile_url:{alias:``}},output_fields:{mobile:{alias:``,enabled:!0}}}}},Yf=`people:phone:workemail:waterfall@1`,Xf=g(`work_email`),Zf=g(`mobile`),Qf=[`leadmagic`,`amplemarket`],$f=[{provider:`leadmagic`},{provider:`amplemarket`}],ep=r.object({pipe_id:r.literal(Yf),run_if:x(),connector:C(),config:r.object({providers:E({sectionKey:`general`,availableProviders:Qf,defaultProviders:$f}),input_fields:R(r.object({[Xf.name]:T({fieldName:Xf.name})})),output_fields:L(r.object({[Zf.name]:O({fieldName:Zf.name})}))}).optional()}),tp=e=>B(G(Xf,e)),np={"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`}},rp=class extends H{pipeId=Yf;payload;payloadSchema=ep;billableOperations=np;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return this.payload.config?.providers.map(e=>e.provider)||[]}estimateBillableOperations(){return this.getProviderNames().map(e=>q(e,this.billableOperations).billableOperation)}getInputRequirement(){return tp(this.payload.config)}getRawOutputFields(){return{[Zf.name]:this.catalogOutput(Zf,{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:K(n),rateLimitOperation:e[t.provider],allowManagedConnection:!0}))}},ip=ep,ap={pipeId:Yf,basePipe:U(Yf),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:[z.PHONE,z.WATERFALL],docPath:W(Yf),billableOperations:np,defaultInputRequirement:tp(null),inputFieldMode:`static`,outputFieldMode:`static`,allowedUserConnectionProviders:Qf,managedProviders:Qf,deprecatedProviders:[],defaultPayload:{pipe_id:Yf,connector:null,run_if:null,config:{providers:$f,input_fields:{work_email:{alias:``}},output_fields:{mobile:{alias:``,enabled:!0}}}}},op=`people:professionalprofile:waterfall@1`,sp=g(`professional_profile`),cp=g(`professional_profile_url`),lp=[`prospeo`,`icypeas`],up=[{provider:`prospeo`},{provider:`icypeas`}],dp=r.object({pipe_id:r.literal(op),run_if:x(),connector:C(),config:r.object({providers:E({sectionKey:`general`,availableProviders:lp,defaultProviders:up}),input_fields:R(r.object({[cp.name]:T({fieldName:cp.name})})),output_fields:L(r.object({[sp.name]:O({fieldName:sp.name})}))}).optional()}),fp=e=>B(G(cp,e)),pp={"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}},mp=class extends H{pipeId=op;payload;payloadSchema=dp;billableOperations=pp;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return this.payload.config?.providers.map(e=>e.provider)||[]}estimateBillableOperations(){return this.getProviderNames().map(e=>q(e,this.billableOperations).billableOperation)}getInputRequirement(){return fp(this.payload.config)}getRawOutputFields(){return{[sp.name]:this.catalogOutput(sp)}}getConnectionsRequirements(){let e={icypeas:`icypeas_scrape_profile`,prospeo:`prospeo_social_profile_lookup`};return(this.payload.config?.providers||[]).map((t,n)=>({provider:t.provider,rateLimitRatio:K(n),rateLimitOperation:e[t.provider],allowManagedConnection:!0}))}},hp=dp,gp={pipeId:op,basePipe:U(op),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:[z.LINKEDIN,z.WATERFALL],managedProviders:lp,deprecatedProviders:[],allowedUserConnectionProviders:lp,inputFieldMode:`static`,outputFieldMode:`static`,billableOperations:pp,defaultInputRequirement:fp(null),defaultPayload:{pipe_id:op,run_if:null,connector:null,config:{providers:up,input_fields:{professional_profile_url:{alias:``}},output_fields:{professional_profile:{alias:``,enabled:!0}}}}},_p=`people:professionalprofileurl:email:waterfall@1`,vp=g(`email`),yp=g(`work_email`),bp=g(`professional_profile_url`),xp=[`leadmagic`],Sp=[{provider:`leadmagic`}],Cp=r.object({pipe_id:r.literal(_p),run_if:x(),connector:C(),config:r.object({providers:E({sectionKey:`general`,defaultProviders:Sp,availableProviders:xp}),input_fields:R(r.object({[vp.name]:T({fieldName:vp.name}),[yp.name]:T({fieldName:yp.name})})),output_fields:L(r.object({[bp.name]:O({fieldName:bp.name})}))}).optional()}),wp=e=>V(G(vp,e),G(yp,e)),Tp={"people-professionalprofileurl-email-waterfall-v1-leadmagic":{provider:`leadmagic`,allowManagedConnection:!0,credits:{default:3.5},mode:`onSuccess`}},Ep=class extends H{pipeId=_p;payload;payloadSchema=Cp;billableOperations=Tp;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return this.payload.config?.providers.map(e=>e.provider)||[]}estimateBillableOperations(){return this.getProviderNames().map(e=>q(e,this.billableOperations).billableOperation)}getInputRequirement(){return wp(this.payload.config)}getRawOutputFields(){return{[bp.name]:this.catalogOutput(bp)}}getConnectionsRequirements(){let e={leadmagic:`leadmagic_email_to_b2b_profile`};return(this.payload.config?.providers||[]).map((t,n)=>({provider:t.provider,rateLimitRatio:K(n),rateLimitOperation:e[t.provider],allowManagedConnection:!0}))}},Dp=Cp,Op={pipeId:_p,basePipe:U(_p),managedProviders:xp,deprecatedProviders:[],allowedUserConnectionProviders:xp,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:[z.LINKEDIN],docPath:`/resources/pipe-catalog/people:professionalprofileurl:email:waterfall/1`,billableOperations:Tp,inputFieldMode:`static`,outputFieldMode:`static`,defaultInputRequirement:wp(null),defaultPayload:{pipe_id:_p,run_if:null,connector:null,config:{providers:Sp,input_fields:{email:{alias:``},work_email:{alias:``}},output_fields:{professional_profile_url:{alias:``,enabled:!0}}}}},kp=`people:professionalprofileurl:name@1`,Ap=g(`name`),jp=g(`company_name`),Mp=g(`location_hint`),Np=g(`professional_profile_url`),Pp=r.object({pipe_id:r.literal(kp),connector:w(),run_if:x(),config:r.object({input_fields:R(r.object({[Ap.name]:T({fieldName:Ap.name}),[jp.name]:T({fieldName:jp.name}),[Mp.name]:T({fieldName:Mp.name})})),output_fields:L(r.object({[Np.name]:O({fieldName:Np.name})}))}).optional()}),Fp=e=>Ua(B(G(Ap,e)),B(G(jp,e)),Wa(G(Mp,e))),Ip={"people-professionalprofileurl-name-v1-pipe0":{provider:`pipe0`,allowManagedConnection:!0,credits:{default:.6},mode:`always`}},Lp=class extends H{pipeId=kp;payload;payloadSchema=Pp;billableOperations=Ip;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[`people-professionalprofileurl-name-v1-pipe0`]}getInputRequirement(){return Fp(this.payload.config)}getRawOutputFields(){return{[Np.name]:this.catalogOutput(Np)}}getConnectionsRequirements(){return[{provider:`serper`,rateLimitRatio:1,rateLimitOperation:`serper_search`,allowManagedConnection:!0}]}},Rp=Pp,zp={pipeId:kp,basePipe:U(kp),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:[z.LINKEDIN],billableOperations:Ip,defaultInputRequirement:Fp(null),inputFieldMode:`static`,outputFieldMode:`static`,defaultPayload:{pipe_id:kp,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}}}}},Bp=`people:profile:waterfall@1`,Vp=g(`profile`),Hp=g(`profile_url`),Up=[`prospeo`,`icypeas`,`amplemarket`,`clado`],Wp=[{provider:`amplemarket`},{provider:`prospeo`},{provider:`icypeas`}],Gp=r.object({pipe_id:r.literal(Bp),run_if:x(),connector:C(),config:r.object({providers:E({sectionKey:`general`,availableProviders:Up,defaultProviders:Wp}),input_fields:R(r.object({[Hp.name]:T({fieldName:Hp.name})})),output_fields:L(r.object({[Vp.name]:O({fieldName:Vp.name})}))}).optional()}),Kp=e=>B(G(Hp,e)),qp={"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}},Jp=class extends H{pipeId=Bp;payload;payloadSchema=Gp;billableOperations=qp;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return this.payload.config?.providers.map(e=>e.provider)||[]}estimateBillableOperations(){return this.getProviderNames().map(e=>q(e,this.billableOperations).billableOperation)}getInputRequirement(){return Kp(this.payload.config)}getRawOutputFields(){return{[Vp.name]:this.catalogOutput(Vp,{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:K(n),rateLimitOperation:e[t.provider],allowManagedConnection:!0}))}},Yp=Gp,Xp={pipeId:Bp,basePipe:U(Bp),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:W(Bp),tags:[z.LINKEDIN,z.WATERFALL],managedProviders:Up,deprecatedProviders:[`clado`],allowedUserConnectionProviders:Up,inputFieldMode:`static`,outputFieldMode:`static`,billableOperations:qp,defaultInputRequirement:Kp(null),defaultPayload:{pipe_id:Bp,run_if:null,connector:null,config:{providers:Wp,input_fields:{profile_url:{alias:``}},output_fields:{profile:{alias:``,enabled:!0}}}}},Zp=g(`work_email`),Qp=g(`crustdata_person_match`),$p=g(`crustdata_profile_match_score`),em=`people:profile:workemail:crustdata@1`,tm=r.object({pipe_id:r.literal(em),run_if:x(),connector:C(),config:r.object({input_fields:R(r.object({[Zp.name]:T({fieldName:Zp.name})})),output_fields:L(r.object({[Qp.name]:O({fieldName:Qp.name}),[$p.name]:O({fieldName:$p.name})}))}).optional()}),nm=e=>B(G(Zp,e)),rm={"people-profile-workemail-crustdata-v1-crustdata":{allowManagedConnection:!0,credits:{default:5},mode:`onSuccess`,provider:`crustdata`}},im=class extends H{pipeId=em;payload;payloadSchema=tm;billableOperations=rm;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`crustdata`]}estimateBillableOperations(){return[`people-profile-workemail-crustdata-v1-crustdata`]}getInputRequirement(){return nm(this.payload.config)}getRawOutputFields(){return{[Qp.name]:this.catalogOutput(Qp),[$p.name]:this.catalogOutput($p)}}getConnectionsRequirements(){return[{provider:`crustdata`,rateLimitRatio:1,rateLimitOperation:`crustdata_realtime_person_enrich`,allowManagedConnection:!0}]}},am=tm,om={pipeId:em,inputFieldMode:`static`,outputFieldMode:`static`,basePipe:U(em),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:[z.EMAIL,z.PEOPLE_PROFILES],docPath:W(em),billableOperations:rm,allowedUserConnectionProviders:[`crustdata`],managedProviders:[`crustdata`],deprecatedProviders:[],defaultInputRequirement:nm(null),defaultPayload:{pipe_id:em,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}}}}},sm=`people:profileurl:email:waterfall@1`,cm=g(`email`),lm=g(`work_email`),um=g(`profile_url`),dm=[`leadmagic`],fm=[{provider:`leadmagic`}],pm=r.object({pipe_id:r.literal(sm),run_if:x(),connector:C(),config:r.object({providers:E({sectionKey:`general`,defaultProviders:fm,availableProviders:dm}),input_fields:R(r.object({[cm.name]:T({fieldName:cm.name}),[lm.name]:T({fieldName:lm.name})})),output_fields:L(r.object({[um.name]:O({fieldName:um.name})}))}).optional()}),mm=e=>V(G(cm,e),G(lm,e)),hm={"people-profileurl-email-waterfall-v1-leadmagic":{provider:`leadmagic`,allowManagedConnection:!0,credits:{default:3.5},mode:`onSuccess`}},gm=class extends H{pipeId=sm;payload;payloadSchema=pm;billableOperations=hm;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return this.payload.config?.providers.map(e=>e.provider)||[]}estimateBillableOperations(){return this.getProviderNames().map(e=>q(e,this.billableOperations).billableOperation)}getInputRequirement(){return mm(this.payload.config)}getRawOutputFields(){return{[um.name]:this.catalogOutput(um,{isPrimaryOutput:!0})}}getConnectionsRequirements(){let e={leadmagic:`leadmagic_email_to_b2b_profile`};return(this.payload.config?.providers||[]).map((t,n)=>({provider:t.provider,rateLimitRatio:K(n),rateLimitOperation:e[t.provider],allowManagedConnection:!0}))}},_m=pm,vm={pipeId:sm,basePipe:U(sm),managedProviders:dm,deprecatedProviders:[],allowedUserConnectionProviders:dm,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:[z.LINKEDIN],docPath:W(sm),billableOperations:hm,inputFieldMode:`static`,outputFieldMode:`static`,defaultInputRequirement:mm(null),defaultPayload:{pipe_id:sm,run_if:null,connector:null,config:{providers:fm,input_fields:{email:{alias:``},work_email:{alias:``}},output_fields:{profile_url:{alias:``,enabled:!0}}}}},ym=`people:validate:email:zerobounce@1`,bm=g(`work_email`),xm=g(`ip_address`),Sm=g(`is_email_valid`),Cm=r.object({pipe_id:r.literal(ym),connector:C(),run_if:x(),config:r.object({input_fields:R(r.object({[bm.name]:T({fieldName:bm.name}),[xm.name]:T({fieldName:xm.name})})),output_fields:L(r.object({[Sm.name]:O({fieldName:Sm.name})}))}).optional()}),wm=e=>Ua(B(G(bm,e)),Wa(G(xm,e))),Tm={"people-validate-email-zerobounce-v1-zerobounce":{provider:`zerobounce`,allowManagedConnection:!0,credits:{default:.5},mode:`always`}},Em=class extends H{pipeId=ym;payload;payloadSchema=Cm;billableOperations=Tm;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`zerobounce`]}estimateBillableOperations(){return[`people-validate-email-zerobounce-v1-zerobounce`]}getInputRequirement(){return wm(this.payload.config)}getRawOutputFields(){return{[Sm.name]:this.catalogOutput(Sm)}}getConnectionsRequirements(){return[{provider:`zerobounce`,rateLimitRatio:1,rateLimitOperation:`zerobounce_generic`,allowManagedConnection:!0}]}},Dm=Cm,Om={pipeId:ym,basePipe:U(ym),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:[z.EMAIL],docPath:`/resources/pipe-catalog/people:validate:email:zerobounce/1`,billableOperations:Tm,inputFieldMode:`static`,outputFieldMode:`static`,allowedUserConnectionProviders:[`zerobounce`],managedProviders:[`zerobounce`],deprecatedProviders:[],defaultInputRequirement:wm(null),defaultPayload:{pipe_id:ym,connector:null,run_if:null,config:{input_fields:{ip_address:{alias:``},work_email:{alias:``}},output_fields:{is_email_valid:{alias:``,enabled:!0}}}}},km=`people:workemail:profileurl:waterfall@1`,Am=g(`profile_url`),jm=g(`work_email`),Mm=g(`email_validation_status`),Nm=[`hunter`,`amplemarket`,`findymail`,`leadmagic`,`crustdata`,`clado`],Pm=[`clado`],Fm=[{provider:`hunter`},{provider:`amplemarket`},{provider:`leadmagic`},{provider:`findymail`},{provider:`crustdata`}],Im=r.object({pipe_id:r.literal(km),connector:C(),run_if:x(),config:r.object({providers:E({availableProviders:Nm,defaultProviders:Fm,sectionKey:`general`}),allow_catch_all_emails:D({path:`config.allow_catch_all_emails`,defaultValue:!0,groupPath:`config.general`,sectionKey:`general`,info:``,label:`Allow catch-all emails`}),allow_risky_emails:D({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({[Am.name]:T({fieldName:Am.name})})),output_fields:L(r.object({[jm.name]:O({fieldName:jm.name}),[Mm.name]:O({fieldName:Mm.name})}))}).optional()}),Lm=e=>B(G(Am,e)),Rm={"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`}},zm=class extends H{pipeId=km;payload;payloadSchema=Im;billableOperations=Rm;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return this.payload.config?.providers.map(e=>e.provider)||[]}estimateBillableOperations(){return this.getProviderNames().map(e=>q(e,this.billableOperations).billableOperation)}getInputRequirement(){return Lm(this.payload.config)}getRawOutputFields(){return{[jm.name]:this.catalogOutput(jm,{isPrimaryOutput:!0}),[Mm.name]:this.catalogOutput(Mm,{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:K(n),rateLimitOperation:e[t.provider],allowManagedConnection:!0}))}},Bm=Im,Vm={pipeId:km,basePipe:U(km),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:[z.EMAIL,z.WORK_EMAIL,z.WATERFALL],docPath:W(km),managedProviders:Nm,allowedUserConnectionProviders:Nm,deprecatedProviders:Pm,inputFieldMode:`static`,outputFieldMode:`static`,billableOperations:Rm,defaultInputRequirement:Lm(null),defaultPayload:{pipe_id:km,connector:null,run_if:null,config:{providers:Fm,allow_catch_all_emails:!0,allow_risky_emails:!0,input_fields:{profile_url:{alias:``}},output_fields:{work_email:{alias:``,enabled:!0},email_validation_status:{alias:``,enabled:!0}}}}},Hm=`people:workemail:waterfall@1`,Um=g(`name`),Wm=g(`company_website_url`),Gm=g(`company_name`),Km=g(`work_email`),qm=g(`email_validation_status`),Jm=[`leadmagic`,`prospeo`,`amplemarket`,`hunter`,`icypeas`,`findymail`],Ym=[{provider:`leadmagic`},{provider:`prospeo`},{provider:`amplemarket`},{provider:`hunter`},{provider:`icypeas`},{provider:`findymail`}],Xm=r.object({pipe_id:r.literal(Hm),connector:C(),run_if:x(),config:r.object({providers:E({availableProviders:Jm,defaultProviders:Ym,sectionKey:`general`}),allow_catch_all_emails:D({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:D({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({[Um.name]:T({fieldName:Um.name}),[Wm.name]:T({fieldName:Wm.name}),[Gm.name]:T({fieldName:Gm.name})})),output_fields:L(r.object({[Km.name]:O({fieldName:Km.name}),[qm.name]:O({fieldName:qm.name})}))}).optional()}),Zm=e=>Ua(B(G(Um,e)),V(G(Wm,e),G(Gm,e))),Qm={"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`}},$m=class extends H{pipeId=Hm;payload;payloadSchema=Xm;billableOperations=Qm;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return this.payload.config?.providers.map(e=>e.provider)||[]}estimateBillableOperations(){return this.getProviderNames().map(e=>q(e,this.billableOperations).billableOperation)}getInputRequirement(){return Zm(this.payload.config)}getRawOutputFields(){return{[Km.name]:this.catalogOutput(Km,{isPrimaryOutput:!0}),[qm.name]:this.catalogOutput(qm,{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:K(n),rateLimitOperation:e[t.provider],allowManagedConnection:!0}))}},eh=Xm,th={pipeId:Hm,basePipe:U(Hm),label:`Work email from name`,executionMode:`waterfall`,categories:[`deprecated`],lifecycle:{deprecatedOn:`2026-06-13`,replacedBy:`person:workemail:waterfall@1`},description:`Find work email addresses in a waterfall motion.`,tags:[z.EMAIL,z.WORK_EMAIL,z.WATERFALL],docPath:W(Hm),managedProviders:Jm,deprecatedProviders:[],allowedUserConnectionProviders:Jm,inputFieldMode:`static`,outputFieldMode:`static`,billableOperations:Qm,defaultInputRequirement:Zm(null),defaultPayload:{pipe_id:Hm,connector:null,run_if:null,config:{providers:Ym,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}}}}},nh=`email:iswork@1`,rh=g(`is_work_email`),ih=g(`email`),ah=r.object({pipe_id:r.literal(nh),run_if:x(),connector:w(),config:r.object({input_fields:R(r.object({[ih.name]:T({fieldName:ih.name})})),output_fields:L(r.object({[rh.name]:O({fieldName:rh.name})}))}).optional()}),oh=e=>B(G(ih,e)),sh={"email-iswork-v1-pipe0":{provider:`pipe0`,allowManagedConnection:!0,credits:{default:0},mode:`always`}},ch=class extends H{pipeId=nh;payload;payloadSchema=ah;billableOperations=sh;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[`email-iswork-v1-pipe0`]}getInputRequirement(){return oh(this.payload.config)}getRawOutputFields(){return{[rh.name]:this.catalogOutput(rh)}}getConnectionsRequirements(){return[{provider:`pipe0`,rateLimitRatio:1,rateLimitOperation:`pipe0_logic`,allowManagedConnection:!0}]}},lh=ah,uh={pipeId:nh,label:`Work email checker`,executionMode:`single`,categories:[`people_data`],lifecycle:null,description:`Check if a given email address is personal or professional.`,tags:[z.EMAIL,z.WORK_EMAIL],docPath:W(nh),billableOperations:sh,basePipe:U(nh),allowedUserConnectionProviders:[],inputFieldMode:`static`,outputFieldMode:`static`,managedProviders:[`pipe0`],deprecatedProviders:[],defaultInputRequirement:oh(null),defaultPayload:{pipe_id:nh,run_if:null,connector:null,config:{input_fields:{email:{alias:``}},output_fields:{is_work_email:{alias:``,enabled:!0}}}}};function dh(e,t){return typeof t==`string`?t:t(e)}function fh(e,t){return typeof t==`string`||t===null?t:t(e)}function ph(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:dh(e,a[r].type),format:fh(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 mh(e,t){for(let n of e.pipes){let r=n.getOutputFields();if(r[t])return{type:dh(e,r[t].type),format:fh(e,r[t].format)}}let n=e.derivedInputFields[t];if(n)return{type:n.type,format:null}}function hh(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=Wr(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=>mh(t,e)?.type||n,format:r};a.push(t.required?B(i):Wa(i))}return Ua(...a)}function gh(e){let t=new Set;for(let n of e)if(n)try{let e=Wr(n);for(let n of e.secrets)t.add(n)}catch{}return[...t]}function _h(e){let t=new Set;for(let n of e)if(n)try{let e=Wr(n);for(let n of e.constants)t.add(n)}catch{}return[...t]}const vh=`email:send:gmail@1`,yh=g(`gmail_email_success`),bh=r.object({pipe_id:r.literal(vh),connector:ia(),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`}),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
68
 
69
- …`,inputType:`text`,minLength:1,maxLength:1e6,expectedTagType:`string`,expectedTagFormat:`markdown`,multiline:!0}),output_fields:L(r.object({[vh.name]:O({fieldName:vh.name})}))})}),bh={"email-send-gmail-v1-gmail":{allowManagedConnection:!1,provider:`gmail`,credits:null,mode:null}},xh=class extends H{pipeId=_h;payload;payloadSchema=yh;billableOperations=bh;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`gmail`]}estimateBillableOperations(){return[`email-send-gmail-v1-gmail`]}getTemplatedFields(){return[this.payload.config.to,this.payload.config.reply_to,this.payload.config.subject,this.payload.config.body]}getInputRequirement(){return hh(this.getTemplatedFields())}getSecretRequirements(){return J(this.getTemplatedFields())}getConstantRequirements(){return gh(this.getTemplatedFields())}getRawOutputFields(){return{[vh.name]:this.catalogOutput(vh)}}getConnectionsRequirements(){return[{provider:`gmail`,rateLimitRatio:1,rateLimitOperation:`gmail_send_email`,allowManagedConnection:!1}]}},Sh=yh,Ch={pipeId:_h,basePipe:U(_h),label:`Send email`,executionMode:`single`,categories:[`actions`],lifecycle:null,description:`Send an email with Gmail.`,detailed_description:"Send an email via Gmail. To, Reply-To, Subject and Body are templated config fields β€” reference upstream fields with `{{ field_name }}` and stored secrets with `{{ SECRETS.KEY }}`. Requires a Gmail vault connection (call list_connections to find one).",tags:[z.EMAIL],docPath:W(_h),billableOperations:bh,inputFieldMode:`config`,outputFieldMode:`static`,allowedUserConnectionProviders:[`gmail`],defaultInputRequirement:null,managedProviders:[],deprecatedProviders:[],defaultPayload:{pipe_id:_h,connector:{strategy:`first`,connections:[]},run_if:null,config:{to:``,reply_to:``,subject:``,body:``,output_fields:{gmail_email_success:{alias:``,enabled:!0}}}}},wh=`email:send:resend@1`,Th=g(`resend_email_success`),Eh=r.object({pipe_id:r.literal(wh),connector:ia(),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`}),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
+ …`,inputType:`text`,minLength:1,maxLength:1e6,expectedTagType:`string`,expectedTagFormat:`markdown`,multiline:!0}),output_fields:L(r.object({[yh.name]:O({fieldName:yh.name})}))})}),xh={"email-send-gmail-v1-gmail":{allowManagedConnection:!1,provider:`gmail`,credits:null,mode:null}},Sh=class extends H{pipeId=vh;payload;payloadSchema=bh;billableOperations=xh;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`gmail`]}estimateBillableOperations(){return[`email-send-gmail-v1-gmail`]}getTemplatedFields(){return[this.payload.config.to,this.payload.config.reply_to,this.payload.config.subject,this.payload.config.body]}getInputRequirement(){return hh(this.getTemplatedFields())}getSecretRequirements(){return gh(this.getTemplatedFields())}getConstantRequirements(){return _h(this.getTemplatedFields())}getRawOutputFields(){return{[yh.name]:this.catalogOutput(yh)}}getConnectionsRequirements(){return[{provider:`gmail`,rateLimitRatio:1,rateLimitOperation:`gmail_send_email`,allowManagedConnection:!1}]}},Ch=bh,wh={pipeId:vh,basePipe:U(vh),label:`Send email`,executionMode:`single`,categories:[`actions`],lifecycle:null,description:`Send an email with Gmail.`,detailed_description:"Send an email via Gmail. To, Reply-To, Subject and Body are templated config fields β€” reference upstream fields with `{{ field_name }}` and stored secrets with `{{ SECRETS.KEY }}`. Requires a Gmail vault connection (call list_connections to find one).",tags:[z.EMAIL],docPath:W(vh),billableOperations:xh,inputFieldMode:`config`,outputFieldMode:`static`,allowedUserConnectionProviders:[`gmail`],defaultInputRequirement:null,managedProviders:[],deprecatedProviders:[],defaultPayload:{pipe_id:vh,connector:{strategy:`first`,connections:[]},run_if:null,config:{to:``,reply_to:``,subject:``,body:``,output_fields:{gmail_email_success:{alias:``,enabled:!0}}}}},Th=`email:send:resend@1`,Eh=g(`resend_email_success`),Dh=r.object({pipe_id:r.literal(Th),connector:ia(),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`}),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 }},
70
70
 
71
- …`,inputType:`text`,minLength:1,maxLength:1e6,expectedTagType:`string`,expectedTagFormat:`markdown`,multiline:!0}),output_fields:L(r.object({[Th.name]:O({fieldName:Th.name})}))})}),Dh={"email-send-resend-v1-resend":{allowManagedConnection:!1,provider:`resend`,credits:null,mode:null}},Oh=class extends H{pipeId=wh;payload;payloadSchema=Eh;billableOperations=Dh;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`resend`]}estimateBillableOperations(){return[`email-send-resend-v1-resend`]}getTemplatedFields(){return[this.payload.config.from,this.payload.config.to,this.payload.config.reply_to,this.payload.config.subject,this.payload.config.body]}getInputRequirement(){return hh(this.getTemplatedFields())}getSecretRequirements(){return J(this.getTemplatedFields())}getConstantRequirements(){return gh(this.getTemplatedFields())}getRawOutputFields(){return{[Th.name]:this.catalogOutput(Th)}}getConnectionsRequirements(){return[{provider:`resend`,rateLimitRatio:1,rateLimitOperation:`resend_generic`,allowManagedConnection:!1}]}},kh=Eh,Ah={pipeId:wh,basePipe:U(wh),label:`Send email with Resend`,executionMode:`single`,categories:[`actions`],lifecycle:null,description:`Send an email with Resend.`,detailed_description:"Send an email via Resend. From, To, Reply-To, Subject and Body are templated config fields β€” reference upstream fields with `{{ field_name }}` and stored secrets with `{{ SECRETS.KEY }}`. Requires a Resend vault connection (call list_connections to find one).",tags:[z.EMAIL],docPath:W(wh),billableOperations:Dh,inputFieldMode:`config`,outputFieldMode:`static`,allowedUserConnectionProviders:[`resend`],defaultInputRequirement:null,managedProviders:[],deprecatedProviders:[],defaultPayload:{pipe_id:wh,connector:{strategy:`first`,connections:[]},run_if:null,config:{from:``,to:``,reply_to:``,subject:``,body:``,output_fields:{resend_email_success:{alias:``,enabled:!0}}}}},jh=`email:validate:zerobounce@1`,Mh=g(`email`),Nh=g(`zerobounce_validation_status`),Ph=g(`zerobounce_validation_match`),Fh=r.object({pipe_id:r.literal(jh),connector:C(),run_if:x(),config:r.object({input_fields:R(r.object({[Mh.name]:T({fieldName:Mh.name})})),output_fields:L(r.object({[Ph.name]:O({fieldName:Ph.name}),[Nh.name]:O({fieldName:Nh.name})}))}).optional()}),Ih=e=>B(G(Mh,e)),Lh={"email-validate-zerobounce-v1-zerobounce":{provider:`zerobounce`,allowManagedConnection:!0,credits:{default:.4,level1:{credits:.3,weight:1},level2:{credits:.15,weight:6}},mode:`always`}},Rh=class extends H{pipeId=jh;payload;payloadSchema=Fh;billableOperations=Lh;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`zerobounce`]}estimateBillableOperations(){return[`email-validate-zerobounce-v1-zerobounce`]}getInputRequirement(){return Ih(this.payload.config)}getRawOutputFields(){return{[Nh.name]:this.catalogOutput(Nh),[Ph.name]:this.catalogOutput(Ph)}}getConnectionsRequirements(){return[{provider:`zerobounce`,rateLimitRatio:1,rateLimitOperation:`zerobounce_generic`,allowManagedConnection:!0}]}},zh=Fh,Bh={pipeId:jh,basePipe:U(jh),label:`Validate email`,executionMode:`single`,categories:[`people_data`],lifecycle:null,description:`Verify email address against various factors, including syntax, domain, and server existence, to ensure it is deliverable and active.`,tags:[z.EMAIL],docPath:W(jh),billableOperations:Lh,inputFieldMode:`static`,outputFieldMode:`static`,allowedUserConnectionProviders:[`zerobounce`],managedProviders:[`zerobounce`],deprecatedProviders:[],defaultInputRequirement:Ih(null),defaultPayload:{pipe_id:jh,connector:null,run_if:null,config:{input_fields:{email:{alias:``}},output_fields:{zerobounce_validation_status:{alias:``,enabled:!0},zerobounce_validation_match:{alias:``,enabled:!0}}}}},Vh={title:`Software Engineer, CEO, ...`,seniority:`C-Suite, Senior, ...`,department:`Consulting, Finance, ...`,certification:`CISSP, AWS, ...`,crunchbase_category:`3D Printing, Big Date, ...`,honor:`Cum Laude, 40 Under 40, ...`,field_of_study:`Engineering, Computer Science, ...`,degree_name:`Bachelor of Science, ...`,extracurricular:`Athelete, Debate Team, ...`,job_function:`Accounting, Advertising, ...`,location:`USA, Germany, France, ...`,company_name:`Google, Anthropic, ...`,company_domain:`google.com, openai.com, ...`,company_profile_keyword:`B2B, Software, ...`,headline_keywords:`Founder, JavaScript, ...`,profile_keywords:`Coach, Scrum, ...`,languages:`German, English, ...`,languages_1:`Spanish, Italian, ...`,skills:`TypeScript, Playwright, ...`,industry:`IT, Agriculture, ...`,investor:`a16z, Inside Partners, ...`,school:`MIT, Harvard, ...`,prompt:`Enter prompt here...`,template:`Enter template here...`};function Y(e){return Vh[e]}const Hh=`email:write@1`,Uh=`email-write-v1`,Wh=mi(Uh),Gh=g(`email_subject`),Kh=g(`email_body`),qh=r.object({pipe_id:r.literal(Hh),connector:C(),run_if:x(),config:r.object({template:na({sectionKey:`general`,label:`Prompt`,path:`config.template`,placeholder:Y(`prompt`),groupPath:`config.prompt`,required:!0}),model:Sa({sectionKey:`general`,label:`Model`,path:`config.model`,groupPath:`config.prompt`,billableOperations:Wh}),signature:ba({sectionKey:`general`,label:`Signature (Markdown)`,path:`config.signature`,groupPath:`config.email`,minLength:5,rows:10}),persona:xa({sectionKey:`general`,label:`Persona`,info:`Define the unique tone of your email`,path:`config.persona`,groupPath:`config.prompt`,required:!1,options:[{label:`Sales`,value:`sales`},{label:`Human Resources`,value:`human_resources`},{label:`Customer Success`,value:`customer_success`}]}),output_fields:L(r.object({[Gh.name]:O({fieldName:Gh.name}),[Kh.name]:O({fieldName:Kh.name})}))})}),Jh=class extends H{pipeId=Hh;payload;payloadSchema=qh;billableOperations=Wh;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return gi(this.payload.config.model)}estimateBillableOperations(){return[hi(this.payload.config.model,Uh)]}getInputRequirement(){return hh([this.payload.config.template])}getSecretRequirements(){return J([this.payload.config.template])}getConstantRequirements(){return gh([this.payload.config.template])}getRawOutputFields(){return{[Gh.name]:this.catalogOutput(Gh),[Kh.name]:this.catalogOutput(Kh)}}getConnectionsRequirements(){return _i(this.payload.config.model)}},Yh=qh,Xh={pipeId:Hh,inputFieldMode:`config`,outputFieldMode:`static`,basePipe:U(Hh),label:`Email writer`,executionMode:`single`,categories:[`tools`],lifecycle:null,description:`An AI agent specialized in composing emails.`,detailed_description:`AI email composer. Outputs: email_subject, email_body. Pair with email:send:gmail@1 or email:send:resend@1 to send the composed email. Requires 'email' field in input records for the sender pipe.`,tags:[z.AI],docPath:W(Hh),defaultInputRequirement:null,billableOperations:Wh,allowedUserConnectionProviders:vi(),managedProviders:vi(),deprecatedProviders:[],defaultPayload:{pipe_id:Hh,connector:null,run_if:null,config:{template:``,output_fields:{email_body:{alias:``,enabled:!0},email_subject:{alias:``,enabled:!0}},persona:`sales`,model:`openai-gpt-latest`,signature:``}}},Zh=`field:domainify@1`,Qh=g(`url_input`),$h=g(`domain`),eg=r.object({pipe_id:r.literal(Zh),run_if:x(),connector:w(),config:r.object({input_fields:R(r.object({[Qh.name]:T({fieldName:Qh.name})})),output_fields:L(r.object({[$h.name]:O({fieldName:$h.name})}))}).optional()}),tg=e=>B(G(Qh,e)),ng={"field-domainify-v1-pipe0":{provider:`pipe0`,allowManagedConnection:!0,credits:{default:0},mode:`always`}},rg=class extends H{pipeId=Zh;payload;payloadSchema=eg;billableOperations=ng;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[]}getInputRequirement(){return tg(this.payload.config)}getRawOutputFields(){return{[$h.name]:this.catalogOutput($h)}}getConnectionsRequirements(){return[{provider:`pipe0`,rateLimitRatio:1,rateLimitOperation:`pipe0_logic`,allowManagedConnection:!0}]}},ig=eg,ag={pipeId:Zh,basePipe:U(Zh),label:`Extract domain`,executionMode:`single`,categories:[`tools`],lifecycle:null,description:`Transform URL input into a domain. Example: 'https://go.com' to 'go.com'.`,tags:[z.LOGIC,z.FIELDS],docPath:W(Zh),billableOperations:ng,defaultInputRequirement:tg(null),inputFieldMode:`static`,outputFieldMode:`static`,allowedUserConnectionProviders:[],managedProviders:[`pipe0`],deprecatedProviders:[],defaultPayload:{pipe_id:Zh,run_if:null,connector:null,config:{input_fields:{url_input:{alias:``}},output_fields:{domain:{alias:``,enabled:!0}}}}},og=`field:slugify@1`,sg=g(`string_input`),cg=g(`slugified`),lg=r.object({pipe_id:r.literal(og),run_if:x(),connector:w(),config:r.object({input_fields:R(r.object({[sg.name]:T({fieldName:sg.name})})),output_fields:L(r.object({[cg.name]:O({fieldName:cg.name})}))}).optional()}),ug=e=>B(G(sg,e)),dg={"field-slugify-v1-pipe0":{provider:`pipe0`,allowManagedConnection:!0,credits:{default:0},mode:`always`}},fg=class extends H{pipeId=og;payload;payloadSchema=lg;billableOperations=dg;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[]}getInputRequirement(){return ug(this.payload.config)}getRawOutputFields(){return{[cg.name]:this.catalogOutput(cg)}}getConnectionsRequirements(){return[{provider:`pipe0`,rateLimitRatio:1,rateLimitOperation:`pipe0_logic`,allowManagedConnection:!0}]}},pg=lg,mg={pipeId:og,basePipe:U(og),label:`Slugify field`,executionMode:`single`,categories:[`tools`],lifecycle:null,description:`Strip a field value of characters not commonly found in slugs.`,tags:[z.LOGIC,z.FIELDS],docPath:W(og),billableOperations:dg,defaultInputRequirement:ug(null),inputFieldMode:`static`,outputFieldMode:`static`,allowedUserConnectionProviders:[],managedProviders:[`pipe0`],deprecatedProviders:[],defaultPayload:{pipe_id:og,run_if:null,connector:null,config:{input_fields:{string_input:{alias:``}},output_fields:{slugified:{alias:``,enabled:!0}}}}};function hg({name:e,resolvedName:t}){return e===t?`'${e}'`:`'${e}' (resolved to '${t}')`}function gg(e){switch(e.kind){case`field`:return hg(e.field);case`optional`:return`[optional ${hg(e.field)}]`;case`all`:return e.of.length===0?`(none)`:e.of.length===1?gg(e.of[0]):`(${e.of.map(gg).join(` AND `)})`;case`any`:return e.of.length===0?`(none)`:e.of.length===1?gg(e.of[0]):`(${e.of.map(gg).join(` OR `)})`}}function _g(e,t){return`Pipe input requirement is not satisfied${t?.pipeId!==void 0||t?.index!==void 0?` for pipe${t.index===void 0?``:` at index ${t.index}`}${t.pipeId===void 0?``:` (${t.pipeId})`}`:``}: ${gg(e)}. Map missing fields to existing ones, add a pipe that outputs them, or include them in your inputs.`}var vg=class extends Error{constructor(e){super(`Request validation failed (${e.length} errors): ${e.join(`, `)}`),this.errors=e,this.name=`RequestValidationError`,Object.setPrototypeOf(this,new.target.prototype)}};const X={ConditionTargetFieldNotFound:({fieldName:e,pipeId:t,pipeIdx:n})=>({code:`ConditionTargetFieldNotFound`,message:`${t} (idx: ${n}) has an invalid condition. Field '${e}' not found.`}),FaultyEnrichmentOrder:()=>({code:`FaultyEnrichmentOrder`,message:`Enrichment not found while ordering. Was the request invalid?`}),MustDefineAnnotations:()=>({code:`MustDefineAnnotations`,message:`Must define either input or field annoations to validate pipes payload.`}),CircularDependency:({currentPipe:e,circularPipe:t})=>({code:`CircularDependency`,message:`'${e.pipe_id}' (${e.idx}) and '${t.pipeId}' (${t.idx}) create a dependency loop. They both need the other's output to complete. Neither can complete. You can map the pipe outputs or input to fields with different names if you want the pipes to be independent or each other.`}),ValidationFailed:({error:e})=>({code:`ValidationFailed`,message:`Failed to validate task request: ${e instanceof Error?e.message:String(e)}`}),MissingCustomConnections:({pipeId:e,index:t,missingProviders:n})=>({code:`MissingCustomConnections`,message:`Pipe ${e} (index ${t}) requires you to specify custom connections for the providers ${n.join(`, `)}. Create the custom connections in the dashbard and reference them in your request.`}),ResponseGenerationFailed:({error:e})=>({code:`ResponseGenerationFailed`,message:`Failed to generate response: ${e instanceof Error?e.message:String(e)}`}),InputValuesMustHaveSameType:({pipeId:e,fieldNames:t})=>({code:`InputValuesMustHaveSameType`,message:`Pipe ${e} requires all input values to have the same type. But values ${t.join(`, `)} have different types.`}),NotValidated:()=>({code:`NotValidated`,message:`PipelineRequest must be validated before accessing results`}),MissingIdInInput:()=>({code:`MissingIdInInput`,message:`Inputs missing 'id' property.`}),InputDataTypeMismatch:({key:e,derivedInputFieldType:t,fieldType:n})=>({code:`InputDataTypeMismatch`,message:`Input data has values with matching keys '${e}' but different types. Expected type: '${t}'. Actual: '${n}'.`}),UnresolvableDependency:({index:e,dependencyIndex:t})=>({code:`UnresolvableDependency`,message:`Unresolvable dependency at index ${e} to ${t}`}),RequirementUnmet:({requirement:e,pipeId:t,index:n})=>({code:`RequirementUnmet`,message:_g(e,{pipeId:t,index:n})}),HardInputDependencyViolation:({index:e,indexPipeId:t,dependencyIndex:n,dependencyIndexPipeId:r})=>({code:`HardInputDependencyViolation`,message:`Dependency violation: pipe at idx: ${e} (${t}) must come after pipe at idx: ${n} (${r})`}),HardConditionDependencyViolation:({index:e,indexPipeId:t,dependencyIndex:n,dependencyIndexPipeId:r})=>({code:`HardConditionDependencyViolation`,message:`Dependency violation: pipe at idx: ${e} (${t}) has a condition that points to pipe at idx: ${n} (${r}). But pipe index: ${e} (${t}) is always must be processed after pipe at index ${n} (${r}). This is due to input requirements or other conditions.`}),DuplicateInitialField:({name:e})=>({code:`DuplicateInitialField`,message:`Duplicate initial field '${e}' detected. Each field must be defined only once.`}),MissingInputId:({index:e})=>({code:`MissingInputId`,message:`Input record at index ${e} is missing a required ID field.`}),InvalidId:()=>({code:`InvalidId`,message:`Cell IDs must be numbers or strings`}),IDConflict:({index:e,id:t})=>({code:`IDConflict`,message:`Input data at index ${e} has Id conflict. Id '${t}' is not unique.`}),UnknownResolver:({pipeId:e,index:t})=>({code:`UnknownResolver`,message:`Unknown pipe '${e}' specified at position ${t}.`}),DuplicatePipeOutput:({pipeId:e,outputField:t})=>({code:`DuplicateEnrichmentOutput`,message:`Field conflict for '${e}'. Cannot add output field ${hg(t)} to pipeline because it already exists. Try renaming it.`}),InputDataDoesNotMatchOutputField:({index:e,resolvedName:t,type:n,inputValueType:r})=>({code:`InputDataDoesNotMatchOutputField`,message:`Input at position ${e} provided data for field '${t}' that did not match expected type. Expected: '${n}', Actual: '${r}'.`}),AmbiguousDependency:({fieldName:e})=>({code:`AmbiguousDependency`,message:`Found more than one pipe that produces field: ${e}. Rename or disable the field to add it.`}),EmptyObjectProperty:()=>({code:`EmptyObjectProperty`,message:`Input data contains empty object property "". This is not allowed.`}),JSONSchemaMissing:({schemaRef:e,outputName:t})=>({code:`JSONSchemaMissing`,message:`Missing jsonSchema '${e}' for output with name '${t}'.`}),InvalidJSONSchema:({schemaRef:e})=>({code:`InvalidJSONSchema`,message:`JSON Schema (ref: ${e}) is invalid.`}),MissingOutputFieldDescription:({outputName:e})=>({code:`MissingOutputFieldDescription`,message:`The output field ${e} is missing a "description" property. Define it {{ ${e} description="Foo bar" }}`}),InvalidFormatTag:({outputName:e,format:t})=>({code:`InvalidFormatTag`,message:`The output field ${e} has an invalid format tag ${t}.`}),RecursiveExpandedValue:()=>({code:`RecursiveExpandedValue`,message:`Your input values contain a recursive expanded valuetype `})};var yg=class extends Error{},Z=class extends yg{codes;appErrors;constructor(e){super(e.map(e=>e.message).join(`, `)||`Unknown`),this.errors=e,this.codes=e.map(e=>e.code),this.appErrors=e}};const bg=`fields:merge@1`,xg=g(`merge_result`),Sg=r.object({pipe_id:r.literal(bg),connector:w(),run_if:x(),config:r.object({sources:la({sectionKey:`general`,groupPath:`config.general`,path:`config.sources`,info:`Provide references to input fields`,minItems:2}),output_fields:L(r.object({[xg.name]:O({fieldName:xg.name})}))})}),Cg={"fields-merge-v1-pipe0":{credits:{default:0},allowManagedConnection:!0,provider:`pipe0`,mode:`always`}},wg=class extends H{pipeId=bg;payload;payloadSchema=Sg;billableOperations=Cg;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[`fields-merge-v1-pipe0`]}getInputRequirement(){let e=this.payload.config.sources.map(e=>e.field_name),t;return V(...this.payload.config.sources.map(n=>B({format:null,type:r=>{let i=ph(r,e)[n.field_name],a=i?.type?i.type:`unknown`;if(a!==`unknown`){if(t&&t!==a)throw new Z([X.InputValuesMustHaveSameType({pipeId:this.pipeId,fieldNames:e})]);t=a}return i?.type?i.type:`unknown`},label:``,description:``,name:n.field_name,resolvedName:n.field_name})))}getRawOutputFields(){return{[xg.name]:this.catalogOutput(xg,{resolveType:e=>{let t=ph(e,this.payload.config.sources.map(e=>e.field_name));return Object.values(t).find(e=>!!e.type)?.type||`string`}})}}getConnectionsRequirements(){return[{provider:`pipe0`,rateLimitRatio:1,rateLimitOperation:`pipe0_logic`,allowManagedConnection:!0}]}},Tg=Sg,Eg={pipeId:bg,inputFieldMode:`config`,outputFieldMode:`static`,basePipe:U(bg),label:`Merge fields`,executionMode:`single`,categories:[`tools`],lifecycle:null,description:`Join multiple fields into one field. The final result will be the first defined field.`,tags:[z.FIELDS,z.LOGIC],docPath:W(bg),defaultInputRequirement:null,billableOperations:Cg,allowedUserConnectionProviders:[],managedProviders:[`pipe0`],deprecatedProviders:[],defaultPayload:{pipe_id:bg,connector:null,run_if:null,config:{sources:[],output_fields:{merge_result:{alias:``,enabled:!0}}}}},Dg=`http:request@1`,Og=g(`http_response_status`),kg=g(`http_response_body`),Ag=g(`http_response_headers`),jg=r.object({pipe_id:r.literal(Dg),connector:w(),run_if:x(),config:r.object({method:xa({sectionKey:`general`,groupPath:`config.general`,path:`config.method`,label:`Method`,defaultValue:`GET`,options:[...[{value:`GET`,label:`GET`},{value:`POST`,label:`POST`},{value:`PUT`,label:`PUT`},{value:`PATCH`,label:`PATCH`},{value:`DELETE`,label:`DELETE`}]],required:!0}),url:S({sectionKey:`general`,groupPath:`config.general`,path:`config.url`,label:`Endpoint`,info:"Target URL. Only http/https. Type `@` to insert a field reference or `$` to insert a secret reference.",placeholder:`https://api.example.com/v1/things`,inputType:`text`,minLength:1,maxLength:2048,expectedTagType:`string`,expectedTagFormat:`text`}),query_params:ma({sectionKey:`general`,groupPath:`config.general`,path:`config.query_params`,label:`Query parameters`,info:"Appended to the URL. Type `@` to insert a field reference or `$` to insert a secret reference in either column.",keyLabel:`Key`,valueLabel:`Value`,keyPlaceholder:`page`,valuePlaceholder:`1`,maxItems:50}),body:S({sectionKey:`general`,groupPath:`config.general`,path:`config.body`,label:`Body`,info:"Sent verbatim as the request body. Type `@` to insert a field reference or `$` to insert a secret reference. Set Content-Type via Headers.",placeholder:`{
71
+ …`,inputType:`text`,minLength:1,maxLength:1e6,expectedTagType:`string`,expectedTagFormat:`markdown`,multiline:!0}),output_fields:L(r.object({[Eh.name]:O({fieldName:Eh.name})}))})}),Oh={"email-send-resend-v1-resend":{allowManagedConnection:!1,provider:`resend`,credits:null,mode:null}},kh=class extends H{pipeId=Th;payload;payloadSchema=Dh;billableOperations=Oh;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`resend`]}estimateBillableOperations(){return[`email-send-resend-v1-resend`]}getTemplatedFields(){return[this.payload.config.from,this.payload.config.to,this.payload.config.reply_to,this.payload.config.subject,this.payload.config.body]}getInputRequirement(){return hh(this.getTemplatedFields())}getSecretRequirements(){return gh(this.getTemplatedFields())}getConstantRequirements(){return _h(this.getTemplatedFields())}getRawOutputFields(){return{[Eh.name]:this.catalogOutput(Eh)}}getConnectionsRequirements(){return[{provider:`resend`,rateLimitRatio:1,rateLimitOperation:`resend_generic`,allowManagedConnection:!1}]}},Ah=Dh,jh={pipeId:Th,basePipe:U(Th),label:`Send email with Resend`,executionMode:`single`,categories:[`actions`],lifecycle:null,description:`Send an email with Resend.`,detailed_description:"Send an email via Resend. From, To, Reply-To, Subject and Body are templated config fields β€” reference upstream fields with `{{ field_name }}` and stored secrets with `{{ SECRETS.KEY }}`. Requires a Resend vault connection (call list_connections to find one).",tags:[z.EMAIL],docPath:W(Th),billableOperations:Oh,inputFieldMode:`config`,outputFieldMode:`static`,allowedUserConnectionProviders:[`resend`],defaultInputRequirement:null,managedProviders:[],deprecatedProviders:[],defaultPayload:{pipe_id:Th,connector:{strategy:`first`,connections:[]},run_if:null,config:{from:``,to:``,reply_to:``,subject:``,body:``,output_fields:{resend_email_success:{alias:``,enabled:!0}}}}},Mh=`email:validate:zerobounce@1`,Nh=g(`email`),Ph=g(`zerobounce_validation_status`),Fh=g(`zerobounce_validation_match`),Ih=r.object({pipe_id:r.literal(Mh),connector:C(),run_if:x(),config:r.object({input_fields:R(r.object({[Nh.name]:T({fieldName:Nh.name})})),output_fields:L(r.object({[Fh.name]:O({fieldName:Fh.name}),[Ph.name]:O({fieldName:Ph.name})}))}).optional()}),Lh=e=>B(G(Nh,e)),Rh={"email-validate-zerobounce-v1-zerobounce":{provider:`zerobounce`,allowManagedConnection:!0,credits:{default:.4,level1:{credits:.3,weight:1},level2:{credits:.15,weight:6}},mode:`always`}},zh=class extends H{pipeId=Mh;payload;payloadSchema=Ih;billableOperations=Rh;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`zerobounce`]}estimateBillableOperations(){return[`email-validate-zerobounce-v1-zerobounce`]}getInputRequirement(){return Lh(this.payload.config)}getRawOutputFields(){return{[Ph.name]:this.catalogOutput(Ph),[Fh.name]:this.catalogOutput(Fh)}}getConnectionsRequirements(){return[{provider:`zerobounce`,rateLimitRatio:1,rateLimitOperation:`zerobounce_generic`,allowManagedConnection:!0}]}},Bh=Ih,Vh={pipeId:Mh,basePipe:U(Mh),label:`Validate email`,executionMode:`single`,categories:[`people_data`],lifecycle:null,description:`Verify email address against various factors, including syntax, domain, and server existence, to ensure it is deliverable and active.`,tags:[z.EMAIL],docPath:W(Mh),billableOperations:Rh,inputFieldMode:`static`,outputFieldMode:`static`,allowedUserConnectionProviders:[`zerobounce`],managedProviders:[`zerobounce`],deprecatedProviders:[],defaultInputRequirement:Lh(null),defaultPayload:{pipe_id:Mh,connector:null,run_if:null,config:{input_fields:{email:{alias:``}},output_fields:{zerobounce_validation_status:{alias:``,enabled:!0},zerobounce_validation_match:{alias:``,enabled:!0}}}}},Hh={title:`Software Engineer, CEO, ...`,seniority:`C-Suite, Senior, ...`,department:`Consulting, Finance, ...`,certification:`CISSP, AWS, ...`,crunchbase_category:`3D Printing, Big Date, ...`,honor:`Cum Laude, 40 Under 40, ...`,field_of_study:`Engineering, Computer Science, ...`,degree_name:`Bachelor of Science, ...`,extracurricular:`Athelete, Debate Team, ...`,job_function:`Accounting, Advertising, ...`,location:`USA, Germany, France, ...`,company_name:`Google, Anthropic, ...`,company_domain:`google.com, openai.com, ...`,company_profile_keyword:`B2B, Software, ...`,headline_keywords:`Founder, JavaScript, ...`,profile_keywords:`Coach, Scrum, ...`,languages:`German, English, ...`,languages_1:`Spanish, Italian, ...`,skills:`TypeScript, Playwright, ...`,industry:`IT, Agriculture, ...`,investor:`a16z, Inside Partners, ...`,school:`MIT, Harvard, ...`,prompt:`Enter prompt here...`,template:`Enter template here...`};function J(e){return Hh[e]}const Uh=`email:write@1`,Wh=`email-write-v1`,Gh=mi(Wh),Kh=g(`email_subject`),qh=g(`email_body`),Jh=r.object({pipe_id:r.literal(Uh),connector:C(),run_if:x(),config:r.object({template:na({sectionKey:`general`,label:`Prompt`,path:`config.template`,placeholder:J(`prompt`),groupPath:`config.prompt`,required:!0}),model:Sa({sectionKey:`general`,label:`Model`,path:`config.model`,groupPath:`config.prompt`,billableOperations:Gh}),signature:ba({sectionKey:`general`,label:`Signature (Markdown)`,path:`config.signature`,groupPath:`config.email`,minLength:5,rows:10}),persona:xa({sectionKey:`general`,label:`Persona`,info:`Define the unique tone of your email`,path:`config.persona`,groupPath:`config.prompt`,required:!1,options:[{label:`Sales`,value:`sales`},{label:`Human Resources`,value:`human_resources`},{label:`Customer Success`,value:`customer_success`}]}),output_fields:L(r.object({[Kh.name]:O({fieldName:Kh.name}),[qh.name]:O({fieldName:qh.name})}))})}),Yh=class extends H{pipeId=Uh;payload;payloadSchema=Jh;billableOperations=Gh;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return gi(this.payload.config.model)}estimateBillableOperations(){return[hi(this.payload.config.model,Wh)]}getInputRequirement(){return hh([this.payload.config.template])}getSecretRequirements(){return gh([this.payload.config.template])}getConstantRequirements(){return _h([this.payload.config.template])}getRawOutputFields(){return{[Kh.name]:this.catalogOutput(Kh),[qh.name]:this.catalogOutput(qh)}}getConnectionsRequirements(){return _i(this.payload.config.model)}},Xh=Jh,Zh={pipeId:Uh,inputFieldMode:`config`,outputFieldMode:`static`,basePipe:U(Uh),label:`Email writer`,executionMode:`single`,categories:[`tools`],lifecycle:null,description:`An AI agent specialized in composing emails.`,detailed_description:`AI email composer. Outputs: email_subject, email_body. Pair with email:send:gmail@1 or email:send:resend@1 to send the composed email. Requires 'email' field in input records for the sender pipe.`,tags:[z.AI],docPath:W(Uh),defaultInputRequirement:null,billableOperations:Gh,allowedUserConnectionProviders:vi(),managedProviders:vi(),deprecatedProviders:[],defaultPayload:{pipe_id:Uh,connector:null,run_if:null,config:{template:``,output_fields:{email_body:{alias:``,enabled:!0},email_subject:{alias:``,enabled:!0}},persona:`sales`,model:`openai-gpt-latest`,signature:``}}},Qh=`field:domainify@1`,$h=g(`url_input`),eg=g(`domain`),tg=r.object({pipe_id:r.literal(Qh),run_if:x(),connector:w(),config:r.object({input_fields:R(r.object({[$h.name]:T({fieldName:$h.name})})),output_fields:L(r.object({[eg.name]:O({fieldName:eg.name})}))}).optional()}),ng=e=>B(G($h,e)),rg={"field-domainify-v1-pipe0":{provider:`pipe0`,allowManagedConnection:!0,credits:{default:0},mode:`always`}},ig=class extends H{pipeId=Qh;payload;payloadSchema=tg;billableOperations=rg;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[]}getInputRequirement(){return ng(this.payload.config)}getRawOutputFields(){return{[eg.name]:this.catalogOutput(eg)}}getConnectionsRequirements(){return[{provider:`pipe0`,rateLimitRatio:1,rateLimitOperation:`pipe0_logic`,allowManagedConnection:!0}]}},ag=tg,og={pipeId:Qh,basePipe:U(Qh),label:`Extract domain`,executionMode:`single`,categories:[`tools`],lifecycle:null,description:`Transform URL input into a domain. Example: 'https://go.com' to 'go.com'.`,tags:[z.LOGIC,z.FIELDS],docPath:W(Qh),billableOperations:rg,defaultInputRequirement:ng(null),inputFieldMode:`static`,outputFieldMode:`static`,allowedUserConnectionProviders:[],managedProviders:[`pipe0`],deprecatedProviders:[],defaultPayload:{pipe_id:Qh,run_if:null,connector:null,config:{input_fields:{url_input:{alias:``}},output_fields:{domain:{alias:``,enabled:!0}}}}},sg=`field:slugify@1`,cg=g(`string_input`),lg=g(`slugified`),ug=r.object({pipe_id:r.literal(sg),run_if:x(),connector:w(),config:r.object({input_fields:R(r.object({[cg.name]:T({fieldName:cg.name})})),output_fields:L(r.object({[lg.name]:O({fieldName:lg.name})}))}).optional()}),dg=e=>B(G(cg,e)),fg={"field-slugify-v1-pipe0":{provider:`pipe0`,allowManagedConnection:!0,credits:{default:0},mode:`always`}},pg=class extends H{pipeId=sg;payload;payloadSchema=ug;billableOperations=fg;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[]}getInputRequirement(){return dg(this.payload.config)}getRawOutputFields(){return{[lg.name]:this.catalogOutput(lg)}}getConnectionsRequirements(){return[{provider:`pipe0`,rateLimitRatio:1,rateLimitOperation:`pipe0_logic`,allowManagedConnection:!0}]}},mg=ug,hg={pipeId:sg,basePipe:U(sg),label:`Slugify field`,executionMode:`single`,categories:[`tools`],lifecycle:null,description:`Strip a field value of characters not commonly found in slugs.`,tags:[z.LOGIC,z.FIELDS],docPath:W(sg),billableOperations:fg,defaultInputRequirement:dg(null),inputFieldMode:`static`,outputFieldMode:`static`,allowedUserConnectionProviders:[],managedProviders:[`pipe0`],deprecatedProviders:[],defaultPayload:{pipe_id:sg,run_if:null,connector:null,config:{input_fields:{string_input:{alias:``}},output_fields:{slugified:{alias:``,enabled:!0}}}}};function gg({name:e,resolvedName:t}){return e===t?`'${e}'`:`'${e}' (resolved to '${t}')`}function _g(e){switch(e.kind){case`field`:return gg(e.field);case`optional`:return`[optional ${gg(e.field)}]`;case`all`:return e.of.length===0?`(none)`:e.of.length===1?_g(e.of[0]):`(${e.of.map(_g).join(` AND `)})`;case`any`:return e.of.length===0?`(none)`:e.of.length===1?_g(e.of[0]):`(${e.of.map(_g).join(` OR `)})`}}function vg(e,t){return`Pipe input requirement is not satisfied${t?.pipeId!==void 0||t?.index!==void 0?` for pipe${t.index===void 0?``:` at index ${t.index}`}${t.pipeId===void 0?``:` (${t.pipeId})`}`:``}: ${_g(e)}. Map missing fields to existing ones, add a pipe that outputs them, or include them in your inputs.`}var yg=class extends Error{constructor(e){super(`Request validation failed (${e.length} errors): ${e.join(`, `)}`),this.errors=e,this.name=`RequestValidationError`,Object.setPrototypeOf(this,new.target.prototype)}};const Y={ConditionTargetFieldNotFound:({fieldName:e,pipeId:t,pipeIdx:n})=>({code:`ConditionTargetFieldNotFound`,message:`${t} (idx: ${n}) has an invalid condition. Field '${e}' not found.`}),FaultyEnrichmentOrder:()=>({code:`FaultyEnrichmentOrder`,message:`Enrichment not found while ordering. Was the request invalid?`}),MustDefineAnnotations:()=>({code:`MustDefineAnnotations`,message:`Must define either input or field annoations to validate pipes payload.`}),CircularDependency:({currentPipe:e,circularPipe:t})=>({code:`CircularDependency`,message:`'${e.pipe_id}' (${e.idx}) and '${t.pipeId}' (${t.idx}) create a dependency loop. They both need the other's output to complete. Neither can complete. You can map the pipe outputs or input to fields with different names if you want the pipes to be independent or each other.`}),ValidationFailed:({error:e})=>({code:`ValidationFailed`,message:`Failed to validate task request: ${e instanceof Error?e.message:String(e)}`}),MissingCustomConnections:({pipeId:e,index:t,missingProviders:n})=>({code:`MissingCustomConnections`,message:`Pipe ${e} (index ${t}) requires you to specify custom connections for the providers ${n.join(`, `)}. Create the custom connections in the dashbard and reference them in your request.`}),ResponseGenerationFailed:({error:e})=>({code:`ResponseGenerationFailed`,message:`Failed to generate response: ${e instanceof Error?e.message:String(e)}`}),InputValuesMustHaveSameType:({pipeId:e,fieldNames:t})=>({code:`InputValuesMustHaveSameType`,message:`Pipe ${e} requires all input values to have the same type. But values ${t.join(`, `)} have different types.`}),NotValidated:()=>({code:`NotValidated`,message:`PipelineRequest must be validated before accessing results`}),MissingIdInInput:()=>({code:`MissingIdInInput`,message:`Inputs missing 'id' property.`}),InputDataTypeMismatch:({key:e,derivedInputFieldType:t,fieldType:n})=>({code:`InputDataTypeMismatch`,message:`Input data has values with matching keys '${e}' but different types. Expected type: '${t}'. Actual: '${n}'.`}),UnresolvableDependency:({index:e,dependencyIndex:t})=>({code:`UnresolvableDependency`,message:`Unresolvable dependency at index ${e} to ${t}`}),RequirementUnmet:({requirement:e,pipeId:t,index:n})=>({code:`RequirementUnmet`,message:vg(e,{pipeId:t,index:n})}),HardInputDependencyViolation:({index:e,indexPipeId:t,dependencyIndex:n,dependencyIndexPipeId:r})=>({code:`HardInputDependencyViolation`,message:`Dependency violation: pipe at idx: ${e} (${t}) must come after pipe at idx: ${n} (${r})`}),HardConditionDependencyViolation:({index:e,indexPipeId:t,dependencyIndex:n,dependencyIndexPipeId:r})=>({code:`HardConditionDependencyViolation`,message:`Dependency violation: pipe at idx: ${e} (${t}) has a condition that points to pipe at idx: ${n} (${r}). But pipe index: ${e} (${t}) is always must be processed after pipe at index ${n} (${r}). This is due to input requirements or other conditions.`}),DuplicateInitialField:({name:e})=>({code:`DuplicateInitialField`,message:`Duplicate initial field '${e}' detected. Each field must be defined only once.`}),MissingInputId:({index:e})=>({code:`MissingInputId`,message:`Input record at index ${e} is missing a required ID field.`}),InvalidId:()=>({code:`InvalidId`,message:`Cell IDs must be numbers or strings`}),IDConflict:({index:e,id:t})=>({code:`IDConflict`,message:`Input data at index ${e} has Id conflict. Id '${t}' is not unique.`}),UnknownResolver:({pipeId:e,index:t})=>({code:`UnknownResolver`,message:`Unknown pipe '${e}' specified at position ${t}.`}),DuplicatePipeOutput:({pipeId:e,outputField:t})=>({code:`DuplicateEnrichmentOutput`,message:`Field conflict for '${e}'. Cannot add output field ${gg(t)} to pipeline because it already exists. Try renaming it.`}),InputDataDoesNotMatchOutputField:({index:e,resolvedName:t,type:n,inputValueType:r})=>({code:`InputDataDoesNotMatchOutputField`,message:`Input at position ${e} provided data for field '${t}' that did not match expected type. Expected: '${n}', Actual: '${r}'.`}),AmbiguousDependency:({fieldName:e})=>({code:`AmbiguousDependency`,message:`Found more than one pipe that produces field: ${e}. Rename or disable the field to add it.`}),EmptyObjectProperty:()=>({code:`EmptyObjectProperty`,message:`Input data contains empty object property "". This is not allowed.`}),JSONSchemaMissing:({schemaRef:e,outputName:t})=>({code:`JSONSchemaMissing`,message:`Missing jsonSchema '${e}' for output with name '${t}'.`}),InvalidJSONSchema:({schemaRef:e})=>({code:`InvalidJSONSchema`,message:`JSON Schema (ref: ${e}) is invalid.`}),MissingOutputFieldDescription:({outputName:e})=>({code:`MissingOutputFieldDescription`,message:`The output field ${e} is missing a "description" property. Define it {{ ${e} description="Foo bar" }}`}),InvalidFormatTag:({outputName:e,format:t})=>({code:`InvalidFormatTag`,message:`The output field ${e} has an invalid format tag ${t}.`}),RecursiveExpandedValue:()=>({code:`RecursiveExpandedValue`,message:`Your input values contain a recursive expanded valuetype `})};var bg=class extends Error{},X=class extends bg{codes;appErrors;constructor(e){super(e.map(e=>e.message).join(`, `)||`Unknown`),this.errors=e,this.codes=e.map(e=>e.code),this.appErrors=e}};const xg=`fields:merge@1`,Sg=g(`merge_result`),Cg=r.object({pipe_id:r.literal(xg),connector:w(),run_if:x(),config:r.object({sources:la({sectionKey:`general`,groupPath:`config.general`,path:`config.sources`,info:`Provide references to input fields`,minItems:2}),output_fields:L(r.object({[Sg.name]:O({fieldName:Sg.name})}))})}),wg={"fields-merge-v1-pipe0":{credits:{default:0},allowManagedConnection:!0,provider:`pipe0`,mode:`always`}},Tg=class extends H{pipeId=xg;payload;payloadSchema=Cg;billableOperations=wg;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[`fields-merge-v1-pipe0`]}getInputRequirement(){let e=this.payload.config.sources.map(e=>e.field_name),t;return V(...this.payload.config.sources.map(n=>B({format:null,type:r=>{let i=ph(r,e)[n.field_name],a=i?.type?i.type:`unknown`;if(a!==`unknown`){if(t&&t!==a)throw new X([Y.InputValuesMustHaveSameType({pipeId:this.pipeId,fieldNames:e})]);t=a}return i?.type?i.type:`unknown`},label:``,description:``,name:n.field_name,resolvedName:n.field_name})))}getRawOutputFields(){return{[Sg.name]:this.catalogOutput(Sg,{resolveType:e=>{let t=ph(e,this.payload.config.sources.map(e=>e.field_name));return Object.values(t).find(e=>!!e.type)?.type||`string`}})}}getConnectionsRequirements(){return[{provider:`pipe0`,rateLimitRatio:1,rateLimitOperation:`pipe0_logic`,allowManagedConnection:!0}]}},Eg=Cg,Dg={pipeId:xg,inputFieldMode:`config`,outputFieldMode:`static`,basePipe:U(xg),label:`Merge fields`,executionMode:`single`,categories:[`tools`],lifecycle:null,description:`Join multiple fields into one field. The final result will be the first defined field.`,tags:[z.FIELDS,z.LOGIC],docPath:W(xg),defaultInputRequirement:null,billableOperations:wg,allowedUserConnectionProviders:[],managedProviders:[`pipe0`],deprecatedProviders:[],defaultPayload:{pipe_id:xg,connector:null,run_if:null,config:{sources:[],output_fields:{merge_result:{alias:``,enabled:!0}}}}},Og=`http:request@1`,kg=g(`http_response_status`),Ag=g(`http_response_body`),jg=g(`http_response_headers`),Mg=r.object({pipe_id:r.literal(Og),connector:w(),run_if:x(),config:r.object({method:xa({sectionKey:`general`,groupPath:`config.general`,path:`config.method`,label:`Method`,defaultValue:`GET`,options:[...[{value:`GET`,label:`GET`},{value:`POST`,label:`POST`},{value:`PUT`,label:`PUT`},{value:`PATCH`,label:`PATCH`},{value:`DELETE`,label:`DELETE`}]],required:!0}),url:S({sectionKey:`general`,groupPath:`config.general`,path:`config.url`,label:`Endpoint`,info:"Target URL. Only http/https. Type `@` to insert a field reference or `$` to insert a secret reference.",placeholder:`https://api.example.com/v1/things`,inputType:`text`,minLength:1,maxLength:2048,expectedTagType:`string`,expectedTagFormat:`text`}),query_params:ma({sectionKey:`general`,groupPath:`config.general`,path:`config.query_params`,label:`Query parameters`,info:"Appended to the URL. Type `@` to insert a field reference or `$` to insert a secret reference in either column.",keyLabel:`Key`,valueLabel:`Value`,keyPlaceholder:`page`,valuePlaceholder:`1`,maxItems:50}),body:S({sectionKey:`general`,groupPath:`config.general`,path:`config.body`,label:`Body`,info:"Sent verbatim as the request body. Type `@` to insert a field reference or `$` to insert a secret reference. Set Content-Type via Headers.",placeholder:`{
72
72
  "key": "value"
73
- }`,inputType:`text`,maxLength:1e6,expectedTagType:`string`,expectedTagFormat:`text`,multiline:!0}),headers:ma({sectionKey:`general`,groupPath:`config.general`,path:`config.headers`,label:`Headers`,info:"Type `@` to insert a field reference or `$` to insert a secret reference in either column (e.g. `Bearer $token`).",keyLabel:`Header`,valueLabel:`Value`,keyPlaceholder:`Authorization`,valuePlaceholder:`Bearer {{ secret … }}`,maxItems:50}),expected_response_schema:Ea({sectionKey:`general`,groupPath:`config.advanced`,path:`config.expected_response_schema`,label:`Expected response shape`,description:`Optional JSON Schema. Successful responses that don't satisfy it are marked failed. Extra properties are always tolerated (whitelist).`,required:!1,allowEmpty:!0}),output_fields:L(r.object({[Og.name]:O({fieldName:Og.name}),[kg.name]:O({fieldName:kg.name}),[Ag.name]:O({fieldName:Ag.name})}))})}),Mg={"http-request-v1-pipe0":{provider:`pipe0`,allowManagedConnection:!0,credits:{default:.001},mode:`always`}},Ng=class extends H{pipeId=Dg;payload;payloadSchema=jg;billableOperations=Mg;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[`http-request-v1-pipe0`]}getTemplatedFields(){let e=[this.payload.config.url,this.payload.config.body];for(let t of this.payload.config.query_params??[])e.push(t.key,t.value);for(let t of this.payload.config.headers??[])e.push(t.key,t.value);return e}getInputRequirement(){return hh(this.getTemplatedFields(),{expectedType:`string`,expectedFormat:`text`})}getSecretRequirements(){return J(this.getTemplatedFields())}getConstantRequirements(){return gh(this.getTemplatedFields())}getRawOutputFields(){return{[Og.name]:this.catalogOutput(Og),[kg.name]:this.catalogOutput(kg),[Ag.name]:this.catalogOutput(Ag)}}getConnectionsRequirements(){return[{provider:`pipe0`,rateLimitRatio:1,rateLimitOperation:`pipe0_logic`,allowManagedConnection:!0}]}},Pg=jg,Fg={pipeId:Dg,basePipe:U(Dg),label:`HTTP request`,executionMode:`single`,categories:[`tools`],lifecycle:null,description:`Make a generic GET/POST/PUT/PATCH/DELETE HTTP request and capture the JSON response. Optionally validate the response against a JSON schema.`,tags:[z.LOGIC,z.JSON,z.NEW],docPath:W(Dg),billableOperations:Mg,defaultInputRequirement:null,inputFieldMode:`config`,outputFieldMode:`static`,allowedUserConnectionProviders:[],managedProviders:[`pipe0`],deprecatedProviders:[],defaultPayload:{pipe_id:Dg,run_if:null,connector:null,config:{method:`GET`,url:``,query_params:[],body:``,headers:[],expected_response_schema:{},output_fields:{http_response_status:{alias:``,enabled:!0},http_response_body:{alias:``,enabled:!0},http_response_headers:{alias:``,enabled:!1}}}}},Ig=`json:extract:multi@1`,Lg=r.object({pipe_id:r.literal(Ig),run_if:x(),connector:w(),config:r.object({json_extraction:Oi()})}),Rg={"json-extract-multi-v1-pipe0":{provider:`pipe0`,allowManagedConnection:!0,credits:{default:0},mode:`always`}},zg=class extends H{pipeId=Ig;payload;payloadSchema=Lg;billableOperations=Rg;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[`json-extract-multi-v1-pipe0`]}getInputRequirement(){return B({description:``,name:this.payload.config.json_extraction.field_name,format:null,label:``,type:`json`,resolvedName:this.payload.config.json_extraction.field_name})}getRawOutputFields(){let e={};for(let t of this.payload.config.json_extraction.extractions)e[t.output_field.name||t.output_field.name]={description:`Extracted value from JSON input field ${this.payload.config.json_extraction.field_name}.`,enabled:!0,format:t.output_field.format||null,label:t.output_field.label||`Extract JSON`,name:t.output_field.name,resolvedName:t.output_field.name,jsonMeta:null,type:t.output_field.type,isCatalogFIeld:!1,isPrimaryOutput:!1};return e}getConnectionsRequirements(){return[]}},Bg=Lg,Vg={pipeId:Ig,basePipe:U(Ig),inputFieldMode:`config`,outputFieldMode:`config`,label:`JSON extract`,executionMode:`single`,categories:[`tools`],lifecycle:null,description:`Extract nested JSON properties into new output fields.`,docPath:W(Ig),tags:[z.JSON],managedProviders:[`pipe0`],deprecatedProviders:[],allowedUserConnectionProviders:[],billableOperations:Rg,defaultInputRequirement:null,defaultPayload:{pipe_id:Ig,run_if:null,connector:null,config:{json_extraction:{field_name:``,extractions:[]}}}},Hg=`message:send:slack@1`,Ug=g(`slack_message_success`),Wg=[{label:`#demo-general`,value:`C0SANDBOX001`},{label:`#demo-alerts`,value:`C0SANDBOX002`}],Gg=r.object({pipe_id:r.literal(Hg),connector:ia(),run_if:x(),config:r.object({channel_id:S({sectionKey:`general`,groupPath:`config.general`,path:`config.channel_id`,label:`Channel ID`,info:"Your connection must be authorized to post to this channel. Type `@` to insert a field reference or `$` to insert a secret reference.",placeholder:`C0123456789`,inputType:`text`,minLength:3,expectedTagType:`string`,expectedTagFormat:`text`,optionsDef:{requires:{connection:`slack`},options:async({query:e,secret:t,environment:n})=>{if(n===`sandbox`)return Wg;if(!t)throw new dc.MissingSecretError({providerName:`slack`});let r=await fetch(`https://slack.com/api/conversations.list?limit=200&exclude_archived=true&types=public_channel,private_channel`,{headers:{Authorization:`Bearer ${t}`}});if(!r.ok){let e=await r.text();throw new dc.HttpError({msg:e})}let i=await r.json();if(!i.ok)throw new dc.HttpError({msg:i.error??`slack_error`});let a=(i.channels??[]).map(e=>({label:`#${e.name}`,value:e.id}));return e?a.filter(t=>t.label.toLowerCase().includes(e.toLowerCase())):a},widgets:{provider_logo:{provider:`slack`}}}}),message:S({sectionKey:`general`,groupPath:`config.general`,path:`config.message`,label:`Message`,info:"The message body. Type `@` to insert a field reference or `$` to insert a secret reference.",placeholder:`Hi {{ name }}, …`,inputType:`text`,minLength:1,maxLength:4e4,expectedTagType:`string`,expectedTagFormat:`markdown`,multiline:!0}),output_fields:L(r.object({[Ug.name]:O({fieldName:Ug.name})}))})}),Kg={"message-send-slack-v1-slack":{allowManagedConnection:!1,provider:`slack`,credits:null,mode:null}},qg=class extends H{pipeId=Hg;payload;payloadSchema=Gg;billableOperations=Kg;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`slack`]}estimateBillableOperations(){return[`message-send-slack-v1-slack`]}getTemplatedFields(){return[this.payload.config.channel_id,this.payload.config.message]}getInputRequirement(){return hh(this.getTemplatedFields())}getSecretRequirements(){return J(this.getTemplatedFields())}getConstantRequirements(){return gh(this.getTemplatedFields())}getRawOutputFields(){return{[Ug.name]:this.catalogOutput(Ug)}}getConnectionsRequirements(){return[{provider:`slack`,rateLimitRatio:1,rateLimitOperation:`slack_post_message`,allowManagedConnection:!1}]}},Jg=Gg,Yg={pipeId:Hg,basePipe:U(Hg),label:`Send message into channel`,executionMode:`single`,categories:[`actions`],lifecycle:null,description:`Send a Slack message to a channel.`,detailed_description:"Send a Slack message. The channel ID and message body are templated config fields β€” reference upstream fields with `{{ field_name }}` and stored secrets with `{{ SECRETS.KEY }}`. Requires a Slack vault connection (call list_connections to find one).",tags:[z.CHAT],docPath:W(Hg),billableOperations:Kg,inputFieldMode:`config`,outputFieldMode:`static`,allowedUserConnectionProviders:[`slack`],managedProviders:[],deprecatedProviders:[],defaultInputRequirement:null,defaultPayload:{pipe_id:Hg,connector:{strategy:`first`,connections:[]},run_if:null,config:{channel_id:``,message:``,output_fields:{slack_message_success:{alias:``,enabled:!0}}}}},Xg=`message:write@1`,Zg=g(`message`),Qg=`message-write-v1`,$g=mi(Qg),e_=r.object({pipe_id:r.literal(Xg),connector:C(),run_if:x(),config:r.object({template:na({sectionKey:`general`,label:`Template`,path:`config.template`,placeholder:Y(`prompt`),groupPath:`config.prompt`,required:!0}),model:Sa({sectionKey:`general`,label:`Model`,path:`config.model`,groupPath:`config.prompt`,billableOperations:$g}),output_fields:L(r.object({[Zg.name]:O({fieldName:Zg.name})}))})}),t_=class extends H{pipeId=Xg;payload;payloadSchema=e_;billableOperations=$g;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return gi(this.payload.config.model)}estimateBillableOperations(){return[hi(this.payload.config.model,Qg)]}getInputRequirement(){return hh([this.payload.config.template])}getSecretRequirements(){return J([this.payload.config.template])}getConstantRequirements(){return gh([this.payload.config.template])}getRawOutputFields(){return{[Zg.name]:this.catalogOutput(Zg)}}getConnectionsRequirements(){return _i(this.payload.config.model)}},n_=e_,r_={pipeId:Xg,inputFieldMode:`config`,outputFieldMode:`static`,basePipe:U(Xg),label:`Message writer`,executionMode:`single`,categories:[`tools`],lifecycle:null,description:`An AI agent specialized in composing messages for modern workplace communication platforms (Slack, Teams, Discord, etc.)`,detailed_description:`AI message composer for Slack/Teams/Discord. Outputs: message. Pair with message:send:slack@1 to send.`,tags:[z.AI],docPath:W(Xg),defaultInputRequirement:null,billableOperations:$g,allowedUserConnectionProviders:vi(),managedProviders:vi(),deprecatedProviders:[],defaultPayload:{pipe_id:Xg,connector:null,run_if:null,config:{model:`openai-gpt-latest`,template:``,output_fields:{message:{alias:``,enabled:!0}}}}},i_=`person:devprofileurl:profileurl:waterfall@1`,a_=g(`profile_url`),o_=g(`developer_profile_url`),s_=g(`alternative_developer_profile_urls`),c_=[`crustdata`],l_=[{provider:`crustdata`}],u_=r.object({pipe_id:r.literal(i_),run_if:x(),connector:C(),config:r.object({providers:E({sectionKey:`general`,defaultProviders:l_,availableProviders:c_}),input_fields:R(r.object({[a_.name]:T({fieldName:a_.name})})),output_fields:L(r.object({[o_.name]:O({fieldName:o_.name}),[s_.name]:O({fieldName:s_.name})}))}).optional()}),d_=e=>B(G(a_,e)),f_={"person-devprofileurl-profileurl-waterfall-v1-crustdata":{provider:`crustdata`,allowManagedConnection:!0,credits:{default:2,level1:{credits:1.3,weight:1}},mode:`onSuccess`}},p_=class extends H{pipeId=i_;payload;payloadSchema=u_;billableOperations=f_;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return this.payload.config?.providers.map(e=>e.provider)||[]}estimateBillableOperations(){return this.getProviderNames().map(e=>q(e,this.billableOperations).billableOperation)}getInputRequirement(){return d_(this.payload.config)}getRawOutputFields(){return{[o_.name]:this.catalogOutput(o_,{isPrimaryOutput:!0}),[s_.name]:this.catalogOutput(s_,{isPrimaryOutput:!1})}}getConnectionsRequirements(){let e={crustdata:`crustdata_realtime_person_enrich`};return(this.payload.config?.providers||[]).map((t,n)=>({provider:t.provider,rateLimitRatio:K(n),rateLimitOperation:e[t.provider],allowManagedConnection:!0}))}},m_=u_,h_={pipeId:i_,basePipe:U(i_),label:`GitHub profile from LinkedIn URL`,executionMode:`waterfall`,categories:[`people_data`],lifecycle:null,description:`Find a developer profile URL (e.g. GitHub) for any prospect using multiple data providers in a waterfall motion.`,docPath:W(i_),tags:[z.LINKEDIN,z.WATERFALL,z.NEW],billableOperations:f_,defaultInputRequirement:d_(null),inputFieldMode:`static`,outputFieldMode:`static`,managedProviders:c_,allowedUserConnectionProviders:c_,deprecatedProviders:[],defaultPayload:{pipe_id:i_,connector:null,run_if:null,config:{providers:l_,input_fields:{profile_url:{alias:``}},output_fields:{developer_profile_url:{alias:``,enabled:!0},alternative_developer_profile_urls:{alias:``,enabled:!1}}}}},g_=`person:email:validate:millionverifier@1`,__=g(`email`),v_=g(`email_validation_status`),y_=g(`million_validation_match`),b_=r.object({pipe_id:r.literal(g_),connector:C(),run_if:x(),config:r.object({input_fields:R(r.object({[__.name]:T({fieldName:__.name})})),output_fields:L(r.object({[v_.name]:O({fieldName:v_.name}),[y_.name]:O({fieldName:y_.name})}))}).optional()}),x_=e=>B(G(__,e)),S_={"person-email-validate-millionverifier-v1-millionverifier":{provider:`millionverifier`,allowManagedConnection:!0,credits:{default:.1,level1:{credits:.05,weight:1}},mode:`always`}},C_=class extends H{pipeId=g_;payload;payloadSchema=b_;billableOperations=S_;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`millionverifier`]}estimateBillableOperations(){return[`person-email-validate-millionverifier-v1-millionverifier`]}getInputRequirement(){return x_(this.payload.config)}getRawOutputFields(){return{[v_.name]:this.catalogOutput(v_),[y_.name]:this.catalogOutput(y_)}}getConnectionsRequirements(){return[{provider:`millionverifier`,rateLimitRatio:1,rateLimitOperation:`millionverifier_generic`,allowManagedConnection:!0}]}},w_=b_,T_={pipeId:g_,basePipe:U(g_),label:`Validate email`,executionMode:`single`,categories:[`people_data`],lifecycle:null,description:`Verify email addresses to ensure is deliverability.`,tags:[z.EMAIL],docPath:W(g_),billableOperations:S_,inputFieldMode:`static`,outputFieldMode:`static`,allowedUserConnectionProviders:[`millionverifier`],managedProviders:[`millionverifier`],deprecatedProviders:[],defaultInputRequirement:x_(null),defaultPayload:{pipe_id:g_,connector:null,run_if:null,config:{input_fields:{email:{alias:``}},output_fields:{email_validation_status:{alias:``,enabled:!0},million_validation_match:{alias:``,enabled:!0}}}}},E_=g(`email`),D_=g(`amplemarket_person_match`),O_=`person:identity:amplemarket@1`,k_=r.object({pipe_id:r.literal(O_),run_if:x(),connector:C(),config:r.object({input_fields:R(r.object({[E_.name]:T({fieldName:E_.name})})),output_fields:L(r.object({[D_.name]:O({fieldName:D_.name})}))}).optional()}),A_=e=>B(G(E_,e)),j_={"person-identity-amplemarket-v1-amplemarket":{allowManagedConnection:!1,credits:null,mode:null,provider:`amplemarket`}},M_=class extends H{pipeId=O_;payload;payloadSchema=k_;billableOperations=j_;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`amplemarket`]}estimateBillableOperations(){return[]}getInputRequirement(){return A_(this.payload.config)}getRawOutputFields(){return{[D_.name]:this.catalogOutput(D_)}}getConnectionsRequirements(){return[{provider:`amplemarket`,rateLimitRatio:1,rateLimitOperation:`amplemarket_generic`,allowManagedConnection:!1}]}},N_=k_,P_={pipeId:O_,inputFieldMode:`static`,outputFieldMode:`static`,basePipe:U(O_),label:`Person identity`,executionMode:`single`,categories:[`people_data`],lifecycle:null,description:`Find information on a person based on their email`,tags:[z.PEOPLE_PROFILES],docPath:W(O_),billableOperations:j_,allowedUserConnectionProviders:[`amplemarket`],managedProviders:[],deprecatedProviders:[],defaultInputRequirement:A_(null),defaultPayload:{pipe_id:O_,connector:null,run_if:null,config:{input_fields:{email:{alias:``}},output_fields:{amplemarket_person_match:{alias:``,enabled:!0}}}}},F_=`person:identity:email:waterfall@1`,I_=g(`email`),L_=g(`company_domain`),R_=g(`name`),z_=g(`job_title`),B_=g(`profile_url`),V_=g(`company_profile_url`),H_=g(`company_name`),U_=[`findymail`,`hunter`,`crustdata`],W_=[{provider:`findymail`},{provider:`hunter`},{provider:`crustdata`}],G_=r.object({pipe_id:r.literal(F_),connector:C(),run_if:x(),config:r.object({providers:E({availableProviders:U_,defaultProviders:W_,sectionKey:`general`}),input_fields:R(r.object({[I_.name]:T({fieldName:I_.name})})),output_fields:L(r.object({[R_.name]:O({fieldName:R_.name}),[B_.name]:O({fieldName:B_.name}),[z_.name]:O({fieldName:z_.name}),[L_.name]:O({fieldName:L_.name}),[H_.name]:O({fieldName:H_.name}),[V_.name]:O({fieldName:V_.name})}))}).optional()}),K_=e=>B(G(I_,e)),q_={"person-identity-email-waterfall-v1-hunter":{provider:`hunter`,allowManagedConnection:!0,credits:{default:2},mode:`onSuccess`},"person-identity-email-waterfall-v1-findymail":{provider:`findymail`,allowManagedConnection:!0,credits:{default:2},mode:`onSuccess`},"person-identity-email-waterfall-v1-crustdata":{provider:`crustdata`,allowManagedConnection:!0,credits:{default:5},mode:`onSuccess`}},J_=class extends H{pipeId=F_;payload;payloadSchema=G_;billableOperations=q_;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return this.payload.config?.providers.map(e=>e.provider)||[]}estimateBillableOperations(){return this.getProviderNames().map(e=>q(e,this.billableOperations).billableOperation)}getInputRequirement(){return K_(this.payload.config)}getRawOutputFields(){return{[R_.name]:this.catalogOutput(R_,{isPrimaryOutput:!0}),[B_.name]:this.catalogOutput(B_,{isPrimaryOutput:!0}),[z_.name]:this.catalogOutput(z_,{isPrimaryOutput:!0}),[H_.name]:this.catalogOutput(H_,{isPrimaryOutput:!0}),[V_.name]:this.catalogOutput(V_,{isPrimaryOutput:!0}),[L_.name]:this.catalogOutput(L_,{isPrimaryOutput:!0})}}getConnectionsRequirements(){let e={hunter:`prospeo_email_lookup`,findymail:`findymail_email_b2b_lookup`,crustdata:`crustdata_realtime_person_enrich`};return(this.payload.config?.providers||[]).map((t,n)=>({provider:t.provider,rateLimitRatio:K(n),rateLimitOperation:e[t.provider],allowManagedConnection:!0}))}},Y_=G_,X_={pipeId:F_,basePipe:U(F_),label:`Person identity from email`,executionMode:`waterfall`,categories:[`people_data`],lifecycle:null,description:`Find identity of a person from their email address.`,tags:[z.EMAIL,z.PEOPLE_PROFILES],docPath:W(F_),managedProviders:U_,deprecatedProviders:[],allowedUserConnectionProviders:U_,inputFieldMode:`static`,outputFieldMode:`static`,billableOperations:q_,defaultInputRequirement:K_(null),defaultPayload:{pipe_id:F_,connector:null,run_if:null,config:{providers:W_,input_fields:{email:{alias:``}},output_fields:{name:{alias:``,enabled:!0},profile_url:{alias:``,enabled:!0},job_title:{alias:``,enabled:!0},company_name:{alias:``,enabled:!0},company_profile_url:{alias:``,enabled:!0},company_domain:{alias:``,enabled:!0}}}}},Z_=g(`profile_url`),Q_=g(`amplemarket_person_match`),$_=`person:match:amplemarket@1`,ev=r.object({pipe_id:r.literal($_),run_if:x(),connector:C(),config:r.object({input_fields:R(r.object({[Z_.name]:T({fieldName:Z_.name})})),output_fields:L(r.object({[Q_.name]:O({fieldName:Q_.name})}))}).optional()}),tv=e=>B(G(Z_,e)),nv={"person-match-amplemarket-v1-amplemarket":{allowManagedConnection:!1,credits:null,mode:null,provider:`amplemarket`}},rv=class extends H{pipeId=$_;payload;payloadSchema=ev;billableOperations=nv;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`amplemarket`]}estimateBillableOperations(){return[]}getInputRequirement(){return tv(this.payload.config)}getRawOutputFields(){return{[Q_.name]:this.catalogOutput(Q_)}}getConnectionsRequirements(){return[{provider:`amplemarket`,rateLimitRatio:1,rateLimitOperation:`amplemarket_generic`,allowManagedConnection:!1}]}},iv=ev,av={pipeId:$_,inputFieldMode:`static`,outputFieldMode:`static`,basePipe:U($_),label:`Person match`,executionMode:`single`,categories:[`people_data`],lifecycle:null,description:`Find information on a person based on their LinkedIn profile URL.`,tags:[z.PEOPLE_PROFILES],docPath:W($_),billableOperations:nv,allowedUserConnectionProviders:[`amplemarket`],managedProviders:[],deprecatedProviders:[],defaultInputRequirement:tv(null),defaultPayload:{pipe_id:$_,connector:null,run_if:null,config:{input_fields:{profile_url:{alias:``}},output_fields:{amplemarket_person_match:{alias:``,enabled:!0}}}}},ov=`person:match:role:waterfall@1`,sv=g(`company_domain`),cv=g(`role_finder_match`),lv=[`leadmagic`],uv=[{provider:`leadmagic`}],dv=r.object({pipe_id:r.literal(ov),run_if:x(),connector:C(),config:r.object({providers:E({sectionKey:`general`,defaultProviders:uv,availableProviders:lv}),roles:pa({sectionKey:`general`,groupPath:`config.general`,label:`Roles`,path:`config.roles`,info:`Company roles to include`,maxItems:3,minItems:1,suggestionsDef:h(`titles`),expectedTagType:`string`}),input_fields:R(r.object({[sv.name]:T({fieldName:sv.name})})),output_fields:L(r.object({[cv.name]:O({fieldName:cv.name})}))})}),fv=e=>V(G(sv,e)),pv={"person-match-role-waterfall-v1-leadmagic":{provider:`leadmagic`,allowManagedConnection:!0,credits:{default:1},mode:`onSuccess`}},mv=class extends H{pipeId=ov;payload;payloadSchema=dv;billableOperations=pv;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return this.payload.config?.providers.map(e=>e.provider)||[]}estimateBillableOperations(){return this.getProviderNames().map(e=>q(e,this.billableOperations).billableOperation)}getInputRequirement(){return fv(this.payload.config)}getSecretRequirements(){return J(this.payload.config?.roles??[])}getConstantRequirements(){return gh(this.payload.config?.roles??[])}getRawOutputFields(){return{[cv.name]:this.catalogOutput(cv,{isPrimaryOutput:!0})}}getConnectionsRequirements(){let e={leadmagic:`leadmagic_role_finder`};return(this.payload.config?.providers||[]).map((t,n)=>({provider:t.provider,rateLimitRatio:K(n),rateLimitOperation:e[t.provider],allowManagedConnection:!0}))}},hv=dv,gv={pipeId:ov,basePipe:U(ov),managedProviders:lv,deprecatedProviders:[],allowedUserConnectionProviders:lv,label:`Role finder`,executionMode:`waterfall`,categories:[`people_data`],lifecycle:null,description:`Find role matches for a given companies like "CEO" or "CFO".`,tags:[z.PEOPLE_PROFILES],docPath:W(ov),billableOperations:pv,inputFieldMode:`static`,outputFieldMode:`static`,defaultInputRequirement:fv(null),defaultPayload:{pipe_id:ov,run_if:null,connector:null,config:{roles:[],providers:uv,input_fields:{company_domain:{alias:``}},output_fields:{role_finder_match:{alias:``,enabled:!0}}}}},_v=`person:mobile:profileurl:waterfall@1`,vv=g(`profile_url`),yv=g(`mobile`),bv=[`leadmagic`,`prospeo`,`amplemarket`,`findymail`],xv=[{provider:`leadmagic`},{provider:`prospeo`},{provider:`amplemarket`},{provider:`findymail`}],Sv=r.object({pipe_id:r.literal(_v),run_if:x(),connector:C(),config:r.object({providers:E({sectionKey:`general`,defaultProviders:xv,availableProviders:bv}),input_fields:R(r.object({[vv.name]:T({fieldName:vv.name})})),output_fields:L(r.object({[yv.name]:O({fieldName:yv.name})}))}).optional()}),Cv=e=>B(G(vv,e)),wv={"person-mobile-profileurl-waterfall-v1-leadmagic":{provider:`leadmagic`,allowManagedConnection:!0,credits:{default:3,level1:{credits:2,weight:1}},mode:`onSuccess`},"person-mobile-profileurl-waterfall-v1-prospeo":{provider:`prospeo`,allowManagedConnection:!0,credits:{default:5,level1:{credits:3,weight:1}},mode:`onSuccess`},"person-mobile-profileurl-waterfall-v1-findymail":{provider:`findymail`,allowManagedConnection:!0,credits:{default:6,level1:{credits:4,weight:1}},mode:`onSuccess`},"person-mobile-profileurl-waterfall-v1-amplemarket":{provider:`amplemarket`,allowManagedConnection:!0,credits:{default:4,level1:{credits:3,weight:1}},mode:`onSuccess`}},Tv=class extends H{pipeId=_v;payload;payloadSchema=Sv;billableOperations=wv;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return this.payload.config?.providers.map(e=>e.provider)||[]}estimateBillableOperations(){return this.getProviderNames().map(e=>q(e,this.billableOperations).billableOperation)}getInputRequirement(){return Cv(this.payload.config)}getRawOutputFields(){return{[yv.name]:this.catalogOutput(yv,{isPrimaryOutput:!0})}}getConnectionsRequirements(){let e={leadmagic:`leadmagic_email_lookup`,prospeo:`prospeo_phone_number_lookup`,findymail:`findymail_phone_lookup`,amplemarket:`amplemarket-person-reveal`};return(this.payload.config?.providers||[]).map((t,n)=>({provider:t.provider,rateLimitRatio:K(n),rateLimitOperation:e[t.provider],allowManagedConnection:!0}))}},Ev=Sv,Dv={pipeId:_v,basePipe:U(_v),label:`Mobile number from LinkedIn profile`,executionMode:`waterfall`,categories:[`people_data`],lifecycle:null,description:`Find a mobile phone number for any prospect using multiple data providers in a waterfall motion.`,docPath:W(_v),tags:[z.PHONE,z.WATERFALL],billableOperations:wv,defaultInputRequirement:Cv(null),inputFieldMode:`static`,outputFieldMode:`static`,managedProviders:bv,allowedUserConnectionProviders:bv,deprecatedProviders:[],defaultPayload:{pipe_id:_v,connector:null,run_if:null,config:{providers:xv,input_fields:{profile_url:{alias:``}},output_fields:{mobile:{alias:``,enabled:!0}}}}},Ov=`person:mobile:workemail:waterfall@1`,kv=g(`work_email`),Av=g(`mobile`),jv=[`leadmagic`,`amplemarket`],Mv=[{provider:`leadmagic`},{provider:`amplemarket`}],Nv=r.object({pipe_id:r.literal(Ov),run_if:x(),connector:C(),config:r.object({providers:E({sectionKey:`general`,availableProviders:jv,defaultProviders:Mv}),input_fields:R(r.object({[kv.name]:T({fieldName:kv.name})})),output_fields:L(r.object({[Av.name]:O({fieldName:Av.name})}))}).optional()}),Pv=e=>B(G(kv,e)),Fv={"person-mobile-workemail-waterfall-v1-leadmagic":{provider:`leadmagic`,allowManagedConnection:!0,credits:{default:3,level1:{credits:2,weight:1}},mode:`onSuccess`},"person-mobile-workemail-waterfall-v1-amplemarket":{provider:`amplemarket`,allowManagedConnection:!0,credits:{default:5,level1:{credits:4,weight:1}},mode:`onSuccess`}},Iv=class extends H{pipeId=Ov;payload;payloadSchema=Nv;billableOperations=Fv;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return this.payload.config?.providers.map(e=>e.provider)||[]}estimateBillableOperations(){return this.getProviderNames().map(e=>q(e,this.billableOperations).billableOperation)}getInputRequirement(){return Pv(this.payload.config)}getRawOutputFields(){return{[Av.name]:this.catalogOutput(Av,{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:K(n),rateLimitOperation:e[t.provider],allowManagedConnection:!0}))}},Lv=Nv,Rv={pipeId:Ov,basePipe:U(Ov),label:`Mobile number from email`,executionMode:`waterfall`,categories:[`people_data`],lifecycle:null,description:`Find a mobile phone number for a prospect.`,tags:[z.PHONE,z.WATERFALL],docPath:W(Ov),billableOperations:Fv,defaultInputRequirement:Pv(null),inputFieldMode:`static`,outputFieldMode:`static`,allowedUserConnectionProviders:jv,managedProviders:jv,deprecatedProviders:[],defaultPayload:{pipe_id:Ov,connector:null,run_if:null,config:{providers:Mv,input_fields:{work_email:{alias:``}},output_fields:{mobile:{alias:``,enabled:!0}}}}},zv=`person:name:join@1`,Bv=g(`first_name`),Vv=g(`last_name`),Hv=g(`name`),Uv=r.object({pipe_id:r.literal(zv),run_if:x(),connector:w(),config:r.object({input_fields:R(r.object({[Bv.name]:T({fieldName:Bv.name}),[Vv.name]:T({fieldName:Vv.name})})),output_fields:L(r.object({[Hv.name]:O({fieldName:Hv.name})}))}).optional()}),Wv=e=>Ua(G(Bv,e),G(Vv,e)),Gv={"person-name-join-v1-pipe0":{provider:`pipe0`,allowManagedConnection:!0,credits:{default:0},mode:`always`}},Kv=class extends H{pipeId=zv;payload;payloadSchema=Uv;billableOperations=Gv;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[`person-name-join-v1-pipe0`]}getInputRequirement(){return Wv(this.payload.config)}getRawOutputFields(){return{[Hv.name]:this.catalogOutput(Hv)}}getConnectionsRequirements(){return[{provider:`pipe0`,rateLimitRatio:1,rateLimitOperation:`pipe0_logic`,allowManagedConnection:!0}]}},qv=Uv,Jv={pipeId:zv,basePipe:U(zv),label:`Join name`,executionMode:`single`,categories:[`people_data`],lifecycle:null,description:`Combine the first and last names of a prospect into a full name field.`,tags:[z.NAMES],docPath:W(zv),billableOperations:Gv,defaultInputRequirement:Wv(null),inputFieldMode:`static`,outputFieldMode:`static`,allowedUserConnectionProviders:[],managedProviders:[`pipe0`],deprecatedProviders:[],defaultPayload:{pipe_id:zv,run_if:null,connector:null,config:{input_fields:{first_name:{alias:``},last_name:{alias:``}},output_fields:{name:{alias:``,enabled:!0}}}}},Yv=`person:name:split@1`,Xv=g(`name`),Zv=g(`first_name`),Qv=g(`last_name`),$v=r.object({pipe_id:r.literal(Yv),connector:w(),run_if:x(),config:r.object({input_fields:R(r.object({[Xv.name]:T({fieldName:Xv.name})})),output_fields:L(r.object({[Zv.name]:O({fieldName:Zv.name}),[Qv.name]:O({fieldName:Qv.name})}))}).optional()}),ey=e=>B(G(Xv,e)),ty={"person-name-split-v1-pipe0":{provider:`pipe0`,allowManagedConnection:!0,credits:{default:0},mode:`always`}},ny=class extends H{pipeId=Yv;payload;payloadSchema=$v;billableOperations=ty;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[`person-name-split-v1-pipe0`]}getInputRequirement(){return ey(this.payload.config)}getRawOutputFields(){return{[Zv.name]:this.catalogOutput(Zv),[Qv.name]:this.catalogOutput(Qv)}}getConnectionsRequirements(){return[{provider:`pipe0`,rateLimitRatio:1,rateLimitOperation:`pipe0_logic`,allowManagedConnection:!0}]}},ry=$v,iy={pipeId:Yv,basePipe:U(Yv),label:`Split name`,executionMode:`single`,categories:[`people_data`],lifecycle:null,description:`Split a full name into first and last name.`,tags:[z.NAMES],docPath:W(Yv),billableOperations:ty,inputFieldMode:`static`,outputFieldMode:`static`,defaultInputRequirement:ey(null),allowedUserConnectionProviders:[],managedProviders:[`pipe0`],deprecatedProviders:[],defaultPayload:{pipe_id:Yv,run_if:null,connector:void 0,config:{input_fields:{name:{alias:``}},output_fields:{first_name:{alias:``,enabled:!0},last_name:{alias:``,enabled:!0}}}}},ay=`person:personalemail:profileurl:waterfall@1`,oy=g(`profile_url`),sy=g(`personal_email`),cy=g(`alternate_personal_emails`),ly=[`leadmagic`,`mixrank`],uy=[{provider:`leadmagic`},{provider:`mixrank`}],dy=r.object({pipe_id:r.literal(ay),run_if:x(),connector:C(),config:r.object({providers:E({sectionKey:`general`,availableProviders:ly,defaultProviders:uy}),input_fields:R(r.object({[oy.name]:T({fieldName:oy.name})})),output_fields:L(r.object({[sy.name]:O({fieldName:sy.name}),[cy.name]:O({fieldName:cy.name})}))}).optional()}),fy=e=>B(G(oy,e)),py={"person-personalemail-profileurl-waterfall-v1-leadmagic":{provider:`leadmagic`,allowManagedConnection:!0,credits:{default:1},mode:`onSuccess`},"person-personalemail-profileurl-waterfall-v1-mixrank":{provider:`mixrank`,allowManagedConnection:!0,credits:{default:1},mode:`onSuccess`}},my=class extends H{pipeId=ay;payload;payloadSchema=dy;billableOperations=py;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return this.payload.config?.providers.map(e=>e.provider)||[]}estimateBillableOperations(){return this.getProviderNames().map(e=>q(e,this.billableOperations).billableOperation)}getInputRequirement(){return fy(this.payload.config)}getRawOutputFields(){return{[sy.name]:this.catalogOutput(sy,{isPrimaryOutput:!0}),[cy.name]:this.catalogOutput(cy)}}getConnectionsRequirements(){let e={leadmagic:`leadmagic_personal_email_finder`,mixrank:`mixrank-person-match`};return(this.payload.config?.providers||[]).map((t,n)=>({provider:t.provider,rateLimitRatio:K(n),rateLimitOperation:e[t.provider],allowManagedConnection:!0}))}},hy=dy,gy={pipeId:ay,basePipe:U(ay),allowedUserConnectionProviders:ly,managedProviders:ly,deprecatedProviders:[],label:`Personal email from LinkedIn`,executionMode:`waterfall`,categories:[`people_data`],lifecycle:null,description:`Find the personal email address of a prospect by using a professional profile URL as input.`,tags:[z.EMAIL,z.PERSONAL_EMAIL],docPath:W(ay),billableOperations:py,defaultInputRequirement:fy(null),inputFieldMode:`static`,outputFieldMode:`static`,defaultPayload:{pipe_id:ay,connector:null,run_if:null,config:{providers:uy,input_fields:{profile_url:{alias:``}},output_fields:{personal_email:{alias:``,enabled:!0},alternate_personal_emails:{alias:``,enabled:!1}}}}},_y=g(`profile_url`),vy=g(`post_list_string`),yy=g(`crustdata_post_list`),by=`person:posts:crustdata@1`,xy=r.object({pipe_id:r.literal(by),run_if:x(),connector:C(),config:r.object({limit:wa({path:`config.limit`,groupPath:`config.general`,max:100,min:1,required:!0,sectionKey:`general`,info:``,label:`Limit`,legend:`Max. 100`}),input_fields:R(r.object({[_y.name]:T({fieldName:_y.name})})),output_fields:L(r.object({[vy.name]:O({fieldName:vy.name}),[yy.name]:O({fieldName:yy.name})}))}).optional()}),Sy=e=>B(G(_y,e)),Cy={"person-posts-crustdata-v1-crustdata":{allowManagedConnection:!0,credits:{default:2,level1:{credits:1,weight:1}},mode:`onSuccess`,note:`1.5 credits per post. Posts are fetched in increments of 5.`,provider:`crustdata`}},wy=class extends H{pipeId=by;payload;payloadSchema=xy;billableOperations=Cy;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`crustdata`]}estimateBillableOperations(){return[`person-posts-crustdata-v1-crustdata`]}getInputRequirement(){return Sy(this.payload.config)}getRawOutputFields(){return{[vy.name]:this.catalogOutput(vy),[yy.name]:this.catalogOutput(yy)}}getConnectionsRequirements(){return[{provider:`crustdata`,rateLimitRatio:1,rateLimitOperation:`crustdata_realtime_post_fetch`,allowManagedConnection:!0}]}},Ty=xy,Ey={pipeId:by,inputFieldMode:`static`,outputFieldMode:`static`,basePipe:U(by),label:`LinkedIn posts`,executionMode:`single`,categories:[`people_data`],lifecycle:null,description:`Find list of recent LinkedIn posts.`,tags:[z.LINKEDIN],docPath:W(by),billableOperations:Cy,allowedUserConnectionProviders:[`crustdata`],managedProviders:[`crustdata`],deprecatedProviders:[],defaultInputRequirement:Sy(null),defaultPayload:{pipe_id:by,connector:null,run_if:null,config:{limit:5,input_fields:{profile_url:{alias:``}},output_fields:{crustdata_post_list:{alias:``,enabled:!0},post_list_string:{alias:``,enabled:!0}}}}},Dy=`person:profile:waterfall@1`,Oy=g(`profile`),ky=g(`profile_url`),Ay=[`prospeo`,`icypeas`,`amplemarket`],jy=[{provider:`amplemarket`},{provider:`prospeo`},{provider:`icypeas`}],My=r.object({pipe_id:r.literal(Dy),run_if:x(),connector:C(),config:r.object({providers:E({sectionKey:`general`,availableProviders:Ay,defaultProviders:jy}),input_fields:R(r.object({[ky.name]:T({fieldName:ky.name})})),output_fields:L(r.object({[Oy.name]:O({fieldName:Oy.name})}))}).optional()}),Ny=e=>B(G(ky,e)),Py={"person-profile-waterfall-v1-icypeas":{provider:`icypeas`,credits:{default:1,level1:{credits:.5,weight:1}},mode:`onSuccess`,allowManagedConnection:!0},"person-profile-waterfall-v1-prospeo":{provider:`prospeo`,credits:{default:1,level1:{credits:.5,weight:1}},mode:`onSuccess`,allowManagedConnection:!0},"person-profile-waterfall-v1-amplemarket":{provider:`amplemarket`,credits:{default:1,level1:{credits:.5,weight:1}},mode:`onSuccess`,allowManagedConnection:!0}},Fy=class extends H{pipeId=Dy;payload;payloadSchema=My;billableOperations=Py;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return this.payload.config?.providers.map(e=>e.provider)||[]}estimateBillableOperations(){return this.getProviderNames().map(e=>q(e,this.billableOperations).billableOperation)}getInputRequirement(){return Ny(this.payload.config)}getRawOutputFields(){return{[Oy.name]:this.catalogOutput(Oy,{isPrimaryOutput:!0})}}getConnectionsRequirements(){let e={icypeas:`icypeas_scrape_profile`,prospeo:`prospeo_social_profile_lookup`,amplemarket:`amplemarket-person-reveal`};return(this.payload.config?.providers||[]).map((t,n)=>({provider:t.provider,rateLimitRatio:K(n),rateLimitOperation:e[t.provider],allowManagedConnection:!0}))}},Iy=My,Ly={pipeId:Dy,basePipe:U(Dy),label:`Full LinkedIn profile`,executionMode:`waterfall`,categories:[`people_data`],lifecycle:null,description:`Find a JSON representation of a LinkedIn profile.`,docPath:W(Dy),tags:[z.LINKEDIN,z.WATERFALL],managedProviders:Ay,deprecatedProviders:[],allowedUserConnectionProviders:Ay,inputFieldMode:`static`,outputFieldMode:`static`,billableOperations:Py,defaultInputRequirement:Ny(null),defaultPayload:{pipe_id:Dy,run_if:null,connector:null,config:{providers:jy,input_fields:{profile_url:{alias:``}},output_fields:{profile:{alias:``,enabled:!0}}}}},Ry=g(`work_email`),zy=g(`crustdata_person_match`),By=g(`crustdata_profile_match_score`),Vy=`person:profile:workemail:crustdata@1`,Hy=r.object({pipe_id:r.literal(Vy),run_if:x(),connector:C(),config:r.object({input_fields:R(r.object({[Ry.name]:T({fieldName:Ry.name})})),output_fields:L(r.object({[zy.name]:O({fieldName:zy.name}),[By.name]:O({fieldName:By.name})}))}).optional()}),Uy=e=>B(G(Ry,e)),Wy={"person-profile-workemail-crustdata-v1-crustdata":{allowManagedConnection:!0,credits:{default:5},mode:`onSuccess`,provider:`crustdata`}},Gy=class extends H{pipeId=Vy;payload;payloadSchema=Hy;billableOperations=Wy;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`crustdata`]}estimateBillableOperations(){return[`person-profile-workemail-crustdata-v1-crustdata`]}getInputRequirement(){return Uy(this.payload.config)}getRawOutputFields(){return{[zy.name]:this.catalogOutput(zy),[By.name]:this.catalogOutput(By)}}getConnectionsRequirements(){return[{provider:`crustdata`,rateLimitRatio:1,rateLimitOperation:`crustdata_realtime_person_enrich`,allowManagedConnection:!0}]}},Ky=Hy,qy={pipeId:Vy,inputFieldMode:`static`,outputFieldMode:`static`,basePipe:U(Vy),label:`Profile from work email`,executionMode:`single`,categories:[`people_data`],lifecycle:null,description:`Find person profile by their work email address.`,tags:[z.EMAIL,z.PEOPLE_PROFILES],docPath:W(Vy),billableOperations:Wy,allowedUserConnectionProviders:[`crustdata`],managedProviders:[`crustdata`],deprecatedProviders:[],defaultInputRequirement:Uy(null),defaultPayload:{pipe_id:Vy,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}}}}},Jy=`person:profileurl:email:waterfall@1`,Yy=g(`email`),Xy=g(`work_email`),Zy=g(`profile_url`),Qy=[`leadmagic`],$y=[{provider:`leadmagic`}],eb=r.object({pipe_id:r.literal(Jy),run_if:x(),connector:C(),config:r.object({providers:E({sectionKey:`general`,defaultProviders:$y,availableProviders:Qy}),input_fields:R(r.object({[Yy.name]:T({fieldName:Yy.name}),[Xy.name]:T({fieldName:Xy.name})})),output_fields:L(r.object({[Zy.name]:O({fieldName:Zy.name})}))}).optional()}),tb=e=>V(G(Yy,e),G(Xy,e)),nb={"person-profileurl-email-waterfall-v1-leadmagic":{provider:`leadmagic`,allowManagedConnection:!0,credits:{default:3.5},mode:`onSuccess`}},rb=class extends H{pipeId=Jy;payload;payloadSchema=eb;billableOperations=nb;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return this.payload.config?.providers.map(e=>e.provider)||[]}estimateBillableOperations(){return this.getProviderNames().map(e=>q(e,this.billableOperations).billableOperation)}getInputRequirement(){return tb(this.payload.config)}getRawOutputFields(){return{[Zy.name]:this.catalogOutput(Zy,{isPrimaryOutput:!0})}}getConnectionsRequirements(){let e={leadmagic:`leadmagic_email_to_b2b_profile`};return(this.payload.config?.providers||[]).map((t,n)=>({provider:t.provider,rateLimitRatio:K(n),rateLimitOperation:e[t.provider],allowManagedConnection:!0}))}},ib=eb,ab={pipeId:Jy,basePipe:U(Jy),managedProviders:Qy,deprecatedProviders:[],allowedUserConnectionProviders:Qy,label:`LinkedIn URL from email`,executionMode:`waterfall`,categories:[`people_data`],lifecycle:null,description:`Find the URL for a prospect's LinkedIn profile from their personal or professional email address.`,tags:[z.LINKEDIN],docPath:W(Jy),billableOperations:nb,inputFieldMode:`static`,outputFieldMode:`static`,defaultInputRequirement:tb(null),defaultPayload:{pipe_id:Jy,run_if:null,connector:null,config:{providers:$y,input_fields:{email:{alias:``},work_email:{alias:``}},output_fields:{profile_url:{alias:``,enabled:!0}}}}},ob=`person:profileurl:name@1`,sb=g(`name`),cb=g(`company_name`),lb=g(`location_hint`),ub=g(`profile_url`),db=r.object({pipe_id:r.literal(ob),connector:w(),run_if:x(),config:r.object({input_fields:R(r.object({[sb.name]:T({fieldName:sb.name}),[cb.name]:T({fieldName:cb.name}),[lb.name]:T({fieldName:lb.name})})),output_fields:L(r.object({[ub.name]:O({fieldName:ub.name})}))}).optional()}),fb=e=>Ua(B(G(sb,e)),B(G(cb,e)),Wa(G(lb,e))),pb={"person-profileurl-name-v1-pipe0":{provider:`pipe0`,allowManagedConnection:!0,credits:{default:.6},mode:`always`}},mb=class extends H{pipeId=ob;payload;payloadSchema=db;billableOperations=pb;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[`person-profileurl-name-v1-pipe0`]}getInputRequirement(){return fb(this.payload.config)}getRawOutputFields(){return{[ub.name]:this.catalogOutput(ub)}}getConnectionsRequirements(){return[{provider:`serper`,rateLimitRatio:1,rateLimitOperation:`serper_search`,allowManagedConnection:!0}]}},hb=db,gb={pipeId:ob,basePipe:U(ob),label:`LinkedIn URL from name`,executionMode:`single`,categories:[`people_data`],lifecycle:null,allowedUserConnectionProviders:[],managedProviders:[`pipe0`],deprecatedProviders:[],description:`Find the LinkedIn profile URL by using the prospect's name as input.`,docPath:W(ob),tags:[z.LINKEDIN],billableOperations:pb,defaultInputRequirement:fb(null),inputFieldMode:`static`,outputFieldMode:`static`,defaultPayload:{pipe_id:ob,connector:void 0,run_if:null,config:{input_fields:{company_name:{alias:``},location_hint:{alias:``},name:{alias:``}},output_fields:{profile_url:{alias:``,enabled:!0}}}}},_b=`person:workemail:profileurl:waterfall@1`,vb=g(`profile_url`),yb=g(`work_email`),bb=g(`email_validation_status`),xb=[`hunter`,`amplemarket`,`findymail`,`leadmagic`,`crustdata`],Sb=[{provider:`hunter`},{provider:`amplemarket`},{provider:`leadmagic`},{provider:`findymail`},{provider:`crustdata`}],Cb=r.object({pipe_id:r.literal(_b),connector:C(),run_if:x(),config:r.object({providers:E({availableProviders:xb,defaultProviders:Sb,sectionKey:`general`}),allow_catch_all_emails:D({path:`config.allow_catch_all_emails`,defaultValue:!0,groupPath:`config.general`,sectionKey:`general`,info:``,label:`Allow catch-all emails`}),allow_risky_emails:D({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({[vb.name]:T({fieldName:vb.name})})),output_fields:L(r.object({[yb.name]:O({fieldName:yb.name}),[bb.name]:O({fieldName:bb.name})}))}).optional()}),wb=e=>B(G(vb,e)),Tb={"person-workemail-profileurl-waterfall-v1-hunter":{provider:`hunter`,allowManagedConnection:!0,credits:{default:1},mode:`onSuccess`},"person-workemail-profileurl-waterfall-v1-leadmagic":{provider:`leadmagic`,allowManagedConnection:!0,credits:{default:2,level1:{credits:.7,weight:1}},mode:`onSuccess`},"person-workemail-profileurl-waterfall-v1-findymail":{provider:`findymail`,allowManagedConnection:!0,credits:{default:2,level1:{credits:1,weight:1}},mode:`onSuccess`},"person-workemail-profileurl-waterfall-v1-crustdata":{provider:`crustdata`,allowManagedConnection:!0,credits:{default:3,level1:{credits:2,weight:1}},mode:`onSuccess`},"person-workemail-profileurl-waterfall-v1-amplemarket":{provider:`amplemarket`,allowManagedConnection:!0,credits:{default:2.5,level1:{credits:1.5,weight:1}},mode:`onSuccess`}},Eb=class extends H{pipeId=_b;payload;payloadSchema=Cb;billableOperations=Tb;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return this.payload.config?.providers.map(e=>e.provider)||[]}estimateBillableOperations(){return this.getProviderNames().map(e=>q(e,this.billableOperations).billableOperation)}getInputRequirement(){return wb(this.payload.config)}getRawOutputFields(){return{[yb.name]:this.catalogOutput(yb,{isPrimaryOutput:!0}),[bb.name]:this.catalogOutput(bb,{isPrimaryOutput:!1})}}getConnectionsRequirements(){let e={leadmagic:`leadmagic_email_b2b_lookup`,hunter:`prospeo_email_lookup`,amplemarket:`amplemarket-person-reveal`,findymail:`findymail_email_b2b_lookup`,crustdata:`crustdata_realtime_person_enrich`};return(this.payload.config?.providers||[]).map((t,n)=>({provider:t.provider,rateLimitRatio:K(n),rateLimitOperation:e[t.provider],allowManagedConnection:!0}))}},Db=Cb,Ob={pipeId:_b,basePipe:U(_b),label:`Work email from LinkedIn URL`,executionMode:`waterfall`,categories:[`people_data`],lifecycle:null,description:`Find work email addresses from B2B profile.`,tags:[z.EMAIL,z.WORK_EMAIL,z.WATERFALL],docPath:W(_b),managedProviders:xb,allowedUserConnectionProviders:xb,deprecatedProviders:[],inputFieldMode:`static`,outputFieldMode:`static`,billableOperations:Tb,defaultInputRequirement:wb(null),defaultPayload:{pipe_id:_b,connector:null,run_if:null,config:{providers:Sb,allow_catch_all_emails:!0,allow_risky_emails:!0,input_fields:{profile_url:{alias:``}},output_fields:{work_email:{alias:``,enabled:!0},email_validation_status:{alias:``,enabled:!1}}}}},kb=`person:workemail:waterfall@1`,Ab=g(`name`),jb=g(`company_domain`),Mb=g(`company_name`),Nb=g(`work_email`),Pb=g(`email_validation_status`),Fb=[`leadmagic`,`prospeo`,`amplemarket`,`hunter`,`icypeas`,`findymail`],Ib=[{provider:`leadmagic`},{provider:`prospeo`},{provider:`amplemarket`},{provider:`hunter`},{provider:`icypeas`},{provider:`findymail`}],Lb={"person-workemail-waterfall-v1-leadmagic":{provider:`leadmagic`,allowManagedConnection:!0,credits:{default:.5,level1:{credits:.25,weight:1}},mode:`onSuccess`},"person-workemail-waterfall-v1-icypeas":{provider:`icypeas`,allowManagedConnection:!0,credits:{default:.5,level1:{credits:.25,weight:1}},mode:`onSuccess`},"person-workemail-waterfall-v1-prospeo":{provider:`prospeo`,allowManagedConnection:!0,credits:{default:1,level1:{credits:.5,weight:1}},mode:`onSuccess`},"person-workemail-waterfall-v1-findymail":{provider:`findymail`,allowManagedConnection:!0,credits:{default:1.5,level1:{credits:.75,weight:1}},mode:`onSuccess`},"person-workemail-waterfall-v1-hunter":{provider:`hunter`,allowManagedConnection:!0,credits:{default:1.3,level1:{credits:.75,weight:1}},mode:`onSuccess`},"person-workemail-waterfall-v1-amplemarket":{provider:`amplemarket`,allowManagedConnection:!0,credits:{default:3,level1:{credits:2,weight:1}},mode:`onSuccess`}},Rb=r.object({pipe_id:r.literal(kb),connector:C(),run_if:x(),config:r.object({providers:E({availableProviders:Fb,defaultProviders:Ib,sectionKey:`general`,providerCredits:eo(Lb,Fb)}),allow_catch_all_emails:D({path:`config.allow_catch_all_emails`,defaultValue:!0,groupPath:`config.general`,sectionKey:`general`,info:`Catch-alls appear valid but remain undeliverable-risk.`,label:`Allow catch-all emails`}),allow_risky_emails:D({path:`config.allow_risky_emails`,defaultValue:!0,groupPath:`config.general`,sectionKey:`general`,info:`DNS configuration and spam reputation may flag emails as high-risk.`,label:`Allow risky emails`}),input_fields:R(r.object({[Ab.name]:T({fieldName:Ab.name}),[jb.name]:T({fieldName:jb.name}),[Mb.name]:T({fieldName:Mb.name})})),output_fields:L(r.object({[Nb.name]:O({fieldName:Nb.name}),[Pb.name]:O({fieldName:Pb.name})}))}).optional()}),zb=e=>Ua(B(G(Ab,e)),V(G(jb,e),G(Mb,e))),Bb=class extends H{pipeId=kb;payload;payloadSchema=Rb;billableOperations=Lb;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return this.payload.config?.providers.map(e=>e.provider)||[]}estimateBillableOperations(){return this.getProviderNames().map(e=>q(e,this.billableOperations).billableOperation)}getInputRequirement(){return zb(this.payload.config)}getRawOutputFields(){return{[Nb.name]:this.catalogOutput(Nb,{isPrimaryOutput:!0}),[Pb.name]:this.catalogOutput(Pb,{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:K(n),rateLimitOperation:e[t.provider],allowManagedConnection:!0}))}},Vb=Rb,Hb={pipeId:kb,basePipe:U(kb),label:`Work email from name`,executionMode:`waterfall`,categories:[`people_data`],lifecycle:null,description:`Find work email addresses in a waterfall motion.`,tags:[z.EMAIL,z.WORK_EMAIL,z.WATERFALL],docPath:W(kb),managedProviders:Fb,deprecatedProviders:[],allowedUserConnectionProviders:Fb,inputFieldMode:`static`,outputFieldMode:`static`,billableOperations:Lb,defaultInputRequirement:zb(null),defaultPayload:{pipe_id:kb,connector:null,run_if:null,config:{providers:Ib,allow_catch_all_emails:!0,allow_risky_emails:!0,input_fields:{company_name:{alias:``},company_domain:{alias:``},name:{alias:``}},output_fields:{work_email:{alias:``,enabled:!0},email_validation_status:{alias:``,enabled:!1}}}}},Ub=`prompt:run@1`,Wb=`prompt-run-v1`,Gb=mi(Wb),Kb=r.object({pipe_id:r.literal(Ub),connector:C(),run_if:x(),config:r.object({prompt:ta({sectionKey:`general`,path:`config.prompt`,placeholder:Y(`prompt`),groupPath:`config.prompt`,supportedTags:[`input`,`output`]}),model:Sa({sectionKey:`general`,label:`Model`,path:`config.model`,groupPath:`config.prompt`,billableOperations:Gb})})}),qb=class extends H{pipeId=Ub;payload;payloadSchema=Kb;billableOperations=Gb;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return gi(this.payload.config.model)}estimateBillableOperations(){return[hi(this.payload.config.model,Wb)]}getInputRequirement(){return hh([this.payload.config.prompt.template])}getSecretRequirements(){return J([this.payload.config.prompt.template])}getConstantRequirements(){return gh([this.payload.config.prompt.template])}getRawOutputFields(){let e=this.payload.config.prompt.template,t=this.payload.config.prompt.json_schemas??{},n={},r;try{r=Wr(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 _i(this.payload.config.model)}},Jb=Kb,Yb={pipeId:Ub,inputFieldMode:`config`,outputFieldMode:`config`,basePipe:U(Ub),label:`AI prompt`,executionMode:`single`,categories:[`actions`,`tools`],lifecycle:null,description:`Executes configurable AI prompts with structured output fields.`,detailed_description:`General-purpose AI prompt runner. Inputs and outputs are fully dynamic β€” defined by the tags in the prompt template.`,tags:[z.AI],docPath:W(Ub),defaultInputRequirement:null,billableOperations:Gb,allowedUserConnectionProviders:vi(),managedProviders:vi(),deprecatedProviders:[],defaultPayload:{pipe_id:Ub,connector:null,run_if:null,config:{model:`openai-gpt-latest`,prompt:{template:``,json_schemas:{}}}}},Xb=`sheet:row:append@1`,Zb=g(`sheet_record_id`),Qb=g(`created_sheet`),$b=[{label:`Demo leads`,value:`demo-leads`},{label:`Demo companies`,value:`demo-companies`},{label:`Demo contacts`,value:`demo-contacts`}],ex=[{label:`Demo team`,value:`sandbox-team-1`},{label:`Demo workspace`,value:`sandbox-team-2`}],tx={requires:{connection:`pipe0`},enabledIf:Sn(`pipe0`,`Select a pipe0 connection to see sheet suggestions`),options:async({query:e,client:t,environment:n})=>n===`sandbox`?$b:t?(await t.sheets.list({query:e})).map(e=>({label:e.name&&e.name!==e.slug?`${e.name} (${e.slug})`:e.slug,value:e.slug})):[],widgets:{provider_logo:{provider:`pipe0`}}},nx={requires:{connection:`pipe0`},enabledIf:Sn(`pipe0`,`Select a pipe0 connection to see team suggestions`),options:async({query:e,client:t,environment:n})=>n===`sandbox`?ex:t?(await t.teams.list({query:e})).map(e=>({label:e.name,value:e.id})):[],widgets:{provider_logo:{provider:`pipe0`}}},rx=r.object({pipe_id:r.literal(Xb),connector:ia(),run_if:x(),config:r.object({sheet:S({label:`Destination sheet`,info:"Sheet identifier. Either a literal slug, or type `@` to insert a field reference / `$` to insert a secret reference.",groupPath:`config.general`,sectionKey:`general`,inputType:`text`,path:`config.sheet`,minLength:3,expectedTagType:`string`,expectedTagFormat:`text`,optionsDef:tx}),run:D({defaultValue:!0,groupPath:`config.advanced`,path:`config.run`,sectionKey:`general`,description:`Auto-run sheet row after append action.`,label:`Run after append`}),allow_field_creation:D({label:`Create unknown fields`,defaultValue:!0,groupPath:`config.advanced`,path:`config.allow_field_creation`,sectionKey:`general`,description:`Add unknown fields as new sheet columns.`}),allow_sheet_creation:D({label:`Create missing sheets`,description:`Create new sheet if none exists with the provided name`,defaultValue:!0,groupPath:`config.advanced`,path:`config.allow_sheet_creation`,sectionKey:`general`}),new_sheet_team_id:Da({label:`Team`,info:`Optional hint for the team where the sheet should be created. Only used when a new sheet is created.`,placeholder:`Select a team…`,required:!1,groupPath:`config.advanced`,path:`config.new_sheet_team_id`,sectionKey:`general`,optionsDef:nx,enabledIf:e=>e.config?.allow_sheet_creation?{disabled:!1}:{disabled:!0,message:`Turn on β€œUpsert sheets” to specify a team.`}}),included_fields:la({label:`Fields`,info:`All fields are written if empty.`,groupPath:`config.general`,path:`config.included_fields`,sectionKey:`general`,disableSearch:!0}),output_fields:L(r.object({[Zb.name]:O({fieldName:Zb.name}),[Qb.name]:O({fieldName:Qb.name})}))})}),ix={"sheet-row-append-v1-pipe0":{provider:`pipe0`,allowManagedConnection:!1,credits:null,mode:null}},ax=class extends H{pipeId=Xb;payload;payloadSchema=rx;billableOperations=ix;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[`sheet-row-append-v1-pipe0`]}getInputRequirement(){let e=[hh([this.payload.config.sheet],{expectedType:`string`,expectedFormat:`text`})];if(this.payload.config.included_fields?.length)for(let t of this.payload.config.included_fields)e.push(B({name:t.field_name,resolvedName:t.field_name,label:``,description:``,type:e=>{let n=mh(e,t.field_name);if(!n)throw Error(`Unable to find field with name ${t.field_name}. But needed by prompt parser.`);return n.type||`unknown`},format:null}));return Ua(...e)}getSecretRequirements(){return J([this.payload.config.sheet])}getConstantRequirements(){return gh([this.payload.config.sheet])}getRawOutputFields(){return{[Zb.name]:this.catalogOutput(Zb),[Qb.name]:this.catalogOutput(Qb)}}getConnectionsRequirements(){return[{provider:`pipe0`,rateLimitRatio:1,rateLimitOperation:`pipe0-sheet-operation`,allowManagedConnection:!0}]}},ox=rx,sx={pipeId:Xb,basePipe:U(Xb),label:`Append row to sheet`,executionMode:`single`,categories:[`actions`,`tools`],lifecycle:null,allowedUserConnectionProviders:[`pipe0`],managedProviders:[],deprecatedProviders:[],description:"Add rows to a pipe0 sheet. The sheet identifier may be a literal slug or a `{{ field_name }}` tag.",docPath:W(Xb),tags:[z.FIELDS],billableOperations:ix,defaultInputRequirement:null,inputFieldMode:`config`,outputFieldMode:`static`,defaultPayload:{pipe_id:Xb,connector:{strategy:`first`,connections:[]},run_if:null,config:{sheet:``,run:!0,allow_field_creation:!0,allow_sheet_creation:!0,new_sheet_team_id:``,included_fields:[],output_fields:{sheet_record_id:{alias:``,enabled:!0},created_sheet:{alias:``,enabled:!0}}}}},cx=`sheet:row:expandappend@1`,lx=g(`sheet_record_ids`),ux=g(`input_objects`),dx=r.object({pipe_id:r.literal(cx),connector:ia(),run_if:x(),config:r.object({sheet:ya({label:`Sheet name`,info:`Unique identifier for the sheet`,groupPath:`config.general`,sectionKey:`general`,inputType:`text`,path:`config.sheet`,minLength:3}),run:D({defaultValue:!0,groupPath:`config.general`,path:`config.run`,sectionKey:`general`,info:`Enrich record after write. Ignored if target sheet writes to other sheets.`,label:`Run`}),allow_field_creation:D({defaultValue:!0,groupPath:`config.general`,path:`config.allow_field_creation`,sectionKey:`general`,info:`Add unknown object fields to the sheet definition.`,label:`Allow field creation`}),input_fields:R(r.object({[ux.name]:T({fieldName:ux.name})})),output_fields:L(r.object({[lx.name]:O({fieldName:lx.name})}))})}),fx={"sheet-row-expandappend-v1-pipe0":{provider:`pipe0`,allowManagedConnection:!1,credits:null,mode:null}},px=e=>B(G(ux,e)),mx=class extends H{pipeId=cx;payload;payloadSchema=dx;billableOperations=fx;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[`sheet-row-expandappend-v1-pipe0`]}getInputRequirement(){return px(this.payload.config)}getRawOutputFields(){return{[lx.name]:this.catalogOutput(lx)}}getConnectionsRequirements(){return[{provider:`pipe0`,rateLimitRatio:1,rateLimitOperation:`pipe0-sheet-operation`,allowManagedConnection:!0}]}},hx=dx,gx={pipeId:cx,basePipe:U(cx),label:`Object list to sheet rows`,executionMode:`single`,categories:[`actions`,`tools`],lifecycle:null,allowedUserConnectionProviders:[`pipe0`],managedProviders:[],deprecatedProviders:[],description:`Expand a list of nested objects into sheet rows.`,docPath:W(cx),tags:[z.FIELDS],billableOperations:fx,defaultInputRequirement:px(null),inputFieldMode:`static`,outputFieldMode:`static`,defaultPayload:{pipe_id:cx,connector:{strategy:`first`,connections:[]},run_if:null,config:{sheet:``,run:!0,allow_field_creation:!0,input_fields:{input_objects:{alias:``}},output_fields:{sheet_record_ids:{alias:``,enabled:!0}}}}},_x=`template:fill@1`,vx=g(`template_output`),yx=r.object({pipe_id:r.literal(_x),connector:C(),run_if:x(),config:r.object({template:na({sectionKey:`general`,path:`config.template`,label:`Template`,placeholder:Y(`template`),groupPath:`config.general`,required:!0}),output_fields:L(r.object({[vx.name]:O({fieldName:vx.name})}))})}),bx={"template-fill-v1-pipe0":{credits:{default:0},allowManagedConnection:!0,provider:`pipe0`,mode:`always`}},xx=class extends H{pipeId=_x;payload;payloadSchema=yx;billableOperations=bx;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[`template-fill-v1-pipe0`]}getInputRequirement(){return hh([this.payload.config.template])}getSecretRequirements(){return J([this.payload.config.template])}getConstantRequirements(){return gh([this.payload.config.template])}getRawOutputFields(){return{[vx.name]:this.catalogOutput(vx)}}getConnectionsRequirements(){return[]}},Sx=yx,Cx={pipeId:_x,inputFieldMode:`config`,outputFieldMode:`config`,basePipe:U(_x),label:`Fill a text template`,executionMode:`single`,categories:[`tools`],lifecycle:null,description:`Replaces template tags like {{ name }} with actual values.`,tags:[z.TEXT],docPath:W(_x),defaultInputRequirement:null,billableOperations:bx,allowedUserConnectionProviders:[],managedProviders:[`pipe0`],deprecatedProviders:[],defaultPayload:{pipe_id:_x,connector:null,run_if:null,config:{template:``,output_fields:{template_output:{alias:``,enabled:!0}}}}},wx=`website:extract:firecrawl@1`,Tx=g(`website_url`),Ex=g(`firecrawl_extract_result`),Dx=r.object({pipe_id:r.literal(wx),connector:C(),run_if:x(),config:r.object({json_schema:Ea({sectionKey:`general`,groupPath:`config.extraction`,path:`config.json_schema`,label:`Output JSON schema`,info:`Specify the data you want to extract as a JSON schema.`,allowEmpty:!1,required:!0}),extraction_prompt:ba({sectionKey:`general`,groupPath:`config.extraction`,path:`config.extraction_prompt`,label:`Extraction Prompt`,info:`Prompt the scraper on what it should extract. Template tags are not supported.`,rows:5,minLength:10,placeholder:`E.g. Extract the company missing and latest news.`}),enable_full_domain_crawl:D({sectionKey:`general`,groupPath:`config.extraction`,defaultValue:!1,path:`config.enable_full_domain_crawl`,info:`If this option is enabled all URLs from this domain will be scraped.`,label:`Crawl full domain`}),enable_web_search:D({sectionKey:`general`,groupPath:`config.extraction`,label:`Enable web search`,path:`enable_web_search`,defaultValue:!1,info:`When 'true', the extraction will follow links outside the specified domain.`}),input_fields:R(r.object({[Tx.name]:T({fieldName:Tx.name})})),output_fields:L(r.object({[Ex.name]:O({fieldName:Ex.name})}))})}),Ox=e=>B(G(Tx,e)),kx={"website-extract-firecrawl-v1-firecrawl":{allowManagedConnection:!0,provider:`firecrawl`,credits:{default:2,level1:{credits:1,weight:1}},mode:`onSuccess`}},Ax=class extends H{pipeId=wx;payload;payloadSchema=Dx;billableOperations=kx;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`firecrawl`]}estimateBillableOperations(){return[`website-extract-firecrawl-v1-firecrawl`]}getInputRequirement(){return Ox(this.payload.config)}getRawOutputFields(){return{[Ex.name]:this.catalogOutput(Ex)}}getConnectionsRequirements(){return[{provider:`firecrawl`,rateLimitRatio:1,rateLimitOperation:`firecrawl_generic`,allowManagedConnection:!0}]}},jx=Dx,Mx={pipeId:wx,basePipe:U(wx),label:`Extract`,executionMode:`single`,categories:[`tools`],lifecycle:null,description:`Perform advanced AI scraping to extract data from any website. Search all subdomains and combine scraped data with search results.`,tags:[z.SCRAPE],docPath:W(wx),billableOperations:kx,inputFieldMode:`static`,outputFieldMode:`static`,allowedUserConnectionProviders:[`firecrawl`],managedProviders:[`firecrawl`],deprecatedProviders:[],defaultInputRequirement:Ox(null),defaultPayload:{pipe_id:wx,run_if:null,connector:null,config:{json_schema:{type:`object`},enable_full_domain_crawl:!1,enable_web_search:!1,extraction_prompt:``,input_fields:{website_url:{alias:``}},output_fields:{firecrawl_extract_result:{alias:``,enabled:!0}}}}},Nx=`website:extract:parallel@1`,Px=g(`website_url`),Fx=g(`parallel_extract_result`),Ix=r.object({pipe_id:r.literal(Nx),connector:C(),run_if:x(),config:r.object({objective:ba({sectionKey:`general`,groupPath:`config.extraction`,path:`config.objective`,label:`Objective`,info:`Natural-language description of what to extract. Template tags are not supported.`,rows:5,minLength:10,placeholder:`E.g. When was the company founded and what does it do?`}),input_fields:R(r.object({[Px.name]:T({fieldName:Px.name})})),output_fields:L(r.object({[Fx.name]:O({fieldName:Fx.name})}))})}),Lx=e=>B(G(Px,e)),Rx={"website-extract-parallel-v1-parallel":{allowManagedConnection:!0,provider:`parallel`,credits:{default:.1},mode:`onSuccess`}},zx=class extends H{pipeId=Nx;payload;payloadSchema=Ix;billableOperations=Rx;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`parallel`]}estimateBillableOperations(){return[`website-extract-parallel-v1-parallel`]}getInputRequirement(){return Lx(this.payload.config)}getRawOutputFields(){return{[Fx.name]:this.catalogOutput(Fx,{isPrimaryOutput:!0})}}getConnectionsRequirements(){return[{provider:`parallel`,rateLimitRatio:1,rateLimitOperation:`parallel_extract`,allowManagedConnection:!0}]}},Bx=Ix,Vx={pipeId:Nx,basePipe:U(Nx),label:`Extract (Parallel)`,executionMode:`single`,categories:[`tools`],lifecycle:null,description:`Extract relevant content from a website using Parallel's Extract API. Returns a flat list of results β€” page title, publish date and the excerpts most relevant to your objective.`,tags:[z.SCRAPE],docPath:W(Nx),billableOperations:Rx,inputFieldMode:`static`,outputFieldMode:`static`,allowedUserConnectionProviders:[`parallel`],managedProviders:[`parallel`],deprecatedProviders:[],defaultInputRequirement:Lx(null),defaultPayload:{pipe_id:Nx,run_if:null,connector:null,config:{objective:``,input_fields:{website_url:{alias:``}},output_fields:{parallel_extract_result:{alias:``,enabled:!0}}}}},Hx=`website:maplinks:firecrawl@1`,Ux={"website-maplinks-firecrawl-v1-firecrawl":{allowManagedConnection:!0,provider:`firecrawl`,credits:{default:1},mode:`onSuccess`}},Wx=g(`website_url`),Gx=g(`mapped_links`),Kx=r.object({pipe_id:r.literal(Hx),connector:C(),run_if:x(),config:r.object({page_limit:wa({label:`Page limit`,info:`Number of pages searched`,groupPath:`config.general`,max:50,min:1,required:!1,path:`config.page_limit`,sectionKey:`general`}),sitemap:xa({label:`Sitemap`,info:`Include sitemap links`,sectionKey:`general`,groupPath:`config.general`,path:`config.sitemap`,defaultValue:`include`,required:!1,options:[{value:`include`,label:`Include`},{value:`skip`,label:`Skip`},{value:`only`,label:`Only`}]}),search:ya({sectionKey:`general`,label:`Search`,inputType:`text`,info:`Return matching urls`,groupPath:`config.general`,path:`config.search`}).default(``),input_fields:R(r.object({[Wx.name]:T({fieldName:Wx.name})})),output_fields:L(r.object({[Gx.name]:O({fieldName:Gx.name})}))}).optional()}),qx=e=>B(G(Wx,e)),Jx=class extends H{pipeId=Hx;payload;payloadSchema=Kx;billableOperations=Ux;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`firecrawl`]}estimateBillableOperations(){return[`website-maplinks-firecrawl-v1-firecrawl`]}getInputRequirement(){return qx(this.payload.config)}getRawOutputFields(){return{[Gx.name]:this.catalogOutput(Gx)}}getConnectionsRequirements(){return[{provider:`firecrawl`,rateLimitRatio:1,rateLimitOperation:`firecrawl_map_requests`,allowManagedConnection:!0}]}},Yx=Kx,Xx={pipeId:Hx,basePipe:U(Hx),label:`Map domain links`,executionMode:`single`,categories:[`tools`],lifecycle:null,description:`Input a website and get all internal URLs on the website. Results do not include links to external pages.`,tags:[z.SCRAPE],docPath:W(Hx),billableOperations:Ux,inputFieldMode:`static`,outputFieldMode:`static`,allowedUserConnectionProviders:[`firecrawl`],managedProviders:[`firecrawl`],deprecatedProviders:[],defaultInputRequirement:qx(null),defaultPayload:{pipe_id:Hx,run_if:null,connector:null,config:{page_limit:25,sitemap:`include`,search:``,input_fields:{website_url:{alias:``}},output_fields:{mapped_links:{alias:``,enabled:!0}}}}},Zx=`website:scrape:firecrawl@1`,Qx=g(`website_url`),$x=g(`website_markdown`),eS=g(`website_html`),tS=g(`website_links`),nS=r.object({pipe_id:r.literal(Zx),connector:C(),run_if:x(),config:r.object({scrape_main_only:D({defaultValue:!1,label:`Scrape main content only?`,info:`If selected, content like headers, footers, and sidebars are excluded from the scrape results.`,sectionKey:`general`,groupPath:`config.general`,path:`config.scrape_main_only`}),input_fields:R(r.object({[Qx.name]:T({fieldName:Qx.name})})),output_fields:L(r.object({[$x.name]:O({fieldName:$x.name}),[eS.name]:O({fieldName:eS.name}),[tS.name]:O({fieldName:tS.name})}))}).optional()}),rS=e=>B(G(Qx,e)),iS={"website-scrape-firecrawl-v1-firecrawl":{allowManagedConnection:!0,provider:`firecrawl`,credits:{default:.1,level1:{credits:.05,weight:1}},mode:`onSuccess`}},aS=class extends H{pipeId=Zx;payload;payloadSchema=nS;billableOperations=iS;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`firecrawl`]}estimateBillableOperations(){return[`website-scrape-firecrawl-v1-firecrawl`]}getInputRequirement(){return rS(this.payload.config)}getRawOutputFields(){return{[$x.name]:this.catalogOutput($x),[eS.name]:this.catalogOutput(eS),[tS.name]:this.catalogOutput(tS)}}getConnectionsRequirements(){return[{provider:`firecrawl`,rateLimitRatio:1,rateLimitOperation:`firecrawl_generic`,allowManagedConnection:!0}]}},oS=nS,sS={pipeId:Zx,basePipe:U(Zx),label:`Scrape`,executionMode:`single`,categories:[`tools`],lifecycle:null,description:`Turn any URL into clean data.`,tags:[z.SCRAPE],docPath:W(Zx),billableOperations:iS,inputFieldMode:`static`,outputFieldMode:`static`,allowedUserConnectionProviders:[`firecrawl`],managedProviders:[`firecrawl`],deprecatedProviders:[],defaultInputRequirement:rS(null),defaultPayload:{pipe_id:Zx,run_if:null,connector:null,config:{scrape_main_only:!0,input_fields:{website_url:{alias:``}},output_fields:{website_markdown:{alias:``,enabled:!0},website_html:{alias:``,enabled:!1},website_links:{alias:``,enabled:!1}}}}},cS=`website:scrapelist:firecrawl@1`,lS={"website-scrapelist-firecrawl-v1-firecrawl":{allowManagedConnection:!0,provider:`firecrawl`,credits:{default:.1,level1:{credits:.05,weight:1}},mode:`onSuccess`,note:`You are charged per url that is scraped.`}},uS=g(`urls`),dS=g(`scrape_list_response`),fS=r.object({pipe_id:r.literal(cS),connector:C(),run_if:x(),config:r.object({scrape_main_only:D({label:`Scrape main content only?`,defaultValue:!1,info:`If selected headers, footers, and sidebars will be excluded from the results.`,sectionKey:`general`,groupPath:`config.general`,path:`config.scrape_main_only`}),formats:Ca({options:[{label:`Markdown`,value:`markdown`},{label:`HTML`,value:`html`},{label:`Links`,value:`links`}],disableSearch:!0,info:`Choose what you want to scrape from the website`,required:!1,label:`Formats`,sectionKey:`general`,groupPath:`config.general`,path:`config.formats`}),input_fields:R(r.object({[uS.name]:T({fieldName:uS.name})})),output_fields:L(r.object({[dS.name]:O({fieldName:dS.name})}))}).optional()}),pS=e=>B(G(uS,e)),mS=class extends H{pipeId=cS;payload;payloadSchema=fS;billableOperations=lS;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`firecrawl`]}estimateBillableOperations(){return[,,,,,].fill(`list-url-scrape-firecrawl`)}getInputRequirement(){return pS(this.payload.config)}getRawOutputFields(){return{[dS.name]:this.catalogOutput(dS)}}getConnectionsRequirements(){return[{provider:`firecrawl`,rateLimitRatio:1,rateLimitOperation:`firecrawl_generic`,allowManagedConnection:!0}]}},hS=fS,gS={pipeId:cS,basePipe:U(cS),label:`Scrape list`,executionMode:`single`,categories:[`tools`],lifecycle:null,description:`Turn a list of URLs into clean scraped data.`,tags:[z.SCRAPE],docPath:W(cS),billableOperations:lS,inputFieldMode:`static`,outputFieldMode:`static`,allowedUserConnectionProviders:[`firecrawl`],managedProviders:[`firecrawl`],deprecatedProviders:[],defaultInputRequirement:pS(null),defaultPayload:{pipe_id:cS,run_if:null,connector:null,config:{scrape_main_only:!0,formats:[`html`,`markdown`,`links`],input_fields:{urls:{alias:``}},output_fields:{scrape_list_response:{alias:``,enabled:!0}}}}},_S=[`companies:profiles:crustdata@1`,`companies:profiles:crustdata@2`,`companies:profiles:amplemarket@1`,`companies:profiles:amplemarket@2`,`people:profiles:crustdata@1`,`people:profiles:crustdata@2`,`people:profiles:amplemarket@1`,`people:profiles:amplemarket@2`,`companies:entitysearch:parallel@1`,`people:entitysearch:parallel@1`,`people:eventguests:luma@1`],vS=r.enum(_S);function yS(e,t){let n={name:e,config:t};return Za.hashObject(n)}var Q=class{validatePayload(e){try{return this.schema.parse(e)}catch(e){throw e instanceof n?Error(JSON.stringify(r.prettifyError(e))):e}}catalogOutput(e){return{name:e.name,enabled:!!this.payload.config?.output_fields?.[e.name].enabled,type:e.type,format:e.format,resolvedName:this.payload.config?.output_fields?.[e.name]?.alias||e.name,description:e.description,jsonMeta:e.jsonMeta,label:e.label,isCatalogFIeld:!0}}getOutputFields(){let e={};for(let[t,n]of Object.entries(this.getRawOutputFields()))n.enabled&&(e[t]=n);return e}getHashKey(){return yS(this.searchId,this.payload)}};function $(e){return e.split(`@`)[0]}function bS(e){return`/docs/search-catalog/${$(e)}/${e.split(`@`)[1]}`}const xS=`companies:entitysearch:parallel@1`,SS=g(`company_name`),CS=g(`company_domain`),wS=g(`company_description`),TS=g(`company_profile_url`),ES=g(`parallel_company_entity_match`),DS=r.object({search_id:r.literal(xS),connector:sa(),config:r.object({objective:Ia({path:`config.objective`,sectionKey:`general`,groupPath:`config.general`,label:`Objective`,rows:4,minLength:10,placeholder:`AI startups in Europe that raised a Series A in 2024`,description:`Plain-text natural-language description of the companies to find.`}),limit:I({path:`config.limit`,min:5,max:1e3,groupPath:`config.pagination`,required:!0,sectionKey:`pagination`,label:`Limit`,description:`Max number of entities to return (5–1000).`}).default(100),output_fields:L(r.object({[SS.name]:M({fieldName:SS.name}),[CS.name]:M({fieldName:CS.name}),[wS.name]:M({fieldName:wS.name}),[TS.name]:M({fieldName:TS.name}),[ES.name]:M({fieldName:ES.name})}))})}),OS={default:{input:[{fields:[]}]}},kS=class extends Q{searchId=xS;schema=DS;payload;constructor(e){super(),this.payload=this.validatePayload(e)}getRawOutputFields(){return{[SS.name]:this.catalogOutput(SS),[CS.name]:this.catalogOutput(CS),[wS.name]:this.catalogOutput(wS),[TS.name]:this.catalogOutput(TS),[ES.name]:this.catalogOutput(ES)}}getConnectionsRequirements(){return[{provider:`parallel`,rateLimitOperation:`parallel_entity_search`,rateLimitRatio:1,allowManagedConnection:!0}]}getDedupConfig(){return OS}},AS=DS,jS={searchId:xS,billableOperation:`companies-entitysearch-parallel-v1`,baseSearch:$(xS),label:`Company search (AI)`,categories:[`companies`],paginationType:`page_number`,hasManagedConnection:!0,allowsUserConnection:!0,lifecycle:null,description:`Natural-language company search powered by Parallel Entity Search.`,tags:[z.COMPANY_PROFILES],docPath:bS(xS),cost:{mode:`per_page`,credits:{default:.5},info:`1 page = 100 results; billed per 100 results returned (e.g. 100 results = 1 page, 1,000 results = 10 pages). A search returns up to your selected limit in a single request.`},provider:`parallel`,defaultPayload:{search_id:xS,connector:null,config:{objective:``,limit:100,output_fields:{company_name:{enabled:!0,alias:``},company_domain:{enabled:!0,alias:``},company_description:{enabled:!0,alias:``},company_profile_url:{enabled:!0,alias:``},parallel_company_entity_match:{enabled:!1,alias:``}}}}};function MS(e,t=32){return`https://www.google.com/s2/favicons?sz=${t}&domain=${e.replace(/^(https?:\/\/)?(www\.)?/,``)}`}function NS(e,t){return e==null?void 0:t(e)}function PS(){return FS({companyWebsiteUrl:`linkedin.com`,entity:`LinkedIn`})}function FS({companyWebsiteUrl:e,entity:t}){if(e)return{image_url:MS(e),entity:t||e}}function IS(e,t){let n=JSON.parse(JSON.stringify({...e}));if(!t)return n;for(let e in t)!(e in n)&&t[e]!=null&&(n[e]=t[e]);return n}function LS(e){let t=!0,n=e=>{if(t!==!1&&typeof e==`object`&&e){Array.isArray(e)&&e.length>0&&(t=!1);for(let r of Object.values(e))typeof r!=`object`&&r!=null&&r!==``&&(t=!1),typeof r==`object`&&r&&n(r)}};return n(e),t}const RS=`companies:profiles:amplemarket@2`,zS=g(`company_name`),BS=g(`company_domain`),VS=g(`company_description`),HS=g(`company_profile_url`),US=g(`amplemarket_company_match`),WS=r.object({search_id:r.literal(RS),connector:sa(),config:r.object({limit:I({label:`Limit`,description:`Max number of search results`,path:`config.limit`,min:1,max:100,groupPath:`config.pagination`,required:!0,sectionKey:`pagination`}).default(100),page_number:I({path:`config.page_number`,groupPath:`config.pagination`,required:!1,label:`Page number`,min:1,sectionKey:`pagination`,description:``}),output_fields:L(r.object({[zS.name]:M({fieldName:zS.name}),[BS.name]:M({fieldName:BS.name}),[VS.name]:M({fieldName:VS.name}),[HS.name]:M({fieldName:HS.name}),[US.name]:M({fieldName:US.name})})),filters:r.object({hq_locations:F({path:`config.filters.hq_locations`,sectionKey:`config.filters`,label:`HQ locations`,description:``,placeholder:Y(`location`),groupPath:`config.filters.location`,optionsDef:h(`locations`)}),company_names:A({sectionKey:`config.filters`,path:`config.filters.company_names`,label:`Company names`,description:``,placeholder:Y(`company_name`),groupPath:`config.filters.categories`,suggestionsDef:h(`company_names`)}),company_domains:A({sectionKey:`config.filters`,path:`config.filters.company_domains`,label:`Company domains`,description:``,placeholder:Y(`company_domain`),groupPath:`config.filters.categories`,suggestionsDef:h(`company_domains`,{widgets:e=>({logo_url:{url:MS(e.value)}})})}),company_profile_urls:A({sectionKey:`config.filters`,path:`config.filters.company_profile_urls`,label:`Company LinkedIn URLs`,description:``,groupPath:`config.filters.categories`}),company_types:N({sectionKey:`config.filters`,path:`config.filters.company_types`,disableSearch:!1,label:`Company Type`,description:``,groupPath:`config.filters.categories`,options:p(`amplemarket.company_types`),required:!1}),investors:P({sectionKey:`config.filters`,path:`config.filters.investors`,label:`Investor names`,optionsDef:h(`company.crunchbase_investors.crustdata`),description:`A list of company investor names`,placeholder:Y(`investor`),groupPath:`config.filters.investors`,disableSearch:!1,required:!1}),company_industries:j({sectionKey:`config.filters`,path:`config.filters.company_industries`,optionsDef:m(`amplemarket.industries`),disableSearch:!1,label:`Industries`,description:``,placeholder:Y(`industry`),groupPath:`config.filters.industry`}),customer_types:N({sectionKey:`config.filters`,path:`config.filters.customer_types`,options:[{value:`b2b`,label:`B2B`},{value:`b2c`,label:`B2C`}],required:!1,disableSearch:!0,label:`Customer Types`,description:``,groupPath:`config.filters.industry`}),keywords:A({sectionKey:`config.filters`,path:`config.filters.keywords`,label:`Keywords`,description:``,groupPath:`config.filters.industry`}),revenue_groups:N({path:`config.filters.revenue_groups`,sectionKey:`config.filters`,label:`Revenue groups`,description:``,disableSearch:!0,options:p(`amplemarket.company_revenue`),required:!1,groupPath:`config.filters.financials`}),founded_year:ka({path:`config.filters.founded_year`,sectionKey:`config.filters`,label:`Founded year`,groupPath:`config.filters.general`,min:0,max:2040,required:!1,description:``}),open_position_titles:k({path:`config.filters.open_position_titles`,sectionKey:`config.filters`,label:`Job openings for titles`,groupPath:`config.filters.job_openings`,description:``,placeholder:Y(`title`),suggestionsDef:h(`titles`)}),headcount:N({sectionKey:`config.filters`,path:`config.filters.headcount`,disableSearch:!1,options:p(`amplemarket.company_size`),label:`Company sizes`,required:!1,description:``,groupPath:`config.filters.company_size`}),headcount_growth_l6m_in_percent:ka({path:`config.filters.headcount_growth_l6m_in_percent`,sectionKey:`config.filters`,label:`Headcount growth over last 6 months (in %)`,groupPath:`config.filters.company_size`,description:``,max:1e4,min:0,required:!1})}).check(e=>{LS(e.value)&&e.issues.push({code:`custom`,message:`You must set at least one filter.`,input:e.value})})})}),GS={default:{input:[{fields:[]}]}},KS=class extends Q{searchId=RS;schema=WS;payload;constructor(e){super(),this.payload=this.validatePayload(e)}getRawOutputFields(){return{[zS.name]:this.catalogOutput(zS),[BS.name]:this.catalogOutput(BS),[VS.name]:this.catalogOutput(VS),[HS.name]:this.catalogOutput(HS),[US.name]:this.catalogOutput(US)}}getConnectionsRequirements(){return[{provider:`amplemarket`,rateLimitOperation:`amplemarket_company_search`,rateLimitRatio:1,allowManagedConnection:!0}]}getDedupConfig(){return GS}},qS=WS,JS={searchId:RS,billableOperation:`companies-profiles-amplemarket-v2`,baseSearch:$(`companies:profiles:amplemarket@2`),label:`Company search`,categories:[`companies`],paginationType:`page_number`,hasManagedConnection:!0,allowsUserConnection:!0,lifecycle:null,description:`Filter based company search.`,tags:[z.COMPANY_PROFILES],docPath:bS(RS),cost:{mode:`per_page`,credits:{default:2}},provider:`amplemarket`,defaultPayload:{search_id:RS,connector:null,config:{limit:100,page_number:1,output_fields:{company_name:{enabled:!0,alias:``},company_domain:{enabled:!0,alias:``},company_description:{enabled:!0,alias:``},company_profile_url:{enabled:!0,alias:``},amplemarket_company_match:{enabled:!0,alias:``}},filters:{company_industries:{include:[],exclude:[]},company_names:{include:[],exclude:[]},company_profile_urls:{include:[],exclude:[]},company_types:[],company_domains:{include:[],exclude:[]},customer_types:[],headcount_growth_l6m_in_percent:{min:null,max:null},founded_year:{min:null,max:null},revenue_groups:[],investors:[],keywords:{include:[],exclude:[]},open_position_titles:[],headcount:[],hq_locations:{include:[],exclude:[]}}}}},YS=`companies:profiles:crustdata@2`,XS=g(`company_name`),ZS=g(`company_domain`),QS=g(`company_description`),$S=g(`company_profile_url`),eC=g(`crustdata_company_match`),tC=r.object({search_id:r.literal(YS),connector:sa(),config:r.object({limit:I({path:`config.limit`,min:1,max:100,groupPath:`config.pagination`,required:!0,sectionKey:`pagination`,label:`Limit`,description:`Max number of search results`}).default(100),cursor:Fa({path:`config.cursor`,groupPath:`config.pagination`,inputType:`text`,label:`Cursor`,sectionKey:`pagination`,description:`Pagination cursor`}),output_fields:L(r.object({[XS.name]:M({fieldName:XS.name}),[ZS.name]:M({fieldName:ZS.name}),[QS.name]:M({fieldName:QS.name}),[$S.name]:M({fieldName:$S.name}),[eC.name]:M({fieldName:eC.name})})),filters:r.object({hq_locations:F({path:`config.filters.hq_locations`,sectionKey:`config.filters`,label:`HQ locations`,description:``,placeholder:Y(`location`),groupPath:`config.filters.location`,optionsDef:h(`locations`)}),crunchbase_categories:F({path:`config.filters.crunchbase_categories`,sectionKey:`config.filters`,label:`Crunchbase categories`,placeholder:Y(`crunchbase_category`),description:``,groupPath:`config.filters.categories`,optionsDef:h(`company.crunchbase_categories.crustdata`)}),crunchbase_investors:F({path:`config.filters.crunchbase_investors`,sectionKey:`config.filters`,label:`Investors to include (Crunchbase)`,description:``,placeholder:Y(`investor`),groupPath:`config.filters.investors`,optionsDef:h(`company.crunchbase_investors.crustdata`)}),tracxn_investors:F({path:`config.filters.tracxn_investors`,sectionKey:`config.filters`,label:`Investors to include (Tracxn)`,description:``,placeholder:Y(`investor`),groupPath:`config.filters.investors`,optionsDef:h(`company.tracxn_investors.crustdata`)}),company_types:j({sectionKey:`config.filters`,path:`config.filters.company_types`,optionsDef:{type:`static`,options:p(`crustdata.company_types`)},label:`Company types`,placeholder:`Public, Private, ...`,description:``,groupPath:`config.filters.categories`}),linkedin_industries:F({sectionKey:`config.filters`,path:`config.filters.linkedin_industries`,optionsDef:h(`linkedin_industries.crustdata`),label:`Industries`,description:``,placeholder:Y(`industry`),groupPath:`config.filters.industry`}),markets:F({sectionKey:`config.filters`,path:`config.filters.markets`,optionsDef:h(`company.markets.crustdata`),placeholder:`NYSE, TYO, ...`,label:`Markets`,description:``,groupPath:`config.filters.industry`}),linkedin_categories:F({sectionKey:`config.filters`,path:`config.filters.linkedin_categories`,optionsDef:h(`company.linkedin_categories.crustdata`),label:`LinkedIn category`,placeholder:`Marketing, Branding, ...`,description:``,groupPath:`config.filters.categories`}),headcount:j({path:`config.filters.headcount`,sectionKey:`config.filters`,label:`Headcount`,description:``,disableSearch:!0,placeholder:`1-10`,optionsDef:{type:`static`,options:p(`crustdata.company_size`)},groupPath:`config.filters.company_size`}),headcount_growth_l6m_in_percent:N({path:`config.filters.headcount_growth_l6m_in_percent`,sectionKey:`config.filters`,label:`Headcount growth over last 6 months in percent`,description:``,options:p(`crustdata.headcount_growth`),placeholder:`0-10%`,disableSearch:!0,required:!1,groupPath:`config.filters.company_size`}),revenue_in_usd:ja({path:`config.filters.revenue_in_usd`,sectionKey:`config.filters`,label:`Revenue (USD)`,description:``,legend:`1k - 10B`,min:1e3,max:1e10,groupPath:`config.filters.financials`}),last_funding_type:j({path:`config.filters.last_funding_type`,sectionKey:`config.filters`,label:`Last funding type`,placeholder:`Series A`,disableSearch:!0,optionsDef:{type:`static`,options:p(`crustdata.funding_rounds`)},description:``,groupPath:`config.filters.financials`}),last_funding_amount:ja({path:`config.filters.last_funding_amount`,sectionKey:`config.filters`,label:`Last funding amount`,legend:`1k - 10B`,min:1e3,max:1e10,description:``,groupPath:`config.filters.financials`}),number_of_followers:N({path:`config.filters.number_of_followers`,sectionKey:`config.filters`,label:`Number of LinkedIn followers`,placeholder:`1-500`,disableSearch:!0,description:``,required:!1,options:p(`crustdata.company_followers`),groupPath:`config.filters.web_presence`}),follower_growth_l6m_in_percent:N({path:`config.filters.follower_growth_l6m_in_percent`,sectionKey:`config.filters`,label:`LinkedIn follower growth within last 6 months`,required:!1,disableSearch:!0,placeholder:`0-10%`,description:``,options:p(`crustdata.follower_growth`),groupPath:`config.filters.web_presence`}),profile_summary_keywords:A({path:`config.filters.profile_summary_keywords`,sectionKey:`config.filters`,maxItems:50,label:`LinkedIn company description contains`,placeholder:Y(`company_profile_keyword`),description:``,groupPath:`config.filters.keywords`}),competitor_domains:A({path:`config.filters.competitor_domains`,sectionKey:`config.filters`,maxItems:50,label:`Competitor domain`,description:``,placeholder:Y(`company_domain`),groupPath:`config.filters.competitors`,suggestionsDef:h(`company_domains`,{widgets:e=>({logo_url:{url:MS(e.value)}})})})}).check(e=>{LS(e.value)&&e.issues.push({code:`custom`,message:`You must set at least one filter.`,input:e.value})})})}),nC={default:{input:[{fields:[]}]}},rC=class extends Q{searchId=YS;schema=tC;payload;constructor(e){super(),this.payload=this.validatePayload(e)}getRawOutputFields(){return{[XS.name]:this.catalogOutput(XS),[ZS.name]:this.catalogOutput(ZS),[QS.name]:this.catalogOutput(QS),[$S.name]:this.catalogOutput($S),[eC.name]:this.catalogOutput(eC)}}getConnectionsRequirements(){return[{provider:`crustdata`,rateLimitOperation:`crustdata_company_db_search`,rateLimitRatio:1,allowManagedConnection:!0}]}getDedupConfig(){return nC}},iC=tC,aC={searchId:YS,billableOperation:`companies-profiles-crustdata-v2`,baseSearch:$(`companies:profiles:crustdata@2`),label:`Company search`,categories:[`companies`],paginationType:`cursor`,hasManagedConnection:!0,allowsUserConnection:!0,lifecycle:null,description:`Filter based company search.`,tags:[z.COMPANY_PROFILES],docPath:bS(YS),cost:{mode:`per_page`,credits:{default:2}},provider:`crustdata`,defaultPayload:{search_id:YS,connector:null,config:{limit:100,cursor:``,output_fields:{company_name:{enabled:!0,alias:``},company_domain:{enabled:!0,alias:``},company_description:{enabled:!0,alias:``},company_profile_url:{enabled:!0,alias:``},crustdata_company_match:{enabled:!0,alias:``}},filters:{company_types:{include:[],exclude:[]},headcount_growth_l6m_in_percent:[],last_funding_amount:{from:null,to:null},last_funding_type:{include:[],exclude:[]},linkedin_industries:{include:[],exclude:[]},linkedin_categories:{include:[],exclude:[]},crunchbase_categories:{include:[],exclude:[]},markets:{include:[],exclude:[]},revenue_in_usd:{from:null,to:null},crunchbase_investors:{include:[],exclude:[]},tracxn_investors:{include:[],exclude:[]},follower_growth_l6m_in_percent:[],headcount:{include:[],exclude:[]},hq_locations:{include:[],exclude:[]},number_of_followers:[],profile_summary_keywords:{include:[],exclude:[]},competitor_domains:{include:[],exclude:[]}}}}},oC=`companies:profiles:amplemarket@1`,sC=g(`company_name`),cC=g(`company_website_url`),lC=g(`company_description`),uC=g(`company_profile_url`),dC=g(`amplemarket_company_match`),fC=r.object({search_id:r.literal(oC),connector:_.nullable().optional(),config:r.object({limit:I({label:`Limit`,description:`Max number of search results`,path:`config.limit`,min:1,max:100,groupPath:`config.pagination`,required:!0,sectionKey:`pagination`}),page_number:I({path:`config.page_number`,groupPath:`config.pagination`,required:!1,label:`Page number`,min:1,sectionKey:`pagination`,description:``}),output_fields:L(r.object({[sC.name]:M({fieldName:sC.name}),[cC.name]:M({fieldName:cC.name}),[lC.name]:M({fieldName:lC.name}),[uC.name]:M({fieldName:uC.name}),[dC.name]:M({fieldName:dC.name})})),filters:r.object({hq_locations:F({path:`config.filters.hq_locations`,sectionKey:`config.filters`,label:`HQ locations`,description:``,placeholder:Y(`location`),groupPath:`config.filters.location`,optionsDef:h(`locations`)}),company_names:A({sectionKey:`config.filters`,path:`config.filters.company_names`,label:`Company names`,description:``,placeholder:Y(`company_name`),groupPath:`config.filters.categories`,suggestionsDef:h(`company_names`)}),company_website_urls:A({sectionKey:`config.filters`,path:`config.filters.company_website_urls`,label:`Company domains`,description:``,placeholder:Y(`company_domain`),groupPath:`config.filters.categories`,suggestionsDef:h(`company_domains`,{widgets:{emoji:{char:`🌐`}}})}),company_profile_urls:A({sectionKey:`config.filters`,path:`config.filters.company_profile_urls`,label:`Company LinkedIn URLs`,description:``,groupPath:`config.filters.categories`}),company_types:N({sectionKey:`config.filters`,path:`config.filters.company_types`,disableSearch:!1,label:`Company Type`,description:``,groupPath:`config.filters.categories`,options:p(`amplemarket.company_types`),required:!1}),investors:P({sectionKey:`config.filters`,path:`config.filters.investors`,label:`Investor names`,optionsDef:h(`company.crunchbase_investors.crustdata`),description:`A list of company investor names`,placeholder:Y(`investor`),groupPath:`config.filters.investors`,disableSearch:!1,required:!1}),company_industries:j({sectionKey:`config.filters`,path:`config.filters.company_industries`,optionsDef:m(`amplemarket.industries`),disableSearch:!1,label:`Industries`,description:``,placeholder:Y(`industry`),groupPath:`config.filters.industry`}),customer_types:N({sectionKey:`config.filters`,path:`config.filters.customer_types`,options:[{value:`b2b`,label:`B2B`},{value:`b2c`,label:`B2C`}],required:!1,disableSearch:!0,label:`Customer Types`,description:``,groupPath:`config.filters.industry`}),keywords:A({sectionKey:`config.filters`,path:`config.filters.keywords`,label:`Keywords`,description:``,groupPath:`config.filters.industry`}),revenue_groups:N({path:`config.filters.revenue_groups`,sectionKey:`config.filters`,label:`Revenue groups`,description:``,disableSearch:!0,options:p(`amplemarket.company_revenue`),required:!1,groupPath:`config.filters.financials`}),founded_year:ka({path:`config.filters.founded_year`,sectionKey:`config.filters`,label:`Founded year`,groupPath:`config.filters.general`,min:0,max:2040,required:!1,description:``}),open_positions_titles:k({path:`config.filters.open_positions_titles`,sectionKey:`config.filters`,label:`Job openings for titles`,groupPath:`config.filters.job_openings`,description:``,placeholder:Y(`title`),suggestionsDef:h(`titles`)}),headcount:N({sectionKey:`config.filters`,path:`config.filters.company_sizes`,disableSearch:!1,options:p(`amplemarket.company_size`),label:`Headcount groups`,required:!1,description:``,groupPath:`config.filters.company_size`}),headcount_growth_last_6_months_in_percent:ka({path:`config.filters.headcount_growth_last_6_months_in_percent`,sectionKey:`config.filters`,label:`Headcount growth over last 6 months (in %)`,groupPath:`config.filters.company_size`,description:``,max:1e4,min:0,required:!1})}).check(e=>{LS(e.value)&&e.issues.push({code:`custom`,message:`You must set at least one filter.`,input:e.value})})})}),pC={default:{input:[{fields:[]}]}},mC=class extends Q{searchId=oC;schema=fC;payload;constructor(e){super(),this.payload=this.validatePayload(e)}getRawOutputFields(){return{[sC.name]:this.catalogOutput(sC),[cC.name]:this.catalogOutput(cC),[lC.name]:this.catalogOutput(lC),[uC.name]:this.catalogOutput(uC),[dC.name]:this.catalogOutput(dC)}}getConnectionsRequirements(){return[{provider:`amplemarket`,rateLimitOperation:`amplemarket_company_search`,rateLimitRatio:1,allowManagedConnection:!0}]}getDedupConfig(){return pC}},hC=fC,gC={searchId:oC,billableOperation:`companies-profiles-amplemarket-v1`,baseSearch:$(`companies:profiles:amplemarket@1`),label:`Company search`,categories:[`deprecated`],paginationType:`page_number`,hasManagedConnection:!0,allowsUserConnection:!0,lifecycle:{deprecatedOn:`2026-06-13`,replacedBy:`companies:profiles:amplemarket@2`},description:`Filter based company search.`,tags:[z.COMPANY_PROFILES],docPath:bS(oC),cost:{mode:`per_page`,credits:{default:2}},provider:`amplemarket`,defaultPayload:{search_id:oC,connector:null,config:{limit:100,page_number:1,output_fields:{company_name:{enabled:!0,alias:``},company_website_url:{enabled:!0,alias:``},company_description:{enabled:!0,alias:``},company_profile_url:{enabled:!0,alias:``},amplemarket_company_match:{enabled:!0,alias:``}},filters:{company_industries:{include:[],exclude:[]},company_names:{include:[],exclude:[]},company_profile_urls:{include:[],exclude:[]},company_types:[],company_website_urls:{include:[],exclude:[]},customer_types:[],headcount_growth_last_6_months_in_percent:{min:null,max:null},founded_year:{min:null,max:null},revenue_groups:[],investors:[],keywords:{include:[],exclude:[]},open_positions_titles:[],headcount:[],hq_locations:{include:[],exclude:[]}}}}},_C=`companies:profiles:crustdata@1`,vC=g(`company_name`),yC=g(`company_website_url`),bC=g(`company_description`),xC=g(`company_profile_url`),SC=g(`crustdata_company_match`),CC=r.object({search_id:r.literal(_C),connector:_.nullable().optional(),config:r.object({limit:I({path:`config.limit`,min:1,max:100,groupPath:`config.pagination`,required:!0,sectionKey:`pagination`,label:`Limit`,description:`Max number of search results`}),cursor:Fa({path:`config.cursor`,groupPath:`config.pagination`,inputType:`text`,label:`Cursor`,sectionKey:`pagination`,description:`Pagination cursor`}),output_fields:L(r.object({[vC.name]:M({fieldName:vC.name}),[yC.name]:M({fieldName:vC.name}),[bC.name]:M({fieldName:bC.name}),[xC.name]:M({fieldName:xC.name}),[SC.name]:M({fieldName:SC.name})})),filters:r.object({hq_locations:F({path:`config.filters.hq_locations`,sectionKey:`config.filters`,label:`HQ locations`,description:``,placeholder:Y(`location`),groupPath:`config.filters.location`,optionsDef:h(`locations`)}),crunchbase_categories:F({path:`config.filters.crunchbase_categories`,sectionKey:`config.filters`,label:`Crunchbase categories`,placeholder:Y(`crunchbase_category`),description:``,groupPath:`config.filters.categories`,optionsDef:h(`company.crunchbase_categories.crustdata`)}),crunchbase_investors:F({path:`config.filters.crunchbase_investors`,sectionKey:`config.filters`,label:`Investors to include (Crunchbase)`,description:``,placeholder:Y(`investor`),groupPath:`config.filters.investors`,optionsDef:h(`company.crunchbase_investors.crustdata`)}),tracxn_investors:F({path:`config.filters.tracxn_investors`,sectionKey:`config.filters`,label:`Investors to include (Tracxn)`,description:``,placeholder:Y(`investor`),groupPath:`config.filters.investors`,optionsDef:h(`company.tracxn_investors.crustdata`)}),company_types:j({sectionKey:`config.filters`,path:`config.filters.company_types`,optionsDef:{type:`static`,options:p(`crustdata.company_types`)},label:`Company types`,placeholder:`Public, Private, ...`,description:``,groupPath:`config.filters.categories`}),linkedin_industries:F({sectionKey:`config.filters`,path:`config.filters.linkedin_industries`,optionsDef:h(`linkedin_industries.crustdata`),label:`Industries`,description:``,placeholder:Y(`industry`),groupPath:`config.filters.industry`}),markets:F({sectionKey:`config.filters`,path:`config.filters.markets`,optionsDef:h(`company.markets.crustdata`),placeholder:`NYSE, TYO, ...`,label:`Markets`,description:``,groupPath:`config.filters.industry`}),linkedin_categories:F({sectionKey:`config.filters`,path:`config.filters.linkedin_categories`,optionsDef:h(`company.linkedin_categories.crustdata`),label:`LinkedIn category`,placeholder:`Marketing, Branding, ...`,description:``,groupPath:`config.filters.categories`}),headcount:j({path:`config.filters.headcount`,sectionKey:`config.filters`,label:`Headcount`,description:``,disableSearch:!0,placeholder:`1-10`,optionsDef:{type:`static`,options:p(`crustdata.company_size`)},groupPath:`config.filters.company_size`}),headcount_growth_last_6m_in_percent:N({path:`config.filters.headcount_growth_last_6m_in_percent`,sectionKey:`config.filters`,label:`Headcount growth over last 6 months in percent`,description:``,options:p(`crustdata.headcount_growth`),placeholder:`0-10%`,disableSearch:!0,required:!1,groupPath:`config.filters.company_size`}),revenue_in_usd:ja({path:`config.filters.revenue_in_usd`,sectionKey:`config.filters`,label:`Revenue (USD)`,description:``,legend:`1k - 10B`,min:1e3,max:1e10,groupPath:`config.filters.financials`}),last_funding_type:j({path:`config.filters.last_funding_type`,sectionKey:`config.filters`,label:`Last funding type`,placeholder:`Series A`,disableSearch:!0,optionsDef:{type:`static`,options:p(`crustdata.funding_rounds`)},description:``,groupPath:`config.filters.financials`}),last_funding_amount:ja({path:`config.filters.last_funding_amount`,sectionKey:`config.filters`,label:`Last funding amount`,legend:`1k - 10B`,min:1e3,max:1e10,description:``,groupPath:`config.filters.financials`}),number_of_followers:N({path:`config.filters.number_of_followers`,sectionKey:`config.filters`,label:`Number of LinkedIn followers`,placeholder:`1-500`,disableSearch:!0,description:``,required:!1,options:p(`crustdata.company_followers`),groupPath:`config.filters.web_presence`}),follower_growth_last_6m_in_percent:N({path:`config.filters.follower_growth_last_6m_in_percent`,sectionKey:`config.filters`,label:`LinkedIn follower growth within last 6 months`,required:!1,disableSearch:!0,placeholder:`0-10%`,description:``,options:p(`crustdata.follower_growth`),groupPath:`config.filters.web_presence`}),profile_summary_keywords:A({path:`config.filters.profile_summary_keywords`,sectionKey:`config.filters`,maxItems:50,label:`LinkedIn company description contains`,placeholder:Y(`company_profile_keyword`),description:``,groupPath:`config.filters.keywords`}),competitor_websites:A({path:`config.filters.competitor_websites`,sectionKey:`config.filters`,maxItems:50,label:`Competitor domains`,description:``,placeholder:Y(`company_domain`),groupPath:`config.filters.competitors`,suggestionsDef:h(`company_domains`,{widgets:{emoji:{char:`🌐`}}})})}).check(e=>{LS(e.value)&&e.issues.push({code:`custom`,message:`You must set at least one filter.`,input:e.value})})})}),wC={default:{input:[{fields:[]}]}},TC=class extends Q{searchId=_C;schema=CC;payload;constructor(e){super(),this.payload=this.validatePayload(e)}getRawOutputFields(){return{[vC.name]:this.catalogOutput(vC),[yC.name]:this.catalogOutput(yC),[bC.name]:this.catalogOutput(bC),[xC.name]:this.catalogOutput(xC),[SC.name]:this.catalogOutput(SC)}}getConnectionsRequirements(){return[{provider:`crustdata`,rateLimitOperation:`crustdata_company_db_search`,rateLimitRatio:1,allowManagedConnection:!0}]}getDedupConfig(){return wC}},EC=CC,DC={searchId:_C,billableOperation:`companies-profiles-crustdata-v1`,baseSearch:$(`companies:profiles:crustdata@1`),label:`Company search`,categories:[`deprecated`],paginationType:`cursor`,hasManagedConnection:!0,allowsUserConnection:!0,lifecycle:{deprecatedOn:`2026-06-13`,replacedBy:`companies:profiles:crustdata@2`},description:`Filter based company search.`,tags:[z.COMPANY_PROFILES],docPath:bS(_C),cost:{mode:`per_page`,credits:{default:2}},provider:`crustdata`,defaultPayload:{search_id:_C,connector:null,config:{limit:100,cursor:``,output_fields:{company_name:{enabled:!0,alias:``},company_website_url:{enabled:!0,alias:``},company_description:{enabled:!0,alias:``},company_profile_url:{enabled:!0,alias:``},crustdata_company_match:{enabled:!0,alias:``}},filters:{company_types:{include:[],exclude:[]},headcount_growth_last_6m_in_percent:[],last_funding_amount:{from:null,to:null},last_funding_type:{include:[],exclude:[]},linkedin_industries:{include:[],exclude:[]},linkedin_categories:{include:[],exclude:[]},crunchbase_categories:{include:[],exclude:[]},markets:{include:[],exclude:[]},revenue_in_usd:{from:null,to:null},crunchbase_investors:{include:[],exclude:[]},tracxn_investors:{include:[],exclude:[]},follower_growth_last_6m_in_percent:[],headcount:{include:[],exclude:[]},hq_locations:{include:[],exclude:[]},number_of_followers:[],profile_summary_keywords:{include:[],exclude:[]},competitor_websites:{include:[],exclude:[]}}}}},OC=`people:profiles:amplemarket@1`,kC=g(`name`),AC=g(`company_website_url`),jC=g(`profile_url`),MC=g(`job_title`),NC=g(`amplemarket_person_match`),PC=r.object({search_id:r.literal(OC),connector:_.nullable().optional(),config:r.object({limit:I({path:`config.limit`,min:1,max:100,groupPath:`config.pagination`,required:!0,label:`Limit`,sectionKey:`pagination`,description:`Max number of search results`}),page_number:I({path:`config.page_number`,groupPath:`config.pagination`,required:!1,label:`Page number`,min:1,sectionKey:`pagination`,description:``}),output_fields:L(r.object({[kC.name]:M({fieldName:kC.name}),[AC.name]:M({fieldName:AC.name}),[jC.name]:M({fieldName:jC.name}),[MC.name]:M({fieldName:MC.name}),[NC.name]:M({fieldName:NC.name})})),filters:r.object({person_names:k({label:`Full name`,path:`config.filters.person_names`,sectionKey:`config.filters`,groupPath:`config.filters.general`}),current_locations:F({path:`config.filters.current_locations`,sectionKey:`config.filters`,label:`Location`,optionsDef:h(`locations`),groupPath:`config.filters.general`}),current_job_titles:k({path:`config.filters.current_job_titles`,sectionKey:`config.filters`,label:`Title`,placeholder:Y(`title`),description:``,order:1,groupPath:`config.filters.current_employer`,suggestionsDef:h(`titles`)}),current_seniority_levels:N({path:`config.filters.current_seniority_levels`,sectionKey:`config.filters`,placeholder:Y(`seniority`),label:`Seniority`,required:!1,disableSearch:!1,options:p(`amplemarket.seniority_levels`),description:``,groupPath:`config.filters.current_employer`}),current_departments:N({path:`config.filters.current_departments`,sectionKey:`config.filters`,label:`Department`,placeholder:Y(`department`),disableSearch:!1,required:!1,options:p(`amplemarket.departments`),description:``,groupPath:`config.filters.current_employer`}),current_job_functions:N({path:`config.filters.current_job_functions`,sectionKey:`config.filters`,label:`Job function`,placeholder:Y(`job_function`),disableSearch:!1,required:!1,options:p(`amplemarket.job_functions`),description:``,groupPath:`config.filters.current_employer`}),current_employer_locations:F({path:`config.filters.current_employer_locations`,sectionKey:`config.filters`,label:`Headquarters`,optionsDef:h(`locations`),groupPath:`config.filters.current_company`,placeholder:Y(`location`)}),current_employer_names:A({path:`config.filters.current_employer_names`,sectionKey:`config.filters`,label:`Company name`,groupPath:`config.filters.current_company`,description:``,placeholder:Y(`company_name`),suggestionsDef:h(`company_names`)}),current_employer_website_urls:A({path:`config.filters.current_employer_website_urls`,sectionKey:`config.filters`,label:`Company domain`,description:``,maxItems:200,placeholder:Y(`company_domain`),groupPath:`config.filters.current_company`,suggestionsDef:h(`company_domains`,{widgets:{emoji:{char:`🌐`}}})}),current_employer_linkedin_industries:N({path:`config.filters.current_employer_linkedin_industries`,sectionKey:`config.filters`,label:`Industry`,disableSearch:!1,groupPath:`config.filters.current_company`,description:``,placeholder:Y(`industry`),required:!1,options:p(`linkedin.industries`)}),current_employer_estimated_revenue:N({path:`config.filters.current_employer_estimated_revenue`,sectionKey:`config.filters`,label:`Estimated revenue`,disableSearch:!1,required:!1,groupPath:`config.filters.current_company`,description:``,options:p(`amplemarket.company_revenue`)}),current_employer_founded_year:ka({path:`config.filters.current_employer_founded_year`,sectionKey:`config.filters`,label:`Founded year`,groupPath:`config.filters.current_company`,min:0,max:2040,required:!1,description:``}),current_employer_investors:k({path:`config.filters.current_employer_investors`,sectionKey:`config.filters`,label:`Employer investors`,groupPath:`config.filters.current_company`,placeholder:Y(`investor`),description:``}),current_employer_open_positions_titles:k({path:`config.filters.current_employer_open_positions_titles`,sectionKey:`config.filters`,label:`Open positions`,groupPath:`config.filters.current_company`,description:``,placeholder:Y(`title`),suggestionsDef:h(`titles`)}),school_names:F({path:`config.filters.school_names`,sectionKey:`config.filters`,label:`School names`,description:``,placeholder:Y(`school`),groupPath:`config.filters.education`,optionsDef:h(`schools`)})}).check(e=>{LS(e.value)&&e.issues.push({code:`custom`,message:`You must set at least one filter.`,input:e.value})})})}),FC={default:{input:[{fields:[]}]}},IC=class extends Q{searchId=OC;schema=PC;payload;constructor(e){super(),this.payload=this.validatePayload(e)}getRawOutputFields(){return{[kC.name]:this.catalogOutput(kC),[AC.name]:this.catalogOutput(AC),[jC.name]:this.catalogOutput(jC),[MC.name]:this.catalogOutput(MC),[NC.name]:this.catalogOutput(NC)}}getConnectionsRequirements(){return[{provider:`amplemarket`,rateLimitOperation:`amplemarket_people_search`,rateLimitRatio:1,allowManagedConnection:!0}]}getDedupConfig(){return FC}},LC=PC,RC={searchId:OC,billableOperation:`people-profiles-amplemarket-v1`,baseSearch:$(`people:profiles:amplemarket@1`),paginationType:`page_number`,label:`People search`,categories:[`deprecated`],hasManagedConnection:!0,allowsUserConnection:!0,lifecycle:{deprecatedOn:`2026-06-13`,replacedBy:`people:profiles:amplemarket@2`},description:`Filter-based people search.`,tags:[z.PEOPLE_PROFILES],docPath:bS(OC),cost:{mode:`per_page`,credits:{default:3},info:`1 page = 100 records; 200 results = 2 pages`},provider:`amplemarket`,defaultPayload:{search_id:OC,connector:null,config:{limit:50,page_number:1,output_fields:{name:{enabled:!0,alias:``},job_title:{enabled:!0,alias:``},profile_url:{enabled:!0,alias:``},company_website_url:{enabled:!0,alias:``},amplemarket_person_match:{enabled:!0,alias:``}},filters:{current_employer_names:{include:[],exclude:[]},current_departments:[],current_employer_locations:{include:[],exclude:[]},person_names:[],current_employer_founded_year:{min:null,max:null},current_employer_estimated_revenue:[],current_employer_investors:[],current_employer_open_positions_titles:[],current_job_functions:[],current_locations:{include:[],exclude:[]},current_employer_linkedin_industries:[],current_employer_website_urls:{include:[],exclude:[]},current_seniority_levels:[],school_names:{include:[],exclude:[]},current_job_titles:[]}}}},zC=`people:profiles:crustdata@1`,BC=g(`name`),VC=g(`company_website_url`),HC=g(`profile_url`),UC=g(`job_title`),WC=g(`crustdata_person_match`),GC=r.object({search_id:r.literal(zC),connector:_.nullable().optional(),config:r.object({limit:I({path:`config.limit`,min:1,max:100,groupPath:`config.pagination`,required:!0,sectionKey:`pagination`,label:`Limit`,description:`Max number of search results`}),cursor:Fa({path:`config.cursor`,groupPath:`config.pagination`,inputType:`text`,label:`Cursor`,sectionKey:`pagination`,description:`Pagination cursor`}),output_fields:L(r.object({[BC.name]:M({fieldName:BC.name}),[VC.name]:M({fieldName:VC.name}),[HC.name]:M({fieldName:HC.name}),[UC.name]:M({fieldName:UC.name}),[WC.name]:M({fieldName:WC.name})})),filters:r.object({locations:F({path:`config.filters.locations`,sectionKey:`config.filters`,label:`Location`,placeholder:Y(`location`),optionsDef:h(`locations`),groupPath:`config.filters.general`}),current_job_titles:A({path:`config.filters.current_job_titles`,sectionKey:`config.filters`,label:`Title`,description:``,placeholder:Y(`title`),order:1,groupPath:`config.filters.current_employer`,suggestionsDef:h(`titles`)}),current_employers:A({path:`config.filters.current_employers`,sectionKey:`config.filters`,label:`Company name`,description:``,placeholder:Y(`company_name`),maxItems:200,groupPath:`config.filters.current_employer`,suggestionsDef:h(`company_names`,{widgets:{emoji:{char:`🏷️`}}})}),current_employers_website_urls:A({path:`config.filters.current_employers_website_urls`,sectionKey:`config.filters`,label:`Company domain`,placeholder:Y(`company_domain`),description:``,maxItems:200,groupPath:`config.filters.current_employer`,suggestionsDef:h(`company_domains`,{widgets:{emoji:{char:`🌐`}}})}),current_employers_linkedin_industries:F({path:`config.filters.current_employers_linkedin_industries`,sectionKey:`config.filters`,label:`Industry`,groupPath:`config.filters.current_employer`,placeholder:Y(`industry`),description:``,optionsDef:h(`linkedin_industries.crustdata`,{limit:300})}),years_at_current_company:N({path:`config.filters.years_at_current_company`,sectionKey:`config.filters`,label:`Years at current company`,placeholder:`1 to 2 years`,disableSearch:!1,required:!1,groupPath:`config.filters.current_employer`,description:``,options:p(`crustdata.years_of_experience`)}),previous_employers_website_urls:A({path:`config.filters.previous_employers_website_urls`,sectionKey:`config.filters`,label:`Previous employer domain`,description:``,placeholder:Y(`company_domain`),maxItems:200,groupPath:`config.filters.experience`,suggestionsDef:h(`company_domains`,{widgets:{emoji:{char:`🌐`}}})}),previous_seniority_levels:j({path:`config.filters.previous_seniority_levels`,sectionKey:`config.filters`,label:`Previous seniority`,placeholder:Y(`seniority`),disableSearch:!0,optionsDef:m(`crustdata.person_seniority`),description:``,groupPath:`config.filters.experience`}),previous_employers:A({path:`config.filters.previous_employers`,sectionKey:`config.filters`,label:`Previous employer`,description:``,placeholder:Y(`company_name`),maxItems:200,groupPath:`config.filters.experience`,suggestionsDef:h(`company_names`,{widgets:{emoji:{char:`🏷️`}}})}),previous_job_titles:A({path:`config.filters.previous_job_titles`,sectionKey:`config.filters`,label:`Previous title`,description:``,placeholder:Y(`title`),groupPath:`config.filters.experience`,suggestionsDef:h(`titles`)}),previous_employers_linkedin_industries:F({path:`config.filters.previous_employers_linkedin_industries`,sectionKey:`config.filters`,label:`Previous employer industries`,placeholder:Y(`industry`),groupPath:`config.filters.experience`,description:``,optionsDef:h(`linkedin_industries.crustdata`,{limit:300})}),profile_headline_keywords:A({path:`config.filters.profile_headline_keywords`,sectionKey:`config.filters`,label:`Headline contains keywords`,maxItems:100,groupPath:`config.filters.keywords`,placeholder:Y(`headline_keywords`)}),profile_summary_keywords:A({path:`config.filters.profile_summary_keywords`,sectionKey:`config.filters`,label:`Profile about section contains keywords`,maxItems:100,groupPath:`config.filters.keywords`,placeholder:Y(`profile_keywords`)}),profile_languages:j({path:`config.filters.profile_languages`,sectionKey:`config.filters`,label:`Profile language`,placeholder:Y(`languages`),optionsDef:m(`crustdata.person_profile_languages`),groupPath:`config.filters.general`}),languages:j({path:`config.filters.languages`,sectionKey:`config.filters`,label:`Spoken language`,placeholder:Y(`languages_1`),optionsDef:m(`crustdata.person_profile_languages`),groupPath:`config.filters.general`}),skills:F({path:`config.filters.skills`,sectionKey:`config.filters`,label:`Skills`,description:``,placeholder:Y(`skills`),groupPath:`config.filters.skills`,optionsDef:h(`skills`)}),years_of_experience:N({path:`config.filters.years_of_experience`,sectionKey:`config.filters`,label:`Years of experience`,placeholder:`1 to 2 years`,disableSearch:!0,description:``,required:!1,options:p(`crustdata.years_of_experience`),groupPath:`config.filters.experience`}),current_seniority_levels:j({path:`config.filters.current_seniority_levels`,sectionKey:`config.filters`,disableSearch:!0,label:`Seniority`,placeholder:Y(`seniority`),optionsDef:m(`crustdata.person_seniority`),description:``,groupPath:`config.filters.experience`}),certifications:A({path:`config.filters.certifications`,sectionKey:`config.filters`,label:`Certifications`,groupPath:`config.filters.certifications_honors`,placeholder:Y(`certification`),description:``}),honors:A({path:`config.filters.honors`,sectionKey:`config.filters`,label:`Honors`,groupPath:`config.filters.certifications_honors`,placeholder:Y(`honor`),description:``}),recently_changed_jobs:Pa({path:`config.filters.recently_changed_jobs`,sectionKey:`config.filters`,label:`Recently changed jobs`,description:``,defaultValue:null,groupPath:`config.filters.activities`}),fields_of_study:F({path:`config.filters.fields_of_study`,sectionKey:`config.filters`,label:`Fields of study`,placeholder:Y(`field_of_study`),description:``,groupPath:`config.filters.education`,optionsDef:h(`person.education_field_of_study.crustdata`)}),degree_names:F({path:`config.filters.degree_names`,sectionKey:`config.filters`,label:`Degree names`,placeholder:Y(`degree_name`),description:``,groupPath:`config.filters.education`,optionsDef:h(`person.education_degree.crustdata`)}),school_names:F({path:`config.filters.school_names`,sectionKey:`config.filters`,label:`School names`,description:``,placeholder:Y(`school`),groupPath:`config.filters.education`,optionsDef:h(`schools`)}),current_school_names:F({path:`config.filters.current_school_names`,sectionKey:`config.filters`,label:`Currently enrolled at`,description:``,placeholder:Y(`school`),groupPath:`config.filters.education`,optionsDef:h(`schools`)}),extracurricular_activities:A({path:`config.filters.extracurricular_activities`,sectionKey:`config.filters`,label:`Extracurricular activities`,description:``,placeholder:Y(`extracurricular`),groupPath:`config.filters.education`,suggestionsDef:h(`person.education_activities.crustdata`)})}).check(e=>{LS(e.value)&&e.issues.push({code:`custom`,message:`You must set at least one filter.`,input:e.value})})})}),KC={default:{input:[{fields:[]}]}},qC=class extends Q{searchId=zC;schema=GC;payload;constructor(e){super(),this.payload=this.validatePayload(e)}getRawOutputFields(){return{[BC.name]:this.catalogOutput(BC),[VC.name]:this.catalogOutput(VC),[HC.name]:this.catalogOutput(HC),[UC.name]:this.catalogOutput(UC),[WC.name]:this.catalogOutput(WC)}}getConnectionsRequirements(){return[{provider:`crustdata`,rateLimitOperation:`crustdata_people_db_search`,rateLimitRatio:1,allowManagedConnection:!0}]}getDedupConfig(){return KC}},JC=GC,YC={searchId:zC,billableOperation:`people-profiles-crustdata-v1`,baseSearch:$(`people:profiles:crustdata@1`),paginationType:`cursor`,label:`People search`,categories:[`deprecated`],hasManagedConnection:!0,allowsUserConnection:!0,lifecycle:{deprecatedOn:`2026-06-13`,replacedBy:`people:profiles:crustdata@2`},description:`Filter-based people search.`,tags:[z.PEOPLE_PROFILES],docPath:bS(zC),cost:{mode:`per_page`,credits:{default:5},info:`1 page = 100 records; 200 results = 2 pages`},provider:`crustdata`,defaultPayload:{search_id:zC,connector:null,config:{limit:100,cursor:``,output_fields:{name:{enabled:!0,alias:``},job_title:{enabled:!0,alias:``},profile_url:{enabled:!0,alias:``},company_website_url:{enabled:!0,alias:``},crustdata_person_match:{enabled:!0,alias:``}},filters:{profile_headline_keywords:{include:[],exclude:[]},languages:{include:[],exclude:[]},profile_summary_keywords:{include:[],exclude:[]},previous_job_titles:{include:[],exclude:[]},current_employers:{include:[],exclude:[]},current_school_names:{include:[],exclude:[]},years_at_current_company:[],certifications:{include:[],exclude:[]},honors:{include:[],exclude:[]},current_employers_linkedin_industries:{include:[],exclude:[]},current_employers_website_urls:{include:[],exclude:[]},previous_employers_website_urls:{include:[],exclude:[]},current_seniority_levels:{include:[],exclude:[]},previous_seniority_levels:{include:[],exclude:[]},degree_names:{include:[],exclude:[]},locations:{include:[],exclude:[]},profile_languages:{include:[],exclude:[]},recently_changed_jobs:null,extracurricular_activities:{include:[],exclude:[]},school_names:{include:[],exclude:[]},fields_of_study:{include:[],exclude:[]},previous_employers:{include:[],exclude:[]},current_job_titles:{include:[],exclude:[]},skills:{include:[],exclude:[]},years_of_experience:[],previous_employers_linkedin_industries:{include:[],exclude:[]}}}}},XC=`people:entitysearch:parallel@1`,ZC=g(`name`),QC=g(`job_title`),$C=g(`profile_url`),ew=g(`parallel_person_entity_match`),tw=r.object({search_id:r.literal(XC),connector:sa(),config:r.object({objective:Ia({path:`config.objective`,sectionKey:`general`,groupPath:`config.general`,label:`Objective`,rows:4,minLength:10,placeholder:`Heads of Engineering at Series B fintech companies in the US`,description:`Plain-text natural-language description of the people to find.`}),limit:I({path:`config.limit`,min:5,max:1e3,groupPath:`config.pagination`,required:!0,sectionKey:`pagination`,label:`Limit`,description:`Max number of entities to return (5–1000).`}).default(100),output_fields:L(r.object({[ZC.name]:M({fieldName:ZC.name}),[QC.name]:M({fieldName:QC.name}),[$C.name]:M({fieldName:$C.name}),[ew.name]:M({fieldName:ew.name})}))})}),nw={default:{input:[{fields:[]}]}},rw=class extends Q{searchId=XC;schema=tw;payload;constructor(e){super(),this.payload=this.validatePayload(e)}getRawOutputFields(){return{[ZC.name]:this.catalogOutput(ZC),[QC.name]:this.catalogOutput(QC),[$C.name]:this.catalogOutput($C),[ew.name]:this.catalogOutput(ew)}}getConnectionsRequirements(){return[{provider:`parallel`,rateLimitOperation:`parallel_entity_search`,rateLimitRatio:1,allowManagedConnection:!0}]}getDedupConfig(){return nw}},iw=tw,aw={searchId:XC,billableOperation:`people-entitysearch-parallel-v1`,baseSearch:$(XC),label:`People search (AI)`,categories:[`people`],paginationType:`page_number`,hasManagedConnection:!0,allowsUserConnection:!0,lifecycle:null,description:`Natural-language people search powered by Parallel Entity Search.`,tags:[z.PEOPLE_PROFILES],docPath:bS(XC),cost:{mode:`per_page`,credits:{default:.5},info:`1 page = 100 results; billed per 100 results returned (e.g. 100 results = 1 page, 1,000 results = 10 pages). A search returns up to your selected limit in a single request.`},provider:`parallel`,defaultPayload:{search_id:XC,connector:null,config:{objective:``,limit:100,output_fields:{name:{enabled:!0,alias:``},job_title:{enabled:!0,alias:``},profile_url:{enabled:!0,alias:``},parallel_person_entity_match:{enabled:!1,alias:``}}}}},ow=`people:profiles:amplemarket@2`,sw=g(`name`),cw=g(`company_domain`),lw=g(`profile_url`),uw=g(`job_title`),dw=g(`amplemarket_person_match`),fw=r.object({search_id:r.literal(ow),connector:sa(),config:r.object({limit:I({path:`config.limit`,min:1,max:100,groupPath:`config.pagination`,required:!0,label:`Limit`,sectionKey:`pagination`,description:`Max number of search results`}).default(50),page_number:I({path:`config.page_number`,groupPath:`config.pagination`,required:!1,label:`Page number`,min:1,sectionKey:`pagination`,description:``}),output_fields:L(r.object({[sw.name]:M({fieldName:sw.name}),[cw.name]:M({fieldName:cw.name}),[lw.name]:M({fieldName:lw.name}),[uw.name]:M({fieldName:uw.name}),[dw.name]:M({fieldName:dw.name})})),filters:r.object({person_names:k({label:`Full name`,path:`config.filters.person_names`,sectionKey:`config.filters`,groupPath:`config.filters.general`}),current_locations:F({path:`config.filters.current_locations`,sectionKey:`config.filters`,label:`Location`,optionsDef:h(`locations`),groupPath:`config.filters.general`}),current_job_titles:k({path:`config.filters.current_job_titles`,sectionKey:`config.filters`,label:`Title`,placeholder:Y(`title`),description:``,order:1,groupPath:`config.filters.current_employer`,suggestionsDef:h(`titles`)}),current_seniority_levels:N({path:`config.filters.current_seniority_levels`,sectionKey:`config.filters`,placeholder:Y(`seniority`),label:`Seniority`,required:!1,disableSearch:!1,options:p(`amplemarket.seniority_levels`),description:``,groupPath:`config.filters.current_employer`}),current_departments:N({path:`config.filters.current_departments`,sectionKey:`config.filters`,label:`Department`,placeholder:Y(`department`),disableSearch:!1,required:!1,options:p(`amplemarket.departments`),description:``,groupPath:`config.filters.current_employer`}),current_job_functions:N({path:`config.filters.current_job_functions`,sectionKey:`config.filters`,label:`Job function`,placeholder:Y(`job_function`),disableSearch:!1,required:!1,options:p(`amplemarket.job_functions`),description:``,groupPath:`config.filters.current_employer`}),current_employer_locations:F({path:`config.filters.current_employer_locations`,sectionKey:`config.filters`,label:`Headquarters`,optionsDef:h(`locations`),groupPath:`config.filters.current_company`,placeholder:Y(`location`)}),current_employer_names:A({path:`config.filters.current_employer_names`,sectionKey:`config.filters`,label:`Company name`,groupPath:`config.filters.current_company`,description:``,placeholder:Y(`company_name`),suggestionsDef:h(`company_names`)}),current_employer_domains:A({path:`config.filters.current_employer_domains`,sectionKey:`config.filters`,label:`Company domain`,description:``,maxItems:200,placeholder:Y(`company_domain`),groupPath:`config.filters.current_company`,suggestionsDef:h(`company_domains`,{widgets:e=>({logo_url:{url:MS(e.value)}})})}),current_employer_linkedin_industries:N({path:`config.filters.current_employer_linkedin_industries`,sectionKey:`config.filters`,label:`Industry`,disableSearch:!1,groupPath:`config.filters.current_company`,description:``,placeholder:Y(`industry`),required:!1,options:p(`linkedin.industries`)}),current_employer_estimated_revenue:N({path:`config.filters.current_employer_estimated_revenue`,sectionKey:`config.filters`,label:`Estimated revenue`,disableSearch:!1,required:!1,groupPath:`config.filters.current_company`,description:``,options:p(`amplemarket.company_revenue`)}),current_employer_founded_year:ka({path:`config.filters.current_employer_founded_year`,sectionKey:`config.filters`,label:`Founded year`,groupPath:`config.filters.current_company`,min:0,max:2040,required:!1,description:``}),current_employer_investors:k({path:`config.filters.current_employer_investors`,sectionKey:`config.filters`,label:`Employer investors`,groupPath:`config.filters.current_company`,placeholder:Y(`investor`),description:``}),current_employer_open_position_titles:k({path:`config.filters.current_employer_open_position_titles`,sectionKey:`config.filters`,label:`Open positions`,groupPath:`config.filters.current_company`,description:``,placeholder:Y(`title`),suggestionsDef:h(`titles`)}),school_names:F({path:`config.filters.school_names`,sectionKey:`config.filters`,label:`School names`,description:``,placeholder:Y(`school`),groupPath:`config.filters.education`,optionsDef:h(`schools`)})}).check(e=>{LS(e.value)&&e.issues.push({code:`custom`,message:`You must set at least one filter.`,input:e.value})})})}),pw={default:{input:[{fields:[]}]}},mw=class extends Q{searchId=ow;schema=fw;payload;constructor(e){super(),this.payload=this.validatePayload(e)}getRawOutputFields(){return{[sw.name]:this.catalogOutput(sw),[cw.name]:this.catalogOutput(cw),[lw.name]:this.catalogOutput(lw),[uw.name]:this.catalogOutput(uw),[dw.name]:this.catalogOutput(dw)}}getConnectionsRequirements(){return[{provider:`amplemarket`,rateLimitOperation:`amplemarket_people_search`,rateLimitRatio:1,allowManagedConnection:!0}]}getDedupConfig(){return pw}},hw=fw,gw={searchId:ow,billableOperation:`people-profiles-amplemarket-v2`,baseSearch:$(`people:profiles:amplemarket@2`),paginationType:`page_number`,label:`People search`,categories:[`people`],hasManagedConnection:!0,allowsUserConnection:!0,lifecycle:null,description:`Filter-based people search.`,tags:[z.PEOPLE_PROFILES],docPath:bS(ow),cost:{mode:`per_page`,credits:{default:3},info:`1 page = 100 records; 200 results = 2 pages`},provider:`amplemarket`,defaultPayload:{search_id:ow,connector:null,config:{limit:50,page_number:1,output_fields:{name:{enabled:!0,alias:``},job_title:{enabled:!0,alias:``},profile_url:{enabled:!0,alias:``},company_domain:{enabled:!0,alias:``},amplemarket_person_match:{enabled:!0,alias:``}},filters:{current_employer_names:{include:[],exclude:[]},current_departments:[],current_employer_locations:{include:[],exclude:[]},person_names:[],current_employer_founded_year:{min:null,max:null},current_employer_estimated_revenue:[],current_employer_investors:[],current_employer_open_position_titles:[],current_job_functions:[],current_locations:{include:[],exclude:[]},current_employer_linkedin_industries:[],current_employer_domains:{include:[],exclude:[]},current_seniority_levels:[],school_names:{include:[],exclude:[]},current_job_titles:[]}}}},_w=`people:profiles:crustdata@2`,vw=g(`name`),yw=g(`company_domain`),bw=g(`profile_url`),xw=g(`job_title`),Sw=g(`crustdata_person_match`),Cw=r.object({search_id:r.literal(_w),connector:sa(),config:r.object({limit:I({path:`config.limit`,min:1,max:100,groupPath:`config.pagination`,required:!0,sectionKey:`pagination`,label:`Limit`,description:`Max number of search results`}).default(100),cursor:Fa({path:`config.cursor`,groupPath:`config.pagination`,inputType:`text`,label:`Cursor`,sectionKey:`pagination`,description:`Pagination cursor`}),output_fields:L(r.object({[vw.name]:M({fieldName:vw.name}),[yw.name]:M({fieldName:yw.name}),[bw.name]:M({fieldName:bw.name}),[xw.name]:M({fieldName:xw.name}),[Sw.name]:M({fieldName:Sw.name})})),filters:r.object({locations:F({path:`config.filters.locations`,sectionKey:`config.filters`,label:`Location`,placeholder:Y(`location`),optionsDef:h(`locations`),groupPath:`config.filters.general`}),current_job_titles:A({path:`config.filters.current_job_titles`,sectionKey:`config.filters`,label:`Title`,description:``,placeholder:Y(`title`),order:1,groupPath:`config.filters.current_employer`,suggestionsDef:h(`titles`)}),current_employer_names:A({path:`config.filters.current_employer_names`,sectionKey:`config.filters`,label:`Company name`,description:``,placeholder:Y(`company_name`),maxItems:200,groupPath:`config.filters.current_employer`,suggestionsDef:h(`company_names`,{widgets:{emoji:{char:`🏷️`}}})}),current_employer_domains:A({path:`config.filters.current_employer_domains`,sectionKey:`config.filters`,label:`Company domain`,placeholder:Y(`company_domain`),description:``,maxItems:200,groupPath:`config.filters.current_employer`,suggestionsDef:h(`company_domains`,{widgets:e=>({logo_url:{url:MS(e.value)}})})}),current_employer_industries:F({path:`config.filters.current_employer_industries`,sectionKey:`config.filters`,label:`Industry`,groupPath:`config.filters.current_employer`,placeholder:Y(`industry`),description:``,optionsDef:h(`linkedin_industries.crustdata`,{limit:300})}),years_at_current_company:N({path:`config.filters.years_at_current_company`,sectionKey:`config.filters`,label:`Years at current company`,placeholder:`1 to 2 years`,disableSearch:!1,required:!1,groupPath:`config.filters.current_employer`,description:``,options:p(`crustdata.years_of_experience`)}),previous_employer_domains:A({path:`config.filters.previous_employer_domains`,sectionKey:`config.filters`,label:`Previous employer domain`,description:``,placeholder:Y(`company_domain`),maxItems:200,groupPath:`config.filters.experience`,suggestionsDef:h(`company_domains`,{widgets:e=>({logo_url:{url:MS(e.value)}})})}),previous_seniority_levels:j({path:`config.filters.previous_seniority_levels`,sectionKey:`config.filters`,label:`Previous seniority`,placeholder:Y(`seniority`),disableSearch:!0,optionsDef:m(`crustdata.person_seniority`),description:``,groupPath:`config.filters.experience`}),previous_employer_names:A({path:`config.filters.previous_employer_names`,sectionKey:`config.filters`,label:`Previous employer`,description:``,placeholder:Y(`company_name`),maxItems:200,groupPath:`config.filters.experience`,suggestionsDef:h(`company_names`,{widgets:{emoji:{char:`🏷️`}}})}),previous_job_titles:A({path:`config.filters.previous_job_titles`,sectionKey:`config.filters`,label:`Previous title`,description:``,placeholder:Y(`title`),groupPath:`config.filters.experience`,suggestionsDef:h(`titles`)}),previous_employer_industries:F({path:`config.filters.previous_employer_industries`,sectionKey:`config.filters`,label:`Previous employer industries`,placeholder:Y(`industry`),groupPath:`config.filters.experience`,description:``,optionsDef:h(`linkedin_industries.crustdata`,{limit:300})}),profile_headline_keywords:A({path:`config.filters.profile_headline_keywords`,sectionKey:`config.filters`,label:`Headline contains keywords`,maxItems:100,groupPath:`config.filters.keywords`,placeholder:Y(`headline_keywords`)}),profile_summary_keywords:A({path:`config.filters.profile_summary_keywords`,sectionKey:`config.filters`,label:`Profile about section contains keywords`,maxItems:100,groupPath:`config.filters.keywords`,placeholder:Y(`profile_keywords`)}),profile_languages:j({path:`config.filters.profile_languages`,sectionKey:`config.filters`,label:`Profile language`,placeholder:Y(`languages`),optionsDef:m(`crustdata.person_profile_languages`),groupPath:`config.filters.general`}),languages:j({path:`config.filters.languages`,sectionKey:`config.filters`,label:`Spoken language`,placeholder:Y(`languages_1`),optionsDef:m(`crustdata.person_profile_languages`),groupPath:`config.filters.general`}),skills:F({path:`config.filters.skills`,sectionKey:`config.filters`,label:`Skills`,description:``,placeholder:Y(`skills`),groupPath:`config.filters.skills`,optionsDef:h(`skills`)}),years_of_experience:N({path:`config.filters.years_of_experience`,sectionKey:`config.filters`,label:`Years of experience`,placeholder:`1 to 2 years`,disableSearch:!0,description:``,required:!1,options:p(`crustdata.years_of_experience`),groupPath:`config.filters.experience`}),current_seniority_levels:j({path:`config.filters.current_seniority_levels`,sectionKey:`config.filters`,disableSearch:!0,label:`Seniority`,placeholder:Y(`seniority`),optionsDef:m(`crustdata.person_seniority`),description:``,groupPath:`config.filters.experience`}),certifications:A({path:`config.filters.certifications`,sectionKey:`config.filters`,label:`Certifications`,groupPath:`config.filters.certifications_honors`,placeholder:Y(`certification`),description:``}),honors:A({path:`config.filters.honors`,sectionKey:`config.filters`,label:`Honors`,groupPath:`config.filters.certifications_honors`,placeholder:Y(`honor`),description:``}),recently_changed_jobs:Pa({path:`config.filters.recently_changed_jobs`,sectionKey:`config.filters`,label:`Recently changed jobs`,description:``,defaultValue:null,groupPath:`config.filters.activities`}),fields_of_study:F({path:`config.filters.fields_of_study`,sectionKey:`config.filters`,label:`Fields of study`,placeholder:Y(`field_of_study`),description:``,groupPath:`config.filters.education`,optionsDef:h(`person.education_field_of_study.crustdata`)}),degree_names:F({path:`config.filters.degree_names`,sectionKey:`config.filters`,label:`Degree names`,placeholder:Y(`degree_name`),description:``,groupPath:`config.filters.education`,optionsDef:h(`person.education_degree.crustdata`)}),school_names:F({path:`config.filters.school_names`,sectionKey:`config.filters`,label:`School names`,description:``,placeholder:Y(`school`),groupPath:`config.filters.education`,optionsDef:h(`schools`)}),current_school_names:F({path:`config.filters.current_school_names`,sectionKey:`config.filters`,label:`Currently enrolled at`,description:``,placeholder:Y(`school`),groupPath:`config.filters.education`,optionsDef:h(`schools`)}),extracurricular_activities:A({path:`config.filters.extracurricular_activities`,sectionKey:`config.filters`,label:`Extracurricular activities`,description:``,placeholder:Y(`extracurricular`),groupPath:`config.filters.education`,suggestionsDef:h(`person.education_activities.crustdata`)})}).check(e=>{LS(e.value)&&e.issues.push({code:`custom`,message:`You must set at least one filter.`,input:e.value})})})}),ww={default:{input:[{fields:[]}]}},Tw=class extends Q{searchId=_w;schema=Cw;payload;constructor(e){super(),this.payload=this.validatePayload(e)}getRawOutputFields(){return{[vw.name]:this.catalogOutput(vw),[yw.name]:this.catalogOutput(yw),[bw.name]:this.catalogOutput(bw),[xw.name]:this.catalogOutput(xw),[Sw.name]:this.catalogOutput(Sw)}}getConnectionsRequirements(){return[{provider:`crustdata`,rateLimitOperation:`crustdata_people_db_search`,rateLimitRatio:1,allowManagedConnection:!0}]}getDedupConfig(){return ww}},Ew=Cw,Dw={searchId:_w,billableOperation:`people-profiles-crustdata-v2`,baseSearch:$(`people:profiles:crustdata@2`),paginationType:`cursor`,label:`People search`,categories:[`people`],hasManagedConnection:!0,allowsUserConnection:!0,lifecycle:null,description:`Filter-based people search.`,tags:[z.PEOPLE_PROFILES],docPath:bS(_w),cost:{mode:`per_page`,credits:{default:5},info:`1 page = 100 records; 200 results = 2 pages`},provider:`crustdata`,defaultPayload:{search_id:_w,connector:null,config:{limit:100,cursor:``,output_fields:{name:{enabled:!0,alias:``},job_title:{enabled:!0,alias:``},profile_url:{enabled:!0,alias:``},company_domain:{enabled:!0,alias:``},crustdata_person_match:{enabled:!0,alias:``}},filters:{profile_headline_keywords:{include:[],exclude:[]},languages:{include:[],exclude:[]},profile_summary_keywords:{include:[],exclude:[]},previous_job_titles:{include:[],exclude:[]},current_employer_names:{include:[],exclude:[]},current_school_names:{include:[],exclude:[]},years_at_current_company:[],certifications:{include:[],exclude:[]},honors:{include:[],exclude:[]},current_employer_industries:{include:[],exclude:[]},current_employer_domains:{include:[],exclude:[]},previous_employer_domains:{include:[],exclude:[]},current_seniority_levels:{include:[],exclude:[]},previous_seniority_levels:{include:[],exclude:[]},degree_names:{include:[],exclude:[]},locations:{include:[],exclude:[]},profile_languages:{include:[],exclude:[]},recently_changed_jobs:null,extracurricular_activities:{include:[],exclude:[]},school_names:{include:[],exclude:[]},fields_of_study:{include:[],exclude:[]},previous_employer_names:{include:[],exclude:[]},current_job_titles:{include:[],exclude:[]},skills:{include:[],exclude:[]},years_of_experience:[],previous_employer_industries:{include:[],exclude:[]}}}}},Ow=`people:eventguests:luma@1`,kw=g(`name`),Aw=g(`email`),jw=g(`luma_id`),Mw=g(`registered_at`),Nw=g(`luma_event_guest_match`),Pw=[{label:`Sample Meetup β€” Berlin`,value:`evt-sandbox-1`},{label:`Sample Conference β€” SF`,value:`evt-sandbox-2`}],Fw={requires:{connection:`luma`},options:async({query:e,secret:t,environment:n})=>{if(n===`sandbox`)return Pw;if(!t)throw Error(`A Luma connection is required to list events.`);let r=await fetch(`https://public-api.luma.com/v1/calendar/list-events`,{headers:{accept:`application/json`,"x-luma-api-key":t}});if(!r.ok){let e=await r.text();throw Error(`Failed to list Luma events: ${e}`)}let i=((await r.json()).entries||[]).filter(e=>!!e?.id).map(e=>({label:e.name||e.id,value:e.id}));return e?i.filter(t=>t.label.toLowerCase().includes(e.toLowerCase())):i}},Iw=r.object({search_id:r.literal(Ow),connector:oa(),config:r.object({limit:I({path:`config.limit`,min:1,max:100,groupPath:`config.pagination`,required:!0,sectionKey:`pagination`,label:`Limit`,description:`Max number of guests per page`}).default(100),cursor:Fa({path:`config.cursor`,groupPath:`config.pagination`,inputType:`text`,label:`Cursor`,sectionKey:`pagination`,description:`Pagination cursor`}),output_fields:L(r.object({[kw.name]:M({fieldName:kw.name}),[Aw.name]:M({fieldName:Aw.name}),[jw.name]:M({fieldName:jw.name}),[Mw.name]:M({fieldName:Mw.name}),[Nw.name]:M({fieldName:Nw.name})})),filters:r.object({event_id:Ra({path:`config.filters.event_id`,sectionKey:`config.filters`,groupPath:`config.filters.event`,label:`Event`,required:!0,info:`Pick one of your Luma events; guests of this event are returned.`,enabledIf:Sn(`luma`),optionsDef:Fw}),approval_status:La({path:`config.filters.approval_status`,sectionKey:`config.filters`,groupPath:`config.filters.event`,label:`Approval status`,description:`Only return guests with this approval status.`,required:!1,options:[{value:`approved`,label:`Approved`},{value:`pending_approval`,label:`Pending approval`},{value:`declined`,label:`Declined`},{value:`waitlist`,label:`Waitlist`},{value:`invited`,label:`Invited`}]})})})}),Lw={default:{input:[{fields:[{outputField:`luma_id`}]}]}},Rw=class extends Q{searchId=Ow;schema=Iw;payload;constructor(e){super(),this.payload=this.validatePayload(e)}getRawOutputFields(){return{[kw.name]:this.catalogOutput(kw),[Aw.name]:this.catalogOutput(Aw),[jw.name]:this.catalogOutput(jw),[Mw.name]:this.catalogOutput(Mw),[Nw.name]:this.catalogOutput(Nw)}}getConnectionsRequirements(){return[{provider:`luma`,rateLimitOperation:`luma_get_guests`,rateLimitRatio:1,allowManagedConnection:!1}]}getDedupConfig(){return Lw}},zw=Iw,Bw={searchId:Ow,billableOperation:`people-eventguests-luma-v1`,baseSearch:$(Ow),paginationType:`cursor`,label:`List event guests`,categories:[`people`],hasManagedConnection:!1,allowsUserConnection:!0,lifecycle:null,description:`Fetch all guests of a Luma event using your own Luma API key.`,tags:[z.PEOPLE_PROFILES,z.EVENTS,z.NEW],docPath:bS(Ow),cost:{mode:`per_page`,credits:{default:1},info:`1 page = up to 100 guests.`},provider:`luma`,defaultPayload:{search_id:Ow,connector:{strategy:`first`,connections:[]},config:{limit:100,cursor:``,output_fields:{name:{enabled:!0,alias:``},email:{enabled:!0,alias:``},luma_id:{enabled:!0,alias:``},registered_at:{enabled:!0,alias:``},luma_event_guest_match:{enabled:!0,alias:``}},filters:{event_id:``,approval_status:``}}}},Vw={"people:profiles:crustdata@1":qC,"people:profiles:crustdata@2":Tw,"companies:profiles:crustdata@1":TC,"companies:profiles:crustdata@2":rC,"people:profiles:amplemarket@1":IC,"people:profiles:amplemarket@2":mw,"companies:profiles:amplemarket@1":mC,"companies:profiles:amplemarket@2":KS,"companies:entitysearch:parallel@1":kS,"people:entitysearch:parallel@1":rw,"people:eventguests:luma@1":Rw},Hw={"people:profiles:crustdata@1":JC,"people:profiles:crustdata@2":Ew,"companies:profiles:crustdata@1":EC,"companies:profiles:crustdata@2":iC,"people:profiles:amplemarket@1":LC,"people:profiles:amplemarket@2":hw,"companies:profiles:amplemarket@1":hC,"companies:profiles:amplemarket@2":qS,"companies:entitysearch:parallel@1":AS,"people:entitysearch:parallel@1":iw,"people:eventguests:luma@1":zw},Uw={"people:profiles:crustdata@1":YC,"people:profiles:crustdata@2":Dw,"companies:profiles:crustdata@1":DC,"companies:profiles:crustdata@2":aC,"people:profiles:amplemarket@1":RC,"people:profiles:amplemarket@2":gw,"companies:profiles:amplemarket@1":gC,"companies:profiles:amplemarket@2":JS,"companies:entitysearch:parallel@1":jS,"people:entitysearch:parallel@1":aw,"people:eventguests:luma@1":Bw};function Ww(e){return Vw[e]}const Gw=t.discriminatedUnion(`search_id`,Object.values(Hw).map(e=>e)).openapi(`SearchPayloadSchema`);function Kw(e,t){return Ba(t,Uw[e].defaultPayload)}const qw=t.preprocess(e=>{if(!e||typeof e!=`object`||!(`search_id`in e))return e;let t=Kw(e.search_id);return t?{...e,config:Ba(e?.config||{},t.config)}:e},Gw),Jw=t.object({config:t.object({environment:t.enum([`production`,`sandbox`]).default(`production`),widgets:t.object({enabled:t.boolean().default(!1)}).default({enabled:!1})}).default({environment:`production`,widgets:{enabled:!1}}),search:qw}).openapi(`SearchRequestSchema`),Yw=Yn,Xw=t.object({value:In,status:Fn,type:Nn.optional(),format:Qn.nullable().optional(),resolved_by:ir.nullable().optional(),widgets:Jn.optional()}),Zw=t.record(t.string(),Xw.nullable());function Qw(e){return Hw[e]}const $w=t.enum([`cursor`,`page_number`]),eT=t.object({id:t.string(),status:t.enum([`completed`,`failed`,`pending`,`processing`]),search_id:vS,errors:t.array(Yw),results:t.array(Zw),organization_id:t.string(),next_page:qw.nullable(),pagination_type:$w.nullable(),total_pages:t.int32().nullable()}).openapi(`SearchResponseSchema`);function tT(e){let t=e.split(`@`)[1];if(!t)throw Error(`No search version found`);return Number(t)}function nT(){let e={};for(let t of Object.values(Uw)){let{baseSearch:n}=t;e[n]??=[],e[n].push(t)}return Object.entries(e).forEach(([t,n])=>{e[t]=n.sort((e,t)=>{let n=tT(e.searchId);return tT(t.searchId)-n})}),e}function rT(e){return Uw[e]}const iT=nT();function aT(e){let t=[];for(let[n,r]of Object.entries(iT)){let i=r[0];if(!i)throw Error(`Found empty entry`);i.lifecycle?.deprecatedOn&&e!==`deprecated`||(e===null||i.categories.includes(e))&&t.push({...i,baseSearch:n,latestVersion:tT(i.searchId)})}return t}function oT(e){return Object.keys(Uw[e].defaultPayload.config.output_fields)}function sT(e,t){let n=e.filter(e=>t===null?!0:e.categories.some(e=>e===t)),r={},i={},a={};for(let e of n){if(e.lifecycle&&e.lifecycle.deprecatedOn){i.Deprecated??=[],i.Deprecated.push(e.searchId);continue}a[e.provider]??=[],a[e.provider].push(e.searchId);for(let t of oT(e.searchId))r[t]??=[],r[t].push(e.searchId);for(let t of e.tags)i[t]??=[],i[t].push(e.searchId)}return{searchIdsByOutputField:r,searchIdsByTag:i,searchIdsByProvider:a,sortedTagEntries:Object.entries(i).sort((e,t)=>e[0].localeCompare(t[0])),sortedOutputFieldEntries:Object.entries(r).sort((e,t)=>e[0].localeCompare(t[0])),sortedProviderEntries:Object.entries(a).sort((e,t)=>e[0].localeCompare(t[0])),searchEntriesByBaseSearch:iT}}function cT(e){let t=rT(e);return{[t.provider]:t.cost.credits.default}}const lT={"prompt:run@1":qb,"company:newssummary:website@1":Vl,"company:newssummary:domain@1":Fs,"company:techstack:builtwith@1":ku,"company:techstack:builtwith@2":cc,"company:websiteurl:email@1":Ru,"company:domain:workemail@1":ho,"company:funding:leadmagic@1":Pc,"company:funding:leadmagic@2":ko,"people:workemail:waterfall@1":$m,"person:workemail:waterfall@1":Bb,"people:email:iswork@1":qu,"email:iswork@1":ch,"people:name:split@1":Cf,"person:name:split@1":ny,"people:validate:email:zerobounce@1":Em,"people:email:validate:zerobounce@2":fd,"email:validate:zerobounce@1":Rh,"people:mobilenumber:workemail:waterfall@1":pf,"person:name:join@1":Kv,"company:overview@1":nu,"company:overview@2":vu,"company:overview@3":Zs,"json:extract:multi@1":zg,"company:lookalikes:companyenrich@1":dl,"company:lookalikes:companyenrich@2":as,"company:match:logodev@1":Ml,"company:match:logodev@2":Es,"person:posts:crustdata@1":wy,"people:profile:workemail:crustdata@1":im,"person:profile:workemail:crustdata@1":Gy,"people:identity:email:waterfall@1":Nd,"person:identity:email:waterfall@1":J_,"person:identity:amplemarket@1":M_,"email:send:resend@1":Oh,"contact:create:resend@1":bc,"email:send:gmail@1":xh,"email:write@1":Jh,"fields:merge@1":wg,"field:slugify@1":fg,"field:domainify@1":rg,"http:request@1":Ng,"template:fill@1":xx,"message:send:slack@1":qg,"message:write@1":t_,"people:personalemail:profile:waterfall@1":Ff,"person:personalemail:profileurl:waterfall@1":my,"website:scrape:firecrawl@1":aS,"website:scrapelist:firecrawl@1":mS,"website:extract:firecrawl@1":Ax,"website:extract:parallel@1":zx,"website:maplinks:firecrawl@1":Jx,"sheet:row:append@1":ax,"sheet:row:expandappend@1":mx,"people:match:role:waterfall@1":Wd,"person:match:role:waterfall@1":mv,"company:match:crustdata@1":bl,"company:match:crustdata@2":ms,"person:match:amplemarket@1":rv,"company:identity@2":nl,"company:identity@3":Bo,"company:identity:crustdata@1":Xo,"people:phone:profile:waterfall@1":Kf,"person:mobile:profileurl:waterfall@1":Tv,"person:devprofileurl:profileurl:waterfall@1":p_,"people:phone:workemail:waterfall@1":rp,"person:mobile:workemail:waterfall@1":Iv,"people:profile:waterfall@1":Jp,"person:profile:waterfall@1":Fy,"people:profileurl:email:waterfall@1":gm,"person:profileurl:email:waterfall@1":rb,"person:profileurl:name@1":mb,"people:email:validate:zerobounce@1":nd,"person:email:validate:millionverifier@1":C_,"people:workemail:profileurl:waterfall@1":zm,"person:workemail:profileurl:waterfall@1":Eb,"company:identity@1":Gc,"people:professionalprofile:waterfall@1":mp,"people:professionalprofileurl:name@1":Lp,"people:professionalprofileurl:email:waterfall@1":Ep,"people:mobilenumber:professionalprofile:waterfall@1":tf},uT={"prompt:run@1":Jb,"company:newssummary:website@1":Hl,"company:newssummary:domain@1":Is,"company:techstack:builtwith@1":Au,"company:techstack:builtwith@2":lc,"company:websiteurl:email@1":zu,"company:domain:workemail@1":go,"company:funding:leadmagic@1":Fc,"company:funding:leadmagic@2":Ao,"people:workemail:waterfall@1":eh,"person:workemail:waterfall@1":Vb,"people:email:iswork@1":Ju,"email:iswork@1":lh,"people:name:split@1":wf,"person:name:split@1":ry,"people:validate:email:zerobounce@1":Dm,"people:email:validate:zerobounce@2":pd,"email:validate:zerobounce@1":zh,"people:mobilenumber:workemail:waterfall@1":mf,"person:name:join@1":qv,"company:overview@1":ru,"company:overview@2":yu,"company:overview@3":Qs,"json:extract:multi@1":Bg,"email:write@1":Yh,"fields:merge@1":Tg,"field:slugify@1":pg,"field:domainify@1":ig,"http:request@1":Pg,"email:send:resend@1":kh,"contact:create:resend@1":xc,"company:lookalikes:companyenrich@1":fl,"company:lookalikes:companyenrich@2":os,"company:match:logodev@1":Nl,"company:match:logodev@2":Ds,"person:posts:crustdata@1":Ty,"people:profile:workemail:crustdata@1":am,"person:profile:workemail:crustdata@1":Ky,"people:identity:email:waterfall@1":Pd,"person:identity:email:waterfall@1":Y_,"company:match:crustdata@1":xl,"company:match:crustdata@2":hs,"person:identity:amplemarket@1":N_,"message:send:slack@1":Jg,"email:send:gmail@1":Sh,"message:write@1":n_,"template:fill@1":Sx,"website:scrape:firecrawl@1":oS,"website:scrapelist:firecrawl@1":hS,"website:extract:firecrawl@1":jx,"website:extract:parallel@1":Bx,"website:maplinks:firecrawl@1":Yx,"sheet:row:append@1":ox,"sheet:row:expandappend@1":hx,"people:match:role:waterfall@1":Gd,"person:match:role:waterfall@1":hv,"company:identity@2":rl,"company:identity@3":Vo,"company:identity:crustdata@1":Zo,"people:phone:profile:waterfall@1":qf,"person:mobile:profileurl:waterfall@1":Ev,"person:devprofileurl:profileurl:waterfall@1":m_,"people:personalemail:profile:waterfall@1":If,"person:personalemail:profileurl:waterfall@1":hy,"people:profile:waterfall@1":Yp,"person:profile:waterfall@1":Iy,"people:profileurl:email:waterfall@1":_m,"person:profileurl:email:waterfall@1":ib,"person:profileurl:name@1":hb,"people:email:validate:zerobounce@1":rd,"person:email:validate:millionverifier@1":w_,"people:phone:workemail:waterfall@1":ip,"person:mobile:workemail:waterfall@1":Lv,"people:workemail:profileurl:waterfall@1":Bm,"person:workemail:profileurl:waterfall@1":Db,"person:match:amplemarket@1":iv,"company:identity@1":Kc,"people:professionalprofile:waterfall@1":hp,"people:professionalprofileurl:name@1":Rp,"people:professionalprofileurl:email:waterfall@1":Dp,"people:mobilenumber:professionalprofile:waterfall@1":nf},dT={"prompt:run@1":Yb,"company:newssummary:website@1":Ul,"company:newssummary:domain@1":Ls,"company:techstack:builtwith@1":ju,"company:techstack:builtwith@2":uc,"company:websiteurl:email@1":Bu,"company:domain:workemail@1":_o,"company:funding:leadmagic@1":Ic,"company:funding:leadmagic@2":jo,"people:workemail:waterfall@1":th,"person:workemail:waterfall@1":Hb,"people:email:iswork@1":Yu,"email:iswork@1":uh,"people:name:split@1":Tf,"person:name:split@1":iy,"people:validate:email:zerobounce@1":Om,"people:mobilenumber:workemail:waterfall@1":hf,"person:name:join@1":Jv,"company:overview@1":iu,"company:overview@2":bu,"company:overview@3":$s,"json:extract:multi@1":Vg,"email:send:resend@1":Ah,"contact:create:resend@1":Sc,"email:send:gmail@1":Ch,"message:send:slack@1":Yg,"message:write@1":r_,"email:write@1":Xh,"template:fill@1":Cx,"fields:merge@1":Eg,"field:slugify@1":mg,"field:domainify@1":ag,"http:request@1":Fg,"sheet:row:append@1":sx,"sheet:row:expandappend@1":gx,"company:lookalikes:companyenrich@1":pl,"company:lookalikes:companyenrich@2":ss,"people:match:role:waterfall@1":Kd,"person:match:role:waterfall@1":gv,"company:match:logodev@1":Pl,"company:match:logodev@2":Os,"person:posts:crustdata@1":Ey,"people:profile:workemail:crustdata@1":om,"person:profile:workemail:crustdata@1":qy,"people:workemail:profileurl:waterfall@1":Vm,"person:workemail:profileurl:waterfall@1":Ob,"people:identity:email:waterfall@1":Fd,"person:identity:email:waterfall@1":X_,"company:match:crustdata@1":Sl,"company:match:crustdata@2":gs,"person:identity:amplemarket@1":P_,"email:validate:zerobounce@1":Bh,"person:email:validate:millionverifier@1":T_,"people:personalemail:profile:waterfall@1":Lf,"person:personalemail:profileurl:waterfall@1":gy,"people:email:validate:zerobounce@1":id,"people:email:validate:zerobounce@2":md,"people:phone:workemail:waterfall@1":ap,"person:mobile:workemail:waterfall@1":Rv,"website:scrape:firecrawl@1":sS,"website:scrapelist:firecrawl@1":gS,"website:extract:firecrawl@1":Mx,"website:extract:parallel@1":Vx,"website:maplinks:firecrawl@1":Xx,"person:match:amplemarket@1":av,"company:identity@2":il,"company:identity@3":Ho,"company:identity:crustdata@1":Qo,"people:phone:profile:waterfall@1":Jf,"person:mobile:profileurl:waterfall@1":Dv,"person:devprofileurl:profileurl:waterfall@1":h_,"people:profile:waterfall@1":Xp,"person:profile:waterfall@1":Ly,"people:profileurl:email:waterfall@1":vm,"person:profileurl:email:waterfall@1":ab,"person:profileurl:name@1":gb,"company:identity@1":qc,"people:professionalprofile:waterfall@1":gp,"people:professionalprofileurl:name@1":zp,"people:professionalprofileurl:email:waterfall@1":Op,"people:mobilenumber:professionalprofile:waterfall@1":rf};function fT(e){return e.defaultPayload?.config?.output_fields?Object.keys(e.defaultPayload?.config?.output_fields||{}):[]}function pT(e){return lT[e]}function mT(e){return dT[e].defaultPayload}function hT(e){return uT[e]}const gT=r.discriminatedUnion(`pipe_id`,Object.values(uT)).openapi(`PipePayload`),_T=r.preprocess(e=>{if(!e||typeof e!=`object`||!(`pipe_id`in e))return e;try{let t=mT(jn.parse(e.pipe_id));return t?{...e,config:Ba(e?.config||{},t.config)}:e}catch{return e}},gT);function vT(e){return dT[e]}function yT(e,t){let n=vT(e);if(t in n.billableOperations)return n.billableOperations[t];throw Error(`Unable to find billable operation definition for pipeId '${e}' and operation '${t}'`)}function bT(e){let t=e.split(`@`)[1];if(!t)throw Error(`No pipe version found`);return Number(t)}function xT(){let e={};for(let t of Object.values(dT)){let{basePipe:n}=t;e[n]??=[],e[n].push(t)}return Object.entries(e).forEach(([t,n])=>{e[t]=n.sort((e,t)=>{let n=bT(e.pipeId);return bT(t.pipeId)-n})}),e}const ST=e=>{let t=vT(e),n=new Set(t.deprecatedProviders);return Array.from(new Set([...t.managedProviders,...t.allowedUserConnectionProviders])).filter(e=>!n.has(e))},CT=xT();function wT(e,t){let n=new Map;for(let[t,r]of Object.entries(e))for(let e of Object.keys(r.billableOperations)){let r=n.get(e)??[];r.push(`pipe ${t}`),n.set(e,r)}for(let[e,r]of Object.entries(t)){let t=r.billableOperation,i=n.get(t)??[];i.push(`search ${e}`),n.set(t,i)}let r=[...n.entries()].filter(([,e])=>e.length>1);if(r.length>0){let e=r.map(([e,t])=>` "${e}" used by ${t.join(`, `)}`).join(`
74
- `);throw Error(`Catalog has ${r.length} duplicate billable-operation key(s):\n${e}`)}}wT(dT,Uw);function TT(e){let t=[];for(let[n,r]of Object.entries(CT)){let i=r[0];if(!i)throw Error(`Found empty entry`);let a=i.categories;i.lifecycle?.deprecatedOn&&e!==`deprecated`||(e===null||a.includes(e))&&t.push({...i,basePipe:n,latestVersion:bT(i.pipeId)})}return t}function ET(e,t){let n=e.filter(e=>t===null?!0:e.categories.some(e=>e===t)),r={},i={},a={},o={};for(let e of n){let t=ST(e.defaultPayload.pipe_id);for(let n of t)o[n]??=[],o[n].push(e.defaultPayload.pipe_id);for(let t of fT(e))i[t]??=[],i[t].push(e.defaultPayload.pipe_id);if(e.defaultInputRequirement)for(let{field:t}of Ka(e.defaultInputRequirement))r[t.name]??=[],r[t.name]?.push(e.defaultPayload.pipe_id);for(let t of e.tags)a[t]??=[],a[t].push(e.defaultPayload.pipe_id)}return{pipeIdsByInputField:r,pipeIdsByOutputField:i,pipeIdsByTag:a,pipeIdsByProvider:o,sortedTagEntries:Object.entries(a).sort((e,t)=>e[0].localeCompare(t[0])),sortedInputFieldEntries:Object.entries(r).sort((e,t)=>e[0].localeCompare(t[0])),sortedOutputFieldEntries:Object.entries(i).sort((e,t)=>e[0].localeCompare(t[0])),sortedProviderEntries:Object.entries(o).sort((e,t)=>e[0].localeCompare(t[0])),pipeEntriesByBasePipe:CT}}const DT=r.object({id:r.string(),organization_id:r.string(),order:r.array(Pn),field_definitions:dr,errors:r.array(Yn),records:r.record(Pn,cr),status:r.enum([`completed`,`failed`,`pending`,`processing`])}).openapi(`PipesResponseSchema`),OT=r.object({environment:kn.default(`production`),widgets:r.object({enabled:r.boolean().default(!1)}).default({enabled:!1}),field_definitions:r.object({enabled:r.boolean()}).default({enabled:!1}),transform:r.object({include_fields:r.enum([`input`,`annotated`])}).default({include_fields:`input`})}).default({environment:`production`,transform:{include_fields:`input`},widgets:{enabled:!1},field_definitions:{enabled:!1}}).openapi(`PipesRequestConfig`),kT=r.object({config:OT.openapi(`PipesRequestConfig`),field_annotations:er.optional().openapi(`PipesFieldAnnotations`),pipes:r.array(gT),input:r.array(sr.openapi(`PipesInputSchema`)),scopes:r.array(r.string()).optional()});function AT(e){let t=vT(e);return Object.values(t.billableOperations).reduce((e,t)=>{let n=t.allowManagedConnection?t.credits.default:0;return e[t.provider]??=n,e[t.provider]=Math.min(e[t.provider],n),e},{})}const jT={"config.prompt":{order:1,label:`Prompt`,iconKey:`sparkles`,defaultExpand:!0},"config.general":{order:0,label:`General`,iconKey:`mix`,defaultExpand:!0},"config.advanced":{order:0,label:`Advanced`,iconKey:`sliders`,defaultExpand:!0},"config.input_fields":{order:0,label:`Input config`,description:`Point pipe inputs to new fields.`,iconKey:`input`,defaultExpand:!1},connector:{order:100,label:`Connections`,iconKey:`plug`,defaultExpand:!1},"config.extraction":{order:0,label:`Extraction`,iconKey:`code`,defaultExpand:!0},run_if:{order:99,label:`Run IF`,iconKey:`workflow`,defaultExpand:!1},"config.email":{order:3,label:`Email`,iconKey:`mail`,defaultExpand:!0},"config.json_extraction":{order:1,label:`Extract fields`,iconKey:`braces`,defaultExpand:!0},"config.providers":{order:1,label:`Providers`,iconKey:`tags`,defaultExpand:!0},"config.output_fields":{order:10,label:`Output config`,description:`Toggle or rename output fields.`,iconKey:`output`,defaultExpand:!1}},MT={general:{type:`form_section`,path:`general`,label:`Behavior`,description:`How this pipe runs and selects providers.`},pagination:{type:`form_section`,path:`pagination`,label:`Behavior`},pipe_io:{type:`form_section`,path:``,label:`I/O & conditions`},"config.filters":{type:`form_section`,path:`config.filters`,label:`I/O & conditions`}},NT={general:1,pagination:2,"config.input_fields":10,"config.pipe_io":11,"config.output_fields":12,"config.extractions":13,"config.filters":14,conditions:15,connector:16};function PT(e){let t=hT(e),n=[];function i(e){let t=v.get(e);if(t&&typeof t!=`function`)(t.type===`context_select_input`||t.type===`tagged_text_input`)&&t.optionsDef&&n.push(t);else if(typeof t==`function`){let e=t.staticMeta;e&&e.type===`tagged_text_input`&&e.optionsDef&&n.push(e)}if(typeof e==`object`&&e&&`unwrap`in e&&typeof e.unwrap==`function`&&i(e.unwrap()),e instanceof r.ZodObject)for(let t of Object.values(e.shape))i(t)}return i(t),n}function FT({pipePayload:e,validationContext:t,sectionOrder:n=NT,store:r,groupPathMatch:i=jT,formResolvers:a}){let o=hT(e.pipe_id),s=Qa(e.pipe_id,e.config||{});return $i({schema:o,groupPathMatch:i,extractFromSchema:n=>{let i=v.get(n);if(r.field_options??={},i)return i&&typeof i==`function`?i({validationContext:t,pipePayload:e,userConnections:`connections`in r.field_options?(r.field_options.connections.options||[]).map(e=>{let t=e.widgets?.provider_logo?.provider;if(!t)throw Error(`Option is missing provider type'`);return{public_id:e.value,provider:t}}):[],pipeEntry:vT(e.pipe_id),hash:s}):i},sectionOrder:n,sectionMap:MT,store:r,formResolvers:a})}const IT={"config.pagination":{order:0,label:`Pagination`,iconKey:`list`,defaultExpand:!0},"config.prompt":{order:1,label:`Prompt`,iconKey:`sparkles`,defaultExpand:!0},"config.general":{order:0,label:`General`,iconKey:`mix`,defaultExpand:!0},"config.advanced":{order:0,label:`Advanced`,iconKey:`sliders`,defaultExpand:!0},"config.continue_existing_search":{order:0,label:`Continue existing search`,iconKey:`history`,defaultExpand:!1},"config.output_fields":{order:10,label:`Outputs`,iconKey:`output`,defaultExpand:!1},"config.filters.query":{order:2,label:`Query`,iconKey:`text`,defaultExpand:!0},"config.filters.personal_information":{label:`Personal information`,order:6,iconKey:`user`,defaultExpand:!1},"config.filters.job_information":{label:`Job information`,order:6,iconKey:`job`,defaultExpand:!1},"config.filters.company_information":{order:1,label:`Company information`,iconKey:`office`,defaultExpand:!1},"config.filters.education":{label:`Education`,iconKey:`school`,defaultExpand:!1},"config.filters.geografic":{label:`Location`,iconKey:`location`,defaultExpand:!1},"config.filters.location":{label:`Location`,iconKey:`location`,defaultExpand:!1},"config.filters.general":{label:`General`,iconKey:`filter`,defaultExpand:!1,order:1},"config.filters.job_openings":{label:`Job openings`,iconKey:`calendar`,defaultExpand:!1},"config.filters.website":{label:`Website`,iconKey:`web`,defaultExpand:!1},"config.filters.web_presence":{label:`Web presence`,iconKey:`web`,defaultExpand:!1},"config.filters.keywords":{label:`Keywords`,iconKey:`tags`,defaultExpand:!1},"config.filters.competitors":{label:`Competitors`,iconKey:`cometition`,defaultExpand:!1},"config.filters.categories":{label:`Categories`,iconKey:`boxes`,defaultExpand:!1},"config.filters.investors":{label:`Investors`,iconKey:`handshake`,defaultExpand:!1},"config.filters.account_activities":{label:`Account Activities`,iconKey:`activity`,defaultExpand:!1},"config.filters.financials":{label:`Financials`,iconKey:`chart`,defaultExpand:!1},"config.filters.languages":{label:`Languages`,iconKey:`language`,defaultExpand:!1},"config.filters.company_size":{label:`Company size`,iconKey:`office`,defaultExpand:!1},"config.filters.linkedin":{label:`LinkedIn`,iconKey:`linkedin`,defaultExpand:!1},"config.filters.skills":{label:`Skills`,iconKey:`brain`,defaultExpand:!1},"config.filters.activities":{label:`Activities`,iconKey:`bolt`,defaultExpand:!1},"config.filters.certifications_honors":{label:`Certifications & honors`,iconKey:`award`,defaultExpand:!1},"config.filters.profile":{label:`Profile`,iconKey:`contact`,defaultExpand:!1},"config.filters.experience":{label:`Employment history`,iconKey:`history`,defaultExpand:!1},"config.filters.current_employer":{label:`Current job`,iconKey:`briefcase`,defaultExpand:!1},"config.filters.current_company":{label:`Current Company`,iconKey:`office`,defaultExpand:!1},"config.filters.industry":{label:`Industries`,iconKey:`factory`,defaultExpand:!1},"config.filters.general_search":{label:`General search`,iconKey:`search`,defaultExpand:!1},connector:{order:100,label:`Connections`,iconKey:`plug`,defaultExpand:!1}},LT={general:{type:`form_section`,path:`general`,label:`General`,description:`Search settings and pagination.`},pagination:{type:`form_section`,path:`pagination`,label:`General`},"config.filters":{type:`form_section`,path:`config.filters`,label:`Filters`,description:`Narrow the search results.`},pipe_io:{type:`form_section`,path:``,label:`Output fields`}},RT={general:1,pagination:2,"config.filters":10,"config.output_fields":20,"config.input_fields":21,"config.pipe_io":22,"config.extractions":23,conditions:90,connector:91};function zT({searchPayload:e,sectionOrder:t=RT,formContext:n,groupPathMatch:r=IT,formResolvers:i}){return $i({schema:Qw(e.search_id),groupPathMatch:r,extractFromSchema:t=>{let r=y.get(t);if(n.field_options??={},r)return typeof r==`function`?r({searchPayload:e,searchEntry:rT(e.search_id),userConnections:`connections`in n.field_options?(n.field_options.connections.options||[]).map(e=>{let t=e.widgets?.provider_logo?.provider;if(!t)throw Error(`Option is missing provider type`);return{public_id:e.value,provider:t}}):[]}):r},sectionOrder:t,sectionMap:LT,store:n,formResolvers:i})}function BT(e){let t=Qw(e),n=[];function i(e){let t=y.get(e);if(t&&typeof t!=`function`&&t.type===`context_select_input`&&t.optionsDef&&n.push(t),typeof e==`object`&&e&&`unwrap`in e&&typeof e.unwrap==`function`&&i(e.unwrap()),e instanceof r.ZodObject)for(let t of Object.values(e.shape))i(t)}return i(t),n}const VT=new Proxy({},{get:(e,t)=>e=>e.type===t}),HT=`school.user.location.language.brain.book.web.plug.money.office.job.search.output.input.mix.bill.linkedin.text.workflow.letter.source.activity.boxes.cometition.bolt.star.scholar.briefcase.history.sparkles.list.sliders.factory.award.tags.handshake.contact.mail.calendar.chart.code.braces.filter`.split(`.`),UT=r.enum(HT),WT=r.object({provider_logo:r.object({provider:On}).optional(),emoji:r.object({char:r.string()}).optional(),icon:r.object({key:UT}).optional(),logo_url:r.object({url:r.string(),alt:r.string().optional()}).optional(),pricing:r.object({credits:r.number()}).optional(),field_type:r.object({type:r.string(),format:r.string().optional()}).optional()}),GT=`providers_input.fields_select_input.json_extraction_input.pipes_run_if_input.connector_input.include_exclude_input.include_exclude_select_input.exact_range_input.range_input.date_range_input.boolean_input.nullable_boolean_input.text_input.template_input.output_field_input.textarea_input.prompt_input.select_input.context_select_input.multi_select_input.min_max_int_input.async_multi_select_input.async_include_exclude_select_input.multi_create_input.ordered_multi_create_input.tagged_ordered_multi_create_input.int_input.number_input.json_schema_input`.split(`.`);r.enum(GT);const KT=r.object({value:r.string(),label:r.string(),widgets:WT.optional()}),qT=r.object({field_options:r.record(r.string(),r.object({options:r.array(KT)}))}),JT=[{id:`people_data`,label:`People`,color:`#8B7DFF`,order:0},{id:`find_people`,label:`Find People`,color:`#A78BFA`,order:1},{id:`company_data`,label:`Company`,color:`#10B981`,order:2},{id:`find_comapnies`,label:`Find Companies`,color:`#34D399`,order:3},{id:`tools`,label:`Tools`,color:`#EAB308`,order:4},{id:`integrations`,label:`Integrations`,color:`#06B6D4`,order:5},{id:`actions`,label:`Actions`,color:`#F97316`,order:6},{id:`deprecated`,label:`Deprecated`,color:`#94A3B8`,order:7}],YT=new Map(JT.map(e=>[e.id,e]));function XT(e){return YT.get(e)}function ZT(){return JT}const QT={"company:funding:leadmagic@1":[{config:{environment:`production`},pipes:[{pipe_id:`company:funding:leadmagic@1`}],input:[{id:`1`,company_website_url:`https://pipe0.com`}]}],"company:funding:leadmagic@2":[{config:{environment:`production`},pipes:[{pipe_id:`company:funding:leadmagic@2`}],input:[{id:`1`,company_domain:`pipe0.com`}]}],"company:identity@1":[{config:{environment:`production`},pipes:[{pipe_id:`company:identity@1`}],input:[{id:`1`,company_name:`Pipe0`}]}],"company:identity@2":[{config:{environment:`production`},pipes:[{pipe_id:`company:identity@2`,config:{}}],input:[{id:`1`,company_name:`Pipe0`}]}],"company:identity@3":[{config:{environment:`production`},pipes:[{pipe_id:`company:identity@3`,config:{}}],input:[{id:`1`,company_name:`Pipe0`}]}],"company:overview@1":[{config:{environment:`production`},pipes:[{pipe_id:`company:overview@1`}],input:[{id:`1`,company_website_url:`Pipe0`}]}],"people:phone:workemail:waterfall@1":[{config:{environment:`production`},pipes:[{pipe_id:`people:phone:workemail:waterfall@1`}],input:[{id:`1`,work_email:`jane@pipe0.com`}]}],"person:mobile:workemail:waterfall@1":[{config:{environment:`production`},pipes:[{pipe_id:`person:mobile:workemail:waterfall@1`}],input:[{id:`1`,work_email:`jane@pipe0.com`}]}],"people:workemail:waterfall@1":[{config:{environment:`production`},pipes:[{pipe_id:`people:workemail:waterfall@1`}],input:[{id:`1`,name:`John Doe`,company_website_url:`https://pipe0.com`}]}],"person:workemail:waterfall@1":[{config:{environment:`production`},pipes:[{pipe_id:`person:workemail:waterfall@1`}],input:[{id:`1`,name:`John Doe`,company_domain:`pipe0.com`}]}],"company:techstack:builtwith@1":[{config:{environment:`production`},pipes:[{pipe_id:`company:techstack:builtwith@1`}],input:[{id:`1`,company_website_url:`https://pipe0.com`}]}],"company:techstack:builtwith@2":[{config:{environment:`production`},pipes:[{pipe_id:`company:techstack:builtwith@2`}],input:[{id:`1`,company_domain:`pipe0.com`}]}],"prompt:run@1":[{config:{environment:`production`},pipes:[{pipe_id:`prompt:run@1`,config:{model:`openai-gpt-latest`,prompt:{template:`
73
+ }`,inputType:`text`,maxLength:1e6,expectedTagType:`string`,expectedTagFormat:`text`,multiline:!0}),headers:ma({sectionKey:`general`,groupPath:`config.general`,path:`config.headers`,label:`Headers`,info:"Type `@` to insert a field reference or `$` to insert a secret reference in either column (e.g. `Bearer $token`).",keyLabel:`Header`,valueLabel:`Value`,keyPlaceholder:`Authorization`,valuePlaceholder:`Bearer {{ secret … }}`,maxItems:50}),expected_response_schema:Ea({sectionKey:`general`,groupPath:`config.advanced`,path:`config.expected_response_schema`,label:`Expected response shape`,description:`Optional JSON Schema. Successful responses that don't satisfy it are marked failed. Extra properties are always tolerated (whitelist).`,required:!1,allowEmpty:!0}),output_fields:L(r.object({[kg.name]:O({fieldName:kg.name}),[Ag.name]:O({fieldName:Ag.name}),[jg.name]:O({fieldName:jg.name})}))})}),Ng={"http-request-v1-pipe0":{provider:`pipe0`,allowManagedConnection:!0,credits:{default:.001},mode:`always`}},Pg=class extends H{pipeId=Og;payload;payloadSchema=Mg;billableOperations=Ng;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[`http-request-v1-pipe0`]}getTemplatedFields(){let e=[this.payload.config.url,this.payload.config.body];for(let t of this.payload.config.query_params??[])e.push(t.key,t.value);for(let t of this.payload.config.headers??[])e.push(t.key,t.value);return e}getInputRequirement(){return hh(this.getTemplatedFields(),{expectedType:`string`,expectedFormat:`text`})}getSecretRequirements(){return gh(this.getTemplatedFields())}getConstantRequirements(){return _h(this.getTemplatedFields())}getRawOutputFields(){return{[kg.name]:this.catalogOutput(kg),[Ag.name]:this.catalogOutput(Ag),[jg.name]:this.catalogOutput(jg)}}getConnectionsRequirements(){return[{provider:`pipe0`,rateLimitRatio:1,rateLimitOperation:`pipe0_logic`,allowManagedConnection:!0}]}},Fg=Mg,Ig={pipeId:Og,basePipe:U(Og),label:`HTTP request`,executionMode:`single`,categories:[`tools`],lifecycle:null,description:`Make a generic GET/POST/PUT/PATCH/DELETE HTTP request and capture the JSON response. Optionally validate the response against a JSON schema.`,tags:[z.LOGIC,z.JSON,z.NEW],docPath:W(Og),billableOperations:Ng,defaultInputRequirement:null,inputFieldMode:`config`,outputFieldMode:`static`,allowedUserConnectionProviders:[],managedProviders:[`pipe0`],deprecatedProviders:[],defaultPayload:{pipe_id:Og,run_if:null,connector:null,config:{method:`GET`,url:``,query_params:[],body:``,headers:[],expected_response_schema:{},output_fields:{http_response_status:{alias:``,enabled:!0},http_response_body:{alias:``,enabled:!0},http_response_headers:{alias:``,enabled:!1}}}}},Lg=`json:extract:multi@1`,Rg=r.object({pipe_id:r.literal(Lg),run_if:x(),connector:w(),config:r.object({json_extraction:Oi()})}),zg={"json-extract-multi-v1-pipe0":{provider:`pipe0`,allowManagedConnection:!0,credits:{default:0},mode:`always`}},Bg=class extends H{pipeId=Lg;payload;payloadSchema=Rg;billableOperations=zg;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[`json-extract-multi-v1-pipe0`]}getInputRequirement(){return B({description:``,name:this.payload.config.json_extraction.field_name,format:null,label:``,type:`json`,resolvedName:this.payload.config.json_extraction.field_name})}getRawOutputFields(){let e={};for(let t of this.payload.config.json_extraction.extractions)e[t.output_field.name||t.output_field.name]={description:`Extracted value from JSON input field ${this.payload.config.json_extraction.field_name}.`,enabled:!0,format:t.output_field.format||null,label:t.output_field.label||`Extract JSON`,name:t.output_field.name,resolvedName:t.output_field.name,jsonMeta:null,type:t.output_field.type,isCatalogFIeld:!1,isPrimaryOutput:!1};return e}getConnectionsRequirements(){return[]}},Vg=Rg,Hg={pipeId:Lg,basePipe:U(Lg),inputFieldMode:`config`,outputFieldMode:`config`,label:`JSON extract`,executionMode:`single`,categories:[`tools`],lifecycle:null,description:`Extract nested JSON properties into new output fields.`,docPath:W(Lg),tags:[z.JSON],managedProviders:[`pipe0`],deprecatedProviders:[],allowedUserConnectionProviders:[],billableOperations:zg,defaultInputRequirement:null,defaultPayload:{pipe_id:Lg,run_if:null,connector:null,config:{json_extraction:{field_name:``,extractions:[]}}}},Ug=`message:send:slack@1`,Wg=g(`slack_message_success`),Gg=[{label:`#demo-general`,value:`C0SANDBOX001`},{label:`#demo-alerts`,value:`C0SANDBOX002`}],Kg=r.object({pipe_id:r.literal(Ug),connector:ia(),run_if:x(),config:r.object({channel_id:S({sectionKey:`general`,groupPath:`config.general`,path:`config.channel_id`,label:`Channel ID`,info:"Your connection must be authorized to post to this channel. Type `@` to insert a field reference or `$` to insert a secret reference.",placeholder:`C0123456789`,inputType:`text`,minLength:3,expectedTagType:`string`,expectedTagFormat:`text`,optionsDef:{requires:{connection:`slack`},options:async({query:e,secret:t,environment:n})=>{if(n===`sandbox`)return Gg;if(!t)throw new dc.MissingSecretError({providerName:`slack`});let r=await fetch(`https://slack.com/api/conversations.list?limit=200&exclude_archived=true&types=public_channel,private_channel`,{headers:{Authorization:`Bearer ${t}`}});if(!r.ok){let e=await r.text();throw new dc.HttpError({msg:e})}let i=await r.json();if(!i.ok)throw new dc.HttpError({msg:i.error??`slack_error`});let a=(i.channels??[]).map(e=>({label:`#${e.name}`,value:e.id}));return e?a.filter(t=>t.label.toLowerCase().includes(e.toLowerCase())):a},widgets:{provider_logo:{provider:`slack`}}}}),message:S({sectionKey:`general`,groupPath:`config.general`,path:`config.message`,label:`Message`,info:"The message body. Type `@` to insert a field reference or `$` to insert a secret reference.",placeholder:`Hi {{ name }}, …`,inputType:`text`,minLength:1,maxLength:4e4,expectedTagType:`string`,expectedTagFormat:`markdown`,multiline:!0}),output_fields:L(r.object({[Wg.name]:O({fieldName:Wg.name})}))})}),qg={"message-send-slack-v1-slack":{allowManagedConnection:!1,provider:`slack`,credits:null,mode:null}},Jg=class extends H{pipeId=Ug;payload;payloadSchema=Kg;billableOperations=qg;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`slack`]}estimateBillableOperations(){return[`message-send-slack-v1-slack`]}getTemplatedFields(){return[this.payload.config.channel_id,this.payload.config.message]}getInputRequirement(){return hh(this.getTemplatedFields())}getSecretRequirements(){return gh(this.getTemplatedFields())}getConstantRequirements(){return _h(this.getTemplatedFields())}getRawOutputFields(){return{[Wg.name]:this.catalogOutput(Wg)}}getConnectionsRequirements(){return[{provider:`slack`,rateLimitRatio:1,rateLimitOperation:`slack_post_message`,allowManagedConnection:!1}]}},Yg=Kg,Xg={pipeId:Ug,basePipe:U(Ug),label:`Send message into channel`,executionMode:`single`,categories:[`actions`],lifecycle:null,description:`Send a Slack message to a channel.`,detailed_description:"Send a Slack message. The channel ID and message body are templated config fields β€” reference upstream fields with `{{ field_name }}` and stored secrets with `{{ SECRETS.KEY }}`. Requires a Slack vault connection (call list_connections to find one).",tags:[z.CHAT],docPath:W(Ug),billableOperations:qg,inputFieldMode:`config`,outputFieldMode:`static`,allowedUserConnectionProviders:[`slack`],managedProviders:[],deprecatedProviders:[],defaultInputRequirement:null,defaultPayload:{pipe_id:Ug,connector:{strategy:`first`,connections:[]},run_if:null,config:{channel_id:``,message:``,output_fields:{slack_message_success:{alias:``,enabled:!0}}}}},Zg=`message:write@1`,Qg=g(`message`),$g=`message-write-v1`,e_=mi($g),t_=r.object({pipe_id:r.literal(Zg),connector:C(),run_if:x(),config:r.object({template:na({sectionKey:`general`,label:`Template`,path:`config.template`,placeholder:J(`prompt`),groupPath:`config.prompt`,required:!0}),model:Sa({sectionKey:`general`,label:`Model`,path:`config.model`,groupPath:`config.prompt`,billableOperations:e_}),output_fields:L(r.object({[Qg.name]:O({fieldName:Qg.name})}))})}),n_=class extends H{pipeId=Zg;payload;payloadSchema=t_;billableOperations=e_;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return gi(this.payload.config.model)}estimateBillableOperations(){return[hi(this.payload.config.model,$g)]}getInputRequirement(){return hh([this.payload.config.template])}getSecretRequirements(){return gh([this.payload.config.template])}getConstantRequirements(){return _h([this.payload.config.template])}getRawOutputFields(){return{[Qg.name]:this.catalogOutput(Qg)}}getConnectionsRequirements(){return _i(this.payload.config.model)}},r_=t_,i_={pipeId:Zg,inputFieldMode:`config`,outputFieldMode:`static`,basePipe:U(Zg),label:`Message writer`,executionMode:`single`,categories:[`tools`],lifecycle:null,description:`An AI agent specialized in composing messages for modern workplace communication platforms (Slack, Teams, Discord, etc.)`,detailed_description:`AI message composer for Slack/Teams/Discord. Outputs: message. Pair with message:send:slack@1 to send.`,tags:[z.AI],docPath:W(Zg),defaultInputRequirement:null,billableOperations:e_,allowedUserConnectionProviders:vi(),managedProviders:vi(),deprecatedProviders:[],defaultPayload:{pipe_id:Zg,connector:null,run_if:null,config:{model:`openai-gpt-latest`,template:``,output_fields:{message:{alias:``,enabled:!0}}}}},a_=`person:devprofileurl:profileurl:waterfall@1`,o_=g(`profile_url`),s_=g(`developer_profile_url`),c_=g(`alternative_developer_profile_urls`),l_=[`crustdata`],u_=[{provider:`crustdata`}],d_=r.object({pipe_id:r.literal(a_),run_if:x(),connector:C(),config:r.object({providers:E({sectionKey:`general`,defaultProviders:u_,availableProviders:l_}),input_fields:R(r.object({[o_.name]:T({fieldName:o_.name})})),output_fields:L(r.object({[s_.name]:O({fieldName:s_.name}),[c_.name]:O({fieldName:c_.name})}))}).optional()}),f_=e=>B(G(o_,e)),p_={"person-devprofileurl-profileurl-waterfall-v1-crustdata":{provider:`crustdata`,allowManagedConnection:!0,credits:{default:2,level1:{credits:1.3,weight:1}},mode:`onSuccess`}},m_=class extends H{pipeId=a_;payload;payloadSchema=d_;billableOperations=p_;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return this.payload.config?.providers.map(e=>e.provider)||[]}estimateBillableOperations(){return this.getProviderNames().map(e=>q(e,this.billableOperations).billableOperation)}getInputRequirement(){return f_(this.payload.config)}getRawOutputFields(){return{[s_.name]:this.catalogOutput(s_,{isPrimaryOutput:!0}),[c_.name]:this.catalogOutput(c_,{isPrimaryOutput:!1})}}getConnectionsRequirements(){let e={crustdata:`crustdata_realtime_person_enrich`};return(this.payload.config?.providers||[]).map((t,n)=>({provider:t.provider,rateLimitRatio:K(n),rateLimitOperation:e[t.provider],allowManagedConnection:!0}))}},h_=d_,g_={pipeId:a_,basePipe:U(a_),label:`GitHub profile from LinkedIn URL`,executionMode:`waterfall`,categories:[`people_data`],lifecycle:null,description:`Find a developer profile URL (e.g. GitHub) for any prospect using multiple data providers in a waterfall motion.`,docPath:W(a_),tags:[z.LINKEDIN,z.WATERFALL,z.NEW],billableOperations:p_,defaultInputRequirement:f_(null),inputFieldMode:`static`,outputFieldMode:`static`,managedProviders:l_,allowedUserConnectionProviders:l_,deprecatedProviders:[],defaultPayload:{pipe_id:a_,connector:null,run_if:null,config:{providers:u_,input_fields:{profile_url:{alias:``}},output_fields:{developer_profile_url:{alias:``,enabled:!0},alternative_developer_profile_urls:{alias:``,enabled:!1}}}}},__=`person:email:validate:millionverifier@1`,v_=g(`email`),y_=g(`email_validation_status`),b_=g(`million_validation_match`),x_=r.object({pipe_id:r.literal(__),connector:C(),run_if:x(),config:r.object({input_fields:R(r.object({[v_.name]:T({fieldName:v_.name})})),output_fields:L(r.object({[y_.name]:O({fieldName:y_.name}),[b_.name]:O({fieldName:b_.name})}))}).optional()}),S_=e=>B(G(v_,e)),C_={"person-email-validate-millionverifier-v1-millionverifier":{provider:`millionverifier`,allowManagedConnection:!0,credits:{default:.1,level1:{credits:.05,weight:1}},mode:`always`}},w_=class extends H{pipeId=__;payload;payloadSchema=x_;billableOperations=C_;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`millionverifier`]}estimateBillableOperations(){return[`person-email-validate-millionverifier-v1-millionverifier`]}getInputRequirement(){return S_(this.payload.config)}getRawOutputFields(){return{[y_.name]:this.catalogOutput(y_),[b_.name]:this.catalogOutput(b_)}}getConnectionsRequirements(){return[{provider:`millionverifier`,rateLimitRatio:1,rateLimitOperation:`millionverifier_generic`,allowManagedConnection:!0}]}},T_=x_,E_={pipeId:__,basePipe:U(__),label:`Validate email`,executionMode:`single`,categories:[`people_data`],lifecycle:null,description:`Verify email addresses to ensure is deliverability.`,tags:[z.EMAIL],docPath:W(__),billableOperations:C_,inputFieldMode:`static`,outputFieldMode:`static`,allowedUserConnectionProviders:[`millionverifier`],managedProviders:[`millionverifier`],deprecatedProviders:[],defaultInputRequirement:S_(null),defaultPayload:{pipe_id:__,connector:null,run_if:null,config:{input_fields:{email:{alias:``}},output_fields:{email_validation_status:{alias:``,enabled:!0},million_validation_match:{alias:``,enabled:!0}}}}},D_=g(`email`),O_=g(`amplemarket_person_match`),k_=`person:identity:amplemarket@1`,A_=r.object({pipe_id:r.literal(k_),run_if:x(),connector:C(),config:r.object({input_fields:R(r.object({[D_.name]:T({fieldName:D_.name})})),output_fields:L(r.object({[O_.name]:O({fieldName:O_.name})}))}).optional()}),j_=e=>B(G(D_,e)),M_={"person-identity-amplemarket-v1-amplemarket":{allowManagedConnection:!1,credits:null,mode:null,provider:`amplemarket`}},N_=class extends H{pipeId=k_;payload;payloadSchema=A_;billableOperations=M_;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`amplemarket`]}estimateBillableOperations(){return[]}getInputRequirement(){return j_(this.payload.config)}getRawOutputFields(){return{[O_.name]:this.catalogOutput(O_)}}getConnectionsRequirements(){return[{provider:`amplemarket`,rateLimitRatio:1,rateLimitOperation:`amplemarket_generic`,allowManagedConnection:!1}]}},P_=A_,F_={pipeId:k_,inputFieldMode:`static`,outputFieldMode:`static`,basePipe:U(k_),label:`Person identity`,executionMode:`single`,categories:[`people_data`],lifecycle:null,description:`Find information on a person based on their email`,tags:[z.PEOPLE_PROFILES],docPath:W(k_),billableOperations:M_,allowedUserConnectionProviders:[`amplemarket`],managedProviders:[],deprecatedProviders:[],defaultInputRequirement:j_(null),defaultPayload:{pipe_id:k_,connector:null,run_if:null,config:{input_fields:{email:{alias:``}},output_fields:{amplemarket_person_match:{alias:``,enabled:!0}}}}},I_=`person:identity:email:waterfall@1`,L_=g(`email`),R_=g(`company_domain`),z_=g(`name`),B_=g(`job_title`),V_=g(`profile_url`),H_=g(`company_profile_url`),U_=g(`company_name`),W_=[`findymail`,`hunter`,`crustdata`],G_=[{provider:`findymail`},{provider:`hunter`},{provider:`crustdata`}],K_=r.object({pipe_id:r.literal(I_),connector:C(),run_if:x(),config:r.object({providers:E({availableProviders:W_,defaultProviders:G_,sectionKey:`general`}),input_fields:R(r.object({[L_.name]:T({fieldName:L_.name})})),output_fields:L(r.object({[z_.name]:O({fieldName:z_.name}),[V_.name]:O({fieldName:V_.name}),[B_.name]:O({fieldName:B_.name}),[R_.name]:O({fieldName:R_.name}),[U_.name]:O({fieldName:U_.name}),[H_.name]:O({fieldName:H_.name})}))}).optional()}),q_=e=>B(G(L_,e)),J_={"person-identity-email-waterfall-v1-hunter":{provider:`hunter`,allowManagedConnection:!0,credits:{default:2},mode:`onSuccess`},"person-identity-email-waterfall-v1-findymail":{provider:`findymail`,allowManagedConnection:!0,credits:{default:2},mode:`onSuccess`},"person-identity-email-waterfall-v1-crustdata":{provider:`crustdata`,allowManagedConnection:!0,credits:{default:5},mode:`onSuccess`}},Y_=class extends H{pipeId=I_;payload;payloadSchema=K_;billableOperations=J_;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return this.payload.config?.providers.map(e=>e.provider)||[]}estimateBillableOperations(){return this.getProviderNames().map(e=>q(e,this.billableOperations).billableOperation)}getInputRequirement(){return q_(this.payload.config)}getRawOutputFields(){return{[z_.name]:this.catalogOutput(z_,{isPrimaryOutput:!0}),[V_.name]:this.catalogOutput(V_,{isPrimaryOutput:!0}),[B_.name]:this.catalogOutput(B_,{isPrimaryOutput:!0}),[U_.name]:this.catalogOutput(U_,{isPrimaryOutput:!0}),[H_.name]:this.catalogOutput(H_,{isPrimaryOutput:!0}),[R_.name]:this.catalogOutput(R_,{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:K(n),rateLimitOperation:e[t.provider],allowManagedConnection:!0}))}},X_=K_,Z_={pipeId:I_,basePipe:U(I_),label:`Person identity from email`,executionMode:`waterfall`,categories:[`people_data`],lifecycle:null,description:`Find identity of a person from their email address.`,tags:[z.EMAIL,z.PEOPLE_PROFILES],docPath:W(I_),managedProviders:W_,deprecatedProviders:[],allowedUserConnectionProviders:W_,inputFieldMode:`static`,outputFieldMode:`static`,billableOperations:J_,defaultInputRequirement:q_(null),defaultPayload:{pipe_id:I_,connector:null,run_if:null,config:{providers:G_,input_fields:{email:{alias:``}},output_fields:{name:{alias:``,enabled:!0},profile_url:{alias:``,enabled:!0},job_title:{alias:``,enabled:!0},company_name:{alias:``,enabled:!0},company_profile_url:{alias:``,enabled:!0},company_domain:{alias:``,enabled:!0}}}}},Q_=g(`profile_url`),$_=g(`amplemarket_person_match`),ev=`person:match:amplemarket@1`,tv=r.object({pipe_id:r.literal(ev),run_if:x(),connector:C(),config:r.object({input_fields:R(r.object({[Q_.name]:T({fieldName:Q_.name})})),output_fields:L(r.object({[$_.name]:O({fieldName:$_.name})}))}).optional()}),nv=e=>B(G(Q_,e)),rv={"person-match-amplemarket-v1-amplemarket":{allowManagedConnection:!1,credits:null,mode:null,provider:`amplemarket`}},iv=class extends H{pipeId=ev;payload;payloadSchema=tv;billableOperations=rv;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`amplemarket`]}estimateBillableOperations(){return[]}getInputRequirement(){return nv(this.payload.config)}getRawOutputFields(){return{[$_.name]:this.catalogOutput($_)}}getConnectionsRequirements(){return[{provider:`amplemarket`,rateLimitRatio:1,rateLimitOperation:`amplemarket_generic`,allowManagedConnection:!1}]}},av=tv,ov={pipeId:ev,inputFieldMode:`static`,outputFieldMode:`static`,basePipe:U(ev),label:`Person match`,executionMode:`single`,categories:[`people_data`],lifecycle:null,description:`Find information on a person based on their LinkedIn profile URL.`,tags:[z.PEOPLE_PROFILES],docPath:W(ev),billableOperations:rv,allowedUserConnectionProviders:[`amplemarket`],managedProviders:[],deprecatedProviders:[],defaultInputRequirement:nv(null),defaultPayload:{pipe_id:ev,connector:null,run_if:null,config:{input_fields:{profile_url:{alias:``}},output_fields:{amplemarket_person_match:{alias:``,enabled:!0}}}}},sv=`person:match:role:waterfall@1`,cv=g(`company_domain`),lv=g(`role_finder_match`),uv=[`leadmagic`],dv=[{provider:`leadmagic`}],fv=r.object({pipe_id:r.literal(sv),run_if:x(),connector:C(),config:r.object({providers:E({sectionKey:`general`,defaultProviders:dv,availableProviders:uv}),roles:pa({sectionKey:`general`,groupPath:`config.general`,label:`Roles`,path:`config.roles`,info:`Company roles to include`,maxItems:3,minItems:1,suggestionsDef:h(`titles`),expectedTagType:`string`}),input_fields:R(r.object({[cv.name]:T({fieldName:cv.name})})),output_fields:L(r.object({[lv.name]:O({fieldName:lv.name})}))})}),pv=e=>V(G(cv,e)),mv={"person-match-role-waterfall-v1-leadmagic":{provider:`leadmagic`,allowManagedConnection:!0,credits:{default:1},mode:`onSuccess`}},hv=class extends H{pipeId=sv;payload;payloadSchema=fv;billableOperations=mv;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return this.payload.config?.providers.map(e=>e.provider)||[]}estimateBillableOperations(){return this.getProviderNames().map(e=>q(e,this.billableOperations).billableOperation)}getInputRequirement(){return pv(this.payload.config)}getSecretRequirements(){return gh(this.payload.config?.roles??[])}getConstantRequirements(){return _h(this.payload.config?.roles??[])}getRawOutputFields(){return{[lv.name]:this.catalogOutput(lv,{isPrimaryOutput:!0})}}getConnectionsRequirements(){let e={leadmagic:`leadmagic_role_finder`};return(this.payload.config?.providers||[]).map((t,n)=>({provider:t.provider,rateLimitRatio:K(n),rateLimitOperation:e[t.provider],allowManagedConnection:!0}))}},gv=fv,_v={pipeId:sv,basePipe:U(sv),managedProviders:uv,deprecatedProviders:[],allowedUserConnectionProviders:uv,label:`Role finder`,executionMode:`waterfall`,categories:[`people_data`],lifecycle:null,description:`Find role matches for a given companies like "CEO" or "CFO".`,tags:[z.PEOPLE_PROFILES],docPath:W(sv),billableOperations:mv,inputFieldMode:`static`,outputFieldMode:`static`,defaultInputRequirement:pv(null),defaultPayload:{pipe_id:sv,run_if:null,connector:null,config:{roles:[],providers:dv,input_fields:{company_domain:{alias:``}},output_fields:{role_finder_match:{alias:``,enabled:!0}}}}},vv=`person:mobile:profileurl:waterfall@1`,yv=g(`profile_url`),bv=g(`mobile`),xv=[`leadmagic`,`prospeo`,`amplemarket`,`findymail`],Sv=[{provider:`leadmagic`},{provider:`prospeo`},{provider:`amplemarket`},{provider:`findymail`}],Cv=r.object({pipe_id:r.literal(vv),run_if:x(),connector:C(),config:r.object({providers:E({sectionKey:`general`,defaultProviders:Sv,availableProviders:xv}),input_fields:R(r.object({[yv.name]:T({fieldName:yv.name})})),output_fields:L(r.object({[bv.name]:O({fieldName:bv.name})}))}).optional()}),wv=e=>B(G(yv,e)),Tv={"person-mobile-profileurl-waterfall-v1-leadmagic":{provider:`leadmagic`,allowManagedConnection:!0,credits:{default:3,level1:{credits:2,weight:1}},mode:`onSuccess`},"person-mobile-profileurl-waterfall-v1-prospeo":{provider:`prospeo`,allowManagedConnection:!0,credits:{default:5,level1:{credits:3,weight:1}},mode:`onSuccess`},"person-mobile-profileurl-waterfall-v1-findymail":{provider:`findymail`,allowManagedConnection:!0,credits:{default:6,level1:{credits:4,weight:1}},mode:`onSuccess`},"person-mobile-profileurl-waterfall-v1-amplemarket":{provider:`amplemarket`,allowManagedConnection:!0,credits:{default:4,level1:{credits:3,weight:1}},mode:`onSuccess`}},Ev=class extends H{pipeId=vv;payload;payloadSchema=Cv;billableOperations=Tv;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return this.payload.config?.providers.map(e=>e.provider)||[]}estimateBillableOperations(){return this.getProviderNames().map(e=>q(e,this.billableOperations).billableOperation)}getInputRequirement(){return wv(this.payload.config)}getRawOutputFields(){return{[bv.name]:this.catalogOutput(bv,{isPrimaryOutput:!0})}}getConnectionsRequirements(){let e={leadmagic:`leadmagic_email_lookup`,prospeo:`prospeo_phone_number_lookup`,findymail:`findymail_phone_lookup`,amplemarket:`amplemarket-person-reveal`};return(this.payload.config?.providers||[]).map((t,n)=>({provider:t.provider,rateLimitRatio:K(n),rateLimitOperation:e[t.provider],allowManagedConnection:!0}))}},Dv=Cv,Ov={pipeId:vv,basePipe:U(vv),label:`Mobile number from LinkedIn profile`,executionMode:`waterfall`,categories:[`people_data`],lifecycle:null,description:`Find a mobile phone number for any prospect using multiple data providers in a waterfall motion.`,docPath:W(vv),tags:[z.PHONE,z.WATERFALL],billableOperations:Tv,defaultInputRequirement:wv(null),inputFieldMode:`static`,outputFieldMode:`static`,managedProviders:xv,allowedUserConnectionProviders:xv,deprecatedProviders:[],defaultPayload:{pipe_id:vv,connector:null,run_if:null,config:{providers:Sv,input_fields:{profile_url:{alias:``}},output_fields:{mobile:{alias:``,enabled:!0}}}}},kv=`person:mobile:workemail:waterfall@1`,Av=g(`work_email`),jv=g(`mobile`),Mv=[`leadmagic`,`amplemarket`],Nv=[{provider:`leadmagic`},{provider:`amplemarket`}],Pv=r.object({pipe_id:r.literal(kv),run_if:x(),connector:C(),config:r.object({providers:E({sectionKey:`general`,availableProviders:Mv,defaultProviders:Nv}),input_fields:R(r.object({[Av.name]:T({fieldName:Av.name})})),output_fields:L(r.object({[jv.name]:O({fieldName:jv.name})}))}).optional()}),Fv=e=>B(G(Av,e)),Iv={"person-mobile-workemail-waterfall-v1-leadmagic":{provider:`leadmagic`,allowManagedConnection:!0,credits:{default:3,level1:{credits:2,weight:1}},mode:`onSuccess`},"person-mobile-workemail-waterfall-v1-amplemarket":{provider:`amplemarket`,allowManagedConnection:!0,credits:{default:5,level1:{credits:4,weight:1}},mode:`onSuccess`}},Lv=class extends H{pipeId=kv;payload;payloadSchema=Pv;billableOperations=Iv;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return this.payload.config?.providers.map(e=>e.provider)||[]}estimateBillableOperations(){return this.getProviderNames().map(e=>q(e,this.billableOperations).billableOperation)}getInputRequirement(){return Fv(this.payload.config)}getRawOutputFields(){return{[jv.name]:this.catalogOutput(jv,{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:K(n),rateLimitOperation:e[t.provider],allowManagedConnection:!0}))}},Rv=Pv,zv={pipeId:kv,basePipe:U(kv),label:`Mobile number from email`,executionMode:`waterfall`,categories:[`people_data`],lifecycle:null,description:`Find a mobile phone number for a prospect.`,tags:[z.PHONE,z.WATERFALL],docPath:W(kv),billableOperations:Iv,defaultInputRequirement:Fv(null),inputFieldMode:`static`,outputFieldMode:`static`,allowedUserConnectionProviders:Mv,managedProviders:Mv,deprecatedProviders:[],defaultPayload:{pipe_id:kv,connector:null,run_if:null,config:{providers:Nv,input_fields:{work_email:{alias:``}},output_fields:{mobile:{alias:``,enabled:!0}}}}},Bv=`person:name:join@1`,Vv=g(`first_name`),Hv=g(`last_name`),Uv=g(`name`),Wv=r.object({pipe_id:r.literal(Bv),run_if:x(),connector:w(),config:r.object({input_fields:R(r.object({[Vv.name]:T({fieldName:Vv.name}),[Hv.name]:T({fieldName:Hv.name})})),output_fields:L(r.object({[Uv.name]:O({fieldName:Uv.name})}))}).optional()}),Gv=e=>Ua(G(Vv,e),G(Hv,e)),Kv={"person-name-join-v1-pipe0":{provider:`pipe0`,allowManagedConnection:!0,credits:{default:0},mode:`always`}},qv=class extends H{pipeId=Bv;payload;payloadSchema=Wv;billableOperations=Kv;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[`person-name-join-v1-pipe0`]}getInputRequirement(){return Gv(this.payload.config)}getRawOutputFields(){return{[Uv.name]:this.catalogOutput(Uv)}}getConnectionsRequirements(){return[{provider:`pipe0`,rateLimitRatio:1,rateLimitOperation:`pipe0_logic`,allowManagedConnection:!0}]}},Jv=Wv,Yv={pipeId:Bv,basePipe:U(Bv),label:`Join name`,executionMode:`single`,categories:[`people_data`],lifecycle:null,description:`Combine the first and last names of a prospect into a full name field.`,tags:[z.NAMES],docPath:W(Bv),billableOperations:Kv,defaultInputRequirement:Gv(null),inputFieldMode:`static`,outputFieldMode:`static`,allowedUserConnectionProviders:[],managedProviders:[`pipe0`],deprecatedProviders:[],defaultPayload:{pipe_id:Bv,run_if:null,connector:null,config:{input_fields:{first_name:{alias:``},last_name:{alias:``}},output_fields:{name:{alias:``,enabled:!0}}}}},Xv=`person:name:split@1`,Zv=g(`name`),Qv=g(`first_name`),$v=g(`last_name`),ey=r.object({pipe_id:r.literal(Xv),connector:w(),run_if:x(),config:r.object({input_fields:R(r.object({[Zv.name]:T({fieldName:Zv.name})})),output_fields:L(r.object({[Qv.name]:O({fieldName:Qv.name}),[$v.name]:O({fieldName:$v.name})}))}).optional()}),ty=e=>B(G(Zv,e)),ny={"person-name-split-v1-pipe0":{provider:`pipe0`,allowManagedConnection:!0,credits:{default:0},mode:`always`}},ry=class extends H{pipeId=Xv;payload;payloadSchema=ey;billableOperations=ny;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[`person-name-split-v1-pipe0`]}getInputRequirement(){return ty(this.payload.config)}getRawOutputFields(){return{[Qv.name]:this.catalogOutput(Qv),[$v.name]:this.catalogOutput($v)}}getConnectionsRequirements(){return[{provider:`pipe0`,rateLimitRatio:1,rateLimitOperation:`pipe0_logic`,allowManagedConnection:!0}]}},iy=ey,ay={pipeId:Xv,basePipe:U(Xv),label:`Split name`,executionMode:`single`,categories:[`people_data`],lifecycle:null,description:`Split a full name into first and last name.`,tags:[z.NAMES],docPath:W(Xv),billableOperations:ny,inputFieldMode:`static`,outputFieldMode:`static`,defaultInputRequirement:ty(null),allowedUserConnectionProviders:[],managedProviders:[`pipe0`],deprecatedProviders:[],defaultPayload:{pipe_id:Xv,run_if:null,connector:void 0,config:{input_fields:{name:{alias:``}},output_fields:{first_name:{alias:``,enabled:!0},last_name:{alias:``,enabled:!0}}}}},oy=`person:personalemail:profileurl:waterfall@1`,sy=g(`profile_url`),cy=g(`personal_email`),ly=g(`alternate_personal_emails`),uy=[`leadmagic`,`mixrank`],dy=[{provider:`leadmagic`},{provider:`mixrank`}],fy=r.object({pipe_id:r.literal(oy),run_if:x(),connector:C(),config:r.object({providers:E({sectionKey:`general`,availableProviders:uy,defaultProviders:dy}),input_fields:R(r.object({[sy.name]:T({fieldName:sy.name})})),output_fields:L(r.object({[cy.name]:O({fieldName:cy.name}),[ly.name]:O({fieldName:ly.name})}))}).optional()}),py=e=>B(G(sy,e)),my={"person-personalemail-profileurl-waterfall-v1-leadmagic":{provider:`leadmagic`,allowManagedConnection:!0,credits:{default:1},mode:`onSuccess`},"person-personalemail-profileurl-waterfall-v1-mixrank":{provider:`mixrank`,allowManagedConnection:!0,credits:{default:1},mode:`onSuccess`}},hy=class extends H{pipeId=oy;payload;payloadSchema=fy;billableOperations=my;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return this.payload.config?.providers.map(e=>e.provider)||[]}estimateBillableOperations(){return this.getProviderNames().map(e=>q(e,this.billableOperations).billableOperation)}getInputRequirement(){return py(this.payload.config)}getRawOutputFields(){return{[cy.name]:this.catalogOutput(cy,{isPrimaryOutput:!0}),[ly.name]:this.catalogOutput(ly)}}getConnectionsRequirements(){let e={leadmagic:`leadmagic_personal_email_finder`,mixrank:`mixrank-person-match`};return(this.payload.config?.providers||[]).map((t,n)=>({provider:t.provider,rateLimitRatio:K(n),rateLimitOperation:e[t.provider],allowManagedConnection:!0}))}},gy=fy,_y={pipeId:oy,basePipe:U(oy),allowedUserConnectionProviders:uy,managedProviders:uy,deprecatedProviders:[],label:`Personal email from LinkedIn`,executionMode:`waterfall`,categories:[`people_data`],lifecycle:null,description:`Find the personal email address of a prospect by using a professional profile URL as input.`,tags:[z.EMAIL,z.PERSONAL_EMAIL],docPath:W(oy),billableOperations:my,defaultInputRequirement:py(null),inputFieldMode:`static`,outputFieldMode:`static`,defaultPayload:{pipe_id:oy,connector:null,run_if:null,config:{providers:dy,input_fields:{profile_url:{alias:``}},output_fields:{personal_email:{alias:``,enabled:!0},alternate_personal_emails:{alias:``,enabled:!1}}}}},vy=g(`profile_url`),yy=g(`post_list_string`),by=g(`crustdata_post_list`),xy=`person:posts:crustdata@1`,Sy=r.object({pipe_id:r.literal(xy),run_if:x(),connector:C(),config:r.object({limit:wa({path:`config.limit`,groupPath:`config.general`,max:100,min:1,required:!0,sectionKey:`general`,info:``,label:`Limit`,legend:`Max. 100`}),input_fields:R(r.object({[vy.name]:T({fieldName:vy.name})})),output_fields:L(r.object({[yy.name]:O({fieldName:yy.name}),[by.name]:O({fieldName:by.name})}))}).optional()}),Cy=e=>B(G(vy,e)),wy={"person-posts-crustdata-v1-crustdata":{allowManagedConnection:!0,credits:{default:2,level1:{credits:1,weight:1}},mode:`onSuccess`,note:`1.5 credits per post. Posts are fetched in increments of 5.`,provider:`crustdata`}},Ty=class extends H{pipeId=xy;payload;payloadSchema=Sy;billableOperations=wy;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`crustdata`]}estimateBillableOperations(){return[`person-posts-crustdata-v1-crustdata`]}getInputRequirement(){return Cy(this.payload.config)}getRawOutputFields(){return{[yy.name]:this.catalogOutput(yy),[by.name]:this.catalogOutput(by)}}getConnectionsRequirements(){return[{provider:`crustdata`,rateLimitRatio:1,rateLimitOperation:`crustdata_realtime_post_fetch`,allowManagedConnection:!0}]}},Ey=Sy,Dy={pipeId:xy,inputFieldMode:`static`,outputFieldMode:`static`,basePipe:U(xy),label:`LinkedIn posts`,executionMode:`single`,categories:[`people_data`],lifecycle:null,description:`Find list of recent LinkedIn posts.`,tags:[z.LINKEDIN],docPath:W(xy),billableOperations:wy,allowedUserConnectionProviders:[`crustdata`],managedProviders:[`crustdata`],deprecatedProviders:[],defaultInputRequirement:Cy(null),defaultPayload:{pipe_id:xy,connector:null,run_if:null,config:{limit:5,input_fields:{profile_url:{alias:``}},output_fields:{crustdata_post_list:{alias:``,enabled:!0},post_list_string:{alias:``,enabled:!0}}}}},Oy=`person:profile:waterfall@1`,ky=g(`profile`),Ay=g(`profile_url`),jy=[`prospeo`,`icypeas`,`amplemarket`],My=[{provider:`amplemarket`},{provider:`prospeo`},{provider:`icypeas`}],Ny=r.object({pipe_id:r.literal(Oy),run_if:x(),connector:C(),config:r.object({providers:E({sectionKey:`general`,availableProviders:jy,defaultProviders:My}),input_fields:R(r.object({[Ay.name]:T({fieldName:Ay.name})})),output_fields:L(r.object({[ky.name]:O({fieldName:ky.name})}))}).optional()}),Py=e=>B(G(Ay,e)),Fy={"person-profile-waterfall-v1-icypeas":{provider:`icypeas`,credits:{default:1,level1:{credits:.5,weight:1}},mode:`onSuccess`,allowManagedConnection:!0},"person-profile-waterfall-v1-prospeo":{provider:`prospeo`,credits:{default:1,level1:{credits:.5,weight:1}},mode:`onSuccess`,allowManagedConnection:!0},"person-profile-waterfall-v1-amplemarket":{provider:`amplemarket`,credits:{default:1,level1:{credits:.5,weight:1}},mode:`onSuccess`,allowManagedConnection:!0}},Iy=class extends H{pipeId=Oy;payload;payloadSchema=Ny;billableOperations=Fy;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return this.payload.config?.providers.map(e=>e.provider)||[]}estimateBillableOperations(){return this.getProviderNames().map(e=>q(e,this.billableOperations).billableOperation)}getInputRequirement(){return Py(this.payload.config)}getRawOutputFields(){return{[ky.name]:this.catalogOutput(ky,{isPrimaryOutput:!0})}}getConnectionsRequirements(){let e={icypeas:`icypeas_scrape_profile`,prospeo:`prospeo_social_profile_lookup`,amplemarket:`amplemarket-person-reveal`};return(this.payload.config?.providers||[]).map((t,n)=>({provider:t.provider,rateLimitRatio:K(n),rateLimitOperation:e[t.provider],allowManagedConnection:!0}))}},Ly=Ny,Ry={pipeId:Oy,basePipe:U(Oy),label:`Full LinkedIn profile`,executionMode:`waterfall`,categories:[`people_data`],lifecycle:null,description:`Find a JSON representation of a LinkedIn profile.`,docPath:W(Oy),tags:[z.LINKEDIN,z.WATERFALL],managedProviders:jy,deprecatedProviders:[],allowedUserConnectionProviders:jy,inputFieldMode:`static`,outputFieldMode:`static`,billableOperations:Fy,defaultInputRequirement:Py(null),defaultPayload:{pipe_id:Oy,run_if:null,connector:null,config:{providers:My,input_fields:{profile_url:{alias:``}},output_fields:{profile:{alias:``,enabled:!0}}}}},zy=g(`work_email`),By=g(`crustdata_person_match`),Vy=g(`crustdata_profile_match_score`),Hy=`person:profile:workemail:crustdata@1`,Uy=r.object({pipe_id:r.literal(Hy),run_if:x(),connector:C(),config:r.object({input_fields:R(r.object({[zy.name]:T({fieldName:zy.name})})),output_fields:L(r.object({[By.name]:O({fieldName:By.name}),[Vy.name]:O({fieldName:Vy.name})}))}).optional()}),Wy=e=>B(G(zy,e)),Gy={"person-profile-workemail-crustdata-v1-crustdata":{allowManagedConnection:!0,credits:{default:5},mode:`onSuccess`,provider:`crustdata`}},Ky=class extends H{pipeId=Hy;payload;payloadSchema=Uy;billableOperations=Gy;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`crustdata`]}estimateBillableOperations(){return[`person-profile-workemail-crustdata-v1-crustdata`]}getInputRequirement(){return Wy(this.payload.config)}getRawOutputFields(){return{[By.name]:this.catalogOutput(By),[Vy.name]:this.catalogOutput(Vy)}}getConnectionsRequirements(){return[{provider:`crustdata`,rateLimitRatio:1,rateLimitOperation:`crustdata_realtime_person_enrich`,allowManagedConnection:!0}]}},qy=Uy,Jy={pipeId:Hy,inputFieldMode:`static`,outputFieldMode:`static`,basePipe:U(Hy),label:`Profile from work email`,executionMode:`single`,categories:[`people_data`],lifecycle:null,description:`Find person profile by their work email address.`,tags:[z.EMAIL,z.PEOPLE_PROFILES],docPath:W(Hy),billableOperations:Gy,allowedUserConnectionProviders:[`crustdata`],managedProviders:[`crustdata`],deprecatedProviders:[],defaultInputRequirement:Wy(null),defaultPayload:{pipe_id:Hy,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}}}}},Yy=`person:profileurl:email:waterfall@1`,Xy=g(`email`),Zy=g(`work_email`),Qy=g(`profile_url`),$y=[`leadmagic`],eb=[{provider:`leadmagic`}],tb=r.object({pipe_id:r.literal(Yy),run_if:x(),connector:C(),config:r.object({providers:E({sectionKey:`general`,defaultProviders:eb,availableProviders:$y}),input_fields:R(r.object({[Xy.name]:T({fieldName:Xy.name}),[Zy.name]:T({fieldName:Zy.name})})),output_fields:L(r.object({[Qy.name]:O({fieldName:Qy.name})}))}).optional()}),nb=e=>V(G(Xy,e),G(Zy,e)),rb={"person-profileurl-email-waterfall-v1-leadmagic":{provider:`leadmagic`,allowManagedConnection:!0,credits:{default:3.5},mode:`onSuccess`}},ib=class extends H{pipeId=Yy;payload;payloadSchema=tb;billableOperations=rb;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return this.payload.config?.providers.map(e=>e.provider)||[]}estimateBillableOperations(){return this.getProviderNames().map(e=>q(e,this.billableOperations).billableOperation)}getInputRequirement(){return nb(this.payload.config)}getRawOutputFields(){return{[Qy.name]:this.catalogOutput(Qy,{isPrimaryOutput:!0})}}getConnectionsRequirements(){let e={leadmagic:`leadmagic_email_to_b2b_profile`};return(this.payload.config?.providers||[]).map((t,n)=>({provider:t.provider,rateLimitRatio:K(n),rateLimitOperation:e[t.provider],allowManagedConnection:!0}))}},ab=tb,ob={pipeId:Yy,basePipe:U(Yy),managedProviders:$y,deprecatedProviders:[],allowedUserConnectionProviders:$y,label:`LinkedIn URL from email`,executionMode:`waterfall`,categories:[`people_data`],lifecycle:null,description:`Find the URL for a prospect's LinkedIn profile from their personal or professional email address.`,tags:[z.LINKEDIN],docPath:W(Yy),billableOperations:rb,inputFieldMode:`static`,outputFieldMode:`static`,defaultInputRequirement:nb(null),defaultPayload:{pipe_id:Yy,run_if:null,connector:null,config:{providers:eb,input_fields:{email:{alias:``},work_email:{alias:``}},output_fields:{profile_url:{alias:``,enabled:!0}}}}},sb=`person:profileurl:name@1`,cb=g(`name`),lb=g(`company_name`),ub=g(`location_hint`),db=g(`profile_url`),fb=r.object({pipe_id:r.literal(sb),connector:w(),run_if:x(),config:r.object({input_fields:R(r.object({[cb.name]:T({fieldName:cb.name}),[lb.name]:T({fieldName:lb.name}),[ub.name]:T({fieldName:ub.name})})),output_fields:L(r.object({[db.name]:O({fieldName:db.name})}))}).optional()}),pb=e=>Ua(B(G(cb,e)),B(G(lb,e)),Wa(G(ub,e))),mb={"person-profileurl-name-v1-pipe0":{provider:`pipe0`,allowManagedConnection:!0,credits:{default:.6},mode:`always`}},hb=class extends H{pipeId=sb;payload;payloadSchema=fb;billableOperations=mb;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[`person-profileurl-name-v1-pipe0`]}getInputRequirement(){return pb(this.payload.config)}getRawOutputFields(){return{[db.name]:this.catalogOutput(db)}}getConnectionsRequirements(){return[{provider:`serper`,rateLimitRatio:1,rateLimitOperation:`serper_search`,allowManagedConnection:!0}]}},gb=fb,_b={pipeId:sb,basePipe:U(sb),label:`LinkedIn URL from name`,executionMode:`single`,categories:[`people_data`],lifecycle:null,allowedUserConnectionProviders:[],managedProviders:[`pipe0`],deprecatedProviders:[],description:`Find the LinkedIn profile URL by using the prospect's name as input.`,docPath:W(sb),tags:[z.LINKEDIN],billableOperations:mb,defaultInputRequirement:pb(null),inputFieldMode:`static`,outputFieldMode:`static`,defaultPayload:{pipe_id:sb,connector:void 0,run_if:null,config:{input_fields:{company_name:{alias:``},location_hint:{alias:``},name:{alias:``}},output_fields:{profile_url:{alias:``,enabled:!0}}}}},vb=`person:workemail:profileurl:waterfall@1`,yb=g(`profile_url`),bb=g(`work_email`),xb=g(`email_validation_status`),Sb=[`hunter`,`amplemarket`,`findymail`,`leadmagic`,`crustdata`],Cb=[{provider:`hunter`},{provider:`amplemarket`},{provider:`leadmagic`},{provider:`findymail`},{provider:`crustdata`}],wb=r.object({pipe_id:r.literal(vb),connector:C(),run_if:x(),config:r.object({providers:E({availableProviders:Sb,defaultProviders:Cb,sectionKey:`general`}),allow_catch_all_emails:D({path:`config.allow_catch_all_emails`,defaultValue:!0,groupPath:`config.general`,sectionKey:`general`,info:``,label:`Allow catch-all emails`}),allow_risky_emails:D({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({[yb.name]:T({fieldName:yb.name})})),output_fields:L(r.object({[bb.name]:O({fieldName:bb.name}),[xb.name]:O({fieldName:xb.name})}))}).optional()}),Tb=e=>B(G(yb,e)),Eb={"person-workemail-profileurl-waterfall-v1-hunter":{provider:`hunter`,allowManagedConnection:!0,credits:{default:1},mode:`onSuccess`},"person-workemail-profileurl-waterfall-v1-leadmagic":{provider:`leadmagic`,allowManagedConnection:!0,credits:{default:2,level1:{credits:.7,weight:1}},mode:`onSuccess`},"person-workemail-profileurl-waterfall-v1-findymail":{provider:`findymail`,allowManagedConnection:!0,credits:{default:2,level1:{credits:1,weight:1}},mode:`onSuccess`},"person-workemail-profileurl-waterfall-v1-crustdata":{provider:`crustdata`,allowManagedConnection:!0,credits:{default:3,level1:{credits:2,weight:1}},mode:`onSuccess`},"person-workemail-profileurl-waterfall-v1-amplemarket":{provider:`amplemarket`,allowManagedConnection:!0,credits:{default:2.5,level1:{credits:1.5,weight:1}},mode:`onSuccess`}},Db=class extends H{pipeId=vb;payload;payloadSchema=wb;billableOperations=Eb;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return this.payload.config?.providers.map(e=>e.provider)||[]}estimateBillableOperations(){return this.getProviderNames().map(e=>q(e,this.billableOperations).billableOperation)}getInputRequirement(){return Tb(this.payload.config)}getRawOutputFields(){return{[bb.name]:this.catalogOutput(bb,{isPrimaryOutput:!0}),[xb.name]:this.catalogOutput(xb,{isPrimaryOutput:!1})}}getConnectionsRequirements(){let e={leadmagic:`leadmagic_email_b2b_lookup`,hunter:`prospeo_email_lookup`,amplemarket:`amplemarket-person-reveal`,findymail:`findymail_email_b2b_lookup`,crustdata:`crustdata_realtime_person_enrich`};return(this.payload.config?.providers||[]).map((t,n)=>({provider:t.provider,rateLimitRatio:K(n),rateLimitOperation:e[t.provider],allowManagedConnection:!0}))}},Ob=wb,kb={pipeId:vb,basePipe:U(vb),label:`Work email from LinkedIn URL`,executionMode:`waterfall`,categories:[`people_data`],lifecycle:null,description:`Find work email addresses from B2B profile.`,tags:[z.EMAIL,z.WORK_EMAIL,z.WATERFALL],docPath:W(vb),managedProviders:Sb,allowedUserConnectionProviders:Sb,deprecatedProviders:[],inputFieldMode:`static`,outputFieldMode:`static`,billableOperations:Eb,defaultInputRequirement:Tb(null),defaultPayload:{pipe_id:vb,connector:null,run_if:null,config:{providers:Cb,allow_catch_all_emails:!0,allow_risky_emails:!0,input_fields:{profile_url:{alias:``}},output_fields:{work_email:{alias:``,enabled:!0},email_validation_status:{alias:``,enabled:!1}}}}},Ab=`person:workemail:waterfall@1`,jb=g(`name`),Mb=g(`company_domain`),Nb=g(`company_name`),Pb=g(`work_email`),Fb=g(`email_validation_status`),Ib=[`leadmagic`,`prospeo`,`amplemarket`,`hunter`,`icypeas`,`findymail`],Lb=[{provider:`leadmagic`},{provider:`prospeo`},{provider:`amplemarket`},{provider:`hunter`},{provider:`icypeas`},{provider:`findymail`}],Rb={"person-workemail-waterfall-v1-leadmagic":{provider:`leadmagic`,allowManagedConnection:!0,credits:{default:.5,level1:{credits:.25,weight:1}},mode:`onSuccess`},"person-workemail-waterfall-v1-icypeas":{provider:`icypeas`,allowManagedConnection:!0,credits:{default:.5,level1:{credits:.25,weight:1}},mode:`onSuccess`},"person-workemail-waterfall-v1-prospeo":{provider:`prospeo`,allowManagedConnection:!0,credits:{default:1,level1:{credits:.5,weight:1}},mode:`onSuccess`},"person-workemail-waterfall-v1-findymail":{provider:`findymail`,allowManagedConnection:!0,credits:{default:1.5,level1:{credits:.75,weight:1}},mode:`onSuccess`},"person-workemail-waterfall-v1-hunter":{provider:`hunter`,allowManagedConnection:!0,credits:{default:1.3,level1:{credits:.75,weight:1}},mode:`onSuccess`},"person-workemail-waterfall-v1-amplemarket":{provider:`amplemarket`,allowManagedConnection:!0,credits:{default:3,level1:{credits:2,weight:1}},mode:`onSuccess`}},zb=r.object({pipe_id:r.literal(Ab),connector:C(),run_if:x(),config:r.object({providers:E({availableProviders:Ib,defaultProviders:Lb,sectionKey:`general`,providerCredits:eo(Rb,Ib)}),allow_catch_all_emails:D({path:`config.allow_catch_all_emails`,defaultValue:!0,groupPath:`config.general`,sectionKey:`general`,info:`Catch-alls appear valid but remain undeliverable-risk.`,label:`Allow catch-all emails`}),allow_risky_emails:D({path:`config.allow_risky_emails`,defaultValue:!0,groupPath:`config.general`,sectionKey:`general`,info:`DNS configuration and spam reputation may flag emails as high-risk.`,label:`Allow risky emails`}),input_fields:R(r.object({[jb.name]:T({fieldName:jb.name}),[Mb.name]:T({fieldName:Mb.name}),[Nb.name]:T({fieldName:Nb.name})})),output_fields:L(r.object({[Pb.name]:O({fieldName:Pb.name}),[Fb.name]:O({fieldName:Fb.name})}))}).optional()}),Bb=e=>Ua(B(G(jb,e)),V(G(Mb,e),G(Nb,e))),Vb=class extends H{pipeId=Ab;payload;payloadSchema=zb;billableOperations=Rb;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return this.payload.config?.providers.map(e=>e.provider)||[]}estimateBillableOperations(){return this.getProviderNames().map(e=>q(e,this.billableOperations).billableOperation)}getInputRequirement(){return Bb(this.payload.config)}getRawOutputFields(){return{[Pb.name]:this.catalogOutput(Pb,{isPrimaryOutput:!0}),[Fb.name]:this.catalogOutput(Fb,{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:K(n),rateLimitOperation:e[t.provider],allowManagedConnection:!0}))}},Hb=zb,Ub={pipeId:Ab,basePipe:U(Ab),label:`Work email from name`,executionMode:`waterfall`,categories:[`people_data`],lifecycle:null,description:`Find work email addresses in a waterfall motion.`,tags:[z.EMAIL,z.WORK_EMAIL,z.WATERFALL],docPath:W(Ab),managedProviders:Ib,deprecatedProviders:[],allowedUserConnectionProviders:Ib,inputFieldMode:`static`,outputFieldMode:`static`,billableOperations:Rb,defaultInputRequirement:Bb(null),defaultPayload:{pipe_id:Ab,connector:null,run_if:null,config:{providers:Lb,allow_catch_all_emails:!0,allow_risky_emails:!0,input_fields:{company_name:{alias:``},company_domain:{alias:``},name:{alias:``}},output_fields:{work_email:{alias:``,enabled:!0},email_validation_status:{alias:``,enabled:!1}}}}},Wb=`prompt:run@1`,Gb=`prompt-run-v1`,Kb=mi(Gb),qb=r.object({pipe_id:r.literal(Wb),connector:C(),run_if:x(),config:r.object({prompt:ta({sectionKey:`general`,path:`config.prompt`,placeholder:J(`prompt`),groupPath:`config.prompt`,supportedTags:[`input`,`output`]}),model:Sa({sectionKey:`general`,label:`Model`,path:`config.model`,groupPath:`config.prompt`,billableOperations:Kb})})}),Jb=class extends H{pipeId=Wb;payload;payloadSchema=qb;billableOperations=Kb;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return gi(this.payload.config.model)}estimateBillableOperations(){return[hi(this.payload.config.model,Gb)]}getInputRequirement(){return hh([this.payload.config.prompt.template])}getSecretRequirements(){return gh([this.payload.config.prompt.template])}getConstantRequirements(){return _h([this.payload.config.prompt.template])}getRawOutputFields(){let e=this.payload.config.prompt.template,t=this.payload.config.prompt.json_schemas??{},n={},r;try{r=Wr(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 _i(this.payload.config.model)}},Yb=qb,Xb={pipeId:Wb,inputFieldMode:`config`,outputFieldMode:`config`,basePipe:U(Wb),label:`AI prompt`,executionMode:`single`,categories:[`actions`,`tools`],lifecycle:null,description:`Executes configurable AI prompts with structured output fields.`,detailed_description:`General-purpose AI prompt runner. Inputs and outputs are fully dynamic β€” defined by the tags in the prompt template.`,tags:[z.AI],docPath:W(Wb),defaultInputRequirement:null,billableOperations:Kb,allowedUserConnectionProviders:vi(),managedProviders:vi(),deprecatedProviders:[],defaultPayload:{pipe_id:Wb,connector:null,run_if:null,config:{model:`openai-gpt-latest`,prompt:{template:``,json_schemas:{}}}}},Zb=`sheet:row:append@1`,Qb=g(`sheet_record_id`),$b=g(`created_sheet`),ex=[{label:`Demo leads`,value:`demo-leads`},{label:`Demo companies`,value:`demo-companies`},{label:`Demo contacts`,value:`demo-contacts`}],tx=[{label:`Demo team`,value:`sandbox-team-1`},{label:`Demo workspace`,value:`sandbox-team-2`}],nx={requires:{connection:`pipe0`},enabledIf:Sn(`pipe0`,`Select a pipe0 connection to see sheet suggestions`),options:async({query:e,client:t,environment:n})=>n===`sandbox`?ex:t?(await t.sheets.list({query:e})).map(e=>({label:e.name&&e.name!==e.slug?`${e.name} (${e.slug})`:e.slug,value:e.slug})):[],widgets:{provider_logo:{provider:`pipe0`}}},rx={requires:{connection:`pipe0`},enabledIf:Sn(`pipe0`,`Select a pipe0 connection to see team suggestions`),options:async({query:e,client:t,environment:n})=>n===`sandbox`?tx:t?(await t.teams.list({query:e})).map(e=>({label:e.name,value:e.id})):[],widgets:{provider_logo:{provider:`pipe0`}}},ix=r.object({pipe_id:r.literal(Zb),connector:ia(),run_if:x(),config:r.object({sheet:S({label:`Destination sheet`,info:"Sheet identifier. Either a literal slug, or type `@` to insert a field reference / `$` to insert a secret reference.",groupPath:`config.general`,sectionKey:`general`,inputType:`text`,path:`config.sheet`,minLength:3,expectedTagType:`string`,expectedTagFormat:`text`,optionsDef:nx}),run:D({defaultValue:!0,groupPath:`config.advanced`,path:`config.run`,sectionKey:`general`,description:`Auto-run sheet row after append action.`,label:`Run after append`}),allow_field_creation:D({label:`Create unknown fields`,defaultValue:!0,groupPath:`config.advanced`,path:`config.allow_field_creation`,sectionKey:`general`,description:`Add unknown fields as new sheet columns.`}),allow_sheet_creation:D({label:`Create missing sheets`,description:`Create new sheet if none exists with the provided name`,defaultValue:!0,groupPath:`config.advanced`,path:`config.allow_sheet_creation`,sectionKey:`general`}),new_sheet_team_id:Da({label:`Team`,info:`Optional hint for the team where the sheet should be created. Only used when a new sheet is created.`,placeholder:`Select a team…`,required:!1,groupPath:`config.advanced`,path:`config.new_sheet_team_id`,sectionKey:`general`,optionsDef:rx,enabledIf:e=>e.config?.allow_sheet_creation?{disabled:!1}:{disabled:!0,message:`Turn on β€œUpsert sheets” to specify a team.`}}),included_fields:la({label:`Fields`,info:`All fields are written if empty.`,groupPath:`config.general`,path:`config.included_fields`,sectionKey:`general`,disableSearch:!0}),output_fields:L(r.object({[Qb.name]:O({fieldName:Qb.name}),[$b.name]:O({fieldName:$b.name})}))})}),ax={"sheet-row-append-v1-pipe0":{provider:`pipe0`,allowManagedConnection:!1,credits:null,mode:null}},ox=class extends H{pipeId=Zb;payload;payloadSchema=ix;billableOperations=ax;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[`sheet-row-append-v1-pipe0`]}getInputRequirement(){let e=[hh([this.payload.config.sheet],{expectedType:`string`,expectedFormat:`text`})];if(this.payload.config.included_fields?.length)for(let t of this.payload.config.included_fields)e.push(B({name:t.field_name,resolvedName:t.field_name,label:``,description:``,type:e=>{let n=mh(e,t.field_name);if(!n)throw Error(`Unable to find field with name ${t.field_name}. But needed by prompt parser.`);return n.type||`unknown`},format:null}));return Ua(...e)}getSecretRequirements(){return gh([this.payload.config.sheet])}getConstantRequirements(){return _h([this.payload.config.sheet])}getRawOutputFields(){return{[Qb.name]:this.catalogOutput(Qb),[$b.name]:this.catalogOutput($b)}}getConnectionsRequirements(){return[{provider:`pipe0`,rateLimitRatio:1,rateLimitOperation:`pipe0-sheet-operation`,allowManagedConnection:!0}]}},sx=ix,cx={pipeId:Zb,basePipe:U(Zb),label:`Append row to sheet`,executionMode:`single`,categories:[`actions`,`tools`],lifecycle:null,allowedUserConnectionProviders:[`pipe0`],managedProviders:[],deprecatedProviders:[],description:"Add rows to a pipe0 sheet. The sheet identifier may be a literal slug or a `{{ field_name }}` tag.",docPath:W(Zb),tags:[z.FIELDS],billableOperations:ax,defaultInputRequirement:null,inputFieldMode:`config`,outputFieldMode:`static`,defaultPayload:{pipe_id:Zb,connector:{strategy:`first`,connections:[]},run_if:null,config:{sheet:``,run:!0,allow_field_creation:!0,allow_sheet_creation:!0,new_sheet_team_id:``,included_fields:[],output_fields:{sheet_record_id:{alias:``,enabled:!0},created_sheet:{alias:``,enabled:!0}}}}},lx=`sheet:row:expandappend@1`,ux=g(`sheet_record_ids`),dx=g(`input_objects`),fx=r.object({pipe_id:r.literal(lx),connector:ia(),run_if:x(),config:r.object({sheet:ya({label:`Sheet name`,info:`Unique identifier for the sheet`,groupPath:`config.general`,sectionKey:`general`,inputType:`text`,path:`config.sheet`,minLength:3}),run:D({defaultValue:!0,groupPath:`config.general`,path:`config.run`,sectionKey:`general`,info:`Enrich record after write. Ignored if target sheet writes to other sheets.`,label:`Run`}),allow_field_creation:D({defaultValue:!0,groupPath:`config.general`,path:`config.allow_field_creation`,sectionKey:`general`,info:`Add unknown object fields to the sheet definition.`,label:`Allow field creation`}),input_fields:R(r.object({[dx.name]:T({fieldName:dx.name})})),output_fields:L(r.object({[ux.name]:O({fieldName:ux.name})}))})}),px={"sheet-row-expandappend-v1-pipe0":{provider:`pipe0`,allowManagedConnection:!1,credits:null,mode:null}},mx=e=>B(G(dx,e)),hx=class extends H{pipeId=lx;payload;payloadSchema=fx;billableOperations=px;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[`sheet-row-expandappend-v1-pipe0`]}getInputRequirement(){return mx(this.payload.config)}getRawOutputFields(){return{[ux.name]:this.catalogOutput(ux)}}getConnectionsRequirements(){return[{provider:`pipe0`,rateLimitRatio:1,rateLimitOperation:`pipe0-sheet-operation`,allowManagedConnection:!0}]}},gx=fx,_x={pipeId:lx,basePipe:U(lx),label:`Object list to sheet rows`,executionMode:`single`,categories:[`actions`,`tools`],lifecycle:null,allowedUserConnectionProviders:[`pipe0`],managedProviders:[],deprecatedProviders:[],description:`Expand a list of nested objects into sheet rows.`,docPath:W(lx),tags:[z.FIELDS],billableOperations:px,defaultInputRequirement:mx(null),inputFieldMode:`static`,outputFieldMode:`static`,defaultPayload:{pipe_id:lx,connector:{strategy:`first`,connections:[]},run_if:null,config:{sheet:``,run:!0,allow_field_creation:!0,input_fields:{input_objects:{alias:``}},output_fields:{sheet_record_ids:{alias:``,enabled:!0}}}}},vx=`template:fill@1`,yx=g(`template_output`),bx=r.object({pipe_id:r.literal(vx),connector:C(),run_if:x(),config:r.object({template:na({sectionKey:`general`,path:`config.template`,label:`Template`,placeholder:J(`template`),groupPath:`config.general`,required:!0}),output_fields:L(r.object({[yx.name]:O({fieldName:yx.name})}))})}),xx={"template-fill-v1-pipe0":{credits:{default:0},allowManagedConnection:!0,provider:`pipe0`,mode:`always`}},Sx=class extends H{pipeId=vx;payload;payloadSchema=bx;billableOperations=xx;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[`template-fill-v1-pipe0`]}getInputRequirement(){return hh([this.payload.config.template])}getSecretRequirements(){return gh([this.payload.config.template])}getConstantRequirements(){return _h([this.payload.config.template])}getRawOutputFields(){return{[yx.name]:this.catalogOutput(yx)}}getConnectionsRequirements(){return[]}},Cx=bx,wx={pipeId:vx,inputFieldMode:`config`,outputFieldMode:`config`,basePipe:U(vx),label:`Fill a text template`,executionMode:`single`,categories:[`tools`],lifecycle:null,description:`Replaces template tags like {{ name }} with actual values.`,tags:[z.TEXT],docPath:W(vx),defaultInputRequirement:null,billableOperations:xx,allowedUserConnectionProviders:[],managedProviders:[`pipe0`],deprecatedProviders:[],defaultPayload:{pipe_id:vx,connector:null,run_if:null,config:{template:``,output_fields:{template_output:{alias:``,enabled:!0}}}}},Tx=`website:extract:firecrawl@1`,Ex=g(`website_url`),Dx=g(`firecrawl_extract_result`),Ox=r.object({pipe_id:r.literal(Tx),connector:C(),run_if:x(),config:r.object({json_schema:Ea({sectionKey:`general`,groupPath:`config.extraction`,path:`config.json_schema`,label:`Output JSON schema`,info:`Specify the data you want to extract as a JSON schema.`,allowEmpty:!1,required:!0}),extraction_prompt:ba({sectionKey:`general`,groupPath:`config.extraction`,path:`config.extraction_prompt`,label:`Extraction Prompt`,info:`Prompt the scraper on what it should extract. Template tags are not supported.`,rows:5,minLength:10,placeholder:`E.g. Extract the company missing and latest news.`}),enable_full_domain_crawl:D({sectionKey:`general`,groupPath:`config.extraction`,defaultValue:!1,path:`config.enable_full_domain_crawl`,info:`If this option is enabled all URLs from this domain will be scraped.`,label:`Crawl full domain`}),enable_web_search:D({sectionKey:`general`,groupPath:`config.extraction`,label:`Enable web search`,path:`enable_web_search`,defaultValue:!1,info:`When 'true', the extraction will follow links outside the specified domain.`}),input_fields:R(r.object({[Ex.name]:T({fieldName:Ex.name})})),output_fields:L(r.object({[Dx.name]:O({fieldName:Dx.name})}))})}),kx=e=>B(G(Ex,e)),Ax={"website-extract-firecrawl-v1-firecrawl":{allowManagedConnection:!0,provider:`firecrawl`,credits:{default:2,level1:{credits:1,weight:1}},mode:`onSuccess`}},jx=class extends H{pipeId=Tx;payload;payloadSchema=Ox;billableOperations=Ax;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`firecrawl`]}estimateBillableOperations(){return[`website-extract-firecrawl-v1-firecrawl`]}getInputRequirement(){return kx(this.payload.config)}getRawOutputFields(){return{[Dx.name]:this.catalogOutput(Dx)}}getConnectionsRequirements(){return[{provider:`firecrawl`,rateLimitRatio:1,rateLimitOperation:`firecrawl_generic`,allowManagedConnection:!0}]}},Mx=Ox,Nx={pipeId:Tx,basePipe:U(Tx),label:`Extract`,executionMode:`single`,categories:[`tools`],lifecycle:null,description:`Perform advanced AI scraping to extract data from any website. Search all subdomains and combine scraped data with search results.`,tags:[z.SCRAPE],docPath:W(Tx),billableOperations:Ax,inputFieldMode:`static`,outputFieldMode:`static`,allowedUserConnectionProviders:[`firecrawl`],managedProviders:[`firecrawl`],deprecatedProviders:[],defaultInputRequirement:kx(null),defaultPayload:{pipe_id:Tx,run_if:null,connector:null,config:{json_schema:{type:`object`},enable_full_domain_crawl:!1,enable_web_search:!1,extraction_prompt:``,input_fields:{website_url:{alias:``}},output_fields:{firecrawl_extract_result:{alias:``,enabled:!0}}}}},Px=`website:extract:parallel@1`,Fx=g(`website_url`),Ix=g(`parallel_extract_result`),Lx=r.object({pipe_id:r.literal(Px),connector:C(),run_if:x(),config:r.object({objective:ba({sectionKey:`general`,groupPath:`config.extraction`,path:`config.objective`,label:`Objective`,info:`Natural-language description of what to extract. Template tags are not supported.`,rows:5,minLength:10,placeholder:`E.g. When was the company founded and what does it do?`}),input_fields:R(r.object({[Fx.name]:T({fieldName:Fx.name})})),output_fields:L(r.object({[Ix.name]:O({fieldName:Ix.name})}))})}),Rx=e=>B(G(Fx,e)),zx={"website-extract-parallel-v1-parallel":{allowManagedConnection:!0,provider:`parallel`,credits:{default:.1},mode:`onSuccess`}},Bx=class extends H{pipeId=Px;payload;payloadSchema=Lx;billableOperations=zx;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`parallel`]}estimateBillableOperations(){return[`website-extract-parallel-v1-parallel`]}getInputRequirement(){return Rx(this.payload.config)}getRawOutputFields(){return{[Ix.name]:this.catalogOutput(Ix,{isPrimaryOutput:!0})}}getConnectionsRequirements(){return[{provider:`parallel`,rateLimitRatio:1,rateLimitOperation:`parallel_extract`,allowManagedConnection:!0}]}},Vx=Lx,Hx={pipeId:Px,basePipe:U(Px),label:`Extract (Parallel)`,executionMode:`single`,categories:[`tools`],lifecycle:null,description:`Extract relevant content from a website using Parallel's Extract API. Returns a flat list of results β€” page title, publish date and the excerpts most relevant to your objective.`,tags:[z.SCRAPE],docPath:W(Px),billableOperations:zx,inputFieldMode:`static`,outputFieldMode:`static`,allowedUserConnectionProviders:[`parallel`],managedProviders:[`parallel`],deprecatedProviders:[],defaultInputRequirement:Rx(null),defaultPayload:{pipe_id:Px,run_if:null,connector:null,config:{objective:``,input_fields:{website_url:{alias:``}},output_fields:{parallel_extract_result:{alias:``,enabled:!0}}}}},Ux=`website:maplinks:firecrawl@1`,Wx={"website-maplinks-firecrawl-v1-firecrawl":{allowManagedConnection:!0,provider:`firecrawl`,credits:{default:1},mode:`onSuccess`}},Gx=g(`website_url`),Kx=g(`mapped_links`),qx=r.object({pipe_id:r.literal(Ux),connector:C(),run_if:x(),config:r.object({page_limit:wa({label:`Page limit`,info:`Number of pages searched`,groupPath:`config.general`,max:50,min:1,required:!1,path:`config.page_limit`,sectionKey:`general`}),sitemap:xa({label:`Sitemap`,info:`Include sitemap links`,sectionKey:`general`,groupPath:`config.general`,path:`config.sitemap`,defaultValue:`include`,required:!1,options:[{value:`include`,label:`Include`},{value:`skip`,label:`Skip`},{value:`only`,label:`Only`}]}),search:ya({sectionKey:`general`,label:`Search`,inputType:`text`,info:`Return matching urls`,groupPath:`config.general`,path:`config.search`}).default(``),input_fields:R(r.object({[Gx.name]:T({fieldName:Gx.name})})),output_fields:L(r.object({[Kx.name]:O({fieldName:Kx.name})}))}).optional()}),Jx=e=>B(G(Gx,e)),Yx=class extends H{pipeId=Ux;payload;payloadSchema=qx;billableOperations=Wx;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`firecrawl`]}estimateBillableOperations(){return[`website-maplinks-firecrawl-v1-firecrawl`]}getInputRequirement(){return Jx(this.payload.config)}getRawOutputFields(){return{[Kx.name]:this.catalogOutput(Kx)}}getConnectionsRequirements(){return[{provider:`firecrawl`,rateLimitRatio:1,rateLimitOperation:`firecrawl_map_requests`,allowManagedConnection:!0}]}},Xx=qx,Zx={pipeId:Ux,basePipe:U(Ux),label:`Map domain links`,executionMode:`single`,categories:[`tools`],lifecycle:null,description:`Input a website and get all internal URLs on the website. Results do not include links to external pages.`,tags:[z.SCRAPE],docPath:W(Ux),billableOperations:Wx,inputFieldMode:`static`,outputFieldMode:`static`,allowedUserConnectionProviders:[`firecrawl`],managedProviders:[`firecrawl`],deprecatedProviders:[],defaultInputRequirement:Jx(null),defaultPayload:{pipe_id:Ux,run_if:null,connector:null,config:{page_limit:25,sitemap:`include`,search:``,input_fields:{website_url:{alias:``}},output_fields:{mapped_links:{alias:``,enabled:!0}}}}},Qx=`website:scrape:firecrawl@1`,$x=g(`website_url`),eS=g(`website_markdown`),tS=g(`website_html`),nS=g(`website_links`),rS=r.object({pipe_id:r.literal(Qx),connector:C(),run_if:x(),config:r.object({scrape_main_only:D({defaultValue:!1,label:`Scrape main content only?`,info:`If selected, content like headers, footers, and sidebars are excluded from the scrape results.`,sectionKey:`general`,groupPath:`config.general`,path:`config.scrape_main_only`}),input_fields:R(r.object({[$x.name]:T({fieldName:$x.name})})),output_fields:L(r.object({[eS.name]:O({fieldName:eS.name}),[tS.name]:O({fieldName:tS.name}),[nS.name]:O({fieldName:nS.name})}))}).optional()}),iS=e=>B(G($x,e)),aS={"website-scrape-firecrawl-v1-firecrawl":{allowManagedConnection:!0,provider:`firecrawl`,credits:{default:.1,level1:{credits:.05,weight:1}},mode:`onSuccess`}},oS=class extends H{pipeId=Qx;payload;payloadSchema=rS;billableOperations=aS;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`firecrawl`]}estimateBillableOperations(){return[`website-scrape-firecrawl-v1-firecrawl`]}getInputRequirement(){return iS(this.payload.config)}getRawOutputFields(){return{[eS.name]:this.catalogOutput(eS),[tS.name]:this.catalogOutput(tS),[nS.name]:this.catalogOutput(nS)}}getConnectionsRequirements(){return[{provider:`firecrawl`,rateLimitRatio:1,rateLimitOperation:`firecrawl_generic`,allowManagedConnection:!0}]}},sS=rS,cS={pipeId:Qx,basePipe:U(Qx),label:`Scrape`,executionMode:`single`,categories:[`tools`],lifecycle:null,description:`Turn any URL into clean data.`,tags:[z.SCRAPE],docPath:W(Qx),billableOperations:aS,inputFieldMode:`static`,outputFieldMode:`static`,allowedUserConnectionProviders:[`firecrawl`],managedProviders:[`firecrawl`],deprecatedProviders:[],defaultInputRequirement:iS(null),defaultPayload:{pipe_id:Qx,run_if:null,connector:null,config:{scrape_main_only:!0,input_fields:{website_url:{alias:``}},output_fields:{website_markdown:{alias:``,enabled:!0},website_html:{alias:``,enabled:!1},website_links:{alias:``,enabled:!1}}}}},lS=`website:scrapelist:firecrawl@1`,uS={"website-scrapelist-firecrawl-v1-firecrawl":{allowManagedConnection:!0,provider:`firecrawl`,credits:{default:.1,level1:{credits:.05,weight:1}},mode:`onSuccess`,note:`You are charged per url that is scraped.`}},dS=g(`urls`),fS=g(`scrape_list_response`),pS=r.object({pipe_id:r.literal(lS),connector:C(),run_if:x(),config:r.object({scrape_main_only:D({label:`Scrape main content only?`,defaultValue:!1,info:`If selected headers, footers, and sidebars will be excluded from the results.`,sectionKey:`general`,groupPath:`config.general`,path:`config.scrape_main_only`}),formats:Ca({options:[{label:`Markdown`,value:`markdown`},{label:`HTML`,value:`html`},{label:`Links`,value:`links`}],disableSearch:!0,info:`Choose what you want to scrape from the website`,required:!1,label:`Formats`,sectionKey:`general`,groupPath:`config.general`,path:`config.formats`}),input_fields:R(r.object({[dS.name]:T({fieldName:dS.name})})),output_fields:L(r.object({[fS.name]:O({fieldName:fS.name})}))}).optional()}),mS=e=>B(G(dS,e)),hS=class extends H{pipeId=lS;payload;payloadSchema=pS;billableOperations=uS;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`firecrawl`]}estimateBillableOperations(){return[,,,,,].fill(`list-url-scrape-firecrawl`)}getInputRequirement(){return mS(this.payload.config)}getRawOutputFields(){return{[fS.name]:this.catalogOutput(fS)}}getConnectionsRequirements(){return[{provider:`firecrawl`,rateLimitRatio:1,rateLimitOperation:`firecrawl_generic`,allowManagedConnection:!0}]}},gS=pS,_S={pipeId:lS,basePipe:U(lS),label:`Scrape list`,executionMode:`single`,categories:[`tools`],lifecycle:null,description:`Turn a list of URLs into clean scraped data.`,tags:[z.SCRAPE],docPath:W(lS),billableOperations:uS,inputFieldMode:`static`,outputFieldMode:`static`,allowedUserConnectionProviders:[`firecrawl`],managedProviders:[`firecrawl`],deprecatedProviders:[],defaultInputRequirement:mS(null),defaultPayload:{pipe_id:lS,run_if:null,connector:null,config:{scrape_main_only:!0,formats:[`html`,`markdown`,`links`],input_fields:{urls:{alias:``}},output_fields:{scrape_list_response:{alias:``,enabled:!0}}}}},vS=[`companies:profiles:crustdata@1`,`companies:profiles:crustdata@2`,`companies:profiles:amplemarket@1`,`companies:profiles:amplemarket@2`,`people:profiles:crustdata@1`,`people:profiles:crustdata@2`,`people:profiles:amplemarket@1`,`people:profiles:amplemarket@2`,`companies:entitysearch:parallel@1`,`people:entitysearch:parallel@1`,`people:eventguests:luma@1`,`sheet:rows@1`],yS=r.enum(vS);function bS(e,t){let n={name:e,config:t};return Za.hashObject(n)}var Z=class{validatePayload(e){try{return this.schema.parse(e)}catch(e){throw e instanceof n?Error(JSON.stringify(r.prettifyError(e))):e}}catalogOutput(e){return{name:e.name,enabled:!!this.payload.config?.output_fields?.[e.name].enabled,type:e.type,format:e.format,resolvedName:this.payload.config?.output_fields?.[e.name]?.alias||e.name,description:e.description,jsonMeta:e.jsonMeta,label:e.label,isCatalogFIeld:!0}}getOutputFields(){let e={};for(let[t,n]of Object.entries(this.getRawOutputFields()))n.enabled&&(e[t]=n);return e}getHashKey(){return bS(this.searchId,this.payload)}};function Q(e){return e.split(`@`)[0]}function $(e){return`/docs/search-catalog/${Q(e)}/${e.split(`@`)[1]}`}const xS=`companies:entitysearch:parallel@1`,SS=g(`company_name`),CS=g(`company_domain`),wS=g(`company_description`),TS=g(`company_profile_url`),ES=g(`parallel_company_entity_match`),DS=r.object({search_id:r.literal(xS),connector:sa(),config:r.object({objective:Ia({path:`config.objective`,sectionKey:`general`,groupPath:`config.general`,label:`Objective`,rows:4,minLength:10,placeholder:`AI startups in Europe that raised a Series A in 2024`,description:`Plain-text natural-language description of the companies to find.`}),limit:I({path:`config.limit`,min:5,max:1e3,groupPath:`config.pagination`,required:!0,sectionKey:`pagination`,label:`Limit`,description:`Max number of entities to return (5–1000).`}).default(100),output_fields:L(r.object({[SS.name]:M({fieldName:SS.name}),[CS.name]:M({fieldName:CS.name}),[wS.name]:M({fieldName:wS.name}),[TS.name]:M({fieldName:TS.name}),[ES.name]:M({fieldName:ES.name})}))})}),OS={default:{input:[{fields:[]}]}},kS=class extends Z{searchId=xS;schema=DS;payload;constructor(e){super(),this.payload=this.validatePayload(e)}getRawOutputFields(){return{[SS.name]:this.catalogOutput(SS),[CS.name]:this.catalogOutput(CS),[wS.name]:this.catalogOutput(wS),[TS.name]:this.catalogOutput(TS),[ES.name]:this.catalogOutput(ES)}}getConnectionsRequirements(){return[{provider:`parallel`,rateLimitOperation:`parallel_entity_search`,rateLimitRatio:1,allowManagedConnection:!0}]}getDedupConfig(){return OS}},AS=DS,jS={searchId:xS,billableOperation:`companies-entitysearch-parallel-v1`,baseSearch:Q(xS),label:`Company search (AI)`,categories:[`companies`],paginationType:`page_number`,hasManagedConnection:!0,allowsUserConnection:!0,lifecycle:null,description:`Natural-language company search powered by Parallel Entity Search.`,tags:[z.COMPANY_PROFILES],docPath:$(xS),cost:{mode:`per_page`,credits:{default:.5},info:`1 page = 100 results; billed per 100 results returned (e.g. 100 results = 1 page, 1,000 results = 10 pages). A search returns up to your selected limit in a single request.`},provider:`parallel`,defaultPayload:{search_id:xS,connector:null,config:{objective:``,limit:100,output_fields:{company_name:{enabled:!0,alias:``},company_domain:{enabled:!0,alias:``},company_description:{enabled:!0,alias:``},company_profile_url:{enabled:!0,alias:``},parallel_company_entity_match:{enabled:!1,alias:``}}}}};function MS(e,t=32){return`https://www.google.com/s2/favicons?sz=${t}&domain=${e.replace(/^(https?:\/\/)?(www\.)?/,``)}`}function NS(e,t){return e==null?void 0:t(e)}function PS(){return FS({companyWebsiteUrl:`linkedin.com`,entity:`LinkedIn`})}function FS({companyWebsiteUrl:e,entity:t}){if(e)return{image_url:MS(e),entity:t||e}}function IS(e,t){let n=JSON.parse(JSON.stringify({...e}));if(!t)return n;for(let e in t)!(e in n)&&t[e]!=null&&(n[e]=t[e]);return n}function LS(e){let t=!0,n=e=>{if(t!==!1&&typeof e==`object`&&e){Array.isArray(e)&&e.length>0&&(t=!1);for(let r of Object.values(e))typeof r!=`object`&&r!=null&&r!==``&&(t=!1),typeof r==`object`&&r&&n(r)}};return n(e),t}const RS=`companies:profiles:amplemarket@2`,zS=g(`company_name`),BS=g(`company_domain`),VS=g(`company_description`),HS=g(`company_profile_url`),US=g(`amplemarket_company_match`),WS=r.object({search_id:r.literal(RS),connector:sa(),config:r.object({limit:I({label:`Limit`,description:`Max number of search results`,path:`config.limit`,min:1,max:100,groupPath:`config.pagination`,required:!0,sectionKey:`pagination`}).default(100),page_number:I({path:`config.page_number`,groupPath:`config.pagination`,required:!1,label:`Page number`,min:1,sectionKey:`pagination`,description:``}),output_fields:L(r.object({[zS.name]:M({fieldName:zS.name}),[BS.name]:M({fieldName:BS.name}),[VS.name]:M({fieldName:VS.name}),[HS.name]:M({fieldName:HS.name}),[US.name]:M({fieldName:US.name})})),filters:r.object({hq_locations:F({path:`config.filters.hq_locations`,sectionKey:`config.filters`,label:`HQ locations`,description:``,placeholder:J(`location`),groupPath:`config.filters.location`,optionsDef:h(`locations`)}),company_names:A({sectionKey:`config.filters`,path:`config.filters.company_names`,label:`Company names`,description:``,placeholder:J(`company_name`),groupPath:`config.filters.categories`,suggestionsDef:h(`company_names`)}),company_domains:A({sectionKey:`config.filters`,path:`config.filters.company_domains`,label:`Company domains`,description:``,placeholder:J(`company_domain`),groupPath:`config.filters.categories`,suggestionsDef:h(`company_domains`,{widgets:e=>({logo_url:{url:MS(e.value)}})})}),company_profile_urls:A({sectionKey:`config.filters`,path:`config.filters.company_profile_urls`,label:`Company LinkedIn URLs`,description:``,groupPath:`config.filters.categories`}),company_types:N({sectionKey:`config.filters`,path:`config.filters.company_types`,disableSearch:!1,label:`Company Type`,description:``,groupPath:`config.filters.categories`,options:p(`amplemarket.company_types`),required:!1}),investors:P({sectionKey:`config.filters`,path:`config.filters.investors`,label:`Investor names`,optionsDef:h(`company.crunchbase_investors.crustdata`),description:`A list of company investor names`,placeholder:J(`investor`),groupPath:`config.filters.investors`,disableSearch:!1,required:!1}),company_industries:j({sectionKey:`config.filters`,path:`config.filters.company_industries`,optionsDef:m(`amplemarket.industries`),disableSearch:!1,label:`Industries`,description:``,placeholder:J(`industry`),groupPath:`config.filters.industry`}),customer_types:N({sectionKey:`config.filters`,path:`config.filters.customer_types`,options:[{value:`b2b`,label:`B2B`},{value:`b2c`,label:`B2C`}],required:!1,disableSearch:!0,label:`Customer Types`,description:``,groupPath:`config.filters.industry`}),keywords:A({sectionKey:`config.filters`,path:`config.filters.keywords`,label:`Keywords`,description:``,groupPath:`config.filters.industry`}),revenue_groups:N({path:`config.filters.revenue_groups`,sectionKey:`config.filters`,label:`Revenue groups`,description:``,disableSearch:!0,options:p(`amplemarket.company_revenue`),required:!1,groupPath:`config.filters.financials`}),founded_year:ka({path:`config.filters.founded_year`,sectionKey:`config.filters`,label:`Founded year`,groupPath:`config.filters.general`,min:0,max:2040,required:!1,description:``}),open_position_titles:k({path:`config.filters.open_position_titles`,sectionKey:`config.filters`,label:`Job openings for titles`,groupPath:`config.filters.job_openings`,description:``,placeholder:J(`title`),suggestionsDef:h(`titles`)}),headcount:N({sectionKey:`config.filters`,path:`config.filters.headcount`,disableSearch:!1,options:p(`amplemarket.company_size`),label:`Company sizes`,required:!1,description:``,groupPath:`config.filters.company_size`}),headcount_growth_l6m_in_percent:ka({path:`config.filters.headcount_growth_l6m_in_percent`,sectionKey:`config.filters`,label:`Headcount growth over last 6 months (in %)`,groupPath:`config.filters.company_size`,description:``,max:1e4,min:0,required:!1})}).check(e=>{LS(e.value)&&e.issues.push({code:`custom`,message:`You must set at least one filter.`,input:e.value})})})}),GS={default:{input:[{fields:[]}]}},KS=class extends Z{searchId=RS;schema=WS;payload;constructor(e){super(),this.payload=this.validatePayload(e)}getRawOutputFields(){return{[zS.name]:this.catalogOutput(zS),[BS.name]:this.catalogOutput(BS),[VS.name]:this.catalogOutput(VS),[HS.name]:this.catalogOutput(HS),[US.name]:this.catalogOutput(US)}}getConnectionsRequirements(){return[{provider:`amplemarket`,rateLimitOperation:`amplemarket_company_search`,rateLimitRatio:1,allowManagedConnection:!0}]}getDedupConfig(){return GS}},qS=WS,JS={searchId:RS,billableOperation:`companies-profiles-amplemarket-v2`,baseSearch:Q(`companies:profiles:amplemarket@2`),label:`Company search`,categories:[`companies`],paginationType:`page_number`,hasManagedConnection:!0,allowsUserConnection:!0,lifecycle:null,description:`Filter based company search.`,tags:[z.COMPANY_PROFILES],docPath:$(RS),cost:{mode:`per_page`,credits:{default:2}},provider:`amplemarket`,defaultPayload:{search_id:RS,connector:null,config:{limit:100,page_number:1,output_fields:{company_name:{enabled:!0,alias:``},company_domain:{enabled:!0,alias:``},company_description:{enabled:!0,alias:``},company_profile_url:{enabled:!0,alias:``},amplemarket_company_match:{enabled:!0,alias:``}},filters:{company_industries:{include:[],exclude:[]},company_names:{include:[],exclude:[]},company_profile_urls:{include:[],exclude:[]},company_types:[],company_domains:{include:[],exclude:[]},customer_types:[],headcount_growth_l6m_in_percent:{min:null,max:null},founded_year:{min:null,max:null},revenue_groups:[],investors:[],keywords:{include:[],exclude:[]},open_position_titles:[],headcount:[],hq_locations:{include:[],exclude:[]}}}}},YS=`companies:profiles:crustdata@2`,XS=g(`company_name`),ZS=g(`company_domain`),QS=g(`company_description`),$S=g(`company_profile_url`),eC=g(`crustdata_company_match`),tC=r.object({search_id:r.literal(YS),connector:sa(),config:r.object({limit:I({path:`config.limit`,min:1,max:100,groupPath:`config.pagination`,required:!0,sectionKey:`pagination`,label:`Limit`,description:`Max number of search results`}).default(100),cursor:Fa({path:`config.cursor`,groupPath:`config.pagination`,inputType:`text`,label:`Cursor`,sectionKey:`pagination`,description:`Pagination cursor`}),output_fields:L(r.object({[XS.name]:M({fieldName:XS.name}),[ZS.name]:M({fieldName:ZS.name}),[QS.name]:M({fieldName:QS.name}),[$S.name]:M({fieldName:$S.name}),[eC.name]:M({fieldName:eC.name})})),filters:r.object({hq_locations:F({path:`config.filters.hq_locations`,sectionKey:`config.filters`,label:`HQ locations`,description:``,placeholder:J(`location`),groupPath:`config.filters.location`,optionsDef:h(`locations`)}),crunchbase_categories:F({path:`config.filters.crunchbase_categories`,sectionKey:`config.filters`,label:`Crunchbase categories`,placeholder:J(`crunchbase_category`),description:``,groupPath:`config.filters.categories`,optionsDef:h(`company.crunchbase_categories.crustdata`)}),crunchbase_investors:F({path:`config.filters.crunchbase_investors`,sectionKey:`config.filters`,label:`Investors to include (Crunchbase)`,description:``,placeholder:J(`investor`),groupPath:`config.filters.investors`,optionsDef:h(`company.crunchbase_investors.crustdata`)}),tracxn_investors:F({path:`config.filters.tracxn_investors`,sectionKey:`config.filters`,label:`Investors to include (Tracxn)`,description:``,placeholder:J(`investor`),groupPath:`config.filters.investors`,optionsDef:h(`company.tracxn_investors.crustdata`)}),company_types:j({sectionKey:`config.filters`,path:`config.filters.company_types`,optionsDef:{type:`static`,options:p(`crustdata.company_types`)},label:`Company types`,placeholder:`Public, Private, ...`,description:``,groupPath:`config.filters.categories`}),linkedin_industries:F({sectionKey:`config.filters`,path:`config.filters.linkedin_industries`,optionsDef:h(`linkedin_industries.crustdata`),label:`Industries`,description:``,placeholder:J(`industry`),groupPath:`config.filters.industry`}),markets:F({sectionKey:`config.filters`,path:`config.filters.markets`,optionsDef:h(`company.markets.crustdata`),placeholder:`NYSE, TYO, ...`,label:`Markets`,description:``,groupPath:`config.filters.industry`}),linkedin_categories:F({sectionKey:`config.filters`,path:`config.filters.linkedin_categories`,optionsDef:h(`company.linkedin_categories.crustdata`),label:`LinkedIn category`,placeholder:`Marketing, Branding, ...`,description:``,groupPath:`config.filters.categories`}),headcount:j({path:`config.filters.headcount`,sectionKey:`config.filters`,label:`Headcount`,description:``,disableSearch:!0,placeholder:`1-10`,optionsDef:{type:`static`,options:p(`crustdata.company_size`)},groupPath:`config.filters.company_size`}),headcount_growth_l6m_in_percent:N({path:`config.filters.headcount_growth_l6m_in_percent`,sectionKey:`config.filters`,label:`Headcount growth over last 6 months in percent`,description:``,options:p(`crustdata.headcount_growth`),placeholder:`0-10%`,disableSearch:!0,required:!1,groupPath:`config.filters.company_size`}),revenue_in_usd:ja({path:`config.filters.revenue_in_usd`,sectionKey:`config.filters`,label:`Revenue (USD)`,description:``,legend:`1k - 10B`,min:1e3,max:1e10,groupPath:`config.filters.financials`}),last_funding_type:j({path:`config.filters.last_funding_type`,sectionKey:`config.filters`,label:`Last funding type`,placeholder:`Series A`,disableSearch:!0,optionsDef:{type:`static`,options:p(`crustdata.funding_rounds`)},description:``,groupPath:`config.filters.financials`}),last_funding_amount:ja({path:`config.filters.last_funding_amount`,sectionKey:`config.filters`,label:`Last funding amount`,legend:`1k - 10B`,min:1e3,max:1e10,description:``,groupPath:`config.filters.financials`}),number_of_followers:N({path:`config.filters.number_of_followers`,sectionKey:`config.filters`,label:`Number of LinkedIn followers`,placeholder:`1-500`,disableSearch:!0,description:``,required:!1,options:p(`crustdata.company_followers`),groupPath:`config.filters.web_presence`}),follower_growth_l6m_in_percent:N({path:`config.filters.follower_growth_l6m_in_percent`,sectionKey:`config.filters`,label:`LinkedIn follower growth within last 6 months`,required:!1,disableSearch:!0,placeholder:`0-10%`,description:``,options:p(`crustdata.follower_growth`),groupPath:`config.filters.web_presence`}),profile_summary_keywords:A({path:`config.filters.profile_summary_keywords`,sectionKey:`config.filters`,maxItems:50,label:`LinkedIn company description contains`,placeholder:J(`company_profile_keyword`),description:``,groupPath:`config.filters.keywords`}),competitor_domains:A({path:`config.filters.competitor_domains`,sectionKey:`config.filters`,maxItems:50,label:`Competitor domain`,description:``,placeholder:J(`company_domain`),groupPath:`config.filters.competitors`,suggestionsDef:h(`company_domains`,{widgets:e=>({logo_url:{url:MS(e.value)}})})})}).check(e=>{LS(e.value)&&e.issues.push({code:`custom`,message:`You must set at least one filter.`,input:e.value})})})}),nC={default:{input:[{fields:[]}]}},rC=class extends Z{searchId=YS;schema=tC;payload;constructor(e){super(),this.payload=this.validatePayload(e)}getRawOutputFields(){return{[XS.name]:this.catalogOutput(XS),[ZS.name]:this.catalogOutput(ZS),[QS.name]:this.catalogOutput(QS),[$S.name]:this.catalogOutput($S),[eC.name]:this.catalogOutput(eC)}}getConnectionsRequirements(){return[{provider:`crustdata`,rateLimitOperation:`crustdata_company_db_search`,rateLimitRatio:1,allowManagedConnection:!0}]}getDedupConfig(){return nC}},iC=tC,aC={searchId:YS,billableOperation:`companies-profiles-crustdata-v2`,baseSearch:Q(`companies:profiles:crustdata@2`),label:`Company search`,categories:[`companies`],paginationType:`cursor`,hasManagedConnection:!0,allowsUserConnection:!0,lifecycle:null,description:`Filter based company search.`,tags:[z.COMPANY_PROFILES],docPath:$(YS),cost:{mode:`per_page`,credits:{default:2}},provider:`crustdata`,defaultPayload:{search_id:YS,connector:null,config:{limit:100,cursor:``,output_fields:{company_name:{enabled:!0,alias:``},company_domain:{enabled:!0,alias:``},company_description:{enabled:!0,alias:``},company_profile_url:{enabled:!0,alias:``},crustdata_company_match:{enabled:!0,alias:``}},filters:{company_types:{include:[],exclude:[]},headcount_growth_l6m_in_percent:[],last_funding_amount:{from:null,to:null},last_funding_type:{include:[],exclude:[]},linkedin_industries:{include:[],exclude:[]},linkedin_categories:{include:[],exclude:[]},crunchbase_categories:{include:[],exclude:[]},markets:{include:[],exclude:[]},revenue_in_usd:{from:null,to:null},crunchbase_investors:{include:[],exclude:[]},tracxn_investors:{include:[],exclude:[]},follower_growth_l6m_in_percent:[],headcount:{include:[],exclude:[]},hq_locations:{include:[],exclude:[]},number_of_followers:[],profile_summary_keywords:{include:[],exclude:[]},competitor_domains:{include:[],exclude:[]}}}}},oC=`companies:profiles:amplemarket@1`,sC=g(`company_name`),cC=g(`company_website_url`),lC=g(`company_description`),uC=g(`company_profile_url`),dC=g(`amplemarket_company_match`),fC=r.object({search_id:r.literal(oC),connector:_.nullable().optional(),config:r.object({limit:I({label:`Limit`,description:`Max number of search results`,path:`config.limit`,min:1,max:100,groupPath:`config.pagination`,required:!0,sectionKey:`pagination`}),page_number:I({path:`config.page_number`,groupPath:`config.pagination`,required:!1,label:`Page number`,min:1,sectionKey:`pagination`,description:``}),output_fields:L(r.object({[sC.name]:M({fieldName:sC.name}),[cC.name]:M({fieldName:cC.name}),[lC.name]:M({fieldName:lC.name}),[uC.name]:M({fieldName:uC.name}),[dC.name]:M({fieldName:dC.name})})),filters:r.object({hq_locations:F({path:`config.filters.hq_locations`,sectionKey:`config.filters`,label:`HQ locations`,description:``,placeholder:J(`location`),groupPath:`config.filters.location`,optionsDef:h(`locations`)}),company_names:A({sectionKey:`config.filters`,path:`config.filters.company_names`,label:`Company names`,description:``,placeholder:J(`company_name`),groupPath:`config.filters.categories`,suggestionsDef:h(`company_names`)}),company_website_urls:A({sectionKey:`config.filters`,path:`config.filters.company_website_urls`,label:`Company domains`,description:``,placeholder:J(`company_domain`),groupPath:`config.filters.categories`,suggestionsDef:h(`company_domains`,{widgets:{emoji:{char:`🌐`}}})}),company_profile_urls:A({sectionKey:`config.filters`,path:`config.filters.company_profile_urls`,label:`Company LinkedIn URLs`,description:``,groupPath:`config.filters.categories`}),company_types:N({sectionKey:`config.filters`,path:`config.filters.company_types`,disableSearch:!1,label:`Company Type`,description:``,groupPath:`config.filters.categories`,options:p(`amplemarket.company_types`),required:!1}),investors:P({sectionKey:`config.filters`,path:`config.filters.investors`,label:`Investor names`,optionsDef:h(`company.crunchbase_investors.crustdata`),description:`A list of company investor names`,placeholder:J(`investor`),groupPath:`config.filters.investors`,disableSearch:!1,required:!1}),company_industries:j({sectionKey:`config.filters`,path:`config.filters.company_industries`,optionsDef:m(`amplemarket.industries`),disableSearch:!1,label:`Industries`,description:``,placeholder:J(`industry`),groupPath:`config.filters.industry`}),customer_types:N({sectionKey:`config.filters`,path:`config.filters.customer_types`,options:[{value:`b2b`,label:`B2B`},{value:`b2c`,label:`B2C`}],required:!1,disableSearch:!0,label:`Customer Types`,description:``,groupPath:`config.filters.industry`}),keywords:A({sectionKey:`config.filters`,path:`config.filters.keywords`,label:`Keywords`,description:``,groupPath:`config.filters.industry`}),revenue_groups:N({path:`config.filters.revenue_groups`,sectionKey:`config.filters`,label:`Revenue groups`,description:``,disableSearch:!0,options:p(`amplemarket.company_revenue`),required:!1,groupPath:`config.filters.financials`}),founded_year:ka({path:`config.filters.founded_year`,sectionKey:`config.filters`,label:`Founded year`,groupPath:`config.filters.general`,min:0,max:2040,required:!1,description:``}),open_positions_titles:k({path:`config.filters.open_positions_titles`,sectionKey:`config.filters`,label:`Job openings for titles`,groupPath:`config.filters.job_openings`,description:``,placeholder:J(`title`),suggestionsDef:h(`titles`)}),headcount:N({sectionKey:`config.filters`,path:`config.filters.company_sizes`,disableSearch:!1,options:p(`amplemarket.company_size`),label:`Headcount groups`,required:!1,description:``,groupPath:`config.filters.company_size`}),headcount_growth_last_6_months_in_percent:ka({path:`config.filters.headcount_growth_last_6_months_in_percent`,sectionKey:`config.filters`,label:`Headcount growth over last 6 months (in %)`,groupPath:`config.filters.company_size`,description:``,max:1e4,min:0,required:!1})}).check(e=>{LS(e.value)&&e.issues.push({code:`custom`,message:`You must set at least one filter.`,input:e.value})})})}),pC={default:{input:[{fields:[]}]}},mC=class extends Z{searchId=oC;schema=fC;payload;constructor(e){super(),this.payload=this.validatePayload(e)}getRawOutputFields(){return{[sC.name]:this.catalogOutput(sC),[cC.name]:this.catalogOutput(cC),[lC.name]:this.catalogOutput(lC),[uC.name]:this.catalogOutput(uC),[dC.name]:this.catalogOutput(dC)}}getConnectionsRequirements(){return[{provider:`amplemarket`,rateLimitOperation:`amplemarket_company_search`,rateLimitRatio:1,allowManagedConnection:!0}]}getDedupConfig(){return pC}},hC=fC,gC={searchId:oC,billableOperation:`companies-profiles-amplemarket-v1`,baseSearch:Q(`companies:profiles:amplemarket@1`),label:`Company search`,categories:[`deprecated`],paginationType:`page_number`,hasManagedConnection:!0,allowsUserConnection:!0,lifecycle:{deprecatedOn:`2026-06-13`,replacedBy:`companies:profiles:amplemarket@2`},description:`Filter based company search.`,tags:[z.COMPANY_PROFILES],docPath:$(oC),cost:{mode:`per_page`,credits:{default:2}},provider:`amplemarket`,defaultPayload:{search_id:oC,connector:null,config:{limit:100,page_number:1,output_fields:{company_name:{enabled:!0,alias:``},company_website_url:{enabled:!0,alias:``},company_description:{enabled:!0,alias:``},company_profile_url:{enabled:!0,alias:``},amplemarket_company_match:{enabled:!0,alias:``}},filters:{company_industries:{include:[],exclude:[]},company_names:{include:[],exclude:[]},company_profile_urls:{include:[],exclude:[]},company_types:[],company_website_urls:{include:[],exclude:[]},customer_types:[],headcount_growth_last_6_months_in_percent:{min:null,max:null},founded_year:{min:null,max:null},revenue_groups:[],investors:[],keywords:{include:[],exclude:[]},open_positions_titles:[],headcount:[],hq_locations:{include:[],exclude:[]}}}}},_C=`companies:profiles:crustdata@1`,vC=g(`company_name`),yC=g(`company_website_url`),bC=g(`company_description`),xC=g(`company_profile_url`),SC=g(`crustdata_company_match`),CC=r.object({search_id:r.literal(_C),connector:_.nullable().optional(),config:r.object({limit:I({path:`config.limit`,min:1,max:100,groupPath:`config.pagination`,required:!0,sectionKey:`pagination`,label:`Limit`,description:`Max number of search results`}),cursor:Fa({path:`config.cursor`,groupPath:`config.pagination`,inputType:`text`,label:`Cursor`,sectionKey:`pagination`,description:`Pagination cursor`}),output_fields:L(r.object({[vC.name]:M({fieldName:vC.name}),[yC.name]:M({fieldName:vC.name}),[bC.name]:M({fieldName:bC.name}),[xC.name]:M({fieldName:xC.name}),[SC.name]:M({fieldName:SC.name})})),filters:r.object({hq_locations:F({path:`config.filters.hq_locations`,sectionKey:`config.filters`,label:`HQ locations`,description:``,placeholder:J(`location`),groupPath:`config.filters.location`,optionsDef:h(`locations`)}),crunchbase_categories:F({path:`config.filters.crunchbase_categories`,sectionKey:`config.filters`,label:`Crunchbase categories`,placeholder:J(`crunchbase_category`),description:``,groupPath:`config.filters.categories`,optionsDef:h(`company.crunchbase_categories.crustdata`)}),crunchbase_investors:F({path:`config.filters.crunchbase_investors`,sectionKey:`config.filters`,label:`Investors to include (Crunchbase)`,description:``,placeholder:J(`investor`),groupPath:`config.filters.investors`,optionsDef:h(`company.crunchbase_investors.crustdata`)}),tracxn_investors:F({path:`config.filters.tracxn_investors`,sectionKey:`config.filters`,label:`Investors to include (Tracxn)`,description:``,placeholder:J(`investor`),groupPath:`config.filters.investors`,optionsDef:h(`company.tracxn_investors.crustdata`)}),company_types:j({sectionKey:`config.filters`,path:`config.filters.company_types`,optionsDef:{type:`static`,options:p(`crustdata.company_types`)},label:`Company types`,placeholder:`Public, Private, ...`,description:``,groupPath:`config.filters.categories`}),linkedin_industries:F({sectionKey:`config.filters`,path:`config.filters.linkedin_industries`,optionsDef:h(`linkedin_industries.crustdata`),label:`Industries`,description:``,placeholder:J(`industry`),groupPath:`config.filters.industry`}),markets:F({sectionKey:`config.filters`,path:`config.filters.markets`,optionsDef:h(`company.markets.crustdata`),placeholder:`NYSE, TYO, ...`,label:`Markets`,description:``,groupPath:`config.filters.industry`}),linkedin_categories:F({sectionKey:`config.filters`,path:`config.filters.linkedin_categories`,optionsDef:h(`company.linkedin_categories.crustdata`),label:`LinkedIn category`,placeholder:`Marketing, Branding, ...`,description:``,groupPath:`config.filters.categories`}),headcount:j({path:`config.filters.headcount`,sectionKey:`config.filters`,label:`Headcount`,description:``,disableSearch:!0,placeholder:`1-10`,optionsDef:{type:`static`,options:p(`crustdata.company_size`)},groupPath:`config.filters.company_size`}),headcount_growth_last_6m_in_percent:N({path:`config.filters.headcount_growth_last_6m_in_percent`,sectionKey:`config.filters`,label:`Headcount growth over last 6 months in percent`,description:``,options:p(`crustdata.headcount_growth`),placeholder:`0-10%`,disableSearch:!0,required:!1,groupPath:`config.filters.company_size`}),revenue_in_usd:ja({path:`config.filters.revenue_in_usd`,sectionKey:`config.filters`,label:`Revenue (USD)`,description:``,legend:`1k - 10B`,min:1e3,max:1e10,groupPath:`config.filters.financials`}),last_funding_type:j({path:`config.filters.last_funding_type`,sectionKey:`config.filters`,label:`Last funding type`,placeholder:`Series A`,disableSearch:!0,optionsDef:{type:`static`,options:p(`crustdata.funding_rounds`)},description:``,groupPath:`config.filters.financials`}),last_funding_amount:ja({path:`config.filters.last_funding_amount`,sectionKey:`config.filters`,label:`Last funding amount`,legend:`1k - 10B`,min:1e3,max:1e10,description:``,groupPath:`config.filters.financials`}),number_of_followers:N({path:`config.filters.number_of_followers`,sectionKey:`config.filters`,label:`Number of LinkedIn followers`,placeholder:`1-500`,disableSearch:!0,description:``,required:!1,options:p(`crustdata.company_followers`),groupPath:`config.filters.web_presence`}),follower_growth_last_6m_in_percent:N({path:`config.filters.follower_growth_last_6m_in_percent`,sectionKey:`config.filters`,label:`LinkedIn follower growth within last 6 months`,required:!1,disableSearch:!0,placeholder:`0-10%`,description:``,options:p(`crustdata.follower_growth`),groupPath:`config.filters.web_presence`}),profile_summary_keywords:A({path:`config.filters.profile_summary_keywords`,sectionKey:`config.filters`,maxItems:50,label:`LinkedIn company description contains`,placeholder:J(`company_profile_keyword`),description:``,groupPath:`config.filters.keywords`}),competitor_websites:A({path:`config.filters.competitor_websites`,sectionKey:`config.filters`,maxItems:50,label:`Competitor domains`,description:``,placeholder:J(`company_domain`),groupPath:`config.filters.competitors`,suggestionsDef:h(`company_domains`,{widgets:{emoji:{char:`🌐`}}})})}).check(e=>{LS(e.value)&&e.issues.push({code:`custom`,message:`You must set at least one filter.`,input:e.value})})})}),wC={default:{input:[{fields:[]}]}},TC=class extends Z{searchId=_C;schema=CC;payload;constructor(e){super(),this.payload=this.validatePayload(e)}getRawOutputFields(){return{[vC.name]:this.catalogOutput(vC),[yC.name]:this.catalogOutput(yC),[bC.name]:this.catalogOutput(bC),[xC.name]:this.catalogOutput(xC),[SC.name]:this.catalogOutput(SC)}}getConnectionsRequirements(){return[{provider:`crustdata`,rateLimitOperation:`crustdata_company_db_search`,rateLimitRatio:1,allowManagedConnection:!0}]}getDedupConfig(){return wC}},EC=CC,DC={searchId:_C,billableOperation:`companies-profiles-crustdata-v1`,baseSearch:Q(`companies:profiles:crustdata@1`),label:`Company search`,categories:[`deprecated`],paginationType:`cursor`,hasManagedConnection:!0,allowsUserConnection:!0,lifecycle:{deprecatedOn:`2026-06-13`,replacedBy:`companies:profiles:crustdata@2`},description:`Filter based company search.`,tags:[z.COMPANY_PROFILES],docPath:$(_C),cost:{mode:`per_page`,credits:{default:2}},provider:`crustdata`,defaultPayload:{search_id:_C,connector:null,config:{limit:100,cursor:``,output_fields:{company_name:{enabled:!0,alias:``},company_website_url:{enabled:!0,alias:``},company_description:{enabled:!0,alias:``},company_profile_url:{enabled:!0,alias:``},crustdata_company_match:{enabled:!0,alias:``}},filters:{company_types:{include:[],exclude:[]},headcount_growth_last_6m_in_percent:[],last_funding_amount:{from:null,to:null},last_funding_type:{include:[],exclude:[]},linkedin_industries:{include:[],exclude:[]},linkedin_categories:{include:[],exclude:[]},crunchbase_categories:{include:[],exclude:[]},markets:{include:[],exclude:[]},revenue_in_usd:{from:null,to:null},crunchbase_investors:{include:[],exclude:[]},tracxn_investors:{include:[],exclude:[]},follower_growth_last_6m_in_percent:[],headcount:{include:[],exclude:[]},hq_locations:{include:[],exclude:[]},number_of_followers:[],profile_summary_keywords:{include:[],exclude:[]},competitor_websites:{include:[],exclude:[]}}}}},OC=`people:profiles:amplemarket@1`,kC=g(`name`),AC=g(`company_website_url`),jC=g(`profile_url`),MC=g(`job_title`),NC=g(`amplemarket_person_match`),PC=r.object({search_id:r.literal(OC),connector:_.nullable().optional(),config:r.object({limit:I({path:`config.limit`,min:1,max:100,groupPath:`config.pagination`,required:!0,label:`Limit`,sectionKey:`pagination`,description:`Max number of search results`}),page_number:I({path:`config.page_number`,groupPath:`config.pagination`,required:!1,label:`Page number`,min:1,sectionKey:`pagination`,description:``}),output_fields:L(r.object({[kC.name]:M({fieldName:kC.name}),[AC.name]:M({fieldName:AC.name}),[jC.name]:M({fieldName:jC.name}),[MC.name]:M({fieldName:MC.name}),[NC.name]:M({fieldName:NC.name})})),filters:r.object({person_names:k({label:`Full name`,path:`config.filters.person_names`,sectionKey:`config.filters`,groupPath:`config.filters.general`}),current_locations:F({path:`config.filters.current_locations`,sectionKey:`config.filters`,label:`Location`,optionsDef:h(`locations`),groupPath:`config.filters.general`}),current_job_titles:k({path:`config.filters.current_job_titles`,sectionKey:`config.filters`,label:`Title`,placeholder:J(`title`),description:``,order:1,groupPath:`config.filters.current_employer`,suggestionsDef:h(`titles`)}),current_seniority_levels:N({path:`config.filters.current_seniority_levels`,sectionKey:`config.filters`,placeholder:J(`seniority`),label:`Seniority`,required:!1,disableSearch:!1,options:p(`amplemarket.seniority_levels`),description:``,groupPath:`config.filters.current_employer`}),current_departments:N({path:`config.filters.current_departments`,sectionKey:`config.filters`,label:`Department`,placeholder:J(`department`),disableSearch:!1,required:!1,options:p(`amplemarket.departments`),description:``,groupPath:`config.filters.current_employer`}),current_job_functions:N({path:`config.filters.current_job_functions`,sectionKey:`config.filters`,label:`Job function`,placeholder:J(`job_function`),disableSearch:!1,required:!1,options:p(`amplemarket.job_functions`),description:``,groupPath:`config.filters.current_employer`}),current_employer_locations:F({path:`config.filters.current_employer_locations`,sectionKey:`config.filters`,label:`Headquarters`,optionsDef:h(`locations`),groupPath:`config.filters.current_company`,placeholder:J(`location`)}),current_employer_names:A({path:`config.filters.current_employer_names`,sectionKey:`config.filters`,label:`Company name`,groupPath:`config.filters.current_company`,description:``,placeholder:J(`company_name`),suggestionsDef:h(`company_names`)}),current_employer_website_urls:A({path:`config.filters.current_employer_website_urls`,sectionKey:`config.filters`,label:`Company domain`,description:``,maxItems:200,placeholder:J(`company_domain`),groupPath:`config.filters.current_company`,suggestionsDef:h(`company_domains`,{widgets:{emoji:{char:`🌐`}}})}),current_employer_linkedin_industries:N({path:`config.filters.current_employer_linkedin_industries`,sectionKey:`config.filters`,label:`Industry`,disableSearch:!1,groupPath:`config.filters.current_company`,description:``,placeholder:J(`industry`),required:!1,options:p(`linkedin.industries`)}),current_employer_estimated_revenue:N({path:`config.filters.current_employer_estimated_revenue`,sectionKey:`config.filters`,label:`Estimated revenue`,disableSearch:!1,required:!1,groupPath:`config.filters.current_company`,description:``,options:p(`amplemarket.company_revenue`)}),current_employer_founded_year:ka({path:`config.filters.current_employer_founded_year`,sectionKey:`config.filters`,label:`Founded year`,groupPath:`config.filters.current_company`,min:0,max:2040,required:!1,description:``}),current_employer_investors:k({path:`config.filters.current_employer_investors`,sectionKey:`config.filters`,label:`Employer investors`,groupPath:`config.filters.current_company`,placeholder:J(`investor`),description:``}),current_employer_open_positions_titles:k({path:`config.filters.current_employer_open_positions_titles`,sectionKey:`config.filters`,label:`Open positions`,groupPath:`config.filters.current_company`,description:``,placeholder:J(`title`),suggestionsDef:h(`titles`)}),school_names:F({path:`config.filters.school_names`,sectionKey:`config.filters`,label:`School names`,description:``,placeholder:J(`school`),groupPath:`config.filters.education`,optionsDef:h(`schools`)})}).check(e=>{LS(e.value)&&e.issues.push({code:`custom`,message:`You must set at least one filter.`,input:e.value})})})}),FC={default:{input:[{fields:[]}]}},IC=class extends Z{searchId=OC;schema=PC;payload;constructor(e){super(),this.payload=this.validatePayload(e)}getRawOutputFields(){return{[kC.name]:this.catalogOutput(kC),[AC.name]:this.catalogOutput(AC),[jC.name]:this.catalogOutput(jC),[MC.name]:this.catalogOutput(MC),[NC.name]:this.catalogOutput(NC)}}getConnectionsRequirements(){return[{provider:`amplemarket`,rateLimitOperation:`amplemarket_people_search`,rateLimitRatio:1,allowManagedConnection:!0}]}getDedupConfig(){return FC}},LC=PC,RC={searchId:OC,billableOperation:`people-profiles-amplemarket-v1`,baseSearch:Q(`people:profiles:amplemarket@1`),paginationType:`page_number`,label:`People search`,categories:[`deprecated`],hasManagedConnection:!0,allowsUserConnection:!0,lifecycle:{deprecatedOn:`2026-06-13`,replacedBy:`people:profiles:amplemarket@2`},description:`Filter-based people search.`,tags:[z.PEOPLE_PROFILES],docPath:$(OC),cost:{mode:`per_page`,credits:{default:3},info:`1 page = 100 records; 200 results = 2 pages`},provider:`amplemarket`,defaultPayload:{search_id:OC,connector:null,config:{limit:50,page_number:1,output_fields:{name:{enabled:!0,alias:``},job_title:{enabled:!0,alias:``},profile_url:{enabled:!0,alias:``},company_website_url:{enabled:!0,alias:``},amplemarket_person_match:{enabled:!0,alias:``}},filters:{current_employer_names:{include:[],exclude:[]},current_departments:[],current_employer_locations:{include:[],exclude:[]},person_names:[],current_employer_founded_year:{min:null,max:null},current_employer_estimated_revenue:[],current_employer_investors:[],current_employer_open_positions_titles:[],current_job_functions:[],current_locations:{include:[],exclude:[]},current_employer_linkedin_industries:[],current_employer_website_urls:{include:[],exclude:[]},current_seniority_levels:[],school_names:{include:[],exclude:[]},current_job_titles:[]}}}},zC=`people:profiles:crustdata@1`,BC=g(`name`),VC=g(`company_website_url`),HC=g(`profile_url`),UC=g(`job_title`),WC=g(`crustdata_person_match`),GC=r.object({search_id:r.literal(zC),connector:_.nullable().optional(),config:r.object({limit:I({path:`config.limit`,min:1,max:100,groupPath:`config.pagination`,required:!0,sectionKey:`pagination`,label:`Limit`,description:`Max number of search results`}),cursor:Fa({path:`config.cursor`,groupPath:`config.pagination`,inputType:`text`,label:`Cursor`,sectionKey:`pagination`,description:`Pagination cursor`}),output_fields:L(r.object({[BC.name]:M({fieldName:BC.name}),[VC.name]:M({fieldName:VC.name}),[HC.name]:M({fieldName:HC.name}),[UC.name]:M({fieldName:UC.name}),[WC.name]:M({fieldName:WC.name})})),filters:r.object({locations:F({path:`config.filters.locations`,sectionKey:`config.filters`,label:`Location`,placeholder:J(`location`),optionsDef:h(`locations`),groupPath:`config.filters.general`}),current_job_titles:A({path:`config.filters.current_job_titles`,sectionKey:`config.filters`,label:`Title`,description:``,placeholder:J(`title`),order:1,groupPath:`config.filters.current_employer`,suggestionsDef:h(`titles`)}),current_employers:A({path:`config.filters.current_employers`,sectionKey:`config.filters`,label:`Company name`,description:``,placeholder:J(`company_name`),maxItems:200,groupPath:`config.filters.current_employer`,suggestionsDef:h(`company_names`,{widgets:{emoji:{char:`🏷️`}}})}),current_employers_website_urls:A({path:`config.filters.current_employers_website_urls`,sectionKey:`config.filters`,label:`Company domain`,placeholder:J(`company_domain`),description:``,maxItems:200,groupPath:`config.filters.current_employer`,suggestionsDef:h(`company_domains`,{widgets:{emoji:{char:`🌐`}}})}),current_employers_linkedin_industries:F({path:`config.filters.current_employers_linkedin_industries`,sectionKey:`config.filters`,label:`Industry`,groupPath:`config.filters.current_employer`,placeholder:J(`industry`),description:``,optionsDef:h(`linkedin_industries.crustdata`,{limit:300})}),years_at_current_company:N({path:`config.filters.years_at_current_company`,sectionKey:`config.filters`,label:`Years at current company`,placeholder:`1 to 2 years`,disableSearch:!1,required:!1,groupPath:`config.filters.current_employer`,description:``,options:p(`crustdata.years_of_experience`)}),previous_employers_website_urls:A({path:`config.filters.previous_employers_website_urls`,sectionKey:`config.filters`,label:`Previous employer domain`,description:``,placeholder:J(`company_domain`),maxItems:200,groupPath:`config.filters.experience`,suggestionsDef:h(`company_domains`,{widgets:{emoji:{char:`🌐`}}})}),previous_seniority_levels:j({path:`config.filters.previous_seniority_levels`,sectionKey:`config.filters`,label:`Previous seniority`,placeholder:J(`seniority`),disableSearch:!0,optionsDef:m(`crustdata.person_seniority`),description:``,groupPath:`config.filters.experience`}),previous_employers:A({path:`config.filters.previous_employers`,sectionKey:`config.filters`,label:`Previous employer`,description:``,placeholder:J(`company_name`),maxItems:200,groupPath:`config.filters.experience`,suggestionsDef:h(`company_names`,{widgets:{emoji:{char:`🏷️`}}})}),previous_job_titles:A({path:`config.filters.previous_job_titles`,sectionKey:`config.filters`,label:`Previous title`,description:``,placeholder:J(`title`),groupPath:`config.filters.experience`,suggestionsDef:h(`titles`)}),previous_employers_linkedin_industries:F({path:`config.filters.previous_employers_linkedin_industries`,sectionKey:`config.filters`,label:`Previous employer industries`,placeholder:J(`industry`),groupPath:`config.filters.experience`,description:``,optionsDef:h(`linkedin_industries.crustdata`,{limit:300})}),profile_headline_keywords:A({path:`config.filters.profile_headline_keywords`,sectionKey:`config.filters`,label:`Headline contains keywords`,maxItems:100,groupPath:`config.filters.keywords`,placeholder:J(`headline_keywords`)}),profile_summary_keywords:A({path:`config.filters.profile_summary_keywords`,sectionKey:`config.filters`,label:`Profile about section contains keywords`,maxItems:100,groupPath:`config.filters.keywords`,placeholder:J(`profile_keywords`)}),profile_languages:j({path:`config.filters.profile_languages`,sectionKey:`config.filters`,label:`Profile language`,placeholder:J(`languages`),optionsDef:m(`crustdata.person_profile_languages`),groupPath:`config.filters.general`}),languages:j({path:`config.filters.languages`,sectionKey:`config.filters`,label:`Spoken language`,placeholder:J(`languages_1`),optionsDef:m(`crustdata.person_profile_languages`),groupPath:`config.filters.general`}),skills:F({path:`config.filters.skills`,sectionKey:`config.filters`,label:`Skills`,description:``,placeholder:J(`skills`),groupPath:`config.filters.skills`,optionsDef:h(`skills`)}),years_of_experience:N({path:`config.filters.years_of_experience`,sectionKey:`config.filters`,label:`Years of experience`,placeholder:`1 to 2 years`,disableSearch:!0,description:``,required:!1,options:p(`crustdata.years_of_experience`),groupPath:`config.filters.experience`}),current_seniority_levels:j({path:`config.filters.current_seniority_levels`,sectionKey:`config.filters`,disableSearch:!0,label:`Seniority`,placeholder:J(`seniority`),optionsDef:m(`crustdata.person_seniority`),description:``,groupPath:`config.filters.experience`}),certifications:A({path:`config.filters.certifications`,sectionKey:`config.filters`,label:`Certifications`,groupPath:`config.filters.certifications_honors`,placeholder:J(`certification`),description:``}),honors:A({path:`config.filters.honors`,sectionKey:`config.filters`,label:`Honors`,groupPath:`config.filters.certifications_honors`,placeholder:J(`honor`),description:``}),recently_changed_jobs:Pa({path:`config.filters.recently_changed_jobs`,sectionKey:`config.filters`,label:`Recently changed jobs`,description:``,defaultValue:null,groupPath:`config.filters.activities`}),fields_of_study:F({path:`config.filters.fields_of_study`,sectionKey:`config.filters`,label:`Fields of study`,placeholder:J(`field_of_study`),description:``,groupPath:`config.filters.education`,optionsDef:h(`person.education_field_of_study.crustdata`)}),degree_names:F({path:`config.filters.degree_names`,sectionKey:`config.filters`,label:`Degree names`,placeholder:J(`degree_name`),description:``,groupPath:`config.filters.education`,optionsDef:h(`person.education_degree.crustdata`)}),school_names:F({path:`config.filters.school_names`,sectionKey:`config.filters`,label:`School names`,description:``,placeholder:J(`school`),groupPath:`config.filters.education`,optionsDef:h(`schools`)}),current_school_names:F({path:`config.filters.current_school_names`,sectionKey:`config.filters`,label:`Currently enrolled at`,description:``,placeholder:J(`school`),groupPath:`config.filters.education`,optionsDef:h(`schools`)}),extracurricular_activities:A({path:`config.filters.extracurricular_activities`,sectionKey:`config.filters`,label:`Extracurricular activities`,description:``,placeholder:J(`extracurricular`),groupPath:`config.filters.education`,suggestionsDef:h(`person.education_activities.crustdata`)})}).check(e=>{LS(e.value)&&e.issues.push({code:`custom`,message:`You must set at least one filter.`,input:e.value})})})}),KC={default:{input:[{fields:[]}]}},qC=class extends Z{searchId=zC;schema=GC;payload;constructor(e){super(),this.payload=this.validatePayload(e)}getRawOutputFields(){return{[BC.name]:this.catalogOutput(BC),[VC.name]:this.catalogOutput(VC),[HC.name]:this.catalogOutput(HC),[UC.name]:this.catalogOutput(UC),[WC.name]:this.catalogOutput(WC)}}getConnectionsRequirements(){return[{provider:`crustdata`,rateLimitOperation:`crustdata_people_db_search`,rateLimitRatio:1,allowManagedConnection:!0}]}getDedupConfig(){return KC}},JC=GC,YC={searchId:zC,billableOperation:`people-profiles-crustdata-v1`,baseSearch:Q(`people:profiles:crustdata@1`),paginationType:`cursor`,label:`People search`,categories:[`deprecated`],hasManagedConnection:!0,allowsUserConnection:!0,lifecycle:{deprecatedOn:`2026-06-13`,replacedBy:`people:profiles:crustdata@2`},description:`Filter-based people search.`,tags:[z.PEOPLE_PROFILES],docPath:$(zC),cost:{mode:`per_page`,credits:{default:5},info:`1 page = 100 records; 200 results = 2 pages`},provider:`crustdata`,defaultPayload:{search_id:zC,connector:null,config:{limit:100,cursor:``,output_fields:{name:{enabled:!0,alias:``},job_title:{enabled:!0,alias:``},profile_url:{enabled:!0,alias:``},company_website_url:{enabled:!0,alias:``},crustdata_person_match:{enabled:!0,alias:``}},filters:{profile_headline_keywords:{include:[],exclude:[]},languages:{include:[],exclude:[]},profile_summary_keywords:{include:[],exclude:[]},previous_job_titles:{include:[],exclude:[]},current_employers:{include:[],exclude:[]},current_school_names:{include:[],exclude:[]},years_at_current_company:[],certifications:{include:[],exclude:[]},honors:{include:[],exclude:[]},current_employers_linkedin_industries:{include:[],exclude:[]},current_employers_website_urls:{include:[],exclude:[]},previous_employers_website_urls:{include:[],exclude:[]},current_seniority_levels:{include:[],exclude:[]},previous_seniority_levels:{include:[],exclude:[]},degree_names:{include:[],exclude:[]},locations:{include:[],exclude:[]},profile_languages:{include:[],exclude:[]},recently_changed_jobs:null,extracurricular_activities:{include:[],exclude:[]},school_names:{include:[],exclude:[]},fields_of_study:{include:[],exclude:[]},previous_employers:{include:[],exclude:[]},current_job_titles:{include:[],exclude:[]},skills:{include:[],exclude:[]},years_of_experience:[],previous_employers_linkedin_industries:{include:[],exclude:[]}}}}},XC=`people:entitysearch:parallel@1`,ZC=g(`name`),QC=g(`job_title`),$C=g(`profile_url`),ew=g(`parallel_person_entity_match`),tw=r.object({search_id:r.literal(XC),connector:sa(),config:r.object({objective:Ia({path:`config.objective`,sectionKey:`general`,groupPath:`config.general`,label:`Objective`,rows:4,minLength:10,placeholder:`Heads of Engineering at Series B fintech companies in the US`,description:`Plain-text natural-language description of the people to find.`}),limit:I({path:`config.limit`,min:5,max:1e3,groupPath:`config.pagination`,required:!0,sectionKey:`pagination`,label:`Limit`,description:`Max number of entities to return (5–1000).`}).default(100),output_fields:L(r.object({[ZC.name]:M({fieldName:ZC.name}),[QC.name]:M({fieldName:QC.name}),[$C.name]:M({fieldName:$C.name}),[ew.name]:M({fieldName:ew.name})}))})}),nw={default:{input:[{fields:[]}]}},rw=class extends Z{searchId=XC;schema=tw;payload;constructor(e){super(),this.payload=this.validatePayload(e)}getRawOutputFields(){return{[ZC.name]:this.catalogOutput(ZC),[QC.name]:this.catalogOutput(QC),[$C.name]:this.catalogOutput($C),[ew.name]:this.catalogOutput(ew)}}getConnectionsRequirements(){return[{provider:`parallel`,rateLimitOperation:`parallel_entity_search`,rateLimitRatio:1,allowManagedConnection:!0}]}getDedupConfig(){return nw}},iw=tw,aw={searchId:XC,billableOperation:`people-entitysearch-parallel-v1`,baseSearch:Q(XC),label:`People search (AI)`,categories:[`people`],paginationType:`page_number`,hasManagedConnection:!0,allowsUserConnection:!0,lifecycle:null,description:`Natural-language people search powered by Parallel Entity Search.`,tags:[z.PEOPLE_PROFILES],docPath:$(XC),cost:{mode:`per_page`,credits:{default:.5},info:`1 page = 100 results; billed per 100 results returned (e.g. 100 results = 1 page, 1,000 results = 10 pages). A search returns up to your selected limit in a single request.`},provider:`parallel`,defaultPayload:{search_id:XC,connector:null,config:{objective:``,limit:100,output_fields:{name:{enabled:!0,alias:``},job_title:{enabled:!0,alias:``},profile_url:{enabled:!0,alias:``},parallel_person_entity_match:{enabled:!1,alias:``}}}}},ow=`people:eventguests:luma@1`,sw=g(`name`),cw=g(`email`),lw=g(`luma_id`),uw=g(`registered_at`),dw=g(`luma_event_guest_match`),fw=[{label:`Sample Meetup β€” Berlin`,value:`evt-sandbox-1`},{label:`Sample Conference β€” SF`,value:`evt-sandbox-2`}],pw={requires:{connection:`luma`},options:async({query:e,secret:t,environment:n})=>{if(n===`sandbox`)return fw;if(!t)throw Error(`A Luma connection is required to list events.`);let r=await fetch(`https://public-api.luma.com/v1/calendar/list-events`,{headers:{accept:`application/json`,"x-luma-api-key":t}});if(!r.ok){let e=await r.text();throw Error(`Failed to list Luma events: ${e}`)}let i=((await r.json()).entries||[]).filter(e=>!!e?.id).map(e=>({label:e.name||e.id,value:e.id}));return e?i.filter(t=>t.label.toLowerCase().includes(e.toLowerCase())):i}},mw=r.object({search_id:r.literal(ow),connector:oa(),config:r.object({limit:I({path:`config.limit`,min:1,max:100,groupPath:`config.pagination`,required:!0,sectionKey:`pagination`,label:`Limit`,description:`Max number of guests per page`}).default(100),cursor:Fa({path:`config.cursor`,groupPath:`config.pagination`,inputType:`text`,label:`Cursor`,sectionKey:`pagination`,description:`Pagination cursor`}),output_fields:L(r.object({[sw.name]:M({fieldName:sw.name}),[cw.name]:M({fieldName:cw.name}),[lw.name]:M({fieldName:lw.name}),[uw.name]:M({fieldName:uw.name}),[dw.name]:M({fieldName:dw.name})})),filters:r.object({event_id:Ra({path:`config.filters.event_id`,sectionKey:`config.filters`,groupPath:`config.filters.event`,label:`Event`,required:!0,info:`Pick one of your Luma events; guests of this event are returned.`,enabledIf:Sn(`luma`),optionsDef:pw}),approval_status:La({path:`config.filters.approval_status`,sectionKey:`config.filters`,groupPath:`config.filters.event`,label:`Approval status`,description:`Only return guests with this approval status.`,required:!1,options:[{value:`approved`,label:`Approved`},{value:`pending_approval`,label:`Pending approval`},{value:`declined`,label:`Declined`},{value:`waitlist`,label:`Waitlist`},{value:`invited`,label:`Invited`}]})})})}),hw={default:{input:[{fields:[{outputField:`luma_id`}]}]}},gw=class extends Z{searchId=ow;schema=mw;payload;constructor(e){super(),this.payload=this.validatePayload(e)}getRawOutputFields(){return{[sw.name]:this.catalogOutput(sw),[cw.name]:this.catalogOutput(cw),[lw.name]:this.catalogOutput(lw),[uw.name]:this.catalogOutput(uw),[dw.name]:this.catalogOutput(dw)}}getConnectionsRequirements(){return[{provider:`luma`,rateLimitOperation:`luma_get_guests`,rateLimitRatio:1,allowManagedConnection:!1}]}getDedupConfig(){return hw}},_w=mw,vw={searchId:ow,billableOperation:`people-eventguests-luma-v1`,baseSearch:Q(ow),paginationType:`cursor`,label:`List event guests`,categories:[`people`],hasManagedConnection:!1,allowsUserConnection:!0,lifecycle:null,description:`Fetch all guests of a Luma event using your own Luma API key.`,tags:[z.PEOPLE_PROFILES,z.EVENTS,z.NEW],docPath:$(ow),cost:{mode:`per_page`,credits:{default:1},info:`1 page = up to 100 guests.`},provider:`luma`,defaultPayload:{search_id:ow,connector:{strategy:`first`,connections:[]},config:{limit:100,cursor:``,output_fields:{name:{enabled:!0,alias:``},email:{enabled:!0,alias:``},luma_id:{enabled:!0,alias:``},registered_at:{enabled:!0,alias:``},luma_event_guest_match:{enabled:!0,alias:``}},filters:{event_id:``,approval_status:``}}}},yw=`people:profiles:amplemarket@2`,bw=g(`name`),xw=g(`company_domain`),Sw=g(`profile_url`),Cw=g(`job_title`),ww=g(`amplemarket_person_match`),Tw=r.object({search_id:r.literal(yw),connector:sa(),config:r.object({limit:I({path:`config.limit`,min:1,max:100,groupPath:`config.pagination`,required:!0,label:`Limit`,sectionKey:`pagination`,description:`Max number of search results`}).default(50),page_number:I({path:`config.page_number`,groupPath:`config.pagination`,required:!1,label:`Page number`,min:1,sectionKey:`pagination`,description:``}),output_fields:L(r.object({[bw.name]:M({fieldName:bw.name}),[xw.name]:M({fieldName:xw.name}),[Sw.name]:M({fieldName:Sw.name}),[Cw.name]:M({fieldName:Cw.name}),[ww.name]:M({fieldName:ww.name})})),filters:r.object({person_names:k({label:`Full name`,path:`config.filters.person_names`,sectionKey:`config.filters`,groupPath:`config.filters.general`}),current_locations:F({path:`config.filters.current_locations`,sectionKey:`config.filters`,label:`Location`,optionsDef:h(`locations`),groupPath:`config.filters.general`}),current_job_titles:k({path:`config.filters.current_job_titles`,sectionKey:`config.filters`,label:`Title`,placeholder:J(`title`),description:``,order:1,groupPath:`config.filters.current_employer`,suggestionsDef:h(`titles`)}),current_seniority_levels:N({path:`config.filters.current_seniority_levels`,sectionKey:`config.filters`,placeholder:J(`seniority`),label:`Seniority`,required:!1,disableSearch:!1,options:p(`amplemarket.seniority_levels`),description:``,groupPath:`config.filters.current_employer`}),current_departments:N({path:`config.filters.current_departments`,sectionKey:`config.filters`,label:`Department`,placeholder:J(`department`),disableSearch:!1,required:!1,options:p(`amplemarket.departments`),description:``,groupPath:`config.filters.current_employer`}),current_job_functions:N({path:`config.filters.current_job_functions`,sectionKey:`config.filters`,label:`Job function`,placeholder:J(`job_function`),disableSearch:!1,required:!1,options:p(`amplemarket.job_functions`),description:``,groupPath:`config.filters.current_employer`}),current_employer_locations:F({path:`config.filters.current_employer_locations`,sectionKey:`config.filters`,label:`Headquarters`,optionsDef:h(`locations`),groupPath:`config.filters.current_company`,placeholder:J(`location`)}),current_employer_names:A({path:`config.filters.current_employer_names`,sectionKey:`config.filters`,label:`Company name`,groupPath:`config.filters.current_company`,description:``,placeholder:J(`company_name`),suggestionsDef:h(`company_names`)}),current_employer_domains:A({path:`config.filters.current_employer_domains`,sectionKey:`config.filters`,label:`Company domain`,description:``,maxItems:200,placeholder:J(`company_domain`),groupPath:`config.filters.current_company`,suggestionsDef:h(`company_domains`,{widgets:e=>({logo_url:{url:MS(e.value)}})})}),current_employer_linkedin_industries:N({path:`config.filters.current_employer_linkedin_industries`,sectionKey:`config.filters`,label:`Industry`,disableSearch:!1,groupPath:`config.filters.current_company`,description:``,placeholder:J(`industry`),required:!1,options:p(`linkedin.industries`)}),current_employer_estimated_revenue:N({path:`config.filters.current_employer_estimated_revenue`,sectionKey:`config.filters`,label:`Estimated revenue`,disableSearch:!1,required:!1,groupPath:`config.filters.current_company`,description:``,options:p(`amplemarket.company_revenue`)}),current_employer_founded_year:ka({path:`config.filters.current_employer_founded_year`,sectionKey:`config.filters`,label:`Founded year`,groupPath:`config.filters.current_company`,min:0,max:2040,required:!1,description:``}),current_employer_investors:k({path:`config.filters.current_employer_investors`,sectionKey:`config.filters`,label:`Employer investors`,groupPath:`config.filters.current_company`,placeholder:J(`investor`),description:``}),current_employer_open_position_titles:k({path:`config.filters.current_employer_open_position_titles`,sectionKey:`config.filters`,label:`Open positions`,groupPath:`config.filters.current_company`,description:``,placeholder:J(`title`),suggestionsDef:h(`titles`)}),school_names:F({path:`config.filters.school_names`,sectionKey:`config.filters`,label:`School names`,description:``,placeholder:J(`school`),groupPath:`config.filters.education`,optionsDef:h(`schools`)})}).check(e=>{LS(e.value)&&e.issues.push({code:`custom`,message:`You must set at least one filter.`,input:e.value})})})}),Ew={default:{input:[{fields:[]}]}},Dw=class extends Z{searchId=yw;schema=Tw;payload;constructor(e){super(),this.payload=this.validatePayload(e)}getRawOutputFields(){return{[bw.name]:this.catalogOutput(bw),[xw.name]:this.catalogOutput(xw),[Sw.name]:this.catalogOutput(Sw),[Cw.name]:this.catalogOutput(Cw),[ww.name]:this.catalogOutput(ww)}}getConnectionsRequirements(){return[{provider:`amplemarket`,rateLimitOperation:`amplemarket_people_search`,rateLimitRatio:1,allowManagedConnection:!0}]}getDedupConfig(){return Ew}},Ow=Tw,kw={searchId:yw,billableOperation:`people-profiles-amplemarket-v2`,baseSearch:Q(`people:profiles:amplemarket@2`),paginationType:`page_number`,label:`People search`,categories:[`people`],hasManagedConnection:!0,allowsUserConnection:!0,lifecycle:null,description:`Filter-based people search.`,tags:[z.PEOPLE_PROFILES],docPath:$(yw),cost:{mode:`per_page`,credits:{default:3},info:`1 page = 100 records; 200 results = 2 pages`},provider:`amplemarket`,defaultPayload:{search_id:yw,connector:null,config:{limit:50,page_number:1,output_fields:{name:{enabled:!0,alias:``},job_title:{enabled:!0,alias:``},profile_url:{enabled:!0,alias:``},company_domain:{enabled:!0,alias:``},amplemarket_person_match:{enabled:!0,alias:``}},filters:{current_employer_names:{include:[],exclude:[]},current_departments:[],current_employer_locations:{include:[],exclude:[]},person_names:[],current_employer_founded_year:{min:null,max:null},current_employer_estimated_revenue:[],current_employer_investors:[],current_employer_open_position_titles:[],current_job_functions:[],current_locations:{include:[],exclude:[]},current_employer_linkedin_industries:[],current_employer_domains:{include:[],exclude:[]},current_seniority_levels:[],school_names:{include:[],exclude:[]},current_job_titles:[]}}}},Aw=`people:profiles:crustdata@2`,jw=g(`name`),Mw=g(`company_domain`),Nw=g(`profile_url`),Pw=g(`job_title`),Fw=g(`crustdata_person_match`),Iw=r.object({search_id:r.literal(Aw),connector:sa(),config:r.object({limit:I({path:`config.limit`,min:1,max:100,groupPath:`config.pagination`,required:!0,sectionKey:`pagination`,label:`Limit`,description:`Max number of search results`}).default(100),cursor:Fa({path:`config.cursor`,groupPath:`config.pagination`,inputType:`text`,label:`Cursor`,sectionKey:`pagination`,description:`Pagination cursor`}),output_fields:L(r.object({[jw.name]:M({fieldName:jw.name}),[Mw.name]:M({fieldName:Mw.name}),[Nw.name]:M({fieldName:Nw.name}),[Pw.name]:M({fieldName:Pw.name}),[Fw.name]:M({fieldName:Fw.name})})),filters:r.object({locations:F({path:`config.filters.locations`,sectionKey:`config.filters`,label:`Location`,placeholder:J(`location`),optionsDef:h(`locations`),groupPath:`config.filters.general`}),current_job_titles:A({path:`config.filters.current_job_titles`,sectionKey:`config.filters`,label:`Title`,description:``,placeholder:J(`title`),order:1,groupPath:`config.filters.current_employer`,suggestionsDef:h(`titles`)}),current_employer_names:A({path:`config.filters.current_employer_names`,sectionKey:`config.filters`,label:`Company name`,description:``,placeholder:J(`company_name`),maxItems:200,groupPath:`config.filters.current_employer`,suggestionsDef:h(`company_names`,{widgets:{emoji:{char:`🏷️`}}})}),current_employer_domains:A({path:`config.filters.current_employer_domains`,sectionKey:`config.filters`,label:`Company domain`,placeholder:J(`company_domain`),description:``,maxItems:200,groupPath:`config.filters.current_employer`,suggestionsDef:h(`company_domains`,{widgets:e=>({logo_url:{url:MS(e.value)}})})}),current_employer_industries:F({path:`config.filters.current_employer_industries`,sectionKey:`config.filters`,label:`Industry`,groupPath:`config.filters.current_employer`,placeholder:J(`industry`),description:``,optionsDef:h(`linkedin_industries.crustdata`,{limit:300})}),years_at_current_company:N({path:`config.filters.years_at_current_company`,sectionKey:`config.filters`,label:`Years at current company`,placeholder:`1 to 2 years`,disableSearch:!1,required:!1,groupPath:`config.filters.current_employer`,description:``,options:p(`crustdata.years_of_experience`)}),previous_employer_domains:A({path:`config.filters.previous_employer_domains`,sectionKey:`config.filters`,label:`Previous employer domain`,description:``,placeholder:J(`company_domain`),maxItems:200,groupPath:`config.filters.experience`,suggestionsDef:h(`company_domains`,{widgets:e=>({logo_url:{url:MS(e.value)}})})}),previous_seniority_levels:j({path:`config.filters.previous_seniority_levels`,sectionKey:`config.filters`,label:`Previous seniority`,placeholder:J(`seniority`),disableSearch:!0,optionsDef:m(`crustdata.person_seniority`),description:``,groupPath:`config.filters.experience`}),previous_employer_names:A({path:`config.filters.previous_employer_names`,sectionKey:`config.filters`,label:`Previous employer`,description:``,placeholder:J(`company_name`),maxItems:200,groupPath:`config.filters.experience`,suggestionsDef:h(`company_names`,{widgets:{emoji:{char:`🏷️`}}})}),previous_job_titles:A({path:`config.filters.previous_job_titles`,sectionKey:`config.filters`,label:`Previous title`,description:``,placeholder:J(`title`),groupPath:`config.filters.experience`,suggestionsDef:h(`titles`)}),previous_employer_industries:F({path:`config.filters.previous_employer_industries`,sectionKey:`config.filters`,label:`Previous employer industries`,placeholder:J(`industry`),groupPath:`config.filters.experience`,description:``,optionsDef:h(`linkedin_industries.crustdata`,{limit:300})}),profile_headline_keywords:A({path:`config.filters.profile_headline_keywords`,sectionKey:`config.filters`,label:`Headline contains keywords`,maxItems:100,groupPath:`config.filters.keywords`,placeholder:J(`headline_keywords`)}),profile_summary_keywords:A({path:`config.filters.profile_summary_keywords`,sectionKey:`config.filters`,label:`Profile about section contains keywords`,maxItems:100,groupPath:`config.filters.keywords`,placeholder:J(`profile_keywords`)}),profile_languages:j({path:`config.filters.profile_languages`,sectionKey:`config.filters`,label:`Profile language`,placeholder:J(`languages`),optionsDef:m(`crustdata.person_profile_languages`),groupPath:`config.filters.general`}),languages:j({path:`config.filters.languages`,sectionKey:`config.filters`,label:`Spoken language`,placeholder:J(`languages_1`),optionsDef:m(`crustdata.person_profile_languages`),groupPath:`config.filters.general`}),skills:F({path:`config.filters.skills`,sectionKey:`config.filters`,label:`Skills`,description:``,placeholder:J(`skills`),groupPath:`config.filters.skills`,optionsDef:h(`skills`)}),years_of_experience:N({path:`config.filters.years_of_experience`,sectionKey:`config.filters`,label:`Years of experience`,placeholder:`1 to 2 years`,disableSearch:!0,description:``,required:!1,options:p(`crustdata.years_of_experience`),groupPath:`config.filters.experience`}),current_seniority_levels:j({path:`config.filters.current_seniority_levels`,sectionKey:`config.filters`,disableSearch:!0,label:`Seniority`,placeholder:J(`seniority`),optionsDef:m(`crustdata.person_seniority`),description:``,groupPath:`config.filters.experience`}),certifications:A({path:`config.filters.certifications`,sectionKey:`config.filters`,label:`Certifications`,groupPath:`config.filters.certifications_honors`,placeholder:J(`certification`),description:``}),honors:A({path:`config.filters.honors`,sectionKey:`config.filters`,label:`Honors`,groupPath:`config.filters.certifications_honors`,placeholder:J(`honor`),description:``}),recently_changed_jobs:Pa({path:`config.filters.recently_changed_jobs`,sectionKey:`config.filters`,label:`Recently changed jobs`,description:``,defaultValue:null,groupPath:`config.filters.activities`}),fields_of_study:F({path:`config.filters.fields_of_study`,sectionKey:`config.filters`,label:`Fields of study`,placeholder:J(`field_of_study`),description:``,groupPath:`config.filters.education`,optionsDef:h(`person.education_field_of_study.crustdata`)}),degree_names:F({path:`config.filters.degree_names`,sectionKey:`config.filters`,label:`Degree names`,placeholder:J(`degree_name`),description:``,groupPath:`config.filters.education`,optionsDef:h(`person.education_degree.crustdata`)}),school_names:F({path:`config.filters.school_names`,sectionKey:`config.filters`,label:`School names`,description:``,placeholder:J(`school`),groupPath:`config.filters.education`,optionsDef:h(`schools`)}),current_school_names:F({path:`config.filters.current_school_names`,sectionKey:`config.filters`,label:`Currently enrolled at`,description:``,placeholder:J(`school`),groupPath:`config.filters.education`,optionsDef:h(`schools`)}),extracurricular_activities:A({path:`config.filters.extracurricular_activities`,sectionKey:`config.filters`,label:`Extracurricular activities`,description:``,placeholder:J(`extracurricular`),groupPath:`config.filters.education`,suggestionsDef:h(`person.education_activities.crustdata`)})}).check(e=>{LS(e.value)&&e.issues.push({code:`custom`,message:`You must set at least one filter.`,input:e.value})})})}),Lw={default:{input:[{fields:[]}]}},Rw=class extends Z{searchId=Aw;schema=Iw;payload;constructor(e){super(),this.payload=this.validatePayload(e)}getRawOutputFields(){return{[jw.name]:this.catalogOutput(jw),[Mw.name]:this.catalogOutput(Mw),[Nw.name]:this.catalogOutput(Nw),[Pw.name]:this.catalogOutput(Pw),[Fw.name]:this.catalogOutput(Fw)}}getConnectionsRequirements(){return[{provider:`crustdata`,rateLimitOperation:`crustdata_people_db_search`,rateLimitRatio:1,allowManagedConnection:!0}]}getDedupConfig(){return Lw}},zw=Iw,Bw={searchId:Aw,billableOperation:`people-profiles-crustdata-v2`,baseSearch:Q(`people:profiles:crustdata@2`),paginationType:`cursor`,label:`People search`,categories:[`people`],hasManagedConnection:!0,allowsUserConnection:!0,lifecycle:null,description:`Filter-based people search.`,tags:[z.PEOPLE_PROFILES],docPath:$(Aw),cost:{mode:`per_page`,credits:{default:5},info:`1 page = 100 records; 200 results = 2 pages`},provider:`crustdata`,defaultPayload:{search_id:Aw,connector:null,config:{limit:100,cursor:``,output_fields:{name:{enabled:!0,alias:``},job_title:{enabled:!0,alias:``},profile_url:{enabled:!0,alias:``},company_domain:{enabled:!0,alias:``},crustdata_person_match:{enabled:!0,alias:``}},filters:{profile_headline_keywords:{include:[],exclude:[]},languages:{include:[],exclude:[]},profile_summary_keywords:{include:[],exclude:[]},previous_job_titles:{include:[],exclude:[]},current_employer_names:{include:[],exclude:[]},current_school_names:{include:[],exclude:[]},years_at_current_company:[],certifications:{include:[],exclude:[]},honors:{include:[],exclude:[]},current_employer_industries:{include:[],exclude:[]},current_employer_domains:{include:[],exclude:[]},previous_employer_domains:{include:[],exclude:[]},current_seniority_levels:{include:[],exclude:[]},previous_seniority_levels:{include:[],exclude:[]},degree_names:{include:[],exclude:[]},locations:{include:[],exclude:[]},profile_languages:{include:[],exclude:[]},recently_changed_jobs:null,extracurricular_activities:{include:[],exclude:[]},school_names:{include:[],exclude:[]},fields_of_study:{include:[],exclude:[]},previous_employer_names:{include:[],exclude:[]},current_job_titles:{include:[],exclude:[]},skills:{include:[],exclude:[]},years_of_experience:[],previous_employer_industries:{include:[],exclude:[]}}}}},Vw=`sheet:rows@1`,Hw=[{label:`Demo leads`,value:`demo-leads`},{label:`Demo companies`,value:`demo-companies`},{label:`Demo contacts`,value:`demo-contacts`}],Uw={requires:{connection:`pipe0`},enabledIf:Sn(`pipe0`,`Select a pipe0 connection to see sheet suggestions`),options:async({query:e,client:t,environment:n})=>n===`sandbox`?Hw:t?(await t.sheets.list({query:e})).map(e=>({label:e.name&&e.name!==e.slug?`${e.name} (${e.slug})`:e.slug,value:e.slug})):[],widgets:{provider_logo:{provider:`pipe0`}}},Ww=r.object({search_id:r.literal(Vw),connector:oa(),config:r.object({sheet:Ra({path:`config.sheet`,sectionKey:`general`,groupPath:`config.general`,label:`Sheet`,required:!0,info:`Pick one of your pipe0 sheets; its rows are returned.`,enabledIf:Sn(`pipe0`),optionsDef:Uw}),limit:I({path:`config.limit`,min:1,max:2e3,groupPath:`config.pagination`,required:!0,sectionKey:`pagination`,label:`Limit`,description:`Max number of rows per page`}).default(100),cursor:Fa({path:`config.cursor`,groupPath:`config.pagination`,inputType:`text`,label:`Cursor`,sectionKey:`pagination`,description:`Pagination cursor`}),include_metadata:Na({path:`config.include_metadata`,groupPath:`config.general`,sectionKey:`general`,label:`Include metadata`,description:`Widgets and prevenance tags.`,defaultValue:!1})})}),Gw={default:{input:[{fields:[{outputField:`id`}]}]}},Kw=class extends Z{searchId=Vw;schema=Ww;payload;constructor(e){super(),this.payload=this.validatePayload(e)}getRawOutputFields(){return{}}getConnectionsRequirements(){return[{provider:`pipe0`,rateLimitOperation:`pipe0-sheet-operation`,rateLimitRatio:1,allowManagedConnection:!0}]}getDedupConfig(){return Gw}},qw=Ww,Jw={searchId:Vw,billableOperation:`sheet-items-v1-pipe0`,baseSearch:Q(Vw),outputFieldMode:`dynamic`,paginationType:`cursor`,label:`Read sheet rows`,categories:[`data`],hasManagedConnection:!0,allowsUserConnection:!0,lifecycle:null,description:`List rows from a pipe0 sheet.`,tags:[z.FIELDS,z.NEW],docPath:$(Vw),cost:{mode:`per_search`,credits:{default:0},info:`Reading your own pipe0 sheet is free.`},provider:`pipe0`,defaultPayload:{search_id:Vw,connector:{strategy:`first`,connections:[]},config:{sheet:``,limit:100,cursor:``,include_metadata:!1}}},Yw={"people:profiles:crustdata@1":qC,"people:profiles:crustdata@2":Rw,"companies:profiles:crustdata@1":TC,"companies:profiles:crustdata@2":rC,"people:profiles:amplemarket@1":IC,"people:profiles:amplemarket@2":Dw,"companies:profiles:amplemarket@1":mC,"companies:profiles:amplemarket@2":KS,"companies:entitysearch:parallel@1":kS,"people:entitysearch:parallel@1":rw,"people:eventguests:luma@1":gw,"sheet:rows@1":Kw},Xw={"people:profiles:crustdata@1":JC,"people:profiles:crustdata@2":zw,"companies:profiles:crustdata@1":EC,"companies:profiles:crustdata@2":iC,"people:profiles:amplemarket@1":LC,"people:profiles:amplemarket@2":Ow,"companies:profiles:amplemarket@1":hC,"companies:profiles:amplemarket@2":qS,"companies:entitysearch:parallel@1":AS,"people:entitysearch:parallel@1":iw,"people:eventguests:luma@1":_w,"sheet:rows@1":qw},Zw={"people:profiles:crustdata@1":YC,"people:profiles:crustdata@2":Bw,"companies:profiles:crustdata@1":DC,"companies:profiles:crustdata@2":aC,"people:profiles:amplemarket@1":RC,"people:profiles:amplemarket@2":kw,"companies:profiles:amplemarket@1":gC,"companies:profiles:amplemarket@2":JS,"companies:entitysearch:parallel@1":jS,"people:entitysearch:parallel@1":aw,"people:eventguests:luma@1":vw,"sheet:rows@1":Jw};function Qw(e){return Yw[e]}const $w=t.discriminatedUnion(`search_id`,Object.values(Xw).map(e=>e)).openapi(`SearchPayloadSchema`);function eT(e,t){return Ba(t,Zw[e].defaultPayload)}const tT=t.preprocess(e=>{if(!e||typeof e!=`object`||!(`search_id`in e))return e;let t=eT(e.search_id);return t?{...e,config:Ba(e?.config||{},t.config)}:e},$w),nT=t.object({config:t.object({environment:t.enum([`production`,`sandbox`]).default(`production`),widgets:t.object({enabled:t.boolean().default(!1)}).default({enabled:!1}),field_definitions:t.object({enabled:t.boolean().default(!1)}).default({enabled:!1})}).default({environment:`production`,widgets:{enabled:!1},field_definitions:{enabled:!1}}),search:tT}).openapi(`SearchRequestSchema`),rT=Yn,iT=t.object({value:In,status:Fn,type:Nn.optional(),format:Qn.nullable().optional(),resolved_by:ir.nullable().optional(),widgets:Jn.optional()}),aT=t.record(t.string(),iT.nullable());function oT(e){return Xw[e]}const sT=t.enum([`cursor`,`page_number`]),cT=t.object({id:t.string(),status:t.enum([`completed`,`failed`,`pending`,`processing`]),search_id:yS,errors:t.array(rT),results:t.array(aT),organization_id:t.string(),next_page:tT.nullable(),pagination_type:sT.nullable(),total_pages:t.int32().nullable(),field_definitions:er.optional()}).openapi(`SearchResponseSchema`);function lT(e){let t=e.split(`@`)[1];if(!t)throw Error(`No search version found`);return Number(t)}function uT(){let e={};for(let t of Object.values(Zw)){let{baseSearch:n}=t;e[n]??=[],e[n].push(t)}return Object.entries(e).forEach(([t,n])=>{e[t]=n.sort((e,t)=>{let n=lT(e.searchId);return lT(t.searchId)-n})}),e}function dT(e){return Zw[e]}const fT=uT();function pT(e){let t=[];for(let[n,r]of Object.entries(fT)){let i=r[0];if(!i)throw Error(`Found empty entry`);i.lifecycle?.deprecatedOn&&e!==`deprecated`||(e===null||i.categories.includes(e))&&t.push({...i,baseSearch:n,latestVersion:lT(i.searchId)})}return t}function mT(e){let t=Zw[e].defaultPayload.config.output_fields;return t?Object.keys(t):[]}function hT(e,t){let n=e.filter(e=>t===null?!0:e.categories.some(e=>e===t)),r={},i={},a={};for(let e of n){if(e.lifecycle&&e.lifecycle.deprecatedOn){i.Deprecated??=[],i.Deprecated.push(e.searchId);continue}a[e.provider]??=[],a[e.provider].push(e.searchId);for(let t of mT(e.searchId))r[t]??=[],r[t].push(e.searchId);for(let t of e.tags)i[t]??=[],i[t].push(e.searchId)}return{searchIdsByOutputField:r,searchIdsByTag:i,searchIdsByProvider:a,sortedTagEntries:Object.entries(i).sort((e,t)=>e[0].localeCompare(t[0])),sortedOutputFieldEntries:Object.entries(r).sort((e,t)=>e[0].localeCompare(t[0])),sortedProviderEntries:Object.entries(a).sort((e,t)=>e[0].localeCompare(t[0])),searchEntriesByBaseSearch:fT}}function gT(e){let t=dT(e);return{[t.provider]:t.cost.credits.default}}const _T={"prompt:run@1":Jb,"company:newssummary:website@1":Vl,"company:newssummary:domain@1":Fs,"company:techstack:builtwith@1":ku,"company:techstack:builtwith@2":cc,"company:websiteurl:email@1":Ru,"company:domain:workemail@1":ho,"company:funding:leadmagic@1":Pc,"company:funding:leadmagic@2":ko,"people:workemail:waterfall@1":$m,"person:workemail:waterfall@1":Vb,"people:email:iswork@1":qu,"email:iswork@1":ch,"people:name:split@1":Cf,"person:name:split@1":ry,"people:validate:email:zerobounce@1":Em,"people:email:validate:zerobounce@2":fd,"email:validate:zerobounce@1":zh,"people:mobilenumber:workemail:waterfall@1":pf,"person:name:join@1":qv,"company:overview@1":nu,"company:overview@2":vu,"company:overview@3":Zs,"json:extract:multi@1":Bg,"company:lookalikes:companyenrich@1":dl,"company:lookalikes:companyenrich@2":as,"company:match:logodev@1":Ml,"company:match:logodev@2":Es,"person:posts:crustdata@1":Ty,"people:profile:workemail:crustdata@1":im,"person:profile:workemail:crustdata@1":Ky,"people:identity:email:waterfall@1":Nd,"person:identity:email:waterfall@1":Y_,"person:identity:amplemarket@1":N_,"email:send:resend@1":kh,"contact:create:resend@1":bc,"email:send:gmail@1":Sh,"email:write@1":Yh,"fields:merge@1":Tg,"field:slugify@1":pg,"field:domainify@1":ig,"http:request@1":Pg,"template:fill@1":Sx,"message:send:slack@1":Jg,"message:write@1":n_,"people:personalemail:profile:waterfall@1":Ff,"person:personalemail:profileurl:waterfall@1":hy,"website:scrape:firecrawl@1":oS,"website:scrapelist:firecrawl@1":hS,"website:extract:firecrawl@1":jx,"website:extract:parallel@1":Bx,"website:maplinks:firecrawl@1":Yx,"sheet:row:append@1":ox,"sheet:row:expandappend@1":hx,"people:match:role:waterfall@1":Wd,"person:match:role:waterfall@1":hv,"company:match:crustdata@1":bl,"company:match:crustdata@2":ms,"person:match:amplemarket@1":iv,"company:identity@2":nl,"company:identity@3":Bo,"company:identity:crustdata@1":Xo,"people:phone:profile:waterfall@1":Kf,"person:mobile:profileurl:waterfall@1":Ev,"person:devprofileurl:profileurl:waterfall@1":m_,"people:phone:workemail:waterfall@1":rp,"person:mobile:workemail:waterfall@1":Lv,"people:profile:waterfall@1":Jp,"person:profile:waterfall@1":Iy,"people:profileurl:email:waterfall@1":gm,"person:profileurl:email:waterfall@1":ib,"person:profileurl:name@1":hb,"people:email:validate:zerobounce@1":nd,"person:email:validate:millionverifier@1":w_,"people:workemail:profileurl:waterfall@1":zm,"person:workemail:profileurl:waterfall@1":Db,"company:identity@1":Gc,"people:professionalprofile:waterfall@1":mp,"people:professionalprofileurl:name@1":Lp,"people:professionalprofileurl:email:waterfall@1":Ep,"people:mobilenumber:professionalprofile:waterfall@1":tf},vT={"prompt:run@1":Yb,"company:newssummary:website@1":Hl,"company:newssummary:domain@1":Is,"company:techstack:builtwith@1":Au,"company:techstack:builtwith@2":lc,"company:websiteurl:email@1":zu,"company:domain:workemail@1":go,"company:funding:leadmagic@1":Fc,"company:funding:leadmagic@2":Ao,"people:workemail:waterfall@1":eh,"person:workemail:waterfall@1":Hb,"people:email:iswork@1":Ju,"email:iswork@1":lh,"people:name:split@1":wf,"person:name:split@1":iy,"people:validate:email:zerobounce@1":Dm,"people:email:validate:zerobounce@2":pd,"email:validate:zerobounce@1":Bh,"people:mobilenumber:workemail:waterfall@1":mf,"person:name:join@1":Jv,"company:overview@1":ru,"company:overview@2":yu,"company:overview@3":Qs,"json:extract:multi@1":Vg,"email:write@1":Xh,"fields:merge@1":Eg,"field:slugify@1":mg,"field:domainify@1":ag,"http:request@1":Fg,"email:send:resend@1":Ah,"contact:create:resend@1":xc,"company:lookalikes:companyenrich@1":fl,"company:lookalikes:companyenrich@2":os,"company:match:logodev@1":Nl,"company:match:logodev@2":Ds,"person:posts:crustdata@1":Ey,"people:profile:workemail:crustdata@1":am,"person:profile:workemail:crustdata@1":qy,"people:identity:email:waterfall@1":Pd,"person:identity:email:waterfall@1":X_,"company:match:crustdata@1":xl,"company:match:crustdata@2":hs,"person:identity:amplemarket@1":P_,"message:send:slack@1":Yg,"email:send:gmail@1":Ch,"message:write@1":r_,"template:fill@1":Cx,"website:scrape:firecrawl@1":sS,"website:scrapelist:firecrawl@1":gS,"website:extract:firecrawl@1":Mx,"website:extract:parallel@1":Vx,"website:maplinks:firecrawl@1":Xx,"sheet:row:append@1":sx,"sheet:row:expandappend@1":gx,"people:match:role:waterfall@1":Gd,"person:match:role:waterfall@1":gv,"company:identity@2":rl,"company:identity@3":Vo,"company:identity:crustdata@1":Zo,"people:phone:profile:waterfall@1":qf,"person:mobile:profileurl:waterfall@1":Dv,"person:devprofileurl:profileurl:waterfall@1":h_,"people:personalemail:profile:waterfall@1":If,"person:personalemail:profileurl:waterfall@1":gy,"people:profile:waterfall@1":Yp,"person:profile:waterfall@1":Ly,"people:profileurl:email:waterfall@1":_m,"person:profileurl:email:waterfall@1":ab,"person:profileurl:name@1":gb,"people:email:validate:zerobounce@1":rd,"person:email:validate:millionverifier@1":T_,"people:phone:workemail:waterfall@1":ip,"person:mobile:workemail:waterfall@1":Rv,"people:workemail:profileurl:waterfall@1":Bm,"person:workemail:profileurl:waterfall@1":Ob,"person:match:amplemarket@1":av,"company:identity@1":Kc,"people:professionalprofile:waterfall@1":hp,"people:professionalprofileurl:name@1":Rp,"people:professionalprofileurl:email:waterfall@1":Dp,"people:mobilenumber:professionalprofile:waterfall@1":nf},yT={"prompt:run@1":Xb,"company:newssummary:website@1":Ul,"company:newssummary:domain@1":Ls,"company:techstack:builtwith@1":ju,"company:techstack:builtwith@2":uc,"company:websiteurl:email@1":Bu,"company:domain:workemail@1":_o,"company:funding:leadmagic@1":Ic,"company:funding:leadmagic@2":jo,"people:workemail:waterfall@1":th,"person:workemail:waterfall@1":Ub,"people:email:iswork@1":Yu,"email:iswork@1":uh,"people:name:split@1":Tf,"person:name:split@1":ay,"people:validate:email:zerobounce@1":Om,"people:mobilenumber:workemail:waterfall@1":hf,"person:name:join@1":Yv,"company:overview@1":iu,"company:overview@2":bu,"company:overview@3":$s,"json:extract:multi@1":Hg,"email:send:resend@1":jh,"contact:create:resend@1":Sc,"email:send:gmail@1":wh,"message:send:slack@1":Xg,"message:write@1":i_,"email:write@1":Zh,"template:fill@1":wx,"fields:merge@1":Dg,"field:slugify@1":hg,"field:domainify@1":og,"http:request@1":Ig,"sheet:row:append@1":cx,"sheet:row:expandappend@1":_x,"company:lookalikes:companyenrich@1":pl,"company:lookalikes:companyenrich@2":ss,"people:match:role:waterfall@1":Kd,"person:match:role:waterfall@1":_v,"company:match:logodev@1":Pl,"company:match:logodev@2":Os,"person:posts:crustdata@1":Dy,"people:profile:workemail:crustdata@1":om,"person:profile:workemail:crustdata@1":Jy,"people:workemail:profileurl:waterfall@1":Vm,"person:workemail:profileurl:waterfall@1":kb,"people:identity:email:waterfall@1":Fd,"person:identity:email:waterfall@1":Z_,"company:match:crustdata@1":Sl,"company:match:crustdata@2":gs,"person:identity:amplemarket@1":F_,"email:validate:zerobounce@1":Vh,"person:email:validate:millionverifier@1":E_,"people:personalemail:profile:waterfall@1":Lf,"person:personalemail:profileurl:waterfall@1":_y,"people:email:validate:zerobounce@1":id,"people:email:validate:zerobounce@2":md,"people:phone:workemail:waterfall@1":ap,"person:mobile:workemail:waterfall@1":zv,"website:scrape:firecrawl@1":cS,"website:scrapelist:firecrawl@1":_S,"website:extract:firecrawl@1":Nx,"website:extract:parallel@1":Hx,"website:maplinks:firecrawl@1":Zx,"person:match:amplemarket@1":ov,"company:identity@2":il,"company:identity@3":Ho,"company:identity:crustdata@1":Qo,"people:phone:profile:waterfall@1":Jf,"person:mobile:profileurl:waterfall@1":Ov,"person:devprofileurl:profileurl:waterfall@1":g_,"people:profile:waterfall@1":Xp,"person:profile:waterfall@1":Ry,"people:profileurl:email:waterfall@1":vm,"person:profileurl:email:waterfall@1":ob,"person:profileurl:name@1":_b,"company:identity@1":qc,"people:professionalprofile:waterfall@1":gp,"people:professionalprofileurl:name@1":zp,"people:professionalprofileurl:email:waterfall@1":Op,"people:mobilenumber:professionalprofile:waterfall@1":rf};function bT(e){return e.defaultPayload?.config?.output_fields?Object.keys(e.defaultPayload?.config?.output_fields||{}):[]}function xT(e){return _T[e]}function ST(e){return yT[e].defaultPayload}function CT(e){return vT[e]}const wT=r.discriminatedUnion(`pipe_id`,Object.values(vT)).openapi(`PipePayload`),TT=r.preprocess(e=>{if(!e||typeof e!=`object`||!(`pipe_id`in e))return e;try{let t=ST(jn.parse(e.pipe_id));return t?{...e,config:Ba(e?.config||{},t.config)}:e}catch{return e}},wT);function ET(e){return yT[e]}function DT(e,t){let n=ET(e);if(t in n.billableOperations)return n.billableOperations[t];throw Error(`Unable to find billable operation definition for pipeId '${e}' and operation '${t}'`)}function OT(e){let t=e.split(`@`)[1];if(!t)throw Error(`No pipe version found`);return Number(t)}function kT(){let e={};for(let t of Object.values(yT)){let{basePipe:n}=t;e[n]??=[],e[n].push(t)}return Object.entries(e).forEach(([t,n])=>{e[t]=n.sort((e,t)=>{let n=OT(e.pipeId);return OT(t.pipeId)-n})}),e}const AT=e=>{let t=ET(e),n=new Set(t.deprecatedProviders);return Array.from(new Set([...t.managedProviders,...t.allowedUserConnectionProviders])).filter(e=>!n.has(e))},jT=kT();function MT(e,t){let n=new Map;for(let[t,r]of Object.entries(e))for(let e of Object.keys(r.billableOperations)){let r=n.get(e)??[];r.push(`pipe ${t}`),n.set(e,r)}for(let[e,r]of Object.entries(t)){let t=r.billableOperation,i=n.get(t)??[];i.push(`search ${e}`),n.set(t,i)}let r=[...n.entries()].filter(([,e])=>e.length>1);if(r.length>0){let e=r.map(([e,t])=>` "${e}" used by ${t.join(`, `)}`).join(`
74
+ `);throw Error(`Catalog has ${r.length} duplicate billable-operation key(s):\n${e}`)}}MT(yT,Zw);function NT(e){let t=[];for(let[n,r]of Object.entries(jT)){let i=r[0];if(!i)throw Error(`Found empty entry`);let a=i.categories;i.lifecycle?.deprecatedOn&&e!==`deprecated`||(e===null||a.includes(e))&&t.push({...i,basePipe:n,latestVersion:OT(i.pipeId)})}return t}function PT(e,t){let n=e.filter(e=>t===null?!0:e.categories.some(e=>e===t)),r={},i={},a={},o={};for(let e of n){let t=AT(e.defaultPayload.pipe_id);for(let n of t)o[n]??=[],o[n].push(e.defaultPayload.pipe_id);for(let t of bT(e))i[t]??=[],i[t].push(e.defaultPayload.pipe_id);if(e.defaultInputRequirement)for(let{field:t}of Ka(e.defaultInputRequirement))r[t.name]??=[],r[t.name]?.push(e.defaultPayload.pipe_id);for(let t of e.tags)a[t]??=[],a[t].push(e.defaultPayload.pipe_id)}return{pipeIdsByInputField:r,pipeIdsByOutputField:i,pipeIdsByTag:a,pipeIdsByProvider:o,sortedTagEntries:Object.entries(a).sort((e,t)=>e[0].localeCompare(t[0])),sortedInputFieldEntries:Object.entries(r).sort((e,t)=>e[0].localeCompare(t[0])),sortedOutputFieldEntries:Object.entries(i).sort((e,t)=>e[0].localeCompare(t[0])),sortedProviderEntries:Object.entries(o).sort((e,t)=>e[0].localeCompare(t[0])),pipeEntriesByBasePipe:jT}}const FT=r.object({id:r.string(),organization_id:r.string(),order:r.array(Pn),field_definitions:dr,errors:r.array(Yn),records:r.record(Pn,cr),status:r.enum([`completed`,`failed`,`pending`,`processing`])}).openapi(`PipesResponseSchema`),IT=r.object({environment:kn.default(`production`),widgets:r.object({enabled:r.boolean().default(!1)}).default({enabled:!1}),field_definitions:r.object({enabled:r.boolean()}).default({enabled:!1}),transform:r.object({include_fields:r.enum([`input`,`annotated`])}).default({include_fields:`input`})}).default({environment:`production`,transform:{include_fields:`input`},widgets:{enabled:!1},field_definitions:{enabled:!1}}).openapi(`PipesRequestConfig`),LT=r.object({config:IT.openapi(`PipesRequestConfig`),field_annotations:er.optional().openapi(`PipesFieldAnnotations`),pipes:r.array(wT),input:r.array(sr.openapi(`PipesInputSchema`)),scopes:r.array(r.string()).optional()});function RT(e){let t=ET(e);return Object.values(t.billableOperations).reduce((e,t)=>{let n=t.allowManagedConnection?t.credits.default:0;return e[t.provider]??=n,e[t.provider]=Math.min(e[t.provider],n),e},{})}const zT={"config.prompt":{order:1,label:`Prompt`,iconKey:`sparkles`,defaultExpand:!0},"config.general":{order:0,label:`General`,iconKey:`mix`,defaultExpand:!0},"config.advanced":{order:0,label:`Advanced`,iconKey:`sliders`,defaultExpand:!0},"config.input_fields":{order:0,label:`Input config`,description:`Point pipe inputs to new fields.`,iconKey:`input`,defaultExpand:!1},connector:{order:100,label:`Connections`,iconKey:`plug`,defaultExpand:!1},"config.extraction":{order:0,label:`Extraction`,iconKey:`code`,defaultExpand:!0},run_if:{order:99,label:`Run IF`,iconKey:`workflow`,defaultExpand:!1},"config.email":{order:3,label:`Email`,iconKey:`mail`,defaultExpand:!0},"config.json_extraction":{order:1,label:`Extract fields`,iconKey:`braces`,defaultExpand:!0},"config.providers":{order:1,label:`Providers`,iconKey:`tags`,defaultExpand:!0},"config.output_fields":{order:10,label:`Output config`,description:`Toggle or rename output fields.`,iconKey:`output`,defaultExpand:!1}},BT={general:{type:`form_section`,path:`general`,label:`Behavior`,description:`How this pipe runs and selects providers.`},pagination:{type:`form_section`,path:`pagination`,label:`Behavior`},pipe_io:{type:`form_section`,path:``,label:`I/O & conditions`},"config.filters":{type:`form_section`,path:`config.filters`,label:`I/O & conditions`}},VT={general:1,pagination:2,"config.input_fields":10,"config.pipe_io":11,"config.output_fields":12,"config.extractions":13,"config.filters":14,conditions:15,connector:16};function HT(e){let t=CT(e),n=[];function i(e){let t=v.get(e);if(t&&typeof t!=`function`)(t.type===`context_select_input`||t.type===`tagged_text_input`)&&t.optionsDef&&n.push(t);else if(typeof t==`function`){let e=t.staticMeta;e&&e.type===`tagged_text_input`&&e.optionsDef&&n.push(e)}if(typeof e==`object`&&e&&`unwrap`in e&&typeof e.unwrap==`function`&&i(e.unwrap()),e instanceof r.ZodObject)for(let t of Object.values(e.shape))i(t)}return i(t),n}function UT({pipePayload:e,validationContext:t,sectionOrder:n=VT,store:r,groupPathMatch:i=zT,formResolvers:a}){let o=CT(e.pipe_id),s=Qa(e.pipe_id,e.config||{});return $i({schema:o,groupPathMatch:i,extractFromSchema:n=>{let i=v.get(n);if(r.field_options??={},i)return i&&typeof i==`function`?i({validationContext:t,pipePayload:e,userConnections:`connections`in r.field_options?(r.field_options.connections.options||[]).map(e=>{let t=e.widgets?.provider_logo?.provider;if(!t)throw Error(`Option is missing provider type'`);return{public_id:e.value,provider:t}}):[],pipeEntry:ET(e.pipe_id),hash:s}):i},sectionOrder:n,sectionMap:BT,store:r,formResolvers:a})}const WT={"config.pagination":{order:0,label:`Pagination`,iconKey:`list`,defaultExpand:!0},"config.prompt":{order:1,label:`Prompt`,iconKey:`sparkles`,defaultExpand:!0},"config.general":{order:0,label:`General`,iconKey:`mix`,defaultExpand:!0},"config.advanced":{order:0,label:`Advanced`,iconKey:`sliders`,defaultExpand:!0},"config.continue_existing_search":{order:0,label:`Continue existing search`,iconKey:`history`,defaultExpand:!1},"config.output_fields":{order:10,label:`Outputs`,iconKey:`output`,defaultExpand:!1},"config.filters.query":{order:2,label:`Query`,iconKey:`text`,defaultExpand:!0},"config.filters.personal_information":{label:`Personal information`,order:6,iconKey:`user`,defaultExpand:!1},"config.filters.job_information":{label:`Job information`,order:6,iconKey:`job`,defaultExpand:!1},"config.filters.company_information":{order:1,label:`Company information`,iconKey:`office`,defaultExpand:!1},"config.filters.education":{label:`Education`,iconKey:`school`,defaultExpand:!1},"config.filters.geografic":{label:`Location`,iconKey:`location`,defaultExpand:!1},"config.filters.location":{label:`Location`,iconKey:`location`,defaultExpand:!1},"config.filters.general":{label:`General`,iconKey:`filter`,defaultExpand:!1,order:1},"config.filters.job_openings":{label:`Job openings`,iconKey:`calendar`,defaultExpand:!1},"config.filters.website":{label:`Website`,iconKey:`web`,defaultExpand:!1},"config.filters.web_presence":{label:`Web presence`,iconKey:`web`,defaultExpand:!1},"config.filters.keywords":{label:`Keywords`,iconKey:`tags`,defaultExpand:!1},"config.filters.competitors":{label:`Competitors`,iconKey:`cometition`,defaultExpand:!1},"config.filters.categories":{label:`Categories`,iconKey:`boxes`,defaultExpand:!1},"config.filters.investors":{label:`Investors`,iconKey:`handshake`,defaultExpand:!1},"config.filters.account_activities":{label:`Account Activities`,iconKey:`activity`,defaultExpand:!1},"config.filters.financials":{label:`Financials`,iconKey:`chart`,defaultExpand:!1},"config.filters.languages":{label:`Languages`,iconKey:`language`,defaultExpand:!1},"config.filters.company_size":{label:`Company size`,iconKey:`office`,defaultExpand:!1},"config.filters.linkedin":{label:`LinkedIn`,iconKey:`linkedin`,defaultExpand:!1},"config.filters.skills":{label:`Skills`,iconKey:`brain`,defaultExpand:!1},"config.filters.activities":{label:`Activities`,iconKey:`bolt`,defaultExpand:!1},"config.filters.certifications_honors":{label:`Certifications & honors`,iconKey:`award`,defaultExpand:!1},"config.filters.profile":{label:`Profile`,iconKey:`contact`,defaultExpand:!1},"config.filters.experience":{label:`Employment history`,iconKey:`history`,defaultExpand:!1},"config.filters.current_employer":{label:`Current job`,iconKey:`briefcase`,defaultExpand:!1},"config.filters.current_company":{label:`Current Company`,iconKey:`office`,defaultExpand:!1},"config.filters.industry":{label:`Industries`,iconKey:`factory`,defaultExpand:!1},"config.filters.general_search":{label:`General search`,iconKey:`search`,defaultExpand:!1},connector:{order:100,label:`Connections`,iconKey:`plug`,defaultExpand:!1}},GT={general:{type:`form_section`,path:`general`,label:`General`,description:`Search settings and pagination.`},pagination:{type:`form_section`,path:`pagination`,label:`General`},"config.filters":{type:`form_section`,path:`config.filters`,label:`Filters`,description:`Narrow the search results.`},pipe_io:{type:`form_section`,path:``,label:`Output fields`}},KT={general:1,pagination:2,"config.filters":10,"config.output_fields":20,"config.input_fields":21,"config.pipe_io":22,"config.extractions":23,conditions:90,connector:91};function qT({searchPayload:e,sectionOrder:t=KT,formContext:n,groupPathMatch:r=WT,formResolvers:i}){return $i({schema:oT(e.search_id),groupPathMatch:r,extractFromSchema:t=>{let r=y.get(t);if(n.field_options??={},r)return typeof r==`function`?r({searchPayload:e,searchEntry:dT(e.search_id),userConnections:`connections`in n.field_options?(n.field_options.connections.options||[]).map(e=>{let t=e.widgets?.provider_logo?.provider;if(!t)throw Error(`Option is missing provider type`);return{public_id:e.value,provider:t}}):[]}):r},sectionOrder:t,sectionMap:GT,store:n,formResolvers:i})}function JT(e){let t=oT(e),n=[];function i(e){let t=y.get(e);if(t&&typeof t!=`function`&&t.type===`context_select_input`&&t.optionsDef&&n.push(t),typeof e==`object`&&e&&`unwrap`in e&&typeof e.unwrap==`function`&&i(e.unwrap()),e instanceof r.ZodObject)for(let t of Object.values(e.shape))i(t)}return i(t),n}const YT=new Proxy({},{get:(e,t)=>e=>e.type===t}),XT=`school.user.location.language.brain.book.web.plug.money.office.job.search.output.input.mix.bill.linkedin.text.workflow.letter.source.activity.boxes.cometition.bolt.star.scholar.briefcase.history.sparkles.list.sliders.factory.award.tags.handshake.contact.mail.calendar.chart.code.braces.filter`.split(`.`),ZT=r.enum(XT),QT=r.object({provider_logo:r.object({provider:On}).optional(),emoji:r.object({char:r.string()}).optional(),icon:r.object({key:ZT}).optional(),logo_url:r.object({url:r.string(),alt:r.string().optional()}).optional(),pricing:r.object({credits:r.number()}).optional(),field_type:r.object({type:r.string(),format:r.string().optional()}).optional()}),$T=`providers_input.fields_select_input.json_extraction_input.pipes_run_if_input.connector_input.include_exclude_input.include_exclude_select_input.exact_range_input.range_input.date_range_input.boolean_input.nullable_boolean_input.text_input.template_input.output_field_input.textarea_input.prompt_input.select_input.context_select_input.multi_select_input.min_max_int_input.async_multi_select_input.async_include_exclude_select_input.multi_create_input.ordered_multi_create_input.tagged_ordered_multi_create_input.int_input.number_input.json_schema_input`.split(`.`);r.enum($T);const eE=r.object({value:r.string(),label:r.string(),widgets:QT.optional()}),tE=r.object({field_options:r.record(r.string(),r.object({options:r.array(eE)}))}),nE=[{id:`people_data`,label:`People`,color:`#8B7DFF`,order:0},{id:`find_people`,label:`Find People`,color:`#A78BFA`,order:1},{id:`company_data`,label:`Company`,color:`#10B981`,order:2},{id:`find_comapnies`,label:`Find Companies`,color:`#34D399`,order:3},{id:`tools`,label:`Tools`,color:`#EAB308`,order:4},{id:`integrations`,label:`Integrations`,color:`#06B6D4`,order:5},{id:`actions`,label:`Actions`,color:`#F97316`,order:6},{id:`deprecated`,label:`Deprecated`,color:`#94A3B8`,order:7}],rE=new Map(nE.map(e=>[e.id,e]));function iE(e){return rE.get(e)}function aE(){return nE}const oE={"company:funding:leadmagic@1":[{config:{environment:`production`},pipes:[{pipe_id:`company:funding:leadmagic@1`}],input:[{id:`1`,company_website_url:`https://pipe0.com`}]}],"company:funding:leadmagic@2":[{config:{environment:`production`},pipes:[{pipe_id:`company:funding:leadmagic@2`}],input:[{id:`1`,company_domain:`pipe0.com`}]}],"company:identity@1":[{config:{environment:`production`},pipes:[{pipe_id:`company:identity@1`}],input:[{id:`1`,company_name:`Pipe0`}]}],"company:identity@2":[{config:{environment:`production`},pipes:[{pipe_id:`company:identity@2`,config:{}}],input:[{id:`1`,company_name:`Pipe0`}]}],"company:identity@3":[{config:{environment:`production`},pipes:[{pipe_id:`company:identity@3`,config:{}}],input:[{id:`1`,company_name:`Pipe0`}]}],"company:overview@1":[{config:{environment:`production`},pipes:[{pipe_id:`company:overview@1`}],input:[{id:`1`,company_website_url:`Pipe0`}]}],"people:phone:workemail:waterfall@1":[{config:{environment:`production`},pipes:[{pipe_id:`people:phone:workemail:waterfall@1`}],input:[{id:`1`,work_email:`jane@pipe0.com`}]}],"person:mobile:workemail:waterfall@1":[{config:{environment:`production`},pipes:[{pipe_id:`person:mobile:workemail:waterfall@1`}],input:[{id:`1`,work_email:`jane@pipe0.com`}]}],"people:workemail:waterfall@1":[{config:{environment:`production`},pipes:[{pipe_id:`people:workemail:waterfall@1`}],input:[{id:`1`,name:`John Doe`,company_website_url:`https://pipe0.com`}]}],"person:workemail:waterfall@1":[{config:{environment:`production`},pipes:[{pipe_id:`person:workemail:waterfall@1`}],input:[{id:`1`,name:`John Doe`,company_domain:`pipe0.com`}]}],"company:techstack:builtwith@1":[{config:{environment:`production`},pipes:[{pipe_id:`company:techstack:builtwith@1`}],input:[{id:`1`,company_website_url:`https://pipe0.com`}]}],"company:techstack:builtwith@2":[{config:{environment:`production`},pipes:[{pipe_id:`company:techstack:builtwith@2`}],input:[{id:`1`,company_domain:`pipe0.com`}]}],"prompt:run@1":[{config:{environment:`production`},pipes:[{pipe_id:`prompt:run@1`,config:{model:`openai-gpt-latest`,prompt:{template:`
75
75
  Tell me if {{ name }} fits the ICP criteria for my company <YOUR_COMPANY_NAME>.
76
76
 
77
77
  My company, <YOUR_COMPANY_NAME>, can be described as follows: <ADD_COMPANY_DESCRIPTION>.
@@ -116,4 +116,4 @@ Customize the message using the name of the user: {{ name }}.
116
116
  `}}],input:[{id:`1`,job_title:`GTM Engineer`,name:`Pipe Piper`}]}],"person:profileurl:name@1":[{config:{environment:`production`},pipes:[{pipe_id:`person:profileurl:name@1`}],input:[{id:`1`,name:`John`,company_name:`Pipe0`}]}],"template:fill@1":[{config:{environment:`production`},pipes:[{pipe_id:`template:fill@1`,config:{template:`Hey team: A new user has just signed up. Here's the info:
117
117
  **Name**: {{ name }}
118
118
  **Email**: {{ email }}
119
- `}}],input:[{id:`1`,name:`John`,email:`john@pipe0.com`}]}],"email:send:resend@1":[{config:{environment:`production`},pipes:[{connector:{strategy:`first`,connections:[{connection:`resend_123`,type:`vault`}]},pipe_id:`email:send:resend@1`,config:{from:`<FROM_EMAIL_ADDRESS>`,to:`{{ email }}`,reply_to:`<REPLY_TO_EMAIL_ADDRESS>`,subject:`{{ email_subject }}`,body:`{{ email_body }}`}}],input:[{id:`1`,email:`<EMAIL_ADDRESS>`,email_body:`<EMAIL_TEXT>`,email_subject:`<EMAIL_SUBJECT_LINE>`}]}],"email:send:gmail@1":[{config:{environment:`production`},pipes:[{connector:{strategy:`first`,connections:[{connection:`gmail_123`,type:`vault`}]},pipe_id:`email:send:gmail@1`,config:{to:`{{ email }}`,reply_to:`<REPLY_TO_EMAIL_ADDRESS>`,subject:`{{ email_subject }}`,body:`{{ email_body }}`}}],input:[{id:`1`,email:`<EMAIL_ADDRESS>`,email_body:`<EMAIL_TEXT>`,email_subject:`<EMAIL_SUBJECT_LINE>`}]}],"message:send:slack@1":[{config:{environment:`production`},pipes:[{connector:{strategy:`first`,connections:[{connection:`slack_123`,type:`vault`}]},pipe_id:`message:send:slack@1`,config:{channel_id:`<SLACK_CHANNEL_ID>`,message:`{{ message }}`}}],input:[{id:`1`,message:`<MESSAGE_TEXT>`}]}],"people:profileurl:email:waterfall@1":[{config:{environment:`production`},pipes:[{pipe_id:`people:profileurl:email:waterfall@1`}],input:[{id:`1`,email:`<MESSAGE_TEXT>`}]}],"person:profileurl:email:waterfall@1":[{config:{environment:`production`},pipes:[{pipe_id:`person:profileurl:email:waterfall@1`}],input:[{id:`1`,email:`<MESSAGE_TEXT>`}]}],"people:validate:email:zerobounce@1":[{config:{environment:`production`},pipes:[{pipe_id:`people:validate:email:zerobounce@1`}],input:[{id:`1`,work_email:`john@pipe0.com`}]}],"people:mobilenumber:workemail:waterfall@1":[{config:{environment:`production`},pipes:[{pipe_id:`people:mobilenumber:workemail:waterfall@1`}],input:[{id:`1`,work_email:`john@pipe0.com`}]}],"people:professionalprofile:waterfall@1":[{config:{environment:`production`},pipes:[{pipe_id:`people:professionalprofile:waterfall@1`}],input:[{id:`1`,professional_profile_url:`john@pipe0.com`}]}],"people:professionalprofileurl:name@1":[{config:{environment:`production`},pipes:[{pipe_id:`people:professionalprofileurl:name@1`}],input:[{id:`1`,name:`John`,company_name:`Pipe0`,location_int:`Berlin`}]}],"people:professionalprofileurl:email:waterfall@1":[{config:{environment:`production`},pipes:[{pipe_id:`people:professionalprofileurl:email:waterfall@1`}],input:[{id:`1`,email:`john@pipe0.com`}]}],"people:mobilenumber:professionalprofile:waterfall@1":[{config:{environment:`production`},pipes:[{pipe_id:`people:mobilenumber:professionalprofile:waterfall@1`}],input:[{id:`1`,professional_profile_url:`https://linkedin.com/li/john`}]}],"company:overview@2":[{config:{environment:`production`},pipes:[{pipe_id:`company:overview@2`,config:{}}],input:[{id:`1`,company_website_url:`Pipe0`}]}],"company:overview@3":[{config:{environment:`production`},pipes:[{pipe_id:`company:overview@3`,config:{}}],input:[{id:`1`,company_domain:`pipe0.com`}]}],"fields:merge@1":[{config:{environment:`production`},pipes:[{pipe_id:`fields:merge@1`,config:{sources:[{field_name:`field_1`},{field_name:`field_2`}]}}],input:[{id:`1`,company_website_url:`Pipe0`}]}],"website:scrape:firecrawl@1":[{config:{environment:`production`},pipes:[{pipe_id:`website:scrape:firecrawl@1`,config:{scrape_main_only:!0,input_fields:{website_url:{alias:``}}}}],input:[{id:`1`,company_website_url:`Pipe0`}]}],"website:extract:firecrawl@1":[{config:{environment:`production`},pipes:[{pipe_id:`website:extract:firecrawl@1`,config:{extraction_prompt:`Extract the company mission as well as the latest news.`,enable_full_domain_crawl:!0,enable_web_search:!0,json_schema:{type:`object`,required:[`company_mission`,`latest_news`],properties:{company_mission:{type:`string`},latest_news:{type:`string`}}}}}],input:[{id:`1`,company_website_url:`Pipe0`}]}],"website:extract:parallel@1":[{config:{environment:`production`},pipes:[{pipe_id:`website:extract:parallel@1`,config:{objective:`When was the company founded and what does it do?`}}],input:[{id:`1`,website_url:`https://pipe0.com`}]}],"person:email:validate:millionverifier@1":[{config:{environment:`production`},pipes:[{pipe_id:`person:email:validate:millionverifier@1`}],input:[{id:`1`,email:`john@pipe0.com`}]}],"website:scrapelist:firecrawl@1":[{config:{environment:`production`},pipes:[{pipe_id:`website:scrapelist:firecrawl@1`,config:{scrape_main_only:!0,formats:[`markdown`,`links`]}}],input:[{id:`1`,urls:[`https://pipe0.com`,`https://pipe0.com/docs`]}]}],"website:maplinks:firecrawl@1":[{config:{environment:`production`},pipes:[{pipe_id:`website:maplinks:firecrawl@1`,config:{sitemap:`include`,page_limit:20,search:``}}],input:[{id:`1`,urls:[`https://pipe0.com`,`https://pipe0.com/docs`]}]}],"contact:create:resend@1":[{config:{environment:`production`},pipes:[{pipe_id:`contact:create:resend@1`,connector:{strategy:`first`,connections:[{type:`vault`,connection:`resend_123`}]},config:{segment_id:`segment_id_12xeeb12`,add_as_subscribed:!0}}],input:[{id:`1`,email:`test@pipe0.com`,name:`John Dorr`}]}],"sheet:row:append@1":[{config:{environment:`production`},pipes:[{pipe_id:`sheet:row:append@1`,connector:{strategy:`first`,connections:[{type:`vault`,connection:`pipe0_123`}]},config:{sheet:`sheet_id`,run:!0,allow_field_creation:!0,allow_sheet_creation:!0,new_sheet_team_id:``,included_fields:[{field_name:`field_name`}]}}],input:[{id:`1`,email:`test@pipe0.com`,name:`John Dorr`}]}],"sheet:row:expandappend@1":[{config:{environment:`production`},pipes:[{pipe_id:`sheet:row:expandappend@1`,connector:{strategy:`first`,connections:[{type:`vault`,connection:`pipe0_123`}]},config:{sheet:`sheet_id`,run:!0,allow_field_creation:!0}}],input:[{id:`1`,email:`test@pipe0.com`,name:`John Dorr`}]}],"people:match:role:waterfall@1":[{config:{environment:`production`},pipes:[{pipe_id:`people:match:role:waterfall@1`,config:{providers:[{provider:`leadmagic`}],roles:[`CEO`]}}],input:[{id:`1`,company_website_url:`https://acme.com`}]}],"person:match:role:waterfall@1":[{config:{environment:`production`},pipes:[{pipe_id:`person:match:role:waterfall@1`,config:{providers:[{provider:`leadmagic`}],roles:[`CEO`]}}],input:[{id:`1`,company_domain:`acme.com`}]}],"company:match:logodev@1":[{config:{environment:`production`},pipes:[{pipe_id:`company:match:logodev@1`}],input:[{id:`1`,company_website_url:`https://acme.com`}]}],"company:match:logodev@2":[{config:{environment:`production`},pipes:[{pipe_id:`company:match:logodev@2`}],input:[{id:`1`,company_domain:`acme.com`}]}],"company:lookalikes:companyenrich@1":[{config:{environment:`production`},pipes:[{pipe_id:`company:lookalikes:companyenrich@1`}],input:[{id:`1`,company_website_url:`https://acme.com`}]}],"company:lookalikes:companyenrich@2":[{config:{environment:`production`},pipes:[{pipe_id:`company:lookalikes:companyenrich@2`}],input:[{id:`1`,company_domain:`acme.com`}]}],"person:posts:crustdata@1":[{config:{environment:`production`},pipes:[{pipe_id:`person:posts:crustdata@1`}],input:[{id:`1`,profile_url:`https://linkedin.com/li/john-doe-3445`}]}],"people:identity:email:waterfall@1":[{config:{environment:`production`},pipes:[{pipe_id:`people:identity:email:waterfall@1`}],input:[{id:`1`,work_email:`john@pipe0.com`}]}],"person:identity:email:waterfall@1":[{config:{environment:`production`},pipes:[{pipe_id:`person:identity:email:waterfall@1`}],input:[{id:`1`,work_email:`john@pipe0.com`}]}],"people:profile:workemail:crustdata@1":[{config:{environment:`production`},pipes:[{pipe_id:`people:profile:workemail:crustdata@1`}],input:[{id:`1`,work_email:`john@pipe0.com`}]}],"person:profile:workemail:crustdata@1":[{config:{environment:`production`},pipes:[{pipe_id:`person:profile:workemail:crustdata@1`}],input:[{id:`1`,work_email:`john@pipe0.com`}]}],"people:workemail:profileurl:waterfall@1":[{config:{environment:`production`},pipes:[{pipe_id:`people:workemail:profileurl:waterfall@1`}],input:[{id:`1`,profile_url:`https://linkedin.com/li/john-123abc`}]}],"person:workemail:profileurl:waterfall@1":[{config:{environment:`production`},pipes:[{pipe_id:`person:workemail:profileurl:waterfall@1`}],input:[{id:`1`,profile_url:`https://linkedin.com/li/john-123abc`}]}],"company:match:crustdata@1":[{config:{environment:`production`},pipes:[{pipe_id:`company:match:crustdata@1`}],input:[{id:`1`,company_website_url:`https://microsoft.com`}]}],"company:match:crustdata@2":[{config:{environment:`production`},pipes:[{pipe_id:`company:match:crustdata@2`}],input:[{id:`1`,company_domain:`microsoft.com`}]}],"company:identity:crustdata@1":[{config:{environment:`production`},pipes:[{pipe_id:`company:identity:crustdata@1`}],input:[{id:`1`,company_domain:`samsung.com`},{id:`2`,company_name:`Samsung`}]}],"person:identity:amplemarket@1":[{pipes:[{pipe_id:`person:identity:amplemarket@1`,connector:{strategy:`first`,connections:[{type:`vault`,connection:`amplemarket_123`}]}}],input:[{id:`1`,email:`hallp@pipe0.com`}]}],"person:match:amplemarket@1":[{pipes:[{pipe_id:`person:match:amplemarket@1`,connector:{strategy:`first`,connections:[{type:`vault`,connection:`amplemarket_123`}]}}],input:[{id:`1`,profile_url:`https://linkedin.com/li/johndoe`}]}],"field:domainify@1":[{pipes:[{pipe_id:`field:domainify@1`}],input:[{id:`1`,url_input:`https://google.com`}]}],"field:slugify@1":[{pipes:[{pipe_id:`field:slugify@1`}],input:[{id:`1`,string_input:`input value`}]}],"http:request@1":[{pipes:[{pipe_id:`http:request@1`,config:{method:`GET`,url:`https://api.example.com/v1/companies/{{ company_name }}`,query_params:[{key:`limit`,value:`10`}],body:``,headers:[{key:`Authorization`,value:`Bearer SECRET`}],expected_response_schema:{},output_fields:{http_response_status:{alias:``,enabled:!0},http_response_body:{alias:``,enabled:!0},http_response_headers:{alias:``,enabled:!1}}}}],input:[{id:`1`,company_name:`Acme`}]}]};function $T(e){let t=[];for(let n of e){if(n instanceof H){t.push(n);continue}let e=_T.parse(n);if(!vT(n.pipe_id))throw Error(`Unknown pipe: ${n.pipe_id}`);let r=new(pT(n.pipe_id))(e);t.push(r)}return t}function eE(e,t){let n=$T(e),r=new Set;return n.forEach(e=>Object.entries(e.inputFields).forEach(([n,i])=>{i.resolvedName===t&&r.add(e.pipeId)})),Array.from(r)}function tE(e,t){let n=e.dependencyGraph,r=new Set;return n.forEach((e,n)=>e.forEach(e=>{e.index===t&&r.add(n)})),Array.from(r).map(t=>{let n=e.orderedPipeInstances[t];if(!n)throw Error(`Internal: Pipe with index ${t} not found.`);return n.pipeId})}const nE=.1,rE=[`level1`,`level2`,`level3`];function iE(e,t){let n=rE[t-1];if(n)return e[n]}function aE(e,t){for(let n=t;n>=1;n--){let t=iE(e,n);if(t)return{level:n,tier:t}}}function oE(e){let t=[];for(let n=1;n<=3;n++){let r=iE(e,n);r&&t.push({level:n,credits:r.credits,weight:r.weight})}return t}function sE(e){if(e.default<.1)return!1;let t=oE(e);if(t.length===0)return!1;for(let e=0;e<t.length;e++)if(t[e].level!==e+1)return!1;let n=e.default,r=0;for(let e of t){if(!(e.credits<n)||!Number.isInteger(e.weight)||e.weight<=r)return!1;n=e.credits,r=e.weight}return!0}function cE(){let e=new Map;for(let t of Object.values(dT))for(let[n,r]of Object.entries(t.billableOperations)){let i=r;if(!i?.allowManagedConnection||!sE(i.credits))continue;let a=n,o={kind:`pipe`,id:t.pipeId,label:t.label,categories:[...t.categories]},s=e.get(a);if(s){s.standardCredits=Math.min(s.standardCredits,i.credits.default),s.usedBy.push(o);continue}e.set(a,{billableOperation:a,provider:i.provider,kind:`pipe`,standardCredits:i.credits.default,tiers:oE(i.credits),usedBy:[o]})}for(let t of Object.values(Uw)){let{cost:n}=t;if(!sE(n.credits))continue;let r=t.billableOperation,i={kind:`search`,id:t.searchId,label:t.label,categories:[...t.categories]},a=e.get(r);if(a){a.standardCredits=Math.min(a.standardCredits,n.credits.default),a.usedBy.push(i);continue}e.set(r,{billableOperation:r,provider:t.provider,kind:`search`,standardCredits:n.credits.default,tiers:oE(n.credits),usedBy:[i]})}return[...e.values()].sort((e,t)=>e.billableOperation.localeCompare(t.billableOperation))}function lE(e){return e===`localhost`?!0:/^[a-zA-Z0-9]([a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(\.[a-zA-Z0-9]([a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/.test(e)&&e.includes(`.`)}function uE(e){return/^(\d{1,3})\.(\d{1,3})\.(\d{1,3})\.(\d{1,3})$/.test(e)?e.split(`.`).every(e=>{let t=parseInt(e,10);return t>=0&&t<=255}):/:/.test(e)}function dE(e){if(!e||typeof e!=`string`)return``;let t=e.trim();t.match(/^[a-zA-Z]+:\/\//)||(t=`https://${t}`);try{let e=new URL(t).hostname;if(uE(e))return`https://${e}`;if(!lE(e))throw Error(`Invalid domain`);return`https://${e}`}catch{let t=e.match(/([a-zA-Z0-9]([a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,}/i);return t?`https://${t[0]}`:``}}function fE(e){if(!e||typeof e!=`string`)return``;let t=e.trim();t.match(/^[a-zA-Z]+:\/\//)||(t=`https://${t}`);try{let e=new URL(t),n=e.hostname;if(uE(n))return`${e.protocol===`http:`?`http:`:`https:`}//${e.host}${e.pathname}${e.search}${e.hash}`;if(!lE(n))throw Error(`Invalid domain`);return`${e.protocol===`http:`?`http:`:`https:`}//${e.host}${e.pathname}${e.search}${e.hash}`}catch{let t=e.match(/^(https?:\/\/)?([^/\s]+)(\/.*)?$/i);if(t){let[,e,n,r=``]=t,i=n?.split(`:`)[0]||``;if(lE(i)||uE(i))return`${e?.toLowerCase()===`http://`?`http:`:`https:`}//${n}${r}`}return``}}function pE(e){try{return dE(e)}catch{console.warn(`Invalid URL: ${e}`);return}}function mE(e,t){if(t)switch(e){case`website_url`:return pE(t);default:return}}function hE(e){let t;if(gE(e))return hE(e.value);let n=typeof e;return t=n===`string`||n===`number`||n===`boolean`?n:e===null?`unknown`:`json`,t}function gE(e,t=0){if(typeof e==`object`&&e&&`value`in e&&`status`in e&&Fn.safeParse(e.status).success){if(t>1||typeof e.value==`object`&&gE(e.value,t++))throw new Z([X.RecursiveExpandedValue()]);return!0}return!1}function _E(e){let t=gE(e),n;return n=t?e.value:e,t?{isExpanded:!0,resolvedInputValue:n,expandedValue:e}:{isExpanded:!1,resolvedInputValue:n,expandedValue:null}}function vE(e){return gE(e)?vE(e.value):e}function yE(e,t,n){if([`processing`,`completed`].includes(n.status)===!1||t==null)return{};try{let r=_n(e,n.format)?.getStaticWidgets?.(t),i=mE(n.format,t);return IS(r||{},{display_value:i?{label:i}:void 0})}catch(e){return console.warn(`Failed to generate UI props: ${e}`),{}}}function bE(e,t,n){if(t==null)return{};try{let r=_n(e,n)?.getStaticWidgets?.(t),i=mE(n,t);return IS(r||{},{display_value:i?{label:i}:void 0})}catch(e){return console.warn(`Failed to generate UI props: ${e}`),{}}}function xE(e,t){for(let[n,r]of Object.entries(t)){let i=n;i===`type`&&e.type===`unknown`&&t.type!==`unknown`&&(e.type=t.type),i!==`type`&&i!==`json_metadata`&&(e[i]===void 0||e[i]===null||e[i]===``)&&t[i]&&(e[i]=r),i===`json_metadata`&&e.type===`json`&&!e.json_metadata&&t.json_metadata&&(e.json_metadata=t.json_metadata)}return e}var SE=class e{annotations;constructor(e){this.annotations=e||{}}getAnnotation(e){return this.annotations[e]}static fromInput(t,{probeCount:n=1e5,inferCatalogFields:i=!0}={probeCount:1e5,inferCatalogFields:!0}){let a={},o=0;for(let e of t){if(o++,o>n)break;for(let[t,n]of Object.entries(e)){if(t===``||t==null)continue;let{resolvedInputValue:e,expandedValue:o,isExpanded:s}=_E(n),c;c=s&&o.type?o.type:hE(e);let l;vn(t)&&(l=g(t));let u=l&&(l.type===c||c===`unknown`);(!a[t]||a[t].type===`unknown`&&c!==`unknown`)&&(a[t]={type:c===`unknown`&&u&&i&&l?.type?l.type:c,format:u&&i&&l?.format||null,label:l&&i?l.label:null,json_metadata:u&&i&&l?.jsonMeta?{schema:l.jsonMeta.zodSchema?r.toJSONSchema(l.jsonMeta.zodSchema):null,example_value:l.jsonMeta.exampleValue||null}:null})}}return a.id||={format:null,type:`string`,json_metadata:null,label:null},new e(a)}merge(t,n=!1){let r=structuredClone(this.annotations),i=t instanceof e?t.annotations:t;for(let[e,t]of Object.entries(i))if(r[e]===void 0||n)r[e]=t;else{let n=r[e];r[e]=xE(n,t)}return new e(r)}deleteKey(t){let n=structuredClone(this.annotations);return delete n[t],new e(n)}};function CE(e){let t={};for(let n=0;n<e.length;n++){let r=e[n];Object.values(r.getOutputFields()).forEach(e=>{if(t[e.resolvedName])throw new Z([X.AmbiguousDependency({fieldName:e.resolvedName})]);t[e.resolvedName]=n})}return t}function wE(e){let t=CE(e),n=[];for(let[r,i]of e.entries()){let e=[];for(let{field:n,required:a}of Ka(i.getInputRequirement())){let o=t[n.resolvedName];if(r===o)throw new Z([{code:`SelfReference`,message:`Pipe '${i.pipeId} has an input requirement that points to a field that is produced by itself.'`}]);if(o==null)continue;let s=e.find(e=>e.index===o);s?(s.reason??=[],s.reason=Array.from(new Set([...s.reason,`input`])),s.required=a||s.required):e.push({index:o,required:a,reason:[`input`]})}if(i.payload.run_if){let n=i.payload.run_if.when.conditions.map(e=>e.field_name);for(let r of n){let n=t[r];if(n==null)continue;let i=e.find(e=>e.index===n);i?(i.reason??=[],i.reason=Array.from(new Set([...i.reason,`input`])),i.required=!0):e.push({index:n,required:!0,reason:[`input`]})}}n.push(e)}return n}function TE({config:e,pipes:t,input:n,field_annotations:r}){try{let i=kE({config:e,pipes:t,input:n,fieldAnnotations:r});return EE(i),i}catch(e){throw e instanceof Z?e:new Z([X.ValidationFailed({error:e})])}}function EE(e){for(let t of e.orderedPipeInstances)for(let{field:n}of Ka(t.getInputRequirement()))dh({pipes:e.orderedPipeInstances,derivedInputFields:e.derivedInputFields},n.type),fh({pipes:e.orderedPipeInstances,derivedInputFields:e.derivedInputFields},n.format)}function DE(e,t){if(!e&&!t)throw new Z([X.MustDefineAnnotations()]);return new SE(t||{}).merge(SE.fromInput(e||[]))}function OE(e,t){let n={...t};return e.pipes.forEach((t,r)=>{for(let[i,a]of Object.entries(t.getOutputFields())){let i=n[a.resolvedName];if(i&&i.added_by.ref!==`input`)throw new Z([X.DuplicatePipeOutput({pipeId:t.pipeId,outputField:a})]);n[a.resolvedName]={type:dh(e,a.type),added_by:{ref:t.pipeId,config_hash:t.getConfigHashKey(),pipe_index:r},label:i?.label||a.label,format:fh(e,a.format),is_primary_output:a.isPrimaryOutput}}}),n}function kE(e){let t=$T(e.pipes),n=DE(e.input,e.fieldAnnotations),r={},i=new Set;t.forEach((e,t)=>{Object.entries(e.getOutputFields()).forEach(([e,t])=>{r[t.resolvedName]=e,i.add(t.resolvedName)}),ME(e,t)});let a={},o={};for(let[e,t]of Object.entries(n.annotations))o[e]={type:t.type,added_by:{ref:`input`,config_hash:null,pipe_index:null},label:t.label||``,format:t.format?t.format:null,is_primary_output:!1},!i.has(e)&&(a[e]={addedBy:`input`,required:!1,type:t.type,label:t.label||e});let[s,c,l]=AE(t,n),u=OE({pipes:c,derivedInputFields:a},o);for(let e in u){let t=u[e];r[e]&&(n=n.merge({[e]:{type:t.type,format:t.format,json_metadata:null,label:n.annotations[e]?.label?n.annotations[e]?.label:null}},!0))}return{environment:e.config.environment,dependencyGraph:l,derivedInputFields:a,fieldAnnotations:n,orderedPipePayloads:s,orderedPipeInstances:c,resolvedFieldNames:r,fieldDefinitions:u}}function AE(e,t){let n=wE(e),r=jE(n,e,t),i=[],a=[];return r.forEach(t=>{let n=e[t];if(!n)throw new Z([X.FaultyEnrichmentOrder()]);i.push(n.payload),a.push(n)}),[i,a,n]}function jE(e,t,n){let r=t.length,i=[],a=new Set,o=new Set,s=[],c=e=>{let n=t[e];return n?Ka(n.getInputRequirement()).length>0:!1},l=(n,r=[])=>{if(o.has(n)){let e=n,i=r[r.length-1]||0,a={idx:i,pipe_id:t[i]?.pipeId},o={idx:e,pipeId:t[e]?.pipeId};throw new Z([X.CircularDependency({currentPipe:a,circularPipe:o})])}if(a.has(n))return;o.add(n),r.push(n);let s=e[n]||[];for(let e of s)l(e.index,r);r.pop(),o.delete(n),a.add(n),i.push(n)};function u(t){if(a.has(t))return;o.add(t);let n=e[t]||[];for(let e of n){if(!a.has(e.index)&&e.required)throw new Z([X.UnresolvableDependency({index:t,dependencyIndex:e.index})]);!o.has(e.index)&&!e.required&&u(e.index)}o.delete(t),a.add(t),i.push(t)}for(let e=0;e<r;e++)c(e)&&l(e);for(let e=0;e<r;e++)c(e)||l(e);for(let e=0;e<r;e++)u(e);let ee=new Set(Object.keys(n.annotations));for(let e of i){let n=t[e];if(!n)throw Error(`Pipe not defined`);Object.values(n.getOutputFields()).forEach(e=>{ee.add(e.resolvedName)})}for(let[n,r]of t.entries()){let a=r.getInputRequirement();Ga(a,ee)||s.push(X.RequirementUnmet({requirement:a,pipeId:r.pipeId,index:n}));let o=e[n]||[],c=i.indexOf(n);for(let e of o){let r=i.indexOf(e.index);e.required&&r>c&&s.push(e.reason.includes(`input`)?X.HardInputDependencyViolation({dependencyIndex:e.index,dependencyIndexPipeId:t[e.index]?.pipeId,index:n,indexPipeId:t[n]?.pipeId}):X.HardConditionDependencyViolation({dependencyIndex:e.index,dependencyIndexPipeId:t[e.index]?.pipeId,index:n,indexPipeId:t[n]?.pipeId}))}r.payload.run_if&&r.payload.run_if.when.conditions.map(e=>e.field_name).forEach(e=>{if(!ee.has(e))throw new Z([X.ConditionTargetFieldNotFound({fieldName:e,pipeId:r.pipeId,pipeIdx:n})])})}if(s.length>0)throw new Z(s);return i}function ME(e,t){let n=new Set(e.getConnectionsRequirements().filter(e=>e.allowManagedConnection===!1).map(e=>e.provider));if(n.size>0){let r=e.payload.connector;if(!r||(r.connections.map(e=>{if(e.type===`vault`)return si(e.connection).provider;e.type}).forEach(e=>{e&&n.delete(e)}),n.size>0))throw new Z([X.MissingCustomConnections({index:t,pipeId:e.pipeId,missingProviders:Array.from(n)})])}}const NE=[`yyyy-MM-dd`,`yyyy/MM/dd`,`yyyy-MM-dd HH:mm:ss`,`MM/dd/yyyy`,`MM/dd/yyyy HH:mm:ss`,`MM-dd-yyyy`,`MM-dd-yyyy HH:mm:ss`,`yyyyMMdd`],PE=[`yyyy-MM-dd`,`yyyy/MM/dd`,`MM/dd/yyyy`,`MM-dd-yyyy`,`yyyyMMdd`,`dd-MM-yyyy`,`dd/MM/yyyy`],FE=r.string().trim().transform(e=>{if(!/\./.test(e)&&!/^[a-zA-Z0-9_-]*$/.test(e))throw Error(`Invalid URL format`);let t=String(e).trim();if(/^https?:\/\//i.test(t)||(t=`https://${t}`),t=t.replace(/^http:\/\//i,`https://`),t=t.replace(/^https:\/\/[w]{4,}\./i,`https://www.`),t=t.endsWith(`/`)?t.slice(0,-1):t,!t.includes(`.`))throw Error(`Invalid URL format - no TLD`);return t}).check(e=>{r.url(e.value).safeParse(e.value).success||e.issues.push({code:`custom`,message:`Invalid URL`,input:e.value})}),IE=r.coerce.string().trim().toLowerCase().transform(e=>{let t=e.replace(/^mailto:/i,``),[n,r]=t.split(`@`);return!r||!n?t:`${n.replace(/[^a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]/g,``)}@${r.replace(/\s+/g,``)}`}).check(e=>{r.email().safeParse(e.value).success||e.issues.push({code:`custom`,input:e.value,message:`Invalid email format`})});function LE(e){return!isNaN(e.getTime())}const RE=r.coerce.string().trim().transform(e=>{let t=e.replace(/[^0-9T:.\-/ ]/g,``).trim();for(let e of NE){let n=ee(t,e,new Date(0));if(LE(n))return u(n,`yyyy-MM-dd'T'HH:mm:ss`)}throw Error(`Invalid date format: ${e}`)}),zE=r.coerce.string().trim().transform(e=>{for(let t of PE){let n=ee(e,t,new Date(0));if(LE(n))return u(n,`yyyy-MM-dd`)}throw Error(`Invalid date format: ${e}`)}),BE=r.union([r.number(),r.string().transform(e=>{let t=e.replace(/[^0-9.]/g,``),n=parseFloat(t);if(isNaN(n))throw Error(`Invalid decimal format`);return n})]).refine(e=>!isNaN(e),{message:`Value must be a valid number`}),VE=r.union([r.number().transform(e=>Math.trunc(e)),r.string().transform(e=>{let t=e.replace(/[^0-9]/g,``),n=parseInt(t,10);if(isNaN(n))throw Error(`Invalid integer format`);return n})]).check(r.int()),HE=r.coerce.string().trim().min(1,{message:`Value cannot be empty for this format`});function UE(e,t){if(t===null)return e===``||e==null?null:e;if(e==null)return null;try{switch(t){case`url`:return FE.parse(e);case`email`:return IE.parse(e);case`datetime`:return RE.parse(e);case`date`:return zE.parse(e);case`decimal`:return BE.parse(e);case`int`:return VE.parse(e);case`currency`:return r.number().parse(e);case`percent`:return r.number().parse(e);case`address_line_1`:return HE.parse(e);case`website_url`:return FE.parse(e);case`profile_url`:return FE.parse(e);case`zip_code`:return HE.parse(e);case`markdown`:case`phone`:case`text`:return HE.parse(e);case`json_object`:return r.record(r.any(),r.any()).parse(e);case`json_list`:return r.array(r.any()).parse(e);case`json_list_string`:return r.array(r.string()).parse(e);default:throw Error(`Unknown format: ${t}`)}}catch(r){throw r instanceof n?Error(`Unable to parse value ${_d(e)} into format ${t}: ${r.message}`):r}}function WE(e,t,n){let r={};for(let[i,a]of Object.entries(e.derivedInputFields)){let e=t.field_definitions[i]?.format||null,o=n[i]??null;if(gE(o))o.resolved_by?.ref===`input`?r[i]={value:o.value,type:a.type,claimed_by:{ref:`input`,config_hash:null},resolved_by:o.value==null?null:{ref:`input`,config_hash:null,input_hash:null,environment:o.resolved_by.environment||null},reason:null,status:o.value===null?`pending`:`completed`,widgets:o.widgets||{},format:o.format||e}:r[i]={value:o.value,type:a.type,claimed_by:o.claimed_by||{ref:`input`,config_hash:null},resolved_by:o.resolved_by?o.resolved_by:o.value==null?null:{ref:`input`,config_hash:null,input_hash:null,environment:null},reason:o.reason||null,status:o.status,widgets:o.widgets||{},format:o.format||e};else if(o!=null)try{r[i]={value:UE(o,e),type:a.type,claimed_by:{ref:`input`,config_hash:null},resolved_by:{ref:`input`,config_hash:null,input_hash:null,environment:null},reason:null,status:`completed`,widgets:{},format:e}}catch{r[i]={value:o,type:a.type,claimed_by:{ref:`input`,config_hash:null},resolved_by:{ref:`input`,config_hash:null,input_hash:null,environment:null},reason:{code:`InvalidValue`,summary:`Invalid`,message:`This field expects a value of format ${e}.`},status:`failed`,widgets:{},format:e}}else r[i]={type:a.type,value:o,claimed_by:{ref:`input`,config_hash:null},resolved_by:{ref:null,config_hash:null,input_hash:null,environment:null},reason:null,status:`pending`,widgets:{},format:e}}return r}function GE(e,t,n){for(let r=0;r<t.length;r++){let i=t[r];i.id||=crypto.randomUUID();let{id:a}=i;if(typeof a!=`string`&&typeof a!=`number`){n.errors.push(X.InvalidId());continue}if(n.records[a]){n.errors.push(X.IDConflict({index:r,id:a}));continue}n.order.push(a),n.records[a]={id:a,fields:WE(e,n,i)}}}function KE({context:e,input:t,config:n={}}){let r={field_definitions:e.fieldDefinitions,order:[],errors:[],records:{},queued_record_ids:new Set,adopted_record_ids:new Set};try{GE(e,t,r);let{queuedRecordIdSet:i,adoptedRecordIdSet:a}=qE(e,t,r,n);if(r.queued_record_ids=i,r.adopted_record_ids=a,JE(e,r,n?.queue?.enabled),eD(e,r),r.errors.length>0)throw new Z(r.errors);return r}catch(e){throw e instanceof Z?e:new Z([X.ResponseGenerationFailed({error:e})])}}function qE(e,t,n,r){let i=[],a=[];for(let o=0;o<e.orderedPipePayloads.length;o++){let s=e.orderedPipePayloads[o],c=e.orderedPipeInstances[o];if(!c){n.errors.push(X.UnknownResolver({pipeId:s.pipe_id,index:o}));continue}let{queuedRecordIds:l,adoptedRecordIds:u}=$E(e,t,c,n,r);i=i.concat(l),a=a.concat(u)}return{queuedRecordIdSet:new Set(i),adoptedRecordIdSet:new Set(a)}}function JE(e,t,n){if(!n)return;let r=(t,n,r,i)=>{Object.values(t.getOutputFields()).forEach(a=>{let o=i.fields[a.resolvedName];if(!o)throw Error(`Internal: Output field ${hg(a)} not found`);o.status===`queued`&&(o.status=`skipped`,o.resolved_by={ref:`system`,environment:e.environment,config_hash:t.getConfigHashKey(),input_hash:t.getInputHashKey(i)},o.value=null,o.reason={code:`InputError`,message:`Field ${hg(n)} is missing but required (${r.value?`the value is`:`it has status`}: '${r.value?r.value:r.status}').`,summary:`Missing input`})})};for(let n=0;n<e.orderedPipePayloads.length;n++){let i=e.orderedPipePayloads[n],a=e.orderedPipeInstances[n];if(!a){t.errors.push(X.UnknownResolver({pipeId:i.pipe_id,index:n}));continue}Object.values(t.records).forEach(e=>{let{valid:t,failedPipeInputField:n,failedRecordField:i}=qa(a.getInputRequirement(),e);t===!1&&r(a,n,i,e)})}}function YE({inputHashKey:e,configHashKey:t,config:n,expandedValue:r}){return!!(n.queue?.triggers?.configHashMismatch&&n.queue.enabled&&r.resolved_by?.config_hash&&t&&r.resolved_by.config_hash!==t||n.queue?.triggers?.inputHashMismatch&&n.queue.enabled&&r.resolved_by?.input_hash&&e&&r.resolved_by.input_hash!==e)}function XE({status:e,config:t}){return t.queue?.enabled?!!(e===`failed`&&t.queue?.triggers?.fieldIsFailed||e===`no_result`&&t.queue?.triggers?.fieldIsNoResult):!1}function ZE({inputHashKey:e,configHashKey:t,expandedValue:n,config:r}){return YE({inputHashKey:e,configHashKey:t,expandedValue:n,config:r})||XE({status:n.status,config:r})}function QE({inputHashKey:e,configHashKey:t,expandedValue:n}){let r=!1;return n.resolved_by?.config_hash&&t&&n.resolved_by.config_hash!==t&&(n.resolved_by.config_hash=t,r=!0),n.resolved_by?.input_hash&&e&&n.resolved_by.input_hash!==e&&(n.resolved_by.input_hash=e,r=!0),{didAdopt:r}}function $E(e,t,n,r,i){let a=Object.entries(r.records),o=[],s=[];for(let c=0;c<a.length;c++){let[l,u]=a[c];for(let a of Object.values(n.getOutputFields())){let{resolvedName:l,type:ee}=a,te=dh({pipes:e.orderedPipeInstances,derivedInputFields:e.derivedInputFields},ee),ne=fh({pipes:e.orderedPipeInstances,derivedInputFields:e.derivedInputFields},a.format),{resolvedInputValue:d,isExpanded:re,expandedValue:f}=_E(t[c]?.[l]??null),ie=u.fields[l],ae=n.getConfigHashKey(),oe=n.getInputHashKey(u),se={type:te,format:ne,claimed_by:{ref:n.pipeId,config_hash:ae}};if(r.errors.length>0&&d===null){u.fields[l]={...se,value:null,status:`failed`,reason:{summary:`Validation error`,...r.errors[0]},claimed_by:{ref:d===void 0?n.pipeId:`input`,config_hash:d===void 0?ae:null},resolved_by:{ref:`system`,environment:e.environment,config_hash:null,input_hash:null},widgets:{}};continue}let ce=hE(d);if(ce!==`unknown`&&ce!==te){let t=i.queue?.triggers?.outputFieldTypeError&&i.queue.enabled;u.fields[l]={...se,value:t?null:d,status:t?`queued`:`completed`,reason:null,resolved_by:t?{environment:e.environment,ref:`system`,config_hash:ae,input_hash:oe}:{environment:e.environment,ref:`input`,config_hash:null,input_hash:null},widgets:t?{}:f?.widgets||ie?.widgets||{},format:t?ne:f?.format||ne};continue}if(d==null){let t=re&&i.queue?.enabled&&(f.status===`pending`||f.status===`skipped`),n=re&&!t;if(re&&i.adopt?.enabled===!0){let{didAdopt:e}=QE({inputHashKey:oe,configHashKey:ae,expandedValue:f});e&&s.push(u.id)}if(re&&f.status!==`pending`&&ZE({inputHashKey:oe,configHashKey:ae,config:i,expandedValue:f})&&i.queue?.enabled)o.push(u.id),u.fields[l]={...se,value:null,status:`queued`,reason:null,resolved_by:{environment:e.environment,ref:`system`,config_hash:ae,input_hash:oe},widgets:{}};else if(n)u.fields[l]={...se,value:null,status:f.status,type:f.type||te,reason:f.reason||null,resolved_by:f.resolved_by||null,widgets:f.widgets||{},format:f.format||ne};else{let t=i.queue?.enabled?`queued`:`pending`;t===`queued`&&o.push(u.id),u.fields[l]={...se,value:null,status:t,reason:null,resolved_by:t===`queued`?{environment:e.environment,ref:`system`,config_hash:ae,input_hash:oe}:null,widgets:{}}}continue}if(re){if(re&&i.adopt?.enabled===!0){let{didAdopt:e}=QE({inputHashKey:oe,configHashKey:ae,expandedValue:f});e&&s.push(u.id)}ZE({inputHashKey:oe,configHashKey:ae,expandedValue:f,config:i})&&r.errors.length===0?(o.push(u.id),u.fields[l]={...se,value:null,status:`queued`,reason:null,resolved_by:{environment:e.environment,ref:`system`,config_hash:null,input_hash:null},widgets:{}}):u.fields[l]={...se,value:d,status:`completed`,type:f.type||te,reason:f.reason||null,resolved_by:f.resolved_by||{ref:`input`,config_hash:null,input_hash:null,environment:null},widgets:f.widgets||ie?.widgets||{},format:f.format||ne}}else try{let e=UE(d,ne);u.fields[l]={...se,value:e,status:`completed`,reason:null,resolved_by:{ref:`input`,config_hash:null,input_hash:null,environment:null},widgets:ie?.widgets||{}}}catch{let t=i.queue?.enabled?`queued`:`failed`;t===`queued`&&o.push(u.id),u.fields[l]={...se,value:d,status:t,reason:{code:`InvalidFormat`,message:`Field is of invalid format. Expected: ${a.format}`,summary:`Invalid Format`},resolved_by:{ref:`system`,environment:e.environment,config_hash:ae,input_hash:oe},widgets:{}}}}}return{queuedRecordIds:o,adoptedRecordIds:s}}function eD(e,t){Object.values(t.records).forEach(n=>{Object.entries(n.fields).forEach(([n,r])=>{let i=e.resolvedFieldNames[n]||n;if(r.status===`completed`){let e=yE(i,r.value,r);r.widgets=IS(r.widgets||{},e)}t.errors.length>0&&(r.status===`pending`||r.status===`queued`)&&(r.status=`failed`)})})}function tD(e,t){let{expandAllStatuses:n=!1,expandStatuses:r=[]}=t||{},i={};for(let[t,a]of Object.entries(e))(r.includes(a.status)||n)&&t!==`id`?i[t]={...a}:i[t]=a.value;return i}function nD(e,t={}){return Object.values(e).map(e=>tD(e.fields,t))}function rD(e,t={}){return e.map(e=>tD(e.fields,t))}function iD(e,t={}){return tD(e.fields,t)}function aD(e,t){return e.map(e=>{let n={};return Object.entries(e).forEach(([e,r])=>{let{isExpanded:i,expandedValue:a,resolvedInputValue:o}=_E(r);i===!0&&a.status!=null&&t.unexpandStatuses.includes(a.status)?n[e]=o:n[e]=r}),n})}function oD(e){let t=wr[e];if(!t)throw Error(`Provider name '${e}' invalid`);return{...t,provider:e}}const sD=[`people:profiles:icypeas@1`,`companies:profiles:icypeas@1`,`people:profiles:clado@1`,`people:profiles:clado@2`,`people:employees:leadmagic@1`,`companies:profiles:exa@1`,`people:profiles:exa@1`,`companies:profiles:crustdata@1`,`people:profiles:crustdata@1`],cD=r.enum(sD);function lD(e){let t=!0,n=e=>{if(t!==!1&&typeof e==`object`&&e){Array.isArray(e)&&e.length>0&&(t=!1);for(let r of Object.values(e))typeof r!=`object`&&r!=null&&r!==``&&(t=!1),typeof r==`object`&&r&&n(r)}};return n(e),t}function uD(e,t){let n={name:e,config:t};return Za.hashObject(n)}var dD=class{validatePayload(e){try{return this.schema.parse(e)}catch(e){throw e instanceof n?Error(JSON.stringify(r.prettifyError(e))):e}}catalogOutput(e){return{name:e.name,enabled:!!this.payload.config?.output_fields?.[e.name].enabled,type:e.type,format:e.format,resolvedName:this.payload.config?.output_fields?.[e.name]?.alias||e.name,description:e.description,jsonMeta:e.jsonMeta,label:e.label,isCatalogFIeld:!0}}getOutputFields(){let e={};for(let[t,n]of Object.entries(this.getRawOutputFields()))n.enabled&&(e[t]=n);return e}getHashKey(){return uD(this.searchId,this.payload)}};function fD(e){return e.split(`@`)[0]}function pD(e){return`/docs/search-catalog/${fD(e)}/${e.split(`@`)[1]}`}const mD=`companies:profiles:crustdata@1`,hD=g(`company_name`),gD=g(`company_website_url`),_D=g(`company_description`),vD=g(`company_profile_url`),yD=g(`crustdata_company_match`),bD=r.object({search_id:r.literal(mD),connector:_.nullable().optional(),config:r.object({limit:I({sectionKey:`general`,required:!0,path:`config.limit`,max:1e3,min:1,groupPath:`config.general`,description:``,label:`Limit number of search results`}).default(100),cursor:Fa({sectionKey:`general`,path:`config.cursor`,groupPath:`config.general`,inputType:`text`,description:``,label:`Continue previous search from cursor`}),output_fields:L(r.object({[hD.name]:M({fieldName:hD.name}),[gD.name]:M({fieldName:hD.name}),[_D.name]:M({fieldName:_D.name}),[vD.name]:M({fieldName:vD.name}),[yD.name]:M({fieldName:yD.name})})),filters:r.object({hq_locations:P({path:`config.filters.hq_locations`,sectionKey:`config.filters`,label:`HQ locations`,description:``,disableSearch:!1,required:!1,groupPath:`config.filters.location`,optionsDef:h(`locations`)}),crunchbase_categories:P({path:`config.filters.crunchbase_categories`,sectionKey:`config.filters`,label:`Crunchbase categories`,description:``,disableSearch:!1,required:!1,groupPath:`config.filters.categories`,optionsDef:h(`company.crunchbase_categories.crustdata`)}),crunchbase_investors:P({path:`config.filters.crunchbase_investors`,sectionKey:`config.filters`,label:`Investors to include (Crunchbase)`,description:``,disableSearch:!1,required:!1,groupPath:`config.filters.investors`,optionsDef:h(`company.crunchbase_investors.crustdata`)}),tracxn_investors:P({path:`config.filters.tracxn_investors`,sectionKey:`config.filters`,label:`Investors to include (Tracxn)`,description:``,required:!1,groupPath:`config.filters.investors`,disableSearch:!1,optionsDef:h(`company.tracxn_investors.crustdata`)}),company_types:N({sectionKey:`config.filters`,path:`config.filters.company_types`,options:p(`crustdata.company_types`),label:`Company types`,description:``,required:!1,disableSearch:!0,groupPath:`config.filters.categories`}),linkedin_industries:P({sectionKey:`config.filters`,path:`config.filters.linkedin_industries`,optionsDef:h(`linkedin_industries.crustdata`),label:`Industries`,disableSearch:!1,required:!1,description:``,groupPath:`config.filters.industry`}),markets:P({sectionKey:`config.filters`,path:`config.filters.markets`,optionsDef:h(`company.markets.crustdata`),label:`Markets`,disableSearch:!1,required:!1,description:``,groupPath:`config.filters.industry`}),linkedin_categories:P({sectionKey:`config.filters`,path:`config.filters.linkedin_categories`,optionsDef:h(`company.linkedin_categories.crustdata`),label:`Company types`,description:``,required:!1,disableSearch:!0,groupPath:`config.filters.categories`}),headcount:N({path:`config.filters.headcount`,sectionKey:`config.filters`,label:`Headcount`,description:``,disableSearch:!0,required:!1,options:p(`crustdata.company_size`),groupPath:`config.filters.company_size`}),headcount_growth_last_6m_in_percent:N({path:`config.filters.headcount_growth_last_6m_in_percent`,sectionKey:`config.filters`,label:`Headcount growth over last 6 months in percent`,description:``,options:p(`crustdata.headcount_growth`),disableSearch:!0,required:!1,groupPath:`config.filters.company_size`}),revenue_in_usd:ja({path:`config.filters.revenue_in_usd`,sectionKey:`config.filters`,label:`Revenue (USD)`,description:``,legend:`1k - 10B`,min:1e3,max:1e10,groupPath:`config.filters.financials`}),last_funding_type:N({path:`config.filters.last_funding_type`,sectionKey:`config.filters`,label:`Last funding type`,disableSearch:!0,required:!1,options:p(`crustdata.funding_rounds`),description:``,groupPath:`config.filters.financials`}),last_funding_amount:ja({path:`config.filters.last_funding_amount`,sectionKey:`config.filters`,label:`Last funding amount`,legend:`1k - 10B`,min:1e3,max:1e10,description:``,groupPath:`config.filters.financials`}),number_of_followers:N({path:`config.filters.number_of_followers`,sectionKey:`config.filters`,label:`Number of LinkedIn followers`,disableSearch:!0,description:``,required:!1,options:p(`crustdata.company_followers`),groupPath:`config.filters.web_presence`}),follower_growth_last_6m_in_percent:N({path:`config.filters.follower_growth_last_6m_in_percent`,sectionKey:`config.filters`,label:`LinkedIn follower growth within last 6 months`,disableSearch:!0,description:``,required:!1,options:p(`crustdata.follower_growth`),groupPath:`config.filters.web_presence`}),profile_summary_keywords:k({path:`config.filters.profile_summary_keywords`,sectionKey:`config.filters`,maxItems:50,label:`LinkedIn company description contains`,description:``,groupPath:`config.filters.keywords`}),competitor_websites:k({path:`config.filters.competitor_websites`,sectionKey:`config.filters`,maxItems:50,label:`Competitor domains`,description:`Ex. 'google.com'`,groupPath:`config.filters.competitors`})}).check(e=>{lD(e.value)&&e.issues.push({code:`custom`,message:`You must set at least one filter.`,input:e.value})})})}),xD={default:{input:[{fields:[]}]}},SD=class extends dD{searchId=mD;schema=bD;payload;constructor(e){super(),this.payload=this.validatePayload(e)}getRawOutputFields(){return{[hD.name]:this.catalogOutput(hD),[gD.name]:this.catalogOutput(gD),[_D.name]:this.catalogOutput(_D),[vD.name]:this.catalogOutput(vD),[yD.name]:this.catalogOutput(yD)}}getConnectionsRequirements(){return[{provider:`crustdata`,rateLimitOperation:`crustdata_company_db_search`,rateLimitRatio:1,allowManagedConnection:!0}]}getDedupConfig(){return xD}},CD=bD,wD={searchId:mD,billableOperation:`companies-profiles-crustdata`,baseSearch:fD(`companies:profiles:crustdata@1`),label:`Company search`,categories:[`companies`],hasManagedConnection:!0,allowsUserConnection:!0,lifecycle:null,description:`Filter based company search.`,tags:[z.COMPANY_PROFILES],docPath:pD(mD),cost:{mode:`per_page`,creditsPerPage:2},provider:`crustdata`,defaultPayload:{search_id:mD,connector:null,config:{limit:100,cursor:``,output_fields:{company_name:{enabled:!0,alias:``},company_website_url:{enabled:!0,alias:``},company_description:{enabled:!0,alias:``},company_profile_url:{enabled:!0,alias:``},crustdata_company_match:{enabled:!0,alias:``}},filters:{company_types:[],headcount_growth_last_6m_in_percent:[],last_funding_amount:{from:null,to:null},last_funding_type:[],linkedin_industries:[],linkedin_categories:[],crunchbase_categories:[],markets:[],revenue_in_usd:{from:null,to:null},crunchbase_investors:[],tracxn_investors:[],follower_growth_last_6m_in_percent:[],headcount:[],hq_locations:[],number_of_followers:[],profile_summary_keywords:[],competitor_websites:[]}}}},TD=`companies:profiles:exa@1`,ED=g(`company_name`),DD=g(`company_website_url`),OD=g(`company_description`),kD=g(`company_industry`),AD=g(`headcount`),jD=g(`exa_match_evaluation`),MD=r.object({search_id:r.literal(TD),connector:_.nullable().optional(),config:r.object({limit:I({sectionKey:`general`,required:!0,path:`config.limit`,max:100,min:1,groupPath:`config.general`,description:``,label:`Limit number of search results`}).default(10),output_fields:L(r.object({[ED.name]:M({fieldName:ED.name}),[DD.name]:M({fieldName:ED.name}),[OD.name]:M({fieldName:OD.name}),[kD.name]:M({fieldName:kD.name}),[AD.name]:M({fieldName:AD.name}),[jD.name]:M({fieldName:jD.name})})),filters:r.object({query:Ia({sectionKey:`config.filters`,path:`config.filters.query`,placeholder:`e.g. Top AI research labs focusing on large language models`,groupPath:`config.filters.query`,rows:5,label:`Search description in natural language`,minLength:10,maxLength:2e4})})})}),ND={default:{input:[{fields:[]}]}},PD=class extends dD{searchId=TD;schema=MD;payload;constructor(e){super(),this.payload=this.validatePayload(e)}getRawOutputFields(){return{[ED.name]:this.catalogOutput(ED),[DD.name]:this.catalogOutput(DD),[OD.name]:this.catalogOutput(OD),[kD.name]:this.catalogOutput(kD),[AD.name]:this.catalogOutput(AD),[jD.name]:this.catalogOutput(jD)}}getConnectionsRequirements(){return[{provider:`exa`,rateLimitOperation:`exa_websets`,rateLimitRatio:1,allowManagedConnection:!0}]}getDedupConfig(){return ND}},FD=MD,ID={searchId:TD,billableOperation:`companies-profiles-exa`,baseSearch:fD(`companies:profiles:exa@1`),label:`Company finder (websets)`,categories:[`companies`],hasManagedConnection:!0,allowsUserConnection:!0,lifecycle:null,description:`Semantic AI search to find company profiles. This search can take several minutes.`,tags:[z.COMPANY_PROFILES],docPath:pD(TD),cost:{mode:`per_result`,creditsPerResult:2},provider:`exa`,defaultPayload:{search_id:TD,connector:null,config:{limit:10,output_fields:{company_name:{enabled:!0,alias:``},company_website_url:{enabled:!0,alias:``},company_industry:{enabled:!0,alias:``},company_description:{enabled:!0,alias:``},headcount:{enabled:!0,alias:``},exa_match_evaluation:{enabled:!1,alias:``}},filters:{query:``}}}},LD=`companies:profiles:icypeas@1`,RD=g(`company_industry`),zD=g(`company_name`),BD=g(`company_description`),VD=g(`company_website_url`),HD=g(`headcount`),UD=g(`company_region`),WD=g(`company_profile_url`),GD=g(`icypeas_company_match`),KD=r.object({search_id:r.literal(LD),connector:_.nullable().optional(),config:r.object({limit:I({sectionKey:`general`,max:5e4,min:1,path:`config.limit`,required:!0,groupPath:`config.general`,description:``,label:`Limit number of search results`}).default(100),output_fields:L(r.object({company_name:M({fieldName:zD.name}),company_industry:M({fieldName:RD.name}),company_description:M({fieldName:BD.name}),company_website_url:M({fieldName:VD.name}),headcount:M({fieldName:HD.name}),company_region:M({fieldName:UD.name}),company_profile_url:M({fieldName:WD.name}),icypeas_company_match:M({fieldName:GD.name})})),filters:r.object({name:A({path:`config.filters.name`,sectionKey:`config.filters`,includeLabel:`Company names to include`,excludeLabel:`Company names to exclude`,description:``,placeholder:``,groupPath:`config.filters.company_information`,maxItems:100}).optional(),type:j({path:`config.filters.type`,sectionKey:`config.filters`,label:``,description:``,placeholder:``,includeLabel:`Company types to include`,excludeLabel:`Company types to exclude`,optionsDef:{type:`static`,options:[{value:`Privately Held`,label:`Privately Held`},{value:`Public Company`,label:`Public Company`},{value:`Sole Proprietorship`,label:`Sole Proprietorship`},{value:`Self-Employed`,label:`Self-Employed`},{value:`Partnership`,label:`Partnership`},{value:`Nonprofit`,label:`Nonprofit`},{value:`Educational Institution`,label:`Educational Institution`},{value:`Government Agency`,label:`Government Agency`}]},groupPath:`config.filters.company_information`}).optional(),industry:j({path:`config.filters.industry`,sectionKey:`config.filters`,optionsDef:m(`linkedin.industries`),includeLabel:`Industries to include`,excludeLabel:`Industries to exclude`,description:``,placeholder:``,groupPath:`config.filters.industry`,maxItems:50}).optional(),location:A({path:`config.filters.location`,sectionKey:`config.filters`,includeLabel:`Locations to include`,excludeLabel:`Locations to exclude`,description:``,placeholder:`US, FR, New York`,groupPath:`config.filters.geografic`,maxItems:20}).optional(),headcount:ja({path:`config.filters.headcount`,sectionKey:`config.filters`,legend:`1-1M`,label:`Headcount`,description:``,min:1,max:1e6,unit:`employees`,groupPath:`config.filters.company_size`}).optional(),urn:A({path:`config.filters.urn`,sectionKey:`config.filters`,label:``,description:``,groupPath:`config.filters.linkedin`,excludeLabel:`URNs to exclude`,includeLabel:`URNs to include`,maxItems:200}).optional(),lid:A({path:`config.filters.lid`,sectionKey:`config.filters`,label:``,description:``,groupPath:`config.filters.linkedin`,includeLabel:`LinkedIn IDs to include`,excludeLabel:`LinkedIn IDs to exclude`,maxItems:200}).optional()}).check(e=>{lD(e.value)&&e.issues.push({code:`custom`,message:`You must set at least one filter.`,input:e.value})})})}),qD={default:{input:[{fields:[{outputField:`company_profile_url`}]}]}},JD=class extends dD{searchId=LD;schema=KD;payload;constructor(e){super(),this.payload=this.validatePayload(e)}getRawOutputFields(){return{[zD.name]:this.catalogOutput(zD),[RD.name]:this.catalogOutput(RD),[WD.name]:this.catalogOutput(WD),[VD.name]:this.catalogOutput(VD),[BD.name]:this.catalogOutput(BD),[HD.name]:this.catalogOutput(HD),[UD.name]:this.catalogOutput(UD),[GD.name]:this.catalogOutput(GD)}}getConnectionsRequirements(){return[{provider:`icypeas`,rateLimitOperation:`icypeas_company_database`,rateLimitRatio:1,allowManagedConnection:!0}]}getDedupConfig(){return qD}},YD=KD,XD={searchId:LD,billableOperation:`companies-profiles-icypeas`,baseSearch:fD(`companies:profiles:icypeas@1`),label:`Find company profiles`,categories:[`companies`],hasManagedConnection:!0,allowsUserConnection:!0,lifecycle:null,description:`Search a filter-based, general-purpose company database.`,tags:[z.COMPANY_PROFILES],docPath:pD(LD),cost:{mode:`per_result`,creditsPerResult:.4},provider:`icypeas`,defaultPayload:{search_id:LD,connector:null,config:{limit:100,output_fields:{company_name:{alias:``,enabled:!0},icypeas_company_match:{alias:``,enabled:!0},company_website_url:{alias:``,enabled:!0},company_description:{alias:``,enabled:!0},company_industry:{alias:``,enabled:!0},company_profile_url:{alias:``,enabled:!0},headcount:{alias:``,enabled:!0},company_region:{alias:``,enabled:!0}},filters:{name:{include:[],exclude:[]},type:{include:[],exclude:[]},industry:{include:[],exclude:[]},location:{include:[],exclude:[]},headcount:{},urn:{include:[],exclude:[]},lid:{include:[],exclude:[]}}}}},ZD=`people:profiles:clado@1`,QD=g(`name`),$D=g(`job_title`),eO=g(`company_name`),tO=g(`company_profile_url`),nO=g(`profile_url`),rO=g(`clado_person_match`),iO=r.object({search_id:r.literal(ZD),connector:_.nullable().optional(),config:r.object({limit:I({sectionKey:`general`,path:`config.limit`,required:!0,max:100,min:1,groupPath:`config.general`,description:``,label:`Limit number of search results`}).default(20),output_fields:L(r.object({[QD.name]:M({fieldName:QD.name}),[$D.name]:M({fieldName:$D.name}),[tO.name]:M({fieldName:tO.name}),[eO.name]:M({fieldName:eO.name}),[nO.name]:M({fieldName:nO.name}),[rO.name]:M({fieldName:rO.name})})),filters:r.object({query:Ia({path:`config.filters.query`,sectionKey:`config.filters`,placeholder:`e.g. Software engineers in San Francisco`,groupPath:`config.filters.query`,rows:5,label:`Search description in natural language`,minLength:10,maxLength:2e4})})})}),aO={default:{input:[{fields:[{outputField:`profile_url`}]}]}},oO=class extends dD{searchId=ZD;schema=iO;payload;constructor(e){super(),this.payload=this.validatePayload(e)}getRawOutputFields(){return{[QD.name]:this.catalogOutput(QD),[$D.name]:this.catalogOutput($D),[eO.name]:this.catalogOutput(eO),[nO.name]:this.catalogOutput(nO),[tO.name]:this.catalogOutput(tO),[rO.name]:this.catalogOutput(rO)}}getConnectionsRequirements(){return[{provider:`clado`,rateLimitOperation:`clado_search_people`,rateLimitRatio:1,allowManagedConnection:!0}]}getDedupConfig(){return aO}},sO=iO,cO={searchId:ZD,billableOperation:`people-profiles-clado`,baseSearch:Gt(`people:profiles:clado@1`),label:`Find people profiles with Clado`,categories:[`people`],hasManagedConnection:!0,allowsUserConnection:!0,lifecycle:{deprecatedOn:`2026-06-13`,replacedBy:`people:profiles:clado@2`},description:`Search through millions of LinkedIn profiles using natural language queries. This endpoint provides fast searching with AI-powered relevance matching.`,tags:[z.PEOPLE_PROFILES],docPath:`/resources/search-catalog/people:profiles:clado/1`,cost:{mode:`per_search`,creditsPerSearch:3},provider:`clado`,defaultPayload:{search_id:ZD,connector:null,config:{limit:20,output_fields:{company_name:{enabled:!0,alias:``},company_profile_url:{enabled:!0,alias:``},job_title:{enabled:!0,alias:``},name:{enabled:!0,alias:``},profile_url:{enabled:!0,alias:``},clado_person_match:{enabled:!0,alias:``}},filters:{query:``}}}},lO=`people:profiles:clado@2`,uO=g(`name`),dO=g(`job_title`),fO=g(`company_name`),pO=g(`company_profile_url`),mO=g(`profile_url`),hO=g(`clado_person_match_v2`),gO=r.object({search_id:r.literal(lO),connector:_.nullable().optional(),config:r.object({limit:I({sectionKey:`general`,path:`config.limit`,required:!0,max:1e4,min:1,groupPath:`config.general`,description:``,label:`Limit number of search results`}).default(100),search_id:Fa({sectionKey:`general`,path:`config.search_id`,inputType:`text`,groupPath:`config.continue_existing_search`,label:`Search id`,description:`The id of the search you want to continue`}).default(``),offset:I({sectionKey:`general`,path:`config.offset`,required:!1,groupPath:`config.continue_existing_search`,label:`Offset`,max:1e5,min:1,description:`To continue the previous search, provide both the search_id and the last offset.`}),output_fields:L(r.object({[uO.name]:M({fieldName:uO.name}),[dO.name]:M({fieldName:dO.name}),[pO.name]:M({fieldName:pO.name}),[fO.name]:M({fieldName:fO.name}),[mO.name]:M({fieldName:mO.name}),[hO.name]:M({fieldName:hO.name})})),filters:r.object({query:Ia({path:`config.filters.query`,sectionKey:`config.filters`,placeholder:`e.g. Software engineers in San Francisco`,groupPath:`config.filters.query`,rows:5,label:`Search description in natural language`,minLength:0,maxLength:2e4}).default(``)}).optional()})}).check(e=>{let t=!!e.value.config.filters?.query,n=!!e.value.config.search_id&&!!e.value.config.offset;!t&&!n&&e.issues.push({code:`custom`,input:``,message:`Must define either 'query' or both 'searchId' AND 'offset'.`,path:[`config.filters.query`]})}),_O={default:{input:[{fields:[{outputField:`profile_url`}]}]}},vO=class extends dD{searchId=lO;schema=gO;payload;constructor(e){super(),this.payload=this.validatePayload(e)}getRawOutputFields(){return{[uO.name]:this.catalogOutput(uO),[dO.name]:this.catalogOutput(dO),[fO.name]:this.catalogOutput(fO),[mO.name]:this.catalogOutput(mO),[pO.name]:this.catalogOutput(pO),[hO.name]:this.catalogOutput(hO)}}getConnectionsRequirements(){return[{provider:`clado`,rateLimitOperation:`clado_search_people`,rateLimitRatio:1,allowManagedConnection:!0}]}getDedupConfig(){return _O}},yO=gO,bO={searchId:lO,billableOperation:`people-profiles-clado`,baseSearch:Gt(`people:profiles:clado@2`),label:`Find people profiles`,categories:[`deprecated`],hasManagedConnection:!0,allowsUserConnection:!0,lifecycle:{deprecatedOn:`2026-06-13`,replacedBy:`people:profiles:clado@2`},description:`Search a growing dataset with semantic queries.`,tags:[],docPath:`/resources/search-catalog/people:profiles:clado/1`,cost:{mode:`per_page`,creditsPerPage:3},provider:`clado`,defaultPayload:{search_id:lO,connector:null,config:{limit:100,search_id:``,offset:void 0,output_fields:{company_name:{enabled:!0,alias:``},company_profile_url:{enabled:!0,alias:``},job_title:{enabled:!0,alias:``},name:{enabled:!0,alias:``},profile_url:{enabled:!0,alias:``},clado_person_match_v2:{enabled:!0,alias:``}},filters:{query:``}}}},xO=`people:employees:leadmagic@1`,SO=g(`name`),CO=g(`job_title`),wO=g(`company_website_url`),TO=g(`company_name`),EO=r.object({search_id:r.literal(xO),connector:_.nullable().optional(),config:r.object({limit:I({sectionKey:`general`,max:500,min:1,required:!0,path:`config.limit`,groupPath:`config.general`,description:``,label:`Limit number of search results`}).default(50),output_fields:L(r.object({[SO.name]:M({fieldName:SO.name}),[TO.name]:M({fieldName:TO.name}),[wO.name]:M({fieldName:wO.name}),[CO.name]:M({fieldName:CO.name})})),filters:r.object({company_website_url:Fa({path:`config.filters.company_website_url`,sectionKey:`config.filters`,groupPath:`config.filters.website`,inputType:`text`,description:`URL of the employer company.`,label:`Company Website URL`})})})}),DO={default:{input:[{fields:[{outputField:wO.name}]}]}},OO=class extends dD{searchId=xO;schema=EO;payload;constructor(e){super(),this.payload=this.validatePayload(e)}getRawOutputFields(){return{[SO.name]:this.catalogOutput(SO),[CO.name]:this.catalogOutput(CO),[wO.name]:this.catalogOutput(wO),[TO.name]:this.catalogOutput(TO)}}getConnectionsRequirements(){return[{provider:`leadmagic`,rateLimitOperation:`leadmagic_employee_finder`,rateLimitRatio:1,allowManagedConnection:!0}]}getDedupConfig(){return DO}},kO=EO,AO={searchId:xO,billableOperation:`people-employees-leadmagic`,baseSearch:fD(`people:employees:leadmagic@1`),label:`Employee finder`,categories:[`people`],hasManagedConnection:!0,allowsUserConnection:!0,lifecycle:null,description:`Search for employees of a company.`,tags:[z.PEOPLE_PROFILES],docPath:pD(xO),cost:{mode:`per_result`,creditsPerResult:.05},provider:`leadmagic`,defaultPayload:{search_id:xO,connector:null,config:{limit:50,output_fields:{name:{alias:``,enabled:!0},job_title:{alias:``,enabled:!0},company_website_url:{alias:``,enabled:!0},company_name:{alias:``,enabled:!0}},filters:{company_website_url:``}}}},jO=`people:profiles:crustdata@1`,MO=g(`name`),NO=g(`company_website_url`),PO=g(`profile_url`),FO=g(`job_title`),IO=g(`crustdata_person_match`),LO=r.object({search_id:r.literal(jO),connector:_.nullable().optional(),config:r.object({limit:I({sectionKey:`general`,required:!0,path:`config.limit`,max:1e3,min:1,groupPath:`config.general`,description:``,label:`Limit number of results`}).default(100),cursor:Fa({sectionKey:`general`,path:`config.cursor`,groupPath:`config.general`,inputType:`text`,description:``,label:`Continue previous search from cursor`}),output_fields:L(r.object({[MO.name]:M({fieldName:MO.name}),[NO.name]:M({fieldName:NO.name}),[PO.name]:M({fieldName:PO.name}),[FO.name]:M({fieldName:FO.name}),[IO.name]:M({fieldName:IO.name})})),filters:r.object({locations:P({path:`config.filters.locations`,sectionKey:`config.filters`,label:`Locations`,disableSearch:!1,required:!1,optionsDef:h(`locations`),groupPath:`config.filters.general`}),profile_headline_keywords:Oa({path:`config.filters.profile_headline_keywords`,sectionKey:`config.filters`,label:`Headline contains keywords`,maxItems:100,groupPath:`config.filters.keywords`}),profile_summary_keywords:Oa({path:`config.filters.profile_summary_keywords`,sectionKey:`config.filters`,label:`Profile about section contains keywords`,maxItems:100,groupPath:`config.filters.keywords`}),profile_languages:N({path:`config.filters.profile_languages`,sectionKey:`config.filters`,label:`Profile languages`,disableSearch:!1,required:!1,options:p(`crustdata.person_profile_languages`),groupPath:`config.filters.profile`}),languages:N({path:`config.filters.languages`,sectionKey:`config.filters`,label:`Spoken languages`,disableSearch:!1,required:!1,options:p(`crustdata.person_profile_languages`),groupPath:`config.filters.profile`}),skills:P({path:`config.filters.skills`,sectionKey:`config.filters`,label:`Skills`,placeholder:`.NET, PMO, ...`,disableSearch:!1,required:!1,description:``,groupPath:`config.filters.skills`,optionsDef:h(`skills`)}),years_of_experience:N({path:`config.filters.years_of_experience`,sectionKey:`config.filters`,label:`Years of experience`,placeholder:`1 to 2 years`,disableSearch:!0,description:``,required:!1,options:p(`crustdata.years_of_experience`),groupPath:`config.filters.experience`}),current_seniority_levels:j({path:`config.filters.current_seniority_levels`,sectionKey:`config.filters`,disableSearch:!0,label:`Seniority`,optionsDef:m(`crustdata.person_seniority`),description:``,groupPath:`config.filters.experience`}),current_employers:k({path:`config.filters.current_employers`,sectionKey:`config.filters`,label:`Current employers`,description:``,maxItems:200,groupPath:`config.filters.experience`,suggestionsDef:h(`person.current_employer_names.crustdata`)}),current_employers_website_urls:k({path:`config.filters.current_employers_website_urls`,sectionKey:`config.filters`,label:`Current employer domains`,description:``,maxItems:200,groupPath:`config.filters.experience`}),current_job_titles:k({path:`config.filters.current_job_titles`,sectionKey:`config.filters`,label:`Current job titles`,description:``,order:1,groupPath:`config.filters.experience`,suggestionsDef:h(`titles`)}),current_employers_linkedin_industries:P({path:`config.filters.current_employers_linkedin_industries`,sectionKey:`config.filters`,label:`Current employers industries`,disableSearch:!1,required:!1,groupPath:`config.filters.experience`,description:``,optionsDef:h(`linkedin_industries.crustdata`)}),years_at_current_company:N({path:`config.filters.years_at_current_company`,sectionKey:`config.filters`,label:`Years at current company`,placeholder:`1 to 2 years`,disableSearch:!1,required:!1,groupPath:`config.filters.experience`,description:``,options:p(`crustdata.years_of_experience`)}),previous_employers_website_urls:k({path:`config.filters.previous_employers_website_urls`,sectionKey:`config.filters`,label:`Previous employer domains`,description:``,maxItems:200,groupPath:`config.filters.experience`}),previous_seniority_levels:j({path:`config.filters.previous_seniority_levels`,sectionKey:`config.filters`,label:`Previous seniority`,disableSearch:!0,optionsDef:m(`crustdata.person_seniority`),description:``,groupPath:`config.filters.experience`}),previous_employers:k({path:`config.filters.previous_employers`,sectionKey:`config.filters`,label:`Previous employer name`,description:``,maxItems:200,groupPath:`config.filters.experience`,suggestionsDef:h(`person.past_employer_names.crustdata`)}),previous_job_titles:k({path:`config.filters.previous_job_titles`,sectionKey:`config.filters`,label:`Current job titles`,description:``,groupPath:`config.filters.experience`,suggestionsDef:h(`titles`)}),previous_employers_linkedin_industries:P({path:`config.filters.previous_employers_linkedin_industries`,sectionKey:`config.filters`,label:`Previous employer industry`,disableSearch:!1,required:!1,groupPath:`config.filters.experience`,description:``,optionsDef:h(`linkedin_industries.crustdata`)}),certifications:k({path:`config.filters.certifications`,sectionKey:`config.filters`,label:`Certifications`,groupPath:`config.filters.certifications_honors`,description:``}),honors:k({path:`config.filters.honors`,sectionKey:`config.filters`,label:`Honors`,groupPath:`config.filters.certifications_honors`,description:``}),recently_changed_jobs:Pa({path:`config.filters.recently_changed_jobs`,sectionKey:`config.filters`,label:`Recently changed jobs`,description:``,defaultValue:null,groupPath:`config.filters.activities`}),fields_of_study:P({path:`config.filters.fields_of_study`,sectionKey:`config.filters`,label:`Fields of study`,description:``,disableSearch:!1,required:!1,groupPath:`config.filters.education`,optionsDef:h(`person.education_field_of_study.crustdata`)}),degree_names:P({path:`config.filters.degree_names`,sectionKey:`config.filters`,label:`Degree names`,description:``,disableSearch:!1,required:!1,groupPath:`config.filters.education`,optionsDef:h(`person.education_degree.crustdata`)}),school_names:P({path:`config.filters.school_names`,sectionKey:`config.filters`,label:`School names`,description:``,disableSearch:!1,required:!1,groupPath:`config.filters.education`,optionsDef:h(`schools`)}),current_school_names:P({path:`config.filters.current_school_names`,sectionKey:`config.filters`,label:`Currently enrolled at`,description:``,disableSearch:!1,required:!1,groupPath:`config.filters.education`,optionsDef:h(`schools`)}),extracurricular_activities:k({path:`config.filters.extracurricular_activities`,sectionKey:`config.filters`,label:`Extracurricular activities`,description:``,groupPath:`config.filters.education`,suggestionsDef:h(`person.education_activities.crustdata`)})}).check(e=>{lD(e.value)&&e.issues.push({code:`custom`,message:`You must set at least one filter.`,input:e.value})})})}),RO={default:{input:[{fields:[]}]}},zO=class extends dD{searchId=jO;schema=LO;payload;constructor(e){super(),this.payload=this.validatePayload(e)}getRawOutputFields(){return{[MO.name]:this.catalogOutput(MO),[NO.name]:this.catalogOutput(NO),[PO.name]:this.catalogOutput(PO),[FO.name]:this.catalogOutput(FO),[IO.name]:this.catalogOutput(IO)}}getConnectionsRequirements(){return[{provider:`crustdata`,rateLimitOperation:`crustdata_people_db_search`,rateLimitRatio:1,allowManagedConnection:!0}]}getDedupConfig(){return RO}},BO=LO,VO={searchId:jO,billableOperation:`people-profiles-crustdata`,baseSearch:fD(`people:profiles:crustdata@1`),label:`People search`,categories:[`people`],hasManagedConnection:!0,allowsUserConnection:!0,lifecycle:null,description:`Filter-based people search.`,tags:[z.PEOPLE_PROFILES],docPath:pD(jO),cost:{mode:`per_page`,creditsPerPage:5},provider:`crustdata`,defaultPayload:{search_id:jO,connector:null,config:{limit:100,cursor:``,output_fields:{name:{enabled:!0,alias:``},job_title:{enabled:!0,alias:``},profile_url:{enabled:!0,alias:``},company_website_url:{enabled:!0,alias:``},crustdata_person_match:{enabled:!0,alias:``}},filters:{profile_headline_keywords:[],languages:[],profile_summary_keywords:[],previous_job_titles:[],current_employers:[],current_school_names:[],years_at_current_company:[],certifications:[],honors:[],current_employers_linkedin_industries:[],current_employers_website_urls:[],previous_employers_website_urls:[],current_seniority_levels:{include:[],exclude:[]},previous_seniority_levels:{include:[],exclude:[]},degree_names:[],locations:[],profile_languages:[],recently_changed_jobs:null,extracurricular_activities:[],school_names:[],fields_of_study:[],previous_employers:[],current_job_titles:[],skills:[],years_of_experience:[],previous_employers_linkedin_industries:[]}}}},HO=`people:profiles:exa@1`,UO=g(`name`),WO=g(`profile_url`),GO=g(`job_title`),KO=g(`company_name`),qO=g(`company_region`),JO=g(`exa_match_evaluation`),YO=r.object({search_id:r.literal(HO),connector:_.nullable().optional(),config:r.object({limit:I({path:`config.limit`,sectionKey:`general`,required:!0,max:100,min:1,groupPath:`config.general`,description:``,label:`Limit number of search results`}).default(10),output_fields:L(r.object({[UO.name]:M({fieldName:UO.name}),[WO.name]:M({fieldName:WO.name}),[GO.name]:M({fieldName:GO.name}),[KO.name]:M({fieldName:KO.name}),[qO.name]:M({fieldName:qO.name}),[JO.name]:M({fieldName:JO.name})})),filters:r.object({query:Ia({path:`config.filters.query`,sectionKey:`config.filters`,placeholder:`e.g. Software engineers in San Francisco`,groupPath:`config.filters.query`,rows:5,label:`Search description in natural language`,minLength:10,maxLength:2e4})})})}),XO={default:{input:[{fields:[]}]}},ZO=class extends dD{searchId=HO;schema=YO;payload;constructor(e){super(),this.payload=this.validatePayload(e)}getRawOutputFields(){return{[UO.name]:this.catalogOutput(UO),[WO.name]:this.catalogOutput(WO),[GO.name]:this.catalogOutput(GO),[KO.name]:this.catalogOutput(KO),[qO.name]:this.catalogOutput(qO),[JO.name]:this.catalogOutput(JO)}}getConnectionsRequirements(){return[{provider:`exa`,rateLimitOperation:`exa_websets`,rateLimitRatio:1,allowManagedConnection:!0}]}getDedupConfig(){return XO}},QO=YO,$O={searchId:HO,billableOperation:`people-profiles-exa`,baseSearch:fD(`people:profiles:exa@1`),label:`People finder (websets)`,categories:[`people`],hasManagedConnection:!0,allowsUserConnection:!0,lifecycle:null,description:`Semantic AI search for people profiles. This search can take several minutes.`,tags:[z.COMPANY_PROFILES],docPath:pD(HO),cost:{mode:`per_result`,creditsPerResult:2},provider:`exa`,defaultPayload:{search_id:HO,connector:null,config:{limit:10,output_fields:{name:{enabled:!0,alias:``},profile_url:{enabled:!0,alias:``},job_title:{enabled:!0,alias:``},company_name:{enabled:!0,alias:``},company_region:{enabled:!0,alias:``},exa_match_evaluation:{enabled:!1,alias:``}},filters:{query:``}}}},ek=`people:profiles:icypeas@1`,tk=g(`name`),nk=g(`job_title`),rk=g(`profile_headline`),ik=g(`company_website_url`),ak=g(`company_profile_url`),ok=g(`profile_url`),sk=g(`icypeas_person_match`),ck=r.object({search_id:r.literal(ek),connector:_.nullable().optional(),config:r.object({limit:I({path:`config.limit`,sectionKey:`general`,required:!0,max:5e4,min:1,groupPath:`config.general`,description:``,label:`Limit number of search results`}).default(100),output_fields:L(r.object({[tk.name]:M({fieldName:tk.name}),[nk.name]:M({fieldName:nk.name}),[rk.name]:M({fieldName:rk.name}),[ik.name]:M({fieldName:ik.name}),[ak.name]:M({fieldName:ak.name}),[ok.name]:M({fieldName:ok.name}),[sk.name]:M({fieldName:sk.name})})),filters:r.object({firstname:A({path:`config.filters.firstname`,sectionKey:`config.filters`,includeLabel:`First names to include`,excludeLabel:`First names to exclude`,description:``,placeholder:``,groupPath:`config.filters.personal_information`,maxItems:200}).optional(),lastname:A({path:`config.filters.lastname`,sectionKey:`config.filters`,includeLabel:`Last names to include`,excludeLabel:`Last names to exclude`,description:``,placeholder:``,groupPath:`config.filters.personal_information`,maxItems:200}).optional(),currentJobTitle:A({path:`config.filters.currentJobTitle`,sectionKey:`config.filters`,includeLabel:`Current job titles to include`,excludeLabel:`Current job titles to exclude`,description:``,placeholder:``,groupPath:`config.filters.job_information`,maxItems:200}).optional(),currentEmployersWebsiteUrls:A({groupPath:`config.filters.job_information`,path:`config.filters.currentEmployersWebsiteUrls`,sectionKey:`config.filters`,description:``,includeLabel:`Include current employer domains`,excludeLabel:`Exclude current employer domains`,maxItems:100}).optional(),pastEmployersWebsiteUrls:A({groupPath:`config.filters.job_information`,path:`config.filters.pastEmployersWebsiteUrls`,sectionKey:`config.filters`,description:``,includeLabel:`Past employers website URLs to include`,excludeLabel:`Past employers website URLs to exclude`,maxItems:100}).optional(),pastJobTitle:A({path:`config.filters.pastJobTitle`,sectionKey:`config.filters`,includeLabel:`Past job titles to include`,excludeLabel:`Past job titles to exclude`,description:``,placeholder:``,groupPath:`config.filters.job_information`,maxItems:200}).optional(),currentCompanyName:A({path:`config.filters.currentCompanyName`,sectionKey:`config.filters`,includeLabel:`Companies to include`,excludeLabel:`Companies to exclude`,description:``,placeholder:``,groupPath:`config.filters.company_information`,maxItems:200}).optional(),pastCompanyName:A({path:`config.filters.pastCompanyName`,sectionKey:`config.filters`,includeLabel:`Past employers to include`,excludeLabel:`Past employers to exclude`,description:``,placeholder:``,groupPath:`config.filters.company_information`,maxItems:200}).optional(),school:A({path:`config.filters.school`,sectionKey:`config.filters`,includeLabel:`Schools to include`,excludeLabel:`Schools to exclude`,label:``,description:``,placeholder:``,groupPath:`config.filters.education`,maxItems:200}).optional(),location:A({path:`config.filters.location`,sectionKey:`config.filters`,includeLabel:`Locations to include`,excludeLabel:`Locations to exclude`,description:`Filter by location`,placeholder:`e.g., US, FR, New York`,groupPath:`config.filters.geografic`,maxItems:200}).optional(),languages:A({path:`config.filters.languages`,sectionKey:`config.filters`,includeLabel:`Languages to include`,excludeLabel:`Languages to exclude`,description:`ex. EN, ES`,groupPath:`config.filters.languages`,maxItems:200}).optional(),skills:A({path:`config.filters.skills`,sectionKey:`config.filters`,includeLabel:`Skills to include`,excludeLabel:`Skills to exclude`,description:``,placeholder:``,groupPath:`config.filters.skills`,maxItems:200}).optional(),keyword:A({path:`config.filters.keyword`,sectionKey:`config.filters`,includeLabel:`Keywords to include`,excludeLabel:`Keywords to exclude`,description:``,placeholder:`CEO, Sales, Scrum`,groupPath:`config.filters.general_search`,maxItems:200}).optional()}).check(e=>{lD(e.value)&&e.issues.push({code:`custom`,message:`The filters object cannot be empty. You must set at least one filter.`,input:e.value})})})}),lk={default:{input:[{fields:[{outputField:`profile_url`}]}]}},uk=class extends dD{searchId=ek;schema=ck;payload;constructor(e){super(),this.payload=this.validatePayload(e)}getRawOutputFields(){return{[tk.name]:this.catalogOutput(tk),[nk.name]:this.catalogOutput(nk),[rk.name]:this.catalogOutput(rk),[ik.name]:this.catalogOutput(ik),[ak.name]:this.catalogOutput(ak),[ok.name]:this.catalogOutput(ok),[sk.name]:this.catalogOutput(sk)}}getConnectionsRequirements(){return[{provider:`icypeas`,rateLimitOperation:`icypeas_lead_database`,rateLimitRatio:1,allowManagedConnection:!0}]}getDedupConfig(){return lk}},dk=ck,fk={searchId:ek,billableOperation:`people-profiles-icypeas`,provider:`icypeas`,baseSearch:fD(ek),label:`Find people profiles`,categories:[`people`],hasManagedConnection:!0,allowsUserConnection:!0,lifecycle:null,description:`Search a filter-based, general-purpose lead database with people profiles.`,tags:[z.PEOPLE_PROFILES],docPath:pD(ek),cost:{mode:`per_result`,creditsPerResult:.4},defaultPayload:{search_id:ek,connector:null,config:{limit:100,output_fields:{company_profile_url:{enabled:!0,alias:``},company_website_url:{enabled:!0,alias:``},job_title:{enabled:!0,alias:``},name:{enabled:!0,alias:``},profile_headline:{enabled:!0,alias:``},profile_url:{enabled:!0,alias:``},icypeas_person_match:{enabled:!0,alias:``}},filters:{currentCompanyName:{include:[],exclude:[]},currentEmployersWebsiteUrls:{include:[],exclude:[]},pastEmployersWebsiteUrls:{include:[],exclude:[]},currentJobTitle:{include:[],exclude:[]},firstname:{include:[],exclude:[]},keyword:{include:[],exclude:[]},languages:{include:[],exclude:[]},lastname:{include:[],exclude:[]},location:{include:[],exclude:[]},pastCompanyName:{include:[],exclude:[]},pastJobTitle:{include:[],exclude:[]},school:{include:[],exclude:[]},skills:{include:[],exclude:[]}}}}},pk={"people:profiles:crustdata@1":zO,"companies:profiles:crustdata@1":SD,"companies:profiles:exa@1":PD,"people:profiles:exa@1":ZO,"people:profiles:icypeas@1":uk,"companies:profiles:icypeas@1":JD,"people:employees:leadmagic@1":OO,"people:profiles:clado@1":oO,"people:profiles:clado@2":vO},mk={"people:profiles:crustdata@1":BO,"companies:profiles:crustdata@1":CD,"companies:profiles:exa@1":FD,"people:profiles:exa@1":QO,"people:profiles:icypeas@1":dk,"companies:profiles:icypeas@1":YD,"people:employees:leadmagic@1":kO,"people:profiles:clado@1":sO,"people:profiles:clado@2":yO},hk={"people:profiles:crustdata@1":VO,"companies:profiles:crustdata@1":wD,"companies:profiles:exa@1":ID,"people:profiles:exa@1":$O,"people:profiles:icypeas@1":fk,"companies:profiles:icypeas@1":XD,"people:employees:leadmagic@1":AO,"people:profiles:clado@1":cO,"people:profiles:clado@2":bO};function gk(e){return pk[e]}function _k(e){return mk[e]}function vk(e){return hk[e].defaultPayload}const yk=t.discriminatedUnion(`search_id`,Object.values(mk).map(e=>e)),bk=t.preprocess(e=>{if(!e||typeof e!=`object`||!(`search_id`in e))return e;let t=vk(e.search_id);return t?{...e,config:Ba(e?.config||{},t.config)}:e},yk);function xk(e){return Object.keys(hk[e].defaultPayload.config.output_fields)}const Sk=Yn,Ck=t.object({value:In,status:Fn,type:Nn.optional(),format:Qn.nullable().optional(),resolved_by:ir.nullable().optional(),widgets:Jn.optional()}),wk=t.record(t.string(),Ck.nullable()),Tk=t.object({search:t.object({ref:cD}),status:t.enum([`pending`,`processing`,`failed`,`completed`]),errors:t.array(Sk),meta:t.object({providers:t.object({clado:t.object({pagination:t.object({search_id:t.string().optional(),offset:t.number().optional()})}).optional(),crustdata:t.object({pagination:t.object({cursor:t.string().nullable()})}).optional()}).optional()})}),Ek=t.object({id:t.string(),status:t.enum([`completed`,`failed`,`pending`,`processing`]),results:t.array(wk),search_statuses:t.array(Tk),organizationId:t.string()}).openapi(`SearchesResponseSchema`),Dk=t.object({environment:t.enum([`production`,`sandbox`]).default(`production`),widgets:t.object({enabled:t.boolean().default(!1)}).default({enabled:!1})}),Ok=Dk.extend({dedup:t.object({strategy:t.enum([`default`]).nullable()}).default({strategy:null})}),kk=t.object({config:Ok.default({dedup:{strategy:`default`},environment:`production`,widgets:{enabled:!1}}),searches:t.array(bk)}).openapi(`SearchesRequestSchema`);function Ak(e){let t=e.split(`@`)[1];if(!t)throw Error(`No search version found`);return Number(t)}function jk(){let e={};for(let t of Object.values(hk)){let{baseSearch:n}=t;e[n]??=[],e[n].push(t)}return Object.entries(e).forEach(([t,n])=>{e[t]=n.sort((e,t)=>{let n=Ak(e.searchId);return Ak(t.searchId)-n})}),e}const Mk=jk();function Nk(e){let t=[];for(let[n,r]of Object.entries(Mk)){let i=r[0];if(!i)throw Error(`Found empty entry`);i.lifecycle?.deprecatedOn&&e!==`deprecated`||(e===null||i.categories.includes(e))&&t.push({...i,baseSearch:n,latestVersion:Ak(i.searchId)})}return t}function Pk(e,t){let n=e.filter(e=>t===null?!0:e.categories.some(e=>e===t)),r={},i={},a={};for(let e of n){if(e.lifecycle&&e.lifecycle.deprecatedOn){i.Deprecated??=[],i.Deprecated.push(e.searchId);continue}a[e.provider]??=[],a[e.provider].push(e.searchId);for(let t of xk(e.searchId))r[t]??=[],r[t].push(e.searchId);for(let t of e.tags)i[t]??=[],i[t].push(e.searchId)}return{searchIdsByOutputField:r,searchIdsByTag:i,searchIdsByProvider:a,sortedTagEntries:Object.entries(i).sort((e,t)=>e[0].localeCompare(t[0])),sortedOutputFieldEntries:Object.entries(r).sort((e,t)=>e[0].localeCompare(t[0])),sortedProviderEntries:Object.entries(a).sort((e,t)=>e[0].localeCompare(t[0])),searchEntriesByBaseSearch:Mk}}function Fk(e){return hk[e]}function Ik(e){let t=Fk(e);return{[t.provider]:t.cost.mode===`per_result`?t.cost.creditsPerResult:t.cost.mode===`per_search`?t.cost.creditsPerSearch:t.cost.creditsPerPage}}function Lk(e){return e.map(e=>({public_id:`sandbox-${e}`,provider:e}))}function Rk(e){return Lk(vT(e).allowedUserConnectionProviders)}function zk(e){return Lk([rT(e).provider])}function Bk(e){return Lk([Fk(e).provider])}const Vk=[{id:`people`,label:`People`,color:`#8B7DFF`,order:0},{id:`companies`,label:`Companies`,color:`#10B981`,order:1},{id:`deprecated`,label:`Deprecated`,color:`#94A3B8`,order:2}],Hk=new Map(Vk.map(e=>[e.id,e]));function Uk(e){return Hk.get(e)}function Wk(){return Vk}const Gk={"people:profiles:amplemarket@1":[{search_id:`people:profiles:amplemarket@1`,config:{page_number:1,limit:50,filters:{current_employer_names:{include:[],exclude:[]},current_departments:[],current_employer_locations:{include:[],exclude:[]},person_names:[],current_employer_founded_year:{min:null,max:null},current_employer_estimated_revenue:[],current_employer_investors:[],current_employer_open_position_titles:[],current_job_functions:[],current_locations:{include:[`Berlin`],exclude:[]},current_employer_linkedin_industries:[],current_employer_domains:{include:[],exclude:[]},current_seniority_levels:[],school_names:{include:[],exclude:[]},current_job_titles:[]}}}],"companies:profiles:amplemarket@1":[{search_id:`companies:profiles:amplemarket@1`,config:{page_number:1,limit:50,filters:{company_industries:{include:[],exclude:[]},company_names:{include:[`Microsoft`],exclude:[]},company_profile_urls:{include:[],exclude:[]},company_types:[],company_domains:{include:[],exclude:[]},customer_types:[],headcount_growth_l6m_in_percent:{min:null,max:null},founded_year:{min:null,max:null},revenue_groups:[],investors:[],keywords:{include:[],exclude:[]},open_position_titles:[],headcount:[],hq_locations:{include:[],exclude:[]}}}}],"people:profiles:crustdata@1":[{search_id:`people:profiles:crustdata@1`,config:{cursor:``,limit:10,filters:{locations:{include:[`Berlin`,`Germany`],exclude:[]},profile_headline_keywords:{include:[`Marketing`],exclude:[]},profile_summary_keywords:{include:[],exclude:[]},profile_languages:{include:[`English`],exclude:[]},languages:{include:[],exclude:[]},skills:{include:[`Python`,`Data Analysis`],exclude:[]},years_of_experience:[`1 to 2 years`],current_seniority_levels:{include:[`Senior`],exclude:[]},current_employers:{include:[],exclude:[]},current_employers_website_urls:{include:[],exclude:[]},current_job_titles:{include:[`Software Engineer`],exclude:[]},current_employers_linkedin_industries:{include:[],exclude:[]},years_at_current_company:[`1 to 2 years`],previous_seniority_levels:{include:[],exclude:[]},previous_employers:{include:[],exclude:[]},previous_employers_website_urls:{include:[],exclude:[]},previous_employers_linkedin_industries:{include:[],exclude:[]},previous_job_titles:{include:[],exclude:[]},certifications:{include:[],exclude:[]},honors:{include:[],exclude:[]},recently_changed_jobs:!1,fields_of_study:{include:[],exclude:[]},degree_names:{include:[],exclude:[]},school_names:{include:[],exclude:[]},current_school_names:{include:[],exclude:[]},extracurricular_activities:{include:[],exclude:[]}}}}],"companies:profiles:crustdata@1":[{search_id:`companies:profiles:crustdata@1`,config:{cursor:``,limit:10,filters:{hq_locations:{include:[`San Francisco, CA`],exclude:[]},crunchbase_categories:{include:[`Artificial Intelligence`],exclude:[]},crunchbase_investors:{include:[],exclude:[]},tracxn_investors:{include:[],exclude:[]},company_types:{include:[],exclude:[]},linkedin_industries:{include:[`Technology`],exclude:[]},markets:{include:[],exclude:[]},linkedin_categories:{include:[],exclude:[]},headcount:{include:[],exclude:[]},headcount_growth_l6m_in_percent:[],revenue_in_usd:{from:1e4,to:1e6},last_funding_type:{include:[],exclude:[]},last_funding_amount:{from:null,to:null},number_of_followers:[],follower_growth_l6m_in_percent:[],profile_summary_keywords:{include:[],exclude:[]},competitor_domains:{include:[`google.com`],exclude:[]}}}}],"people:profiles:amplemarket@2":[{search_id:`people:profiles:amplemarket@2`,config:{page_number:1,limit:50,filters:{current_employer_names:{include:[],exclude:[]},current_departments:[],current_employer_locations:{include:[],exclude:[]},person_names:[],current_employer_founded_year:{min:null,max:null},current_employer_estimated_revenue:[],current_employer_investors:[],current_employer_open_position_titles:[],current_job_functions:[],current_locations:{include:[`Berlin`],exclude:[]},current_employer_linkedin_industries:[],current_employer_domains:{include:[],exclude:[]},current_seniority_levels:[],school_names:{include:[],exclude:[]},current_job_titles:[]}}}],"companies:profiles:amplemarket@2":[{search_id:`companies:profiles:amplemarket@2`,config:{page_number:1,limit:50,filters:{company_industries:{include:[],exclude:[]},company_names:{include:[`Microsoft`],exclude:[]},company_profile_urls:{include:[],exclude:[]},company_types:[],company_domains:{include:[],exclude:[]},customer_types:[],headcount_growth_l6m_in_percent:{min:null,max:null},founded_year:{min:null,max:null},revenue_groups:[],investors:[],keywords:{include:[],exclude:[]},open_position_titles:[],headcount:[],hq_locations:{include:[],exclude:[]}}}}],"people:profiles:crustdata@2":[{search_id:`people:profiles:crustdata@2`,config:{cursor:``,limit:10,filters:{locations:{include:[`Berlin`,`Germany`],exclude:[]},profile_headline_keywords:{include:[`Marketing`],exclude:[]},profile_summary_keywords:{include:[],exclude:[]},profile_languages:{include:[`English`],exclude:[]},languages:{include:[],exclude:[]},skills:{include:[`Python`,`Data Analysis`],exclude:[]},years_of_experience:[`1 to 2 years`],current_seniority_levels:{include:[`Senior`],exclude:[]},current_employer_names:{include:[],exclude:[]},current_employer_domains:{include:[],exclude:[]},current_job_titles:{include:[`Software Engineer`],exclude:[]},current_employer_industries:{include:[],exclude:[]},years_at_current_company:[`1 to 2 years`],previous_seniority_levels:{include:[],exclude:[]},previous_employer_names:{include:[],exclude:[]},previous_employer_domains:{include:[],exclude:[]},previous_employer_industries:{include:[],exclude:[]},previous_job_titles:{include:[],exclude:[]},certifications:{include:[],exclude:[]},honors:{include:[],exclude:[]},recently_changed_jobs:!1,fields_of_study:{include:[],exclude:[]},degree_names:{include:[],exclude:[]},school_names:{include:[],exclude:[]},current_school_names:{include:[],exclude:[]},extracurricular_activities:{include:[],exclude:[]}}}}],"companies:profiles:crustdata@2":[{search_id:`companies:profiles:crustdata@2`,config:{cursor:``,limit:10,filters:{hq_locations:{include:[`San Francisco, CA`],exclude:[]},crunchbase_categories:{include:[`Artificial Intelligence`],exclude:[]},crunchbase_investors:{include:[],exclude:[]},tracxn_investors:{include:[],exclude:[]},company_types:{include:[],exclude:[]},linkedin_industries:{include:[`Technology`],exclude:[]},markets:{include:[],exclude:[]},linkedin_categories:{include:[],exclude:[]},headcount:{include:[],exclude:[]},headcount_growth_l6m_in_percent:[],revenue_in_usd:{from:1e4,to:1e6},last_funding_type:{include:[],exclude:[]},last_funding_amount:{from:null,to:null},number_of_followers:[],follower_growth_l6m_in_percent:[],profile_summary_keywords:{include:[],exclude:[]},competitor_domains:{include:[`google.com`],exclude:[]}}}}],"companies:entitysearch:parallel@1":[{search_id:`companies:entitysearch:parallel@1`,config:{objective:`AI startups in Europe that raised a Series A in 2024`,limit:100}}],"people:entitysearch:parallel@1":[{search_id:`people:entitysearch:parallel@1`,config:{objective:`Heads of Engineering at Series B fintech companies in the US`,limit:100}}],"people:eventguests:luma@1":[{search_id:`people:eventguests:luma@1`,connector:{strategy:`first`,connections:[]},config:{limit:100,cursor:``,output_fields:{name:{enabled:!0,alias:``},email:{enabled:!0,alias:``},luma_id:{enabled:!0,alias:``},registered_at:{enabled:!0,alias:``},luma_event_guest_match:{enabled:!0,alias:``}},filters:{event_id:`evt-sandbox-1`,approval_status:`approved`}}}]};function Kk(e,t,n){if(t==null)return{};try{let r=_n(e,n)?.getStaticWidgets?.(t),i=mE(n,t);return IS(r||{},{display_value:i?{label:i}:void 0})}catch(e){return console.warn(`Failed to generate UI props: ${e}`),{}}}function qk(e){if(e instanceof Q)return e;let t=e.search_id,n=Ww(t);if(!n)throw Error(`Unknown pipe: ${e.search_id}`);return new n(qw.parse(e))}var Jk=class extends yg{constructor(e){super(e.map(e=>e.message).join(`, `)||`Unknown`),this.errors=e}};function Yk(e){let t=[];for(let n of e){if(n instanceof dD){t.push(n);continue}let e=n.search_id,r=gk(e);if(!r)throw Error(`Unknown pipe: ${n.search_id}`);let i=new r(bk.parse(n));t.push(i)}return t}function Xk(e){try{return Yk(e.searches)}catch(e){throw e instanceof Jk?e:new Z([X.ValidationFailed({error:e})])}}const Zk=/[\\^$.+()|[\]{}]/g,Qk=new Map;function $k(e){let t=Qk.get(e);if(t)return t;let n=``;for(let t=0;t<e.length;t++){let r=e[t];r===`*`?n+=`.*`:r===`?`?n+=`.`:n+=r.replace(Zk,`\\$&`)}let r=RegExp(`^${n}$`);return Qk.set(e,r),r}function eA(e,t){return $k(t).test(e)}function tA(e,t){if(!t||t.length===0)return!1;for(let n of t)if(eA(e,n))return!0;return!1}function nA(e,t){if(!t)return!0;let{includes:n,excludes:r}=t;return!(n&&n.length>0&&!tA(e,n)||r&&r.length>0&&tA(e,r))}function rA(e,t){return nA(e,t?.providers)}function iA(e,t){if(!t)return!0;if(!nA(e,t.pipes))return!1;if(t.providers){let n=ST(e);if(n.length===0)return!0;if(!n.some(e=>rA(e,t)))return!1}return!0}function aA(e,t,n){return t?!(!nA(e,t.searches)||n!==void 0&&!rA(n,t)):!0}function oA(e,t,n){return t?!(!nA(e,t.searchesMulti)||n!==void 0&&!rA(n,t)):!0}function sA(e,t){return t?e.filter(e=>iA(e.pipeId,t)):e.slice()}function cA(e,t){return t?e.filter(e=>aA(e.searchId,t,e.provider)):e.slice()}function lA(e,t){return t?e.filter(e=>oA(e.searchId,t,e.provider)):e.slice()}function uA(e){let t=Object.values(e.billableOperations).map(e=>e.allowManagedConnection?e.credits.default:0);return Math.min(...t)}function dA(e){return Math.min(e.cost.mode===`per_result`?e.cost.creditsPerResult:e.cost.mode===`per_search`?e.cost.creditsPerSearch:e.cost.creditsPerPage)}function fA(e){return e.cost.credits.default}function pA(e){let t=fE(e);if(!t)return``;try{return te(t)||new URL(t).hostname}catch{return``}}const mA=[`http://`,`https://`,`mailto:`],hA=new Set([`*`,`_`,`~`,"`",`[`,`]`,`(`,`)`,`\\`]);function gA(e){return e?_A(e):[]}function _A(e){let t=[],n=``,r=0,i=()=>{n&&=(t.push({type:`text`,value:n}),``)};for(;r<e.length;){let a=e[r],o=e[r+1];if(a===`\\`&&o!==void 0&&hA.has(o)){n+=o,r+=2;continue}if(a==="`"){let n=vA(e,r+1,"`");if(n>-1){i(),t.push({type:`code`,value:e.slice(r+1,n)}),r=n+1;continue}}if(a===`*`&&o===`*`){let n=vA(e,r+2,`**`);if(n>r+2){i(),t.push({type:`strong`,children:_A(e.slice(r+2,n))}),r=n+2;continue}}if(a===`~`&&o===`~`){let n=vA(e,r+2,`~~`);if(n>r+2){i(),t.push({type:`del`,children:_A(e.slice(r+2,n))}),r=n+2;continue}}if(a===`*`&&o!==`*`){let n=vA(e,r+1,`*`);if(n>r+1){i(),t.push({type:`em`,children:_A(e.slice(r+1,n))}),r=n+1;continue}}if(a===`[`){let n=vA(e,r+1,`]`);if(n>-1&&e[n+1]===`(`){let a=vA(e,n+2,`)`);if(a>-1){let o=e.slice(n+2,a);if(mA.some(e=>o.startsWith(e))){i(),t.push({type:`link`,href:o,children:_A(e.slice(r+1,n))}),r=a+1;continue}}}}n+=a,r+=1}return i(),t}function vA(e,t,n){let r=t;for(;r<e.length;){if(e[r]===`\\`&&r+1<e.length){r+=2;continue}if(yA(e,r,n))return r;r+=1}return-1}function yA(e,t,n){if(t+n.length>e.length)return!1;for(let r=0;r<n.length;r++)if(e[t+r]!==n[r])return!1;return!0}export{fi as AI_MODELS,pi as AI_MODEL_CATALOG,lr as CatalogSchemaRefSchema,pr as ConditionOperatorsSchema,or as ExpandedFieldValueSchema,Vh as FIELD_PLACEHOLDERS,$n as FieldAnnotationSchema,SE as FieldAnnotations,er as FieldAnnotationsSchema,Dn as FieldNameSchema,Xn as FieldReasonSchema,In as FieldValueSchema,qT as FormStoreSchema,nE as HIGH_VOLUME_PRICING_MIN_CREDITS,fr as JSONExtractSchema,Ln as JSONMetaSchema,yr as NoConnectorSchema,_ as OptionalConnectorSchema,An as PIPE_IDS,$w as PaginationTypeSchema,Hb as PersonWorkemailWaterfall1Entry,Vb as PersonWorkemailWaterfall1PayloadSchema,Bb as PersonWorkemailWaterfall1PipeClass,H as Pipe,yg as Pipe0Error,jn as PipeIdSchema,gT as PipePayloadSchema,Cr as PipeRunIfSchema,Z as PipelineValidationError,kn as PipesEnvironmentSchema,Yn as PipesErrorSchema,ur as PipesFieldDefinitionSchema,dr as PipesFieldDefinitionsSchema,sr as PipesInputSchema,OT as PipesRequestConfigSchema,kT as PipesRequestSchema,DT as PipesResponseSchema,_T as ProcessedPipePayloadSchema,qw as ProcessedSearchPayloadSchema,bk as ProcessedSearchesPayloadSchema,On as ProviderNameSchema,Zn as RECORD_FIELD_FORMATS,Mn as RECORD_FIELD_TYPES,mr as RUN_IF_OPERATOR_LABELS,gr as RUN_IF_STATUS_OPERATORS,hr as RUN_IF_VALUE_OPERATORS,rr as RecordClaimedBySchema,Qn as RecordFieldFormatSchema,ar as RecordFieldSchema,Fn as RecordFieldStatusSchema,Nn as RecordFieldTypeSchema,Pn as RecordIdSchema,ir as RecordResolvedBySchema,cr as RecordSchema,vg as RequestValidationError,vr as RequiredConnectorSchema,xr as RunIfStatusOperatorsSchema,Sr as RunIfStatusValueSchema,br as RunIfValueOperatorsSchema,sD as SEARCHES_IDS,_S as SEARCH_IDS,Q as Search,Yw as SearchErrorSchema,vS as SearchIdSchema,Gw as SearchPayloadSchema,Jw as SearchRequestSchema,eT as SearchResponseSchema,Xw as SearchResultFieldSchema,Zw as SearchResultSchema,Sk as SearchesErrorSchema,cD as SearchesIdSchema,yk as SearchesPayloadSchema,Dk as SearchesRequestBaseConfigSchema,kk as SearchesRequestSchema,Ek as SearchesResponseSchema,Ck as SearchesResultFieldSchema,wk as SearchesResultSchema,dD as SearchesSearch,Tk as SearchesStatusSchema,yd as TYPES_TO_FORMATS,WT as WidgetsByKindSchema,Jn as WidgetsSchema,Ua as all,Wr as analyzeLiquidTemplate,wn as and,V as any,wT as assertUniqueBillableOperations,h as autocomplete,mi as buildAiModelBillableOperations,wE as buildDependencyGraph,hh as buildInputRequirementFromTemplates,G as catalogInput,Ya as cleanObject,fE as cleanUrl,dE as cleanWebsiteUrl,gh as collectConstantReferencesFromTemplates,PT as collectPipeContextSelectFields,Ka as collectRequirementFields,BT as collectSearchContextSelectFields,J as collectSecretReferencesFromTemplates,$k as compilePattern,Ba as configDefaults,Yi as convertIntermediateFieldsIntoGroups,Xi as defaultSectionMap,gg as describeRequirement,FS as entityLogoFavicon,PS as entityLogoProfessionalProfileUrl,$i as extractFormMetadata,B as field,gn as fieldBehaviorCatalog,hn as fieldCatalog,hg as fieldNameStr,hE as fieldTypeFromValue,tD as fieldsToObject,sA as filterPipeEntries,cA as filterSearchEntries,lA as filterSearchesEntries,hi as getAiModelBillingKey,_i as getAiModelConnectionRequirements,gi as getAiModelProviders,vi as getAllAiModelProviders,U as getBasePipeName,fT as getDefaultOutputFields,ST as getDefaultPipeProviders,oT as getDefaultSearchOutputFields,xk as getDefaultSearchesOutputFields,eE as getDependentPipeNamesForInputProperty,tE as getDependentPipeNamesForPipe,pA as getDomain,_E as getExpansionState,MS as getFaviconUrlGoogle,g as getField,_n as getFieldBehavior,hd as getFieldDisplayLabel,yE as getFieldWidgets,aT as getInitialSearchTableData,Nk as getInitialSearchesTableData,TT as getInitialTableData,$a as getInputHash,bi as getJsonMetaForFieldDef,fA as getLoweestSearchCreditAmount,dA as getLoweestSearchesCreditAmount,uA as getLowestPipeCreditAmount,En as getOutputFieldInfoFromDef,yT as getPipeBillableOperationDef,ZT as getPipeCategoryEntries,XT as getPipeCategoryEntry,pT as getPipeClass,Qa as getPipeConfigHash,mT as getPipeDefaultPayload,W as getPipeDocsURI,vT as getPipeEntry,$T as getPipeInstances,FT as getPipePayloadFormConfig,hT as getPipePayloadSchema,bT as getPipeVersion,q as getProviderBillableOperation,eo as getProviderCreditsFromBillableOperations,oD as getProviderEntry,xn as getReadableFieldStatus,Lk as getSandboxConnections,Rk as getSandboxConnectionsForPipe,zk as getSandboxConnectionsForSearch,Bk as getSandboxConnectionsForSearches,Wk as getSearchCategoryEntries,Uk as getSearchCategoryEntry,Ww as getSearchClass,Kw as getSearchDefaultPayload,rT as getSearchEntry,Kk as getSearchFieldWidgets,qk as getSearchInstance,zT as getSearchPayloadFormConfig,Qw as getSearchPayloadSchema,sT as getSearchTableDataAggregates,tT as getSearchVersion,gk as getSearchesClass,vk as getSearchesDefaultPayload,Fk as getSearchesEntry,bE as getSearchesFieldWidgets,Yk as getSearchesInstances,_k as getSearchesPayloadSchema,Pk as getSearchesTableDataAggregates,Ak as getSearchesVersion,AT as getStartingCostPerPipesProvider,cT as getStartingCostPerSearchProvider,Ik as getStartingCostPerSearchesProvider,ET as getTableDataAggregates,iE as getTier,vE as getUnexpandedValue,NS as ifDefined,R as inputFields,iD as inputFromRecord,rD as inputFromRecordArr,nD as inputFromRecords,VT as inputGuards,yn as isCatalogField,Wt as isEmptyValue,vn as isFieldName,sE as isHighVolumeEligible,iA as isPipeAllowed,rA as isProviderAllowed,Ga as isRequirementMet,qa as isRequirementSatisfiedByRecord,aA as isSearchAllowed,oA as isSearchesAllowed,ci as joinConnectionString,cE as listHighVolumeEligibleOperations,oE as listTiers,no as markRecordFieldAsComplete,ao as markRecordFieldAsFailed,io as markRecordFieldAsNoResult,ro as markRecordFieldAsPending,so as markRecordFieldAsProcessing,oo as markRecordFieldAsSkipped,tA as matchesAny,eA as matchesPattern,IS as mergeWidgets,w as noConnectorInput,Wa as optional,C as optionalConnectorInput,Tn as or,L as outputFields,Ur as parseLiquidTemplate,Lr as parseOutputTagArgs,UE as parseRecordValueOrError,gA as parseRichText,dT as pipeCatalog,JT as pipeCategoryCatalog,lT as pipeClassCatalog,uT as pipePayloadSchemaCatalog,ga as pipesAsyncIncludeExcludeSelectInput,Da as pipesContextSelectInput,va as pipesDateRangeInput,la as pipesFieldsSelectInput,ua as pipesIncludeExcludeInput,ha as pipesIncludeExcludeSelectInput,T as pipesInputField,wa as pipesIntInput,Oi as pipesJsonExtractionInput,Ea as pipesJsonSchemaField,ma as pipesKeyValueListInput,Sa as pipesLLMSelectInput,da as pipesMultiCreateInput,Ca as pipesMultiSelectInput,Ta as pipesNumberInput,D as pipesOptionalBooleanInput,fa as pipesOrderedMultiCreateInput,O as pipesOutputField,v as pipesPayloadRegistry,ta as pipesPromptInput,E as pipesProviderInput,_a as pipesRangeInput,x as pipesRunIfInput,xa as pipesSelectInput,QT as pipesSnippetCatalog,pa as pipesTaggedOrderedMultiCreateInput,S as pipesTaggedTextInput,na as pipesTemplateInput,ya as pipesTextInput,ba as pipesTextareaInput,Y as placeholder,aD as processInputObjects,wr as providerCatalog,K as rateLimitRatioFallingProgression,Vr as renderLiquidTemplate,Hr as renderLiquidTemplateSync,ia as requiredConnectorInput,to as requirementToInputFields,_g as requirementUnmetMessage,Sn as requiresConnection,Cn as requiresField,Uw as searchCatalog,Vk as searchCategoryCatalog,Vw as searchClassCatalog,Hw as searchPayloadSchemaCatalog,Gk as searchSnippetCatalog,F as searchesAsyncIncludeExcludeSelectInput,P as searchesAsyncMultiSelectInput,hk as searchesCatalog,pk as searchesClassCatalog,Ra as searchesContextSelectInput,Ma as searchesDateRangeInput,Aa as searchesExactRangeInput,A as searchesIncludeExcludeInput,j as searchesIncludeExcludeSelectInput,I as searchesIntInput,ka as searchesMinMaxIntInput,k as searchesMultiCreateInput,N as searchesMultiSelectInput,za as searchesNumberField,Na as searchesOptionalBooleanInput,sa as searchesOptionalConnectorInput,Pa as searchesOptionalNullableBooleanInput,Oa as searchesOrderedMultiCreateInput,M as searchesOutputField,y as searchesPayloadRegistry,mk as searchesPayloadSchemaCatalog,ja as searchesRangeInput,oa as searchesRequiredConnectorInput,La as searchesSelectInput,Fa as searchesTextInput,Ia as searchesTextareaField,vd as sortObjectKeys,xT as sortPipeCatalogByBasePipe,nT as sortSearchCatalogByBaseSearch,jk as sortSearchesCatalogByBaseSearch,si as splitConnectionString,m as staticAutocomplete,p as staticOptions,_d as stringify,gd as testPrint,aE as tierAtOrBelow,KE as transformIntoResponse,TE as validatePipesOrError,Xk as validateSearches,X as validationErrorMessages};
119
+ `}}],input:[{id:`1`,name:`John`,email:`john@pipe0.com`}]}],"email:send:resend@1":[{config:{environment:`production`},pipes:[{connector:{strategy:`first`,connections:[{connection:`resend_123`,type:`vault`}]},pipe_id:`email:send:resend@1`,config:{from:`<FROM_EMAIL_ADDRESS>`,to:`{{ email }}`,reply_to:`<REPLY_TO_EMAIL_ADDRESS>`,subject:`{{ email_subject }}`,body:`{{ email_body }}`}}],input:[{id:`1`,email:`<EMAIL_ADDRESS>`,email_body:`<EMAIL_TEXT>`,email_subject:`<EMAIL_SUBJECT_LINE>`}]}],"email:send:gmail@1":[{config:{environment:`production`},pipes:[{connector:{strategy:`first`,connections:[{connection:`gmail_123`,type:`vault`}]},pipe_id:`email:send:gmail@1`,config:{to:`{{ email }}`,reply_to:`<REPLY_TO_EMAIL_ADDRESS>`,subject:`{{ email_subject }}`,body:`{{ email_body }}`}}],input:[{id:`1`,email:`<EMAIL_ADDRESS>`,email_body:`<EMAIL_TEXT>`,email_subject:`<EMAIL_SUBJECT_LINE>`}]}],"message:send:slack@1":[{config:{environment:`production`},pipes:[{connector:{strategy:`first`,connections:[{connection:`slack_123`,type:`vault`}]},pipe_id:`message:send:slack@1`,config:{channel_id:`<SLACK_CHANNEL_ID>`,message:`{{ message }}`}}],input:[{id:`1`,message:`<MESSAGE_TEXT>`}]}],"people:profileurl:email:waterfall@1":[{config:{environment:`production`},pipes:[{pipe_id:`people:profileurl:email:waterfall@1`}],input:[{id:`1`,email:`<MESSAGE_TEXT>`}]}],"person:profileurl:email:waterfall@1":[{config:{environment:`production`},pipes:[{pipe_id:`person:profileurl:email:waterfall@1`}],input:[{id:`1`,email:`<MESSAGE_TEXT>`}]}],"people:validate:email:zerobounce@1":[{config:{environment:`production`},pipes:[{pipe_id:`people:validate:email:zerobounce@1`}],input:[{id:`1`,work_email:`john@pipe0.com`}]}],"people:mobilenumber:workemail:waterfall@1":[{config:{environment:`production`},pipes:[{pipe_id:`people:mobilenumber:workemail:waterfall@1`}],input:[{id:`1`,work_email:`john@pipe0.com`}]}],"people:professionalprofile:waterfall@1":[{config:{environment:`production`},pipes:[{pipe_id:`people:professionalprofile:waterfall@1`}],input:[{id:`1`,professional_profile_url:`john@pipe0.com`}]}],"people:professionalprofileurl:name@1":[{config:{environment:`production`},pipes:[{pipe_id:`people:professionalprofileurl:name@1`}],input:[{id:`1`,name:`John`,company_name:`Pipe0`,location_int:`Berlin`}]}],"people:professionalprofileurl:email:waterfall@1":[{config:{environment:`production`},pipes:[{pipe_id:`people:professionalprofileurl:email:waterfall@1`}],input:[{id:`1`,email:`john@pipe0.com`}]}],"people:mobilenumber:professionalprofile:waterfall@1":[{config:{environment:`production`},pipes:[{pipe_id:`people:mobilenumber:professionalprofile:waterfall@1`}],input:[{id:`1`,professional_profile_url:`https://linkedin.com/li/john`}]}],"company:overview@2":[{config:{environment:`production`},pipes:[{pipe_id:`company:overview@2`,config:{}}],input:[{id:`1`,company_website_url:`Pipe0`}]}],"company:overview@3":[{config:{environment:`production`},pipes:[{pipe_id:`company:overview@3`,config:{}}],input:[{id:`1`,company_domain:`pipe0.com`}]}],"fields:merge@1":[{config:{environment:`production`},pipes:[{pipe_id:`fields:merge@1`,config:{sources:[{field_name:`field_1`},{field_name:`field_2`}]}}],input:[{id:`1`,company_website_url:`Pipe0`}]}],"website:scrape:firecrawl@1":[{config:{environment:`production`},pipes:[{pipe_id:`website:scrape:firecrawl@1`,config:{scrape_main_only:!0,input_fields:{website_url:{alias:``}}}}],input:[{id:`1`,company_website_url:`Pipe0`}]}],"website:extract:firecrawl@1":[{config:{environment:`production`},pipes:[{pipe_id:`website:extract:firecrawl@1`,config:{extraction_prompt:`Extract the company mission as well as the latest news.`,enable_full_domain_crawl:!0,enable_web_search:!0,json_schema:{type:`object`,required:[`company_mission`,`latest_news`],properties:{company_mission:{type:`string`},latest_news:{type:`string`}}}}}],input:[{id:`1`,company_website_url:`Pipe0`}]}],"website:extract:parallel@1":[{config:{environment:`production`},pipes:[{pipe_id:`website:extract:parallel@1`,config:{objective:`When was the company founded and what does it do?`}}],input:[{id:`1`,website_url:`https://pipe0.com`}]}],"person:email:validate:millionverifier@1":[{config:{environment:`production`},pipes:[{pipe_id:`person:email:validate:millionverifier@1`}],input:[{id:`1`,email:`john@pipe0.com`}]}],"website:scrapelist:firecrawl@1":[{config:{environment:`production`},pipes:[{pipe_id:`website:scrapelist:firecrawl@1`,config:{scrape_main_only:!0,formats:[`markdown`,`links`]}}],input:[{id:`1`,urls:[`https://pipe0.com`,`https://pipe0.com/docs`]}]}],"website:maplinks:firecrawl@1":[{config:{environment:`production`},pipes:[{pipe_id:`website:maplinks:firecrawl@1`,config:{sitemap:`include`,page_limit:20,search:``}}],input:[{id:`1`,urls:[`https://pipe0.com`,`https://pipe0.com/docs`]}]}],"contact:create:resend@1":[{config:{environment:`production`},pipes:[{pipe_id:`contact:create:resend@1`,connector:{strategy:`first`,connections:[{type:`vault`,connection:`resend_123`}]},config:{segment_id:`segment_id_12xeeb12`,add_as_subscribed:!0}}],input:[{id:`1`,email:`test@pipe0.com`,name:`John Dorr`}]}],"sheet:row:append@1":[{config:{environment:`production`},pipes:[{pipe_id:`sheet:row:append@1`,connector:{strategy:`first`,connections:[{type:`vault`,connection:`pipe0_123`}]},config:{sheet:`sheet_id`,run:!0,allow_field_creation:!0,allow_sheet_creation:!0,new_sheet_team_id:``,included_fields:[{field_name:`field_name`}]}}],input:[{id:`1`,email:`test@pipe0.com`,name:`John Dorr`}]}],"sheet:row:expandappend@1":[{config:{environment:`production`},pipes:[{pipe_id:`sheet:row:expandappend@1`,connector:{strategy:`first`,connections:[{type:`vault`,connection:`pipe0_123`}]},config:{sheet:`sheet_id`,run:!0,allow_field_creation:!0}}],input:[{id:`1`,email:`test@pipe0.com`,name:`John Dorr`}]}],"people:match:role:waterfall@1":[{config:{environment:`production`},pipes:[{pipe_id:`people:match:role:waterfall@1`,config:{providers:[{provider:`leadmagic`}],roles:[`CEO`]}}],input:[{id:`1`,company_website_url:`https://acme.com`}]}],"person:match:role:waterfall@1":[{config:{environment:`production`},pipes:[{pipe_id:`person:match:role:waterfall@1`,config:{providers:[{provider:`leadmagic`}],roles:[`CEO`]}}],input:[{id:`1`,company_domain:`acme.com`}]}],"company:match:logodev@1":[{config:{environment:`production`},pipes:[{pipe_id:`company:match:logodev@1`}],input:[{id:`1`,company_website_url:`https://acme.com`}]}],"company:match:logodev@2":[{config:{environment:`production`},pipes:[{pipe_id:`company:match:logodev@2`}],input:[{id:`1`,company_domain:`acme.com`}]}],"company:lookalikes:companyenrich@1":[{config:{environment:`production`},pipes:[{pipe_id:`company:lookalikes:companyenrich@1`}],input:[{id:`1`,company_website_url:`https://acme.com`}]}],"company:lookalikes:companyenrich@2":[{config:{environment:`production`},pipes:[{pipe_id:`company:lookalikes:companyenrich@2`}],input:[{id:`1`,company_domain:`acme.com`}]}],"person:posts:crustdata@1":[{config:{environment:`production`},pipes:[{pipe_id:`person:posts:crustdata@1`}],input:[{id:`1`,profile_url:`https://linkedin.com/li/john-doe-3445`}]}],"people:identity:email:waterfall@1":[{config:{environment:`production`},pipes:[{pipe_id:`people:identity:email:waterfall@1`}],input:[{id:`1`,work_email:`john@pipe0.com`}]}],"person:identity:email:waterfall@1":[{config:{environment:`production`},pipes:[{pipe_id:`person:identity:email:waterfall@1`}],input:[{id:`1`,work_email:`john@pipe0.com`}]}],"people:profile:workemail:crustdata@1":[{config:{environment:`production`},pipes:[{pipe_id:`people:profile:workemail:crustdata@1`}],input:[{id:`1`,work_email:`john@pipe0.com`}]}],"person:profile:workemail:crustdata@1":[{config:{environment:`production`},pipes:[{pipe_id:`person:profile:workemail:crustdata@1`}],input:[{id:`1`,work_email:`john@pipe0.com`}]}],"people:workemail:profileurl:waterfall@1":[{config:{environment:`production`},pipes:[{pipe_id:`people:workemail:profileurl:waterfall@1`}],input:[{id:`1`,profile_url:`https://linkedin.com/li/john-123abc`}]}],"person:workemail:profileurl:waterfall@1":[{config:{environment:`production`},pipes:[{pipe_id:`person:workemail:profileurl:waterfall@1`}],input:[{id:`1`,profile_url:`https://linkedin.com/li/john-123abc`}]}],"company:match:crustdata@1":[{config:{environment:`production`},pipes:[{pipe_id:`company:match:crustdata@1`}],input:[{id:`1`,company_website_url:`https://microsoft.com`}]}],"company:match:crustdata@2":[{config:{environment:`production`},pipes:[{pipe_id:`company:match:crustdata@2`}],input:[{id:`1`,company_domain:`microsoft.com`}]}],"company:identity:crustdata@1":[{config:{environment:`production`},pipes:[{pipe_id:`company:identity:crustdata@1`}],input:[{id:`1`,company_domain:`samsung.com`},{id:`2`,company_name:`Samsung`}]}],"person:identity:amplemarket@1":[{pipes:[{pipe_id:`person:identity:amplemarket@1`,connector:{strategy:`first`,connections:[{type:`vault`,connection:`amplemarket_123`}]}}],input:[{id:`1`,email:`hallp@pipe0.com`}]}],"person:match:amplemarket@1":[{pipes:[{pipe_id:`person:match:amplemarket@1`,connector:{strategy:`first`,connections:[{type:`vault`,connection:`amplemarket_123`}]}}],input:[{id:`1`,profile_url:`https://linkedin.com/li/johndoe`}]}],"field:domainify@1":[{pipes:[{pipe_id:`field:domainify@1`}],input:[{id:`1`,url_input:`https://google.com`}]}],"field:slugify@1":[{pipes:[{pipe_id:`field:slugify@1`}],input:[{id:`1`,string_input:`input value`}]}],"http:request@1":[{pipes:[{pipe_id:`http:request@1`,config:{method:`GET`,url:`https://api.example.com/v1/companies/{{ company_name }}`,query_params:[{key:`limit`,value:`10`}],body:``,headers:[{key:`Authorization`,value:`Bearer SECRET`}],expected_response_schema:{},output_fields:{http_response_status:{alias:``,enabled:!0},http_response_body:{alias:``,enabled:!0},http_response_headers:{alias:``,enabled:!1}}}}],input:[{id:`1`,company_name:`Acme`}]}]};function sE(e){let t=[];for(let n of e){if(n instanceof H){t.push(n);continue}let e=TT.parse(n);if(!ET(n.pipe_id))throw Error(`Unknown pipe: ${n.pipe_id}`);let r=new(xT(n.pipe_id))(e);t.push(r)}return t}function cE(e,t){let n=sE(e),r=new Set;return n.forEach(e=>Object.entries(e.inputFields).forEach(([n,i])=>{i.resolvedName===t&&r.add(e.pipeId)})),Array.from(r)}function lE(e,t){let n=e.dependencyGraph,r=new Set;return n.forEach((e,n)=>e.forEach(e=>{e.index===t&&r.add(n)})),Array.from(r).map(t=>{let n=e.orderedPipeInstances[t];if(!n)throw Error(`Internal: Pipe with index ${t} not found.`);return n.pipeId})}const uE=.1,dE=[`level1`,`level2`,`level3`];function fE(e,t){let n=dE[t-1];if(n)return e[n]}function pE(e,t){for(let n=t;n>=1;n--){let t=fE(e,n);if(t)return{level:n,tier:t}}}function mE(e){let t=[];for(let n=1;n<=3;n++){let r=fE(e,n);r&&t.push({level:n,credits:r.credits,weight:r.weight})}return t}function hE(e){if(e.default<.1)return!1;let t=mE(e);if(t.length===0)return!1;for(let e=0;e<t.length;e++)if(t[e].level!==e+1)return!1;let n=e.default,r=0;for(let e of t){if(!(e.credits<n)||!Number.isInteger(e.weight)||e.weight<=r)return!1;n=e.credits,r=e.weight}return!0}function gE(){let e=new Map;for(let t of Object.values(yT))for(let[n,r]of Object.entries(t.billableOperations)){let i=r;if(!i?.allowManagedConnection||!hE(i.credits))continue;let a=n,o={kind:`pipe`,id:t.pipeId,label:t.label,categories:[...t.categories]},s=e.get(a);if(s){s.standardCredits=Math.min(s.standardCredits,i.credits.default),s.usedBy.push(o);continue}e.set(a,{billableOperation:a,provider:i.provider,kind:`pipe`,standardCredits:i.credits.default,tiers:mE(i.credits),usedBy:[o]})}for(let t of Object.values(Zw)){let{cost:n}=t;if(!hE(n.credits))continue;let r=t.billableOperation,i={kind:`search`,id:t.searchId,label:t.label,categories:[...t.categories]},a=e.get(r);if(a){a.standardCredits=Math.min(a.standardCredits,n.credits.default),a.usedBy.push(i);continue}e.set(r,{billableOperation:r,provider:t.provider,kind:`search`,standardCredits:n.credits.default,tiers:mE(n.credits),usedBy:[i]})}return[...e.values()].sort((e,t)=>e.billableOperation.localeCompare(t.billableOperation))}function _E(e){return e===`localhost`?!0:/^[a-zA-Z0-9]([a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(\.[a-zA-Z0-9]([a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/.test(e)&&e.includes(`.`)}function vE(e){return/^(\d{1,3})\.(\d{1,3})\.(\d{1,3})\.(\d{1,3})$/.test(e)?e.split(`.`).every(e=>{let t=parseInt(e,10);return t>=0&&t<=255}):/:/.test(e)}function yE(e){if(!e||typeof e!=`string`)return``;let t=e.trim();t.match(/^[a-zA-Z]+:\/\//)||(t=`https://${t}`);try{let e=new URL(t).hostname;if(vE(e))return`https://${e}`;if(!_E(e))throw Error(`Invalid domain`);return`https://${e}`}catch{let t=e.match(/([a-zA-Z0-9]([a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,}/i);return t?`https://${t[0]}`:``}}function bE(e){if(!e||typeof e!=`string`)return``;let t=e.trim();t.match(/^[a-zA-Z]+:\/\//)||(t=`https://${t}`);try{let e=new URL(t),n=e.hostname;if(vE(n))return`${e.protocol===`http:`?`http:`:`https:`}//${e.host}${e.pathname}${e.search}${e.hash}`;if(!_E(n))throw Error(`Invalid domain`);return`${e.protocol===`http:`?`http:`:`https:`}//${e.host}${e.pathname}${e.search}${e.hash}`}catch{let t=e.match(/^(https?:\/\/)?([^/\s]+)(\/.*)?$/i);if(t){let[,e,n,r=``]=t,i=n?.split(`:`)[0]||``;if(_E(i)||vE(i))return`${e?.toLowerCase()===`http://`?`http:`:`https:`}//${n}${r}`}return``}}function xE(e){try{return yE(e)}catch{console.warn(`Invalid URL: ${e}`);return}}function SE(e,t){if(t)switch(e){case`website_url`:return xE(t);default:return}}function CE(e){let t;if(wE(e))return CE(e.value);let n=typeof e;return t=n===`string`||n===`number`||n===`boolean`?n:e===null?`unknown`:`json`,t}function wE(e,t=0){if(typeof e==`object`&&e&&`value`in e&&`status`in e&&Fn.safeParse(e.status).success){if(t>1||typeof e.value==`object`&&wE(e.value,t++))throw new X([Y.RecursiveExpandedValue()]);return!0}return!1}function TE(e){let t=wE(e),n;return n=t?e.value:e,t?{isExpanded:!0,resolvedInputValue:n,expandedValue:e}:{isExpanded:!1,resolvedInputValue:n,expandedValue:null}}function EE(e){return wE(e)?EE(e.value):e}function DE(e,t,n){if([`processing`,`completed`].includes(n.status)===!1||t==null)return{};try{let r=_n(e,n.format)?.getStaticWidgets?.(t),i=SE(n.format,t);return IS(r||{},{display_value:i?{label:i}:void 0})}catch(e){return console.warn(`Failed to generate UI props: ${e}`),{}}}function OE(e,t,n){if(t==null)return{};try{let r=_n(e,n)?.getStaticWidgets?.(t),i=SE(n,t);return IS(r||{},{display_value:i?{label:i}:void 0})}catch(e){return console.warn(`Failed to generate UI props: ${e}`),{}}}function kE(e,t){for(let[n,r]of Object.entries(t)){let i=n;i===`type`&&e.type===`unknown`&&t.type!==`unknown`&&(e.type=t.type),i!==`type`&&i!==`json_metadata`&&(e[i]===void 0||e[i]===null||e[i]===``)&&t[i]&&(e[i]=r),i===`json_metadata`&&e.type===`json`&&!e.json_metadata&&t.json_metadata&&(e.json_metadata=t.json_metadata)}return e}var AE=class e{annotations;constructor(e){this.annotations=e||{}}getAnnotation(e){return this.annotations[e]}static fromInput(t,{probeCount:n=1e5,inferCatalogFields:i=!0}={probeCount:1e5,inferCatalogFields:!0}){let a={},o=0;for(let e of t){if(o++,o>n)break;for(let[t,n]of Object.entries(e)){if(t===``||t==null)continue;let{resolvedInputValue:e,expandedValue:o,isExpanded:s}=TE(n),c;c=s&&o.type?o.type:CE(e);let l;vn(t)&&(l=g(t));let u=l&&(l.type===c||c===`unknown`);(!a[t]||a[t].type===`unknown`&&c!==`unknown`)&&(a[t]={type:c===`unknown`&&u&&i&&l?.type?l.type:c,format:u&&i&&l?.format||null,label:l&&i?l.label:null,json_metadata:u&&i&&l?.jsonMeta?{schema:l.jsonMeta.zodSchema?r.toJSONSchema(l.jsonMeta.zodSchema):null,example_value:l.jsonMeta.exampleValue||null}:null})}}return a.id||={format:null,type:`string`,json_metadata:null,label:null},new e(a)}merge(t,n=!1){let r=structuredClone(this.annotations),i=t instanceof e?t.annotations:t;for(let[e,t]of Object.entries(i))if(r[e]===void 0||n)r[e]=t;else{let n=r[e];r[e]=kE(n,t)}return new e(r)}deleteKey(t){let n=structuredClone(this.annotations);return delete n[t],new e(n)}};function jE(e){let t={};for(let n=0;n<e.length;n++){let r=e[n];Object.values(r.getOutputFields()).forEach(e=>{if(t[e.resolvedName])throw new X([Y.AmbiguousDependency({fieldName:e.resolvedName})]);t[e.resolvedName]=n})}return t}function ME(e){let t=jE(e),n=[];for(let[r,i]of e.entries()){let e=[];for(let{field:n,required:a}of Ka(i.getInputRequirement())){let o=t[n.resolvedName];if(r===o)throw new X([{code:`SelfReference`,message:`Pipe '${i.pipeId} has an input requirement that points to a field that is produced by itself.'`}]);if(o==null)continue;let s=e.find(e=>e.index===o);s?(s.reason??=[],s.reason=Array.from(new Set([...s.reason,`input`])),s.required=a||s.required):e.push({index:o,required:a,reason:[`input`]})}if(i.payload.run_if){let n=i.payload.run_if.when.conditions.map(e=>e.field_name);for(let r of n){let n=t[r];if(n==null)continue;let i=e.find(e=>e.index===n);i?(i.reason??=[],i.reason=Array.from(new Set([...i.reason,`input`])),i.required=!0):e.push({index:n,required:!0,reason:[`input`]})}}n.push(e)}return n}function NE({config:e,pipes:t,input:n,field_annotations:r}){try{let i=LE({config:e,pipes:t,input:n,fieldAnnotations:r});return PE(i),i}catch(e){throw e instanceof X?e:new X([Y.ValidationFailed({error:e})])}}function PE(e){for(let t of e.orderedPipeInstances)for(let{field:n}of Ka(t.getInputRequirement()))dh({pipes:e.orderedPipeInstances,derivedInputFields:e.derivedInputFields},n.type),fh({pipes:e.orderedPipeInstances,derivedInputFields:e.derivedInputFields},n.format)}function FE(e,t){if(!e&&!t)throw new X([Y.MustDefineAnnotations()]);return new AE(t||{}).merge(AE.fromInput(e||[]))}function IE(e,t){let n={...t};return e.pipes.forEach((t,r)=>{for(let[i,a]of Object.entries(t.getOutputFields())){let i=n[a.resolvedName];if(i&&i.added_by.ref!==`input`)throw new X([Y.DuplicatePipeOutput({pipeId:t.pipeId,outputField:a})]);n[a.resolvedName]={type:dh(e,a.type),added_by:{ref:t.pipeId,config_hash:t.getConfigHashKey(),pipe_index:r},label:i?.label||a.label,format:fh(e,a.format),is_primary_output:a.isPrimaryOutput}}}),n}function LE(e){let t=sE(e.pipes),n=FE(e.input,e.fieldAnnotations),r={},i=new Set;t.forEach((e,t)=>{Object.entries(e.getOutputFields()).forEach(([e,t])=>{r[t.resolvedName]=e,i.add(t.resolvedName)}),BE(e,t)});let a={},o={};for(let[e,t]of Object.entries(n.annotations))o[e]={type:t.type,added_by:{ref:`input`,config_hash:null,pipe_index:null},label:t.label||``,format:t.format?t.format:null,is_primary_output:!1},!i.has(e)&&(a[e]={addedBy:`input`,required:!1,type:t.type,label:t.label||e});let[s,c,l]=RE(t,n),u=IE({pipes:c,derivedInputFields:a},o);for(let e in u){let t=u[e];r[e]&&(n=n.merge({[e]:{type:t.type,format:t.format,json_metadata:null,label:n.annotations[e]?.label?n.annotations[e]?.label:null}},!0))}return{environment:e.config.environment,dependencyGraph:l,derivedInputFields:a,fieldAnnotations:n,orderedPipePayloads:s,orderedPipeInstances:c,resolvedFieldNames:r,fieldDefinitions:u}}function RE(e,t){let n=ME(e),r=zE(n,e,t),i=[],a=[];return r.forEach(t=>{let n=e[t];if(!n)throw new X([Y.FaultyEnrichmentOrder()]);i.push(n.payload),a.push(n)}),[i,a,n]}function zE(e,t,n){let r=t.length,i=[],a=new Set,o=new Set,s=[],c=e=>{let n=t[e];return n?Ka(n.getInputRequirement()).length>0:!1},l=(n,r=[])=>{if(o.has(n)){let e=n,i=r[r.length-1]||0,a={idx:i,pipe_id:t[i]?.pipeId},o={idx:e,pipeId:t[e]?.pipeId};throw new X([Y.CircularDependency({currentPipe:a,circularPipe:o})])}if(a.has(n))return;o.add(n),r.push(n);let s=e[n]||[];for(let e of s)l(e.index,r);r.pop(),o.delete(n),a.add(n),i.push(n)};function u(t){if(a.has(t))return;o.add(t);let n=e[t]||[];for(let e of n){if(!a.has(e.index)&&e.required)throw new X([Y.UnresolvableDependency({index:t,dependencyIndex:e.index})]);!o.has(e.index)&&!e.required&&u(e.index)}o.delete(t),a.add(t),i.push(t)}for(let e=0;e<r;e++)c(e)&&l(e);for(let e=0;e<r;e++)c(e)||l(e);for(let e=0;e<r;e++)u(e);let ee=new Set(Object.keys(n.annotations));for(let e of i){let n=t[e];if(!n)throw Error(`Pipe not defined`);Object.values(n.getOutputFields()).forEach(e=>{ee.add(e.resolvedName)})}for(let[n,r]of t.entries()){let a=r.getInputRequirement();Ga(a,ee)||s.push(Y.RequirementUnmet({requirement:a,pipeId:r.pipeId,index:n}));let o=e[n]||[],c=i.indexOf(n);for(let e of o){let r=i.indexOf(e.index);e.required&&r>c&&s.push(e.reason.includes(`input`)?Y.HardInputDependencyViolation({dependencyIndex:e.index,dependencyIndexPipeId:t[e.index]?.pipeId,index:n,indexPipeId:t[n]?.pipeId}):Y.HardConditionDependencyViolation({dependencyIndex:e.index,dependencyIndexPipeId:t[e.index]?.pipeId,index:n,indexPipeId:t[n]?.pipeId}))}r.payload.run_if&&r.payload.run_if.when.conditions.map(e=>e.field_name).forEach(e=>{if(!ee.has(e))throw new X([Y.ConditionTargetFieldNotFound({fieldName:e,pipeId:r.pipeId,pipeIdx:n})])})}if(s.length>0)throw new X(s);return i}function BE(e,t){let n=new Set(e.getConnectionsRequirements().filter(e=>e.allowManagedConnection===!1).map(e=>e.provider));if(n.size>0){let r=e.payload.connector;if(!r||(r.connections.map(e=>{if(e.type===`vault`)return si(e.connection).provider;e.type}).forEach(e=>{e&&n.delete(e)}),n.size>0))throw new X([Y.MissingCustomConnections({index:t,pipeId:e.pipeId,missingProviders:Array.from(n)})])}}const VE=[`yyyy-MM-dd`,`yyyy/MM/dd`,`yyyy-MM-dd HH:mm:ss`,`MM/dd/yyyy`,`MM/dd/yyyy HH:mm:ss`,`MM-dd-yyyy`,`MM-dd-yyyy HH:mm:ss`,`yyyyMMdd`],HE=[`yyyy-MM-dd`,`yyyy/MM/dd`,`MM/dd/yyyy`,`MM-dd-yyyy`,`yyyyMMdd`,`dd-MM-yyyy`,`dd/MM/yyyy`],UE=r.string().trim().transform(e=>{if(!/\./.test(e)&&!/^[a-zA-Z0-9_-]*$/.test(e))throw Error(`Invalid URL format`);let t=String(e).trim();if(/^https?:\/\//i.test(t)||(t=`https://${t}`),t=t.replace(/^http:\/\//i,`https://`),t=t.replace(/^https:\/\/[w]{4,}\./i,`https://www.`),t=t.endsWith(`/`)?t.slice(0,-1):t,!t.includes(`.`))throw Error(`Invalid URL format - no TLD`);return t}).check(e=>{r.url(e.value).safeParse(e.value).success||e.issues.push({code:`custom`,message:`Invalid URL`,input:e.value})}),WE=r.coerce.string().trim().toLowerCase().transform(e=>{let t=e.replace(/^mailto:/i,``),[n,r]=t.split(`@`);return!r||!n?t:`${n.replace(/[^a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]/g,``)}@${r.replace(/\s+/g,``)}`}).check(e=>{r.email().safeParse(e.value).success||e.issues.push({code:`custom`,input:e.value,message:`Invalid email format`})});function GE(e){return!isNaN(e.getTime())}const KE=r.coerce.string().trim().transform(e=>{let t=e.replace(/[^0-9T:.\-/ ]/g,``).trim();for(let e of VE){let n=ee(t,e,new Date(0));if(GE(n))return u(n,`yyyy-MM-dd'T'HH:mm:ss`)}throw Error(`Invalid date format: ${e}`)}),qE=r.coerce.string().trim().transform(e=>{for(let t of HE){let n=ee(e,t,new Date(0));if(GE(n))return u(n,`yyyy-MM-dd`)}throw Error(`Invalid date format: ${e}`)}),JE=r.union([r.number(),r.string().transform(e=>{let t=e.replace(/[^0-9.]/g,``),n=parseFloat(t);if(isNaN(n))throw Error(`Invalid decimal format`);return n})]).refine(e=>!isNaN(e),{message:`Value must be a valid number`}),YE=r.union([r.number().transform(e=>Math.trunc(e)),r.string().transform(e=>{let t=e.replace(/[^0-9]/g,``),n=parseInt(t,10);if(isNaN(n))throw Error(`Invalid integer format`);return n})]).check(r.int()),XE=r.coerce.string().trim().min(1,{message:`Value cannot be empty for this format`});function ZE(e,t){if(t===null)return e===``||e==null?null:e;if(e==null)return null;try{switch(t){case`url`:return UE.parse(e);case`email`:return WE.parse(e);case`datetime`:return KE.parse(e);case`date`:return qE.parse(e);case`decimal`:return JE.parse(e);case`int`:return YE.parse(e);case`currency`:return r.number().parse(e);case`percent`:return r.number().parse(e);case`address_line_1`:return XE.parse(e);case`website_url`:return UE.parse(e);case`profile_url`:return UE.parse(e);case`zip_code`:return XE.parse(e);case`markdown`:case`phone`:case`text`:return XE.parse(e);case`json_object`:return r.record(r.any(),r.any()).parse(e);case`json_list`:return r.array(r.any()).parse(e);case`json_list_string`:return r.array(r.string()).parse(e);default:throw Error(`Unknown format: ${t}`)}}catch(r){throw r instanceof n?Error(`Unable to parse value ${_d(e)} into format ${t}: ${r.message}`):r}}function QE(e,t,n){let r={};for(let[i,a]of Object.entries(e.derivedInputFields)){let e=t.field_definitions[i]?.format||null,o=n[i]??null;if(wE(o))o.resolved_by?.ref===`input`?r[i]={value:o.value,type:a.type,claimed_by:{ref:`input`,config_hash:null},resolved_by:o.value==null?null:{ref:`input`,config_hash:null,input_hash:null,environment:o.resolved_by.environment||null},reason:null,status:o.value===null?`pending`:`completed`,widgets:o.widgets||{},format:o.format||e}:r[i]={value:o.value,type:a.type,claimed_by:o.claimed_by||{ref:`input`,config_hash:null},resolved_by:o.resolved_by?o.resolved_by:o.value==null?null:{ref:`input`,config_hash:null,input_hash:null,environment:null},reason:o.reason||null,status:o.status,widgets:o.widgets||{},format:o.format||e};else if(o!=null)try{r[i]={value:ZE(o,e),type:a.type,claimed_by:{ref:`input`,config_hash:null},resolved_by:{ref:`input`,config_hash:null,input_hash:null,environment:null},reason:null,status:`completed`,widgets:{},format:e}}catch{r[i]={value:o,type:a.type,claimed_by:{ref:`input`,config_hash:null},resolved_by:{ref:`input`,config_hash:null,input_hash:null,environment:null},reason:{code:`InvalidValue`,summary:`Invalid`,message:`This field expects a value of format ${e}.`},status:`failed`,widgets:{},format:e}}else r[i]={type:a.type,value:o,claimed_by:{ref:`input`,config_hash:null},resolved_by:{ref:null,config_hash:null,input_hash:null,environment:null},reason:null,status:`pending`,widgets:{},format:e}}return r}function $E(e,t,n){for(let r=0;r<t.length;r++){let i=t[r];i.id||=crypto.randomUUID();let{id:a}=i;if(typeof a!=`string`&&typeof a!=`number`){n.errors.push(Y.InvalidId());continue}if(n.records[a]){n.errors.push(Y.IDConflict({index:r,id:a}));continue}n.order.push(a),n.records[a]={id:a,fields:QE(e,n,i)}}}function eD({context:e,input:t,config:n={}}){let r={field_definitions:e.fieldDefinitions,order:[],errors:[],records:{},queued_record_ids:new Set,adopted_record_ids:new Set};try{$E(e,t,r);let{queuedRecordIdSet:i,adoptedRecordIdSet:a}=tD(e,t,r,n);if(r.queued_record_ids=i,r.adopted_record_ids=a,nD(e,r,n?.queue?.enabled),cD(e,r),r.errors.length>0)throw new X(r.errors);return r}catch(e){throw e instanceof X?e:new X([Y.ResponseGenerationFailed({error:e})])}}function tD(e,t,n,r){let i=[],a=[];for(let o=0;o<e.orderedPipePayloads.length;o++){let s=e.orderedPipePayloads[o],c=e.orderedPipeInstances[o];if(!c){n.errors.push(Y.UnknownResolver({pipeId:s.pipe_id,index:o}));continue}let{queuedRecordIds:l,adoptedRecordIds:u}=sD(e,t,c,n,r);i=i.concat(l),a=a.concat(u)}return{queuedRecordIdSet:new Set(i),adoptedRecordIdSet:new Set(a)}}function nD(e,t,n){if(!n)return;let r=(t,n,r,i)=>{Object.values(t.getOutputFields()).forEach(a=>{let o=i.fields[a.resolvedName];if(!o)throw Error(`Internal: Output field ${gg(a)} not found`);o.status===`queued`&&(o.status=`skipped`,o.resolved_by={ref:`system`,environment:e.environment,config_hash:t.getConfigHashKey(),input_hash:t.getInputHashKey(i)},o.value=null,o.reason={code:`InputError`,message:`Field ${gg(n)} is missing but required (${r.value?`the value is`:`it has status`}: '${r.value?r.value:r.status}').`,summary:`Missing input`})})};for(let n=0;n<e.orderedPipePayloads.length;n++){let i=e.orderedPipePayloads[n],a=e.orderedPipeInstances[n];if(!a){t.errors.push(Y.UnknownResolver({pipeId:i.pipe_id,index:n}));continue}Object.values(t.records).forEach(e=>{let{valid:t,failedPipeInputField:n,failedRecordField:i}=qa(a.getInputRequirement(),e);t===!1&&r(a,n,i,e)})}}function rD({inputHashKey:e,configHashKey:t,config:n,expandedValue:r}){return!!(n.queue?.triggers?.configHashMismatch&&n.queue.enabled&&r.resolved_by?.config_hash&&t&&r.resolved_by.config_hash!==t||n.queue?.triggers?.inputHashMismatch&&n.queue.enabled&&r.resolved_by?.input_hash&&e&&r.resolved_by.input_hash!==e)}function iD({status:e,config:t}){return t.queue?.enabled?!!(e===`failed`&&t.queue?.triggers?.fieldIsFailed||e===`no_result`&&t.queue?.triggers?.fieldIsNoResult):!1}function aD({inputHashKey:e,configHashKey:t,expandedValue:n,config:r}){return rD({inputHashKey:e,configHashKey:t,expandedValue:n,config:r})||iD({status:n.status,config:r})}function oD({inputHashKey:e,configHashKey:t,expandedValue:n}){let r=!1;return n.resolved_by?.config_hash&&t&&n.resolved_by.config_hash!==t&&(n.resolved_by.config_hash=t,r=!0),n.resolved_by?.input_hash&&e&&n.resolved_by.input_hash!==e&&(n.resolved_by.input_hash=e,r=!0),{didAdopt:r}}function sD(e,t,n,r,i){let a=Object.entries(r.records),o=[],s=[];for(let c=0;c<a.length;c++){let[l,u]=a[c];for(let a of Object.values(n.getOutputFields())){let{resolvedName:l,type:ee}=a,te=dh({pipes:e.orderedPipeInstances,derivedInputFields:e.derivedInputFields},ee),ne=fh({pipes:e.orderedPipeInstances,derivedInputFields:e.derivedInputFields},a.format),{resolvedInputValue:d,isExpanded:re,expandedValue:f}=TE(t[c]?.[l]??null),ie=u.fields[l],ae=n.getConfigHashKey(),oe=n.getInputHashKey(u),se={type:te,format:ne,claimed_by:{ref:n.pipeId,config_hash:ae}};if(r.errors.length>0&&d===null){u.fields[l]={...se,value:null,status:`failed`,reason:{summary:`Validation error`,...r.errors[0]},claimed_by:{ref:d===void 0?n.pipeId:`input`,config_hash:d===void 0?ae:null},resolved_by:{ref:`system`,environment:e.environment,config_hash:null,input_hash:null},widgets:{}};continue}let ce=CE(d);if(ce!==`unknown`&&ce!==te){let t=i.queue?.triggers?.outputFieldTypeError&&i.queue.enabled;u.fields[l]={...se,value:t?null:d,status:t?`queued`:`completed`,reason:null,resolved_by:t?{environment:e.environment,ref:`system`,config_hash:ae,input_hash:oe}:{environment:e.environment,ref:`input`,config_hash:null,input_hash:null},widgets:t?{}:f?.widgets||ie?.widgets||{},format:t?ne:f?.format||ne};continue}if(d==null){let t=re&&i.queue?.enabled&&(f.status===`pending`||f.status===`skipped`),n=re&&!t;if(re&&i.adopt?.enabled===!0){let{didAdopt:e}=oD({inputHashKey:oe,configHashKey:ae,expandedValue:f});e&&s.push(u.id)}if(re&&f.status!==`pending`&&aD({inputHashKey:oe,configHashKey:ae,config:i,expandedValue:f})&&i.queue?.enabled)o.push(u.id),u.fields[l]={...se,value:null,status:`queued`,reason:null,resolved_by:{environment:e.environment,ref:`system`,config_hash:ae,input_hash:oe},widgets:{}};else if(n)u.fields[l]={...se,value:null,status:f.status,type:f.type||te,reason:f.reason||null,resolved_by:f.resolved_by||null,widgets:f.widgets||{},format:f.format||ne};else{let t=i.queue?.enabled?`queued`:`pending`;t===`queued`&&o.push(u.id),u.fields[l]={...se,value:null,status:t,reason:null,resolved_by:t===`queued`?{environment:e.environment,ref:`system`,config_hash:ae,input_hash:oe}:null,widgets:{}}}continue}if(re){if(re&&i.adopt?.enabled===!0){let{didAdopt:e}=oD({inputHashKey:oe,configHashKey:ae,expandedValue:f});e&&s.push(u.id)}aD({inputHashKey:oe,configHashKey:ae,expandedValue:f,config:i})&&r.errors.length===0?(o.push(u.id),u.fields[l]={...se,value:null,status:`queued`,reason:null,resolved_by:{environment:e.environment,ref:`system`,config_hash:null,input_hash:null},widgets:{}}):u.fields[l]={...se,value:d,status:`completed`,type:f.type||te,reason:f.reason||null,resolved_by:f.resolved_by||{ref:`input`,config_hash:null,input_hash:null,environment:null},widgets:f.widgets||ie?.widgets||{},format:f.format||ne}}else try{let e=ZE(d,ne);u.fields[l]={...se,value:e,status:`completed`,reason:null,resolved_by:{ref:`input`,config_hash:null,input_hash:null,environment:null},widgets:ie?.widgets||{}}}catch{let t=i.queue?.enabled?`queued`:`failed`;t===`queued`&&o.push(u.id),u.fields[l]={...se,value:d,status:t,reason:{code:`InvalidFormat`,message:`Field is of invalid format. Expected: ${a.format}`,summary:`Invalid Format`},resolved_by:{ref:`system`,environment:e.environment,config_hash:ae,input_hash:oe},widgets:{}}}}}return{queuedRecordIds:o,adoptedRecordIds:s}}function cD(e,t){Object.values(t.records).forEach(n=>{Object.entries(n.fields).forEach(([n,r])=>{let i=e.resolvedFieldNames[n]||n;if(r.status===`completed`){let e=DE(i,r.value,r);r.widgets=IS(r.widgets||{},e)}t.errors.length>0&&(r.status===`pending`||r.status===`queued`)&&(r.status=`failed`)})})}function lD(e,t){let{expandAllStatuses:n=!1,expandStatuses:r=[]}=t||{},i={};for(let[t,a]of Object.entries(e))(r.includes(a.status)||n)&&t!==`id`?i[t]={...a}:i[t]=a.value;return i}function uD(e,t={}){return Object.values(e).map(e=>lD(e.fields,t))}function dD(e,t={}){return e.map(e=>lD(e.fields,t))}function fD(e,t={}){return lD(e.fields,t)}function pD(e,t){return e.map(e=>{let n={};return Object.entries(e).forEach(([e,r])=>{let{isExpanded:i,expandedValue:a,resolvedInputValue:o}=TE(r);i===!0&&a.status!=null&&t.unexpandStatuses.includes(a.status)?n[e]=o:n[e]=r}),n})}function mD(e){let t=wr[e];if(!t)throw Error(`Provider name '${e}' invalid`);return{...t,provider:e}}const hD=[`people:profiles:icypeas@1`,`companies:profiles:icypeas@1`,`people:profiles:clado@1`,`people:profiles:clado@2`,`people:employees:leadmagic@1`,`companies:profiles:exa@1`,`people:profiles:exa@1`,`companies:profiles:crustdata@1`,`people:profiles:crustdata@1`],gD=r.enum(hD);function _D(e){let t=!0,n=e=>{if(t!==!1&&typeof e==`object`&&e){Array.isArray(e)&&e.length>0&&(t=!1);for(let r of Object.values(e))typeof r!=`object`&&r!=null&&r!==``&&(t=!1),typeof r==`object`&&r&&n(r)}};return n(e),t}function vD(e,t){let n={name:e,config:t};return Za.hashObject(n)}var yD=class{validatePayload(e){try{return this.schema.parse(e)}catch(e){throw e instanceof n?Error(JSON.stringify(r.prettifyError(e))):e}}catalogOutput(e){return{name:e.name,enabled:!!this.payload.config?.output_fields?.[e.name].enabled,type:e.type,format:e.format,resolvedName:this.payload.config?.output_fields?.[e.name]?.alias||e.name,description:e.description,jsonMeta:e.jsonMeta,label:e.label,isCatalogFIeld:!0}}getOutputFields(){let e={};for(let[t,n]of Object.entries(this.getRawOutputFields()))n.enabled&&(e[t]=n);return e}getHashKey(){return vD(this.searchId,this.payload)}};function bD(e){return e.split(`@`)[0]}function xD(e){return`/docs/search-catalog/${bD(e)}/${e.split(`@`)[1]}`}const SD=`companies:profiles:crustdata@1`,CD=g(`company_name`),wD=g(`company_website_url`),TD=g(`company_description`),ED=g(`company_profile_url`),DD=g(`crustdata_company_match`),OD=r.object({search_id:r.literal(SD),connector:_.nullable().optional(),config:r.object({limit:I({sectionKey:`general`,required:!0,path:`config.limit`,max:1e3,min:1,groupPath:`config.general`,description:``,label:`Limit number of search results`}).default(100),cursor:Fa({sectionKey:`general`,path:`config.cursor`,groupPath:`config.general`,inputType:`text`,description:``,label:`Continue previous search from cursor`}),output_fields:L(r.object({[CD.name]:M({fieldName:CD.name}),[wD.name]:M({fieldName:CD.name}),[TD.name]:M({fieldName:TD.name}),[ED.name]:M({fieldName:ED.name}),[DD.name]:M({fieldName:DD.name})})),filters:r.object({hq_locations:P({path:`config.filters.hq_locations`,sectionKey:`config.filters`,label:`HQ locations`,description:``,disableSearch:!1,required:!1,groupPath:`config.filters.location`,optionsDef:h(`locations`)}),crunchbase_categories:P({path:`config.filters.crunchbase_categories`,sectionKey:`config.filters`,label:`Crunchbase categories`,description:``,disableSearch:!1,required:!1,groupPath:`config.filters.categories`,optionsDef:h(`company.crunchbase_categories.crustdata`)}),crunchbase_investors:P({path:`config.filters.crunchbase_investors`,sectionKey:`config.filters`,label:`Investors to include (Crunchbase)`,description:``,disableSearch:!1,required:!1,groupPath:`config.filters.investors`,optionsDef:h(`company.crunchbase_investors.crustdata`)}),tracxn_investors:P({path:`config.filters.tracxn_investors`,sectionKey:`config.filters`,label:`Investors to include (Tracxn)`,description:``,required:!1,groupPath:`config.filters.investors`,disableSearch:!1,optionsDef:h(`company.tracxn_investors.crustdata`)}),company_types:N({sectionKey:`config.filters`,path:`config.filters.company_types`,options:p(`crustdata.company_types`),label:`Company types`,description:``,required:!1,disableSearch:!0,groupPath:`config.filters.categories`}),linkedin_industries:P({sectionKey:`config.filters`,path:`config.filters.linkedin_industries`,optionsDef:h(`linkedin_industries.crustdata`),label:`Industries`,disableSearch:!1,required:!1,description:``,groupPath:`config.filters.industry`}),markets:P({sectionKey:`config.filters`,path:`config.filters.markets`,optionsDef:h(`company.markets.crustdata`),label:`Markets`,disableSearch:!1,required:!1,description:``,groupPath:`config.filters.industry`}),linkedin_categories:P({sectionKey:`config.filters`,path:`config.filters.linkedin_categories`,optionsDef:h(`company.linkedin_categories.crustdata`),label:`Company types`,description:``,required:!1,disableSearch:!0,groupPath:`config.filters.categories`}),headcount:N({path:`config.filters.headcount`,sectionKey:`config.filters`,label:`Headcount`,description:``,disableSearch:!0,required:!1,options:p(`crustdata.company_size`),groupPath:`config.filters.company_size`}),headcount_growth_last_6m_in_percent:N({path:`config.filters.headcount_growth_last_6m_in_percent`,sectionKey:`config.filters`,label:`Headcount growth over last 6 months in percent`,description:``,options:p(`crustdata.headcount_growth`),disableSearch:!0,required:!1,groupPath:`config.filters.company_size`}),revenue_in_usd:ja({path:`config.filters.revenue_in_usd`,sectionKey:`config.filters`,label:`Revenue (USD)`,description:``,legend:`1k - 10B`,min:1e3,max:1e10,groupPath:`config.filters.financials`}),last_funding_type:N({path:`config.filters.last_funding_type`,sectionKey:`config.filters`,label:`Last funding type`,disableSearch:!0,required:!1,options:p(`crustdata.funding_rounds`),description:``,groupPath:`config.filters.financials`}),last_funding_amount:ja({path:`config.filters.last_funding_amount`,sectionKey:`config.filters`,label:`Last funding amount`,legend:`1k - 10B`,min:1e3,max:1e10,description:``,groupPath:`config.filters.financials`}),number_of_followers:N({path:`config.filters.number_of_followers`,sectionKey:`config.filters`,label:`Number of LinkedIn followers`,disableSearch:!0,description:``,required:!1,options:p(`crustdata.company_followers`),groupPath:`config.filters.web_presence`}),follower_growth_last_6m_in_percent:N({path:`config.filters.follower_growth_last_6m_in_percent`,sectionKey:`config.filters`,label:`LinkedIn follower growth within last 6 months`,disableSearch:!0,description:``,required:!1,options:p(`crustdata.follower_growth`),groupPath:`config.filters.web_presence`}),profile_summary_keywords:k({path:`config.filters.profile_summary_keywords`,sectionKey:`config.filters`,maxItems:50,label:`LinkedIn company description contains`,description:``,groupPath:`config.filters.keywords`}),competitor_websites:k({path:`config.filters.competitor_websites`,sectionKey:`config.filters`,maxItems:50,label:`Competitor domains`,description:`Ex. 'google.com'`,groupPath:`config.filters.competitors`})}).check(e=>{_D(e.value)&&e.issues.push({code:`custom`,message:`You must set at least one filter.`,input:e.value})})})}),kD={default:{input:[{fields:[]}]}},AD=class extends yD{searchId=SD;schema=OD;payload;constructor(e){super(),this.payload=this.validatePayload(e)}getRawOutputFields(){return{[CD.name]:this.catalogOutput(CD),[wD.name]:this.catalogOutput(wD),[TD.name]:this.catalogOutput(TD),[ED.name]:this.catalogOutput(ED),[DD.name]:this.catalogOutput(DD)}}getConnectionsRequirements(){return[{provider:`crustdata`,rateLimitOperation:`crustdata_company_db_search`,rateLimitRatio:1,allowManagedConnection:!0}]}getDedupConfig(){return kD}},jD=OD,MD={searchId:SD,billableOperation:`companies-profiles-crustdata`,baseSearch:bD(`companies:profiles:crustdata@1`),label:`Company search`,categories:[`companies`],hasManagedConnection:!0,allowsUserConnection:!0,lifecycle:null,description:`Filter based company search.`,tags:[z.COMPANY_PROFILES],docPath:xD(SD),cost:{mode:`per_page`,creditsPerPage:2},provider:`crustdata`,defaultPayload:{search_id:SD,connector:null,config:{limit:100,cursor:``,output_fields:{company_name:{enabled:!0,alias:``},company_website_url:{enabled:!0,alias:``},company_description:{enabled:!0,alias:``},company_profile_url:{enabled:!0,alias:``},crustdata_company_match:{enabled:!0,alias:``}},filters:{company_types:[],headcount_growth_last_6m_in_percent:[],last_funding_amount:{from:null,to:null},last_funding_type:[],linkedin_industries:[],linkedin_categories:[],crunchbase_categories:[],markets:[],revenue_in_usd:{from:null,to:null},crunchbase_investors:[],tracxn_investors:[],follower_growth_last_6m_in_percent:[],headcount:[],hq_locations:[],number_of_followers:[],profile_summary_keywords:[],competitor_websites:[]}}}},ND=`companies:profiles:exa@1`,PD=g(`company_name`),FD=g(`company_website_url`),ID=g(`company_description`),LD=g(`company_industry`),RD=g(`headcount`),zD=g(`exa_match_evaluation`),BD=r.object({search_id:r.literal(ND),connector:_.nullable().optional(),config:r.object({limit:I({sectionKey:`general`,required:!0,path:`config.limit`,max:100,min:1,groupPath:`config.general`,description:``,label:`Limit number of search results`}).default(10),output_fields:L(r.object({[PD.name]:M({fieldName:PD.name}),[FD.name]:M({fieldName:PD.name}),[ID.name]:M({fieldName:ID.name}),[LD.name]:M({fieldName:LD.name}),[RD.name]:M({fieldName:RD.name}),[zD.name]:M({fieldName:zD.name})})),filters:r.object({query:Ia({sectionKey:`config.filters`,path:`config.filters.query`,placeholder:`e.g. Top AI research labs focusing on large language models`,groupPath:`config.filters.query`,rows:5,label:`Search description in natural language`,minLength:10,maxLength:2e4})})})}),VD={default:{input:[{fields:[]}]}},HD=class extends yD{searchId=ND;schema=BD;payload;constructor(e){super(),this.payload=this.validatePayload(e)}getRawOutputFields(){return{[PD.name]:this.catalogOutput(PD),[FD.name]:this.catalogOutput(FD),[ID.name]:this.catalogOutput(ID),[LD.name]:this.catalogOutput(LD),[RD.name]:this.catalogOutput(RD),[zD.name]:this.catalogOutput(zD)}}getConnectionsRequirements(){return[{provider:`exa`,rateLimitOperation:`exa_websets`,rateLimitRatio:1,allowManagedConnection:!0}]}getDedupConfig(){return VD}},UD=BD,WD={searchId:ND,billableOperation:`companies-profiles-exa`,baseSearch:bD(`companies:profiles:exa@1`),label:`Company finder (websets)`,categories:[`companies`],hasManagedConnection:!0,allowsUserConnection:!0,lifecycle:null,description:`Semantic AI search to find company profiles. This search can take several minutes.`,tags:[z.COMPANY_PROFILES],docPath:xD(ND),cost:{mode:`per_result`,creditsPerResult:2},provider:`exa`,defaultPayload:{search_id:ND,connector:null,config:{limit:10,output_fields:{company_name:{enabled:!0,alias:``},company_website_url:{enabled:!0,alias:``},company_industry:{enabled:!0,alias:``},company_description:{enabled:!0,alias:``},headcount:{enabled:!0,alias:``},exa_match_evaluation:{enabled:!1,alias:``}},filters:{query:``}}}},GD=`companies:profiles:icypeas@1`,KD=g(`company_industry`),qD=g(`company_name`),JD=g(`company_description`),YD=g(`company_website_url`),XD=g(`headcount`),ZD=g(`company_region`),QD=g(`company_profile_url`),$D=g(`icypeas_company_match`),eO=r.object({search_id:r.literal(GD),connector:_.nullable().optional(),config:r.object({limit:I({sectionKey:`general`,max:5e4,min:1,path:`config.limit`,required:!0,groupPath:`config.general`,description:``,label:`Limit number of search results`}).default(100),output_fields:L(r.object({company_name:M({fieldName:qD.name}),company_industry:M({fieldName:KD.name}),company_description:M({fieldName:JD.name}),company_website_url:M({fieldName:YD.name}),headcount:M({fieldName:XD.name}),company_region:M({fieldName:ZD.name}),company_profile_url:M({fieldName:QD.name}),icypeas_company_match:M({fieldName:$D.name})})),filters:r.object({name:A({path:`config.filters.name`,sectionKey:`config.filters`,includeLabel:`Company names to include`,excludeLabel:`Company names to exclude`,description:``,placeholder:``,groupPath:`config.filters.company_information`,maxItems:100}).optional(),type:j({path:`config.filters.type`,sectionKey:`config.filters`,label:``,description:``,placeholder:``,includeLabel:`Company types to include`,excludeLabel:`Company types to exclude`,optionsDef:{type:`static`,options:[{value:`Privately Held`,label:`Privately Held`},{value:`Public Company`,label:`Public Company`},{value:`Sole Proprietorship`,label:`Sole Proprietorship`},{value:`Self-Employed`,label:`Self-Employed`},{value:`Partnership`,label:`Partnership`},{value:`Nonprofit`,label:`Nonprofit`},{value:`Educational Institution`,label:`Educational Institution`},{value:`Government Agency`,label:`Government Agency`}]},groupPath:`config.filters.company_information`}).optional(),industry:j({path:`config.filters.industry`,sectionKey:`config.filters`,optionsDef:m(`linkedin.industries`),includeLabel:`Industries to include`,excludeLabel:`Industries to exclude`,description:``,placeholder:``,groupPath:`config.filters.industry`,maxItems:50}).optional(),location:A({path:`config.filters.location`,sectionKey:`config.filters`,includeLabel:`Locations to include`,excludeLabel:`Locations to exclude`,description:``,placeholder:`US, FR, New York`,groupPath:`config.filters.geografic`,maxItems:20}).optional(),headcount:ja({path:`config.filters.headcount`,sectionKey:`config.filters`,legend:`1-1M`,label:`Headcount`,description:``,min:1,max:1e6,unit:`employees`,groupPath:`config.filters.company_size`}).optional(),urn:A({path:`config.filters.urn`,sectionKey:`config.filters`,label:``,description:``,groupPath:`config.filters.linkedin`,excludeLabel:`URNs to exclude`,includeLabel:`URNs to include`,maxItems:200}).optional(),lid:A({path:`config.filters.lid`,sectionKey:`config.filters`,label:``,description:``,groupPath:`config.filters.linkedin`,includeLabel:`LinkedIn IDs to include`,excludeLabel:`LinkedIn IDs to exclude`,maxItems:200}).optional()}).check(e=>{_D(e.value)&&e.issues.push({code:`custom`,message:`You must set at least one filter.`,input:e.value})})})}),tO={default:{input:[{fields:[{outputField:`company_profile_url`}]}]}},nO=class extends yD{searchId=GD;schema=eO;payload;constructor(e){super(),this.payload=this.validatePayload(e)}getRawOutputFields(){return{[qD.name]:this.catalogOutput(qD),[KD.name]:this.catalogOutput(KD),[QD.name]:this.catalogOutput(QD),[YD.name]:this.catalogOutput(YD),[JD.name]:this.catalogOutput(JD),[XD.name]:this.catalogOutput(XD),[ZD.name]:this.catalogOutput(ZD),[$D.name]:this.catalogOutput($D)}}getConnectionsRequirements(){return[{provider:`icypeas`,rateLimitOperation:`icypeas_company_database`,rateLimitRatio:1,allowManagedConnection:!0}]}getDedupConfig(){return tO}},rO=eO,iO={searchId:GD,billableOperation:`companies-profiles-icypeas`,baseSearch:bD(`companies:profiles:icypeas@1`),label:`Find company profiles`,categories:[`companies`],hasManagedConnection:!0,allowsUserConnection:!0,lifecycle:null,description:`Search a filter-based, general-purpose company database.`,tags:[z.COMPANY_PROFILES],docPath:xD(GD),cost:{mode:`per_result`,creditsPerResult:.4},provider:`icypeas`,defaultPayload:{search_id:GD,connector:null,config:{limit:100,output_fields:{company_name:{alias:``,enabled:!0},icypeas_company_match:{alias:``,enabled:!0},company_website_url:{alias:``,enabled:!0},company_description:{alias:``,enabled:!0},company_industry:{alias:``,enabled:!0},company_profile_url:{alias:``,enabled:!0},headcount:{alias:``,enabled:!0},company_region:{alias:``,enabled:!0}},filters:{name:{include:[],exclude:[]},type:{include:[],exclude:[]},industry:{include:[],exclude:[]},location:{include:[],exclude:[]},headcount:{},urn:{include:[],exclude:[]},lid:{include:[],exclude:[]}}}}},aO=`people:profiles:clado@1`,oO=g(`name`),sO=g(`job_title`),cO=g(`company_name`),lO=g(`company_profile_url`),uO=g(`profile_url`),dO=g(`clado_person_match`),fO=r.object({search_id:r.literal(aO),connector:_.nullable().optional(),config:r.object({limit:I({sectionKey:`general`,path:`config.limit`,required:!0,max:100,min:1,groupPath:`config.general`,description:``,label:`Limit number of search results`}).default(20),output_fields:L(r.object({[oO.name]:M({fieldName:oO.name}),[sO.name]:M({fieldName:sO.name}),[lO.name]:M({fieldName:lO.name}),[cO.name]:M({fieldName:cO.name}),[uO.name]:M({fieldName:uO.name}),[dO.name]:M({fieldName:dO.name})})),filters:r.object({query:Ia({path:`config.filters.query`,sectionKey:`config.filters`,placeholder:`e.g. Software engineers in San Francisco`,groupPath:`config.filters.query`,rows:5,label:`Search description in natural language`,minLength:10,maxLength:2e4})})})}),pO={default:{input:[{fields:[{outputField:`profile_url`}]}]}},mO=class extends yD{searchId=aO;schema=fO;payload;constructor(e){super(),this.payload=this.validatePayload(e)}getRawOutputFields(){return{[oO.name]:this.catalogOutput(oO),[sO.name]:this.catalogOutput(sO),[cO.name]:this.catalogOutput(cO),[uO.name]:this.catalogOutput(uO),[lO.name]:this.catalogOutput(lO),[dO.name]:this.catalogOutput(dO)}}getConnectionsRequirements(){return[{provider:`clado`,rateLimitOperation:`clado_search_people`,rateLimitRatio:1,allowManagedConnection:!0}]}getDedupConfig(){return pO}},hO=fO,gO={searchId:aO,billableOperation:`people-profiles-clado`,baseSearch:Gt(`people:profiles:clado@1`),label:`Find people profiles with Clado`,categories:[`people`],hasManagedConnection:!0,allowsUserConnection:!0,lifecycle:{deprecatedOn:`2026-06-13`,replacedBy:`people:profiles:clado@2`},description:`Search through millions of LinkedIn profiles using natural language queries. This endpoint provides fast searching with AI-powered relevance matching.`,tags:[z.PEOPLE_PROFILES],docPath:`/resources/search-catalog/people:profiles:clado/1`,cost:{mode:`per_search`,creditsPerSearch:3},provider:`clado`,defaultPayload:{search_id:aO,connector:null,config:{limit:20,output_fields:{company_name:{enabled:!0,alias:``},company_profile_url:{enabled:!0,alias:``},job_title:{enabled:!0,alias:``},name:{enabled:!0,alias:``},profile_url:{enabled:!0,alias:``},clado_person_match:{enabled:!0,alias:``}},filters:{query:``}}}},_O=`people:profiles:clado@2`,vO=g(`name`),yO=g(`job_title`),bO=g(`company_name`),xO=g(`company_profile_url`),SO=g(`profile_url`),CO=g(`clado_person_match_v2`),wO=r.object({search_id:r.literal(_O),connector:_.nullable().optional(),config:r.object({limit:I({sectionKey:`general`,path:`config.limit`,required:!0,max:1e4,min:1,groupPath:`config.general`,description:``,label:`Limit number of search results`}).default(100),search_id:Fa({sectionKey:`general`,path:`config.search_id`,inputType:`text`,groupPath:`config.continue_existing_search`,label:`Search id`,description:`The id of the search you want to continue`}).default(``),offset:I({sectionKey:`general`,path:`config.offset`,required:!1,groupPath:`config.continue_existing_search`,label:`Offset`,max:1e5,min:1,description:`To continue the previous search, provide both the search_id and the last offset.`}),output_fields:L(r.object({[vO.name]:M({fieldName:vO.name}),[yO.name]:M({fieldName:yO.name}),[xO.name]:M({fieldName:xO.name}),[bO.name]:M({fieldName:bO.name}),[SO.name]:M({fieldName:SO.name}),[CO.name]:M({fieldName:CO.name})})),filters:r.object({query:Ia({path:`config.filters.query`,sectionKey:`config.filters`,placeholder:`e.g. Software engineers in San Francisco`,groupPath:`config.filters.query`,rows:5,label:`Search description in natural language`,minLength:0,maxLength:2e4}).default(``)}).optional()})}).check(e=>{let t=!!e.value.config.filters?.query,n=!!e.value.config.search_id&&!!e.value.config.offset;!t&&!n&&e.issues.push({code:`custom`,input:``,message:`Must define either 'query' or both 'searchId' AND 'offset'.`,path:[`config.filters.query`]})}),TO={default:{input:[{fields:[{outputField:`profile_url`}]}]}},EO=class extends yD{searchId=_O;schema=wO;payload;constructor(e){super(),this.payload=this.validatePayload(e)}getRawOutputFields(){return{[vO.name]:this.catalogOutput(vO),[yO.name]:this.catalogOutput(yO),[bO.name]:this.catalogOutput(bO),[SO.name]:this.catalogOutput(SO),[xO.name]:this.catalogOutput(xO),[CO.name]:this.catalogOutput(CO)}}getConnectionsRequirements(){return[{provider:`clado`,rateLimitOperation:`clado_search_people`,rateLimitRatio:1,allowManagedConnection:!0}]}getDedupConfig(){return TO}},DO=wO,OO={searchId:_O,billableOperation:`people-profiles-clado`,baseSearch:Gt(`people:profiles:clado@2`),label:`Find people profiles`,categories:[`deprecated`],hasManagedConnection:!0,allowsUserConnection:!0,lifecycle:{deprecatedOn:`2026-06-13`,replacedBy:`people:profiles:clado@2`},description:`Search a growing dataset with semantic queries.`,tags:[],docPath:`/resources/search-catalog/people:profiles:clado/1`,cost:{mode:`per_page`,creditsPerPage:3},provider:`clado`,defaultPayload:{search_id:_O,connector:null,config:{limit:100,search_id:``,offset:void 0,output_fields:{company_name:{enabled:!0,alias:``},company_profile_url:{enabled:!0,alias:``},job_title:{enabled:!0,alias:``},name:{enabled:!0,alias:``},profile_url:{enabled:!0,alias:``},clado_person_match_v2:{enabled:!0,alias:``}},filters:{query:``}}}},kO=`people:employees:leadmagic@1`,AO=g(`name`),jO=g(`job_title`),MO=g(`company_website_url`),NO=g(`company_name`),PO=r.object({search_id:r.literal(kO),connector:_.nullable().optional(),config:r.object({limit:I({sectionKey:`general`,max:500,min:1,required:!0,path:`config.limit`,groupPath:`config.general`,description:``,label:`Limit number of search results`}).default(50),output_fields:L(r.object({[AO.name]:M({fieldName:AO.name}),[NO.name]:M({fieldName:NO.name}),[MO.name]:M({fieldName:MO.name}),[jO.name]:M({fieldName:jO.name})})),filters:r.object({company_website_url:Fa({path:`config.filters.company_website_url`,sectionKey:`config.filters`,groupPath:`config.filters.website`,inputType:`text`,description:`URL of the employer company.`,label:`Company Website URL`})})})}),FO={default:{input:[{fields:[{outputField:MO.name}]}]}},IO=class extends yD{searchId=kO;schema=PO;payload;constructor(e){super(),this.payload=this.validatePayload(e)}getRawOutputFields(){return{[AO.name]:this.catalogOutput(AO),[jO.name]:this.catalogOutput(jO),[MO.name]:this.catalogOutput(MO),[NO.name]:this.catalogOutput(NO)}}getConnectionsRequirements(){return[{provider:`leadmagic`,rateLimitOperation:`leadmagic_employee_finder`,rateLimitRatio:1,allowManagedConnection:!0}]}getDedupConfig(){return FO}},LO=PO,RO={searchId:kO,billableOperation:`people-employees-leadmagic`,baseSearch:bD(`people:employees:leadmagic@1`),label:`Employee finder`,categories:[`people`],hasManagedConnection:!0,allowsUserConnection:!0,lifecycle:null,description:`Search for employees of a company.`,tags:[z.PEOPLE_PROFILES],docPath:xD(kO),cost:{mode:`per_result`,creditsPerResult:.05},provider:`leadmagic`,defaultPayload:{search_id:kO,connector:null,config:{limit:50,output_fields:{name:{alias:``,enabled:!0},job_title:{alias:``,enabled:!0},company_website_url:{alias:``,enabled:!0},company_name:{alias:``,enabled:!0}},filters:{company_website_url:``}}}},zO=`people:profiles:crustdata@1`,BO=g(`name`),VO=g(`company_website_url`),HO=g(`profile_url`),UO=g(`job_title`),WO=g(`crustdata_person_match`),GO=r.object({search_id:r.literal(zO),connector:_.nullable().optional(),config:r.object({limit:I({sectionKey:`general`,required:!0,path:`config.limit`,max:1e3,min:1,groupPath:`config.general`,description:``,label:`Limit number of results`}).default(100),cursor:Fa({sectionKey:`general`,path:`config.cursor`,groupPath:`config.general`,inputType:`text`,description:``,label:`Continue previous search from cursor`}),output_fields:L(r.object({[BO.name]:M({fieldName:BO.name}),[VO.name]:M({fieldName:VO.name}),[HO.name]:M({fieldName:HO.name}),[UO.name]:M({fieldName:UO.name}),[WO.name]:M({fieldName:WO.name})})),filters:r.object({locations:P({path:`config.filters.locations`,sectionKey:`config.filters`,label:`Locations`,disableSearch:!1,required:!1,optionsDef:h(`locations`),groupPath:`config.filters.general`}),profile_headline_keywords:Oa({path:`config.filters.profile_headline_keywords`,sectionKey:`config.filters`,label:`Headline contains keywords`,maxItems:100,groupPath:`config.filters.keywords`}),profile_summary_keywords:Oa({path:`config.filters.profile_summary_keywords`,sectionKey:`config.filters`,label:`Profile about section contains keywords`,maxItems:100,groupPath:`config.filters.keywords`}),profile_languages:N({path:`config.filters.profile_languages`,sectionKey:`config.filters`,label:`Profile languages`,disableSearch:!1,required:!1,options:p(`crustdata.person_profile_languages`),groupPath:`config.filters.profile`}),languages:N({path:`config.filters.languages`,sectionKey:`config.filters`,label:`Spoken languages`,disableSearch:!1,required:!1,options:p(`crustdata.person_profile_languages`),groupPath:`config.filters.profile`}),skills:P({path:`config.filters.skills`,sectionKey:`config.filters`,label:`Skills`,placeholder:`.NET, PMO, ...`,disableSearch:!1,required:!1,description:``,groupPath:`config.filters.skills`,optionsDef:h(`skills`)}),years_of_experience:N({path:`config.filters.years_of_experience`,sectionKey:`config.filters`,label:`Years of experience`,placeholder:`1 to 2 years`,disableSearch:!0,description:``,required:!1,options:p(`crustdata.years_of_experience`),groupPath:`config.filters.experience`}),current_seniority_levels:j({path:`config.filters.current_seniority_levels`,sectionKey:`config.filters`,disableSearch:!0,label:`Seniority`,optionsDef:m(`crustdata.person_seniority`),description:``,groupPath:`config.filters.experience`}),current_employers:k({path:`config.filters.current_employers`,sectionKey:`config.filters`,label:`Current employers`,description:``,maxItems:200,groupPath:`config.filters.experience`,suggestionsDef:h(`person.current_employer_names.crustdata`)}),current_employers_website_urls:k({path:`config.filters.current_employers_website_urls`,sectionKey:`config.filters`,label:`Current employer domains`,description:``,maxItems:200,groupPath:`config.filters.experience`}),current_job_titles:k({path:`config.filters.current_job_titles`,sectionKey:`config.filters`,label:`Current job titles`,description:``,order:1,groupPath:`config.filters.experience`,suggestionsDef:h(`titles`)}),current_employers_linkedin_industries:P({path:`config.filters.current_employers_linkedin_industries`,sectionKey:`config.filters`,label:`Current employers industries`,disableSearch:!1,required:!1,groupPath:`config.filters.experience`,description:``,optionsDef:h(`linkedin_industries.crustdata`)}),years_at_current_company:N({path:`config.filters.years_at_current_company`,sectionKey:`config.filters`,label:`Years at current company`,placeholder:`1 to 2 years`,disableSearch:!1,required:!1,groupPath:`config.filters.experience`,description:``,options:p(`crustdata.years_of_experience`)}),previous_employers_website_urls:k({path:`config.filters.previous_employers_website_urls`,sectionKey:`config.filters`,label:`Previous employer domains`,description:``,maxItems:200,groupPath:`config.filters.experience`}),previous_seniority_levels:j({path:`config.filters.previous_seniority_levels`,sectionKey:`config.filters`,label:`Previous seniority`,disableSearch:!0,optionsDef:m(`crustdata.person_seniority`),description:``,groupPath:`config.filters.experience`}),previous_employers:k({path:`config.filters.previous_employers`,sectionKey:`config.filters`,label:`Previous employer name`,description:``,maxItems:200,groupPath:`config.filters.experience`,suggestionsDef:h(`person.past_employer_names.crustdata`)}),previous_job_titles:k({path:`config.filters.previous_job_titles`,sectionKey:`config.filters`,label:`Current job titles`,description:``,groupPath:`config.filters.experience`,suggestionsDef:h(`titles`)}),previous_employers_linkedin_industries:P({path:`config.filters.previous_employers_linkedin_industries`,sectionKey:`config.filters`,label:`Previous employer industry`,disableSearch:!1,required:!1,groupPath:`config.filters.experience`,description:``,optionsDef:h(`linkedin_industries.crustdata`)}),certifications:k({path:`config.filters.certifications`,sectionKey:`config.filters`,label:`Certifications`,groupPath:`config.filters.certifications_honors`,description:``}),honors:k({path:`config.filters.honors`,sectionKey:`config.filters`,label:`Honors`,groupPath:`config.filters.certifications_honors`,description:``}),recently_changed_jobs:Pa({path:`config.filters.recently_changed_jobs`,sectionKey:`config.filters`,label:`Recently changed jobs`,description:``,defaultValue:null,groupPath:`config.filters.activities`}),fields_of_study:P({path:`config.filters.fields_of_study`,sectionKey:`config.filters`,label:`Fields of study`,description:``,disableSearch:!1,required:!1,groupPath:`config.filters.education`,optionsDef:h(`person.education_field_of_study.crustdata`)}),degree_names:P({path:`config.filters.degree_names`,sectionKey:`config.filters`,label:`Degree names`,description:``,disableSearch:!1,required:!1,groupPath:`config.filters.education`,optionsDef:h(`person.education_degree.crustdata`)}),school_names:P({path:`config.filters.school_names`,sectionKey:`config.filters`,label:`School names`,description:``,disableSearch:!1,required:!1,groupPath:`config.filters.education`,optionsDef:h(`schools`)}),current_school_names:P({path:`config.filters.current_school_names`,sectionKey:`config.filters`,label:`Currently enrolled at`,description:``,disableSearch:!1,required:!1,groupPath:`config.filters.education`,optionsDef:h(`schools`)}),extracurricular_activities:k({path:`config.filters.extracurricular_activities`,sectionKey:`config.filters`,label:`Extracurricular activities`,description:``,groupPath:`config.filters.education`,suggestionsDef:h(`person.education_activities.crustdata`)})}).check(e=>{_D(e.value)&&e.issues.push({code:`custom`,message:`You must set at least one filter.`,input:e.value})})})}),KO={default:{input:[{fields:[]}]}},qO=class extends yD{searchId=zO;schema=GO;payload;constructor(e){super(),this.payload=this.validatePayload(e)}getRawOutputFields(){return{[BO.name]:this.catalogOutput(BO),[VO.name]:this.catalogOutput(VO),[HO.name]:this.catalogOutput(HO),[UO.name]:this.catalogOutput(UO),[WO.name]:this.catalogOutput(WO)}}getConnectionsRequirements(){return[{provider:`crustdata`,rateLimitOperation:`crustdata_people_db_search`,rateLimitRatio:1,allowManagedConnection:!0}]}getDedupConfig(){return KO}},JO=GO,YO={searchId:zO,billableOperation:`people-profiles-crustdata`,baseSearch:bD(`people:profiles:crustdata@1`),label:`People search`,categories:[`people`],hasManagedConnection:!0,allowsUserConnection:!0,lifecycle:null,description:`Filter-based people search.`,tags:[z.PEOPLE_PROFILES],docPath:xD(zO),cost:{mode:`per_page`,creditsPerPage:5},provider:`crustdata`,defaultPayload:{search_id:zO,connector:null,config:{limit:100,cursor:``,output_fields:{name:{enabled:!0,alias:``},job_title:{enabled:!0,alias:``},profile_url:{enabled:!0,alias:``},company_website_url:{enabled:!0,alias:``},crustdata_person_match:{enabled:!0,alias:``}},filters:{profile_headline_keywords:[],languages:[],profile_summary_keywords:[],previous_job_titles:[],current_employers:[],current_school_names:[],years_at_current_company:[],certifications:[],honors:[],current_employers_linkedin_industries:[],current_employers_website_urls:[],previous_employers_website_urls:[],current_seniority_levels:{include:[],exclude:[]},previous_seniority_levels:{include:[],exclude:[]},degree_names:[],locations:[],profile_languages:[],recently_changed_jobs:null,extracurricular_activities:[],school_names:[],fields_of_study:[],previous_employers:[],current_job_titles:[],skills:[],years_of_experience:[],previous_employers_linkedin_industries:[]}}}},XO=`people:profiles:exa@1`,ZO=g(`name`),QO=g(`profile_url`),$O=g(`job_title`),ek=g(`company_name`),tk=g(`company_region`),nk=g(`exa_match_evaluation`),rk=r.object({search_id:r.literal(XO),connector:_.nullable().optional(),config:r.object({limit:I({path:`config.limit`,sectionKey:`general`,required:!0,max:100,min:1,groupPath:`config.general`,description:``,label:`Limit number of search results`}).default(10),output_fields:L(r.object({[ZO.name]:M({fieldName:ZO.name}),[QO.name]:M({fieldName:QO.name}),[$O.name]:M({fieldName:$O.name}),[ek.name]:M({fieldName:ek.name}),[tk.name]:M({fieldName:tk.name}),[nk.name]:M({fieldName:nk.name})})),filters:r.object({query:Ia({path:`config.filters.query`,sectionKey:`config.filters`,placeholder:`e.g. Software engineers in San Francisco`,groupPath:`config.filters.query`,rows:5,label:`Search description in natural language`,minLength:10,maxLength:2e4})})})}),ik={default:{input:[{fields:[]}]}},ak=class extends yD{searchId=XO;schema=rk;payload;constructor(e){super(),this.payload=this.validatePayload(e)}getRawOutputFields(){return{[ZO.name]:this.catalogOutput(ZO),[QO.name]:this.catalogOutput(QO),[$O.name]:this.catalogOutput($O),[ek.name]:this.catalogOutput(ek),[tk.name]:this.catalogOutput(tk),[nk.name]:this.catalogOutput(nk)}}getConnectionsRequirements(){return[{provider:`exa`,rateLimitOperation:`exa_websets`,rateLimitRatio:1,allowManagedConnection:!0}]}getDedupConfig(){return ik}},ok=rk,sk={searchId:XO,billableOperation:`people-profiles-exa`,baseSearch:bD(`people:profiles:exa@1`),label:`People finder (websets)`,categories:[`people`],hasManagedConnection:!0,allowsUserConnection:!0,lifecycle:null,description:`Semantic AI search for people profiles. This search can take several minutes.`,tags:[z.COMPANY_PROFILES],docPath:xD(XO),cost:{mode:`per_result`,creditsPerResult:2},provider:`exa`,defaultPayload:{search_id:XO,connector:null,config:{limit:10,output_fields:{name:{enabled:!0,alias:``},profile_url:{enabled:!0,alias:``},job_title:{enabled:!0,alias:``},company_name:{enabled:!0,alias:``},company_region:{enabled:!0,alias:``},exa_match_evaluation:{enabled:!1,alias:``}},filters:{query:``}}}},ck=`people:profiles:icypeas@1`,lk=g(`name`),uk=g(`job_title`),dk=g(`profile_headline`),fk=g(`company_website_url`),pk=g(`company_profile_url`),mk=g(`profile_url`),hk=g(`icypeas_person_match`),gk=r.object({search_id:r.literal(ck),connector:_.nullable().optional(),config:r.object({limit:I({path:`config.limit`,sectionKey:`general`,required:!0,max:5e4,min:1,groupPath:`config.general`,description:``,label:`Limit number of search results`}).default(100),output_fields:L(r.object({[lk.name]:M({fieldName:lk.name}),[uk.name]:M({fieldName:uk.name}),[dk.name]:M({fieldName:dk.name}),[fk.name]:M({fieldName:fk.name}),[pk.name]:M({fieldName:pk.name}),[mk.name]:M({fieldName:mk.name}),[hk.name]:M({fieldName:hk.name})})),filters:r.object({firstname:A({path:`config.filters.firstname`,sectionKey:`config.filters`,includeLabel:`First names to include`,excludeLabel:`First names to exclude`,description:``,placeholder:``,groupPath:`config.filters.personal_information`,maxItems:200}).optional(),lastname:A({path:`config.filters.lastname`,sectionKey:`config.filters`,includeLabel:`Last names to include`,excludeLabel:`Last names to exclude`,description:``,placeholder:``,groupPath:`config.filters.personal_information`,maxItems:200}).optional(),currentJobTitle:A({path:`config.filters.currentJobTitle`,sectionKey:`config.filters`,includeLabel:`Current job titles to include`,excludeLabel:`Current job titles to exclude`,description:``,placeholder:``,groupPath:`config.filters.job_information`,maxItems:200}).optional(),currentEmployersWebsiteUrls:A({groupPath:`config.filters.job_information`,path:`config.filters.currentEmployersWebsiteUrls`,sectionKey:`config.filters`,description:``,includeLabel:`Include current employer domains`,excludeLabel:`Exclude current employer domains`,maxItems:100}).optional(),pastEmployersWebsiteUrls:A({groupPath:`config.filters.job_information`,path:`config.filters.pastEmployersWebsiteUrls`,sectionKey:`config.filters`,description:``,includeLabel:`Past employers website URLs to include`,excludeLabel:`Past employers website URLs to exclude`,maxItems:100}).optional(),pastJobTitle:A({path:`config.filters.pastJobTitle`,sectionKey:`config.filters`,includeLabel:`Past job titles to include`,excludeLabel:`Past job titles to exclude`,description:``,placeholder:``,groupPath:`config.filters.job_information`,maxItems:200}).optional(),currentCompanyName:A({path:`config.filters.currentCompanyName`,sectionKey:`config.filters`,includeLabel:`Companies to include`,excludeLabel:`Companies to exclude`,description:``,placeholder:``,groupPath:`config.filters.company_information`,maxItems:200}).optional(),pastCompanyName:A({path:`config.filters.pastCompanyName`,sectionKey:`config.filters`,includeLabel:`Past employers to include`,excludeLabel:`Past employers to exclude`,description:``,placeholder:``,groupPath:`config.filters.company_information`,maxItems:200}).optional(),school:A({path:`config.filters.school`,sectionKey:`config.filters`,includeLabel:`Schools to include`,excludeLabel:`Schools to exclude`,label:``,description:``,placeholder:``,groupPath:`config.filters.education`,maxItems:200}).optional(),location:A({path:`config.filters.location`,sectionKey:`config.filters`,includeLabel:`Locations to include`,excludeLabel:`Locations to exclude`,description:`Filter by location`,placeholder:`e.g., US, FR, New York`,groupPath:`config.filters.geografic`,maxItems:200}).optional(),languages:A({path:`config.filters.languages`,sectionKey:`config.filters`,includeLabel:`Languages to include`,excludeLabel:`Languages to exclude`,description:`ex. EN, ES`,groupPath:`config.filters.languages`,maxItems:200}).optional(),skills:A({path:`config.filters.skills`,sectionKey:`config.filters`,includeLabel:`Skills to include`,excludeLabel:`Skills to exclude`,description:``,placeholder:``,groupPath:`config.filters.skills`,maxItems:200}).optional(),keyword:A({path:`config.filters.keyword`,sectionKey:`config.filters`,includeLabel:`Keywords to include`,excludeLabel:`Keywords to exclude`,description:``,placeholder:`CEO, Sales, Scrum`,groupPath:`config.filters.general_search`,maxItems:200}).optional()}).check(e=>{_D(e.value)&&e.issues.push({code:`custom`,message:`The filters object cannot be empty. You must set at least one filter.`,input:e.value})})})}),_k={default:{input:[{fields:[{outputField:`profile_url`}]}]}},vk=class extends yD{searchId=ck;schema=gk;payload;constructor(e){super(),this.payload=this.validatePayload(e)}getRawOutputFields(){return{[lk.name]:this.catalogOutput(lk),[uk.name]:this.catalogOutput(uk),[dk.name]:this.catalogOutput(dk),[fk.name]:this.catalogOutput(fk),[pk.name]:this.catalogOutput(pk),[mk.name]:this.catalogOutput(mk),[hk.name]:this.catalogOutput(hk)}}getConnectionsRequirements(){return[{provider:`icypeas`,rateLimitOperation:`icypeas_lead_database`,rateLimitRatio:1,allowManagedConnection:!0}]}getDedupConfig(){return _k}},yk=gk,bk={searchId:ck,billableOperation:`people-profiles-icypeas`,provider:`icypeas`,baseSearch:bD(ck),label:`Find people profiles`,categories:[`people`],hasManagedConnection:!0,allowsUserConnection:!0,lifecycle:null,description:`Search a filter-based, general-purpose lead database with people profiles.`,tags:[z.PEOPLE_PROFILES],docPath:xD(ck),cost:{mode:`per_result`,creditsPerResult:.4},defaultPayload:{search_id:ck,connector:null,config:{limit:100,output_fields:{company_profile_url:{enabled:!0,alias:``},company_website_url:{enabled:!0,alias:``},job_title:{enabled:!0,alias:``},name:{enabled:!0,alias:``},profile_headline:{enabled:!0,alias:``},profile_url:{enabled:!0,alias:``},icypeas_person_match:{enabled:!0,alias:``}},filters:{currentCompanyName:{include:[],exclude:[]},currentEmployersWebsiteUrls:{include:[],exclude:[]},pastEmployersWebsiteUrls:{include:[],exclude:[]},currentJobTitle:{include:[],exclude:[]},firstname:{include:[],exclude:[]},keyword:{include:[],exclude:[]},languages:{include:[],exclude:[]},lastname:{include:[],exclude:[]},location:{include:[],exclude:[]},pastCompanyName:{include:[],exclude:[]},pastJobTitle:{include:[],exclude:[]},school:{include:[],exclude:[]},skills:{include:[],exclude:[]}}}}},xk={"people:profiles:crustdata@1":qO,"companies:profiles:crustdata@1":AD,"companies:profiles:exa@1":HD,"people:profiles:exa@1":ak,"people:profiles:icypeas@1":vk,"companies:profiles:icypeas@1":nO,"people:employees:leadmagic@1":IO,"people:profiles:clado@1":mO,"people:profiles:clado@2":EO},Sk={"people:profiles:crustdata@1":JO,"companies:profiles:crustdata@1":jD,"companies:profiles:exa@1":UD,"people:profiles:exa@1":ok,"people:profiles:icypeas@1":yk,"companies:profiles:icypeas@1":rO,"people:employees:leadmagic@1":LO,"people:profiles:clado@1":hO,"people:profiles:clado@2":DO},Ck={"people:profiles:crustdata@1":YO,"companies:profiles:crustdata@1":MD,"companies:profiles:exa@1":WD,"people:profiles:exa@1":sk,"people:profiles:icypeas@1":bk,"companies:profiles:icypeas@1":iO,"people:employees:leadmagic@1":RO,"people:profiles:clado@1":gO,"people:profiles:clado@2":OO};function wk(e){return xk[e]}function Tk(e){return Sk[e]}function Ek(e){return Ck[e].defaultPayload}const Dk=t.discriminatedUnion(`search_id`,Object.values(Sk).map(e=>e)),Ok=t.preprocess(e=>{if(!e||typeof e!=`object`||!(`search_id`in e))return e;let t=Ek(e.search_id);return t?{...e,config:Ba(e?.config||{},t.config)}:e},Dk);function kk(e){return Object.keys(Ck[e].defaultPayload.config.output_fields)}const Ak=Yn,jk=t.object({value:In,status:Fn,type:Nn.optional(),format:Qn.nullable().optional(),resolved_by:ir.nullable().optional(),widgets:Jn.optional()}),Mk=t.record(t.string(),jk.nullable()),Nk=t.object({search:t.object({ref:gD}),status:t.enum([`pending`,`processing`,`failed`,`completed`]),errors:t.array(Ak),meta:t.object({providers:t.object({clado:t.object({pagination:t.object({search_id:t.string().optional(),offset:t.number().optional()})}).optional(),crustdata:t.object({pagination:t.object({cursor:t.string().nullable()})}).optional()}).optional()})}),Pk=t.object({id:t.string(),status:t.enum([`completed`,`failed`,`pending`,`processing`]),results:t.array(Mk),search_statuses:t.array(Nk),organizationId:t.string()}).openapi(`SearchesResponseSchema`),Fk=t.object({environment:t.enum([`production`,`sandbox`]).default(`production`),widgets:t.object({enabled:t.boolean().default(!1)}).default({enabled:!1})}),Ik=Fk.extend({dedup:t.object({strategy:t.enum([`default`]).nullable()}).default({strategy:null})}),Lk=t.object({config:Ik.default({dedup:{strategy:`default`},environment:`production`,widgets:{enabled:!1}}),searches:t.array(Ok)}).openapi(`SearchesRequestSchema`);function Rk(e){let t=e.split(`@`)[1];if(!t)throw Error(`No search version found`);return Number(t)}function zk(){let e={};for(let t of Object.values(Ck)){let{baseSearch:n}=t;e[n]??=[],e[n].push(t)}return Object.entries(e).forEach(([t,n])=>{e[t]=n.sort((e,t)=>{let n=Rk(e.searchId);return Rk(t.searchId)-n})}),e}const Bk=zk();function Vk(e){let t=[];for(let[n,r]of Object.entries(Bk)){let i=r[0];if(!i)throw Error(`Found empty entry`);i.lifecycle?.deprecatedOn&&e!==`deprecated`||(e===null||i.categories.includes(e))&&t.push({...i,baseSearch:n,latestVersion:Rk(i.searchId)})}return t}function Hk(e,t){let n=e.filter(e=>t===null?!0:e.categories.some(e=>e===t)),r={},i={},a={};for(let e of n){if(e.lifecycle&&e.lifecycle.deprecatedOn){i.Deprecated??=[],i.Deprecated.push(e.searchId);continue}a[e.provider]??=[],a[e.provider].push(e.searchId);for(let t of kk(e.searchId))r[t]??=[],r[t].push(e.searchId);for(let t of e.tags)i[t]??=[],i[t].push(e.searchId)}return{searchIdsByOutputField:r,searchIdsByTag:i,searchIdsByProvider:a,sortedTagEntries:Object.entries(i).sort((e,t)=>e[0].localeCompare(t[0])),sortedOutputFieldEntries:Object.entries(r).sort((e,t)=>e[0].localeCompare(t[0])),sortedProviderEntries:Object.entries(a).sort((e,t)=>e[0].localeCompare(t[0])),searchEntriesByBaseSearch:Bk}}function Uk(e){return Ck[e]}function Wk(e){let t=Uk(e);return{[t.provider]:t.cost.mode===`per_result`?t.cost.creditsPerResult:t.cost.mode===`per_search`?t.cost.creditsPerSearch:t.cost.creditsPerPage}}function Gk(e){return e.map(e=>({public_id:`sandbox-${e}`,provider:e}))}function Kk(e){return Gk(ET(e).allowedUserConnectionProviders)}function qk(e){return Gk([dT(e).provider])}function Jk(e){return Gk([Uk(e).provider])}const Yk=[{id:`people`,label:`People`,color:`#8B7DFF`,order:0},{id:`companies`,label:`Companies`,color:`#10B981`,order:1},{id:`data`,label:`Data`,color:`#F59E0B`,order:2},{id:`deprecated`,label:`Deprecated`,color:`#94A3B8`,order:3}],Xk=new Map(Yk.map(e=>[e.id,e]));function Zk(e){return Xk.get(e)}function Qk(){return Yk}const $k={"people:profiles:amplemarket@1":[{search_id:`people:profiles:amplemarket@1`,config:{page_number:1,limit:50,filters:{current_employer_names:{include:[],exclude:[]},current_departments:[],current_employer_locations:{include:[],exclude:[]},person_names:[],current_employer_founded_year:{min:null,max:null},current_employer_estimated_revenue:[],current_employer_investors:[],current_employer_open_position_titles:[],current_job_functions:[],current_locations:{include:[`Berlin`],exclude:[]},current_employer_linkedin_industries:[],current_employer_domains:{include:[],exclude:[]},current_seniority_levels:[],school_names:{include:[],exclude:[]},current_job_titles:[]}}}],"companies:profiles:amplemarket@1":[{search_id:`companies:profiles:amplemarket@1`,config:{page_number:1,limit:50,filters:{company_industries:{include:[],exclude:[]},company_names:{include:[`Microsoft`],exclude:[]},company_profile_urls:{include:[],exclude:[]},company_types:[],company_domains:{include:[],exclude:[]},customer_types:[],headcount_growth_l6m_in_percent:{min:null,max:null},founded_year:{min:null,max:null},revenue_groups:[],investors:[],keywords:{include:[],exclude:[]},open_position_titles:[],headcount:[],hq_locations:{include:[],exclude:[]}}}}],"people:profiles:crustdata@1":[{search_id:`people:profiles:crustdata@1`,config:{cursor:``,limit:10,filters:{locations:{include:[`Berlin`,`Germany`],exclude:[]},profile_headline_keywords:{include:[`Marketing`],exclude:[]},profile_summary_keywords:{include:[],exclude:[]},profile_languages:{include:[`English`],exclude:[]},languages:{include:[],exclude:[]},skills:{include:[`Python`,`Data Analysis`],exclude:[]},years_of_experience:[`1 to 2 years`],current_seniority_levels:{include:[`Senior`],exclude:[]},current_employers:{include:[],exclude:[]},current_employers_website_urls:{include:[],exclude:[]},current_job_titles:{include:[`Software Engineer`],exclude:[]},current_employers_linkedin_industries:{include:[],exclude:[]},years_at_current_company:[`1 to 2 years`],previous_seniority_levels:{include:[],exclude:[]},previous_employers:{include:[],exclude:[]},previous_employers_website_urls:{include:[],exclude:[]},previous_employers_linkedin_industries:{include:[],exclude:[]},previous_job_titles:{include:[],exclude:[]},certifications:{include:[],exclude:[]},honors:{include:[],exclude:[]},recently_changed_jobs:!1,fields_of_study:{include:[],exclude:[]},degree_names:{include:[],exclude:[]},school_names:{include:[],exclude:[]},current_school_names:{include:[],exclude:[]},extracurricular_activities:{include:[],exclude:[]}}}}],"companies:profiles:crustdata@1":[{search_id:`companies:profiles:crustdata@1`,config:{cursor:``,limit:10,filters:{hq_locations:{include:[`San Francisco, CA`],exclude:[]},crunchbase_categories:{include:[`Artificial Intelligence`],exclude:[]},crunchbase_investors:{include:[],exclude:[]},tracxn_investors:{include:[],exclude:[]},company_types:{include:[],exclude:[]},linkedin_industries:{include:[`Technology`],exclude:[]},markets:{include:[],exclude:[]},linkedin_categories:{include:[],exclude:[]},headcount:{include:[],exclude:[]},headcount_growth_l6m_in_percent:[],revenue_in_usd:{from:1e4,to:1e6},last_funding_type:{include:[],exclude:[]},last_funding_amount:{from:null,to:null},number_of_followers:[],follower_growth_l6m_in_percent:[],profile_summary_keywords:{include:[],exclude:[]},competitor_domains:{include:[`google.com`],exclude:[]}}}}],"people:profiles:amplemarket@2":[{search_id:`people:profiles:amplemarket@2`,config:{page_number:1,limit:50,filters:{current_employer_names:{include:[],exclude:[]},current_departments:[],current_employer_locations:{include:[],exclude:[]},person_names:[],current_employer_founded_year:{min:null,max:null},current_employer_estimated_revenue:[],current_employer_investors:[],current_employer_open_position_titles:[],current_job_functions:[],current_locations:{include:[`Berlin`],exclude:[]},current_employer_linkedin_industries:[],current_employer_domains:{include:[],exclude:[]},current_seniority_levels:[],school_names:{include:[],exclude:[]},current_job_titles:[]}}}],"companies:profiles:amplemarket@2":[{search_id:`companies:profiles:amplemarket@2`,config:{page_number:1,limit:50,filters:{company_industries:{include:[],exclude:[]},company_names:{include:[`Microsoft`],exclude:[]},company_profile_urls:{include:[],exclude:[]},company_types:[],company_domains:{include:[],exclude:[]},customer_types:[],headcount_growth_l6m_in_percent:{min:null,max:null},founded_year:{min:null,max:null},revenue_groups:[],investors:[],keywords:{include:[],exclude:[]},open_position_titles:[],headcount:[],hq_locations:{include:[],exclude:[]}}}}],"people:profiles:crustdata@2":[{search_id:`people:profiles:crustdata@2`,config:{cursor:``,limit:10,filters:{locations:{include:[`Berlin`,`Germany`],exclude:[]},profile_headline_keywords:{include:[`Marketing`],exclude:[]},profile_summary_keywords:{include:[],exclude:[]},profile_languages:{include:[`English`],exclude:[]},languages:{include:[],exclude:[]},skills:{include:[`Python`,`Data Analysis`],exclude:[]},years_of_experience:[`1 to 2 years`],current_seniority_levels:{include:[`Senior`],exclude:[]},current_employer_names:{include:[],exclude:[]},current_employer_domains:{include:[],exclude:[]},current_job_titles:{include:[`Software Engineer`],exclude:[]},current_employer_industries:{include:[],exclude:[]},years_at_current_company:[`1 to 2 years`],previous_seniority_levels:{include:[],exclude:[]},previous_employer_names:{include:[],exclude:[]},previous_employer_domains:{include:[],exclude:[]},previous_employer_industries:{include:[],exclude:[]},previous_job_titles:{include:[],exclude:[]},certifications:{include:[],exclude:[]},honors:{include:[],exclude:[]},recently_changed_jobs:!1,fields_of_study:{include:[],exclude:[]},degree_names:{include:[],exclude:[]},school_names:{include:[],exclude:[]},current_school_names:{include:[],exclude:[]},extracurricular_activities:{include:[],exclude:[]}}}}],"companies:profiles:crustdata@2":[{search_id:`companies:profiles:crustdata@2`,config:{cursor:``,limit:10,filters:{hq_locations:{include:[`San Francisco, CA`],exclude:[]},crunchbase_categories:{include:[`Artificial Intelligence`],exclude:[]},crunchbase_investors:{include:[],exclude:[]},tracxn_investors:{include:[],exclude:[]},company_types:{include:[],exclude:[]},linkedin_industries:{include:[`Technology`],exclude:[]},markets:{include:[],exclude:[]},linkedin_categories:{include:[],exclude:[]},headcount:{include:[],exclude:[]},headcount_growth_l6m_in_percent:[],revenue_in_usd:{from:1e4,to:1e6},last_funding_type:{include:[],exclude:[]},last_funding_amount:{from:null,to:null},number_of_followers:[],follower_growth_l6m_in_percent:[],profile_summary_keywords:{include:[],exclude:[]},competitor_domains:{include:[`google.com`],exclude:[]}}}}],"companies:entitysearch:parallel@1":[{search_id:`companies:entitysearch:parallel@1`,config:{objective:`AI startups in Europe that raised a Series A in 2024`,limit:100}}],"people:entitysearch:parallel@1":[{search_id:`people:entitysearch:parallel@1`,config:{objective:`Heads of Engineering at Series B fintech companies in the US`,limit:100}}],"people:eventguests:luma@1":[{search_id:`people:eventguests:luma@1`,connector:{strategy:`first`,connections:[]},config:{limit:100,cursor:``,output_fields:{name:{enabled:!0,alias:``},email:{enabled:!0,alias:``},luma_id:{enabled:!0,alias:``},registered_at:{enabled:!0,alias:``},luma_event_guest_match:{enabled:!0,alias:``}},filters:{event_id:`evt-sandbox-1`,approval_status:`approved`}}}]};function eA(e,t,n){if(t==null)return{};try{let r=_n(e,n)?.getStaticWidgets?.(t),i=SE(n,t);return IS(r||{},{display_value:i?{label:i}:void 0})}catch(e){return console.warn(`Failed to generate UI props: ${e}`),{}}}function tA(e){if(e instanceof Z)return e;let t=e.search_id,n=Qw(t);if(!n)throw Error(`Unknown pipe: ${e.search_id}`);return new n(tT.parse(e))}var nA=class extends bg{constructor(e){super(e.map(e=>e.message).join(`, `)||`Unknown`),this.errors=e}};function rA(e){let t=[];for(let n of e){if(n instanceof yD){t.push(n);continue}let e=n.search_id,r=wk(e);if(!r)throw Error(`Unknown pipe: ${n.search_id}`);let i=new r(Ok.parse(n));t.push(i)}return t}function iA(e){try{return rA(e.searches)}catch(e){throw e instanceof nA?e:new X([Y.ValidationFailed({error:e})])}}const aA=/[\\^$.+()|[\]{}]/g,oA=new Map;function sA(e){let t=oA.get(e);if(t)return t;let n=``;for(let t=0;t<e.length;t++){let r=e[t];r===`*`?n+=`.*`:r===`?`?n+=`.`:n+=r.replace(aA,`\\$&`)}let r=RegExp(`^${n}$`);return oA.set(e,r),r}function cA(e,t){return sA(t).test(e)}function lA(e,t){if(!t||t.length===0)return!1;for(let n of t)if(cA(e,n))return!0;return!1}function uA(e,t){if(!t)return!0;let{includes:n,excludes:r}=t;return!(n&&n.length>0&&!lA(e,n)||r&&r.length>0&&lA(e,r))}function dA(e,t){return uA(e,t?.providers)}function fA(e,t){if(!t)return!0;if(!uA(e,t.pipes))return!1;if(t.providers){let n=AT(e);if(n.length===0)return!0;if(!n.some(e=>dA(e,t)))return!1}return!0}function pA(e,t,n){return t?!(!uA(e,t.searches)||n!==void 0&&!dA(n,t)):!0}function mA(e,t,n){return t?!(!uA(e,t.searchesMulti)||n!==void 0&&!dA(n,t)):!0}function hA(e,t){return t?e.filter(e=>fA(e.pipeId,t)):e.slice()}function gA(e,t){return t?e.filter(e=>pA(e.searchId,t,e.provider)):e.slice()}function _A(e,t){return t?e.filter(e=>mA(e.searchId,t,e.provider)):e.slice()}function vA(e){let t=Object.values(e.billableOperations).map(e=>e.allowManagedConnection?e.credits.default:0);return Math.min(...t)}function yA(e){return Math.min(e.cost.mode===`per_result`?e.cost.creditsPerResult:e.cost.mode===`per_search`?e.cost.creditsPerSearch:e.cost.creditsPerPage)}function bA(e){return e.cost.credits.default}function xA(e){let t=bE(e);if(!t)return``;try{return te(t)||new URL(t).hostname}catch{return``}}const SA=[`http://`,`https://`,`mailto:`],CA=new Set([`*`,`_`,`~`,"`",`[`,`]`,`(`,`)`,`\\`]);function wA(e){return e?TA(e):[]}function TA(e){let t=[],n=``,r=0,i=()=>{n&&=(t.push({type:`text`,value:n}),``)};for(;r<e.length;){let a=e[r],o=e[r+1];if(a===`\\`&&o!==void 0&&CA.has(o)){n+=o,r+=2;continue}if(a==="`"){let n=EA(e,r+1,"`");if(n>-1){i(),t.push({type:`code`,value:e.slice(r+1,n)}),r=n+1;continue}}if(a===`*`&&o===`*`){let n=EA(e,r+2,`**`);if(n>r+2){i(),t.push({type:`strong`,children:TA(e.slice(r+2,n))}),r=n+2;continue}}if(a===`~`&&o===`~`){let n=EA(e,r+2,`~~`);if(n>r+2){i(),t.push({type:`del`,children:TA(e.slice(r+2,n))}),r=n+2;continue}}if(a===`*`&&o!==`*`){let n=EA(e,r+1,`*`);if(n>r+1){i(),t.push({type:`em`,children:TA(e.slice(r+1,n))}),r=n+1;continue}}if(a===`[`){let n=EA(e,r+1,`]`);if(n>-1&&e[n+1]===`(`){let a=EA(e,n+2,`)`);if(a>-1){let o=e.slice(n+2,a);if(SA.some(e=>o.startsWith(e))){i(),t.push({type:`link`,href:o,children:TA(e.slice(r+1,n))}),r=a+1;continue}}}}n+=a,r+=1}return i(),t}function EA(e,t,n){let r=t;for(;r<e.length;){if(e[r]===`\\`&&r+1<e.length){r+=2;continue}if(DA(e,r,n))return r;r+=1}return-1}function DA(e,t,n){if(t+n.length>e.length)return!1;for(let r=0;r<n.length;r++)if(e[t+r]!==n[r])return!1;return!0}export{fi as AI_MODELS,pi as AI_MODEL_CATALOG,lr as CatalogSchemaRefSchema,pr as ConditionOperatorsSchema,or as ExpandedFieldValueSchema,Hh as FIELD_PLACEHOLDERS,$n as FieldAnnotationSchema,AE as FieldAnnotations,er as FieldAnnotationsSchema,Dn as FieldNameSchema,Xn as FieldReasonSchema,In as FieldValueSchema,tE as FormStoreSchema,uE as HIGH_VOLUME_PRICING_MIN_CREDITS,fr as JSONExtractSchema,Ln as JSONMetaSchema,yr as NoConnectorSchema,_ as OptionalConnectorSchema,An as PIPE_IDS,sT as PaginationTypeSchema,Ub as PersonWorkemailWaterfall1Entry,Hb as PersonWorkemailWaterfall1PayloadSchema,Vb as PersonWorkemailWaterfall1PipeClass,H as Pipe,bg as Pipe0Error,jn as PipeIdSchema,wT as PipePayloadSchema,Cr as PipeRunIfSchema,X as PipelineValidationError,kn as PipesEnvironmentSchema,Yn as PipesErrorSchema,ur as PipesFieldDefinitionSchema,dr as PipesFieldDefinitionsSchema,sr as PipesInputSchema,IT as PipesRequestConfigSchema,LT as PipesRequestSchema,FT as PipesResponseSchema,TT as ProcessedPipePayloadSchema,tT as ProcessedSearchPayloadSchema,Ok as ProcessedSearchesPayloadSchema,On as ProviderNameSchema,Zn as RECORD_FIELD_FORMATS,Mn as RECORD_FIELD_TYPES,mr as RUN_IF_OPERATOR_LABELS,gr as RUN_IF_STATUS_OPERATORS,hr as RUN_IF_VALUE_OPERATORS,rr as RecordClaimedBySchema,Qn as RecordFieldFormatSchema,ar as RecordFieldSchema,Fn as RecordFieldStatusSchema,Nn as RecordFieldTypeSchema,Pn as RecordIdSchema,ir as RecordResolvedBySchema,cr as RecordSchema,yg as RequestValidationError,vr as RequiredConnectorSchema,xr as RunIfStatusOperatorsSchema,Sr as RunIfStatusValueSchema,br as RunIfValueOperatorsSchema,hD as SEARCHES_IDS,vS as SEARCH_IDS,Z as Search,rT as SearchErrorSchema,yS as SearchIdSchema,$w as SearchPayloadSchema,nT as SearchRequestSchema,cT as SearchResponseSchema,iT as SearchResultFieldSchema,aT as SearchResultSchema,Ak as SearchesErrorSchema,gD as SearchesIdSchema,Dk as SearchesPayloadSchema,Fk as SearchesRequestBaseConfigSchema,Lk as SearchesRequestSchema,Pk as SearchesResponseSchema,jk as SearchesResultFieldSchema,Mk as SearchesResultSchema,yD as SearchesSearch,Nk as SearchesStatusSchema,yd as TYPES_TO_FORMATS,QT as WidgetsByKindSchema,Jn as WidgetsSchema,Ua as all,Wr as analyzeLiquidTemplate,wn as and,V as any,MT as assertUniqueBillableOperations,h as autocomplete,mi as buildAiModelBillableOperations,ME as buildDependencyGraph,hh as buildInputRequirementFromTemplates,G as catalogInput,Ya as cleanObject,bE as cleanUrl,yE as cleanWebsiteUrl,_h as collectConstantReferencesFromTemplates,HT as collectPipeContextSelectFields,Ka as collectRequirementFields,JT as collectSearchContextSelectFields,gh as collectSecretReferencesFromTemplates,sA as compilePattern,Ba as configDefaults,Yi as convertIntermediateFieldsIntoGroups,Xi as defaultSectionMap,_g as describeRequirement,FS as entityLogoFavicon,PS as entityLogoProfessionalProfileUrl,$i as extractFormMetadata,B as field,gn as fieldBehaviorCatalog,hn as fieldCatalog,gg as fieldNameStr,CE as fieldTypeFromValue,lD as fieldsToObject,hA as filterPipeEntries,gA as filterSearchEntries,_A as filterSearchesEntries,hi as getAiModelBillingKey,_i as getAiModelConnectionRequirements,gi as getAiModelProviders,vi as getAllAiModelProviders,U as getBasePipeName,bT as getDefaultOutputFields,AT as getDefaultPipeProviders,mT as getDefaultSearchOutputFields,kk as getDefaultSearchesOutputFields,cE as getDependentPipeNamesForInputProperty,lE as getDependentPipeNamesForPipe,xA as getDomain,TE as getExpansionState,MS as getFaviconUrlGoogle,g as getField,_n as getFieldBehavior,hd as getFieldDisplayLabel,DE as getFieldWidgets,pT as getInitialSearchTableData,Vk as getInitialSearchesTableData,NT as getInitialTableData,$a as getInputHash,bi as getJsonMetaForFieldDef,bA as getLoweestSearchCreditAmount,yA as getLoweestSearchesCreditAmount,vA as getLowestPipeCreditAmount,En as getOutputFieldInfoFromDef,DT as getPipeBillableOperationDef,aE as getPipeCategoryEntries,iE as getPipeCategoryEntry,xT as getPipeClass,Qa as getPipeConfigHash,ST as getPipeDefaultPayload,W as getPipeDocsURI,ET as getPipeEntry,sE as getPipeInstances,UT as getPipePayloadFormConfig,CT as getPipePayloadSchema,OT as getPipeVersion,q as getProviderBillableOperation,eo as getProviderCreditsFromBillableOperations,mD as getProviderEntry,xn as getReadableFieldStatus,Gk as getSandboxConnections,Kk as getSandboxConnectionsForPipe,qk as getSandboxConnectionsForSearch,Jk as getSandboxConnectionsForSearches,Qk as getSearchCategoryEntries,Zk as getSearchCategoryEntry,Qw as getSearchClass,eT as getSearchDefaultPayload,dT as getSearchEntry,eA as getSearchFieldWidgets,tA as getSearchInstance,qT as getSearchPayloadFormConfig,oT as getSearchPayloadSchema,hT as getSearchTableDataAggregates,lT as getSearchVersion,wk as getSearchesClass,Ek as getSearchesDefaultPayload,Uk as getSearchesEntry,OE as getSearchesFieldWidgets,rA as getSearchesInstances,Tk as getSearchesPayloadSchema,Hk as getSearchesTableDataAggregates,Rk as getSearchesVersion,RT as getStartingCostPerPipesProvider,gT as getStartingCostPerSearchProvider,Wk as getStartingCostPerSearchesProvider,PT as getTableDataAggregates,fE as getTier,EE as getUnexpandedValue,NS as ifDefined,R as inputFields,fD as inputFromRecord,dD as inputFromRecordArr,uD as inputFromRecords,YT as inputGuards,yn as isCatalogField,Wt as isEmptyValue,vn as isFieldName,hE as isHighVolumeEligible,fA as isPipeAllowed,dA as isProviderAllowed,Ga as isRequirementMet,qa as isRequirementSatisfiedByRecord,pA as isSearchAllowed,mA as isSearchesAllowed,ci as joinConnectionString,gE as listHighVolumeEligibleOperations,mE as listTiers,no as markRecordFieldAsComplete,ao as markRecordFieldAsFailed,io as markRecordFieldAsNoResult,ro as markRecordFieldAsPending,so as markRecordFieldAsProcessing,oo as markRecordFieldAsSkipped,lA as matchesAny,cA as matchesPattern,IS as mergeWidgets,w as noConnectorInput,Wa as optional,C as optionalConnectorInput,Tn as or,L as outputFields,Ur as parseLiquidTemplate,Lr as parseOutputTagArgs,ZE as parseRecordValueOrError,wA as parseRichText,yT as pipeCatalog,nE as pipeCategoryCatalog,_T as pipeClassCatalog,vT as pipePayloadSchemaCatalog,ga as pipesAsyncIncludeExcludeSelectInput,Da as pipesContextSelectInput,va as pipesDateRangeInput,la as pipesFieldsSelectInput,ua as pipesIncludeExcludeInput,ha as pipesIncludeExcludeSelectInput,T as pipesInputField,wa as pipesIntInput,Oi as pipesJsonExtractionInput,Ea as pipesJsonSchemaField,ma as pipesKeyValueListInput,Sa as pipesLLMSelectInput,da as pipesMultiCreateInput,Ca as pipesMultiSelectInput,Ta as pipesNumberInput,D as pipesOptionalBooleanInput,fa as pipesOrderedMultiCreateInput,O as pipesOutputField,v as pipesPayloadRegistry,ta as pipesPromptInput,E as pipesProviderInput,_a as pipesRangeInput,x as pipesRunIfInput,xa as pipesSelectInput,oE as pipesSnippetCatalog,pa as pipesTaggedOrderedMultiCreateInput,S as pipesTaggedTextInput,na as pipesTemplateInput,ya as pipesTextInput,ba as pipesTextareaInput,J as placeholder,pD as processInputObjects,wr as providerCatalog,K as rateLimitRatioFallingProgression,Vr as renderLiquidTemplate,Hr as renderLiquidTemplateSync,ia as requiredConnectorInput,to as requirementToInputFields,vg as requirementUnmetMessage,Sn as requiresConnection,Cn as requiresField,Zw as searchCatalog,Yk as searchCategoryCatalog,Yw as searchClassCatalog,Xw as searchPayloadSchemaCatalog,$k as searchSnippetCatalog,F as searchesAsyncIncludeExcludeSelectInput,P as searchesAsyncMultiSelectInput,Ck as searchesCatalog,xk as searchesClassCatalog,Ra as searchesContextSelectInput,Ma as searchesDateRangeInput,Aa as searchesExactRangeInput,A as searchesIncludeExcludeInput,j as searchesIncludeExcludeSelectInput,I as searchesIntInput,ka as searchesMinMaxIntInput,k as searchesMultiCreateInput,N as searchesMultiSelectInput,za as searchesNumberField,Na as searchesOptionalBooleanInput,sa as searchesOptionalConnectorInput,Pa as searchesOptionalNullableBooleanInput,Oa as searchesOrderedMultiCreateInput,M as searchesOutputField,y as searchesPayloadRegistry,Sk as searchesPayloadSchemaCatalog,ja as searchesRangeInput,oa as searchesRequiredConnectorInput,La as searchesSelectInput,Fa as searchesTextInput,Ia as searchesTextareaField,vd as sortObjectKeys,kT as sortPipeCatalogByBasePipe,uT as sortSearchCatalogByBaseSearch,zk as sortSearchesCatalogByBaseSearch,si as splitConnectionString,m as staticAutocomplete,p as staticOptions,_d as stringify,gd as testPrint,pE as tierAtOrBelow,eD as transformIntoResponse,NE as validatePipesOrError,iA as validateSearches,Y as validationErrorMessages};