@pipe0/base 0.4.4 β 0.4.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +8 -0
- package/dist/index.d.mts +161 -69
- package/dist/index.mjs +3 -3
- package/package.json +2 -2
package/dist/index.mjs
CHANGED
|
@@ -64,13 +64,13 @@ From the current S24 batch.
|
|
|
64
64
|
How do you...`,`Y Combinator's most popular startups.
|
|
65
65
|
From the current S24 batch.
|
|
66
66
|
|
|
67
|
-
How do you...`]}},crustdata_post_list:{label:`Crustdata Post list`,type:`json`,format:`json_list_string`,description:`Rich JSON post list`,jsonMeta:{zodSchema:mt,exampleValue:ht}},role_finder_match:{label:`Role finder match`,type:`json`,format:`json_object`,description:`Result of a role finder operation`,jsonMeta:{zodSchema:Zt,exampleValue:Qt}},amplemarket_person_match:{label:`Person match`,type:`json`,format:`json_object`,description:`Person match object as returned by Amplemarket`,jsonMeta:{zodSchema:Le,exampleValue:Re}},amplemarket_company_match:{label:`Company match`,type:`json`,format:`json_object`,description:`Company match object as returned by Amplemarket`,jsonMeta:{zodSchema:Fe,exampleValue:Ie}},companyenrich_matches:{label:`CompanyEnrich matches`,type:`json`,format:`json_object`,description:`CompanyEnrich response list.`,jsonMeta:{zodSchema:r.array(it),exampleValue:[at]}},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:Nt,zodSchema:Mt}},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:Yt,exampleValue:Xt},format:`json_object`},professional_profile_url:{label:`LinkedIn Profile URL`,type:`string`,format:`profile_url`,description:`A person's LinkedIn profile URL.`,jsonMeta:null}},yn={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=hn(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=_n(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=_n(e);return{display_value:t?{label:t}:void 0,icon:{key:`linkedin`}}}},company_profile_url:{getStaticWidgets(e){let t=_n(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:Pe.linkedin}}}},crustdata_post_list:{getStaticWidgets(e){return{entity_logo:{entity:`LinkedIn`,image_url:Pe.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{...vn[e],name:e}}function bn(e,t){if(Sn(e,t))return yn[e]}function xn(e){return e in vn}function Sn(e,t){return e in vn?vn[e].format===t:!1}const Cn={completed:`Completed`,failed:`Failed`,no_result:`No result`,pending:`Pending`,processing:`Processing`,queued:`Queued`,skipped:`Skipped`};function wn(e){return Cn[e]}const Tn=(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},En=(e,t)=>n=>{let r=e(n);return r!=null&&r!==``?{disabled:!1}:{disabled:!0,message:t}},Dn=(...e)=>t=>{for(let n of e){let e=n(t);if(e.disabled)return e}return{disabled:!1}},On=(...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 kn(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 An=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(`.`)),jn=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.postgres.databricks`.split(`.`)),Mn=r.enum([`production`,`sandbox`]),Nn=`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(`.`),Pn=r.enum(Nn),Fn=[`string`,`number`,`boolean`,`json`,`unknown`],In=r.enum(Fn),Ln=r.union([r.number(),r.string()]),Rn=r.union([r.literal(`completed`),r.literal(`failed`),r.literal(`pending`),r.literal(`queued`),r.literal(`processing`),r.literal(`no_result`),r.literal(`skipped`)]),zn=r.union([r.string().min(1),r.number(),r.boolean(),r.null(),r.record(r.string(),r.unknown()),r.array(r.unknown())]),Bn=r.object({example_value:r.any().nullable(),schema:r.any().nullable()}),Vn=r.object({}),Hn=Vn.extend({image_url:r.string().url().describe(`URL to the provider's logo image.`),entity:r.string().describe(`The name of the entity.`)}),Un=Vn.extend({emoji:r.string().describe(`Country flag emoji.`)}),Wn=Vn.extend({image_url:r.url().describe(`URL to the provider's logo image.`),name:r.string().describe(`The name of the avatar owner.`)}),Gn=Vn.extend({attempted_providers:r.array(r.object({provider:jn})),available_providers:r.array(jn),successful_provider:jn.optional()}),Kn=r.enum([`linkedin`,`job`]),qn=Vn.extend({key:Kn}).optional(),Jn=r.object({result_status:r.enum([`completed`,`failed`])}).optional(),Yn=r.object({list:r.array(r.object({source:r.string(),description:r.string().optional(),url:r.string()}))}).optional(),Xn=r.object({numeric:r.int().min(1).max(5)}).optional(),Zn=r.object({display_value:r.object({label:r.string().optional()}),entity_logo:Hn.optional(),location_indicator:Un.optional(),avatar:Wn.optional(),waterfall:Gn.optional(),icon:qn,action_summary:Jn,sources:Yn,confidence:Xn}).partial().describe(`A map of widgets associated with this field for UI display, keyed by widget type.`),Qn=r.object({code:r.string(),message:r.string(),path:r.string().optional()}),$n=r.object({code:r.string(),summary:r.string(),message:r.string()}),er=[`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`],tr=r.enum(er);tr.nullable();const nr=r.object({type:In,label:r.string().nullable().optional(),format:tr.nullable().optional(),json_metadata:Bn.nullable().optional()}),rr=r.record(r.string(),nr),ir=r.enum([...Nn,`input`]).nullable(),ar=r.enum([...Nn,`input`,`system`]).nullable(),or=r.object({ref:ir,config_hash:r.string().nullable()}),sr=r.object({ref:ar,environment:Mn.nullable(),config_hash:r.string().nullable(),input_hash:r.string().nullable()}),cr=r.object({value:zn,status:Rn,type:In,reason:$n.nullable(),claimed_by:or,resolved_by:sr.nullable(),widgets:Zn.optional(),format:tr.nullable()}),lr=r.object({value:zn,status:Rn,reason:$n.nullable().optional(),type:In.optional(),format:tr.nullable().optional(),claimed_by:or.optional(),resolved_by:sr.nullable().optional(),widgets:Zn.optional()}),ur=r.record(r.string(),r.union([zn,lr])).openapi(`PipesInput`),dr=r.object({id:Ln,fields:r.record(Ln,cr)}),fr=r.object({type:r.literal(`catalog`),fieldName:r.string().min(1)}),pr=r.object({type:In,label:r.string(),added_by:r.object({ref:r.union([Pn,r.literal(`input`)]),config_hash:r.string().nullable(),pipe_index:r.number().nullable()}),format:tr.nullable(),is_primary_output:r.boolean()}),mr=r.record(r.string(),pr),hr=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:tr.nullable().default(null),label:r.string().optional(),type:In})})).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)})})}),gr=r.enum([`eq`,`neq`,`gt`,`gte`,`lt`,`lte`,`contains`]),_r={eq:`equals`,neq:`not equals`,gt:`greater than`,gte:`greater than or equal`,lt:`less than`,lte:`less than or equal`,contains:`contains`},vr=[`eq`,`neq`,`gt`,`gte`,`lt`,`lte`,`contains`],yr=[`eq`,`neq`],br=r.object({type:r.literal(`vault`),connection:r.string()}),_=r.object({strategy:r.enum([`first`]).default(`first`),connections:r.array(br)}).nullable().optional(),xr=r.object({strategy:r.enum([`first`]).default(`first`),connections:r.array(br).min(1,{message:`Provide your own credentials to use this object.`})},{error:`Provide your own credentials to use this object.`}),Sr=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(),Cr=r.enum(vr),wr=r.enum(yr),Tr=r.enum([`failed`,`no_result`,`completed`,`skipped`]),Er=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:Cr.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:wr.describe(`Status comparison operator: "eq" or "neq".`),value:Tr.describe(`Field status to compare against: "completed", "no_result", "failed", or "skipped".`)})])).min(1).describe(`Array of conditions to evaluate. Each condition checks either a field value or its resolution status.`)}).describe(`Condition block. All conditions are combined with the chosen logic (and/or).`)}).describe(`Run-if gate for a pipe. When set, the pipe only runs on records matching the conditions. Example: { "when": { "logic": "and", "conditions": [{ "property": "status", "field_name": "work_email", "operator": "neq", "value": "no_result" }] } }`),Dr={pipe0:{name:`pipe0`,label:`pipe0`,description:`A framework for lead and company data enrichment.`,url:`https://pipe0.com`,public:!0,hasManagedConnections:!0,allowsUserConnections:!1,connectionType:`api_key`,logoUrl:`https://imagedelivery.net/3B3AWuP94-S3Ro5eEac6JA/52f2d955-d9f3-4139-2c13-63cfd568ed00/icon`,background:{light:`#F4F4F5`,dark:`#1F1F23`},oAuthConfig:null},findymail:{name:`findymail`,label:`FindyMail`,description:`Find verified emails.`,url:`https://findymail.com`,public:!1,hasManagedConnections:!0,allowsUserConnections:!0,connectionType:`api_key`,oAuthConfig:null,logoUrl:`https://imagedelivery.net/3B3AWuP94-S3Ro5eEac6JA/9e8ce38d-a49d-42a3-4317-506f7fbec900/icon`,background:{light:`#D4F4DD`,dark:`#143822`}},hunter:{name:`hunter`,label:`HunterMail`,description:`Find email addresses and send cold emails`,url:`https://hunter.io`,public:!1,hasManagedConnections:!0,allowsUserConnections:!0,oAuthConfig:null,connectionType:`api_key`,logoUrl:`https://imagedelivery.net/3B3AWuP94-S3Ro5eEac6JA/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},postgres:{name:`postgres`,label:`PostgreSQL`,description:`Connect your own PostgreSQL database and query it read-only.`,url:`https://www.postgresql.org`,public:!0,hasManagedConnections:!1,allowsUserConnections:!0,connectionType:`connection_string`,logoUrl:`https://imagedelivery.net/3B3AWuP94-S3Ro5eEac6JA/eb8b2802-8280-45c3-ee08-a24aad6a0a00/icon`,background:{light:`#DCE9F5`,dark:`#0B2A45`},oAuthConfig:null},databricks:{name:`databricks`,label:`Databricks`,description:`Query your Databricks SQL warehouse read-only via a service principal.`,url:`https://www.databricks.com`,public:!0,hasManagedConnections:!1,allowsUserConnections:!0,connectionType:`databricks`,logoUrl:`https://imagedelivery.net/3B3AWuP94-S3Ro5eEac6JA/07b73e49-e1fa-445b-865e-2b7dc2641700/icon`,background:{light:`#F5E6DC`,dark:`#3A1B0B`},oAuthConfig:null}},Or=[`if`,`elsif`,`else`,`endif`,`unless`,`endunless`,`for`,`endfor`,`break`,`continue`,`output`],kr=[`json`,`escape`,`escape_once`,`default`,`upcase`,`downcase`,`size`,`join`,`first`,`last`,`replace`,`truncate`,`strip`,`newline_to_br`,`url_encode`],Ar=/^[A-Z][A-Z0-9_]*$/,jr=/^[A-Z][A-Z0-9_]*$/,Mr=/^[a-zA-Z_][a-zA-Z0-9_]*$/,Nr=`SECRETS`,Pr=`CONSTANTS`,Fr=new Set(Or),Ir=new Set(kr),Lr=e=>`{${e}}`;var Rr=class extends i{constructor(e){super(),this.values=e}liquidMethodMissing(e){let t=String(e);if(!Ar.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]}},zr=class extends i{constructor(e){super(),this.values=e}liquidMethodMissing(e){let t=String(e);if(!jr.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 Br(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(!Mr.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 Vr(){let e=new a({strictVariables:!1,strictFilters:!0,jsTruthy:!0,greedy:!1,catchAllErrors:!1,ownPropertyOnly:!0});e.registerTag(`output`,{parse(e,t){let n=Br(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(Lr(n.name))}});for(let t of Object.keys(e.tags))Fr.has(t)||delete e.tags[t];for(let t of Object.keys(e.filters))Ir.has(t)||delete e.filters[t];return e}let Hr=null;function Ur(){return Hr||=Vr(),Hr}async function Wr(e,t,n={}){let r=Ur(),i=n.renderLimitMs??250,a={...t.inputs??{},[Nr]:new Rr(t.secrets??{}),[Pr]:new zr(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 Gr(e,t,n={}){let r=Ur(),i=n.renderLimitMs??250,a={...t.inputs??{},[Nr]:new Rr(t.secrets??{}),[Pr]:new zr(t.constants??{})},o=r.parseAndRenderSync(e,a,{globals:{__outputAllowed:n.outputAllowed===!0},renderLimit:i});return String(o)}function Kr(e){return Ur().parse(e)}function qr(e){let t=Ur().parse(e),n={scopeStack:[],guardStack:[],inputs:new Map,secrets:new Set,constants:new Set,outputs:[],forDepth:0};Jr(t,n);let r={};for(let[e,t]of n.inputs)r[e]={required:t.unguardedRefs>0};return{inputs:r,secrets:[...n.secrets],constants:[...n.constants],outputs:n.outputs}}function Jr(e,t){for(let n of e)Yr(n,t)}function Yr(e,t){let n=e;if(n.value&&typeof n.value==`object`&&`filters`in n.value&&`initial`in n.value){ei(n.value,t,!1);return}if(typeof n.name==`string`){Xr(n,t);return}}function Xr(e,t){switch(e.name){case`for`:Zr(e,t);return;case`if`:case`unless`:Qr(e,t);return;case`output`:$r(e,t);return;case`break`:case`continue`:return;default:throw Error(`Unhandled liquid tag in analyzer: ${e.name}`)}}function Zr(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&&ti(e.collection,t,!1);let n=typeof e.variable==`string`?e.variable:null;n&&t.scopeStack.push(n),Jr(Array.isArray(e.templates)?e.templates:[],t),n&&t.scopeStack.pop(),Jr(Array.isArray(e.elseTemplates)?e.elseTemplates:[],t),--t.forDepth}function Qr(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=ii(i.initial)),a&&t.guardStack.push(a),i&&typeof i==`object`&&ei(i,t,!1),Jr(r.templates,t),a&&t.guardStack.pop()}Jr(Array.isArray(e.elseTemplates)?e.elseTemplates:[],t)}function $r(e,t){let n=e.outputDecl;if(!n){let t=e.token?.args;typeof t==`string`&&(n=Br(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 ei(e,t,n){let r=e.filters.some(e=>e.name===`default`),i=n||r;for(let n of e.initial.postfix)ai(n)&&ri(n,t,i);for(let n of e.filters)for(let e of n.args)ni(e,t)}function ti(e,t,n){ai(e)&&ri(e,t,n)}function ni(e,t){if(Array.isArray(e)){let n=e[1];n&&ti(n,t,!1)}else ti(e,t,!1)}function ri(e,t,n){let r=e.props;if(r.length===0)return;let i=r[0];if(!i||!oi(i))return;let a=i.content;if(t.scopeStack.includes(a))return;if(a===`SECRETS`){let e=r[1];if(!e||!oi(e))throw Error(`Invalid SECRETS reference β expected SECRETS.KEY (got ${li(r)}).`);let n=e.content;if(!Ar.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||!oi(e))throw Error(`Invalid CONSTANTS reference β expected CONSTANTS.KEY (got ${li(r)}).`);let n=e.content;if(!jr.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 ii(e){if(e.postfix.length===1){let t=e.postfix[0];if(t&&ai(t)&&t.props.length===1){let e=t.props[0];if(e&&oi(e))return e.content}}if(e.postfix.length===3){let[t,n,r]=e.postfix;if(t&&n&&r&&ai(t)&&t.props.length===1){let e=t.props[0];if(e&&oi(e)&&si(n)&&ci(r,[`==`,`!=`]))return e.content}}return null}function ai(e){return e.kind===o.PropertyAccess}function oi(e){return!!e&&typeof e==`object`&&e.kind===o.Word}function si(e){if(e.kind!==o.Literal)return!1;let t=e.literal;return t===`nil`||t===`null`}function ci(e,t){return e.kind===o.Operator?t.includes(e.operator):!1}function li(e){let t=[];for(let n of e)n&&oi(n)?t.push(n.content):t.push(`?`);return t.join(`.`)}function ui(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:jn.parse(n),id:r}}catch{throw Error(`Connection string ${e}: Failed to parse provider name.`)}}function di(e){return`${e.provider}_${e.id}`}const fi=new s;function pi(e){return fi.validateSchema(e)}function mi(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 hi=[`gemini-flash-latest`,`openai-gpt-latest`,`openai-gpt-mini-latest`],gi={"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 _i(e,t){let n={};for(let r of hi){let i=gi[r],a=`${e}-${r}`;n[a]={credits:{default:t?.[r]??i.defaultCredits},allowManagedConnection:!0,provider:i.provider,mode:i.billingMode}}return n}function vi(e,t){return`${t}-${e}`}function yi(e){let t=gi[e];if(!t)throw Error(`Unknown AI model: ${e}`);return[t.provider]}function bi(e){let t=gi[e];if(!t)throw Error(`Unknown AI model: ${e}`);return[{provider:t.provider,rateLimitRatio:t.rateLimitRatio,rateLimitOperation:t.rateLimitOperation,allowManagedConnection:t.allowManagedConnection}]}function xi(){let e=new Set;for(let t of hi)e.add(gi[t].provider);return[...e]}function Si(e){if(!e?.requires)return;let t=[];e.requires.connection&&t.push(Tn(e.requires.connection));for(let n of e.requires.fields??[])t.push(En(e=>n.split(`.`).reduce((e,t)=>e==null?e:e[t],e),`Set ${n} first`));if(t.length!==0)return t.length===1?t[0]:Dn(...t)}function Ci(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=kn(e,n,t),s=xn(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())])},wi=(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},Ti=(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},Ei=/^\s*\{\{\s*[a-zA-Z_][a-zA-Z0-9_.]*(?:\s*\|\s*[^}]+)?\s*\}\}\s*$/,Di=/\{\{|\{%/,Oi=(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=Ei.test(e),i=Di.test(e);!r&&i&&t.issues.push({code:`custom`,input:e,path:[n],message:`Each entry must be either plain text or a single field reference β not mixed.`})})}),n=e.minItems?n.min(e.minItems):n.default([]);let r={type:`tagged_ordered_multi_create_input`,...e};if(t===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},ki=(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)=>{ra({value:e.key,issues:t.issues},!1,[n,`key`]),ra({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},Ai=(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},ji=()=>{let e=hr;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}=Ci(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},Mi=(e,t)=>{let n=r.array(r.object({provider:r.enum(e.availableProviders)})).max(e.maxItems||99).min(1).default(e.defaultProviders),i=e.availableProviders.map(t=>{let n=e.providerCredits?.[t];return{value:t,label:Dr[t].label,widgets:{provider_logo:{provider:t},...typeof n==`number`?{pricing:{credits:n}}:{}}}});return t.add(n,{label:`Provider sequence`,description:``,path:`config.providers`,groupPath:`config.providers`,type:`providers_input`,options:i,defaultProviders:e.defaultProviders,maxItems:e.maxItems,sectionKey:e.sectionKey}),n},Ni=(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},Pi=(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},Fi=(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},Ii=(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},Li=(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},Ri=(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},zi=(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},Bi=(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},Vi=(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})},Hi=(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},Ui=(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},Wi=(e,t)=>{let n=b.json_schema_input,r=e.required?n:n.optional();return r.check(e=>{pi(e.value)||e.issues.push({code:`custom`,input:e.value,message:`JSON schema is invalid. Check your input.`})}),e.allowEmpty||(r=r.check(e=>{mi(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},Gi=(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},Ki=({billableOperations:e,...t},n)=>{let i=r.enum(hi).default(t.defaultValue||`gemini-flash-latest`);return n.add(i,{type:`select_input`,options:hi.map(t=>{let n=e[Object.keys(e).find(e=>e.endsWith(`-${t}`))];if(!n)throw Error(`Unable to find billing info for model ${t}`);return{label:t,value:t,widgets:{logo:{url:Dr[gi[t].provider].logoUrl},pricing:{credits:n.credits.default}}}}),required:!0,description:``,label:`AI Models`,...t}),i},qi=(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},Ji=(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??Si(e.optionsDef);return t.add(r,{type:`context_select_input`,...e,enabledIf:i,options:[]}),r},Yi=(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},Xi=(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},Zi=(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 Qi(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=Er.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},$i={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`}},ea={general:1,pagination:2,"config.filters":3,pipe_io:10};function ta({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 na=({schema:e,groupPathMatch:t,extractFromSchema:n,sectionOrder:i=ea,sectionMap:a=$i,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=ta({fieldMetadata:i,store:o,formResolvers:s});e&&n.fields.push(e)}else{let n=t[i.groupPath],r=ta({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 ra(e,t,n=[]){let r=e.value;if(!(typeof r!=`string`||!r))try{let i=qr(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 ia=e=>{let t=(e.supportedTags??[]).includes(`output`),n=r.object({template:r.string().min(10).check(e=>ra(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},aa=e=>{let t=r.string();e.required&&(t=t.min(1));let n=t.check(e=>ra(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=>ra(e,!1,[])),n=n.describe(e.description||t);let i=e.optionsDef?{...e.optionsDef,enabledIf:e.optionsDef.enabledIf??Si(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 oa(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:di({id:e.public_id,provider:e.provider})}))}})}const sa=()=>{let e=xr;return oa(e,`required`),e},C=()=>{let e=_;return oa(e,`optional`),e},w=()=>{let e=Sr;return oa(e,`disabled`),e};function ca(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:di({id:e.public_id,provider:e.provider})}))}})}const la=()=>{let e=xr;return ca(e,`required`),e},ua=()=>{let e=_;return ca(e,`optional`),e};function da(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:da(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=>Mi(e,v),fa=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},pa=e=>Ai(e,v),ma=e=>wi(e,v),ha=e=>Ti(e,v),ga=e=>Oi(e,v),_a=e=>ki(e,v),va=e=>Ni(e,v),ya=e=>Zi(e,v),ba=e=>Pi(e,v),xa=e=>Ii(e,v),D=e=>Li(e,v),O=e=>Vi(e,v),Sa=e=>zi(e,v),Ca=e=>Bi(e,v),wa=e=>Gi(e,v),Ta=e=>Ki(e,v),Ea=e=>qi(e,v),Da=e=>Hi(e,v),Oa=e=>Ui(e,v),ka=e=>Wi(e,v),Aa=e=>Ji(e,v),k=e=>wi(e,y),ja=e=>Ti(e,y),Ma=e=>Yi(e,y),A=e=>Ai(e,y),j=e=>Ni(e,y),Na=e=>Pi(e,y),Pa=e=>Fi(e,y),Fa=e=>Ii(e,y),Ia=e=>Li(e,y),La=e=>Ri(e,y),M=e=>Vi(e,y,`pipe_io`),Ra=e=>zi(e,y),za=e=>Bi(e,y),Ba=e=>Gi(e,y),Va=e=>Ji(e,y),N=e=>qi(e,y),P=e=>Xi(e,y),F=e=>Zi(e,y),I=e=>Hi(e,y),Ha=e=>Ui(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 Ua(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]=Ua(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 β`},Wa=e=>typeof e.kind==`string`,Ga=e=>Wa(e)?e:{kind:`field`,field:e},B=e=>({kind:`field`,field:e}),Ka=(...e)=>({kind:`all`,of:e.map(Ga)}),V=(...e)=>({kind:`any`,of:e.map(Ga)}),qa=e=>({kind:`optional`,field:e});function Ja(e,t){switch(e.kind){case`optional`:return!0;case`field`:return t.has(e.field.resolvedName);case`all`:return e.of.every(e=>Ja(e,t));case`any`:return e.of.some(e=>Ja(e,t))}}function Ya(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(Ya)}}function Xa(e,t){let n=Za(e,t);return n.ok?{valid:!0,failedPipeInputField:null,failedRecordField:null}:{valid:!1,failedPipeInputField:n.field,failedRecordField:n.recordField}}function Za(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=Za(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=Za(i,t);if(r=!0,e.ok)return{ok:!0};n=e}catch{}return r?n:{ok:!0}}}}function Qa(e){if(typeof e!=`object`||!e)return e;if(Array.isArray(e))return e.map(Qa).filter(e=>!qt(e));let t={};for(let[n,r]of Object.entries(e)){let e=Qa(r);qt(e)||(t[n]=e)}return t}const $a=await l();var eo=class e{static hashObject(t){if(!$a)throw Error(`HashAPI not initialized`);let{h64ToString:n}=$a,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 to(e,t){let n={pipeId:e,config:Qa(t)};return eo.hashObject(n)}function no(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:eo.hashObject(Qa(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 Ya(this.getInputRequirement()))e[t.name]=t;return e}getConfigHashKey(){return to(this.payload.pipe_id,this.payload.config||{})}getInputHashKey(e){return no(e,this.inputFields)}};function ro(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 io(e){return Ya(e).map(({field:e})=>e)}function ao({recordField:e,value:t,resolvedBy:n,widgets:r}){return e.value=t,e.status=`completed`,e.resolved_by=n,e.widgets=r,e}function oo({recordField:e}){return e.status=`pending`,e.resolved_by=null,e.value=null,e}function so({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 co(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 lo(e,t){return e.value=null,e.status=`skipped`,e.resolved_by=null,e.reason=t,e.widgets={},e}function uo(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 fo=`company:domain:workemail@1`,po=g(`company_domain`),mo=g(`work_email`),ho=r.object({pipe_id:r.literal(fo),run_if:x(),connector:w(),config:r.object({input_fields:R(r.object({[mo.name]:T({fieldName:mo.name})})),output_fields:L(r.object({[po.name]:O({fieldName:po.name})}))}).optional()}),go=e=>B(G(mo,e)),_o={"company-domain-workemail-v1-pipe0":{credits:{default:0},allowManagedConnection:!0,mode:`always`,provider:`pipe0`}},vo=class extends H{pipeId=fo;payload;payloadSchema=ho;billableOperations=_o;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[`company-domain-workemail-v1-pipe0`]}getInputRequirement(){return go(this.payload.config)}getRawOutputFields(){return{[po.name]:this.catalogOutput(po)}}getConnectionsRequirements(){return[{provider:`pipe0`,rateLimitRatio:1,rateLimitOperation:`pipe0_logic`,allowManagedConnection:!0}]}},yo=ho,bo={pipeId:fo,basePipe:U(fo),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(fo),allowedUserConnectionProviders:[],managedProviders:[`pipe0`],deprecatedProviders:[],billableOperations:_o,defaultInputRequirement:go(null),defaultPayload:{pipe_id:fo,connector:null,run_if:null,config:{input_fields:{[mo.name]:{alias:``}},output_fields:{[po.name]:{alias:``,enabled:!0}}}}},xo=`company:funding:leadmagic@2`,So=g(`company_name`),Co=g(`company_domain`),wo=g(`funding_history`),To=g(`funding_total_usd`),Eo=g(`leadmagic_competitor_list`),Do=g(`leadmagic_acquisition_history`),Oo=g(`leadmagic_company_news_list`),ko=r.object({pipe_id:r.literal(xo),connector:C(),run_if:x(),config:r.object({input_fields:R(r.object({[So.name]:T({fieldName:So.name}),[Co.name]:T({fieldName:Co.name})})),output_fields:L(r.object({[wo.name]:O({fieldName:wo.name}),[To.name]:O({fieldName:To.name}),[Eo.name]:O({fieldName:Eo.name}),[Do.name]:O({fieldName:Do.name}),[Oo.name]:O({fieldName:Oo.name})}))}).optional()}),Ao=e=>V(G(So,e),G(Co,e)),jo={"company-funding-leadmagic-v2-leadmagic":{provider:`leadmagic`,allowManagedConnection:!0,credits:{default:2},mode:`onSuccess`}},Mo=class extends H{pipeId=xo;payload;payloadSchema=ko;billableOperations=jo;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`leadmagic`]}estimateBillableOperations(){return[`company-funding-leadmagic-v2-leadmagic`]}getInputRequirement(){return Ao(this.payload.config)}getRawOutputFields(){return{[wo.name]:this.catalogOutput(wo),[To.name]:this.catalogOutput(To),[Do.name]:this.catalogOutput(Do),[Oo.name]:this.catalogOutput(Oo),[Eo.name]:this.catalogOutput(Eo)}}getConnectionsRequirements(){return[{provider:`leadmagic`,rateLimitRatio:1,rateLimitOperation:`leadmagic_company_funding`,allowManagedConnection:!0}]}},No=ko,Po={pipeId:xo,basePipe:U(xo),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(xo),billableOperations:jo,inputFieldMode:`static`,outputFieldMode:`static`,allowedUserConnectionProviders:[`leadmagic`],managedProviders:[`leadmagic`],deprecatedProviders:[],defaultInputRequirement:Ao(null),defaultPayload:{pipe_id:xo,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:``}}}}},Fo=g(`company_name`),Io=g(`company_profile_url`),Lo=g(`company_domain`),Ro=g(`cleaned_company_name`),zo=`company:identity@3`,Bo=r.object({pipe_id:r.literal(zo),run_if:x(),connector:w(),config:r.object({input_fields:R(r.object({[Fo.name]:T({fieldName:Fo.name})})),output_fields:L(r.object({[Io.name]:O({fieldName:Io.name}),[Ro.name]:O({fieldName:Ro.name}),[Lo.name]:O({fieldName:Lo.name})}))}).optional()}),Vo=e=>B(G(Fo,e)),Ho={"company-identity-v3-pipe0":{allowManagedConnection:!0,credits:{default:.3,level1:{credits:.2,weight:1}},mode:`always`,provider:`pipe0`}},Uo=class extends H{pipeId=zo;payload;payloadSchema=Bo;billableOperations=Ho;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[`company-identity-v3-pipe0`]}getInputRequirement(){return Vo(this.payload.config)}getRawOutputFields(){return{[Io.name]:this.catalogOutput(Io),[Lo.name]:this.catalogOutput(Lo),[Ro.name]:this.catalogOutput(Ro)}}getConnectionsRequirements(){return[{provider:`gemini`,rateLimitRatio:1,rateLimitOperation:`gemini_35_flash`,allowManagedConnection:!0},{provider:`serper`,rateLimitRatio:2,rateLimitOperation:`serper_search`,allowManagedConnection:!0},{provider:`leadmagic`,rateLimitRatio:.2,rateLimitOperation:`leadmagic_company_search`,allowManagedConnection:!0},{provider:`perplexity`,rateLimitRatio:.2,rateLimitOperation:`perplexity_generic`,allowManagedConnection:!0},{provider:`pipe0`,rateLimitRatio:.02,rateLimitOperation:`pipe0_scraper`,allowManagedConnection:!0}]}},Wo=Bo,Go={pipeId:zo,inputFieldMode:`static`,outputFieldMode:`static`,basePipe:U(zo),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(zo),billableOperations:Ho,allowedUserConnectionProviders:[],managedProviders:[`pipe0`],deprecatedProviders:[],defaultInputRequirement:Vo(null),defaultPayload:{pipe_id:zo,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}}}}},Ko=g(`company_domain`),qo=g(`company_name`),Jo=g(`crustdata_company_identity_matches`),Yo=`company:identity:crustdata@1`,Xo=r.object({pipe_id:r.literal(Yo),run_if:x(),connector:C(),config:r.object({input_fields:R(r.object({[Ko.name]:T({fieldName:Ko.name}),[qo.name]:T({fieldName:qo.name})})),output_fields:L(r.object({[Jo.name]:O({fieldName:Jo.name})}))}).optional()}),Zo=e=>V(G(Ko,e),G(qo,e)),Qo={"company-identity-crustdata-v1-crustdata":{allowManagedConnection:!0,credits:{default:.001},mode:`onSuccess`,provider:`crustdata`}},$o=class extends H{pipeId=Yo;payload;payloadSchema=Xo;billableOperations=Qo;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`crustdata`]}estimateBillableOperations(){return[`company-identity-crustdata-v1-crustdata`]}getInputRequirement(){return Zo(this.payload.config)}getRawOutputFields(){return{[Jo.name]:this.catalogOutput(Jo)}}getConnectionsRequirements(){return[{provider:`crustdata`,rateLimitRatio:1,rateLimitOperation:`crustdata_company_identify`,allowManagedConnection:!0}]}},es=Xo,ts={pipeId:Yo,inputFieldMode:`static`,outputFieldMode:`static`,basePipe:U(Yo),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(Yo),billableOperations:Qo,allowedUserConnectionProviders:[`crustdata`],managedProviders:[`crustdata`],deprecatedProviders:[],defaultInputRequirement:Zo(null),defaultPayload:{pipe_id:Yo,connector:null,run_if:null,config:{input_fields:{company_domain:{alias:``},company_name:{alias:``}},output_fields:{crustdata_company_identity_matches:{alias:``,enabled:!0}}}}},ns=g(`company_domain`),rs=g(`companyenrich_matches`),is=`company:lookalikes:companyenrich@2`,as=r.object({pipe_id:r.literal(is),run_if:x(),connector:C(),config:r.object({limit:Da({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({[ns.name]:T({fieldName:ns.name})})),output_fields:L(r.object({[rs.name]:O({fieldName:rs.name})}))}).optional()}),os=e=>B(G(ns,e)),ss={"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`}},cs=class extends H{pipeId=is;payload;payloadSchema=as;billableOperations=ss;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`companyenrich`]}estimateBillableOperations(){return[,,,,,].fill(`lookalikes-companyenrich`)}getInputRequirement(){return os(this.payload.config)}getRawOutputFields(){return{[rs.name]:this.catalogOutput(rs)}}getConnectionsRequirements(){return[{provider:`companyenrich`,rateLimitRatio:1,rateLimitOperation:`company_enrich_generic`,allowManagedConnection:!0}]}},ls=as,us={pipeId:is,inputFieldMode:`static`,outputFieldMode:`static`,basePipe:U(is),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(is),billableOperations:ss,allowedUserConnectionProviders:[`companyenrich`],managedProviders:[`companyenrich`],deprecatedProviders:[],defaultInputRequirement:os(null),defaultPayload:{pipe_id:is,connector:null,run_if:null,config:{limit:20,input_fields:{company_domain:{alias:``}},output_fields:{companyenrich_matches:{alias:``,enabled:!0}}}}},ds=g(`company_domain`),fs=g(`crustdata_companyenrich_match`),ps=`company:match:crustdata@2`,ms=r.object({pipe_id:r.literal(ps),run_if:x(),connector:C(),config:r.object({input_fields:R(r.object({[ds.name]:T({fieldName:ds.name})})),output_fields:L(r.object({[fs.name]:O({fieldName:fs.name})}))}).optional()}),hs=e=>B(G(ds,e)),gs={"company-match-crustdata-v2-crustdata":{allowManagedConnection:!0,credits:{default:2.5,level1:{credits:1.2,weight:1}},mode:`onSuccess`,provider:`crustdata`}},_s=class extends H{pipeId=ps;payload;payloadSchema=ms;billableOperations=gs;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`crustdata`]}estimateBillableOperations(){return[`company-match-crustdata-v2-crustdata`]}getInputRequirement(){return hs(this.payload.config)}getRawOutputFields(){return{[fs.name]:this.catalogOutput(fs)}}getConnectionsRequirements(){return[{provider:`crustdata`,rateLimitRatio:1,rateLimitOperation:`crustdata_company_enrich`,allowManagedConnection:!0}]}},vs=ms,ys={pipeId:ps,inputFieldMode:`static`,outputFieldMode:`static`,basePipe:U(ps),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(ps),billableOperations:gs,allowedUserConnectionProviders:[`crustdata`],managedProviders:[`crustdata`],deprecatedProviders:[],defaultInputRequirement:hs(null),defaultPayload:{pipe_id:ps,connector:null,run_if:null,config:{input_fields:{company_domain:{alias:``}},output_fields:{crustdata_companyenrich_match:{alias:``,enabled:!0}}}}},bs=g(`company_domain`),xs=g(`company_name`),Ss=g(`company_profile_url`),Cs=g(`logodev_describe_match`),ws=g(`logo_url`),Ts=`company:match:logodev@2`,Es=r.object({pipe_id:r.literal(Ts),run_if:x(),connector:C(),config:r.object({input_fields:R(r.object({[bs.name]:T({fieldName:bs.name})})),output_fields:L(r.object({[Ss.name]:O({fieldName:Ss.name}),[ws.name]:O({fieldName:ws.name}),[xs.name]:O({fieldName:xs.name}),[Cs.name]:O({fieldName:Cs.name})}))}).optional()}),Ds=e=>B(G(bs,e)),Os={"company-match-logodev-v2-logodev":{allowManagedConnection:!0,credits:{default:.1},mode:`onSuccess`,provider:`logodev`}},ks=class extends H{pipeId=Ts;payload;payloadSchema=Es;billableOperations=Os;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`logodev`]}estimateBillableOperations(){return[`company-match-logodev-v2-logodev`]}getInputRequirement(){return Ds(this.payload.config)}getRawOutputFields(){return{[Ss.name]:this.catalogOutput(Ss),[xs.name]:this.catalogOutput(xs),[ws.name]:this.catalogOutput(ws),[Cs.name]:this.catalogOutput(Cs)}}getConnectionsRequirements(){return[{provider:`logodev`,rateLimitRatio:1,rateLimitOperation:`logodev_describe`,allowManagedConnection:!0}]}},As=Es,js={pipeId:Ts,inputFieldMode:`static`,outputFieldMode:`static`,basePipe:U(Ts),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(Ts),billableOperations:Os,allowedUserConnectionProviders:[`logodev`],managedProviders:[`logodev`],deprecatedProviders:[],defaultInputRequirement:Ds(null),defaultPayload:{pipe_id:Ts,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}}}}},Ms=`company:newssummary:domain@1`,Ns=g(`company_news_summary`),Ps=g(`company_domain`),Fs=r.object({pipe_id:r.literal(Ms),run_if:x(),connector:C(),config:r.object({input_fields:R(r.object({[Ps.name]:T({fieldName:Ps.name})})),output_fields:L(r.object({[Ns.name]:O({fieldName:Ns.name})}))}).optional()}),Is=e=>B(G(Ps,e)),Ls={"company-newssummary-domain-v1-pipe0":{allowManagedConnection:!0,credits:{default:2},mode:`always`,provider:`pipe0`}},Rs=class extends H{pipeId=Ms;payloadSchema=Fs;billableOperations=Ls;payload;constructor(e){super(),this.payload=e}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[`company-newssummary-domain-v1-pipe0`]}getInputRequirement(){return Is(this.payload.config)}getRawOutputFields(){return{[Ns.name]:this.catalogOutput(Ns)}}getConnectionsRequirements(){return[{provider:`parallel`,rateLimitRatio:4,rateLimitOperation:`parallel_search_base`,allowManagedConnection:!0},{provider:`gemini`,rateLimitRatio:1,rateLimitOperation:`gemini_35_flash`,allowManagedConnection:!0}]}},zs=Fs,Bs={pipeId:Ms,basePipe:U(Ms),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(Ms),billableOperations:Ls,allowedUserConnectionProviders:[],managedProviders:[`pipe0`],deprecatedProviders:[],defaultInputRequirement:Is(null),defaultPayload:{pipe_id:Ms,run_if:null,connector:null,config:{input_fields:{company_domain:{alias:``}},output_fields:{company_news_summary:{alias:``,enabled:!0}}}}},Vs=g(`company_domain`),Hs=g(`company_profile_url`),Us=g(`company_description`),Ws=g(`company_industry`),Gs=g(`company_region`),Ks=g(`headcount`),qs=g(`estimated_revenue`),Js=g(`founded_year`),Ys=g(`company_name`),Xs=`company:overview@3`,Zs=r.object({pipe_id:r.literal(Xs),run_if:x(),connector:w(),config:r.object({input_fields:R(r.object({[Vs.name]:T({fieldName:Vs.name}),[Hs.name]:T({fieldName:Hs.name})})),output_fields:L(r.object({[Us.name]:O({fieldName:Us.name}),[Ws.name]:O({fieldName:Ws.name}),[Gs.name]:O({fieldName:Gs.name}),[Ks.name]:O({fieldName:Ks.name}),[qs.name]:O({fieldName:qs.name}),[Js.name]:O({fieldName:Js.name}),[Ys.name]:O({fieldName:Ys.name})}))}).optional()}),Qs=e=>V(G(Vs,e),G(Hs,e)),$s={"company-overview-v3-pipe0":{provider:`pipe0`,allowManagedConnection:!0,credits:{default:1,level1:{credits:.5,weight:1}},mode:`always`}},ec=class extends H{pipeId=Xs;payloadSchema=Zs;billableOperations=$s;payload;constructor(e){super(),this.payload=e}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[`company-overview-v3-pipe0`]}getInputRequirement(){return Qs(this.payload.config)}getRawOutputFields(){return{[Us.name]:this.catalogOutput(Us),[Ws.name]:this.catalogOutput(Ws),[Gs.name]:this.catalogOutput(Gs),[Ks.name]:this.catalogOutput(Ks),[qs.name]:this.catalogOutput(qs),[Js.name]:this.catalogOutput(Js),[Ys.name]:this.catalogOutput(Ys)}}getConnectionsRequirements(){return[{provider:`perplexity`,rateLimitRatio:1,rateLimitOperation:`perplexity_generic`,allowManagedConnection:!0},{provider:`leadmagic`,rateLimitRatio:.2,rateLimitOperation:`leadmagic_email_lookup`,allowManagedConnection:!0},{provider:`gemini`,rateLimitOperation:`gemini_20_flash`,rateLimitRatio:.1,allowManagedConnection:!0}]}},tc=Zs,nc={pipeId:Xs,basePipe:U(Xs),inputFieldMode:`static`,outputFieldMode:`static`,label:`Company overview`,executionMode:`mix`,categories:[`company_data`],lifecycle:null,description:`Business description, industry, and financial information.`,docPath:W(Xs),tags:[z.WEBSITE,z.LINKEDIN,z.FINANCIAL_DATA],allowedUserConnectionProviders:[],managedProviders:[`pipe0`],deprecatedProviders:[],billableOperations:$s,defaultInputRequirement:Qs(null),defaultPayload:{pipe_id:Xs,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}}}}},rc=g(`company_domain`),ic=g(`technology_list`),ac=g(`spending_trend`),oc=g(`technology_match_builtwith`),sc=`company:techstack:builtwith@2`,cc=r.object({pipe_id:r.literal(sc),connector:C(),run_if:x(),config:r.object({input_fields:R(r.object({[rc.name]:T({fieldName:rc.name})})),output_fields:L(r.object({[ic.name]:O({fieldName:ic.name}),[oc.name]:O({fieldName:oc.name}),[ac.name]:O({fieldName:ac.name})}))}).optional()}),lc=e=>B(G(rc,e)),uc={"company-techstack-builtwith-v2-builtwith":{provider:`builtwith`,allowManagedConnection:!0,credits:{default:2},mode:`always`}},dc=class extends H{pipeId=sc;payload;payloadSchema=cc;billableOperations=uc;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`builtwith`]}estimateBillableOperations(){return[`company-techstack-builtwith-v2-builtwith`]}getInputRequirement(){return lc(this.payload.config)}getRawOutputFields(){return{[ic.name]:this.catalogOutput(ic),[oc.name]:this.catalogOutput(oc),[ac.name]:this.catalogOutput(ac)}}getConnectionsRequirements(){return[{provider:`builtwith`,rateLimitRatio:1,rateLimitOperation:`builtwith_generic`,allowManagedConnection:!0}]}},fc=cc,pc={pipeId:sc,basePipe:U(sc),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(sc),billableOperations:uc,defaultInputRequirement:lc(null),defaultPayload:{pipe_id:sc,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}}}}},mc={MissingSecretError:class extends Error{constructor({providerName:e}){super(`Missing secret for ${e}`)}},HttpError:class extends Error{constructor({msg:e}){super(e)}}},hc=`contact:create:resend@1`,gc={"contact-create-resend-v1-resend":{allowManagedConnection:!1,provider:`resend`,credits:null,mode:null}},_c=g(`email`),vc=g(`name`),yc=g(`resend_contact_id`),bc=[{label:`Demo subscribers`,value:`sandbox-segment-1`},{label:`Demo product updates`,value:`sandbox-segment-2`}],xc=r.object({pipe_id:r.literal(hc),connector:sa(),run_if:x(),config:r.object({segment_id:Aa({sectionKey:`general`,required:!0,label:`Segment`,groupPath:`config.general`,path:`config.segment_id`,info:``,enabledIf:Tn(`resend`),optionsDef:{requires:{connection:`resend`},options:async({query:e,secret:t,environment:n})=>{if(n===`sandbox`)return bc;if(!t)throw new mc.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 mc.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({[vc.name]:T({fieldName:vc.name}),[_c.name]:T({fieldName:_c.name})})),output_fields:L(r.object({[yc.name]:O({fieldName:yc.name})}))})}),Sc=e=>Ka(B(G(_c,e)),B(G(vc,e))),Cc=class extends H{pipeId=hc;payload;payloadSchema=xc;billableOperations=gc;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`resend`]}estimateBillableOperations(){return[`contact-create-resend-v1-resend`]}getInputRequirement(){return Sc(this.payload.config)}getRawOutputFields(){return{[yc.name]:this.catalogOutput(yc)}}getConnectionsRequirements(){return[{provider:`resend`,rateLimitRatio:1,rateLimitOperation:`resend_generic`,allowManagedConnection:!1}]}},wc=xc,Tc={pipeId:hc,basePipe:U(hc),label:`Create Contact`,executionMode:`single`,categories:[`actions`],lifecycle:null,description:`Create a contact inside a Resend audience.`,tags:[z.EMAIL],docPath:W(hc),billableOperations:gc,inputFieldMode:`static`,outputFieldMode:`static`,allowedUserConnectionProviders:[`resend`],defaultInputRequirement:Sc(null),managedProviders:[],deprecatedProviders:[],defaultPayload:{pipe_id:hc,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}}}}},Ec=`company:funding:leadmagic@1`,Dc=g(`company_name`),Oc=g(`company_website_url`),kc=g(`funding_history`),Ac=g(`funding_total_usd`),jc=g(`leadmagic_competitor_list`),Mc=g(`leadmagic_acquisition_history`),Nc=g(`leadmagic_company_news_list`),Pc=r.object({pipe_id:r.literal(Ec),connector:C(),run_if:x(),config:r.object({input_fields:R(r.object({[Dc.name]:T({fieldName:Dc.name}),[Oc.name]:T({fieldName:Oc.name})})),output_fields:L(r.object({[kc.name]:O({fieldName:kc.name}),[Ac.name]:O({fieldName:Ac.name}),[jc.name]:O({fieldName:jc.name}),[Mc.name]:O({fieldName:Mc.name}),[Nc.name]:O({fieldName:Nc.name})}))}).optional()}),Fc=e=>V(G(Dc,e),G(Oc,e)),Ic={"company-funding-leadmagic-v1-leadmagic":{provider:`leadmagic`,allowManagedConnection:!0,credits:{default:2},mode:`onSuccess`}},Lc=class extends H{pipeId=Ec;payload;payloadSchema=Pc;billableOperations=Ic;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`leadmagic`]}estimateBillableOperations(){return[`company-funding-leadmagic-v1-leadmagic`]}getInputRequirement(){return Fc(this.payload.config)}getRawOutputFields(){return{[kc.name]:this.catalogOutput(kc),[Ac.name]:this.catalogOutput(Ac)}}getConnectionsRequirements(){return[{provider:`leadmagic`,rateLimitRatio:1,rateLimitOperation:`leadmagic_company_funding`,allowManagedConnection:!0}]}},Rc=Pc,zc={pipeId:Ec,basePipe:U(Ec),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(Ec),billableOperations:Ic,inputFieldMode:`static`,outputFieldMode:`static`,allowedUserConnectionProviders:[`leadmagic`],managedProviders:[`leadmagic`],deprecatedProviders:[],defaultInputRequirement:Fc(null),defaultPayload:{pipe_id:Ec,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:``}}}}},Bc=g(`company_name`),Vc=g(`company_social_url`),Hc=g(`company_website_url`),Uc=g(`cleaned_company_name`),Wc=`company:identity@1`,Gc=r.object({pipe_id:r.literal(Wc),run_if:x(),connector:w(),config:r.object({input_fields:R(r.object({[Bc.name]:T({fieldName:Bc.name})})),output_fields:L(r.object({[Vc.name]:O({fieldName:Vc.name}),[Uc.name]:O({fieldName:Uc.name}),[Hc.name]:O({fieldName:Hc.name})}))}).optional()}),Kc=e=>B(G(Bc,e)),qc={"company-identity-v1-pipe0":{allowManagedConnection:!0,credits:{default:.3},mode:`always`,provider:`pipe0`}},Jc=class extends H{pipeId=Wc;payload;payloadSchema=Gc;billableOperations=qc;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[`company-identity-v1-pipe0`]}getInputRequirement(){return Kc(this.payload.config)}getRawOutputFields(){return{[Vc.name]:this.catalogOutput(Vc),[Hc.name]:this.catalogOutput(Hc),[Uc.name]:this.catalogOutput(Uc)}}getConnectionsRequirements(){return[{provider:`gemini`,rateLimitRatio:1,rateLimitOperation:`gemini_35_flash`,allowManagedConnection:!0},{provider:`serper`,rateLimitRatio:2,rateLimitOperation:`serper_search`,allowManagedConnection:!0},{provider:`leadmagic`,rateLimitRatio:.2,rateLimitOperation:`leadmagic_company_search`,allowManagedConnection:!0},{provider:`perplexity`,rateLimitRatio:.2,rateLimitOperation:`perplexity_generic`,allowManagedConnection:!0},{provider:`pipe0`,rateLimitRatio:.02,rateLimitOperation:`pipe0_scraper`,allowManagedConnection:!0}]}},Yc=Gc,Xc={pipeId:Wc,inputFieldMode:`static`,outputFieldMode:`static`,basePipe:U(Wc),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:qc,allowedUserConnectionProviders:[],managedProviders:[`pipe0`],deprecatedProviders:[],defaultInputRequirement:Kc(null),defaultPayload:{pipe_id:Wc,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}}}}},Zc=g(`company_name`),Qc=g(`company_profile_url`),$c=g(`company_website_url`),el=g(`cleaned_company_name`),tl=`company:identity@2`,nl=r.object({pipe_id:r.literal(tl),run_if:x(),connector:w(),config:r.object({input_fields:R(r.object({[Zc.name]:T({fieldName:Zc.name})})),output_fields:L(r.object({[Qc.name]:O({fieldName:Qc.name}),[el.name]:O({fieldName:el.name}),[$c.name]:O({fieldName:$c.name})}))}).optional()}),rl=e=>B(G(Zc,e)),il={"company-identity-v2-pipe0":{allowManagedConnection:!0,credits:{default:.3},mode:`always`,provider:`pipe0`}},al=class extends H{pipeId=tl;payload;payloadSchema=nl;billableOperations=il;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[`company-identity-v2-pipe0`]}getInputRequirement(){return rl(this.payload.config)}getRawOutputFields(){return{[Qc.name]:this.catalogOutput(Qc),[$c.name]:this.catalogOutput($c),[el.name]:this.catalogOutput(el)}}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}]}},ol=nl,sl={pipeId:tl,inputFieldMode:`static`,outputFieldMode:`static`,basePipe:U(tl),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(tl),billableOperations:il,allowedUserConnectionProviders:[],managedProviders:[`pipe0`],deprecatedProviders:[],defaultInputRequirement:rl(null),defaultPayload:{pipe_id:tl,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}}}}},cl=g(`company_website_url`),ll=g(`companyenrich_matches`),ul=`company:lookalikes:companyenrich@1`,dl=r.object({pipe_id:r.literal(ul),run_if:x(),connector:C(),config:r.object({limit:Da({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({[cl.name]:T({fieldName:cl.name})})),output_fields:L(r.object({[ll.name]:O({fieldName:ll.name})}))}).optional()}),fl=e=>B(G(cl,e)),pl={"company-lookalikes-companyenrich-v1-companyenrich":{allowManagedConnection:!0,credits:{default:.2},mode:`onSuccess`,note:`One billing event per result.`,provider:`companyenrich`}},ml=class extends H{pipeId=ul;payload;payloadSchema=dl;billableOperations=pl;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`companyenrich`]}estimateBillableOperations(){return[,,,,,].fill(`lookalikes-companyenrich`)}getInputRequirement(){return fl(this.payload.config)}getRawOutputFields(){return{[ll.name]:this.catalogOutput(ll)}}getConnectionsRequirements(){return[{provider:`companyenrich`,rateLimitRatio:1,rateLimitOperation:`company_enrich_generic`,allowManagedConnection:!0}]}},hl=dl,gl={pipeId:ul,inputFieldMode:`static`,outputFieldMode:`static`,basePipe:U(ul),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(ul),billableOperations:pl,allowedUserConnectionProviders:[`companyenrich`],managedProviders:[`companyenrich`],deprecatedProviders:[],defaultInputRequirement:fl(null),defaultPayload:{pipe_id:ul,connector:null,run_if:null,config:{limit:20,input_fields:{company_website_url:{alias:``}},output_fields:{companyenrich_matches:{alias:``,enabled:!0}}}}},_l=g(`company_website_url`),vl=g(`crustdata_companyenrich_match`),yl=`company:match:crustdata@1`,bl=r.object({pipe_id:r.literal(yl),run_if:x(),connector:C(),config:r.object({input_fields:R(r.object({[_l.name]:T({fieldName:_l.name})})),output_fields:L(r.object({[vl.name]:O({fieldName:vl.name})}))}).optional()}),xl=e=>B(G(_l,e)),Sl={"company-match-crustdata-v1-crustdata":{allowManagedConnection:!0,credits:{default:2},mode:`onSuccess`,provider:`crustdata`}},Cl=class extends H{pipeId=yl;payload;payloadSchema=bl;billableOperations=Sl;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`crustdata`]}estimateBillableOperations(){return[`company-match-crustdata-v1-crustdata`]}getInputRequirement(){return xl(this.payload.config)}getRawOutputFields(){return{[vl.name]:this.catalogOutput(vl)}}getConnectionsRequirements(){return[{provider:`crustdata`,rateLimitRatio:1,rateLimitOperation:`crustdata_company_enrich`,allowManagedConnection:!0}]}},wl=bl,Tl={pipeId:yl,inputFieldMode:`static`,outputFieldMode:`static`,basePipe:U(yl),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(yl),billableOperations:Sl,allowedUserConnectionProviders:[`crustdata`],managedProviders:[`crustdata`],deprecatedProviders:[],defaultInputRequirement:xl(null),defaultPayload:{pipe_id:yl,connector:null,run_if:null,config:{input_fields:{company_website_url:{alias:``}},output_fields:{crustdata_companyenrich_match:{alias:``,enabled:!0}}}}},El=g(`company_website_url`),Dl=g(`company_name`),Ol=g(`company_profile_url`),kl=g(`logodev_describe_match`),Al=g(`logo_url`),jl=`company:match:logodev@1`,Ml=r.object({pipe_id:r.literal(jl),run_if:x(),connector:C(),config:r.object({input_fields:R(r.object({[El.name]:T({fieldName:El.name})})),output_fields:L(r.object({[Ol.name]:O({fieldName:Ol.name}),[Al.name]:O({fieldName:Al.name}),[Dl.name]:O({fieldName:Dl.name}),[kl.name]:O({fieldName:kl.name})}))}).optional()}),Nl=e=>B(G(El,e)),Pl={"company-match-logodev-v1-logodev":{allowManagedConnection:!0,credits:{default:.1},mode:`onSuccess`,provider:`logodev`}},Fl=class extends H{pipeId=jl;payload;payloadSchema=Ml;billableOperations=Pl;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`logodev`]}estimateBillableOperations(){return[`company-match-logodev-v1-logodev`]}getInputRequirement(){return Nl(this.payload.config)}getRawOutputFields(){return{[Ol.name]:this.catalogOutput(Ol),[Dl.name]:this.catalogOutput(Dl),[Al.name]:this.catalogOutput(Al),[kl.name]:this.catalogOutput(kl)}}getConnectionsRequirements(){return[{provider:`logodev`,rateLimitRatio:1,rateLimitOperation:`logodev_describe`,allowManagedConnection:!0}]}},Il=Ml,Ll={pipeId:jl,inputFieldMode:`static`,outputFieldMode:`static`,basePipe:U(jl),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(jl),billableOperations:Pl,allowedUserConnectionProviders:[`logodev`],managedProviders:[`logodev`],deprecatedProviders:[],defaultInputRequirement:Nl(null),defaultPayload:{pipe_id:jl,connector:null,run_if:null,config:{input_fields:{company_website_url:{alias:``}},output_fields:{company_profile_url:{alias:``,enabled:!0},logo_url:{alias:``,enabled:!0},logodev_describe_match:{alias:``,enabled:!0},company_name:{alias:``,enabled:!1}}}}},Rl=`company:newssummary:website@1`,zl=g(`company_news_summary`),Bl=g(`company_website_url`),Vl=r.object({pipe_id:r.literal(Rl),run_if:x(),connector:C(),config:r.object({input_fields:R(r.object({[Bl.name]:T({fieldName:Bl.name})})),output_fields:L(r.object({[zl.name]:O({fieldName:zl.name})}))}).optional()}),Hl=e=>B(G(Bl,e)),Ul={"company-newssummary-website-v1-pipe0":{allowManagedConnection:!0,credits:{default:1},mode:`always`,provider:`pipe0`}},Wl=class extends H{pipeId=Rl;payloadSchema=Vl;billableOperations=Ul;payload;constructor(e){super(),this.payload=e}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[`company-newssummary-website-v1-pipe0`]}getInputRequirement(){return Hl(this.payload.config)}getRawOutputFields(){return{[zl.name]:this.catalogOutput(zl)}}getConnectionsRequirements(){return[{provider:`perplexity`,rateLimitRatio:1,rateLimitOperation:`perplexity_generic`,allowManagedConnection:!0}]}},Gl=Vl,Kl={pipeId:Rl,basePipe:U(Rl),inputFieldMode:`static`,outputFieldMode:`static`,label:`Company news`,executionMode:`single`,categories:[`deprecated`],lifecycle:{deprecatedOn:`2026-06-13`,replacedBy:`company:newssummary:domain@1`},description:`Find recent company news by performing a search and scrape.`,tags:[z.NEWS],docPath:W(Rl),billableOperations:Ul,allowedUserConnectionProviders:[],managedProviders:[`pipe0`],deprecatedProviders:[],defaultInputRequirement:Hl(null),defaultPayload:{pipe_id:Rl,run_if:null,connector:null,config:{input_fields:{company_website_url:{alias:``}},output_fields:{company_news_summary:{alias:``,enabled:!0}}}}},ql=g(`company_website_url`),Jl=g(`company_social_url`),Yl=g(`company_description`),Xl=g(`company_industry`),Zl=g(`company_region`),Ql=g(`headcount`),$l=g(`estimated_revenue`),eu=g(`founded_year`),tu=`company:overview@1`,nu=r.object({pipe_id:r.literal(tu),run_if:x(),connector:w(),config:r.object({input_fields:R(r.object({[ql.name]:T({fieldName:ql.name}),[Jl.name]:T({fieldName:Jl.name})})),output_fields:L(r.object({[Yl.name]:O({fieldName:Yl.name}),[Xl.name]:O({fieldName:Xl.name}),[Zl.name]:O({fieldName:Zl.name}),[Ql.name]:O({fieldName:Ql.name}),[$l.name]:O({fieldName:$l.name}),[eu.name]:O({fieldName:eu.name})}))}).optional()}),ru=e=>V(G(ql,e),G(Jl,e)),iu={"company-overview-v1-pipe0":{provider:`pipe0`,allowManagedConnection:!0,credits:{default:1},mode:`always`}},au=class extends H{pipeId=tu;payloadSchema=nu;billableOperations=iu;payload;constructor(e){super(),this.payload=e}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[`company-overview-v1-pipe0`]}getInputRequirement(){return ru(this.payload.config)}getRawOutputFields(){return{[Yl.name]:this.catalogOutput(Yl),[Xl.name]:this.catalogOutput(Xl),[Zl.name]:this.catalogOutput(Zl),[Ql.name]:this.catalogOutput(Ql),[$l.name]:this.catalogOutput($l),[eu.name]:this.catalogOutput(eu)}}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}]}},ou=nu,su={pipeId:tu,basePipe:U(tu),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:iu,defaultInputRequirement:ru(null),defaultPayload:{pipe_id:tu,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}}}}},cu=g(`company_website_url`),lu=g(`company_profile_url`),uu=g(`company_description`),du=g(`company_industry`),fu=g(`company_region`),pu=g(`headcount`),mu=g(`estimated_revenue`),hu=g(`founded_year`),gu=g(`company_name`),_u=`company:overview@2`,vu=r.object({pipe_id:r.literal(_u),run_if:x(),connector:w(),config:r.object({input_fields:R(r.object({[cu.name]:T({fieldName:cu.name}),[lu.name]:T({fieldName:lu.name})})),output_fields:L(r.object({[uu.name]:O({fieldName:uu.name}),[du.name]:O({fieldName:du.name}),[fu.name]:O({fieldName:fu.name}),[pu.name]:O({fieldName:pu.name}),[mu.name]:O({fieldName:mu.name}),[hu.name]:O({fieldName:hu.name}),[gu.name]:O({fieldName:gu.name})}))}).optional()}),yu=e=>V(G(cu,e),G(lu,e)),bu={"company-overview-v2-pipe0":{provider:`pipe0`,allowManagedConnection:!0,credits:{default:1},mode:`always`}},xu=class extends H{pipeId=_u;payloadSchema=vu;billableOperations=bu;payload;constructor(e){super(),this.payload=e}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[`company-overview-v2-pipe0`]}getInputRequirement(){return yu(this.payload.config)}getRawOutputFields(){return{[uu.name]:this.catalogOutput(uu),[du.name]:this.catalogOutput(du),[fu.name]:this.catalogOutput(fu),[pu.name]:this.catalogOutput(pu),[mu.name]:this.catalogOutput(mu),[hu.name]:this.catalogOutput(hu),[gu.name]:this.catalogOutput(gu)}}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}]}},Su=vu,Cu={pipeId:_u,basePipe:U(_u),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(_u),tags:[z.WEBSITE,z.LINKEDIN,z.FINANCIAL_DATA],allowedUserConnectionProviders:[],managedProviders:[`pipe0`],deprecatedProviders:[],billableOperations:bu,defaultInputRequirement:yu(null),defaultPayload:{pipe_id:_u,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}}}}},wu=g(`company_website_url`),Tu=g(`technology_list`),Eu=g(`spending_trend`),Du=g(`technology_match_builtwith`),Ou=`company:techstack:builtwith@1`,ku=r.object({pipe_id:r.literal(Ou),connector:C(),run_if:x(),config:r.object({input_fields:R(r.object({[wu.name]:T({fieldName:wu.name})})),output_fields:L(r.object({[Tu.name]:O({fieldName:Tu.name}),[Du.name]:O({fieldName:Du.name}),[Eu.name]:O({fieldName:Eu.name})}))}).optional()}),Au=e=>B(G(wu,e)),ju={"company-techstack-builtwith-v1-builtwith":{provider:`builtwith`,allowManagedConnection:!0,credits:{default:2},mode:`always`}},Mu=class extends H{pipeId=Ou;payload;payloadSchema=ku;billableOperations=ju;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`builtwith`]}estimateBillableOperations(){return[`company-techstack-builtwith-v1-builtwith`]}getInputRequirement(){return Au(this.payload.config)}getRawOutputFields(){return{[Tu.name]:this.catalogOutput(Tu),[Du.name]:this.catalogOutput(Du),[Eu.name]:this.catalogOutput(Eu)}}getConnectionsRequirements(){return[{provider:`builtwith`,rateLimitRatio:1,rateLimitOperation:`builtwith_generic`,allowManagedConnection:!0}]}},Nu=ku,Pu={pipeId:Ou,basePipe:U(Ou),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(Ou),billableOperations:ju,defaultInputRequirement:Au(null),defaultPayload:{pipe_id:Ou,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}}}}},Fu=`company:websiteurl:email@1`,Iu=g(`company_website_url`),Lu=g(`email`),Ru=r.object({pipe_id:r.literal(Fu),run_if:x(),connector:w(),config:r.object({input_fields:R(r.object({[Lu.name]:T({fieldName:Lu.name})})),output_fields:L(r.object({[Iu.name]:O({fieldName:Iu.name})}))}).optional()}),zu=e=>B(G(Lu,e)),Bu={"company-websiteurl-email-v1-pipe0":{credits:{default:0},allowManagedConnection:!0,mode:`always`,provider:`pipe0`}},Vu=class extends H{pipeId=Fu;payload;payloadSchema=Ru;billableOperations=Bu;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[`company-websiteurl-email-v1-pipe0`]}getInputRequirement(){return zu(this.payload.config)}getRawOutputFields(){return{[Iu.name]:this.catalogOutput(Iu)}}getConnectionsRequirements(){return[{provider:`pipe0`,rateLimitRatio:1,rateLimitOperation:`pipe0_logic`,allowManagedConnection:!0}]}},Hu=Ru,Uu={pipeId:Fu,basePipe:U(Fu),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(Fu),allowedUserConnectionProviders:[],managedProviders:[`pipe0`],deprecatedProviders:[],billableOperations:Bu,defaultInputRequirement:zu(null),defaultPayload:{pipe_id:Fu,connector:null,run_if:null,config:{input_fields:{email:{alias:``}},output_fields:{company_website_url:{alias:``,enabled:!0}}}}},Wu=`people:email:iswork@1`,Gu=g(`is_work_email`),Ku=g(`email`),qu=r.object({pipe_id:r.literal(Wu),run_if:x(),connector:w(),config:r.object({input_fields:R(r.object({[Ku.name]:T({fieldName:Ku.name})})),output_fields:L(r.object({[Gu.name]:O({fieldName:Gu.name})}))}).optional()}),Ju=e=>B(G(Ku,e)),Yu={"people-email-iswork-v1-pipe0":{provider:`pipe0`,allowManagedConnection:!0,credits:{default:0},mode:`always`}},Xu=class extends H{pipeId=Wu;payload;payloadSchema=qu;billableOperations=Yu;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[`people-email-iswork-v1-pipe0`]}getInputRequirement(){return Ju(this.payload.config)}getRawOutputFields(){return{[Gu.name]:this.catalogOutput(Gu)}}getConnectionsRequirements(){return[{provider:`pipe0`,rateLimitRatio:1,rateLimitOperation:`pipe0_logic`,allowManagedConnection:!0}]}},Zu=qu,Qu={pipeId:Wu,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(Wu),billableOperations:Yu,basePipe:U(Wu),allowedUserConnectionProviders:[],inputFieldMode:`static`,outputFieldMode:`static`,managedProviders:[`pipe0`],deprecatedProviders:[],defaultInputRequirement:Ju(null),defaultPayload:{pipe_id:Wu,run_if:null,connector:null,config:{input_fields:{email:{alias:``}},output_fields:{is_work_email:{alias:``,enabled:!0}}}}},$u=`people:email:validate:zerobounce@1`,ed=g(`work_email`),td=g(`is_email_valid`),nd=r.object({pipe_id:r.literal($u),connector:C(),run_if:x(),config:r.object({input_fields:R(r.object({[ed.name]:T({fieldName:ed.name})})),output_fields:L(r.object({[td.name]:O({fieldName:td.name})}))}).optional()}),rd=e=>B(G(ed,e)),id={"people-email-validate-zerobounce-v1-zerobounce":{provider:`zerobounce`,allowManagedConnection:!0,credits:{default:.3},mode:`always`}},ad=class extends H{pipeId=$u;payload;payloadSchema=nd;billableOperations=id;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`zerobounce`]}estimateBillableOperations(){return[`people-email-validate-zerobounce-v1-zerobounce`]}getInputRequirement(){return rd(this.payload.config)}getRawOutputFields(){return{[td.name]:this.catalogOutput(td)}}getConnectionsRequirements(){return[{provider:`zerobounce`,rateLimitRatio:1,rateLimitOperation:`zerobounce_generic`,allowManagedConnection:!0}]}},od=nd,sd={pipeId:$u,basePipe:U($u),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:id,inputFieldMode:`static`,outputFieldMode:`static`,allowedUserConnectionProviders:[`zerobounce`],managedProviders:[`zerobounce`],deprecatedProviders:[],defaultInputRequirement:rd(null),defaultPayload:{pipe_id:$u,connector:null,run_if:null,config:{input_fields:{work_email:{alias:``}},output_fields:{is_email_valid:{alias:``,enabled:!0}}}}},cd=`people:email:validate:zerobounce@2`,ld=g(`email`),ud=g(`zerobounce_validation_status`),dd=g(`zerobounce_validation_match`),fd=r.object({pipe_id:r.literal(cd),connector:C(),run_if:x(),config:r.object({input_fields:R(r.object({[ld.name]:T({fieldName:ld.name})})),output_fields:L(r.object({[dd.name]:O({fieldName:dd.name}),[ud.name]:O({fieldName:ud.name})}))}).optional()}),pd=e=>B(G(ld,e)),md={"people-email-validate-zerobounce-v2-zerobounce":{provider:`zerobounce`,allowManagedConnection:!0,credits:{default:.3},mode:`always`}},hd=class extends H{pipeId=cd;payload;payloadSchema=fd;billableOperations=md;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`zerobounce`]}estimateBillableOperations(){return[`people-email-validate-zerobounce-v2-zerobounce`]}getInputRequirement(){return pd(this.payload.config)}getRawOutputFields(){return{[ud.name]:this.catalogOutput(ud),[dd.name]:this.catalogOutput(dd)}}getConnectionsRequirements(){return[{provider:`zerobounce`,rateLimitRatio:1,rateLimitOperation:`zerobounce_generic`,allowManagedConnection:!0}]}},gd=fd,_d={pipeId:cd,basePipe:U(cd),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(cd),billableOperations:md,inputFieldMode:`static`,outputFieldMode:`static`,allowedUserConnectionProviders:[`zerobounce`],managedProviders:[`zerobounce`],deprecatedProviders:[],defaultInputRequirement:pd(null),defaultPayload:{pipe_id:cd,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 vd(e){return(e.widgets||{}).display_value?.label}function yd(e){console.dir(e,{depth:100})}function bd(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 xd(e){if(typeof e!=`object`||!e||Array.isArray(e))return e;let t={};return Object.keys(e).sort().forEach(n=>{t[n]=xd(e[n])}),t}const Sd={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 Cd=`people:identity:email:waterfall@1`,wd=g(`email`),Td=g(`company_website_url`),Ed=g(`name`),Dd=g(`job_title`),Od=g(`profile_url`),kd=g(`company_profile_url`),Ad=g(`company_name`),jd=[`findymail`,`hunter`,`crustdata`],Md=[{provider:`findymail`},{provider:`hunter`},{provider:`crustdata`}],Nd=r.object({pipe_id:r.literal(Cd),connector:C(),run_if:x(),config:r.object({providers:E({availableProviders:jd,defaultProviders:Md,sectionKey:`general`}),input_fields:R(r.object({[wd.name]:T({fieldName:wd.name})})),output_fields:L(r.object({[Ed.name]:O({fieldName:Ed.name}),[Od.name]:O({fieldName:Od.name}),[Dd.name]:O({fieldName:Dd.name}),[Td.name]:O({fieldName:Td.name}),[Ad.name]:O({fieldName:Ad.name}),[kd.name]:O({fieldName:kd.name})}))}).optional()}),Pd=e=>B(G(wd,e)),Fd={"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`}},Id=class extends H{pipeId=Cd;payload;payloadSchema=Nd;billableOperations=Fd;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 Pd(this.payload.config)}getRawOutputFields(){return{[Ed.name]:this.catalogOutput(Ed,{isPrimaryOutput:!0}),[Od.name]:this.catalogOutput(Od,{isPrimaryOutput:!0}),[Dd.name]:this.catalogOutput(Dd,{isPrimaryOutput:!0}),[Ad.name]:this.catalogOutput(Ad,{isPrimaryOutput:!0}),[kd.name]:this.catalogOutput(kd,{isPrimaryOutput:!0}),[Td.name]:this.catalogOutput(Td,{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}))}},Ld=Nd,Rd={pipeId:Cd,basePipe:U(Cd),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(Cd),managedProviders:jd,deprecatedProviders:[],allowedUserConnectionProviders:jd,inputFieldMode:`static`,outputFieldMode:`static`,billableOperations:Fd,defaultInputRequirement:Pd(null),defaultPayload:{pipe_id:Cd,connector:null,run_if:null,config:{providers:Md,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}}}}},zd=`people:match:role:waterfall@1`,Bd=g(`company_website_url`),Vd=g(`role_finder_match`),Hd=[`leadmagic`],Ud=[{provider:`leadmagic`}],Wd=r.object({pipe_id:r.literal(zd),run_if:x(),connector:C(),config:r.object({providers:E({sectionKey:`general`,defaultProviders:Ud,availableProviders:Hd}),roles:ha({sectionKey:`general`,groupPath:`config.general`,label:`Roles`,path:`config.roles`,info:`Company roles to include`,maxItems:3,minItems:1}),input_fields:R(r.object({[Bd.name]:T({fieldName:Bd.name})})),output_fields:L(r.object({[Vd.name]:O({fieldName:Vd.name})}))})}),Gd=e=>V(G(Bd,e)),Kd={"people-match-role-waterfall-v1-leadmagic":{provider:`leadmagic`,allowManagedConnection:!0,credits:{default:1},mode:`onSuccess`}},qd=class extends H{pipeId=zd;payload;payloadSchema=Wd;billableOperations=Kd;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 Gd(this.payload.config)}getRawOutputFields(){return{[Vd.name]:this.catalogOutput(Vd,{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}))}},Jd=Wd,Yd={pipeId:zd,basePipe:U(zd),managedProviders:Hd,deprecatedProviders:[],allowedUserConnectionProviders:Hd,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(zd),billableOperations:Kd,inputFieldMode:`static`,outputFieldMode:`static`,defaultInputRequirement:Gd(null),defaultPayload:{pipe_id:zd,run_if:null,connector:null,config:{roles:[],providers:Ud,input_fields:{company_website_url:{alias:``}},output_fields:{role_finder_match:{alias:``,enabled:!0}}}}},Xd=`people:mobilenumber:professionalprofile:waterfall@1`,Zd=g(`professional_profile_url`),Qd=g(`mobile_number`),$d=[`leadmagic`,`prospeo`],ef=[{provider:`leadmagic`},{provider:`prospeo`}],tf=r.object({pipe_id:r.literal(Xd),run_if:x(),connector:C(),config:r.object({providers:E({sectionKey:`general`,defaultProviders:ef,availableProviders:$d}),input_fields:R(r.object({[Zd.name]:T({fieldName:Zd.name})})),output_fields:L(r.object({[Qd.name]:O({fieldName:Qd.name})}))}).optional()}),nf=e=>B(G(Zd,e)),rf={"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`}},af=class extends H{pipeId=Xd;payload;payloadSchema=tf;billableOperations=rf;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{[Qd.name]:this.catalogOutput(Qd)}}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}))}},of=tf,sf={pipeId:Xd,basePipe:U(Xd),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:rf,defaultInputRequirement:nf(null),inputFieldMode:`static`,outputFieldMode:`static`,managedProviders:$d,deprecatedProviders:[],allowedUserConnectionProviders:$d,defaultPayload:{pipe_id:Xd,connector:null,run_if:null,config:{providers:ef,input_fields:{professional_profile_url:{alias:``}},output_fields:{mobile_number:{alias:``,enabled:!0}}}}},cf=`people:mobilenumber:workemail:waterfall@1`,lf=g(`work_email`),uf=g(`mobile_number`),df=[`leadmagic`],ff=[{provider:`leadmagic`}],pf=r.object({pipe_id:r.literal(cf),run_if:x(),connector:C(),config:r.object({providers:E({sectionKey:`general`,availableProviders:df,defaultProviders:ff}),input_fields:R(r.object({[lf.name]:T({fieldName:lf.name})})),output_fields:L(r.object({[uf.name]:O({fieldName:uf.name})}))}).optional()}),mf=e=>B(G(lf,e)),hf={"people-mobilenumber-workemail-waterfall-v1-leadmagic":{provider:`leadmagic`,allowManagedConnection:!0,credits:{default:2},mode:`onSuccess`}},gf=class extends H{pipeId=cf;payload;payloadSchema=pf;billableOperations=hf;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 mf(this.payload.config)}getRawOutputFields(){return{[uf.name]:this.catalogOutput(uf)}}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}))}},_f=pf,vf={pipeId:cf,basePipe:U(cf),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:hf,defaultInputRequirement:mf(null),inputFieldMode:`static`,outputFieldMode:`static`,allowedUserConnectionProviders:df,managedProviders:df,deprecatedProviders:[],defaultPayload:{pipe_id:cf,connector:null,run_if:null,config:{providers:ff,input_fields:{work_email:{alias:``}},output_fields:{mobile_number:{alias:``,enabled:!0}}}}},yf=`people:name:split@1`,bf=g(`name`),xf=g(`first_name`),Sf=g(`last_name`),Cf=r.object({pipe_id:r.literal(yf),connector:w(),run_if:x(),config:r.object({input_fields:R(r.object({[bf.name]:T({fieldName:bf.name})})),output_fields:L(r.object({[xf.name]:O({fieldName:xf.name}),[Sf.name]:O({fieldName:Sf.name})}))}).optional()}),wf=e=>B(G(bf,e)),Tf={"people-name-split-v1-pipe0":{provider:`pipe0`,allowManagedConnection:!0,credits:{default:0},mode:`always`}},Ef=class extends H{pipeId=yf;payload;payloadSchema=Cf;billableOperations=Tf;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[`people-name-split-v1-pipe0`]}getInputRequirement(){return wf(this.payload.config)}getRawOutputFields(){return{[xf.name]:this.catalogOutput(xf),[Sf.name]:this.catalogOutput(Sf)}}getConnectionsRequirements(){return[{provider:`pipe0`,rateLimitRatio:1,rateLimitOperation:`pipe0_logic`,allowManagedConnection:!0}]}},Df=Cf,Of={pipeId:yf,basePipe:U(yf),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(yf),billableOperations:Tf,inputFieldMode:`static`,outputFieldMode:`static`,defaultInputRequirement:wf(null),allowedUserConnectionProviders:[],managedProviders:[`pipe0`],deprecatedProviders:[],defaultPayload:{pipe_id:yf,run_if:null,connector:void 0,config:{input_fields:{name:{alias:``}},output_fields:{first_name:{alias:``,enabled:!0},last_name:{alias:``,enabled:!0}}}}},kf=`people:personalemail:profile:waterfall@1`,Af=g(`profile_url`),jf=g(`personal_email`),Mf=g(`alternate_personal_emails`),Nf=[`clado`,`leadmagic`,`mixrank`],Pf=[{provider:`leadmagic`},{provider:`mixrank`}],Ff=r.object({pipe_id:r.literal(kf),run_if:x(),connector:C(),config:r.object({providers:E({sectionKey:`general`,availableProviders:Nf,defaultProviders:Pf}),input_fields:R(r.object({[Af.name]:T({fieldName:Af.name})})),output_fields:L(r.object({[jf.name]:O({fieldName:jf.name}),[Mf.name]:O({fieldName:Mf.name})}))}).optional()}),If=e=>B(G(Af,e)),Lf={"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`}},Rf=class extends H{pipeId=kf;payload;payloadSchema=Ff;billableOperations=Lf;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 If(this.payload.config)}getRawOutputFields(){return{[jf.name]:this.catalogOutput(jf,{isPrimaryOutput:!0}),[Mf.name]:this.catalogOutput(Mf)}}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}))}},zf=Ff,Bf={pipeId:kf,basePipe:U(kf),allowedUserConnectionProviders:Nf,managedProviders:Nf,deprecatedProviders:[`clado`],label:`Personal email from LinkedIn`,executionMode:`waterfall`,categories:[`deprecated`],lifecycle:{deprecatedOn:`2026-06-13`,replacedBy:`person:personalemail:profileurl:waterfall@1`},description:`Find the personal email address of a prospect by using a professional profile URL as input.`,tags:[z.EMAIL,z.PERSONAL_EMAIL],docPath:W(kf),billableOperations:Lf,defaultInputRequirement:If(null),inputFieldMode:`static`,outputFieldMode:`static`,defaultPayload:{pipe_id:kf,connector:null,run_if:null,config:{providers:Pf,input_fields:{profile_url:{alias:``}},output_fields:{personal_email:{alias:``,enabled:!0},alternate_personal_emails:{alias:``,enabled:!0}}}}},Vf=`people:phone:profile:waterfall@1`,Hf=g(`profile_url`),Uf=g(`mobile`),Wf=[`leadmagic`,`prospeo`,`amplemarket`,`findymail`,`clado`],Gf=[{provider:`leadmagic`},{provider:`prospeo`},{provider:`amplemarket`},{provider:`findymail`}],Kf=r.object({pipe_id:r.literal(Vf),run_if:x(),connector:C(),config:r.object({providers:E({sectionKey:`general`,defaultProviders:Gf,availableProviders:Wf}),input_fields:R(r.object({[Hf.name]:T({fieldName:Hf.name})})),output_fields:L(r.object({[Uf.name]:O({fieldName:Uf.name})}))}).optional()}),qf=e=>B(G(Hf,e)),Jf={"people-phone-profile-waterfall-v1-leadmagic":{provider:`leadmagic`,allowManagedConnection:!0,credits:{default:2},mode:`onSuccess`},"people-phone-profile-waterfall-v1-clado":{provider:`clado`,allowManagedConnection:!0,credits:{default:5},mode:`onSuccess`},"people-phone-profile-waterfall-v1-prospeo":{provider:`prospeo`,allowManagedConnection:!0,credits:{default:5},mode:`onSuccess`},"people-phone-profile-waterfall-v1-findymail":{provider:`findymail`,allowManagedConnection:!0,credits:{default:6},mode:`onSuccess`},"people-phone-profile-waterfall-v1-amplemarket":{provider:`amplemarket`,allowManagedConnection:!0,credits:{default:4},mode:`onSuccess`}},Yf=class extends H{pipeId=Vf;payload;payloadSchema=Kf;billableOperations=Jf;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 qf(this.payload.config)}getRawOutputFields(){return{[Uf.name]:this.catalogOutput(Uf,{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}))}},Xf=Kf,Zf={pipeId:Vf,basePipe:U(Vf),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(Vf),tags:[z.PHONE,z.WATERFALL],billableOperations:Jf,defaultInputRequirement:qf(null),inputFieldMode:`static`,outputFieldMode:`static`,managedProviders:Wf,allowedUserConnectionProviders:Wf,deprecatedProviders:[`clado`],defaultPayload:{pipe_id:Vf,connector:null,run_if:null,config:{providers:Gf,input_fields:{profile_url:{alias:``}},output_fields:{mobile:{alias:``,enabled:!0}}}}},Qf=`people:phone:workemail:waterfall@1`,$f=g(`work_email`),ep=g(`mobile`),tp=[`leadmagic`,`amplemarket`],np=[{provider:`leadmagic`},{provider:`amplemarket`}],rp=r.object({pipe_id:r.literal(Qf),run_if:x(),connector:C(),config:r.object({providers:E({sectionKey:`general`,availableProviders:tp,defaultProviders:np}),input_fields:R(r.object({[$f.name]:T({fieldName:$f.name})})),output_fields:L(r.object({[ep.name]:O({fieldName:ep.name})}))}).optional()}),ip=e=>B(G($f,e)),ap={"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`}},op=class extends H{pipeId=Qf;payload;payloadSchema=rp;billableOperations=ap;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 ip(this.payload.config)}getRawOutputFields(){return{[ep.name]:this.catalogOutput(ep,{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}))}},sp=rp,cp={pipeId:Qf,basePipe:U(Qf),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(Qf),billableOperations:ap,defaultInputRequirement:ip(null),inputFieldMode:`static`,outputFieldMode:`static`,allowedUserConnectionProviders:tp,managedProviders:tp,deprecatedProviders:[],defaultPayload:{pipe_id:Qf,connector:null,run_if:null,config:{providers:np,input_fields:{work_email:{alias:``}},output_fields:{mobile:{alias:``,enabled:!0}}}}},lp=`people:professionalprofile:waterfall@1`,up=g(`professional_profile`),dp=g(`professional_profile_url`),fp=[`prospeo`,`icypeas`],pp=[{provider:`prospeo`},{provider:`icypeas`}],mp=r.object({pipe_id:r.literal(lp),run_if:x(),connector:C(),config:r.object({providers:E({sectionKey:`general`,availableProviders:fp,defaultProviders:pp}),input_fields:R(r.object({[dp.name]:T({fieldName:dp.name})})),output_fields:L(r.object({[up.name]:O({fieldName:up.name})}))}).optional()}),hp=e=>B(G(dp,e)),gp={"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}},_p=class extends H{pipeId=lp;payload;payloadSchema=mp;billableOperations=gp;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 hp(this.payload.config)}getRawOutputFields(){return{[up.name]:this.catalogOutput(up)}}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}))}},vp=mp,yp={pipeId:lp,basePipe:U(lp),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:fp,deprecatedProviders:[],allowedUserConnectionProviders:fp,inputFieldMode:`static`,outputFieldMode:`static`,billableOperations:gp,defaultInputRequirement:hp(null),defaultPayload:{pipe_id:lp,run_if:null,connector:null,config:{providers:pp,input_fields:{professional_profile_url:{alias:``}},output_fields:{professional_profile:{alias:``,enabled:!0}}}}},bp=`people:professionalprofileurl:email:waterfall@1`,xp=g(`email`),Sp=g(`work_email`),Cp=g(`professional_profile_url`),wp=[`leadmagic`],Tp=[{provider:`leadmagic`}],Ep=r.object({pipe_id:r.literal(bp),run_if:x(),connector:C(),config:r.object({providers:E({sectionKey:`general`,defaultProviders:Tp,availableProviders:wp}),input_fields:R(r.object({[xp.name]:T({fieldName:xp.name}),[Sp.name]:T({fieldName:Sp.name})})),output_fields:L(r.object({[Cp.name]:O({fieldName:Cp.name})}))}).optional()}),Dp=e=>V(G(xp,e),G(Sp,e)),Op={"people-professionalprofileurl-email-waterfall-v1-leadmagic":{provider:`leadmagic`,allowManagedConnection:!0,credits:{default:3.5},mode:`onSuccess`}},kp=class extends H{pipeId=bp;payload;payloadSchema=Ep;billableOperations=Op;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 Dp(this.payload.config)}getRawOutputFields(){return{[Cp.name]:this.catalogOutput(Cp)}}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}))}},Ap=Ep,jp={pipeId:bp,basePipe:U(bp),managedProviders:wp,deprecatedProviders:[],allowedUserConnectionProviders:wp,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:Op,inputFieldMode:`static`,outputFieldMode:`static`,defaultInputRequirement:Dp(null),defaultPayload:{pipe_id:bp,run_if:null,connector:null,config:{providers:Tp,input_fields:{email:{alias:``},work_email:{alias:``}},output_fields:{professional_profile_url:{alias:``,enabled:!0}}}}},Mp=`people:professionalprofileurl:name@1`,Np=g(`name`),Pp=g(`company_name`),Fp=g(`location_hint`),Ip=g(`professional_profile_url`),Lp=r.object({pipe_id:r.literal(Mp),connector:w(),run_if:x(),config:r.object({input_fields:R(r.object({[Np.name]:T({fieldName:Np.name}),[Pp.name]:T({fieldName:Pp.name}),[Fp.name]:T({fieldName:Fp.name})})),output_fields:L(r.object({[Ip.name]:O({fieldName:Ip.name})}))}).optional()}),Rp=e=>Ka(B(G(Np,e)),B(G(Pp,e)),qa(G(Fp,e))),zp={"people-professionalprofileurl-name-v1-pipe0":{provider:`pipe0`,allowManagedConnection:!0,credits:{default:.6},mode:`always`}},Bp=class extends H{pipeId=Mp;payload;payloadSchema=Lp;billableOperations=zp;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[`people-professionalprofileurl-name-v1-pipe0`]}getInputRequirement(){return Rp(this.payload.config)}getRawOutputFields(){return{[Ip.name]:this.catalogOutput(Ip)}}getConnectionsRequirements(){return[{provider:`serper`,rateLimitRatio:1,rateLimitOperation:`serper_search`,allowManagedConnection:!0}]}},Vp=Lp,Hp={pipeId:Mp,basePipe:U(Mp),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:zp,defaultInputRequirement:Rp(null),inputFieldMode:`static`,outputFieldMode:`static`,defaultPayload:{pipe_id:Mp,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}}}}},Up=`people:profile:waterfall@1`,Wp=g(`profile`),Gp=g(`profile_url`),Kp=[`prospeo`,`icypeas`,`amplemarket`,`clado`],qp=[{provider:`amplemarket`},{provider:`prospeo`},{provider:`icypeas`}],Jp=r.object({pipe_id:r.literal(Up),run_if:x(),connector:C(),config:r.object({providers:E({sectionKey:`general`,availableProviders:Kp,defaultProviders:qp}),input_fields:R(r.object({[Gp.name]:T({fieldName:Gp.name})})),output_fields:L(r.object({[Wp.name]:O({fieldName:Wp.name})}))}).optional()}),Yp=e=>B(G(Gp,e)),Xp={"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}},Zp=class extends H{pipeId=Up;payload;payloadSchema=Jp;billableOperations=Xp;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 Yp(this.payload.config)}getRawOutputFields(){return{[Wp.name]:this.catalogOutput(Wp,{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}))}},Qp=Jp,$p={pipeId:Up,basePipe:U(Up),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(Up),tags:[z.LINKEDIN,z.WATERFALL],managedProviders:Kp,deprecatedProviders:[`clado`],allowedUserConnectionProviders:Kp,inputFieldMode:`static`,outputFieldMode:`static`,billableOperations:Xp,defaultInputRequirement:Yp(null),defaultPayload:{pipe_id:Up,run_if:null,connector:null,config:{providers:qp,input_fields:{profile_url:{alias:``}},output_fields:{profile:{alias:``,enabled:!0}}}}},em=g(`work_email`),tm=g(`crustdata_person_match`),nm=g(`crustdata_profile_match_score`),rm=`people:profile:workemail:crustdata@1`,im=r.object({pipe_id:r.literal(rm),run_if:x(),connector:C(),config:r.object({input_fields:R(r.object({[em.name]:T({fieldName:em.name})})),output_fields:L(r.object({[tm.name]:O({fieldName:tm.name}),[nm.name]:O({fieldName:nm.name})}))}).optional()}),am=e=>B(G(em,e)),om={"people-profile-workemail-crustdata-v1-crustdata":{allowManagedConnection:!0,credits:{default:5},mode:`onSuccess`,provider:`crustdata`}},sm=class extends H{pipeId=rm;payload;payloadSchema=im;billableOperations=om;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`crustdata`]}estimateBillableOperations(){return[`people-profile-workemail-crustdata-v1-crustdata`]}getInputRequirement(){return am(this.payload.config)}getRawOutputFields(){return{[tm.name]:this.catalogOutput(tm),[nm.name]:this.catalogOutput(nm)}}getConnectionsRequirements(){return[{provider:`crustdata`,rateLimitRatio:1,rateLimitOperation:`crustdata_realtime_person_enrich`,allowManagedConnection:!0}]}},cm=im,lm={pipeId:rm,inputFieldMode:`static`,outputFieldMode:`static`,basePipe:U(rm),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(rm),billableOperations:om,allowedUserConnectionProviders:[`crustdata`],managedProviders:[`crustdata`],deprecatedProviders:[],defaultInputRequirement:am(null),defaultPayload:{pipe_id:rm,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}}}}},um=`people:profileurl:email:waterfall@1`,dm=g(`email`),fm=g(`work_email`),pm=g(`profile_url`),mm=[`leadmagic`],hm=[{provider:`leadmagic`}],gm=r.object({pipe_id:r.literal(um),run_if:x(),connector:C(),config:r.object({providers:E({sectionKey:`general`,defaultProviders:hm,availableProviders:mm}),input_fields:R(r.object({[dm.name]:T({fieldName:dm.name}),[fm.name]:T({fieldName:fm.name})})),output_fields:L(r.object({[pm.name]:O({fieldName:pm.name})}))}).optional()}),_m=e=>V(G(dm,e),G(fm,e)),vm={"people-profileurl-email-waterfall-v1-leadmagic":{provider:`leadmagic`,allowManagedConnection:!0,credits:{default:3.5},mode:`onSuccess`}},ym=class extends H{pipeId=um;payload;payloadSchema=gm;billableOperations=vm;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 _m(this.payload.config)}getRawOutputFields(){return{[pm.name]:this.catalogOutput(pm,{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}))}},bm=gm,xm={pipeId:um,basePipe:U(um),managedProviders:mm,deprecatedProviders:[],allowedUserConnectionProviders:mm,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(um),billableOperations:vm,inputFieldMode:`static`,outputFieldMode:`static`,defaultInputRequirement:_m(null),defaultPayload:{pipe_id:um,run_if:null,connector:null,config:{providers:hm,input_fields:{email:{alias:``},work_email:{alias:``}},output_fields:{profile_url:{alias:``,enabled:!0}}}}},Sm=`people:validate:email:zerobounce@1`,Cm=g(`work_email`),wm=g(`ip_address`),Tm=g(`is_email_valid`),Em=r.object({pipe_id:r.literal(Sm),connector:C(),run_if:x(),config:r.object({input_fields:R(r.object({[Cm.name]:T({fieldName:Cm.name}),[wm.name]:T({fieldName:wm.name})})),output_fields:L(r.object({[Tm.name]:O({fieldName:Tm.name})}))}).optional()}),Dm=e=>Ka(B(G(Cm,e)),qa(G(wm,e))),Om={"people-validate-email-zerobounce-v1-zerobounce":{provider:`zerobounce`,allowManagedConnection:!0,credits:{default:.5},mode:`always`}},km=class extends H{pipeId=Sm;payload;payloadSchema=Em;billableOperations=Om;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`zerobounce`]}estimateBillableOperations(){return[`people-validate-email-zerobounce-v1-zerobounce`]}getInputRequirement(){return Dm(this.payload.config)}getRawOutputFields(){return{[Tm.name]:this.catalogOutput(Tm)}}getConnectionsRequirements(){return[{provider:`zerobounce`,rateLimitRatio:1,rateLimitOperation:`zerobounce_generic`,allowManagedConnection:!0}]}},Am=Em,jm={pipeId:Sm,basePipe:U(Sm),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:Om,inputFieldMode:`static`,outputFieldMode:`static`,allowedUserConnectionProviders:[`zerobounce`],managedProviders:[`zerobounce`],deprecatedProviders:[],defaultInputRequirement:Dm(null),defaultPayload:{pipe_id:Sm,connector:null,run_if:null,config:{input_fields:{ip_address:{alias:``},work_email:{alias:``}},output_fields:{is_email_valid:{alias:``,enabled:!0}}}}},Mm=`people:workemail:profileurl:waterfall@1`,Nm=g(`profile_url`),Pm=g(`work_email`),Fm=g(`email_validation_status`),Im=[`hunter`,`amplemarket`,`findymail`,`leadmagic`,`crustdata`,`clado`],Lm=[`clado`],Rm=[{provider:`hunter`},{provider:`amplemarket`},{provider:`leadmagic`},{provider:`findymail`},{provider:`crustdata`}],zm=r.object({pipe_id:r.literal(Mm),connector:C(),run_if:x(),config:r.object({providers:E({availableProviders:Im,defaultProviders:Rm,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({[Nm.name]:T({fieldName:Nm.name})})),output_fields:L(r.object({[Pm.name]:O({fieldName:Pm.name}),[Fm.name]:O({fieldName:Fm.name})}))}).optional()}),Bm=e=>B(G(Nm,e)),Vm={"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`}},Hm=class extends H{pipeId=Mm;payload;payloadSchema=zm;billableOperations=Vm;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 Bm(this.payload.config)}getRawOutputFields(){return{[Pm.name]:this.catalogOutput(Pm,{isPrimaryOutput:!0}),[Fm.name]:this.catalogOutput(Fm,{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}))}},Um=zm,Wm={pipeId:Mm,basePipe:U(Mm),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(Mm),managedProviders:Im,allowedUserConnectionProviders:Im,deprecatedProviders:Lm,inputFieldMode:`static`,outputFieldMode:`static`,billableOperations:Vm,defaultInputRequirement:Bm(null),defaultPayload:{pipe_id:Mm,connector:null,run_if:null,config:{providers:Rm,allow_catch_all_emails:!0,allow_risky_emails:!0,input_fields:{profile_url:{alias:``}},output_fields:{work_email:{alias:``,enabled:!0},email_validation_status:{alias:``,enabled:!0}}}}},Gm=`people:workemail:waterfall@1`,Km=g(`name`),qm=g(`company_website_url`),Jm=g(`company_name`),Ym=g(`work_email`),Xm=g(`email_validation_status`),Zm=[`leadmagic`,`prospeo`,`amplemarket`,`hunter`,`icypeas`,`findymail`],Qm=[{provider:`leadmagic`},{provider:`prospeo`},{provider:`amplemarket`},{provider:`hunter`},{provider:`icypeas`},{provider:`findymail`}],$m=r.object({pipe_id:r.literal(Gm),connector:C(),run_if:x(),config:r.object({providers:E({availableProviders:Zm,defaultProviders:Qm,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({[Km.name]:T({fieldName:Km.name}),[qm.name]:T({fieldName:qm.name}),[Jm.name]:T({fieldName:Jm.name})})),output_fields:L(r.object({[Ym.name]:O({fieldName:Ym.name}),[Xm.name]:O({fieldName:Xm.name})}))}).optional()}),eh=e=>Ka(B(G(Km,e)),V(G(qm,e),G(Jm,e))),th={"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`}},nh=class extends H{pipeId=Gm;payload;payloadSchema=$m;billableOperations=th;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 eh(this.payload.config)}getRawOutputFields(){return{[Ym.name]:this.catalogOutput(Ym,{isPrimaryOutput:!0}),[Xm.name]:this.catalogOutput(Xm,{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}))}},rh=$m,ih={pipeId:Gm,basePipe:U(Gm),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(Gm),managedProviders:Zm,deprecatedProviders:[],allowedUserConnectionProviders:Zm,inputFieldMode:`static`,outputFieldMode:`static`,billableOperations:th,defaultInputRequirement:eh(null),defaultPayload:{pipe_id:Gm,connector:null,run_if:null,config:{providers:Qm,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}}}}},ah=`email:iswork@1`,oh=g(`is_work_email`),sh=g(`email`),ch=r.object({pipe_id:r.literal(ah),run_if:x(),connector:w(),config:r.object({input_fields:R(r.object({[sh.name]:T({fieldName:sh.name})})),output_fields:L(r.object({[oh.name]:O({fieldName:oh.name})}))}).optional()}),lh=e=>B(G(sh,e)),uh={"email-iswork-v1-pipe0":{provider:`pipe0`,allowManagedConnection:!0,credits:{default:0},mode:`always`}},dh=class extends H{pipeId=ah;payload;payloadSchema=ch;billableOperations=uh;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[`email-iswork-v1-pipe0`]}getInputRequirement(){return lh(this.payload.config)}getRawOutputFields(){return{[oh.name]:this.catalogOutput(oh)}}getConnectionsRequirements(){return[{provider:`pipe0`,rateLimitRatio:1,rateLimitOperation:`pipe0_logic`,allowManagedConnection:!0}]}},fh=ch,ph={pipeId:ah,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(ah),billableOperations:uh,basePipe:U(ah),allowedUserConnectionProviders:[],inputFieldMode:`static`,outputFieldMode:`static`,managedProviders:[`pipe0`],deprecatedProviders:[],defaultInputRequirement:lh(null),defaultPayload:{pipe_id:ah,run_if:null,connector:null,config:{input_fields:{email:{alias:``}},output_fields:{is_work_email:{alias:``,enabled:!0}}}}};function mh(e,t){return typeof t==`string`?t:t(e)}function hh(e,t){return typeof t==`string`||t===null?t:t(e)}function gh(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:mh(e,a[r].type),format:hh(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 _h(e,t){for(let n of e.pipes){let r=n.getOutputFields();if(r[t])return{type:mh(e,r[t].type),format:hh(e,r[t].format)}}let n=e.derivedInputFields[t];if(n)return{type:n.type,format:null}}function vh(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=qr(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=>_h(t,e)?.type||n,format:r};a.push(t.required?B(i):qa(i))}return Ka(...a)}function yh(e){let t=new Set;for(let n of e)if(n)try{let e=qr(n);for(let n of e.secrets)t.add(n)}catch{}return[...t]}function bh(e){let t=new Set;for(let n of e)if(n)try{let e=qr(n);for(let n of e.constants)t.add(n)}catch{}return[...t]}const xh=`email:send:gmail@1`,Sh=g(`gmail_email_success`),Ch=r.object({pipe_id:r.literal(xh),connector:sa(),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:mt,exampleValue:ht}},role_finder_match:{label:`Role finder match`,type:`json`,format:`json_object`,description:`Result of a role finder operation`,jsonMeta:{zodSchema:Zt,exampleValue:Qt}},amplemarket_person_match:{label:`Person match`,type:`json`,format:`json_object`,description:`Person match object as returned by Amplemarket`,jsonMeta:{zodSchema:Le,exampleValue:Re}},amplemarket_company_match:{label:`Company match`,type:`json`,format:`json_object`,description:`Company match object as returned by Amplemarket`,jsonMeta:{zodSchema:Fe,exampleValue:Ie}},companyenrich_matches:{label:`CompanyEnrich matches`,type:`json`,format:`json_object`,description:`CompanyEnrich response list.`,jsonMeta:{zodSchema:r.array(it),exampleValue:[at]}},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:Nt,zodSchema:Mt}},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:Yt,exampleValue:Xt},format:`json_object`},professional_profile_url:{label:`LinkedIn Profile URL`,type:`string`,format:`profile_url`,description:`A person's LinkedIn profile URL.`,jsonMeta:null}},yn={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=hn(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=_n(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=_n(e);return{display_value:t?{label:t}:void 0,icon:{key:`linkedin`}}}},company_profile_url:{getStaticWidgets(e){let t=_n(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:Pe.linkedin}}}},crustdata_post_list:{getStaticWidgets(e){return{entity_logo:{entity:`LinkedIn`,image_url:Pe.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{...vn[e],name:e}}function bn(e,t){if(Sn(e,t))return yn[e]}function xn(e){return e in vn}function Sn(e,t){return e in vn?vn[e].format===t:!1}const Cn={completed:`Completed`,failed:`Failed`,no_result:`No result`,pending:`Pending`,processing:`Processing`,queued:`Queued`,skipped:`Skipped`};function wn(e){return Cn[e]}const Tn=(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},En=(e,t)=>n=>{let r=e(n);return r!=null&&r!==``?{disabled:!1}:{disabled:!0,message:t}},Dn=(...e)=>t=>{for(let n of e){let e=n(t);if(e.disabled)return e}return{disabled:!1}},On=(...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 kn(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 An=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(`.`)),jn=r.enum(`pipe0.findymail.crustdata.hunter.zerobounce.millionverifier.googlemaps.gemini.anthropic.leadmagic.mixrank.builtwith.perplexity.serper.icypeas.prospeo.clado.resend.slack.gmail.firecrawl.exa.openai.companyenrich.logodev.amplemarket.parallel.luma.postgres.databricks`.split(`.`)),Mn=r.enum([`production`,`sandbox`]),Nn=`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(`.`),Pn=r.enum(Nn),Fn=[`string`,`number`,`boolean`,`json`,`unknown`],In=r.enum(Fn),Ln=r.union([r.number(),r.string()]),Rn=r.union([r.literal(`completed`),r.literal(`failed`),r.literal(`pending`),r.literal(`queued`),r.literal(`processing`),r.literal(`no_result`),r.literal(`skipped`)]),zn=r.union([r.string().min(1),r.number(),r.boolean(),r.null(),r.record(r.string(),r.unknown()),r.array(r.unknown())]),Bn=r.object({example_value:r.any().nullable(),schema:r.any().nullable()}),Vn=r.object({}),Hn=Vn.extend({image_url:r.string().url().describe(`URL to the provider's logo image.`),entity:r.string().describe(`The name of the entity.`)}),Un=Vn.extend({emoji:r.string().describe(`Country flag emoji.`)}),Wn=Vn.extend({image_url:r.url().describe(`URL to the provider's logo image.`),name:r.string().describe(`The name of the avatar owner.`)}),Gn=Vn.extend({attempted_providers:r.array(r.object({provider:jn})),available_providers:r.array(jn),successful_provider:jn.optional()}),Kn=r.enum([`linkedin`,`job`]),qn=Vn.extend({key:Kn}).optional(),Jn=r.object({result_status:r.enum([`completed`,`failed`])}).optional(),Yn=r.object({list:r.array(r.object({source:r.string(),description:r.string().optional(),url:r.string()}))}).optional(),Xn=r.object({numeric:r.int().min(1).max(5)}).optional(),Zn=r.object({display_value:r.object({label:r.string().optional()}),entity_logo:Hn.optional(),location_indicator:Un.optional(),avatar:Wn.optional(),waterfall:Gn.optional(),icon:qn,action_summary:Jn,sources:Yn,confidence:Xn}).partial().describe(`A map of widgets associated with this field for UI display, keyed by widget type.`),Qn=r.object({code:r.string(),message:r.string(),path:r.string().optional()}),$n=r.object({code:r.string(),summary:r.string(),message:r.string()}),er=[`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`],tr=r.enum(er);tr.nullable();const nr=r.object({type:In,label:r.string().nullable().optional(),format:tr.nullable().optional(),json_metadata:Bn.nullable().optional()}),rr=r.record(r.string(),nr),ir=r.enum([...Nn,`input`]).nullable(),ar=r.enum([...Nn,`input`,`system`]).nullable(),or=r.object({ref:ir,config_hash:r.string().nullable()}),sr=r.object({ref:ar,environment:Mn.nullable(),config_hash:r.string().nullable(),input_hash:r.string().nullable()}),cr=r.object({value:zn,status:Rn,type:In,reason:$n.nullable(),claimed_by:or,resolved_by:sr.nullable(),widgets:Zn.optional(),format:tr.nullable()}),lr=r.object({value:zn,status:Rn,reason:$n.nullable().optional(),type:In.optional(),format:tr.nullable().optional(),claimed_by:or.optional(),resolved_by:sr.nullable().optional(),widgets:Zn.optional()}),ur=r.record(r.string(),r.union([zn,lr])).openapi(`PipesInput`),dr=r.object({id:Ln,fields:r.record(Ln,cr)}),fr=r.object({type:r.literal(`catalog`),fieldName:r.string().min(1)}),pr=r.object({type:In,label:r.string(),added_by:r.object({ref:r.union([Pn,r.literal(`input`)]),config_hash:r.string().nullable(),pipe_index:r.number().nullable()}),format:tr.nullable(),is_primary_output:r.boolean()}),mr=r.record(r.string(),pr),hr=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:tr.nullable().default(null),label:r.string().optional(),type:In})})).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)})})}),gr=r.enum([`eq`,`neq`,`gt`,`gte`,`lt`,`lte`,`contains`]),_r={eq:`equals`,neq:`not equals`,gt:`greater than`,gte:`greater than or equal`,lt:`less than`,lte:`less than or equal`,contains:`contains`},vr=[`eq`,`neq`,`gt`,`gte`,`lt`,`lte`,`contains`],yr=[`eq`,`neq`],br=r.object({type:r.literal(`vault`),connection:r.string()}),_=r.object({strategy:r.enum([`first`]).default(`first`),connections:r.array(br)}).nullable().optional(),xr=r.object({strategy:r.enum([`first`]).default(`first`),connections:r.array(br).min(1,{message:`Provide your own credentials to use this object.`})},{error:`Provide your own credentials to use this object.`}),Sr=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(),Cr=r.enum(vr),wr=r.enum(yr),Tr=r.enum([`failed`,`no_result`,`completed`,`skipped`]),Er=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:Cr.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:wr.describe(`Status comparison operator: "eq" or "neq".`),value:Tr.describe(`Field status to compare against: "completed", "no_result", "failed", or "skipped".`)})])).min(1).describe(`Array of conditions to evaluate. Each condition checks either a field value or its resolution status.`)}).describe(`Condition block. All conditions are combined with the chosen logic (and/or).`)}).describe(`Run-if gate for a pipe. When set, the pipe only runs on records matching the conditions. Example: { "when": { "logic": "and", "conditions": [{ "property": "status", "field_name": "work_email", "operator": "neq", "value": "no_result" }] } }`),Dr={pipe0:{name:`pipe0`,label:`pipe0`,description:`A framework for lead and company data enrichment.`,url:`https://pipe0.com`,public:!0,hasManagedConnections:!0,allowsUserConnections:!1,connectionType:`api_key`,logoUrl:`https://imagedelivery.net/3B3AWuP94-S3Ro5eEac6JA/52f2d955-d9f3-4139-2c13-63cfd568ed00/icon`,background:{light:`#F4F4F5`,dark:`#1F1F23`},oAuthConfig:null},findymail:{name:`findymail`,label:`FindyMail`,description:`Find verified emails.`,url:`https://findymail.com`,public:!1,hasManagedConnections:!0,allowsUserConnections:!0,connectionType:`api_key`,oAuthConfig:null,logoUrl:`https://imagedelivery.net/3B3AWuP94-S3Ro5eEac6JA/9e8ce38d-a49d-42a3-4317-506f7fbec900/icon`,background:{light:`#D4F4DD`,dark:`#143822`}},hunter:{name:`hunter`,label:`HunterMail`,description:`Find email addresses and send cold emails`,url:`https://hunter.io`,public:!1,hasManagedConnections:!0,allowsUserConnections:!0,oAuthConfig:null,connectionType:`api_key`,logoUrl:`https://imagedelivery.net/3B3AWuP94-S3Ro5eEac6JA/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},anthropic:{name:`anthropic`,label:`Anthropic`,description:`Anthropic's Claude AI models`,url:`https://www.anthropic.com`,public:!0,hasManagedConnections:!0,allowsUserConnections:!0,connectionType:`api_key`,logoUrl:`https://imagedelivery.net/3B3AWuP94-S3Ro5eEac6JA/8f2b7ff3-12a6-4c55-31fd-460b9f461300/icon`,background:{light:`#F0EEE6`,dark:`#2B2A26`},oAuthConfig:null},slack:{name:`slack`,label:`Slack`,description:`A modern business chat application.`,url:`https://slack.com`,public:!0,hasManagedConnections:!1,allowsUserConnections:!0,connectionType:`oauth_token`,logoUrl:`https://imagedelivery.net/3B3AWuP94-S3Ro5eEac6JA/676e823c-c926-4b0b-465c-121b9d1c3300/icon`,background:{light:`#F1E0FF`,dark:`#2A0E44`},oAuthConfig:{}},companyenrich:{name:`companyenrich`,label:`CompanyEnrich`,description:`A company enrichment service.`,url:`https://companyenrich.com`,public:!0,hasManagedConnections:!0,allowsUserConnections:!0,connectionType:`api_key`,logoUrl:`https://imagedelivery.net/3B3AWuP94-S3Ro5eEac6JA/e80b3a16-7b36-4733-bcbe-46f471d33100/icon`,background:{light:`#DCEEFF`,dark:`#0E2C4A`},oAuthConfig:{}},mixrank:{name:`mixrank`,label:`MixRank`,description:`Ultra-high-frequency technographic and people data for your data teams.`,url:`https://mixrank.com/`,hasManagedConnections:!0,allowsUserConnections:!1,connectionType:`api_key`,oAuthConfig:{},public:!0,logoUrl:`https://imagedelivery.net/3B3AWuP94-S3Ro5eEac6JA/a29f3095-b3f9-4b12-d21b-1c506ccd7200/icon`,background:{light:`#FFE5D4`,dark:`#3A1D08`}},clado:{name:`clado`,label:`Clado`,description:`A data provider deploying 10^5 AI agents to find contact information.`,public:!0,hasManagedConnections:!0,allowsUserConnections:!0,connectionType:`api_key`,url:`https://clado.ai`,logoUrl:`https://imagedelivery.net/3B3AWuP94-S3Ro5eEac6JA/fdf3d2d0-70be-45c3-2fe5-a8c5cac55a00/icon`,background:{light:`#E8E8EC`,dark:`#1A1A1F`},oAuthConfig:null},gmail:{name:`gmail`,label:`Gmail`,description:`Google's email service`,public:!0,hasManagedConnections:!1,allowsUserConnections:!0,connectionType:`oauth_token_bundle`,url:`https://mail.google.com`,logoUrl:`https://imagedelivery.net/3B3AWuP94-S3Ro5eEac6JA/8da8ab6b-7f7e-4c42-6abf-212ea537db00/icon`,background:{light:`#FFD8D8`,dark:`#45100F`},oAuthConfig:{}},resend:{name:`resend`,label:`Resend`,description:`An email platform built for developers.`,public:!0,hasManagedConnections:!1,allowsUserConnections:!0,url:`https://clado.ai`,connectionType:`api_key`,logoUrl:`https://imagedelivery.net/3B3AWuP94-S3Ro5eEac6JA/7c88f71b-8472-40f4-4bec-0e77eac30400/icon`,background:{light:`#EDEDEE`,dark:`#1A1A1C`},oAuthConfig:null},firecrawl:{name:`firecrawl`,label:`Firecrawl`,description:`Firecrawl is an API service that takes a URL, crawls it, and converts it into clean markdown. Firecrawl crawls all accessible subpages and gives you clean markdown for each. No sitemap required.`,public:!0,hasManagedConnections:!0,allowsUserConnections:!0,url:`https://www.firecrawl.dev`,connectionType:`api_key`,logoUrl:`https://imagedelivery.net/3B3AWuP94-S3Ro5eEac6JA/5c318569-7bf4-4276-a3f2-1f25530f7f00/icon`,background:{light:`#FFE5CC`,dark:`#3A1A05`},oAuthConfig:null},exa:{name:`exa`,label:`Exa`,description:`Exa is a search engine built for AI.`,public:!0,hasManagedConnections:!0,allowsUserConnections:!0,url:`https://exa.ai/`,connectionType:`api_key`,logoUrl:`https://imagedelivery.net/3B3AWuP94-S3Ro5eEac6JA/8ae69780-4506-4952-a90e-02e70b06af00/icon`,background:{light:`#D8DCFF`,dark:`#14154A`},oAuthConfig:null},openai:{name:`openai`,label:`OpenAI`,description:`Foundational AI company based out of San Francisco.`,public:!0,hasManagedConnections:!0,allowsUserConnections:!0,url:`https://openai.com/`,connectionType:`api_key`,logoUrl:`https://imagedelivery.net/3B3AWuP94-S3Ro5eEac6JA/7ac79c3a-bccb-4ed4-d6e5-7b300b2fd300/icon`,background:{light:`#D8EFE4`,dark:`#0C2A1C`},oAuthConfig:null},millionverifier:{name:`millionverifier`,label:`MillionVerifier`,description:`E-Mail validation service.`,public:!0,hasManagedConnections:!0,allowsUserConnections:!0,url:`https://www.millionverifier.com/`,connectionType:`api_key`,logoUrl:`https://imagedelivery.net/3B3AWuP94-S3Ro5eEac6JA/7a8bd9cb-efeb-492e-3f4c-311c9492b800/icon`,background:{light:`#D8F0DB`,dark:`#0E3215`},oAuthConfig:null},logodev:{name:`logodev`,label:`Logo.dev`,description:`Every company logo, one simple API.`,public:!0,hasManagedConnections:!0,allowsUserConnections:!0,url:`https://www.logo.dev/`,connectionType:`api_key`,logoUrl:`https://imagedelivery.net/3B3AWuP94-S3Ro5eEac6JA/1defa51b-5c01-4034-1030-60f68aa46400/icon`,background:{light:`#F4ECD4`,dark:`#2C2406`},oAuthConfig:null},crustdata:{name:`crustdata`,label:`Crustdata`,description:`Real-time company & people data`,public:!0,hasManagedConnections:!0,allowsUserConnections:!0,url:`https://crustdata.com/`,connectionType:`api_key`,logoUrl:`https://imagedelivery.net/3B3AWuP94-S3Ro5eEac6JA/fa05be24-d174-40f0-69c2-4fdb43c6be00/icon`,background:{light:`#FFE2D2`,dark:`#3C1A08`},oAuthConfig:null},amplemarket:{name:`amplemarket`,label:`Amplemarket`,description:`Sales data platform`,public:!0,hasManagedConnections:!0,allowsUserConnections:!0,url:`https://www.amplemarket.com`,connectionType:`api_key`,logoUrl:`https://imagedelivery.net/3B3AWuP94-S3Ro5eEac6JA/adecf16b-4187-409b-d77f-16fc07fc6100/icon`,background:{light:`#FFD8E1`,dark:`#45102A`},oAuthConfig:null},parallel:{name:`parallel`,label:`Parallel`,description:`Agentic web search & research APIs purpose-built for AI agents.`,public:!0,hasManagedConnections:!0,allowsUserConnections:!0,url:`https://parallel.ai`,connectionType:`api_key`,logoUrl:`https://imagedelivery.net/3B3AWuP94-S3Ro5eEac6JA/13d4ae54-9400-4577-8fbf-c96021fb0000/icon`,background:{light:`#E0E5FF`,dark:`#0F1A3D`},oAuthConfig:null},luma:{name:`luma`,label:`Luma`,description:`Delightful events, calendars, and ticketing for communities.`,public:!0,hasManagedConnections:!1,allowsUserConnections:!0,url:`https://lu.ma`,connectionType:`api_key`,logoUrl:`https://imagedelivery.net/3B3AWuP94-S3Ro5eEac6JA/ed6cf16b-e69e-4f90-7718-85e4600fff00/icon`,background:{light:`#FFF0E6`,dark:`#3A1F0F`},oAuthConfig:null},postgres:{name:`postgres`,label:`PostgreSQL`,description:`Connect your own PostgreSQL database and query it read-only.`,url:`https://www.postgresql.org`,public:!0,hasManagedConnections:!1,allowsUserConnections:!0,connectionType:`connection_string`,logoUrl:`https://imagedelivery.net/3B3AWuP94-S3Ro5eEac6JA/eb8b2802-8280-45c3-ee08-a24aad6a0a00/icon`,background:{light:`#DCE9F5`,dark:`#0B2A45`},oAuthConfig:null},databricks:{name:`databricks`,label:`Databricks`,description:`Query your Databricks SQL warehouse read-only via a service principal.`,url:`https://www.databricks.com`,public:!0,hasManagedConnections:!1,allowsUserConnections:!0,connectionType:`databricks`,logoUrl:`https://imagedelivery.net/3B3AWuP94-S3Ro5eEac6JA/07b73e49-e1fa-445b-865e-2b7dc2641700/icon`,background:{light:`#F5E6DC`,dark:`#3A1B0B`},oAuthConfig:null}},Or=[`if`,`elsif`,`else`,`endif`,`unless`,`endunless`,`for`,`endfor`,`break`,`continue`,`output`],kr=[`json`,`escape`,`escape_once`,`default`,`upcase`,`downcase`,`size`,`join`,`first`,`last`,`replace`,`truncate`,`strip`,`newline_to_br`,`url_encode`],Ar=/^[A-Z][A-Z0-9_]*$/,jr=/^[A-Z][A-Z0-9_]*$/,Mr=/^[a-zA-Z_][a-zA-Z0-9_]*$/,Nr=`SECRETS`,Pr=`CONSTANTS`,Fr=new Set(Or),Ir=new Set(kr),Lr=e=>`{${e}}`;var Rr=class extends i{constructor(e){super(),this.values=e}liquidMethodMissing(e){let t=String(e);if(!Ar.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]}},zr=class extends i{constructor(e){super(),this.values=e}liquidMethodMissing(e){let t=String(e);if(!jr.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 Br(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(!Mr.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 Vr(){let e=new a({strictVariables:!1,strictFilters:!0,jsTruthy:!0,greedy:!1,catchAllErrors:!1,ownPropertyOnly:!0});e.registerTag(`output`,{parse(e,t){let n=Br(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(Lr(n.name))}});for(let t of Object.keys(e.tags))Fr.has(t)||delete e.tags[t];for(let t of Object.keys(e.filters))Ir.has(t)||delete e.filters[t];return e}let Hr=null;function Ur(){return Hr||=Vr(),Hr}async function Wr(e,t,n={}){let r=Ur(),i=n.renderLimitMs??250,a={...t.inputs??{},[Nr]:new Rr(t.secrets??{}),[Pr]:new zr(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 Gr(e,t,n={}){let r=Ur(),i=n.renderLimitMs??250,a={...t.inputs??{},[Nr]:new Rr(t.secrets??{}),[Pr]:new zr(t.constants??{})},o=r.parseAndRenderSync(e,a,{globals:{__outputAllowed:n.outputAllowed===!0},renderLimit:i});return String(o)}function Kr(e){return Ur().parse(e)}function qr(e){let t=Ur().parse(e),n={scopeStack:[],guardStack:[],inputs:new Map,secrets:new Set,constants:new Set,outputs:[],forDepth:0};Jr(t,n);let r={};for(let[e,t]of n.inputs)r[e]={required:t.unguardedRefs>0};return{inputs:r,secrets:[...n.secrets],constants:[...n.constants],outputs:n.outputs}}function Jr(e,t){for(let n of e)Yr(n,t)}function Yr(e,t){let n=e;if(n.value&&typeof n.value==`object`&&`filters`in n.value&&`initial`in n.value){ei(n.value,t,!1);return}if(typeof n.name==`string`){Xr(n,t);return}}function Xr(e,t){switch(e.name){case`for`:Zr(e,t);return;case`if`:case`unless`:Qr(e,t);return;case`output`:$r(e,t);return;case`break`:case`continue`:return;default:throw Error(`Unhandled liquid tag in analyzer: ${e.name}`)}}function Zr(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&&ti(e.collection,t,!1);let n=typeof e.variable==`string`?e.variable:null;n&&t.scopeStack.push(n),Jr(Array.isArray(e.templates)?e.templates:[],t),n&&t.scopeStack.pop(),Jr(Array.isArray(e.elseTemplates)?e.elseTemplates:[],t),--t.forDepth}function Qr(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=ii(i.initial)),a&&t.guardStack.push(a),i&&typeof i==`object`&&ei(i,t,!1),Jr(r.templates,t),a&&t.guardStack.pop()}Jr(Array.isArray(e.elseTemplates)?e.elseTemplates:[],t)}function $r(e,t){let n=e.outputDecl;if(!n){let t=e.token?.args;typeof t==`string`&&(n=Br(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 ei(e,t,n){let r=e.filters.some(e=>e.name===`default`),i=n||r;for(let n of e.initial.postfix)ai(n)&&ri(n,t,i);for(let n of e.filters)for(let e of n.args)ni(e,t)}function ti(e,t,n){ai(e)&&ri(e,t,n)}function ni(e,t){if(Array.isArray(e)){let n=e[1];n&&ti(n,t,!1)}else ti(e,t,!1)}function ri(e,t,n){let r=e.props;if(r.length===0)return;let i=r[0];if(!i||!oi(i))return;let a=i.content;if(t.scopeStack.includes(a))return;if(a===`SECRETS`){let e=r[1];if(!e||!oi(e))throw Error(`Invalid SECRETS reference β expected SECRETS.KEY (got ${li(r)}).`);let n=e.content;if(!Ar.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||!oi(e))throw Error(`Invalid CONSTANTS reference β expected CONSTANTS.KEY (got ${li(r)}).`);let n=e.content;if(!jr.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 ii(e){if(e.postfix.length===1){let t=e.postfix[0];if(t&&ai(t)&&t.props.length===1){let e=t.props[0];if(e&&oi(e))return e.content}}if(e.postfix.length===3){let[t,n,r]=e.postfix;if(t&&n&&r&&ai(t)&&t.props.length===1){let e=t.props[0];if(e&&oi(e)&&si(n)&&ci(r,[`==`,`!=`]))return e.content}}return null}function ai(e){return e.kind===o.PropertyAccess}function oi(e){return!!e&&typeof e==`object`&&e.kind===o.Word}function si(e){if(e.kind!==o.Literal)return!1;let t=e.literal;return t===`nil`||t===`null`}function ci(e,t){return e.kind===o.Operator?t.includes(e.operator):!1}function li(e){let t=[];for(let n of e)n&&oi(n)?t.push(n.content):t.push(`?`);return t.join(`.`)}function ui(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:jn.parse(n),id:r}}catch{throw Error(`Connection string ${e}: Failed to parse provider name.`)}}function di(e){return`${e.provider}_${e.id}`}const fi=new s;function pi(e){return fi.validateSchema(e)}function mi(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 hi=[`gemini-flash-latest`,`openai-gpt-latest`,`openai-gpt-mini-latest`,`anthropic-opus-latest`],gi={"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`},"anthropic-opus-latest":{provider:`anthropic`,rateLimitOperation:`anthropic_opus`,rateLimitRatio:1,allowManagedConnection:!0,defaultCredits:1,billingMode:`always`}};function _i(e,t){let n={};for(let r of hi){let i=gi[r],a=`${e}-${r}`;n[a]={credits:{default:t?.[r]??i.defaultCredits},allowManagedConnection:!0,provider:i.provider,mode:i.billingMode}}return n}function vi(e,t){return`${t}-${e}`}function yi(e){let t=gi[e];if(!t)throw Error(`Unknown AI model: ${e}`);return[t.provider]}function bi(e){let t=gi[e];if(!t)throw Error(`Unknown AI model: ${e}`);return[{provider:t.provider,rateLimitRatio:t.rateLimitRatio,rateLimitOperation:t.rateLimitOperation,allowManagedConnection:t.allowManagedConnection}]}function xi(){let e=new Set;for(let t of hi)e.add(gi[t].provider);return[...e]}function Si(e){if(!e?.requires)return;let t=[];e.requires.connection&&t.push(Tn(e.requires.connection));for(let n of e.requires.fields??[])t.push(En(e=>n.split(`.`).reduce((e,t)=>e==null?e:e[t],e),`Set ${n} first`));if(t.length!==0)return t.length===1?t[0]:Dn(...t)}function Ci(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=kn(e,n,t),s=xn(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())])},wi=(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},Ti=(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},Ei=/^\s*\{\{\s*[a-zA-Z_][a-zA-Z0-9_.]*(?:\s*\|\s*[^}]+)?\s*\}\}\s*$/,Di=/\{\{|\{%/,Oi=(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=Ei.test(e),i=Di.test(e);!r&&i&&t.issues.push({code:`custom`,input:e,path:[n],message:`Each entry must be either plain text or a single field reference β not mixed.`})})}),n=e.minItems?n.min(e.minItems):n.default([]);let r={type:`tagged_ordered_multi_create_input`,...e};if(t===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},ki=(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)=>{ra({value:e.key,issues:t.issues},!1,[n,`key`]),ra({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},Ai=(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},ji=()=>{let e=hr;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}=Ci(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},Mi=(e,t)=>{let n=r.array(r.object({provider:r.enum(e.availableProviders)})).max(e.maxItems||99).min(1).default(e.defaultProviders),i=e.availableProviders.map(t=>{let n=e.providerCredits?.[t];return{value:t,label:Dr[t].label,widgets:{provider_logo:{provider:t},...typeof n==`number`?{pricing:{credits:n}}:{}}}});return t.add(n,{label:`Provider sequence`,description:``,path:`config.providers`,groupPath:`config.providers`,type:`providers_input`,options:i,defaultProviders:e.defaultProviders,maxItems:e.maxItems,sectionKey:e.sectionKey}),n},Ni=(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},Pi=(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},Fi=(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},Ii=(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},Li=(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},Ri=(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},zi=(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},Bi=(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},Vi=(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})},Hi=(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},Ui=(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},Wi=(e,t)=>{let n=b.json_schema_input,r=e.required?n:n.optional();return r.check(e=>{pi(e.value)||e.issues.push({code:`custom`,input:e.value,message:`JSON schema is invalid. Check your input.`})}),e.allowEmpty||(r=r.check(e=>{mi(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},Gi=(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},Ki=({billableOperations:e,...t},n)=>{let i=r.enum(hi).default(t.defaultValue||`gemini-flash-latest`);return n.add(i,{type:`select_input`,options:hi.map(t=>{let n=e[Object.keys(e).find(e=>e.endsWith(`-${t}`))];if(!n)throw Error(`Unable to find billing info for model ${t}`);return{label:t,value:t,widgets:{logo:{url:Dr[gi[t].provider].logoUrl},pricing:{credits:n.credits.default}}}}),required:!0,description:``,label:`AI Models`,...t}),i},qi=(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},Ji=(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??Si(e.optionsDef);return t.add(r,{type:`context_select_input`,...e,enabledIf:i,options:[]}),r},Yi=(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},Xi=(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},Zi=(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 Qi(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=Er.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},$i={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`}},ea={general:1,pagination:2,"config.filters":3,pipe_io:10};function ta({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 na=({schema:e,groupPathMatch:t,extractFromSchema:n,sectionOrder:i=ea,sectionMap:a=$i,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=ta({fieldMetadata:i,store:o,formResolvers:s});e&&n.fields.push(e)}else{let n=t[i.groupPath],r=ta({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 ra(e,t,n=[]){let r=e.value;if(!(typeof r!=`string`||!r))try{let i=qr(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 ia=e=>{let t=(e.supportedTags??[]).includes(`output`),n=r.object({template:r.string().min(10).check(e=>ra(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},aa=e=>{let t=r.string();e.required&&(t=t.min(1));let n=t.check(e=>ra(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=>ra(e,!1,[])),n=n.describe(e.description||t);let i=e.optionsDef?{...e.optionsDef,enabledIf:e.optionsDef.enabledIf??Si(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 oa(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:di({id:e.public_id,provider:e.provider})}))}})}const sa=()=>{let e=xr;return oa(e,`required`),e},C=()=>{let e=_;return oa(e,`optional`),e},w=()=>{let e=Sr;return oa(e,`disabled`),e};function ca(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:di({id:e.public_id,provider:e.provider})}))}})}const la=()=>{let e=xr;return ca(e,`required`),e},ua=()=>{let e=_;return ca(e,`optional`),e};function da(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:da(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=>Mi(e,v),fa=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},pa=e=>Ai(e,v),ma=e=>wi(e,v),ha=e=>Ti(e,v),ga=e=>Oi(e,v),_a=e=>ki(e,v),va=e=>Ni(e,v),ya=e=>Zi(e,v),ba=e=>Pi(e,v),xa=e=>Ii(e,v),D=e=>Li(e,v),O=e=>Vi(e,v),Sa=e=>zi(e,v),Ca=e=>Bi(e,v),wa=e=>Gi(e,v),Ta=e=>Ki(e,v),Ea=e=>qi(e,v),Da=e=>Hi(e,v),Oa=e=>Ui(e,v),ka=e=>Wi(e,v),Aa=e=>Ji(e,v),k=e=>wi(e,y),ja=e=>Ti(e,y),Ma=e=>Yi(e,y),A=e=>Ai(e,y),j=e=>Ni(e,y),Na=e=>Pi(e,y),Pa=e=>Fi(e,y),Fa=e=>Ii(e,y),Ia=e=>Li(e,y),La=e=>Ri(e,y),M=e=>Vi(e,y,`pipe_io`),Ra=e=>zi(e,y),za=e=>Bi(e,y),Ba=e=>Gi(e,y),Va=e=>Ji(e,y),N=e=>qi(e,y),P=e=>Xi(e,y),F=e=>Zi(e,y),I=e=>Hi(e,y),Ha=e=>Ui(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 Ua(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]=Ua(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 β`},Wa=e=>typeof e.kind==`string`,Ga=e=>Wa(e)?e:{kind:`field`,field:e},B=e=>({kind:`field`,field:e}),Ka=(...e)=>({kind:`all`,of:e.map(Ga)}),V=(...e)=>({kind:`any`,of:e.map(Ga)}),qa=e=>({kind:`optional`,field:e});function Ja(e,t){switch(e.kind){case`optional`:return!0;case`field`:return t.has(e.field.resolvedName);case`all`:return e.of.every(e=>Ja(e,t));case`any`:return e.of.some(e=>Ja(e,t))}}function Ya(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(Ya)}}function Xa(e,t){let n=Za(e,t);return n.ok?{valid:!0,failedPipeInputField:null,failedRecordField:null}:{valid:!1,failedPipeInputField:n.field,failedRecordField:n.recordField}}function Za(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=Za(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=Za(i,t);if(r=!0,e.ok)return{ok:!0};n=e}catch{}return r?n:{ok:!0}}}}function Qa(e){if(typeof e!=`object`||!e)return e;if(Array.isArray(e))return e.map(Qa).filter(e=>!qt(e));let t={};for(let[n,r]of Object.entries(e)){let e=Qa(r);qt(e)||(t[n]=e)}return t}const $a=await l();var eo=class e{static hashObject(t){if(!$a)throw Error(`HashAPI not initialized`);let{h64ToString:n}=$a,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 to(e,t){let n={pipeId:e,config:Qa(t)};return eo.hashObject(n)}function no(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:eo.hashObject(Qa(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 Ya(this.getInputRequirement()))e[t.name]=t;return e}getConfigHashKey(){return to(this.payload.pipe_id,this.payload.config||{})}getInputHashKey(e){return no(e,this.inputFields)}};function ro(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 io(e){return Ya(e).map(({field:e})=>e)}function ao({recordField:e,value:t,resolvedBy:n,widgets:r}){return e.value=t,e.status=`completed`,e.resolved_by=n,e.widgets=r,e}function oo({recordField:e}){return e.status=`pending`,e.resolved_by=null,e.value=null,e}function so({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 co(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 lo(e,t){return e.value=null,e.status=`skipped`,e.resolved_by=null,e.reason=t,e.widgets={},e}function uo(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 fo=`company:domain:workemail@1`,po=g(`company_domain`),mo=g(`work_email`),ho=r.object({pipe_id:r.literal(fo),run_if:x(),connector:w(),config:r.object({input_fields:R(r.object({[mo.name]:T({fieldName:mo.name})})),output_fields:L(r.object({[po.name]:O({fieldName:po.name})}))}).optional()}),go=e=>B(G(mo,e)),_o={"company-domain-workemail-v1-pipe0":{credits:{default:0},allowManagedConnection:!0,mode:`always`,provider:`pipe0`}},vo=class extends H{pipeId=fo;payload;payloadSchema=ho;billableOperations=_o;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[`company-domain-workemail-v1-pipe0`]}getInputRequirement(){return go(this.payload.config)}getRawOutputFields(){return{[po.name]:this.catalogOutput(po)}}getConnectionsRequirements(){return[{provider:`pipe0`,rateLimitRatio:1,rateLimitOperation:`pipe0_logic`,allowManagedConnection:!0}]}},yo=ho,bo={pipeId:fo,basePipe:U(fo),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(fo),allowedUserConnectionProviders:[],managedProviders:[`pipe0`],deprecatedProviders:[],billableOperations:_o,defaultInputRequirement:go(null),defaultPayload:{pipe_id:fo,connector:null,run_if:null,config:{input_fields:{[mo.name]:{alias:``}},output_fields:{[po.name]:{alias:``,enabled:!0}}}}},xo=`company:funding:leadmagic@2`,So=g(`company_name`),Co=g(`company_domain`),wo=g(`funding_history`),To=g(`funding_total_usd`),Eo=g(`leadmagic_competitor_list`),Do=g(`leadmagic_acquisition_history`),Oo=g(`leadmagic_company_news_list`),ko=r.object({pipe_id:r.literal(xo),connector:C(),run_if:x(),config:r.object({input_fields:R(r.object({[So.name]:T({fieldName:So.name}),[Co.name]:T({fieldName:Co.name})})),output_fields:L(r.object({[wo.name]:O({fieldName:wo.name}),[To.name]:O({fieldName:To.name}),[Eo.name]:O({fieldName:Eo.name}),[Do.name]:O({fieldName:Do.name}),[Oo.name]:O({fieldName:Oo.name})}))}).optional()}),Ao=e=>V(G(So,e),G(Co,e)),jo={"company-funding-leadmagic-v2-leadmagic":{provider:`leadmagic`,allowManagedConnection:!0,credits:{default:2},mode:`onSuccess`}},Mo=class extends H{pipeId=xo;payload;payloadSchema=ko;billableOperations=jo;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`leadmagic`]}estimateBillableOperations(){return[`company-funding-leadmagic-v2-leadmagic`]}getInputRequirement(){return Ao(this.payload.config)}getRawOutputFields(){return{[wo.name]:this.catalogOutput(wo),[To.name]:this.catalogOutput(To),[Do.name]:this.catalogOutput(Do),[Oo.name]:this.catalogOutput(Oo),[Eo.name]:this.catalogOutput(Eo)}}getConnectionsRequirements(){return[{provider:`leadmagic`,rateLimitRatio:1,rateLimitOperation:`leadmagic_company_funding`,allowManagedConnection:!0}]}},No=ko,Po={pipeId:xo,basePipe:U(xo),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(xo),billableOperations:jo,inputFieldMode:`static`,outputFieldMode:`static`,allowedUserConnectionProviders:[`leadmagic`],managedProviders:[`leadmagic`],deprecatedProviders:[],defaultInputRequirement:Ao(null),defaultPayload:{pipe_id:xo,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:``}}}}},Fo=g(`company_name`),Io=g(`company_profile_url`),Lo=g(`company_domain`),Ro=g(`cleaned_company_name`),zo=`company:identity@3`,Bo=r.object({pipe_id:r.literal(zo),run_if:x(),connector:w(),config:r.object({input_fields:R(r.object({[Fo.name]:T({fieldName:Fo.name})})),output_fields:L(r.object({[Io.name]:O({fieldName:Io.name}),[Ro.name]:O({fieldName:Ro.name}),[Lo.name]:O({fieldName:Lo.name})}))}).optional()}),Vo=e=>B(G(Fo,e)),Ho={"company-identity-v3-pipe0":{allowManagedConnection:!0,credits:{default:.3,level1:{credits:.2,weight:1}},mode:`always`,provider:`pipe0`}},Uo=class extends H{pipeId=zo;payload;payloadSchema=Bo;billableOperations=Ho;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[`company-identity-v3-pipe0`]}getInputRequirement(){return Vo(this.payload.config)}getRawOutputFields(){return{[Io.name]:this.catalogOutput(Io),[Lo.name]:this.catalogOutput(Lo),[Ro.name]:this.catalogOutput(Ro)}}getConnectionsRequirements(){return[{provider:`gemini`,rateLimitRatio:1,rateLimitOperation:`gemini_35_flash`,allowManagedConnection:!0},{provider:`serper`,rateLimitRatio:2,rateLimitOperation:`serper_search`,allowManagedConnection:!0},{provider:`leadmagic`,rateLimitRatio:.2,rateLimitOperation:`leadmagic_company_search`,allowManagedConnection:!0},{provider:`perplexity`,rateLimitRatio:.2,rateLimitOperation:`perplexity_generic`,allowManagedConnection:!0},{provider:`pipe0`,rateLimitRatio:.02,rateLimitOperation:`pipe0_scraper`,allowManagedConnection:!0}]}},Wo=Bo,Go={pipeId:zo,inputFieldMode:`static`,outputFieldMode:`static`,basePipe:U(zo),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(zo),billableOperations:Ho,allowedUserConnectionProviders:[],managedProviders:[`pipe0`],deprecatedProviders:[],defaultInputRequirement:Vo(null),defaultPayload:{pipe_id:zo,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}}}}},Ko=g(`company_domain`),qo=g(`company_name`),Jo=g(`crustdata_company_identity_matches`),Yo=`company:identity:crustdata@1`,Xo=r.object({pipe_id:r.literal(Yo),run_if:x(),connector:C(),config:r.object({input_fields:R(r.object({[Ko.name]:T({fieldName:Ko.name}),[qo.name]:T({fieldName:qo.name})})),output_fields:L(r.object({[Jo.name]:O({fieldName:Jo.name})}))}).optional()}),Zo=e=>V(G(Ko,e),G(qo,e)),Qo={"company-identity-crustdata-v1-crustdata":{allowManagedConnection:!0,credits:{default:.001},mode:`onSuccess`,provider:`crustdata`}},$o=class extends H{pipeId=Yo;payload;payloadSchema=Xo;billableOperations=Qo;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`crustdata`]}estimateBillableOperations(){return[`company-identity-crustdata-v1-crustdata`]}getInputRequirement(){return Zo(this.payload.config)}getRawOutputFields(){return{[Jo.name]:this.catalogOutput(Jo)}}getConnectionsRequirements(){return[{provider:`crustdata`,rateLimitRatio:1,rateLimitOperation:`crustdata_company_identify`,allowManagedConnection:!0}]}},es=Xo,ts={pipeId:Yo,inputFieldMode:`static`,outputFieldMode:`static`,basePipe:U(Yo),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(Yo),billableOperations:Qo,allowedUserConnectionProviders:[`crustdata`],managedProviders:[`crustdata`],deprecatedProviders:[],defaultInputRequirement:Zo(null),defaultPayload:{pipe_id:Yo,connector:null,run_if:null,config:{input_fields:{company_domain:{alias:``},company_name:{alias:``}},output_fields:{crustdata_company_identity_matches:{alias:``,enabled:!0}}}}},ns=g(`company_domain`),rs=g(`companyenrich_matches`),is=`company:lookalikes:companyenrich@2`,as=r.object({pipe_id:r.literal(is),run_if:x(),connector:C(),config:r.object({limit:Da({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({[ns.name]:T({fieldName:ns.name})})),output_fields:L(r.object({[rs.name]:O({fieldName:rs.name})}))}).optional()}),os=e=>B(G(ns,e)),ss={"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`}},cs=class extends H{pipeId=is;payload;payloadSchema=as;billableOperations=ss;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`companyenrich`]}estimateBillableOperations(){return[,,,,,].fill(`lookalikes-companyenrich`)}getInputRequirement(){return os(this.payload.config)}getRawOutputFields(){return{[rs.name]:this.catalogOutput(rs)}}getConnectionsRequirements(){return[{provider:`companyenrich`,rateLimitRatio:1,rateLimitOperation:`company_enrich_generic`,allowManagedConnection:!0}]}},ls=as,us={pipeId:is,inputFieldMode:`static`,outputFieldMode:`static`,basePipe:U(is),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(is),billableOperations:ss,allowedUserConnectionProviders:[`companyenrich`],managedProviders:[`companyenrich`],deprecatedProviders:[],defaultInputRequirement:os(null),defaultPayload:{pipe_id:is,connector:null,run_if:null,config:{limit:20,input_fields:{company_domain:{alias:``}},output_fields:{companyenrich_matches:{alias:``,enabled:!0}}}}},ds=g(`company_domain`),fs=g(`crustdata_companyenrich_match`),ps=`company:match:crustdata@2`,ms=r.object({pipe_id:r.literal(ps),run_if:x(),connector:C(),config:r.object({input_fields:R(r.object({[ds.name]:T({fieldName:ds.name})})),output_fields:L(r.object({[fs.name]:O({fieldName:fs.name})}))}).optional()}),hs=e=>B(G(ds,e)),gs={"company-match-crustdata-v2-crustdata":{allowManagedConnection:!0,credits:{default:2.5,level1:{credits:1.2,weight:1}},mode:`onSuccess`,provider:`crustdata`}},_s=class extends H{pipeId=ps;payload;payloadSchema=ms;billableOperations=gs;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`crustdata`]}estimateBillableOperations(){return[`company-match-crustdata-v2-crustdata`]}getInputRequirement(){return hs(this.payload.config)}getRawOutputFields(){return{[fs.name]:this.catalogOutput(fs)}}getConnectionsRequirements(){return[{provider:`crustdata`,rateLimitRatio:1,rateLimitOperation:`crustdata_company_enrich`,allowManagedConnection:!0}]}},vs=ms,ys={pipeId:ps,inputFieldMode:`static`,outputFieldMode:`static`,basePipe:U(ps),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(ps),billableOperations:gs,allowedUserConnectionProviders:[`crustdata`],managedProviders:[`crustdata`],deprecatedProviders:[],defaultInputRequirement:hs(null),defaultPayload:{pipe_id:ps,connector:null,run_if:null,config:{input_fields:{company_domain:{alias:``}},output_fields:{crustdata_companyenrich_match:{alias:``,enabled:!0}}}}},bs=g(`company_domain`),xs=g(`company_name`),Ss=g(`company_profile_url`),Cs=g(`logodev_describe_match`),ws=g(`logo_url`),Ts=`company:match:logodev@2`,Es=r.object({pipe_id:r.literal(Ts),run_if:x(),connector:C(),config:r.object({input_fields:R(r.object({[bs.name]:T({fieldName:bs.name})})),output_fields:L(r.object({[Ss.name]:O({fieldName:Ss.name}),[ws.name]:O({fieldName:ws.name}),[xs.name]:O({fieldName:xs.name}),[Cs.name]:O({fieldName:Cs.name})}))}).optional()}),Ds=e=>B(G(bs,e)),Os={"company-match-logodev-v2-logodev":{allowManagedConnection:!0,credits:{default:.1},mode:`onSuccess`,provider:`logodev`}},ks=class extends H{pipeId=Ts;payload;payloadSchema=Es;billableOperations=Os;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`logodev`]}estimateBillableOperations(){return[`company-match-logodev-v2-logodev`]}getInputRequirement(){return Ds(this.payload.config)}getRawOutputFields(){return{[Ss.name]:this.catalogOutput(Ss),[xs.name]:this.catalogOutput(xs),[ws.name]:this.catalogOutput(ws),[Cs.name]:this.catalogOutput(Cs)}}getConnectionsRequirements(){return[{provider:`logodev`,rateLimitRatio:1,rateLimitOperation:`logodev_describe`,allowManagedConnection:!0}]}},As=Es,js={pipeId:Ts,inputFieldMode:`static`,outputFieldMode:`static`,basePipe:U(Ts),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(Ts),billableOperations:Os,allowedUserConnectionProviders:[`logodev`],managedProviders:[`logodev`],deprecatedProviders:[],defaultInputRequirement:Ds(null),defaultPayload:{pipe_id:Ts,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}}}}},Ms=`company:newssummary:domain@1`,Ns=g(`company_news_summary`),Ps=g(`company_domain`),Fs=r.object({pipe_id:r.literal(Ms),run_if:x(),connector:C(),config:r.object({input_fields:R(r.object({[Ps.name]:T({fieldName:Ps.name})})),output_fields:L(r.object({[Ns.name]:O({fieldName:Ns.name})}))}).optional()}),Is=e=>B(G(Ps,e)),Ls={"company-newssummary-domain-v1-pipe0":{allowManagedConnection:!0,credits:{default:2},mode:`always`,provider:`pipe0`}},Rs=class extends H{pipeId=Ms;payloadSchema=Fs;billableOperations=Ls;payload;constructor(e){super(),this.payload=e}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[`company-newssummary-domain-v1-pipe0`]}getInputRequirement(){return Is(this.payload.config)}getRawOutputFields(){return{[Ns.name]:this.catalogOutput(Ns)}}getConnectionsRequirements(){return[{provider:`parallel`,rateLimitRatio:4,rateLimitOperation:`parallel_search_base`,allowManagedConnection:!0},{provider:`gemini`,rateLimitRatio:1,rateLimitOperation:`gemini_35_flash`,allowManagedConnection:!0}]}},zs=Fs,Bs={pipeId:Ms,basePipe:U(Ms),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(Ms),billableOperations:Ls,allowedUserConnectionProviders:[],managedProviders:[`pipe0`],deprecatedProviders:[],defaultInputRequirement:Is(null),defaultPayload:{pipe_id:Ms,run_if:null,connector:null,config:{input_fields:{company_domain:{alias:``}},output_fields:{company_news_summary:{alias:``,enabled:!0}}}}},Vs=g(`company_domain`),Hs=g(`company_profile_url`),Us=g(`company_description`),Ws=g(`company_industry`),Gs=g(`company_region`),Ks=g(`headcount`),qs=g(`estimated_revenue`),Js=g(`founded_year`),Ys=g(`company_name`),Xs=`company:overview@3`,Zs=r.object({pipe_id:r.literal(Xs),run_if:x(),connector:w(),config:r.object({input_fields:R(r.object({[Vs.name]:T({fieldName:Vs.name}),[Hs.name]:T({fieldName:Hs.name})})),output_fields:L(r.object({[Us.name]:O({fieldName:Us.name}),[Ws.name]:O({fieldName:Ws.name}),[Gs.name]:O({fieldName:Gs.name}),[Ks.name]:O({fieldName:Ks.name}),[qs.name]:O({fieldName:qs.name}),[Js.name]:O({fieldName:Js.name}),[Ys.name]:O({fieldName:Ys.name})}))}).optional()}),Qs=e=>V(G(Vs,e),G(Hs,e)),$s={"company-overview-v3-pipe0":{provider:`pipe0`,allowManagedConnection:!0,credits:{default:1,level1:{credits:.5,weight:1}},mode:`always`}},ec=class extends H{pipeId=Xs;payloadSchema=Zs;billableOperations=$s;payload;constructor(e){super(),this.payload=e}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[`company-overview-v3-pipe0`]}getInputRequirement(){return Qs(this.payload.config)}getRawOutputFields(){return{[Us.name]:this.catalogOutput(Us),[Ws.name]:this.catalogOutput(Ws),[Gs.name]:this.catalogOutput(Gs),[Ks.name]:this.catalogOutput(Ks),[qs.name]:this.catalogOutput(qs),[Js.name]:this.catalogOutput(Js),[Ys.name]:this.catalogOutput(Ys)}}getConnectionsRequirements(){return[{provider:`perplexity`,rateLimitRatio:1,rateLimitOperation:`perplexity_generic`,allowManagedConnection:!0},{provider:`leadmagic`,rateLimitRatio:.2,rateLimitOperation:`leadmagic_email_lookup`,allowManagedConnection:!0},{provider:`gemini`,rateLimitOperation:`gemini_20_flash`,rateLimitRatio:.1,allowManagedConnection:!0}]}},tc=Zs,nc={pipeId:Xs,basePipe:U(Xs),inputFieldMode:`static`,outputFieldMode:`static`,label:`Company overview`,executionMode:`mix`,categories:[`company_data`],lifecycle:null,description:`Business description, industry, and financial information.`,docPath:W(Xs),tags:[z.WEBSITE,z.LINKEDIN,z.FINANCIAL_DATA],allowedUserConnectionProviders:[],managedProviders:[`pipe0`],deprecatedProviders:[],billableOperations:$s,defaultInputRequirement:Qs(null),defaultPayload:{pipe_id:Xs,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}}}}},rc=g(`company_domain`),ic=g(`technology_list`),ac=g(`spending_trend`),oc=g(`technology_match_builtwith`),sc=`company:techstack:builtwith@2`,cc=r.object({pipe_id:r.literal(sc),connector:C(),run_if:x(),config:r.object({input_fields:R(r.object({[rc.name]:T({fieldName:rc.name})})),output_fields:L(r.object({[ic.name]:O({fieldName:ic.name}),[oc.name]:O({fieldName:oc.name}),[ac.name]:O({fieldName:ac.name})}))}).optional()}),lc=e=>B(G(rc,e)),uc={"company-techstack-builtwith-v2-builtwith":{provider:`builtwith`,allowManagedConnection:!0,credits:{default:2},mode:`always`}},dc=class extends H{pipeId=sc;payload;payloadSchema=cc;billableOperations=uc;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`builtwith`]}estimateBillableOperations(){return[`company-techstack-builtwith-v2-builtwith`]}getInputRequirement(){return lc(this.payload.config)}getRawOutputFields(){return{[ic.name]:this.catalogOutput(ic),[oc.name]:this.catalogOutput(oc),[ac.name]:this.catalogOutput(ac)}}getConnectionsRequirements(){return[{provider:`builtwith`,rateLimitRatio:1,rateLimitOperation:`builtwith_generic`,allowManagedConnection:!0}]}},fc=cc,pc={pipeId:sc,basePipe:U(sc),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(sc),billableOperations:uc,defaultInputRequirement:lc(null),defaultPayload:{pipe_id:sc,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}}}}},mc={MissingSecretError:class extends Error{constructor({providerName:e}){super(`Missing secret for ${e}`)}},HttpError:class extends Error{constructor({msg:e}){super(e)}}},hc=`contact:create:resend@1`,gc={"contact-create-resend-v1-resend":{allowManagedConnection:!1,provider:`resend`,credits:null,mode:null}},_c=g(`email`),vc=g(`name`),yc=g(`resend_contact_id`),bc=[{label:`Demo subscribers`,value:`sandbox-segment-1`},{label:`Demo product updates`,value:`sandbox-segment-2`}],xc=r.object({pipe_id:r.literal(hc),connector:sa(),run_if:x(),config:r.object({segment_id:Aa({sectionKey:`general`,required:!0,label:`Segment`,groupPath:`config.general`,path:`config.segment_id`,info:``,enabledIf:Tn(`resend`),optionsDef:{requires:{connection:`resend`},options:async({query:e,secret:t,environment:n})=>{if(n===`sandbox`)return bc;if(!t)throw new mc.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 mc.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({[vc.name]:T({fieldName:vc.name}),[_c.name]:T({fieldName:_c.name})})),output_fields:L(r.object({[yc.name]:O({fieldName:yc.name})}))})}),Sc=e=>Ka(B(G(_c,e)),B(G(vc,e))),Cc=class extends H{pipeId=hc;payload;payloadSchema=xc;billableOperations=gc;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`resend`]}estimateBillableOperations(){return[`contact-create-resend-v1-resend`]}getInputRequirement(){return Sc(this.payload.config)}getRawOutputFields(){return{[yc.name]:this.catalogOutput(yc)}}getConnectionsRequirements(){return[{provider:`resend`,rateLimitRatio:1,rateLimitOperation:`resend_generic`,allowManagedConnection:!1}]}},wc=xc,Tc={pipeId:hc,basePipe:U(hc),label:`Create Contact`,executionMode:`single`,categories:[`actions`],lifecycle:null,description:`Create a contact inside a Resend audience.`,tags:[z.EMAIL],docPath:W(hc),billableOperations:gc,inputFieldMode:`static`,outputFieldMode:`static`,allowedUserConnectionProviders:[`resend`],defaultInputRequirement:Sc(null),managedProviders:[],deprecatedProviders:[],defaultPayload:{pipe_id:hc,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}}}}},Ec=`company:funding:leadmagic@1`,Dc=g(`company_name`),Oc=g(`company_website_url`),kc=g(`funding_history`),Ac=g(`funding_total_usd`),jc=g(`leadmagic_competitor_list`),Mc=g(`leadmagic_acquisition_history`),Nc=g(`leadmagic_company_news_list`),Pc=r.object({pipe_id:r.literal(Ec),connector:C(),run_if:x(),config:r.object({input_fields:R(r.object({[Dc.name]:T({fieldName:Dc.name}),[Oc.name]:T({fieldName:Oc.name})})),output_fields:L(r.object({[kc.name]:O({fieldName:kc.name}),[Ac.name]:O({fieldName:Ac.name}),[jc.name]:O({fieldName:jc.name}),[Mc.name]:O({fieldName:Mc.name}),[Nc.name]:O({fieldName:Nc.name})}))}).optional()}),Fc=e=>V(G(Dc,e),G(Oc,e)),Ic={"company-funding-leadmagic-v1-leadmagic":{provider:`leadmagic`,allowManagedConnection:!0,credits:{default:2},mode:`onSuccess`}},Lc=class extends H{pipeId=Ec;payload;payloadSchema=Pc;billableOperations=Ic;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`leadmagic`]}estimateBillableOperations(){return[`company-funding-leadmagic-v1-leadmagic`]}getInputRequirement(){return Fc(this.payload.config)}getRawOutputFields(){return{[kc.name]:this.catalogOutput(kc),[Ac.name]:this.catalogOutput(Ac)}}getConnectionsRequirements(){return[{provider:`leadmagic`,rateLimitRatio:1,rateLimitOperation:`leadmagic_company_funding`,allowManagedConnection:!0}]}},Rc=Pc,zc={pipeId:Ec,basePipe:U(Ec),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(Ec),billableOperations:Ic,inputFieldMode:`static`,outputFieldMode:`static`,allowedUserConnectionProviders:[`leadmagic`],managedProviders:[`leadmagic`],deprecatedProviders:[],defaultInputRequirement:Fc(null),defaultPayload:{pipe_id:Ec,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:``}}}}},Bc=g(`company_name`),Vc=g(`company_social_url`),Hc=g(`company_website_url`),Uc=g(`cleaned_company_name`),Wc=`company:identity@1`,Gc=r.object({pipe_id:r.literal(Wc),run_if:x(),connector:w(),config:r.object({input_fields:R(r.object({[Bc.name]:T({fieldName:Bc.name})})),output_fields:L(r.object({[Vc.name]:O({fieldName:Vc.name}),[Uc.name]:O({fieldName:Uc.name}),[Hc.name]:O({fieldName:Hc.name})}))}).optional()}),Kc=e=>B(G(Bc,e)),qc={"company-identity-v1-pipe0":{allowManagedConnection:!0,credits:{default:.3},mode:`always`,provider:`pipe0`}},Jc=class extends H{pipeId=Wc;payload;payloadSchema=Gc;billableOperations=qc;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[`company-identity-v1-pipe0`]}getInputRequirement(){return Kc(this.payload.config)}getRawOutputFields(){return{[Vc.name]:this.catalogOutput(Vc),[Hc.name]:this.catalogOutput(Hc),[Uc.name]:this.catalogOutput(Uc)}}getConnectionsRequirements(){return[{provider:`gemini`,rateLimitRatio:1,rateLimitOperation:`gemini_35_flash`,allowManagedConnection:!0},{provider:`serper`,rateLimitRatio:2,rateLimitOperation:`serper_search`,allowManagedConnection:!0},{provider:`leadmagic`,rateLimitRatio:.2,rateLimitOperation:`leadmagic_company_search`,allowManagedConnection:!0},{provider:`perplexity`,rateLimitRatio:.2,rateLimitOperation:`perplexity_generic`,allowManagedConnection:!0},{provider:`pipe0`,rateLimitRatio:.02,rateLimitOperation:`pipe0_scraper`,allowManagedConnection:!0}]}},Yc=Gc,Xc={pipeId:Wc,inputFieldMode:`static`,outputFieldMode:`static`,basePipe:U(Wc),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:qc,allowedUserConnectionProviders:[],managedProviders:[`pipe0`],deprecatedProviders:[],defaultInputRequirement:Kc(null),defaultPayload:{pipe_id:Wc,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}}}}},Zc=g(`company_name`),Qc=g(`company_profile_url`),$c=g(`company_website_url`),el=g(`cleaned_company_name`),tl=`company:identity@2`,nl=r.object({pipe_id:r.literal(tl),run_if:x(),connector:w(),config:r.object({input_fields:R(r.object({[Zc.name]:T({fieldName:Zc.name})})),output_fields:L(r.object({[Qc.name]:O({fieldName:Qc.name}),[el.name]:O({fieldName:el.name}),[$c.name]:O({fieldName:$c.name})}))}).optional()}),rl=e=>B(G(Zc,e)),il={"company-identity-v2-pipe0":{allowManagedConnection:!0,credits:{default:.3},mode:`always`,provider:`pipe0`}},al=class extends H{pipeId=tl;payload;payloadSchema=nl;billableOperations=il;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[`company-identity-v2-pipe0`]}getInputRequirement(){return rl(this.payload.config)}getRawOutputFields(){return{[Qc.name]:this.catalogOutput(Qc),[$c.name]:this.catalogOutput($c),[el.name]:this.catalogOutput(el)}}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}]}},ol=nl,sl={pipeId:tl,inputFieldMode:`static`,outputFieldMode:`static`,basePipe:U(tl),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(tl),billableOperations:il,allowedUserConnectionProviders:[],managedProviders:[`pipe0`],deprecatedProviders:[],defaultInputRequirement:rl(null),defaultPayload:{pipe_id:tl,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}}}}},cl=g(`company_website_url`),ll=g(`companyenrich_matches`),ul=`company:lookalikes:companyenrich@1`,dl=r.object({pipe_id:r.literal(ul),run_if:x(),connector:C(),config:r.object({limit:Da({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({[cl.name]:T({fieldName:cl.name})})),output_fields:L(r.object({[ll.name]:O({fieldName:ll.name})}))}).optional()}),fl=e=>B(G(cl,e)),pl={"company-lookalikes-companyenrich-v1-companyenrich":{allowManagedConnection:!0,credits:{default:.2},mode:`onSuccess`,note:`One billing event per result.`,provider:`companyenrich`}},ml=class extends H{pipeId=ul;payload;payloadSchema=dl;billableOperations=pl;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`companyenrich`]}estimateBillableOperations(){return[,,,,,].fill(`lookalikes-companyenrich`)}getInputRequirement(){return fl(this.payload.config)}getRawOutputFields(){return{[ll.name]:this.catalogOutput(ll)}}getConnectionsRequirements(){return[{provider:`companyenrich`,rateLimitRatio:1,rateLimitOperation:`company_enrich_generic`,allowManagedConnection:!0}]}},hl=dl,gl={pipeId:ul,inputFieldMode:`static`,outputFieldMode:`static`,basePipe:U(ul),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(ul),billableOperations:pl,allowedUserConnectionProviders:[`companyenrich`],managedProviders:[`companyenrich`],deprecatedProviders:[],defaultInputRequirement:fl(null),defaultPayload:{pipe_id:ul,connector:null,run_if:null,config:{limit:20,input_fields:{company_website_url:{alias:``}},output_fields:{companyenrich_matches:{alias:``,enabled:!0}}}}},_l=g(`company_website_url`),vl=g(`crustdata_companyenrich_match`),yl=`company:match:crustdata@1`,bl=r.object({pipe_id:r.literal(yl),run_if:x(),connector:C(),config:r.object({input_fields:R(r.object({[_l.name]:T({fieldName:_l.name})})),output_fields:L(r.object({[vl.name]:O({fieldName:vl.name})}))}).optional()}),xl=e=>B(G(_l,e)),Sl={"company-match-crustdata-v1-crustdata":{allowManagedConnection:!0,credits:{default:2},mode:`onSuccess`,provider:`crustdata`}},Cl=class extends H{pipeId=yl;payload;payloadSchema=bl;billableOperations=Sl;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`crustdata`]}estimateBillableOperations(){return[`company-match-crustdata-v1-crustdata`]}getInputRequirement(){return xl(this.payload.config)}getRawOutputFields(){return{[vl.name]:this.catalogOutput(vl)}}getConnectionsRequirements(){return[{provider:`crustdata`,rateLimitRatio:1,rateLimitOperation:`crustdata_company_enrich`,allowManagedConnection:!0}]}},wl=bl,Tl={pipeId:yl,inputFieldMode:`static`,outputFieldMode:`static`,basePipe:U(yl),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(yl),billableOperations:Sl,allowedUserConnectionProviders:[`crustdata`],managedProviders:[`crustdata`],deprecatedProviders:[],defaultInputRequirement:xl(null),defaultPayload:{pipe_id:yl,connector:null,run_if:null,config:{input_fields:{company_website_url:{alias:``}},output_fields:{crustdata_companyenrich_match:{alias:``,enabled:!0}}}}},El=g(`company_website_url`),Dl=g(`company_name`),Ol=g(`company_profile_url`),kl=g(`logodev_describe_match`),Al=g(`logo_url`),jl=`company:match:logodev@1`,Ml=r.object({pipe_id:r.literal(jl),run_if:x(),connector:C(),config:r.object({input_fields:R(r.object({[El.name]:T({fieldName:El.name})})),output_fields:L(r.object({[Ol.name]:O({fieldName:Ol.name}),[Al.name]:O({fieldName:Al.name}),[Dl.name]:O({fieldName:Dl.name}),[kl.name]:O({fieldName:kl.name})}))}).optional()}),Nl=e=>B(G(El,e)),Pl={"company-match-logodev-v1-logodev":{allowManagedConnection:!0,credits:{default:.1},mode:`onSuccess`,provider:`logodev`}},Fl=class extends H{pipeId=jl;payload;payloadSchema=Ml;billableOperations=Pl;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`logodev`]}estimateBillableOperations(){return[`company-match-logodev-v1-logodev`]}getInputRequirement(){return Nl(this.payload.config)}getRawOutputFields(){return{[Ol.name]:this.catalogOutput(Ol),[Dl.name]:this.catalogOutput(Dl),[Al.name]:this.catalogOutput(Al),[kl.name]:this.catalogOutput(kl)}}getConnectionsRequirements(){return[{provider:`logodev`,rateLimitRatio:1,rateLimitOperation:`logodev_describe`,allowManagedConnection:!0}]}},Il=Ml,Ll={pipeId:jl,inputFieldMode:`static`,outputFieldMode:`static`,basePipe:U(jl),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(jl),billableOperations:Pl,allowedUserConnectionProviders:[`logodev`],managedProviders:[`logodev`],deprecatedProviders:[],defaultInputRequirement:Nl(null),defaultPayload:{pipe_id:jl,connector:null,run_if:null,config:{input_fields:{company_website_url:{alias:``}},output_fields:{company_profile_url:{alias:``,enabled:!0},logo_url:{alias:``,enabled:!0},logodev_describe_match:{alias:``,enabled:!0},company_name:{alias:``,enabled:!1}}}}},Rl=`company:newssummary:website@1`,zl=g(`company_news_summary`),Bl=g(`company_website_url`),Vl=r.object({pipe_id:r.literal(Rl),run_if:x(),connector:C(),config:r.object({input_fields:R(r.object({[Bl.name]:T({fieldName:Bl.name})})),output_fields:L(r.object({[zl.name]:O({fieldName:zl.name})}))}).optional()}),Hl=e=>B(G(Bl,e)),Ul={"company-newssummary-website-v1-pipe0":{allowManagedConnection:!0,credits:{default:1},mode:`always`,provider:`pipe0`}},Wl=class extends H{pipeId=Rl;payloadSchema=Vl;billableOperations=Ul;payload;constructor(e){super(),this.payload=e}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[`company-newssummary-website-v1-pipe0`]}getInputRequirement(){return Hl(this.payload.config)}getRawOutputFields(){return{[zl.name]:this.catalogOutput(zl)}}getConnectionsRequirements(){return[{provider:`perplexity`,rateLimitRatio:1,rateLimitOperation:`perplexity_generic`,allowManagedConnection:!0}]}},Gl=Vl,Kl={pipeId:Rl,basePipe:U(Rl),inputFieldMode:`static`,outputFieldMode:`static`,label:`Company news`,executionMode:`single`,categories:[`deprecated`],lifecycle:{deprecatedOn:`2026-06-13`,replacedBy:`company:newssummary:domain@1`},description:`Find recent company news by performing a search and scrape.`,tags:[z.NEWS],docPath:W(Rl),billableOperations:Ul,allowedUserConnectionProviders:[],managedProviders:[`pipe0`],deprecatedProviders:[],defaultInputRequirement:Hl(null),defaultPayload:{pipe_id:Rl,run_if:null,connector:null,config:{input_fields:{company_website_url:{alias:``}},output_fields:{company_news_summary:{alias:``,enabled:!0}}}}},ql=g(`company_website_url`),Jl=g(`company_social_url`),Yl=g(`company_description`),Xl=g(`company_industry`),Zl=g(`company_region`),Ql=g(`headcount`),$l=g(`estimated_revenue`),eu=g(`founded_year`),tu=`company:overview@1`,nu=r.object({pipe_id:r.literal(tu),run_if:x(),connector:w(),config:r.object({input_fields:R(r.object({[ql.name]:T({fieldName:ql.name}),[Jl.name]:T({fieldName:Jl.name})})),output_fields:L(r.object({[Yl.name]:O({fieldName:Yl.name}),[Xl.name]:O({fieldName:Xl.name}),[Zl.name]:O({fieldName:Zl.name}),[Ql.name]:O({fieldName:Ql.name}),[$l.name]:O({fieldName:$l.name}),[eu.name]:O({fieldName:eu.name})}))}).optional()}),ru=e=>V(G(ql,e),G(Jl,e)),iu={"company-overview-v1-pipe0":{provider:`pipe0`,allowManagedConnection:!0,credits:{default:1},mode:`always`}},au=class extends H{pipeId=tu;payloadSchema=nu;billableOperations=iu;payload;constructor(e){super(),this.payload=e}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[`company-overview-v1-pipe0`]}getInputRequirement(){return ru(this.payload.config)}getRawOutputFields(){return{[Yl.name]:this.catalogOutput(Yl),[Xl.name]:this.catalogOutput(Xl),[Zl.name]:this.catalogOutput(Zl),[Ql.name]:this.catalogOutput(Ql),[$l.name]:this.catalogOutput($l),[eu.name]:this.catalogOutput(eu)}}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}]}},ou=nu,su={pipeId:tu,basePipe:U(tu),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:iu,defaultInputRequirement:ru(null),defaultPayload:{pipe_id:tu,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}}}}},cu=g(`company_website_url`),lu=g(`company_profile_url`),uu=g(`company_description`),du=g(`company_industry`),fu=g(`company_region`),pu=g(`headcount`),mu=g(`estimated_revenue`),hu=g(`founded_year`),gu=g(`company_name`),_u=`company:overview@2`,vu=r.object({pipe_id:r.literal(_u),run_if:x(),connector:w(),config:r.object({input_fields:R(r.object({[cu.name]:T({fieldName:cu.name}),[lu.name]:T({fieldName:lu.name})})),output_fields:L(r.object({[uu.name]:O({fieldName:uu.name}),[du.name]:O({fieldName:du.name}),[fu.name]:O({fieldName:fu.name}),[pu.name]:O({fieldName:pu.name}),[mu.name]:O({fieldName:mu.name}),[hu.name]:O({fieldName:hu.name}),[gu.name]:O({fieldName:gu.name})}))}).optional()}),yu=e=>V(G(cu,e),G(lu,e)),bu={"company-overview-v2-pipe0":{provider:`pipe0`,allowManagedConnection:!0,credits:{default:1},mode:`always`}},xu=class extends H{pipeId=_u;payloadSchema=vu;billableOperations=bu;payload;constructor(e){super(),this.payload=e}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[`company-overview-v2-pipe0`]}getInputRequirement(){return yu(this.payload.config)}getRawOutputFields(){return{[uu.name]:this.catalogOutput(uu),[du.name]:this.catalogOutput(du),[fu.name]:this.catalogOutput(fu),[pu.name]:this.catalogOutput(pu),[mu.name]:this.catalogOutput(mu),[hu.name]:this.catalogOutput(hu),[gu.name]:this.catalogOutput(gu)}}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}]}},Su=vu,Cu={pipeId:_u,basePipe:U(_u),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(_u),tags:[z.WEBSITE,z.LINKEDIN,z.FINANCIAL_DATA],allowedUserConnectionProviders:[],managedProviders:[`pipe0`],deprecatedProviders:[],billableOperations:bu,defaultInputRequirement:yu(null),defaultPayload:{pipe_id:_u,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}}}}},wu=g(`company_website_url`),Tu=g(`technology_list`),Eu=g(`spending_trend`),Du=g(`technology_match_builtwith`),Ou=`company:techstack:builtwith@1`,ku=r.object({pipe_id:r.literal(Ou),connector:C(),run_if:x(),config:r.object({input_fields:R(r.object({[wu.name]:T({fieldName:wu.name})})),output_fields:L(r.object({[Tu.name]:O({fieldName:Tu.name}),[Du.name]:O({fieldName:Du.name}),[Eu.name]:O({fieldName:Eu.name})}))}).optional()}),Au=e=>B(G(wu,e)),ju={"company-techstack-builtwith-v1-builtwith":{provider:`builtwith`,allowManagedConnection:!0,credits:{default:2},mode:`always`}},Mu=class extends H{pipeId=Ou;payload;payloadSchema=ku;billableOperations=ju;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`builtwith`]}estimateBillableOperations(){return[`company-techstack-builtwith-v1-builtwith`]}getInputRequirement(){return Au(this.payload.config)}getRawOutputFields(){return{[Tu.name]:this.catalogOutput(Tu),[Du.name]:this.catalogOutput(Du),[Eu.name]:this.catalogOutput(Eu)}}getConnectionsRequirements(){return[{provider:`builtwith`,rateLimitRatio:1,rateLimitOperation:`builtwith_generic`,allowManagedConnection:!0}]}},Nu=ku,Pu={pipeId:Ou,basePipe:U(Ou),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(Ou),billableOperations:ju,defaultInputRequirement:Au(null),defaultPayload:{pipe_id:Ou,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}}}}},Fu=`company:websiteurl:email@1`,Iu=g(`company_website_url`),Lu=g(`email`),Ru=r.object({pipe_id:r.literal(Fu),run_if:x(),connector:w(),config:r.object({input_fields:R(r.object({[Lu.name]:T({fieldName:Lu.name})})),output_fields:L(r.object({[Iu.name]:O({fieldName:Iu.name})}))}).optional()}),zu=e=>B(G(Lu,e)),Bu={"company-websiteurl-email-v1-pipe0":{credits:{default:0},allowManagedConnection:!0,mode:`always`,provider:`pipe0`}},Vu=class extends H{pipeId=Fu;payload;payloadSchema=Ru;billableOperations=Bu;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[`company-websiteurl-email-v1-pipe0`]}getInputRequirement(){return zu(this.payload.config)}getRawOutputFields(){return{[Iu.name]:this.catalogOutput(Iu)}}getConnectionsRequirements(){return[{provider:`pipe0`,rateLimitRatio:1,rateLimitOperation:`pipe0_logic`,allowManagedConnection:!0}]}},Hu=Ru,Uu={pipeId:Fu,basePipe:U(Fu),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(Fu),allowedUserConnectionProviders:[],managedProviders:[`pipe0`],deprecatedProviders:[],billableOperations:Bu,defaultInputRequirement:zu(null),defaultPayload:{pipe_id:Fu,connector:null,run_if:null,config:{input_fields:{email:{alias:``}},output_fields:{company_website_url:{alias:``,enabled:!0}}}}},Wu=`people:email:iswork@1`,Gu=g(`is_work_email`),Ku=g(`email`),qu=r.object({pipe_id:r.literal(Wu),run_if:x(),connector:w(),config:r.object({input_fields:R(r.object({[Ku.name]:T({fieldName:Ku.name})})),output_fields:L(r.object({[Gu.name]:O({fieldName:Gu.name})}))}).optional()}),Ju=e=>B(G(Ku,e)),Yu={"people-email-iswork-v1-pipe0":{provider:`pipe0`,allowManagedConnection:!0,credits:{default:0},mode:`always`}},Xu=class extends H{pipeId=Wu;payload;payloadSchema=qu;billableOperations=Yu;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[`people-email-iswork-v1-pipe0`]}getInputRequirement(){return Ju(this.payload.config)}getRawOutputFields(){return{[Gu.name]:this.catalogOutput(Gu)}}getConnectionsRequirements(){return[{provider:`pipe0`,rateLimitRatio:1,rateLimitOperation:`pipe0_logic`,allowManagedConnection:!0}]}},Zu=qu,Qu={pipeId:Wu,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(Wu),billableOperations:Yu,basePipe:U(Wu),allowedUserConnectionProviders:[],inputFieldMode:`static`,outputFieldMode:`static`,managedProviders:[`pipe0`],deprecatedProviders:[],defaultInputRequirement:Ju(null),defaultPayload:{pipe_id:Wu,run_if:null,connector:null,config:{input_fields:{email:{alias:``}},output_fields:{is_work_email:{alias:``,enabled:!0}}}}},$u=`people:email:validate:zerobounce@1`,ed=g(`work_email`),td=g(`is_email_valid`),nd=r.object({pipe_id:r.literal($u),connector:C(),run_if:x(),config:r.object({input_fields:R(r.object({[ed.name]:T({fieldName:ed.name})})),output_fields:L(r.object({[td.name]:O({fieldName:td.name})}))}).optional()}),rd=e=>B(G(ed,e)),id={"people-email-validate-zerobounce-v1-zerobounce":{provider:`zerobounce`,allowManagedConnection:!0,credits:{default:.3},mode:`always`}},ad=class extends H{pipeId=$u;payload;payloadSchema=nd;billableOperations=id;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`zerobounce`]}estimateBillableOperations(){return[`people-email-validate-zerobounce-v1-zerobounce`]}getInputRequirement(){return rd(this.payload.config)}getRawOutputFields(){return{[td.name]:this.catalogOutput(td)}}getConnectionsRequirements(){return[{provider:`zerobounce`,rateLimitRatio:1,rateLimitOperation:`zerobounce_generic`,allowManagedConnection:!0}]}},od=nd,sd={pipeId:$u,basePipe:U($u),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:id,inputFieldMode:`static`,outputFieldMode:`static`,allowedUserConnectionProviders:[`zerobounce`],managedProviders:[`zerobounce`],deprecatedProviders:[],defaultInputRequirement:rd(null),defaultPayload:{pipe_id:$u,connector:null,run_if:null,config:{input_fields:{work_email:{alias:``}},output_fields:{is_email_valid:{alias:``,enabled:!0}}}}},cd=`people:email:validate:zerobounce@2`,ld=g(`email`),ud=g(`zerobounce_validation_status`),dd=g(`zerobounce_validation_match`),fd=r.object({pipe_id:r.literal(cd),connector:C(),run_if:x(),config:r.object({input_fields:R(r.object({[ld.name]:T({fieldName:ld.name})})),output_fields:L(r.object({[dd.name]:O({fieldName:dd.name}),[ud.name]:O({fieldName:ud.name})}))}).optional()}),pd=e=>B(G(ld,e)),md={"people-email-validate-zerobounce-v2-zerobounce":{provider:`zerobounce`,allowManagedConnection:!0,credits:{default:.3},mode:`always`}},hd=class extends H{pipeId=cd;payload;payloadSchema=fd;billableOperations=md;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`zerobounce`]}estimateBillableOperations(){return[`people-email-validate-zerobounce-v2-zerobounce`]}getInputRequirement(){return pd(this.payload.config)}getRawOutputFields(){return{[ud.name]:this.catalogOutput(ud),[dd.name]:this.catalogOutput(dd)}}getConnectionsRequirements(){return[{provider:`zerobounce`,rateLimitRatio:1,rateLimitOperation:`zerobounce_generic`,allowManagedConnection:!0}]}},gd=fd,_d={pipeId:cd,basePipe:U(cd),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(cd),billableOperations:md,inputFieldMode:`static`,outputFieldMode:`static`,allowedUserConnectionProviders:[`zerobounce`],managedProviders:[`zerobounce`],deprecatedProviders:[],defaultInputRequirement:pd(null),defaultPayload:{pipe_id:cd,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 vd(e){return(e.widgets||{}).display_value?.label}function yd(e){console.dir(e,{depth:100})}function bd(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 xd(e){if(typeof e!=`object`||!e||Array.isArray(e))return e;let t={};return Object.keys(e).sort().forEach(n=>{t[n]=xd(e[n])}),t}const Sd={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 Cd=`people:identity:email:waterfall@1`,wd=g(`email`),Td=g(`company_website_url`),Ed=g(`name`),Dd=g(`job_title`),Od=g(`profile_url`),kd=g(`company_profile_url`),Ad=g(`company_name`),jd=[`findymail`,`hunter`,`crustdata`],Md=[{provider:`findymail`},{provider:`hunter`},{provider:`crustdata`}],Nd=r.object({pipe_id:r.literal(Cd),connector:C(),run_if:x(),config:r.object({providers:E({availableProviders:jd,defaultProviders:Md,sectionKey:`general`}),input_fields:R(r.object({[wd.name]:T({fieldName:wd.name})})),output_fields:L(r.object({[Ed.name]:O({fieldName:Ed.name}),[Od.name]:O({fieldName:Od.name}),[Dd.name]:O({fieldName:Dd.name}),[Td.name]:O({fieldName:Td.name}),[Ad.name]:O({fieldName:Ad.name}),[kd.name]:O({fieldName:kd.name})}))}).optional()}),Pd=e=>B(G(wd,e)),Fd={"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`}},Id=class extends H{pipeId=Cd;payload;payloadSchema=Nd;billableOperations=Fd;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 Pd(this.payload.config)}getRawOutputFields(){return{[Ed.name]:this.catalogOutput(Ed,{isPrimaryOutput:!0}),[Od.name]:this.catalogOutput(Od,{isPrimaryOutput:!0}),[Dd.name]:this.catalogOutput(Dd,{isPrimaryOutput:!0}),[Ad.name]:this.catalogOutput(Ad,{isPrimaryOutput:!0}),[kd.name]:this.catalogOutput(kd,{isPrimaryOutput:!0}),[Td.name]:this.catalogOutput(Td,{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}))}},Ld=Nd,Rd={pipeId:Cd,basePipe:U(Cd),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(Cd),managedProviders:jd,deprecatedProviders:[],allowedUserConnectionProviders:jd,inputFieldMode:`static`,outputFieldMode:`static`,billableOperations:Fd,defaultInputRequirement:Pd(null),defaultPayload:{pipe_id:Cd,connector:null,run_if:null,config:{providers:Md,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}}}}},zd=`people:match:role:waterfall@1`,Bd=g(`company_website_url`),Vd=g(`role_finder_match`),Hd=[`leadmagic`],Ud=[{provider:`leadmagic`}],Wd=r.object({pipe_id:r.literal(zd),run_if:x(),connector:C(),config:r.object({providers:E({sectionKey:`general`,defaultProviders:Ud,availableProviders:Hd}),roles:ha({sectionKey:`general`,groupPath:`config.general`,label:`Roles`,path:`config.roles`,info:`Company roles to include`,maxItems:3,minItems:1}),input_fields:R(r.object({[Bd.name]:T({fieldName:Bd.name})})),output_fields:L(r.object({[Vd.name]:O({fieldName:Vd.name})}))})}),Gd=e=>V(G(Bd,e)),Kd={"people-match-role-waterfall-v1-leadmagic":{provider:`leadmagic`,allowManagedConnection:!0,credits:{default:1},mode:`onSuccess`}},qd=class extends H{pipeId=zd;payload;payloadSchema=Wd;billableOperations=Kd;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 Gd(this.payload.config)}getRawOutputFields(){return{[Vd.name]:this.catalogOutput(Vd,{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}))}},Jd=Wd,Yd={pipeId:zd,basePipe:U(zd),managedProviders:Hd,deprecatedProviders:[],allowedUserConnectionProviders:Hd,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(zd),billableOperations:Kd,inputFieldMode:`static`,outputFieldMode:`static`,defaultInputRequirement:Gd(null),defaultPayload:{pipe_id:zd,run_if:null,connector:null,config:{roles:[],providers:Ud,input_fields:{company_website_url:{alias:``}},output_fields:{role_finder_match:{alias:``,enabled:!0}}}}},Xd=`people:mobilenumber:professionalprofile:waterfall@1`,Zd=g(`professional_profile_url`),Qd=g(`mobile_number`),$d=[`leadmagic`,`prospeo`],ef=[{provider:`leadmagic`},{provider:`prospeo`}],tf=r.object({pipe_id:r.literal(Xd),run_if:x(),connector:C(),config:r.object({providers:E({sectionKey:`general`,defaultProviders:ef,availableProviders:$d}),input_fields:R(r.object({[Zd.name]:T({fieldName:Zd.name})})),output_fields:L(r.object({[Qd.name]:O({fieldName:Qd.name})}))}).optional()}),nf=e=>B(G(Zd,e)),rf={"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`}},af=class extends H{pipeId=Xd;payload;payloadSchema=tf;billableOperations=rf;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{[Qd.name]:this.catalogOutput(Qd)}}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}))}},of=tf,sf={pipeId:Xd,basePipe:U(Xd),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:rf,defaultInputRequirement:nf(null),inputFieldMode:`static`,outputFieldMode:`static`,managedProviders:$d,deprecatedProviders:[],allowedUserConnectionProviders:$d,defaultPayload:{pipe_id:Xd,connector:null,run_if:null,config:{providers:ef,input_fields:{professional_profile_url:{alias:``}},output_fields:{mobile_number:{alias:``,enabled:!0}}}}},cf=`people:mobilenumber:workemail:waterfall@1`,lf=g(`work_email`),uf=g(`mobile_number`),df=[`leadmagic`],ff=[{provider:`leadmagic`}],pf=r.object({pipe_id:r.literal(cf),run_if:x(),connector:C(),config:r.object({providers:E({sectionKey:`general`,availableProviders:df,defaultProviders:ff}),input_fields:R(r.object({[lf.name]:T({fieldName:lf.name})})),output_fields:L(r.object({[uf.name]:O({fieldName:uf.name})}))}).optional()}),mf=e=>B(G(lf,e)),hf={"people-mobilenumber-workemail-waterfall-v1-leadmagic":{provider:`leadmagic`,allowManagedConnection:!0,credits:{default:2},mode:`onSuccess`}},gf=class extends H{pipeId=cf;payload;payloadSchema=pf;billableOperations=hf;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 mf(this.payload.config)}getRawOutputFields(){return{[uf.name]:this.catalogOutput(uf)}}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}))}},_f=pf,vf={pipeId:cf,basePipe:U(cf),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:hf,defaultInputRequirement:mf(null),inputFieldMode:`static`,outputFieldMode:`static`,allowedUserConnectionProviders:df,managedProviders:df,deprecatedProviders:[],defaultPayload:{pipe_id:cf,connector:null,run_if:null,config:{providers:ff,input_fields:{work_email:{alias:``}},output_fields:{mobile_number:{alias:``,enabled:!0}}}}},yf=`people:name:split@1`,bf=g(`name`),xf=g(`first_name`),Sf=g(`last_name`),Cf=r.object({pipe_id:r.literal(yf),connector:w(),run_if:x(),config:r.object({input_fields:R(r.object({[bf.name]:T({fieldName:bf.name})})),output_fields:L(r.object({[xf.name]:O({fieldName:xf.name}),[Sf.name]:O({fieldName:Sf.name})}))}).optional()}),wf=e=>B(G(bf,e)),Tf={"people-name-split-v1-pipe0":{provider:`pipe0`,allowManagedConnection:!0,credits:{default:0},mode:`always`}},Ef=class extends H{pipeId=yf;payload;payloadSchema=Cf;billableOperations=Tf;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[`people-name-split-v1-pipe0`]}getInputRequirement(){return wf(this.payload.config)}getRawOutputFields(){return{[xf.name]:this.catalogOutput(xf),[Sf.name]:this.catalogOutput(Sf)}}getConnectionsRequirements(){return[{provider:`pipe0`,rateLimitRatio:1,rateLimitOperation:`pipe0_logic`,allowManagedConnection:!0}]}},Df=Cf,Of={pipeId:yf,basePipe:U(yf),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(yf),billableOperations:Tf,inputFieldMode:`static`,outputFieldMode:`static`,defaultInputRequirement:wf(null),allowedUserConnectionProviders:[],managedProviders:[`pipe0`],deprecatedProviders:[],defaultPayload:{pipe_id:yf,run_if:null,connector:void 0,config:{input_fields:{name:{alias:``}},output_fields:{first_name:{alias:``,enabled:!0},last_name:{alias:``,enabled:!0}}}}},kf=`people:personalemail:profile:waterfall@1`,Af=g(`profile_url`),jf=g(`personal_email`),Mf=g(`alternate_personal_emails`),Nf=[`clado`,`leadmagic`,`mixrank`],Pf=[{provider:`leadmagic`},{provider:`mixrank`}],Ff=r.object({pipe_id:r.literal(kf),run_if:x(),connector:C(),config:r.object({providers:E({sectionKey:`general`,availableProviders:Nf,defaultProviders:Pf}),input_fields:R(r.object({[Af.name]:T({fieldName:Af.name})})),output_fields:L(r.object({[jf.name]:O({fieldName:jf.name}),[Mf.name]:O({fieldName:Mf.name})}))}).optional()}),If=e=>B(G(Af,e)),Lf={"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`}},Rf=class extends H{pipeId=kf;payload;payloadSchema=Ff;billableOperations=Lf;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 If(this.payload.config)}getRawOutputFields(){return{[jf.name]:this.catalogOutput(jf,{isPrimaryOutput:!0}),[Mf.name]:this.catalogOutput(Mf)}}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}))}},zf=Ff,Bf={pipeId:kf,basePipe:U(kf),allowedUserConnectionProviders:Nf,managedProviders:Nf,deprecatedProviders:[`clado`],label:`Personal email from LinkedIn`,executionMode:`waterfall`,categories:[`deprecated`],lifecycle:{deprecatedOn:`2026-06-13`,replacedBy:`person:personalemail:profileurl:waterfall@1`},description:`Find the personal email address of a prospect by using a professional profile URL as input.`,tags:[z.EMAIL,z.PERSONAL_EMAIL],docPath:W(kf),billableOperations:Lf,defaultInputRequirement:If(null),inputFieldMode:`static`,outputFieldMode:`static`,defaultPayload:{pipe_id:kf,connector:null,run_if:null,config:{providers:Pf,input_fields:{profile_url:{alias:``}},output_fields:{personal_email:{alias:``,enabled:!0},alternate_personal_emails:{alias:``,enabled:!0}}}}},Vf=`people:phone:profile:waterfall@1`,Hf=g(`profile_url`),Uf=g(`mobile`),Wf=[`leadmagic`,`prospeo`,`amplemarket`,`findymail`,`clado`],Gf=[{provider:`leadmagic`},{provider:`prospeo`},{provider:`amplemarket`},{provider:`findymail`}],Kf=r.object({pipe_id:r.literal(Vf),run_if:x(),connector:C(),config:r.object({providers:E({sectionKey:`general`,defaultProviders:Gf,availableProviders:Wf}),input_fields:R(r.object({[Hf.name]:T({fieldName:Hf.name})})),output_fields:L(r.object({[Uf.name]:O({fieldName:Uf.name})}))}).optional()}),qf=e=>B(G(Hf,e)),Jf={"people-phone-profile-waterfall-v1-leadmagic":{provider:`leadmagic`,allowManagedConnection:!0,credits:{default:2},mode:`onSuccess`},"people-phone-profile-waterfall-v1-clado":{provider:`clado`,allowManagedConnection:!0,credits:{default:5},mode:`onSuccess`},"people-phone-profile-waterfall-v1-prospeo":{provider:`prospeo`,allowManagedConnection:!0,credits:{default:5},mode:`onSuccess`},"people-phone-profile-waterfall-v1-findymail":{provider:`findymail`,allowManagedConnection:!0,credits:{default:6},mode:`onSuccess`},"people-phone-profile-waterfall-v1-amplemarket":{provider:`amplemarket`,allowManagedConnection:!0,credits:{default:4},mode:`onSuccess`}},Yf=class extends H{pipeId=Vf;payload;payloadSchema=Kf;billableOperations=Jf;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 qf(this.payload.config)}getRawOutputFields(){return{[Uf.name]:this.catalogOutput(Uf,{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}))}},Xf=Kf,Zf={pipeId:Vf,basePipe:U(Vf),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(Vf),tags:[z.PHONE,z.WATERFALL],billableOperations:Jf,defaultInputRequirement:qf(null),inputFieldMode:`static`,outputFieldMode:`static`,managedProviders:Wf,allowedUserConnectionProviders:Wf,deprecatedProviders:[`clado`],defaultPayload:{pipe_id:Vf,connector:null,run_if:null,config:{providers:Gf,input_fields:{profile_url:{alias:``}},output_fields:{mobile:{alias:``,enabled:!0}}}}},Qf=`people:phone:workemail:waterfall@1`,$f=g(`work_email`),ep=g(`mobile`),tp=[`leadmagic`,`amplemarket`],np=[{provider:`leadmagic`},{provider:`amplemarket`}],rp=r.object({pipe_id:r.literal(Qf),run_if:x(),connector:C(),config:r.object({providers:E({sectionKey:`general`,availableProviders:tp,defaultProviders:np}),input_fields:R(r.object({[$f.name]:T({fieldName:$f.name})})),output_fields:L(r.object({[ep.name]:O({fieldName:ep.name})}))}).optional()}),ip=e=>B(G($f,e)),ap={"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`}},op=class extends H{pipeId=Qf;payload;payloadSchema=rp;billableOperations=ap;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 ip(this.payload.config)}getRawOutputFields(){return{[ep.name]:this.catalogOutput(ep,{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}))}},sp=rp,cp={pipeId:Qf,basePipe:U(Qf),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(Qf),billableOperations:ap,defaultInputRequirement:ip(null),inputFieldMode:`static`,outputFieldMode:`static`,allowedUserConnectionProviders:tp,managedProviders:tp,deprecatedProviders:[],defaultPayload:{pipe_id:Qf,connector:null,run_if:null,config:{providers:np,input_fields:{work_email:{alias:``}},output_fields:{mobile:{alias:``,enabled:!0}}}}},lp=`people:professionalprofile:waterfall@1`,up=g(`professional_profile`),dp=g(`professional_profile_url`),fp=[`prospeo`,`icypeas`],pp=[{provider:`prospeo`},{provider:`icypeas`}],mp=r.object({pipe_id:r.literal(lp),run_if:x(),connector:C(),config:r.object({providers:E({sectionKey:`general`,availableProviders:fp,defaultProviders:pp}),input_fields:R(r.object({[dp.name]:T({fieldName:dp.name})})),output_fields:L(r.object({[up.name]:O({fieldName:up.name})}))}).optional()}),hp=e=>B(G(dp,e)),gp={"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}},_p=class extends H{pipeId=lp;payload;payloadSchema=mp;billableOperations=gp;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 hp(this.payload.config)}getRawOutputFields(){return{[up.name]:this.catalogOutput(up)}}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}))}},vp=mp,yp={pipeId:lp,basePipe:U(lp),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:fp,deprecatedProviders:[],allowedUserConnectionProviders:fp,inputFieldMode:`static`,outputFieldMode:`static`,billableOperations:gp,defaultInputRequirement:hp(null),defaultPayload:{pipe_id:lp,run_if:null,connector:null,config:{providers:pp,input_fields:{professional_profile_url:{alias:``}},output_fields:{professional_profile:{alias:``,enabled:!0}}}}},bp=`people:professionalprofileurl:email:waterfall@1`,xp=g(`email`),Sp=g(`work_email`),Cp=g(`professional_profile_url`),wp=[`leadmagic`],Tp=[{provider:`leadmagic`}],Ep=r.object({pipe_id:r.literal(bp),run_if:x(),connector:C(),config:r.object({providers:E({sectionKey:`general`,defaultProviders:Tp,availableProviders:wp}),input_fields:R(r.object({[xp.name]:T({fieldName:xp.name}),[Sp.name]:T({fieldName:Sp.name})})),output_fields:L(r.object({[Cp.name]:O({fieldName:Cp.name})}))}).optional()}),Dp=e=>V(G(xp,e),G(Sp,e)),Op={"people-professionalprofileurl-email-waterfall-v1-leadmagic":{provider:`leadmagic`,allowManagedConnection:!0,credits:{default:3.5},mode:`onSuccess`}},kp=class extends H{pipeId=bp;payload;payloadSchema=Ep;billableOperations=Op;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 Dp(this.payload.config)}getRawOutputFields(){return{[Cp.name]:this.catalogOutput(Cp)}}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}))}},Ap=Ep,jp={pipeId:bp,basePipe:U(bp),managedProviders:wp,deprecatedProviders:[],allowedUserConnectionProviders:wp,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:Op,inputFieldMode:`static`,outputFieldMode:`static`,defaultInputRequirement:Dp(null),defaultPayload:{pipe_id:bp,run_if:null,connector:null,config:{providers:Tp,input_fields:{email:{alias:``},work_email:{alias:``}},output_fields:{professional_profile_url:{alias:``,enabled:!0}}}}},Mp=`people:professionalprofileurl:name@1`,Np=g(`name`),Pp=g(`company_name`),Fp=g(`location_hint`),Ip=g(`professional_profile_url`),Lp=r.object({pipe_id:r.literal(Mp),connector:w(),run_if:x(),config:r.object({input_fields:R(r.object({[Np.name]:T({fieldName:Np.name}),[Pp.name]:T({fieldName:Pp.name}),[Fp.name]:T({fieldName:Fp.name})})),output_fields:L(r.object({[Ip.name]:O({fieldName:Ip.name})}))}).optional()}),Rp=e=>Ka(B(G(Np,e)),B(G(Pp,e)),qa(G(Fp,e))),zp={"people-professionalprofileurl-name-v1-pipe0":{provider:`pipe0`,allowManagedConnection:!0,credits:{default:.6},mode:`always`}},Bp=class extends H{pipeId=Mp;payload;payloadSchema=Lp;billableOperations=zp;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[`people-professionalprofileurl-name-v1-pipe0`]}getInputRequirement(){return Rp(this.payload.config)}getRawOutputFields(){return{[Ip.name]:this.catalogOutput(Ip)}}getConnectionsRequirements(){return[{provider:`serper`,rateLimitRatio:1,rateLimitOperation:`serper_search`,allowManagedConnection:!0}]}},Vp=Lp,Hp={pipeId:Mp,basePipe:U(Mp),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:zp,defaultInputRequirement:Rp(null),inputFieldMode:`static`,outputFieldMode:`static`,defaultPayload:{pipe_id:Mp,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}}}}},Up=`people:profile:waterfall@1`,Wp=g(`profile`),Gp=g(`profile_url`),Kp=[`prospeo`,`icypeas`,`amplemarket`,`clado`],qp=[{provider:`amplemarket`},{provider:`prospeo`},{provider:`icypeas`}],Jp=r.object({pipe_id:r.literal(Up),run_if:x(),connector:C(),config:r.object({providers:E({sectionKey:`general`,availableProviders:Kp,defaultProviders:qp}),input_fields:R(r.object({[Gp.name]:T({fieldName:Gp.name})})),output_fields:L(r.object({[Wp.name]:O({fieldName:Wp.name})}))}).optional()}),Yp=e=>B(G(Gp,e)),Xp={"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}},Zp=class extends H{pipeId=Up;payload;payloadSchema=Jp;billableOperations=Xp;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 Yp(this.payload.config)}getRawOutputFields(){return{[Wp.name]:this.catalogOutput(Wp,{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}))}},Qp=Jp,$p={pipeId:Up,basePipe:U(Up),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(Up),tags:[z.LINKEDIN,z.WATERFALL],managedProviders:Kp,deprecatedProviders:[`clado`],allowedUserConnectionProviders:Kp,inputFieldMode:`static`,outputFieldMode:`static`,billableOperations:Xp,defaultInputRequirement:Yp(null),defaultPayload:{pipe_id:Up,run_if:null,connector:null,config:{providers:qp,input_fields:{profile_url:{alias:``}},output_fields:{profile:{alias:``,enabled:!0}}}}},em=g(`work_email`),tm=g(`crustdata_person_match`),nm=g(`crustdata_profile_match_score`),rm=`people:profile:workemail:crustdata@1`,im=r.object({pipe_id:r.literal(rm),run_if:x(),connector:C(),config:r.object({input_fields:R(r.object({[em.name]:T({fieldName:em.name})})),output_fields:L(r.object({[tm.name]:O({fieldName:tm.name}),[nm.name]:O({fieldName:nm.name})}))}).optional()}),am=e=>B(G(em,e)),om={"people-profile-workemail-crustdata-v1-crustdata":{allowManagedConnection:!0,credits:{default:5},mode:`onSuccess`,provider:`crustdata`}},sm=class extends H{pipeId=rm;payload;payloadSchema=im;billableOperations=om;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`crustdata`]}estimateBillableOperations(){return[`people-profile-workemail-crustdata-v1-crustdata`]}getInputRequirement(){return am(this.payload.config)}getRawOutputFields(){return{[tm.name]:this.catalogOutput(tm),[nm.name]:this.catalogOutput(nm)}}getConnectionsRequirements(){return[{provider:`crustdata`,rateLimitRatio:1,rateLimitOperation:`crustdata_realtime_person_enrich`,allowManagedConnection:!0}]}},cm=im,lm={pipeId:rm,inputFieldMode:`static`,outputFieldMode:`static`,basePipe:U(rm),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(rm),billableOperations:om,allowedUserConnectionProviders:[`crustdata`],managedProviders:[`crustdata`],deprecatedProviders:[],defaultInputRequirement:am(null),defaultPayload:{pipe_id:rm,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}}}}},um=`people:profileurl:email:waterfall@1`,dm=g(`email`),fm=g(`work_email`),pm=g(`profile_url`),mm=[`leadmagic`],hm=[{provider:`leadmagic`}],gm=r.object({pipe_id:r.literal(um),run_if:x(),connector:C(),config:r.object({providers:E({sectionKey:`general`,defaultProviders:hm,availableProviders:mm}),input_fields:R(r.object({[dm.name]:T({fieldName:dm.name}),[fm.name]:T({fieldName:fm.name})})),output_fields:L(r.object({[pm.name]:O({fieldName:pm.name})}))}).optional()}),_m=e=>V(G(dm,e),G(fm,e)),vm={"people-profileurl-email-waterfall-v1-leadmagic":{provider:`leadmagic`,allowManagedConnection:!0,credits:{default:3.5},mode:`onSuccess`}},ym=class extends H{pipeId=um;payload;payloadSchema=gm;billableOperations=vm;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 _m(this.payload.config)}getRawOutputFields(){return{[pm.name]:this.catalogOutput(pm,{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}))}},bm=gm,xm={pipeId:um,basePipe:U(um),managedProviders:mm,deprecatedProviders:[],allowedUserConnectionProviders:mm,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(um),billableOperations:vm,inputFieldMode:`static`,outputFieldMode:`static`,defaultInputRequirement:_m(null),defaultPayload:{pipe_id:um,run_if:null,connector:null,config:{providers:hm,input_fields:{email:{alias:``},work_email:{alias:``}},output_fields:{profile_url:{alias:``,enabled:!0}}}}},Sm=`people:validate:email:zerobounce@1`,Cm=g(`work_email`),wm=g(`ip_address`),Tm=g(`is_email_valid`),Em=r.object({pipe_id:r.literal(Sm),connector:C(),run_if:x(),config:r.object({input_fields:R(r.object({[Cm.name]:T({fieldName:Cm.name}),[wm.name]:T({fieldName:wm.name})})),output_fields:L(r.object({[Tm.name]:O({fieldName:Tm.name})}))}).optional()}),Dm=e=>Ka(B(G(Cm,e)),qa(G(wm,e))),Om={"people-validate-email-zerobounce-v1-zerobounce":{provider:`zerobounce`,allowManagedConnection:!0,credits:{default:.5},mode:`always`}},km=class extends H{pipeId=Sm;payload;payloadSchema=Em;billableOperations=Om;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`zerobounce`]}estimateBillableOperations(){return[`people-validate-email-zerobounce-v1-zerobounce`]}getInputRequirement(){return Dm(this.payload.config)}getRawOutputFields(){return{[Tm.name]:this.catalogOutput(Tm)}}getConnectionsRequirements(){return[{provider:`zerobounce`,rateLimitRatio:1,rateLimitOperation:`zerobounce_generic`,allowManagedConnection:!0}]}},Am=Em,jm={pipeId:Sm,basePipe:U(Sm),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:Om,inputFieldMode:`static`,outputFieldMode:`static`,allowedUserConnectionProviders:[`zerobounce`],managedProviders:[`zerobounce`],deprecatedProviders:[],defaultInputRequirement:Dm(null),defaultPayload:{pipe_id:Sm,connector:null,run_if:null,config:{input_fields:{ip_address:{alias:``},work_email:{alias:``}},output_fields:{is_email_valid:{alias:``,enabled:!0}}}}},Mm=`people:workemail:profileurl:waterfall@1`,Nm=g(`profile_url`),Pm=g(`work_email`),Fm=g(`email_validation_status`),Im=[`hunter`,`amplemarket`,`findymail`,`leadmagic`,`crustdata`,`clado`],Lm=[`clado`],Rm=[{provider:`hunter`},{provider:`amplemarket`},{provider:`leadmagic`},{provider:`findymail`},{provider:`crustdata`}],zm=r.object({pipe_id:r.literal(Mm),connector:C(),run_if:x(),config:r.object({providers:E({availableProviders:Im,defaultProviders:Rm,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({[Nm.name]:T({fieldName:Nm.name})})),output_fields:L(r.object({[Pm.name]:O({fieldName:Pm.name}),[Fm.name]:O({fieldName:Fm.name})}))}).optional()}),Bm=e=>B(G(Nm,e)),Vm={"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`}},Hm=class extends H{pipeId=Mm;payload;payloadSchema=zm;billableOperations=Vm;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 Bm(this.payload.config)}getRawOutputFields(){return{[Pm.name]:this.catalogOutput(Pm,{isPrimaryOutput:!0}),[Fm.name]:this.catalogOutput(Fm,{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}))}},Um=zm,Wm={pipeId:Mm,basePipe:U(Mm),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(Mm),managedProviders:Im,allowedUserConnectionProviders:Im,deprecatedProviders:Lm,inputFieldMode:`static`,outputFieldMode:`static`,billableOperations:Vm,defaultInputRequirement:Bm(null),defaultPayload:{pipe_id:Mm,connector:null,run_if:null,config:{providers:Rm,allow_catch_all_emails:!0,allow_risky_emails:!0,input_fields:{profile_url:{alias:``}},output_fields:{work_email:{alias:``,enabled:!0},email_validation_status:{alias:``,enabled:!0}}}}},Gm=`people:workemail:waterfall@1`,Km=g(`name`),qm=g(`company_website_url`),Jm=g(`company_name`),Ym=g(`work_email`),Xm=g(`email_validation_status`),Zm=[`leadmagic`,`prospeo`,`amplemarket`,`hunter`,`icypeas`,`findymail`],Qm=[{provider:`leadmagic`},{provider:`prospeo`},{provider:`amplemarket`},{provider:`hunter`},{provider:`icypeas`},{provider:`findymail`}],$m=r.object({pipe_id:r.literal(Gm),connector:C(),run_if:x(),config:r.object({providers:E({availableProviders:Zm,defaultProviders:Qm,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({[Km.name]:T({fieldName:Km.name}),[qm.name]:T({fieldName:qm.name}),[Jm.name]:T({fieldName:Jm.name})})),output_fields:L(r.object({[Ym.name]:O({fieldName:Ym.name}),[Xm.name]:O({fieldName:Xm.name})}))}).optional()}),eh=e=>Ka(B(G(Km,e)),V(G(qm,e),G(Jm,e))),th={"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`}},nh=class extends H{pipeId=Gm;payload;payloadSchema=$m;billableOperations=th;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 eh(this.payload.config)}getRawOutputFields(){return{[Ym.name]:this.catalogOutput(Ym,{isPrimaryOutput:!0}),[Xm.name]:this.catalogOutput(Xm,{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}))}},rh=$m,ih={pipeId:Gm,basePipe:U(Gm),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(Gm),managedProviders:Zm,deprecatedProviders:[],allowedUserConnectionProviders:Zm,inputFieldMode:`static`,outputFieldMode:`static`,billableOperations:th,defaultInputRequirement:eh(null),defaultPayload:{pipe_id:Gm,connector:null,run_if:null,config:{providers:Qm,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}}}}},ah=`email:iswork@1`,oh=g(`is_work_email`),sh=g(`email`),ch=r.object({pipe_id:r.literal(ah),run_if:x(),connector:w(),config:r.object({input_fields:R(r.object({[sh.name]:T({fieldName:sh.name})})),output_fields:L(r.object({[oh.name]:O({fieldName:oh.name})}))}).optional()}),lh=e=>B(G(sh,e)),uh={"email-iswork-v1-pipe0":{provider:`pipe0`,allowManagedConnection:!0,credits:{default:0},mode:`always`}},dh=class extends H{pipeId=ah;payload;payloadSchema=ch;billableOperations=uh;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[`email-iswork-v1-pipe0`]}getInputRequirement(){return lh(this.payload.config)}getRawOutputFields(){return{[oh.name]:this.catalogOutput(oh)}}getConnectionsRequirements(){return[{provider:`pipe0`,rateLimitRatio:1,rateLimitOperation:`pipe0_logic`,allowManagedConnection:!0}]}},fh=ch,ph={pipeId:ah,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(ah),billableOperations:uh,basePipe:U(ah),allowedUserConnectionProviders:[],inputFieldMode:`static`,outputFieldMode:`static`,managedProviders:[`pipe0`],deprecatedProviders:[],defaultInputRequirement:lh(null),defaultPayload:{pipe_id:ah,run_if:null,connector:null,config:{input_fields:{email:{alias:``}},output_fields:{is_work_email:{alias:``,enabled:!0}}}}};function mh(e,t){return typeof t==`string`?t:t(e)}function hh(e,t){return typeof t==`string`||t===null?t:t(e)}function gh(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:mh(e,a[r].type),format:hh(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 _h(e,t){for(let n of e.pipes){let r=n.getOutputFields();if(r[t])return{type:mh(e,r[t].type),format:hh(e,r[t].format)}}let n=e.derivedInputFields[t];if(n)return{type:n.type,format:null}}function vh(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=qr(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=>_h(t,e)?.type||n,format:r};a.push(t.required?B(i):qa(i))}return Ka(...a)}function yh(e){let t=new Set;for(let n of e)if(n)try{let e=qr(n);for(let n of e.secrets)t.add(n)}catch{}return[...t]}function bh(e){let t=new Set;for(let n of e)if(n)try{let e=qr(n);for(let n of e.constants)t.add(n)}catch{}return[...t]}const xh=`email:send:gmail@1`,Sh=g(`gmail_email_success`),Ch=r.object({pipe_id:r.literal(xh),connector:sa(),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
69
|
β¦`,inputType:`text`,minLength:1,maxLength:1e6,expectedTagType:`string`,expectedTagFormat:`markdown`,multiline:!0}),output_fields:L(r.object({[Sh.name]:O({fieldName:Sh.name})}))})}),wh={"email-send-gmail-v1-gmail":{allowManagedConnection:!1,provider:`gmail`,credits:null,mode:null}},Th=class extends H{pipeId=xh;payload;payloadSchema=Ch;billableOperations=wh;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 vh(this.getTemplatedFields())}getSecretRequirements(){return yh(this.getTemplatedFields())}getConstantRequirements(){return bh(this.getTemplatedFields())}getRawOutputFields(){return{[Sh.name]:this.catalogOutput(Sh)}}getConnectionsRequirements(){return[{provider:`gmail`,rateLimitRatio:1,rateLimitOperation:`gmail_send_email`,allowManagedConnection:!1}]}},Eh=Ch,Dh={pipeId:xh,basePipe:U(xh),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(xh),billableOperations:wh,inputFieldMode:`config`,outputFieldMode:`static`,allowedUserConnectionProviders:[`gmail`],defaultInputRequirement:null,managedProviders:[],deprecatedProviders:[],defaultPayload:{pipe_id:xh,connector:{strategy:`first`,connections:[]},run_if:null,config:{to:``,reply_to:``,subject:``,body:``,output_fields:{gmail_email_success:{alias:``,enabled:!0}}}}},Oh=`email:send:resend@1`,kh=g(`resend_email_success`),Ah=r.object({pipe_id:r.literal(Oh),connector:sa(),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
71
|
β¦`,inputType:`text`,minLength:1,maxLength:1e6,expectedTagType:`string`,expectedTagFormat:`markdown`,multiline:!0}),output_fields:L(r.object({[kh.name]:O({fieldName:kh.name})}))})}),jh={"email-send-resend-v1-resend":{allowManagedConnection:!1,provider:`resend`,credits:null,mode:null}},Mh=class extends H{pipeId=Oh;payload;payloadSchema=Ah;billableOperations=jh;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 vh(this.getTemplatedFields())}getSecretRequirements(){return yh(this.getTemplatedFields())}getConstantRequirements(){return bh(this.getTemplatedFields())}getRawOutputFields(){return{[kh.name]:this.catalogOutput(kh)}}getConnectionsRequirements(){return[{provider:`resend`,rateLimitRatio:1,rateLimitOperation:`resend_generic`,allowManagedConnection:!1}]}},Nh=Ah,Ph={pipeId:Oh,basePipe:U(Oh),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(Oh),billableOperations:jh,inputFieldMode:`config`,outputFieldMode:`static`,allowedUserConnectionProviders:[`resend`],defaultInputRequirement:null,managedProviders:[],deprecatedProviders:[],defaultPayload:{pipe_id:Oh,connector:{strategy:`first`,connections:[]},run_if:null,config:{from:``,to:``,reply_to:``,subject:``,body:``,output_fields:{resend_email_success:{alias:``,enabled:!0}}}}},Fh=`email:validate:zerobounce@1`,Ih=g(`email`),Lh=g(`zerobounce_validation_status`),Rh=g(`zerobounce_validation_match`),zh=r.object({pipe_id:r.literal(Fh),connector:C(),run_if:x(),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}),[Lh.name]:O({fieldName:Lh.name})}))}).optional()}),Bh=e=>B(G(Ih,e)),Vh={"email-validate-zerobounce-v1-zerobounce":{provider:`zerobounce`,allowManagedConnection:!0,credits:{default:.4,level1:{credits:.3,weight:1},level2:{credits:.15,weight:6}},mode:`always`}},Hh=class extends H{pipeId=Fh;payload;payloadSchema=zh;billableOperations=Vh;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`zerobounce`]}estimateBillableOperations(){return[`email-validate-zerobounce-v1-zerobounce`]}getInputRequirement(){return Bh(this.payload.config)}getRawOutputFields(){return{[Lh.name]:this.catalogOutput(Lh),[Rh.name]:this.catalogOutput(Rh)}}getConnectionsRequirements(){return[{provider:`zerobounce`,rateLimitRatio:1,rateLimitOperation:`zerobounce_generic`,allowManagedConnection:!0}]}},Uh=zh,Wh={pipeId:Fh,basePipe:U(Fh),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(Fh),billableOperations:Vh,inputFieldMode:`static`,outputFieldMode:`static`,allowedUserConnectionProviders:[`zerobounce`],managedProviders:[`zerobounce`],deprecatedProviders:[],defaultInputRequirement:Bh(null),defaultPayload:{pipe_id:Fh,connector:null,run_if:null,config:{input_fields:{email:{alias:``}},output_fields:{zerobounce_validation_status:{alias:``,enabled:!0},zerobounce_validation_match:{alias:``,enabled:!0}}}}},Gh={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 Gh[e]}const Kh=`email:write@1`,qh=`email-write-v1`,Jh=_i(qh),Yh=g(`email_subject`),Xh=g(`email_body`),Zh=r.object({pipe_id:r.literal(Kh),connector:C(),run_if:x(),config:r.object({template:aa({sectionKey:`general`,label:`Prompt`,path:`config.template`,placeholder:J(`prompt`),groupPath:`config.prompt`,required:!0}),model:Ta({sectionKey:`general`,label:`Model`,path:`config.model`,groupPath:`config.prompt`,billableOperations:Jh}),signature:Ca({sectionKey:`general`,label:`Signature (Markdown)`,path:`config.signature`,groupPath:`config.email`,minLength:5,rows:10}),persona:wa({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({[Yh.name]:O({fieldName:Yh.name}),[Xh.name]:O({fieldName:Xh.name})}))})}),Qh=class extends H{pipeId=Kh;payload;payloadSchema=Zh;billableOperations=Jh;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return yi(this.payload.config.model)}estimateBillableOperations(){return[vi(this.payload.config.model,qh)]}getInputRequirement(){return vh([this.payload.config.template])}getSecretRequirements(){return yh([this.payload.config.template])}getConstantRequirements(){return bh([this.payload.config.template])}getRawOutputFields(){return{[Yh.name]:this.catalogOutput(Yh),[Xh.name]:this.catalogOutput(Xh)}}getConnectionsRequirements(){return bi(this.payload.config.model)}},$h=Zh,eg={pipeId:Kh,inputFieldMode:`config`,outputFieldMode:`static`,basePipe:U(Kh),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(Kh),defaultInputRequirement:null,billableOperations:Jh,allowedUserConnectionProviders:xi(),managedProviders:xi(),deprecatedProviders:[],defaultPayload:{pipe_id:Kh,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:``}}},tg=`field:domainify@1`,ng=g(`url_input`),rg=g(`domain`),ig=r.object({pipe_id:r.literal(tg),run_if:x(),connector:w(),config:r.object({input_fields:R(r.object({[ng.name]:T({fieldName:ng.name})})),output_fields:L(r.object({[rg.name]:O({fieldName:rg.name})}))}).optional()}),ag=e=>B(G(ng,e)),og={"field-domainify-v1-pipe0":{provider:`pipe0`,allowManagedConnection:!0,credits:{default:0},mode:`always`}},sg=class extends H{pipeId=tg;payload;payloadSchema=ig;billableOperations=og;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[]}getInputRequirement(){return ag(this.payload.config)}getRawOutputFields(){return{[rg.name]:this.catalogOutput(rg)}}getConnectionsRequirements(){return[{provider:`pipe0`,rateLimitRatio:1,rateLimitOperation:`pipe0_logic`,allowManagedConnection:!0}]}},cg=ig,lg={pipeId:tg,basePipe:U(tg),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(tg),billableOperations:og,defaultInputRequirement:ag(null),inputFieldMode:`static`,outputFieldMode:`static`,allowedUserConnectionProviders:[],managedProviders:[`pipe0`],deprecatedProviders:[],defaultPayload:{pipe_id:tg,run_if:null,connector:null,config:{input_fields:{url_input:{alias:``}},output_fields:{domain:{alias:``,enabled:!0}}}}},ug=`field:slugify@1`,dg=g(`string_input`),fg=g(`slugified`),pg=r.object({pipe_id:r.literal(ug),run_if:x(),connector:w(),config:r.object({input_fields:R(r.object({[dg.name]:T({fieldName:dg.name})})),output_fields:L(r.object({[fg.name]:O({fieldName:fg.name})}))}).optional()}),mg=e=>B(G(dg,e)),hg={"field-slugify-v1-pipe0":{provider:`pipe0`,allowManagedConnection:!0,credits:{default:0},mode:`always`}},gg=class extends H{pipeId=ug;payload;payloadSchema=pg;billableOperations=hg;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[]}getInputRequirement(){return mg(this.payload.config)}getRawOutputFields(){return{[fg.name]:this.catalogOutput(fg)}}getConnectionsRequirements(){return[{provider:`pipe0`,rateLimitRatio:1,rateLimitOperation:`pipe0_logic`,allowManagedConnection:!0}]}},_g=pg,vg={pipeId:ug,basePipe:U(ug),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(ug),billableOperations:hg,defaultInputRequirement:mg(null),inputFieldMode:`static`,outputFieldMode:`static`,allowedUserConnectionProviders:[],managedProviders:[`pipe0`],deprecatedProviders:[],defaultPayload:{pipe_id:ug,run_if:null,connector:null,config:{input_fields:{string_input:{alias:``}},output_fields:{slugified:{alias:``,enabled:!0}}}}};function yg({name:e,resolvedName:t}){return e===t?`'${e}'`:`'${e}' (resolved to '${t}')`}function bg(e){switch(e.kind){case`field`:return yg(e.field);case`optional`:return`[optional ${yg(e.field)}]`;case`all`:return e.of.length===0?`(none)`:e.of.length===1?bg(e.of[0]):`(${e.of.map(bg).join(` AND `)})`;case`any`:return e.of.length===0?`(none)`:e.of.length===1?bg(e.of[0]):`(${e.of.map(bg).join(` OR `)})`}}function xg(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})`}`:``}: ${bg(e)}. Map missing fields to existing ones, add a pipe that outputs them, or include them in your inputs.`}var Sg=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:xg(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 ${yg(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 Cg=class extends Error{},X=class extends Cg{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 wg=`fields:merge@1`,Tg=g(`merge_result`),Eg=r.object({pipe_id:r.literal(wg),connector:w(),run_if:x(),config:r.object({sources:fa({sectionKey:`general`,groupPath:`config.general`,path:`config.sources`,info:`Provide references to input fields`,minItems:2}),output_fields:L(r.object({[Tg.name]:O({fieldName:Tg.name})}))})}),Dg={"fields-merge-v1-pipe0":{credits:{default:0},allowManagedConnection:!0,provider:`pipe0`,mode:`always`}},Og=class extends H{pipeId=wg;payload;payloadSchema=Eg;billableOperations=Dg;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=gh(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{[Tg.name]:this.catalogOutput(Tg,{resolveType:e=>{let t=gh(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}]}},kg=Eg,Ag={pipeId:wg,inputFieldMode:`config`,outputFieldMode:`static`,basePipe:U(wg),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(wg),defaultInputRequirement:null,billableOperations:Dg,allowedUserConnectionProviders:[],managedProviders:[`pipe0`],deprecatedProviders:[],defaultPayload:{pipe_id:wg,connector:null,run_if:null,config:{sources:[],output_fields:{merge_result:{alias:``,enabled:!0}}}}},jg=`http:request@1`,Mg=g(`http_response_status`),Ng=g(`http_response_body`),Pg=g(`http_response_headers`),Fg=r.object({pipe_id:r.literal(jg),connector:w(),run_if:x(),config:r.object({method:wa({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:_a({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:_a({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:ka({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({[Mg.name]:O({fieldName:Mg.name}),[Ng.name]:O({fieldName:Ng.name}),[Pg.name]:O({fieldName:Pg.name})}))})}),Ig={"http-request-v1-pipe0":{provider:`pipe0`,allowManagedConnection:!0,credits:{default:.001},mode:`always`}},Lg=class extends H{pipeId=jg;payload;payloadSchema=Fg;billableOperations=Ig;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[`http-request-v1-pipe0`]}getTemplatedFields(){let e=[this.payload.config.url,this.payload.config.body];for(let t of this.payload.config.query_params??[])e.push(t.key,t.value);for(let t of this.payload.config.headers??[])e.push(t.key,t.value);return e}getInputRequirement(){return vh(this.getTemplatedFields(),{expectedType:`string`,expectedFormat:`text`})}getSecretRequirements(){return yh(this.getTemplatedFields())}getConstantRequirements(){return bh(this.getTemplatedFields())}getRawOutputFields(){return{[Mg.name]:this.catalogOutput(Mg),[Ng.name]:this.catalogOutput(Ng),[Pg.name]:this.catalogOutput(Pg)}}getConnectionsRequirements(){return[{provider:`pipe0`,rateLimitRatio:1,rateLimitOperation:`pipe0_logic`,allowManagedConnection:!0}]}},Rg=Fg,zg={pipeId:jg,basePipe:U(jg),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(jg),billableOperations:Ig,defaultInputRequirement:null,inputFieldMode:`config`,outputFieldMode:`static`,allowedUserConnectionProviders:[],managedProviders:[`pipe0`],deprecatedProviders:[],defaultPayload:{pipe_id:jg,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}}}}},Bg=`json:extract:multi@1`,Vg=r.object({pipe_id:r.literal(Bg),run_if:x(),connector:w(),config:r.object({json_extraction:ji()})}),Hg={"json-extract-multi-v1-pipe0":{provider:`pipe0`,allowManagedConnection:!0,credits:{default:0},mode:`always`}},Ug=class extends H{pipeId=Bg;payload;payloadSchema=Vg;billableOperations=Hg;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[]}},Wg=Vg,Gg={pipeId:Bg,basePipe:U(Bg),inputFieldMode:`config`,outputFieldMode:`config`,label:`JSON extract`,executionMode:`single`,categories:[`tools`],lifecycle:null,description:`Extract nested JSON properties into new output fields.`,docPath:W(Bg),tags:[z.JSON],managedProviders:[`pipe0`],deprecatedProviders:[],allowedUserConnectionProviders:[],billableOperations:Hg,defaultInputRequirement:null,defaultPayload:{pipe_id:Bg,run_if:null,connector:null,config:{json_extraction:{field_name:``,extractions:[]}}}},Kg=`message:send:slack@1`,qg=g(`slack_message_success`),Jg=[{label:`#demo-general`,value:`C0SANDBOX001`},{label:`#demo-alerts`,value:`C0SANDBOX002`}],Yg=r.object({pipe_id:r.literal(Kg),connector:sa(),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 Jg;if(!t)throw new mc.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 mc.HttpError({msg:e})}let i=await r.json();if(!i.ok)throw new mc.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({[qg.name]:O({fieldName:qg.name})}))})}),Xg={"message-send-slack-v1-slack":{allowManagedConnection:!1,provider:`slack`,credits:null,mode:null}},Zg=class extends H{pipeId=Kg;payload;payloadSchema=Yg;billableOperations=Xg;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 vh(this.getTemplatedFields())}getSecretRequirements(){return yh(this.getTemplatedFields())}getConstantRequirements(){return bh(this.getTemplatedFields())}getRawOutputFields(){return{[qg.name]:this.catalogOutput(qg)}}getConnectionsRequirements(){return[{provider:`slack`,rateLimitRatio:1,rateLimitOperation:`slack_post_message`,allowManagedConnection:!1}]}},Qg=Yg,$g={pipeId:Kg,basePipe:U(Kg),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(Kg),billableOperations:Xg,inputFieldMode:`config`,outputFieldMode:`static`,allowedUserConnectionProviders:[`slack`],managedProviders:[],deprecatedProviders:[],defaultInputRequirement:null,defaultPayload:{pipe_id:Kg,connector:{strategy:`first`,connections:[]},run_if:null,config:{channel_id:``,message:``,output_fields:{slack_message_success:{alias:``,enabled:!0}}}}},e_=`message:write@1`,t_=g(`message`),n_=`message-write-v1`,r_=_i(n_),i_=r.object({pipe_id:r.literal(e_),connector:C(),run_if:x(),config:r.object({template:aa({sectionKey:`general`,label:`Template`,path:`config.template`,placeholder:J(`prompt`),groupPath:`config.prompt`,required:!0}),model:Ta({sectionKey:`general`,label:`Model`,path:`config.model`,groupPath:`config.prompt`,billableOperations:r_}),output_fields:L(r.object({[t_.name]:O({fieldName:t_.name})}))})}),a_=class extends H{pipeId=e_;payload;payloadSchema=i_;billableOperations=r_;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return yi(this.payload.config.model)}estimateBillableOperations(){return[vi(this.payload.config.model,n_)]}getInputRequirement(){return vh([this.payload.config.template])}getSecretRequirements(){return yh([this.payload.config.template])}getConstantRequirements(){return bh([this.payload.config.template])}getRawOutputFields(){return{[t_.name]:this.catalogOutput(t_)}}getConnectionsRequirements(){return bi(this.payload.config.model)}},o_=i_,s_={pipeId:e_,inputFieldMode:`config`,outputFieldMode:`static`,basePipe:U(e_),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(e_),defaultInputRequirement:null,billableOperations:r_,allowedUserConnectionProviders:xi(),managedProviders:xi(),deprecatedProviders:[],defaultPayload:{pipe_id:e_,connector:null,run_if:null,config:{model:`openai-gpt-latest`,template:``,output_fields:{message:{alias:``,enabled:!0}}}}},c_=`person:devprofileurl:profileurl:waterfall@1`,l_=g(`profile_url`),u_=g(`developer_profile_url`),d_=g(`alternative_developer_profile_urls`),f_=[`crustdata`],p_=[{provider:`crustdata`}],m_=r.object({pipe_id:r.literal(c_),run_if:x(),connector:C(),config:r.object({providers:E({sectionKey:`general`,defaultProviders:p_,availableProviders:f_}),input_fields:R(r.object({[l_.name]:T({fieldName:l_.name})})),output_fields:L(r.object({[u_.name]:O({fieldName:u_.name}),[d_.name]:O({fieldName:d_.name})}))}).optional()}),h_=e=>B(G(l_,e)),g_={"person-devprofileurl-profileurl-waterfall-v1-crustdata":{provider:`crustdata`,allowManagedConnection:!0,credits:{default:2,level1:{credits:1.3,weight:1}},mode:`onSuccess`}},__=class extends H{pipeId=c_;payload;payloadSchema=m_;billableOperations=g_;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 h_(this.payload.config)}getRawOutputFields(){return{[u_.name]:this.catalogOutput(u_,{isPrimaryOutput:!0}),[d_.name]:this.catalogOutput(d_,{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}))}},v_=m_,y_={pipeId:c_,basePipe:U(c_),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(c_),tags:[z.LINKEDIN,z.WATERFALL,z.NEW],billableOperations:g_,defaultInputRequirement:h_(null),inputFieldMode:`static`,outputFieldMode:`static`,managedProviders:f_,allowedUserConnectionProviders:f_,deprecatedProviders:[],defaultPayload:{pipe_id:c_,connector:null,run_if:null,config:{providers:p_,input_fields:{profile_url:{alias:``}},output_fields:{developer_profile_url:{alias:``,enabled:!0},alternative_developer_profile_urls:{alias:``,enabled:!1}}}}},b_=`person:email:validate:millionverifier@1`,x_=g(`email`),S_=g(`email_validation_status`),C_=g(`million_validation_match`),w_=r.object({pipe_id:r.literal(b_),connector:C(),run_if:x(),config:r.object({input_fields:R(r.object({[x_.name]:T({fieldName:x_.name})})),output_fields:L(r.object({[S_.name]:O({fieldName:S_.name}),[C_.name]:O({fieldName:C_.name})}))}).optional()}),T_=e=>B(G(x_,e)),E_={"person-email-validate-millionverifier-v1-millionverifier":{provider:`millionverifier`,allowManagedConnection:!0,credits:{default:.1,level1:{credits:.05,weight:1}},mode:`always`}},D_=class extends H{pipeId=b_;payload;payloadSchema=w_;billableOperations=E_;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`millionverifier`]}estimateBillableOperations(){return[`person-email-validate-millionverifier-v1-millionverifier`]}getInputRequirement(){return T_(this.payload.config)}getRawOutputFields(){return{[S_.name]:this.catalogOutput(S_),[C_.name]:this.catalogOutput(C_)}}getConnectionsRequirements(){return[{provider:`millionverifier`,rateLimitRatio:1,rateLimitOperation:`millionverifier_generic`,allowManagedConnection:!0}]}},O_=w_,k_={pipeId:b_,basePipe:U(b_),label:`Validate email`,executionMode:`single`,categories:[`people_data`],lifecycle:null,description:`Verify email addresses to ensure is deliverability.`,tags:[z.EMAIL],docPath:W(b_),billableOperations:E_,inputFieldMode:`static`,outputFieldMode:`static`,allowedUserConnectionProviders:[`millionverifier`],managedProviders:[`millionverifier`],deprecatedProviders:[],defaultInputRequirement:T_(null),defaultPayload:{pipe_id:b_,connector:null,run_if:null,config:{input_fields:{email:{alias:``}},output_fields:{email_validation_status:{alias:``,enabled:!0},million_validation_match:{alias:``,enabled:!0}}}}},A_=g(`email`),j_=g(`amplemarket_person_match`),M_=`person:identity:amplemarket@1`,N_=r.object({pipe_id:r.literal(M_),run_if:x(),connector:C(),config:r.object({input_fields:R(r.object({[A_.name]:T({fieldName:A_.name})})),output_fields:L(r.object({[j_.name]:O({fieldName:j_.name})}))}).optional()}),P_=e=>B(G(A_,e)),F_={"person-identity-amplemarket-v1-amplemarket":{allowManagedConnection:!1,credits:null,mode:null,provider:`amplemarket`}},I_=class extends H{pipeId=M_;payload;payloadSchema=N_;billableOperations=F_;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`amplemarket`]}estimateBillableOperations(){return[]}getInputRequirement(){return P_(this.payload.config)}getRawOutputFields(){return{[j_.name]:this.catalogOutput(j_)}}getConnectionsRequirements(){return[{provider:`amplemarket`,rateLimitRatio:1,rateLimitOperation:`amplemarket_generic`,allowManagedConnection:!1}]}},L_=N_,R_={pipeId:M_,inputFieldMode:`static`,outputFieldMode:`static`,basePipe:U(M_),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(M_),billableOperations:F_,allowedUserConnectionProviders:[`amplemarket`],managedProviders:[],deprecatedProviders:[],defaultInputRequirement:P_(null),defaultPayload:{pipe_id:M_,connector:null,run_if:null,config:{input_fields:{email:{alias:``}},output_fields:{amplemarket_person_match:{alias:``,enabled:!0}}}}},z_=`person:identity:email:waterfall@1`,B_=g(`email`),V_=g(`company_domain`),H_=g(`name`),U_=g(`job_title`),W_=g(`profile_url`),G_=g(`company_profile_url`),K_=g(`company_name`),q_=[`findymail`,`hunter`,`crustdata`],J_=[{provider:`findymail`},{provider:`hunter`},{provider:`crustdata`}],Y_=r.object({pipe_id:r.literal(z_),connector:C(),run_if:x(),config:r.object({providers:E({availableProviders:q_,defaultProviders:J_,sectionKey:`general`}),input_fields:R(r.object({[B_.name]:T({fieldName:B_.name})})),output_fields:L(r.object({[H_.name]:O({fieldName:H_.name}),[W_.name]:O({fieldName:W_.name}),[U_.name]:O({fieldName:U_.name}),[V_.name]:O({fieldName:V_.name}),[K_.name]:O({fieldName:K_.name}),[G_.name]:O({fieldName:G_.name})}))}).optional()}),X_=e=>B(G(B_,e)),Z_={"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`}},Q_=class extends H{pipeId=z_;payload;payloadSchema=Y_;billableOperations=Z_;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return this.payload.config?.providers.map(e=>e.provider)||[]}estimateBillableOperations(){return this.getProviderNames().map(e=>q(e,this.billableOperations).billableOperation)}getInputRequirement(){return X_(this.payload.config)}getRawOutputFields(){return{[H_.name]:this.catalogOutput(H_,{isPrimaryOutput:!0}),[W_.name]:this.catalogOutput(W_,{isPrimaryOutput:!0}),[U_.name]:this.catalogOutput(U_,{isPrimaryOutput:!0}),[K_.name]:this.catalogOutput(K_,{isPrimaryOutput:!0}),[G_.name]:this.catalogOutput(G_,{isPrimaryOutput:!0}),[V_.name]:this.catalogOutput(V_,{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_,ev={pipeId:z_,basePipe:U(z_),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(z_),managedProviders:q_,deprecatedProviders:[],allowedUserConnectionProviders:q_,inputFieldMode:`static`,outputFieldMode:`static`,billableOperations:Z_,defaultInputRequirement:X_(null),defaultPayload:{pipe_id:z_,connector:null,run_if:null,config:{providers:J_,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}}}}},tv=g(`profile_url`),nv=g(`amplemarket_person_match`),rv=`person:match:amplemarket@1`,iv=r.object({pipe_id:r.literal(rv),run_if:x(),connector:C(),config:r.object({input_fields:R(r.object({[tv.name]:T({fieldName:tv.name})})),output_fields:L(r.object({[nv.name]:O({fieldName:nv.name})}))}).optional()}),av=e=>B(G(tv,e)),ov={"person-match-amplemarket-v1-amplemarket":{allowManagedConnection:!1,credits:null,mode:null,provider:`amplemarket`}},sv=class extends H{pipeId=rv;payload;payloadSchema=iv;billableOperations=ov;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`amplemarket`]}estimateBillableOperations(){return[]}getInputRequirement(){return av(this.payload.config)}getRawOutputFields(){return{[nv.name]:this.catalogOutput(nv)}}getConnectionsRequirements(){return[{provider:`amplemarket`,rateLimitRatio:1,rateLimitOperation:`amplemarket_generic`,allowManagedConnection:!1}]}},cv=iv,lv={pipeId:rv,inputFieldMode:`static`,outputFieldMode:`static`,basePipe:U(rv),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(rv),billableOperations:ov,allowedUserConnectionProviders:[`amplemarket`],managedProviders:[],deprecatedProviders:[],defaultInputRequirement:av(null),defaultPayload:{pipe_id:rv,connector:null,run_if:null,config:{input_fields:{profile_url:{alias:``}},output_fields:{amplemarket_person_match:{alias:``,enabled:!0}}}}},uv=`person:match:role:waterfall@1`,dv=g(`company_domain`),fv=g(`role_finder_match`),pv=[`leadmagic`],mv=[{provider:`leadmagic`}],hv=r.object({pipe_id:r.literal(uv),run_if:x(),connector:C(),config:r.object({providers:E({sectionKey:`general`,defaultProviders:mv,availableProviders:pv}),roles:ga({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({[dv.name]:T({fieldName:dv.name})})),output_fields:L(r.object({[fv.name]:O({fieldName:fv.name})}))})}),gv=e=>V(G(dv,e)),_v={"person-match-role-waterfall-v1-leadmagic":{provider:`leadmagic`,allowManagedConnection:!0,credits:{default:1},mode:`onSuccess`}},vv=class extends H{pipeId=uv;payload;payloadSchema=hv;billableOperations=_v;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 gv(this.payload.config)}getSecretRequirements(){return yh(this.payload.config?.roles??[])}getConstantRequirements(){return bh(this.payload.config?.roles??[])}getRawOutputFields(){return{[fv.name]:this.catalogOutput(fv,{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}))}},yv=hv,bv={pipeId:uv,basePipe:U(uv),managedProviders:pv,deprecatedProviders:[],allowedUserConnectionProviders:pv,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(uv),billableOperations:_v,inputFieldMode:`static`,outputFieldMode:`static`,defaultInputRequirement:gv(null),defaultPayload:{pipe_id:uv,run_if:null,connector:null,config:{roles:[],providers:mv,input_fields:{company_domain:{alias:``}},output_fields:{role_finder_match:{alias:``,enabled:!0}}}}},xv=`person:mobile:profileurl:waterfall@1`,Sv=g(`profile_url`),Cv=g(`mobile`),wv=[`leadmagic`,`prospeo`,`amplemarket`,`findymail`],Tv=[{provider:`leadmagic`},{provider:`prospeo`},{provider:`amplemarket`},{provider:`findymail`}],Ev=r.object({pipe_id:r.literal(xv),run_if:x(),connector:C(),config:r.object({providers:E({sectionKey:`general`,defaultProviders:Tv,availableProviders:wv}),input_fields:R(r.object({[Sv.name]:T({fieldName:Sv.name})})),output_fields:L(r.object({[Cv.name]:O({fieldName:Cv.name})}))}).optional()}),Dv=e=>B(G(Sv,e)),Ov={"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`}},kv=class extends H{pipeId=xv;payload;payloadSchema=Ev;billableOperations=Ov;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 Dv(this.payload.config)}getRawOutputFields(){return{[Cv.name]:this.catalogOutput(Cv,{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}))}},Av=Ev,jv={pipeId:xv,basePipe:U(xv),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(xv),tags:[z.PHONE,z.WATERFALL],billableOperations:Ov,defaultInputRequirement:Dv(null),inputFieldMode:`static`,outputFieldMode:`static`,managedProviders:wv,allowedUserConnectionProviders:wv,deprecatedProviders:[],defaultPayload:{pipe_id:xv,connector:null,run_if:null,config:{providers:Tv,input_fields:{profile_url:{alias:``}},output_fields:{mobile:{alias:``,enabled:!0}}}}},Mv=`person:mobile:workemail:waterfall@1`,Nv=g(`work_email`),Pv=g(`mobile`),Fv=[`leadmagic`,`amplemarket`],Iv=[{provider:`leadmagic`},{provider:`amplemarket`}],Lv=r.object({pipe_id:r.literal(Mv),run_if:x(),connector:C(),config:r.object({providers:E({sectionKey:`general`,availableProviders:Fv,defaultProviders:Iv}),input_fields:R(r.object({[Nv.name]:T({fieldName:Nv.name})})),output_fields:L(r.object({[Pv.name]:O({fieldName:Pv.name})}))}).optional()}),Rv=e=>B(G(Nv,e)),zv={"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`}},Bv=class extends H{pipeId=Mv;payload;payloadSchema=Lv;billableOperations=zv;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return this.payload.config?.providers.map(e=>e.provider)||[]}estimateBillableOperations(){return this.getProviderNames().map(e=>q(e,this.billableOperations).billableOperation)}getInputRequirement(){return Rv(this.payload.config)}getRawOutputFields(){return{[Pv.name]:this.catalogOutput(Pv,{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}))}},Vv=Lv,Hv={pipeId:Mv,basePipe:U(Mv),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(Mv),billableOperations:zv,defaultInputRequirement:Rv(null),inputFieldMode:`static`,outputFieldMode:`static`,allowedUserConnectionProviders:Fv,managedProviders:Fv,deprecatedProviders:[],defaultPayload:{pipe_id:Mv,connector:null,run_if:null,config:{providers:Iv,input_fields:{work_email:{alias:``}},output_fields:{mobile:{alias:``,enabled:!0}}}}},Uv=`person:name:join@1`,Wv=g(`first_name`),Gv=g(`last_name`),Kv=g(`name`),qv=r.object({pipe_id:r.literal(Uv),run_if:x(),connector:w(),config:r.object({input_fields:R(r.object({[Wv.name]:T({fieldName:Wv.name}),[Gv.name]:T({fieldName:Gv.name})})),output_fields:L(r.object({[Kv.name]:O({fieldName:Kv.name})}))}).optional()}),Jv=e=>Ka(G(Wv,e),G(Gv,e)),Yv={"person-name-join-v1-pipe0":{provider:`pipe0`,allowManagedConnection:!0,credits:{default:0},mode:`always`}},Xv=class extends H{pipeId=Uv;payload;payloadSchema=qv;billableOperations=Yv;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[`person-name-join-v1-pipe0`]}getInputRequirement(){return Jv(this.payload.config)}getRawOutputFields(){return{[Kv.name]:this.catalogOutput(Kv)}}getConnectionsRequirements(){return[{provider:`pipe0`,rateLimitRatio:1,rateLimitOperation:`pipe0_logic`,allowManagedConnection:!0}]}},Zv=qv,Qv={pipeId:Uv,basePipe:U(Uv),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(Uv),billableOperations:Yv,defaultInputRequirement:Jv(null),inputFieldMode:`static`,outputFieldMode:`static`,allowedUserConnectionProviders:[],managedProviders:[`pipe0`],deprecatedProviders:[],defaultPayload:{pipe_id:Uv,run_if:null,connector:null,config:{input_fields:{first_name:{alias:``},last_name:{alias:``}},output_fields:{name:{alias:``,enabled:!0}}}}},$v=`person:name:split@1`,ey=g(`name`),ty=g(`first_name`),ny=g(`last_name`),ry=r.object({pipe_id:r.literal($v),connector:w(),run_if:x(),config:r.object({input_fields:R(r.object({[ey.name]:T({fieldName:ey.name})})),output_fields:L(r.object({[ty.name]:O({fieldName:ty.name}),[ny.name]:O({fieldName:ny.name})}))}).optional()}),iy=e=>B(G(ey,e)),ay={"person-name-split-v1-pipe0":{provider:`pipe0`,allowManagedConnection:!0,credits:{default:0},mode:`always`}},oy=class extends H{pipeId=$v;payload;payloadSchema=ry;billableOperations=ay;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[`person-name-split-v1-pipe0`]}getInputRequirement(){return iy(this.payload.config)}getRawOutputFields(){return{[ty.name]:this.catalogOutput(ty),[ny.name]:this.catalogOutput(ny)}}getConnectionsRequirements(){return[{provider:`pipe0`,rateLimitRatio:1,rateLimitOperation:`pipe0_logic`,allowManagedConnection:!0}]}},sy=ry,cy={pipeId:$v,basePipe:U($v),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($v),billableOperations:ay,inputFieldMode:`static`,outputFieldMode:`static`,defaultInputRequirement:iy(null),allowedUserConnectionProviders:[],managedProviders:[`pipe0`],deprecatedProviders:[],defaultPayload:{pipe_id:$v,run_if:null,connector:void 0,config:{input_fields:{name:{alias:``}},output_fields:{first_name:{alias:``,enabled:!0},last_name:{alias:``,enabled:!0}}}}},ly=`person:personalemail:profileurl:waterfall@1`,uy=g(`profile_url`),dy=g(`personal_email`),fy=g(`alternate_personal_emails`),py=[`leadmagic`,`mixrank`],my=[{provider:`leadmagic`},{provider:`mixrank`}],hy=r.object({pipe_id:r.literal(ly),run_if:x(),connector:C(),config:r.object({providers:E({sectionKey:`general`,availableProviders:py,defaultProviders:my}),input_fields:R(r.object({[uy.name]:T({fieldName:uy.name})})),output_fields:L(r.object({[dy.name]:O({fieldName:dy.name}),[fy.name]:O({fieldName:fy.name})}))}).optional()}),gy=e=>B(G(uy,e)),_y={"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`}},vy=class extends H{pipeId=ly;payload;payloadSchema=hy;billableOperations=_y;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return this.payload.config?.providers.map(e=>e.provider)||[]}estimateBillableOperations(){return this.getProviderNames().map(e=>q(e,this.billableOperations).billableOperation)}getInputRequirement(){return gy(this.payload.config)}getRawOutputFields(){return{[dy.name]:this.catalogOutput(dy,{isPrimaryOutput:!0}),[fy.name]:this.catalogOutput(fy)}}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}))}},yy=hy,by={pipeId:ly,basePipe:U(ly),allowedUserConnectionProviders:py,managedProviders:py,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(ly),billableOperations:_y,defaultInputRequirement:gy(null),inputFieldMode:`static`,outputFieldMode:`static`,defaultPayload:{pipe_id:ly,connector:null,run_if:null,config:{providers:my,input_fields:{profile_url:{alias:``}},output_fields:{personal_email:{alias:``,enabled:!0},alternate_personal_emails:{alias:``,enabled:!1}}}}},xy=g(`profile_url`),Sy=g(`post_list_string`),Cy=g(`crustdata_post_list`),wy=`person:posts:crustdata@1`,Ty=r.object({pipe_id:r.literal(wy),run_if:x(),connector:C(),config:r.object({limit:Da({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({[xy.name]:T({fieldName:xy.name})})),output_fields:L(r.object({[Sy.name]:O({fieldName:Sy.name}),[Cy.name]:O({fieldName:Cy.name})}))}).optional()}),Ey=e=>B(G(xy,e)),Dy={"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`}},Oy=class extends H{pipeId=wy;payload;payloadSchema=Ty;billableOperations=Dy;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`crustdata`]}estimateBillableOperations(){return[`person-posts-crustdata-v1-crustdata`]}getInputRequirement(){return Ey(this.payload.config)}getRawOutputFields(){return{[Sy.name]:this.catalogOutput(Sy),[Cy.name]:this.catalogOutput(Cy)}}getConnectionsRequirements(){return[{provider:`crustdata`,rateLimitRatio:1,rateLimitOperation:`crustdata_realtime_post_fetch`,allowManagedConnection:!0}]}},ky=Ty,Ay={pipeId:wy,inputFieldMode:`static`,outputFieldMode:`static`,basePipe:U(wy),label:`LinkedIn posts`,executionMode:`single`,categories:[`people_data`],lifecycle:null,description:`Find list of recent LinkedIn posts.`,tags:[z.LINKEDIN],docPath:W(wy),billableOperations:Dy,allowedUserConnectionProviders:[`crustdata`],managedProviders:[`crustdata`],deprecatedProviders:[],defaultInputRequirement:Ey(null),defaultPayload:{pipe_id:wy,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}}}}},jy=`person:profile:waterfall@1`,My=g(`profile`),Ny=g(`profile_url`),Py=[`prospeo`,`icypeas`,`amplemarket`],Fy=[{provider:`amplemarket`},{provider:`prospeo`},{provider:`icypeas`}],Iy=r.object({pipe_id:r.literal(jy),run_if:x(),connector:C(),config:r.object({providers:E({sectionKey:`general`,availableProviders:Py,defaultProviders:Fy}),input_fields:R(r.object({[Ny.name]:T({fieldName:Ny.name})})),output_fields:L(r.object({[My.name]:O({fieldName:My.name})}))}).optional()}),Ly=e=>B(G(Ny,e)),Ry={"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}},zy=class extends H{pipeId=jy;payload;payloadSchema=Iy;billableOperations=Ry;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 Ly(this.payload.config)}getRawOutputFields(){return{[My.name]:this.catalogOutput(My,{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}))}},By=Iy,Vy={pipeId:jy,basePipe:U(jy),label:`Full LinkedIn profile`,executionMode:`waterfall`,categories:[`people_data`],lifecycle:null,description:`Find a JSON representation of a LinkedIn profile.`,docPath:W(jy),tags:[z.LINKEDIN,z.WATERFALL],managedProviders:Py,deprecatedProviders:[],allowedUserConnectionProviders:Py,inputFieldMode:`static`,outputFieldMode:`static`,billableOperations:Ry,defaultInputRequirement:Ly(null),defaultPayload:{pipe_id:jy,run_if:null,connector:null,config:{providers:Fy,input_fields:{profile_url:{alias:``}},output_fields:{profile:{alias:``,enabled:!0}}}}},Hy=g(`work_email`),Uy=g(`crustdata_person_match`),Wy=g(`crustdata_profile_match_score`),Gy=`person:profile:workemail:crustdata@1`,Ky=r.object({pipe_id:r.literal(Gy),run_if:x(),connector:C(),config:r.object({input_fields:R(r.object({[Hy.name]:T({fieldName:Hy.name})})),output_fields:L(r.object({[Uy.name]:O({fieldName:Uy.name}),[Wy.name]:O({fieldName:Wy.name})}))}).optional()}),qy=e=>B(G(Hy,e)),Jy={"person-profile-workemail-crustdata-v1-crustdata":{allowManagedConnection:!0,credits:{default:5},mode:`onSuccess`,provider:`crustdata`}},Yy=class extends H{pipeId=Gy;payload;payloadSchema=Ky;billableOperations=Jy;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`crustdata`]}estimateBillableOperations(){return[`person-profile-workemail-crustdata-v1-crustdata`]}getInputRequirement(){return qy(this.payload.config)}getRawOutputFields(){return{[Uy.name]:this.catalogOutput(Uy),[Wy.name]:this.catalogOutput(Wy)}}getConnectionsRequirements(){return[{provider:`crustdata`,rateLimitRatio:1,rateLimitOperation:`crustdata_realtime_person_enrich`,allowManagedConnection:!0}]}},Xy=Ky,Zy={pipeId:Gy,inputFieldMode:`static`,outputFieldMode:`static`,basePipe:U(Gy),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(Gy),billableOperations:Jy,allowedUserConnectionProviders:[`crustdata`],managedProviders:[`crustdata`],deprecatedProviders:[],defaultInputRequirement:qy(null),defaultPayload:{pipe_id:Gy,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}}}}},Qy=`person:profileurl:email:waterfall@1`,$y=g(`email`),eb=g(`work_email`),tb=g(`profile_url`),nb=[`leadmagic`],rb=[{provider:`leadmagic`}],ib=r.object({pipe_id:r.literal(Qy),run_if:x(),connector:C(),config:r.object({providers:E({sectionKey:`general`,defaultProviders:rb,availableProviders:nb}),input_fields:R(r.object({[$y.name]:T({fieldName:$y.name}),[eb.name]:T({fieldName:eb.name})})),output_fields:L(r.object({[tb.name]:O({fieldName:tb.name})}))}).optional()}),ab=e=>V(G($y,e),G(eb,e)),ob={"person-profileurl-email-waterfall-v1-leadmagic":{provider:`leadmagic`,allowManagedConnection:!0,credits:{default:3.5},mode:`onSuccess`}},sb=class extends H{pipeId=Qy;payload;payloadSchema=ib;billableOperations=ob;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 ab(this.payload.config)}getRawOutputFields(){return{[tb.name]:this.catalogOutput(tb,{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}))}},cb=ib,lb={pipeId:Qy,basePipe:U(Qy),managedProviders:nb,deprecatedProviders:[],allowedUserConnectionProviders:nb,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(Qy),billableOperations:ob,inputFieldMode:`static`,outputFieldMode:`static`,defaultInputRequirement:ab(null),defaultPayload:{pipe_id:Qy,run_if:null,connector:null,config:{providers:rb,input_fields:{email:{alias:``},work_email:{alias:``}},output_fields:{profile_url:{alias:``,enabled:!0}}}}},ub=`person:profileurl:name@1`,db=g(`name`),fb=g(`company_name`),pb=g(`location_hint`),mb=g(`profile_url`),hb=r.object({pipe_id:r.literal(ub),connector:w(),run_if:x(),config:r.object({input_fields:R(r.object({[db.name]:T({fieldName:db.name}),[fb.name]:T({fieldName:fb.name}),[pb.name]:T({fieldName:pb.name})})),output_fields:L(r.object({[mb.name]:O({fieldName:mb.name})}))}).optional()}),gb=e=>Ka(B(G(db,e)),B(G(fb,e)),qa(G(pb,e))),_b={"person-profileurl-name-v1-pipe0":{provider:`pipe0`,allowManagedConnection:!0,credits:{default:.6},mode:`always`}},vb=class extends H{pipeId=ub;payload;payloadSchema=hb;billableOperations=_b;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[`person-profileurl-name-v1-pipe0`]}getInputRequirement(){return gb(this.payload.config)}getRawOutputFields(){return{[mb.name]:this.catalogOutput(mb)}}getConnectionsRequirements(){return[{provider:`serper`,rateLimitRatio:1,rateLimitOperation:`serper_search`,allowManagedConnection:!0}]}},yb=hb,bb={pipeId:ub,basePipe:U(ub),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(ub),tags:[z.LINKEDIN],billableOperations:_b,defaultInputRequirement:gb(null),inputFieldMode:`static`,outputFieldMode:`static`,defaultPayload:{pipe_id:ub,connector:void 0,run_if:null,config:{input_fields:{company_name:{alias:``},location_hint:{alias:``},name:{alias:``}},output_fields:{profile_url:{alias:``,enabled:!0}}}}},xb=`person:workemail:profileurl:waterfall@1`,Sb=g(`profile_url`),Cb=g(`work_email`),wb=g(`email_validation_status`),Tb=[`hunter`,`amplemarket`,`findymail`,`leadmagic`,`crustdata`],Eb=[{provider:`hunter`},{provider:`amplemarket`},{provider:`leadmagic`},{provider:`findymail`},{provider:`crustdata`}],Db=r.object({pipe_id:r.literal(xb),connector:C(),run_if:x(),config:r.object({providers:E({availableProviders:Tb,defaultProviders:Eb,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({[Sb.name]:T({fieldName:Sb.name})})),output_fields:L(r.object({[Cb.name]:O({fieldName:Cb.name}),[wb.name]:O({fieldName:wb.name})}))}).optional()}),Ob=e=>B(G(Sb,e)),kb={"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`}},Ab=class extends H{pipeId=xb;payload;payloadSchema=Db;billableOperations=kb;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 Ob(this.payload.config)}getRawOutputFields(){return{[Cb.name]:this.catalogOutput(Cb,{isPrimaryOutput:!0}),[wb.name]:this.catalogOutput(wb,{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}))}},jb=Db,Mb={pipeId:xb,basePipe:U(xb),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(xb),managedProviders:Tb,allowedUserConnectionProviders:Tb,deprecatedProviders:[],inputFieldMode:`static`,outputFieldMode:`static`,billableOperations:kb,defaultInputRequirement:Ob(null),defaultPayload:{pipe_id:xb,connector:null,run_if:null,config:{providers:Eb,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}}}}},Nb=`person:workemail:waterfall@1`,Pb=g(`name`),Fb=g(`company_domain`),Ib=g(`company_name`),Lb=g(`work_email`),Rb=g(`email_validation_status`),zb=[`leadmagic`,`prospeo`,`amplemarket`,`hunter`,`icypeas`,`findymail`],Bb=[{provider:`leadmagic`},{provider:`prospeo`},{provider:`amplemarket`},{provider:`hunter`},{provider:`icypeas`},{provider:`findymail`}],Vb={"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`}},Hb=r.object({pipe_id:r.literal(Nb),connector:C(),run_if:x(),config:r.object({providers:E({availableProviders:zb,defaultProviders:Bb,sectionKey:`general`,providerCredits:ro(Vb,zb)}),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({[Pb.name]:T({fieldName:Pb.name}),[Fb.name]:T({fieldName:Fb.name}),[Ib.name]:T({fieldName:Ib.name})})),output_fields:L(r.object({[Lb.name]:O({fieldName:Lb.name}),[Rb.name]:O({fieldName:Rb.name})}))}).optional()}),Ub=e=>Ka(B(G(Pb,e)),V(G(Fb,e),G(Ib,e))),Wb=class extends H{pipeId=Nb;payload;payloadSchema=Hb;billableOperations=Vb;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 Ub(this.payload.config)}getRawOutputFields(){return{[Lb.name]:this.catalogOutput(Lb,{isPrimaryOutput:!0}),[Rb.name]:this.catalogOutput(Rb,{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}))}},Gb=Hb,Kb={pipeId:Nb,basePipe:U(Nb),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(Nb),managedProviders:zb,deprecatedProviders:[],allowedUserConnectionProviders:zb,inputFieldMode:`static`,outputFieldMode:`static`,billableOperations:Vb,defaultInputRequirement:Ub(null),defaultPayload:{pipe_id:Nb,connector:null,run_if:null,config:{providers:Bb,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}}}}},qb=`prompt:run@1`,Jb=`prompt-run-v1`,Yb=_i(Jb),Xb=r.object({pipe_id:r.literal(qb),connector:C(),run_if:x(),config:r.object({prompt:ia({sectionKey:`general`,path:`config.prompt`,placeholder:J(`prompt`),groupPath:`config.prompt`,supportedTags:[`input`,`output`]}),model:Ta({sectionKey:`general`,label:`Model`,path:`config.model`,groupPath:`config.prompt`,billableOperations:Yb})})}),Zb=class extends H{pipeId=qb;payload;payloadSchema=Xb;billableOperations=Yb;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return yi(this.payload.config.model)}estimateBillableOperations(){return[vi(this.payload.config.model,Jb)]}getInputRequirement(){return vh([this.payload.config.prompt.template])}getSecretRequirements(){return yh([this.payload.config.prompt.template])}getConstantRequirements(){return bh([this.payload.config.prompt.template])}getRawOutputFields(){let e=this.payload.config.prompt.template,t=this.payload.config.prompt.json_schemas??{},n={},r;try{r=qr(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 bi(this.payload.config.model)}},Qb=Xb,$b={pipeId:qb,inputFieldMode:`config`,outputFieldMode:`config`,basePipe:U(qb),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(qb),defaultInputRequirement:null,billableOperations:Yb,allowedUserConnectionProviders:xi(),managedProviders:xi(),deprecatedProviders:[],defaultPayload:{pipe_id:qb,connector:null,run_if:null,config:{model:`openai-gpt-latest`,prompt:{template:``,json_schemas:{}}}}},ex=`sheet:row:append@1`,tx=g(`sheet_record_id`),nx=g(`created_sheet`),rx=[{label:`Demo leads`,value:`demo-leads`},{label:`Demo companies`,value:`demo-companies`},{label:`Demo contacts`,value:`demo-contacts`}],ix=[{label:`Demo team`,value:`sandbox-team-1`},{label:`Demo workspace`,value:`sandbox-team-2`}],ax={requires:{connection:`pipe0`},enabledIf:Tn(`pipe0`,`Select a pipe0 connection to see sheet suggestions`),options:async({query:e,client:t,environment:n})=>n===`sandbox`?rx: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`}}},ox={requires:{connection:`pipe0`},enabledIf:Tn(`pipe0`,`Select a pipe0 connection to see team suggestions`),options:async({query:e,client:t,environment:n})=>n===`sandbox`?ix:t?(await t.teams.list({query:e})).map(e=>({label:e.name,value:e.id})):[],widgets:{provider_logo:{provider:`pipe0`}}},sx=r.object({pipe_id:r.literal(ex),connector:sa(),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:ax}),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:Aa({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:ox,enabledIf:e=>e.config?.allow_sheet_creation?{disabled:!1}:{disabled:!0,message:`Turn on βUpsert sheetsβ to specify a team.`}}),included_fields:fa({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({[tx.name]:O({fieldName:tx.name}),[nx.name]:O({fieldName:nx.name})}))})}),cx={"sheet-row-append-v1-pipe0":{provider:`pipe0`,allowManagedConnection:!1,credits:null,mode:null}},lx=class extends H{pipeId=ex;payload;payloadSchema=sx;billableOperations=cx;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[`sheet-row-append-v1-pipe0`]}getInputRequirement(){let e=[vh([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=_h(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 Ka(...e)}getSecretRequirements(){return yh([this.payload.config.sheet])}getConstantRequirements(){return bh([this.payload.config.sheet])}getRawOutputFields(){return{[tx.name]:this.catalogOutput(tx),[nx.name]:this.catalogOutput(nx)}}getConnectionsRequirements(){return[{provider:`pipe0`,rateLimitRatio:1,rateLimitOperation:`pipe0-sheet-operation`,allowManagedConnection:!0}]}},ux=sx,dx={pipeId:ex,basePipe:U(ex),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(ex),tags:[z.FIELDS],billableOperations:cx,defaultInputRequirement:null,inputFieldMode:`config`,outputFieldMode:`static`,defaultPayload:{pipe_id:ex,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}}}}},fx=`sheet:row:expandappend@1`,px=g(`sheet_record_ids`),mx=g(`input_objects`),hx=r.object({pipe_id:r.literal(fx),connector:sa(),run_if:x(),config:r.object({sheet:Sa({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({[mx.name]:T({fieldName:mx.name})})),output_fields:L(r.object({[px.name]:O({fieldName:px.name})}))})}),gx={"sheet-row-expandappend-v1-pipe0":{provider:`pipe0`,allowManagedConnection:!1,credits:null,mode:null}},_x=e=>B(G(mx,e)),vx=class extends H{pipeId=fx;payload;payloadSchema=hx;billableOperations=gx;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[`sheet-row-expandappend-v1-pipe0`]}getInputRequirement(){return _x(this.payload.config)}getRawOutputFields(){return{[px.name]:this.catalogOutput(px)}}getConnectionsRequirements(){return[{provider:`pipe0`,rateLimitRatio:1,rateLimitOperation:`pipe0-sheet-operation`,allowManagedConnection:!0}]}},yx=hx,bx={pipeId:fx,basePipe:U(fx),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(fx),tags:[z.FIELDS],billableOperations:gx,defaultInputRequirement:_x(null),inputFieldMode:`static`,outputFieldMode:`static`,defaultPayload:{pipe_id:fx,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}}}}},xx=`template:fill@1`,Sx=g(`template_output`),Cx=r.object({pipe_id:r.literal(xx),connector:C(),run_if:x(),config:r.object({template:aa({sectionKey:`general`,path:`config.template`,label:`Template`,placeholder:J(`template`),groupPath:`config.general`,required:!0}),output_fields:L(r.object({[Sx.name]:O({fieldName:Sx.name})}))})}),wx={"template-fill-v1-pipe0":{credits:{default:0},allowManagedConnection:!0,provider:`pipe0`,mode:`always`}},Tx=class extends H{pipeId=xx;payload;payloadSchema=Cx;billableOperations=wx;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[`template-fill-v1-pipe0`]}getInputRequirement(){return vh([this.payload.config.template])}getSecretRequirements(){return yh([this.payload.config.template])}getConstantRequirements(){return bh([this.payload.config.template])}getRawOutputFields(){return{[Sx.name]:this.catalogOutput(Sx)}}getConnectionsRequirements(){return[]}},Ex=Cx,Dx={pipeId:xx,inputFieldMode:`config`,outputFieldMode:`config`,basePipe:U(xx),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(xx),defaultInputRequirement:null,billableOperations:wx,allowedUserConnectionProviders:[],managedProviders:[`pipe0`],deprecatedProviders:[],defaultPayload:{pipe_id:xx,connector:null,run_if:null,config:{template:``,output_fields:{template_output:{alias:``,enabled:!0}}}}},Ox=`website:extract:firecrawl@1`,kx=g(`website_url`),Ax=g(`firecrawl_extract_result`),jx=r.object({pipe_id:r.literal(Ox),connector:C(),run_if:x(),config:r.object({json_schema:ka({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:Ca({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({[kx.name]:T({fieldName:kx.name})})),output_fields:L(r.object({[Ax.name]:O({fieldName:Ax.name})}))})}),Mx=e=>B(G(kx,e)),Nx={"website-extract-firecrawl-v1-firecrawl":{allowManagedConnection:!0,provider:`firecrawl`,credits:{default:2,level1:{credits:1,weight:1}},mode:`onSuccess`}},Px=class extends H{pipeId=Ox;payload;payloadSchema=jx;billableOperations=Nx;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`firecrawl`]}estimateBillableOperations(){return[`website-extract-firecrawl-v1-firecrawl`]}getInputRequirement(){return Mx(this.payload.config)}getRawOutputFields(){return{[Ax.name]:this.catalogOutput(Ax)}}getConnectionsRequirements(){return[{provider:`firecrawl`,rateLimitRatio:1,rateLimitOperation:`firecrawl_generic`,allowManagedConnection:!0}]}},Fx=jx,Ix={pipeId:Ox,basePipe:U(Ox),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(Ox),billableOperations:Nx,inputFieldMode:`static`,outputFieldMode:`static`,allowedUserConnectionProviders:[`firecrawl`],managedProviders:[`firecrawl`],deprecatedProviders:[],defaultInputRequirement:Mx(null),defaultPayload:{pipe_id:Ox,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}}}}},Lx=`website:extract:parallel@1`,Rx=g(`website_url`),zx=g(`parallel_extract_result`),Bx=r.object({pipe_id:r.literal(Lx),connector:C(),run_if:x(),config:r.object({objective:Ca({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({[Rx.name]:T({fieldName:Rx.name})})),output_fields:L(r.object({[zx.name]:O({fieldName:zx.name})}))})}),Vx=e=>B(G(Rx,e)),Hx={"website-extract-parallel-v1-parallel":{allowManagedConnection:!0,provider:`parallel`,credits:{default:.1},mode:`onSuccess`}},Ux=class extends H{pipeId=Lx;payload;payloadSchema=Bx;billableOperations=Hx;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`parallel`]}estimateBillableOperations(){return[`website-extract-parallel-v1-parallel`]}getInputRequirement(){return Vx(this.payload.config)}getRawOutputFields(){return{[zx.name]:this.catalogOutput(zx,{isPrimaryOutput:!0})}}getConnectionsRequirements(){return[{provider:`parallel`,rateLimitRatio:1,rateLimitOperation:`parallel_extract`,allowManagedConnection:!0}]}},Wx=Bx,Gx={pipeId:Lx,basePipe:U(Lx),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(Lx),billableOperations:Hx,inputFieldMode:`static`,outputFieldMode:`static`,allowedUserConnectionProviders:[`parallel`],managedProviders:[`parallel`],deprecatedProviders:[],defaultInputRequirement:Vx(null),defaultPayload:{pipe_id:Lx,run_if:null,connector:null,config:{objective:``,input_fields:{website_url:{alias:``}},output_fields:{parallel_extract_result:{alias:``,enabled:!0}}}}},Kx=`website:maplinks:firecrawl@1`,qx={"website-maplinks-firecrawl-v1-firecrawl":{allowManagedConnection:!0,provider:`firecrawl`,credits:{default:1},mode:`onSuccess`}},Jx=g(`website_url`),Yx=g(`mapped_links`),Xx=r.object({pipe_id:r.literal(Kx),connector:C(),run_if:x(),config:r.object({page_limit:Da({label:`Page limit`,info:`Number of pages searched`,groupPath:`config.general`,max:50,min:1,required:!1,path:`config.page_limit`,sectionKey:`general`}),sitemap:wa({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:Sa({sectionKey:`general`,label:`Search`,inputType:`text`,info:`Return matching urls`,groupPath:`config.general`,path:`config.search`}).default(``),input_fields:R(r.object({[Jx.name]:T({fieldName:Jx.name})})),output_fields:L(r.object({[Yx.name]:O({fieldName:Yx.name})}))}).optional()}),Zx=e=>B(G(Jx,e)),Qx=class extends H{pipeId=Kx;payload;payloadSchema=Xx;billableOperations=qx;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`firecrawl`]}estimateBillableOperations(){return[`website-maplinks-firecrawl-v1-firecrawl`]}getInputRequirement(){return Zx(this.payload.config)}getRawOutputFields(){return{[Yx.name]:this.catalogOutput(Yx)}}getConnectionsRequirements(){return[{provider:`firecrawl`,rateLimitRatio:1,rateLimitOperation:`firecrawl_map_requests`,allowManagedConnection:!0}]}},$x=Xx,eS={pipeId:Kx,basePipe:U(Kx),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(Kx),billableOperations:qx,inputFieldMode:`static`,outputFieldMode:`static`,allowedUserConnectionProviders:[`firecrawl`],managedProviders:[`firecrawl`],deprecatedProviders:[],defaultInputRequirement:Zx(null),defaultPayload:{pipe_id:Kx,run_if:null,connector:null,config:{page_limit:25,sitemap:`include`,search:``,input_fields:{website_url:{alias:``}},output_fields:{mapped_links:{alias:``,enabled:!0}}}}},tS=`website:scrape:firecrawl@1`,nS=g(`website_url`),rS=g(`website_markdown`),iS=g(`website_html`),aS=g(`website_links`),oS=r.object({pipe_id:r.literal(tS),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({[nS.name]:T({fieldName:nS.name})})),output_fields:L(r.object({[rS.name]:O({fieldName:rS.name}),[iS.name]:O({fieldName:iS.name}),[aS.name]:O({fieldName:aS.name})}))}).optional()}),sS=e=>B(G(nS,e)),cS={"website-scrape-firecrawl-v1-firecrawl":{allowManagedConnection:!0,provider:`firecrawl`,credits:{default:.1,level1:{credits:.05,weight:1}},mode:`onSuccess`}},lS=class extends H{pipeId=tS;payload;payloadSchema=oS;billableOperations=cS;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`firecrawl`]}estimateBillableOperations(){return[`website-scrape-firecrawl-v1-firecrawl`]}getInputRequirement(){return sS(this.payload.config)}getRawOutputFields(){return{[rS.name]:this.catalogOutput(rS),[iS.name]:this.catalogOutput(iS),[aS.name]:this.catalogOutput(aS)}}getConnectionsRequirements(){return[{provider:`firecrawl`,rateLimitRatio:1,rateLimitOperation:`firecrawl_generic`,allowManagedConnection:!0}]}},uS=oS,dS={pipeId:tS,basePipe:U(tS),label:`Scrape`,executionMode:`single`,categories:[`tools`],lifecycle:null,description:`Turn any URL into clean data.`,tags:[z.SCRAPE],docPath:W(tS),billableOperations:cS,inputFieldMode:`static`,outputFieldMode:`static`,allowedUserConnectionProviders:[`firecrawl`],managedProviders:[`firecrawl`],deprecatedProviders:[],defaultInputRequirement:sS(null),defaultPayload:{pipe_id:tS,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}}}}},fS=`website:scrapelist:firecrawl@1`,pS={"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.`}},mS=g(`urls`),hS=g(`scrape_list_response`),gS=r.object({pipe_id:r.literal(fS),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:Ea({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({[mS.name]:T({fieldName:mS.name})})),output_fields:L(r.object({[hS.name]:O({fieldName:hS.name})}))}).optional()}),_S=e=>B(G(mS,e)),vS=class extends H{pipeId=fS;payload;payloadSchema=gS;billableOperations=pS;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`firecrawl`]}estimateBillableOperations(){return[,,,,,].fill(`list-url-scrape-firecrawl`)}getInputRequirement(){return _S(this.payload.config)}getRawOutputFields(){return{[hS.name]:this.catalogOutput(hS)}}getConnectionsRequirements(){return[{provider:`firecrawl`,rateLimitRatio:1,rateLimitOperation:`firecrawl_generic`,allowManagedConnection:!0}]}},yS=gS,bS={pipeId:fS,basePipe:U(fS),label:`Scrape list`,executionMode:`single`,categories:[`tools`],lifecycle:null,description:`Turn a list of URLs into clean scraped data.`,tags:[z.SCRAPE],docPath:W(fS),billableOperations:pS,inputFieldMode:`static`,outputFieldMode:`static`,allowedUserConnectionProviders:[`firecrawl`],managedProviders:[`firecrawl`],deprecatedProviders:[],defaultInputRequirement:_S(null),defaultPayload:{pipe_id:fS,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}}}}},xS=[`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`,`query:postgres@1`,`query:databricks@1`],SS=r.enum(xS);function CS(e,t){let n={name:e,config:t};return eo.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 CS(this.searchId,this.payload)}};function Q(e){return e.split(`@`)[0]}function $(e){return`/docs/search-catalog/${Q(e)}/${e.split(`@`)[1]}`}const wS=`companies:entitysearch:parallel@1`,TS=g(`company_name`),ES=g(`company_domain`),DS=g(`company_description`),OS=g(`company_profile_url`),kS=g(`parallel_company_entity_match`),AS=r.object({search_id:r.literal(wS),connector:ua(),config:r.object({objective:za({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({[TS.name]:M({fieldName:TS.name}),[ES.name]:M({fieldName:ES.name}),[DS.name]:M({fieldName:DS.name}),[OS.name]:M({fieldName:OS.name}),[kS.name]:M({fieldName:kS.name})}))})}),jS={default:{input:[{fields:[]}]}},MS=class extends Z{searchId=wS;schema=AS;payload;constructor(e){super(),this.payload=this.validatePayload(e)}getRawOutputFields(){return{[TS.name]:this.catalogOutput(TS),[ES.name]:this.catalogOutput(ES),[DS.name]:this.catalogOutput(DS),[OS.name]:this.catalogOutput(OS),[kS.name]:this.catalogOutput(kS)}}getConnectionsRequirements(){return[{provider:`parallel`,rateLimitOperation:`parallel_entity_search`,rateLimitRatio:1,allowManagedConnection:!0}]}getDedupConfig(){return jS}},NS=AS,PS={searchId:wS,billableOperation:`companies-entitysearch-parallel-v1`,baseSearch:Q(wS),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:$(wS),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:wS,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 FS(e,t=32){return`https://www.google.com/s2/favicons?sz=${t}&domain=${e.replace(/^(https?:\/\/)?(www\.)?/,``)}`}function IS(e,t){return e==null?void 0:t(e)}function LS(){return RS({companyWebsiteUrl:`linkedin.com`,entity:`LinkedIn`})}function RS({companyWebsiteUrl:e,entity:t}){if(e)return{image_url:FS(e),entity:t||e}}function zS(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 BS(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 VS=`companies:profiles:amplemarket@2`,HS=g(`company_name`),US=g(`company_domain`),WS=g(`company_description`),GS=g(`company_profile_url`),KS=g(`amplemarket_company_match`),qS=r.object({search_id:r.literal(VS),connector:ua(),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({[HS.name]:M({fieldName:HS.name}),[US.name]:M({fieldName:US.name}),[WS.name]:M({fieldName:WS.name}),[GS.name]:M({fieldName:GS.name}),[KS.name]:M({fieldName:KS.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:FS(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:Ma({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:Ma({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=>{BS(e.value)&&e.issues.push({code:`custom`,message:`You must set at least one filter.`,input:e.value})})})}),JS={default:{input:[{fields:[]}]}},YS=class extends Z{searchId=VS;schema=qS;payload;constructor(e){super(),this.payload=this.validatePayload(e)}getRawOutputFields(){return{[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:`amplemarket`,rateLimitOperation:`amplemarket_company_search`,rateLimitRatio:1,allowManagedConnection:!0}]}getDedupConfig(){return JS}},XS=qS,ZS={searchId:VS,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:$(VS),cost:{mode:`per_page`,credits:{default:2}},provider:`amplemarket`,defaultPayload:{search_id:VS,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:[]}}}}},QS=`companies:profiles:crustdata@2`,$S=g(`company_name`),eC=g(`company_domain`),tC=g(`company_description`),nC=g(`company_profile_url`),rC=g(`crustdata_company_match`),iC=r.object({search_id:r.literal(QS),connector:ua(),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:Ra({path:`config.cursor`,groupPath:`config.pagination`,inputType:`text`,label:`Cursor`,sectionKey:`pagination`,description:`Pagination cursor`}),output_fields:L(r.object({[$S.name]:M({fieldName:$S.name}),[eC.name]:M({fieldName:eC.name}),[tC.name]:M({fieldName:tC.name}),[nC.name]:M({fieldName:nC.name}),[rC.name]:M({fieldName:rC.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:Pa({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:Pa({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:FS(e.value)}})})})}).check(e=>{BS(e.value)&&e.issues.push({code:`custom`,message:`You must set at least one filter.`,input:e.value})})})}),aC={default:{input:[{fields:[]}]}},oC=class extends Z{searchId=QS;schema=iC;payload;constructor(e){super(),this.payload=this.validatePayload(e)}getRawOutputFields(){return{[$S.name]:this.catalogOutput($S),[eC.name]:this.catalogOutput(eC),[tC.name]:this.catalogOutput(tC),[nC.name]:this.catalogOutput(nC),[rC.name]:this.catalogOutput(rC)}}getConnectionsRequirements(){return[{provider:`crustdata`,rateLimitOperation:`crustdata_company_db_search`,rateLimitRatio:1,allowManagedConnection:!0}]}getDedupConfig(){return aC}},sC=iC,cC={searchId:QS,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:$(QS),cost:{mode:`per_page`,credits:{default:2}},provider:`crustdata`,defaultPayload:{search_id:QS,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:[]}}}}},lC=`query:databricks@1`,uC=r.object({search_id:r.literal(lC),connector:la(),config:r.object({query:za({path:`config.query`,groupPath:`config.general`,sectionKey:`general`,label:`SQL query`,description:`A single read-only SELECT statement. It is wrapped automatically for pagination, so do not add your own LIMIT/OFFSET for paging.`,rows:8,minLength:1,maxLength:2e4}),limit:I({path:`config.limit`,min:1,max:1e3,groupPath:`config.pagination`,required:!0,sectionKey:`pagination`,label:`Limit`,description:`Max number of rows per page`}).default(100),page_number:I({path:`config.page_number`,min:1,groupPath:`config.pagination`,required:!1,sectionKey:`pagination`,label:`Page`,description:`1-based page index (offset pagination)`}).default(1)})}),dC={default:{input:[]}},fC=class extends Z{searchId=lC;schema=uC;payload;constructor(e){super(),this.payload=this.validatePayload(e)}getRawOutputFields(){return{}}getConnectionsRequirements(){return[{provider:`databricks`,rateLimitOperation:`databricks_query`,rateLimitRatio:1,allowManagedConnection:!1}]}getDedupConfig(){return dC}},pC=uC,mC={searchId:lC,billableOperation:`data-query-databricks-v1`,baseSearch:Q(lC),outputFieldMode:`dynamic`,paginationType:`page_number`,label:`Query Databricks`,categories:[`data`],hasManagedConnection:!1,allowsUserConnection:!0,lifecycle:null,description:`Run a read-only SQL query against your Databricks SQL warehouse and return the rows.`,tags:[z.FIELDS,z.NEW],docPath:$(lC),cost:{mode:`per_page`,credits:{default:1},info:`1 page = up to your configured limit (max 1000) rows.`},provider:`databricks`,defaultPayload:{search_id:lC,connector:{strategy:`first`,connections:[]},config:{query:``,limit:100,page_number:1}}},hC=`query:postgres@1`,gC=r.object({search_id:r.literal(hC),connector:la(),config:r.object({query:za({path:`config.query`,groupPath:`config.general`,sectionKey:`general`,label:`SQL query`,description:`A single read-only SELECT statement. It is wrapped automatically for pagination, so do not add your own LIMIT/OFFSET for paging.`,rows:8,minLength:1,maxLength:2e4}),limit:I({path:`config.limit`,min:1,max:1e3,groupPath:`config.pagination`,required:!0,sectionKey:`pagination`,label:`Limit`,description:`Max number of rows per page`}).default(100),page_number:I({path:`config.page_number`,min:1,groupPath:`config.pagination`,required:!1,sectionKey:`pagination`,label:`Page`,description:`1-based page index (offset pagination)`}).default(1)})}),_C={default:{input:[]}},vC=class extends Z{searchId=hC;schema=gC;payload;constructor(e){super(),this.payload=this.validatePayload(e)}getRawOutputFields(){return{}}getConnectionsRequirements(){return[{provider:`postgres`,rateLimitOperation:`postgres_query`,rateLimitRatio:1,allowManagedConnection:!1}]}getDedupConfig(){return _C}},yC=gC,bC={searchId:hC,billableOperation:`data-query-postgres-v1`,baseSearch:Q(hC),outputFieldMode:`dynamic`,paginationType:`page_number`,label:`Query Postgres`,categories:[`data`],hasManagedConnection:!1,allowsUserConnection:!0,lifecycle:null,description:`Run a read-only SQL query against your own PostgreSQL database and return the rows.`,tags:[z.FIELDS,z.NEW],docPath:$(hC),cost:{mode:`per_page`,credits:{default:1},info:`1 page = up to your configured limit (max 1000) rows.`},provider:`postgres`,defaultPayload:{search_id:hC,connector:{strategy:`first`,connections:[]},config:{query:``,limit:100,page_number:1}}},xC=`companies:profiles:amplemarket@1`,SC=g(`company_name`),CC=g(`company_website_url`),wC=g(`company_description`),TC=g(`company_profile_url`),EC=g(`amplemarket_company_match`),DC=r.object({search_id:r.literal(xC),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}),[wC.name]:M({fieldName:wC.name}),[TC.name]:M({fieldName:TC.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`)}),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:Ma({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:Ma({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=>{BS(e.value)&&e.issues.push({code:`custom`,message:`You must set at least one filter.`,input:e.value})})})}),OC={default:{input:[{fields:[]}]}},kC=class extends Z{searchId=xC;schema=DC;payload;constructor(e){super(),this.payload=this.validatePayload(e)}getRawOutputFields(){return{[SC.name]:this.catalogOutput(SC),[CC.name]:this.catalogOutput(CC),[wC.name]:this.catalogOutput(wC),[TC.name]:this.catalogOutput(TC),[EC.name]:this.catalogOutput(EC)}}getConnectionsRequirements(){return[{provider:`amplemarket`,rateLimitOperation:`amplemarket_company_search`,rateLimitRatio:1,allowManagedConnection:!0}]}getDedupConfig(){return OC}},AC=DC,jC={searchId:xC,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:$(xC),cost:{mode:`per_page`,credits:{default:2}},provider:`amplemarket`,defaultPayload:{search_id:xC,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:[]}}}}},MC=`companies:profiles:crustdata@1`,NC=g(`company_name`),PC=g(`company_website_url`),FC=g(`company_description`),IC=g(`company_profile_url`),LC=g(`crustdata_company_match`),RC=r.object({search_id:r.literal(MC),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:Ra({path:`config.cursor`,groupPath:`config.pagination`,inputType:`text`,label:`Cursor`,sectionKey:`pagination`,description:`Pagination cursor`}),output_fields:L(r.object({[NC.name]:M({fieldName:NC.name}),[PC.name]:M({fieldName:NC.name}),[FC.name]:M({fieldName:FC.name}),[IC.name]:M({fieldName:IC.name}),[LC.name]:M({fieldName:LC.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:Pa({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:Pa({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=>{BS(e.value)&&e.issues.push({code:`custom`,message:`You must set at least one filter.`,input:e.value})})})}),zC={default:{input:[{fields:[]}]}},BC=class extends Z{searchId=MC;schema=RC;payload;constructor(e){super(),this.payload=this.validatePayload(e)}getRawOutputFields(){return{[NC.name]:this.catalogOutput(NC),[PC.name]:this.catalogOutput(PC),[FC.name]:this.catalogOutput(FC),[IC.name]:this.catalogOutput(IC),[LC.name]:this.catalogOutput(LC)}}getConnectionsRequirements(){return[{provider:`crustdata`,rateLimitOperation:`crustdata_company_db_search`,rateLimitRatio:1,allowManagedConnection:!0}]}getDedupConfig(){return zC}},VC=RC,HC={searchId:MC,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:$(MC),cost:{mode:`per_page`,credits:{default:2}},provider:`crustdata`,defaultPayload:{search_id:MC,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:[]}}}}},UC=`people:profiles:amplemarket@1`,WC=g(`name`),GC=g(`company_website_url`),KC=g(`profile_url`),qC=g(`job_title`),JC=g(`amplemarket_person_match`),YC=r.object({search_id:r.literal(UC),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({[WC.name]:M({fieldName:WC.name}),[GC.name]:M({fieldName:GC.name}),[KC.name]:M({fieldName:KC.name}),[qC.name]:M({fieldName:qC.name}),[JC.name]:M({fieldName:JC.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:Ma({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=>{BS(e.value)&&e.issues.push({code:`custom`,message:`You must set at least one filter.`,input:e.value})})})}),XC={default:{input:[{fields:[]}]}},ZC=class extends Z{searchId=UC;schema=YC;payload;constructor(e){super(),this.payload=this.validatePayload(e)}getRawOutputFields(){return{[WC.name]:this.catalogOutput(WC),[GC.name]:this.catalogOutput(GC),[KC.name]:this.catalogOutput(KC),[qC.name]:this.catalogOutput(qC),[JC.name]:this.catalogOutput(JC)}}getConnectionsRequirements(){return[{provider:`amplemarket`,rateLimitOperation:`amplemarket_people_search`,rateLimitRatio:1,allowManagedConnection:!0}]}getDedupConfig(){return XC}},QC=YC,$C={searchId:UC,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:$(UC),cost:{mode:`per_page`,credits:{default:3},info:`1 page = 100 records; 200 results = 2 pages`},provider:`amplemarket`,defaultPayload:{search_id:UC,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:[]}}}},ew=`people:profiles:crustdata@1`,tw=g(`name`),nw=g(`company_website_url`),rw=g(`profile_url`),iw=g(`job_title`),aw=g(`crustdata_person_match`),ow=r.object({search_id:r.literal(ew),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:Ra({path:`config.cursor`,groupPath:`config.pagination`,inputType:`text`,label:`Cursor`,sectionKey:`pagination`,description:`Pagination cursor`}),output_fields:L(r.object({[tw.name]:M({fieldName:tw.name}),[nw.name]:M({fieldName:nw.name}),[rw.name]:M({fieldName:rw.name}),[iw.name]:M({fieldName:iw.name}),[aw.name]:M({fieldName:aw.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:La({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=>{BS(e.value)&&e.issues.push({code:`custom`,message:`You must set at least one filter.`,input:e.value})})})}),sw={default:{input:[{fields:[]}]}},cw=class extends Z{searchId=ew;schema=ow;payload;constructor(e){super(),this.payload=this.validatePayload(e)}getRawOutputFields(){return{[tw.name]:this.catalogOutput(tw),[nw.name]:this.catalogOutput(nw),[rw.name]:this.catalogOutput(rw),[iw.name]:this.catalogOutput(iw),[aw.name]:this.catalogOutput(aw)}}getConnectionsRequirements(){return[{provider:`crustdata`,rateLimitOperation:`crustdata_people_db_search`,rateLimitRatio:1,allowManagedConnection:!0}]}getDedupConfig(){return sw}},lw=ow,uw={searchId:ew,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:$(ew),cost:{mode:`per_page`,credits:{default:5},info:`1 page = 100 records; 200 results = 2 pages`},provider:`crustdata`,defaultPayload:{search_id:ew,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:[]}}}}},dw=`people:entitysearch:parallel@1`,fw=g(`name`),pw=g(`job_title`),mw=g(`profile_url`),hw=g(`parallel_person_entity_match`),gw=r.object({search_id:r.literal(dw),connector:ua(),config:r.object({objective:za({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({[fw.name]:M({fieldName:fw.name}),[pw.name]:M({fieldName:pw.name}),[mw.name]:M({fieldName:mw.name}),[hw.name]:M({fieldName:hw.name})}))})}),_w={default:{input:[{fields:[]}]}},vw=class extends Z{searchId=dw;schema=gw;payload;constructor(e){super(),this.payload=this.validatePayload(e)}getRawOutputFields(){return{[fw.name]:this.catalogOutput(fw),[pw.name]:this.catalogOutput(pw),[mw.name]:this.catalogOutput(mw),[hw.name]:this.catalogOutput(hw)}}getConnectionsRequirements(){return[{provider:`parallel`,rateLimitOperation:`parallel_entity_search`,rateLimitRatio:1,allowManagedConnection:!0}]}getDedupConfig(){return _w}},yw=gw,bw={searchId:dw,billableOperation:`people-entitysearch-parallel-v1`,baseSearch:Q(dw),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:$(dw),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:dw,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:``}}}}},xw=`people:eventguests:luma@1`,Sw=g(`name`),Cw=g(`email`),ww=g(`luma_id`),Tw=g(`registered_at`),Ew=g(`luma_event_guest_match`),Dw=[{label:`Sample Meetup β Berlin`,value:`evt-sandbox-1`},{label:`Sample Conference β SF`,value:`evt-sandbox-2`}],Ow={requires:{connection:`luma`},options:async({query:e,secret:t,environment:n})=>{if(n===`sandbox`)return Dw;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}},kw=r.object({search_id:r.literal(xw),connector:la(),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:Ra({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}),[ww.name]:M({fieldName:ww.name}),[Tw.name]:M({fieldName:Tw.name}),[Ew.name]:M({fieldName:Ew.name})})),filters:r.object({event_id:Va({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:Tn(`luma`),optionsDef:Ow}),approval_status:Ba({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`}]})})})}),Aw={default:{input:[{fields:[{outputField:`luma_id`}]}]}},jw=class extends Z{searchId=xw;schema=kw;payload;constructor(e){super(),this.payload=this.validatePayload(e)}getRawOutputFields(){return{[Sw.name]:this.catalogOutput(Sw),[Cw.name]:this.catalogOutput(Cw),[ww.name]:this.catalogOutput(ww),[Tw.name]:this.catalogOutput(Tw),[Ew.name]:this.catalogOutput(Ew)}}getConnectionsRequirements(){return[{provider:`luma`,rateLimitOperation:`luma_get_guests`,rateLimitRatio:1,allowManagedConnection:!1}]}getDedupConfig(){return Aw}},Mw=kw,Nw={searchId:xw,billableOperation:`people-eventguests-luma-v1`,baseSearch:Q(xw),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:$(xw),cost:{mode:`per_page`,credits:{default:1},info:`1 page = up to 100 guests.`},provider:`luma`,defaultPayload:{search_id:xw,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:``}}}},Pw=`people:profiles:amplemarket@2`,Fw=g(`name`),Iw=g(`company_domain`),Lw=g(`profile_url`),Rw=g(`job_title`),zw=g(`amplemarket_person_match`),Bw=r.object({search_id:r.literal(Pw),connector:ua(),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({[Fw.name]:M({fieldName:Fw.name}),[Iw.name]:M({fieldName:Iw.name}),[Lw.name]:M({fieldName:Lw.name}),[Rw.name]:M({fieldName:Rw.name}),[zw.name]:M({fieldName:zw.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:FS(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:Ma({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=>{BS(e.value)&&e.issues.push({code:`custom`,message:`You must set at least one filter.`,input:e.value})})})}),Vw={default:{input:[{fields:[]}]}},Hw=class extends Z{searchId=Pw;schema=Bw;payload;constructor(e){super(),this.payload=this.validatePayload(e)}getRawOutputFields(){return{[Fw.name]:this.catalogOutput(Fw),[Iw.name]:this.catalogOutput(Iw),[Lw.name]:this.catalogOutput(Lw),[Rw.name]:this.catalogOutput(Rw),[zw.name]:this.catalogOutput(zw)}}getConnectionsRequirements(){return[{provider:`amplemarket`,rateLimitOperation:`amplemarket_people_search`,rateLimitRatio:1,allowManagedConnection:!0}]}getDedupConfig(){return Vw}},Uw=Bw,Ww={searchId:Pw,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:$(Pw),cost:{mode:`per_page`,credits:{default:3},info:`1 page = 100 records; 200 results = 2 pages`},provider:`amplemarket`,defaultPayload:{search_id:Pw,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:[]}}}},Gw=`people:profiles:crustdata@2`,Kw=g(`name`),qw=g(`company_domain`),Jw=g(`profile_url`),Yw=g(`job_title`),Xw=g(`crustdata_person_match`),Zw=r.object({search_id:r.literal(Gw),connector:ua(),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:Ra({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}),[qw.name]:M({fieldName:qw.name}),[Jw.name]:M({fieldName:Jw.name}),[Yw.name]:M({fieldName:Yw.name}),[Xw.name]:M({fieldName:Xw.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:FS(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:FS(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:La({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=>{BS(e.value)&&e.issues.push({code:`custom`,message:`You must set at least one filter.`,input:e.value})})})}),Qw={default:{input:[{fields:[]}]}},$w=class extends Z{searchId=Gw;schema=Zw;payload;constructor(e){super(),this.payload=this.validatePayload(e)}getRawOutputFields(){return{[Kw.name]:this.catalogOutput(Kw),[qw.name]:this.catalogOutput(qw),[Jw.name]:this.catalogOutput(Jw),[Yw.name]:this.catalogOutput(Yw),[Xw.name]:this.catalogOutput(Xw)}}getConnectionsRequirements(){return[{provider:`crustdata`,rateLimitOperation:`crustdata_people_db_search`,rateLimitRatio:1,allowManagedConnection:!0}]}getDedupConfig(){return Qw}},eT=Zw,tT={searchId:Gw,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:$(Gw),cost:{mode:`per_page`,credits:{default:5},info:`1 page = 100 records; 200 results = 2 pages`},provider:`crustdata`,defaultPayload:{search_id:Gw,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:[]}}}}},nT=`sheet:rows@1`,rT=[{label:`Demo leads`,value:`demo-leads`},{label:`Demo companies`,value:`demo-companies`},{label:`Demo contacts`,value:`demo-contacts`}],iT={requires:{connection:`pipe0`},enabledIf:Tn(`pipe0`,`Select a pipe0 connection to see sheet suggestions`),options:async({query:e,client:t,environment:n})=>n===`sandbox`?rT: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`}}},aT=r.object({search_id:r.literal(nT),connector:la(),config:r.object({sheet:Va({path:`config.sheet`,sectionKey:`general`,groupPath:`config.general`,label:`Sheet`,required:!0,info:`Pick one of your pipe0 sheets; its rows are returned.`,enabledIf:Tn(`pipe0`),optionsDef:iT}),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:Ra({path:`config.cursor`,groupPath:`config.pagination`,inputType:`text`,label:`Cursor`,sectionKey:`pagination`,description:`Pagination cursor`}),include_metadata:Ia({path:`config.include_metadata`,groupPath:`config.general`,sectionKey:`general`,label:`Include metadata`,description:`Widgets and prevenance tags.`,defaultValue:!1})})}),oT={default:{input:[{fields:[{outputField:`id`}]}]}},sT=class extends Z{searchId=nT;schema=aT;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 oT}},cT=aT,lT={searchId:nT,billableOperation:`sheet-items-v1-pipe0`,baseSearch:Q(nT),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:$(nT),cost:{mode:`per_search`,credits:{default:0},info:`Reading your own pipe0 sheet is free.`},provider:`pipe0`,defaultPayload:{search_id:nT,connector:{strategy:`first`,connections:[]},config:{sheet:``,limit:100,cursor:``,include_metadata:!1}}},uT={"people:profiles:crustdata@1":cw,"people:profiles:crustdata@2":$w,"companies:profiles:crustdata@1":BC,"companies:profiles:crustdata@2":oC,"people:profiles:amplemarket@1":ZC,"people:profiles:amplemarket@2":Hw,"companies:profiles:amplemarket@1":kC,"companies:profiles:amplemarket@2":YS,"companies:entitysearch:parallel@1":MS,"people:entitysearch:parallel@1":vw,"people:eventguests:luma@1":jw,"sheet:rows@1":sT,"query:postgres@1":vC,"query:databricks@1":fC},dT={"people:profiles:crustdata@1":lw,"people:profiles:crustdata@2":eT,"companies:profiles:crustdata@1":VC,"companies:profiles:crustdata@2":sC,"people:profiles:amplemarket@1":QC,"people:profiles:amplemarket@2":Uw,"companies:profiles:amplemarket@1":AC,"companies:profiles:amplemarket@2":XS,"companies:entitysearch:parallel@1":NS,"people:entitysearch:parallel@1":yw,"people:eventguests:luma@1":Mw,"sheet:rows@1":cT,"query:postgres@1":yC,"query:databricks@1":pC},fT={"people:profiles:crustdata@1":uw,"people:profiles:crustdata@2":tT,"companies:profiles:crustdata@1":HC,"companies:profiles:crustdata@2":cC,"people:profiles:amplemarket@1":$C,"people:profiles:amplemarket@2":Ww,"companies:profiles:amplemarket@1":jC,"companies:profiles:amplemarket@2":ZS,"companies:entitysearch:parallel@1":PS,"people:entitysearch:parallel@1":bw,"people:eventguests:luma@1":Nw,"sheet:rows@1":lT,"query:postgres@1":bC,"query:databricks@1":mC};function pT(e){return uT[e]}const mT=t.discriminatedUnion(`search_id`,Object.values(dT).map(e=>e)).openapi(`SearchPayloadSchema`);function hT(e,t){return Ua(t,fT[e].defaultPayload)}const gT=t.preprocess(e=>{if(!e||typeof e!=`object`||!(`search_id`in e))return e;let t=hT(e.search_id);return t?{...e,config:Ua(e?.config||{},t.config)}:e},mT),_T=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:gT}).openapi(`SearchRequestSchema`),vT=Qn,yT=t.object({value:zn,status:Rn,type:In.optional(),format:tr.nullable().optional(),resolved_by:sr.nullable().optional(),widgets:Zn.optional()}),bT=t.record(t.string(),yT.nullable());function xT(e){return dT[e]}const ST=t.enum([`cursor`,`page_number`]),CT=t.object({id:t.string(),status:t.enum([`completed`,`failed`,`pending`,`processing`]),search_id:SS,errors:t.array(vT),results:t.array(bT),organization_id:t.string(),next_page:gT.nullable(),pagination_type:ST.nullable(),total_pages:t.int32().nullable(),field_definitions:rr.optional()}).openapi(`SearchResponseSchema`);function wT(e){let t=e.split(`@`)[1];if(!t)throw Error(`No search version found`);return Number(t)}function TT(){let e={};for(let t of Object.values(fT)){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=wT(e.searchId);return wT(t.searchId)-n})}),e}function ET(e){return fT[e]}const DT=TT();function OT(e){let t=[];for(let[n,r]of Object.entries(DT)){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:wT(i.searchId)})}return t}function kT(e){let t=fT[e].defaultPayload.config.output_fields;return t?Object.keys(t):[]}function AT(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 kT(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:DT}}function jT(e){let t=ET(e);return{[t.provider]:t.cost.credits.default}}const MT={"prompt:run@1":Zb,"company:newssummary:website@1":Wl,"company:newssummary:domain@1":Rs,"company:techstack:builtwith@1":Mu,"company:techstack:builtwith@2":dc,"company:websiteurl:email@1":Vu,"company:domain:workemail@1":vo,"company:funding:leadmagic@1":Lc,"company:funding:leadmagic@2":Mo,"people:workemail:waterfall@1":nh,"person:workemail:waterfall@1":Wb,"people:email:iswork@1":Xu,"email:iswork@1":dh,"people:name:split@1":Ef,"person:name:split@1":oy,"people:validate:email:zerobounce@1":km,"people:email:validate:zerobounce@2":hd,"email:validate:zerobounce@1":Hh,"people:mobilenumber:workemail:waterfall@1":gf,"person:name:join@1":Xv,"company:overview@1":au,"company:overview@2":xu,"company:overview@3":ec,"json:extract:multi@1":Ug,"company:lookalikes:companyenrich@1":ml,"company:lookalikes:companyenrich@2":cs,"company:match:logodev@1":Fl,"company:match:logodev@2":ks,"person:posts:crustdata@1":Oy,"people:profile:workemail:crustdata@1":sm,"person:profile:workemail:crustdata@1":Yy,"people:identity:email:waterfall@1":Id,"person:identity:email:waterfall@1":Q_,"person:identity:amplemarket@1":I_,"email:send:resend@1":Mh,"contact:create:resend@1":Cc,"email:send:gmail@1":Th,"email:write@1":Qh,"fields:merge@1":Og,"field:slugify@1":gg,"field:domainify@1":sg,"http:request@1":Lg,"template:fill@1":Tx,"message:send:slack@1":Zg,"message:write@1":a_,"people:personalemail:profile:waterfall@1":Rf,"person:personalemail:profileurl:waterfall@1":vy,"website:scrape:firecrawl@1":lS,"website:scrapelist:firecrawl@1":vS,"website:extract:firecrawl@1":Px,"website:extract:parallel@1":Ux,"website:maplinks:firecrawl@1":Qx,"sheet:row:append@1":lx,"sheet:row:expandappend@1":vx,"people:match:role:waterfall@1":qd,"person:match:role:waterfall@1":vv,"company:match:crustdata@1":Cl,"company:match:crustdata@2":_s,"person:match:amplemarket@1":sv,"company:identity@2":al,"company:identity@3":Uo,"company:identity:crustdata@1":$o,"people:phone:profile:waterfall@1":Yf,"person:mobile:profileurl:waterfall@1":kv,"person:devprofileurl:profileurl:waterfall@1":__,"people:phone:workemail:waterfall@1":op,"person:mobile:workemail:waterfall@1":Bv,"people:profile:waterfall@1":Zp,"person:profile:waterfall@1":zy,"people:profileurl:email:waterfall@1":ym,"person:profileurl:email:waterfall@1":sb,"person:profileurl:name@1":vb,"people:email:validate:zerobounce@1":ad,"person:email:validate:millionverifier@1":D_,"people:workemail:profileurl:waterfall@1":Hm,"person:workemail:profileurl:waterfall@1":Ab,"company:identity@1":Jc,"people:professionalprofile:waterfall@1":_p,"people:professionalprofileurl:name@1":Bp,"people:professionalprofileurl:email:waterfall@1":kp,"people:mobilenumber:professionalprofile:waterfall@1":af},NT={"prompt:run@1":Qb,"company:newssummary:website@1":Gl,"company:newssummary:domain@1":zs,"company:techstack:builtwith@1":Nu,"company:techstack:builtwith@2":fc,"company:websiteurl:email@1":Hu,"company:domain:workemail@1":yo,"company:funding:leadmagic@1":Rc,"company:funding:leadmagic@2":No,"people:workemail:waterfall@1":rh,"person:workemail:waterfall@1":Gb,"people:email:iswork@1":Zu,"email:iswork@1":fh,"people:name:split@1":Df,"person:name:split@1":sy,"people:validate:email:zerobounce@1":Am,"people:email:validate:zerobounce@2":gd,"email:validate:zerobounce@1":Uh,"people:mobilenumber:workemail:waterfall@1":_f,"person:name:join@1":Zv,"company:overview@1":ou,"company:overview@2":Su,"company:overview@3":tc,"json:extract:multi@1":Wg,"email:write@1":$h,"fields:merge@1":kg,"field:slugify@1":_g,"field:domainify@1":cg,"http:request@1":Rg,"email:send:resend@1":Nh,"contact:create:resend@1":wc,"company:lookalikes:companyenrich@1":hl,"company:lookalikes:companyenrich@2":ls,"company:match:logodev@1":Il,"company:match:logodev@2":As,"person:posts:crustdata@1":ky,"people:profile:workemail:crustdata@1":cm,"person:profile:workemail:crustdata@1":Xy,"people:identity:email:waterfall@1":Ld,"person:identity:email:waterfall@1":$_,"company:match:crustdata@1":wl,"company:match:crustdata@2":vs,"person:identity:amplemarket@1":L_,"message:send:slack@1":Qg,"email:send:gmail@1":Eh,"message:write@1":o_,"template:fill@1":Ex,"website:scrape:firecrawl@1":uS,"website:scrapelist:firecrawl@1":yS,"website:extract:firecrawl@1":Fx,"website:extract:parallel@1":Wx,"website:maplinks:firecrawl@1":$x,"sheet:row:append@1":ux,"sheet:row:expandappend@1":yx,"people:match:role:waterfall@1":Jd,"person:match:role:waterfall@1":yv,"company:identity@2":ol,"company:identity@3":Wo,"company:identity:crustdata@1":es,"people:phone:profile:waterfall@1":Xf,"person:mobile:profileurl:waterfall@1":Av,"person:devprofileurl:profileurl:waterfall@1":v_,"people:personalemail:profile:waterfall@1":zf,"person:personalemail:profileurl:waterfall@1":yy,"people:profile:waterfall@1":Qp,"person:profile:waterfall@1":By,"people:profileurl:email:waterfall@1":bm,"person:profileurl:email:waterfall@1":cb,"person:profileurl:name@1":yb,"people:email:validate:zerobounce@1":od,"person:email:validate:millionverifier@1":O_,"people:phone:workemail:waterfall@1":sp,"person:mobile:workemail:waterfall@1":Vv,"people:workemail:profileurl:waterfall@1":Um,"person:workemail:profileurl:waterfall@1":jb,"person:match:amplemarket@1":cv,"company:identity@1":Yc,"people:professionalprofile:waterfall@1":vp,"people:professionalprofileurl:name@1":Vp,"people:professionalprofileurl:email:waterfall@1":Ap,"people:mobilenumber:professionalprofile:waterfall@1":of},PT={"prompt:run@1":$b,"company:newssummary:website@1":Kl,"company:newssummary:domain@1":Bs,"company:techstack:builtwith@1":Pu,"company:techstack:builtwith@2":pc,"company:websiteurl:email@1":Uu,"company:domain:workemail@1":bo,"company:funding:leadmagic@1":zc,"company:funding:leadmagic@2":Po,"people:workemail:waterfall@1":ih,"person:workemail:waterfall@1":Kb,"people:email:iswork@1":Qu,"email:iswork@1":ph,"people:name:split@1":Of,"person:name:split@1":cy,"people:validate:email:zerobounce@1":jm,"people:mobilenumber:workemail:waterfall@1":vf,"person:name:join@1":Qv,"company:overview@1":su,"company:overview@2":Cu,"company:overview@3":nc,"json:extract:multi@1":Gg,"email:send:resend@1":Ph,"contact:create:resend@1":Tc,"email:send:gmail@1":Dh,"message:send:slack@1":$g,"message:write@1":s_,"email:write@1":eg,"template:fill@1":Dx,"fields:merge@1":Ag,"field:slugify@1":vg,"field:domainify@1":lg,"http:request@1":zg,"sheet:row:append@1":dx,"sheet:row:expandappend@1":bx,"company:lookalikes:companyenrich@1":gl,"company:lookalikes:companyenrich@2":us,"people:match:role:waterfall@1":Yd,"person:match:role:waterfall@1":bv,"company:match:logodev@1":Ll,"company:match:logodev@2":js,"person:posts:crustdata@1":Ay,"people:profile:workemail:crustdata@1":lm,"person:profile:workemail:crustdata@1":Zy,"people:workemail:profileurl:waterfall@1":Wm,"person:workemail:profileurl:waterfall@1":Mb,"people:identity:email:waterfall@1":Rd,"person:identity:email:waterfall@1":ev,"company:match:crustdata@1":Tl,"company:match:crustdata@2":ys,"person:identity:amplemarket@1":R_,"email:validate:zerobounce@1":Wh,"person:email:validate:millionverifier@1":k_,"people:personalemail:profile:waterfall@1":Bf,"person:personalemail:profileurl:waterfall@1":by,"people:email:validate:zerobounce@1":sd,"people:email:validate:zerobounce@2":_d,"people:phone:workemail:waterfall@1":cp,"person:mobile:workemail:waterfall@1":Hv,"website:scrape:firecrawl@1":dS,"website:scrapelist:firecrawl@1":bS,"website:extract:firecrawl@1":Ix,"website:extract:parallel@1":Gx,"website:maplinks:firecrawl@1":eS,"person:match:amplemarket@1":lv,"company:identity@2":sl,"company:identity@3":Go,"company:identity:crustdata@1":ts,"people:phone:profile:waterfall@1":Zf,"person:mobile:profileurl:waterfall@1":jv,"person:devprofileurl:profileurl:waterfall@1":y_,"people:profile:waterfall@1":$p,"person:profile:waterfall@1":Vy,"people:profileurl:email:waterfall@1":xm,"person:profileurl:email:waterfall@1":lb,"person:profileurl:name@1":bb,"company:identity@1":Xc,"people:professionalprofile:waterfall@1":yp,"people:professionalprofileurl:name@1":Hp,"people:professionalprofileurl:email:waterfall@1":jp,"people:mobilenumber:professionalprofile:waterfall@1":sf};function FT(e){return e.defaultPayload?.config?.output_fields?Object.keys(e.defaultPayload?.config?.output_fields||{}):[]}function IT(e){return MT[e]}function LT(e){return PT[e].defaultPayload}function RT(e){return NT[e]}const zT=r.discriminatedUnion(`pipe_id`,Object.values(NT)).openapi(`PipePayload`),BT=r.preprocess(e=>{if(!e||typeof e!=`object`||!(`pipe_id`in e))return e;try{let t=LT(Pn.parse(e.pipe_id));return t?{...e,config:Ua(e?.config||{},t.config)}:e}catch{return e}},zT);function VT(e){return PT[e]}function HT(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 UT(e){let t=e.split(`@`)[1];if(!t)throw Error(`No pipe version found`);return Number(t)}function WT(){let e={};for(let t of Object.values(PT)){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=UT(e.pipeId);return UT(t.pipeId)-n})}),e}const GT=e=>{let t=VT(e),n=new Set(t.deprecatedProviders);return Array.from(new Set([...t.managedProviders,...t.allowedUserConnectionProviders])).filter(e=>!n.has(e))},KT=WT();function qT(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(`
|
|
73
|
+
}`,inputType:`text`,maxLength:1e6,expectedTagType:`string`,expectedTagFormat:`text`,multiline:!0}),headers:_a({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:ka({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({[Mg.name]:O({fieldName:Mg.name}),[Ng.name]:O({fieldName:Ng.name}),[Pg.name]:O({fieldName:Pg.name})}))})}),Ig={"http-request-v1-pipe0":{provider:`pipe0`,allowManagedConnection:!0,credits:{default:.001},mode:`always`}},Lg=class extends H{pipeId=jg;payload;payloadSchema=Fg;billableOperations=Ig;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[`http-request-v1-pipe0`]}getTemplatedFields(){let e=[this.payload.config.url,this.payload.config.body];for(let t of this.payload.config.query_params??[])e.push(t.key,t.value);for(let t of this.payload.config.headers??[])e.push(t.key,t.value);return e}getInputRequirement(){return vh(this.getTemplatedFields(),{expectedType:`string`,expectedFormat:`text`})}getSecretRequirements(){return yh(this.getTemplatedFields())}getConstantRequirements(){return bh(this.getTemplatedFields())}getRawOutputFields(){return{[Mg.name]:this.catalogOutput(Mg),[Ng.name]:this.catalogOutput(Ng),[Pg.name]:this.catalogOutput(Pg)}}getConnectionsRequirements(){return[{provider:`pipe0`,rateLimitRatio:1,rateLimitOperation:`pipe0_logic`,allowManagedConnection:!0}]}},Rg=Fg,zg={pipeId:jg,basePipe:U(jg),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(jg),billableOperations:Ig,defaultInputRequirement:null,inputFieldMode:`config`,outputFieldMode:`static`,allowedUserConnectionProviders:[],managedProviders:[`pipe0`],deprecatedProviders:[],defaultPayload:{pipe_id:jg,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}}}}},Bg=`json:extract:multi@1`,Vg=r.object({pipe_id:r.literal(Bg),run_if:x(),connector:w(),config:r.object({json_extraction:ji()})}),Hg={"json-extract-multi-v1-pipe0":{provider:`pipe0`,allowManagedConnection:!0,credits:{default:0},mode:`always`}},Ug=class extends H{pipeId=Bg;payload;payloadSchema=Vg;billableOperations=Hg;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[]}},Wg=Vg,Gg={pipeId:Bg,basePipe:U(Bg),inputFieldMode:`config`,outputFieldMode:`config`,label:`JSON extract`,executionMode:`single`,categories:[`tools`],lifecycle:null,description:`Extract nested JSON properties into new output fields.`,docPath:W(Bg),tags:[z.JSON],managedProviders:[`pipe0`],deprecatedProviders:[],allowedUserConnectionProviders:[],billableOperations:Hg,defaultInputRequirement:null,defaultPayload:{pipe_id:Bg,run_if:null,connector:null,config:{json_extraction:{field_name:``,extractions:[]}}}},Kg=`message:send:slack@1`,qg=g(`slack_message_success`),Jg=[{label:`#demo-general`,value:`C0SANDBOX001`},{label:`#demo-alerts`,value:`C0SANDBOX002`}],Yg=r.object({pipe_id:r.literal(Kg),connector:sa(),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 Jg;if(!t)throw new mc.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 mc.HttpError({msg:e})}let i=await r.json();if(!i.ok)throw new mc.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({[qg.name]:O({fieldName:qg.name})}))})}),Xg={"message-send-slack-v1-slack":{allowManagedConnection:!1,provider:`slack`,credits:null,mode:null}},Zg=class extends H{pipeId=Kg;payload;payloadSchema=Yg;billableOperations=Xg;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 vh(this.getTemplatedFields())}getSecretRequirements(){return yh(this.getTemplatedFields())}getConstantRequirements(){return bh(this.getTemplatedFields())}getRawOutputFields(){return{[qg.name]:this.catalogOutput(qg)}}getConnectionsRequirements(){return[{provider:`slack`,rateLimitRatio:1,rateLimitOperation:`slack_post_message`,allowManagedConnection:!1}]}},Qg=Yg,$g={pipeId:Kg,basePipe:U(Kg),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(Kg),billableOperations:Xg,inputFieldMode:`config`,outputFieldMode:`static`,allowedUserConnectionProviders:[`slack`],managedProviders:[],deprecatedProviders:[],defaultInputRequirement:null,defaultPayload:{pipe_id:Kg,connector:{strategy:`first`,connections:[]},run_if:null,config:{channel_id:``,message:``,output_fields:{slack_message_success:{alias:``,enabled:!0}}}}},e_=`message:write@1`,t_=g(`message`),n_=`message-write-v1`,r_=_i(n_),i_=r.object({pipe_id:r.literal(e_),connector:C(),run_if:x(),config:r.object({template:aa({sectionKey:`general`,label:`Template`,path:`config.template`,placeholder:J(`prompt`),groupPath:`config.prompt`,required:!0}),model:Ta({sectionKey:`general`,label:`Model`,path:`config.model`,groupPath:`config.prompt`,billableOperations:r_}),output_fields:L(r.object({[t_.name]:O({fieldName:t_.name})}))})}),a_=class extends H{pipeId=e_;payload;payloadSchema=i_;billableOperations=r_;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return yi(this.payload.config.model)}estimateBillableOperations(){return[vi(this.payload.config.model,n_)]}getInputRequirement(){return vh([this.payload.config.template])}getSecretRequirements(){return yh([this.payload.config.template])}getConstantRequirements(){return bh([this.payload.config.template])}getRawOutputFields(){return{[t_.name]:this.catalogOutput(t_)}}getConnectionsRequirements(){return bi(this.payload.config.model)}},o_=i_,s_={pipeId:e_,inputFieldMode:`config`,outputFieldMode:`static`,basePipe:U(e_),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(e_),defaultInputRequirement:null,billableOperations:r_,allowedUserConnectionProviders:xi(),managedProviders:xi(),deprecatedProviders:[],defaultPayload:{pipe_id:e_,connector:null,run_if:null,config:{model:`openai-gpt-latest`,template:``,output_fields:{message:{alias:``,enabled:!0}}}}},c_=`person:devprofileurl:profileurl:waterfall@1`,l_=g(`profile_url`),u_=g(`developer_profile_url`),d_=g(`alternative_developer_profile_urls`),f_=[`crustdata`],p_=[{provider:`crustdata`}],m_=r.object({pipe_id:r.literal(c_),run_if:x(),connector:C(),config:r.object({providers:E({sectionKey:`general`,defaultProviders:p_,availableProviders:f_}),input_fields:R(r.object({[l_.name]:T({fieldName:l_.name})})),output_fields:L(r.object({[u_.name]:O({fieldName:u_.name}),[d_.name]:O({fieldName:d_.name})}))}).optional()}),h_=e=>B(G(l_,e)),g_={"person-devprofileurl-profileurl-waterfall-v1-crustdata":{provider:`crustdata`,allowManagedConnection:!0,credits:{default:2,level1:{credits:1.3,weight:1}},mode:`onSuccess`}},__=class extends H{pipeId=c_;payload;payloadSchema=m_;billableOperations=g_;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 h_(this.payload.config)}getRawOutputFields(){return{[u_.name]:this.catalogOutput(u_,{isPrimaryOutput:!0}),[d_.name]:this.catalogOutput(d_,{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}))}},v_=m_,y_={pipeId:c_,basePipe:U(c_),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(c_),tags:[z.LINKEDIN,z.WATERFALL,z.NEW],billableOperations:g_,defaultInputRequirement:h_(null),inputFieldMode:`static`,outputFieldMode:`static`,managedProviders:f_,allowedUserConnectionProviders:f_,deprecatedProviders:[],defaultPayload:{pipe_id:c_,connector:null,run_if:null,config:{providers:p_,input_fields:{profile_url:{alias:``}},output_fields:{developer_profile_url:{alias:``,enabled:!0},alternative_developer_profile_urls:{alias:``,enabled:!1}}}}},b_=`person:email:validate:millionverifier@1`,x_=g(`email`),S_=g(`email_validation_status`),C_=g(`million_validation_match`),w_=r.object({pipe_id:r.literal(b_),connector:C(),run_if:x(),config:r.object({input_fields:R(r.object({[x_.name]:T({fieldName:x_.name})})),output_fields:L(r.object({[S_.name]:O({fieldName:S_.name}),[C_.name]:O({fieldName:C_.name})}))}).optional()}),T_=e=>B(G(x_,e)),E_={"person-email-validate-millionverifier-v1-millionverifier":{provider:`millionverifier`,allowManagedConnection:!0,credits:{default:.1,level1:{credits:.05,weight:1}},mode:`always`}},D_=class extends H{pipeId=b_;payload;payloadSchema=w_;billableOperations=E_;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`millionverifier`]}estimateBillableOperations(){return[`person-email-validate-millionverifier-v1-millionverifier`]}getInputRequirement(){return T_(this.payload.config)}getRawOutputFields(){return{[S_.name]:this.catalogOutput(S_),[C_.name]:this.catalogOutput(C_)}}getConnectionsRequirements(){return[{provider:`millionverifier`,rateLimitRatio:1,rateLimitOperation:`millionverifier_generic`,allowManagedConnection:!0}]}},O_=w_,k_={pipeId:b_,basePipe:U(b_),label:`Validate email`,executionMode:`single`,categories:[`people_data`],lifecycle:null,description:`Verify email addresses to ensure is deliverability.`,tags:[z.EMAIL],docPath:W(b_),billableOperations:E_,inputFieldMode:`static`,outputFieldMode:`static`,allowedUserConnectionProviders:[`millionverifier`],managedProviders:[`millionverifier`],deprecatedProviders:[],defaultInputRequirement:T_(null),defaultPayload:{pipe_id:b_,connector:null,run_if:null,config:{input_fields:{email:{alias:``}},output_fields:{email_validation_status:{alias:``,enabled:!0},million_validation_match:{alias:``,enabled:!0}}}}},A_=g(`email`),j_=g(`amplemarket_person_match`),M_=`person:identity:amplemarket@1`,N_=r.object({pipe_id:r.literal(M_),run_if:x(),connector:C(),config:r.object({input_fields:R(r.object({[A_.name]:T({fieldName:A_.name})})),output_fields:L(r.object({[j_.name]:O({fieldName:j_.name})}))}).optional()}),P_=e=>B(G(A_,e)),F_={"person-identity-amplemarket-v1-amplemarket":{allowManagedConnection:!1,credits:null,mode:null,provider:`amplemarket`}},I_=class extends H{pipeId=M_;payload;payloadSchema=N_;billableOperations=F_;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`amplemarket`]}estimateBillableOperations(){return[]}getInputRequirement(){return P_(this.payload.config)}getRawOutputFields(){return{[j_.name]:this.catalogOutput(j_)}}getConnectionsRequirements(){return[{provider:`amplemarket`,rateLimitRatio:1,rateLimitOperation:`amplemarket_generic`,allowManagedConnection:!1}]}},L_=N_,R_={pipeId:M_,inputFieldMode:`static`,outputFieldMode:`static`,basePipe:U(M_),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(M_),billableOperations:F_,allowedUserConnectionProviders:[`amplemarket`],managedProviders:[],deprecatedProviders:[],defaultInputRequirement:P_(null),defaultPayload:{pipe_id:M_,connector:null,run_if:null,config:{input_fields:{email:{alias:``}},output_fields:{amplemarket_person_match:{alias:``,enabled:!0}}}}},z_=`person:identity:email:waterfall@1`,B_=g(`email`),V_=g(`company_domain`),H_=g(`name`),U_=g(`job_title`),W_=g(`profile_url`),G_=g(`company_profile_url`),K_=g(`company_name`),q_=[`findymail`,`hunter`,`crustdata`],J_=[{provider:`findymail`},{provider:`hunter`},{provider:`crustdata`}],Y_=r.object({pipe_id:r.literal(z_),connector:C(),run_if:x(),config:r.object({providers:E({availableProviders:q_,defaultProviders:J_,sectionKey:`general`}),input_fields:R(r.object({[B_.name]:T({fieldName:B_.name})})),output_fields:L(r.object({[H_.name]:O({fieldName:H_.name}),[W_.name]:O({fieldName:W_.name}),[U_.name]:O({fieldName:U_.name}),[V_.name]:O({fieldName:V_.name}),[K_.name]:O({fieldName:K_.name}),[G_.name]:O({fieldName:G_.name})}))}).optional()}),X_=e=>B(G(B_,e)),Z_={"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`}},Q_=class extends H{pipeId=z_;payload;payloadSchema=Y_;billableOperations=Z_;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return this.payload.config?.providers.map(e=>e.provider)||[]}estimateBillableOperations(){return this.getProviderNames().map(e=>q(e,this.billableOperations).billableOperation)}getInputRequirement(){return X_(this.payload.config)}getRawOutputFields(){return{[H_.name]:this.catalogOutput(H_,{isPrimaryOutput:!0}),[W_.name]:this.catalogOutput(W_,{isPrimaryOutput:!0}),[U_.name]:this.catalogOutput(U_,{isPrimaryOutput:!0}),[K_.name]:this.catalogOutput(K_,{isPrimaryOutput:!0}),[G_.name]:this.catalogOutput(G_,{isPrimaryOutput:!0}),[V_.name]:this.catalogOutput(V_,{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_,ev={pipeId:z_,basePipe:U(z_),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(z_),managedProviders:q_,deprecatedProviders:[],allowedUserConnectionProviders:q_,inputFieldMode:`static`,outputFieldMode:`static`,billableOperations:Z_,defaultInputRequirement:X_(null),defaultPayload:{pipe_id:z_,connector:null,run_if:null,config:{providers:J_,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}}}}},tv=g(`profile_url`),nv=g(`amplemarket_person_match`),rv=`person:match:amplemarket@1`,iv=r.object({pipe_id:r.literal(rv),run_if:x(),connector:C(),config:r.object({input_fields:R(r.object({[tv.name]:T({fieldName:tv.name})})),output_fields:L(r.object({[nv.name]:O({fieldName:nv.name})}))}).optional()}),av=e=>B(G(tv,e)),ov={"person-match-amplemarket-v1-amplemarket":{allowManagedConnection:!1,credits:null,mode:null,provider:`amplemarket`}},sv=class extends H{pipeId=rv;payload;payloadSchema=iv;billableOperations=ov;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`amplemarket`]}estimateBillableOperations(){return[]}getInputRequirement(){return av(this.payload.config)}getRawOutputFields(){return{[nv.name]:this.catalogOutput(nv)}}getConnectionsRequirements(){return[{provider:`amplemarket`,rateLimitRatio:1,rateLimitOperation:`amplemarket_generic`,allowManagedConnection:!1}]}},cv=iv,lv={pipeId:rv,inputFieldMode:`static`,outputFieldMode:`static`,basePipe:U(rv),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(rv),billableOperations:ov,allowedUserConnectionProviders:[`amplemarket`],managedProviders:[],deprecatedProviders:[],defaultInputRequirement:av(null),defaultPayload:{pipe_id:rv,connector:null,run_if:null,config:{input_fields:{profile_url:{alias:``}},output_fields:{amplemarket_person_match:{alias:``,enabled:!0}}}}},uv=`person:match:role:waterfall@1`,dv=g(`company_domain`),fv=g(`role_finder_match`),pv=[`leadmagic`],mv=[{provider:`leadmagic`}],hv=r.object({pipe_id:r.literal(uv),run_if:x(),connector:C(),config:r.object({providers:E({sectionKey:`general`,defaultProviders:mv,availableProviders:pv}),roles:ga({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({[dv.name]:T({fieldName:dv.name})})),output_fields:L(r.object({[fv.name]:O({fieldName:fv.name})}))})}),gv=e=>V(G(dv,e)),_v={"person-match-role-waterfall-v1-leadmagic":{provider:`leadmagic`,allowManagedConnection:!0,credits:{default:1},mode:`onSuccess`}},vv=class extends H{pipeId=uv;payload;payloadSchema=hv;billableOperations=_v;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 gv(this.payload.config)}getSecretRequirements(){return yh(this.payload.config?.roles??[])}getConstantRequirements(){return bh(this.payload.config?.roles??[])}getRawOutputFields(){return{[fv.name]:this.catalogOutput(fv,{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}))}},yv=hv,bv={pipeId:uv,basePipe:U(uv),managedProviders:pv,deprecatedProviders:[],allowedUserConnectionProviders:pv,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(uv),billableOperations:_v,inputFieldMode:`static`,outputFieldMode:`static`,defaultInputRequirement:gv(null),defaultPayload:{pipe_id:uv,run_if:null,connector:null,config:{roles:[],providers:mv,input_fields:{company_domain:{alias:``}},output_fields:{role_finder_match:{alias:``,enabled:!0}}}}},xv=`person:mobile:profileurl:waterfall@1`,Sv=g(`profile_url`),Cv=g(`mobile`),wv=[`leadmagic`,`prospeo`,`amplemarket`,`findymail`],Tv=[{provider:`leadmagic`},{provider:`prospeo`},{provider:`amplemarket`},{provider:`findymail`}],Ev=r.object({pipe_id:r.literal(xv),run_if:x(),connector:C(),config:r.object({providers:E({sectionKey:`general`,defaultProviders:Tv,availableProviders:wv}),input_fields:R(r.object({[Sv.name]:T({fieldName:Sv.name})})),output_fields:L(r.object({[Cv.name]:O({fieldName:Cv.name})}))}).optional()}),Dv=e=>B(G(Sv,e)),Ov={"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`}},kv=class extends H{pipeId=xv;payload;payloadSchema=Ev;billableOperations=Ov;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 Dv(this.payload.config)}getRawOutputFields(){return{[Cv.name]:this.catalogOutput(Cv,{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}))}},Av=Ev,jv={pipeId:xv,basePipe:U(xv),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(xv),tags:[z.PHONE,z.WATERFALL],billableOperations:Ov,defaultInputRequirement:Dv(null),inputFieldMode:`static`,outputFieldMode:`static`,managedProviders:wv,allowedUserConnectionProviders:wv,deprecatedProviders:[],defaultPayload:{pipe_id:xv,connector:null,run_if:null,config:{providers:Tv,input_fields:{profile_url:{alias:``}},output_fields:{mobile:{alias:``,enabled:!0}}}}},Mv=`person:mobile:workemail:waterfall@1`,Nv=g(`work_email`),Pv=g(`mobile`),Fv=[`leadmagic`,`amplemarket`],Iv=[{provider:`leadmagic`},{provider:`amplemarket`}],Lv=r.object({pipe_id:r.literal(Mv),run_if:x(),connector:C(),config:r.object({providers:E({sectionKey:`general`,availableProviders:Fv,defaultProviders:Iv}),input_fields:R(r.object({[Nv.name]:T({fieldName:Nv.name})})),output_fields:L(r.object({[Pv.name]:O({fieldName:Pv.name})}))}).optional()}),Rv=e=>B(G(Nv,e)),zv={"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`}},Bv=class extends H{pipeId=Mv;payload;payloadSchema=Lv;billableOperations=zv;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return this.payload.config?.providers.map(e=>e.provider)||[]}estimateBillableOperations(){return this.getProviderNames().map(e=>q(e,this.billableOperations).billableOperation)}getInputRequirement(){return Rv(this.payload.config)}getRawOutputFields(){return{[Pv.name]:this.catalogOutput(Pv,{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}))}},Vv=Lv,Hv={pipeId:Mv,basePipe:U(Mv),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(Mv),billableOperations:zv,defaultInputRequirement:Rv(null),inputFieldMode:`static`,outputFieldMode:`static`,allowedUserConnectionProviders:Fv,managedProviders:Fv,deprecatedProviders:[],defaultPayload:{pipe_id:Mv,connector:null,run_if:null,config:{providers:Iv,input_fields:{work_email:{alias:``}},output_fields:{mobile:{alias:``,enabled:!0}}}}},Uv=`person:name:join@1`,Wv=g(`first_name`),Gv=g(`last_name`),Kv=g(`name`),qv=r.object({pipe_id:r.literal(Uv),run_if:x(),connector:w(),config:r.object({input_fields:R(r.object({[Wv.name]:T({fieldName:Wv.name}),[Gv.name]:T({fieldName:Gv.name})})),output_fields:L(r.object({[Kv.name]:O({fieldName:Kv.name})}))}).optional()}),Jv=e=>Ka(G(Wv,e),G(Gv,e)),Yv={"person-name-join-v1-pipe0":{provider:`pipe0`,allowManagedConnection:!0,credits:{default:0},mode:`always`}},Xv=class extends H{pipeId=Uv;payload;payloadSchema=qv;billableOperations=Yv;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[`person-name-join-v1-pipe0`]}getInputRequirement(){return Jv(this.payload.config)}getRawOutputFields(){return{[Kv.name]:this.catalogOutput(Kv)}}getConnectionsRequirements(){return[{provider:`pipe0`,rateLimitRatio:1,rateLimitOperation:`pipe0_logic`,allowManagedConnection:!0}]}},Zv=qv,Qv={pipeId:Uv,basePipe:U(Uv),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(Uv),billableOperations:Yv,defaultInputRequirement:Jv(null),inputFieldMode:`static`,outputFieldMode:`static`,allowedUserConnectionProviders:[],managedProviders:[`pipe0`],deprecatedProviders:[],defaultPayload:{pipe_id:Uv,run_if:null,connector:null,config:{input_fields:{first_name:{alias:``},last_name:{alias:``}},output_fields:{name:{alias:``,enabled:!0}}}}},$v=`person:name:split@1`,ey=g(`name`),ty=g(`first_name`),ny=g(`last_name`),ry=r.object({pipe_id:r.literal($v),connector:w(),run_if:x(),config:r.object({input_fields:R(r.object({[ey.name]:T({fieldName:ey.name})})),output_fields:L(r.object({[ty.name]:O({fieldName:ty.name}),[ny.name]:O({fieldName:ny.name})}))}).optional()}),iy=e=>B(G(ey,e)),ay={"person-name-split-v1-pipe0":{provider:`pipe0`,allowManagedConnection:!0,credits:{default:0},mode:`always`}},oy=class extends H{pipeId=$v;payload;payloadSchema=ry;billableOperations=ay;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[`person-name-split-v1-pipe0`]}getInputRequirement(){return iy(this.payload.config)}getRawOutputFields(){return{[ty.name]:this.catalogOutput(ty),[ny.name]:this.catalogOutput(ny)}}getConnectionsRequirements(){return[{provider:`pipe0`,rateLimitRatio:1,rateLimitOperation:`pipe0_logic`,allowManagedConnection:!0}]}},sy=ry,cy={pipeId:$v,basePipe:U($v),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($v),billableOperations:ay,inputFieldMode:`static`,outputFieldMode:`static`,defaultInputRequirement:iy(null),allowedUserConnectionProviders:[],managedProviders:[`pipe0`],deprecatedProviders:[],defaultPayload:{pipe_id:$v,run_if:null,connector:void 0,config:{input_fields:{name:{alias:``}},output_fields:{first_name:{alias:``,enabled:!0},last_name:{alias:``,enabled:!0}}}}},ly=`person:personalemail:profileurl:waterfall@1`,uy=g(`profile_url`),dy=g(`personal_email`),fy=g(`alternate_personal_emails`),py=[`leadmagic`,`mixrank`],my=[{provider:`leadmagic`},{provider:`mixrank`}],hy=r.object({pipe_id:r.literal(ly),run_if:x(),connector:C(),config:r.object({providers:E({sectionKey:`general`,availableProviders:py,defaultProviders:my}),input_fields:R(r.object({[uy.name]:T({fieldName:uy.name})})),output_fields:L(r.object({[dy.name]:O({fieldName:dy.name}),[fy.name]:O({fieldName:fy.name})}))}).optional()}),gy=e=>B(G(uy,e)),_y={"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`}},vy=class extends H{pipeId=ly;payload;payloadSchema=hy;billableOperations=_y;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return this.payload.config?.providers.map(e=>e.provider)||[]}estimateBillableOperations(){return this.getProviderNames().map(e=>q(e,this.billableOperations).billableOperation)}getInputRequirement(){return gy(this.payload.config)}getRawOutputFields(){return{[dy.name]:this.catalogOutput(dy,{isPrimaryOutput:!0}),[fy.name]:this.catalogOutput(fy)}}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}))}},yy=hy,by={pipeId:ly,basePipe:U(ly),allowedUserConnectionProviders:py,managedProviders:py,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(ly),billableOperations:_y,defaultInputRequirement:gy(null),inputFieldMode:`static`,outputFieldMode:`static`,defaultPayload:{pipe_id:ly,connector:null,run_if:null,config:{providers:my,input_fields:{profile_url:{alias:``}},output_fields:{personal_email:{alias:``,enabled:!0},alternate_personal_emails:{alias:``,enabled:!1}}}}},xy=g(`profile_url`),Sy=g(`post_list_string`),Cy=g(`crustdata_post_list`),wy=`person:posts:crustdata@1`,Ty=r.object({pipe_id:r.literal(wy),run_if:x(),connector:C(),config:r.object({limit:Da({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({[xy.name]:T({fieldName:xy.name})})),output_fields:L(r.object({[Sy.name]:O({fieldName:Sy.name}),[Cy.name]:O({fieldName:Cy.name})}))}).optional()}),Ey=e=>B(G(xy,e)),Dy={"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`}},Oy=class extends H{pipeId=wy;payload;payloadSchema=Ty;billableOperations=Dy;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`crustdata`]}estimateBillableOperations(){return[`person-posts-crustdata-v1-crustdata`]}getInputRequirement(){return Ey(this.payload.config)}getRawOutputFields(){return{[Sy.name]:this.catalogOutput(Sy),[Cy.name]:this.catalogOutput(Cy)}}getConnectionsRequirements(){return[{provider:`crustdata`,rateLimitRatio:1,rateLimitOperation:`crustdata_realtime_post_fetch`,allowManagedConnection:!0}]}},ky=Ty,Ay={pipeId:wy,inputFieldMode:`static`,outputFieldMode:`static`,basePipe:U(wy),label:`LinkedIn posts`,executionMode:`single`,categories:[`people_data`],lifecycle:null,description:`Find list of recent LinkedIn posts.`,tags:[z.LINKEDIN],docPath:W(wy),billableOperations:Dy,allowedUserConnectionProviders:[`crustdata`],managedProviders:[`crustdata`],deprecatedProviders:[],defaultInputRequirement:Ey(null),defaultPayload:{pipe_id:wy,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}}}}},jy=`person:profile:waterfall@1`,My=g(`profile`),Ny=g(`profile_url`),Py=[`prospeo`,`icypeas`,`amplemarket`],Fy=[{provider:`amplemarket`},{provider:`prospeo`},{provider:`icypeas`}],Iy=r.object({pipe_id:r.literal(jy),run_if:x(),connector:C(),config:r.object({providers:E({sectionKey:`general`,availableProviders:Py,defaultProviders:Fy}),input_fields:R(r.object({[Ny.name]:T({fieldName:Ny.name})})),output_fields:L(r.object({[My.name]:O({fieldName:My.name})}))}).optional()}),Ly=e=>B(G(Ny,e)),Ry={"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}},zy=class extends H{pipeId=jy;payload;payloadSchema=Iy;billableOperations=Ry;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 Ly(this.payload.config)}getRawOutputFields(){return{[My.name]:this.catalogOutput(My,{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}))}},By=Iy,Vy={pipeId:jy,basePipe:U(jy),label:`Full LinkedIn profile`,executionMode:`waterfall`,categories:[`people_data`],lifecycle:null,description:`Find a JSON representation of a LinkedIn profile.`,docPath:W(jy),tags:[z.LINKEDIN,z.WATERFALL],managedProviders:Py,deprecatedProviders:[],allowedUserConnectionProviders:Py,inputFieldMode:`static`,outputFieldMode:`static`,billableOperations:Ry,defaultInputRequirement:Ly(null),defaultPayload:{pipe_id:jy,run_if:null,connector:null,config:{providers:Fy,input_fields:{profile_url:{alias:``}},output_fields:{profile:{alias:``,enabled:!0}}}}},Hy=g(`work_email`),Uy=g(`crustdata_person_match`),Wy=g(`crustdata_profile_match_score`),Gy=`person:profile:workemail:crustdata@1`,Ky=r.object({pipe_id:r.literal(Gy),run_if:x(),connector:C(),config:r.object({input_fields:R(r.object({[Hy.name]:T({fieldName:Hy.name})})),output_fields:L(r.object({[Uy.name]:O({fieldName:Uy.name}),[Wy.name]:O({fieldName:Wy.name})}))}).optional()}),qy=e=>B(G(Hy,e)),Jy={"person-profile-workemail-crustdata-v1-crustdata":{allowManagedConnection:!0,credits:{default:5},mode:`onSuccess`,provider:`crustdata`}},Yy=class extends H{pipeId=Gy;payload;payloadSchema=Ky;billableOperations=Jy;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`crustdata`]}estimateBillableOperations(){return[`person-profile-workemail-crustdata-v1-crustdata`]}getInputRequirement(){return qy(this.payload.config)}getRawOutputFields(){return{[Uy.name]:this.catalogOutput(Uy),[Wy.name]:this.catalogOutput(Wy)}}getConnectionsRequirements(){return[{provider:`crustdata`,rateLimitRatio:1,rateLimitOperation:`crustdata_realtime_person_enrich`,allowManagedConnection:!0}]}},Xy=Ky,Zy={pipeId:Gy,inputFieldMode:`static`,outputFieldMode:`static`,basePipe:U(Gy),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(Gy),billableOperations:Jy,allowedUserConnectionProviders:[`crustdata`],managedProviders:[`crustdata`],deprecatedProviders:[],defaultInputRequirement:qy(null),defaultPayload:{pipe_id:Gy,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}}}}},Qy=`person:profileurl:email:waterfall@1`,$y=g(`email`),eb=g(`work_email`),tb=g(`profile_url`),nb=[`leadmagic`],rb=[{provider:`leadmagic`}],ib=r.object({pipe_id:r.literal(Qy),run_if:x(),connector:C(),config:r.object({providers:E({sectionKey:`general`,defaultProviders:rb,availableProviders:nb}),input_fields:R(r.object({[$y.name]:T({fieldName:$y.name}),[eb.name]:T({fieldName:eb.name})})),output_fields:L(r.object({[tb.name]:O({fieldName:tb.name})}))}).optional()}),ab=e=>V(G($y,e),G(eb,e)),ob={"person-profileurl-email-waterfall-v1-leadmagic":{provider:`leadmagic`,allowManagedConnection:!0,credits:{default:3.5},mode:`onSuccess`}},sb=class extends H{pipeId=Qy;payload;payloadSchema=ib;billableOperations=ob;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 ab(this.payload.config)}getRawOutputFields(){return{[tb.name]:this.catalogOutput(tb,{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}))}},cb=ib,lb={pipeId:Qy,basePipe:U(Qy),managedProviders:nb,deprecatedProviders:[],allowedUserConnectionProviders:nb,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(Qy),billableOperations:ob,inputFieldMode:`static`,outputFieldMode:`static`,defaultInputRequirement:ab(null),defaultPayload:{pipe_id:Qy,run_if:null,connector:null,config:{providers:rb,input_fields:{email:{alias:``},work_email:{alias:``}},output_fields:{profile_url:{alias:``,enabled:!0}}}}},ub=`person:profileurl:name@1`,db=g(`name`),fb=g(`company_name`),pb=g(`location_hint`),mb=g(`profile_url`),hb=r.object({pipe_id:r.literal(ub),connector:w(),run_if:x(),config:r.object({input_fields:R(r.object({[db.name]:T({fieldName:db.name}),[fb.name]:T({fieldName:fb.name}),[pb.name]:T({fieldName:pb.name})})),output_fields:L(r.object({[mb.name]:O({fieldName:mb.name})}))}).optional()}),gb=e=>Ka(B(G(db,e)),B(G(fb,e)),qa(G(pb,e))),_b={"person-profileurl-name-v1-pipe0":{provider:`pipe0`,allowManagedConnection:!0,credits:{default:.6},mode:`always`}},vb=class extends H{pipeId=ub;payload;payloadSchema=hb;billableOperations=_b;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[`person-profileurl-name-v1-pipe0`]}getInputRequirement(){return gb(this.payload.config)}getRawOutputFields(){return{[mb.name]:this.catalogOutput(mb)}}getConnectionsRequirements(){return[{provider:`serper`,rateLimitRatio:1,rateLimitOperation:`serper_search`,allowManagedConnection:!0}]}},yb=hb,bb={pipeId:ub,basePipe:U(ub),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(ub),tags:[z.LINKEDIN],billableOperations:_b,defaultInputRequirement:gb(null),inputFieldMode:`static`,outputFieldMode:`static`,defaultPayload:{pipe_id:ub,connector:void 0,run_if:null,config:{input_fields:{company_name:{alias:``},location_hint:{alias:``},name:{alias:``}},output_fields:{profile_url:{alias:``,enabled:!0}}}}},xb=`person:workemail:profileurl:waterfall@1`,Sb=g(`profile_url`),Cb=g(`work_email`),wb=g(`email_validation_status`),Tb=[`hunter`,`amplemarket`,`findymail`,`leadmagic`,`crustdata`],Eb=[{provider:`hunter`},{provider:`amplemarket`},{provider:`leadmagic`},{provider:`findymail`},{provider:`crustdata`}],Db=r.object({pipe_id:r.literal(xb),connector:C(),run_if:x(),config:r.object({providers:E({availableProviders:Tb,defaultProviders:Eb,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({[Sb.name]:T({fieldName:Sb.name})})),output_fields:L(r.object({[Cb.name]:O({fieldName:Cb.name}),[wb.name]:O({fieldName:wb.name})}))}).optional()}),Ob=e=>B(G(Sb,e)),kb={"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`}},Ab=class extends H{pipeId=xb;payload;payloadSchema=Db;billableOperations=kb;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 Ob(this.payload.config)}getRawOutputFields(){return{[Cb.name]:this.catalogOutput(Cb,{isPrimaryOutput:!0}),[wb.name]:this.catalogOutput(wb,{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}))}},jb=Db,Mb={pipeId:xb,basePipe:U(xb),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(xb),managedProviders:Tb,allowedUserConnectionProviders:Tb,deprecatedProviders:[],inputFieldMode:`static`,outputFieldMode:`static`,billableOperations:kb,defaultInputRequirement:Ob(null),defaultPayload:{pipe_id:xb,connector:null,run_if:null,config:{providers:Eb,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}}}}},Nb=`person:workemail:waterfall@1`,Pb=g(`name`),Fb=g(`company_domain`),Ib=g(`company_name`),Lb=g(`work_email`),Rb=g(`email_validation_status`),zb=[`leadmagic`,`prospeo`,`amplemarket`,`hunter`,`icypeas`,`findymail`],Bb=[{provider:`leadmagic`},{provider:`prospeo`},{provider:`amplemarket`},{provider:`hunter`},{provider:`icypeas`},{provider:`findymail`}],Vb={"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`}},Hb=r.object({pipe_id:r.literal(Nb),connector:C(),run_if:x(),config:r.object({providers:E({availableProviders:zb,defaultProviders:Bb,sectionKey:`general`,providerCredits:ro(Vb,zb)}),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({[Pb.name]:T({fieldName:Pb.name}),[Fb.name]:T({fieldName:Fb.name}),[Ib.name]:T({fieldName:Ib.name})})),output_fields:L(r.object({[Lb.name]:O({fieldName:Lb.name}),[Rb.name]:O({fieldName:Rb.name})}))}).optional()}),Ub=e=>Ka(B(G(Pb,e)),V(G(Fb,e),G(Ib,e))),Wb=class extends H{pipeId=Nb;payload;payloadSchema=Hb;billableOperations=Vb;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 Ub(this.payload.config)}getRawOutputFields(){return{[Lb.name]:this.catalogOutput(Lb,{isPrimaryOutput:!0}),[Rb.name]:this.catalogOutput(Rb,{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}))}},Gb=Hb,Kb={pipeId:Nb,basePipe:U(Nb),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(Nb),managedProviders:zb,deprecatedProviders:[],allowedUserConnectionProviders:zb,inputFieldMode:`static`,outputFieldMode:`static`,billableOperations:Vb,defaultInputRequirement:Ub(null),defaultPayload:{pipe_id:Nb,connector:null,run_if:null,config:{providers:Bb,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}}}}},qb=`prompt:run@1`,Jb=`prompt-run-v1`,Yb=_i(Jb),Xb=r.object({pipe_id:r.literal(qb),connector:C(),run_if:x(),config:r.object({prompt:ia({sectionKey:`general`,path:`config.prompt`,placeholder:J(`prompt`),groupPath:`config.prompt`,supportedTags:[`input`,`output`]}),model:Ta({sectionKey:`general`,label:`Model`,path:`config.model`,groupPath:`config.prompt`,billableOperations:Yb})})}),Zb=class extends H{pipeId=qb;payload;payloadSchema=Xb;billableOperations=Yb;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return yi(this.payload.config.model)}estimateBillableOperations(){return[vi(this.payload.config.model,Jb)]}getInputRequirement(){return vh([this.payload.config.prompt.template])}getSecretRequirements(){return yh([this.payload.config.prompt.template])}getConstantRequirements(){return bh([this.payload.config.prompt.template])}getRawOutputFields(){let e=this.payload.config.prompt.template,t=this.payload.config.prompt.json_schemas??{},n={},r;try{r=qr(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 bi(this.payload.config.model)}},Qb=Xb,$b={pipeId:qb,inputFieldMode:`config`,outputFieldMode:`config`,basePipe:U(qb),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(qb),defaultInputRequirement:null,billableOperations:Yb,allowedUserConnectionProviders:xi(),managedProviders:xi(),deprecatedProviders:[],defaultPayload:{pipe_id:qb,connector:null,run_if:null,config:{model:`openai-gpt-latest`,prompt:{template:``,json_schemas:{}}}}},ex=`sheet:row:append@1`,tx=g(`sheet_record_id`),nx=g(`created_sheet`),rx=[{label:`Demo leads`,value:`demo-leads`},{label:`Demo companies`,value:`demo-companies`},{label:`Demo contacts`,value:`demo-contacts`}],ix=[{label:`Demo team`,value:`sandbox-team-1`},{label:`Demo workspace`,value:`sandbox-team-2`}],ax={requires:{connection:`pipe0`},enabledIf:Tn(`pipe0`,`Select a pipe0 connection to see sheet suggestions`),options:async({query:e,client:t,environment:n})=>n===`sandbox`?rx: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`}}},ox={requires:{connection:`pipe0`},enabledIf:Tn(`pipe0`,`Select a pipe0 connection to see team suggestions`),options:async({query:e,client:t,environment:n})=>n===`sandbox`?ix:t?(await t.teams.list({query:e})).map(e=>({label:e.name,value:e.id})):[],widgets:{provider_logo:{provider:`pipe0`}}},sx=r.object({pipe_id:r.literal(ex),connector:sa(),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:ax}),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:Aa({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:ox,enabledIf:e=>e.config?.allow_sheet_creation?{disabled:!1}:{disabled:!0,message:`Turn on βUpsert sheetsβ to specify a team.`}}),included_fields:fa({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({[tx.name]:O({fieldName:tx.name}),[nx.name]:O({fieldName:nx.name})}))})}),cx={"sheet-row-append-v1-pipe0":{provider:`pipe0`,allowManagedConnection:!1,credits:null,mode:null}},lx=class extends H{pipeId=ex;payload;payloadSchema=sx;billableOperations=cx;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[`sheet-row-append-v1-pipe0`]}getInputRequirement(){let e=[vh([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=_h(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 Ka(...e)}getSecretRequirements(){return yh([this.payload.config.sheet])}getConstantRequirements(){return bh([this.payload.config.sheet])}getRawOutputFields(){return{[tx.name]:this.catalogOutput(tx),[nx.name]:this.catalogOutput(nx)}}getConnectionsRequirements(){return[{provider:`pipe0`,rateLimitRatio:1,rateLimitOperation:`pipe0-sheet-operation`,allowManagedConnection:!0}]}},ux=sx,dx={pipeId:ex,basePipe:U(ex),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(ex),tags:[z.FIELDS],billableOperations:cx,defaultInputRequirement:null,inputFieldMode:`config`,outputFieldMode:`static`,defaultPayload:{pipe_id:ex,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}}}}},fx=`sheet:row:expandappend@1`,px=g(`sheet_record_ids`),mx=g(`input_objects`),hx=r.object({pipe_id:r.literal(fx),connector:sa(),run_if:x(),config:r.object({sheet:Sa({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({[mx.name]:T({fieldName:mx.name})})),output_fields:L(r.object({[px.name]:O({fieldName:px.name})}))})}),gx={"sheet-row-expandappend-v1-pipe0":{provider:`pipe0`,allowManagedConnection:!1,credits:null,mode:null}},_x=e=>B(G(mx,e)),vx=class extends H{pipeId=fx;payload;payloadSchema=hx;billableOperations=gx;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[`sheet-row-expandappend-v1-pipe0`]}getInputRequirement(){return _x(this.payload.config)}getRawOutputFields(){return{[px.name]:this.catalogOutput(px)}}getConnectionsRequirements(){return[{provider:`pipe0`,rateLimitRatio:1,rateLimitOperation:`pipe0-sheet-operation`,allowManagedConnection:!0}]}},yx=hx,bx={pipeId:fx,basePipe:U(fx),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(fx),tags:[z.FIELDS],billableOperations:gx,defaultInputRequirement:_x(null),inputFieldMode:`static`,outputFieldMode:`static`,defaultPayload:{pipe_id:fx,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}}}}},xx=`template:fill@1`,Sx=g(`template_output`),Cx=r.object({pipe_id:r.literal(xx),connector:C(),run_if:x(),config:r.object({template:aa({sectionKey:`general`,path:`config.template`,label:`Template`,placeholder:J(`template`),groupPath:`config.general`,required:!0}),output_fields:L(r.object({[Sx.name]:O({fieldName:Sx.name})}))})}),wx={"template-fill-v1-pipe0":{credits:{default:0},allowManagedConnection:!0,provider:`pipe0`,mode:`always`}},Tx=class extends H{pipeId=xx;payload;payloadSchema=Cx;billableOperations=wx;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`pipe0`]}estimateBillableOperations(){return[`template-fill-v1-pipe0`]}getInputRequirement(){return vh([this.payload.config.template])}getSecretRequirements(){return yh([this.payload.config.template])}getConstantRequirements(){return bh([this.payload.config.template])}getRawOutputFields(){return{[Sx.name]:this.catalogOutput(Sx)}}getConnectionsRequirements(){return[]}},Ex=Cx,Dx={pipeId:xx,inputFieldMode:`config`,outputFieldMode:`config`,basePipe:U(xx),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(xx),defaultInputRequirement:null,billableOperations:wx,allowedUserConnectionProviders:[],managedProviders:[`pipe0`],deprecatedProviders:[],defaultPayload:{pipe_id:xx,connector:null,run_if:null,config:{template:``,output_fields:{template_output:{alias:``,enabled:!0}}}}},Ox=`website:extract:firecrawl@1`,kx=g(`website_url`),Ax=g(`firecrawl_extract_result`),jx=r.object({pipe_id:r.literal(Ox),connector:C(),run_if:x(),config:r.object({json_schema:ka({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:Ca({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({[kx.name]:T({fieldName:kx.name})})),output_fields:L(r.object({[Ax.name]:O({fieldName:Ax.name})}))})}),Mx=e=>B(G(kx,e)),Nx={"website-extract-firecrawl-v1-firecrawl":{allowManagedConnection:!0,provider:`firecrawl`,credits:{default:2,level1:{credits:1,weight:1}},mode:`onSuccess`}},Px=class extends H{pipeId=Ox;payload;payloadSchema=jx;billableOperations=Nx;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`firecrawl`]}estimateBillableOperations(){return[`website-extract-firecrawl-v1-firecrawl`]}getInputRequirement(){return Mx(this.payload.config)}getRawOutputFields(){return{[Ax.name]:this.catalogOutput(Ax)}}getConnectionsRequirements(){return[{provider:`firecrawl`,rateLimitRatio:1,rateLimitOperation:`firecrawl_generic`,allowManagedConnection:!0}]}},Fx=jx,Ix={pipeId:Ox,basePipe:U(Ox),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(Ox),billableOperations:Nx,inputFieldMode:`static`,outputFieldMode:`static`,allowedUserConnectionProviders:[`firecrawl`],managedProviders:[`firecrawl`],deprecatedProviders:[],defaultInputRequirement:Mx(null),defaultPayload:{pipe_id:Ox,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}}}}},Lx=`website:extract:parallel@1`,Rx=g(`website_url`),zx=g(`parallel_extract_result`),Bx=r.object({pipe_id:r.literal(Lx),connector:C(),run_if:x(),config:r.object({objective:Ca({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({[Rx.name]:T({fieldName:Rx.name})})),output_fields:L(r.object({[zx.name]:O({fieldName:zx.name})}))})}),Vx=e=>B(G(Rx,e)),Hx={"website-extract-parallel-v1-parallel":{allowManagedConnection:!0,provider:`parallel`,credits:{default:.1},mode:`onSuccess`}},Ux=class extends H{pipeId=Lx;payload;payloadSchema=Bx;billableOperations=Hx;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`parallel`]}estimateBillableOperations(){return[`website-extract-parallel-v1-parallel`]}getInputRequirement(){return Vx(this.payload.config)}getRawOutputFields(){return{[zx.name]:this.catalogOutput(zx,{isPrimaryOutput:!0})}}getConnectionsRequirements(){return[{provider:`parallel`,rateLimitRatio:1,rateLimitOperation:`parallel_extract`,allowManagedConnection:!0}]}},Wx=Bx,Gx={pipeId:Lx,basePipe:U(Lx),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(Lx),billableOperations:Hx,inputFieldMode:`static`,outputFieldMode:`static`,allowedUserConnectionProviders:[`parallel`],managedProviders:[`parallel`],deprecatedProviders:[],defaultInputRequirement:Vx(null),defaultPayload:{pipe_id:Lx,run_if:null,connector:null,config:{objective:``,input_fields:{website_url:{alias:``}},output_fields:{parallel_extract_result:{alias:``,enabled:!0}}}}},Kx=`website:maplinks:firecrawl@1`,qx={"website-maplinks-firecrawl-v1-firecrawl":{allowManagedConnection:!0,provider:`firecrawl`,credits:{default:1},mode:`onSuccess`}},Jx=g(`website_url`),Yx=g(`mapped_links`),Xx=r.object({pipe_id:r.literal(Kx),connector:C(),run_if:x(),config:r.object({page_limit:Da({label:`Page limit`,info:`Number of pages searched`,groupPath:`config.general`,max:50,min:1,required:!1,path:`config.page_limit`,sectionKey:`general`}),sitemap:wa({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:Sa({sectionKey:`general`,label:`Search`,inputType:`text`,info:`Return matching urls`,groupPath:`config.general`,path:`config.search`}).default(``),input_fields:R(r.object({[Jx.name]:T({fieldName:Jx.name})})),output_fields:L(r.object({[Yx.name]:O({fieldName:Yx.name})}))}).optional()}),Zx=e=>B(G(Jx,e)),Qx=class extends H{pipeId=Kx;payload;payloadSchema=Xx;billableOperations=qx;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`firecrawl`]}estimateBillableOperations(){return[`website-maplinks-firecrawl-v1-firecrawl`]}getInputRequirement(){return Zx(this.payload.config)}getRawOutputFields(){return{[Yx.name]:this.catalogOutput(Yx)}}getConnectionsRequirements(){return[{provider:`firecrawl`,rateLimitRatio:1,rateLimitOperation:`firecrawl_map_requests`,allowManagedConnection:!0}]}},$x=Xx,eS={pipeId:Kx,basePipe:U(Kx),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(Kx),billableOperations:qx,inputFieldMode:`static`,outputFieldMode:`static`,allowedUserConnectionProviders:[`firecrawl`],managedProviders:[`firecrawl`],deprecatedProviders:[],defaultInputRequirement:Zx(null),defaultPayload:{pipe_id:Kx,run_if:null,connector:null,config:{page_limit:25,sitemap:`include`,search:``,input_fields:{website_url:{alias:``}},output_fields:{mapped_links:{alias:``,enabled:!0}}}}},tS=`website:scrape:firecrawl@1`,nS=g(`website_url`),rS=g(`website_markdown`),iS=g(`website_html`),aS=g(`website_links`),oS=r.object({pipe_id:r.literal(tS),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({[nS.name]:T({fieldName:nS.name})})),output_fields:L(r.object({[rS.name]:O({fieldName:rS.name}),[iS.name]:O({fieldName:iS.name}),[aS.name]:O({fieldName:aS.name})}))}).optional()}),sS=e=>B(G(nS,e)),cS={"website-scrape-firecrawl-v1-firecrawl":{allowManagedConnection:!0,provider:`firecrawl`,credits:{default:.1,level1:{credits:.05,weight:1}},mode:`onSuccess`}},lS=class extends H{pipeId=tS;payload;payloadSchema=oS;billableOperations=cS;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`firecrawl`]}estimateBillableOperations(){return[`website-scrape-firecrawl-v1-firecrawl`]}getInputRequirement(){return sS(this.payload.config)}getRawOutputFields(){return{[rS.name]:this.catalogOutput(rS),[iS.name]:this.catalogOutput(iS),[aS.name]:this.catalogOutput(aS)}}getConnectionsRequirements(){return[{provider:`firecrawl`,rateLimitRatio:1,rateLimitOperation:`firecrawl_generic`,allowManagedConnection:!0}]}},uS=oS,dS={pipeId:tS,basePipe:U(tS),label:`Scrape`,executionMode:`single`,categories:[`tools`],lifecycle:null,description:`Turn any URL into clean data.`,tags:[z.SCRAPE],docPath:W(tS),billableOperations:cS,inputFieldMode:`static`,outputFieldMode:`static`,allowedUserConnectionProviders:[`firecrawl`],managedProviders:[`firecrawl`],deprecatedProviders:[],defaultInputRequirement:sS(null),defaultPayload:{pipe_id:tS,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}}}}},fS=`website:scrapelist:firecrawl@1`,pS={"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.`}},mS=g(`urls`),hS=g(`scrape_list_response`),gS=r.object({pipe_id:r.literal(fS),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:Ea({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({[mS.name]:T({fieldName:mS.name})})),output_fields:L(r.object({[hS.name]:O({fieldName:hS.name})}))}).optional()}),_S=e=>B(G(mS,e)),vS=class extends H{pipeId=fS;payload;payloadSchema=gS;billableOperations=pS;constructor(e){super(),this.payload=this.validatePayload(e)}getProviderNames(){return[`firecrawl`]}estimateBillableOperations(){return[,,,,,].fill(`list-url-scrape-firecrawl`)}getInputRequirement(){return _S(this.payload.config)}getRawOutputFields(){return{[hS.name]:this.catalogOutput(hS)}}getConnectionsRequirements(){return[{provider:`firecrawl`,rateLimitRatio:1,rateLimitOperation:`firecrawl_generic`,allowManagedConnection:!0}]}},yS=gS,bS={pipeId:fS,basePipe:U(fS),label:`Scrape list`,executionMode:`single`,categories:[`tools`],lifecycle:null,description:`Turn a list of URLs into clean scraped data.`,tags:[z.SCRAPE],docPath:W(fS),billableOperations:pS,inputFieldMode:`static`,outputFieldMode:`static`,allowedUserConnectionProviders:[`firecrawl`],managedProviders:[`firecrawl`],deprecatedProviders:[],defaultInputRequirement:_S(null),defaultPayload:{pipe_id:fS,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}}}}},xS=[`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`,`query:postgres@1`,`query:databricks@1`],SS=r.enum(xS);function CS(e,t){let n={name:e,config:t};return eo.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 CS(this.searchId,this.payload)}};function Q(e){return e.split(`@`)[0]}function $(e){return`/docs/search-catalog/${Q(e)}/${e.split(`@`)[1]}`}const wS=`companies:entitysearch:parallel@1`,TS=g(`company_name`),ES=g(`company_domain`),DS=g(`company_description`),OS=g(`company_profile_url`),kS=g(`parallel_company_entity_match`),AS=r.object({search_id:r.literal(wS),connector:ua(),config:r.object({objective:za({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({[TS.name]:M({fieldName:TS.name}),[ES.name]:M({fieldName:ES.name}),[DS.name]:M({fieldName:DS.name}),[OS.name]:M({fieldName:OS.name}),[kS.name]:M({fieldName:kS.name})}))})}),jS={default:{input:[{fields:[]}]}},MS=class extends Z{searchId=wS;schema=AS;payload;constructor(e){super(),this.payload=this.validatePayload(e)}getRawOutputFields(){return{[TS.name]:this.catalogOutput(TS),[ES.name]:this.catalogOutput(ES),[DS.name]:this.catalogOutput(DS),[OS.name]:this.catalogOutput(OS),[kS.name]:this.catalogOutput(kS)}}getConnectionsRequirements(){return[{provider:`parallel`,rateLimitOperation:`parallel_entity_search`,rateLimitRatio:1,allowManagedConnection:!0}]}getDedupConfig(){return jS}},NS=AS,PS={searchId:wS,billableOperation:`companies-entitysearch-parallel-v1`,baseSearch:Q(wS),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:$(wS),cost:{allowManagedConnection:!0,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:wS,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 FS(e,t=32){return`https://www.google.com/s2/favicons?sz=${t}&domain=${e.replace(/^(https?:\/\/)?(www\.)?/,``)}`}function IS(e,t){return e==null?void 0:t(e)}function LS(){return RS({companyWebsiteUrl:`linkedin.com`,entity:`LinkedIn`})}function RS({companyWebsiteUrl:e,entity:t}){if(e)return{image_url:FS(e),entity:t||e}}function zS(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 BS(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 VS=`companies:profiles:amplemarket@2`,HS=g(`company_name`),US=g(`company_domain`),WS=g(`company_description`),GS=g(`company_profile_url`),KS=g(`amplemarket_company_match`),qS=r.object({search_id:r.literal(VS),connector:ua(),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({[HS.name]:M({fieldName:HS.name}),[US.name]:M({fieldName:US.name}),[WS.name]:M({fieldName:WS.name}),[GS.name]:M({fieldName:GS.name}),[KS.name]:M({fieldName:KS.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:FS(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:Ma({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:Ma({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=>{BS(e.value)&&e.issues.push({code:`custom`,message:`You must set at least one filter.`,input:e.value})})})}),JS={default:{input:[{fields:[]}]}},YS=class extends Z{searchId=VS;schema=qS;payload;constructor(e){super(),this.payload=this.validatePayload(e)}getRawOutputFields(){return{[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:`amplemarket`,rateLimitOperation:`amplemarket_company_search`,rateLimitRatio:1,allowManagedConnection:!0}]}getDedupConfig(){return JS}},XS=qS,ZS={searchId:VS,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:$(VS),cost:{allowManagedConnection:!0,mode:`per_page`,credits:{default:2}},provider:`amplemarket`,defaultPayload:{search_id:VS,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:[]}}}}},QS=`companies:profiles:crustdata@2`,$S=g(`company_name`),eC=g(`company_domain`),tC=g(`company_description`),nC=g(`company_profile_url`),rC=g(`crustdata_company_match`),iC=r.object({search_id:r.literal(QS),connector:ua(),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:Ra({path:`config.cursor`,groupPath:`config.pagination`,inputType:`text`,label:`Cursor`,sectionKey:`pagination`,description:`Pagination cursor`}),output_fields:L(r.object({[$S.name]:M({fieldName:$S.name}),[eC.name]:M({fieldName:eC.name}),[tC.name]:M({fieldName:tC.name}),[nC.name]:M({fieldName:nC.name}),[rC.name]:M({fieldName:rC.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:Pa({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:Pa({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:FS(e.value)}})})})}).check(e=>{BS(e.value)&&e.issues.push({code:`custom`,message:`You must set at least one filter.`,input:e.value})})})}),aC={default:{input:[{fields:[]}]}},oC=class extends Z{searchId=QS;schema=iC;payload;constructor(e){super(),this.payload=this.validatePayload(e)}getRawOutputFields(){return{[$S.name]:this.catalogOutput($S),[eC.name]:this.catalogOutput(eC),[tC.name]:this.catalogOutput(tC),[nC.name]:this.catalogOutput(nC),[rC.name]:this.catalogOutput(rC)}}getConnectionsRequirements(){return[{provider:`crustdata`,rateLimitOperation:`crustdata_company_db_search`,rateLimitRatio:1,allowManagedConnection:!0}]}getDedupConfig(){return aC}},sC=iC,cC={searchId:QS,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:$(QS),cost:{allowManagedConnection:!0,mode:`per_page`,credits:{default:2}},provider:`crustdata`,defaultPayload:{search_id:QS,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:[]}}}}},lC=`query:databricks@1`,uC=r.object({search_id:r.literal(lC),connector:la(),config:r.object({query:za({path:`config.query`,groupPath:`config.general`,sectionKey:`general`,label:`SQL query`,description:`A single read-only SELECT statement. It is wrapped automatically for pagination, so do not add your own LIMIT/OFFSET for paging.`,rows:8,minLength:1,maxLength:2e4}),limit:I({path:`config.limit`,min:1,max:1e3,groupPath:`config.pagination`,required:!0,sectionKey:`pagination`,label:`Limit`,description:`Max number of rows per page`}).default(100),page_number:I({path:`config.page_number`,min:1,groupPath:`config.pagination`,required:!1,sectionKey:`pagination`,label:`Page`,description:`1-based page index (offset pagination)`}).default(1)})}),dC={default:{input:[]}},fC=class extends Z{searchId=lC;schema=uC;payload;constructor(e){super(),this.payload=this.validatePayload(e)}getRawOutputFields(){return{}}getConnectionsRequirements(){return[{provider:`databricks`,rateLimitOperation:`databricks_query`,rateLimitRatio:1,allowManagedConnection:!1}]}getDedupConfig(){return dC}},pC=uC,mC={searchId:lC,billableOperation:`data-query-databricks-v1`,baseSearch:Q(lC),outputFieldMode:`dynamic`,paginationType:`page_number`,label:`Query Databricks`,categories:[`data`],hasManagedConnection:!1,allowsUserConnection:!0,lifecycle:null,description:`Run a read-only SQL query against your Databricks SQL warehouse and return the rows.`,tags:[z.FIELDS,z.NEW],docPath:$(lC),cost:{allowManagedConnection:!1,mode:null,credits:null,info:`Querying your own Databricks SQL warehouse is free.`},provider:`databricks`,defaultPayload:{search_id:lC,connector:{strategy:`first`,connections:[]},config:{query:``,limit:100,page_number:1}}},hC=`query:postgres@1`,gC=r.object({search_id:r.literal(hC),connector:la(),config:r.object({query:za({path:`config.query`,groupPath:`config.general`,sectionKey:`general`,label:`SQL query`,description:`A single read-only SELECT statement. It is wrapped automatically for pagination, so do not add your own LIMIT/OFFSET for paging.`,rows:8,minLength:1,maxLength:2e4}),limit:I({path:`config.limit`,min:1,max:1e3,groupPath:`config.pagination`,required:!0,sectionKey:`pagination`,label:`Limit`,description:`Max number of rows per page`}).default(100),page_number:I({path:`config.page_number`,min:1,groupPath:`config.pagination`,required:!1,sectionKey:`pagination`,label:`Page`,description:`1-based page index (offset pagination)`}).default(1)})}),_C={default:{input:[]}},vC=class extends Z{searchId=hC;schema=gC;payload;constructor(e){super(),this.payload=this.validatePayload(e)}getRawOutputFields(){return{}}getConnectionsRequirements(){return[{provider:`postgres`,rateLimitOperation:`postgres_query`,rateLimitRatio:1,allowManagedConnection:!1}]}getDedupConfig(){return _C}},yC=gC,bC={searchId:hC,billableOperation:`data-query-postgres-v1`,baseSearch:Q(hC),outputFieldMode:`dynamic`,paginationType:`page_number`,label:`Query Postgres`,categories:[`data`],hasManagedConnection:!1,allowsUserConnection:!0,lifecycle:null,description:`Run a read-only SQL query against your own PostgreSQL database and return the rows.`,tags:[z.FIELDS,z.NEW],docPath:$(hC),cost:{allowManagedConnection:!1,mode:null,credits:null,info:`Querying your own PostgreSQL database is free.`},provider:`postgres`,defaultPayload:{search_id:hC,connector:{strategy:`first`,connections:[]},config:{query:``,limit:100,page_number:1}}},xC=`companies:profiles:amplemarket@1`,SC=g(`company_name`),CC=g(`company_website_url`),wC=g(`company_description`),TC=g(`company_profile_url`),EC=g(`amplemarket_company_match`),DC=r.object({search_id:r.literal(xC),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}),[wC.name]:M({fieldName:wC.name}),[TC.name]:M({fieldName:TC.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`)}),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:Ma({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:Ma({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=>{BS(e.value)&&e.issues.push({code:`custom`,message:`You must set at least one filter.`,input:e.value})})})}),OC={default:{input:[{fields:[]}]}},kC=class extends Z{searchId=xC;schema=DC;payload;constructor(e){super(),this.payload=this.validatePayload(e)}getRawOutputFields(){return{[SC.name]:this.catalogOutput(SC),[CC.name]:this.catalogOutput(CC),[wC.name]:this.catalogOutput(wC),[TC.name]:this.catalogOutput(TC),[EC.name]:this.catalogOutput(EC)}}getConnectionsRequirements(){return[{provider:`amplemarket`,rateLimitOperation:`amplemarket_company_search`,rateLimitRatio:1,allowManagedConnection:!0}]}getDedupConfig(){return OC}},AC=DC,jC={searchId:xC,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:$(xC),cost:{allowManagedConnection:!0,mode:`per_page`,credits:{default:2}},provider:`amplemarket`,defaultPayload:{search_id:xC,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:[]}}}}},MC=`companies:profiles:crustdata@1`,NC=g(`company_name`),PC=g(`company_website_url`),FC=g(`company_description`),IC=g(`company_profile_url`),LC=g(`crustdata_company_match`),RC=r.object({search_id:r.literal(MC),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:Ra({path:`config.cursor`,groupPath:`config.pagination`,inputType:`text`,label:`Cursor`,sectionKey:`pagination`,description:`Pagination cursor`}),output_fields:L(r.object({[NC.name]:M({fieldName:NC.name}),[PC.name]:M({fieldName:NC.name}),[FC.name]:M({fieldName:FC.name}),[IC.name]:M({fieldName:IC.name}),[LC.name]:M({fieldName:LC.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:Pa({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:Pa({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=>{BS(e.value)&&e.issues.push({code:`custom`,message:`You must set at least one filter.`,input:e.value})})})}),zC={default:{input:[{fields:[]}]}},BC=class extends Z{searchId=MC;schema=RC;payload;constructor(e){super(),this.payload=this.validatePayload(e)}getRawOutputFields(){return{[NC.name]:this.catalogOutput(NC),[PC.name]:this.catalogOutput(PC),[FC.name]:this.catalogOutput(FC),[IC.name]:this.catalogOutput(IC),[LC.name]:this.catalogOutput(LC)}}getConnectionsRequirements(){return[{provider:`crustdata`,rateLimitOperation:`crustdata_company_db_search`,rateLimitRatio:1,allowManagedConnection:!0}]}getDedupConfig(){return zC}},VC=RC,HC={searchId:MC,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:$(MC),cost:{allowManagedConnection:!0,mode:`per_page`,credits:{default:2}},provider:`crustdata`,defaultPayload:{search_id:MC,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:[]}}}}},UC=`people:profiles:amplemarket@1`,WC=g(`name`),GC=g(`company_website_url`),KC=g(`profile_url`),qC=g(`job_title`),JC=g(`amplemarket_person_match`),YC=r.object({search_id:r.literal(UC),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({[WC.name]:M({fieldName:WC.name}),[GC.name]:M({fieldName:GC.name}),[KC.name]:M({fieldName:KC.name}),[qC.name]:M({fieldName:qC.name}),[JC.name]:M({fieldName:JC.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:Ma({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=>{BS(e.value)&&e.issues.push({code:`custom`,message:`You must set at least one filter.`,input:e.value})})})}),XC={default:{input:[{fields:[]}]}},ZC=class extends Z{searchId=UC;schema=YC;payload;constructor(e){super(),this.payload=this.validatePayload(e)}getRawOutputFields(){return{[WC.name]:this.catalogOutput(WC),[GC.name]:this.catalogOutput(GC),[KC.name]:this.catalogOutput(KC),[qC.name]:this.catalogOutput(qC),[JC.name]:this.catalogOutput(JC)}}getConnectionsRequirements(){return[{provider:`amplemarket`,rateLimitOperation:`amplemarket_people_search`,rateLimitRatio:1,allowManagedConnection:!0}]}getDedupConfig(){return XC}},QC=YC,$C={searchId:UC,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:$(UC),cost:{allowManagedConnection:!0,mode:`per_page`,credits:{default:3},info:`1 page = 100 records; 200 results = 2 pages`},provider:`amplemarket`,defaultPayload:{search_id:UC,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:[]}}}},ew=`people:profiles:crustdata@1`,tw=g(`name`),nw=g(`company_website_url`),rw=g(`profile_url`),iw=g(`job_title`),aw=g(`crustdata_person_match`),ow=r.object({search_id:r.literal(ew),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:Ra({path:`config.cursor`,groupPath:`config.pagination`,inputType:`text`,label:`Cursor`,sectionKey:`pagination`,description:`Pagination cursor`}),output_fields:L(r.object({[tw.name]:M({fieldName:tw.name}),[nw.name]:M({fieldName:nw.name}),[rw.name]:M({fieldName:rw.name}),[iw.name]:M({fieldName:iw.name}),[aw.name]:M({fieldName:aw.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:La({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=>{BS(e.value)&&e.issues.push({code:`custom`,message:`You must set at least one filter.`,input:e.value})})})}),sw={default:{input:[{fields:[]}]}},cw=class extends Z{searchId=ew;schema=ow;payload;constructor(e){super(),this.payload=this.validatePayload(e)}getRawOutputFields(){return{[tw.name]:this.catalogOutput(tw),[nw.name]:this.catalogOutput(nw),[rw.name]:this.catalogOutput(rw),[iw.name]:this.catalogOutput(iw),[aw.name]:this.catalogOutput(aw)}}getConnectionsRequirements(){return[{provider:`crustdata`,rateLimitOperation:`crustdata_people_db_search`,rateLimitRatio:1,allowManagedConnection:!0}]}getDedupConfig(){return sw}},lw=ow,uw={searchId:ew,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:$(ew),cost:{allowManagedConnection:!0,mode:`per_page`,credits:{default:5},info:`1 page = 100 records; 200 results = 2 pages`},provider:`crustdata`,defaultPayload:{search_id:ew,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:[]}}}}},dw=`people:entitysearch:parallel@1`,fw=g(`name`),pw=g(`job_title`),mw=g(`profile_url`),hw=g(`parallel_person_entity_match`),gw=r.object({search_id:r.literal(dw),connector:ua(),config:r.object({objective:za({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({[fw.name]:M({fieldName:fw.name}),[pw.name]:M({fieldName:pw.name}),[mw.name]:M({fieldName:mw.name}),[hw.name]:M({fieldName:hw.name})}))})}),_w={default:{input:[{fields:[]}]}},vw=class extends Z{searchId=dw;schema=gw;payload;constructor(e){super(),this.payload=this.validatePayload(e)}getRawOutputFields(){return{[fw.name]:this.catalogOutput(fw),[pw.name]:this.catalogOutput(pw),[mw.name]:this.catalogOutput(mw),[hw.name]:this.catalogOutput(hw)}}getConnectionsRequirements(){return[{provider:`parallel`,rateLimitOperation:`parallel_entity_search`,rateLimitRatio:1,allowManagedConnection:!0}]}getDedupConfig(){return _w}},yw=gw,bw={searchId:dw,billableOperation:`people-entitysearch-parallel-v1`,baseSearch:Q(dw),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:$(dw),cost:{allowManagedConnection:!0,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:dw,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:``}}}}},xw=`people:eventguests:luma@1`,Sw=g(`name`),Cw=g(`email`),ww=g(`luma_id`),Tw=g(`registered_at`),Ew=g(`luma_event_guest_match`),Dw=[{label:`Sample Meetup β Berlin`,value:`evt-sandbox-1`},{label:`Sample Conference β SF`,value:`evt-sandbox-2`}],Ow={requires:{connection:`luma`},options:async({query:e,secret:t,environment:n})=>{if(n===`sandbox`)return Dw;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}},kw=r.object({search_id:r.literal(xw),connector:la(),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:Ra({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}),[ww.name]:M({fieldName:ww.name}),[Tw.name]:M({fieldName:Tw.name}),[Ew.name]:M({fieldName:Ew.name})})),filters:r.object({event_id:Va({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:Tn(`luma`),optionsDef:Ow}),approval_status:Ba({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`}]})})})}),Aw={default:{input:[{fields:[{outputField:`luma_id`}]}]}},jw=class extends Z{searchId=xw;schema=kw;payload;constructor(e){super(),this.payload=this.validatePayload(e)}getRawOutputFields(){return{[Sw.name]:this.catalogOutput(Sw),[Cw.name]:this.catalogOutput(Cw),[ww.name]:this.catalogOutput(ww),[Tw.name]:this.catalogOutput(Tw),[Ew.name]:this.catalogOutput(Ew)}}getConnectionsRequirements(){return[{provider:`luma`,rateLimitOperation:`luma_get_guests`,rateLimitRatio:1,allowManagedConnection:!1}]}getDedupConfig(){return Aw}},Mw=kw,Nw={searchId:xw,billableOperation:`people-eventguests-luma-v1`,baseSearch:Q(xw),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:$(xw),cost:{allowManagedConnection:!0,mode:`per_page`,credits:{default:1},info:`1 page = up to 100 guests.`},provider:`luma`,defaultPayload:{search_id:xw,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:``}}}},Pw=`people:profiles:amplemarket@2`,Fw=g(`name`),Iw=g(`company_domain`),Lw=g(`profile_url`),Rw=g(`job_title`),zw=g(`amplemarket_person_match`),Bw=r.object({search_id:r.literal(Pw),connector:ua(),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({[Fw.name]:M({fieldName:Fw.name}),[Iw.name]:M({fieldName:Iw.name}),[Lw.name]:M({fieldName:Lw.name}),[Rw.name]:M({fieldName:Rw.name}),[zw.name]:M({fieldName:zw.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:FS(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:Ma({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=>{BS(e.value)&&e.issues.push({code:`custom`,message:`You must set at least one filter.`,input:e.value})})})}),Vw={default:{input:[{fields:[]}]}},Hw=class extends Z{searchId=Pw;schema=Bw;payload;constructor(e){super(),this.payload=this.validatePayload(e)}getRawOutputFields(){return{[Fw.name]:this.catalogOutput(Fw),[Iw.name]:this.catalogOutput(Iw),[Lw.name]:this.catalogOutput(Lw),[Rw.name]:this.catalogOutput(Rw),[zw.name]:this.catalogOutput(zw)}}getConnectionsRequirements(){return[{provider:`amplemarket`,rateLimitOperation:`amplemarket_people_search`,rateLimitRatio:1,allowManagedConnection:!0}]}getDedupConfig(){return Vw}},Uw=Bw,Ww={searchId:Pw,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:$(Pw),cost:{allowManagedConnection:!0,mode:`per_page`,credits:{default:3},info:`1 page = 100 records; 200 results = 2 pages`},provider:`amplemarket`,defaultPayload:{search_id:Pw,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:[]}}}},Gw=`people:profiles:crustdata@2`,Kw=g(`name`),qw=g(`company_domain`),Jw=g(`profile_url`),Yw=g(`job_title`),Xw=g(`crustdata_person_match`),Zw=r.object({search_id:r.literal(Gw),connector:ua(),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:Ra({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}),[qw.name]:M({fieldName:qw.name}),[Jw.name]:M({fieldName:Jw.name}),[Yw.name]:M({fieldName:Yw.name}),[Xw.name]:M({fieldName:Xw.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:FS(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:FS(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:La({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=>{BS(e.value)&&e.issues.push({code:`custom`,message:`You must set at least one filter.`,input:e.value})})})}),Qw={default:{input:[{fields:[]}]}},$w=class extends Z{searchId=Gw;schema=Zw;payload;constructor(e){super(),this.payload=this.validatePayload(e)}getRawOutputFields(){return{[Kw.name]:this.catalogOutput(Kw),[qw.name]:this.catalogOutput(qw),[Jw.name]:this.catalogOutput(Jw),[Yw.name]:this.catalogOutput(Yw),[Xw.name]:this.catalogOutput(Xw)}}getConnectionsRequirements(){return[{provider:`crustdata`,rateLimitOperation:`crustdata_people_db_search`,rateLimitRatio:1,allowManagedConnection:!0}]}getDedupConfig(){return Qw}},eT=Zw,tT={searchId:Gw,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:$(Gw),cost:{allowManagedConnection:!0,mode:`per_page`,credits:{default:5},info:`1 page = 100 records; 200 results = 2 pages`},provider:`crustdata`,defaultPayload:{search_id:Gw,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:[]}}}}},nT=`sheet:rows@1`,rT=[{label:`Demo leads`,value:`demo-leads`},{label:`Demo companies`,value:`demo-companies`},{label:`Demo contacts`,value:`demo-contacts`}],iT={requires:{connection:`pipe0`},enabledIf:Tn(`pipe0`,`Select a pipe0 connection to see sheet suggestions`),options:async({query:e,client:t,environment:n})=>n===`sandbox`?rT: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`}}},aT=r.object({search_id:r.literal(nT),connector:la(),config:r.object({sheet:Va({path:`config.sheet`,sectionKey:`general`,groupPath:`config.general`,label:`Sheet`,required:!0,info:`Pick one of your pipe0 sheets; its rows are returned.`,enabledIf:Tn(`pipe0`),optionsDef:iT}),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:Ra({path:`config.cursor`,groupPath:`config.pagination`,inputType:`text`,label:`Cursor`,sectionKey:`pagination`,description:`Pagination cursor`}),include_metadata:Ia({path:`config.include_metadata`,groupPath:`config.general`,sectionKey:`general`,label:`Include metadata`,description:`Widgets and prevenance tags.`,defaultValue:!1})})}),oT={default:{input:[{fields:[{outputField:`id`}]}]}},sT=class extends Z{searchId=nT;schema=aT;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 oT}},cT=aT,lT={searchId:nT,billableOperation:`sheet-items-v1-pipe0`,baseSearch:Q(nT),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:$(nT),cost:{allowManagedConnection:!0,mode:`per_search`,credits:{default:0},info:`Reading your own pipe0 sheet is free.`},provider:`pipe0`,defaultPayload:{search_id:nT,connector:{strategy:`first`,connections:[]},config:{sheet:``,limit:100,cursor:``,include_metadata:!1}}},uT={"people:profiles:crustdata@1":cw,"people:profiles:crustdata@2":$w,"companies:profiles:crustdata@1":BC,"companies:profiles:crustdata@2":oC,"people:profiles:amplemarket@1":ZC,"people:profiles:amplemarket@2":Hw,"companies:profiles:amplemarket@1":kC,"companies:profiles:amplemarket@2":YS,"companies:entitysearch:parallel@1":MS,"people:entitysearch:parallel@1":vw,"people:eventguests:luma@1":jw,"sheet:rows@1":sT,"query:postgres@1":vC,"query:databricks@1":fC},dT={"people:profiles:crustdata@1":lw,"people:profiles:crustdata@2":eT,"companies:profiles:crustdata@1":VC,"companies:profiles:crustdata@2":sC,"people:profiles:amplemarket@1":QC,"people:profiles:amplemarket@2":Uw,"companies:profiles:amplemarket@1":AC,"companies:profiles:amplemarket@2":XS,"companies:entitysearch:parallel@1":NS,"people:entitysearch:parallel@1":yw,"people:eventguests:luma@1":Mw,"sheet:rows@1":cT,"query:postgres@1":yC,"query:databricks@1":pC},fT={"people:profiles:crustdata@1":uw,"people:profiles:crustdata@2":tT,"companies:profiles:crustdata@1":HC,"companies:profiles:crustdata@2":cC,"people:profiles:amplemarket@1":$C,"people:profiles:amplemarket@2":Ww,"companies:profiles:amplemarket@1":jC,"companies:profiles:amplemarket@2":ZS,"companies:entitysearch:parallel@1":PS,"people:entitysearch:parallel@1":bw,"people:eventguests:luma@1":Nw,"sheet:rows@1":lT,"query:postgres@1":bC,"query:databricks@1":mC};function pT(e){return uT[e]}const mT=t.discriminatedUnion(`search_id`,Object.values(dT).map(e=>e)).openapi(`SearchPayloadSchema`);function hT(e,t){return Ua(t,fT[e].defaultPayload)}const gT=t.preprocess(e=>{if(!e||typeof e!=`object`||!(`search_id`in e))return e;let t=hT(e.search_id);return t?{...e,config:Ua(e?.config||{},t.config)}:e},mT),_T=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:gT}).openapi(`SearchRequestSchema`),vT=Qn,yT=t.object({value:zn,status:Rn,type:In.optional(),format:tr.nullable().optional(),resolved_by:sr.nullable().optional(),widgets:Zn.optional()}),bT=t.record(t.string(),yT.nullable());function xT(e){return dT[e]}const ST=t.enum([`cursor`,`page_number`]),CT=t.object({id:t.string(),status:t.enum([`completed`,`failed`,`pending`,`processing`]),search_id:SS,errors:t.array(vT),results:t.array(bT),organization_id:t.string(),next_page:gT.nullable(),pagination_type:ST.nullable(),total_pages:t.int32().nullable(),field_definitions:rr.optional()}).openapi(`SearchResponseSchema`);function wT(e){let t=e.split(`@`)[1];if(!t)throw Error(`No search version found`);return Number(t)}function TT(){let e={};for(let t of Object.values(fT)){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=wT(e.searchId);return wT(t.searchId)-n})}),e}function ET(e){return fT[e]}const DT=TT();function OT(e){let t=[];for(let[n,r]of Object.entries(DT)){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:wT(i.searchId)})}return t}function kT(e){let t=fT[e].defaultPayload.config.output_fields;return t?Object.keys(t):[]}function AT(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 kT(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:DT}}function jT(e){let t=ET(e);return{[t.provider]:t.cost.allowManagedConnection?t.cost.credits.default:0}}const MT={"prompt:run@1":Zb,"company:newssummary:website@1":Wl,"company:newssummary:domain@1":Rs,"company:techstack:builtwith@1":Mu,"company:techstack:builtwith@2":dc,"company:websiteurl:email@1":Vu,"company:domain:workemail@1":vo,"company:funding:leadmagic@1":Lc,"company:funding:leadmagic@2":Mo,"people:workemail:waterfall@1":nh,"person:workemail:waterfall@1":Wb,"people:email:iswork@1":Xu,"email:iswork@1":dh,"people:name:split@1":Ef,"person:name:split@1":oy,"people:validate:email:zerobounce@1":km,"people:email:validate:zerobounce@2":hd,"email:validate:zerobounce@1":Hh,"people:mobilenumber:workemail:waterfall@1":gf,"person:name:join@1":Xv,"company:overview@1":au,"company:overview@2":xu,"company:overview@3":ec,"json:extract:multi@1":Ug,"company:lookalikes:companyenrich@1":ml,"company:lookalikes:companyenrich@2":cs,"company:match:logodev@1":Fl,"company:match:logodev@2":ks,"person:posts:crustdata@1":Oy,"people:profile:workemail:crustdata@1":sm,"person:profile:workemail:crustdata@1":Yy,"people:identity:email:waterfall@1":Id,"person:identity:email:waterfall@1":Q_,"person:identity:amplemarket@1":I_,"email:send:resend@1":Mh,"contact:create:resend@1":Cc,"email:send:gmail@1":Th,"email:write@1":Qh,"fields:merge@1":Og,"field:slugify@1":gg,"field:domainify@1":sg,"http:request@1":Lg,"template:fill@1":Tx,"message:send:slack@1":Zg,"message:write@1":a_,"people:personalemail:profile:waterfall@1":Rf,"person:personalemail:profileurl:waterfall@1":vy,"website:scrape:firecrawl@1":lS,"website:scrapelist:firecrawl@1":vS,"website:extract:firecrawl@1":Px,"website:extract:parallel@1":Ux,"website:maplinks:firecrawl@1":Qx,"sheet:row:append@1":lx,"sheet:row:expandappend@1":vx,"people:match:role:waterfall@1":qd,"person:match:role:waterfall@1":vv,"company:match:crustdata@1":Cl,"company:match:crustdata@2":_s,"person:match:amplemarket@1":sv,"company:identity@2":al,"company:identity@3":Uo,"company:identity:crustdata@1":$o,"people:phone:profile:waterfall@1":Yf,"person:mobile:profileurl:waterfall@1":kv,"person:devprofileurl:profileurl:waterfall@1":__,"people:phone:workemail:waterfall@1":op,"person:mobile:workemail:waterfall@1":Bv,"people:profile:waterfall@1":Zp,"person:profile:waterfall@1":zy,"people:profileurl:email:waterfall@1":ym,"person:profileurl:email:waterfall@1":sb,"person:profileurl:name@1":vb,"people:email:validate:zerobounce@1":ad,"person:email:validate:millionverifier@1":D_,"people:workemail:profileurl:waterfall@1":Hm,"person:workemail:profileurl:waterfall@1":Ab,"company:identity@1":Jc,"people:professionalprofile:waterfall@1":_p,"people:professionalprofileurl:name@1":Bp,"people:professionalprofileurl:email:waterfall@1":kp,"people:mobilenumber:professionalprofile:waterfall@1":af},NT={"prompt:run@1":Qb,"company:newssummary:website@1":Gl,"company:newssummary:domain@1":zs,"company:techstack:builtwith@1":Nu,"company:techstack:builtwith@2":fc,"company:websiteurl:email@1":Hu,"company:domain:workemail@1":yo,"company:funding:leadmagic@1":Rc,"company:funding:leadmagic@2":No,"people:workemail:waterfall@1":rh,"person:workemail:waterfall@1":Gb,"people:email:iswork@1":Zu,"email:iswork@1":fh,"people:name:split@1":Df,"person:name:split@1":sy,"people:validate:email:zerobounce@1":Am,"people:email:validate:zerobounce@2":gd,"email:validate:zerobounce@1":Uh,"people:mobilenumber:workemail:waterfall@1":_f,"person:name:join@1":Zv,"company:overview@1":ou,"company:overview@2":Su,"company:overview@3":tc,"json:extract:multi@1":Wg,"email:write@1":$h,"fields:merge@1":kg,"field:slugify@1":_g,"field:domainify@1":cg,"http:request@1":Rg,"email:send:resend@1":Nh,"contact:create:resend@1":wc,"company:lookalikes:companyenrich@1":hl,"company:lookalikes:companyenrich@2":ls,"company:match:logodev@1":Il,"company:match:logodev@2":As,"person:posts:crustdata@1":ky,"people:profile:workemail:crustdata@1":cm,"person:profile:workemail:crustdata@1":Xy,"people:identity:email:waterfall@1":Ld,"person:identity:email:waterfall@1":$_,"company:match:crustdata@1":wl,"company:match:crustdata@2":vs,"person:identity:amplemarket@1":L_,"message:send:slack@1":Qg,"email:send:gmail@1":Eh,"message:write@1":o_,"template:fill@1":Ex,"website:scrape:firecrawl@1":uS,"website:scrapelist:firecrawl@1":yS,"website:extract:firecrawl@1":Fx,"website:extract:parallel@1":Wx,"website:maplinks:firecrawl@1":$x,"sheet:row:append@1":ux,"sheet:row:expandappend@1":yx,"people:match:role:waterfall@1":Jd,"person:match:role:waterfall@1":yv,"company:identity@2":ol,"company:identity@3":Wo,"company:identity:crustdata@1":es,"people:phone:profile:waterfall@1":Xf,"person:mobile:profileurl:waterfall@1":Av,"person:devprofileurl:profileurl:waterfall@1":v_,"people:personalemail:profile:waterfall@1":zf,"person:personalemail:profileurl:waterfall@1":yy,"people:profile:waterfall@1":Qp,"person:profile:waterfall@1":By,"people:profileurl:email:waterfall@1":bm,"person:profileurl:email:waterfall@1":cb,"person:profileurl:name@1":yb,"people:email:validate:zerobounce@1":od,"person:email:validate:millionverifier@1":O_,"people:phone:workemail:waterfall@1":sp,"person:mobile:workemail:waterfall@1":Vv,"people:workemail:profileurl:waterfall@1":Um,"person:workemail:profileurl:waterfall@1":jb,"person:match:amplemarket@1":cv,"company:identity@1":Yc,"people:professionalprofile:waterfall@1":vp,"people:professionalprofileurl:name@1":Vp,"people:professionalprofileurl:email:waterfall@1":Ap,"people:mobilenumber:professionalprofile:waterfall@1":of},PT={"prompt:run@1":$b,"company:newssummary:website@1":Kl,"company:newssummary:domain@1":Bs,"company:techstack:builtwith@1":Pu,"company:techstack:builtwith@2":pc,"company:websiteurl:email@1":Uu,"company:domain:workemail@1":bo,"company:funding:leadmagic@1":zc,"company:funding:leadmagic@2":Po,"people:workemail:waterfall@1":ih,"person:workemail:waterfall@1":Kb,"people:email:iswork@1":Qu,"email:iswork@1":ph,"people:name:split@1":Of,"person:name:split@1":cy,"people:validate:email:zerobounce@1":jm,"people:mobilenumber:workemail:waterfall@1":vf,"person:name:join@1":Qv,"company:overview@1":su,"company:overview@2":Cu,"company:overview@3":nc,"json:extract:multi@1":Gg,"email:send:resend@1":Ph,"contact:create:resend@1":Tc,"email:send:gmail@1":Dh,"message:send:slack@1":$g,"message:write@1":s_,"email:write@1":eg,"template:fill@1":Dx,"fields:merge@1":Ag,"field:slugify@1":vg,"field:domainify@1":lg,"http:request@1":zg,"sheet:row:append@1":dx,"sheet:row:expandappend@1":bx,"company:lookalikes:companyenrich@1":gl,"company:lookalikes:companyenrich@2":us,"people:match:role:waterfall@1":Yd,"person:match:role:waterfall@1":bv,"company:match:logodev@1":Ll,"company:match:logodev@2":js,"person:posts:crustdata@1":Ay,"people:profile:workemail:crustdata@1":lm,"person:profile:workemail:crustdata@1":Zy,"people:workemail:profileurl:waterfall@1":Wm,"person:workemail:profileurl:waterfall@1":Mb,"people:identity:email:waterfall@1":Rd,"person:identity:email:waterfall@1":ev,"company:match:crustdata@1":Tl,"company:match:crustdata@2":ys,"person:identity:amplemarket@1":R_,"email:validate:zerobounce@1":Wh,"person:email:validate:millionverifier@1":k_,"people:personalemail:profile:waterfall@1":Bf,"person:personalemail:profileurl:waterfall@1":by,"people:email:validate:zerobounce@1":sd,"people:email:validate:zerobounce@2":_d,"people:phone:workemail:waterfall@1":cp,"person:mobile:workemail:waterfall@1":Hv,"website:scrape:firecrawl@1":dS,"website:scrapelist:firecrawl@1":bS,"website:extract:firecrawl@1":Ix,"website:extract:parallel@1":Gx,"website:maplinks:firecrawl@1":eS,"person:match:amplemarket@1":lv,"company:identity@2":sl,"company:identity@3":Go,"company:identity:crustdata@1":ts,"people:phone:profile:waterfall@1":Zf,"person:mobile:profileurl:waterfall@1":jv,"person:devprofileurl:profileurl:waterfall@1":y_,"people:profile:waterfall@1":$p,"person:profile:waterfall@1":Vy,"people:profileurl:email:waterfall@1":xm,"person:profileurl:email:waterfall@1":lb,"person:profileurl:name@1":bb,"company:identity@1":Xc,"people:professionalprofile:waterfall@1":yp,"people:professionalprofileurl:name@1":Hp,"people:professionalprofileurl:email:waterfall@1":jp,"people:mobilenumber:professionalprofile:waterfall@1":sf};function FT(e){return e.defaultPayload?.config?.output_fields?Object.keys(e.defaultPayload?.config?.output_fields||{}):[]}function IT(e){return MT[e]}function LT(e){return PT[e].defaultPayload}function RT(e){return NT[e]}const zT=r.discriminatedUnion(`pipe_id`,Object.values(NT)).openapi(`PipePayload`),BT=r.preprocess(e=>{if(!e||typeof e!=`object`||!(`pipe_id`in e))return e;try{let t=LT(Pn.parse(e.pipe_id));return t?{...e,config:Ua(e?.config||{},t.config)}:e}catch{return e}},zT);function VT(e){return PT[e]}function HT(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 UT(e){let t=e.split(`@`)[1];if(!t)throw Error(`No pipe version found`);return Number(t)}function WT(){let e={};for(let t of Object.values(PT)){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=UT(e.pipeId);return UT(t.pipeId)-n})}),e}const GT=e=>{let t=VT(e),n=new Set(t.deprecatedProviders);return Array.from(new Set([...t.managedProviders,...t.allowedUserConnectionProviders])).filter(e=>!n.has(e))},KT=WT();function qT(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
74
|
`);throw Error(`Catalog has ${r.length} duplicate billable-operation key(s):\n${e}`)}}qT(PT,fT);function JT(e){let t=[];for(let[n,r]of Object.entries(KT)){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:UT(i.pipeId)})}return t}function YT(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=GT(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 Ya(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:KT}}const XT=r.object({id:r.string(),organization_id:r.string(),order:r.array(Ln),field_definitions:mr,errors:r.array(Qn),records:r.record(Ln,dr),status:r.enum([`completed`,`failed`,`pending`,`processing`])}).openapi(`PipesResponseSchema`),ZT=r.object({environment:Mn.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`),QT=r.object({config:ZT.openapi(`PipesRequestConfig`),field_annotations:rr.optional().openapi(`PipesFieldAnnotations`),pipes:r.array(zT),input:r.array(ur.openapi(`PipesInputSchema`)),scopes:r.array(r.string()).optional()});function $T(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 eE={"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}},tE={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`}},nE={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 rE(e){let t=RT(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 iE({pipePayload:e,validationContext:t,sectionOrder:n=nE,store:r,groupPathMatch:i=eE,formResolvers:a}){let o=RT(e.pipe_id),s=to(e.pipe_id,e.config||{});return na({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:tE,store:r,formResolvers:a})}const aE={"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}},oE={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`}},sE={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 cE({searchPayload:e,sectionOrder:t=sE,formContext:n,groupPathMatch:r=aE,formResolvers:i}){return na({schema:xT(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:ET(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:oE,store:n,formResolvers:i})}function lE(e){let t=xT(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 uE=new Proxy({},{get:(e,t)=>e=>e.type===t}),dE=`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(`.`),fE=r.enum(dE),pE=r.object({provider_logo:r.object({provider:jn}).optional(),emoji:r.object({char:r.string()}).optional(),icon:r.object({key:fE}).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()}),mE=`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(mE);const hE=r.object({value:r.string(),label:r.string(),widgets:pE.optional()}),gE=r.object({field_options:r.record(r.string(),r.object({options:r.array(hE)}))}),_E=[{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}],vE=new Map(_E.map(e=>[e.id,e]));function yE(e){return vE.get(e)}function bE(){return _E}const xE={"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
|
|
|
@@ -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 SE(e){let t=[];for(let n of e){if(n instanceof H){t.push(n);continue}let e=BT.parse(n);if(!VT(n.pipe_id))throw Error(`Unknown pipe: ${n.pipe_id}`);let r=new(IT(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 wE(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 TE=.1,EE=[`level1`,`level2`,`level3`];function DE(e,t){let n=EE[t-1];if(n)return e[n]}function OE(e,t){for(let n=t;n>=1;n--){let t=DE(e,n);if(t)return{level:n,tier:t}}}function kE(e){let t=[];for(let n=1;n<=3;n++){let r=DE(e,n);r&&t.push({level:n,credits:r.credits,weight:r.weight})}return t}function AE(e){if(e.default<.1)return!1;let t=kE(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 jE(){let e=new Map;for(let t of Object.values(PT))for(let[n,r]of Object.entries(t.billableOperations)){let i=r;if(!i?.allowManagedConnection||!AE(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:kE(i.credits),usedBy:[o]})}for(let t of Object.values(fT)){let{cost:n}=t;if(!AE(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:kE(n.credits),usedBy:[i]})}return[...e.values()].sort((e,t)=>e.billableOperation.localeCompare(t.billableOperation))}function ME(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 NE(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 PE(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(NE(e))return`https://${e}`;if(!ME(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(NE(n))return`${e.protocol===`http:`?`http:`:`https:`}//${e.host}${e.pathname}${e.search}${e.hash}`;if(!ME(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(ME(i)||NE(i))return`${e?.toLowerCase()===`http://`?`http:`:`https:`}//${n}${r}`}return``}}function IE(e){try{return PE(e)}catch{console.warn(`Invalid URL: ${e}`);return}}function LE(e,t){if(t)switch(e){case`website_url`:return IE(t);default:return}}function RE(e){let t;if(zE(e))return RE(e.value);let n=typeof e;return t=n===`string`||n===`number`||n===`boolean`?n:e===null?`unknown`:`json`,t}function zE(e,t=0){if(typeof e==`object`&&e&&`value`in e&&`status`in e&&Rn.safeParse(e.status).success){if(t>1||typeof e.value==`object`&&zE(e.value,t++))throw new X([Y.RecursiveExpandedValue()]);return!0}return!1}function BE(e){let t=zE(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 zE(e)?VE(e.value):e}function HE(e,t,n){if([`processing`,`completed`].includes(n.status)===!1||t==null)return{};try{let r=bn(e,n.format)?.getStaticWidgets?.(t),i=LE(n.format,t);return zS(r||{},{display_value:i?{label:i}:void 0})}catch(e){return console.warn(`Failed to generate UI props: ${e}`),{}}}function UE(e,t,n){if(t==null)return{};try{let r=bn(e,n)?.getStaticWidgets?.(t),i=LE(n,t);return zS(r||{},{display_value:i?{label:i}:void 0})}catch(e){return console.warn(`Failed to generate UI props: ${e}`),{}}}function WE(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 GE=class e{annotations;constructor(e){this.annotations=e||{}}getAnnotation(e){return this.annotations[e]}static fromInput(t,{probeCount:n=1e5,inferCatalogFields:i=!0,addIdColumn:a=!0}={probeCount:1e5,inferCatalogFields:!0,addIdColumn:!0}){let o={},s=0;for(let e of t){if(s++,s>n)break;for(let[t,n]of Object.entries(e)){if(t===``||t==null)continue;let{resolvedInputValue:e,expandedValue:a,isExpanded:s}=BE(n),c;c=s&&a.type?a.type:RE(e);let l;xn(t)&&(l=g(t));let u=l&&(l.type===c||c===`unknown`);(!o[t]||o[t].type===`unknown`&&c!==`unknown`)&&(o[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&&!o.id&&(o.id={format:null,type:`string`,json_metadata:null,label:null}),new e(o)}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]=WE(n,t)}return new e(r)}deleteKey(t){let n=structuredClone(this.annotations);return delete n[t],new e(n)}};function KE(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 qE(e){let t=KE(e),n=[];for(let[r,i]of e.entries()){let e=[];for(let{field:n,required:a}of Ya(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 JE({config:e,pipes:t,input:n,field_annotations:r}){try{let i=QE({config:e,pipes:t,input:n,fieldAnnotations:r});return YE(i),i}catch(e){throw e instanceof X?e:new X([Y.ValidationFailed({error:e})])}}function YE(e){for(let t of e.orderedPipeInstances)for(let{field:n}of Ya(t.getInputRequirement()))mh({pipes:e.orderedPipeInstances,derivedInputFields:e.derivedInputFields},n.type),hh({pipes:e.orderedPipeInstances,derivedInputFields:e.derivedInputFields},n.format)}function XE(e,t){if(!e&&!t)throw new X([Y.MustDefineAnnotations()]);return new GE(t||{}).merge(GE.fromInput(e||[]))}function ZE(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:mh(e,a.type),added_by:{ref:t.pipeId,config_hash:t.getConfigHashKey(),pipe_index:r},label:i?.label||a.label,format:hh(e,a.format),is_primary_output:a.isPrimaryOutput}}}),n}function QE(e){let t=SE(e.pipes),n=XE(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)}),tD(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]=$E(t,n),u=ZE({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 $E(e,t){let n=qE(e),r=eD(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 eD(e,t,n){let r=t.length,i=[],a=new Set,o=new Set,s=[],c=e=>{let n=t[e];return n?Ya(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();Ja(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 tD(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 ui(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 nD=[`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`],rD=[`yyyy-MM-dd`,`yyyy/MM/dd`,`MM/dd/yyyy`,`MM-dd-yyyy`,`yyyyMMdd`,`dd-MM-yyyy`,`dd/MM/yyyy`],iD=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})}),aD=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 oD(e){return!isNaN(e.getTime())}const sD=r.coerce.string().trim().transform(e=>{let t=e.replace(/[^0-9T:.\-/ ]/g,``).trim();for(let e of nD){let n=ee(t,e,new Date(0));if(oD(n))return u(n,`yyyy-MM-dd'T'HH:mm:ss`)}throw Error(`Invalid date format: ${e}`)}),cD=r.coerce.string().trim().transform(e=>{for(let t of rD){let n=ee(e,t,new Date(0));if(oD(n))return u(n,`yyyy-MM-dd`)}throw Error(`Invalid date format: ${e}`)}),lD=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`}),uD=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()),dD=r.coerce.string().trim().min(1,{message:`Value cannot be empty for this format`});function fD(e,t){if(t===null)return e===``||e==null?null:e;if(e==null)return null;try{switch(t){case`url`:return iD.parse(e);case`email`:return aD.parse(e);case`datetime`:return sD.parse(e);case`date`:return cD.parse(e);case`decimal`:return lD.parse(e);case`int`:return uD.parse(e);case`currency`:return r.number().parse(e);case`percent`:return r.number().parse(e);case`address_line_1`:return dD.parse(e);case`website_url`:return iD.parse(e);case`profile_url`:return iD.parse(e);case`zip_code`:return dD.parse(e);case`markdown`:case`phone`:case`text`:return dD.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 ${bd(e)} into format ${t}: ${r.message}`):r}}function pD(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(zE(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:fD(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 mD(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:pD(e,n,i)}}}function hD({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{mD(e,t,r);let{queuedRecordIdSet:i,adoptedRecordIdSet:a}=gD(e,t,r,n);if(r.queued_record_ids=i,r.adopted_record_ids=a,_D(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 gD(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 _D(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 ${yg(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 ${yg(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}=Xa(a.getInputRequirement(),e);t===!1&&r(a,n,i,e)})}}function vD({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 yD({status:e,config:t}){return t.queue?.enabled?!!(e===`failed`&&t.queue?.triggers?.fieldIsFailed||e===`no_result`&&t.queue?.triggers?.fieldIsNoResult):!1}function bD({inputHashKey:e,configHashKey:t,expandedValue:n,config:r}){return vD({inputHashKey:e,configHashKey:t,expandedValue:n,config:r})||yD({status:n.status,config:r})}function xD({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=mh({pipes:e.orderedPipeInstances,derivedInputFields:e.derivedInputFields},ee),ne=hh({pipes:e.orderedPipeInstances,derivedInputFields:e.derivedInputFields},a.format),{resolvedInputValue:d,isExpanded:re,expandedValue:f}=BE(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=RE(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}=xD({inputHashKey:oe,configHashKey:ae,expandedValue:f});e&&s.push(u.id)}if(re&&f.status!==`pending`&&bD({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}=xD({inputHashKey:oe,configHashKey:ae,expandedValue:f});e&&s.push(u.id)}bD({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=fD(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=HE(i,r.value,r);r.widgets=zS(r.widgets||{},e)}t.errors.length>0&&(r.status===`pending`||r.status===`queued`)&&(r.status=`failed`)})})}function wD(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 TD(e,t={}){return Object.values(e).map(e=>wD(e.fields,t))}function ED(e,t={}){return e.map(e=>wD(e.fields,t))}function DD(e,t={}){return wD(e.fields,t)}function OD(e,t){return e.map(e=>{let n={};return Object.entries(e).forEach(([e,r])=>{let{isExpanded:i,expandedValue:a,resolvedInputValue:o}=BE(r);i===!0&&a.status!=null&&t.unexpandStatuses.includes(a.status)?n[e]=o:n[e]=r}),n})}function kD(e){let t=Dr[e];if(!t)throw Error(`Provider name '${e}' invalid`);return{...t,provider:e}}const AD=[`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`],jD=r.enum(AD);function MD(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 ND(e,t){let n={name:e,config:t};return eo.hashObject(n)}var PD=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 ND(this.searchId,this.payload)}};function FD(e){return e.split(`@`)[0]}function ID(e){return`/docs/search-catalog/${FD(e)}/${e.split(`@`)[1]}`}const LD=`companies:profiles:crustdata@1`,RD=g(`company_name`),zD=g(`company_website_url`),BD=g(`company_description`),VD=g(`company_profile_url`),HD=g(`crustdata_company_match`),UD=r.object({search_id:r.literal(LD),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:Ra({sectionKey:`general`,path:`config.cursor`,groupPath:`config.general`,inputType:`text`,description:``,label:`Continue previous search from cursor`}),output_fields:L(r.object({[RD.name]:M({fieldName:RD.name}),[zD.name]:M({fieldName:RD.name}),[BD.name]:M({fieldName:BD.name}),[VD.name]:M({fieldName:VD.name}),[HD.name]:M({fieldName:HD.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:Pa({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:Pa({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=>{MD(e.value)&&e.issues.push({code:`custom`,message:`You must set at least one filter.`,input:e.value})})})}),WD={default:{input:[{fields:[]}]}},GD=class extends PD{searchId=LD;schema=UD;payload;constructor(e){super(),this.payload=this.validatePayload(e)}getRawOutputFields(){return{[RD.name]:this.catalogOutput(RD),[zD.name]:this.catalogOutput(zD),[BD.name]:this.catalogOutput(BD),[VD.name]:this.catalogOutput(VD),[HD.name]:this.catalogOutput(HD)}}getConnectionsRequirements(){return[{provider:`crustdata`,rateLimitOperation:`crustdata_company_db_search`,rateLimitRatio:1,allowManagedConnection:!0}]}getDedupConfig(){return WD}},KD=UD,qD={searchId:LD,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:ID(LD),cost:{mode:`per_page`,creditsPerPage:2},provider:`crustdata`,defaultPayload:{search_id:LD,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:[]}}}},JD=`companies:profiles:exa@1`,YD=g(`company_name`),XD=g(`company_website_url`),ZD=g(`company_description`),QD=g(`company_industry`),$D=g(`headcount`),eO=g(`exa_match_evaluation`),tO=r.object({search_id:r.literal(JD),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({[YD.name]:M({fieldName:YD.name}),[XD.name]:M({fieldName:YD.name}),[ZD.name]:M({fieldName:ZD.name}),[QD.name]:M({fieldName:QD.name}),[$D.name]:M({fieldName:$D.name}),[eO.name]:M({fieldName:eO.name})})),filters:r.object({query:za({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})})})}),nO={default:{input:[{fields:[]}]}},rO=class extends PD{searchId=JD;schema=tO;payload;constructor(e){super(),this.payload=this.validatePayload(e)}getRawOutputFields(){return{[YD.name]:this.catalogOutput(YD),[XD.name]:this.catalogOutput(XD),[ZD.name]:this.catalogOutput(ZD),[QD.name]:this.catalogOutput(QD),[$D.name]:this.catalogOutput($D),[eO.name]:this.catalogOutput(eO)}}getConnectionsRequirements(){return[{provider:`exa`,rateLimitOperation:`exa_websets`,rateLimitRatio:1,allowManagedConnection:!0}]}getDedupConfig(){return nO}},iO=tO,aO={searchId:JD,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:ID(JD),cost:{mode:`per_result`,creditsPerResult:2},provider:`exa`,defaultPayload:{search_id:JD,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:``}}}},oO=`companies:profiles:icypeas@1`,sO=g(`company_industry`),cO=g(`company_name`),lO=g(`company_description`),uO=g(`company_website_url`),dO=g(`headcount`),fO=g(`company_region`),pO=g(`company_profile_url`),mO=g(`icypeas_company_match`),hO=r.object({search_id:r.literal(oO),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:cO.name}),company_industry:M({fieldName:sO.name}),company_description:M({fieldName:lO.name}),company_website_url:M({fieldName:uO.name}),headcount:M({fieldName:dO.name}),company_region:M({fieldName:fO.name}),company_profile_url:M({fieldName:pO.name}),icypeas_company_match:M({fieldName:mO.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:Pa({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=>{MD(e.value)&&e.issues.push({code:`custom`,message:`You must set at least one filter.`,input:e.value})})})}),gO={default:{input:[{fields:[{outputField:`company_profile_url`}]}]}},_O=class extends PD{searchId=oO;schema=hO;payload;constructor(e){super(),this.payload=this.validatePayload(e)}getRawOutputFields(){return{[cO.name]:this.catalogOutput(cO),[sO.name]:this.catalogOutput(sO),[pO.name]:this.catalogOutput(pO),[uO.name]:this.catalogOutput(uO),[lO.name]:this.catalogOutput(lO),[dO.name]:this.catalogOutput(dO),[fO.name]:this.catalogOutput(fO),[mO.name]:this.catalogOutput(mO)}}getConnectionsRequirements(){return[{provider:`icypeas`,rateLimitOperation:`icypeas_company_database`,rateLimitRatio:1,allowManagedConnection:!0}]}getDedupConfig(){return gO}},vO=hO,yO={searchId:oO,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:ID(oO),cost:{mode:`per_result`,creditsPerResult:.4},provider:`icypeas`,defaultPayload:{search_id:oO,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:[]}}}}},bO=`people:profiles:clado@1`,xO=g(`name`),SO=g(`job_title`),CO=g(`company_name`),wO=g(`company_profile_url`),TO=g(`profile_url`),EO=g(`clado_person_match`),DO=r.object({search_id:r.literal(bO),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({[xO.name]:M({fieldName:xO.name}),[SO.name]:M({fieldName:SO.name}),[wO.name]:M({fieldName:wO.name}),[CO.name]:M({fieldName:CO.name}),[TO.name]:M({fieldName:TO.name}),[EO.name]:M({fieldName:EO.name})})),filters:r.object({query:za({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})})})}),OO={default:{input:[{fields:[{outputField:`profile_url`}]}]}},kO=class extends PD{searchId=bO;schema=DO;payload;constructor(e){super(),this.payload=this.validatePayload(e)}getRawOutputFields(){return{[xO.name]:this.catalogOutput(xO),[SO.name]:this.catalogOutput(SO),[CO.name]:this.catalogOutput(CO),[TO.name]:this.catalogOutput(TO),[wO.name]:this.catalogOutput(wO),[EO.name]:this.catalogOutput(EO)}}getConnectionsRequirements(){return[{provider:`clado`,rateLimitOperation:`clado_search_people`,rateLimitRatio:1,allowManagedConnection:!0}]}getDedupConfig(){return OO}},AO=DO,jO={searchId:bO,billableOperation:`people-profiles-clado`,baseSearch:Jt(`people:profiles:clado@1`),label:`Find people profiles with Clado`,categories:[`people`],hasManagedConnection:!0,allowsUserConnection:!0,lifecycle:{deprecatedOn:`2026-06-13`,replacedBy:`people:profiles:clado@2`},description:`Search through millions of LinkedIn profiles using natural language queries. This endpoint provides fast searching with AI-powered relevance matching.`,tags:[z.PEOPLE_PROFILES],docPath:`/resources/search-catalog/people:profiles:clado/1`,cost:{mode:`per_search`,creditsPerSearch:3},provider:`clado`,defaultPayload:{search_id:bO,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:``}}}},MO=`people:profiles:clado@2`,NO=g(`name`),PO=g(`job_title`),FO=g(`company_name`),IO=g(`company_profile_url`),LO=g(`profile_url`),RO=g(`clado_person_match_v2`),zO=r.object({search_id:r.literal(MO),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:Ra({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({[NO.name]:M({fieldName:NO.name}),[PO.name]:M({fieldName:PO.name}),[IO.name]:M({fieldName:IO.name}),[FO.name]:M({fieldName:FO.name}),[LO.name]:M({fieldName:LO.name}),[RO.name]:M({fieldName:RO.name})})),filters:r.object({query:za({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`]})}),BO={default:{input:[{fields:[{outputField:`profile_url`}]}]}},VO=class extends PD{searchId=MO;schema=zO;payload;constructor(e){super(),this.payload=this.validatePayload(e)}getRawOutputFields(){return{[NO.name]:this.catalogOutput(NO),[PO.name]:this.catalogOutput(PO),[FO.name]:this.catalogOutput(FO),[LO.name]:this.catalogOutput(LO),[IO.name]:this.catalogOutput(IO),[RO.name]:this.catalogOutput(RO)}}getConnectionsRequirements(){return[{provider:`clado`,rateLimitOperation:`clado_search_people`,rateLimitRatio:1,allowManagedConnection:!0}]}getDedupConfig(){return BO}},HO=zO,UO={searchId:MO,billableOperation:`people-profiles-clado`,baseSearch:Jt(`people:profiles:clado@2`),label:`Find people profiles`,categories:[`deprecated`],hasManagedConnection:!0,allowsUserConnection:!0,lifecycle:{deprecatedOn:`2026-06-13`,replacedBy:`people:profiles:clado@2`},description:`Search a growing dataset with semantic queries.`,tags:[],docPath:`/resources/search-catalog/people:profiles:clado/1`,cost:{mode:`per_page`,creditsPerPage:3},provider:`clado`,defaultPayload:{search_id:MO,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:``}}}},WO=`people:employees:leadmagic@1`,GO=g(`name`),KO=g(`job_title`),qO=g(`company_website_url`),JO=g(`company_name`),YO=r.object({search_id:r.literal(WO),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({[GO.name]:M({fieldName:GO.name}),[JO.name]:M({fieldName:JO.name}),[qO.name]:M({fieldName:qO.name}),[KO.name]:M({fieldName:KO.name})})),filters:r.object({company_website_url:Ra({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`})})})}),XO={default:{input:[{fields:[{outputField:qO.name}]}]}},ZO=class extends PD{searchId=WO;schema=YO;payload;constructor(e){super(),this.payload=this.validatePayload(e)}getRawOutputFields(){return{[GO.name]:this.catalogOutput(GO),[KO.name]:this.catalogOutput(KO),[qO.name]:this.catalogOutput(qO),[JO.name]:this.catalogOutput(JO)}}getConnectionsRequirements(){return[{provider:`leadmagic`,rateLimitOperation:`leadmagic_employee_finder`,rateLimitRatio:1,allowManagedConnection:!0}]}getDedupConfig(){return XO}},QO=YO,$O={searchId:WO,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:ID(WO),cost:{mode:`per_result`,creditsPerResult:.05},provider:`leadmagic`,defaultPayload:{search_id:WO,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:``}}}},ek=`people:profiles:crustdata@1`,tk=g(`name`),nk=g(`company_website_url`),rk=g(`profile_url`),ik=g(`job_title`),ak=g(`crustdata_person_match`),ok=r.object({search_id:r.literal(ek),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:Ra({sectionKey:`general`,path:`config.cursor`,groupPath:`config.general`,inputType:`text`,description:``,label:`Continue previous search from cursor`}),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})})),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:ja({path:`config.filters.profile_headline_keywords`,sectionKey:`config.filters`,label:`Headline contains keywords`,maxItems:100,groupPath:`config.filters.keywords`}),profile_summary_keywords:ja({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:La({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=>{MD(e.value)&&e.issues.push({code:`custom`,message:`You must set at least one filter.`,input:e.value})})})}),sk={default:{input:[{fields:[]}]}},ck=class extends PD{searchId=ek;schema=ok;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)}}getConnectionsRequirements(){return[{provider:`crustdata`,rateLimitOperation:`crustdata_people_db_search`,rateLimitRatio:1,allowManagedConnection:!0}]}getDedupConfig(){return sk}},lk=ok,uk={searchId:ek,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:ID(ek),cost:{mode:`per_page`,creditsPerPage:5},provider:`crustdata`,defaultPayload:{search_id:ek,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:[]}}}},dk=`people:profiles:exa@1`,fk=g(`name`),pk=g(`profile_url`),mk=g(`job_title`),hk=g(`company_name`),gk=g(`company_region`),_k=g(`exa_match_evaluation`),vk=r.object({search_id:r.literal(dk),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({[fk.name]:M({fieldName:fk.name}),[pk.name]:M({fieldName:pk.name}),[mk.name]:M({fieldName:mk.name}),[hk.name]:M({fieldName:hk.name}),[gk.name]:M({fieldName:gk.name}),[_k.name]:M({fieldName:_k.name})})),filters:r.object({query:za({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})})})}),yk={default:{input:[{fields:[]}]}},bk=class extends PD{searchId=dk;schema=vk;payload;constructor(e){super(),this.payload=this.validatePayload(e)}getRawOutputFields(){return{[fk.name]:this.catalogOutput(fk),[pk.name]:this.catalogOutput(pk),[mk.name]:this.catalogOutput(mk),[hk.name]:this.catalogOutput(hk),[gk.name]:this.catalogOutput(gk),[_k.name]:this.catalogOutput(_k)}}getConnectionsRequirements(){return[{provider:`exa`,rateLimitOperation:`exa_websets`,rateLimitRatio:1,allowManagedConnection:!0}]}getDedupConfig(){return yk}},xk=vk,Sk={searchId:dk,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:ID(dk),cost:{mode:`per_result`,creditsPerResult:2},provider:`exa`,defaultPayload:{search_id:dk,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`,wk=g(`name`),Tk=g(`job_title`),Ek=g(`profile_headline`),Dk=g(`company_website_url`),Ok=g(`company_profile_url`),kk=g(`profile_url`),Ak=g(`icypeas_person_match`),jk=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({[wk.name]:M({fieldName:wk.name}),[Tk.name]:M({fieldName:Tk.name}),[Ek.name]:M({fieldName:Ek.name}),[Dk.name]:M({fieldName:Dk.name}),[Ok.name]:M({fieldName:Ok.name}),[kk.name]:M({fieldName:kk.name}),[Ak.name]:M({fieldName:Ak.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=>{MD(e.value)&&e.issues.push({code:`custom`,message:`The filters object cannot be empty. You must set at least one filter.`,input:e.value})})})}),Mk={default:{input:[{fields:[{outputField:`profile_url`}]}]}},Nk=class extends PD{searchId=Ck;schema=jk;payload;constructor(e){super(),this.payload=this.validatePayload(e)}getRawOutputFields(){return{[wk.name]:this.catalogOutput(wk),[Tk.name]:this.catalogOutput(Tk),[Ek.name]:this.catalogOutput(Ek),[Dk.name]:this.catalogOutput(Dk),[Ok.name]:this.catalogOutput(Ok),[kk.name]:this.catalogOutput(kk),[Ak.name]:this.catalogOutput(Ak)}}getConnectionsRequirements(){return[{provider:`icypeas`,rateLimitOperation:`icypeas_lead_database`,rateLimitRatio:1,allowManagedConnection:!0}]}getDedupConfig(){return Mk}},Pk=jk,Fk={searchId:Ck,billableOperation:`people-profiles-icypeas`,provider:`icypeas`,baseSearch:FD(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:ID(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:[]}}}}},Ik={"people:profiles:crustdata@1":ck,"companies:profiles:crustdata@1":GD,"companies:profiles:exa@1":rO,"people:profiles:exa@1":bk,"people:profiles:icypeas@1":Nk,"companies:profiles:icypeas@1":_O,"people:employees:leadmagic@1":ZO,"people:profiles:clado@1":kO,"people:profiles:clado@2":VO},Lk={"people:profiles:crustdata@1":lk,"companies:profiles:crustdata@1":KD,"companies:profiles:exa@1":iO,"people:profiles:exa@1":xk,"people:profiles:icypeas@1":Pk,"companies:profiles:icypeas@1":vO,"people:employees:leadmagic@1":QO,"people:profiles:clado@1":AO,"people:profiles:clado@2":HO},Rk={"people:profiles:crustdata@1":uk,"companies:profiles:crustdata@1":qD,"companies:profiles:exa@1":aO,"people:profiles:exa@1":Sk,"people:profiles:icypeas@1":Fk,"companies:profiles:icypeas@1":yO,"people:employees:leadmagic@1":$O,"people:profiles:clado@1":jO,"people:profiles:clado@2":UO};function zk(e){return Ik[e]}function Bk(e){return Lk[e]}function Vk(e){return Rk[e].defaultPayload}const Hk=t.discriminatedUnion(`search_id`,Object.values(Lk).map(e=>e)),Uk=t.preprocess(e=>{if(!e||typeof e!=`object`||!(`search_id`in e))return e;let t=Vk(e.search_id);return t?{...e,config:Ua(e?.config||{},t.config)}:e},Hk);function Wk(e){return Object.keys(Rk[e].defaultPayload.config.output_fields)}const Gk=Qn,Kk=t.object({value:zn,status:Rn,type:In.optional(),format:tr.nullable().optional(),resolved_by:sr.nullable().optional(),widgets:Zn.optional()}),qk=t.record(t.string(),Kk.nullable()),Jk=t.object({search:t.object({ref:jD}),status:t.enum([`pending`,`processing`,`failed`,`completed`]),errors:t.array(Gk),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()})}),Yk=t.object({id:t.string(),status:t.enum([`completed`,`failed`,`pending`,`processing`]),results:t.array(qk),search_statuses:t.array(Jk),organizationId:t.string()}).openapi(`SearchesResponseSchema`),Xk=t.object({environment:t.enum([`production`,`sandbox`]).default(`production`),widgets:t.object({enabled:t.boolean().default(!1)}).default({enabled:!1})}),Zk=Xk.extend({dedup:t.object({strategy:t.enum([`default`]).nullable()}).default({strategy:null})}),Qk=t.object({config:Zk.default({dedup:{strategy:`default`},environment:`production`,widgets:{enabled:!1}}),searches:t.array(Uk)}).openapi(`SearchesRequestSchema`);function $k(e){let t=e.split(`@`)[1];if(!t)throw Error(`No search version found`);return Number(t)}function eA(){let e={};for(let t of Object.values(Rk)){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=$k(e.searchId);return $k(t.searchId)-n})}),e}const tA=eA();function nA(e){let t=[];for(let[n,r]of Object.entries(tA)){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:$k(i.searchId)})}return t}function rA(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 Wk(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:tA}}function iA(e){return Rk[e]}function aA(e){let t=iA(e);return{[t.provider]:t.cost.mode===`per_result`?t.cost.creditsPerResult:t.cost.mode===`per_search`?t.cost.creditsPerSearch:t.cost.creditsPerPage}}function oA(e){return e.map(e=>({public_id:`sandbox-${e}`,provider:e}))}function sA(e){return oA(VT(e).allowedUserConnectionProviders)}function cA(e){return oA([ET(e).provider])}function lA(e){return oA([iA(e).provider])}const uA=[{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}],dA=new Map(uA.map(e=>[e.id,e]));function fA(e){return dA.get(e)}function pA(){return uA}const mA={"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`}}}],"sheet:rows@1":[{search_id:`sheet:rows@1`,connector:{strategy:`first`,connections:[]},config:{sheet:`demo-leads`,limit:100,cursor:``,include_metadata:!1}}],"query:postgres@1":[{search_id:`query:postgres@1`,connector:{strategy:`first`,connections:[]},config:{query:`SELECT id, name, email FROM contacts ORDER BY id`,limit:100,page_number:1}}],"query:databricks@1":[{search_id:`query:databricks@1`,connector:{strategy:`first`,connections:[]},config:{query:`SELECT id, name, email FROM samples.tpch.customer ORDER BY id`,limit:100,page_number:1}}]};function hA(e,t,n){if(t==null)return{};try{let r=bn(e,n)?.getStaticWidgets?.(t),i=LE(n,t);return zS(r||{},{display_value:i?{label:i}:void 0})}catch(e){return console.warn(`Failed to generate UI props: ${e}`),{}}}function gA(e){if(e instanceof Z)return e;let t=e.search_id,n=pT(t);if(!n)throw Error(`Unknown pipe: ${e.search_id}`);return new n(gT.parse(e))}var _A=class extends Cg{constructor(e){super(e.map(e=>e.message).join(`, `)||`Unknown`),this.errors=e}};function vA(e){let t=[];for(let n of e){if(n instanceof PD){t.push(n);continue}let e=n.search_id,r=zk(e);if(!r)throw Error(`Unknown pipe: ${n.search_id}`);let i=new r(Uk.parse(n));t.push(i)}return t}function yA(e){try{return vA(e.searches)}catch(e){throw e instanceof _A?e:new X([Y.ValidationFailed({error:e})])}}const bA=/[\\^$.+()|[\]{}]/g,xA=new Map;function SA(e){let t=xA.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(bA,`\\$&`)}let r=RegExp(`^${n}$`);return xA.set(e,r),r}function CA(e,t){return SA(t).test(e)}function wA(e,t){if(!t||t.length===0)return!1;for(let n of t)if(CA(e,n))return!0;return!1}function TA(e,t){if(!t)return!0;let{includes:n,excludes:r}=t;return!(n&&n.length>0&&!wA(e,n)||r&&r.length>0&&wA(e,r))}function EA(e,t){return TA(e,t?.providers)}function DA(e,t){if(!t)return!0;if(!TA(e,t.pipes))return!1;if(t.providers){let n=GT(e);if(n.length===0)return!0;if(!n.some(e=>EA(e,t)))return!1}return!0}function OA(e,t,n){return t?!(!TA(e,t.searches)||n!==void 0&&!EA(n,t)):!0}function kA(e,t,n){return t?!(!TA(e,t.searchesMulti)||n!==void 0&&!EA(n,t)):!0}function AA(e,t){return t?e.filter(e=>DA(e.pipeId,t)):e.slice()}function jA(e,t){return t?e.filter(e=>OA(e.searchId,t,e.provider)):e.slice()}function MA(e,t){return t?e.filter(e=>kA(e.searchId,t,e.provider)):e.slice()}function NA(e){let t=Object.values(e.billableOperations).map(e=>e.allowManagedConnection?e.credits.default:0);return Math.min(...t)}function PA(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 IA(e){let t=FE(e);if(!t)return``;try{return te(t)||new URL(t).hostname}catch{return``}}const LA=[`http://`,`https://`,`mailto:`],RA=new Set([`*`,`_`,`~`,"`",`[`,`]`,`(`,`)`,`\\`]);function zA(e){return e?BA(e):[]}function BA(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&&RA.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:BA(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:BA(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:BA(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(LA.some(e=>o.startsWith(e))){i(),t.push({type:`link`,href:o,children:BA(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(HA(e,r,n))return r;r+=1}return-1}function HA(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{hi as AI_MODELS,gi as AI_MODEL_CATALOG,fr as CatalogSchemaRefSchema,gr as ConditionOperatorsSchema,lr as ExpandedFieldValueSchema,Gh as FIELD_PLACEHOLDERS,nr as FieldAnnotationSchema,GE as FieldAnnotations,rr as FieldAnnotationsSchema,An as FieldNameSchema,$n as FieldReasonSchema,zn as FieldValueSchema,gE as FormStoreSchema,TE as HIGH_VOLUME_PRICING_MIN_CREDITS,hr as JSONExtractSchema,Bn as JSONMetaSchema,Sr as NoConnectorSchema,_ as OptionalConnectorSchema,Nn as PIPE_IDS,ST as PaginationTypeSchema,Kb as PersonWorkemailWaterfall1Entry,Gb as PersonWorkemailWaterfall1PayloadSchema,Wb as PersonWorkemailWaterfall1PipeClass,H as Pipe,Cg as Pipe0Error,Pn as PipeIdSchema,zT as PipePayloadSchema,Er as PipeRunIfSchema,X as PipelineValidationError,Mn as PipesEnvironmentSchema,Qn as PipesErrorSchema,pr as PipesFieldDefinitionSchema,mr as PipesFieldDefinitionsSchema,ur as PipesInputSchema,ZT as PipesRequestConfigSchema,QT as PipesRequestSchema,XT as PipesResponseSchema,BT as ProcessedPipePayloadSchema,gT as ProcessedSearchPayloadSchema,Uk as ProcessedSearchesPayloadSchema,jn as ProviderNameSchema,er as RECORD_FIELD_FORMATS,Fn as RECORD_FIELD_TYPES,_r as RUN_IF_OPERATOR_LABELS,yr as RUN_IF_STATUS_OPERATORS,vr as RUN_IF_VALUE_OPERATORS,or as RecordClaimedBySchema,tr as RecordFieldFormatSchema,cr as RecordFieldSchema,Rn as RecordFieldStatusSchema,In as RecordFieldTypeSchema,Ln as RecordIdSchema,sr as RecordResolvedBySchema,dr as RecordSchema,Sg as RequestValidationError,xr as RequiredConnectorSchema,wr as RunIfStatusOperatorsSchema,Tr as RunIfStatusValueSchema,Cr as RunIfValueOperatorsSchema,AD as SEARCHES_IDS,xS as SEARCH_IDS,Z as Search,vT as SearchErrorSchema,SS as SearchIdSchema,mT as SearchPayloadSchema,_T as SearchRequestSchema,CT as SearchResponseSchema,yT as SearchResultFieldSchema,bT as SearchResultSchema,Gk as SearchesErrorSchema,jD as SearchesIdSchema,Hk as SearchesPayloadSchema,Xk as SearchesRequestBaseConfigSchema,Qk as SearchesRequestSchema,Yk as SearchesResponseSchema,Kk as SearchesResultFieldSchema,qk as SearchesResultSchema,PD as SearchesSearch,Jk as SearchesStatusSchema,Sd as TYPES_TO_FORMATS,pE as WidgetsByKindSchema,Zn as WidgetsSchema,Ka as all,qr as analyzeLiquidTemplate,Dn as and,V as any,qT as assertUniqueBillableOperations,h as autocomplete,_i as buildAiModelBillableOperations,qE as buildDependencyGraph,vh as buildInputRequirementFromTemplates,Ne as buildResultColumns,G as catalogInput,Qa as cleanObject,FE as cleanUrl,PE as cleanWebsiteUrl,bh as collectConstantReferencesFromTemplates,rE as collectPipeContextSelectFields,Ya as collectRequirementFields,lE as collectSearchContextSelectFields,yh as collectSecretReferencesFromTemplates,SA as compilePattern,Ua as configDefaults,Qi as convertIntermediateFieldsIntoGroups,Me as dedupeColumnNames,$i as defaultSectionMap,bg as describeRequirement,RS as entityLogoFavicon,LS as entityLogoProfessionalProfileUrl,na as extractFormMetadata,B as field,yn as fieldBehaviorCatalog,vn as fieldCatalog,yg as fieldNameStr,RE as fieldTypeFromValue,wD as fieldsToObject,AA as filterPipeEntries,jA as filterSearchEntries,MA as filterSearchesEntries,vi as getAiModelBillingKey,bi as getAiModelConnectionRequirements,yi as getAiModelProviders,xi as getAllAiModelProviders,U as getBasePipeName,FT as getDefaultOutputFields,GT as getDefaultPipeProviders,kT as getDefaultSearchOutputFields,Wk as getDefaultSearchesOutputFields,CE as getDependentPipeNamesForInputProperty,wE as getDependentPipeNamesForPipe,IA as getDomain,BE as getExpansionState,FS as getFaviconUrlGoogle,g as getField,bn as getFieldBehavior,vd as getFieldDisplayLabel,HE as getFieldWidgets,OT as getInitialSearchTableData,nA as getInitialSearchesTableData,JT as getInitialTableData,no as getInputHash,Ci as getJsonMetaForFieldDef,FA as getLoweestSearchCreditAmount,PA as getLoweestSearchesCreditAmount,NA as getLowestPipeCreditAmount,kn as getOutputFieldInfoFromDef,HT as getPipeBillableOperationDef,bE as getPipeCategoryEntries,yE as getPipeCategoryEntry,IT as getPipeClass,to as getPipeConfigHash,LT as getPipeDefaultPayload,W as getPipeDocsURI,VT as getPipeEntry,SE as getPipeInstances,iE as getPipePayloadFormConfig,RT as getPipePayloadSchema,UT as getPipeVersion,q as getProviderBillableOperation,ro as getProviderCreditsFromBillableOperations,kD as getProviderEntry,wn as getReadableFieldStatus,oA as getSandboxConnections,sA as getSandboxConnectionsForPipe,cA as getSandboxConnectionsForSearch,lA as getSandboxConnectionsForSearches,pA as getSearchCategoryEntries,fA as getSearchCategoryEntry,pT as getSearchClass,hT as getSearchDefaultPayload,ET as getSearchEntry,hA as getSearchFieldWidgets,gA as getSearchInstance,cE as getSearchPayloadFormConfig,xT as getSearchPayloadSchema,AT as getSearchTableDataAggregates,wT as getSearchVersion,zk as getSearchesClass,Vk as getSearchesDefaultPayload,iA as getSearchesEntry,UE as getSearchesFieldWidgets,vA as getSearchesInstances,Bk as getSearchesPayloadSchema,rA as getSearchesTableDataAggregates,$k as getSearchesVersion,$T as getStartingCostPerPipesProvider,jT as getStartingCostPerSearchProvider,aA as getStartingCostPerSearchesProvider,YT as getTableDataAggregates,DE as getTier,VE as getUnexpandedValue,IS as ifDefined,R as inputFields,DD as inputFromRecord,ED as inputFromRecordArr,TD as inputFromRecords,uE as inputGuards,Sn as isCatalogField,qt as isEmptyValue,xn as isFieldName,AE as isHighVolumeEligible,DA as isPipeAllowed,EA as isProviderAllowed,Ja as isRequirementMet,Xa as isRequirementSatisfiedByRecord,OA as isSearchAllowed,kA as isSearchesAllowed,di as joinConnectionString,jE as listHighVolumeEligibleOperations,kE as listTiers,ao as markRecordFieldAsComplete,co as markRecordFieldAsFailed,so as markRecordFieldAsNoResult,oo as markRecordFieldAsPending,uo as markRecordFieldAsProcessing,lo as markRecordFieldAsSkipped,wA as matchesAny,CA as matchesPattern,zS as mergeWidgets,w as noConnectorInput,je as normalizeColumnName,qa as optional,C as optionalConnectorInput,On as or,L as outputFields,Kr as parseLiquidTemplate,Br as parseOutputTagArgs,fD as parseRecordValueOrError,zA as parseRichText,PT as pipeCatalog,_E as pipeCategoryCatalog,MT as pipeClassCatalog,NT as pipePayloadSchemaCatalog,ya as pipesAsyncIncludeExcludeSelectInput,Aa as pipesContextSelectInput,xa as pipesDateRangeInput,fa as pipesFieldsSelectInput,pa as pipesIncludeExcludeInput,va as pipesIncludeExcludeSelectInput,T as pipesInputField,Da as pipesIntInput,ji as pipesJsonExtractionInput,ka as pipesJsonSchemaField,_a as pipesKeyValueListInput,Ta as pipesLLMSelectInput,ma as pipesMultiCreateInput,Ea as pipesMultiSelectInput,Oa as pipesNumberInput,D as pipesOptionalBooleanInput,ha as pipesOrderedMultiCreateInput,O as pipesOutputField,v as pipesPayloadRegistry,ia as pipesPromptInput,E as pipesProviderInput,ba as pipesRangeInput,x as pipesRunIfInput,wa as pipesSelectInput,xE as pipesSnippetCatalog,ga as pipesTaggedOrderedMultiCreateInput,S as pipesTaggedTextInput,aa as pipesTemplateInput,Sa as pipesTextInput,Ca as pipesTextareaInput,J as placeholder,OD as processInputObjects,Dr as providerCatalog,K as rateLimitRatioFallingProgression,Wr as renderLiquidTemplate,Gr as renderLiquidTemplateSync,sa as requiredConnectorInput,io as requirementToInputFields,xg as requirementUnmetMessage,Tn as requiresConnection,En as requiresField,fT as searchCatalog,uA as searchCategoryCatalog,uT as searchClassCatalog,dT as searchPayloadSchemaCatalog,mA as searchSnippetCatalog,F as searchesAsyncIncludeExcludeSelectInput,P as searchesAsyncMultiSelectInput,Rk as searchesCatalog,Ik as searchesClassCatalog,Va as searchesContextSelectInput,Fa as searchesDateRangeInput,Na as searchesExactRangeInput,A as searchesIncludeExcludeInput,j as searchesIncludeExcludeSelectInput,I as searchesIntInput,Ma as searchesMinMaxIntInput,k as searchesMultiCreateInput,N as searchesMultiSelectInput,Ha as searchesNumberField,Ia as searchesOptionalBooleanInput,ua as searchesOptionalConnectorInput,La as searchesOptionalNullableBooleanInput,ja as searchesOrderedMultiCreateInput,M as searchesOutputField,y as searchesPayloadRegistry,Lk as searchesPayloadSchemaCatalog,Pa as searchesRangeInput,la as searchesRequiredConnectorInput,Ba as searchesSelectInput,Ra as searchesTextInput,za as searchesTextareaField,xd as sortObjectKeys,WT as sortPipeCatalogByBasePipe,TT as sortSearchCatalogByBaseSearch,eA as sortSearchesCatalogByBaseSearch,ui as splitConnectionString,m as staticAutocomplete,p as staticOptions,bd as stringify,yd as testPrint,OE as tierAtOrBelow,hD as transformIntoResponse,JE as validatePipesOrError,yA as validateSearches,Y 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=BT.parse(n);if(!VT(n.pipe_id))throw Error(`Unknown pipe: ${n.pipe_id}`);let r=new(IT(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 wE(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 TE=.1,EE=[`level1`,`level2`,`level3`];function DE(e,t){let n=EE[t-1];if(n)return e[n]}function OE(e,t){for(let n=t;n>=1;n--){let t=DE(e,n);if(t)return{level:n,tier:t}}}function kE(e){let t=[];for(let n=1;n<=3;n++){let r=DE(e,n);r&&t.push({level:n,credits:r.credits,weight:r.weight})}return t}function AE(e){if(e.default<.1)return!1;let t=kE(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 jE(){let e=new Map;for(let t of Object.values(PT))for(let[n,r]of Object.entries(t.billableOperations)){let i=r;if(!i?.allowManagedConnection||!AE(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:kE(i.credits),usedBy:[o]})}for(let t of Object.values(fT)){let{cost:n}=t;if(!n.allowManagedConnection||!AE(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:kE(n.credits),usedBy:[i]})}return[...e.values()].sort((e,t)=>e.billableOperation.localeCompare(t.billableOperation))}function ME(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 NE(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 PE(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(NE(e))return`https://${e}`;if(!ME(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(NE(n))return`${e.protocol===`http:`?`http:`:`https:`}//${e.host}${e.pathname}${e.search}${e.hash}`;if(!ME(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(ME(i)||NE(i))return`${e?.toLowerCase()===`http://`?`http:`:`https:`}//${n}${r}`}return``}}function IE(e){try{return PE(e)}catch{console.warn(`Invalid URL: ${e}`);return}}function LE(e,t){if(t)switch(e){case`website_url`:return IE(t);default:return}}function RE(e){let t;if(zE(e))return RE(e.value);let n=typeof e;return t=n===`string`||n===`number`||n===`boolean`?n:e===null?`unknown`:`json`,t}function zE(e,t=0){if(typeof e==`object`&&e&&`value`in e&&`status`in e&&Rn.safeParse(e.status).success){if(t>1||typeof e.value==`object`&&zE(e.value,t++))throw new X([Y.RecursiveExpandedValue()]);return!0}return!1}function BE(e){let t=zE(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 zE(e)?VE(e.value):e}function HE(e,t,n){if([`processing`,`completed`].includes(n.status)===!1||t==null)return{};try{let r=bn(e,n.format)?.getStaticWidgets?.(t),i=LE(n.format,t);return zS(r||{},{display_value:i?{label:i}:void 0})}catch(e){return console.warn(`Failed to generate UI props: ${e}`),{}}}function UE(e,t,n){if(t==null)return{};try{let r=bn(e,n)?.getStaticWidgets?.(t),i=LE(n,t);return zS(r||{},{display_value:i?{label:i}:void 0})}catch(e){return console.warn(`Failed to generate UI props: ${e}`),{}}}function WE(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 GE=class e{annotations;constructor(e){this.annotations=e||{}}getAnnotation(e){return this.annotations[e]}static fromInput(t,{probeCount:n=1e5,inferCatalogFields:i=!0,addIdColumn:a=!0}={probeCount:1e5,inferCatalogFields:!0,addIdColumn:!0}){let o={},s=0;for(let e of t){if(s++,s>n)break;for(let[t,n]of Object.entries(e)){if(t===``||t==null)continue;let{resolvedInputValue:e,expandedValue:a,isExpanded:s}=BE(n),c;c=s&&a.type?a.type:RE(e);let l;xn(t)&&(l=g(t));let u=l&&(l.type===c||c===`unknown`);(!o[t]||o[t].type===`unknown`&&c!==`unknown`)&&(o[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&&!o.id&&(o.id={format:null,type:`string`,json_metadata:null,label:null}),new e(o)}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]=WE(n,t)}return new e(r)}deleteKey(t){let n=structuredClone(this.annotations);return delete n[t],new e(n)}};function KE(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 qE(e){let t=KE(e),n=[];for(let[r,i]of e.entries()){let e=[];for(let{field:n,required:a}of Ya(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 JE({config:e,pipes:t,input:n,field_annotations:r}){try{let i=QE({config:e,pipes:t,input:n,fieldAnnotations:r});return YE(i),i}catch(e){throw e instanceof X?e:new X([Y.ValidationFailed({error:e})])}}function YE(e){for(let t of e.orderedPipeInstances)for(let{field:n}of Ya(t.getInputRequirement()))mh({pipes:e.orderedPipeInstances,derivedInputFields:e.derivedInputFields},n.type),hh({pipes:e.orderedPipeInstances,derivedInputFields:e.derivedInputFields},n.format)}function XE(e,t){if(!e&&!t)throw new X([Y.MustDefineAnnotations()]);return new GE(t||{}).merge(GE.fromInput(e||[]))}function ZE(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:mh(e,a.type),added_by:{ref:t.pipeId,config_hash:t.getConfigHashKey(),pipe_index:r},label:i?.label||a.label,format:hh(e,a.format),is_primary_output:a.isPrimaryOutput}}}),n}function QE(e){let t=SE(e.pipes),n=XE(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)}),tD(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]=$E(t,n),u=ZE({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 $E(e,t){let n=qE(e),r=eD(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 eD(e,t,n){let r=t.length,i=[],a=new Set,o=new Set,s=[],c=e=>{let n=t[e];return n?Ya(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();Ja(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 tD(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 ui(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 nD=[`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`],rD=[`yyyy-MM-dd`,`yyyy/MM/dd`,`MM/dd/yyyy`,`MM-dd-yyyy`,`yyyyMMdd`,`dd-MM-yyyy`,`dd/MM/yyyy`],iD=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})}),aD=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 oD(e){return!isNaN(e.getTime())}const sD=r.coerce.string().trim().transform(e=>{let t=e.replace(/[^0-9T:.\-/ ]/g,``).trim();for(let e of nD){let n=ee(t,e,new Date(0));if(oD(n))return u(n,`yyyy-MM-dd'T'HH:mm:ss`)}throw Error(`Invalid date format: ${e}`)}),cD=r.coerce.string().trim().transform(e=>{for(let t of rD){let n=ee(e,t,new Date(0));if(oD(n))return u(n,`yyyy-MM-dd`)}throw Error(`Invalid date format: ${e}`)}),lD=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`}),uD=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()),dD=r.coerce.string().trim().min(1,{message:`Value cannot be empty for this format`});function fD(e,t){if(t===null)return e===``||e==null?null:e;if(e==null)return null;try{switch(t){case`url`:return iD.parse(e);case`email`:return aD.parse(e);case`datetime`:return sD.parse(e);case`date`:return cD.parse(e);case`decimal`:return lD.parse(e);case`int`:return uD.parse(e);case`currency`:return r.number().parse(e);case`percent`:return r.number().parse(e);case`address_line_1`:return dD.parse(e);case`website_url`:return iD.parse(e);case`profile_url`:return iD.parse(e);case`zip_code`:return dD.parse(e);case`markdown`:case`phone`:case`text`:return dD.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 ${bd(e)} into format ${t}: ${r.message}`):r}}function pD(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(zE(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:fD(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 mD(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:pD(e,n,i)}}}function hD({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{mD(e,t,r);let{queuedRecordIdSet:i,adoptedRecordIdSet:a}=gD(e,t,r,n);if(r.queued_record_ids=i,r.adopted_record_ids=a,_D(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 gD(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 _D(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 ${yg(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 ${yg(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}=Xa(a.getInputRequirement(),e);t===!1&&r(a,n,i,e)})}}function vD({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 yD({status:e,config:t}){return t.queue?.enabled?!!(e===`failed`&&t.queue?.triggers?.fieldIsFailed||e===`no_result`&&t.queue?.triggers?.fieldIsNoResult):!1}function bD({inputHashKey:e,configHashKey:t,expandedValue:n,config:r}){return vD({inputHashKey:e,configHashKey:t,expandedValue:n,config:r})||yD({status:n.status,config:r})}function xD({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=mh({pipes:e.orderedPipeInstances,derivedInputFields:e.derivedInputFields},ee),ne=hh({pipes:e.orderedPipeInstances,derivedInputFields:e.derivedInputFields},a.format),{resolvedInputValue:d,isExpanded:re,expandedValue:f}=BE(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=RE(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}=xD({inputHashKey:oe,configHashKey:ae,expandedValue:f});e&&s.push(u.id)}if(re&&f.status!==`pending`&&bD({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}=xD({inputHashKey:oe,configHashKey:ae,expandedValue:f});e&&s.push(u.id)}bD({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=fD(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=HE(i,r.value,r);r.widgets=zS(r.widgets||{},e)}t.errors.length>0&&(r.status===`pending`||r.status===`queued`)&&(r.status=`failed`)})})}function wD(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 TD(e,t={}){return Object.values(e).map(e=>wD(e.fields,t))}function ED(e,t={}){return e.map(e=>wD(e.fields,t))}function DD(e,t={}){return wD(e.fields,t)}function OD(e,t){return e.map(e=>{let n={};return Object.entries(e).forEach(([e,r])=>{let{isExpanded:i,expandedValue:a,resolvedInputValue:o}=BE(r);i===!0&&a.status!=null&&t.unexpandStatuses.includes(a.status)?n[e]=o:n[e]=r}),n})}function kD(e){let t=Dr[e];if(!t)throw Error(`Provider name '${e}' invalid`);return{...t,provider:e}}const AD=[`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`],jD=r.enum(AD);function MD(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 ND(e,t){let n={name:e,config:t};return eo.hashObject(n)}var PD=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 ND(this.searchId,this.payload)}};function FD(e){return e.split(`@`)[0]}function ID(e){return`/docs/search-catalog/${FD(e)}/${e.split(`@`)[1]}`}const LD=`companies:profiles:crustdata@1`,RD=g(`company_name`),zD=g(`company_website_url`),BD=g(`company_description`),VD=g(`company_profile_url`),HD=g(`crustdata_company_match`),UD=r.object({search_id:r.literal(LD),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:Ra({sectionKey:`general`,path:`config.cursor`,groupPath:`config.general`,inputType:`text`,description:``,label:`Continue previous search from cursor`}),output_fields:L(r.object({[RD.name]:M({fieldName:RD.name}),[zD.name]:M({fieldName:RD.name}),[BD.name]:M({fieldName:BD.name}),[VD.name]:M({fieldName:VD.name}),[HD.name]:M({fieldName:HD.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:Pa({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:Pa({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=>{MD(e.value)&&e.issues.push({code:`custom`,message:`You must set at least one filter.`,input:e.value})})})}),WD={default:{input:[{fields:[]}]}},GD=class extends PD{searchId=LD;schema=UD;payload;constructor(e){super(),this.payload=this.validatePayload(e)}getRawOutputFields(){return{[RD.name]:this.catalogOutput(RD),[zD.name]:this.catalogOutput(zD),[BD.name]:this.catalogOutput(BD),[VD.name]:this.catalogOutput(VD),[HD.name]:this.catalogOutput(HD)}}getConnectionsRequirements(){return[{provider:`crustdata`,rateLimitOperation:`crustdata_company_db_search`,rateLimitRatio:1,allowManagedConnection:!0}]}getDedupConfig(){return WD}},KD=UD,qD={searchId:LD,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:ID(LD),cost:{mode:`per_page`,creditsPerPage:2},provider:`crustdata`,defaultPayload:{search_id:LD,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:[]}}}},JD=`companies:profiles:exa@1`,YD=g(`company_name`),XD=g(`company_website_url`),ZD=g(`company_description`),QD=g(`company_industry`),$D=g(`headcount`),eO=g(`exa_match_evaluation`),tO=r.object({search_id:r.literal(JD),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({[YD.name]:M({fieldName:YD.name}),[XD.name]:M({fieldName:YD.name}),[ZD.name]:M({fieldName:ZD.name}),[QD.name]:M({fieldName:QD.name}),[$D.name]:M({fieldName:$D.name}),[eO.name]:M({fieldName:eO.name})})),filters:r.object({query:za({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})})})}),nO={default:{input:[{fields:[]}]}},rO=class extends PD{searchId=JD;schema=tO;payload;constructor(e){super(),this.payload=this.validatePayload(e)}getRawOutputFields(){return{[YD.name]:this.catalogOutput(YD),[XD.name]:this.catalogOutput(XD),[ZD.name]:this.catalogOutput(ZD),[QD.name]:this.catalogOutput(QD),[$D.name]:this.catalogOutput($D),[eO.name]:this.catalogOutput(eO)}}getConnectionsRequirements(){return[{provider:`exa`,rateLimitOperation:`exa_websets`,rateLimitRatio:1,allowManagedConnection:!0}]}getDedupConfig(){return nO}},iO=tO,aO={searchId:JD,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:ID(JD),cost:{mode:`per_result`,creditsPerResult:2},provider:`exa`,defaultPayload:{search_id:JD,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:``}}}},oO=`companies:profiles:icypeas@1`,sO=g(`company_industry`),cO=g(`company_name`),lO=g(`company_description`),uO=g(`company_website_url`),dO=g(`headcount`),fO=g(`company_region`),pO=g(`company_profile_url`),mO=g(`icypeas_company_match`),hO=r.object({search_id:r.literal(oO),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:cO.name}),company_industry:M({fieldName:sO.name}),company_description:M({fieldName:lO.name}),company_website_url:M({fieldName:uO.name}),headcount:M({fieldName:dO.name}),company_region:M({fieldName:fO.name}),company_profile_url:M({fieldName:pO.name}),icypeas_company_match:M({fieldName:mO.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:Pa({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=>{MD(e.value)&&e.issues.push({code:`custom`,message:`You must set at least one filter.`,input:e.value})})})}),gO={default:{input:[{fields:[{outputField:`company_profile_url`}]}]}},_O=class extends PD{searchId=oO;schema=hO;payload;constructor(e){super(),this.payload=this.validatePayload(e)}getRawOutputFields(){return{[cO.name]:this.catalogOutput(cO),[sO.name]:this.catalogOutput(sO),[pO.name]:this.catalogOutput(pO),[uO.name]:this.catalogOutput(uO),[lO.name]:this.catalogOutput(lO),[dO.name]:this.catalogOutput(dO),[fO.name]:this.catalogOutput(fO),[mO.name]:this.catalogOutput(mO)}}getConnectionsRequirements(){return[{provider:`icypeas`,rateLimitOperation:`icypeas_company_database`,rateLimitRatio:1,allowManagedConnection:!0}]}getDedupConfig(){return gO}},vO=hO,yO={searchId:oO,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:ID(oO),cost:{mode:`per_result`,creditsPerResult:.4},provider:`icypeas`,defaultPayload:{search_id:oO,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:[]}}}}},bO=`people:profiles:clado@1`,xO=g(`name`),SO=g(`job_title`),CO=g(`company_name`),wO=g(`company_profile_url`),TO=g(`profile_url`),EO=g(`clado_person_match`),DO=r.object({search_id:r.literal(bO),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({[xO.name]:M({fieldName:xO.name}),[SO.name]:M({fieldName:SO.name}),[wO.name]:M({fieldName:wO.name}),[CO.name]:M({fieldName:CO.name}),[TO.name]:M({fieldName:TO.name}),[EO.name]:M({fieldName:EO.name})})),filters:r.object({query:za({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})})})}),OO={default:{input:[{fields:[{outputField:`profile_url`}]}]}},kO=class extends PD{searchId=bO;schema=DO;payload;constructor(e){super(),this.payload=this.validatePayload(e)}getRawOutputFields(){return{[xO.name]:this.catalogOutput(xO),[SO.name]:this.catalogOutput(SO),[CO.name]:this.catalogOutput(CO),[TO.name]:this.catalogOutput(TO),[wO.name]:this.catalogOutput(wO),[EO.name]:this.catalogOutput(EO)}}getConnectionsRequirements(){return[{provider:`clado`,rateLimitOperation:`clado_search_people`,rateLimitRatio:1,allowManagedConnection:!0}]}getDedupConfig(){return OO}},AO=DO,jO={searchId:bO,billableOperation:`people-profiles-clado`,baseSearch:Jt(`people:profiles:clado@1`),label:`Find people profiles with Clado`,categories:[`people`],hasManagedConnection:!0,allowsUserConnection:!0,lifecycle:{deprecatedOn:`2026-06-13`,replacedBy:`people:profiles:clado@2`},description:`Search through millions of LinkedIn profiles using natural language queries. This endpoint provides fast searching with AI-powered relevance matching.`,tags:[z.PEOPLE_PROFILES],docPath:`/resources/search-catalog/people:profiles:clado/1`,cost:{mode:`per_search`,creditsPerSearch:3},provider:`clado`,defaultPayload:{search_id:bO,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:``}}}},MO=`people:profiles:clado@2`,NO=g(`name`),PO=g(`job_title`),FO=g(`company_name`),IO=g(`company_profile_url`),LO=g(`profile_url`),RO=g(`clado_person_match_v2`),zO=r.object({search_id:r.literal(MO),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:Ra({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({[NO.name]:M({fieldName:NO.name}),[PO.name]:M({fieldName:PO.name}),[IO.name]:M({fieldName:IO.name}),[FO.name]:M({fieldName:FO.name}),[LO.name]:M({fieldName:LO.name}),[RO.name]:M({fieldName:RO.name})})),filters:r.object({query:za({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`]})}),BO={default:{input:[{fields:[{outputField:`profile_url`}]}]}},VO=class extends PD{searchId=MO;schema=zO;payload;constructor(e){super(),this.payload=this.validatePayload(e)}getRawOutputFields(){return{[NO.name]:this.catalogOutput(NO),[PO.name]:this.catalogOutput(PO),[FO.name]:this.catalogOutput(FO),[LO.name]:this.catalogOutput(LO),[IO.name]:this.catalogOutput(IO),[RO.name]:this.catalogOutput(RO)}}getConnectionsRequirements(){return[{provider:`clado`,rateLimitOperation:`clado_search_people`,rateLimitRatio:1,allowManagedConnection:!0}]}getDedupConfig(){return BO}},HO=zO,UO={searchId:MO,billableOperation:`people-profiles-clado`,baseSearch:Jt(`people:profiles:clado@2`),label:`Find people profiles`,categories:[`deprecated`],hasManagedConnection:!0,allowsUserConnection:!0,lifecycle:{deprecatedOn:`2026-06-13`,replacedBy:`people:profiles:clado@2`},description:`Search a growing dataset with semantic queries.`,tags:[],docPath:`/resources/search-catalog/people:profiles:clado/1`,cost:{mode:`per_page`,creditsPerPage:3},provider:`clado`,defaultPayload:{search_id:MO,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:``}}}},WO=`people:employees:leadmagic@1`,GO=g(`name`),KO=g(`job_title`),qO=g(`company_website_url`),JO=g(`company_name`),YO=r.object({search_id:r.literal(WO),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({[GO.name]:M({fieldName:GO.name}),[JO.name]:M({fieldName:JO.name}),[qO.name]:M({fieldName:qO.name}),[KO.name]:M({fieldName:KO.name})})),filters:r.object({company_website_url:Ra({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`})})})}),XO={default:{input:[{fields:[{outputField:qO.name}]}]}},ZO=class extends PD{searchId=WO;schema=YO;payload;constructor(e){super(),this.payload=this.validatePayload(e)}getRawOutputFields(){return{[GO.name]:this.catalogOutput(GO),[KO.name]:this.catalogOutput(KO),[qO.name]:this.catalogOutput(qO),[JO.name]:this.catalogOutput(JO)}}getConnectionsRequirements(){return[{provider:`leadmagic`,rateLimitOperation:`leadmagic_employee_finder`,rateLimitRatio:1,allowManagedConnection:!0}]}getDedupConfig(){return XO}},QO=YO,$O={searchId:WO,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:ID(WO),cost:{mode:`per_result`,creditsPerResult:.05},provider:`leadmagic`,defaultPayload:{search_id:WO,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:``}}}},ek=`people:profiles:crustdata@1`,tk=g(`name`),nk=g(`company_website_url`),rk=g(`profile_url`),ik=g(`job_title`),ak=g(`crustdata_person_match`),ok=r.object({search_id:r.literal(ek),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:Ra({sectionKey:`general`,path:`config.cursor`,groupPath:`config.general`,inputType:`text`,description:``,label:`Continue previous search from cursor`}),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})})),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:ja({path:`config.filters.profile_headline_keywords`,sectionKey:`config.filters`,label:`Headline contains keywords`,maxItems:100,groupPath:`config.filters.keywords`}),profile_summary_keywords:ja({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:La({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=>{MD(e.value)&&e.issues.push({code:`custom`,message:`You must set at least one filter.`,input:e.value})})})}),sk={default:{input:[{fields:[]}]}},ck=class extends PD{searchId=ek;schema=ok;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)}}getConnectionsRequirements(){return[{provider:`crustdata`,rateLimitOperation:`crustdata_people_db_search`,rateLimitRatio:1,allowManagedConnection:!0}]}getDedupConfig(){return sk}},lk=ok,uk={searchId:ek,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:ID(ek),cost:{mode:`per_page`,creditsPerPage:5},provider:`crustdata`,defaultPayload:{search_id:ek,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:[]}}}},dk=`people:profiles:exa@1`,fk=g(`name`),pk=g(`profile_url`),mk=g(`job_title`),hk=g(`company_name`),gk=g(`company_region`),_k=g(`exa_match_evaluation`),vk=r.object({search_id:r.literal(dk),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({[fk.name]:M({fieldName:fk.name}),[pk.name]:M({fieldName:pk.name}),[mk.name]:M({fieldName:mk.name}),[hk.name]:M({fieldName:hk.name}),[gk.name]:M({fieldName:gk.name}),[_k.name]:M({fieldName:_k.name})})),filters:r.object({query:za({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})})})}),yk={default:{input:[{fields:[]}]}},bk=class extends PD{searchId=dk;schema=vk;payload;constructor(e){super(),this.payload=this.validatePayload(e)}getRawOutputFields(){return{[fk.name]:this.catalogOutput(fk),[pk.name]:this.catalogOutput(pk),[mk.name]:this.catalogOutput(mk),[hk.name]:this.catalogOutput(hk),[gk.name]:this.catalogOutput(gk),[_k.name]:this.catalogOutput(_k)}}getConnectionsRequirements(){return[{provider:`exa`,rateLimitOperation:`exa_websets`,rateLimitRatio:1,allowManagedConnection:!0}]}getDedupConfig(){return yk}},xk=vk,Sk={searchId:dk,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:ID(dk),cost:{mode:`per_result`,creditsPerResult:2},provider:`exa`,defaultPayload:{search_id:dk,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`,wk=g(`name`),Tk=g(`job_title`),Ek=g(`profile_headline`),Dk=g(`company_website_url`),Ok=g(`company_profile_url`),kk=g(`profile_url`),Ak=g(`icypeas_person_match`),jk=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({[wk.name]:M({fieldName:wk.name}),[Tk.name]:M({fieldName:Tk.name}),[Ek.name]:M({fieldName:Ek.name}),[Dk.name]:M({fieldName:Dk.name}),[Ok.name]:M({fieldName:Ok.name}),[kk.name]:M({fieldName:kk.name}),[Ak.name]:M({fieldName:Ak.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=>{MD(e.value)&&e.issues.push({code:`custom`,message:`The filters object cannot be empty. You must set at least one filter.`,input:e.value})})})}),Mk={default:{input:[{fields:[{outputField:`profile_url`}]}]}},Nk=class extends PD{searchId=Ck;schema=jk;payload;constructor(e){super(),this.payload=this.validatePayload(e)}getRawOutputFields(){return{[wk.name]:this.catalogOutput(wk),[Tk.name]:this.catalogOutput(Tk),[Ek.name]:this.catalogOutput(Ek),[Dk.name]:this.catalogOutput(Dk),[Ok.name]:this.catalogOutput(Ok),[kk.name]:this.catalogOutput(kk),[Ak.name]:this.catalogOutput(Ak)}}getConnectionsRequirements(){return[{provider:`icypeas`,rateLimitOperation:`icypeas_lead_database`,rateLimitRatio:1,allowManagedConnection:!0}]}getDedupConfig(){return Mk}},Pk=jk,Fk={searchId:Ck,billableOperation:`people-profiles-icypeas`,provider:`icypeas`,baseSearch:FD(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:ID(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:[]}}}}},Ik={"people:profiles:crustdata@1":ck,"companies:profiles:crustdata@1":GD,"companies:profiles:exa@1":rO,"people:profiles:exa@1":bk,"people:profiles:icypeas@1":Nk,"companies:profiles:icypeas@1":_O,"people:employees:leadmagic@1":ZO,"people:profiles:clado@1":kO,"people:profiles:clado@2":VO},Lk={"people:profiles:crustdata@1":lk,"companies:profiles:crustdata@1":KD,"companies:profiles:exa@1":iO,"people:profiles:exa@1":xk,"people:profiles:icypeas@1":Pk,"companies:profiles:icypeas@1":vO,"people:employees:leadmagic@1":QO,"people:profiles:clado@1":AO,"people:profiles:clado@2":HO},Rk={"people:profiles:crustdata@1":uk,"companies:profiles:crustdata@1":qD,"companies:profiles:exa@1":aO,"people:profiles:exa@1":Sk,"people:profiles:icypeas@1":Fk,"companies:profiles:icypeas@1":yO,"people:employees:leadmagic@1":$O,"people:profiles:clado@1":jO,"people:profiles:clado@2":UO};function zk(e){return Ik[e]}function Bk(e){return Lk[e]}function Vk(e){return Rk[e].defaultPayload}const Hk=t.discriminatedUnion(`search_id`,Object.values(Lk).map(e=>e)),Uk=t.preprocess(e=>{if(!e||typeof e!=`object`||!(`search_id`in e))return e;let t=Vk(e.search_id);return t?{...e,config:Ua(e?.config||{},t.config)}:e},Hk);function Wk(e){return Object.keys(Rk[e].defaultPayload.config.output_fields)}const Gk=Qn,Kk=t.object({value:zn,status:Rn,type:In.optional(),format:tr.nullable().optional(),resolved_by:sr.nullable().optional(),widgets:Zn.optional()}),qk=t.record(t.string(),Kk.nullable()),Jk=t.object({search:t.object({ref:jD}),status:t.enum([`pending`,`processing`,`failed`,`completed`]),errors:t.array(Gk),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()})}),Yk=t.object({id:t.string(),status:t.enum([`completed`,`failed`,`pending`,`processing`]),results:t.array(qk),search_statuses:t.array(Jk),organizationId:t.string()}).openapi(`SearchesResponseSchema`),Xk=t.object({environment:t.enum([`production`,`sandbox`]).default(`production`),widgets:t.object({enabled:t.boolean().default(!1)}).default({enabled:!1})}),Zk=Xk.extend({dedup:t.object({strategy:t.enum([`default`]).nullable()}).default({strategy:null})}),Qk=t.object({config:Zk.default({dedup:{strategy:`default`},environment:`production`,widgets:{enabled:!1}}),searches:t.array(Uk)}).openapi(`SearchesRequestSchema`);function $k(e){let t=e.split(`@`)[1];if(!t)throw Error(`No search version found`);return Number(t)}function eA(){let e={};for(let t of Object.values(Rk)){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=$k(e.searchId);return $k(t.searchId)-n})}),e}const tA=eA();function nA(e){let t=[];for(let[n,r]of Object.entries(tA)){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:$k(i.searchId)})}return t}function rA(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 Wk(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:tA}}function iA(e){return Rk[e]}function aA(e){let t=iA(e);return{[t.provider]:t.cost.mode===`per_result`?t.cost.creditsPerResult:t.cost.mode===`per_search`?t.cost.creditsPerSearch:t.cost.creditsPerPage}}function oA(e){return e.map(e=>({public_id:`sandbox-${e}`,provider:e}))}function sA(e){return oA(VT(e).allowedUserConnectionProviders)}function cA(e){return oA([ET(e).provider])}function lA(e){return oA([iA(e).provider])}const uA=[{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}],dA=new Map(uA.map(e=>[e.id,e]));function fA(e){return dA.get(e)}function pA(){return uA}const mA={"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`}}}],"sheet:rows@1":[{search_id:`sheet:rows@1`,connector:{strategy:`first`,connections:[]},config:{sheet:`demo-leads`,limit:100,cursor:``,include_metadata:!1}}],"query:postgres@1":[{search_id:`query:postgres@1`,connector:{strategy:`first`,connections:[]},config:{query:`SELECT id, name, email FROM contacts ORDER BY id`,limit:100,page_number:1}}],"query:databricks@1":[{search_id:`query:databricks@1`,connector:{strategy:`first`,connections:[]},config:{query:`SELECT id, name, email FROM samples.tpch.customer ORDER BY id`,limit:100,page_number:1}}]};function hA(e,t,n){if(t==null)return{};try{let r=bn(e,n)?.getStaticWidgets?.(t),i=LE(n,t);return zS(r||{},{display_value:i?{label:i}:void 0})}catch(e){return console.warn(`Failed to generate UI props: ${e}`),{}}}function gA(e){if(e instanceof Z)return e;let t=e.search_id,n=pT(t);if(!n)throw Error(`Unknown pipe: ${e.search_id}`);return new n(gT.parse(e))}var _A=class extends Cg{constructor(e){super(e.map(e=>e.message).join(`, `)||`Unknown`),this.errors=e}};function vA(e){let t=[];for(let n of e){if(n instanceof PD){t.push(n);continue}let e=n.search_id,r=zk(e);if(!r)throw Error(`Unknown pipe: ${n.search_id}`);let i=new r(Uk.parse(n));t.push(i)}return t}function yA(e){try{return vA(e.searches)}catch(e){throw e instanceof _A?e:new X([Y.ValidationFailed({error:e})])}}const bA=/[\\^$.+()|[\]{}]/g,xA=new Map;function SA(e){let t=xA.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(bA,`\\$&`)}let r=RegExp(`^${n}$`);return xA.set(e,r),r}function CA(e,t){return SA(t).test(e)}function wA(e,t){if(!t||t.length===0)return!1;for(let n of t)if(CA(e,n))return!0;return!1}function TA(e,t){if(!t)return!0;let{includes:n,excludes:r}=t;return!(n&&n.length>0&&!wA(e,n)||r&&r.length>0&&wA(e,r))}function EA(e,t){return TA(e,t?.providers)}function DA(e,t){if(!t)return!0;if(!TA(e,t.pipes))return!1;if(t.providers){let n=GT(e);if(n.length===0)return!0;if(!n.some(e=>EA(e,t)))return!1}return!0}function OA(e,t,n){return t?!(!TA(e,t.searches)||n!==void 0&&!EA(n,t)):!0}function kA(e,t,n){return t?!(!TA(e,t.searchesMulti)||n!==void 0&&!EA(n,t)):!0}function AA(e,t){return t?e.filter(e=>DA(e.pipeId,t)):e.slice()}function jA(e,t){return t?e.filter(e=>OA(e.searchId,t,e.provider)):e.slice()}function MA(e,t){return t?e.filter(e=>kA(e.searchId,t,e.provider)):e.slice()}function NA(e){let t=Object.values(e.billableOperations).map(e=>e.allowManagedConnection?e.credits.default:0);return Math.min(...t)}function PA(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.allowManagedConnection?e.cost.credits.default:0}function IA(e){let t=FE(e);if(!t)return``;try{return te(t)||new URL(t).hostname}catch{return``}}const LA=[`http://`,`https://`,`mailto:`],RA=new Set([`*`,`_`,`~`,"`",`[`,`]`,`(`,`)`,`\\`]);function zA(e){return e?BA(e):[]}function BA(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&&RA.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:BA(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:BA(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:BA(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(LA.some(e=>o.startsWith(e))){i(),t.push({type:`link`,href:o,children:BA(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(HA(e,r,n))return r;r+=1}return-1}function HA(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{hi as AI_MODELS,gi as AI_MODEL_CATALOG,fr as CatalogSchemaRefSchema,gr as ConditionOperatorsSchema,lr as ExpandedFieldValueSchema,Gh as FIELD_PLACEHOLDERS,nr as FieldAnnotationSchema,GE as FieldAnnotations,rr as FieldAnnotationsSchema,An as FieldNameSchema,$n as FieldReasonSchema,zn as FieldValueSchema,gE as FormStoreSchema,TE as HIGH_VOLUME_PRICING_MIN_CREDITS,hr as JSONExtractSchema,Bn as JSONMetaSchema,Sr as NoConnectorSchema,_ as OptionalConnectorSchema,Nn as PIPE_IDS,ST as PaginationTypeSchema,Kb as PersonWorkemailWaterfall1Entry,Gb as PersonWorkemailWaterfall1PayloadSchema,Wb as PersonWorkemailWaterfall1PipeClass,H as Pipe,Cg as Pipe0Error,Pn as PipeIdSchema,zT as PipePayloadSchema,Er as PipeRunIfSchema,X as PipelineValidationError,Mn as PipesEnvironmentSchema,Qn as PipesErrorSchema,pr as PipesFieldDefinitionSchema,mr as PipesFieldDefinitionsSchema,ur as PipesInputSchema,ZT as PipesRequestConfigSchema,QT as PipesRequestSchema,XT as PipesResponseSchema,BT as ProcessedPipePayloadSchema,gT as ProcessedSearchPayloadSchema,Uk as ProcessedSearchesPayloadSchema,jn as ProviderNameSchema,er as RECORD_FIELD_FORMATS,Fn as RECORD_FIELD_TYPES,_r as RUN_IF_OPERATOR_LABELS,yr as RUN_IF_STATUS_OPERATORS,vr as RUN_IF_VALUE_OPERATORS,or as RecordClaimedBySchema,tr as RecordFieldFormatSchema,cr as RecordFieldSchema,Rn as RecordFieldStatusSchema,In as RecordFieldTypeSchema,Ln as RecordIdSchema,sr as RecordResolvedBySchema,dr as RecordSchema,Sg as RequestValidationError,xr as RequiredConnectorSchema,wr as RunIfStatusOperatorsSchema,Tr as RunIfStatusValueSchema,Cr as RunIfValueOperatorsSchema,AD as SEARCHES_IDS,xS as SEARCH_IDS,Z as Search,vT as SearchErrorSchema,SS as SearchIdSchema,mT as SearchPayloadSchema,_T as SearchRequestSchema,CT as SearchResponseSchema,yT as SearchResultFieldSchema,bT as SearchResultSchema,Gk as SearchesErrorSchema,jD as SearchesIdSchema,Hk as SearchesPayloadSchema,Xk as SearchesRequestBaseConfigSchema,Qk as SearchesRequestSchema,Yk as SearchesResponseSchema,Kk as SearchesResultFieldSchema,qk as SearchesResultSchema,PD as SearchesSearch,Jk as SearchesStatusSchema,Sd as TYPES_TO_FORMATS,pE as WidgetsByKindSchema,Zn as WidgetsSchema,Ka as all,qr as analyzeLiquidTemplate,Dn as and,V as any,qT as assertUniqueBillableOperations,h as autocomplete,_i as buildAiModelBillableOperations,qE as buildDependencyGraph,vh as buildInputRequirementFromTemplates,Ne as buildResultColumns,G as catalogInput,Qa as cleanObject,FE as cleanUrl,PE as cleanWebsiteUrl,bh as collectConstantReferencesFromTemplates,rE as collectPipeContextSelectFields,Ya as collectRequirementFields,lE as collectSearchContextSelectFields,yh as collectSecretReferencesFromTemplates,SA as compilePattern,Ua as configDefaults,Qi as convertIntermediateFieldsIntoGroups,Me as dedupeColumnNames,$i as defaultSectionMap,bg as describeRequirement,RS as entityLogoFavicon,LS as entityLogoProfessionalProfileUrl,na as extractFormMetadata,B as field,yn as fieldBehaviorCatalog,vn as fieldCatalog,yg as fieldNameStr,RE as fieldTypeFromValue,wD as fieldsToObject,AA as filterPipeEntries,jA as filterSearchEntries,MA as filterSearchesEntries,vi as getAiModelBillingKey,bi as getAiModelConnectionRequirements,yi as getAiModelProviders,xi as getAllAiModelProviders,U as getBasePipeName,FT as getDefaultOutputFields,GT as getDefaultPipeProviders,kT as getDefaultSearchOutputFields,Wk as getDefaultSearchesOutputFields,CE as getDependentPipeNamesForInputProperty,wE as getDependentPipeNamesForPipe,IA as getDomain,BE as getExpansionState,FS as getFaviconUrlGoogle,g as getField,bn as getFieldBehavior,vd as getFieldDisplayLabel,HE as getFieldWidgets,OT as getInitialSearchTableData,nA as getInitialSearchesTableData,JT as getInitialTableData,no as getInputHash,Ci as getJsonMetaForFieldDef,FA as getLoweestSearchCreditAmount,PA as getLoweestSearchesCreditAmount,NA as getLowestPipeCreditAmount,kn as getOutputFieldInfoFromDef,HT as getPipeBillableOperationDef,bE as getPipeCategoryEntries,yE as getPipeCategoryEntry,IT as getPipeClass,to as getPipeConfigHash,LT as getPipeDefaultPayload,W as getPipeDocsURI,VT as getPipeEntry,SE as getPipeInstances,iE as getPipePayloadFormConfig,RT as getPipePayloadSchema,UT as getPipeVersion,q as getProviderBillableOperation,ro as getProviderCreditsFromBillableOperations,kD as getProviderEntry,wn as getReadableFieldStatus,oA as getSandboxConnections,sA as getSandboxConnectionsForPipe,cA as getSandboxConnectionsForSearch,lA as getSandboxConnectionsForSearches,pA as getSearchCategoryEntries,fA as getSearchCategoryEntry,pT as getSearchClass,hT as getSearchDefaultPayload,ET as getSearchEntry,hA as getSearchFieldWidgets,gA as getSearchInstance,cE as getSearchPayloadFormConfig,xT as getSearchPayloadSchema,AT as getSearchTableDataAggregates,wT as getSearchVersion,zk as getSearchesClass,Vk as getSearchesDefaultPayload,iA as getSearchesEntry,UE as getSearchesFieldWidgets,vA as getSearchesInstances,Bk as getSearchesPayloadSchema,rA as getSearchesTableDataAggregates,$k as getSearchesVersion,$T as getStartingCostPerPipesProvider,jT as getStartingCostPerSearchProvider,aA as getStartingCostPerSearchesProvider,YT as getTableDataAggregates,DE as getTier,VE as getUnexpandedValue,IS as ifDefined,R as inputFields,DD as inputFromRecord,ED as inputFromRecordArr,TD as inputFromRecords,uE as inputGuards,Sn as isCatalogField,qt as isEmptyValue,xn as isFieldName,AE as isHighVolumeEligible,DA as isPipeAllowed,EA as isProviderAllowed,Ja as isRequirementMet,Xa as isRequirementSatisfiedByRecord,OA as isSearchAllowed,kA as isSearchesAllowed,di as joinConnectionString,jE as listHighVolumeEligibleOperations,kE as listTiers,ao as markRecordFieldAsComplete,co as markRecordFieldAsFailed,so as markRecordFieldAsNoResult,oo as markRecordFieldAsPending,uo as markRecordFieldAsProcessing,lo as markRecordFieldAsSkipped,wA as matchesAny,CA as matchesPattern,zS as mergeWidgets,w as noConnectorInput,je as normalizeColumnName,qa as optional,C as optionalConnectorInput,On as or,L as outputFields,Kr as parseLiquidTemplate,Br as parseOutputTagArgs,fD as parseRecordValueOrError,zA as parseRichText,PT as pipeCatalog,_E as pipeCategoryCatalog,MT as pipeClassCatalog,NT as pipePayloadSchemaCatalog,ya as pipesAsyncIncludeExcludeSelectInput,Aa as pipesContextSelectInput,xa as pipesDateRangeInput,fa as pipesFieldsSelectInput,pa as pipesIncludeExcludeInput,va as pipesIncludeExcludeSelectInput,T as pipesInputField,Da as pipesIntInput,ji as pipesJsonExtractionInput,ka as pipesJsonSchemaField,_a as pipesKeyValueListInput,Ta as pipesLLMSelectInput,ma as pipesMultiCreateInput,Ea as pipesMultiSelectInput,Oa as pipesNumberInput,D as pipesOptionalBooleanInput,ha as pipesOrderedMultiCreateInput,O as pipesOutputField,v as pipesPayloadRegistry,ia as pipesPromptInput,E as pipesProviderInput,ba as pipesRangeInput,x as pipesRunIfInput,wa as pipesSelectInput,xE as pipesSnippetCatalog,ga as pipesTaggedOrderedMultiCreateInput,S as pipesTaggedTextInput,aa as pipesTemplateInput,Sa as pipesTextInput,Ca as pipesTextareaInput,J as placeholder,OD as processInputObjects,Dr as providerCatalog,K as rateLimitRatioFallingProgression,Wr as renderLiquidTemplate,Gr as renderLiquidTemplateSync,sa as requiredConnectorInput,io as requirementToInputFields,xg as requirementUnmetMessage,Tn as requiresConnection,En as requiresField,fT as searchCatalog,uA as searchCategoryCatalog,uT as searchClassCatalog,dT as searchPayloadSchemaCatalog,mA as searchSnippetCatalog,F as searchesAsyncIncludeExcludeSelectInput,P as searchesAsyncMultiSelectInput,Rk as searchesCatalog,Ik as searchesClassCatalog,Va as searchesContextSelectInput,Fa as searchesDateRangeInput,Na as searchesExactRangeInput,A as searchesIncludeExcludeInput,j as searchesIncludeExcludeSelectInput,I as searchesIntInput,Ma as searchesMinMaxIntInput,k as searchesMultiCreateInput,N as searchesMultiSelectInput,Ha as searchesNumberField,Ia as searchesOptionalBooleanInput,ua as searchesOptionalConnectorInput,La as searchesOptionalNullableBooleanInput,ja as searchesOrderedMultiCreateInput,M as searchesOutputField,y as searchesPayloadRegistry,Lk as searchesPayloadSchemaCatalog,Pa as searchesRangeInput,la as searchesRequiredConnectorInput,Ba as searchesSelectInput,Ra as searchesTextInput,za as searchesTextareaField,xd as sortObjectKeys,WT as sortPipeCatalogByBasePipe,TT as sortSearchCatalogByBaseSearch,eA as sortSearchesCatalogByBaseSearch,ui as splitConnectionString,m as staticAutocomplete,p as staticOptions,bd as stringify,yd as testPrint,OE as tierAtOrBelow,hD as transformIntoResponse,JE as validatePipesOrError,yA as validateSearches,Y as validationErrorMessages};
|